!function e(t,n,l){function i(u,s){if(!n[u]){if(!t[u]){var a="function"==typeof require&&require;if(!s&&a)return a(u,!0);if(o)return o(u,!0);var r=new Error("Cannot find module '"+u+"'");throw r.code="MODULE_NOT_FOUND",r}var d=n[u]={exports:{}};t[u][0].call(d.exports,function(e){var n=t[u][1][e];return i(n?n:e)},d,d.exports,e,t,n,l)}return n[u].exports}for(var o="function"==typeof require&&require,u=0;u=2160?"4K":e>=720?"HD":""},h=function(e){function t(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,t);var u=o(this,e.call(this,n,l));return u.el_.setAttribute("aria-label",u.localize("Quality Levels")),u.controlText("Quality Levels"),u.qualityLevels_=n.qualityLevels(),u.update=u.update.bind(u),u.handleQualityChange_=u.handleQualityChange_.bind(u),u.changeHandler_=function(){for(var e=u.options_.defaultResolution,t=0;t=this.options_.sdBitrateLimit&&(n="HD")),"HD"===n?(this.addClass("vjs-quality-menu-button-HD-flag"),this.removeClass("vjs-quality-menu-button-4K-flag")):"4K"===n?(this.removeClass("vjs-quality-menu-button-HD-flag"),this.addClass("vjs-quality-menu-button-4K-flag")):(this.removeClass("vjs-quality-menu-button-HD-flag"),this.removeClass("vjs-quality-menu-button-4K-flag")),this.autoMenuItem_&&(this.autoMenuItem_.manuallySelected_&&e?this.autoMenuItem_.subLabel_.innerHTML=this.localize(n):this.autoMenuItem_.subLabel_.innerHTML="")},t}(f);a["default"].registerComponent("QualityMenuButton",h),n["default"]=h}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(e,t,n){(function(e){"use strict";function t(e){return e&&e.__esModule?e:{"default":e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var u="undefined"!=typeof window?window.videojs:"undefined"!=typeof e?e.videojs:null,s=t(u),a=s["default"].getComponent("MenuItem"),r=s["default"].dom||s["default"],d=function(e){function t(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};l(this,t);var u=o.selected;o.selected=o.active;var s=i(this,e.call(this,n,o)),a=n.qualityLevels();return s.levels_=o.levels,s.selected_=u,s.handleQualityChange=s.handleQualityChange.bind(s),s.controlText(o.controlText),s.on(a,"change",s.handleQualityChange),s.on("dispose",function(){s.off(a,"change",s.handleQualityChange)}),s}return o(t,e),t.prototype.createEl=function(t,n,l){var i=e.prototype.createEl.call(this,t,n,l),o=r.createEl("span",{className:"vjs-quality-menu-item-sub-label",innerHTML:this.localize(this.options_.subLabel||"")});return this.subLabel_=o,i&&i.appendChild(o),i},t.prototype.handleClick=function(){this.updateSiblings_();for(var e=this.player().qualityLevels(),t=e.selectedIndex,n=0,l=e.length;n-1;this.selected(t)},t.prototype.selected=function(e){if(this.selectable)if(this.selected_){this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(this.localize(this.options_.controlText)+this.localize(", selected"));var t=this.player().controlBar,n=t.getChild("QualityMenuButton");e?n.removeClass("vjs-quality-menu-button-waiting"):n.addClass("vjs-quality-menu-button-waiting")}else this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(this.options_.controlText)},t.prototype.updateSiblings_=function(){for(var e=this.player().qualityLevels(),t=this.player().controlBar,n=t.getChild("QualityMenuButton").items,l=0,i=n.length;l-1;o.selected_=o===this,o.selected(u)}},t}(a);n["default"]=d}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],3:[function(e,t,n){},{}],4:[function(e,t,n){(function(n){var l="undefined"!=typeof n?n:"undefined"!=typeof window?window:{},i=e(3);if("undefined"!=typeof document)t.exports=document;else{var o=l["__GLOBAL_DOCUMENT_CACHE@4"];o||(o=l["__GLOBAL_DOCUMENT_CACHE@4"]=i),t.exports=o}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],5:[function(e,t,n){(function(t){"use strict";function l(e){return e&&e.__esModule?e:{"default":e}}n.__esModule=!0;var i="undefined"!=typeof window?window.videojs:"undefined"!=typeof t?t.videojs:null,o=l(i),u=e(6),s=l(u),a=o["default"].registerPlugin||o["default"].plugin,r=function(e,t){var n=e.qualityLevels,l=new s["default"],i=function o(){l.dispose(),e.qualityLevels=n,e.off("dispose",o)};return e.on("dispose",i),e.qualityLevels=function(){return l},e.qualityLevels.VERSION="2.0.3",l},d=function(e){return r(this,o["default"].mergeOptions({},e))};a("qualityLevels",d),d.VERSION="2.0.3",n["default"]=d}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],6:[function(e,t,n){(function(t){"use strict";function l(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var s="undefined"!=typeof window?window.videojs:"undefined"!=typeof t?t.videojs:null,a=l(s),r=e(4),d=l(r),f=e(7),c=l(f),p=function(e){function t(){var n;i(this,t);var l=o(this,e.call(this)),u=l;if(a["default"].browser.IS_IE8){u=d["default"].createElement("custom");for(var s in t.prototype)"constructor"!==s&&(u[s]=t.prototype[s])}return u.levels_=[],u.selectedIndex_=-1,Object.defineProperty(u,"selectedIndex",{get:function(){return u.selectedIndex_}}),Object.defineProperty(u,"length",{get:function(){return u.levels_.length}}),n=u,o(l,n)}return u(t,e),t.prototype.addQualityLevel=function(e){var t=this.getQualityLevelById(e.id);if(t)return t;var n=this.levels_.length;return t=new c["default"](e),""+n in this||Object.defineProperty(this,n,{get:function(){return this.levels_[n]}}),this.levels_.push(t),this.trigger({qualityLevel:t,type:"addqualitylevel"}),t},t.prototype.removeQualityLevel=function(e){for(var t=null,n=0,l=this.length;nn&&this.selectedIndex_--;break}return t&&this.trigger({qualityLevel:e,type:"removequalitylevel"}),t},t.prototype.getQualityLevelById=function(e){for(var t=0,n=this.length;t