diff --git a/README.md b/README.md index 8b3ae21..b97a3d6 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # afterglow -afterglow is a tool to create fully responsive and totally awesome video players from an HTML5 video element with as little effort as possible. +afterglow is a tool to create fully responsive and totally awesome video players from HTML5 video elements with as little effort as possible. Learn more about the project on the project website: [http://afterglowplayer.com](http://afterglowplayer.com). diff --git a/dist/afterglow.min.js b/dist/afterglow.min.js new file mode 100644 index 0000000..9e18351 --- /dev/null +++ b/dist/afterglow.min.js @@ -0,0 +1,19 @@ +/** + * afterglow - An easy to integrate HTML5 video player with lightbox support. + * @link http://afterglowplayer.com + * @version 0.2.0 + * @license MIT + * + * afterglow includes some scripts provided under different licenses by their authors. Please see the project sources via http://afterglowplayer.com in order to learn which projects are included and how you may use them. + */ + +function addEventHandler(t,e,o){for(var n=e.split(" "),r=0,i=n.length;i>r;r++)t.addEventListener?t.addEventListener(n[r],o,!1):t.attachEvent&&t.attachEvent("on"+n[r],o)}function removeEventHandler(t,e,o){for(var n=e.split(" "),r=0,i=n.length;i>r;r++)t.removeEventListener&&t.removeEventListener(n[r],o,!1),t.detachEvent&&t.detachEvent("on"+n[r],o)}function merge_options(t,e){var o={};for(var n in t)o[n]=t[n];for(var n in e)o[n]=e[n];return o}function loadYoutubeThumbnailUrl(t){var e="https://img.youtube.com/vi/"+t+"/maxresdefault.jpg";return e}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}!function(t,e){var o=t.createElement("style");if(t.getElementsByTagName("head")[0].appendChild(o),o.styleSheet)o.styleSheet.disabled||(o.styleSheet.cssText=e);else try{o.innerHTML=e}catch(n){o.innerText=e}}(document,".video-js .vjs-big-play-button,.video-js .vjs-captions-button,.video-js .vjs-chapters-button,.video-js .vjs-fullscreen-control,.video-js .vjs-mouse-display,.video-js .vjs-mute-control,.video-js .vjs-mute-control.vjs-vol-0,.video-js .vjs-mute-control.vjs-vol-1,.video-js .vjs-mute-control.vjs-vol-2,.video-js .vjs-play-control,.video-js .vjs-play-progress,.video-js .vjs-subtitles-button,.video-js .vjs-volume-level,.video-js .vjs-volume-menu-button,.video-js .vjs-volume-menu-button.vjs-vol-0,.video-js .vjs-volume-menu-button.vjs-vol-1,.video-js .vjs-volume-menu-button.vjs-vol-2,.video-js.vjs-fullscreen .vjs-fullscreen-control,.video-js.vjs-playing .vjs-play-control,.vjs-icon-audio-description,.vjs-icon-captions,.vjs-icon-chapters,.vjs-icon-circle,.vjs-icon-circle-inner-circle,.vjs-icon-circle-outline,.vjs-icon-cog,.vjs-icon-fullscreen-enter,.vjs-icon-fullscreen-exit,.vjs-icon-pause,.vjs-icon-play,.vjs-icon-play-circle,.vjs-icon-share,.vjs-icon-spinner,.vjs-icon-subtitles,.vjs-icon-volume-high,.vjs-icon-volume-low,.vjs-icon-volume-mid,.vjs-icon-volume-mute{font-family:VideoJS;font-weight:400;font-style:normal}.video-js,.vjs-no-js{background-color:#000}.video-js .vjs-big-play-button:before,.video-js .vjs-control:before{position:absolute;top:0;left:0;width:100%;height:100%;text-align:center}@font-face{font-family:VideoJS;src:url(font/VideoJS.eot?) format('eot')}@font-face{font-family:VideoJS;src:url(data:application/font-woff;charset=utf-8;base64,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) format('woff'),url(data:application/x-font-ttf;charset=utf-8;base64,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) format('truetype');font-weight:400;font-style:normal}.video-js .vjs-big-play-button:before,.video-js .vjs-play-control:before,.vjs-icon-play:before{content:'\\f101'}.vjs-icon-play-circle:before{content:'\\f102'}.video-js.vjs-playing .vjs-play-control:before,.vjs-icon-pause:before{content:'\\f103'}.video-js .vjs-mute-control.vjs-vol-0:before,.video-js .vjs-volume-menu-button.vjs-vol-0:before,.vjs-icon-volume-mute:before{content:'\\f104'}.video-js .vjs-mute-control.vjs-vol-1:before,.video-js .vjs-volume-menu-button.vjs-vol-1:before,.vjs-icon-volume-low:before{content:'\\f105'}.video-js .vjs-mute-control.vjs-vol-2:before,.video-js .vjs-volume-menu-button.vjs-vol-2:before,.vjs-icon-volume-mid:before{content:'\\f106'}.video-js .vjs-mute-control:before,.video-js .vjs-volume-menu-button:before,.vjs-icon-volume-high:before{content:'\\f107'}.video-js .vjs-fullscreen-control:before,.vjs-icon-fullscreen-enter:before{content:'\\f108'}.video-js.vjs-fullscreen .vjs-fullscreen-control:before,.vjs-icon-fullscreen-exit:before{content:'\\f109'}.vjs-icon-square{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-square:before{content:'\\f10a'}.vjs-icon-spinner:before{content:'\\f10b'}.video-js .vjs-subtitles-button:before,.vjs-icon-subtitles:before{content:'\\f10c'}.video-js .vjs-captions-button:before,.vjs-icon-captions:before{content:'\\f10d'}.video-js .vjs-chapters-button:before,.vjs-icon-chapters:before{content:'\\f10e'}.vjs-icon-share:before{content:'\\f10f'}.vjs-icon-cog:before{content:'\\f110'}.video-js .vjs-mouse-display:before,.video-js .vjs-play-progress:before,.video-js .vjs-volume-level:before,.vjs-icon-circle:before{content:'\\f111'}.vjs-icon-circle-outline:before{content:'\\f112'}.vjs-icon-circle-inner-circle:before{content:'\\f113'}.vjs-icon-audio-description:before{content:'\\f114'}.video-js{display:block;vertical-align:top;box-sizing:border-box;color:#fff;position:relative;padding:0;font-size:10px;line-height:1;font-weight:400;font-style:normal;font-family:Arial,Helvetica,sans-serif;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.video-js:-moz-full-screen{position:absolute}.video-js:-webkit-full-screen{width:100%!important;height:100%!important}.video-js *,.video-js :after,.video-js :before{box-sizing:inherit}.video-js ul{font-family:inherit;font-size:inherit;line-height:inherit;list-style-position:outside;margin:0}.vjs-caption-settings,.vjs-error .vjs-error-display:before,.vjs-no-js{font-family:Arial,Helvetica,sans-serif}.video-js.vjs-16-9,.video-js.vjs-fluid{width:100%;max-width:100%;height:0;padding-top:56.25%}.video-js.vjs-4-3{width:100%;max-width:100%;height:0;padding-top:75%}.video-js.vjs-fill{width:100%;height:100%}.video-js .vjs-tech{position:absolute;top:0;left:0;width:100%;height:100%}body.vjs-full-window{padding:0;margin:0;height:100%;overflow-y:auto}.vjs-full-window .video-js.vjs-fullscreen{position:fixed;overflow:hidden;z-index:1000;left:0;top:0;bottom:0;right:0}.video-js.vjs-fullscreen{width:100%!important;height:100%!important;padding-top:0!important}.video-js.vjs-fullscreen.vjs-user-inactive{cursor:none}.vjs-hidden{display:none!important}.vjs-lock-showing{display:block!important;opacity:1;visibility:visible}.vjs-no-js{padding:20px;color:#fff;font-size:18px;text-align:center;width:300px;height:150px;margin:0 auto}.vjs-no-js a,.vjs-no-js a:visited{color:#F4A460}.video-js .vjs-big-play-button{font-size:3em;line-height:1.5em;height:1.5em;width:3em;display:block;z-index:2;position:absolute;top:10px;left:10px;padding:0;cursor:pointer;opacity:1;border:2px solid #fff;background-color:#000;background-color:rgba(0,0,0,.8);-webkit-border-radius:.3em;-moz-border-radius:.3em;border-radius:.3em;-webkit-transition:all .4s;-moz-transition:all .4s;-o-transition:all .4s;transition:all .4s}.vjs-big-play-centered .vjs-big-play-button{top:50%;left:50%;margin-top:-.75em;margin-left:-1.5em}.video-js .vjs-big-play-button:focus,.video-js:hover .vjs-big-play-button{outline:0;border-color:#fff;background-color:#595959;background-color:rgba(89,89,89,.75);-webkit-transition:all 0s;-moz-transition:all 0s;-o-transition:all 0s;transition:all 0s}.vjs-controls-disabled .vjs-big-play-button,.vjs-error .vjs-big-play-button,.vjs-has-started .vjs-big-play-button,.vjs-using-native-controls .vjs-big-play-button{display:none}.video-js button{background:0 0;border:none;color:#fff;display:inline-block;overflow:visible;font-size:inherit;line-height:inherit;text-transform:none;text-decoration:none;transition:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.vjs-menu-button{cursor:pointer}.vjs-menu .vjs-menu-content{display:block;padding:0;margin:0;overflow:auto}.vjs-scrubbing .vjs-menu-button:hover .vjs-menu{display:none}.vjs-menu li{list-style:none;margin:0;padding:.2em 0;line-height:1.4em;font-size:1.2em;text-align:center;text-transform:lowercase}.vjs-menu li.vjs-selected{background-color:#000}.vjs-menu li.vjs-selected:focus,.vjs-menu li.vjs-selected:hover,.vjs-menu li:focus,.vjs-menu li:hover{outline:0;color:#000;background-color:#fff;background-color:rgba(255,255,255,.75)}.vjs-menu li.vjs-menu-title{text-align:center;text-transform:uppercase;font-size:1em;line-height:2em;padding:0;margin:0 0 .3em;font-weight:700;cursor:default}.vjs-menu-button-popup .vjs-menu{display:none;position:absolute;bottom:0;width:10em;left:-3em;height:0;margin-bottom:1.5em;border-top-color:rgba(7,40,50,.5)}.vjs-menu-button-popup .vjs-menu ul{background-color:#000;background-color:rgba(0,0,0,.7);position:absolute;width:100%;bottom:1.5em;max-height:15em}.vjs-menu-button-popup .vjs-menu.vjs-lock-showing,.vjs-menu-button-popup:hover .vjs-menu{display:block}.video-js .vjs-menu-button-inline{-webkit-transition:all .4s;-moz-transition:all .4s;-o-transition:all .4s;transition:all .4s;overflow:hidden}.video-js .vjs-menu-button-inline:before{width:2.222222222em}.video-js .vjs-menu-button-inline.vjs-slider-active,.video-js .vjs-menu-button-inline:focus,.video-js .vjs-menu-button-inline:hover,.video-js.vjs-no-flex .vjs-menu-button-inline{width:12em}.video-js .vjs-menu-button-inline.vjs-slider-active{-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none}.vjs-menu-button-inline .vjs-menu{opacity:0;height:100%;width:auto;position:absolute;left:2.2222222em;top:0;padding:0;margin:0;-webkit-transition:all .4s;-moz-transition:all .4s;-o-transition:all .4s;transition:all .4s}.vjs-menu-button-inline.vjs-slider-active .vjs-menu,.vjs-menu-button-inline:focus .vjs-menu,.vjs-menu-button-inline:hover .vjs-menu{display:block;opacity:1}.vjs-no-flex .vjs-menu-button-inline .vjs-menu{display:block;opacity:1;position:relative;width:auto}.vjs-no-flex .vjs-menu-button-inline.vjs-slider-active .vjs-menu,.vjs-no-flex .vjs-menu-button-inline:focus .vjs-menu,.vjs-no-flex .vjs-menu-button-inline:hover .vjs-menu{width:auto}.vjs-menu-button-inline .vjs-menu-content{width:auto;height:100%;margin:0;overflow:hidden}.video-js .vjs-control-bar{display:none;width:100%;position:absolute;bottom:0;left:0;right:0;height:3em;background-color:#2B333F;background-color:rgba(43,51,63,.5)}.vjs-has-started .vjs-control-bar{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;visibility:visible;opacity:1;-webkit-transition:visibility .1s,opacity .1s;-moz-transition:visibility .1s,opacity .1s;-o-transition:visibility .1s,opacity .1s;transition:visibility .1s,opacity .1s}.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{visibility:hidden;opacity:0;-webkit-transition:visibility 1s,opacity 1s;-moz-transition:visibility 1s,opacity 1s;-o-transition:visibility 1s,opacity 1s;transition:visibility 1s,opacity 1s}.vjs-controls-disabled .vjs-control-bar,.vjs-error .vjs-control-bar,.vjs-using-native-controls .vjs-control-bar{display:none!important}.vjs-audio.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{opacity:1;visibility:visible}@media \\0screen{.vjs-user-inactive.vjs-playing .vjs-control-bar :before{content:\"\"}}.vjs-has-started.vjs-no-flex .vjs-control-bar{display:table}.video-js .vjs-control{outline:0;position:relative;text-align:center;margin:0;padding:0;height:100%;width:4em;-webkit-box-flex:none;-moz-box-flex:none;-webkit-flex:none;-ms-flex:none;flex:none}.video-js .vjs-control:before{font-size:1.8em;line-height:1.67}.video-js .vjs-control:focus,.video-js .vjs-control:focus:before,.video-js .vjs-control:hover:before{text-shadow:0 0 1em #fff}.video-js .vjs-control-text{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.vjs-no-flex .vjs-control{display:table-cell;vertical-align:middle}.video-js .vjs-custom-control-spacer{display:none}.video-js .vjs-progress-control{-webkit-box-flex:auto;-moz-box-flex:auto;-webkit-flex:auto;-ms-flex:auto;flex:auto;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.vjs-live .vjs-progress-control{display:none}.video-js .vjs-progress-holder{-webkit-box-flex:auto;-moz-box-flex:auto;-webkit-flex:auto;-ms-flex:auto;flex:auto;-webkit-transition:all .2s;-moz-transition:all .2s;-o-transition:all .2s;transition:all .2s;height:.3em}.video-js .vjs-progress-control:hover .vjs-progress-holder{font-size:1.6666666667em}.video-js .vjs-progress-control:hover .vjs-mouse-display:after,.video-js .vjs-progress-control:hover .vjs-play-progress:after{display:block;font-size:.6em}.video-js .vjs-progress-holder .vjs-load-progress,.video-js .vjs-progress-holder .vjs-load-progress div,.video-js .vjs-progress-holder .vjs-play-progress{position:absolute;display:block;height:.3em;margin:0;padding:0;width:0;left:0;top:0}.video-js .vjs-mouse-display:before{display:none}.video-js .vjs-play-progress{background-color:#fff}.video-js .vjs-play-progress:before{position:absolute;top:-.3333333333em;right:-.5em;font-size:.9em}.video-js .vjs-mouse-display:after,.video-js .vjs-play-progress:after{display:none;position:absolute;top:-2.4em;right:-1.5em;font-size:.9em;color:#000;content:attr(data-current-time);padding:.2em .5em;background-color:#fff;background-color:rgba(255,255,255,.8);-webkit-border-radius:.3em;-moz-border-radius:.3em;border-radius:.3em}.video-js .vjs-play-progress:after,.video-js .vjs-play-progress:before{z-index:1}.video-js .vjs-load-progress{background:#646464;background:rgba(255,255,255,.2)}.video-js .vjs-load-progress div{background:rgba(89,89,89,.1)}.video-js.vjs-no-flex .vjs-progress-control{width:auto}.video-js .vjs-progress-control .vjs-mouse-display{display:none;position:absolute;width:1px;height:100%;background-color:#000;z-index:1}.vjs-no-flex .vjs-progress-control .vjs-mouse-display{z-index:0}.video-js .vjs-progress-control:hover .vjs-mouse-display{display:block}.video-js.vjs-user-inactive .vjs-progress-control .vjs-mouse-display,.video-js.vjs-user-inactive .vjs-progress-control .vjs-mouse-display:after{visibility:hidden;opacity:0;-webkit-transition:visibility 1s,opacity 1s;-moz-transition:visibility 1s,opacity 1s;-o-transition:visibility 1s,opacity 1s;transition:visibility 1s,opacity 1s}.video-js.vjs-user-inactive.vjs-no-flex .vjs-progress-control .vjs-mouse-display,.video-js.vjs-user-inactive.vjs-no-flex .vjs-progress-control .vjs-mouse-display:after{display:none}.video-js .vjs-progress-control .vjs-mouse-display:after{color:#fff;background-color:#000;background-color:rgba(0,0,0,.8)}.video-js .vjs-slider{outline:0;position:relative;cursor:pointer;padding:0;margin:0 .45em;background-color:#595959;background-color:rgba(89,89,89,.9)}.video-js .vjs-slider:focus{text-shadow:0 0 1em #fff;-webkit-box-shadow:0 0 1em #fff;-moz-box-shadow:0 0 1em #fff;box-shadow:0 0 1em #fff}.video-js .vjs-mute-control,.video-js .vjs-volume-menu-button{cursor:pointer;-webkit-box-flex:none;-moz-box-flex:none;-webkit-flex:none;-ms-flex:none;flex:none}.video-js .vjs-volume-control{width:5em;-webkit-box-flex:none;-moz-box-flex:none;-webkit-flex:none;-ms-flex:none;flex:none;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.video-js .vjs-volume-bar{margin:1.35em}.vjs-volume-bar.vjs-slider-horizontal{width:5em;height:.3em}.vjs-volume-bar.vjs-slider-vertical{width:.3em;height:5em}.video-js .vjs-volume-level{position:absolute;bottom:0;left:0;background-color:#fff}.video-js .vjs-volume-level:before{position:absolute;font-size:.9em}.vjs-slider-vertical .vjs-volume-level{width:.3em}.vjs-slider-vertical .vjs-volume-level:before{top:-.5em;left:-.3em}.vjs-slider-horizontal .vjs-volume-level{height:.3em}.vjs-slider-horizontal .vjs-volume-level:before{top:-.3em;right:-.5em}.vjs-volume-bar.vjs-slider-vertical .vjs-volume-level{height:100%}.vjs-volume-bar.vjs-slider-horizontal .vjs-volume-level{width:100%}.vjs-menu-button-popup.vjs-volume-menu-button .vjs-menu{display:block;width:0;height:0;border-top-color:transparent}.vjs-menu-button-popup.vjs-volume-menu-button-vertical .vjs-menu{left:.5em}.vjs-menu-button-popup.vjs-volume-menu-button-horizontal .vjs-menu{left:-2em}.vjs-menu-button-popup.vjs-volume-menu-button .vjs-menu-content{height:0;width:0;overflow-x:hidden;overflow-y:hidden}.vjs-volume-menu-button-vertical .vjs-lock-showing .vjs-menu-content,.vjs-volume-menu-button-vertical:hover .vjs-menu-content{height:8em;width:2.9em}.vjs-volume-menu-button-horizontal .vjs-lock-showing .vjs-menu-content,.vjs-volume-menu-button-horizontal:hover .vjs-menu-content{height:2.9em;width:8em}.vjs-error .vjs-error-display,.vjs-poster{top:0;height:100%;left:0;position:absolute}.vjs-poster{display:inline-block;vertical-align:middle;background-repeat:no-repeat;background-position:50% 50%;background-size:contain;cursor:pointer;margin:0;padding:0;right:0;bottom:0}.vjs-poster img{display:block;vertical-align:middle;margin:0 auto;max-height:100%;padding:0;width:100%}.vjs-has-started .vjs-poster{display:none}.vjs-audio.vjs-has-started .vjs-poster{display:block}.vjs-controls-disabled .vjs-poster,.vjs-using-native-controls .vjs-poster{display:none}.video-js .vjs-live-control{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:flex-start;-webkit-align-items:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-box-flex:auto;-moz-box-flex:auto;-webkit-flex:auto;-ms-flex:auto;flex:auto;font-size:1em;line-height:3em}.vjs-no-flex .vjs-live-control{display:table-cell;width:auto;text-align:left}.video-js .vjs-current-time,.video-js .vjs-duration,.vjs-live .vjs-time-control,.vjs-live .vjs-time-divider,.vjs-no-flex .vjs-current-time,.vjs-no-flex .vjs-duration{display:none}.video-js .vjs-time-control{-webkit-box-flex:none;-moz-box-flex:none;-webkit-flex:none;-ms-flex:none;flex:none;font-size:1em;line-height:3em}.vjs-time-divider{display:none;line-height:3em}.video-js .vjs-play-control{cursor:pointer;-webkit-box-flex:none;-moz-box-flex:none;-webkit-flex:none;-ms-flex:none;flex:none}.vjs-text-track-display{position:absolute;bottom:3em;left:0;right:0;top:0;pointer-events:none}.video-js.vjs-user-inactive.vjs-playing .vjs-text-track-display{bottom:1em}.video-js .vjs-text-track{font-size:1.4em;text-align:center;margin-bottom:.1em;background-color:#000;background-color:rgba(0,0,0,.5)}.vjs-subtitles{color:#fff}.vjs-captions{color:#fc6}.vjs-tt-cue{display:block}.video-js .vjs-fullscreen-control{width:3.8em;cursor:pointer;-webkit-box-flex:none;-moz-box-flex:none;-webkit-flex:none;-ms-flex:none;flex:none}.vjs-playback-rate .vjs-playback-rate-value{font-size:1.5em;line-height:2;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center}.vjs-playback-rate .vjs-menu{width:4em;left:0}.vjs-error-display{display:none}.vjs-error .vjs-error-display{display:block;width:100%}.vjs-error .vjs-error-display:before{content:'X';font-size:4em;color:#595959;line-height:1;text-shadow:.05em .05em .1em #000;text-align:center;vertical-align:middle;position:absolute;left:0;top:50%;margin-top:-.5em;width:100%}.vjs-error-display div{position:absolute;bottom:1em;right:0;left:0;font-size:1.4em;text-align:center;padding:3px;background-color:#000;background-color:rgba(0,0,0,.5)}.vjs-error-display a,.vjs-error-display a:visited{color:#F4A460}.vjs-loading-spinner{display:none;position:absolute;top:50%;left:50%;margin:-25px 0 0 -25px;opacity:.85;border:6px solid rgba(113,119,129,.75);box-sizing:border-box;background-clip:padding-box;width:50px;height:50px;border-radius:25px}.vjs-seeking .vjs-loading-spinner,.vjs-waiting .vjs-loading-spinner{display:block}.vjs-loading-spinner:after,.vjs-loading-spinner:before{content:\"\";position:absolute;margin:-6px;box-sizing:inherit;width:inherit;height:inherit;border-radius:inherit;opacity:1;border:inherit;border-color:#fff transparent transparent}.vjs-seeking .vjs-loading-spinner:after,.vjs-seeking .vjs-loading-spinner:before,.vjs-waiting .vjs-loading-spinner:after,.vjs-waiting .vjs-loading-spinner:before{-webkit-animation:vjs-spinner-spin 1.1s cubic-bezier(.6,.2,0,.8) infinite,vjs-spinner-fade 1.1s linear infinite;animation:vjs-spinner-spin 1.1s cubic-bezier(.6,.2,0,.8) infinite,vjs-spinner-fade 1.1s linear infinite}.vjs-seeking .vjs-loading-spinner:before,.vjs-waiting .vjs-loading-spinner:before{border-top-color:#fff}.vjs-seeking .vjs-loading-spinner:after,.vjs-waiting .vjs-loading-spinner:after{border-top-color:#fff;-webkit-animation-delay:.44s;animation-delay:.44s}@keyframes vjs-spinner-spin{100%{transform:rotate(360deg)}}@-webkit-keyframes vjs-spinner-spin{100%{-webkit-transform:rotate(360deg)}}@keyframes vjs-spinner-fade{0%,100%,20%,60%{border-top-color:#a6aab0}35%{border-top-color:#fff}}@-webkit-keyframes vjs-spinner-fade{0%,100%,20%,60%{border-top-color:#a6aab0}35%{border-top-color:#fff}}.vjs-chapters-button .vjs-menu{left:-10em;width:0}.vjs-chapters-button .vjs-menu ul{width:24em}.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-custom-control-spacer{-webkit-box-flex:auto;-moz-box-flex:auto;-webkit-flex:auto;-ms-flex:auto;flex:auto}.video-js.vjs-layout-tiny:not(.vjs-fullscreen).vjs-no-flex .vjs-custom-control-spacer{width:auto}.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-captions-button,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-chapters-button,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-current-time,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-duration,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-mute-control,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-playback-rate,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-remaining-time,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-subtitles-button,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-time-divider,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-volume-control,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-captions-button,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-chapters-button,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-current-time,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-duration,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-mute-control,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-playback-rate,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-progress-control,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-remaining-time,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-subtitles-button,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-time-divider,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-volume-control,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-volume-menu-button,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-captions-button,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-chapters-button,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-current-time,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-duration,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-fullscreen-control,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-mute-control,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-playback-rate,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-remaining-time,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-subtitles-button,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-time-divider,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-volume-button,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-volume-control{display:none}.vjs-caption-settings{position:relative;top:1em;background-color:#000;background-color:rgba(0,0,0,.75);color:#fff;margin:0 auto;padding:.5em;height:15em;font-size:9pt;width:40em}.vjs-caption-settings .vjs-tracksettings{top:0;bottom:2em;left:0;right:0;position:absolute;overflow:auto}.vjs-caption-settings .vjs-tracksettings-colors,.vjs-caption-settings .vjs-tracksettings-font{float:left}.vjs-caption-settings .vjs-tracksettings-colors:after,.vjs-caption-settings .vjs-tracksettings-controls:after,.vjs-caption-settings .vjs-tracksettings-font:after{clear:both}.vjs-caption-settings .vjs-tracksettings-controls{position:absolute;bottom:1em;right:1em}.vjs-caption-settings .vjs-tracksetting{margin:5px;padding:3px;min-height:40px}.vjs-caption-settings .vjs-tracksetting label{display:block;width:75pt;margin-bottom:5px}.vjs-caption-settings .vjs-tracksetting span{display:inline;margin-left:5px}.vjs-caption-settings .vjs-tracksetting>div{margin-bottom:5px;min-height:20px}.vjs-caption-settings .vjs-tracksetting>div:last-child{margin-bottom:0;padding-bottom:0;min-height:0}.vjs-caption-settings label>input{margin-right:10px}.vjs-caption-settings input[type=button]{width:40px;height:40px}"), +function(t,e){var o=t.createElement("style");if(t.getElementsByTagName("head")[0].appendChild(o),o.styleSheet)o.styleSheet.disabled||(o.styleSheet.cssText=e);else try{o.innerHTML=e}catch(n){o.innerText=e}}(document,'@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,300);.vjs-afterglow-skin.vjs-has-started .vjs-control-bar,.vjs-afterglow-skin.vjs-has-started .vjs-top-control-bar{-webkit-transition:visibility .1s,opacity .1s;-moz-transition:visibility .1s,opacity .1s;-o-transition:visibility .1s,opacity .1s}@font-face{font-family:afterglow-icon;src:url(data:font/truetype;charset=utf-8;base64,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) format(\'truetype\');font-weight:400;font-style:normal}.vjs-afterglow-skin{overflow:hidden;color:#fff}.vjs-afterglow-skin :focus,.vjs-afterglow-skin:focus{outline:0}.vjs-afterglow-skin video{background-color:#000}.vjs-afterglow-skin .vjs-slider{outline:0;position:relative;cursor:pointer;padding:0;border-radius:10px;-moz-border-radius:10px;-webkit-border-radius:10px;margin:0 30px;background-color:#fff;background-color:rgba(255,255,255,.1)}@media (max-width:768px){.vjs-afterglow-skin .vjs-slider{margin:0 20px}}@media (max-width:512px){.vjs-afterglow-skin .vjs-slider{margin:0 9pt}}.vjs-afterglow-skin .vjs-slider:hover{margin:0 30px}@media (max-width:768px){.vjs-afterglow-skin .vjs-slider:hover{margin:0 20px}}.vjs-afterglow-skin .vjs-slider:focus{-webkit-box-shadow:0 0 2em #fff;-moz-box-shadow:0 0 2em #fff;box-shadow:0 0 2em #fff}.vjs-afterglow-skin .vjs-slider-handle{position:absolute;left:0;top:0;display:none}.vjs-afterglow-skin .vjs-play-progress:before{display:none!important;height:0;width:0;font-size:.9em}.vjs-afterglow-skin .vjs-progress-control .vjs-mouse-display,.vjs-afterglow-skin .vjs-progress-control:hover .vjs-mouse-display,.vjs-afterglow-skin .vjs-progress-control:hover .vjs-play-progress:after{display:none}.vjs-afterglow-skin .vjs-control-bar{display:none;position:absolute;bottom:1pc;left:0;right:0;height:33px;font-family:\'Open Sans\';color:rgba(255,255,255,.9);background-color:transparent}@media (max-width:768px){.vjs-afterglow-skin .vjs-control-bar{bottom:7px}}@media (max-width:512px){.vjs-afterglow-skin .vjs-slider:hover{margin:0 9pt}.vjs-afterglow-skin .vjs-control-bar{bottom:0}}.vjs-afterglow-skin .vjs-control-bar .div{opacity:.9}.vjs-afterglow-skin .vjs-control-bar .div:hover{opacity:1}.vjs-afterglow-skin.vjs-has-started .vjs-control-bar{display:block;visibility:visible;opacity:1;transition:visibility .1s,opacity .1s}.vjs-afterglow-skin.vjs-has-started.vjs-ended .vjs-control-bar,.vjs-afterglow-skin.vjs-has-started.vjs-ended .vjs-top-control-bar{display:block;visibility:hidden;opacity:0}.vjs-afterglow-skin.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{display:block;visibility:hidden;opacity:0;-webkit-transition:visibility 1s,opacity 1s;-moz-transition:visibility 1s,opacity 1s;-o-transition:visibility 1s,opacity 1s;transition:visibility 1s,opacity 1s}.vjs-afterglow-skin.vjs-controls-disabled .vjs-control-bar,.vjs-afterglow-skin.vjs-error .vjs-control-bar,.vjs-afterglow-skin.vjs-error .vjs-top-control-bar,.vjs-afterglow-skin.vjs-using-native-controls .vjs-control-bar{display:none}.vjs-afterglow-skin.vjs-audio.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{opacity:1;visibility:visible}@media \\0screen{.vjs-afterglow-skin.vjs-user-inactive.vjs-playing .vjs-control-bar :before{content:""}}.vjs-afterglow-skin .vjs-control{outline:0;position:relative;float:left;text-align:center;margin:0;padding:0;height:40px;width:auto}@media (max-width:768px){.vjs-afterglow-skin .vjs-control{height:30px}}.vjs-afterglow-skin .vjs-control:before{font-family:afterglow-icon;font-size:17px;line-height:18px;padding-top:10px;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;opacity:.9;text-shadow:0 0 0 rgba(255,255,255,0)}@media (max-width:768px){.vjs-afterglow-skin .vjs-control:before{font-size:13px;line-height:13px;padding-top:9px}}@media (max-width:512px){.vjs-afterglow-skin .vjs-control:before{font-size:11px;line-height:11px;padding-top:6px}}.vjs-afterglow-skin .vjs-control:focus:before,.vjs-afterglow-skin .vjs-control:hover:before{text-shadow:0 0 5px rgba(255,255,255,.6);opacity:1}.vjs-afterglow-skin .vjs-control-text{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.vjs-afterglow-skin .vjs-play-control{width:50px;cursor:pointer;position:absolute;left:50%;margin-left:-25px}@media (max-width:512px){.vjs-afterglow-skin .vjs-play-control{position:relative;left:auto;margin-left:0;width:25px}}.vjs-afterglow-skin .vjs-play-control:before{content:"\\e602";margin-left:1px;font-size:22px}@media (max-width:768px){.vjs-afterglow-skin .vjs-play-control:before{font-size:20px;line-height:22px;top:-5px}}@media (max-width:512px){.vjs-afterglow-skin .vjs-play-control:before{font-size:10px;line-height:10px;top:0}}.vjs-afterglow-skin.vjs-playing .vjs-play-control:before{content:"\\e60a"}.vjs-afterglow-skin .vjs-playback-rate .vjs-playback-rate-value{font-size:1.5em;line-height:2;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;text-shadow:1px 1px 1px rgba(0,0,0,.5)}.vjs-afterglow-skin .vjs-playback-rate .vjs-playback-rate-value.vjs-menu-button .vjs-menu .vjs-menu-content{width:30px;left:15px;list-style:none}.vjs-afterglow-skin .vjs-mute-control,.vjs-afterglow-skin .vjs-volume-menu-button{cursor:pointer;float:right;width:auto;padding-left:2pc;margin-left:40px}.vjs-afterglow-skin .vjs-mute-control:before,.vjs-afterglow-skin .vjs-volume-menu-button:before{content:"\\e605";cursor:pointer}.vjs-afterglow-skin .vjs-mute-control.vjs-vol-0:before,.vjs-afterglow-skin .vjs-volume-menu-button.vjs-vol-0:before{content:"\\e603"}.vjs-afterglow-skin .vjs-mute-control.vjs-vol-1:before,.vjs-afterglow-skin .vjs-volume-menu-button.vjs-vol-1:before{content:"\\e606"}.vjs-afterglow-skin .vjs-mute-control.vjs-vol-2:before,.vjs-afterglow-skin .vjs-volume-menu-button.vjs-vol-2:before{content:"\\e607"}@media (max-width:768px){.vjs-afterglow-skin .vjs-mute-control,.vjs-afterglow-skin .vjs-volume-menu-button{margin-left:29px}}@media (max-width:512px){.vjs-afterglow-skin .vjs-mute-control,.vjs-afterglow-skin .vjs-volume-menu-button{height:26px;padding-left:27px;margin-left:18px}}.vjs-afterglow-skin .vjs-volume-control{float:right}.vjs-afterglow-skin .vjs-volume-level{position:absolute;top:0;left:0;height:4px;width:100%;background-color:#fff;border-radius:4px}.vjs-afterglow-skin .vjs-volume-menu-button .vjs-menu,.vjs-afterglow-skin .vjs-volume-menu-button.vjs-volume-menu-button-horizontal .vjs-menu{display:block;width:0;height:10px;border-top-color:transparent;position:relative;padding-left:0;top:0;padding-top:17px;padding-bottom:17px;left:0;-webkit-transition:all .2s;-moz-transition:all .2s;-o-transition:all .2s;transition:all .2s}.vjs-afterglow-skin .vjs-volume-menu-button .vjs-menu .vjs-menu-content,.vjs-afterglow-skin .vjs-volume-menu-button.vjs-volume-menu-button-horizontal .vjs-menu .vjs-menu-content{height:10px;width:0;float:right;left:0;box-shadow:none;background:0 0;position:relative;bottom:auto;overflow:hidden;-webkit-transition:all .2s;-moz-transition:all .2s;-o-transition:all .2s;transition:all .2s}.vjs-afterglow-skin .vjs-volume-menu-button.vjs-volume-menu-button-horizontal:hover .vjs-menu,.vjs-afterglow-skin .vjs-volume-menu-button:hover .vjs-menu{width:74px}@media (max-width:768px){.vjs-afterglow-skin .vjs-volume-menu-button .vjs-menu,.vjs-afterglow-skin .vjs-volume-menu-button.vjs-volume-menu-button-horizontal .vjs-menu{left:0;padding-top:13px;padding-bottom:9pt}.vjs-afterglow-skin .vjs-volume-menu-button.vjs-volume-menu-button-horizontal:hover .vjs-menu,.vjs-afterglow-skin .vjs-volume-menu-button:hover .vjs-menu{padding-left:5px;padding-right:5px;width:50px}}@media (max-width:500px){.vjs-afterglow-skin .vjs-volume-menu-button.vjs-volume-menu-button-horizontal:hover .vjs-menu,.vjs-afterglow-skin .vjs-volume-menu-button:hover .vjs-menu{display:none}.vjs-afterglow-skin .vjs-volume-menu-button.vjs-volume-menu-button-horizontal:hover .vjs-menu.vjs-lock-showing,.vjs-afterglow-skin .vjs-volume-menu-button:hover .vjs-menu.vjs-lock-showing{display:none!important}.vjs-afterglow-skin .vjs-volume-menu-button.vjs-volume-menu-button-horizontal:hover .vjs-menu .vjs-menu-content,.vjs-afterglow-skin .vjs-volume-menu-button:hover .vjs-menu .vjs-menu-content{display:none}}.vjs-afterglow-skin .vjs-volume-bar .vjs-volume-handle:before,.vjs-afterglow-skin .vjs-volume-bar .vjs-volume-level:before,.vjs-afterglow-skin .vjs-volume-bar.vjs-slider-horizontal .vjs-volume-handle:before,.vjs-afterglow-skin .vjs-volume-bar.vjs-slider-horizontal .vjs-volume-level:before{display:none}.vjs-afterglow-skin .vjs-volume-menu-button.vjs-volume-menu-button-horizontal:hover .vjs-menu .vjs-menu-content,.vjs-afterglow-skin .vjs-volume-menu-button:hover .vjs-menu .vjs-menu-content{height:10px;width:61px;bottom:0;left:0;float:none;box-shadow:none;-webkit-transition:all .2s;-moz-transition:all .2s;-o-transition:all .2s;transition:all .2s}@media (max-width:768px){.vjs-afterglow-skin .vjs-volume-menu-button.vjs-volume-menu-button-horizontal:hover .vjs-menu .vjs-menu-content,.vjs-afterglow-skin .vjs-volume-menu-button:hover .vjs-menu .vjs-menu-content{width:41px;left:-5px}.vjs-afterglow-skin .vjs-volume-bar,.vjs-afterglow-skin .vjs-volume-bar.vjs-slider-horizontal{width:0}}.vjs-afterglow-skin .vjs-volume-bar,.vjs-afterglow-skin .vjs-volume-bar.vjs-slider-horizontal{width:0;left:1px;height:5px;margin:0;background-color:rgba(255,255,255,.3);border-radius:5px;-webkit-transition:all .2s;-moz-transition:all .2s;-o-transition:all .2s;transition:all .2s}.vjs-afterglow-skin .vjs-volume-bar .vjs-volume-handle,.vjs-afterglow-skin .vjs-volume-bar.vjs-slider-horizontal .vjs-volume-handle{width:0;height:0;left:100%}.vjs-afterglow-skin .vjs-volume-bar .vjs-volume-level,.vjs-afterglow-skin .vjs-volume-bar.vjs-slider-horizontal .vjs-volume-level{height:4px;border-radius:4px}.vjs-afterglow-skin .vjs-volume-menu-button.vjs-volume-menu-button-horizontal:hover .vjs-menu .vjs-volume-bar.vjs-slider-horizontal,.vjs-afterglow-skin .vjs-volume-menu-button:hover .vjs-menu .vjs-volume-bar.vjs-slider-horizontal{width:60px}@media (max-width:768px){.vjs-afterglow-skin .vjs-volume-menu-button.vjs-volume-menu-button-horizontal:hover .vjs-menu .vjs-volume-bar.vjs-slider-horizontal,.vjs-afterglow-skin .vjs-volume-menu-button:hover .vjs-menu .vjs-volume-bar.vjs-slider-horizontal{width:40px}}.vjs-afterglow-skin .vjs-menu-button-popup .vjs-menu{position:relative;float:right}.vjs-afterglow-skin .vjs-progress-control{position:absolute;left:0;right:0;width:auto;height:5px;top:-9px;-webkit-transition:all .3s;-moz-transition:all .3s;-o-transition:all .3s;transition:all .3s}.vjs-afterglow-skin .vjs-progress-control:hover{top:-11px;height:9px;-webkit-transition:all 0s;-moz-transition:all 0s;-o-transition:all 0s;transition:all 0s}@media (max-width:768px){.vjs-afterglow-skin .vjs-progress-control:hover{top:-9px;height:7px}}.vjs-afterglow-skin:hover .vjs-progress-control{-webkit-transition:all .2s;-moz-transition:all .2s;-o-transition:all .2s;transition:all .2s}.vjs-afterglow-skin .vjs-progress-holder{height:100%}.vjs-afterglow-skin .vjs-progress-holder .vjs-load-progress,.vjs-afterglow-skin .vjs-progress-holder .vjs-play-progress{position:absolute;display:block;height:100%;margin:0;padding:0;width:0;left:0;top:0;border-radius:10px;-moz-border-radius:10px;-webkit-border-radius:10px}.vjs-afterglow-skin .vjs-progress-holder .vjs-load-progress div,.vjs-afterglow-skin.vjs-live .vjs-progress-control,.vjs-afterglow-skin.vjs-live .vjs-time-controls,.vjs-afterglow-skin.vjs-live .vjs-time-divider{display:none}.vjs-afterglow-skin .vjs-play-progress{background-color:#fff;box-shadow:0 0 5px rgba(255,255,255,.6);-moz-box-shadow:0 0 5px rgba(255,255,255,.6);-webkit-box-shadow:0 0 5px rgba(255,255,255,.6)}.vjs-afterglow-skin .vjs-load-progress{background:#646464;background:rgba(255,255,255,.2)}.vjs-afterglow-skin .vjs-load-progress div{background:#787878;background:rgba(255,255,255,.2)}.vjs-afterglow-skin .vjs-seek-handle{width:10px;height:100%}.vjs-afterglow-skin.vjs-live .vjs-live-display{display:block}.vjs-afterglow-skin .vjs-live-display{display:none;font-size:1em;line-height:3em}.vjs-afterglow-skin .vjs-time-controls{font-size:22px}.vjs-afterglow-skin .vjs-current-time,.vjs-afterglow-skin .vjs-duration{height:23px;position:relative;float:left;margin-top:7px;padding:0;font-weight:100;font-size:21px;line-height:22px;display:block;width:auto}@media (max-width:768px){.vjs-afterglow-skin .vjs-current-time,.vjs-afterglow-skin .vjs-duration{font-size:17px;line-height:17px}}.vjs-afterglow-skin.vjs-no-flex .vjs-current-time,.vjs-afterglow-skin.vjs-no-flex .vjs-duration{display:block}.vjs-afterglow-skin .vjs-current-time{margin-left:30px}@media (max-width:768px){.vjs-afterglow-skin .vjs-current-time{margin-left:20px}}.vjs-afterglow-skin .vjs-duration{float:right;text-align:right;margin-right:30px;padding-left:10px}@media (max-width:768px){.vjs-afterglow-skin .vjs-duration{margin-right:20px;padding-left:6px}}@media (max-width:512px){.vjs-afterglow-skin .vjs-current-time,.vjs-afterglow-skin .vjs-duration{font-size:14px;line-height:14px;margin-top:5px}.vjs-afterglow-skin .vjs-current-time{margin-left:9pt}.vjs-afterglow-skin .vjs-duration{margin-right:9pt;padding-left:2px}}.vjs-afterglow-skin .vjs-remaining-time{display:none;float:right}.vjs-afterglow-skin .vjs-time-divider{float:left;line-height:3em}.vjs-afterglow-skin .vjs-top-control-bar{width:auto;height:auto;text-align:right;position:absolute;right:26px;top:13px;display:none;opacity:0}@media (max-width:768px){.vjs-afterglow-skin .vjs-top-control-bar{top:10px;right:18px}}@media (max-width:512px){.vjs-afterglow-skin .vjs-top-control-bar{top:6px;right:10px}}.vjs-afterglow-skin .vjs-top-control-bar .vjs-control{width:20px;height:30px;text-align:right;line-height:13px;font-size:13px;cursor:pointer;opacity:.9;margin-left:20px}@media (max-width:768px){.vjs-afterglow-skin .vjs-top-control-bar .vjs-control{font-size:9px;line-height:9px;margin-left:5px}}.vjs-afterglow-skin .vjs-top-control-bar .vjs-control:hover{opacity:1}.vjs-afterglow-skin .vjs-top-control-bar .vjs-fullscreen-control:before{content:"\\e608"}.vjs-afterglow-skin .vjs-top-control-bar .vjs-lightbox-close-button:before{content:"\\e601"}.vjs-afterglow-skin.vjs-fullscreen .vjs-top-control-bar .vjs-fullscreen-control:before{content:"\\e609"}.vjs-afterglow-skin.vjs-has-started .vjs-top-control-bar{display:block;visibility:visible;opacity:1;transition:visibility .1s,opacity .1s}.vjs-afterglow-skin.vjs-has-started .vjs-top-control-bar .vjs-control{opacity:.9;-webkit-transition:visibility .1s,opacity .1s;-moz-transition:visibility .1s,opacity .1s;-o-transition:visibility .1s,opacity .1s;transition:visibility .1s,opacity .1s}.vjs-afterglow-skin.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-top-control-bar{display:block;visibility:hidden;opacity:0;-webkit-transition:visibility 1s,opacity 1s;-moz-transition:visibility 1s,opacity 1s;-o-transition:visibility 1s,opacity 1s;transition:visibility 1s,opacity 1s}.vjs-afterglow-skin.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-top-control-bar .vjs-control{opacity:.9}.vjs-afterglow-skin .vjs-big-play-button{display:block;z-index:2;position:absolute;width:5pc;height:5pc;text-align:center;vertical-align:middle;cursor:pointer;top:50%;left:50%;margin-left:-40px;margin-top:-40px;border:none;background:0 0;visibility:visible;opacity:1;-webkit-transition:all .4s;-moz-transition:all .4s;-o-transition:all .4s;transition:all .4s}.vjs-afterglow-skin.vjs-controls-disabled .vjs-big-play-button{display:none}.vjs-afterglow-skin.vjs-has-started .vjs-big-play-button{display:none;opacity:0}.vjs-afterglow-skin.vjs-has-started.vjs-ended .vjs-big-play-button{display:block;visibility:visible;opacity:1}.vjs-afterglow-skin.vjs-using-native-controls .vjs-big-play-button{display:block}.vjs-afterglow-skin .vjs-big-play-button:focus,.vjs-afterglow-skin:hover .vjs-big-play-button{outline:0;border:none;background:0 0;-webkit-transition:all 0s;-moz-transition:all 0s;-o-transition:all 0s;transition:all 0s}.vjs-afterglow-skin.vjs-seeking .vjs-big-play-button,.vjs-afterglow-skin.vjs-waiting .vjs-big-play-button{display:none;-webkit-animation:spin 1.5s infinite linear;-moz-animation:spin 1.5s infinite linear;-o-animation:spin 1.5s infinite linear;animation:spin 1.5s infinite linear}.vjs-afterglow-skin .vjs-big-play-button:before{content:"\\e602";font-family:afterglow-icon;line-height:5pc;font-size:5pc;text-shadow:0 0 5px #000;text-shadow:0 0 5px rgba(0,0,0,.6);text-align:center;position:absolute;left:0;width:100%;height:100%}@media (max-width:768px){.vjs-afterglow-skin .vjs-big-play-button:before{font-size:60px}}@media (max-width:512px){.vjs-afterglow-skin .vjs-big-play-button:before{font-size:40px}}.vjs-afterglow-skin .vjs-error-display,.vjs-afterglow-skin.vjs-error .vjs-big-play-button{display:none}.vjs-afterglow-skin.vjs-error .vjs-error-display{display:block;position:absolute;left:0;top:0;width:100%;height:100%}.vjs-afterglow-skin .vjs-error .vjs-error-display:before{content:\'\'}.vjs-afterglow-skin .vjs-error-display div{position:absolute;bottom:40px;right:0;left:0;font-family:\'Open Sans\',Helvetica light,Helvetica,sans-serif;font-size:1pc;text-align:center;padding:3px;background:#000;background:rgba(0,0,0,.5)}.vjs-afterglow-skin .vjs-error-display a,.vjs-afterglow-skin .vjs-error-display a:visited{color:#F4A460}.vjs-afterglow-skin .vjs-loading-spinner{position:absolute;top:50%;left:50%;width:2pc;height:2pc;margin-left:-1pc;margin-top:-1pc;clear:both;border:3px solid rgba(255,255,255,.1);border-top:3px rgba(255,255,255,.95) solid;border-radius:50%;-webkit-animation:spCircRot 1.6s infinite linear;animation:spCircRot 1.6s infinite linear}.vjs-afterglow-skin .vjs-loading-spinner:after,.vjs-afterglow-skin .vjs-loading-spinner:before{content:none;border:0}.vjs-afterglow-skin .vjs-seeking .vjs-loading-spinner,.vjs-afterglow-skin .vjs-waiting .vjs-loading-spinner{display:block;-webkit-animation:spin 1.5s infinite linear;-moz-animation:spin 1.5s infinite linear;-o-animation:spin 1.5s infinite linear;animation:spin 1.5s infinite linear}.vjs-afterglow-skin .vjs-error .vjs-loading-spinner{display:none;-webkit-animation:none;-moz-animation:none;-o-animation:none;animation:none}@-moz-keyframes spin{0%{-moz-transform:rotate(0)}100%{-moz-transform:rotate(359deg)}}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0)}100%{-webkit-transform:rotate(359deg)}}@-o-keyframes spin{0%{-o-transform:rotate(0)}100%{-o-transform:rotate(359deg)}}@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(359deg)}}.vjs-afterglow-skin .vjs-menu-button{float:right;cursor:pointer}.vjs-afterglow-skin .vjs-menu-button.vjs-menu-button-inline{width:auto}.vjs-afterglow-skin .vjs-menu-button.vjs-menu-button-inline:before{width:30px}.vjs-afterglow-skin .vjs-menu{display:none;position:relative;bottom:auto;left:auto;width:0;height:0;margin-bottom:0}.vjs-afterglow-skin .vjs-menu-button .vjs-menu .vjs-menu-content{display:block;padding:0 0 70px;margin:0;position:absolute;bottom:-50px;width:75pt;max-height:none;overflow:auto;left:28px;font-family:\'Open Sans\',Helvetica Light,Helvetica,sans-serif;background:0 0}@media (max-width:768px){.vjs-afterglow-skin .vjs-menu-button .vjs-menu .vjs-menu-content{left:24px;bottom:-40px;padding-bottom:60px}}@media (max-width:512px){.vjs-afterglow-skin .vjs-menu-button .vjs-menu .vjs-menu-content{left:23px;bottom:-30px;padding-bottom:50px}}.vjs-afterglow-skin .vjs-control-content .vjs-menu.vjs-lock-showing,.vjs-afterglow-skin .vjs-menu-button:hover .vjs-control-content .vjs-menu{display:block}.vjs-afterglow-skin.vjs-scrubbing .vjs-menu-button:hover .vjs-control-content .vjs-menu{display:none}.vjs-afterglow-skin .vjs-menu-button ul li{list-style:none;margin:0;padding:0 5px;line-height:1pc;font-size:14px;text-align:center;text-transform:lowercase;opacity:.7;text-shadow:0 0 0 rgba(255,255,255,0)}.vjs-afterglow-skin .vjs-menu-button ul li.vjs-selected{text-shadow:0 0 5px rgba(255,255,255,.6);opacity:1;background:0 0}.vjs-afterglow-skin .vjs-menu-button ul li.vjs-selected:focus,.vjs-afterglow-skin .vjs-menu-button ul li.vjs-selected:hover,.vjs-afterglow-skin .vjs-menu-button ul li:focus,.vjs-afterglow-skin .vjs-menu-button ul li:hover{text-shadow:0 0 5px rgba(255,255,255,.6);opacity:1;background:0 0;color:#fff}.vjs-afterglow-skin .vjs-menu-button ul li.vjs-menu-title{text-align:center;text-transform:uppercase;font-size:1em;line-height:2em;padding:0;margin:0 0 .3em;font-weight:700;cursor:afterglow}.vjs-afterglow-skin .vjs-subtitles-button:before{content:"\\e60d"}.vjs-afterglow-skin .vjs-captions-button:before{content:"\\e600"}.vjs-afterglow-skin video::-webkit-media-text-track-container{bottom:40px;-webkit-transition:all .3s;-moz-transition:all .3s;-o-transition:all .3s;transition:all .3s}@media (max-width:768px){.vjs-afterglow-skin video::-webkit-media-text-track-container{bottom:20px}}.vjs-afterglow-skin video::-webkit-media-text-track-background{background-color:rgba(0,0,0,.5);border-radius:3px;padding:10px 14px}.vjs-afterglow-skin video::-webkit-media-text-track-display{color:#fff;font-family:Open Sans,Georgia;font-size:1pc;padding:5px 10px 8px}@media (max-width:768px){.vjs-afterglow-skin video::-webkit-media-text-track-display{font-size:14px}}@media (max-width:512px){.vjs-afterglow-skin video::-webkit-media-text-track-container{bottom:10px}.vjs-afterglow-skin video::-webkit-media-text-track-display{font-size:11px}}.vjs-afterglow-skin.vjs-user-active video::-webkit-media-text-track-container{bottom:70px}@media (max-width:768px){.vjs-afterglow-skin.vjs-user-active video::-webkit-media-text-track-container{bottom:40px}}.vjs-afterglow-skin .vjs-chapters-button.vjs-menu-button .vjs-menu .vjs-menu-content{width:24em;left:-12em}.vjs-afterglow-skin.vjs-responsive,.vjs-afterglow-skin.vjs-responsive video{width:100%;height:auto}.vjs-afterglow-skin .vjs-captions-button:focus .vjs-control-content:before,.vjs-afterglow-skin .vjs-captions-button:hover .vjs-control-content:before{-webkit-box-shadow:0 0 1em #fff;-moz-box-shadow:0 0 1em #fff;box-shadow:0 0 1em #fff}.vjs-afterglow-skin .vjs-tech:focus{outline:0}.vjs-afterglow-skin.vjs-responsive.vjs-has-started .vjs-tech{padding-top:0!important}.vjs-afterglow-skin.vjs-responsive.vjs-fullscreen video{height:100%}.vjs-afterglow-skin .vjs-ag-res-button{float:right;cursor:pointer;width:50px;font-family:afterglow-icon}@media (max-width:768px){.vjs-afterglow-skin .vjs-ag-res-button{width:30px;margin-left:-4px}}@media (max-width:512px){.vjs-afterglow-skin.vjs-user-active video::-webkit-media-text-track-container{bottom:30px}.vjs-afterglow-skin .vjs-ag-res-button{width:20px;margin-right:5px;margin-left:0}}.vjs-afterglow-skin .vjs-ag-res-button:before{font-family:afterglow-icon;content:"\\e60f"}.vjs-afterglow-skin .vjs-ag-res-button.vjs-ag-res-hd:before{content:"\\e60b";margin-left:.5px}.vjs-afterglow-skin.vjs-IE .vjs-ag-res-button{font-size:17px;line-height:18px;padding-top:10px}@media (max-width:768px){.vjs-afterglow-skin.vjs-IE .vjs-ag-res-button{font-size:9px;line-height:9px;margin-left:5px}}.vjs-afterglow-skin .vjs-poster{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";-moz-opacity:.8;-khtml-opacity:.8;opacity:.8;-webkit-transition:all .2s;-moz-transition:all .2s;-o-transition:all .2s;transition:all .2s}.vjs-afterglow-skin:hover .vjs-poster{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";-moz-opacity:1;-khtml-opacity:1;opacity:1}.vjs-afterglow-skin.vjs-youtube>div:first-child{position:absolute!important;margin:0;height:100%;top:0}.video-js,.vjs-caption-settings{position:relative;background-color:#000}.vjs-afterglow-skin.vjs-youtube iframe{display:block;visibility:hidden}.vjs-afterglow-skin.vjs-youtube.vjs-IE iframe{display:block;visibility:visible}.vjs-afterglow-skin.vjs-youtube .vjs-control-bar{right:5pc;width:auto;-webkit-transition:all .1s;-moz-transition:all .1s;-o-transition:all .1s;transition:all .1s;-webkit-transition-delay:.4s;-moz-transition-delay:.4s;-o-transition-delay:.4s;transition-delay:.4s}.vjs-afterglow-skin.vjs-youtube.vjs-has-started .vjs-control-bar{right:0;-webkit-transition:all .3s;-moz-transition:all .3s;-o-transition:all .3s;transition:all .3s;-webkit-transition-delay:.4s;-moz-transition-delay:.4s;-o-transition-delay:.4s;transition-delay:.4s}.vjs-afterglow-skin.vjs-youtube.vjs-has-started.vjs-ended .vjs-control-bar,.vjs-afterglow-skin.vjs-youtube.vjs-has-started.vjs-paused .vjs-control-bar{right:5pc;width:auto;-webkit-transition:all .1s;-moz-transition:all .1s;-o-transition:all .1s;transition:all .1s}.video-js.vjs-has-started .vjs-poster,.vjs-poster{-webkit-transition:all .2s;-moz-transition:all .2s;-o-transition:all .2s}.vjs-afterglow-skin.vjs-youtube.vjs-iOS .vjs-big-play-button,.vjs-afterglow-skin.vjs-youtube.vjs-iOS .vjs-poster,.vjs-afterglow-skin.vjs-youtube.vjs-using-native-controls .vjs-big-play-button,.vjs-afterglow-skin.vjs-youtube.vjs-using-native-controls .vjs-poster{display:none}.vjs-afterglow-skin.vjs-youtube.vjs-iOS iframe,.vjs-afterglow-skin.vjs-youtube.vjs-using-native-controls iframe{display:block}.vjs-afterglow-skin.vjs-youtube-ready iframe{display:none;visibility:visible}.vjs-afterglow-skin.vjs-youtube-ready.vjs-IE iframe,.vjs-afterglow-skin.vjs-youtube-ready.vjs-has-started iframe{display:block;visibility:visible}.video-js{padding:0;font-size:22px;vertical-align:middle;font-weight:400;font-style:normal;font-family:Arial,sans-serif;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.video-js:-moz-full-screen{position:absolute}.video-js:-webkit-full-screen{width:100%!important;height:100%!important}.video-js .vjs-tech,.vjs-poster{top:0;width:100%;position:absolute;left:0}.video-js .vjs-tech{height:100%}body.vjs-full-window{padding:0;margin:0;height:100%;overflow-y:auto}.video-js.vjs-fullscreen.vjs-user-inactive{cursor:none}.vjs-poster{background-repeat:no-repeat;background-position:50% 50%;background-size:contain;cursor:pointer;margin:0;padding:0;right:0;bottom:0;transition:all .2s}.vjs-poster img{display:block;margin:0 auto;max-height:100%;padding:0}.video-js.vjs-has-started .vjs-poster{display:none;visibility:hidden;opacity:0;transition:all .2s}.video-js.vjs-has-started.vjs-ended .vjs-poster{display:block;visibility:visible;opacity:1;-webkit-transition:all .2s;-moz-transition:all .2s;-o-transition:all .2s;transition:all .2s}.video-js.vjs-audio.vjs-has-started .vjs-poster{display:block}.video-js.vjs-controls-disabled .vjs-poster{display:none}.video-js.vjs-using-native-controls .vjs-poster{display:block}.video-js .vjs-text-track-display{position:absolute;bottom:50px;pointer-events:none}.video-js.vjs-IE .vjs-text-track-display{display:none}.vjs-caption-settings{top:1em;opacity:.75;color:#FFF;margin:0 auto;padding:.5em;height:15em;font-family:Arial,Helvetica,sans-serif;font-size:9pt;width:40em}.vjs-caption-settings .vjs-tracksettings{top:0;bottom:2em;left:0;right:0;position:absolute;overflow:auto}.vjs-caption-settings .vjs-tracksettings-colors,.vjs-caption-settings .vjs-tracksettings-font{float:left}.vjs-caption-settings .vjs-tracksettings-colors:after,.vjs-caption-settings .vjs-tracksettings-controls:after,.vjs-caption-settings .vjs-tracksettings-font:after{clear:both}.vjs-caption-settings .vjs-tracksettings-controls{position:absolute;bottom:1em;right:1em}.vjs-caption-settings .vjs-tracksetting{margin:5px;padding:3px;min-height:40px}.vjs-caption-settings .vjs-tracksetting label{display:block;width:75pt;margin-bottom:5px}.vjs-caption-settings .vjs-tracksetting span{display:inline;margin-left:5px}.vjs-caption-settings .vjs-tracksetting>div{margin-bottom:5px;min-height:20px}.vjs-caption-settings .vjs-tracksetting>div:last-child{margin-bottom:0;padding-bottom:0;min-height:0}.vjs-caption-settings label>input{margin-right:10px}.vjs-caption-settings input[type=button]{width:40px;height:40px}.vjs-hidden{display:none!important}.vjs-lock-showing{display:block!important;opacity:1;visibility:visible}.vjs-no-js{padding:2em;color:#ccc;background-color:#333;font-size:1.8em;font-family:Arial,sans-serif;text-align:center;width:30em;height:15em;margin:0 auto}.vjs-no-js a,.vjs-no-js a:visited{color:#F4A460}@-webkit-keyframes spCircRot{from{-webkit-transform:rotate(0)}to{-webkit-transform:rotate(359deg)}}@keyframes spCircRot{from{transform:rotate(0)}to{transform:rotate(359deg)}}'), +function(t,e){var o=t.createElement("style");if(t.getElementsByTagName("head")[0].appendChild(o),o.styleSheet)o.styleSheet.disabled||(o.styleSheet.cssText=e);else try{o.innerHTML=e}catch(n){o.innerText=e}}(document,".afterglow-lightbox-wrapper{width:100%;height:100%;position:fixed;top:0;left:0;z-index:999999}.afterglow-lightbox-wrapper .cover{width:100%;height:100%;position:absolute;top:0;left:0;background-color:#000;background-color:rgba(0,0,0,.85)}.afterglow-lightbox-wrapper .afterglow-lightbox{display:block!important;position:absolute;top:0;left:0}.afterglow-lightbox-wrapper .afterglow-lightbox .afterglow-lightboxplayer,.afterglow-lightbox-wrapper .afterglow-lightbox .afterglow-lightboxplayer video{display:block!important}.afterglow-lightbox-wrapper .afterglow-lightbox div.vjs-fullscreen{top:0!important;left:0!important}.afterglow-lightbox-wrapper .afterglow-lightbox .vjs-paused.vjs-ended .vjs-big-play-button{display:block}#afterglow-lightbox-videoel,.afterglow-lightbox-wrapper.hidden,.afterglow-lightboxplayer{display:none}"),!function(t){function e(t,e,n){var r=o(e),i=z[r];return i&&i.set?i.set(t,n):t.style[r]=n}function o(t){return Q[t]||(Q[t]=t.replace(R,function(t,e){return e.toUpperCase()}))}function n(t,o,n){if(n===B){if("string"==typeof o)return V(t,o)||0;for(var r in o)e(t,r,o[r])}else e(t,o,n)}function r(t){var e,o=[];if("string"==typeof t)for(;t&&(e=t.match(D),""!==e[0]);)o.push({rel:e[1],uTag:(e[2]||"").toUpperCase(),id:e[3],classes:e[4]?e[4].split("."):B}),t=t.substring(e[0].length);return o}function i(t,e){for(;(t=t.parentNode)&&t!==e;);return null!==t}function s(t,e){function o(t,e){var o,r=e.id?(o=(t&&t.ownerDocument||P).getElementById(e.id))&&i(o,t)?[o]:[]:n(t.getElementsByTagName(e.uTag||"*"));if(o=r.length,o>0&&(e.id||e.classes))for(;o--;)a(r[o],e)||r.splice(o,1);return r}function n(t){try{return Array.prototype.slice.call(t)}catch(e){for(var o=[],n=0,r=t.length;r>n;n++)o.push(t[n]);return o}}function s(t){for(var e=y.length;e--;)if(y[e]===t)return I;return F}var l,u,c,p,d,f,h,v,g,y=[],A=[t],m=r(e);for(m.length||(m=[{}]),l=0,u=m.length;u>l;l++){for(h=m[l],c=0,p=A.length;p>c;c++)switch(v=A[c],h.rel){case">":var b=v.childNodes;for(d=0,f=b.length;f>d;d++)a(b[d],h)&&y.push(b[d]);break;case"~":for(;v=v.nextSibling;)if(a(v,h)){if(s(v))break;y.push(v)}break;case"+":for(;(v=v.nextSibling)&&1!==v.nodeType;);v&&a(v,h)&&y.push(v);break;default:if(g=o(v,h),l>0)for(d=0,f=g.length;f>d;d++)s(g[d])||y.push(g[d]);else y=y.concat(g)}if(!y.length)return[];A=y.splice(0,y.length)}return A}function a(t,e){if(!e)return!0;var o=e.uTag,n=e.id,r=e.classes;return!(1!==t.nodeType||o&&o!==t.tagName||n&&n!==t.id||r&&!p(t,r))}function l(t,e,o){for(o=r(o)[0];t&&!a(t,o)&&(t=t[e]););return t}function u(t,e){return e=r(e)[0],t&&a(t,e)}function c(t,e,o){return l(t[e],e,o)}function p(t,e){if(""===t.className)return F;for(var o=0;oe;e++)N[e]()}}function o(){try{M.doScroll("left")}catch(n){return void t.setTimeout(o,20)}e()}var n,r;if(P.addEventListener)P.addEventListener("DOMContentLoaded",e,F),P.addEventListener("load",e,F);else if(P.attachEvent){P.attachEvent("onload",e);var i=!1;try{i=null===t.frameElement}catch(s){}i&&M.doScroll&&o()}}function f(t,e){var o=r(t)[0],n=o.uTag;if(!n)return null;var i=(e||P).createElement(n),s=o.id,a=o.classes;return s&&(i.id=s),a&&(i.className=a.join(" ")),i}function h(e){/loaded|complete|interactive/.test(P.readyState)?t.setTimeout(e,0):N.push(e)}function v(t,e){return s(e||M,t)}function g(t,e){return c(t,"parentNode",e)}function y(t,e){return c(t,"nextSibling",e)}function A(t,e){return c(t,"previousSibling",e)}function m(t,e){return t=t.parentNode.firstChild,l(t,"nextSibling",e)}function b(t,e){return t=t.parentNode.lastChild,l(t,"previousSibling",e)}function j(t,e){return(" "+t.className+" ").indexOf(" "+e+" ")>-1}function w(t,e){j(t,e)||(t.className+=" "+e)}function _(t,e){j(t,e)&&(t.className=t.className.replace(RegExp("(^|\\s)"+e+"(\\s|$)")," ").replace(/\s$/,""))}function k(t,e,o){(o?w:_)(t,e)}function x(t){return P.createTextNode(t)}function T(t,e,o){t.setAttribute(e,""+o)}function E(t,e){return t.getAttribute(e)||null}function C(t,e,o){if("object"!=typeof e)return o===B?E(t,e):void T(t,e,o);for(var n in e)T(t,n,e[n])}function S(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function O(t,e){e||(e=t,t=this);for(var o in e)t[o]=e[o]}var B,P=t.document,M=P.documentElement,I=!0,F=!1,D=/^\s*([>+~])?\s*([*\w-]+)?(?:#([\w-]+))?(?:\.([\w.-]+))?\s*/,R=/-(\w)/g,N=[],L=[],Q={"float":"cssFloat"in M.style?"cssFloat":"styleFloat"},z={borderWidth:{get:function(t){return V(t,"border-left-width")}},padding:{get:function(t){return V(t,"padding-left")}},margin:{get:function(t){return V(t,"margin-left")}}};!("opacity"in M.style)&&"filters"in M&&(z.opacity={set:function(t,e){var o=t.filters.alpha;o?o.opacity=100*e:t.style.filter+=" Alpha(opacity="+100*e+")"},get:function(t){var e=t.filters.alpha;return e?e.opacity/100:1}}),"clientWidth"in M&&(z.width={get:function(t){return t.style.width||t.clientWidth||t.offsetWidth}}),"clientHeight"in M&&(z.height={get:function(t){return t.style.height||t.clientHeight||t.offsetHeight}});var H=t.addEventListener?function(t,e,o){t.addEventListener(e,o,!1)}:function(e,o,n){var r=e.uniqueID+o+n;L[r]=function(){var o=t.event;return o.target=o.srcElement||P,o.currentTarget=e,o.preventDefault=function(){o.returnValue=!1},o.stopPropagation=function(){o.cancelBubble=!0},n.call(e,o)},e.attachEvent("on"+o,L[r])},Y=t.removeEventListener?function(t,e,o){t.removeEventListener(e,o,!1)}:function(t,e,o){var n=t.uniqueID+e+o;t.detachEvent("on"+e,L[n]),delete L[n]},V=P.defaultView&&P.defaultView.getComputedStyle?function(t,e){var n=o(e),r=z[n];return r&&r.get?r.get(t):t.ownerDocument.defaultView.getComputedStyle(t,null).getPropertyValue(e)}:function(t,e){var n=o(e),r=z[n];return r&&r.get?r.get(t):t.currentStyle[n]},U={create:f,onready:h,addEvent:H,removeEvent:Y,get:v,descendants:s,ancestor:g,next:y,previous:A,first:m,last:b,empty:S,is:u,text:x,attr:C,hasClass:j,addClass:w,removeClass:_,toggleClass:k,style:n,extend:O};t.$dom=U,d()}(this);var ie=function(){"use strict";var t,e,o,n,r;return e=!1,n={5.5:"5.5",5.6:"6",5.7:"7",5.8:"8",9:"9",10:"10"},r=new Function("/*@cc_on return @_jscript_version; @*/")(),void 0!==r&&(e=!0,o=n[r]),t={isTheBrowser:e,actualVersion:o},e||window.navigator.userAgent.indexOf("Trident/7.0")>0&&!/x64|x32/gi.test(window.navigator.userAgent)&&(t={isTheBrowser:!0,actualVersion:"11"}),t}().actualVersion,mobileDetect={Android:function(){return navigator.userAgent.match(/Android/i)},BlackBerry:function(){return navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return navigator.userAgent.match(/iPhone|iPad|iPod/i)},Opera:function(){return navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return navigator.userAgent.match(/IEMobile/i)},any:function(){return mobileDetect.Android()||mobileDetect.BlackBerry()||mobileDetect.iOS()||mobileDetect.Opera()||mobileDetect.Windows()}},isMobile=mobileDetect.any();Node.prototype.hasClass=function(t){return this.classList?this.classList.contains(t):-1=t||t>e?l(A,f):y=setTimeout(u,t)}function c(){l(j,y)}function p(){if(d=arguments,v=r(),g=this,A=j&&(y||!w),b===!1)var o=w&&!y;else{f||w||(m=v);var n=b-(v-m),i=0>=n||n>b;i?(f&&(f=clearTimeout(f)),m=v,h=t.apply(g,d)):f||(f=setTimeout(c,n))}return i&&y?y=clearTimeout(y):y||e===b||(y=setTimeout(u,e)),o&&(i=!0,h=t.apply(g,d)),!i||y||f||(d=g=void 0),h}var d,f,h,v,g,y,A,m=0,b=!1,j=!0;if("function"!=typeof t)throw new TypeError(i);if(e=0>e?0:+e||0,o===!0){var w=!0;j=!1}else n(o)&&(w=!!o.leading,b="maxWait"in o&&s(+o.maxWait||0,e),j="trailing"in o?!!o.trailing:j);return p.cancel=a,p}var n=t("../lang/isObject"),r=t("../date/now"),i="Expected a function",s=Math.max;e.exports=o},{"../date/now":4,"../lang/isObject":33}],6:[function(t,e){function o(t,e){if("function"!=typeof t)throw new TypeError(n);return e=r(void 0===e?t.length-1:+e||0,0),function(){for(var o=arguments,n=-1,i=r(o.length-e,0),s=Array(i);++n2?o[s-2]:void 0,l=s>2?o[2]:void 0,u=s>1?o[s-1]:void 0;for("function"==typeof a?(a=n(a,u,5),s-=2):(a="function"==typeof u?u:void 0,s-=a?1:0),l&&r(o[0],o[1],l)&&(a=3>s?void 0:a,s=1);++i-1&&t%1==0&&e>t}var n=/^\d+$/,r=9007199254740991;e.exports=o},{}],24:[function(t,e){function o(t,e,o){if(!i(o))return!1;var s=typeof e;if("number"==s?n(o)&&r(e,o.length):"string"==s&&e in o){var a=o[e];return t===t?t===a:a!==a}return!1}var n=t("./isArrayLike"),r=t("./isIndex"),i=t("../lang/isObject");e.exports=o},{"../lang/isObject":33,"./isArrayLike":21,"./isIndex":23}],25:[function(t,e){function o(t){return"number"==typeof t&&t>-1&&t%1==0&&n>=t}var n=9007199254740991;e.exports=o},{}],26:[function(t,e){function o(t){return!!t&&"object"==typeof t}e.exports=o},{}],27:[function(t,e){function o(t){for(var e=l(t),o=e.length,u=o&&t.length,p=!!u&&s(u)&&(r(t)||n(t)||a(t)),d=-1,f=[];++d0,y=p.enumErrorProps&&(t===w||t instanceof Error),m=p.enumPrototypes&&s(t);++n2?arguments[2]:{},s=o(e);r&&(s=s.concat(Object.getOwnPropertySymbols(e))),n(s,function(o){u(t,o,e[o],i[o])})};c.supportsDescriptors=!!l,e.exports=c},{foreach:45,"object-keys":46}],45:[function(t,e){var o=Object.prototype.hasOwnProperty,n=Object.prototype.toString;e.exports=function(t,e,r){if("[object Function]"!==n.call(e))throw new TypeError("iterator must be a function");var i=t.length;if(i===+i)for(var s=0;i>s;s++)e.call(r,t[s],s,t);else for(var a in t)o.call(t,a)&&e.call(r,t[a],a,t)}},{}],46:[function(t,e){"use strict";var o=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Array.prototype.slice,i=t("./isArguments"),s=!{toString:null}.propertyIsEnumerable("toString"),a=function(){}.propertyIsEnumerable("prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=function(t){var e=t.constructor;return e&&e.prototype===t},c={$window:!0,$console:!0,$parent:!0,$self:!0,$frames:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0},p=function(){if("undefined"==typeof window)return!1;for(var t in window)if(!c["$"+t]&&o.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{u(window[t])}catch(e){return!0}return!1}(),d=function(t){if("undefined"==typeof window&&!p)return u(t);try{return u(t)}catch(e){return!1}},f=function(t){var e=null!==t&&"object"==typeof t,r="[object Function]"===n.call(t),u=i(t),c=e&&"[object String]"===n.call(t),p=[];if(!e&&!r&&!u)throw new TypeError("Object.keys called on a non-object");var f=a&&r;if(c&&t.length>0&&!o.call(t,0))for(var h=0;h0)for(var v=0;v=0&&"[object Function]"===o.call(t.callee)),n}},{}],48:[function(t,e){function o(t,e){var o,n=null;try{o=JSON.parse(t,e)}catch(r){n=r}return[n,o]}e.exports=o},{}],49:[function(t,e){function o(t){return t.replace(/\n\r?\s*/g,"")}e.exports=function(t){for(var e="",n=0;n0&&(h=setTimeout(function(){f=!0,p.abort("timeout");var t=new Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",l(t)},t.timeout)),p.setRequestHeader)for(d in A)A.hasOwnProperty(d)&&p.setRequestHeader(d,A[d]);else if(t.headers&&!o(t.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in t&&(p.responseType=t.responseType),"beforeSend"in t&&"function"==typeof t.beforeSend&&t.beforeSend(p),p.send(y),p}function r(){}var i=t("global/window"),s=t("once"),a=t("parse-headers");e.exports=n,n.XMLHttpRequest=i.XMLHttpRequest||r,n.XDomainRequest="withCredentials"in new n.XMLHttpRequest?n.XMLHttpRequest:i.XDomainRequest},{"global/window":2,once:51,"parse-headers":55}],51:[function(t,e){function o(t){var e=!1;return function(){return e?void 0:(e=!0,t.apply(this,arguments))}}e.exports=o,o.proto=o(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return o(this)},configurable:!0})})},{}],52:[function(t,e){function o(t,e,o){if(!s(e))throw new TypeError("iterator must be a function");arguments.length<3&&(o=this),"[object Array]"===a.call(t)?n(t,e,o):"string"==typeof t?r(t,e,o):i(t,e,o)}function n(t,e,o){for(var n=0,r=t.length;r>n;n++)l.call(t,n)&&e.call(o,t[n],n,t)}function r(t,e,o){for(var n=0,r=t.length;r>n;n++)e.call(o,t.charAt(n),n,t)}function i(t,e,o){for(var n in t)l.call(t,n)&&e.call(o,t[n],n,t)}var s=t("is-function");e.exports=o;var a=Object.prototype.toString,l=Object.prototype.hasOwnProperty},{"is-function":53}],53:[function(t,e){function o(t){var e=n.call(t);return"[object Function]"===e||"function"==typeof t&&"[object RegExp]"!==e||"undefined"!=typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)}e.exports=o;var n=Object.prototype.toString},{}],54:[function(t,e,o){function n(t){return t.replace(/^\s*|\s*$/g,"")}o=e.exports=n,o.left=function(t){return t.replace(/^\s*/,"")},o.right=function(t){return t.replace(/\s*$/,"")}},{}],55:[function(t,e){var o=t("trim"),n=t("for-each"),r=function(t){return"[object Array]"===Object.prototype.toString.call(t)};e.exports=function(t){if(!t)return{};var e={};return n(o(t).split("\n"),function(t){var n=t.indexOf(":"),i=o(t.slice(0,n)).toLowerCase(),s=o(t.slice(n+1));"undefined"==typeof e[i]?e[i]=s:r(e[i])?e[i].push(s):e[i]=[e[i],s]}),e}},{"for-each":52,trim:54}],56:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var s=t("./button.js"),a=n(s),l=t("./component.js"),u=n(l),c=function(t){function e(o,n){r(this,e),t.call(this,o,n)}return i(e,t),e.prototype.buildCSSClass=function(){return"vjs-big-play-button"},e.prototype.handleClick=function(){this.player_.play()},e}(a["default"]);c.prototype.controlText_="Play Video",u["default"].registerComponent("BigPlayButton",c),o["default"]=c,e.exports=o["default"]},{"./button.js":57,"./component.js":58}],57:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e["default"]=t,e}function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("./component"),l=r(a),u=t("./utils/dom.js"),c=n(u),p=t("./utils/events.js"),d=n(p),f=t("./utils/fn.js"),h=n(f),v=t("global/document"),g=r(v),y=t("object.assign"),A=r(y),m=function(t){ +function e(o,n){i(this,e),t.call(this,o,n),this.emitTapEvents(),this.on("tap",this.handleClick),this.on("click",this.handleClick),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur)}return s(e,t),e.prototype.createEl=function(){var e=arguments.length<=0||void 0===arguments[0]?"button":arguments[0],o=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=arguments.length<=2||void 0===arguments[2]?{}:arguments[2];o=A["default"]({className:this.buildCSSClass(),tabIndex:0},o),n=A["default"]({role:"button",type:"button","aria-live":"polite"},n);var r=t.prototype.createEl.call(this,e,o,n);return this.controlTextEl_=c.createEl("span",{className:"vjs-control-text"}),r.appendChild(this.controlTextEl_),this.controlText(this.controlText_),r},e.prototype.controlText=function(t){return t?(this.controlText_=t,this.controlTextEl_.innerHTML=this.localize(this.controlText_),this):this.controlText_||"Need Text"},e.prototype.buildCSSClass=function(){return"vjs-control vjs-button "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(){},e.prototype.handleFocus=function(){d.on(g["default"],"keydown",h.bind(this,this.handleKeyPress))},e.prototype.handleKeyPress=function(t){(32===t.which||13===t.which)&&(t.preventDefault(),this.handleClick(t))},e.prototype.handleBlur=function(){d.off(g["default"],"keydown",h.bind(this,this.handleKeyPress))},e}(l["default"]);l["default"].registerComponent("Button",m),o["default"]=m,e.exports=o["default"]},{"./component":58,"./utils/dom.js":118,"./utils/events.js":119,"./utils/fn.js":120,"global/document":1,"object.assign":43}],58:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e["default"]=t,e}function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}o.__esModule=!0;var s=t("global/window"),a=r(s),l=t("./utils/dom.js"),u=n(l),c=t("./utils/fn.js"),p=n(c),d=t("./utils/guid.js"),f=n(d),h=t("./utils/events.js"),v=n(h),g=t("./utils/log.js"),y=r(g),A=t("./utils/to-title-case.js"),m=r(A),b=t("object.assign"),j=r(b),w=t("./utils/merge-options.js"),_=r(w),k=function(){function t(e,o,n){if(i(this,t),this.player_=!e&&this.play?e=this:e,this.options_=_["default"]({},this.options_),o=this.options_=_["default"](this.options_,o),this.id_=o.id||o.el&&o.el.id,!this.id_){var r=e&&e.id&&e.id()||"no_player";this.id_=r+"_component_"+f.newGUID()}this.name_=o.name||null,o.el?this.el_=o.el:o.createEl!==!1&&(this.el_=this.createEl()),this.children_=[],this.childIndex_={},this.childNameIndex_={},o.initChildren!==!1&&this.initChildren(),this.ready(n),o.reportTouchActivity!==!1&&this.enableTouchActivity()}return t.prototype.dispose=function(){if(this.trigger({type:"dispose",bubbles:!1}),this.children_)for(var t=this.children_.length-1;t>=0;t--)this.children_[t].dispose&&this.children_[t].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.off(),this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),u.removeElData(this.el_),this.el_=null},t.prototype.player=function(){return this.player_},t.prototype.options=function(t){return y["default"].warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),t?(this.options_=_["default"](this.options_,t),this.options_):this.options_},t.prototype.el=function(){return this.el_},t.prototype.createEl=function(t,e,o){return u.createEl(t,e,o)},t.prototype.localize=function(t){var e=this.player_.language&&this.player_.language(),o=this.player_.languages&&this.player_.languages();if(!e||!o)return t;var n=o[e];if(n&&n[t])return n[t];var r=e.split("-")[0],i=o[r];return i&&i[t]?i[t]:t},t.prototype.contentEl=function(){return this.contentEl_||this.el_},t.prototype.id=function(){return this.id_},t.prototype.name=function(){return this.name_},t.prototype.children=function(){return this.children_},t.prototype.getChildById=function(t){return this.childIndex_[t]},t.prototype.getChild=function(t){return this.childNameIndex_[t]},t.prototype.addChild=function(e){var o=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=void 0,r=void 0;if("string"==typeof e){r=e,o||(o={}),o===!0&&(y["default"].warn("Initializing a child component with `true` is deprecated. Children should be defined in an array when possible, but if necessary use an object instead of `true`."),o={});var i=o.componentClass||m["default"](r);o.name=r;var s=t.getComponent(i);n=new s(this.player_||this,o)}else n=e;return this.children_.push(n),"function"==typeof n.id&&(this.childIndex_[n.id()]=n),r=r||n.name&&n.name(),r&&(this.childNameIndex_[r]=n),"function"==typeof n.el&&n.el()&&this.contentEl().appendChild(n.el()),n},t.prototype.removeChild=function(t){if("string"==typeof t&&(t=this.getChild(t)),t&&this.children_){for(var e=!1,o=this.children_.length-1;o>=0;o--)if(this.children_[o]===t){e=!0,this.children_.splice(o,1);break}if(e){this.childIndex_[t.id()]=null,this.childNameIndex_[t.name()]=null;var n=t.el();n&&n.parentNode===this.contentEl()&&this.contentEl().removeChild(t.el())}}},t.prototype.initChildren=function(){var t=this,e=this.options_.children;e&&!function(){var o=t.options_,n=function(e,n){void 0!==o[e]&&(n=o[e]),n!==!1&&(n===!0&&(n={}),n.playerOptions=t.options_.playerOptions,t[e]=t.addChild(e,n))};if(Array.isArray(e))for(var r=0;r0&&(t.forEach(function(t){t.call(this)},this),this.readyQueue_=[]),this.trigger("ready")},1)},t.prototype.hasClass=function(t){return u.hasElClass(this.el_,t)},t.prototype.addClass=function(t){return u.addElClass(this.el_,t),this},t.prototype.removeClass=function(t){return u.removeElClass(this.el_,t),this},t.prototype.show=function(){return this.removeClass("vjs-hidden"),this},t.prototype.hide=function(){return this.addClass("vjs-hidden"),this},t.prototype.lockShowing=function(){return this.addClass("vjs-lock-showing"),this},t.prototype.unlockShowing=function(){return this.removeClass("vjs-lock-showing"),this},t.prototype.width=function(t,e){return this.dimension("width",t,e)},t.prototype.height=function(t,e){return this.dimension("height",t,e)},t.prototype.dimensions=function(t,e){return this.width(t,!0).height(e)},t.prototype.dimension=function(t,e,o){if(void 0!==e)return(null===e||e!==e)&&(e=0),this.el_.style[t]=-1!==(""+e).indexOf("%")||-1!==(""+e).indexOf("px")?e:"auto"===e?"":e+"px",o||this.trigger("resize"),this;if(!this.el_)return 0;var n=this.el_.style[t],r=n.indexOf("px");return-1!==r?parseInt(n.slice(0,r),10):parseInt(this.el_["offset"+m["default"](t)],10)},t.prototype.emitTapEvents=function(){var t=0,e=null,o=10,n=200,r=void 0;this.on("touchstart",function(o){1===o.touches.length&&(e=j["default"]({},o.touches[0]),t=(new Date).getTime(),r=!0)}),this.on("touchmove",function(t){if(t.touches.length>1)r=!1;else if(e){var n=t.touches[0].pageX-e.pageX,i=t.touches[0].pageY-e.pageY,s=Math.sqrt(n*n+i*i);s>o&&(r=!1)}});var i=function(){r=!1};this.on("touchleave",i),this.on("touchcancel",i),this.on("touchend",function(o){if(e=null,r===!0){var i=(new Date).getTime()-t;n>i&&(o.preventDefault(),this.trigger("tap"))}})},t.prototype.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var t=p.bind(this.player(),this.player().reportUserActivity),e=void 0;this.on("touchstart",function(){t(),this.clearInterval(e),e=this.setInterval(t,250)});var o=function(){t(),this.clearInterval(e)};this.on("touchmove",t),this.on("touchend",o),this.on("touchcancel",o)}},t.prototype.setTimeout=function(t,e){t=p.bind(this,t);var o=a["default"].setTimeout(t,e),n=function(){this.clearTimeout(o)};return n.guid="vjs-timeout-"+o,this.on("dispose",n),o},t.prototype.clearTimeout=function(t){a["default"].clearTimeout(t);var e=function(){};return e.guid="vjs-timeout-"+t,this.off("dispose",e),t},t.prototype.setInterval=function(t,e){t=p.bind(this,t);var o=a["default"].setInterval(t,e),n=function(){this.clearInterval(o)};return n.guid="vjs-interval-"+o,this.on("dispose",n),o},t.prototype.clearInterval=function(t){a["default"].clearInterval(t);var e=function(){};return e.guid="vjs-interval-"+t,this.off("dispose",e),t},t.registerComponent=function(e,o){return t.components_||(t.components_={}),t.components_[e]=o,o},t.getComponent=function(e){return t.components_&&t.components_[e]?t.components_[e]:a["default"]&&a["default"].videojs&&a["default"].videojs[e]?(y["default"].warn("The "+e+" component was added to the videojs object when it should be registered using videojs.registerComponent(name, component)"),a["default"].videojs[e]):void 0},t.extend=function(e){e=e||{},y["default"].warn("Component.extend({}) has been deprecated, use videojs.extends(Component, {}) instead");var o=e.init||e.init||this.prototype.init||this.prototype.init||function(){},n=function(){o.apply(this,arguments)};n.prototype=Object.create(this.prototype),n.prototype.constructor=n,n.extend=t.extend;for(var r in e)e.hasOwnProperty(r)&&(n.prototype[r]=e[r]);return n},t}();k.registerComponent("Component",k),o["default"]=k,e.exports=o["default"]},{"./utils/dom.js":118,"./utils/events.js":119,"./utils/fn.js":120,"./utils/guid.js":122,"./utils/log.js":123,"./utils/merge-options.js":124,"./utils/to-title-case.js":127,"global/window":2,"object.assign":43}],59:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var s=t("../component.js"),a=n(s),l=t("./play-toggle.js"),u=(n(l),t("./time-controls/current-time-display.js")),c=(n(u),t("./time-controls/duration-display.js")),p=(n(c),t("./time-controls/time-divider.js")),d=(n(p),t("./time-controls/remaining-time-display.js")),f=(n(d),t("./live-display.js")),h=(n(f),t("./progress-control/progress-control.js")),v=(n(h),t("./fullscreen-toggle.js")),g=(n(v),t("./volume-control/volume-control.js")),y=(n(g),t("./volume-menu-button.js")),A=(n(y),t("./mute-toggle.js")),m=(n(A),t("./text-track-controls/chapters-button.js")),b=(n(m),t("./text-track-controls/subtitles-button.js")),j=(n(b),t("./text-track-controls/captions-button.js")),w=(n(j),t("./playback-rate-menu/playback-rate-menu-button.js")),_=(n(w),t("./spacer-controls/custom-control-spacer.js")),k=(n(_),function(t){function e(){r(this,e),t.apply(this,arguments)}return i(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-control-bar"})},e}(a["default"]));k.prototype.options_={loadEvent:"play",children:["playToggle","volumeMenuButton","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","subtitlesButton","captionsButton","fullscreenToggle"]},a["default"].registerComponent("ControlBar",k),o["default"]=k,e.exports=o["default"]},{"../component.js":58,"./fullscreen-toggle.js":60,"./live-display.js":61,"./mute-toggle.js":62,"./play-toggle.js":63,"./playback-rate-menu/playback-rate-menu-button.js":64,"./progress-control/progress-control.js":69,"./spacer-controls/custom-control-spacer.js":71,"./text-track-controls/captions-button.js":74,"./text-track-controls/chapters-button.js":75,"./text-track-controls/subtitles-button.js":78,"./time-controls/current-time-display.js":81,"./time-controls/duration-display.js":82,"./time-controls/remaining-time-display.js":83,"./time-controls/time-divider.js":84,"./volume-control/volume-control.js":86,"./volume-menu-button.js":88}],60:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var s=t("../button.js"),a=n(s),l=t("../component.js"),u=n(l),c=function(t){function e(){r(this,e),t.apply(this,arguments)}return i(e,t),e.prototype.buildCSSClass=function(){return"vjs-fullscreen-control "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(){this.player_.isFullscreen()?(this.player_.exitFullscreen(),this.controlText("Fullscreen")):(this.player_.requestFullscreen(),this.controlText("Non-Fullscreen"))},e}(a["default"]);c.prototype.controlText_="Fullscreen",u["default"].registerComponent("FullscreenToggle",c),o["default"]=c,e.exports=o["default"]},{"../button.js":57,"../component.js":58}],61:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e["default"]=t,e}function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("../component"),l=r(a),u=t("../utils/dom.js"),c=n(u),p=function(t){function e(o,n){i(this,e),t.call(this,o,n),this.updateShowing(),this.on(this.player(),"durationchange",this.updateShowing)}return s(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=c.createEl("div",{className:"vjs-live-display",innerHTML:''+this.localize("Stream Type")+""+this.localize("LIVE")},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},e.prototype.updateShowing=function(){this.player().duration()===1/0?this.show():this.hide()},e}(l["default"]);l["default"].registerComponent("LiveDisplay",p),o["default"]=p,e.exports=o["default"]},{"../component":58,"../utils/dom.js":118}],62:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e["default"]=t,e}function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("../button"),l=r(a),u=t("../component"),c=r(u),p=t("../utils/dom.js"),d=n(p),f=function(t){function e(o,n){i(this,e),t.call(this,o,n),this.on(o,"volumechange",this.update),o.tech_&&o.tech_.featuresVolumeControl===!1&&this.addClass("vjs-hidden"),this.on(o,"loadstart",function(){this.update(),o.tech_.featuresVolumeControl===!1?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")})}return s(e,t),e.prototype.buildCSSClass=function(){return"vjs-mute-control "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(){this.player_.muted(this.player_.muted()?!1:!0)},e.prototype.update=function(){var t=this.player_.volume(),e=3;0===t||this.player_.muted()?e=0:.33>t?e=1:.67>t&&(e=2);var o=this.player_.muted()?"Unmute":"Mute",n=this.localize(o);this.controlText()!==n&&this.controlText(n);for(var r=0;4>r;r++)d.removeElClass(this.el_,"vjs-vol-"+r);d.addElClass(this.el_,"vjs-vol-"+e)},e}(l["default"]);f.prototype.controlText_="Mute",c["default"].registerComponent("MuteToggle",f),o["default"]=f,e.exports=o["default"]},{"../button":57,"../component":58,"../utils/dom.js":118}],63:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var s=t("../button.js"),a=n(s),l=t("../component.js"),u=n(l),c=function(t){function e(o,n){r(this,e),t.call(this,o,n),this.on(o,"play",this.handlePlay),this.on(o,"pause",this.handlePause)}return i(e,t),e.prototype.buildCSSClass=function(){return"vjs-play-control "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(){this.player_.paused()?this.player_.play():this.player_.pause()},e.prototype.handlePlay=function(){this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},e.prototype.handlePause=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},e}(a["default"]);c.prototype.controlText_="Play",u["default"].registerComponent("PlayToggle",c),o["default"]=c,e.exports=o["default"]},{"../button.js":57,"../component.js":58}],64:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e["default"]=t,e}function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("../../menu/menu-button.js"),l=r(a),u=t("../../menu/menu.js"),c=r(u),p=t("./playback-rate-menu-item.js"),d=r(p),f=t("../../component.js"),h=r(f),v=t("../../utils/dom.js"),g=n(v),y=function(t){function e(o,n){i(this,e),t.call(this,o,n),this.updateVisibility(),this.updateLabel(),this.on(o,"loadstart",this.updateVisibility),this.on(o,"ratechange",this.updateLabel)}return s(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this);return this.labelEl_=g.createEl("div",{className:"vjs-playback-rate-value",innerHTML:1}),e.appendChild(this.labelEl_),e},e.prototype.buildCSSClass=function(){return"vjs-playback-rate "+t.prototype.buildCSSClass.call(this)},e.prototype.createMenu=function(){var t=new c["default"](this.player()),e=this.playbackRates();if(e)for(var o=e.length-1;o>=0;o--)t.addChild(new d["default"](this.player(),{rate:e[o]+"x"}));return t},e.prototype.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},e.prototype.handleClick=function(){for(var t=this.player().playbackRate(),e=this.playbackRates(),o=e[0],n=0;nt){o=e[n];break}this.player().playbackRate(o)},e.prototype.playbackRates=function(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates},e.prototype.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},e.prototype.updateVisibility=function(){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},e.prototype.updateLabel=function(){this.playbackRateSupported()&&(this.labelEl_.innerHTML=this.player().playbackRate()+"x")},e}(l["default"]);y.prototype.controlText_="Playback Rate",h["default"].registerComponent("PlaybackRateMenuButton",y),o["default"]=y,e.exports=o["default"]},{"../../component.js":58,"../../menu/menu-button.js":95,"../../menu/menu.js":97,"../../utils/dom.js":118,"./playback-rate-menu-item.js":65}],65:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var s=t("../../menu/menu-item.js"),a=n(s),l=t("../../component.js"),u=n(l),c=function(t){function e(o,n){r(this,e);var i=n.rate,s=parseFloat(i,10);n.label=i,n.selected=1===s,t.call(this,o,n),this.label=i,this.rate=s,this.on(o,"ratechange",this.update)}return i(e,t),e.prototype.handleClick=function(){t.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},e.prototype.update=function(){this.selected(this.player().playbackRate()===this.rate)},e}(a["default"]);c.prototype.contentElType="button",u["default"].registerComponent("PlaybackRateMenuItem",c),o["default"]=c,e.exports=o["default"]},{"../../component.js":58,"../../menu/menu-item.js":96}],66:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e["default"]=t,e}function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("../../component.js"),l=r(a),u=t("../../utils/dom.js"),c=n(u),p=function(t){function e(o,n){i(this,e),t.call(this,o,n),this.on(o,"progress",this.update)}return s(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:''+this.localize("Loaded")+": 0%"})},e.prototype.update=function(){var t=this.player_.buffered(),e=this.player_.duration(),o=this.player_.bufferedEnd(),n=this.el_.children,r=function(t,e){var o=t/e||0;return 100*(o>=1?1:o)+"%"};this.el_.style.width=r(o,e);for(var i=0;it.length;i--)this.el_.removeChild(n[i-1])},e}(l["default"]);l["default"].registerComponent("LoadProgressBar",p),o["default"]=p,e.exports=o["default"]},{"../../component.js":58,"../../utils/dom.js":118}],67:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e["default"]=t,e}function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("../../component.js"),l=r(a),u=t("../../utils/dom.js"),c=n(u),p=t("../../utils/fn.js"),d=n(p),f=t("../../utils/format-time.js"),h=r(f),v=t("lodash-compat/function/throttle"),g=r(v),y=function(t){function e(o,n){var r=this;i(this,e),t.call(this,o,n),this.update(0,0),o.on("ready",function(){r.on(o.controlBar.progressControl.el(),"mousemove",g["default"](d.bind(r,r.handleMouseMove),25))})}return s(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},e.prototype.handleMouseMove=function(t){var e=this.player_.duration(),o=this.calculateDistance(t)*e,n=t.pageX-c.findElPosition(this.el().parentNode).left;this.update(o,n)},e.prototype.update=function(t,e){var o=h["default"](t,this.player_.duration());this.el().style.left=e+"px",this.el().setAttribute("data-current-time",o)},e.prototype.calculateDistance=function(t){return c.getPointerPosition(this.el().parentNode,t).x},e}(l["default"]);l["default"].registerComponent("MouseTimeDisplay",y),o["default"]=y,e.exports=o["default"]},{"../../component.js":58,"../../utils/dom.js":118,"../../utils/fn.js":120,"../../utils/format-time.js":121,"lodash-compat/function/throttle":7}],68:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e["default"]=t,e}function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("../../component.js"),l=r(a),u=t("../../utils/fn.js"),c=n(u),p=t("../../utils/format-time.js"),d=r(p),f=function(t){function e(o,n){i(this,e),t.call(this,o,n),this.updateDataAttr(),this.on(o,"timeupdate",this.updateDataAttr),o.ready(c.bind(this,this.updateDataAttr))}return s(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-play-progress",innerHTML:''+this.localize("Progress")+": 0%"})},e.prototype.updateDataAttr=function(){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.el_.setAttribute("data-current-time",d["default"](t,this.player_.duration()))},e}(l["default"]);l["default"].registerComponent("PlayProgressBar",f),o["default"]=f,e.exports=o["default"]},{"../../component.js":58,"../../utils/fn.js":120,"../../utils/format-time.js":121}],69:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var s=t("../../component.js"),a=n(s),l=t("./seek-bar.js"),u=(n(l),t("./mouse-time-display.js")),c=(n(u),function(t){function e(){r(this,e),t.apply(this,arguments)}return i(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},e}(a["default"]));c.prototype.options_={children:{seekBar:{}}},a["default"].registerComponent("ProgressControl",c),o["default"]=c,e.exports=o["default"]},{"../../component.js":58,"./mouse-time-display.js":67,"./seek-bar.js":70}],70:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e["default"]=t,e}function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("../../slider/slider.js"),l=r(a),u=t("../../component.js"),c=r(u),p=t("./load-progress-bar.js"),d=(r(p),t("./play-progress-bar.js")),f=(r(d),t("../../utils/fn.js")),h=n(f),v=t("../../utils/format-time.js"),g=r(v),y=t("object.assign"),A=(r(y),function(t){function e(o,n){i(this,e),t.call(this,o,n),this.on(o,"timeupdate",this.updateARIAAttributes),o.ready(h.bind(this,this.updateARIAAttributes))}return s(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":"video progress bar"})},e.prototype.updateARIAAttributes=function(){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.el_.setAttribute("aria-valuenow",(100*this.getPercent()).toFixed(2)),this.el_.setAttribute("aria-valuetext",g["default"](t,this.player_.duration()))},e.prototype.getPercent=function(){var t=this.player_.currentTime()/this.player_.duration();return t>=1?1:t},e.prototype.handleMouseDown=function(e){t.prototype.handleMouseDown.call(this,e),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause()},e.prototype.handleMouseMove=function(t){var e=this.calculateDistance(t)*this.player_.duration();e===this.player_.duration()&&(e-=.1),this.player_.currentTime(e)},e.prototype.handleMouseUp=function(e){t.prototype.handleMouseUp.call(this,e),this.player_.scrubbing(!1),this.videoWasPlaying&&this.player_.play()},e.prototype.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+5)},e.prototype.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-5)},e}(l["default"]));A.prototype.options_={children:{loadProgressBar:{},mouseTimeDisplay:{},playProgressBar:{}},barName:"playProgressBar"},A.prototype.playerEvent="timeupdate",c["default"].registerComponent("SeekBar",A),o["default"]=A,e.exports=o["default"]},{"../../component.js":58,"../../slider/slider.js":102,"../../utils/fn.js":120,"../../utils/format-time.js":121,"./load-progress-bar.js":66,"./play-progress-bar.js":68,"object.assign":43}],71:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){ +if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var s=t("./spacer.js"),a=n(s),l=t("../../component.js"),u=n(l),c=function(t){function e(){r(this,e),t.apply(this,arguments)}return i(e,t),e.prototype.buildCSSClass=function(){return"vjs-custom-control-spacer "+t.prototype.buildCSSClass.call(this)},e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,{className:this.buildCSSClass()});return e.innerHTML=" ",e},e}(a["default"]);u["default"].registerComponent("CustomControlSpacer",c),o["default"]=c,e.exports=o["default"]},{"../../component.js":58,"./spacer.js":72}],72:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var s=t("../../component.js"),a=n(s),l=function(t){function e(){r(this,e),t.apply(this,arguments)}return i(e,t),e.prototype.buildCSSClass=function(){return"vjs-spacer "+t.prototype.buildCSSClass.call(this)},e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},e}(a["default"]);a["default"].registerComponent("Spacer",l),o["default"]=l,e.exports=o["default"]},{"../../component.js":58}],73:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var s=t("./text-track-menu-item.js"),a=n(s),l=t("../../component.js"),u=n(l),c=function(t){function e(o,n){r(this,e),n.track={kind:n.kind,player:o,label:n.kind+" settings","default":!1,mode:"disabled"},t.call(this,o,n),this.addClass("vjs-texttrack-settings")}return i(e,t),e.prototype.handleClick=function(){this.player().getChild("textTrackSettings").show()},e}(a["default"]);u["default"].registerComponent("CaptionSettingsMenuItem",c),o["default"]=c,e.exports=o["default"]},{"../../component.js":58,"./text-track-menu-item.js":80}],74:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var s=t("./text-track-button.js"),a=n(s),l=t("../../component.js"),u=n(l),c=t("./caption-settings-menu-item.js"),p=n(c),d=function(t){function e(o,n,i){r(this,e),t.call(this,o,n,i),this.el_.setAttribute("aria-label","Captions Menu")}return i(e,t),e.prototype.buildCSSClass=function(){return"vjs-captions-button "+t.prototype.buildCSSClass.call(this)},e.prototype.update=function(){var e=2;t.prototype.update.call(this),this.player().tech_&&this.player().tech_.featuresNativeTextTracks&&(e=1),this.items&&this.items.length>e?this.show():this.hide()},e.prototype.createItems=function(){var e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||e.push(new p["default"](this.player_,{kind:this.kind_})),t.prototype.createItems.call(this,e)},e}(a["default"]);d.prototype.kind_="captions",d.prototype.controlText_="Captions",u["default"].registerComponent("CaptionsButton",d),o["default"]=d,e.exports=o["default"]},{"../../component.js":58,"./caption-settings-menu-item.js":73,"./text-track-button.js":79}],75:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e["default"]=t,e}function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("./text-track-button.js"),l=r(a),u=t("../../component.js"),c=r(u),p=t("./text-track-menu-item.js"),d=r(p),f=t("./chapters-track-menu-item.js"),h=r(f),v=t("../../menu/menu.js"),g=r(v),y=t("../../utils/dom.js"),A=n(y),m=t("../../utils/fn.js"),b=n(m),j=t("../../utils/to-title-case.js"),w=r(j),_=t("global/window"),k=r(_),x=function(t){function e(o,n,r){i(this,e),t.call(this,o,n,r),this.el_.setAttribute("aria-label","Chapters Menu")}return s(e,t),e.prototype.buildCSSClass=function(){return"vjs-chapters-button "+t.prototype.buildCSSClass.call(this)},e.prototype.createItems=function(){var t=[],e=this.player_.textTracks();if(!e)return t;for(var o=0;on;n++){var i=t[n];if(i.kind===this.kind_){if(i.cues){e=i;break}i.mode="hidden",k["default"].setTimeout(b.bind(this,function(){this.createMenu()}),100)}}var s=this.menu;if(void 0===s&&(s=new g["default"](this.player_),s.contentEl().appendChild(A.createEl("li",{className:"vjs-menu-title",innerHTML:w["default"](this.kind_),tabIndex:-1}))),e){for(var a=e.cues,l=void 0,n=0,r=a.length;r>n;n++){l=a[n];var u=new h["default"](this.player_,{track:e,cue:l});o.push(u),s.addChild(u)}this.addChild(s)}return this.items.length>0&&this.show(),s},e}(l["default"]);x.prototype.kind_="chapters",x.prototype.controlText_="Chapters",c["default"].registerComponent("ChaptersButton",x),o["default"]=x,e.exports=o["default"]},{"../../component.js":58,"../../menu/menu.js":97,"../../utils/dom.js":118,"../../utils/fn.js":120,"../../utils/to-title-case.js":127,"./chapters-track-menu-item.js":76,"./text-track-button.js":79,"./text-track-menu-item.js":80,"global/window":2}],76:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e["default"]=t,e}function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("../../menu/menu-item.js"),l=r(a),u=t("../../component.js"),c=r(u),p=t("../../utils/fn.js"),d=n(p),f=function(t){function e(o,n){i(this,e);var r=n.track,s=n.cue,a=o.currentTime();n.label=s.text,n.selected=s.startTime<=a&&ao;o++){var r=t[o];if(r.kind===this.track.kind&&"showing"===r.mode){e=!1;break}}this.selected(e)},e}(a["default"]);u["default"].registerComponent("OffTextTrackMenuItem",c),o["default"]=c,e.exports=o["default"]},{"../../component.js":58,"./text-track-menu-item.js":80}],78:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var s=t("./text-track-button.js"),a=n(s),l=t("../../component.js"),u=n(l),c=function(t){function e(o,n,i){r(this,e),t.call(this,o,n,i),this.el_.setAttribute("aria-label","Subtitles Menu")}return i(e,t),e.prototype.buildCSSClass=function(){return"vjs-subtitles-button "+t.prototype.buildCSSClass.call(this)},e}(a["default"]);c.prototype.kind_="subtitles",c.prototype.controlText_="Subtitles",u["default"].registerComponent("SubtitlesButton",c),o["default"]=c,e.exports=o["default"]},{"../../component.js":58,"./text-track-button.js":79}],79:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e["default"]=t,e}function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("../../menu/menu-button.js"),l=r(a),u=t("../../component.js"),c=r(u),p=t("../../utils/fn.js"),d=n(p),f=t("./text-track-menu-item.js"),h=r(f),v=t("./off-text-track-menu-item.js"),g=r(v),y=function(t){function e(o,n){i(this,e),t.call(this,o,n);var r=this.player_.textTracks();if(this.items.length<=1&&this.hide(),r){var s=d.bind(this,this.update);r.addEventListener("removetrack",s),r.addEventListener("addtrack",s),this.player_.on("dispose",function(){r.removeEventListener("removetrack",s),r.removeEventListener("addtrack",s)})}}return s(e,t),e.prototype.createItems=function(){var t=arguments.length<=0||void 0===arguments[0]?[]:arguments[0];t.push(new g["default"](this.player_,{kind:this.kind_}));var e=this.player_.textTracks();if(!e)return t;for(var o=0;oCurrent Time 0:00'},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},e.prototype.updateContent=function(){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),e=this.localize("Current Time"),o=d["default"](t,this.player_.duration());this.contentEl_.innerHTML=''+e+" "+o},e}(l["default"]);l["default"].registerComponent("CurrentTimeDisplay",f),o["default"]=f,e.exports=o["default"]},{"../../component.js":58,"../../utils/dom.js":118,"../../utils/format-time.js":121}],82:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e["default"]=t,e}function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("../../component.js"),l=r(a),u=t("../../utils/dom.js"),c=n(u),p=t("../../utils/format-time.js"),d=r(p),f=function(t){function e(o,n){i(this,e),t.call(this,o,n),this.on(o,"timeupdate",this.updateContent),this.on(o,"loadedmetadata",this.updateContent)}return s(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-duration vjs-time-control vjs-control"});return this.contentEl_=c.createEl("div",{className:"vjs-duration-display",innerHTML:''+this.localize("Duration Time")+" 0:00"},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},e.prototype.updateContent=function(){var t=this.player_.duration();if(t){var e=this.localize("Duration Time"),o=d["default"](t);this.contentEl_.innerHTML=''+e+" "+o}},e}(l["default"]);l["default"].registerComponent("DurationDisplay",f),o["default"]=f,e.exports=o["default"]},{"../../component.js":58,"../../utils/dom.js":118,"../../utils/format-time.js":121}],83:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e["default"]=t,e}function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("../../component.js"),l=r(a),u=t("../../utils/dom.js"),c=n(u),p=t("../../utils/format-time.js"),d=r(p),f=function(t){function e(o,n){i(this,e),t.call(this,o,n),this.on(o,"timeupdate",this.updateContent)}return s(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-remaining-time vjs-time-control vjs-control"});return this.contentEl_=c.createEl("div",{className:"vjs-remaining-time-display",innerHTML:''+this.localize("Remaining Time")+" -0:00"},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},e.prototype.updateContent=function(){if(this.player_.duration()){var t=this.localize("Remaining Time"),e=d["default"](this.player_.remainingTime());this.contentEl_.innerHTML=''+t+" -"+e}},e}(l["default"]);l["default"].registerComponent("RemainingTimeDisplay",f),o["default"]=f,e.exports=o["default"]},{"../../component.js":58,"../../utils/dom.js":118,"../../utils/format-time.js":121}],84:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var s=t("../../component.js"),a=n(s),l=function(t){function e(){r(this,e),t.apply(this,arguments)}return i(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"
/
"})},e}(a["default"]);a["default"].registerComponent("TimeDivider",l),o["default"]=l,e.exports=o["default"]},{"../../component.js":58}],85:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e["default"]=t,e}function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("../../slider/slider.js"),l=r(a),u=t("../../component.js"),c=r(u),p=t("../../utils/fn.js"),d=n(p),f=t("./volume-level.js"),h=(r(f),function(t){function e(o,n){i(this,e),t.call(this,o,n),this.on(o,"volumechange",this.updateARIAAttributes),o.ready(d.bind(this,this.updateARIAAttributes))}return s(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-bar"},{"aria-label":"volume level"})},e.prototype.handleMouseMove=function(t){this.player_.muted()&&this.player_.muted(!1),this.player_.volume(this.calculateDistance(t))},e.prototype.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},e.prototype.stepForward=function(){this.player_.volume(this.player_.volume()+.1)},e.prototype.stepBack=function(){this.player_.volume(this.player_.volume()-.1)},e.prototype.updateARIAAttributes=function(){var t=(100*this.player_.volume()).toFixed(2);this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")},e}(l["default"]));h.prototype.options_={children:{volumeLevel:{}},barName:"volumeLevel"},h.prototype.playerEvent="volumechange",c["default"].registerComponent("VolumeBar",h),o["default"]=h,e.exports=o["default"]},{"../../component.js":58,"../../slider/slider.js":102,"../../utils/fn.js":120,"./volume-level.js":87}],86:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var s=t("../../component.js"),a=n(s),l=t("./volume-bar.js"),u=(n(l),function(t){function e(o,n){r(this,e),t.call(this,o,n),o.tech_&&o.tech_.featuresVolumeControl===!1&&this.addClass("vjs-hidden"),this.on(o,"loadstart",function(){o.tech_.featuresVolumeControl===!1?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")})}return i(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control"})},e}(a["default"]));u.prototype.options_={children:{volumeBar:{}}},a["default"].registerComponent("VolumeControl",u),o["default"]=u,e.exports=o["default"]},{"../../component.js":58,"./volume-bar.js":85}],87:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var s=t("../../component.js"),a=n(s),l=function(t){function e(){r(this,e),t.apply(this,arguments)}return i(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:''})},e}(a["default"]);a["default"].registerComponent("VolumeLevel",l),o["default"]=l,e.exports=o["default"]},{"../../component.js":58}],88:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var s=t("../button.js"),a=(n(s),t("../component.js")),l=n(a),u=t("../menu/menu.js"),c=n(u),p=t("../menu/menu-button.js"),d=n(p),f=t("./mute-toggle.js"),h=n(f),v=t("./volume-control/volume-bar.js"),g=n(v),y=function(t){function e(o){function n(){o.tech_&&o.tech_.featuresVolumeControl===!1?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}var i=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];r(this,e),void 0===i.inline&&(i.inline=!0),void 0===i.vertical&&(i.vertical=i.inline?!1:!0),i.volumeBar=i.volumeBar||{},i.volumeBar.vertical=!!i.vertical,t.call(this,o,i),this.on(o,"volumechange",this.volumeUpdate),this.on(o,"loadstart",this.volumeUpdate),n.call(this),this.on(o,"loadstart",n),this.on(this.volumeBar,["slideractive","focus"],function(){this.addClass("vjs-slider-active")}),this.on(this.volumeBar,["sliderinactive","blur"],function(){this.removeClass("vjs-slider-active")})}return i(e,t),e.prototype.buildCSSClass=function(){var e="";return e=this.options_.vertical?"vjs-volume-menu-button-vertical":"vjs-volume-menu-button-horizontal","vjs-volume-menu-button "+t.prototype.buildCSSClass.call(this)+" "+e},e.prototype.createMenu=function(){var t=new c["default"](this.player_,{contentElType:"div"}),e=new g["default"](this.player_,this.options_.volumeBar);return t.addChild(e),this.volumeBar=e,t},e.prototype.handleClick=function(){h["default"].prototype.handleClick.call(this),t.prototype.handleClick.call(this)},e}(d["default"]);y.prototype.volumeUpdate=h["default"].prototype.update,y.prototype.controlText_="Mute",l["default"].registerComponent("VolumeMenuButton",y),o["default"]=y,e.exports=o["default"]},{"../button.js":57,"../component.js":58,"../menu/menu-button.js":95,"../menu/menu.js":97,"./mute-toggle.js":62,"./volume-control/volume-bar.js":85}],89:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e["default"]=t,e}function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("./component"),l=r(a),u=t("./utils/dom.js"),c=n(u),p=function(t){function e(o,n){i(this,e),t.call(this,o,n),this.update(),this.on(o,"error",this.update)}return s(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-error-display"});return this.contentEl_=c.createEl("div"),e.appendChild(this.contentEl_),e},e.prototype.update=function(){this.player().error()&&(this.contentEl_.innerHTML=this.localize(this.player().error().message))},e}(l["default"]);l["default"].registerComponent("ErrorDisplay",p),o["default"]=p,e.exports=o["default"]},{"./component":58,"./utils/dom.js":118}],90:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e["default"]=t,e}o.__esModule=!0;var r=t("./utils/events.js"),i=n(r),s=function(){};s.prototype.allowedEvents_={},s.prototype.on=function(t,e){var o=this.addEventListener;this.addEventListener=Function.prototype,i.on(this,t,e),this.addEventListener=o},s.prototype.addEventListener=s.prototype.on,s.prototype.off=function(t,e){i.off(this,t,e)},s.prototype.removeEventListener=s.prototype.off,s.prototype.one=function(t,e){i.one(this,t,e)},s.prototype.trigger=function(t){var e=t.type||t;"string"==typeof t&&(t={type:e}),t=i.fixEvent(t),this.allowedEvents_[e]&&this["on"+e]&&this["on"+e](t),i.trigger(this,t)},s.prototype.dispatchEvent=s.prototype.trigger,o["default"]=s,e.exports=o["default"]},{"./utils/events.js":119}],91:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}o.__esModule=!0;var r=t("./utils/log"),i=n(r),s=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(t.super_=e)},a=function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=function(){t.apply(this,arguments)},n={};"object"==typeof e?("function"==typeof e.init&&(i["default"].warn("Constructor logic via init() is deprecated; please use constructor() instead."),e.constructor=e.init),e.constructor!==Object.prototype.constructor&&(o=e.constructor),n=e):"function"==typeof e&&(o=e),s(o,t);for(var r in n)n.hasOwnProperty(r)&&(o.prototype[r]=n[r]);return o};o["default"]=a,e.exports=o["default"]},{"./utils/log":123}],92:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}o.__esModule=!0;for(var r=t("global/document"),i=n(r),s={},a=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],l=a[0],u=void 0,c=0;c1&&this.show()},e.prototype.createMenu=function(){var t=new d["default"](this.player_);if(this.options_.title&&t.contentEl().appendChild(h.createEl("li",{className:"vjs-menu-title",innerHTML:A["default"](this.options_.title),tabIndex:-1})),this.items=this.createItems(),this.items)for(var e=0;e0&&this.items[0].el().focus()},e.prototype.unpressButton=function(){this.buttonPressed_=!1,this.menu.unlockShowing(),this.el_.setAttribute("aria-pressed",!1)},e}(l["default"]);c["default"].registerComponent("MenuButton",m),o["default"]=m,e.exports=o["default"]},{"../button.js":57,"../component.js":58,"../utils/dom.js":118,"../utils/fn.js":120,"../utils/to-title-case.js":127,"./menu.js":97}],96:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var s=t("../button.js"),a=n(s),l=t("../component.js"),u=n(l),c=t("object.assign"),p=n(c),d=function(t){function e(o,n){r(this,e),t.call(this,o,n),this.selected(n.selected)}return i(e,t),e.prototype.createEl=function(e,o,n){return t.prototype.createEl.call(this,"li",p["default"]({className:"vjs-menu-item",innerHTML:this.localize(this.options_.label)},o),n)},e.prototype.handleClick=function(){this.selected(!0)},e.prototype.selected=function(t){t?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-selected",!0)):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-selected",!1))},e}(a["default"]);u["default"].registerComponent("MenuItem",d),o["default"]=d,e.exports=o["default"]},{"../button.js":57,"../component.js":58,"object.assign":43}],97:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e["default"]=t,e}function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("../component.js"),l=r(a),u=t("../utils/dom.js"),c=n(u),p=t("../utils/fn.js"),d=n(p),f=t("../utils/events.js"),h=n(f),v=function(t){function e(){i(this,e),t.apply(this,arguments)}return s(e,t),e.prototype.addItem=function(t){this.addChild(t),t.on("click",d.bind(this,function(){this.unlockShowing()}))},e.prototype.createEl=function(){var e=this.options_.contentElType||"ul";this.contentEl_=c.createEl(e,{className:"vjs-menu-content"});var o=t.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return o.appendChild(this.contentEl_),h.on(o,"click",function(t){t.preventDefault(),t.stopImmediatePropagation()}),o},e}(l["default"]);l["default"].registerComponent("Menu",v),o["default"]=v,e.exports=o["default"]},{"../component.js":58,"../utils/dom.js":118,"../utils/events.js":119,"../utils/fn.js":120}],98:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e["default"]=t,e}function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("./component.js"),l=r(a),u=t("global/document"),c=r(u),p=t("global/window"),d=r(p),f=t("./utils/events.js"),h=n(f),v=t("./utils/dom.js"),g=n(v),y=t("./utils/fn.js"),A=n(y),m=t("./utils/guid.js"),b=n(m),j=t("./utils/browser.js"),w=(n(j),t("./utils/log.js")),_=r(w),k=t("./utils/to-title-case.js"),x=r(k),T=t("./utils/time-ranges.js"),E=t("./utils/buffer.js"),C=t("./utils/stylesheet.js"),S=n(C),O=t("./fullscreen-api.js"),B=r(O),P=t("./media-error.js"),M=r(P),I=t("safe-json-parse/tuple"),F=r(I),D=t("object.assign"),R=r(D),N=t("./utils/merge-options.js"),L=r(N),Q=t("./tracks/text-track-list-converter.js"),z=r(Q),H=t("./tech/loader.js"),Y=(r(H),t("./poster-image.js")),V=(r(Y),t("./tracks/text-track-display.js")),U=(r(V),t("./loading-spinner.js")),G=(r(U),t("./big-play-button.js")),W=(r(G),t("./control-bar/control-bar.js")),q=(r(W),t("./error-display.js")),J=(r(q),t("./tracks/text-track-settings.js")),K=(r(J),t("./tech/html5.js")),X=(r(K),function(t){function e(o,n,r){var s=this;if(i(this,e),o.id=o.id||"vjs_video_"+b.newGUID(),n=R["default"](e.getTagSettings(o),n),n.initChildren=!1,n.createEl=!1,n.reportTouchActivity=!1,t.call(this,null,n,r),!this.options_||!this.options_.techOrder||!this.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");this.tag=o,this.tagAttributes=o&&g.getElAttributes(o),this.language(this.options_.language),n.languages?!function(){var t={};Object.getOwnPropertyNames(n.languages).forEach(function(e){t[e.toLowerCase()]=n.languages[e]}),s.languages_=t}():this.languages_=e.prototype.options_.languages,this.cache_={},this.poster_=n.poster||"",this.controls_=!!n.controls,o.controls=!1,this.scrubbing_=!1,this.el_=this.createEl();var a=L["default"](this.options_);n.plugins&&!function(){var t=n.plugins;Object.getOwnPropertyNames(t).forEach(function(e){"function"==typeof this[e]?this[e](t[e]):_["default"].error("Unable to find plugin:",e)},s)}(),this.options_.playerOptions=a,this.initChildren(),this.isAudio("audio"===o.nodeName.toLowerCase()),this.addClass(this.controls()?"vjs-controls-enabled":"vjs-controls-disabled"),this.isAudio()&&this.addClass("vjs-audio"),this.flexNotSupported_()&&this.addClass("vjs-no-flex"),e.players[this.id_]=this,this.userActive(!0),this.reportUserActivity(),this.listenForUserActivity_(),this.on("fullscreenchange",this.handleFullscreenChange_),this.on("stageclick",this.handleStageClick_)}return s(e,t),e.prototype.dispose=function(){this.trigger("dispose"),this.off("dispose"),this.styleEl_&&this.styleEl_.parentNode.removeChild(this.styleEl_),e.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&this.tech_.dispose(),t.prototype.dispose.call(this)},e.prototype.createEl=function(){var e=this.el_=t.prototype.createEl.call(this,"div"),o=this.tag;o.removeAttribute("width"),o.removeAttribute("height");var n=g.getElAttributes(o);Object.getOwnPropertyNames(n).forEach(function(t){"class"===t?e.className=n[t]:e.setAttribute(t,n[t])}),o.id+="_html5_api",o.className="vjs-tech",o.player=e.player=this,this.addClass("vjs-paused"),this.styleEl_=S.createStyleElement("vjs-styles-dimensions");var r=c["default"].querySelector(".vjs-styles-defaults"),i=c["default"].querySelector("head");return i.insertBefore(this.styleEl_,r?r.nextSibling:i.firstChild),this.width(this.options_.width),this.height(this.options_.height),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),o.initNetworkState_=o.networkState,o.parentNode&&o.parentNode.insertBefore(e,o),g.insertElFirst(o,e),this.el_=e,e},e.prototype.width=function(t){return this.dimension("width",t)},e.prototype.height=function(t){return this.dimension("height",t)},e.prototype.dimension=function(t,e){var o=t+"_";if(void 0===e)return this[o]||0;if(""===e)this[o]=void 0;else{var n=parseFloat(e);if(isNaN(n))return _["default"].error('Improper value "'+e+'" supplied for for '+t),this;this[o]=n}return this.updateStyleEl_(),this},e.prototype.fluid=function(t){return void 0===t?!!this.fluid_:(this.fluid_=!!t,void(t?this.addClass("vjs-fluid"):this.removeClass("vjs-fluid")))},e.prototype.aspectRatio=function(t){if(void 0===t)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(t))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=t,this.fluid(!0),this.updateStyleEl_()},e.prototype.updateStyleEl_=function(){var t=void 0,e=void 0,o=void 0;o=void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()?this.videoWidth()+":"+this.videoHeight():"16:9";var n=o.split(":"),r=n[1]/n[0];t=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/r:this.videoWidth()||300,e=void 0!==this.height_?this.height_:t*r;var i=this.id()+"-dimensions";this.addClass(i),S.setTextContent(this.styleEl_,"\n ."+i+" {\n width: "+t+"px;\n height: "+e+"px;\n }\n\n ."+i+".vjs-fluid {\n padding-top: "+100*r+"%;\n }\n ")},e.prototype.loadTech_=function(t,e){this.tech_&&this.unloadTech_(),"Html5"!==t&&this.tag&&(l["default"].getComponent("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=t,this.isReady_=!1;var o=A.bind(this,function(){this.triggerReady()}),n=R["default"]({nativeControlsForTouch:this.options_.nativeControlsForTouch,source:e,playerId:this.id(),techId:this.id()+"_"+t+"_api",textTracks:this.textTracks_,autoplay:this.options_.autoplay,preload:this.options_.preload,loop:this.options_.loop,muted:this.options_.muted,poster:this.poster(),language:this.language(),"vtt.js":this.options_["vtt.js"]},this.options_[t.toLowerCase()]);this.tag&&(n.tag=this.tag),e&&(this.currentType_=e.type,e.src===this.cache_.src&&this.cache_.currentTime>0&&(n.startTime=this.cache_.currentTime),this.cache_.src=e.src);var r=l["default"].getComponent(t);this.tech_=new r(n),z["default"].jsonToTextTracks(this.textTracksJson_||[],this.tech_),this.on(this.tech_,"ready",this.handleTechReady_),this.on(this.tech_,"loadstart",this.handleTechLoadStart_),this.on(this.tech_,"waiting",this.handleTechWaiting_),this.on(this.tech_,"canplay",this.handleTechCanPlay_),this.on(this.tech_,"canplaythrough",this.handleTechCanPlayThrough_),this.on(this.tech_,"playing",this.handleTechPlaying_),this.on(this.tech_,"ended",this.handleTechEnded_),this.on(this.tech_,"seeking",this.handleTechSeeking_),this.on(this.tech_,"seeked",this.handleTechSeeked_),this.on(this.tech_,"play",this.handleTechPlay_),this.on(this.tech_,"firstplay",this.handleTechFirstPlay_),this.on(this.tech_,"pause",this.handleTechPause_),this.on(this.tech_,"progress",this.handleTechProgress_),this.on(this.tech_,"durationchange",this.handleTechDurationChange_),this.on(this.tech_,"fullscreenchange",this.handleTechFullscreenChange_),this.on(this.tech_,"error",this.handleTechError_),this.on(this.tech_,"suspend",this.handleTechSuspend_),this.on(this.tech_,"abort",this.handleTechAbort_),this.on(this.tech_,"emptied",this.handleTechEmptied_),this.on(this.tech_,"stalled",this.handleTechStalled_),this.on(this.tech_,"loadedmetadata",this.handleTechLoadedMetaData_),this.on(this.tech_,"loadeddata",this.handleTechLoadedData_),this.on(this.tech_,"timeupdate",this.handleTechTimeUpdate_),this.on(this.tech_,"ratechange",this.handleTechRateChange_),this.on(this.tech_,"volumechange",this.handleTechVolumeChange_),this.on(this.tech_,"texttrackchange",this.handleTechTextTrackChange_),this.on(this.tech_,"loadedmetadata",this.updateStyleEl_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===t&&this.tag||g.insertElFirst(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null),this.tech_.ready(o,!0)},e.prototype.unloadTech_=function(){this.textTracks_=this.textTracks(),this.textTracksJson_=z["default"].textTracksToJson(this),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1},e.prototype.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"mousedown",this.handleTechClick_),this.on(this.tech_,"touchstart",this.handleTechTouchStart_),this.on(this.tech_,"touchmove",this.handleTechTouchMove_),this.on(this.tech_,"touchend",this.handleTechTouchEnd_),this.on(this.tech_,"tap",this.handleTechTap_)},e.prototype.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.handleTechTap_),this.off(this.tech_,"touchstart",this.handleTechTouchStart_),this.off(this.tech_,"touchmove",this.handleTechTouchMove_),this.off(this.tech_,"touchend",this.handleTechTouchEnd_),this.off(this.tech_,"mousedown",this.handleTechClick_)},e.prototype.handleTechReady_=function(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechDurationChange_(),this.tag&&this.options_.autoplay&&this.paused()&&(delete this.tag.poster,this.play())},e.prototype.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.error(null),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay"))},e.prototype.hasStarted=function(t){return void 0!==t?(this.hasStarted_!==t&&(this.hasStarted_=t,t?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started")),this):!!this.hasStarted_},e.prototype.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},e.prototype.handleTechWaiting_=function(){this.addClass("vjs-waiting"),this.trigger("waiting")},e.prototype.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},e.prototype.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},e.prototype.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},e.prototype.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},e.prototype.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.trigger("seeked")},e.prototype.handleTechFirstPlay_=function(){this.options_.starttime&&this.currentTime(this.options_.starttime),this.addClass("vjs-has-started"),this.trigger("firstplay")},e.prototype.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},e.prototype.handleTechProgress_=function(){this.trigger("progress")},e.prototype.handleTechEnded_=function(){this.addClass("vjs-ended"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},e.prototype.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},e.prototype.handleTechClick_=function(t){0===t.button&&this.controls()&&(this.paused()?this.play():this.pause())},e.prototype.handleTechTap_=function(){this.userActive(!this.userActive())},e.prototype.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},e.prototype.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},e.prototype.handleTechTouchEnd_=function(t){t.preventDefault()},e.prototype.handleFullscreenChange_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},e.prototype.handleStageClick_=function(){this.reportUserActivity()},e.prototype.handleTechFullscreenChange_=function(t,e){e&&this.isFullscreen(e.isFullscreen),this.trigger("fullscreenchange")},e.prototype.handleTechError_=function(){var t=this.tech_.error();this.error(t&&t.code)},e.prototype.handleTechSuspend_=function(){this.trigger("suspend")},e.prototype.handleTechAbort_=function(){this.trigger("abort")},e.prototype.handleTechEmptied_=function(){this.trigger("emptied")},e.prototype.handleTechStalled_=function(){this.trigger("stalled")},e.prototype.handleTechLoadedMetaData_=function(){this.trigger("loadedmetadata")},e.prototype.handleTechLoadedData_=function(){this.trigger("loadeddata")},e.prototype.handleTechTimeUpdate_=function(){this.trigger("timeupdate")},e.prototype.handleTechRateChange_=function(){this.trigger("ratechange")},e.prototype.handleTechVolumeChange_=function(){this.trigger("volumechange")},e.prototype.handleTechTextTrackChange_=function(){this.trigger("texttrackchange")},e.prototype.getCache=function(){return this.cache_},e.prototype.techCall_=function(t,e){if(this.tech_&&!this.tech_.isReady_)this.tech_.ready(function(){this[t](e)},!0);else try{this.tech_[t](e)}catch(o){throw _["default"](o),o}},e.prototype.techGet_=function(t){if(this.tech_&&this.tech_.isReady_)try{return this.tech_[t]()}catch(e){throw void 0===this.tech_[t]?_["default"]("Video.js: "+t+" method not defined for "+this.techName_+" playback technology.",e):"TypeError"===e.name?(_["default"]("Video.js: "+t+" unavailable on "+this.techName_+" playback technology element.",e),this.tech_.isReady_=!1):_["default"](e),e}},e.prototype.play=function(){return this.techCall_("play"),this},e.prototype.pause=function(){return this.techCall_("pause"),this},e.prototype.paused=function(){return this.techGet_("paused")===!1?!1:!0},e.prototype.scrubbing=function(t){return void 0!==t?(this.scrubbing_=!!t,t?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing"),this):this.scrubbing_},e.prototype.currentTime=function(t){return void 0!==t?(this.techCall_("setCurrentTime",t),this):this.cache_.currentTime=this.techGet_("currentTime")||0},e.prototype.duration=function(t){return void 0===t?this.cache_.duration||0:(t=parseFloat(t)||0,0>t&&(t=1/0),t!==this.cache_.duration&&(this.cache_.duration=t,t===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),this.trigger("durationchange")),this)},e.prototype.remainingTime=function(){return this.duration()-this.currentTime()},e.prototype.buffered=function o(){var o=this.techGet_("buffered");return o&&o.length||(o=T.createTimeRange(0,0)),o},e.prototype.bufferedPercent=function(){return E.bufferedPercent(this.buffered(),this.duration())},e.prototype.bufferedEnd=function(){var t=this.buffered(),e=this.duration(),o=t.end(t.length-1);return o>e&&(o=e),o},e.prototype.volume=function(t){var e=void 0;return void 0!==t?(e=Math.max(0,Math.min(1,parseFloat(t))),this.cache_.volume=e,this.techCall_("setVolume",e),this):(e=parseFloat(this.techGet_("volume")),isNaN(e)?1:e)},e.prototype.muted=function(t){return void 0!==t?(this.techCall_("setMuted",t),this):this.techGet_("muted")||!1},e.prototype.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},e.prototype.isFullscreen=function(t){return void 0!==t?(this.isFullscreen_=!!t,this):!!this.isFullscreen_},e.prototype.requestFullscreen=function(){var t=B["default"];return this.isFullscreen(!0),t.requestFullscreen?(h.on(c["default"],t.fullscreenchange,A.bind(this,function e(){this.isFullscreen(c["default"][t.fullscreenElement]),this.isFullscreen()===!1&&h.off(c["default"],t.fullscreenchange,e),this.trigger("fullscreenchange")})),this.el_[t.requestFullscreen]()):this.tech_.supportsFullScreen()?this.techCall_("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange")),this},e.prototype.exitFullscreen=function(){var t=B["default"];return this.isFullscreen(!1),t.requestFullscreen?c["default"][t.exitFullscreen]():this.tech_.supportsFullScreen()?this.techCall_("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange")),this},e.prototype.enterFullWindow=function(){this.isFullWindow=!0,this.docOrigOverflow=c["default"].documentElement.style.overflow,h.on(c["default"],"keydown",A.bind(this,this.fullWindowOnEscKey)),c["default"].documentElement.style.overflow="hidden",g.addElClass(c["default"].body,"vjs-full-window"),this.trigger("enterFullWindow")},e.prototype.fullWindowOnEscKey=function(t){27===t.keyCode&&(this.isFullscreen()===!0?this.exitFullscreen():this.exitFullWindow())},e.prototype.exitFullWindow=function(){this.isFullWindow=!1,h.off(c["default"],"keydown",this.fullWindowOnEscKey),c["default"].documentElement.style.overflow=this.docOrigOverflow,g.removeElClass(c["default"].body,"vjs-full-window"),this.trigger("exitFullWindow")},e.prototype.selectSource=function(t){for(var e=0,o=this.options_.techOrder;e0&&(a=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},t))}},250)},e.prototype.playbackRate=function(t){return void 0!==t?(this.techCall_("setPlaybackRate",t),this):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("playbackRate"):1},e.prototype.isAudio=function(t){return void 0!==t?(this.isAudio_=!!t,this):!!this.isAudio_},e.prototype.networkState=function(){return this.techGet_("networkState")},e.prototype.readyState=function(){return this.techGet_("readyState")},e.prototype.textTracks=function(){return this.tech_&&this.tech_.textTracks()},e.prototype.remoteTextTracks=function(){return this.tech_&&this.tech_.remoteTextTracks()},e.prototype.addTextTrack=function(t,e,o){return this.tech_&&this.tech_.addTextTrack(t,e,o)},e.prototype.addRemoteTextTrack=function(t){return this.tech_&&this.tech_.addRemoteTextTrack(t)},e.prototype.removeRemoteTextTrack=function(t){this.tech_&&this.tech_.removeRemoteTextTrack(t)},e.prototype.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},e.prototype.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},e.prototype.language=function(t){return void 0===t?this.language_:(this.language_=(""+t).toLowerCase(),this)},e.prototype.languages=function(){return L["default"](e.prototype.options_.languages,this.languages_)},e.prototype.toJSON=function(){var t=L["default"](this.options_),e=t.tracks;t.tracks=[];for(var o=0;ol;l++){var c=a[l],p=c.nodeName.toLowerCase();"source"===p?e.sources.push(g.getElAttributes(c)):"track"===p&&e.tracks.push(g.getElAttributes(c))}return e},e}(l["default"]));X.players={};var Z=d["default"].navigator;X.prototype.options_={techOrder:["html5","flash"],html5:{},flash:{},defaultVolume:0,inactivityTimeout:2e3,playbackRates:[],children:{mediaLoader:{},posterImage:{},textTrackDisplay:{},loadingSpinner:{},bigPlayButton:{},controlBar:{},errorDisplay:{},textTrackSettings:{}},language:c["default"].getElementsByTagName("html")[0].getAttribute("lang")||Z.languages&&Z.languages[0]||Z.userLanguage||Z.language||"en",languages:{},notSupportedMessage:"No compatible source was found for this video."},X.prototype.handleLoadedMetaData_,X.prototype.handleLoadedData_,X.prototype.handleUserActive_,X.prototype.handleUserInactive_,X.prototype.handleTimeUpdate_,X.prototype.handleVolumeChange_,X.prototype.handleError_,X.prototype.flexNotSupported_=function(){var t=c["default"].createElement("i");return!("flexBasis"in t.style||"webkitFlexBasis"in t.style||"mozFlexBasis"in t.style||"msFlexBasis"in t.style||"msFlexOrder"in t.style)},l["default"].registerComponent("Player",X),o["default"]=X,e.exports=o["default"]},{"./big-play-button.js":56,"./component.js":58,"./control-bar/control-bar.js":59,"./error-display.js":89,"./fullscreen-api.js":92,"./loading-spinner.js":93,"./media-error.js":94,"./poster-image.js":100,"./tech/html5.js":105,"./tech/loader.js":106,"./tracks/text-track-display.js":109,"./tracks/text-track-list-converter.js":111,"./tracks/text-track-settings.js":113,"./utils/browser.js":115,"./utils/buffer.js":116,"./utils/dom.js":118,"./utils/events.js":119,"./utils/fn.js":120,"./utils/guid.js":122,"./utils/log.js":123,"./utils/merge-options.js":124,"./utils/stylesheet.js":125,"./utils/time-ranges.js":126,"./utils/to-title-case.js":127,"global/document":1,"global/window":2,"object.assign":43,"safe-json-parse/tuple":48}],99:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}o.__esModule=!0;var r=t("./player.js"),i=n(r),s=function(t,e){i["default"].prototype[t]=e};o["default"]=s, +e.exports=o["default"]},{"./player.js":98}],100:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e["default"]=t,e}function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("./button.js"),l=r(a),u=t("./component.js"),c=r(u),p=t("./utils/fn.js"),d=n(p),f=t("./utils/dom.js"),h=n(f),v=t("./utils/browser.js"),g=n(v),y=function(t){function e(o,n){i(this,e),t.call(this,o,n),this.update(),o.on("posterchange",d.bind(this,this.update))}return s(e,t),e.prototype.dispose=function(){this.player().off("posterchange",this.update),t.prototype.dispose.call(this)},e.prototype.createEl=function(){var t=h.createEl("div",{className:"vjs-poster",tabIndex:-1});return g.BACKGROUND_SIZE_SUPPORTED||(this.fallbackImg_=h.createEl("img"),t.appendChild(this.fallbackImg_)),t},e.prototype.update=function(){var t=this.player().poster();this.setSrc(t),t?this.show():this.hide()},e.prototype.setSrc=function(t){if(this.fallbackImg_)this.fallbackImg_.src=t;else{var e="";t&&(e='url("'+t+'")'),this.el_.style.backgroundImage=e}},e.prototype.handleClick=function(){this.player_.paused()?this.player_.play():this.player_.pause()},e}(l["default"]);c["default"].registerComponent("PosterImage",y),o["default"]=y,e.exports=o["default"]},{"./button.js":57,"./component.js":58,"./utils/browser.js":115,"./utils/dom.js":118,"./utils/fn.js":120}],101:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e["default"]=t,e}o.__esModule=!0;var i=t("./utils/events.js"),s=r(i),a=t("global/document"),l=n(a),u=t("global/window"),c=n(u),p=!1,d=void 0,f=function(){var t=l["default"].getElementsByTagName("video"),e=l["default"].getElementsByTagName("audio"),o=[];if(t&&t.length>0)for(var n=0,r=t.length;r>n;n++)o.push(t[n]);if(e&&e.length>0)for(var n=0,r=e.length;r>n;n++)o.push(e[n]);if(o&&o.length>0)for(var n=0,r=o.length;r>n;n++){var i=o[n];if(!i||!i.getAttribute){h(1);break}if(void 0===i.player){var s=i.getAttribute("data-setup");null!==s&&d(i)}}else p||h(1)},h=function(t,e){d=e,setTimeout(f,t)};"complete"===l["default"].readyState?p=!0:s.one(c["default"],"load",function(){p=!0});var v=function(){return p};o.autoSetup=f,o.autoSetupTimeout=h,o.hasLoaded=v},{"./utils/events.js":119,"global/document":1,"global/window":2}],102:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e["default"]=t,e}function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("../component.js"),l=r(a),u=t("../utils/dom.js"),c=n(u),p=t("global/document"),d=r(p),f=t("object.assign"),h=r(f),v=function(t){function e(o,n){i(this,e),t.call(this,o,n),this.bar=this.getChild(this.options_.barName),this.vertical(!!this.options_.vertical),this.on("mousedown",this.handleMouseDown),this.on("touchstart",this.handleMouseDown),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur),this.on("click",this.handleClick),this.on(o,"controlsvisible",this.update),this.on(o,this.playerEvent,this.update)}return s(e,t),e.prototype.createEl=function(e){var o=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=arguments.length<=2||void 0===arguments[2]?{}:arguments[2];return o.className=o.className+" vjs-slider",o=h["default"]({tabIndex:0},o),n=h["default"]({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},n),t.prototype.createEl.call(this,e,o,n)},e.prototype.handleMouseDown=function(t){t.preventDefault(),c.blockTextSelection(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(d["default"],"mousemove",this.handleMouseMove),this.on(d["default"],"mouseup",this.handleMouseUp),this.on(d["default"],"touchmove",this.handleMouseMove),this.on(d["default"],"touchend",this.handleMouseUp),this.handleMouseMove(t)},e.prototype.handleMouseMove=function(){},e.prototype.handleMouseUp=function(){c.unblockTextSelection(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(d["default"],"mousemove",this.handleMouseMove),this.off(d["default"],"mouseup",this.handleMouseUp),this.off(d["default"],"touchmove",this.handleMouseMove),this.off(d["default"],"touchend",this.handleMouseUp),this.update()},e.prototype.update=function(){if(this.el_){var t=this.getPercent(),e=this.bar;if(e){("number"!=typeof t||t!==t||0>t||t===1/0)&&(t=0);var o=(100*t).toFixed(2)+"%";this.vertical()?e.el().style.height=o:e.el().style.width=o}}},e.prototype.calculateDistance=function(t){var e=c.getPointerPosition(this.el_,t);return this.vertical()?e.y:e.x},e.prototype.handleFocus=function(){this.on(d["default"],"keydown",this.handleKeyPress)},e.prototype.handleKeyPress=function(t){37===t.which||40===t.which?(t.preventDefault(),this.stepBack()):(38===t.which||39===t.which)&&(t.preventDefault(),this.stepForward())},e.prototype.handleBlur=function(){this.off(d["default"],"keydown",this.handleKeyPress)},e.prototype.handleClick=function(t){t.stopImmediatePropagation(),t.preventDefault()},e.prototype.vertical=function(t){return void 0===t?this.vertical_||!1:(this.vertical_=!!t,this.addClass(this.vertical_?"vjs-slider-vertical":"vjs-slider-horizontal"),this)},e}(l["default"]);l["default"].registerComponent("Slider",v),o["default"]=v,e.exports=o["default"]},{"../component.js":58,"../utils/dom.js":118,"global/document":1,"object.assign":43}],103:[function(t,e,o){"use strict";function n(t){return t.streamingFormats={"rtmp/mp4":"MP4","rtmp/flv":"FLV"},t.streamFromParts=function(t,e){return t+"&"+e},t.streamToParts=function(t){var e={connection:"",stream:""};if(!t)return e;var o=t.indexOf("&"),n=void 0;return-1!==o?n=o+1:(o=n=t.lastIndexOf("/")+1,0===o&&(o=n=t.length)),e.connection=t.substring(0,o),e.stream=t.substring(n,t.length),e},t.isStreamingType=function(e){return e in t.streamingFormats},t.RTMP_RE=/^rtmp[set]?:\/\//i,t.isStreamingSrc=function(e){return t.RTMP_RE.test(e)},t.rtmpSourceHandler={},t.rtmpSourceHandler.canHandleSource=function(e){return t.isStreamingType(e.type)||t.isStreamingSrc(e.src)?"maybe":""},t.rtmpSourceHandler.handleSource=function(e,o){var n=t.streamToParts(e.src);o.setRtmpConnection(n.connection),o.setRtmpStream(n.stream)},t.registerSourceHandler(t.rtmpSourceHandler),t}o.__esModule=!0,o["default"]=n,e.exports=o["default"]},{}],104:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e["default"]=t,e}function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t){var e=t.charAt(0).toUpperCase()+t.slice(1);T["set"+e]=function(e){return this.el_.vjs_setProperty(t,e)}}function l(t){T[t]=function(){return this.el_.vjs_getProperty(t)}}o.__esModule=!0;for(var u=t("./tech"),c=r(u),p=t("../utils/dom.js"),d=n(p),f=t("../utils/url.js"),h=n(f),v=t("../utils/time-ranges.js"),g=t("./flash-rtmp"),y=r(g),A=t("../component"),m=r(A),b=t("global/window"),j=r(b),w=t("object.assign"),_=r(w),k=j["default"].navigator,x=function(t){function e(o,n){i(this,e),t.call(this,o,n),o.source&&this.ready(function(){this.setSource(o.source)},!0),o.startTime&&this.ready(function(){this.load(),this.play(),this.currentTime(o.startTime)},!0),j["default"].videojs=j["default"].videojs||{},j["default"].videojs.Flash=j["default"].videojs.Flash||{},j["default"].videojs.Flash.onReady=e.onReady,j["default"].videojs.Flash.onEvent=e.onEvent,j["default"].videojs.Flash.onError=e.onError,this.on("seeked",function(){this.lastSeekTarget_=void 0})}return s(e,t),e.prototype.createEl=function(){var t=this.options_;t.swf||(t.swf="//vjs.zencdn.net/swf/5.0.0-rc1/video-js.swf");var o=t.techId,n=_["default"]({readyFunction:"videojs.Flash.onReady",eventProxyFunction:"videojs.Flash.onEvent",errorEventProxyFunction:"videojs.Flash.onError",autoplay:t.autoplay,preload:t.preload,loop:t.loop,muted:t.muted},t.flashVars),r=_["default"]({wmode:"opaque",bgcolor:"#000000"},t.params),i=_["default"]({id:o,name:o,"class":"vjs-tech"},t.attributes);return this.el_=e.embed(t.swf,n,r,i),this.el_.tech=this,this.el_},e.prototype.play=function(){this.ended()&&this.setCurrentTime(0),this.el_.vjs_play()},e.prototype.pause=function(){this.el_.vjs_pause()},e.prototype.src=function(t){return void 0===t?this.currentSrc():this.setSrc(t)},e.prototype.setSrc=function(t){if(t=h.getAbsoluteURL(t),this.el_.vjs_src(t),this.autoplay()){var e=this;this.setTimeout(function(){e.play()},0)}},e.prototype.seeking=function(){return void 0!==this.lastSeekTarget_},e.prototype.setCurrentTime=function(e){var o=this.seekable();o.length&&(e=e>o.start(0)?e:o.start(0),e=e=10},c["default"].withSourceHandlers(x),x.nativeSourceHandler={},x.nativeSourceHandler.canHandleSource=function(t){function e(t){var e=h.getFileExtension(t);return e?"video/"+e:""}var o;return o=t.type?t.type.replace(/;.*/,"").toLowerCase():e(t.src),o in x.formats?"maybe":""},x.nativeSourceHandler.handleSource=function(t,e){e.setSrc(t.src)},x.nativeSourceHandler.dispose=function(){},x.registerSourceHandler(x.nativeSourceHandler),x.formats={"video/flv":"FLV","video/x-flv":"FLV","video/mp4":"MP4","video/m4v":"MP4"},x.onReady=function(t){var e=d.getEl(t),o=e&&e.tech;o&&o.el()&&x.checkReady(o)},x.checkReady=function(t){t.el()&&(t.el().vjs_getProperty?t.triggerReady():this.setTimeout(function(){x.checkReady(t)},50))},x.onEvent=function(t,e){var o=d.getEl(t).tech;o.trigger(e)},x.onError=function(t,e){var o=d.getEl(t).tech;return"srcnotfound"===e?o.error(4):void o.error("FLASH: "+e)},x.version=function(){var t="0,0,0";try{t=new j["default"].ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}catch(e){try{k.mimeTypes["application/x-shockwave-flash"].enabledPlugin&&(t=(k.plugins["Shockwave Flash 2.0"]||k.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1])}catch(o){}}return t.split(",")},x.embed=function(t,e,o,n){var r=x.getEmbedCode(t,e,o,n),i=d.createEl("div",{innerHTML:r}).childNodes[0];return i},x.getEmbedCode=function(t,e,o,n){var r=''}),n=_["default"]({data:t,width:"100%",height:"100%"},n),Object.getOwnPropertyNames(n).forEach(function(t){a+=t+'="'+n[t]+'" '}),""+r+a+">"+s+""},y["default"](x),m["default"].registerComponent("Flash",x),o["default"]=x,e.exports=o["default"]},{"../component":58,"../utils/dom.js":118,"../utils/time-ranges.js":126,"../utils/url.js":128,"./flash-rtmp":103,"./tech":107,"global/window":2,"object.assign":43}],105:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e["default"]=t,e}function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("./tech.js"),l=r(a),u=t("../component"),c=r(u),p=t("../utils/dom.js"),d=n(p),f=t("../utils/url.js"),h=n(f),v=t("../utils/fn.js"),g=n(v),y=t("../utils/log.js"),A=r(y),m=t("../utils/browser.js"),b=n(m),j=t("global/document"),w=r(j),_=t("global/window"),k=r(_),x=t("object.assign"),T=r(x),E=t("../utils/merge-options.js"),C=r(E),S=function(t){function e(o,n){i(this,e),t.call(this,o,n);var r=o.source;if(r&&(this.el_.currentSrc!==r.src||o.tag&&3===o.tag.initNetworkState_)&&this.setSource(r),this.el_.hasChildNodes()){for(var s=this.el_.childNodes,a=s.length,l=[];a--;){var u=s[a],c=u.nodeName.toLowerCase();"track"===c&&(this.featuresNativeTextTracks?this.remoteTextTracks().addTrack_(u.track):l.push(u))}for(var p=0;p=0;s--){var a=i[s],l={};"undefined"!=typeof this.options_[a]&&(l[a]=this.options_[a]),d.setElAttributes(t,l)}return t},e.prototype.proxyNativeTextTracks_=function(){var t=this.el().textTracks;t&&t.addEventListener&&(t.addEventListener("change",this.handleTextTrackChange_),t.addEventListener("addtrack",this.handleTextTrackAdd_),t.addEventListener("removetrack",this.handleTextTrackRemove_))},e.prototype.handleTextTrackChange=function(){var t=this.textTracks();this.textTracks().trigger({type:"change",target:t,currentTarget:t,srcElement:t})},e.prototype.handleTextTrackAdd=function(t){this.textTracks().addTrack_(t.track)},e.prototype.handleTextTrackRemove=function(t){this.textTracks().removeTrack_(t.track)},e.prototype.play=function(){this.el_.play()},e.prototype.pause=function(){this.el_.pause()},e.prototype.paused=function(){return this.el_.paused},e.prototype.currentTime=function(){return this.el_.currentTime},e.prototype.setCurrentTime=function(t){try{this.el_.currentTime=t}catch(e){A["default"](e,"Video is not ready. (Video.js)")}},e.prototype.duration=function(){return this.el_.duration||0},e.prototype.buffered=function(){return this.el_.buffered},e.prototype.volume=function(){return this.el_.volume},e.prototype.setVolume=function(t){this.el_.volume=t},e.prototype.muted=function(){return this.el_.muted},e.prototype.setMuted=function(t){this.el_.muted=t},e.prototype.width=function(){return this.el_.offsetWidth},e.prototype.height=function(){return this.el_.offsetHeight},e.prototype.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var t=k["default"].navigator.userAgent;if(/Android/.test(t)||!/Chrome|Mac OS X 10.5/.test(t))return!0}return!1},e.prototype.enterFullScreen=function(){var t=this.el_;"webkitDisplayingFullscreen"in t&&this.one("webkitbeginfullscreen",function(){this.one("webkitendfullscreen",function(){this.trigger("fullscreenchange",{isFullscreen:!1})}),this.trigger("fullscreenchange",{isFullscreen:!0})}),t.paused&&t.networkState<=t.HAVE_METADATA?(this.el_.play(),this.setTimeout(function(){t.pause(),t.webkitEnterFullScreen()},0)):t.webkitEnterFullScreen()},e.prototype.exitFullScreen=function(){this.el_.webkitExitFullScreen()},e.prototype.src=function(t){return void 0===t?this.el_.src:void this.setSrc(t)},e.prototype.setSrc=function(t){this.el_.src=t},e.prototype.load=function(){this.el_.load()},e.prototype.currentSrc=function(){return this.el_.currentSrc},e.prototype.poster=function(){return this.el_.poster},e.prototype.setPoster=function(t){this.el_.poster=t},e.prototype.preload=function(){return this.el_.preload},e.prototype.setPreload=function(t){this.el_.preload=t},e.prototype.autoplay=function(){return this.el_.autoplay},e.prototype.setAutoplay=function(t){this.el_.autoplay=t},e.prototype.controls=function(){return this.el_.controls},e.prototype.setControls=function(t){this.el_.controls=!!t},e.prototype.loop=function(){return this.el_.loop},e.prototype.setLoop=function(t){this.el_.loop=t},e.prototype.error=function(){return this.el_.error},e.prototype.seeking=function(){return this.el_.seeking},e.prototype.seekable=function(){return this.el_.seekable},e.prototype.ended=function(){return this.el_.ended},e.prototype.defaultMuted=function(){return this.el_.defaultMuted},e.prototype.playbackRate=function(){return this.el_.playbackRate},e.prototype.played=function(){return this.el_.played},e.prototype.setPlaybackRate=function(t){this.el_.playbackRate=t},e.prototype.networkState=function(){return this.el_.networkState},e.prototype.readyState=function(){return this.el_.readyState},e.prototype.videoWidth=function(){return this.el_.videoWidth},e.prototype.videoHeight=function(){return this.el_.videoHeight},e.prototype.textTracks=function(){return t.prototype.textTracks.call(this)},e.prototype.addTextTrack=function(e,o,n){return this.featuresNativeTextTracks?this.el_.addTextTrack(e,o,n):t.prototype.addTextTrack.call(this,e,o,n)},e.prototype.addRemoteTextTrack=function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];if(!this.featuresNativeTextTracks)return t.prototype.addRemoteTextTrack.call(this,e);var o=w["default"].createElement("track");return e.kind&&(o.kind=e.kind),e.label&&(o.label=e.label),(e.language||e.srclang)&&(o.srclang=e.language||e.srclang),e["default"]&&(o["default"]=e["default"]),e.id&&(o.id=e.id),e.src&&(o.src=e.src),this.el().appendChild(o),this.remoteTextTracks().addTrack_(o.track),o},e.prototype.removeRemoteTextTrack=function(e){if(!this.featuresNativeTextTracks)return t.prototype.removeRemoteTextTrack.call(this,e);var o,n;for(this.remoteTextTracks().removeTrack_(e),o=this.el().querySelectorAll("track"),n=o.length;n--;)(e===o[n]||e===o[n].track)&&this.el().removeChild(o[n])},e}(l["default"]);S.TEST_VID=w["default"].createElement("video");var O=w["default"].createElement("track");O.kind="captions",O.srclang="en",O.label="English",S.TEST_VID.appendChild(O),S.isSupported=function(){try{S.TEST_VID.volume=.5}catch(t){return!1}return!!S.TEST_VID.canPlayType},l["default"].withSourceHandlers(S),S.nativeSourceHandler={},S.nativeSourceHandler.canHandleSource=function(t){function e(t){try{return S.TEST_VID.canPlayType(t)}catch(e){return""}}var o;return t.type?e(t.type):t.src?(o=h.getFileExtension(t.src),e("video/"+o)):""},S.nativeSourceHandler.handleSource=function(t,e){e.setSrc(t.src)},S.nativeSourceHandler.dispose=function(){},S.registerSourceHandler(S.nativeSourceHandler),S.canControlVolume=function(){var t=S.TEST_VID.volume;return S.TEST_VID.volume=t/2+.1,t!==S.TEST_VID.volume},S.canControlPlaybackRate=function(){var t=S.TEST_VID.playbackRate;return S.TEST_VID.playbackRate=t/2+.1,t!==S.TEST_VID.playbackRate},S.supportsNativeTextTracks=function(){var t;return t=!!S.TEST_VID.textTracks,t&&S.TEST_VID.textTracks.length>0&&(t="number"!=typeof S.TEST_VID.textTracks[0].mode),t&&b.IS_FIREFOX&&(t=!1),!t||"onremovetrack"in S.TEST_VID.textTracks||(t=!1),t},S.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","volumechange"],S.prototype.featuresVolumeControl=S.canControlVolume(),S.prototype.featuresPlaybackRate=S.canControlPlaybackRate(),S.prototype.movingMediaElementInDOM=!b.IS_IOS,S.prototype.featuresFullscreenResize=!0,S.prototype.featuresProgressEvents=!0,S.prototype.featuresNativeTextTracks=S.supportsNativeTextTracks();var B=void 0,P=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,M=/^video\/mp4/i;S.patchCanPlayType=function(){b.ANDROID_VERSION>=4&&(B||(B=S.TEST_VID.constructor.prototype.canPlayType),S.TEST_VID.constructor.prototype.canPlayType=function(t){return t&&P.test(t)?"maybe":B.call(this,t)}),b.IS_OLD_ANDROID&&(B||(B=S.TEST_VID.constructor.prototype.canPlayType),S.TEST_VID.constructor.prototype.canPlayType=function(t){return t&&M.test(t)?"maybe":B.call(this,t)})},S.unpatchCanPlayType=function(){var t=S.TEST_VID.constructor.prototype.canPlayType;return S.TEST_VID.constructor.prototype.canPlayType=B,B=null,t},S.patchCanPlayType(),S.disposeMediaElement=function(t){if(t){for(t.parentNode&&t.parentNode.removeChild(t);t.hasChildNodes();)t.removeChild(t.firstChild);t.removeAttribute("src"),"function"==typeof t.load&&!function(){try{t.load()}catch(e){}}()}},c["default"].registerComponent("Html5",S),o["default"]=S,e.exports=o["default"]},{"../component":58,"../utils/browser.js":115,"../utils/dom.js":118,"../utils/fn.js":120,"../utils/log.js":123,"../utils/merge-options.js":124,"../utils/url.js":128,"./tech.js":107,"global/document":1,"global/window":2,"object.assign":43}],106:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var s=t("../component"),a=n(s),l=t("global/window"),u=(n(l),t("../utils/to-title-case.js")),c=n(u),p=function(t){function e(o,n,i){if(r(this,e),t.call(this,o,n,i),n.playerOptions.sources&&0!==n.playerOptions.sources.length)o.src(n.playerOptions.sources);else for(var s=0,l=n.playerOptions.techOrder;s0&&this.trigger("loadstart")},!0)},e.prototype.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},e.prototype.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},e.prototype.trackProgress=function(){this.stopTrackingProgress(),this.progressInterval=this.setInterval(h.bind(this,function(){var t=this.bufferedPercent();this.bufferedPercent_!==t&&this.trigger("progress"),this.bufferedPercent_=t,1===t&&this.stopTrackingProgress()}),500)},e.prototype.onDurationChange=function(){this.duration_=this.duration()},e.prototype.buffered=function(){return y.createTimeRange(0,0)},e.prototype.bufferedPercent=function(){return A.bufferedPercent(this.buffered(),this.duration_)},e.prototype.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},e.prototype.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},e.prototype.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},e.prototype.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},e.prototype.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},e.prototype.dispose=function(){var e=this.textTracks();if(e)for(var o=e.length;o--;)this.removeRemoteTextTrack(e[o]);this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),t.prototype.dispose.call(this)},e.prototype.error=function(t){return void 0!==t&&(this.error_=t instanceof b["default"]?t:new b["default"](t),this.trigger("error")),this.error_},e.prototype.played=function(){return this.hasStarted_?y.createTimeRange(0,0):y.createTimeRange()},e.prototype.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},e.prototype.initTextTrackListeners=function(){var t=h.bind(this,function(){this.trigger("texttrackchange")}),e=this.textTracks();e&&(e.addEventListener("removetrack",t),e.addEventListener("addtrack",t),this.on("dispose",h.bind(this,function(){e.removeEventListener("removetrack",t),e.removeEventListener("addtrack",t)})))},e.prototype.emulateTextTracks=function(){if(!w["default"].WebVTT&&null!=this.el().parentNode){var t=k["default"].createElement("script");t.src=this.options_["vtt.js"]||"../node_modules/vtt.js/dist/vtt.js",this.el().parentNode.appendChild(t),w["default"].WebVTT=!0}var e=this.textTracks();if(e){var o=h.bind(this,function(){var t=this,o=function(){return t.trigger("texttrackchange")};o();for(var n=0;ne)for(o=e;n>o;o++)r.call(this,o)},u.prototype.getCueById=function(t){for(var e=null,o=0,n=this.length;n>o;o++){var r=this[o];if(r.id===t){e=r;break}}return e},o["default"]=u,e.exports=o["default"]},{"../utils/browser.js":115,"global/document":1}],109:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e["default"]=t,e}function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t,e){return"rgba("+parseInt(t[1]+t[1],16)+","+parseInt(t[2]+t[2],16)+","+parseInt(t[3]+t[3],16)+","+e+")"}function l(t,e,o){try{t.style[e]=o}catch(n){}}o.__esModule=!0;var u=t("../component"),c=r(u),p=t("../menu/menu.js"),d=(r(p),t("../menu/menu-item.js")),f=(r(d),t("../menu/menu-button.js")),h=(r(f),t("../utils/fn.js")),v=n(h),g=t("global/document"),y=(r(g),t("global/window")),A=r(y),m="#222",b="#ccc",j={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'},w=function(t){function e(o,n,r){i(this,e),t.call(this,o,n,r),o.on("loadstart",v.bind(this,this.toggleDisplay)),o.on("texttrackchange",v.bind(this,this.updateDisplay)),o.ready(v.bind(this,function(){if(o.tech_&&o.tech_.featuresNativeTextTracks)return void this.hide();o.on("fullscreenchange",v.bind(this,this.updateDisplay));for(var t=this.options_.playerOptions.tracks||[],e=0;eo;o++)if(e=this[o],e===t){this.tracks_.splice(o,1);break}this.trigger({type:"removetrack",track:e})},f.prototype.getTrackById=function(t){for(var e=null,o=0,n=this.length;n>o;o++){var r=this[o];if(r.id===t){e=r;break}}return e},o["default"]=f,e.exports=o["default"]},{"../event-target":90,"../utils/browser.js":115,"../utils/fn.js":120,"global/document":1}],113:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e["default"]=t,e}function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t){var e=void 0;return t.selectedOptions?e=t.selectedOptions[0]:t.options&&(e=t.options[t.options.selectedIndex]),e.value}function l(t,e){if(e){var o=void 0;for(o=0;o select").selectedIndex=0,this.el().querySelector(".vjs-bg-color > select").selectedIndex=0,this.el().querySelector(".window-color > select").selectedIndex=0,this.el().querySelector(".vjs-text-opacity > select").selectedIndex=0,this.el().querySelector(".vjs-bg-opacity > select").selectedIndex=0,this.el().querySelector(".vjs-window-opacity > select").selectedIndex=0,this.el().querySelector(".vjs-edge-style select").selectedIndex=0,this.el().querySelector(".vjs-font-family select").selectedIndex=0,this.el().querySelector(".vjs-font-percent select").selectedIndex=2,this.updateDisplay()})),f.on(this.el().querySelector(".vjs-fg-color > select"),"change",v.bind(this,this.updateDisplay)),f.on(this.el().querySelector(".vjs-bg-color > select"),"change",v.bind(this,this.updateDisplay)),f.on(this.el().querySelector(".window-color > select"),"change",v.bind(this,this.updateDisplay)),f.on(this.el().querySelector(".vjs-text-opacity > select"),"change",v.bind(this,this.updateDisplay)),f.on(this.el().querySelector(".vjs-bg-opacity > select"),"change",v.bind(this,this.updateDisplay)),f.on(this.el().querySelector(".vjs-window-opacity > select"),"change",v.bind(this,this.updateDisplay)),f.on(this.el().querySelector(".vjs-font-percent select"),"change",v.bind(this,this.updateDisplay)),f.on(this.el().querySelector(".vjs-edge-style select"),"change",v.bind(this,this.updateDisplay)),f.on(this.el().querySelector(".vjs-font-family select"),"change",v.bind(this,this.updateDisplay)),this.options_.persistTextTrackSettings&&this.restoreSettings()}return s(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-caption-settings vjs-modal-overlay",innerHTML:u()})},e.prototype.getValues=function(){var t=this.el(),e=a(t.querySelector(".vjs-edge-style select")),o=a(t.querySelector(".vjs-font-family select")),n=a(t.querySelector(".vjs-fg-color > select")),r=a(t.querySelector(".vjs-text-opacity > select")),i=a(t.querySelector(".vjs-bg-color > select")),s=a(t.querySelector(".vjs-bg-opacity > select")),l=a(t.querySelector(".window-color > select")),u=a(t.querySelector(".vjs-window-opacity > select")),c=j["default"].parseFloat(a(t.querySelector(".vjs-font-percent > select"))),p={backgroundOpacity:s,textOpacity:r,windowOpacity:u,edgeStyle:e,fontFamily:o,color:n,backgroundColor:i,windowColor:l,fontPercent:c};for(var d in p)(""===p[d]||"none"===p[d]||"fontPercent"===d&&1===p[d])&&delete p[d];return p},e.prototype.setValues=function(t){var e=this.el();l(e.querySelector(".vjs-edge-style select"),t.edgeStyle),l(e.querySelector(".vjs-font-family select"),t.fontFamily),l(e.querySelector(".vjs-fg-color > select"),t.color),l(e.querySelector(".vjs-text-opacity > select"),t.textOpacity),l(e.querySelector(".vjs-bg-color > select"),t.backgroundColor),l(e.querySelector(".vjs-bg-opacity > select"),t.backgroundOpacity),l(e.querySelector(".window-color > select"),t.windowColor),l(e.querySelector(".vjs-window-opacity > select"),t.windowOpacity);var o=t.fontPercent;o&&(o=o.toFixed(2)),l(e.querySelector(".vjs-font-percent > select"),o)},e.prototype.restoreSettings=function(){var t=m["default"](j["default"].localStorage.getItem("vjs-text-track-settings")),e=t[0],o=t[1];e&&y["default"].error(e),o&&this.setValues(o)},e.prototype.saveSettings=function(){if(this.options_.persistTextTrackSettings){var t=this.getValues();try{Object.getOwnPropertyNames(t).length>0?j["default"].localStorage.setItem("vjs-text-track-settings",JSON.stringify(t)):j["default"].localStorage.removeItem("vjs-text-track-settings")}catch(e){}}},e.prototype.updateDisplay=function(){var t=this.player_.getChild("textTrackDisplay");t&&t.updateDisplay()},e}(p["default"]);p["default"].registerComponent("TextTrackSettings",w),o["default"]=w,e.exports=o["default"]},{"../component":58,"../utils/events.js":119,"../utils/fn.js":120,"../utils/log.js":123,"global/window":2,"safe-json-parse/tuple":48}],114:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e["default"]=t,e}function r(t){return t&&t.__esModule?t:{"default":t}}o.__esModule=!0;var i=t("./text-track-cue-list"),s=r(i),a=t("../utils/fn.js"),l=n(a),u=t("../utils/guid.js"),c=n(u),p=t("../utils/browser.js"),d=n(p),f=t("./text-track-enums"),h=n(f),v=t("../utils/log.js"),g=r(v),y=t("../event-target"),A=r(y),m=t("global/document"),b=r(m),j=t("global/window"),w=r(j),_=t("xhr"),k=r(_),x=function S(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];if(!t.tech)throw new Error("A tech was not provided.");var e=this;if(d.IS_IE8){e=b["default"].createElement("custom");for(var o in S.prototype)e[o]=S.prototype[o]}e.tech_=t.tech;var n=h.TextTrackMode[t.mode]||"disabled",r=h.TextTrackKind[t.kind]||"subtitles",i=t.label||"",a=t.language||t.srclang||"",u=t.id||"vjs_text_track_"+c.newGUID();("metadata"===r||"chapters"===r)&&(n="hidden"),e.cues_=[],e.activeCues_=[];var p=new s["default"](e.cues_),f=new s["default"](e.activeCues_),v=!1,g=l.bind(e,function(){this.activeCues,v&&(this.trigger("cuechange"),v=!1)});return"disabled"!==n&&e.tech_.on("timeupdate",g),Object.defineProperty(e,"kind",{get:function(){return r},set:Function.prototype}),Object.defineProperty(e,"label",{get:function(){return i},set:Function.prototype}),Object.defineProperty(e,"language",{get:function(){return a},set:Function.prototype}),Object.defineProperty(e,"id",{get:function(){return u},set:Function.prototype}),Object.defineProperty(e,"mode",{get:function(){return n},set:function(t){h.TextTrackMode[t]&&(n=t,"showing"===n&&this.tech_.on("timeupdate",g),this.trigger("modechange"))}}),Object.defineProperty(e,"cues",{get:function(){return this.loaded_?p:null},set:Function.prototype}),Object.defineProperty(e,"activeCues",{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return f;for(var t=this.tech_.currentTime(),e=[],o=0,n=this.cues.length;n>o;o++){var r=this.cues[o];r.startTime<=t&&r.endTime>=t?e.push(r):r.startTime===r.endTime&&r.startTime<=t&&r.startTime+.5>=t&&e.push(r)}if(v=!1,e.length!==this.activeCues_.length)v=!0;else for(var o=0;oo;o++){var r=this.cues_[o];r===t&&(this.cues_.splice(o,1),e=!0)}e&&this.cues.setCues_(this.cues_)};var T=function O(t,e){if("function"!=typeof w["default"].WebVTT)return w["default"].setTimeout(function(){O(t,e)},25);var o=new w["default"].WebVTT.Parser(w["default"],w["default"].vttjs,w["default"].WebVTT.StringDecoder());o.oncue=function(t){e.addCue(t)},o.onparsingerror=function(t){g["default"].error(t)},o.parse(t),o.flush()},E=function(t,e){k["default"]({uri:t},l.bind(this,function(t,o,n){return t?g["default"].error(t,o):(e.loaded_=!0,void T(n,e))}))},C=function(t,e){if(null==this)throw new TypeError('"this" is null or not defined');var o=Object(this),n=o.length>>>0;if(0===n)return-1;var r=+e||0;if(Math.abs(r)===1/0&&(r=0),r>=n)return-1;for(var i=Math.max(r>=0?r:n-Math.abs(r),0);n>i;){if(i in o&&o[i]===t)return i;i++}return-1};o["default"]=x,e.exports=o["default"]},{"../event-target":90,"../utils/browser.js":115,"../utils/fn.js":120,"../utils/guid.js":122,"../utils/log.js":123,"./text-track-cue-list":108,"./text-track-enums":110,"global/document":1,"global/window":2,xhr:50}],115:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}o.__esModule=!0;var r=t("global/document"),i=n(r),s=t("global/window"),a=n(s),l=a["default"].navigator.userAgent,u=/AppleWebKit\/([\d.]+)/i.exec(l),c=u?parseFloat(u.pop()):null,p=/iPhone/i.test(l);o.IS_IPHONE=p;var d=/iPad/i.test(l);o.IS_IPAD=d;var f=/iPod/i.test(l);o.IS_IPOD=f;var h=p||d||f;o.IS_IOS=h;var v=function(){var t=l.match(/OS (\d+)_/i);return t&&t[1]?t[1]:void 0}();o.IOS_VERSION=v;var g=/Android/i.test(l);o.IS_ANDROID=g;var y=function(){var t,e,o=l.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);return o?(t=o[1]&&parseFloat(o[1]),e=o[2]&&parseFloat(o[2]),t&&e?parseFloat(o[1]+"."+o[2]):t?t:null):null}();o.ANDROID_VERSION=y;var A=g&&/webkit/i.test(l)&&2.3>y;o.IS_OLD_ANDROID=A;var m=g&&5>y&&537>c;o.IS_NATIVE_ANDROID=m;var b=/Firefox/i.test(l);o.IS_FIREFOX=b;var j=/Chrome/i.test(l);o.IS_CHROME=j;var w=/MSIE\s8\.0/.test(l);o.IS_IE8=w;var _=!!("ontouchstart"in a["default"]||a["default"].DocumentTouch&&i["default"]instanceof a["default"].DocumentTouch);o.TOUCH_ENABLED=_;var k="backgroundSize"in i["default"].createElement("video").style;o.BACKGROUND_SIZE_SUPPORTED=k},{"global/document":1,"global/window":2}],116:[function(t,e,o){"use strict";function n(t,e){var o,n,i=0;if(!e)return 0;t&&t.length||(t=r.createTimeRange(0,0));for(var s=0;se&&(n=e),i+=n-o;return i/e}o.__esModule=!0,o.bufferedPercent=n;var r=t("./time-ranges.js")},{"./time-ranges.js":126}],117:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}o.__esModule=!0;var r=t("./log.js"),i=n(r),s={get:function(t,e){return t[e]},set:function(t,e,o){return t[e]=o,!0}};o["default"]=function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];if("function"==typeof Proxy){var o=function(){var o={};return Object.keys(e).forEach(function(t){s.hasOwnProperty(t)&&(o[t]=function(){return i["default"].warn(e[t]),s[t].apply(this,arguments)})}),{v:new Proxy(t,o)}}();if("object"==typeof o)return o.v}return t},e.exports=o["default"]},{"./log.js":123}],118:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e["default"]=t,e}function r(t){return t&&t.__esModule?t:{"default":t}}function i(t){return 0===t.indexOf("#")&&(t=t.slice(1)),j["default"].getElementById(t)}function s(){var t=arguments.length<=0||void 0===arguments[0]?"div":arguments[0],e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],n=j["default"].createElement(t);return Object.getOwnPropertyNames(e).forEach(function(t){var o=e[t];-1!==t.indexOf("aria-")||"role"===t||"type"===t?(E["default"].warn(S["default"]("Setting attributes in the second argument of createEl()\n has been deprecated. Use the third argument instead.\n createEl(type, properties, attributes). Attempting to set "+t+" to "+o+".")),n.setAttribute(t,o)):n[t]=o}),Object.getOwnPropertyNames(o).forEach(function(t){o[t],n.setAttribute(t,o[t])}),n}function a(t,e){e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}function l(t){var e=t[B];return e||(e=t[B]=x.newGUID()),O[e]||(O[e]={}),O[e]}function u(t){var e=t[B];return e?!!Object.getOwnPropertyNames(O[e]).length:!1}function c(t){var e=t[B];if(e){delete O[e];try{delete t[B]}catch(o){t.removeAttribute?t.removeAttribute(B):t[B]=null}}}function p(t,e){return-1!==(" "+t.className+" ").indexOf(" "+e+" ")}function d(t,e){p(t,e)||(t.className=""===t.className?e:t.className+" "+e)}function f(t,e){if(p(t,e)){for(var o=t.className.split(" "),n=o.length-1;n>=0;n--)o[n]===e&&o.splice(n,1);t.className=o.join(" ")}}function h(t,e){Object.getOwnPropertyNames(e).forEach(function(o){var n=e[o];null===n||"undefined"==typeof n||n===!1?t.removeAttribute(o):t.setAttribute(o,n===!0?"":n)})}function v(t){var e,o,n,r,i;if(e={},o=",autoplay,controls,loop,muted,default,",t&&t.attributes&&t.attributes.length>0){n=t.attributes;for(var s=n.length-1;s>=0;s--)r=n[s].name,i=n[s].value,("boolean"==typeof t[r]||-1!==o.indexOf(","+r+","))&&(i=null!==i?!0:!1),e[r]=i}return e}function g(){j["default"].body.focus(),j["default"].onselectstart=function(){return!1}}function y(){j["default"].onselectstart=function(){return!0}}function A(t){var e=void 0;if(t.getBoundingClientRect&&t.parentNode&&(e=t.getBoundingClientRect()),!e)return{left:0,top:0};var o=j["default"].documentElement,n=j["default"].body,r=o.clientLeft||n.clientLeft||0,i=_["default"].pageXOffset||n.scrollLeft,s=e.left+i-r,a=o.clientTop||n.clientTop||0,l=_["default"].pageYOffset||n.scrollTop,u=e.top+l-a;return{left:Math.round(s),top:Math.round(u)}}function m(t,e){var o={},n=A(t),r=t.offsetWidth,i=t.offsetHeight,s=n.top,a=n.left,l=e.pageY,u=e.pageX;return e.changedTouches&&(u=e.changedTouches[0].pageX,l=e.changedTouches[0].pageY),o.y=Math.max(0,Math.min(1,(s-l+i)/i)),o.x=Math.max(0,Math.min(1,(u-a)/r)),o}o.__esModule=!0,o.getEl=i,o.createEl=s,o.insertElFirst=a,o.getElData=l,o.hasElData=u,o.removeElData=c,o.hasElClass=p,o.addElClass=d,o.removeElClass=f,o.setElAttributes=h,o.getElAttributes=v,o.blockTextSelection=g,o.unblockTextSelection=y,o.findElPosition=A,o.getPointerPosition=m;var b=t("global/document"),j=r(b),w=t("global/window"),_=r(w),k=t("./guid.js"),x=n(k),T=t("./log.js"),E=r(T),C=t("tsml"),S=r(C),O={},B="vdata"+(new Date).getTime()},{"./guid.js":122,"./log.js":123,"global/document":1,"global/window":2,tsml:49}],119:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e["default"]=t,e}function i(t,e,o){if(Array.isArray(e))return p(i,t,e,o);var n=f.getElData(t);n.handlers||(n.handlers={}),n.handlers[e]||(n.handlers[e]=[]),o.guid||(o.guid=v.newGUID()),n.handlers[e].push(o),n.dispatcher||(n.disabled=!1,n.dispatcher=function(e,o){if(!n.disabled){e=u(e);var r=n.handlers[e.type];if(r)for(var i=r.slice(0),s=0,a=i.length;a>s&&!e.isImmediatePropagationStopped();s++)i[s].call(t,e,o)}}),1===n.handlers[e].length&&(t.addEventListener?t.addEventListener(e,n.dispatcher,!1):t.attachEvent&&t.attachEvent("on"+e,n.dispatcher))}function s(t,e,o){if(f.hasElData(t)){var n=f.getElData(t);if(n.handlers){if(Array.isArray(e))return p(s,t,e,o);var r=function(e){n.handlers[e]=[],c(t,e)};if(e){var i=n.handlers[e];if(i){if(!o)return void r(e);if(o.guid)for(var a=0;a0||s>0?r+":":"",n=((r||i>=10)&&10>n?"0"+n:n)+":",o=10>o?"0"+o:o,r+n+o}()}o.__esModule=!0,o["default"]=n,e.exports=o["default"]},{}],122:[function(t,e,o){"use strict";function n(){return r++}o.__esModule=!0,o.newGUID=n;var r=1},{}],123:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){var o=Array.prototype.slice.call(e),n=function(){},r=s["default"].console||{log:n,warn:n,error:n};t?o.unshift(t.toUpperCase()+":"):t="log",a.history.push(o),o.unshift("VIDEOJS:"),r[t].apply?r[t].apply(r,o):r[t](o.join(" "))}o.__esModule=!0;var i=t("global/window"),s=n(i),a=function(){r(null,arguments)};a.history=[],a.error=function(){r("error",arguments)},a.warn=function(){r("warn",arguments)},o["default"]=a,e.exports=o["default"]},{"global/window":2}],124:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t){return!!t&&"object"==typeof t&&"[object Object]"===t.toString()&&t.constructor===Object}function i(){var t=Array.prototype.slice.call(arguments);return t.unshift({}),t.push(l),a["default"].apply(null,t),t[0]}o.__esModule=!0,o["default"]=i;var s=t("lodash-compat/object/merge"),a=n(s),l=function(t,e){return r(e)?r(t)?void 0:i(e):e};e.exports=o["default"]},{"lodash-compat/object/merge":40}],125:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}o.__esModule=!0;var r=t("global/document"),i=n(r),s=function(t){var e=i["default"].createElement("style");return e.className=t,e};o.createStyleElement=s;var a=function(t,e){t.styleSheet?t.styleSheet.cssText=e:t.textContent=e};o.setTextContent=a},{"global/document":1}],126:[function(t,e,o){"use strict";function n(t,e){return void 0===t&&void 0===e?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:1,start:function(){return t},end:function(){return e}}}o.__esModule=!0,o.createTimeRange=n},{}],127:[function(t,e,o){"use strict";function n(t){return t.charAt(0).toUpperCase()+t.slice(1)}o.__esModule=!0,o["default"]=n,e.exports=o["default"]},{}],128:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}o.__esModule=!0;var r=t("global/document"),i=n(r),s=function(t){var e=["protocol","hostname","port","pathname","search","hash","host"],o=i["default"].createElement("a");o.href=t;var n=""===o.host&&"file:"!==o.protocol,r=void 0;n&&(r=i["default"].createElement("div"),r.innerHTML='',o=r.firstChild,r.setAttribute("style","display:none; position:absolute;"),i["default"].body.appendChild(r));for(var s={},a=0;ax',t=e.firstChild.href}return t};o.getAbsoluteURL=a;var l=function(t){if("string"==typeof t){var e=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i,o=e.exec(t);if(o)return o.pop().toLowerCase()}return""};o.getFileExtension=l},{"global/document":1}],129:[function(e,o,n){"use strict";function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e["default"]=t,e}function i(t){return t&&t.__esModule?t:{"default":t}}n.__esModule=!0;var s=e("global/document"),a=i(s),l=e("./setup"),u=r(l),c=e("./utils/stylesheet.js"),p=r(c),d=e("./component"),f=i(d),h=e("./event-target"),v=i(h),g=e("./utils/events.js"),y=r(g),A=e("./player"),m=i(A),b=e("./plugins.js"),j=i(b),w=e("../../src/js/utils/merge-options.js"),_=i(w),k=e("./utils/fn.js"),x=r(k),T=e("object.assign"),E=(i(T),e("./utils/time-ranges.js")),C=e("./utils/format-time.js"),S=i(C),O=e("./utils/log.js"),B=i(O),P=e("./utils/dom.js"),M=r(P),I=e("./utils/browser.js"),F=r(I),D=e("./utils/url.js"),R=r(D),N=e("./extends.js"),L=i(N),Q=e("lodash-compat/object/merge"),z=i(Q),H=e("./utils/create-deprecation-proxy.js"),Y=i(H),V=e("xhr"),U=i(V),G=e("./tech/html5.js"),W=(i(G),e("./tech/flash.js"));i(W),"undefined"==typeof HTMLVideoElement&&(a["default"].createElement("video"),a["default"].createElement("audio"),a["default"].createElement("track"));var q=function X(t,e,o){var n;if("string"==typeof t){if(0===t.indexOf("#")&&(t=t.slice(1)),X.getPlayers()[t])return e&&B["default"].warn('Player "'+t+'" is already initialised. Options will not be applied.'),o&&X.getPlayers()[t].ready(o),X.getPlayers()[t];n=M.getEl(t)}else n=t;if(!n||!n.nodeName)throw new TypeError("The element or ID supplied is not valid. (videojs)");return n.player||new m["default"](n,e,o)},J=p.createStyleElement("vjs-styles-defaults"),K=a["default"].querySelector("head");K.insertBefore(J,K.firstChild),p.setTextContent(J,"\n .video-js {\n width: 300px;\n height: 150px;\n"),u.autoSetupTimeout(1,q),q.VERSION="5.0.0-rc.90",q.options=m["default"].prototype.options_,q.getPlayers=function(){return m["default"].players},q.players=Y["default"](m["default"].players,{get:"Access to videojs.players is deprecated; use videojs.getPlayers instead",set:"Modification of videojs.players is deprecated"}),q.getComponent=f["default"].getComponent,q.registerComponent=f["default"].registerComponent,q.browser=F,q.TOUCH_ENABLED=F.TOUCH_ENABLED,q["extends"]=L["default"],q.mergeOptions=_["default"],q.bind=x.bind,q.plugin=j["default"],q.addLanguage=function(t,e){var o;return t=(""+t).toLowerCase(),z["default"](q.options.languages,(o={},o[t]=e,o))[t]},q.log=B["default"],q.createTimeRange=E.createTimeRange,q.formatTime=S["default"],q.parseUrl=R.parseUrl,q.EventTarget=v["default"],q.on=y.on,q.one=y.one,q.off=y.off,q.trigger=y.trigger,q.xhr=U["default"],"function"==typeof t&&t.amd?t("videojs",[],function(){return q}):"object"==typeof n&&"object"==typeof o&&(o.exports=q),n["default"]=q,o.exports=n["default"]},{"../../src/js/utils/merge-options.js":124,"./component":58,"./event-target":90,"./extends.js":91,"./player":98,"./plugins.js":99,"./setup":101,"./tech/flash.js":104,"./tech/html5.js":105,"./utils/browser.js":115,"./utils/create-deprecation-proxy.js":117,"./utils/dom.js":118,"./utils/events.js":119,"./utils/fn.js":120,"./utils/format-time.js":121,"./utils/log.js":123,"./utils/stylesheet.js":125,"./utils/time-ranges.js":126,"./utils/url.js":128,"global/document":1,"lodash-compat/object/merge":40,"object.assign":43,xhr:50}]},{},[129])(129)}),function(t){var e=t.vttjs={},o=e.VTTCue,n=e.VTTRegion,r=t.VTTCue,i=t.VTTRegion;e.shim=function(){e.VTTCue=o,e.VTTRegion=n},e.restore=function(){e.VTTCue=r,e.VTTRegion=i}}(this),function(t,e){function o(t){if("string"!=typeof t)return!1;var e=a[t.toLowerCase()];return e?t.toLowerCase():!1}function n(t){if("string"!=typeof t)return!1;var e=l[t.toLowerCase()];return e?t.toLowerCase():!1}function r(t){for(var e=1;et||t>100)throw new Error("Position must be between 0 and 100.");b=t,this.hasBeenReset=!0}})),Object.defineProperty(a,"positionAlign",r({},u,{get:function(){return j},set:function(t){var e=n(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");j=e,this.hasBeenReset=!0}})),Object.defineProperty(a,"size",r({},u,{get:function(){return w},set:function(t){if(0>t||t>100)throw new Error("Size must be between 0 and 100.");w=t,this.hasBeenReset=!0}})),Object.defineProperty(a,"align",r({},u,{get:function(){return _},set:function(t){var e=n(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");_=e,this.hasBeenReset=!0}})),a.displayState=void 0,l?a:void 0}var s="auto",a={"":!0,lr:!0,rl:!0},l={start:!0,middle:!0,end:!0,left:!0,right:!0};i.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},t.VTTCue=t.VTTCue||i,e.VTTCue=i}(this,this.vttjs||{}),function(t,e){function o(t){if("string"!=typeof t)return!1;var e=i[t.toLowerCase()];return e?t.toLowerCase():!1}function n(t){return"number"==typeof t&&t>=0&&100>=t}function r(){var t=100,e=3,r=0,i=100,s=0,a=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return t},set:function(e){if(!n(e))throw new Error("Width must be between 0 and 100.");t=e}},lines:{enumerable:!0,get:function(){return e},set:function(t){if("number"!=typeof t)throw new TypeError("Lines must be set to a number.");e=t}},regionAnchorY:{enumerable:!0,get:function(){return i},set:function(t){if(!n(t))throw new Error("RegionAnchorX must be between 0 and 100.");i=t}},regionAnchorX:{enumerable:!0,get:function(){return r},set:function(t){if(!n(t))throw new Error("RegionAnchorY must be between 0 and 100.");r=t}},viewportAnchorY:{enumerable:!0,get:function(){return a},set:function(t){if(!n(t))throw new Error("ViewportAnchorY must be between 0 and 100.");a=t}},viewportAnchorX:{enumerable:!0,get:function(){return s},set:function(t){if(!n(t))throw new Error("ViewportAnchorX must be between 0 and 100.");s=t}},scroll:{enumerable:!0,get:function(){return l},set:function(t){var e=o(t);if(e===!1)throw new SyntaxError("An invalid or illegal string was specified.");l=e}}})}var i={"":!0,up:!0};t.VTTRegion=t.VTTRegion||r,e.VTTRegion=r}(this,this.vttjs||{}),function(t){function e(t,e){this.name="ParsingError",this.code=t.code,this.message=e||t.message}function o(t){function e(t,e,o,n){return 3600*(0|t)+60*(0|e)+(0|o)+(0|n)/1e3}var o=t.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return o?o[3]?e(o[1],o[2],o[3].replace(":",""),o[4]):o[1]>59?e(o[1],o[2],0,o[4]):e(0,o[1],o[2],o[4]):null}function n(){this.values=h(null)}function r(t,e,o,n){var r=n?t.split(n):[t];for(var i in r)if("string"==typeof r[i]){var s=r[i].split(o);if(2===s.length){var a=s[0],l=s[1];e(a,l)}}}function i(t,i,s){function a(){var n=o(t);if(null===n)throw new e(e.Errors.BadTimeStamp,"Malformed timestamp: "+c);return t=t.replace(/^[^\sa-zA-Z-]+/,""),n}function l(t,e){var o=new n;r(t,function(t,e){switch(t){case"region":for(var n=s.length-1;n>=0;n--)if(s[n].id===e){o.set(t,s[n].region);break}break;case"vertical":o.alt(t,e,["rl","lr"]);break;case"line":var r=e.split(","),i=r[0];o.integer(t,i),o.percent(t,i)?o.set("snapToLines",!1):null,o.alt(t,i,["auto"]),2===r.length&&o.alt("lineAlign",r[1],["start","middle","end"]);break;case"position":r=e.split(","),o.percent(t,r[0]),2===r.length&&o.alt("positionAlign",r[1],["start","middle","end"]);break;case"size":o.percent(t,e);break;case"align":o.alt(t,e,["start","middle","end","left","right"])}},/:/,/\s/),e.region=o.get("region",null),e.vertical=o.get("vertical",""),e.line=o.get("line","auto"),e.lineAlign=o.get("lineAlign","start"),e.snapToLines=o.get("snapToLines",!0),e.size=o.get("size",100),e.align=o.get("align","middle"),e.position=o.get("position",{start:0,left:0,middle:50,end:100,right:100},e.align),e.positionAlign=o.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},e.align)}function u(){t=t.replace(/^\s+/,"")}var c=t;if(u(),i.startTime=a(),u(),"-->"!==t.substr(0,3))throw new e(e.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+c);t=t.substr(3),u(),i.endTime=a(),u(),l(t,i)}function s(t,e){function n(){function t(t){return e=e.substr(t.length),t}if(!e)return null;var o=e.match(/^([^<]*)(<[^>]+>?)?/);return t(o[1]?o[1]:o[2])}function r(t){return v[t]}function i(t){for(;h=t.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)t=t.replace(h[0],r);return t}function s(t,e){return!A[e.localName]||A[e.localName]===t.localName}function a(e,o){var n=g[e];if(!n)return null;var r=t.document.createElement(n);r.localName=n;var i=y[e];return i&&o&&(r[i]=o.trim()),r}for(var l,u=t.document.createElement("div"),c=u,p=[];null!==(l=n());)if("<"!==l[0])c.appendChild(t.document.createTextNode(i(l)));else{if("/"===l[1]){p.length&&p[p.length-1]===l.substr(2).replace(">","")&&(p.pop(),c=c.parentNode);continue}var d,f=o(l.substr(1,l.length-2));if(f){d=t.document.createProcessingInstruction("timestamp",f),c.appendChild(d);continue}var h=l.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!h)continue;if(d=a(h[1],h[3]),!d)continue;if(!s(c,d))continue;h[2]&&(d.className=h[2].substr(1).replace("."," ")),p.push(h[1]),c.appendChild(d),c=d}return u}function a(t){function e(t,e){for(var o=e.childNodes.length-1;o>=0;o--)t.push(e.childNodes[o])}function o(t){if(!t||!t.length)return null;var n=t.pop(),r=n.textContent||n.innerText;if(r){var i=r.match(/^.*(\n|\r)/);return i?(t.length=0,i[0]):r}return"ruby"===n.tagName?o(t):n.childNodes?(e(t,n),o(t)):void 0}var n,r=[],i="";if(!t||!t.childNodes)return"ltr";for(e(r,t);i=o(r);)for(var s=0;s=0&&t.line<=100))return t.line;if(!t.track||!t.track.textTrackList||!t.track.textTrackList.mediaElement)return-1;for(var e=t.track,o=e.textTrackList,n=0,r=0;rl&&(r=new p(t),s=l),t=new p(i)}return r||i}var i=new p(e),s=e.cue,a=l(s),u=[];if(s.snapToLines){var c;switch(s.vertical){case"":u=["+y","-y"],c="height";break;case"rl":u=["+x","-x"],c="width";break;case"lr":u=["-x","+x"],c="width"}var d=i.lineHeight,f=d*Math.round(a),h=o[c]+d,v=u[0];Math.abs(f)>h&&(f=0>f?-1:1,f*=Math.ceil(h/d)*d),0>a&&(f+=""===s.vertical?o.height:o.width,u=u.reverse()),i.move(v,f)}else{var g=i.lineHeight/o.height*100;switch(s.lineAlign){case"middle":a-=g/2;break;case"end":a-=g}switch(s.vertical){case"":e.applyStyles({top:e.formatStyle(a,"%")});break;case"rl":e.applyStyles({left:e.formatStyle(a,"%")});break;case"lr":e.applyStyles({right:e.formatStyle(a,"%")})}u=["+y","-x","+x","-y"],i=new p(e)}var y=r(i,u);e.move(y.toCSSCompatValues(o))}function f(){}var h=Object.create||function(){function t(){}return function(e){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return t.prototype=e,new t}}();e.prototype=h(Error.prototype),e.prototype.constructor=e,e.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},n.prototype={set:function(t,e){this.get(t)||""===e||(this.values[t]=e)},get:function(t,e,o){return o?this.has(t)?this.values[t]:e[o]:this.has(t)?this.values[t]:e},has:function(t){return t in this.values},alt:function(t,e,o){for(var n=0;n=0&&100>=e)?(this.set(t,e),!0):!1}};var v={"&":"&","<":"<",">":">","‎":"‎","‏":"‏"," ":" "},g={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},y={v:"title",lang:"lang"},A={rt:"ruby"},m=[1470,1472,1475,1478,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,1520,1521,1522,1523,1524,1544,1547,1549,1563,1566,1567,1568,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1593,1594,1595,1596,1597,1598,1599,1600,1601,1602,1603,1604,1605,1606,1607,1608,1609,1610,1645,1646,1647,1649,1650,1651,1652,1653,1654,1655,1656,1657,1658,1659,1660,1661,1662,1663,1664,1665,1666,1667,1668,1669,1670,1671,1672,1673,1674,1675,1676,1677,1678,1679,1680,1681,1682,1683,1684,1685,1686,1687,1688,1689,1690,1691,1692,1693,1694,1695,1696,1697,1698,1699,1700,1701,1702,1703,1704,1705,1706,1707,1708,1709,1710,1711,1712,1713,1714,1715,1716,1717,1718,1719,1720,1721,1722,1723,1724,1725,1726,1727,1728,1729,1730,1731,1732,1733,1734,1735,1736,1737,1738,1739,1740,1741,1742,1743,1744,1745,1746,1747,1748,1749,1765,1766,1774,1775,1786,1787,1788,1789,1790,1791,1792,1793,1794,1795,1796,1797,1798,1799,1800,1801,1802,1803,1804,1805,1807,1808,1810,1811,1812,1813,1814,1815,1816,1817,1818,1819,1820,1821,1822,1823,1824,1825,1826,1827,1828,1829,1830,1831,1832,1833,1834,1835,1836,1837,1838,1839,1869,1870,1871,1872,1873,1874,1875,1876,1877,1878,1879,1880,1881,1882,1883,1884,1885,1886,1887,1888,1889,1890,1891,1892,1893,1894,1895,1896,1897,1898,1899,1900,1901,1902,1903,1904,1905,1906,1907,1908,1909,1910,1911,1912,1913,1914,1915,1916,1917,1918,1919,1920,1921,1922,1923,1924,1925,1926,1927,1928,1929,1930,1931,1932,1933,1934,1935,1936,1937,1938,1939,1940,1941,1942,1943,1944,1945,1946,1947,1948,1949,1950,1951,1952,1953,1954,1955,1956,1957,1969,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2e3,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025,2026,2036,2037,2042,2048,2049,2050,2051,2052,2053,2054,2055,2056,2057,2058,2059,2060,2061,2062,2063,2064,2065,2066,2067,2068,2069,2074,2084,2088,2096,2097,2098,2099,2100,2101,2102,2103,2104,2105,2106,2107,2108,2109,2110,2112,2113,2114,2115,2116,2117,2118,2119,2120,2121,2122,2123,2124,2125,2126,2127,2128,2129,2130,2131,2132,2133,2134,2135,2136,2142,2208,2210,2211,2212,2213,2214,2215,2216,2217,2218,2219,2220,8207,64285,64287,64288,64289,64290,64291,64292,64293,64294,64295,64296,64298,64299,64300,64301,64302,64303,64304,64305,64306,64307,64308,64309,64310,64312,64313,64314,64315,64316,64318,64320,64321,64323,64324,64326,64327,64328,64329,64330,64331,64332,64333,64334,64335,64336,64337,64338,64339,64340,64341,64342,64343,64344,64345,64346,64347,64348,64349,64350,64351,64352,64353,64354,64355,64356,64357,64358,64359,64360,64361,64362,64363,64364,64365,64366,64367,64368,64369,64370,64371,64372,64373,64374,64375,64376,64377,64378,64379,64380,64381,64382,64383,64384,64385,64386,64387,64388,64389,64390,64391,64392,64393,64394,64395,64396,64397,64398,64399,64400,64401,64402,64403,64404,64405,64406,64407,64408,64409,64410,64411,64412,64413,64414,64415,64416,64417,64418,64419,64420,64421,64422,64423,64424,64425,64426,64427,64428,64429,64430,64431,64432,64433,64434,64435,64436,64437,64438,64439,64440,64441,64442,64443,64444,64445,64446,64447,64448,64449,64467,64468,64469,64470,64471,64472,64473,64474,64475,64476,64477,64478,64479,64480,64481,64482,64483,64484,64485,64486,64487,64488,64489,64490,64491,64492,64493,64494,64495,64496,64497,64498,64499,64500,64501,64502,64503,64504,64505,64506,64507,64508,64509,64510,64511,64512,64513,64514,64515,64516,64517,64518,64519,64520,64521,64522,64523,64524,64525,64526,64527,64528,64529,64530,64531,64532,64533,64534,64535,64536,64537,64538,64539,64540,64541,64542,64543,64544,64545,64546,64547,64548,64549,64550,64551,64552,64553,64554,64555,64556,64557,64558,64559,64560,64561,64562,64563,64564,64565,64566,64567,64568,64569,64570,64571,64572,64573,64574,64575,64576,64577,64578,64579,64580,64581,64582,64583,64584,64585,64586,64587,64588,64589,64590,64591,64592,64593,64594,64595,64596,64597,64598,64599,64600,64601,64602,64603,64604,64605,64606,64607,64608,64609,64610,64611,64612,64613,64614,64615,64616,64617,64618,64619,64620,64621,64622,64623,64624,64625,64626,64627,64628,64629,64630,64631,64632,64633,64634,64635,64636,64637,64638,64639,64640,64641,64642,64643,64644,64645,64646,64647,64648,64649,64650,64651,64652,64653,64654,64655,64656,64657,64658,64659,64660,64661,64662,64663,64664,64665,64666,64667,64668,64669,64670,64671,64672,64673,64674,64675,64676,64677,64678,64679,64680,64681,64682,64683,64684,64685,64686,64687,64688,64689,64690,64691,64692,64693,64694,64695,64696,64697,64698,64699,64700,64701,64702,64703,64704,64705,64706,64707,64708,64709,64710,64711,64712,64713,64714,64715,64716,64717,64718,64719,64720,64721,64722,64723,64724,64725,64726,64727,64728,64729,64730,64731,64732,64733,64734,64735,64736,64737,64738,64739,64740,64741,64742,64743,64744,64745,64746,64747,64748,64749,64750,64751,64752,64753,64754,64755,64756,64757,64758,64759,64760,64761,64762,64763,64764,64765,64766,64767,64768,64769,64770,64771,64772,64773,64774,64775,64776,64777,64778,64779,64780,64781,64782,64783,64784,64785,64786,64787,64788,64789,64790,64791,64792,64793,64794,64795,64796,64797,64798,64799,64800,64801,64802,64803,64804,64805,64806,64807,64808,64809,64810,64811,64812,64813,64814,64815,64816,64817,64818,64819,64820,64821,64822,64823,64824,64825,64826,64827,64828,64829,64848,64849,64850,64851,64852,64853,64854,64855,64856,64857,64858,64859,64860,64861,64862,64863,64864,64865,64866,64867,64868,64869,64870,64871,64872,64873,64874,64875,64876,64877,64878,64879,64880,64881,64882,64883,64884,64885,64886,64887,64888,64889,64890,64891,64892,64893,64894,64895,64896,64897,64898,64899,64900,64901,64902,64903,64904,64905,64906,64907,64908,64909,64910,64911,64914,64915,64916,64917,64918,64919,64920,64921,64922,64923,64924,64925,64926,64927,64928,64929,64930,64931,64932,64933,64934,64935,64936,64937,64938,64939,64940,64941,64942,64943,64944,64945,64946,64947,64948,64949,64950,64951,64952,64953,64954,64955,64956,64957,64958,64959,64960,64961,64962,64963,64964,64965,64966,64967,65008,65009,65010,65011,65012,65013,65014,65015,65016,65017,65018,65019,65020,65136,65137,65138,65139,65140,65142,65143,65144,65145,65146,65147,65148,65149,65150,65151,65152,65153,65154,65155,65156,65157,65158,65159,65160,65161,65162,65163,65164,65165,65166,65167,65168,65169,65170,65171,65172,65173,65174,65175,65176,65177,65178,65179,65180,65181,65182,65183,65184,65185,65186,65187,65188,65189,65190,65191,65192,65193,65194,65195,65196,65197,65198,65199,65200,65201,65202,65203,65204,65205,65206,65207,65208,65209,65210,65211,65212,65213,65214,65215,65216,65217,65218,65219,65220,65221,65222,65223,65224,65225,65226,65227,65228,65229,65230,65231,65232,65233,65234,65235,65236,65237,65238,65239,65240,65241,65242,65243,65244,65245,65246,65247,65248,65249,65250,65251,65252,65253,65254,65255,65256,65257,65258,65259,65260,65261,65262,65263,65264,65265,65266,65267,65268,65269,65270,65271,65272,65273,65274,65275,65276,67584,67585,67586,67587,67588,67589,67592,67594,67595,67596,67597,67598,67599,67600,67601,67602,67603,67604,67605,67606,67607,67608,67609,67610,67611,67612,67613,67614,67615,67616,67617,67618,67619,67620,67621,67622,67623,67624,67625,67626,67627,67628,67629,67630,67631,67632,67633,67634,67635,67636,67637,67639,67640,67644,67647,67648,67649,67650,67651,67652,67653,67654,67655,67656,67657,67658,67659,67660,67661,67662,67663,67664,67665,67666,67667,67668,67669,67671,67672,67673,67674,67675,67676,67677,67678,67679,67840,67841,67842,67843,67844,67845,67846,67847,67848,67849,67850,67851,67852,67853,67854,67855,67856,67857,67858,67859,67860,67861,67862,67863,67864,67865,67866,67867,67872,67873,67874,67875,67876,67877,67878,67879,67880,67881,67882,67883,67884,67885,67886,67887,67888,67889,67890,67891,67892,67893,67894,67895,67896,67897,67903,67968,67969,67970,67971,67972,67973,67974,67975,67976,67977,67978,67979,67980,67981,67982,67983,67984,67985,67986,67987,67988,67989,67990,67991,67992,67993,67994,67995,67996,67997,67998,67999,68e3,68001,68002,68003,68004,68005,68006,68007,68008,68009,68010,68011,68012,68013,68014,68015,68016,68017,68018,68019,68020,68021,68022,68023,68030,68031,68096,68112,68113,68114,68115,68117,68118,68119,68121,68122,68123,68124,68125,68126,68127,68128,68129,68130,68131,68132,68133,68134,68135,68136,68137,68138,68139,68140,68141,68142,68143,68144,68145,68146,68147,68160,68161,68162,68163,68164,68165,68166,68167,68176,68177,68178,68179,68180,68181,68182,68183,68184,68192,68193,68194,68195,68196,68197,68198,68199,68200,68201,68202,68203,68204,68205,68206,68207,68208,68209,68210,68211,68212,68213,68214,68215,68216,68217,68218,68219,68220,68221,68222,68223,68352,68353,68354,68355,68356,68357,68358,68359,68360,68361,68362,68363,68364,68365,68366,68367,68368,68369,68370,68371,68372,68373,68374,68375,68376,68377,68378,68379,68380,68381,68382,68383,68384,68385,68386,68387,68388,68389,68390,68391,68392,68393,68394,68395,68396,68397,68398,68399,68400,68401,68402,68403,68404,68405,68416,68417,68418,68419,68420,68421,68422,68423,68424,68425,68426,68427,68428,68429,68430,68431,68432,68433,68434,68435,68436,68437,68440,68441,68442,68443,68444,68445,68446,68447,68448,68449,68450,68451,68452,68453,68454,68455,68456,68457,68458,68459,68460,68461,68462,68463,68464,68465,68466,68472,68473,68474,68475,68476,68477,68478,68479,68608,68609,68610,68611,68612,68613,68614,68615,68616,68617,68618,68619,68620,68621,68622,68623,68624,68625,68626,68627,68628,68629,68630,68631,68632,68633,68634,68635,68636,68637,68638,68639,68640,68641,68642,68643,68644,68645,68646,68647,68648,68649,68650,68651,68652,68653,68654,68655,68656,68657,68658,68659,68660,68661,68662,68663,68664,68665,68666,68667,68668,68669,68670,68671,68672,68673,68674,68675,68676,68677,68678,68679,68680,126464,126465,126466,126467,126469,126470,126471,126472,126473,126474,126475,126476,126477,126478,126479,126480,126481,126482,126483,126484,126485,126486,126487,126488,126489,126490,126491,126492,126493,126494,126495,126497,126498,126500,126503,126505,126506,126507,126508,126509,126510,126511,126512,126513,126514,126516,126517,126518,126519,126521,126523,126530,126535,126537,126539,126541,126542,126543,126545,126546,126548,126551,126553,126555,126557,126559,126561,126562,126564,126567,126568,126569,126570,126572,126573,126574,126575,126576,126577,126578,126580,126581,126582,126583,126585,126586,126587,126588,126590,126592,126593,126594,126595,126596,126597,126598,126599,126600,126601,126603,126604,126605,126606,126607,126608,126609,126610,126611,126612,126613,126614,126615,126616,126617,126618,126619,126625,126626,126627,126629,126630,126631,126632,126633,126635,126636,126637,126638,126639,126640,126641,126642,126643,126644,126645,126646,126647,126648,126649,126650,126651,1114109];u.prototype.applyStyles=function(t,e){e=e||this.div;for(var o in t)t.hasOwnProperty(o)&&(e.style[o]=t[o])},u.prototype.formatStyle=function(t,e){return 0===t?0:t+e},c.prototype=h(u.prototype),c.prototype.constructor=c,p.prototype.move=function(t,e){switch(e=void 0!==e?e:this.lineHeight,t){case"+x":this.left+=e,this.right+=e;break;case"-x":this.left-=e,this.right-=e;break;case"+y":this.top+=e,this.bottom+=e;break;case"-y":this.top-=e,this.bottom-=e}},p.prototype.overlaps=function(t){return this.leftt.left&&this.topt.top},p.prototype.overlapsAny=function(t){for(var e=0;e=t.top&&this.bottom<=t.bottom&&this.left>=t.left&&this.right<=t.right},p.prototype.overlapsOppositeAxis=function(t,e){switch(e){case"+x":return this.leftt.right;case"+y":return this.topt.bottom}},p.prototype.intersectPercentage=function(t){var e=Math.max(0,Math.min(this.right,t.right)-Math.max(this.left,t.left)),o=Math.max(0,Math.min(this.bottom,t.bottom)-Math.max(this.top,t.top)),n=e*o;return n/(this.height*this.width)},p.prototype.toCSSCompatValues=function(t){return{top:this.top-t.top,bottom:t.bottom-this.bottom,left:this.left-t.left,right:t.right-this.right, +height:this.height,width:this.width}},p.getSimpleBoxPosition=function(t){var e=t.div?t.div.offsetHeight:t.tagName?t.offsetHeight:0,o=t.div?t.div.offsetWidth:t.tagName?t.offsetWidth:0,n=t.div?t.div.offsetTop:t.tagName?t.offsetTop:0;t=t.div?t.div.getBoundingClientRect():t.tagName?t.getBoundingClientRect():t;var r={left:t.left,right:t.right,top:t.top||n,height:t.height||e,bottom:t.bottom||n+(t.height||e),width:t.width||o};return r},f.StringDecoder=function(){return{decode:function(t){if(!t)return"";if("string"!=typeof t)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}},f.convertCueToDOMTree=function(t,e){return t&&e?s(t,e):null};var b=.05,j="sans-serif",w="1.5%";f.processCues=function(t,e,o){function n(t){for(var e=0;e")){l.cue.id=u;continue}case"CUE":try{i(u,l.cue,l.regionList)}catch(d){l.reportOrThrowError(d),l.cue=null,l.state="BADCUE";continue}l.state="CUETEXT";continue;case"CUETEXT":var f=-1!==u.indexOf("-->");if(!u||f&&(p=!0)){l.oncue&&l.oncue(l.cue),l.cue=null,l.state="ID";continue}l.cue.text&&(l.cue.text+="\n"),l.cue.text+=u;continue;case"BADCUE":u||(l.state="ID");continue}}}catch(d){l.reportOrThrowError(d),"CUETEXT"===l.state&&l.cue&&l.oncue&&l.oncue(l.cue),l.cue=null,l.state="INITIAL"===l.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var t=this;try{if(t.buffer+=t.decoder.decode(),(t.cue||"HEADER"===t.state)&&(t.buffer+="\n\n",t.parse()),"INITIAL"===t.state)throw new e(e.Errors.BadSignature)}catch(o){t.reportOrThrowError(o)}return t.onflush&&t.onflush(),this}},t.WebVTT=f}(this,this.vttjs||{});var _createClass=function(){function t(t,e){for(var o=0;o=0;o--)e[o].src==t&&("hd"!==e[o]["data-quality"]?this.currentRes="sd":this.currentRes="hd")}},{key:"setResolutionsNeededFromPlayer",value:function(){if(this.resolutionsNeeded=!1,"object"==typeof this.typeAndTech){var t=this.typeAndTech.type;if(void 0!==this.sourcesByType[t]&&this.sourcesByType[t].length>1)for(var e=this.sourcesByType[t].length-1;e>=0;e--)if(void 0!==this.sourcesByType[t][e]["data-quality"]||this.sourcesByType[t][e]["data-quality"]!=this.currentRes)return void(this.resolutionsNeeded=!0)}}},{key:"removeSources",value:function(){console.log("removed sources.");var t=this.player_.el_.getElementsByTagName("video")[0];if("Html5"===this.player_.techName_&&t)for(var e=t.getElementsByTagName("source"),o=0;o=0;o--)if("hd"==this.currentRes){if(void 0==e[o]["data-quality"]||"hd"!==e[o]["data-quality"])return e[o]}else if("hd"==e[o]["data-quality"])return e[o];return e[0]}},{key:"switchResolution",value:function(){var t=this.getSourceForResolutionChange();this.switchSource(t)}},{key:"stopStream",value:function(){switch(this.player_.techName_){case"Flash":this.player_.tech_.el_.vjs_stop()}}},{key:"selectSource",value:function(t){this.removeSources();var e=this.sourcesByType,o=this.selectTypeAndTech(t);return o?(this.options_.sourceResolutions=e[o.type],this.selectResolution(this.options_.sourceResolutions)):!1}},{key:"selectTypeAndTech",value:function(t){for(var e,o,n=0,r=this.player_.options_.techOrder;ni?i:n;return t[s]}},{key:"switchSource",value:function(t){if(this.player_.cache_.src===t.src)return this.player_.trigger("resolutionchange"),this.player_;var e=this.player_.currentTime(),o=this.player_.paused();this.player_.pause(),this.stopStream(),"Html5"===this.player_.techName_?this.player_.src(t.src):this.player_.loadTech(this.player_.techName_,{src:t.src});var n=this;this.player_.ready(function(){this.player_.one("loadeddata",videojs.bind(this.player_,function(){this.player_.currentTime(e)})),this.player_.trigger("resolutionchange"),o||(this.player_.load(),this.player_.play()),localStorage.setItem("videojs_preferred_res",parseInt(t.index,10)),n.setCurrentResFromPlayer(),n.updateButton()})}},{key:"updateButton",value:function(){var t=this.el_;this.resolutionsNeeded?t.removeClass("vjs-hidden"):t.addClass("vjs-hidden"),"hd"==this.currentRes?t.addClass("vjs-ag-res-hd"):t.removeClass("vjs-ag-res-hd"),this.el_.blur()}}]),e}(VjsButtonResBBase);videojs.reduce=function(t,e,o,n){if(t&&0!==t.length){for(var r=0,i=t.length;i>r;r++)o=e.call(t,o,t[r],r);return o}},function(){videojs.registerComponent("ResolutionSwitchingButton",ResolutionSwitchingButton)}();var _createClass=function(){function t(t,e){for(var o=0;o47&&59>n||n>95&&106>n)&&l){var p=48;n>95&&(p=96);var d=n-p;t.preventDefault(),e.currentTime(e.duration()*d*.1)}}}},p=function(t){if(e.controls()){var o=t.relatedTarget||t.toElement||document.activeElement;(o==e.el()||o==e.el().querySelector(".vjs-tech")||o==e.el().querySelector(".iframeblocker"))&&a&&(e.isFullscreen()?e.exitFullscreen():e.requestFullscreen())}};return e.on("keydown",c),e.on("dblclick",p),this};e.plugin("hotkeys",n)}(window,window.videojs),function(){"use strict";function t(){var t=document.createElement("script");t.src="https://www.youtube.com/iframe_api";var e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(t,e)}function e(){var t=".vjs-iframe-blocker { display: none; }.vjs-user-inactive .vjs-iframe-blocker { display: block; }",e=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t)),e.appendChild(o)}var o=videojs.getComponent("Tech"),n=videojs["extends"](o,{constructor:function(t,e){o.call(this,t,e),this.setSrc(this.options_.source,!0)},createEl:function(){var t=document.createElement("div");t.setAttribute("id",this.options_.techId),t.setAttribute("style","width:100%;height:100%");var e=document.createElement("div");if(e.setAttribute("style","width:100%;height:100%;position:relative"),e.appendChild(t),!r&&!this.options_.ytControls){var o=document.createElement("div");o.setAttribute("class","vjs-iframe-blocker"),o.setAttribute("style","position:absolute;top:0;left:0;width:100%;height:100%;display:block"),e.appendChild(o)}return n.isApiReady?(this.setSrc(this.options_.source,!0),this.initYTPlayer()):n.apiReadyQueue.push(this),e},initYTPlayer:function(){var t={controls:0,modestbranding:1,rel:0,showinfo:0,loop:this.options_.loop?1:0,wmode:"transparent"};"undefined"!=typeof this.options_.autohide&&(t.autohide=this.options_.autohide),"undefined"!=typeof this.options_.cc_load_policy&&(t.cc_load_policy=this.options_.cc_load_policy),"undefined"!=typeof this.options_.ytControls&&(t.controls=this.options_.ytControls),"undefined"!=typeof this.options_.disablekb&&(t.disablekb=this.options_.disablekb),"undefined"!=typeof this.options_.end&&(t.end=this.options_.end),"undefined"!=typeof this.options_.color&&(t.color=this.options_.color),"undefined"!=typeof this.options_.fs&&(t.fs=this.options_.fs),"undefined"!=typeof this.options_.end&&(t.end=this.options_.end),"undefined"!=typeof this.options_.hl?t.hl=this.options_.hl:"undefined"!=typeof this.options_.language&&(t.hl=this.options_.language.substr(0,2)),"undefined"!=typeof this.options_.iv_load_policy&&(t.iv_load_policy=this.options_.iv_load_policy),"undefined"!=typeof this.options_.list?t.list=this.options_.list:"undefined"!=typeof this.url.listId&&(t.list=this.url.listId),"undefined"!=typeof this.options_.listType&&(t.listType=this.options_.listType),"undefined"!=typeof this.options_.modestbranding&&(t.modestbranding=this.options_.modestbranding),"undefined"!=typeof this.options_.playlist&&(t.playlist=this.options_.playlist),"undefined"!=typeof this.options_.playsinline&&(t.playsinline=this.options_.playsinline),"undefined"!=typeof this.options_.rel&&(t.rel=this.options_.rel),"undefined"!=typeof this.options_.showinfo&&(t.showinfo=this.options_.showinfo),"undefined"!=typeof this.options_.start&&(t.start=this.options_.start),"undefined"!=typeof this.options_.theme&&(t.theme=this.options_.theme),navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&(t.html5=1),this.activeVideoId=this.url.videoId,this.activeList=t.list,this.playerVars=t,this.launchCheck=setInterval(function(){null!=document.getElementById(this.options_.techId)&&(this.launchPlayer(),clearInterval(this.launchCheck))}.bind(this),50)},launchPlayer:function(){this.ytPlayer=new YT.Player(this.options_.techId,{videoId:this.url.videoId,playerVars:this.playerVars,events:{onReady:this.onPlayerReady.bind(this),onPlaybackQualityChange:this.onPlayerPlaybackQualityChange.bind(this),onStateChange:this.onPlayerStateChange.bind(this),onError:this.onPlayerError.bind(this)}})},onPlayerReady:function(){this.triggerReady(),this.playOnReady&&this.play()},onPlayerPlaybackQualityChange:function(){this.trigger("resolutionchange")},onPlayerStateChange:function(t){var e=t.data;if(e!==this.lastState){switch(e){case-1:this.trigger("durationchange");break;case YT.PlayerState.ENDED:this.trigger("ended");break;case YT.PlayerState.PLAYING:this.trigger("timeupdate"),this.trigger("durationchange"),this.trigger("playing"),this.trigger("play"),this.isSeeking&&(this.trigger("seeked"),this.isSeeking=!1);break;case YT.PlayerState.PAUSED:this.isSeeking?(this.trigger("seeked"),this.isSeeking=!1,this.ytPlayer.playVideo()):this.trigger("pause");break;case YT.PlayerState.BUFFERING:this.player_.trigger("timeupdate"),this.player_.trigger("waiting")}this.lastState=e}},onPlayerError:function(t){this.errorNumber=t.data,this.trigger("error"),this.ytPlayer.stopVideo(),this.ytPlayer.destroy(),this.ytPlayer=null},error:function(){switch(this.errorNumber){case 2:return{code:"Unable to find the video"};case 5:return{code:"Error while trying to play the video"};case 100:return{code:"Unable to find the video"};case 101:case 150:return{code:"Playback on other Websites has been disabled by the video owner."}}return{code:"YouTube unknown error ("+this.errorNumber+")"}},src:function(){return this.source},poster:function(){return this.poster},setPoster:function(t){this.poster=t},setSrc:function(t){t&&t.src&&(this.source=t,this.url=n.parseUrl(t.src),this.options_.poster||n.loadThumbnailUrl(this.url.videoId,function(t){this.setPoster(t),this.trigger("posterchange")}.bind(this)),this.options_.autoplay&&!r&&(this.isReady_?this.play():this.playOnReady=!0))},play:function(){this.url&&this.url.videoId&&(this.isReady_?(this.url.listId&&(this.activeList===this.url.listId?this.ytPlayer.playVideo():(this.ytPlayer.loadPlaylist(this.url.listId),this.activeList=this.url.listId)),this.activeVideoId===this.url.videoId?this.ytPlayer.playVideo():(this.ytPlayer.loadVideoById(this.url.videoId),this.activeVideoId=this.url.videoId)):(this.trigger("waiting"),this.playOnReady=!0))},pause:function(){this.ytPlayer&&this.ytPlayer.pauseVideo()},paused:function(){return this.ytPlayer?this.lastState!==YT.PlayerState.PLAYING&&this.lastState!==YT.PlayerState.BUFFERING:!0},currentTime:function(){return this.ytPlayer?this.ytPlayer.getCurrentTime():0},setCurrentTime:function(t){this.lastState===YT.PlayerState.PAUSED&&(this.timeBeforeSeek=this.currentTime()),this.timeBeforeSeek=this.currentTime(),this.ytPlayer.seekTo(t,!0),this.trigger("timeupdate"),this.trigger("seeking"),this.isSeeking=!0,this.lastState===YT.PlayerState.PAUSED&&this.timeBeforeSeek!==t&&(this.checkSeekedInPauseInterval=setInterval(function(){this.lastState===YT.PlayerState.PAUSED&&this.isSeeking?this.currentTime()!==this.timeBeforeSeek&&(this.trigger("timeupdate"),this.trigger("seeked"),this.isSeeking=!1,clearInterval(this.checkSeekedInPauseInterval)):clearInterval(this.checkSeekedInPauseInterval),this.play()}.bind(this),250))},playbackRate:function(){return this.ytPlayer?this.ytPlayer.getPlaybackRate():1},setPlaybackRate:function(t){this.ytPlayer&&(this.ytPlayer.setPlaybackRate(t),this.trigger("ratechange"))},duration:function(){return this.ytPlayer?this.ytPlayer.getDuration():0},currentSrc:function(){return this.source},ended:function(){return this.ytPlayer?this.lastState===YT.PlayerState.ENDED:!1},volume:function(){return this.ytPlayer?this.ytPlayer.getVolume()/100:1},setVolume:function(t){this.ytPlayer&&(this.ytPlayer.setVolume(100*t),this.setTimeout(function(){this.trigger("volumechange")},50))},muted:function(){return this.ytPlayer?this.ytPlayer.isMuted():!1},setMuted:function(t){this.ytPlayer&&(this.muted(!0),t?this.ytPlayer.mute():this.ytPlayer.unMute(),this.setTimeout(function(){this.trigger("volumechange")},50))},buffered:function(){if(!this.ytPlayer||!this.ytPlayer.getVideoLoadedFraction)return{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}};var t=this.ytPlayer.getVideoLoadedFraction()*this.ytPlayer.getDuration();return{length:1,start:function(){return 0},end:function(){return t}}},readyState:function(){return this.ytPlayer&&this.ytPlayer.getVideoLoadedFraction?this.ytPlayer.getVideoLoadedFraction()>.1?4:this.ytPlayer.getVideoLoadedFraction()>.01?2:1:0},supportsFullScreen:function(){return"function"!=typeof this.el_.webkitEnterFullScreen||!/Android/.test(videojs.USER_AGENT)&&/Chrome|Mac OS X 10.5/.test(videojs.USER_AGENT)?!1:!0}});n.isSupported=function(){return!0},n.canPlaySource=function(t){return"video/youtube"===t.type};var r=/(iPad|iPhone|iPod|Android)/g.test(navigator.userAgent);n.parseUrl=function(t){var e={videoId:null},o=/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/,n=t.match(o);n&&11===n[2].length&&(e.videoId=n[2]);var r=/[?&]list=([^#\&\?]+)/;return n=t.match(r),n&&n[1]&&(e.listId=n[1]),e},n.loadThumbnailUrl=function(t,e){var o="https://img.youtube.com/vi/"+t+"/maxresdefault.jpg",n="https://img.youtube.com/vi/"+t+"/0.jpg";try{var r=new Image;r.onload=function(){if("naturalHeight"in this){if(this.naturalHeight<=90||this.naturalWidth<=120)return void this.onerror()}else if(this.height<=90||this.width<=120)return void this.onerror();e(o)},r.onerror=function(){e(n)},r.src=o}catch(i){e(n)}},n.apiReadyQueue=[],window.onYouTubeIframeAPIReady=function(){n.isApiReady=!0;for(var t=0;t=8&&11>=ie&&$dom.addClass(t,"vjs-using-native-controls")),ie>=8&&11>=ie&&$dom.addClass(t,"vjs-IE")},getPlayerOptions:function(t){if(null!==t.getAttribute("data-preload"))var e=t.getAttribute("data-preload");else if(null!==t.getAttribute("preload"))var e=t.getAttribute("preload");else var e="auto";if(null!==t.getAttribute("data-autoplay")&&"false"!==t.getAttribute("data-autoplay"))var o=t.getAttribute("data-autoplay");else if(null!==t.getAttribute("autoplay")&&"false"!==t.getAttribute("autoplay"))var o=t.getAttribute("autoplay");else var o=!1;if(null!==t.getAttribute("data-poster"))var n=t.getAttribute("data-poster");else if(null!==t.getAttribute("poster"))var n=t.getAttribute("poster");else var n=!1;var r={controls:!0,preload:e,autoplay:o,poster:n,techOrder:["html5","flash"]};return r.children=this.getSkinControls(t.skin),r},getSkinControls:function(t){var e={TopControlBar:{children:[{name:"fullscreenToggle"}]},controlBar:{children:[{name:"currentTimeDisplay"},{name:"playToggle"},{name:"durationDisplay"},{name:"progressControl"},{name:"ResolutionSwitchingButton"},{name:"volumeMenuButton",inline:!0},{name:"subtitlesButton"},{name:"captionsButton"}]}};return e},applySkinStyles:function(t){},getPlayer:function(t){for(var e=this.players.length-1;e>=0;e--)if(this.players[e].id()===t)return this.players[e];return!1},destroyPlayer:function(t){for(var e=this.players.length-1;e>=0;e--)this.players[e].id()===t&&(this.players[e].dispose(),this.players.splice(e,1))},isYoutubePlayer:function(t){return t.hasAttribute("data-youtube-id")},getYoutubeOptions:function(t){var e={showinfo:0,techOrder:["youtube"],sources:[{type:"video/youtube",src:"https://www.youtube.com/watch?v="+t.getAttribute("data-youtube-id")}]};return ie>=8&&11>=ie&&(e.youtube={ytControls:2,color:"white"}),e},isVimeoPlayer:function(t){return t.hasAttribute("data-vimeo-id")},launchLightbox:function(t){var e=t.cloneNode(!0),o=e.getAttribute("id"),n=$dom.create("div.afterglow-lightbox-wrapper"),r=$dom.create("div.cover");n.appendChild(r);var i=$dom.create("div.afterglow-lightbox");n.appendChild(i),i.appendChild(e),t.setAttribute("data-id",t.getAttribute("id")),t.setAttribute("id","afterglow-lightbox-videoel"),document.body.appendChild(n),afterglow.initPlayer(e,function(e){isMobile||(afterglow.getPlayer(o).play(),afterglow.getPlayer(o).paused()&&(afterglow.getPlayer(o).posterImage.show(),afterglow.getPlayer(o).bigPlayButton.show())),"true"==t.getAttribute("data-autoclose")?e.on("ended",function(){afterglow.closeLightbox()}):e.on("ended",function(){afterglow.getPlayer(o).posterImage.show()});afterglow.getPlayer(o).TopControlBar.addChild("LightboxCloseButton")}),afterglow.resizeLightbox(),addEventHandler(window,"resize",function(){afterglow.resizeLightbox()}),addEventHandler(r,"click",function(){afterglow.closeLightbox()}),addEventHandler(window,"keyup",function(t){t=t?t:window.event,27==t.keyCode&&afterglow.closeLightbox()})},resizeLightbox:function(){var t=$dom.get("div.afterglow-lightbox-wrapper")[0];if(void 0!=t){var e=$dom.get("div.afterglow-lightbox-wrapper video");if(1==e.length){e=e[0];var o=e.getAttribute("data-ratio");if("false"==e.getAttribute("data-overscale"))var n=this.calculateLightboxSizes(o,parseInt(e.getAttribute("data-maxwidth")));else var n=this.calculateLightboxSizes(o)}else if(1==$dom.get("div.afterglow-lightbox-wrapper .vjs-youtube").length){playerel=$dom.get("div.afterglow-lightbox-wrapper .vjs-youtube")[0];var o=playerel.getAttribute("data-ratio"),n=this.calculateLightboxSizes(o)}$dom.style(t,{width:n.width,height:n.height}),$dom.style($dom.get("div.afterglow-lightbox-wrapper div.afterglow-lightbox")[0],{height:n.playerheight+"px",width:n.playerwidth+"px",top:n.playeroffsettop+"px",left:n.playeroffsetleft+"px"})}},calculateLightboxSizes:function(t,e){var o={};return o.width=window.clientWidth||document.documentElement.clientWidth||document.body.clientWidth||window.innerWidth,o.height=window.clientHeight||document.documentElement.clientHeight||document.body.clientHeight||window.innerHeight,o.height/o.width>t?("undefined"!=typeof e&&e<.9*o.width?o.playerwidth=e:o.playerwidth=.9*o.width,o.playerheight=o.playerwidth*t):("undefined"!=typeof e&&e<.92*o.height/t?o.playerheight=e*t:o.playerheight=.92*o.height,o.playerwidth=o.playerheight/t),o.playeroffsettop=(o.height-o.playerheight)/2,o.playeroffsetleft=(o.width-o.playerwidth)/2,o},closeLightbox:function(){var t=$dom.get("div.afterglow-lightbox-wrapper")[0];if(void 0!=t){var e=$dom.get("div.afterglow-lightbox-wrapper video");if(1==e.length)e=e[0],o=e.parentNode.getAttribute("id");else if(1==$dom.get("div.afterglow-lightbox-wrapper .vjs-youtube").length){playerel=$dom.get("div.afterglow-lightbox-wrapper .vjs-youtube")[0];var o=playerel.getAttribute("id")}afterglow.getPlayer(o).pause().exitFullscreen(),afterglow.destroyPlayer(o),t.parentNode.removeChild(t);var e=$dom.get("#afterglow-lightbox-videoel")[0];e.setAttribute("id",o),e.removeAttribute("data-id"),afterglow.reInitLightboxPlayer(o)}},configureVideoJS:function(){window.HELP_IMPROVE_VIDEOJS=!1}},$dom.onready(function(){afterglow.init()}); \ No newline at end of file diff --git a/dist/afterglow.zip b/dist/afterglow.zip new file mode 100644 index 0000000..1189b65 Binary files /dev/null and b/dist/afterglow.zip differ diff --git a/gulpfile.js b/gulpfile.js index 99b65a8..425defc 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -59,7 +59,7 @@ gulp.task('build-afterglow', ['compilecomponents'], function(){ './src/videojs/video.min.js', ])) .pipe(plugins.addSrc.append([ - './dist/tmp/components.js', + './dist/tmp/*.js', './src/videojs/plugins/videojs.hotkeys.js', './src/videojs/plugins/Youtube.js', ])) @@ -81,17 +81,8 @@ gulp.task('build-afterglow', ['compilecomponents'], function(){ // Task to compile ES6 components gulp.task('compilecomponents', function(){ - return gulp.src([ - './src/videojs/components/TopControlBar.js', - './src/videojs/components/LightboxCloseButton.js' - ]) - .pipe(plugins.browserify2({ - fileName: 'components.js', - transform: require('6to5ify'), - options: { - debug: false - } - })) + return gulp.src('./src/videojs/components/*.js') + .pipe(plugins.babel()) .pipe(gulp.dest('dist/tmp/')); }); diff --git a/package.json b/package.json index 3b1157b..f379345 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "afterglow", "description": "An easy to integrate HTML5 video player with lightbox support.", - "version": "0.1.3", + "version": "0.2.0", "license": "MIT", "repository": { "type": "git", @@ -9,11 +9,10 @@ }, "homepage": "http://afterglowplayer.com", "devDependencies": { - "6to5ify": "^4.1.1", "del": "^1.2.1", "gulp": "^3.9.0", "gulp-add-src": "~0.2.0", - "gulp-browserify2": "0.0.2", + "gulp-babel": "^5.2.1", "gulp-bump": "^0.3.1", "gulp-concat": "*", "gulp-css2js": "*", diff --git a/sandbox/index.html b/sandbox/index.html index 11ecb22..3bf0cc5 100644 --- a/sandbox/index.html +++ b/sandbox/index.html @@ -18,6 +18,7 @@ + @@ -42,11 +43,12 @@

Local video, single source, with poster

-

Local video with poster, captions and subtitles

-