Version Description
- October 12, 2021 =
- Fix issue with built-in analytics sometimes not working with Youtube videos.
Download this release
Release Info
Developer | 2winfactor |
Plugin | The Ultimate Video Player For WordPress – by Presto Player |
Version | 1.6.10 |
Comparing to | |
See all releases |
Code changes from version 1.6.9 to 1.6.10
- dist/components/cjs/{hls-91566bb7.js → hls-abf488af.js} +2 -2
- dist/components/cjs/{index-b9f00561.js → index-2f1250e6.js} +80 -78
- dist/components/cjs/{learndash-6fd50144.js → learndash-cba8cffd.js} +2 -2
- dist/components/cjs/loader.cjs.js +2 -2
- dist/components/cjs/presto-action-bar_20.cjs.entry.js +2 -2
- dist/components/cjs/presto-player-skeleton.cjs.entry.js +2 -2
- dist/components/cjs/presto-video-curtain-ui.cjs.entry.js +2 -2
- dist/components/cjs/web-components.cjs.js +2 -2
- dist/components/collection/collection-manifest.json +1 -1
- dist/components/collection/components/core/player/functions/analytics/wp.js +2 -1
- dist/components/collection/testing/index.js +21 -0
- dist/components/esm/{hls-3461f093.js → hls-69c8427a.js} +2 -2
- dist/components/esm/{index-a4d27653.js → index-7c33214e.js} +80 -78
- dist/components/esm/{learndash-59bda1c1.js → learndash-f015151a.js} +2 -2
- dist/components/esm/loader.js +2 -2
- dist/components/esm/presto-action-bar_20.entry.js +2 -2
- dist/components/esm/presto-player-skeleton.entry.js +2 -2
- dist/components/esm/presto-video-curtain-ui.entry.js +2 -2
- dist/components/esm/web-components.js +2 -2
- dist/components/types/testing/index.d.ts +4 -0
- dist/components/web-components/p-0fe07ea4.entry.js +0 -1
- dist/components/web-components/p-2006b1be.entry.js +1 -0
- dist/components/web-components/p-29227b20.js +1 -0
- dist/components/web-components/p-2b27e74b.js +0 -1
- dist/components/web-components/{p-ee10c091.js → p-33c93c5e.js} +1 -1
- dist/components/web-components/p-39ddcde4.js +0 -1
- dist/components/web-components/p-539dd74b.entry.js +1 -0
- dist/components/web-components/p-660ec1bb.js +0 -1
- dist/components/web-components/p-76d5209c.js +1 -0
- dist/components/web-components/{p-b4cda9d1.entry.js → p-bea94c6e.entry.js} +1 -1
- dist/components/web-components/p-d81ccfaf.js +1 -0
- dist/components/web-components/p-e30af8b3.entry.js +0 -1
- dist/components/web-components/web-components.esm.js +1 -1
- dist/loader/index.d.ts +0 -1
- languages/presto-player.pot +1 -1
- presto-player.php +1 -1
- readme.txt +3 -0
- vendor/composer/installed.php +2 -2
dist/components/cjs/{hls-91566bb7.js → hls-abf488af.js}
RENAMED
@@ -1,7 +1,7 @@
|
|
1 |
'use strict';
|
2 |
|
3 |
-
const index = require('./index-
|
4 |
-
const prestoActionBar_prestoActionBarController_prestoActionBarUi_prestoBunny_prestoCtaOverlay_prestoCtaOverlayController_prestoCtaOverlayUi_prestoDynamicOverlayUi_prestoDynamicOverlays_prestoEmailOverlay_prestoEmailOverlayController_prestoEmailOverlayUi_prestoMutedOverlay_prestoPlayer_prestoPlayerButton_prestoPlayerSpinner_prestoVideo_prestoVimeo_prestoYoutube_prestoYoutubeSubscribeButton_entry = require('./presto-action-bar.presto-action-bar-controller.presto-action-bar-ui.presto-bunny.presto-cta-overlay.presto-cta-overlay-controller.presto-cta-overlay-ui.presto-dynamic-overlay-ui.presto-dynamic-overlays.presto-email-overlay.presto-email-overlay-controller.presto-email-overlay-ui.presto-muted-overlay.presto-player.presto-player-button.presto-player-spinner.presto-video.presto-vimeo.presto-youtube.presto-youtube-subscribe-button-
|
5 |
|
6 |
var loadHLS = function loadHLS(_ref) {
|
7 |
var config = _ref.config,
|
1 |
'use strict';
|
2 |
|
3 |
+
const index = require('./index-2f1250e6.js');
|
4 |
+
const prestoActionBar_prestoActionBarController_prestoActionBarUi_prestoBunny_prestoCtaOverlay_prestoCtaOverlayController_prestoCtaOverlayUi_prestoDynamicOverlayUi_prestoDynamicOverlays_prestoEmailOverlay_prestoEmailOverlayController_prestoEmailOverlayUi_prestoMutedOverlay_prestoPlayer_prestoPlayerButton_prestoPlayerSpinner_prestoVideo_prestoVimeo_prestoYoutube_prestoYoutubeSubscribeButton_entry = require('./presto-action-bar.presto-action-bar-controller.presto-action-bar-ui.presto-bunny.presto-cta-overlay.presto-cta-overlay-controller.presto-cta-overlay-ui.presto-dynamic-overlay-ui.presto-dynamic-overlays.presto-email-overlay.presto-email-overlay-controller.presto-email-overlay-ui.presto-muted-overlay.presto-player.presto-player-button.presto-player-spinner.presto-video.presto-vimeo.presto-youtube.presto-youtube-subscribe-button-4ce918d5.js');
|
5 |
|
6 |
var loadHLS = function loadHLS(_ref) {
|
7 |
var config = _ref.config,
|
dist/components/cjs/{index-b9f00561.js → index-2f1250e6.js}
RENAMED
@@ -293,6 +293,8 @@ function _assertThisInitialized(self) {
|
|
293 |
function _possibleConstructorReturn(self, call) {
|
294 |
if (call && (typeof call === "object" || typeof call === "function")) {
|
295 |
return call;
|
|
|
|
|
296 |
}
|
297 |
|
298 |
return _assertThisInitialized(self);
|
@@ -520,9 +522,9 @@ var hostListenerProxy = function hostListenerProxy(hostRef, methodName) {
|
|
520 |
if (hostRef.$flags$ & 256
|
521 |
/* isListenReady */
|
522 |
) {
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
(hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
|
527 |
}
|
528 |
}
|
@@ -631,16 +633,16 @@ var attachStyles = function attachStyles(hostRef) {
|
|
631 |
if (flags & 10
|
632 |
/* needsScopedEncapsulation */
|
633 |
) {
|
634 |
-
|
635 |
-
|
636 |
-
|
637 |
-
|
638 |
-
|
639 |
-
|
640 |
-
|
641 |
-
|
642 |
-
|
643 |
-
|
644 |
|
645 |
endAttachStyles();
|
646 |
};
|
@@ -1331,11 +1333,11 @@ var scheduleUpdate = function scheduleUpdate(hostRef, isInitialLoad) {
|
|
1331 |
if (hostRef.$flags$ & 4
|
1332 |
/* isWaitingForChildren */
|
1333 |
) {
|
1334 |
-
|
1335 |
-
|
1336 |
-
|
1337 |
-
|
1338 |
-
|
1339 |
|
1340 |
attachToAncestor(hostRef, hostRef.$ancestorComponent$); // there is no ancestor component or the ancestor component
|
1341 |
// has already fired off its lifecycle update then
|
@@ -1547,10 +1549,10 @@ var postUpdateComponent = function postUpdateComponent(hostRef) {
|
|
1547 |
if (hostRef.$flags$ & 512
|
1548 |
/* needsRerender */
|
1549 |
) {
|
1550 |
-
|
1551 |
-
|
1552 |
-
|
1553 |
-
|
1554 |
|
1555 |
hostRef.$flags$ &= ~(4
|
1556 |
/* isWaitingForChildren */
|
@@ -1605,25 +1607,25 @@ var parsePropertyValue = function parsePropertyValue(propValue, propType) {
|
|
1605 |
if (propType & 4
|
1606 |
/* Boolean */
|
1607 |
) {
|
1608 |
-
|
1609 |
-
|
1610 |
-
|
1611 |
-
|
1612 |
|
1613 |
if (propType & 2
|
1614 |
/* Number */
|
1615 |
) {
|
1616 |
-
|
1617 |
-
|
1618 |
-
|
1619 |
|
1620 |
if (propType & 1
|
1621 |
/* String */
|
1622 |
) {
|
1623 |
-
|
1624 |
-
|
1625 |
-
|
1626 |
-
|
1627 |
|
1628 |
|
1629 |
return propValue;
|
@@ -1659,20 +1661,20 @@ var setValue = function setValue(ref, propName, newVal, cmpMeta) {
|
|
1659 |
if (cmpMeta.$watchers$ && flags & 128
|
1660 |
/* isWatchReady */
|
1661 |
) {
|
1662 |
-
|
1663 |
-
|
1664 |
-
|
1665 |
-
|
1666 |
-
|
1667 |
-
|
1668 |
-
|
1669 |
-
|
1670 |
-
|
1671 |
-
|
1672 |
-
|
1673 |
-
|
1674 |
-
}
|
1675 |
}
|
|
|
1676 |
|
1677 |
if ((flags & (2
|
1678 |
/* hasRendered */
|
@@ -1681,13 +1683,13 @@ var setValue = function setValue(ref, propName, newVal, cmpMeta) {
|
|
1681 |
)) === 2
|
1682 |
/* hasRendered */
|
1683 |
) {
|
1684 |
-
|
1685 |
-
|
1686 |
-
|
1687 |
|
1688 |
|
1689 |
-
|
1690 |
-
|
1691 |
}
|
1692 |
}
|
1693 |
};
|
@@ -1733,22 +1735,22 @@ var proxyComponent = function proxyComponent(Cstr, cmpMeta, flags) {
|
|
1733 |
&& memberFlags & 64
|
1734 |
/* Method */
|
1735 |
) {
|
1736 |
-
|
1737 |
-
|
1738 |
-
|
1739 |
-
|
1740 |
-
|
1741 |
-
|
1742 |
|
1743 |
-
|
1744 |
-
|
1745 |
-
|
1746 |
|
1747 |
-
|
1748 |
-
|
1749 |
-
|
1750 |
-
|
1751 |
-
|
1752 |
});
|
1753 |
|
1754 |
if ((flags & 1
|
@@ -1824,8 +1826,8 @@ var proxyComponent = function proxyComponent(Cstr, cmpMeta, flags) {
|
|
1824 |
if (m[0] & 512
|
1825 |
/* ReflectAttr */
|
1826 |
) {
|
1827 |
-
|
1828 |
-
|
1829 |
|
1830 |
return attrName;
|
1831 |
});
|
@@ -2159,18 +2161,18 @@ var bootstrapLazy = function bootstrapLazy(lazyBundles) {
|
|
2159 |
if (cmpMeta.$flags$ & 1
|
2160 |
/* shadowDomEncapsulation */
|
2161 |
) {
|
2162 |
-
|
2163 |
-
|
2164 |
-
|
2165 |
-
|
|
|
2166 |
{
|
2167 |
-
{
|
2168 |
-
|
2169 |
-
|
2170 |
-
});
|
2171 |
-
}
|
2172 |
}
|
2173 |
}
|
|
|
2174 |
|
2175 |
return _this2;
|
2176 |
}
|
@@ -2335,8 +2337,8 @@ var queueTask = function queueTask(queue, write) {
|
|
2335 |
if (write && plt.$flags$ & 4
|
2336 |
/* queueSync */
|
2337 |
) {
|
2338 |
-
|
2339 |
-
|
2340 |
plt.raf(flush);
|
2341 |
}
|
2342 |
}
|
293 |
function _possibleConstructorReturn(self, call) {
|
294 |
if (call && (typeof call === "object" || typeof call === "function")) {
|
295 |
return call;
|
296 |
+
} else if (call !== void 0) {
|
297 |
+
throw new TypeError("Derived constructors may only return object or undefined");
|
298 |
}
|
299 |
|
300 |
return _assertThisInitialized(self);
|
522 |
if (hostRef.$flags$ & 256
|
523 |
/* isListenReady */
|
524 |
) {
|
525 |
+
// instance is ready, let's call it's member method for this event
|
526 |
+
hostRef.$lazyInstance$[methodName](ev);
|
527 |
+
} else {
|
528 |
(hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
|
529 |
}
|
530 |
}
|
633 |
if (flags & 10
|
634 |
/* needsScopedEncapsulation */
|
635 |
) {
|
636 |
+
// only required when we're NOT using native shadow dom (slot)
|
637 |
+
// or this browser doesn't support native shadow dom
|
638 |
+
// and this host element was NOT created with SSR
|
639 |
+
// let's pick out the inner content for slot projection
|
640 |
+
// create a node to represent where the original
|
641 |
+
// content was first placed, which is useful later on
|
642 |
+
// DOM WRITE!!
|
643 |
+
elm['s-sc'] = scopeId;
|
644 |
+
elm.classList.add(scopeId + '-h');
|
645 |
+
}
|
646 |
|
647 |
endAttachStyles();
|
648 |
};
|
1333 |
if (hostRef.$flags$ & 4
|
1334 |
/* isWaitingForChildren */
|
1335 |
) {
|
1336 |
+
hostRef.$flags$ |= 512
|
1337 |
+
/* needsRerender */
|
1338 |
+
;
|
1339 |
+
return;
|
1340 |
+
}
|
1341 |
|
1342 |
attachToAncestor(hostRef, hostRef.$ancestorComponent$); // there is no ancestor component or the ancestor component
|
1343 |
// has already fired off its lifecycle update then
|
1549 |
if (hostRef.$flags$ & 512
|
1550 |
/* needsRerender */
|
1551 |
) {
|
1552 |
+
nextTick(function () {
|
1553 |
+
return scheduleUpdate(hostRef, false);
|
1554 |
+
});
|
1555 |
+
}
|
1556 |
|
1557 |
hostRef.$flags$ &= ~(4
|
1558 |
/* isWaitingForChildren */
|
1607 |
if (propType & 4
|
1608 |
/* Boolean */
|
1609 |
) {
|
1610 |
+
// per the HTML spec, any string value means it is a boolean true value
|
1611 |
+
// but we'll cheat here and say that the string "false" is the boolean false
|
1612 |
+
return propValue === 'false' ? false : propValue === '' || !!propValue;
|
1613 |
+
}
|
1614 |
|
1615 |
if (propType & 2
|
1616 |
/* Number */
|
1617 |
) {
|
1618 |
+
// force it to be a number
|
1619 |
+
return parseFloat(propValue);
|
1620 |
+
}
|
1621 |
|
1622 |
if (propType & 1
|
1623 |
/* String */
|
1624 |
) {
|
1625 |
+
// could have been passed as a number or boolean
|
1626 |
+
// but we still want it as a string
|
1627 |
+
return String(propValue);
|
1628 |
+
} // redundant return here for better minification
|
1629 |
|
1630 |
|
1631 |
return propValue;
|
1661 |
if (cmpMeta.$watchers$ && flags & 128
|
1662 |
/* isWatchReady */
|
1663 |
) {
|
1664 |
+
var watchMethods = cmpMeta.$watchers$[propName];
|
1665 |
+
|
1666 |
+
if (watchMethods) {
|
1667 |
+
// this instance is watching for when this property changed
|
1668 |
+
watchMethods.map(function (watchMethodName) {
|
1669 |
+
try {
|
1670 |
+
// fire off each of the watch methods that are watching this property
|
1671 |
+
instance[watchMethodName](newVal, oldVal, propName);
|
1672 |
+
} catch (e) {
|
1673 |
+
consoleError(e, elm);
|
1674 |
+
}
|
1675 |
+
});
|
|
|
1676 |
}
|
1677 |
+
}
|
1678 |
|
1679 |
if ((flags & (2
|
1680 |
/* hasRendered */
|
1683 |
)) === 2
|
1684 |
/* hasRendered */
|
1685 |
) {
|
1686 |
+
// but only if we've already rendered, otherwise just chill out
|
1687 |
+
// queue that we need to do an update, but don't worry about queuing
|
1688 |
+
// up millions cuz this function ensures it only runs once
|
1689 |
|
1690 |
|
1691 |
+
scheduleUpdate(hostRef, false);
|
1692 |
+
}
|
1693 |
}
|
1694 |
}
|
1695 |
};
|
1735 |
&& memberFlags & 64
|
1736 |
/* Method */
|
1737 |
) {
|
1738 |
+
// proxyComponent - method
|
1739 |
+
Object.defineProperty(prototype, memberName, {
|
1740 |
+
value: function value() {
|
1741 |
+
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
1742 |
+
args[_key2] = arguments[_key2];
|
1743 |
+
}
|
1744 |
|
1745 |
+
var ref = getHostRef(this);
|
1746 |
+
return ref.$onInstancePromise$.then(function () {
|
1747 |
+
var _ref$$lazyInstance$;
|
1748 |
|
1749 |
+
return (_ref$$lazyInstance$ = ref.$lazyInstance$)[memberName].apply(_ref$$lazyInstance$, args);
|
1750 |
+
});
|
1751 |
+
}
|
1752 |
+
});
|
1753 |
+
}
|
1754 |
});
|
1755 |
|
1756 |
if ((flags & 1
|
1826 |
if (m[0] & 512
|
1827 |
/* ReflectAttr */
|
1828 |
) {
|
1829 |
+
cmpMeta.$attrsToReflect$.push([propName, attrName]);
|
1830 |
+
}
|
1831 |
|
1832 |
return attrName;
|
1833 |
});
|
2161 |
if (cmpMeta.$flags$ & 1
|
2162 |
/* shadowDomEncapsulation */
|
2163 |
) {
|
2164 |
+
// this component is using shadow dom
|
2165 |
+
// and this browser supports shadow dom
|
2166 |
+
// add the read-only property "shadowRoot" to the host element
|
2167 |
+
// adding the shadow root build conditionals to minimize runtime
|
2168 |
+
{
|
2169 |
{
|
2170 |
+
self.attachShadow({
|
2171 |
+
mode: 'open'
|
2172 |
+
});
|
|
|
|
|
2173 |
}
|
2174 |
}
|
2175 |
+
}
|
2176 |
|
2177 |
return _this2;
|
2178 |
}
|
2337 |
if (write && plt.$flags$ & 4
|
2338 |
/* queueSync */
|
2339 |
) {
|
2340 |
+
nextTick(flush);
|
2341 |
+
} else {
|
2342 |
plt.raf(flush);
|
2343 |
}
|
2344 |
}
|
dist/components/cjs/{learndash-6fd50144.js → learndash-cba8cffd.js}
RENAMED
@@ -1,7 +1,7 @@
|
|
1 |
'use strict';
|
2 |
|
3 |
-
const prestoActionBar_prestoActionBarController_prestoActionBarUi_prestoBunny_prestoCtaOverlay_prestoCtaOverlayController_prestoCtaOverlayUi_prestoDynamicOverlayUi_prestoDynamicOverlays_prestoEmailOverlay_prestoEmailOverlayController_prestoEmailOverlayUi_prestoMutedOverlay_prestoPlayer_prestoPlayerButton_prestoPlayerSpinner_prestoVideo_prestoVimeo_prestoYoutube_prestoYoutubeSubscribeButton_entry = require('./presto-action-bar.presto-action-bar-controller.presto-action-bar-ui.presto-bunny.presto-cta-overlay.presto-cta-overlay-controller.presto-cta-overlay-ui.presto-dynamic-overlay-ui.presto-dynamic-overlays.presto-email-overlay.presto-email-overlay-controller.presto-email-overlay-ui.presto-muted-overlay.presto-player.presto-player-button.presto-player-spinner.presto-video.presto-vimeo.presto-youtube.presto-youtube-subscribe-button-
|
4 |
-
require('./index-
|
5 |
|
6 |
const learndash = (function (player) {
|
7 |
var _learndash_video_data, _prestoPlayer, _prestoPlayer$learnda, _learndash_video_data2, _prestoPlayer2, _prestoPlayer2$learnd, _prestoPlayer3, _prestoPlayer3$learnd, _prestoPlayer4, _prestoPlayer4$learnd, _learndash_video_data3;
|
1 |
'use strict';
|
2 |
|
3 |
+
const prestoActionBar_prestoActionBarController_prestoActionBarUi_prestoBunny_prestoCtaOverlay_prestoCtaOverlayController_prestoCtaOverlayUi_prestoDynamicOverlayUi_prestoDynamicOverlays_prestoEmailOverlay_prestoEmailOverlayController_prestoEmailOverlayUi_prestoMutedOverlay_prestoPlayer_prestoPlayerButton_prestoPlayerSpinner_prestoVideo_prestoVimeo_prestoYoutube_prestoYoutubeSubscribeButton_entry = require('./presto-action-bar.presto-action-bar-controller.presto-action-bar-ui.presto-bunny.presto-cta-overlay.presto-cta-overlay-controller.presto-cta-overlay-ui.presto-dynamic-overlay-ui.presto-dynamic-overlays.presto-email-overlay.presto-email-overlay-controller.presto-email-overlay-ui.presto-muted-overlay.presto-player.presto-player-button.presto-player-spinner.presto-video.presto-vimeo.presto-youtube.presto-youtube-subscribe-button-4ce918d5.js');
|
4 |
+
require('./index-2f1250e6.js');
|
5 |
|
6 |
const learndash = (function (player) {
|
7 |
var _learndash_video_data, _prestoPlayer, _prestoPlayer$learnda, _learndash_video_data2, _prestoPlayer2, _prestoPlayer2$learnd, _prestoPlayer3, _prestoPlayer3$learnd, _prestoPlayer4, _prestoPlayer4$learnd, _learndash_video_data3;
|
dist/components/cjs/loader.cjs.js
CHANGED
@@ -2,10 +2,10 @@
|
|
2 |
|
3 |
Object.defineProperty(exports, '__esModule', { value: true });
|
4 |
|
5 |
-
const index = require('./index-
|
6 |
|
7 |
/*
|
8 |
-
Stencil Client Patch Esm v2.
|
9 |
*/
|
10 |
|
11 |
var patchEsm = function patchEsm() {
|
2 |
|
3 |
Object.defineProperty(exports, '__esModule', { value: true });
|
4 |
|
5 |
+
const index = require('./index-2f1250e6.js');
|
6 |
|
7 |
/*
|
8 |
+
Stencil Client Patch Esm v2.9.0 | MIT Licensed | https://stenciljs.com
|
9 |
*/
|
10 |
|
11 |
var patchEsm = function patchEsm() {
|
dist/components/cjs/presto-action-bar_20.cjs.entry.js
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
|
3 |
Object.defineProperty(exports, '__esModule', { value: true });
|
4 |
|
5 |
-
const prestoActionBar_prestoActionBarController_prestoActionBarUi_prestoBunny_prestoCtaOverlay_prestoCtaOverlayController_prestoCtaOverlayUi_prestoDynamicOverlayUi_prestoDynamicOverlays_prestoEmailOverlay_prestoEmailOverlayController_prestoEmailOverlayUi_prestoMutedOverlay_prestoPlayer_prestoPlayerButton_prestoPlayerSpinner_prestoVideo_prestoVimeo_prestoYoutube_prestoYoutubeSubscribeButton_entry = require('./presto-action-bar.presto-action-bar-controller.presto-action-bar-ui.presto-bunny.presto-cta-overlay.presto-cta-overlay-controller.presto-cta-overlay-ui.presto-dynamic-overlay-ui.presto-dynamic-overlays.presto-email-overlay.presto-email-overlay-controller.presto-email-overlay-ui.presto-muted-overlay.presto-player.presto-player-button.presto-player-spinner.presto-video.presto-vimeo.presto-youtube.presto-youtube-subscribe-button-
|
6 |
-
require('./index-
|
7 |
|
8 |
|
9 |
|
2 |
|
3 |
Object.defineProperty(exports, '__esModule', { value: true });
|
4 |
|
5 |
+
const prestoActionBar_prestoActionBarController_prestoActionBarUi_prestoBunny_prestoCtaOverlay_prestoCtaOverlayController_prestoCtaOverlayUi_prestoDynamicOverlayUi_prestoDynamicOverlays_prestoEmailOverlay_prestoEmailOverlayController_prestoEmailOverlayUi_prestoMutedOverlay_prestoPlayer_prestoPlayerButton_prestoPlayerSpinner_prestoVideo_prestoVimeo_prestoYoutube_prestoYoutubeSubscribeButton_entry = require('./presto-action-bar.presto-action-bar-controller.presto-action-bar-ui.presto-bunny.presto-cta-overlay.presto-cta-overlay-controller.presto-cta-overlay-ui.presto-dynamic-overlay-ui.presto-dynamic-overlays.presto-email-overlay.presto-email-overlay-controller.presto-email-overlay-ui.presto-muted-overlay.presto-player.presto-player-button.presto-player-spinner.presto-video.presto-vimeo.presto-youtube.presto-youtube-subscribe-button-4ce918d5.js');
|
6 |
+
require('./index-2f1250e6.js');
|
7 |
|
8 |
|
9 |
|
dist/components/cjs/presto-player-skeleton.cjs.entry.js
CHANGED
@@ -2,11 +2,11 @@
|
|
2 |
|
3 |
Object.defineProperty(exports, '__esModule', { value: true });
|
4 |
|
5 |
-
const index = require('./index-
|
6 |
|
7 |
const prestoSkeletonCss = ":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:inherit}:host{--border-radius:var(--presto-player-border-radius-pill);--color:#e5e7eb;--sheen-color:#f3f4f6;display:block;position:relative}.skeleton{display:flex;width:100%;height:100%;min-height:1rem}.skeleton__indicator{flex:1 1 auto;background:var(--color);border-radius:var(--border-radius)}.skeleton--sheen .skeleton__indicator{background:linear-gradient(270deg, var(--sheen-color), var(--color), var(--color), var(--sheen-color));background-size:400% 100%;background-size:400% 100%;animation:sheen 8s ease-in-out infinite}.skeleton--pulse .skeleton__indicator{animation:pulse 2s ease-in-out 0.5s infinite}@keyframes sheen{0%{background-position:200% 0}to{background-position:-200% 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}";
|
8 |
|
9 |
-
|
10 |
constructor(hostRef) {
|
11 |
index.registerInstance(this, hostRef);
|
12 |
this.effect = 'sheen';
|
2 |
|
3 |
Object.defineProperty(exports, '__esModule', { value: true });
|
4 |
|
5 |
+
const index = require('./index-2f1250e6.js');
|
6 |
|
7 |
const prestoSkeletonCss = ":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:inherit}:host{--border-radius:var(--presto-player-border-radius-pill);--color:#e5e7eb;--sheen-color:#f3f4f6;display:block;position:relative}.skeleton{display:flex;width:100%;height:100%;min-height:1rem}.skeleton__indicator{flex:1 1 auto;background:var(--color);border-radius:var(--border-radius)}.skeleton--sheen .skeleton__indicator{background:linear-gradient(270deg, var(--sheen-color), var(--color), var(--color), var(--sheen-color));background-size:400% 100%;background-size:400% 100%;animation:sheen 8s ease-in-out infinite}.skeleton--pulse .skeleton__indicator{animation:pulse 2s ease-in-out 0.5s infinite}@keyframes sheen{0%{background-position:200% 0}to{background-position:-200% 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}";
|
8 |
|
9 |
+
let PrestoSkeleton = class {
|
10 |
constructor(hostRef) {
|
11 |
index.registerInstance(this, hostRef);
|
12 |
this.effect = 'sheen';
|
dist/components/cjs/presto-video-curtain-ui.cjs.entry.js
CHANGED
@@ -2,11 +2,11 @@
|
|
2 |
|
3 |
Object.defineProperty(exports, '__esModule', { value: true });
|
4 |
|
5 |
-
const index = require('./index-
|
6 |
|
7 |
const prestoVideoCurtainUiCss = ":host{font-size:16px}.curtain{font-family:-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";background-color:#000;text-align:center;color:#fff;padding-bottom:56.25%;position:relative;font-size:1.5em}::slotted(:not(:first-child)){margin-top:14px}.content{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;flex-direction:column;padding:48px}";
|
8 |
|
9 |
-
|
10 |
constructor(hostRef) {
|
11 |
index.registerInstance(this, hostRef);
|
12 |
}
|
2 |
|
3 |
Object.defineProperty(exports, '__esModule', { value: true });
|
4 |
|
5 |
+
const index = require('./index-2f1250e6.js');
|
6 |
|
7 |
const prestoVideoCurtainUiCss = ":host{font-size:16px}.curtain{font-family:-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";background-color:#000;text-align:center;color:#fff;padding-bottom:56.25%;position:relative;font-size:1.5em}::slotted(:not(:first-child)){margin-top:14px}.content{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;flex-direction:column;padding:48px}";
|
8 |
|
9 |
+
let CurtainUI = class {
|
10 |
constructor(hostRef) {
|
11 |
index.registerInstance(this, hostRef);
|
12 |
}
|
dist/components/cjs/web-components.cjs.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
'use strict';
|
2 |
|
3 |
-
const index = require('./index-
|
4 |
|
5 |
/*
|
6 |
-
Stencil Client Patch Browser v2.
|
7 |
*/
|
8 |
|
9 |
var patchBrowser = function patchBrowser() {
|
1 |
'use strict';
|
2 |
|
3 |
+
const index = require('./index-2f1250e6.js');
|
4 |
|
5 |
/*
|
6 |
+
Stencil Client Patch Browser v2.9.0 | MIT Licensed | https://stenciljs.com
|
7 |
*/
|
8 |
|
9 |
var patchBrowser = function patchBrowser() {
|
dist/components/collection/collection-manifest.json
CHANGED
@@ -25,7 +25,7 @@
|
|
25 |
],
|
26 |
"compiler": {
|
27 |
"name": "@stencil/core",
|
28 |
-
"version": "2.
|
29 |
"typescriptVersion": "4.2.3"
|
30 |
},
|
31 |
"collections": [],
|
25 |
],
|
26 |
"compiler": {
|
27 |
"name": "@stencil/core",
|
28 |
+
"version": "2.9.0",
|
29 |
"typescriptVersion": "4.2.3"
|
30 |
},
|
31 |
"collections": [],
|
dist/components/collection/components/core/player/functions/analytics/wp.js
CHANGED
@@ -37,7 +37,7 @@ export default function (pl) {
|
|
37 |
|
38 |
export function videoData(player) {
|
39 |
const data = {
|
40 |
-
video_current_time: parseInt(player?.currentTime
|
41 |
video_provider: player?.provider || 'html5',
|
42 |
...(player?.duration ? { video_duration: parseInt(player?.duration) } : {}),
|
43 |
...(player?.source ? { video_url: player?.source } : {}),
|
@@ -48,6 +48,7 @@ export function videoData(player) {
|
|
48 |
|
49 |
// send video data
|
50 |
export function sendVideoData(player) {
|
|
|
51 |
sendData(videoData(player));
|
52 |
}
|
53 |
|
37 |
|
38 |
export function videoData(player) {
|
39 |
const data = {
|
40 |
+
video_current_time: parseInt(player?.currentTime),
|
41 |
video_provider: player?.provider || 'html5',
|
42 |
...(player?.duration ? { video_duration: parseInt(player?.duration) } : {}),
|
43 |
...(player?.source ? { video_url: player?.source } : {}),
|
48 |
|
49 |
// send video data
|
50 |
export function sendVideoData(player) {
|
51 |
+
if (isNaN(player?.currentTime)) return; // bail if invalid data.
|
52 |
sendData(videoData(player));
|
53 |
}
|
54 |
|
dist/components/collection/testing/index.js
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
export function setResponses(args, page) {
|
2 |
+
page.on('response', response => {
|
3 |
+
if (response.url().includes('localhost')) {
|
4 |
+
page.removeAllListeners('request');
|
5 |
+
page.on('request', request => {
|
6 |
+
let data;
|
7 |
+
args.forEach(arg => {
|
8 |
+
if (request.url().includes(arg.path)) {
|
9 |
+
data = arg.data;
|
10 |
+
}
|
11 |
+
});
|
12 |
+
if (data) {
|
13 |
+
return request.respond(data);
|
14 |
+
}
|
15 |
+
else {
|
16 |
+
request.continue();
|
17 |
+
}
|
18 |
+
});
|
19 |
+
}
|
20 |
+
});
|
21 |
+
}
|
dist/components/esm/{hls-3461f093.js → hls-69c8427a.js}
RENAMED
@@ -1,5 +1,5 @@
|
|
1 |
-
import { l as _asyncToGenerator, a as _objectSpread2 } from './index-
|
2 |
-
import { P as PrestoPlayer } from './presto-action-bar.presto-action-bar-controller.presto-action-bar-ui.presto-bunny.presto-cta-overlay.presto-cta-overlay-controller.presto-cta-overlay-ui.presto-dynamic-overlay-ui.presto-dynamic-overlays.presto-email-overlay.presto-email-overlay-controller.presto-email-overlay-ui.presto-muted-overlay.presto-player.presto-player-button.presto-player-spinner.presto-video.presto-vimeo.presto-youtube.presto-youtube-subscribe-button-
|
3 |
|
4 |
var loadHLS = function loadHLS(_ref) {
|
5 |
var config = _ref.config,
|
1 |
+
import { l as _asyncToGenerator, a as _objectSpread2 } from './index-7c33214e.js';
|
2 |
+
import { P as PrestoPlayer } from './presto-action-bar.presto-action-bar-controller.presto-action-bar-ui.presto-bunny.presto-cta-overlay.presto-cta-overlay-controller.presto-cta-overlay-ui.presto-dynamic-overlay-ui.presto-dynamic-overlays.presto-email-overlay.presto-email-overlay-controller.presto-email-overlay-ui.presto-muted-overlay.presto-player.presto-player-button.presto-player-spinner.presto-video.presto-vimeo.presto-youtube.presto-youtube-subscribe-button-b8498ace.js';
|
3 |
|
4 |
var loadHLS = function loadHLS(_ref) {
|
5 |
var config = _ref.config,
|
dist/components/esm/{index-a4d27653.js → index-7c33214e.js}
RENAMED
@@ -271,6 +271,8 @@ function _assertThisInitialized(self) {
|
|
271 |
function _possibleConstructorReturn(self, call) {
|
272 |
if (call && (typeof call === "object" || typeof call === "function")) {
|
273 |
return call;
|
|
|
|
|
274 |
}
|
275 |
|
276 |
return _assertThisInitialized(self);
|
@@ -498,9 +500,9 @@ var hostListenerProxy = function hostListenerProxy(hostRef, methodName) {
|
|
498 |
if (hostRef.$flags$ & 256
|
499 |
/* isListenReady */
|
500 |
) {
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
(hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
|
505 |
}
|
506 |
}
|
@@ -609,16 +611,16 @@ var attachStyles = function attachStyles(hostRef) {
|
|
609 |
if (flags & 10
|
610 |
/* needsScopedEncapsulation */
|
611 |
) {
|
612 |
-
|
613 |
-
|
614 |
-
|
615 |
-
|
616 |
-
|
617 |
-
|
618 |
-
|
619 |
-
|
620 |
-
|
621 |
-
|
622 |
|
623 |
endAttachStyles();
|
624 |
};
|
@@ -1309,11 +1311,11 @@ var scheduleUpdate = function scheduleUpdate(hostRef, isInitialLoad) {
|
|
1309 |
if (hostRef.$flags$ & 4
|
1310 |
/* isWaitingForChildren */
|
1311 |
) {
|
1312 |
-
|
1313 |
-
|
1314 |
-
|
1315 |
-
|
1316 |
-
|
1317 |
|
1318 |
attachToAncestor(hostRef, hostRef.$ancestorComponent$); // there is no ancestor component or the ancestor component
|
1319 |
// has already fired off its lifecycle update then
|
@@ -1525,10 +1527,10 @@ var postUpdateComponent = function postUpdateComponent(hostRef) {
|
|
1525 |
if (hostRef.$flags$ & 512
|
1526 |
/* needsRerender */
|
1527 |
) {
|
1528 |
-
|
1529 |
-
|
1530 |
-
|
1531 |
-
|
1532 |
|
1533 |
hostRef.$flags$ &= ~(4
|
1534 |
/* isWaitingForChildren */
|
@@ -1583,25 +1585,25 @@ var parsePropertyValue = function parsePropertyValue(propValue, propType) {
|
|
1583 |
if (propType & 4
|
1584 |
/* Boolean */
|
1585 |
) {
|
1586 |
-
|
1587 |
-
|
1588 |
-
|
1589 |
-
|
1590 |
|
1591 |
if (propType & 2
|
1592 |
/* Number */
|
1593 |
) {
|
1594 |
-
|
1595 |
-
|
1596 |
-
|
1597 |
|
1598 |
if (propType & 1
|
1599 |
/* String */
|
1600 |
) {
|
1601 |
-
|
1602 |
-
|
1603 |
-
|
1604 |
-
|
1605 |
|
1606 |
|
1607 |
return propValue;
|
@@ -1637,20 +1639,20 @@ var setValue = function setValue(ref, propName, newVal, cmpMeta) {
|
|
1637 |
if (cmpMeta.$watchers$ && flags & 128
|
1638 |
/* isWatchReady */
|
1639 |
) {
|
1640 |
-
|
1641 |
-
|
1642 |
-
|
1643 |
-
|
1644 |
-
|
1645 |
-
|
1646 |
-
|
1647 |
-
|
1648 |
-
|
1649 |
-
|
1650 |
-
|
1651 |
-
|
1652 |
-
}
|
1653 |
}
|
|
|
1654 |
|
1655 |
if ((flags & (2
|
1656 |
/* hasRendered */
|
@@ -1659,13 +1661,13 @@ var setValue = function setValue(ref, propName, newVal, cmpMeta) {
|
|
1659 |
)) === 2
|
1660 |
/* hasRendered */
|
1661 |
) {
|
1662 |
-
|
1663 |
-
|
1664 |
-
|
1665 |
|
1666 |
|
1667 |
-
|
1668 |
-
|
1669 |
}
|
1670 |
}
|
1671 |
};
|
@@ -1711,22 +1713,22 @@ var proxyComponent = function proxyComponent(Cstr, cmpMeta, flags) {
|
|
1711 |
&& memberFlags & 64
|
1712 |
/* Method */
|
1713 |
) {
|
1714 |
-
|
1715 |
-
|
1716 |
-
|
1717 |
-
|
1718 |
-
|
1719 |
-
|
1720 |
|
1721 |
-
|
1722 |
-
|
1723 |
-
|
1724 |
|
1725 |
-
|
1726 |
-
|
1727 |
-
|
1728 |
-
|
1729 |
-
|
1730 |
});
|
1731 |
|
1732 |
if ((flags & 1
|
@@ -1802,8 +1804,8 @@ var proxyComponent = function proxyComponent(Cstr, cmpMeta, flags) {
|
|
1802 |
if (m[0] & 512
|
1803 |
/* ReflectAttr */
|
1804 |
) {
|
1805 |
-
|
1806 |
-
|
1807 |
|
1808 |
return attrName;
|
1809 |
});
|
@@ -2137,18 +2139,18 @@ var bootstrapLazy = function bootstrapLazy(lazyBundles) {
|
|
2137 |
if (cmpMeta.$flags$ & 1
|
2138 |
/* shadowDomEncapsulation */
|
2139 |
) {
|
2140 |
-
|
2141 |
-
|
2142 |
-
|
2143 |
-
|
|
|
2144 |
{
|
2145 |
-
{
|
2146 |
-
|
2147 |
-
|
2148 |
-
});
|
2149 |
-
}
|
2150 |
}
|
2151 |
}
|
|
|
2152 |
|
2153 |
return _this2;
|
2154 |
}
|
@@ -2313,8 +2315,8 @@ var queueTask = function queueTask(queue, write) {
|
|
2313 |
if (write && plt.$flags$ & 4
|
2314 |
/* queueSync */
|
2315 |
) {
|
2316 |
-
|
2317 |
-
|
2318 |
plt.raf(flush);
|
2319 |
}
|
2320 |
}
|
271 |
function _possibleConstructorReturn(self, call) {
|
272 |
if (call && (typeof call === "object" || typeof call === "function")) {
|
273 |
return call;
|
274 |
+
} else if (call !== void 0) {
|
275 |
+
throw new TypeError("Derived constructors may only return object or undefined");
|
276 |
}
|
277 |
|
278 |
return _assertThisInitialized(self);
|
500 |
if (hostRef.$flags$ & 256
|
501 |
/* isListenReady */
|
502 |
) {
|
503 |
+
// instance is ready, let's call it's member method for this event
|
504 |
+
hostRef.$lazyInstance$[methodName](ev);
|
505 |
+
} else {
|
506 |
(hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
|
507 |
}
|
508 |
}
|
611 |
if (flags & 10
|
612 |
/* needsScopedEncapsulation */
|
613 |
) {
|
614 |
+
// only required when we're NOT using native shadow dom (slot)
|
615 |
+
// or this browser doesn't support native shadow dom
|
616 |
+
// and this host element was NOT created with SSR
|
617 |
+
// let's pick out the inner content for slot projection
|
618 |
+
// create a node to represent where the original
|
619 |
+
// content was first placed, which is useful later on
|
620 |
+
// DOM WRITE!!
|
621 |
+
elm['s-sc'] = scopeId;
|
622 |
+
elm.classList.add(scopeId + '-h');
|
623 |
+
}
|
624 |
|
625 |
endAttachStyles();
|
626 |
};
|
1311 |
if (hostRef.$flags$ & 4
|
1312 |
/* isWaitingForChildren */
|
1313 |
) {
|
1314 |
+
hostRef.$flags$ |= 512
|
1315 |
+
/* needsRerender */
|
1316 |
+
;
|
1317 |
+
return;
|
1318 |
+
}
|
1319 |
|
1320 |
attachToAncestor(hostRef, hostRef.$ancestorComponent$); // there is no ancestor component or the ancestor component
|
1321 |
// has already fired off its lifecycle update then
|
1527 |
if (hostRef.$flags$ & 512
|
1528 |
/* needsRerender */
|
1529 |
) {
|
1530 |
+
nextTick(function () {
|
1531 |
+
return scheduleUpdate(hostRef, false);
|
1532 |
+
});
|
1533 |
+
}
|
1534 |
|
1535 |
hostRef.$flags$ &= ~(4
|
1536 |
/* isWaitingForChildren */
|
1585 |
if (propType & 4
|
1586 |
/* Boolean */
|
1587 |
) {
|
1588 |
+
// per the HTML spec, any string value means it is a boolean true value
|
1589 |
+
// but we'll cheat here and say that the string "false" is the boolean false
|
1590 |
+
return propValue === 'false' ? false : propValue === '' || !!propValue;
|
1591 |
+
}
|
1592 |
|
1593 |
if (propType & 2
|
1594 |
/* Number */
|
1595 |
) {
|
1596 |
+
// force it to be a number
|
1597 |
+
return parseFloat(propValue);
|
1598 |
+
}
|
1599 |
|
1600 |
if (propType & 1
|
1601 |
/* String */
|
1602 |
) {
|
1603 |
+
// could have been passed as a number or boolean
|
1604 |
+
// but we still want it as a string
|
1605 |
+
return String(propValue);
|
1606 |
+
} // redundant return here for better minification
|
1607 |
|
1608 |
|
1609 |
return propValue;
|
1639 |
if (cmpMeta.$watchers$ && flags & 128
|
1640 |
/* isWatchReady */
|
1641 |
) {
|
1642 |
+
var watchMethods = cmpMeta.$watchers$[propName];
|
1643 |
+
|
1644 |
+
if (watchMethods) {
|
1645 |
+
// this instance is watching for when this property changed
|
1646 |
+
watchMethods.map(function (watchMethodName) {
|
1647 |
+
try {
|
1648 |
+
// fire off each of the watch methods that are watching this property
|
1649 |
+
instance[watchMethodName](newVal, oldVal, propName);
|
1650 |
+
} catch (e) {
|
1651 |
+
consoleError(e, elm);
|
1652 |
+
}
|
1653 |
+
});
|
|
|
1654 |
}
|
1655 |
+
}
|
1656 |
|
1657 |
if ((flags & (2
|
1658 |
/* hasRendered */
|
1661 |
)) === 2
|
1662 |
/* hasRendered */
|
1663 |
) {
|
1664 |
+
// but only if we've already rendered, otherwise just chill out
|
1665 |
+
// queue that we need to do an update, but don't worry about queuing
|
1666 |
+
// up millions cuz this function ensures it only runs once
|
1667 |
|
1668 |
|
1669 |
+
scheduleUpdate(hostRef, false);
|
1670 |
+
}
|
1671 |
}
|
1672 |
}
|
1673 |
};
|
1713 |
&& memberFlags & 64
|
1714 |
/* Method */
|
1715 |
) {
|
1716 |
+
// proxyComponent - method
|
1717 |
+
Object.defineProperty(prototype, memberName, {
|
1718 |
+
value: function value() {
|
1719 |
+
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
1720 |
+
args[_key2] = arguments[_key2];
|
1721 |
+
}
|
1722 |
|
1723 |
+
var ref = getHostRef(this);
|
1724 |
+
return ref.$onInstancePromise$.then(function () {
|
1725 |
+
var _ref$$lazyInstance$;
|
1726 |
|
1727 |
+
return (_ref$$lazyInstance$ = ref.$lazyInstance$)[memberName].apply(_ref$$lazyInstance$, args);
|
1728 |
+
});
|
1729 |
+
}
|
1730 |
+
});
|
1731 |
+
}
|
1732 |
});
|
1733 |
|
1734 |
if ((flags & 1
|
1804 |
if (m[0] & 512
|
1805 |
/* ReflectAttr */
|
1806 |
) {
|
1807 |
+
cmpMeta.$attrsToReflect$.push([propName, attrName]);
|
1808 |
+
}
|
1809 |
|
1810 |
return attrName;
|
1811 |
});
|
2139 |
if (cmpMeta.$flags$ & 1
|
2140 |
/* shadowDomEncapsulation */
|
2141 |
) {
|
2142 |
+
// this component is using shadow dom
|
2143 |
+
// and this browser supports shadow dom
|
2144 |
+
// add the read-only property "shadowRoot" to the host element
|
2145 |
+
// adding the shadow root build conditionals to minimize runtime
|
2146 |
+
{
|
2147 |
{
|
2148 |
+
self.attachShadow({
|
2149 |
+
mode: 'open'
|
2150 |
+
});
|
|
|
|
|
2151 |
}
|
2152 |
}
|
2153 |
+
}
|
2154 |
|
2155 |
return _this2;
|
2156 |
}
|
2315 |
if (write && plt.$flags$ & 4
|
2316 |
/* queueSync */
|
2317 |
) {
|
2318 |
+
nextTick(flush);
|
2319 |
+
} else {
|
2320 |
plt.raf(flush);
|
2321 |
}
|
2322 |
}
|
dist/components/esm/{learndash-59bda1c1.js → learndash-f015151a.js}
RENAMED
@@ -1,5 +1,5 @@
|
|
1 |
-
import { r as resumeProgress } from './presto-action-bar.presto-action-bar-controller.presto-action-bar-ui.presto-bunny.presto-cta-overlay.presto-cta-overlay-controller.presto-cta-overlay-ui.presto-dynamic-overlay-ui.presto-dynamic-overlays.presto-email-overlay.presto-email-overlay-controller.presto-email-overlay-ui.presto-muted-overlay.presto-player.presto-player-button.presto-player-spinner.presto-video.presto-vimeo.presto-youtube.presto-youtube-subscribe-button-
|
2 |
-
import './index-
|
3 |
|
4 |
const learndash = (function (player) {
|
5 |
var _learndash_video_data, _prestoPlayer, _prestoPlayer$learnda, _learndash_video_data2, _prestoPlayer2, _prestoPlayer2$learnd, _prestoPlayer3, _prestoPlayer3$learnd, _prestoPlayer4, _prestoPlayer4$learnd, _learndash_video_data3;
|
1 |
+
import { r as resumeProgress } from './presto-action-bar.presto-action-bar-controller.presto-action-bar-ui.presto-bunny.presto-cta-overlay.presto-cta-overlay-controller.presto-cta-overlay-ui.presto-dynamic-overlay-ui.presto-dynamic-overlays.presto-email-overlay.presto-email-overlay-controller.presto-email-overlay-ui.presto-muted-overlay.presto-player.presto-player-button.presto-player-spinner.presto-video.presto-vimeo.presto-youtube.presto-youtube-subscribe-button-b8498ace.js';
|
2 |
+
import './index-7c33214e.js';
|
3 |
|
4 |
const learndash = (function (player) {
|
5 |
var _learndash_video_data, _prestoPlayer, _prestoPlayer$learnda, _learndash_video_data2, _prestoPlayer2, _prestoPlayer2$learnd, _prestoPlayer3, _prestoPlayer3$learnd, _prestoPlayer4, _prestoPlayer4$learnd, _learndash_video_data3;
|
dist/components/esm/loader.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
2 |
|
3 |
/*
|
4 |
-
Stencil Client Patch Esm v2.
|
5 |
*/
|
6 |
|
7 |
var patchEsm = function patchEsm() {
|
1 |
+
import { p as promiseResolve, b as bootstrapLazy } from './index-7c33214e.js';
|
2 |
|
3 |
/*
|
4 |
+
Stencil Client Patch Esm v2.9.0 | MIT Licensed | https://stenciljs.com
|
5 |
*/
|
6 |
|
7 |
var patchEsm = function patchEsm() {
|
dist/components/esm/presto-action-bar_20.entry.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
export { a as presto_action_bar, b as presto_action_bar_controller, c as presto_action_bar_ui, d as presto_bunny, e as presto_cta_overlay, f as presto_cta_overlay_controller, C as presto_cta_overlay_ui, g as presto_dynamic_overlay_ui, h as presto_dynamic_overlays, i as presto_email_overlay, j as presto_email_overlay_controller, E as presto_email_overlay_ui, k as presto_muted_overlay, l as presto_player, m as presto_player_button, n as presto_player_spinner, o as presto_video, p as presto_vimeo, q as presto_youtube, s as presto_youtube_subscribe_button } from './presto-action-bar.presto-action-bar-controller.presto-action-bar-ui.presto-bunny.presto-cta-overlay.presto-cta-overlay-controller.presto-cta-overlay-ui.presto-dynamic-overlay-ui.presto-dynamic-overlays.presto-email-overlay.presto-email-overlay-controller.presto-email-overlay-ui.presto-muted-overlay.presto-player.presto-player-button.presto-player-spinner.presto-video.presto-vimeo.presto-youtube.presto-youtube-subscribe-button-
|
2 |
-
import './index-
|
1 |
+
export { a as presto_action_bar, b as presto_action_bar_controller, c as presto_action_bar_ui, d as presto_bunny, e as presto_cta_overlay, f as presto_cta_overlay_controller, C as presto_cta_overlay_ui, g as presto_dynamic_overlay_ui, h as presto_dynamic_overlays, i as presto_email_overlay, j as presto_email_overlay_controller, E as presto_email_overlay_ui, k as presto_muted_overlay, l as presto_player, m as presto_player_button, n as presto_player_spinner, o as presto_video, p as presto_vimeo, q as presto_youtube, s as presto_youtube_subscribe_button } from './presto-action-bar.presto-action-bar-controller.presto-action-bar-ui.presto-bunny.presto-cta-overlay.presto-cta-overlay-controller.presto-cta-overlay-ui.presto-dynamic-overlay-ui.presto-dynamic-overlays.presto-email-overlay.presto-email-overlay-controller.presto-email-overlay-ui.presto-muted-overlay.presto-player.presto-player-button.presto-player-spinner.presto-video.presto-vimeo.presto-youtube.presto-youtube-subscribe-button-b8498ace.js';
|
2 |
+
import './index-7c33214e.js';
|
dist/components/esm/presto-player-skeleton.entry.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
-
import { r as registerInstance, h } from './index-
|
2 |
|
3 |
const prestoSkeletonCss = ":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:inherit}:host{--border-radius:var(--presto-player-border-radius-pill);--color:#e5e7eb;--sheen-color:#f3f4f6;display:block;position:relative}.skeleton{display:flex;width:100%;height:100%;min-height:1rem}.skeleton__indicator{flex:1 1 auto;background:var(--color);border-radius:var(--border-radius)}.skeleton--sheen .skeleton__indicator{background:linear-gradient(270deg, var(--sheen-color), var(--color), var(--color), var(--sheen-color));background-size:400% 100%;background-size:400% 100%;animation:sheen 8s ease-in-out infinite}.skeleton--pulse .skeleton__indicator{animation:pulse 2s ease-in-out 0.5s infinite}@keyframes sheen{0%{background-position:200% 0}to{background-position:-200% 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}";
|
4 |
|
5 |
-
|
6 |
constructor(hostRef) {
|
7 |
registerInstance(this, hostRef);
|
8 |
this.effect = 'sheen';
|
1 |
+
import { r as registerInstance, h } from './index-7c33214e.js';
|
2 |
|
3 |
const prestoSkeletonCss = ":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:inherit}:host{--border-radius:var(--presto-player-border-radius-pill);--color:#e5e7eb;--sheen-color:#f3f4f6;display:block;position:relative}.skeleton{display:flex;width:100%;height:100%;min-height:1rem}.skeleton__indicator{flex:1 1 auto;background:var(--color);border-radius:var(--border-radius)}.skeleton--sheen .skeleton__indicator{background:linear-gradient(270deg, var(--sheen-color), var(--color), var(--color), var(--sheen-color));background-size:400% 100%;background-size:400% 100%;animation:sheen 8s ease-in-out infinite}.skeleton--pulse .skeleton__indicator{animation:pulse 2s ease-in-out 0.5s infinite}@keyframes sheen{0%{background-position:200% 0}to{background-position:-200% 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}";
|
4 |
|
5 |
+
let PrestoSkeleton = class {
|
6 |
constructor(hostRef) {
|
7 |
registerInstance(this, hostRef);
|
8 |
this.effect = 'sheen';
|
dist/components/esm/presto-video-curtain-ui.entry.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
-
import { r as registerInstance, h } from './index-
|
2 |
|
3 |
const prestoVideoCurtainUiCss = ":host{font-size:16px}.curtain{font-family:-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";background-color:#000;text-align:center;color:#fff;padding-bottom:56.25%;position:relative;font-size:1.5em}::slotted(:not(:first-child)){margin-top:14px}.content{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;flex-direction:column;padding:48px}";
|
4 |
|
5 |
-
|
6 |
constructor(hostRef) {
|
7 |
registerInstance(this, hostRef);
|
8 |
}
|
1 |
+
import { r as registerInstance, h } from './index-7c33214e.js';
|
2 |
|
3 |
const prestoVideoCurtainUiCss = ":host{font-size:16px}.curtain{font-family:-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";background-color:#000;text-align:center;color:#fff;padding-bottom:56.25%;position:relative;font-size:1.5em}::slotted(:not(:first-child)){margin-top:14px}.content{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;flex-direction:column;padding:48px}";
|
4 |
|
5 |
+
let CurtainUI = class {
|
6 |
constructor(hostRef) {
|
7 |
registerInstance(this, hostRef);
|
8 |
}
|
dist/components/esm/web-components.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
2 |
|
3 |
/*
|
4 |
-
Stencil Client Patch Browser v2.
|
5 |
*/
|
6 |
|
7 |
var patchBrowser = function patchBrowser() {
|
1 |
+
import { p as promiseResolve, b as bootstrapLazy } from './index-7c33214e.js';
|
2 |
|
3 |
/*
|
4 |
+
Stencil Client Patch Browser v2.9.0 | MIT Licensed | https://stenciljs.com
|
5 |
*/
|
6 |
|
7 |
var patchBrowser = function patchBrowser() {
|
dist/components/types/testing/index.d.ts
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
1 |
+
export declare function setResponses(args: Array<{
|
2 |
+
path: string;
|
3 |
+
data: Object;
|
4 |
+
}>, page: any): void;
|
dist/components/web-components/p-0fe07ea4.entry.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
import{r as e,h as o}from"./p-660ec1bb.js";const s=class{constructor(o){e(this,o),this.effect="sheen"}render(){return o("div",{part:"base",class:{skeleton:!0,"skeleton--pulse":"pulse"===this.effect,"skeleton--sheen":"sheen"===this.effect},"aria-busy":"true","aria-live":"polite"},o("div",{part:"indicator",class:"skeleton__indicator"}))}};s.style=":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:inherit}:host{--border-radius:var(--presto-player-border-radius-pill);--color:#e5e7eb;--sheen-color:#f3f4f6;display:block;position:relative}.skeleton{display:flex;width:100%;height:100%;min-height:1rem}.skeleton__indicator{flex:1 1 auto;background:var(--color);border-radius:var(--border-radius)}.skeleton--sheen .skeleton__indicator{background:linear-gradient(270deg, var(--sheen-color), var(--color), var(--color), var(--sheen-color));background-size:400% 100%;background-size:400% 100%;animation:sheen 8s ease-in-out infinite}.skeleton--pulse .skeleton__indicator{animation:pulse 2s ease-in-out 0.5s infinite}@keyframes sheen{0%{background-position:200% 0}to{background-position:-200% 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}";export{s as presto_player_skeleton}
|
|
dist/components/web-components/p-2006b1be.entry.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
import{r as e,h as o}from"./p-d81ccfaf.js";let s=class{constructor(o){e(this,o),this.effect="sheen"}render(){return o("div",{part:"base",class:{skeleton:!0,"skeleton--pulse":"pulse"===this.effect,"skeleton--sheen":"sheen"===this.effect},"aria-busy":"true","aria-live":"polite"},o("div",{part:"indicator",class:"skeleton__indicator"}))}};s.style=":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:inherit}:host{--border-radius:var(--presto-player-border-radius-pill);--color:#e5e7eb;--sheen-color:#f3f4f6;display:block;position:relative}.skeleton{display:flex;width:100%;height:100%;min-height:1rem}.skeleton__indicator{flex:1 1 auto;background:var(--color);border-radius:var(--border-radius)}.skeleton--sheen .skeleton__indicator{background:linear-gradient(270deg, var(--sheen-color), var(--color), var(--color), var(--sheen-color));background-size:400% 100%;background-size:400% 100%;animation:sheen 8s ease-in-out infinite}.skeleton--pulse .skeleton__indicator{animation:pulse 2s ease-in-out 0.5s infinite}@keyframes sheen{0%{background-position:200% 0}to{background-position:-200% 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}";export{s as presto_player_skeleton}
|
dist/components/web-components/p-29227b20.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
import{r as t,h as e,g as i,c as r,_ as o,a as n,d as a,e as l,f as s,i as p,j as u,k as c,l as d,m as h,H as v}from"./p-d81ccfaf.js";let y=class{constructor(e){t(this,e)}componentWillLoad(){this.player&&(this.player.on("ended",(()=>this.setEnded())),this.player.on("timeupdate",(t=>this.setCurrentTime(t))))}setEnded(){this.ended=!0}setCurrentTime(t){var e,i;this.currentTime=null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.plyr.currentTime,this.duration=null===(i=null==t?void 0:t.detail)||void 0===i?void 0:i.plyr.duration}disconnectedCallback(){this.player&&(this.player.off("ended",this.setEnded),this.player.off("timeupdate",this.setCurrentTime))}render(){return e("presto-action-bar-controller",{ended:this.ended,config:this.config,currentTime:this.currentTime,duration:this.duration,direction:this.direction,youtube:this.youtube})}get el(){return i(this)}};function f({current:t,duration:e,showAfter:i=null}){if(0===i)return!0;if(null===i||!e)return!1;if(t===i)return!0;let r=t/e*100;return 99.9<r&&(r=100),console.log(r,i),r>=i}function g(t){let e,i=t.split(":");return i.length>1&&(e=60*parseInt(i[0])),parseInt(i[1])+parseInt(e)}function m(){var t=navigator.userAgent||navigator.vendor;return/windows phone/i.test(t)?"Windows Phone":/android/i.test(t)?"Android":"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1||/(iPad|iPhone|iPod)/gi.test(navigator.platform)?"iOS":"unknown"}y.style=":host{display:block}";let b=class{constructor(e){t(this,e),this.show=!1,this.youtubeRenderKey=1,this.percentagePassed=0}componentWillLoad(){this.handleDuration()}handleDuration(){this.handleTime()}handleEnded(t){var e;if(t){if(100!==(null===(e=null==this?void 0:this.config)||void 0===e?void 0:e.percentage_start))return;this.show=!0}}handlePercentagePassed(){this.percentagePassed=this.currentTime/this.duration*100}handleTime(){this.checkTime()}checkTime(){var t,e;this.show=!!(null===(t=null===window||void 0===window?void 0:window.wp)||void 0===t?void 0:t.blocks)||f({current:this.currentTime,duration:this.duration,showAfter:null===(e=this.config)||void 0===e?void 0:e.percentage_start})}handleButtonCountChange(t,e){(null==t?void 0:t.button_count)!==(null==e?void 0:e.button_count)&&this.youtubeRenderKey++,(null==t?void 0:t.enabled)&&this.handleDuration()}youtubeButton(){var t,i,r,o;if("youtube"===(null===(t=this.config)||void 0===t?void 0:t.button_type)&&(null===(i=this.youtube)||void 0===i?void 0:i.channelId))return e("presto-youtube-subscribe-button",{key:this.youtubeRenderKey,channel:null===(r=this.youtube)||void 0===r?void 0:r.channelId,showCount:null===(o=this.config)||void 0===o?void 0:o.button_count})}customButton(){var t,i,r,o,n,a,l,s,p,u,c;if("custom"===(null===(t=this.config)||void 0===t?void 0:t.button_type))return e("presto-player-button",{type:"primary",size:"small",href:null===(r=null===(i=this.config)||void 0===i?void 0:i.button_link)||void 0===r?void 0:r.url,target:(null===(n=null===(o=this.config)||void 0===o?void 0:o.button_link)||void 0===n?void 0:n.opensInNewTab)?"_blank":"_self",style:Object.assign(Object.assign({"--presto-player-button-border-radius":`${null===(a=this.config)||void 0===a?void 0:a.button_radius}px`},(null===(l=this.config)||void 0===l?void 0:l.button_color)?{"--presto-player-button-color":`${null===(s=this.config)||void 0===s?void 0:s.button_color}`}:{}),(null===(p=this.config)||void 0===p?void 0:p.button_text_color)?{"--presto-player-button-text":`${null===(u=this.config)||void 0===u?void 0:u.button_text_color}`}:{})},null===(c=this.config)||void 0===c?void 0:c.button_text)}render(){var t,i;return e("presto-action-bar-ui",{open:this.show,style:{"--presto-action-bar-background":(null===(t=this.config)||void 0===t?void 0:t.background_color)||"#1d1d1d"}},null===(i=this.config)||void 0===i?void 0:i.text,e("div",{slot:"button"},this.youtubeButton(),this.customButton()))}get el(){return i(this)}static get watchers(){return{duration:["handleDuration","handlePercentagePassed"],ended:["handleEnded"],currentTime:["handlePercentagePassed","handleTime"],config:["handleButtonCountChange"]}}};b.style=":host{display:block}";let _=class{constructor(e){t(this,e)}render(){return e("div",{class:{bar:!0,"bar--open":this.open}},e("span",{part:"content",class:"bar__content"},e("slot",null)),e("span",{part:"button",class:"bar__button"},e("slot",{name:"button"})))}};_.style=":host{display:block;overflow:hidden}.bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;background:var(--presto-action-bar-background, #1d1d1d);color:#fff;padding:0 var(--presto-action-bar-padding, 6px);line-height:1em;font-size:16px;margin-top:-100%;transition:margin var(--presto-action-bar-animation-speed, 0.5s) ease-in-out;transform:translate3d(0)}.bar.bar--open{margin-top:0}.bar__button{margin:var(--presto-action-bar-padding, 6px);display:flex;align-items:center}.bar__content{margin:var(--presto-action-bar-padding, 6px);width:100%;text-align:center}@media screen and (min-width: 480px){.bar__content{width:auto}}";let w=class{constructor(e){t(this,e)}componentWillLoad(){this.poster=this.poster||this.thumbnail}render(){return e("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})}},k=class{constructor(e){t(this,e)}componentWillLoad(){this.player&&(this.player.on("ended",(()=>this.setEnded())),this.player.on("timeupdate",(t=>this.setCurrentTime(t))))}setEnded(){this.ended=!0}setCurrentTime(t){var e,i;this.currentTime=null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.plyr.currentTime,this.duration=null===(i=null==t?void 0:t.detail)||void 0===i?void 0:i.plyr.duration}disconnectedCallback(){this.player&&(this.player.off("ended",this.setEnded),this.player.off("timeupdate",this.setCurrentTime))}render(){var t;return e("presto-cta-overlay-controller",{ended:this.ended,currentTime:this.currentTime,duration:this.duration,direction:this.direction,cta:null===(t=this.preset)||void 0===t?void 0:t.cta,i18n:this.i18n})}};k.style=":host{display:block}";let x=class{constructor(e){t(this,e),this.playVideo=r(this,"playVideo",7),this.pauseVideo=r(this,"pauseVideo",7),this.restartVideo=r(this,"restartVideo",7),this.percentagePassed=0}componentWillLoad(){this.handleDuration()}handleEnded(t){var e;if(t){if(100!==(null===(e=null==this?void 0:this.cta)||void 0===e?void 0:e.percentage))return;this.show=!0}}handleDuration(){var t;this.enabled=!this.skipped&&(null===(t=null==this?void 0:this.cta)||void 0===t?void 0:t.enabled),this.handleTime()}handlePercentagePassed(){this.percentagePassed=this.currentTime/this.duration*100}handleEnabled(){this.show&&(this.skipped||this.pauseVideo.emit(!0))}handleTime(){var t;this.enabled&&(this.skipped||100!==(null===(t=null==this?void 0:this.cta)||void 0===t?void 0:t.percentage)&&this.checkTime())}checkTime(){var t;this.show=f({current:this.currentTime,duration:this.duration,showAfter:(null===(t=null==this?void 0:this.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.restartVideo.emit()}render(){var t,i,r,o,n,a,l,s,p,u,c,d,h,v;if(this.show)return e("presto-cta-overlay-ui",{style:Object.assign(Object.assign(Object.assign({"--presto-player-button-border-radius":`${null===(t=null==this?void 0:this.cta)||void 0===t?void 0:t.button_radius}px`},(null===(i=null==this?void 0:this.cta)||void 0===i?void 0:i.background_opacity)?{"--presto-player-cta-background-opacity":""+(null===(r=null==this?void 0:this.cta)||void 0===r?void 0:r.background_opacity)/100}:{}),(null===(o=null==this?void 0:this.cta)||void 0===o?void 0:o.button_color)?{"--presto-player-button-color":`${null===(n=null==this?void 0:this.cta)||void 0===n?void 0:n.button_color}`}:{}),(null===(a=null==this?void 0:this.cta)||void 0===a?void 0:a.button_text_color)?{"--presto-player-button-text":`${null===(l=null==this?void 0:this.cta)||void 0===l?void 0:l.button_text_color}`}:{}),direction:this.direction,class:"cta-overlay",i18n:this.i18n,headline:null===(s=null==this?void 0:this.cta)||void 0===s?void 0:s.headline,"bottom-text":null===(p=null==this?void 0:this.cta)||void 0===p?void 0:p.bottom_text,"show-button":null===(u=null==this?void 0:this.cta)||void 0===u?void 0:u.show_button,buttonLink:null===(c=null==this?void 0:this.cta)||void 0===c?void 0:c.button_link,allowSkip:!this.ended&&(null===(d=null==this?void 0:this.cta)||void 0===d?void 0:d.show_skip),allowRewatch:this.ended&&(null===(h=null==this?void 0:this.cta)||void 0===h?void 0:h.show_rewatch),"button-text":null===(v=null==this?void 0:this.cta)||void 0===v?void 0:v.button_text,onSkip:()=>this.skip(),onRewatch:()=>this.rewatch()})}static get watchers(){return{ended:["handleEnded"],duration:["handleDuration","handlePercentagePassed"],currentTime:["handlePercentagePassed","handleEnabled","handleTime"]}}};x.style=":host{display:block}";const z=function(t,e,i){var r=function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}({minFontSize:-1/0,maxFontSize:1/0,container:t},i),o=function(t){var i=e||1,o=function(){var e;t.style.fontSize=Math.max(Math.min(((null==r||null===(e=r.container)||void 0===e?void 0:e.clientWidth)||0)/(10*i),parseFloat(r.maxFontSize)),parseFloat(r.minFontSize))+"px"};if(o(),"ResizeObserver"in window==0)var n=import("./p-97e2763b.js").then((function(){window.ResizeObserver=n.ResizeObserver,new ResizeObserver(o).observe(r.container)}));else new ResizeObserver(o).observe(r.container)};if(t.length)for(var n=0;n<t.length;n++)o(t[n]);else o(t);return t};let T=class{constructor(e){t(this,e),this.skip=r(this,"skip",7),this.rewatch=r(this,"rewatch",7)}componentDidLoad(){z(this.textInput,3,{maxFontSize:20,minFontSize:8})}handleCTAClick(t){var e;(null===(e=this.buttonLink)||void 0===e?void 0:e.url)&&(t.preventDefault(),t.stopPropagation(),this.handleLink())}handleLink(){var t,e,i;(null===(t=this.buttonLink)||void 0===t?void 0:t.opensInNewTab)?window.open(null===(e=this.buttonLink)||void 0===e?void 0:e.url,"_blank"):window.location.href=null===(i=this.buttonLink)||void 0===i?void 0:i.url}render(){var t,i,r,o,n;return e("div",{class:"wrapper",ref:t=>this.textInput=t},e("div",{onClick:t=>this.handleCTAClick(t),class:`overlay ${"rtl"===this.direction?"rtl":""} ${(null===(t=this.buttonLink)||void 0===t?void 0:t.url)?"has-link":""}`},e("div",{class:"content"},e("h1",{part:"cta-headline"},this.headline||this.defaultHeadline),this.bottomText&&e("p",{part:"cta-bottom-text",innerHTML:this.bottomText}),this.showButton&&e("presto-player-button",{full:!0,onClick:t=>this.handleCTAClick(t),part:"cta-button",href:null===(i=null==this?void 0:this.buttonLink)||void 0===i?void 0:i.url,target:(null===(r=null==this?void 0:this.buttonLink)||void 0===r?void 0:r.opensInNewTab)?"_blank":"_self",class:"button",type:"primary"},this.buttonText))),!!this.allowRewatch&&e("div",{class:"rewatch",onClick:t=>{t.preventDefault(),t.stopImmediatePropagation(),this.rewatch.emit()}},e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round",class:"icon icon-corner-up-left"},e("polyline",{points:"9 14 4 9 9 4"}),e("path",{d:"M20 20v-7a4 4 0 0 0-4-4H4"})),null===(o=null==this?void 0:this.i18n)||void 0===o?void 0:o.rewatch),!!this.allowSkip&&e("div",{class:"skip",onClick:t=>{t.preventDefault(),this.skip.emit()}},null===(n=null==this?void 0:this.i18n)||void 0===n?void 0:n.skip," →"))}};T.style=':host{display:block;font-size:16px;width:100%;height:100%;position:absolute;top:0;left:0;bottom:0;right:0;width:100%;height:100%;z-index:99999;user-select:none}*{box-sizing:border-box}a{color:#fff}.wrapper{height:100%;position:relative;color:#fff;font-family:var(--plyr-font-family, "San Francisco", -apple-system, BlinkMacSystemFont, ".SFNSText-Regular", Avenir, "Avenir Next", "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif)}.overlay{position:relative;display:flex;align-items:center;justify-content:center;padding:48px;height:100%}.overlay.has-link{cursor:pointer}.overlay:before{content:"";border-radius:var(--presto-player-border-radius, 0);opacity:var(--presto-player-cta-background-opacity, 0.75);position:absolute;top:0;left:0;bottom:0;right:0;background-color:var(--presto-player-cta-background, #000);z-index:-1;box-shadow:inset 0 0 100px black}.content{width:80%;max-width:600px}.content *~*{margin-top:22px}button{background:var(--plyr-color-main, #000);appearance:none;padding:6px 12px;align-items:center;display:inline-flex;border-width:1px;border-color:transparent;color:#fff;border-radius:0;cursor:pointer;font-size:0.8em;border-radius:0 var(--presto-player-cta-border-radius, 0) var(--presto-player-cta-border-radius) 0}@media screen and (min-width: 700px){button{padding:10px 18px}}button:focus{box-shadow:white 0px 0px 0px 2px, var(--plyr-color-main, #000) 0px 0px 0px 4px, rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;z-index:1}button:focus,button:hover{outline:none}h1{font-size:1.5em;font-weight:500;margin:0;line-height:1.1em}.skip,.rewatch{font-size:0.8em;font-weight:600;position:absolute;top:0;right:0;padding:4%;cursor:pointer}.rewatch{display:inline-flex;align-items:center;right:auto;left:0}.rewatch .icon{margin-right:5px}p{font-size:0.85em;margin:0;margin-top:1.5em;line-height:1.4em;opacity:0.75}';let j=class{constructor(e){t(this,e),this.position="top-right"}closestElement(t,e){return e&&e!=document&&e!=window&&e.closest(t)||e&&this.closestElement(t,e.getRootNode().host)}componentDidLoad(){let t=this.closestElement("presto-player",this.el);z(this.text,3,{maxFontSize:16,minFontSize:10,container:t})}render(){return e(this.href?"a":"span",{class:{"overlay-text":!0,"overlay--top-left":"top-left"===this.position,"overlay--top-right":"top-right"===this.position},href:this.href,target:this.target,part:"overlay-text",ref:t=>this.text=t},e("slot",null))}get el(){return i(this)}};j.style=":host{display:block}.overlay-text{text-decoration:none;display:inline-block;user-select:none;line-height:1;opacity:var(--presto-dynamic-overlay-opacity, 1);font-size:var(--presto-dynamic-overlay-font-size, 18px);padding:var(--presto-dynamic-overlay-padding, 0.65em 0.85em);font-weight:var(--presto-dynamic-overlay-font-weight, 500);border-radius:var(--presto-dynamic-overlay-radius, 0.25em);background:var(--presto-dynamic-overlay-background, rgba(0, 0, 0, 0.8));color:var(--presto-dynamic-overlay-color, #fff);opacity:var(--presto-dynamic-overlay-opacity, 1);word-break:break-word}a.overlay-text{cursor:pointer}";let S=class{constructor(e){t(this,e),this.reloadComponent=r(this,"reloadComponent",7),this.watermarkRef={left:null,right:null},this.destroy=!1,this.refs={}}componentDidLoad(){this.player&&this.player.on("timeupdate",(t=>{this.currentTime=t.detail.plyr.currentTime,this.checkValidity()}))}checkValidity(){var t,e,i,r,o,n,a,l,s,p;this.player.playing&&((null===(t=null==this?void 0:this.overlays)||void 0===t?void 0:t.length)||(null===(i=null===(e=this.preset)||void 0===e?void 0:e.watermark)||void 0===i?void 0:i.enabled))&&((null===(r=this.container)||void 0===r?void 0:r.offsetParent)&&(null===(o=this.topLeft)||void 0===o?void 0:o.offsetParent)&&(null===(n=this.topRight)||void 0===n?void 0:n.offsetParent)||this.reloadComponent.emit(),Object.keys(this.refs||{}).forEach((t=>{const{overlay:e,component:i}=this.refs[t];this.checkComponent(i,e.text,(()=>this.reloadComponent.emit()))})),this.shouldShowWatermark("top-left")&&this.watermarkRef.left&&this.checkComponent(this.watermarkRef.left,null===(l=null===(a=this.preset)||void 0===a?void 0:a.watermark)||void 0===l?void 0:l.text,(()=>this.reloadComponent.emit())),this.shouldShowWatermark("top-right")&&this.watermarkRef.right&&this.checkComponent(this.watermarkRef.right,null===(p=null===(s=this.preset)||void 0===s?void 0:s.watermark)||void 0===p?void 0:p.text,(()=>this.reloadComponent.emit())))}checkComponent(t,e,i){if(!(null==t?void 0:t.offsetParent))return i();if(!t.shadowRoot.querySelector("slot"))return i();if(this.player&&this.player.playing){const r=t.shadowRoot.querySelector("slot").assignedNodes()[0];if(r){if(r.parentElement.innerHTML!=e)return i();const t=getComputedStyle(r.parentElement.shadowRoot.querySelector(".overlay-text"));if(parseInt(t.fontSize,10)<10)return i();const o=function(t){var e=t.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i);return e?[e[1],e[2],e[3],"1"]:(e=t.match(/^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*((0.)?\d+)\s*\)$/i))?[e[1],e[2],e[3],e[4]]:void 0}(t.color);if("1"!==(null==o?void 0:o[3]))return i()}}}shouldShowOverlay(t){if(void 0!==this.currentTime)return!(this.currentTime<g(null==t?void 0:t.startTime)||this.currentTime>g(null==t?void 0:t.endTime))}renderOverlay(t){var i,r;return e("presto-dynamic-overlay-ui",{class:{visible:this.shouldShowOverlay(t)},ref:e=>this.refs[t.id]={overlay:t,component:e},key:t.id,position:t.position,href:null===(i=null==t?void 0:t.link)||void 0===i?void 0:i.url,target:(null===(r=null==t?void 0:t.link)||void 0===r?void 0:r.opensInNewTab)?"_blank":"_self",innerHTML:this.shouldShowOverlay(t)?t.text:"",style:{"--presto-dynamic-overlay-color":(null==t?void 0:t.color)||"#fff","--presto-dynamic-overlay-background":(null==t?void 0:t.backgroundColor)||"#333","--presto-dynamic-overlay-opacity":(null==t?void 0:t.opacity)?(t.opacity/100).toString():"1"}})}shouldShowWatermark(t){var e,i,r;if(!(null===(i=null===(e=this.preset)||void 0===e?void 0:e.watermark)||void 0===i?void 0:i.enabled))return!1;const o=null===(r=this.preset)||void 0===r?void 0:r.watermark;return"randomize"===o.position?Math.floor((this.player.currentTime||0)/10)%2==0?"top-left"===t:"top-right"===t:o.position===t||!o.position&&"top-right"===t}render(){var t,i,r,o,n,a,l,s,p,u,c;if(this.enabled&&((null===(t=null==this?void 0:this.overlays)||void 0===t?void 0:t.length)||(null===(r=null===(i=this.preset)||void 0===i?void 0:i.watermark)||void 0===r?void 0:r.enabled)))return e("div",{class:"overlays",ref:t=>this.container=t},e("div",{class:"top-left",ref:t=>this.topLeft=t},!!this.shouldShowWatermark("top-left")&&e("presto-dynamic-overlay-ui",{ref:t=>this.watermarkRef.left=t,style:{"--presto-dynamic-overlay-color":(null===(o=this.preset.watermark)||void 0===o?void 0:o.color)||"#fff","--presto-dynamic-overlay-background":(null===(n=this.preset.watermark)||void 0===n?void 0:n.backgroundColor)||"#333","--presto-dynamic-overlay-opacity":(null===(a=this.preset.watermark)||void 0===a?void 0:a.opacity)?(this.preset.watermark.opacity/100).toString():"1"},class:"visible",position:"top-left",innerHTML:this.preset.watermark.text}),!!(null===(l=null==this?void 0:this.overlays)||void 0===l?void 0:l.length)&&this.overlays.map((t=>"top-left"!==t.position?"":this.renderOverlay(t)))),e("div",{class:"top-right",ref:t=>this.topRight=t},!!this.shouldShowWatermark("top-right")&&e("presto-dynamic-overlay-ui",{ref:t=>this.watermarkRef.right=t,style:{"--presto-dynamic-overlay-color":(null===(s=this.preset.watermark)||void 0===s?void 0:s.color)||"#fff","--presto-dynamic-overlay-background":(null===(p=this.preset.watermark)||void 0===p?void 0:p.backgroundColor)||"#333","--presto-dynamic-overlay-opacity":(null===(u=this.preset.watermark)||void 0===u?void 0:u.opacity)?(this.preset.watermark.opacity/100).toString():"1"},class:"visible",position:"top-right",innerHTML:this.preset.watermark.text}),!!(null===(c=null==this?void 0:this.overlays)||void 0===c?void 0:c.length)&&this.overlays.map((t=>"top-right"!==t.position?"":this.renderOverlay(t)))))}get el(){return i(this)}};S.style=".top-left,.top-right{position:absolute;display:block;padding:20px;max-width:45%;z-index:20;display:flex;flex-direction:column;flex-wrap:wrap}.top-left{top:0;left:0}.top-right{top:0;right:0;align-items:flex-end}presto-dynamic-overlay-ui{overflow:hidden;height:0;opacity:0;transition:height 0ms 400ms, opacity 400ms 0ms}presto-dynamic-overlay-ui.visible{margin-bottom:10px;height:auto;opacity:1;transition:height 0ms 0ms, opacity 500ms 0ms}";let P=class{constructor(e){t(this,e)}componentWillLoad(){this.player&&(this.player.on("ended",(()=>this.setEnded())),this.player.on("timeupdate",(t=>this.setCurrentTime(t))))}setEnded(){this.ended=!0}setCurrentTime(t){var e,i;this.currentTime=null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.plyr.currentTime,this.duration=null===(i=null==t?void 0:t.detail)||void 0===i?void 0:i.plyr.duration}disconnectedCallback(){this.player&&(this.player.off("ended",this.setEnded),this.player.off("timeupdate",this.setCurrentTime))}render(){var t;return e("presto-email-overlay-controller",{ended:this.ended,currentTime:this.currentTime,videoId:this.videoId,duration:this.duration,direction:this.direction,emailCollection:null===(t=this.preset)||void 0===t?void 0:t.email_collection,i18n:this.i18n})}};P.style=":host{display:block}";let C=class{constructor(e){t(this,e),this.playVideo=r(this,"playVideo",7),this.pauseVideo=r(this,"pauseVideo",7),this.restartVideo=r(this,"restartVideo",7),this.percentagePassed=0}setStorage(t){window.localStorage.setItem("presto.videos.email_collection",JSON.stringify({[this.videoId]:t}))}getStorage(){return window.localStorage.getItem("presto.videos.email_collection")}componentWillLoad(){this.handleDuration()}handleDuration(){var t;this.enabled=!this.getStorage()&&(null===(t=null==this?void 0:this.emailCollection)||void 0===t?void 0:t.enabled),this.handleTimeCheck()}handleTimeCheck(){this.enabled&&(this.getStorage()||this.checkTime())}handleShowChange(){this.show&&this.pauseVideo.emit(!0)}checkTime(){var t;this.show=f({current:this.currentTime,duration:this.duration,showAfter:(null===(t=null==this?void 0:this.emailCollection)||void 0===t?void 0:t.percentage)||0})}async getNonce(){var t;return fetch(`${null===(t=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===t?void 0:t.ajaxurl}?action=presto_refresh_progress_nonce`)}async submit(t){var e;this.loading=!0,this.error="";const i=await this.getNonce(),{data:r}=await i.json();try{let i=await fetch(null===(e=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===e?void 0:e.ajaxurl,{method:"post",body:new URLSearchParams(Object.assign({action:"presto_player_email_submit",nonce:r,preset_id:this.presetId,video_id:this.videoId},(null==t?void 0:t.detail)||{}))});const{success:o,data:n}=await i.json();if(!o)throw n;this.setStorage("collected"),this.show=!1,this.playVideo.emit()}catch(t){const e=null==t?void 0:t[0];e&&"string"==typeof e&&(this.error=e)}finally{this.loading=!1}}skip(){this.setStorage("skipped"),this.show=!1,this.playVideo.emit()}render(){var t,i,r,o;if(this.show)return e("presto-email-overlay-ui",{direction:this.direction,class:"email-overlay",headline:null===(t=null==this?void 0:this.emailCollection)||void 0===t?void 0:t.headline,bottomText:null===(i=null==this?void 0:this.emailCollection)||void 0===i?void 0:i.bottom_text,allowSkip:null===(r=null==this?void 0:this.emailCollection)||void 0===r?void 0:r.allow_skip,buttonText:null===(o=null==this?void 0:this.emailCollection)||void 0===o?void 0:o.button_text,isLoading:this.loading,errorMessage:this.error,onSubmitForm:t=>this.submit(t),onSkip:()=>this.skip(),i18n:this.i18n})}static get watchers(){return{duration:["handleDuration"],currentTime:["handleTimeCheck","handleShowChange"]}}};C.style=":host{display:block}";let O=class{constructor(e){t(this,e),this.submitForm=r(this,"submitForm",7),this.skip=r(this,"skip",7)}handleSubmit(t){this.submitForm.emit({email:this.email}),t.preventDefault()}componentDidLoad(){z(this.textInput,3,{maxFontSize:20,minFontSize:8})}handleChange(t){this.email=t.target.value}render(){var t,i,r,o;return e("div",{class:"overlay "+("rtl"===this.direction?"rtl":""),ref:t=>this.textInput=t},e("div",{class:"content"},e("h1",null,this.headline||(null===(t=null==this?void 0:this.i18n)||void 0===t?void 0:t.emailDefaultHeadline)),this.isLoading?e("presto-player-spinner",null):e("form",{onSubmit:t=>this.handleSubmit(t)},e("input",{type:"email",placeholder:null===(i=null==this?void 0:this.i18n)||void 0===i?void 0:i.emailPlaceholder,value:this.email,onInput:t=>this.handleChange(t),required:!0}),e("button",{type:"submit"},this.buttonText||(null===(r=null==this?void 0:this.i18n)||void 0===r?void 0:r.play))),this.errorMessage&&e("p",{class:"error"},this.errorMessage),this.bottomText&&e("p",{innerHTML:this.bottomText}),!!this.allowSkip&&e("div",{class:"skip",onClick:()=>{this.skip.emit()}},null===(o=null==this?void 0:this.i18n)||void 0===o?void 0:o.skip," →")))}};O.style=':host{display:block;font-size:16px;width:100%;height:100%;position:absolute;top:0;left:0;bottom:0;right:0;width:100%;height:100%;z-index:99999}*{box-sizing:border-box}a{color:#fff}.overlay{position:relative;display:flex;align-items:center;text-align:center;justify-content:center;padding:48px;color:#fff;font-family:var(--plyr-font-family, "San Francisco", -apple-system, BlinkMacSystemFont, ".SFNSText-Regular", Avenir, "Avenir Next", "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif);height:100%}.overlay:before{content:"";border-radius:var(--presto-player-border-radius, 0);opacity:var(--presto-player-email-background-opacity, 0.75);position:absolute;top:0;left:0;bottom:0;right:0;background-color:var(--presto-player-email-background, #000);z-index:-1;box-shadow:inset 0 0 100px black}.content{width:20em}form{display:flex;align-items:stretch;justify-content:center}input{background:#fff;border:none;font-size:0.8em;line-height:20px;padding:6px 8px;border-radius:0;border-width:1px;border-style:solid;border-color:transparent;border-radius:var(--presto-player-email-border-radius, 0) 0 0 var(--presto-player-email-border-radius);flex:1}@media screen and (min-width: 700px){input{padding:10px 14px}}input:focus{border-color:var(--plyr-color-main, #000);z-index:1}input:focus,input:hover{outline:none}.rtl input{border-radius:0 var(--presto-player-email-border-radius, 0) var(--presto-player-email-border-radius) 0}button{background:var(--plyr-color-main, #000);appearance:none;padding:6px 12px;align-items:center;display:inline-flex;border-width:1px;border-color:transparent;color:#fff;border-radius:0;cursor:pointer;font-size:0.8em;border-radius:0 var(--presto-player-email-border-radius, 0) var(--presto-player-email-border-radius) 0}@media screen and (min-width: 700px){button{padding:10px 18px}}button:focus{box-shadow:white 0px 0px 0px 2px, var(--plyr-color-main, #000) 0px 0px 0px 4px, rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;z-index:1}button:focus,button:hover{outline:none}.rtl button{border-radius:var(--presto-player-email-border-radius, 0) 0 0 var(--presto-player-email-border-radius)}h1{font-size:1.5em;font-weight:500;margin:0 0 22px 0;max-width:600px;line-height:1.1em}.skip{font-size:0.8em;font-weight:600;position:absolute;top:0;right:0;padding:4%;cursor:pointer}p{font-size:0.7em;margin:0;margin-top:1.5em}';let I=class{constructor(e){t(this,e),this.playVideo=r(this,"playVideo",7)}render(){var t,i,r,o,n,a,l,s,p;return e("div",{class:"presto-player__muted-overlay",onClick:()=>{this.mutedPreview=!1,this.playVideo.emit()}},(null===(t=this.preset)||void 0===t?void 0:t["play-large"])&&e("div",{class:"plyr__control plyr__control--overlaid","data-plyr":"play","aria-label":"Play",part:"muted-overlay-play"},e("svg",{id:"plyr-play",viewBox:"0 0 18 18"},e("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"})),e("span",{class:"plyr__sr-only"},"Play")),(null===(i=this.mutedOverlay)||void 0===i?void 0:i.enabled)&&(null===(r=this.mutedOverlay)||void 0===r?void 0:r.src)?e("div",{class:"presto-player__overlay is-image",part:"muted-overlay-image",style:{width:`${(null===(o=this.mutedOverlay)||void 0===o?void 0:o.width)||50}%`,left:100*((null===(a=null===(n=this.mutedOverlay)||void 0===n?void 0:n.focalPoint)||void 0===a?void 0:a.x)||.5)+"%",top:100*((null===(s=null===(l=this.mutedOverlay)||void 0===l?void 0:l.focalPoint)||void 0===s?void 0:s.y)||.5)+"%"}},e("img",{src:null===(p=this.mutedOverlay)||void 0===p?void 0:p.src,style:{transform:"translateX(-50%) translateY(-50%)"}})):"")}};I.style=":host{display:block}";var A=["premium","referrerPolicy"];function M(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function E(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function F(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function L(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,r)}return i}function N(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?L(Object(i),!0).forEach((function(e){F(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):L(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var R={addCSS:!0,thumbWidth:15,watch:!0};function B(t,e){return function(){return Array.from(document.querySelectorAll(e)).includes(this)}.call(t,e)}var D=function(t){return null!=t?t.constructor:null},q=function(t,e){return!!(t&&e&&t instanceof e)},H=function(t){return D(t)===String},V=function(t){return Array.isArray(t)},$=function(t){return q(t,NodeList)},U=H,Q=V,W=$,Y=function(t){return q(t,Element)},J=function(t){return q(t,Event)},G=function(t){return function(t){return null==t}(t)||(H(t)||V(t)||$(t))&&!t.length||function(t){return D(t)===Object}(t)&&!Object.keys(t).length};var K,X,Z,tt=function(){function t(e,i){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),Y(e)?this.element=e:U(e)&&(this.element=document.querySelector(e)),Y(this.element)&&G(this.element.rangeTouch)&&(this.config=N({},R,{},i),this.init())}return function(t,e,i){e&&E(t.prototype,e),i&&E(t,i)}(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 e=this,i=t?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach((function(t){e.element[i](t,(function(t){return e.set(t)}),!1)}))}},{key:"get",value:function(e){if(!t.enabled||!J(e))return null;var i,r=e.target,o=e.changedTouches[0],n=parseFloat(r.getAttribute("min"))||0,a=parseFloat(r.getAttribute("max"))||100,l=parseFloat(r.getAttribute("step"))||1,s=r.getBoundingClientRect(),p=100/s.width*(this.config.thumbWidth/2)/100;return 0>(i=100/s.width*(o.clientX-s.left))?i=0:100<i&&(i=100),50>i?i-=(100-2*i)*p:50<i&&(i+=2*(i-50)*p),n+function(t,e){if(1>e){var i=function(t){var e="".concat(t).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return e?Math.max(0,(e[1]?e[1].length:0)-(e[2]?+e[2]:0)):0}(e);return parseFloat(t.toFixed(i))}return Math.round(t/e)*e}(i/100*(a-n),l)}},{key:"set",value:function(e){t.enabled&&J(e)&&!e.target.disabled&&(e.preventDefault(),e.target.value=this.get(e),function(t,e){if(t&&e){var i=new Event(e,{bubbles:!0});t.dispatchEvent(i)}}(e.target,"touchend"===e.type?"change":"input"))}}],[{key:"setup",value:function(e){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=null;if(G(e)||U(e)?r=Array.from(document.querySelectorAll(U(e)?e:'input[type="range"]')):Y(e)?r=[e]:W(e)?r=Array.from(e):Q(e)&&(r=e.filter(Y)),G(r))return null;var o=N({},R,{},i);if(U(e)&&o.watch){var n=new MutationObserver((function(i){Array.from(i).forEach((function(i){Array.from(i.addedNodes).forEach((function(i){Y(i)&&B(i,e)&&new t(i,o)}))}))}));n.observe(document.body,{childList:!0,subtree:!0})}return r.map((function(e){return new t(e,i)}))}},{key:"enabled",get:function(){return"ontouchstart"in document.documentElement}}]),t}(),et=function(t){return null!=t?t.constructor:null},it=function(t,e){return Boolean(t&&e&&t instanceof e)},rt=function(t){return null==t},ot=function(t){return et(t)===Object},nt=function(t){return et(t)===String},at=function(t){return et(t)===Function},lt=function(t){return Array.isArray(t)},st=function(t){return it(t,NodeList)},pt=function(t){return rt(t)||(nt(t)||lt(t)||st(t))&&!t.length||ot(t)&&!Object.keys(t).length},ut=rt,ct=ot,dt=function(t){return et(t)===Number&&!Number.isNaN(t)},ht=nt,vt=function(t){return et(t)===Boolean},yt=at,ft=lt,gt=st,mt=function(t){return null!==t&&"object"==s(t)&&1===t.nodeType&&"object"==s(t.style)&&"object"==s(t.ownerDocument)},bt=function(t){return it(t,Event)},_t=function(t){return it(t,KeyboardEvent)},wt=function(t){return it(t,TextTrack)||!rt(t)&&nt(t.kind)},kt=function(t){if(it(t,window.URL))return!0;if(!nt(t))return!1;var e=t;t.startsWith("http://")&&t.startsWith("https://")||(e="http://".concat(t));try{return!pt(new URL(e).hostname)}catch(t){return!1}},xt=pt,zt=(K=document.createElement("span"),X={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},Z=Object.keys(X).find((function(t){return void 0!==K.style[t]})),!!ht(Z)&&X[Z]);function Tt(t,e){setTimeout((function(){try{t.hidden=!0,t.hidden=!1}catch(t){}}),e)}var jt={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 St(t,e){return e.split(".").reduce((function(t,e){return t&&t[e]}),t)}function Pt(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length,i=new Array(e>1?e-1:0),r=1;r<e;r++)i[r-1]=arguments[r];if(!i.length)return t;var o=i.shift();return ct(o)?(Object.keys(o).forEach((function(e){ct(o[e])?(Object.keys(t).includes(e)||Object.assign(t,a({},e,{})),Pt(t[e],o[e])):Object.assign(t,a({},e,o[e]))})),Pt.apply(void 0,[t].concat(i))):t}function Ct(t,e){Array.from(t.length?t:[t]).reverse().forEach((function(t,i){var r=i>0?e.cloneNode(!0):e,o=t.parentNode,n=t.nextSibling;r.appendChild(t),n?o.insertBefore(r,n):o.appendChild(r)}))}function Ot(t,e){mt(t)&&!xt(e)&&Object.entries(e).filter((function(t){var e=o(t,2);return!ut(e[1])})).forEach((function(e){var i=o(e,2);return t.setAttribute(i[0],i[1])}))}function It(t,e,i){var r=document.createElement(t);return ct(e)&&Ot(r,e),ht(i)&&(r.innerText=i),r}function At(t,e,i,r){mt(e)&&e.appendChild(It(t,i,r))}function Mt(t){gt(t)||ft(t)?Array.from(t).forEach(Mt):mt(t)&&mt(t.parentNode)&&t.parentNode.removeChild(t)}function Et(t){if(mt(t))for(var e=t.childNodes.length;e>0;)t.removeChild(t.lastChild),e-=1}function Ft(t,e){return mt(e)&&mt(e.parentNode)&&mt(t)?(e.parentNode.replaceChild(t,e),t):null}function Lt(t,e){if(!ht(t)||xt(t))return{};var i={},r=Pt({},e);return t.split(",").forEach((function(t){var e=t.trim(),n=e.replace(".",""),a=e.replace(/[[\]]/g,"").split("="),l=o(a,1)[0],s=a.length>1?a[1].replace(/["']/g,""):"";switch(e.charAt(0)){case".":i.class=ht(r.class)?"".concat(r.class," ").concat(n):n;break;case"#":i.id=e.replace("#","");break;case"[":i[l]=s}})),Pt(r,i)}function Nt(t,e){if(mt(t)){var i=e;vt(i)||(i=!t.hidden),t.hidden=i}}function Rt(t,e,i){if(gt(t))return Array.from(t).map((function(t){return Rt(t,e,i)}));if(mt(t)){var r="toggle";return void 0!==i&&(r=i?"add":"remove"),t.classList[r](e),t.classList.contains(e)}return!1}function Bt(t,e){return mt(t)&&t.classList.contains(e)}function Dt(t,e){var i=Element.prototype;return(i.matches||i.webkitMatchesSelector||i.mozMatchesSelector||i.msMatchesSelector||function(){return Array.from(document.querySelectorAll(e)).includes(this)}).call(t,e)}function qt(t){return this.elements.container.querySelectorAll(t)}function Ht(t){return this.elements.container.querySelector(t)}function Vt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];mt(t)&&(t.focus({preventScroll:!0}),e&&Rt(t,this.config.classNames.tabFocus))}var $t={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},Ut={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check:function(t,e,i){var r=Ut[t]||"html5"!==e;return{api:r,ui:r&&Ut.rangeInput&&("video"!==t||!jt.isIPhone||jt.isIPhone&&i&&Ut.playsinline)}},pip:!(jt.isIPhone||!yt(It("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||It("video").disablePictureInPicture)),airplay:yt(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime:function(t){if(xt(t))return!1;var e=t.split("/"),i=o(e,1),r=t;if(!this.isHTML5||i[0]!==this.type)return!1;Object.keys($t).includes(r)&&(r+='; codecs="'.concat($t[t],'"'));try{return Boolean(r&&this.media.canPlayType(r).replace(/no/,""))}catch(t){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!==zt,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},Qt=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){return t=!0,null}});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(t){}return t}();function Wt(t,e,i){var r=this,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],n=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(t&&"addEventListener"in t&&!xt(e)&&yt(i)){var l=e.split(" "),s=a;Qt&&(s={passive:n,capture:a}),l.forEach((function(e){r&&r.eventListeners&&o&&r.eventListeners.push({element:t,type:e,callback:i,options:s}),t[o?"addEventListener":"removeEventListener"](e,i,s)}))}}function Yt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];Wt.call(this,t,e,i,!0,r,o)}function Jt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];Wt.call(this,t,e,i,!1,r,o)}function Gt(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],n=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];Jt(t,i,a,o,n),r.apply(e,s)};Wt.call(this,t,i,a,!0,o,n)}function Kt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(mt(t)&&!xt(e)){var o=new CustomEvent(e,{bubbles:i,detail:n(n({},r),{},{plyr:this})});t.dispatchEvent(o)}}function Xt(){this&&this.eventListeners&&(this.eventListeners.forEach((function(t){t.element.removeEventListener(t.type,t.callback,t.options)})),this.eventListeners=[])}function Zt(){var t=this;return new Promise((function(e){return t.ready?setTimeout(e,0):Yt.call(t,t.elements.container,"ready",e)})).then((function(){}))}function te(t){(function(t){return it(t,Promise)&&at(t.then)})(t)&&t.then(null,(function(){}))}function ee(t){return ft(t)?t.filter((function(e,i){return t.indexOf(e)===i})):t}function ie(t,e){return ft(t)&&t.length?t.reduce((function(t,i){return Math.abs(i-e)<Math.abs(t-e)?i:t})):null}function re(t){return!(!window||!window.CSS)&&window.CSS.supports(t)}var oe=[[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(t,e){var i=o(e,2),r=i[0],l=i[1];return n(n({},t),{},a({},r/l,[r,l]))}),{});function ne(t){return!!(ft(t)||ht(t)&&t.includes(":"))&&(ft(t)?t:t.split(":")).map(Number).every(dt)}function ae(t){if(!ft(t)||!t.every(dt))return null;var e=o(t,2),i=e[0],r=e[1],n=function t(e,i){return 0===i?e:t(i,e%i)}(i,r);return[i/n,r/n]}function le(t){var e=function(t){return ne(t)?t.split(":").map(Number):null},i=e(t);if(null===i&&(i=e(this.config.ratio)),null===i&&!xt(this.embed)&&ft(this.embed.ratio)&&(i=this.embed.ratio),null===i&&this.isHTML5){var r=this.media;i=[r.videoWidth,r.videoHeight]}return ae(i)}function se(t){if(!this.isVideo)return{};var e=this.elements.wrapper,i=le.call(this,t);if(!ft(i))return{};var r=ae(i),n=o(r,2),a=n[0],l=n[1],s=100/a*l;if(re("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 pe(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.05,r=t/e,o=ie(Object.keys(oe),r);return Math.abs(o-r)<=i?oe[o]:[t,e]}var ue={getSources:function(){var t=this;return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter((function(e){var i=e.getAttribute("type");return!!xt(i)||Ut.mime.call(t,i)})):[]},getQualityOptions:function(){return this.config.quality.forced?this.config.quality.options:ue.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,xt(this.config.ratio)||se.call(t),Object.defineProperty(t.media,"quality",{get:function(){var e=ue.getSources.call(t).find((function(e){return e.getAttribute("src")===t.source}));return e&&Number(e.getAttribute("size"))},set:function(e){if(t.quality!==e){if(t.config.quality.forced&&yt(t.config.quality.onChange))t.config.quality.onChange(e);else{var i=ue.getSources.call(t).find((function(t){return Number(t.getAttribute("size"))===e}));if(!i)return;var r=t.media,o=r.currentTime,n=r.paused,a=r.preload,l=r.readyState,s=r.playbackRate;t.media.src=i.getAttribute("src"),("none"!==a||l)&&(t.once("loadedmetadata",(function(){t.speed=s,t.currentTime=o,n||te(t.play())})),t.media.load())}Kt.call(t,t.media,"qualitychange",!1,{quality:e})}}})}},cancelRequests:function(){this.isHTML5&&(Mt(ue.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function ce(t){return"".concat(t,"-").concat(Math.floor(1e4*Math.random()))}function de(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),r=1;r<e;r++)i[r-1]=arguments[r];return xt(t)?t:t.toString().replace(/{(\d+)}/g,(function(t,e){return i[e].toString()}))}var he=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return t.replace(new RegExp(e.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),i.toString())},ve=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 ye(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=t.toString();return e=he(e,"-"," "),e=he(e,"_"," "),e=ve(e),he(e," ","")}function fe(t){var e=document.createElement("div");return e.appendChild(t),e.innerHTML}var ge={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},me=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(xt(t)||xt(e))return"";var i=St(e.i18n,t);if(xt(i))return Object.keys(ge).includes(t)?ge[t]:"";var r={"{seektime}":e.seekTime,"{title}":e.title};return Object.entries(r).forEach((function(t){var e=o(t,2);i=he(i,e[0],e[1])})),i},be=function(){function t(e){var i=this;p(this,t),M(this,"get",(function(e){if(!t.supported||!i.enabled)return null;var r=window.localStorage.getItem(i.key);if(xt(r))return null;var o=JSON.parse(r);return ht(e)&&e.length?o[e]:o})),M(this,"set",(function(e){if(t.supported&&i.enabled&&ct(e)){var r=i.get();xt(r)&&(r={}),Pt(r,e),window.localStorage.setItem(i.key,JSON.stringify(r))}})),this.enabled=e.config.storage.enabled,this.key=e.config.storage.key}return l(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 _e(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text";return new Promise((function(i,r){try{var o=new XMLHttpRequest;if(!("withCredentials"in o))return;o.addEventListener("load",(function(){if("text"===e)try{i(JSON.parse(o.responseText))}catch(t){i(o.responseText)}else i(o.response)})),o.addEventListener("error",(function(){throw new Error(o.status)})),o.open("GET",t,!0),o.responseType=e,o.send()}catch(t){r(t)}}))}function we(t,e){if(ht(t)){var i=ht(e),r=function(){return null!==document.getElementById(e)},o=function(t,e){t.innerHTML=e,i&&r()||document.body.insertAdjacentElement("afterbegin",t)};if(!i||!r()){var n=be.supported,a=document.createElement("div");if(a.setAttribute("hidden",""),i&&a.setAttribute("id",e),n){var l=window.localStorage.getItem("cache-".concat(e));if(null!==l){var s=JSON.parse(l);o(a,s.content)}}_e(t).then((function(t){xt(t)||(n&&window.localStorage.setItem("cache-".concat(e),JSON.stringify({content:t})),o(a,t))})).catch((function(){}))}}}var ke=function(t){return Math.trunc(t/60/60%60,10)},xe=function(t){return Math.trunc(t%60,10)};function ze(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!dt(t))return ze(void 0,e,i);var r,o=function(t){return"0".concat(t).slice(-2)},n=ke(t),a=(r=t,Math.trunc(r/60%60,10)),l=xe(t);return n=e||n>0?"".concat(n,":"):"","".concat(i&&t>0?"-":"").concat(n).concat(o(a),":").concat(o(l))}var Te={getIconUrl:function(){var t=new URL(this.config.iconUrl,window.location),e=window.location.host?window.location.host:window.top.location.host,i=t.host!==e||jt.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:i}},findElements:function(){try{return this.elements.controls=Ht.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:qt.call(this,this.config.selectors.buttons.play),pause:Ht.call(this,this.config.selectors.buttons.pause),restart:Ht.call(this,this.config.selectors.buttons.restart),rewind:Ht.call(this,this.config.selectors.buttons.rewind),fastForward:Ht.call(this,this.config.selectors.buttons.fastForward),mute:Ht.call(this,this.config.selectors.buttons.mute),pip:Ht.call(this,this.config.selectors.buttons.pip),airplay:Ht.call(this,this.config.selectors.buttons.airplay),settings:Ht.call(this,this.config.selectors.buttons.settings),captions:Ht.call(this,this.config.selectors.buttons.captions),fullscreen:Ht.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=Ht.call(this,this.config.selectors.progress),this.elements.inputs={seek:Ht.call(this,this.config.selectors.inputs.seek),volume:Ht.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:Ht.call(this,this.config.selectors.display.buffer),currentTime:Ht.call(this,this.config.selectors.display.currentTime),duration:Ht.call(this,this.config.selectors.display.duration)},mt(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,e){var i="http://www.w3.org/2000/svg",r=Te.getIconUrl.call(this),o="".concat(r.cors?"":r.url,"#").concat(this.config.iconPrefix),n=document.createElementNS(i,"svg");Ot(n,Pt(e,{"aria-hidden":"true",focusable:"false"}));var a=document.createElementNS(i,"use"),l="".concat(o,"-").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),n.appendChild(a),n},createLabel:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=me(t,this.config);return It("span",n(n({},e),{},{class:[e.class,this.config.classNames.hidden].filter(Boolean).join(" ")}),i)},createBadge:function(t){if(xt(t))return null;var e=It("span",{class:this.config.classNames.menu.value});return e.appendChild(It("span",{class:this.config.classNames.menu.badge},t)),e},createButton:function(t,e){var i=this,r=Pt({},e),o=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toString();return(t=ye(t)).charAt(0).toLowerCase()+t.slice(1)}(t),n={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch(["element","icon","label"].forEach((function(t){Object.keys(r).includes(t)&&(n[t]=r[t],delete r[t])})),"button"!==n.element||Object.keys(r).includes("type")||(r.type="button"),Object.keys(r).includes("class")?r.class.split(" ").some((function(t){return t===i.config.classNames.control}))||Pt(r,{class:"".concat(r.class," ").concat(this.config.classNames.control)}):r.class=this.config.classNames.control,t){case"play":n.toggle=!0,n.label="play",n.labelPressed="pause",n.icon="play",n.iconPressed="pause";break;case"mute":n.toggle=!0,n.label="mute",n.labelPressed="unmute",n.icon="volume",n.iconPressed="muted";break;case"captions":n.toggle=!0,n.label="enableCaptions",n.labelPressed="disableCaptions",n.icon="captions-off",n.iconPressed="captions-on";break;case"fullscreen":n.toggle=!0,n.label="enterFullscreen",n.labelPressed="exitFullscreen",n.icon="enter-fullscreen",n.iconPressed="exit-fullscreen";break;case"play-large":r.class+=" ".concat(this.config.classNames.control,"--overlaid"),o="play",n.label="play",n.icon="play";break;default:xt(n.label)&&(n.label=o),xt(n.icon)&&(n.icon=t)}var a=It(n.element);return n.toggle?(a.appendChild(Te.createIcon.call(this,n.iconPressed,{class:"icon--pressed"})),a.appendChild(Te.createIcon.call(this,n.icon,{class:"icon--not-pressed"})),a.appendChild(Te.createLabel.call(this,n.labelPressed,{class:"label--pressed"})),a.appendChild(Te.createLabel.call(this,n.label,{class:"label--not-pressed"}))):(a.appendChild(Te.createIcon.call(this,n.icon)),a.appendChild(Te.createLabel.call(this,n.label))),Pt(r,Lt(this.config.selectors.buttons[o],r)),Ot(a,r),"play"===o?(ft(this.elements.buttons[o])||(this.elements.buttons[o]=[]),this.elements.buttons[o].push(a)):this.elements.buttons[o]=a,a},createRange:function(t,e){var i=It("input",Pt(Lt(this.config.selectors.inputs[t]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":me(t,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},e));return this.elements.inputs[t]=i,Te.updateRangeFill.call(this,i),tt.setup(i),i},createProgress:function(t,e){var i=It("progress",Pt(Lt(this.config.selectors.display[t]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},e));if("volume"!==t){i.appendChild(It("span",null,"0"));var r={played:"played",buffer:"buffered"}[t],o=r?me(r,this.config):"";i.innerText="% ".concat(o.toLowerCase())}return this.elements.display[t]=i,i},createTime:function(t,e){var i=Lt(this.config.selectors.display[t],e),r=It("div",Pt(i,{class:"".concat(i.class?i.class:""," ").concat(this.config.classNames.display.time," ").trim(),"aria-label":me(t,this.config)}),"00:00");return this.elements.display[t]=r,r},bindMenuItemShortcuts:function(t,e){var i=this;Yt.call(this,t,"keydown keyup",(function(r){if([32,38,39,40].includes(r.which)&&(r.preventDefault(),r.stopPropagation(),"keydown"!==r.type)){var o,n=Dt(t,'[role="menuitemradio"]');!n&&[32,39].includes(r.which)?Te.showMenuPanel.call(i,e,!0):32!==r.which&&(40===r.which||n&&39===r.which?mt(o=t.nextElementSibling)||(o=t.parentNode.firstElementChild):mt(o=t.previousElementSibling)||(o=t.parentNode.lastElementChild),Vt.call(i,o,!0))}}),!1),Yt.call(this,t,"keyup",(function(t){13===t.which&&Te.focusFirstMenuItem.call(i,null,!0)}))},createMenuItem:function(t){var e=this,i=t.value,r=t.list,o=t.type,n=t.title,a=t.badge,l=void 0===a?null:a,s=t.checked,p=void 0!==s&&s,u=Lt(this.config.selectors.inputs[o]),c=It("button",Pt(u,{type:"button",role:"menuitemradio",class:"".concat(this.config.classNames.control," ").concat(u.class?u.class:"").trim(),"aria-checked":p,value:i})),d=It("span");d.innerHTML=n,mt(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 Dt(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(!_t(t)||32===t.which){switch(t.preventDefault(),t.stopPropagation(),c.checked=!0,o){case"language":e.currentTrack=Number(i);break;case"quality":e.quality=i;break;case"speed":e.speed=parseFloat(i)}Te.showMenuPanel.call(e,"home",_t(t))}}),o,!1),Te.bindMenuItemShortcuts.call(this,c,o),r.appendChild(c)},formatTime:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return dt(t)?ze(t,ke(this.duration)>0,e):t},updateTimeDisplay:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];mt(t)&&dt(e)&&(t.innerText=Te.formatTime(e,i))},updateVolume:function(){this.supported.ui&&(mt(this.elements.inputs.volume)&&Te.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),mt(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||0===this.volume))},setRange:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;mt(t)&&(t.value=e,Te.updateRangeFill.call(this,t))},updateProgress:function(t){var e=this;if(this.supported.ui&&bt(t)){var i=0;if(t)switch(t.type){case"timeupdate":case"seeking":case"seeked":i=function(t,e){return 0===t||0===e||Number.isNaN(t)||Number.isNaN(e)?0:(t/e*100).toFixed(2)}(this.currentTime,this.duration),"timeupdate"===t.type&&Te.setRange.call(this,this.elements.inputs.seek,i);break;case"playing":case"progress":!function(t,i){var r=dt(i)?i:0,o=mt(t)?t:e.elements.display.buffer;if(mt(o)){o.value=r;var n=o.getElementsByTagName("span")[0];mt(n)&&(n.childNodes[0].nodeValue=r)}}(this.elements.display.buffer,100*this.buffered)}}},updateRangeFill:function(t){var e=bt(t)?t.target:t;if(mt(e)&&"range"===e.getAttribute("type")){if(Dt(e,this.config.selectors.inputs.seek)){e.setAttribute("aria-valuenow",this.currentTime);var i=Te.formatTime(this.currentTime),r=Te.formatTime(this.duration),o=me("seekLabel",this.config);e.setAttribute("aria-valuetext",o.replace("{currentTime}",i).replace("{duration}",r))}else if(Dt(e,this.config.selectors.inputs.volume)){var n=100*e.value;e.setAttribute("aria-valuenow",n),e.setAttribute("aria-valuetext","".concat(n.toFixed(1),"%"))}else e.setAttribute("aria-valuenow",e.value);jt.isWebkit&&e.style.setProperty("--value",e.value/e.max*100+"%")}},updateSeekTooltip:function(t){var e=this;if(this.config.tooltips.seek&&mt(this.elements.inputs.seek)&&mt(this.elements.display.seekTooltip)&&0!==this.duration){var i="".concat(this.config.classNames.tooltip,"--visible"),r=function(t){return Rt(e.elements.display.seekTooltip,i,t)};if(this.touch)r(!1);else{var o=0,n=this.elements.progress.getBoundingClientRect();if(bt(t))o=100/n.width*(t.pageX-n.left);else{if(!Bt(this.elements.display.seekTooltip,i))return;o=parseFloat(this.elements.display.seekTooltip.style.left,10)}o<0?o=0:o>100&&(o=100),Te.updateTimeDisplay.call(this,this.elements.display.seekTooltip,this.duration/100*o),this.elements.display.seekTooltip.style.left="".concat(o,"%"),bt(t)&&["mouseenter","mouseleave"].includes(t.type)&&r("mouseenter"===t.type)}}},timeUpdate:function(t){var e=!mt(this.elements.display.duration)&&this.config.invertTime;Te.updateTimeDisplay.call(this,this.elements.display.currentTime,e?this.duration-this.currentTime:this.currentTime,e),t&&"timeupdate"===t.type&&this.media.seeking||Te.updateProgress.call(this,t)},durationUpdate:function(){if(this.supported.ui&&(this.config.invertTime||!this.currentTime)){if(this.duration>=Math.pow(2,32))return Nt(this.elements.display.currentTime,!0),void Nt(this.elements.progress,!0);mt(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);var t=mt(this.elements.display.duration);!t&&this.config.displayDuration&&this.paused&&Te.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),t&&Te.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),Te.updateSeekTooltip.call(this)}},toggleMenuButton:function(t,e){Nt(this.elements.settings.buttons[t],!e)},updateSetting:function(t,e,i){var r=this.elements.settings.panels[t],o=null,n=e;if("captions"===t)o=this.currentTrack;else{if(o=xt(i)?this[t]:i,xt(o)&&(o=this.config[t].default),!xt(this.options[t])&&!this.options[t].includes(o))return void this.debug.warn("Unsupported value of '".concat(o,"' for ").concat(t));if(!this.config[t].options.includes(o))return void this.debug.warn("Disabled value of '".concat(o,"' for ").concat(t))}if(mt(n)||(n=r&&r.querySelector('[role="menu"]')),mt(n)){this.elements.settings.buttons[t].querySelector(".".concat(this.config.classNames.menu.value)).innerHTML=Te.getLabel.call(this,t,o);var a=n&&n.querySelector('[value="'.concat(o,'"]'));mt(a)&&(a.checked=!0)}},getLabel:function(t,e){switch(t){case"speed":return 1===e?me("normal",this.config):"".concat(e,"×");case"quality":if(dt(e)){if(0===e)return me("auto",this.config);var i=me("qualityLabel.".concat(e),this.config);return i.length?i:"".concat(e,"p")}return ve(e);case"captions":return Pe.getLabel.call(this);default:return null}},setQualityMenu:function(t){var e=this;if(mt(this.elements.settings.panels.quality)){var i="quality",r=this.elements.settings.panels.quality.querySelector('[role="menu"]');ft(t)&&(this.options.quality=ee(t).filter((function(t){return e.config.quality.options.includes(t)})));var o=!xt(this.options.quality)&&this.options.quality.length>1;if(Te.toggleMenuButton.call(this,i,o),Et(r),Te.checkMenu.call(this),o){var n=function(t){var i=me("qualityBadge.".concat(t),e.config);return i.length?Te.createBadge.call(e,i):null};this.options.quality.sort((function(t,i){var r=e.config.quality.options;return r.indexOf(t)>r.indexOf(i)?1:-1})).forEach((function(t){Te.createMenuItem.call(e,{value:t,list:r,type:i,title:Te.getLabel.call(e,"quality",t),badge:n(t)})})),Te.updateSetting.call(this,i,r)}}},setCaptionsMenu:function(){var t=this;if(mt(this.elements.settings.panels.captions)){var e="captions",i=this.elements.settings.panels.captions.querySelector('[role="menu"]'),r=Pe.getTracks.call(this),o=Boolean(r.length);if(Te.toggleMenuButton.call(this,e,o),Et(i),Te.checkMenu.call(this),o){var n=r.map((function(e,r){return{value:r,checked:t.captions.toggled&&t.currentTrack===r,title:Pe.getLabel.call(t,e),badge:e.language&&Te.createBadge.call(t,e.language.toUpperCase()),list:i,type:"language"}}));n.unshift({value:-1,checked:!this.captions.toggled,title:me("disabled",this.config),list:i,type:"language"}),n.forEach(Te.createMenuItem.bind(this)),Te.updateSetting.call(this,e,i)}}},setSpeedMenu:function(){var t=this;if(mt(this.elements.settings.panels.speed)){var e="speed",i=this.elements.settings.panels.speed.querySelector('[role="menu"]');this.options.speed=this.options.speed.filter((function(e){return e>=t.minimumSpeed&&e<=t.maximumSpeed}));var r=!xt(this.options.speed)&&this.options.speed.length>1;Te.toggleMenuButton.call(this,e,r),Et(i),Te.checkMenu.call(this),r&&(this.options.speed.forEach((function(r){Te.createMenuItem.call(t,{value:r,list:i,type:e,title:Te.getLabel.call(t,"speed",r)})})),Te.updateSetting.call(this,e,i))}},checkMenu:function(){var t=this.elements.settings.buttons,e=!xt(t)&&Object.values(t).some((function(t){return!t.hidden}));Nt(this.elements.settings.menu,!e)},focusFirstMenuItem:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.elements.settings.popup.hidden){var i=t;mt(i)||(i=Object.values(this.elements.settings.panels).find((function(t){return!t.hidden})));var r=i.querySelector('[role^="menuitem"]');Vt.call(this,r,e)}},toggleMenu:function(t){var e=this.elements.settings.popup,i=this.elements.buttons.settings;if(mt(e)&&mt(i)){var r=e.hidden,o=r;if(vt(t))o=t;else if(_t(t)&&27===t.which)o=!1;else if(bt(t)){var n=yt(t.composedPath)?t.composedPath()[0]:t.target,a=e.contains(n);if(a||!a&&t.target!==i&&o)return}i.setAttribute("aria-expanded",o),Nt(e,!o),Rt(this.elements.container,this.config.classNames.menu.open,o),o&&_t(t)?Te.focusFirstMenuItem.call(this,null,!0):o||r||Vt.call(this,i,_t(t))}},getMenuSize:function(t){var e=t.cloneNode(!0);e.style.position="absolute",e.style.opacity=0,e.removeAttribute("hidden"),t.parentNode.appendChild(e);var i=e.scrollWidth,r=e.scrollHeight;return Mt(e),{width:i,height:r}},showMenuPanel:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.elements.container.querySelector("#plyr-settings-".concat(this.id,"-").concat(e));if(mt(r)){var o=r.parentNode,n=Array.from(o.children).find((function(t){return!t.hidden}));if(Ut.transitions&&!Ut.reducedMotion){o.style.width="".concat(n.scrollWidth,"px"),o.style.height="".concat(n.scrollHeight,"px");var a=Te.getMenuSize.call(this,r),l=function e(i){i.target===o&&["width","height"].includes(i.propertyName)&&(o.style.width="",o.style.height="",Jt.call(t,o,zt,e))};Yt.call(this,o,zt,l),o.style.width="".concat(a.width,"px"),o.style.height="".concat(a.height,"px")}Nt(n,!0),Nt(r,!1),Te.focusFirstMenuItem.call(this,r,i)}},setDownloadUrl:function(){var t=this.elements.buttons.download;mt(t)&&t.setAttribute("href",this.download)},create:function(t){var e=this,i=Te.bindMenuItemShortcuts,r=Te.createButton,o=Te.createProgress,n=Te.createRange,a=Te.createTime,l=Te.setQualityMenu,s=Te.setSpeedMenu,p=Te.showMenuPanel;this.elements.controls=null,ft(this.config.controls)&&this.config.controls.includes("play-large")&&this.elements.container.appendChild(r.call(this,"play-large"));var u=It("div",Lt(this.config.selectors.controls.wrapper));this.elements.controls=u;var c={class:"plyr__controls__item"};return ee(ft(this.config.controls)?this.config.controls:[]).forEach((function(l){if("restart"===l&&u.appendChild(r.call(e,"restart",c)),"rewind"===l&&u.appendChild(r.call(e,"rewind",c)),"play"===l&&u.appendChild(r.call(e,"play",c)),"fast-forward"===l&&u.appendChild(r.call(e,"fast-forward",c)),"progress"===l){var s=It("div",{class:"".concat(c.class," plyr__progress__container")}),d=It("div",Lt(e.config.selectors.progress));if(d.appendChild(n.call(e,"seek",{id:"plyr-seek-".concat(t.id)})),d.appendChild(o.call(e,"buffer")),e.config.tooltips.seek){var h=It("span",{class:e.config.classNames.tooltip},"00:00");d.appendChild(h),e.elements.display.seekTooltip=h}e.elements.progress=d,s.appendChild(e.elements.progress),u.appendChild(s)}if("current-time"===l&&u.appendChild(a.call(e,"currentTime",c)),"duration"===l&&u.appendChild(a.call(e,"duration",c)),"mute"===l||"volume"===l){var v=e.elements.volume;mt(v)&&u.contains(v)||(v=It("div",Pt({},c,{class:"".concat(c.class," plyr__volume").trim()})),e.elements.volume=v,u.appendChild(v)),"mute"===l&&v.appendChild(r.call(e,"mute")),"volume"!==l||jt.isIos||v.appendChild(n.call(e,"volume",Pt({max:1,step:.05,value:e.config.volume},{id:"plyr-volume-".concat(t.id)})))}if("captions"===l&&u.appendChild(r.call(e,"captions",c)),"settings"===l&&!xt(e.config.settings)){var y=It("div",Pt({},c,{class:"".concat(c.class," plyr__menu").trim(),hidden:""}));y.appendChild(r.call(e,"settings",{"aria-haspopup":!0,"aria-controls":"plyr-settings-".concat(t.id),"aria-expanded":!1}));var f=It("div",{class:"plyr__menu__container",id:"plyr-settings-".concat(t.id),hidden:""}),g=It("div"),m=It("div",{id:"plyr-settings-".concat(t.id,"-home")}),b=It("div",{role:"menu"});m.appendChild(b),g.appendChild(m),e.elements.settings.panels.home=m,e.config.settings.forEach((function(r){var o=It("button",Pt(Lt(e.config.selectors.buttons.settings),{type:"button",class:"".concat(e.config.classNames.control," ").concat(e.config.classNames.control,"--forward"),role:"menuitem","aria-haspopup":!0,hidden:""}));i.call(e,o,r),Yt.call(e,o,"click",(function(){p.call(e,r,!1)}));var n=It("span",null,me(r,e.config)),a=It("span",{class:e.config.classNames.menu.value});a.innerHTML=t[r],n.appendChild(a),o.appendChild(n),b.appendChild(o);var l=It("div",{id:"plyr-settings-".concat(t.id,"-").concat(r),hidden:""}),s=It("button",{type:"button",class:"".concat(e.config.classNames.control," ").concat(e.config.classNames.control,"--back")});s.appendChild(It("span",{"aria-hidden":!0},me(r,e.config))),s.appendChild(It("span",{class:e.config.classNames.hidden},me("menuBack",e.config))),Yt.call(e,l,"keydown",(function(t){37===t.which&&(t.preventDefault(),t.stopPropagation(),p.call(e,"home",!0))}),!1),Yt.call(e,s,"click",(function(){p.call(e,"home",!1)})),l.appendChild(s),l.appendChild(It("div",{role:"menu"})),g.appendChild(l),e.elements.settings.buttons[r]=o,e.elements.settings.panels[r]=l})),f.appendChild(g),y.appendChild(f),u.appendChild(y),e.elements.settings.popup=f,e.elements.settings.menu=y}if("pip"===l&&Ut.pip&&u.appendChild(r.call(e,"pip",c)),"airplay"===l&&Ut.airplay&&u.appendChild(r.call(e,"airplay",c)),"download"===l){var _=Pt({},c,{element:"a",href:e.download,target:"_blank"});e.isHTML5&&(_.download=""),!kt(e.config.urls.download)&&e.isEmbed&&Pt(_,{icon:"logo-".concat(e.provider),label:e.provider}),u.appendChild(r.call(e,"download",_))}"fullscreen"===l&&u.appendChild(r.call(e,"fullscreen",c))})),this.isHTML5&&l.call(this,ue.getQualityOptions.call(this)),s.call(this),u},inject:function(){var t=this;if(this.config.loadSprite){var e=Te.getIconUrl.call(this);e.cors&&we(e.url,"sprite-plyr")}this.id=Math.floor(1e4*Math.random());var i=null;this.elements.controls=null;var r,n={id:this.id,seektime:this.config.seekTime,title:this.config.title},a=!0;if(yt(this.config.controls)&&(this.config.controls=this.config.controls.call(this,n)),this.config.controls||(this.config.controls=[]),mt(this.config.controls)||ht(this.config.controls)?i=this.config.controls:(i=Te.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:Pe.getLabel.call(this)}),a=!1),a&&ht(this.config.controls)&&(i=function(t){var e=t;return Object.entries(n).forEach((function(t){var i=o(t,2),r=i[1];e=he(e,"{".concat(i[0],"}"),r)})),e}(i)),ht(this.config.selectors.controls.container)&&(r=document.querySelector(this.config.selectors.controls.container)),mt(r)||(r=this.elements.container),r[mt(i)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",i),mt(this.elements.controls)||Te.findElements.call(this),!xt(this.elements.buttons)){var l=function(e){var i=t.config.classNames.controlPressed;Object.defineProperty(e,"pressed",{enumerable:!0,get:function(){return Bt(e,i)},set:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Rt(e,i,t)}})};Object.values(this.elements.buttons).filter(Boolean).forEach((function(t){ft(t)||gt(t)?Array.from(t).filter(Boolean).forEach(l):l(t)}))}if(jt.isEdge&&Tt(r),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=qt.call(this,c);Array.from(d).forEach((function(e){Rt(e,t.config.classNames.hidden,!1),Rt(e,t.config.classNames.tooltip,!0)}))}}};function je(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=t;if(e){var r=document.createElement("a");r.href=i,i=r.href}try{return new URL(i)}catch(t){return null}}function Se(t){var e=new URLSearchParams;return ct(t)&&Object.entries(t).forEach((function(t){var i=o(t,2);e.set(i[0],i[1])})),e}var Pe={setup:function(){if(this.supported.ui)if(!this.isVideo||this.isYouTube||this.isHTML5&&!Ut.textTracks)ft(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&Te.setCaptionsMenu.call(this);else{if(mt(this.elements.captions)||(this.elements.captions=It("div",Lt(this.config.selectors.captions)),function(t,e){mt(t)&&mt(e)&&e.parentNode.insertBefore(t,e.nextSibling)}(this.elements.captions,this.elements.wrapper)),jt.isIE&&window.URL){var t=this.media.querySelectorAll("track");Array.from(t).forEach((function(t){var e=t.getAttribute("src"),i=je(e);null!==i&&i.hostname!==window.location.href.hostname&&["http:","https:"].includes(i.protocol)&&_e(e,"blob").then((function(e){t.setAttribute("src",window.URL.createObjectURL(e))})).catch((function(){Mt(t)}))}))}var e=ee((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=o(e,1)[0]);var r=this.storage.get("captions");vt(r)||(r=this.config.captions.active),Object.assign(this.captions,{toggled:!1,active:r,language:i,languages:e}),this.isHTML5&&Yt.call(this,this.media.textTracks,this.config.captions.update?"addtrack removetrack":"removetrack",Pe.update.bind(this)),setTimeout(Pe.update.bind(this),0)}},update:function(){var t=this,e=Pe.getTracks.call(this,!0),i=this.captions,r=i.active,o=i.language,n=i.meta,a=i.currentTrackNode,l=Boolean(e.find((function(t){return t.language===o})));this.isHTML5&&this.isVideo&&e.filter((function(t){return!n.get(t)})).forEach((function(e){t.debug.log("Track added",e),n.set(e,{default:"showing"===e.mode}),"showing"===e.mode&&(e.mode="hidden"),Yt.call(t,e,"cuechange",(function(){return Pe.updateCues.call(t)}))})),(l&&this.language!==o||!e.includes(a))&&(Pe.setLanguage.call(this,o),Pe.toggle.call(this,r&&l)),Rt(this.elements.container,this.config.classNames.captions.enabled,!xt(e)),ft(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&Te.setCaptionsMenu.call(this)},toggle:function(t){var e=this,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.supported.ui){var r=this.captions.toggled,o=this.config.classNames.captions.active,n=ut(t)?!r:t;if(n!==r){if(i||(this.captions.active=n,this.storage.set({captions:n})),!this.language&&n&&!i){var a=Pe.getTracks.call(this),l=Pe.findTrack.call(this,[this.captions.language].concat(u(this.captions.languages)),!0);return this.captions.language=l.language,void Pe.set.call(this,a.indexOf(l))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=n),Rt(this.elements.container,o,n),this.captions.toggled=n,Te.updateSetting.call(this,"captions"),Kt.call(this,this.media,n?"captionsenabled":"captionsdisabled")}setTimeout((function(){n&&e.captions.toggled&&e.captions.currentTrackNode&&(e.captions.currentTrackNode.mode="hidden")}))}},set:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=Pe.getTracks.call(this);if(-1!==t)if(dt(t))if(t in i){if(this.captions.currentTrack!==t){this.captions.currentTrack=t;var r=i[t],o=r||{},n=o.language;this.captions.currentTrackNode=r,Te.updateSetting.call(this,"captions"),e||(this.captions.language=n,this.storage.set({language:n})),this.isVimeo&&this.embed.enableTextTrack(n),Kt.call(this,this.media,"languagechange")}Pe.toggle.call(this,!0,e),this.isHTML5&&this.isVideo&&Pe.updateCues.call(this)}else this.debug.warn("Track not found",t);else this.debug.warn("Invalid caption argument",t);else Pe.toggle.call(this,!1,e)},setLanguage:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(ht(t)){var i=t.toLowerCase();this.captions.language=i;var r=Pe.getTracks.call(this),o=Pe.findTrack.call(this,[i]);Pe.set.call(this,r.indexOf(o),e)}else this.debug.warn("Invalid language argument",t)},getTracks:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Array.from((this.media||{}).textTracks||[]).filter((function(i){return!t.isHTML5||e||t.captions.meta.has(i)})).filter((function(t){return["captions","subtitles"].includes(t.kind)}))},findTrack:function(t){var e,i=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=Pe.getTracks.call(this),n=function(t){return Number((i.captions.meta.get(t)||{}).default)},a=Array.from(o).sort((function(t,e){return n(e)-n(t)}));return t.every((function(t){return!(e=a.find((function(e){return e.language===t})))})),e||(r?a[0]:void 0)},getCurrentTrack:function(){return Pe.getTracks.call(this)[this.currentTrack]},getLabel:function(t){var e=t;return!wt(e)&&Ut.textTracks&&this.captions.toggled&&(e=Pe.getCurrentTrack.call(this)),wt(e)?xt(e.label)?xt(e.language)?me("enabled",this.config):t.language.toUpperCase():e.label:me("disabled",this.config)},updateCues:function(t){if(this.supported.ui)if(mt(this.elements.captions))if(ut(t)||Array.isArray(t)){var e=t;if(!e){var i=Pe.getCurrentTrack.call(this);e=Array.from((i||{}).activeCues||[]).map((function(t){return t.getCueAsHTML()})).map(fe)}var r=e.map((function(t){return t.trim()})).join("\n");if(r!==this.elements.captions.innerHTML){Et(this.elements.captions);var o=It("span",Lt(this.config.selectors.caption));o.innerHTML=r,this.elements.captions.appendChild(o),Kt.call(this,this.media,"cuechange")}}else this.debug.warn("updateCues: Invalid input",t);else this.debug.warn("No captions element to render to")}},Ce={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}},Oe={html5:"html5",youtube:"youtube",vimeo:"vimeo"},Ie=function(){},Ae=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];p(this,t),this.enabled=window.console&&e,this.enabled&&this.log("Debugging enabled")}return l(t,[{key:"log",get:function(){return this.enabled?Function.prototype.bind.call(console.log,console):Ie}},{key:"warn",get:function(){return this.enabled?Function.prototype.bind.call(console.warn,console):Ie}},{key:"error",get:function(){return this.enabled?Function.prototype.bind.call(console.error,console):Ie}}]),t}(),Me=function(){function t(e){var i=this;p(this,t),M(this,"onChange",(function(){if(i.enabled){var t=i.player.elements.buttons.fullscreen;mt(t)&&(t.pressed=i.active),Kt.call(i.player,i.target===i.player.media?i.target:i.player.elements.container,i.active?"enterfullscreen":"exitfullscreen",!0)}})),M(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":"",Rt(i.target,i.player.config.classNames.fullscreen.fallback,t),jt.isIos){var e=document.head.querySelector('meta[name="viewport"]'),r="viewport-fit=cover";e||(e=document.createElement("meta")).setAttribute("name","viewport");var o=ht(e.content)&&e.content.includes(r);t?(i.cleanupViewport=!o,o||(e.content+=",".concat(r))):i.cleanupViewport&&(e.content=e.content.split(",").filter((function(t){return t.trim()!==r})).join(","))}i.onChange()})),M(this,"trapFocus",(function(t){if(!jt.isIos&&i.active&&"Tab"===t.key&&9===t.keyCode){var e=document.activeElement,r=qt.call(i.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),n=o(r,1)[0],a=r[r.length-1];e!==a||t.shiftKey?e===n&&t.shiftKey&&(a.focus(),t.preventDefault()):(n.focus(),t.preventDefault())}})),M(this,"update",(function(){i.player.debug.log(i.enabled?"".concat(i.forceFallback?"Fallback (forced)":t.native?"Native":"Fallback"," fullscreen enabled"):"Fullscreen not supported and fallback disabled"),Rt(i.player.elements.container,i.player.config.classNames.fullscreen.enabled,i.enabled)})),M(this,"enter",(function(){i.enabled&&(jt.isIos&&i.player.config.fullscreen.iosNative?i.player.isVimeo?i.player.embed.requestFullscreen():i.target.webkitEnterFullscreen():!t.native||i.forceFallback?i.toggleFallback(!0):i.prefix?xt(i.prefix)||i.target["".concat(i.prefix,"Request").concat(i.property)]():i.target.requestFullscreen({navigationUI:"hide"}))})),M(this,"exit",(function(){if(i.enabled)if(jt.isIos&&i.player.config.fullscreen.iosNative)i.target.webkitExitFullscreen(),te(i.player.play());else if(!t.native||i.forceFallback)i.toggleFallback(!1);else if(i.prefix){if(!xt(i.prefix)){var e="moz"===i.prefix?"Cancel":"Exit";document["".concat(i.prefix).concat(e).concat(i.property)]()}}else(document.cancelFullScreen||document.exitFullscreen).call(document)})),M(this,"toggle",(function(){i.active?i.exit():i.enter()})),this.player=e,this.prefix=t.prefix,this.property=t.property,this.scrollPosition={x:0,y:0},this.forceFallback="force"===e.config.fullscreen.fallback,this.player.elements.fullscreen=e.config.fullscreen.container&&function(t,e){return(Element.prototype.closest||function(){var t=this;do{if(Dt.matches(t,e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null}).call(t,e)}(this.player.elements.container,e.config.fullscreen.container),Yt.call(this.player,document,"ms"===this.prefix?"MSFullscreenChange":"".concat(this.prefix,"fullscreenchange"),(function(){i.onChange()})),Yt.call(this.player,this.player.elements.container,"dblclick",(function(t){mt(i.player.elements.controls)&&i.player.elements.controls.contains(t.target)||i.player.listeners.proxy(t,i.toggle,"fullscreen")})),Yt.call(this,this.player.elements.container,"keydown",(function(t){return i.trapFocus(t)})),this.update()}return l(t,[{key:"usingNative",get:function(){return t.native&&!this.forceFallback}},{key:"enabled",get:function(){return(t.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(!t.native||this.forceFallback)return Bt(this.target,this.player.config.classNames.fullscreen.fallback);var e=this.prefix?document["".concat(this.prefix).concat(this.property,"Element")]:document.fullscreenElement;return e&&e.shadowRoot?e===this.target.getRootNode().host:e===this.target}},{key:"target",get:function(){return jt.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(yt(document.exitFullscreen))return"";var t="";return["webkit","moz","ms"].some((function(e){return!(!yt(document["".concat(e,"ExitFullscreen")])&&!yt(document["".concat(e,"CancelFullScreen")])||(t=e,0))})),t}},{key:"property",get:function(){return"moz"===this.prefix?"FullScreen":"Fullscreen"}}]),t}();function Ee(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Promise((function(i,r){var o=new Image,n=function(){delete o.onload,delete o.onerror,(o.naturalWidth>=e?i:r)(o)};Object.assign(o,{onload:n,onerror:n,src:t})}))}var Fe={addStyleHook:function(){Rt(this.elements.container,this.config.selectors.container.replace(".",""),!0),Rt(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 Fe.toggleNativeControls.call(this,!0);mt(this.elements.controls)||(Te.inject.call(this),this.listeners.controls()),Fe.toggleNativeControls.call(this),this.isHTML5&&Pe.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,Te.updateVolume.call(this),Te.timeUpdate.call(this),Fe.checkPlaying.call(this),Rt(this.elements.container,this.config.classNames.pip.supported,Ut.pip&&this.isHTML5&&this.isVideo),Rt(this.elements.container,this.config.classNames.airplay.supported,Ut.airplay&&this.isHTML5),Rt(this.elements.container,this.config.classNames.isIos,jt.isIos),Rt(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout((function(){Kt.call(t,t.media,"ready")}),0),Fe.setTitle.call(this),this.poster&&Fe.setPoster.call(this,this.poster,!1).catch((function(){})),this.config.duration&&Te.durationUpdate.call(this)},setTitle:function(){var t=me("play",this.config);if(ht(this.config.title)&&!xt(this.config.title)&&(t+=", ".concat(this.config.title)),Array.from(this.elements.buttons.play||[]).forEach((function(e){e.setAttribute("aria-label",t)})),this.isEmbed){var e=Ht.call(this,"iframe");if(!mt(e))return;var i=xt(this.config.title)?"video":this.config.title,r=me("frameTitle",this.config);e.setAttribute("title",r.replace("{title}",i))}},togglePoster:function(t){Rt(this.elements.container,this.config.classNames.posterEnabled,t)},setPoster:function(t){var e=this,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return i&&this.poster?Promise.reject(new Error("Poster already set")):(this.media.setAttribute("data-poster",t),this.elements.poster.removeAttribute("hidden"),Zt.call(this).then((function(){return Ee(t)})).catch((function(i){throw t===e.poster&&Fe.togglePoster.call(e,!1),i})).then((function(){if(t!==e.poster)throw new Error("setPoster cancelled by later call to setPoster")})).then((function(){return Object.assign(e.elements.poster.style,{backgroundImage:"url('".concat(t,"')"),backgroundSize:""}),Fe.togglePoster.call(e,!0),t})))},checkPlaying:function(t){var e=this;Rt(this.elements.container,this.config.classNames.playing,this.playing),Rt(this.elements.container,this.config.classNames.paused,this.paused),Rt(this.elements.container,this.config.classNames.stopped,this.stopped),Array.from(this.elements.buttons.play||[]).forEach((function(t){Object.assign(t,{pressed:e.playing}),t.setAttribute("aria-label",me(e.playing?"pause":"play",e.config))})),bt(t)&&"timeupdate"===t.type||Fe.toggleControls.call(this)},checkLoading:function(t){var e=this;this.loading=["stalled","waiting"].includes(t.type),clearTimeout(this.timers.loading),this.timers.loading=setTimeout((function(){Rt(e.elements.container,e.config.classNames.loading,e.loading),Fe.toggleControls.call(e)}),this.loading?250:0)},toggleControls:function(t){var e=this.elements.controls;if(e&&this.config.hideControls){var i=this.touch&&this.lastSeekTime+2e3>Date.now();this.toggleControls(Boolean(t||this.loading||this.paused||e.pressed||e.hover||i))}},migrateStyles:function(){var t=this;Object.values(n({},this.media.style)).filter((function(t){return!xt(t)&&ht(t)&&t.startsWith("--plyr")})).forEach((function(e){t.elements.container.style.setProperty(e,t.media.style.getPropertyValue(e)),t.media.style.removeProperty(e)})),xt(this.media.style)&&this.media.removeAttribute("style")}},Le=function(){function t(e){var i=this;p(this,t),M(this,"firstTouch",(function(){var t=i.player,e=t.elements;t.touch=!0,Rt(e.container,t.config.classNames.isTouch,!0)})),M(this,"setTabFocus",(function(t){var e=i.player,r=e.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=e.config.classNames.tabFocus;Rt(qt.call(e,".".concat(t)),t,!1)}(),"focusout"!==t.type&&(i.focusTimer=setTimeout((function(){var t=document.activeElement;r.container.contains(t)&&Rt(document.activeElement,e.config.classNames.tabFocus,!0)}),10))))})),M(this,"global",(function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=i.player;e.config.keyboard.global&&Wt.call(e,window,"keydown keyup",i.handleKey,t,!1),Wt.call(e,document.body,"click",i.toggleMenu,t),Gt.call(e,document.body,"touchstart",i.firstTouch),Wt.call(e,document.body,"keydown focus blur focusout",i.setTabFocus,t,!1,!0)})),M(this,"container",(function(){var t=i.player,e=t.config,r=t.elements,n=t.timers;!e.keyboard.global&&e.keyboard.focused&&Yt.call(t,r.container,"keydown keyup",i.handleKey,!1),Yt.call(t,r.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",(function(e){var i=r.controls;i&&"enterfullscreen"===e.type&&(i.pressed=!1,i.hover=!1);var o=0;["touchstart","touchmove","mousemove"].includes(e.type)&&(Fe.toggleControls.call(t,!0),o=t.touch?3e3:2e3),clearTimeout(n.controls),n.controls=setTimeout((function(){return Fe.toggleControls.call(t,!1)}),o)}));var a=function(){if(t.isVimeo&&!t.config.vimeo.premium){var e=r.wrapper,i=t.fullscreen.active,n=le.call(t),a=o(n,2),l=a[0],s=a[1],p=re("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=o(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(n.resized),n.resized=setTimeout(a,50)};Yt.call(t,r.container,"enterfullscreen exitfullscreen",(function(e){t.fullscreen.target===r.container&&(!t.isEmbed&&xt(t.config.ratio)||(a(),("enterfullscreen"===e.type?Yt:Jt).call(t,window,"resize",l)))}))})),M(this,"media",(function(){var t=i.player,e=t.elements;if(Yt.call(t,t.media,"timeupdate seeking seeked",(function(e){return Te.timeUpdate.call(t,e)})),Yt.call(t,t.media,"durationchange loadeddata loadedmetadata",(function(e){return Te.durationUpdate.call(t,e)})),Yt.call(t,t.media,"ended",(function(){t.isHTML5&&t.isVideo&&t.config.resetOnEnd&&(t.restart(),t.pause())})),Yt.call(t,t.media,"progress playing seeking seeked",(function(e){return Te.updateProgress.call(t,e)})),Yt.call(t,t.media,"volumechange",(function(e){return Te.updateVolume.call(t,e)})),Yt.call(t,t.media,"playing play pause ended emptied timeupdate",(function(e){return Fe.checkPlaying.call(t,e)})),Yt.call(t,t.media,"waiting canplay seeked playing",(function(e){return Fe.checkLoading.call(t,e)})),t.supported.ui&&t.config.clickToPlay&&!t.isAudio){var r=Ht.call(t,".".concat(t.config.classNames.video));if(!mt(r))return;Yt.call(t,e.container,"click",(function(o){([e.container,r].includes(o.target)||r.contains(o.target))&&(t.touch&&t.config.hideControls||(t.ended?(i.proxy(o,t.restart,"restart"),i.proxy(o,(function(){te(t.play())}),"play")):i.proxy(o,(function(){te(t.togglePlay())}),"play")))}))}t.supported.ui&&t.config.disableContextMenu&&Yt.call(t,e.wrapper,"contextmenu",(function(t){t.preventDefault()}),!1),Yt.call(t,t.media,"volumechange",(function(){t.storage.set({volume:t.volume,muted:t.muted})})),Yt.call(t,t.media,"ratechange",(function(){Te.updateSetting.call(t,"speed"),t.storage.set({speed:t.speed})})),Yt.call(t,t.media,"qualitychange",(function(e){Te.updateSetting.call(t,"quality",null,e.detail.quality)})),Yt.call(t,t.media,"ready qualitychange",(function(){Te.setDownloadUrl.call(t)}));var o=t.config.events.concat(["keyup","keydown"]).join(" ");Yt.call(t,t.media,o,(function(i){var r=i.detail,o=void 0===r?{}:r;"error"===i.type&&(o=t.media.error),Kt.call(t,e.container,i.type,!0,o)}))})),M(this,"proxy",(function(t,e,r){var o=i.player,n=o.config.listeners[r],a=!0;yt(n)&&(a=n.call(o,t)),!1!==a&&yt(e)&&e.call(o,t)})),M(this,"bind",(function(t,e,r,o){var n=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=i.player,l=a.config.listeners[o],s=yt(l);Yt.call(a,t,e,(function(t){return i.proxy(t,r,o)}),n&&!s)})),M(this,"controls",(function(){var t=i.player,e=t.elements,r=jt.isIE?"change":"input";if(e.buttons.play&&Array.from(e.buttons.play).forEach((function(e){i.bind(e,"click",(function(){te(t.togglePlay())}),"play")})),i.bind(e.buttons.restart,"click",t.restart,"restart"),i.bind(e.buttons.rewind,"click",(function(){t.lastSeekTime=Date.now(),t.rewind()}),"rewind"),i.bind(e.buttons.fastForward,"click",(function(){t.lastSeekTime=Date.now(),t.forward()}),"fastForward"),i.bind(e.buttons.mute,"click",(function(){t.muted=!t.muted}),"mute"),i.bind(e.buttons.captions,"click",(function(){return t.toggleCaptions()})),i.bind(e.buttons.download,"click",(function(){Kt.call(t,t.media,"download")}),"download"),i.bind(e.buttons.fullscreen,"click",(function(){t.fullscreen.toggle()}),"fullscreen"),i.bind(e.buttons.pip,"click",(function(){t.pip="toggle"}),"pip"),i.bind(e.buttons.airplay,"click",t.airplay,"airplay"),i.bind(e.buttons.settings,"click",(function(e){e.stopPropagation(),e.preventDefault(),Te.toggleMenu.call(t,e)}),null,!1),i.bind(e.buttons.settings,"keyup",(function(e){var i=e.which;[13,32].includes(i)&&(13!==i?(e.preventDefault(),e.stopPropagation(),Te.toggleMenu.call(t,e)):Te.focusFirstMenuItem.call(t,null,!0))}),null,!1),i.bind(e.settings.menu,"keydown",(function(e){27===e.which&&Te.toggleMenu.call(t,e)})),i.bind(e.inputs.seek,"mousedown mousemove",(function(t){var i=e.progress.getBoundingClientRect();t.currentTarget.setAttribute("seek-value",100/i.width*(t.pageX-i.left))})),i.bind(e.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",(function(e){var i=e.currentTarget,r=e.keyCode?e.keyCode:e.which,o="play-on-seeked";if(!_t(e)||39===r||37===r){t.lastSeekTime=Date.now();var n=i.hasAttribute(o),a=["mouseup","touchend","keyup"].includes(e.type);n&&a?(i.removeAttribute(o),te(t.play())):!a&&t.playing&&(i.setAttribute(o,""),t.pause())}})),jt.isIos){var n=qt.call(t,'input[type="range"]');Array.from(n).forEach((function(t){return i.bind(t,r,(function(t){return Tt(t.target)}))}))}i.bind(e.inputs.seek,r,(function(e){var i=e.currentTarget,r=i.getAttribute("seek-value");xt(r)&&(r=i.value),i.removeAttribute("seek-value"),t.currentTime=r/i.max*t.duration}),"seek"),i.bind(e.progress,"mouseenter mouseleave mousemove",(function(e){return Te.updateSeekTooltip.call(t,e)})),i.bind(e.progress,"mousemove touchmove",(function(e){var i=t.previewThumbnails;i&&i.loaded&&i.startMove(e)})),i.bind(e.progress,"mouseleave touchend click",(function(){var e=t.previewThumbnails;e&&e.loaded&&e.endMove(!1,!0)})),i.bind(e.progress,"mousedown touchstart",(function(e){var i=t.previewThumbnails;i&&i.loaded&&i.startScrubbing(e)})),i.bind(e.progress,"mouseup touchend",(function(e){var i=t.previewThumbnails;i&&i.loaded&&i.endScrubbing(e)})),jt.isWebkit&&Array.from(qt.call(t,'input[type="range"]')).forEach((function(e){i.bind(e,"input",(function(e){return Te.updateRangeFill.call(t,e.target)}))})),t.config.toggleInvert&&!mt(e.display.duration)&&i.bind(e.display.currentTime,"click",(function(){0!==t.currentTime&&(t.config.invertTime=!t.config.invertTime,Te.timeUpdate.call(t))})),i.bind(e.inputs.volume,r,(function(e){t.volume=e.target.value}),"volume"),i.bind(e.controls,"mouseenter mouseleave",(function(i){e.controls.hover=!t.touch&&"mouseenter"===i.type})),e.fullscreen&&Array.from(e.fullscreen.children).filter((function(t){return!t.contains(e.container)})).forEach((function(r){i.bind(r,"mouseenter mouseleave",(function(i){e.controls.hover=!t.touch&&"mouseenter"===i.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 r=t.config,o=t.timers;Rt(e.controls,r.classNames.noTransition,!0),Fe.toggleControls.call(t,!0),setTimeout((function(){Rt(e.controls,r.classNames.noTransition,!1)}),0);var n=i.touch?3e3:4e3;clearTimeout(o.controls),o.controls=setTimeout((function(){return Fe.toggleControls.call(t,!1)}),n)})),i.bind(e.inputs.volume,"wheel",(function(e){var i=e.webkitDirectionInvertedFromDevice,r=[e.deltaX,-e.deltaY].map((function(t){return i?-t:t})),n=o(r,2),a=n[0],l=n[1],s=Math.sign(Math.abs(a)>Math.abs(l)?a:l);t.increaseVolume(s/50);var p=t.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 l(t,[{key:"handleKey",value:function(t){var e=this.player,i=e.elements,r=t.keyCode?t.keyCode:t.which,o="keydown"===t.type,n=o&&r===this.lastKey;if(!(t.altKey||t.ctrlKey||t.metaKey||t.shiftKey)&&dt(r))if(o){var a=document.activeElement;if(mt(a)){if(a!==i.inputs.seek&&Dt(a,e.config.selectors.editable))return;if(32===t.which&&Dt(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(r)&&(t.preventDefault(),t.stopPropagation()),r){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:n||(e.currentTime=e.duration/10*(r-48));break;case 32:case 75:n||te(e.togglePlay());break;case 38:e.increaseVolume(.1);break;case 40:e.decreaseVolume(.1);break;case 77:n||(e.muted=!e.muted);break;case 39:e.forward();break;case 37:e.rewind();break;case 70:e.fullscreen.toggle();break;case 67:n||e.toggleCaptions();break;case 76:e.loop=!e.loop}27===r&&!e.fullscreen.usingNative&&e.fullscreen.active&&e.fullscreen.toggle(),this.lastKey=r}else this.lastKey=null}},{key:"toggleMenu",value:function(t){Te.toggleMenu.call(this.player,t)}}]),t}(),Ne=function(t,e){return function(t){t.exports=function(){var t=function(){},e={},i={},r={};function o(t,e){if(t){var o=r[t];if(i[t]=e,o)for(;o.length;)o[0](t,e),o.splice(0,1)}}function n(e,i){e.call&&(e={success:e}),i.length?(e.error||t)(i):(e.success||t)(e)}function a(e,i,r,o){var n,l,s=document,p=r.async,u=(r.numRetries||0)+1,c=r.before||t,d=e.replace(/[\?|#].*$/,""),h=e.replace(/^(css|img)!/,"");o=o||0,/(^css!|\.css$)/.test(d)?((l=s.createElement("link")).rel="stylesheet",l.href=h,(n="hideFocus"in l)&&l.relList&&(n=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=e,l.async=void 0===p||p),l.onload=l.onerror=l.onbeforeload=function(t){var s=t.type[0];if(n)try{l.sheet.cssText.length||(s="e")}catch(t){18!=t.code&&(s="e")}if("e"==s){if((o+=1)<u)return a(e,i,r,o)}else if("preload"==l.rel&&"style"==l.as)return l.rel="stylesheet";i(e,s,t.defaultPrevented)},!1!==c(e,l)&&s.head.appendChild(l)}function l(t,e,i){var r,o,n=(t=t.push?t:[t]).length,l=n,s=[];for(r=function(t,i,r){if("e"==i&&s.push(t),"b"==i){if(!r)return;s.push(t)}--n||e(s)},o=0;o<l;o++)a(t[o],r,i)}function s(t,i,r){var a,s;if(i&&i.trim&&(a=i),s=(a?r:i)||{},a){if(a in e)throw"LoadJS";e[a]=!0}function p(e,i){l(t,(function(t){n(s,t),e&&n({success:e,error:i},t),o(a,t)}),s)}if(s.returnPromise)return new Promise(p);p()}return s.ready=function(t,e){return function(t,e){var o,n,a,l=[],s=(t=t.push?t:[t]).length,p=s;for(o=function(t,i){i.length&&l.push(t),--p||e(l)};s--;)(a=i[n=t[s]])?o(n,a):(r[n]=r[n]||[]).push(o)}(t,(function(t){n(e,t)})),s},s.done=function(t){o(t,[])},s.reset=function(){e={},i={},r={}},s.isDefined=function(t){return t in e},s}()}(e={exports:{}}),e.exports}();function Re(t){return new Promise((function(e,i){Ne(t,{success:e,error:i})}))}function Be(t){t&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===t&&(this.media.paused=!t,Kt.call(this,this.media,t?"play":"pause"))}var De={setup:function(){var t=this;Rt(t.elements.wrapper,t.config.classNames.embed,!0),t.options.speed=t.config.speed.options,se.call(t),ct(window.Vimeo)?De.ready.call(t):Re(t.config.urls.vimeo.sdk).then((function(){De.ready.call(t)})).catch((function(e){t.debug.warn("Vimeo SDK (player.js) failed to load",e)}))},ready:function(){var t=this,e=this,i=e.config.vimeo,r=i.premium,a=i.referrerPolicy,l=c(i,A);r&&Object.assign(l,{controls:!1,sidedock:!1});var s=Se(n({loop:e.config.loop.active,autoplay:e.autoplay,muted:e.muted,gesture:"media",playsinline:!this.config.fullscreen.iosNative},l)),p=e.media.getAttribute("src");xt(p)&&(p=e.media.getAttribute(e.config.attributes.embed.id));var u=function(t){return xt(t)?null:dt(Number(t))?t:t.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:t}(p),d=It("iframe"),h=de(e.config.urls.vimeo.iframe,u,s);if(d.setAttribute("src",h),d.setAttribute("allowfullscreen",""),d.setAttribute("allow",["autoplay","fullscreen","picture-in-picture","encrypted-media","accelerometer","gyroscope"].join("; ")),xt(a)||d.setAttribute("referrerPolicy",a),r||!i.customControls)d.setAttribute("data-poster",e.poster),e.media=Ft(d,e.media);else{var v=It("div",{class:e.config.classNames.embedContainer,"data-poster":e.poster});v.appendChild(d),e.media=Ft(v,e.media)}i.customControls||_e(de(e.config.urls.vimeo.api,h)).then((function(t){!xt(t)&&t.thumbnail_url&&Fe.setPoster.call(e,t.thumbnail_url).catch((function(){}))})),e.embed=new window.Vimeo.Player(d,{autopause:e.config.autopause,muted:e.muted}),e.media.paused=!0,e.media.currentTime=0,e.supported.ui&&e.embed.disableTextTrack(),e.media.play=function(){return Be.call(e,!0),e.embed.play()},e.media.pause=function(){return Be.call(e,!1),e.embed.pause()},e.media.stop=function(){e.pause(),e.currentTime=0};var y=e.media.currentTime;Object.defineProperty(e.media,"currentTime",{get:function(){return y},set:function(t){var i=e.embed,r=e.media,o=e.volume,n=e.paused&&!i.hasPlayed;r.seeking=!0,Kt.call(e,r,"seeking"),Promise.resolve(n&&i.setVolume(0)).then((function(){return i.setCurrentTime(t)})).then((function(){return n&&i.pause()})).then((function(){return n&&i.setVolume(o)})).catch((function(){}))}});var f=e.config.speed.selected;Object.defineProperty(e.media,"playbackRate",{get:function(){return f},set:function(t){e.embed.setPlaybackRate(t).then((function(){f=t,Kt.call(e,e.media,"ratechange")})).catch((function(){e.options.speed=[1]}))}});var g=e.config.volume;Object.defineProperty(e.media,"volume",{get:function(){return g},set:function(t){e.embed.setVolume(t).then((function(){g=t,Kt.call(e,e.media,"volumechange")}))}});var m=e.config.muted;Object.defineProperty(e.media,"muted",{get:function(){return m},set:function(t){var i=!!vt(t)&&t;e.embed.setVolume(i?0:e.config.volume).then((function(){m=i,Kt.call(e,e.media,"volumechange")}))}});var b,_=e.config.loop;Object.defineProperty(e.media,"loop",{get:function(){return _},set:function(t){var i=vt(t)?t:e.config.loop.active;e.embed.setLoop(i).then((function(){_=i}))}}),e.embed.getVideoUrl().then((function(t){b=t,Te.setDownloadUrl.call(e)})).catch((function(e){t.debug.warn(e)})),Object.defineProperty(e.media,"currentSrc",{get:function(){return b}}),Object.defineProperty(e.media,"ended",{get:function(){return e.currentTime===e.duration}}),Promise.all([e.embed.getVideoWidth(),e.embed.getVideoHeight()]).then((function(i){var r=o(i,2);e.embed.ratio=pe(r[0],r[1]),se.call(t)})),e.embed.setAutopause(e.config.autopause).then((function(t){e.config.autopause=t})),e.embed.getVideoTitle().then((function(i){e.config.title=i,Fe.setTitle.call(t)})),e.embed.getCurrentTime().then((function(t){y=t,Kt.call(e,e.media,"timeupdate")})),e.embed.getDuration().then((function(t){e.media.duration=t,Kt.call(e,e.media,"durationchange")})),e.embed.getTextTracks().then((function(t){e.media.textTracks=t,Pe.setup.call(e)})),e.embed.on("cuechange",(function(t){var i=t.cues,r=(void 0===i?[]:i).map((function(t){return function(t){var e=document.createDocumentFragment(),i=document.createElement("div");return e.appendChild(i),i.innerHTML=t,e.firstChild.innerText}(t.text)}));Pe.updateCues.call(e,r)})),e.embed.on("loaded",(function(){e.embed.getPaused().then((function(t){Be.call(e,!t),t||Kt.call(e,e.media,"playing")})),mt(e.embed.element)&&e.supported.ui&&e.embed.element.setAttribute("tabindex",-1)})),e.embed.on("bufferstart",(function(){Kt.call(e,e.media,"waiting")})),e.embed.on("bufferend",(function(){Kt.call(e,e.media,"playing")})),e.embed.on("play",(function(){Be.call(e,!0),Kt.call(e,e.media,"playing")})),e.embed.on("pause",(function(){Be.call(e,!1)})),e.embed.on("timeupdate",(function(t){e.media.seeking=!1,y=t.seconds,Kt.call(e,e.media,"timeupdate")})),e.embed.on("progress",(function(t){e.media.buffered=t.percent,Kt.call(e,e.media,"progress"),1===parseInt(t.percent,10)&&Kt.call(e,e.media,"canplaythrough"),e.embed.getDuration().then((function(t){t!==e.media.duration&&(e.media.duration=t,Kt.call(e,e.media,"durationchange"))}))})),e.embed.on("seeked",(function(){e.media.seeking=!1,Kt.call(e,e.media,"seeked")})),e.embed.on("ended",(function(){e.media.paused=!0,Kt.call(e,e.media,"ended")})),e.embed.on("error",(function(t){e.media.error=t,Kt.call(e,e.media,"error")})),i.customControls&&setTimeout((function(){return Fe.build.call(e)}),0)}};function qe(t){t&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===t&&(this.media.paused=!t,Kt.call(this,this.media,t?"play":"pause"))}function He(t){return t.noCookie?"https://www.youtube-nocookie.com":"http:"===window.location.protocol?"http://www.youtube.com":void 0}var Ve,$e,Ue,Qe,We,Ye,Je={setup:function(){var t=this;if(Rt(this.elements.wrapper,this.config.classNames.embed,!0),ct(window.YT)&&yt(window.YT.Player))Je.ready.call(this);else{var e=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=function(){yt(e)&&e(),Je.ready.call(t)},Re(this.config.urls.youtube.sdk).catch((function(e){t.debug.warn("YouTube API failed to load",e)}))}},getTitle:function(t){var e=this;_e(de(this.config.urls.youtube.api,t)).then((function(t){if(ct(t)){var i=t.height,r=t.width;e.config.title=t.title,Fe.setTitle.call(e),e.embed.ratio=pe(r,i)}se.call(e)})).catch((function(){se.call(e)}))},ready:function(){var t=this,e=t.config.youtube,i=t.media&&t.media.getAttribute("id");if(xt(i)||!i.startsWith("youtube-")){var r=t.media.getAttribute("src");xt(r)&&(r=t.media.getAttribute(this.config.attributes.embed.id));var o=function(t){return xt(t)?null:t.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/)?RegExp.$2:t}(r),n=It("div",{id:ce(t.provider),"data-poster":e.customControls?t.poster:void 0});if(t.media=Ft(n,t.media),e.customControls){var a=function(t){return"https://i.ytimg.com/vi/".concat(o,"/").concat(t,"default.jpg")};Ee(a("maxres"),121).catch((function(){return Ee(a("sd"),121)})).catch((function(){return Ee(a("hq"))})).then((function(e){return Fe.setPoster.call(t,e.src)})).then((function(e){e.includes("maxres")||(t.elements.poster.style.backgroundSize="cover")})).catch((function(){}))}t.embed=new window.YT.Player(t.media,{videoId:o,host:He(e),playerVars:Pt({},{autoplay:t.config.autoplay?1:0,hl:t.config.hl,controls:t.supported.ui&&e.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},e),events:{onError:function(e){if(!t.media.error){var i=e.data;t.media.error={code:i,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."}[i]||"An unknown error occured"},Kt.call(t,t.media,"error")}},onPlaybackRateChange:function(e){t.media.playbackRate=e.target.getPlaybackRate(),Kt.call(t,t.media,"ratechange")},onReady:function(i){if(!yt(t.media.play)){var r=i.target;Je.getTitle.call(t,o),t.media.play=function(){qe.call(t,!0),r.playVideo()},t.media.pause=function(){qe.call(t,!1),r.pauseVideo()},t.media.stop=function(){r.stopVideo()},t.media.duration=r.getDuration(),t.media.paused=!0,t.media.currentTime=0,Object.defineProperty(t.media,"currentTime",{get:function(){return Number(r.getCurrentTime())},set:function(e){t.paused&&!t.embed.hasPlayed&&t.embed.mute(),t.media.seeking=!0,Kt.call(t,t.media,"seeking"),r.seekTo(e)}}),Object.defineProperty(t.media,"playbackRate",{get:function(){return r.getPlaybackRate()},set:function(t){r.setPlaybackRate(t)}});var n=t.config.volume;Object.defineProperty(t.media,"volume",{get:function(){return n},set:function(e){r.setVolume(100*(n=e)),Kt.call(t,t.media,"volumechange")}});var a=t.config.muted;Object.defineProperty(t.media,"muted",{get:function(){return a},set:function(e){var i=vt(e)?e:a;a=i,r[i?"mute":"unMute"](),r.setVolume(100*n),Kt.call(t,t.media,"volumechange")}}),Object.defineProperty(t.media,"currentSrc",{get:function(){return r.getVideoUrl()}}),Object.defineProperty(t.media,"ended",{get:function(){return t.currentTime===t.duration}});var l=r.getAvailablePlaybackRates();t.options.speed=l.filter((function(e){return t.config.speed.options.includes(e)})),t.supported.ui&&e.customControls&&t.media.setAttribute("tabindex",-1),Kt.call(t,t.media,"timeupdate"),Kt.call(t,t.media,"durationchange"),clearInterval(t.timers.buffering),t.timers.buffering=setInterval((function(){t.media.buffered=r.getVideoLoadedFraction(),(null===t.media.lastBuffered||t.media.lastBuffered<t.media.buffered)&&Kt.call(t,t.media,"progress"),t.media.lastBuffered=t.media.buffered,1===t.media.buffered&&(clearInterval(t.timers.buffering),Kt.call(t,t.media,"canplaythrough"))}),200),e.customControls&&setTimeout((function(){return Fe.build.call(t)}),50)}},onStateChange:function(i){var r=i.target;switch(clearInterval(t.timers.playing),t.media.seeking&&[1,2].includes(i.data)&&(t.media.seeking=!1,Kt.call(t,t.media,"seeked")),i.data){case-1:Kt.call(t,t.media,"timeupdate"),t.media.buffered=r.getVideoLoadedFraction(),Kt.call(t,t.media,"progress");break;case 0:qe.call(t,!1),t.media.loop?(r.stopVideo(),r.playVideo()):Kt.call(t,t.media,"ended");break;case 1:e.customControls&&!t.config.autoplay&&t.media.paused&&!t.embed.hasPlayed?t.media.pause():(qe.call(t,!0),Kt.call(t,t.media,"playing"),t.timers.playing=setInterval((function(){Kt.call(t,t.media,"timeupdate")}),50),t.media.duration!==r.getDuration()&&(t.media.duration=r.getDuration(),Kt.call(t,t.media,"durationchange")));break;case 2:t.muted||t.embed.unMute(),qe.call(t,!1);break;case 3:Kt.call(t,t.media,"waiting")}Kt.call(t,t.elements.container,"statechange",!1,{code:i.data})}}})}}},Ge={setup:function(){this.media?(Rt(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),Rt(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&Rt(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=It("div",{class:this.config.classNames.video}),Ct(this.media,this.elements.wrapper),this.elements.poster=It("div",{class:this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster)),this.isHTML5?ue.setup.call(this):this.isYouTube?Je.setup.call(this):this.isVimeo&&De.setup.call(this)):this.debug.warn("No media element found!")}},Ke=function(){function t(e){var i=this;p(this,t),M(this,"load",(function(){i.enabled&&(ct(window.google)&&ct(window.google.ima)?i.ready():Re(i.player.config.urls.googleIMA.sdk).then((function(){i.ready()})).catch((function(){i.trigger("error",new Error("Google IMA SDK failed to load"))})))})),M(this,"ready",(function(){var t;i.enabled||((t=i).manager&&t.manager.destroy(),t.elements.displayContainer&&t.elements.displayContainer.destroy(),t.elements.container.remove()),i.startSafetyTimer(12e3,"ready()"),i.managerPromise.then((function(){i.clearSafetyTimer("onAdsManagerLoaded()")})),i.listeners(),i.setupIMA()})),M(this,"setupIMA",(function(){i.elements.container=It("div",{class:i.player.config.classNames.ads}),i.player.elements.container.appendChild(i.elements.container),google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),google.ima.settings.setLocale(i.player.config.ads.language),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(i.player.config.playsinline),i.elements.displayContainer=new google.ima.AdDisplayContainer(i.elements.container,i.player.media),i.loader=new google.ima.AdsLoader(i.elements.displayContainer),i.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,(function(t){return i.onAdsManagerLoaded(t)}),!1),i.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,(function(t){return i.onAdError(t)}),!1),i.requestAds()})),M(this,"requestAds",(function(){var t=i.player.elements.container;try{var e=new google.ima.AdsRequest;e.adTagUrl=i.tagUrl,e.linearAdSlotWidth=t.offsetWidth,e.linearAdSlotHeight=t.offsetHeight,e.nonLinearAdSlotWidth=t.offsetWidth,e.nonLinearAdSlotHeight=t.offsetHeight,e.forceNonLinearFullSlot=!1,e.setAdWillPlayMuted(!i.player.muted),i.loader.requestAds(e)}catch(t){i.onAdError(t)}})),M(this,"pollCountdown",(function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!t)return clearInterval(i.countdownTimer),void i.elements.container.removeAttribute("data-badge-text");i.countdownTimer=setInterval((function(){var t=ze(Math.max(i.manager.getRemainingTime(),0)),e="".concat(me("advertisement",i.player.config)," - ").concat(t);i.elements.container.setAttribute("data-badge-text",e)}),100)})),M(this,"onAdsManagerLoaded",(function(t){if(i.enabled){var e=new google.ima.AdsRenderingSettings;e.restoreCustomPlaybackStateOnAdBreakComplete=!0,e.enablePreloading=!0,i.manager=t.getAdsManager(i.player,e),i.cuePoints=i.manager.getCuePoints(),i.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,(function(t){return i.onAdError(t)})),Object.keys(google.ima.AdEvent.Type).forEach((function(t){i.manager.addEventListener(google.ima.AdEvent.Type[t],(function(t){return i.onAdEvent(t)}))})),i.trigger("loaded")}})),M(this,"addCuePoints",(function(){xt(i.cuePoints)||i.cuePoints.forEach((function(t){if(0!==t&&-1!==t&&t<i.player.duration){var e=i.player.elements.progress;if(mt(e)){var r=100/i.player.duration*t,o=It("span",{class:i.player.config.classNames.cues});o.style.left="".concat(r.toString(),"%"),e.appendChild(o)}}}))})),M(this,"onAdEvent",(function(t){var e=i.player.elements.container,r=t.getAd(),o=t.getAdData();switch(function(t){Kt.call(i.player,i.player.media,"ads".concat(t.replace(/_/g,"").toLowerCase()))}(t.type),t.type){case google.ima.AdEvent.Type.LOADED:i.trigger("loaded"),i.pollCountdown(!0),r.isLinear()||(r.width=e.offsetWidth,r.height=e.offsetHeight);break;case google.ima.AdEvent.Type.STARTED:i.manager.setVolume(i.player.volume);break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:i.player.ended?i.loadAds():i.loader.contentComplete();break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:i.pauseContent();break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:i.pollCountdown(),i.resumeContent();break;case google.ima.AdEvent.Type.LOG:o.adError&&i.player.debug.warn("Non-fatal ad error: ".concat(o.adError.getMessage()))}})),M(this,"onAdError",(function(t){i.cancel(),i.player.debug.warn("Ads error",t)})),M(this,"listeners",(function(){var t,e=i.player.elements.container;i.player.on("canplay",(function(){i.addCuePoints()})),i.player.on("ended",(function(){i.loader.contentComplete()})),i.player.on("timeupdate",(function(){t=i.player.currentTime})),i.player.on("seeked",(function(){var e=i.player.currentTime;xt(i.cuePoints)||i.cuePoints.forEach((function(r,o){t<r&&r<e&&(i.manager.discardAdBreak(),i.cuePoints.splice(o,1))}))})),window.addEventListener("resize",(function(){i.manager&&i.manager.resize(e.offsetWidth,e.offsetHeight,google.ima.ViewMode.NORMAL)}))})),M(this,"play",(function(){var t=i.player.elements.container;i.managerPromise||i.resumeContent(),i.managerPromise.then((function(){i.manager.setVolume(i.player.volume),i.elements.displayContainer.initialize();try{i.initialized||(i.manager.init(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL),i.manager.start()),i.initialized=!0}catch(t){i.onAdError(t)}})).catch((function(){}))})),M(this,"resumeContent",(function(){i.elements.container.style.zIndex="",i.playing=!1,te(i.player.media.play())})),M(this,"pauseContent",(function(){i.elements.container.style.zIndex=3,i.playing=!0,i.player.media.pause()})),M(this,"cancel",(function(){i.initialized&&i.resumeContent(),i.trigger("error"),i.loadAds()})),M(this,"loadAds",(function(){i.managerPromise.then((function(){i.manager&&i.manager.destroy(),i.managerPromise=new Promise((function(t){i.on("loaded",t),i.player.debug.log(i.manager)})),i.initialized=!1,i.requestAds()})).catch((function(){}))})),M(this,"trigger",(function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];var n=i.events[t];ft(n)&&n.forEach((function(t){yt(t)&&t.apply(i,r)}))})),M(this,"on",(function(t,e){return ft(i.events[t])||(i.events[t]=[]),i.events[t].push(e),i})),M(this,"startSafetyTimer",(function(t,e){i.player.debug.log("Safety timer invoked from: ".concat(e)),i.safetyTimer=setTimeout((function(){i.cancel(),i.clearSafetyTimer("startSafetyTimer()")}),t)})),M(this,"clearSafetyTimer",(function(t){ut(i.safetyTimer)||(i.player.debug.log("Safety timer cleared from: ".concat(t)),clearTimeout(i.safetyTimer),i.safetyTimer=null)})),this.player=e,this.config=e.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,e){i.on("loaded",t),i.on("error",e)})),this.load()}return l(t,[{key:"enabled",get:function(){var t=this.config;return this.player.isHTML5&&this.player.isVideo&&t.enabled&&(!xt(t.publisherId)||kt(t.tagUrl))}},{key:"tagUrl",get:function(){var t=this.config;return kt(t.tagUrl)?t.tagUrl:"https://go.aniview.com/api/adserver6/vast/?".concat(Se({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}(),Xe=function(t){var e=[];return t.split(/\r\n\r\n|\n\n|\r\r/).forEach((function(t){var i={};t.split(/\r\n|\n|\r/).forEach((function(t){if(dt(i.startTime)){if(!xt(t.trim())&&xt(i.text)){var e,r,n,a=t.trim().split("#xywh=");e=o(a,1),i.text=e[0],a[1]&&(r=a[1].split(","),n=o(r,4),i.x=n[0],i.y=n[1],i.w=n[2],i.h=n[3])}}else{var l=t.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},Ze=function(t,e){var i={};return t>e.width/e.height?(i.width=e.width,i.height=1/t*e.width):(i.height=e.height,i.width=t*e.height),i},ti=function(){function t(e){var i=this;p(this,t),M(this,"load",(function(){i.player.elements.display.seekTooltip&&(i.player.elements.display.seekTooltip.hidden=i.enabled),i.enabled&&i.getThumbnails().then((function(){i.enabled&&(i.render(),i.determineContainerAutoSizing(),i.loaded=!0)}))})),M(this,"getThumbnails",(function(){return new Promise((function(t){var e=i.player.config.previewThumbnails.src;if(xt(e))throw new Error("Missing previewThumbnails.src config attribute");var r=function(){i.thumbnails.sort((function(t,e){return t.height-e.height})),i.player.debug.log("Preview thumbnails",i.thumbnails),t()};if(yt(e))e((function(t){i.thumbnails=t,r()}));else{var o=(ht(e)?[e]:e).map((function(t){return i.getThumbnail(t)}));Promise.all(o).then(r)}}))})),M(this,"getThumbnail",(function(t){return new Promise((function(e){_e(t).then((function(r){var o={frames:Xe(r),height:null,urlPrefix:""};o.frames[0].text.startsWith("/")||o.frames[0].text.startsWith("http://")||o.frames[0].text.startsWith("https://")||(o.urlPrefix=t.substring(0,t.lastIndexOf("/")+1));var n=new Image;n.onload=function(){o.height=n.naturalHeight,o.width=n.naturalWidth,i.thumbnails.push(o),e()},n.src=o.urlPrefix+o.frames[0].text}))}))})),M(this,"startMove",(function(t){if(i.loaded&&bt(t)&&["touchmove","mousemove"].includes(t.type)&&i.player.media.duration){if("touchmove"===t.type)i.seekTime=i.player.media.duration*(i.player.elements.inputs.seek.value/100);else{var e=i.player.elements.progress.getBoundingClientRect();i.seekTime=i.player.media.duration*(100/e.width*(t.pageX-e.left)/100),i.seekTime<0&&(i.seekTime=0),i.seekTime>i.player.media.duration-1&&(i.seekTime=i.player.media.duration-1),i.mousePosX=t.pageX,i.elements.thumb.time.innerText=ze(i.seekTime)}i.showImageAtCurrentTime()}})),M(this,"endMove",(function(){i.toggleThumbContainer(!1,!0)})),M(this,"startScrubbing",(function(t){(ut(t.button)||!1===t.button||0===t.button)&&(i.mouseDown=!0,i.player.media.duration&&(i.toggleScrubbingContainer(!0),i.toggleThumbContainer(!1,!0),i.showImageAtCurrentTime()))})),M(this,"endScrubbing",(function(){i.mouseDown=!1,Math.ceil(i.lastTime)===Math.ceil(i.player.media.currentTime)?i.toggleScrubbingContainer(!1):Gt.call(i.player,i.player.media,"timeupdate",(function(){i.mouseDown||i.toggleScrubbingContainer(!1)}))})),M(this,"listeners",(function(){i.player.on("play",(function(){i.toggleThumbContainer(!1,!0)})),i.player.on("seeked",(function(){i.toggleThumbContainer(!1)})),i.player.on("timeupdate",(function(){i.lastTime=i.player.media.currentTime}))})),M(this,"render",(function(){i.elements.thumb.container=It("div",{class:i.player.config.classNames.previewThumbnails.thumbContainer}),i.elements.thumb.imageContainer=It("div",{class:i.player.config.classNames.previewThumbnails.imageContainer}),i.elements.thumb.container.appendChild(i.elements.thumb.imageContainer);var t=It("div",{class:i.player.config.classNames.previewThumbnails.timeContainer});i.elements.thumb.time=It("span",{},"00:00"),t.appendChild(i.elements.thumb.time),i.elements.thumb.container.appendChild(t),mt(i.player.elements.progress)&&i.player.elements.progress.appendChild(i.elements.thumb.container),i.elements.scrubbing.container=It("div",{class:i.player.config.classNames.previewThumbnails.scrubbingContainer}),i.player.elements.wrapper.appendChild(i.elements.scrubbing.container)})),M(this,"destroy",(function(){i.elements.thumb.container&&i.elements.thumb.container.remove(),i.elements.scrubbing.container&&i.elements.scrubbing.container.remove()})),M(this,"showImageAtCurrentTime",(function(){i.mouseDown?i.setScrubbingContainerSize():i.setThumbContainerSizeAndPos();var t=i.thumbnails[0].frames.findIndex((function(t){return i.seekTime>=t.startTime&&i.seekTime<=t.endTime})),e=t>=0,r=0;i.mouseDown||i.toggleThumbContainer(e),e&&(i.thumbnails.forEach((function(e,o){i.loadedImages.includes(e.frames[t].text)&&(r=o)})),t!==i.showingThumb&&(i.showingThumb=t,i.loadImage(r)))})),M(this,"loadImage",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=i.showingThumb,r=i.thumbnails[t],o=r.urlPrefix,n=r.frames[e],a=r.frames[e].text,l=o+a;if(i.currentImageElement&&i.currentImageElement.dataset.filename===a)i.showImage(i.currentImageElement,n,t,e,a,!1),i.currentImageElement.dataset.index=e,i.removeOldImages(i.currentImageElement);else{i.loadingImage&&i.usingSprites&&(i.loadingImage.onload=null);var s=new Image;s.src=l,s.dataset.index=e,s.dataset.filename=a,i.showingThumbFilename=a,i.player.debug.log("Loading image: ".concat(l)),s.onload=function(){return i.showImage(s,n,t,e,a,!0)},i.loadingImage=s,i.removeOldImages(s)}})),M(this,"showImage",(function(t,e,r,o,n){var a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];i.player.debug.log("Showing thumb: ".concat(n,". num: ").concat(o,". qual: ").concat(r,". newimg: ").concat(a)),i.setImageSizeAndOffset(t,e),a&&(i.currentImageContainer.appendChild(t),i.currentImageElement=t,i.loadedImages.includes(n)||i.loadedImages.push(n)),i.preloadNearby(o,!0).then(i.preloadNearby(o,!1)).then(i.getHigherQuality(r,t,e,n))})),M(this,"removeOldImages",(function(t){Array.from(i.currentImageContainer.children).forEach((function(e){if("img"===e.tagName.toLowerCase()){var r=i.usingSprites?500:1e3;if(e.dataset.index!==t.dataset.index&&!e.dataset.deleting){e.dataset.deleting=!0;var o=i.currentImageContainer;setTimeout((function(){o.removeChild(e),i.player.debug.log("Removing thumb: ".concat(e.dataset.filename))}),r)}}}))})),M(this,"preloadNearby",(function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return new Promise((function(r){setTimeout((function(){var o=i.thumbnails[0].frames[t].text;if(i.showingThumbFilename===o){var n;n=e?i.thumbnails[0].frames.slice(t):i.thumbnails[0].frames.slice(0,t).reverse();var a=!1;n.forEach((function(t){var e=t.text;if(e!==o&&!i.loadedImages.includes(e)){a=!0,i.player.debug.log("Preloading thumb filename: ".concat(e));var n=i.thumbnails[0].urlPrefix+e,l=new Image;l.src=n,l.onload=function(){i.player.debug.log("Preloaded thumb filename: ".concat(e)),i.loadedImages.includes(e)||i.loadedImages.push(e),r()}}})),a||r()}}),300)}))})),M(this,"getHigherQuality",(function(t,e,r,o){if(t<i.thumbnails.length-1){var n=e.naturalHeight;i.usingSprites&&(n=r.h),n<i.thumbContainerHeight&&setTimeout((function(){i.showingThumbFilename===o&&(i.player.debug.log("Showing higher quality thumb for: ".concat(o)),i.loadImage(t+1))}),300)}})),M(this,"toggleThumbContainer",(function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=i.player.config.classNames.previewThumbnails.thumbContainerShown;i.elements.thumb.container.classList.toggle(r,t),!t&&e&&(i.showingThumb=null,i.showingThumbFilename=null)})),M(this,"toggleScrubbingContainer",(function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=i.player.config.classNames.previewThumbnails.scrubbingContainerShown;i.elements.scrubbing.container.classList.toggle(e,t),t||(i.showingThumb=null,i.showingThumbFilename=null)})),M(this,"determineContainerAutoSizing",(function(){(i.elements.thumb.imageContainer.clientHeight>20||i.elements.thumb.imageContainer.clientWidth>20)&&(i.sizeSpecifiedInCSS=!0)})),M(this,"setThumbContainerSizeAndPos",(function(){if(i.sizeSpecifiedInCSS){if(i.elements.thumb.imageContainer.clientHeight>20&&i.elements.thumb.imageContainer.clientWidth<20){var t=Math.floor(i.elements.thumb.imageContainer.clientHeight*i.thumbAspectRatio);i.elements.thumb.imageContainer.style.width="".concat(t,"px")}else if(i.elements.thumb.imageContainer.clientHeight<20&&i.elements.thumb.imageContainer.clientWidth>20){var e=Math.floor(i.elements.thumb.imageContainer.clientWidth/i.thumbAspectRatio);i.elements.thumb.imageContainer.style.height="".concat(e,"px")}}else{var r=Math.floor(i.thumbContainerHeight*i.thumbAspectRatio);i.elements.thumb.imageContainer.style.height="".concat(i.thumbContainerHeight,"px"),i.elements.thumb.imageContainer.style.width="".concat(r,"px")}i.setThumbContainerPos()})),M(this,"setThumbContainerPos",(function(){var t=i.player.elements.progress.getBoundingClientRect(),e=i.player.elements.container.getBoundingClientRect(),r=i.elements.thumb.container,o=e.left-t.left+10,n=e.right-t.left-r.clientWidth-10,a=i.mousePosX-t.left-r.clientWidth/2;a<o&&(a=o),a>n&&(a=n),r.style.left="".concat(a,"px")})),M(this,"setScrubbingContainerSize",(function(){var t=Ze(i.thumbAspectRatio,{width:i.player.media.clientWidth,height:i.player.media.clientHeight}),e=t.height;i.elements.scrubbing.container.style.width="".concat(t.width,"px"),i.elements.scrubbing.container.style.height="".concat(e,"px")})),M(this,"setImageSizeAndOffset",(function(t,e){if(i.usingSprites){var r=i.thumbContainerHeight/e.h;t.style.height=t.naturalHeight*r+"px",t.style.width=t.naturalWidth*r+"px",t.style.left="-".concat(e.x*r,"px"),t.style.top="-".concat(e.y*r,"px")}})),this.player=e,this.thumbnails=[],this.loaded=!1,this.lastMouseMoveTime=Date.now(),this.mouseDown=!1,this.loadedImages=[],this.elements={thumb:{},scrubbing:{}},this.load()}return l(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?Ze(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}(),ei={insertElements:function(t,e){var i=this;ht(e)?At(t,this.media,{src:e}):ft(e)&&e.forEach((function(e){At(t,i.media,e)}))},change:function(t){var e=this;St(t,"sources.length")?(ue.cancelRequests.call(this),this.destroy.call(this,(function(){e.options.quality=[],Mt(e.media),e.media=null,mt(e.elements.container)&&e.elements.container.removeAttribute("class");var i=t.sources,r=t.type,n=o(i,1)[0],a=n.provider,l=void 0===a?Oe.html5:a,s="html5"===l?r:"div",p="html5"===l?{}:{src:n.src};Object.assign(e,{provider:l,type:r,supported:Ut.check(r,l,e.config.playsinline),media:It(s,p)}),e.elements.container.appendChild(e.media),vt(t.autoplay)&&(e.config.autoplay=t.autoplay),e.isHTML5&&(e.config.crossorigin&&e.media.setAttribute("crossorigin",""),e.config.autoplay&&e.media.setAttribute("autoplay",""),xt(t.poster)||(e.poster=t.poster),e.config.loop.active&&e.media.setAttribute("loop",""),e.config.muted&&e.media.setAttribute("muted",""),e.config.playsinline&&e.media.setAttribute("playsinline","")),Fe.addStyleHook.call(e),e.isHTML5&&ei.insertElements.call(e,"source",i),e.config.title=t.title,Ge.setup.call(e),e.isHTML5&&Object.keys(t).includes("tracks")&&ei.insertElements.call(e,"track",t.tracks),(e.isHTML5||e.isEmbed&&!e.supported.ui)&&Fe.build.call(e),e.isHTML5&&e.media.load(),xt(t.previewThumbnails)||(Object.assign(e.config.previewThumbnails,t.previewThumbnails),e.previewThumbnails&&e.previewThumbnails.loaded&&(e.previewThumbnails.destroy(),e.previewThumbnails=null),e.config.previewThumbnails.enabled&&(e.previewThumbnails=new ti(e))),e.fullscreen.update()}),!0)):this.debug.warn("Invalid source format")}},ii=function(){function t(e,i){var r=this;if(p(this,t),M(this,"play",(function(){return yt(r.media.play)?(r.ads&&r.ads.enabled&&r.ads.managerPromise.then((function(){return r.ads.play()})).catch((function(){return te(r.media.play())})),r.media.play()):null})),M(this,"pause",(function(){return r.playing&&yt(r.media.pause)?r.media.pause():null})),M(this,"togglePlay",(function(t){return(vt(t)?t:!r.playing)?r.play():r.pause()})),M(this,"stop",(function(){r.isHTML5?(r.pause(),r.restart()):yt(r.media.stop)&&r.media.stop()})),M(this,"restart",(function(){r.currentTime=0})),M(this,"rewind",(function(t){r.currentTime-=dt(t)?t:r.config.seekTime})),M(this,"forward",(function(t){r.currentTime+=dt(t)?t:r.config.seekTime})),M(this,"increaseVolume",(function(t){r.volume=(r.media.muted?0:r.volume)+(dt(t)?t:0)})),M(this,"decreaseVolume",(function(t){r.increaseVolume(-t)})),M(this,"airplay",(function(){Ut.airplay&&r.media.webkitShowPlaybackTargetPicker()})),M(this,"toggleControls",(function(t){if(r.supported.ui&&!r.isAudio){var e=Bt(r.elements.container,r.config.classNames.hideControls),i=Rt(r.elements.container,r.config.classNames.hideControls,void 0===t?void 0:!t);return i&&ft(r.config.controls)&&r.config.controls.includes("settings")&&!xt(r.config.settings)&&Te.toggleMenu.call(r,!1),i!==e&&Kt.call(r,r.media,i?"controlshidden":"controlsshown"),!i}return!1})),M(this,"on",(function(t,e){Yt.call(r,r.elements.container,t,e)})),M(this,"once",(function(t,e){Gt.call(r,r.elements.container,t,e)})),M(this,"off",(function(t,e){Jt(r.elements.container,t,e)})),M(this,"destroy",(function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(r.ready){var i=function(){document.body.style.overflow="",r.embed=null,e?(Object.keys(r.elements).length&&(Mt(r.elements.buttons.play),Mt(r.elements.captions),Mt(r.elements.controls),Mt(r.elements.wrapper),r.elements.buttons.play=null,r.elements.captions=null,r.elements.controls=null,r.elements.wrapper=null),yt(t)&&t()):(Xt.call(r),ue.cancelRequests.call(r),Ft(r.elements.original,r.elements.container),Kt.call(r,r.elements.original,"destroyed",!0),yt(t)&&t.call(r.elements.original),r.ready=!1,setTimeout((function(){r.elements=null,r.media=null}),200))};r.stop(),clearTimeout(r.timers.loading),clearTimeout(r.timers.controls),clearTimeout(r.timers.resized),r.isHTML5?(Fe.toggleNativeControls.call(r,!0),i()):r.isYouTube?(clearInterval(r.timers.buffering),clearInterval(r.timers.playing),null!==r.embed&&yt(r.embed.destroy)&&r.embed.destroy(),i()):r.isVimeo&&(null!==r.embed&&r.embed.unload().then(i),setTimeout(i,200))}})),M(this,"supports",(function(t){return Ut.mime.call(r,t)})),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=Ut.touch,this.media=e,ht(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||gt(this.media)||ft(this.media))&&(this.media=this.media[0]),this.config=Pt({},Ce,t.defaults,i||{},function(){try{return JSON.parse(r.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 Ae(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",Ut),!ut(this.media)&&mt(this.media))if(this.media.plyr)this.debug.warn("Target already setup");else if(this.config.enabled)if(Ut.check().api){var o=this.media.cloneNode(!0);o.autoplay=!1,this.elements.original=o;var n=this.media.tagName.toLowerCase(),a=null,l=null;switch(n){case"div":if(a=this.media.querySelector("iframe"),mt(a)){if(l=je(a.getAttribute("src")),this.provider=function(t){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(t)?Oe.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(t)?Oe.vimeo:null}(l.toString()),this.elements.container=this.media,this.media=a,this.elements.container.className="",l.search.length){var s=["1","true"];s.includes(l.searchParams.get("autoplay"))&&(this.config.autoplay=!0),s.includes(l.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=s.includes(l.searchParams.get("playsinline")),this.config.youtube.hl=l.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(xt(this.provider)||!Object.values(Oe).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type="video";break;case"video":case"audio":this.type=n,this.provider=Oe.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=Ut.check(this.type,this.provider,this.config.playsinline),this.supported.api?(this.eventListeners=[],this.listeners=new Le(this),this.storage=new be(this),this.media.plyr=this,mt(this.elements.container)||(this.elements.container=It("div",{tabindex:0}),Ct(this.media,this.elements.container)),Fe.migrateStyles.call(this),Fe.addStyleHook.call(this),Ge.setup.call(this),this.config.debug&&Yt.call(this,this.elements.container,this.config.events.join(" "),(function(t){r.debug.log("event: ".concat(t.type))})),this.fullscreen=new Me(this),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&Fe.build.call(this),this.listeners.container(),this.listeners.global(),this.config.ads.enabled&&(this.ads=new Ke(this)),this.isHTML5&&this.config.autoplay&&this.once("canplay",(function(){return te(r.play())})),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new ti(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 l(t,[{key:"isHTML5",get:function(){return this.provider===Oe.html5}},{key:"isEmbed",get:function(){return this.isYouTube||this.isVimeo}},{key:"isYouTube",get:function(){return this.provider===Oe.youtube}},{key:"isVimeo",get:function(){return this.provider===Oe.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 e=dt(t)&&t>0;this.media.currentTime=e?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 dt(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),e=(this.media||{}).duration,i=dt(e)&&e!==1/0?e:0;return t||i}},{key:"volume",get:function(){return Number(this.media.volume)},set:function(t){var e=t;ht(e)&&(e=Number(e)),dt(e)||(e=this.storage.get("volume")),dt(e)||(e=this.config.volume),e>1&&(e=1),e<0&&(e=0),this.config.volume=e,this.media.volume=e,!xt(t)&&this.muted&&e>0&&(this.muted=!1)}},{key:"muted",get:function(){return Boolean(this.media.muted)},set:function(t){var e=t;vt(e)||(e=this.storage.get("muted")),vt(e)||(e=this.config.muted),this.config.muted=e,this.media.muted=e}},{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 e=this,i=null;dt(t)&&(i=t),dt(i)||(i=this.storage.get("speed")),dt(i)||(i=this.config.speed.selected),i=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)}(i,this.minimumSpeed,this.maximumSpeed),this.config.speed.selected=i,setTimeout((function(){e.media.playbackRate=i}),0)}},{key:"minimumSpeed",get:function(){return this.isYouTube?Math.min.apply(Math,u(this.options.speed)):this.isVimeo?.5:.0625}},{key:"maximumSpeed",get:function(){return this.isYouTube?Math.max.apply(Math,u(this.options.speed)):this.isVimeo?2:16}},{key:"quality",get:function(){return this.media.quality},set:function(t){var e=this.config.quality,i=this.options.quality;if(i.length){var r=[!xt(t)&&Number(t),this.storage.get("quality"),e.selected,e.default].find(dt),o=!0;if(!i.includes(r)){var n=ie(i,r);this.debug.warn("Unsupported quality option: ".concat(r,", using ").concat(n," instead")),r=n,o=!1}e.selected=r,this.media.quality=r,o&&this.storage.set({quality:r})}}},{key:"loop",get:function(){return Boolean(this.media.loop)},set:function(t){var e=vt(t)?t:this.config.loop.active;this.config.loop.active=e,this.media.loop=e}},{key:"source",get:function(){return this.media.currentSrc},set:function(t){ei.change.call(this,t)}},{key:"download",get:function(){var t=this.config.urls.download;return kt(t)?t:this.source},set:function(t){kt(t)&&(this.config.urls.download=t,Te.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?Fe.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=ae(le.call(this));return ft(t)?t.join(":"):t},set:function(t){this.isVideo?ht(t)&&ne(t)?(this.config.ratio=ae(t),se.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 e=vt(t)?t:this.config.autoplay;this.config.autoplay=e}},{key:"toggleCaptions",value:function(t){Pe.toggle.call(this,t,!1)}},{key:"currentTrack",get:function(){var t=this.captions;return t.toggled?t.currentTrack:-1},set:function(t){Pe.set.call(this,t,!1)}},{key:"language",get:function(){return(Pe.getCurrentTrack.call(this)||{}).language},set:function(t){Pe.setLanguage.call(this,t,!1)}},{key:"pip",get:function(){return Ut.pip?xt(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:"picture-in-picture"===this.media.webkitPresentationMode:null},set:function(t){if(Ut.pip){var e=vt(t)?t:!this.pip;yt(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(e?"picture-in-picture":"inline"),yt(this.media.requestPictureInPicture)&&(!this.pip&&e?this.media.requestPictureInPicture():this.pip&&!e&&document.exitPictureInPicture())}}}],[{key:"supported",value:function(t,e,i){return Ut.check(t,e,i)}},{key:"loadSprite",value:function(t,e){return we(t,e)}},{key:"setup",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null;return ht(e)?r=Array.from(document.querySelectorAll(e)):gt(e)?r=Array.from(e):ft(e)&&(r=e.filter(mt)),xt(r)?null:r.map((function(e){return new t(e,i)}))}}]),t}();function ri(t){t.on("timeupdate",(function(){return function(t){var e,i;null!=t&&null!==(e=t.config)&&void 0!==e&&null!==(i=e.mutedPreview)&&void 0!==i&&i.enabled||function(t){var e;0!==t.currentTime&&null!=t&&null!==(e=t.config)&&void 0!==e&&e.save_player_position&&localStorage.setItem("player-progress-".concat(oi(t)),t.currentTime)}(t)}(t)})),t.on("ready",(function(){return ni(t)})),t.on("loadeddata",(function(){return ni(t)}))}function oi(t){var e,i;return null==t||null===(e=t.config)||void 0===e||null===(i=e.blockAttributes)||void 0===i?void 0:i.id}function ni(t){var e,i,r;if(null!=t&&null!==(e=t.config)&&void 0!==e&&e.save_player_position&&(null==t||null===(i=t.config)||void 0===i||null===(r=i.mutedPreview)||void 0===r||!r.enabled)){var o=function(t){return parseFloat(localStorage.getItem("player-progress-".concat(oi(t))))}(t);return t.hls&&o>=0&&t.hls.startLoad(o),t.duration&&(o=Math.min(o,t.duration)),!o||o<1?0:(t.currentTime=o,null!=t&&t.isVimeo&&setTimeout((function(){t.embed.setCurrentTime(o||0)}),0),o)}}ii.defaults=JSON.parse(JSON.stringify(Ce));var ai=(null===(Ve=window)||void 0===Ve||null===($e=Ve.prestoPlayer)||void 0===$e||null===(Ue=$e.i18n)||void 0===Ue?void 0:Ue.hide_chapters)||"Hide Chapters",li=(null===(Qe=window)||void 0===Qe||null===(We=Qe.prestoPlayer)||void 0===We||null===(Ye=We.i18n)||void 0===Ye?void 0:Ye.show_chapters)||"Show Chapters";const si='<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(ai,'</span>\n<span class="label--not-pressed plyr__tooltip" role="tooltip">').concat(li,"</span>\n</button>\n");var pi,ui,ci;const di='\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===(pi=window)||void 0===pi||null===(ui=pi.prestoPlayer)||void 0===ui||null===(ci=ui.i18n)||void 0===ci?void 0:ci.chapters)||"Chapters",'</div>\n <div class="presto-player-toc__list" data-player-toc></div>\n </div>\n</div>');function hi(t){var e,i,r,o,n,a,l,p,c,d,h,v,y,f=0,g={},m=null,b=0;if("undefined"!=typeof jQuery)if(r=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!t.length)return t;var e={};return t.forEach((function(t){var i,r=t.time.split(":");r.length>1&&(i=60*parseInt(r[0])),e[parseInt(r[1])+parseInt(i)]=t})),e}((null===(e=o=t.detail.plyr)||void 0===e||null===(i=e.config)||void 0===i?void 0:i.chapters)||[]),"html5"!==o.provider||o.duration){if(r&&Object.keys(r).length){n=jQuery(o.elements.container).closest(".presto-player__wrapper").find(".plyr");var _=(y=jQuery(o.elements.controls)).find(".plyr__time");_=_.length?_:y.find(".plyr__progress__container"),(c=n.find('[data-plyr="chapters"]')).length||(c=jQuery(si).insertAfter(_)),(l=n.find(".presto-player-toc__wrapper")).length||(l=jQuery(di).appendTo(n)),d=l.find("[data-player-toc-cover]"),p=l.find("[data-player-toc]"),a=n.find(".plyr__progress__container");var w,k=jQuery('<div class="presto-player__chapters"></div>').appendTo(a);h=jQuery('<div class="presto-player__chapter-markers"></div>').appendTo(k),w=0,p.find(".presto-player-toc__chapter").length||(Object.keys(r).forEach((function(t){w++;var e=jQuery(function(t){var e=t.name,i=void 0===e?"Untitled":e,r=t.order,o=void 0===r?1:r,n=t.highlight;return'<div class="presto-player-toc__chapter '.concat(void 0!==n&&n?"is-highlighted":"",'" data-chapter-item>\n \n <span class="presto-player-toc__order">\n ').concat(o,'\n </span>\n <span class="presto-player-toc__name">\n ').concat(i,"\n </div>\n</div>")}({name:r[t].title,order:w})).appendTo(p);e.data("presto-player-timestamp",t),g[t]=e,e.on("click",(function(){o.currentTime=parseFloat(t),o.play(),T(!1)}))})),v=l.find("[data-chapter-item]")),z(),c.off("click"),c.on("click",T),x(),o.off("timeupdate"),o.on("timeupdate",x),m=window.setInterval((function(){b++,o.duration&&(z(),window.clearInterval(m)),b>50&&window.clearInterval(m)}),100),d.off("click"),d.on("click",(function(){return T(!1)})),p.off("mouseleave"),p.on("mouseleave",(function t(){if(o.playing){var e=setTimeout((function(){T(!1),p.off("mouseleave",t)}),2e3);p.on("mouseenter",(function(){clearTimeout(e)}))}}))}}else o.on("loadedmetadata",hi);function x(){f=o.currentTime;var t=Object.keys(r).filter((function(t){return t<=f})).map((function(t){return parseInt(t,10)})),e=Math.max.apply(Math,u(t));v&&v.removeClass("is-highlighted"),jQuery(g[e||0]).addClass("is-highlighted")}function z(){o.duration&&(Object.keys(r).forEach((function(t){if(parseInt(t)&&!h.find("[data-timestamp=".concat(t,"]")).length){var e,i,n,a,l=r[t],s=parseInt(t)/o.duration*100,p=jQuery((e={position:s,name:"".concat(l.title)},i=e.position,n=e.name,a=void 0===n?"":n,'<div class="presto-player-progress__marker plyr__controls__item plyr__control" style="left: '.concat(void 0===i?0:i,'%" 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()}))}})),l.find("[data-timeline-marker]"))}function T(t){void 0!==s(t)?l.toggleClass("is-showing",t):l.toggleClass("is-showing")}}var vi;function yi(t){"undefined"!=typeof jQuery&&(vi=t,jQuery(vi.elements.container).closest(".presto-player__wrapper"),vi.on("ready",hi),vi.on("controlshidden",fi),vi.on("controlsshown",gi))}function fi(t){var e,i,r;"undefined"!=typeof jQuery&&jQuery(null==t||null===(e=t.detail)||void 0===e||null===(i=e.plyr)||void 0===i||null===(r=i.elements)||void 0===r?void 0:r.container).closest(".presto-player__wrapper").addClass("presto-player--hide-controls")}function gi(t){var e,i,r;"undefined"!=typeof jQuery&&jQuery(null==t||null===(e=t.detail)||void 0===e||null===(i=e.plyr)||void 0===i||null===(r=i.elements)||void 0===r?void 0:r.container).closest(".presto-player__wrapper").removeClass("presto-player--hide-controls")}function mi(t){var e,i;return n(n(n({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 bi(t){var e,i;null!=t&&null!==(e=t.config)&&void 0!==e&&e.hasPlayed||(t.config.hasPlayed=!0,null===(i=window)||void 0===i||i.gtag("event","Play",mi(t)))}function _i(t){var e;null===(e=window)||void 0===e||e.gtag("event","Pause",mi(t))}function wi(t){var e,i;null!=t&&null!==(e=t.config)&&void 0!==e&&e.hasLoaded||(t.config.hasLoaded=!0,null===(i=window)||void 0===i||i.gtag("event","Player Load",mi(t)))}var ki,xi={25:!1,50:!1,75:!1,100:!1};function zi(t){if(t.currentTime){var e=parseFloat(t.currentTime)/parseFloat(t.duration)*100;Object.keys(xi).forEach((function(i){var r;!xi[i]&&e>=parseInt(i)&&(xi[i]=!0,null===(r=window)||void 0===r||r.gtag("event","".concat(i," Percent Played"),mi(t)))}))}}var Ti="presto-player.analytics",ji="";function Si(t){var e,i;(ki=t).config.analytics&&null!==(e=window)&&void 0!==e&&null!==(i=e.wp)&&void 0!==i&&i.hooks&&(wp.hooks.hasAction("presto.nonceRefreshed",Ti)||wp.hooks.addAction("presto.nonceRefreshed",Ti,(function(t){ji=t})),wp.hooks.hasAction("presto.playerPlay",Ti)||wp.hooks.addAction("presto.playerPlay",Ti,Pi),wp.hooks.hasAction("presto.playerEnded",Ti)||wp.hooks.addAction("presto.playerEnded",Ti,Pi),wp.hooks.hasAction("presto.playerHidden",Ti)||wp.hooks.addAction("presto.playerHidden",Ti,Pi),wp.hooks.hasAction("presto.playerPause",Ti)||wp.hooks.addAction("presto.playerPause",Ti,Pi),wp.hooks.hasAction("presto.playerSeeked",Ti)||wp.hooks.addAction("presto.playerSeeked",Ti,Pi))}function Pi(t){isNaN(null==t?void 0:t.currentTime)||Ci(function(t){var e,i;return n(n(n({video_current_time:parseInt(null==t?void 0:t.currentTime),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 Ci(t){var e,i,r,o,n,a,l,s;if(ji){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===(e=ki)||void 0===e||null===(i=e.config)||void 0===i?void 0:i.id),c.append("nonce",ji),null!==(r=window)&&void 0!==r&&null!==(o=r.prestoPlayer)&&void 0!==o&&o.debug_navigator?"undefined"!=typeof jQuery&&jQuery.ajax({type:"POST",url:null===(n=window)||void 0===n||null===(a=n.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=ki)||void 0===l||null===(s=l.config)||void 0===s?void 0:s.id,nonce:ji}}):navigator.sendBeacon(null===(p=window)||void 0===p||null===(u=p.prestoPlayer)||void 0===u?void 0:u.ajaxurl,c)}}function Oi(t){var e,i;null!==(e=window)&&void 0!==e&&null!==(i=e.prestoPlayer)&&void 0!==i&&i.isPremium&&(function(){var t;null!==(t=window)&&void 0!==t&&t.gtag&&(wp.hooks.addAction("presto.playerPlay","presto-player",bi),wp.hooks.addAction("presto.playerPause","presto-player",_i),wp.hooks.addAction("presto.playerReady","presto-player",wi),wp.hooks.addAction("presto.playerTimeUpdate","presto-player",zi))}(),Si(t))}const Ii=function(t){t.on("ready",(function(){var e,i,r,o;null==t||null===(e=t.config)||void 0===e||!e.logo||null!=t&&null!==(i=t.config)&&void 0!==i&&i.logo_added||"undefined"!=typeof jQuery&&(jQuery('<img src="'.concat(null==t||null===(r=t.config)||void 0===r?void 0:r.logo,'" class="presto-player__logo is-bottom-right" part="logo">')).insertBefore(null==t||null===(o=t.elements)||void 0===o?void 0:o.controls),t.config.logo_added=!0)}))};function Ai(t){var e;null!=t&&null!==(e=t.config)&&void 0!==e&&e.poster&&(t.poster=t.config.poster)}const Mi=function(t){var e,i;null!==(e=window)&&void 0!==e&&null!==(i=e.wp)&&void 0!==i&&i.hooks&&(t.on("ready",(function(){Ei("Ready",t)})),t.on("play",(function(){Ei("Play",t)})),t.on("playing",(function(){Ei("Playing",t)})),t.on("pause",(function(){Ei("Pause",t)})),t.on("ended",(function(){Ei("Ended",t)})),t.on("seeked",(function(){Ei("Seeked",t)})),t.on("timeupdate",(function(){Ei("TimeUpdate",t)})),t.on("enterfullscreen",(function(){Ei("EnterFullScreen",t)})),t.on("exitfullscreen",(function(){Ei("ExitFullScreen",t)})),document.addEventListener("visibilitychange",(function(){Ei("hidden"===document.visibilityState?"Hidden":"Visible",t)})),t.on("statechange",(function(e){var i;switch(null==e||null===(i=e.detail)||void 0===i?void 0:i.code){case 0:Ei("Ended",t);break;case 1:Ei("Play",t);break;case 2:Ei("Pause",t)}})))};function Ei(t,e){window.wp.hooks.doAction("presto.player".concat(t),e)}let Fi,Li=Date.now();const Ni=t=>{var e,i;if(!t.automations)return;(null===(i=null===(e=null===window||void 0===window?void 0:window.wp)||void 0===e?void 0:e.hooks)||void 0===i?void 0:i.hasAction("presto.nonceRefreshed","presto-player.progress"))||window.wp.hooks.addAction("presto.nonceRefreshed","presto-player.progress",(t=>{Fi=t})),null===window||void 0===window||window.wp.hooks.addAction("presto.playerTimeUpdate","presto-player",o),null===window||void 0===window||window.wp.hooks.addAction("presto.playerEnded","presto-player",(t=>o(t,100)));let r={0:!1,10:!1,20:!1,30:!1,40:!1,50:!1,60:!1,70:!1,80:!1,90:!1,100:!1};function o(t,e=null){var i;Fi&&(null===(i=null==t?void 0:t.config)||void 0===i?void 0:i.ajaxProgress)&&(e||(e=parseFloat(t.currentTime)/parseFloat(t.duration)*100),t.watched=t.watched||{},Object.keys(r).forEach((i=>{var r,o,n,a,l,s,p,u,c;const d=parseInt(i);if(!t.watched[d]&&e>=d){t.watched[d]=!0;let e=new FormData;if(e.append("action","presto_player_progress_percent"),e.append("id",null===(r=null==t?void 0:t.config)||void 0===r?void 0:r.id),e.append("percent",d.toString()),e.append("visit_time",Li.toString()),e.append("nonce",Fi),(null===(o=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===o?void 0:o.debug)&&console.log(`${d} percent watched.`),null===(n=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===n?void 0:n.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:Li,percent:d,nonce:Fi}});else{let i=navigator.sendBeacon(null===(a=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===a?void 0:a.ajaxurl,e);(null===(l=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===l?void 0:l.debug)&&(i?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:Li,nonce:Fi}):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:Li,nonce:Fi}))}}})))}};let Ri=!1,Bi=!1;function Di(t){return t.status>=200&&t.status<300?Promise.resolve(t):Promise.reject(new Error(t.statusText))}const qi=t=>{var e,i;(t.config.analytics||t.config.automations)&&(null===(i=null===(e=null===window||void 0===window?void 0:window.wp)||void 0===e?void 0:e.hooks)||void 0===i||i.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;Ri||Bi||(Bi=!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(Di).then((t=>t.json())).then((({data:t})=>{null===window||void 0===window||window.wp.hooks.doAction("presto.nonceRefreshed",t),Ri=!0})).catch((function(t){console.log("Request failed",t)})).finally((()=>{Bi=!1})))})))},Hi=function(t){var e=window.navigator.userAgent;if(e.match(/iPad/i)||e.match(/iPhone/i)){var i=function(t,e){for(var i,r,o,n=null==t||null===(i=t.elements)||void 0===i||null===(r=i.container)||void 0===r||null===(o=r.getRootNode())||void 0===o?void 0:o.host;(null!=n?n.nodeType:void 0)===Node.ELEMENT_NODE&&"BODY"!==n.tagName&&"HTML"!==n.tagName;)e?n.classList.add("presto-player-fullscreen-open"):n.classList.remove("presto-player-fullscreen-open"),n=n.parentNode};wp.hooks.addAction("presto.playerEnterFullScreen","presto-player",(function(){var e;null!=t&&null!==(e=t.fullscreen)&&void 0!==e&&e.active&&i(t,!0)})),wp.hooks.addAction("presto.playerExitFullScreen","presto-player",(function(){var e;null!=t&&null!==(e=t.fullscreen)&&void 0!==e&&e.active||i(t,!1)}))}},Vi=function(){var t=d(regeneratorRuntime.mark((function t(e){var i,r,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("undefined"!=typeof jQuery){t.next=2;break}return t.abrupt("return");case 2:if("ResizeObserver"in window!=0){t.next=7;break}return t.next=5,import("./p-97e2763b.js");case 5:window.ResizeObserver=t.sent.ResizeObserver;case 7:if(o=new ResizeObserver((function(t){var e,i=h(t);try{for(i.s();!(e=i.n()).done;){var r=e.value,o=r.contentRect;jQuery(r.target).find(".plyr__menu__container").css({maxHeight:"".concat(o.height-48,"px")})}}catch(t){i.e(t)}finally{i.f()}})),null!=e&&null!==(i=e.elements)&&void 0!==i&&i.container){t.next=10;break}return t.abrupt("return");case 10:if(o.observe(null==e||null===(r=e.elements)||void 0===r?void 0:r.container),e){t.next=13;break}return t.abrupt("return");case 13:e.on("playing",(function(){var t,i,r=null==e||null===(t=e.elements)||void 0===t?void 0:t.container.getBoundingClientRect();jQuery(null==e||null===(i=e.elements)||void 0===i?void 0:i.container).find(".plyr__menu__container").css({maxHeight:"".concat(r.height-48,"px")})}));case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();function $i(t){var e,i,r,o,a,l,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},p=n(n(n({},s),null!==(e=window)&&void 0!==e&&null!==(i=e.prestoPlayer)&&void 0!==i&&i.plugin_url?{iconUrl:"".concat(null===(r=window)||void 0===r||null===(o=r.prestoPlayer)||void 0===o?void 0:o.plugin_url,"img/sprite.svg")}:{}),{chapters:(null==s?void 0:s.chapters)||[],controls:(null==s?void 0:s.controls)||[],settings:Object.keys((null==s?void 0:s.settings)||{}).length?s.settings:{}}),u=new ii(t,p);return"undefined"!=typeof learndash_video_data&&import("./p-33c93c5e.js").then((function(t){(0,t.default)(u)})),"undefined"!=typeof _tutorobject&&import("./p-0e1cd603.js").then((function(t){(0,t.default)(u)})),Mi(u),Hi(u),Vi(u),Ii(u),Ai(u),yi(u),null!==(a=window)&&void 0!==a&&null!==(l=a.prestoPlayer)&&void 0!==l&&l.isAdmin||(qi(u),Ni(p),ri(u),Oi(u)),u}function Ui(t){return"string"==typeof t&&t.includes(".m3u8")}let Qi=class{constructor(e){t(this,e),this.loaded=r(this,"loaded",7),this.isAdmin=!1,this.previouslyPlaying=!1,this.components={cta:null,email:null,overlays:null}}async play(t=!1){return this.shouldLazyLoad=!1,t&&(this.mutedPreview=!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,e){return this.player.on(t,e)}async off(t,e){return this.player.off(t,e)}async handleCurrentTimeChange(t){this.player&&Number.isInteger(t)&&(this.player.duration&&(this.player.currentTime=Math.min(this.player.currentTime,this.player.duration)),this.shouldLazyLoad&&(this.shouldLazyLoad=!1,await new Promise((t=>{setTimeout((async()=>{await this.initialize(),t()}),50)}))),this.player.embed&&!this.player.playing?(this.player.currentTime=t,this.player.muted=!0,this.player.play(),this.player.once("timeupdate",(()=>{this.player.pause(),this.player.currentTime=t,this.player.muted=!1}))):this.player.currentTime=t)}handleStickyChange(){(function(t){for(var e=[];t.parentNode&&"body"!=t.parentNode.nodeName.toLowerCase();)e.push(t=t.parentNode);return e})(this.el).forEach((t=>{t.classList.toggle("presto-sticky-parent",this.isSticky)}))}getConfig(){return Object.assign(Object.assign({},function({preset:t={},chapters:e,branding:i,src:r,analytics:o,automations:n,autoplay:a,blockAttributes:l={},provider:s="",provider_video_id:p="",youtube:u,type:c,isAdmin:d,i18n:h,storage:v={enabled:!d,key:`presto-player-${t.id}`}}){var y,f,g,m;const b=["settings"],_=[...["youtube","vimeo"].includes(s)?["pip"]:[]],w=["play-large","rewind","play","fast-forward","progress","current-time","mute","volume","captions","settings","pip","fullscreen"].filter((e=>((null==t?void 0:t[e])||b.includes(e))&&!_.includes(e)));(null===(y=null==l?void 0:l.mutedPreview)||void 0===y?void 0:y.enabled)&&(v={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:r,ajaxProgress:!0,analytics:o,automations:n,mutedPreview:{enabled:null===(f=null==l?void 0:l.mutedPreview)||void 0===f?void 0:f.enabled},chapters:e,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==i?void 0:i.logo,logo_width:null==i?void 0:i.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:!t.hasOwnProperty("invert_time")||(null==t?void 0:t.invert_time),storage:v,keyboard:{focused:!1,global:!1},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===(m=null===window||void 0===window?void 0:window.wp)||void 0===m?void 0:m.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,r=t.src,o=t.preload,r&&Ui(r)?import("./p-76d5209c.js").then((function(t){return(0,t.default)({config:e,selector:i,src:r,preload:o})})):new Promise((function(t){return t(new $i(i,n({},e)))})));var t,e,i,r,o}handlePlayerElementChange(){var t;(({src:t,el:e,preload:i,currentTime:r})=>{if(!e.getAttribute("hls_loaded")&&["metadata","none"].includes(i)&&Ui(t)){if(r>0)return e.style.height=null,e.style.paddingBottom=null,void e.setAttribute("hls_loaded","1");e.style.height="0px",e.style.paddingBottom="56.25%"}})({src:this.src,el:this.playerEl,preload:this.preload,currentTime:null===(t=null==this?void 0:this.player)||void 0===t?void 0:t.currentTime})}handleMutedPreview(t){var e,i,r,o,n,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===(r=null===(i=null===(e=this.originalConfig)||void 0===e?void 0:e.blockAttributes)||void 0===i?void 0:i.mutedPreview)||void 0===r?void 0:r.enabled)&&(({player:t,mutedPreview:e,captions:i,progress:r,savePosition:o,onPlay:n})=>{var a=window.navigator.userAgent;if(!a.match(/iPad/i)&&!a.match(/iPhone/i)){t.config.mutedPreview.enabled=e,t.muted=e,t.loop=e,t.config.ajaxProgress=!e&&r,t.config.save_player_position=!e&&o;try{t.toggleCaptions(!!e&&!!i)}catch(t){}return setTimeout((()=>{ni(t)||t.restart(),setTimeout((()=>{t.muted=e,n()}),50)}),0),t}console.log("ios device, do not do muted autoplay")})({player:this.player,mutedPreview:this.mutedPreview,captions:!!(null===(n=null===(o=this.blockAttributes)||void 0===o?void 0:o.mutedPreview)||void 0===n?void 0:n.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,e;this.observer&&(this.observer.disconnect(),this.observer.observe(this.el)),this.duration=this.player.duration,this.mutedPreview=null===(e=null===(t=this.blockAttributes)||void 0===t?void 0:t.mutedPreview)||void 0===e?void 0:e.enabled,this.renderDynamicOverlays(),this.renderCTA(),this.renderEmailOverlay(),this.player.on("timeupdate loadedmetadata",(()=>{this.duration=this.player.duration,this.renderDynamicOverlays()})),Ui(this.src)&&this.player.once("playing",(()=>{this.playerEl.style.height=null,this.playerEl.style.paddingBottom=null,this.playerEl.setAttribute("hls_loaded","1")})),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,e,i;return"youtube"===this.provider&&!this.autoplay&&!(null===(e=null===(t=this.blockAttributes)||void 0===t?void 0:t.mutedPreview)||void 0===e?void 0:e.enabled)&&!!(null===(i=this.preset)||void 0===i?void 0:i.lazy_load_youtube)}componentWillLoad(){var t,e,i;const r=null===(t=this.el.children)||void 0===t?void 0:t[0];r&&r.classList&&r.classList.contains("presto-iframe-fallback-container")&&r.remove(),this.shouldLazyLoad=this.shouldLazyLoadVideo(),this.i18n=(null===(e=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===e?void 0:e.i18n)||(null===(i=null===window||void 0===window?void 0:window.prestoPlayerAdmin)||void 0===i?void 0:i.i18n),this.originalConfig||(this.originalConfig=this.getConfig()),this.trackIntersection()}async componentDidLoad(){setTimeout((()=>{this.initialize(),this.loaded.emit(!0)}),0)}async initialize(){const t=await this.createPlayer();return this.handlePlayerEvents(t),this.syncVideoHeight(),((t,e)=>{if(!e)return;const i=document.createElement("style");t.shadowRoot.append(i),i.appendChild(document.createTextNode(e))})(this.el,this.css),t}async onReload(t){const e=await this.initialize();"play"==t&&e.on("ready",(()=>{this.play(),e.muted=!0,e.muted=!1,e.off("ready",this.play)}))}async syncVideoHeight(){if("ResizeObserver"in window==0){const t=await import("./p-97e2763b.js");window.ResizeObserver=t.ResizeObserver}new ResizeObserver((()=>{this.isSticky||(this.videoHeight=this.el.getBoundingClientRect().height)})).observe(this.el)}handleRestartVideo(){this.player.once("timeupdate",(()=>{setTimeout((()=>this.play()),500)})),this.player.restart()}handlePlayVideo(){this.play()}handlePauseVideo(t){this.pause(),t.detail&&function(t){var e,i,r,o,n;if("unknown"!==m()&&!(null===(i=null===(e=null==t?void 0:t.config)||void 0===e?void 0:e.blockAttributes)||void 0===i?void 0:i.playsinline)){"function"==typeof(null===(r=null==t?void 0:t.media)||void 0===r?void 0:r.webkitExitFullScreen)&&(null==t||t.media.webkitExitFullScreen()),"function"==typeof(null===(o=null==t?void 0:t.embed)||void 0===o?void 0:o.exitFullscreen)&&(null===(n=null==t?void 0:t.embed)||void 0===n||n.exitFullscreen());const e=t.currentTime;t.currentTime=t.duration,t.once("playing",(()=>{t.currentTime=e}))}}(this.player)}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 e,i;if(!(null===(e=this.preset)||void 0===e?void 0:e.sticky_scroll))return;if(this.isAdmin||this.mutedPreview||!(null===(i=null==this?void 0:this.player)||void 0===i?void 0:i.playing))return void(this.isSticky=!1);let r=t.boundingClientRect;if(this.isSticky=r.height<-r.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 e,i,r;if(!this.isAdmin&&(null===(e=this.preset)||void 0===e?void 0:e.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===(r=null===(i=this.blockAttributes)||void 0===i?void 0:i.mutedPreview)||void 0===r?void 0:r.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 e("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 e("presto-vimeo",{player:this.player,getRef:t=>this.playerEl=t,poster:this.poster,src:this.src});case"youtube":return e("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 e("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 e("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,e,i,r;(null===(t=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===t?void 0:t.isPremium)&&(this.isAdmin||(null===(i=null===(e=this.preset)||void 0===e?void 0:e.cta)||void 0===i?void 0:i.enabled)&&((null===(r=this.components.cta)||void 0===r?void 0:r.offsetParent)||(this.components.cta=document.createElement("presto-cta-overlay"),this.components.cta.direction=this.direction,this.components.cta.player=this.player,this.components.cta.preset=this.preset,this.components.cta.i18n=this.i18n,this.player.elements.container.append(this.components.cta))))}renderEmailOverlay(){var t,e,i;!(null===(t=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===t?void 0:t.isPremium)||this.isAdmin||(null===(e=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===e?void 0:e.logged_in)||(null===(i=this.components.email)||void 0===i?void 0:i.offsetParent)||(this.components.email=document.createElement("presto-email-overlay"),this.components.email.direction=this.direction,this.components.email.player=this.player,this.components.email.preset=this.preset,this.components.email.i18n=this.i18n,this.components.email.videoId=this.video_id,this.player.elements.container.append(this.components.email))}renderActionBar(){var t,i;if((null===(i=null===(t=this.preset)||void 0===t?void 0:t.action_bar)||void 0===i?void 0:i.enabled)&&this.player)return e("presto-action-bar",{config:this.preset.action_bar,player:null==this?void 0:this.player,youtube:this.youtube})}stickyPositionClass(){var t,e;return this.isSticky?(null===(t=this.preset)||void 0===t?void 0:t.sticky_scroll_position)?`presto-sticky--${null===(e=this.preset)||void 0===e?void 0:e.sticky_scroll_position.replace(/\s+/g,"-")}`:"presto-sticky--bottom-right":""}renderDynamicOverlays(){var t,e,i,r,o;this.player&&((null===(t=null==this?void 0:this.overlaysComponent)||void 0===t?void 0:t.offsetParent)||(this.overlaysComponent=document.createElement("presto-dynamic-overlays"),this.overlaysComponent.addEventListener("reloadComponent",(()=>{this.overlaysComponent.remove(),this.overlaysComponent=document.createElement("presto-dynamic-overlays")}),{once:!0})),this.overlaysComponent.style.cssText="display: block !important; opacity: 1 !important; visibility: visible !important;",this.overlaysComponent.overlays=this.overlays,this.overlaysComponent.preset=this.preset,this.overlaysComponent.player=this.player,this.overlaysComponent.enabled=!(null===(r=null===(i=null===(e=this.player)||void 0===e?void 0:e.config)||void 0===i?void 0:i.mutedPreview)||void 0===r?void 0:r.enabled),(null===(o=null==this?void 0:this.overlaysComponent)||void 0===o?void 0:o.offsetParent)||this.player.elements.wrapper.append(this.overlaysComponent))}render(){var t,i,r,o,n;return e(v,{style:{height:this.isSticky?`${this.videoHeight}px`:"auto"}},e("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===(i=this.preset)||void 0===i?void 0:i.skin}`}\n ${(null===(r=this.preset)||void 0===r?void 0:r.hide_youtube)?"hide-youtube-ui":""}\n ${(null===(o=this.preset)||void 0===o?void 0:o.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:""}`},e("div",null,e("slot",{name:"player-start"}),e("slot",{name:"player-before-video"}),this.renderVideo(),e("slot",{name:"player-after-video"}),this.renderActionBar(),this.renderMutedOverlay(),e("slot",{name:"player-end"}))))}get el(){return i(this)}static get watchers(){return{currentTime:["handleCurrentTimeChange"],isSticky:["handleStickyChange"],playerEl:["handlePlayerElementChange"],player:["handlePlayerElementChange"],mutedPreview:["handleMutedPreview"],shouldLazyLoad:["handleLazyLoadChange"],overlays:["renderDynamicOverlays"],preset:["renderDynamicOverlays"]}}};Qi.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--html5 .plyr__video-wrapper,.plyr--youtube .plyr__video-wrapper{height:100%}.plyr__video-wrapper{z-index:1}.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 .presto-player__wrapper .plyr__control--overlaid{z-index:4}.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 .plyr--fullscreen-fallback.plyr--video .plyr__controls{padding-bottom:calc(var(--plyr-control-spacing, 10px) + env(safe-area-inset-bottom))}.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.presto-player--hide-scrim .plyr__controls{background:transparent}.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 .plyr__captions{z-index:1}.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%}@media (min-aspect-ratio: 16/9){.hide-youtube-ui presto-youtube .plyr:fullscreen .plyr__video-wrapper{width:calc(calc(1600 / 9) * 1vh)}}';const Wi=function(t,e){return u(e)};let Yi=class{constructor(e){t(this,e),this.prestoBlur=r(this,"prestoBlur",7),this.prestoFocus=r(this,"prestoFocus",7),this.hasFocus=!1,this.hasLabel=!1,this.hasPrefix=!1,this.hasSuffix=!1,this.type="default",this.size="medium",this.full=!1,this.disabled=!1,this.submit=!1}componentWillLoad(){this.handleSlotChange()}click(){this.button.click()}focus(t){this.button.focus(t)}blur(){this.button.blur()}handleSlotChange(){this.hasLabel=!!this.button.children,this.hasPrefix=!!this.button.querySelector('[slot="prefix"]'),this.hasSuffix=!!this.button.querySelector('[slot="suffix"]')}handleBlur(){this.hasFocus=!1,this.prestoBlur.emit()}handleFocus(){this.hasFocus=!0,this.prestoFocus.emit()}handleClick(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}render(){const t=!!this.href,i=e(Wi,null,e("span",{part:"prefix",class:"button__prefix"},e("slot",{onSlotchange:()=>this.handleSlotChange(),name:"prefix"})),e("span",{part:"label",class:"button__label"},e("slot",{onSlotchange:()=>this.handleSlotChange()})),e("span",{part:"suffix",class:"button__suffix"},e("slot",{onSlotchange:()=>this.handleSlotChange(),name:"suffix"}))),r=e("button",{part:"base",class:{button:!0,"button--default":"default"===this.type,"button--primary":"primary"===this.type,"button--success":"success"===this.type,"button--info":"info"===this.type,"button--warning":"warning"===this.type,"button--danger":"danger"===this.type,"button--text":"text"===this.type,"button--small":"small"===this.size,"button--medium":"medium"===this.size,"button--large":"large"===this.size,"button--disabled":this.disabled,"button--focused":this.hasFocus,"button--has-label":this.hasLabel,"button--has-prefix":this.hasPrefix,"button--has-suffix":this.hasSuffix},disabled:this.disabled,type:this.submit?"submit":"button",name:this.name,value:this.value,onBlur:()=>this.handleBlur,onFocus:()=>this.handleFocus,onClick:()=>this.handleClick},i),o=e("a",{part:"base",class:{button:!0,"button--default":"default"===this.type,"button--primary":"primary"===this.type,"button--success":"success"===this.type,"button--info":"info"===this.type,"button--warning":"warning"===this.type,"button--danger":"danger"===this.type,"button--text":"text"===this.type,"button--small":"small"===this.size,"button--medium":"medium"===this.size,"button--large":"large"===this.size,"button--disabled":this.disabled,"button--focused":this.hasFocus,"button--has-label":this.hasLabel,"button--has-prefix":this.hasPrefix,"button--has-suffix":this.hasSuffix},href:this.href,target:this.target,download:this.download,rel:this.target?"noreferrer noopener":void 0,role:"button","aria-disabled":this.disabled?"true":"false",tabindex:this.disabled?"-1":"0",onBlur:()=>this.handleBlur,onFocus:()=>this.handleFocus,onClick:()=>this.handleClick},i);return t?o:r}get button(){return i(this)}};Yi.style=":host{display:inline-block;width:auto;cursor:pointer}:host([full]){display:block}.button{display:inline-flex;align-items:stretch;justify-content:center;width:100%;border-style:solid;border-width:var(--presto-player-button-border-width);font-family:var(--plyr-font-family, inherit);font-weight:var(--presto-player-button-font-weight, 500);text-decoration:none;user-select:none;white-space:nowrap;vertical-align:middle;padding:0;transition:var(--presto--player-transition-fast, 150ms) background-color, var(--presto-player-transition-fast, 150ms) color, var(--presto-player-transition-fast, 150ms) border, var(--presto--player-transition-fast, 150ms) box-shadow;cursor:inherit;border-radius:var(--presto-player-button-border-radius, 0.25em)}.button::-moz-focus-inner{border:0}.button:focus{outline:none}.button.button--disabled{opacity:0.5;cursor:not-allowed}.button.button--disabled *{pointer-events:none}.button ::slotted(.presto--icon){pointer-events:none}.button__prefix,.button__suffix{flex:0 0 auto;display:flex;align-items:center}.button__label{display:flex;align-items:center}.button__label ::slotted(presto-icon){vertical-align:-2px}.button.button--default{background-color:var(--presto-player-color-white, #fff);border-color:var(--presto-player-color-gray-300, #d1d5db);color:var(--presto-player-color-gray-600, #4b5563)}.button.button--default:hover:not(.button--disabled){border-color:var(--presto-player-button-color, var(--plyr-color-main));color:var(--presto-player-button-color, var(--plyr-color-main));opacity:0.75}.button.button--default:focus:not(.button--disabled){border-color:var(--presto-player-button-color, var(--plyr-color-main));color:var(--presto-player-button-color, var(--plyr-color-main));opacity:1}.button.button--default:active:not(.button--disabled){border-color:var(--presto-player-button-color, var(--plyr-color-main));color:var(--presto-player-button-color, var(--plyr-color-main));opacity:1}.button.button--primary{background-color:var(--presto-player-button-color, var(--plyr-color-main));border-color:var(--presto-player-button-color, var(--plyr-color-main));color:var(--presto-player-button-text, #fff)}.button.button--primary:hover:not(.button--disabled){opacity:0.9}.button.button--primary:focus:not(.button--disabled){opacity:1}.button.button--primary:active:not(.button--disabled){opacity:1}.button--text{background-color:transparent;border-color:transparent;color:var(--presto-player-button-color, var(--plyr-color-main))}.button--text:hover:not(.button--disabled){background-color:transparent;border-color:transparent;opacity:0.8}.button--text:focus:not(.button--disabled){background-color:transparent;border-color:transparent;opacity:0.7}.button--text:active:not(.button--disabled){background-color:transparent;border-color:transparent;opacity:0.7}.button--small{font-size:var(--presto-player-button-font-size-small, 0.875em);height:var(--presto-player-button-height-small, 1.875em);line-height:calc(var(--presto-player-button-height-small, 1.875em) - var(--presto-player-button-border-width, 1px) * 2)}.button--medium{font-size:var(--presto-player-button-font-size-medium, 1em);height:var(--presto-player-button-height-medium, 2.5em);line-height:calc(var(--presto-player-button-height-medium, 2.5em) - var(--presto-player-button-border-width, 1px) * 2)}.button--large{font-size:var(--presto-player-button-font-size-large, 1.25em);height:var(--presto-player-button-height-large, 3.125em);line-height:calc(var(--presto-player-button-height-large, 3.125em) - var(--presto-player-button-border-width, 1px) * 2)}.button--full{display:block}.button--has-label.button--small .button__label{padding:0 var(--presto-player-button-spacing-small, 0.75em)}.button--has-label.button--medium .button__label{padding:0 var(--presto-player-button-spacing-medium, 1em)}.button--has-label.button--large .button__label{padding:0 var(--presto-player-button-spacing-large, 1.25em)}.button--has-prefix.button--small{padding-left:var(--presto-player-button-spacing-x-small, 0.5em)}.button--has-prefix.button--small .button__label{padding-left:var(--presto-player-button-spacing-x-small, 0.5em)}.button--has-prefix.button--medium{padding-left:var(--presto-player-button-spacing-small, 0.75em)}.button--has-prefix.button--medium .button__label{padding-left:var(--presto-player-button-spacing-small, 0.75em)}.button--has-prefix.button--large{padding-left:var(--presto-player-button-spacing-small, 0.75em)}.button--has-prefix.button--large .button__label{padding-left:var(--presto-player-button-spacing-small, 0.75em)}.button--has-suffix.button--small,.button--caret.button--small{padding-right:var(--presto-player-button-spacing-x-small, 0.5em)}.button--has-suffix.button--small .button__label,.button--caret.button--small .button__label{padding-right:var(--presto-player-button-spacing-x-small, 0.5em)}.button--has-suffix.button--medium,.button--caret.button--medium{padding-right:var(--presto-player-button-spacing-small, 0.75em)}.button--has-suffix.button--medium .button__label,.button--caret.button--medium .button__label{padding-right:var(--presto-player-button-spacing-small, 0.75em)}.button--has-suffix.button--large,.button--caret.button--large{padding-right:var(--presto-player-button-spacing-small, 0.75em)}.button--has-suffix.button--large .button__label,.button--caret.button--large .button__label{padding-right:var(--presto-player-button-spacing-small, 0.75em)}";let Ji=class{constructor(e){t(this,e)}render(){return e("span",{part:"base",class:"spinner","aria-busy":"true","aria-live":"polite"})}};Ji.style=":host{position:relative;box-sizing:border-box;--track-color:#0d131e20;--indicator-color:var(--plyr-color-main);--stroke-width:2px;display:inline-flex}:host *,:host *:before,:host *:after{box-sizing:inherit}.spinner{display:inline-block;width:1em;height:1em;border-radius:50%;border:solid var(--stroke-width) var(--track-color);border-top-color:var(--indicator-color);border-right-color:var(--indicator-color);animation:1s linear infinite spin}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}";let Gi=class{constructor(e){t(this,e)}render(){return e("video",{class:{"presto-player__player":!0,"plyr__video-embed":["youtube","vimeo"].includes(this.provider)},part:"video",ref:this.getRef,autoplay:this.autoplay,preload:this.preload,"data-poster":this.poster,playsinline:this.playsinline},e("source",{src:this.src}),!!this.tracks&&!!this.tracks.length&&this.tracks.map((t=>e("track",{kind:"captions",label:(null==t?void 0:t.label)?t.label:"Captions",src:null==t?void 0:t.src,srclang:(null==t?void 0:t.srcLang)?null==t?void 0:t.srcLang:"en"}))))}};Gi.style=":host{display:block}";let Ki=class{constructor(e){t(this,e)}getId(t){const e=/^.*(vimeo\.com\/)((channels\/[A-z]+\/)|(groups\/[A-z]+\/videos\/))?([0-9]+)/.exec(t||"");return(null==e?void 0:e[5])||""}render(){if(this.src)return"Android"!==m()||(t=window.navigator.standalone,i=window.navigator.userAgent.toLowerCase(),r=/safari/.test(i),/iphone|ipod|ipad/.test(i)?!t&&r||t||r:!i.includes("wv"))?e("div",{class:"plyr__video-embed",part:"embed",ref:this.getRef,"data-plyr-provider":"vimeo","data-plyr-embed-id":this.getId(this.src)}):e("div",{class:"presto-iframe-fallback-container"},e("iframe",{src:`https://player.vimeo.com/video/${this.getId(this.src)}?loop=false&byline=false&portrait=false&title=false&speed=true&transparent=0&gesture=media`,allowFullScreen:!0,allowTransparency:!0,allow:"autoplay",style:{width:"100%"},class:"presto-fallback-iframe"}));var t,i,r}};Ki.style=":host{display:block}";let Xi=class{constructor(e){t(this,e),this.reload=r(this,"reload",7)}handlePlayerChange(){this.player&&this.fixes()}fixes(){this.player.once("statechange",(t=>{var e,i,r,o,n;1===t.detail.code&&((null===(n=null===(o=null===(r=null===(i=null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.plyr)||void 0===i?void 0:i.config)||void 0===r?void 0:r.blockAttributes)||void 0===o?void 0:o.mutedPreview)||void 0===n?void 0:n.enabled)||(this.player.muted=!1))}))}getId(t){var e;const i=(t||"").match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/);return i&&11===(null===(e=null==i?void 0:i[2])||void 0===e?void 0:e.length)?i[2]:null}loadPlayer(){this.lazyLoad=!1,this.reloadPlayer=!0}componentDidRender(){this.reloadPlayer&&(this.reloadPlayer=!1,this.reload.emit("play"))}setWebView(){var t;let e=null===(t=window.navigator)||void 0===t?void 0:t.standalone,i=window.navigator.userAgent.toLowerCase(),r=/safari/.test(i),o=/iphone|ipod|ipad/.test(i);this.isWebView=o?!e&&!r:i.includes("wv")}componentWillLoad(){this.setWebView(),this.poster||(this.poster=`//img.youtube.com/vi/${this.getId(this.src)}/maxresdefault.jpg`),this.lazyLoad&&"iOS"===m()&&(this.lazyLoad=!1)}render(){return this.isWebView?e("div",{class:"fallback-container"},e("iframe",{src:this.src,allowFullScreen:!0,allowtransparency:!0,allow:"autoplay"})):this.lazyLoad?e("div",null,e("presto-video",{part:"video",getRef:this.getRef,poster:this.poster,src:"",provider:"youtube"}),e("div",{class:"presto-player__play-cover",onClick:()=>this.loadPlayer()})):e("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"]}}};Xi.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%}@supports not (aspect-ratio: 16/9){.plyr__video-embed,.plyr__video-wrapper--fixed-ratio{height:0 !important;padding-bottom:56.25%;position:relative}}";let Zi=class{constructor(e){t(this,e),this.layout="default"}waitForApi(t){var e=setInterval((function(){var i;(null===(i=null===window||void 0===window?void 0:window.gapi)||void 0===i?void 0:i.ytsubscribe)&&(clearInterval(e),t())}),50)}componentDidLoad(){const t=document.createElement("script");t.type="text/javascript",t.async=!1,t.src="https://apis.google.com/js/platform.js";const e=document.getElementsByTagName("script")[0];e&&e.parentNode.insertBefore(t,e),this.waitForApi((()=>{window.gapi.ytsubscribe.render(this.textInput,{channelId:this.channel,layout:this.layout,count:this.showCount?"default":"hidden"})}))}render(){return e("div",{class:"g-ytsubscribe",ref:t=>this.textInput=t})}};Zi.style=":host{display:block}";export{T as C,O as E,$i as P,y as a,b,_ as c,w as d,k as e,x as f,j as g,S as h,P as i,C as j,I as k,Qi as l,Yi as m,Ji as n,Gi as o,Ki as p,Xi as q,ni as r,Zi as s}
|
dist/components/web-components/p-2b27e74b.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
import{r as t,h as e,g as i,c as r,_ as o,a as n,d as a,e as s,f as l,i as p,j as u,k as c,l as d,m as h,H as v}from"./p-660ec1bb.js";const y=class{constructor(e){t(this,e)}componentWillLoad(){this.player&&(this.player.on("ended",(()=>this.setEnded())),this.player.on("timeupdate",(t=>this.setCurrentTime(t))))}setEnded(){this.ended=!0}setCurrentTime(t){var e,i;this.currentTime=null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.plyr.currentTime,this.duration=null===(i=null==t?void 0:t.detail)||void 0===i?void 0:i.plyr.duration}disconnectedCallback(){this.player&&(this.player.off("ended",this.setEnded),this.player.off("timeupdate",this.setCurrentTime))}render(){return e("presto-action-bar-controller",{ended:this.ended,config:this.config,currentTime:this.currentTime,duration:this.duration,direction:this.direction,youtube:this.youtube})}get el(){return i(this)}};function f({current:t,duration:e,showAfter:i=null}){if(0===i)return!0;if(null===i||!e)return!1;if(t===i)return!0;let r=t/e*100;return 99.9<r&&(r=100),console.log(r,i),r>=i}function g(t){let e,i=t.split(":");return i.length>1&&(e=60*parseInt(i[0])),parseInt(i[1])+parseInt(e)}function b(){var t=navigator.userAgent||navigator.vendor;return/windows phone/i.test(t)?"Windows Phone":/android/i.test(t)?"Android":"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1||/(iPad|iPhone|iPod)/gi.test(navigator.platform)?"iOS":"unknown"}y.style=":host{display:block}";const m=class{constructor(e){t(this,e),this.show=!1,this.youtubeRenderKey=1,this.percentagePassed=0}componentWillLoad(){this.handleDuration()}handleDuration(){this.handleTime()}handleEnded(t){var e;if(t){if(100!==(null===(e=null==this?void 0:this.config)||void 0===e?void 0:e.percentage_start))return;this.show=!0}}handlePercentagePassed(){this.percentagePassed=this.currentTime/this.duration*100}handleTime(){this.checkTime()}checkTime(){var t,e;this.show=!!(null===(t=null===window||void 0===window?void 0:window.wp)||void 0===t?void 0:t.blocks)||f({current:this.currentTime,duration:this.duration,showAfter:null===(e=this.config)||void 0===e?void 0:e.percentage_start})}handleButtonCountChange(t,e){(null==t?void 0:t.button_count)!==(null==e?void 0:e.button_count)&&this.youtubeRenderKey++,(null==t?void 0:t.enabled)&&this.handleDuration()}youtubeButton(){var t,i,r,o;if("youtube"===(null===(t=this.config)||void 0===t?void 0:t.button_type)&&(null===(i=this.youtube)||void 0===i?void 0:i.channelId))return e("presto-youtube-subscribe-button",{key:this.youtubeRenderKey,channel:null===(r=this.youtube)||void 0===r?void 0:r.channelId,showCount:null===(o=this.config)||void 0===o?void 0:o.button_count})}customButton(){var t,i,r,o,n,a,s,l,p,u,c;if("custom"===(null===(t=this.config)||void 0===t?void 0:t.button_type))return e("presto-player-button",{type:"primary",size:"small",href:null===(r=null===(i=this.config)||void 0===i?void 0:i.button_link)||void 0===r?void 0:r.url,target:(null===(n=null===(o=this.config)||void 0===o?void 0:o.button_link)||void 0===n?void 0:n.opensInNewTab)?"_blank":"_self",style:Object.assign(Object.assign({"--presto-player-button-border-radius":`${null===(a=this.config)||void 0===a?void 0:a.button_radius}px`},(null===(s=this.config)||void 0===s?void 0:s.button_color)?{"--presto-player-button-color":`${null===(l=this.config)||void 0===l?void 0:l.button_color}`}:{}),(null===(p=this.config)||void 0===p?void 0:p.button_text_color)?{"--presto-player-button-text":`${null===(u=this.config)||void 0===u?void 0:u.button_text_color}`}:{})},null===(c=this.config)||void 0===c?void 0:c.button_text)}render(){var t,i;return e("presto-action-bar-ui",{open:this.show,style:{"--presto-action-bar-background":(null===(t=this.config)||void 0===t?void 0:t.background_color)||"#1d1d1d"}},null===(i=this.config)||void 0===i?void 0:i.text,e("div",{slot:"button"},this.youtubeButton(),this.customButton()))}get el(){return i(this)}static get watchers(){return{duration:["handleDuration","handlePercentagePassed"],ended:["handleEnded"],currentTime:["handlePercentagePassed","handleTime"],config:["handleButtonCountChange"]}}};m.style=":host{display:block}";const _=class{constructor(e){t(this,e)}render(){return e("div",{class:{bar:!0,"bar--open":this.open}},e("span",{part:"content",class:"bar__content"},e("slot",null)),e("span",{part:"button",class:"bar__button"},e("slot",{name:"button"})))}};_.style=":host{display:block;overflow:hidden}.bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;background:var(--presto-action-bar-background, #1d1d1d);color:#fff;padding:0 var(--presto-action-bar-padding, 6px);line-height:1em;font-size:16px;margin-top:-100%;transition:margin var(--presto-action-bar-animation-speed, 0.5s) ease-in-out;transform:translate3d(0)}.bar.bar--open{margin-top:0}.bar__button{margin:var(--presto-action-bar-padding, 6px);display:flex;align-items:center}.bar__content{margin:var(--presto-action-bar-padding, 6px);width:100%;text-align:center}@media screen and (min-width: 480px){.bar__content{width:auto}}";const w=class{constructor(e){t(this,e)}componentWillLoad(){this.poster=this.poster||this.thumbnail}render(){return e("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})}},k=class{constructor(e){t(this,e)}componentWillLoad(){this.player&&(this.player.on("ended",(()=>this.setEnded())),this.player.on("timeupdate",(t=>this.setCurrentTime(t))))}setEnded(){this.ended=!0}setCurrentTime(t){var e,i;this.currentTime=null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.plyr.currentTime,this.duration=null===(i=null==t?void 0:t.detail)||void 0===i?void 0:i.plyr.duration}disconnectedCallback(){this.player&&(this.player.off("ended",this.setEnded),this.player.off("timeupdate",this.setCurrentTime))}render(){var t;return e("presto-cta-overlay-controller",{ended:this.ended,currentTime:this.currentTime,duration:this.duration,direction:this.direction,cta:null===(t=this.preset)||void 0===t?void 0:t.cta,i18n:this.i18n})}};k.style=":host{display:block}";const x=class{constructor(e){t(this,e),this.playVideo=r(this,"playVideo",7),this.pauseVideo=r(this,"pauseVideo",7),this.restartVideo=r(this,"restartVideo",7),this.percentagePassed=0}componentWillLoad(){this.handleDuration()}handleEnded(t){var e;if(t){if(100!==(null===(e=null==this?void 0:this.cta)||void 0===e?void 0:e.percentage))return;this.show=!0}}handleDuration(){var t;this.enabled=!this.skipped&&(null===(t=null==this?void 0:this.cta)||void 0===t?void 0:t.enabled),this.handleTime()}handlePercentagePassed(){this.percentagePassed=this.currentTime/this.duration*100}handleEnabled(){this.show&&(this.skipped||this.pauseVideo.emit(!0))}handleTime(){var t;this.enabled&&(this.skipped||100!==(null===(t=null==this?void 0:this.cta)||void 0===t?void 0:t.percentage)&&this.checkTime())}checkTime(){var t;this.show=f({current:this.currentTime,duration:this.duration,showAfter:(null===(t=null==this?void 0:this.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.restartVideo.emit()}render(){var t,i,r,o,n,a,s,l,p,u,c,d,h,v;if(this.show)return e("presto-cta-overlay-ui",{style:Object.assign(Object.assign(Object.assign({"--presto-player-button-border-radius":`${null===(t=null==this?void 0:this.cta)||void 0===t?void 0:t.button_radius}px`},(null===(i=null==this?void 0:this.cta)||void 0===i?void 0:i.background_opacity)?{"--presto-player-cta-background-opacity":""+(null===(r=null==this?void 0:this.cta)||void 0===r?void 0:r.background_opacity)/100}:{}),(null===(o=null==this?void 0:this.cta)||void 0===o?void 0:o.button_color)?{"--presto-player-button-color":`${null===(n=null==this?void 0:this.cta)||void 0===n?void 0:n.button_color}`}:{}),(null===(a=null==this?void 0:this.cta)||void 0===a?void 0:a.button_text_color)?{"--presto-player-button-text":`${null===(s=null==this?void 0:this.cta)||void 0===s?void 0:s.button_text_color}`}:{}),direction:this.direction,class:"cta-overlay",i18n:this.i18n,headline:null===(l=null==this?void 0:this.cta)||void 0===l?void 0:l.headline,"bottom-text":null===(p=null==this?void 0:this.cta)||void 0===p?void 0:p.bottom_text,"show-button":null===(u=null==this?void 0:this.cta)||void 0===u?void 0:u.show_button,buttonLink:null===(c=null==this?void 0:this.cta)||void 0===c?void 0:c.button_link,allowSkip:!this.ended&&(null===(d=null==this?void 0:this.cta)||void 0===d?void 0:d.show_skip),allowRewatch:this.ended&&(null===(h=null==this?void 0:this.cta)||void 0===h?void 0:h.show_rewatch),"button-text":null===(v=null==this?void 0:this.cta)||void 0===v?void 0:v.button_text,onSkip:()=>this.skip(),onRewatch:()=>this.rewatch()})}static get watchers(){return{ended:["handleEnded"],duration:["handleDuration","handlePercentagePassed"],currentTime:["handlePercentagePassed","handleEnabled","handleTime"]}}};x.style=":host{display:block}";const z=function(t,e,i){var r=function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}({minFontSize:-1/0,maxFontSize:1/0,container:t},i),o=function(t){var i=e||1,o=function(){var e;t.style.fontSize=Math.max(Math.min(((null==r||null===(e=r.container)||void 0===e?void 0:e.clientWidth)||0)/(10*i),parseFloat(r.maxFontSize)),parseFloat(r.minFontSize))+"px"};if(o(),"ResizeObserver"in window==0)var n=import("./p-97e2763b.js").then((function(){window.ResizeObserver=n.ResizeObserver,new ResizeObserver(o).observe(r.container)}));else new ResizeObserver(o).observe(r.container)};if(t.length)for(var n=0;n<t.length;n++)o(t[n]);else o(t);return t},T=class{constructor(e){t(this,e),this.skip=r(this,"skip",7),this.rewatch=r(this,"rewatch",7)}componentDidLoad(){z(this.textInput,3,{maxFontSize:20,minFontSize:8})}handleCTAClick(t){var e;(null===(e=this.buttonLink)||void 0===e?void 0:e.url)&&(t.preventDefault(),t.stopPropagation(),this.handleLink())}handleLink(){var t,e,i;(null===(t=this.buttonLink)||void 0===t?void 0:t.opensInNewTab)?window.open(null===(e=this.buttonLink)||void 0===e?void 0:e.url,"_blank"):window.location.href=null===(i=this.buttonLink)||void 0===i?void 0:i.url}render(){var t,i,r,o,n;return e("div",{class:"wrapper",ref:t=>this.textInput=t},e("div",{onClick:t=>this.handleCTAClick(t),class:`overlay ${"rtl"===this.direction?"rtl":""} ${(null===(t=this.buttonLink)||void 0===t?void 0:t.url)?"has-link":""}`},e("div",{class:"content"},e("h1",{part:"cta-headline"},this.headline||this.defaultHeadline),this.bottomText&&e("p",{part:"cta-bottom-text",innerHTML:this.bottomText}),this.showButton&&e("presto-player-button",{full:!0,onClick:t=>this.handleCTAClick(t),part:"cta-button",href:null===(i=null==this?void 0:this.buttonLink)||void 0===i?void 0:i.url,target:(null===(r=null==this?void 0:this.buttonLink)||void 0===r?void 0:r.opensInNewTab)?"_blank":"_self",class:"button",type:"primary"},this.buttonText))),!!this.allowRewatch&&e("div",{class:"rewatch",onClick:t=>{t.preventDefault(),t.stopImmediatePropagation(),this.rewatch.emit()}},e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round",class:"icon icon-corner-up-left"},e("polyline",{points:"9 14 4 9 9 4"}),e("path",{d:"M20 20v-7a4 4 0 0 0-4-4H4"})),null===(o=null==this?void 0:this.i18n)||void 0===o?void 0:o.rewatch),!!this.allowSkip&&e("div",{class:"skip",onClick:t=>{t.preventDefault(),this.skip.emit()}},null===(n=null==this?void 0:this.i18n)||void 0===n?void 0:n.skip," →"))}};T.style=':host{display:block;font-size:16px;width:100%;height:100%;position:absolute;top:0;left:0;bottom:0;right:0;width:100%;height:100%;z-index:99999;user-select:none}*{box-sizing:border-box}a{color:#fff}.wrapper{height:100%;position:relative;color:#fff;font-family:var(--plyr-font-family, "San Francisco", -apple-system, BlinkMacSystemFont, ".SFNSText-Regular", Avenir, "Avenir Next", "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif)}.overlay{position:relative;display:flex;align-items:center;justify-content:center;padding:48px;height:100%}.overlay.has-link{cursor:pointer}.overlay:before{content:"";border-radius:var(--presto-player-border-radius, 0);opacity:var(--presto-player-cta-background-opacity, 0.75);position:absolute;top:0;left:0;bottom:0;right:0;background-color:var(--presto-player-cta-background, #000);z-index:-1;box-shadow:inset 0 0 100px black}.content{width:80%;max-width:600px}.content *~*{margin-top:22px}button{background:var(--plyr-color-main, #000);appearance:none;padding:6px 12px;align-items:center;display:inline-flex;border-width:1px;border-color:transparent;color:#fff;border-radius:0;cursor:pointer;font-size:0.8em;border-radius:0 var(--presto-player-cta-border-radius, 0) var(--presto-player-cta-border-radius) 0}@media screen and (min-width: 700px){button{padding:10px 18px}}button:focus{box-shadow:white 0px 0px 0px 2px, var(--plyr-color-main, #000) 0px 0px 0px 4px, rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;z-index:1}button:focus,button:hover{outline:none}h1{font-size:1.5em;font-weight:500;margin:0;line-height:1.1em}.skip,.rewatch{font-size:0.8em;font-weight:600;position:absolute;top:0;right:0;padding:4%;cursor:pointer}.rewatch{display:inline-flex;align-items:center;right:auto;left:0}.rewatch .icon{margin-right:5px}p{font-size:0.85em;margin:0;margin-top:1.5em;line-height:1.4em;opacity:0.75}';const j=class{constructor(e){t(this,e),this.position="top-right"}closestElement(t,e){return e&&e!=document&&e!=window&&e.closest(t)||e&&this.closestElement(t,e.getRootNode().host)}componentDidLoad(){let t=this.closestElement("presto-player",this.el);z(this.text,3,{maxFontSize:16,minFontSize:10,container:t})}render(){return e(this.href?"a":"span",{class:{"overlay-text":!0,"overlay--top-left":"top-left"===this.position,"overlay--top-right":"top-right"===this.position},href:this.href,target:this.target,part:"overlay-text",ref:t=>this.text=t},e("slot",null))}get el(){return i(this)}};j.style=":host{display:block}.overlay-text{text-decoration:none;display:inline-block;user-select:none;line-height:1;opacity:var(--presto-dynamic-overlay-opacity, 1);font-size:var(--presto-dynamic-overlay-font-size, 18px);padding:var(--presto-dynamic-overlay-padding, 0.65em 0.85em);font-weight:var(--presto-dynamic-overlay-font-weight, 500);border-radius:var(--presto-dynamic-overlay-radius, 0.25em);background:var(--presto-dynamic-overlay-background, rgba(0, 0, 0, 0.8));color:var(--presto-dynamic-overlay-color, #fff);opacity:var(--presto-dynamic-overlay-opacity, 1);word-break:break-word}a.overlay-text{cursor:pointer}";const S=class{constructor(e){t(this,e),this.reloadComponent=r(this,"reloadComponent",7),this.watermarkRef={left:null,right:null},this.destroy=!1,this.refs={}}componentDidLoad(){this.player&&this.player.on("timeupdate",(t=>{this.currentTime=t.detail.plyr.currentTime,this.checkValidity()}))}checkValidity(){var t,e,i,r,o,n,a,s,l,p;this.player.playing&&((null===(t=null==this?void 0:this.overlays)||void 0===t?void 0:t.length)||(null===(i=null===(e=this.preset)||void 0===e?void 0:e.watermark)||void 0===i?void 0:i.enabled))&&((null===(r=this.container)||void 0===r?void 0:r.offsetParent)&&(null===(o=this.topLeft)||void 0===o?void 0:o.offsetParent)&&(null===(n=this.topRight)||void 0===n?void 0:n.offsetParent)||this.reloadComponent.emit(),Object.keys(this.refs||{}).forEach((t=>{const{overlay:e,component:i}=this.refs[t];this.checkComponent(i,e.text,(()=>this.reloadComponent.emit()))})),this.shouldShowWatermark("top-left")&&this.watermarkRef.left&&this.checkComponent(this.watermarkRef.left,null===(s=null===(a=this.preset)||void 0===a?void 0:a.watermark)||void 0===s?void 0:s.text,(()=>this.reloadComponent.emit())),this.shouldShowWatermark("top-right")&&this.watermarkRef.right&&this.checkComponent(this.watermarkRef.right,null===(p=null===(l=this.preset)||void 0===l?void 0:l.watermark)||void 0===p?void 0:p.text,(()=>this.reloadComponent.emit())))}checkComponent(t,e,i){if(!(null==t?void 0:t.offsetParent))return i();if(!t.shadowRoot.querySelector("slot"))return i();if(this.player&&this.player.playing){const r=t.shadowRoot.querySelector("slot").assignedNodes()[0];if(r){if(r.parentElement.innerHTML!=e)return i();const t=getComputedStyle(r.parentElement.shadowRoot.querySelector(".overlay-text"));if(parseInt(t.fontSize,10)<10)return i();const o=function(t){var e=t.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i);return e?[e[1],e[2],e[3],"1"]:(e=t.match(/^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*((0.)?\d+)\s*\)$/i))?[e[1],e[2],e[3],e[4]]:void 0}(t.color);if("1"!==(null==o?void 0:o[3]))return i()}}}shouldShowOverlay(t){if(void 0!==this.currentTime)return!(this.currentTime<g(null==t?void 0:t.startTime)||this.currentTime>g(null==t?void 0:t.endTime))}renderOverlay(t){var i,r;return e("presto-dynamic-overlay-ui",{class:{visible:this.shouldShowOverlay(t)},ref:e=>this.refs[t.id]={overlay:t,component:e},key:t.id,position:t.position,href:null===(i=null==t?void 0:t.link)||void 0===i?void 0:i.url,target:(null===(r=null==t?void 0:t.link)||void 0===r?void 0:r.opensInNewTab)?"_blank":"_self",innerHTML:this.shouldShowOverlay(t)?t.text:"",style:{"--presto-dynamic-overlay-color":(null==t?void 0:t.color)||"#fff","--presto-dynamic-overlay-background":(null==t?void 0:t.backgroundColor)||"#333","--presto-dynamic-overlay-opacity":(null==t?void 0:t.opacity)?(t.opacity/100).toString():"1"}})}shouldShowWatermark(t){var e,i,r;if(!(null===(i=null===(e=this.preset)||void 0===e?void 0:e.watermark)||void 0===i?void 0:i.enabled))return!1;const o=null===(r=this.preset)||void 0===r?void 0:r.watermark;return"randomize"===o.position?Math.floor((this.player.currentTime||0)/10)%2==0?"top-left"===t:"top-right"===t:o.position===t||!o.position&&"top-right"===t}render(){var t,i,r,o,n,a,s,l,p,u,c;if(this.enabled&&((null===(t=null==this?void 0:this.overlays)||void 0===t?void 0:t.length)||(null===(r=null===(i=this.preset)||void 0===i?void 0:i.watermark)||void 0===r?void 0:r.enabled)))return e("div",{class:"overlays",ref:t=>this.container=t},e("div",{class:"top-left",ref:t=>this.topLeft=t},!!this.shouldShowWatermark("top-left")&&e("presto-dynamic-overlay-ui",{ref:t=>this.watermarkRef.left=t,style:{"--presto-dynamic-overlay-color":(null===(o=this.preset.watermark)||void 0===o?void 0:o.color)||"#fff","--presto-dynamic-overlay-background":(null===(n=this.preset.watermark)||void 0===n?void 0:n.backgroundColor)||"#333","--presto-dynamic-overlay-opacity":(null===(a=this.preset.watermark)||void 0===a?void 0:a.opacity)?(this.preset.watermark.opacity/100).toString():"1"},class:"visible",position:"top-left",innerHTML:this.preset.watermark.text}),!!(null===(s=null==this?void 0:this.overlays)||void 0===s?void 0:s.length)&&this.overlays.map((t=>"top-left"!==t.position?"":this.renderOverlay(t)))),e("div",{class:"top-right",ref:t=>this.topRight=t},!!this.shouldShowWatermark("top-right")&&e("presto-dynamic-overlay-ui",{ref:t=>this.watermarkRef.right=t,style:{"--presto-dynamic-overlay-color":(null===(l=this.preset.watermark)||void 0===l?void 0:l.color)||"#fff","--presto-dynamic-overlay-background":(null===(p=this.preset.watermark)||void 0===p?void 0:p.backgroundColor)||"#333","--presto-dynamic-overlay-opacity":(null===(u=this.preset.watermark)||void 0===u?void 0:u.opacity)?(this.preset.watermark.opacity/100).toString():"1"},class:"visible",position:"top-right",innerHTML:this.preset.watermark.text}),!!(null===(c=null==this?void 0:this.overlays)||void 0===c?void 0:c.length)&&this.overlays.map((t=>"top-right"!==t.position?"":this.renderOverlay(t)))))}get el(){return i(this)}};S.style=".top-left,.top-right{position:absolute;display:block;padding:20px;max-width:45%;z-index:20;display:flex;flex-direction:column;flex-wrap:wrap}.top-left{top:0;left:0}.top-right{top:0;right:0;align-items:flex-end}presto-dynamic-overlay-ui{overflow:hidden;height:0;opacity:0;transition:height 0ms 400ms, opacity 400ms 0ms}presto-dynamic-overlay-ui.visible{margin-bottom:10px;height:auto;opacity:1;transition:height 0ms 0ms, opacity 500ms 0ms}";const P=class{constructor(e){t(this,e)}componentWillLoad(){this.player&&(this.player.on("ended",(()=>this.setEnded())),this.player.on("timeupdate",(t=>this.setCurrentTime(t))))}setEnded(){this.ended=!0}setCurrentTime(t){var e,i;this.currentTime=null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.plyr.currentTime,this.duration=null===(i=null==t?void 0:t.detail)||void 0===i?void 0:i.plyr.duration}disconnectedCallback(){this.player&&(this.player.off("ended",this.setEnded),this.player.off("timeupdate",this.setCurrentTime))}render(){var t;return e("presto-email-overlay-controller",{ended:this.ended,currentTime:this.currentTime,videoId:this.videoId,duration:this.duration,direction:this.direction,emailCollection:null===(t=this.preset)||void 0===t?void 0:t.email_collection,i18n:this.i18n})}};P.style=":host{display:block}";const C=class{constructor(e){t(this,e),this.playVideo=r(this,"playVideo",7),this.pauseVideo=r(this,"pauseVideo",7),this.restartVideo=r(this,"restartVideo",7),this.percentagePassed=0}setStorage(t){window.localStorage.setItem("presto.videos.email_collection",JSON.stringify({[this.videoId]:t}))}getStorage(){return window.localStorage.getItem("presto.videos.email_collection")}componentWillLoad(){this.handleDuration()}handleDuration(){var t;this.enabled=!this.getStorage()&&(null===(t=null==this?void 0:this.emailCollection)||void 0===t?void 0:t.enabled),this.handleTimeCheck()}handleTimeCheck(){this.enabled&&(this.getStorage()||this.checkTime())}handleShowChange(){this.show&&this.pauseVideo.emit(!0)}checkTime(){var t;this.show=f({current:this.currentTime,duration:this.duration,showAfter:(null===(t=null==this?void 0:this.emailCollection)||void 0===t?void 0:t.percentage)||0})}async getNonce(){var t;return fetch(`${null===(t=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===t?void 0:t.ajaxurl}?action=presto_refresh_progress_nonce`)}async submit(t){var e;this.loading=!0,this.error="";const i=await this.getNonce(),{data:r}=await i.json();try{let i=await fetch(null===(e=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===e?void 0:e.ajaxurl,{method:"post",body:new URLSearchParams(Object.assign({action:"presto_player_email_submit",nonce:r,preset_id:this.presetId,video_id:this.videoId},(null==t?void 0:t.detail)||{}))});const{success:o,data:n}=await i.json();if(!o)throw n;this.setStorage("collected"),this.show=!1,this.playVideo.emit()}catch(t){const e=null==t?void 0:t[0];e&&"string"==typeof e&&(this.error=e)}finally{this.loading=!1}}skip(){this.setStorage("skipped"),this.show=!1,this.playVideo.emit()}render(){var t,i,r,o;if(this.show)return e("presto-email-overlay-ui",{direction:this.direction,class:"email-overlay",headline:null===(t=null==this?void 0:this.emailCollection)||void 0===t?void 0:t.headline,bottomText:null===(i=null==this?void 0:this.emailCollection)||void 0===i?void 0:i.bottom_text,allowSkip:null===(r=null==this?void 0:this.emailCollection)||void 0===r?void 0:r.allow_skip,buttonText:null===(o=null==this?void 0:this.emailCollection)||void 0===o?void 0:o.button_text,isLoading:this.loading,errorMessage:this.error,onSubmitForm:t=>this.submit(t),onSkip:()=>this.skip(),i18n:this.i18n})}static get watchers(){return{duration:["handleDuration"],currentTime:["handleTimeCheck","handleShowChange"]}}};C.style=":host{display:block}";const O=class{constructor(e){t(this,e),this.submitForm=r(this,"submitForm",7),this.skip=r(this,"skip",7)}handleSubmit(t){this.submitForm.emit({email:this.email}),t.preventDefault()}componentDidLoad(){z(this.textInput,3,{maxFontSize:20,minFontSize:8})}handleChange(t){this.email=t.target.value}render(){var t,i,r,o;return e("div",{class:"overlay "+("rtl"===this.direction?"rtl":""),ref:t=>this.textInput=t},e("div",{class:"content"},e("h1",null,this.headline||(null===(t=null==this?void 0:this.i18n)||void 0===t?void 0:t.emailDefaultHeadline)),this.isLoading?e("presto-player-spinner",null):e("form",{onSubmit:t=>this.handleSubmit(t)},e("input",{type:"email",placeholder:null===(i=null==this?void 0:this.i18n)||void 0===i?void 0:i.emailPlaceholder,value:this.email,onInput:t=>this.handleChange(t),required:!0}),e("button",{type:"submit"},this.buttonText||(null===(r=null==this?void 0:this.i18n)||void 0===r?void 0:r.play))),this.errorMessage&&e("p",{class:"error"},this.errorMessage),this.bottomText&&e("p",{innerHTML:this.bottomText}),!!this.allowSkip&&e("div",{class:"skip",onClick:()=>{this.skip.emit()}},null===(o=null==this?void 0:this.i18n)||void 0===o?void 0:o.skip," →")))}};O.style=':host{display:block;font-size:16px;width:100%;height:100%;position:absolute;top:0;left:0;bottom:0;right:0;width:100%;height:100%;z-index:99999}*{box-sizing:border-box}a{color:#fff}.overlay{position:relative;display:flex;align-items:center;text-align:center;justify-content:center;padding:48px;color:#fff;font-family:var(--plyr-font-family, "San Francisco", -apple-system, BlinkMacSystemFont, ".SFNSText-Regular", Avenir, "Avenir Next", "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif);height:100%}.overlay:before{content:"";border-radius:var(--presto-player-border-radius, 0);opacity:var(--presto-player-email-background-opacity, 0.75);position:absolute;top:0;left:0;bottom:0;right:0;background-color:var(--presto-player-email-background, #000);z-index:-1;box-shadow:inset 0 0 100px black}.content{width:20em}form{display:flex;align-items:stretch;justify-content:center}input{background:#fff;border:none;font-size:0.8em;line-height:20px;padding:6px 8px;border-radius:0;border-width:1px;border-style:solid;border-color:transparent;border-radius:var(--presto-player-email-border-radius, 0) 0 0 var(--presto-player-email-border-radius);flex:1}@media screen and (min-width: 700px){input{padding:10px 14px}}input:focus{border-color:var(--plyr-color-main, #000);z-index:1}input:focus,input:hover{outline:none}.rtl input{border-radius:0 var(--presto-player-email-border-radius, 0) var(--presto-player-email-border-radius) 0}button{background:var(--plyr-color-main, #000);appearance:none;padding:6px 12px;align-items:center;display:inline-flex;border-width:1px;border-color:transparent;color:#fff;border-radius:0;cursor:pointer;font-size:0.8em;border-radius:0 var(--presto-player-email-border-radius, 0) var(--presto-player-email-border-radius) 0}@media screen and (min-width: 700px){button{padding:10px 18px}}button:focus{box-shadow:white 0px 0px 0px 2px, var(--plyr-color-main, #000) 0px 0px 0px 4px, rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;z-index:1}button:focus,button:hover{outline:none}.rtl button{border-radius:var(--presto-player-email-border-radius, 0) 0 0 var(--presto-player-email-border-radius)}h1{font-size:1.5em;font-weight:500;margin:0 0 22px 0;max-width:600px;line-height:1.1em}.skip{font-size:0.8em;font-weight:600;position:absolute;top:0;right:0;padding:4%;cursor:pointer}p{font-size:0.7em;margin:0;margin-top:1.5em}';const I=class{constructor(e){t(this,e),this.playVideo=r(this,"playVideo",7)}render(){var t,i,r,o,n,a,s,l,p;return e("div",{class:"presto-player__muted-overlay",onClick:()=>{this.mutedPreview=!1,this.playVideo.emit()}},(null===(t=this.preset)||void 0===t?void 0:t["play-large"])&&e("div",{class:"plyr__control plyr__control--overlaid","data-plyr":"play","aria-label":"Play",part:"muted-overlay-play"},e("svg",{id:"plyr-play",viewBox:"0 0 18 18"},e("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"})),e("span",{class:"plyr__sr-only"},"Play")),(null===(i=this.mutedOverlay)||void 0===i?void 0:i.enabled)&&(null===(r=this.mutedOverlay)||void 0===r?void 0:r.src)?e("div",{class:"presto-player__overlay is-image",part:"muted-overlay-image",style:{width:`${(null===(o=this.mutedOverlay)||void 0===o?void 0:o.width)||50}%`,left:100*((null===(a=null===(n=this.mutedOverlay)||void 0===n?void 0:n.focalPoint)||void 0===a?void 0:a.x)||.5)+"%",top:100*((null===(l=null===(s=this.mutedOverlay)||void 0===s?void 0:s.focalPoint)||void 0===l?void 0:l.y)||.5)+"%"}},e("img",{src:null===(p=this.mutedOverlay)||void 0===p?void 0:p.src,style:{transform:"translateX(-50%) translateY(-50%)"}})):"")}};I.style=":host{display:block}";var A=["premium","referrerPolicy"];function M(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function E(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function F(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function L(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,r)}return i}function N(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?L(Object(i),!0).forEach((function(e){F(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):L(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var R={addCSS:!0,thumbWidth:15,watch:!0};function B(t,e){return function(){return Array.from(document.querySelectorAll(e)).includes(this)}.call(t,e)}var D=function(t){return null!=t?t.constructor:null},q=function(t,e){return!!(t&&e&&t instanceof e)},H=function(t){return D(t)===String},V=function(t){return Array.isArray(t)},$=function(t){return q(t,NodeList)},U=H,Q=V,W=$,Y=function(t){return q(t,Element)},J=function(t){return q(t,Event)},G=function(t){return function(t){return null==t}(t)||(H(t)||V(t)||$(t))&&!t.length||function(t){return D(t)===Object}(t)&&!Object.keys(t).length};var K,X,Z,tt=function(){function t(e,i){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),Y(e)?this.element=e:U(e)&&(this.element=document.querySelector(e)),Y(this.element)&&G(this.element.rangeTouch)&&(this.config=N({},R,{},i),this.init())}return function(t,e,i){e&&E(t.prototype,e),i&&E(t,i)}(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 e=this,i=t?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach((function(t){e.element[i](t,(function(t){return e.set(t)}),!1)}))}},{key:"get",value:function(e){if(!t.enabled||!J(e))return null;var i,r=e.target,o=e.changedTouches[0],n=parseFloat(r.getAttribute("min"))||0,a=parseFloat(r.getAttribute("max"))||100,s=parseFloat(r.getAttribute("step"))||1,l=r.getBoundingClientRect(),p=100/l.width*(this.config.thumbWidth/2)/100;return 0>(i=100/l.width*(o.clientX-l.left))?i=0:100<i&&(i=100),50>i?i-=(100-2*i)*p:50<i&&(i+=2*(i-50)*p),n+function(t,e){if(1>e){var i=function(t){var e="".concat(t).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return e?Math.max(0,(e[1]?e[1].length:0)-(e[2]?+e[2]:0)):0}(e);return parseFloat(t.toFixed(i))}return Math.round(t/e)*e}(i/100*(a-n),s)}},{key:"set",value:function(e){t.enabled&&J(e)&&!e.target.disabled&&(e.preventDefault(),e.target.value=this.get(e),function(t,e){if(t&&e){var i=new Event(e,{bubbles:!0});t.dispatchEvent(i)}}(e.target,"touchend"===e.type?"change":"input"))}}],[{key:"setup",value:function(e){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=null;if(G(e)||U(e)?r=Array.from(document.querySelectorAll(U(e)?e:'input[type="range"]')):Y(e)?r=[e]:W(e)?r=Array.from(e):Q(e)&&(r=e.filter(Y)),G(r))return null;var o=N({},R,{},i);if(U(e)&&o.watch){var n=new MutationObserver((function(i){Array.from(i).forEach((function(i){Array.from(i.addedNodes).forEach((function(i){Y(i)&&B(i,e)&&new t(i,o)}))}))}));n.observe(document.body,{childList:!0,subtree:!0})}return r.map((function(e){return new t(e,i)}))}},{key:"enabled",get:function(){return"ontouchstart"in document.documentElement}}]),t}(),et=function(t){return null!=t?t.constructor:null},it=function(t,e){return Boolean(t&&e&&t instanceof e)},rt=function(t){return null==t},ot=function(t){return et(t)===Object},nt=function(t){return et(t)===String},at=function(t){return et(t)===Function},st=function(t){return Array.isArray(t)},lt=function(t){return it(t,NodeList)},pt=function(t){return rt(t)||(nt(t)||st(t)||lt(t))&&!t.length||ot(t)&&!Object.keys(t).length},ut=rt,ct=ot,dt=function(t){return et(t)===Number&&!Number.isNaN(t)},ht=nt,vt=function(t){return et(t)===Boolean},yt=at,ft=st,gt=lt,bt=function(t){return null!==t&&"object"==l(t)&&1===t.nodeType&&"object"==l(t.style)&&"object"==l(t.ownerDocument)},mt=function(t){return it(t,Event)},_t=function(t){return it(t,KeyboardEvent)},wt=function(t){return it(t,TextTrack)||!rt(t)&&nt(t.kind)},kt=function(t){if(it(t,window.URL))return!0;if(!nt(t))return!1;var e=t;t.startsWith("http://")&&t.startsWith("https://")||(e="http://".concat(t));try{return!pt(new URL(e).hostname)}catch(t){return!1}},xt=pt,zt=(K=document.createElement("span"),X={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},Z=Object.keys(X).find((function(t){return void 0!==K.style[t]})),!!ht(Z)&&X[Z]);function Tt(t,e){setTimeout((function(){try{t.hidden=!0,t.hidden=!1}catch(t){}}),e)}var jt={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 St(t,e){return e.split(".").reduce((function(t,e){return t&&t[e]}),t)}function Pt(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length,i=new Array(e>1?e-1:0),r=1;r<e;r++)i[r-1]=arguments[r];if(!i.length)return t;var o=i.shift();return ct(o)?(Object.keys(o).forEach((function(e){ct(o[e])?(Object.keys(t).includes(e)||Object.assign(t,a({},e,{})),Pt(t[e],o[e])):Object.assign(t,a({},e,o[e]))})),Pt.apply(void 0,[t].concat(i))):t}function Ct(t,e){Array.from(t.length?t:[t]).reverse().forEach((function(t,i){var r=i>0?e.cloneNode(!0):e,o=t.parentNode,n=t.nextSibling;r.appendChild(t),n?o.insertBefore(r,n):o.appendChild(r)}))}function Ot(t,e){bt(t)&&!xt(e)&&Object.entries(e).filter((function(t){var e=o(t,2);return!ut(e[1])})).forEach((function(e){var i=o(e,2);return t.setAttribute(i[0],i[1])}))}function It(t,e,i){var r=document.createElement(t);return ct(e)&&Ot(r,e),ht(i)&&(r.innerText=i),r}function At(t,e,i,r){bt(e)&&e.appendChild(It(t,i,r))}function Mt(t){gt(t)||ft(t)?Array.from(t).forEach(Mt):bt(t)&&bt(t.parentNode)&&t.parentNode.removeChild(t)}function Et(t){if(bt(t))for(var e=t.childNodes.length;e>0;)t.removeChild(t.lastChild),e-=1}function Ft(t,e){return bt(e)&&bt(e.parentNode)&&bt(t)?(e.parentNode.replaceChild(t,e),t):null}function Lt(t,e){if(!ht(t)||xt(t))return{};var i={},r=Pt({},e);return t.split(",").forEach((function(t){var e=t.trim(),n=e.replace(".",""),a=e.replace(/[[\]]/g,"").split("="),s=o(a,1)[0],l=a.length>1?a[1].replace(/["']/g,""):"";switch(e.charAt(0)){case".":i.class=ht(r.class)?"".concat(r.class," ").concat(n):n;break;case"#":i.id=e.replace("#","");break;case"[":i[s]=l}})),Pt(r,i)}function Nt(t,e){if(bt(t)){var i=e;vt(i)||(i=!t.hidden),t.hidden=i}}function Rt(t,e,i){if(gt(t))return Array.from(t).map((function(t){return Rt(t,e,i)}));if(bt(t)){var r="toggle";return void 0!==i&&(r=i?"add":"remove"),t.classList[r](e),t.classList.contains(e)}return!1}function Bt(t,e){return bt(t)&&t.classList.contains(e)}function Dt(t,e){var i=Element.prototype;return(i.matches||i.webkitMatchesSelector||i.mozMatchesSelector||i.msMatchesSelector||function(){return Array.from(document.querySelectorAll(e)).includes(this)}).call(t,e)}function qt(t){return this.elements.container.querySelectorAll(t)}function Ht(t){return this.elements.container.querySelector(t)}function Vt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];bt(t)&&(t.focus({preventScroll:!0}),e&&Rt(t,this.config.classNames.tabFocus))}var $t={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},Ut={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check:function(t,e,i){var r=Ut[t]||"html5"!==e;return{api:r,ui:r&&Ut.rangeInput&&("video"!==t||!jt.isIPhone||jt.isIPhone&&i&&Ut.playsinline)}},pip:!(jt.isIPhone||!yt(It("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||It("video").disablePictureInPicture)),airplay:yt(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime:function(t){if(xt(t))return!1;var e=t.split("/"),i=o(e,1),r=t;if(!this.isHTML5||i[0]!==this.type)return!1;Object.keys($t).includes(r)&&(r+='; codecs="'.concat($t[t],'"'));try{return Boolean(r&&this.media.canPlayType(r).replace(/no/,""))}catch(t){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!==zt,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},Qt=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){return t=!0,null}});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(t){}return t}();function Wt(t,e,i){var r=this,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],n=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(t&&"addEventListener"in t&&!xt(e)&&yt(i)){var s=e.split(" "),l=a;Qt&&(l={passive:n,capture:a}),s.forEach((function(e){r&&r.eventListeners&&o&&r.eventListeners.push({element:t,type:e,callback:i,options:l}),t[o?"addEventListener":"removeEventListener"](e,i,l)}))}}function Yt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];Wt.call(this,t,e,i,!0,r,o)}function Jt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];Wt.call(this,t,e,i,!1,r,o)}function Gt(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],n=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=function a(){for(var s=arguments.length,l=new Array(s),p=0;p<s;p++)l[p]=arguments[p];Jt(t,i,a,o,n),r.apply(e,l)};Wt.call(this,t,i,a,!0,o,n)}function Kt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(bt(t)&&!xt(e)){var o=new CustomEvent(e,{bubbles:i,detail:n(n({},r),{},{plyr:this})});t.dispatchEvent(o)}}function Xt(){this&&this.eventListeners&&(this.eventListeners.forEach((function(t){t.element.removeEventListener(t.type,t.callback,t.options)})),this.eventListeners=[])}function Zt(){var t=this;return new Promise((function(e){return t.ready?setTimeout(e,0):Yt.call(t,t.elements.container,"ready",e)})).then((function(){}))}function te(t){(function(t){return it(t,Promise)&&at(t.then)})(t)&&t.then(null,(function(){}))}function ee(t){return ft(t)?t.filter((function(e,i){return t.indexOf(e)===i})):t}function ie(t,e){return ft(t)&&t.length?t.reduce((function(t,i){return Math.abs(i-e)<Math.abs(t-e)?i:t})):null}function re(t){return!(!window||!window.CSS)&&window.CSS.supports(t)}var oe=[[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(t,e){var i=o(e,2),r=i[0],s=i[1];return n(n({},t),{},a({},r/s,[r,s]))}),{});function ne(t){return!!(ft(t)||ht(t)&&t.includes(":"))&&(ft(t)?t:t.split(":")).map(Number).every(dt)}function ae(t){if(!ft(t)||!t.every(dt))return null;var e=o(t,2),i=e[0],r=e[1],n=function t(e,i){return 0===i?e:t(i,e%i)}(i,r);return[i/n,r/n]}function se(t){var e=function(t){return ne(t)?t.split(":").map(Number):null},i=e(t);if(null===i&&(i=e(this.config.ratio)),null===i&&!xt(this.embed)&&ft(this.embed.ratio)&&(i=this.embed.ratio),null===i&&this.isHTML5){var r=this.media;i=[r.videoWidth,r.videoHeight]}return ae(i)}function le(t){if(!this.isVideo)return{};var e=this.elements.wrapper,i=se.call(this,t);if(!ft(i))return{};var r=ae(i),n=o(r,2),a=n[0],s=n[1],l=100/a*s;if(re("aspect-ratio: ".concat(a,"/").concat(s))?e.style.aspectRatio="".concat(a,"/").concat(s):e.style.paddingBottom="".concat(l,"%"),this.isVimeo&&!this.config.vimeo.premium&&this.supported.ui){var p=100/this.media.offsetWidth*parseInt(window.getComputedStyle(this.media).paddingBottom,10),u=(p-l)/(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:l,ratio:i}}function pe(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.05,r=t/e,o=ie(Object.keys(oe),r);return Math.abs(o-r)<=i?oe[o]:[t,e]}var ue={getSources:function(){var t=this;return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter((function(e){var i=e.getAttribute("type");return!!xt(i)||Ut.mime.call(t,i)})):[]},getQualityOptions:function(){return this.config.quality.forced?this.config.quality.options:ue.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,xt(this.config.ratio)||le.call(t),Object.defineProperty(t.media,"quality",{get:function(){var e=ue.getSources.call(t).find((function(e){return e.getAttribute("src")===t.source}));return e&&Number(e.getAttribute("size"))},set:function(e){if(t.quality!==e){if(t.config.quality.forced&&yt(t.config.quality.onChange))t.config.quality.onChange(e);else{var i=ue.getSources.call(t).find((function(t){return Number(t.getAttribute("size"))===e}));if(!i)return;var r=t.media,o=r.currentTime,n=r.paused,a=r.preload,s=r.readyState,l=r.playbackRate;t.media.src=i.getAttribute("src"),("none"!==a||s)&&(t.once("loadedmetadata",(function(){t.speed=l,t.currentTime=o,n||te(t.play())})),t.media.load())}Kt.call(t,t.media,"qualitychange",!1,{quality:e})}}})}},cancelRequests:function(){this.isHTML5&&(Mt(ue.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function ce(t){return"".concat(t,"-").concat(Math.floor(1e4*Math.random()))}function de(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),r=1;r<e;r++)i[r-1]=arguments[r];return xt(t)?t:t.toString().replace(/{(\d+)}/g,(function(t,e){return i[e].toString()}))}var he=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return t.replace(new RegExp(e.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),i.toString())},ve=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 ye(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=t.toString();return e=he(e,"-"," "),e=he(e,"_"," "),e=ve(e),he(e," ","")}function fe(t){var e=document.createElement("div");return e.appendChild(t),e.innerHTML}var ge={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},be=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(xt(t)||xt(e))return"";var i=St(e.i18n,t);if(xt(i))return Object.keys(ge).includes(t)?ge[t]:"";var r={"{seektime}":e.seekTime,"{title}":e.title};return Object.entries(r).forEach((function(t){var e=o(t,2);i=he(i,e[0],e[1])})),i},me=function(){function t(e){var i=this;p(this,t),M(this,"get",(function(e){if(!t.supported||!i.enabled)return null;var r=window.localStorage.getItem(i.key);if(xt(r))return null;var o=JSON.parse(r);return ht(e)&&e.length?o[e]:o})),M(this,"set",(function(e){if(t.supported&&i.enabled&&ct(e)){var r=i.get();xt(r)&&(r={}),Pt(r,e),window.localStorage.setItem(i.key,JSON.stringify(r))}})),this.enabled=e.config.storage.enabled,this.key=e.config.storage.key}return s(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 _e(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text";return new Promise((function(i,r){try{var o=new XMLHttpRequest;if(!("withCredentials"in o))return;o.addEventListener("load",(function(){if("text"===e)try{i(JSON.parse(o.responseText))}catch(t){i(o.responseText)}else i(o.response)})),o.addEventListener("error",(function(){throw new Error(o.status)})),o.open("GET",t,!0),o.responseType=e,o.send()}catch(t){r(t)}}))}function we(t,e){if(ht(t)){var i=ht(e),r=function(){return null!==document.getElementById(e)},o=function(t,e){t.innerHTML=e,i&&r()||document.body.insertAdjacentElement("afterbegin",t)};if(!i||!r()){var n=me.supported,a=document.createElement("div");if(a.setAttribute("hidden",""),i&&a.setAttribute("id",e),n){var s=window.localStorage.getItem("cache-".concat(e));if(null!==s){var l=JSON.parse(s);o(a,l.content)}}_e(t).then((function(t){xt(t)||(n&&window.localStorage.setItem("cache-".concat(e),JSON.stringify({content:t})),o(a,t))})).catch((function(){}))}}}var ke=function(t){return Math.trunc(t/60/60%60,10)},xe=function(t){return Math.trunc(t%60,10)};function ze(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!dt(t))return ze(void 0,e,i);var r,o=function(t){return"0".concat(t).slice(-2)},n=ke(t),a=(r=t,Math.trunc(r/60%60,10)),s=xe(t);return n=e||n>0?"".concat(n,":"):"","".concat(i&&t>0?"-":"").concat(n).concat(o(a),":").concat(o(s))}var Te={getIconUrl:function(){var t=new URL(this.config.iconUrl,window.location),e=window.location.host?window.location.host:window.top.location.host,i=t.host!==e||jt.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:i}},findElements:function(){try{return this.elements.controls=Ht.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:qt.call(this,this.config.selectors.buttons.play),pause:Ht.call(this,this.config.selectors.buttons.pause),restart:Ht.call(this,this.config.selectors.buttons.restart),rewind:Ht.call(this,this.config.selectors.buttons.rewind),fastForward:Ht.call(this,this.config.selectors.buttons.fastForward),mute:Ht.call(this,this.config.selectors.buttons.mute),pip:Ht.call(this,this.config.selectors.buttons.pip),airplay:Ht.call(this,this.config.selectors.buttons.airplay),settings:Ht.call(this,this.config.selectors.buttons.settings),captions:Ht.call(this,this.config.selectors.buttons.captions),fullscreen:Ht.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=Ht.call(this,this.config.selectors.progress),this.elements.inputs={seek:Ht.call(this,this.config.selectors.inputs.seek),volume:Ht.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:Ht.call(this,this.config.selectors.display.buffer),currentTime:Ht.call(this,this.config.selectors.display.currentTime),duration:Ht.call(this,this.config.selectors.display.duration)},bt(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,e){var i="http://www.w3.org/2000/svg",r=Te.getIconUrl.call(this),o="".concat(r.cors?"":r.url,"#").concat(this.config.iconPrefix),n=document.createElementNS(i,"svg");Ot(n,Pt(e,{"aria-hidden":"true",focusable:"false"}));var a=document.createElementNS(i,"use"),s="".concat(o,"-").concat(t);return"href"in a&&a.setAttributeNS("http://www.w3.org/1999/xlink","href",s),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s),n.appendChild(a),n},createLabel:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=be(t,this.config);return It("span",n(n({},e),{},{class:[e.class,this.config.classNames.hidden].filter(Boolean).join(" ")}),i)},createBadge:function(t){if(xt(t))return null;var e=It("span",{class:this.config.classNames.menu.value});return e.appendChild(It("span",{class:this.config.classNames.menu.badge},t)),e},createButton:function(t,e){var i=this,r=Pt({},e),o=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toString();return(t=ye(t)).charAt(0).toLowerCase()+t.slice(1)}(t),n={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch(["element","icon","label"].forEach((function(t){Object.keys(r).includes(t)&&(n[t]=r[t],delete r[t])})),"button"!==n.element||Object.keys(r).includes("type")||(r.type="button"),Object.keys(r).includes("class")?r.class.split(" ").some((function(t){return t===i.config.classNames.control}))||Pt(r,{class:"".concat(r.class," ").concat(this.config.classNames.control)}):r.class=this.config.classNames.control,t){case"play":n.toggle=!0,n.label="play",n.labelPressed="pause",n.icon="play",n.iconPressed="pause";break;case"mute":n.toggle=!0,n.label="mute",n.labelPressed="unmute",n.icon="volume",n.iconPressed="muted";break;case"captions":n.toggle=!0,n.label="enableCaptions",n.labelPressed="disableCaptions",n.icon="captions-off",n.iconPressed="captions-on";break;case"fullscreen":n.toggle=!0,n.label="enterFullscreen",n.labelPressed="exitFullscreen",n.icon="enter-fullscreen",n.iconPressed="exit-fullscreen";break;case"play-large":r.class+=" ".concat(this.config.classNames.control,"--overlaid"),o="play",n.label="play",n.icon="play";break;default:xt(n.label)&&(n.label=o),xt(n.icon)&&(n.icon=t)}var a=It(n.element);return n.toggle?(a.appendChild(Te.createIcon.call(this,n.iconPressed,{class:"icon--pressed"})),a.appendChild(Te.createIcon.call(this,n.icon,{class:"icon--not-pressed"})),a.appendChild(Te.createLabel.call(this,n.labelPressed,{class:"label--pressed"})),a.appendChild(Te.createLabel.call(this,n.label,{class:"label--not-pressed"}))):(a.appendChild(Te.createIcon.call(this,n.icon)),a.appendChild(Te.createLabel.call(this,n.label))),Pt(r,Lt(this.config.selectors.buttons[o],r)),Ot(a,r),"play"===o?(ft(this.elements.buttons[o])||(this.elements.buttons[o]=[]),this.elements.buttons[o].push(a)):this.elements.buttons[o]=a,a},createRange:function(t,e){var i=It("input",Pt(Lt(this.config.selectors.inputs[t]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":be(t,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},e));return this.elements.inputs[t]=i,Te.updateRangeFill.call(this,i),tt.setup(i),i},createProgress:function(t,e){var i=It("progress",Pt(Lt(this.config.selectors.display[t]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},e));if("volume"!==t){i.appendChild(It("span",null,"0"));var r={played:"played",buffer:"buffered"}[t],o=r?be(r,this.config):"";i.innerText="% ".concat(o.toLowerCase())}return this.elements.display[t]=i,i},createTime:function(t,e){var i=Lt(this.config.selectors.display[t],e),r=It("div",Pt(i,{class:"".concat(i.class?i.class:""," ").concat(this.config.classNames.display.time," ").trim(),"aria-label":be(t,this.config)}),"00:00");return this.elements.display[t]=r,r},bindMenuItemShortcuts:function(t,e){var i=this;Yt.call(this,t,"keydown keyup",(function(r){if([32,38,39,40].includes(r.which)&&(r.preventDefault(),r.stopPropagation(),"keydown"!==r.type)){var o,n=Dt(t,'[role="menuitemradio"]');!n&&[32,39].includes(r.which)?Te.showMenuPanel.call(i,e,!0):32!==r.which&&(40===r.which||n&&39===r.which?bt(o=t.nextElementSibling)||(o=t.parentNode.firstElementChild):bt(o=t.previousElementSibling)||(o=t.parentNode.lastElementChild),Vt.call(i,o,!0))}}),!1),Yt.call(this,t,"keyup",(function(t){13===t.which&&Te.focusFirstMenuItem.call(i,null,!0)}))},createMenuItem:function(t){var e=this,i=t.value,r=t.list,o=t.type,n=t.title,a=t.badge,s=void 0===a?null:a,l=t.checked,p=void 0!==l&&l,u=Lt(this.config.selectors.inputs[o]),c=It("button",Pt(u,{type:"button",role:"menuitemradio",class:"".concat(this.config.classNames.control," ").concat(u.class?u.class:"").trim(),"aria-checked":p,value:i})),d=It("span");d.innerHTML=n,bt(s)&&d.appendChild(s),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 Dt(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(!_t(t)||32===t.which){switch(t.preventDefault(),t.stopPropagation(),c.checked=!0,o){case"language":e.currentTrack=Number(i);break;case"quality":e.quality=i;break;case"speed":e.speed=parseFloat(i)}Te.showMenuPanel.call(e,"home",_t(t))}}),o,!1),Te.bindMenuItemShortcuts.call(this,c,o),r.appendChild(c)},formatTime:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return dt(t)?ze(t,ke(this.duration)>0,e):t},updateTimeDisplay:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];bt(t)&&dt(e)&&(t.innerText=Te.formatTime(e,i))},updateVolume:function(){this.supported.ui&&(bt(this.elements.inputs.volume)&&Te.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),bt(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||0===this.volume))},setRange:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;bt(t)&&(t.value=e,Te.updateRangeFill.call(this,t))},updateProgress:function(t){var e=this;if(this.supported.ui&&mt(t)){var i=0;if(t)switch(t.type){case"timeupdate":case"seeking":case"seeked":i=function(t,e){return 0===t||0===e||Number.isNaN(t)||Number.isNaN(e)?0:(t/e*100).toFixed(2)}(this.currentTime,this.duration),"timeupdate"===t.type&&Te.setRange.call(this,this.elements.inputs.seek,i);break;case"playing":case"progress":!function(t,i){var r=dt(i)?i:0,o=bt(t)?t:e.elements.display.buffer;if(bt(o)){o.value=r;var n=o.getElementsByTagName("span")[0];bt(n)&&(n.childNodes[0].nodeValue=r)}}(this.elements.display.buffer,100*this.buffered)}}},updateRangeFill:function(t){var e=mt(t)?t.target:t;if(bt(e)&&"range"===e.getAttribute("type")){if(Dt(e,this.config.selectors.inputs.seek)){e.setAttribute("aria-valuenow",this.currentTime);var i=Te.formatTime(this.currentTime),r=Te.formatTime(this.duration),o=be("seekLabel",this.config);e.setAttribute("aria-valuetext",o.replace("{currentTime}",i).replace("{duration}",r))}else if(Dt(e,this.config.selectors.inputs.volume)){var n=100*e.value;e.setAttribute("aria-valuenow",n),e.setAttribute("aria-valuetext","".concat(n.toFixed(1),"%"))}else e.setAttribute("aria-valuenow",e.value);jt.isWebkit&&e.style.setProperty("--value",e.value/e.max*100+"%")}},updateSeekTooltip:function(t){var e=this;if(this.config.tooltips.seek&&bt(this.elements.inputs.seek)&&bt(this.elements.display.seekTooltip)&&0!==this.duration){var i="".concat(this.config.classNames.tooltip,"--visible"),r=function(t){return Rt(e.elements.display.seekTooltip,i,t)};if(this.touch)r(!1);else{var o=0,n=this.elements.progress.getBoundingClientRect();if(mt(t))o=100/n.width*(t.pageX-n.left);else{if(!Bt(this.elements.display.seekTooltip,i))return;o=parseFloat(this.elements.display.seekTooltip.style.left,10)}o<0?o=0:o>100&&(o=100),Te.updateTimeDisplay.call(this,this.elements.display.seekTooltip,this.duration/100*o),this.elements.display.seekTooltip.style.left="".concat(o,"%"),mt(t)&&["mouseenter","mouseleave"].includes(t.type)&&r("mouseenter"===t.type)}}},timeUpdate:function(t){var e=!bt(this.elements.display.duration)&&this.config.invertTime;Te.updateTimeDisplay.call(this,this.elements.display.currentTime,e?this.duration-this.currentTime:this.currentTime,e),t&&"timeupdate"===t.type&&this.media.seeking||Te.updateProgress.call(this,t)},durationUpdate:function(){if(this.supported.ui&&(this.config.invertTime||!this.currentTime)){if(this.duration>=Math.pow(2,32))return Nt(this.elements.display.currentTime,!0),void Nt(this.elements.progress,!0);bt(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);var t=bt(this.elements.display.duration);!t&&this.config.displayDuration&&this.paused&&Te.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),t&&Te.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),Te.updateSeekTooltip.call(this)}},toggleMenuButton:function(t,e){Nt(this.elements.settings.buttons[t],!e)},updateSetting:function(t,e,i){var r=this.elements.settings.panels[t],o=null,n=e;if("captions"===t)o=this.currentTrack;else{if(o=xt(i)?this[t]:i,xt(o)&&(o=this.config[t].default),!xt(this.options[t])&&!this.options[t].includes(o))return void this.debug.warn("Unsupported value of '".concat(o,"' for ").concat(t));if(!this.config[t].options.includes(o))return void this.debug.warn("Disabled value of '".concat(o,"' for ").concat(t))}if(bt(n)||(n=r&&r.querySelector('[role="menu"]')),bt(n)){this.elements.settings.buttons[t].querySelector(".".concat(this.config.classNames.menu.value)).innerHTML=Te.getLabel.call(this,t,o);var a=n&&n.querySelector('[value="'.concat(o,'"]'));bt(a)&&(a.checked=!0)}},getLabel:function(t,e){switch(t){case"speed":return 1===e?be("normal",this.config):"".concat(e,"×");case"quality":if(dt(e)){if(0===e)return be("auto",this.config);var i=be("qualityLabel.".concat(e),this.config);return i.length?i:"".concat(e,"p")}return ve(e);case"captions":return Pe.getLabel.call(this);default:return null}},setQualityMenu:function(t){var e=this;if(bt(this.elements.settings.panels.quality)){var i="quality",r=this.elements.settings.panels.quality.querySelector('[role="menu"]');ft(t)&&(this.options.quality=ee(t).filter((function(t){return e.config.quality.options.includes(t)})));var o=!xt(this.options.quality)&&this.options.quality.length>1;if(Te.toggleMenuButton.call(this,i,o),Et(r),Te.checkMenu.call(this),o){var n=function(t){var i=be("qualityBadge.".concat(t),e.config);return i.length?Te.createBadge.call(e,i):null};this.options.quality.sort((function(t,i){var r=e.config.quality.options;return r.indexOf(t)>r.indexOf(i)?1:-1})).forEach((function(t){Te.createMenuItem.call(e,{value:t,list:r,type:i,title:Te.getLabel.call(e,"quality",t),badge:n(t)})})),Te.updateSetting.call(this,i,r)}}},setCaptionsMenu:function(){var t=this;if(bt(this.elements.settings.panels.captions)){var e="captions",i=this.elements.settings.panels.captions.querySelector('[role="menu"]'),r=Pe.getTracks.call(this),o=Boolean(r.length);if(Te.toggleMenuButton.call(this,e,o),Et(i),Te.checkMenu.call(this),o){var n=r.map((function(e,r){return{value:r,checked:t.captions.toggled&&t.currentTrack===r,title:Pe.getLabel.call(t,e),badge:e.language&&Te.createBadge.call(t,e.language.toUpperCase()),list:i,type:"language"}}));n.unshift({value:-1,checked:!this.captions.toggled,title:be("disabled",this.config),list:i,type:"language"}),n.forEach(Te.createMenuItem.bind(this)),Te.updateSetting.call(this,e,i)}}},setSpeedMenu:function(){var t=this;if(bt(this.elements.settings.panels.speed)){var e="speed",i=this.elements.settings.panels.speed.querySelector('[role="menu"]');this.options.speed=this.options.speed.filter((function(e){return e>=t.minimumSpeed&&e<=t.maximumSpeed}));var r=!xt(this.options.speed)&&this.options.speed.length>1;Te.toggleMenuButton.call(this,e,r),Et(i),Te.checkMenu.call(this),r&&(this.options.speed.forEach((function(r){Te.createMenuItem.call(t,{value:r,list:i,type:e,title:Te.getLabel.call(t,"speed",r)})})),Te.updateSetting.call(this,e,i))}},checkMenu:function(){var t=this.elements.settings.buttons,e=!xt(t)&&Object.values(t).some((function(t){return!t.hidden}));Nt(this.elements.settings.menu,!e)},focusFirstMenuItem:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.elements.settings.popup.hidden){var i=t;bt(i)||(i=Object.values(this.elements.settings.panels).find((function(t){return!t.hidden})));var r=i.querySelector('[role^="menuitem"]');Vt.call(this,r,e)}},toggleMenu:function(t){var e=this.elements.settings.popup,i=this.elements.buttons.settings;if(bt(e)&&bt(i)){var r=e.hidden,o=r;if(vt(t))o=t;else if(_t(t)&&27===t.which)o=!1;else if(mt(t)){var n=yt(t.composedPath)?t.composedPath()[0]:t.target,a=e.contains(n);if(a||!a&&t.target!==i&&o)return}i.setAttribute("aria-expanded",o),Nt(e,!o),Rt(this.elements.container,this.config.classNames.menu.open,o),o&&_t(t)?Te.focusFirstMenuItem.call(this,null,!0):o||r||Vt.call(this,i,_t(t))}},getMenuSize:function(t){var e=t.cloneNode(!0);e.style.position="absolute",e.style.opacity=0,e.removeAttribute("hidden"),t.parentNode.appendChild(e);var i=e.scrollWidth,r=e.scrollHeight;return Mt(e),{width:i,height:r}},showMenuPanel:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.elements.container.querySelector("#plyr-settings-".concat(this.id,"-").concat(e));if(bt(r)){var o=r.parentNode,n=Array.from(o.children).find((function(t){return!t.hidden}));if(Ut.transitions&&!Ut.reducedMotion){o.style.width="".concat(n.scrollWidth,"px"),o.style.height="".concat(n.scrollHeight,"px");var a=Te.getMenuSize.call(this,r),s=function e(i){i.target===o&&["width","height"].includes(i.propertyName)&&(o.style.width="",o.style.height="",Jt.call(t,o,zt,e))};Yt.call(this,o,zt,s),o.style.width="".concat(a.width,"px"),o.style.height="".concat(a.height,"px")}Nt(n,!0),Nt(r,!1),Te.focusFirstMenuItem.call(this,r,i)}},setDownloadUrl:function(){var t=this.elements.buttons.download;bt(t)&&t.setAttribute("href",this.download)},create:function(t){var e=this,i=Te.bindMenuItemShortcuts,r=Te.createButton,o=Te.createProgress,n=Te.createRange,a=Te.createTime,s=Te.setQualityMenu,l=Te.setSpeedMenu,p=Te.showMenuPanel;this.elements.controls=null,ft(this.config.controls)&&this.config.controls.includes("play-large")&&this.elements.container.appendChild(r.call(this,"play-large"));var u=It("div",Lt(this.config.selectors.controls.wrapper));this.elements.controls=u;var c={class:"plyr__controls__item"};return ee(ft(this.config.controls)?this.config.controls:[]).forEach((function(s){if("restart"===s&&u.appendChild(r.call(e,"restart",c)),"rewind"===s&&u.appendChild(r.call(e,"rewind",c)),"play"===s&&u.appendChild(r.call(e,"play",c)),"fast-forward"===s&&u.appendChild(r.call(e,"fast-forward",c)),"progress"===s){var l=It("div",{class:"".concat(c.class," plyr__progress__container")}),d=It("div",Lt(e.config.selectors.progress));if(d.appendChild(n.call(e,"seek",{id:"plyr-seek-".concat(t.id)})),d.appendChild(o.call(e,"buffer")),e.config.tooltips.seek){var h=It("span",{class:e.config.classNames.tooltip},"00:00");d.appendChild(h),e.elements.display.seekTooltip=h}e.elements.progress=d,l.appendChild(e.elements.progress),u.appendChild(l)}if("current-time"===s&&u.appendChild(a.call(e,"currentTime",c)),"duration"===s&&u.appendChild(a.call(e,"duration",c)),"mute"===s||"volume"===s){var v=e.elements.volume;bt(v)&&u.contains(v)||(v=It("div",Pt({},c,{class:"".concat(c.class," plyr__volume").trim()})),e.elements.volume=v,u.appendChild(v)),"mute"===s&&v.appendChild(r.call(e,"mute")),"volume"!==s||jt.isIos||v.appendChild(n.call(e,"volume",Pt({max:1,step:.05,value:e.config.volume},{id:"plyr-volume-".concat(t.id)})))}if("captions"===s&&u.appendChild(r.call(e,"captions",c)),"settings"===s&&!xt(e.config.settings)){var y=It("div",Pt({},c,{class:"".concat(c.class," plyr__menu").trim(),hidden:""}));y.appendChild(r.call(e,"settings",{"aria-haspopup":!0,"aria-controls":"plyr-settings-".concat(t.id),"aria-expanded":!1}));var f=It("div",{class:"plyr__menu__container",id:"plyr-settings-".concat(t.id),hidden:""}),g=It("div"),b=It("div",{id:"plyr-settings-".concat(t.id,"-home")}),m=It("div",{role:"menu"});b.appendChild(m),g.appendChild(b),e.elements.settings.panels.home=b,e.config.settings.forEach((function(r){var o=It("button",Pt(Lt(e.config.selectors.buttons.settings),{type:"button",class:"".concat(e.config.classNames.control," ").concat(e.config.classNames.control,"--forward"),role:"menuitem","aria-haspopup":!0,hidden:""}));i.call(e,o,r),Yt.call(e,o,"click",(function(){p.call(e,r,!1)}));var n=It("span",null,be(r,e.config)),a=It("span",{class:e.config.classNames.menu.value});a.innerHTML=t[r],n.appendChild(a),o.appendChild(n),m.appendChild(o);var s=It("div",{id:"plyr-settings-".concat(t.id,"-").concat(r),hidden:""}),l=It("button",{type:"button",class:"".concat(e.config.classNames.control," ").concat(e.config.classNames.control,"--back")});l.appendChild(It("span",{"aria-hidden":!0},be(r,e.config))),l.appendChild(It("span",{class:e.config.classNames.hidden},be("menuBack",e.config))),Yt.call(e,s,"keydown",(function(t){37===t.which&&(t.preventDefault(),t.stopPropagation(),p.call(e,"home",!0))}),!1),Yt.call(e,l,"click",(function(){p.call(e,"home",!1)})),s.appendChild(l),s.appendChild(It("div",{role:"menu"})),g.appendChild(s),e.elements.settings.buttons[r]=o,e.elements.settings.panels[r]=s})),f.appendChild(g),y.appendChild(f),u.appendChild(y),e.elements.settings.popup=f,e.elements.settings.menu=y}if("pip"===s&&Ut.pip&&u.appendChild(r.call(e,"pip",c)),"airplay"===s&&Ut.airplay&&u.appendChild(r.call(e,"airplay",c)),"download"===s){var _=Pt({},c,{element:"a",href:e.download,target:"_blank"});e.isHTML5&&(_.download=""),!kt(e.config.urls.download)&&e.isEmbed&&Pt(_,{icon:"logo-".concat(e.provider),label:e.provider}),u.appendChild(r.call(e,"download",_))}"fullscreen"===s&&u.appendChild(r.call(e,"fullscreen",c))})),this.isHTML5&&s.call(this,ue.getQualityOptions.call(this)),l.call(this),u},inject:function(){var t=this;if(this.config.loadSprite){var e=Te.getIconUrl.call(this);e.cors&&we(e.url,"sprite-plyr")}this.id=Math.floor(1e4*Math.random());var i=null;this.elements.controls=null;var r,n={id:this.id,seektime:this.config.seekTime,title:this.config.title},a=!0;if(yt(this.config.controls)&&(this.config.controls=this.config.controls.call(this,n)),this.config.controls||(this.config.controls=[]),bt(this.config.controls)||ht(this.config.controls)?i=this.config.controls:(i=Te.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:Pe.getLabel.call(this)}),a=!1),a&&ht(this.config.controls)&&(i=function(t){var e=t;return Object.entries(n).forEach((function(t){var i=o(t,2),r=i[1];e=he(e,"{".concat(i[0],"}"),r)})),e}(i)),ht(this.config.selectors.controls.container)&&(r=document.querySelector(this.config.selectors.controls.container)),bt(r)||(r=this.elements.container),r[bt(i)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",i),bt(this.elements.controls)||Te.findElements.call(this),!xt(this.elements.buttons)){var s=function(e){var i=t.config.classNames.controlPressed;Object.defineProperty(e,"pressed",{enumerable:!0,get:function(){return Bt(e,i)},set:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Rt(e,i,t)}})};Object.values(this.elements.buttons).filter(Boolean).forEach((function(t){ft(t)||gt(t)?Array.from(t).filter(Boolean).forEach(s):s(t)}))}if(jt.isEdge&&Tt(r),this.config.tooltips.controls){var l=this.config,p=l.classNames,u=l.selectors,c="".concat(u.controls.wrapper," ").concat(u.labels," .").concat(p.hidden),d=qt.call(this,c);Array.from(d).forEach((function(e){Rt(e,t.config.classNames.hidden,!1),Rt(e,t.config.classNames.tooltip,!0)}))}}};function je(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=t;if(e){var r=document.createElement("a");r.href=i,i=r.href}try{return new URL(i)}catch(t){return null}}function Se(t){var e=new URLSearchParams;return ct(t)&&Object.entries(t).forEach((function(t){var i=o(t,2);e.set(i[0],i[1])})),e}var Pe={setup:function(){if(this.supported.ui)if(!this.isVideo||this.isYouTube||this.isHTML5&&!Ut.textTracks)ft(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&Te.setCaptionsMenu.call(this);else{if(bt(this.elements.captions)||(this.elements.captions=It("div",Lt(this.config.selectors.captions)),function(t,e){bt(t)&&bt(e)&&e.parentNode.insertBefore(t,e.nextSibling)}(this.elements.captions,this.elements.wrapper)),jt.isIE&&window.URL){var t=this.media.querySelectorAll("track");Array.from(t).forEach((function(t){var e=t.getAttribute("src"),i=je(e);null!==i&&i.hostname!==window.location.href.hostname&&["http:","https:"].includes(i.protocol)&&_e(e,"blob").then((function(e){t.setAttribute("src",window.URL.createObjectURL(e))})).catch((function(){Mt(t)}))}))}var e=ee((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=o(e,1)[0]);var r=this.storage.get("captions");vt(r)||(r=this.config.captions.active),Object.assign(this.captions,{toggled:!1,active:r,language:i,languages:e}),this.isHTML5&&Yt.call(this,this.media.textTracks,this.config.captions.update?"addtrack removetrack":"removetrack",Pe.update.bind(this)),setTimeout(Pe.update.bind(this),0)}},update:function(){var t=this,e=Pe.getTracks.call(this,!0),i=this.captions,r=i.active,o=i.language,n=i.meta,a=i.currentTrackNode,s=Boolean(e.find((function(t){return t.language===o})));this.isHTML5&&this.isVideo&&e.filter((function(t){return!n.get(t)})).forEach((function(e){t.debug.log("Track added",e),n.set(e,{default:"showing"===e.mode}),"showing"===e.mode&&(e.mode="hidden"),Yt.call(t,e,"cuechange",(function(){return Pe.updateCues.call(t)}))})),(s&&this.language!==o||!e.includes(a))&&(Pe.setLanguage.call(this,o),Pe.toggle.call(this,r&&s)),Rt(this.elements.container,this.config.classNames.captions.enabled,!xt(e)),ft(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&Te.setCaptionsMenu.call(this)},toggle:function(t){var e=this,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.supported.ui){var r=this.captions.toggled,o=this.config.classNames.captions.active,n=ut(t)?!r:t;if(n!==r){if(i||(this.captions.active=n,this.storage.set({captions:n})),!this.language&&n&&!i){var a=Pe.getTracks.call(this),s=Pe.findTrack.call(this,[this.captions.language].concat(u(this.captions.languages)),!0);return this.captions.language=s.language,void Pe.set.call(this,a.indexOf(s))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=n),Rt(this.elements.container,o,n),this.captions.toggled=n,Te.updateSetting.call(this,"captions"),Kt.call(this,this.media,n?"captionsenabled":"captionsdisabled")}setTimeout((function(){n&&e.captions.toggled&&e.captions.currentTrackNode&&(e.captions.currentTrackNode.mode="hidden")}))}},set:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=Pe.getTracks.call(this);if(-1!==t)if(dt(t))if(t in i){if(this.captions.currentTrack!==t){this.captions.currentTrack=t;var r=i[t],o=r||{},n=o.language;this.captions.currentTrackNode=r,Te.updateSetting.call(this,"captions"),e||(this.captions.language=n,this.storage.set({language:n})),this.isVimeo&&this.embed.enableTextTrack(n),Kt.call(this,this.media,"languagechange")}Pe.toggle.call(this,!0,e),this.isHTML5&&this.isVideo&&Pe.updateCues.call(this)}else this.debug.warn("Track not found",t);else this.debug.warn("Invalid caption argument",t);else Pe.toggle.call(this,!1,e)},setLanguage:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(ht(t)){var i=t.toLowerCase();this.captions.language=i;var r=Pe.getTracks.call(this),o=Pe.findTrack.call(this,[i]);Pe.set.call(this,r.indexOf(o),e)}else this.debug.warn("Invalid language argument",t)},getTracks:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Array.from((this.media||{}).textTracks||[]).filter((function(i){return!t.isHTML5||e||t.captions.meta.has(i)})).filter((function(t){return["captions","subtitles"].includes(t.kind)}))},findTrack:function(t){var e,i=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=Pe.getTracks.call(this),n=function(t){return Number((i.captions.meta.get(t)||{}).default)},a=Array.from(o).sort((function(t,e){return n(e)-n(t)}));return t.every((function(t){return!(e=a.find((function(e){return e.language===t})))})),e||(r?a[0]:void 0)},getCurrentTrack:function(){return Pe.getTracks.call(this)[this.currentTrack]},getLabel:function(t){var e=t;return!wt(e)&&Ut.textTracks&&this.captions.toggled&&(e=Pe.getCurrentTrack.call(this)),wt(e)?xt(e.label)?xt(e.language)?be("enabled",this.config):t.language.toUpperCase():e.label:be("disabled",this.config)},updateCues:function(t){if(this.supported.ui)if(bt(this.elements.captions))if(ut(t)||Array.isArray(t)){var e=t;if(!e){var i=Pe.getCurrentTrack.call(this);e=Array.from((i||{}).activeCues||[]).map((function(t){return t.getCueAsHTML()})).map(fe)}var r=e.map((function(t){return t.trim()})).join("\n");if(r!==this.elements.captions.innerHTML){Et(this.elements.captions);var o=It("span",Lt(this.config.selectors.caption));o.innerHTML=r,this.elements.captions.appendChild(o),Kt.call(this,this.media,"cuechange")}}else this.debug.warn("updateCues: Invalid input",t);else this.debug.warn("No captions element to render to")}},Ce={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}},Oe={html5:"html5",youtube:"youtube",vimeo:"vimeo"},Ie=function(){},Ae=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];p(this,t),this.enabled=window.console&&e,this.enabled&&this.log("Debugging enabled")}return s(t,[{key:"log",get:function(){return this.enabled?Function.prototype.bind.call(console.log,console):Ie}},{key:"warn",get:function(){return this.enabled?Function.prototype.bind.call(console.warn,console):Ie}},{key:"error",get:function(){return this.enabled?Function.prototype.bind.call(console.error,console):Ie}}]),t}(),Me=function(){function t(e){var i=this;p(this,t),M(this,"onChange",(function(){if(i.enabled){var t=i.player.elements.buttons.fullscreen;bt(t)&&(t.pressed=i.active),Kt.call(i.player,i.target===i.player.media?i.target:i.player.elements.container,i.active?"enterfullscreen":"exitfullscreen",!0)}})),M(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":"",Rt(i.target,i.player.config.classNames.fullscreen.fallback,t),jt.isIos){var e=document.head.querySelector('meta[name="viewport"]'),r="viewport-fit=cover";e||(e=document.createElement("meta")).setAttribute("name","viewport");var o=ht(e.content)&&e.content.includes(r);t?(i.cleanupViewport=!o,o||(e.content+=",".concat(r))):i.cleanupViewport&&(e.content=e.content.split(",").filter((function(t){return t.trim()!==r})).join(","))}i.onChange()})),M(this,"trapFocus",(function(t){if(!jt.isIos&&i.active&&"Tab"===t.key&&9===t.keyCode){var e=document.activeElement,r=qt.call(i.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),n=o(r,1)[0],a=r[r.length-1];e!==a||t.shiftKey?e===n&&t.shiftKey&&(a.focus(),t.preventDefault()):(n.focus(),t.preventDefault())}})),M(this,"update",(function(){i.player.debug.log(i.enabled?"".concat(i.forceFallback?"Fallback (forced)":t.native?"Native":"Fallback"," fullscreen enabled"):"Fullscreen not supported and fallback disabled"),Rt(i.player.elements.container,i.player.config.classNames.fullscreen.enabled,i.enabled)})),M(this,"enter",(function(){i.enabled&&(jt.isIos&&i.player.config.fullscreen.iosNative?i.player.isVimeo?i.player.embed.requestFullscreen():i.target.webkitEnterFullscreen():!t.native||i.forceFallback?i.toggleFallback(!0):i.prefix?xt(i.prefix)||i.target["".concat(i.prefix,"Request").concat(i.property)]():i.target.requestFullscreen({navigationUI:"hide"}))})),M(this,"exit",(function(){if(i.enabled)if(jt.isIos&&i.player.config.fullscreen.iosNative)i.target.webkitExitFullscreen(),te(i.player.play());else if(!t.native||i.forceFallback)i.toggleFallback(!1);else if(i.prefix){if(!xt(i.prefix)){var e="moz"===i.prefix?"Cancel":"Exit";document["".concat(i.prefix).concat(e).concat(i.property)]()}}else(document.cancelFullScreen||document.exitFullscreen).call(document)})),M(this,"toggle",(function(){i.active?i.exit():i.enter()})),this.player=e,this.prefix=t.prefix,this.property=t.property,this.scrollPosition={x:0,y:0},this.forceFallback="force"===e.config.fullscreen.fallback,this.player.elements.fullscreen=e.config.fullscreen.container&&function(t,e){return(Element.prototype.closest||function(){var t=this;do{if(Dt.matches(t,e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null}).call(t,e)}(this.player.elements.container,e.config.fullscreen.container),Yt.call(this.player,document,"ms"===this.prefix?"MSFullscreenChange":"".concat(this.prefix,"fullscreenchange"),(function(){i.onChange()})),Yt.call(this.player,this.player.elements.container,"dblclick",(function(t){bt(i.player.elements.controls)&&i.player.elements.controls.contains(t.target)||i.player.listeners.proxy(t,i.toggle,"fullscreen")})),Yt.call(this,this.player.elements.container,"keydown",(function(t){return i.trapFocus(t)})),this.update()}return s(t,[{key:"usingNative",get:function(){return t.native&&!this.forceFallback}},{key:"enabled",get:function(){return(t.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(!t.native||this.forceFallback)return Bt(this.target,this.player.config.classNames.fullscreen.fallback);var e=this.prefix?document["".concat(this.prefix).concat(this.property,"Element")]:document.fullscreenElement;return e&&e.shadowRoot?e===this.target.getRootNode().host:e===this.target}},{key:"target",get:function(){return jt.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(yt(document.exitFullscreen))return"";var t="";return["webkit","moz","ms"].some((function(e){return!(!yt(document["".concat(e,"ExitFullscreen")])&&!yt(document["".concat(e,"CancelFullScreen")])||(t=e,0))})),t}},{key:"property",get:function(){return"moz"===this.prefix?"FullScreen":"Fullscreen"}}]),t}();function Ee(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Promise((function(i,r){var o=new Image,n=function(){delete o.onload,delete o.onerror,(o.naturalWidth>=e?i:r)(o)};Object.assign(o,{onload:n,onerror:n,src:t})}))}var Fe={addStyleHook:function(){Rt(this.elements.container,this.config.selectors.container.replace(".",""),!0),Rt(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 Fe.toggleNativeControls.call(this,!0);bt(this.elements.controls)||(Te.inject.call(this),this.listeners.controls()),Fe.toggleNativeControls.call(this),this.isHTML5&&Pe.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,Te.updateVolume.call(this),Te.timeUpdate.call(this),Fe.checkPlaying.call(this),Rt(this.elements.container,this.config.classNames.pip.supported,Ut.pip&&this.isHTML5&&this.isVideo),Rt(this.elements.container,this.config.classNames.airplay.supported,Ut.airplay&&this.isHTML5),Rt(this.elements.container,this.config.classNames.isIos,jt.isIos),Rt(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout((function(){Kt.call(t,t.media,"ready")}),0),Fe.setTitle.call(this),this.poster&&Fe.setPoster.call(this,this.poster,!1).catch((function(){})),this.config.duration&&Te.durationUpdate.call(this)},setTitle:function(){var t=be("play",this.config);if(ht(this.config.title)&&!xt(this.config.title)&&(t+=", ".concat(this.config.title)),Array.from(this.elements.buttons.play||[]).forEach((function(e){e.setAttribute("aria-label",t)})),this.isEmbed){var e=Ht.call(this,"iframe");if(!bt(e))return;var i=xt(this.config.title)?"video":this.config.title,r=be("frameTitle",this.config);e.setAttribute("title",r.replace("{title}",i))}},togglePoster:function(t){Rt(this.elements.container,this.config.classNames.posterEnabled,t)},setPoster:function(t){var e=this,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return i&&this.poster?Promise.reject(new Error("Poster already set")):(this.media.setAttribute("data-poster",t),this.elements.poster.removeAttribute("hidden"),Zt.call(this).then((function(){return Ee(t)})).catch((function(i){throw t===e.poster&&Fe.togglePoster.call(e,!1),i})).then((function(){if(t!==e.poster)throw new Error("setPoster cancelled by later call to setPoster")})).then((function(){return Object.assign(e.elements.poster.style,{backgroundImage:"url('".concat(t,"')"),backgroundSize:""}),Fe.togglePoster.call(e,!0),t})))},checkPlaying:function(t){var e=this;Rt(this.elements.container,this.config.classNames.playing,this.playing),Rt(this.elements.container,this.config.classNames.paused,this.paused),Rt(this.elements.container,this.config.classNames.stopped,this.stopped),Array.from(this.elements.buttons.play||[]).forEach((function(t){Object.assign(t,{pressed:e.playing}),t.setAttribute("aria-label",be(e.playing?"pause":"play",e.config))})),mt(t)&&"timeupdate"===t.type||Fe.toggleControls.call(this)},checkLoading:function(t){var e=this;this.loading=["stalled","waiting"].includes(t.type),clearTimeout(this.timers.loading),this.timers.loading=setTimeout((function(){Rt(e.elements.container,e.config.classNames.loading,e.loading),Fe.toggleControls.call(e)}),this.loading?250:0)},toggleControls:function(t){var e=this.elements.controls;if(e&&this.config.hideControls){var i=this.touch&&this.lastSeekTime+2e3>Date.now();this.toggleControls(Boolean(t||this.loading||this.paused||e.pressed||e.hover||i))}},migrateStyles:function(){var t=this;Object.values(n({},this.media.style)).filter((function(t){return!xt(t)&&ht(t)&&t.startsWith("--plyr")})).forEach((function(e){t.elements.container.style.setProperty(e,t.media.style.getPropertyValue(e)),t.media.style.removeProperty(e)})),xt(this.media.style)&&this.media.removeAttribute("style")}},Le=function(){function t(e){var i=this;p(this,t),M(this,"firstTouch",(function(){var t=i.player,e=t.elements;t.touch=!0,Rt(e.container,t.config.classNames.isTouch,!0)})),M(this,"setTabFocus",(function(t){var e=i.player,r=e.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=e.config.classNames.tabFocus;Rt(qt.call(e,".".concat(t)),t,!1)}(),"focusout"!==t.type&&(i.focusTimer=setTimeout((function(){var t=document.activeElement;r.container.contains(t)&&Rt(document.activeElement,e.config.classNames.tabFocus,!0)}),10))))})),M(this,"global",(function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=i.player;e.config.keyboard.global&&Wt.call(e,window,"keydown keyup",i.handleKey,t,!1),Wt.call(e,document.body,"click",i.toggleMenu,t),Gt.call(e,document.body,"touchstart",i.firstTouch),Wt.call(e,document.body,"keydown focus blur focusout",i.setTabFocus,t,!1,!0)})),M(this,"container",(function(){var t=i.player,e=t.config,r=t.elements,n=t.timers;!e.keyboard.global&&e.keyboard.focused&&Yt.call(t,r.container,"keydown keyup",i.handleKey,!1),Yt.call(t,r.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",(function(e){var i=r.controls;i&&"enterfullscreen"===e.type&&(i.pressed=!1,i.hover=!1);var o=0;["touchstart","touchmove","mousemove"].includes(e.type)&&(Fe.toggleControls.call(t,!0),o=t.touch?3e3:2e3),clearTimeout(n.controls),n.controls=setTimeout((function(){return Fe.toggleControls.call(t,!1)}),o)}));var a=function(){if(t.isVimeo&&!t.config.vimeo.premium){var e=r.wrapper,i=t.fullscreen.active,n=se.call(t),a=o(n,2),s=a[0],l=a[1],p=re("aspect-ratio: ".concat(s," / ").concat(l));if(i){var u=[Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)],c=o(u,2),d=c[1],h=c[0]/d>s/l;p?(e.style.width=h?"auto":"100%",e.style.height=h?"100%":"auto"):(e.style.maxWidth=h?d/l*s+"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)}},s=function(){clearTimeout(n.resized),n.resized=setTimeout(a,50)};Yt.call(t,r.container,"enterfullscreen exitfullscreen",(function(e){t.fullscreen.target===r.container&&(!t.isEmbed&&xt(t.config.ratio)||(a(),("enterfullscreen"===e.type?Yt:Jt).call(t,window,"resize",s)))}))})),M(this,"media",(function(){var t=i.player,e=t.elements;if(Yt.call(t,t.media,"timeupdate seeking seeked",(function(e){return Te.timeUpdate.call(t,e)})),Yt.call(t,t.media,"durationchange loadeddata loadedmetadata",(function(e){return Te.durationUpdate.call(t,e)})),Yt.call(t,t.media,"ended",(function(){t.isHTML5&&t.isVideo&&t.config.resetOnEnd&&(t.restart(),t.pause())})),Yt.call(t,t.media,"progress playing seeking seeked",(function(e){return Te.updateProgress.call(t,e)})),Yt.call(t,t.media,"volumechange",(function(e){return Te.updateVolume.call(t,e)})),Yt.call(t,t.media,"playing play pause ended emptied timeupdate",(function(e){return Fe.checkPlaying.call(t,e)})),Yt.call(t,t.media,"waiting canplay seeked playing",(function(e){return Fe.checkLoading.call(t,e)})),t.supported.ui&&t.config.clickToPlay&&!t.isAudio){var r=Ht.call(t,".".concat(t.config.classNames.video));if(!bt(r))return;Yt.call(t,e.container,"click",(function(o){([e.container,r].includes(o.target)||r.contains(o.target))&&(t.touch&&t.config.hideControls||(t.ended?(i.proxy(o,t.restart,"restart"),i.proxy(o,(function(){te(t.play())}),"play")):i.proxy(o,(function(){te(t.togglePlay())}),"play")))}))}t.supported.ui&&t.config.disableContextMenu&&Yt.call(t,e.wrapper,"contextmenu",(function(t){t.preventDefault()}),!1),Yt.call(t,t.media,"volumechange",(function(){t.storage.set({volume:t.volume,muted:t.muted})})),Yt.call(t,t.media,"ratechange",(function(){Te.updateSetting.call(t,"speed"),t.storage.set({speed:t.speed})})),Yt.call(t,t.media,"qualitychange",(function(e){Te.updateSetting.call(t,"quality",null,e.detail.quality)})),Yt.call(t,t.media,"ready qualitychange",(function(){Te.setDownloadUrl.call(t)}));var o=t.config.events.concat(["keyup","keydown"]).join(" ");Yt.call(t,t.media,o,(function(i){var r=i.detail,o=void 0===r?{}:r;"error"===i.type&&(o=t.media.error),Kt.call(t,e.container,i.type,!0,o)}))})),M(this,"proxy",(function(t,e,r){var o=i.player,n=o.config.listeners[r],a=!0;yt(n)&&(a=n.call(o,t)),!1!==a&&yt(e)&&e.call(o,t)})),M(this,"bind",(function(t,e,r,o){var n=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=i.player,s=a.config.listeners[o],l=yt(s);Yt.call(a,t,e,(function(t){return i.proxy(t,r,o)}),n&&!l)})),M(this,"controls",(function(){var t=i.player,e=t.elements,r=jt.isIE?"change":"input";if(e.buttons.play&&Array.from(e.buttons.play).forEach((function(e){i.bind(e,"click",(function(){te(t.togglePlay())}),"play")})),i.bind(e.buttons.restart,"click",t.restart,"restart"),i.bind(e.buttons.rewind,"click",(function(){t.lastSeekTime=Date.now(),t.rewind()}),"rewind"),i.bind(e.buttons.fastForward,"click",(function(){t.lastSeekTime=Date.now(),t.forward()}),"fastForward"),i.bind(e.buttons.mute,"click",(function(){t.muted=!t.muted}),"mute"),i.bind(e.buttons.captions,"click",(function(){return t.toggleCaptions()})),i.bind(e.buttons.download,"click",(function(){Kt.call(t,t.media,"download")}),"download"),i.bind(e.buttons.fullscreen,"click",(function(){t.fullscreen.toggle()}),"fullscreen"),i.bind(e.buttons.pip,"click",(function(){t.pip="toggle"}),"pip"),i.bind(e.buttons.airplay,"click",t.airplay,"airplay"),i.bind(e.buttons.settings,"click",(function(e){e.stopPropagation(),e.preventDefault(),Te.toggleMenu.call(t,e)}),null,!1),i.bind(e.buttons.settings,"keyup",(function(e){var i=e.which;[13,32].includes(i)&&(13!==i?(e.preventDefault(),e.stopPropagation(),Te.toggleMenu.call(t,e)):Te.focusFirstMenuItem.call(t,null,!0))}),null,!1),i.bind(e.settings.menu,"keydown",(function(e){27===e.which&&Te.toggleMenu.call(t,e)})),i.bind(e.inputs.seek,"mousedown mousemove",(function(t){var i=e.progress.getBoundingClientRect();t.currentTarget.setAttribute("seek-value",100/i.width*(t.pageX-i.left))})),i.bind(e.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",(function(e){var i=e.currentTarget,r=e.keyCode?e.keyCode:e.which,o="play-on-seeked";if(!_t(e)||39===r||37===r){t.lastSeekTime=Date.now();var n=i.hasAttribute(o),a=["mouseup","touchend","keyup"].includes(e.type);n&&a?(i.removeAttribute(o),te(t.play())):!a&&t.playing&&(i.setAttribute(o,""),t.pause())}})),jt.isIos){var n=qt.call(t,'input[type="range"]');Array.from(n).forEach((function(t){return i.bind(t,r,(function(t){return Tt(t.target)}))}))}i.bind(e.inputs.seek,r,(function(e){var i=e.currentTarget,r=i.getAttribute("seek-value");xt(r)&&(r=i.value),i.removeAttribute("seek-value"),t.currentTime=r/i.max*t.duration}),"seek"),i.bind(e.progress,"mouseenter mouseleave mousemove",(function(e){return Te.updateSeekTooltip.call(t,e)})),i.bind(e.progress,"mousemove touchmove",(function(e){var i=t.previewThumbnails;i&&i.loaded&&i.startMove(e)})),i.bind(e.progress,"mouseleave touchend click",(function(){var e=t.previewThumbnails;e&&e.loaded&&e.endMove(!1,!0)})),i.bind(e.progress,"mousedown touchstart",(function(e){var i=t.previewThumbnails;i&&i.loaded&&i.startScrubbing(e)})),i.bind(e.progress,"mouseup touchend",(function(e){var i=t.previewThumbnails;i&&i.loaded&&i.endScrubbing(e)})),jt.isWebkit&&Array.from(qt.call(t,'input[type="range"]')).forEach((function(e){i.bind(e,"input",(function(e){return Te.updateRangeFill.call(t,e.target)}))})),t.config.toggleInvert&&!bt(e.display.duration)&&i.bind(e.display.currentTime,"click",(function(){0!==t.currentTime&&(t.config.invertTime=!t.config.invertTime,Te.timeUpdate.call(t))})),i.bind(e.inputs.volume,r,(function(e){t.volume=e.target.value}),"volume"),i.bind(e.controls,"mouseenter mouseleave",(function(i){e.controls.hover=!t.touch&&"mouseenter"===i.type})),e.fullscreen&&Array.from(e.fullscreen.children).filter((function(t){return!t.contains(e.container)})).forEach((function(r){i.bind(r,"mouseenter mouseleave",(function(i){e.controls.hover=!t.touch&&"mouseenter"===i.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 r=t.config,o=t.timers;Rt(e.controls,r.classNames.noTransition,!0),Fe.toggleControls.call(t,!0),setTimeout((function(){Rt(e.controls,r.classNames.noTransition,!1)}),0);var n=i.touch?3e3:4e3;clearTimeout(o.controls),o.controls=setTimeout((function(){return Fe.toggleControls.call(t,!1)}),n)})),i.bind(e.inputs.volume,"wheel",(function(e){var i=e.webkitDirectionInvertedFromDevice,r=[e.deltaX,-e.deltaY].map((function(t){return i?-t:t})),n=o(r,2),a=n[0],s=n[1],l=Math.sign(Math.abs(a)>Math.abs(s)?a:s);t.increaseVolume(l/50);var p=t.media.volume;(1===l&&p<1||-1===l&&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 s(t,[{key:"handleKey",value:function(t){var e=this.player,i=e.elements,r=t.keyCode?t.keyCode:t.which,o="keydown"===t.type,n=o&&r===this.lastKey;if(!(t.altKey||t.ctrlKey||t.metaKey||t.shiftKey)&&dt(r))if(o){var a=document.activeElement;if(bt(a)){if(a!==i.inputs.seek&&Dt(a,e.config.selectors.editable))return;if(32===t.which&&Dt(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(r)&&(t.preventDefault(),t.stopPropagation()),r){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:n||(e.currentTime=e.duration/10*(r-48));break;case 32:case 75:n||te(e.togglePlay());break;case 38:e.increaseVolume(.1);break;case 40:e.decreaseVolume(.1);break;case 77:n||(e.muted=!e.muted);break;case 39:e.forward();break;case 37:e.rewind();break;case 70:e.fullscreen.toggle();break;case 67:n||e.toggleCaptions();break;case 76:e.loop=!e.loop}27===r&&!e.fullscreen.usingNative&&e.fullscreen.active&&e.fullscreen.toggle(),this.lastKey=r}else this.lastKey=null}},{key:"toggleMenu",value:function(t){Te.toggleMenu.call(this.player,t)}}]),t}(),Ne=function(t,e){return function(t){t.exports=function(){var t=function(){},e={},i={},r={};function o(t,e){if(t){var o=r[t];if(i[t]=e,o)for(;o.length;)o[0](t,e),o.splice(0,1)}}function n(e,i){e.call&&(e={success:e}),i.length?(e.error||t)(i):(e.success||t)(e)}function a(e,i,r,o){var n,s,l=document,p=r.async,u=(r.numRetries||0)+1,c=r.before||t,d=e.replace(/[\?|#].*$/,""),h=e.replace(/^(css|img)!/,"");o=o||0,/(^css!|\.css$)/.test(d)?((s=l.createElement("link")).rel="stylesheet",s.href=h,(n="hideFocus"in s)&&s.relList&&(n=0,s.rel="preload",s.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(d)?(s=l.createElement("img")).src=h:((s=l.createElement("script")).src=e,s.async=void 0===p||p),s.onload=s.onerror=s.onbeforeload=function(t){var l=t.type[0];if(n)try{s.sheet.cssText.length||(l="e")}catch(t){18!=t.code&&(l="e")}if("e"==l){if((o+=1)<u)return a(e,i,r,o)}else if("preload"==s.rel&&"style"==s.as)return s.rel="stylesheet";i(e,l,t.defaultPrevented)},!1!==c(e,s)&&l.head.appendChild(s)}function s(t,e,i){var r,o,n=(t=t.push?t:[t]).length,s=n,l=[];for(r=function(t,i,r){if("e"==i&&l.push(t),"b"==i){if(!r)return;l.push(t)}--n||e(l)},o=0;o<s;o++)a(t[o],r,i)}function l(t,i,r){var a,l;if(i&&i.trim&&(a=i),l=(a?r:i)||{},a){if(a in e)throw"LoadJS";e[a]=!0}function p(e,i){s(t,(function(t){n(l,t),e&&n({success:e,error:i},t),o(a,t)}),l)}if(l.returnPromise)return new Promise(p);p()}return l.ready=function(t,e){return function(t,e){var o,n,a,s=[],l=(t=t.push?t:[t]).length,p=l;for(o=function(t,i){i.length&&s.push(t),--p||e(s)};l--;)(a=i[n=t[l]])?o(n,a):(r[n]=r[n]||[]).push(o)}(t,(function(t){n(e,t)})),l},l.done=function(t){o(t,[])},l.reset=function(){e={},i={},r={}},l.isDefined=function(t){return t in e},l}()}(e={exports:{}}),e.exports}();function Re(t){return new Promise((function(e,i){Ne(t,{success:e,error:i})}))}function Be(t){t&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===t&&(this.media.paused=!t,Kt.call(this,this.media,t?"play":"pause"))}var De={setup:function(){var t=this;Rt(t.elements.wrapper,t.config.classNames.embed,!0),t.options.speed=t.config.speed.options,le.call(t),ct(window.Vimeo)?De.ready.call(t):Re(t.config.urls.vimeo.sdk).then((function(){De.ready.call(t)})).catch((function(e){t.debug.warn("Vimeo SDK (player.js) failed to load",e)}))},ready:function(){var t=this,e=this,i=e.config.vimeo,r=i.premium,a=i.referrerPolicy,s=c(i,A);r&&Object.assign(s,{controls:!1,sidedock:!1});var l=Se(n({loop:e.config.loop.active,autoplay:e.autoplay,muted:e.muted,gesture:"media",playsinline:!this.config.fullscreen.iosNative},s)),p=e.media.getAttribute("src");xt(p)&&(p=e.media.getAttribute(e.config.attributes.embed.id));var u=function(t){return xt(t)?null:dt(Number(t))?t:t.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:t}(p),d=It("iframe"),h=de(e.config.urls.vimeo.iframe,u,l);if(d.setAttribute("src",h),d.setAttribute("allowfullscreen",""),d.setAttribute("allow",["autoplay","fullscreen","picture-in-picture","encrypted-media","accelerometer","gyroscope"].join("; ")),xt(a)||d.setAttribute("referrerPolicy",a),r||!i.customControls)d.setAttribute("data-poster",e.poster),e.media=Ft(d,e.media);else{var v=It("div",{class:e.config.classNames.embedContainer,"data-poster":e.poster});v.appendChild(d),e.media=Ft(v,e.media)}i.customControls||_e(de(e.config.urls.vimeo.api,h)).then((function(t){!xt(t)&&t.thumbnail_url&&Fe.setPoster.call(e,t.thumbnail_url).catch((function(){}))})),e.embed=new window.Vimeo.Player(d,{autopause:e.config.autopause,muted:e.muted}),e.media.paused=!0,e.media.currentTime=0,e.supported.ui&&e.embed.disableTextTrack(),e.media.play=function(){return Be.call(e,!0),e.embed.play()},e.media.pause=function(){return Be.call(e,!1),e.embed.pause()},e.media.stop=function(){e.pause(),e.currentTime=0};var y=e.media.currentTime;Object.defineProperty(e.media,"currentTime",{get:function(){return y},set:function(t){var i=e.embed,r=e.media,o=e.volume,n=e.paused&&!i.hasPlayed;r.seeking=!0,Kt.call(e,r,"seeking"),Promise.resolve(n&&i.setVolume(0)).then((function(){return i.setCurrentTime(t)})).then((function(){return n&&i.pause()})).then((function(){return n&&i.setVolume(o)})).catch((function(){}))}});var f=e.config.speed.selected;Object.defineProperty(e.media,"playbackRate",{get:function(){return f},set:function(t){e.embed.setPlaybackRate(t).then((function(){f=t,Kt.call(e,e.media,"ratechange")})).catch((function(){e.options.speed=[1]}))}});var g=e.config.volume;Object.defineProperty(e.media,"volume",{get:function(){return g},set:function(t){e.embed.setVolume(t).then((function(){g=t,Kt.call(e,e.media,"volumechange")}))}});var b=e.config.muted;Object.defineProperty(e.media,"muted",{get:function(){return b},set:function(t){var i=!!vt(t)&&t;e.embed.setVolume(i?0:e.config.volume).then((function(){b=i,Kt.call(e,e.media,"volumechange")}))}});var m,_=e.config.loop;Object.defineProperty(e.media,"loop",{get:function(){return _},set:function(t){var i=vt(t)?t:e.config.loop.active;e.embed.setLoop(i).then((function(){_=i}))}}),e.embed.getVideoUrl().then((function(t){m=t,Te.setDownloadUrl.call(e)})).catch((function(e){t.debug.warn(e)})),Object.defineProperty(e.media,"currentSrc",{get:function(){return m}}),Object.defineProperty(e.media,"ended",{get:function(){return e.currentTime===e.duration}}),Promise.all([e.embed.getVideoWidth(),e.embed.getVideoHeight()]).then((function(i){var r=o(i,2);e.embed.ratio=pe(r[0],r[1]),le.call(t)})),e.embed.setAutopause(e.config.autopause).then((function(t){e.config.autopause=t})),e.embed.getVideoTitle().then((function(i){e.config.title=i,Fe.setTitle.call(t)})),e.embed.getCurrentTime().then((function(t){y=t,Kt.call(e,e.media,"timeupdate")})),e.embed.getDuration().then((function(t){e.media.duration=t,Kt.call(e,e.media,"durationchange")})),e.embed.getTextTracks().then((function(t){e.media.textTracks=t,Pe.setup.call(e)})),e.embed.on("cuechange",(function(t){var i=t.cues,r=(void 0===i?[]:i).map((function(t){return function(t){var e=document.createDocumentFragment(),i=document.createElement("div");return e.appendChild(i),i.innerHTML=t,e.firstChild.innerText}(t.text)}));Pe.updateCues.call(e,r)})),e.embed.on("loaded",(function(){e.embed.getPaused().then((function(t){Be.call(e,!t),t||Kt.call(e,e.media,"playing")})),bt(e.embed.element)&&e.supported.ui&&e.embed.element.setAttribute("tabindex",-1)})),e.embed.on("bufferstart",(function(){Kt.call(e,e.media,"waiting")})),e.embed.on("bufferend",(function(){Kt.call(e,e.media,"playing")})),e.embed.on("play",(function(){Be.call(e,!0),Kt.call(e,e.media,"playing")})),e.embed.on("pause",(function(){Be.call(e,!1)})),e.embed.on("timeupdate",(function(t){e.media.seeking=!1,y=t.seconds,Kt.call(e,e.media,"timeupdate")})),e.embed.on("progress",(function(t){e.media.buffered=t.percent,Kt.call(e,e.media,"progress"),1===parseInt(t.percent,10)&&Kt.call(e,e.media,"canplaythrough"),e.embed.getDuration().then((function(t){t!==e.media.duration&&(e.media.duration=t,Kt.call(e,e.media,"durationchange"))}))})),e.embed.on("seeked",(function(){e.media.seeking=!1,Kt.call(e,e.media,"seeked")})),e.embed.on("ended",(function(){e.media.paused=!0,Kt.call(e,e.media,"ended")})),e.embed.on("error",(function(t){e.media.error=t,Kt.call(e,e.media,"error")})),i.customControls&&setTimeout((function(){return Fe.build.call(e)}),0)}};function qe(t){t&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===t&&(this.media.paused=!t,Kt.call(this,this.media,t?"play":"pause"))}function He(t){return t.noCookie?"https://www.youtube-nocookie.com":"http:"===window.location.protocol?"http://www.youtube.com":void 0}var Ve,$e,Ue,Qe,We,Ye,Je={setup:function(){var t=this;if(Rt(this.elements.wrapper,this.config.classNames.embed,!0),ct(window.YT)&&yt(window.YT.Player))Je.ready.call(this);else{var e=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=function(){yt(e)&&e(),Je.ready.call(t)},Re(this.config.urls.youtube.sdk).catch((function(e){t.debug.warn("YouTube API failed to load",e)}))}},getTitle:function(t){var e=this;_e(de(this.config.urls.youtube.api,t)).then((function(t){if(ct(t)){var i=t.height,r=t.width;e.config.title=t.title,Fe.setTitle.call(e),e.embed.ratio=pe(r,i)}le.call(e)})).catch((function(){le.call(e)}))},ready:function(){var t=this,e=t.config.youtube,i=t.media&&t.media.getAttribute("id");if(xt(i)||!i.startsWith("youtube-")){var r=t.media.getAttribute("src");xt(r)&&(r=t.media.getAttribute(this.config.attributes.embed.id));var o=function(t){return xt(t)?null:t.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/)?RegExp.$2:t}(r),n=It("div",{id:ce(t.provider),"data-poster":e.customControls?t.poster:void 0});if(t.media=Ft(n,t.media),e.customControls){var a=function(t){return"https://i.ytimg.com/vi/".concat(o,"/").concat(t,"default.jpg")};Ee(a("maxres"),121).catch((function(){return Ee(a("sd"),121)})).catch((function(){return Ee(a("hq"))})).then((function(e){return Fe.setPoster.call(t,e.src)})).then((function(e){e.includes("maxres")||(t.elements.poster.style.backgroundSize="cover")})).catch((function(){}))}t.embed=new window.YT.Player(t.media,{videoId:o,host:He(e),playerVars:Pt({},{autoplay:t.config.autoplay?1:0,hl:t.config.hl,controls:t.supported.ui&&e.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},e),events:{onError:function(e){if(!t.media.error){var i=e.data;t.media.error={code:i,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."}[i]||"An unknown error occured"},Kt.call(t,t.media,"error")}},onPlaybackRateChange:function(e){t.media.playbackRate=e.target.getPlaybackRate(),Kt.call(t,t.media,"ratechange")},onReady:function(i){if(!yt(t.media.play)){var r=i.target;Je.getTitle.call(t,o),t.media.play=function(){qe.call(t,!0),r.playVideo()},t.media.pause=function(){qe.call(t,!1),r.pauseVideo()},t.media.stop=function(){r.stopVideo()},t.media.duration=r.getDuration(),t.media.paused=!0,t.media.currentTime=0,Object.defineProperty(t.media,"currentTime",{get:function(){return Number(r.getCurrentTime())},set:function(e){t.paused&&!t.embed.hasPlayed&&t.embed.mute(),t.media.seeking=!0,Kt.call(t,t.media,"seeking"),r.seekTo(e)}}),Object.defineProperty(t.media,"playbackRate",{get:function(){return r.getPlaybackRate()},set:function(t){r.setPlaybackRate(t)}});var n=t.config.volume;Object.defineProperty(t.media,"volume",{get:function(){return n},set:function(e){r.setVolume(100*(n=e)),Kt.call(t,t.media,"volumechange")}});var a=t.config.muted;Object.defineProperty(t.media,"muted",{get:function(){return a},set:function(e){var i=vt(e)?e:a;a=i,r[i?"mute":"unMute"](),r.setVolume(100*n),Kt.call(t,t.media,"volumechange")}}),Object.defineProperty(t.media,"currentSrc",{get:function(){return r.getVideoUrl()}}),Object.defineProperty(t.media,"ended",{get:function(){return t.currentTime===t.duration}});var s=r.getAvailablePlaybackRates();t.options.speed=s.filter((function(e){return t.config.speed.options.includes(e)})),t.supported.ui&&e.customControls&&t.media.setAttribute("tabindex",-1),Kt.call(t,t.media,"timeupdate"),Kt.call(t,t.media,"durationchange"),clearInterval(t.timers.buffering),t.timers.buffering=setInterval((function(){t.media.buffered=r.getVideoLoadedFraction(),(null===t.media.lastBuffered||t.media.lastBuffered<t.media.buffered)&&Kt.call(t,t.media,"progress"),t.media.lastBuffered=t.media.buffered,1===t.media.buffered&&(clearInterval(t.timers.buffering),Kt.call(t,t.media,"canplaythrough"))}),200),e.customControls&&setTimeout((function(){return Fe.build.call(t)}),50)}},onStateChange:function(i){var r=i.target;switch(clearInterval(t.timers.playing),t.media.seeking&&[1,2].includes(i.data)&&(t.media.seeking=!1,Kt.call(t,t.media,"seeked")),i.data){case-1:Kt.call(t,t.media,"timeupdate"),t.media.buffered=r.getVideoLoadedFraction(),Kt.call(t,t.media,"progress");break;case 0:qe.call(t,!1),t.media.loop?(r.stopVideo(),r.playVideo()):Kt.call(t,t.media,"ended");break;case 1:e.customControls&&!t.config.autoplay&&t.media.paused&&!t.embed.hasPlayed?t.media.pause():(qe.call(t,!0),Kt.call(t,t.media,"playing"),t.timers.playing=setInterval((function(){Kt.call(t,t.media,"timeupdate")}),50),t.media.duration!==r.getDuration()&&(t.media.duration=r.getDuration(),Kt.call(t,t.media,"durationchange")));break;case 2:t.muted||t.embed.unMute(),qe.call(t,!1);break;case 3:Kt.call(t,t.media,"waiting")}Kt.call(t,t.elements.container,"statechange",!1,{code:i.data})}}})}}},Ge={setup:function(){this.media?(Rt(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),Rt(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&Rt(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=It("div",{class:this.config.classNames.video}),Ct(this.media,this.elements.wrapper),this.elements.poster=It("div",{class:this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster)),this.isHTML5?ue.setup.call(this):this.isYouTube?Je.setup.call(this):this.isVimeo&&De.setup.call(this)):this.debug.warn("No media element found!")}},Ke=function(){function t(e){var i=this;p(this,t),M(this,"load",(function(){i.enabled&&(ct(window.google)&&ct(window.google.ima)?i.ready():Re(i.player.config.urls.googleIMA.sdk).then((function(){i.ready()})).catch((function(){i.trigger("error",new Error("Google IMA SDK failed to load"))})))})),M(this,"ready",(function(){var t;i.enabled||((t=i).manager&&t.manager.destroy(),t.elements.displayContainer&&t.elements.displayContainer.destroy(),t.elements.container.remove()),i.startSafetyTimer(12e3,"ready()"),i.managerPromise.then((function(){i.clearSafetyTimer("onAdsManagerLoaded()")})),i.listeners(),i.setupIMA()})),M(this,"setupIMA",(function(){i.elements.container=It("div",{class:i.player.config.classNames.ads}),i.player.elements.container.appendChild(i.elements.container),google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),google.ima.settings.setLocale(i.player.config.ads.language),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(i.player.config.playsinline),i.elements.displayContainer=new google.ima.AdDisplayContainer(i.elements.container,i.player.media),i.loader=new google.ima.AdsLoader(i.elements.displayContainer),i.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,(function(t){return i.onAdsManagerLoaded(t)}),!1),i.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,(function(t){return i.onAdError(t)}),!1),i.requestAds()})),M(this,"requestAds",(function(){var t=i.player.elements.container;try{var e=new google.ima.AdsRequest;e.adTagUrl=i.tagUrl,e.linearAdSlotWidth=t.offsetWidth,e.linearAdSlotHeight=t.offsetHeight,e.nonLinearAdSlotWidth=t.offsetWidth,e.nonLinearAdSlotHeight=t.offsetHeight,e.forceNonLinearFullSlot=!1,e.setAdWillPlayMuted(!i.player.muted),i.loader.requestAds(e)}catch(t){i.onAdError(t)}})),M(this,"pollCountdown",(function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!t)return clearInterval(i.countdownTimer),void i.elements.container.removeAttribute("data-badge-text");i.countdownTimer=setInterval((function(){var t=ze(Math.max(i.manager.getRemainingTime(),0)),e="".concat(be("advertisement",i.player.config)," - ").concat(t);i.elements.container.setAttribute("data-badge-text",e)}),100)})),M(this,"onAdsManagerLoaded",(function(t){if(i.enabled){var e=new google.ima.AdsRenderingSettings;e.restoreCustomPlaybackStateOnAdBreakComplete=!0,e.enablePreloading=!0,i.manager=t.getAdsManager(i.player,e),i.cuePoints=i.manager.getCuePoints(),i.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,(function(t){return i.onAdError(t)})),Object.keys(google.ima.AdEvent.Type).forEach((function(t){i.manager.addEventListener(google.ima.AdEvent.Type[t],(function(t){return i.onAdEvent(t)}))})),i.trigger("loaded")}})),M(this,"addCuePoints",(function(){xt(i.cuePoints)||i.cuePoints.forEach((function(t){if(0!==t&&-1!==t&&t<i.player.duration){var e=i.player.elements.progress;if(bt(e)){var r=100/i.player.duration*t,o=It("span",{class:i.player.config.classNames.cues});o.style.left="".concat(r.toString(),"%"),e.appendChild(o)}}}))})),M(this,"onAdEvent",(function(t){var e=i.player.elements.container,r=t.getAd(),o=t.getAdData();switch(function(t){Kt.call(i.player,i.player.media,"ads".concat(t.replace(/_/g,"").toLowerCase()))}(t.type),t.type){case google.ima.AdEvent.Type.LOADED:i.trigger("loaded"),i.pollCountdown(!0),r.isLinear()||(r.width=e.offsetWidth,r.height=e.offsetHeight);break;case google.ima.AdEvent.Type.STARTED:i.manager.setVolume(i.player.volume);break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:i.player.ended?i.loadAds():i.loader.contentComplete();break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:i.pauseContent();break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:i.pollCountdown(),i.resumeContent();break;case google.ima.AdEvent.Type.LOG:o.adError&&i.player.debug.warn("Non-fatal ad error: ".concat(o.adError.getMessage()))}})),M(this,"onAdError",(function(t){i.cancel(),i.player.debug.warn("Ads error",t)})),M(this,"listeners",(function(){var t,e=i.player.elements.container;i.player.on("canplay",(function(){i.addCuePoints()})),i.player.on("ended",(function(){i.loader.contentComplete()})),i.player.on("timeupdate",(function(){t=i.player.currentTime})),i.player.on("seeked",(function(){var e=i.player.currentTime;xt(i.cuePoints)||i.cuePoints.forEach((function(r,o){t<r&&r<e&&(i.manager.discardAdBreak(),i.cuePoints.splice(o,1))}))})),window.addEventListener("resize",(function(){i.manager&&i.manager.resize(e.offsetWidth,e.offsetHeight,google.ima.ViewMode.NORMAL)}))})),M(this,"play",(function(){var t=i.player.elements.container;i.managerPromise||i.resumeContent(),i.managerPromise.then((function(){i.manager.setVolume(i.player.volume),i.elements.displayContainer.initialize();try{i.initialized||(i.manager.init(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL),i.manager.start()),i.initialized=!0}catch(t){i.onAdError(t)}})).catch((function(){}))})),M(this,"resumeContent",(function(){i.elements.container.style.zIndex="",i.playing=!1,te(i.player.media.play())})),M(this,"pauseContent",(function(){i.elements.container.style.zIndex=3,i.playing=!0,i.player.media.pause()})),M(this,"cancel",(function(){i.initialized&&i.resumeContent(),i.trigger("error"),i.loadAds()})),M(this,"loadAds",(function(){i.managerPromise.then((function(){i.manager&&i.manager.destroy(),i.managerPromise=new Promise((function(t){i.on("loaded",t),i.player.debug.log(i.manager)})),i.initialized=!1,i.requestAds()})).catch((function(){}))})),M(this,"trigger",(function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];var n=i.events[t];ft(n)&&n.forEach((function(t){yt(t)&&t.apply(i,r)}))})),M(this,"on",(function(t,e){return ft(i.events[t])||(i.events[t]=[]),i.events[t].push(e),i})),M(this,"startSafetyTimer",(function(t,e){i.player.debug.log("Safety timer invoked from: ".concat(e)),i.safetyTimer=setTimeout((function(){i.cancel(),i.clearSafetyTimer("startSafetyTimer()")}),t)})),M(this,"clearSafetyTimer",(function(t){ut(i.safetyTimer)||(i.player.debug.log("Safety timer cleared from: ".concat(t)),clearTimeout(i.safetyTimer),i.safetyTimer=null)})),this.player=e,this.config=e.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,e){i.on("loaded",t),i.on("error",e)})),this.load()}return s(t,[{key:"enabled",get:function(){var t=this.config;return this.player.isHTML5&&this.player.isVideo&&t.enabled&&(!xt(t.publisherId)||kt(t.tagUrl))}},{key:"tagUrl",get:function(){var t=this.config;return kt(t.tagUrl)?t.tagUrl:"https://go.aniview.com/api/adserver6/vast/?".concat(Se({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}(),Xe=function(t){var e=[];return t.split(/\r\n\r\n|\n\n|\r\r/).forEach((function(t){var i={};t.split(/\r\n|\n|\r/).forEach((function(t){if(dt(i.startTime)){if(!xt(t.trim())&&xt(i.text)){var e,r,n,a=t.trim().split("#xywh=");e=o(a,1),i.text=e[0],a[1]&&(r=a[1].split(","),n=o(r,4),i.x=n[0],i.y=n[1],i.w=n[2],i.h=n[3])}}else{var s=t.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})/);s&&(i.startTime=60*Number(s[1]||0)*60+60*Number(s[2])+Number(s[3])+Number("0.".concat(s[4])),i.endTime=60*Number(s[6]||0)*60+60*Number(s[7])+Number(s[8])+Number("0.".concat(s[9])))}})),i.text&&e.push(i)})),e},Ze=function(t,e){var i={};return t>e.width/e.height?(i.width=e.width,i.height=1/t*e.width):(i.height=e.height,i.width=t*e.height),i},ti=function(){function t(e){var i=this;p(this,t),M(this,"load",(function(){i.player.elements.display.seekTooltip&&(i.player.elements.display.seekTooltip.hidden=i.enabled),i.enabled&&i.getThumbnails().then((function(){i.enabled&&(i.render(),i.determineContainerAutoSizing(),i.loaded=!0)}))})),M(this,"getThumbnails",(function(){return new Promise((function(t){var e=i.player.config.previewThumbnails.src;if(xt(e))throw new Error("Missing previewThumbnails.src config attribute");var r=function(){i.thumbnails.sort((function(t,e){return t.height-e.height})),i.player.debug.log("Preview thumbnails",i.thumbnails),t()};if(yt(e))e((function(t){i.thumbnails=t,r()}));else{var o=(ht(e)?[e]:e).map((function(t){return i.getThumbnail(t)}));Promise.all(o).then(r)}}))})),M(this,"getThumbnail",(function(t){return new Promise((function(e){_e(t).then((function(r){var o={frames:Xe(r),height:null,urlPrefix:""};o.frames[0].text.startsWith("/")||o.frames[0].text.startsWith("http://")||o.frames[0].text.startsWith("https://")||(o.urlPrefix=t.substring(0,t.lastIndexOf("/")+1));var n=new Image;n.onload=function(){o.height=n.naturalHeight,o.width=n.naturalWidth,i.thumbnails.push(o),e()},n.src=o.urlPrefix+o.frames[0].text}))}))})),M(this,"startMove",(function(t){if(i.loaded&&mt(t)&&["touchmove","mousemove"].includes(t.type)&&i.player.media.duration){if("touchmove"===t.type)i.seekTime=i.player.media.duration*(i.player.elements.inputs.seek.value/100);else{var e=i.player.elements.progress.getBoundingClientRect();i.seekTime=i.player.media.duration*(100/e.width*(t.pageX-e.left)/100),i.seekTime<0&&(i.seekTime=0),i.seekTime>i.player.media.duration-1&&(i.seekTime=i.player.media.duration-1),i.mousePosX=t.pageX,i.elements.thumb.time.innerText=ze(i.seekTime)}i.showImageAtCurrentTime()}})),M(this,"endMove",(function(){i.toggleThumbContainer(!1,!0)})),M(this,"startScrubbing",(function(t){(ut(t.button)||!1===t.button||0===t.button)&&(i.mouseDown=!0,i.player.media.duration&&(i.toggleScrubbingContainer(!0),i.toggleThumbContainer(!1,!0),i.showImageAtCurrentTime()))})),M(this,"endScrubbing",(function(){i.mouseDown=!1,Math.ceil(i.lastTime)===Math.ceil(i.player.media.currentTime)?i.toggleScrubbingContainer(!1):Gt.call(i.player,i.player.media,"timeupdate",(function(){i.mouseDown||i.toggleScrubbingContainer(!1)}))})),M(this,"listeners",(function(){i.player.on("play",(function(){i.toggleThumbContainer(!1,!0)})),i.player.on("seeked",(function(){i.toggleThumbContainer(!1)})),i.player.on("timeupdate",(function(){i.lastTime=i.player.media.currentTime}))})),M(this,"render",(function(){i.elements.thumb.container=It("div",{class:i.player.config.classNames.previewThumbnails.thumbContainer}),i.elements.thumb.imageContainer=It("div",{class:i.player.config.classNames.previewThumbnails.imageContainer}),i.elements.thumb.container.appendChild(i.elements.thumb.imageContainer);var t=It("div",{class:i.player.config.classNames.previewThumbnails.timeContainer});i.elements.thumb.time=It("span",{},"00:00"),t.appendChild(i.elements.thumb.time),i.elements.thumb.container.appendChild(t),bt(i.player.elements.progress)&&i.player.elements.progress.appendChild(i.elements.thumb.container),i.elements.scrubbing.container=It("div",{class:i.player.config.classNames.previewThumbnails.scrubbingContainer}),i.player.elements.wrapper.appendChild(i.elements.scrubbing.container)})),M(this,"destroy",(function(){i.elements.thumb.container&&i.elements.thumb.container.remove(),i.elements.scrubbing.container&&i.elements.scrubbing.container.remove()})),M(this,"showImageAtCurrentTime",(function(){i.mouseDown?i.setScrubbingContainerSize():i.setThumbContainerSizeAndPos();var t=i.thumbnails[0].frames.findIndex((function(t){return i.seekTime>=t.startTime&&i.seekTime<=t.endTime})),e=t>=0,r=0;i.mouseDown||i.toggleThumbContainer(e),e&&(i.thumbnails.forEach((function(e,o){i.loadedImages.includes(e.frames[t].text)&&(r=o)})),t!==i.showingThumb&&(i.showingThumb=t,i.loadImage(r)))})),M(this,"loadImage",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=i.showingThumb,r=i.thumbnails[t],o=r.urlPrefix,n=r.frames[e],a=r.frames[e].text,s=o+a;if(i.currentImageElement&&i.currentImageElement.dataset.filename===a)i.showImage(i.currentImageElement,n,t,e,a,!1),i.currentImageElement.dataset.index=e,i.removeOldImages(i.currentImageElement);else{i.loadingImage&&i.usingSprites&&(i.loadingImage.onload=null);var l=new Image;l.src=s,l.dataset.index=e,l.dataset.filename=a,i.showingThumbFilename=a,i.player.debug.log("Loading image: ".concat(s)),l.onload=function(){return i.showImage(l,n,t,e,a,!0)},i.loadingImage=l,i.removeOldImages(l)}})),M(this,"showImage",(function(t,e,r,o,n){var a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];i.player.debug.log("Showing thumb: ".concat(n,". num: ").concat(o,". qual: ").concat(r,". newimg: ").concat(a)),i.setImageSizeAndOffset(t,e),a&&(i.currentImageContainer.appendChild(t),i.currentImageElement=t,i.loadedImages.includes(n)||i.loadedImages.push(n)),i.preloadNearby(o,!0).then(i.preloadNearby(o,!1)).then(i.getHigherQuality(r,t,e,n))})),M(this,"removeOldImages",(function(t){Array.from(i.currentImageContainer.children).forEach((function(e){if("img"===e.tagName.toLowerCase()){var r=i.usingSprites?500:1e3;if(e.dataset.index!==t.dataset.index&&!e.dataset.deleting){e.dataset.deleting=!0;var o=i.currentImageContainer;setTimeout((function(){o.removeChild(e),i.player.debug.log("Removing thumb: ".concat(e.dataset.filename))}),r)}}}))})),M(this,"preloadNearby",(function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return new Promise((function(r){setTimeout((function(){var o=i.thumbnails[0].frames[t].text;if(i.showingThumbFilename===o){var n;n=e?i.thumbnails[0].frames.slice(t):i.thumbnails[0].frames.slice(0,t).reverse();var a=!1;n.forEach((function(t){var e=t.text;if(e!==o&&!i.loadedImages.includes(e)){a=!0,i.player.debug.log("Preloading thumb filename: ".concat(e));var n=i.thumbnails[0].urlPrefix+e,s=new Image;s.src=n,s.onload=function(){i.player.debug.log("Preloaded thumb filename: ".concat(e)),i.loadedImages.includes(e)||i.loadedImages.push(e),r()}}})),a||r()}}),300)}))})),M(this,"getHigherQuality",(function(t,e,r,o){if(t<i.thumbnails.length-1){var n=e.naturalHeight;i.usingSprites&&(n=r.h),n<i.thumbContainerHeight&&setTimeout((function(){i.showingThumbFilename===o&&(i.player.debug.log("Showing higher quality thumb for: ".concat(o)),i.loadImage(t+1))}),300)}})),M(this,"toggleThumbContainer",(function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=i.player.config.classNames.previewThumbnails.thumbContainerShown;i.elements.thumb.container.classList.toggle(r,t),!t&&e&&(i.showingThumb=null,i.showingThumbFilename=null)})),M(this,"toggleScrubbingContainer",(function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=i.player.config.classNames.previewThumbnails.scrubbingContainerShown;i.elements.scrubbing.container.classList.toggle(e,t),t||(i.showingThumb=null,i.showingThumbFilename=null)})),M(this,"determineContainerAutoSizing",(function(){(i.elements.thumb.imageContainer.clientHeight>20||i.elements.thumb.imageContainer.clientWidth>20)&&(i.sizeSpecifiedInCSS=!0)})),M(this,"setThumbContainerSizeAndPos",(function(){if(i.sizeSpecifiedInCSS){if(i.elements.thumb.imageContainer.clientHeight>20&&i.elements.thumb.imageContainer.clientWidth<20){var t=Math.floor(i.elements.thumb.imageContainer.clientHeight*i.thumbAspectRatio);i.elements.thumb.imageContainer.style.width="".concat(t,"px")}else if(i.elements.thumb.imageContainer.clientHeight<20&&i.elements.thumb.imageContainer.clientWidth>20){var e=Math.floor(i.elements.thumb.imageContainer.clientWidth/i.thumbAspectRatio);i.elements.thumb.imageContainer.style.height="".concat(e,"px")}}else{var r=Math.floor(i.thumbContainerHeight*i.thumbAspectRatio);i.elements.thumb.imageContainer.style.height="".concat(i.thumbContainerHeight,"px"),i.elements.thumb.imageContainer.style.width="".concat(r,"px")}i.setThumbContainerPos()})),M(this,"setThumbContainerPos",(function(){var t=i.player.elements.progress.getBoundingClientRect(),e=i.player.elements.container.getBoundingClientRect(),r=i.elements.thumb.container,o=e.left-t.left+10,n=e.right-t.left-r.clientWidth-10,a=i.mousePosX-t.left-r.clientWidth/2;a<o&&(a=o),a>n&&(a=n),r.style.left="".concat(a,"px")})),M(this,"setScrubbingContainerSize",(function(){var t=Ze(i.thumbAspectRatio,{width:i.player.media.clientWidth,height:i.player.media.clientHeight}),e=t.height;i.elements.scrubbing.container.style.width="".concat(t.width,"px"),i.elements.scrubbing.container.style.height="".concat(e,"px")})),M(this,"setImageSizeAndOffset",(function(t,e){if(i.usingSprites){var r=i.thumbContainerHeight/e.h;t.style.height=t.naturalHeight*r+"px",t.style.width=t.naturalWidth*r+"px",t.style.left="-".concat(e.x*r,"px"),t.style.top="-".concat(e.y*r,"px")}})),this.player=e,this.thumbnails=[],this.loaded=!1,this.lastMouseMoveTime=Date.now(),this.mouseDown=!1,this.loadedImages=[],this.elements={thumb:{},scrubbing:{}},this.load()}return s(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?Ze(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}(),ei={insertElements:function(t,e){var i=this;ht(e)?At(t,this.media,{src:e}):ft(e)&&e.forEach((function(e){At(t,i.media,e)}))},change:function(t){var e=this;St(t,"sources.length")?(ue.cancelRequests.call(this),this.destroy.call(this,(function(){e.options.quality=[],Mt(e.media),e.media=null,bt(e.elements.container)&&e.elements.container.removeAttribute("class");var i=t.sources,r=t.type,n=o(i,1)[0],a=n.provider,s=void 0===a?Oe.html5:a,l="html5"===s?r:"div",p="html5"===s?{}:{src:n.src};Object.assign(e,{provider:s,type:r,supported:Ut.check(r,s,e.config.playsinline),media:It(l,p)}),e.elements.container.appendChild(e.media),vt(t.autoplay)&&(e.config.autoplay=t.autoplay),e.isHTML5&&(e.config.crossorigin&&e.media.setAttribute("crossorigin",""),e.config.autoplay&&e.media.setAttribute("autoplay",""),xt(t.poster)||(e.poster=t.poster),e.config.loop.active&&e.media.setAttribute("loop",""),e.config.muted&&e.media.setAttribute("muted",""),e.config.playsinline&&e.media.setAttribute("playsinline","")),Fe.addStyleHook.call(e),e.isHTML5&&ei.insertElements.call(e,"source",i),e.config.title=t.title,Ge.setup.call(e),e.isHTML5&&Object.keys(t).includes("tracks")&&ei.insertElements.call(e,"track",t.tracks),(e.isHTML5||e.isEmbed&&!e.supported.ui)&&Fe.build.call(e),e.isHTML5&&e.media.load(),xt(t.previewThumbnails)||(Object.assign(e.config.previewThumbnails,t.previewThumbnails),e.previewThumbnails&&e.previewThumbnails.loaded&&(e.previewThumbnails.destroy(),e.previewThumbnails=null),e.config.previewThumbnails.enabled&&(e.previewThumbnails=new ti(e))),e.fullscreen.update()}),!0)):this.debug.warn("Invalid source format")}},ii=function(){function t(e,i){var r=this;if(p(this,t),M(this,"play",(function(){return yt(r.media.play)?(r.ads&&r.ads.enabled&&r.ads.managerPromise.then((function(){return r.ads.play()})).catch((function(){return te(r.media.play())})),r.media.play()):null})),M(this,"pause",(function(){return r.playing&&yt(r.media.pause)?r.media.pause():null})),M(this,"togglePlay",(function(t){return(vt(t)?t:!r.playing)?r.play():r.pause()})),M(this,"stop",(function(){r.isHTML5?(r.pause(),r.restart()):yt(r.media.stop)&&r.media.stop()})),M(this,"restart",(function(){r.currentTime=0})),M(this,"rewind",(function(t){r.currentTime-=dt(t)?t:r.config.seekTime})),M(this,"forward",(function(t){r.currentTime+=dt(t)?t:r.config.seekTime})),M(this,"increaseVolume",(function(t){r.volume=(r.media.muted?0:r.volume)+(dt(t)?t:0)})),M(this,"decreaseVolume",(function(t){r.increaseVolume(-t)})),M(this,"airplay",(function(){Ut.airplay&&r.media.webkitShowPlaybackTargetPicker()})),M(this,"toggleControls",(function(t){if(r.supported.ui&&!r.isAudio){var e=Bt(r.elements.container,r.config.classNames.hideControls),i=Rt(r.elements.container,r.config.classNames.hideControls,void 0===t?void 0:!t);return i&&ft(r.config.controls)&&r.config.controls.includes("settings")&&!xt(r.config.settings)&&Te.toggleMenu.call(r,!1),i!==e&&Kt.call(r,r.media,i?"controlshidden":"controlsshown"),!i}return!1})),M(this,"on",(function(t,e){Yt.call(r,r.elements.container,t,e)})),M(this,"once",(function(t,e){Gt.call(r,r.elements.container,t,e)})),M(this,"off",(function(t,e){Jt(r.elements.container,t,e)})),M(this,"destroy",(function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(r.ready){var i=function(){document.body.style.overflow="",r.embed=null,e?(Object.keys(r.elements).length&&(Mt(r.elements.buttons.play),Mt(r.elements.captions),Mt(r.elements.controls),Mt(r.elements.wrapper),r.elements.buttons.play=null,r.elements.captions=null,r.elements.controls=null,r.elements.wrapper=null),yt(t)&&t()):(Xt.call(r),ue.cancelRequests.call(r),Ft(r.elements.original,r.elements.container),Kt.call(r,r.elements.original,"destroyed",!0),yt(t)&&t.call(r.elements.original),r.ready=!1,setTimeout((function(){r.elements=null,r.media=null}),200))};r.stop(),clearTimeout(r.timers.loading),clearTimeout(r.timers.controls),clearTimeout(r.timers.resized),r.isHTML5?(Fe.toggleNativeControls.call(r,!0),i()):r.isYouTube?(clearInterval(r.timers.buffering),clearInterval(r.timers.playing),null!==r.embed&&yt(r.embed.destroy)&&r.embed.destroy(),i()):r.isVimeo&&(null!==r.embed&&r.embed.unload().then(i),setTimeout(i,200))}})),M(this,"supports",(function(t){return Ut.mime.call(r,t)})),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=Ut.touch,this.media=e,ht(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||gt(this.media)||ft(this.media))&&(this.media=this.media[0]),this.config=Pt({},Ce,t.defaults,i||{},function(){try{return JSON.parse(r.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 Ae(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",Ut),!ut(this.media)&&bt(this.media))if(this.media.plyr)this.debug.warn("Target already setup");else if(this.config.enabled)if(Ut.check().api){var o=this.media.cloneNode(!0);o.autoplay=!1,this.elements.original=o;var n=this.media.tagName.toLowerCase(),a=null,s=null;switch(n){case"div":if(a=this.media.querySelector("iframe"),bt(a)){if(s=je(a.getAttribute("src")),this.provider=function(t){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(t)?Oe.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(t)?Oe.vimeo:null}(s.toString()),this.elements.container=this.media,this.media=a,this.elements.container.className="",s.search.length){var l=["1","true"];l.includes(s.searchParams.get("autoplay"))&&(this.config.autoplay=!0),l.includes(s.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=l.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(xt(this.provider)||!Object.values(Oe).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type="video";break;case"video":case"audio":this.type=n,this.provider=Oe.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=Ut.check(this.type,this.provider,this.config.playsinline),this.supported.api?(this.eventListeners=[],this.listeners=new Le(this),this.storage=new me(this),this.media.plyr=this,bt(this.elements.container)||(this.elements.container=It("div",{tabindex:0}),Ct(this.media,this.elements.container)),Fe.migrateStyles.call(this),Fe.addStyleHook.call(this),Ge.setup.call(this),this.config.debug&&Yt.call(this,this.elements.container,this.config.events.join(" "),(function(t){r.debug.log("event: ".concat(t.type))})),this.fullscreen=new Me(this),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&Fe.build.call(this),this.listeners.container(),this.listeners.global(),this.config.ads.enabled&&(this.ads=new Ke(this)),this.isHTML5&&this.config.autoplay&&this.once("canplay",(function(){return te(r.play())})),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new ti(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 s(t,[{key:"isHTML5",get:function(){return this.provider===Oe.html5}},{key:"isEmbed",get:function(){return this.isYouTube||this.isVimeo}},{key:"isYouTube",get:function(){return this.provider===Oe.youtube}},{key:"isVimeo",get:function(){return this.provider===Oe.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 e=dt(t)&&t>0;this.media.currentTime=e?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 dt(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),e=(this.media||{}).duration,i=dt(e)&&e!==1/0?e:0;return t||i}},{key:"volume",get:function(){return Number(this.media.volume)},set:function(t){var e=t;ht(e)&&(e=Number(e)),dt(e)||(e=this.storage.get("volume")),dt(e)||(e=this.config.volume),e>1&&(e=1),e<0&&(e=0),this.config.volume=e,this.media.volume=e,!xt(t)&&this.muted&&e>0&&(this.muted=!1)}},{key:"muted",get:function(){return Boolean(this.media.muted)},set:function(t){var e=t;vt(e)||(e=this.storage.get("muted")),vt(e)||(e=this.config.muted),this.config.muted=e,this.media.muted=e}},{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 e=this,i=null;dt(t)&&(i=t),dt(i)||(i=this.storage.get("speed")),dt(i)||(i=this.config.speed.selected),i=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)}(i,this.minimumSpeed,this.maximumSpeed),this.config.speed.selected=i,setTimeout((function(){e.media.playbackRate=i}),0)}},{key:"minimumSpeed",get:function(){return this.isYouTube?Math.min.apply(Math,u(this.options.speed)):this.isVimeo?.5:.0625}},{key:"maximumSpeed",get:function(){return this.isYouTube?Math.max.apply(Math,u(this.options.speed)):this.isVimeo?2:16}},{key:"quality",get:function(){return this.media.quality},set:function(t){var e=this.config.quality,i=this.options.quality;if(i.length){var r=[!xt(t)&&Number(t),this.storage.get("quality"),e.selected,e.default].find(dt),o=!0;if(!i.includes(r)){var n=ie(i,r);this.debug.warn("Unsupported quality option: ".concat(r,", using ").concat(n," instead")),r=n,o=!1}e.selected=r,this.media.quality=r,o&&this.storage.set({quality:r})}}},{key:"loop",get:function(){return Boolean(this.media.loop)},set:function(t){var e=vt(t)?t:this.config.loop.active;this.config.loop.active=e,this.media.loop=e}},{key:"source",get:function(){return this.media.currentSrc},set:function(t){ei.change.call(this,t)}},{key:"download",get:function(){var t=this.config.urls.download;return kt(t)?t:this.source},set:function(t){kt(t)&&(this.config.urls.download=t,Te.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?Fe.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=ae(se.call(this));return ft(t)?t.join(":"):t},set:function(t){this.isVideo?ht(t)&&ne(t)?(this.config.ratio=ae(t),le.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 e=vt(t)?t:this.config.autoplay;this.config.autoplay=e}},{key:"toggleCaptions",value:function(t){Pe.toggle.call(this,t,!1)}},{key:"currentTrack",get:function(){var t=this.captions;return t.toggled?t.currentTrack:-1},set:function(t){Pe.set.call(this,t,!1)}},{key:"language",get:function(){return(Pe.getCurrentTrack.call(this)||{}).language},set:function(t){Pe.setLanguage.call(this,t,!1)}},{key:"pip",get:function(){return Ut.pip?xt(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:"picture-in-picture"===this.media.webkitPresentationMode:null},set:function(t){if(Ut.pip){var e=vt(t)?t:!this.pip;yt(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(e?"picture-in-picture":"inline"),yt(this.media.requestPictureInPicture)&&(!this.pip&&e?this.media.requestPictureInPicture():this.pip&&!e&&document.exitPictureInPicture())}}}],[{key:"supported",value:function(t,e,i){return Ut.check(t,e,i)}},{key:"loadSprite",value:function(t,e){return we(t,e)}},{key:"setup",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null;return ht(e)?r=Array.from(document.querySelectorAll(e)):gt(e)?r=Array.from(e):ft(e)&&(r=e.filter(bt)),xt(r)?null:r.map((function(e){return new t(e,i)}))}}]),t}();function ri(t){t.on("timeupdate",(function(){return function(t){var e,i;null!=t&&null!==(e=t.config)&&void 0!==e&&null!==(i=e.mutedPreview)&&void 0!==i&&i.enabled||function(t){var e;0!==t.currentTime&&null!=t&&null!==(e=t.config)&&void 0!==e&&e.save_player_position&&localStorage.setItem("player-progress-".concat(oi(t)),t.currentTime)}(t)}(t)})),t.on("ready",(function(){return ni(t)})),t.on("loadeddata",(function(){return ni(t)}))}function oi(t){var e,i;return null==t||null===(e=t.config)||void 0===e||null===(i=e.blockAttributes)||void 0===i?void 0:i.id}function ni(t){var e,i,r;if(null!=t&&null!==(e=t.config)&&void 0!==e&&e.save_player_position&&(null==t||null===(i=t.config)||void 0===i||null===(r=i.mutedPreview)||void 0===r||!r.enabled)){var o=function(t){return parseFloat(localStorage.getItem("player-progress-".concat(oi(t))))}(t);return t.hls&&o>=0&&t.hls.startLoad(o),t.duration&&(o=Math.min(o,t.duration)),!o||o<1?0:(t.currentTime=o,null!=t&&t.isVimeo&&setTimeout((function(){t.embed.setCurrentTime(o||0)}),0),o)}}ii.defaults=JSON.parse(JSON.stringify(Ce));var ai=(null===(Ve=window)||void 0===Ve||null===($e=Ve.prestoPlayer)||void 0===$e||null===(Ue=$e.i18n)||void 0===Ue?void 0:Ue.hide_chapters)||"Hide Chapters",si=(null===(Qe=window)||void 0===Qe||null===(We=Qe.prestoPlayer)||void 0===We||null===(Ye=We.i18n)||void 0===Ye?void 0:Ye.show_chapters)||"Show Chapters";const li='<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(ai,'</span>\n<span class="label--not-pressed plyr__tooltip" role="tooltip">').concat(si,"</span>\n</button>\n");var pi,ui,ci;const di='\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===(pi=window)||void 0===pi||null===(ui=pi.prestoPlayer)||void 0===ui||null===(ci=ui.i18n)||void 0===ci?void 0:ci.chapters)||"Chapters",'</div>\n <div class="presto-player-toc__list" data-player-toc></div>\n </div>\n</div>');function hi(t){var e,i,r,o,n,a,s,p,c,d,h,v,y,f=0,g={},b=null,m=0;if("undefined"!=typeof jQuery)if(r=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!t.length)return t;var e={};return t.forEach((function(t){var i,r=t.time.split(":");r.length>1&&(i=60*parseInt(r[0])),e[parseInt(r[1])+parseInt(i)]=t})),e}((null===(e=o=t.detail.plyr)||void 0===e||null===(i=e.config)||void 0===i?void 0:i.chapters)||[]),"html5"!==o.provider||o.duration){if(r&&Object.keys(r).length){n=jQuery(o.elements.container).closest(".presto-player__wrapper").find(".plyr");var _=(y=jQuery(o.elements.controls)).find(".plyr__time");_=_.length?_:y.find(".plyr__progress__container"),(c=n.find('[data-plyr="chapters"]')).length||(c=jQuery(li).insertAfter(_)),(s=n.find(".presto-player-toc__wrapper")).length||(s=jQuery(di).appendTo(n)),d=s.find("[data-player-toc-cover]"),p=s.find("[data-player-toc]"),a=n.find(".plyr__progress__container");var w,k=jQuery('<div class="presto-player__chapters"></div>').appendTo(a);h=jQuery('<div class="presto-player__chapter-markers"></div>').appendTo(k),w=0,p.find(".presto-player-toc__chapter").length||(Object.keys(r).forEach((function(t){w++;var e=jQuery(function(t){var e=t.name,i=void 0===e?"Untitled":e,r=t.order,o=void 0===r?1:r,n=t.highlight;return'<div class="presto-player-toc__chapter '.concat(void 0!==n&&n?"is-highlighted":"",'" data-chapter-item>\n \n <span class="presto-player-toc__order">\n ').concat(o,'\n </span>\n <span class="presto-player-toc__name">\n ').concat(i,"\n </div>\n</div>")}({name:r[t].title,order:w})).appendTo(p);e.data("presto-player-timestamp",t),g[t]=e,e.on("click",(function(){o.currentTime=parseFloat(t),o.play(),T(!1)}))})),v=s.find("[data-chapter-item]")),z(),c.off("click"),c.on("click",T),x(),o.off("timeupdate"),o.on("timeupdate",x),b=window.setInterval((function(){m++,o.duration&&(z(),window.clearInterval(b)),m>50&&window.clearInterval(b)}),100),d.off("click"),d.on("click",(function(){return T(!1)})),p.off("mouseleave"),p.on("mouseleave",(function t(){if(o.playing){var e=setTimeout((function(){T(!1),p.off("mouseleave",t)}),2e3);p.on("mouseenter",(function(){clearTimeout(e)}))}}))}}else o.on("loadedmetadata",hi);function x(){f=o.currentTime;var t=Object.keys(r).filter((function(t){return t<=f})).map((function(t){return parseInt(t,10)})),e=Math.max.apply(Math,u(t));v&&v.removeClass("is-highlighted"),jQuery(g[e||0]).addClass("is-highlighted")}function z(){o.duration&&(Object.keys(r).forEach((function(t){if(parseInt(t)&&!h.find("[data-timestamp=".concat(t,"]")).length){var e,i,n,a,s=r[t],l=parseInt(t)/o.duration*100,p=jQuery((e={position:l,name:"".concat(s.title)},i=e.position,n=e.name,a=void 0===n?"":n,'<div class="presto-player-progress__marker plyr__controls__item plyr__control" style="left: '.concat(void 0===i?0:i,'%" 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()}))}})),s.find("[data-timeline-marker]"))}function T(t){void 0!==l(t)?s.toggleClass("is-showing",t):s.toggleClass("is-showing")}}var vi;function yi(t){"undefined"!=typeof jQuery&&(vi=t,jQuery(vi.elements.container).closest(".presto-player__wrapper"),vi.on("ready",hi),vi.on("controlshidden",fi),vi.on("controlsshown",gi))}function fi(t){var e,i,r;"undefined"!=typeof jQuery&&jQuery(null==t||null===(e=t.detail)||void 0===e||null===(i=e.plyr)||void 0===i||null===(r=i.elements)||void 0===r?void 0:r.container).closest(".presto-player__wrapper").addClass("presto-player--hide-controls")}function gi(t){var e,i,r;"undefined"!=typeof jQuery&&jQuery(null==t||null===(e=t.detail)||void 0===e||null===(i=e.plyr)||void 0===i||null===(r=i.elements)||void 0===r?void 0:r.container).closest(".presto-player__wrapper").removeClass("presto-player--hide-controls")}function bi(t){var e,i;return n(n(n({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 mi(t){var e,i;null!=t&&null!==(e=t.config)&&void 0!==e&&e.hasPlayed||(t.config.hasPlayed=!0,null===(i=window)||void 0===i||i.gtag("event","Play",bi(t)))}function _i(t){var e;null===(e=window)||void 0===e||e.gtag("event","Pause",bi(t))}function wi(t){var e,i;null!=t&&null!==(e=t.config)&&void 0!==e&&e.hasLoaded||(t.config.hasLoaded=!0,null===(i=window)||void 0===i||i.gtag("event","Player Load",bi(t)))}var ki,xi={25:!1,50:!1,75:!1,100:!1};function zi(t){if(t.currentTime){var e=parseFloat(t.currentTime)/parseFloat(t.duration)*100;Object.keys(xi).forEach((function(i){var r;!xi[i]&&e>=parseInt(i)&&(xi[i]=!0,null===(r=window)||void 0===r||r.gtag("event","".concat(i," Percent Played"),bi(t)))}))}}var Ti="presto-player.analytics",ji="";function Si(t){var e,i;(ki=t).config.analytics&&null!==(e=window)&&void 0!==e&&null!==(i=e.wp)&&void 0!==i&&i.hooks&&(wp.hooks.hasAction("presto.nonceRefreshed",Ti)||wp.hooks.addAction("presto.nonceRefreshed",Ti,(function(t){ji=t})),wp.hooks.hasAction("presto.playerPlay",Ti)||wp.hooks.addAction("presto.playerPlay",Ti,Pi),wp.hooks.hasAction("presto.playerEnded",Ti)||wp.hooks.addAction("presto.playerEnded",Ti,Pi),wp.hooks.hasAction("presto.playerHidden",Ti)||wp.hooks.addAction("presto.playerHidden",Ti,Pi),wp.hooks.hasAction("presto.playerPause",Ti)||wp.hooks.addAction("presto.playerPause",Ti,Pi),wp.hooks.hasAction("presto.playerSeeked",Ti)||wp.hooks.addAction("presto.playerSeeked",Ti,Pi))}function Pi(t){Ci(function(t){var e,i;return n(n(n({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 Ci(t){var e,i,r,o,n,a,s,l;if(ji){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===(e=ki)||void 0===e||null===(i=e.config)||void 0===i?void 0:i.id),c.append("nonce",ji),null!==(r=window)&&void 0!==r&&null!==(o=r.prestoPlayer)&&void 0!==o&&o.debug_navigator?"undefined"!=typeof jQuery&&jQuery.ajax({type:"POST",url:null===(n=window)||void 0===n||null===(a=n.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===(s=ki)||void 0===s||null===(l=s.config)||void 0===l?void 0:l.id,nonce:ji}}):navigator.sendBeacon(null===(p=window)||void 0===p||null===(u=p.prestoPlayer)||void 0===u?void 0:u.ajaxurl,c)}}function Oi(t){var e,i;null!==(e=window)&&void 0!==e&&null!==(i=e.prestoPlayer)&&void 0!==i&&i.isPremium&&(function(){var t;null!==(t=window)&&void 0!==t&&t.gtag&&(wp.hooks.addAction("presto.playerPlay","presto-player",mi),wp.hooks.addAction("presto.playerPause","presto-player",_i),wp.hooks.addAction("presto.playerReady","presto-player",wi),wp.hooks.addAction("presto.playerTimeUpdate","presto-player",zi))}(),Si(t))}const Ii=function(t){t.on("ready",(function(){var e,i,r,o;null==t||null===(e=t.config)||void 0===e||!e.logo||null!=t&&null!==(i=t.config)&&void 0!==i&&i.logo_added||"undefined"!=typeof jQuery&&(jQuery('<img src="'.concat(null==t||null===(r=t.config)||void 0===r?void 0:r.logo,'" class="presto-player__logo is-bottom-right" part="logo">')).insertBefore(null==t||null===(o=t.elements)||void 0===o?void 0:o.controls),t.config.logo_added=!0)}))};function Ai(t){var e;null!=t&&null!==(e=t.config)&&void 0!==e&&e.poster&&(t.poster=t.config.poster)}const Mi=function(t){var e,i;null!==(e=window)&&void 0!==e&&null!==(i=e.wp)&&void 0!==i&&i.hooks&&(t.on("ready",(function(){Ei("Ready",t)})),t.on("play",(function(){Ei("Play",t)})),t.on("playing",(function(){Ei("Playing",t)})),t.on("pause",(function(){Ei("Pause",t)})),t.on("ended",(function(){Ei("Ended",t)})),t.on("seeked",(function(){Ei("Seeked",t)})),t.on("timeupdate",(function(){Ei("TimeUpdate",t)})),t.on("enterfullscreen",(function(){Ei("EnterFullScreen",t)})),t.on("exitfullscreen",(function(){Ei("ExitFullScreen",t)})),document.addEventListener("visibilitychange",(function(){Ei("hidden"===document.visibilityState?"Hidden":"Visible",t)})),t.on("statechange",(function(e){var i;switch(null==e||null===(i=e.detail)||void 0===i?void 0:i.code){case 0:Ei("Ended",t);break;case 1:Ei("Play",t);break;case 2:Ei("Pause",t)}})))};function Ei(t,e){window.wp.hooks.doAction("presto.player".concat(t),e)}let Fi,Li=Date.now();const Ni=t=>{var e,i;if(!t.automations)return;(null===(i=null===(e=null===window||void 0===window?void 0:window.wp)||void 0===e?void 0:e.hooks)||void 0===i?void 0:i.hasAction("presto.nonceRefreshed","presto-player.progress"))||window.wp.hooks.addAction("presto.nonceRefreshed","presto-player.progress",(t=>{Fi=t})),null===window||void 0===window||window.wp.hooks.addAction("presto.playerTimeUpdate","presto-player",o),null===window||void 0===window||window.wp.hooks.addAction("presto.playerEnded","presto-player",(t=>o(t,100)));let r={0:!1,10:!1,20:!1,30:!1,40:!1,50:!1,60:!1,70:!1,80:!1,90:!1,100:!1};function o(t,e=null){var i;Fi&&(null===(i=null==t?void 0:t.config)||void 0===i?void 0:i.ajaxProgress)&&(e||(e=parseFloat(t.currentTime)/parseFloat(t.duration)*100),t.watched=t.watched||{},Object.keys(r).forEach((i=>{var r,o,n,a,s,l,p,u,c;const d=parseInt(i);if(!t.watched[d]&&e>=d){t.watched[d]=!0;let e=new FormData;if(e.append("action","presto_player_progress_percent"),e.append("id",null===(r=null==t?void 0:t.config)||void 0===r?void 0:r.id),e.append("percent",d.toString()),e.append("visit_time",Li.toString()),e.append("nonce",Fi),(null===(o=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===o?void 0:o.debug)&&console.log(`${d} percent watched.`),null===(n=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===n?void 0:n.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:Li,percent:d,nonce:Fi}});else{let i=navigator.sendBeacon(null===(a=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===a?void 0:a.ajaxurl,e);(null===(s=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===s?void 0:s.debug)&&(i?console.log("Successfully queued progress:",{id:null===(l=null==t?void 0:t.config)||void 0===l?void 0:l.id,percent:d,visit_time:Li,nonce:Fi}):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:Li,nonce:Fi}))}}})))}};let Ri=!1,Bi=!1;function Di(t){return t.status>=200&&t.status<300?Promise.resolve(t):Promise.reject(new Error(t.statusText))}const qi=t=>{var e,i;(t.config.analytics||t.config.automations)&&(null===(i=null===(e=null===window||void 0===window?void 0:window.wp)||void 0===e?void 0:e.hooks)||void 0===i||i.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;Ri||Bi||(Bi=!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(Di).then((t=>t.json())).then((({data:t})=>{null===window||void 0===window||window.wp.hooks.doAction("presto.nonceRefreshed",t),Ri=!0})).catch((function(t){console.log("Request failed",t)})).finally((()=>{Bi=!1})))})))},Hi=function(t){var e=window.navigator.userAgent;if(e.match(/iPad/i)||e.match(/iPhone/i)){var i=function(t,e){for(var i,r,o,n=null==t||null===(i=t.elements)||void 0===i||null===(r=i.container)||void 0===r||null===(o=r.getRootNode())||void 0===o?void 0:o.host;(null!=n?n.nodeType:void 0)===Node.ELEMENT_NODE&&"BODY"!==n.tagName&&"HTML"!==n.tagName;)e?n.classList.add("presto-player-fullscreen-open"):n.classList.remove("presto-player-fullscreen-open"),n=n.parentNode};wp.hooks.addAction("presto.playerEnterFullScreen","presto-player",(function(){var e;null!=t&&null!==(e=t.fullscreen)&&void 0!==e&&e.active&&i(t,!0)})),wp.hooks.addAction("presto.playerExitFullScreen","presto-player",(function(){var e;null!=t&&null!==(e=t.fullscreen)&&void 0!==e&&e.active||i(t,!1)}))}},Vi=function(){var t=d(regeneratorRuntime.mark((function t(e){var i,r,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("undefined"!=typeof jQuery){t.next=2;break}return t.abrupt("return");case 2:if("ResizeObserver"in window!=0){t.next=7;break}return t.next=5,import("./p-97e2763b.js");case 5:window.ResizeObserver=t.sent.ResizeObserver;case 7:if(o=new ResizeObserver((function(t){var e,i=h(t);try{for(i.s();!(e=i.n()).done;){var r=e.value,o=r.contentRect;jQuery(r.target).find(".plyr__menu__container").css({maxHeight:"".concat(o.height-48,"px")})}}catch(t){i.e(t)}finally{i.f()}})),null!=e&&null!==(i=e.elements)&&void 0!==i&&i.container){t.next=10;break}return t.abrupt("return");case 10:if(o.observe(null==e||null===(r=e.elements)||void 0===r?void 0:r.container),e){t.next=13;break}return t.abrupt("return");case 13:e.on("playing",(function(){var t,i,r=null==e||null===(t=e.elements)||void 0===t?void 0:t.container.getBoundingClientRect();jQuery(null==e||null===(i=e.elements)||void 0===i?void 0:i.container).find(".plyr__menu__container").css({maxHeight:"".concat(r.height-48,"px")})}));case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();function $i(t){var e,i,r,o,a,s,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},p=n(n(n({},l),null!==(e=window)&&void 0!==e&&null!==(i=e.prestoPlayer)&&void 0!==i&&i.plugin_url?{iconUrl:"".concat(null===(r=window)||void 0===r||null===(o=r.prestoPlayer)||void 0===o?void 0:o.plugin_url,"img/sprite.svg")}:{}),{chapters:(null==l?void 0:l.chapters)||[],controls:(null==l?void 0:l.controls)||[],settings:Object.keys((null==l?void 0:l.settings)||{}).length?l.settings:{}}),u=new ii(t,p);return"undefined"!=typeof learndash_video_data&&import("./p-ee10c091.js").then((function(t){(0,t.default)(u)})),"undefined"!=typeof _tutorobject&&import("./p-0e1cd603.js").then((function(t){(0,t.default)(u)})),Mi(u),Hi(u),Vi(u),Ii(u),Ai(u),yi(u),null!==(a=window)&&void 0!==a&&null!==(s=a.prestoPlayer)&&void 0!==s&&s.isAdmin||(qi(u),Ni(p),ri(u),Oi(u)),u}function Ui(t){return"string"==typeof t&&t.includes(".m3u8")}const Qi=class{constructor(e){t(this,e),this.loaded=r(this,"loaded",7),this.isAdmin=!1,this.previouslyPlaying=!1,this.components={cta:null,email:null,overlays:null}}async play(t=!1){return this.shouldLazyLoad=!1,t&&(this.mutedPreview=!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,e){return this.player.on(t,e)}async off(t,e){return this.player.off(t,e)}async handleCurrentTimeChange(t){this.player&&Number.isInteger(t)&&(this.player.duration&&(this.player.currentTime=Math.min(this.player.currentTime,this.player.duration)),this.shouldLazyLoad&&(this.shouldLazyLoad=!1,await new Promise((t=>{setTimeout((async()=>{await this.initialize(),t()}),50)}))),this.player.embed&&!this.player.playing?(this.player.currentTime=t,this.player.muted=!0,this.player.play(),this.player.once("timeupdate",(()=>{this.player.pause(),this.player.currentTime=t,this.player.muted=!1}))):this.player.currentTime=t)}handleStickyChange(){(function(t){for(var e=[];t.parentNode&&"body"!=t.parentNode.nodeName.toLowerCase();)e.push(t=t.parentNode);return e})(this.el).forEach((t=>{t.classList.toggle("presto-sticky-parent",this.isSticky)}))}getConfig(){return Object.assign(Object.assign({},function({preset:t={},chapters:e,branding:i,src:r,analytics:o,automations:n,autoplay:a,blockAttributes:s={},provider:l="",provider_video_id:p="",youtube:u,type:c,isAdmin:d,i18n:h,storage:v={enabled:!d,key:`presto-player-${t.id}`}}){var y,f,g,b;const m=["settings"],_=[...["youtube","vimeo"].includes(l)?["pip"]:[]],w=["play-large","rewind","play","fast-forward","progress","current-time","mute","volume","captions","settings","pip","fullscreen"].filter((e=>((null==t?void 0:t[e])||m.includes(e))&&!_.includes(e)));(null===(y=null==s?void 0:s.mutedPreview)||void 0===y?void 0:y.enabled)&&(v={enabled:!1});let k=Object.assign(Object.assign(Object.assign(Object.assign({id:null==s?void 0:s.id,title:(null==s?void 0:s.title)||"",blockAttributes:Object.assign(Object.assign({},s),{type:c}),src:r,ajaxProgress:!0,analytics:o,automations:n,mutedPreview:{enabled:null===(f=null==s?void 0:s.mutedPreview)||void 0===f?void 0:f.enabled},chapters:e,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==i?void 0:i.logo,logo_width:null==i?void 0:i.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))},l?{provider:l}:{}),p?{provider_video_id:p}:{}),(null==s?void 0:s.poster)?{poster:s.poster}:{}),{invertTime:!t.hasOwnProperty("invert_time")||(null==t?void 0:t.invert_time),storage:v,keyboard:{focused:!1,global:!1},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==s?void 0:s.playsInline)},youtube:{rel:0,showinfo:0,iv_load_policy:3,modestbranding:1,customControls:!0,noCookie:!!(null==u?void 0:u.noCookie),playsinline:!!(null==s?void 0:s.playsInline)},tooltips:{controls:!0,seek:!0},i18n:h});return(null===(b=null===window||void 0===window?void 0:window.wp)||void 0===b?void 0:b.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,r=t.src,o=t.preload,r&&Ui(r)?import("./p-39ddcde4.js").then((function(t){return(0,t.default)({config:e,selector:i,src:r,preload:o})})):new Promise((function(t){return t(new $i(i,n({},e)))})));var t,e,i,r,o}handlePlayerElementChange(){var t;(({src:t,el:e,preload:i,currentTime:r})=>{if(!e.getAttribute("hls_loaded")&&["metadata","none"].includes(i)&&Ui(t)){if(r>0)return e.style.height=null,e.style.paddingBottom=null,void e.setAttribute("hls_loaded","1");e.style.height="0px",e.style.paddingBottom="56.25%"}})({src:this.src,el:this.playerEl,preload:this.preload,currentTime:null===(t=null==this?void 0:this.player)||void 0===t?void 0:t.currentTime})}handleMutedPreview(t){var e,i,r,o,n,a,s;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===(r=null===(i=null===(e=this.originalConfig)||void 0===e?void 0:e.blockAttributes)||void 0===i?void 0:i.mutedPreview)||void 0===r?void 0:r.enabled)&&(({player:t,mutedPreview:e,captions:i,progress:r,savePosition:o,onPlay:n})=>{var a=window.navigator.userAgent;if(!a.match(/iPad/i)&&!a.match(/iPhone/i)){t.config.mutedPreview.enabled=e,t.muted=e,t.loop=e,t.config.ajaxProgress=!e&&r,t.config.save_player_position=!e&&o;try{t.toggleCaptions(!!e&&!!i)}catch(t){}return setTimeout((()=>{ni(t)||t.restart(),setTimeout((()=>{t.muted=e,n()}),50)}),0),t}console.log("ios device, do not do muted autoplay")})({player:this.player,mutedPreview:this.mutedPreview,captions:!!(null===(n=null===(o=this.blockAttributes)||void 0===o?void 0:o.mutedPreview)||void 0===n?void 0:n.captions),progress:null===(a=this.originalConfig)||void 0===a?void 0:a.ajaxProgress,savePosition:null===(s=this.originalConfig)||void 0===s?void 0:s.save_player_position,onPlay:()=>this.play()}))}onPlayerReady(){var t,e;this.observer&&(this.observer.disconnect(),this.observer.observe(this.el)),this.duration=this.player.duration,this.mutedPreview=null===(e=null===(t=this.blockAttributes)||void 0===t?void 0:t.mutedPreview)||void 0===e?void 0:e.enabled,this.renderDynamicOverlays(),this.renderCTA(),this.renderEmailOverlay(),this.player.on("timeupdate loadedmetadata",(()=>{this.duration=this.player.duration,this.renderDynamicOverlays()})),Ui(this.src)&&this.player.once("playing",(()=>{this.playerEl.style.height=null,this.playerEl.style.paddingBottom=null,this.playerEl.setAttribute("hls_loaded","1")})),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,e,i;return"youtube"===this.provider&&!this.autoplay&&!(null===(e=null===(t=this.blockAttributes)||void 0===t?void 0:t.mutedPreview)||void 0===e?void 0:e.enabled)&&!!(null===(i=this.preset)||void 0===i?void 0:i.lazy_load_youtube)}componentWillLoad(){var t,e,i;const r=null===(t=this.el.children)||void 0===t?void 0:t[0];r&&r.classList&&r.classList.contains("presto-iframe-fallback-container")&&r.remove(),this.shouldLazyLoad=this.shouldLazyLoadVideo(),this.i18n=(null===(e=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===e?void 0:e.i18n)||(null===(i=null===window||void 0===window?void 0:window.prestoPlayerAdmin)||void 0===i?void 0:i.i18n),this.originalConfig||(this.originalConfig=this.getConfig()),this.trackIntersection()}async componentDidLoad(){setTimeout((()=>{this.initialize(),this.loaded.emit(!0)}),0)}async initialize(){const t=await this.createPlayer();return this.handlePlayerEvents(t),this.syncVideoHeight(),((t,e)=>{if(!e)return;const i=document.createElement("style");t.shadowRoot.append(i),i.appendChild(document.createTextNode(e))})(this.el,this.css),t}async onReload(t){const e=await this.initialize();"play"==t&&e.on("ready",(()=>{this.play(),e.muted=!0,e.muted=!1,e.off("ready",this.play)}))}async syncVideoHeight(){if("ResizeObserver"in window==0){const t=await import("./p-97e2763b.js");window.ResizeObserver=t.ResizeObserver}new ResizeObserver((()=>{this.isSticky||(this.videoHeight=this.el.getBoundingClientRect().height)})).observe(this.el)}handleRestartVideo(){this.player.once("timeupdate",(()=>{setTimeout((()=>this.play()),500)})),this.player.restart()}handlePlayVideo(){this.play()}handlePauseVideo(t){this.pause(),t.detail&&function(t){var e,i,r,o,n;if("unknown"!==b()&&!(null===(i=null===(e=null==t?void 0:t.config)||void 0===e?void 0:e.blockAttributes)||void 0===i?void 0:i.playsinline)){"function"==typeof(null===(r=null==t?void 0:t.media)||void 0===r?void 0:r.webkitExitFullScreen)&&(null==t||t.media.webkitExitFullScreen()),"function"==typeof(null===(o=null==t?void 0:t.embed)||void 0===o?void 0:o.exitFullscreen)&&(null===(n=null==t?void 0:t.embed)||void 0===n||n.exitFullscreen());const e=t.currentTime;t.currentTime=t.duration,t.once("playing",(()=>{t.currentTime=e}))}}(this.player)}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 e,i;if(!(null===(e=this.preset)||void 0===e?void 0:e.sticky_scroll))return;if(this.isAdmin||this.mutedPreview||!(null===(i=null==this?void 0:this.player)||void 0===i?void 0:i.playing))return void(this.isSticky=!1);let r=t.boundingClientRect;if(this.isSticky=r.height<-r.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 e,i,r;if(!this.isAdmin&&(null===(e=this.preset)||void 0===e?void 0:e.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===(r=null===(i=this.blockAttributes)||void 0===i?void 0:i.mutedPreview)||void 0===r?void 0:r.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 e("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 e("presto-vimeo",{player:this.player,getRef:t=>this.playerEl=t,poster:this.poster,src:this.src});case"youtube":return e("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 e("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 e("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,e,i,r;(null===(t=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===t?void 0:t.isPremium)&&(this.isAdmin||(null===(i=null===(e=this.preset)||void 0===e?void 0:e.cta)||void 0===i?void 0:i.enabled)&&((null===(r=this.components.cta)||void 0===r?void 0:r.offsetParent)||(this.components.cta=document.createElement("presto-cta-overlay"),this.components.cta.direction=this.direction,this.components.cta.player=this.player,this.components.cta.preset=this.preset,this.components.cta.i18n=this.i18n,this.player.elements.container.append(this.components.cta))))}renderEmailOverlay(){var t,e,i;!(null===(t=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===t?void 0:t.isPremium)||this.isAdmin||(null===(e=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===e?void 0:e.logged_in)||(null===(i=this.components.email)||void 0===i?void 0:i.offsetParent)||(this.components.email=document.createElement("presto-email-overlay"),this.components.email.direction=this.direction,this.components.email.player=this.player,this.components.email.preset=this.preset,this.components.email.i18n=this.i18n,this.components.email.videoId=this.video_id,this.player.elements.container.append(this.components.email))}renderActionBar(){var t,i;if((null===(i=null===(t=this.preset)||void 0===t?void 0:t.action_bar)||void 0===i?void 0:i.enabled)&&this.player)return e("presto-action-bar",{config:this.preset.action_bar,player:null==this?void 0:this.player,youtube:this.youtube})}stickyPositionClass(){var t,e;return this.isSticky?(null===(t=this.preset)||void 0===t?void 0:t.sticky_scroll_position)?`presto-sticky--${null===(e=this.preset)||void 0===e?void 0:e.sticky_scroll_position.replace(/\s+/g,"-")}`:"presto-sticky--bottom-right":""}renderDynamicOverlays(){var t,e,i,r,o;this.player&&((null===(t=null==this?void 0:this.overlaysComponent)||void 0===t?void 0:t.offsetParent)||(this.overlaysComponent=document.createElement("presto-dynamic-overlays"),this.overlaysComponent.addEventListener("reloadComponent",(()=>{this.overlaysComponent.remove(),this.overlaysComponent=document.createElement("presto-dynamic-overlays")}),{once:!0})),this.overlaysComponent.style.cssText="display: block !important; opacity: 1 !important; visibility: visible !important;",this.overlaysComponent.overlays=this.overlays,this.overlaysComponent.preset=this.preset,this.overlaysComponent.player=this.player,this.overlaysComponent.enabled=!(null===(r=null===(i=null===(e=this.player)||void 0===e?void 0:e.config)||void 0===i?void 0:i.mutedPreview)||void 0===r?void 0:r.enabled),(null===(o=null==this?void 0:this.overlaysComponent)||void 0===o?void 0:o.offsetParent)||this.player.elements.wrapper.append(this.overlaysComponent))}render(){var t,i,r,o,n;return e(v,{style:{height:this.isSticky?`${this.videoHeight}px`:"auto"}},e("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===(i=this.preset)||void 0===i?void 0:i.skin}`}\n ${(null===(r=this.preset)||void 0===r?void 0:r.hide_youtube)?"hide-youtube-ui":""}\n ${(null===(o=this.preset)||void 0===o?void 0:o.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:""}`},e("div",null,e("slot",{name:"player-start"}),e("slot",{name:"player-before-video"}),this.renderVideo(),e("slot",{name:"player-after-video"}),this.renderActionBar(),this.renderMutedOverlay(),e("slot",{name:"player-end"}))))}get el(){return i(this)}static get watchers(){return{currentTime:["handleCurrentTimeChange"],isSticky:["handleStickyChange"],playerEl:["handlePlayerElementChange"],player:["handlePlayerElementChange"],mutedPreview:["handleMutedPreview"],shouldLazyLoad:["handleLazyLoadChange"],overlays:["renderDynamicOverlays"],preset:["renderDynamicOverlays"]}}};Qi.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--html5 .plyr__video-wrapper,.plyr--youtube .plyr__video-wrapper{height:100%}.plyr__video-wrapper{z-index:1}.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 .presto-player__wrapper .plyr__control--overlaid{z-index:4}.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 .plyr--fullscreen-fallback.plyr--video .plyr__controls{padding-bottom:calc(var(--plyr-control-spacing, 10px) + env(safe-area-inset-bottom))}.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.presto-player--hide-scrim .plyr__controls{background:transparent}.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 .plyr__captions{z-index:1}.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%}@media (min-aspect-ratio: 16/9){.hide-youtube-ui presto-youtube .plyr:fullscreen .plyr__video-wrapper{width:calc(calc(1600 / 9) * 1vh)}}';const Wi=function(t,e){return u(e)},Yi=class{constructor(e){t(this,e),this.prestoBlur=r(this,"prestoBlur",7),this.prestoFocus=r(this,"prestoFocus",7),this.hasFocus=!1,this.hasLabel=!1,this.hasPrefix=!1,this.hasSuffix=!1,this.type="default",this.size="medium",this.full=!1,this.disabled=!1,this.submit=!1}componentWillLoad(){this.handleSlotChange()}click(){this.button.click()}focus(t){this.button.focus(t)}blur(){this.button.blur()}handleSlotChange(){this.hasLabel=!!this.button.children,this.hasPrefix=!!this.button.querySelector('[slot="prefix"]'),this.hasSuffix=!!this.button.querySelector('[slot="suffix"]')}handleBlur(){this.hasFocus=!1,this.prestoBlur.emit()}handleFocus(){this.hasFocus=!0,this.prestoFocus.emit()}handleClick(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}render(){const t=!!this.href,i=e(Wi,null,e("span",{part:"prefix",class:"button__prefix"},e("slot",{onSlotchange:()=>this.handleSlotChange(),name:"prefix"})),e("span",{part:"label",class:"button__label"},e("slot",{onSlotchange:()=>this.handleSlotChange()})),e("span",{part:"suffix",class:"button__suffix"},e("slot",{onSlotchange:()=>this.handleSlotChange(),name:"suffix"}))),r=e("button",{part:"base",class:{button:!0,"button--default":"default"===this.type,"button--primary":"primary"===this.type,"button--success":"success"===this.type,"button--info":"info"===this.type,"button--warning":"warning"===this.type,"button--danger":"danger"===this.type,"button--text":"text"===this.type,"button--small":"small"===this.size,"button--medium":"medium"===this.size,"button--large":"large"===this.size,"button--disabled":this.disabled,"button--focused":this.hasFocus,"button--has-label":this.hasLabel,"button--has-prefix":this.hasPrefix,"button--has-suffix":this.hasSuffix},disabled:this.disabled,type:this.submit?"submit":"button",name:this.name,value:this.value,onBlur:()=>this.handleBlur,onFocus:()=>this.handleFocus,onClick:()=>this.handleClick},i),o=e("a",{part:"base",class:{button:!0,"button--default":"default"===this.type,"button--primary":"primary"===this.type,"button--success":"success"===this.type,"button--info":"info"===this.type,"button--warning":"warning"===this.type,"button--danger":"danger"===this.type,"button--text":"text"===this.type,"button--small":"small"===this.size,"button--medium":"medium"===this.size,"button--large":"large"===this.size,"button--disabled":this.disabled,"button--focused":this.hasFocus,"button--has-label":this.hasLabel,"button--has-prefix":this.hasPrefix,"button--has-suffix":this.hasSuffix},href:this.href,target:this.target,download:this.download,rel:this.target?"noreferrer noopener":void 0,role:"button","aria-disabled":this.disabled?"true":"false",tabindex:this.disabled?"-1":"0",onBlur:()=>this.handleBlur,onFocus:()=>this.handleFocus,onClick:()=>this.handleClick},i);return t?o:r}get button(){return i(this)}};Yi.style=":host{display:inline-block;width:auto;cursor:pointer}:host([full]){display:block}.button{display:inline-flex;align-items:stretch;justify-content:center;width:100%;border-style:solid;border-width:var(--presto-player-button-border-width);font-family:var(--plyr-font-family, inherit);font-weight:var(--presto-player-button-font-weight, 500);text-decoration:none;user-select:none;white-space:nowrap;vertical-align:middle;padding:0;transition:var(--presto--player-transition-fast, 150ms) background-color, var(--presto-player-transition-fast, 150ms) color, var(--presto-player-transition-fast, 150ms) border, var(--presto--player-transition-fast, 150ms) box-shadow;cursor:inherit;border-radius:var(--presto-player-button-border-radius, 0.25em)}.button::-moz-focus-inner{border:0}.button:focus{outline:none}.button.button--disabled{opacity:0.5;cursor:not-allowed}.button.button--disabled *{pointer-events:none}.button ::slotted(.presto--icon){pointer-events:none}.button__prefix,.button__suffix{flex:0 0 auto;display:flex;align-items:center}.button__label{display:flex;align-items:center}.button__label ::slotted(presto-icon){vertical-align:-2px}.button.button--default{background-color:var(--presto-player-color-white, #fff);border-color:var(--presto-player-color-gray-300, #d1d5db);color:var(--presto-player-color-gray-600, #4b5563)}.button.button--default:hover:not(.button--disabled){border-color:var(--presto-player-button-color, var(--plyr-color-main));color:var(--presto-player-button-color, var(--plyr-color-main));opacity:0.75}.button.button--default:focus:not(.button--disabled){border-color:var(--presto-player-button-color, var(--plyr-color-main));color:var(--presto-player-button-color, var(--plyr-color-main));opacity:1}.button.button--default:active:not(.button--disabled){border-color:var(--presto-player-button-color, var(--plyr-color-main));color:var(--presto-player-button-color, var(--plyr-color-main));opacity:1}.button.button--primary{background-color:var(--presto-player-button-color, var(--plyr-color-main));border-color:var(--presto-player-button-color, var(--plyr-color-main));color:var(--presto-player-button-text, #fff)}.button.button--primary:hover:not(.button--disabled){opacity:0.9}.button.button--primary:focus:not(.button--disabled){opacity:1}.button.button--primary:active:not(.button--disabled){opacity:1}.button--text{background-color:transparent;border-color:transparent;color:var(--presto-player-button-color, var(--plyr-color-main))}.button--text:hover:not(.button--disabled){background-color:transparent;border-color:transparent;opacity:0.8}.button--text:focus:not(.button--disabled){background-color:transparent;border-color:transparent;opacity:0.7}.button--text:active:not(.button--disabled){background-color:transparent;border-color:transparent;opacity:0.7}.button--small{font-size:var(--presto-player-button-font-size-small, 0.875em);height:var(--presto-player-button-height-small, 1.875em);line-height:calc(var(--presto-player-button-height-small, 1.875em) - var(--presto-player-button-border-width, 1px) * 2)}.button--medium{font-size:var(--presto-player-button-font-size-medium, 1em);height:var(--presto-player-button-height-medium, 2.5em);line-height:calc(var(--presto-player-button-height-medium, 2.5em) - var(--presto-player-button-border-width, 1px) * 2)}.button--large{font-size:var(--presto-player-button-font-size-large, 1.25em);height:var(--presto-player-button-height-large, 3.125em);line-height:calc(var(--presto-player-button-height-large, 3.125em) - var(--presto-player-button-border-width, 1px) * 2)}.button--full{display:block}.button--has-label.button--small .button__label{padding:0 var(--presto-player-button-spacing-small, 0.75em)}.button--has-label.button--medium .button__label{padding:0 var(--presto-player-button-spacing-medium, 1em)}.button--has-label.button--large .button__label{padding:0 var(--presto-player-button-spacing-large, 1.25em)}.button--has-prefix.button--small{padding-left:var(--presto-player-button-spacing-x-small, 0.5em)}.button--has-prefix.button--small .button__label{padding-left:var(--presto-player-button-spacing-x-small, 0.5em)}.button--has-prefix.button--medium{padding-left:var(--presto-player-button-spacing-small, 0.75em)}.button--has-prefix.button--medium .button__label{padding-left:var(--presto-player-button-spacing-small, 0.75em)}.button--has-prefix.button--large{padding-left:var(--presto-player-button-spacing-small, 0.75em)}.button--has-prefix.button--large .button__label{padding-left:var(--presto-player-button-spacing-small, 0.75em)}.button--has-suffix.button--small,.button--caret.button--small{padding-right:var(--presto-player-button-spacing-x-small, 0.5em)}.button--has-suffix.button--small .button__label,.button--caret.button--small .button__label{padding-right:var(--presto-player-button-spacing-x-small, 0.5em)}.button--has-suffix.button--medium,.button--caret.button--medium{padding-right:var(--presto-player-button-spacing-small, 0.75em)}.button--has-suffix.button--medium .button__label,.button--caret.button--medium .button__label{padding-right:var(--presto-player-button-spacing-small, 0.75em)}.button--has-suffix.button--large,.button--caret.button--large{padding-right:var(--presto-player-button-spacing-small, 0.75em)}.button--has-suffix.button--large .button__label,.button--caret.button--large .button__label{padding-right:var(--presto-player-button-spacing-small, 0.75em)}";const Ji=class{constructor(e){t(this,e)}render(){return e("span",{part:"base",class:"spinner","aria-busy":"true","aria-live":"polite"})}};Ji.style=":host{position:relative;box-sizing:border-box;--track-color:#0d131e20;--indicator-color:var(--plyr-color-main);--stroke-width:2px;display:inline-flex}:host *,:host *:before,:host *:after{box-sizing:inherit}.spinner{display:inline-block;width:1em;height:1em;border-radius:50%;border:solid var(--stroke-width) var(--track-color);border-top-color:var(--indicator-color);border-right-color:var(--indicator-color);animation:1s linear infinite spin}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}";const Gi=class{constructor(e){t(this,e)}render(){return e("video",{class:{"presto-player__player":!0,"plyr__video-embed":["youtube","vimeo"].includes(this.provider)},part:"video",ref:this.getRef,autoplay:this.autoplay,preload:this.preload,"data-poster":this.poster,playsinline:this.playsinline},e("source",{src:this.src}),!!this.tracks&&!!this.tracks.length&&this.tracks.map((t=>e("track",{kind:"captions",label:(null==t?void 0:t.label)?t.label:"Captions",src:null==t?void 0:t.src,srclang:(null==t?void 0:t.srcLang)?null==t?void 0:t.srcLang:"en"}))))}};Gi.style=":host{display:block}";const Ki=class{constructor(e){t(this,e)}getId(t){const e=/^.*(vimeo\.com\/)((channels\/[A-z]+\/)|(groups\/[A-z]+\/videos\/))?([0-9]+)/.exec(t||"");return(null==e?void 0:e[5])||""}render(){if(this.src)return"Android"!==b()||(t=window.navigator.standalone,i=window.navigator.userAgent.toLowerCase(),r=/safari/.test(i),/iphone|ipod|ipad/.test(i)?!t&&r||t||r:!i.includes("wv"))?e("div",{class:"plyr__video-embed",part:"embed",ref:this.getRef,"data-plyr-provider":"vimeo","data-plyr-embed-id":this.getId(this.src)}):e("div",{class:"presto-iframe-fallback-container"},e("iframe",{src:`https://player.vimeo.com/video/${this.getId(this.src)}?loop=false&byline=false&portrait=false&title=false&speed=true&transparent=0&gesture=media`,allowFullScreen:!0,allowTransparency:!0,allow:"autoplay",style:{width:"100%"},class:"presto-fallback-iframe"}));var t,i,r}};Ki.style=":host{display:block}";const Xi=class{constructor(e){t(this,e),this.reload=r(this,"reload",7)}handlePlayerChange(){this.player&&this.fixes()}fixes(){this.player.once("statechange",(t=>{var e,i,r,o,n;1===t.detail.code&&((null===(n=null===(o=null===(r=null===(i=null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.plyr)||void 0===i?void 0:i.config)||void 0===r?void 0:r.blockAttributes)||void 0===o?void 0:o.mutedPreview)||void 0===n?void 0:n.enabled)||(this.player.muted=!1))}))}getId(t){var e;const i=(t||"").match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/);return i&&11===(null===(e=null==i?void 0:i[2])||void 0===e?void 0:e.length)?i[2]:null}loadPlayer(){this.lazyLoad=!1,this.reloadPlayer=!0}componentDidRender(){this.reloadPlayer&&(this.reloadPlayer=!1,this.reload.emit("play"))}setWebView(){var t;let e=null===(t=window.navigator)||void 0===t?void 0:t.standalone,i=window.navigator.userAgent.toLowerCase(),r=/safari/.test(i),o=/iphone|ipod|ipad/.test(i);this.isWebView=o?!e&&!r:i.includes("wv")}componentWillLoad(){this.setWebView(),this.poster||(this.poster=`//img.youtube.com/vi/${this.getId(this.src)}/maxresdefault.jpg`),this.lazyLoad&&"iOS"===b()&&(this.lazyLoad=!1)}render(){return this.isWebView?e("div",{class:"fallback-container"},e("iframe",{src:this.src,allowFullScreen:!0,allowtransparency:!0,allow:"autoplay"})):this.lazyLoad?e("div",null,e("presto-video",{part:"video",getRef:this.getRef,poster:this.poster,src:"",provider:"youtube"}),e("div",{class:"presto-player__play-cover",onClick:()=>this.loadPlayer()})):e("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"]}}};Xi.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%}@supports not (aspect-ratio: 16/9){.plyr__video-embed,.plyr__video-wrapper--fixed-ratio{height:0 !important;padding-bottom:56.25%;position:relative}}";const Zi=class{constructor(e){t(this,e),this.layout="default"}waitForApi(t){var e=setInterval((function(){var i;(null===(i=null===window||void 0===window?void 0:window.gapi)||void 0===i?void 0:i.ytsubscribe)&&(clearInterval(e),t())}),50)}componentDidLoad(){const t=document.createElement("script");t.type="text/javascript",t.async=!1,t.src="https://apis.google.com/js/platform.js";const e=document.getElementsByTagName("script")[0];e&&e.parentNode.insertBefore(t,e),this.waitForApi((()=>{window.gapi.ytsubscribe.render(this.textInput,{channelId:this.channel,layout:this.layout,count:this.showCount?"default":"hidden"})}))}render(){return e("div",{class:"g-ytsubscribe",ref:t=>this.textInput=t})}};Zi.style=":host{display:block}";export{T as C,O as E,$i as P,y as a,m as b,_ as c,w as d,k as e,x as f,j as g,S as h,P as i,C as j,I as k,Qi as l,Yi as m,Ji as n,Gi as o,Ki as p,Xi as q,ni as r,Zi as s}
|
|
dist/components/web-components/{p-ee10c091.js → p-33c93c5e.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
import{r as e}from"./p-
|
1 |
+
import{r as e}from"./p-29227b20.js";import"./p-d81ccfaf.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-39ddcde4.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
import{l as n,a as e}from"./p-660ec1bb.js";import{P as r}from"./p-2b27e74b.js";export default function(t){var o=t.config,a=t.selector,i=t.src,u=t.preload;return new Promise(function(){var t=n(regeneratorRuntime.mark((function n(t){var c,s,w;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(window.Hls){n.next=6;break}case 1:if(window.hasOwnProperty("Hls")){n.next=6;break}return n.next=4,new Promise((function(n){return setTimeout(n,50)}));case 4:n.next=1;break;case 6:if(!window.Hls.isSupported()){n.next=14;break}return s=!["metadata","none"].includes(u),null!==(c=wp)&&void 0!==c&&c.blocks&&(s=!0),(w=new window.Hls({autoStartLoad:s})).loadSource(i),w.on(window.Hls.Events.LEVEL_SWITCHED,(function(n,e){a.closest(".presto-player__wrapper").querySelector(".plyr__menu__container [data-plyr='quality'][value='0'] span").innerHTML=w.autoLevelEnabled?"AUTO (".concat(w.levels[e.level].height,"p)"):"AUTO"})),w.on(window.Hls.Events.MANIFEST_PARSED,(function(){var n=w.levels.map((function(n){return n.height}));n.unshift(0);var i=n.findIndex((function(n){var e;return n===parseInt(null===(e=prestoPlayer)||void 0===e?void 0:e.hls_start_level)}));w.startLevel=i?i-1:2,o.quality={default:0,options:n,forced:!0,onChange:function(n){0===n?prestoHLS.currentLevel=-1:prestoHLS.levels.forEach((function(e,r){e.height===n&&(console.log("Found quality match with "+n),prestoHLS.currentLevel=r)}))}},w.attachMedia(a),window.prestoHLS=w;var u=new r(a,e({},o));return u.hls=w,u.on("waiting",(function n(){w.startLoad(-1),u.off("waiting",n)})),u.on("languagechange",(function(){setTimeout((function(){return w.subtitleTrack=u.currentTrack}),50)})),t(u)})),n.abrupt("return");case 14:return n.abrupt("return",t(new r(a,e({},o))));case 15:case"end":return n.stop()}}),n)})));return function(n,e){return t.apply(this,arguments)}}())}
|
|
dist/components/web-components/p-539dd74b.entry.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
import{r as t,h as o}from"./p-d81ccfaf.js";let e=class{constructor(o){t(this,o)}render(){return o("div",{class:"curtain"},o("div",{class:"content",part:"curtain-content"},o("slot",null)))}};e.style=':host{font-size:16px}.curtain{font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";background-color:#000;text-align:center;color:#fff;padding-bottom:56.25%;position:relative;font-size:1.5em}::slotted(:not(:first-child)){margin-top:14px}.content{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;flex-direction:column;padding:48px}';export{e as presto_video_curtain_ui}
|
dist/components/web-components/p-660ec1bb.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
function n(n,t){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);t&&(e=e.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.push.apply(r,e)}return r}function t(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?n(Object(e),!0).forEach((function(n){c(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):n(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function r(n){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function e(n,t,r,e,u,o,i){try{var f=n[o](i),c=f.value}catch(n){return void r(n)}f.done?t(c):Promise.resolve(c).then(e,u)}function u(n){return function(){var t=this,r=arguments;return new Promise((function(u,o){var i=n.apply(t,r);function f(n){e(i,u,o,f,c,"next",n)}function c(n){e(i,u,o,f,c,"throw",n)}f(void 0)}))}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function i(n,t){for(var r=0;r<t.length;r++){var e=t[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,e.key,e)}}function f(n,t,r){return t&&i(n.prototype,t),r&&i(n,r),n}function c(n,t,r){return t in n?Object.defineProperty(n,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[t]=r,n}function a(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&s(n,t)}function l(n){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}function s(n,t){return(s=Object.setPrototypeOf||function(n,t){return n.__proto__=t,n})(n,t)}function v(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(n){return!1}}function b(n,t,r){return(b=v()?Reflect.construct:function(n,t,r){var e=[null];e.push.apply(e,t);var u=new(Function.bind.apply(n,e));return r&&s(u,r.prototype),u}).apply(null,arguments)}function y(n){var t="function"==typeof Map?new Map:void 0;return(y=function(n){if(null===n||!function(n){return-1!==Function.toString.call(n).indexOf("[native code]")}(n))return n;if("function"!=typeof n)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(n))return t.get(n);t.set(n,r)}function r(){return b(n,arguments,l(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s(r,n)})(n)}function m(n,t){if(null==n)return{};var r,e,u=function(n,t){if(null==n)return{};var r,e,u={},o=Object.keys(n);for(e=0;e<o.length;e++)t.indexOf(r=o[e])>=0||(u[r]=n[r]);return u}(n,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);for(e=0;e<o.length;e++)t.indexOf(r=o[e])>=0||Object.prototype.propertyIsEnumerable.call(n,r)&&(u[r]=n[r])}return u}function d(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function p(n,t){return!t||"object"!=typeof t&&"function"!=typeof t?d(n):t}function h(n){var t=v();return function(){var r,e=l(n);if(t){var u=l(this).constructor;r=Reflect.construct(e,arguments,u)}else r=e.apply(this,arguments);return p(this,r)}}function w(n,t){return function(n){if(Array.isArray(n))return n}(n)||function(n,t){var r=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=r){var e,u,o=[],i=!0,f=!1;try{for(r=r.call(n);!(i=(e=r.next()).done)&&(o.push(e.value),!t||o.length!==t);i=!0);}catch(n){f=!0,u=n}finally{try{i||null==r.return||r.return()}finally{if(f)throw u}}return o}}(n,t)||O(n,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(n){return function(n){if(Array.isArray(n))return $(n)}(n)||function(n){if("undefined"!=typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||O(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(n,t){if(n){if("string"==typeof n)return $(n,t);var r=Object.prototype.toString.call(n).slice(8,-1);return"Object"===r&&n.constructor&&(r=n.constructor.name),"Map"===r||"Set"===r?Array.from(n):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?$(n,t):void 0}}function $(n,t){(null==t||t>n.length)&&(t=n.length);for(var r=0,e=Array(t);r<t;r++)e[r]=n[r];return e}function g(n,t){var r="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(!r){if(Array.isArray(n)||(r=O(n))||t&&n&&"number"==typeof n.length){r&&(n=r);var e=0,u=function(){};return{s:u,n:function(){return e>=n.length?{done:!0}:{done:!1,value:n[e++]}},e:function(n){throw n},f:u}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,f=!1;return{s:function(){r=r.call(n)},n:function(){var n=r.next();return i=n.done,n},e:function(n){f=!0,o=n},f:function(){try{i||null==r.return||r.return()}finally{if(f)throw o}}}}var S,k,R=!1,A=!1,E="undefined"!=typeof window?window:{},M=E.document||{head:{}},C={t:0,u:"",jmp:function(n){return n()},raf:function(n){return requestAnimationFrame(n)},ael:function(n,t,r,e){return n.addEventListener(t,r,e)},rel:function(n,t,r,e){return n.removeEventListener(t,r,e)},ce:function(n,t){return new CustomEvent(n,t)}},T=function(n){return Promise.resolve(n)},x=function(){try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(n){}return!1}(),P=function(n,t,r){r&&r.map((function(r){var e=w(r,3),u=e[0],o=e[1],i=e[2],f=F(n,u),c=I(t,i),a=L(u);C.ael(f,o,c,a),(t.o=t.o||[]).push((function(){return C.rel(f,o,c,a)}))}))},I=function(n,t){return function(r){try{256&n.t?n.i[t](r):(n.l=n.l||[]).push([t,r])}catch(n){Cn(n)}}},F=function(n,t){return 8&t?E:n},L=function(n){return 0!=(2&n)},U="{visibility:hidden}.hydrated{visibility:inherit}",W=new WeakMap,B=function(n,t,r){var e=Pn.get(n);x&&r?(e=e||new CSSStyleSheet).replace(t):e=t,Pn.set(n,e)},D=function(n){var t=n.v,r=n.m,e=t.t,u=function(n,t){var r=H(t),e=Pn.get(r);if(n=11===n.nodeType?n:M,e)if("string"==typeof e){var u,o=W.get(n=n.head||n);o||W.set(n,o=new Set),o.has(r)||((u=M.createElement("style")).innerHTML=e,n.insertBefore(u,n.querySelector("link")),o&&o.add(r))}else n.adoptedStyleSheets.includes(e)||(n.adoptedStyleSheets=[].concat(j(n.adoptedStyleSheets),[e]));return r}(r.shadowRoot?r.shadowRoot:r.getRootNode(),t);10&e&&(r["s-sc"]=u,r.classList.add(u+"-h"))},H=function(n){return"sc-"+n.p},_={},q=function(n){return"object"===(n=r(n))||"function"===n},N=function(n,t){for(var e=null,u=null,o=!1,i=!1,f=[],c=function t(r){for(var u=0;u<r.length;u++)Array.isArray(e=r[u])?t(e):null!=e&&"boolean"!=typeof e&&((o="function"!=typeof n&&!q(e))&&(e+=""),o&&i?f[f.length-1].h+=e:f.push(o?V(null,e):e),i=o)},a=arguments.length,l=Array(a>2?a-2:0),s=2;s<a;s++)l[s-2]=arguments[s];if(c(l),t){t.key&&(u=t.key);var v=t.className||t.class;v&&(t.class="object"!==r(v)?v:Object.keys(v).filter((function(n){return v[n]})).join(" "))}if("function"==typeof n)return n(null===t?{}:t,f,G);var b=V(n,null);return b.j=t,f.length>0&&(b.O=f),b.$=u,b},V=function(n,t){return{t:0,g:n,h:t,S:null,O:null,j:null,$:null}},z={},G={forEach:function(n,t){return n.map(J).forEach(t)},map:function(n,t){return n.map(J).map(t).map(K)}},J=function(n){return{vattrs:n.j,vchildren:n.O,vkey:n.$,vname:n.k,vtag:n.g,vtext:n.h}},K=function(n){if("function"==typeof n.vtag){var t=Object.assign({},n.vattrs);return n.vkey&&(t.key=n.vkey),n.vname&&(t.name=n.vname),N.apply(void 0,[n.vtag,t].concat(j(n.vchildren||[])))}var r=V(n.vtag,n.vtext);return r.j=n.vattrs,r.O=n.vchildren,r.$=n.vkey,r.k=n.vname,r},Q=function(n,t,r,e,u,o){if(r!==e){var i=Mn(n,t),f=t.toLowerCase();if("class"===t){var c=n.classList,a=Y(r),l=Y(e);c.remove.apply(c,j(a.filter((function(n){return n&&!l.includes(n)})))),c.add.apply(c,j(l.filter((function(n){return n&&!a.includes(n)}))))}else if("style"===t){for(var s in r)e&&null!=e[s]||(s.includes("-")?n.style.removeProperty(s):n.style[s]="");for(var v in e)r&&e[v]===r[v]||(v.includes("-")?n.style.setProperty(v,e[v]):n.style[v]=e[v])}else if("key"===t);else if("ref"===t)e&&e(n);else if(i||"o"!==t[0]||"n"!==t[1]){var b=q(e);if((i||b&&null!==e)&&!u)try{if(n.tagName.includes("-"))n[t]=e;else{var y=null==e?"":e;"list"===t?i=!1:null!=r&&n[t]==y||(n[t]=y)}}catch(n){}null==e||!1===e?!1===e&&""!==n.getAttribute(t)||n.removeAttribute(t):(!i||4&o||u)&&!b&&n.setAttribute(t,e=!0===e?"":e)}else t="-"===t[2]?t.slice(3):Mn(E,f)?f.slice(2):f[2]+t.slice(3),r&&C.rel(n,t,r,!1),e&&C.ael(n,t,e,!1)}},X=/\s/,Y=function(n){return n?n.split(X):[]},Z=function(n,t,r,e){var u=11===t.S.nodeType&&t.S.host?t.S.host:t.S,o=n&&n.j||_,i=t.j||_;for(e in o)e in i||Q(u,e,o[e],void 0,r,t.t);for(e in i)Q(u,e,o[e],i[e],r,t.t)},nn=function n(t,r,e){var u,o,i=r.O[e],f=0;if(null!==i.h)u=i.S=M.createTextNode(i.h);else{if(R||(R="svg"===i.g),u=i.S=M.createElementNS(R?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",i.g),R&&"foreignObject"===i.g&&(R=!1),Z(null,i,R),null!=S&&u["s-si"]!==S&&u.classList.add(u["s-si"]=S),i.O)for(f=0;f<i.O.length;++f)(o=n(t,i,f))&&u.appendChild(o);"svg"===i.g?R=!1:"foreignObject"===u.tagName&&(R=!0)}return u},tn=function(n,t,r,e,u,o){var i,f=n;for(f.shadowRoot&&f.tagName===k&&(f=f.shadowRoot);u<=o;++u)e[u]&&(i=nn(null,r,u))&&(e[u].S=i,f.insertBefore(i,t))},rn=function(n,t,r,e,u){for(;t<=r;++t)(e=n[t])&&(u=e.S,on(e),u.remove())},en=function(n,t){return n.g===t.g&&n.$===t.$},un=function(n,t){var r=t.S=n.S,e=n.O,u=t.O,o=t.g,i=t.h;null===i?(R="svg"===o||"foreignObject"!==o&&R,"slot"===o||Z(n,t,R),null!==e&&null!==u?function(n,t,r,e){for(var u,o,i=0,f=0,c=0,a=0,l=t.length-1,s=t[0],v=t[l],b=e.length-1,y=e[0],m=e[b];i<=l&&f<=b;)if(null==s)s=t[++i];else if(null==v)v=t[--l];else if(null==y)y=e[++f];else if(null==m)m=e[--b];else if(en(s,y))un(s,y),s=t[++i],y=e[++f];else if(en(v,m))un(v,m),v=t[--l],m=e[--b];else if(en(s,m))un(s,m),n.insertBefore(s.S,v.S.nextSibling),s=t[++i],m=e[--b];else if(en(v,y))un(v,y),n.insertBefore(v.S,s.S),v=t[--l],y=e[++f];else{for(c=-1,a=i;a<=l;++a)if(t[a]&&null!==t[a].$&&t[a].$===y.$){c=a;break}c>=0?((o=t[c]).g!==y.g?u=nn(t&&t[f],r,c):(un(o,y),t[c]=void 0,u=o.S),y=e[++f]):(u=nn(t&&t[f],r,f),y=e[++f]),u&&s.S.parentNode.insertBefore(u,s.S)}i>l?tn(n,null==e[b+1]?null:e[b+1].S,r,e,f,b):f>b&&rn(t,i,l)}(r,e,t,u):null!==u?(null!==n.h&&(r.textContent=""),tn(r,null,t,u,0,u.length-1)):null!==e&&rn(e,0,e.length-1),R&&"svg"===o&&(R=!1)):n.h!==i&&(r.data=i)},on=function n(t){t.j&&t.j.ref&&t.j.ref(null),t.O&&t.O.map(n)},fn=function(n){return Rn(n).m},cn=function(n,t,r){var e=fn(n);return{emit:function(n){return an(e,t,{bubbles:!!(4&r),composed:!!(2&r),cancelable:!!(1&r),detail:n})}}},an=function(n,t,r){var e=C.ce(t,r);return n.dispatchEvent(e),e},ln=function(n,t){t&&!n.R&&t["s-p"]&&t["s-p"].push(new Promise((function(t){return n.R=t})))},sn=function(n,t){if(n.t|=16,!(4&n.t))return ln(n,n.A),Dn((function(){return vn(n,t)}));n.t|=512},vn=function(n,t){var r,e=n.i;return t&&(n.t|=256,n.l&&(n.l.map((function(n){var t=w(n,2);return pn(e,t[0],t[1])})),n.l=null),r=pn(e,"componentWillLoad")),hn(r,(function(){return bn(n,e,t)}))},bn=function(){var n=u(regeneratorRuntime.mark((function n(t,r,e){var u,o,i,f,c,a;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:o=function(){},i=(u=t.m)["s-rc"],e&&D(t),f=function(){},n.next=11;break;case 9:n.next=12;break;case 11:yn(t,r);case 12:i&&(i.map((function(n){return n()})),u["s-rc"]=void 0),f(),o(),a=function(){return mn(t)},0===(c=u["s-p"]).length?a():(Promise.all(c).then(a),t.t|=4,c.length=0);case 19:case"end":return n.stop()}}),n)})));return function(t,r,e){return n.apply(this,arguments)}}(),yn=function(n,t){try{t=t.render(),n.t&=-17,n.t|=2,function(n,t){var r=n.m,e=n.v,u=n.M||V(null,null),o=function(n){return n&&n.g===z}(t)?t:N(null,null,t);k=r.tagName,e.C&&(o.j=o.j||{},e.C.map((function(n){var t=w(n,2);return o.j[t[1]]=r[t[0]]}))),o.g=null,o.t|=4,n.M=o,o.S=u.S=r.shadowRoot||r,S=r["s-sc"],un(u,o)}(n,t)}catch(t){Cn(t,n.m)}return null},mn=function(n){var t=n.m,r=n.i,e=n.A;pn(r,"componentDidRender"),64&n.t||(n.t|=64,wn(t),pn(r,"componentDidLoad"),n.T(t),e||dn()),n.P(t),n.R&&(n.R(),n.R=void 0),512&n.t&&Bn((function(){return sn(n,!1)})),n.t&=-517},dn=function(){wn(M.documentElement),Bn((function(){return an(E,"appload",{detail:{namespace:"web-components"}})}))},pn=function(n,t,r){if(n&&n[t])try{return n[t](r)}catch(n){Cn(n)}},hn=function(n,t){return n&&n.then?n.then(t):t()},wn=function(n){return n.classList.add("hydrated")},jn=function(n,t,r){if(t.I){n.watchers&&(t.F=n.watchers);var e=Object.entries(t.I),u=n.prototype;if(e.map((function(n){var e=w(n,2),o=e[0],i=w(e[1],1)[0];31&i||2&r&&32&i?Object.defineProperty(u,o,{get:function(){return function(n,t){return Rn(n).L.get(t)}(this,o)},set:function(n){!function(n,t,r,e){var u=Rn(n),o=u.m,i=u.L.get(t),f=u.t,c=u.i;if(r=function(n,t){return null==n||q(n)?n:4&t?"false"!==n&&(""===n||!!n):2&t?parseFloat(n):1&t?n+"":n}(r,e.I[t][0]),!(8&f&&void 0!==i||r===i)&&(u.L.set(t,r),c)){if(e.F&&128&f){var a=e.F[t];a&&a.map((function(n){try{c[n](r,i,t)}catch(n){Cn(n,o)}}))}2==(18&f)&&sn(u,!1)}}(this,o,n,t)},configurable:!0,enumerable:!0}):1&r&&64&i&&Object.defineProperty(u,o,{value:function(){for(var n=arguments.length,t=Array(n),r=0;r<n;r++)t[r]=arguments[r];var e=Rn(this);return e.U.then((function(){var n;return(n=e.i)[o].apply(n,t)}))}})})),1&r){var o=new Map;u.attributeChangedCallback=function(n,t,r){var e=this;C.jmp((function(){var t=o.get(n);e.hasOwnProperty(t)&&(r=e[t],delete e[t]),e[t]=(null!==r||"boolean"!=typeof e[t])&&r}))},n.observedAttributes=e.filter((function(n){return 15&w(n,2)[1][0]})).map((function(n){var r=w(n,2),e=r[0],u=r[1],i=u[1]||e;return o.set(i,e),512&u[0]&&t.C.push([e,i]),i}))}}return n},On=function(){var n=u(regeneratorRuntime.mark((function n(t,r,e,u,o){var i,f,c,a,l,s;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(0!=(32&r.t)){n.next=37;break}if(r.t|=32,!(o=xn(e)).then){n.next=10;break}return i=function(){},n.next=8,o;case 8:o=n.sent,i();case 10:n.next=12;break;case 12:o.isProxied||(e.F=o.watchers,jn(o,e,2),o.isProxied=!0),function(){},r.t|=8;try{new o(r)}catch(n){Cn(n)}r.t&=-9,r.t|=128,n.next=25;break;case 22:o=t.constructor,r.t|=32,customElements.whenDefined(e.p).then((function(){return r.t|=128}));case 25:if(!o.style){n.next=37;break}if(f=o.style,c=H(e),Pn.has(c)){n.next=37;break}a=function(){},n.next=35;break;case 34:f=n.sent;case 35:B(c,f,!!(1&e.t)),a();case 37:s=function(){return sn(r,!0)},(l=r.A)&&l["s-rc"]?l["s-rc"].push(s):s();case 40:case"end":return n.stop()}}),n)})));return function(t,r,e,u,o){return n.apply(this,arguments)}}(),$n=function(n){if(0==(1&C.t)){var t=Rn(n),r=t.v;if(1&t.t)P(n,t,r.W);else{t.t|=1;for(var e=n;e=e.parentNode||e.host;)if(e["s-p"]){ln(t,t.A=e);break}r.I&&Object.entries(r.I).map((function(t){var r=w(t,2),e=r[0];if(31&w(r[1],1)[0]&&n.hasOwnProperty(e)){var u=n[e];delete n[e],n[e]=u}})),On(n,t,r)}}},gn=function(n){if(0==(1&C.t)){var t=Rn(n),r=t.i;t.o&&(t.o.map((function(n){return n()})),t.o=void 0),pn(r,"disconnectedCallback")}},Sn=function(n){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=function(){},u=[],i=r.exclude||[],c=E.customElements,l=M.head,s=l.querySelector("meta[charset]"),v=M.createElement("style"),b=[],m=!0;Object.assign(C,r),C.u=new URL(r.resourcesUrl||"./",M.baseURI).href,n.map((function(n){return n[1].map((function(r){var e={t:r[0],p:r[1],I:r[2],W:r[3]};e.I=r[2],e.W=r[3],e.C=[],e.F={};var l=e.p,s=function(){a(r,y(HTMLElement));var n=h(r);function r(t){var u;return o(this,r),t=d(u=n.call(this,t)),En(t,e),1&e.t&&t.attachShadow({mode:"open"}),u}return f(r,[{key:"connectedCallback",value:function(){var n=this;t&&(clearTimeout(t),t=null),m?b.push(this):C.jmp((function(){return $n(n)}))}},{key:"disconnectedCallback",value:function(){var n=this;C.jmp((function(){return gn(n)}))}},{key:"componentOnReady",value:function(){return Rn(this).B}}]),r}();e.D=n[0],i.includes(l)||c.get(l)||(u.push(l),c.define(l,jn(s,e,1)))}))})),v.innerHTML=u+U,v.setAttribute("data-styles",""),l.insertBefore(v,s?s.nextSibling:l.firstChild),m=!1,b.length?b.map((function(n){return n.connectedCallback()})):C.jmp((function(){return t=setTimeout(dn,30)})),e()},kn=new WeakMap,Rn=function(n){return kn.get(n)},An=function(n,t){return kn.set(t.i=n,t)},En=function(n,t){var r={t:0,m:n,v:t,L:new Map};return r.U=new Promise((function(n){return r.P=n})),r.B=new Promise((function(n){return r.T=n})),n["s-p"]=[],n["s-rc"]=[],P(n,r,t.W),kn.set(n,r)},Mn=function(n,t){return t in n},Cn=function(n,t){return(0,console.error)(n,t)},Tn=new Map,xn=function(n){var t=n.p.replace(/-/g,"_"),r=n.D,e=Tn.get(r);return e?e[t]:import("./".concat(r,".entry.js").concat("")).then((function(n){return Tn.set(r,n),n[t]}),Cn)},Pn=new Map,In=[],Fn=[],Ln=function(n,t){return function(r){n.push(r),A||(A=!0,t&&4&C.t?Bn(Wn):C.raf(Wn))}},Un=function(n){for(var t=0;t<n.length;t++)try{n[t](performance.now())}catch(n){Cn(n)}n.length=0},Wn=function n(){Un(In),Un(Fn),(A=In.length>0)&&C.raf(n)},Bn=function(n){return T().then(n)},Dn=Ln(Fn,!0);export{z as H,w as _,t as a,Sn as b,cn as c,c as d,f as e,r as f,fn as g,N as h,o as i,j,m as k,u as l,g as m,T as p,An as r}
|
|
dist/components/web-components/p-76d5209c.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
import{l as n,a as r}from"./p-d81ccfaf.js";import{P as e}from"./p-29227b20.js";export default function(t){var o=t.config,a=t.selector,i=t.src,u=t.preload;return new Promise(function(){var t=n(regeneratorRuntime.mark((function n(t){var c,s,f;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(window.Hls){n.next=6;break}case 1:if(window.hasOwnProperty("Hls")){n.next=6;break}return n.next=4,new Promise((function(n){return setTimeout(n,50)}));case 4:n.next=1;break;case 6:if(!window.Hls.isSupported()){n.next=14;break}return s=!["metadata","none"].includes(u),null!==(c=wp)&&void 0!==c&&c.blocks&&(s=!0),(f=new window.Hls({autoStartLoad:s})).loadSource(i),f.on(window.Hls.Events.LEVEL_SWITCHED,(function(n,r){a.closest(".presto-player__wrapper").querySelector(".plyr__menu__container [data-plyr='quality'][value='0'] span").innerHTML=f.autoLevelEnabled?"AUTO (".concat(f.levels[r.level].height,"p)"):"AUTO"})),f.on(window.Hls.Events.MANIFEST_PARSED,(function(){var n=f.levels.map((function(n){return n.height}));n.unshift(0);var i=n.findIndex((function(n){var r;return n===parseInt(null===(r=prestoPlayer)||void 0===r?void 0:r.hls_start_level)}));f.startLevel=i?i-1:2,o.quality={default:0,options:n,forced:!0,onChange:function(n){0===n?prestoHLS.currentLevel=-1:prestoHLS.levels.forEach((function(r,e){r.height===n&&(console.log("Found quality match with "+n),prestoHLS.currentLevel=e)}))}},f.attachMedia(a),window.prestoHLS=f;var u=new e(a,r({},o));return u.hls=f,u.on("waiting",(function n(){f.startLoad(-1),u.off("waiting",n)})),u.on("languagechange",(function(){setTimeout((function(){return f.subtitleTrack=u.currentTrack}),50)})),t(u)})),n.abrupt("return");case 14:return n.abrupt("return",t(new e(a,r({},o))));case 15:case"end":return n.stop()}}),n)})));return function(n,r){return t.apply(this,arguments)}}())}
|
dist/components/web-components/{p-b4cda9d1.entry.js → p-bea94c6e.entry.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
export{a as presto_action_bar,b as presto_action_bar_controller,c as presto_action_bar_ui,d as presto_bunny,e as presto_cta_overlay,f as presto_cta_overlay_controller,C as presto_cta_overlay_ui,g as presto_dynamic_overlay_ui,h as presto_dynamic_overlays,i as presto_email_overlay,j as presto_email_overlay_controller,E as presto_email_overlay_ui,k as presto_muted_overlay,l as presto_player,m as presto_player_button,n as presto_player_spinner,o as presto_video,p as presto_vimeo,q as presto_youtube,s as presto_youtube_subscribe_button}from"./p-
|
1 |
+
export{a as presto_action_bar,b as presto_action_bar_controller,c as presto_action_bar_ui,d as presto_bunny,e as presto_cta_overlay,f as presto_cta_overlay_controller,C as presto_cta_overlay_ui,g as presto_dynamic_overlay_ui,h as presto_dynamic_overlays,i as presto_email_overlay,j as presto_email_overlay_controller,E as presto_email_overlay_ui,k as presto_muted_overlay,l as presto_player,m as presto_player_button,n as presto_player_spinner,o as presto_video,p as presto_vimeo,q as presto_youtube,s as presto_youtube_subscribe_button}from"./p-29227b20.js";import"./p-d81ccfaf.js";
|
dist/components/web-components/p-d81ccfaf.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
function n(n,t){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);t&&(e=e.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.push.apply(r,e)}return r}function t(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?n(Object(e),!0).forEach((function(n){c(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):n(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function r(n){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function e(n,t,r,e,u,o,i){try{var f=n[o](i),c=f.value}catch(n){return void r(n)}f.done?t(c):Promise.resolve(c).then(e,u)}function u(n){return function(){var t=this,r=arguments;return new Promise((function(u,o){var i=n.apply(t,r);function f(n){e(i,u,o,f,c,"next",n)}function c(n){e(i,u,o,f,c,"throw",n)}f(void 0)}))}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function i(n,t){for(var r=0;r<t.length;r++){var e=t[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,e.key,e)}}function f(n,t,r){return t&&i(n.prototype,t),r&&i(n,r),n}function c(n,t,r){return t in n?Object.defineProperty(n,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[t]=r,n}function a(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&s(n,t)}function l(n){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}function s(n,t){return(s=Object.setPrototypeOf||function(n,t){return n.__proto__=t,n})(n,t)}function v(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(n){return!1}}function b(n,t,r){return(b=v()?Reflect.construct:function(n,t,r){var e=[null];e.push.apply(e,t);var u=new(Function.bind.apply(n,e));return r&&s(u,r.prototype),u}).apply(null,arguments)}function y(n){var t="function"==typeof Map?new Map:void 0;return(y=function(n){if(null===n||!function(n){return-1!==Function.toString.call(n).indexOf("[native code]")}(n))return n;if("function"!=typeof n)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(n))return t.get(n);t.set(n,r)}function r(){return b(n,arguments,l(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s(r,n)})(n)}function d(n,t){if(null==n)return{};var r,e,u=function(n,t){if(null==n)return{};var r,e,u={},o=Object.keys(n);for(e=0;e<o.length;e++)t.indexOf(r=o[e])>=0||(u[r]=n[r]);return u}(n,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);for(e=0;e<o.length;e++)t.indexOf(r=o[e])>=0||Object.prototype.propertyIsEnumerable.call(n,r)&&(u[r]=n[r])}return u}function m(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function p(n,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return m(n)}function h(n){var t=v();return function(){var r,e=l(n);if(t){var u=l(this).constructor;r=Reflect.construct(e,arguments,u)}else r=e.apply(this,arguments);return p(this,r)}}function w(n,t){return function(n){if(Array.isArray(n))return n}(n)||function(n,t){var r=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=r){var e,u,o=[],i=!0,f=!1;try{for(r=r.call(n);!(i=(e=r.next()).done)&&(o.push(e.value),!t||o.length!==t);i=!0);}catch(n){f=!0,u=n}finally{try{i||null==r.return||r.return()}finally{if(f)throw u}}return o}}(n,t)||O(n,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(n){return function(n){if(Array.isArray(n))return $(n)}(n)||function(n){if("undefined"!=typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||O(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(n,t){if(n){if("string"==typeof n)return $(n,t);var r=Object.prototype.toString.call(n).slice(8,-1);return"Object"===r&&n.constructor&&(r=n.constructor.name),"Map"===r||"Set"===r?Array.from(n):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?$(n,t):void 0}}function $(n,t){(null==t||t>n.length)&&(t=n.length);for(var r=0,e=Array(t);r<t;r++)e[r]=n[r];return e}function g(n,t){var r="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(!r){if(Array.isArray(n)||(r=O(n))||t&&n&&"number"==typeof n.length){r&&(n=r);var e=0,u=function(){};return{s:u,n:function(){return e>=n.length?{done:!0}:{done:!1,value:n[e++]}},e:function(n){throw n},f:u}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,f=!1;return{s:function(){r=r.call(n)},n:function(){var n=r.next();return i=n.done,n},e:function(n){f=!0,o=n},f:function(){try{i||null==r.return||r.return()}finally{if(f)throw o}}}}var S,k,R=!1,E=!1,A="undefined"!=typeof window?window:{},M=A.document||{head:{}},T={t:0,u:"",jmp:function(n){return n()},raf:function(n){return requestAnimationFrame(n)},ael:function(n,t,r,e){return n.addEventListener(t,r,e)},rel:function(n,t,r,e){return n.removeEventListener(t,r,e)},ce:function(n,t){return new CustomEvent(n,t)}},C=function(n){return Promise.resolve(n)},x=function(){try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(n){}return!1}(),P=function(n,t,r){r&&r.map((function(r){var e=w(r,3),u=e[0],o=e[1],i=e[2],f=F(n,u),c=I(t,i),a=L(u);T.ael(f,o,c,a),(t.o=t.o||[]).push((function(){return T.rel(f,o,c,a)}))}))},I=function(n,t){return function(r){try{256&n.t?n.i[t](r):(n.l=n.l||[]).push([t,r])}catch(n){Tn(n)}}},F=function(n,t){return 8&t?A:n},L=function(n){return 0!=(2&n)},D="{visibility:hidden}.hydrated{visibility:inherit}",U=new WeakMap,W=function(n,t,r){var e=Pn.get(n);x&&r?(e=e||new CSSStyleSheet).replace(t):e=t,Pn.set(n,e)},B=function(n){var t=n.v,r=n.m,e=t.t,u=function(n,t){var r=H(t),e=Pn.get(r);if(n=11===n.nodeType?n:M,e)if("string"==typeof e){var u,o=U.get(n=n.head||n);o||U.set(n,o=new Set),o.has(r)||((u=M.createElement("style")).innerHTML=e,n.insertBefore(u,n.querySelector("link")),o&&o.add(r))}else n.adoptedStyleSheets.includes(e)||(n.adoptedStyleSheets=[].concat(j(n.adoptedStyleSheets),[e]));return r}(r.shadowRoot?r.shadowRoot:r.getRootNode(),t);10&e&&(r["s-sc"]=u,r.classList.add(u+"-h"))},H=function(n){return"sc-"+n.p},_={},q=function(n){return"object"===(n=r(n))||"function"===n},N=function(n,t){for(var e=null,u=null,o=!1,i=!1,f=[],c=function t(r){for(var u=0;u<r.length;u++)Array.isArray(e=r[u])?t(e):null!=e&&"boolean"!=typeof e&&((o="function"!=typeof n&&!q(e))&&(e+=""),o&&i?f[f.length-1].h+=e:f.push(o?V(null,e):e),i=o)},a=arguments.length,l=Array(a>2?a-2:0),s=2;s<a;s++)l[s-2]=arguments[s];if(c(l),t){t.key&&(u=t.key);var v=t.className||t.class;v&&(t.class="object"!==r(v)?v:Object.keys(v).filter((function(n){return v[n]})).join(" "))}if("function"==typeof n)return n(null===t?{}:t,f,G);var b=V(n,null);return b.j=t,f.length>0&&(b.O=f),b.$=u,b},V=function(n,t){return{t:0,g:n,h:t,S:null,O:null,j:null,$:null}},z={},G={forEach:function(n,t){return n.map(J).forEach(t)},map:function(n,t){return n.map(J).map(t).map(K)}},J=function(n){return{vattrs:n.j,vchildren:n.O,vkey:n.$,vname:n.k,vtag:n.g,vtext:n.h}},K=function(n){if("function"==typeof n.vtag){var t=Object.assign({},n.vattrs);return n.vkey&&(t.key=n.vkey),n.vname&&(t.name=n.vname),N.apply(void 0,[n.vtag,t].concat(j(n.vchildren||[])))}var r=V(n.vtag,n.vtext);return r.j=n.vattrs,r.O=n.vchildren,r.$=n.vkey,r.k=n.vname,r},Q=function(n,t,r,e,u,o){if(r!==e){var i=Mn(n,t),f=t.toLowerCase();if("class"===t){var c=n.classList,a=Y(r),l=Y(e);c.remove.apply(c,j(a.filter((function(n){return n&&!l.includes(n)})))),c.add.apply(c,j(l.filter((function(n){return n&&!a.includes(n)}))))}else if("style"===t){for(var s in r)e&&null!=e[s]||(s.includes("-")?n.style.removeProperty(s):n.style[s]="");for(var v in e)r&&e[v]===r[v]||(v.includes("-")?n.style.setProperty(v,e[v]):n.style[v]=e[v])}else if("key"===t);else if("ref"===t)e&&e(n);else if(i||"o"!==t[0]||"n"!==t[1]){var b=q(e);if((i||b&&null!==e)&&!u)try{if(n.tagName.includes("-"))n[t]=e;else{var y=null==e?"":e;"list"===t?i=!1:null!=r&&n[t]==y||(n[t]=y)}}catch(n){}null==e||!1===e?!1===e&&""!==n.getAttribute(t)||n.removeAttribute(t):(!i||4&o||u)&&!b&&n.setAttribute(t,e=!0===e?"":e)}else t="-"===t[2]?t.slice(3):Mn(A,f)?f.slice(2):f[2]+t.slice(3),r&&T.rel(n,t,r,!1),e&&T.ael(n,t,e,!1)}},X=/\s/,Y=function(n){return n?n.split(X):[]},Z=function(n,t,r,e){var u=11===t.S.nodeType&&t.S.host?t.S.host:t.S,o=n&&n.j||_,i=t.j||_;for(e in o)e in i||Q(u,e,o[e],void 0,r,t.t);for(e in i)Q(u,e,o[e],i[e],r,t.t)},nn=function n(t,r,e){var u,o,i=r.O[e],f=0;if(null!==i.h)u=i.S=M.createTextNode(i.h);else{if(R||(R="svg"===i.g),u=i.S=M.createElementNS(R?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",i.g),R&&"foreignObject"===i.g&&(R=!1),Z(null,i,R),null!=S&&u["s-si"]!==S&&u.classList.add(u["s-si"]=S),i.O)for(f=0;f<i.O.length;++f)(o=n(t,i,f))&&u.appendChild(o);"svg"===i.g?R=!1:"foreignObject"===u.tagName&&(R=!0)}return u},tn=function(n,t,r,e,u,o){var i,f=n;for(f.shadowRoot&&f.tagName===k&&(f=f.shadowRoot);u<=o;++u)e[u]&&(i=nn(null,r,u))&&(e[u].S=i,f.insertBefore(i,t))},rn=function(n,t,r,e,u){for(;t<=r;++t)(e=n[t])&&(u=e.S,on(e),u.remove())},en=function(n,t){return n.g===t.g&&n.$===t.$},un=function(n,t){var r=t.S=n.S,e=n.O,u=t.O,o=t.g,i=t.h;null===i?(R="svg"===o||"foreignObject"!==o&&R,"slot"===o||Z(n,t,R),null!==e&&null!==u?function(n,t,r,e){for(var u,o,i=0,f=0,c=0,a=0,l=t.length-1,s=t[0],v=t[l],b=e.length-1,y=e[0],d=e[b];i<=l&&f<=b;)if(null==s)s=t[++i];else if(null==v)v=t[--l];else if(null==y)y=e[++f];else if(null==d)d=e[--b];else if(en(s,y))un(s,y),s=t[++i],y=e[++f];else if(en(v,d))un(v,d),v=t[--l],d=e[--b];else if(en(s,d))un(s,d),n.insertBefore(s.S,v.S.nextSibling),s=t[++i],d=e[--b];else if(en(v,y))un(v,y),n.insertBefore(v.S,s.S),v=t[--l],y=e[++f];else{for(c=-1,a=i;a<=l;++a)if(t[a]&&null!==t[a].$&&t[a].$===y.$){c=a;break}c>=0?((o=t[c]).g!==y.g?u=nn(t&&t[f],r,c):(un(o,y),t[c]=void 0,u=o.S),y=e[++f]):(u=nn(t&&t[f],r,f),y=e[++f]),u&&s.S.parentNode.insertBefore(u,s.S)}i>l?tn(n,null==e[b+1]?null:e[b+1].S,r,e,f,b):f>b&&rn(t,i,l)}(r,e,t,u):null!==u?(null!==n.h&&(r.textContent=""),tn(r,null,t,u,0,u.length-1)):null!==e&&rn(e,0,e.length-1),R&&"svg"===o&&(R=!1)):n.h!==i&&(r.data=i)},on=function n(t){t.j&&t.j.ref&&t.j.ref(null),t.O&&t.O.map(n)},fn=function(n){return Rn(n).m},cn=function(n,t,r){var e=fn(n);return{emit:function(n){return an(e,t,{bubbles:!!(4&r),composed:!!(2&r),cancelable:!!(1&r),detail:n})}}},an=function(n,t,r){var e=T.ce(t,r);return n.dispatchEvent(e),e},ln=function(n,t){t&&!n.R&&t["s-p"]&&t["s-p"].push(new Promise((function(t){return n.R=t})))},sn=function(n,t){if(n.t|=16,!(4&n.t))return ln(n,n.A),Bn((function(){return vn(n,t)}));n.t|=512},vn=function(n,t){var r,e=n.i;return t&&(n.t|=256,n.l&&(n.l.map((function(n){var t=w(n,2);return pn(e,t[0],t[1])})),n.l=null),r=pn(e,"componentWillLoad")),hn(r,(function(){return bn(n,e,t)}))},bn=function(){var n=u(regeneratorRuntime.mark((function n(t,r,e){var u,o,i,f,c,a;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:o=function(){},i=(u=t.m)["s-rc"],e&&B(t),f=function(){},n.next=11;break;case 9:n.next=12;break;case 11:yn(t,r);case 12:i&&(i.map((function(n){return n()})),u["s-rc"]=void 0),f(),o(),a=function(){return dn(t)},0===(c=u["s-p"]).length?a():(Promise.all(c).then(a),t.t|=4,c.length=0);case 19:case"end":return n.stop()}}),n)})));return function(t,r,e){return n.apply(this,arguments)}}(),yn=function(n,t){try{t=t.render(),n.t&=-17,n.t|=2,function(n,t){var r=n.m,e=n.v,u=n.M||V(null,null),o=function(n){return n&&n.g===z}(t)?t:N(null,null,t);k=r.tagName,e.T&&(o.j=o.j||{},e.T.map((function(n){var t=w(n,2);return o.j[t[1]]=r[t[0]]}))),o.g=null,o.t|=4,n.M=o,o.S=u.S=r.shadowRoot||r,S=r["s-sc"],un(u,o)}(n,t)}catch(t){Tn(t,n.m)}return null},dn=function(n){var t=n.m,r=n.i,e=n.A;pn(r,"componentDidRender"),64&n.t||(n.t|=64,wn(t),pn(r,"componentDidLoad"),n.C(t),e||mn()),n.P(t),n.R&&(n.R(),n.R=void 0),512&n.t&&Wn((function(){return sn(n,!1)})),n.t&=-517},mn=function(){wn(M.documentElement),Wn((function(){return an(A,"appload",{detail:{namespace:"web-components"}})}))},pn=function(n,t,r){if(n&&n[t])try{return n[t](r)}catch(n){Tn(n)}},hn=function(n,t){return n&&n.then?n.then(t):t()},wn=function(n){return n.classList.add("hydrated")},jn=function(n,t,r){if(t.I){n.watchers&&(t.F=n.watchers);var e=Object.entries(t.I),u=n.prototype;if(e.map((function(n){var e=w(n,2),o=e[0],i=w(e[1],1)[0];31&i||2&r&&32&i?Object.defineProperty(u,o,{get:function(){return function(n,t){return Rn(n).L.get(t)}(this,o)},set:function(n){!function(n,t,r,e){var u=Rn(n),o=u.m,i=u.L.get(t),f=u.t,c=u.i;if(r=function(n,t){return null==n||q(n)?n:4&t?"false"!==n&&(""===n||!!n):2&t?parseFloat(n):1&t?n+"":n}(r,e.I[t][0]),!(8&f&&void 0!==i||r===i)&&(u.L.set(t,r),c)){if(e.F&&128&f){var a=e.F[t];a&&a.map((function(n){try{c[n](r,i,t)}catch(n){Tn(n,o)}}))}2==(18&f)&&sn(u,!1)}}(this,o,n,t)},configurable:!0,enumerable:!0}):1&r&&64&i&&Object.defineProperty(u,o,{value:function(){for(var n=arguments.length,t=Array(n),r=0;r<n;r++)t[r]=arguments[r];var e=Rn(this);return e.D.then((function(){var n;return(n=e.i)[o].apply(n,t)}))}})})),1&r){var o=new Map;u.attributeChangedCallback=function(n,t,r){var e=this;T.jmp((function(){var t=o.get(n);e.hasOwnProperty(t)&&(r=e[t],delete e[t]),e[t]=(null!==r||"boolean"!=typeof e[t])&&r}))},n.observedAttributes=e.filter((function(n){return 15&w(n,2)[1][0]})).map((function(n){var r=w(n,2),e=r[0],u=r[1],i=u[1]||e;return o.set(i,e),512&u[0]&&t.T.push([e,i]),i}))}}return n},On=function(){var n=u(regeneratorRuntime.mark((function n(t,r,e,u,o){var i,f,c,a,l,s;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(0!=(32&r.t)){n.next=37;break}if(r.t|=32,!(o=xn(e)).then){n.next=10;break}return i=function(){},n.next=8,o;case 8:o=n.sent,i();case 10:n.next=12;break;case 12:o.isProxied||(e.F=o.watchers,jn(o,e,2),o.isProxied=!0),function(){},r.t|=8;try{new o(r)}catch(n){Tn(n)}r.t&=-9,r.t|=128,n.next=25;break;case 22:o=t.constructor,r.t|=32,customElements.whenDefined(e.p).then((function(){return r.t|=128}));case 25:if(!o.style){n.next=37;break}if(f=o.style,c=H(e),Pn.has(c)){n.next=37;break}a=function(){},n.next=35;break;case 34:f=n.sent;case 35:W(c,f,!!(1&e.t)),a();case 37:s=function(){return sn(r,!0)},(l=r.A)&&l["s-rc"]?l["s-rc"].push(s):s();case 40:case"end":return n.stop()}}),n)})));return function(t,r,e,u,o){return n.apply(this,arguments)}}(),$n=function(n){if(0==(1&T.t)){var t=Rn(n),r=t.v;if(1&t.t)P(n,t,r.U);else{t.t|=1;for(var e=n;e=e.parentNode||e.host;)if(e["s-p"]){ln(t,t.A=e);break}r.I&&Object.entries(r.I).map((function(t){var r=w(t,2),e=r[0];if(31&w(r[1],1)[0]&&n.hasOwnProperty(e)){var u=n[e];delete n[e],n[e]=u}})),On(n,t,r)}}},gn=function(n){if(0==(1&T.t)){var t=Rn(n),r=t.i;t.o&&(t.o.map((function(n){return n()})),t.o=void 0),pn(r,"disconnectedCallback")}},Sn=function(n){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=function(){},u=[],i=r.exclude||[],c=A.customElements,l=M.head,s=l.querySelector("meta[charset]"),v=M.createElement("style"),b=[],d=!0;Object.assign(T,r),T.u=new URL(r.resourcesUrl||"./",M.baseURI).href,n.map((function(n){return n[1].map((function(r){var e={t:r[0],p:r[1],I:r[2],U:r[3]};e.I=r[2],e.U=r[3],e.T=[],e.F={};var l=e.p,s=function(){a(r,y(HTMLElement));var n=h(r);function r(t){var u;return o(this,r),t=m(u=n.call(this,t)),An(t,e),1&e.t&&t.attachShadow({mode:"open"}),u}return f(r,[{key:"connectedCallback",value:function(){var n=this;t&&(clearTimeout(t),t=null),d?b.push(this):T.jmp((function(){return $n(n)}))}},{key:"disconnectedCallback",value:function(){var n=this;T.jmp((function(){return gn(n)}))}},{key:"componentOnReady",value:function(){return Rn(this).W}}]),r}();e.B=n[0],i.includes(l)||c.get(l)||(u.push(l),c.define(l,jn(s,e,1)))}))})),v.innerHTML=u+D,v.setAttribute("data-styles",""),l.insertBefore(v,s?s.nextSibling:l.firstChild),d=!1,b.length?b.map((function(n){return n.connectedCallback()})):T.jmp((function(){return t=setTimeout(mn,30)})),e()},kn=new WeakMap,Rn=function(n){return kn.get(n)},En=function(n,t){return kn.set(t.i=n,t)},An=function(n,t){var r={t:0,m:n,v:t,L:new Map};return r.D=new Promise((function(n){return r.P=n})),r.W=new Promise((function(n){return r.C=n})),n["s-p"]=[],n["s-rc"]=[],P(n,r,t.U),kn.set(n,r)},Mn=function(n,t){return t in n},Tn=function(n,t){return(0,console.error)(n,t)},Cn=new Map,xn=function(n){var t=n.p.replace(/-/g,"_"),r=n.B,e=Cn.get(r);return e?e[t]:import("./".concat(r,".entry.js").concat("")).then((function(n){return Cn.set(r,n),n[t]}),Tn)},Pn=new Map,In=[],Fn=[],Ln=function(n,t){return function(r){n.push(r),E||(E=!0,t&&4&T.t?Wn(Un):T.raf(Un))}},Dn=function(n){for(var t=0;t<n.length;t++)try{n[t](performance.now())}catch(n){Tn(n)}n.length=0},Un=function n(){Dn(In),Dn(Fn),(E=In.length>0)&&T.raf(n)},Wn=function(n){return C().then(n)},Bn=Ln(Fn,!0);export{z as H,w as _,t as a,Sn as b,cn as c,c as d,f as e,r as f,fn as g,N as h,o as i,j,d as k,u as l,g as m,C as p,En as r}
|
dist/components/web-components/p-e30af8b3.entry.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
import{r as t,h as o}from"./p-660ec1bb.js";const e=class{constructor(o){t(this,o)}render(){return o("div",{class:"curtain"},o("div",{class:"content",part:"curtain-content"},o("slot",null)))}};e.style=':host{font-size:16px}.curtain{font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";background-color:#000;text-align:center;color:#fff;padding-bottom:56.25%;position:relative;font-size:1.5em}::slotted(:not(:first-child)){margin-top:14px}.content{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;flex-direction:column;padding:48px}';export{e as presto_video_curtain_ui}
|
|
dist/components/web-components/web-components.esm.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
import{p as e,b as r}from"./p-
|
1 |
+
import{p as e,b as r}from"./p-d81ccfaf.js";var t,o;(t=import.meta.url,o={},""!==t&&(o.resourcesUrl=new URL(".",t).href),e(o)).then((e=>r([["p-2006b1be",[[1,"presto-player-skeleton",{effect:[1]}]]],["p-539dd74b",[[1,"presto-video-curtain-ui",{actionUrl:[1,"action-url"]}]]],["p-bea94c6e",[[1,"presto-player",{video_id:[2],iconUrl:[1,"icon-url"],src:[1],bunny:[16],branding:[16],config:[16],preset:[16],chapters:[16],overlays:[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],currentTime:[2,"current-time"],player:[32],playerEl:[32],shouldLazyLoad:[32],mutedPreview:[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]},[[0,"restartVideo","handleRestartVideo"],[0,"playVideo","handlePlayVideo"],[0,"pauseVideo","handlePauseVideo"],[8,"visibilitychange","playVideoOnlyInViewport"]]],[1,"presto-action-bar",{player:[8],config:[16],direction:[1],youtube:[16],currentTime:[32],duration:[32],ended:[32]}],[0,"presto-cta-overlay",{player:[8],direction:[1],preset:[16],i18n:[16],currentTime:[32],duration:[32],ended:[32]}],[0,"presto-email-overlay",{player:[8],direction:[1],preset:[16],videoId:[2,"video-id"],i18n:[16],currentTime:[32],duration:[32],ended:[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"]}],[1,"presto-dynamic-overlays",{overlays:[16],player:[8],preset:[16],enabled:[4],currentTime:[32],destroy:[32]}],[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]}],[1,"presto-action-bar-controller",{ended:[4],config:[16],currentTime:[514,"current-time"],duration:[514],direction:[1],youtube:[16],show:[32],youtubeRenderKey:[32],percentagePassed:[32]}],[0,"presto-cta-overlay-controller",{ended:[4],currentTime:[514,"current-time"],duration:[514],direction:[1],cta:[16],i18n:[16],enabled:[32],show:[32],loading:[32],error:[32],skipped:[32],percentagePassed:[32]}],[0,"presto-email-overlay-controller",{ended:[4],currentTime:[514,"current-time"],duration:[514],direction:[1],emailCollection:[16],i18n:[16],videoId:[2,"video-id"],presetId:[2,"preset-id"],enabled:[32],show:[32],loading:[32],error:[32],percentagePassed:[32]}],[1,"presto-dynamic-overlay-ui",{href:[1],target:[1],position:[1]}],[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"],direction:[1],i18n:[16]}],[1,"presto-email-overlay-ui",{headline:[1],bottomText:[1,"bottom-text"],buttonText:[1,"button-text"],allowSkip:[4,"allow-skip"],borderRadius:[2,"border-radius"],isLoading:[4,"is-loading"],errorMessage:[1,"error-message"],direction:[1],i18n:[16],email:[32]}],[1,"presto-action-bar-ui",{open:[4]}],[0,"presto-video",{getRef:[1040],autoplay:[4],src:[1],preload:[1],poster:[1],player:[8],tracks:[16],playsinline:[4],provider:[1]}],[0,"presto-youtube-subscribe-button",{channel:[1],layout:[1],showCount:[4,"show-count"]}],[1,"presto-player-spinner"],[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]}]]]],e)));
|
dist/loader/index.d.ts
CHANGED
@@ -1,4 +1,3 @@
|
|
1 |
-
|
2 |
export * from '../components/types/components';
|
3 |
export interface CustomElementsDefineOptions {
|
4 |
exclude?: string[];
|
|
|
1 |
export * from '../components/types/components';
|
2 |
export interface CustomElementsDefineOptions {
|
3 |
exclude?: string[];
|
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-10-
|
11 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
12 |
"X-Generator: WP-CLI 2.5.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-10-12T17:25:27+00:00\n"
|
11 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
12 |
"X-Generator: WP-CLI 2.5.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.6.
|
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.6.10
|
8 |
* Author: Presto Made, Inc
|
9 |
* Text Domain: presto-player
|
10 |
* Tags: private, video, lms, hls
|
readme.txt
CHANGED
@@ -153,6 +153,9 @@ It is also important to point out that BunnyNet has a $1 per month minimum.
|
|
153 |
|
154 |
== Changelog ==
|
155 |
|
|
|
|
|
|
|
156 |
= 1.6.9 - October 11, 2021 =
|
157 |
* Fix compatibility issue with Loco translate not picking up translations from custom directories.
|
158 |
* Fix bug where custom css was getting cleared when editing a video.
|
153 |
|
154 |
== Changelog ==
|
155 |
|
156 |
+
= 1.6.10 - October 12, 2021 =
|
157 |
+
* Fix issue with built-in analytics sometimes not working with Youtube videos.
|
158 |
+
|
159 |
= 1.6.9 - October 11, 2021 =
|
160 |
* Fix compatibility issue with Loco translate not picking up translations from custom directories.
|
161 |
* Fix bug where custom css was getting cleared when editing a video.
|
vendor/composer/installed.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
'type' => 'project',
|
6 |
'install_path' => __DIR__ . '/../../',
|
7 |
'aliases' => array(),
|
8 |
-
'reference' => '
|
9 |
'name' => 'course/player',
|
10 |
'dev' => false,
|
11 |
),
|
@@ -16,7 +16,7 @@
|
|
16 |
'type' => 'project',
|
17 |
'install_path' => __DIR__ . '/../../',
|
18 |
'aliases' => array(),
|
19 |
-
'reference' => '
|
20 |
'dev_requirement' => false,
|
21 |
),
|
22 |
'level-2/dice' => array(
|
5 |
'type' => 'project',
|
6 |
'install_path' => __DIR__ . '/../../',
|
7 |
'aliases' => array(),
|
8 |
+
'reference' => 'e6c70d85c9399c26ea9e3bb37585b075b477b971',
|
9 |
'name' => 'course/player',
|
10 |
'dev' => false,
|
11 |
),
|
16 |
'type' => 'project',
|
17 |
'install_path' => __DIR__ . '/../../',
|
18 |
'aliases' => array(),
|
19 |
+
'reference' => 'e6c70d85c9399c26ea9e3bb37585b075b477b971',
|
20 |
'dev_requirement' => false,
|
21 |
),
|
22 |
'level-2/dice' => array(
|