/*! For license information please see LICENSES */ (window.webpackJsonp=window.webpackJsonp||[]).push([[17],{161:function(e,t,n){"use strict";for(var r,o=n(0),l=n.n(o),d=n(2),c=n.n(d),h=n(21),f=n.n(h),m=n(6),v=n.n(m),y=n(3),_=n.n(y),T=n(162),k=n.n(T),S=n(7),j=n.n(S),C=n(105),w=n.n(C),E=n(106),x=n.n(E),A=n(163),I=n.n(A),P=n(164),L=n.n(P),O=n(54),D=n(168),M=n(8),R=n(108),U=n(38),B=n(166),F=n.n(B),N=n(46),H=n(70),V=n(1),W=n(69),z="7.13.3",G={prefixed:!0},K=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"]],Q=K[0],i=0;i0?h:0)}if(l.a.console){var f=l.a.console[n];f||"debug"!==n||(f=l.a.console.info||l.a.console.log),f&&d&&c.test(n)&&f[Array.isArray(o)?"apply":"call"](l.a.console,o)}}}(t,o),o.createLogger=function(n){return e(t+": "+n)},o.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:r},o.level=function(e){if("string"==typeof e){if(!o.levels.hasOwnProperty(e))throw new Error('"'+e+'" in not a valid log level');r=e}return r},(o.history=function(){return X?[].concat(X):[]}).filter=function(e){return(X||[]).filter((function(t){return new RegExp(".*"+e+".*").test(t[0])}))},o.history.clear=function(){X&&(X.length=0)},o.history.disable=function(){null!==X&&(X.length=0,X=null)},o.history.enable=function(){null===X&&(X=[])},o.error=function(){for(var e=arguments.length,t=new Array(e),o=0;o1?t-1:0),r=1;r=0)throw new Error("class has illegal whitespace characters")}function Ie(){return c.a===l.a.document}function Pe(e){return ie(e)&&1===e.nodeType}function Le(){try{return l.a.parent!==l.a.self}catch(e){return!0}}function Oe(e){return function(t,n){if(!xe(t))return c.a[e](null);xe(n)&&(n=c.a.querySelector(n));var r=Pe(n)?n:c.a;return r[e]&&r[e](t)}}function De(e,t,n,content){void 0===e&&(e="div"),void 0===t&&(t={}),void 0===n&&(n={});var r=c.a.createElement(e);return Object.getOwnPropertyNames(t).forEach((function(e){var n=t[e];-1!==e.indexOf("aria-")||"role"===e||"type"===e?(J.warn("Setting attributes in the second argument of createEl()\nhas been deprecated. Use the third argument instead.\ncreateEl(type, properties, attributes). Attempting to set "+e+" to "+n+"."),r.setAttribute(e,n)):"textContent"===e?Me(r,n):r[e]===n&&"tabIndex"!==e||(r[e]=n)})),Object.getOwnPropertyNames(n).forEach((function(e){r.setAttribute(e,n[e])})),content&&et(r,content),r}function Me(e,text){return void 0===e.textContent?e.innerText=text:e.textContent=text,e}function Re(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function Ue(element,e){return Ae(e),element.classList?element.classList.contains(e):(t=e,new RegExp("(^|\\s)"+t+"($|\\s)")).test(element.className);var t}function Be(element,e){return element.classList?element.classList.add(e):Ue(element,e)||(element.className=(element.className+" "+e).trim()),element}function Fe(element,e){return element.classList?element.classList.remove(e):(Ae(e),element.className=element.className.split(/\s+/).filter((function(t){return t!==e})).join(" ")),element}function Ne(element,e,t){var n=Ue(element,e);if("function"==typeof t&&(t=t(element,e)),"boolean"!=typeof t&&(t=!n),t!==n)return t?Be(element,e):Fe(element,e),element}function He(e,t){Object.getOwnPropertyNames(t).forEach((function(n){var r=t[n];null==r||!1===r?e.removeAttribute(n):e.setAttribute(n,!0===r?"":r)}))}function qe(e){var t={},n=",autoplay,controls,playsinline,loop,muted,default,defaultMuted,";if(e&&e.attributes&&e.attributes.length>0)for(var r=e.attributes,i=r.length-1;i>=0;i--){var o=r[i].name,l=r[i].value;"boolean"!=typeof e[o]&&-1===n.indexOf(","+o+",")||(l=null!==l),t[o]=l}return t}function Ve(e,t){return e.getAttribute(t)}function We(e,t,n){e.setAttribute(t,n)}function ze(e,t){e.removeAttribute(t)}function Ge(){c.a.body.focus(),c.a.onselectstart=function(){return!1}}function Ke(){c.a.onselectstart=function(){return!0}}function Qe(e){if(e&&e.getBoundingClientRect&&e.parentNode){var rect=e.getBoundingClientRect(),t={};return["bottom","height","left","right","top","width"].forEach((function(e){void 0!==rect[e]&&(t[e]=rect[e])})),t.height||(t.height=parseFloat(se(e,"height"))),t.width||(t.width=parseFloat(se(e,"width"))),t}}function Ye(e){if(!e||e&&!e.offsetParent)return{left:0,top:0,width:0,height:0};for(var t=e.offsetWidth,n=e.offsetHeight,r=0,o=0;e.offsetParent&&e!==c.a[G.fullscreenElement];)r+=e.offsetLeft,o+=e.offsetTop,e=e.offsetParent;return{left:r,top:o,width:t,height:n}}function Xe(e,t){var n={x:0,y:0};if(Ce)for(var r=e;r&&"html"!==r.nodeName.toLowerCase();){var o=se(r,"transform");if(/^matrix/.test(o)){var l=o.slice(7,-1).split(/,\s/).map(Number);n.x+=l[4],n.y+=l[5]}else if(/^matrix3d/.test(o)){var d=o.slice(9,-1).split(/,\s/).map(Number);n.x+=d[12],n.y+=d[13]}r=r.parentNode}var c={},h=Ye(t.target),f=Ye(e),m=f.width,v=f.height,y=t.offsetY-(f.top-h.top),_=t.offsetX-(f.left-h.left);return t.changedTouches&&(_=t.changedTouches[0].pageX-f.left,y=t.changedTouches[0].pageY+f.top,Ce&&(_-=n.x,y-=n.y)),c.y=1-Math.max(0,Math.min(1,y/v)),c.x=Math.max(0,Math.min(1,_/m)),c}function Je(e){return ie(e)&&3===e.nodeType}function Ze(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function $e(content){return"function"==typeof content&&(content=content()),(Array.isArray(content)?content:[content]).map((function(e){return"function"==typeof e&&(e=e()),Pe(e)||Je(e)?e:"string"==typeof e&&/\S/.test(e)?c.a.createTextNode(e):void 0})).filter((function(e){return e}))}function et(e,content){return $e(content).forEach((function(t){return e.appendChild(t)})),e}function tt(e,content){return et(Ze(e),content)}function nt(e){return void 0===e.button&&void 0===e.buttons||(0===e.button&&void 0===e.buttons||("mouseup"===e.type&&0===e.button&&0===e.buttons||0===e.button&&1===e.buttons))}var it,st=Oe("querySelector"),at=Oe("querySelectorAll"),ot=Object.freeze({__proto__:null,isReal:Ie,isEl:Pe,isInFrame:Le,createEl:De,textContent:Me,prependTo:Re,hasClass:Ue,addClass:Be,removeClass:Fe,toggleClass:Ne,setAttributes:He,getAttributes:qe,getAttribute:Ve,setAttribute:We,removeAttribute:ze,blockTextSelection:Ge,unblockTextSelection:Ke,getBoundingClientRect:Qe,findPosition:Ye,getPointerPosition:Xe,isTextNode:Je,emptyEl:Ze,normalizeContent:$e,appendContent:et,insertContent:tt,isSingleLeftClick:nt,$:st,$$:at}),lt=!1,ut=function(){if(!1!==it.options.autoSetup){var e=Array.prototype.slice.call(c.a.getElementsByTagName("video")),t=Array.prototype.slice.call(c.a.getElementsByTagName("audio")),n=Array.prototype.slice.call(c.a.getElementsByTagName("video-js")),r=e.concat(t,n);if(r&&r.length>0)for(var i=0,o=r.length;i-1&&(r={passive:!0}),e.addEventListener(t,data.dispatcher,r)}else e.attachEvent&&e.attachEvent("on"+t,data.dispatcher)}function Ct(e,t,n){if(_t.has(e)){var data=_t.get(e);if(data.handlers){if(Array.isArray(t))return Tt(Ct,e,t,n);var r=function(e,t){data.handlers[t]=[],bt(e,t)};if(void 0!==t){var o=data.handlers[t];if(o)if(n){if(n.guid)for(var l=0;l=t&&(e.apply(void 0,arguments),n=r)}},Dt=function(){};Dt.prototype.allowedEvents_={},Dt.prototype.on=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},jt(this,e,t),this.addEventListener=n},Dt.prototype.addEventListener=Dt.prototype.on,Dt.prototype.off=function(e,t){Ct(this,e,t)},Dt.prototype.removeEventListener=Dt.prototype.off,Dt.prototype.one=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},Et(this,e,t),this.addEventListener=n},Dt.prototype.any=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},xt(this,e,t),this.addEventListener=n},Dt.prototype.trigger=function(e){var t=e.type||e;"string"==typeof e&&(e={type:t}),e=kt(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),wt(this,e)},Dt.prototype.dispatchEvent=Dt.prototype.trigger,Dt.prototype.queueTrigger=function(e){var t=this;At||(At=new Map);var n=e.type||e,map=At.get(this);map||(map=new Map,At.set(this,map));var r=map.get(n);map.delete(n),l.a.clearTimeout(r);var o=l.a.setTimeout((function(){0===map.size&&(map=null,At.delete(t)),t.trigger(e)}),0);map.set(n,o)};var Mt=function(e){return"function"==typeof e.name?e.name():"string"==typeof e.name?e.name:e.name_?e.name_:e.constructor&&e.constructor.name?e.constructor.name:typeof e},Rt=function(object){return object instanceof Dt||!!object.eventBusEl_&&["on","one","off","trigger"].every((function(e){return"function"==typeof object[e]}))},Ut=function(e){return"string"==typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length},Bt=function(e,t,n){if(!e||!e.nodeName&&!Rt(e))throw new Error("Invalid target for "+Mt(t)+"#"+n+"; must be a DOM node or evented object.")},Ft=function(e,t,n){if(!Ut(e))throw new Error("Invalid event type for "+Mt(t)+"#"+n+"; must be a non-empty string or array.")},Nt=function(e,t,n){if("function"!=typeof e)throw new Error("Invalid listener for "+Mt(t)+"#"+n+"; must be a function.")},Ht=function(e,t,n){var r,o,l,d=t.length<3||t[0]===e||t[0]===e.eventBusEl_;return d?(r=e.eventBusEl_,t.length>=3&&t.shift(),o=t[0],l=t[1]):(r=t[0],o=t[1],l=t[2]),Bt(r,e,n),Ft(o,e,n),Nt(l,e,n),{isTargetingSelf:d,target:r,type:o,listener:l=Lt(e,l)}},qt=function(e,t,n,r){Bt(e,e,t),e.nodeName?It[t](e,n,r):e[t](n,r)},Vt={on:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r=0;i--)this.children_[i].dispose&&this.children_[i].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),_t.has(this.el_)&&_t.delete(this.el_),this.el_=null),this.player_=null}},t.isDisposed=function(){return Boolean(this.isDisposed_)},t.player=function(){return this.player_},t.options=function(e){return e?(this.options_=Yt(this.options_,e),this.options_):this.options_},t.el=function(){return this.el_},t.createEl=function(e,t,n){return De(e,t,n)},t.localize=function(e,t,n){void 0===n&&(n=e);var code=this.player_.language&&this.player_.language(),r=this.player_.languages&&this.player_.languages(),o=r&&r[code],l=code&&code.split("-")[0],d=r&&r[l],c=n;return o&&o[e]?c=o[e]:d&&d[e]&&(c=d[e]),t&&(c=c.replace(/\{(\d+)\}/g,(function(e,n){var r=t[n-1],o=r;return void 0===r&&(o=e),o}))),c},t.handleLanguagechange=function(){},t.contentEl=function(){return this.contentEl_||this.el_},t.id=function(){return this.id_},t.name=function(){return this.name_},t.children=function(){return this.children_},t.getChildById=function(e){return this.childIndex_[e]},t.getChild=function(e){if(e)return this.childNameIndex_[e]},t.getDescendant=function(){for(var e=arguments.length,t=new Array(e),n=0;n=0;i--)if(this.children_[i]===component){e=!0,this.children_.splice(i,1);break}if(e){component.parentComponent_=null,this.childIndex_[component.id()]=null,this.childNameIndex_[Qt(component.name())]=null,this.childNameIndex_[Kt(component.name())]=null;var t=component.el();t&&t.parentNode===this.contentEl()&&this.contentEl().removeChild(component.el())}}},t.initChildren=function(){var t=this,n=this.options_.children;if(n){var r,o=this.options_,l=e.getComponent("Tech");(r=Array.isArray(n)?n:Object.keys(n)).concat(Object.keys(this.options_).filter((function(e){return!r.some((function(t){return"string"==typeof t?e===t:e===t.name}))}))).map((function(e){var r,o;return"string"==typeof e?o=n[r=e]||t.options_[r]||{}:(r=e.name,o=e),{name:r,opts:o}})).filter((function(t){var n=e.getComponent(t.opts.componentClass||Qt(t.name));return n&&!l.isTech(n)})).forEach((function(e){var n=e.name,r=e.opts;if(void 0!==o[n]&&(r=o[n]),!1!==r){!0===r&&(r={}),r.playerOptions=t.options_.playerOptions;var l=t.addChild(n,r);l&&(t[n]=l)}}))}},t.buildCSSClass=function(){return""},t.ready=function(e,t){if(void 0===t&&(t=!1),e)return this.isReady_?void(t?e.call(this):this.setTimeout(e,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(e))},t.triggerReady=function(){this.isReady_=!0,this.setTimeout((function(){var e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach((function(e){e.call(this)}),this),this.trigger("ready")}),1)},t.$=function(e,t){return st(e,t||this.contentEl())},t.$$=function(e,t){return at(e,t||this.contentEl())},t.hasClass=function(e){return Ue(this.el_,e)},t.addClass=function(e){Be(this.el_,e)},t.removeClass=function(e){Fe(this.el_,e)},t.toggleClass=function(e,t){Ne(this.el_,e,t)},t.show=function(){this.removeClass("vjs-hidden")},t.hide=function(){this.addClass("vjs-hidden")},t.lockShowing=function(){this.addClass("vjs-lock-showing")},t.unlockShowing=function(){this.removeClass("vjs-lock-showing")},t.getAttribute=function(e){return Ve(this.el_,e)},t.setAttribute=function(e,t){We(this.el_,e,t)},t.removeAttribute=function(e){ze(this.el_,e)},t.width=function(e,t){return this.dimension("width",e,t)},t.height=function(e,t){return this.dimension("height",e,t)},t.dimensions=function(e,t){this.width(e,!0),this.height(t)},t.dimension=function(e,t,n){if(void 0!==t)return null!==t&&t==t||(t=0),-1!==(""+t).indexOf("%")||-1!==(""+t).indexOf("px")?this.el_.style[e]=t:this.el_.style[e]="auto"===t?"":t+"px",void(n||this.trigger("componentresize"));if(!this.el_)return 0;var r=this.el_.style[e],o=r.indexOf("px");return-1!==o?parseInt(r.slice(0,o),10):parseInt(this.el_["offset"+Qt(e)],10)},t.currentDimension=function(e){var t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");if(t=se(this.el_,e),0===(t=parseFloat(t))||isNaN(t)){var n="offset"+Qt(e);t=this.el_[n]}return t},t.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},t.currentWidth=function(){return this.currentDimension("width")},t.currentHeight=function(){return this.currentDimension("height")},t.focus=function(){this.el_.focus()},t.blur=function(){this.el_.blur()},t.handleKeyDown=function(e){this.player_&&(e.stopPropagation(),this.player_.handleKeyDown(e))},t.handleKeyPress=function(e){this.handleKeyDown(e)},t.emitTapEvents=function(){var e,t=0,n=null;this.on("touchstart",(function(r){1===r.touches.length&&(n={pageX:r.touches[0].pageX,pageY:r.touches[0].pageY},t=l.a.performance.now(),e=!0)})),this.on("touchmove",(function(t){if(t.touches.length>1)e=!1;else if(n){var r=t.touches[0].pageX-n.pageX,o=t.touches[0].pageY-n.pageY;Math.sqrt(r*r+o*o)>10&&(e=!1)}}));var r=function(){e=!1};this.on("touchleave",r),this.on("touchcancel",r),this.on("touchend",(function(r){(n=null,!0===e)&&(l.a.performance.now()-t<200&&(r.preventDefault(),this.trigger("tap")))}))},t.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var e,t=Lt(this.player(),this.player().reportUserActivity);this.on("touchstart",(function(){t(),this.clearInterval(e),e=this.setInterval(t,250)}));var n=function(n){t(),this.clearInterval(e)};this.on("touchmove",t),this.on("touchend",n),this.on("touchcancel",n)}},t.setTimeout=function(e,t){var n,r=this;return e=Lt(this,e),this.clearTimersOnDispose_(),n=l.a.setTimeout((function(){r.setTimeoutIds_.has(n)&&r.setTimeoutIds_.delete(n),e()}),t),this.setTimeoutIds_.add(n),n},t.clearTimeout=function(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_.delete(e),l.a.clearTimeout(e)),e},t.setInterval=function(e,t){e=Lt(this,e),this.clearTimersOnDispose_();var n=l.a.setInterval(e,t);return this.setIntervalIds_.add(n),n},t.clearInterval=function(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_.delete(e),l.a.clearInterval(e)),e},t.requestAnimationFrame=function(e){var t,n=this;return this.supportsRaf_?(this.clearTimersOnDispose_(),e=Lt(this,e),t=l.a.requestAnimationFrame((function(){n.rafIds_.has(t)&&n.rafIds_.delete(t),e()})),this.rafIds_.add(t),t):this.setTimeout(e,1e3/60)},t.requestNamedAnimationFrame=function(e,t){var n=this;if(!this.namedRafs_.has(e)){this.clearTimersOnDispose_(),t=Lt(this,t);var r=this.requestAnimationFrame((function(){t(),n.namedRafs_.has(e)&&n.namedRafs_.delete(e)}));return this.namedRafs_.set(e,r),e}},t.cancelNamedAnimationFrame=function(e){this.namedRafs_.has(e)&&(this.cancelAnimationFrame(this.namedRafs_.get(e)),this.namedRafs_.delete(e))},t.cancelAnimationFrame=function(e){return this.supportsRaf_?(this.rafIds_.has(e)&&(this.rafIds_.delete(e),l.a.cancelAnimationFrame(e)),e):this.clearTimeout(e)},t.clearTimersOnDispose_=function(){var e=this;this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",(function(){[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEach((function(t){var n=t[0],r=t[1];e[n].forEach((function(t,n){return e[r](n)}))})),e.clearingTimersOnDispose_=!1})))},e.registerComponent=function(t,n){if("string"!=typeof t||!t)throw new Error('Illegal component name, "'+t+'"; must be a non-empty string.');var r,o=e.getComponent("Tech"),l=o&&o.isTech(n),d=e===n||e.prototype.isPrototypeOf(n.prototype);if(l||!d)throw r=l?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error('Illegal component, "'+t+'"; '+r+".");t=Qt(t),e.components_||(e.components_={});var c=e.getComponent("Player");if("Player"===t&&c&&c.players){var h=c.players,f=Object.keys(h);if(h&&f.length>0&&f.map((function(e){return h[e]})).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return e.components_[t]=n,e.components_[Kt(t)]=n,n},e.getComponent=function(t){if(t&&e.components_)return e.components_[t]},e}();function tn(e,t,n,r){return function(e,t,n){if("number"!=typeof t||t<0||t>n)throw new Error("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+t+") is non-numeric or out of bounds (0-"+n+").")}(e,r,n.length-1),n[r][t]}function nn(e){return void 0===e||0===e.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:tn.bind(null,"start",0,e),end:tn.bind(null,"end",1,e)}}function rn(e,t){return Array.isArray(e)?nn(e):void 0===e||void 0===t?nn():nn([[e,t]])}function sn(e,t){var n,r,o=0;if(!t)return 0;e&&e.length||(e=rn(0,0));for(var i=0;it&&(r=t),o+=r-n;return o/t}function an(e){if(e instanceof an)return e;"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:ie(e)&&("number"==typeof e.code&&(this.code=e.code),ne(this,e)),this.message||(this.message=an.defaultMessages[this.code]||"")}en.prototype.supportsRaf_="function"==typeof l.a.requestAnimationFrame&&"function"==typeof l.a.cancelAnimationFrame,en.registerComponent("Component",en),an.prototype.code=0,an.prototype.message="",an.prototype.status=null,an.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],an.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var on=0;on=0;i--)if(t[i].enabled){gn(t,t[i]);break}return(n=e.call(this,t)||this).changing_=!1,n}_()(t,e);var n=t.prototype;return n.addTrack=function(track){var t=this;track.enabled&&gn(this,track),e.prototype.addTrack.call(this,track),track.addEventListener&&(track.enabledChange_=function(){t.changing_||(t.changing_=!0,gn(t,track),t.changing_=!1,t.trigger("change"))},track.addEventListener("enabledchange",track.enabledChange_))},n.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&t.enabledChange_&&(t.removeEventListener("enabledchange",t.enabledChange_),t.enabledChange_=null)},t}(fn),yn=function(e,track){for(var i=0;i=0;i--)if(t[i].selected){yn(t,t[i]);break}return(n=e.call(this,t)||this).changing_=!1,Object.defineProperty(v()(n),"selectedIndex",{get:function(){for(var e=0;e',a=div.firstChild,div.setAttribute("style","display:none; position:absolute;"),c.a.body.appendChild(div));for(var details={},i=0;ix',e=div.firstChild.href}return e},In=function(path){if("string"==typeof path){var e=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/.exec(path);if(e)return e.pop().toLowerCase()}return""},Pn=function(e,t){void 0===t&&(t=l.a.location);var n=xn(e);return(":"===n.protocol?t.protocol:n.protocol)+n.host!==t.protocol+t.host},Ln=Object.freeze({__proto__:null,parseUrl:xn,getAbsoluteURL:An,getFileExtension:In,isCrossOrigin:Pn}),On=function(e,track){var t=new l.a.WebVTT.Parser(l.a,l.a.vttjs,l.a.WebVTT.StringDecoder()),n=[];t.oncue=function(e){track.addCue(e)},t.onparsingerror=function(e){n.push(e)},t.onflush=function(){track.trigger({type:"loadeddata",target:track})},t.parse(e),n.length>0&&(l.a.console&&l.a.console.groupCollapsed&&l.a.console.groupCollapsed("Text Track parsing errors for "+track.src),n.forEach((function(e){return J.error(e)})),l.a.console&&l.a.console.groupEnd&&l.a.console.groupEnd()),t.flush()},Dn=function(e,track){var t={uri:e},n=Pn(e);n&&(t.cors=n);var r="use-credentials"===track.tech_.crossOrigin();r&&(t.withCredentials=r),w()(t,Lt(this,(function(e,t,n){if(e)return J.error(e,t);track.loaded_=!0,"function"!=typeof l.a.WebVTT?track.tech_&&track.tech_.any(["vttjsloaded","vttjserror"],(function(e){if("vttjserror"!==e.type)return On(n,track);J.error("vttjs failed to load, stopping trying to process "+track.src)})):On(n,track)})))},Mn=function(e){function t(t){var n;if(void 0===t&&(t={}),!t.tech)throw new Error("A tech was not provided.");var r=Yt(t,{kind:Cn[t.kind]||"subtitles",language:t.language||t.srclang||""}),o=wn[r.mode]||"disabled",l=r.default;"metadata"!==r.kind&&"chapters"!==r.kind||(o="hidden"),(n=e.call(this,r)||this).tech_=r.tech,n.cues_=[],n.activeCues_=[],n.preload_=!1!==n.tech_.preloadTextTracks;var d=new kn(n.cues_),c=new kn(n.activeCues_),h=!1,f=Lt(v()(n),(function(){this.tech_.isReady_&&!this.tech_.isDisposed()&&(this.activeCues=this.activeCues,h&&(this.trigger("cuechange"),h=!1))}));return n.tech_.one("dispose",(function(){n.tech_.off("timeupdate",f)})),"disabled"!==o&&n.tech_.on("timeupdate",f),Object.defineProperties(v()(n),{default:{get:function(){return l},set:function(){}},mode:{get:function(){return o},set:function(e){wn[e]&&o!==e&&(o=e,this.preload_||"disabled"===o||0!==this.cues.length||Dn(this.src,this),this.tech_.off("timeupdate",f),"disabled"!==o&&this.tech_.on("timeupdate",f),this.trigger("modechange"))}},cues:{get:function(){return this.loaded_?d:null},set:function(){}},activeCues:{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return c;for(var e=this.tech_.currentTime(),t=[],i=0,n=this.cues.length;i=e||r.startTime===r.endTime&&r.startTime<=e&&r.startTime+.5>=e)&&t.push(r)}if(h=!1,t.length!==this.activeCues_.length)h=!0;else for(var o=0;o0)return void this.trigger("vttjsloaded");var script=c.a.createElement("script");script.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",script.onload=function(){e.trigger("vttjsloaded")},script.onerror=function(){e.trigger("vttjserror")},this.on("dispose",(function(){script.onload=null,script.onerror=null})),l.a.WebVTT=!0,this.el().parentNode.appendChild(script)}else this.ready(this.addWebVttScript_)},n.emulateTextTracks=function(){var e=this,t=this.textTracks(),n=this.remoteTextTracks(),r=function(e){return t.addTrack(e.track)},o=function(e){return t.removeTrack(e.track)};n.on("addtrack",r),n.on("removetrack",o),this.addWebVttScript_();var l=function(){return e.trigger("texttrackchange")},d=function(){l();for(var i=0;i=0;i--){var o=e[i];o[t]&&o[t](r,n)}}(e,n,c,d),c}var Qn={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1},Yn={setCurrentTime:1,setMuted:1,setVolume:1},Xn={play:1,pause:1};function Jn(e){return function(t,n){return t===zn?zn:n[e]?n[e](t):t}}function Zn(e,t,n,r,o,l){void 0===e&&(e={}),void 0===t&&(t=[]),void 0===o&&(o=[]),void 0===l&&(l=!1);var d=t,c=d[0],h=d.slice(1);if("string"==typeof c)Zn(e,Vn[c],n,r,o,l);else if(c){var f=function(e,t){var n=Wn[e.id()],r=null;if(null==n)return r=t(e),Wn[e.id()]=[[t,r]],r;for(var i=0;i