The Ultimate Video Player For WordPress – by Presto Player - Version 1.5.9

Version Description

  • July 26, 2021 =
  • Fix issue with videos not being centered in iOS fullscreen.
  • Fix issue with non-standard HLS links not playing as HLS.
  • Fix issue with Lazy Load Youtube Videos needing a second click on newer iPad devices to play.
  • Allow focus mode to work with Muted Autoplay.
Download this release

Release Info

Developer 2winfactor
Plugin Icon 128x128 The Ultimate Video Player For WordPress – by Presto Player
Version 1.5.9
Comparing to
See all releases

Code changes from version 1.5.8 to 1.5.9

Files changed (33) hide show
  1. dist/components/cjs/{hls-fd02ef4c.js → hls-6775f033.js} +1 -1
  2. dist/components/cjs/{learndash-30d2bb84.js → learndash-92ece24b.js} +1 -1
  3. dist/components/cjs/presto-action-bar_7.cjs.entry.js +11 -12
  4. dist/components/cjs/{presto-player-4a99f115.js → presto-player-b01a0680.js} +21 -12
  5. dist/components/cjs/presto-player.cjs.entry.js +1 -1
  6. dist/components/collection/components/core/player/presto-player/presto-player.css +9 -0
  7. dist/components/collection/components/core/player/presto-player/presto-player.js +17 -4
  8. dist/components/collection/components/core/player/presto-player/util.js +1 -5
  9. dist/components/collection/components/core/player/presto-youtube/presto-youtube.js +3 -6
  10. dist/components/collection/util.js +9 -8
  11. dist/components/esm/{hls-4ef7ade3.js → hls-26fb4f3e.js} +1 -1
  12. dist/components/esm/{learndash-7c8ce992.js → learndash-5366b7c9.js} +1 -1
  13. dist/components/esm/presto-action-bar_7.entry.js +11 -12
  14. dist/components/esm/{presto-player-f20f5469.js → presto-player-bee3ad9f.js} +21 -12
  15. dist/components/esm/presto-player.entry.js +1 -1
  16. dist/components/types/components/core/player/presto-player/util.d.ts +0 -1
  17. dist/components/types/util.d.ts +1 -0
  18. dist/components/web-components/p-0f963262.entry.js +1 -0
  19. dist/components/web-components/p-23641bb9.entry.js +0 -1
  20. dist/components/web-components/p-2e1648a9.js +1 -0
  21. dist/components/web-components/p-444b9e4f.js +0 -1
  22. dist/components/web-components/{p-f4d3354e.js → p-77d8cc52.js} +1 -1
  23. dist/components/web-components/p-875adc93.entry.js +0 -1
  24. dist/components/web-components/{p-e540de9d.js → p-fc9022d1.js} +1 -1
  25. dist/components/web-components/p-fe85e9e3.entry.js +1 -0
  26. dist/components/web-components/web-components.esm.js +1 -1
  27. dist/divi/admin.dependencies.wp.json +0 -4
  28. dist/divi/manifest.json +0 -28
  29. inc/Support/Block.php +1 -3
  30. languages/presto-player.pot +1 -1
  31. presto-player.php +1 -1
  32. readme.txt +6 -0
  33. vendor/composer/installed.php +2 -2
dist/components/cjs/{hls-fd02ef4c.js → hls-6775f033.js} RENAMED
@@ -1,7 +1,7 @@
1
  'use strict';
2
 
3
  const index = require('./index-858a23c7.js');
4
- const prestoPlayer_entry = require('./presto-player-4a99f115.js');
5
 
6
  const hls = (function (_ref) {
7
  var config = _ref.config,
1
  'use strict';
2
 
3
  const index = require('./index-858a23c7.js');
4
+ const prestoPlayer_entry = require('./presto-player-b01a0680.js');
5
 
6
  const hls = (function (_ref) {
7
  var config = _ref.config,
dist/components/cjs/{learndash-30d2bb84.js → learndash-92ece24b.js} RENAMED
@@ -1,6 +1,6 @@
1
  'use strict';
2
 
3
- const prestoPlayer_entry = require('./presto-player-4a99f115.js');
4
  require('./index-858a23c7.js');
5
 
6
  const learndash = (function (player) {
1
  'use strict';
2
 
3
+ const prestoPlayer_entry = require('./presto-player-b01a0680.js');
4
  require('./index-858a23c7.js');
5
 
6
  const learndash = (function (player) {
dist/components/cjs/presto-action-bar_7.cjs.entry.js CHANGED
@@ -22,16 +22,19 @@ function getMobileOperatingSystem() {
22
  var userAgent = navigator.userAgent || navigator.vendor;
23
  // Windows Phone must come first because its UA also contains "Android"
24
  if (/windows phone/i.test(userAgent)) {
25
- return "Windows Phone";
26
  }
27
  if (/android/i.test(userAgent)) {
28
- return "Android";
29
  }
30
  // iOS detection from: http://stackoverflow.com/a/9039885/177710
31
- if (/iPad|iPhone|iPod/.test(userAgent) && !window.MSStream) {
32
- return "iOS";
33
  }
34
- return "unknown";
 
 
 
35
  }
36
  function isWebView() {
37
  var standalone = window.navigator['standalone'], userAgent = window.navigator.userAgent.toLowerCase(), safari = /safari/.test(userAgent), ios = /iphone|ipod|ipad/.test(userAgent);
@@ -57,7 +60,7 @@ function isWebView() {
57
  }
58
  }
59
  function isAndroidWebView() {
60
- if (getMobileOperatingSystem() === "Android" && isWebView()) {
61
  return true;
62
  }
63
  else {
@@ -616,12 +619,8 @@ const PrestoYoutube = class {
616
  if (!this.poster) {
617
  this.poster = `//img.youtube.com/vi/${this.getId(this.src)}/maxresdefault.jpg`;
618
  }
619
- if (this.lazyLoad) {
620
- var ua = window.navigator.userAgent;
621
- var iOS = !!ua.match(/iPad/i) || !!ua.match(/iPhone/i);
622
- if (iOS) {
623
- this.lazyLoad = false;
624
- }
625
  }
626
  }
627
  render() {
22
  var userAgent = navigator.userAgent || navigator.vendor;
23
  // Windows Phone must come first because its UA also contains "Android"
24
  if (/windows phone/i.test(userAgent)) {
25
+ return 'Windows Phone';
26
  }
27
  if (/android/i.test(userAgent)) {
28
+ return 'Android';
29
  }
30
  // iOS detection from: http://stackoverflow.com/a/9039885/177710
31
+ if ((navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1) || /(iPad|iPhone|iPod)/gi.test(navigator.platform)) {
32
+ return 'iOS';
33
  }
34
+ return 'unknown';
35
+ }
36
+ function isIOS() {
37
+ return getMobileOperatingSystem() === 'iOS';
38
  }
39
  function isWebView() {
40
  var standalone = window.navigator['standalone'], userAgent = window.navigator.userAgent.toLowerCase(), safari = /safari/.test(userAgent), ios = /iphone|ipod|ipad/.test(userAgent);
60
  }
61
  }
62
  function isAndroidWebView() {
63
+ if (getMobileOperatingSystem() === 'Android' && isWebView()) {
64
  return true;
65
  }
66
  else {
619
  if (!this.poster) {
620
  this.poster = `//img.youtube.com/vi/${this.getId(this.src)}/maxresdefault.jpg`;
621
  }
622
+ if (this.lazyLoad && isIOS()) {
623
+ this.lazyLoad = false;
 
 
 
 
624
  }
625
  }
626
  render() {
dist/components/cjs/{presto-player-4a99f115.js → presto-player-b01a0680.js} RENAMED
@@ -5232,7 +5232,7 @@ function PrestoPlayer$1 (element) {
5232
  var player = new Plyr(element, setup); // conditionally load learndash
5233
 
5234
  if (typeof learndash_video_data !== 'undefined') {
5235
- Promise.resolve().then(function () { return require('./learndash-30d2bb84.js'); }).then(function (module) {
5236
  var learnDash = module.default;
5237
  learnDash(player);
5238
  });
@@ -5264,13 +5264,9 @@ function PrestoPlayer$1 (element) {
5264
  return player;
5265
  }
5266
 
5267
- // get file extension
5268
- function getFileExtension(url) {
5269
- return url.split(/[#?]/)[0].split('.').pop().trim();
5270
- }
5271
  // is the source hls?
5272
  function isHLS(url) {
5273
- return getFileExtension(url) === 'm3u8';
5274
  }
5275
  function getParents(elem) {
5276
  var parents = [];
@@ -5289,7 +5285,7 @@ const createPlayer = (function (_ref) {
5289
 
5290
  // dynamically load hls module if we have an hls video
5291
  if (src && isHLS(src)) {
5292
- return Promise.resolve().then(function () { return require('./hls-fd02ef4c.js'); }).then(function (module) {
5293
  var hls = module.default;
5294
  return hls({
5295
  config: config,
@@ -5427,7 +5423,7 @@ function transform ({ preset = {}, chapters, branding, src, analytics, automatio
5427
  return playerSettings;
5428
  }
5429
 
5430
- const prestoPlayerCss = "@charset \"UTF-8\";@keyframes plyr-progress{to{background-position:var(--plyr-progress-loading-size, 25px) 0}}@keyframes plyr-popup{0%{opacity:0.5;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes plyr-fade-in{from{opacity:0}to{opacity:1}}.plyr{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;align-items:center;direction:ltr;display:flex;flex-direction:column;font-family:var(--plyr-font-family, inherit);font-variant-numeric:tabular-nums;font-weight:var(--plyr-font-weight-regular, 400);line-height:var(--plyr-line-height, 1.7);max-width:100%;min-width:200px;position:relative;text-shadow:none;transition:box-shadow 0.3s ease;z-index:0}.plyr video,.plyr audio,.plyr iframe{display:block;height:100%;width:100%}.plyr button{font:inherit;line-height:inherit;width:auto}.plyr:focus{outline:0}.plyr--full-ui{box-sizing:border-box}.plyr--full-ui *,.plyr--full-ui *::after,.plyr--full-ui *::before{box-sizing:inherit}.plyr--full-ui a,.plyr--full-ui button,.plyr--full-ui input,.plyr--full-ui label{touch-action:manipulation}.plyr__badge{background:var(--plyr-badge-background, #4a5464);border-radius:var(--plyr-badge-border-radius, 2px);color:var(--plyr-badge-text-color, #fff);font-size:var(--plyr-font-size-badge, 9px);line-height:1;padding:3px 4px}.plyr--full-ui ::-webkit-media-text-track-container{display:none}.plyr__captions{animation:plyr-fade-in 0.3s ease;bottom:0;display:none;font-size:var(--plyr-font-size-small, 13px);left:0;padding:var(--plyr-control-spacing, 10px);position:absolute;text-align:center;transition:transform 0.4s ease-in-out;width:100%}.plyr__captions span:empty{display:none}@media (min-width: 480px){.plyr__captions{font-size:var(--plyr-font-size-base, 15px);padding:calc(var(--plyr-control-spacing, 10px) * 2)}}@media (min-width: 768px){.plyr__captions{font-size:var(--plyr-font-size-large, 18px)}}.plyr--captions-active .plyr__captions{display:block}.plyr:not(.plyr--hide-controls) .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(calc(var(--plyr-control-spacing, 10px) * -4))}.plyr__caption{background:var(--plyr-captions-background, rgba(0, 0, 0, 0.8));border-radius:2px;box-decoration-break:clone;color:var(--plyr-captions-text-color, #fff);line-height:185%;padding:0.2em 0.5em;white-space:pre-wrap}.plyr__caption div{display:inline}.plyr__control{background:transparent;border:0;border-radius:var(--plyr-control-radius, 3px);color:inherit;cursor:pointer;flex-shrink:0;overflow:visible;padding:calc(var(--plyr-control-spacing, 10px) * 0.7);position:relative;transition:all 0.3s ease}.plyr__control svg{display:block;fill:currentColor;height:var(--plyr-control-icon-size, 18px);pointer-events:none;width:var(--plyr-control-icon-size, 18px)}.plyr__control:focus{outline:0}.plyr__control.plyr__tab-focus{outline-color:var(--plyr-tab-focus-color, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));outline-offset:2px;outline-style:dotted;outline-width:3px}a.plyr__control{text-decoration:none}a.plyr__control::after,a.plyr__control::before{display:none}.plyr__control:not(.plyr__control--pressed) .icon--pressed,.plyr__control.plyr__control--pressed .icon--not-pressed,.plyr__control:not(.plyr__control--pressed) .label--pressed,.plyr__control.plyr__control--pressed .label--not-pressed{display:none}.plyr--full-ui ::-webkit-media-controls{display:none}.plyr__controls{align-items:center;display:flex;justify-content:flex-end;text-align:center}.plyr__controls .plyr__progress__container{flex:1;min-width:0}.plyr__controls .plyr__controls__item{margin-left:calc(var(--plyr-control-spacing, 10px) / 4)}.plyr__controls .plyr__controls__item:first-child{margin-left:0;margin-right:auto}.plyr__controls .plyr__controls__item.plyr__progress__container{padding-left:calc(var(--plyr-control-spacing, 10px) / 4)}.plyr__controls .plyr__controls__item.plyr__time{padding:0 calc(var(--plyr-control-spacing, 10px) / 2)}.plyr__controls .plyr__controls__item.plyr__progress__container:first-child,.plyr__controls .plyr__controls__item.plyr__time:first-child,.plyr__controls .plyr__controls__item.plyr__time+.plyr__time{padding-left:0}.plyr__controls:empty{display:none}.plyr [data-plyr=captions],.plyr [data-plyr=pip],.plyr [data-plyr=airplay],.plyr [data-plyr=fullscreen]{display:none}.plyr--captions-enabled [data-plyr=captions],.plyr--pip-supported [data-plyr=pip],.plyr--airplay-supported [data-plyr=airplay],.plyr--fullscreen-enabled [data-plyr=fullscreen]{display:inline-block}.plyr__menu{display:flex;position:relative}.plyr__menu .plyr__control svg{transition:transform 0.3s ease}.plyr__menu .plyr__control[aria-expanded=true] svg{transform:rotate(90deg)}.plyr__menu .plyr__control[aria-expanded=true] .plyr__tooltip{display:none}.plyr__menu__container{animation:plyr-popup 0.2s ease;background:var(--plyr-menu-background, rgba(255, 255, 255, 0.9));border-radius:4px;bottom:100%;box-shadow:var(--plyr-menu-shadow, 0 1px 2px rgba(0, 0, 0, 0.15));color:var(--plyr-menu-color, #4a5464);font-size:var(--plyr-font-size-base, 15px);margin-bottom:10px;position:absolute;right:-3px;text-align:left;white-space:nowrap;z-index:3}.plyr__menu__container>div{overflow:hidden;transition:height 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.4, 0, 0.2, 1)}.plyr__menu__container::after{border:var(--plyr-menu-arrow-size, 4px) solid transparent;border-top-color:var(--plyr-menu-background, rgba(255, 255, 255, 0.9));content:\"\";height:0;position:absolute;right:calc(((var(--plyr-control-icon-size, 18px) / 2) + calc(var(--plyr-control-spacing, 10px) * 0.7)) - (var(--plyr-menu-arrow-size, 4px) / 2));top:100%;width:0}.plyr__menu__container [role=menu]{padding:calc(var(--plyr-control-spacing, 10px) * 0.7)}.plyr__menu__container [role=menuitem],.plyr__menu__container [role=menuitemradio]{margin-top:2px}.plyr__menu__container [role=menuitem]:first-child,.plyr__menu__container [role=menuitemradio]:first-child{margin-top:0}.plyr__menu__container .plyr__control{align-items:center;color:var(--plyr-menu-color, #4a5464);display:flex;font-size:var(--plyr-font-size-menu, var(--plyr-font-size-small, 13px));padding-bottom:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) / 1.5);padding-left:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 1.5);padding-right:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 1.5);padding-top:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) / 1.5);user-select:none;width:100%}.plyr__menu__container .plyr__control>span{align-items:inherit;display:flex;width:100%}.plyr__menu__container .plyr__control::after{border:var(--plyr-menu-item-arrow-size, 4px) solid transparent;content:\"\";position:absolute;top:50%;transform:translateY(-50%)}.plyr__menu__container .plyr__control--forward{padding-right:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 4)}.plyr__menu__container .plyr__control--forward::after{border-left-color:var(--plyr-menu-arrow-color, #728197);right:calc((calc(var(--plyr-control-spacing, 10px) * 0.7) * 1.5) - var(--plyr-menu-item-arrow-size, 4px))}.plyr__menu__container .plyr__control--forward.plyr__tab-focus::after,.plyr__menu__container .plyr__control--forward:hover::after{border-left-color:currentColor}.plyr__menu__container .plyr__control--back{font-weight:var(--plyr-font-weight-regular, 400);margin:calc(var(--plyr-control-spacing, 10px) * 0.7);margin-bottom:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) / 2);padding-left:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 4);position:relative;width:calc(100% - (calc(var(--plyr-control-spacing, 10px) * 0.7) * 2))}.plyr__menu__container .plyr__control--back::after{border-right-color:var(--plyr-menu-arrow-color, #728197);left:calc((calc(var(--plyr-control-spacing, 10px) * 0.7) * 1.5) - var(--plyr-menu-item-arrow-size, 4px))}.plyr__menu__container .plyr__control--back::before{background:var(--plyr-menu-back-border-color, #dcdfe5);box-shadow:0 1px 0 var(--plyr-menu-back-border-shadow-color, #fff);content:\"\";height:1px;left:0;margin-top:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) / 2);overflow:hidden;position:absolute;right:0;top:100%}.plyr__menu__container .plyr__control--back.plyr__tab-focus::after,.plyr__menu__container .plyr__control--back:hover::after{border-right-color:currentColor}.plyr__menu__container .plyr__control[role=menuitemradio]{padding-left:calc(var(--plyr-control-spacing, 10px) * 0.7)}.plyr__menu__container .plyr__control[role=menuitemradio]::before,.plyr__menu__container .plyr__control[role=menuitemradio]::after{border-radius:100%}.plyr__menu__container .plyr__control[role=menuitemradio]::before{background:rgba(0, 0, 0, 0.1);content:\"\";display:block;flex-shrink:0;height:16px;margin-right:var(--plyr-control-spacing, 10px);transition:all 0.3s ease;width:16px}.plyr__menu__container .plyr__control[role=menuitemradio]::after{background:#fff;border:0;height:6px;left:12px;opacity:0;top:50%;transform:translateY(-50%) scale(0);transition:transform 0.3s ease, opacity 0.3s ease;width:6px}.plyr__menu__container .plyr__control[role=menuitemradio][aria-checked=true]::before{background:var(--plyr-control-toggle-checked-background, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)))}.plyr__menu__container .plyr__control[role=menuitemradio][aria-checked=true]::after{opacity:1;transform:translateY(-50%) scale(1)}.plyr__menu__container .plyr__control[role=menuitemradio].plyr__tab-focus::before,.plyr__menu__container .plyr__control[role=menuitemradio]:hover::before{background:rgba(35, 40, 47, 0.1)}.plyr__menu__container .plyr__menu__value{align-items:center;display:flex;margin-left:auto;margin-right:calc((calc(var(--plyr-control-spacing, 10px) * 0.7) - 2) * -1);overflow:hidden;padding-left:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 3.5);pointer-events:none}.plyr--full-ui input[type=range]{-webkit-appearance:none;background:transparent;border:0;border-radius:calc(var(--plyr-range-thumb-height, 13px) * 2);color:var(--plyr-range-fill-background, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));display:block;height:calc((var(--plyr-range-thumb-active-shadow-width, 3px) * 2) + var(--plyr-range-thumb-height, 13px));margin:0;min-width:0;padding:0;transition:box-shadow 0.3s ease;width:100%}.plyr--full-ui input[type=range]::-webkit-slider-runnable-track{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none;background-image:linear-gradient(to right, currentColor var(--value, 0%), transparent var(--value, 0%))}.plyr--full-ui input[type=range]::-webkit-slider-thumb{background:var(--plyr-range-thumb-background, #fff);border:0;border-radius:100%;box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2));height:var(--plyr-range-thumb-height, 13px);position:relative;transition:all 0.2s ease;width:var(--plyr-range-thumb-height, 13px);-webkit-appearance:none;margin-top:calc(((var(--plyr-range-thumb-height, 13px) - var(--plyr-range-track-height, 5px)) / 2) * -1)}.plyr--full-ui input[type=range]::-moz-range-track{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none}.plyr--full-ui input[type=range]::-moz-range-thumb{background:var(--plyr-range-thumb-background, #fff);border:0;border-radius:100%;box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2));height:var(--plyr-range-thumb-height, 13px);position:relative;transition:all 0.2s ease;width:var(--plyr-range-thumb-height, 13px)}.plyr--full-ui input[type=range]::-moz-range-progress{background:currentColor;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px)}.plyr--full-ui input[type=range]::-ms-track{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none;color:transparent}.plyr--full-ui input[type=range]::-ms-fill-upper{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none}.plyr--full-ui input[type=range]::-ms-fill-lower{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none;background:currentColor}.plyr--full-ui input[type=range]::-ms-thumb{background:var(--plyr-range-thumb-background, #fff);border:0;border-radius:100%;box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2));height:var(--plyr-range-thumb-height, 13px);position:relative;transition:all 0.2s ease;width:var(--plyr-range-thumb-height, 13px);margin-top:0}.plyr--full-ui input[type=range]::-ms-tooltip{display:none}.plyr--full-ui input[type=range]:focus{outline:0}.plyr--full-ui input[type=range]::-moz-focus-outer{border:0}.plyr--full-ui input[type=range].plyr__tab-focus::-webkit-slider-runnable-track{outline-color:var(--plyr-tab-focus-color, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));outline-offset:2px;outline-style:dotted;outline-width:3px}.plyr--full-ui input[type=range].plyr__tab-focus::-moz-range-track{outline-color:var(--plyr-tab-focus-color, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));outline-offset:2px;outline-style:dotted;outline-width:3px}.plyr--full-ui input[type=range].plyr__tab-focus::-ms-track{outline-color:var(--plyr-tab-focus-color, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));outline-offset:2px;outline-style:dotted;outline-width:3px}.plyr__poster{background-color:var(--plyr-video-background, var(--plyr-video-background, black));background-position:50% 50%;background-repeat:no-repeat;background-size:contain;height:100%;left:0;opacity:0;position:absolute;top:0;transition:opacity 0.2s ease;width:100%;z-index:1}.plyr--stopped.plyr__poster-enabled .plyr__poster{opacity:1}.plyr--youtube.plyr--paused.plyr__poster-enabled:not(.plyr--stopped) .plyr__poster{display:none}.plyr__time{font-size:var(--plyr-font-size-time, var(--plyr-font-size-small, 13px))}.plyr__time+.plyr__time::before{content:\"⁄\";margin-right:var(--plyr-control-spacing, 10px)}@media (max-width: 767px){.plyr__time+.plyr__time{display:none}}.plyr__tooltip{background:var(--plyr-tooltip-background, rgba(255, 255, 255, 0.9));border-radius:var(--plyr-tooltip-radius, 3px);bottom:100%;box-shadow:var(--plyr-tooltip-shadow, 0 1px 2px rgba(0, 0, 0, 0.15));color:var(--plyr-tooltip-color, #4a5464);font-size:var(--plyr-font-size-small, 13px);font-weight:var(--plyr-font-weight-regular, 400);left:50%;line-height:1.3;margin-bottom:calc(calc(var(--plyr-control-spacing, 10px) / 2) * 2);opacity:0;padding:calc(var(--plyr-control-spacing, 10px) / 2) calc(calc(var(--plyr-control-spacing, 10px) / 2) * 1.5);pointer-events:none;position:absolute;transform:translate(-50%, 10px) scale(0.8);transform-origin:50% 100%;transition:transform 0.2s 0.1s ease, opacity 0.2s 0.1s ease;white-space:nowrap;z-index:2}.plyr__tooltip::before{border-left:var(--plyr-tooltip-arrow-size, 4px) solid transparent;border-right:var(--plyr-tooltip-arrow-size, 4px) solid transparent;border-top:var(--plyr-tooltip-arrow-size, 4px) solid var(--plyr-tooltip-background, rgba(255, 255, 255, 0.9));bottom:calc(var(--plyr-tooltip-arrow-size, 4px) * -1);content:\"\";height:0;left:50%;position:absolute;transform:translateX(-50%);width:0;z-index:2}.plyr .plyr__control:hover .plyr__tooltip,.plyr .plyr__control.plyr__tab-focus .plyr__tooltip,.plyr__tooltip--visible{opacity:1;transform:translate(-50%, 0) scale(1)}.plyr .plyr__control:hover .plyr__tooltip{z-index:3}.plyr__controls>.plyr__control:first-child .plyr__tooltip,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip{left:0;transform:translate(0, 10px) scale(0.8);transform-origin:0 100%}.plyr__controls>.plyr__control:first-child .plyr__tooltip::before,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip::before{left:calc((var(--plyr-control-icon-size, 18px) / 2) + calc(var(--plyr-control-spacing, 10px) * 0.7))}.plyr__controls>.plyr__control:last-child .plyr__tooltip{left:auto;right:0;transform:translate(0, 10px) scale(0.8);transform-origin:100% 100%}.plyr__controls>.plyr__control:last-child .plyr__tooltip::before{left:auto;right:calc((var(--plyr-control-icon-size, 18px) / 2) + calc(var(--plyr-control-spacing, 10px) * 0.7));transform:translateX(50%)}.plyr__controls>.plyr__control:first-child:hover .plyr__tooltip,.plyr__controls>.plyr__control:first-child.plyr__tab-focus .plyr__tooltip,.plyr__controls>.plyr__control:first-child .plyr__tooltip--visible,.plyr__controls>.plyr__control:first-child+.plyr__control:hover .plyr__tooltip,.plyr__controls>.plyr__control:first-child+.plyr__control.plyr__tab-focus .plyr__tooltip,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip--visible,.plyr__controls>.plyr__control:last-child:hover .plyr__tooltip,.plyr__controls>.plyr__control:last-child.plyr__tab-focus .plyr__tooltip,.plyr__controls>.plyr__control:last-child .plyr__tooltip--visible{transform:translate(0, 0) scale(1)}.plyr__progress{left:calc(var(--plyr-range-thumb-height, 13px) * 0.5);margin-right:var(--plyr-range-thumb-height, 13px);position:relative}.plyr__progress input[type=range],.plyr__progress__buffer{margin-left:calc(var(--plyr-range-thumb-height, 13px) * -0.5);margin-right:calc(var(--plyr-range-thumb-height, 13px) * -0.5);width:calc(100% + var(--plyr-range-thumb-height, 13px))}.plyr__progress input[type=range]{position:relative;z-index:2}.plyr__progress .plyr__tooltip{font-size:var(--plyr-font-size-time, var(--plyr-font-size-small, 13px));left:0}.plyr__progress__buffer{-webkit-appearance:none;background:transparent;border:0;border-radius:100px;height:var(--plyr-range-track-height, 5px);left:0;margin-top:calc((var(--plyr-range-track-height, 5px) / 2) * -1);padding:0;position:absolute;top:50%}.plyr__progress__buffer::-webkit-progress-bar{background:transparent}.plyr__progress__buffer::-webkit-progress-value{background:currentColor;border-radius:100px;min-width:var(--plyr-range-track-height, 5px);transition:width 0.2s ease}.plyr__progress__buffer::-moz-progress-bar{background:currentColor;border-radius:100px;min-width:var(--plyr-range-track-height, 5px);transition:width 0.2s ease}.plyr__progress__buffer::-ms-fill{border-radius:100px;transition:width 0.2s ease}.plyr--loading .plyr__progress__buffer{animation:plyr-progress 1s linear infinite;background-image:linear-gradient(-45deg, var(--plyr-progress-loading-background, rgba(35, 40, 47, 0.6)) 25%, transparent 25%, transparent 50%, var(--plyr-progress-loading-background, rgba(35, 40, 47, 0.6)) 50%, var(--plyr-progress-loading-background, rgba(35, 40, 47, 0.6)) 75%, transparent 75%, transparent);background-repeat:repeat-x;background-size:var(--plyr-progress-loading-size, 25px) var(--plyr-progress-loading-size, 25px);color:transparent}.plyr--video.plyr--loading .plyr__progress__buffer{background-color:var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25))}.plyr--audio.plyr--loading .plyr__progress__buffer{background-color:var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6))}.plyr__volume{align-items:center;display:flex;max-width:110px;min-width:80px;position:relative;width:20%}.plyr__volume input[type=range]{margin-left:calc(var(--plyr-control-spacing, 10px) / 2);margin-right:calc(var(--plyr-control-spacing, 10px) / 2);position:relative;z-index:2}.plyr--is-ios .plyr__volume{min-width:0;width:auto}.plyr--audio{display:block}.plyr--audio .plyr__controls{background:var(--plyr-audio-controls-background, #fff);border-radius:inherit;color:var(--plyr-audio-control-color, #4a5464);padding:var(--plyr-control-spacing, 10px)}.plyr--audio .plyr__control.plyr__tab-focus,.plyr--audio .plyr__control:hover,.plyr--audio .plyr__control[aria-expanded=true]{background:var(--plyr-audio-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));color:var(--plyr-audio-control-color-hover, #fff)}.plyr--full-ui.plyr--audio input[type=range]::-webkit-slider-runnable-track{background-color:var(--plyr-audio-range-track-background, var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6)))}.plyr--full-ui.plyr--audio input[type=range]::-moz-range-track{background-color:var(--plyr-audio-range-track-background, var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6)))}.plyr--full-ui.plyr--audio input[type=range]::-ms-track{background-color:var(--plyr-audio-range-track-background, var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6)))}.plyr--full-ui.plyr--audio input[type=range]:active::-webkit-slider-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(35, 40, 47, 0.1))}.plyr--full-ui.plyr--audio input[type=range]:active::-moz-range-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(35, 40, 47, 0.1))}.plyr--full-ui.plyr--audio input[type=range]:active::-ms-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(35, 40, 47, 0.1))}.plyr--audio .plyr__progress__buffer{color:var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6))}.plyr--video{background:var(--plyr-video-background, var(--plyr-video-background, black));overflow:hidden}.plyr--video.plyr--menu-open{overflow:visible}.plyr__video-wrapper{background:var(--plyr-video-background, var(--plyr-video-background, black));margin:auto;overflow:hidden;position:relative;width:100%}.plyr__video-embed,.plyr__video-wrapper--fixed-ratio{aspect-ratio:16/9}@supports not (aspect-ratio: 16/9){.plyr__video-embed,.plyr__video-wrapper--fixed-ratio{height:0;padding-bottom:56.25%;position:relative}}.plyr__video-embed iframe,.plyr__video-wrapper--fixed-ratio video{border:0;height:100%;left:0;position:absolute;top:0;width:100%}.plyr--full-ui .plyr__video-embed>.plyr__video-embed__container{padding-bottom:240%;position:relative;transform:translateY(-38.28125%)}.plyr--video .plyr__controls{background:var(--plyr-video-controls-background, linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75)));border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;bottom:0;color:var(--plyr-video-control-color, #fff);left:0;padding:calc(var(--plyr-control-spacing, 10px) / 2);padding-top:calc(var(--plyr-control-spacing, 10px) * 2);position:absolute;right:0;transition:opacity 0.4s ease-in-out, transform 0.4s ease-in-out;z-index:3}@media (min-width: 480px){.plyr--video .plyr__controls{padding:var(--plyr-control-spacing, 10px);padding-top:calc(var(--plyr-control-spacing, 10px) * 3.5)}}.plyr--video.plyr--hide-controls .plyr__controls{opacity:0;pointer-events:none;transform:translateY(100%)}.plyr--video .plyr__control.plyr__tab-focus,.plyr--video .plyr__control:hover,.plyr--video .plyr__control[aria-expanded=true]{background:var(--plyr-video-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));color:var(--plyr-video-control-color-hover, #fff)}.plyr__control--overlaid{background:var(--plyr-video-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));border:0;border-radius:100%;color:var(--plyr-video-control-color, #fff);display:none;left:50%;opacity:0.9;padding:calc(var(--plyr-control-spacing, 10px) * 1.5);position:absolute;top:50%;transform:translate(-50%, -50%);transition:0.3s;z-index:2}.plyr__control--overlaid svg{left:2px;position:relative}.plyr__control--overlaid:hover,.plyr__control--overlaid:focus{opacity:1}.plyr--playing .plyr__control--overlaid{opacity:0;visibility:hidden}.plyr--full-ui.plyr--video .plyr__control--overlaid{display:block}.plyr--full-ui.plyr--video input[type=range]::-webkit-slider-runnable-track{background-color:var(--plyr-video-range-track-background, var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25)))}.plyr--full-ui.plyr--video input[type=range]::-moz-range-track{background-color:var(--plyr-video-range-track-background, var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25)))}.plyr--full-ui.plyr--video input[type=range]::-ms-track{background-color:var(--plyr-video-range-track-background, var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25)))}.plyr--full-ui.plyr--video input[type=range]:active::-webkit-slider-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(255, 255, 255, 0.5))}.plyr--full-ui.plyr--video input[type=range]:active::-moz-range-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(255, 255, 255, 0.5))}.plyr--full-ui.plyr--video input[type=range]:active::-ms-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(255, 255, 255, 0.5))}.plyr--video .plyr__progress__buffer{color:var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25))}.plyr:fullscreen{background:#000;border-radius:0 !important;height:100%;margin:0;width:100%}.plyr:fullscreen video{height:100%}.plyr:fullscreen .plyr__control .icon--exit-fullscreen{display:block}.plyr:fullscreen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:fullscreen.plyr--hide-controls{cursor:none}@media (min-width: 1024px){.plyr:fullscreen .plyr__captions{font-size:var(--plyr-font-size-xlarge, 21px)}}.plyr:-webkit-full-screen{background:#000;border-radius:0 !important;height:100%;margin:0;width:100%}.plyr:-webkit-full-screen video{height:100%}.plyr:-webkit-full-screen .plyr__control .icon--exit-fullscreen{display:block}.plyr:-webkit-full-screen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:-webkit-full-screen.plyr--hide-controls{cursor:none}@media (min-width: 1024px){.plyr:-webkit-full-screen .plyr__captions{font-size:var(--plyr-font-size-xlarge, 21px)}}.plyr:-moz-full-screen{background:#000;border-radius:0 !important;height:100%;margin:0;width:100%}.plyr:-moz-full-screen video{height:100%}.plyr:-moz-full-screen .plyr__control .icon--exit-fullscreen{display:block}.plyr:-moz-full-screen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:-moz-full-screen.plyr--hide-controls{cursor:none}@media (min-width: 1024px){.plyr:-moz-full-screen .plyr__captions{font-size:var(--plyr-font-size-xlarge, 21px)}}.plyr:-ms-fullscreen{background:#000;border-radius:0 !important;height:100%;margin:0;width:100%}.plyr:-ms-fullscreen video{height:100%}.plyr:-ms-fullscreen .plyr__control .icon--exit-fullscreen{display:block}.plyr:-ms-fullscreen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:-ms-fullscreen.plyr--hide-controls{cursor:none}@media (min-width: 1024px){.plyr:-ms-fullscreen .plyr__captions{font-size:var(--plyr-font-size-xlarge, 21px)}}.plyr--fullscreen-fallback{background:#000;border-radius:0 !important;height:100%;margin:0;width:100%;bottom:0;display:block;left:0;position:fixed;right:0;top:0;z-index:10000000}.plyr--fullscreen-fallback video{height:100%}.plyr--fullscreen-fallback .plyr__control .icon--exit-fullscreen{display:block}.plyr--fullscreen-fallback .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr--fullscreen-fallback.plyr--hide-controls{cursor:none}@media (min-width: 1024px){.plyr--fullscreen-fallback .plyr__captions{font-size:var(--plyr-font-size-xlarge, 21px)}}.plyr__ads{border-radius:inherit;bottom:0;cursor:pointer;left:0;overflow:hidden;position:absolute;right:0;top:0;z-index:-1}.plyr__ads>div,.plyr__ads>div iframe{height:100%;position:absolute;width:100%}.plyr__ads::after{background:#23282f;border-radius:2px;bottom:var(--plyr-control-spacing, 10px);color:#fff;content:attr(data-badge-text);font-size:11px;padding:2px 6px;pointer-events:none;position:absolute;right:var(--plyr-control-spacing, 10px);z-index:3}.plyr__ads::after:empty{display:none}.plyr__cues{background:currentColor;display:block;height:var(--plyr-range-track-height, 5px);left:0;margin:-var(--plyr-range-track-height, 5px)/2 0 0;opacity:0.8;position:absolute;top:50%;width:3px;z-index:3}.plyr__preview-thumb{background-color:var(--plyr-tooltip-background, rgba(255, 255, 255, 0.9));border-radius:3px;bottom:100%;box-shadow:var(--plyr-tooltip-shadow, 0 1px 2px rgba(0, 0, 0, 0.15));margin-bottom:calc(calc(var(--plyr-control-spacing, 10px) / 2) * 2);opacity:0;padding:var(--plyr-tooltip-radius, 3px);pointer-events:none;position:absolute;transform:translate(0, 10px) scale(0.8);transform-origin:50% 100%;transition:transform 0.2s 0.1s ease, opacity 0.2s 0.1s ease;z-index:2}.plyr__preview-thumb--is-shown{opacity:1;transform:translate(0, 0) scale(1)}.plyr__preview-thumb::before{border-left:var(--plyr-tooltip-arrow-size, 4px) solid transparent;border-right:var(--plyr-tooltip-arrow-size, 4px) solid transparent;border-top:var(--plyr-tooltip-arrow-size, 4px) solid var(--plyr-tooltip-background, rgba(255, 255, 255, 0.9));bottom:calc(var(--plyr-tooltip-arrow-size, 4px) * -1);content:\"\";height:0;left:50%;position:absolute;transform:translateX(-50%);width:0;z-index:2}.plyr__preview-thumb__image-container{background:#c1c8d1;border-radius:calc(var(--plyr-tooltip-radius, 3px) - 1px);overflow:hidden;position:relative;z-index:0}.plyr__preview-thumb__image-container img{height:100%;left:0;max-height:none;max-width:none;position:absolute;top:0;width:100%}.plyr__preview-thumb__time-container{bottom:6px;left:0;position:absolute;right:0;white-space:nowrap;z-index:3}.plyr__preview-thumb__time-container span{background-color:rgba(0, 0, 0, 0.55);border-radius:calc(var(--plyr-tooltip-radius, 3px) - 1px);color:#fff;font-size:var(--plyr-font-size-time, var(--plyr-font-size-small, 13px));padding:3px 6px}.plyr__preview-scrubbing{bottom:0;filter:blur(1px);height:100%;left:0;margin:auto;opacity:0;overflow:hidden;pointer-events:none;position:absolute;right:0;top:0;transition:opacity 0.3s ease;width:100%;z-index:1}.plyr__preview-scrubbing--is-shown{opacity:1}.plyr__preview-scrubbing img{height:100%;left:0;max-height:none;max-width:none;object-fit:contain;position:absolute;top:0;width:100%}.plyr--no-transition{transition:none !important}.plyr__sr-only{clip:rect(1px, 1px, 1px, 1px);overflow:hidden;border:0 !important;height:1px !important;padding:0 !important;position:absolute !important;width:1px !important}.plyr [hidden]{display:none !important}video,iframe{max-width:100%}.presto-player__wrapper{position:relative;font-family:-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"}.presto-player__wrapper.rtl{direction:rtl}.presto-player__wrapper img{max-width:100%}.presto-player__wrapper .plyr.plyr--video.plyr--menu-open{overflow:hidden}.presto-player__wrapper .plyr--fullscreen-fallback.plyr--vimeo .plyr__video-wrapper{top:50%;transform:translateY(-50%)}.presto-player__wrapper .plyr--fullscreen-fallback.plyr{border-radius:0 !important}.presto-player__wrapper .plyr--fullscreen-fallback.plyr iframe{border-radius:0 !important}.presto-player__wrapper .plyr__menu__container{overflow:auto}.presto-player__wrapper .plyr__menu__container:after{display:none}.presto-player__wrapper img{border:none}.presto-player__wrapper video{margin:auto}.presto-player__wrapper iframe{height:100%}.presto-player__wrapper .plyr--video .plyr__control:active,.presto-player__wrapper .plyr--video .plyr__control:focus{background:#00b3ff;background:var(--plyr-video-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));color:#fff;color:var(--plyr-video-control-color-hover, #fff)}.presto-player__wrapper .plyr__poster{background-size:cover;z-index:2}.presto-player__wrapper .presto-player__logo{margin:0;display:block;position:absolute;z-index:3;opacity:0.5;object-fit:contain;transition:bottom 0.4s ease-in-out;max-width:var(--presto-player-logo-width, 75px)}.presto-player__wrapper .presto-player__logo.is-bottom-right{left:auto;right:20px;top:auto;bottom:60px}.presto-player__wrapper .presto-player__logo.is-bottom-left{left:20px;right:auto;top:auto;bottom:60px}@media screen and (min-width: 380px){.presto-player__wrapper.presto-player--hide-controls .presto-player__logo.is-bottom-right,.presto-player__wrapper.presto-player--hide-controls .presto-player__logo.is-bottom-left,.presto-player__wrapper .plyr--hide-controls .presto-player__logo.is-bottom-right,.presto-player__wrapper .plyr--hide-controls .presto-player__logo.is-bottom-left{bottom:20px}}.presto-player__wrapper .presto-player-progress__marker{width:16px;height:16px;padding:0;border:2px solid rgba(255, 255, 255, 0.5);position:absolute;border-radius:9999px;bottom:calc(50% - 8px);z-index:9;margin-left:-8px !important}.presto-player__wrapper.presto-player--ended .plyr--youtube .plyr__poster{display:none}.presto-player__wrapper.presto-player--ended .plyr--youtube .plyr__control.plyr__control--overlaid{display:none}.presto-player__wrapper button.plyr__control.plyr__control--overlaid:focus{background:inherit;border:none;outline:0;position:absolute;top:50%;transform:translate(-50%, -50%)}.presto-player__wrapper .plyr__controls__item.plyr__progress__container{position:relative}.presto-player__wrapper .plyr--full-ui.plyr--video input[type=range]::-webkit-slider-runnable-track{box-shadow:none}.presto-player__wrapper .plyr--video .plyr__controls{background:var(--plyr-video-controls-background, linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.75)))}.presto-player__wrapper .presto-player-toc{font-family:-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";line-height:1.4;position:absolute;top:auto;right:0;left:0;bottom:0;max-height:calc(100%);max-width:calc(100%);background:rgba(255, 255, 255, 0.9);background:var(--plyr-menu-background, rgba(255, 255, 255, 0.9));left:auto;padding:20px 15px;border-radius:4px;width:100%;z-index:9;box-shadow:0 1px 2px rgba(0, 0, 0, 0.15);box-shadow:var(--plyr-menu-shadow, 0 1px 2px rgba(0, 0, 0, 0.15));color:#4a5464;color:var(--plyr-menu-color, #4a5464);font-size:15px;font-size:var(--plyr-font-size-base, 15px);white-space:nowrap;z-index:3;display:flex;flex-direction:column;transition:bottom 0.25s ease}@media screen and (min-width: 380px){.presto-player__wrapper .presto-player-toc{right:20px;bottom:60px;width:300px;max-height:calc(100% - 80px);max-width:calc(100vw - 70px)}}.presto-player__wrapper .presto-player-toc__wrapper{position:absolute;top:0;left:0;bottom:0;right:0;z-index:3;visibility:hidden;opacity:0;transition:opacity 0.3s ease-in-out, visibility 0.3s ease-in-out}.presto-player__wrapper .presto-player-toc__wrapper.is-showing{visibility:visible;opacity:1}.presto-player__wrapper .presto-player-toc__cover{position:absolute;top:0;left:0;bottom:0;right:0;z-index:3}.presto-player__wrapper .presto-player-toc__list{flex:1;overflow:auto}.presto-player__wrapper .presto-player-toc__title{font-size:12px;font-weight:bold;margin-bottom:10px;margin-left:10px;margin-right:10px;display:none}@media screen and (min-width: 380px){.presto-player__wrapper .presto-player-toc__title{display:block}}.presto-player__wrapper .presto-player-toc__name{white-space:nowrap;overflow:hidden;width:100%;text-overflow:ellipsis}.presto-player__wrapper .presto-player-toc__chapter{padding:12px;border-radius:3px;cursor:pointer;line-height:1;display:flex;align-items:center;transition:background-color 0.4s ease, color 0.4s ease;margin-bottom:2px;position:relative}.presto-player__wrapper .presto-player-toc__chapter:last-child{margin-bottom:0}.presto-player__wrapper .presto-player-toc__chapter.is-highlighted,.presto-player__wrapper .presto-player-toc__chapter:hover{background:#00b3ff;background:var(--plyr-video-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));color:#fff;color:var(--plyr-video-control-color-hover, #fff)}.presto-player__wrapper .presto-player-toc__chapter.is-highlighted{padding-right:30px}.presto-player__wrapper .presto-player-toc__chapter.is-highlighted:after{background:rgba(255, 255, 255, 0.5);content:\"\";display:block;flex-shrink:0;height:8px;width:8px;margin-right:10px;margin-right:var(--plyr-control-spacing, 10px);transition:all 0.3s ease;border-radius:9999px;position:absolute;right:7px}.presto-player__wrapper .presto-player-toc__order{margin-right:12px;opacity:0.5}.presto-player__wrapper.rtl{direction:rtl}.presto-player__wrapper.rtl .presto-player-toc__order{order:2;margin-left:12px;margin-right:0}.presto-player__wrapper.rtl .presto-player-toc__name{direction:rtl}.presto-player__wrapper .presto-player-error{position:absolute;top:0;left:0;bottom:0;right:0;background:rgba(0, 0, 0, 0.9);color:#fff;display:flex;align-items:center;justify-content:center;z-index:10;text-align:center}.presto-player__wrapper .presto-player-error__title{font-size:18px;font-weight:bold;margin-bottom:8px}.presto-player__wrapper .presto-player-error__description{opacity:0.75}.presto-player__wrapper.hide-youtube-ui .plyr__video-embed iframe{top:-50%;height:200%}.presto-player__wrapper .plyr--vimeo.plyr--playing .plyr__video-embed__container{pointer-events:none}.presto-player__wrapper .plyr__control--overlaid{border-radius:6px;padding-left:26px;padding-right:26px;position:absolute !important;top:50% !important}.presto-player__wrapper.skin-stacked .plyr__controls{flex-wrap:wrap}.presto-player__wrapper.skin-stacked .presto-player-progress__marker{transform:scale(0.75)}.presto-player__wrapper.skin-stacked .plyr__controls{justify-content:flex-start}.presto-player__wrapper.skin-stacked .plyr__controls__item.plyr__progress__container{order:-1;flex:1 0 100%}.presto-player__wrapper.skin-stacked .plyr__controls__item.plyr__progress__container+:not(.plyr__time),.presto-player__wrapper.skin-stacked .plyr__controls__item.plyr__progress__container+.plyr__time+*{margin-left:auto}.presto-player__wrapper.skin-stacked .plyr__controls .plyr__controls__item:first-child{margin:0}.presto-player__wrapper.skin-stacked .plyr__progress{height:19px;display:flex;align-items:center}.presto-player__wrapper.skin-stacked .plyr__progress .plyr__progress__buffer{height:3px;transition:all 0.25s ease;position:absolute;top:calc(50% + 1px)}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-moz-range-track{height:3px;transition:all 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-webkit-slider-runnable-track{height:3px;transition:all 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-ms-track{height:3px;transition:all 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-ms-fill-upper{height:3px;transition:all 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-ms-fill-lower{height:3px;transition:height 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-webkit-slider-thumb{visibility:hidden;opacity:0;transition:opacity 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-moz-range-thumb{visibility:hidden;opacity:0;transition:opacity 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-ms-thumb{visibility:hidden;opacity:0;transition:opacity 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .presto-player-progress__marker{transform:scale(1)}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress .plyr__progress__buffer{height:5px;top:calc(50%)}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]{overflow:visible}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-moz-range-track{height:5px}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-webkit-slider-runnable-track{height:5px}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-ms-track{height:5px}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-ms-fill-upper{height:5px}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-ms-fill-lower{height:5px}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-webkit-slider-thumb{visibility:visible;opacity:1}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-moz-range-thumb{visibility:visible;opacity:1}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-ms-thumb{visibility:visible;opacity:1}.presto-sticky-parent{z-index:99998}@media screen and (min-width: 960px){.presto-sticky{--presto-sticky-space:15px;position:fixed;z-index:3000;max-width:var(--presto-sticky-width, 380px);width:100vw}.presto-sticky .plyr__controls,.presto-sticky .presto-player-toc__wrapper,.presto-sticky presto-action-bar,.presto-sticky .presto-player__logo{display:none}.presto-sticky--top-left{top:var(--presto-sticky-space);left:var(--presto-sticky-space)}.presto-sticky--top-center{top:var(--presto-sticky-space);left:0;right:0;margin:0 auto}.presto-sticky--top-right{top:var(--presto-sticky-space);right:var(--presto-sticky-space)}.presto-sticky--center-left{top:0;bottom:0;margin:auto 0;left:var(--presto-sticky-space);display:flex;align-items:center}.presto-sticky--center-center{top:0;bottom:0;right:0;left:0;margin:auto;display:flex;align-items:center}.presto-sticky--center-right{top:0;bottom:0;margin:auto 0;right:var(--presto-sticky-space);display:flex;align-items:center}.presto-sticky--bottom-left{bottom:var(--presto-sticky-space);left:var(--presto-sticky-space)}.presto-sticky--bottom-center{bottom:var(--presto-sticky-space);left:0;right:0;margin:0 auto}.presto-sticky--bottom-right{bottom:var(--presto-sticky-space);right:var(--presto-sticky-space)}}.presto-player__overlay{position:absolute;top:50%;left:50%;z-index:3}.presto-player__muted-overlay{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center}.presto-player__muted-overlay .plyr__control--overlaid{display:block;opacity:1;visibility:visible}.presto-player__wrapper.is-muted-overlay{cursor:pointer}.presto-player__wrapper.is-muted-overlay .plyr--playing .presto-player__muted-overlay .plyr__control--overlaid{opacity:1;visibility:visible}.presto-player__wrapper.is-muted-overlay .presto-player__logo{display:none}.presto-player__wrapper.is-muted-overlay .plyr__controls{display:none}.presto-player__wrapper.is-muted-overlay .plyr .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(0) !important}.presto-player__wrapper.rtl .plyr__captions{direction:rtl}.presto-player__wrapper.caption-style-full .plyr__captions{background:var(--plyr-captions-background, rgba(0, 0, 0, 0.8));padding-top:0;padding-bottom:0}.presto-player__wrapper.caption-style-full .plyr:not(.plyr--hide-controls):not(.is-muted-overlay) .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(calc(var(--plyr-control-spacing, 13px) * -4))}.presto-player__wrapper.caption-style-full.skin-stacked .plyr:not(.plyr--hide-controls):not(.is-muted-overlay) .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(calc(var(--plyr-control-spacing, 17px) * -4))}.presto-player__play-cover{cursor:pointer;position:absolute;top:0;left:0;right:0;bottom:0;z-index:99}.presto-player__chapters{width:100%;position:absolute;top:0;height:100%}.presto-player__chapter-markers{margin:0 8px;height:100%;position:relative}.presto-player-progress__marker.plyr__controls__item.plyr__control:hover{border:0;background:#fff}.presto-iframe-fallback-container{position:relative;padding-bottom:56.25%;padding-top:30px;height:0;overflow:hidden}.presto-iframe-fallback-container embed,.presto-iframe-fallback-container iframe,.presto-iframe-fallback-container object{position:absolute;top:0;left:0;width:100%;height:100%}";
5431
 
5432
  const PrestoPlayer = class {
5433
  constructor(hostRef) {
@@ -5773,7 +5769,7 @@ const PrestoPlayer = class {
5773
  * @returns
5774
  */
5775
  handleVisibilityPlayChange(element) {
5776
- var _a;
5777
  if (this.isAdmin || !((_a = this.preset) === null || _a === void 0 ? void 0 : _a.play_video_viewport)) {
5778
  return;
5779
  }
@@ -5799,6 +5795,16 @@ const PrestoPlayer = class {
5799
  return;
5800
  }
5801
  }
 
 
 
 
 
 
 
 
 
 
5802
  if (this.player.playing) {
5803
  this.previouslyPlaying = true;
5804
  }
@@ -5836,10 +5842,13 @@ const PrestoPlayer = class {
5836
  }
5837
  }
5838
  renderCTA() {
5839
- var _a;
5840
- if (!((_a = window === null || window === void 0 ? void 0 : window.prestoPlayer) === null || _a === void 0 ? void 0 : _a.isPremium) || this.isAdmin) {
 
 
 
 
5841
  return;
5842
- }
5843
  return (index.h("presto-cta-overlay", { direction: this.direction, player: this.player, preset: this.preset, i18n: this.i18n, onPlayVideo: () => {
5844
  this.mutedPreview = false;
5845
  this.play();
5232
  var player = new Plyr(element, setup); // conditionally load learndash
5233
 
5234
  if (typeof learndash_video_data !== 'undefined') {
5235
+ Promise.resolve().then(function () { return require('./learndash-92ece24b.js'); }).then(function (module) {
5236
  var learnDash = module.default;
5237
  learnDash(player);
5238
  });
5264
  return player;
5265
  }
5266
 
 
 
 
 
5267
  // is the source hls?
5268
  function isHLS(url) {
5269
+ return typeof url === 'string' && url.includes('.m3u8');
5270
  }
5271
  function getParents(elem) {
5272
  var parents = [];
5285
 
5286
  // dynamically load hls module if we have an hls video
5287
  if (src && isHLS(src)) {
5288
+ return Promise.resolve().then(function () { return require('./hls-6775f033.js'); }).then(function (module) {
5289
  var hls = module.default;
5290
  return hls({
5291
  config: config,
5423
  return playerSettings;
5424
  }
5425
 
5426
+ const prestoPlayerCss = "@charset \"UTF-8\";@keyframes plyr-progress{to{background-position:var(--plyr-progress-loading-size, 25px) 0}}@keyframes plyr-popup{0%{opacity:0.5;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes plyr-fade-in{from{opacity:0}to{opacity:1}}.plyr{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;align-items:center;direction:ltr;display:flex;flex-direction:column;font-family:var(--plyr-font-family, inherit);font-variant-numeric:tabular-nums;font-weight:var(--plyr-font-weight-regular, 400);line-height:var(--plyr-line-height, 1.7);max-width:100%;min-width:200px;position:relative;text-shadow:none;transition:box-shadow 0.3s ease;z-index:0}.plyr video,.plyr audio,.plyr iframe{display:block;height:100%;width:100%}.plyr button{font:inherit;line-height:inherit;width:auto}.plyr:focus{outline:0}.plyr--full-ui{box-sizing:border-box}.plyr--full-ui *,.plyr--full-ui *::after,.plyr--full-ui *::before{box-sizing:inherit}.plyr--full-ui a,.plyr--full-ui button,.plyr--full-ui input,.plyr--full-ui label{touch-action:manipulation}.plyr__badge{background:var(--plyr-badge-background, #4a5464);border-radius:var(--plyr-badge-border-radius, 2px);color:var(--plyr-badge-text-color, #fff);font-size:var(--plyr-font-size-badge, 9px);line-height:1;padding:3px 4px}.plyr--full-ui ::-webkit-media-text-track-container{display:none}.plyr__captions{animation:plyr-fade-in 0.3s ease;bottom:0;display:none;font-size:var(--plyr-font-size-small, 13px);left:0;padding:var(--plyr-control-spacing, 10px);position:absolute;text-align:center;transition:transform 0.4s ease-in-out;width:100%}.plyr__captions span:empty{display:none}@media (min-width: 480px){.plyr__captions{font-size:var(--plyr-font-size-base, 15px);padding:calc(var(--plyr-control-spacing, 10px) * 2)}}@media (min-width: 768px){.plyr__captions{font-size:var(--plyr-font-size-large, 18px)}}.plyr--captions-active .plyr__captions{display:block}.plyr:not(.plyr--hide-controls) .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(calc(var(--plyr-control-spacing, 10px) * -4))}.plyr__caption{background:var(--plyr-captions-background, rgba(0, 0, 0, 0.8));border-radius:2px;box-decoration-break:clone;color:var(--plyr-captions-text-color, #fff);line-height:185%;padding:0.2em 0.5em;white-space:pre-wrap}.plyr__caption div{display:inline}.plyr__control{background:transparent;border:0;border-radius:var(--plyr-control-radius, 3px);color:inherit;cursor:pointer;flex-shrink:0;overflow:visible;padding:calc(var(--plyr-control-spacing, 10px) * 0.7);position:relative;transition:all 0.3s ease}.plyr__control svg{display:block;fill:currentColor;height:var(--plyr-control-icon-size, 18px);pointer-events:none;width:var(--plyr-control-icon-size, 18px)}.plyr__control:focus{outline:0}.plyr__control.plyr__tab-focus{outline-color:var(--plyr-tab-focus-color, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));outline-offset:2px;outline-style:dotted;outline-width:3px}a.plyr__control{text-decoration:none}a.plyr__control::after,a.plyr__control::before{display:none}.plyr__control:not(.plyr__control--pressed) .icon--pressed,.plyr__control.plyr__control--pressed .icon--not-pressed,.plyr__control:not(.plyr__control--pressed) .label--pressed,.plyr__control.plyr__control--pressed .label--not-pressed{display:none}.plyr--full-ui ::-webkit-media-controls{display:none}.plyr__controls{align-items:center;display:flex;justify-content:flex-end;text-align:center}.plyr__controls .plyr__progress__container{flex:1;min-width:0}.plyr__controls .plyr__controls__item{margin-left:calc(var(--plyr-control-spacing, 10px) / 4)}.plyr__controls .plyr__controls__item:first-child{margin-left:0;margin-right:auto}.plyr__controls .plyr__controls__item.plyr__progress__container{padding-left:calc(var(--plyr-control-spacing, 10px) / 4)}.plyr__controls .plyr__controls__item.plyr__time{padding:0 calc(var(--plyr-control-spacing, 10px) / 2)}.plyr__controls .plyr__controls__item.plyr__progress__container:first-child,.plyr__controls .plyr__controls__item.plyr__time:first-child,.plyr__controls .plyr__controls__item.plyr__time+.plyr__time{padding-left:0}.plyr__controls:empty{display:none}.plyr [data-plyr=captions],.plyr [data-plyr=pip],.plyr [data-plyr=airplay],.plyr [data-plyr=fullscreen]{display:none}.plyr--captions-enabled [data-plyr=captions],.plyr--pip-supported [data-plyr=pip],.plyr--airplay-supported [data-plyr=airplay],.plyr--fullscreen-enabled [data-plyr=fullscreen]{display:inline-block}.plyr__menu{display:flex;position:relative}.plyr__menu .plyr__control svg{transition:transform 0.3s ease}.plyr__menu .plyr__control[aria-expanded=true] svg{transform:rotate(90deg)}.plyr__menu .plyr__control[aria-expanded=true] .plyr__tooltip{display:none}.plyr__menu__container{animation:plyr-popup 0.2s ease;background:var(--plyr-menu-background, rgba(255, 255, 255, 0.9));border-radius:4px;bottom:100%;box-shadow:var(--plyr-menu-shadow, 0 1px 2px rgba(0, 0, 0, 0.15));color:var(--plyr-menu-color, #4a5464);font-size:var(--plyr-font-size-base, 15px);margin-bottom:10px;position:absolute;right:-3px;text-align:left;white-space:nowrap;z-index:3}.plyr__menu__container>div{overflow:hidden;transition:height 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.4, 0, 0.2, 1)}.plyr__menu__container::after{border:var(--plyr-menu-arrow-size, 4px) solid transparent;border-top-color:var(--plyr-menu-background, rgba(255, 255, 255, 0.9));content:\"\";height:0;position:absolute;right:calc(((var(--plyr-control-icon-size, 18px) / 2) + calc(var(--plyr-control-spacing, 10px) * 0.7)) - (var(--plyr-menu-arrow-size, 4px) / 2));top:100%;width:0}.plyr__menu__container [role=menu]{padding:calc(var(--plyr-control-spacing, 10px) * 0.7)}.plyr__menu__container [role=menuitem],.plyr__menu__container [role=menuitemradio]{margin-top:2px}.plyr__menu__container [role=menuitem]:first-child,.plyr__menu__container [role=menuitemradio]:first-child{margin-top:0}.plyr__menu__container .plyr__control{align-items:center;color:var(--plyr-menu-color, #4a5464);display:flex;font-size:var(--plyr-font-size-menu, var(--plyr-font-size-small, 13px));padding-bottom:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) / 1.5);padding-left:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 1.5);padding-right:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 1.5);padding-top:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) / 1.5);user-select:none;width:100%}.plyr__menu__container .plyr__control>span{align-items:inherit;display:flex;width:100%}.plyr__menu__container .plyr__control::after{border:var(--plyr-menu-item-arrow-size, 4px) solid transparent;content:\"\";position:absolute;top:50%;transform:translateY(-50%)}.plyr__menu__container .plyr__control--forward{padding-right:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 4)}.plyr__menu__container .plyr__control--forward::after{border-left-color:var(--plyr-menu-arrow-color, #728197);right:calc((calc(var(--plyr-control-spacing, 10px) * 0.7) * 1.5) - var(--plyr-menu-item-arrow-size, 4px))}.plyr__menu__container .plyr__control--forward.plyr__tab-focus::after,.plyr__menu__container .plyr__control--forward:hover::after{border-left-color:currentColor}.plyr__menu__container .plyr__control--back{font-weight:var(--plyr-font-weight-regular, 400);margin:calc(var(--plyr-control-spacing, 10px) * 0.7);margin-bottom:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) / 2);padding-left:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 4);position:relative;width:calc(100% - (calc(var(--plyr-control-spacing, 10px) * 0.7) * 2))}.plyr__menu__container .plyr__control--back::after{border-right-color:var(--plyr-menu-arrow-color, #728197);left:calc((calc(var(--plyr-control-spacing, 10px) * 0.7) * 1.5) - var(--plyr-menu-item-arrow-size, 4px))}.plyr__menu__container .plyr__control--back::before{background:var(--plyr-menu-back-border-color, #dcdfe5);box-shadow:0 1px 0 var(--plyr-menu-back-border-shadow-color, #fff);content:\"\";height:1px;left:0;margin-top:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) / 2);overflow:hidden;position:absolute;right:0;top:100%}.plyr__menu__container .plyr__control--back.plyr__tab-focus::after,.plyr__menu__container .plyr__control--back:hover::after{border-right-color:currentColor}.plyr__menu__container .plyr__control[role=menuitemradio]{padding-left:calc(var(--plyr-control-spacing, 10px) * 0.7)}.plyr__menu__container .plyr__control[role=menuitemradio]::before,.plyr__menu__container .plyr__control[role=menuitemradio]::after{border-radius:100%}.plyr__menu__container .plyr__control[role=menuitemradio]::before{background:rgba(0, 0, 0, 0.1);content:\"\";display:block;flex-shrink:0;height:16px;margin-right:var(--plyr-control-spacing, 10px);transition:all 0.3s ease;width:16px}.plyr__menu__container .plyr__control[role=menuitemradio]::after{background:#fff;border:0;height:6px;left:12px;opacity:0;top:50%;transform:translateY(-50%) scale(0);transition:transform 0.3s ease, opacity 0.3s ease;width:6px}.plyr__menu__container .plyr__control[role=menuitemradio][aria-checked=true]::before{background:var(--plyr-control-toggle-checked-background, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)))}.plyr__menu__container .plyr__control[role=menuitemradio][aria-checked=true]::after{opacity:1;transform:translateY(-50%) scale(1)}.plyr__menu__container .plyr__control[role=menuitemradio].plyr__tab-focus::before,.plyr__menu__container .plyr__control[role=menuitemradio]:hover::before{background:rgba(35, 40, 47, 0.1)}.plyr__menu__container .plyr__menu__value{align-items:center;display:flex;margin-left:auto;margin-right:calc((calc(var(--plyr-control-spacing, 10px) * 0.7) - 2) * -1);overflow:hidden;padding-left:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 3.5);pointer-events:none}.plyr--full-ui input[type=range]{-webkit-appearance:none;background:transparent;border:0;border-radius:calc(var(--plyr-range-thumb-height, 13px) * 2);color:var(--plyr-range-fill-background, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));display:block;height:calc((var(--plyr-range-thumb-active-shadow-width, 3px) * 2) + var(--plyr-range-thumb-height, 13px));margin:0;min-width:0;padding:0;transition:box-shadow 0.3s ease;width:100%}.plyr--full-ui input[type=range]::-webkit-slider-runnable-track{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none;background-image:linear-gradient(to right, currentColor var(--value, 0%), transparent var(--value, 0%))}.plyr--full-ui input[type=range]::-webkit-slider-thumb{background:var(--plyr-range-thumb-background, #fff);border:0;border-radius:100%;box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2));height:var(--plyr-range-thumb-height, 13px);position:relative;transition:all 0.2s ease;width:var(--plyr-range-thumb-height, 13px);-webkit-appearance:none;margin-top:calc(((var(--plyr-range-thumb-height, 13px) - var(--plyr-range-track-height, 5px)) / 2) * -1)}.plyr--full-ui input[type=range]::-moz-range-track{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none}.plyr--full-ui input[type=range]::-moz-range-thumb{background:var(--plyr-range-thumb-background, #fff);border:0;border-radius:100%;box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2));height:var(--plyr-range-thumb-height, 13px);position:relative;transition:all 0.2s ease;width:var(--plyr-range-thumb-height, 13px)}.plyr--full-ui input[type=range]::-moz-range-progress{background:currentColor;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px)}.plyr--full-ui input[type=range]::-ms-track{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none;color:transparent}.plyr--full-ui input[type=range]::-ms-fill-upper{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none}.plyr--full-ui input[type=range]::-ms-fill-lower{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none;background:currentColor}.plyr--full-ui input[type=range]::-ms-thumb{background:var(--plyr-range-thumb-background, #fff);border:0;border-radius:100%;box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2));height:var(--plyr-range-thumb-height, 13px);position:relative;transition:all 0.2s ease;width:var(--plyr-range-thumb-height, 13px);margin-top:0}.plyr--full-ui input[type=range]::-ms-tooltip{display:none}.plyr--full-ui input[type=range]:focus{outline:0}.plyr--full-ui input[type=range]::-moz-focus-outer{border:0}.plyr--full-ui input[type=range].plyr__tab-focus::-webkit-slider-runnable-track{outline-color:var(--plyr-tab-focus-color, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));outline-offset:2px;outline-style:dotted;outline-width:3px}.plyr--full-ui input[type=range].plyr__tab-focus::-moz-range-track{outline-color:var(--plyr-tab-focus-color, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));outline-offset:2px;outline-style:dotted;outline-width:3px}.plyr--full-ui input[type=range].plyr__tab-focus::-ms-track{outline-color:var(--plyr-tab-focus-color, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));outline-offset:2px;outline-style:dotted;outline-width:3px}.plyr__poster{background-color:var(--plyr-video-background, var(--plyr-video-background, black));background-position:50% 50%;background-repeat:no-repeat;background-size:contain;height:100%;left:0;opacity:0;position:absolute;top:0;transition:opacity 0.2s ease;width:100%;z-index:1}.plyr--stopped.plyr__poster-enabled .plyr__poster{opacity:1}.plyr--youtube.plyr--paused.plyr__poster-enabled:not(.plyr--stopped) .plyr__poster{display:none}.plyr__time{font-size:var(--plyr-font-size-time, var(--plyr-font-size-small, 13px))}.plyr__time+.plyr__time::before{content:\"⁄\";margin-right:var(--plyr-control-spacing, 10px)}@media (max-width: 767px){.plyr__time+.plyr__time{display:none}}.plyr__tooltip{background:var(--plyr-tooltip-background, rgba(255, 255, 255, 0.9));border-radius:var(--plyr-tooltip-radius, 3px);bottom:100%;box-shadow:var(--plyr-tooltip-shadow, 0 1px 2px rgba(0, 0, 0, 0.15));color:var(--plyr-tooltip-color, #4a5464);font-size:var(--plyr-font-size-small, 13px);font-weight:var(--plyr-font-weight-regular, 400);left:50%;line-height:1.3;margin-bottom:calc(calc(var(--plyr-control-spacing, 10px) / 2) * 2);opacity:0;padding:calc(var(--plyr-control-spacing, 10px) / 2) calc(calc(var(--plyr-control-spacing, 10px) / 2) * 1.5);pointer-events:none;position:absolute;transform:translate(-50%, 10px) scale(0.8);transform-origin:50% 100%;transition:transform 0.2s 0.1s ease, opacity 0.2s 0.1s ease;white-space:nowrap;z-index:2}.plyr__tooltip::before{border-left:var(--plyr-tooltip-arrow-size, 4px) solid transparent;border-right:var(--plyr-tooltip-arrow-size, 4px) solid transparent;border-top:var(--plyr-tooltip-arrow-size, 4px) solid var(--plyr-tooltip-background, rgba(255, 255, 255, 0.9));bottom:calc(var(--plyr-tooltip-arrow-size, 4px) * -1);content:\"\";height:0;left:50%;position:absolute;transform:translateX(-50%);width:0;z-index:2}.plyr .plyr__control:hover .plyr__tooltip,.plyr .plyr__control.plyr__tab-focus .plyr__tooltip,.plyr__tooltip--visible{opacity:1;transform:translate(-50%, 0) scale(1)}.plyr .plyr__control:hover .plyr__tooltip{z-index:3}.plyr__controls>.plyr__control:first-child .plyr__tooltip,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip{left:0;transform:translate(0, 10px) scale(0.8);transform-origin:0 100%}.plyr__controls>.plyr__control:first-child .plyr__tooltip::before,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip::before{left:calc((var(--plyr-control-icon-size, 18px) / 2) + calc(var(--plyr-control-spacing, 10px) * 0.7))}.plyr__controls>.plyr__control:last-child .plyr__tooltip{left:auto;right:0;transform:translate(0, 10px) scale(0.8);transform-origin:100% 100%}.plyr__controls>.plyr__control:last-child .plyr__tooltip::before{left:auto;right:calc((var(--plyr-control-icon-size, 18px) / 2) + calc(var(--plyr-control-spacing, 10px) * 0.7));transform:translateX(50%)}.plyr__controls>.plyr__control:first-child:hover .plyr__tooltip,.plyr__controls>.plyr__control:first-child.plyr__tab-focus .plyr__tooltip,.plyr__controls>.plyr__control:first-child .plyr__tooltip--visible,.plyr__controls>.plyr__control:first-child+.plyr__control:hover .plyr__tooltip,.plyr__controls>.plyr__control:first-child+.plyr__control.plyr__tab-focus .plyr__tooltip,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip--visible,.plyr__controls>.plyr__control:last-child:hover .plyr__tooltip,.plyr__controls>.plyr__control:last-child.plyr__tab-focus .plyr__tooltip,.plyr__controls>.plyr__control:last-child .plyr__tooltip--visible{transform:translate(0, 0) scale(1)}.plyr__progress{left:calc(var(--plyr-range-thumb-height, 13px) * 0.5);margin-right:var(--plyr-range-thumb-height, 13px);position:relative}.plyr__progress input[type=range],.plyr__progress__buffer{margin-left:calc(var(--plyr-range-thumb-height, 13px) * -0.5);margin-right:calc(var(--plyr-range-thumb-height, 13px) * -0.5);width:calc(100% + var(--plyr-range-thumb-height, 13px))}.plyr__progress input[type=range]{position:relative;z-index:2}.plyr__progress .plyr__tooltip{font-size:var(--plyr-font-size-time, var(--plyr-font-size-small, 13px));left:0}.plyr__progress__buffer{-webkit-appearance:none;background:transparent;border:0;border-radius:100px;height:var(--plyr-range-track-height, 5px);left:0;margin-top:calc((var(--plyr-range-track-height, 5px) / 2) * -1);padding:0;position:absolute;top:50%}.plyr__progress__buffer::-webkit-progress-bar{background:transparent}.plyr__progress__buffer::-webkit-progress-value{background:currentColor;border-radius:100px;min-width:var(--plyr-range-track-height, 5px);transition:width 0.2s ease}.plyr__progress__buffer::-moz-progress-bar{background:currentColor;border-radius:100px;min-width:var(--plyr-range-track-height, 5px);transition:width 0.2s ease}.plyr__progress__buffer::-ms-fill{border-radius:100px;transition:width 0.2s ease}.plyr--loading .plyr__progress__buffer{animation:plyr-progress 1s linear infinite;background-image:linear-gradient(-45deg, var(--plyr-progress-loading-background, rgba(35, 40, 47, 0.6)) 25%, transparent 25%, transparent 50%, var(--plyr-progress-loading-background, rgba(35, 40, 47, 0.6)) 50%, var(--plyr-progress-loading-background, rgba(35, 40, 47, 0.6)) 75%, transparent 75%, transparent);background-repeat:repeat-x;background-size:var(--plyr-progress-loading-size, 25px) var(--plyr-progress-loading-size, 25px);color:transparent}.plyr--video.plyr--loading .plyr__progress__buffer{background-color:var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25))}.plyr--audio.plyr--loading .plyr__progress__buffer{background-color:var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6))}.plyr__volume{align-items:center;display:flex;max-width:110px;min-width:80px;position:relative;width:20%}.plyr__volume input[type=range]{margin-left:calc(var(--plyr-control-spacing, 10px) / 2);margin-right:calc(var(--plyr-control-spacing, 10px) / 2);position:relative;z-index:2}.plyr--is-ios .plyr__volume{min-width:0;width:auto}.plyr--audio{display:block}.plyr--audio .plyr__controls{background:var(--plyr-audio-controls-background, #fff);border-radius:inherit;color:var(--plyr-audio-control-color, #4a5464);padding:var(--plyr-control-spacing, 10px)}.plyr--audio .plyr__control.plyr__tab-focus,.plyr--audio .plyr__control:hover,.plyr--audio .plyr__control[aria-expanded=true]{background:var(--plyr-audio-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));color:var(--plyr-audio-control-color-hover, #fff)}.plyr--full-ui.plyr--audio input[type=range]::-webkit-slider-runnable-track{background-color:var(--plyr-audio-range-track-background, var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6)))}.plyr--full-ui.plyr--audio input[type=range]::-moz-range-track{background-color:var(--plyr-audio-range-track-background, var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6)))}.plyr--full-ui.plyr--audio input[type=range]::-ms-track{background-color:var(--plyr-audio-range-track-background, var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6)))}.plyr--full-ui.plyr--audio input[type=range]:active::-webkit-slider-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(35, 40, 47, 0.1))}.plyr--full-ui.plyr--audio input[type=range]:active::-moz-range-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(35, 40, 47, 0.1))}.plyr--full-ui.plyr--audio input[type=range]:active::-ms-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(35, 40, 47, 0.1))}.plyr--audio .plyr__progress__buffer{color:var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6))}.plyr--video{background:var(--plyr-video-background, var(--plyr-video-background, black));overflow:hidden}.plyr--video.plyr--menu-open{overflow:visible}.plyr__video-wrapper{background:var(--plyr-video-background, var(--plyr-video-background, black));margin:auto;overflow:hidden;position:relative;width:100%}.plyr__video-embed,.plyr__video-wrapper--fixed-ratio{aspect-ratio:16/9}@supports not (aspect-ratio: 16/9){.plyr__video-embed,.plyr__video-wrapper--fixed-ratio{height:0;padding-bottom:56.25%;position:relative}}.plyr__video-embed iframe,.plyr__video-wrapper--fixed-ratio video{border:0;height:100%;left:0;position:absolute;top:0;width:100%}.plyr--full-ui .plyr__video-embed>.plyr__video-embed__container{padding-bottom:240%;position:relative;transform:translateY(-38.28125%)}.plyr--video .plyr__controls{background:var(--plyr-video-controls-background, linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75)));border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;bottom:0;color:var(--plyr-video-control-color, #fff);left:0;padding:calc(var(--plyr-control-spacing, 10px) / 2);padding-top:calc(var(--plyr-control-spacing, 10px) * 2);position:absolute;right:0;transition:opacity 0.4s ease-in-out, transform 0.4s ease-in-out;z-index:3}@media (min-width: 480px){.plyr--video .plyr__controls{padding:var(--plyr-control-spacing, 10px);padding-top:calc(var(--plyr-control-spacing, 10px) * 3.5)}}.plyr--video.plyr--hide-controls .plyr__controls{opacity:0;pointer-events:none;transform:translateY(100%)}.plyr--video .plyr__control.plyr__tab-focus,.plyr--video .plyr__control:hover,.plyr--video .plyr__control[aria-expanded=true]{background:var(--plyr-video-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));color:var(--plyr-video-control-color-hover, #fff)}.plyr__control--overlaid{background:var(--plyr-video-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));border:0;border-radius:100%;color:var(--plyr-video-control-color, #fff);display:none;left:50%;opacity:0.9;padding:calc(var(--plyr-control-spacing, 10px) * 1.5);position:absolute;top:50%;transform:translate(-50%, -50%);transition:0.3s;z-index:2}.plyr__control--overlaid svg{left:2px;position:relative}.plyr__control--overlaid:hover,.plyr__control--overlaid:focus{opacity:1}.plyr--playing .plyr__control--overlaid{opacity:0;visibility:hidden}.plyr--full-ui.plyr--video .plyr__control--overlaid{display:block}.plyr--full-ui.plyr--video input[type=range]::-webkit-slider-runnable-track{background-color:var(--plyr-video-range-track-background, var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25)))}.plyr--full-ui.plyr--video input[type=range]::-moz-range-track{background-color:var(--plyr-video-range-track-background, var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25)))}.plyr--full-ui.plyr--video input[type=range]::-ms-track{background-color:var(--plyr-video-range-track-background, var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25)))}.plyr--full-ui.plyr--video input[type=range]:active::-webkit-slider-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(255, 255, 255, 0.5))}.plyr--full-ui.plyr--video input[type=range]:active::-moz-range-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(255, 255, 255, 0.5))}.plyr--full-ui.plyr--video input[type=range]:active::-ms-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(255, 255, 255, 0.5))}.plyr--video .plyr__progress__buffer{color:var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25))}.plyr:fullscreen{background:#000;border-radius:0 !important;height:100%;margin:0;width:100%}.plyr:fullscreen video{height:100%}.plyr:fullscreen .plyr__control .icon--exit-fullscreen{display:block}.plyr:fullscreen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:fullscreen.plyr--hide-controls{cursor:none}@media (min-width: 1024px){.plyr:fullscreen .plyr__captions{font-size:var(--plyr-font-size-xlarge, 21px)}}.plyr:-webkit-full-screen{background:#000;border-radius:0 !important;height:100%;margin:0;width:100%}.plyr:-webkit-full-screen video{height:100%}.plyr:-webkit-full-screen .plyr__control .icon--exit-fullscreen{display:block}.plyr:-webkit-full-screen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:-webkit-full-screen.plyr--hide-controls{cursor:none}@media (min-width: 1024px){.plyr:-webkit-full-screen .plyr__captions{font-size:var(--plyr-font-size-xlarge, 21px)}}.plyr:-moz-full-screen{background:#000;border-radius:0 !important;height:100%;margin:0;width:100%}.plyr:-moz-full-screen video{height:100%}.plyr:-moz-full-screen .plyr__control .icon--exit-fullscreen{display:block}.plyr:-moz-full-screen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:-moz-full-screen.plyr--hide-controls{cursor:none}@media (min-width: 1024px){.plyr:-moz-full-screen .plyr__captions{font-size:var(--plyr-font-size-xlarge, 21px)}}.plyr:-ms-fullscreen{background:#000;border-radius:0 !important;height:100%;margin:0;width:100%}.plyr:-ms-fullscreen video{height:100%}.plyr:-ms-fullscreen .plyr__control .icon--exit-fullscreen{display:block}.plyr:-ms-fullscreen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:-ms-fullscreen.plyr--hide-controls{cursor:none}@media (min-width: 1024px){.plyr:-ms-fullscreen .plyr__captions{font-size:var(--plyr-font-size-xlarge, 21px)}}.plyr--fullscreen-fallback{background:#000;border-radius:0 !important;height:100%;margin:0;width:100%;bottom:0;display:block;left:0;position:fixed;right:0;top:0;z-index:10000000}.plyr--fullscreen-fallback video{height:100%}.plyr--fullscreen-fallback .plyr__control .icon--exit-fullscreen{display:block}.plyr--fullscreen-fallback .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr--fullscreen-fallback.plyr--hide-controls{cursor:none}@media (min-width: 1024px){.plyr--fullscreen-fallback .plyr__captions{font-size:var(--plyr-font-size-xlarge, 21px)}}.plyr__ads{border-radius:inherit;bottom:0;cursor:pointer;left:0;overflow:hidden;position:absolute;right:0;top:0;z-index:-1}.plyr__ads>div,.plyr__ads>div iframe{height:100%;position:absolute;width:100%}.plyr__ads::after{background:#23282f;border-radius:2px;bottom:var(--plyr-control-spacing, 10px);color:#fff;content:attr(data-badge-text);font-size:11px;padding:2px 6px;pointer-events:none;position:absolute;right:var(--plyr-control-spacing, 10px);z-index:3}.plyr__ads::after:empty{display:none}.plyr__cues{background:currentColor;display:block;height:var(--plyr-range-track-height, 5px);left:0;margin:-var(--plyr-range-track-height, 5px)/2 0 0;opacity:0.8;position:absolute;top:50%;width:3px;z-index:3}.plyr__preview-thumb{background-color:var(--plyr-tooltip-background, rgba(255, 255, 255, 0.9));border-radius:3px;bottom:100%;box-shadow:var(--plyr-tooltip-shadow, 0 1px 2px rgba(0, 0, 0, 0.15));margin-bottom:calc(calc(var(--plyr-control-spacing, 10px) / 2) * 2);opacity:0;padding:var(--plyr-tooltip-radius, 3px);pointer-events:none;position:absolute;transform:translate(0, 10px) scale(0.8);transform-origin:50% 100%;transition:transform 0.2s 0.1s ease, opacity 0.2s 0.1s ease;z-index:2}.plyr__preview-thumb--is-shown{opacity:1;transform:translate(0, 0) scale(1)}.plyr__preview-thumb::before{border-left:var(--plyr-tooltip-arrow-size, 4px) solid transparent;border-right:var(--plyr-tooltip-arrow-size, 4px) solid transparent;border-top:var(--plyr-tooltip-arrow-size, 4px) solid var(--plyr-tooltip-background, rgba(255, 255, 255, 0.9));bottom:calc(var(--plyr-tooltip-arrow-size, 4px) * -1);content:\"\";height:0;left:50%;position:absolute;transform:translateX(-50%);width:0;z-index:2}.plyr__preview-thumb__image-container{background:#c1c8d1;border-radius:calc(var(--plyr-tooltip-radius, 3px) - 1px);overflow:hidden;position:relative;z-index:0}.plyr__preview-thumb__image-container img{height:100%;left:0;max-height:none;max-width:none;position:absolute;top:0;width:100%}.plyr__preview-thumb__time-container{bottom:6px;left:0;position:absolute;right:0;white-space:nowrap;z-index:3}.plyr__preview-thumb__time-container span{background-color:rgba(0, 0, 0, 0.55);border-radius:calc(var(--plyr-tooltip-radius, 3px) - 1px);color:#fff;font-size:var(--plyr-font-size-time, var(--plyr-font-size-small, 13px));padding:3px 6px}.plyr__preview-scrubbing{bottom:0;filter:blur(1px);height:100%;left:0;margin:auto;opacity:0;overflow:hidden;pointer-events:none;position:absolute;right:0;top:0;transition:opacity 0.3s ease;width:100%;z-index:1}.plyr__preview-scrubbing--is-shown{opacity:1}.plyr__preview-scrubbing img{height:100%;left:0;max-height:none;max-width:none;object-fit:contain;position:absolute;top:0;width:100%}.plyr--no-transition{transition:none !important}.plyr__sr-only{clip:rect(1px, 1px, 1px, 1px);overflow:hidden;border:0 !important;height:1px !important;padding:0 !important;position:absolute !important;width:1px !important}.plyr [hidden]{display:none !important}video,iframe{max-width:100%}.plyr__video-wrapper{height:100%}.presto-player__wrapper{position:relative;font-family:-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"}.presto-player__wrapper.rtl{direction:rtl}.presto-player__wrapper img{max-width:100%}.presto-player__wrapper .plyr.plyr--video.plyr--menu-open{overflow:hidden}.presto-player__wrapper .plyr--fullscreen-fallback.plyr--vimeo .plyr__video-wrapper{top:50%;transform:translateY(-50%)}.presto-player__wrapper .plyr--fullscreen-fallback.plyr{border-radius:0 !important}.presto-player__wrapper .plyr--fullscreen-fallback.plyr iframe{border-radius:0 !important}.presto-player__wrapper .plyr__menu__container{overflow:auto}.presto-player__wrapper .plyr__menu__container:after{display:none}.presto-player__wrapper img{border:none}.presto-player__wrapper video{margin:auto}.presto-player__wrapper iframe{height:100%}.presto-player__wrapper .plyr--video .plyr__control:active,.presto-player__wrapper .plyr--video .plyr__control:focus{background:#00b3ff;background:var(--plyr-video-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));color:#fff;color:var(--plyr-video-control-color-hover, #fff)}.presto-player__wrapper .plyr__poster{background-size:cover;z-index:2}.presto-player__wrapper .presto-player__logo{margin:0;display:block;position:absolute;z-index:3;opacity:0.5;object-fit:contain;transition:bottom 0.4s ease-in-out;max-width:var(--presto-player-logo-width, 75px)}.presto-player__wrapper .presto-player__logo.is-bottom-right{left:auto;right:20px;top:auto;bottom:60px}.presto-player__wrapper .presto-player__logo.is-bottom-left{left:20px;right:auto;top:auto;bottom:60px}@media screen and (min-width: 380px){.presto-player__wrapper.presto-player--hide-controls .presto-player__logo.is-bottom-right,.presto-player__wrapper.presto-player--hide-controls .presto-player__logo.is-bottom-left,.presto-player__wrapper .plyr--hide-controls .presto-player__logo.is-bottom-right,.presto-player__wrapper .plyr--hide-controls .presto-player__logo.is-bottom-left{bottom:20px}}.presto-player__wrapper .presto-player-progress__marker{width:16px;height:16px;padding:0;border:2px solid rgba(255, 255, 255, 0.5);position:absolute;border-radius:9999px;bottom:calc(50% - 8px);z-index:9;margin-left:-8px !important}.presto-player__wrapper.presto-player--ended .plyr--youtube .plyr__poster{display:none}.presto-player__wrapper.presto-player--ended .plyr--youtube .plyr__control.plyr__control--overlaid{display:none}.presto-player__wrapper button.plyr__control.plyr__control--overlaid:focus{background:inherit;border:none;outline:0;position:absolute;top:50%;transform:translate(-50%, -50%)}.presto-player__wrapper .plyr__controls__item.plyr__progress__container{position:relative}.presto-player__wrapper .plyr--full-ui.plyr--video input[type=range]::-webkit-slider-runnable-track{box-shadow:none}.presto-player__wrapper .plyr--video .plyr__controls{background:var(--plyr-video-controls-background, linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.75)))}.presto-player__wrapper .presto-player-toc{font-family:-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";line-height:1.4;position:absolute;top:auto;right:0;left:0;bottom:0;max-height:calc(100%);max-width:calc(100%);background:rgba(255, 255, 255, 0.9);background:var(--plyr-menu-background, rgba(255, 255, 255, 0.9));left:auto;padding:20px 15px;border-radius:4px;width:100%;z-index:9;box-shadow:0 1px 2px rgba(0, 0, 0, 0.15);box-shadow:var(--plyr-menu-shadow, 0 1px 2px rgba(0, 0, 0, 0.15));color:#4a5464;color:var(--plyr-menu-color, #4a5464);font-size:15px;font-size:var(--plyr-font-size-base, 15px);white-space:nowrap;z-index:3;display:flex;flex-direction:column;transition:bottom 0.25s ease}@media screen and (min-width: 380px){.presto-player__wrapper .presto-player-toc{right:20px;bottom:60px;width:300px;max-height:calc(100% - 80px);max-width:calc(100vw - 70px)}}.presto-player__wrapper .presto-player-toc__wrapper{position:absolute;top:0;left:0;bottom:0;right:0;z-index:3;visibility:hidden;opacity:0;transition:opacity 0.3s ease-in-out, visibility 0.3s ease-in-out}.presto-player__wrapper .presto-player-toc__wrapper.is-showing{visibility:visible;opacity:1}.presto-player__wrapper .presto-player-toc__cover{position:absolute;top:0;left:0;bottom:0;right:0;z-index:3}.presto-player__wrapper .presto-player-toc__list{flex:1;overflow:auto}.presto-player__wrapper .presto-player-toc__title{font-size:12px;font-weight:bold;margin-bottom:10px;margin-left:10px;margin-right:10px;display:none}@media screen and (min-width: 380px){.presto-player__wrapper .presto-player-toc__title{display:block}}.presto-player__wrapper .presto-player-toc__name{white-space:nowrap;overflow:hidden;width:100%;text-overflow:ellipsis}.presto-player__wrapper .presto-player-toc__chapter{padding:12px;border-radius:3px;cursor:pointer;line-height:1;display:flex;align-items:center;transition:background-color 0.4s ease, color 0.4s ease;margin-bottom:2px;position:relative}.presto-player__wrapper .presto-player-toc__chapter:last-child{margin-bottom:0}.presto-player__wrapper .presto-player-toc__chapter.is-highlighted,.presto-player__wrapper .presto-player-toc__chapter:hover{background:#00b3ff;background:var(--plyr-video-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));color:#fff;color:var(--plyr-video-control-color-hover, #fff)}.presto-player__wrapper .presto-player-toc__chapter.is-highlighted{padding-right:30px}.presto-player__wrapper .presto-player-toc__chapter.is-highlighted:after{background:rgba(255, 255, 255, 0.5);content:\"\";display:block;flex-shrink:0;height:8px;width:8px;margin-right:10px;margin-right:var(--plyr-control-spacing, 10px);transition:all 0.3s ease;border-radius:9999px;position:absolute;right:7px}.presto-player__wrapper .presto-player-toc__order{margin-right:12px;opacity:0.5}.presto-player__wrapper.rtl{direction:rtl}.presto-player__wrapper.rtl .presto-player-toc__order{order:2;margin-left:12px;margin-right:0}.presto-player__wrapper.rtl .presto-player-toc__name{direction:rtl}.presto-player__wrapper .presto-player-error{position:absolute;top:0;left:0;bottom:0;right:0;background:rgba(0, 0, 0, 0.9);color:#fff;display:flex;align-items:center;justify-content:center;z-index:10;text-align:center}.presto-player__wrapper .presto-player-error__title{font-size:18px;font-weight:bold;margin-bottom:8px}.presto-player__wrapper .presto-player-error__description{opacity:0.75}.presto-player__wrapper.hide-youtube-ui .plyr__video-embed iframe{top:-50%;height:200%}.presto-player__wrapper .plyr--vimeo.plyr--playing .plyr__video-embed__container{pointer-events:none}.presto-player__wrapper .plyr__control--overlaid{border-radius:6px;padding-left:26px;padding-right:26px;position:absolute !important;top:50% !important}.presto-player__wrapper.skin-stacked .plyr__controls{flex-wrap:wrap}.presto-player__wrapper.skin-stacked .presto-player-progress__marker{transform:scale(0.75)}.presto-player__wrapper.skin-stacked .plyr__controls{justify-content:flex-start}.presto-player__wrapper.skin-stacked .plyr__controls__item.plyr__progress__container{order:-1;flex:1 0 100%}.presto-player__wrapper.skin-stacked .plyr__controls__item.plyr__progress__container+:not(.plyr__time),.presto-player__wrapper.skin-stacked .plyr__controls__item.plyr__progress__container+.plyr__time+*{margin-left:auto}.presto-player__wrapper.skin-stacked .plyr__controls .plyr__controls__item:first-child{margin:0}.presto-player__wrapper.skin-stacked .plyr__progress{height:19px;display:flex;align-items:center}.presto-player__wrapper.skin-stacked .plyr__progress .plyr__progress__buffer{height:3px;transition:all 0.25s ease;position:absolute;top:calc(50% + 1px)}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-moz-range-track{height:3px;transition:all 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-webkit-slider-runnable-track{height:3px;transition:all 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-ms-track{height:3px;transition:all 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-ms-fill-upper{height:3px;transition:all 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-ms-fill-lower{height:3px;transition:height 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-webkit-slider-thumb{visibility:hidden;opacity:0;transition:opacity 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-moz-range-thumb{visibility:hidden;opacity:0;transition:opacity 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-ms-thumb{visibility:hidden;opacity:0;transition:opacity 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .presto-player-progress__marker{transform:scale(1)}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress .plyr__progress__buffer{height:5px;top:calc(50%)}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]{overflow:visible}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-moz-range-track{height:5px}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-webkit-slider-runnable-track{height:5px}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-ms-track{height:5px}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-ms-fill-upper{height:5px}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-ms-fill-lower{height:5px}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-webkit-slider-thumb{visibility:visible;opacity:1}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-moz-range-thumb{visibility:visible;opacity:1}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-ms-thumb{visibility:visible;opacity:1}.presto-sticky-parent{z-index:99998}@media screen and (min-width: 960px){.presto-sticky{--presto-sticky-space:15px;position:fixed;z-index:3000;max-width:var(--presto-sticky-width, 380px);width:100vw}.presto-sticky .plyr__controls,.presto-sticky .presto-player-toc__wrapper,.presto-sticky presto-action-bar,.presto-sticky .presto-player__logo{display:none}.presto-sticky--top-left{top:var(--presto-sticky-space);left:var(--presto-sticky-space)}.presto-sticky--top-center{top:var(--presto-sticky-space);left:0;right:0;margin:0 auto}.presto-sticky--top-right{top:var(--presto-sticky-space);right:var(--presto-sticky-space)}.presto-sticky--center-left{top:0;bottom:0;margin:auto 0;left:var(--presto-sticky-space);display:flex;align-items:center}.presto-sticky--center-center{top:0;bottom:0;right:0;left:0;margin:auto;display:flex;align-items:center}.presto-sticky--center-right{top:0;bottom:0;margin:auto 0;right:var(--presto-sticky-space);display:flex;align-items:center}.presto-sticky--bottom-left{bottom:var(--presto-sticky-space);left:var(--presto-sticky-space)}.presto-sticky--bottom-center{bottom:var(--presto-sticky-space);left:0;right:0;margin:0 auto}.presto-sticky--bottom-right{bottom:var(--presto-sticky-space);right:var(--presto-sticky-space)}}.presto-player__overlay{position:absolute;top:50%;left:50%;z-index:3}.presto-player__muted-overlay{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center}.presto-player__muted-overlay .plyr__control--overlaid{display:block;opacity:1;visibility:visible}.presto-player__wrapper.is-muted-overlay{cursor:pointer}.presto-player__wrapper.is-muted-overlay .plyr--playing .presto-player__muted-overlay .plyr__control--overlaid{opacity:1;visibility:visible}.presto-player__wrapper.is-muted-overlay .presto-player__logo{display:none}.presto-player__wrapper.is-muted-overlay .plyr__controls{display:none}.presto-player__wrapper.is-muted-overlay .plyr .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(0) !important}.presto-player__wrapper.rtl .plyr__captions{direction:rtl}.presto-player__wrapper.caption-style-full .plyr__captions{background:var(--plyr-captions-background, rgba(0, 0, 0, 0.8));padding-top:0;padding-bottom:0}.presto-player__wrapper.caption-style-full .plyr:not(.plyr--hide-controls):not(.is-muted-overlay) .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(calc(var(--plyr-control-spacing, 13px) * -4))}.presto-player__wrapper.caption-style-full.skin-stacked .plyr:not(.plyr--hide-controls):not(.is-muted-overlay) .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(calc(var(--plyr-control-spacing, 17px) * -4))}.presto-player__play-cover{cursor:pointer;position:absolute;top:0;left:0;right:0;bottom:0;z-index:99}.presto-player__chapters{width:100%;position:absolute;top:0;height:100%}.presto-player__chapter-markers{margin:0 8px;height:100%;position:relative}.presto-player-progress__marker.plyr__controls__item.plyr__control:hover{border:0;background:#fff}.presto-iframe-fallback-container{position:relative;padding-bottom:56.25%;padding-top:30px;height:0;overflow:hidden}.presto-iframe-fallback-container embed,.presto-iframe-fallback-container iframe,.presto-iframe-fallback-container object{position:absolute;top:0;left:0;width:100%;height:100%}";
5427
 
5428
  const PrestoPlayer = class {
5429
  constructor(hostRef) {
5769
  * @returns
5770
  */
5771
  handleVisibilityPlayChange(element) {
5772
+ var _a, _b, _c;
5773
  if (this.isAdmin || !((_a = this.preset) === null || _a === void 0 ? void 0 : _a.play_video_viewport)) {
5774
  return;
5775
  }
5795
  return;
5796
  }
5797
  }
5798
+ // handle muted preview
5799
+ if ((_c = (_b = this.blockAttributes) === null || _b === void 0 ? void 0 : _b.mutedPreview) === null || _c === void 0 ? void 0 : _c.enabled) {
5800
+ this.previouslyPlaying = true;
5801
+ this.pause();
5802
+ this.player.once('playing', () => {
5803
+ this.previouslyPlaying = true;
5804
+ this.pause();
5805
+ });
5806
+ return;
5807
+ }
5808
  if (this.player.playing) {
5809
  this.previouslyPlaying = true;
5810
  }
5842
  }
5843
  }
5844
  renderCTA() {
5845
+ var _a, _b, _c;
5846
+ if (!((_a = window === null || window === void 0 ? void 0 : window.prestoPlayer) === null || _a === void 0 ? void 0 : _a.isPremium))
5847
+ return;
5848
+ if (this.isAdmin)
5849
+ return;
5850
+ if (!((_c = (_b = this.preset) === null || _b === void 0 ? void 0 : _b.email_collection) === null || _c === void 0 ? void 0 : _c.enabled))
5851
  return;
 
5852
  return (index.h("presto-cta-overlay", { direction: this.direction, player: this.player, preset: this.preset, i18n: this.i18n, onPlayVideo: () => {
5853
  this.mutedPreview = false;
5854
  this.play();
dist/components/cjs/presto-player.cjs.entry.js CHANGED
@@ -2,7 +2,7 @@
2
 
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
 
5
- const prestoPlayer_entry = require('./presto-player-4a99f115.js');
6
  require('./index-858a23c7.js');
7
 
8
 
2
 
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
 
5
+ const prestoPlayer_entry = require('./presto-player-b01a0680.js');
6
  require('./index-858a23c7.js');
7
 
8
 
dist/components/collection/components/core/player/presto-player/presto-player.css CHANGED
@@ -1185,6 +1185,15 @@ iframe {
1185
  max-width: 100%;
1186
  }
1187
 
 
 
 
 
 
 
 
 
 
1188
  .presto-player__wrapper {
1189
  position: relative;
1190
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
1185
  max-width: 100%;
1186
  }
1187
 
1188
+ /*
1189
+ Fix the iOS fullscreen not centered issue.
1190
+ This issue is with underlying plyr.io
1191
+ https://github.com/prestomade/presto-player/issues/140
1192
+ */
1193
+ .plyr__video-wrapper {
1194
+ height: 100%;
1195
+ }
1196
+
1197
  .presto-player__wrapper {
1198
  position: relative;
1199
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
dist/components/collection/components/core/player/presto-player/presto-player.js CHANGED
@@ -349,7 +349,7 @@ export class PrestoPlayer {
349
  * @returns
350
  */
351
  handleVisibilityPlayChange(element) {
352
- var _a;
353
  if (this.isAdmin || !((_a = this.preset) === null || _a === void 0 ? void 0 : _a.play_video_viewport)) {
354
  return;
355
  }
@@ -375,6 +375,16 @@ export class PrestoPlayer {
375
  return;
376
  }
377
  }
 
 
 
 
 
 
 
 
 
 
378
  if (this.player.playing) {
379
  this.previouslyPlaying = true;
380
  }
@@ -412,10 +422,13 @@ export class PrestoPlayer {
412
  }
413
  }
414
  renderCTA() {
415
- var _a;
416
- if (!((_a = window === null || window === void 0 ? void 0 : window.prestoPlayer) === null || _a === void 0 ? void 0 : _a.isPremium) || this.isAdmin) {
 
 
 
 
417
  return;
418
- }
419
  return (h("presto-cta-overlay", { direction: this.direction, player: this.player, preset: this.preset, i18n: this.i18n, onPlayVideo: () => {
420
  this.mutedPreview = false;
421
  this.play();
349
  * @returns
350
  */
351
  handleVisibilityPlayChange(element) {
352
+ var _a, _b, _c;
353
  if (this.isAdmin || !((_a = this.preset) === null || _a === void 0 ? void 0 : _a.play_video_viewport)) {
354
  return;
355
  }
375
  return;
376
  }
377
  }
378
+ // handle muted preview
379
+ if ((_c = (_b = this.blockAttributes) === null || _b === void 0 ? void 0 : _b.mutedPreview) === null || _c === void 0 ? void 0 : _c.enabled) {
380
+ this.previouslyPlaying = true;
381
+ this.pause();
382
+ this.player.once('playing', () => {
383
+ this.previouslyPlaying = true;
384
+ this.pause();
385
+ });
386
+ return;
387
+ }
388
  if (this.player.playing) {
389
  this.previouslyPlaying = true;
390
  }
422
  }
423
  }
424
  renderCTA() {
425
+ var _a, _b, _c;
426
+ if (!((_a = window === null || window === void 0 ? void 0 : window.prestoPlayer) === null || _a === void 0 ? void 0 : _a.isPremium))
427
+ return;
428
+ if (this.isAdmin)
429
+ return;
430
+ if (!((_c = (_b = this.preset) === null || _b === void 0 ? void 0 : _b.email_collection) === null || _c === void 0 ? void 0 : _c.enabled))
431
  return;
 
432
  return (h("presto-cta-overlay", { direction: this.direction, player: this.player, preset: this.preset, i18n: this.i18n, onPlayVideo: () => {
433
  this.mutedPreview = false;
434
  this.play();
dist/components/collection/components/core/player/presto-player/util.js CHANGED
@@ -29,13 +29,9 @@ export function determineVideoUrlType(url) {
29
  $type: 'none',
30
  };
31
  }
32
- // get file extension
33
- export function getFileExtension(url) {
34
- return url.split(/[#?]/)[0].split('.').pop().trim();
35
- }
36
  // is the source hls?
37
  export function isHLS(url) {
38
- return getFileExtension(url) === 'm3u8';
39
  }
40
  export function isNotEmptyObject(item) {
41
  return typeof item === 'object' && Object.keys(item).length;
29
  $type: 'none',
30
  };
31
  }
 
 
 
 
32
  // is the source hls?
33
  export function isHLS(url) {
34
+ return typeof url === 'string' && url.includes('.m3u8');
35
  }
36
  export function isNotEmptyObject(item) {
37
  return typeof item === 'object' && Object.keys(item).length;
dist/components/collection/components/core/player/presto-youtube/presto-youtube.js CHANGED
@@ -1,4 +1,5 @@
1
  import { Component, Prop, h, Event, Watch, State } from '@stencil/core';
 
2
  export class PrestoYoutube {
3
  /**
4
  * When player is set, do ratio and fixes
@@ -70,12 +71,8 @@ export class PrestoYoutube {
70
  if (!this.poster) {
71
  this.poster = `//img.youtube.com/vi/${this.getId(this.src)}/maxresdefault.jpg`;
72
  }
73
- if (this.lazyLoad) {
74
- var ua = window.navigator.userAgent;
75
- var iOS = !!ua.match(/iPad/i) || !!ua.match(/iPhone/i);
76
- if (iOS) {
77
- this.lazyLoad = false;
78
- }
79
  }
80
  }
81
  render() {
1
  import { Component, Prop, h, Event, Watch, State } from '@stencil/core';
2
+ import { isIOS } from '../../../../util';
3
  export class PrestoYoutube {
4
  /**
5
  * When player is set, do ratio and fixes
71
  if (!this.poster) {
72
  this.poster = `//img.youtube.com/vi/${this.getId(this.src)}/maxresdefault.jpg`;
73
  }
74
+ if (this.lazyLoad && isIOS()) {
75
+ this.lazyLoad = false;
 
 
 
 
76
  }
77
  }
78
  render() {
dist/components/collection/util.js CHANGED
@@ -16,16 +16,19 @@ export function getMobileOperatingSystem() {
16
  var userAgent = navigator.userAgent || navigator.vendor;
17
  // Windows Phone must come first because its UA also contains "Android"
18
  if (/windows phone/i.test(userAgent)) {
19
- return "Windows Phone";
20
  }
21
  if (/android/i.test(userAgent)) {
22
- return "Android";
23
  }
24
  // iOS detection from: http://stackoverflow.com/a/9039885/177710
25
- if (/iPad|iPhone|iPod/.test(userAgent) && !window.MSStream) {
26
- return "iOS";
27
  }
28
- return "unknown";
 
 
 
29
  }
30
  export function isWebView() {
31
  var standalone = window.navigator['standalone'], userAgent = window.navigator.userAgent.toLowerCase(), safari = /safari/.test(userAgent), ios = /iphone|ipod|ipad/.test(userAgent);
@@ -38,7 +41,6 @@ export function isWebView() {
38
  // iOS webview
39
  return true;
40
  }
41
- ;
42
  }
43
  else {
44
  if (userAgent.includes('wv')) {
@@ -50,10 +52,9 @@ export function isWebView() {
50
  return false;
51
  }
52
  }
53
- ;
54
  }
55
  export function isAndroidWebView() {
56
- if (getMobileOperatingSystem() === "Android" && isWebView()) {
57
  return true;
58
  }
59
  else {
16
  var userAgent = navigator.userAgent || navigator.vendor;
17
  // Windows Phone must come first because its UA also contains "Android"
18
  if (/windows phone/i.test(userAgent)) {
19
+ return 'Windows Phone';
20
  }
21
  if (/android/i.test(userAgent)) {
22
+ return 'Android';
23
  }
24
  // iOS detection from: http://stackoverflow.com/a/9039885/177710
25
+ if ((navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1) || /(iPad|iPhone|iPod)/gi.test(navigator.platform)) {
26
+ return 'iOS';
27
  }
28
+ return 'unknown';
29
+ }
30
+ export function isIOS() {
31
+ return getMobileOperatingSystem() === 'iOS';
32
  }
33
  export function isWebView() {
34
  var standalone = window.navigator['standalone'], userAgent = window.navigator.userAgent.toLowerCase(), safari = /safari/.test(userAgent), ios = /iphone|ipod|ipad/.test(userAgent);
41
  // iOS webview
42
  return true;
43
  }
 
44
  }
45
  else {
46
  if (userAgent.includes('wv')) {
52
  return false;
53
  }
54
  }
 
55
  }
56
  export function isAndroidWebView() {
57
+ if (getMobileOperatingSystem() === 'Android' && isWebView()) {
58
  return true;
59
  }
60
  else {
dist/components/esm/{hls-4ef7ade3.js → hls-26fb4f3e.js} RENAMED
@@ -1,5 +1,5 @@
1
  import { d as _objectSpread2 } from './index-65cf7490.js';
2
- import { P as PrestoPlayer } from './presto-player-f20f5469.js';
3
 
4
  const hls = (function (_ref) {
5
  var config = _ref.config,
1
  import { d as _objectSpread2 } from './index-65cf7490.js';
2
+ import { P as PrestoPlayer } from './presto-player-bee3ad9f.js';
3
 
4
  const hls = (function (_ref) {
5
  var config = _ref.config,
dist/components/esm/{learndash-7c8ce992.js → learndash-5366b7c9.js} RENAMED
@@ -1,4 +1,4 @@
1
- import { r as resumeProgress } from './presto-player-f20f5469.js';
2
  import './index-65cf7490.js';
3
 
4
  const learndash = (function (player) {
1
+ import { r as resumeProgress } from './presto-player-bee3ad9f.js';
2
  import './index-65cf7490.js';
3
 
4
  const learndash = (function (player) {
dist/components/esm/presto-action-bar_7.entry.js CHANGED
@@ -18,16 +18,19 @@ function getMobileOperatingSystem() {
18
  var userAgent = navigator.userAgent || navigator.vendor;
19
  // Windows Phone must come first because its UA also contains "Android"
20
  if (/windows phone/i.test(userAgent)) {
21
- return "Windows Phone";
22
  }
23
  if (/android/i.test(userAgent)) {
24
- return "Android";
25
  }
26
  // iOS detection from: http://stackoverflow.com/a/9039885/177710
27
- if (/iPad|iPhone|iPod/.test(userAgent) && !window.MSStream) {
28
- return "iOS";
29
  }
30
- return "unknown";
 
 
 
31
  }
32
  function isWebView() {
33
  var standalone = window.navigator['standalone'], userAgent = window.navigator.userAgent.toLowerCase(), safari = /safari/.test(userAgent), ios = /iphone|ipod|ipad/.test(userAgent);
@@ -53,7 +56,7 @@ function isWebView() {
53
  }
54
  }
55
  function isAndroidWebView() {
56
- if (getMobileOperatingSystem() === "Android" && isWebView()) {
57
  return true;
58
  }
59
  else {
@@ -612,12 +615,8 @@ const PrestoYoutube = class {
612
  if (!this.poster) {
613
  this.poster = `//img.youtube.com/vi/${this.getId(this.src)}/maxresdefault.jpg`;
614
  }
615
- if (this.lazyLoad) {
616
- var ua = window.navigator.userAgent;
617
- var iOS = !!ua.match(/iPad/i) || !!ua.match(/iPhone/i);
618
- if (iOS) {
619
- this.lazyLoad = false;
620
- }
621
  }
622
  }
623
  render() {
18
  var userAgent = navigator.userAgent || navigator.vendor;
19
  // Windows Phone must come first because its UA also contains "Android"
20
  if (/windows phone/i.test(userAgent)) {
21
+ return 'Windows Phone';
22
  }
23
  if (/android/i.test(userAgent)) {
24
+ return 'Android';
25
  }
26
  // iOS detection from: http://stackoverflow.com/a/9039885/177710
27
+ if ((navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1) || /(iPad|iPhone|iPod)/gi.test(navigator.platform)) {
28
+ return 'iOS';
29
  }
30
+ return 'unknown';
31
+ }
32
+ function isIOS() {
33
+ return getMobileOperatingSystem() === 'iOS';
34
  }
35
  function isWebView() {
36
  var standalone = window.navigator['standalone'], userAgent = window.navigator.userAgent.toLowerCase(), safari = /safari/.test(userAgent), ios = /iphone|ipod|ipad/.test(userAgent);
56
  }
57
  }
58
  function isAndroidWebView() {
59
+ if (getMobileOperatingSystem() === 'Android' && isWebView()) {
60
  return true;
61
  }
62
  else {
615
  if (!this.poster) {
616
  this.poster = `//img.youtube.com/vi/${this.getId(this.src)}/maxresdefault.jpg`;
617
  }
618
+ if (this.lazyLoad && isIOS()) {
619
+ this.lazyLoad = false;
 
 
 
 
620
  }
621
  }
622
  render() {
dist/components/esm/{presto-player-f20f5469.js → presto-player-bee3ad9f.js} RENAMED
@@ -5230,7 +5230,7 @@ function PrestoPlayer$1 (element) {
5230
  var player = new Plyr(element, setup); // conditionally load learndash
5231
 
5232
  if (typeof learndash_video_data !== 'undefined') {
5233
- import('./learndash-7c8ce992.js').then(function (module) {
5234
  var learnDash = module.default;
5235
  learnDash(player);
5236
  });
@@ -5262,13 +5262,9 @@ function PrestoPlayer$1 (element) {
5262
  return player;
5263
  }
5264
 
5265
- // get file extension
5266
- function getFileExtension(url) {
5267
- return url.split(/[#?]/)[0].split('.').pop().trim();
5268
- }
5269
  // is the source hls?
5270
  function isHLS(url) {
5271
- return getFileExtension(url) === 'm3u8';
5272
  }
5273
  function getParents(elem) {
5274
  var parents = [];
@@ -5287,7 +5283,7 @@ const createPlayer = (function (_ref) {
5287
 
5288
  // dynamically load hls module if we have an hls video
5289
  if (src && isHLS(src)) {
5290
- return import('./hls-4ef7ade3.js').then(function (module) {
5291
  var hls = module.default;
5292
  return hls({
5293
  config: config,
@@ -5425,7 +5421,7 @@ function transform ({ preset = {}, chapters, branding, src, analytics, automatio
5425
  return playerSettings;
5426
  }
5427
 
5428
- const prestoPlayerCss = "@charset \"UTF-8\";@keyframes plyr-progress{to{background-position:var(--plyr-progress-loading-size, 25px) 0}}@keyframes plyr-popup{0%{opacity:0.5;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes plyr-fade-in{from{opacity:0}to{opacity:1}}.plyr{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;align-items:center;direction:ltr;display:flex;flex-direction:column;font-family:var(--plyr-font-family, inherit);font-variant-numeric:tabular-nums;font-weight:var(--plyr-font-weight-regular, 400);line-height:var(--plyr-line-height, 1.7);max-width:100%;min-width:200px;position:relative;text-shadow:none;transition:box-shadow 0.3s ease;z-index:0}.plyr video,.plyr audio,.plyr iframe{display:block;height:100%;width:100%}.plyr button{font:inherit;line-height:inherit;width:auto}.plyr:focus{outline:0}.plyr--full-ui{box-sizing:border-box}.plyr--full-ui *,.plyr--full-ui *::after,.plyr--full-ui *::before{box-sizing:inherit}.plyr--full-ui a,.plyr--full-ui button,.plyr--full-ui input,.plyr--full-ui label{touch-action:manipulation}.plyr__badge{background:var(--plyr-badge-background, #4a5464);border-radius:var(--plyr-badge-border-radius, 2px);color:var(--plyr-badge-text-color, #fff);font-size:var(--plyr-font-size-badge, 9px);line-height:1;padding:3px 4px}.plyr--full-ui ::-webkit-media-text-track-container{display:none}.plyr__captions{animation:plyr-fade-in 0.3s ease;bottom:0;display:none;font-size:var(--plyr-font-size-small, 13px);left:0;padding:var(--plyr-control-spacing, 10px);position:absolute;text-align:center;transition:transform 0.4s ease-in-out;width:100%}.plyr__captions span:empty{display:none}@media (min-width: 480px){.plyr__captions{font-size:var(--plyr-font-size-base, 15px);padding:calc(var(--plyr-control-spacing, 10px) * 2)}}@media (min-width: 768px){.plyr__captions{font-size:var(--plyr-font-size-large, 18px)}}.plyr--captions-active .plyr__captions{display:block}.plyr:not(.plyr--hide-controls) .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(calc(var(--plyr-control-spacing, 10px) * -4))}.plyr__caption{background:var(--plyr-captions-background, rgba(0, 0, 0, 0.8));border-radius:2px;box-decoration-break:clone;color:var(--plyr-captions-text-color, #fff);line-height:185%;padding:0.2em 0.5em;white-space:pre-wrap}.plyr__caption div{display:inline}.plyr__control{background:transparent;border:0;border-radius:var(--plyr-control-radius, 3px);color:inherit;cursor:pointer;flex-shrink:0;overflow:visible;padding:calc(var(--plyr-control-spacing, 10px) * 0.7);position:relative;transition:all 0.3s ease}.plyr__control svg{display:block;fill:currentColor;height:var(--plyr-control-icon-size, 18px);pointer-events:none;width:var(--plyr-control-icon-size, 18px)}.plyr__control:focus{outline:0}.plyr__control.plyr__tab-focus{outline-color:var(--plyr-tab-focus-color, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));outline-offset:2px;outline-style:dotted;outline-width:3px}a.plyr__control{text-decoration:none}a.plyr__control::after,a.plyr__control::before{display:none}.plyr__control:not(.plyr__control--pressed) .icon--pressed,.plyr__control.plyr__control--pressed .icon--not-pressed,.plyr__control:not(.plyr__control--pressed) .label--pressed,.plyr__control.plyr__control--pressed .label--not-pressed{display:none}.plyr--full-ui ::-webkit-media-controls{display:none}.plyr__controls{align-items:center;display:flex;justify-content:flex-end;text-align:center}.plyr__controls .plyr__progress__container{flex:1;min-width:0}.plyr__controls .plyr__controls__item{margin-left:calc(var(--plyr-control-spacing, 10px) / 4)}.plyr__controls .plyr__controls__item:first-child{margin-left:0;margin-right:auto}.plyr__controls .plyr__controls__item.plyr__progress__container{padding-left:calc(var(--plyr-control-spacing, 10px) / 4)}.plyr__controls .plyr__controls__item.plyr__time{padding:0 calc(var(--plyr-control-spacing, 10px) / 2)}.plyr__controls .plyr__controls__item.plyr__progress__container:first-child,.plyr__controls .plyr__controls__item.plyr__time:first-child,.plyr__controls .plyr__controls__item.plyr__time+.plyr__time{padding-left:0}.plyr__controls:empty{display:none}.plyr [data-plyr=captions],.plyr [data-plyr=pip],.plyr [data-plyr=airplay],.plyr [data-plyr=fullscreen]{display:none}.plyr--captions-enabled [data-plyr=captions],.plyr--pip-supported [data-plyr=pip],.plyr--airplay-supported [data-plyr=airplay],.plyr--fullscreen-enabled [data-plyr=fullscreen]{display:inline-block}.plyr__menu{display:flex;position:relative}.plyr__menu .plyr__control svg{transition:transform 0.3s ease}.plyr__menu .plyr__control[aria-expanded=true] svg{transform:rotate(90deg)}.plyr__menu .plyr__control[aria-expanded=true] .plyr__tooltip{display:none}.plyr__menu__container{animation:plyr-popup 0.2s ease;background:var(--plyr-menu-background, rgba(255, 255, 255, 0.9));border-radius:4px;bottom:100%;box-shadow:var(--plyr-menu-shadow, 0 1px 2px rgba(0, 0, 0, 0.15));color:var(--plyr-menu-color, #4a5464);font-size:var(--plyr-font-size-base, 15px);margin-bottom:10px;position:absolute;right:-3px;text-align:left;white-space:nowrap;z-index:3}.plyr__menu__container>div{overflow:hidden;transition:height 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.4, 0, 0.2, 1)}.plyr__menu__container::after{border:var(--plyr-menu-arrow-size, 4px) solid transparent;border-top-color:var(--plyr-menu-background, rgba(255, 255, 255, 0.9));content:\"\";height:0;position:absolute;right:calc(((var(--plyr-control-icon-size, 18px) / 2) + calc(var(--plyr-control-spacing, 10px) * 0.7)) - (var(--plyr-menu-arrow-size, 4px) / 2));top:100%;width:0}.plyr__menu__container [role=menu]{padding:calc(var(--plyr-control-spacing, 10px) * 0.7)}.plyr__menu__container [role=menuitem],.plyr__menu__container [role=menuitemradio]{margin-top:2px}.plyr__menu__container [role=menuitem]:first-child,.plyr__menu__container [role=menuitemradio]:first-child{margin-top:0}.plyr__menu__container .plyr__control{align-items:center;color:var(--plyr-menu-color, #4a5464);display:flex;font-size:var(--plyr-font-size-menu, var(--plyr-font-size-small, 13px));padding-bottom:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) / 1.5);padding-left:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 1.5);padding-right:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 1.5);padding-top:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) / 1.5);user-select:none;width:100%}.plyr__menu__container .plyr__control>span{align-items:inherit;display:flex;width:100%}.plyr__menu__container .plyr__control::after{border:var(--plyr-menu-item-arrow-size, 4px) solid transparent;content:\"\";position:absolute;top:50%;transform:translateY(-50%)}.plyr__menu__container .plyr__control--forward{padding-right:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 4)}.plyr__menu__container .plyr__control--forward::after{border-left-color:var(--plyr-menu-arrow-color, #728197);right:calc((calc(var(--plyr-control-spacing, 10px) * 0.7) * 1.5) - var(--plyr-menu-item-arrow-size, 4px))}.plyr__menu__container .plyr__control--forward.plyr__tab-focus::after,.plyr__menu__container .plyr__control--forward:hover::after{border-left-color:currentColor}.plyr__menu__container .plyr__control--back{font-weight:var(--plyr-font-weight-regular, 400);margin:calc(var(--plyr-control-spacing, 10px) * 0.7);margin-bottom:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) / 2);padding-left:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 4);position:relative;width:calc(100% - (calc(var(--plyr-control-spacing, 10px) * 0.7) * 2))}.plyr__menu__container .plyr__control--back::after{border-right-color:var(--plyr-menu-arrow-color, #728197);left:calc((calc(var(--plyr-control-spacing, 10px) * 0.7) * 1.5) - var(--plyr-menu-item-arrow-size, 4px))}.plyr__menu__container .plyr__control--back::before{background:var(--plyr-menu-back-border-color, #dcdfe5);box-shadow:0 1px 0 var(--plyr-menu-back-border-shadow-color, #fff);content:\"\";height:1px;left:0;margin-top:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) / 2);overflow:hidden;position:absolute;right:0;top:100%}.plyr__menu__container .plyr__control--back.plyr__tab-focus::after,.plyr__menu__container .plyr__control--back:hover::after{border-right-color:currentColor}.plyr__menu__container .plyr__control[role=menuitemradio]{padding-left:calc(var(--plyr-control-spacing, 10px) * 0.7)}.plyr__menu__container .plyr__control[role=menuitemradio]::before,.plyr__menu__container .plyr__control[role=menuitemradio]::after{border-radius:100%}.plyr__menu__container .plyr__control[role=menuitemradio]::before{background:rgba(0, 0, 0, 0.1);content:\"\";display:block;flex-shrink:0;height:16px;margin-right:var(--plyr-control-spacing, 10px);transition:all 0.3s ease;width:16px}.plyr__menu__container .plyr__control[role=menuitemradio]::after{background:#fff;border:0;height:6px;left:12px;opacity:0;top:50%;transform:translateY(-50%) scale(0);transition:transform 0.3s ease, opacity 0.3s ease;width:6px}.plyr__menu__container .plyr__control[role=menuitemradio][aria-checked=true]::before{background:var(--plyr-control-toggle-checked-background, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)))}.plyr__menu__container .plyr__control[role=menuitemradio][aria-checked=true]::after{opacity:1;transform:translateY(-50%) scale(1)}.plyr__menu__container .plyr__control[role=menuitemradio].plyr__tab-focus::before,.plyr__menu__container .plyr__control[role=menuitemradio]:hover::before{background:rgba(35, 40, 47, 0.1)}.plyr__menu__container .plyr__menu__value{align-items:center;display:flex;margin-left:auto;margin-right:calc((calc(var(--plyr-control-spacing, 10px) * 0.7) - 2) * -1);overflow:hidden;padding-left:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 3.5);pointer-events:none}.plyr--full-ui input[type=range]{-webkit-appearance:none;background:transparent;border:0;border-radius:calc(var(--plyr-range-thumb-height, 13px) * 2);color:var(--plyr-range-fill-background, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));display:block;height:calc((var(--plyr-range-thumb-active-shadow-width, 3px) * 2) + var(--plyr-range-thumb-height, 13px));margin:0;min-width:0;padding:0;transition:box-shadow 0.3s ease;width:100%}.plyr--full-ui input[type=range]::-webkit-slider-runnable-track{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none;background-image:linear-gradient(to right, currentColor var(--value, 0%), transparent var(--value, 0%))}.plyr--full-ui input[type=range]::-webkit-slider-thumb{background:var(--plyr-range-thumb-background, #fff);border:0;border-radius:100%;box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2));height:var(--plyr-range-thumb-height, 13px);position:relative;transition:all 0.2s ease;width:var(--plyr-range-thumb-height, 13px);-webkit-appearance:none;margin-top:calc(((var(--plyr-range-thumb-height, 13px) - var(--plyr-range-track-height, 5px)) / 2) * -1)}.plyr--full-ui input[type=range]::-moz-range-track{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none}.plyr--full-ui input[type=range]::-moz-range-thumb{background:var(--plyr-range-thumb-background, #fff);border:0;border-radius:100%;box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2));height:var(--plyr-range-thumb-height, 13px);position:relative;transition:all 0.2s ease;width:var(--plyr-range-thumb-height, 13px)}.plyr--full-ui input[type=range]::-moz-range-progress{background:currentColor;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px)}.plyr--full-ui input[type=range]::-ms-track{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none;color:transparent}.plyr--full-ui input[type=range]::-ms-fill-upper{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none}.plyr--full-ui input[type=range]::-ms-fill-lower{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none;background:currentColor}.plyr--full-ui input[type=range]::-ms-thumb{background:var(--plyr-range-thumb-background, #fff);border:0;border-radius:100%;box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2));height:var(--plyr-range-thumb-height, 13px);position:relative;transition:all 0.2s ease;width:var(--plyr-range-thumb-height, 13px);margin-top:0}.plyr--full-ui input[type=range]::-ms-tooltip{display:none}.plyr--full-ui input[type=range]:focus{outline:0}.plyr--full-ui input[type=range]::-moz-focus-outer{border:0}.plyr--full-ui input[type=range].plyr__tab-focus::-webkit-slider-runnable-track{outline-color:var(--plyr-tab-focus-color, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));outline-offset:2px;outline-style:dotted;outline-width:3px}.plyr--full-ui input[type=range].plyr__tab-focus::-moz-range-track{outline-color:var(--plyr-tab-focus-color, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));outline-offset:2px;outline-style:dotted;outline-width:3px}.plyr--full-ui input[type=range].plyr__tab-focus::-ms-track{outline-color:var(--plyr-tab-focus-color, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));outline-offset:2px;outline-style:dotted;outline-width:3px}.plyr__poster{background-color:var(--plyr-video-background, var(--plyr-video-background, black));background-position:50% 50%;background-repeat:no-repeat;background-size:contain;height:100%;left:0;opacity:0;position:absolute;top:0;transition:opacity 0.2s ease;width:100%;z-index:1}.plyr--stopped.plyr__poster-enabled .plyr__poster{opacity:1}.plyr--youtube.plyr--paused.plyr__poster-enabled:not(.plyr--stopped) .plyr__poster{display:none}.plyr__time{font-size:var(--plyr-font-size-time, var(--plyr-font-size-small, 13px))}.plyr__time+.plyr__time::before{content:\"⁄\";margin-right:var(--plyr-control-spacing, 10px)}@media (max-width: 767px){.plyr__time+.plyr__time{display:none}}.plyr__tooltip{background:var(--plyr-tooltip-background, rgba(255, 255, 255, 0.9));border-radius:var(--plyr-tooltip-radius, 3px);bottom:100%;box-shadow:var(--plyr-tooltip-shadow, 0 1px 2px rgba(0, 0, 0, 0.15));color:var(--plyr-tooltip-color, #4a5464);font-size:var(--plyr-font-size-small, 13px);font-weight:var(--plyr-font-weight-regular, 400);left:50%;line-height:1.3;margin-bottom:calc(calc(var(--plyr-control-spacing, 10px) / 2) * 2);opacity:0;padding:calc(var(--plyr-control-spacing, 10px) / 2) calc(calc(var(--plyr-control-spacing, 10px) / 2) * 1.5);pointer-events:none;position:absolute;transform:translate(-50%, 10px) scale(0.8);transform-origin:50% 100%;transition:transform 0.2s 0.1s ease, opacity 0.2s 0.1s ease;white-space:nowrap;z-index:2}.plyr__tooltip::before{border-left:var(--plyr-tooltip-arrow-size, 4px) solid transparent;border-right:var(--plyr-tooltip-arrow-size, 4px) solid transparent;border-top:var(--plyr-tooltip-arrow-size, 4px) solid var(--plyr-tooltip-background, rgba(255, 255, 255, 0.9));bottom:calc(var(--plyr-tooltip-arrow-size, 4px) * -1);content:\"\";height:0;left:50%;position:absolute;transform:translateX(-50%);width:0;z-index:2}.plyr .plyr__control:hover .plyr__tooltip,.plyr .plyr__control.plyr__tab-focus .plyr__tooltip,.plyr__tooltip--visible{opacity:1;transform:translate(-50%, 0) scale(1)}.plyr .plyr__control:hover .plyr__tooltip{z-index:3}.plyr__controls>.plyr__control:first-child .plyr__tooltip,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip{left:0;transform:translate(0, 10px) scale(0.8);transform-origin:0 100%}.plyr__controls>.plyr__control:first-child .plyr__tooltip::before,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip::before{left:calc((var(--plyr-control-icon-size, 18px) / 2) + calc(var(--plyr-control-spacing, 10px) * 0.7))}.plyr__controls>.plyr__control:last-child .plyr__tooltip{left:auto;right:0;transform:translate(0, 10px) scale(0.8);transform-origin:100% 100%}.plyr__controls>.plyr__control:last-child .plyr__tooltip::before{left:auto;right:calc((var(--plyr-control-icon-size, 18px) / 2) + calc(var(--plyr-control-spacing, 10px) * 0.7));transform:translateX(50%)}.plyr__controls>.plyr__control:first-child:hover .plyr__tooltip,.plyr__controls>.plyr__control:first-child.plyr__tab-focus .plyr__tooltip,.plyr__controls>.plyr__control:first-child .plyr__tooltip--visible,.plyr__controls>.plyr__control:first-child+.plyr__control:hover .plyr__tooltip,.plyr__controls>.plyr__control:first-child+.plyr__control.plyr__tab-focus .plyr__tooltip,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip--visible,.plyr__controls>.plyr__control:last-child:hover .plyr__tooltip,.plyr__controls>.plyr__control:last-child.plyr__tab-focus .plyr__tooltip,.plyr__controls>.plyr__control:last-child .plyr__tooltip--visible{transform:translate(0, 0) scale(1)}.plyr__progress{left:calc(var(--plyr-range-thumb-height, 13px) * 0.5);margin-right:var(--plyr-range-thumb-height, 13px);position:relative}.plyr__progress input[type=range],.plyr__progress__buffer{margin-left:calc(var(--plyr-range-thumb-height, 13px) * -0.5);margin-right:calc(var(--plyr-range-thumb-height, 13px) * -0.5);width:calc(100% + var(--plyr-range-thumb-height, 13px))}.plyr__progress input[type=range]{position:relative;z-index:2}.plyr__progress .plyr__tooltip{font-size:var(--plyr-font-size-time, var(--plyr-font-size-small, 13px));left:0}.plyr__progress__buffer{-webkit-appearance:none;background:transparent;border:0;border-radius:100px;height:var(--plyr-range-track-height, 5px);left:0;margin-top:calc((var(--plyr-range-track-height, 5px) / 2) * -1);padding:0;position:absolute;top:50%}.plyr__progress__buffer::-webkit-progress-bar{background:transparent}.plyr__progress__buffer::-webkit-progress-value{background:currentColor;border-radius:100px;min-width:var(--plyr-range-track-height, 5px);transition:width 0.2s ease}.plyr__progress__buffer::-moz-progress-bar{background:currentColor;border-radius:100px;min-width:var(--plyr-range-track-height, 5px);transition:width 0.2s ease}.plyr__progress__buffer::-ms-fill{border-radius:100px;transition:width 0.2s ease}.plyr--loading .plyr__progress__buffer{animation:plyr-progress 1s linear infinite;background-image:linear-gradient(-45deg, var(--plyr-progress-loading-background, rgba(35, 40, 47, 0.6)) 25%, transparent 25%, transparent 50%, var(--plyr-progress-loading-background, rgba(35, 40, 47, 0.6)) 50%, var(--plyr-progress-loading-background, rgba(35, 40, 47, 0.6)) 75%, transparent 75%, transparent);background-repeat:repeat-x;background-size:var(--plyr-progress-loading-size, 25px) var(--plyr-progress-loading-size, 25px);color:transparent}.plyr--video.plyr--loading .plyr__progress__buffer{background-color:var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25))}.plyr--audio.plyr--loading .plyr__progress__buffer{background-color:var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6))}.plyr__volume{align-items:center;display:flex;max-width:110px;min-width:80px;position:relative;width:20%}.plyr__volume input[type=range]{margin-left:calc(var(--plyr-control-spacing, 10px) / 2);margin-right:calc(var(--plyr-control-spacing, 10px) / 2);position:relative;z-index:2}.plyr--is-ios .plyr__volume{min-width:0;width:auto}.plyr--audio{display:block}.plyr--audio .plyr__controls{background:var(--plyr-audio-controls-background, #fff);border-radius:inherit;color:var(--plyr-audio-control-color, #4a5464);padding:var(--plyr-control-spacing, 10px)}.plyr--audio .plyr__control.plyr__tab-focus,.plyr--audio .plyr__control:hover,.plyr--audio .plyr__control[aria-expanded=true]{background:var(--plyr-audio-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));color:var(--plyr-audio-control-color-hover, #fff)}.plyr--full-ui.plyr--audio input[type=range]::-webkit-slider-runnable-track{background-color:var(--plyr-audio-range-track-background, var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6)))}.plyr--full-ui.plyr--audio input[type=range]::-moz-range-track{background-color:var(--plyr-audio-range-track-background, var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6)))}.plyr--full-ui.plyr--audio input[type=range]::-ms-track{background-color:var(--plyr-audio-range-track-background, var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6)))}.plyr--full-ui.plyr--audio input[type=range]:active::-webkit-slider-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(35, 40, 47, 0.1))}.plyr--full-ui.plyr--audio input[type=range]:active::-moz-range-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(35, 40, 47, 0.1))}.plyr--full-ui.plyr--audio input[type=range]:active::-ms-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(35, 40, 47, 0.1))}.plyr--audio .plyr__progress__buffer{color:var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6))}.plyr--video{background:var(--plyr-video-background, var(--plyr-video-background, black));overflow:hidden}.plyr--video.plyr--menu-open{overflow:visible}.plyr__video-wrapper{background:var(--plyr-video-background, var(--plyr-video-background, black));margin:auto;overflow:hidden;position:relative;width:100%}.plyr__video-embed,.plyr__video-wrapper--fixed-ratio{aspect-ratio:16/9}@supports not (aspect-ratio: 16/9){.plyr__video-embed,.plyr__video-wrapper--fixed-ratio{height:0;padding-bottom:56.25%;position:relative}}.plyr__video-embed iframe,.plyr__video-wrapper--fixed-ratio video{border:0;height:100%;left:0;position:absolute;top:0;width:100%}.plyr--full-ui .plyr__video-embed>.plyr__video-embed__container{padding-bottom:240%;position:relative;transform:translateY(-38.28125%)}.plyr--video .plyr__controls{background:var(--plyr-video-controls-background, linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75)));border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;bottom:0;color:var(--plyr-video-control-color, #fff);left:0;padding:calc(var(--plyr-control-spacing, 10px) / 2);padding-top:calc(var(--plyr-control-spacing, 10px) * 2);position:absolute;right:0;transition:opacity 0.4s ease-in-out, transform 0.4s ease-in-out;z-index:3}@media (min-width: 480px){.plyr--video .plyr__controls{padding:var(--plyr-control-spacing, 10px);padding-top:calc(var(--plyr-control-spacing, 10px) * 3.5)}}.plyr--video.plyr--hide-controls .plyr__controls{opacity:0;pointer-events:none;transform:translateY(100%)}.plyr--video .plyr__control.plyr__tab-focus,.plyr--video .plyr__control:hover,.plyr--video .plyr__control[aria-expanded=true]{background:var(--plyr-video-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));color:var(--plyr-video-control-color-hover, #fff)}.plyr__control--overlaid{background:var(--plyr-video-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));border:0;border-radius:100%;color:var(--plyr-video-control-color, #fff);display:none;left:50%;opacity:0.9;padding:calc(var(--plyr-control-spacing, 10px) * 1.5);position:absolute;top:50%;transform:translate(-50%, -50%);transition:0.3s;z-index:2}.plyr__control--overlaid svg{left:2px;position:relative}.plyr__control--overlaid:hover,.plyr__control--overlaid:focus{opacity:1}.plyr--playing .plyr__control--overlaid{opacity:0;visibility:hidden}.plyr--full-ui.plyr--video .plyr__control--overlaid{display:block}.plyr--full-ui.plyr--video input[type=range]::-webkit-slider-runnable-track{background-color:var(--plyr-video-range-track-background, var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25)))}.plyr--full-ui.plyr--video input[type=range]::-moz-range-track{background-color:var(--plyr-video-range-track-background, var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25)))}.plyr--full-ui.plyr--video input[type=range]::-ms-track{background-color:var(--plyr-video-range-track-background, var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25)))}.plyr--full-ui.plyr--video input[type=range]:active::-webkit-slider-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(255, 255, 255, 0.5))}.plyr--full-ui.plyr--video input[type=range]:active::-moz-range-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(255, 255, 255, 0.5))}.plyr--full-ui.plyr--video input[type=range]:active::-ms-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(255, 255, 255, 0.5))}.plyr--video .plyr__progress__buffer{color:var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25))}.plyr:fullscreen{background:#000;border-radius:0 !important;height:100%;margin:0;width:100%}.plyr:fullscreen video{height:100%}.plyr:fullscreen .plyr__control .icon--exit-fullscreen{display:block}.plyr:fullscreen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:fullscreen.plyr--hide-controls{cursor:none}@media (min-width: 1024px){.plyr:fullscreen .plyr__captions{font-size:var(--plyr-font-size-xlarge, 21px)}}.plyr:-webkit-full-screen{background:#000;border-radius:0 !important;height:100%;margin:0;width:100%}.plyr:-webkit-full-screen video{height:100%}.plyr:-webkit-full-screen .plyr__control .icon--exit-fullscreen{display:block}.plyr:-webkit-full-screen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:-webkit-full-screen.plyr--hide-controls{cursor:none}@media (min-width: 1024px){.plyr:-webkit-full-screen .plyr__captions{font-size:var(--plyr-font-size-xlarge, 21px)}}.plyr:-moz-full-screen{background:#000;border-radius:0 !important;height:100%;margin:0;width:100%}.plyr:-moz-full-screen video{height:100%}.plyr:-moz-full-screen .plyr__control .icon--exit-fullscreen{display:block}.plyr:-moz-full-screen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:-moz-full-screen.plyr--hide-controls{cursor:none}@media (min-width: 1024px){.plyr:-moz-full-screen .plyr__captions{font-size:var(--plyr-font-size-xlarge, 21px)}}.plyr:-ms-fullscreen{background:#000;border-radius:0 !important;height:100%;margin:0;width:100%}.plyr:-ms-fullscreen video{height:100%}.plyr:-ms-fullscreen .plyr__control .icon--exit-fullscreen{display:block}.plyr:-ms-fullscreen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:-ms-fullscreen.plyr--hide-controls{cursor:none}@media (min-width: 1024px){.plyr:-ms-fullscreen .plyr__captions{font-size:var(--plyr-font-size-xlarge, 21px)}}.plyr--fullscreen-fallback{background:#000;border-radius:0 !important;height:100%;margin:0;width:100%;bottom:0;display:block;left:0;position:fixed;right:0;top:0;z-index:10000000}.plyr--fullscreen-fallback video{height:100%}.plyr--fullscreen-fallback .plyr__control .icon--exit-fullscreen{display:block}.plyr--fullscreen-fallback .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr--fullscreen-fallback.plyr--hide-controls{cursor:none}@media (min-width: 1024px){.plyr--fullscreen-fallback .plyr__captions{font-size:var(--plyr-font-size-xlarge, 21px)}}.plyr__ads{border-radius:inherit;bottom:0;cursor:pointer;left:0;overflow:hidden;position:absolute;right:0;top:0;z-index:-1}.plyr__ads>div,.plyr__ads>div iframe{height:100%;position:absolute;width:100%}.plyr__ads::after{background:#23282f;border-radius:2px;bottom:var(--plyr-control-spacing, 10px);color:#fff;content:attr(data-badge-text);font-size:11px;padding:2px 6px;pointer-events:none;position:absolute;right:var(--plyr-control-spacing, 10px);z-index:3}.plyr__ads::after:empty{display:none}.plyr__cues{background:currentColor;display:block;height:var(--plyr-range-track-height, 5px);left:0;margin:-var(--plyr-range-track-height, 5px)/2 0 0;opacity:0.8;position:absolute;top:50%;width:3px;z-index:3}.plyr__preview-thumb{background-color:var(--plyr-tooltip-background, rgba(255, 255, 255, 0.9));border-radius:3px;bottom:100%;box-shadow:var(--plyr-tooltip-shadow, 0 1px 2px rgba(0, 0, 0, 0.15));margin-bottom:calc(calc(var(--plyr-control-spacing, 10px) / 2) * 2);opacity:0;padding:var(--plyr-tooltip-radius, 3px);pointer-events:none;position:absolute;transform:translate(0, 10px) scale(0.8);transform-origin:50% 100%;transition:transform 0.2s 0.1s ease, opacity 0.2s 0.1s ease;z-index:2}.plyr__preview-thumb--is-shown{opacity:1;transform:translate(0, 0) scale(1)}.plyr__preview-thumb::before{border-left:var(--plyr-tooltip-arrow-size, 4px) solid transparent;border-right:var(--plyr-tooltip-arrow-size, 4px) solid transparent;border-top:var(--plyr-tooltip-arrow-size, 4px) solid var(--plyr-tooltip-background, rgba(255, 255, 255, 0.9));bottom:calc(var(--plyr-tooltip-arrow-size, 4px) * -1);content:\"\";height:0;left:50%;position:absolute;transform:translateX(-50%);width:0;z-index:2}.plyr__preview-thumb__image-container{background:#c1c8d1;border-radius:calc(var(--plyr-tooltip-radius, 3px) - 1px);overflow:hidden;position:relative;z-index:0}.plyr__preview-thumb__image-container img{height:100%;left:0;max-height:none;max-width:none;position:absolute;top:0;width:100%}.plyr__preview-thumb__time-container{bottom:6px;left:0;position:absolute;right:0;white-space:nowrap;z-index:3}.plyr__preview-thumb__time-container span{background-color:rgba(0, 0, 0, 0.55);border-radius:calc(var(--plyr-tooltip-radius, 3px) - 1px);color:#fff;font-size:var(--plyr-font-size-time, var(--plyr-font-size-small, 13px));padding:3px 6px}.plyr__preview-scrubbing{bottom:0;filter:blur(1px);height:100%;left:0;margin:auto;opacity:0;overflow:hidden;pointer-events:none;position:absolute;right:0;top:0;transition:opacity 0.3s ease;width:100%;z-index:1}.plyr__preview-scrubbing--is-shown{opacity:1}.plyr__preview-scrubbing img{height:100%;left:0;max-height:none;max-width:none;object-fit:contain;position:absolute;top:0;width:100%}.plyr--no-transition{transition:none !important}.plyr__sr-only{clip:rect(1px, 1px, 1px, 1px);overflow:hidden;border:0 !important;height:1px !important;padding:0 !important;position:absolute !important;width:1px !important}.plyr [hidden]{display:none !important}video,iframe{max-width:100%}.presto-player__wrapper{position:relative;font-family:-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"}.presto-player__wrapper.rtl{direction:rtl}.presto-player__wrapper img{max-width:100%}.presto-player__wrapper .plyr.plyr--video.plyr--menu-open{overflow:hidden}.presto-player__wrapper .plyr--fullscreen-fallback.plyr--vimeo .plyr__video-wrapper{top:50%;transform:translateY(-50%)}.presto-player__wrapper .plyr--fullscreen-fallback.plyr{border-radius:0 !important}.presto-player__wrapper .plyr--fullscreen-fallback.plyr iframe{border-radius:0 !important}.presto-player__wrapper .plyr__menu__container{overflow:auto}.presto-player__wrapper .plyr__menu__container:after{display:none}.presto-player__wrapper img{border:none}.presto-player__wrapper video{margin:auto}.presto-player__wrapper iframe{height:100%}.presto-player__wrapper .plyr--video .plyr__control:active,.presto-player__wrapper .plyr--video .plyr__control:focus{background:#00b3ff;background:var(--plyr-video-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));color:#fff;color:var(--plyr-video-control-color-hover, #fff)}.presto-player__wrapper .plyr__poster{background-size:cover;z-index:2}.presto-player__wrapper .presto-player__logo{margin:0;display:block;position:absolute;z-index:3;opacity:0.5;object-fit:contain;transition:bottom 0.4s ease-in-out;max-width:var(--presto-player-logo-width, 75px)}.presto-player__wrapper .presto-player__logo.is-bottom-right{left:auto;right:20px;top:auto;bottom:60px}.presto-player__wrapper .presto-player__logo.is-bottom-left{left:20px;right:auto;top:auto;bottom:60px}@media screen and (min-width: 380px){.presto-player__wrapper.presto-player--hide-controls .presto-player__logo.is-bottom-right,.presto-player__wrapper.presto-player--hide-controls .presto-player__logo.is-bottom-left,.presto-player__wrapper .plyr--hide-controls .presto-player__logo.is-bottom-right,.presto-player__wrapper .plyr--hide-controls .presto-player__logo.is-bottom-left{bottom:20px}}.presto-player__wrapper .presto-player-progress__marker{width:16px;height:16px;padding:0;border:2px solid rgba(255, 255, 255, 0.5);position:absolute;border-radius:9999px;bottom:calc(50% - 8px);z-index:9;margin-left:-8px !important}.presto-player__wrapper.presto-player--ended .plyr--youtube .plyr__poster{display:none}.presto-player__wrapper.presto-player--ended .plyr--youtube .plyr__control.plyr__control--overlaid{display:none}.presto-player__wrapper button.plyr__control.plyr__control--overlaid:focus{background:inherit;border:none;outline:0;position:absolute;top:50%;transform:translate(-50%, -50%)}.presto-player__wrapper .plyr__controls__item.plyr__progress__container{position:relative}.presto-player__wrapper .plyr--full-ui.plyr--video input[type=range]::-webkit-slider-runnable-track{box-shadow:none}.presto-player__wrapper .plyr--video .plyr__controls{background:var(--plyr-video-controls-background, linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.75)))}.presto-player__wrapper .presto-player-toc{font-family:-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";line-height:1.4;position:absolute;top:auto;right:0;left:0;bottom:0;max-height:calc(100%);max-width:calc(100%);background:rgba(255, 255, 255, 0.9);background:var(--plyr-menu-background, rgba(255, 255, 255, 0.9));left:auto;padding:20px 15px;border-radius:4px;width:100%;z-index:9;box-shadow:0 1px 2px rgba(0, 0, 0, 0.15);box-shadow:var(--plyr-menu-shadow, 0 1px 2px rgba(0, 0, 0, 0.15));color:#4a5464;color:var(--plyr-menu-color, #4a5464);font-size:15px;font-size:var(--plyr-font-size-base, 15px);white-space:nowrap;z-index:3;display:flex;flex-direction:column;transition:bottom 0.25s ease}@media screen and (min-width: 380px){.presto-player__wrapper .presto-player-toc{right:20px;bottom:60px;width:300px;max-height:calc(100% - 80px);max-width:calc(100vw - 70px)}}.presto-player__wrapper .presto-player-toc__wrapper{position:absolute;top:0;left:0;bottom:0;right:0;z-index:3;visibility:hidden;opacity:0;transition:opacity 0.3s ease-in-out, visibility 0.3s ease-in-out}.presto-player__wrapper .presto-player-toc__wrapper.is-showing{visibility:visible;opacity:1}.presto-player__wrapper .presto-player-toc__cover{position:absolute;top:0;left:0;bottom:0;right:0;z-index:3}.presto-player__wrapper .presto-player-toc__list{flex:1;overflow:auto}.presto-player__wrapper .presto-player-toc__title{font-size:12px;font-weight:bold;margin-bottom:10px;margin-left:10px;margin-right:10px;display:none}@media screen and (min-width: 380px){.presto-player__wrapper .presto-player-toc__title{display:block}}.presto-player__wrapper .presto-player-toc__name{white-space:nowrap;overflow:hidden;width:100%;text-overflow:ellipsis}.presto-player__wrapper .presto-player-toc__chapter{padding:12px;border-radius:3px;cursor:pointer;line-height:1;display:flex;align-items:center;transition:background-color 0.4s ease, color 0.4s ease;margin-bottom:2px;position:relative}.presto-player__wrapper .presto-player-toc__chapter:last-child{margin-bottom:0}.presto-player__wrapper .presto-player-toc__chapter.is-highlighted,.presto-player__wrapper .presto-player-toc__chapter:hover{background:#00b3ff;background:var(--plyr-video-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));color:#fff;color:var(--plyr-video-control-color-hover, #fff)}.presto-player__wrapper .presto-player-toc__chapter.is-highlighted{padding-right:30px}.presto-player__wrapper .presto-player-toc__chapter.is-highlighted:after{background:rgba(255, 255, 255, 0.5);content:\"\";display:block;flex-shrink:0;height:8px;width:8px;margin-right:10px;margin-right:var(--plyr-control-spacing, 10px);transition:all 0.3s ease;border-radius:9999px;position:absolute;right:7px}.presto-player__wrapper .presto-player-toc__order{margin-right:12px;opacity:0.5}.presto-player__wrapper.rtl{direction:rtl}.presto-player__wrapper.rtl .presto-player-toc__order{order:2;margin-left:12px;margin-right:0}.presto-player__wrapper.rtl .presto-player-toc__name{direction:rtl}.presto-player__wrapper .presto-player-error{position:absolute;top:0;left:0;bottom:0;right:0;background:rgba(0, 0, 0, 0.9);color:#fff;display:flex;align-items:center;justify-content:center;z-index:10;text-align:center}.presto-player__wrapper .presto-player-error__title{font-size:18px;font-weight:bold;margin-bottom:8px}.presto-player__wrapper .presto-player-error__description{opacity:0.75}.presto-player__wrapper.hide-youtube-ui .plyr__video-embed iframe{top:-50%;height:200%}.presto-player__wrapper .plyr--vimeo.plyr--playing .plyr__video-embed__container{pointer-events:none}.presto-player__wrapper .plyr__control--overlaid{border-radius:6px;padding-left:26px;padding-right:26px;position:absolute !important;top:50% !important}.presto-player__wrapper.skin-stacked .plyr__controls{flex-wrap:wrap}.presto-player__wrapper.skin-stacked .presto-player-progress__marker{transform:scale(0.75)}.presto-player__wrapper.skin-stacked .plyr__controls{justify-content:flex-start}.presto-player__wrapper.skin-stacked .plyr__controls__item.plyr__progress__container{order:-1;flex:1 0 100%}.presto-player__wrapper.skin-stacked .plyr__controls__item.plyr__progress__container+:not(.plyr__time),.presto-player__wrapper.skin-stacked .plyr__controls__item.plyr__progress__container+.plyr__time+*{margin-left:auto}.presto-player__wrapper.skin-stacked .plyr__controls .plyr__controls__item:first-child{margin:0}.presto-player__wrapper.skin-stacked .plyr__progress{height:19px;display:flex;align-items:center}.presto-player__wrapper.skin-stacked .plyr__progress .plyr__progress__buffer{height:3px;transition:all 0.25s ease;position:absolute;top:calc(50% + 1px)}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-moz-range-track{height:3px;transition:all 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-webkit-slider-runnable-track{height:3px;transition:all 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-ms-track{height:3px;transition:all 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-ms-fill-upper{height:3px;transition:all 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-ms-fill-lower{height:3px;transition:height 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-webkit-slider-thumb{visibility:hidden;opacity:0;transition:opacity 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-moz-range-thumb{visibility:hidden;opacity:0;transition:opacity 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-ms-thumb{visibility:hidden;opacity:0;transition:opacity 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .presto-player-progress__marker{transform:scale(1)}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress .plyr__progress__buffer{height:5px;top:calc(50%)}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]{overflow:visible}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-moz-range-track{height:5px}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-webkit-slider-runnable-track{height:5px}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-ms-track{height:5px}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-ms-fill-upper{height:5px}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-ms-fill-lower{height:5px}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-webkit-slider-thumb{visibility:visible;opacity:1}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-moz-range-thumb{visibility:visible;opacity:1}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-ms-thumb{visibility:visible;opacity:1}.presto-sticky-parent{z-index:99998}@media screen and (min-width: 960px){.presto-sticky{--presto-sticky-space:15px;position:fixed;z-index:3000;max-width:var(--presto-sticky-width, 380px);width:100vw}.presto-sticky .plyr__controls,.presto-sticky .presto-player-toc__wrapper,.presto-sticky presto-action-bar,.presto-sticky .presto-player__logo{display:none}.presto-sticky--top-left{top:var(--presto-sticky-space);left:var(--presto-sticky-space)}.presto-sticky--top-center{top:var(--presto-sticky-space);left:0;right:0;margin:0 auto}.presto-sticky--top-right{top:var(--presto-sticky-space);right:var(--presto-sticky-space)}.presto-sticky--center-left{top:0;bottom:0;margin:auto 0;left:var(--presto-sticky-space);display:flex;align-items:center}.presto-sticky--center-center{top:0;bottom:0;right:0;left:0;margin:auto;display:flex;align-items:center}.presto-sticky--center-right{top:0;bottom:0;margin:auto 0;right:var(--presto-sticky-space);display:flex;align-items:center}.presto-sticky--bottom-left{bottom:var(--presto-sticky-space);left:var(--presto-sticky-space)}.presto-sticky--bottom-center{bottom:var(--presto-sticky-space);left:0;right:0;margin:0 auto}.presto-sticky--bottom-right{bottom:var(--presto-sticky-space);right:var(--presto-sticky-space)}}.presto-player__overlay{position:absolute;top:50%;left:50%;z-index:3}.presto-player__muted-overlay{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center}.presto-player__muted-overlay .plyr__control--overlaid{display:block;opacity:1;visibility:visible}.presto-player__wrapper.is-muted-overlay{cursor:pointer}.presto-player__wrapper.is-muted-overlay .plyr--playing .presto-player__muted-overlay .plyr__control--overlaid{opacity:1;visibility:visible}.presto-player__wrapper.is-muted-overlay .presto-player__logo{display:none}.presto-player__wrapper.is-muted-overlay .plyr__controls{display:none}.presto-player__wrapper.is-muted-overlay .plyr .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(0) !important}.presto-player__wrapper.rtl .plyr__captions{direction:rtl}.presto-player__wrapper.caption-style-full .plyr__captions{background:var(--plyr-captions-background, rgba(0, 0, 0, 0.8));padding-top:0;padding-bottom:0}.presto-player__wrapper.caption-style-full .plyr:not(.plyr--hide-controls):not(.is-muted-overlay) .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(calc(var(--plyr-control-spacing, 13px) * -4))}.presto-player__wrapper.caption-style-full.skin-stacked .plyr:not(.plyr--hide-controls):not(.is-muted-overlay) .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(calc(var(--plyr-control-spacing, 17px) * -4))}.presto-player__play-cover{cursor:pointer;position:absolute;top:0;left:0;right:0;bottom:0;z-index:99}.presto-player__chapters{width:100%;position:absolute;top:0;height:100%}.presto-player__chapter-markers{margin:0 8px;height:100%;position:relative}.presto-player-progress__marker.plyr__controls__item.plyr__control:hover{border:0;background:#fff}.presto-iframe-fallback-container{position:relative;padding-bottom:56.25%;padding-top:30px;height:0;overflow:hidden}.presto-iframe-fallback-container embed,.presto-iframe-fallback-container iframe,.presto-iframe-fallback-container object{position:absolute;top:0;left:0;width:100%;height:100%}";
5429
 
5430
  const PrestoPlayer = class {
5431
  constructor(hostRef) {
@@ -5771,7 +5767,7 @@ const PrestoPlayer = class {
5771
  * @returns
5772
  */
5773
  handleVisibilityPlayChange(element) {
5774
- var _a;
5775
  if (this.isAdmin || !((_a = this.preset) === null || _a === void 0 ? void 0 : _a.play_video_viewport)) {
5776
  return;
5777
  }
@@ -5797,6 +5793,16 @@ const PrestoPlayer = class {
5797
  return;
5798
  }
5799
  }
 
 
 
 
 
 
 
 
 
 
5800
  if (this.player.playing) {
5801
  this.previouslyPlaying = true;
5802
  }
@@ -5834,10 +5840,13 @@ const PrestoPlayer = class {
5834
  }
5835
  }
5836
  renderCTA() {
5837
- var _a;
5838
- if (!((_a = window === null || window === void 0 ? void 0 : window.prestoPlayer) === null || _a === void 0 ? void 0 : _a.isPremium) || this.isAdmin) {
 
 
 
 
5839
  return;
5840
- }
5841
  return (h("presto-cta-overlay", { direction: this.direction, player: this.player, preset: this.preset, i18n: this.i18n, onPlayVideo: () => {
5842
  this.mutedPreview = false;
5843
  this.play();
5230
  var player = new Plyr(element, setup); // conditionally load learndash
5231
 
5232
  if (typeof learndash_video_data !== 'undefined') {
5233
+ import('./learndash-5366b7c9.js').then(function (module) {
5234
  var learnDash = module.default;
5235
  learnDash(player);
5236
  });
5262
  return player;
5263
  }
5264
 
 
 
 
 
5265
  // is the source hls?
5266
  function isHLS(url) {
5267
+ return typeof url === 'string' && url.includes('.m3u8');
5268
  }
5269
  function getParents(elem) {
5270
  var parents = [];
5283
 
5284
  // dynamically load hls module if we have an hls video
5285
  if (src && isHLS(src)) {
5286
+ return import('./hls-26fb4f3e.js').then(function (module) {
5287
  var hls = module.default;
5288
  return hls({
5289
  config: config,
5421
  return playerSettings;
5422
  }
5423
 
5424
+ const prestoPlayerCss = "@charset \"UTF-8\";@keyframes plyr-progress{to{background-position:var(--plyr-progress-loading-size, 25px) 0}}@keyframes plyr-popup{0%{opacity:0.5;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes plyr-fade-in{from{opacity:0}to{opacity:1}}.plyr{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;align-items:center;direction:ltr;display:flex;flex-direction:column;font-family:var(--plyr-font-family, inherit);font-variant-numeric:tabular-nums;font-weight:var(--plyr-font-weight-regular, 400);line-height:var(--plyr-line-height, 1.7);max-width:100%;min-width:200px;position:relative;text-shadow:none;transition:box-shadow 0.3s ease;z-index:0}.plyr video,.plyr audio,.plyr iframe{display:block;height:100%;width:100%}.plyr button{font:inherit;line-height:inherit;width:auto}.plyr:focus{outline:0}.plyr--full-ui{box-sizing:border-box}.plyr--full-ui *,.plyr--full-ui *::after,.plyr--full-ui *::before{box-sizing:inherit}.plyr--full-ui a,.plyr--full-ui button,.plyr--full-ui input,.plyr--full-ui label{touch-action:manipulation}.plyr__badge{background:var(--plyr-badge-background, #4a5464);border-radius:var(--plyr-badge-border-radius, 2px);color:var(--plyr-badge-text-color, #fff);font-size:var(--plyr-font-size-badge, 9px);line-height:1;padding:3px 4px}.plyr--full-ui ::-webkit-media-text-track-container{display:none}.plyr__captions{animation:plyr-fade-in 0.3s ease;bottom:0;display:none;font-size:var(--plyr-font-size-small, 13px);left:0;padding:var(--plyr-control-spacing, 10px);position:absolute;text-align:center;transition:transform 0.4s ease-in-out;width:100%}.plyr__captions span:empty{display:none}@media (min-width: 480px){.plyr__captions{font-size:var(--plyr-font-size-base, 15px);padding:calc(var(--plyr-control-spacing, 10px) * 2)}}@media (min-width: 768px){.plyr__captions{font-size:var(--plyr-font-size-large, 18px)}}.plyr--captions-active .plyr__captions{display:block}.plyr:not(.plyr--hide-controls) .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(calc(var(--plyr-control-spacing, 10px) * -4))}.plyr__caption{background:var(--plyr-captions-background, rgba(0, 0, 0, 0.8));border-radius:2px;box-decoration-break:clone;color:var(--plyr-captions-text-color, #fff);line-height:185%;padding:0.2em 0.5em;white-space:pre-wrap}.plyr__caption div{display:inline}.plyr__control{background:transparent;border:0;border-radius:var(--plyr-control-radius, 3px);color:inherit;cursor:pointer;flex-shrink:0;overflow:visible;padding:calc(var(--plyr-control-spacing, 10px) * 0.7);position:relative;transition:all 0.3s ease}.plyr__control svg{display:block;fill:currentColor;height:var(--plyr-control-icon-size, 18px);pointer-events:none;width:var(--plyr-control-icon-size, 18px)}.plyr__control:focus{outline:0}.plyr__control.plyr__tab-focus{outline-color:var(--plyr-tab-focus-color, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));outline-offset:2px;outline-style:dotted;outline-width:3px}a.plyr__control{text-decoration:none}a.plyr__control::after,a.plyr__control::before{display:none}.plyr__control:not(.plyr__control--pressed) .icon--pressed,.plyr__control.plyr__control--pressed .icon--not-pressed,.plyr__control:not(.plyr__control--pressed) .label--pressed,.plyr__control.plyr__control--pressed .label--not-pressed{display:none}.plyr--full-ui ::-webkit-media-controls{display:none}.plyr__controls{align-items:center;display:flex;justify-content:flex-end;text-align:center}.plyr__controls .plyr__progress__container{flex:1;min-width:0}.plyr__controls .plyr__controls__item{margin-left:calc(var(--plyr-control-spacing, 10px) / 4)}.plyr__controls .plyr__controls__item:first-child{margin-left:0;margin-right:auto}.plyr__controls .plyr__controls__item.plyr__progress__container{padding-left:calc(var(--plyr-control-spacing, 10px) / 4)}.plyr__controls .plyr__controls__item.plyr__time{padding:0 calc(var(--plyr-control-spacing, 10px) / 2)}.plyr__controls .plyr__controls__item.plyr__progress__container:first-child,.plyr__controls .plyr__controls__item.plyr__time:first-child,.plyr__controls .plyr__controls__item.plyr__time+.plyr__time{padding-left:0}.plyr__controls:empty{display:none}.plyr [data-plyr=captions],.plyr [data-plyr=pip],.plyr [data-plyr=airplay],.plyr [data-plyr=fullscreen]{display:none}.plyr--captions-enabled [data-plyr=captions],.plyr--pip-supported [data-plyr=pip],.plyr--airplay-supported [data-plyr=airplay],.plyr--fullscreen-enabled [data-plyr=fullscreen]{display:inline-block}.plyr__menu{display:flex;position:relative}.plyr__menu .plyr__control svg{transition:transform 0.3s ease}.plyr__menu .plyr__control[aria-expanded=true] svg{transform:rotate(90deg)}.plyr__menu .plyr__control[aria-expanded=true] .plyr__tooltip{display:none}.plyr__menu__container{animation:plyr-popup 0.2s ease;background:var(--plyr-menu-background, rgba(255, 255, 255, 0.9));border-radius:4px;bottom:100%;box-shadow:var(--plyr-menu-shadow, 0 1px 2px rgba(0, 0, 0, 0.15));color:var(--plyr-menu-color, #4a5464);font-size:var(--plyr-font-size-base, 15px);margin-bottom:10px;position:absolute;right:-3px;text-align:left;white-space:nowrap;z-index:3}.plyr__menu__container>div{overflow:hidden;transition:height 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.4, 0, 0.2, 1)}.plyr__menu__container::after{border:var(--plyr-menu-arrow-size, 4px) solid transparent;border-top-color:var(--plyr-menu-background, rgba(255, 255, 255, 0.9));content:\"\";height:0;position:absolute;right:calc(((var(--plyr-control-icon-size, 18px) / 2) + calc(var(--plyr-control-spacing, 10px) * 0.7)) - (var(--plyr-menu-arrow-size, 4px) / 2));top:100%;width:0}.plyr__menu__container [role=menu]{padding:calc(var(--plyr-control-spacing, 10px) * 0.7)}.plyr__menu__container [role=menuitem],.plyr__menu__container [role=menuitemradio]{margin-top:2px}.plyr__menu__container [role=menuitem]:first-child,.plyr__menu__container [role=menuitemradio]:first-child{margin-top:0}.plyr__menu__container .plyr__control{align-items:center;color:var(--plyr-menu-color, #4a5464);display:flex;font-size:var(--plyr-font-size-menu, var(--plyr-font-size-small, 13px));padding-bottom:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) / 1.5);padding-left:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 1.5);padding-right:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 1.5);padding-top:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) / 1.5);user-select:none;width:100%}.plyr__menu__container .plyr__control>span{align-items:inherit;display:flex;width:100%}.plyr__menu__container .plyr__control::after{border:var(--plyr-menu-item-arrow-size, 4px) solid transparent;content:\"\";position:absolute;top:50%;transform:translateY(-50%)}.plyr__menu__container .plyr__control--forward{padding-right:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 4)}.plyr__menu__container .plyr__control--forward::after{border-left-color:var(--plyr-menu-arrow-color, #728197);right:calc((calc(var(--plyr-control-spacing, 10px) * 0.7) * 1.5) - var(--plyr-menu-item-arrow-size, 4px))}.plyr__menu__container .plyr__control--forward.plyr__tab-focus::after,.plyr__menu__container .plyr__control--forward:hover::after{border-left-color:currentColor}.plyr__menu__container .plyr__control--back{font-weight:var(--plyr-font-weight-regular, 400);margin:calc(var(--plyr-control-spacing, 10px) * 0.7);margin-bottom:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) / 2);padding-left:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 4);position:relative;width:calc(100% - (calc(var(--plyr-control-spacing, 10px) * 0.7) * 2))}.plyr__menu__container .plyr__control--back::after{border-right-color:var(--plyr-menu-arrow-color, #728197);left:calc((calc(var(--plyr-control-spacing, 10px) * 0.7) * 1.5) - var(--plyr-menu-item-arrow-size, 4px))}.plyr__menu__container .plyr__control--back::before{background:var(--plyr-menu-back-border-color, #dcdfe5);box-shadow:0 1px 0 var(--plyr-menu-back-border-shadow-color, #fff);content:\"\";height:1px;left:0;margin-top:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) / 2);overflow:hidden;position:absolute;right:0;top:100%}.plyr__menu__container .plyr__control--back.plyr__tab-focus::after,.plyr__menu__container .plyr__control--back:hover::after{border-right-color:currentColor}.plyr__menu__container .plyr__control[role=menuitemradio]{padding-left:calc(var(--plyr-control-spacing, 10px) * 0.7)}.plyr__menu__container .plyr__control[role=menuitemradio]::before,.plyr__menu__container .plyr__control[role=menuitemradio]::after{border-radius:100%}.plyr__menu__container .plyr__control[role=menuitemradio]::before{background:rgba(0, 0, 0, 0.1);content:\"\";display:block;flex-shrink:0;height:16px;margin-right:var(--plyr-control-spacing, 10px);transition:all 0.3s ease;width:16px}.plyr__menu__container .plyr__control[role=menuitemradio]::after{background:#fff;border:0;height:6px;left:12px;opacity:0;top:50%;transform:translateY(-50%) scale(0);transition:transform 0.3s ease, opacity 0.3s ease;width:6px}.plyr__menu__container .plyr__control[role=menuitemradio][aria-checked=true]::before{background:var(--plyr-control-toggle-checked-background, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)))}.plyr__menu__container .plyr__control[role=menuitemradio][aria-checked=true]::after{opacity:1;transform:translateY(-50%) scale(1)}.plyr__menu__container .plyr__control[role=menuitemradio].plyr__tab-focus::before,.plyr__menu__container .plyr__control[role=menuitemradio]:hover::before{background:rgba(35, 40, 47, 0.1)}.plyr__menu__container .plyr__menu__value{align-items:center;display:flex;margin-left:auto;margin-right:calc((calc(var(--plyr-control-spacing, 10px) * 0.7) - 2) * -1);overflow:hidden;padding-left:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 3.5);pointer-events:none}.plyr--full-ui input[type=range]{-webkit-appearance:none;background:transparent;border:0;border-radius:calc(var(--plyr-range-thumb-height, 13px) * 2);color:var(--plyr-range-fill-background, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));display:block;height:calc((var(--plyr-range-thumb-active-shadow-width, 3px) * 2) + var(--plyr-range-thumb-height, 13px));margin:0;min-width:0;padding:0;transition:box-shadow 0.3s ease;width:100%}.plyr--full-ui input[type=range]::-webkit-slider-runnable-track{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none;background-image:linear-gradient(to right, currentColor var(--value, 0%), transparent var(--value, 0%))}.plyr--full-ui input[type=range]::-webkit-slider-thumb{background:var(--plyr-range-thumb-background, #fff);border:0;border-radius:100%;box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2));height:var(--plyr-range-thumb-height, 13px);position:relative;transition:all 0.2s ease;width:var(--plyr-range-thumb-height, 13px);-webkit-appearance:none;margin-top:calc(((var(--plyr-range-thumb-height, 13px) - var(--plyr-range-track-height, 5px)) / 2) * -1)}.plyr--full-ui input[type=range]::-moz-range-track{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none}.plyr--full-ui input[type=range]::-moz-range-thumb{background:var(--plyr-range-thumb-background, #fff);border:0;border-radius:100%;box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2));height:var(--plyr-range-thumb-height, 13px);position:relative;transition:all 0.2s ease;width:var(--plyr-range-thumb-height, 13px)}.plyr--full-ui input[type=range]::-moz-range-progress{background:currentColor;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px)}.plyr--full-ui input[type=range]::-ms-track{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none;color:transparent}.plyr--full-ui input[type=range]::-ms-fill-upper{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none}.plyr--full-ui input[type=range]::-ms-fill-lower{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none;background:currentColor}.plyr--full-ui input[type=range]::-ms-thumb{background:var(--plyr-range-thumb-background, #fff);border:0;border-radius:100%;box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2));height:var(--plyr-range-thumb-height, 13px);position:relative;transition:all 0.2s ease;width:var(--plyr-range-thumb-height, 13px);margin-top:0}.plyr--full-ui input[type=range]::-ms-tooltip{display:none}.plyr--full-ui input[type=range]:focus{outline:0}.plyr--full-ui input[type=range]::-moz-focus-outer{border:0}.plyr--full-ui input[type=range].plyr__tab-focus::-webkit-slider-runnable-track{outline-color:var(--plyr-tab-focus-color, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));outline-offset:2px;outline-style:dotted;outline-width:3px}.plyr--full-ui input[type=range].plyr__tab-focus::-moz-range-track{outline-color:var(--plyr-tab-focus-color, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));outline-offset:2px;outline-style:dotted;outline-width:3px}.plyr--full-ui input[type=range].plyr__tab-focus::-ms-track{outline-color:var(--plyr-tab-focus-color, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));outline-offset:2px;outline-style:dotted;outline-width:3px}.plyr__poster{background-color:var(--plyr-video-background, var(--plyr-video-background, black));background-position:50% 50%;background-repeat:no-repeat;background-size:contain;height:100%;left:0;opacity:0;position:absolute;top:0;transition:opacity 0.2s ease;width:100%;z-index:1}.plyr--stopped.plyr__poster-enabled .plyr__poster{opacity:1}.plyr--youtube.plyr--paused.plyr__poster-enabled:not(.plyr--stopped) .plyr__poster{display:none}.plyr__time{font-size:var(--plyr-font-size-time, var(--plyr-font-size-small, 13px))}.plyr__time+.plyr__time::before{content:\"⁄\";margin-right:var(--plyr-control-spacing, 10px)}@media (max-width: 767px){.plyr__time+.plyr__time{display:none}}.plyr__tooltip{background:var(--plyr-tooltip-background, rgba(255, 255, 255, 0.9));border-radius:var(--plyr-tooltip-radius, 3px);bottom:100%;box-shadow:var(--plyr-tooltip-shadow, 0 1px 2px rgba(0, 0, 0, 0.15));color:var(--plyr-tooltip-color, #4a5464);font-size:var(--plyr-font-size-small, 13px);font-weight:var(--plyr-font-weight-regular, 400);left:50%;line-height:1.3;margin-bottom:calc(calc(var(--plyr-control-spacing, 10px) / 2) * 2);opacity:0;padding:calc(var(--plyr-control-spacing, 10px) / 2) calc(calc(var(--plyr-control-spacing, 10px) / 2) * 1.5);pointer-events:none;position:absolute;transform:translate(-50%, 10px) scale(0.8);transform-origin:50% 100%;transition:transform 0.2s 0.1s ease, opacity 0.2s 0.1s ease;white-space:nowrap;z-index:2}.plyr__tooltip::before{border-left:var(--plyr-tooltip-arrow-size, 4px) solid transparent;border-right:var(--plyr-tooltip-arrow-size, 4px) solid transparent;border-top:var(--plyr-tooltip-arrow-size, 4px) solid var(--plyr-tooltip-background, rgba(255, 255, 255, 0.9));bottom:calc(var(--plyr-tooltip-arrow-size, 4px) * -1);content:\"\";height:0;left:50%;position:absolute;transform:translateX(-50%);width:0;z-index:2}.plyr .plyr__control:hover .plyr__tooltip,.plyr .plyr__control.plyr__tab-focus .plyr__tooltip,.plyr__tooltip--visible{opacity:1;transform:translate(-50%, 0) scale(1)}.plyr .plyr__control:hover .plyr__tooltip{z-index:3}.plyr__controls>.plyr__control:first-child .plyr__tooltip,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip{left:0;transform:translate(0, 10px) scale(0.8);transform-origin:0 100%}.plyr__controls>.plyr__control:first-child .plyr__tooltip::before,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip::before{left:calc((var(--plyr-control-icon-size, 18px) / 2) + calc(var(--plyr-control-spacing, 10px) * 0.7))}.plyr__controls>.plyr__control:last-child .plyr__tooltip{left:auto;right:0;transform:translate(0, 10px) scale(0.8);transform-origin:100% 100%}.plyr__controls>.plyr__control:last-child .plyr__tooltip::before{left:auto;right:calc((var(--plyr-control-icon-size, 18px) / 2) + calc(var(--plyr-control-spacing, 10px) * 0.7));transform:translateX(50%)}.plyr__controls>.plyr__control:first-child:hover .plyr__tooltip,.plyr__controls>.plyr__control:first-child.plyr__tab-focus .plyr__tooltip,.plyr__controls>.plyr__control:first-child .plyr__tooltip--visible,.plyr__controls>.plyr__control:first-child+.plyr__control:hover .plyr__tooltip,.plyr__controls>.plyr__control:first-child+.plyr__control.plyr__tab-focus .plyr__tooltip,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip--visible,.plyr__controls>.plyr__control:last-child:hover .plyr__tooltip,.plyr__controls>.plyr__control:last-child.plyr__tab-focus .plyr__tooltip,.plyr__controls>.plyr__control:last-child .plyr__tooltip--visible{transform:translate(0, 0) scale(1)}.plyr__progress{left:calc(var(--plyr-range-thumb-height, 13px) * 0.5);margin-right:var(--plyr-range-thumb-height, 13px);position:relative}.plyr__progress input[type=range],.plyr__progress__buffer{margin-left:calc(var(--plyr-range-thumb-height, 13px) * -0.5);margin-right:calc(var(--plyr-range-thumb-height, 13px) * -0.5);width:calc(100% + var(--plyr-range-thumb-height, 13px))}.plyr__progress input[type=range]{position:relative;z-index:2}.plyr__progress .plyr__tooltip{font-size:var(--plyr-font-size-time, var(--plyr-font-size-small, 13px));left:0}.plyr__progress__buffer{-webkit-appearance:none;background:transparent;border:0;border-radius:100px;height:var(--plyr-range-track-height, 5px);left:0;margin-top:calc((var(--plyr-range-track-height, 5px) / 2) * -1);padding:0;position:absolute;top:50%}.plyr__progress__buffer::-webkit-progress-bar{background:transparent}.plyr__progress__buffer::-webkit-progress-value{background:currentColor;border-radius:100px;min-width:var(--plyr-range-track-height, 5px);transition:width 0.2s ease}.plyr__progress__buffer::-moz-progress-bar{background:currentColor;border-radius:100px;min-width:var(--plyr-range-track-height, 5px);transition:width 0.2s ease}.plyr__progress__buffer::-ms-fill{border-radius:100px;transition:width 0.2s ease}.plyr--loading .plyr__progress__buffer{animation:plyr-progress 1s linear infinite;background-image:linear-gradient(-45deg, var(--plyr-progress-loading-background, rgba(35, 40, 47, 0.6)) 25%, transparent 25%, transparent 50%, var(--plyr-progress-loading-background, rgba(35, 40, 47, 0.6)) 50%, var(--plyr-progress-loading-background, rgba(35, 40, 47, 0.6)) 75%, transparent 75%, transparent);background-repeat:repeat-x;background-size:var(--plyr-progress-loading-size, 25px) var(--plyr-progress-loading-size, 25px);color:transparent}.plyr--video.plyr--loading .plyr__progress__buffer{background-color:var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25))}.plyr--audio.plyr--loading .plyr__progress__buffer{background-color:var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6))}.plyr__volume{align-items:center;display:flex;max-width:110px;min-width:80px;position:relative;width:20%}.plyr__volume input[type=range]{margin-left:calc(var(--plyr-control-spacing, 10px) / 2);margin-right:calc(var(--plyr-control-spacing, 10px) / 2);position:relative;z-index:2}.plyr--is-ios .plyr__volume{min-width:0;width:auto}.plyr--audio{display:block}.plyr--audio .plyr__controls{background:var(--plyr-audio-controls-background, #fff);border-radius:inherit;color:var(--plyr-audio-control-color, #4a5464);padding:var(--plyr-control-spacing, 10px)}.plyr--audio .plyr__control.plyr__tab-focus,.plyr--audio .plyr__control:hover,.plyr--audio .plyr__control[aria-expanded=true]{background:var(--plyr-audio-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));color:var(--plyr-audio-control-color-hover, #fff)}.plyr--full-ui.plyr--audio input[type=range]::-webkit-slider-runnable-track{background-color:var(--plyr-audio-range-track-background, var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6)))}.plyr--full-ui.plyr--audio input[type=range]::-moz-range-track{background-color:var(--plyr-audio-range-track-background, var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6)))}.plyr--full-ui.plyr--audio input[type=range]::-ms-track{background-color:var(--plyr-audio-range-track-background, var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6)))}.plyr--full-ui.plyr--audio input[type=range]:active::-webkit-slider-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(35, 40, 47, 0.1))}.plyr--full-ui.plyr--audio input[type=range]:active::-moz-range-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(35, 40, 47, 0.1))}.plyr--full-ui.plyr--audio input[type=range]:active::-ms-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(35, 40, 47, 0.1))}.plyr--audio .plyr__progress__buffer{color:var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6))}.plyr--video{background:var(--plyr-video-background, var(--plyr-video-background, black));overflow:hidden}.plyr--video.plyr--menu-open{overflow:visible}.plyr__video-wrapper{background:var(--plyr-video-background, var(--plyr-video-background, black));margin:auto;overflow:hidden;position:relative;width:100%}.plyr__video-embed,.plyr__video-wrapper--fixed-ratio{aspect-ratio:16/9}@supports not (aspect-ratio: 16/9){.plyr__video-embed,.plyr__video-wrapper--fixed-ratio{height:0;padding-bottom:56.25%;position:relative}}.plyr__video-embed iframe,.plyr__video-wrapper--fixed-ratio video{border:0;height:100%;left:0;position:absolute;top:0;width:100%}.plyr--full-ui .plyr__video-embed>.plyr__video-embed__container{padding-bottom:240%;position:relative;transform:translateY(-38.28125%)}.plyr--video .plyr__controls{background:var(--plyr-video-controls-background, linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75)));border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;bottom:0;color:var(--plyr-video-control-color, #fff);left:0;padding:calc(var(--plyr-control-spacing, 10px) / 2);padding-top:calc(var(--plyr-control-spacing, 10px) * 2);position:absolute;right:0;transition:opacity 0.4s ease-in-out, transform 0.4s ease-in-out;z-index:3}@media (min-width: 480px){.plyr--video .plyr__controls{padding:var(--plyr-control-spacing, 10px);padding-top:calc(var(--plyr-control-spacing, 10px) * 3.5)}}.plyr--video.plyr--hide-controls .plyr__controls{opacity:0;pointer-events:none;transform:translateY(100%)}.plyr--video .plyr__control.plyr__tab-focus,.plyr--video .plyr__control:hover,.plyr--video .plyr__control[aria-expanded=true]{background:var(--plyr-video-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));color:var(--plyr-video-control-color-hover, #fff)}.plyr__control--overlaid{background:var(--plyr-video-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));border:0;border-radius:100%;color:var(--plyr-video-control-color, #fff);display:none;left:50%;opacity:0.9;padding:calc(var(--plyr-control-spacing, 10px) * 1.5);position:absolute;top:50%;transform:translate(-50%, -50%);transition:0.3s;z-index:2}.plyr__control--overlaid svg{left:2px;position:relative}.plyr__control--overlaid:hover,.plyr__control--overlaid:focus{opacity:1}.plyr--playing .plyr__control--overlaid{opacity:0;visibility:hidden}.plyr--full-ui.plyr--video .plyr__control--overlaid{display:block}.plyr--full-ui.plyr--video input[type=range]::-webkit-slider-runnable-track{background-color:var(--plyr-video-range-track-background, var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25)))}.plyr--full-ui.plyr--video input[type=range]::-moz-range-track{background-color:var(--plyr-video-range-track-background, var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25)))}.plyr--full-ui.plyr--video input[type=range]::-ms-track{background-color:var(--plyr-video-range-track-background, var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25)))}.plyr--full-ui.plyr--video input[type=range]:active::-webkit-slider-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(255, 255, 255, 0.5))}.plyr--full-ui.plyr--video input[type=range]:active::-moz-range-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(255, 255, 255, 0.5))}.plyr--full-ui.plyr--video input[type=range]:active::-ms-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(255, 255, 255, 0.5))}.plyr--video .plyr__progress__buffer{color:var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25))}.plyr:fullscreen{background:#000;border-radius:0 !important;height:100%;margin:0;width:100%}.plyr:fullscreen video{height:100%}.plyr:fullscreen .plyr__control .icon--exit-fullscreen{display:block}.plyr:fullscreen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:fullscreen.plyr--hide-controls{cursor:none}@media (min-width: 1024px){.plyr:fullscreen .plyr__captions{font-size:var(--plyr-font-size-xlarge, 21px)}}.plyr:-webkit-full-screen{background:#000;border-radius:0 !important;height:100%;margin:0;width:100%}.plyr:-webkit-full-screen video{height:100%}.plyr:-webkit-full-screen .plyr__control .icon--exit-fullscreen{display:block}.plyr:-webkit-full-screen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:-webkit-full-screen.plyr--hide-controls{cursor:none}@media (min-width: 1024px){.plyr:-webkit-full-screen .plyr__captions{font-size:var(--plyr-font-size-xlarge, 21px)}}.plyr:-moz-full-screen{background:#000;border-radius:0 !important;height:100%;margin:0;width:100%}.plyr:-moz-full-screen video{height:100%}.plyr:-moz-full-screen .plyr__control .icon--exit-fullscreen{display:block}.plyr:-moz-full-screen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:-moz-full-screen.plyr--hide-controls{cursor:none}@media (min-width: 1024px){.plyr:-moz-full-screen .plyr__captions{font-size:var(--plyr-font-size-xlarge, 21px)}}.plyr:-ms-fullscreen{background:#000;border-radius:0 !important;height:100%;margin:0;width:100%}.plyr:-ms-fullscreen video{height:100%}.plyr:-ms-fullscreen .plyr__control .icon--exit-fullscreen{display:block}.plyr:-ms-fullscreen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:-ms-fullscreen.plyr--hide-controls{cursor:none}@media (min-width: 1024px){.plyr:-ms-fullscreen .plyr__captions{font-size:var(--plyr-font-size-xlarge, 21px)}}.plyr--fullscreen-fallback{background:#000;border-radius:0 !important;height:100%;margin:0;width:100%;bottom:0;display:block;left:0;position:fixed;right:0;top:0;z-index:10000000}.plyr--fullscreen-fallback video{height:100%}.plyr--fullscreen-fallback .plyr__control .icon--exit-fullscreen{display:block}.plyr--fullscreen-fallback .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr--fullscreen-fallback.plyr--hide-controls{cursor:none}@media (min-width: 1024px){.plyr--fullscreen-fallback .plyr__captions{font-size:var(--plyr-font-size-xlarge, 21px)}}.plyr__ads{border-radius:inherit;bottom:0;cursor:pointer;left:0;overflow:hidden;position:absolute;right:0;top:0;z-index:-1}.plyr__ads>div,.plyr__ads>div iframe{height:100%;position:absolute;width:100%}.plyr__ads::after{background:#23282f;border-radius:2px;bottom:var(--plyr-control-spacing, 10px);color:#fff;content:attr(data-badge-text);font-size:11px;padding:2px 6px;pointer-events:none;position:absolute;right:var(--plyr-control-spacing, 10px);z-index:3}.plyr__ads::after:empty{display:none}.plyr__cues{background:currentColor;display:block;height:var(--plyr-range-track-height, 5px);left:0;margin:-var(--plyr-range-track-height, 5px)/2 0 0;opacity:0.8;position:absolute;top:50%;width:3px;z-index:3}.plyr__preview-thumb{background-color:var(--plyr-tooltip-background, rgba(255, 255, 255, 0.9));border-radius:3px;bottom:100%;box-shadow:var(--plyr-tooltip-shadow, 0 1px 2px rgba(0, 0, 0, 0.15));margin-bottom:calc(calc(var(--plyr-control-spacing, 10px) / 2) * 2);opacity:0;padding:var(--plyr-tooltip-radius, 3px);pointer-events:none;position:absolute;transform:translate(0, 10px) scale(0.8);transform-origin:50% 100%;transition:transform 0.2s 0.1s ease, opacity 0.2s 0.1s ease;z-index:2}.plyr__preview-thumb--is-shown{opacity:1;transform:translate(0, 0) scale(1)}.plyr__preview-thumb::before{border-left:var(--plyr-tooltip-arrow-size, 4px) solid transparent;border-right:var(--plyr-tooltip-arrow-size, 4px) solid transparent;border-top:var(--plyr-tooltip-arrow-size, 4px) solid var(--plyr-tooltip-background, rgba(255, 255, 255, 0.9));bottom:calc(var(--plyr-tooltip-arrow-size, 4px) * -1);content:\"\";height:0;left:50%;position:absolute;transform:translateX(-50%);width:0;z-index:2}.plyr__preview-thumb__image-container{background:#c1c8d1;border-radius:calc(var(--plyr-tooltip-radius, 3px) - 1px);overflow:hidden;position:relative;z-index:0}.plyr__preview-thumb__image-container img{height:100%;left:0;max-height:none;max-width:none;position:absolute;top:0;width:100%}.plyr__preview-thumb__time-container{bottom:6px;left:0;position:absolute;right:0;white-space:nowrap;z-index:3}.plyr__preview-thumb__time-container span{background-color:rgba(0, 0, 0, 0.55);border-radius:calc(var(--plyr-tooltip-radius, 3px) - 1px);color:#fff;font-size:var(--plyr-font-size-time, var(--plyr-font-size-small, 13px));padding:3px 6px}.plyr__preview-scrubbing{bottom:0;filter:blur(1px);height:100%;left:0;margin:auto;opacity:0;overflow:hidden;pointer-events:none;position:absolute;right:0;top:0;transition:opacity 0.3s ease;width:100%;z-index:1}.plyr__preview-scrubbing--is-shown{opacity:1}.plyr__preview-scrubbing img{height:100%;left:0;max-height:none;max-width:none;object-fit:contain;position:absolute;top:0;width:100%}.plyr--no-transition{transition:none !important}.plyr__sr-only{clip:rect(1px, 1px, 1px, 1px);overflow:hidden;border:0 !important;height:1px !important;padding:0 !important;position:absolute !important;width:1px !important}.plyr [hidden]{display:none !important}video,iframe{max-width:100%}.plyr__video-wrapper{height:100%}.presto-player__wrapper{position:relative;font-family:-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"}.presto-player__wrapper.rtl{direction:rtl}.presto-player__wrapper img{max-width:100%}.presto-player__wrapper .plyr.plyr--video.plyr--menu-open{overflow:hidden}.presto-player__wrapper .plyr--fullscreen-fallback.plyr--vimeo .plyr__video-wrapper{top:50%;transform:translateY(-50%)}.presto-player__wrapper .plyr--fullscreen-fallback.plyr{border-radius:0 !important}.presto-player__wrapper .plyr--fullscreen-fallback.plyr iframe{border-radius:0 !important}.presto-player__wrapper .plyr__menu__container{overflow:auto}.presto-player__wrapper .plyr__menu__container:after{display:none}.presto-player__wrapper img{border:none}.presto-player__wrapper video{margin:auto}.presto-player__wrapper iframe{height:100%}.presto-player__wrapper .plyr--video .plyr__control:active,.presto-player__wrapper .plyr--video .plyr__control:focus{background:#00b3ff;background:var(--plyr-video-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));color:#fff;color:var(--plyr-video-control-color-hover, #fff)}.presto-player__wrapper .plyr__poster{background-size:cover;z-index:2}.presto-player__wrapper .presto-player__logo{margin:0;display:block;position:absolute;z-index:3;opacity:0.5;object-fit:contain;transition:bottom 0.4s ease-in-out;max-width:var(--presto-player-logo-width, 75px)}.presto-player__wrapper .presto-player__logo.is-bottom-right{left:auto;right:20px;top:auto;bottom:60px}.presto-player__wrapper .presto-player__logo.is-bottom-left{left:20px;right:auto;top:auto;bottom:60px}@media screen and (min-width: 380px){.presto-player__wrapper.presto-player--hide-controls .presto-player__logo.is-bottom-right,.presto-player__wrapper.presto-player--hide-controls .presto-player__logo.is-bottom-left,.presto-player__wrapper .plyr--hide-controls .presto-player__logo.is-bottom-right,.presto-player__wrapper .plyr--hide-controls .presto-player__logo.is-bottom-left{bottom:20px}}.presto-player__wrapper .presto-player-progress__marker{width:16px;height:16px;padding:0;border:2px solid rgba(255, 255, 255, 0.5);position:absolute;border-radius:9999px;bottom:calc(50% - 8px);z-index:9;margin-left:-8px !important}.presto-player__wrapper.presto-player--ended .plyr--youtube .plyr__poster{display:none}.presto-player__wrapper.presto-player--ended .plyr--youtube .plyr__control.plyr__control--overlaid{display:none}.presto-player__wrapper button.plyr__control.plyr__control--overlaid:focus{background:inherit;border:none;outline:0;position:absolute;top:50%;transform:translate(-50%, -50%)}.presto-player__wrapper .plyr__controls__item.plyr__progress__container{position:relative}.presto-player__wrapper .plyr--full-ui.plyr--video input[type=range]::-webkit-slider-runnable-track{box-shadow:none}.presto-player__wrapper .plyr--video .plyr__controls{background:var(--plyr-video-controls-background, linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.75)))}.presto-player__wrapper .presto-player-toc{font-family:-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";line-height:1.4;position:absolute;top:auto;right:0;left:0;bottom:0;max-height:calc(100%);max-width:calc(100%);background:rgba(255, 255, 255, 0.9);background:var(--plyr-menu-background, rgba(255, 255, 255, 0.9));left:auto;padding:20px 15px;border-radius:4px;width:100%;z-index:9;box-shadow:0 1px 2px rgba(0, 0, 0, 0.15);box-shadow:var(--plyr-menu-shadow, 0 1px 2px rgba(0, 0, 0, 0.15));color:#4a5464;color:var(--plyr-menu-color, #4a5464);font-size:15px;font-size:var(--plyr-font-size-base, 15px);white-space:nowrap;z-index:3;display:flex;flex-direction:column;transition:bottom 0.25s ease}@media screen and (min-width: 380px){.presto-player__wrapper .presto-player-toc{right:20px;bottom:60px;width:300px;max-height:calc(100% - 80px);max-width:calc(100vw - 70px)}}.presto-player__wrapper .presto-player-toc__wrapper{position:absolute;top:0;left:0;bottom:0;right:0;z-index:3;visibility:hidden;opacity:0;transition:opacity 0.3s ease-in-out, visibility 0.3s ease-in-out}.presto-player__wrapper .presto-player-toc__wrapper.is-showing{visibility:visible;opacity:1}.presto-player__wrapper .presto-player-toc__cover{position:absolute;top:0;left:0;bottom:0;right:0;z-index:3}.presto-player__wrapper .presto-player-toc__list{flex:1;overflow:auto}.presto-player__wrapper .presto-player-toc__title{font-size:12px;font-weight:bold;margin-bottom:10px;margin-left:10px;margin-right:10px;display:none}@media screen and (min-width: 380px){.presto-player__wrapper .presto-player-toc__title{display:block}}.presto-player__wrapper .presto-player-toc__name{white-space:nowrap;overflow:hidden;width:100%;text-overflow:ellipsis}.presto-player__wrapper .presto-player-toc__chapter{padding:12px;border-radius:3px;cursor:pointer;line-height:1;display:flex;align-items:center;transition:background-color 0.4s ease, color 0.4s ease;margin-bottom:2px;position:relative}.presto-player__wrapper .presto-player-toc__chapter:last-child{margin-bottom:0}.presto-player__wrapper .presto-player-toc__chapter.is-highlighted,.presto-player__wrapper .presto-player-toc__chapter:hover{background:#00b3ff;background:var(--plyr-video-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));color:#fff;color:var(--plyr-video-control-color-hover, #fff)}.presto-player__wrapper .presto-player-toc__chapter.is-highlighted{padding-right:30px}.presto-player__wrapper .presto-player-toc__chapter.is-highlighted:after{background:rgba(255, 255, 255, 0.5);content:\"\";display:block;flex-shrink:0;height:8px;width:8px;margin-right:10px;margin-right:var(--plyr-control-spacing, 10px);transition:all 0.3s ease;border-radius:9999px;position:absolute;right:7px}.presto-player__wrapper .presto-player-toc__order{margin-right:12px;opacity:0.5}.presto-player__wrapper.rtl{direction:rtl}.presto-player__wrapper.rtl .presto-player-toc__order{order:2;margin-left:12px;margin-right:0}.presto-player__wrapper.rtl .presto-player-toc__name{direction:rtl}.presto-player__wrapper .presto-player-error{position:absolute;top:0;left:0;bottom:0;right:0;background:rgba(0, 0, 0, 0.9);color:#fff;display:flex;align-items:center;justify-content:center;z-index:10;text-align:center}.presto-player__wrapper .presto-player-error__title{font-size:18px;font-weight:bold;margin-bottom:8px}.presto-player__wrapper .presto-player-error__description{opacity:0.75}.presto-player__wrapper.hide-youtube-ui .plyr__video-embed iframe{top:-50%;height:200%}.presto-player__wrapper .plyr--vimeo.plyr--playing .plyr__video-embed__container{pointer-events:none}.presto-player__wrapper .plyr__control--overlaid{border-radius:6px;padding-left:26px;padding-right:26px;position:absolute !important;top:50% !important}.presto-player__wrapper.skin-stacked .plyr__controls{flex-wrap:wrap}.presto-player__wrapper.skin-stacked .presto-player-progress__marker{transform:scale(0.75)}.presto-player__wrapper.skin-stacked .plyr__controls{justify-content:flex-start}.presto-player__wrapper.skin-stacked .plyr__controls__item.plyr__progress__container{order:-1;flex:1 0 100%}.presto-player__wrapper.skin-stacked .plyr__controls__item.plyr__progress__container+:not(.plyr__time),.presto-player__wrapper.skin-stacked .plyr__controls__item.plyr__progress__container+.plyr__time+*{margin-left:auto}.presto-player__wrapper.skin-stacked .plyr__controls .plyr__controls__item:first-child{margin:0}.presto-player__wrapper.skin-stacked .plyr__progress{height:19px;display:flex;align-items:center}.presto-player__wrapper.skin-stacked .plyr__progress .plyr__progress__buffer{height:3px;transition:all 0.25s ease;position:absolute;top:calc(50% + 1px)}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-moz-range-track{height:3px;transition:all 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-webkit-slider-runnable-track{height:3px;transition:all 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-ms-track{height:3px;transition:all 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-ms-fill-upper{height:3px;transition:all 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-ms-fill-lower{height:3px;transition:height 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-webkit-slider-thumb{visibility:hidden;opacity:0;transition:opacity 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-moz-range-thumb{visibility:hidden;opacity:0;transition:opacity 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-ms-thumb{visibility:hidden;opacity:0;transition:opacity 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .presto-player-progress__marker{transform:scale(1)}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress .plyr__progress__buffer{height:5px;top:calc(50%)}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]{overflow:visible}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-moz-range-track{height:5px}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-webkit-slider-runnable-track{height:5px}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-ms-track{height:5px}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-ms-fill-upper{height:5px}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-ms-fill-lower{height:5px}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-webkit-slider-thumb{visibility:visible;opacity:1}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-moz-range-thumb{visibility:visible;opacity:1}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-ms-thumb{visibility:visible;opacity:1}.presto-sticky-parent{z-index:99998}@media screen and (min-width: 960px){.presto-sticky{--presto-sticky-space:15px;position:fixed;z-index:3000;max-width:var(--presto-sticky-width, 380px);width:100vw}.presto-sticky .plyr__controls,.presto-sticky .presto-player-toc__wrapper,.presto-sticky presto-action-bar,.presto-sticky .presto-player__logo{display:none}.presto-sticky--top-left{top:var(--presto-sticky-space);left:var(--presto-sticky-space)}.presto-sticky--top-center{top:var(--presto-sticky-space);left:0;right:0;margin:0 auto}.presto-sticky--top-right{top:var(--presto-sticky-space);right:var(--presto-sticky-space)}.presto-sticky--center-left{top:0;bottom:0;margin:auto 0;left:var(--presto-sticky-space);display:flex;align-items:center}.presto-sticky--center-center{top:0;bottom:0;right:0;left:0;margin:auto;display:flex;align-items:center}.presto-sticky--center-right{top:0;bottom:0;margin:auto 0;right:var(--presto-sticky-space);display:flex;align-items:center}.presto-sticky--bottom-left{bottom:var(--presto-sticky-space);left:var(--presto-sticky-space)}.presto-sticky--bottom-center{bottom:var(--presto-sticky-space);left:0;right:0;margin:0 auto}.presto-sticky--bottom-right{bottom:var(--presto-sticky-space);right:var(--presto-sticky-space)}}.presto-player__overlay{position:absolute;top:50%;left:50%;z-index:3}.presto-player__muted-overlay{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center}.presto-player__muted-overlay .plyr__control--overlaid{display:block;opacity:1;visibility:visible}.presto-player__wrapper.is-muted-overlay{cursor:pointer}.presto-player__wrapper.is-muted-overlay .plyr--playing .presto-player__muted-overlay .plyr__control--overlaid{opacity:1;visibility:visible}.presto-player__wrapper.is-muted-overlay .presto-player__logo{display:none}.presto-player__wrapper.is-muted-overlay .plyr__controls{display:none}.presto-player__wrapper.is-muted-overlay .plyr .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(0) !important}.presto-player__wrapper.rtl .plyr__captions{direction:rtl}.presto-player__wrapper.caption-style-full .plyr__captions{background:var(--plyr-captions-background, rgba(0, 0, 0, 0.8));padding-top:0;padding-bottom:0}.presto-player__wrapper.caption-style-full .plyr:not(.plyr--hide-controls):not(.is-muted-overlay) .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(calc(var(--plyr-control-spacing, 13px) * -4))}.presto-player__wrapper.caption-style-full.skin-stacked .plyr:not(.plyr--hide-controls):not(.is-muted-overlay) .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(calc(var(--plyr-control-spacing, 17px) * -4))}.presto-player__play-cover{cursor:pointer;position:absolute;top:0;left:0;right:0;bottom:0;z-index:99}.presto-player__chapters{width:100%;position:absolute;top:0;height:100%}.presto-player__chapter-markers{margin:0 8px;height:100%;position:relative}.presto-player-progress__marker.plyr__controls__item.plyr__control:hover{border:0;background:#fff}.presto-iframe-fallback-container{position:relative;padding-bottom:56.25%;padding-top:30px;height:0;overflow:hidden}.presto-iframe-fallback-container embed,.presto-iframe-fallback-container iframe,.presto-iframe-fallback-container object{position:absolute;top:0;left:0;width:100%;height:100%}";
5425
 
5426
  const PrestoPlayer = class {
5427
  constructor(hostRef) {
5767
  * @returns
5768
  */
5769
  handleVisibilityPlayChange(element) {
5770
+ var _a, _b, _c;
5771
  if (this.isAdmin || !((_a = this.preset) === null || _a === void 0 ? void 0 : _a.play_video_viewport)) {
5772
  return;
5773
  }
5793
  return;
5794
  }
5795
  }
5796
+ // handle muted preview
5797
+ if ((_c = (_b = this.blockAttributes) === null || _b === void 0 ? void 0 : _b.mutedPreview) === null || _c === void 0 ? void 0 : _c.enabled) {
5798
+ this.previouslyPlaying = true;
5799
+ this.pause();
5800
+ this.player.once('playing', () => {
5801
+ this.previouslyPlaying = true;
5802
+ this.pause();
5803
+ });
5804
+ return;
5805
+ }
5806
  if (this.player.playing) {
5807
  this.previouslyPlaying = true;
5808
  }
5840
  }
5841
  }
5842
  renderCTA() {
5843
+ var _a, _b, _c;
5844
+ if (!((_a = window === null || window === void 0 ? void 0 : window.prestoPlayer) === null || _a === void 0 ? void 0 : _a.isPremium))
5845
+ return;
5846
+ if (this.isAdmin)
5847
+ return;
5848
+ if (!((_c = (_b = this.preset) === null || _b === void 0 ? void 0 : _b.email_collection) === null || _c === void 0 ? void 0 : _c.enabled))
5849
  return;
 
5850
  return (h("presto-cta-overlay", { direction: this.direction, player: this.player, preset: this.preset, i18n: this.i18n, onPlayVideo: () => {
5851
  this.mutedPreview = false;
5852
  this.play();
dist/components/esm/presto-player.entry.js CHANGED
@@ -1,2 +1,2 @@
1
- export { a as presto_player } from './presto-player-f20f5469.js';
2
  import './index-65cf7490.js';
1
+ export { a as presto_player } from './presto-player-bee3ad9f.js';
2
  import './index-65cf7490.js';
dist/components/types/components/core/player/presto-player/util.d.ts CHANGED
@@ -11,7 +11,6 @@ export declare function determineVideoUrlType(url: any): {
11
  video_id?: undefined;
12
  type?: undefined;
13
  };
14
- export declare function getFileExtension(url: any): any;
15
  export declare function isHLS(url: any): boolean;
16
  export declare function isNotEmptyObject(item: any): number;
17
  export declare function isNotEmptyArray(item: any): boolean;
11
  video_id?: undefined;
12
  type?: undefined;
13
  };
 
14
  export declare function isHLS(url: any): boolean;
15
  export declare function isNotEmptyObject(item: any): number;
16
  export declare function isNotEmptyArray(item: any): boolean;
dist/components/types/util.d.ts CHANGED
@@ -8,5 +8,6 @@ export declare function timePassed({ current, duration, showAfter }: {
8
  showAfter: number;
9
  }): boolean;
10
  export declare function getMobileOperatingSystem(): "Windows Phone" | "Android" | "iOS" | "unknown";
 
11
  export declare function isWebView(): boolean;
12
  export declare function isAndroidWebView(): boolean;
8
  showAfter: number;
9
  }): boolean;
10
  export declare function getMobileOperatingSystem(): "Windows Phone" | "Android" | "iOS" | "unknown";
11
+ export declare function isIOS(): boolean;
12
  export declare function isWebView(): boolean;
13
  export declare function isAndroidWebView(): boolean;
dist/components/web-components/p-0f963262.entry.js ADDED
@@ -0,0 +1 @@
 
1
+ export{a as presto_player}from"./p-77d8cc52.js";import"./p-3cd9ce84.js";
dist/components/web-components/p-23641bb9.entry.js DELETED
@@ -1 +0,0 @@
1
- import{r as i,h as t,g as o,c as l}from"./p-3cd9ce84.js";const s=class{constructor(t){i(this,t),this.show=!1,this.youtubeRenderKey=1}componentWillLoad(){this.handleDuration()}handleButtonCountChange(i,t){console.log(i),(null==i?void 0:i.button_count)!==(null==t?void 0:t.button_count)&&this.youtubeRenderKey++,(null==i?void 0:i.enabled)&&this.handleDuration()}handleDuration(){var i,t;this.show=!!(null===(i=null===window||void 0===window?void 0:window.wp)||void 0===i?void 0:i.blocks)||function({current:i,duration:t,showAfter:o}){if(i===o)return!0;let l=i/t*100;return 99.9<l&&(l=100),l>=o}({current:this.currentTime,duration:this.duration,showAfter:(null===(t=this.config)||void 0===t?void 0:t.percentage_start)||0})}youtubeButton(){var i,o,l,s;if("youtube"===(null===(i=this.config)||void 0===i?void 0:i.button_type)&&(null===(o=this.youtube)||void 0===o?void 0:o.channelId))return t("presto-youtube-subscribe-button",{key:this.youtubeRenderKey,channel:null===(l=this.youtube)||void 0===l?void 0:l.channelId,showCount:null===(s=this.config)||void 0===s?void 0:s.button_count})}customButton(){var i,o,l,s,e,d,n,a,r,h,v;if("custom"===(null===(i=this.config)||void 0===i?void 0:i.button_type))return t("presto-player-button",{type:"primary",size:"small",href:null===(l=null===(o=this.config)||void 0===o?void 0:o.button_link)||void 0===l?void 0:l.url,target:(null===(e=null===(s=this.config)||void 0===s?void 0:s.button_link)||void 0===e?void 0:e.opensInNewTab)?"_blank":"_self",style:Object.assign(Object.assign({"--presto-player-button-border-radius":`${null===(d=this.config)||void 0===d?void 0:d.button_radius}px`},(null===(n=this.config)||void 0===n?void 0:n.button_color)?{"--presto-player-button-color":`${null===(a=this.config)||void 0===a?void 0:a.button_color}`}:{}),(null===(r=this.config)||void 0===r?void 0:r.button_text_color)?{"--presto-player-button-text":`${null===(h=this.config)||void 0===h?void 0:h.button_text_color}`}:{})},null===(v=this.config)||void 0===v?void 0:v.button_text)}render(){var i,o;return t("presto-action-bar-ui",{open:this.show,style:{"--presto-action-bar-background":(null===(i=this.config)||void 0===i?void 0:i.background_color)||"#1d1d1d"}},null===(o=this.config)||void 0===o?void 0:o.text,t("div",{slot:"button"},this.youtubeButton(),this.customButton()))}get el(){return o(this)}static get watchers(){return{config:["handleButtonCountChange"],currentTime:["handleDuration"],duration:["handleDuration"]}}};s.style=":host{display:block}";const e=class{constructor(t){i(this,t)}componentWillLoad(){this.poster=this.poster||this.thumbnail}render(){return t("presto-video",{getRef:this.getRef,player:this.player,autoplay:this.autoplay,preload:this.preload,poster:this.poster,playsinline:this.playsinline,src:this.src,tracks:this.tracks})}},d=class{constructor(t){i(this,t),this.playVideo=l(this,"playVideo",7),this.rewatchVideo=l(this,"rewatchVideo",7),this.percentagePassed=0}componentWillLoad(){this.handleDuration()}timePassed({current:i,duration:t,showAfter:o}){if(i===o)return!0;let l=i/t*100;return 99.9<l&&(l=100),l>=o}handleFullScreen(){var i,t,o,l,s,e,d,n,a,r,h,v;if(this.enabled&&!this.skipped&&this.player){if(this.player.fullscreen.active&&this.player.fullscreen.exit(),this.isiOS()&&!(null===(o=null===(t=null===(i=this.player)||void 0===i?void 0:i.config)||void 0===t?void 0:t.blockAttributes)||void 0===o?void 0:o.playsinline)&&("function"==typeof(null===(s=null===(l=null==this?void 0:this.player)||void 0===l?void 0:l.media)||void 0===s?void 0:s.webkitExitFullScreen)&&(null===(e=this.player)||void 0===e||e.media.webkitExitFullScreen()),"function"==typeof(null===(n=null===(d=null==this?void 0:this.player)||void 0===d?void 0:d.embed)||void 0===n?void 0:n.exitFullscreen)&&(null===(r=null===(a=null==this?void 0:this.player)||void 0===a?void 0:a.embed)||void 0===r||r.exitFullscreen()),this.isiOSYoutubeFullscreen())){const i=this.player.currentTime;this.player.currentTime=this.player.duration,this.player.once("playing",(()=>{this.player.currentTime=i}))}this.player.ended&&(console.log("ended"),this.ended=!0,100===(null===(v=null===(h=this.preset)||void 0===h?void 0:h.cta)||void 0===v?void 0:v.percentage)&&(this.show=!0))}}handleDuration(){var i,t;this.enabled=!this.skipped&&(null===(t=null===(i=this.preset)||void 0===i?void 0:i.cta)||void 0===t?void 0:t.enabled),this.handleTime()}handlePercentagePassed(){this.percentagePassed=this.currentTime/this.duration*100}handlePercentagePassedChange(){this.ended=this.percentagePassed>=99.9}handleEnabled(){this.show&&(this.skipped||this.player&&this.player.pause())}handleTime(){var i,t;this.enabled&&(this.skipped||100!==(null===(t=null===(i=this.preset)||void 0===i?void 0:i.cta)||void 0===t?void 0:t.percentage)&&this.checkTime())}isiOS(){const i=window.navigator.userAgent;return!!i.match(/iPad/i)||!!i.match(/iPhone/i)}isiOSYoutubeFullscreen(){var i,t,o;return this.isiOS()&&"youtube"===this.player.provider&&!(null===(o=null===(t=null===(i=this.player)||void 0===i?void 0:i.config)||void 0===t?void 0:t.blockAttributes)||void 0===o?void 0:o.playsinline)}checkTime(){var i,t;this.show=this.timePassed({current:this.currentTime,duration:this.duration,showAfter:(null===(t=null===(i=this.preset)||void 0===i?void 0:i.cta)||void 0===t?void 0:t.percentage)||0})}skip(){this.skipped=!0,this.show=!1,this.playVideo.emit()}rewatch(){this.ended=!1,this.show=!1,this.rewatchVideo.emit(),this.player.once("timeupdate",(()=>{setTimeout((()=>this.player.play()),500)})),this.player.restart()}render(){var i,o,l,s,e,d,n,a,r,h,v,u,c,p,y,w,m,b,f,g,_,k,P,S,x,T,C,A,L;if(this.show)return t("presto-cta-overlay-ui",{style:Object.assign(Object.assign(Object.assign({"--presto-player-button-border-radius":`${null===(o=null===(i=this.preset)||void 0===i?void 0:i.cta)||void 0===o?void 0:o.button_radius}px`},(null===(s=null===(l=this.preset)||void 0===l?void 0:l.cta)||void 0===s?void 0:s.background_opacity)?{"--presto-player-cta-background-opacity":""+(null===(d=null===(e=this.preset)||void 0===e?void 0:e.cta)||void 0===d?void 0:d.background_opacity)/100}:{}),(null===(a=null===(n=this.preset)||void 0===n?void 0:n.cta)||void 0===a?void 0:a.button_color)?{"--presto-player-button-color":`${null===(h=null===(r=this.preset)||void 0===r?void 0:r.cta)||void 0===h?void 0:h.button_color}`}:{}),(null===(u=null===(v=this.preset)||void 0===v?void 0:v.cta)||void 0===u?void 0:u.button_text_color)?{"--presto-player-button-text":`${null===(p=null===(c=this.preset)||void 0===c?void 0:c.cta)||void 0===p?void 0:p.button_text_color}`}:{}),direction:this.direction,class:"cta-overlay",headline:null===(w=null===(y=this.preset)||void 0===y?void 0:y.cta)||void 0===w?void 0:w.headline,"bottom-text":null===(b=null===(m=this.preset)||void 0===m?void 0:m.cta)||void 0===b?void 0:b.bottom_text,"show-button":null===(g=null===(f=this.preset)||void 0===f?void 0:f.cta)||void 0===g?void 0:g.show_button,buttonLink:null===(k=null===(_=this.preset)||void 0===_?void 0:_.cta)||void 0===k?void 0:k.button_link,allowSkip:!this.ended&&(null===(S=null===(P=this.preset)||void 0===P?void 0:P.cta)||void 0===S?void 0:S.show_skip),allowRewatch:this.ended&&(null===(T=null===(x=this.preset)||void 0===x?void 0:x.cta)||void 0===T?void 0:T.show_rewatch),"skip-text":null===(C=null==this?void 0:this.i18n)||void 0===C?void 0:C.skip,"button-text":null===(L=null===(A=this.preset)||void 0===A?void 0:A.cta)||void 0===L?void 0:L.button_text,onSkip:()=>this.skip(),onRewatch:()=>this.rewatch()})}static get watchers(){return{currentTime:["handleFullScreen","handlePercentagePassed","handleEnabled","handleTime"],duration:["handleDuration","handlePercentagePassed"],percentagePassed:["handlePercentagePassedChange"]}}};d.style=":host{display:block}";const n=class{constructor(t){i(this,t),this.playVideo=l(this,"playVideo",7)}setStorage(i){window.localStorage.setItem("presto.videos.email_collection",JSON.stringify({[this.videoId]:i}))}getStorage(){return window.localStorage.getItem("presto.videos.email_collection")}componentWillLoad(){this.handleDuration()}timePassed({current:i,duration:t,showAfter:o}){if(i===o)return!0;let l=i/t*100;return 99.9<l&&(l=100),l>=o}handlePlayerInit(i,t){t||this.player.on("play playing timeupdate",(()=>{this.getStorage()||this.show&&this.player.pause()}))}handleDuration(){var i,t;this.enabled=!this.getStorage()&&(null===(t=null===(i=this.preset)||void 0===i?void 0:i.email_collection)||void 0===t?void 0:t.enabled),this.handleTime()}handleTime(){this.enabled&&(this.getStorage()||this.checkTime())}checkTime(){var i,t;this.show=this.timePassed({current:this.currentTime,duration:this.duration,showAfter:(null===(t=null===(i=this.preset)||void 0===i?void 0:i.email_collection)||void 0===t?void 0:t.percentage)||0})}async getNonce(){var i;return fetch(`${null===(i=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===i?void 0:i.ajaxurl}?action=presto_refresh_progress_nonce`)}async submit(i){var t;this.loading=!0,this.error="";const o=await this.getNonce(),{data:l}=await o.json();try{let o=await fetch(null===(t=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===t?void 0:t.ajaxurl,{method:"post",body:new URLSearchParams(Object.assign({action:"presto_player_email_submit",nonce:l,preset_id:this.preset.id,video_id:this.videoId},(null==i?void 0:i.detail)||{}))});const{success:s,data:e}=await o.json();if(!s)throw e;this.setStorage("collected"),this.show=!1,this.playVideo.emit()}catch(i){const t=null==i?void 0:i[0];t&&"string"==typeof t&&(this.error=t)}finally{this.loading=!1}}skip(){this.setStorage("skipped"),this.show=!1,this.playVideo.emit()}render(){var i,o,l,s,e,d,n,a,r,h,v;if(this.show)return t("presto-email-overlay-ui",{direction:this.direction,class:"email-overlay",headline:null===(o=null===(i=this.preset)||void 0===i?void 0:i.email_collection)||void 0===o?void 0:o.headline,defaultHeadline:null===(l=null==this?void 0:this.i18n)||void 0===l?void 0:l.emailDefaultHeadline,bottomText:null===(e=null===(s=this.preset)||void 0===s?void 0:s.email_collection)||void 0===e?void 0:e.bottom_text,allowSkip:null===(n=null===(d=this.preset)||void 0===d?void 0:d.email_collection)||void 0===n?void 0:n.allow_skip,skipText:null===(a=null==this?void 0:this.i18n)||void 0===a?void 0:a.skip,buttonText:null===(h=null===(r=this.preset)||void 0===r?void 0:r.email_collection)||void 0===h?void 0:h.button_text,placeholder:null===(v=null==this?void 0:this.i18n)||void 0===v?void 0:v.emailPlaceholder,isLoading:this.loading,errorMessage:this.error,onSubmitForm:i=>this.submit(i),onSkip:()=>this.skip()})}static get watchers(){return{player:["handlePlayerInit"],duration:["handleDuration"],currentTime:["handleTime"]}}};n.style=":host{display:block}";const a=class{constructor(t){i(this,t),this.playVideo=l(this,"playVideo",7)}render(){var i,o,l,s,e,d,n,a,r;return t("div",{class:"presto-player__muted-overlay",onClick:()=>{this.mutedPreview=!1,this.playVideo.emit()}},(null===(i=this.preset)||void 0===i?void 0:i["play-large"])&&t("div",{class:"plyr__control plyr__control--overlaid","data-plyr":"play","aria-label":"Play",part:"muted-overlay-play"},t("svg",{id:"plyr-play",viewBox:"0 0 18 18"},t("path",{d:"M15.562 8.1L3.87.225c-.818-.562-1.87 0-1.87.9v15.75c0 .9 1.052 1.462 1.87.9L15.563 9.9c.584-.45.584-1.35 0-1.8z"})),t("span",{class:"plyr__sr-only"},"Play")),(null===(o=this.mutedOverlay)||void 0===o?void 0:o.enabled)&&(null===(l=this.mutedOverlay)||void 0===l?void 0:l.src)?t("div",{class:"presto-player__overlay is-image",part:"muted-overlay-image",style:{width:`${(null===(s=this.mutedOverlay)||void 0===s?void 0:s.width)||50}%`,left:100*((null===(d=null===(e=this.mutedOverlay)||void 0===e?void 0:e.focalPoint)||void 0===d?void 0:d.x)||.5)+"%",top:100*((null===(a=null===(n=this.mutedOverlay)||void 0===n?void 0:n.focalPoint)||void 0===a?void 0:a.y)||.5)+"%"}},t("img",{src:null===(r=this.mutedOverlay)||void 0===r?void 0:r.src,style:{transform:"translateX(-50%) translateY(-50%)"}})):"")}};a.style=":host{display:block}";const r=class{constructor(t){i(this,t)}getId(i){const t=/^.*(vimeo\.com\/)((channels\/[A-z]+\/)|(groups\/[A-z]+\/videos\/))?([0-9]+)/.exec(i||"");return(null==t?void 0:t[5])||""}render(){if(this.src)return"Android"==(i=navigator.userAgent||navigator.vendor,/windows phone/i.test(i)?"Windows Phone":/android/i.test(i)?"Android":/iPad|iPhone|iPod/.test(i)&&!window.MSStream?"iOS":"unknown")&&function(){var i=window.navigator.standalone,t=window.navigator.userAgent.toLowerCase(),o=/safari/.test(t);return/iphone|ipod|ipad/.test(t)?!(!i&&o)&&(!i&&!o||void 0):!!t.includes("wv")}()?t("div",{class:"presto-iframe-fallback-container"},t("iframe",{src:`https://player.vimeo.com/video/${this.getId(this.src)}?loop=false&amp;byline=false&amp;portrait=false&amp;title=false&amp;speed=true&amp;transparent=0&amp;gesture=media`,allowFullScreen:!0,allowTransparency:!0,allow:"autoplay",style:{width:"100%"},class:"presto-fallback-iframe"})):t("div",{class:"plyr__video-embed",part:"embed",ref:this.getRef,"data-plyr-provider":"vimeo","data-plyr-embed-id":this.getId(this.src)});var i}};r.style=":host{display:block}";const h=class{constructor(t){i(this,t),this.reload=l(this,"reload",7)}handlePlayerChange(){this.player&&(this.player.ratio="16:9",this.fixes())}fixes(){this.player.on("statechange",(i=>{var t,o,l,s,e;1===i.detail.code&&((null===(e=null===(s=null===(l=null===(o=null===(t=null==i?void 0:i.detail)||void 0===t?void 0:t.plyr)||void 0===o?void 0:o.config)||void 0===l?void 0:l.blockAttributes)||void 0===s?void 0:s.mutedPreview)||void 0===e?void 0:e.enabled)||(this.player.muted=!1))}))}getId(i){var t;const o=(i||"").match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/);return o&&11===(null===(t=null==o?void 0:o[2])||void 0===t?void 0:t.length)?o[2]:null}loadPlayer(){this.lazyLoad=!1,this.reloadPlayer=!0}componentDidRender(){this.reloadPlayer&&(this.reloadPlayer=!1,this.reload.emit("play"))}setWebView(){var i;let t=null===(i=window.navigator)||void 0===i?void 0:i.standalone,o=window.navigator.userAgent.toLowerCase(),l=/safari/.test(o),s=/iphone|ipod|ipad/.test(o);this.isWebView=s?!t&&!l:o.includes("wv")}componentWillLoad(){if(this.setWebView(),this.poster||(this.poster=`//img.youtube.com/vi/${this.getId(this.src)}/maxresdefault.jpg`),this.lazyLoad){var i=window.navigator.userAgent;(i.match(/iPad/i)||i.match(/iPhone/i))&&(this.lazyLoad=!1)}}render(){return this.isWebView?t("div",{class:"fallback-container"},t("iframe",{src:this.src,allowFullScreen:!0,allowtransparency:!0,allow:"autoplay"})):this.lazyLoad?t("div",null,t("presto-video",{part:"video",getRef:this.getRef,poster:this.poster,src:""}),t("div",{class:"presto-player__play-cover",onClick:()=>this.loadPlayer()})):t("div",{class:"plyr__video-embed",part:"embed",ref:this.getRef,"data-plyr-provider":"youtube","data-plyr-embed-id":this.getId(this.src)})}static get watchers(){return{player:["handlePlayerChange"]}}};h.style=":host{display:block}.fallback-container{position:relative;padding-bottom:56.25%;padding-top:30px;height:0;overflow:hidden}.fallback-container iframe,.fallback-container object,.fallback-container embed{position:absolute;top:0;left:0;width:100%;height:100%}";export{s as presto_action_bar,e as presto_bunny,d as presto_cta_overlay,n as presto_email_overlay,a as presto_muted_overlay,r as presto_vimeo,h as presto_youtube}
 
dist/components/web-components/p-2e1648a9.js ADDED
@@ -0,0 +1 @@
 
1
+ import{d as n}from"./p-3cd9ce84.js";import{P as t}from"./p-77d8cc52.js";export default function(o){var r=o.config,e=o.selector,i=o.src,a=o.preload;return new Promise((function(o){if(window.Hls){if(window.Hls.isSupported()){var u,w=!["metadata","none"].includes(a);null!==(u=wp)&&void 0!==u&&u.blocks&&(w=!0);var c=new window.Hls({autoStartLoad:w});return c.loadSource(i),c.on(window.Hls.Events.LEVEL_SWITCHED,(function(n,t){e.closest(".presto-player__wrapper").querySelector(".plyr__menu__container [data-plyr='quality'][value='0'] span").innerHTML=c.autoLevelEnabled?"AUTO (".concat(c.levels[t.level].height,"p)"):"AUTO"})),void c.on(window.Hls.Events.MANIFEST_PARSED,(function(){var i=c.levels.map((function(n){return n.height}));i.unshift(0);var a=i.findIndex((function(n){var t;return n===parseInt(null===(t=prestoPlayer)||void 0===t?void 0:t.hls_start_level)}));c.startLevel=a?a-1:2,r.quality={default:0,options:i,forced:!0,onChange:function(n){0===n?prestoHLS.currentLevel=-1:prestoHLS.levels.forEach((function(t,o){t.height===n&&(console.log("Found quality match with "+n),prestoHLS.currentLevel=o)}))}},c.attachMedia(e),window.prestoHLS=c;var u=new t(e,n({},r));return u.hls=c,u.on("waiting",(function n(){c.startLoad(-1),u.off("waiting",n)})),u.on("languagechange",(function(){setTimeout((function(){return c.subtitleTrack=u.currentTrack}),50)})),o(u)}))}return o(new t(e,n({},r)))}}))}
dist/components/web-components/p-444b9e4f.js DELETED
@@ -1 +0,0 @@
1
- import{d as n}from"./p-3cd9ce84.js";import{P as t}from"./p-f4d3354e.js";export default function(o){var r=o.config,e=o.selector,i=o.src,a=o.preload;return new Promise((function(o){if(window.Hls){if(window.Hls.isSupported()){var u,w=!["metadata","none"].includes(a);null!==(u=wp)&&void 0!==u&&u.blocks&&(w=!0);var d=new window.Hls({autoStartLoad:w});return d.loadSource(i),d.on(window.Hls.Events.LEVEL_SWITCHED,(function(n,t){e.closest(".presto-player__wrapper").querySelector(".plyr__menu__container [data-plyr='quality'][value='0'] span").innerHTML=d.autoLevelEnabled?"AUTO (".concat(d.levels[t.level].height,"p)"):"AUTO"})),void d.on(window.Hls.Events.MANIFEST_PARSED,(function(){var i=d.levels.map((function(n){return n.height}));i.unshift(0);var a=i.findIndex((function(n){var t;return n===parseInt(null===(t=prestoPlayer)||void 0===t?void 0:t.hls_start_level)}));d.startLevel=a?a-1:2,r.quality={default:0,options:i,forced:!0,onChange:function(n){0===n?prestoHLS.currentLevel=-1:prestoHLS.levels.forEach((function(t,o){t.height===n&&(console.log("Found quality match with "+n),prestoHLS.currentLevel=o)}))}},d.attachMedia(e),window.prestoHLS=d;var u=new t(e,n({},r));return u.hls=d,u.on("waiting",(function n(){d.startLoad(-1),u.off("waiting",n)})),u.on("languagechange",(function(){setTimeout((function(){return d.subtitleTrack=u.currentTrack}),50)})),o(u)}))}return o(new t(e,n({},r)))}}))}
 
dist/components/web-components/{p-f4d3354e.js → p-77d8cc52.js} RENAMED
@@ -1 +1 @@
1
- import{a as t,d as r,e,f as i,i as n,j as o,_ as a,k as l,l as s,m as p,r as u,h as c,H as d,g as h}from"./p-3cd9ce84.js";var y=["premium","referrerPolicy"];function f(t,r,e){return r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function v(t,r){for(var e=0;e<r.length;e++){var i=r[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function g(t,r,e){return r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function _(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);r&&(i=i.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,i)}return e}function m(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?_(Object(e),!0).forEach((function(r){g(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):_(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}var b={addCSS:!0,thumbWidth:15,watch:!0};function w(t,r){return function(){return Array.from(document.querySelectorAll(r)).includes(this)}.call(t,r)}var k=function(t){return null!=t?t.constructor:null},x=function(t,r){return!!(t&&r&&t instanceof r)},z=function(t){return k(t)===String},j=function(t){return Array.isArray(t)},T=function(t){return x(t,NodeList)},P=z,O=j,S=T,C=function(t){return x(t,Element)},I=function(t){return x(t,Event)},A=function(t){return function(t){return null==t}(t)||(z(t)||j(t)||T(t))&&!t.length||function(t){return k(t)===Object}(t)&&!Object.keys(t).length};var M,E,F,N=function(){function t(r,e){(function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")})(this,t),C(r)?this.element=r:P(r)&&(this.element=document.querySelector(r)),C(this.element)&&A(this.element.rangeTouch)&&(this.config=m({},b,{},e),this.init())}return function(t,r,e){r&&v(t.prototype,r),e&&v(t,e)}(t,[{key:"init",value:function(){t.enabled&&(this.config.addCSS&&(this.element.style.userSelect="none",this.element.style.webKitUserSelect="none",this.element.style.touchAction="manipulation"),this.listeners(!0),this.element.rangeTouch=this)}},{key:"destroy",value:function(){t.enabled&&(this.config.addCSS&&(this.element.style.userSelect="",this.element.style.webKitUserSelect="",this.element.style.touchAction=""),this.listeners(!1),this.element.rangeTouch=null)}},{key:"listeners",value:function(t){var r=this,e=t?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach((function(t){r.element[e](t,(function(t){return r.set(t)}),!1)}))}},{key:"get",value:function(r){if(!t.enabled||!I(r))return null;var e,i=r.target,n=r.changedTouches[0],o=parseFloat(i.getAttribute("min"))||0,a=parseFloat(i.getAttribute("max"))||100,l=parseFloat(i.getAttribute("step"))||1,s=i.getBoundingClientRect(),p=100/s.width*(this.config.thumbWidth/2)/100;return 0>(e=100/s.width*(n.clientX-s.left))?e=0:100<e&&(e=100),50>e?e-=(100-2*e)*p:50<e&&(e+=2*(e-50)*p),o+function(t,r){if(1>r){var e=function(t){var r="".concat(t).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return r?Math.max(0,(r[1]?r[1].length:0)-(r[2]?+r[2]:0)):0}(r);return parseFloat(t.toFixed(e))}return Math.round(t/r)*r}(e/100*(a-o),l)}},{key:"set",value:function(r){t.enabled&&I(r)&&!r.target.disabled&&(r.preventDefault(),r.target.value=this.get(r),function(t,r){if(t&&r){var e=new Event(r,{bubbles:!0});t.dispatchEvent(e)}}(r.target,"touchend"===r.type?"change":"input"))}}],[{key:"setup",value:function(r){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=null;if(A(r)||P(r)?i=Array.from(document.querySelectorAll(P(r)?r:'input[type="range"]')):C(r)?i=[r]:S(r)?i=Array.from(r):O(r)&&(i=r.filter(C)),A(i))return null;var n=m({},b,{},e);if(P(r)&&n.watch){var o=new MutationObserver((function(e){Array.from(e).forEach((function(e){Array.from(e.addedNodes).forEach((function(e){C(e)&&w(e,r)&&new t(e,n)}))}))}));o.observe(document.body,{childList:!0,subtree:!0})}return i.map((function(r){return new t(r,e)}))}},{key:"enabled",get:function(){return"ontouchstart"in document.documentElement}}]),t}(),R=function(t){return null!=t?t.constructor:null},L=function(t,r){return Boolean(t&&r&&t instanceof r)},q=function(t){return null==t},B=function(t){return R(t)===Object},D=function(t){return R(t)===String},U=function(t){return R(t)===Function},H=function(t){return Array.isArray(t)},V=function(t){return L(t,NodeList)},$=function(t){return q(t)||(D(t)||H(t)||V(t))&&!t.length||B(t)&&!Object.keys(t).length},Q=q,Y=B,J=function(t){return R(t)===Number&&!Number.isNaN(t)},W=D,G=function(t){return R(t)===Boolean},K=U,X=H,Z=V,tt=function(t){return null!==t&&"object"==n(t)&&1===t.nodeType&&"object"==n(t.style)&&"object"==n(t.ownerDocument)},rt=function(t){return L(t,Event)},et=function(t){return L(t,KeyboardEvent)},it=function(t){return L(t,TextTrack)||!q(t)&&D(t.kind)},nt=function(t){if(L(t,window.URL))return!0;if(!D(t))return!1;var r=t;t.startsWith("http://")&&t.startsWith("https://")||(r="http://".concat(t));try{return!$(new URL(r).hostname)}catch(t){return!1}},ot=$,at=(M=document.createElement("span"),E={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},F=Object.keys(E).find((function(t){return void 0!==M.style[t]})),!!W(F)&&E[F]);function lt(t,r){setTimeout((function(){try{t.hidden=!0,t.hidden=!1}catch(t){}}),r)}var st={isIE:Boolean(window.document.documentMode),isEdge:window.navigator.userAgent.includes("Edge"),isWebkit:"WebkitAppearance"in document.documentElement.style&&!/Edge/.test(navigator.userAgent),isIPhone:/(iPhone|iPod)/gi.test(navigator.platform),isIos:"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1||/(iPad|iPhone|iPod)/gi.test(navigator.platform)};function pt(t,r){return r.split(".").reduce((function(t,r){return t&&t[r]}),t)}function ut(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];if(!i.length)return t;var o=i.shift();return Y(o)?(Object.keys(o).forEach((function(r){Y(o[r])?(Object.keys(t).includes(r)||Object.assign(t,e({},r,{})),ut(t[r],o[r])):Object.assign(t,e({},r,o[r]))})),ut.apply(void 0,[t].concat(i))):t}function ct(t,r){Array.from(t.length?t:[t]).reverse().forEach((function(t,e){var i=e>0?r.cloneNode(!0):r,n=t.parentNode,o=t.nextSibling;i.appendChild(t),o?n.insertBefore(i,o):n.appendChild(i)}))}function dt(r,e){tt(r)&&!ot(e)&&Object.entries(e).filter((function(r){var e=t(r,2);return!Q(e[1])})).forEach((function(e){var i=t(e,2);return r.setAttribute(i[0],i[1])}))}function ht(t,r,e){var i=document.createElement(t);return Y(r)&&dt(i,r),W(e)&&(i.innerText=e),i}function yt(t,r,e,i){tt(r)&&r.appendChild(ht(t,e,i))}function ft(t){Z(t)||X(t)?Array.from(t).forEach(ft):tt(t)&&tt(t.parentNode)&&t.parentNode.removeChild(t)}function vt(t){if(tt(t))for(var r=t.childNodes.length;r>0;)t.removeChild(t.lastChild),r-=1}function gt(t,r){return tt(r)&&tt(r.parentNode)&&tt(t)?(r.parentNode.replaceChild(t,r),t):null}function _t(r,e){if(!W(r)||ot(r))return{};var i={},n=ut({},e);return r.split(",").forEach((function(r){var e=r.trim(),o=e.replace(".",""),a=e.replace(/[[\]]/g,"").split("="),l=t(a,1)[0],s=a.length>1?a[1].replace(/["']/g,""):"";switch(e.charAt(0)){case".":i.class=W(n.class)?"".concat(n.class," ").concat(o):o;break;case"#":i.id=e.replace("#","");break;case"[":i[l]=s}})),ut(n,i)}function mt(t,r){if(tt(t)){var e=r;G(e)||(e=!t.hidden),t.hidden=e}}function bt(t,r,e){if(Z(t))return Array.from(t).map((function(t){return bt(t,r,e)}));if(tt(t)){var i="toggle";return void 0!==e&&(i=e?"add":"remove"),t.classList[i](r),t.classList.contains(r)}return!1}function wt(t,r){return tt(t)&&t.classList.contains(r)}function kt(t,r){var e=Element.prototype;return(e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector||function(){return Array.from(document.querySelectorAll(r)).includes(this)}).call(t,r)}function xt(t){return this.elements.container.querySelectorAll(t)}function zt(t){return this.elements.container.querySelector(t)}function jt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];tt(t)&&(t.focus({preventScroll:!0}),r&&bt(t,this.config.classNames.tabFocus))}var Tt={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},Pt={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check:function(t,r,e){var i=Pt[t]||"html5"!==r;return{api:i,ui:i&&Pt.rangeInput&&("video"!==t||!st.isIPhone||st.isIPhone&&e&&Pt.playsinline)}},pip:!(st.isIPhone||!K(ht("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||ht("video").disablePictureInPicture)),airplay:K(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime:function(r){if(ot(r))return!1;var e=r.split("/"),i=t(e,1),n=r;if(!this.isHTML5||i[0]!==this.type)return!1;Object.keys(Tt).includes(n)&&(n+='; codecs="'.concat(Tt[r],'"'));try{return Boolean(n&&this.media.canPlayType(n).replace(/no/,""))}catch(r){return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:function(){var t=document.createElement("input");return t.type="range","range"===t.type}(),touch:"ontouchstart"in document.documentElement,transitions:!1!==at,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},Ot=function(){var t=!1;try{var r=Object.defineProperty({},"passive",{get:function(){return t=!0,null}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){}return t}();function St(t,r,e){var i=this,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(t&&"addEventListener"in t&&!ot(r)&&K(e)){var l=r.split(" "),s=a;Ot&&(s={passive:o,capture:a}),l.forEach((function(r){i&&i.eventListeners&&n&&i.eventListeners.push({element:t,type:r,callback:e,options:s}),t[n?"addEventListener":"removeEventListener"](r,e,s)}))}}function Ct(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=arguments.length>2?arguments[2]:void 0,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],n=arguments.length>4&&void 0!==arguments[4]&&arguments[4];St.call(this,t,r,e,!0,i,n)}function It(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=arguments.length>2?arguments[2]:void 0,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],n=arguments.length>4&&void 0!==arguments[4]&&arguments[4];St.call(this,t,r,e,!1,i,n)}function At(t){var r=this,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=function a(){for(var l=arguments.length,s=new Array(l),p=0;p<l;p++)s[p]=arguments[p];It(t,e,a,n,o),i.apply(r,s)};St.call(this,t,e,a,!0,n,o)}function Mt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(tt(t)&&!ot(e)){var o=new CustomEvent(e,{bubbles:i,detail:r(r({},n),{},{plyr:this})});t.dispatchEvent(o)}}function Et(){this&&this.eventListeners&&(this.eventListeners.forEach((function(t){t.element.removeEventListener(t.type,t.callback,t.options)})),this.eventListeners=[])}function Ft(){var t=this;return new Promise((function(r){return t.ready?setTimeout(r,0):Ct.call(t,t.elements.container,"ready",r)})).then((function(){}))}function Nt(t){(function(t){return L(t,Promise)&&U(t.then)})(t)&&t.then(null,(function(){}))}function Rt(t){return X(t)?t.filter((function(r,e){return t.indexOf(r)===e})):t}function Lt(t,r){return X(t)&&t.length?t.reduce((function(t,e){return Math.abs(e-r)<Math.abs(t-r)?e:t})):null}function qt(t){return!(!window||!window.CSS)&&window.CSS.supports(t)}var Bt=[[1,1],[4,3],[3,4],[5,4],[4,5],[3,2],[2,3],[16,10],[10,16],[16,9],[9,16],[21,9],[9,21],[32,9],[9,32]].reduce((function(i,n){var o=t(n,2),a=o[0],l=o[1];return r(r({},i),{},e({},a/l,[a,l]))}),{});function Dt(t){return!!(X(t)||W(t)&&t.includes(":"))&&(X(t)?t:t.split(":")).map(Number).every(J)}function Ut(r){if(!X(r)||!r.every(J))return null;var e=t(r,2),i=e[0],n=e[1],o=function t(r,e){return 0===e?r:t(e,r%e)}(i,n);return[i/o,n/o]}function Ht(t){var r=function(t){return Dt(t)?t.split(":").map(Number):null},e=r(t);if(null===e&&(e=r(this.config.ratio)),null===e&&!ot(this.embed)&&X(this.embed.ratio)&&(e=this.embed.ratio),null===e&&this.isHTML5){var i=this.media;e=[i.videoWidth,i.videoHeight]}return Ut(e)}function Vt(r){if(!this.isVideo)return{};var e=this.elements.wrapper,i=Ht.call(this,r);if(!X(i))return{};var n=Ut(i),o=t(n,2),a=o[0],l=o[1],s=100/a*l;if(qt("aspect-ratio: ".concat(a,"/").concat(l))?e.style.aspectRatio="".concat(a,"/").concat(l):e.style.paddingBottom="".concat(s,"%"),this.isVimeo&&!this.config.vimeo.premium&&this.supported.ui){var p=100/this.media.offsetWidth*parseInt(window.getComputedStyle(this.media).paddingBottom,10),u=(p-s)/(p/50);this.fullscreen.active?e.style.paddingBottom=null:this.media.style.transform="translateY(-".concat(u,"%)")}else this.isHTML5&&e.classList.add(this.config.classNames.videoFixedRatio);return{padding:s,ratio:i}}function $t(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.05,i=t/r,n=Lt(Object.keys(Bt),i);return Math.abs(n-i)<=e?Bt[n]:[t,r]}var Qt={getSources:function(){var t=this;return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter((function(r){var e=r.getAttribute("type");return!!ot(e)||Pt.mime.call(t,e)})):[]},getQualityOptions:function(){return this.config.quality.forced?this.config.quality.options:Qt.getSources.call(this).map((function(t){return Number(t.getAttribute("size"))})).filter(Boolean)},setup:function(){if(this.isHTML5){var t=this;t.options.speed=t.config.speed.options,ot(this.config.ratio)||Vt.call(t),Object.defineProperty(t.media,"quality",{get:function(){var r=Qt.getSources.call(t).find((function(r){return r.getAttribute("src")===t.source}));return r&&Number(r.getAttribute("size"))},set:function(r){if(t.quality!==r){if(t.config.quality.forced&&K(t.config.quality.onChange))t.config.quality.onChange(r);else{var e=Qt.getSources.call(t).find((function(t){return Number(t.getAttribute("size"))===r}));if(!e)return;var i=t.media,n=i.currentTime,o=i.paused,a=i.preload,l=i.readyState,s=i.playbackRate;t.media.src=e.getAttribute("src"),("none"!==a||l)&&(t.once("loadedmetadata",(function(){t.speed=s,t.currentTime=n,o||Nt(t.play())})),t.media.load())}Mt.call(t,t.media,"qualitychange",!1,{quality:r})}}})}},cancelRequests:function(){this.isHTML5&&(ft(Qt.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function Yt(t){return"".concat(t,"-").concat(Math.floor(1e4*Math.random()))}function Jt(t){for(var r=arguments.length,e=new Array(r>1?r-1:0),i=1;i<r;i++)e[i-1]=arguments[i];return ot(t)?t:t.toString().replace(/{(\d+)}/g,(function(t,r){return e[r].toString()}))}var Wt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return t.replace(new RegExp(r.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),e.toString())},Gt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.toString().replace(/\w\S*/g,(function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()}))};function Kt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=t.toString();return r=Wt(r,"-"," "),r=Wt(r,"_"," "),r=Gt(r),Wt(r," ","")}function Xt(t){var r=document.createElement("div");return r.appendChild(t),r.innerHTML}var Zt={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},tr=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(ot(r)||ot(e))return"";var i=pt(e.i18n,r);if(ot(i))return Object.keys(Zt).includes(r)?Zt[r]:"";var n={"{seektime}":e.seekTime,"{title}":e.title};return Object.entries(n).forEach((function(r){var e=t(r,2);i=Wt(i,e[0],e[1])})),i},rr=function(){function t(r){var e=this;o(this,t),f(this,"get",(function(r){if(!t.supported||!e.enabled)return null;var i=window.localStorage.getItem(e.key);if(ot(i))return null;var n=JSON.parse(i);return W(r)&&r.length?n[r]:n})),f(this,"set",(function(r){if(t.supported&&e.enabled&&Y(r)){var i=e.get();ot(i)&&(i={}),ut(i,r),window.localStorage.setItem(e.key,JSON.stringify(i))}})),this.enabled=r.config.storage.enabled,this.key=r.config.storage.key}return i(t,null,[{key:"supported",get:function(){try{if(!("localStorage"in window))return!1;var t="___test";return window.localStorage.setItem(t,t),window.localStorage.removeItem(t),!0}catch(t){return!1}}}]),t}();function er(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text";return new Promise((function(e,i){try{var n=new XMLHttpRequest;if(!("withCredentials"in n))return;n.addEventListener("load",(function(){if("text"===r)try{e(JSON.parse(n.responseText))}catch(t){e(n.responseText)}else e(n.response)})),n.addEventListener("error",(function(){throw new Error(n.status)})),n.open("GET",t,!0),n.responseType=r,n.send()}catch(t){i(t)}}))}function ir(t,r){if(W(t)){var e=W(r),i=function(){return null!==document.getElementById(r)},n=function(t,r){t.innerHTML=r,e&&i()||document.body.insertAdjacentElement("afterbegin",t)};if(!e||!i()){var o=rr.supported,a=document.createElement("div");if(a.setAttribute("hidden",""),e&&a.setAttribute("id",r),o){var l=window.localStorage.getItem("cache-".concat(r));if(null!==l){var s=JSON.parse(l);n(a,s.content)}}er(t).then((function(t){ot(t)||(o&&window.localStorage.setItem("cache-".concat(r),JSON.stringify({content:t})),n(a,t))})).catch((function(){}))}}}var nr=function(t){return Math.trunc(t/60/60%60,10)},or=function(t){return Math.trunc(t%60,10)};function ar(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!J(t))return ar(void 0,r,e);var i,n=function(t){return"0".concat(t).slice(-2)},o=nr(t),a=(i=t,Math.trunc(i/60%60,10)),l=or(t);return o=r||o>0?"".concat(o,":"):"","".concat(e&&t>0?"-":"").concat(o).concat(n(a),":").concat(n(l))}var lr={getIconUrl:function(){var t=new URL(this.config.iconUrl,window.location),r=window.location.host?window.location.host:window.top.location.host,e=t.host!==r||st.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:e}},findElements:function(){try{return this.elements.controls=zt.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:xt.call(this,this.config.selectors.buttons.play),pause:zt.call(this,this.config.selectors.buttons.pause),restart:zt.call(this,this.config.selectors.buttons.restart),rewind:zt.call(this,this.config.selectors.buttons.rewind),fastForward:zt.call(this,this.config.selectors.buttons.fastForward),mute:zt.call(this,this.config.selectors.buttons.mute),pip:zt.call(this,this.config.selectors.buttons.pip),airplay:zt.call(this,this.config.selectors.buttons.airplay),settings:zt.call(this,this.config.selectors.buttons.settings),captions:zt.call(this,this.config.selectors.buttons.captions),fullscreen:zt.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=zt.call(this,this.config.selectors.progress),this.elements.inputs={seek:zt.call(this,this.config.selectors.inputs.seek),volume:zt.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:zt.call(this,this.config.selectors.display.buffer),currentTime:zt.call(this,this.config.selectors.display.currentTime),duration:zt.call(this,this.config.selectors.display.duration)},tt(this.elements.progress)&&(this.elements.display.seekTooltip=this.elements.progress.querySelector(".".concat(this.config.classNames.tooltip))),!0}catch(t){return this.debug.warn("It looks like there is a problem with your custom controls HTML",t),this.toggleNativeControls(!0),!1}},createIcon:function(t,r){var e="http://www.w3.org/2000/svg",i=lr.getIconUrl.call(this),n="".concat(i.cors?"":i.url,"#").concat(this.config.iconPrefix),o=document.createElementNS(e,"svg");dt(o,ut(r,{"aria-hidden":"true",focusable:"false"}));var a=document.createElementNS(e,"use"),l="".concat(n,"-").concat(t);return"href"in a&&a.setAttributeNS("http://www.w3.org/1999/xlink","href",l),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l),o.appendChild(a),o},createLabel:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=tr(t,this.config);return ht("span",r(r({},e),{},{class:[e.class,this.config.classNames.hidden].filter(Boolean).join(" ")}),i)},createBadge:function(t){if(ot(t))return null;var r=ht("span",{class:this.config.classNames.menu.value});return r.appendChild(ht("span",{class:this.config.classNames.menu.badge},t)),r},createButton:function(t,r){var e=this,i=ut({},r),n=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toString();return(t=Kt(t)).charAt(0).toLowerCase()+t.slice(1)}(t),o={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch(["element","icon","label"].forEach((function(t){Object.keys(i).includes(t)&&(o[t]=i[t],delete i[t])})),"button"!==o.element||Object.keys(i).includes("type")||(i.type="button"),Object.keys(i).includes("class")?i.class.split(" ").some((function(t){return t===e.config.classNames.control}))||ut(i,{class:"".concat(i.class," ").concat(this.config.classNames.control)}):i.class=this.config.classNames.control,t){case"play":o.toggle=!0,o.label="play",o.labelPressed="pause",o.icon="play",o.iconPressed="pause";break;case"mute":o.toggle=!0,o.label="mute",o.labelPressed="unmute",o.icon="volume",o.iconPressed="muted";break;case"captions":o.toggle=!0,o.label="enableCaptions",o.labelPressed="disableCaptions",o.icon="captions-off",o.iconPressed="captions-on";break;case"fullscreen":o.toggle=!0,o.label="enterFullscreen",o.labelPressed="exitFullscreen",o.icon="enter-fullscreen",o.iconPressed="exit-fullscreen";break;case"play-large":i.class+=" ".concat(this.config.classNames.control,"--overlaid"),n="play",o.label="play",o.icon="play";break;default:ot(o.label)&&(o.label=n),ot(o.icon)&&(o.icon=t)}var a=ht(o.element);return o.toggle?(a.appendChild(lr.createIcon.call(this,o.iconPressed,{class:"icon--pressed"})),a.appendChild(lr.createIcon.call(this,o.icon,{class:"icon--not-pressed"})),a.appendChild(lr.createLabel.call(this,o.labelPressed,{class:"label--pressed"})),a.appendChild(lr.createLabel.call(this,o.label,{class:"label--not-pressed"}))):(a.appendChild(lr.createIcon.call(this,o.icon)),a.appendChild(lr.createLabel.call(this,o.label))),ut(i,_t(this.config.selectors.buttons[n],i)),dt(a,i),"play"===n?(X(this.elements.buttons[n])||(this.elements.buttons[n]=[]),this.elements.buttons[n].push(a)):this.elements.buttons[n]=a,a},createRange:function(t,r){var e=ht("input",ut(_t(this.config.selectors.inputs[t]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":tr(t,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},r));return this.elements.inputs[t]=e,lr.updateRangeFill.call(this,e),N.setup(e),e},createProgress:function(t,r){var e=ht("progress",ut(_t(this.config.selectors.display[t]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},r));if("volume"!==t){e.appendChild(ht("span",null,"0"));var i={played:"played",buffer:"buffered"}[t],n=i?tr(i,this.config):"";e.innerText="% ".concat(n.toLowerCase())}return this.elements.display[t]=e,e},createTime:function(t,r){var e=_t(this.config.selectors.display[t],r),i=ht("div",ut(e,{class:"".concat(e.class?e.class:""," ").concat(this.config.classNames.display.time," ").trim(),"aria-label":tr(t,this.config)}),"00:00");return this.elements.display[t]=i,i},bindMenuItemShortcuts:function(t,r){var e=this;Ct.call(this,t,"keydown keyup",(function(i){if([32,38,39,40].includes(i.which)&&(i.preventDefault(),i.stopPropagation(),"keydown"!==i.type)){var n,o=kt(t,'[role="menuitemradio"]');!o&&[32,39].includes(i.which)?lr.showMenuPanel.call(e,r,!0):32!==i.which&&(40===i.which||o&&39===i.which?tt(n=t.nextElementSibling)||(n=t.parentNode.firstElementChild):tt(n=t.previousElementSibling)||(n=t.parentNode.lastElementChild),jt.call(e,n,!0))}}),!1),Ct.call(this,t,"keyup",(function(t){13===t.which&&lr.focusFirstMenuItem.call(e,null,!0)}))},createMenuItem:function(t){var r=this,e=t.value,i=t.list,n=t.type,o=t.title,a=t.badge,l=void 0===a?null:a,s=t.checked,p=void 0!==s&&s,u=_t(this.config.selectors.inputs[n]),c=ht("button",ut(u,{type:"button",role:"menuitemradio",class:"".concat(this.config.classNames.control," ").concat(u.class?u.class:"").trim(),"aria-checked":p,value:e})),d=ht("span");d.innerHTML=o,tt(l)&&d.appendChild(l),c.appendChild(d),Object.defineProperty(c,"checked",{enumerable:!0,get:function(){return"true"===c.getAttribute("aria-checked")},set:function(t){t&&Array.from(c.parentNode.children).filter((function(t){return kt(t,'[role="menuitemradio"]')})).forEach((function(t){return t.setAttribute("aria-checked","false")})),c.setAttribute("aria-checked",t?"true":"false")}}),this.listeners.bind(c,"click keyup",(function(t){if(!et(t)||32===t.which){switch(t.preventDefault(),t.stopPropagation(),c.checked=!0,n){case"language":r.currentTrack=Number(e);break;case"quality":r.quality=e;break;case"speed":r.speed=parseFloat(e)}lr.showMenuPanel.call(r,"home",et(t))}}),n,!1),lr.bindMenuItemShortcuts.call(this,c,n),i.appendChild(c)},formatTime:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return J(t)?ar(t,nr(this.duration)>0,r):t},updateTimeDisplay:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];tt(t)&&J(r)&&(t.innerText=lr.formatTime(r,e))},updateVolume:function(){this.supported.ui&&(tt(this.elements.inputs.volume)&&lr.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),tt(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||0===this.volume))},setRange:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;tt(t)&&(t.value=r,lr.updateRangeFill.call(this,t))},updateProgress:function(t){var r=this;if(this.supported.ui&&rt(t)){var e=0;if(t)switch(t.type){case"timeupdate":case"seeking":case"seeked":e=function(t,r){return 0===t||0===r||Number.isNaN(t)||Number.isNaN(r)?0:(t/r*100).toFixed(2)}(this.currentTime,this.duration),"timeupdate"===t.type&&lr.setRange.call(this,this.elements.inputs.seek,e);break;case"playing":case"progress":!function(t,e){var i=J(e)?e:0,n=tt(t)?t:r.elements.display.buffer;if(tt(n)){n.value=i;var o=n.getElementsByTagName("span")[0];tt(o)&&(o.childNodes[0].nodeValue=i)}}(this.elements.display.buffer,100*this.buffered)}}},updateRangeFill:function(t){var r=rt(t)?t.target:t;if(tt(r)&&"range"===r.getAttribute("type")){if(kt(r,this.config.selectors.inputs.seek)){r.setAttribute("aria-valuenow",this.currentTime);var e=lr.formatTime(this.currentTime),i=lr.formatTime(this.duration),n=tr("seekLabel",this.config);r.setAttribute("aria-valuetext",n.replace("{currentTime}",e).replace("{duration}",i))}else if(kt(r,this.config.selectors.inputs.volume)){var o=100*r.value;r.setAttribute("aria-valuenow",o),r.setAttribute("aria-valuetext","".concat(o.toFixed(1),"%"))}else r.setAttribute("aria-valuenow",r.value);st.isWebkit&&r.style.setProperty("--value",r.value/r.max*100+"%")}},updateSeekTooltip:function(t){var r=this;if(this.config.tooltips.seek&&tt(this.elements.inputs.seek)&&tt(this.elements.display.seekTooltip)&&0!==this.duration){var e="".concat(this.config.classNames.tooltip,"--visible"),i=function(t){return bt(r.elements.display.seekTooltip,e,t)};if(this.touch)i(!1);else{var n=0,o=this.elements.progress.getBoundingClientRect();if(rt(t))n=100/o.width*(t.pageX-o.left);else{if(!wt(this.elements.display.seekTooltip,e))return;n=parseFloat(this.elements.display.seekTooltip.style.left,10)}n<0?n=0:n>100&&(n=100),lr.updateTimeDisplay.call(this,this.elements.display.seekTooltip,this.duration/100*n),this.elements.display.seekTooltip.style.left="".concat(n,"%"),rt(t)&&["mouseenter","mouseleave"].includes(t.type)&&i("mouseenter"===t.type)}}},timeUpdate:function(t){var r=!tt(this.elements.display.duration)&&this.config.invertTime;lr.updateTimeDisplay.call(this,this.elements.display.currentTime,r?this.duration-this.currentTime:this.currentTime,r),t&&"timeupdate"===t.type&&this.media.seeking||lr.updateProgress.call(this,t)},durationUpdate:function(){if(this.supported.ui&&(this.config.invertTime||!this.currentTime)){if(this.duration>=Math.pow(2,32))return mt(this.elements.display.currentTime,!0),void mt(this.elements.progress,!0);tt(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);var t=tt(this.elements.display.duration);!t&&this.config.displayDuration&&this.paused&&lr.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),t&&lr.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),lr.updateSeekTooltip.call(this)}},toggleMenuButton:function(t,r){mt(this.elements.settings.buttons[t],!r)},updateSetting:function(t,r,e){var i=this.elements.settings.panels[t],n=null,o=r;if("captions"===t)n=this.currentTrack;else{if(n=ot(e)?this[t]:e,ot(n)&&(n=this.config[t].default),!ot(this.options[t])&&!this.options[t].includes(n))return void this.debug.warn("Unsupported value of '".concat(n,"' for ").concat(t));if(!this.config[t].options.includes(n))return void this.debug.warn("Disabled value of '".concat(n,"' for ").concat(t))}if(tt(o)||(o=i&&i.querySelector('[role="menu"]')),tt(o)){this.elements.settings.buttons[t].querySelector(".".concat(this.config.classNames.menu.value)).innerHTML=lr.getLabel.call(this,t,n);var a=o&&o.querySelector('[value="'.concat(n,'"]'));tt(a)&&(a.checked=!0)}},getLabel:function(t,r){switch(t){case"speed":return 1===r?tr("normal",this.config):"".concat(r,"&times;");case"quality":if(J(r)){if(0===r)return tr("auto",this.config);var e=tr("qualityLabel.".concat(r),this.config);return e.length?e:"".concat(r,"p")}return Gt(r);case"captions":return ur.getLabel.call(this);default:return null}},setQualityMenu:function(t){var r=this;if(tt(this.elements.settings.panels.quality)){var e="quality",i=this.elements.settings.panels.quality.querySelector('[role="menu"]');X(t)&&(this.options.quality=Rt(t).filter((function(t){return r.config.quality.options.includes(t)})));var n=!ot(this.options.quality)&&this.options.quality.length>1;if(lr.toggleMenuButton.call(this,e,n),vt(i),lr.checkMenu.call(this),n){var o=function(t){var e=tr("qualityBadge.".concat(t),r.config);return e.length?lr.createBadge.call(r,e):null};this.options.quality.sort((function(t,e){var i=r.config.quality.options;return i.indexOf(t)>i.indexOf(e)?1:-1})).forEach((function(t){lr.createMenuItem.call(r,{value:t,list:i,type:e,title:lr.getLabel.call(r,"quality",t),badge:o(t)})})),lr.updateSetting.call(this,e,i)}}},setCaptionsMenu:function(){var t=this;if(tt(this.elements.settings.panels.captions)){var r="captions",e=this.elements.settings.panels.captions.querySelector('[role="menu"]'),i=ur.getTracks.call(this),n=Boolean(i.length);if(lr.toggleMenuButton.call(this,r,n),vt(e),lr.checkMenu.call(this),n){var o=i.map((function(r,i){return{value:i,checked:t.captions.toggled&&t.currentTrack===i,title:ur.getLabel.call(t,r),badge:r.language&&lr.createBadge.call(t,r.language.toUpperCase()),list:e,type:"language"}}));o.unshift({value:-1,checked:!this.captions.toggled,title:tr("disabled",this.config),list:e,type:"language"}),o.forEach(lr.createMenuItem.bind(this)),lr.updateSetting.call(this,r,e)}}},setSpeedMenu:function(){var t=this;if(tt(this.elements.settings.panels.speed)){var r="speed",e=this.elements.settings.panels.speed.querySelector('[role="menu"]');this.options.speed=this.options.speed.filter((function(r){return r>=t.minimumSpeed&&r<=t.maximumSpeed}));var i=!ot(this.options.speed)&&this.options.speed.length>1;lr.toggleMenuButton.call(this,r,i),vt(e),lr.checkMenu.call(this),i&&(this.options.speed.forEach((function(i){lr.createMenuItem.call(t,{value:i,list:e,type:r,title:lr.getLabel.call(t,"speed",i)})})),lr.updateSetting.call(this,r,e))}},checkMenu:function(){var t=this.elements.settings.buttons,r=!ot(t)&&Object.values(t).some((function(t){return!t.hidden}));mt(this.elements.settings.menu,!r)},focusFirstMenuItem:function(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.elements.settings.popup.hidden){var e=t;tt(e)||(e=Object.values(this.elements.settings.panels).find((function(t){return!t.hidden})));var i=e.querySelector('[role^="menuitem"]');jt.call(this,i,r)}},toggleMenu:function(t){var r=this.elements.settings.popup,e=this.elements.buttons.settings;if(tt(r)&&tt(e)){var i=r.hidden,n=i;if(G(t))n=t;else if(et(t)&&27===t.which)n=!1;else if(rt(t)){var o=K(t.composedPath)?t.composedPath()[0]:t.target,a=r.contains(o);if(a||!a&&t.target!==e&&n)return}e.setAttribute("aria-expanded",n),mt(r,!n),bt(this.elements.container,this.config.classNames.menu.open,n),n&&et(t)?lr.focusFirstMenuItem.call(this,null,!0):n||i||jt.call(this,e,et(t))}},getMenuSize:function(t){var r=t.cloneNode(!0);r.style.position="absolute",r.style.opacity=0,r.removeAttribute("hidden"),t.parentNode.appendChild(r);var e=r.scrollWidth,i=r.scrollHeight;return ft(r),{width:e,height:i}},showMenuPanel:function(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.elements.container.querySelector("#plyr-settings-".concat(this.id,"-").concat(r));if(tt(i)){var n=i.parentNode,o=Array.from(n.children).find((function(t){return!t.hidden}));if(Pt.transitions&&!Pt.reducedMotion){n.style.width="".concat(o.scrollWidth,"px"),n.style.height="".concat(o.scrollHeight,"px");var a=lr.getMenuSize.call(this,i),l=function r(e){e.target===n&&["width","height"].includes(e.propertyName)&&(n.style.width="",n.style.height="",It.call(t,n,at,r))};Ct.call(this,n,at,l),n.style.width="".concat(a.width,"px"),n.style.height="".concat(a.height,"px")}mt(o,!0),mt(i,!1),lr.focusFirstMenuItem.call(this,i,e)}},setDownloadUrl:function(){var t=this.elements.buttons.download;tt(t)&&t.setAttribute("href",this.download)},create:function(t){var r=this,e=lr.bindMenuItemShortcuts,i=lr.createButton,n=lr.createProgress,o=lr.createRange,a=lr.createTime,l=lr.setQualityMenu,s=lr.setSpeedMenu,p=lr.showMenuPanel;this.elements.controls=null,X(this.config.controls)&&this.config.controls.includes("play-large")&&this.elements.container.appendChild(i.call(this,"play-large"));var u=ht("div",_t(this.config.selectors.controls.wrapper));this.elements.controls=u;var c={class:"plyr__controls__item"};return Rt(X(this.config.controls)?this.config.controls:[]).forEach((function(l){if("restart"===l&&u.appendChild(i.call(r,"restart",c)),"rewind"===l&&u.appendChild(i.call(r,"rewind",c)),"play"===l&&u.appendChild(i.call(r,"play",c)),"fast-forward"===l&&u.appendChild(i.call(r,"fast-forward",c)),"progress"===l){var s=ht("div",{class:"".concat(c.class," plyr__progress__container")}),d=ht("div",_t(r.config.selectors.progress));if(d.appendChild(o.call(r,"seek",{id:"plyr-seek-".concat(t.id)})),d.appendChild(n.call(r,"buffer")),r.config.tooltips.seek){var h=ht("span",{class:r.config.classNames.tooltip},"00:00");d.appendChild(h),r.elements.display.seekTooltip=h}r.elements.progress=d,s.appendChild(r.elements.progress),u.appendChild(s)}if("current-time"===l&&u.appendChild(a.call(r,"currentTime",c)),"duration"===l&&u.appendChild(a.call(r,"duration",c)),"mute"===l||"volume"===l){var y=r.elements.volume;tt(y)&&u.contains(y)||(y=ht("div",ut({},c,{class:"".concat(c.class," plyr__volume").trim()})),r.elements.volume=y,u.appendChild(y)),"mute"===l&&y.appendChild(i.call(r,"mute")),"volume"!==l||st.isIos||y.appendChild(o.call(r,"volume",ut({max:1,step:.05,value:r.config.volume},{id:"plyr-volume-".concat(t.id)})))}if("captions"===l&&u.appendChild(i.call(r,"captions",c)),"settings"===l&&!ot(r.config.settings)){var f=ht("div",ut({},c,{class:"".concat(c.class," plyr__menu").trim(),hidden:""}));f.appendChild(i.call(r,"settings",{"aria-haspopup":!0,"aria-controls":"plyr-settings-".concat(t.id),"aria-expanded":!1}));var v=ht("div",{class:"plyr__menu__container",id:"plyr-settings-".concat(t.id),hidden:""}),g=ht("div"),_=ht("div",{id:"plyr-settings-".concat(t.id,"-home")}),m=ht("div",{role:"menu"});_.appendChild(m),g.appendChild(_),r.elements.settings.panels.home=_,r.config.settings.forEach((function(i){var n=ht("button",ut(_t(r.config.selectors.buttons.settings),{type:"button",class:"".concat(r.config.classNames.control," ").concat(r.config.classNames.control,"--forward"),role:"menuitem","aria-haspopup":!0,hidden:""}));e.call(r,n,i),Ct.call(r,n,"click",(function(){p.call(r,i,!1)}));var o=ht("span",null,tr(i,r.config)),a=ht("span",{class:r.config.classNames.menu.value});a.innerHTML=t[i],o.appendChild(a),n.appendChild(o),m.appendChild(n);var l=ht("div",{id:"plyr-settings-".concat(t.id,"-").concat(i),hidden:""}),s=ht("button",{type:"button",class:"".concat(r.config.classNames.control," ").concat(r.config.classNames.control,"--back")});s.appendChild(ht("span",{"aria-hidden":!0},tr(i,r.config))),s.appendChild(ht("span",{class:r.config.classNames.hidden},tr("menuBack",r.config))),Ct.call(r,l,"keydown",(function(t){37===t.which&&(t.preventDefault(),t.stopPropagation(),p.call(r,"home",!0))}),!1),Ct.call(r,s,"click",(function(){p.call(r,"home",!1)})),l.appendChild(s),l.appendChild(ht("div",{role:"menu"})),g.appendChild(l),r.elements.settings.buttons[i]=n,r.elements.settings.panels[i]=l})),v.appendChild(g),f.appendChild(v),u.appendChild(f),r.elements.settings.popup=v,r.elements.settings.menu=f}if("pip"===l&&Pt.pip&&u.appendChild(i.call(r,"pip",c)),"airplay"===l&&Pt.airplay&&u.appendChild(i.call(r,"airplay",c)),"download"===l){var b=ut({},c,{element:"a",href:r.download,target:"_blank"});r.isHTML5&&(b.download=""),!nt(r.config.urls.download)&&r.isEmbed&&ut(b,{icon:"logo-".concat(r.provider),label:r.provider}),u.appendChild(i.call(r,"download",b))}"fullscreen"===l&&u.appendChild(i.call(r,"fullscreen",c))})),this.isHTML5&&l.call(this,Qt.getQualityOptions.call(this)),s.call(this),u},inject:function(){var r=this;if(this.config.loadSprite){var e=lr.getIconUrl.call(this);e.cors&&ir(e.url,"sprite-plyr")}this.id=Math.floor(1e4*Math.random());var i=null;this.elements.controls=null;var n,o={id:this.id,seektime:this.config.seekTime,title:this.config.title},a=!0;if(K(this.config.controls)&&(this.config.controls=this.config.controls.call(this,o)),this.config.controls||(this.config.controls=[]),tt(this.config.controls)||W(this.config.controls)?i=this.config.controls:(i=lr.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:ur.getLabel.call(this)}),a=!1),a&&W(this.config.controls)&&(i=function(r){var e=r;return Object.entries(o).forEach((function(r){var i=t(r,2),n=i[1];e=Wt(e,"{".concat(i[0],"}"),n)})),e}(i)),W(this.config.selectors.controls.container)&&(n=document.querySelector(this.config.selectors.controls.container)),tt(n)||(n=this.elements.container),n[tt(i)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",i),tt(this.elements.controls)||lr.findElements.call(this),!ot(this.elements.buttons)){var l=function(t){var e=r.config.classNames.controlPressed;Object.defineProperty(t,"pressed",{enumerable:!0,get:function(){return wt(t,e)},set:function(){var r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];bt(t,e,r)}})};Object.values(this.elements.buttons).filter(Boolean).forEach((function(t){X(t)||Z(t)?Array.from(t).filter(Boolean).forEach(l):l(t)}))}if(st.isEdge&&lt(n),this.config.tooltips.controls){var s=this.config,p=s.classNames,u=s.selectors,c="".concat(u.controls.wrapper," ").concat(u.labels," .").concat(p.hidden),d=xt.call(this,c);Array.from(d).forEach((function(t){bt(t,r.config.classNames.hidden,!1),bt(t,r.config.classNames.tooltip,!0)}))}}};function sr(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],e=t;if(r){var i=document.createElement("a");i.href=e,e=i.href}try{return new URL(e)}catch(t){return null}}function pr(r){var e=new URLSearchParams;return Y(r)&&Object.entries(r).forEach((function(r){var i=t(r,2);e.set(i[0],i[1])})),e}var ur={setup:function(){if(this.supported.ui)if(!this.isVideo||this.isYouTube||this.isHTML5&&!Pt.textTracks)X(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&lr.setCaptionsMenu.call(this);else{if(tt(this.elements.captions)||(this.elements.captions=ht("div",_t(this.config.selectors.captions)),function(t,r){tt(t)&&tt(r)&&r.parentNode.insertBefore(t,r.nextSibling)}(this.elements.captions,this.elements.wrapper)),st.isIE&&window.URL){var r=this.media.querySelectorAll("track");Array.from(r).forEach((function(t){var r=t.getAttribute("src"),e=sr(r);null!==e&&e.hostname!==window.location.href.hostname&&["http:","https:"].includes(e.protocol)&&er(r,"blob").then((function(r){t.setAttribute("src",window.URL.createObjectURL(r))})).catch((function(){ft(t)}))}))}var e=Rt((navigator.languages||[navigator.language||navigator.userLanguage||"en"]).map((function(t){return t.split("-")[0]}))),i=(this.storage.get("language")||this.config.captions.language||"auto").toLowerCase();"auto"===i&&(i=t(e,1)[0]);var n=this.storage.get("captions");G(n)||(n=this.config.captions.active),Object.assign(this.captions,{toggled:!1,active:n,language:i,languages:e}),this.isHTML5&&Ct.call(this,this.media.textTracks,this.config.captions.update?"addtrack removetrack":"removetrack",ur.update.bind(this)),setTimeout(ur.update.bind(this),0)}},update:function(){var t=this,r=ur.getTracks.call(this,!0),e=this.captions,i=e.active,n=e.language,o=e.meta,a=e.currentTrackNode,l=Boolean(r.find((function(t){return t.language===n})));this.isHTML5&&this.isVideo&&r.filter((function(t){return!o.get(t)})).forEach((function(r){t.debug.log("Track added",r),o.set(r,{default:"showing"===r.mode}),"showing"===r.mode&&(r.mode="hidden"),Ct.call(t,r,"cuechange",(function(){return ur.updateCues.call(t)}))})),(l&&this.language!==n||!r.includes(a))&&(ur.setLanguage.call(this,n),ur.toggle.call(this,i&&l)),bt(this.elements.container,this.config.classNames.captions.enabled,!ot(r)),X(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&lr.setCaptionsMenu.call(this)},toggle:function(t){var r=this,e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.supported.ui){var i=this.captions.toggled,n=this.config.classNames.captions.active,o=Q(t)?!i:t;if(o!==i){if(e||(this.captions.active=o,this.storage.set({captions:o})),!this.language&&o&&!e){var l=ur.getTracks.call(this),s=ur.findTrack.call(this,[this.captions.language].concat(a(this.captions.languages)),!0);return this.captions.language=s.language,void ur.set.call(this,l.indexOf(s))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=o),bt(this.elements.container,n,o),this.captions.toggled=o,lr.updateSetting.call(this,"captions"),Mt.call(this,this.media,o?"captionsenabled":"captionsdisabled")}setTimeout((function(){o&&r.captions.toggled&&r.captions.currentTrackNode&&(r.captions.currentTrackNode.mode="hidden")}))}},set:function(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],e=ur.getTracks.call(this);if(-1!==t)if(J(t))if(t in e){if(this.captions.currentTrack!==t){this.captions.currentTrack=t;var i=e[t],n=i||{},o=n.language;this.captions.currentTrackNode=i,lr.updateSetting.call(this,"captions"),r||(this.captions.language=o,this.storage.set({language:o})),this.isVimeo&&this.embed.enableTextTrack(o),Mt.call(this,this.media,"languagechange")}ur.toggle.call(this,!0,r),this.isHTML5&&this.isVideo&&ur.updateCues.call(this)}else this.debug.warn("Track not found",t);else this.debug.warn("Invalid caption argument",t);else ur.toggle.call(this,!1,r)},setLanguage:function(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(W(t)){var e=t.toLowerCase();this.captions.language=e;var i=ur.getTracks.call(this),n=ur.findTrack.call(this,[e]);ur.set.call(this,i.indexOf(n),r)}else this.debug.warn("Invalid language argument",t)},getTracks:function(){var t=this,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Array.from((this.media||{}).textTracks||[]).filter((function(e){return!t.isHTML5||r||t.captions.meta.has(e)})).filter((function(t){return["captions","subtitles"].includes(t.kind)}))},findTrack:function(t){var r,e=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=ur.getTracks.call(this),o=function(t){return Number((e.captions.meta.get(t)||{}).default)},a=Array.from(n).sort((function(t,r){return o(r)-o(t)}));return t.every((function(t){return!(r=a.find((function(r){return r.language===t})))})),r||(i?a[0]:void 0)},getCurrentTrack:function(){return ur.getTracks.call(this)[this.currentTrack]},getLabel:function(t){var r=t;return!it(r)&&Pt.textTracks&&this.captions.toggled&&(r=ur.getCurrentTrack.call(this)),it(r)?ot(r.label)?ot(r.language)?tr("enabled",this.config):t.language.toUpperCase():r.label:tr("disabled",this.config)},updateCues:function(t){if(this.supported.ui)if(tt(this.elements.captions))if(Q(t)||Array.isArray(t)){var r=t;if(!r){var e=ur.getCurrentTrack.call(this);r=Array.from((e||{}).activeCues||[]).map((function(t){return t.getCueAsHTML()})).map(Xt)}var i=r.map((function(t){return t.trim()})).join("\n");if(i!==this.elements.captions.innerHTML){vt(this.elements.captions);var n=ht("span",_t(this.config.selectors.caption));n.innerHTML=i,this.elements.captions.appendChild(n),Mt.call(this,this.media,"cuechange")}}else this.debug.warn("updateCues: Invalid input",t);else this.debug.warn("No captions element to render to")}},cr={enabled:!0,title:"",debug:!1,autoplay:!1,autopause:!0,playsinline:!0,seekTime:10,volume:1,muted:!1,duration:null,displayDuration:!0,invertTime:!0,toggleInvert:!0,ratio:null,clickToPlay:!0,hideControls:!0,resetOnEnd:!1,disableContextMenu:!0,loadSprite:!0,iconPrefix:"plyr",iconUrl:"https://cdn.plyr.io/3.6.8/plyr.svg",blankVideo:"https://cdn.plyr.io/static/blank.mp4",quality:{default:576,options:[4320,2880,2160,1440,1080,720,576,480,360,240],forced:!1,onChange:null},loop:{active:!1},speed:{selected:1,options:[.5,.75,1,1.25,1.5,1.75,2,4]},keyboard:{focused:!0,global:!1},tooltips:{controls:!1,seek:!0},captions:{active:!1,language:"auto",update:!1},fullscreen:{enabled:!0,fallback:!0,iosNative:!1},storage:{enabled:!0,key:"plyr"},controls:["play-large","play","progress","current-time","mute","volume","captions","settings","pip","airplay","fullscreen"],settings:["captions","quality","speed"],i18n:{restart:"Restart",rewind:"Rewind {seektime}s",play:"Play",pause:"Pause",fastForward:"Forward {seektime}s",seek:"Seek",seekLabel:"{currentTime} of {duration}",played:"Played",buffered:"Buffered",currentTime:"Current time",duration:"Duration",volume:"Volume",mute:"Mute",unmute:"Unmute",enableCaptions:"Enable captions",disableCaptions:"Disable captions",download:"Download",enterFullscreen:"Enter fullscreen",exitFullscreen:"Exit fullscreen",frameTitle:"Player for {title}",captions:"Captions",settings:"Settings",pip:"PIP",menuBack:"Go back to previous menu",speed:"Speed",normal:"Normal",quality:"Quality",loop:"Loop",start:"Start",end:"End",all:"All",reset:"Reset",disabled:"Disabled",enabled:"Enabled",advertisement:"Ad",qualityBadge:{2160:"4K",1440:"HD",1080:"HD",720:"HD",576:"SD",480:"SD"},auto:"AUTO"},urls:{download:null,vimeo:{sdk:"https://player.vimeo.com/api/player.js",iframe:"https://player.vimeo.com/video/{0}?{1}",api:"https://vimeo.com/api/oembed.json?url={0}"},youtube:{sdk:"https://www.youtube.com/iframe_api",api:"https://noembed.com/embed?url=https://www.youtube.com/watch?v={0}"},googleIMA:{sdk:"https://imasdk.googleapis.com/js/sdkloader/ima3.js"}},listeners:{seek:null,play:null,pause:null,restart:null,rewind:null,fastForward:null,mute:null,volume:null,captions:null,download:null,fullscreen:null,pip:null,airplay:null,speed:null,quality:null,loop:null,language:null},events:["ended","progress","stalled","playing","waiting","canplay","canplaythrough","loadstart","loadeddata","loadedmetadata","timeupdate","volumechange","play","pause","error","seeking","seeked","emptied","ratechange","cuechange","download","enterfullscreen","exitfullscreen","captionsenabled","captionsdisabled","languagechange","controlshidden","controlsshown","ready","statechange","qualitychange","adsloaded","adscontentpause","adscontentresume","adstarted","adsmidpoint","adscomplete","adsallcomplete","adsimpression","adsclick"],selectors:{editable:"input, textarea, select, [contenteditable]",container:".plyr",controls:{container:null,wrapper:".plyr__controls"},labels:"[data-plyr]",buttons:{play:'[data-plyr="play"]',pause:'[data-plyr="pause"]',restart:'[data-plyr="restart"]',rewind:'[data-plyr="rewind"]',fastForward:'[data-plyr="fast-forward"]',mute:'[data-plyr="mute"]',captions:'[data-plyr="captions"]',download:'[data-plyr="download"]',fullscreen:'[data-plyr="fullscreen"]',pip:'[data-plyr="pip"]',airplay:'[data-plyr="airplay"]',settings:'[data-plyr="settings"]',loop:'[data-plyr="loop"]'},inputs:{seek:'[data-plyr="seek"]',volume:'[data-plyr="volume"]',speed:'[data-plyr="speed"]',language:'[data-plyr="language"]',quality:'[data-plyr="quality"]'},display:{currentTime:".plyr__time--current",duration:".plyr__time--duration",buffer:".plyr__progress__buffer",loop:".plyr__progress__loop",volume:".plyr__volume--display"},progress:".plyr__progress",captions:".plyr__captions",caption:".plyr__caption"},classNames:{type:"plyr--{0}",provider:"plyr--{0}",video:"plyr__video-wrapper",embed:"plyr__video-embed",videoFixedRatio:"plyr__video-wrapper--fixed-ratio",embedContainer:"plyr__video-embed__container",poster:"plyr__poster",posterEnabled:"plyr__poster-enabled",ads:"plyr__ads",control:"plyr__control",controlPressed:"plyr__control--pressed",playing:"plyr--playing",paused:"plyr--paused",stopped:"plyr--stopped",loading:"plyr--loading",hover:"plyr--hover",tooltip:"plyr__tooltip",cues:"plyr__cues",hidden:"plyr__sr-only",hideControls:"plyr--hide-controls",isIos:"plyr--is-ios",isTouch:"plyr--is-touch",uiSupported:"plyr--full-ui",noTransition:"plyr--no-transition",display:{time:"plyr__time"},menu:{value:"plyr__menu__value",badge:"plyr__badge",open:"plyr--menu-open"},captions:{enabled:"plyr--captions-enabled",active:"plyr--captions-active"},fullscreen:{enabled:"plyr--fullscreen-enabled",fallback:"plyr--fullscreen-fallback"},pip:{supported:"plyr--pip-supported",active:"plyr--pip-active"},airplay:{supported:"plyr--airplay-supported",active:"plyr--airplay-active"},tabFocus:"plyr__tab-focus",previewThumbnails:{thumbContainer:"plyr__preview-thumb",thumbContainerShown:"plyr__preview-thumb--is-shown",imageContainer:"plyr__preview-thumb__image-container",timeContainer:"plyr__preview-thumb__time-container",scrubbingContainer:"plyr__preview-scrubbing",scrubbingContainerShown:"plyr__preview-scrubbing--is-shown"}},attributes:{embed:{provider:"data-plyr-provider",id:"data-plyr-embed-id"}},ads:{enabled:!1,publisherId:"",tagUrl:""},previewThumbnails:{enabled:!1,src:""},vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1,customControls:!0,referrerPolicy:null,premium:!1},youtube:{rel:0,showinfo:0,iv_load_policy:3,modestbranding:1,customControls:!0,noCookie:!1}},dr={html5:"html5",youtube:"youtube",vimeo:"vimeo"},hr=function(){},yr=function(){function t(){var r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];o(this,t),this.enabled=window.console&&r,this.enabled&&this.log("Debugging enabled")}return i(t,[{key:"log",get:function(){return this.enabled?Function.prototype.bind.call(console.log,console):hr}},{key:"warn",get:function(){return this.enabled?Function.prototype.bind.call(console.warn,console):hr}},{key:"error",get:function(){return this.enabled?Function.prototype.bind.call(console.error,console):hr}}]),t}(),fr=function(){function r(e){var i=this;o(this,r),f(this,"onChange",(function(){if(i.enabled){var t=i.player.elements.buttons.fullscreen;tt(t)&&(t.pressed=i.active),Mt.call(i.player,i.target===i.player.media?i.target:i.player.elements.container,i.active?"enterfullscreen":"exitfullscreen",!0)}})),f(this,"toggleFallback",(function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(t?i.scrollPosition={x:window.scrollX||0,y:window.scrollY||0}:window.scrollTo(i.scrollPosition.x,i.scrollPosition.y),document.body.style.overflow=t?"hidden":"",bt(i.target,i.player.config.classNames.fullscreen.fallback,t),st.isIos){var r=document.head.querySelector('meta[name="viewport"]'),e="viewport-fit=cover";r||(r=document.createElement("meta")).setAttribute("name","viewport");var n=W(r.content)&&r.content.includes(e);t?(i.cleanupViewport=!n,n||(r.content+=",".concat(e))):i.cleanupViewport&&(r.content=r.content.split(",").filter((function(t){return t.trim()!==e})).join(","))}i.onChange()})),f(this,"trapFocus",(function(r){if(!st.isIos&&i.active&&"Tab"===r.key&&9===r.keyCode){var e=document.activeElement,n=xt.call(i.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),o=t(n,1)[0],a=n[n.length-1];e!==a||r.shiftKey?e===o&&r.shiftKey&&(a.focus(),r.preventDefault()):(o.focus(),r.preventDefault())}})),f(this,"update",(function(){i.player.debug.log(i.enabled?"".concat(i.forceFallback?"Fallback (forced)":r.native?"Native":"Fallback"," fullscreen enabled"):"Fullscreen not supported and fallback disabled"),bt(i.player.elements.container,i.player.config.classNames.fullscreen.enabled,i.enabled)})),f(this,"enter",(function(){i.enabled&&(st.isIos&&i.player.config.fullscreen.iosNative?i.player.isVimeo?i.player.embed.requestFullscreen():i.target.webkitEnterFullscreen():!r.native||i.forceFallback?i.toggleFallback(!0):i.prefix?ot(i.prefix)||i.target["".concat(i.prefix,"Request").concat(i.property)]():i.target.requestFullscreen({navigationUI:"hide"}))})),f(this,"exit",(function(){if(i.enabled)if(st.isIos&&i.player.config.fullscreen.iosNative)i.target.webkitExitFullscreen(),Nt(i.player.play());else if(!r.native||i.forceFallback)i.toggleFallback(!1);else if(i.prefix){if(!ot(i.prefix)){var t="moz"===i.prefix?"Cancel":"Exit";document["".concat(i.prefix).concat(t).concat(i.property)]()}}else(document.cancelFullScreen||document.exitFullscreen).call(document)})),f(this,"toggle",(function(){i.active?i.exit():i.enter()})),this.player=e,this.prefix=r.prefix,this.property=r.property,this.scrollPosition={x:0,y:0},this.forceFallback="force"===e.config.fullscreen.fallback,this.player.elements.fullscreen=e.config.fullscreen.container&&function(t,r){return(Element.prototype.closest||function(){var t=this;do{if(kt.matches(t,r))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null}).call(t,r)}(this.player.elements.container,e.config.fullscreen.container),Ct.call(this.player,document,"ms"===this.prefix?"MSFullscreenChange":"".concat(this.prefix,"fullscreenchange"),(function(){i.onChange()})),Ct.call(this.player,this.player.elements.container,"dblclick",(function(t){tt(i.player.elements.controls)&&i.player.elements.controls.contains(t.target)||i.player.listeners.proxy(t,i.toggle,"fullscreen")})),Ct.call(this,this.player.elements.container,"keydown",(function(t){return i.trapFocus(t)})),this.update()}return i(r,[{key:"usingNative",get:function(){return r.native&&!this.forceFallback}},{key:"enabled",get:function(){return(r.native||this.player.config.fullscreen.fallback)&&this.player.config.fullscreen.enabled&&this.player.supported.ui&&this.player.isVideo}},{key:"active",get:function(){if(!this.enabled)return!1;if(!r.native||this.forceFallback)return wt(this.target,this.player.config.classNames.fullscreen.fallback);var t=this.prefix?document["".concat(this.prefix).concat(this.property,"Element")]:document.fullscreenElement;return t&&t.shadowRoot?t===this.target.getRootNode().host:t===this.target}},{key:"target",get:function(){return st.isIos&&this.player.config.fullscreen.iosNative?this.player.media:this.player.elements.fullscreen||this.player.elements.container}}],[{key:"native",get:function(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}},{key:"prefix",get:function(){if(K(document.exitFullscreen))return"";var t="";return["webkit","moz","ms"].some((function(r){return!(!K(document["".concat(r,"ExitFullscreen")])&&!K(document["".concat(r,"CancelFullScreen")])||(t=r,0))})),t}},{key:"property",get:function(){return"moz"===this.prefix?"FullScreen":"Fullscreen"}}]),r}();function vr(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Promise((function(e,i){var n=new Image,o=function(){delete n.onload,delete n.onerror,(n.naturalWidth>=r?e:i)(n)};Object.assign(n,{onload:o,onerror:o,src:t})}))}var gr={addStyleHook:function(){bt(this.elements.container,this.config.selectors.container.replace(".",""),!0),bt(this.elements.container,this.config.classNames.uiSupported,this.supported.ui)},toggleNativeControls:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];t&&this.isHTML5?this.media.setAttribute("controls",""):this.media.removeAttribute("controls")},build:function(){var t=this;if(this.listeners.media(),!this.supported.ui)return this.debug.warn("Basic support only for ".concat(this.provider," ").concat(this.type)),void gr.toggleNativeControls.call(this,!0);tt(this.elements.controls)||(lr.inject.call(this),this.listeners.controls()),gr.toggleNativeControls.call(this),this.isHTML5&&ur.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,lr.updateVolume.call(this),lr.timeUpdate.call(this),gr.checkPlaying.call(this),bt(this.elements.container,this.config.classNames.pip.supported,Pt.pip&&this.isHTML5&&this.isVideo),bt(this.elements.container,this.config.classNames.airplay.supported,Pt.airplay&&this.isHTML5),bt(this.elements.container,this.config.classNames.isIos,st.isIos),bt(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout((function(){Mt.call(t,t.media,"ready")}),0),gr.setTitle.call(this),this.poster&&gr.setPoster.call(this,this.poster,!1).catch((function(){})),this.config.duration&&lr.durationUpdate.call(this)},setTitle:function(){var t=tr("play",this.config);if(W(this.config.title)&&!ot(this.config.title)&&(t+=", ".concat(this.config.title)),Array.from(this.elements.buttons.play||[]).forEach((function(r){r.setAttribute("aria-label",t)})),this.isEmbed){var r=zt.call(this,"iframe");if(!tt(r))return;var e=ot(this.config.title)?"video":this.config.title,i=tr("frameTitle",this.config);r.setAttribute("title",i.replace("{title}",e))}},togglePoster:function(t){bt(this.elements.container,this.config.classNames.posterEnabled,t)},setPoster:function(t){var r=this,e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e&&this.poster?Promise.reject(new Error("Poster already set")):(this.media.setAttribute("data-poster",t),this.elements.poster.removeAttribute("hidden"),Ft.call(this).then((function(){return vr(t)})).catch((function(e){throw t===r.poster&&gr.togglePoster.call(r,!1),e})).then((function(){if(t!==r.poster)throw new Error("setPoster cancelled by later call to setPoster")})).then((function(){return Object.assign(r.elements.poster.style,{backgroundImage:"url('".concat(t,"')"),backgroundSize:""}),gr.togglePoster.call(r,!0),t})))},checkPlaying:function(t){var r=this;bt(this.elements.container,this.config.classNames.playing,this.playing),bt(this.elements.container,this.config.classNames.paused,this.paused),bt(this.elements.container,this.config.classNames.stopped,this.stopped),Array.from(this.elements.buttons.play||[]).forEach((function(t){Object.assign(t,{pressed:r.playing}),t.setAttribute("aria-label",tr(r.playing?"pause":"play",r.config))})),rt(t)&&"timeupdate"===t.type||gr.toggleControls.call(this)},checkLoading:function(t){var r=this;this.loading=["stalled","waiting"].includes(t.type),clearTimeout(this.timers.loading),this.timers.loading=setTimeout((function(){bt(r.elements.container,r.config.classNames.loading,r.loading),gr.toggleControls.call(r)}),this.loading?250:0)},toggleControls:function(t){var r=this.elements.controls;if(r&&this.config.hideControls){var e=this.touch&&this.lastSeekTime+2e3>Date.now();this.toggleControls(Boolean(t||this.loading||this.paused||r.pressed||r.hover||e))}},migrateStyles:function(){var t=this;Object.values(r({},this.media.style)).filter((function(t){return!ot(t)&&W(t)&&t.startsWith("--plyr")})).forEach((function(r){t.elements.container.style.setProperty(r,t.media.style.getPropertyValue(r)),t.media.style.removeProperty(r)})),ot(this.media.style)&&this.media.removeAttribute("style")}},_r=function(){function r(e){var i=this;o(this,r),f(this,"firstTouch",(function(){var t=i.player,r=t.elements;t.touch=!0,bt(r.container,t.config.classNames.isTouch,!0)})),f(this,"setTabFocus",(function(t){var r=i.player,e=r.elements;clearTimeout(i.focusTimer),("keydown"!==t.type||9===t.which)&&("keydown"===t.type&&(i.lastKeyDown=t.timeStamp),("focus"!==t.type||t.timeStamp-i.lastKeyDown<=20)&&(function(){var t=r.config.classNames.tabFocus;bt(xt.call(r,".".concat(t)),t,!1)}(),"focusout"!==t.type&&(i.focusTimer=setTimeout((function(){var t=document.activeElement;e.container.contains(t)&&bt(document.activeElement,r.config.classNames.tabFocus,!0)}),10))))})),f(this,"global",(function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],r=i.player;r.config.keyboard.global&&St.call(r,window,"keydown keyup",i.handleKey,t,!1),St.call(r,document.body,"click",i.toggleMenu,t),At.call(r,document.body,"touchstart",i.firstTouch),St.call(r,document.body,"keydown focus blur focusout",i.setTabFocus,t,!1,!0)})),f(this,"container",(function(){var r=i.player,e=r.config,n=r.elements,o=r.timers;!e.keyboard.global&&e.keyboard.focused&&Ct.call(r,n.container,"keydown keyup",i.handleKey,!1),Ct.call(r,n.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",(function(t){var e=n.controls;e&&"enterfullscreen"===t.type&&(e.pressed=!1,e.hover=!1);var i=0;["touchstart","touchmove","mousemove"].includes(t.type)&&(gr.toggleControls.call(r,!0),i=r.touch?3e3:2e3),clearTimeout(o.controls),o.controls=setTimeout((function(){return gr.toggleControls.call(r,!1)}),i)}));var a=function(){if(r.isVimeo&&!r.config.vimeo.premium){var e=n.wrapper,i=r.fullscreen.active,o=Ht.call(r),a=t(o,2),l=a[0],s=a[1],p=qt("aspect-ratio: ".concat(l," / ").concat(s));if(i){var u=[Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)],c=t(u,2),d=c[1],h=c[0]/d>l/s;p?(e.style.width=h?"auto":"100%",e.style.height=h?"100%":"auto"):(e.style.maxWidth=h?d/s*l+"px":null,e.style.margin=h?"0 auto":null)}else p?(e.style.width=null,e.style.height=null):(e.style.maxWidth=null,e.style.margin=null)}},l=function(){clearTimeout(o.resized),o.resized=setTimeout(a,50)};Ct.call(r,n.container,"enterfullscreen exitfullscreen",(function(t){r.fullscreen.target===n.container&&(!r.isEmbed&&ot(r.config.ratio)||(a(),("enterfullscreen"===t.type?Ct:It).call(r,window,"resize",l)))}))})),f(this,"media",(function(){var t=i.player,r=t.elements;if(Ct.call(t,t.media,"timeupdate seeking seeked",(function(r){return lr.timeUpdate.call(t,r)})),Ct.call(t,t.media,"durationchange loadeddata loadedmetadata",(function(r){return lr.durationUpdate.call(t,r)})),Ct.call(t,t.media,"ended",(function(){t.isHTML5&&t.isVideo&&t.config.resetOnEnd&&(t.restart(),t.pause())})),Ct.call(t,t.media,"progress playing seeking seeked",(function(r){return lr.updateProgress.call(t,r)})),Ct.call(t,t.media,"volumechange",(function(r){return lr.updateVolume.call(t,r)})),Ct.call(t,t.media,"playing play pause ended emptied timeupdate",(function(r){return gr.checkPlaying.call(t,r)})),Ct.call(t,t.media,"waiting canplay seeked playing",(function(r){return gr.checkLoading.call(t,r)})),t.supported.ui&&t.config.clickToPlay&&!t.isAudio){var e=zt.call(t,".".concat(t.config.classNames.video));if(!tt(e))return;Ct.call(t,r.container,"click",(function(n){([r.container,e].includes(n.target)||e.contains(n.target))&&(t.touch&&t.config.hideControls||(t.ended?(i.proxy(n,t.restart,"restart"),i.proxy(n,(function(){Nt(t.play())}),"play")):i.proxy(n,(function(){Nt(t.togglePlay())}),"play")))}))}t.supported.ui&&t.config.disableContextMenu&&Ct.call(t,r.wrapper,"contextmenu",(function(t){t.preventDefault()}),!1),Ct.call(t,t.media,"volumechange",(function(){t.storage.set({volume:t.volume,muted:t.muted})})),Ct.call(t,t.media,"ratechange",(function(){lr.updateSetting.call(t,"speed"),t.storage.set({speed:t.speed})})),Ct.call(t,t.media,"qualitychange",(function(r){lr.updateSetting.call(t,"quality",null,r.detail.quality)})),Ct.call(t,t.media,"ready qualitychange",(function(){lr.setDownloadUrl.call(t)}));var n=t.config.events.concat(["keyup","keydown"]).join(" ");Ct.call(t,t.media,n,(function(e){var i=e.detail,n=void 0===i?{}:i;"error"===e.type&&(n=t.media.error),Mt.call(t,r.container,e.type,!0,n)}))})),f(this,"proxy",(function(t,r,e){var n=i.player,o=n.config.listeners[e],a=!0;K(o)&&(a=o.call(n,t)),!1!==a&&K(r)&&r.call(n,t)})),f(this,"bind",(function(t,r,e,n){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=i.player,l=a.config.listeners[n],s=K(l);Ct.call(a,t,r,(function(t){return i.proxy(t,e,n)}),o&&!s)})),f(this,"controls",(function(){var r=i.player,e=r.elements,n=st.isIE?"change":"input";if(e.buttons.play&&Array.from(e.buttons.play).forEach((function(t){i.bind(t,"click",(function(){Nt(r.togglePlay())}),"play")})),i.bind(e.buttons.restart,"click",r.restart,"restart"),i.bind(e.buttons.rewind,"click",(function(){r.lastSeekTime=Date.now(),r.rewind()}),"rewind"),i.bind(e.buttons.fastForward,"click",(function(){r.lastSeekTime=Date.now(),r.forward()}),"fastForward"),i.bind(e.buttons.mute,"click",(function(){r.muted=!r.muted}),"mute"),i.bind(e.buttons.captions,"click",(function(){return r.toggleCaptions()})),i.bind(e.buttons.download,"click",(function(){Mt.call(r,r.media,"download")}),"download"),i.bind(e.buttons.fullscreen,"click",(function(){r.fullscreen.toggle()}),"fullscreen"),i.bind(e.buttons.pip,"click",(function(){r.pip="toggle"}),"pip"),i.bind(e.buttons.airplay,"click",r.airplay,"airplay"),i.bind(e.buttons.settings,"click",(function(t){t.stopPropagation(),t.preventDefault(),lr.toggleMenu.call(r,t)}),null,!1),i.bind(e.buttons.settings,"keyup",(function(t){var e=t.which;[13,32].includes(e)&&(13!==e?(t.preventDefault(),t.stopPropagation(),lr.toggleMenu.call(r,t)):lr.focusFirstMenuItem.call(r,null,!0))}),null,!1),i.bind(e.settings.menu,"keydown",(function(t){27===t.which&&lr.toggleMenu.call(r,t)})),i.bind(e.inputs.seek,"mousedown mousemove",(function(t){var r=e.progress.getBoundingClientRect();t.currentTarget.setAttribute("seek-value",100/r.width*(t.pageX-r.left))})),i.bind(e.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",(function(t){var e=t.currentTarget,i=t.keyCode?t.keyCode:t.which,n="play-on-seeked";if(!et(t)||39===i||37===i){r.lastSeekTime=Date.now();var o=e.hasAttribute(n),a=["mouseup","touchend","keyup"].includes(t.type);o&&a?(e.removeAttribute(n),Nt(r.play())):!a&&r.playing&&(e.setAttribute(n,""),r.pause())}})),st.isIos){var o=xt.call(r,'input[type="range"]');Array.from(o).forEach((function(t){return i.bind(t,n,(function(t){return lt(t.target)}))}))}i.bind(e.inputs.seek,n,(function(t){var e=t.currentTarget,i=e.getAttribute("seek-value");ot(i)&&(i=e.value),e.removeAttribute("seek-value"),r.currentTime=i/e.max*r.duration}),"seek"),i.bind(e.progress,"mouseenter mouseleave mousemove",(function(t){return lr.updateSeekTooltip.call(r,t)})),i.bind(e.progress,"mousemove touchmove",(function(t){var e=r.previewThumbnails;e&&e.loaded&&e.startMove(t)})),i.bind(e.progress,"mouseleave touchend click",(function(){var t=r.previewThumbnails;t&&t.loaded&&t.endMove(!1,!0)})),i.bind(e.progress,"mousedown touchstart",(function(t){var e=r.previewThumbnails;e&&e.loaded&&e.startScrubbing(t)})),i.bind(e.progress,"mouseup touchend",(function(t){var e=r.previewThumbnails;e&&e.loaded&&e.endScrubbing(t)})),st.isWebkit&&Array.from(xt.call(r,'input[type="range"]')).forEach((function(t){i.bind(t,"input",(function(t){return lr.updateRangeFill.call(r,t.target)}))})),r.config.toggleInvert&&!tt(e.display.duration)&&i.bind(e.display.currentTime,"click",(function(){0!==r.currentTime&&(r.config.invertTime=!r.config.invertTime,lr.timeUpdate.call(r))})),i.bind(e.inputs.volume,n,(function(t){r.volume=t.target.value}),"volume"),i.bind(e.controls,"mouseenter mouseleave",(function(t){e.controls.hover=!r.touch&&"mouseenter"===t.type})),e.fullscreen&&Array.from(e.fullscreen.children).filter((function(t){return!t.contains(e.container)})).forEach((function(t){i.bind(t,"mouseenter mouseleave",(function(t){e.controls.hover=!r.touch&&"mouseenter"===t.type}))})),i.bind(e.controls,"mousedown mouseup touchstart touchend touchcancel",(function(t){e.controls.pressed=["mousedown","touchstart"].includes(t.type)})),i.bind(e.controls,"focusin",(function(){var t=r.config,n=r.timers;bt(e.controls,t.classNames.noTransition,!0),gr.toggleControls.call(r,!0),setTimeout((function(){bt(e.controls,t.classNames.noTransition,!1)}),0);var o=i.touch?3e3:4e3;clearTimeout(n.controls),n.controls=setTimeout((function(){return gr.toggleControls.call(r,!1)}),o)})),i.bind(e.inputs.volume,"wheel",(function(e){var i=e.webkitDirectionInvertedFromDevice,n=[e.deltaX,-e.deltaY].map((function(t){return i?-t:t})),o=t(n,2),a=o[0],l=o[1],s=Math.sign(Math.abs(a)>Math.abs(l)?a:l);r.increaseVolume(s/50);var p=r.media.volume;(1===s&&p<1||-1===s&&p>0)&&e.preventDefault()}),"volume",!1)})),this.player=e,this.lastKey=null,this.focusTimer=null,this.lastKeyDown=null,this.handleKey=this.handleKey.bind(this),this.toggleMenu=this.toggleMenu.bind(this),this.setTabFocus=this.setTabFocus.bind(this),this.firstTouch=this.firstTouch.bind(this)}return i(r,[{key:"handleKey",value:function(t){var r=this.player,e=r.elements,i=t.keyCode?t.keyCode:t.which,n="keydown"===t.type,o=n&&i===this.lastKey;if(!(t.altKey||t.ctrlKey||t.metaKey||t.shiftKey)&&J(i))if(n){var a=document.activeElement;if(tt(a)){if(a!==e.inputs.seek&&kt(a,r.config.selectors.editable))return;if(32===t.which&&kt(a,'button, [role^="menuitem"]'))return}switch([32,37,38,39,40,48,49,50,51,52,53,54,56,57,67,70,73,75,76,77,79].includes(i)&&(t.preventDefault(),t.stopPropagation()),i){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:o||(r.currentTime=r.duration/10*(i-48));break;case 32:case 75:o||Nt(r.togglePlay());break;case 38:r.increaseVolume(.1);break;case 40:r.decreaseVolume(.1);break;case 77:o||(r.muted=!r.muted);break;case 39:r.forward();break;case 37:r.rewind();break;case 70:r.fullscreen.toggle();break;case 67:o||r.toggleCaptions();break;case 76:r.loop=!r.loop}27===i&&!r.fullscreen.usingNative&&r.fullscreen.active&&r.fullscreen.toggle(),this.lastKey=i}else this.lastKey=null}},{key:"toggleMenu",value:function(t){lr.toggleMenu.call(this.player,t)}}]),r}(),mr=function(t,r){return function(t){t.exports=function(){var t=function(){},r={},e={},i={};function n(t,r){if(t){var n=i[t];if(e[t]=r,n)for(;n.length;)n[0](t,r),n.splice(0,1)}}function o(r,e){r.call&&(r={success:r}),e.length?(r.error||t)(e):(r.success||t)(r)}function a(r,e,i,n){var o,l,s=document,p=i.async,u=(i.numRetries||0)+1,c=i.before||t,d=r.replace(/[\?|#].*$/,""),h=r.replace(/^(css|img)!/,"");n=n||0,/(^css!|\.css$)/.test(d)?((l=s.createElement("link")).rel="stylesheet",l.href=h,(o="hideFocus"in l)&&l.relList&&(o=0,l.rel="preload",l.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(d)?(l=s.createElement("img")).src=h:((l=s.createElement("script")).src=r,l.async=void 0===p||p),l.onload=l.onerror=l.onbeforeload=function(t){var s=t.type[0];if(o)try{l.sheet.cssText.length||(s="e")}catch(t){18!=t.code&&(s="e")}if("e"==s){if((n+=1)<u)return a(r,e,i,n)}else if("preload"==l.rel&&"style"==l.as)return l.rel="stylesheet";e(r,s,t.defaultPrevented)},!1!==c(r,l)&&s.head.appendChild(l)}function l(t,r,e){var i,n,o=(t=t.push?t:[t]).length,l=o,s=[];for(i=function(t,e,i){if("e"==e&&s.push(t),"b"==e){if(!i)return;s.push(t)}--o||r(s)},n=0;n<l;n++)a(t[n],i,e)}function s(t,e,i){var a,s;if(e&&e.trim&&(a=e),s=(a?i:e)||{},a){if(a in r)throw"LoadJS";r[a]=!0}function p(r,e){l(t,(function(t){o(s,t),r&&o({success:r,error:e},t),n(a,t)}),s)}if(s.returnPromise)return new Promise(p);p()}return s.ready=function(t,r){return function(t,r){var n,o,a,l=[],s=(t=t.push?t:[t]).length,p=s;for(n=function(t,e){e.length&&l.push(t),--p||r(l)};s--;)(a=e[o=t[s]])?n(o,a):(i[o]=i[o]||[]).push(n)}(t,(function(t){o(r,t)})),s},s.done=function(t){n(t,[])},s.reset=function(){r={},e={},i={}},s.isDefined=function(t){return t in r},s}()}(r={exports:{}}),r.exports}();function br(t){return new Promise((function(r,e){mr(t,{success:r,error:e})}))}function wr(t){t&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===t&&(this.media.paused=!t,Mt.call(this,this.media,t?"play":"pause"))}var kr={setup:function(){var t=this;bt(t.elements.wrapper,t.config.classNames.embed,!0),t.options.speed=t.config.speed.options,Vt.call(t),Y(window.Vimeo)?kr.ready.call(t):br(t.config.urls.vimeo.sdk).then((function(){kr.ready.call(t)})).catch((function(r){t.debug.warn("Vimeo SDK (player.js) failed to load",r)}))},ready:function(){var e=this,i=this,n=i.config.vimeo,o=n.premium,a=n.referrerPolicy,s=l(n,y);o&&Object.assign(s,{controls:!1,sidedock:!1});var p=pr(r({loop:i.config.loop.active,autoplay:i.autoplay,muted:i.muted,gesture:"media",playsinline:!this.config.fullscreen.iosNative},s)),u=i.media.getAttribute("src");ot(u)&&(u=i.media.getAttribute(i.config.attributes.embed.id));var c=function(t){return ot(t)?null:J(Number(t))?t:t.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:t}(u),d=ht("iframe"),h=Jt(i.config.urls.vimeo.iframe,c,p);if(d.setAttribute("src",h),d.setAttribute("allowfullscreen",""),d.setAttribute("allow",["autoplay","fullscreen","picture-in-picture","encrypted-media","accelerometer","gyroscope"].join("; ")),ot(a)||d.setAttribute("referrerPolicy",a),o||!n.customControls)d.setAttribute("data-poster",i.poster),i.media=gt(d,i.media);else{var f=ht("div",{class:i.config.classNames.embedContainer,"data-poster":i.poster});f.appendChild(d),i.media=gt(f,i.media)}n.customControls||er(Jt(i.config.urls.vimeo.api,h)).then((function(t){!ot(t)&&t.thumbnail_url&&gr.setPoster.call(i,t.thumbnail_url).catch((function(){}))})),i.embed=new window.Vimeo.Player(d,{autopause:i.config.autopause,muted:i.muted}),i.media.paused=!0,i.media.currentTime=0,i.supported.ui&&i.embed.disableTextTrack(),i.media.play=function(){return wr.call(i,!0),i.embed.play()},i.media.pause=function(){return wr.call(i,!1),i.embed.pause()},i.media.stop=function(){i.pause(),i.currentTime=0};var v=i.media.currentTime;Object.defineProperty(i.media,"currentTime",{get:function(){return v},set:function(t){var r=i.embed,e=i.media,n=i.volume,o=i.paused&&!r.hasPlayed;e.seeking=!0,Mt.call(i,e,"seeking"),Promise.resolve(o&&r.setVolume(0)).then((function(){return r.setCurrentTime(t)})).then((function(){return o&&r.pause()})).then((function(){return o&&r.setVolume(n)})).catch((function(){}))}});var g=i.config.speed.selected;Object.defineProperty(i.media,"playbackRate",{get:function(){return g},set:function(t){i.embed.setPlaybackRate(t).then((function(){g=t,Mt.call(i,i.media,"ratechange")})).catch((function(){i.options.speed=[1]}))}});var _=i.config.volume;Object.defineProperty(i.media,"volume",{get:function(){return _},set:function(t){i.embed.setVolume(t).then((function(){_=t,Mt.call(i,i.media,"volumechange")}))}});var m=i.config.muted;Object.defineProperty(i.media,"muted",{get:function(){return m},set:function(t){var r=!!G(t)&&t;i.embed.setVolume(r?0:i.config.volume).then((function(){m=r,Mt.call(i,i.media,"volumechange")}))}});var b,w=i.config.loop;Object.defineProperty(i.media,"loop",{get:function(){return w},set:function(t){var r=G(t)?t:i.config.loop.active;i.embed.setLoop(r).then((function(){w=r}))}}),i.embed.getVideoUrl().then((function(t){b=t,lr.setDownloadUrl.call(i)})).catch((function(t){e.debug.warn(t)})),Object.defineProperty(i.media,"currentSrc",{get:function(){return b}}),Object.defineProperty(i.media,"ended",{get:function(){return i.currentTime===i.duration}}),Promise.all([i.embed.getVideoWidth(),i.embed.getVideoHeight()]).then((function(r){var n=t(r,2);i.embed.ratio=$t(n[0],n[1]),Vt.call(e)})),i.embed.setAutopause(i.config.autopause).then((function(t){i.config.autopause=t})),i.embed.getVideoTitle().then((function(t){i.config.title=t,gr.setTitle.call(e)})),i.embed.getCurrentTime().then((function(t){v=t,Mt.call(i,i.media,"timeupdate")})),i.embed.getDuration().then((function(t){i.media.duration=t,Mt.call(i,i.media,"durationchange")})),i.embed.getTextTracks().then((function(t){i.media.textTracks=t,ur.setup.call(i)})),i.embed.on("cuechange",(function(t){var r=t.cues,e=(void 0===r?[]:r).map((function(t){return function(t){var r=document.createDocumentFragment(),e=document.createElement("div");return r.appendChild(e),e.innerHTML=t,r.firstChild.innerText}(t.text)}));ur.updateCues.call(i,e)})),i.embed.on("loaded",(function(){i.embed.getPaused().then((function(t){wr.call(i,!t),t||Mt.call(i,i.media,"playing")})),tt(i.embed.element)&&i.supported.ui&&i.embed.element.setAttribute("tabindex",-1)})),i.embed.on("bufferstart",(function(){Mt.call(i,i.media,"waiting")})),i.embed.on("bufferend",(function(){Mt.call(i,i.media,"playing")})),i.embed.on("play",(function(){wr.call(i,!0),Mt.call(i,i.media,"playing")})),i.embed.on("pause",(function(){wr.call(i,!1)})),i.embed.on("timeupdate",(function(t){i.media.seeking=!1,v=t.seconds,Mt.call(i,i.media,"timeupdate")})),i.embed.on("progress",(function(t){i.media.buffered=t.percent,Mt.call(i,i.media,"progress"),1===parseInt(t.percent,10)&&Mt.call(i,i.media,"canplaythrough"),i.embed.getDuration().then((function(t){t!==i.media.duration&&(i.media.duration=t,Mt.call(i,i.media,"durationchange"))}))})),i.embed.on("seeked",(function(){i.media.seeking=!1,Mt.call(i,i.media,"seeked")})),i.embed.on("ended",(function(){i.media.paused=!0,Mt.call(i,i.media,"ended")})),i.embed.on("error",(function(t){i.media.error=t,Mt.call(i,i.media,"error")})),n.customControls&&setTimeout((function(){return gr.build.call(i)}),0)}};function xr(t){t&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===t&&(this.media.paused=!t,Mt.call(this,this.media,t?"play":"pause"))}function zr(t){return t.noCookie?"https://www.youtube-nocookie.com":"http:"===window.location.protocol?"http://www.youtube.com":void 0}var jr,Tr,Pr,Or,Sr,Cr,Ir={setup:function(){var t=this;if(bt(this.elements.wrapper,this.config.classNames.embed,!0),Y(window.YT)&&K(window.YT.Player))Ir.ready.call(this);else{var r=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=function(){K(r)&&r(),Ir.ready.call(t)},br(this.config.urls.youtube.sdk).catch((function(r){t.debug.warn("YouTube API failed to load",r)}))}},getTitle:function(t){var r=this;er(Jt(this.config.urls.youtube.api,t)).then((function(t){if(Y(t)){var e=t.height,i=t.width;r.config.title=t.title,gr.setTitle.call(r),r.embed.ratio=$t(i,e)}Vt.call(r)})).catch((function(){Vt.call(r)}))},ready:function(){var t=this,r=t.config.youtube,e=t.media&&t.media.getAttribute("id");if(ot(e)||!e.startsWith("youtube-")){var i=t.media.getAttribute("src");ot(i)&&(i=t.media.getAttribute(this.config.attributes.embed.id));var n=function(t){return ot(t)?null:t.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/)?RegExp.$2:t}(i),o=ht("div",{id:Yt(t.provider),"data-poster":r.customControls?t.poster:void 0});if(t.media=gt(o,t.media),r.customControls){var a=function(t){return"https://i.ytimg.com/vi/".concat(n,"/").concat(t,"default.jpg")};vr(a("maxres"),121).catch((function(){return vr(a("sd"),121)})).catch((function(){return vr(a("hq"))})).then((function(r){return gr.setPoster.call(t,r.src)})).then((function(r){r.includes("maxres")||(t.elements.poster.style.backgroundSize="cover")})).catch((function(){}))}t.embed=new window.YT.Player(t.media,{videoId:n,host:zr(r),playerVars:ut({},{autoplay:t.config.autoplay?1:0,hl:t.config.hl,controls:t.supported.ui&&r.customControls?0:1,disablekb:1,playsinline:t.config.fullscreen.iosNative?0:1,cc_load_policy:t.captions.active?1:0,cc_lang_pref:t.config.captions.language,widget_referrer:window?window.location.href:null},r),events:{onError:function(r){if(!t.media.error){var e=r.data;t.media.error={code:e,message:{2:"The request contains an invalid parameter value. For example, this error occurs if you specify a video ID that does not have 11 characters, or if the video ID contains invalid characters, such as exclamation points or asterisks.",5:"The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.",100:"The video requested was not found. This error occurs when a video has been removed (for any reason) or has been marked as private.",101:"The owner of the requested video does not allow it to be played in embedded players.",150:"The owner of the requested video does not allow it to be played in embedded players."}[e]||"An unknown error occured"},Mt.call(t,t.media,"error")}},onPlaybackRateChange:function(r){t.media.playbackRate=r.target.getPlaybackRate(),Mt.call(t,t.media,"ratechange")},onReady:function(e){if(!K(t.media.play)){var i=e.target;Ir.getTitle.call(t,n),t.media.play=function(){xr.call(t,!0),i.playVideo()},t.media.pause=function(){xr.call(t,!1),i.pauseVideo()},t.media.stop=function(){i.stopVideo()},t.media.duration=i.getDuration(),t.media.paused=!0,t.media.currentTime=0,Object.defineProperty(t.media,"currentTime",{get:function(){return Number(i.getCurrentTime())},set:function(r){t.paused&&!t.embed.hasPlayed&&t.embed.mute(),t.media.seeking=!0,Mt.call(t,t.media,"seeking"),i.seekTo(r)}}),Object.defineProperty(t.media,"playbackRate",{get:function(){return i.getPlaybackRate()},set:function(t){i.setPlaybackRate(t)}});var o=t.config.volume;Object.defineProperty(t.media,"volume",{get:function(){return o},set:function(r){i.setVolume(100*(o=r)),Mt.call(t,t.media,"volumechange")}});var a=t.config.muted;Object.defineProperty(t.media,"muted",{get:function(){return a},set:function(r){var e=G(r)?r:a;a=e,i[e?"mute":"unMute"](),i.setVolume(100*o),Mt.call(t,t.media,"volumechange")}}),Object.defineProperty(t.media,"currentSrc",{get:function(){return i.getVideoUrl()}}),Object.defineProperty(t.media,"ended",{get:function(){return t.currentTime===t.duration}});var l=i.getAvailablePlaybackRates();t.options.speed=l.filter((function(r){return t.config.speed.options.includes(r)})),t.supported.ui&&r.customControls&&t.media.setAttribute("tabindex",-1),Mt.call(t,t.media,"timeupdate"),Mt.call(t,t.media,"durationchange"),clearInterval(t.timers.buffering),t.timers.buffering=setInterval((function(){t.media.buffered=i.getVideoLoadedFraction(),(null===t.media.lastBuffered||t.media.lastBuffered<t.media.buffered)&&Mt.call(t,t.media,"progress"),t.media.lastBuffered=t.media.buffered,1===t.media.buffered&&(clearInterval(t.timers.buffering),Mt.call(t,t.media,"canplaythrough"))}),200),r.customControls&&setTimeout((function(){return gr.build.call(t)}),50)}},onStateChange:function(e){var i=e.target;switch(clearInterval(t.timers.playing),t.media.seeking&&[1,2].includes(e.data)&&(t.media.seeking=!1,Mt.call(t,t.media,"seeked")),e.data){case-1:Mt.call(t,t.media,"timeupdate"),t.media.buffered=i.getVideoLoadedFraction(),Mt.call(t,t.media,"progress");break;case 0:xr.call(t,!1),t.media.loop?(i.stopVideo(),i.playVideo()):Mt.call(t,t.media,"ended");break;case 1:r.customControls&&!t.config.autoplay&&t.media.paused&&!t.embed.hasPlayed?t.media.pause():(xr.call(t,!0),Mt.call(t,t.media,"playing"),t.timers.playing=setInterval((function(){Mt.call(t,t.media,"timeupdate")}),50),t.media.duration!==i.getDuration()&&(t.media.duration=i.getDuration(),Mt.call(t,t.media,"durationchange")));break;case 2:t.muted||t.embed.unMute(),xr.call(t,!1);break;case 3:Mt.call(t,t.media,"waiting")}Mt.call(t,t.elements.container,"statechange",!1,{code:e.data})}}})}}},Ar={setup:function(){this.media?(bt(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),bt(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&bt(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=ht("div",{class:this.config.classNames.video}),ct(this.media,this.elements.wrapper),this.elements.poster=ht("div",{class:this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster)),this.isHTML5?Qt.setup.call(this):this.isYouTube?Ir.setup.call(this):this.isVimeo&&kr.setup.call(this)):this.debug.warn("No media element found!")}},Mr=function(){function t(r){var e=this;o(this,t),f(this,"load",(function(){e.enabled&&(Y(window.google)&&Y(window.google.ima)?e.ready():br(e.player.config.urls.googleIMA.sdk).then((function(){e.ready()})).catch((function(){e.trigger("error",new Error("Google IMA SDK failed to load"))})))})),f(this,"ready",(function(){var t;e.enabled||((t=e).manager&&t.manager.destroy(),t.elements.displayContainer&&t.elements.displayContainer.destroy(),t.elements.container.remove()),e.startSafetyTimer(12e3,"ready()"),e.managerPromise.then((function(){e.clearSafetyTimer("onAdsManagerLoaded()")})),e.listeners(),e.setupIMA()})),f(this,"setupIMA",(function(){e.elements.container=ht("div",{class:e.player.config.classNames.ads}),e.player.elements.container.appendChild(e.elements.container),google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),google.ima.settings.setLocale(e.player.config.ads.language),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(e.player.config.playsinline),e.elements.displayContainer=new google.ima.AdDisplayContainer(e.elements.container,e.player.media),e.loader=new google.ima.AdsLoader(e.elements.displayContainer),e.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,(function(t){return e.onAdsManagerLoaded(t)}),!1),e.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,(function(t){return e.onAdError(t)}),!1),e.requestAds()})),f(this,"requestAds",(function(){var t=e.player.elements.container;try{var r=new google.ima.AdsRequest;r.adTagUrl=e.tagUrl,r.linearAdSlotWidth=t.offsetWidth,r.linearAdSlotHeight=t.offsetHeight,r.nonLinearAdSlotWidth=t.offsetWidth,r.nonLinearAdSlotHeight=t.offsetHeight,r.forceNonLinearFullSlot=!1,r.setAdWillPlayMuted(!e.player.muted),e.loader.requestAds(r)}catch(t){e.onAdError(t)}})),f(this,"pollCountdown",(function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!t)return clearInterval(e.countdownTimer),void e.elements.container.removeAttribute("data-badge-text");e.countdownTimer=setInterval((function(){var t=ar(Math.max(e.manager.getRemainingTime(),0)),r="".concat(tr("advertisement",e.player.config)," - ").concat(t);e.elements.container.setAttribute("data-badge-text",r)}),100)})),f(this,"onAdsManagerLoaded",(function(t){if(e.enabled){var r=new google.ima.AdsRenderingSettings;r.restoreCustomPlaybackStateOnAdBreakComplete=!0,r.enablePreloading=!0,e.manager=t.getAdsManager(e.player,r),e.cuePoints=e.manager.getCuePoints(),e.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,(function(t){return e.onAdError(t)})),Object.keys(google.ima.AdEvent.Type).forEach((function(t){e.manager.addEventListener(google.ima.AdEvent.Type[t],(function(t){return e.onAdEvent(t)}))})),e.trigger("loaded")}})),f(this,"addCuePoints",(function(){ot(e.cuePoints)||e.cuePoints.forEach((function(t){if(0!==t&&-1!==t&&t<e.player.duration){var r=e.player.elements.progress;if(tt(r)){var i=100/e.player.duration*t,n=ht("span",{class:e.player.config.classNames.cues});n.style.left="".concat(i.toString(),"%"),r.appendChild(n)}}}))})),f(this,"onAdEvent",(function(t){var r=e.player.elements.container,i=t.getAd(),n=t.getAdData();switch(function(t){Mt.call(e.player,e.player.media,"ads".concat(t.replace(/_/g,"").toLowerCase()))}(t.type),t.type){case google.ima.AdEvent.Type.LOADED:e.trigger("loaded"),e.pollCountdown(!0),i.isLinear()||(i.width=r.offsetWidth,i.height=r.offsetHeight);break;case google.ima.AdEvent.Type.STARTED:e.manager.setVolume(e.player.volume);break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:e.player.ended?e.loadAds():e.loader.contentComplete();break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:e.pauseContent();break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:e.pollCountdown(),e.resumeContent();break;case google.ima.AdEvent.Type.LOG:n.adError&&e.player.debug.warn("Non-fatal ad error: ".concat(n.adError.getMessage()))}})),f(this,"onAdError",(function(t){e.cancel(),e.player.debug.warn("Ads error",t)})),f(this,"listeners",(function(){var t,r=e.player.elements.container;e.player.on("canplay",(function(){e.addCuePoints()})),e.player.on("ended",(function(){e.loader.contentComplete()})),e.player.on("timeupdate",(function(){t=e.player.currentTime})),e.player.on("seeked",(function(){var r=e.player.currentTime;ot(e.cuePoints)||e.cuePoints.forEach((function(i,n){t<i&&i<r&&(e.manager.discardAdBreak(),e.cuePoints.splice(n,1))}))})),window.addEventListener("resize",(function(){e.manager&&e.manager.resize(r.offsetWidth,r.offsetHeight,google.ima.ViewMode.NORMAL)}))})),f(this,"play",(function(){var t=e.player.elements.container;e.managerPromise||e.resumeContent(),e.managerPromise.then((function(){e.manager.setVolume(e.player.volume),e.elements.displayContainer.initialize();try{e.initialized||(e.manager.init(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL),e.manager.start()),e.initialized=!0}catch(t){e.onAdError(t)}})).catch((function(){}))})),f(this,"resumeContent",(function(){e.elements.container.style.zIndex="",e.playing=!1,Nt(e.player.media.play())})),f(this,"pauseContent",(function(){e.elements.container.style.zIndex=3,e.playing=!0,e.player.media.pause()})),f(this,"cancel",(function(){e.initialized&&e.resumeContent(),e.trigger("error"),e.loadAds()})),f(this,"loadAds",(function(){e.managerPromise.then((function(){e.manager&&e.manager.destroy(),e.managerPromise=new Promise((function(t){e.on("loaded",t),e.player.debug.log(e.manager)})),e.initialized=!1,e.requestAds()})).catch((function(){}))})),f(this,"trigger",(function(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];var o=e.events[t];X(o)&&o.forEach((function(t){K(t)&&t.apply(e,i)}))})),f(this,"on",(function(t,r){return X(e.events[t])||(e.events[t]=[]),e.events[t].push(r),e})),f(this,"startSafetyTimer",(function(t,r){e.player.debug.log("Safety timer invoked from: ".concat(r)),e.safetyTimer=setTimeout((function(){e.cancel(),e.clearSafetyTimer("startSafetyTimer()")}),t)})),f(this,"clearSafetyTimer",(function(t){Q(e.safetyTimer)||(e.player.debug.log("Safety timer cleared from: ".concat(t)),clearTimeout(e.safetyTimer),e.safetyTimer=null)})),this.player=r,this.config=r.config.ads,this.playing=!1,this.initialized=!1,this.elements={container:null,displayContainer:null},this.manager=null,this.loader=null,this.cuePoints=null,this.events={},this.safetyTimer=null,this.countdownTimer=null,this.managerPromise=new Promise((function(t,r){e.on("loaded",t),e.on("error",r)})),this.load()}return i(t,[{key:"enabled",get:function(){var t=this.config;return this.player.isHTML5&&this.player.isVideo&&t.enabled&&(!ot(t.publisherId)||nt(t.tagUrl))}},{key:"tagUrl",get:function(){var t=this.config;return nt(t.tagUrl)?t.tagUrl:"https://go.aniview.com/api/adserver6/vast/?".concat(pr({AV_PUBLISHERID:"58c25bb0073ef448b1087ad6",AV_CHANNELID:"5a0458dc28a06145e4519d21",AV_URL:window.location.hostname,cb:Date.now(),AV_WIDTH:640,AV_HEIGHT:480,AV_CDIM2:t.publisherId}))}}]),t}(),Er=function(r){var e=[];return r.split(/\r\n\r\n|\n\n|\r\r/).forEach((function(r){var i={};r.split(/\r\n|\n|\r/).forEach((function(r){if(J(i.startTime)){if(!ot(r.trim())&&ot(i.text)){var e,n,o,a=r.trim().split("#xywh=");e=t(a,1),i.text=e[0],a[1]&&(n=a[1].split(","),o=t(n,4),i.x=o[0],i.y=o[1],i.w=o[2],i.h=o[3])}}else{var l=r.match(/([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})( ?--> ?)([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})/);l&&(i.startTime=60*Number(l[1]||0)*60+60*Number(l[2])+Number(l[3])+Number("0.".concat(l[4])),i.endTime=60*Number(l[6]||0)*60+60*Number(l[7])+Number(l[8])+Number("0.".concat(l[9])))}})),i.text&&e.push(i)})),e},Fr=function(t,r){var e={};return t>r.width/r.height?(e.width=r.width,e.height=1/t*r.width):(e.height=r.height,e.width=t*r.height),e},Nr=function(){function t(r){var e=this;o(this,t),f(this,"load",(function(){e.player.elements.display.seekTooltip&&(e.player.elements.display.seekTooltip.hidden=e.enabled),e.enabled&&e.getThumbnails().then((function(){e.enabled&&(e.render(),e.determineContainerAutoSizing(),e.loaded=!0)}))})),f(this,"getThumbnails",(function(){return new Promise((function(t){var r=e.player.config.previewThumbnails.src;if(ot(r))throw new Error("Missing previewThumbnails.src config attribute");var i=function(){e.thumbnails.sort((function(t,r){return t.height-r.height})),e.player.debug.log("Preview thumbnails",e.thumbnails),t()};if(K(r))r((function(t){e.thumbnails=t,i()}));else{var n=(W(r)?[r]:r).map((function(t){return e.getThumbnail(t)}));Promise.all(n).then(i)}}))})),f(this,"getThumbnail",(function(t){return new Promise((function(r){er(t).then((function(i){var n={frames:Er(i),height:null,urlPrefix:""};n.frames[0].text.startsWith("/")||n.frames[0].text.startsWith("http://")||n.frames[0].text.startsWith("https://")||(n.urlPrefix=t.substring(0,t.lastIndexOf("/")+1));var o=new Image;o.onload=function(){n.height=o.naturalHeight,n.width=o.naturalWidth,e.thumbnails.push(n),r()},o.src=n.urlPrefix+n.frames[0].text}))}))})),f(this,"startMove",(function(t){if(e.loaded&&rt(t)&&["touchmove","mousemove"].includes(t.type)&&e.player.media.duration){if("touchmove"===t.type)e.seekTime=e.player.media.duration*(e.player.elements.inputs.seek.value/100);else{var r=e.player.elements.progress.getBoundingClientRect();e.seekTime=e.player.media.duration*(100/r.width*(t.pageX-r.left)/100),e.seekTime<0&&(e.seekTime=0),e.seekTime>e.player.media.duration-1&&(e.seekTime=e.player.media.duration-1),e.mousePosX=t.pageX,e.elements.thumb.time.innerText=ar(e.seekTime)}e.showImageAtCurrentTime()}})),f(this,"endMove",(function(){e.toggleThumbContainer(!1,!0)})),f(this,"startScrubbing",(function(t){(Q(t.button)||!1===t.button||0===t.button)&&(e.mouseDown=!0,e.player.media.duration&&(e.toggleScrubbingContainer(!0),e.toggleThumbContainer(!1,!0),e.showImageAtCurrentTime()))})),f(this,"endScrubbing",(function(){e.mouseDown=!1,Math.ceil(e.lastTime)===Math.ceil(e.player.media.currentTime)?e.toggleScrubbingContainer(!1):At.call(e.player,e.player.media,"timeupdate",(function(){e.mouseDown||e.toggleScrubbingContainer(!1)}))})),f(this,"listeners",(function(){e.player.on("play",(function(){e.toggleThumbContainer(!1,!0)})),e.player.on("seeked",(function(){e.toggleThumbContainer(!1)})),e.player.on("timeupdate",(function(){e.lastTime=e.player.media.currentTime}))})),f(this,"render",(function(){e.elements.thumb.container=ht("div",{class:e.player.config.classNames.previewThumbnails.thumbContainer}),e.elements.thumb.imageContainer=ht("div",{class:e.player.config.classNames.previewThumbnails.imageContainer}),e.elements.thumb.container.appendChild(e.elements.thumb.imageContainer);var t=ht("div",{class:e.player.config.classNames.previewThumbnails.timeContainer});e.elements.thumb.time=ht("span",{},"00:00"),t.appendChild(e.elements.thumb.time),e.elements.thumb.container.appendChild(t),tt(e.player.elements.progress)&&e.player.elements.progress.appendChild(e.elements.thumb.container),e.elements.scrubbing.container=ht("div",{class:e.player.config.classNames.previewThumbnails.scrubbingContainer}),e.player.elements.wrapper.appendChild(e.elements.scrubbing.container)})),f(this,"destroy",(function(){e.elements.thumb.container&&e.elements.thumb.container.remove(),e.elements.scrubbing.container&&e.elements.scrubbing.container.remove()})),f(this,"showImageAtCurrentTime",(function(){e.mouseDown?e.setScrubbingContainerSize():e.setThumbContainerSizeAndPos();var t=e.thumbnails[0].frames.findIndex((function(t){return e.seekTime>=t.startTime&&e.seekTime<=t.endTime})),r=t>=0,i=0;e.mouseDown||e.toggleThumbContainer(r),r&&(e.thumbnails.forEach((function(r,n){e.loadedImages.includes(r.frames[t].text)&&(i=n)})),t!==e.showingThumb&&(e.showingThumb=t,e.loadImage(i)))})),f(this,"loadImage",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=e.showingThumb,i=e.thumbnails[t],n=i.urlPrefix,o=i.frames[r],a=i.frames[r].text,l=n+a;if(e.currentImageElement&&e.currentImageElement.dataset.filename===a)e.showImage(e.currentImageElement,o,t,r,a,!1),e.currentImageElement.dataset.index=r,e.removeOldImages(e.currentImageElement);else{e.loadingImage&&e.usingSprites&&(e.loadingImage.onload=null);var s=new Image;s.src=l,s.dataset.index=r,s.dataset.filename=a,e.showingThumbFilename=a,e.player.debug.log("Loading image: ".concat(l)),s.onload=function(){return e.showImage(s,o,t,r,a,!0)},e.loadingImage=s,e.removeOldImages(s)}})),f(this,"showImage",(function(t,r,i,n,o){var a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];e.player.debug.log("Showing thumb: ".concat(o,". num: ").concat(n,". qual: ").concat(i,". newimg: ").concat(a)),e.setImageSizeAndOffset(t,r),a&&(e.currentImageContainer.appendChild(t),e.currentImageElement=t,e.loadedImages.includes(o)||e.loadedImages.push(o)),e.preloadNearby(n,!0).then(e.preloadNearby(n,!1)).then(e.getHigherQuality(i,t,r,o))})),f(this,"removeOldImages",(function(t){Array.from(e.currentImageContainer.children).forEach((function(r){if("img"===r.tagName.toLowerCase()){var i=e.usingSprites?500:1e3;if(r.dataset.index!==t.dataset.index&&!r.dataset.deleting){r.dataset.deleting=!0;var n=e.currentImageContainer;setTimeout((function(){n.removeChild(r),e.player.debug.log("Removing thumb: ".concat(r.dataset.filename))}),i)}}}))})),f(this,"preloadNearby",(function(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return new Promise((function(i){setTimeout((function(){var n=e.thumbnails[0].frames[t].text;if(e.showingThumbFilename===n){var o;o=r?e.thumbnails[0].frames.slice(t):e.thumbnails[0].frames.slice(0,t).reverse();var a=!1;o.forEach((function(t){var r=t.text;if(r!==n&&!e.loadedImages.includes(r)){a=!0,e.player.debug.log("Preloading thumb filename: ".concat(r));var o=e.thumbnails[0].urlPrefix+r,l=new Image;l.src=o,l.onload=function(){e.player.debug.log("Preloaded thumb filename: ".concat(r)),e.loadedImages.includes(r)||e.loadedImages.push(r),i()}}})),a||i()}}),300)}))})),f(this,"getHigherQuality",(function(t,r,i,n){if(t<e.thumbnails.length-1){var o=r.naturalHeight;e.usingSprites&&(o=i.h),o<e.thumbContainerHeight&&setTimeout((function(){e.showingThumbFilename===n&&(e.player.debug.log("Showing higher quality thumb for: ".concat(n)),e.loadImage(t+1))}),300)}})),f(this,"toggleThumbContainer",(function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=e.player.config.classNames.previewThumbnails.thumbContainerShown;e.elements.thumb.container.classList.toggle(i,t),!t&&r&&(e.showingThumb=null,e.showingThumbFilename=null)})),f(this,"toggleScrubbingContainer",(function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=e.player.config.classNames.previewThumbnails.scrubbingContainerShown;e.elements.scrubbing.container.classList.toggle(r,t),t||(e.showingThumb=null,e.showingThumbFilename=null)})),f(this,"determineContainerAutoSizing",(function(){(e.elements.thumb.imageContainer.clientHeight>20||e.elements.thumb.imageContainer.clientWidth>20)&&(e.sizeSpecifiedInCSS=!0)})),f(this,"setThumbContainerSizeAndPos",(function(){if(e.sizeSpecifiedInCSS){if(e.elements.thumb.imageContainer.clientHeight>20&&e.elements.thumb.imageContainer.clientWidth<20){var t=Math.floor(e.elements.thumb.imageContainer.clientHeight*e.thumbAspectRatio);e.elements.thumb.imageContainer.style.width="".concat(t,"px")}else if(e.elements.thumb.imageContainer.clientHeight<20&&e.elements.thumb.imageContainer.clientWidth>20){var r=Math.floor(e.elements.thumb.imageContainer.clientWidth/e.thumbAspectRatio);e.elements.thumb.imageContainer.style.height="".concat(r,"px")}}else{var i=Math.floor(e.thumbContainerHeight*e.thumbAspectRatio);e.elements.thumb.imageContainer.style.height="".concat(e.thumbContainerHeight,"px"),e.elements.thumb.imageContainer.style.width="".concat(i,"px")}e.setThumbContainerPos()})),f(this,"setThumbContainerPos",(function(){var t=e.player.elements.progress.getBoundingClientRect(),r=e.player.elements.container.getBoundingClientRect(),i=e.elements.thumb.container,n=r.left-t.left+10,o=r.right-t.left-i.clientWidth-10,a=e.mousePosX-t.left-i.clientWidth/2;a<n&&(a=n),a>o&&(a=o),i.style.left="".concat(a,"px")})),f(this,"setScrubbingContainerSize",(function(){var t=Fr(e.thumbAspectRatio,{width:e.player.media.clientWidth,height:e.player.media.clientHeight}),r=t.height;e.elements.scrubbing.container.style.width="".concat(t.width,"px"),e.elements.scrubbing.container.style.height="".concat(r,"px")})),f(this,"setImageSizeAndOffset",(function(t,r){if(e.usingSprites){var i=e.thumbContainerHeight/r.h;t.style.height=t.naturalHeight*i+"px",t.style.width=t.naturalWidth*i+"px",t.style.left="-".concat(r.x*i,"px"),t.style.top="-".concat(r.y*i,"px")}})),this.player=r,this.thumbnails=[],this.loaded=!1,this.lastMouseMoveTime=Date.now(),this.mouseDown=!1,this.loadedImages=[],this.elements={thumb:{},scrubbing:{}},this.load()}return i(t,[{key:"enabled",get:function(){return this.player.isHTML5&&this.player.isVideo&&this.player.config.previewThumbnails.enabled}},{key:"currentImageContainer",get:function(){return this.mouseDown?this.elements.scrubbing.container:this.elements.thumb.imageContainer}},{key:"usingSprites",get:function(){return Object.keys(this.thumbnails[0].frames[0]).includes("w")}},{key:"thumbAspectRatio",get:function(){return this.usingSprites?this.thumbnails[0].frames[0].w/this.thumbnails[0].frames[0].h:this.thumbnails[0].width/this.thumbnails[0].height}},{key:"thumbContainerHeight",get:function(){return this.mouseDown?Fr(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight}).height:this.sizeSpecifiedInCSS?this.elements.thumb.imageContainer.clientHeight:Math.floor(this.player.media.clientWidth/this.thumbAspectRatio/4)}},{key:"currentImageElement",get:function(){return this.mouseDown?this.currentScrubbingImageElement:this.currentThumbnailImageElement},set:function(t){this.mouseDown?this.currentScrubbingImageElement=t:this.currentThumbnailImageElement=t}}]),t}(),Rr={insertElements:function(t,r){var e=this;W(r)?yt(t,this.media,{src:r}):X(r)&&r.forEach((function(r){yt(t,e.media,r)}))},change:function(r){var e=this;pt(r,"sources.length")?(Qt.cancelRequests.call(this),this.destroy.call(this,(function(){e.options.quality=[],ft(e.media),e.media=null,tt(e.elements.container)&&e.elements.container.removeAttribute("class");var i=r.sources,n=r.type,o=t(i,1)[0],a=o.provider,l=void 0===a?dr.html5:a,s="html5"===l?n:"div",p="html5"===l?{}:{src:o.src};Object.assign(e,{provider:l,type:n,supported:Pt.check(n,l,e.config.playsinline),media:ht(s,p)}),e.elements.container.appendChild(e.media),G(r.autoplay)&&(e.config.autoplay=r.autoplay),e.isHTML5&&(e.config.crossorigin&&e.media.setAttribute("crossorigin",""),e.config.autoplay&&e.media.setAttribute("autoplay",""),ot(r.poster)||(e.poster=r.poster),e.config.loop.active&&e.media.setAttribute("loop",""),e.config.muted&&e.media.setAttribute("muted",""),e.config.playsinline&&e.media.setAttribute("playsinline","")),gr.addStyleHook.call(e),e.isHTML5&&Rr.insertElements.call(e,"source",i),e.config.title=r.title,Ar.setup.call(e),e.isHTML5&&Object.keys(r).includes("tracks")&&Rr.insertElements.call(e,"track",r.tracks),(e.isHTML5||e.isEmbed&&!e.supported.ui)&&gr.build.call(e),e.isHTML5&&e.media.load(),ot(r.previewThumbnails)||(Object.assign(e.config.previewThumbnails,r.previewThumbnails),e.previewThumbnails&&e.previewThumbnails.loaded&&(e.previewThumbnails.destroy(),e.previewThumbnails=null),e.config.previewThumbnails.enabled&&(e.previewThumbnails=new Nr(e))),e.fullscreen.update()}),!0)):this.debug.warn("Invalid source format")}},Lr=function(){function t(r,e){var i=this;if(o(this,t),f(this,"play",(function(){return K(i.media.play)?(i.ads&&i.ads.enabled&&i.ads.managerPromise.then((function(){return i.ads.play()})).catch((function(){return Nt(i.media.play())})),i.media.play()):null})),f(this,"pause",(function(){return i.playing&&K(i.media.pause)?i.media.pause():null})),f(this,"togglePlay",(function(t){return(G(t)?t:!i.playing)?i.play():i.pause()})),f(this,"stop",(function(){i.isHTML5?(i.pause(),i.restart()):K(i.media.stop)&&i.media.stop()})),f(this,"restart",(function(){i.currentTime=0})),f(this,"rewind",(function(t){i.currentTime-=J(t)?t:i.config.seekTime})),f(this,"forward",(function(t){i.currentTime+=J(t)?t:i.config.seekTime})),f(this,"increaseVolume",(function(t){i.volume=(i.media.muted?0:i.volume)+(J(t)?t:0)})),f(this,"decreaseVolume",(function(t){i.increaseVolume(-t)})),f(this,"airplay",(function(){Pt.airplay&&i.media.webkitShowPlaybackTargetPicker()})),f(this,"toggleControls",(function(t){if(i.supported.ui&&!i.isAudio){var r=wt(i.elements.container,i.config.classNames.hideControls),e=bt(i.elements.container,i.config.classNames.hideControls,void 0===t?void 0:!t);return e&&X(i.config.controls)&&i.config.controls.includes("settings")&&!ot(i.config.settings)&&lr.toggleMenu.call(i,!1),e!==r&&Mt.call(i,i.media,e?"controlshidden":"controlsshown"),!e}return!1})),f(this,"on",(function(t,r){Ct.call(i,i.elements.container,t,r)})),f(this,"once",(function(t,r){At.call(i,i.elements.container,t,r)})),f(this,"off",(function(t,r){It(i.elements.container,t,r)})),f(this,"destroy",(function(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(i.ready){var e=function(){document.body.style.overflow="",i.embed=null,r?(Object.keys(i.elements).length&&(ft(i.elements.buttons.play),ft(i.elements.captions),ft(i.elements.controls),ft(i.elements.wrapper),i.elements.buttons.play=null,i.elements.captions=null,i.elements.controls=null,i.elements.wrapper=null),K(t)&&t()):(Et.call(i),Qt.cancelRequests.call(i),gt(i.elements.original,i.elements.container),Mt.call(i,i.elements.original,"destroyed",!0),K(t)&&t.call(i.elements.original),i.ready=!1,setTimeout((function(){i.elements=null,i.media=null}),200))};i.stop(),clearTimeout(i.timers.loading),clearTimeout(i.timers.controls),clearTimeout(i.timers.resized),i.isHTML5?(gr.toggleNativeControls.call(i,!0),e()):i.isYouTube?(clearInterval(i.timers.buffering),clearInterval(i.timers.playing),null!==i.embed&&K(i.embed.destroy)&&i.embed.destroy(),e()):i.isVimeo&&(null!==i.embed&&i.embed.unload().then(e),setTimeout(e,200))}})),f(this,"supports",(function(t){return Pt.mime.call(i,t)})),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=Pt.touch,this.media=r,W(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||Z(this.media)||X(this.media))&&(this.media=this.media[0]),this.config=ut({},cr,t.defaults,e||{},function(){try{return JSON.parse(i.media.getAttribute("data-plyr-config"))}catch(t){return{}}}()),this.elements={container:null,fullscreen:null,captions:null,buttons:{},display:{},progress:{},inputs:{},settings:{popup:null,menu:null,panels:{},buttons:{}}},this.captions={active:null,currentTrack:-1,meta:new WeakMap},this.fullscreen={active:!1},this.options={speed:[],quality:[]},this.debug=new yr(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",Pt),!Q(this.media)&&tt(this.media))if(this.media.plyr)this.debug.warn("Target already setup");else if(this.config.enabled)if(Pt.check().api){var n=this.media.cloneNode(!0);n.autoplay=!1,this.elements.original=n;var a=this.media.tagName.toLowerCase(),l=null,s=null;switch(a){case"div":if(l=this.media.querySelector("iframe"),tt(l)){if(s=sr(l.getAttribute("src")),this.provider=function(t){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(t)?dr.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(t)?dr.vimeo:null}(s.toString()),this.elements.container=this.media,this.media=l,this.elements.container.className="",s.search.length){var p=["1","true"];p.includes(s.searchParams.get("autoplay"))&&(this.config.autoplay=!0),p.includes(s.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=p.includes(s.searchParams.get("playsinline")),this.config.youtube.hl=s.searchParams.get("hl")):this.config.playsinline=!0}}else this.provider=this.media.getAttribute(this.config.attributes.embed.provider),this.media.removeAttribute(this.config.attributes.embed.provider);if(ot(this.provider)||!Object.values(dr).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type="video";break;case"video":case"audio":this.type=a,this.provider=dr.html5,this.media.hasAttribute("crossorigin")&&(this.config.crossorigin=!0),this.media.hasAttribute("autoplay")&&(this.config.autoplay=!0),(this.media.hasAttribute("playsinline")||this.media.hasAttribute("webkit-playsinline"))&&(this.config.playsinline=!0),this.media.hasAttribute("muted")&&(this.config.muted=!0),this.media.hasAttribute("loop")&&(this.config.loop.active=!0);break;default:return void this.debug.error("Setup failed: unsupported type")}this.supported=Pt.check(this.type,this.provider,this.config.playsinline),this.supported.api?(this.eventListeners=[],this.listeners=new _r(this),this.storage=new rr(this),this.media.plyr=this,tt(this.elements.container)||(this.elements.container=ht("div",{tabindex:0}),ct(this.media,this.elements.container)),gr.migrateStyles.call(this),gr.addStyleHook.call(this),Ar.setup.call(this),this.config.debug&&Ct.call(this,this.elements.container,this.config.events.join(" "),(function(t){i.debug.log("event: ".concat(t.type))})),this.fullscreen=new fr(this),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&gr.build.call(this),this.listeners.container(),this.listeners.global(),this.config.ads.enabled&&(this.ads=new Mr(this)),this.isHTML5&&this.config.autoplay&&this.once("canplay",(function(){return Nt(i.play())})),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Nr(this))):this.debug.error("Setup failed: no support")}else this.debug.error("Setup failed: no support");else this.debug.error("Setup failed: disabled by config");else this.debug.error("Setup failed: no suitable element passed")}return i(t,[{key:"isHTML5",get:function(){return this.provider===dr.html5}},{key:"isEmbed",get:function(){return this.isYouTube||this.isVimeo}},{key:"isYouTube",get:function(){return this.provider===dr.youtube}},{key:"isVimeo",get:function(){return this.provider===dr.vimeo}},{key:"isVideo",get:function(){return"video"===this.type}},{key:"isAudio",get:function(){return"audio"===this.type}},{key:"playing",get:function(){return Boolean(this.ready&&!this.paused&&!this.ended)}},{key:"paused",get:function(){return Boolean(this.media.paused)}},{key:"stopped",get:function(){return Boolean(this.paused&&0===this.currentTime)}},{key:"ended",get:function(){return Boolean(this.media.ended)}},{key:"currentTime",get:function(){return Number(this.media.currentTime)},set:function(t){if(this.duration){var r=J(t)&&t>0;this.media.currentTime=r?Math.min(t,this.duration):0,this.debug.log("Seeking to ".concat(this.currentTime," seconds"))}}},{key:"buffered",get:function(){var t=this.media.buffered;return J(t)?t:t&&t.length&&this.duration>0?t.end(0)/this.duration:0}},{key:"seeking",get:function(){return Boolean(this.media.seeking)}},{key:"duration",get:function(){var t=parseFloat(this.config.duration),r=(this.media||{}).duration,e=J(r)&&r!==1/0?r:0;return t||e}},{key:"volume",get:function(){return Number(this.media.volume)},set:function(t){var r=t;W(r)&&(r=Number(r)),J(r)||(r=this.storage.get("volume")),J(r)||(r=this.config.volume),r>1&&(r=1),r<0&&(r=0),this.config.volume=r,this.media.volume=r,!ot(t)&&this.muted&&r>0&&(this.muted=!1)}},{key:"muted",get:function(){return Boolean(this.media.muted)},set:function(t){var r=t;G(r)||(r=this.storage.get("muted")),G(r)||(r=this.config.muted),this.config.muted=r,this.media.muted=r}},{key:"hasAudio",get:function(){return!this.isHTML5||!!this.isAudio||Boolean(this.media.mozHasAudio)||Boolean(this.media.webkitAudioDecodedByteCount)||Boolean(this.media.audioTracks&&this.media.audioTracks.length)}},{key:"speed",get:function(){return Number(this.media.playbackRate)},set:function(t){var r=this,e=null;J(t)&&(e=t),J(e)||(e=this.storage.get("speed")),J(e)||(e=this.config.speed.selected),e=function(){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:255;return Math.min(Math.max(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),t)}(e,this.minimumSpeed,this.maximumSpeed),this.config.speed.selected=e,setTimeout((function(){r.media.playbackRate=e}),0)}},{key:"minimumSpeed",get:function(){return this.isYouTube?Math.min.apply(Math,a(this.options.speed)):this.isVimeo?.5:.0625}},{key:"maximumSpeed",get:function(){return this.isYouTube?Math.max.apply(Math,a(this.options.speed)):this.isVimeo?2:16}},{key:"quality",get:function(){return this.media.quality},set:function(t){var r=this.config.quality,e=this.options.quality;if(e.length){var i=[!ot(t)&&Number(t),this.storage.get("quality"),r.selected,r.default].find(J),n=!0;if(!e.includes(i)){var o=Lt(e,i);this.debug.warn("Unsupported quality option: ".concat(i,", using ").concat(o," instead")),i=o,n=!1}r.selected=i,this.media.quality=i,n&&this.storage.set({quality:i})}}},{key:"loop",get:function(){return Boolean(this.media.loop)},set:function(t){var r=G(t)?t:this.config.loop.active;this.config.loop.active=r,this.media.loop=r}},{key:"source",get:function(){return this.media.currentSrc},set:function(t){Rr.change.call(this,t)}},{key:"download",get:function(){var t=this.config.urls.download;return nt(t)?t:this.source},set:function(t){nt(t)&&(this.config.urls.download=t,lr.setDownloadUrl.call(this))}},{key:"poster",get:function(){return this.isVideo?this.media.getAttribute("poster")||this.media.getAttribute("data-poster"):null},set:function(t){this.isVideo?gr.setPoster.call(this,t,!1).catch((function(){})):this.debug.warn("Poster can only be set for video")}},{key:"ratio",get:function(){if(!this.isVideo)return null;var t=Ut(Ht.call(this));return X(t)?t.join(":"):t},set:function(t){this.isVideo?W(t)&&Dt(t)?(this.config.ratio=Ut(t),Vt.call(this)):this.debug.error("Invalid aspect ratio specified (".concat(t,")")):this.debug.warn("Aspect ratio can only be set for video")}},{key:"autoplay",get:function(){return Boolean(this.config.autoplay)},set:function(t){var r=G(t)?t:this.config.autoplay;this.config.autoplay=r}},{key:"toggleCaptions",value:function(t){ur.toggle.call(this,t,!1)}},{key:"currentTrack",get:function(){var t=this.captions;return t.toggled?t.currentTrack:-1},set:function(t){ur.set.call(this,t,!1)}},{key:"language",get:function(){return(ur.getCurrentTrack.call(this)||{}).language},set:function(t){ur.setLanguage.call(this,t,!1)}},{key:"pip",get:function(){return Pt.pip?ot(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:"picture-in-picture"===this.media.webkitPresentationMode:null},set:function(t){if(Pt.pip){var r=G(t)?t:!this.pip;K(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(r?"picture-in-picture":"inline"),K(this.media.requestPictureInPicture)&&(!this.pip&&r?this.media.requestPictureInPicture():this.pip&&!r&&document.exitPictureInPicture())}}}],[{key:"supported",value:function(t,r,e){return Pt.check(t,r,e)}},{key:"loadSprite",value:function(t,r){return ir(t,r)}},{key:"setup",value:function(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null;return W(r)?i=Array.from(document.querySelectorAll(r)):Z(r)?i=Array.from(r):X(r)&&(i=r.filter(tt)),ot(i)?null:i.map((function(r){return new t(r,e)}))}}]),t}();function qr(t){t.on("timeupdate",(function(){return function(t){var r,e;null!=t&&null!==(r=t.config)&&void 0!==r&&null!==(e=r.mutedPreview)&&void 0!==e&&e.enabled||function(t){var r;0!==t.currentTime&&null!=t&&null!==(r=t.config)&&void 0!==r&&r.save_player_position&&localStorage.setItem("player-progress-".concat(Br(t)),t.currentTime)}(t)}(t)})),t.on("ready",(function(){return Dr(t)})),t.on("loadeddata",(function(){return Dr(t)}))}function Br(t){var r,e;return null==t||null===(r=t.config)||void 0===r||null===(e=r.blockAttributes)||void 0===e?void 0:e.id}function Dr(t){var r,e,i;if(null!=t&&null!==(r=t.config)&&void 0!==r&&r.save_player_position&&(null==t||null===(e=t.config)||void 0===e||null===(i=e.mutedPreview)||void 0===i||!i.enabled)){var n=function(t){return parseFloat(localStorage.getItem("player-progress-".concat(Br(t))))}(t);return t.hls&&n>=0&&t.hls.startLoad(n),t.duration&&(n=Math.min(n,t.duration)),!n||n<1?0:(t.currentTime=n,null!=t&&t.isVimeo&&setTimeout((function(){t.embed.setCurrentTime(n||0)}),0),n)}}Lr.defaults=JSON.parse(JSON.stringify(cr));var Ur=(null===(jr=window)||void 0===jr||null===(Tr=jr.prestoPlayer)||void 0===Tr||null===(Pr=Tr.i18n)||void 0===Pr?void 0:Pr.hide_chapters)||"Hide Chapters",Hr=(null===(Or=window)||void 0===Or||null===(Sr=Or.prestoPlayer)||void 0===Sr||null===(Cr=Sr.i18n)||void 0===Cr?void 0:Cr.show_chapters)||"Show Chapters";const Vr='<button class="plyr__controls__item plyr__control" type="button" data-plyr="chapters">\n<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" class="feather feather-list">\n <line x1="8" y1="6" x2="21" y2="6"></line><line x1="8" y1="12" x2="21" y2="12"></line>\n <line x1="8" y1="18" x2="21" y2="18"></line><line x1="3" y1="6" x2="3.01" y2="6"></line>\n <line x1="3" y1="12" x2="3.01" y2="12"></line><line x1="3" y1="18" x2="3.01" y2="18"></line>\n</svg>\n<span class="label--pressed plyr__tooltip" role="tooltip">'.concat(Ur,'</span>\n<span class="label--not-pressed plyr__tooltip" role="tooltip">').concat(Hr,"</span>\n</button>\n");var $r,Qr,Yr;const Jr='\n<div class="presto-player-toc__wrapper">\n <div class="presto-player-toc__cover" data-player-toc-cover></div>\n <div class="presto-player-toc">\n <div class="presto-player-toc__title">'.concat((null===($r=window)||void 0===$r||null===(Qr=$r.prestoPlayer)||void 0===Qr||null===(Yr=Qr.i18n)||void 0===Yr?void 0:Yr.chapters)||"Chapters",'</div>\n <div class="presto-player-toc__list" data-player-toc></div>\n </div>\n</div>');function Wr(t){var r,e,i,o,l,s,p,u,c,d,h,y,f,v=0,g={},_=null,m=0;if(i=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!t.length)return t;var r={};return t.forEach((function(t){var e,i=t.time.split(":");i.length>1&&(e=60*parseInt(i[0])),r[parseInt(i[1])+parseInt(e)]=t})),r}((null===(r=o=t.detail.plyr)||void 0===r||null===(e=r.config)||void 0===e?void 0:e.chapters)||[]),"html5"!==o.provider||o.duration){if(i&&Object.keys(i).length){l=jQuery(o.elements.container).closest(".presto-player__wrapper").find(".plyr");var b=(f=jQuery(o.elements.controls)).find(".plyr__time");b=b.length?b:f.find(".plyr__progress__container"),(c=l.find('[data-plyr="chapters"]')).length||(c=jQuery(Vr).insertAfter(b)),(p=l.find(".presto-player-toc__wrapper")).length||(p=jQuery(Jr).appendTo(l)),d=p.find("[data-player-toc-cover]"),u=p.find("[data-player-toc]"),s=l.find(".plyr__progress__container");var w,k=jQuery('<div class="presto-player__chapters"></div>').appendTo(s);h=jQuery('<div class="presto-player__chapter-markers"></div>').appendTo(k),w=0,u.find(".presto-player-toc__chapter").length||(Object.keys(i).forEach((function(t){w++;var r=jQuery(function(t){var r=t.name,e=void 0===r?"Untitled":r,i=t.order,n=void 0===i?1:i,o=t.highlight;return'<div class="presto-player-toc__chapter '.concat(void 0!==o&&o?"is-highlighted":"",'" data-chapter-item>\n \n <span class="presto-player-toc__order">\n ').concat(n,'\n </span>\n <span class="presto-player-toc__name">\n ').concat(e,"\n </div>\n</div>")}({name:i[t].title,order:w})).appendTo(u);r.data("presto-player-timestamp",t),g[t]=r,r.on("click",(function(){o.currentTime=parseFloat(t),o.play(),j(!1)}))})),y=p.find("[data-chapter-item]")),z(),c.off("click"),c.on("click",j),x(),o.off("timeupdate"),o.on("timeupdate",x),_=window.setInterval((function(){m++,o.duration&&(z(),window.clearInterval(_)),m>50&&window.clearInterval(_)}),100),d.off("click"),d.on("click",(function(){return j(!1)})),u.off("mouseleave"),u.on("mouseleave",(function t(){if(o.playing){var r=setTimeout((function(){j(!1),u.off("mouseleave",t)}),2e3);u.on("mouseenter",(function(){clearTimeout(r)}))}}))}}else o.on("loadedmetadata",Wr);function x(){v=o.currentTime;var t=Object.keys(i).filter((function(t){return t<=v})).map((function(t){return parseInt(t,10)})),r=Math.max.apply(Math,a(t));y&&y.removeClass("is-highlighted"),jQuery(g[r||0]).addClass("is-highlighted")}function z(){o.duration&&(Object.keys(i).forEach((function(t){if(parseInt(t)&&!h.find("[data-timestamp=".concat(t,"]")).length){var r,e,n,a,l=i[t],s=parseInt(t)/o.duration*100,p=jQuery((r={position:s,name:"".concat(l.title)},e=r.position,n=r.name,a=void 0===n?"":n,'<div class="presto-player-progress__marker plyr__controls__item plyr__control" style="left: '.concat(void 0===e?0:e,'%" data-timeline-marker>\n <span class="label--not-pressed plyr__tooltip" role="tooltip">').concat(a,"</span>\n </div>"))).prependTo(h);p.attr("data-timestamp",t),p.data("timestamp",t),p.on("click",(function(){o.currentTime=parseInt(t),o.play()}))}})),p.find("[data-timeline-marker]"))}function j(t){void 0!==n(t)?p.toggleClass("is-showing",t):p.toggleClass("is-showing")}}var Gr;function Kr(t){Gr=t,jQuery(Gr.elements.container).closest(".presto-player__wrapper"),Gr.on("ready",Wr),Gr.on("controlshidden",Xr),Gr.on("controlsshown",Zr)}function Xr(t){var r,e,i;jQuery(null==t||null===(r=t.detail)||void 0===r||null===(e=r.plyr)||void 0===e||null===(i=e.elements)||void 0===i?void 0:i.container).closest(".presto-player__wrapper").addClass("presto-player--hide-controls")}function Zr(t){var r,e,i;jQuery(null==t||null===(r=t.detail)||void 0===r||null===(e=r.plyr)||void 0===e||null===(i=e.elements)||void 0===i?void 0:i.container).closest(".presto-player__wrapper").removeClass("presto-player--hide-controls")}function te(t){var e,i;return r(r(r({video_current_time:parseInt((null==t?void 0:t.currentTime)||0),video_provider:(null==t?void 0:t.provider)||"html5"},null!=t&&t.duration?{video_duration:parseInt(null==t?void 0:t.duration)}:{}),null!=t&&t.source?{video_url:null==t?void 0:t.source}:{}),null!=t&&null!==(e=t.config)&&void 0!==e&&e.title?{video_title:null==t||null===(i=t.config)||void 0===i?void 0:i.title}:{})}function re(t){var r;null===(r=window)||void 0===r||r.gtag("event","Play",te(t))}function ee(t){var r;null===(r=window)||void 0===r||r.gtag("event","Pause",te(t))}function ie(t){var r;null===(r=window)||void 0===r||r.gtag("event","Player Load",te(t))}var ne,oe={25:!1,50:!1,75:!1,100:!1};function ae(t){if(t.currentTime){var r=parseFloat(t.currentTime)/parseFloat(t.duration)*100;Object.keys(oe).forEach((function(e){var i;!oe[e]&&r>=parseInt(e)&&(oe[e]=!0,null===(i=window)||void 0===i||i.gtag("event","".concat(e," Percent Played"),te(t)))}))}}var le="presto-player.analytics",se="";function pe(t){(ne=t).config.analytics&&(wp.hooks.hasAction("presto.nonceRefreshed",le)||wp.hooks.addAction("presto.nonceRefreshed",le,(function(t){se=t})),wp.hooks.hasAction("presto.playerPlay",le)||wp.hooks.addAction("presto.playerPlay",le,ue),wp.hooks.hasAction("presto.playerEnded",le)||wp.hooks.addAction("presto.playerEnded",le,ue),wp.hooks.hasAction("presto.playerHidden",le)||wp.hooks.addAction("presto.playerHidden",le,ue),wp.hooks.hasAction("presto.playerPause",le)||wp.hooks.addAction("presto.playerPause",le,ue),wp.hooks.hasAction("presto.playerSeeked",le)||wp.hooks.addAction("presto.playerSeeked",le,ue))}function ue(t){ce(function(t){var e,i;return r(r(r({video_current_time:parseInt((null==t?void 0:t.currentTime)||0),video_provider:(null==t?void 0:t.provider)||"html5"},null!=t&&t.duration?{video_duration:parseInt(null==t?void 0:t.duration)}:{}),null!=t&&t.source?{video_url:null==t?void 0:t.source}:{}),null!=t&&null!==(e=t.config)&&void 0!==e&&e.title?{video_title:null==t||null===(i=t.config)||void 0===i?void 0:i.title}:{})}(t))}function ce(t){var r,e,i,n,o,a,l,s;if(se){var p,u,c=new FormData;c.append("action","presto_player_progress"),c.append("duration",null==t?void 0:t.video_current_time),c.append("video_id",null===(r=ne)||void 0===r||null===(e=r.config)||void 0===e?void 0:e.id),c.append("nonce",se),null!==(i=window)&&void 0!==i&&null!==(n=i.prestoPlayer)&&void 0!==n&&n.debug_navigator?jQuery.ajax({type:"POST",url:null===(o=window)||void 0===o||null===(a=o.prestoPlayer)||void 0===a?void 0:a.ajaxurl,dataType:"json",cache:!1,data:{action:"presto_player_progress",duration:null==t?void 0:t.video_current_time,video_id:null===(l=ne)||void 0===l||null===(s=l.config)||void 0===s?void 0:s.id,nonce:se}}):navigator.sendBeacon(null===(p=window)||void 0===p||null===(u=p.prestoPlayer)||void 0===u?void 0:u.ajaxurl,c)}}function de(t){var r,e;null!==(r=window)&&void 0!==r&&null!==(e=r.prestoPlayer)&&void 0!==e&&e.isPremium&&(function(){var t;null!==(t=window)&&void 0!==t&&t.gtag&&(wp.hooks.addAction("presto.playerPlay","presto-player",re),wp.hooks.addAction("presto.playerPause","presto-player",ee),wp.hooks.addAction("presto.playerReady","presto-player",ie),wp.hooks.addAction("presto.playerTimeUpdate","presto-player",ae))}(),pe(t))}const he=function(t){t.on("ready",(function(){var r,e,i,n;null==t||null===(r=t.config)||void 0===r||!r.logo||null!=t&&null!==(e=t.config)&&void 0!==e&&e.logo_added||(jQuery('<img src="'.concat(null==t||null===(i=t.config)||void 0===i?void 0:i.logo,'" class="presto-player__logo is-bottom-right" part="logo">')).insertBefore(null==t||null===(n=t.elements)||void 0===n?void 0:n.controls),t.config.logo_added=!0)}))};function ye(t){var r;null!=t&&null!==(r=t.config)&&void 0!==r&&r.poster&&(t.poster=t.config.poster)}const fe=function(t){t.on("ready",(function(){ve("Ready",t)})),t.on("play",(function(){ve("Play",t)})),t.on("playing",(function(){ve("Playing",t)})),t.on("pause",(function(){ve("Pause",t)})),t.on("ended",(function(){ve("Ended",t)})),t.on("seeked",(function(){ve("Seeked",t)})),t.on("timeupdate",(function(){ve("TimeUpdate",t)})),t.on("enterfullscreen",(function(){ve("EnterFullScreen",t)})),t.on("exitfullscreen",(function(){ve("ExitFullScreen",t)})),document.addEventListener("visibilitychange",(function(){ve("hidden"===document.visibilityState?"Hidden":"Visible",t)})),t.on("statechange",(function(r){var e;switch(null==r||null===(e=r.detail)||void 0===e?void 0:e.code){case 0:ve("Ended",t);break;case 1:ve("Play",t);break;case 2:ve("Pause",t)}}))};function ve(t,r){window.wp.hooks.doAction("presto.player".concat(t),r)}let ge,_e=Date.now();const me=t=>{var r,e;if(!t.automations)return;(null===(e=null===(r=null===window||void 0===window?void 0:window.wp)||void 0===r?void 0:r.hooks)||void 0===e?void 0:e.hasAction("presto.nonceRefreshed","presto-player.progress"))||window.wp.hooks.addAction("presto.nonceRefreshed","presto-player.progress",(t=>{ge=t})),null===window||void 0===window||window.wp.hooks.addAction("presto.playerTimeUpdate","presto-player",n),null===window||void 0===window||window.wp.hooks.addAction("presto.playerEnded","presto-player",(t=>n(t,100)));let i={0:!1,10:!1,20:!1,30:!1,40:!1,50:!1,60:!1,70:!1,80:!1,90:!1,100:!1};function n(t,r=null){var e;ge&&(null===(e=null==t?void 0:t.config)||void 0===e?void 0:e.ajaxProgress)&&(r||(r=parseFloat(t.currentTime)/parseFloat(t.duration)*100),t.watched=t.watched||{},Object.keys(i).forEach((e=>{var i,n,o,a,l,s,p,u,c;const d=parseInt(e);if(!t.watched[d]&&r>=d){t.watched[d]=!0;let r=new FormData;if(r.append("action","presto_player_progress_percent"),r.append("id",null===(i=null==t?void 0:t.config)||void 0===i?void 0:i.id),r.append("percent",d.toString()),r.append("visit_time",_e.toString()),r.append("nonce",ge),(null===(n=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===n?void 0:n.debug)&&console.log(`${d} percent watched.`),null===(o=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===o?void 0:o.debug_navigator)window.jQuery.ajax({type:"POST",url:null===(u=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===u?void 0:u.ajaxurl,dataType:"json",cache:!1,data:{action:"presto_player_progress_percent",id:null===(c=null==t?void 0:t.config)||void 0===c?void 0:c.id,visit_time:_e,percent:d,nonce:ge}});else{let e=navigator.sendBeacon(null===(a=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===a?void 0:a.ajaxurl,r);(null===(l=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===l?void 0:l.debug)&&(e?console.log("Successfully queued progress:",{id:null===(s=null==t?void 0:t.config)||void 0===s?void 0:s.id,percent:d,visit_time:_e,nonce:ge}):console.log("Failed to queue progress",{id:null===(p=null==t?void 0:t.config)||void 0===p?void 0:p.id,percent:d,visit_time:_e,nonce:ge}))}}})))}};let be=!1,we=!1;function ke(t){return t.status>=200&&t.status<300?Promise.resolve(t):Promise.reject(new Error(t.statusText))}const xe=t=>{var r,e;(t.config.analytics||t.config.automations)&&(null===(e=null===(r=null===window||void 0===window?void 0:window.wp)||void 0===r?void 0:r.hooks)||void 0===e||e.addAction("presto.playerPlaying","presto-player",(()=>{null===window||void 0===window||window.wp.hooks.doAction("presto.playerGetNonce")})),null===window||void 0===window||window.wp.hooks.addAction("presto.playerGetNonce","presto-player",(()=>{var t;be||we||(we=!0,fetch(`${null===(t=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===t?void 0:t.ajaxurl}?action=presto_refresh_progress_nonce`).then(ke).then((t=>t.json())).then((({data:t})=>{null===window||void 0===window||window.wp.hooks.doAction("presto.nonceRefreshed",t),be=!0})).catch((function(t){console.log("Request failed",t)})).finally((()=>{we=!1})))})))},ze=function(t){var r=window.navigator.userAgent;if(r.match(/iPad/i)||r.match(/iPhone/i)){var e=function(t,r){for(var e,i,n,o=null==t||null===(e=t.elements)||void 0===e||null===(i=e.container)||void 0===i||null===(n=i.getRootNode())||void 0===n?void 0:n.host;(null!=o?o.nodeType:void 0)===Node.ELEMENT_NODE&&"BODY"!==o.tagName&&"HTML"!==o.tagName;)r?o.classList.add("presto-player-fullscreen-open"):o.classList.remove("presto-player-fullscreen-open"),o=o.parentNode};wp.hooks.addAction("presto.playerEnterFullScreen","presto-player",(function(){var r;null!=t&&null!==(r=t.fullscreen)&&void 0!==r&&r.active&&e(t,!0)})),wp.hooks.addAction("presto.playerExitFullScreen","presto-player",(function(){var r;null!=t&&null!==(r=t.fullscreen)&&void 0!==r&&r.active||e(t,!1)}))}},je=function(){var t=s(regeneratorRuntime.mark((function t(r){var e,i,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("ResizeObserver"in window!=0){t.next=5;break}return t.next=3,import("./p-58f5339e.js");case 3:window.ResizeObserver=t.sent.ResizeObserver;case 5:if(n=new ResizeObserver((function(t){var r,e=p(t);try{for(e.s();!(r=e.n()).done;){var i=r.value,n=i.contentRect;jQuery(i.target).find(".plyr__menu__container").css({maxHeight:"".concat(n.height-48,"px")})}}catch(t){e.e(t)}finally{e.f()}})),null!=r&&null!==(e=r.elements)&&void 0!==e&&e.container){t.next=8;break}return t.abrupt("return");case 8:n.observe(null==r||null===(i=r.elements)||void 0===i?void 0:i.container),r.on("playing",(function(){var t,e,i=null==r||null===(t=r.elements)||void 0===t?void 0:t.container.getBoundingClientRect();jQuery(null==r||null===(e=r.elements)||void 0===e?void 0:e.container).find(".plyr__menu__container").css({maxHeight:"".concat(i.height-48,"px")})}));case 10:case"end":return t.stop()}}),t)})));return function(r){return t.apply(this,arguments)}}();function Te(t){var e,i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r(r(r({},n),{iconUrl:"".concat(null===(e=window)||void 0===e||null===(i=e.prestoPlayer)||void 0===i?void 0:i.plugin_url,"img/sprite.svg")}),{chapters:(null==n?void 0:n.chapters)||[],controls:(null==n?void 0:n.controls)||[],settings:Object.keys((null==n?void 0:n.settings)||{}).length?n.settings:{}}),a=new Lr(t,o);return"undefined"!=typeof learndash_video_data&&import("./p-e540de9d.js").then((function(t){(0,t.default)(a)})),"undefined"!=typeof _tutorobject&&import("./p-f0bc72f2.js").then((function(t){(0,t.default)(a)})),fe(a),ze(a),je(a),he(a),ye(a),Kr(a),prestoPlayer.isAdmin||(xe(a),me(o),qr(a),de(a)),a}function Pe(t){return"m3u8"===function(t){return t.split(/[#?]/)[0].split(".").pop().trim()}(t)}const Oe=class{constructor(t){u(this,t),this.previouslyPlaying=!1}async play(){return this.shouldLazyLoad=!1,this.player.play()}async restart(){return this.shouldLazyLoad=!1,this.player.restart()}async pause(){return this.player.pause()}async stop(){return this.player.stop()}async fullscreenToggle(t){return this.player.fullscreen.toggle(t)}async on(t,r){return this.player.on(t,r)}async off(t,r){return this.player.off(t,r)}handleStickyChange(){(function(t){for(var r=[];t.parentNode&&"body"!=t.parentNode.nodeName.toLowerCase();)r.push(t=t.parentNode);return r})(this.el).forEach((t=>{t.classList.toggle("presto-sticky-parent",this.isSticky)}))}getConfig(){return Object.assign(Object.assign({},function({preset:t={},chapters:r,branding:e,src:i,analytics:n,automations:o,autoplay:a,blockAttributes:l={},provider:s="",provider_video_id:p="",youtube:u,type:c,isAdmin:d,i18n:h,storage:y={enabled:!d,key:`presto-player-${t.id}`}}){var f,v,g,_;const m=["settings"],b=[...["youtube","vimeo"].includes(s)?["pip"]:[]],w=["play-large","rewind","play","fast-forward","progress","current-time","mute","volume","captions","settings","pip","fullscreen"].filter((r=>((null==t?void 0:t[r])||m.includes(r))&&!b.includes(r)));(null===(f=null==l?void 0:l.mutedPreview)||void 0===f?void 0:f.enabled)&&(y={enabled:!1});let k=Object.assign(Object.assign(Object.assign(Object.assign({id:null==l?void 0:l.id,title:(null==l?void 0:l.title)||"",blockAttributes:Object.assign(Object.assign({},l),{type:c}),src:i,ajaxProgress:!0,analytics:n,automations:o,mutedPreview:{enabled:null===(v=null==l?void 0:l.mutedPreview)||void 0===v?void 0:v.enabled},chapters:r,controls:w,settings:["captions","quality","loop",...(null==t?void 0:t.speed)?["speed"]:[]],hideControls:null==t?void 0:t.auto_hide,captions:{active:null==t?void 0:t.captions_enabled,language:"auto",update:!1},logo:null==e?void 0:e.logo,logo_width:null==e?void 0:e.logo_width,hide_logo:null==t?void 0:t.hide_logo,lazy_load_youtube:null==t?void 0:t.lazy_load_youtube,save_player_position:!!(null==t?void 0:t.save_player_position),sticky_scroll:null==t?void 0:t.sticky_scroll,play_video_viewport:null==t?void 0:t.play_video_viewport,autoplay:!(!a||(null===(g=window.wp)||void 0===g?void 0:g.blocks))},s?{provider:s}:{}),p?{provider_video_id:p}:{}),(null==l?void 0:l.poster)?{poster:l.poster}:{}),{invertTime:!0,storage:y,resetOnEnd:!!(null==t?void 0:t.reset_on_end),vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1,customControls:!0,premium:!1,playsinline:!!(null==l?void 0:l.playsInline)},youtube:{rel:0,showinfo:0,iv_load_policy:3,modestbranding:1,customControls:!0,noCookie:!!(null==u?void 0:u.noCookie),playsinline:!!(null==l?void 0:l.playsInline)},tooltips:{controls:!0,seek:!0},i18n:h});return(null===(_=null===window||void 0===window?void 0:window.wp)||void 0===_?void 0:_.hooks)&&(k=window.wp.hooks.applyFilters("presto.playerSettings",k)),k}({preset:this.preset,chapters:this.chapters,branding:this.branding,analytics:!!this.analytics,automations:!!this.automations,autoplay:!this.isAdmin&&!!this.autoplay,blockAttributes:this.blockAttributes,provider:this.provider,youtube:this.youtube,provider_video_id:this.provider_video_id,i18n:this.i18n})),this.iconUrl?{iconUrl:this.iconUrl}:{})}getPlayerData(){return{selector:this.playerEl,src:this.src||"",preload:this.preload,provider:this.provider,config:this.getConfig(),isAdmin:this.isAdmin}}async createPlayer(){return await(t=this.getPlayerData(),e=t.config,i=t.selector,n=t.src,o=t.preload,n&&Pe(n)?import("./p-444b9e4f.js").then((function(t){return(0,t.default)({config:e,selector:i,src:n,preload:o})})):new Promise((function(t){return t(new Te(i,r({},e)))})));var t,e,i,n,o}handlePlayerElementChange(){(({src:t,el:r,preload:e,currentTime:i})=>{if(!r.getAttribute("hls_loaded")&&["metadata","none"].includes(e)&&Pe(t)){if(i>0)return r.style.height=null,r.style.paddingBottom=null,void r.setAttribute("hls_loaded","1");r.style.height="0px",r.style.paddingBottom="56.25%"}})({src:this.src,el:this.playerEl,preload:this.preload,currentTime:this.currentTime})}handleMutedPreview(t){var r,e,i,n,o,a,l;this.player&&!this.isAdmin&&(!t&&this.preset.captions_enabled&&setTimeout((()=>{var t;this.player.toggleCaptions(null===(t=null==this?void 0:this.preset)||void 0===t?void 0:t.captions_enabled)}),0),(null===(i=null===(e=null===(r=this.originalConfig)||void 0===r?void 0:r.blockAttributes)||void 0===e?void 0:e.mutedPreview)||void 0===i?void 0:i.enabled)&&(({player:t,mutedPreview:r,captions:e,progress:i,savePosition:n,onPlay:o})=>{var a=window.navigator.userAgent;if(!a.match(/iPad/i)&&!a.match(/iPhone/i)){t.config.mutedPreview.enabled=r,t.muted=r,t.loop=r,t.config.ajaxProgress=!r&&i,t.config.save_player_position=!r&&n;try{t.toggleCaptions(!!r&&!!e)}catch(t){}return setTimeout((()=>{Dr(t)||t.restart(),setTimeout((()=>{t.muted=r,o()}),0)}),0),t}console.log("ios device, do not do muted autoplay")})({player:this.player,mutedPreview:this.mutedPreview,captions:!!(null===(o=null===(n=this.blockAttributes)||void 0===n?void 0:n.mutedPreview)||void 0===o?void 0:o.captions),progress:null===(a=this.originalConfig)||void 0===a?void 0:a.ajaxProgress,savePosition:null===(l=this.originalConfig)||void 0===l?void 0:l.save_player_position,onPlay:()=>this.play()}))}onPlayerReady(){var t,r;this.observer&&(this.observer.disconnect(),this.observer.observe(this.el)),this.currentTime=this.player.currentTime,this.duration=this.player.duration,this.mutedPreview=null===(r=null===(t=this.blockAttributes)||void 0===t?void 0:t.mutedPreview)||void 0===r?void 0:r.enabled,this.player.on("timeupdate loadedmetadata",(()=>{this.currentTime=this.player.currentTime,this.duration=this.player.duration})),this.player.on("playing",(()=>this.playClass="presto-player--playing")),this.player.on("pause",(()=>this.playClass="presto-player--paused")),this.player.on("ended",(()=>this.playClass="presto-player--ended"))}handlePlayerEvents(t){t.on("ready",(t=>{this.player=t.detail.plyr,this.onPlayerReady()}))}handleLazyLoadChange(){"youtube"!==this.provider||this.shouldLazyLoad||this.isAdmin||setTimeout((()=>{this.onReload("play")}),50)}shouldLazyLoadVideo(){var t,r,e;return"youtube"===this.provider&&!this.autoplay&&!(null===(r=null===(t=this.blockAttributes)||void 0===t?void 0:t.mutedPreview)||void 0===r?void 0:r.enabled)&&!!(null===(e=this.preset)||void 0===e?void 0:e.lazy_load_youtube)}componentWillLoad(){var t,r;const e=null===(t=this.el.children)||void 0===t?void 0:t[0];e&&e.classList&&e.classList.contains("presto-iframe-fallback-container")&&e.remove(),this.shouldLazyLoad=this.shouldLazyLoadVideo(),this.i18n=null===(r=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===r?void 0:r.i18n,this.originalConfig||(this.originalConfig=this.getConfig()),this.trackIntersection()}async componentDidLoad(){setTimeout((()=>{this.initialize()}),0)}async initialize(){const t=await this.createPlayer();return this.handlePlayerEvents(t),this.syncVideoHeight(),((t,r)=>{if(!r)return;const e=document.createElement("style");t.shadowRoot.append(e),e.appendChild(document.createTextNode(r))})(this.el,this.css),t}async onReload(t){const r=await this.initialize();"play"==t&&r.on("ready",(()=>{this.play(),r.muted=!0,r.muted=!1,r.off("ready",this.play)}))}async syncVideoHeight(){if("ResizeObserver"in window==0){const t=await import("./p-58f5339e.js");window.ResizeObserver=t.ResizeObserver}new ResizeObserver((()=>{this.isSticky||(this.videoHeight=this.el.getBoundingClientRect().height)})).observe(this.el)}playVideoOnlyInViewport(){var t;!this.isAdmin&&(null===(t=this.preset)||void 0===t?void 0:t.play_video_viewport)&&this.player&&("visible"===document.visibilityState?this.observer.observe(this.el):(this.player.playing&&(this.previouslyPlaying=!0),this.pause(),this.observer.disconnect()))}trackIntersection(){this.observer=new IntersectionObserver((t=>{this.handleVisibilityIntersection(null==t?void 0:t[0])})),this.observer.observe(this.el)}handleVisibilityIntersection(t){t&&(this.handleStickyScroll(t),this.handleVisibilityPlayChange(t))}handleStickyScroll(t){var r,e;if(!(null===(r=this.preset)||void 0===r?void 0:r.sticky_scroll))return;if(this.isAdmin||this.mutedPreview||!(null===(e=null==this?void 0:this.player)||void 0===e?void 0:e.playing))return void(this.isSticky=!1);let i=t.boundingClientRect;if(this.isSticky=i.height<-i.top,"visible"===document.visibilityState&&this.isSticky&&this.player){const t=()=>{window.removeEventListener("scroll",t),this.player.paused&&(this.isSticky=!1)};this.player.once("pause",(()=>{window.addEventListener("scroll",t)}))}}handleVisibilityPlayChange(t){var r;if(!this.isAdmin&&(null===(r=this.preset)||void 0===r?void 0:r.play_video_viewport)&&(!this.player&&this.originalConfig.autoplay&&(this.previouslyPlaying=!0,this.autoplay=!!(null==t?void 0:t.isIntersecting)),this.player))return(null==t?void 0:t.isIntersecting)?(this.originalConfig.autoplay&&(this.autoplay=!0),this.previouslyPlaying&&this.play(),void(this.previouslyPlaying=!1)):void("visible"===document.visibilityState&&this.isSticky||(this.player.playing&&(this.previouslyPlaying=!0),this.pause()))}renderMutedOverlay(){var t;if(this.player&&this.mutedPreview&&!this.isAdmin)return c("presto-muted-overlay",{mutedOverlay:null===(t=this.player.config.blockAttributes)||void 0===t?void 0:t.mutedOverlay,preset:this.preset,onPlayVideo:()=>{this.mutedPreview=!1,this.play()}})}renderVideo(){var t;switch(this.provider){case"vimeo":return c("presto-vimeo",{player:this.player,getRef:t=>this.playerEl=t,poster:this.poster,src:this.src});case"youtube":return c("presto-youtube",{onReload:t=>this.onReload(null==t?void 0:t.detail),player:this.player,getRef:t=>this.playerEl=t,lazyLoad:this.shouldLazyLoad,poster:this.poster,src:this.src});case"bunny":return c("presto-bunny",{thumbnail:null===(t=null==this?void 0:this.bunny)||void 0===t?void 0:t.thumbnail,getRef:t=>this.playerEl=t,player:this.player,autoplay:this.autoplay,preload:this.preload,poster:this.poster,playsinline:this.playsinline,src:this.src,tracks:this.tracks});default:return c("presto-video",{getRef:t=>this.playerEl=t,player:this.player,autoplay:this.autoplay,preload:this.preload,poster:this.poster,playsinline:this.playsinline,src:this.src,tracks:this.tracks})}}renderCTA(){var t;if((null===(t=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===t?void 0:t.isPremium)&&!this.isAdmin)return c("presto-cta-overlay",{direction:this.direction,player:this.player,preset:this.preset,i18n:this.i18n,onPlayVideo:()=>{this.mutedPreview=!1,this.play()},onRewatchVideo:()=>{this.mutedPreview=!1},"current-time":this.currentTime,duration:this.duration})}renderEmailOverlay(){var t,r;if((null===(t=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===t?void 0:t.isPremium)&&!this.isAdmin&&!(null===(r=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===r?void 0:r.logged_in))return c("presto-email-overlay",{direction:this.direction,player:this.player,preset:this.preset,videoId:this.video_id,i18n:this.i18n,onPlayVideo:()=>{this.mutedPreview=!1,this.play()},currentTime:this.currentTime,duration:this.duration})}renderActionBar(){var t,r;if(null===(r=null===(t=this.preset)||void 0===t?void 0:t.action_bar)||void 0===r?void 0:r.enabled)return c("presto-action-bar",{config:this.preset.action_bar,currentTime:this.currentTime,duration:this.duration,youtube:this.youtube})}stickyPositionClass(){var t,r;return this.isSticky?(null===(t=this.preset)||void 0===t?void 0:t.sticky_scroll_position)?`presto-sticky--${null===(r=this.preset)||void 0===r?void 0:r.sticky_scroll_position.replace(/\s+/g,"-")}`:"presto-sticky--bottom-right":""}render(){var t,r,e,i,n;return c(d,{style:{height:this.isSticky?`${this.videoHeight}px`:"auto"}},c("div",{part:"wrapper",dir:this.direction,class:`presto-player__wrapper fitvidsignore\n presto-video-id-${this.video_id}\n ${this.isSticky?"presto-sticky":""}\n ${this.stickyPositionClass()}\n ${"rtl"===this.direction?"rtl":""}\n ${!!(null===(t=this.preset)||void 0===t?void 0:t.skin)&&`skin-${null===(r=this.preset)||void 0===r?void 0:r.skin}`}\n ${(null===(e=this.preset)||void 0===e?void 0:e.hide_youtube)?"hide-youtube-ui":""}\n ${(null===(i=this.preset)||void 0===i?void 0:i.caption_style)?`caption-style-${null===(n=this.preset)||void 0===n?void 0:n.caption_style}`:""}\n ${this.mutedPreview?"is-muted-overlay":""}\n ${this.playClass?this.playClass:""}`},c("div",null,c("slot",{name:"player-start"}),this.renderCTA(),this.renderEmailOverlay(),c("slot",{name:"player-before-video"}),this.renderVideo(),c("slot",{name:"player-after-video"}),this.renderActionBar(),this.renderMutedOverlay(),c("slot",{name:"player-end"}))))}get el(){return h(this)}static get watchers(){return{isSticky:["handleStickyChange"],playerEl:["handlePlayerElementChange"],currentTime:["handlePlayerElementChange"],mutedPreview:["handleMutedPreview"],shouldLazyLoad:["handleLazyLoadChange"]}}};Oe.style='@charset "UTF-8";@keyframes plyr-progress{to{background-position:var(--plyr-progress-loading-size, 25px) 0}}@keyframes plyr-popup{0%{opacity:0.5;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes plyr-fade-in{from{opacity:0}to{opacity:1}}.plyr{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;align-items:center;direction:ltr;display:flex;flex-direction:column;font-family:var(--plyr-font-family, inherit);font-variant-numeric:tabular-nums;font-weight:var(--plyr-font-weight-regular, 400);line-height:var(--plyr-line-height, 1.7);max-width:100%;min-width:200px;position:relative;text-shadow:none;transition:box-shadow 0.3s ease;z-index:0}.plyr video,.plyr audio,.plyr iframe{display:block;height:100%;width:100%}.plyr button{font:inherit;line-height:inherit;width:auto}.plyr:focus{outline:0}.plyr--full-ui{box-sizing:border-box}.plyr--full-ui *,.plyr--full-ui *::after,.plyr--full-ui *::before{box-sizing:inherit}.plyr--full-ui a,.plyr--full-ui button,.plyr--full-ui input,.plyr--full-ui label{touch-action:manipulation}.plyr__badge{background:var(--plyr-badge-background, #4a5464);border-radius:var(--plyr-badge-border-radius, 2px);color:var(--plyr-badge-text-color, #fff);font-size:var(--plyr-font-size-badge, 9px);line-height:1;padding:3px 4px}.plyr--full-ui ::-webkit-media-text-track-container{display:none}.plyr__captions{animation:plyr-fade-in 0.3s ease;bottom:0;display:none;font-size:var(--plyr-font-size-small, 13px);left:0;padding:var(--plyr-control-spacing, 10px);position:absolute;text-align:center;transition:transform 0.4s ease-in-out;width:100%}.plyr__captions span:empty{display:none}@media (min-width: 480px){.plyr__captions{font-size:var(--plyr-font-size-base, 15px);padding:calc(var(--plyr-control-spacing, 10px) * 2)}}@media (min-width: 768px){.plyr__captions{font-size:var(--plyr-font-size-large, 18px)}}.plyr--captions-active .plyr__captions{display:block}.plyr:not(.plyr--hide-controls) .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(calc(var(--plyr-control-spacing, 10px) * -4))}.plyr__caption{background:var(--plyr-captions-background, rgba(0, 0, 0, 0.8));border-radius:2px;box-decoration-break:clone;color:var(--plyr-captions-text-color, #fff);line-height:185%;padding:0.2em 0.5em;white-space:pre-wrap}.plyr__caption div{display:inline}.plyr__control{background:transparent;border:0;border-radius:var(--plyr-control-radius, 3px);color:inherit;cursor:pointer;flex-shrink:0;overflow:visible;padding:calc(var(--plyr-control-spacing, 10px) * 0.7);position:relative;transition:all 0.3s ease}.plyr__control svg{display:block;fill:currentColor;height:var(--plyr-control-icon-size, 18px);pointer-events:none;width:var(--plyr-control-icon-size, 18px)}.plyr__control:focus{outline:0}.plyr__control.plyr__tab-focus{outline-color:var(--plyr-tab-focus-color, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));outline-offset:2px;outline-style:dotted;outline-width:3px}a.plyr__control{text-decoration:none}a.plyr__control::after,a.plyr__control::before{display:none}.plyr__control:not(.plyr__control--pressed) .icon--pressed,.plyr__control.plyr__control--pressed .icon--not-pressed,.plyr__control:not(.plyr__control--pressed) .label--pressed,.plyr__control.plyr__control--pressed .label--not-pressed{display:none}.plyr--full-ui ::-webkit-media-controls{display:none}.plyr__controls{align-items:center;display:flex;justify-content:flex-end;text-align:center}.plyr__controls .plyr__progress__container{flex:1;min-width:0}.plyr__controls .plyr__controls__item{margin-left:calc(var(--plyr-control-spacing, 10px) / 4)}.plyr__controls .plyr__controls__item:first-child{margin-left:0;margin-right:auto}.plyr__controls .plyr__controls__item.plyr__progress__container{padding-left:calc(var(--plyr-control-spacing, 10px) / 4)}.plyr__controls .plyr__controls__item.plyr__time{padding:0 calc(var(--plyr-control-spacing, 10px) / 2)}.plyr__controls .plyr__controls__item.plyr__progress__container:first-child,.plyr__controls .plyr__controls__item.plyr__time:first-child,.plyr__controls .plyr__controls__item.plyr__time+.plyr__time{padding-left:0}.plyr__controls:empty{display:none}.plyr [data-plyr=captions],.plyr [data-plyr=pip],.plyr [data-plyr=airplay],.plyr [data-plyr=fullscreen]{display:none}.plyr--captions-enabled [data-plyr=captions],.plyr--pip-supported [data-plyr=pip],.plyr--airplay-supported [data-plyr=airplay],.plyr--fullscreen-enabled [data-plyr=fullscreen]{display:inline-block}.plyr__menu{display:flex;position:relative}.plyr__menu .plyr__control svg{transition:transform 0.3s ease}.plyr__menu .plyr__control[aria-expanded=true] svg{transform:rotate(90deg)}.plyr__menu .plyr__control[aria-expanded=true] .plyr__tooltip{display:none}.plyr__menu__container{animation:plyr-popup 0.2s ease;background:var(--plyr-menu-background, rgba(255, 255, 255, 0.9));border-radius:4px;bottom:100%;box-shadow:var(--plyr-menu-shadow, 0 1px 2px rgba(0, 0, 0, 0.15));color:var(--plyr-menu-color, #4a5464);font-size:var(--plyr-font-size-base, 15px);margin-bottom:10px;position:absolute;right:-3px;text-align:left;white-space:nowrap;z-index:3}.plyr__menu__container>div{overflow:hidden;transition:height 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.4, 0, 0.2, 1)}.plyr__menu__container::after{border:var(--plyr-menu-arrow-size, 4px) solid transparent;border-top-color:var(--plyr-menu-background, rgba(255, 255, 255, 0.9));content:"";height:0;position:absolute;right:calc(((var(--plyr-control-icon-size, 18px) / 2) + calc(var(--plyr-control-spacing, 10px) * 0.7)) - (var(--plyr-menu-arrow-size, 4px) / 2));top:100%;width:0}.plyr__menu__container [role=menu]{padding:calc(var(--plyr-control-spacing, 10px) * 0.7)}.plyr__menu__container [role=menuitem],.plyr__menu__container [role=menuitemradio]{margin-top:2px}.plyr__menu__container [role=menuitem]:first-child,.plyr__menu__container [role=menuitemradio]:first-child{margin-top:0}.plyr__menu__container .plyr__control{align-items:center;color:var(--plyr-menu-color, #4a5464);display:flex;font-size:var(--plyr-font-size-menu, var(--plyr-font-size-small, 13px));padding-bottom:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) / 1.5);padding-left:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 1.5);padding-right:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 1.5);padding-top:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) / 1.5);user-select:none;width:100%}.plyr__menu__container .plyr__control>span{align-items:inherit;display:flex;width:100%}.plyr__menu__container .plyr__control::after{border:var(--plyr-menu-item-arrow-size, 4px) solid transparent;content:"";position:absolute;top:50%;transform:translateY(-50%)}.plyr__menu__container .plyr__control--forward{padding-right:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 4)}.plyr__menu__container .plyr__control--forward::after{border-left-color:var(--plyr-menu-arrow-color, #728197);right:calc((calc(var(--plyr-control-spacing, 10px) * 0.7) * 1.5) - var(--plyr-menu-item-arrow-size, 4px))}.plyr__menu__container .plyr__control--forward.plyr__tab-focus::after,.plyr__menu__container .plyr__control--forward:hover::after{border-left-color:currentColor}.plyr__menu__container .plyr__control--back{font-weight:var(--plyr-font-weight-regular, 400);margin:calc(var(--plyr-control-spacing, 10px) * 0.7);margin-bottom:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) / 2);padding-left:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 4);position:relative;width:calc(100% - (calc(var(--plyr-control-spacing, 10px) * 0.7) * 2))}.plyr__menu__container .plyr__control--back::after{border-right-color:var(--plyr-menu-arrow-color, #728197);left:calc((calc(var(--plyr-control-spacing, 10px) * 0.7) * 1.5) - var(--plyr-menu-item-arrow-size, 4px))}.plyr__menu__container .plyr__control--back::before{background:var(--plyr-menu-back-border-color, #dcdfe5);box-shadow:0 1px 0 var(--plyr-menu-back-border-shadow-color, #fff);content:"";height:1px;left:0;margin-top:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) / 2);overflow:hidden;position:absolute;right:0;top:100%}.plyr__menu__container .plyr__control--back.plyr__tab-focus::after,.plyr__menu__container .plyr__control--back:hover::after{border-right-color:currentColor}.plyr__menu__container .plyr__control[role=menuitemradio]{padding-left:calc(var(--plyr-control-spacing, 10px) * 0.7)}.plyr__menu__container .plyr__control[role=menuitemradio]::before,.plyr__menu__container .plyr__control[role=menuitemradio]::after{border-radius:100%}.plyr__menu__container .plyr__control[role=menuitemradio]::before{background:rgba(0, 0, 0, 0.1);content:"";display:block;flex-shrink:0;height:16px;margin-right:var(--plyr-control-spacing, 10px);transition:all 0.3s ease;width:16px}.plyr__menu__container .plyr__control[role=menuitemradio]::after{background:#fff;border:0;height:6px;left:12px;opacity:0;top:50%;transform:translateY(-50%) scale(0);transition:transform 0.3s ease, opacity 0.3s ease;width:6px}.plyr__menu__container .plyr__control[role=menuitemradio][aria-checked=true]::before{background:var(--plyr-control-toggle-checked-background, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)))}.plyr__menu__container .plyr__control[role=menuitemradio][aria-checked=true]::after{opacity:1;transform:translateY(-50%) scale(1)}.plyr__menu__container .plyr__control[role=menuitemradio].plyr__tab-focus::before,.plyr__menu__container .plyr__control[role=menuitemradio]:hover::before{background:rgba(35, 40, 47, 0.1)}.plyr__menu__container .plyr__menu__value{align-items:center;display:flex;margin-left:auto;margin-right:calc((calc(var(--plyr-control-spacing, 10px) * 0.7) - 2) * -1);overflow:hidden;padding-left:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 3.5);pointer-events:none}.plyr--full-ui input[type=range]{-webkit-appearance:none;background:transparent;border:0;border-radius:calc(var(--plyr-range-thumb-height, 13px) * 2);color:var(--plyr-range-fill-background, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));display:block;height:calc((var(--plyr-range-thumb-active-shadow-width, 3px) * 2) + var(--plyr-range-thumb-height, 13px));margin:0;min-width:0;padding:0;transition:box-shadow 0.3s ease;width:100%}.plyr--full-ui input[type=range]::-webkit-slider-runnable-track{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none;background-image:linear-gradient(to right, currentColor var(--value, 0%), transparent var(--value, 0%))}.plyr--full-ui input[type=range]::-webkit-slider-thumb{background:var(--plyr-range-thumb-background, #fff);border:0;border-radius:100%;box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2));height:var(--plyr-range-thumb-height, 13px);position:relative;transition:all 0.2s ease;width:var(--plyr-range-thumb-height, 13px);-webkit-appearance:none;margin-top:calc(((var(--plyr-range-thumb-height, 13px) - var(--plyr-range-track-height, 5px)) / 2) * -1)}.plyr--full-ui input[type=range]::-moz-range-track{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none}.plyr--full-ui input[type=range]::-moz-range-thumb{background:var(--plyr-range-thumb-background, #fff);border:0;border-radius:100%;box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2));height:var(--plyr-range-thumb-height, 13px);position:relative;transition:all 0.2s ease;width:var(--plyr-range-thumb-height, 13px)}.plyr--full-ui input[type=range]::-moz-range-progress{background:currentColor;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px)}.plyr--full-ui input[type=range]::-ms-track{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none;color:transparent}.plyr--full-ui input[type=range]::-ms-fill-upper{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none}.plyr--full-ui input[type=range]::-ms-fill-lower{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none;background:currentColor}.plyr--full-ui input[type=range]::-ms-thumb{background:var(--plyr-range-thumb-background, #fff);border:0;border-radius:100%;box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2));height:var(--plyr-range-thumb-height, 13px);position:relative;transition:all 0.2s ease;width:var(--plyr-range-thumb-height, 13px);margin-top:0}.plyr--full-ui input[type=range]::-ms-tooltip{display:none}.plyr--full-ui input[type=range]:focus{outline:0}.plyr--full-ui input[type=range]::-moz-focus-outer{border:0}.plyr--full-ui input[type=range].plyr__tab-focus::-webkit-slider-runnable-track{outline-color:var(--plyr-tab-focus-color, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));outline-offset:2px;outline-style:dotted;outline-width:3px}.plyr--full-ui input[type=range].plyr__tab-focus::-moz-range-track{outline-color:var(--plyr-tab-focus-color, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));outline-offset:2px;outline-style:dotted;outline-width:3px}.plyr--full-ui input[type=range].plyr__tab-focus::-ms-track{outline-color:var(--plyr-tab-focus-color, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));outline-offset:2px;outline-style:dotted;outline-width:3px}.plyr__poster{background-color:var(--plyr-video-background, var(--plyr-video-background, black));background-position:50% 50%;background-repeat:no-repeat;background-size:contain;height:100%;left:0;opacity:0;position:absolute;top:0;transition:opacity 0.2s ease;width:100%;z-index:1}.plyr--stopped.plyr__poster-enabled .plyr__poster{opacity:1}.plyr--youtube.plyr--paused.plyr__poster-enabled:not(.plyr--stopped) .plyr__poster{display:none}.plyr__time{font-size:var(--plyr-font-size-time, var(--plyr-font-size-small, 13px))}.plyr__time+.plyr__time::before{content:"⁄";margin-right:var(--plyr-control-spacing, 10px)}@media (max-width: 767px){.plyr__time+.plyr__time{display:none}}.plyr__tooltip{background:var(--plyr-tooltip-background, rgba(255, 255, 255, 0.9));border-radius:var(--plyr-tooltip-radius, 3px);bottom:100%;box-shadow:var(--plyr-tooltip-shadow, 0 1px 2px rgba(0, 0, 0, 0.15));color:var(--plyr-tooltip-color, #4a5464);font-size:var(--plyr-font-size-small, 13px);font-weight:var(--plyr-font-weight-regular, 400);left:50%;line-height:1.3;margin-bottom:calc(calc(var(--plyr-control-spacing, 10px) / 2) * 2);opacity:0;padding:calc(var(--plyr-control-spacing, 10px) / 2) calc(calc(var(--plyr-control-spacing, 10px) / 2) * 1.5);pointer-events:none;position:absolute;transform:translate(-50%, 10px) scale(0.8);transform-origin:50% 100%;transition:transform 0.2s 0.1s ease, opacity 0.2s 0.1s ease;white-space:nowrap;z-index:2}.plyr__tooltip::before{border-left:var(--plyr-tooltip-arrow-size, 4px) solid transparent;border-right:var(--plyr-tooltip-arrow-size, 4px) solid transparent;border-top:var(--plyr-tooltip-arrow-size, 4px) solid var(--plyr-tooltip-background, rgba(255, 255, 255, 0.9));bottom:calc(var(--plyr-tooltip-arrow-size, 4px) * -1);content:"";height:0;left:50%;position:absolute;transform:translateX(-50%);width:0;z-index:2}.plyr .plyr__control:hover .plyr__tooltip,.plyr .plyr__control.plyr__tab-focus .plyr__tooltip,.plyr__tooltip--visible{opacity:1;transform:translate(-50%, 0) scale(1)}.plyr .plyr__control:hover .plyr__tooltip{z-index:3}.plyr__controls>.plyr__control:first-child .plyr__tooltip,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip{left:0;transform:translate(0, 10px) scale(0.8);transform-origin:0 100%}.plyr__controls>.plyr__control:first-child .plyr__tooltip::before,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip::before{left:calc((var(--plyr-control-icon-size, 18px) / 2) + calc(var(--plyr-control-spacing, 10px) * 0.7))}.plyr__controls>.plyr__control:last-child .plyr__tooltip{left:auto;right:0;transform:translate(0, 10px) scale(0.8);transform-origin:100% 100%}.plyr__controls>.plyr__control:last-child .plyr__tooltip::before{left:auto;right:calc((var(--plyr-control-icon-size, 18px) / 2) + calc(var(--plyr-control-spacing, 10px) * 0.7));transform:translateX(50%)}.plyr__controls>.plyr__control:first-child:hover .plyr__tooltip,.plyr__controls>.plyr__control:first-child.plyr__tab-focus .plyr__tooltip,.plyr__controls>.plyr__control:first-child .plyr__tooltip--visible,.plyr__controls>.plyr__control:first-child+.plyr__control:hover .plyr__tooltip,.plyr__controls>.plyr__control:first-child+.plyr__control.plyr__tab-focus .plyr__tooltip,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip--visible,.plyr__controls>.plyr__control:last-child:hover .plyr__tooltip,.plyr__controls>.plyr__control:last-child.plyr__tab-focus .plyr__tooltip,.plyr__controls>.plyr__control:last-child .plyr__tooltip--visible{transform:translate(0, 0) scale(1)}.plyr__progress{left:calc(var(--plyr-range-thumb-height, 13px) * 0.5);margin-right:var(--plyr-range-thumb-height, 13px);position:relative}.plyr__progress input[type=range],.plyr__progress__buffer{margin-left:calc(var(--plyr-range-thumb-height, 13px) * -0.5);margin-right:calc(var(--plyr-range-thumb-height, 13px) * -0.5);width:calc(100% + var(--plyr-range-thumb-height, 13px))}.plyr__progress input[type=range]{position:relative;z-index:2}.plyr__progress .plyr__tooltip{font-size:var(--plyr-font-size-time, var(--plyr-font-size-small, 13px));left:0}.plyr__progress__buffer{-webkit-appearance:none;background:transparent;border:0;border-radius:100px;height:var(--plyr-range-track-height, 5px);left:0;margin-top:calc((var(--plyr-range-track-height, 5px) / 2) * -1);padding:0;position:absolute;top:50%}.plyr__progress__buffer::-webkit-progress-bar{background:transparent}.plyr__progress__buffer::-webkit-progress-value{background:currentColor;border-radius:100px;min-width:var(--plyr-range-track-height, 5px);transition:width 0.2s ease}.plyr__progress__buffer::-moz-progress-bar{background:currentColor;border-radius:100px;min-width:var(--plyr-range-track-height, 5px);transition:width 0.2s ease}.plyr__progress__buffer::-ms-fill{border-radius:100px;transition:width 0.2s ease}.plyr--loading .plyr__progress__buffer{animation:plyr-progress 1s linear infinite;background-image:linear-gradient(-45deg, var(--plyr-progress-loading-background, rgba(35, 40, 47, 0.6)) 25%, transparent 25%, transparent 50%, var(--plyr-progress-loading-background, rgba(35, 40, 47, 0.6)) 50%, var(--plyr-progress-loading-background, rgba(35, 40, 47, 0.6)) 75%, transparent 75%, transparent);background-repeat:repeat-x;background-size:var(--plyr-progress-loading-size, 25px) var(--plyr-progress-loading-size, 25px);color:transparent}.plyr--video.plyr--loading .plyr__progress__buffer{background-color:var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25))}.plyr--audio.plyr--loading .plyr__progress__buffer{background-color:var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6))}.plyr__volume{align-items:center;display:flex;max-width:110px;min-width:80px;position:relative;width:20%}.plyr__volume input[type=range]{margin-left:calc(var(--plyr-control-spacing, 10px) / 2);margin-right:calc(var(--plyr-control-spacing, 10px) / 2);position:relative;z-index:2}.plyr--is-ios .plyr__volume{min-width:0;width:auto}.plyr--audio{display:block}.plyr--audio .plyr__controls{background:var(--plyr-audio-controls-background, #fff);border-radius:inherit;color:var(--plyr-audio-control-color, #4a5464);padding:var(--plyr-control-spacing, 10px)}.plyr--audio .plyr__control.plyr__tab-focus,.plyr--audio .plyr__control:hover,.plyr--audio .plyr__control[aria-expanded=true]{background:var(--plyr-audio-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));color:var(--plyr-audio-control-color-hover, #fff)}.plyr--full-ui.plyr--audio input[type=range]::-webkit-slider-runnable-track{background-color:var(--plyr-audio-range-track-background, var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6)))}.plyr--full-ui.plyr--audio input[type=range]::-moz-range-track{background-color:var(--plyr-audio-range-track-background, var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6)))}.plyr--full-ui.plyr--audio input[type=range]::-ms-track{background-color:var(--plyr-audio-range-track-background, var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6)))}.plyr--full-ui.plyr--audio input[type=range]:active::-webkit-slider-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(35, 40, 47, 0.1))}.plyr--full-ui.plyr--audio input[type=range]:active::-moz-range-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(35, 40, 47, 0.1))}.plyr--full-ui.plyr--audio input[type=range]:active::-ms-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(35, 40, 47, 0.1))}.plyr--audio .plyr__progress__buffer{color:var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6))}.plyr--video{background:var(--plyr-video-background, var(--plyr-video-background, black));overflow:hidden}.plyr--video.plyr--menu-open{overflow:visible}.plyr__video-wrapper{background:var(--plyr-video-background, var(--plyr-video-background, black));margin:auto;overflow:hidden;position:relative;width:100%}.plyr__video-embed,.plyr__video-wrapper--fixed-ratio{aspect-ratio:16/9}@supports not (aspect-ratio: 16/9){.plyr__video-embed,.plyr__video-wrapper--fixed-ratio{height:0;padding-bottom:56.25%;position:relative}}.plyr__video-embed iframe,.plyr__video-wrapper--fixed-ratio video{border:0;height:100%;left:0;position:absolute;top:0;width:100%}.plyr--full-ui .plyr__video-embed>.plyr__video-embed__container{padding-bottom:240%;position:relative;transform:translateY(-38.28125%)}.plyr--video .plyr__controls{background:var(--plyr-video-controls-background, linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75)));border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;bottom:0;color:var(--plyr-video-control-color, #fff);left:0;padding:calc(var(--plyr-control-spacing, 10px) / 2);padding-top:calc(var(--plyr-control-spacing, 10px) * 2);position:absolute;right:0;transition:opacity 0.4s ease-in-out, transform 0.4s ease-in-out;z-index:3}@media (min-width: 480px){.plyr--video .plyr__controls{padding:var(--plyr-control-spacing, 10px);padding-top:calc(var(--plyr-control-spacing, 10px) * 3.5)}}.plyr--video.plyr--hide-controls .plyr__controls{opacity:0;pointer-events:none;transform:translateY(100%)}.plyr--video .plyr__control.plyr__tab-focus,.plyr--video .plyr__control:hover,.plyr--video .plyr__control[aria-expanded=true]{background:var(--plyr-video-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));color:var(--plyr-video-control-color-hover, #fff)}.plyr__control--overlaid{background:var(--plyr-video-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));border:0;border-radius:100%;color:var(--plyr-video-control-color, #fff);display:none;left:50%;opacity:0.9;padding:calc(var(--plyr-control-spacing, 10px) * 1.5);position:absolute;top:50%;transform:translate(-50%, -50%);transition:0.3s;z-index:2}.plyr__control--overlaid svg{left:2px;position:relative}.plyr__control--overlaid:hover,.plyr__control--overlaid:focus{opacity:1}.plyr--playing .plyr__control--overlaid{opacity:0;visibility:hidden}.plyr--full-ui.plyr--video .plyr__control--overlaid{display:block}.plyr--full-ui.plyr--video input[type=range]::-webkit-slider-runnable-track{background-color:var(--plyr-video-range-track-background, var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25)))}.plyr--full-ui.plyr--video input[type=range]::-moz-range-track{background-color:var(--plyr-video-range-track-background, var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25)))}.plyr--full-ui.plyr--video input[type=range]::-ms-track{background-color:var(--plyr-video-range-track-background, var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25)))}.plyr--full-ui.plyr--video input[type=range]:active::-webkit-slider-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(255, 255, 255, 0.5))}.plyr--full-ui.plyr--video input[type=range]:active::-moz-range-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(255, 255, 255, 0.5))}.plyr--full-ui.plyr--video input[type=range]:active::-ms-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(255, 255, 255, 0.5))}.plyr--video .plyr__progress__buffer{color:var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25))}.plyr:fullscreen{background:#000;border-radius:0 !important;height:100%;margin:0;width:100%}.plyr:fullscreen video{height:100%}.plyr:fullscreen .plyr__control .icon--exit-fullscreen{display:block}.plyr:fullscreen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:fullscreen.plyr--hide-controls{cursor:none}@media (min-width: 1024px){.plyr:fullscreen .plyr__captions{font-size:var(--plyr-font-size-xlarge, 21px)}}.plyr:-webkit-full-screen{background:#000;border-radius:0 !important;height:100%;margin:0;width:100%}.plyr:-webkit-full-screen video{height:100%}.plyr:-webkit-full-screen .plyr__control .icon--exit-fullscreen{display:block}.plyr:-webkit-full-screen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:-webkit-full-screen.plyr--hide-controls{cursor:none}@media (min-width: 1024px){.plyr:-webkit-full-screen .plyr__captions{font-size:var(--plyr-font-size-xlarge, 21px)}}.plyr:-moz-full-screen{background:#000;border-radius:0 !important;height:100%;margin:0;width:100%}.plyr:-moz-full-screen video{height:100%}.plyr:-moz-full-screen .plyr__control .icon--exit-fullscreen{display:block}.plyr:-moz-full-screen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:-moz-full-screen.plyr--hide-controls{cursor:none}@media (min-width: 1024px){.plyr:-moz-full-screen .plyr__captions{font-size:var(--plyr-font-size-xlarge, 21px)}}.plyr:-ms-fullscreen{background:#000;border-radius:0 !important;height:100%;margin:0;width:100%}.plyr:-ms-fullscreen video{height:100%}.plyr:-ms-fullscreen .plyr__control .icon--exit-fullscreen{display:block}.plyr:-ms-fullscreen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:-ms-fullscreen.plyr--hide-controls{cursor:none}@media (min-width: 1024px){.plyr:-ms-fullscreen .plyr__captions{font-size:var(--plyr-font-size-xlarge, 21px)}}.plyr--fullscreen-fallback{background:#000;border-radius:0 !important;height:100%;margin:0;width:100%;bottom:0;display:block;left:0;position:fixed;right:0;top:0;z-index:10000000}.plyr--fullscreen-fallback video{height:100%}.plyr--fullscreen-fallback .plyr__control .icon--exit-fullscreen{display:block}.plyr--fullscreen-fallback .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr--fullscreen-fallback.plyr--hide-controls{cursor:none}@media (min-width: 1024px){.plyr--fullscreen-fallback .plyr__captions{font-size:var(--plyr-font-size-xlarge, 21px)}}.plyr__ads{border-radius:inherit;bottom:0;cursor:pointer;left:0;overflow:hidden;position:absolute;right:0;top:0;z-index:-1}.plyr__ads>div,.plyr__ads>div iframe{height:100%;position:absolute;width:100%}.plyr__ads::after{background:#23282f;border-radius:2px;bottom:var(--plyr-control-spacing, 10px);color:#fff;content:attr(data-badge-text);font-size:11px;padding:2px 6px;pointer-events:none;position:absolute;right:var(--plyr-control-spacing, 10px);z-index:3}.plyr__ads::after:empty{display:none}.plyr__cues{background:currentColor;display:block;height:var(--plyr-range-track-height, 5px);left:0;margin:-var(--plyr-range-track-height, 5px)/2 0 0;opacity:0.8;position:absolute;top:50%;width:3px;z-index:3}.plyr__preview-thumb{background-color:var(--plyr-tooltip-background, rgba(255, 255, 255, 0.9));border-radius:3px;bottom:100%;box-shadow:var(--plyr-tooltip-shadow, 0 1px 2px rgba(0, 0, 0, 0.15));margin-bottom:calc(calc(var(--plyr-control-spacing, 10px) / 2) * 2);opacity:0;padding:var(--plyr-tooltip-radius, 3px);pointer-events:none;position:absolute;transform:translate(0, 10px) scale(0.8);transform-origin:50% 100%;transition:transform 0.2s 0.1s ease, opacity 0.2s 0.1s ease;z-index:2}.plyr__preview-thumb--is-shown{opacity:1;transform:translate(0, 0) scale(1)}.plyr__preview-thumb::before{border-left:var(--plyr-tooltip-arrow-size, 4px) solid transparent;border-right:var(--plyr-tooltip-arrow-size, 4px) solid transparent;border-top:var(--plyr-tooltip-arrow-size, 4px) solid var(--plyr-tooltip-background, rgba(255, 255, 255, 0.9));bottom:calc(var(--plyr-tooltip-arrow-size, 4px) * -1);content:"";height:0;left:50%;position:absolute;transform:translateX(-50%);width:0;z-index:2}.plyr__preview-thumb__image-container{background:#c1c8d1;border-radius:calc(var(--plyr-tooltip-radius, 3px) - 1px);overflow:hidden;position:relative;z-index:0}.plyr__preview-thumb__image-container img{height:100%;left:0;max-height:none;max-width:none;position:absolute;top:0;width:100%}.plyr__preview-thumb__time-container{bottom:6px;left:0;position:absolute;right:0;white-space:nowrap;z-index:3}.plyr__preview-thumb__time-container span{background-color:rgba(0, 0, 0, 0.55);border-radius:calc(var(--plyr-tooltip-radius, 3px) - 1px);color:#fff;font-size:var(--plyr-font-size-time, var(--plyr-font-size-small, 13px));padding:3px 6px}.plyr__preview-scrubbing{bottom:0;filter:blur(1px);height:100%;left:0;margin:auto;opacity:0;overflow:hidden;pointer-events:none;position:absolute;right:0;top:0;transition:opacity 0.3s ease;width:100%;z-index:1}.plyr__preview-scrubbing--is-shown{opacity:1}.plyr__preview-scrubbing img{height:100%;left:0;max-height:none;max-width:none;object-fit:contain;position:absolute;top:0;width:100%}.plyr--no-transition{transition:none !important}.plyr__sr-only{clip:rect(1px, 1px, 1px, 1px);overflow:hidden;border:0 !important;height:1px !important;padding:0 !important;position:absolute !important;width:1px !important}.plyr [hidden]{display:none !important}video,iframe{max-width:100%}.presto-player__wrapper{position:relative;font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.presto-player__wrapper.rtl{direction:rtl}.presto-player__wrapper img{max-width:100%}.presto-player__wrapper .plyr.plyr--video.plyr--menu-open{overflow:hidden}.presto-player__wrapper .plyr--fullscreen-fallback.plyr--vimeo .plyr__video-wrapper{top:50%;transform:translateY(-50%)}.presto-player__wrapper .plyr--fullscreen-fallback.plyr{border-radius:0 !important}.presto-player__wrapper .plyr--fullscreen-fallback.plyr iframe{border-radius:0 !important}.presto-player__wrapper .plyr__menu__container{overflow:auto}.presto-player__wrapper .plyr__menu__container:after{display:none}.presto-player__wrapper img{border:none}.presto-player__wrapper video{margin:auto}.presto-player__wrapper iframe{height:100%}.presto-player__wrapper .plyr--video .plyr__control:active,.presto-player__wrapper .plyr--video .plyr__control:focus{background:#00b3ff;background:var(--plyr-video-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));color:#fff;color:var(--plyr-video-control-color-hover, #fff)}.presto-player__wrapper .plyr__poster{background-size:cover;z-index:2}.presto-player__wrapper .presto-player__logo{margin:0;display:block;position:absolute;z-index:3;opacity:0.5;object-fit:contain;transition:bottom 0.4s ease-in-out;max-width:var(--presto-player-logo-width, 75px)}.presto-player__wrapper .presto-player__logo.is-bottom-right{left:auto;right:20px;top:auto;bottom:60px}.presto-player__wrapper .presto-player__logo.is-bottom-left{left:20px;right:auto;top:auto;bottom:60px}@media screen and (min-width: 380px){.presto-player__wrapper.presto-player--hide-controls .presto-player__logo.is-bottom-right,.presto-player__wrapper.presto-player--hide-controls .presto-player__logo.is-bottom-left,.presto-player__wrapper .plyr--hide-controls .presto-player__logo.is-bottom-right,.presto-player__wrapper .plyr--hide-controls .presto-player__logo.is-bottom-left{bottom:20px}}.presto-player__wrapper .presto-player-progress__marker{width:16px;height:16px;padding:0;border:2px solid rgba(255, 255, 255, 0.5);position:absolute;border-radius:9999px;bottom:calc(50% - 8px);z-index:9;margin-left:-8px !important}.presto-player__wrapper.presto-player--ended .plyr--youtube .plyr__poster{display:none}.presto-player__wrapper.presto-player--ended .plyr--youtube .plyr__control.plyr__control--overlaid{display:none}.presto-player__wrapper button.plyr__control.plyr__control--overlaid:focus{background:inherit;border:none;outline:0;position:absolute;top:50%;transform:translate(-50%, -50%)}.presto-player__wrapper .plyr__controls__item.plyr__progress__container{position:relative}.presto-player__wrapper .plyr--full-ui.plyr--video input[type=range]::-webkit-slider-runnable-track{box-shadow:none}.presto-player__wrapper .plyr--video .plyr__controls{background:var(--plyr-video-controls-background, linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.75)))}.presto-player__wrapper .presto-player-toc{font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";line-height:1.4;position:absolute;top:auto;right:0;left:0;bottom:0;max-height:calc(100%);max-width:calc(100%);background:rgba(255, 255, 255, 0.9);background:var(--plyr-menu-background, rgba(255, 255, 255, 0.9));left:auto;padding:20px 15px;border-radius:4px;width:100%;z-index:9;box-shadow:0 1px 2px rgba(0, 0, 0, 0.15);box-shadow:var(--plyr-menu-shadow, 0 1px 2px rgba(0, 0, 0, 0.15));color:#4a5464;color:var(--plyr-menu-color, #4a5464);font-size:15px;font-size:var(--plyr-font-size-base, 15px);white-space:nowrap;z-index:3;display:flex;flex-direction:column;transition:bottom 0.25s ease}@media screen and (min-width: 380px){.presto-player__wrapper .presto-player-toc{right:20px;bottom:60px;width:300px;max-height:calc(100% - 80px);max-width:calc(100vw - 70px)}}.presto-player__wrapper .presto-player-toc__wrapper{position:absolute;top:0;left:0;bottom:0;right:0;z-index:3;visibility:hidden;opacity:0;transition:opacity 0.3s ease-in-out, visibility 0.3s ease-in-out}.presto-player__wrapper .presto-player-toc__wrapper.is-showing{visibility:visible;opacity:1}.presto-player__wrapper .presto-player-toc__cover{position:absolute;top:0;left:0;bottom:0;right:0;z-index:3}.presto-player__wrapper .presto-player-toc__list{flex:1;overflow:auto}.presto-player__wrapper .presto-player-toc__title{font-size:12px;font-weight:bold;margin-bottom:10px;margin-left:10px;margin-right:10px;display:none}@media screen and (min-width: 380px){.presto-player__wrapper .presto-player-toc__title{display:block}}.presto-player__wrapper .presto-player-toc__name{white-space:nowrap;overflow:hidden;width:100%;text-overflow:ellipsis}.presto-player__wrapper .presto-player-toc__chapter{padding:12px;border-radius:3px;cursor:pointer;line-height:1;display:flex;align-items:center;transition:background-color 0.4s ease, color 0.4s ease;margin-bottom:2px;position:relative}.presto-player__wrapper .presto-player-toc__chapter:last-child{margin-bottom:0}.presto-player__wrapper .presto-player-toc__chapter.is-highlighted,.presto-player__wrapper .presto-player-toc__chapter:hover{background:#00b3ff;background:var(--plyr-video-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));color:#fff;color:var(--plyr-video-control-color-hover, #fff)}.presto-player__wrapper .presto-player-toc__chapter.is-highlighted{padding-right:30px}.presto-player__wrapper .presto-player-toc__chapter.is-highlighted:after{background:rgba(255, 255, 255, 0.5);content:"";display:block;flex-shrink:0;height:8px;width:8px;margin-right:10px;margin-right:var(--plyr-control-spacing, 10px);transition:all 0.3s ease;border-radius:9999px;position:absolute;right:7px}.presto-player__wrapper .presto-player-toc__order{margin-right:12px;opacity:0.5}.presto-player__wrapper.rtl{direction:rtl}.presto-player__wrapper.rtl .presto-player-toc__order{order:2;margin-left:12px;margin-right:0}.presto-player__wrapper.rtl .presto-player-toc__name{direction:rtl}.presto-player__wrapper .presto-player-error{position:absolute;top:0;left:0;bottom:0;right:0;background:rgba(0, 0, 0, 0.9);color:#fff;display:flex;align-items:center;justify-content:center;z-index:10;text-align:center}.presto-player__wrapper .presto-player-error__title{font-size:18px;font-weight:bold;margin-bottom:8px}.presto-player__wrapper .presto-player-error__description{opacity:0.75}.presto-player__wrapper.hide-youtube-ui .plyr__video-embed iframe{top:-50%;height:200%}.presto-player__wrapper .plyr--vimeo.plyr--playing .plyr__video-embed__container{pointer-events:none}.presto-player__wrapper .plyr__control--overlaid{border-radius:6px;padding-left:26px;padding-right:26px;position:absolute !important;top:50% !important}.presto-player__wrapper.skin-stacked .plyr__controls{flex-wrap:wrap}.presto-player__wrapper.skin-stacked .presto-player-progress__marker{transform:scale(0.75)}.presto-player__wrapper.skin-stacked .plyr__controls{justify-content:flex-start}.presto-player__wrapper.skin-stacked .plyr__controls__item.plyr__progress__container{order:-1;flex:1 0 100%}.presto-player__wrapper.skin-stacked .plyr__controls__item.plyr__progress__container+:not(.plyr__time),.presto-player__wrapper.skin-stacked .plyr__controls__item.plyr__progress__container+.plyr__time+*{margin-left:auto}.presto-player__wrapper.skin-stacked .plyr__controls .plyr__controls__item:first-child{margin:0}.presto-player__wrapper.skin-stacked .plyr__progress{height:19px;display:flex;align-items:center}.presto-player__wrapper.skin-stacked .plyr__progress .plyr__progress__buffer{height:3px;transition:all 0.25s ease;position:absolute;top:calc(50% + 1px)}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-moz-range-track{height:3px;transition:all 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-webkit-slider-runnable-track{height:3px;transition:all 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-ms-track{height:3px;transition:all 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-ms-fill-upper{height:3px;transition:all 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-ms-fill-lower{height:3px;transition:height 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-webkit-slider-thumb{visibility:hidden;opacity:0;transition:opacity 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-moz-range-thumb{visibility:hidden;opacity:0;transition:opacity 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-ms-thumb{visibility:hidden;opacity:0;transition:opacity 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .presto-player-progress__marker{transform:scale(1)}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress .plyr__progress__buffer{height:5px;top:calc(50%)}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]{overflow:visible}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-moz-range-track{height:5px}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-webkit-slider-runnable-track{height:5px}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-ms-track{height:5px}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-ms-fill-upper{height:5px}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-ms-fill-lower{height:5px}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-webkit-slider-thumb{visibility:visible;opacity:1}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-moz-range-thumb{visibility:visible;opacity:1}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-ms-thumb{visibility:visible;opacity:1}.presto-sticky-parent{z-index:99998}@media screen and (min-width: 960px){.presto-sticky{--presto-sticky-space:15px;position:fixed;z-index:3000;max-width:var(--presto-sticky-width, 380px);width:100vw}.presto-sticky .plyr__controls,.presto-sticky .presto-player-toc__wrapper,.presto-sticky presto-action-bar,.presto-sticky .presto-player__logo{display:none}.presto-sticky--top-left{top:var(--presto-sticky-space);left:var(--presto-sticky-space)}.presto-sticky--top-center{top:var(--presto-sticky-space);left:0;right:0;margin:0 auto}.presto-sticky--top-right{top:var(--presto-sticky-space);right:var(--presto-sticky-space)}.presto-sticky--center-left{top:0;bottom:0;margin:auto 0;left:var(--presto-sticky-space);display:flex;align-items:center}.presto-sticky--center-center{top:0;bottom:0;right:0;left:0;margin:auto;display:flex;align-items:center}.presto-sticky--center-right{top:0;bottom:0;margin:auto 0;right:var(--presto-sticky-space);display:flex;align-items:center}.presto-sticky--bottom-left{bottom:var(--presto-sticky-space);left:var(--presto-sticky-space)}.presto-sticky--bottom-center{bottom:var(--presto-sticky-space);left:0;right:0;margin:0 auto}.presto-sticky--bottom-right{bottom:var(--presto-sticky-space);right:var(--presto-sticky-space)}}.presto-player__overlay{position:absolute;top:50%;left:50%;z-index:3}.presto-player__muted-overlay{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center}.presto-player__muted-overlay .plyr__control--overlaid{display:block;opacity:1;visibility:visible}.presto-player__wrapper.is-muted-overlay{cursor:pointer}.presto-player__wrapper.is-muted-overlay .plyr--playing .presto-player__muted-overlay .plyr__control--overlaid{opacity:1;visibility:visible}.presto-player__wrapper.is-muted-overlay .presto-player__logo{display:none}.presto-player__wrapper.is-muted-overlay .plyr__controls{display:none}.presto-player__wrapper.is-muted-overlay .plyr .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(0) !important}.presto-player__wrapper.rtl .plyr__captions{direction:rtl}.presto-player__wrapper.caption-style-full .plyr__captions{background:var(--plyr-captions-background, rgba(0, 0, 0, 0.8));padding-top:0;padding-bottom:0}.presto-player__wrapper.caption-style-full .plyr:not(.plyr--hide-controls):not(.is-muted-overlay) .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(calc(var(--plyr-control-spacing, 13px) * -4))}.presto-player__wrapper.caption-style-full.skin-stacked .plyr:not(.plyr--hide-controls):not(.is-muted-overlay) .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(calc(var(--plyr-control-spacing, 17px) * -4))}.presto-player__play-cover{cursor:pointer;position:absolute;top:0;left:0;right:0;bottom:0;z-index:99}.presto-player__chapters{width:100%;position:absolute;top:0;height:100%}.presto-player__chapter-markers{margin:0 8px;height:100%;position:relative}.presto-player-progress__marker.plyr__controls__item.plyr__control:hover{border:0;background:#fff}.presto-iframe-fallback-container{position:relative;padding-bottom:56.25%;padding-top:30px;height:0;overflow:hidden}.presto-iframe-fallback-container embed,.presto-iframe-fallback-container iframe,.presto-iframe-fallback-container object{position:absolute;top:0;left:0;width:100%;height:100%}';export{Te as P,Oe as a,Dr as r}
1
+ import{a as t,d as r,e,f as i,i as n,j as o,_ as a,k as l,l as s,m as p,r as u,h as c,H as d,g as h}from"./p-3cd9ce84.js";var y=["premium","referrerPolicy"];function f(t,r,e){return r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function v(t,r){for(var e=0;e<r.length;e++){var i=r[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function g(t,r,e){return r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function _(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);r&&(i=i.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,i)}return e}function m(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?_(Object(e),!0).forEach((function(r){g(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):_(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}var b={addCSS:!0,thumbWidth:15,watch:!0};function w(t,r){return function(){return Array.from(document.querySelectorAll(r)).includes(this)}.call(t,r)}var k=function(t){return null!=t?t.constructor:null},x=function(t,r){return!!(t&&r&&t instanceof r)},z=function(t){return k(t)===String},j=function(t){return Array.isArray(t)},T=function(t){return x(t,NodeList)},P=z,O=j,S=T,C=function(t){return x(t,Element)},I=function(t){return x(t,Event)},A=function(t){return function(t){return null==t}(t)||(z(t)||j(t)||T(t))&&!t.length||function(t){return k(t)===Object}(t)&&!Object.keys(t).length};var M,E,F,N=function(){function t(r,e){(function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")})(this,t),C(r)?this.element=r:P(r)&&(this.element=document.querySelector(r)),C(this.element)&&A(this.element.rangeTouch)&&(this.config=m({},b,{},e),this.init())}return function(t,r,e){r&&v(t.prototype,r),e&&v(t,e)}(t,[{key:"init",value:function(){t.enabled&&(this.config.addCSS&&(this.element.style.userSelect="none",this.element.style.webKitUserSelect="none",this.element.style.touchAction="manipulation"),this.listeners(!0),this.element.rangeTouch=this)}},{key:"destroy",value:function(){t.enabled&&(this.config.addCSS&&(this.element.style.userSelect="",this.element.style.webKitUserSelect="",this.element.style.touchAction=""),this.listeners(!1),this.element.rangeTouch=null)}},{key:"listeners",value:function(t){var r=this,e=t?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach((function(t){r.element[e](t,(function(t){return r.set(t)}),!1)}))}},{key:"get",value:function(r){if(!t.enabled||!I(r))return null;var e,i=r.target,n=r.changedTouches[0],o=parseFloat(i.getAttribute("min"))||0,a=parseFloat(i.getAttribute("max"))||100,l=parseFloat(i.getAttribute("step"))||1,s=i.getBoundingClientRect(),p=100/s.width*(this.config.thumbWidth/2)/100;return 0>(e=100/s.width*(n.clientX-s.left))?e=0:100<e&&(e=100),50>e?e-=(100-2*e)*p:50<e&&(e+=2*(e-50)*p),o+function(t,r){if(1>r){var e=function(t){var r="".concat(t).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return r?Math.max(0,(r[1]?r[1].length:0)-(r[2]?+r[2]:0)):0}(r);return parseFloat(t.toFixed(e))}return Math.round(t/r)*r}(e/100*(a-o),l)}},{key:"set",value:function(r){t.enabled&&I(r)&&!r.target.disabled&&(r.preventDefault(),r.target.value=this.get(r),function(t,r){if(t&&r){var e=new Event(r,{bubbles:!0});t.dispatchEvent(e)}}(r.target,"touchend"===r.type?"change":"input"))}}],[{key:"setup",value:function(r){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=null;if(A(r)||P(r)?i=Array.from(document.querySelectorAll(P(r)?r:'input[type="range"]')):C(r)?i=[r]:S(r)?i=Array.from(r):O(r)&&(i=r.filter(C)),A(i))return null;var n=m({},b,{},e);if(P(r)&&n.watch){var o=new MutationObserver((function(e){Array.from(e).forEach((function(e){Array.from(e.addedNodes).forEach((function(e){C(e)&&w(e,r)&&new t(e,n)}))}))}));o.observe(document.body,{childList:!0,subtree:!0})}return i.map((function(r){return new t(r,e)}))}},{key:"enabled",get:function(){return"ontouchstart"in document.documentElement}}]),t}(),R=function(t){return null!=t?t.constructor:null},L=function(t,r){return Boolean(t&&r&&t instanceof r)},q=function(t){return null==t},B=function(t){return R(t)===Object},D=function(t){return R(t)===String},U=function(t){return R(t)===Function},H=function(t){return Array.isArray(t)},V=function(t){return L(t,NodeList)},$=function(t){return q(t)||(D(t)||H(t)||V(t))&&!t.length||B(t)&&!Object.keys(t).length},Q=q,Y=B,J=function(t){return R(t)===Number&&!Number.isNaN(t)},W=D,G=function(t){return R(t)===Boolean},K=U,X=H,Z=V,tt=function(t){return null!==t&&"object"==n(t)&&1===t.nodeType&&"object"==n(t.style)&&"object"==n(t.ownerDocument)},rt=function(t){return L(t,Event)},et=function(t){return L(t,KeyboardEvent)},it=function(t){return L(t,TextTrack)||!q(t)&&D(t.kind)},nt=function(t){if(L(t,window.URL))return!0;if(!D(t))return!1;var r=t;t.startsWith("http://")&&t.startsWith("https://")||(r="http://".concat(t));try{return!$(new URL(r).hostname)}catch(t){return!1}},ot=$,at=(M=document.createElement("span"),E={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},F=Object.keys(E).find((function(t){return void 0!==M.style[t]})),!!W(F)&&E[F]);function lt(t,r){setTimeout((function(){try{t.hidden=!0,t.hidden=!1}catch(t){}}),r)}var st={isIE:Boolean(window.document.documentMode),isEdge:window.navigator.userAgent.includes("Edge"),isWebkit:"WebkitAppearance"in document.documentElement.style&&!/Edge/.test(navigator.userAgent),isIPhone:/(iPhone|iPod)/gi.test(navigator.platform),isIos:"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1||/(iPad|iPhone|iPod)/gi.test(navigator.platform)};function pt(t,r){return r.split(".").reduce((function(t,r){return t&&t[r]}),t)}function ut(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];if(!i.length)return t;var o=i.shift();return Y(o)?(Object.keys(o).forEach((function(r){Y(o[r])?(Object.keys(t).includes(r)||Object.assign(t,e({},r,{})),ut(t[r],o[r])):Object.assign(t,e({},r,o[r]))})),ut.apply(void 0,[t].concat(i))):t}function ct(t,r){Array.from(t.length?t:[t]).reverse().forEach((function(t,e){var i=e>0?r.cloneNode(!0):r,n=t.parentNode,o=t.nextSibling;i.appendChild(t),o?n.insertBefore(i,o):n.appendChild(i)}))}function dt(r,e){tt(r)&&!ot(e)&&Object.entries(e).filter((function(r){var e=t(r,2);return!Q(e[1])})).forEach((function(e){var i=t(e,2);return r.setAttribute(i[0],i[1])}))}function ht(t,r,e){var i=document.createElement(t);return Y(r)&&dt(i,r),W(e)&&(i.innerText=e),i}function yt(t,r,e,i){tt(r)&&r.appendChild(ht(t,e,i))}function ft(t){Z(t)||X(t)?Array.from(t).forEach(ft):tt(t)&&tt(t.parentNode)&&t.parentNode.removeChild(t)}function vt(t){if(tt(t))for(var r=t.childNodes.length;r>0;)t.removeChild(t.lastChild),r-=1}function gt(t,r){return tt(r)&&tt(r.parentNode)&&tt(t)?(r.parentNode.replaceChild(t,r),t):null}function _t(r,e){if(!W(r)||ot(r))return{};var i={},n=ut({},e);return r.split(",").forEach((function(r){var e=r.trim(),o=e.replace(".",""),a=e.replace(/[[\]]/g,"").split("="),l=t(a,1)[0],s=a.length>1?a[1].replace(/["']/g,""):"";switch(e.charAt(0)){case".":i.class=W(n.class)?"".concat(n.class," ").concat(o):o;break;case"#":i.id=e.replace("#","");break;case"[":i[l]=s}})),ut(n,i)}function mt(t,r){if(tt(t)){var e=r;G(e)||(e=!t.hidden),t.hidden=e}}function bt(t,r,e){if(Z(t))return Array.from(t).map((function(t){return bt(t,r,e)}));if(tt(t)){var i="toggle";return void 0!==e&&(i=e?"add":"remove"),t.classList[i](r),t.classList.contains(r)}return!1}function wt(t,r){return tt(t)&&t.classList.contains(r)}function kt(t,r){var e=Element.prototype;return(e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector||function(){return Array.from(document.querySelectorAll(r)).includes(this)}).call(t,r)}function xt(t){return this.elements.container.querySelectorAll(t)}function zt(t){return this.elements.container.querySelector(t)}function jt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];tt(t)&&(t.focus({preventScroll:!0}),r&&bt(t,this.config.classNames.tabFocus))}var Tt={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},Pt={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check:function(t,r,e){var i=Pt[t]||"html5"!==r;return{api:i,ui:i&&Pt.rangeInput&&("video"!==t||!st.isIPhone||st.isIPhone&&e&&Pt.playsinline)}},pip:!(st.isIPhone||!K(ht("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||ht("video").disablePictureInPicture)),airplay:K(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime:function(r){if(ot(r))return!1;var e=r.split("/"),i=t(e,1),n=r;if(!this.isHTML5||i[0]!==this.type)return!1;Object.keys(Tt).includes(n)&&(n+='; codecs="'.concat(Tt[r],'"'));try{return Boolean(n&&this.media.canPlayType(n).replace(/no/,""))}catch(r){return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:function(){var t=document.createElement("input");return t.type="range","range"===t.type}(),touch:"ontouchstart"in document.documentElement,transitions:!1!==at,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},Ot=function(){var t=!1;try{var r=Object.defineProperty({},"passive",{get:function(){return t=!0,null}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){}return t}();function St(t,r,e){var i=this,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(t&&"addEventListener"in t&&!ot(r)&&K(e)){var l=r.split(" "),s=a;Ot&&(s={passive:o,capture:a}),l.forEach((function(r){i&&i.eventListeners&&n&&i.eventListeners.push({element:t,type:r,callback:e,options:s}),t[n?"addEventListener":"removeEventListener"](r,e,s)}))}}function Ct(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=arguments.length>2?arguments[2]:void 0,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],n=arguments.length>4&&void 0!==arguments[4]&&arguments[4];St.call(this,t,r,e,!0,i,n)}function It(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=arguments.length>2?arguments[2]:void 0,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],n=arguments.length>4&&void 0!==arguments[4]&&arguments[4];St.call(this,t,r,e,!1,i,n)}function At(t){var r=this,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=function a(){for(var l=arguments.length,s=new Array(l),p=0;p<l;p++)s[p]=arguments[p];It(t,e,a,n,o),i.apply(r,s)};St.call(this,t,e,a,!0,n,o)}function Mt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(tt(t)&&!ot(e)){var o=new CustomEvent(e,{bubbles:i,detail:r(r({},n),{},{plyr:this})});t.dispatchEvent(o)}}function Et(){this&&this.eventListeners&&(this.eventListeners.forEach((function(t){t.element.removeEventListener(t.type,t.callback,t.options)})),this.eventListeners=[])}function Ft(){var t=this;return new Promise((function(r){return t.ready?setTimeout(r,0):Ct.call(t,t.elements.container,"ready",r)})).then((function(){}))}function Nt(t){(function(t){return L(t,Promise)&&U(t.then)})(t)&&t.then(null,(function(){}))}function Rt(t){return X(t)?t.filter((function(r,e){return t.indexOf(r)===e})):t}function Lt(t,r){return X(t)&&t.length?t.reduce((function(t,e){return Math.abs(e-r)<Math.abs(t-r)?e:t})):null}function qt(t){return!(!window||!window.CSS)&&window.CSS.supports(t)}var Bt=[[1,1],[4,3],[3,4],[5,4],[4,5],[3,2],[2,3],[16,10],[10,16],[16,9],[9,16],[21,9],[9,21],[32,9],[9,32]].reduce((function(i,n){var o=t(n,2),a=o[0],l=o[1];return r(r({},i),{},e({},a/l,[a,l]))}),{});function Dt(t){return!!(X(t)||W(t)&&t.includes(":"))&&(X(t)?t:t.split(":")).map(Number).every(J)}function Ut(r){if(!X(r)||!r.every(J))return null;var e=t(r,2),i=e[0],n=e[1],o=function t(r,e){return 0===e?r:t(e,r%e)}(i,n);return[i/o,n/o]}function Ht(t){var r=function(t){return Dt(t)?t.split(":").map(Number):null},e=r(t);if(null===e&&(e=r(this.config.ratio)),null===e&&!ot(this.embed)&&X(this.embed.ratio)&&(e=this.embed.ratio),null===e&&this.isHTML5){var i=this.media;e=[i.videoWidth,i.videoHeight]}return Ut(e)}function Vt(r){if(!this.isVideo)return{};var e=this.elements.wrapper,i=Ht.call(this,r);if(!X(i))return{};var n=Ut(i),o=t(n,2),a=o[0],l=o[1],s=100/a*l;if(qt("aspect-ratio: ".concat(a,"/").concat(l))?e.style.aspectRatio="".concat(a,"/").concat(l):e.style.paddingBottom="".concat(s,"%"),this.isVimeo&&!this.config.vimeo.premium&&this.supported.ui){var p=100/this.media.offsetWidth*parseInt(window.getComputedStyle(this.media).paddingBottom,10),u=(p-s)/(p/50);this.fullscreen.active?e.style.paddingBottom=null:this.media.style.transform="translateY(-".concat(u,"%)")}else this.isHTML5&&e.classList.add(this.config.classNames.videoFixedRatio);return{padding:s,ratio:i}}function $t(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.05,i=t/r,n=Lt(Object.keys(Bt),i);return Math.abs(n-i)<=e?Bt[n]:[t,r]}var Qt={getSources:function(){var t=this;return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter((function(r){var e=r.getAttribute("type");return!!ot(e)||Pt.mime.call(t,e)})):[]},getQualityOptions:function(){return this.config.quality.forced?this.config.quality.options:Qt.getSources.call(this).map((function(t){return Number(t.getAttribute("size"))})).filter(Boolean)},setup:function(){if(this.isHTML5){var t=this;t.options.speed=t.config.speed.options,ot(this.config.ratio)||Vt.call(t),Object.defineProperty(t.media,"quality",{get:function(){var r=Qt.getSources.call(t).find((function(r){return r.getAttribute("src")===t.source}));return r&&Number(r.getAttribute("size"))},set:function(r){if(t.quality!==r){if(t.config.quality.forced&&K(t.config.quality.onChange))t.config.quality.onChange(r);else{var e=Qt.getSources.call(t).find((function(t){return Number(t.getAttribute("size"))===r}));if(!e)return;var i=t.media,n=i.currentTime,o=i.paused,a=i.preload,l=i.readyState,s=i.playbackRate;t.media.src=e.getAttribute("src"),("none"!==a||l)&&(t.once("loadedmetadata",(function(){t.speed=s,t.currentTime=n,o||Nt(t.play())})),t.media.load())}Mt.call(t,t.media,"qualitychange",!1,{quality:r})}}})}},cancelRequests:function(){this.isHTML5&&(ft(Qt.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function Yt(t){return"".concat(t,"-").concat(Math.floor(1e4*Math.random()))}function Jt(t){for(var r=arguments.length,e=new Array(r>1?r-1:0),i=1;i<r;i++)e[i-1]=arguments[i];return ot(t)?t:t.toString().replace(/{(\d+)}/g,(function(t,r){return e[r].toString()}))}var Wt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return t.replace(new RegExp(r.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),e.toString())},Gt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.toString().replace(/\w\S*/g,(function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()}))};function Kt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=t.toString();return r=Wt(r,"-"," "),r=Wt(r,"_"," "),r=Gt(r),Wt(r," ","")}function Xt(t){var r=document.createElement("div");return r.appendChild(t),r.innerHTML}var Zt={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},tr=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(ot(r)||ot(e))return"";var i=pt(e.i18n,r);if(ot(i))return Object.keys(Zt).includes(r)?Zt[r]:"";var n={"{seektime}":e.seekTime,"{title}":e.title};return Object.entries(n).forEach((function(r){var e=t(r,2);i=Wt(i,e[0],e[1])})),i},rr=function(){function t(r){var e=this;o(this,t),f(this,"get",(function(r){if(!t.supported||!e.enabled)return null;var i=window.localStorage.getItem(e.key);if(ot(i))return null;var n=JSON.parse(i);return W(r)&&r.length?n[r]:n})),f(this,"set",(function(r){if(t.supported&&e.enabled&&Y(r)){var i=e.get();ot(i)&&(i={}),ut(i,r),window.localStorage.setItem(e.key,JSON.stringify(i))}})),this.enabled=r.config.storage.enabled,this.key=r.config.storage.key}return i(t,null,[{key:"supported",get:function(){try{if(!("localStorage"in window))return!1;var t="___test";return window.localStorage.setItem(t,t),window.localStorage.removeItem(t),!0}catch(t){return!1}}}]),t}();function er(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text";return new Promise((function(e,i){try{var n=new XMLHttpRequest;if(!("withCredentials"in n))return;n.addEventListener("load",(function(){if("text"===r)try{e(JSON.parse(n.responseText))}catch(t){e(n.responseText)}else e(n.response)})),n.addEventListener("error",(function(){throw new Error(n.status)})),n.open("GET",t,!0),n.responseType=r,n.send()}catch(t){i(t)}}))}function ir(t,r){if(W(t)){var e=W(r),i=function(){return null!==document.getElementById(r)},n=function(t,r){t.innerHTML=r,e&&i()||document.body.insertAdjacentElement("afterbegin",t)};if(!e||!i()){var o=rr.supported,a=document.createElement("div");if(a.setAttribute("hidden",""),e&&a.setAttribute("id",r),o){var l=window.localStorage.getItem("cache-".concat(r));if(null!==l){var s=JSON.parse(l);n(a,s.content)}}er(t).then((function(t){ot(t)||(o&&window.localStorage.setItem("cache-".concat(r),JSON.stringify({content:t})),n(a,t))})).catch((function(){}))}}}var nr=function(t){return Math.trunc(t/60/60%60,10)},or=function(t){return Math.trunc(t%60,10)};function ar(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!J(t))return ar(void 0,r,e);var i,n=function(t){return"0".concat(t).slice(-2)},o=nr(t),a=(i=t,Math.trunc(i/60%60,10)),l=or(t);return o=r||o>0?"".concat(o,":"):"","".concat(e&&t>0?"-":"").concat(o).concat(n(a),":").concat(n(l))}var lr={getIconUrl:function(){var t=new URL(this.config.iconUrl,window.location),r=window.location.host?window.location.host:window.top.location.host,e=t.host!==r||st.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:e}},findElements:function(){try{return this.elements.controls=zt.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:xt.call(this,this.config.selectors.buttons.play),pause:zt.call(this,this.config.selectors.buttons.pause),restart:zt.call(this,this.config.selectors.buttons.restart),rewind:zt.call(this,this.config.selectors.buttons.rewind),fastForward:zt.call(this,this.config.selectors.buttons.fastForward),mute:zt.call(this,this.config.selectors.buttons.mute),pip:zt.call(this,this.config.selectors.buttons.pip),airplay:zt.call(this,this.config.selectors.buttons.airplay),settings:zt.call(this,this.config.selectors.buttons.settings),captions:zt.call(this,this.config.selectors.buttons.captions),fullscreen:zt.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=zt.call(this,this.config.selectors.progress),this.elements.inputs={seek:zt.call(this,this.config.selectors.inputs.seek),volume:zt.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:zt.call(this,this.config.selectors.display.buffer),currentTime:zt.call(this,this.config.selectors.display.currentTime),duration:zt.call(this,this.config.selectors.display.duration)},tt(this.elements.progress)&&(this.elements.display.seekTooltip=this.elements.progress.querySelector(".".concat(this.config.classNames.tooltip))),!0}catch(t){return this.debug.warn("It looks like there is a problem with your custom controls HTML",t),this.toggleNativeControls(!0),!1}},createIcon:function(t,r){var e="http://www.w3.org/2000/svg",i=lr.getIconUrl.call(this),n="".concat(i.cors?"":i.url,"#").concat(this.config.iconPrefix),o=document.createElementNS(e,"svg");dt(o,ut(r,{"aria-hidden":"true",focusable:"false"}));var a=document.createElementNS(e,"use"),l="".concat(n,"-").concat(t);return"href"in a&&a.setAttributeNS("http://www.w3.org/1999/xlink","href",l),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l),o.appendChild(a),o},createLabel:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=tr(t,this.config);return ht("span",r(r({},e),{},{class:[e.class,this.config.classNames.hidden].filter(Boolean).join(" ")}),i)},createBadge:function(t){if(ot(t))return null;var r=ht("span",{class:this.config.classNames.menu.value});return r.appendChild(ht("span",{class:this.config.classNames.menu.badge},t)),r},createButton:function(t,r){var e=this,i=ut({},r),n=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toString();return(t=Kt(t)).charAt(0).toLowerCase()+t.slice(1)}(t),o={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch(["element","icon","label"].forEach((function(t){Object.keys(i).includes(t)&&(o[t]=i[t],delete i[t])})),"button"!==o.element||Object.keys(i).includes("type")||(i.type="button"),Object.keys(i).includes("class")?i.class.split(" ").some((function(t){return t===e.config.classNames.control}))||ut(i,{class:"".concat(i.class," ").concat(this.config.classNames.control)}):i.class=this.config.classNames.control,t){case"play":o.toggle=!0,o.label="play",o.labelPressed="pause",o.icon="play",o.iconPressed="pause";break;case"mute":o.toggle=!0,o.label="mute",o.labelPressed="unmute",o.icon="volume",o.iconPressed="muted";break;case"captions":o.toggle=!0,o.label="enableCaptions",o.labelPressed="disableCaptions",o.icon="captions-off",o.iconPressed="captions-on";break;case"fullscreen":o.toggle=!0,o.label="enterFullscreen",o.labelPressed="exitFullscreen",o.icon="enter-fullscreen",o.iconPressed="exit-fullscreen";break;case"play-large":i.class+=" ".concat(this.config.classNames.control,"--overlaid"),n="play",o.label="play",o.icon="play";break;default:ot(o.label)&&(o.label=n),ot(o.icon)&&(o.icon=t)}var a=ht(o.element);return o.toggle?(a.appendChild(lr.createIcon.call(this,o.iconPressed,{class:"icon--pressed"})),a.appendChild(lr.createIcon.call(this,o.icon,{class:"icon--not-pressed"})),a.appendChild(lr.createLabel.call(this,o.labelPressed,{class:"label--pressed"})),a.appendChild(lr.createLabel.call(this,o.label,{class:"label--not-pressed"}))):(a.appendChild(lr.createIcon.call(this,o.icon)),a.appendChild(lr.createLabel.call(this,o.label))),ut(i,_t(this.config.selectors.buttons[n],i)),dt(a,i),"play"===n?(X(this.elements.buttons[n])||(this.elements.buttons[n]=[]),this.elements.buttons[n].push(a)):this.elements.buttons[n]=a,a},createRange:function(t,r){var e=ht("input",ut(_t(this.config.selectors.inputs[t]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":tr(t,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},r));return this.elements.inputs[t]=e,lr.updateRangeFill.call(this,e),N.setup(e),e},createProgress:function(t,r){var e=ht("progress",ut(_t(this.config.selectors.display[t]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},r));if("volume"!==t){e.appendChild(ht("span",null,"0"));var i={played:"played",buffer:"buffered"}[t],n=i?tr(i,this.config):"";e.innerText="% ".concat(n.toLowerCase())}return this.elements.display[t]=e,e},createTime:function(t,r){var e=_t(this.config.selectors.display[t],r),i=ht("div",ut(e,{class:"".concat(e.class?e.class:""," ").concat(this.config.classNames.display.time," ").trim(),"aria-label":tr(t,this.config)}),"00:00");return this.elements.display[t]=i,i},bindMenuItemShortcuts:function(t,r){var e=this;Ct.call(this,t,"keydown keyup",(function(i){if([32,38,39,40].includes(i.which)&&(i.preventDefault(),i.stopPropagation(),"keydown"!==i.type)){var n,o=kt(t,'[role="menuitemradio"]');!o&&[32,39].includes(i.which)?lr.showMenuPanel.call(e,r,!0):32!==i.which&&(40===i.which||o&&39===i.which?tt(n=t.nextElementSibling)||(n=t.parentNode.firstElementChild):tt(n=t.previousElementSibling)||(n=t.parentNode.lastElementChild),jt.call(e,n,!0))}}),!1),Ct.call(this,t,"keyup",(function(t){13===t.which&&lr.focusFirstMenuItem.call(e,null,!0)}))},createMenuItem:function(t){var r=this,e=t.value,i=t.list,n=t.type,o=t.title,a=t.badge,l=void 0===a?null:a,s=t.checked,p=void 0!==s&&s,u=_t(this.config.selectors.inputs[n]),c=ht("button",ut(u,{type:"button",role:"menuitemradio",class:"".concat(this.config.classNames.control," ").concat(u.class?u.class:"").trim(),"aria-checked":p,value:e})),d=ht("span");d.innerHTML=o,tt(l)&&d.appendChild(l),c.appendChild(d),Object.defineProperty(c,"checked",{enumerable:!0,get:function(){return"true"===c.getAttribute("aria-checked")},set:function(t){t&&Array.from(c.parentNode.children).filter((function(t){return kt(t,'[role="menuitemradio"]')})).forEach((function(t){return t.setAttribute("aria-checked","false")})),c.setAttribute("aria-checked",t?"true":"false")}}),this.listeners.bind(c,"click keyup",(function(t){if(!et(t)||32===t.which){switch(t.preventDefault(),t.stopPropagation(),c.checked=!0,n){case"language":r.currentTrack=Number(e);break;case"quality":r.quality=e;break;case"speed":r.speed=parseFloat(e)}lr.showMenuPanel.call(r,"home",et(t))}}),n,!1),lr.bindMenuItemShortcuts.call(this,c,n),i.appendChild(c)},formatTime:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return J(t)?ar(t,nr(this.duration)>0,r):t},updateTimeDisplay:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];tt(t)&&J(r)&&(t.innerText=lr.formatTime(r,e))},updateVolume:function(){this.supported.ui&&(tt(this.elements.inputs.volume)&&lr.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),tt(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||0===this.volume))},setRange:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;tt(t)&&(t.value=r,lr.updateRangeFill.call(this,t))},updateProgress:function(t){var r=this;if(this.supported.ui&&rt(t)){var e=0;if(t)switch(t.type){case"timeupdate":case"seeking":case"seeked":e=function(t,r){return 0===t||0===r||Number.isNaN(t)||Number.isNaN(r)?0:(t/r*100).toFixed(2)}(this.currentTime,this.duration),"timeupdate"===t.type&&lr.setRange.call(this,this.elements.inputs.seek,e);break;case"playing":case"progress":!function(t,e){var i=J(e)?e:0,n=tt(t)?t:r.elements.display.buffer;if(tt(n)){n.value=i;var o=n.getElementsByTagName("span")[0];tt(o)&&(o.childNodes[0].nodeValue=i)}}(this.elements.display.buffer,100*this.buffered)}}},updateRangeFill:function(t){var r=rt(t)?t.target:t;if(tt(r)&&"range"===r.getAttribute("type")){if(kt(r,this.config.selectors.inputs.seek)){r.setAttribute("aria-valuenow",this.currentTime);var e=lr.formatTime(this.currentTime),i=lr.formatTime(this.duration),n=tr("seekLabel",this.config);r.setAttribute("aria-valuetext",n.replace("{currentTime}",e).replace("{duration}",i))}else if(kt(r,this.config.selectors.inputs.volume)){var o=100*r.value;r.setAttribute("aria-valuenow",o),r.setAttribute("aria-valuetext","".concat(o.toFixed(1),"%"))}else r.setAttribute("aria-valuenow",r.value);st.isWebkit&&r.style.setProperty("--value",r.value/r.max*100+"%")}},updateSeekTooltip:function(t){var r=this;if(this.config.tooltips.seek&&tt(this.elements.inputs.seek)&&tt(this.elements.display.seekTooltip)&&0!==this.duration){var e="".concat(this.config.classNames.tooltip,"--visible"),i=function(t){return bt(r.elements.display.seekTooltip,e,t)};if(this.touch)i(!1);else{var n=0,o=this.elements.progress.getBoundingClientRect();if(rt(t))n=100/o.width*(t.pageX-o.left);else{if(!wt(this.elements.display.seekTooltip,e))return;n=parseFloat(this.elements.display.seekTooltip.style.left,10)}n<0?n=0:n>100&&(n=100),lr.updateTimeDisplay.call(this,this.elements.display.seekTooltip,this.duration/100*n),this.elements.display.seekTooltip.style.left="".concat(n,"%"),rt(t)&&["mouseenter","mouseleave"].includes(t.type)&&i("mouseenter"===t.type)}}},timeUpdate:function(t){var r=!tt(this.elements.display.duration)&&this.config.invertTime;lr.updateTimeDisplay.call(this,this.elements.display.currentTime,r?this.duration-this.currentTime:this.currentTime,r),t&&"timeupdate"===t.type&&this.media.seeking||lr.updateProgress.call(this,t)},durationUpdate:function(){if(this.supported.ui&&(this.config.invertTime||!this.currentTime)){if(this.duration>=Math.pow(2,32))return mt(this.elements.display.currentTime,!0),void mt(this.elements.progress,!0);tt(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);var t=tt(this.elements.display.duration);!t&&this.config.displayDuration&&this.paused&&lr.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),t&&lr.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),lr.updateSeekTooltip.call(this)}},toggleMenuButton:function(t,r){mt(this.elements.settings.buttons[t],!r)},updateSetting:function(t,r,e){var i=this.elements.settings.panels[t],n=null,o=r;if("captions"===t)n=this.currentTrack;else{if(n=ot(e)?this[t]:e,ot(n)&&(n=this.config[t].default),!ot(this.options[t])&&!this.options[t].includes(n))return void this.debug.warn("Unsupported value of '".concat(n,"' for ").concat(t));if(!this.config[t].options.includes(n))return void this.debug.warn("Disabled value of '".concat(n,"' for ").concat(t))}if(tt(o)||(o=i&&i.querySelector('[role="menu"]')),tt(o)){this.elements.settings.buttons[t].querySelector(".".concat(this.config.classNames.menu.value)).innerHTML=lr.getLabel.call(this,t,n);var a=o&&o.querySelector('[value="'.concat(n,'"]'));tt(a)&&(a.checked=!0)}},getLabel:function(t,r){switch(t){case"speed":return 1===r?tr("normal",this.config):"".concat(r,"&times;");case"quality":if(J(r)){if(0===r)return tr("auto",this.config);var e=tr("qualityLabel.".concat(r),this.config);return e.length?e:"".concat(r,"p")}return Gt(r);case"captions":return ur.getLabel.call(this);default:return null}},setQualityMenu:function(t){var r=this;if(tt(this.elements.settings.panels.quality)){var e="quality",i=this.elements.settings.panels.quality.querySelector('[role="menu"]');X(t)&&(this.options.quality=Rt(t).filter((function(t){return r.config.quality.options.includes(t)})));var n=!ot(this.options.quality)&&this.options.quality.length>1;if(lr.toggleMenuButton.call(this,e,n),vt(i),lr.checkMenu.call(this),n){var o=function(t){var e=tr("qualityBadge.".concat(t),r.config);return e.length?lr.createBadge.call(r,e):null};this.options.quality.sort((function(t,e){var i=r.config.quality.options;return i.indexOf(t)>i.indexOf(e)?1:-1})).forEach((function(t){lr.createMenuItem.call(r,{value:t,list:i,type:e,title:lr.getLabel.call(r,"quality",t),badge:o(t)})})),lr.updateSetting.call(this,e,i)}}},setCaptionsMenu:function(){var t=this;if(tt(this.elements.settings.panels.captions)){var r="captions",e=this.elements.settings.panels.captions.querySelector('[role="menu"]'),i=ur.getTracks.call(this),n=Boolean(i.length);if(lr.toggleMenuButton.call(this,r,n),vt(e),lr.checkMenu.call(this),n){var o=i.map((function(r,i){return{value:i,checked:t.captions.toggled&&t.currentTrack===i,title:ur.getLabel.call(t,r),badge:r.language&&lr.createBadge.call(t,r.language.toUpperCase()),list:e,type:"language"}}));o.unshift({value:-1,checked:!this.captions.toggled,title:tr("disabled",this.config),list:e,type:"language"}),o.forEach(lr.createMenuItem.bind(this)),lr.updateSetting.call(this,r,e)}}},setSpeedMenu:function(){var t=this;if(tt(this.elements.settings.panels.speed)){var r="speed",e=this.elements.settings.panels.speed.querySelector('[role="menu"]');this.options.speed=this.options.speed.filter((function(r){return r>=t.minimumSpeed&&r<=t.maximumSpeed}));var i=!ot(this.options.speed)&&this.options.speed.length>1;lr.toggleMenuButton.call(this,r,i),vt(e),lr.checkMenu.call(this),i&&(this.options.speed.forEach((function(i){lr.createMenuItem.call(t,{value:i,list:e,type:r,title:lr.getLabel.call(t,"speed",i)})})),lr.updateSetting.call(this,r,e))}},checkMenu:function(){var t=this.elements.settings.buttons,r=!ot(t)&&Object.values(t).some((function(t){return!t.hidden}));mt(this.elements.settings.menu,!r)},focusFirstMenuItem:function(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.elements.settings.popup.hidden){var e=t;tt(e)||(e=Object.values(this.elements.settings.panels).find((function(t){return!t.hidden})));var i=e.querySelector('[role^="menuitem"]');jt.call(this,i,r)}},toggleMenu:function(t){var r=this.elements.settings.popup,e=this.elements.buttons.settings;if(tt(r)&&tt(e)){var i=r.hidden,n=i;if(G(t))n=t;else if(et(t)&&27===t.which)n=!1;else if(rt(t)){var o=K(t.composedPath)?t.composedPath()[0]:t.target,a=r.contains(o);if(a||!a&&t.target!==e&&n)return}e.setAttribute("aria-expanded",n),mt(r,!n),bt(this.elements.container,this.config.classNames.menu.open,n),n&&et(t)?lr.focusFirstMenuItem.call(this,null,!0):n||i||jt.call(this,e,et(t))}},getMenuSize:function(t){var r=t.cloneNode(!0);r.style.position="absolute",r.style.opacity=0,r.removeAttribute("hidden"),t.parentNode.appendChild(r);var e=r.scrollWidth,i=r.scrollHeight;return ft(r),{width:e,height:i}},showMenuPanel:function(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.elements.container.querySelector("#plyr-settings-".concat(this.id,"-").concat(r));if(tt(i)){var n=i.parentNode,o=Array.from(n.children).find((function(t){return!t.hidden}));if(Pt.transitions&&!Pt.reducedMotion){n.style.width="".concat(o.scrollWidth,"px"),n.style.height="".concat(o.scrollHeight,"px");var a=lr.getMenuSize.call(this,i),l=function r(e){e.target===n&&["width","height"].includes(e.propertyName)&&(n.style.width="",n.style.height="",It.call(t,n,at,r))};Ct.call(this,n,at,l),n.style.width="".concat(a.width,"px"),n.style.height="".concat(a.height,"px")}mt(o,!0),mt(i,!1),lr.focusFirstMenuItem.call(this,i,e)}},setDownloadUrl:function(){var t=this.elements.buttons.download;tt(t)&&t.setAttribute("href",this.download)},create:function(t){var r=this,e=lr.bindMenuItemShortcuts,i=lr.createButton,n=lr.createProgress,o=lr.createRange,a=lr.createTime,l=lr.setQualityMenu,s=lr.setSpeedMenu,p=lr.showMenuPanel;this.elements.controls=null,X(this.config.controls)&&this.config.controls.includes("play-large")&&this.elements.container.appendChild(i.call(this,"play-large"));var u=ht("div",_t(this.config.selectors.controls.wrapper));this.elements.controls=u;var c={class:"plyr__controls__item"};return Rt(X(this.config.controls)?this.config.controls:[]).forEach((function(l){if("restart"===l&&u.appendChild(i.call(r,"restart",c)),"rewind"===l&&u.appendChild(i.call(r,"rewind",c)),"play"===l&&u.appendChild(i.call(r,"play",c)),"fast-forward"===l&&u.appendChild(i.call(r,"fast-forward",c)),"progress"===l){var s=ht("div",{class:"".concat(c.class," plyr__progress__container")}),d=ht("div",_t(r.config.selectors.progress));if(d.appendChild(o.call(r,"seek",{id:"plyr-seek-".concat(t.id)})),d.appendChild(n.call(r,"buffer")),r.config.tooltips.seek){var h=ht("span",{class:r.config.classNames.tooltip},"00:00");d.appendChild(h),r.elements.display.seekTooltip=h}r.elements.progress=d,s.appendChild(r.elements.progress),u.appendChild(s)}if("current-time"===l&&u.appendChild(a.call(r,"currentTime",c)),"duration"===l&&u.appendChild(a.call(r,"duration",c)),"mute"===l||"volume"===l){var y=r.elements.volume;tt(y)&&u.contains(y)||(y=ht("div",ut({},c,{class:"".concat(c.class," plyr__volume").trim()})),r.elements.volume=y,u.appendChild(y)),"mute"===l&&y.appendChild(i.call(r,"mute")),"volume"!==l||st.isIos||y.appendChild(o.call(r,"volume",ut({max:1,step:.05,value:r.config.volume},{id:"plyr-volume-".concat(t.id)})))}if("captions"===l&&u.appendChild(i.call(r,"captions",c)),"settings"===l&&!ot(r.config.settings)){var f=ht("div",ut({},c,{class:"".concat(c.class," plyr__menu").trim(),hidden:""}));f.appendChild(i.call(r,"settings",{"aria-haspopup":!0,"aria-controls":"plyr-settings-".concat(t.id),"aria-expanded":!1}));var v=ht("div",{class:"plyr__menu__container",id:"plyr-settings-".concat(t.id),hidden:""}),g=ht("div"),_=ht("div",{id:"plyr-settings-".concat(t.id,"-home")}),m=ht("div",{role:"menu"});_.appendChild(m),g.appendChild(_),r.elements.settings.panels.home=_,r.config.settings.forEach((function(i){var n=ht("button",ut(_t(r.config.selectors.buttons.settings),{type:"button",class:"".concat(r.config.classNames.control," ").concat(r.config.classNames.control,"--forward"),role:"menuitem","aria-haspopup":!0,hidden:""}));e.call(r,n,i),Ct.call(r,n,"click",(function(){p.call(r,i,!1)}));var o=ht("span",null,tr(i,r.config)),a=ht("span",{class:r.config.classNames.menu.value});a.innerHTML=t[i],o.appendChild(a),n.appendChild(o),m.appendChild(n);var l=ht("div",{id:"plyr-settings-".concat(t.id,"-").concat(i),hidden:""}),s=ht("button",{type:"button",class:"".concat(r.config.classNames.control," ").concat(r.config.classNames.control,"--back")});s.appendChild(ht("span",{"aria-hidden":!0},tr(i,r.config))),s.appendChild(ht("span",{class:r.config.classNames.hidden},tr("menuBack",r.config))),Ct.call(r,l,"keydown",(function(t){37===t.which&&(t.preventDefault(),t.stopPropagation(),p.call(r,"home",!0))}),!1),Ct.call(r,s,"click",(function(){p.call(r,"home",!1)})),l.appendChild(s),l.appendChild(ht("div",{role:"menu"})),g.appendChild(l),r.elements.settings.buttons[i]=n,r.elements.settings.panels[i]=l})),v.appendChild(g),f.appendChild(v),u.appendChild(f),r.elements.settings.popup=v,r.elements.settings.menu=f}if("pip"===l&&Pt.pip&&u.appendChild(i.call(r,"pip",c)),"airplay"===l&&Pt.airplay&&u.appendChild(i.call(r,"airplay",c)),"download"===l){var b=ut({},c,{element:"a",href:r.download,target:"_blank"});r.isHTML5&&(b.download=""),!nt(r.config.urls.download)&&r.isEmbed&&ut(b,{icon:"logo-".concat(r.provider),label:r.provider}),u.appendChild(i.call(r,"download",b))}"fullscreen"===l&&u.appendChild(i.call(r,"fullscreen",c))})),this.isHTML5&&l.call(this,Qt.getQualityOptions.call(this)),s.call(this),u},inject:function(){var r=this;if(this.config.loadSprite){var e=lr.getIconUrl.call(this);e.cors&&ir(e.url,"sprite-plyr")}this.id=Math.floor(1e4*Math.random());var i=null;this.elements.controls=null;var n,o={id:this.id,seektime:this.config.seekTime,title:this.config.title},a=!0;if(K(this.config.controls)&&(this.config.controls=this.config.controls.call(this,o)),this.config.controls||(this.config.controls=[]),tt(this.config.controls)||W(this.config.controls)?i=this.config.controls:(i=lr.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:ur.getLabel.call(this)}),a=!1),a&&W(this.config.controls)&&(i=function(r){var e=r;return Object.entries(o).forEach((function(r){var i=t(r,2),n=i[1];e=Wt(e,"{".concat(i[0],"}"),n)})),e}(i)),W(this.config.selectors.controls.container)&&(n=document.querySelector(this.config.selectors.controls.container)),tt(n)||(n=this.elements.container),n[tt(i)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",i),tt(this.elements.controls)||lr.findElements.call(this),!ot(this.elements.buttons)){var l=function(t){var e=r.config.classNames.controlPressed;Object.defineProperty(t,"pressed",{enumerable:!0,get:function(){return wt(t,e)},set:function(){var r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];bt(t,e,r)}})};Object.values(this.elements.buttons).filter(Boolean).forEach((function(t){X(t)||Z(t)?Array.from(t).filter(Boolean).forEach(l):l(t)}))}if(st.isEdge&&lt(n),this.config.tooltips.controls){var s=this.config,p=s.classNames,u=s.selectors,c="".concat(u.controls.wrapper," ").concat(u.labels," .").concat(p.hidden),d=xt.call(this,c);Array.from(d).forEach((function(t){bt(t,r.config.classNames.hidden,!1),bt(t,r.config.classNames.tooltip,!0)}))}}};function sr(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],e=t;if(r){var i=document.createElement("a");i.href=e,e=i.href}try{return new URL(e)}catch(t){return null}}function pr(r){var e=new URLSearchParams;return Y(r)&&Object.entries(r).forEach((function(r){var i=t(r,2);e.set(i[0],i[1])})),e}var ur={setup:function(){if(this.supported.ui)if(!this.isVideo||this.isYouTube||this.isHTML5&&!Pt.textTracks)X(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&lr.setCaptionsMenu.call(this);else{if(tt(this.elements.captions)||(this.elements.captions=ht("div",_t(this.config.selectors.captions)),function(t,r){tt(t)&&tt(r)&&r.parentNode.insertBefore(t,r.nextSibling)}(this.elements.captions,this.elements.wrapper)),st.isIE&&window.URL){var r=this.media.querySelectorAll("track");Array.from(r).forEach((function(t){var r=t.getAttribute("src"),e=sr(r);null!==e&&e.hostname!==window.location.href.hostname&&["http:","https:"].includes(e.protocol)&&er(r,"blob").then((function(r){t.setAttribute("src",window.URL.createObjectURL(r))})).catch((function(){ft(t)}))}))}var e=Rt((navigator.languages||[navigator.language||navigator.userLanguage||"en"]).map((function(t){return t.split("-")[0]}))),i=(this.storage.get("language")||this.config.captions.language||"auto").toLowerCase();"auto"===i&&(i=t(e,1)[0]);var n=this.storage.get("captions");G(n)||(n=this.config.captions.active),Object.assign(this.captions,{toggled:!1,active:n,language:i,languages:e}),this.isHTML5&&Ct.call(this,this.media.textTracks,this.config.captions.update?"addtrack removetrack":"removetrack",ur.update.bind(this)),setTimeout(ur.update.bind(this),0)}},update:function(){var t=this,r=ur.getTracks.call(this,!0),e=this.captions,i=e.active,n=e.language,o=e.meta,a=e.currentTrackNode,l=Boolean(r.find((function(t){return t.language===n})));this.isHTML5&&this.isVideo&&r.filter((function(t){return!o.get(t)})).forEach((function(r){t.debug.log("Track added",r),o.set(r,{default:"showing"===r.mode}),"showing"===r.mode&&(r.mode="hidden"),Ct.call(t,r,"cuechange",(function(){return ur.updateCues.call(t)}))})),(l&&this.language!==n||!r.includes(a))&&(ur.setLanguage.call(this,n),ur.toggle.call(this,i&&l)),bt(this.elements.container,this.config.classNames.captions.enabled,!ot(r)),X(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&lr.setCaptionsMenu.call(this)},toggle:function(t){var r=this,e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.supported.ui){var i=this.captions.toggled,n=this.config.classNames.captions.active,o=Q(t)?!i:t;if(o!==i){if(e||(this.captions.active=o,this.storage.set({captions:o})),!this.language&&o&&!e){var l=ur.getTracks.call(this),s=ur.findTrack.call(this,[this.captions.language].concat(a(this.captions.languages)),!0);return this.captions.language=s.language,void ur.set.call(this,l.indexOf(s))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=o),bt(this.elements.container,n,o),this.captions.toggled=o,lr.updateSetting.call(this,"captions"),Mt.call(this,this.media,o?"captionsenabled":"captionsdisabled")}setTimeout((function(){o&&r.captions.toggled&&r.captions.currentTrackNode&&(r.captions.currentTrackNode.mode="hidden")}))}},set:function(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],e=ur.getTracks.call(this);if(-1!==t)if(J(t))if(t in e){if(this.captions.currentTrack!==t){this.captions.currentTrack=t;var i=e[t],n=i||{},o=n.language;this.captions.currentTrackNode=i,lr.updateSetting.call(this,"captions"),r||(this.captions.language=o,this.storage.set({language:o})),this.isVimeo&&this.embed.enableTextTrack(o),Mt.call(this,this.media,"languagechange")}ur.toggle.call(this,!0,r),this.isHTML5&&this.isVideo&&ur.updateCues.call(this)}else this.debug.warn("Track not found",t);else this.debug.warn("Invalid caption argument",t);else ur.toggle.call(this,!1,r)},setLanguage:function(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(W(t)){var e=t.toLowerCase();this.captions.language=e;var i=ur.getTracks.call(this),n=ur.findTrack.call(this,[e]);ur.set.call(this,i.indexOf(n),r)}else this.debug.warn("Invalid language argument",t)},getTracks:function(){var t=this,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Array.from((this.media||{}).textTracks||[]).filter((function(e){return!t.isHTML5||r||t.captions.meta.has(e)})).filter((function(t){return["captions","subtitles"].includes(t.kind)}))},findTrack:function(t){var r,e=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=ur.getTracks.call(this),o=function(t){return Number((e.captions.meta.get(t)||{}).default)},a=Array.from(n).sort((function(t,r){return o(r)-o(t)}));return t.every((function(t){return!(r=a.find((function(r){return r.language===t})))})),r||(i?a[0]:void 0)},getCurrentTrack:function(){return ur.getTracks.call(this)[this.currentTrack]},getLabel:function(t){var r=t;return!it(r)&&Pt.textTracks&&this.captions.toggled&&(r=ur.getCurrentTrack.call(this)),it(r)?ot(r.label)?ot(r.language)?tr("enabled",this.config):t.language.toUpperCase():r.label:tr("disabled",this.config)},updateCues:function(t){if(this.supported.ui)if(tt(this.elements.captions))if(Q(t)||Array.isArray(t)){var r=t;if(!r){var e=ur.getCurrentTrack.call(this);r=Array.from((e||{}).activeCues||[]).map((function(t){return t.getCueAsHTML()})).map(Xt)}var i=r.map((function(t){return t.trim()})).join("\n");if(i!==this.elements.captions.innerHTML){vt(this.elements.captions);var n=ht("span",_t(this.config.selectors.caption));n.innerHTML=i,this.elements.captions.appendChild(n),Mt.call(this,this.media,"cuechange")}}else this.debug.warn("updateCues: Invalid input",t);else this.debug.warn("No captions element to render to")}},cr={enabled:!0,title:"",debug:!1,autoplay:!1,autopause:!0,playsinline:!0,seekTime:10,volume:1,muted:!1,duration:null,displayDuration:!0,invertTime:!0,toggleInvert:!0,ratio:null,clickToPlay:!0,hideControls:!0,resetOnEnd:!1,disableContextMenu:!0,loadSprite:!0,iconPrefix:"plyr",iconUrl:"https://cdn.plyr.io/3.6.8/plyr.svg",blankVideo:"https://cdn.plyr.io/static/blank.mp4",quality:{default:576,options:[4320,2880,2160,1440,1080,720,576,480,360,240],forced:!1,onChange:null},loop:{active:!1},speed:{selected:1,options:[.5,.75,1,1.25,1.5,1.75,2,4]},keyboard:{focused:!0,global:!1},tooltips:{controls:!1,seek:!0},captions:{active:!1,language:"auto",update:!1},fullscreen:{enabled:!0,fallback:!0,iosNative:!1},storage:{enabled:!0,key:"plyr"},controls:["play-large","play","progress","current-time","mute","volume","captions","settings","pip","airplay","fullscreen"],settings:["captions","quality","speed"],i18n:{restart:"Restart",rewind:"Rewind {seektime}s",play:"Play",pause:"Pause",fastForward:"Forward {seektime}s",seek:"Seek",seekLabel:"{currentTime} of {duration}",played:"Played",buffered:"Buffered",currentTime:"Current time",duration:"Duration",volume:"Volume",mute:"Mute",unmute:"Unmute",enableCaptions:"Enable captions",disableCaptions:"Disable captions",download:"Download",enterFullscreen:"Enter fullscreen",exitFullscreen:"Exit fullscreen",frameTitle:"Player for {title}",captions:"Captions",settings:"Settings",pip:"PIP",menuBack:"Go back to previous menu",speed:"Speed",normal:"Normal",quality:"Quality",loop:"Loop",start:"Start",end:"End",all:"All",reset:"Reset",disabled:"Disabled",enabled:"Enabled",advertisement:"Ad",qualityBadge:{2160:"4K",1440:"HD",1080:"HD",720:"HD",576:"SD",480:"SD"},auto:"AUTO"},urls:{download:null,vimeo:{sdk:"https://player.vimeo.com/api/player.js",iframe:"https://player.vimeo.com/video/{0}?{1}",api:"https://vimeo.com/api/oembed.json?url={0}"},youtube:{sdk:"https://www.youtube.com/iframe_api",api:"https://noembed.com/embed?url=https://www.youtube.com/watch?v={0}"},googleIMA:{sdk:"https://imasdk.googleapis.com/js/sdkloader/ima3.js"}},listeners:{seek:null,play:null,pause:null,restart:null,rewind:null,fastForward:null,mute:null,volume:null,captions:null,download:null,fullscreen:null,pip:null,airplay:null,speed:null,quality:null,loop:null,language:null},events:["ended","progress","stalled","playing","waiting","canplay","canplaythrough","loadstart","loadeddata","loadedmetadata","timeupdate","volumechange","play","pause","error","seeking","seeked","emptied","ratechange","cuechange","download","enterfullscreen","exitfullscreen","captionsenabled","captionsdisabled","languagechange","controlshidden","controlsshown","ready","statechange","qualitychange","adsloaded","adscontentpause","adscontentresume","adstarted","adsmidpoint","adscomplete","adsallcomplete","adsimpression","adsclick"],selectors:{editable:"input, textarea, select, [contenteditable]",container:".plyr",controls:{container:null,wrapper:".plyr__controls"},labels:"[data-plyr]",buttons:{play:'[data-plyr="play"]',pause:'[data-plyr="pause"]',restart:'[data-plyr="restart"]',rewind:'[data-plyr="rewind"]',fastForward:'[data-plyr="fast-forward"]',mute:'[data-plyr="mute"]',captions:'[data-plyr="captions"]',download:'[data-plyr="download"]',fullscreen:'[data-plyr="fullscreen"]',pip:'[data-plyr="pip"]',airplay:'[data-plyr="airplay"]',settings:'[data-plyr="settings"]',loop:'[data-plyr="loop"]'},inputs:{seek:'[data-plyr="seek"]',volume:'[data-plyr="volume"]',speed:'[data-plyr="speed"]',language:'[data-plyr="language"]',quality:'[data-plyr="quality"]'},display:{currentTime:".plyr__time--current",duration:".plyr__time--duration",buffer:".plyr__progress__buffer",loop:".plyr__progress__loop",volume:".plyr__volume--display"},progress:".plyr__progress",captions:".plyr__captions",caption:".plyr__caption"},classNames:{type:"plyr--{0}",provider:"plyr--{0}",video:"plyr__video-wrapper",embed:"plyr__video-embed",videoFixedRatio:"plyr__video-wrapper--fixed-ratio",embedContainer:"plyr__video-embed__container",poster:"plyr__poster",posterEnabled:"plyr__poster-enabled",ads:"plyr__ads",control:"plyr__control",controlPressed:"plyr__control--pressed",playing:"plyr--playing",paused:"plyr--paused",stopped:"plyr--stopped",loading:"plyr--loading",hover:"plyr--hover",tooltip:"plyr__tooltip",cues:"plyr__cues",hidden:"plyr__sr-only",hideControls:"plyr--hide-controls",isIos:"plyr--is-ios",isTouch:"plyr--is-touch",uiSupported:"plyr--full-ui",noTransition:"plyr--no-transition",display:{time:"plyr__time"},menu:{value:"plyr__menu__value",badge:"plyr__badge",open:"plyr--menu-open"},captions:{enabled:"plyr--captions-enabled",active:"plyr--captions-active"},fullscreen:{enabled:"plyr--fullscreen-enabled",fallback:"plyr--fullscreen-fallback"},pip:{supported:"plyr--pip-supported",active:"plyr--pip-active"},airplay:{supported:"plyr--airplay-supported",active:"plyr--airplay-active"},tabFocus:"plyr__tab-focus",previewThumbnails:{thumbContainer:"plyr__preview-thumb",thumbContainerShown:"plyr__preview-thumb--is-shown",imageContainer:"plyr__preview-thumb__image-container",timeContainer:"plyr__preview-thumb__time-container",scrubbingContainer:"plyr__preview-scrubbing",scrubbingContainerShown:"plyr__preview-scrubbing--is-shown"}},attributes:{embed:{provider:"data-plyr-provider",id:"data-plyr-embed-id"}},ads:{enabled:!1,publisherId:"",tagUrl:""},previewThumbnails:{enabled:!1,src:""},vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1,customControls:!0,referrerPolicy:null,premium:!1},youtube:{rel:0,showinfo:0,iv_load_policy:3,modestbranding:1,customControls:!0,noCookie:!1}},dr={html5:"html5",youtube:"youtube",vimeo:"vimeo"},hr=function(){},yr=function(){function t(){var r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];o(this,t),this.enabled=window.console&&r,this.enabled&&this.log("Debugging enabled")}return i(t,[{key:"log",get:function(){return this.enabled?Function.prototype.bind.call(console.log,console):hr}},{key:"warn",get:function(){return this.enabled?Function.prototype.bind.call(console.warn,console):hr}},{key:"error",get:function(){return this.enabled?Function.prototype.bind.call(console.error,console):hr}}]),t}(),fr=function(){function r(e){var i=this;o(this,r),f(this,"onChange",(function(){if(i.enabled){var t=i.player.elements.buttons.fullscreen;tt(t)&&(t.pressed=i.active),Mt.call(i.player,i.target===i.player.media?i.target:i.player.elements.container,i.active?"enterfullscreen":"exitfullscreen",!0)}})),f(this,"toggleFallback",(function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(t?i.scrollPosition={x:window.scrollX||0,y:window.scrollY||0}:window.scrollTo(i.scrollPosition.x,i.scrollPosition.y),document.body.style.overflow=t?"hidden":"",bt(i.target,i.player.config.classNames.fullscreen.fallback,t),st.isIos){var r=document.head.querySelector('meta[name="viewport"]'),e="viewport-fit=cover";r||(r=document.createElement("meta")).setAttribute("name","viewport");var n=W(r.content)&&r.content.includes(e);t?(i.cleanupViewport=!n,n||(r.content+=",".concat(e))):i.cleanupViewport&&(r.content=r.content.split(",").filter((function(t){return t.trim()!==e})).join(","))}i.onChange()})),f(this,"trapFocus",(function(r){if(!st.isIos&&i.active&&"Tab"===r.key&&9===r.keyCode){var e=document.activeElement,n=xt.call(i.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),o=t(n,1)[0],a=n[n.length-1];e!==a||r.shiftKey?e===o&&r.shiftKey&&(a.focus(),r.preventDefault()):(o.focus(),r.preventDefault())}})),f(this,"update",(function(){i.player.debug.log(i.enabled?"".concat(i.forceFallback?"Fallback (forced)":r.native?"Native":"Fallback"," fullscreen enabled"):"Fullscreen not supported and fallback disabled"),bt(i.player.elements.container,i.player.config.classNames.fullscreen.enabled,i.enabled)})),f(this,"enter",(function(){i.enabled&&(st.isIos&&i.player.config.fullscreen.iosNative?i.player.isVimeo?i.player.embed.requestFullscreen():i.target.webkitEnterFullscreen():!r.native||i.forceFallback?i.toggleFallback(!0):i.prefix?ot(i.prefix)||i.target["".concat(i.prefix,"Request").concat(i.property)]():i.target.requestFullscreen({navigationUI:"hide"}))})),f(this,"exit",(function(){if(i.enabled)if(st.isIos&&i.player.config.fullscreen.iosNative)i.target.webkitExitFullscreen(),Nt(i.player.play());else if(!r.native||i.forceFallback)i.toggleFallback(!1);else if(i.prefix){if(!ot(i.prefix)){var t="moz"===i.prefix?"Cancel":"Exit";document["".concat(i.prefix).concat(t).concat(i.property)]()}}else(document.cancelFullScreen||document.exitFullscreen).call(document)})),f(this,"toggle",(function(){i.active?i.exit():i.enter()})),this.player=e,this.prefix=r.prefix,this.property=r.property,this.scrollPosition={x:0,y:0},this.forceFallback="force"===e.config.fullscreen.fallback,this.player.elements.fullscreen=e.config.fullscreen.container&&function(t,r){return(Element.prototype.closest||function(){var t=this;do{if(kt.matches(t,r))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null}).call(t,r)}(this.player.elements.container,e.config.fullscreen.container),Ct.call(this.player,document,"ms"===this.prefix?"MSFullscreenChange":"".concat(this.prefix,"fullscreenchange"),(function(){i.onChange()})),Ct.call(this.player,this.player.elements.container,"dblclick",(function(t){tt(i.player.elements.controls)&&i.player.elements.controls.contains(t.target)||i.player.listeners.proxy(t,i.toggle,"fullscreen")})),Ct.call(this,this.player.elements.container,"keydown",(function(t){return i.trapFocus(t)})),this.update()}return i(r,[{key:"usingNative",get:function(){return r.native&&!this.forceFallback}},{key:"enabled",get:function(){return(r.native||this.player.config.fullscreen.fallback)&&this.player.config.fullscreen.enabled&&this.player.supported.ui&&this.player.isVideo}},{key:"active",get:function(){if(!this.enabled)return!1;if(!r.native||this.forceFallback)return wt(this.target,this.player.config.classNames.fullscreen.fallback);var t=this.prefix?document["".concat(this.prefix).concat(this.property,"Element")]:document.fullscreenElement;return t&&t.shadowRoot?t===this.target.getRootNode().host:t===this.target}},{key:"target",get:function(){return st.isIos&&this.player.config.fullscreen.iosNative?this.player.media:this.player.elements.fullscreen||this.player.elements.container}}],[{key:"native",get:function(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}},{key:"prefix",get:function(){if(K(document.exitFullscreen))return"";var t="";return["webkit","moz","ms"].some((function(r){return!(!K(document["".concat(r,"ExitFullscreen")])&&!K(document["".concat(r,"CancelFullScreen")])||(t=r,0))})),t}},{key:"property",get:function(){return"moz"===this.prefix?"FullScreen":"Fullscreen"}}]),r}();function vr(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Promise((function(e,i){var n=new Image,o=function(){delete n.onload,delete n.onerror,(n.naturalWidth>=r?e:i)(n)};Object.assign(n,{onload:o,onerror:o,src:t})}))}var gr={addStyleHook:function(){bt(this.elements.container,this.config.selectors.container.replace(".",""),!0),bt(this.elements.container,this.config.classNames.uiSupported,this.supported.ui)},toggleNativeControls:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];t&&this.isHTML5?this.media.setAttribute("controls",""):this.media.removeAttribute("controls")},build:function(){var t=this;if(this.listeners.media(),!this.supported.ui)return this.debug.warn("Basic support only for ".concat(this.provider," ").concat(this.type)),void gr.toggleNativeControls.call(this,!0);tt(this.elements.controls)||(lr.inject.call(this),this.listeners.controls()),gr.toggleNativeControls.call(this),this.isHTML5&&ur.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,lr.updateVolume.call(this),lr.timeUpdate.call(this),gr.checkPlaying.call(this),bt(this.elements.container,this.config.classNames.pip.supported,Pt.pip&&this.isHTML5&&this.isVideo),bt(this.elements.container,this.config.classNames.airplay.supported,Pt.airplay&&this.isHTML5),bt(this.elements.container,this.config.classNames.isIos,st.isIos),bt(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout((function(){Mt.call(t,t.media,"ready")}),0),gr.setTitle.call(this),this.poster&&gr.setPoster.call(this,this.poster,!1).catch((function(){})),this.config.duration&&lr.durationUpdate.call(this)},setTitle:function(){var t=tr("play",this.config);if(W(this.config.title)&&!ot(this.config.title)&&(t+=", ".concat(this.config.title)),Array.from(this.elements.buttons.play||[]).forEach((function(r){r.setAttribute("aria-label",t)})),this.isEmbed){var r=zt.call(this,"iframe");if(!tt(r))return;var e=ot(this.config.title)?"video":this.config.title,i=tr("frameTitle",this.config);r.setAttribute("title",i.replace("{title}",e))}},togglePoster:function(t){bt(this.elements.container,this.config.classNames.posterEnabled,t)},setPoster:function(t){var r=this,e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e&&this.poster?Promise.reject(new Error("Poster already set")):(this.media.setAttribute("data-poster",t),this.elements.poster.removeAttribute("hidden"),Ft.call(this).then((function(){return vr(t)})).catch((function(e){throw t===r.poster&&gr.togglePoster.call(r,!1),e})).then((function(){if(t!==r.poster)throw new Error("setPoster cancelled by later call to setPoster")})).then((function(){return Object.assign(r.elements.poster.style,{backgroundImage:"url('".concat(t,"')"),backgroundSize:""}),gr.togglePoster.call(r,!0),t})))},checkPlaying:function(t){var r=this;bt(this.elements.container,this.config.classNames.playing,this.playing),bt(this.elements.container,this.config.classNames.paused,this.paused),bt(this.elements.container,this.config.classNames.stopped,this.stopped),Array.from(this.elements.buttons.play||[]).forEach((function(t){Object.assign(t,{pressed:r.playing}),t.setAttribute("aria-label",tr(r.playing?"pause":"play",r.config))})),rt(t)&&"timeupdate"===t.type||gr.toggleControls.call(this)},checkLoading:function(t){var r=this;this.loading=["stalled","waiting"].includes(t.type),clearTimeout(this.timers.loading),this.timers.loading=setTimeout((function(){bt(r.elements.container,r.config.classNames.loading,r.loading),gr.toggleControls.call(r)}),this.loading?250:0)},toggleControls:function(t){var r=this.elements.controls;if(r&&this.config.hideControls){var e=this.touch&&this.lastSeekTime+2e3>Date.now();this.toggleControls(Boolean(t||this.loading||this.paused||r.pressed||r.hover||e))}},migrateStyles:function(){var t=this;Object.values(r({},this.media.style)).filter((function(t){return!ot(t)&&W(t)&&t.startsWith("--plyr")})).forEach((function(r){t.elements.container.style.setProperty(r,t.media.style.getPropertyValue(r)),t.media.style.removeProperty(r)})),ot(this.media.style)&&this.media.removeAttribute("style")}},_r=function(){function r(e){var i=this;o(this,r),f(this,"firstTouch",(function(){var t=i.player,r=t.elements;t.touch=!0,bt(r.container,t.config.classNames.isTouch,!0)})),f(this,"setTabFocus",(function(t){var r=i.player,e=r.elements;clearTimeout(i.focusTimer),("keydown"!==t.type||9===t.which)&&("keydown"===t.type&&(i.lastKeyDown=t.timeStamp),("focus"!==t.type||t.timeStamp-i.lastKeyDown<=20)&&(function(){var t=r.config.classNames.tabFocus;bt(xt.call(r,".".concat(t)),t,!1)}(),"focusout"!==t.type&&(i.focusTimer=setTimeout((function(){var t=document.activeElement;e.container.contains(t)&&bt(document.activeElement,r.config.classNames.tabFocus,!0)}),10))))})),f(this,"global",(function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],r=i.player;r.config.keyboard.global&&St.call(r,window,"keydown keyup",i.handleKey,t,!1),St.call(r,document.body,"click",i.toggleMenu,t),At.call(r,document.body,"touchstart",i.firstTouch),St.call(r,document.body,"keydown focus blur focusout",i.setTabFocus,t,!1,!0)})),f(this,"container",(function(){var r=i.player,e=r.config,n=r.elements,o=r.timers;!e.keyboard.global&&e.keyboard.focused&&Ct.call(r,n.container,"keydown keyup",i.handleKey,!1),Ct.call(r,n.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",(function(t){var e=n.controls;e&&"enterfullscreen"===t.type&&(e.pressed=!1,e.hover=!1);var i=0;["touchstart","touchmove","mousemove"].includes(t.type)&&(gr.toggleControls.call(r,!0),i=r.touch?3e3:2e3),clearTimeout(o.controls),o.controls=setTimeout((function(){return gr.toggleControls.call(r,!1)}),i)}));var a=function(){if(r.isVimeo&&!r.config.vimeo.premium){var e=n.wrapper,i=r.fullscreen.active,o=Ht.call(r),a=t(o,2),l=a[0],s=a[1],p=qt("aspect-ratio: ".concat(l," / ").concat(s));if(i){var u=[Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)],c=t(u,2),d=c[1],h=c[0]/d>l/s;p?(e.style.width=h?"auto":"100%",e.style.height=h?"100%":"auto"):(e.style.maxWidth=h?d/s*l+"px":null,e.style.margin=h?"0 auto":null)}else p?(e.style.width=null,e.style.height=null):(e.style.maxWidth=null,e.style.margin=null)}},l=function(){clearTimeout(o.resized),o.resized=setTimeout(a,50)};Ct.call(r,n.container,"enterfullscreen exitfullscreen",(function(t){r.fullscreen.target===n.container&&(!r.isEmbed&&ot(r.config.ratio)||(a(),("enterfullscreen"===t.type?Ct:It).call(r,window,"resize",l)))}))})),f(this,"media",(function(){var t=i.player,r=t.elements;if(Ct.call(t,t.media,"timeupdate seeking seeked",(function(r){return lr.timeUpdate.call(t,r)})),Ct.call(t,t.media,"durationchange loadeddata loadedmetadata",(function(r){return lr.durationUpdate.call(t,r)})),Ct.call(t,t.media,"ended",(function(){t.isHTML5&&t.isVideo&&t.config.resetOnEnd&&(t.restart(),t.pause())})),Ct.call(t,t.media,"progress playing seeking seeked",(function(r){return lr.updateProgress.call(t,r)})),Ct.call(t,t.media,"volumechange",(function(r){return lr.updateVolume.call(t,r)})),Ct.call(t,t.media,"playing play pause ended emptied timeupdate",(function(r){return gr.checkPlaying.call(t,r)})),Ct.call(t,t.media,"waiting canplay seeked playing",(function(r){return gr.checkLoading.call(t,r)})),t.supported.ui&&t.config.clickToPlay&&!t.isAudio){var e=zt.call(t,".".concat(t.config.classNames.video));if(!tt(e))return;Ct.call(t,r.container,"click",(function(n){([r.container,e].includes(n.target)||e.contains(n.target))&&(t.touch&&t.config.hideControls||(t.ended?(i.proxy(n,t.restart,"restart"),i.proxy(n,(function(){Nt(t.play())}),"play")):i.proxy(n,(function(){Nt(t.togglePlay())}),"play")))}))}t.supported.ui&&t.config.disableContextMenu&&Ct.call(t,r.wrapper,"contextmenu",(function(t){t.preventDefault()}),!1),Ct.call(t,t.media,"volumechange",(function(){t.storage.set({volume:t.volume,muted:t.muted})})),Ct.call(t,t.media,"ratechange",(function(){lr.updateSetting.call(t,"speed"),t.storage.set({speed:t.speed})})),Ct.call(t,t.media,"qualitychange",(function(r){lr.updateSetting.call(t,"quality",null,r.detail.quality)})),Ct.call(t,t.media,"ready qualitychange",(function(){lr.setDownloadUrl.call(t)}));var n=t.config.events.concat(["keyup","keydown"]).join(" ");Ct.call(t,t.media,n,(function(e){var i=e.detail,n=void 0===i?{}:i;"error"===e.type&&(n=t.media.error),Mt.call(t,r.container,e.type,!0,n)}))})),f(this,"proxy",(function(t,r,e){var n=i.player,o=n.config.listeners[e],a=!0;K(o)&&(a=o.call(n,t)),!1!==a&&K(r)&&r.call(n,t)})),f(this,"bind",(function(t,r,e,n){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=i.player,l=a.config.listeners[n],s=K(l);Ct.call(a,t,r,(function(t){return i.proxy(t,e,n)}),o&&!s)})),f(this,"controls",(function(){var r=i.player,e=r.elements,n=st.isIE?"change":"input";if(e.buttons.play&&Array.from(e.buttons.play).forEach((function(t){i.bind(t,"click",(function(){Nt(r.togglePlay())}),"play")})),i.bind(e.buttons.restart,"click",r.restart,"restart"),i.bind(e.buttons.rewind,"click",(function(){r.lastSeekTime=Date.now(),r.rewind()}),"rewind"),i.bind(e.buttons.fastForward,"click",(function(){r.lastSeekTime=Date.now(),r.forward()}),"fastForward"),i.bind(e.buttons.mute,"click",(function(){r.muted=!r.muted}),"mute"),i.bind(e.buttons.captions,"click",(function(){return r.toggleCaptions()})),i.bind(e.buttons.download,"click",(function(){Mt.call(r,r.media,"download")}),"download"),i.bind(e.buttons.fullscreen,"click",(function(){r.fullscreen.toggle()}),"fullscreen"),i.bind(e.buttons.pip,"click",(function(){r.pip="toggle"}),"pip"),i.bind(e.buttons.airplay,"click",r.airplay,"airplay"),i.bind(e.buttons.settings,"click",(function(t){t.stopPropagation(),t.preventDefault(),lr.toggleMenu.call(r,t)}),null,!1),i.bind(e.buttons.settings,"keyup",(function(t){var e=t.which;[13,32].includes(e)&&(13!==e?(t.preventDefault(),t.stopPropagation(),lr.toggleMenu.call(r,t)):lr.focusFirstMenuItem.call(r,null,!0))}),null,!1),i.bind(e.settings.menu,"keydown",(function(t){27===t.which&&lr.toggleMenu.call(r,t)})),i.bind(e.inputs.seek,"mousedown mousemove",(function(t){var r=e.progress.getBoundingClientRect();t.currentTarget.setAttribute("seek-value",100/r.width*(t.pageX-r.left))})),i.bind(e.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",(function(t){var e=t.currentTarget,i=t.keyCode?t.keyCode:t.which,n="play-on-seeked";if(!et(t)||39===i||37===i){r.lastSeekTime=Date.now();var o=e.hasAttribute(n),a=["mouseup","touchend","keyup"].includes(t.type);o&&a?(e.removeAttribute(n),Nt(r.play())):!a&&r.playing&&(e.setAttribute(n,""),r.pause())}})),st.isIos){var o=xt.call(r,'input[type="range"]');Array.from(o).forEach((function(t){return i.bind(t,n,(function(t){return lt(t.target)}))}))}i.bind(e.inputs.seek,n,(function(t){var e=t.currentTarget,i=e.getAttribute("seek-value");ot(i)&&(i=e.value),e.removeAttribute("seek-value"),r.currentTime=i/e.max*r.duration}),"seek"),i.bind(e.progress,"mouseenter mouseleave mousemove",(function(t){return lr.updateSeekTooltip.call(r,t)})),i.bind(e.progress,"mousemove touchmove",(function(t){var e=r.previewThumbnails;e&&e.loaded&&e.startMove(t)})),i.bind(e.progress,"mouseleave touchend click",(function(){var t=r.previewThumbnails;t&&t.loaded&&t.endMove(!1,!0)})),i.bind(e.progress,"mousedown touchstart",(function(t){var e=r.previewThumbnails;e&&e.loaded&&e.startScrubbing(t)})),i.bind(e.progress,"mouseup touchend",(function(t){var e=r.previewThumbnails;e&&e.loaded&&e.endScrubbing(t)})),st.isWebkit&&Array.from(xt.call(r,'input[type="range"]')).forEach((function(t){i.bind(t,"input",(function(t){return lr.updateRangeFill.call(r,t.target)}))})),r.config.toggleInvert&&!tt(e.display.duration)&&i.bind(e.display.currentTime,"click",(function(){0!==r.currentTime&&(r.config.invertTime=!r.config.invertTime,lr.timeUpdate.call(r))})),i.bind(e.inputs.volume,n,(function(t){r.volume=t.target.value}),"volume"),i.bind(e.controls,"mouseenter mouseleave",(function(t){e.controls.hover=!r.touch&&"mouseenter"===t.type})),e.fullscreen&&Array.from(e.fullscreen.children).filter((function(t){return!t.contains(e.container)})).forEach((function(t){i.bind(t,"mouseenter mouseleave",(function(t){e.controls.hover=!r.touch&&"mouseenter"===t.type}))})),i.bind(e.controls,"mousedown mouseup touchstart touchend touchcancel",(function(t){e.controls.pressed=["mousedown","touchstart"].includes(t.type)})),i.bind(e.controls,"focusin",(function(){var t=r.config,n=r.timers;bt(e.controls,t.classNames.noTransition,!0),gr.toggleControls.call(r,!0),setTimeout((function(){bt(e.controls,t.classNames.noTransition,!1)}),0);var o=i.touch?3e3:4e3;clearTimeout(n.controls),n.controls=setTimeout((function(){return gr.toggleControls.call(r,!1)}),o)})),i.bind(e.inputs.volume,"wheel",(function(e){var i=e.webkitDirectionInvertedFromDevice,n=[e.deltaX,-e.deltaY].map((function(t){return i?-t:t})),o=t(n,2),a=o[0],l=o[1],s=Math.sign(Math.abs(a)>Math.abs(l)?a:l);r.increaseVolume(s/50);var p=r.media.volume;(1===s&&p<1||-1===s&&p>0)&&e.preventDefault()}),"volume",!1)})),this.player=e,this.lastKey=null,this.focusTimer=null,this.lastKeyDown=null,this.handleKey=this.handleKey.bind(this),this.toggleMenu=this.toggleMenu.bind(this),this.setTabFocus=this.setTabFocus.bind(this),this.firstTouch=this.firstTouch.bind(this)}return i(r,[{key:"handleKey",value:function(t){var r=this.player,e=r.elements,i=t.keyCode?t.keyCode:t.which,n="keydown"===t.type,o=n&&i===this.lastKey;if(!(t.altKey||t.ctrlKey||t.metaKey||t.shiftKey)&&J(i))if(n){var a=document.activeElement;if(tt(a)){if(a!==e.inputs.seek&&kt(a,r.config.selectors.editable))return;if(32===t.which&&kt(a,'button, [role^="menuitem"]'))return}switch([32,37,38,39,40,48,49,50,51,52,53,54,56,57,67,70,73,75,76,77,79].includes(i)&&(t.preventDefault(),t.stopPropagation()),i){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:o||(r.currentTime=r.duration/10*(i-48));break;case 32:case 75:o||Nt(r.togglePlay());break;case 38:r.increaseVolume(.1);break;case 40:r.decreaseVolume(.1);break;case 77:o||(r.muted=!r.muted);break;case 39:r.forward();break;case 37:r.rewind();break;case 70:r.fullscreen.toggle();break;case 67:o||r.toggleCaptions();break;case 76:r.loop=!r.loop}27===i&&!r.fullscreen.usingNative&&r.fullscreen.active&&r.fullscreen.toggle(),this.lastKey=i}else this.lastKey=null}},{key:"toggleMenu",value:function(t){lr.toggleMenu.call(this.player,t)}}]),r}(),mr=function(t,r){return function(t){t.exports=function(){var t=function(){},r={},e={},i={};function n(t,r){if(t){var n=i[t];if(e[t]=r,n)for(;n.length;)n[0](t,r),n.splice(0,1)}}function o(r,e){r.call&&(r={success:r}),e.length?(r.error||t)(e):(r.success||t)(r)}function a(r,e,i,n){var o,l,s=document,p=i.async,u=(i.numRetries||0)+1,c=i.before||t,d=r.replace(/[\?|#].*$/,""),h=r.replace(/^(css|img)!/,"");n=n||0,/(^css!|\.css$)/.test(d)?((l=s.createElement("link")).rel="stylesheet",l.href=h,(o="hideFocus"in l)&&l.relList&&(o=0,l.rel="preload",l.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(d)?(l=s.createElement("img")).src=h:((l=s.createElement("script")).src=r,l.async=void 0===p||p),l.onload=l.onerror=l.onbeforeload=function(t){var s=t.type[0];if(o)try{l.sheet.cssText.length||(s="e")}catch(t){18!=t.code&&(s="e")}if("e"==s){if((n+=1)<u)return a(r,e,i,n)}else if("preload"==l.rel&&"style"==l.as)return l.rel="stylesheet";e(r,s,t.defaultPrevented)},!1!==c(r,l)&&s.head.appendChild(l)}function l(t,r,e){var i,n,o=(t=t.push?t:[t]).length,l=o,s=[];for(i=function(t,e,i){if("e"==e&&s.push(t),"b"==e){if(!i)return;s.push(t)}--o||r(s)},n=0;n<l;n++)a(t[n],i,e)}function s(t,e,i){var a,s;if(e&&e.trim&&(a=e),s=(a?i:e)||{},a){if(a in r)throw"LoadJS";r[a]=!0}function p(r,e){l(t,(function(t){o(s,t),r&&o({success:r,error:e},t),n(a,t)}),s)}if(s.returnPromise)return new Promise(p);p()}return s.ready=function(t,r){return function(t,r){var n,o,a,l=[],s=(t=t.push?t:[t]).length,p=s;for(n=function(t,e){e.length&&l.push(t),--p||r(l)};s--;)(a=e[o=t[s]])?n(o,a):(i[o]=i[o]||[]).push(n)}(t,(function(t){o(r,t)})),s},s.done=function(t){n(t,[])},s.reset=function(){r={},e={},i={}},s.isDefined=function(t){return t in r},s}()}(r={exports:{}}),r.exports}();function br(t){return new Promise((function(r,e){mr(t,{success:r,error:e})}))}function wr(t){t&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===t&&(this.media.paused=!t,Mt.call(this,this.media,t?"play":"pause"))}var kr={setup:function(){var t=this;bt(t.elements.wrapper,t.config.classNames.embed,!0),t.options.speed=t.config.speed.options,Vt.call(t),Y(window.Vimeo)?kr.ready.call(t):br(t.config.urls.vimeo.sdk).then((function(){kr.ready.call(t)})).catch((function(r){t.debug.warn("Vimeo SDK (player.js) failed to load",r)}))},ready:function(){var e=this,i=this,n=i.config.vimeo,o=n.premium,a=n.referrerPolicy,s=l(n,y);o&&Object.assign(s,{controls:!1,sidedock:!1});var p=pr(r({loop:i.config.loop.active,autoplay:i.autoplay,muted:i.muted,gesture:"media",playsinline:!this.config.fullscreen.iosNative},s)),u=i.media.getAttribute("src");ot(u)&&(u=i.media.getAttribute(i.config.attributes.embed.id));var c=function(t){return ot(t)?null:J(Number(t))?t:t.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:t}(u),d=ht("iframe"),h=Jt(i.config.urls.vimeo.iframe,c,p);if(d.setAttribute("src",h),d.setAttribute("allowfullscreen",""),d.setAttribute("allow",["autoplay","fullscreen","picture-in-picture","encrypted-media","accelerometer","gyroscope"].join("; ")),ot(a)||d.setAttribute("referrerPolicy",a),o||!n.customControls)d.setAttribute("data-poster",i.poster),i.media=gt(d,i.media);else{var f=ht("div",{class:i.config.classNames.embedContainer,"data-poster":i.poster});f.appendChild(d),i.media=gt(f,i.media)}n.customControls||er(Jt(i.config.urls.vimeo.api,h)).then((function(t){!ot(t)&&t.thumbnail_url&&gr.setPoster.call(i,t.thumbnail_url).catch((function(){}))})),i.embed=new window.Vimeo.Player(d,{autopause:i.config.autopause,muted:i.muted}),i.media.paused=!0,i.media.currentTime=0,i.supported.ui&&i.embed.disableTextTrack(),i.media.play=function(){return wr.call(i,!0),i.embed.play()},i.media.pause=function(){return wr.call(i,!1),i.embed.pause()},i.media.stop=function(){i.pause(),i.currentTime=0};var v=i.media.currentTime;Object.defineProperty(i.media,"currentTime",{get:function(){return v},set:function(t){var r=i.embed,e=i.media,n=i.volume,o=i.paused&&!r.hasPlayed;e.seeking=!0,Mt.call(i,e,"seeking"),Promise.resolve(o&&r.setVolume(0)).then((function(){return r.setCurrentTime(t)})).then((function(){return o&&r.pause()})).then((function(){return o&&r.setVolume(n)})).catch((function(){}))}});var g=i.config.speed.selected;Object.defineProperty(i.media,"playbackRate",{get:function(){return g},set:function(t){i.embed.setPlaybackRate(t).then((function(){g=t,Mt.call(i,i.media,"ratechange")})).catch((function(){i.options.speed=[1]}))}});var _=i.config.volume;Object.defineProperty(i.media,"volume",{get:function(){return _},set:function(t){i.embed.setVolume(t).then((function(){_=t,Mt.call(i,i.media,"volumechange")}))}});var m=i.config.muted;Object.defineProperty(i.media,"muted",{get:function(){return m},set:function(t){var r=!!G(t)&&t;i.embed.setVolume(r?0:i.config.volume).then((function(){m=r,Mt.call(i,i.media,"volumechange")}))}});var b,w=i.config.loop;Object.defineProperty(i.media,"loop",{get:function(){return w},set:function(t){var r=G(t)?t:i.config.loop.active;i.embed.setLoop(r).then((function(){w=r}))}}),i.embed.getVideoUrl().then((function(t){b=t,lr.setDownloadUrl.call(i)})).catch((function(t){e.debug.warn(t)})),Object.defineProperty(i.media,"currentSrc",{get:function(){return b}}),Object.defineProperty(i.media,"ended",{get:function(){return i.currentTime===i.duration}}),Promise.all([i.embed.getVideoWidth(),i.embed.getVideoHeight()]).then((function(r){var n=t(r,2);i.embed.ratio=$t(n[0],n[1]),Vt.call(e)})),i.embed.setAutopause(i.config.autopause).then((function(t){i.config.autopause=t})),i.embed.getVideoTitle().then((function(t){i.config.title=t,gr.setTitle.call(e)})),i.embed.getCurrentTime().then((function(t){v=t,Mt.call(i,i.media,"timeupdate")})),i.embed.getDuration().then((function(t){i.media.duration=t,Mt.call(i,i.media,"durationchange")})),i.embed.getTextTracks().then((function(t){i.media.textTracks=t,ur.setup.call(i)})),i.embed.on("cuechange",(function(t){var r=t.cues,e=(void 0===r?[]:r).map((function(t){return function(t){var r=document.createDocumentFragment(),e=document.createElement("div");return r.appendChild(e),e.innerHTML=t,r.firstChild.innerText}(t.text)}));ur.updateCues.call(i,e)})),i.embed.on("loaded",(function(){i.embed.getPaused().then((function(t){wr.call(i,!t),t||Mt.call(i,i.media,"playing")})),tt(i.embed.element)&&i.supported.ui&&i.embed.element.setAttribute("tabindex",-1)})),i.embed.on("bufferstart",(function(){Mt.call(i,i.media,"waiting")})),i.embed.on("bufferend",(function(){Mt.call(i,i.media,"playing")})),i.embed.on("play",(function(){wr.call(i,!0),Mt.call(i,i.media,"playing")})),i.embed.on("pause",(function(){wr.call(i,!1)})),i.embed.on("timeupdate",(function(t){i.media.seeking=!1,v=t.seconds,Mt.call(i,i.media,"timeupdate")})),i.embed.on("progress",(function(t){i.media.buffered=t.percent,Mt.call(i,i.media,"progress"),1===parseInt(t.percent,10)&&Mt.call(i,i.media,"canplaythrough"),i.embed.getDuration().then((function(t){t!==i.media.duration&&(i.media.duration=t,Mt.call(i,i.media,"durationchange"))}))})),i.embed.on("seeked",(function(){i.media.seeking=!1,Mt.call(i,i.media,"seeked")})),i.embed.on("ended",(function(){i.media.paused=!0,Mt.call(i,i.media,"ended")})),i.embed.on("error",(function(t){i.media.error=t,Mt.call(i,i.media,"error")})),n.customControls&&setTimeout((function(){return gr.build.call(i)}),0)}};function xr(t){t&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===t&&(this.media.paused=!t,Mt.call(this,this.media,t?"play":"pause"))}function zr(t){return t.noCookie?"https://www.youtube-nocookie.com":"http:"===window.location.protocol?"http://www.youtube.com":void 0}var jr,Tr,Pr,Or,Sr,Cr,Ir={setup:function(){var t=this;if(bt(this.elements.wrapper,this.config.classNames.embed,!0),Y(window.YT)&&K(window.YT.Player))Ir.ready.call(this);else{var r=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=function(){K(r)&&r(),Ir.ready.call(t)},br(this.config.urls.youtube.sdk).catch((function(r){t.debug.warn("YouTube API failed to load",r)}))}},getTitle:function(t){var r=this;er(Jt(this.config.urls.youtube.api,t)).then((function(t){if(Y(t)){var e=t.height,i=t.width;r.config.title=t.title,gr.setTitle.call(r),r.embed.ratio=$t(i,e)}Vt.call(r)})).catch((function(){Vt.call(r)}))},ready:function(){var t=this,r=t.config.youtube,e=t.media&&t.media.getAttribute("id");if(ot(e)||!e.startsWith("youtube-")){var i=t.media.getAttribute("src");ot(i)&&(i=t.media.getAttribute(this.config.attributes.embed.id));var n=function(t){return ot(t)?null:t.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/)?RegExp.$2:t}(i),o=ht("div",{id:Yt(t.provider),"data-poster":r.customControls?t.poster:void 0});if(t.media=gt(o,t.media),r.customControls){var a=function(t){return"https://i.ytimg.com/vi/".concat(n,"/").concat(t,"default.jpg")};vr(a("maxres"),121).catch((function(){return vr(a("sd"),121)})).catch((function(){return vr(a("hq"))})).then((function(r){return gr.setPoster.call(t,r.src)})).then((function(r){r.includes("maxres")||(t.elements.poster.style.backgroundSize="cover")})).catch((function(){}))}t.embed=new window.YT.Player(t.media,{videoId:n,host:zr(r),playerVars:ut({},{autoplay:t.config.autoplay?1:0,hl:t.config.hl,controls:t.supported.ui&&r.customControls?0:1,disablekb:1,playsinline:t.config.fullscreen.iosNative?0:1,cc_load_policy:t.captions.active?1:0,cc_lang_pref:t.config.captions.language,widget_referrer:window?window.location.href:null},r),events:{onError:function(r){if(!t.media.error){var e=r.data;t.media.error={code:e,message:{2:"The request contains an invalid parameter value. For example, this error occurs if you specify a video ID that does not have 11 characters, or if the video ID contains invalid characters, such as exclamation points or asterisks.",5:"The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.",100:"The video requested was not found. This error occurs when a video has been removed (for any reason) or has been marked as private.",101:"The owner of the requested video does not allow it to be played in embedded players.",150:"The owner of the requested video does not allow it to be played in embedded players."}[e]||"An unknown error occured"},Mt.call(t,t.media,"error")}},onPlaybackRateChange:function(r){t.media.playbackRate=r.target.getPlaybackRate(),Mt.call(t,t.media,"ratechange")},onReady:function(e){if(!K(t.media.play)){var i=e.target;Ir.getTitle.call(t,n),t.media.play=function(){xr.call(t,!0),i.playVideo()},t.media.pause=function(){xr.call(t,!1),i.pauseVideo()},t.media.stop=function(){i.stopVideo()},t.media.duration=i.getDuration(),t.media.paused=!0,t.media.currentTime=0,Object.defineProperty(t.media,"currentTime",{get:function(){return Number(i.getCurrentTime())},set:function(r){t.paused&&!t.embed.hasPlayed&&t.embed.mute(),t.media.seeking=!0,Mt.call(t,t.media,"seeking"),i.seekTo(r)}}),Object.defineProperty(t.media,"playbackRate",{get:function(){return i.getPlaybackRate()},set:function(t){i.setPlaybackRate(t)}});var o=t.config.volume;Object.defineProperty(t.media,"volume",{get:function(){return o},set:function(r){i.setVolume(100*(o=r)),Mt.call(t,t.media,"volumechange")}});var a=t.config.muted;Object.defineProperty(t.media,"muted",{get:function(){return a},set:function(r){var e=G(r)?r:a;a=e,i[e?"mute":"unMute"](),i.setVolume(100*o),Mt.call(t,t.media,"volumechange")}}),Object.defineProperty(t.media,"currentSrc",{get:function(){return i.getVideoUrl()}}),Object.defineProperty(t.media,"ended",{get:function(){return t.currentTime===t.duration}});var l=i.getAvailablePlaybackRates();t.options.speed=l.filter((function(r){return t.config.speed.options.includes(r)})),t.supported.ui&&r.customControls&&t.media.setAttribute("tabindex",-1),Mt.call(t,t.media,"timeupdate"),Mt.call(t,t.media,"durationchange"),clearInterval(t.timers.buffering),t.timers.buffering=setInterval((function(){t.media.buffered=i.getVideoLoadedFraction(),(null===t.media.lastBuffered||t.media.lastBuffered<t.media.buffered)&&Mt.call(t,t.media,"progress"),t.media.lastBuffered=t.media.buffered,1===t.media.buffered&&(clearInterval(t.timers.buffering),Mt.call(t,t.media,"canplaythrough"))}),200),r.customControls&&setTimeout((function(){return gr.build.call(t)}),50)}},onStateChange:function(e){var i=e.target;switch(clearInterval(t.timers.playing),t.media.seeking&&[1,2].includes(e.data)&&(t.media.seeking=!1,Mt.call(t,t.media,"seeked")),e.data){case-1:Mt.call(t,t.media,"timeupdate"),t.media.buffered=i.getVideoLoadedFraction(),Mt.call(t,t.media,"progress");break;case 0:xr.call(t,!1),t.media.loop?(i.stopVideo(),i.playVideo()):Mt.call(t,t.media,"ended");break;case 1:r.customControls&&!t.config.autoplay&&t.media.paused&&!t.embed.hasPlayed?t.media.pause():(xr.call(t,!0),Mt.call(t,t.media,"playing"),t.timers.playing=setInterval((function(){Mt.call(t,t.media,"timeupdate")}),50),t.media.duration!==i.getDuration()&&(t.media.duration=i.getDuration(),Mt.call(t,t.media,"durationchange")));break;case 2:t.muted||t.embed.unMute(),xr.call(t,!1);break;case 3:Mt.call(t,t.media,"waiting")}Mt.call(t,t.elements.container,"statechange",!1,{code:e.data})}}})}}},Ar={setup:function(){this.media?(bt(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),bt(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&bt(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=ht("div",{class:this.config.classNames.video}),ct(this.media,this.elements.wrapper),this.elements.poster=ht("div",{class:this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster)),this.isHTML5?Qt.setup.call(this):this.isYouTube?Ir.setup.call(this):this.isVimeo&&kr.setup.call(this)):this.debug.warn("No media element found!")}},Mr=function(){function t(r){var e=this;o(this,t),f(this,"load",(function(){e.enabled&&(Y(window.google)&&Y(window.google.ima)?e.ready():br(e.player.config.urls.googleIMA.sdk).then((function(){e.ready()})).catch((function(){e.trigger("error",new Error("Google IMA SDK failed to load"))})))})),f(this,"ready",(function(){var t;e.enabled||((t=e).manager&&t.manager.destroy(),t.elements.displayContainer&&t.elements.displayContainer.destroy(),t.elements.container.remove()),e.startSafetyTimer(12e3,"ready()"),e.managerPromise.then((function(){e.clearSafetyTimer("onAdsManagerLoaded()")})),e.listeners(),e.setupIMA()})),f(this,"setupIMA",(function(){e.elements.container=ht("div",{class:e.player.config.classNames.ads}),e.player.elements.container.appendChild(e.elements.container),google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),google.ima.settings.setLocale(e.player.config.ads.language),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(e.player.config.playsinline),e.elements.displayContainer=new google.ima.AdDisplayContainer(e.elements.container,e.player.media),e.loader=new google.ima.AdsLoader(e.elements.displayContainer),e.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,(function(t){return e.onAdsManagerLoaded(t)}),!1),e.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,(function(t){return e.onAdError(t)}),!1),e.requestAds()})),f(this,"requestAds",(function(){var t=e.player.elements.container;try{var r=new google.ima.AdsRequest;r.adTagUrl=e.tagUrl,r.linearAdSlotWidth=t.offsetWidth,r.linearAdSlotHeight=t.offsetHeight,r.nonLinearAdSlotWidth=t.offsetWidth,r.nonLinearAdSlotHeight=t.offsetHeight,r.forceNonLinearFullSlot=!1,r.setAdWillPlayMuted(!e.player.muted),e.loader.requestAds(r)}catch(t){e.onAdError(t)}})),f(this,"pollCountdown",(function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!t)return clearInterval(e.countdownTimer),void e.elements.container.removeAttribute("data-badge-text");e.countdownTimer=setInterval((function(){var t=ar(Math.max(e.manager.getRemainingTime(),0)),r="".concat(tr("advertisement",e.player.config)," - ").concat(t);e.elements.container.setAttribute("data-badge-text",r)}),100)})),f(this,"onAdsManagerLoaded",(function(t){if(e.enabled){var r=new google.ima.AdsRenderingSettings;r.restoreCustomPlaybackStateOnAdBreakComplete=!0,r.enablePreloading=!0,e.manager=t.getAdsManager(e.player,r),e.cuePoints=e.manager.getCuePoints(),e.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,(function(t){return e.onAdError(t)})),Object.keys(google.ima.AdEvent.Type).forEach((function(t){e.manager.addEventListener(google.ima.AdEvent.Type[t],(function(t){return e.onAdEvent(t)}))})),e.trigger("loaded")}})),f(this,"addCuePoints",(function(){ot(e.cuePoints)||e.cuePoints.forEach((function(t){if(0!==t&&-1!==t&&t<e.player.duration){var r=e.player.elements.progress;if(tt(r)){var i=100/e.player.duration*t,n=ht("span",{class:e.player.config.classNames.cues});n.style.left="".concat(i.toString(),"%"),r.appendChild(n)}}}))})),f(this,"onAdEvent",(function(t){var r=e.player.elements.container,i=t.getAd(),n=t.getAdData();switch(function(t){Mt.call(e.player,e.player.media,"ads".concat(t.replace(/_/g,"").toLowerCase()))}(t.type),t.type){case google.ima.AdEvent.Type.LOADED:e.trigger("loaded"),e.pollCountdown(!0),i.isLinear()||(i.width=r.offsetWidth,i.height=r.offsetHeight);break;case google.ima.AdEvent.Type.STARTED:e.manager.setVolume(e.player.volume);break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:e.player.ended?e.loadAds():e.loader.contentComplete();break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:e.pauseContent();break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:e.pollCountdown(),e.resumeContent();break;case google.ima.AdEvent.Type.LOG:n.adError&&e.player.debug.warn("Non-fatal ad error: ".concat(n.adError.getMessage()))}})),f(this,"onAdError",(function(t){e.cancel(),e.player.debug.warn("Ads error",t)})),f(this,"listeners",(function(){var t,r=e.player.elements.container;e.player.on("canplay",(function(){e.addCuePoints()})),e.player.on("ended",(function(){e.loader.contentComplete()})),e.player.on("timeupdate",(function(){t=e.player.currentTime})),e.player.on("seeked",(function(){var r=e.player.currentTime;ot(e.cuePoints)||e.cuePoints.forEach((function(i,n){t<i&&i<r&&(e.manager.discardAdBreak(),e.cuePoints.splice(n,1))}))})),window.addEventListener("resize",(function(){e.manager&&e.manager.resize(r.offsetWidth,r.offsetHeight,google.ima.ViewMode.NORMAL)}))})),f(this,"play",(function(){var t=e.player.elements.container;e.managerPromise||e.resumeContent(),e.managerPromise.then((function(){e.manager.setVolume(e.player.volume),e.elements.displayContainer.initialize();try{e.initialized||(e.manager.init(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL),e.manager.start()),e.initialized=!0}catch(t){e.onAdError(t)}})).catch((function(){}))})),f(this,"resumeContent",(function(){e.elements.container.style.zIndex="",e.playing=!1,Nt(e.player.media.play())})),f(this,"pauseContent",(function(){e.elements.container.style.zIndex=3,e.playing=!0,e.player.media.pause()})),f(this,"cancel",(function(){e.initialized&&e.resumeContent(),e.trigger("error"),e.loadAds()})),f(this,"loadAds",(function(){e.managerPromise.then((function(){e.manager&&e.manager.destroy(),e.managerPromise=new Promise((function(t){e.on("loaded",t),e.player.debug.log(e.manager)})),e.initialized=!1,e.requestAds()})).catch((function(){}))})),f(this,"trigger",(function(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];var o=e.events[t];X(o)&&o.forEach((function(t){K(t)&&t.apply(e,i)}))})),f(this,"on",(function(t,r){return X(e.events[t])||(e.events[t]=[]),e.events[t].push(r),e})),f(this,"startSafetyTimer",(function(t,r){e.player.debug.log("Safety timer invoked from: ".concat(r)),e.safetyTimer=setTimeout((function(){e.cancel(),e.clearSafetyTimer("startSafetyTimer()")}),t)})),f(this,"clearSafetyTimer",(function(t){Q(e.safetyTimer)||(e.player.debug.log("Safety timer cleared from: ".concat(t)),clearTimeout(e.safetyTimer),e.safetyTimer=null)})),this.player=r,this.config=r.config.ads,this.playing=!1,this.initialized=!1,this.elements={container:null,displayContainer:null},this.manager=null,this.loader=null,this.cuePoints=null,this.events={},this.safetyTimer=null,this.countdownTimer=null,this.managerPromise=new Promise((function(t,r){e.on("loaded",t),e.on("error",r)})),this.load()}return i(t,[{key:"enabled",get:function(){var t=this.config;return this.player.isHTML5&&this.player.isVideo&&t.enabled&&(!ot(t.publisherId)||nt(t.tagUrl))}},{key:"tagUrl",get:function(){var t=this.config;return nt(t.tagUrl)?t.tagUrl:"https://go.aniview.com/api/adserver6/vast/?".concat(pr({AV_PUBLISHERID:"58c25bb0073ef448b1087ad6",AV_CHANNELID:"5a0458dc28a06145e4519d21",AV_URL:window.location.hostname,cb:Date.now(),AV_WIDTH:640,AV_HEIGHT:480,AV_CDIM2:t.publisherId}))}}]),t}(),Er=function(r){var e=[];return r.split(/\r\n\r\n|\n\n|\r\r/).forEach((function(r){var i={};r.split(/\r\n|\n|\r/).forEach((function(r){if(J(i.startTime)){if(!ot(r.trim())&&ot(i.text)){var e,n,o,a=r.trim().split("#xywh=");e=t(a,1),i.text=e[0],a[1]&&(n=a[1].split(","),o=t(n,4),i.x=o[0],i.y=o[1],i.w=o[2],i.h=o[3])}}else{var l=r.match(/([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})( ?--> ?)([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})/);l&&(i.startTime=60*Number(l[1]||0)*60+60*Number(l[2])+Number(l[3])+Number("0.".concat(l[4])),i.endTime=60*Number(l[6]||0)*60+60*Number(l[7])+Number(l[8])+Number("0.".concat(l[9])))}})),i.text&&e.push(i)})),e},Fr=function(t,r){var e={};return t>r.width/r.height?(e.width=r.width,e.height=1/t*r.width):(e.height=r.height,e.width=t*r.height),e},Nr=function(){function t(r){var e=this;o(this,t),f(this,"load",(function(){e.player.elements.display.seekTooltip&&(e.player.elements.display.seekTooltip.hidden=e.enabled),e.enabled&&e.getThumbnails().then((function(){e.enabled&&(e.render(),e.determineContainerAutoSizing(),e.loaded=!0)}))})),f(this,"getThumbnails",(function(){return new Promise((function(t){var r=e.player.config.previewThumbnails.src;if(ot(r))throw new Error("Missing previewThumbnails.src config attribute");var i=function(){e.thumbnails.sort((function(t,r){return t.height-r.height})),e.player.debug.log("Preview thumbnails",e.thumbnails),t()};if(K(r))r((function(t){e.thumbnails=t,i()}));else{var n=(W(r)?[r]:r).map((function(t){return e.getThumbnail(t)}));Promise.all(n).then(i)}}))})),f(this,"getThumbnail",(function(t){return new Promise((function(r){er(t).then((function(i){var n={frames:Er(i),height:null,urlPrefix:""};n.frames[0].text.startsWith("/")||n.frames[0].text.startsWith("http://")||n.frames[0].text.startsWith("https://")||(n.urlPrefix=t.substring(0,t.lastIndexOf("/")+1));var o=new Image;o.onload=function(){n.height=o.naturalHeight,n.width=o.naturalWidth,e.thumbnails.push(n),r()},o.src=n.urlPrefix+n.frames[0].text}))}))})),f(this,"startMove",(function(t){if(e.loaded&&rt(t)&&["touchmove","mousemove"].includes(t.type)&&e.player.media.duration){if("touchmove"===t.type)e.seekTime=e.player.media.duration*(e.player.elements.inputs.seek.value/100);else{var r=e.player.elements.progress.getBoundingClientRect();e.seekTime=e.player.media.duration*(100/r.width*(t.pageX-r.left)/100),e.seekTime<0&&(e.seekTime=0),e.seekTime>e.player.media.duration-1&&(e.seekTime=e.player.media.duration-1),e.mousePosX=t.pageX,e.elements.thumb.time.innerText=ar(e.seekTime)}e.showImageAtCurrentTime()}})),f(this,"endMove",(function(){e.toggleThumbContainer(!1,!0)})),f(this,"startScrubbing",(function(t){(Q(t.button)||!1===t.button||0===t.button)&&(e.mouseDown=!0,e.player.media.duration&&(e.toggleScrubbingContainer(!0),e.toggleThumbContainer(!1,!0),e.showImageAtCurrentTime()))})),f(this,"endScrubbing",(function(){e.mouseDown=!1,Math.ceil(e.lastTime)===Math.ceil(e.player.media.currentTime)?e.toggleScrubbingContainer(!1):At.call(e.player,e.player.media,"timeupdate",(function(){e.mouseDown||e.toggleScrubbingContainer(!1)}))})),f(this,"listeners",(function(){e.player.on("play",(function(){e.toggleThumbContainer(!1,!0)})),e.player.on("seeked",(function(){e.toggleThumbContainer(!1)})),e.player.on("timeupdate",(function(){e.lastTime=e.player.media.currentTime}))})),f(this,"render",(function(){e.elements.thumb.container=ht("div",{class:e.player.config.classNames.previewThumbnails.thumbContainer}),e.elements.thumb.imageContainer=ht("div",{class:e.player.config.classNames.previewThumbnails.imageContainer}),e.elements.thumb.container.appendChild(e.elements.thumb.imageContainer);var t=ht("div",{class:e.player.config.classNames.previewThumbnails.timeContainer});e.elements.thumb.time=ht("span",{},"00:00"),t.appendChild(e.elements.thumb.time),e.elements.thumb.container.appendChild(t),tt(e.player.elements.progress)&&e.player.elements.progress.appendChild(e.elements.thumb.container),e.elements.scrubbing.container=ht("div",{class:e.player.config.classNames.previewThumbnails.scrubbingContainer}),e.player.elements.wrapper.appendChild(e.elements.scrubbing.container)})),f(this,"destroy",(function(){e.elements.thumb.container&&e.elements.thumb.container.remove(),e.elements.scrubbing.container&&e.elements.scrubbing.container.remove()})),f(this,"showImageAtCurrentTime",(function(){e.mouseDown?e.setScrubbingContainerSize():e.setThumbContainerSizeAndPos();var t=e.thumbnails[0].frames.findIndex((function(t){return e.seekTime>=t.startTime&&e.seekTime<=t.endTime})),r=t>=0,i=0;e.mouseDown||e.toggleThumbContainer(r),r&&(e.thumbnails.forEach((function(r,n){e.loadedImages.includes(r.frames[t].text)&&(i=n)})),t!==e.showingThumb&&(e.showingThumb=t,e.loadImage(i)))})),f(this,"loadImage",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=e.showingThumb,i=e.thumbnails[t],n=i.urlPrefix,o=i.frames[r],a=i.frames[r].text,l=n+a;if(e.currentImageElement&&e.currentImageElement.dataset.filename===a)e.showImage(e.currentImageElement,o,t,r,a,!1),e.currentImageElement.dataset.index=r,e.removeOldImages(e.currentImageElement);else{e.loadingImage&&e.usingSprites&&(e.loadingImage.onload=null);var s=new Image;s.src=l,s.dataset.index=r,s.dataset.filename=a,e.showingThumbFilename=a,e.player.debug.log("Loading image: ".concat(l)),s.onload=function(){return e.showImage(s,o,t,r,a,!0)},e.loadingImage=s,e.removeOldImages(s)}})),f(this,"showImage",(function(t,r,i,n,o){var a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];e.player.debug.log("Showing thumb: ".concat(o,". num: ").concat(n,". qual: ").concat(i,". newimg: ").concat(a)),e.setImageSizeAndOffset(t,r),a&&(e.currentImageContainer.appendChild(t),e.currentImageElement=t,e.loadedImages.includes(o)||e.loadedImages.push(o)),e.preloadNearby(n,!0).then(e.preloadNearby(n,!1)).then(e.getHigherQuality(i,t,r,o))})),f(this,"removeOldImages",(function(t){Array.from(e.currentImageContainer.children).forEach((function(r){if("img"===r.tagName.toLowerCase()){var i=e.usingSprites?500:1e3;if(r.dataset.index!==t.dataset.index&&!r.dataset.deleting){r.dataset.deleting=!0;var n=e.currentImageContainer;setTimeout((function(){n.removeChild(r),e.player.debug.log("Removing thumb: ".concat(r.dataset.filename))}),i)}}}))})),f(this,"preloadNearby",(function(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return new Promise((function(i){setTimeout((function(){var n=e.thumbnails[0].frames[t].text;if(e.showingThumbFilename===n){var o;o=r?e.thumbnails[0].frames.slice(t):e.thumbnails[0].frames.slice(0,t).reverse();var a=!1;o.forEach((function(t){var r=t.text;if(r!==n&&!e.loadedImages.includes(r)){a=!0,e.player.debug.log("Preloading thumb filename: ".concat(r));var o=e.thumbnails[0].urlPrefix+r,l=new Image;l.src=o,l.onload=function(){e.player.debug.log("Preloaded thumb filename: ".concat(r)),e.loadedImages.includes(r)||e.loadedImages.push(r),i()}}})),a||i()}}),300)}))})),f(this,"getHigherQuality",(function(t,r,i,n){if(t<e.thumbnails.length-1){var o=r.naturalHeight;e.usingSprites&&(o=i.h),o<e.thumbContainerHeight&&setTimeout((function(){e.showingThumbFilename===n&&(e.player.debug.log("Showing higher quality thumb for: ".concat(n)),e.loadImage(t+1))}),300)}})),f(this,"toggleThumbContainer",(function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=e.player.config.classNames.previewThumbnails.thumbContainerShown;e.elements.thumb.container.classList.toggle(i,t),!t&&r&&(e.showingThumb=null,e.showingThumbFilename=null)})),f(this,"toggleScrubbingContainer",(function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=e.player.config.classNames.previewThumbnails.scrubbingContainerShown;e.elements.scrubbing.container.classList.toggle(r,t),t||(e.showingThumb=null,e.showingThumbFilename=null)})),f(this,"determineContainerAutoSizing",(function(){(e.elements.thumb.imageContainer.clientHeight>20||e.elements.thumb.imageContainer.clientWidth>20)&&(e.sizeSpecifiedInCSS=!0)})),f(this,"setThumbContainerSizeAndPos",(function(){if(e.sizeSpecifiedInCSS){if(e.elements.thumb.imageContainer.clientHeight>20&&e.elements.thumb.imageContainer.clientWidth<20){var t=Math.floor(e.elements.thumb.imageContainer.clientHeight*e.thumbAspectRatio);e.elements.thumb.imageContainer.style.width="".concat(t,"px")}else if(e.elements.thumb.imageContainer.clientHeight<20&&e.elements.thumb.imageContainer.clientWidth>20){var r=Math.floor(e.elements.thumb.imageContainer.clientWidth/e.thumbAspectRatio);e.elements.thumb.imageContainer.style.height="".concat(r,"px")}}else{var i=Math.floor(e.thumbContainerHeight*e.thumbAspectRatio);e.elements.thumb.imageContainer.style.height="".concat(e.thumbContainerHeight,"px"),e.elements.thumb.imageContainer.style.width="".concat(i,"px")}e.setThumbContainerPos()})),f(this,"setThumbContainerPos",(function(){var t=e.player.elements.progress.getBoundingClientRect(),r=e.player.elements.container.getBoundingClientRect(),i=e.elements.thumb.container,n=r.left-t.left+10,o=r.right-t.left-i.clientWidth-10,a=e.mousePosX-t.left-i.clientWidth/2;a<n&&(a=n),a>o&&(a=o),i.style.left="".concat(a,"px")})),f(this,"setScrubbingContainerSize",(function(){var t=Fr(e.thumbAspectRatio,{width:e.player.media.clientWidth,height:e.player.media.clientHeight}),r=t.height;e.elements.scrubbing.container.style.width="".concat(t.width,"px"),e.elements.scrubbing.container.style.height="".concat(r,"px")})),f(this,"setImageSizeAndOffset",(function(t,r){if(e.usingSprites){var i=e.thumbContainerHeight/r.h;t.style.height=t.naturalHeight*i+"px",t.style.width=t.naturalWidth*i+"px",t.style.left="-".concat(r.x*i,"px"),t.style.top="-".concat(r.y*i,"px")}})),this.player=r,this.thumbnails=[],this.loaded=!1,this.lastMouseMoveTime=Date.now(),this.mouseDown=!1,this.loadedImages=[],this.elements={thumb:{},scrubbing:{}},this.load()}return i(t,[{key:"enabled",get:function(){return this.player.isHTML5&&this.player.isVideo&&this.player.config.previewThumbnails.enabled}},{key:"currentImageContainer",get:function(){return this.mouseDown?this.elements.scrubbing.container:this.elements.thumb.imageContainer}},{key:"usingSprites",get:function(){return Object.keys(this.thumbnails[0].frames[0]).includes("w")}},{key:"thumbAspectRatio",get:function(){return this.usingSprites?this.thumbnails[0].frames[0].w/this.thumbnails[0].frames[0].h:this.thumbnails[0].width/this.thumbnails[0].height}},{key:"thumbContainerHeight",get:function(){return this.mouseDown?Fr(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight}).height:this.sizeSpecifiedInCSS?this.elements.thumb.imageContainer.clientHeight:Math.floor(this.player.media.clientWidth/this.thumbAspectRatio/4)}},{key:"currentImageElement",get:function(){return this.mouseDown?this.currentScrubbingImageElement:this.currentThumbnailImageElement},set:function(t){this.mouseDown?this.currentScrubbingImageElement=t:this.currentThumbnailImageElement=t}}]),t}(),Rr={insertElements:function(t,r){var e=this;W(r)?yt(t,this.media,{src:r}):X(r)&&r.forEach((function(r){yt(t,e.media,r)}))},change:function(r){var e=this;pt(r,"sources.length")?(Qt.cancelRequests.call(this),this.destroy.call(this,(function(){e.options.quality=[],ft(e.media),e.media=null,tt(e.elements.container)&&e.elements.container.removeAttribute("class");var i=r.sources,n=r.type,o=t(i,1)[0],a=o.provider,l=void 0===a?dr.html5:a,s="html5"===l?n:"div",p="html5"===l?{}:{src:o.src};Object.assign(e,{provider:l,type:n,supported:Pt.check(n,l,e.config.playsinline),media:ht(s,p)}),e.elements.container.appendChild(e.media),G(r.autoplay)&&(e.config.autoplay=r.autoplay),e.isHTML5&&(e.config.crossorigin&&e.media.setAttribute("crossorigin",""),e.config.autoplay&&e.media.setAttribute("autoplay",""),ot(r.poster)||(e.poster=r.poster),e.config.loop.active&&e.media.setAttribute("loop",""),e.config.muted&&e.media.setAttribute("muted",""),e.config.playsinline&&e.media.setAttribute("playsinline","")),gr.addStyleHook.call(e),e.isHTML5&&Rr.insertElements.call(e,"source",i),e.config.title=r.title,Ar.setup.call(e),e.isHTML5&&Object.keys(r).includes("tracks")&&Rr.insertElements.call(e,"track",r.tracks),(e.isHTML5||e.isEmbed&&!e.supported.ui)&&gr.build.call(e),e.isHTML5&&e.media.load(),ot(r.previewThumbnails)||(Object.assign(e.config.previewThumbnails,r.previewThumbnails),e.previewThumbnails&&e.previewThumbnails.loaded&&(e.previewThumbnails.destroy(),e.previewThumbnails=null),e.config.previewThumbnails.enabled&&(e.previewThumbnails=new Nr(e))),e.fullscreen.update()}),!0)):this.debug.warn("Invalid source format")}},Lr=function(){function t(r,e){var i=this;if(o(this,t),f(this,"play",(function(){return K(i.media.play)?(i.ads&&i.ads.enabled&&i.ads.managerPromise.then((function(){return i.ads.play()})).catch((function(){return Nt(i.media.play())})),i.media.play()):null})),f(this,"pause",(function(){return i.playing&&K(i.media.pause)?i.media.pause():null})),f(this,"togglePlay",(function(t){return(G(t)?t:!i.playing)?i.play():i.pause()})),f(this,"stop",(function(){i.isHTML5?(i.pause(),i.restart()):K(i.media.stop)&&i.media.stop()})),f(this,"restart",(function(){i.currentTime=0})),f(this,"rewind",(function(t){i.currentTime-=J(t)?t:i.config.seekTime})),f(this,"forward",(function(t){i.currentTime+=J(t)?t:i.config.seekTime})),f(this,"increaseVolume",(function(t){i.volume=(i.media.muted?0:i.volume)+(J(t)?t:0)})),f(this,"decreaseVolume",(function(t){i.increaseVolume(-t)})),f(this,"airplay",(function(){Pt.airplay&&i.media.webkitShowPlaybackTargetPicker()})),f(this,"toggleControls",(function(t){if(i.supported.ui&&!i.isAudio){var r=wt(i.elements.container,i.config.classNames.hideControls),e=bt(i.elements.container,i.config.classNames.hideControls,void 0===t?void 0:!t);return e&&X(i.config.controls)&&i.config.controls.includes("settings")&&!ot(i.config.settings)&&lr.toggleMenu.call(i,!1),e!==r&&Mt.call(i,i.media,e?"controlshidden":"controlsshown"),!e}return!1})),f(this,"on",(function(t,r){Ct.call(i,i.elements.container,t,r)})),f(this,"once",(function(t,r){At.call(i,i.elements.container,t,r)})),f(this,"off",(function(t,r){It(i.elements.container,t,r)})),f(this,"destroy",(function(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(i.ready){var e=function(){document.body.style.overflow="",i.embed=null,r?(Object.keys(i.elements).length&&(ft(i.elements.buttons.play),ft(i.elements.captions),ft(i.elements.controls),ft(i.elements.wrapper),i.elements.buttons.play=null,i.elements.captions=null,i.elements.controls=null,i.elements.wrapper=null),K(t)&&t()):(Et.call(i),Qt.cancelRequests.call(i),gt(i.elements.original,i.elements.container),Mt.call(i,i.elements.original,"destroyed",!0),K(t)&&t.call(i.elements.original),i.ready=!1,setTimeout((function(){i.elements=null,i.media=null}),200))};i.stop(),clearTimeout(i.timers.loading),clearTimeout(i.timers.controls),clearTimeout(i.timers.resized),i.isHTML5?(gr.toggleNativeControls.call(i,!0),e()):i.isYouTube?(clearInterval(i.timers.buffering),clearInterval(i.timers.playing),null!==i.embed&&K(i.embed.destroy)&&i.embed.destroy(),e()):i.isVimeo&&(null!==i.embed&&i.embed.unload().then(e),setTimeout(e,200))}})),f(this,"supports",(function(t){return Pt.mime.call(i,t)})),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=Pt.touch,this.media=r,W(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||Z(this.media)||X(this.media))&&(this.media=this.media[0]),this.config=ut({},cr,t.defaults,e||{},function(){try{return JSON.parse(i.media.getAttribute("data-plyr-config"))}catch(t){return{}}}()),this.elements={container:null,fullscreen:null,captions:null,buttons:{},display:{},progress:{},inputs:{},settings:{popup:null,menu:null,panels:{},buttons:{}}},this.captions={active:null,currentTrack:-1,meta:new WeakMap},this.fullscreen={active:!1},this.options={speed:[],quality:[]},this.debug=new yr(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",Pt),!Q(this.media)&&tt(this.media))if(this.media.plyr)this.debug.warn("Target already setup");else if(this.config.enabled)if(Pt.check().api){var n=this.media.cloneNode(!0);n.autoplay=!1,this.elements.original=n;var a=this.media.tagName.toLowerCase(),l=null,s=null;switch(a){case"div":if(l=this.media.querySelector("iframe"),tt(l)){if(s=sr(l.getAttribute("src")),this.provider=function(t){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(t)?dr.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(t)?dr.vimeo:null}(s.toString()),this.elements.container=this.media,this.media=l,this.elements.container.className="",s.search.length){var p=["1","true"];p.includes(s.searchParams.get("autoplay"))&&(this.config.autoplay=!0),p.includes(s.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=p.includes(s.searchParams.get("playsinline")),this.config.youtube.hl=s.searchParams.get("hl")):this.config.playsinline=!0}}else this.provider=this.media.getAttribute(this.config.attributes.embed.provider),this.media.removeAttribute(this.config.attributes.embed.provider);if(ot(this.provider)||!Object.values(dr).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type="video";break;case"video":case"audio":this.type=a,this.provider=dr.html5,this.media.hasAttribute("crossorigin")&&(this.config.crossorigin=!0),this.media.hasAttribute("autoplay")&&(this.config.autoplay=!0),(this.media.hasAttribute("playsinline")||this.media.hasAttribute("webkit-playsinline"))&&(this.config.playsinline=!0),this.media.hasAttribute("muted")&&(this.config.muted=!0),this.media.hasAttribute("loop")&&(this.config.loop.active=!0);break;default:return void this.debug.error("Setup failed: unsupported type")}this.supported=Pt.check(this.type,this.provider,this.config.playsinline),this.supported.api?(this.eventListeners=[],this.listeners=new _r(this),this.storage=new rr(this),this.media.plyr=this,tt(this.elements.container)||(this.elements.container=ht("div",{tabindex:0}),ct(this.media,this.elements.container)),gr.migrateStyles.call(this),gr.addStyleHook.call(this),Ar.setup.call(this),this.config.debug&&Ct.call(this,this.elements.container,this.config.events.join(" "),(function(t){i.debug.log("event: ".concat(t.type))})),this.fullscreen=new fr(this),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&gr.build.call(this),this.listeners.container(),this.listeners.global(),this.config.ads.enabled&&(this.ads=new Mr(this)),this.isHTML5&&this.config.autoplay&&this.once("canplay",(function(){return Nt(i.play())})),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Nr(this))):this.debug.error("Setup failed: no support")}else this.debug.error("Setup failed: no support");else this.debug.error("Setup failed: disabled by config");else this.debug.error("Setup failed: no suitable element passed")}return i(t,[{key:"isHTML5",get:function(){return this.provider===dr.html5}},{key:"isEmbed",get:function(){return this.isYouTube||this.isVimeo}},{key:"isYouTube",get:function(){return this.provider===dr.youtube}},{key:"isVimeo",get:function(){return this.provider===dr.vimeo}},{key:"isVideo",get:function(){return"video"===this.type}},{key:"isAudio",get:function(){return"audio"===this.type}},{key:"playing",get:function(){return Boolean(this.ready&&!this.paused&&!this.ended)}},{key:"paused",get:function(){return Boolean(this.media.paused)}},{key:"stopped",get:function(){return Boolean(this.paused&&0===this.currentTime)}},{key:"ended",get:function(){return Boolean(this.media.ended)}},{key:"currentTime",get:function(){return Number(this.media.currentTime)},set:function(t){if(this.duration){var r=J(t)&&t>0;this.media.currentTime=r?Math.min(t,this.duration):0,this.debug.log("Seeking to ".concat(this.currentTime," seconds"))}}},{key:"buffered",get:function(){var t=this.media.buffered;return J(t)?t:t&&t.length&&this.duration>0?t.end(0)/this.duration:0}},{key:"seeking",get:function(){return Boolean(this.media.seeking)}},{key:"duration",get:function(){var t=parseFloat(this.config.duration),r=(this.media||{}).duration,e=J(r)&&r!==1/0?r:0;return t||e}},{key:"volume",get:function(){return Number(this.media.volume)},set:function(t){var r=t;W(r)&&(r=Number(r)),J(r)||(r=this.storage.get("volume")),J(r)||(r=this.config.volume),r>1&&(r=1),r<0&&(r=0),this.config.volume=r,this.media.volume=r,!ot(t)&&this.muted&&r>0&&(this.muted=!1)}},{key:"muted",get:function(){return Boolean(this.media.muted)},set:function(t){var r=t;G(r)||(r=this.storage.get("muted")),G(r)||(r=this.config.muted),this.config.muted=r,this.media.muted=r}},{key:"hasAudio",get:function(){return!this.isHTML5||!!this.isAudio||Boolean(this.media.mozHasAudio)||Boolean(this.media.webkitAudioDecodedByteCount)||Boolean(this.media.audioTracks&&this.media.audioTracks.length)}},{key:"speed",get:function(){return Number(this.media.playbackRate)},set:function(t){var r=this,e=null;J(t)&&(e=t),J(e)||(e=this.storage.get("speed")),J(e)||(e=this.config.speed.selected),e=function(){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:255;return Math.min(Math.max(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),t)}(e,this.minimumSpeed,this.maximumSpeed),this.config.speed.selected=e,setTimeout((function(){r.media.playbackRate=e}),0)}},{key:"minimumSpeed",get:function(){return this.isYouTube?Math.min.apply(Math,a(this.options.speed)):this.isVimeo?.5:.0625}},{key:"maximumSpeed",get:function(){return this.isYouTube?Math.max.apply(Math,a(this.options.speed)):this.isVimeo?2:16}},{key:"quality",get:function(){return this.media.quality},set:function(t){var r=this.config.quality,e=this.options.quality;if(e.length){var i=[!ot(t)&&Number(t),this.storage.get("quality"),r.selected,r.default].find(J),n=!0;if(!e.includes(i)){var o=Lt(e,i);this.debug.warn("Unsupported quality option: ".concat(i,", using ").concat(o," instead")),i=o,n=!1}r.selected=i,this.media.quality=i,n&&this.storage.set({quality:i})}}},{key:"loop",get:function(){return Boolean(this.media.loop)},set:function(t){var r=G(t)?t:this.config.loop.active;this.config.loop.active=r,this.media.loop=r}},{key:"source",get:function(){return this.media.currentSrc},set:function(t){Rr.change.call(this,t)}},{key:"download",get:function(){var t=this.config.urls.download;return nt(t)?t:this.source},set:function(t){nt(t)&&(this.config.urls.download=t,lr.setDownloadUrl.call(this))}},{key:"poster",get:function(){return this.isVideo?this.media.getAttribute("poster")||this.media.getAttribute("data-poster"):null},set:function(t){this.isVideo?gr.setPoster.call(this,t,!1).catch((function(){})):this.debug.warn("Poster can only be set for video")}},{key:"ratio",get:function(){if(!this.isVideo)return null;var t=Ut(Ht.call(this));return X(t)?t.join(":"):t},set:function(t){this.isVideo?W(t)&&Dt(t)?(this.config.ratio=Ut(t),Vt.call(this)):this.debug.error("Invalid aspect ratio specified (".concat(t,")")):this.debug.warn("Aspect ratio can only be set for video")}},{key:"autoplay",get:function(){return Boolean(this.config.autoplay)},set:function(t){var r=G(t)?t:this.config.autoplay;this.config.autoplay=r}},{key:"toggleCaptions",value:function(t){ur.toggle.call(this,t,!1)}},{key:"currentTrack",get:function(){var t=this.captions;return t.toggled?t.currentTrack:-1},set:function(t){ur.set.call(this,t,!1)}},{key:"language",get:function(){return(ur.getCurrentTrack.call(this)||{}).language},set:function(t){ur.setLanguage.call(this,t,!1)}},{key:"pip",get:function(){return Pt.pip?ot(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:"picture-in-picture"===this.media.webkitPresentationMode:null},set:function(t){if(Pt.pip){var r=G(t)?t:!this.pip;K(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(r?"picture-in-picture":"inline"),K(this.media.requestPictureInPicture)&&(!this.pip&&r?this.media.requestPictureInPicture():this.pip&&!r&&document.exitPictureInPicture())}}}],[{key:"supported",value:function(t,r,e){return Pt.check(t,r,e)}},{key:"loadSprite",value:function(t,r){return ir(t,r)}},{key:"setup",value:function(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null;return W(r)?i=Array.from(document.querySelectorAll(r)):Z(r)?i=Array.from(r):X(r)&&(i=r.filter(tt)),ot(i)?null:i.map((function(r){return new t(r,e)}))}}]),t}();function qr(t){t.on("timeupdate",(function(){return function(t){var r,e;null!=t&&null!==(r=t.config)&&void 0!==r&&null!==(e=r.mutedPreview)&&void 0!==e&&e.enabled||function(t){var r;0!==t.currentTime&&null!=t&&null!==(r=t.config)&&void 0!==r&&r.save_player_position&&localStorage.setItem("player-progress-".concat(Br(t)),t.currentTime)}(t)}(t)})),t.on("ready",(function(){return Dr(t)})),t.on("loadeddata",(function(){return Dr(t)}))}function Br(t){var r,e;return null==t||null===(r=t.config)||void 0===r||null===(e=r.blockAttributes)||void 0===e?void 0:e.id}function Dr(t){var r,e,i;if(null!=t&&null!==(r=t.config)&&void 0!==r&&r.save_player_position&&(null==t||null===(e=t.config)||void 0===e||null===(i=e.mutedPreview)||void 0===i||!i.enabled)){var n=function(t){return parseFloat(localStorage.getItem("player-progress-".concat(Br(t))))}(t);return t.hls&&n>=0&&t.hls.startLoad(n),t.duration&&(n=Math.min(n,t.duration)),!n||n<1?0:(t.currentTime=n,null!=t&&t.isVimeo&&setTimeout((function(){t.embed.setCurrentTime(n||0)}),0),n)}}Lr.defaults=JSON.parse(JSON.stringify(cr));var Ur=(null===(jr=window)||void 0===jr||null===(Tr=jr.prestoPlayer)||void 0===Tr||null===(Pr=Tr.i18n)||void 0===Pr?void 0:Pr.hide_chapters)||"Hide Chapters",Hr=(null===(Or=window)||void 0===Or||null===(Sr=Or.prestoPlayer)||void 0===Sr||null===(Cr=Sr.i18n)||void 0===Cr?void 0:Cr.show_chapters)||"Show Chapters";const Vr='<button class="plyr__controls__item plyr__control" type="button" data-plyr="chapters">\n<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" class="feather feather-list">\n <line x1="8" y1="6" x2="21" y2="6"></line><line x1="8" y1="12" x2="21" y2="12"></line>\n <line x1="8" y1="18" x2="21" y2="18"></line><line x1="3" y1="6" x2="3.01" y2="6"></line>\n <line x1="3" y1="12" x2="3.01" y2="12"></line><line x1="3" y1="18" x2="3.01" y2="18"></line>\n</svg>\n<span class="label--pressed plyr__tooltip" role="tooltip">'.concat(Ur,'</span>\n<span class="label--not-pressed plyr__tooltip" role="tooltip">').concat(Hr,"</span>\n</button>\n");var $r,Qr,Yr;const Jr='\n<div class="presto-player-toc__wrapper">\n <div class="presto-player-toc__cover" data-player-toc-cover></div>\n <div class="presto-player-toc">\n <div class="presto-player-toc__title">'.concat((null===($r=window)||void 0===$r||null===(Qr=$r.prestoPlayer)||void 0===Qr||null===(Yr=Qr.i18n)||void 0===Yr?void 0:Yr.chapters)||"Chapters",'</div>\n <div class="presto-player-toc__list" data-player-toc></div>\n </div>\n</div>');function Wr(t){var r,e,i,o,l,s,p,u,c,d,h,y,f,v=0,g={},_=null,m=0;if(i=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!t.length)return t;var r={};return t.forEach((function(t){var e,i=t.time.split(":");i.length>1&&(e=60*parseInt(i[0])),r[parseInt(i[1])+parseInt(e)]=t})),r}((null===(r=o=t.detail.plyr)||void 0===r||null===(e=r.config)||void 0===e?void 0:e.chapters)||[]),"html5"!==o.provider||o.duration){if(i&&Object.keys(i).length){l=jQuery(o.elements.container).closest(".presto-player__wrapper").find(".plyr");var b=(f=jQuery(o.elements.controls)).find(".plyr__time");b=b.length?b:f.find(".plyr__progress__container"),(c=l.find('[data-plyr="chapters"]')).length||(c=jQuery(Vr).insertAfter(b)),(p=l.find(".presto-player-toc__wrapper")).length||(p=jQuery(Jr).appendTo(l)),d=p.find("[data-player-toc-cover]"),u=p.find("[data-player-toc]"),s=l.find(".plyr__progress__container");var w,k=jQuery('<div class="presto-player__chapters"></div>').appendTo(s);h=jQuery('<div class="presto-player__chapter-markers"></div>').appendTo(k),w=0,u.find(".presto-player-toc__chapter").length||(Object.keys(i).forEach((function(t){w++;var r=jQuery(function(t){var r=t.name,e=void 0===r?"Untitled":r,i=t.order,n=void 0===i?1:i,o=t.highlight;return'<div class="presto-player-toc__chapter '.concat(void 0!==o&&o?"is-highlighted":"",'" data-chapter-item>\n \n <span class="presto-player-toc__order">\n ').concat(n,'\n </span>\n <span class="presto-player-toc__name">\n ').concat(e,"\n </div>\n</div>")}({name:i[t].title,order:w})).appendTo(u);r.data("presto-player-timestamp",t),g[t]=r,r.on("click",(function(){o.currentTime=parseFloat(t),o.play(),j(!1)}))})),y=p.find("[data-chapter-item]")),z(),c.off("click"),c.on("click",j),x(),o.off("timeupdate"),o.on("timeupdate",x),_=window.setInterval((function(){m++,o.duration&&(z(),window.clearInterval(_)),m>50&&window.clearInterval(_)}),100),d.off("click"),d.on("click",(function(){return j(!1)})),u.off("mouseleave"),u.on("mouseleave",(function t(){if(o.playing){var r=setTimeout((function(){j(!1),u.off("mouseleave",t)}),2e3);u.on("mouseenter",(function(){clearTimeout(r)}))}}))}}else o.on("loadedmetadata",Wr);function x(){v=o.currentTime;var t=Object.keys(i).filter((function(t){return t<=v})).map((function(t){return parseInt(t,10)})),r=Math.max.apply(Math,a(t));y&&y.removeClass("is-highlighted"),jQuery(g[r||0]).addClass("is-highlighted")}function z(){o.duration&&(Object.keys(i).forEach((function(t){if(parseInt(t)&&!h.find("[data-timestamp=".concat(t,"]")).length){var r,e,n,a,l=i[t],s=parseInt(t)/o.duration*100,p=jQuery((r={position:s,name:"".concat(l.title)},e=r.position,n=r.name,a=void 0===n?"":n,'<div class="presto-player-progress__marker plyr__controls__item plyr__control" style="left: '.concat(void 0===e?0:e,'%" data-timeline-marker>\n <span class="label--not-pressed plyr__tooltip" role="tooltip">').concat(a,"</span>\n </div>"))).prependTo(h);p.attr("data-timestamp",t),p.data("timestamp",t),p.on("click",(function(){o.currentTime=parseInt(t),o.play()}))}})),p.find("[data-timeline-marker]"))}function j(t){void 0!==n(t)?p.toggleClass("is-showing",t):p.toggleClass("is-showing")}}var Gr;function Kr(t){Gr=t,jQuery(Gr.elements.container).closest(".presto-player__wrapper"),Gr.on("ready",Wr),Gr.on("controlshidden",Xr),Gr.on("controlsshown",Zr)}function Xr(t){var r,e,i;jQuery(null==t||null===(r=t.detail)||void 0===r||null===(e=r.plyr)||void 0===e||null===(i=e.elements)||void 0===i?void 0:i.container).closest(".presto-player__wrapper").addClass("presto-player--hide-controls")}function Zr(t){var r,e,i;jQuery(null==t||null===(r=t.detail)||void 0===r||null===(e=r.plyr)||void 0===e||null===(i=e.elements)||void 0===i?void 0:i.container).closest(".presto-player__wrapper").removeClass("presto-player--hide-controls")}function te(t){var e,i;return r(r(r({video_current_time:parseInt((null==t?void 0:t.currentTime)||0),video_provider:(null==t?void 0:t.provider)||"html5"},null!=t&&t.duration?{video_duration:parseInt(null==t?void 0:t.duration)}:{}),null!=t&&t.source?{video_url:null==t?void 0:t.source}:{}),null!=t&&null!==(e=t.config)&&void 0!==e&&e.title?{video_title:null==t||null===(i=t.config)||void 0===i?void 0:i.title}:{})}function re(t){var r;null===(r=window)||void 0===r||r.gtag("event","Play",te(t))}function ee(t){var r;null===(r=window)||void 0===r||r.gtag("event","Pause",te(t))}function ie(t){var r;null===(r=window)||void 0===r||r.gtag("event","Player Load",te(t))}var ne,oe={25:!1,50:!1,75:!1,100:!1};function ae(t){if(t.currentTime){var r=parseFloat(t.currentTime)/parseFloat(t.duration)*100;Object.keys(oe).forEach((function(e){var i;!oe[e]&&r>=parseInt(e)&&(oe[e]=!0,null===(i=window)||void 0===i||i.gtag("event","".concat(e," Percent Played"),te(t)))}))}}var le="presto-player.analytics",se="";function pe(t){(ne=t).config.analytics&&(wp.hooks.hasAction("presto.nonceRefreshed",le)||wp.hooks.addAction("presto.nonceRefreshed",le,(function(t){se=t})),wp.hooks.hasAction("presto.playerPlay",le)||wp.hooks.addAction("presto.playerPlay",le,ue),wp.hooks.hasAction("presto.playerEnded",le)||wp.hooks.addAction("presto.playerEnded",le,ue),wp.hooks.hasAction("presto.playerHidden",le)||wp.hooks.addAction("presto.playerHidden",le,ue),wp.hooks.hasAction("presto.playerPause",le)||wp.hooks.addAction("presto.playerPause",le,ue),wp.hooks.hasAction("presto.playerSeeked",le)||wp.hooks.addAction("presto.playerSeeked",le,ue))}function ue(t){ce(function(t){var e,i;return r(r(r({video_current_time:parseInt((null==t?void 0:t.currentTime)||0),video_provider:(null==t?void 0:t.provider)||"html5"},null!=t&&t.duration?{video_duration:parseInt(null==t?void 0:t.duration)}:{}),null!=t&&t.source?{video_url:null==t?void 0:t.source}:{}),null!=t&&null!==(e=t.config)&&void 0!==e&&e.title?{video_title:null==t||null===(i=t.config)||void 0===i?void 0:i.title}:{})}(t))}function ce(t){var r,e,i,n,o,a,l,s;if(se){var p,u,c=new FormData;c.append("action","presto_player_progress"),c.append("duration",null==t?void 0:t.video_current_time),c.append("video_id",null===(r=ne)||void 0===r||null===(e=r.config)||void 0===e?void 0:e.id),c.append("nonce",se),null!==(i=window)&&void 0!==i&&null!==(n=i.prestoPlayer)&&void 0!==n&&n.debug_navigator?jQuery.ajax({type:"POST",url:null===(o=window)||void 0===o||null===(a=o.prestoPlayer)||void 0===a?void 0:a.ajaxurl,dataType:"json",cache:!1,data:{action:"presto_player_progress",duration:null==t?void 0:t.video_current_time,video_id:null===(l=ne)||void 0===l||null===(s=l.config)||void 0===s?void 0:s.id,nonce:se}}):navigator.sendBeacon(null===(p=window)||void 0===p||null===(u=p.prestoPlayer)||void 0===u?void 0:u.ajaxurl,c)}}function de(t){var r,e;null!==(r=window)&&void 0!==r&&null!==(e=r.prestoPlayer)&&void 0!==e&&e.isPremium&&(function(){var t;null!==(t=window)&&void 0!==t&&t.gtag&&(wp.hooks.addAction("presto.playerPlay","presto-player",re),wp.hooks.addAction("presto.playerPause","presto-player",ee),wp.hooks.addAction("presto.playerReady","presto-player",ie),wp.hooks.addAction("presto.playerTimeUpdate","presto-player",ae))}(),pe(t))}const he=function(t){t.on("ready",(function(){var r,e,i,n;null==t||null===(r=t.config)||void 0===r||!r.logo||null!=t&&null!==(e=t.config)&&void 0!==e&&e.logo_added||(jQuery('<img src="'.concat(null==t||null===(i=t.config)||void 0===i?void 0:i.logo,'" class="presto-player__logo is-bottom-right" part="logo">')).insertBefore(null==t||null===(n=t.elements)||void 0===n?void 0:n.controls),t.config.logo_added=!0)}))};function ye(t){var r;null!=t&&null!==(r=t.config)&&void 0!==r&&r.poster&&(t.poster=t.config.poster)}const fe=function(t){t.on("ready",(function(){ve("Ready",t)})),t.on("play",(function(){ve("Play",t)})),t.on("playing",(function(){ve("Playing",t)})),t.on("pause",(function(){ve("Pause",t)})),t.on("ended",(function(){ve("Ended",t)})),t.on("seeked",(function(){ve("Seeked",t)})),t.on("timeupdate",(function(){ve("TimeUpdate",t)})),t.on("enterfullscreen",(function(){ve("EnterFullScreen",t)})),t.on("exitfullscreen",(function(){ve("ExitFullScreen",t)})),document.addEventListener("visibilitychange",(function(){ve("hidden"===document.visibilityState?"Hidden":"Visible",t)})),t.on("statechange",(function(r){var e;switch(null==r||null===(e=r.detail)||void 0===e?void 0:e.code){case 0:ve("Ended",t);break;case 1:ve("Play",t);break;case 2:ve("Pause",t)}}))};function ve(t,r){window.wp.hooks.doAction("presto.player".concat(t),r)}let ge,_e=Date.now();const me=t=>{var r,e;if(!t.automations)return;(null===(e=null===(r=null===window||void 0===window?void 0:window.wp)||void 0===r?void 0:r.hooks)||void 0===e?void 0:e.hasAction("presto.nonceRefreshed","presto-player.progress"))||window.wp.hooks.addAction("presto.nonceRefreshed","presto-player.progress",(t=>{ge=t})),null===window||void 0===window||window.wp.hooks.addAction("presto.playerTimeUpdate","presto-player",n),null===window||void 0===window||window.wp.hooks.addAction("presto.playerEnded","presto-player",(t=>n(t,100)));let i={0:!1,10:!1,20:!1,30:!1,40:!1,50:!1,60:!1,70:!1,80:!1,90:!1,100:!1};function n(t,r=null){var e;ge&&(null===(e=null==t?void 0:t.config)||void 0===e?void 0:e.ajaxProgress)&&(r||(r=parseFloat(t.currentTime)/parseFloat(t.duration)*100),t.watched=t.watched||{},Object.keys(i).forEach((e=>{var i,n,o,a,l,s,p,u,c;const d=parseInt(e);if(!t.watched[d]&&r>=d){t.watched[d]=!0;let r=new FormData;if(r.append("action","presto_player_progress_percent"),r.append("id",null===(i=null==t?void 0:t.config)||void 0===i?void 0:i.id),r.append("percent",d.toString()),r.append("visit_time",_e.toString()),r.append("nonce",ge),(null===(n=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===n?void 0:n.debug)&&console.log(`${d} percent watched.`),null===(o=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===o?void 0:o.debug_navigator)window.jQuery.ajax({type:"POST",url:null===(u=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===u?void 0:u.ajaxurl,dataType:"json",cache:!1,data:{action:"presto_player_progress_percent",id:null===(c=null==t?void 0:t.config)||void 0===c?void 0:c.id,visit_time:_e,percent:d,nonce:ge}});else{let e=navigator.sendBeacon(null===(a=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===a?void 0:a.ajaxurl,r);(null===(l=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===l?void 0:l.debug)&&(e?console.log("Successfully queued progress:",{id:null===(s=null==t?void 0:t.config)||void 0===s?void 0:s.id,percent:d,visit_time:_e,nonce:ge}):console.log("Failed to queue progress",{id:null===(p=null==t?void 0:t.config)||void 0===p?void 0:p.id,percent:d,visit_time:_e,nonce:ge}))}}})))}};let be=!1,we=!1;function ke(t){return t.status>=200&&t.status<300?Promise.resolve(t):Promise.reject(new Error(t.statusText))}const xe=t=>{var r,e;(t.config.analytics||t.config.automations)&&(null===(e=null===(r=null===window||void 0===window?void 0:window.wp)||void 0===r?void 0:r.hooks)||void 0===e||e.addAction("presto.playerPlaying","presto-player",(()=>{null===window||void 0===window||window.wp.hooks.doAction("presto.playerGetNonce")})),null===window||void 0===window||window.wp.hooks.addAction("presto.playerGetNonce","presto-player",(()=>{var t;be||we||(we=!0,fetch(`${null===(t=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===t?void 0:t.ajaxurl}?action=presto_refresh_progress_nonce`).then(ke).then((t=>t.json())).then((({data:t})=>{null===window||void 0===window||window.wp.hooks.doAction("presto.nonceRefreshed",t),be=!0})).catch((function(t){console.log("Request failed",t)})).finally((()=>{we=!1})))})))},ze=function(t){var r=window.navigator.userAgent;if(r.match(/iPad/i)||r.match(/iPhone/i)){var e=function(t,r){for(var e,i,n,o=null==t||null===(e=t.elements)||void 0===e||null===(i=e.container)||void 0===i||null===(n=i.getRootNode())||void 0===n?void 0:n.host;(null!=o?o.nodeType:void 0)===Node.ELEMENT_NODE&&"BODY"!==o.tagName&&"HTML"!==o.tagName;)r?o.classList.add("presto-player-fullscreen-open"):o.classList.remove("presto-player-fullscreen-open"),o=o.parentNode};wp.hooks.addAction("presto.playerEnterFullScreen","presto-player",(function(){var r;null!=t&&null!==(r=t.fullscreen)&&void 0!==r&&r.active&&e(t,!0)})),wp.hooks.addAction("presto.playerExitFullScreen","presto-player",(function(){var r;null!=t&&null!==(r=t.fullscreen)&&void 0!==r&&r.active||e(t,!1)}))}},je=function(){var t=s(regeneratorRuntime.mark((function t(r){var e,i,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("ResizeObserver"in window!=0){t.next=5;break}return t.next=3,import("./p-58f5339e.js");case 3:window.ResizeObserver=t.sent.ResizeObserver;case 5:if(n=new ResizeObserver((function(t){var r,e=p(t);try{for(e.s();!(r=e.n()).done;){var i=r.value,n=i.contentRect;jQuery(i.target).find(".plyr__menu__container").css({maxHeight:"".concat(n.height-48,"px")})}}catch(t){e.e(t)}finally{e.f()}})),null!=r&&null!==(e=r.elements)&&void 0!==e&&e.container){t.next=8;break}return t.abrupt("return");case 8:n.observe(null==r||null===(i=r.elements)||void 0===i?void 0:i.container),r.on("playing",(function(){var t,e,i=null==r||null===(t=r.elements)||void 0===t?void 0:t.container.getBoundingClientRect();jQuery(null==r||null===(e=r.elements)||void 0===e?void 0:e.container).find(".plyr__menu__container").css({maxHeight:"".concat(i.height-48,"px")})}));case 10:case"end":return t.stop()}}),t)})));return function(r){return t.apply(this,arguments)}}();function Te(t){var e,i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r(r(r({},n),{iconUrl:"".concat(null===(e=window)||void 0===e||null===(i=e.prestoPlayer)||void 0===i?void 0:i.plugin_url,"img/sprite.svg")}),{chapters:(null==n?void 0:n.chapters)||[],controls:(null==n?void 0:n.controls)||[],settings:Object.keys((null==n?void 0:n.settings)||{}).length?n.settings:{}}),a=new Lr(t,o);return"undefined"!=typeof learndash_video_data&&import("./p-fc9022d1.js").then((function(t){(0,t.default)(a)})),"undefined"!=typeof _tutorobject&&import("./p-f0bc72f2.js").then((function(t){(0,t.default)(a)})),fe(a),ze(a),je(a),he(a),ye(a),Kr(a),prestoPlayer.isAdmin||(xe(a),me(o),qr(a),de(a)),a}function Pe(t){return"string"==typeof t&&t.includes(".m3u8")}const Oe=class{constructor(t){u(this,t),this.previouslyPlaying=!1}async play(){return this.shouldLazyLoad=!1,this.player.play()}async restart(){return this.shouldLazyLoad=!1,this.player.restart()}async pause(){return this.player.pause()}async stop(){return this.player.stop()}async fullscreenToggle(t){return this.player.fullscreen.toggle(t)}async on(t,r){return this.player.on(t,r)}async off(t,r){return this.player.off(t,r)}handleStickyChange(){(function(t){for(var r=[];t.parentNode&&"body"!=t.parentNode.nodeName.toLowerCase();)r.push(t=t.parentNode);return r})(this.el).forEach((t=>{t.classList.toggle("presto-sticky-parent",this.isSticky)}))}getConfig(){return Object.assign(Object.assign({},function({preset:t={},chapters:r,branding:e,src:i,analytics:n,automations:o,autoplay:a,blockAttributes:l={},provider:s="",provider_video_id:p="",youtube:u,type:c,isAdmin:d,i18n:h,storage:y={enabled:!d,key:`presto-player-${t.id}`}}){var f,v,g,_;const m=["settings"],b=[...["youtube","vimeo"].includes(s)?["pip"]:[]],w=["play-large","rewind","play","fast-forward","progress","current-time","mute","volume","captions","settings","pip","fullscreen"].filter((r=>((null==t?void 0:t[r])||m.includes(r))&&!b.includes(r)));(null===(f=null==l?void 0:l.mutedPreview)||void 0===f?void 0:f.enabled)&&(y={enabled:!1});let k=Object.assign(Object.assign(Object.assign(Object.assign({id:null==l?void 0:l.id,title:(null==l?void 0:l.title)||"",blockAttributes:Object.assign(Object.assign({},l),{type:c}),src:i,ajaxProgress:!0,analytics:n,automations:o,mutedPreview:{enabled:null===(v=null==l?void 0:l.mutedPreview)||void 0===v?void 0:v.enabled},chapters:r,controls:w,settings:["captions","quality","loop",...(null==t?void 0:t.speed)?["speed"]:[]],hideControls:null==t?void 0:t.auto_hide,captions:{active:null==t?void 0:t.captions_enabled,language:"auto",update:!1},logo:null==e?void 0:e.logo,logo_width:null==e?void 0:e.logo_width,hide_logo:null==t?void 0:t.hide_logo,lazy_load_youtube:null==t?void 0:t.lazy_load_youtube,save_player_position:!!(null==t?void 0:t.save_player_position),sticky_scroll:null==t?void 0:t.sticky_scroll,play_video_viewport:null==t?void 0:t.play_video_viewport,autoplay:!(!a||(null===(g=window.wp)||void 0===g?void 0:g.blocks))},s?{provider:s}:{}),p?{provider_video_id:p}:{}),(null==l?void 0:l.poster)?{poster:l.poster}:{}),{invertTime:!0,storage:y,resetOnEnd:!!(null==t?void 0:t.reset_on_end),vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1,customControls:!0,premium:!1,playsinline:!!(null==l?void 0:l.playsInline)},youtube:{rel:0,showinfo:0,iv_load_policy:3,modestbranding:1,customControls:!0,noCookie:!!(null==u?void 0:u.noCookie),playsinline:!!(null==l?void 0:l.playsInline)},tooltips:{controls:!0,seek:!0},i18n:h});return(null===(_=null===window||void 0===window?void 0:window.wp)||void 0===_?void 0:_.hooks)&&(k=window.wp.hooks.applyFilters("presto.playerSettings",k)),k}({preset:this.preset,chapters:this.chapters,branding:this.branding,analytics:!!this.analytics,automations:!!this.automations,autoplay:!this.isAdmin&&!!this.autoplay,blockAttributes:this.blockAttributes,provider:this.provider,youtube:this.youtube,provider_video_id:this.provider_video_id,i18n:this.i18n})),this.iconUrl?{iconUrl:this.iconUrl}:{})}getPlayerData(){return{selector:this.playerEl,src:this.src||"",preload:this.preload,provider:this.provider,config:this.getConfig(),isAdmin:this.isAdmin}}async createPlayer(){return await(t=this.getPlayerData(),e=t.config,i=t.selector,n=t.src,o=t.preload,n&&Pe(n)?import("./p-2e1648a9.js").then((function(t){return(0,t.default)({config:e,selector:i,src:n,preload:o})})):new Promise((function(t){return t(new Te(i,r({},e)))})));var t,e,i,n,o}handlePlayerElementChange(){(({src:t,el:r,preload:e,currentTime:i})=>{if(!r.getAttribute("hls_loaded")&&["metadata","none"].includes(e)&&Pe(t)){if(i>0)return r.style.height=null,r.style.paddingBottom=null,void r.setAttribute("hls_loaded","1");r.style.height="0px",r.style.paddingBottom="56.25%"}})({src:this.src,el:this.playerEl,preload:this.preload,currentTime:this.currentTime})}handleMutedPreview(t){var r,e,i,n,o,a,l;this.player&&!this.isAdmin&&(!t&&this.preset.captions_enabled&&setTimeout((()=>{var t;this.player.toggleCaptions(null===(t=null==this?void 0:this.preset)||void 0===t?void 0:t.captions_enabled)}),0),(null===(i=null===(e=null===(r=this.originalConfig)||void 0===r?void 0:r.blockAttributes)||void 0===e?void 0:e.mutedPreview)||void 0===i?void 0:i.enabled)&&(({player:t,mutedPreview:r,captions:e,progress:i,savePosition:n,onPlay:o})=>{var a=window.navigator.userAgent;if(!a.match(/iPad/i)&&!a.match(/iPhone/i)){t.config.mutedPreview.enabled=r,t.muted=r,t.loop=r,t.config.ajaxProgress=!r&&i,t.config.save_player_position=!r&&n;try{t.toggleCaptions(!!r&&!!e)}catch(t){}return setTimeout((()=>{Dr(t)||t.restart(),setTimeout((()=>{t.muted=r,o()}),0)}),0),t}console.log("ios device, do not do muted autoplay")})({player:this.player,mutedPreview:this.mutedPreview,captions:!!(null===(o=null===(n=this.blockAttributes)||void 0===n?void 0:n.mutedPreview)||void 0===o?void 0:o.captions),progress:null===(a=this.originalConfig)||void 0===a?void 0:a.ajaxProgress,savePosition:null===(l=this.originalConfig)||void 0===l?void 0:l.save_player_position,onPlay:()=>this.play()}))}onPlayerReady(){var t,r;this.observer&&(this.observer.disconnect(),this.observer.observe(this.el)),this.currentTime=this.player.currentTime,this.duration=this.player.duration,this.mutedPreview=null===(r=null===(t=this.blockAttributes)||void 0===t?void 0:t.mutedPreview)||void 0===r?void 0:r.enabled,this.player.on("timeupdate loadedmetadata",(()=>{this.currentTime=this.player.currentTime,this.duration=this.player.duration})),this.player.on("playing",(()=>this.playClass="presto-player--playing")),this.player.on("pause",(()=>this.playClass="presto-player--paused")),this.player.on("ended",(()=>this.playClass="presto-player--ended"))}handlePlayerEvents(t){t.on("ready",(t=>{this.player=t.detail.plyr,this.onPlayerReady()}))}handleLazyLoadChange(){"youtube"!==this.provider||this.shouldLazyLoad||this.isAdmin||setTimeout((()=>{this.onReload("play")}),50)}shouldLazyLoadVideo(){var t,r,e;return"youtube"===this.provider&&!this.autoplay&&!(null===(r=null===(t=this.blockAttributes)||void 0===t?void 0:t.mutedPreview)||void 0===r?void 0:r.enabled)&&!!(null===(e=this.preset)||void 0===e?void 0:e.lazy_load_youtube)}componentWillLoad(){var t,r;const e=null===(t=this.el.children)||void 0===t?void 0:t[0];e&&e.classList&&e.classList.contains("presto-iframe-fallback-container")&&e.remove(),this.shouldLazyLoad=this.shouldLazyLoadVideo(),this.i18n=null===(r=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===r?void 0:r.i18n,this.originalConfig||(this.originalConfig=this.getConfig()),this.trackIntersection()}async componentDidLoad(){setTimeout((()=>{this.initialize()}),0)}async initialize(){const t=await this.createPlayer();return this.handlePlayerEvents(t),this.syncVideoHeight(),((t,r)=>{if(!r)return;const e=document.createElement("style");t.shadowRoot.append(e),e.appendChild(document.createTextNode(r))})(this.el,this.css),t}async onReload(t){const r=await this.initialize();"play"==t&&r.on("ready",(()=>{this.play(),r.muted=!0,r.muted=!1,r.off("ready",this.play)}))}async syncVideoHeight(){if("ResizeObserver"in window==0){const t=await import("./p-58f5339e.js");window.ResizeObserver=t.ResizeObserver}new ResizeObserver((()=>{this.isSticky||(this.videoHeight=this.el.getBoundingClientRect().height)})).observe(this.el)}playVideoOnlyInViewport(){var t;!this.isAdmin&&(null===(t=this.preset)||void 0===t?void 0:t.play_video_viewport)&&this.player&&("visible"===document.visibilityState?this.observer.observe(this.el):(this.player.playing&&(this.previouslyPlaying=!0),this.pause(),this.observer.disconnect()))}trackIntersection(){this.observer=new IntersectionObserver((t=>{this.handleVisibilityIntersection(null==t?void 0:t[0])})),this.observer.observe(this.el)}handleVisibilityIntersection(t){t&&(this.handleStickyScroll(t),this.handleVisibilityPlayChange(t))}handleStickyScroll(t){var r,e;if(!(null===(r=this.preset)||void 0===r?void 0:r.sticky_scroll))return;if(this.isAdmin||this.mutedPreview||!(null===(e=null==this?void 0:this.player)||void 0===e?void 0:e.playing))return void(this.isSticky=!1);let i=t.boundingClientRect;if(this.isSticky=i.height<-i.top,"visible"===document.visibilityState&&this.isSticky&&this.player){const t=()=>{window.removeEventListener("scroll",t),this.player.paused&&(this.isSticky=!1)};this.player.once("pause",(()=>{window.addEventListener("scroll",t)}))}}handleVisibilityPlayChange(t){var r,e,i;if(!this.isAdmin&&(null===(r=this.preset)||void 0===r?void 0:r.play_video_viewport)&&(!this.player&&this.originalConfig.autoplay&&(this.previouslyPlaying=!0,this.autoplay=!!(null==t?void 0:t.isIntersecting)),this.player)){if(null==t?void 0:t.isIntersecting)return this.originalConfig.autoplay&&(this.autoplay=!0),this.previouslyPlaying&&this.play(),void(this.previouslyPlaying=!1);if("visible"!==document.visibilityState||!this.isSticky){if(null===(i=null===(e=this.blockAttributes)||void 0===e?void 0:e.mutedPreview)||void 0===i?void 0:i.enabled)return this.previouslyPlaying=!0,this.pause(),void this.player.once("playing",(()=>{this.previouslyPlaying=!0,this.pause()}));this.player.playing&&(this.previouslyPlaying=!0),this.pause()}}}renderMutedOverlay(){var t;if(this.player&&this.mutedPreview&&!this.isAdmin)return c("presto-muted-overlay",{mutedOverlay:null===(t=this.player.config.blockAttributes)||void 0===t?void 0:t.mutedOverlay,preset:this.preset,onPlayVideo:()=>{this.mutedPreview=!1,this.play()}})}renderVideo(){var t;switch(this.provider){case"vimeo":return c("presto-vimeo",{player:this.player,getRef:t=>this.playerEl=t,poster:this.poster,src:this.src});case"youtube":return c("presto-youtube",{onReload:t=>this.onReload(null==t?void 0:t.detail),player:this.player,getRef:t=>this.playerEl=t,lazyLoad:this.shouldLazyLoad,poster:this.poster,src:this.src});case"bunny":return c("presto-bunny",{thumbnail:null===(t=null==this?void 0:this.bunny)||void 0===t?void 0:t.thumbnail,getRef:t=>this.playerEl=t,player:this.player,autoplay:this.autoplay,preload:this.preload,poster:this.poster,playsinline:this.playsinline,src:this.src,tracks:this.tracks});default:return c("presto-video",{getRef:t=>this.playerEl=t,player:this.player,autoplay:this.autoplay,preload:this.preload,poster:this.poster,playsinline:this.playsinline,src:this.src,tracks:this.tracks})}}renderCTA(){var t,r,e;if((null===(t=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===t?void 0:t.isPremium)&&!this.isAdmin&&(null===(e=null===(r=this.preset)||void 0===r?void 0:r.email_collection)||void 0===e?void 0:e.enabled))return c("presto-cta-overlay",{direction:this.direction,player:this.player,preset:this.preset,i18n:this.i18n,onPlayVideo:()=>{this.mutedPreview=!1,this.play()},onRewatchVideo:()=>{this.mutedPreview=!1},"current-time":this.currentTime,duration:this.duration})}renderEmailOverlay(){var t,r;if((null===(t=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===t?void 0:t.isPremium)&&!this.isAdmin&&!(null===(r=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===r?void 0:r.logged_in))return c("presto-email-overlay",{direction:this.direction,player:this.player,preset:this.preset,videoId:this.video_id,i18n:this.i18n,onPlayVideo:()=>{this.mutedPreview=!1,this.play()},currentTime:this.currentTime,duration:this.duration})}renderActionBar(){var t,r;if(null===(r=null===(t=this.preset)||void 0===t?void 0:t.action_bar)||void 0===r?void 0:r.enabled)return c("presto-action-bar",{config:this.preset.action_bar,currentTime:this.currentTime,duration:this.duration,youtube:this.youtube})}stickyPositionClass(){var t,r;return this.isSticky?(null===(t=this.preset)||void 0===t?void 0:t.sticky_scroll_position)?`presto-sticky--${null===(r=this.preset)||void 0===r?void 0:r.sticky_scroll_position.replace(/\s+/g,"-")}`:"presto-sticky--bottom-right":""}render(){var t,r,e,i,n;return c(d,{style:{height:this.isSticky?`${this.videoHeight}px`:"auto"}},c("div",{part:"wrapper",dir:this.direction,class:`presto-player__wrapper fitvidsignore\n presto-video-id-${this.video_id}\n ${this.isSticky?"presto-sticky":""}\n ${this.stickyPositionClass()}\n ${"rtl"===this.direction?"rtl":""}\n ${!!(null===(t=this.preset)||void 0===t?void 0:t.skin)&&`skin-${null===(r=this.preset)||void 0===r?void 0:r.skin}`}\n ${(null===(e=this.preset)||void 0===e?void 0:e.hide_youtube)?"hide-youtube-ui":""}\n ${(null===(i=this.preset)||void 0===i?void 0:i.caption_style)?`caption-style-${null===(n=this.preset)||void 0===n?void 0:n.caption_style}`:""}\n ${this.mutedPreview?"is-muted-overlay":""}\n ${this.playClass?this.playClass:""}`},c("div",null,c("slot",{name:"player-start"}),this.renderCTA(),this.renderEmailOverlay(),c("slot",{name:"player-before-video"}),this.renderVideo(),c("slot",{name:"player-after-video"}),this.renderActionBar(),this.renderMutedOverlay(),c("slot",{name:"player-end"}))))}get el(){return h(this)}static get watchers(){return{isSticky:["handleStickyChange"],playerEl:["handlePlayerElementChange"],currentTime:["handlePlayerElementChange"],mutedPreview:["handleMutedPreview"],shouldLazyLoad:["handleLazyLoadChange"]}}};Oe.style='@charset "UTF-8";@keyframes plyr-progress{to{background-position:var(--plyr-progress-loading-size, 25px) 0}}@keyframes plyr-popup{0%{opacity:0.5;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes plyr-fade-in{from{opacity:0}to{opacity:1}}.plyr{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;align-items:center;direction:ltr;display:flex;flex-direction:column;font-family:var(--plyr-font-family, inherit);font-variant-numeric:tabular-nums;font-weight:var(--plyr-font-weight-regular, 400);line-height:var(--plyr-line-height, 1.7);max-width:100%;min-width:200px;position:relative;text-shadow:none;transition:box-shadow 0.3s ease;z-index:0}.plyr video,.plyr audio,.plyr iframe{display:block;height:100%;width:100%}.plyr button{font:inherit;line-height:inherit;width:auto}.plyr:focus{outline:0}.plyr--full-ui{box-sizing:border-box}.plyr--full-ui *,.plyr--full-ui *::after,.plyr--full-ui *::before{box-sizing:inherit}.plyr--full-ui a,.plyr--full-ui button,.plyr--full-ui input,.plyr--full-ui label{touch-action:manipulation}.plyr__badge{background:var(--plyr-badge-background, #4a5464);border-radius:var(--plyr-badge-border-radius, 2px);color:var(--plyr-badge-text-color, #fff);font-size:var(--plyr-font-size-badge, 9px);line-height:1;padding:3px 4px}.plyr--full-ui ::-webkit-media-text-track-container{display:none}.plyr__captions{animation:plyr-fade-in 0.3s ease;bottom:0;display:none;font-size:var(--plyr-font-size-small, 13px);left:0;padding:var(--plyr-control-spacing, 10px);position:absolute;text-align:center;transition:transform 0.4s ease-in-out;width:100%}.plyr__captions span:empty{display:none}@media (min-width: 480px){.plyr__captions{font-size:var(--plyr-font-size-base, 15px);padding:calc(var(--plyr-control-spacing, 10px) * 2)}}@media (min-width: 768px){.plyr__captions{font-size:var(--plyr-font-size-large, 18px)}}.plyr--captions-active .plyr__captions{display:block}.plyr:not(.plyr--hide-controls) .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(calc(var(--plyr-control-spacing, 10px) * -4))}.plyr__caption{background:var(--plyr-captions-background, rgba(0, 0, 0, 0.8));border-radius:2px;box-decoration-break:clone;color:var(--plyr-captions-text-color, #fff);line-height:185%;padding:0.2em 0.5em;white-space:pre-wrap}.plyr__caption div{display:inline}.plyr__control{background:transparent;border:0;border-radius:var(--plyr-control-radius, 3px);color:inherit;cursor:pointer;flex-shrink:0;overflow:visible;padding:calc(var(--plyr-control-spacing, 10px) * 0.7);position:relative;transition:all 0.3s ease}.plyr__control svg{display:block;fill:currentColor;height:var(--plyr-control-icon-size, 18px);pointer-events:none;width:var(--plyr-control-icon-size, 18px)}.plyr__control:focus{outline:0}.plyr__control.plyr__tab-focus{outline-color:var(--plyr-tab-focus-color, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));outline-offset:2px;outline-style:dotted;outline-width:3px}a.plyr__control{text-decoration:none}a.plyr__control::after,a.plyr__control::before{display:none}.plyr__control:not(.plyr__control--pressed) .icon--pressed,.plyr__control.plyr__control--pressed .icon--not-pressed,.plyr__control:not(.plyr__control--pressed) .label--pressed,.plyr__control.plyr__control--pressed .label--not-pressed{display:none}.plyr--full-ui ::-webkit-media-controls{display:none}.plyr__controls{align-items:center;display:flex;justify-content:flex-end;text-align:center}.plyr__controls .plyr__progress__container{flex:1;min-width:0}.plyr__controls .plyr__controls__item{margin-left:calc(var(--plyr-control-spacing, 10px) / 4)}.plyr__controls .plyr__controls__item:first-child{margin-left:0;margin-right:auto}.plyr__controls .plyr__controls__item.plyr__progress__container{padding-left:calc(var(--plyr-control-spacing, 10px) / 4)}.plyr__controls .plyr__controls__item.plyr__time{padding:0 calc(var(--plyr-control-spacing, 10px) / 2)}.plyr__controls .plyr__controls__item.plyr__progress__container:first-child,.plyr__controls .plyr__controls__item.plyr__time:first-child,.plyr__controls .plyr__controls__item.plyr__time+.plyr__time{padding-left:0}.plyr__controls:empty{display:none}.plyr [data-plyr=captions],.plyr [data-plyr=pip],.plyr [data-plyr=airplay],.plyr [data-plyr=fullscreen]{display:none}.plyr--captions-enabled [data-plyr=captions],.plyr--pip-supported [data-plyr=pip],.plyr--airplay-supported [data-plyr=airplay],.plyr--fullscreen-enabled [data-plyr=fullscreen]{display:inline-block}.plyr__menu{display:flex;position:relative}.plyr__menu .plyr__control svg{transition:transform 0.3s ease}.plyr__menu .plyr__control[aria-expanded=true] svg{transform:rotate(90deg)}.plyr__menu .plyr__control[aria-expanded=true] .plyr__tooltip{display:none}.plyr__menu__container{animation:plyr-popup 0.2s ease;background:var(--plyr-menu-background, rgba(255, 255, 255, 0.9));border-radius:4px;bottom:100%;box-shadow:var(--plyr-menu-shadow, 0 1px 2px rgba(0, 0, 0, 0.15));color:var(--plyr-menu-color, #4a5464);font-size:var(--plyr-font-size-base, 15px);margin-bottom:10px;position:absolute;right:-3px;text-align:left;white-space:nowrap;z-index:3}.plyr__menu__container>div{overflow:hidden;transition:height 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.4, 0, 0.2, 1)}.plyr__menu__container::after{border:var(--plyr-menu-arrow-size, 4px) solid transparent;border-top-color:var(--plyr-menu-background, rgba(255, 255, 255, 0.9));content:"";height:0;position:absolute;right:calc(((var(--plyr-control-icon-size, 18px) / 2) + calc(var(--plyr-control-spacing, 10px) * 0.7)) - (var(--plyr-menu-arrow-size, 4px) / 2));top:100%;width:0}.plyr__menu__container [role=menu]{padding:calc(var(--plyr-control-spacing, 10px) * 0.7)}.plyr__menu__container [role=menuitem],.plyr__menu__container [role=menuitemradio]{margin-top:2px}.plyr__menu__container [role=menuitem]:first-child,.plyr__menu__container [role=menuitemradio]:first-child{margin-top:0}.plyr__menu__container .plyr__control{align-items:center;color:var(--plyr-menu-color, #4a5464);display:flex;font-size:var(--plyr-font-size-menu, var(--plyr-font-size-small, 13px));padding-bottom:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) / 1.5);padding-left:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 1.5);padding-right:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 1.5);padding-top:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) / 1.5);user-select:none;width:100%}.plyr__menu__container .plyr__control>span{align-items:inherit;display:flex;width:100%}.plyr__menu__container .plyr__control::after{border:var(--plyr-menu-item-arrow-size, 4px) solid transparent;content:"";position:absolute;top:50%;transform:translateY(-50%)}.plyr__menu__container .plyr__control--forward{padding-right:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 4)}.plyr__menu__container .plyr__control--forward::after{border-left-color:var(--plyr-menu-arrow-color, #728197);right:calc((calc(var(--plyr-control-spacing, 10px) * 0.7) * 1.5) - var(--plyr-menu-item-arrow-size, 4px))}.plyr__menu__container .plyr__control--forward.plyr__tab-focus::after,.plyr__menu__container .plyr__control--forward:hover::after{border-left-color:currentColor}.plyr__menu__container .plyr__control--back{font-weight:var(--plyr-font-weight-regular, 400);margin:calc(var(--plyr-control-spacing, 10px) * 0.7);margin-bottom:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) / 2);padding-left:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 4);position:relative;width:calc(100% - (calc(var(--plyr-control-spacing, 10px) * 0.7) * 2))}.plyr__menu__container .plyr__control--back::after{border-right-color:var(--plyr-menu-arrow-color, #728197);left:calc((calc(var(--plyr-control-spacing, 10px) * 0.7) * 1.5) - var(--plyr-menu-item-arrow-size, 4px))}.plyr__menu__container .plyr__control--back::before{background:var(--plyr-menu-back-border-color, #dcdfe5);box-shadow:0 1px 0 var(--plyr-menu-back-border-shadow-color, #fff);content:"";height:1px;left:0;margin-top:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) / 2);overflow:hidden;position:absolute;right:0;top:100%}.plyr__menu__container .plyr__control--back.plyr__tab-focus::after,.plyr__menu__container .plyr__control--back:hover::after{border-right-color:currentColor}.plyr__menu__container .plyr__control[role=menuitemradio]{padding-left:calc(var(--plyr-control-spacing, 10px) * 0.7)}.plyr__menu__container .plyr__control[role=menuitemradio]::before,.plyr__menu__container .plyr__control[role=menuitemradio]::after{border-radius:100%}.plyr__menu__container .plyr__control[role=menuitemradio]::before{background:rgba(0, 0, 0, 0.1);content:"";display:block;flex-shrink:0;height:16px;margin-right:var(--plyr-control-spacing, 10px);transition:all 0.3s ease;width:16px}.plyr__menu__container .plyr__control[role=menuitemradio]::after{background:#fff;border:0;height:6px;left:12px;opacity:0;top:50%;transform:translateY(-50%) scale(0);transition:transform 0.3s ease, opacity 0.3s ease;width:6px}.plyr__menu__container .plyr__control[role=menuitemradio][aria-checked=true]::before{background:var(--plyr-control-toggle-checked-background, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)))}.plyr__menu__container .plyr__control[role=menuitemradio][aria-checked=true]::after{opacity:1;transform:translateY(-50%) scale(1)}.plyr__menu__container .plyr__control[role=menuitemradio].plyr__tab-focus::before,.plyr__menu__container .plyr__control[role=menuitemradio]:hover::before{background:rgba(35, 40, 47, 0.1)}.plyr__menu__container .plyr__menu__value{align-items:center;display:flex;margin-left:auto;margin-right:calc((calc(var(--plyr-control-spacing, 10px) * 0.7) - 2) * -1);overflow:hidden;padding-left:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 3.5);pointer-events:none}.plyr--full-ui input[type=range]{-webkit-appearance:none;background:transparent;border:0;border-radius:calc(var(--plyr-range-thumb-height, 13px) * 2);color:var(--plyr-range-fill-background, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));display:block;height:calc((var(--plyr-range-thumb-active-shadow-width, 3px) * 2) + var(--plyr-range-thumb-height, 13px));margin:0;min-width:0;padding:0;transition:box-shadow 0.3s ease;width:100%}.plyr--full-ui input[type=range]::-webkit-slider-runnable-track{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none;background-image:linear-gradient(to right, currentColor var(--value, 0%), transparent var(--value, 0%))}.plyr--full-ui input[type=range]::-webkit-slider-thumb{background:var(--plyr-range-thumb-background, #fff);border:0;border-radius:100%;box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2));height:var(--plyr-range-thumb-height, 13px);position:relative;transition:all 0.2s ease;width:var(--plyr-range-thumb-height, 13px);-webkit-appearance:none;margin-top:calc(((var(--plyr-range-thumb-height, 13px) - var(--plyr-range-track-height, 5px)) / 2) * -1)}.plyr--full-ui input[type=range]::-moz-range-track{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none}.plyr--full-ui input[type=range]::-moz-range-thumb{background:var(--plyr-range-thumb-background, #fff);border:0;border-radius:100%;box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2));height:var(--plyr-range-thumb-height, 13px);position:relative;transition:all 0.2s ease;width:var(--plyr-range-thumb-height, 13px)}.plyr--full-ui input[type=range]::-moz-range-progress{background:currentColor;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px)}.plyr--full-ui input[type=range]::-ms-track{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none;color:transparent}.plyr--full-ui input[type=range]::-ms-fill-upper{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none}.plyr--full-ui input[type=range]::-ms-fill-lower{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none;background:currentColor}.plyr--full-ui input[type=range]::-ms-thumb{background:var(--plyr-range-thumb-background, #fff);border:0;border-radius:100%;box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2));height:var(--plyr-range-thumb-height, 13px);position:relative;transition:all 0.2s ease;width:var(--plyr-range-thumb-height, 13px);margin-top:0}.plyr--full-ui input[type=range]::-ms-tooltip{display:none}.plyr--full-ui input[type=range]:focus{outline:0}.plyr--full-ui input[type=range]::-moz-focus-outer{border:0}.plyr--full-ui input[type=range].plyr__tab-focus::-webkit-slider-runnable-track{outline-color:var(--plyr-tab-focus-color, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));outline-offset:2px;outline-style:dotted;outline-width:3px}.plyr--full-ui input[type=range].plyr__tab-focus::-moz-range-track{outline-color:var(--plyr-tab-focus-color, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));outline-offset:2px;outline-style:dotted;outline-width:3px}.plyr--full-ui input[type=range].plyr__tab-focus::-ms-track{outline-color:var(--plyr-tab-focus-color, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));outline-offset:2px;outline-style:dotted;outline-width:3px}.plyr__poster{background-color:var(--plyr-video-background, var(--plyr-video-background, black));background-position:50% 50%;background-repeat:no-repeat;background-size:contain;height:100%;left:0;opacity:0;position:absolute;top:0;transition:opacity 0.2s ease;width:100%;z-index:1}.plyr--stopped.plyr__poster-enabled .plyr__poster{opacity:1}.plyr--youtube.plyr--paused.plyr__poster-enabled:not(.plyr--stopped) .plyr__poster{display:none}.plyr__time{font-size:var(--plyr-font-size-time, var(--plyr-font-size-small, 13px))}.plyr__time+.plyr__time::before{content:"⁄";margin-right:var(--plyr-control-spacing, 10px)}@media (max-width: 767px){.plyr__time+.plyr__time{display:none}}.plyr__tooltip{background:var(--plyr-tooltip-background, rgba(255, 255, 255, 0.9));border-radius:var(--plyr-tooltip-radius, 3px);bottom:100%;box-shadow:var(--plyr-tooltip-shadow, 0 1px 2px rgba(0, 0, 0, 0.15));color:var(--plyr-tooltip-color, #4a5464);font-size:var(--plyr-font-size-small, 13px);font-weight:var(--plyr-font-weight-regular, 400);left:50%;line-height:1.3;margin-bottom:calc(calc(var(--plyr-control-spacing, 10px) / 2) * 2);opacity:0;padding:calc(var(--plyr-control-spacing, 10px) / 2) calc(calc(var(--plyr-control-spacing, 10px) / 2) * 1.5);pointer-events:none;position:absolute;transform:translate(-50%, 10px) scale(0.8);transform-origin:50% 100%;transition:transform 0.2s 0.1s ease, opacity 0.2s 0.1s ease;white-space:nowrap;z-index:2}.plyr__tooltip::before{border-left:var(--plyr-tooltip-arrow-size, 4px) solid transparent;border-right:var(--plyr-tooltip-arrow-size, 4px) solid transparent;border-top:var(--plyr-tooltip-arrow-size, 4px) solid var(--plyr-tooltip-background, rgba(255, 255, 255, 0.9));bottom:calc(var(--plyr-tooltip-arrow-size, 4px) * -1);content:"";height:0;left:50%;position:absolute;transform:translateX(-50%);width:0;z-index:2}.plyr .plyr__control:hover .plyr__tooltip,.plyr .plyr__control.plyr__tab-focus .plyr__tooltip,.plyr__tooltip--visible{opacity:1;transform:translate(-50%, 0) scale(1)}.plyr .plyr__control:hover .plyr__tooltip{z-index:3}.plyr__controls>.plyr__control:first-child .plyr__tooltip,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip{left:0;transform:translate(0, 10px) scale(0.8);transform-origin:0 100%}.plyr__controls>.plyr__control:first-child .plyr__tooltip::before,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip::before{left:calc((var(--plyr-control-icon-size, 18px) / 2) + calc(var(--plyr-control-spacing, 10px) * 0.7))}.plyr__controls>.plyr__control:last-child .plyr__tooltip{left:auto;right:0;transform:translate(0, 10px) scale(0.8);transform-origin:100% 100%}.plyr__controls>.plyr__control:last-child .plyr__tooltip::before{left:auto;right:calc((var(--plyr-control-icon-size, 18px) / 2) + calc(var(--plyr-control-spacing, 10px) * 0.7));transform:translateX(50%)}.plyr__controls>.plyr__control:first-child:hover .plyr__tooltip,.plyr__controls>.plyr__control:first-child.plyr__tab-focus .plyr__tooltip,.plyr__controls>.plyr__control:first-child .plyr__tooltip--visible,.plyr__controls>.plyr__control:first-child+.plyr__control:hover .plyr__tooltip,.plyr__controls>.plyr__control:first-child+.plyr__control.plyr__tab-focus .plyr__tooltip,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip--visible,.plyr__controls>.plyr__control:last-child:hover .plyr__tooltip,.plyr__controls>.plyr__control:last-child.plyr__tab-focus .plyr__tooltip,.plyr__controls>.plyr__control:last-child .plyr__tooltip--visible{transform:translate(0, 0) scale(1)}.plyr__progress{left:calc(var(--plyr-range-thumb-height, 13px) * 0.5);margin-right:var(--plyr-range-thumb-height, 13px);position:relative}.plyr__progress input[type=range],.plyr__progress__buffer{margin-left:calc(var(--plyr-range-thumb-height, 13px) * -0.5);margin-right:calc(var(--plyr-range-thumb-height, 13px) * -0.5);width:calc(100% + var(--plyr-range-thumb-height, 13px))}.plyr__progress input[type=range]{position:relative;z-index:2}.plyr__progress .plyr__tooltip{font-size:var(--plyr-font-size-time, var(--plyr-font-size-small, 13px));left:0}.plyr__progress__buffer{-webkit-appearance:none;background:transparent;border:0;border-radius:100px;height:var(--plyr-range-track-height, 5px);left:0;margin-top:calc((var(--plyr-range-track-height, 5px) / 2) * -1);padding:0;position:absolute;top:50%}.plyr__progress__buffer::-webkit-progress-bar{background:transparent}.plyr__progress__buffer::-webkit-progress-value{background:currentColor;border-radius:100px;min-width:var(--plyr-range-track-height, 5px);transition:width 0.2s ease}.plyr__progress__buffer::-moz-progress-bar{background:currentColor;border-radius:100px;min-width:var(--plyr-range-track-height, 5px);transition:width 0.2s ease}.plyr__progress__buffer::-ms-fill{border-radius:100px;transition:width 0.2s ease}.plyr--loading .plyr__progress__buffer{animation:plyr-progress 1s linear infinite;background-image:linear-gradient(-45deg, var(--plyr-progress-loading-background, rgba(35, 40, 47, 0.6)) 25%, transparent 25%, transparent 50%, var(--plyr-progress-loading-background, rgba(35, 40, 47, 0.6)) 50%, var(--plyr-progress-loading-background, rgba(35, 40, 47, 0.6)) 75%, transparent 75%, transparent);background-repeat:repeat-x;background-size:var(--plyr-progress-loading-size, 25px) var(--plyr-progress-loading-size, 25px);color:transparent}.plyr--video.plyr--loading .plyr__progress__buffer{background-color:var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25))}.plyr--audio.plyr--loading .plyr__progress__buffer{background-color:var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6))}.plyr__volume{align-items:center;display:flex;max-width:110px;min-width:80px;position:relative;width:20%}.plyr__volume input[type=range]{margin-left:calc(var(--plyr-control-spacing, 10px) / 2);margin-right:calc(var(--plyr-control-spacing, 10px) / 2);position:relative;z-index:2}.plyr--is-ios .plyr__volume{min-width:0;width:auto}.plyr--audio{display:block}.plyr--audio .plyr__controls{background:var(--plyr-audio-controls-background, #fff);border-radius:inherit;color:var(--plyr-audio-control-color, #4a5464);padding:var(--plyr-control-spacing, 10px)}.plyr--audio .plyr__control.plyr__tab-focus,.plyr--audio .plyr__control:hover,.plyr--audio .plyr__control[aria-expanded=true]{background:var(--plyr-audio-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));color:var(--plyr-audio-control-color-hover, #fff)}.plyr--full-ui.plyr--audio input[type=range]::-webkit-slider-runnable-track{background-color:var(--plyr-audio-range-track-background, var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6)))}.plyr--full-ui.plyr--audio input[type=range]::-moz-range-track{background-color:var(--plyr-audio-range-track-background, var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6)))}.plyr--full-ui.plyr--audio input[type=range]::-ms-track{background-color:var(--plyr-audio-range-track-background, var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6)))}.plyr--full-ui.plyr--audio input[type=range]:active::-webkit-slider-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(35, 40, 47, 0.1))}.plyr--full-ui.plyr--audio input[type=range]:active::-moz-range-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(35, 40, 47, 0.1))}.plyr--full-ui.plyr--audio input[type=range]:active::-ms-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(35, 40, 47, 0.1))}.plyr--audio .plyr__progress__buffer{color:var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6))}.plyr--video{background:var(--plyr-video-background, var(--plyr-video-background, black));overflow:hidden}.plyr--video.plyr--menu-open{overflow:visible}.plyr__video-wrapper{background:var(--plyr-video-background, var(--plyr-video-background, black));margin:auto;overflow:hidden;position:relative;width:100%}.plyr__video-embed,.plyr__video-wrapper--fixed-ratio{aspect-ratio:16/9}@supports not (aspect-ratio: 16/9){.plyr__video-embed,.plyr__video-wrapper--fixed-ratio{height:0;padding-bottom:56.25%;position:relative}}.plyr__video-embed iframe,.plyr__video-wrapper--fixed-ratio video{border:0;height:100%;left:0;position:absolute;top:0;width:100%}.plyr--full-ui .plyr__video-embed>.plyr__video-embed__container{padding-bottom:240%;position:relative;transform:translateY(-38.28125%)}.plyr--video .plyr__controls{background:var(--plyr-video-controls-background, linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75)));border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;bottom:0;color:var(--plyr-video-control-color, #fff);left:0;padding:calc(var(--plyr-control-spacing, 10px) / 2);padding-top:calc(var(--plyr-control-spacing, 10px) * 2);position:absolute;right:0;transition:opacity 0.4s ease-in-out, transform 0.4s ease-in-out;z-index:3}@media (min-width: 480px){.plyr--video .plyr__controls{padding:var(--plyr-control-spacing, 10px);padding-top:calc(var(--plyr-control-spacing, 10px) * 3.5)}}.plyr--video.plyr--hide-controls .plyr__controls{opacity:0;pointer-events:none;transform:translateY(100%)}.plyr--video .plyr__control.plyr__tab-focus,.plyr--video .plyr__control:hover,.plyr--video .plyr__control[aria-expanded=true]{background:var(--plyr-video-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));color:var(--plyr-video-control-color-hover, #fff)}.plyr__control--overlaid{background:var(--plyr-video-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));border:0;border-radius:100%;color:var(--plyr-video-control-color, #fff);display:none;left:50%;opacity:0.9;padding:calc(var(--plyr-control-spacing, 10px) * 1.5);position:absolute;top:50%;transform:translate(-50%, -50%);transition:0.3s;z-index:2}.plyr__control--overlaid svg{left:2px;position:relative}.plyr__control--overlaid:hover,.plyr__control--overlaid:focus{opacity:1}.plyr--playing .plyr__control--overlaid{opacity:0;visibility:hidden}.plyr--full-ui.plyr--video .plyr__control--overlaid{display:block}.plyr--full-ui.plyr--video input[type=range]::-webkit-slider-runnable-track{background-color:var(--plyr-video-range-track-background, var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25)))}.plyr--full-ui.plyr--video input[type=range]::-moz-range-track{background-color:var(--plyr-video-range-track-background, var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25)))}.plyr--full-ui.plyr--video input[type=range]::-ms-track{background-color:var(--plyr-video-range-track-background, var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25)))}.plyr--full-ui.plyr--video input[type=range]:active::-webkit-slider-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(255, 255, 255, 0.5))}.plyr--full-ui.plyr--video input[type=range]:active::-moz-range-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(255, 255, 255, 0.5))}.plyr--full-ui.plyr--video input[type=range]:active::-ms-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(255, 255, 255, 0.5))}.plyr--video .plyr__progress__buffer{color:var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25))}.plyr:fullscreen{background:#000;border-radius:0 !important;height:100%;margin:0;width:100%}.plyr:fullscreen video{height:100%}.plyr:fullscreen .plyr__control .icon--exit-fullscreen{display:block}.plyr:fullscreen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:fullscreen.plyr--hide-controls{cursor:none}@media (min-width: 1024px){.plyr:fullscreen .plyr__captions{font-size:var(--plyr-font-size-xlarge, 21px)}}.plyr:-webkit-full-screen{background:#000;border-radius:0 !important;height:100%;margin:0;width:100%}.plyr:-webkit-full-screen video{height:100%}.plyr:-webkit-full-screen .plyr__control .icon--exit-fullscreen{display:block}.plyr:-webkit-full-screen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:-webkit-full-screen.plyr--hide-controls{cursor:none}@media (min-width: 1024px){.plyr:-webkit-full-screen .plyr__captions{font-size:var(--plyr-font-size-xlarge, 21px)}}.plyr:-moz-full-screen{background:#000;border-radius:0 !important;height:100%;margin:0;width:100%}.plyr:-moz-full-screen video{height:100%}.plyr:-moz-full-screen .plyr__control .icon--exit-fullscreen{display:block}.plyr:-moz-full-screen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:-moz-full-screen.plyr--hide-controls{cursor:none}@media (min-width: 1024px){.plyr:-moz-full-screen .plyr__captions{font-size:var(--plyr-font-size-xlarge, 21px)}}.plyr:-ms-fullscreen{background:#000;border-radius:0 !important;height:100%;margin:0;width:100%}.plyr:-ms-fullscreen video{height:100%}.plyr:-ms-fullscreen .plyr__control .icon--exit-fullscreen{display:block}.plyr:-ms-fullscreen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:-ms-fullscreen.plyr--hide-controls{cursor:none}@media (min-width: 1024px){.plyr:-ms-fullscreen .plyr__captions{font-size:var(--plyr-font-size-xlarge, 21px)}}.plyr--fullscreen-fallback{background:#000;border-radius:0 !important;height:100%;margin:0;width:100%;bottom:0;display:block;left:0;position:fixed;right:0;top:0;z-index:10000000}.plyr--fullscreen-fallback video{height:100%}.plyr--fullscreen-fallback .plyr__control .icon--exit-fullscreen{display:block}.plyr--fullscreen-fallback .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr--fullscreen-fallback.plyr--hide-controls{cursor:none}@media (min-width: 1024px){.plyr--fullscreen-fallback .plyr__captions{font-size:var(--plyr-font-size-xlarge, 21px)}}.plyr__ads{border-radius:inherit;bottom:0;cursor:pointer;left:0;overflow:hidden;position:absolute;right:0;top:0;z-index:-1}.plyr__ads>div,.plyr__ads>div iframe{height:100%;position:absolute;width:100%}.plyr__ads::after{background:#23282f;border-radius:2px;bottom:var(--plyr-control-spacing, 10px);color:#fff;content:attr(data-badge-text);font-size:11px;padding:2px 6px;pointer-events:none;position:absolute;right:var(--plyr-control-spacing, 10px);z-index:3}.plyr__ads::after:empty{display:none}.plyr__cues{background:currentColor;display:block;height:var(--plyr-range-track-height, 5px);left:0;margin:-var(--plyr-range-track-height, 5px)/2 0 0;opacity:0.8;position:absolute;top:50%;width:3px;z-index:3}.plyr__preview-thumb{background-color:var(--plyr-tooltip-background, rgba(255, 255, 255, 0.9));border-radius:3px;bottom:100%;box-shadow:var(--plyr-tooltip-shadow, 0 1px 2px rgba(0, 0, 0, 0.15));margin-bottom:calc(calc(var(--plyr-control-spacing, 10px) / 2) * 2);opacity:0;padding:var(--plyr-tooltip-radius, 3px);pointer-events:none;position:absolute;transform:translate(0, 10px) scale(0.8);transform-origin:50% 100%;transition:transform 0.2s 0.1s ease, opacity 0.2s 0.1s ease;z-index:2}.plyr__preview-thumb--is-shown{opacity:1;transform:translate(0, 0) scale(1)}.plyr__preview-thumb::before{border-left:var(--plyr-tooltip-arrow-size, 4px) solid transparent;border-right:var(--plyr-tooltip-arrow-size, 4px) solid transparent;border-top:var(--plyr-tooltip-arrow-size, 4px) solid var(--plyr-tooltip-background, rgba(255, 255, 255, 0.9));bottom:calc(var(--plyr-tooltip-arrow-size, 4px) * -1);content:"";height:0;left:50%;position:absolute;transform:translateX(-50%);width:0;z-index:2}.plyr__preview-thumb__image-container{background:#c1c8d1;border-radius:calc(var(--plyr-tooltip-radius, 3px) - 1px);overflow:hidden;position:relative;z-index:0}.plyr__preview-thumb__image-container img{height:100%;left:0;max-height:none;max-width:none;position:absolute;top:0;width:100%}.plyr__preview-thumb__time-container{bottom:6px;left:0;position:absolute;right:0;white-space:nowrap;z-index:3}.plyr__preview-thumb__time-container span{background-color:rgba(0, 0, 0, 0.55);border-radius:calc(var(--plyr-tooltip-radius, 3px) - 1px);color:#fff;font-size:var(--plyr-font-size-time, var(--plyr-font-size-small, 13px));padding:3px 6px}.plyr__preview-scrubbing{bottom:0;filter:blur(1px);height:100%;left:0;margin:auto;opacity:0;overflow:hidden;pointer-events:none;position:absolute;right:0;top:0;transition:opacity 0.3s ease;width:100%;z-index:1}.plyr__preview-scrubbing--is-shown{opacity:1}.plyr__preview-scrubbing img{height:100%;left:0;max-height:none;max-width:none;object-fit:contain;position:absolute;top:0;width:100%}.plyr--no-transition{transition:none !important}.plyr__sr-only{clip:rect(1px, 1px, 1px, 1px);overflow:hidden;border:0 !important;height:1px !important;padding:0 !important;position:absolute !important;width:1px !important}.plyr [hidden]{display:none !important}video,iframe{max-width:100%}.plyr__video-wrapper{height:100%}.presto-player__wrapper{position:relative;font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.presto-player__wrapper.rtl{direction:rtl}.presto-player__wrapper img{max-width:100%}.presto-player__wrapper .plyr.plyr--video.plyr--menu-open{overflow:hidden}.presto-player__wrapper .plyr--fullscreen-fallback.plyr--vimeo .plyr__video-wrapper{top:50%;transform:translateY(-50%)}.presto-player__wrapper .plyr--fullscreen-fallback.plyr{border-radius:0 !important}.presto-player__wrapper .plyr--fullscreen-fallback.plyr iframe{border-radius:0 !important}.presto-player__wrapper .plyr__menu__container{overflow:auto}.presto-player__wrapper .plyr__menu__container:after{display:none}.presto-player__wrapper img{border:none}.presto-player__wrapper video{margin:auto}.presto-player__wrapper iframe{height:100%}.presto-player__wrapper .plyr--video .plyr__control:active,.presto-player__wrapper .plyr--video .plyr__control:focus{background:#00b3ff;background:var(--plyr-video-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));color:#fff;color:var(--plyr-video-control-color-hover, #fff)}.presto-player__wrapper .plyr__poster{background-size:cover;z-index:2}.presto-player__wrapper .presto-player__logo{margin:0;display:block;position:absolute;z-index:3;opacity:0.5;object-fit:contain;transition:bottom 0.4s ease-in-out;max-width:var(--presto-player-logo-width, 75px)}.presto-player__wrapper .presto-player__logo.is-bottom-right{left:auto;right:20px;top:auto;bottom:60px}.presto-player__wrapper .presto-player__logo.is-bottom-left{left:20px;right:auto;top:auto;bottom:60px}@media screen and (min-width: 380px){.presto-player__wrapper.presto-player--hide-controls .presto-player__logo.is-bottom-right,.presto-player__wrapper.presto-player--hide-controls .presto-player__logo.is-bottom-left,.presto-player__wrapper .plyr--hide-controls .presto-player__logo.is-bottom-right,.presto-player__wrapper .plyr--hide-controls .presto-player__logo.is-bottom-left{bottom:20px}}.presto-player__wrapper .presto-player-progress__marker{width:16px;height:16px;padding:0;border:2px solid rgba(255, 255, 255, 0.5);position:absolute;border-radius:9999px;bottom:calc(50% - 8px);z-index:9;margin-left:-8px !important}.presto-player__wrapper.presto-player--ended .plyr--youtube .plyr__poster{display:none}.presto-player__wrapper.presto-player--ended .plyr--youtube .plyr__control.plyr__control--overlaid{display:none}.presto-player__wrapper button.plyr__control.plyr__control--overlaid:focus{background:inherit;border:none;outline:0;position:absolute;top:50%;transform:translate(-50%, -50%)}.presto-player__wrapper .plyr__controls__item.plyr__progress__container{position:relative}.presto-player__wrapper .plyr--full-ui.plyr--video input[type=range]::-webkit-slider-runnable-track{box-shadow:none}.presto-player__wrapper .plyr--video .plyr__controls{background:var(--plyr-video-controls-background, linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.75)))}.presto-player__wrapper .presto-player-toc{font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";line-height:1.4;position:absolute;top:auto;right:0;left:0;bottom:0;max-height:calc(100%);max-width:calc(100%);background:rgba(255, 255, 255, 0.9);background:var(--plyr-menu-background, rgba(255, 255, 255, 0.9));left:auto;padding:20px 15px;border-radius:4px;width:100%;z-index:9;box-shadow:0 1px 2px rgba(0, 0, 0, 0.15);box-shadow:var(--plyr-menu-shadow, 0 1px 2px rgba(0, 0, 0, 0.15));color:#4a5464;color:var(--plyr-menu-color, #4a5464);font-size:15px;font-size:var(--plyr-font-size-base, 15px);white-space:nowrap;z-index:3;display:flex;flex-direction:column;transition:bottom 0.25s ease}@media screen and (min-width: 380px){.presto-player__wrapper .presto-player-toc{right:20px;bottom:60px;width:300px;max-height:calc(100% - 80px);max-width:calc(100vw - 70px)}}.presto-player__wrapper .presto-player-toc__wrapper{position:absolute;top:0;left:0;bottom:0;right:0;z-index:3;visibility:hidden;opacity:0;transition:opacity 0.3s ease-in-out, visibility 0.3s ease-in-out}.presto-player__wrapper .presto-player-toc__wrapper.is-showing{visibility:visible;opacity:1}.presto-player__wrapper .presto-player-toc__cover{position:absolute;top:0;left:0;bottom:0;right:0;z-index:3}.presto-player__wrapper .presto-player-toc__list{flex:1;overflow:auto}.presto-player__wrapper .presto-player-toc__title{font-size:12px;font-weight:bold;margin-bottom:10px;margin-left:10px;margin-right:10px;display:none}@media screen and (min-width: 380px){.presto-player__wrapper .presto-player-toc__title{display:block}}.presto-player__wrapper .presto-player-toc__name{white-space:nowrap;overflow:hidden;width:100%;text-overflow:ellipsis}.presto-player__wrapper .presto-player-toc__chapter{padding:12px;border-radius:3px;cursor:pointer;line-height:1;display:flex;align-items:center;transition:background-color 0.4s ease, color 0.4s ease;margin-bottom:2px;position:relative}.presto-player__wrapper .presto-player-toc__chapter:last-child{margin-bottom:0}.presto-player__wrapper .presto-player-toc__chapter.is-highlighted,.presto-player__wrapper .presto-player-toc__chapter:hover{background:#00b3ff;background:var(--plyr-video-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));color:#fff;color:var(--plyr-video-control-color-hover, #fff)}.presto-player__wrapper .presto-player-toc__chapter.is-highlighted{padding-right:30px}.presto-player__wrapper .presto-player-toc__chapter.is-highlighted:after{background:rgba(255, 255, 255, 0.5);content:"";display:block;flex-shrink:0;height:8px;width:8px;margin-right:10px;margin-right:var(--plyr-control-spacing, 10px);transition:all 0.3s ease;border-radius:9999px;position:absolute;right:7px}.presto-player__wrapper .presto-player-toc__order{margin-right:12px;opacity:0.5}.presto-player__wrapper.rtl{direction:rtl}.presto-player__wrapper.rtl .presto-player-toc__order{order:2;margin-left:12px;margin-right:0}.presto-player__wrapper.rtl .presto-player-toc__name{direction:rtl}.presto-player__wrapper .presto-player-error{position:absolute;top:0;left:0;bottom:0;right:0;background:rgba(0, 0, 0, 0.9);color:#fff;display:flex;align-items:center;justify-content:center;z-index:10;text-align:center}.presto-player__wrapper .presto-player-error__title{font-size:18px;font-weight:bold;margin-bottom:8px}.presto-player__wrapper .presto-player-error__description{opacity:0.75}.presto-player__wrapper.hide-youtube-ui .plyr__video-embed iframe{top:-50%;height:200%}.presto-player__wrapper .plyr--vimeo.plyr--playing .plyr__video-embed__container{pointer-events:none}.presto-player__wrapper .plyr__control--overlaid{border-radius:6px;padding-left:26px;padding-right:26px;position:absolute !important;top:50% !important}.presto-player__wrapper.skin-stacked .plyr__controls{flex-wrap:wrap}.presto-player__wrapper.skin-stacked .presto-player-progress__marker{transform:scale(0.75)}.presto-player__wrapper.skin-stacked .plyr__controls{justify-content:flex-start}.presto-player__wrapper.skin-stacked .plyr__controls__item.plyr__progress__container{order:-1;flex:1 0 100%}.presto-player__wrapper.skin-stacked .plyr__controls__item.plyr__progress__container+:not(.plyr__time),.presto-player__wrapper.skin-stacked .plyr__controls__item.plyr__progress__container+.plyr__time+*{margin-left:auto}.presto-player__wrapper.skin-stacked .plyr__controls .plyr__controls__item:first-child{margin:0}.presto-player__wrapper.skin-stacked .plyr__progress{height:19px;display:flex;align-items:center}.presto-player__wrapper.skin-stacked .plyr__progress .plyr__progress__buffer{height:3px;transition:all 0.25s ease;position:absolute;top:calc(50% + 1px)}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-moz-range-track{height:3px;transition:all 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-webkit-slider-runnable-track{height:3px;transition:all 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-ms-track{height:3px;transition:all 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-ms-fill-upper{height:3px;transition:all 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-ms-fill-lower{height:3px;transition:height 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-webkit-slider-thumb{visibility:hidden;opacity:0;transition:opacity 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-moz-range-thumb{visibility:hidden;opacity:0;transition:opacity 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-ms-thumb{visibility:hidden;opacity:0;transition:opacity 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .presto-player-progress__marker{transform:scale(1)}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress .plyr__progress__buffer{height:5px;top:calc(50%)}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]{overflow:visible}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-moz-range-track{height:5px}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-webkit-slider-runnable-track{height:5px}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-ms-track{height:5px}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-ms-fill-upper{height:5px}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-ms-fill-lower{height:5px}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-webkit-slider-thumb{visibility:visible;opacity:1}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-moz-range-thumb{visibility:visible;opacity:1}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-ms-thumb{visibility:visible;opacity:1}.presto-sticky-parent{z-index:99998}@media screen and (min-width: 960px){.presto-sticky{--presto-sticky-space:15px;position:fixed;z-index:3000;max-width:var(--presto-sticky-width, 380px);width:100vw}.presto-sticky .plyr__controls,.presto-sticky .presto-player-toc__wrapper,.presto-sticky presto-action-bar,.presto-sticky .presto-player__logo{display:none}.presto-sticky--top-left{top:var(--presto-sticky-space);left:var(--presto-sticky-space)}.presto-sticky--top-center{top:var(--presto-sticky-space);left:0;right:0;margin:0 auto}.presto-sticky--top-right{top:var(--presto-sticky-space);right:var(--presto-sticky-space)}.presto-sticky--center-left{top:0;bottom:0;margin:auto 0;left:var(--presto-sticky-space);display:flex;align-items:center}.presto-sticky--center-center{top:0;bottom:0;right:0;left:0;margin:auto;display:flex;align-items:center}.presto-sticky--center-right{top:0;bottom:0;margin:auto 0;right:var(--presto-sticky-space);display:flex;align-items:center}.presto-sticky--bottom-left{bottom:var(--presto-sticky-space);left:var(--presto-sticky-space)}.presto-sticky--bottom-center{bottom:var(--presto-sticky-space);left:0;right:0;margin:0 auto}.presto-sticky--bottom-right{bottom:var(--presto-sticky-space);right:var(--presto-sticky-space)}}.presto-player__overlay{position:absolute;top:50%;left:50%;z-index:3}.presto-player__muted-overlay{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center}.presto-player__muted-overlay .plyr__control--overlaid{display:block;opacity:1;visibility:visible}.presto-player__wrapper.is-muted-overlay{cursor:pointer}.presto-player__wrapper.is-muted-overlay .plyr--playing .presto-player__muted-overlay .plyr__control--overlaid{opacity:1;visibility:visible}.presto-player__wrapper.is-muted-overlay .presto-player__logo{display:none}.presto-player__wrapper.is-muted-overlay .plyr__controls{display:none}.presto-player__wrapper.is-muted-overlay .plyr .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(0) !important}.presto-player__wrapper.rtl .plyr__captions{direction:rtl}.presto-player__wrapper.caption-style-full .plyr__captions{background:var(--plyr-captions-background, rgba(0, 0, 0, 0.8));padding-top:0;padding-bottom:0}.presto-player__wrapper.caption-style-full .plyr:not(.plyr--hide-controls):not(.is-muted-overlay) .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(calc(var(--plyr-control-spacing, 13px) * -4))}.presto-player__wrapper.caption-style-full.skin-stacked .plyr:not(.plyr--hide-controls):not(.is-muted-overlay) .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(calc(var(--plyr-control-spacing, 17px) * -4))}.presto-player__play-cover{cursor:pointer;position:absolute;top:0;left:0;right:0;bottom:0;z-index:99}.presto-player__chapters{width:100%;position:absolute;top:0;height:100%}.presto-player__chapter-markers{margin:0 8px;height:100%;position:relative}.presto-player-progress__marker.plyr__controls__item.plyr__control:hover{border:0;background:#fff}.presto-iframe-fallback-container{position:relative;padding-bottom:56.25%;padding-top:30px;height:0;overflow:hidden}.presto-iframe-fallback-container embed,.presto-iframe-fallback-container iframe,.presto-iframe-fallback-container object{position:absolute;top:0;left:0;width:100%;height:100%}';export{Te as P,Oe as a,Dr as r}
dist/components/web-components/p-875adc93.entry.js DELETED
@@ -1 +0,0 @@
1
- export{a as presto_player}from"./p-f4d3354e.js";import"./p-3cd9ce84.js";
 
dist/components/web-components/{p-e540de9d.js → p-fc9022d1.js} RENAMED
@@ -1 +1 @@
1
- import{r as e}from"./p-f4d3354e.js";import"./p-3cd9ce84.js";export default function(a){var d,o,s,i,r,_,l,t,n,p,v;if("undefined"!=typeof learndash_video_data&&"presto"===(null===(d=learndash_video_data)||void 0===d?void 0:d.videos_found_provider)){if(e(a),window.learndash_video_data.videos_auto_complete="on"===(null===(o=prestoPlayer)||void 0===o||null===(s=o.learndash)||void 0===s?void 0:s.lesson_video_auto_complete),window.learndash_video_data.videos_hide_complete_button="AFTER"===(null===(i=learndash_video_data)||void 0===i?void 0:i.videos_shown)&&"on"===(null===(r=prestoPlayer)||void 0===r||null===(_=r.learndash)||void 0===_?void 0:_.lesson_video_hide_complete_button),window.learndash_video_data.videos_auto_complete_delay=null===(l=prestoPlayer)||void 0===l||null===(t=l.learndash)||void 0===t?void 0:t.lesson_video_auto_complete_delay,window.learndash_video_data.videos_auto_complete_delay_message=null===(n=prestoPlayer)||void 0===n||null===(p=n.learndash)||void 0===p?void 0:p.videos_auto_complete_delay_message,window.learndash_video_data.video_track_path="/","BEFORE"===(null===(v=learndash_video_data)||void 0===v?void 0:v.videos_shown))return learndash_video_data.videos_auto_complete=!1,jQuery(document).trigger("learndash_video_disable_assets",[!0]),void jQuery((function(){"1"===learndash_video_data.video_debug&&console.log("PRESTO: init"),document.querySelectorAll('presto-player[data-video-progression="true"][data-video-provider="'+learndash_video_data.videos_found_provider+'"]').length&&("1"===learndash_video_data.video_debug&&console.log("PRESTO: calling LearnDash_disable_assets(true)"),LearnDash_disable_assets(!0),LearnDash_watchPlayers(),document.querySelectorAll('presto-player[data-video-progression="true"][data-video-provider="'+learndash_video_data.videos_found_provider+'"]').forEach((function(e,a){var d="presto-player__wrapper-player-"+a,o=e.getAttribute("id");void 0!==o&&""!=o||e.setAttribute("id",o=d),ld_video_players[d]={},ld_video_players[d].player_key=d,ld_video_players[d].player_type=learndash_video_data.videos_found_provider,ld_video_players[d].player_id=o,ld_video_players[d].player_wrapper=e.closest("presto-player"),void 0!==ld_video_players[d].player_wrapper?ld_video_players[d].player_cookie_key=ld_video_players[d].player_wrapper.getAttribute("data-video-cookie-key"):ld_video_players[d].player_cookie_key="",ld_video_players[d].player_cookie_values=LearnDash_Video_Progress_initSettings(ld_video_players[d]),"complete"===LearnDash_Video_Progress_getSetting(ld_video_players[d],"video_state")?(LearnDash_disable_assets(!1),LearnDash_watchPlayersEnd()):(wp.hooks.addAction("presto.playerTimeUpdate","presto-player",(function(e){"1"===learndash_video_data.video_debug&&console.log("PRESTO: Video is playing"),LearnDash_Video_Progress_setSetting(ld_video_players[d],"video_duration",e.duration),LearnDash_Video_Progress_setSetting(ld_video_players[d],"video_time",e.currentTime),e.duration&&e.duration===e.currentTime&&(LearnDash_Video_Progress_setSetting(ld_video_players[d],"video_state","complete"),"1"===learndash_video_data.video_debug&&console.log("PRESTO: calling LearnDash_disable_assets(false)"),LearnDash_disable_assets(!1),LearnDash_watchPlayersEnd())})),wp.hooks.addAction("presto.playerPlaying","presto-player",(function(e){"1"===learndash_video_data.video_debug&&console.log("PRESTO: Video is playing"),LearnDash_Video_Progress_setSetting(ld_video_players[d],"video_duration",e.duration),LearnDash_Video_Progress_setSetting(ld_video_players[d],"video_time",e.currentTime),LearnDash_Video_Progress_setSetting(ld_video_players[d],"video_state","play")})),wp.hooks.addAction("presto.playerPause","presto-player",(function(e){"1"===learndash_video_data.video_debug&&console.log("PRESTO: Video is paused"),LearnDash_Video_Progress_setSetting(ld_video_players[d],"video_time",e.currentTime),console.log(e.duration),console.log(e.currentTime),LearnDash_Video_Progress_setSetting(ld_video_players[d],"video_state","pause")})),wp.hooks.addAction("presto.playerEnded","presto-player",(function(e){"1"===learndash_video_data.video_debug&&console.log("PRESTO: video ended"),"1"===learndash_video_data.video_debug&&console.log("PRESTO: setting 'video_state' to 'complete'"),LearnDash_Video_Progress_setSetting(ld_video_players[d],"video_time",e.currentTime),LearnDash_Video_Progress_setSetting(ld_video_players[d],"video_state","complete"),"1"===learndash_video_data.video_debug&&console.log("PRESTO: calling LearnDash_disable_assets(false)"),LearnDash_disable_assets(!1),LearnDash_watchPlayersEnd()})))})))}));window.LearnDash_disable_assets(!0),wp.hooks.addAction("presto.playerEnded","presto-player",(function(){window.LearnDash_disable_assets(!1)}))}}
1
+ import{r as e}from"./p-77d8cc52.js";import"./p-3cd9ce84.js";export default function(a){var d,o,s,i,r,_,l,t,n,p,v;if("undefined"!=typeof learndash_video_data&&"presto"===(null===(d=learndash_video_data)||void 0===d?void 0:d.videos_found_provider)){if(e(a),window.learndash_video_data.videos_auto_complete="on"===(null===(o=prestoPlayer)||void 0===o||null===(s=o.learndash)||void 0===s?void 0:s.lesson_video_auto_complete),window.learndash_video_data.videos_hide_complete_button="AFTER"===(null===(i=learndash_video_data)||void 0===i?void 0:i.videos_shown)&&"on"===(null===(r=prestoPlayer)||void 0===r||null===(_=r.learndash)||void 0===_?void 0:_.lesson_video_hide_complete_button),window.learndash_video_data.videos_auto_complete_delay=null===(l=prestoPlayer)||void 0===l||null===(t=l.learndash)||void 0===t?void 0:t.lesson_video_auto_complete_delay,window.learndash_video_data.videos_auto_complete_delay_message=null===(n=prestoPlayer)||void 0===n||null===(p=n.learndash)||void 0===p?void 0:p.videos_auto_complete_delay_message,window.learndash_video_data.video_track_path="/","BEFORE"===(null===(v=learndash_video_data)||void 0===v?void 0:v.videos_shown))return learndash_video_data.videos_auto_complete=!1,jQuery(document).trigger("learndash_video_disable_assets",[!0]),void jQuery((function(){"1"===learndash_video_data.video_debug&&console.log("PRESTO: init"),document.querySelectorAll('presto-player[data-video-progression="true"][data-video-provider="'+learndash_video_data.videos_found_provider+'"]').length&&("1"===learndash_video_data.video_debug&&console.log("PRESTO: calling LearnDash_disable_assets(true)"),LearnDash_disable_assets(!0),LearnDash_watchPlayers(),document.querySelectorAll('presto-player[data-video-progression="true"][data-video-provider="'+learndash_video_data.videos_found_provider+'"]').forEach((function(e,a){var d="presto-player__wrapper-player-"+a,o=e.getAttribute("id");void 0!==o&&""!=o||e.setAttribute("id",o=d),ld_video_players[d]={},ld_video_players[d].player_key=d,ld_video_players[d].player_type=learndash_video_data.videos_found_provider,ld_video_players[d].player_id=o,ld_video_players[d].player_wrapper=e.closest("presto-player"),void 0!==ld_video_players[d].player_wrapper?ld_video_players[d].player_cookie_key=ld_video_players[d].player_wrapper.getAttribute("data-video-cookie-key"):ld_video_players[d].player_cookie_key="",ld_video_players[d].player_cookie_values=LearnDash_Video_Progress_initSettings(ld_video_players[d]),"complete"===LearnDash_Video_Progress_getSetting(ld_video_players[d],"video_state")?(LearnDash_disable_assets(!1),LearnDash_watchPlayersEnd()):(wp.hooks.addAction("presto.playerTimeUpdate","presto-player",(function(e){"1"===learndash_video_data.video_debug&&console.log("PRESTO: Video is playing"),LearnDash_Video_Progress_setSetting(ld_video_players[d],"video_duration",e.duration),LearnDash_Video_Progress_setSetting(ld_video_players[d],"video_time",e.currentTime),e.duration&&e.duration===e.currentTime&&(LearnDash_Video_Progress_setSetting(ld_video_players[d],"video_state","complete"),"1"===learndash_video_data.video_debug&&console.log("PRESTO: calling LearnDash_disable_assets(false)"),LearnDash_disable_assets(!1),LearnDash_watchPlayersEnd())})),wp.hooks.addAction("presto.playerPlaying","presto-player",(function(e){"1"===learndash_video_data.video_debug&&console.log("PRESTO: Video is playing"),LearnDash_Video_Progress_setSetting(ld_video_players[d],"video_duration",e.duration),LearnDash_Video_Progress_setSetting(ld_video_players[d],"video_time",e.currentTime),LearnDash_Video_Progress_setSetting(ld_video_players[d],"video_state","play")})),wp.hooks.addAction("presto.playerPause","presto-player",(function(e){"1"===learndash_video_data.video_debug&&console.log("PRESTO: Video is paused"),LearnDash_Video_Progress_setSetting(ld_video_players[d],"video_time",e.currentTime),console.log(e.duration),console.log(e.currentTime),LearnDash_Video_Progress_setSetting(ld_video_players[d],"video_state","pause")})),wp.hooks.addAction("presto.playerEnded","presto-player",(function(e){"1"===learndash_video_data.video_debug&&console.log("PRESTO: video ended"),"1"===learndash_video_data.video_debug&&console.log("PRESTO: setting 'video_state' to 'complete'"),LearnDash_Video_Progress_setSetting(ld_video_players[d],"video_time",e.currentTime),LearnDash_Video_Progress_setSetting(ld_video_players[d],"video_state","complete"),"1"===learndash_video_data.video_debug&&console.log("PRESTO: calling LearnDash_disable_assets(false)"),LearnDash_disable_assets(!1),LearnDash_watchPlayersEnd()})))})))}));window.LearnDash_disable_assets(!0),wp.hooks.addAction("presto.playerEnded","presto-player",(function(){window.LearnDash_disable_assets(!1)}))}}
dist/components/web-components/p-fe85e9e3.entry.js ADDED
@@ -0,0 +1 @@
 
1
+ import{r as i,h as t,g as o,c as l}from"./p-3cd9ce84.js";function s(){var i=navigator.userAgent||navigator.vendor;return/windows phone/i.test(i)?"Windows Phone":/android/i.test(i)?"Android":"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1||/(iPad|iPhone|iPod)/gi.test(navigator.platform)?"iOS":"unknown"}const e=class{constructor(t){i(this,t),this.show=!1,this.youtubeRenderKey=1}componentWillLoad(){this.handleDuration()}handleButtonCountChange(i,t){console.log(i),(null==i?void 0:i.button_count)!==(null==t?void 0:t.button_count)&&this.youtubeRenderKey++,(null==i?void 0:i.enabled)&&this.handleDuration()}handleDuration(){var i,t;this.show=!!(null===(i=null===window||void 0===window?void 0:window.wp)||void 0===i?void 0:i.blocks)||function({current:i,duration:t,showAfter:o}){if(i===o)return!0;let l=i/t*100;return 99.9<l&&(l=100),l>=o}({current:this.currentTime,duration:this.duration,showAfter:(null===(t=this.config)||void 0===t?void 0:t.percentage_start)||0})}youtubeButton(){var i,o,l,s;if("youtube"===(null===(i=this.config)||void 0===i?void 0:i.button_type)&&(null===(o=this.youtube)||void 0===o?void 0:o.channelId))return t("presto-youtube-subscribe-button",{key:this.youtubeRenderKey,channel:null===(l=this.youtube)||void 0===l?void 0:l.channelId,showCount:null===(s=this.config)||void 0===s?void 0:s.button_count})}customButton(){var i,o,l,s,e,d,n,a,r,h,v;if("custom"===(null===(i=this.config)||void 0===i?void 0:i.button_type))return t("presto-player-button",{type:"primary",size:"small",href:null===(l=null===(o=this.config)||void 0===o?void 0:o.button_link)||void 0===l?void 0:l.url,target:(null===(e=null===(s=this.config)||void 0===s?void 0:s.button_link)||void 0===e?void 0:e.opensInNewTab)?"_blank":"_self",style:Object.assign(Object.assign({"--presto-player-button-border-radius":`${null===(d=this.config)||void 0===d?void 0:d.button_radius}px`},(null===(n=this.config)||void 0===n?void 0:n.button_color)?{"--presto-player-button-color":`${null===(a=this.config)||void 0===a?void 0:a.button_color}`}:{}),(null===(r=this.config)||void 0===r?void 0:r.button_text_color)?{"--presto-player-button-text":`${null===(h=this.config)||void 0===h?void 0:h.button_text_color}`}:{})},null===(v=this.config)||void 0===v?void 0:v.button_text)}render(){var i,o;return t("presto-action-bar-ui",{open:this.show,style:{"--presto-action-bar-background":(null===(i=this.config)||void 0===i?void 0:i.background_color)||"#1d1d1d"}},null===(o=this.config)||void 0===o?void 0:o.text,t("div",{slot:"button"},this.youtubeButton(),this.customButton()))}get el(){return o(this)}static get watchers(){return{config:["handleButtonCountChange"],currentTime:["handleDuration"],duration:["handleDuration"]}}};e.style=":host{display:block}";const d=class{constructor(t){i(this,t)}componentWillLoad(){this.poster=this.poster||this.thumbnail}render(){return t("presto-video",{getRef:this.getRef,player:this.player,autoplay:this.autoplay,preload:this.preload,poster:this.poster,playsinline:this.playsinline,src:this.src,tracks:this.tracks})}},n=class{constructor(t){i(this,t),this.playVideo=l(this,"playVideo",7),this.rewatchVideo=l(this,"rewatchVideo",7),this.percentagePassed=0}componentWillLoad(){this.handleDuration()}timePassed({current:i,duration:t,showAfter:o}){if(i===o)return!0;let l=i/t*100;return 99.9<l&&(l=100),l>=o}handleFullScreen(){var i,t,o,l,s,e,d,n,a,r,h,v;if(this.enabled&&!this.skipped&&this.player){if(this.player.fullscreen.active&&this.player.fullscreen.exit(),this.isiOS()&&!(null===(o=null===(t=null===(i=this.player)||void 0===i?void 0:i.config)||void 0===t?void 0:t.blockAttributes)||void 0===o?void 0:o.playsinline)&&("function"==typeof(null===(s=null===(l=null==this?void 0:this.player)||void 0===l?void 0:l.media)||void 0===s?void 0:s.webkitExitFullScreen)&&(null===(e=this.player)||void 0===e||e.media.webkitExitFullScreen()),"function"==typeof(null===(n=null===(d=null==this?void 0:this.player)||void 0===d?void 0:d.embed)||void 0===n?void 0:n.exitFullscreen)&&(null===(r=null===(a=null==this?void 0:this.player)||void 0===a?void 0:a.embed)||void 0===r||r.exitFullscreen()),this.isiOSYoutubeFullscreen())){const i=this.player.currentTime;this.player.currentTime=this.player.duration,this.player.once("playing",(()=>{this.player.currentTime=i}))}this.player.ended&&(console.log("ended"),this.ended=!0,100===(null===(v=null===(h=this.preset)||void 0===h?void 0:h.cta)||void 0===v?void 0:v.percentage)&&(this.show=!0))}}handleDuration(){var i,t;this.enabled=!this.skipped&&(null===(t=null===(i=this.preset)||void 0===i?void 0:i.cta)||void 0===t?void 0:t.enabled),this.handleTime()}handlePercentagePassed(){this.percentagePassed=this.currentTime/this.duration*100}handlePercentagePassedChange(){this.ended=this.percentagePassed>=99.9}handleEnabled(){this.show&&(this.skipped||this.player&&this.player.pause())}handleTime(){var i,t;this.enabled&&(this.skipped||100!==(null===(t=null===(i=this.preset)||void 0===i?void 0:i.cta)||void 0===t?void 0:t.percentage)&&this.checkTime())}isiOS(){const i=window.navigator.userAgent;return!!i.match(/iPad/i)||!!i.match(/iPhone/i)}isiOSYoutubeFullscreen(){var i,t,o;return this.isiOS()&&"youtube"===this.player.provider&&!(null===(o=null===(t=null===(i=this.player)||void 0===i?void 0:i.config)||void 0===t?void 0:t.blockAttributes)||void 0===o?void 0:o.playsinline)}checkTime(){var i,t;this.show=this.timePassed({current:this.currentTime,duration:this.duration,showAfter:(null===(t=null===(i=this.preset)||void 0===i?void 0:i.cta)||void 0===t?void 0:t.percentage)||0})}skip(){this.skipped=!0,this.show=!1,this.playVideo.emit()}rewatch(){this.ended=!1,this.show=!1,this.rewatchVideo.emit(),this.player.once("timeupdate",(()=>{setTimeout((()=>this.player.play()),500)})),this.player.restart()}render(){var i,o,l,s,e,d,n,a,r,h,v,u,c,p,y,m,w,b,f,g,_,k,P,S,x,T,C,O,A;if(this.show)return t("presto-cta-overlay-ui",{style:Object.assign(Object.assign(Object.assign({"--presto-player-button-border-radius":`${null===(o=null===(i=this.preset)||void 0===i?void 0:i.cta)||void 0===o?void 0:o.button_radius}px`},(null===(s=null===(l=this.preset)||void 0===l?void 0:l.cta)||void 0===s?void 0:s.background_opacity)?{"--presto-player-cta-background-opacity":""+(null===(d=null===(e=this.preset)||void 0===e?void 0:e.cta)||void 0===d?void 0:d.background_opacity)/100}:{}),(null===(a=null===(n=this.preset)||void 0===n?void 0:n.cta)||void 0===a?void 0:a.button_color)?{"--presto-player-button-color":`${null===(h=null===(r=this.preset)||void 0===r?void 0:r.cta)||void 0===h?void 0:h.button_color}`}:{}),(null===(u=null===(v=this.preset)||void 0===v?void 0:v.cta)||void 0===u?void 0:u.button_text_color)?{"--presto-player-button-text":`${null===(p=null===(c=this.preset)||void 0===c?void 0:c.cta)||void 0===p?void 0:p.button_text_color}`}:{}),direction:this.direction,class:"cta-overlay",headline:null===(m=null===(y=this.preset)||void 0===y?void 0:y.cta)||void 0===m?void 0:m.headline,"bottom-text":null===(b=null===(w=this.preset)||void 0===w?void 0:w.cta)||void 0===b?void 0:b.bottom_text,"show-button":null===(g=null===(f=this.preset)||void 0===f?void 0:f.cta)||void 0===g?void 0:g.show_button,buttonLink:null===(k=null===(_=this.preset)||void 0===_?void 0:_.cta)||void 0===k?void 0:k.button_link,allowSkip:!this.ended&&(null===(S=null===(P=this.preset)||void 0===P?void 0:P.cta)||void 0===S?void 0:S.show_skip),allowRewatch:this.ended&&(null===(T=null===(x=this.preset)||void 0===x?void 0:x.cta)||void 0===T?void 0:T.show_rewatch),"skip-text":null===(C=null==this?void 0:this.i18n)||void 0===C?void 0:C.skip,"button-text":null===(A=null===(O=this.preset)||void 0===O?void 0:O.cta)||void 0===A?void 0:A.button_text,onSkip:()=>this.skip(),onRewatch:()=>this.rewatch()})}static get watchers(){return{currentTime:["handleFullScreen","handlePercentagePassed","handleEnabled","handleTime"],duration:["handleDuration","handlePercentagePassed"],percentagePassed:["handlePercentagePassedChange"]}}};n.style=":host{display:block}";const a=class{constructor(t){i(this,t),this.playVideo=l(this,"playVideo",7)}setStorage(i){window.localStorage.setItem("presto.videos.email_collection",JSON.stringify({[this.videoId]:i}))}getStorage(){return window.localStorage.getItem("presto.videos.email_collection")}componentWillLoad(){this.handleDuration()}timePassed({current:i,duration:t,showAfter:o}){if(i===o)return!0;let l=i/t*100;return 99.9<l&&(l=100),l>=o}handlePlayerInit(i,t){t||this.player.on("play playing timeupdate",(()=>{this.getStorage()||this.show&&this.player.pause()}))}handleDuration(){var i,t;this.enabled=!this.getStorage()&&(null===(t=null===(i=this.preset)||void 0===i?void 0:i.email_collection)||void 0===t?void 0:t.enabled),this.handleTime()}handleTime(){this.enabled&&(this.getStorage()||this.checkTime())}checkTime(){var i,t;this.show=this.timePassed({current:this.currentTime,duration:this.duration,showAfter:(null===(t=null===(i=this.preset)||void 0===i?void 0:i.email_collection)||void 0===t?void 0:t.percentage)||0})}async getNonce(){var i;return fetch(`${null===(i=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===i?void 0:i.ajaxurl}?action=presto_refresh_progress_nonce`)}async submit(i){var t;this.loading=!0,this.error="";const o=await this.getNonce(),{data:l}=await o.json();try{let o=await fetch(null===(t=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===t?void 0:t.ajaxurl,{method:"post",body:new URLSearchParams(Object.assign({action:"presto_player_email_submit",nonce:l,preset_id:this.preset.id,video_id:this.videoId},(null==i?void 0:i.detail)||{}))});const{success:s,data:e}=await o.json();if(!s)throw e;this.setStorage("collected"),this.show=!1,this.playVideo.emit()}catch(i){const t=null==i?void 0:i[0];t&&"string"==typeof t&&(this.error=t)}finally{this.loading=!1}}skip(){this.setStorage("skipped"),this.show=!1,this.playVideo.emit()}render(){var i,o,l,s,e,d,n,a,r,h,v;if(this.show)return t("presto-email-overlay-ui",{direction:this.direction,class:"email-overlay",headline:null===(o=null===(i=this.preset)||void 0===i?void 0:i.email_collection)||void 0===o?void 0:o.headline,defaultHeadline:null===(l=null==this?void 0:this.i18n)||void 0===l?void 0:l.emailDefaultHeadline,bottomText:null===(e=null===(s=this.preset)||void 0===s?void 0:s.email_collection)||void 0===e?void 0:e.bottom_text,allowSkip:null===(n=null===(d=this.preset)||void 0===d?void 0:d.email_collection)||void 0===n?void 0:n.allow_skip,skipText:null===(a=null==this?void 0:this.i18n)||void 0===a?void 0:a.skip,buttonText:null===(h=null===(r=this.preset)||void 0===r?void 0:r.email_collection)||void 0===h?void 0:h.button_text,placeholder:null===(v=null==this?void 0:this.i18n)||void 0===v?void 0:v.emailPlaceholder,isLoading:this.loading,errorMessage:this.error,onSubmitForm:i=>this.submit(i),onSkip:()=>this.skip()})}static get watchers(){return{player:["handlePlayerInit"],duration:["handleDuration"],currentTime:["handleTime"]}}};a.style=":host{display:block}";const r=class{constructor(t){i(this,t),this.playVideo=l(this,"playVideo",7)}render(){var i,o,l,s,e,d,n,a,r;return t("div",{class:"presto-player__muted-overlay",onClick:()=>{this.mutedPreview=!1,this.playVideo.emit()}},(null===(i=this.preset)||void 0===i?void 0:i["play-large"])&&t("div",{class:"plyr__control plyr__control--overlaid","data-plyr":"play","aria-label":"Play",part:"muted-overlay-play"},t("svg",{id:"plyr-play",viewBox:"0 0 18 18"},t("path",{d:"M15.562 8.1L3.87.225c-.818-.562-1.87 0-1.87.9v15.75c0 .9 1.052 1.462 1.87.9L15.563 9.9c.584-.45.584-1.35 0-1.8z"})),t("span",{class:"plyr__sr-only"},"Play")),(null===(o=this.mutedOverlay)||void 0===o?void 0:o.enabled)&&(null===(l=this.mutedOverlay)||void 0===l?void 0:l.src)?t("div",{class:"presto-player__overlay is-image",part:"muted-overlay-image",style:{width:`${(null===(s=this.mutedOverlay)||void 0===s?void 0:s.width)||50}%`,left:100*((null===(d=null===(e=this.mutedOverlay)||void 0===e?void 0:e.focalPoint)||void 0===d?void 0:d.x)||.5)+"%",top:100*((null===(a=null===(n=this.mutedOverlay)||void 0===n?void 0:n.focalPoint)||void 0===a?void 0:a.y)||.5)+"%"}},t("img",{src:null===(r=this.mutedOverlay)||void 0===r?void 0:r.src,style:{transform:"translateX(-50%) translateY(-50%)"}})):"")}};r.style=":host{display:block}";const h=class{constructor(t){i(this,t)}getId(i){const t=/^.*(vimeo\.com\/)((channels\/[A-z]+\/)|(groups\/[A-z]+\/videos\/))?([0-9]+)/.exec(i||"");return(null==t?void 0:t[5])||""}render(){if(this.src)return"Android"!==s()||(i=window.navigator.standalone,o=window.navigator.userAgent.toLowerCase(),l=/safari/.test(o),/iphone|ipod|ipad/.test(o)?!i&&l||i||l:!o.includes("wv"))?t("div",{class:"plyr__video-embed",part:"embed",ref:this.getRef,"data-plyr-provider":"vimeo","data-plyr-embed-id":this.getId(this.src)}):t("div",{class:"presto-iframe-fallback-container"},t("iframe",{src:`https://player.vimeo.com/video/${this.getId(this.src)}?loop=false&amp;byline=false&amp;portrait=false&amp;title=false&amp;speed=true&amp;transparent=0&amp;gesture=media`,allowFullScreen:!0,allowTransparency:!0,allow:"autoplay",style:{width:"100%"},class:"presto-fallback-iframe"}));var i,o,l}};h.style=":host{display:block}";const v=class{constructor(t){i(this,t),this.reload=l(this,"reload",7)}handlePlayerChange(){this.player&&(this.player.ratio="16:9",this.fixes())}fixes(){this.player.on("statechange",(i=>{var t,o,l,s,e;1===i.detail.code&&((null===(e=null===(s=null===(l=null===(o=null===(t=null==i?void 0:i.detail)||void 0===t?void 0:t.plyr)||void 0===o?void 0:o.config)||void 0===l?void 0:l.blockAttributes)||void 0===s?void 0:s.mutedPreview)||void 0===e?void 0:e.enabled)||(this.player.muted=!1))}))}getId(i){var t;const o=(i||"").match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/);return o&&11===(null===(t=null==o?void 0:o[2])||void 0===t?void 0:t.length)?o[2]:null}loadPlayer(){this.lazyLoad=!1,this.reloadPlayer=!0}componentDidRender(){this.reloadPlayer&&(this.reloadPlayer=!1,this.reload.emit("play"))}setWebView(){var i;let t=null===(i=window.navigator)||void 0===i?void 0:i.standalone,o=window.navigator.userAgent.toLowerCase(),l=/safari/.test(o),s=/iphone|ipod|ipad/.test(o);this.isWebView=s?!t&&!l:o.includes("wv")}componentWillLoad(){this.setWebView(),this.poster||(this.poster=`//img.youtube.com/vi/${this.getId(this.src)}/maxresdefault.jpg`),this.lazyLoad&&"iOS"===s()&&(this.lazyLoad=!1)}render(){return this.isWebView?t("div",{class:"fallback-container"},t("iframe",{src:this.src,allowFullScreen:!0,allowtransparency:!0,allow:"autoplay"})):this.lazyLoad?t("div",null,t("presto-video",{part:"video",getRef:this.getRef,poster:this.poster,src:""}),t("div",{class:"presto-player__play-cover",onClick:()=>this.loadPlayer()})):t("div",{class:"plyr__video-embed",part:"embed",ref:this.getRef,"data-plyr-provider":"youtube","data-plyr-embed-id":this.getId(this.src)})}static get watchers(){return{player:["handlePlayerChange"]}}};v.style=":host{display:block}.fallback-container{position:relative;padding-bottom:56.25%;padding-top:30px;height:0;overflow:hidden}.fallback-container iframe,.fallback-container object,.fallback-container embed{position:absolute;top:0;left:0;width:100%;height:100%}";export{e as presto_action_bar,d as presto_bunny,n as presto_cta_overlay,a as presto_email_overlay,r as presto_muted_overlay,h as presto_vimeo,v as presto_youtube}
dist/components/web-components/web-components.esm.js CHANGED
@@ -1 +1 @@
1
- import{p as e,b as t}from"./p-3cd9ce84.js";var r,o;(r=import.meta.url,o={},""!==r&&(o.resourcesUrl=new URL(".",r).href),e(o)).then((e=>t([["p-9f452570",[[1,"presto-player-skeleton",{effect:[1]}]]],["p-c4624abd",[[1,"presto-action-bar-ui",{open:[4]}],[0,"presto-youtube-subscribe-button",{channel:[1],layout:[1],showCount:[4,"show-count"]}]]],["p-928731f7",[[1,"presto-video-curtain-ui",{actionUrl:[1,"action-url"]}],[1,"presto-player-button",{type:[513],size:[513],full:[516],disabled:[516],submit:[516],name:[1],value:[1],href:[1],target:[513],download:[1],hasFocus:[32],hasLabel:[32],hasPrefix:[32],hasSuffix:[32]}]]],["p-50d09a94",[[1,"presto-cta-overlay-ui",{headline:[1],defaultHeadline:[1,"default-headline"],bottomText:[1,"bottom-text"],showButton:[4,"show-button"],buttonText:[1,"button-text"],buttonType:[1,"button-type"],buttonLink:[16],allowRewatch:[4,"allow-rewatch"],allowSkip:[4,"allow-skip"],skipText:[1,"skip-text"],rewatchText:[1,"rewatch-text"],direction:[1]}]]],["p-befb412c",[[0,"presto-video",{getRef:[1040],autoplay:[4],src:[1],preload:[1],poster:[1],player:[8],tracks:[16],playsinline:[4],provider:[1]}]]],["p-dbe6d138",[[1,"presto-email-overlay-ui",{headline:[1],defaultHeadline:[1,"default-headline"],bottomText:[1,"bottom-text"],buttonText:[1,"button-text"],placeholder:[1],allowSkip:[4,"allow-skip"],borderRadius:[2,"border-radius"],skipText:[1,"skip-text"],isLoading:[4,"is-loading"],errorMessage:[1,"error-message"],direction:[1],email:[32]}],[1,"presto-player-spinner"]]],["p-23641bb9",[[1,"presto-action-bar",{config:[16],currentTime:[2,"current-time"],duration:[2],direction:[1],youtube:[16],show:[32],youtubeRenderKey:[32]}],[0,"presto-cta-overlay",{player:[8],preset:[16],videoId:[2,"video-id"],i18n:[16],currentTime:[2,"current-time"],duration:[2],direction:[1],enabled:[32],show:[32],loading:[32],error:[32],skipped:[32],percentagePassed:[32],ended:[32]}],[0,"presto-email-overlay",{player:[8],preset:[16],videoId:[2,"video-id"],i18n:[16],currentTime:[2,"current-time"],duration:[2],direction:[1],enabled:[32],show:[32],loading:[32],error:[32]}],[0,"presto-bunny",{getRef:[1040],autoplay:[4],src:[1],preload:[1],poster:[1025],player:[8],tracks:[16],playsinline:[4],provider:[1],thumbnail:[1],previewUrl:[1,"preview-url"]}],[0,"presto-youtube",{src:[1],poster:[1025],lazyLoad:[1028,"lazy-load"],player:[8],getRef:[1040],reloadPlayer:[32],isWebView:[32]}],[0,"presto-muted-overlay",{mutedPreview:[4,"muted-preview"],mutedOverlay:[16],preset:[16]}],[0,"presto-vimeo",{src:[1],poster:[1],player:[8],getRef:[1040]}]]],["p-875adc93",[[1,"presto-player",{video_id:[2],iconUrl:[1,"icon-url"],src:[1],bunny:[16],branding:[16],config:[16],preset:[16],chapters:[16],blockAttributes:[16],tracks:[16],analytics:[4],automations:[4],provider:[1],provider_video_id:[1],actionBar:[16],youtube:[16],type:[1],autoplay:[1540],preload:[1],poster:[1],playsinline:[4],isAdmin:[4,"is-admin"],direction:[1],css:[1],player:[32],playerEl:[32],shouldLazyLoad:[32],mutedPreview:[32],currentTime:[32],duration:[32],isSticky:[32],videoHeight:[32],playClass:[32],previouslyPlaying:[32],play:[64],restart:[64],pause:[64],stop:[64],fullscreenToggle:[64],on:[64],off:[64]},[[8,"visibilitychange","playVideoOnlyInViewport"]]]]]],e)));
1
+ import{p as e,b as t}from"./p-3cd9ce84.js";var r,o;(r=import.meta.url,o={},""!==r&&(o.resourcesUrl=new URL(".",r).href),e(o)).then((e=>t([["p-9f452570",[[1,"presto-player-skeleton",{effect:[1]}]]],["p-c4624abd",[[1,"presto-action-bar-ui",{open:[4]}],[0,"presto-youtube-subscribe-button",{channel:[1],layout:[1],showCount:[4,"show-count"]}]]],["p-928731f7",[[1,"presto-video-curtain-ui",{actionUrl:[1,"action-url"]}],[1,"presto-player-button",{type:[513],size:[513],full:[516],disabled:[516],submit:[516],name:[1],value:[1],href:[1],target:[513],download:[1],hasFocus:[32],hasLabel:[32],hasPrefix:[32],hasSuffix:[32]}]]],["p-50d09a94",[[1,"presto-cta-overlay-ui",{headline:[1],defaultHeadline:[1,"default-headline"],bottomText:[1,"bottom-text"],showButton:[4,"show-button"],buttonText:[1,"button-text"],buttonType:[1,"button-type"],buttonLink:[16],allowRewatch:[4,"allow-rewatch"],allowSkip:[4,"allow-skip"],skipText:[1,"skip-text"],rewatchText:[1,"rewatch-text"],direction:[1]}]]],["p-befb412c",[[0,"presto-video",{getRef:[1040],autoplay:[4],src:[1],preload:[1],poster:[1],player:[8],tracks:[16],playsinline:[4],provider:[1]}]]],["p-dbe6d138",[[1,"presto-email-overlay-ui",{headline:[1],defaultHeadline:[1,"default-headline"],bottomText:[1,"bottom-text"],buttonText:[1,"button-text"],placeholder:[1],allowSkip:[4,"allow-skip"],borderRadius:[2,"border-radius"],skipText:[1,"skip-text"],isLoading:[4,"is-loading"],errorMessage:[1,"error-message"],direction:[1],email:[32]}],[1,"presto-player-spinner"]]],["p-fe85e9e3",[[1,"presto-action-bar",{config:[16],currentTime:[2,"current-time"],duration:[2],direction:[1],youtube:[16],show:[32],youtubeRenderKey:[32]}],[0,"presto-cta-overlay",{player:[8],preset:[16],videoId:[2,"video-id"],i18n:[16],currentTime:[2,"current-time"],duration:[2],direction:[1],enabled:[32],show:[32],loading:[32],error:[32],skipped:[32],percentagePassed:[32],ended:[32]}],[0,"presto-email-overlay",{player:[8],preset:[16],videoId:[2,"video-id"],i18n:[16],currentTime:[2,"current-time"],duration:[2],direction:[1],enabled:[32],show:[32],loading:[32],error:[32]}],[0,"presto-bunny",{getRef:[1040],autoplay:[4],src:[1],preload:[1],poster:[1025],player:[8],tracks:[16],playsinline:[4],provider:[1],thumbnail:[1],previewUrl:[1,"preview-url"]}],[0,"presto-youtube",{src:[1],poster:[1025],lazyLoad:[1028,"lazy-load"],player:[8],getRef:[1040],reloadPlayer:[32],isWebView:[32]}],[0,"presto-muted-overlay",{mutedPreview:[4,"muted-preview"],mutedOverlay:[16],preset:[16]}],[0,"presto-vimeo",{src:[1],poster:[1],player:[8],getRef:[1040]}]]],["p-0f963262",[[1,"presto-player",{video_id:[2],iconUrl:[1,"icon-url"],src:[1],bunny:[16],branding:[16],config:[16],preset:[16],chapters:[16],blockAttributes:[16],tracks:[16],analytics:[4],automations:[4],provider:[1],provider_video_id:[1],actionBar:[16],youtube:[16],type:[1],autoplay:[1540],preload:[1],poster:[1],playsinline:[4],isAdmin:[4,"is-admin"],direction:[1],css:[1],player:[32],playerEl:[32],shouldLazyLoad:[32],mutedPreview:[32],currentTime:[32],duration:[32],isSticky:[32],videoHeight:[32],playClass:[32],previouslyPlaying:[32],play:[64],restart:[64],pause:[64],stop:[64],fullscreenToggle:[64],on:[64],off:[64]},[[8,"visibilitychange","playVideoOnlyInViewport"]]]]]],e)));
dist/divi/admin.dependencies.wp.json DELETED
@@ -1,4 +0,0 @@
1
- {
2
- "dependencies": [],
3
- "version": "4f3155d822fc5822d2dddc55fe6fda32"
4
- }
 
 
 
 
dist/divi/manifest.json DELETED
@@ -1,28 +0,0 @@
1
- {
2
- "admin.js": "divi/admin.js",
3
- "admin.js.map": "admin.8e6cbaef4ec240694199.hot-update.js.map",
4
- "divi/admin.js.map": "divi/admin.js.map",
5
- "divi/vendors--presto-player--admin.js.map": "divi/vendors--presto-player--admin.js.map",
6
- "runtime.js": "divi/runtime.js",
7
- "runtime.js.map": "divi/runtime.js.map",
8
- "vendors--presto-player--admin.js": "divi/vendors--presto-player--admin.js",
9
- "vendors--presto-player--admin.js.map": "vendors--presto-player--admin.8e6cbaef4ec240694199.hot-update.js.map",
10
- "wpackioEp": {
11
- "admin": {
12
- "assets": {
13
- "js": [
14
- "divi/runtime.js",
15
- "divi/vendors--presto-player--admin.js",
16
- "divi/admin.js"
17
- ],
18
- "js.map": [
19
- "divi/runtime.js.map",
20
- "divi/vendors--presto-player--admin.js.map",
21
- "vendors--presto-player--admin.8e6cbaef4ec240694199.hot-update.js.map",
22
- "divi/admin.js.map",
23
- "admin.8e6cbaef4ec240694199.hot-update.js.map"
24
- ]
25
- }
26
- }
27
- }
28
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
inc/Support/Block.php CHANGED
@@ -256,9 +256,7 @@ class Block
256
  public function isHls($src)
257
  {
258
  $src = !empty($src) ? $src : '';
259
- $parts = pathinfo($src);
260
-
261
- return !empty($parts['extension']) && 'm3u8' === $parts['extension'];
262
  }
263
 
264
  /**
256
  public function isHls($src)
257
  {
258
  $src = !empty($src) ? $src : '';
259
+ return \strpos($src, '.m3u8') !== false;
 
 
260
  }
261
 
262
  /**
languages/presto-player.pot CHANGED
@@ -7,7 +7,7 @@ msgstr ""
7
  "MIME-Version: 1.0\n"
8
  "Content-Type: text/plain; charset=UTF-8\n"
9
  "Content-Transfer-Encoding: 8bit\n"
10
- "POT-Creation-Date: 2021-07-22T19:47:49+00:00\n"
11
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12
  "X-Generator: WP-CLI 2.4.0\n"
13
 
7
  "MIME-Version: 1.0\n"
8
  "Content-Type: text/plain; charset=UTF-8\n"
9
  "Content-Transfer-Encoding: 8bit\n"
10
+ "POT-Creation-Date: 2021-07-26T16:23:22+00:00\n"
11
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12
  "X-Generator: WP-CLI 2.4.0\n"
13
 
presto-player.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Presto Player
5
  * Plugin URI: http://prestoplayer.com
6
  * Description: A beautiful, fast media player for WordPress.
7
- * Version: 1.5.8
8
  * Author: Presto Made, Inc
9
  * Text Domain: presto-player
10
  * Tags: private, video, lms, hls
4
  * Plugin Name: Presto Player
5
  * Plugin URI: http://prestoplayer.com
6
  * Description: A beautiful, fast media player for WordPress.
7
+ * Version: 1.5.9
8
  * Author: Presto Made, Inc
9
  * Text Domain: presto-player
10
  * Tags: private, video, lms, hls
readme.txt CHANGED
@@ -153,6 +153,12 @@ It is also important to point out that BunnyNet has a $1 per month minimum.
153
 
154
  == Changelog ==
155
 
 
 
 
 
 
 
156
  = 1.5.8 - July 22, 2021 =
157
  * Fix issue with Vimeo videos in Android Webview
158
  * Fix additional request with Vimeo videos due to component re-rendering.
153
 
154
  == Changelog ==
155
 
156
+ = 1.5.9 - July 26, 2021 =
157
+ * Fix issue with videos not being centered in iOS fullscreen.
158
+ * Fix issue with non-standard HLS links not playing as HLS.
159
+ * Fix issue with Lazy Load Youtube Videos needing a second click on newer iPad devices to play.
160
+ * Allow focus mode to work with Muted Autoplay.
161
+
162
  = 1.5.8 - July 22, 2021 =
163
  * Fix issue with Vimeo videos in Android Webview
164
  * Fix additional request with Vimeo videos due to component re-rendering.
vendor/composer/installed.php CHANGED
@@ -5,7 +5,7 @@
5
  'type' => 'project',
6
  'install_path' => __DIR__ . '/../../',
7
  'aliases' => array(),
8
- 'reference' => 'efc941dfe9e183c14f4729c5c86ad5ce495e55e2',
9
  'name' => 'course/player',
10
  'dev' => false,
11
  ),
@@ -16,7 +16,7 @@
16
  'type' => 'project',
17
  'install_path' => __DIR__ . '/../../',
18
  'aliases' => array(),
19
- 'reference' => 'efc941dfe9e183c14f4729c5c86ad5ce495e55e2',
20
  'dev_requirement' => false,
21
  ),
22
  'level-2/dice' => array(
5
  'type' => 'project',
6
  'install_path' => __DIR__ . '/../../',
7
  'aliases' => array(),
8
+ 'reference' => '376a0f93a14315138417fe95f8de4e56c38d3e13',
9
  'name' => 'course/player',
10
  'dev' => false,
11
  ),
16
  'type' => 'project',
17
  'install_path' => __DIR__ . '/../../',
18
  'aliases' => array(),
19
+ 'reference' => '376a0f93a14315138417fe95f8de4e56c38d3e13',
20
  'dev_requirement' => false,
21
  ),
22
  'level-2/dice' => array(