1/* 2 2020 Chris Boustead ([email protected]) 3 @license MIT 4*/ 5var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(a){var d=0;return function(){return d<a.length?{done:!1,value:a[d++]}:{done:!0}}};$jscomp.arrayIterator=function(a){return{next:$jscomp.arrayIteratorImpl(a)}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1; 6$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,d,e){if(a==Array.prototype||a==Object.prototype)return a;a[d]=e.value;return a};$jscomp.getGlobal=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var d=0;d<a.length;++d){var e=a[d];if(e&&e.Math==Math)return e}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this); 7$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(a,d){var e=$jscomp.propertyToPolyfillSymbol[d];if(null==e)return a[d];e=a[e];return void 0!==e?e:a[d]}; 8$jscomp.polyfill=function(a,d,e,g){d&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(a,d,e,g):$jscomp.polyfillUnisolated(a,d,e,g))};$jscomp.polyfillUnisolated=function(a,d,e,g){e=$jscomp.global;a=a.split(".");for(g=0;g<a.length-1;g++){var k=a[g];if(!(k in e))return;e=e[k]}a=a[a.length-1];g=e[a];d=d(g);d!=g&&null!=d&&$jscomp.defineProperty(e,a,{configurable:!0,writable:!0,value:d})}; 9$jscomp.polyfillIsolated=function(a,d,e,g){var k=a.split(".");a=1===k.length;g=k[0];g=!a&&g in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var p=0;p<k.length-1;p++){var v=k[p];if(!(v in g))return;g=g[v]}k=k[k.length-1];e=$jscomp.IS_SYMBOL_NATIVE&&"es6"===e?g[k]:null;d=d(e);null!=d&&(a?$jscomp.defineProperty($jscomp.polyfills,k,{configurable:!0,writable:!0,value:d}):d!==e&&(void 0===$jscomp.propertyToPolyfillSymbol[k]&&(e=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[k]=$jscomp.IS_SYMBOL_NATIVE? 10 $jscomp.global.Symbol(k):$jscomp.POLYFILL_PREFIX+e+"$"+k),$jscomp.defineProperty(g,$jscomp.propertyToPolyfillSymbol[k],{configurable:!0,writable:!0,value:d})))};$jscomp.initSymbol=function(){}; 11$jscomp.polyfill("Symbol",function(a){if(a)return a;var d=function(p,v){this.$jscomp$symbol$id_=p;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:v})};d.prototype.toString=function(){return this.$jscomp$symbol$id_};var e="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",g=0,k=function(p){if(this instanceof k)throw new TypeError("Symbol is not a constructor");return new d(e+(p||"")+"_"+g++,p)};return k},"es6","es3"); 12$jscomp.polyfill("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var d="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),e=0;e<d.length;e++){var g=$jscomp.global[d[e]];"function"===typeof g&&"function"!=typeof g.prototype[a]&&$jscomp.defineProperty(g.prototype,a,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}})}return a},"es6", 13 "es3");$jscomp.iteratorPrototype=function(a){a={next:a};a[Symbol.iterator]=function(){return this};return a}; 14(function(a,d){"object"===typeof exports&&"undefined"!==typeof module?module.exports=d(require("video.js")):"function"===typeof define&&define.amd?define(["video.js"],d):a.videojsHlsQualitySelector=d(a.videojs)})(this,function(a){a=a&&a.hasOwnProperty("default")?a["default"]:a;var d="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(f){return typeof f}:function(f){return f&&"function"===typeof Symbol&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f};(function(){function f(c){this.value= 15 c}function b(c){function h(m,n){try{var t=c[m](n),w=t.value;w instanceof f?Promise.resolve(w.value).then(function(u){h("next",u)},function(u){h("throw",u)}):l(t.done?"return":"normal",t.value)}catch(u){l("throw",u)}}function l(m,n){switch(m){case "return":q.resolve({value:n,done:!0});break;case "throw":q.reject(n);break;default:q.resolve({value:n,done:!1})}(q=q.next)?h(q.key,q.arg):r=null}var q,r;this._invoke=function(m,n){return new Promise(function(t,w){var u={key:m,arg:n,resolve:t,reject:w,next:null}; 16 r?r=r.next=u:(q=r=u,h(m,n))})};"function"!==typeof c["return"]&&(this["return"]=void 0)}"function"===typeof Symbol&&Symbol.asyncIterator&&(b.prototype[Symbol.asyncIterator]=function(){return this});b.prototype.next=function(c){return this._invoke("next",c)};b.prototype["throw"]=function(c){return this._invoke("throw",c)};b.prototype["return"]=function(c){return this._invoke("return",c)};return{wrap:function(c){return function(){return new b(c.apply(this,arguments))}},await:function(c){return new f(c)}}})(); 17 var e=function(f,b){if(!(f instanceof b))throw new TypeError("Cannot call a class as a function");},g=function(f,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);f.prototype=Object.create(b&&b.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(f,b):f.__proto__=b)},k=function(f,b){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 18 return!b||"object"!==typeof b&&"function"!==typeof b?f:b},p=a.getComponent("MenuButton"),v=a.getComponent("Menu"),z=a.getComponent("Component"),y=a.dom,A=function(f){function b(c){e(this,b);
18return k(this,f.call(this,c,{title:c.localize("Qualidade"),name:"QualityButton"}))}g(b,f);b.prototype.createItems=function(){return[]};b.prototype.createMenu=function(){var c=new v(this.player_,{menuButton:this});this.hideThreshold_=0;if(this.options_.title){var h=y.createEl;var l=this.options_.title;l="string"!== 19 typeof l?l:l.charAt(0).toUpperCase()+l.slice(1);h=h.call(y,"li",{className:"vjs-menu-title",innerHTML:l,tabIndex:-1});h=new z(this.player_,{el:h});this.hideThreshold_+=1;c.addItem(h)}if(this.items=this.createItems())for(h=0;h<this.items.length;h++)c.addItem(this.items[h]);return c};return b}(p),B=function(f){function b(c,h,l,q){e(this,b);c=k(this,f.call(this,c,{label:h.label,selectable:!0,selected:h.selected||!1}));c.item=h;c.qualityButton=l;c.plugin=q;return c}g(b,f);b.prototype.handleClick=function(){for(var c= 20 0;c<this.qualityButton.items.length;++c)this.qualityButton.items[c].selected(!1);this.plugin.setQuality(this.item.value);this.selected(!0)};return b}(a.getComponent("MenuItem")),C={};p=a.registerPlugin||a.plugin;var D=function(){function f(b,c){e(this,f);this.player=b;this.config=c;this.player.qualityLevels&&this.getHls()&&(this.createQualityButton(),this.bindPlayerEvents())}f.prototype.getHls=function(){return this.player.tech({IWillNotUseThisInPlugins:!0}).hls};f.prototype.bindPlayerEvents=function(){this.player.qualityLevels().on("addqualitylevel", 21 this.onAddQualityLevel.bind(this))};f.prototype.createQualityButton=function(){var b=this.player;this._qualityButton=new A(b);var c=b.controlBar.children().length-2;b=b.controlBar.addChild(this._qualityButton,{componentClass:"qualitySelector"},this.config.placementIndex||c);b.addClass("vjs-quality-selector");this.config.displayCurrentQuality?this.setButtonInnerText("Auto"):(c=" "+(this.config.vjsIconClass||"vjs-icon-hd"),b.menuButton_.$(".vjs-icon-placeholder").className+=c);b.removeClass("vjs-hidden")}; 22 f.prototype.setButtonInnerText=function(b){this._qualityButton.menuButton_.$(".vjs-icon-placeholder").innerHTML=b};f.prototype.getQualityMenuItem=function(b){return new B(this.player,b,this._qualityButton,this)};f.prototype.onAddQualityLevel=function(){for(var b=this,c=this.player,h=c.qualityLevels().levels_||[],l=[],q=function(m){if(!l.filter(function(t){return t.item&&t.item.value===h[m].height}).length){var n=b.getQualityMenuItem.call(b,{label:h[m].height+"p",value:h[m].height});l.push(n)}},r= 23 0;r<h.length;++r)q(r);l.sort(function(m,n){return"object"!==("undefined"===typeof m?"undefined":d(m))||"object"!==("undefined"===typeof n?"undefined":d(n))||m.item.value<n.item.value?-1:m.item.value>n.item.value?1:0});l.push(this.getQualityMenuItem.call(this,{label:c.localize("Auto"),value:"Auto",selected:!0}));this._qualityButton&&(this._qualityButton.createItems=function(){return l},this._qualityButton.update())};f.prototype.setQuality=function(b){var c=this.player.qualityLevels();this._currentQuality= 24 b;this.config.displayCurrentQuality&&this.setButtonInnerText("Auto"===b?b:b+"p");for(var h=0;h<c.length;++h){var l=c[h];l.enabled=l.height===b||"Auto"===b}this._qualityButton.unpressButton()};f.prototype.getCurrentQuality=function(){return this._currentQuality||"Auto"};return f}(),x=function(f){var b=this;this.ready(function(){var c=a.mergeOptions(C,f);b.addClass("vjs-hls-quality-selector");b.hlsQualitySelector=new D(b,c)})};p("hlsQualitySelector",x);x.VERSION="1.1.4";return x});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.