1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="94f48f5c-13aa-5550-86ed-157afa8d8ac6")}catch(e){}}(); 3import{c as E,d as N}from"./chunk-XLFNES36.js";import{c as B,k as A}from"./chunk-7Q6MBNO6.js";(function(){"use strict";var f=null;typeof window.videojs>"u"&&typeof B=="function"?f=(N(),A(E)):f=window.videojs,function(x,a){var R={},b,m={},h={};function _(o,i,l,s){return m={label:l,sources:i},typeof s=="function"?s(o,i,l):(o.src(i.map(function(r){return{src:r.src,type:r.type,res:r.res}})),o)}var v=a.getComponent("MenuItem"),L=a.extend(v,{constructor:function(o,i,l,s){this.onClickListener=l,this.label=s,v.call(this,o,i),this.src=i.src,this.on("click",this.onClick),this.on("touchstart",this.onClick),i.initialySelected&&(this.showAsLabel(),this.selected(!0),this.addClass("vjs-selected"))},showAsLabel:function(){this.label&&(this.label.innerHTML=this.options_.label)},onClick:function(o){this.onClickListener(this);var i=this.player_.currentTime(),l=this.player_.paused(),s=this.player_.playbackRate(),r=this.player_.options_.poster;this.showAsLabel(),this.addClass("vjs-selected"),l?this.player_.bigPlayButton.show():(this.player_.bigPlayButton.hide(),r&&this.player_.posterImage.setSrc("")),typeof o!="function"&&typeof this.options_.customSourcePicker=="function"&&(o=this.options_.customSourcePicker);var u="loadeddata";this.player_.techName_!=="Youtube"&&this.player_.preload()==="none"&&this.player_.techName_!=="Flash"&&(u="timeupdate"),_(this.player_,this.src,this.options_.label,o).one(u,function(){this.player_.currentTime(i),l||(this.player_.playbackRate(s),this.player_.play(),this.player_.posterImage.setSrc(r)),this.player_.trigger("resolutionchange")})}}),g=a.getComponent("MenuButton"),S=a.extend(g,{constructor:function(o,i,l,s){if(this.sources=i.sources,this.label=s,this.label.innerHTML=i.initialySelectedLabel,g.call(this,o,i,l),this.controlText("Quality"),l.dynamicLabel)this.el().appendChild(s);else{var r=document.createElement("span");a.dom.appendContent(r,i.initialySelectedLabel),a.dom.addClass(r,"vjs-resolution-button-staticlabel"),this.el().appendChild(r)}},createItems:function(){var o=[],i=this.sources&&this.sources.label||{},l=function(r){o.map(function(u){u.selected(u===r),u.removeClass("vjs-selected")})};for(var s in i)i.hasOwnProperty(s)&&(o.push(new L(this.player_,{label:s,src:i[s],initialySelected:s===this.options_.initialySelectedLabel,customSourcePicker:this.options_.customSourcePicker},l,this.label)),h[s]=o[o.length-1]);return o}});b=function(o){var i=a.mergeOptions(R,o),l=this,s=document.createElement("span"),r={};a.dom.addClass(s,"vjs-resolution-button-label"),this.el().appendChild(s),l.updateSrc=function(e){if(!e)return l.src();l.controlBar.resolutionSwitcher&&(l.controlBar.resolutionSwitcher.dispose(),delete l.controlBar.resolutionSwitcher),e=e.sort(u),r=w(e);var t=I(r,e),n=new S(l,{sources:r,initialySelectedLabel:t.label,initialySelectedRes:t.res,customSourcePicker:i.customSourcePicker},i,s);return a.dom.addClass(n.el(),"vjs-resolution-button"),l.controlBar.resolutionSwitcher=l.controlBar.el_.insertBefore(n.el_,l.controlBar.getChild("fullscreenToggle").el_),l.controlBar.resolutionSwitcher.dispose=function(){this.parentNode.removeChild(this)},_(l,t.sources,t.label)},l.currentResolution=function(e,t){return console.log("currentResolution: ",e),e==null?m:(console.log("currentResolution: ",h[e]),h[e]!=null&&h[e].onClick(t),l)},l.getGroupedSrc=function(){return r};function u(e,t){return!e.res||!t.res?0:+t.res-+e.res}function w(e){var t={label:{},res:{},type:{}};return e.map(function(n){p(t,"label",n),p(t,"res",n),p(t,"type",n),y(t,"label",n),y(t,"res",n),y(t,"type",n)}),t}function p(e,t,n){e[t][n[t]]==null&&(e[t][n[t]]=[])}function y(e,t,n){e[t][n[t]].push(n)}function I(e,t){var n=i.default,c="";return n==="high"?(n=t[0].res,c=t[0].label):n==="low"||n==null||!e.res[n]?(n=t[t.length-1].res,c=t[t.length-1].label):e.res[n]&&(c=e.res[n][0].label),{res:n,label:c,sources:e.res[n]}}function M(e){e.tech_.ytPlayer.setPlaybackQuality("default"),e.tech_.ytPlayer.addEventListener("onPlaybackQualityChange",function(){e.trigger("resolutionchange")}),e.one("play",function(){var t=e.tech_.ytPlayer.getAvailableQualityLevels(),n={highres:{res:1080,label:"1080",yt:"highres"},hd1080:{res:1080,label:"1080",yt:"hd1080"},hd720:{res:720,label:"720",yt:"hd720"},large:{res:480,label:"480",yt:"large"},medium:{res:360,label:"360",yt:"medium"},small:{res:240,label:"240",yt:"small"},tiny:{res:144,label:"144",yt:"tiny"},auto:{res:0,label:"auto",yt:"default"}},c=[];t.map(function(d){c.push({src:e.src().src,type:e.src().type,label:n[d].label,res:n[d].res,_yt:n[d].yt})}
3),r=w(c);var T=function(d,Q,H){return e.tech_.ytPlayer.setPlaybackQuality(Q[0]._yt),e},C={label:"auto",res:0,sources:r.label.auto},P=new S(e,{sources:r,initialySelectedLabel:C.label,initialySelectedRes:C.res,customSourcePicker:T},i,s);P.el().classList.add("vjs-resolution-button"),e.controlBar.resolutionSwitcher=e.controlBar.addChild(P)})}l.ready(function(){l.options_.sources.length>1&&l.updateSrc(l.options_.sources),l.techName_==="Youtube"&&M(l)})};var k=a.registerPlugin||a.plugin;k("videoJsResolutionSwitcher",b)}(window,f)})(); 4/**i18n:a22416d48d5d315853b2ff30dd429c3cf66bb88014970864ad6c2ff7ea890e29*/ 5 6//# debugId=94f48f5c-13aa-5550-86ed-157afa8d8ac6
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.