(function(){function s(){return function(){}}function w(n){return function(){return this[n]}}function d(n){return function(){return n}}function n(t,i,r){if("string"==typeof t){if(0===t.indexOf("#")&&(t=t.slice(1)),n.Da[t])return i&&n.log.warn('Player "'+t+'" is already initialised. Options will not be applied.'),r&&n.Da[t].I(r),n.Da[t];t=n.m(t)}if(!t||!t.nodeName)throw new TypeError("The element or ID supplied is not valid. (videojs)");return t.player||new n.Player(t,i,r)}function st(t,i,r,u){n.xc.forEach(r,function(n){t(i,n,u)})}function ct(t,i){var u,r;u=Array.prototype.slice.call(i);r=s();r=window.console||{log:r,warn:r,error:r};t?u.unshift(t.toUpperCase()+":"):t="log";n.log.history.push(u);u.unshift("VIDEOJS:");r[t].apply?r[t].apply(r,u):r[t](u.join(" "))}function ft(n){n.r("vjs-lock-showing")}function ni(t,i,r,u){return r!==e?((r===f||n.le(r))&&(r=0),t.c.style[i]=-1!==(""+r).indexOf("%")||-1!==(""+r).indexOf("px")?r:"auto"===r?"":r+"px",u||t.o("resize"),t):t.c?(r=t.c.style[i],u=r.indexOf("px"),-1!==u?parseInt(r.slice(0,u),10):parseInt(t.c["offset"+n.wa(i)],10)):0}function ti(t){var o,r,l,e,s,h,c,a;o=0;r=f;t.b("touchstart",function(t){1===t.touches.length&&(r=n.i.copy(t.touches[0]),o=(new Date).getTime(),e=u)});t.b("touchmove",function(n){1<n.touches.length?e=i:r&&(h=n.touches[0].pageX-r.pageX,c=n.touches[0].pageY-r.pageY,a=Math.sqrt(h*h+c*c),10<a&&(e=i))});s=function(){e=i};t.b("touchleave",s);t.b("touchcancel",s);t.b("touchend",function(n){r=f;e===u&&(l=(new Date).getTime()-o,200>l&&(n.preventDefault(),this.o("tap")))})}function ii(t,i){var r,u,f,e;return(r=t.c,u=n.Zd(r),e=f=r.offsetWidth,r=t.handle,t.options().vertical)?(e=u.top,u=i.changedTouches?i.changedTouches[0].pageY:i.pageY,r&&(r=r.m().offsetHeight,e+=r/2,f-=r),Math.max(0,Math.min(1,(e-u+f)/f))):(f=u.left,u=i.changedTouches?i.changedTouches[0].pageX:i.pageX,r&&(r=r.m().offsetWidth,f+=r/2,e-=r),Math.max(0,Math.min(1,(u-f)/e)))}function ir(t,i){t.ba(i);i.b("click",n.bind(t,function(){ft(this)}))}function ri(n){n.Ka=u;n.Aa.p("vjs-lock-showing");n.c.setAttribute("aria-pressed",u);n.H&&0<n.H.length&&n.H[0].m().focus()}function lt(n){n.Ka=i;ft(n.Aa);n.c.setAttribute("aria-pressed",i)}function rr(t){var i,r,u={sources:[],tracks:[]},e,o;if(i=n.Pa(t),r=i["data-setup"],r!==f&&n.i.D(i,n.JSON.parse(r||"{}")),n.i.D(u,i),t.hasChildNodes())for(t=t.childNodes,e=0,o=t.length;e<o;e++)i=t[e],r=i.nodeName.toLowerCase(),"source"===r?u.sources.push(n.Pa(i)):"track"===r&&u.tracks.push(n.Pa(i));return u}function fi(t,r,u){t.h&&(t.za=i,t.h.dispose(),t.h=i);"Html5"!==r&&t.L&&(n.e.Nb(t.L),t.L=f);t.Va=r;t.za=i;var e=n.i.D({source:u,parentEl:t.c},t.q[r.toLowerCase()]);u&&(t.Gc=u.type,u.src==t.K.src&&0<t.K.currentTime&&(e.startTime=t.K.currentTime),t.K.src=u.src);t.h=new window.videojs[r](t,e);t.h.I(function(){this.d.Xa()})}function ei(n,t){t!==e&&n.Nc!==t&&((n.Nc=t)?(n.p("vjs-has-started"),n.o("firstplay")):n.r("vjs-has-started"))}function h(t,i,r){if(t.h&&!t.h.za)t.h.I(function(){this[i](r)});else try{t.h[i](r)}catch(u){throw n.log(u),u;}}function o(t,r){if(t.h&&t.h.za)try{return t.h[r]()}catch(u){throw t.h[r]===e?n.log("Video.js: "+r+" method not defined for "+t.Va+" playback technology.",u):"TypeError"==u.name?(n.log("Video.js: "+r+" unavailable on "+t.Va+" playback technology element.",u),t.h.za=i):n.log(u),u;}}function oi(n,t){var i=n.selectSource(t);i?i.h===n.Va?n.src(i.source):fi(n,i.h,i.source):(n.setTimeout(function(){this.error({code:4,message:this.v(this.options().notSupportedMessage)})},0),n.Xa())}function si(n,t){return t!==e?(n.Pc=!!t,n):n.Pc}function hi(n){return n.k().h&&n.k().h.featuresPlaybackRate&&n.k().options().playbackRates&&0<n.k().options().playbackRates.length}function ci(n,t){return t&&n&&/^blob\:/i.test(n)?t:n}function ur(){var n=vt[l],t=n.charAt(0).toUpperCase()+n.slice(1);wi["set"+t]=function(t){return this.c.vjs_setProperty(n,t)}}function pi(n){wi[n]=function(){return this.c.vjs_getProperty(n)}}function tt(t,i){var r=t.Wa.length;""+r in t||Object.defineProperty(t,r,{get:function(){return this.Wa[r]}});i.addEventListener("modechange",n.bind(t,function(){this.o("change")}));t.Wa.push(i);t.o({type:"addtrack",T:i})}function pt(n,t){for(var i=0,u=n.length,r;i<u;i++)if(r=n[i],r===t){n.Wa.splice(i,1);break}n.o({type:"removetrack",T:t})}function wt(n,t){return"rgba("+parseInt(n[1]+n[1],16)+","+parseInt(n[2]+n[2],16)+","+parseInt(n[3]+n[3],16)+","+t+")"}function a(n){var t;return n.Le?t=n.Le[0]:n.options&&(t=n.options[n.options.selectedIndex]),t.value}function v(n,t){var i,r;if(t){for(i=0;i<n.options.length&&!(r=n.options[i],r.value===t);i++);n.selectedIndex=i}}function r(n,t){var r=n.split("."),i=tr,u;for((r[0]in i)||!i.execScript||i.execScript("var "+r[0]);r.length&&(u=r.shift());)!r.length&&t!==e?i[u]=t:i=i[u]?i[u]:i[u]={}}var e=void 0,u=!0,f=null,i=!1,t,b,it,g,bt,kt,rt,dt,ht,y,ut,gt,k,nt,ui,et,c,at,li,ai,p,vi,yi,ki,yt,di,gi,nr,ot,tr;for(document.createElement("video"),document.createElement("audio"),document.createElement("track"),b=window.videojs=n,n.jc="4.12",n.wd="https:"==document.location.protocol?"https://":"http://",n.VERSION="4.12.11",n.options={techOrder:["html5","flash"],html5:{},flash:{},width:300,height:150,defaultVolume:0,playbackRates:[],inactivityTimeout:2e3,children:{mediaLoader:{},posterImage:{},loadingSpinner:{},textTrackDisplay:{},bigPlayButton:{},controlBar:{},errorDisplay:{},textTrackSettings:{}},language:document.getElementsByTagName("html")[0].getAttribute("lang")||navigator.languages&&navigator.languages[0]||navigator.Jf||navigator.language||"en",languages:{},notSupportedMessage:"No compatible source was found for this video."},"GENERATED_CDN_VSN"!==n.jc&&(b.options.flash.swf=n.wd+"vjs.zencdn.net/"+n.jc+"/video-js.swf"),n.Kd=function(t,i){return n.options.languages[t]=n.options.languages[t]!==e?n.$.Ba(n.options.languages[t],i):i,n.options.languages},n.Da={},"function"==typeof define&&define.amd?define("videojs",[],function(){return b}):"object"==typeof exports&&"object"==typeof module&&(module.exports=b),n.Ha=n.CoreObject=s(),n.Ha.extend=function(t){var u,i,r;t=t||{};u=t.init||t.l||this.prototype.init||this.prototype.l||s();i=function(){u.apply(this,arguments)};i.prototype=n.i.create(this.prototype);i.prototype.constructor=i;i.extend=n.Ha.extend;i.create=n.Ha.create;for(r in t)t.hasOwnProperty(r)&&(i.prototype[r]=t[r]);return i},n.Ha.create=function(){var t=n.i.create(this.prototype);return this.apply(t,arguments),t},n.b=function(t,r,u){if(n.i.isArray(r))return st(n.b,t,r,u);var f=n.getData(t);f.G||(f.G={});f.G[r]||(f.G[r]=[]);u.s||(u.s=n.s++);f.G[r].push(u);f.ca||(f.disabled=i,f.ca=function(i){var r;if(!f.disabled&&(i=n.Qb(i),r=f.G[i.type],r))for(var r=r.slice(0),u=0,e=r.length;u<e&&!i.Rc();u++)r[u].call(t,i)});1==f.G[r].length&&(t.addEventListener?t.addEventListener(r,f.ca,i):t.attachEvent&&t.attachEvent("on"+r,f.ca))},n.n=function(t,i,r){var u,f;if(n.Mc(t)&&(u=n.getData(t),u.G)){if(n.i.isArray(i))return st(n.n,t,i,r);if(i){if(f=u.G[i],f){if(r){if(r.s)for(u=0;u<f.length;u++)f[u].s===r.s&&f.splice(u--,1)}else u.G[i]=[];n.Bc(t,i)}}else for(f in u.G)i=f,u.G[i]=[],n.Bc(t,i)}},n.Bc=function(t,r){var u=n.getData(t);0===u.G[r].length&&(delete u.G[r],t.removeEventListener?t.removeEventListener(r,u.ca,i):t.detachEvent&&t.detachEvent("on"+r,u.ca));n.kb(u.G)&&(delete u.G,delete u.ca,delete u.disabled);n.kb(u)&&n.cd(t)},n.Qb=function(n){function o(){return u}function s(){return i}var r,t,e;if(!n||!n.Wb){r=n||window.event;n={};for(t in r)"layerX"!==t&&"layerY"!==t&&"keyLocation"!==t&&("returnValue"==t&&r.preventDefault||(n[t]=r[t]));n.target||(n.target=n.srcElement||document);n.relatedTarget=n.fromElement===n.target?n.toElement:n.fromElement;n.preventDefault=function(){r.preventDefault&&r.preventDefault();n.returnValue=i;n.je=o;n.defaultPrevented=u};n.je=s;n.defaultPrevented=i;n.stopPropagation=function(){r.stopPropagation&&r.stopPropagation();n.cancelBubble=u;n.Wb=o};n.Wb=s;n.stopImmediatePropagation=function(){r.stopImmediatePropagation&&r.stopImmediatePropagation();n.Rc=o;n.stopPropagation()};n.Rc=s;n.clientX!=f&&(t=document.documentElement,e=document.body,n.pageX=n.clientX+(t&&t.scrollLeft||e&&e.scrollLeft||0)-(t&&t.clientLeft||e&&e.clientLeft||0),n.pageY=n.clientY+(t&&t.scrollTop||e&&e.scrollTop||0)-(t&&t.clientTop||e&&e.clientTop||0));n.which=n.charCode||n.keyCode;n.button!=f&&(n.button=n.button&1?0:n.button&4?1:n.button&2?2:0)}return n},n.o=function(t,r){var f=n.Mc(t)?n.getData(t):{},e=t.parentNode||t.ownerDocument;return"string"==typeof r&&(r={type:r,target:t}),r=n.Qb(r),f.ca&&f.ca.call(t,r),e&&!r.Wb()&&r.bubbles!==i?n.o(e,r):e||r.defaultPrevented||(f=n.getData(r.target),!r.target[r.type])||(f.disabled=u,"function"==typeof r.target[r.type]&&r.target[r.type](),f.disabled=i),!r.defaultPrevented},n.N=function(t,i,r){function u(){n.n(t,i,u);r.apply(this,arguments)}if(n.i.isArray(i))return st(n.N,t,i,r);u.s=r.s=r.s||n.s++;n.b(t,i,u)},it=Object.prototype.hasOwnProperty,n.f=function(t,i){var r;return i=i||{},r=document.createElement(t||"div"),n.i.da(i,function(n,t){-1!==n.indexOf("aria-")||"role"==n?r.setAttribute(n,t):r[n]=t}),r},n.wa=function(n){return n.charAt(0).toUpperCase()+n.slice(1)},n.i={},n.i.create=Object.create||function(n){function t(){}return t.prototype=n,new t},n.i.da=function(n,t,i){for(var r in n)it.call(n,r)&&t.call(i||this,r,n[r])},n.i.D=function(n,t){if(!t)return n;for(var i in t)it.call(t,i)&&(n[i]=t[i]);return n},n.i.Sd=function(t,i){var r,u,f;t=n.i.copy(t);for(r in i)it.call(i,r)&&(u=t[r],f=i[r],t[r]=n.i.lb(u)&&n.i.lb(f)?n.i.Sd(u,f):i[r]);return t},n.i.copy=function(t){return n.i.D({},t)},n.i.lb=function(n){return!!n&&"object"==typeof n&&"[object Object]"===n.toString()&&n.constructor===Object},n.i.isArray=Array.isArray||function(n){return"[object Array]"===Object.prototype.toString.call(n)},n.le=function(n){return n!==n},n.bind=function(t,i,r){function u(){return i.apply(t,arguments)}return i.s||(i.s=n.s++),u.s=r?r+"_"+i.s:i.s,u},n.va={},n.s=1,n.expando="vdata"+(new Date).getTime(),n.getData=function(t){var i=t[n.expando];return i||(i=t[n.expando]=n.s++),n.va[i]||(n.va[i]={}),n.va[i]},n.Mc=function(t){return t=t[n.expando],!(!t||n.kb(n.va[t]))},n.cd=function(t){var i=t[n.expando];if(i){delete n.va[i];try{delete t[n.expando]}catch(r){t.removeAttribute?t.removeAttribute(n.expando):t[n.expando]=f}}},n.kb=function(n){for(var t in n)if(n[t]!==f)return i;return u},n.Qa=function(n,t){return-1!==(" "+n.className+" ").indexOf(" "+t+" ")},n.p=function(t,i){n.Qa(t,i)||(t.className=""===t.className?i:t.className+" "+i)},n.r=function(t,i){var r,u;if(n.Qa(t,i)){for(r=t.className.split(" "),u=r.length-1;0<=u;u--)r[u]===i&&r.splice(u,1);t.className=r.join(" ")}},n.A=n.f("video"),g=document.createElement("track"),g.Xb="captions",g.jd="en",g.label="English",n.A.appendChild(g),n.P=navigator.userAgent,n.Dd=/iPhone/i.test(n.P),n.Cd=/iPad/i.test(n.P),n.Ed=/iPod/i.test(n.P),n.Bd=n.Dd||n.Cd||n.Ed,bt=n,rt=n.P.match(/OS (\d+)_/i),kt=rt&&rt[1]?rt[1]:e,bt.lf=kt,n.Ad=/Android/i.test(n.P),dt=n,y=n.P.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i),y?(ut=y[1]&&parseFloat(y[1]),gt=y[2]&&parseFloat(y[2]),ht=ut&&gt?parseFloat(y[1]+"."+y[2]):ut?ut:f):ht=f,dt.ic=ht,n.Fd=n.Ad&&/webkit/i.test(n.P)&&2.3>n.ic,n.kc=/Firefox/i.test(n.P),n.mf=/Chrome/i.test(n.P),n.qa=/MSIE\s8\.0/.test(n.P),n.Gb=!!("ontouchstart"in window||window.yd&&document instanceof window.yd),n.xd=("backgroundSize"in n.A.style),n.ed=function(t,r){n.i.da(r,function(n,r){r===f||"undefined"==typeof r||r===i?t.removeAttribute(n):t.setAttribute(n,r===u?"":r)})},n.Pa=function(n){var s,r,e,o,t;if(s={},n&&n.attributes&&0<n.attributes.length)for(r=n.attributes,t=r.length-1;0<=t;t--)e=r[t].name,o=r[t].value,("boolean"==typeof n[e]||-1!==",autoplay,controls,loop,muted,default,".indexOf(","+e+","))&&(o=o!==f?u:i),s[e]=o;return s},n.wf=function(n,t){var i="";return document.defaultView&&document.defaultView.getComputedStyle?i=document.defaultView.getComputedStyle(n,"").getPropertyValue(t):n.currentStyle&&(i=n["client"+t.substr(0,1).toUpperCase()+t.substr(1)]+"px"),i},n.Vb=function(n,t){t.firstChild?t.insertBefore(n,t.firstChild):t.appendChild(n)},n.eb={},n.m=function(n){return 0===n.indexOf("#")&&(n=n.slice(1)),document.getElementById(n)},n.Oa=function(n,t){t=t||n;var r=Math.floor(n%60),u=Math.floor(n/60%60),i=Math.floor(n/3600),f=Math.floor(t/60%60),e=Math.floor(t/3600);return(isNaN(n)||Infinity===n)&&(i=u=r="-"),i=0<i||0<e?i+":":"",i+(((i||10<=f)&&10>u?"0"+u:u)+":")+(10>r?"0"+r:r)},n.Md=function(){document.body.focus();document.onselectstart=d(i)},n.bf=function(){document.onselectstart=d(u)},n.trim=function(n){return(n+"").replace(/^\s+|\s+$/g,"")},n.round=function(n,t){return t||(t=0),Math.round(n*Math.pow(10,t))/Math.pow(10,t)},n.ya=function(n,t){return n===e&&t===e?{length:0,start:function(){throw Error("This TimeRanges object is empty");},end:function(){throw Error("This TimeRanges object is empty");}}:{length:1,start:function(){return n},end:function(){return t}}},n.Ne=function(t){try{var u=window.localStorage||i;u&&(u.volume=t)}catch(r){22==r.code||1014==r.code?n.log("LocalStorage Full (VideoJS)",r):18==r.code?n.log("LocalStorage not allowed (VideoJS)",r):n.log("LocalStorage Error (VideoJS)",r)}},n.ae=function(t){return t.match(/^https?:\/\//)||(t=n.f("div",{innerHTML:'<a href="'+t+'">x<\/a>'}).firstChild.href),t},n.Fe=function(t){var i,r,e,f,u;for(f="protocol hostname port pathname search hash host".split(" "),r=n.f("a",{href:t}),(e=""===r.host&&"file:"!==r.protocol)&&(i=n.f("div"),i.innerHTML='<a href="'+t+'"><\/a>',r=i.firstChild,i.setAttribute("style","display:none; position:absolute;"),document.body.appendChild(i)),t={},u=0;u<f.length;u++)t[f[u]]=r[f[u]];return"http:"===t.protocol&&(t.host=t.host.replace(/:80$/,"")),"https:"===t.protocol&&(t.host=t.host.replace(/:443$/,"")),e&&document.body.removeChild(i),t},n.log=function(){ct(f,arguments)},n.log.history=[],n.log.error=function(){ct("error",arguments)},n.log.warn=function(){ct("warn",arguments)},n.Zd=function(t){var r,i;return(t.getBoundingClientRect&&t.parentNode&&(r=t.getBoundingClientRect()),!r)?{left:0,top:0}:(t=document.documentElement,i=document.body,{left:n.round(r.left+(window.pageXOffset||i.scrollLeft)-(t.clientLeft||i.clientLeft||0)),top:n.round(r.top+(window.pageYOffset||i.scrollTop)-(t.clientTop||i.clientTop||0))})},n.xc={},n.xc.forEach=function(t,i,r){if(n.i.isArray(t)&&i instanceof Function)for(var u=0,f=t.length;u<f;++u)i.call(r||n,t[u],u,t);return t},n.gf=function(t,i){var e,r,h,a,c,l,o;"string"==typeof t&&(t={uri:t});b.$.Ba({method:"GET",timeout:45e3},t);i=i||s();l=function(){window.clearTimeout(c);i(f,r,r.response||r.responseText)};o=function(n){window.clearTimeout(c);n&&"string"!=typeof n||(n=Error(n));i(n,r)};e=window.XMLHttpRequest;"undefined"==typeof e&&(e=function(){try{return new window.ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(n){}try{return new window.ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(t){}try{return new window.ActiveXObject("Msxml2.XMLHTTP")}catch(i){}throw Error("This browser does not support XMLHttpRequest.");});r=new e;r.uri=t.uri;e=n.Fe(t.uri);h=window.location;e.protocol+e.host!==h.protocol+h.host&&window.XDomainRequest&&!("withCredentials"in r)?(r=new window.XDomainRequest,r.onload=l,r.onerror=o,r.onprogress=s(),r.ontimeout=s()):(a="file:"==e.protocol||"file:"==h.protocol,r.onreadystatechange=function(){if(4===r.readyState){if(r.Ze)return o("timeout");200===r.status||a&&0===r.status?l():o()}},t.timeout&&(c=window.setTimeout(function(){4!==r.readyState&&(r.Ze=u,r.abort())},t.timeout)));try{r.open(t.method||"GET",t.uri,u)}catch(v){o(v);return}t.withCredentials&&(r.withCredentials=u);t.responseType&&(r.responseType=t.responseType);try{r.send()}catch(y){o(y)}},n.$={},n.$.Ba=function(t,i){var r,u,f;t=n.i.copy(t);for(r in i)i.hasOwnProperty(r)&&(u=t[r],f=i[r],t[r]=n.i.lb(u)&&n.i.lb(f)?n.$.Ba(u,f):i[r]);return t},n.z=s(),t=n.z.prototype,t.cb={},t.b=function(t,i){var r=this.addEventListener;this.addEventListener=Function.prototype;n.b(this,t,i);this.addEventListener=r},t.addEventListener=n.z.prototype.b,t.n=function(t,i){n.n(this,t,i)},t.removeEventListener=n.z.prototype.n,t.N=function(t,i){n.N(this,t,i)},t.o=function(t){var i=t.type||t;"string"==typeof t&&(t={type:i});t=n.Qb(t);this.cb[i]&&this["on"+i]&&this["on"+i](t);n.o(this,t)},t.dispatchEvent=n.z.prototype.o,n.a=n.Ha.extend({l:function(t,r,u){if(this.d=t,this.q=n.i.copy(this.q),r=this.options(r),this.Ra=r.id||r.el&&r.el.id,this.Ra||(this.Ra=(t.id&&t.id()||"no_player")+"_component_"+n.s++),this.ue=r.name||f,this.c=r.el||this.f(),this.R=[],this.gb={},this.hb={},this.Oc(),this.I(u),r.dd!==i){var e,o;this.k().reportUserActivity&&(e=n.bind(this.k(),this.k().reportUserActivity),this.b("touchstart",function(){e();this.clearInterval(o);o=this.setInterval(e,250)}),t=function(){e();this.clearInterval(o)},this.b("touchmove",e),this.b("touchend",t),this.b("touchcancel",t))}}}),t=n.a.prototype,t.dispose=function(){if(this.o({type:"dispose",bubbles:i}),this.R)for(var t=this.R.length-1;0<=t;t--)this.R[t].dispose&&this.R[t].dispose();this.hb=this.gb=this.R=f;this.n();this.c.parentNode&&this.c.parentNode.removeChild(this.c);n.cd(this.c);this.c=f},t.d=u,t.k=w("d"),t.options=function(t){return t===e?this.q:this.q=n.$.Ba(this.q,t)},t.f=function(t,i){return n.f(t,i)},t.v=function(n){var i=this.d.language(),t=this.d.languages();return t&&t[i]&&t[i][n]?t[i][n]:n},t.m=w("c"),t.xa=function(){return this.B||this.c},t.id=w("Ra"),t.name=w("ue"),t.children=w("R"),t.be=function(n){return this.gb[n]},t.ea=function(n){return this.hb[n]},t.ba=function(t,i){var r,u;return"string"==typeof t?(u=t,i=i||{},r=i.componentClass||n.wa(u),i.name=u,r=new window.videojs[r](this.d||this,i)):r=t,this.R.push(r),"function"==typeof r.id&&(this.gb[r.id()]=r),(u=u||r.name&&r.name())&&(this.hb[u]=r),"function"==typeof r.el&&r.el()&&this.xa().appendChild(r.el()),r},t.removeChild=function(n){if("string"==typeof n&&(n=this.ea(n)),n&&this.R){for(var t=i,r=this.R.length-1;0<=r;r--)if(this.R[r]===n){t=u;this.R.splice(r,1);break}t&&(this.gb[n.id()]=f,this.hb[n.name()]=f,(t=n.m())&&t.parentNode===this.xa()&&this.xa().removeChild(n.m()))}},t.Oc=function(){var u,f,r,t,s,h,o;if(u=this,f=u.options(),r=f.children)if(h=function(n,t){f[n]!==e&&(t=f[n]);t!==i&&(u[n]=u.ba(n,t))},n.i.isArray(r))for(o=0;o<r.length;o++)t=r[o],"string"==typeof t?(s=t,t={}):s=t.name,h(s,t);else n.i.da(r,h)},t.V=d(""),t.b=function(t,i,r){var u,f,e;return"string"==typeof t||n.i.isArray(t)?n.b(this.c,t,n.bind(this,i)):(u=n.bind(this,r),e=this,f=function(){e.n(t,i,u)},f.s=u.s,this.b("dispose",f),r=function(){e.n("dispose",f)},r.s=u.s,t.nodeName?(n.b(t,i,u),n.b(t,"dispose",r)):"function"==typeof t.b&&(t.b(i,u),t.b("dispose",r))),this},t.n=function(t,i,r){return!t||"string"==typeof t||n.i.isArray(t)?n.n(this.c,t,i):(r=n.bind(this,r),this.n("dispose",r),t.nodeName?(n.n(t,i,r),n.n(t,"dispose",r)):(t.n(i,r),t.n("dispose",r))),this},t.N=function(t,i,r){var f,e,u;return"string"==typeof t||n.i.isArray(t)?n.N(this.c,t,n.bind(this,i)):(f=n.bind(this,r),e=this,u=function(){e.n(t,i,u);f.apply(this,arguments)},u.s=f.s,this.b(t,i,u)),this},t.o=function(t){return n.o(this.c,t),this},t.I=function(n){return n&&(this.za?n.call(this):(this.pb===e&&(this.pb=[]),this.pb.push(n))),this},t.Xa=function(){var n,t,i;if(this.za=u,n=this.pb,n&&0<n.length){for(t=0,i=n.length;t<i;t++)n[t].call(this);this.pb=[];this.o("ready")}},t.Qa=function(t){return n.Qa(this.c,t)},t.p=function(t){return n.p(this.c,t),this},t.r=function(t){return n.r(this.c,t),this},t.show=function(){return this.r("vjs-hidden"),this},t.Y=function(){return this.p("vjs-hidden"),this},t.width=function(n,t){return ni(this,"width",n,t)},t.height=function(n,t){return ni(this,"height",n,t)},t.Ud=function(n,t){return this.width(n,u).height(t)},t.setTimeout=function(t,i){function u(){this.clearTimeout(r)}t=n.bind(this,t);var r=setTimeout(t,i);return u.s="vjs-timeout-"+r,this.b("dispose",u),r},t.clearTimeout=function(n){function t(){}return clearTimeout(n),t.s="vjs-timeout-"+n,this.n("dispose",t),n},t.setInterval=function(t,i){function u(){this.clearInterval(r)}t=n.bind(this,t);var r=setInterval(t,i);return u.s="vjs-interval-"+r,this.b("dispose",u),r},t.clearInterval=function(n){function t(){}return clearInterval(n),t.s="vjs-interval-"+n,this.n("dispose",t),n},n.w=n.a.extend({l:function(t,i){n.a.call(this,t,i);ti(this);this.b("tap",this.u);this.b("click",this.u);this.b("focus",this.nb);this.b("blur",this.mb)}}),t=n.w.prototype,t.f=function(t,i){var r;return i=n.i.D({className:this.V(),role:"button","aria-live":"polite",tabIndex:0},i),r=n.a.prototype.f.call(this,t,i),i.innerHTML||(this.B=n.f("div",{className:"vjs-control-content"}),this.Lb=n.f("span",{className:"vjs-control-text",innerHTML:this.v(this.ua)||"Need Text"}),this.B.appendChild(this.Lb),r.appendChild(this.B)),r},t.V=function(){return"vjs-control "+n.a.prototype.V.call(this)},t.u=s(),t.nb=function(){n.b(document,"keydown",n.bind(this,this.la))},t.la=function(n){(32==n.which||13==n.which)&&(n.preventDefault(),this.u())},t.mb=function(){n.n(document,"keydown",n.bind(this,this.la))},n.U=n.a.extend({l:function(t,i){n.a.call(this,t,i);this.Ld=this.ea(this.q.barName);this.handle=this.ea(this.q.handleName);this.b("mousedown",this.ob);this.b("touchstart",this.ob);this.b("focus",this.nb);this.b("blur",this.mb);this.b("click",this.u);this.b(t,"controlsvisible",this.update);this.b(t,this.Yc,this.update)}}),t=n.U.prototype,t.f=function(t,i){return i=i||{},i.className+=" vjs-slider",i=n.i.D({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},i),n.a.prototype.f.call(this,t,i)},t.ob=function(t){t.preventDefault();n.Md();this.p("vjs-sliding");this.b(document,"mousemove",this.ma);this.b(document,"mouseup",this.Ca);this.b(document,"touchmove",this.ma);this.b(document,"touchend",this.Ca);this.ma(t)},t.ma=s(),t.Ca=function(){n.bf();this.r("vjs-sliding");this.n(document,"mousemove",this.ma);this.n(document,"mouseup",this.Ca);this.n(document,"touchmove",this.ma);this.n(document,"touchend",this.Ca);this.update()},t.update=function(){var u;if(this.c){var i,t=this.Tb(),r=this.handle,f=this.Ld;("number"!=typeof t||t!==t||0>t||Infinity===t)&&(t=0);i=t;r&&(i=this.c.offsetWidth,u=r.m().offsetWidth,i=u?u/i:0,t*=1-i,i=t+i/2,r.m().style.left=n.round(100*t,2)+"%");f&&(f.m().style.width=n.round(100*i,2)+"%")}},t.nb=function(){this.b(document,"keydown",this.la)},t.la=function(n){37==n.which||40==n.which?(n.preventDefault(),this.kd()):(38==n.which||39==n.which)&&(n.preventDefault(),this.ld())},t.mb=function(){this.n(document,"keydown",this.la)},t.u=function(n){n.stopImmediatePropagation();n.preventDefault()},n.ha=n.a.extend(),n.ha.prototype.defaultValue=0,n.ha.prototype.f=function(t,i){return i=i||{},i.className+=" vjs-slider-handle",i=n.i.D({innerHTML:'<span class="vjs-control-text">'+this.defaultValue+"<\/span>"},i),n.a.prototype.f.call(this,"div",i)},n.ra=n.a.extend(),n.ra.prototype.f=function(){var t=this.options().Dc||"ul";return this.B=n.f(t,{className:"vjs-menu-content"}),t=n.a.prototype.f.call(this,"div",{append:this.B,className:"vjs-menu"}),t.appendChild(this.B),n.b(t,"click",function(n){n.preventDefault();n.stopImmediatePropagation()}),t},n.M=n.w.extend({l:function(t,i){n.w.call(this,t,i);this.selected(i.selected)}}),n.M.prototype.f=function(t,i){return n.w.prototype.f.call(this,"li",n.i.D({className:"vjs-menu-item",innerHTML:this.v(this.q.label)},i))},n.M.prototype.u=function(){this.selected(u)},n.M.prototype.selected=function(n){n?(this.p("vjs-selected"),this.c.setAttribute("aria-selected",u)):(this.r("vjs-selected"),this.c.setAttribute("aria-selected",i))},n.O=n.w.extend({l:function(t,i){n.w.call(this,t,i);this.update();this.b("keydown",this.la);this.c.setAttribute("aria-haspopup",u);this.c.setAttribute("role","button")}}),t=n.O.prototype,t.update=function(){var n=this.Ma();this.Aa&&this.removeChild(this.Aa);this.Aa=n;this.ba(n);this.H&&0===this.H.length?this.Y():this.H&&1<this.H.length&&this.show()},t.Ka=i,t.Ma=function(){var i=new n.ra(this.d),t;if(this.options().title&&i.xa().appendChild(n.f("li",{className:"vjs-menu-title",innerHTML:n.wa(this.options().title),Xe:-1})),this.H=this.createItems())for(t=0;t<this.H.length;t++)ir(i,this.H[t]);return i},t.La=s(),t.V=function(){return this.className+" vjs-menu-button "+n.w.prototype.V.call(this)},t.nb=s(),t.mb=s(),t.u=function(){this.N("mouseout",n.bind(this,function(){ft(this.Aa);this.c.blur()}));this.Ka?lt(this):ri(this)},t.la=function(n){32==n.which||13==n.which?(this.Ka?lt(this):ri(this),n.preventDefault()):27==n.which&&(this.Ka&&lt(this),n.preventDefault())},n.J=function(t){"number"==typeof t?this.code=t:"string"==typeof t?this.message=t:"object"==typeof t&&n.i.D(this,t);this.message||(this.message=n.J.Td[this.code]||"")},n.J.prototype.code=0,n.J.prototype.message="",n.J.prototype.status=f,n.J.jb="MEDIA_ERR_CUSTOM MEDIA_ERR_ABORTED MEDIA_ERR_NETWORK MEDIA_ERR_DECODE MEDIA_ERR_SRC_NOT_SUPPORTED MEDIA_ERR_ENCRYPTED".split(" "),n.J.Td={1:"You aborted the video playback",2:"A network error caused the video download to fail part-way.",3:"The video playback was aborted due to a corruption problem or because the video used features your browser did not support.",4:"The video could not be loaded, either because the server or network failed or because the format is not supported.",5:"The video is encrypted and we do not have the keys to decrypt it."},k=0;k<n.J.jb.length;k++)n.J[n.J.jb[k]]=k,n.J.prototype[n.J.jb[k]]=k;for(nt=["requestFullscreen exitFullscreen fullscreenElement fullscreenEnabled fullscreenchange fullscreenerror".split(" "),"webkitRequestFullscreen webkitExitFullscreen webkitFullscreenElement webkitFullscreenEnabled webkitfullscreenchange webkitfullscreenerror".split(" "),"webkitRequestFullScreen webkitCancelFullScreen webkitCurrentFullScreenElement webkitCancelFullScreen webkitfullscreenchange webkitfullscreenerror".split(" "),"mozRequestFullScreen mozCancelFullScreen mozFullScreenElement mozFullScreenEnabled mozfullscreenchange mozfullscreenerror".split(" "),"msRequestFullscreen msExitFullscreen msFullscreenElement msFullscreenEnabled MSFullscreenChange MSFullscreenError".split(" ")],ui=nt[0],c=0;c<nt.length;c++)if(nt[c][1]in document){et=nt[c];break}if(et)for(n.eb.Sb={},c=0;c<et.length;c++)n.eb.Sb[ui[c]]=et[c];n.Player=n.a.extend({l:function(t,r,f){this.L=t;t.id=t.id||"vjs_video_"+n.s++;this.Ye=t&&n.Pa(t);r=n.i.D(rr(t),r);this.Tc=r.language||n.options.language;this.oe=r.languages||n.options.languages;this.K={};this.Zc=r.poster||"";this.Mb=!!r.controls;t.controls=i;r.dd=i;si(this,"audio"===this.L.nodeName.toLowerCase());n.a.call(this,this,r,f);this.controls()?this.p("vjs-controls-enabled"):this.p("vjs-controls-disabled");si(this)&&this.p("vjs-audio");n.Da[this.Ra]=this;r.plugins&&n.i.da(r.plugins,function(n,t){this[n](t)},this);var e,o,s,h,c;e=n.bind(this,this.reportUserActivity);this.b("mousedown",function(){e();this.clearInterval(o);o=this.setInterval(e,250)});this.b("mousemove",function(n){(n.screenX!=h||n.screenY!=c)&&(h=n.screenX,c=n.screenY,e())});this.b("mouseup",function(){e();this.clearInterval(o)});this.b("keydown",e);this.b("keyup",e);this.setInterval(function(){if(this.Ga){this.Ga=i;this.userActive(u);this.clearTimeout(s);var n=this.options().inactivityTimeout;0<n&&(s=this.setTimeout(function(){this.Ga||this.userActive(i)},n))}},250)}});t=n.Player.prototype;t.language=function(n){return n===e?this.Tc:(this.Tc=n,this)};t.languages=w("oe");t.q=n.options;t.dispose=function(){this.o("dispose");this.n("dispose");n.Da[this.Ra]=f;this.L&&this.L.player&&(this.L.player=f);this.c&&this.c.player&&(this.c.player=f);this.h&&this.h.dispose();n.a.prototype.dispose.call(this)};t.f=function(){var i=this.c=n.a.prototype.f.call(this,"div"),t=this.L,r;return t.removeAttribute("width"),t.removeAttribute("height"),r=n.Pa(t),n.i.da(r,function(n){"class"==n?i.className=r[n]:i.setAttribute(n,r[n])}),t.id+="_html5_api",t.className="vjs-tech",t.player=i.player=this,this.p("vjs-paused"),this.width(this.q.width,u),this.height(this.q.height,u),t.he=t.networkState,t.parentNode&&t.parentNode.insertBefore(i,t),n.Vb(t,i),this.c=i,this.b("loadstart",this.ye),this.b("waiting",this.Ee),this.b(["canplay","canplaythrough","playing","ended"],this.De),this.b("seeking",this.Be),this.b("seeked",this.Ae),this.b("ended",this.ve),this.b("play",this.ac),this.b("firstplay",this.we),this.b("pause",this.$b),this.b("progress",this.ze),this.b("durationchange",this.Wc),this.b("fullscreenchange",this.xe),i};t.ye=function(){this.r("vjs-ended");this.error(f);this.paused()?ei(this,i):this.o("firstplay")};t.Nc=i;t.ac=function(){this.r("vjs-ended");this.r("vjs-paused");this.p("vjs-playing");ei(this,u)};t.Ee=function(){this.p("vjs-waiting")};t.De=function(){this.r("vjs-waiting")};t.Be=function(){this.p("vjs-seeking")};t.Ae=function(){this.r("vjs-seeking")};t.we=function(){this.q.starttime&&this.currentTime(this.q.starttime);this.p("vjs-has-started")};t.$b=function(){this.r("vjs-playing");this.p("vjs-paused")};t.ze=function(){1==this.bufferedPercent()&&this.o("loadedalldata")};t.ve=function(){this.p("vjs-ended");this.q.loop?(this.currentTime(0),this.play()):this.paused()||this.pause()};t.Wc=function(){var n=o(this,"duration");n&&(0>n&&(n=Infinity),this.duration(n),Infinity===n?this.p("vjs-live"):this.r("vjs-live"))};t.xe=function(){this.isFullscreen()?this.p("vjs-fullscreen"):this.r("vjs-fullscreen")};t.play=function(){return h(this,"play"),this};t.pause=function(){return h(this,"pause"),this};t.paused=function(){return o(this,"paused")===i?i:u};t.currentTime=function(n){return n!==e?(h(this,"setCurrentTime",n),this):this.K.currentTime=o(this,"currentTime")||0};t.duration=function(n){return n!==e?(this.K.duration=parseFloat(n),this):(this.K.duration===e&&this.Wc(),this.K.duration||0)};t.remainingTime=function(){return this.duration()-this.currentTime()};t.buffered=function(){var t=o(this,"buffered");return t&&t.length||(t=n.ya(0,0)),t};t.bufferedPercent=function(){var t=this.duration(),r=this.buffered(),u=0,f,i,n;if(!t)return 0;for(n=0;n<r.length;n++)f=r.start(n),i=r.end(n),i>t&&(i=t),u+=i-f;return u/t};t.volume=function(t){return t!==e?(t=Math.max(0,Math.min(1,parseFloat(t))),this.K.volume=t,h(this,"setVolume",t),n.Ne(t),this):(t=parseFloat(o(this,"volume")),isNaN(t)?1:t)};t.muted=function(n){return n!==e?(h(this,"setMuted",n),this):o(this,"muted")||i};t.Ua=function(){return o(this,"supportsFullScreen")||i};t.Qc=i;t.isFullscreen=function(n){return n!==e?(this.Qc=!!n,this):this.Qc};t.isFullScreen=function(t){return n.log.warn('player.isFullScreen() has been deprecated, use player.isFullscreen() with a lowercase "s")'),this.isFullscreen(t)};t.requestFullscreen=function(){var t=n.eb.Sb;return this.isFullscreen(u),t?(n.b(document,t.fullscreenchange,n.bind(this,function(){this.isFullscreen(document[t.fullscreenElement]);this.isFullscreen()===i&&n.n(document,t.fullscreenchange,arguments.callee);this.o("fullscreenchange")})),this.c[t.requestFullscreen]()):this.h.Ua()?h(this,"enterFullScreen"):(this.Jc(),this.o("fullscreenchange")),this};t.requestFullScreen=function(){return n.log.warn('player.requestFullScreen() has been deprecated, use player.requestFullscreen() with a lowercase "s")'),this.requestFullscreen()};t.exitFullscreen=function(){var t=n.eb.Sb;return this.isFullscreen(i),t?document[t.exitFullscreen]():this.h.Ua()?h(this,"exitFullScreen"):(this.Ob(),this.o("fullscreenchange")),this};t.cancelFullScreen=function(){return n.log.warn("player.cancelFullScreen() has been deprecated, use player.exitFullscreen()"),this.exitFullscreen()};t.Jc=function(){this.ke=u;this.Vd=document.documentElement.style.overflow;n.b(document,"keydown",n.bind(this,this.Kc));document.documentElement.style.overflow="hidden";n.p(document.body,"vjs-full-window");this.o("enterFullWindow")};t.Kc=function(n){27===n.keyCode&&(this.isFullscreen()===u?this.exitFullscreen():this.Ob())};t.Ob=function(){this.ke=i;n.n(document,"keydown",this.Kc);document.documentElement.style.overflow=this.Vd;n.r(document.body,"vjs-full-window");this.o("exitFullWindow")};t.selectSource=function(t){for(var u,f,e,s,h,r=0,o=this.q.techOrder;r<o.length;r++)if(u=n.wa(o[r]),f=window.videojs[u],f){if(f.isSupported())for(e=0,s=t;e<s.length;e++)if(h=s[e],f.canPlaySource(h))return{source:h,h:u}}else n.log.error('The "'+u+'" tech is undefined. Skipped browser support check for that tech.');return i};t.src=function(t){return t===e?o(this,"src"):(n.i.isArray(t)?oi(this,t):"string"==typeof t?this.src({src:t}):t instanceof Object&&(t.type&&!window.videojs[this.Va].canPlaySource(t)?oi(this,[t]):(this.K.src=t.src,this.Gc=t.type||"",this.I(function(){window.videojs[this.Va].prototype.hasOwnProperty("setSource")?h(this,"setSource",t):h(this,"src",t.src);"auto"==this.q.preload&&this.load();this.q.autoplay&&this.play()}))),this)};t.load=function(){return h(this,"load"),this};t.currentSrc=function(){return o(this,"currentSrc")||this.K.src||""};t.Rd=function(){return this.Gc||""};t.Sa=function(n){return n!==e?(h(this,"setPreload",n),this.q.preload=n,this):o(this,"preload")};t.autoplay=function(n){return n!==e?(h(this,"setAutoplay",n),this.q.autoplay=n,this):o(this,"autoplay")};t.loop=function(n){return n!==e?(h(this,"setLoop",n),this.q.loop=n,this):o(this,"loop")};t.poster=function(n){return n===e?this.Zc:(n||(n=""),this.Zc=n,h(this,"setPoster",n),this.o("posterchange"),this)};t.controls=function(n){return n!==e?(n=!!n,this.Mb!==n&&((this.Mb=n)?(this.r("vjs-controls-disabled"),this.p("vjs-controls-enabled"),this.o("controlsenabled")):(this.r("vjs-controls-enabled"),this.p("vjs-controls-disabled"),this.o("controlsdisabled"))),this):this.Mb};n.Player.prototype.fc;t=n.Player.prototype;t.usingNativeControls=function(n){return n!==e?(n=!!n,this.fc!==n&&((this.fc=n)?(this.p("vjs-using-native-controls"),this.o("usingnativecontrols")):(this.r("vjs-using-native-controls"),this.o("usingcustomcontrols"))),this):this.fc};t.ka=f;t.error=function(t){return t===e?this.ka:t===f?(this.ka=t,this.r("vjs-error"),this):(this.ka=t instanceof n.J?t:new n.J(t),this.o("error"),this.p("vjs-error"),n.log.error("(CODE:"+this.ka.code+" "+n.J.jb[this.ka.code]+")",this.ka.message,this.ka),this)};t.ended=function(){return o(this,"ended")};t.seeking=function(){return o(this,"seeking")};t.seekable=function(){return o(this,"seekable")};t.Ga=u;t.reportUserActivity=function(){this.Ga=u};t.ec=u;t.userActive=function(n){return n!==e?(n=!!n,n!==this.ec&&((this.ec=n)?(this.Ga=u,this.r("vjs-user-inactive"),this.p("vjs-user-active"),this.o("useractive")):(this.Ga=i,this.h&&this.h.N("mousemove",function(n){n.stopPropagation();n.preventDefault()}),this.r("vjs-user-active"),this.p("vjs-user-inactive"),this.o("userinactive"))),this):this.ec};t.playbackRate=function(n){return n!==e?(h(this,"setPlaybackRate",n),this):this.h&&this.h.featuresPlaybackRate?o(this,"playbackRate"):1};t.Pc=i;t.networkState=function(){return o(this,"networkState")};t.readyState=function(){return o(this,"readyState")};t.textTracks=function(){return this.h&&this.h.textTracks()};t.Z=function(){return this.h&&this.h.remoteTextTracks()};t.addTextTrack=function(n,t,i){return this.h&&this.h.addTextTrack(n,t,i)};t.ia=function(n){return this.h&&this.h.addRemoteTextTrack(n)};t.Ea=function(n){this.h&&this.h.removeRemoteTextTrack(n)};n.wb=n.a.extend();n.wb.prototype.q={xf:"play",children:{playToggle:{},currentTimeDisplay:{},timeDivider:{},durationDisplay:{},remainingTimeDisplay:{},liveDisplay:{},progressControl:{},fullscreenToggle:{},volumeControl:{},muteToggle:{},playbackRateMenuButton:{},subtitlesButton:{},captionsButton:{},chaptersButton:{}}};n.wb.prototype.f=function(){return n.f("div",{className:"vjs-control-bar"})};n.lc=n.a.extend({l:function(t,i){n.a.call(this,t,i)}});n.lc.prototype.f=function(){var t=n.a.prototype.f.call(this,"div",{className:"vjs-live-controls vjs-control"});return this.B=n.f("div",{className:"vjs-live-display",innerHTML:'<span class="vjs-control-text">'+this.v("Stream Type")+"<\/span>"+this.v("LIVE"),"aria-live":"off"}),t.appendChild(this.B),t};n.oc=n.w.extend({l:function(t,i){n.w.call(this,t,i);this.b(t,"play",this.ac);this.b(t,"pause",this.$b)}});t=n.oc.prototype;t.ua="Play";t.V=function(){return"vjs-play-control "+n.w.prototype.V.call(this)};t.u=function(){this.d.paused()?this.d.play():this.d.pause()};t.ac=function(){this.r("vjs-paused");this.p("vjs-playing");this.c.children[0].children[0].innerHTML=this.v("Pause")};t.$b=function(){this.r("vjs-playing");this.p("vjs-paused");this.c.children[0].children[0].innerHTML=this.v("Play")};n.xb=n.a.extend({l:function(t,i){n.a.call(this,t,i);this.b(t,"timeupdate",this.ga)}});n.xb.prototype.f=function(){var t=n.a.prototype.f.call(this,"div",{className:"vjs-current-time vjs-time-controls vjs-control"});return this.B=n.f("div",{className:"vjs-current-time-display",innerHTML:'<span class="vjs-control-text">Current Time <\/span>0:00',"aria-live":"off"}),t.appendChild(this.B),t};n.xb.prototype.ga=function(){var t=this.d.qb?this.d.K.currentTime:this.d.currentTime();this.B.innerHTML='<span class="vjs-control-text">'+this.v("Current Time")+"<\/span> "+n.Oa(t,this.d.duration())};n.yb=n.a.extend({l:function(t,i){n.a.call(this,t,i);this.b(t,"timeupdate",this.ga);this.b(t,"loadedmetadata",this.ga)}});n.yb.prototype.f=function(){var t=n.a.prototype.f.call(this,"div",{className:"vjs-duration vjs-time-controls vjs-control"});return this.B=n.f("div",{className:"vjs-duration-display",innerHTML:'<span class="vjs-control-text">'+this.v("Duration Time")+"<\/span> 0:00","aria-live":"off"}),t.appendChild(this.B),t};n.yb.prototype.ga=function(){var t=this.d.duration();t&&(this.B.innerHTML='<span class="vjs-control-text">'+this.v("Duration Time")+"<\/span> "+n.Oa(t))};n.uc=n.a.extend({l:function(t,i){n.a.call(this,t,i)}});n.uc.prototype.f=function(){return n.a.prototype.f.call(this,"div",{className:"vjs-time-divider",innerHTML:"<div><span>/<\/span><\/div>"})};n.Fb=n.a.extend({l:function(t,i){n.a.call(this,t,i);this.b(t,"timeupdate",this.ga)}});n.Fb.prototype.f=function(){var t=n.a.prototype.f.call(this,"div",{className:"vjs-remaining-time vjs-time-controls vjs-control"});return this.B=n.f("div",{className:"vjs-remaining-time-display",innerHTML:'<span class="vjs-control-text">'+this.v("Remaining Time")+"<\/span> -0:00","aria-live":"off"}),t.appendChild(this.B),t};n.Fb.prototype.ga=function(){this.d.duration()&&(this.B.innerHTML='<span class="vjs-control-text">'+this.v("Remaining Time")+"<\/span> -"+n.Oa(this.d.remainingTime()))};n.$a=n.w.extend({l:function(t,i){n.w.call(this,t,i)}});n.$a.prototype.ua="Fullscreen";n.$a.prototype.V=function(){return"vjs-fullscreen-control "+n.w.prototype.V.call(this)};n.$a.prototype.u=function(){this.d.isFullscreen()?(this.d.exitFullscreen(),this.Lb.innerHTML=this.v("Fullscreen")):(this.d.requestFullscreen(),this.Lb.innerHTML=this.v("Non-Fullscreen"))};n.Eb=n.a.extend({l:function(t,i){n.a.call(this,t,i)}});n.Eb.prototype.q={children:{seekBar:{}}};n.Eb.prototype.f=function(){return n.a.prototype.f.call(this,"div",{className:"vjs-progress-control vjs-control"})};n.rc=n.U.extend({l:function(t,i){n.U.call(this,t,i);this.b(t,"timeupdate",this.Fa);t.I(n.bind(this,this.Fa))}});t=n.rc.prototype;t.q={children:{loadProgressBar:{},playProgressBar:{},seekHandle:{}},barName:"playProgressBar",handleName:"seekHandle"};t.Yc="timeupdate";t.f=function(){return n.U.prototype.f.call(this,"div",{className:"vjs-progress-holder","aria-label":"video progress bar"})};t.Fa=function(){var t=this.d.qb?this.d.K.currentTime:this.d.currentTime();this.c.setAttribute("aria-valuenow",n.round(100*this.Tb(),2));this.c.setAttribute("aria-valuetext",n.Oa(t,this.d.duration()))};t.Tb=function(){return this.d.currentTime()/this.d.duration()};t.ob=function(t){n.U.prototype.ob.call(this,t);this.d.qb=u;this.d.p("vjs-scrubbing");this.ef=!this.d.paused();this.d.pause()};t.ma=function(n){n=ii(this,n)*this.d.duration();n==this.d.duration()&&(n-=.1);this.d.currentTime(n)};t.Ca=function(t){n.U.prototype.Ca.call(this,t);this.d.qb=i;this.d.r("vjs-scrubbing");this.ef&&this.d.play()};t.ld=function(){this.d.currentTime(this.d.currentTime()+5)};t.kd=function(){this.d.currentTime(this.d.currentTime()-5)};n.Bb=n.a.extend({l:function(t,i){n.a.call(this,t,i);this.b(t,"progress",this.update)}});n.Bb.prototype.f=function(){return n.a.prototype.f.call(this,"div",{className:"vjs-load-progress",innerHTML:'<span class="vjs-control-text"><span>'+this.v("Loaded")+"<\/span>: 0%<\/span>"})};n.Bb.prototype.update=function(){var t,e,o,u,f=this.d.buffered(),r,i;for(t=this.d.duration(),i=this.d,r=i.buffered(),i=i.duration(),r=r.end(r.length-1),r>i&&(r=i),i=this.c.children,this.c.style.width=100*(r/t||0)+"%",t=0;t<f.length;t++)e=f.start(t),o=f.end(t),(u=i[t])||(u=this.c.appendChild(n.f())),u.style.left=100*(e/r||0)+"%",u.style.width=100*((o-e)/r||0)+"%";for(t=i.length;t>f.length;t--)this.c.removeChild(i[t-1])};n.nc=n.a.extend({l:function(t,i){n.a.call(this,t,i)}});n.nc.prototype.f=function(){return n.a.prototype.f.call(this,"div",{className:"vjs-play-progress",innerHTML:'<span class="vjs-control-text"><span>'+this.v("Progress")+"<\/span>: 0%<\/span>"})};n.ab=n.ha.extend({l:function(t,i){n.ha.call(this,t,i);this.b(t,"timeupdate",this.ga)}});n.ab.prototype.defaultValue="00:00";n.ab.prototype.f=function(){return n.ha.prototype.f.call(this,"div",{className:"vjs-seek-handle","aria-live":"off"})};n.ab.prototype.ga=function(){var t=this.d.qb?this.d.K.currentTime:this.d.currentTime();this.c.innerHTML='<span class="vjs-control-text">'+n.Oa(t,this.d.duration())+"<\/span>"};n.Ib=n.a.extend({l:function(t,r){n.a.call(this,t,r);t.h&&t.h.featuresVolumeControl===i&&this.p("vjs-hidden");this.b(t,"loadstart",function(){t.h.featuresVolumeControl===i?this.p("vjs-hidden"):this.r("vjs-hidden")})}});n.Ib.prototype.q={children:{volumeBar:{}}};n.Ib.prototype.f=function(){return n.a.prototype.f.call(this,"div",{className:"vjs-volume-control vjs-control"})};n.Hb=n.U.extend({l:function(t,i){n.U.call(this,t,i);this.b(t,"volumechange",this.Fa);t.I(n.bind(this,this.Fa))}});t=n.Hb.prototype;t.Fa=function(){this.c.setAttribute("aria-valuenow",n.round(100*this.d.volume(),2));this.c.setAttribute("aria-valuetext",n.round(100*this.d.volume(),2)+"%")};t.q={children:{volumeLevel:{},volumeHandle:{}},barName:"volumeLevel",handleName:"volumeHandle"};t.Yc="volumechange";t.f=function(){return n.U.prototype.f.call(this,"div",{className:"vjs-volume-bar","aria-label":"volume level"})};t.ma=function(n){this.d.muted()&&this.d.muted(i);this.d.volume(ii(this,n))};t.Tb=function(){return this.d.muted()?0:this.d.volume()};t.ld=function(){this.d.volume(this.d.volume()+.1)};t.kd=function(){this.d.volume(this.d.volume()-.1)};n.vc=n.a.extend({l:function(t,i){n.a.call(this,t,i)}});n.vc.prototype.f=function(){return n.a.prototype.f.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"><\/span>'})};n.Jb=n.ha.extend();n.Jb.prototype.defaultValue="00:00";n.Jb.prototype.f=function(){return n.ha.prototype.f.call(this,"div",{className:"vjs-volume-handle"})};n.sa=n.w.extend({l:function(t,r){n.w.call(this,t,r);this.b(t,"volumechange",this.update);t.h&&t.h.featuresVolumeControl===i&&this.p("vjs-hidden");this.b(t,"loadstart",function(){t.h.featuresVolumeControl===i?this.p("vjs-hidden"):this.r("vjs-hidden")})}});n.sa.prototype.f=function(){return n.w.prototype.f.call(this,"div",{className:"vjs-mute-control vjs-control",innerHTML:'<div><span class="vjs-control-text">'+this.v("Mute")+"<\/span><\/div>"})};n.sa.prototype.u=function(){this.d.muted(this.d.muted()?i:u)};n.sa.prototype.update=function(){var t=this.d.volume(),i=3;for(0===t||this.d.muted()?i=0:.33>t?i=1:.67>t&&(i=2),this.d.muted()?this.c.children[0].children[0].innerHTML!=this.v("Unmute")&&(this.c.children[0].children[0].innerHTML=this.v("Unmute")):this.c.children[0].children[0].innerHTML!=this.v("Mute")&&(this.c.children[0].children[0].innerHTML=this.v("Mute")),t=0;4>t;t++)n.r(this.c,"vjs-vol-"+t);n.p(this.c,"vjs-vol-"+i)};n.Ia=n.O.extend({l:function(t,r){n.O.call(this,t,r);this.b(t,"volumechange",this.ff);t.h&&t.h.featuresVolumeControl===i&&this.p("vjs-hidden");this.b(t,"loadstart",function(){t.h.featuresVolumeControl===i?this.p("vjs-hidden"):this.r("vjs-hidden")});this.p("vjs-menu-button")}});n.Ia.prototype.Ma=function(){var t=new n.ra(this.d,{Dc:"div"}),i=new n.Hb(this.d,this.q.volumeBar);return i.b("focus",function(){t.p("vjs-lock-showing")}),i.b("blur",function(){ft(t)}),t.ba(i),t};n.Ia.prototype.u=function(){n.sa.prototype.u.call(this);n.O.prototype.u.call(this)};n.Ia.prototype.f=function(){return n.w.prototype.f.call(this,"div",{className:"vjs-volume-menu-button vjs-menu-button vjs-control",innerHTML:'<div><span class="vjs-control-text">'+this.v("Mute")+"<\/span><\/div>"})};n.Ia.prototype.ff=n.sa.prototype.update;n.pc=n.O.extend({l:function(t,i){n.O.call(this,t,i);this.td();this.sd();this.b(t,"loadstart",this.td);this.b(t,"ratechange",this.sd)}});t=n.pc.prototype;t.ua="Playback Rate";t.className="vjs-playback-rate";t.f=function(){var t=n.O.prototype.f.call(this);return this.Sc=n.f("div",{className:"vjs-playback-rate-value",innerHTML:1}),t.appendChild(this.Sc),t};t.Ma=function(){var r=new n.ra(this.k()),i=this.k().options().playbackRates,t;if(i)for(t=i.length-1;0<=t;t--)r.ba(new n.Db(this.k(),{rate:i[t]+"x"}));return r};t.Fa=function(){this.m().setAttribute("aria-valuenow",this.k().playbackRate())};t.u=function(){for(var r=this.k().playbackRate(),n=this.k().options().playbackRates,i=n[0],t=0;t<n.length;t++)if(n[t]>r){i=n[t];break}this.k().playbackRate(i)};t.td=function(){hi(this)?this.r("vjs-hidden"):this.p("vjs-hidden")};t.sd=function(){hi(this)&&(this.Sc.innerHTML=this.k().playbackRate()+"x")};n.Db=n.M.extend({Dc:"button",l:function(t,i){var r=this.label=i.rate,u=this.$c=parseFloat(r,10);i.label=r;i.selected=1===u;n.M.call(this,t,i);this.b(t,"ratechange",this.update)}});n.Db.prototype.u=function(){n.M.prototype.u.call(this);this.k().playbackRate(this.$c)};n.Db.prototype.update=function(){this.selected(this.k().playbackRate()==this.$c)};n.qc=n.w.extend({l:function(t,i){n.w.call(this,t,i);this.update();t.b("posterchange",n.bind(this,this.update))}});t=n.qc.prototype;t.dispose=function(){this.k().n("posterchange",this.update);n.w.prototype.dispose.call(this)};t.f=function(){var t=n.f("div",{className:"vjs-poster",tabIndex:-1});return n.xd||(this.Pb=n.f("img"),t.appendChild(this.Pb)),t};t.update=function(){var n=this.k().poster();this.oa(n);n?this.show():this.Y()};t.oa=function(n){var t;this.Pb?this.Pb.src=n:(t="",n&&(t='url("'+n+'")'),this.c.style.backgroundImage=t)};t.u=function(){this.d.play()};n.mc=n.a.extend({l:function(t,i){n.a.call(this,t,i)}});n.mc.prototype.f=function(){return n.a.prototype.f.call(this,"div",{className:"vjs-loading-spinner"})};n.ub=n.w.extend();n.ub.prototype.f=function(){return n.w.prototype.f.call(this,"div",{className:"vjs-big-play-button",innerHTML:'<span aria-hidden="true"><\/span>',"aria-label":"play video"})};n.ub.prototype.u=function(){this.d.play()};n.zb=n.a.extend({l:function(t,i){n.a.call(this,t,i);this.update();this.b(t,"error",this.update)}});n.zb.prototype.f=function(){var t=n.a.prototype.f.call(this,"div",{className:"vjs-error-display"});return this.B=n.f("div"),t.appendChild(this.B),t};n.zb.prototype.update=function(){this.k().error()&&(this.B.innerHTML=this.v(this.k().error().message))};n.j=n.a.extend({l:function(t,r,u){r=r||{};r.dd=i;n.a.call(this,t,r,u);this.featuresProgressEvents||this.se();this.featuresTimeupdateEvents||this.te();this.ge();this.featuresNativeTextTracks||this.Wd();this.ie()}});t=n.j.prototype;t.ge=function(){var n,t;n=this.k();t=function(){n.controls()&&!n.usingNativeControls()&&this.Jd()};this.I(t);this.b(n,"controlsenabled",t);this.b(n,"controlsdisabled",this.Ie);this.I(function(){this.networkState&&0<this.networkState()&&this.k().o("loadstart")})};t.Jd=function(){var n;this.b("mousedown",this.u);this.b("touchstart",function(){n=this.d.userActive()});this.b("touchmove",function(){n&&this.k().reportUserActivity()});this.b("touchend",function(n){n.preventDefault()});ti(this);this.b("tap",this.Ce)};t.Ie=function(){this.n("tap");this.n("touchstart");this.n("touchmove");this.n("touchleave");this.n("touchcancel");this.n("touchend");this.n("click");this.n("mousedown")};t.u=function(n){0===n.button&&this.k().controls()&&(this.k().paused()?this.k().play():this.k().pause())};t.Ce=function(){this.k().userActive(!this.k().userActive())};t.se=function(){this.Uc=u;this.af()};t.re=function(){this.Uc=i;this.md()};t.af=function(){this.He=this.setInterval(function(){var n=this.k().bufferedPercent();this.Nd!=n&&this.k().o("progress");this.Nd=n;1===n&&this.md()},500)};t.md=function(){this.clearInterval(this.He)};t.te=function(){var n=this.d;this.Zb=u;this.b(n,"play",this.qd);this.b(n,"pause",this.tb);this.N("timeupdate",function(){this.featuresTimeupdateEvents=u;this.Vc()})};t.Vc=function(){var n=this.d;this.Zb=i;this.tb();this.n(n,"play",this.qd);this.n(n,"pause",this.tb)};t.qd=function(){this.Fc&&this.tb();this.Fc=this.setInterval(function(){this.k().o("timeupdate")},250)};t.tb=function(){this.clearInterval(this.Fc);this.k().o("timeupdate")};t.dispose=function(){this.Uc&&this.re();this.Zb&&this.Vc();n.a.prototype.dispose.call(this)};t.cc=function(){this.Zb&&this.k().o("timeupdate")};t.ie=function(){function i(){var n=r.ea("textTrackDisplay");n&&n.C()}var r=this.d,t;(t=this.textTracks())&&(t.addEventListener("removetrack",i),t.addEventListener("addtrack",i),this.b("dispose",n.bind(this,function(){t.removeEventListener("removetrack",i);t.removeEventListener("addtrack",i)})))};t.Wd=function(){var t=this.d,i,r,f;window.WebVTT||(f=document.createElement("script"),f.src=t.options()["vtt.js"]||"../node_modules/vtt.js/dist/vtt.js",t.m().appendChild(f),window.WebVTT=u);(r=this.textTracks())&&(i=function(){var r,u,i;for(i=t.ea("textTrackDisplay"),i.C(),r=0;r<this.length;r++)u=this[r],u.removeEventListener("cuechange",n.bind(i,i.C)),"showing"===u.mode&&u.addEventListener("cuechange",n.bind(i,i.C))},r.addEventListener("change",i),this.b("dispose",n.bind(this,function(){r.removeEventListener("change",i)})))};t.textTracks=function(){return this.d.pd=this.d.pd||new n.F,this.d.pd};t.Z=function(){return this.d.ad=this.d.ad||new n.F,this.d.ad};at=function(t,i,r,u,f){var e=t.textTracks();return f=f||{},f.kind=i,r&&(f.label=r),u&&(f.language=u),f.player=t.d,t=new n.t(f),tt(e,t),t};n.j.prototype.addTextTrack=function(n,t,i){if(!n)throw Error("TextTrack kind is required but was not provided");return at(this,n,t,i)};n.j.prototype.ia=function(n){return n=at(this,n.kind,n.label,n.language,n),tt(this.Z(),n),{T:n}};n.j.prototype.Ea=function(n){pt(this.textTracks(),n);pt(this.Z(),n)};n.j.prototype.fd=s();n.j.prototype.featuresVolumeControl=u;n.j.prototype.featuresFullscreenResize=i;n.j.prototype.featuresPlaybackRate=i;n.j.prototype.featuresProgressEvents=i;n.j.prototype.featuresTimeupdateEvents=i;n.j.prototype.featuresNativeTextTracks=i;n.j.hc=function(t){t.Ta=function(n,i){var r=t.gd;r||(r=t.gd=[]);i===e&&(i=r.length);r.splice(i,0,n)};t.rb=function(n){for(var r=t.gd||[],u,i=0;i<r.length;i++)if(u=r[i].fb(n))return r[i];return f};t.Ac=function(n){var i=t.rb(n);return i?i.fb(n):""};t.prototype.na=function(i){var r=t.rb(i);return r||(t.S?r=t.S:n.log.error("No source hander found for the current source.")),this.ja(),this.n("dispose",this.ja),this.ib=i,this.dc=r.Ub(i,this),this.b("dispose",this.ja),this};t.prototype.ja=function(){this.dc&&this.dc.dispose&&this.dc.dispose()}};n.media={};n.e=n.j.extend({l:function(t,r,f){var h,s,a,o,e,c,l;for((r.nativeCaptions===i||r.nativeTextTracks===i)&&(this.featuresNativeTextTracks=i),n.j.call(this,t,r,f),f=n.e.Ab.length-1;0<=f;f--)this.b(n.e.Ab[f],this.Xd);if((r=r.source)&&(this.c.currentSrc!==r.src||t.L&&3===t.L.he)&&this.na(r),this.c.hasChildNodes()){for(f=this.c.childNodes,h=f.length,r=[];h--;)s=f[h],a=s.nodeName.toLowerCase(),"track"===a&&(this.featuresNativeTextTracks?tt(this.Z(),s.track):r.push(s));for(f=0;f<r.length;f++)this.c.removeChild(r[f])}this.featuresNativeTextTracks&&this.b("loadstart",n.bind(this,this.fe));n.Gb&&t.options().nativeControlsForTouch===u&&(o=this,e=this.k(),r=e.controls(),o.c.controls=!!r,c=function(){o.c.controls=u},l=function(){o.c.controls=i},e.b("controlsenabled",c),e.b("controlsdisabled",l),r=function(){e.n("controlsenabled",c);e.n("controlsdisabled",l)},o.b("dispose",r),e.b("usingcustomcontrols",r),e.usingNativeControls(u));t.I(function(){this.src()&&this.L&&this.q.autoplay&&this.paused()&&(delete this.L.poster,this.play())});this.Xa()}});t=n.e.prototype;t.dispose=function(){n.e.Nb(this.c);n.j.prototype.dispose.call(this)};t.f=function(){var r=this.d,s,o,t,e=r.L,h;if(!e||this.movingMediaElementInDOM===i){if(e?(t=e.cloneNode(i),n.e.Nb(e),e=t,r.L=f):(e=n.f("video"),t=b.$.Ba({},r.Ye),(!n.Gb||r.options().nativeControlsForTouch!==u)&&delete t.controls,n.ed(e,n.i.D(t,{id:r.id()+"_html5_api","class":"vjs-tech"}))),e.player=r,r.q.rd)for(t=0;t<r.q.rd.length;t++)s=r.q.rd[t],o=document.createElement("track"),o.Xb=s.Xb,o.label=s.label,o.jd=s.jd,o.src=s.src,"default"in s&&o.setAttribute("default","default"),e.appendChild(o);n.Vb(e,r.m())}for(s=["autoplay","preload","loop","muted"],t=s.length-1;0<=t;t--)o=s[t],h={},"undefined"!=typeof r.q[o]&&(h[o]=r.q[o]),n.ed(e,h);return e};t.fe=function(){for(var n=this.c.querySelectorAll("track"),t,i=n.length,r={captions:1,subtitles:1};i--;)(t=n[i].T)&&t.kind in r&&!n[i]["default"]&&(t.mode="disabled")};t.Xd=function(n){"error"==n.type&&this.error()?this.k().error(this.error().code):(n.bubbles=i,this.k().o(n))};t.play=function(){this.c.play()};t.pause=function(){this.c.pause()};t.paused=function(){return this.c.paused};t.currentTime=function(){return this.c.currentTime};t.cc=function(t){try{this.c.currentTime=t}catch(i){n.log(i,"Video is not ready. (Video.js)")}};t.duration=function(){return this.c.duration||0};t.buffered=function(){return this.c.buffered};t.volume=function(){return this.c.volume};t.Te=function(n){this.c.volume=n};t.muted=function(){return this.c.muted};t.Pe=function(n){this.c.muted=n};t.width=function(){return this.c.offsetWidth};t.height=function(){return this.c.offsetHeight};t.Ua=function(){return"function"==typeof this.c.webkitEnterFullScreen&&(/Android/.test(n.P)||!/Chrome|Mac OS X 10.5/.test(n.P))?u:i};t.Ic=function(){var n=this.c;"webkitDisplayingFullscreen"in n&&this.N("webkitbeginfullscreen",function(){this.d.isFullscreen(u);this.N("webkitendfullscreen",function(){this.d.isFullscreen(i);this.d.o("fullscreenchange")});this.d.o("fullscreenchange")});n.paused&&n.networkState<=n.kf?(this.c.play(),this.setTimeout(function(){n.pause();n.webkitEnterFullScreen()},0)):n.webkitEnterFullScreen()};t.Yd=function(){this.c.webkitExitFullScreen()};t.src=function(n){var t=this.c.src;if(n===e)return ci(t,this.hd);this.oa(n)};t.oa=function(n){this.c.src=n};t.load=function(){this.c.load()};t.currentSrc=function(){var n=this.c.currentSrc;return this.ib?ci(n,this.ib.src):n};t.poster=function(){return this.c.poster};t.fd=function(n){this.c.poster=n};t.Sa=function(){return this.c.Sa};t.Re=function(n){this.c.Sa=n};t.autoplay=function(){return this.c.autoplay};t.Me=function(n){this.c.autoplay=n};t.controls=function(){return this.c.controls};t.loop=function(){return this.c.loop};t.Oe=function(n){this.c.loop=n};t.error=function(){return this.c.error};t.seeking=function(){return this.c.seeking};t.seekable=function(){return this.c.seekable};t.ended=function(){return this.c.ended};t.playbackRate=function(){return this.c.playbackRate};t.Qe=function(n){this.c.playbackRate=n};t.networkState=function(){return this.c.networkState};t.readyState=function(){return this.c.readyState};t.textTracks=function(){return this.featuresNativeTextTracks?this.c.textTracks:n.j.prototype.textTracks.call(this)};t.addTextTrack=function(t,i,r){return this.featuresNativeTextTracks?this.c.addTextTrack(t,i,r):n.j.prototype.addTextTrack.call(this,t,i,r)};t.ia=function(t){if(!this.featuresNativeTextTracks)return n.j.prototype.ia.call(this,t);var i=document.createElement("track");return t=t||{},t.kind&&(i.kind=t.kind),t.label&&(i.label=t.label),(t.language||t.srclang)&&(i.srclang=t.language||t.srclang),t["default"]&&(i["default"]=t["default"]),t.id&&(i.id=t.id),t.src&&(i.src=t.src),this.m().appendChild(i),i.track.mode="metadata"===i.T.kind?"hidden":"disabled",i.onload=function(){var n=i.track;2<=i.readyState&&("metadata"===n.kind&&"hidden"!==n.mode?n.mode="hidden":"metadata"!==n.kind&&"disabled"!==n.mode&&(n.mode="disabled"),i.onload=f)},tt(this.Z(),i.T),i};t.Ea=function(t){if(!this.featuresNativeTextTracks)return n.j.prototype.Ea.call(this,t);var r,i;for(pt(this.Z(),t),r=this.m().querySelectorAll("track"),i=0;i<r.length;i++)if(r[i]===t||r[i].track===t){r[i].parentNode.removeChild(r[i]);break}};n.e.isSupported=function(){try{n.A.volume=.5}catch(t){return i}return!!n.A.canPlayType};n.j.hc(n.e);li=n.e.prototype.na;ai=n.e.prototype.ja;n.e.prototype.na=function(n){var t=li.call(this,n);return this.hd=n.src,t};n.e.prototype.ja=function(){return this.hd=e,ai.call(this)};n.e.S={};n.e.S.fb=function(t){function i(t){try{return n.A.canPlayType(t)}catch(i){return""}}return t.type?i(t.type):t.src?(t=(t=t.src.match(/\.([^.\/\?]+)(\?[^\/]+)?$/i))&&t[1],i("video/"+t)):""};n.e.S.Ub=function(n,t){t.oa(n.src)};n.e.S.dispose=s();n.e.Ta(n.e.S);n.e.Pd=function(){var t=n.A.volume;return n.A.volume=t/2+.1,t!==n.A.volume};n.e.Od=function(){var t=n.A.playbackRate;return n.A.playbackRate=t/2+.1,t!==n.A.playbackRate};n.e.We=function(){var t;return(t=!!n.A.textTracks)&&0<n.A.textTracks.length&&(t="number"!=typeof n.A.textTracks[0].mode),t&&n.kc&&(t=i),t};n.e.prototype.featuresVolumeControl=n.e.Pd();n.e.prototype.featuresPlaybackRate=n.e.Od();n.e.prototype.movingMediaElementInDOM=!n.Bd;n.e.prototype.featuresFullscreenResize=u;n.e.prototype.featuresProgressEvents=u;n.e.prototype.featuresNativeTextTracks=n.e.We();vi=/^application\/(?:x-|vnd\.apple\.)mpegurl/i;yi=/^video\/mp4/i;n.e.Xc=function(){4<=n.ic&&(p||(p=n.A.constructor.prototype.canPlayType),n.A.constructor.prototype.canPlayType=function(n){return n&&vi.test(n)?"maybe":p.call(this,n)});n.Fd&&(p||(p=n.A.constructor.prototype.canPlayType),n.A.constructor.prototype.canPlayType=function(n){return n&&yi.test(n)?"maybe":p.call(this,n)})};n.e.cf=function(){var t=n.A.constructor.prototype.canPlayType;return n.A.constructor.prototype.canPlayType=p,p=f,t};n.e.Xc();n.e.Ab="loadstart suspend abort error emptied stalled loadedmetadata loadeddata canplay canplaythrough playing waiting seeking seeked ended durationchange timeupdate progress play pause ratechange volumechange".split(" ");n.e.Nb=function(n){if(n){for(n.player=f,n.parentNode&&n.parentNode.removeChild(n);n.hasChildNodes();)n.removeChild(n.firstChild);if(n.removeAttribute("src"),"function"==typeof n.load)try{n.load()}catch(t){}}};n.g=n.j.extend({l:function(t,r,u){var e;n.j.call(this,t,r,u);e=r.source;u=t.id()+"_flash_api";var f=t.q,f=n.i.D({readyFunction:"videojs.Flash.onReady",eventProxyFunction:"videojs.Flash.onEvent",errorEventProxyFunction:"videojs.Flash.onError",autoplay:f.autoplay,preload:f.Sa,loop:f.loop,muted:f.muted},r.flashVars),o=n.i.D({wmode:"opaque",bgcolor:"#000000"},r.params);u=n.i.D({id:u,name:u,"class":"vjs-tech"},r.attributes);e&&this.I(function(){this.na(e)});n.Vb(this.c,r.parentEl);r.startTime&&this.I(function(){this.load();this.play();this.currentTime(r.startTime)});n.kc&&this.I(function(){this.b("mousemove",function(){this.k().o({type:"mousemove",bubbles:i})})});t.b("stageclick",t.reportUserActivity);this.c=n.g.Hc(r.swf,this.c,f,o,u)}});t=n.g.prototype;t.dispose=function(){n.j.prototype.dispose.call(this)};t.play=function(){this.c.vjs_play()};t.pause=function(){this.c.vjs_pause()};t.src=function(n){return n===e?this.currentSrc():this.oa(n)};t.oa=function(t){if(t=n.ae(t),this.c.vjs_src(t),this.d.autoplay()){var i=this;this.setTimeout(function(){i.play()},0)}};n.g.prototype.setCurrentTime=function(t){this.pe=t;this.c.vjs_setProperty("currentTime",t);n.j.prototype.cc.call(this)};n.g.prototype.currentTime=function(){return this.seeking()?this.pe||0:this.c.vjs_getProperty("currentTime")};n.g.prototype.currentSrc=function(){return this.ib?this.ib.src:this.c.vjs_getProperty("currentSrc")};n.g.prototype.load=function(){this.c.vjs_load()};n.g.prototype.poster=function(){this.c.vjs_getProperty("poster")};n.g.prototype.setPoster=s();t=n.g.prototype;t.seekable=function(){return 0===this.duration()?n.ya():n.ya(0,this.duration())};t.buffered=function(){return this.c.vjs_getProperty?n.ya(0,this.c.vjs_getProperty("buffered")):n.ya()};t.duration=function(){return this.c.vjs_getProperty?this.c.vjs_getProperty("duration"):0};t.Ua=d(i);t.Ic=d(i);for(var wi=n.g.prototype,vt="rtmpConnection rtmpStream preload defaultPlaybackRate playbackRate autoplay loop mediaGroup controller controls volume muted defaultMuted".split(" "),bi="error networkState readyState seeking initialTime startOffsetTime paused played ended videoTracks audioTracks videoWidth videoHeight".split(" "),l=0;l<vt.length;l++)pi(vt[l]),ur();for(l=0;l<bi.length;l++)pi(bi[l]);n.g.isSupported=function(){return 10<=n.g.version()[0]};n.j.hc(n.g);n.g.S={};n.g.S.fb=function(t){return t.type?t.type.replace(/;.*/,"").toLowerCase()in n.g.$d?"maybe":"":""};n.g.S.Ub=function(n,t){t.oa(n.src)};n.g.S.dispose=s();n.g.Ta(n.g.S);n.g.$d={"video/flv":"FLV","video/x-flv":"FLV","video/mp4":"MP4","video/m4v":"MP4"};n.g.onReady=function(t){var i;(i=(t=n.m(t))&&t.parentNode&&t.parentNode.player)&&(t.player=i,n.g.checkReady(i.h))};n.g.checkReady=function(t){t.m()&&(t.m().vjs_getProperty?t.Xa():this.setTimeout(function(){n.g.checkReady(t)},50))};n.g.onEvent=function(t,i){n.m(t).player.o(i)};n.g.onError=function(t,i){var r=n.m(t).player,u="FLASH: "+i;"srcnotfound"==i?r.error({code:4,message:u}):r.error(u)};n.g.version=function(){var n="0,0,0";try{n=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}catch(t){try{navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin&&(n=(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1])}catch(i){}}return n.split(",")};n.g.Hc=function(t,i,r,u,f){t=n.g.de(t,r,u,f);t=n.f("div",{innerHTML:t}).childNodes[0];r=i.parentNode;i.parentNode.replaceChild(t,i);t[n.expando]=i[n.expando];var e=r.childNodes[0];return setTimeout(function(){e.style.display="block"},1e3),t};n.g.de=function(t,i,r,u){var f="",e="",o="";return i&&n.i.da(i,function(n,t){f+=n+"="+t+"&amp;"}),r=n.i.D({movie:t,flashvars:f,allowScriptAccess:"always",allowNetworking:"all"},r),n.i.da(r,function(n,t){e+='<param name="'+n+'" value="'+t+'" />'}),u=n.i.D({data:t,width:"100%",height:"100%"},u),n.i.da(u,function(n,t){o+=n+'="'+t+'" '}),'<object type="application/x-shockwave-flash" '+o+">"+e+"<\/object>"};n.g.Ve={"rtmp/mp4":"MP4","rtmp/flv":"FLV"};n.g.If=function(n,t){return n+"&"+t};n.g.Ue=function(n){var i={Cc:"",nd:""},t,r;return n?(t=n.indexOf("&"),-1!==t?r=t+1:(t=r=n.lastIndexOf("/")+1,0===t&&(t=r=n.length)),i.Cc=n.substring(0,t),i.nd=n.substring(r,n.length),i):i};n.g.ne=function(t){return t in n.g.Ve};n.g.Hd=/^rtmp[set]?:\/\//i;n.g.me=function(t){return n.g.Hd.test(t)};n.g.bc={};n.g.bc.fb=function(t){return n.g.ne(t.type)||n.g.me(t.src)?"maybe":""};n.g.bc.Ub=function(t,i){var r=n.g.Ue(t.src);i.setRtmpConnection(r.Cc);i.setRtmpStream(r.nd)};n.g.Ta(n.g.bc);n.Gd=n.a.extend({l:function(t,i,r){if(n.a.call(this,t,i,r),t.q.sources&&0!==t.q.sources.length)t.src(t.q.sources);else for(i=0,r=t.q.techOrder;i<r.length;i++){var u=n.wa(r[i]),f=window.videojs[u];if(f&&f.isSupported()){fi(t,u);break}}}});n.sc={disabled:"disabled",hidden:"hidden",showing:"showing"};n.Id={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"};n.t=function(t){var r,a,e,s,v,y,p,h,c,o,l;if(t=t||{},!t.player)throw Error("A player was not provided.");if(r=this,n.qa)for(l in r=document.createElement("custom"),n.t.prototype)r[l]=n.t.prototype[l];return r.d=t.player,e=n.sc[t.mode]||"disabled",s=n.Id[t.kind]||"subtitles",v=t.label||"",y=t.language||t.srclang||"",a=t.id||"vjs_text_track_"+n.s++,("metadata"===s||"chapters"===s)&&(e="hidden"),r.X=[],r.Ja=[],p=new n.W(r.X),h=new n.W(r.Ja),o=i,c=n.bind(r,function(){this.activeCues;o&&(this.trigger("cuechange"),o=i)}),"disabled"!==e&&r.d.b("timeupdate",c),Object.defineProperty(r,"kind",{get:function(){return s},set:Function.prototype}),Object.defineProperty(r,"label",{get:function(){return v},set:Function.prototype}),Object.defineProperty(r,"language",{get:function(){return y},set:Function.prototype}),Object.defineProperty(r,"id",{get:function(){return a},set:Function.prototype}),Object.defineProperty(r,"mode",{get:function(){return e},set:function(t){n.sc[t]&&(e=t,"showing"===e&&this.d.b("timeupdate",c),this.o("modechange"))}}),Object.defineProperty(r,"cues",{get:function(){return this.Yb?p:f},set:Function.prototype}),Object.defineProperty(r,"activeCues",{get:function(){var t,s,r,e,n;if(!this.Yb)return f;if(0===this.cues.length)return h;for(e=this.d.currentTime(),t=0,s=this.cues.length,r=[];t<s;t++)n=this.cues[t],n.startTime<=e&&n.endTime>=e?r.push(n):n.startTime===n.endTime&&n.startTime<=e&&n.startTime+.5>=e&&r.push(n);if(o=i,r.length!==this.Ja.length)o=u;else for(t=0;t<r.length;t++)-1===di.call(this.Ja,r[t])&&(o=u);return this.Ja=r,h.sb(this.Ja),h},set:Function.prototype}),t.src?ki(t.src,r):r.Yb=u,n.qa?r:void 0};n.t.prototype=n.i.create(n.z.prototype);n.t.prototype.constructor=n.t;n.t.prototype.cb={cuechange:"cuechange"};n.t.prototype.wc=function(n){var t=this.d.textTracks(),i=0;if(t)for(;i<t.length;i++)t[i]!==this&&t[i].bd(n);this.X.push(n);this.cues.sb(this.X)};n.t.prototype.bd=function(n){for(var t=0,e=this.X.length,r,f=i;t<e;t++)r=this.X[t],r===n&&(this.X.splice(t,1),f=u);f&&this.Ec.sb(this.X)};ki=function(t,i){n.gf(t,n.bind(this,function(t,r,f){if(t)return n.log.error(t);i.Yb=u;yt(f,i)}))};yt=function(t,i){if("function"!=typeof WebVTT)window.setTimeout(function(){yt(t,i)},25);else{var r=new window.WebVTT.Parser(window,window.vttjs,window.WebVTT.StringDecoder());r.oncue=function(n){i.wc(n)};r.onparsingerror=function(t){n.log.error(t)};r.parse(t);r.flush()}};di=function(n,t){var i,u,r;if(this==f)throw new TypeError('"this" is null or not defined');if((u=Object(this),r=u.length>>>0,0===r)||(i=+t||0,Infinity===Math.abs(i)&&(i=0),i>=r))return-1;for(i=Math.max(0<=i?i:r-Math.abs(i),0);i<r;){if(i in u&&u[i]===n)return i;i++}return-1};n.F=function(t){var i=this,r,u=0;if(n.qa)for(r in i=document.createElement("custom"),n.F.prototype)i[r]=n.F.prototype[r];for(t=t||[],i.Wa=[],Object.defineProperty(i,"length",{get:function(){return this.Wa.length}});u<t.length;u++)tt(i,t[u]);if(n.qa)return i};n.F.prototype=n.i.create(n.z.prototype);n.F.prototype.constructor=n.F;n.F.prototype.cb={change:"change",addtrack:"addtrack",removetrack:"removetrack"};for(gi in n.F.prototype.cb)n.F.prototype["on"+gi]=f;n.F.prototype.ee=function(n){for(var t=0,u=this.length,r=f,i;t<u;t++)if(i=this[t],i.id===n){r=i;break}return r};n.W=function(t){var i=this,r;if(n.qa)for(r in i=document.createElement("custom"),n.W.prototype)i[r]=n.W.prototype[r];return n.W.prototype.sb.call(i,t),Object.defineProperty(i,"length",{get:w("qe")}),n.qa?i:void 0};n.W.prototype.sb=function(n){var i=this.length||0,t=0,r=n.length;if(this.X=n,this.qe=n.length,n=function(n){""+n in this||Object.defineProperty(this,""+n,{get:function(){return this.X[n]}})},i<r)for(t=i;t<r;t++)n.call(this,t)};n.W.prototype.ce=function(n){for(var t=0,u=this.length,r=f,i;t<u;t++)if(i=this[t],i.id===n){r=i;break}return r};n.ta=n.a.extend({l:function(t,i,r){n.a.call(this,t,i,r);t.b("loadstart",n.bind(this,this.$e));t.I(n.bind(this,function(){if(t.h&&t.h.featuresNativeTextTracks)this.Y();else{var i,r,u;for(t.b("fullscreenchange",n.bind(this,this.C)),r=t.q.tracks||[],i=0;i<r.length;i++)u=r[i],this.d.ia(u)}}))}});n.ta.prototype.$e=function(){this.d.h&&this.d.h.featuresNativeTextTracks?this.Y():this.show()};n.ta.prototype.f=function(){return n.a.prototype.f.call(this,"div",{className:"vjs-text-track-display"})};n.ta.prototype.Qd=function(){"function"==typeof WebVTT&&window.WebVTT.processCues(window,[],this.c)};nr={yf:"monospace",Ef:"sans-serif",Gf:"serif",zf:'"Andale Mono", "Lucida Console", monospace',Af:'"Courier New", monospace',Cf:"sans-serif",Df:"serif",pf:'"Comic Sans MS", Impact, fantasy',Ff:'"Monotype Corsiva", cursive',Hf:'"Andale Mono", "Lucida Console", monospace, sans-serif'};n.ta.prototype.C=function(){var n=this.d.textTracks(),t=0,i;if(this.Qd(),n)for(;t<n.length;t++)i=n[t],"showing"===i.mode&&this.df(i)};n.ta.prototype.df=function(n){if("function"==typeof WebVTT&&n.activeCues){for(var i=0,t=this.d.textTrackSettings.Lc(),u,r=[];i<n.activeCues.length;i++)r.push(n.activeCues[i]);for(window.WebVTT.processCues(window,n.activeCues,this.c),i=r.length;i--;){if(n=r[i].qf,t.color&&(n.firstChild.style.color=t.color),t.od)try{n.firstChild.style.color=wt(t.color||"#fff",t.od)}catch(f){}if(t.backgroundColor&&(n.firstChild.style.backgroundColor=t.backgroundColor),t.zc)try{n.firstChild.style.backgroundColor=wt(t.backgroundColor||"#000",t.zc)}catch(e){}if(t.gc)if(t.vd)try{n.style.backgroundColor=wt(t.gc,t.vd)}catch(o){}else n.style.backgroundColor=t.gc;t.Na&&("dropshadow"===t.Na?n.firstChild.style.textShadow="2px 2px 3px #222, 2px 2px 4px #222, 2px 2px 5px #222":"raised"===t.Na?n.firstChild.style.textShadow="1px 1px #222, 2px 2px #222, 3px 3px #222":"depressed"===t.Na?n.firstChild.style.textShadow="1px 1px #ccc, 0 1px #ccc, -1px -1px #222, 0 -1px #222":"uniform"===t.Na&&(n.firstChild.style.textShadow="0 0 4px #222, 0 0 4px #222, 0 0 4px #222, 0 0 4px #222"));t.Rb&&1!==t.Rb&&(u=window.Bf(n.style.fontSize),n.style.fontSize=u*t.Rb+"px",n.style.height="auto",n.style.top="auto",n.style.bottom="2px");t.fontFamily&&"default"!==t.fontFamily&&("small-caps"===t.fontFamily?n.firstChild.style.fontVariant="small-caps":n.firstChild.style.fontFamily=nr[t.fontFamily])}}};n.aa=n.M.extend({l:function(t,r){var s=this.T=r.track,f=t.textTracks(),h,o;f&&(h=n.bind(this,function(){var r="showing"===this.T.mode,e,t,o;if(this instanceof n.Cb)for(r=u,t=0,o=f.length;t<o;t++)if(e=f[t],e.kind===this.T.kind&&"showing"===e.mode){r=i;break}this.selected(r)}),f.addEventListener("change",h),t.b("dispose",function(){f.removeEventListener("change",h)}));r.label=s.label||s.language||"Unknown";r.selected=s["default"]||"showing"===s.mode;n.M.call(this,t,r);f&&f.onchange===e&&this.b(["tap","click"],function(){if("object"!=typeof zd)try{o=new window.zd("change")}catch(n){}o||(o=document.createEvent("Event"),o.initEvent("change",u,u));f.dispatchEvent(o)})}});n.aa.prototype.u=function(){var u=this.T.kind,i=this.d.textTracks(),t,r=0;if(n.M.prototype.u.call(this),i)for(;r<i.length;r++)t=i[r],t.kind===u&&(t.mode=t===this.T?"showing":"disabled")};n.Cb=n.aa.extend({l:function(t,r){r.track={kind:r.kind,player:t,label:r.kind+" off","default":i,mode:"disabled"};n.aa.call(this,t,r);this.selected(u)}});n.vb=n.aa.extend({l:function(t,r){r.track={kind:r.kind,player:t,label:r.kind+" settings","default":i,mode:"disabled"};n.aa.call(this,t,r);this.p("vjs-texttrack-settings")}});n.vb.prototype.u=function(){this.k().ea("textTrackSettings").show()};n.Q=n.O.extend({l:function(t,i){var r,u;n.O.call(this,t,i);r=this.d.textTracks();1>=this.H.length&&this.Y();r&&(u=n.bind(this,this.update),r.addEventListener("removetrack",u),r.addEventListener("addtrack",u),this.d.b("dispose",function(){r.removeEventListener("removetrack",u);r.removeEventListener("addtrack",u)}))}});n.Q.prototype.La=function(){var t=[],u,i,r;if(this instanceof n.pa&&(!this.k().h||!this.k().h.featuresNativeTextTracks)&&t.push(new n.vb(this.d,{kind:this.fa})),t.push(new n.Cb(this.d,{kind:this.fa})),i=this.d.textTracks(),!i)return t;for(r=0;r<i.length;r++)u=i[r],u.kind===this.fa&&t.push(new n.aa(this.d,{track:u}));return t};n.pa=n.Q.extend({l:function(t,i,r){n.Q.call(this,t,i,r);this.c.setAttribute("aria-label","Captions Menu")}});n.pa.prototype.fa="captions";n.pa.prototype.ua="Captions";n.pa.prototype.className="vjs-captions-button";n.pa.prototype.update=function(){var t=2;n.Q.prototype.update.call(this);this.k().h&&this.k().h.featuresNativeTextTracks&&(t=1);this.H&&this.H.length>t?this.show():this.Y()};n.bb=n.Q.extend({l:function(t,i,r){n.Q.call(this,t,i,r);this.c.setAttribute("aria-label","Subtitles Menu")}});n.bb.prototype.fa="subtitles";n.bb.prototype.ua="Subtitles";n.bb.prototype.className="vjs-subtitles-button";n.Ya=n.Q.extend({l:function(t,i,r){n.Q.call(this,t,i,r);this.c.setAttribute("aria-label","Chapters Menu")}});t=n.Ya.prototype;t.fa="chapters";t.ua="Chapters";t.className="vjs-chapters-button";t.La=function(){var r=[],u,t,i;if(t=this.d.textTracks(),!t)return r;for(i=0;i<t.length;i++)u=t[i],u.kind===this.fa&&r.push(new n.aa(this.d,{track:u}));return r};t.Ma=function(){for(var u,t=this.d.textTracks()||[],r=0,o=t.length,i,f,s=this.H=[];r<o;r++)if(i=t[r],i.kind==this.fa)if(i.Ec){f=i;break}else i.mode="hidden",window.setTimeout(n.bind(this,function(){this.Ma()}),100);if(t=this.Aa,t===e&&(t=new n.ra(this.d),t.xa().appendChild(n.f("li",{className:"vjs-menu-title",innerHTML:n.wa(this.fa),Xe:-1}))),f){for(i=f.cues,r=0,o=i.length;r<o;r++)u=i[r],u=new n.Za(this.d,{track:f,cue:u}),s.push(u),t.ba(u);this.ba(t)}return 0<this.H.length&&this.show(),t};n.Za=n.M.extend({l:function(t,i){var f=this.T=i.track,r=this.cue=i.cue,u=t.currentTime();i.label=r.text;i.selected=r.startTime<=u&&u<r.endTime;n.M.call(this,t,i);f.addEventListener("cuechange",n.bind(this,this.update))}});n.Za.prototype.u=function(){n.M.prototype.u.call(this);this.d.currentTime(this.cue.startTime);this.update(this.cue.startTime)};n.Za.prototype.update=function(){var n=this.cue,t=this.d.currentTime();this.selected(n.startTime<=t&&t<n.endTime)};n.tc=n.a.extend({l:function(t,i){n.a.call(this,t,i);this.Y();n.b(this.m().querySelector(".vjs-done-button"),"click",n.bind(this,function(){this.Ke();this.Y()}));n.b(this.m().querySelector(".vjs-default-button"),"click",n.bind(this,function(){this.m().querySelector(".vjs-fg-color > select").selectedIndex=0;this.m().querySelector(".vjs-bg-color > select").selectedIndex=0;this.m().querySelector(".window-color > select").selectedIndex=0;this.m().querySelector(".vjs-text-opacity > select").selectedIndex=0;this.m().querySelector(".vjs-bg-opacity > select").selectedIndex=0;this.m().querySelector(".vjs-window-opacity > select").selectedIndex=0;this.m().querySelector(".vjs-edge-style select").selectedIndex=0;this.m().querySelector(".vjs-font-family select").selectedIndex=0;this.m().querySelector(".vjs-font-percent select").selectedIndex=2;this.C()}));n.b(this.m().querySelector(".vjs-fg-color > select"),"change",n.bind(this,this.C));n.b(this.m().querySelector(".vjs-bg-color > select"),"change",n.bind(this,this.C));n.b(this.m().querySelector(".window-color > select"),"change",n.bind(this,this.C));n.b(this.m().querySelector(".vjs-text-opacity > select"),"change",n.bind(this,this.C));n.b(this.m().querySelector(".vjs-bg-opacity > select"),"change",n.bind(this,this.C));n.b(this.m().querySelector(".vjs-window-opacity > select"),"change",n.bind(this,this.C));n.b(this.m().querySelector(".vjs-font-percent select"),"change",n.bind(this,this.C));n.b(this.m().querySelector(".vjs-edge-style select"),"change",n.bind(this,this.C));n.b(this.m().querySelector(".vjs-font-family select"),"change",n.bind(this,this.C));t.options().persistTextTrackSettings&&this.Je()}});t=n.tc.prototype;t.f=function(){return n.a.prototype.f.call(this,"div",{className:"vjs-caption-settings vjs-modal-overlay",innerHTML:'<div class="vjs-tracksettings"><div class="vjs-tracksettings-colors"><div class="vjs-fg-color vjs-tracksetting"><label class="vjs-label">Foreground<\/label><select><option value="">---<\/option><option value="#FFF">White<\/option><option value="#000">Black<\/option><option value="#F00">Red<\/option><option value="#0F0">Green<\/option><option value="#00F">Blue<\/option><option value="#FF0">Yellow<\/option><option value="#F0F">Magenta<\/option><option value="#0FF">Cyan<\/option><\/select><span class="vjs-text-opacity vjs-opacity"><select><option value="">---<\/option><option value="1">Opaque<\/option><option value="0.5">Semi-Opaque<\/option><\/select><\/span><\/div><div class="vjs-bg-color vjs-tracksetting"><label class="vjs-label">Background<\/label><select><option value="">---<\/option><option value="#FFF">White<\/option><option value="#000">Black<\/option><option value="#F00">Red<\/option><option value="#0F0">Green<\/option><option value="#00F">Blue<\/option><option value="#FF0">Yellow<\/option><option value="#F0F">Magenta<\/option><option value="#0FF">Cyan<\/option><\/select><span class="vjs-bg-opacity vjs-opacity"><select><option value="">---<\/option><option value="1">Opaque<\/option><option value="0.5">Semi-Transparent<\/option><option value="0">Transparent<\/option><\/select><\/span><\/div><div class="window-color vjs-tracksetting"><label class="vjs-label">Window<\/label><select><option value="">---<\/option><option value="#FFF">White<\/option><option value="#000">Black<\/option><option value="#F00">Red<\/option><option value="#0F0">Green<\/option><option value="#00F">Blue<\/option><option value="#FF0">Yellow<\/option><option value="#F0F">Magenta<\/option><option value="#0FF">Cyan<\/option><\/select><span class="vjs-window-opacity vjs-opacity"><select><option value="">---<\/option><option value="1">Opaque<\/option><option value="0.5">Semi-Transparent<\/option><option value="0">Transparent<\/option><\/select><\/span><\/div><\/div><div class="vjs-tracksettings-font"><div class="vjs-font-percent vjs-tracksetting"><label class="vjs-label">Font Size<\/label><select><option value="0.50">50%<\/option><option value="0.75">75%<\/option><option value="1.00" selected>100%<\/option><option value="1.25">125%<\/option><option value="1.50">150%<\/option><option value="1.75">175%<\/option><option value="2.00">200%<\/option><option value="3.00">300%<\/option><option value="4.00">400%<\/option><\/select><\/div><div class="vjs-edge-style vjs-tracksetting"><label class="vjs-label">Text Edge Style<\/label><select><option value="none">None<\/option><option value="raised">Raised<\/option><option value="depressed">Depressed<\/option><option value="uniform">Uniform<\/option><option value="dropshadow">Dropshadow<\/option><\/select><\/div><div class="vjs-font-family vjs-tracksetting"><label class="vjs-label">Font Family<\/label><select><option value="">Default<\/option><option value="monospaceSerif">Monospace Serif<\/option><option value="proportionalSerif">Proportional Serif<\/option><option value="monospaceSansSerif">Monospace Sans-Serif<\/option><option value="proportionalSansSerif">Proportional Sans-Serif<\/option><option value="casual">Casual<\/option><option value="script">Script<\/option><option value="small-caps">Small Caps<\/option><\/select><\/div><\/div><\/div><div class="vjs-tracksettings-controls"><button class="vjs-default-button">Defaults<\/button><button class="vjs-done-button">Done<\/button><\/div>'})};t.Lc=function(){var n,t,r,u,f,e,o,s,h,i;n=this.m();f=a(n.querySelector(".vjs-edge-style select"));e=a(n.querySelector(".vjs-font-family select"));o=a(n.querySelector(".vjs-fg-color > select"));r=a(n.querySelector(".vjs-text-opacity > select"));s=a(n.querySelector(".vjs-bg-color > select"));t=a(n.querySelector(".vjs-bg-opacity > select"));h=a(n.querySelector(".window-color > select"));u=a(n.querySelector(".vjs-window-opacity > select"));n=window.parseFloat(a(n.querySelector(".vjs-font-percent > select")));t={backgroundOpacity:t,textOpacity:r,windowOpacity:u,edgeStyle:f,fontFamily:e,color:o,backgroundColor:s,windowColor:h,fontPercent:n};for(i in t)(""===t[i]||"none"===t[i]||"fontPercent"===i&&1===t[i])&&delete t[i];return t};t.Se=function(n){var t=this.m();v(t.querySelector(".vjs-edge-style select"),n.Na);v(t.querySelector(".vjs-font-family select"),n.fontFamily);v(t.querySelector(".vjs-fg-color > select"),n.color);v(t.querySelector(".vjs-text-opacity > select"),n.od);v(t.querySelector(".vjs-bg-color > select"),n.backgroundColor);v(t.querySelector(".vjs-bg-opacity > select"),n.zc);v(t.querySelector(".window-color > select"),n.gc);v(t.querySelector(".vjs-window-opacity > select"),n.vd);(n=n.Rb)&&(n=n.toFixed(2));v(t.querySelector(".vjs-font-percent > select"),n)};t.Je=function(){var n;try{n=JSON.parse(window.localStorage.getItem("vjs-text-track-settings"))}catch(t){}n&&this.Se(n)};t.Ke=function(){var t;if(this.d.options().persistTextTrackSettings){t=this.Lc();try{n.kb(t)?window.localStorage.removeItem("vjs-text-track-settings"):window.localStorage.setItem("vjs-text-track-settings",JSON.stringify(t))}catch(i){}}};t.C=function(){var n=this.d.ea("textTrackDisplay");n&&n.C()};"undefined"!=typeof JSON&&"function"==typeof window.JSON.parse?n.JSON=window.JSON:(n.JSON={},ot=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n.JSON.parse=function(a,c){function d(n,t){var r,u,i=n[t];if(i&&"object"==typeof i)for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(u=d(i,r),u!==e?i[r]=u:delete i[r]);return c.call(n,t,i)}var e;if(a=String(a),ot.lastIndex=0,ot.test(a)&&(a=a.replace(ot,function(n){return"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return e=eval("("+a+")"),"function"==typeof c?d({"":e},""):e;throw new SyntaxError("JSON.parse(): invalid or malformed JSON data");});n.yc=function(){var r,i,t,o,u;if(r=document.getElementsByTagName("video"),i=document.getElementsByTagName("audio"),u=[],r&&0<r.length)for(t=0,o=r.length;t<o;t++)u.push(r[t]);if(i&&0<i.length)for(t=0,o=i.length;t<o;t++)u.push(i[t]);if(u&&0<u.length)for(t=0,o=u.length;t<o;t++)if((i=u[t])&&i.getAttribute)i.player===e&&(r=i.getAttribute("data-setup"),r!==f&&b(i));else{n.Kb();break}else n.ud||n.Kb()};n.Kb=function(){setTimeout(n.yc,1)};"complete"===document.readyState?n.ud=u:n.N(window,"load",function(){n.ud=u});n.Kb();n.Ge=function(t,i){n.Player.prototype[t]=i};tr=this;r("videojs",n);r("_V_",n);r("videojs.options",n.options);r("videojs.players",n.Da);r("videojs.TOUCH_ENABLED",n.Gb);r("videojs.cache",n.va);r("videojs.Component",n.a);n.a.prototype.player=n.a.prototype.k;n.a.prototype.options=n.a.prototype.options;n.a.prototype.init=n.a.prototype.l;n.a.prototype.dispose=n.a.prototype.dispose;n.a.prototype.createEl=n.a.prototype.f;n.a.prototype.contentEl=n.a.prototype.xa;n.a.prototype.el=n.a.prototype.m;n.a.prototype.addChild=n.a.prototype.ba;n.a.prototype.getChild=n.a.prototype.ea;n.a.prototype.getChildById=n.a.prototype.be;n.a.prototype.children=n.a.prototype.children;n.a.prototype.initChildren=n.a.prototype.Oc;n.a.prototype.removeChild=n.a.prototype.removeChild;n.a.prototype.on=n.a.prototype.b;n.a.prototype.off=n.a.prototype.n;n.a.prototype.one=n.a.prototype.N;n.a.prototype.trigger=n.a.prototype.o;n.a.prototype.triggerReady=n.a.prototype.Xa;n.a.prototype.show=n.a.prototype.show;n.a.prototype.hide=n.a.prototype.Y;n.a.prototype.width=n.a.prototype.width;n.a.prototype.height=n.a.prototype.height;n.a.prototype.dimensions=n.a.prototype.Ud;n.a.prototype.ready=n.a.prototype.I;n.a.prototype.addClass=n.a.prototype.p;n.a.prototype.removeClass=n.a.prototype.r;n.a.prototype.hasClass=n.a.prototype.Qa;n.a.prototype.buildCSSClass=n.a.prototype.V;n.a.prototype.localize=n.a.prototype.v;n.a.prototype.setInterval=n.a.prototype.setInterval;n.a.prototype.setTimeout=n.a.prototype.setTimeout;r("videojs.EventEmitter",n.z);n.z.prototype.on=n.z.prototype.b;n.z.prototype.addEventListener=n.z.prototype.addEventListener;n.z.prototype.off=n.z.prototype.n;n.z.prototype.removeEventListener=n.z.prototype.removeEventListener;n.z.prototype.one=n.z.prototype.N;n.z.prototype.trigger=n.z.prototype.o;n.z.prototype.dispatchEvent=n.z.prototype.dispatchEvent;n.Player.prototype.ended=n.Player.prototype.ended;n.Player.prototype.enterFullWindow=n.Player.prototype.Jc;n.Player.prototype.exitFullWindow=n.Player.prototype.Ob;n.Player.prototype.preload=n.Player.prototype.Sa;n.Player.prototype.remainingTime=n.Player.prototype.remainingTime;n.Player.prototype.supportsFullScreen=n.Player.prototype.Ua;n.Player.prototype.currentType=n.Player.prototype.Rd;n.Player.prototype.requestFullScreen=n.Player.prototype.requestFullScreen;n.Player.prototype.requestFullscreen=n.Player.prototype.requestFullscreen;n.Player.prototype.cancelFullScreen=n.Player.prototype.cancelFullScreen;n.Player.prototype.exitFullscreen=n.Player.prototype.exitFullscreen;n.Player.prototype.isFullScreen=n.Player.prototype.isFullScreen;n.Player.prototype.isFullscreen=n.Player.prototype.isFullscreen;n.Player.prototype.textTracks=n.Player.prototype.textTracks;n.Player.prototype.remoteTextTracks=n.Player.prototype.Z;n.Player.prototype.addTextTrack=n.Player.prototype.addTextTrack;n.Player.prototype.addRemoteTextTrack=n.Player.prototype.ia;n.Player.prototype.removeRemoteTextTrack=n.Player.prototype.Ea;n.Player.prototype.seekable=n.Player.prototype.seekable;r("videojs.MediaLoader",n.Gd);r("videojs.TextTrackDisplay",n.ta);r("videojs.ControlBar",n.wb);r("videojs.Button",n.w);r("videojs.PlayToggle",n.oc);r("videojs.FullscreenToggle",n.$a);r("videojs.BigPlayButton",n.ub);r("videojs.LoadingSpinner",n.mc);r("videojs.CurrentTimeDisplay",n.xb);r("videojs.DurationDisplay",n.yb);r("videojs.TimeDivider",n.uc);r("videojs.RemainingTimeDisplay",n.Fb);r("videojs.LiveDisplay",n.lc);r("videojs.ErrorDisplay",n.zb);r("videojs.Slider",n.U);r("videojs.ProgressControl",n.Eb);r("videojs.SeekBar",n.rc);r("videojs.LoadProgressBar",n.Bb);r("videojs.PlayProgressBar",n.nc);r("videojs.SeekHandle",n.ab);r("videojs.VolumeControl",n.Ib);r("videojs.VolumeBar",n.Hb);r("videojs.VolumeLevel",n.vc);r("videojs.VolumeMenuButton",n.Ia);r("videojs.VolumeHandle",n.Jb);r("videojs.MuteToggle",n.sa);r("videojs.PosterImage",n.qc);r("videojs.Menu",n.ra);r("videojs.MenuItem",n.M);r("videojs.MenuButton",n.O);r("videojs.PlaybackRateMenuButton",n.pc);r("videojs.ChaptersTrackMenuItem",n.Za);r("videojs.TextTrackButton",n.Q);r("videojs.TextTrackMenuItem",n.aa);r("videojs.OffTextTrackMenuItem",n.Cb);r("videojs.CaptionSettingsMenuItem",n.vb);n.O.prototype.createItems=n.O.prototype.La;n.Q.prototype.createItems=n.Q.prototype.La;n.Ya.prototype.createItems=n.Ya.prototype.La;r("videojs.SubtitlesButton",n.bb);r("videojs.CaptionsButton",n.pa);r("videojs.ChaptersButton",n.Ya);r("videojs.MediaTechController",n.j);n.j.withSourceHandlers=n.j.hc;n.j.prototype.featuresVolumeControl=n.j.prototype.vf;n.j.prototype.featuresFullscreenResize=n.j.prototype.rf;n.j.prototype.featuresPlaybackRate=n.j.prototype.sf;n.j.prototype.featuresProgressEvents=n.j.prototype.tf;n.j.prototype.featuresTimeupdateEvents=n.j.prototype.uf;n.j.prototype.setPoster=n.j.prototype.fd;n.j.prototype.textTracks=n.j.prototype.textTracks;n.j.prototype.remoteTextTracks=n.j.prototype.Z;n.j.prototype.addTextTrack=n.j.prototype.addTextTrack;n.j.prototype.addRemoteTextTrack=n.j.prototype.ia;n.j.prototype.removeRemoteTextTrack=n.j.prototype.Ea;r("videojs.Html5",n.e);n.e.Events=n.e.Ab;n.e.isSupported=n.e.isSupported;n.e.canPlaySource=n.e.Ac;n.e.patchCanPlayType=n.e.Xc;n.e.unpatchCanPlayType=n.e.cf;n.e.prototype.setCurrentTime=n.e.prototype.cc;n.e.prototype.setVolume=n.e.prototype.Te;n.e.prototype.setMuted=n.e.prototype.Pe;n.e.prototype.setPreload=n.e.prototype.Re;n.e.prototype.setAutoplay=n.e.prototype.Me;n.e.prototype.setLoop=n.e.prototype.Oe;n.e.prototype.enterFullScreen=n.e.prototype.Ic;n.e.prototype.exitFullScreen=n.e.prototype.Yd;n.e.prototype.playbackRate=n.e.prototype.playbackRate;n.e.prototype.setPlaybackRate=n.e.prototype.Qe;n.e.registerSourceHandler=n.e.Ta;n.e.selectSourceHandler=n.e.rb;n.e.prototype.setSource=n.e.prototype.na;n.e.prototype.disposeSourceHandler=n.e.prototype.ja;n.e.prototype.textTracks=n.e.prototype.textTracks;n.e.prototype.remoteTextTracks=n.e.prototype.Z;n.e.prototype.addTextTrack=n.e.prototype.addTextTrack;n.e.prototype.addRemoteTextTrack=n.e.prototype.ia;n.e.prototype.removeRemoteTextTrack=n.e.prototype.Ea;r("videojs.Flash",n.g);n.g.isSupported=n.g.isSupported;n.g.canPlaySource=n.g.Ac;n.g.onReady=n.g.onReady;n.g.embed=n.g.Hc;n.g.version=n.g.version;n.g.prototype.setSource=n.g.prototype.na;n.g.registerSourceHandler=n.g.Ta;n.g.selectSourceHandler=n.g.rb;n.g.prototype.setSource=n.g.prototype.na;n.g.prototype.disposeSourceHandler=n.g.prototype.ja;r("videojs.TextTrack",n.t);r("videojs.TextTrackList",n.F);r("videojs.TextTrackCueList",n.W);r("videojs.TextTrackSettings",n.tc);n.t.prototype.id=n.t.prototype.id;n.t.prototype.label=n.t.prototype.label;n.t.prototype.kind=n.t.prototype.Xb;n.t.prototype.mode=n.t.prototype.mode;n.t.prototype.cues=n.t.prototype.Ec;n.t.prototype.activeCues=n.t.prototype.of;n.t.prototype.addCue=n.t.prototype.wc;n.t.prototype.removeCue=n.t.prototype.bd;n.F.prototype.getTrackById=n.F.prototype.ee;n.W.prototype.getCueById=n.F.prototype.ce;r("videojs.CaptionsTrack",n.hf);r("videojs.SubtitlesTrack",n.nf);r("videojs.ChaptersTrack",n.jf);r("videojs.autoSetup",n.yc);r("videojs.plugin",n.Ge);r("videojs.createTimeRange",n.ya);r("videojs.util",n.$);n.$.mergeOptions=n.$.Ba;n.addLanguage=n.Kd})();!function(n){var t=n.vttjs={},i=t.VTTCue,r=t.VTTRegion,u=n.VTTCue,f=n.VTTRegion;t.shim=function(){t.VTTCue=i;t.VTTRegion=r};t.restore=function(){t.VTTCue=u;t.VTTRegion=f}}(this),function(n,t){function f(n){if("string"!=typeof n)return!1;var t=o[n.toLowerCase()];return t?n.toLowerCase():!1}function r(n){if("string"!=typeof n)return!1;var t=s[n.toLowerCase()];return t?n.toLowerCase():!1}function i(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)n[r]=i[r]}return n}function u(n,t,u){var o=this,h=/MSIE\s8\.0/.test(navigator.userAgent),s={};h?o=document.createElement("custom"):s.enumerable=!0;o.hasBeenReset=!1;var c="",l=!1,a=n,v=t,y=u,p=null,w="",b=!0,k="auto",d="start",g=50,nt="middle",tt=50,it="middle";return Object.defineProperty(o,"id",i({},s,{get:function(){return c},set:function(n){c=""+n}})),Object.defineProperty(o,"pauseOnExit",i({},s,{get:function(){return l},set:function(n){l=!!n}})),Object.defineProperty(o,"startTime",i({},s,{get:function(){return a},set:function(n){if("number"!=typeof n)throw new TypeError("Start time must be set to a number.");a=n;this.hasBeenReset=!0}})),Object.defineProperty(o,"endTime",i({},s,{get:function(){return v},set:function(n){if("number"!=typeof n)throw new TypeError("End time must be set to a number.");v=n;this.hasBeenReset=!0}})),Object.defineProperty(o,"text",i({},s,{get:function(){return y},set:function(n){y=""+n;this.hasBeenReset=!0}})),Object.defineProperty(o,"region",i({},s,{get:function(){return p},set:function(n){p=n;this.hasBeenReset=!0}})),Object.defineProperty(o,"vertical",i({},s,{get:function(){return w},set:function(n){var t=f(n);if(t===!1)throw new SyntaxError("An invalid or illegal string was specified.");w=t;this.hasBeenReset=!0}})),Object.defineProperty(o,"snapToLines",i({},s,{get:function(){return b},set:function(n){b=!!n;this.hasBeenReset=!0}})),Object.defineProperty(o,"line",i({},s,{get:function(){return k},set:function(n){if("number"!=typeof n&&n!==e)throw new SyntaxError("An invalid number or illegal string was specified.");k=n;this.hasBeenReset=!0}})),Object.defineProperty(o,"lineAlign",i({},s,{get:function(){return d},set:function(n){var t=r(n);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");d=t;this.hasBeenReset=!0}})),Object.defineProperty(o,"position",i({},s,{get:function(){return g},set:function(n){if(0>n||n>100)throw new Error("Position must be between 0 and 100.");g=n;this.hasBeenReset=!0}})),Object.defineProperty(o,"positionAlign",i({},s,{get:function(){return nt},set:function(n){var t=r(n);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");nt=t;this.hasBeenReset=!0}})),Object.defineProperty(o,"size",i({},s,{get:function(){return tt},set:function(n){if(0>n||n>100)throw new Error("Size must be between 0 and 100.");tt=n;this.hasBeenReset=!0}})),Object.defineProperty(o,"align",i({},s,{get:function(){return it},set:function(n){var t=r(n);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");it=t;this.hasBeenReset=!0}})),o.displayState=void 0,h?o:void 0}var e="auto",o={"":!0,lr:!0,rl:!0},s={start:!0,middle:!0,end:!0,left:!0,right:!0};u.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)};n.VTTCue=n.VTTCue||u;t.VTTCue=u}(this,this.vttjs||{}),function(n,t){function u(n){if("string"!=typeof n)return!1;var t=f[n.toLowerCase()];return t?n.toLowerCase():!1}function i(n){return"number"==typeof n&&n>=0&&100>=n}function r(){var n=100,t=3,r=0,f=100,e=0,o=100,s="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return n},set:function(t){if(!i(t))throw new Error("Width must be between 0 and 100.");n=t}},lines:{enumerable:!0,get:function(){return t},set:function(n){if("number"!=typeof n)throw new TypeError("Lines must be set to a number.");t=n}},regionAnchorY:{enumerable:!0,get:function(){return f},set:function(n){if(!i(n))throw new Error("RegionAnchorX must be between 0 and 100.");f=n}},regionAnchorX:{enumerable:!0,get:function(){return r},set:function(n){if(!i(n))throw new Error("RegionAnchorY must be between 0 and 100.");r=n}},viewportAnchorY:{enumerable:!0,get:function(){return o},set:function(n){if(!i(n))throw new Error("ViewportAnchorY must be between 0 and 100.");o=n}},viewportAnchorX:{enumerable:!0,get:function(){return e},set:function(n){if(!i(n))throw new Error("ViewportAnchorX must be between 0 and 100.");e=n}},scroll:{enumerable:!0,get:function(){return s},set:function(n){var t=u(n);if(t===!1)throw new SyntaxError("An invalid or illegal string was specified.");s=t}}})}var f={"":!0,up:!0};n.VTTRegion=n.VTTRegion||r;t.VTTRegion=r}(this,this.vttjs||{}),function(n){function i(n,t){this.name="ParsingError";this.code=n.code;this.message=t||n.message}function h(n){function i(n,t,i,r){return 3600*(0|n)+60*(0|t)+(0|i)+(0|r)/1e3}var t=n.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return t?t[3]?i(t[1],t[2],t[3].replace(":",""),t[4]):t[1]>59?i(t[1],t[2],0,t[4]):i(0,t[1],t[2],t[4]):null}function u(){this.values=s(null)}function o(n,t,i,r){var f=r?n.split(r):[n],e,u,o,s;for(e in f)"string"==typeof f[e]&&(u=f[e].split(i),2===u.length&&(o=u[0],s=u[1],t(o,s)))}function v(n,t,r){function e(){var t=h(n);if(null===t)throw new i(i.Errors.BadTimeStamp,"Malformed timestamp: "+s);return n=n.replace(/^[^\sa-zA-Z-]+/,""),t}function c(n,t){var i=new u;o(n,function(n,t){var f,u,e;switch(n){case"region":for(f=r.length-1;f>=0;f--)if(r[f].id===t){i.set(n,r[f].region);break}break;case"vertical":i.alt(n,t,["rl","lr"]);break;case"line":u=t.split(",");e=u[0];i.integer(n,e);i.percent(n,e)?i.set("snapToLines",!1):null;i.alt(n,e,["auto"]);2===u.length&&i.alt("lineAlign",u[1],["start","middle","end"]);break;case"position":u=t.split(",");i.percent(n,u[0]);2===u.length&&i.alt("positionAlign",u[1],["start","middle","end"]);break;case"size":i.percent(n,t);break;case"align":i.alt(n,t,["start","middle","end","left","right"])}},/:/,/\s/);t.region=i.get("region",null);t.vertical=i.get("vertical","");t.line=i.get("line","auto");t.lineAlign=i.get("lineAlign","start");t.snapToLines=i.get("snapToLines",!0);t.size=i.get("size",100);t.align=i.get("align","middle");t.position=i.get("position",{start:0,left:0,middle:50,end:100,right:100},t.align);t.positionAlign=i.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},t.align)}function f(){n=n.replace(/^\s+/,"")}var s=n;if(f(),t.startTime=e(),f(),"-->"!==n.substr(0,3))throw new i(i.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+s);n=n.substr(3);f();t.endTime=e();f();c(n,t)}function c(n,t){function c(){function i(n){return t=t.substr(n.length),n}if(!t)return null;var n=t.match(/^([^<]*)(<[^>]+>?)?/);return i(n[1]?n[1]:n[2])}function a(n){return b[n]}function v(n){for(;i=n.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)n=n.replace(i[0],a);return n}function y(n,t){return!l[t.localName]||l[t.localName]===n.localName}function p(t,i){var u=k[t],r,f;return u?(r=n.document.createElement(u),r.localName=u,f=d[t],f&&i&&(r[f]=i.trim()),r):null}for(var u,o,i,r,s=n.document.createElement("div"),f=s,e=[];null!==(r=c());)if("<"!==r[0])f.appendChild(n.document.createTextNode(v(r)));else{if("/"===r[1]){e.length&&e[e.length-1]===r.substr(2).replace(">","")&&(e.pop(),f=f.parentNode);continue}if(o=h(r.substr(1,r.length-2)),o){u=n.document.createProcessingInstruction("timestamp",o);f.appendChild(u);continue}if(i=r.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/),!i)continue;if(u=p(i[1],i[3]),!u)continue;if(!y(f,u))continue;i[2]&&(u.className=i[2].substr(1).replace("."," "));e.push(i[1]);f.appendChild(u);f=u}return s}function y(n){function f(n,t){for(var i=t.childNodes.length-1;i>=0;i--)n.push(t.childNodes[i])}function r(n){var t,i,u;return!n||!n.length?null:(t=n.pop(),i=t.textContent||t.innerText,i)?(u=i.match(/^.*(\n|\r)/),u?(n.length=0,u[0]):i):"ruby"===t.tagName?r(n):t.childNodes?(f(n,t),r(n)):void 0}var e,o=[],u="",t,i;if(!n||!n.childNodes)return"ltr";for(f(o,n);u=r(o);)for(t=0;t<u.length;t++)for(e=u.charCodeAt(t),i=0;i<a.length;i++)if(a[i]===e)return"rtl";return"ltr"}function p(n){if("number"==typeof n.line&&(n.snapToLines||n.line>=0&&n.line<=100))return n.line;if(!n.track||!n.track.textTrackList||!n.track.textTrackList.mediaElement)return-1;for(var r=n.track,i=r.textTrackList,u=0,t=0;t<i.length&&i[t]!==r;t++)"showing"===i[t].mode&&u++;return-1*++u}function f(){}function e(n,t,i){var e=/MSIE\s8\.0/.test(navigator.userAgent),o="rgba(255, 255, 255, 1)",s="rgba(0, 0, 0, 0.8)",r,u;e&&(o="rgb(255, 255, 255)",s="rgb(0, 0, 0)");f.call(this);this.cue=t;this.cueDiv=c(n,t.text);r={color:o,backgroundColor:s,position:"relative",left:0,right:0,top:0,bottom:0,display:"inline"};e||(r.writingMode=""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",r.unicodeBidi="plaintext");this.applyStyles(r,this.cueDiv);this.div=n.document.createElement("div");r={textAlign:"middle"===t.align?"center":t.align,font:i.font,whiteSpace:"pre-line",position:"absolute"};e||(r.direction=y(this.cueDiv),r.writingMode=""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl".stylesunicodeBidi="plaintext");this.applyStyles(r);this.div.appendChild(this.cueDiv);u=0;switch(t.positionAlign){case"start":u=t.position;break;case"middle":u=t.position-t.size/2;break;case"end":u=t.position-t.size}this.applyStyles(""===t.vertical?{left:this.formatStyle(u,"%"),width:this.formatStyle(t.size,"%")}:{top:this.formatStyle(u,"%"),height:this.formatStyle(t.size,"%")});this.move=function(n){this.applyStyles({top:this.formatStyle(n.top,"px"),bottom:this.formatStyle(n.bottom,"px"),left:this.formatStyle(n.left,"px"),right:this.formatStyle(n.right,"px"),height:this.formatStyle(n.height,"px"),width:this.formatStyle(n.width,"px")})}}function t(n){var i,r,f,u,e=/MSIE\s8\.0/.test(navigator.userAgent),t;n.div&&(r=n.div.offsetHeight,f=n.div.offsetWidth,u=n.div.offsetTop,t=(t=n.div.childNodes)&&(t=t[0])&&t.getClientRects&&t.getClientRects(),n=n.div.getBoundingClientRect(),i=t?Math.max(t[0]&&t[0].height||0,n.height/t.length):0);this.left=n.left;this.right=n.right;this.top=n.top||u;this.height=n.height||r;this.bottom=n.bottom||u+(n.height||r);this.width=n.width||f;this.lineHeight=void 0!==i?i:n.lineHeight;e&&!this.lineHeight&&(this.lineHeight=13)}function w(n,i,r,u){function w(n,i){for(var e,o,s=new t(n),h=1,f=0;f<i.length;f++){for(;n.overlapsOppositeAxis(r,i[f])||n.within(r)&&n.overlapsAny(u);)n.move(i[f]);if(n.within(r))return n;e=n.intersectPercentage(r);h>e&&(o=new t(n),h=e);n=new t(s)}return o||s}var h=new t(i),o=i.cue,e=p(o),f=[],c,a,y;if(o.snapToLines){switch(o.vertical){case"":f=["+y","-y"];c="height";break;case"rl":f=["+x","-x"];c="width";break;case"lr":f=["-x","+x"];c="width"}var l=h.lineHeight,s=l*Math.round(e),v=r[c]+l,b=f[0];Math.abs(s)>v&&(s=0>s?-1:1,s*=Math.ceil(v/l)*l);0>e&&(s+=""===o.vertical?r.height:r.width,f=f.reverse());h.move(b,s)}else{a=h.lineHeight/r.height*100;switch(o.lineAlign){case"middle":e-=a/2;break;case"end":e-=a}switch(o.vertical){case"":i.applyStyles({top:i.formatStyle(e,"%")});break;case"rl":i.applyStyles({left:i.formatStyle(e,"%")});break;case"lr":i.applyStyles({right:i.formatStyle(e,"%")})}f=["+y","-x","+x","-y"];h=new t(i)}y=w(h,f);i.move(y.toCSSCompatValues(r))}function r(){}var s=Object.create||function(){function n(){}return function(t){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return n.prototype=t,new n}}();i.prototype=s(Error.prototype);i.prototype.constructor=i;i.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}};u.prototype={set:function(n,t){this.get(n)||""===t||(this.values[n]=t)},get:function(n,t,i){return i?this.has(n)?this.values[n]:t[i]:this.has(n)?this.values[n]:t},has:function(n){return n in this.values},alt:function(n,t,i){for(var r=0;r<i.length;++r)if(t===i[r]){this.set(n,t);break}},integer:function(n,t){/^-?\d+$/.test(t)&&this.set(n,parseInt(t,10))},percent:function(n,t){var i;return(i=t.match(/^([\d]{1,3})(\.[\d]*)?%$/))&&(t=parseFloat(t),t>=0&&100>=t)?(this.set(n,t),!0):!1}};var b={"&amp;":"&","&lt;":"<","&gt;":">","&lrm;":"‎","&rlm;":"‏","&nbsp;":" "},k={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},d={v:"title",lang:"lang"},l={rt:"ruby"},a=[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];f.prototype.applyStyles=function(n,t){t=t||this.div;for(var i in n)n.hasOwnProperty(i)&&(t.style[i]=n[i])};f.prototype.formatStyle=function(n,t){return 0===n?0:n+t};e.prototype=s(f.prototype);e.prototype.constructor=e;t.prototype.move=function(n,t){switch(t=void 0!==t?t:this.lineHeight,n){case"+x":this.left+=t;this.right+=t;break;case"-x":this.left-=t;this.right-=t;break;case"+y":this.top+=t;this.bottom+=t;break;case"-y":this.top-=t;this.bottom-=t}};t.prototype.overlaps=function(n){return this.left<n.right&&this.right>n.left&&this.top<n.bottom&&this.bottom>n.top};t.prototype.overlapsAny=function(n){for(var t=0;t<n.length;t++)if(this.overlaps(n[t]))return!0;return!1};t.prototype.within=function(n){return this.top>=n.top&&this.bottom<=n.bottom&&this.left>=n.left&&this.right<=n.right};t.prototype.overlapsOppositeAxis=function(n,t){switch(t){case"+x":return this.left<n.left;case"-x":return this.right>n.right;case"+y":return this.top<n.top;case"-y":return this.bottom>n.bottom}};t.prototype.intersectPercentage=function(n){var t=Math.max(0,Math.min(this.right,n.right)-Math.max(this.left,n.left)),i=Math.max(0,Math.min(this.bottom,n.bottom)-Math.max(this.top,n.top)),r=t*i;return r/(this.height*this.width)};t.prototype.toCSSCompatValues=function(n){return{top:this.top-n.top,bottom:n.bottom-this.bottom,left:this.left-n.left,right:n.right-this.right,height:this.height,width:this.width}};t.getSimpleBoxPosition=function(n){var t=n.div?n.div.offsetHeight:n.tagName?n.offsetHeight:0,r=n.div?n.div.offsetWidth:n.tagName?n.offsetWidth:0,i=n.div?n.div.offsetTop:n.tagName?n.offsetTop:0;return n=n.div?n.div.getBoundingClientRect():n.tagName?n.getBoundingClientRect():n,{left:n.left,right:n.right,top:n.top||i,height:n.height||t,bottom:n.bottom||i+(n.height||t),width:n.width||r}};r.StringDecoder=function(){return{decode:function(n){if(!n)return"";if("string"!=typeof n)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(n))}}};r.convertCueToDOMTree=function(n,t){return n&&t?c(n,t):null};var g=.05,nt="sans-serif",tt="1.5%";r.processCues=function(n,i,r){function h(n){for(var t=0;t<n.length;t++)if(n[t].hasBeenReset||!n[t].displayState)return!0;return!1}var u,f;if(!n||!i||!r)return null;for(;r.firstChild;)r.removeChild(r.firstChild);if(u=n.document.createElement("div"),u.style.position="absolute",u.style.left="0",u.style.right="0",u.style.top="0",u.style.bottom="0",u.style.margin=tt,r.appendChild(u),h(i)){var o=[],s=t.getSimpleBoxPosition(u),c=Math.round(s.height*g*100)/100,l={font:c+"px "+nt};!function(){for(var r,f,h=0;h<i.length;h++)f=i[h],r=new e(n,f,l),u.appendChild(r.div),w(n,r,s,o),f.displayState=r.div,o.push(t.getSimpleBoxPosition(r))}()}else for(f=0;f<i.length;f++)u.appendChild(i[f].displayState)};r.Parser=function(n,t,i){i||(i=t,t={});t||(t={});this.window=n;this.vttjs=t;this.state="INITIAL";this.buffer="";this.decoder=i||new TextDecoder("utf8");this.regionList=[]};r.Parser.prototype={reportOrThrowError:function(n){if(!(n instanceof i))throw n;this.onparsingerror&&this.onparsingerror(n)},parse:function(n){function s(){for(var r,i=t.buffer,n=0;n<i.length&&"\r"!==i[n]&&"\n"!==i[n];)++n;return r=i.substr(0,n),"\r"===i[n]&&++n,"\n"===i[n]&&++n,t.buffer=i.substr(n),r}function l(n){var i=new u,r;(o(n,function(n,t){var f,r;switch(n){case"id":i.set(n,t);break;case"width":i.percent(n,t);break;case"lines":i.integer(n,t);break;case"regionanchor":case"viewportanchor":if(f=t.split(","),2!==f.length)break;if(r=new u,r.percent("x",f[0]),r.percent("y",f[1]),!r.has("x")||!r.has("y"))break;i.set(n+"X",r.get("x"));i.set(n+"Y",r.get("y"));break;case"scroll":i.alt(n,t,["up"])}},/=/,/\s/),i.has("id"))&&(r=new(t.vttjs.VTTRegion||t.window.VTTRegion),r.width=i.get("width",100),r.lines=i.get("lines",3),r.regionAnchorX=i.get("regionanchorX",0),r.regionAnchorY=i.get("regionanchorY",100),r.viewportAnchorX=i.get("viewportanchorX",0),r.viewportAnchorY=i.get("viewportanchorY",100),r.scroll=i.get("scroll",""),t.onregion&&t.onregion(r),t.regionList.push({id:i.get("id"),region:r}))}function a(n){o(n,function(n,t){switch(n){case"Region":l(t)}},/:/)}var t=this,r,e,f,c;n&&(t.buffer+=t.decoder.decode(n,{stream:!0}));try{if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;if(r=s(),e=r.match(/^WEBVTT([ \t].*)?$/),!e||!e[0])throw new i(i.Errors.BadSignature);t.state="HEADER"}for(f=!1;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(f?f=!1:r=s(),t.state){case"HEADER":/:/.test(r)?a(r):r||(t.state="ID");continue;case"NOTE":r||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(r)){t.state="NOTE";break}if(!r)continue;if(t.cue=new(t.vttjs.VTTCue||t.window.VTTCue)(0,0,""),t.state="CUE",-1===r.indexOf("-->")){t.cue.id=r;continue}case"CUE":try{v(r,t.cue,t.regionList)}catch(h){t.reportOrThrowError(h);t.cue=null;t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":if(c=-1!==r.indexOf("-->"),!r||c&&(f=!0)){t.oncue&&t.oncue(t.cue);t.cue=null;t.state="ID";continue}t.cue.text&&(t.cue.text+="\n");t.cue.text+=r;continue;case"BADCUE":r||(t.state="ID");continue}}}catch(h){t.reportOrThrowError(h);"CUETEXT"===t.state&&t.cue&&t.oncue&&t.oncue(t.cue);t.cue=null;t.state="INITIAL"===t.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var n=this;try{if(n.buffer+=n.decoder.decode(),(n.cue||"HEADER"===n.state)&&(n.buffer+="\n\n",n.parse()),"INITIAL"===n.state)throw new i(i.Errors.BadSignature);}catch(t){n.reportOrThrowError(t)}return n.onflush&&n.onflush(),this}};n.WebVTT=r}(this,this.vttjs||{})