156 lines
236 KiB
JavaScript
156 lines
236 KiB
JavaScript
/**
|
|
* @license
|
|
* Video.js 5.5.3 <http://videojs.com/>
|
|
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
|
|
* Available under Apache License Version 2.0
|
|
* <https://github.com/videojs/video.js/blob/master/LICENSE>
|
|
*
|
|
* Includes vtt.js <https://github.com/mozilla/vtt.js>
|
|
* Available under Apache License Version 2.0
|
|
* <https://github.com/mozilla/vtt.js/blob/master/LICENSE>
|
|
*/(function(ot){if(typeof exports=="object"&&typeof module!="undefined")module.exports=ot();else if(typeof define=="function"&&define.amd)define([],ot);else{var q;typeof window!="undefined"?q=window:typeof global!="undefined"?q=global:typeof self!="undefined"?q=self:q=this,q.videojs=ot()}})(function(){var ot,q,at;return function t(C,l,p){function a(f,v){if(!l[f]){if(!C[f]){var u=typeof require=="function"&&require;if(!v&&u)return u(f,!0);if(m)return m(f,!0);var i=new Error("Cannot find module '"+f+"'");throw i.code="MODULE_NOT_FOUND",i}var o=l[f]={exports:{}};C[f][0].call(o.exports,function(r){var g=C[f][1][r];return a(g||r)},o,o.exports,t,C,l,p)}return l[f].exports}for(var m=typeof require=="function"&&require,h=0;h<p.length;h++)a(p[h]);return a}({1:[function(t,C,l){(function(p){var a=typeof p!="undefined"?p:typeof window!="undefined"?window:{},m=t("min-document");if(typeof document!="undefined")C.exports=document;else{var h=a["__GLOBAL_DOCUMENT_CACHE@4"];h||(h=a["__GLOBAL_DOCUMENT_CACHE@4"]=m),C.exports=h}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"min-document":3}],2:[function(t,C,l){(function(p){typeof window!="undefined"?C.exports=window:typeof p!="undefined"?C.exports=p:typeof self!="undefined"?C.exports=self:C.exports={}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],3:[function(t,C,l){},{}],4:[function(t,C,l){var p=t("../internal/getNative"),a=p(Date,"now"),m=a||function(){return new Date().getTime()};C.exports=m},{"../internal/getNative":20}],5:[function(t,C,l){var p=t("../lang/isObject"),a=t("../date/now"),m="Expected a function",h=Math.max;function f(v,u,i){var o,r,g,s,d,c,T,_=0,F=!1,e=!0;if(typeof v!="function")throw new TypeError(m);if(u=u<0?0:+u||0,i===!0){var n=!0;e=!1}else p(i)&&(n=!!i.leading,F="maxWait"in i&&h(+i.maxWait||0,u),e="trailing"in i?!!i.trailing:e);function E(){c&&clearTimeout(c),r&&clearTimeout(r),_=0,r=c=T=void 0}function y(x,B){B&&clearTimeout(B),r=c=T=void 0,x&&(_=a(),g=v.apply(d,o),!c&&!r&&(o=d=void 0))}function O(){var x=u-(a()-s);x<=0||x>u?y(T,r):c=setTimeout(O,x)}function b(){y(e,c)}function w(){if(o=arguments,s=a(),d=this,T=e&&(c||!n),F===!1)var x=n&&!c;else{!r&&!n&&(_=s);var B=F-(s-_),D=B<=0||B>F;D?(r&&(r=clearTimeout(r)),_=s,g=v.apply(d,o)):r||(r=setTimeout(b,B))}return D&&c?c=clearTimeout(c):!c&&u!==F&&(c=setTimeout(O,u)),x&&(D=!0,g=v.apply(d,o)),D&&!c&&!r&&(o=d=void 0),g}return w.cancel=E,w}C.exports=f},{"../date/now":4,"../lang/isObject":33}],6:[function(t,C,l){var p="Expected a function",a=Math.max;function m(h,f){if(typeof h!="function")throw new TypeError(p);return f=a(f===void 0?h.length-1:+f||0,0),function(){for(var v=arguments,u=-1,i=a(v.length-f,0),o=Array(i);++u<i;)o[u]=v[f+u];switch(f){case 0:return h.call(this,o);case 1:return h.call(this,v[0],o);case 2:return h.call(this,v[0],v[1],o)}var r=Array(f+1);for(u=-1;++u<f;)r[u]=v[u];return r[f]=o,h.apply(this,r)}}C.exports=m},{}],7:[function(t,C,l){var p=t("./debounce"),a=t("../lang/isObject"),m="Expected a function";function h(f,v,u){var i=!0,o=!0;if(typeof f!="function")throw new TypeError(m);return u===!1?i=!1:a(u)&&(i="leading"in u?!!u.leading:i,o="trailing"in u?!!u.trailing:o),p(f,v,{leading:i,maxWait:+v,trailing:o})}C.exports=h},{"../lang/isObject":33,"./debounce":5}],8:[function(t,C,l){function p(a,m){var h=-1,f=a.length;for(m||(m=Array(f));++h<f;)m[h]=a[h];return m}C.exports=p},{}],9:[function(t,C,l){function p(a,m){for(var h=-1,f=a.length;++h<f&&m(a[h],h,a)!==!1;);return a}C.exports=p},{}],10:[function(t,C,l){function p(a,m,h){h||(h={});for(var f=-1,v=m.length;++f<v;){var u=m[f];h[u]=a[u]}return h}C.exports=p},{}],11:[function(t,C,l){var p=t("./createBaseFor"),a=p();C.exports=a},{"./createBaseFor":18}],12:[function(t,C,l){var p=t("./baseFor"),a=t("../object/keysIn");function m(h,f){return p(h,f,a)}C.exports=m},{"../object/keysIn":39,"./baseFor":11}],13:[function(t,C,l){var p=t("./arrayEach"),a=t("./baseMergeDeep"),m=t("../lang/isArray"),h=t("./isArrayLike"),f=t("../lang/isObject"),v=t("./isObjectLike"),u=t("../lang/isTypedArray"),i=t("../object/keys");function o(r,g,s,d,c){if(!f(r))return r;var T=h(g)&&(m(g)||u(g)),_=T?void 0:i(g);return p(_||g,function(F,e){if(_&&(e=F,F=g[e]),v(F))d||(d=[]),c||(c=[]),a(r,g,e,o,s,d,c);else{var n=r[e],E=s?s(n,F,e,r,g):void 0,y=E===void 0;y&&(E=F),(E!==void 0||T&&!(e in r))&&(y||(E===E?E!==n:n===n))&&(r[e]=E)}}),r}C.exports=o},{"../lang/isArray":30,"../lang/isObject":33,"../lang/isTypedArray":36,"../object/keys":38,"./arrayEach":9,"./baseMergeDeep":14,"./isArrayLike":21,"./isObjectLike":26}],14:[function(t,C,l){var p=t("./arrayCopy"),a=t("../lang/isArguments"),m=t("../lang/isArray"),h=t("./isArrayLike"),f=t("../lang/isPlainObject"),v=t("../lang/isTypedArray"),u=t("../lang/toPlainObject");function i(o,r,g,s,d,c,T){for(var _=c.length,F=r[g];_--;)if(c[_]==F){o[g]=T[_];return}var e=o[g],n=d?d(e,F,g,o,r):void 0,E=n===void 0;E&&(n=F,h(F)&&(m(F)||v(F))?n=m(e)?e:h(e)?p(e):[]:f(F)||a(F)?n=a(e)?u(e):f(e)?e:{}:E=!1),c.push(F),T.push(n),E?o[g]=s(n,F,d,c,T):(n===n?n!==e:e===e)&&(o[g]=n)}C.exports=i},{"../lang/isArguments":29,"../lang/isArray":30,"../lang/isPlainObject":34,"../lang/isTypedArray":36,"../lang/toPlainObject":37,"./arrayCopy":8,"./isArrayLike":21}],15:[function(t,C,l){var p=t("./toObject");function a(m){return function(h){return h==null?void 0:p(h)[m]}}C.exports=a},{"./toObject":28}],16:[function(t,C,l){var p=t("../utility/identity");function a(m,h,f){if(typeof m!="function")return p;if(h===void 0)return m;switch(f){case 1:return function(v){return m.call(h,v)};case 3:return function(v,u,i){return m.call(h,v,u,i)};case 4:return function(v,u,i,o){return m.call(h,v,u,i,o)};case 5:return function(v,u,i,o,r){return m.call(h,v,u,i,o,r)}}return function(){return m.apply(h,arguments)}}C.exports=a},{"../utility/identity":42}],17:[function(t,C,l){var p=t("./bindCallback"),a=t("./isIterateeCall"),m=t("../function/restParam");function h(f){return m(function(v,u){var i=-1,o=v==null?0:u.length,r=o>2?u[o-2]:void 0,g=o>2?u[2]:void 0,s=o>1?u[o-1]:void 0;for(typeof r=="function"?(r=p(r,s,5),o-=2):(r=typeof s=="function"?s:void 0,o-=r?1:0),g&&a(u[0],u[1],g)&&(r=o<3?void 0:r,o=1);++i<o;){var d=u[i];d&&f(v,d,r)}return v})}C.exports=h},{"../function/restParam":6,"./bindCallback":16,"./isIterateeCall":24}],18:[function(t,C,l){var p=t("./toObject");function a(m){return function(h,f,v){for(var u=p(h),i=v(h),o=i.length,r=m?o:-1;m?r--:++r<o;){var g=i[r];if(f(u[g],g,u)===!1)break}return h}}C.exports=a},{"./toObject":28}],19:[function(t,C,l){var p=t("./baseProperty"),a=p("length");C.exports=a},{"./baseProperty":15}],20:[function(t,C,l){var p=t("../lang/isNative");function a(m,h){var f=m==null?void 0:m[h];return p(f)?f:void 0}C.exports=a},{"../lang/isNative":32}],21:[function(t,C,l){var p=t("./getLength"),a=t("./isLength");function m(h){return h!=null&&a(p(h))}C.exports=m},{"./getLength":19,"./isLength":25}],22:[function(t,C,l){var p=function(){try{Object({toString:0}+"")}catch(a){return function(){return!1}}return function(a){return typeof a.toString!="function"&&typeof(a+"")=="string"}}();C.exports=p},{}],23:[function(t,C,l){var p=/^\d+$/,a=9007199254740991;function m(h,f){return h=typeof h=="number"||p.test(h)?+h:-1,f=f==null?a:f,h>-1&&h%1==0&&h<f}C.exports=m},{}],24:[function(t,C,l){var p=t("./isArrayLike"),a=t("./isIndex"),m=t("../lang/isObject");function h(f,v,u){if(!m(u))return!1;var i=typeof v;if(i=="number"?p(u)&&a(v,u.length):i=="string"&&v in u){var o=u[v];return f===f?f===o:o!==o}return!1}C.exports=h},{"../lang/isObject":33,"./isArrayLike":21,"./isIndex":23}],25:[function(t,C,l){var p=9007199254740991;function a(m){return typeof m=="number"&&m>-1&&m%1==0&&m<=p}C.exports=a},{}],26:[function(t,C,l){function p(a){return!!a&&typeof a=="object"}C.exports=p},{}],27:[function(t,C,l){var p=t("../lang/isArguments"),a=t("../lang/isArray"),m=t("./isIndex"),h=t("./isLength"),f=t("../lang/isString"),v=t("../object/keysIn"),u=Object.prototype,i=u.hasOwnProperty;function o(r){for(var g=v(r),s=g.length,d=s&&r.length,c=!!d&&h(d)&&(a(r)||p(r)||f(r)),T=-1,_=[];++T<s;){var F=g[T];(c&&m(F,d)||i.call(r,F))&&_.push(F)}return _}C.exports=o},{"../lang/isArguments":29,"../lang/isArray":30,"../lang/isString":35,"../object/keysIn":39,"./isIndex":23,"./isLength":25}],28:[function(t,C,l){var p=t("../lang/isObject"),a=t("../lang/isString"),m=t("../support");function h(f){if(m.unindexedChars&&a(f)){for(var v=-1,u=f.length,i=Object(f);++v<u;)i[v]=f.charAt(v);return i}return p(f)?f:Object(f)}C.exports=h},{"../lang/isObject":33,"../lang/isString":35,"../support":41}],29:[function(t,C,l){var p=t("../internal/isArrayLike"),a=t("../internal/isObjectLike"),m=Object.prototype,h=m.hasOwnProperty,f=m.propertyIsEnumerable;function v(u){return a(u)&&p(u)&&h.call(u,"callee")&&!f.call(u,"callee")}C.exports=v},{"../internal/isArrayLike":21,"../internal/isObjectLike":26}],30:[function(t,C,l){var p=t("../internal/getNative"),a=t("../internal/isLength"),m=t("../internal/isObjectLike"),h="[object Array]",f=Object.prototype,v=f.toString,u=p(Array,"isArray"),i=u||function(o){return m(o)&&a(o.length)&&v.call(o)==h};C.exports=i},{"../internal/getNative":20,"../internal/isLength":25,"../internal/isObjectLike":26}],31:[function(t,C,l){var p=t("./isObject"),a="[object Function]",m=Object.prototype,h=m.toString;function f(v){return p(v)&&h.call(v)==a}C.exports=f},{"./isObject":33}],32:[function(t,C,l){var p=t("./isFunction"),a=t("../internal/isHostObject"),m=t("../internal/isObjectLike"),h=/^\[object .+?Constructor\]$/,f=Object.prototype,v=Function.prototype.toString,u=f.hasOwnProperty,i=RegExp("^"+v.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function o(r){return r==null?!1:p(r)?i.test(v.call(r)):m(r)&&(a(r)?i:h).test(r)}C.exports=o},{"../internal/isHostObject":22,"../internal/isObjectLike":26,"./isFunction":31}],33:[function(t,C,l){function p(a){var m=typeof a;return!!a&&(m=="object"||m=="function")}C.exports=p},{}],34:[function(t,C,l){var p=t("../internal/baseForIn"),a=t("./isArguments"),m=t("../internal/isHostObject"),h=t("../internal/isObjectLike"),f=t("../support"),v="[object Object]",u=Object.prototype,i=u.hasOwnProperty,o=u.toString;function r(g){var s;if(!(h(g)&&o.call(g)==v&&!m(g)&&!a(g))||!i.call(g,"constructor")&&(s=g.constructor,typeof s=="function"&&!(s instanceof s)))return!1;var d;return f.ownLast?(p(g,function(c,T,_){return d=i.call(_,T),!1}),d!==!1):(p(g,function(c,T){d=T}),d===void 0||i.call(g,d))}C.exports=r},{"../internal/baseForIn":12,"../internal/isHostObject":22,"../internal/isObjectLike":26,"../support":41,"./isArguments":29}],35:[function(t,C,l){var p=t("../internal/isObjectLike"),a="[object String]",m=Object.prototype,h=m.toString;function f(v){return typeof v=="string"||p(v)&&h.call(v)==a}C.exports=f},{"../internal/isObjectLike":26}],36:[function(t,C,l){var p=t("../internal/isLength"),a=t("../internal/isObjectLike"),m="[object Arguments]",h="[object Array]",f="[object Boolean]",v="[object Date]",u="[object Error]",i="[object Function]",o="[object Map]",r="[object Number]",g="[object Object]",s="[object RegExp]",d="[object Set]",c="[object String]",T="[object WeakMap]",_="[object ArrayBuffer]",F="[object Float32Array]",e="[object Float64Array]",n="[object Int8Array]",E="[object Int16Array]",y="[object Int32Array]",O="[object Uint8Array]",b="[object Uint8ClampedArray]",w="[object Uint16Array]",x="[object Uint32Array]",B={};B[F]=B[e]=B[n]=B[E]=B[y]=B[O]=B[b]=B[w]=B[x]=!0,B[m]=B[h]=B[_]=B[f]=B[v]=B[u]=B[i]=B[o]=B[r]=B[g]=B[s]=B[d]=B[c]=B[T]=!1;var D=Object.prototype,S=D.toString;function k(J){return a(J)&&p(J.length)&&!!B[S.call(J)]}C.exports=k},{"../internal/isLength":25,"../internal/isObjectLike":26}],37:[function(t,C,l){var p=t("../internal/baseCopy"),a=t("../object/keysIn");function m(h){return p(h,a(h))}C.exports=m},{"../internal/baseCopy":10,"../object/keysIn":39}],38:[function(t,C,l){var p=t("../internal/getNative"),a=t("../internal/isArrayLike"),m=t("../lang/isObject"),h=t("../internal/shimKeys"),f=t("../support"),v=p(Object,"keys"),u=v?function(i){var o=i==null?void 0:i.constructor;return typeof o=="function"&&o.prototype===i||(typeof i=="function"?f.enumPrototypes:a(i))?h(i):m(i)?v(i):[]}:h;C.exports=u},{"../internal/getNative":20,"../internal/isArrayLike":21,"../internal/shimKeys":27,"../lang/isObject":33,"../support":41}],39:[function(t,C,l){var p=t("../internal/arrayEach"),a=t("../lang/isArguments"),m=t("../lang/isArray"),h=t("../lang/isFunction"),f=t("../internal/isIndex"),v=t("../internal/isLength"),u=t("../lang/isObject"),i=t("../lang/isString"),o=t("../support"),r="[object Array]",g="[object Boolean]",s="[object Date]",d="[object Error]",c="[object Function]",T="[object Number]",_="[object Object]",F="[object RegExp]",e="[object String]",n=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],E=Error.prototype,y=Object.prototype,O=String.prototype,b=y.hasOwnProperty,w=y.toString,x={};x[r]=x[s]=x[T]={constructor:!0,toLocaleString:!0,toString:!0,valueOf:!0},x[g]=x[e]={constructor:!0,toString:!0,valueOf:!0},x[d]=x[c]=x[F]={constructor:!0,toString:!0},x[_]={constructor:!0},p(n,function(D){for(var S in x)if(b.call(x,S)){var k=x[S];k[D]=b.call(k,D)}});function B(D){if(D==null)return[];u(D)||(D=Object(D));var S=D.length;S=S&&v(S)&&(m(D)||a(D)||i(D))&&S||0;for(var k=D.constructor,J=-1,R=h(k)&&k.prototype||y,A=R===D,j=Array(S),P=S>0,I=o.enumErrorProps&&(D===E||D instanceof Error),W=o.enumPrototypes&&h(D);++J<S;)j[J]=J+"";for(var $ in D)!(W&&$=="prototype")&&!(I&&($=="message"||$=="name"))&&!(P&&f($,S))&&!($=="constructor"&&(A||!b.call(D,$)))&&j.push($);if(o.nonEnumShadows&&D!==y){var Y=D===O?e:D===E?d:w.call(D),X=x[Y]||x[_];for(Y==_&&(R=y),S=n.length;S--;){$=n[S];var K=X[$];!(A&&K)&&(K?b.call(D,$):D[$]!==R[$])&&j.push($)}}return j}C.exports=B},{"../internal/arrayEach":9,"../internal/isIndex":23,"../internal/isLength":25,"../lang/isArguments":29,"../lang/isArray":30,"../lang/isFunction":31,"../lang/isObject":33,"../lang/isString":35,"../support":41}],40:[function(t,C,l){var p=t("../internal/baseMerge"),a=t("../internal/createAssigner"),m=a(p);C.exports=m},{"../internal/baseMerge":13,"../internal/createAssigner":17}],41:[function(t,C,l){var p=Array.prototype,a=Error.prototype,m=Object.prototype,h=m.propertyIsEnumerable,f=p.splice,v={};(function(u){var i=function(){this.x=u},o={"0":u,length:u},r=[];i.prototype={valueOf:u,y:u};for(var g in new i)r.push(g);v.enumErrorProps=h.call(a,"message")||h.call(a,"name"),v.enumPrototypes=h.call(i,"prototype"),v.nonEnumShadows=!/valueOf/.test(r),v.ownLast=r[0]!="x",v.spliceObjects=(f.call(o,0,1),!o[0]),v.unindexedChars="x"[0]+Object("x")[0]!="xx"})(1,0),C.exports=v},{}],42:[function(t,C,l){function p(a){return a}C.exports=p},{}],43:[function(t,C,l){"use strict";var p=t("object-keys");C.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var m={},h=Symbol("test");if(typeof h=="string")return!1;var f=42;m[h]=f;for(h in m)return!1;if(p(m).length!==0||typeof Object.keys=="function"&&Object.keys(m).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(m).length!==0)return!1;var v=Object.getOwnPropertySymbols(m);if(v.length!==1||v[0]!==h||!Object.prototype.propertyIsEnumerable.call(m,h))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(m,h);if(u.value!==f||u.enumerable!==!0)return!1}return!0}},{"object-keys":49}],44:[function(t,C,l){"use strict";var p=t("object-keys"),a=t("function-bind"),m=function(i){return typeof i!="undefined"&&i!==null},h=t("./hasSymbols")(),f=Object,v=a.call(Function.call,Array.prototype.push),u=a.call(Function.call,Object.prototype.propertyIsEnumerable);C.exports=function(o,r){if(!m(o))throw new TypeError("target must be an object");var g=f(o),s,d,c,T,_,F,e;for(s=1;s<arguments.length;++s){if(d=f(arguments[s]),T=p(d),h&&Object.getOwnPropertySymbols)for(_=Object.getOwnPropertySymbols(d),c=0;c<_.length;++c)e=_[c],u(d,e)&&v(T,e);for(c=0;c<T.length;++c)e=T[c],F=d[e],u(d,e)&&(g[e]=F)}return g}},{"./hasSymbols":43,"function-bind":48,"object-keys":49}],45:[function(t,C,l){"use strict";var p=t("define-properties"),a=t("./implementation"),m=t("./polyfill"),h=t("./shim");p(a,{implementation:a,getPolyfill:m,shim:h}),C.exports=a},{"./implementation":44,"./polyfill":51,"./shim":52,"define-properties":46}],46:[function(t,C,l){"use strict";var p=t("object-keys"),a=t("foreach"),m=typeof Symbol=="function"&&typeof Symbol()=="symbol",h=Object.prototype.toString,f=function(r){return typeof r=="function"&&h.call(r)==="[object Function]"},v=function(){var r={};try{Object.defineProperty(r,"x",{enumerable:!1,value:r});for(var g in r)return!1;return r.x===r}catch(s){return!1}},u=Object.defineProperty&&v(),i=function(r,g,s,d){g in r&&(!f(d)||!d())||(u?Object.defineProperty(r,g,{configurable:!0,enumerable:!1,value:s,writable:!0}):r[g]=s)},o=function(r,g){var s=arguments.length>2?arguments[2]:{},d=p(g);m&&(d=d.concat(Object.getOwnPropertySymbols(g))),a(d,function(c){i(r,c,g[c],s[c])})};o.supportsDescriptors=!!u,C.exports=o},{foreach:47,"object-keys":49}],47:[function(t,C,l){var p=Object.prototype.hasOwnProperty,a=Object.prototype.toString;C.exports=function(h,f,v){if(a.call(f)!=="[object Function]")throw new TypeError("iterator must be a function");var u=h.length;if(u===+u)for(var i=0;i<u;i++)f.call(v,h[i],i,h);else for(var o in h)p.call(h,o)&&f.call(v,h[o],o,h)}},{}],48:[function(t,C,l){var p="Function.prototype.bind called on incompatible ",a=Array.prototype.slice,m=Object.prototype.toString,h="[object Function]";C.exports=function(v){var u=this;if(typeof u!="function"||m.call(u)!==h)throw new TypeError(p+u);for(var i=a.call(arguments,1),o=function(){if(this instanceof d){var T=u.apply(this,i.concat(a.call(arguments)));return Object(T)===T?T:this}else return u.apply(v,i.concat(a.call(arguments)))},r=Math.max(0,u.length-i.length),g=[],s=0;s<r;s++)g.push("$"+s);var d=Function("binder","return function ("+g.join(",")+"){ return binder.apply(this,arguments); }")(o);if(u.prototype){var c=function(){};c.prototype=u.prototype,d.prototype=new c,c.prototype=null}return d}},{}],49:[function(t,C,l){"use strict";var p=Object.prototype.hasOwnProperty,a=Object.prototype.toString,m=Array.prototype.slice,h=t("./isArguments"),f=!{toString:null}.propertyIsEnumerable("toString"),v=function(){}.propertyIsEnumerable("prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],i=function(d){var c=d.constructor;return c&&c.prototype===d},o={$console:!0,$frame:!0,$frameElement:!0,$frames:!0,$parent:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},r=function(){if(typeof window=="undefined")return!1;for(var d in window)try{if(!o["$"+d]&&p.call(window,d)&&window[d]!==null&&typeof window[d]=="object")try{i(window[d])}catch(c){return!0}}catch(c){return!0}return!1}(),g=function(d){if(typeof window=="undefined"||!r)return i(d);try{return i(d)}catch(c){return!1}},s=function(c){var T=c!==null&&typeof c=="object",_=a.call(c)==="[object Function]",F=h(c),e=T&&a.call(c)==="[object String]",n=[];if(!T&&!_&&!F)throw new TypeError("Object.keys called on a non-object");var E=v&&_;if(e&&c.length>0&&!p.call(c,0))for(var y=0;y<c.length;++y)n.push(String(y));if(F&&c.length>0)for(var O=0;O<c.length;++O)n.push(String(O));else for(var b in c)!(E&&b==="prototype")&&p.call(c,b)&&n.push(String(b));if(f)for(var w=g(c),x=0;x<u.length;++x)!(w&&u[x]==="constructor")&&p.call(c,u[x])&&n.push(u[x]);return n};s.shim=function(){if(Object.keys){var c=function(){return(Object.keys(arguments)||"").length===2}(1,2);if(!c){var T=Object.keys;Object.keys=function(F){return h(F)?T(m.call(F)):T(F)}}}else Object.keys=s;return Object.keys||s},C.exports=s},{"./isArguments":50}],50:[function(t,C,l){"use strict";var p=Object.prototype.toString;C.exports=function(m){var h=p.call(m),f=h==="[object Arguments]";return f||(f=h!=="[object Array]"&&m!==null&&typeof m=="object"&&typeof m.length=="number"&&m.length>=0&&p.call(m.callee)==="[object Function]"),f}},{}],51:[function(t,C,l){"use strict";var p=t("./implementation"),a=function(){if(!Object.assign)return!1;for(var h="abcdefghijklmnopqrst",f=h.split(""),v={},u=0;u<f.length;++u)v[f[u]]=f[u];var i=Object.assign({},v),o="";for(var r in i)o+=r;return h!==o},m=function(){if(!Object.assign||!Object.preventExtensions)return!1;var h=Object.preventExtensions({1:2});try{Object.assign(h,"xy")}catch(f){return h[1]==="y"}};C.exports=function(){return!Object.assign||a()||m()?p:Object.assign}},{"./implementation":44}],52:[function(t,C,l){"use strict";var p=t("define-properties"),a=t("./polyfill");C.exports=function(){var h=a();return p(Object,{assign:h},{assign:function(){return Object.assign!==h}}),h}},{"./polyfill":51,"define-properties":46}],53:[function(t,C,l){C.exports=p;function p(a,m){var h,f=null;try{h=JSON.parse(a,m)}catch(v){f=v}return[f,h]}},{}],54:[function(t,C,l){function p(a){return a.replace(/\n\r?\s*/g,"")}C.exports=function(m){for(var h="",f=0;f<arguments.length;f++)h+=p(m[f])+(arguments[f+1]||"");return h}},{}],55:[function(t,C,l){"use strict";var p=t("global/window"),a=t("once"),m=t("is-function"),h=t("parse-headers"),f=t("xtend");C.exports=o,o.XMLHttpRequest=p.XMLHttpRequest||g,o.XDomainRequest="withCredentials"in new o.XMLHttpRequest?o.XMLHttpRequest:p.XDomainRequest,v(["get","put","post","patch","head","delete"],function(s){o[s==="delete"?"del":s]=function(d,c,T){return c=i(d,c,T),c.method=s.toUpperCase(),r(c)}});function v(s,d){for(var c=0;c<s.length;c++)d(s[c])}function u(s){for(var d in s)if(s.hasOwnProperty(d))return!1;return!0}function i(s,d,c){var T=s;return m(d)?(c=d,typeof s=="string"&&(T={uri:s})):T=f(d,{uri:s}),T.callback=c,T}function o(s,d,c){return d=i(s,d,c),r(d)}function r(s){var d=s.callback;if(typeof d=="undefined")throw new Error("callback argument missing");d=a(d);function c(){n.readyState===4&&e()}function T(){var k=void 0;if(n.response?k=n.response:(n.responseType==="text"||!n.responseType)&&(k=n.responseText||n.responseXML),D)try{k=JSON.parse(k)}catch(J){}return k}var _={body:void 0,headers:{},statusCode:0,method:b,url:O,rawRequest:n};function F(k){clearTimeout(S),k instanceof Error||(k=new Error(""+(k||"Unknown XMLHttpRequest Error"))),k.statusCode=0,d(k,_)}function e(){if(!y){var k;clearTimeout(S),s.useXDR&&n.status===void 0?k=200:k=n.status===1223?204:n.status;var J=_,R=null;k!==0?(J={body:T(),statusCode:k,method:b,headers:{},url:O,rawRequest:n},n.getAllResponseHeaders&&(J.headers=h(n.getAllResponseHeaders()))):R=new Error("Internal XMLHttpRequest Error"),d(R,J,J.body)}}var n=s.xhr||null;n||(s.cors||s.useXDR?n=new o.XDomainRequest:n=new o.XMLHttpRequest);var E,y,O=n.url=s.uri||s.url,b=n.method=s.method||"GET",w=s.body||s.data||null,x=n.headers=s.headers||{},B=!!s.sync,D=!1,S;if("json"in s&&(D=!0,x.accept||x.Accept||(x.Accept="application/json"),b!=="GET"&&b!=="HEAD"&&(x["content-type"]||x["Content-Type"]||(x["Content-Type"]="application/json"),w=JSON.stringify(s.json))),n.onreadystatechange=c,n.onload=e,n.onerror=F,n.onprogress=function(){},n.ontimeout=F,n.open(b,O,!B,s.username,s.password),B||(n.withCredentials=!!s.withCredentials),!B&&s.timeout>0&&(S=setTimeout(function(){y=!0,n.abort("timeout");var k=new Error("XMLHttpRequest timeout");k.code="ETIMEDOUT",F(k)},s.timeout)),n.setRequestHeader)for(E in x)x.hasOwnProperty(E)&&n.setRequestHeader(E,x[E]);else if(s.headers&&!u(s.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in s&&(n.responseType=s.responseType),"beforeSend"in s&&typeof s.beforeSend=="function"&&s.beforeSend(n),n.send(w),n}function g(){}},{"global/window":2,"is-function":56,once:57,"parse-headers":60,xtend:61}],56:[function(t,C,l){C.exports=a;var p=Object.prototype.toString;function a(m){var h=p.call(m);return h==="[object Function]"||typeof m=="function"&&h!=="[object RegExp]"||typeof window!="undefined"&&(m===window.setTimeout||m===window.alert||m===window.confirm||m===window.prompt)}},{}],57:[function(t,C,l){C.exports=p,p.proto=p(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return p(this)},configurable:!0})});function p(a){var m=!1;return function(){if(!m)return m=!0,a.apply(this,arguments)}}},{}],58:[function(t,C,l){var p=t("is-function");C.exports=h;var a=Object.prototype.toString,m=Object.prototype.hasOwnProperty;function h(i,o,r){if(!p(o))throw new TypeError("iterator must be a function");arguments.length<3&&(r=this),a.call(i)==="[object Array]"?f(i,o,r):typeof i=="string"?v(i,o,r):u(i,o,r)}function f(i,o,r){for(var g=0,s=i.length;g<s;g++)m.call(i,g)&&o.call(r,i[g],g,i)}function v(i,o,r){for(var g=0,s=i.length;g<s;g++)o.call(r,i.charAt(g),g,i)}function u(i,o,r){for(var g in i)m.call(i,g)&&o.call(r,i[g],g,i)}},{"is-function":56}],59:[function(t,C,l){l=C.exports=p;function p(a){return a.replace(/^\s*|\s*$/g,"")}l.left=function(a){return a.replace(/^\s*/,"")},l.right=function(a){return a.replace(/\s*$/,"")}},{}],60:[function(t,C,l){var p=t("trim"),a=t("for-each"),m=function(h){return Object.prototype.toString.call(h)==="[object Array]"};C.exports=function(h){if(!h)return{};var f={};return a(p(h).split(`
|
|
`),function(v){var u=v.indexOf(":"),i=p(v.slice(0,u)).toLowerCase(),o=p(v.slice(u+1));typeof f[i]=="undefined"?f[i]=o:m(f[i])?f[i].push(o):f[i]=[f[i],o]}),f}},{"for-each":58,trim:59}],61:[function(t,C,l){C.exports=a;var p=Object.prototype.hasOwnProperty;function a(){for(var m={},h=0;h<arguments.length;h++){var f=arguments[h];for(var v in f)p.call(f,v)&&(m[v]=f[v])}return m}},{}],62:[function(t,C,l){"use strict";l.__esModule=!0;function p(o){return o&&o.__esModule?o:{default:o}}function a(o,r){if(!(o instanceof r))throw new TypeError("Cannot call a class as a function")}function m(o,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);o.prototype=Object.create(r&&r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(o,r):o.__proto__=r)}var h=t("./button.js"),f=p(h),v=t("./component.js"),u=p(v),i=function(o){m(r,o);function r(g,s){a(this,r),o.call(this,g,s)}return r.prototype.buildCSSClass=function(){return"vjs-big-play-button"},r.prototype.handleClick=function(){this.player_.play()},r}(f.default);i.prototype.controlText_="Play Video",u.default.registerComponent("BigPlayButton",i),l.default=i,C.exports=l.default},{"./button.js":63,"./component.js":65}],63:[function(t,C,l){"use strict";l.__esModule=!0;function p(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var E in e)Object.prototype.hasOwnProperty.call(e,E)&&(n[E]=e[E]);return n.default=e,n}function a(e){return e&&e.__esModule?e:{default:e}}function m(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function h(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}var f=t("./component"),v=a(f),u=t("./utils/dom.js"),i=p(u),o=t("./utils/events.js"),r=p(o),g=t("./utils/fn.js"),s=p(g),d=t("global/document"),c=a(d),T=t("object.assign"),_=a(T),F=function(e){h(n,e);function n(E,y){m(this,n),e.call(this,E,y),this.emitTapEvents(),this.on("tap",this.handleClick),this.on("click",this.handleClick),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur)}return n.prototype.createEl=function(){var y=arguments.length<=0||arguments[0]===void 0?"button":arguments[0],O=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],b=arguments.length<=2||arguments[2]===void 0?{}:arguments[2];O=_.default({className:this.buildCSSClass(),tabIndex:0},O),b=_.default({role:"button",type:"button","aria-live":"polite"},b);var w=e.prototype.createEl.call(this,y,O,b);return this.controlTextEl_=i.createEl("span",{className:"vjs-control-text"}),w.appendChild(this.controlTextEl_),this.controlText(this.controlText_),w},n.prototype.controlText=function(y){return y?(this.controlText_=y,this.controlTextEl_.innerHTML=this.localize(this.controlText_),this):this.controlText_||"Need Text"},n.prototype.buildCSSClass=function(){return"vjs-control vjs-button "+e.prototype.buildCSSClass.call(this)},n.prototype.handleClick=function(){},n.prototype.handleFocus=function(){r.on(c.default,"keydown",s.bind(this,this.handleKeyPress))},n.prototype.handleKeyPress=function(y){(y.which===32||y.which===13)&&(y.preventDefault(),this.handleClick(y))},n.prototype.handleBlur=function(){r.off(c.default,"keydown",s.bind(this,this.handleKeyPress))},n}(v.default);v.default.registerComponent("Button",F),l.default=F,C.exports=l.default},{"./component":65,"./utils/dom.js":128,"./utils/events.js":129,"./utils/fn.js":130,"global/document":1,"object.assign":45}],64:[function(t,C,l){"use strict";l.__esModule=!0;function p(o){return o&&o.__esModule?o:{default:o}}function a(o,r){if(!(o instanceof r))throw new TypeError("Cannot call a class as a function")}function m(o,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);o.prototype=Object.create(r&&r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(o,r):o.__proto__=r)}var h=t("./button"),f=p(h),v=t("./component"),u=p(v),i=function(o){m(r,o);function r(g,s){a(this,r),o.call(this,g,s),this.controlText(s&&s.controlText||this.localize("Close"))}return r.prototype.buildCSSClass=function(){return"vjs-close-button "+o.prototype.buildCSSClass.call(this)},r.prototype.handleClick=function(){this.trigger({type:"close",bubbles:!1})},r}(f.default);u.default.registerComponent("CloseButton",i),l.default=i,C.exports=l.default},{"./button":63,"./component":65}],65:[function(t,C,l){"use strict";l.__esModule=!0;function p(b){if(b&&b.__esModule)return b;var w={};if(b!=null)for(var x in b)Object.prototype.hasOwnProperty.call(b,x)&&(w[x]=b[x]);return w.default=b,w}function a(b){return b&&b.__esModule?b:{default:b}}function m(b,w){if(!(b instanceof w))throw new TypeError("Cannot call a class as a function")}var h=t("global/window"),f=a(h),v=t("./utils/dom.js"),u=p(v),i=t("./utils/fn.js"),o=p(i),r=t("./utils/guid.js"),g=p(r),s=t("./utils/events.js"),d=p(s),c=t("./utils/log.js"),T=a(c),_=t("./utils/to-title-case.js"),F=a(_),e=t("object.assign"),n=a(e),E=t("./utils/merge-options.js"),y=a(E),O=function(){function b(w,x,B){if(m(this,b),!w&&this.play?this.player_=w=this:this.player_=w,this.options_=y.default({},this.options_),x=this.options_=y.default(this.options_,x),this.id_=x.id||x.el&&x.el.id,!this.id_){var D=w&&w.id&&w.id()||"no_player";this.id_=D+"_component_"+g.newGUID()}this.name_=x.name||null,x.el?this.el_=x.el:x.createEl!==!1&&(this.el_=this.createEl()),this.children_=[],this.childIndex_={},this.childNameIndex_={},x.initChildren!==!1&&this.initChildren(),this.ready(B),x.reportTouchActivity!==!1&&this.enableTouchActivity()}return b.prototype.dispose=function(){if(this.trigger({type:"dispose",bubbles:!1}),this.children_)for(var x=this.children_.length-1;x>=0;x--)this.children_[x].dispose&&this.children_[x].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.off(),this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),u.removeElData(this.el_),this.el_=null},b.prototype.player=function(){return this.player_},b.prototype.options=function(x){return T.default.warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),x?(this.options_=y.default(this.options_,x),this.options_):this.options_},b.prototype.el=function(){return this.el_},b.prototype.createEl=function(x,B,D){return u.createEl(x,B,D)},b.prototype.localize=function(x){var B=this.player_.language&&this.player_.language(),D=this.player_.languages&&this.player_.languages();if(!B||!D)return x;var S=D[B];if(S&&S[x])return S[x];var k=B.split("-")[0],J=D[k];return J&&J[x]?J[x]:x},b.prototype.contentEl=function(){return this.contentEl_||this.el_},b.prototype.id=function(){return this.id_},b.prototype.name=function(){return this.name_},b.prototype.children=function(){return this.children_},b.prototype.getChildById=function(x){return this.childIndex_[x]},b.prototype.getChild=function(x){return this.childNameIndex_[x]},b.prototype.addChild=function(x){var B=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],D=void 0,S=void 0;if(typeof x=="string"){S=x,B||(B={}),B===!0&&(T.default.warn("Initializing a child component with `true` is deprecated. Children should be defined in an array when possible, but if necessary use an object instead of `true`."),B={});var k=B.componentClass||F.default(S);B.name=S;var J=b.getComponent(k);if(!J)throw new Error("Component "+k+" does not exist");if(typeof J!="function")return null;D=new J(this.player_||this,B)}else D=x;return this.children_.push(D),typeof D.id=="function"&&(this.childIndex_[D.id()]=D),S=S||D.name&&D.name(),S&&(this.childNameIndex_[S]=D),typeof D.el=="function"&&D.el()&&this.contentEl().appendChild(D.el()),D},b.prototype.removeChild=function(x){if(typeof x=="string"&&(x=this.getChild(x)),!(!x||!this.children_)){for(var B=!1,D=this.children_.length-1;D>=0;D--)if(this.children_[D]===x){B=!0,this.children_.splice(D,1);break}if(!!B){this.childIndex_[x.id()]=null,this.childNameIndex_[x.name()]=null;var S=x.el();S&&S.parentNode===this.contentEl()&&this.contentEl().removeChild(x.el())}}},b.prototype.initChildren=function(){var x=this,B=this.options_.children;B&&function(){var D=x.options_,S=function(A){var j=A.name,P=A.opts;if(D[j]!==void 0&&(P=D[j]),P!==!1){P===!0&&(P={}),P.playerOptions=x.options_.playerOptions;var I=x.addChild(j,P);I&&(x[j]=I)}},k=void 0,J=b.getComponent("Tech");Array.isArray(B)?k=B:k=Object.keys(B),k.concat(Object.keys(x.options_).filter(function(R){return!k.some(function(A){return typeof A=="string"?R===A:R===A.name})})).map(function(R){var A=void 0,j=void 0;return typeof R=="string"?(A=R,j=B[A]||x.options_[A]||{}):(A=R.name,j=R),{name:A,opts:j}}).filter(function(R){var A=b.getComponent(R.opts.componentClass||F.default(R.name));return A&&!J.isTech(A)}).forEach(S)}()},b.prototype.buildCSSClass=function(){return""},b.prototype.on=function(x,B,D){var S=this;return typeof x=="string"||Array.isArray(x)?d.on(this.el_,x,o.bind(this,B)):function(){var k=x,J=B,R=o.bind(S,D),A=function(){return S.off(k,J,R)};A.guid=R.guid,S.on("dispose",A);var j=function(){return S.off("dispose",A)};j.guid=R.guid,x.nodeName?(d.on(k,J,R),d.on(k,"dispose",j)):typeof x.on=="function"&&(k.on(J,R),k.on("dispose",j))}(),this},b.prototype.off=function(x,B,D){if(!x||typeof x=="string"||Array.isArray(x))d.off(this.el_,x,B);else{var S=x,k=B,J=o.bind(this,D);this.off("dispose",J),x.nodeName?(d.off(S,k,J),d.off(S,"dispose",J)):(S.off(k,J),S.off("dispose",J))}return this},b.prototype.one=function(x,B,D){var S=this,k=arguments;return typeof x=="string"||Array.isArray(x)?d.one(this.el_,x,o.bind(this,B)):function(){var J=x,R=B,A=o.bind(S,D),j=function P(){S.off(J,R,P),A.apply(null,k)};j.guid=A.guid,S.on(J,R,j)}(),this},b.prototype.trigger=function(x,B){return d.trigger(this.el_,x,B),this},b.prototype.ready=function(x){var B=arguments.length<=1||arguments[1]===void 0?!1:arguments[1];return x&&(this.isReady_?B?x.call(this):this.setTimeout(x,1):(this.readyQueue_=this.readyQueue_||[],this.readyQueue_.push(x))),this},b.prototype.triggerReady=function(){this.isReady_=!0,this.setTimeout(function(){var x=this.readyQueue_;this.readyQueue_=[],x&&x.length>0&&x.forEach(function(B){B.call(this)},this),this.trigger("ready")},1)},b.prototype.$=function(x,B){return u.$(x,B||this.contentEl())},b.prototype.$$=function(x,B){return u.$$(x,B||this.contentEl())},b.prototype.hasClass=function(x){return u.hasElClass(this.el_,x)},b.prototype.addClass=function(x){return u.addElClass(this.el_,x),this},b.prototype.removeClass=function(x){return u.removeElClass(this.el_,x),this},b.prototype.toggleClass=function(x,B){return u.toggleElClass(this.el_,x,B),this},b.prototype.show=function(){return this.removeClass("vjs-hidden"),this},b.prototype.hide=function(){return this.addClass("vjs-hidden"),this},b.prototype.lockShowing=function(){return this.addClass("vjs-lock-showing"),this},b.prototype.unlockShowing=function(){return this.removeClass("vjs-lock-showing"),this},b.prototype.width=function(x,B){return this.dimension("width",x,B)},b.prototype.height=function(x,B){return this.dimension("height",x,B)},b.prototype.dimensions=function(x,B){return this.width(x,!0).height(B)},b.prototype.dimension=function(x,B,D){if(B!==void 0)return(B===null||B!==B)&&(B=0),(""+B).indexOf("%")!==-1||(""+B).indexOf("px")!==-1?this.el_.style[x]=B:B==="auto"?this.el_.style[x]="":this.el_.style[x]=B+"px",D||this.trigger("resize"),this;if(!this.el_)return 0;var S=this.el_.style[x],k=S.indexOf("px");return parseInt(k!==-1?S.slice(0,k):this.el_["offset"+F.default(x)],10)},b.prototype.emitTapEvents=function(){var x=0,B=null,D=10,S=200,k=void 0;this.on("touchstart",function(R){R.touches.length===1&&(B=n.default({},R.touches[0]),x=new Date().getTime(),k=!0)}),this.on("touchmove",function(R){if(R.touches.length>1)k=!1;else if(B){var A=R.touches[0].pageX-B.pageX,j=R.touches[0].pageY-B.pageY,P=Math.sqrt(A*A+j*j);P>D&&(k=!1)}});var J=function(){k=!1};this.on("touchleave",J),this.on("touchcancel",J),this.on("touchend",function(R){if(B=null,k===!0){var A=new Date().getTime()-x;A<S&&(R.preventDefault(),this.trigger("tap"))}})},b.prototype.enableTouchActivity=function(){if(!(!this.player()||!this.player().reportUserActivity)){var x=o.bind(this.player(),this.player().reportUserActivity),B=void 0;this.on("touchstart",function(){x(),this.clearInterval(B),B=this.setInterval(x,250)});var D=function(k){x(),this.clearInterval(B)};this.on("touchmove",x),this.on("touchend",D),this.on("touchcancel",D)}},b.prototype.setTimeout=function(x,B){x=o.bind(this,x);var D=f.default.setTimeout(x,B),S=function(){this.clearTimeout(D)};return S.guid="vjs-timeout-"+D,this.on("dispose",S),D},b.prototype.clearTimeout=function(x){f.default.clearTimeout(x);var B=function(){};return B.guid="vjs-timeout-"+x,this.off("dispose",B),x},b.prototype.setInterval=function(x,B){x=o.bind(this,x);var D=f.default.setInterval(x,B),S=function(){this.clearInterval(D)};return S.guid="vjs-interval-"+D,this.on("dispose",S),D},b.prototype.clearInterval=function(x){f.default.clearInterval(x);var B=function(){};return B.guid="vjs-interval-"+x,this.off("dispose",B),x},b.registerComponent=function(x,B){return b.components_||(b.components_={}),b.components_[x]=B,B},b.getComponent=function(x){if(b.components_&&b.components_[x])return b.components_[x];if(f.default&&f.default.videojs&&f.default.videojs[x])return T.default.warn("The "+x+" component was added to the videojs object when it should be registered using videojs.registerComponent(name, component)"),f.default.videojs[x]},b.extend=function(x){x=x||{},T.default.warn("Component.extend({}) has been deprecated, use videojs.extend(Component, {}) instead");var B=x.init||x.init||this.prototype.init||this.prototype.init||function(){},D=function(){B.apply(this,arguments)};D.prototype=Object.create(this.prototype),D.prototype.constructor=D,D.extend=b.extend;for(var S in x)x.hasOwnProperty(S)&&(D.prototype[S]=x[S]);return D},b}();O.registerComponent("Component",O),l.default=O,C.exports=l.default},{"./utils/dom.js":128,"./utils/events.js":129,"./utils/fn.js":130,"./utils/guid.js":132,"./utils/log.js":133,"./utils/merge-options.js":134,"./utils/to-title-case.js":137,"global/window":2,"object.assign":45}],66:[function(t,C,l){"use strict";l.__esModule=!0;function p(X){return X&&X.__esModule?X:{default:X}}function a(X,K){if(!(X instanceof K))throw new TypeError("Cannot call a class as a function")}function m(X,K){if(typeof K!="function"&&K!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof K);X.prototype=Object.create(K&&K.prototype,{constructor:{value:X,enumerable:!1,writable:!0,configurable:!0}}),K&&(Object.setPrototypeOf?Object.setPrototypeOf(X,K):X.__proto__=K)}var h=t("../component.js"),f=p(h),v=t("./play-toggle.js"),u=p(v),i=t("./time-controls/current-time-display.js"),o=p(i),r=t("./time-controls/duration-display.js"),g=p(r),s=t("./time-controls/time-divider.js"),d=p(s),c=t("./time-controls/remaining-time-display.js"),T=p(c),_=t("./live-display.js"),F=p(_),e=t("./progress-control/progress-control.js"),n=p(e),E=t("./fullscreen-toggle.js"),y=p(E),O=t("./volume-control/volume-control.js"),b=p(O),w=t("./volume-menu-button.js"),x=p(w),B=t("./mute-toggle.js"),D=p(B),S=t("./text-track-controls/chapters-button.js"),k=p(S),J=t("./text-track-controls/subtitles-button.js"),R=p(J),A=t("./text-track-controls/captions-button.js"),j=p(A),P=t("./playback-rate-menu/playback-rate-menu-button.js"),I=p(P),W=t("./spacer-controls/custom-control-spacer.js"),$=p(W),Y=function(X){m(K,X);function K(){a(this,K),X.apply(this,arguments)}return K.prototype.createEl=function(){return X.prototype.createEl.call(this,"div",{className:"vjs-control-bar"})},K}(f.default);Y.prototype.options_={loadEvent:"play",children:["playToggle","volumeMenuButton","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","subtitlesButton","captionsButton","fullscreenToggle"]},f.default.registerComponent("ControlBar",Y),l.default=Y,C.exports=l.default},{"../component.js":65,"./fullscreen-toggle.js":67,"./live-display.js":68,"./mute-toggle.js":69,"./play-toggle.js":70,"./playback-rate-menu/playback-rate-menu-button.js":71,"./progress-control/progress-control.js":76,"./spacer-controls/custom-control-spacer.js":78,"./text-track-controls/captions-button.js":81,"./text-track-controls/chapters-button.js":82,"./text-track-controls/subtitles-button.js":85,"./time-controls/current-time-display.js":88,"./time-controls/duration-display.js":89,"./time-controls/remaining-time-display.js":90,"./time-controls/time-divider.js":91,"./volume-control/volume-control.js":93,"./volume-menu-button.js":95}],67:[function(t,C,l){"use strict";l.__esModule=!0;function p(o){return o&&o.__esModule?o:{default:o}}function a(o,r){if(!(o instanceof r))throw new TypeError("Cannot call a class as a function")}function m(o,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);o.prototype=Object.create(r&&r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(o,r):o.__proto__=r)}var h=t("../button.js"),f=p(h),v=t("../component.js"),u=p(v),i=function(o){m(r,o);function r(){a(this,r),o.apply(this,arguments)}return r.prototype.buildCSSClass=function(){return"vjs-fullscreen-control "+o.prototype.buildCSSClass.call(this)},r.prototype.handleClick=function(){this.player_.isFullscreen()?(this.player_.exitFullscreen(),this.controlText("Fullscreen")):(this.player_.requestFullscreen(),this.controlText("Non-Fullscreen"))},r}(f.default);i.prototype.controlText_="Fullscreen",u.default.registerComponent("FullscreenToggle",i),l.default=i,C.exports=l.default},{"../button.js":63,"../component.js":65}],68:[function(t,C,l){"use strict";l.__esModule=!0;function p(r){if(r&&r.__esModule)return r;var g={};if(r!=null)for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(g[s]=r[s]);return g.default=r,g}function a(r){return r&&r.__esModule?r:{default:r}}function m(r,g){if(!(r instanceof g))throw new TypeError("Cannot call a class as a function")}function h(r,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);r.prototype=Object.create(g&&g.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(r,g):r.__proto__=g)}var f=t("../component"),v=a(f),u=t("../utils/dom.js"),i=p(u),o=function(r){h(g,r);function g(s,d){m(this,g),r.call(this,s,d),this.updateShowing(),this.on(this.player(),"durationchange",this.updateShowing)}return g.prototype.createEl=function(){var d=r.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=i.createEl("div",{className:"vjs-live-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Stream Type")+"</span>"+this.localize("LIVE")},{"aria-live":"off"}),d.appendChild(this.contentEl_),d},g.prototype.updateShowing=function(){this.player().duration()===Infinity?this.show():this.hide()},g}(v.default);v.default.registerComponent("LiveDisplay",o),l.default=o,C.exports=l.default},{"../component":65,"../utils/dom.js":128}],69:[function(t,C,l){"use strict";l.__esModule=!0;function p(s){if(s&&s.__esModule)return s;var d={};if(s!=null)for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(d[c]=s[c]);return d.default=s,d}function a(s){return s&&s.__esModule?s:{default:s}}function m(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}function h(s,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);s.prototype=Object.create(d&&d.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(s,d):s.__proto__=d)}var f=t("../button"),v=a(f),u=t("../component"),i=a(u),o=t("../utils/dom.js"),r=p(o),g=function(s){h(d,s);function d(c,T){m(this,d),s.call(this,c,T),this.on(c,"volumechange",this.update),c.tech_&&c.tech_.featuresVolumeControl===!1&&this.addClass("vjs-hidden"),this.on(c,"loadstart",function(){this.update(),c.tech_.featuresVolumeControl===!1?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")})}return d.prototype.buildCSSClass=function(){return"vjs-mute-control "+s.prototype.buildCSSClass.call(this)},d.prototype.handleClick=function(){this.player_.muted(!this.player_.muted())},d.prototype.update=function(){var T=this.player_.volume(),_=3;T===0||this.player_.muted()?_=0:T<.33?_=1:T<.67&&(_=2);var F=this.player_.muted()?"Unmute":"Mute",e=this.localize(F);this.controlText()!==e&&this.controlText(e);for(var n=0;n<4;n++)r.removeElClass(this.el_,"vjs-vol-"+n);r.addElClass(this.el_,"vjs-vol-"+_)},d}(v.default);g.prototype.controlText_="Mute",i.default.registerComponent("MuteToggle",g),l.default=g,C.exports=l.default},{"../button":63,"../component":65,"../utils/dom.js":128}],70:[function(t,C,l){"use strict";l.__esModule=!0;function p(o){return o&&o.__esModule?o:{default:o}}function a(o,r){if(!(o instanceof r))throw new TypeError("Cannot call a class as a function")}function m(o,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);o.prototype=Object.create(r&&r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(o,r):o.__proto__=r)}var h=t("../button.js"),f=p(h),v=t("../component.js"),u=p(v),i=function(o){m(r,o);function r(g,s){a(this,r),o.call(this,g,s),this.on(g,"play",this.handlePlay),this.on(g,"pause",this.handlePause)}return r.prototype.buildCSSClass=function(){return"vjs-play-control "+o.prototype.buildCSSClass.call(this)},r.prototype.handleClick=function(){this.player_.paused()?this.player_.play():this.player_.pause()},r.prototype.handlePlay=function(){this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},r.prototype.handlePause=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},r}(f.default);i.prototype.controlText_="Play",u.default.registerComponent("PlayToggle",i),l.default=i,C.exports=l.default},{"../button.js":63,"../component.js":65}],71:[function(t,C,l){"use strict";l.__esModule=!0;function p(_){if(_&&_.__esModule)return _;var F={};if(_!=null)for(var e in _)Object.prototype.hasOwnProperty.call(_,e)&&(F[e]=_[e]);return F.default=_,F}function a(_){return _&&_.__esModule?_:{default:_}}function m(_,F){if(!(_ instanceof F))throw new TypeError("Cannot call a class as a function")}function h(_,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof F);_.prototype=Object.create(F&&F.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),F&&(Object.setPrototypeOf?Object.setPrototypeOf(_,F):_.__proto__=F)}var f=t("../../menu/menu-button.js"),v=a(f),u=t("../../menu/menu.js"),i=a(u),o=t("./playback-rate-menu-item.js"),r=a(o),g=t("../../component.js"),s=a(g),d=t("../../utils/dom.js"),c=p(d),T=function(_){h(F,_);function F(e,n){m(this,F),_.call(this,e,n),this.updateVisibility(),this.updateLabel(),this.on(e,"loadstart",this.updateVisibility),this.on(e,"ratechange",this.updateLabel)}return F.prototype.createEl=function(){var n=_.prototype.createEl.call(this);return this.labelEl_=c.createEl("div",{className:"vjs-playback-rate-value",innerHTML:1}),n.appendChild(this.labelEl_),n},F.prototype.buildCSSClass=function(){return"vjs-playback-rate "+_.prototype.buildCSSClass.call(this)},F.prototype.createMenu=function(){var n=new i.default(this.player()),E=this.playbackRates();if(E)for(var y=E.length-1;y>=0;y--)n.addChild(new r.default(this.player(),{rate:E[y]+"x"}));return n},F.prototype.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},F.prototype.handleClick=function(){for(var n=this.player().playbackRate(),E=this.playbackRates(),y=E[0],O=0;O<E.length;O++)if(E[O]>n){y=E[O];break}this.player().playbackRate(y)},F.prototype.playbackRates=function(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates},F.prototype.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},F.prototype.updateVisibility=function(){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},F.prototype.updateLabel=function(){this.playbackRateSupported()&&(this.labelEl_.innerHTML=this.player().playbackRate()+"x")},F}(v.default);T.prototype.controlText_="Playback Rate",s.default.registerComponent("PlaybackRateMenuButton",T),l.default=T,C.exports=l.default},{"../../component.js":65,"../../menu/menu-button.js":102,"../../menu/menu.js":104,"../../utils/dom.js":128,"./playback-rate-menu-item.js":72}],72:[function(t,C,l){"use strict";l.__esModule=!0;function p(o){return o&&o.__esModule?o:{default:o}}function a(o,r){if(!(o instanceof r))throw new TypeError("Cannot call a class as a function")}function m(o,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);o.prototype=Object.create(r&&r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(o,r):o.__proto__=r)}var h=t("../../menu/menu-item.js"),f=p(h),v=t("../../component.js"),u=p(v),i=function(o){m(r,o);function r(g,s){a(this,r);var d=s.rate,c=parseFloat(d,10);s.label=d,s.selected=c===1,o.call(this,g,s),this.label=d,this.rate=c,this.on(g,"ratechange",this.update)}return r.prototype.handleClick=function(){o.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},r.prototype.update=function(){this.selected(this.player().playbackRate()===this.rate)},r}(f.default);i.prototype.contentElType="button",u.default.registerComponent("PlaybackRateMenuItem",i),l.default=i,C.exports=l.default},{"../../component.js":65,"../../menu/menu-item.js":103}],73:[function(t,C,l){"use strict";l.__esModule=!0;function p(r){if(r&&r.__esModule)return r;var g={};if(r!=null)for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(g[s]=r[s]);return g.default=r,g}function a(r){return r&&r.__esModule?r:{default:r}}function m(r,g){if(!(r instanceof g))throw new TypeError("Cannot call a class as a function")}function h(r,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);r.prototype=Object.create(g&&g.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(r,g):r.__proto__=g)}var f=t("../../component.js"),v=a(f),u=t("../../utils/dom.js"),i=p(u),o=function(r){h(g,r);function g(s,d){m(this,g),r.call(this,s,d),this.on(s,"progress",this.update)}return g.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Loaded")+"</span>: 0%</span>"})},g.prototype.update=function(){var d=this.player_.buffered(),c=this.player_.duration(),T=this.player_.bufferedEnd(),_=this.el_.children,F=function(b,w){var x=b/w||0;return(x>=1?1:x)*100+"%"};this.el_.style.width=F(T,c);for(var e=0;e<d.length;e++){var n=d.start(e),E=d.end(e),y=_[e];y||(y=this.el_.appendChild(i.createEl())),y.style.left=F(n,T),y.style.width=F(E-n,T)}for(var e=_.length;e>d.length;e--)this.el_.removeChild(_[e-1])},g}(v.default);v.default.registerComponent("LoadProgressBar",o),l.default=o,C.exports=l.default},{"../../component.js":65,"../../utils/dom.js":128}],74:[function(t,C,l){"use strict";l.__esModule=!0;function p(_){if(_&&_.__esModule)return _;var F={};if(_!=null)for(var e in _)Object.prototype.hasOwnProperty.call(_,e)&&(F[e]=_[e]);return F.default=_,F}function a(_){return _&&_.__esModule?_:{default:_}}function m(_,F){if(!(_ instanceof F))throw new TypeError("Cannot call a class as a function")}function h(_,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof F);_.prototype=Object.create(F&&F.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),F&&(Object.setPrototypeOf?Object.setPrototypeOf(_,F):_.__proto__=F)}var f=t("../../component.js"),v=a(f),u=t("../../utils/dom.js"),i=p(u),o=t("../../utils/fn.js"),r=p(o),g=t("../../utils/format-time.js"),s=a(g),d=t("lodash-compat/function/throttle"),c=a(d),T=function(_){h(F,_);function F(e,n){var E=this;m(this,F),_.call(this,e,n),this.update(0,0),e.on("ready",function(){E.on(e.controlBar.progressControl.el(),"mousemove",c.default(r.bind(E,E.handleMouseMove),25))})}return F.prototype.createEl=function(){return _.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},F.prototype.handleMouseMove=function(n){var E=this.player_.duration(),y=this.calculateDistance(n)*E,O=n.pageX-i.findElPosition(this.el().parentNode).left;this.update(y,O)},F.prototype.update=function(n,E){var y=s.default(n,this.player_.duration());this.el().style.left=E+"px",this.el().setAttribute("data-current-time",y)},F.prototype.calculateDistance=function(n){return i.getPointerPosition(this.el().parentNode,n).x},F}(v.default);v.default.registerComponent("MouseTimeDisplay",T),l.default=T,C.exports=l.default},{"../../component.js":65,"../../utils/dom.js":128,"../../utils/fn.js":130,"../../utils/format-time.js":131,"lodash-compat/function/throttle":7}],75:[function(t,C,l){"use strict";l.__esModule=!0;function p(s){if(s&&s.__esModule)return s;var d={};if(s!=null)for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(d[c]=s[c]);return d.default=s,d}function a(s){return s&&s.__esModule?s:{default:s}}function m(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}function h(s,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);s.prototype=Object.create(d&&d.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(s,d):s.__proto__=d)}var f=t("../../component.js"),v=a(f),u=t("../../utils/fn.js"),i=p(u),o=t("../../utils/format-time.js"),r=a(o),g=function(s){h(d,s);function d(c,T){m(this,d),s.call(this,c,T),this.updateDataAttr(),this.on(c,"timeupdate",this.updateDataAttr),c.ready(i.bind(this,this.updateDataAttr))}return d.prototype.createEl=function(){return s.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Progress")+"</span>: 0%</span>"})},d.prototype.updateDataAttr=function(){var T=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.el_.setAttribute("data-current-time",r.default(T,this.player_.duration()))},d}(v.default);v.default.registerComponent("PlayProgressBar",g),l.default=g,C.exports=l.default},{"../../component.js":65,"../../utils/fn.js":130,"../../utils/format-time.js":131}],76:[function(t,C,l){"use strict";l.__esModule=!0;function p(g){return g&&g.__esModule?g:{default:g}}function a(g,s){if(!(g instanceof s))throw new TypeError("Cannot call a class as a function")}function m(g,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);g.prototype=Object.create(s&&s.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(g,s):g.__proto__=s)}var h=t("../../component.js"),f=p(h),v=t("./seek-bar.js"),u=p(v),i=t("./mouse-time-display.js"),o=p(i),r=function(g){m(s,g);function s(){a(this,s),g.apply(this,arguments)}return s.prototype.createEl=function(){return g.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},s}(f.default);r.prototype.options_={children:["seekBar"]},f.default.registerComponent("ProgressControl",r),l.default=r,C.exports=l.default},{"../../component.js":65,"./mouse-time-display.js":74,"./seek-bar.js":77}],77:[function(t,C,l){"use strict";l.__esModule=!0;function p(E){if(E&&E.__esModule)return E;var y={};if(E!=null)for(var O in E)Object.prototype.hasOwnProperty.call(E,O)&&(y[O]=E[O]);return y.default=E,y}function a(E){return E&&E.__esModule?E:{default:E}}function m(E,y){if(!(E instanceof y))throw new TypeError("Cannot call a class as a function")}function h(E,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);E.prototype=Object.create(y&&y.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(E,y):E.__proto__=y)}var f=t("../../slider/slider.js"),v=a(f),u=t("../../component.js"),i=a(u),o=t("./load-progress-bar.js"),r=a(o),g=t("./play-progress-bar.js"),s=a(g),d=t("../../utils/fn.js"),c=p(d),T=t("../../utils/format-time.js"),_=a(T),F=t("object.assign"),e=a(F),n=function(E){h(y,E);function y(O,b){m(this,y),E.call(this,O,b),this.on(O,"timeupdate",this.updateARIAAttributes),O.ready(c.bind(this,this.updateARIAAttributes))}return y.prototype.createEl=function(){return E.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":"video progress bar"})},y.prototype.updateARIAAttributes=function(){var b=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.el_.setAttribute("aria-valuenow",(this.getPercent()*100).toFixed(2)),this.el_.setAttribute("aria-valuetext",_.default(b,this.player_.duration()))},y.prototype.getPercent=function(){var b=this.player_.currentTime()/this.player_.duration();return b>=1?1:b},y.prototype.handleMouseDown=function(b){E.prototype.handleMouseDown.call(this,b),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause()},y.prototype.handleMouseMove=function(b){var w=this.calculateDistance(b)*this.player_.duration();w===this.player_.duration()&&(w=w-.1),this.player_.currentTime(w)},y.prototype.handleMouseUp=function(b){E.prototype.handleMouseUp.call(this,b),this.player_.scrubbing(!1),this.videoWasPlaying&&this.player_.play()},y.prototype.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+5)},y.prototype.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-5)},y}(v.default);n.prototype.options_={children:["loadProgressBar","mouseTimeDisplay","playProgressBar"],barName:"playProgressBar"},n.prototype.playerEvent="timeupdate",i.default.registerComponent("SeekBar",n),l.default=n,C.exports=l.default},{"../../component.js":65,"../../slider/slider.js":110,"../../utils/fn.js":130,"../../utils/format-time.js":131,"./load-progress-bar.js":73,"./play-progress-bar.js":75,"object.assign":45}],78:[function(t,C,l){"use strict";l.__esModule=!0;function p(o){return o&&o.__esModule?o:{default:o}}function a(o,r){if(!(o instanceof r))throw new TypeError("Cannot call a class as a function")}function m(o,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);o.prototype=Object.create(r&&r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(o,r):o.__proto__=r)}var h=t("./spacer.js"),f=p(h),v=t("../../component.js"),u=p(v),i=function(o){m(r,o);function r(){a(this,r),o.apply(this,arguments)}return r.prototype.buildCSSClass=function(){return"vjs-custom-control-spacer "+o.prototype.buildCSSClass.call(this)},r.prototype.createEl=function(){var s=o.prototype.createEl.call(this,{className:this.buildCSSClass()});return s.innerHTML=" ",s},r}(f.default);u.default.registerComponent("CustomControlSpacer",i),l.default=i,C.exports=l.default},{"../../component.js":65,"./spacer.js":79}],79:[function(t,C,l){"use strict";l.__esModule=!0;function p(u){return u&&u.__esModule?u:{default:u}}function a(u,i){if(!(u instanceof i))throw new TypeError("Cannot call a class as a function")}function m(u,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);u.prototype=Object.create(i&&i.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(u,i):u.__proto__=i)}var h=t("../../component.js"),f=p(h),v=function(u){m(i,u);function i(){a(this,i),u.apply(this,arguments)}return i.prototype.buildCSSClass=function(){return"vjs-spacer "+u.prototype.buildCSSClass.call(this)},i.prototype.createEl=function(){return u.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},i}(f.default);f.default.registerComponent("Spacer",v),l.default=v,C.exports=l.default},{"../../component.js":65}],80:[function(t,C,l){"use strict";l.__esModule=!0;function p(o){return o&&o.__esModule?o:{default:o}}function a(o,r){if(!(o instanceof r))throw new TypeError("Cannot call a class as a function")}function m(o,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);o.prototype=Object.create(r&&r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(o,r):o.__proto__=r)}var h=t("./text-track-menu-item.js"),f=p(h),v=t("../../component.js"),u=p(v),i=function(o){m(r,o);function r(g,s){a(this,r),s.track={kind:s.kind,player:g,label:s.kind+" settings",default:!1,mode:"disabled"},o.call(this,g,s),this.addClass("vjs-texttrack-settings")}return r.prototype.handleClick=function(){this.player().getChild("textTrackSettings").show()},r}(f.default);u.default.registerComponent("CaptionSettingsMenuItem",i),l.default=i,C.exports=l.default},{"../../component.js":65,"./text-track-menu-item.js":87}],81:[function(t,C,l){"use strict";l.__esModule=!0;function p(g){return g&&g.__esModule?g:{default:g}}function a(g,s){if(!(g instanceof s))throw new TypeError("Cannot call a class as a function")}function m(g,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);g.prototype=Object.create(s&&s.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(g,s):g.__proto__=s)}var h=t("./text-track-button.js"),f=p(h),v=t("../../component.js"),u=p(v),i=t("./caption-settings-menu-item.js"),o=p(i),r=function(g){m(s,g);function s(d,c,T){a(this,s),g.call(this,d,c,T),this.el_.setAttribute("aria-label","Captions Menu")}return s.prototype.buildCSSClass=function(){return"vjs-captions-button "+g.prototype.buildCSSClass.call(this)},s.prototype.update=function(){var c=2;g.prototype.update.call(this),this.player().tech_&&this.player().tech_.featuresNativeTextTracks&&(c=1),this.items&&this.items.length>c?this.show():this.hide()},s.prototype.createItems=function(){var c=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||c.push(new o.default(this.player_,{kind:this.kind_})),g.prototype.createItems.call(this,c)},s}(f.default);r.prototype.kind_="captions",r.prototype.controlText_="Captions",u.default.registerComponent("CaptionsButton",r),l.default=r,C.exports=l.default},{"../../component.js":65,"./caption-settings-menu-item.js":80,"./text-track-button.js":86}],82:[function(t,C,l){"use strict";l.__esModule=!0;function p(w){if(w&&w.__esModule)return w;var x={};if(w!=null)for(var B in w)Object.prototype.hasOwnProperty.call(w,B)&&(x[B]=w[B]);return x.default=w,x}function a(w){return w&&w.__esModule?w:{default:w}}function m(w,x){if(!(w instanceof x))throw new TypeError("Cannot call a class as a function")}function h(w,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);w.prototype=Object.create(x&&x.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(w,x):w.__proto__=x)}var f=t("./text-track-button.js"),v=a(f),u=t("../../component.js"),i=a(u),o=t("./text-track-menu-item.js"),r=a(o),g=t("./chapters-track-menu-item.js"),s=a(g),d=t("../../menu/menu.js"),c=a(d),T=t("../../utils/dom.js"),_=p(T),F=t("../../utils/fn.js"),e=p(F),n=t("../../utils/to-title-case.js"),E=a(n),y=t("global/window"),O=a(y),b=function(w){h(x,w);function x(B,D,S){m(this,x),w.call(this,B,D,S),this.el_.setAttribute("aria-label","Chapters Menu")}return x.prototype.buildCSSClass=function(){return"vjs-chapters-button "+w.prototype.buildCSSClass.call(this)},x.prototype.createItems=function(){var D=[],S=this.player_.textTracks();if(!S)return D;for(var k=0;k<S.length;k++){var J=S[k];J.kind===this.kind_&&D.push(new r.default(this.player_,{track:J}))}return D},x.prototype.createMenu=function(){for(var D=this,S=this.player_.textTracks()||[],k=void 0,J=this.items=[],R=0,A=S.length;R<A;R++){var j=S[R];if(j.kind===this.kind_){k=j;break}}var P=this.menu;if(P===void 0&&(P=new c.default(this.player_),P.contentEl().appendChild(_.createEl("li",{className:"vjs-menu-title",innerHTML:E.default(this.kind_),tabIndex:-1}))),k&&k.cues==null){k.mode="hidden";var I=this.player_.remoteTextTrackEls().getTrackElementByTrack_(k);I&&I.addEventListener("load",function(K){return D.update()})}if(k&&k.cues&&k.cues.length>0){for(var W=k.cues,$=void 0,R=0,Y=W.length;R<Y;R++){$=W[R];var X=new s.default(this.player_,{track:k,cue:$});J.push(X),P.addChild(X)}this.addChild(P)}return this.items.length>0&&this.show(),P},x}(v.default);b.prototype.kind_="chapters",b.prototype.controlText_="Chapters",i.default.registerComponent("ChaptersButton",b),l.default=b,C.exports=l.default},{"../../component.js":65,"../../menu/menu.js":104,"../../utils/dom.js":128,"../../utils/fn.js":130,"../../utils/to-title-case.js":137,"./chapters-track-menu-item.js":83,"./text-track-button.js":86,"./text-track-menu-item.js":87,"global/window":2}],83:[function(t,C,l){"use strict";l.__esModule=!0;function p(s){if(s&&s.__esModule)return s;var d={};if(s!=null)for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(d[c]=s[c]);return d.default=s,d}function a(s){return s&&s.__esModule?s:{default:s}}function m(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}function h(s,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);s.prototype=Object.create(d&&d.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(s,d):s.__proto__=d)}var f=t("../../menu/menu-item.js"),v=a(f),u=t("../../component.js"),i=a(u),o=t("../../utils/fn.js"),r=p(o),g=function(s){h(d,s);function d(c,T){m(this,d);var _=T.track,F=T.cue,e=c.currentTime();T.label=F.text,T.selected=F.startTime<=e&&e<F.endTime,s.call(this,c,T),this.track=_,this.cue=F,_.addEventListener("cuechange",r.bind(this,this.update))}return d.prototype.handleClick=function(){s.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime),this.update(this.cue.startTime)},d.prototype.update=function(){var T=this.cue,_=this.player_.currentTime();this.selected(T.startTime<=_&&_<T.endTime)},d}(v.default);i.default.registerComponent("ChaptersTrackMenuItem",g),l.default=g,C.exports=l.default},{"../../component.js":65,"../../menu/menu-item.js":103,"../../utils/fn.js":130}],84:[function(t,C,l){"use strict";l.__esModule=!0;function p(o){return o&&o.__esModule?o:{default:o}}function a(o,r){if(!(o instanceof r))throw new TypeError("Cannot call a class as a function")}function m(o,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);o.prototype=Object.create(r&&r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(o,r):o.__proto__=r)}var h=t("./text-track-menu-item.js"),f=p(h),v=t("../../component.js"),u=p(v),i=function(o){m(r,o);function r(g,s){a(this,r),s.track={kind:s.kind,player:g,label:s.kind+" off",default:!1,mode:"disabled"},o.call(this,g,s),this.selected(!0)}return r.prototype.handleTracksChange=function(s){for(var d=this.player().textTracks(),c=!0,T=0,_=d.length;T<_;T++){var F=d[T];if(F.kind===this.track.kind&&F.mode==="showing"){c=!1;break}}this.selected(c)},r}(f.default);u.default.registerComponent("OffTextTrackMenuItem",i),l.default=i,C.exports=l.default},{"../../component.js":65,"./text-track-menu-item.js":87}],85:[function(t,C,l){"use strict";l.__esModule=!0;function p(o){return o&&o.__esModule?o:{default:o}}function a(o,r){if(!(o instanceof r))throw new TypeError("Cannot call a class as a function")}function m(o,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);o.prototype=Object.create(r&&r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(o,r):o.__proto__=r)}var h=t("./text-track-button.js"),f=p(h),v=t("../../component.js"),u=p(v),i=function(o){m(r,o);function r(g,s,d){a(this,r),o.call(this,g,s,d),this.el_.setAttribute("aria-label","Subtitles Menu")}return r.prototype.buildCSSClass=function(){return"vjs-subtitles-button "+o.prototype.buildCSSClass.call(this)},r}(f.default);i.prototype.kind_="subtitles",i.prototype.controlText_="Subtitles",u.default.registerComponent("SubtitlesButton",i),l.default=i,C.exports=l.default},{"../../component.js":65,"./text-track-button.js":86}],86:[function(t,C,l){"use strict";l.__esModule=!0;function p(_){if(_&&_.__esModule)return _;var F={};if(_!=null)for(var e in _)Object.prototype.hasOwnProperty.call(_,e)&&(F[e]=_[e]);return F.default=_,F}function a(_){return _&&_.__esModule?_:{default:_}}function m(_,F){if(!(_ instanceof F))throw new TypeError("Cannot call a class as a function")}function h(_,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof F);_.prototype=Object.create(F&&F.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),F&&(Object.setPrototypeOf?Object.setPrototypeOf(_,F):_.__proto__=F)}var f=t("../../menu/menu-button.js"),v=a(f),u=t("../../component.js"),i=a(u),o=t("../../utils/fn.js"),r=p(o),g=t("./text-track-menu-item.js"),s=a(g),d=t("./off-text-track-menu-item.js"),c=a(d),T=function(_){h(F,_);function F(e,n){m(this,F),_.call(this,e,n);var E=this.player_.textTracks();if(this.items.length<=1&&this.hide(),!!E){var y=r.bind(this,this.update);E.addEventListener("removetrack",y),E.addEventListener("addtrack",y),this.player_.on("dispose",function(){E.removeEventListener("removetrack",y),E.removeEventListener("addtrack",y)})}}return F.prototype.createItems=function(){var n=arguments.length<=0||arguments[0]===void 0?[]:arguments[0];n.push(new c.default(this.player_,{kind:this.kind_}));var E=this.player_.textTracks();if(!E)return n;for(var y=0;y<E.length;y++){var O=E[y];O.kind===this.kind_&&n.push(new s.default(this.player_,{track:O}))}return n},F}(v.default);i.default.registerComponent("TextTrackButton",T),l.default=T,C.exports=l.default},{"../../component.js":65,"../../menu/menu-button.js":102,"../../utils/fn.js":130,"./off-text-track-menu-item.js":84,"./text-track-menu-item.js":87}],87:[function(t,C,l){"use strict";l.__esModule=!0;function p(_){if(_&&_.__esModule)return _;var F={};if(_!=null)for(var e in _)Object.prototype.hasOwnProperty.call(_,e)&&(F[e]=_[e]);return F.default=_,F}function a(_){return _&&_.__esModule?_:{default:_}}function m(_,F){if(!(_ instanceof F))throw new TypeError("Cannot call a class as a function")}function h(_,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof F);_.prototype=Object.create(F&&F.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),F&&(Object.setPrototypeOf?Object.setPrototypeOf(_,F):_.__proto__=F)}var f=t("../../menu/menu-item.js"),v=a(f),u=t("../../component.js"),i=a(u),o=t("../../utils/fn.js"),r=p(o),g=t("global/window"),s=a(g),d=t("global/document"),c=a(d),T=function(_){h(F,_);function F(e,n){var E=this;m(this,F);var y=n.track,O=e.textTracks();n.label=y.label||y.language||"Unknown",n.selected=y.default||y.mode==="showing",_.call(this,e,n),this.track=y,O&&function(){var b=r.bind(E,E.handleTracksChange);O.addEventListener("change",b),E.on("dispose",function(){O.removeEventListener("change",b)})}(),O&&O.onchange===void 0&&function(){var b=void 0;E.on(["tap","click"],function(){if(typeof s.default.Event!="object")try{b=new s.default.Event("change")}catch(w){}b||(b=c.default.createEvent("Event"),b.initEvent("change",!0,!0)),O.dispatchEvent(b)})}()}return F.prototype.handleClick=function(n){var E=this.track.kind,y=this.player_.textTracks();if(_.prototype.handleClick.call(this,n),!!y)for(var O=0;O<y.length;O++){var b=y[O];b.kind===E&&(b===this.track?b.mode="showing":b.mode="disabled")}},F.prototype.handleTracksChange=function(n){this.selected(this.track.mode==="showing")},F}(v.default);i.default.registerComponent("TextTrackMenuItem",T),l.default=T,C.exports=l.default},{"../../component.js":65,"../../menu/menu-item.js":103,"../../utils/fn.js":130,"global/document":1,"global/window":2}],88:[function(t,C,l){"use strict";l.__esModule=!0;function p(s){if(s&&s.__esModule)return s;var d={};if(s!=null)for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(d[c]=s[c]);return d.default=s,d}function a(s){return s&&s.__esModule?s:{default:s}}function m(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}function h(s,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);s.prototype=Object.create(d&&d.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(s,d):s.__proto__=d)}var f=t("../../component.js"),v=a(f),u=t("../../utils/dom.js"),i=p(u),o=t("../../utils/format-time.js"),r=a(o),g=function(s){h(d,s);function d(c,T){m(this,d),s.call(this,c,T),this.on(c,"timeupdate",this.updateContent)}return d.prototype.createEl=function(){var T=s.prototype.createEl.call(this,"div",{className:"vjs-current-time vjs-time-control vjs-control"});return this.contentEl_=i.createEl("div",{className:"vjs-current-time-display",innerHTML:'<span class="vjs-control-text">Current Time </span>0:00'},{"aria-live":"off"}),T.appendChild(this.contentEl_),T},d.prototype.updateContent=function(){var T=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),_=this.localize("Current Time"),F=r.default(T,this.player_.duration());this.contentEl_.innerHTML='<span class="vjs-control-text">'+_+"</span> "+F},d}(v.default);v.default.registerComponent("CurrentTimeDisplay",g),l.default=g,C.exports=l.default},{"../../component.js":65,"../../utils/dom.js":128,"../../utils/format-time.js":131}],89:[function(t,C,l){"use strict";l.__esModule=!0;function p(s){if(s&&s.__esModule)return s;var d={};if(s!=null)for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(d[c]=s[c]);return d.default=s,d}function a(s){return s&&s.__esModule?s:{default:s}}function m(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}function h(s,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);s.prototype=Object.create(d&&d.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(s,d):s.__proto__=d)}var f=t("../../component.js"),v=a(f),u=t("../../utils/dom.js"),i=p(u),o=t("../../utils/format-time.js"),r=a(o),g=function(s){h(d,s);function d(c,T){m(this,d),s.call(this,c,T),this.on(c,"timeupdate",this.updateContent),this.on(c,"loadedmetadata",this.updateContent)}return d.prototype.createEl=function(){var T=s.prototype.createEl.call(this,"div",{className:"vjs-duration vjs-time-control vjs-control"});return this.contentEl_=i.createEl("div",{className:"vjs-duration-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Duration Time")+"</span> 0:00"},{"aria-live":"off"}),T.appendChild(this.contentEl_),T},d.prototype.updateContent=function(){var T=this.player_.duration();if(T){var _=this.localize("Duration Time"),F=r.default(T);this.contentEl_.innerHTML='<span class="vjs-control-text">'+_+"</span> "+F}},d}(v.default);v.default.registerComponent("DurationDisplay",g),l.default=g,C.exports=l.default},{"../../component.js":65,"../../utils/dom.js":128,"../../utils/format-time.js":131}],90:[function(t,C,l){"use strict";l.__esModule=!0;function p(s){if(s&&s.__esModule)return s;var d={};if(s!=null)for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(d[c]=s[c]);return d.default=s,d}function a(s){return s&&s.__esModule?s:{default:s}}function m(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}function h(s,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);s.prototype=Object.create(d&&d.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(s,d):s.__proto__=d)}var f=t("../../component.js"),v=a(f),u=t("../../utils/dom.js"),i=p(u),o=t("../../utils/format-time.js"),r=a(o),g=function(s){h(d,s);function d(c,T){m(this,d),s.call(this,c,T),this.on(c,"timeupdate",this.updateContent)}return d.prototype.createEl=function(){var T=s.prototype.createEl.call(this,"div",{className:"vjs-remaining-time vjs-time-control vjs-control"});return this.contentEl_=i.createEl("div",{className:"vjs-remaining-time-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Remaining Time")+"</span> -0:00"},{"aria-live":"off"}),T.appendChild(this.contentEl_),T},d.prototype.updateContent=function(){if(this.player_.duration()){var T=this.localize("Remaining Time"),_=r.default(this.player_.remainingTime());this.contentEl_.innerHTML='<span class="vjs-control-text">'+T+"</span> -"+_}},d}(v.default);v.default.registerComponent("RemainingTimeDisplay",g),l.default=g,C.exports=l.default},{"../../component.js":65,"../../utils/dom.js":128,"../../utils/format-time.js":131}],91:[function(t,C,l){"use strict";l.__esModule=!0;function p(u){return u&&u.__esModule?u:{default:u}}function a(u,i){if(!(u instanceof i))throw new TypeError("Cannot call a class as a function")}function m(u,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);u.prototype=Object.create(i&&i.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(u,i):u.__proto__=i)}var h=t("../../component.js"),f=p(h),v=function(u){m(i,u);function i(){a(this,i),u.apply(this,arguments)}return i.prototype.createEl=function(){return u.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/</span></div>"})},i}(f.default);f.default.registerComponent("TimeDivider",v),l.default=v,C.exports=l.default},{"../../component.js":65}],92:[function(t,C,l){"use strict";l.__esModule=!0;function p(c){if(c&&c.__esModule)return c;var T={};if(c!=null)for(var _ in c)Object.prototype.hasOwnProperty.call(c,_)&&(T[_]=c[_]);return T.default=c,T}function a(c){return c&&c.__esModule?c:{default:c}}function m(c,T){if(!(c instanceof T))throw new TypeError("Cannot call a class as a function")}function h(c,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);c.prototype=Object.create(T&&T.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(c,T):c.__proto__=T)}var f=t("../../slider/slider.js"),v=a(f),u=t("../../component.js"),i=a(u),o=t("../../utils/fn.js"),r=p(o),g=t("./volume-level.js"),s=a(g),d=function(c){h(T,c);function T(_,F){m(this,T),c.call(this,_,F),this.on(_,"volumechange",this.updateARIAAttributes),_.ready(r.bind(this,this.updateARIAAttributes))}return T.prototype.createEl=function(){return c.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":"volume level"})},T.prototype.handleMouseMove=function(F){this.player_.muted()&&this.player_.muted(!1),this.player_.volume(this.calculateDistance(F))},T.prototype.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},T.prototype.stepForward=function(){this.player_.volume(this.player_.volume()+.1)},T.prototype.stepBack=function(){this.player_.volume(this.player_.volume()-.1)},T.prototype.updateARIAAttributes=function(){var F=(this.player_.volume()*100).toFixed(2);this.el_.setAttribute("aria-valuenow",F),this.el_.setAttribute("aria-valuetext",F+"%")},T}(v.default);d.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},d.prototype.playerEvent="volumechange",i.default.registerComponent("VolumeBar",d),l.default=d,C.exports=l.default},{"../../component.js":65,"../../slider/slider.js":110,"../../utils/fn.js":130,"./volume-level.js":94}],93:[function(t,C,l){"use strict";l.__esModule=!0;function p(o){return o&&o.__esModule?o:{default:o}}function a(o,r){if(!(o instanceof r))throw new TypeError("Cannot call a class as a function")}function m(o,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);o.prototype=Object.create(r&&r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(o,r):o.__proto__=r)}var h=t("../../component.js"),f=p(h),v=t("./volume-bar.js"),u=p(v),i=function(o){m(r,o);function r(g,s){a(this,r),o.call(this,g,s),g.tech_&&g.tech_.featuresVolumeControl===!1&&this.addClass("vjs-hidden"),this.on(g,"loadstart",function(){g.tech_.featuresVolumeControl===!1?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")})}return r.prototype.createEl=function(){return o.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control"})},r}(f.default);i.prototype.options_={children:["volumeBar"]},f.default.registerComponent("VolumeControl",i),l.default=i,C.exports=l.default},{"../../component.js":65,"./volume-bar.js":92}],94:[function(t,C,l){"use strict";l.__esModule=!0;function p(u){return u&&u.__esModule?u:{default:u}}function a(u,i){if(!(u instanceof i))throw new TypeError("Cannot call a class as a function")}function m(u,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);u.prototype=Object.create(i&&i.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(u,i):u.__proto__=i)}var h=t("../../component.js"),f=p(h),v=function(u){m(i,u);function i(){a(this,i),u.apply(this,arguments)}return i.prototype.createEl=function(){return u.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'})},i}(f.default);f.default.registerComponent("VolumeLevel",v),l.default=v,C.exports=l.default},{"../../component.js":65}],95:[function(t,C,l){"use strict";l.__esModule=!0;function p(O){if(O&&O.__esModule)return O;var b={};if(O!=null)for(var w in O)Object.prototype.hasOwnProperty.call(O,w)&&(b[w]=O[w]);return b.default=O,b}function a(O){return O&&O.__esModule?O:{default:O}}function m(O,b){if(!(O instanceof b))throw new TypeError("Cannot call a class as a function")}function h(O,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);O.prototype=Object.create(b&&b.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(O,b):O.__proto__=b)}var f=t("../button.js"),v=a(f),u=t("../utils/fn.js"),i=p(u),o=t("../component.js"),r=a(o),g=t("../menu/menu.js"),s=a(g),d=t("../menu/menu-button.js"),c=a(d),T=t("./mute-toggle.js"),_=a(T),F=t("./volume-control/volume-bar.js"),e=a(F),n=t("global/document"),E=a(n),y=function(O){h(b,O);function b(w){var x=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];m(this,b),x.inline===void 0&&(x.inline=!0),x.vertical===void 0&&(x.inline?x.vertical=!1:x.vertical=!0),x.volumeBar=x.volumeBar||{},x.volumeBar.vertical=!!x.vertical,O.call(this,w,x),this.on(w,"volumechange",this.volumeUpdate),this.on(w,"loadstart",this.volumeUpdate);function B(){w.tech_&&w.tech_.featuresVolumeControl===!1?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}B.call(this),this.on(w,"loadstart",B),this.on(this.volumeBar,["slideractive","focus"],function(){this.addClass("vjs-slider-active")}),this.on(this.volumeBar,["sliderinactive","blur"],function(){this.removeClass("vjs-slider-active")})}return b.prototype.buildCSSClass=function(){var x="";return this.options_.vertical?x="vjs-volume-menu-button-vertical":x="vjs-volume-menu-button-horizontal","vjs-volume-menu-button "+O.prototype.buildCSSClass.call(this)+" "+x},b.prototype.createMenu=function(){var x=new s.default(this.player_,{contentElType:"div"}),B=new e.default(this.player_,this.options_.volumeBar);return x.addChild(B),this.volumeBar=B,this.attachVolumeBarEvents(),x},b.prototype.handleClick=function(){_.default.prototype.handleClick.call(this),O.prototype.handleClick.call(this)},b.prototype.attachVolumeBarEvents=function(){this.on(["mousedown","touchdown"],this.handleMouseDown)},b.prototype.handleMouseDown=function(x){this.on(["mousemove","touchmove"],i.bind(this.volumeBar,this.volumeBar.handleMouseMove)),this.on(E.default,["mouseup","touchend"],this.handleMouseUp)},b.prototype.handleMouseUp=function(x){this.off(["mousemove","touchmove"],i.bind(this.volumeBar,this.volumeBar.handleMouseMove))},b}(c.default);y.prototype.volumeUpdate=_.default.prototype.update,y.prototype.controlText_="Mute",r.default.registerComponent("VolumeMenuButton",y),l.default=y,C.exports=l.default},{"../button.js":63,"../component.js":65,"../menu/menu-button.js":102,"../menu/menu.js":104,"../utils/fn.js":130,"./mute-toggle.js":69,"./volume-control/volume-bar.js":92,"global/document":1}],96:[function(t,C,l){"use strict";l.__esModule=!0;function p(c){if(c&&c.__esModule)return c;var T={};if(c!=null)for(var _ in c)Object.prototype.hasOwnProperty.call(c,_)&&(T[_]=c[_]);return T.default=c,T}function a(c){return c&&c.__esModule?c:{default:c}}function m(c,T){if(!(c instanceof T))throw new TypeError("Cannot call a class as a function")}function h(c,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);c.prototype=Object.create(T&&T.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(c,T):c.__proto__=T)}var f=t("./component"),v=a(f),u=t("./modal-dialog"),i=a(u),o=t("./utils/dom"),r=p(o),g=t("./utils/merge-options"),s=a(g),d=function(c){h(T,c);function T(_,F){m(this,T),c.call(this,_,F),this.on(_,"error",this.open)}return T.prototype.buildCSSClass=function(){return"vjs-error-display "+c.prototype.buildCSSClass.call(this)},T.prototype.content=function(){var F=this.player().error();return F?this.localize(F.message):""},T}(i.default);d.prototype.options_=s.default(i.default.prototype.options_,{fillAlways:!0,temporary:!1,uncloseable:!0}),v.default.registerComponent("ErrorDisplay",d),l.default=d,C.exports=l.default},{"./component":65,"./modal-dialog":105,"./utils/dom":128,"./utils/merge-options":134}],97:[function(t,C,l){"use strict";l.__esModule=!0;function p(f){if(f&&f.__esModule)return f;var v={};if(f!=null)for(var u in f)Object.prototype.hasOwnProperty.call(f,u)&&(v[u]=f[u]);return v.default=f,v}var a=t("./utils/events.js"),m=p(a),h=function(){};h.prototype.allowedEvents_={},h.prototype.on=function(f,v){var u=this.addEventListener;this.addEventListener=Function.prototype,m.on(this,f,v),this.addEventListener=u},h.prototype.addEventListener=h.prototype.on,h.prototype.off=function(f,v){m.off(this,f,v)},h.prototype.removeEventListener=h.prototype.off,h.prototype.one=function(f,v){m.one(this,f,v)},h.prototype.trigger=function(f){var v=f.type||f;typeof f=="string"&&(f={type:v}),f=m.fixEvent(f),this.allowedEvents_[v]&&this["on"+v]&&this["on"+v](f),m.trigger(this,f)},h.prototype.dispatchEvent=h.prototype.trigger,l.default=h,C.exports=l.default},{"./utils/events.js":129}],98:[function(t,C,l){"use strict";l.__esModule=!0;function p(v){return v&&v.__esModule?v:{default:v}}var a=t("./utils/log"),m=p(a),h=function(u,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);u.prototype=Object.create(i&&i.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),i&&(u.super_=i)},f=function(u){var i=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],o=function(){u.apply(this,arguments)},r={};typeof i=="object"?(typeof i.init=="function"&&(m.default.warn("Constructor logic via init() is deprecated; please use constructor() instead."),i.constructor=i.init),i.constructor!==Object.prototype.constructor&&(o=i.constructor),r=i):typeof i=="function"&&(o=i),h(o,u);for(var g in r)r.hasOwnProperty(g)&&(o.prototype[g]=r[g]);return o};l.default=f,C.exports=l.default},{"./utils/log":133}],99:[function(t,C,l){"use strict";l.__esModule=!0;function p(o){return o&&o.__esModule?o:{default:o}}for(var a=t("global/document"),m=p(a),h={},f=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],v=f[0],u=void 0,i=0;i<f.length;i++)if(f[i][1]in m.default){u=f[i];break}if(u)for(var i=0;i<u.length;i++)h[v[i]]=u[i];l.default=h,C.exports=l.default},{"global/document":1}],100:[function(t,C,l){"use strict";l.__esModule=!0;function p(u){return u&&u.__esModule?u:{default:u}}function a(u,i){if(!(u instanceof i))throw new TypeError("Cannot call a class as a function")}function m(u,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);u.prototype=Object.create(i&&i.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(u,i):u.__proto__=i)}var h=t("./component"),f=p(h),v=function(u){m(i,u);function i(){a(this,i),u.apply(this,arguments)}return i.prototype.createEl=function(){return u.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner"})},i}(f.default);f.default.registerComponent("LoadingSpinner",v),l.default=v,C.exports=l.default},{"./component":65}],101:[function(t,C,l){"use strict";l.__esModule=!0;function p(v){return v&&v.__esModule?v:{default:v}}var a=t("object.assign"),m=p(a),h=function v(u){typeof u=="number"?this.code=u:typeof u=="string"?this.message=u:typeof u=="object"&&m.default(this,u),this.message||(this.message=v.defaultMessages[this.code]||"")};h.prototype.code=0,h.prototype.message="",h.prototype.status=null,h.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],h.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var f=0;f<h.errorTypes.length;f++)h[h.errorTypes[f]]=f,h.prototype[h.errorTypes[f]]=f;l.default=h,C.exports=l.default},{"object.assign":45}],102:[function(t,C,l){"use strict";l.__esModule=!0;function p(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var E in e)Object.prototype.hasOwnProperty.call(e,E)&&(n[E]=e[E]);return n.default=e,n}function a(e){return e&&e.__esModule?e:{default:e}}function m(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function h(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}var f=t("../button.js"),v=a(f),u=t("../component.js"),i=a(u),o=t("./menu.js"),r=a(o),g=t("../utils/dom.js"),s=p(g),d=t("../utils/fn.js"),c=p(d),T=t("../utils/to-title-case.js"),_=a(T),F=function(e){h(n,e);function n(E){var y=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];m(this,n),e.call(this,E,y),this.update(),this.on("keydown",this.handleKeyPress),this.el_.setAttribute("aria-haspopup",!0),this.el_.setAttribute("role","button")}return n.prototype.update=function(){var y=this.createMenu();this.menu&&this.removeChild(this.menu),this.menu=y,this.addChild(y),this.buttonPressed_=!1,this.items&&this.items.length===0?this.hide():this.items&&this.items.length>1&&this.show()},n.prototype.createMenu=function(){var y=new r.default(this.player_);if(this.options_.title&&y.contentEl().appendChild(s.createEl("li",{className:"vjs-menu-title",innerHTML:_.default(this.options_.title),tabIndex:-1})),this.items=this.createItems(),this.items)for(var O=0;O<this.items.length;O++)y.addItem(this.items[O]);return y},n.prototype.createItems=function(){},n.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},n.prototype.buildCSSClass=function(){var y="vjs-menu-button";return this.options_.inline===!0?y+="-inline":y+="-popup","vjs-menu-button "+y+" "+e.prototype.buildCSSClass.call(this)},n.prototype.handleFocus=function(){},n.prototype.handleBlur=function(){},n.prototype.handleClick=function(){this.one("mouseout",c.bind(this,function(){this.menu.unlockShowing(),this.el_.blur()})),this.buttonPressed_?this.unpressButton():this.pressButton()},n.prototype.handleKeyPress=function(y){y.which===32||y.which===13?(this.buttonPressed_?this.unpressButton():this.pressButton(),y.preventDefault()):y.which===27&&(this.buttonPressed_&&this.unpressButton(),y.preventDefault())},n.prototype.pressButton=function(){this.buttonPressed_=!0,this.menu.lockShowing(),this.el_.setAttribute("aria-pressed",!0),this.items&&this.items.length>0&&this.items[0].el().focus()},n.prototype.unpressButton=function(){this.buttonPressed_=!1,this.menu.unlockShowing(),this.el_.setAttribute("aria-pressed",!1)},n}(v.default);i.default.registerComponent("MenuButton",F),l.default=F,C.exports=l.default},{"../button.js":63,"../component.js":65,"../utils/dom.js":128,"../utils/fn.js":130,"../utils/to-title-case.js":137,"./menu.js":104}],103:[function(t,C,l){"use strict";l.__esModule=!0;function p(g){return g&&g.__esModule?g:{default:g}}function a(g,s){if(!(g instanceof s))throw new TypeError("Cannot call a class as a function")}function m(g,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);g.prototype=Object.create(s&&s.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(g,s):g.__proto__=s)}var h=t("../button.js"),f=p(h),v=t("../component.js"),u=p(v),i=t("object.assign"),o=p(i),r=function(g){m(s,g);function s(d,c){a(this,s),g.call(this,d,c),this.selected(c.selected)}return s.prototype.createEl=function(c,T,_){return g.prototype.createEl.call(this,"li",o.default({className:"vjs-menu-item",innerHTML:this.localize(this.options_.label)},T),_)},s.prototype.handleClick=function(){this.selected(!0)},s.prototype.selected=function(c){c?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-selected",!0)):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-selected",!1))},s}(f.default);u.default.registerComponent("MenuItem",r),l.default=r,C.exports=l.default},{"../button.js":63,"../component.js":65,"object.assign":45}],104:[function(t,C,l){"use strict";l.__esModule=!0;function p(c){if(c&&c.__esModule)return c;var T={};if(c!=null)for(var _ in c)Object.prototype.hasOwnProperty.call(c,_)&&(T[_]=c[_]);return T.default=c,T}function a(c){return c&&c.__esModule?c:{default:c}}function m(c,T){if(!(c instanceof T))throw new TypeError("Cannot call a class as a function")}function h(c,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);c.prototype=Object.create(T&&T.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(c,T):c.__proto__=T)}var f=t("../component.js"),v=a(f),u=t("../utils/dom.js"),i=p(u),o=t("../utils/fn.js"),r=p(o),g=t("../utils/events.js"),s=p(g),d=function(c){h(T,c);function T(){m(this,T),c.apply(this,arguments)}return T.prototype.addItem=function(F){this.addChild(F),F.on("click",r.bind(this,function(){this.unlockShowing()}))},T.prototype.createEl=function(){var F=this.options_.contentElType||"ul";this.contentEl_=i.createEl(F,{className:"vjs-menu-content"});var e=c.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return e.appendChild(this.contentEl_),s.on(e,"click",function(n){n.preventDefault(),n.stopImmediatePropagation()}),e},T}(v.default);v.default.registerComponent("Menu",d),l.default=d,C.exports=l.default},{"../component.js":65,"../utils/dom.js":128,"../utils/events.js":129,"../utils/fn.js":130}],105:[function(t,C,l){"use strict";l.__esModule=!0;function p(E){if(E&&E.__esModule)return E;var y={};if(E!=null)for(var O in E)Object.prototype.hasOwnProperty.call(E,O)&&(y[O]=E[O]);return y.default=E,y}function a(E){return E&&E.__esModule?E:{default:E}}function m(E,y){if(!(E instanceof y))throw new TypeError("Cannot call a class as a function")}function h(E,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);E.prototype=Object.create(y&&y.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(E,y):E.__proto__=y)}var f=t("global/document"),v=a(f),u=t("./utils/dom"),i=p(u),o=t("./utils/fn"),r=p(o),g=t("./utils/log"),s=a(g),d=t("./component"),c=a(d),T=t("./close-button"),_=a(T),F="vjs-modal-dialog",e=27,n=function(E){h(y,E);function y(O,b){m(this,y),E.call(this,O,b),this.opened_=this.hasBeenOpened_=this.hasBeenFilled_=!1,this.closeable(!this.options_.uncloseable),this.content(this.options_.content),this.contentEl_=i.createEl("div",{className:F+"-content"},{role:"document"}),this.descEl_=i.createEl("p",{className:F+"-description vjs-offscreen",id:this.el().getAttribute("aria-describedby")}),i.textContent(this.descEl_,this.description()),this.el_.appendChild(this.descEl_),this.el_.appendChild(this.contentEl_)}return y.prototype.createEl=function(){return E.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},y.prototype.buildCSSClass=function(){return F+" vjs-hidden "+E.prototype.buildCSSClass.call(this)},y.prototype.handleKeyPress=function(b){b.which===e&&this.closeable()&&this.close()},y.prototype.label=function(){return this.options_.label||this.localize("Modal Window")},y.prototype.description=function(){var b=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(b+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),b},y.prototype.open=function(){if(!this.opened_){var b=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!b.paused(),this.wasPlaying_&&b.pause(),this.closeable()&&this.on(v.default,"keydown",r.bind(this,this.handleKeyPress)),b.controls(!1),this.show(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}return this},y.prototype.opened=function(b){return typeof b=="boolean"&&this[b?"open":"close"](),this.opened_},y.prototype.close=function(){if(this.opened_){var b=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&b.play(),this.closeable()&&this.off(v.default,"keydown",r.bind(this,this.handleKeyPress)),b.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.options_.temporary&&this.dispose()}return this},y.prototype.closeable=function(b){if(typeof b=="boolean"){var w=this.closeable_=!!b,x=this.getChild("closeButton");if(w&&!x){var B=this.contentEl_;this.contentEl_=this.el_,x=this.addChild("closeButton"),this.contentEl_=B,this.on(x,"close",this.close)}!w&&x&&(this.off(x,"close",this.close),this.removeChild(x),x.dispose())}return this.closeable_},y.prototype.fill=function(){return this.fillWith(this.content())},y.prototype.fillWith=function(b){var w=this.contentEl(),x=w.parentNode,B=w.nextSibling;return this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,x.removeChild(w),this.empty(),i.insertContent(w,b),this.trigger("modalfill"),B?x.insertBefore(w,B):x.appendChild(w),this},y.prototype.empty=function(){return this.trigger("beforemodalempty"),i.emptyEl(this.contentEl()),this.trigger("modalempty"),this},y.prototype.content=function(b){return typeof b!="undefined"&&(this.content_=b),this.content_},y}(c.default);n.prototype.options_={temporary:!0},c.default.registerComponent("ModalDialog",n),l.default=n,C.exports=l.default},{"./close-button":64,"./component":65,"./utils/dom":128,"./utils/fn":130,"./utils/log":133,"global/document":1}],106:[function(t,C,l){"use strict";l.__esModule=!0;function p(et){if(et&&et.__esModule)return et;var L={};if(et!=null)for(var H in et)Object.prototype.hasOwnProperty.call(et,H)&&(L[H]=et[H]);return L.default=et,L}function a(et){return et&&et.__esModule?et:{default:et}}function m(et,L){if(!(et instanceof L))throw new TypeError("Cannot call a class as a function")}function h(et,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof L);et.prototype=Object.create(L&&L.prototype,{constructor:{value:et,enumerable:!1,writable:!0,configurable:!0}}),L&&(Object.setPrototypeOf?Object.setPrototypeOf(et,L):et.__proto__=L)}var f=t("./component.js"),v=a(f),u=t("global/document"),i=a(u),o=t("global/window"),r=a(o),g=t("./utils/events.js"),s=p(g),d=t("./utils/dom.js"),c=p(d),T=t("./utils/fn.js"),_=p(T),F=t("./utils/guid.js"),e=p(F),n=t("./utils/browser.js"),E=p(n),y=t("./utils/log.js"),O=a(y),b=t("./utils/to-title-case.js"),w=a(b),x=t("./utils/time-ranges.js"),B=t("./utils/buffer.js"),D=t("./utils/stylesheet.js"),S=p(D),k=t("./fullscreen-api.js"),J=a(k),R=t("./media-error.js"),A=a(R),j=t("safe-json-parse/tuple"),P=a(j),I=t("object.assign"),W=a(I),$=t("./utils/merge-options.js"),Y=a($),X=t("./tracks/text-track-list-converter.js"),K=a(X),it=t("./tech/loader.js"),lt=a(it),yt=t("./poster-image.js"),mt=a(yt),bt=t("./tracks/text-track-display.js"),N=a(bt),U=t("./loading-spinner.js"),Z=a(U),nt=t("./big-play-button.js"),st=a(nt),ft=t("./control-bar/control-bar.js"),G=a(ft),Et=t("./error-display.js"),Ft=a(Et),tt=t("./tracks/text-track-settings.js"),ct=a(tt),_t=t("./modal-dialog"),wt=a(_t),Tt=t("./tech/tech.js"),Ct=a(Tt),St=t("./tech/html5.js"),Bt=a(St),vt=function(et){h(L,et);function L(H,M,V){var z=this;if(m(this,L),H.id=H.id||"vjs_video_"+e.newGUID(),M=W.default(L.getTagSettings(H),M),M.initChildren=!1,M.createEl=!1,M.reportTouchActivity=!1,et.call(this,null,M,V),!this.options_||!this.options_.techOrder||!this.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");this.tag=H,this.tagAttributes=H&&c.getElAttributes(H),this.language(this.options_.language),M.languages?function(){var ut={};Object.getOwnPropertyNames(M.languages).forEach(function(rt){ut[rt.toLowerCase()]=M.languages[rt]}),z.languages_=ut}():this.languages_=L.prototype.options_.languages,this.cache_={},this.poster_=M.poster||"",this.controls_=!!M.controls,H.controls=!1,this.scrubbing_=!1,this.el_=this.createEl();var Q=Y.default(this.options_);M.plugins&&function(){var ut=M.plugins;Object.getOwnPropertyNames(ut).forEach(function(rt){typeof this[rt]=="function"?this[rt](ut[rt]):O.default.error("Unable to find plugin:",rt)},z)}(),this.options_.playerOptions=Q,this.initChildren(),this.isAudio(H.nodeName.toLowerCase()==="audio"),this.controls()?this.addClass("vjs-controls-enabled"):this.addClass("vjs-controls-disabled"),this.isAudio()&&this.addClass("vjs-audio"),this.flexNotSupported_()&&this.addClass("vjs-no-flex"),L.players[this.id_]=this,this.userActive(!0),this.reportUserActivity(),this.listenForUserActivity_(),this.on("fullscreenchange",this.handleFullscreenChange_),this.on("stageclick",this.handleStageClick_)}return L.prototype.dispose=function(){this.trigger("dispose"),this.off("dispose"),this.styleEl_&&this.styleEl_.parentNode&&this.styleEl_.parentNode.removeChild(this.styleEl_),L.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&this.tech_.dispose(),et.prototype.dispose.call(this)},L.prototype.createEl=function(){var M=this.el_=et.prototype.createEl.call(this,"div"),V=this.tag;V.removeAttribute("width"),V.removeAttribute("height");var z=c.getElAttributes(V);Object.getOwnPropertyNames(z).forEach(function(rt){rt==="class"?M.className=z[rt]:M.setAttribute(rt,z[rt])}),V.playerId=V.id,V.id+="_html5_api",V.className="vjs-tech",V.player=M.player=this,this.addClass("vjs-paused"),this.styleEl_=S.createStyleElement("vjs-styles-dimensions");var Q=c.$(".vjs-styles-defaults"),ut=c.$("head");return ut.insertBefore(this.styleEl_,Q?Q.nextSibling:ut.firstChild),this.width(this.options_.width),this.height(this.options_.height),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),V.initNetworkState_=V.networkState,V.parentNode&&V.parentNode.insertBefore(M,V),c.insertElFirst(V,M),this.el_=M,M},L.prototype.width=function(M){return this.dimension("width",M)},L.prototype.height=function(M){return this.dimension("height",M)},L.prototype.dimension=function(M,V){var z=M+"_";if(V===void 0)return this[z]||0;if(V==="")this[z]=void 0;else{var Q=parseFloat(V);if(isNaN(Q))return O.default.error('Improper value "'+V+'" supplied for for '+M),this;this[z]=Q}return this.updateStyleEl_(),this},L.prototype.fluid=function(M){if(M===void 0)return!!this.fluid_;this.fluid_=!!M,M?this.addClass("vjs-fluid"):this.removeClass("vjs-fluid")},L.prototype.aspectRatio=function(M){if(M===void 0)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(M))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=M,this.fluid(!0),this.updateStyleEl_()},L.prototype.updateStyleEl_=function(){var M=void 0,V=void 0,z=void 0,Q=void 0;this.aspectRatio_!==void 0&&this.aspectRatio_!=="auto"?z=this.aspectRatio_:this.videoWidth()?z=this.videoWidth()+":"+this.videoHeight():z="16:9";var ut=z.split(":"),rt=ut[1]/ut[0];this.width_!==void 0?M=this.width_:this.height_!==void 0?M=this.height_/rt:M=this.videoWidth()||300,this.height_!==void 0?V=this.height_:V=M*rt,/^[^a-zA-Z]/.test(this.id())?Q="dimensions-"+this.id():Q=this.id()+"-dimensions",this.addClass(Q),S.setTextContent(this.styleEl_,`
|
|
.`+Q+` {
|
|
width: `+M+`px;
|
|
height: `+V+`px;
|
|
}
|
|
|
|
.`+Q+`.vjs-fluid {
|
|
padding-top: `+rt*100+`%;
|
|
}
|
|
`)},L.prototype.loadTech_=function(M,V){this.tech_&&this.unloadTech_(),M!=="Html5"&&this.tag&&(Ct.default.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=M,this.isReady_=!1;var z=W.default({nativeControlsForTouch:this.options_.nativeControlsForTouch,source:V,playerId:this.id(),techId:this.id()+"_"+M+"_api",textTracks:this.textTracks_,autoplay:this.options_.autoplay,preload:this.options_.preload,loop:this.options_.loop,muted:this.options_.muted,poster:this.poster(),language:this.language(),"vtt.js":this.options_["vtt.js"]},this.options_[M.toLowerCase()]);this.tag&&(z.tag=this.tag),V&&(this.currentType_=V.type,V.src===this.cache_.src&&this.cache_.currentTime>0&&(z.startTime=this.cache_.currentTime),this.cache_.src=V.src);var Q=Ct.default.getTech(M);Q||(Q=v.default.getComponent(M)),this.tech_=new Q(z),this.tech_.ready(_.bind(this,this.handleTechReady_),!0),K.default.jsonToTextTracks(this.textTracksJson_||[],this.tech_),this.on(this.tech_,"loadstart",this.handleTechLoadStart_),this.on(this.tech_,"waiting",this.handleTechWaiting_),this.on(this.tech_,"canplay",this.handleTechCanPlay_),this.on(this.tech_,"canplaythrough",this.handleTechCanPlayThrough_),this.on(this.tech_,"playing",this.handleTechPlaying_),this.on(this.tech_,"ended",this.handleTechEnded_),this.on(this.tech_,"seeking",this.handleTechSeeking_),this.on(this.tech_,"seeked",this.handleTechSeeked_),this.on(this.tech_,"play",this.handleTechPlay_),this.on(this.tech_,"firstplay",this.handleTechFirstPlay_),this.on(this.tech_,"pause",this.handleTechPause_),this.on(this.tech_,"progress",this.handleTechProgress_),this.on(this.tech_,"durationchange",this.handleTechDurationChange_),this.on(this.tech_,"fullscreenchange",this.handleTechFullscreenChange_),this.on(this.tech_,"error",this.handleTechError_),this.on(this.tech_,"suspend",this.handleTechSuspend_),this.on(this.tech_,"abort",this.handleTechAbort_),this.on(this.tech_,"emptied",this.handleTechEmptied_),this.on(this.tech_,"stalled",this.handleTechStalled_),this.on(this.tech_,"loadedmetadata",this.handleTechLoadedMetaData_),this.on(this.tech_,"loadeddata",this.handleTechLoadedData_),this.on(this.tech_,"timeupdate",this.handleTechTimeUpdate_),this.on(this.tech_,"ratechange",this.handleTechRateChange_),this.on(this.tech_,"volumechange",this.handleTechVolumeChange_),this.on(this.tech_,"texttrackchange",this.handleTechTextTrackChange_),this.on(this.tech_,"loadedmetadata",this.updateStyleEl_),this.on(this.tech_,"posterchange",this.handleTechPosterChange_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode!==this.el()&&(M!=="Html5"||!this.tag)&&c.insertElFirst(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},L.prototype.unloadTech_=function(){this.textTracks_=this.textTracks(),this.textTracksJson_=K.default.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1},L.prototype.tech=function(M){if(M&&M.IWillNotUseThisInPlugins)return this.tech_;var V=`
|
|
Please make sure that you are not using this inside of a plugin.
|
|
To disable this alert and error, please pass in an object with
|
|
\`IWillNotUseThisInPlugins\` to the \`tech\` method. See
|
|
https://github.com/videojs/video.js/issues/2617 for more info.
|
|
`;throw r.default.alert(V),new Error(V)},L.prototype.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"mousedown",this.handleTechClick_),this.on(this.tech_,"touchstart",this.handleTechTouchStart_),this.on(this.tech_,"touchmove",this.handleTechTouchMove_),this.on(this.tech_,"touchend",this.handleTechTouchEnd_),this.on(this.tech_,"tap",this.handleTechTap_)},L.prototype.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.handleTechTap_),this.off(this.tech_,"touchstart",this.handleTechTouchStart_),this.off(this.tech_,"touchmove",this.handleTechTouchMove_),this.off(this.tech_,"touchend",this.handleTechTouchEnd_),this.off(this.tech_,"mousedown",this.handleTechClick_)},L.prototype.handleTechReady_=function(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_(),this.src()&&this.tag&&this.options_.autoplay&&this.paused()&&(delete this.tag.poster,this.play())},L.prototype.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.error(null),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay"))},L.prototype.hasStarted=function(M){return M!==void 0?(this.hasStarted_!==M&&(this.hasStarted_=M,M?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started")),this):!!this.hasStarted_},L.prototype.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},L.prototype.handleTechWaiting_=function(){this.addClass("vjs-waiting"),this.trigger("waiting")},L.prototype.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},L.prototype.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},L.prototype.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},L.prototype.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},L.prototype.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.trigger("seeked")},L.prototype.handleTechFirstPlay_=function(){this.options_.starttime&&this.currentTime(this.options_.starttime),this.addClass("vjs-has-started"),this.trigger("firstplay")},L.prototype.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},L.prototype.handleTechProgress_=function(){this.trigger("progress")},L.prototype.handleTechEnded_=function(){this.addClass("vjs-ended"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},L.prototype.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},L.prototype.handleTechClick_=function(M){M.button===0&&this.controls()&&(this.paused()?this.play():this.pause())},L.prototype.handleTechTap_=function(){this.userActive(!this.userActive())},L.prototype.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},L.prototype.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},L.prototype.handleTechTouchEnd_=function(M){M.preventDefault()},L.prototype.handleFullscreenChange_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},L.prototype.handleStageClick_=function(){this.reportUserActivity()},L.prototype.handleTechFullscreenChange_=function(M,V){V&&this.isFullscreen(V.isFullscreen),this.trigger("fullscreenchange")},L.prototype.handleTechError_=function(){var M=this.tech_.error();this.error(M&&M.code)},L.prototype.handleTechSuspend_=function(){this.trigger("suspend")},L.prototype.handleTechAbort_=function(){this.trigger("abort")},L.prototype.handleTechEmptied_=function(){this.trigger("emptied")},L.prototype.handleTechStalled_=function(){this.trigger("stalled")},L.prototype.handleTechLoadedMetaData_=function(){this.trigger("loadedmetadata")},L.prototype.handleTechLoadedData_=function(){this.trigger("loadeddata")},L.prototype.handleTechTimeUpdate_=function(){this.trigger("timeupdate")},L.prototype.handleTechRateChange_=function(){this.trigger("ratechange")},L.prototype.handleTechVolumeChange_=function(){this.trigger("volumechange")},L.prototype.handleTechTextTrackChange_=function(){this.trigger("texttrackchange")},L.prototype.getCache=function(){return this.cache_},L.prototype.techCall_=function(M,V){if(this.tech_&&!this.tech_.isReady_)this.tech_.ready(function(){this[M](V)},!0);else try{this.tech_[M](V)}catch(z){throw O.default(z),z}},L.prototype.techGet_=function(M){if(this.tech_&&this.tech_.isReady_)try{return this.tech_[M]()}catch(V){throw this.tech_[M]===void 0?O.default("Video.js: "+M+" method not defined for "+this.techName_+" playback technology.",V):V.name==="TypeError"?(O.default("Video.js: "+M+" unavailable on "+this.techName_+" playback technology element.",V),this.tech_.isReady_=!1):O.default(V),V}},L.prototype.play=function(){return this.techCall_("play"),this},L.prototype.pause=function(){return this.techCall_("pause"),this},L.prototype.paused=function(){return this.techGet_("paused")!==!1},L.prototype.scrubbing=function(M){return M!==void 0?(this.scrubbing_=!!M,M?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing"),this):this.scrubbing_},L.prototype.currentTime=function(M){return M!==void 0?(this.techCall_("setCurrentTime",M),this):this.cache_.currentTime=this.techGet_("currentTime")||0},L.prototype.duration=function(M){return M===void 0?this.cache_.duration||0:(M=parseFloat(M)||0,M<0&&(M=Infinity),M!==this.cache_.duration&&(this.cache_.duration=M,M===Infinity?this.addClass("vjs-live"):this.removeClass("vjs-live"),this.trigger("durationchange")),this)},L.prototype.remainingTime=function(){return this.duration()-this.currentTime()},L.prototype.buffered=function(){var M=this.techGet_("buffered");return(!M||!M.length)&&(M=x.createTimeRange(0,0)),M},L.prototype.bufferedPercent=function(){return B.bufferedPercent(this.buffered(),this.duration())},L.prototype.bufferedEnd=function(){var M=this.buffered(),V=this.duration(),z=M.end(M.length-1);return z>V&&(z=V),z},L.prototype.volume=function(M){var V=void 0;return M!==void 0?(V=Math.max(0,Math.min(1,parseFloat(M))),this.cache_.volume=V,this.techCall_("setVolume",V),this):(V=parseFloat(this.techGet_("volume")),isNaN(V)?1:V)},L.prototype.muted=function(M){return M!==void 0?(this.techCall_("setMuted",M),this):this.techGet_("muted")||!1},L.prototype.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},L.prototype.isFullscreen=function(M){return M!==void 0?(this.isFullscreen_=!!M,this):!!this.isFullscreen_},L.prototype.requestFullscreen=function(){var M=J.default;return this.isFullscreen(!0),M.requestFullscreen?(s.on(i.default,M.fullscreenchange,_.bind(this,function V(z){this.isFullscreen(i.default[M.fullscreenElement]),this.isFullscreen()===!1&&s.off(i.default,M.fullscreenchange,V),this.trigger("fullscreenchange")})),this.el_[M.requestFullscreen]()):this.tech_.supportsFullScreen()?this.techCall_("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange")),this},L.prototype.exitFullscreen=function(){var M=J.default;return this.isFullscreen(!1),M.requestFullscreen?i.default[M.exitFullscreen]():this.tech_.supportsFullScreen()?this.techCall_("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange")),this},L.prototype.enterFullWindow=function(){this.isFullWindow=!0,this.docOrigOverflow=i.default.documentElement.style.overflow,s.on(i.default,"keydown",_.bind(this,this.fullWindowOnEscKey)),i.default.documentElement.style.overflow="hidden",c.addElClass(i.default.body,"vjs-full-window"),this.trigger("enterFullWindow")},L.prototype.fullWindowOnEscKey=function(M){M.keyCode===27&&(this.isFullscreen()===!0?this.exitFullscreen():this.exitFullWindow())},L.prototype.exitFullWindow=function(){this.isFullWindow=!1,s.off(i.default,"keydown",this.fullWindowOnEscKey),i.default.documentElement.style.overflow=this.docOrigOverflow,c.removeElClass(i.default.body,"vjs-full-window"),this.trigger("exitFullWindow")},L.prototype.canPlayType=function(M){for(var V=void 0,z=0,Q=this.options_.techOrder;z<Q.length;z++){var ut=w.default(Q[z]),rt=Ct.default.getTech(ut);if(rt||(rt=v.default.getComponent(ut)),!rt){O.default.error('The "'+ut+'" tech is undefined. Skipped browser support check for that tech.');continue}if(rt.isSupported()&&(V=rt.canPlayType(M),V))return V}return""},L.prototype.selectSource=function(M){var V=this.options_.techOrder.map(w.default).map(function(gt){return[gt,Ct.default.getTech(gt)||v.default.getComponent(gt)]}).filter(function(gt){var ht=gt[0],dt=gt[1];return dt?dt.isSupported():(O.default.error('The "'+ht+'" tech is undefined. Skipped browser support check for that tech.'),!1)}),z=function(ht,dt,xt){var pt=void 0;return ht.some(function(Dt){return dt.some(function(At){if(pt=xt(Dt,At),pt)return!0})}),pt},Q=void 0,ut=function(ht){return function(dt,xt){return ht(xt,dt)}},rt=function(ht,dt){var xt=ht[0],pt=ht[1];if(pt.canPlaySource(dt))return{source:dt,tech:xt}};return this.options_.sourceOrder?Q=z(M,V,ut(rt)):Q=z(V,M,rt),Q||!1},L.prototype.src=function(M){if(M===void 0)return this.techGet_("src");var V=Ct.default.getTech(this.techName_);return V||(V=v.default.getComponent(this.techName_)),Array.isArray(M)?this.sourceList_(M):typeof M=="string"?this.src({src:M}):M instanceof Object&&(M.type&&!V.canPlaySource(M)?this.sourceList_([M]):(this.cache_.src=M.src,this.currentType_=M.type||"",this.ready(function(){V.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",M):this.techCall_("src",M.src),this.options_.preload==="auto"&&this.load(),this.options_.autoplay&&this.play()},!0))),this},L.prototype.sourceList_=function(M){var V=this.selectSource(M);V?V.tech===this.techName_?this.src(V.source):this.loadTech_(V.tech,V.source):(this.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0),this.triggerReady())},L.prototype.load=function(){return this.techCall_("load"),this},L.prototype.reset=function(){return this.loadTech_(w.default(this.options_.techOrder[0]),null),this.techCall_("reset"),this},L.prototype.currentSrc=function(){return this.techGet_("currentSrc")||this.cache_.src||""},L.prototype.currentType=function(){return this.currentType_||""},L.prototype.preload=function(M){return M!==void 0?(this.techCall_("setPreload",M),this.options_.preload=M,this):this.techGet_("preload")},L.prototype.autoplay=function(M){return M!==void 0?(this.techCall_("setAutoplay",M),this.options_.autoplay=M,this):this.techGet_("autoplay",M)},L.prototype.loop=function(M){return M!==void 0?(this.techCall_("setLoop",M),this.options_.loop=M,this):this.techGet_("loop")},L.prototype.poster=function(M){return M===void 0?this.poster_:(M||(M=""),this.poster_=M,this.techCall_("setPoster",M),this.trigger("posterchange"),this)},L.prototype.handleTechPosterChange_=function(){!this.poster_&&this.tech_&&this.tech_.poster&&(this.poster_=this.tech_.poster()||"",this.trigger("posterchange"))},L.prototype.controls=function(M){return M!==void 0?(M=!!M,this.controls_!==M&&(this.controls_=M,this.usingNativeControls()&&this.techCall_("setControls",M),M?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_())),this):!!this.controls_},L.prototype.usingNativeControls=function(M){return M!==void 0?(M=!!M,this.usingNativeControls_!==M&&(this.usingNativeControls_=M,M?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols"))),this):!!this.usingNativeControls_},L.prototype.error=function(M){return M===void 0?this.error_||null:M===null?(this.error_=M,this.removeClass("vjs-error"),this.errorDisplay.close(),this):(M instanceof A.default?this.error_=M:this.error_=new A.default(M),this.addClass("vjs-error"),O.default.error("(CODE:"+this.error_.code+" "+A.default.errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error"),this)},L.prototype.ended=function(){return this.techGet_("ended")},L.prototype.seeking=function(){return this.techGet_("seeking")},L.prototype.seekable=function(){return this.techGet_("seekable")},L.prototype.reportUserActivity=function(M){this.userActivity_=!0},L.prototype.userActive=function(M){return M!==void 0?(M=!!M,M!==this.userActive_&&(this.userActive_=M,M?(this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),this.trigger("useractive")):(this.userActivity_=!1,this.tech_&&this.tech_.one("mousemove",function(V){V.stopPropagation(),V.preventDefault()}),this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive"))),this):this.userActive_},L.prototype.listenForUserActivity_=function(){var M=void 0,V=void 0,z=void 0,Q=_.bind(this,this.reportUserActivity),ut=function(pt){(pt.screenX!==V||pt.screenY!==z)&&(V=pt.screenX,z=pt.screenY,Q())},rt=function(){Q(),this.clearInterval(M),M=this.setInterval(Q,250)},gt=function(pt){Q(),this.clearInterval(M)};this.on("mousedown",rt),this.on("mousemove",ut),this.on("mouseup",gt),this.on("keydown",Q),this.on("keyup",Q);var ht=void 0,dt=this.setInterval(function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(ht);var xt=this.options_.inactivityTimeout;xt>0&&(ht=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},xt))}},250)},L.prototype.playbackRate=function(M){return M!==void 0?(this.techCall_("setPlaybackRate",M),this):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("playbackRate"):1},L.prototype.isAudio=function(M){return M!==void 0?(this.isAudio_=!!M,this):!!this.isAudio_},L.prototype.networkState=function(){return this.techGet_("networkState")},L.prototype.readyState=function(){return this.techGet_("readyState")},L.prototype.textTracks=function(){return this.tech_&&this.tech_.textTracks()},L.prototype.remoteTextTracks=function(){return this.tech_&&this.tech_.remoteTextTracks()},L.prototype.remoteTextTrackEls=function(){return this.tech_&&this.tech_.remoteTextTrackEls()},L.prototype.addTextTrack=function(M,V,z){return this.tech_&&this.tech_.addTextTrack(M,V,z)},L.prototype.addRemoteTextTrack=function(M){return this.tech_&&this.tech_.addRemoteTextTrack(M)},L.prototype.removeRemoteTextTrack=function(M){this.tech_&&this.tech_.removeRemoteTextTrack(M)},L.prototype.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},L.prototype.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},L.prototype.language=function(M){return M===void 0?this.language_:(this.language_=(""+M).toLowerCase(),this)},L.prototype.languages=function(){return Y.default(L.prototype.options_.languages,this.languages_)},L.prototype.toJSON=function(){var M=Y.default(this.options_),V=M.tracks;M.tracks=[];for(var z=0;z<V.length;z++){var Q=V[z];Q=Y.default(Q),Q.player=void 0,M.tracks[z]=Q}return M},L.prototype.createModal=function(M,V){var z=this;V=V||{},V.content=M||"";var Q=new wt.default(z,V);return z.addChild(Q),Q.on("dispose",function(){z.removeChild(Q)}),Q.open()},L.getTagSettings=function(M){var V={sources:[],tracks:[]},z=c.getElAttributes(M),Q=z["data-setup"];if(Q!==null){var ut=P.default(Q||"{}"),rt=ut[0],gt=ut[1];rt&&O.default.error(rt),W.default(z,gt)}if(W.default(V,z),M.hasChildNodes())for(var ht=M.childNodes,dt=0,xt=ht.length;dt<xt;dt++){var pt=ht[dt],Dt=pt.nodeName.toLowerCase();Dt==="source"?V.sources.push(c.getElAttributes(pt)):Dt==="track"&&V.tracks.push(c.getElAttributes(pt))}return V},L}(v.default);vt.players={};var kt=r.default.navigator;vt.prototype.options_={techOrder:["html5","flash"],html5:{},flash:{},defaultVolume:0,inactivityTimeout:2e3,playbackRates:[],children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","controlBar","errorDisplay","textTrackSettings"],language:i.default.getElementsByTagName("html")[0].getAttribute("lang")||kt.languages&&kt.languages[0]||kt.userLanguage||kt.language||"en",languages:{},notSupportedMessage:"No compatible source was found for this video."},vt.prototype.handleLoadedMetaData_,vt.prototype.handleLoadedData_,vt.prototype.handleUserActive_,vt.prototype.handleUserInactive_,vt.prototype.handleTimeUpdate_,vt.prototype.handleTechEnded_,vt.prototype.handleVolumeChange_,vt.prototype.handleError_,vt.prototype.flexNotSupported_=function(){var et=i.default.createElement("i");return!("flexBasis"in et.style||"webkitFlexBasis"in et.style||"mozFlexBasis"in et.style||"msFlexBasis"in et.style||"msFlexOrder"in et.style)},v.default.registerComponent("Player",vt),l.default=vt,C.exports=l.default},{"./big-play-button.js":62,"./component.js":65,"./control-bar/control-bar.js":66,"./error-display.js":96,"./fullscreen-api.js":99,"./loading-spinner.js":100,"./media-error.js":101,"./modal-dialog":105,"./poster-image.js":108,"./tech/html5.js":113,"./tech/loader.js":114,"./tech/tech.js":115,"./tracks/text-track-display.js":119,"./tracks/text-track-list-converter.js":121,"./tracks/text-track-settings.js":123,"./utils/browser.js":125,"./utils/buffer.js":126,"./utils/dom.js":128,"./utils/events.js":129,"./utils/fn.js":130,"./utils/guid.js":132,"./utils/log.js":133,"./utils/merge-options.js":134,"./utils/stylesheet.js":135,"./utils/time-ranges.js":136,"./utils/to-title-case.js":137,"global/document":1,"global/window":2,"object.assign":45,"safe-json-parse/tuple":53}],107:[function(t,C,l){"use strict";l.__esModule=!0;function p(f){return f&&f.__esModule?f:{default:f}}var a=t("./player.js"),m=p(a),h=function(v,u){m.default.prototype[v]=u};l.default=h,C.exports=l.default},{"./player.js":106}],108:[function(t,C,l){"use strict";l.__esModule=!0;function p(_){if(_&&_.__esModule)return _;var F={};if(_!=null)for(var e in _)Object.prototype.hasOwnProperty.call(_,e)&&(F[e]=_[e]);return F.default=_,F}function a(_){return _&&_.__esModule?_:{default:_}}function m(_,F){if(!(_ instanceof F))throw new TypeError("Cannot call a class as a function")}function h(_,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof F);_.prototype=Object.create(F&&F.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),F&&(Object.setPrototypeOf?Object.setPrototypeOf(_,F):_.__proto__=F)}var f=t("./button.js"),v=a(f),u=t("./component.js"),i=a(u),o=t("./utils/fn.js"),r=p(o),g=t("./utils/dom.js"),s=p(g),d=t("./utils/browser.js"),c=p(d),T=function(_){h(F,_);function F(e,n){m(this,F),_.call(this,e,n),this.update(),e.on("posterchange",r.bind(this,this.update))}return F.prototype.dispose=function(){this.player().off("posterchange",this.update),_.prototype.dispose.call(this)},F.prototype.createEl=function(){var n=s.createEl("div",{className:"vjs-poster",tabIndex:-1});return c.BACKGROUND_SIZE_SUPPORTED||(this.fallbackImg_=s.createEl("img"),n.appendChild(this.fallbackImg_)),n},F.prototype.update=function(){var n=this.player().poster();this.setSrc(n),n?this.show():this.hide()},F.prototype.setSrc=function(n){if(this.fallbackImg_)this.fallbackImg_.src=n;else{var E="";n&&(E='url("'+n+'")'),this.el_.style.backgroundImage=E}},F.prototype.handleClick=function(){this.player_.paused()?this.player_.play():this.player_.pause()},F}(v.default);i.default.registerComponent("PosterImage",T),l.default=T,C.exports=l.default},{"./button.js":63,"./component.js":65,"./utils/browser.js":125,"./utils/dom.js":128,"./utils/fn.js":130}],109:[function(t,C,l){"use strict";l.__esModule=!0;function p(c){return c&&c.__esModule?c:{default:c}}function a(c){if(c&&c.__esModule)return c;var T={};if(c!=null)for(var _ in c)Object.prototype.hasOwnProperty.call(c,_)&&(T[_]=c[_]);return T.default=c,T}var m=t("./utils/events.js"),h=a(m),f=t("global/document"),v=p(f),u=t("global/window"),i=p(u),o=!1,r=void 0,g=function(){var T=v.default.getElementsByTagName("video"),_=v.default.getElementsByTagName("audio"),F=[];if(T&&T.length>0)for(var e=0,n=T.length;e<n;e++)F.push(T[e]);if(_&&_.length>0)for(var e=0,n=_.length;e<n;e++)F.push(_[e]);if(F&&F.length>0)for(var e=0,n=F.length;e<n;e++){var E=F[e];if(E&&E.getAttribute){if(E.player===void 0){var y=E.getAttribute("data-setup");if(y!==null)var O=r(E)}}else{s(1);break}}else o||s(1)},s=function(T,_){r=_,setTimeout(g,T)};v.default.readyState==="complete"?o=!0:h.one(i.default,"load",function(){o=!0});var d=function(){return o};l.autoSetup=g,l.autoSetupTimeout=s,l.hasLoaded=d},{"./utils/events.js":129,"global/document":1,"global/window":2}],110:[function(t,C,l){"use strict";l.__esModule=!0;function p(c){if(c&&c.__esModule)return c;var T={};if(c!=null)for(var _ in c)Object.prototype.hasOwnProperty.call(c,_)&&(T[_]=c[_]);return T.default=c,T}function a(c){return c&&c.__esModule?c:{default:c}}function m(c,T){if(!(c instanceof T))throw new TypeError("Cannot call a class as a function")}function h(c,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);c.prototype=Object.create(T&&T.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(c,T):c.__proto__=T)}var f=t("../component.js"),v=a(f),u=t("../utils/dom.js"),i=p(u),o=t("global/document"),r=a(o),g=t("object.assign"),s=a(g),d=function(c){h(T,c);function T(_,F){m(this,T),c.call(this,_,F),this.bar=this.getChild(this.options_.barName),this.vertical(!!this.options_.vertical),this.on("mousedown",this.handleMouseDown),this.on("touchstart",this.handleMouseDown),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur),this.on("click",this.handleClick),this.on(_,"controlsvisible",this.update),this.on(_,this.playerEvent,this.update)}return T.prototype.createEl=function(F){var e=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],n=arguments.length<=2||arguments[2]===void 0?{}:arguments[2];return e.className=e.className+" vjs-slider",e=s.default({tabIndex:0},e),n=s.default({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},n),c.prototype.createEl.call(this,F,e,n)},T.prototype.handleMouseDown=function(F){F.preventDefault(),i.blockTextSelection(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(r.default,"mousemove",this.handleMouseMove),this.on(r.default,"mouseup",this.handleMouseUp),this.on(r.default,"touchmove",this.handleMouseMove),this.on(r.default,"touchend",this.handleMouseUp),this.handleMouseMove(F)},T.prototype.handleMouseMove=function(){},T.prototype.handleMouseUp=function(){i.unblockTextSelection(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(r.default,"mousemove",this.handleMouseMove),this.off(r.default,"mouseup",this.handleMouseUp),this.off(r.default,"touchmove",this.handleMouseMove),this.off(r.default,"touchend",this.handleMouseUp),this.update()},T.prototype.update=function(){if(!!this.el_){var F=this.getPercent(),e=this.bar;if(!!e){(typeof F!="number"||F!==F||F<0||F===Infinity)&&(F=0);var n=(F*100).toFixed(2)+"%";this.vertical()?e.el().style.height=n:e.el().style.width=n}}},T.prototype.calculateDistance=function(F){var e=i.getPointerPosition(this.el_,F);return this.vertical()?e.y:e.x},T.prototype.handleFocus=function(){this.on(r.default,"keydown",this.handleKeyPress)},T.prototype.handleKeyPress=function(F){F.which===37||F.which===40?(F.preventDefault(),this.stepBack()):(F.which===38||F.which===39)&&(F.preventDefault(),this.stepForward())},T.prototype.handleBlur=function(){this.off(r.default,"keydown",this.handleKeyPress)},T.prototype.handleClick=function(F){F.stopImmediatePropagation(),F.preventDefault()},T.prototype.vertical=function(F){return F===void 0?this.vertical_||!1:(this.vertical_=!!F,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal"),this)},T}(v.default);v.default.registerComponent("Slider",d),l.default=d,C.exports=l.default},{"../component.js":65,"../utils/dom.js":128,"global/document":1,"object.assign":45}],111:[function(t,C,l){"use strict";l.__esModule=!0;function p(a){return a.streamingFormats={"rtmp/mp4":"MP4","rtmp/flv":"FLV"},a.streamFromParts=function(m,h){return m+"&"+h},a.streamToParts=function(m){var h={connection:"",stream:""};if(!m)return h;var f=m.search(/&(?!\w+=)/),v=void 0;return f!==-1?v=f+1:(f=v=m.lastIndexOf("/")+1,f===0&&(f=v=m.length)),h.connection=m.substring(0,f),h.stream=m.substring(v,m.length),h},a.isStreamingType=function(m){return m in a.streamingFormats},a.RTMP_RE=/^rtmp[set]?:\/\//i,a.isStreamingSrc=function(m){return a.RTMP_RE.test(m)},a.rtmpSourceHandler={},a.rtmpSourceHandler.canPlayType=function(m){return a.isStreamingType(m)?"maybe":""},a.rtmpSourceHandler.canHandleSource=function(m){var h=a.rtmpSourceHandler.canPlayType(m.type);return h||(a.isStreamingSrc(m.src)?"maybe":"")},a.rtmpSourceHandler.handleSource=function(m,h){var f=a.streamToParts(m.src);h.setRtmpConnection(f.connection),h.setRtmpStream(f.stream)},a.registerSourceHandler(a.rtmpSourceHandler),a}l.default=p,C.exports=l.default},{}],112:[function(t,C,l){"use strict";l.__esModule=!0;function p(S){if(S&&S.__esModule)return S;var k={};if(S!=null)for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(k[J]=S[J]);return k.default=S,k}function a(S){return S&&S.__esModule?S:{default:S}}function m(S,k){if(!(S instanceof k))throw new TypeError("Cannot call a class as a function")}function h(S,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);S.prototype=Object.create(k&&k.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(S,k):S.__proto__=k)}var f=t("./tech"),v=a(f),u=t("../utils/dom.js"),i=p(u),o=t("../utils/url.js"),r=p(o),g=t("../utils/time-ranges.js"),s=t("./flash-rtmp"),d=a(s),c=t("../component"),T=a(c),_=t("global/window"),F=a(_),e=t("object.assign"),n=a(e),E=F.default.navigator,y=function(S){h(k,S);function k(J,R){m(this,k),S.call(this,J,R),J.source&&this.ready(function(){this.setSource(J.source)},!0),J.startTime&&this.ready(function(){this.load(),this.play(),this.currentTime(J.startTime)},!0),F.default.videojs=F.default.videojs||{},F.default.videojs.Flash=F.default.videojs.Flash||{},F.default.videojs.Flash.onReady=k.onReady,F.default.videojs.Flash.onEvent=k.onEvent,F.default.videojs.Flash.onError=k.onError,this.on("seeked",function(){this.lastSeekTarget_=void 0})}return k.prototype.createEl=function(){var R=this.options_;R.swf||(R.swf="//vjs.zencdn.net/swf/5.0.1/video-js.swf");var A=R.techId,j=n.default({readyFunction:"videojs.Flash.onReady",eventProxyFunction:"videojs.Flash.onEvent",errorEventProxyFunction:"videojs.Flash.onError",autoplay:R.autoplay,preload:R.preload,loop:R.loop,muted:R.muted,swfID:R.techId},R.flashVars),P=n.default({wmode:"opaque",bgcolor:"#000000"},R.params),I=n.default({id:A,name:A,class:"vjs-tech"},R.attributes);return this.el_=k.embed(R.swf,j,P,I),this.el_.tech=this,this.el_},k.prototype.play=function(){this.ended()&&this.setCurrentTime(0),this.el_.vjs_play()},k.prototype.pause=function(){this.el_.vjs_pause()},k.prototype.src=function(R){return R===void 0?this.currentSrc():this.setSrc(R)},k.prototype.setSrc=function(R){if(R=r.getAbsoluteURL(R),this.el_.vjs_src(R),this.autoplay()){var A=this;this.setTimeout(function(){A.play()},0)}},k.prototype.seeking=function(){return this.lastSeekTarget_!==void 0},k.prototype.setCurrentTime=function(R){var A=this.seekable();A.length&&(R=R>A.start(0)?R:A.start(0),R=R<A.end(A.length-1)?R:A.end(A.length-1),this.lastSeekTarget_=R,this.trigger("seeking"),this.el_.vjs_setProperty("currentTime",R),S.prototype.setCurrentTime.call(this))},k.prototype.currentTime=function(R){return this.seeking()?this.lastSeekTarget_||0:this.el_.vjs_getProperty("currentTime")},k.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.vjs_getProperty("currentSrc")},k.prototype.load=function(){this.el_.vjs_load()},k.prototype.poster=function(){this.el_.vjs_getProperty("poster")},k.prototype.setPoster=function(){},k.prototype.seekable=function(){var R=this.duration();return R===0?g.createTimeRange():g.createTimeRange(0,R)},k.prototype.buffered=function(){var R=this.el_.vjs_getProperty("buffered");return R.length===0?g.createTimeRange():g.createTimeRange(R[0][0],R[0][1])},k.prototype.supportsFullScreen=function(){return!1},k.prototype.enterFullScreen=function(){return!1},k}(v.default),O=y.prototype,b="rtmpConnection,rtmpStream,preload,defaultPlaybackRate,playbackRate,autoplay,loop,mediaGroup,controller,controls,volume,muted,defaultMuted".split(","),w="networkState,readyState,initialTime,duration,startOffsetTime,paused,ended,videoTracks,audioTracks,videoWidth,videoHeight".split(",");function x(S){var k=S.charAt(0).toUpperCase()+S.slice(1);O["set"+k]=function(J){return this.el_.vjs_setProperty(S,J)}}function B(S){O[S]=function(){return this.el_.vjs_getProperty(S)}}for(var D=0;D<b.length;D++)B(b[D]),x(b[D]);for(var D=0;D<w.length;D++)B(w[D]);y.isSupported=function(){return y.version()[0]>=10},v.default.withSourceHandlers(y),y.nativeSourceHandler={},y.nativeSourceHandler.canPlayType=function(S){return S in y.formats?"maybe":""},y.nativeSourceHandler.canHandleSource=function(S){var k;function J(R){var A=r.getFileExtension(R);return A?"video/"+A:""}return S.type?k=S.type.replace(/;.*/,"").toLowerCase():k=J(S.src),y.nativeSourceHandler.canPlayType(k)},y.nativeSourceHandler.handleSource=function(S,k){k.setSrc(S.src)},y.nativeSourceHandler.dispose=function(){},y.registerSourceHandler(y.nativeSourceHandler),y.formats={"video/flv":"FLV","video/x-flv":"FLV","video/mp4":"MP4","video/m4v":"MP4"},y.onReady=function(S){var k=i.getEl(S),J=k&&k.tech;J&&J.el()&&y.checkReady(J)},y.checkReady=function(S){!S.el()||(S.el().vjs_getProperty?S.triggerReady():this.setTimeout(function(){y.checkReady(S)},50))},y.onEvent=function(S,k){var J=i.getEl(S).tech;J.trigger(k)},y.onError=function(S,k){var J=i.getEl(S).tech;if(k==="srcnotfound")return J.error(4);J.error("FLASH: "+k)},y.version=function(){var S="0,0,0";try{S=new F.default.ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}catch(k){try{E.mimeTypes["application/x-shockwave-flash"].enabledPlugin&&(S=(E.plugins["Shockwave Flash 2.0"]||E.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1])}catch(J){}}return S.split(",")},y.embed=function(S,k,J,R){var A=y.getEmbedCode(S,k,J,R),j=i.createEl("div",{innerHTML:A}).childNodes[0];return j},y.getEmbedCode=function(S,k,J,R){var A='<object type="application/x-shockwave-flash" ',j="",P="",I="";return k&&Object.getOwnPropertyNames(k).forEach(function(W){j+=W+"="+k[W]+"&"}),J=n.default({movie:S,flashvars:j,allowScriptAccess:"always",allowNetworking:"all"},J),Object.getOwnPropertyNames(J).forEach(function(W){P+='<param name="'+W+'" value="'+J[W]+'" />'}),R=n.default({data:S,width:"100%",height:"100%"},R),Object.getOwnPropertyNames(R).forEach(function(W){I+=W+'="'+R[W]+'" '}),""+A+I+">"+P+"</object>"},d.default(y),T.default.registerComponent("Flash",y),v.default.registerTech("Flash",y),l.default=y,C.exports=l.default},{"../component":65,"../utils/dom.js":128,"../utils/time-ranges.js":136,"../utils/url.js":138,"./flash-rtmp":111,"./tech":115,"global/window":2,"object.assign":45}],113:[function(t,C,l){"use strict";l.__esModule=!0;function p(A){if(A&&A.__esModule)return A;var j={};if(A!=null)for(var P in A)Object.prototype.hasOwnProperty.call(A,P)&&(j[P]=A[P]);return j.default=A,j}function a(A){return A&&A.__esModule?A:{default:A}}function m(A,j){if(!(A instanceof j))throw new TypeError("Cannot call a class as a function")}function h(A,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof j);A.prototype=Object.create(j&&j.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),j&&(Object.setPrototypeOf?Object.setPrototypeOf(A,j):A.__proto__=j)}var f=t("./tech.js"),v=a(f),u=t("../component"),i=a(u),o=t("../utils/dom.js"),r=p(o),g=t("../utils/url.js"),s=p(g),d=t("../utils/fn.js"),c=p(d),T=t("../utils/log.js"),_=a(T),F=t("../utils/browser.js"),e=p(F),n=t("global/document"),E=a(n),y=t("global/window"),O=a(y),b=t("object.assign"),w=a(b),x=t("../utils/merge-options.js"),B=a(x),D=function(A){h(j,A);function j(P,I){m(this,j),A.call(this,P,I);var W=P.source;if(W&&(this.el_.currentSrc!==W.src||P.tag&&P.tag.initNetworkState_===3)?this.setSource(W):this.handleLateInit_(this.el_),this.el_.hasChildNodes()){for(var $=this.el_.childNodes,Y=$.length,X=[];Y--;){var K=$[Y],it=K.nodeName.toLowerCase();it==="track"&&(this.featuresNativeTextTracks?(this.remoteTextTrackEls().addTrackElement_(K),this.remoteTextTracks().addTrack_(K.track)):X.push(K))}for(var lt=0;lt<X.length;lt++)this.el_.removeChild(X[lt])}this.featuresNativeTextTracks&&(this.handleTextTrackChange_=c.bind(this,this.handleTextTrackChange),this.handleTextTrackAdd_=c.bind(this,this.handleTextTrackAdd),this.handleTextTrackRemove_=c.bind(this,this.handleTextTrackRemove),this.proxyNativeTextTracks_()),(e.TOUCH_ENABLED&&P.nativeControlsForTouch===!0||e.IS_IPHONE||e.IS_NATIVE_ANDROID)&&this.setControls(!0),this.triggerReady()}return j.prototype.dispose=function(){var I=this.el().textTracks,W=this.textTracks();I&&I.removeEventListener&&(I.removeEventListener("change",this.handleTextTrackChange_),I.removeEventListener("addtrack",this.handleTextTrackAdd_),I.removeEventListener("removetrack",this.handleTextTrackRemove_));for(var $=W.length;$--;)W.removeTrack_(W[$]);j.disposeMediaElement(this.el_),A.prototype.dispose.call(this)},j.prototype.createEl=function(){var I=this.options_.tag;if(!I||this.movingMediaElementInDOM===!1)if(I){var W=I.cloneNode(!0);I.parentNode.insertBefore(W,I),j.disposeMediaElement(I),I=W}else{I=E.default.createElement("video");var $=this.options_.tag&&r.getElAttributes(this.options_.tag),Y=B.default({},$);(!e.TOUCH_ENABLED||this.options_.nativeControlsForTouch!==!0)&&delete Y.controls,r.setElAttributes(I,w.default(Y,{id:this.options_.techId,class:"vjs-tech"}))}for(var X=["autoplay","preload","loop","muted"],K=X.length-1;K>=0;K--){var it=X[K],lt={};typeof this.options_[it]!="undefined"&&(lt[it]=this.options_[it]),r.setElAttributes(I,lt)}return I},j.prototype.handleLateInit_=function(I){var W=this;if(!(I.networkState===0||I.networkState===3)){if(I.readyState===0){var $=function(){var X=!1,K=function(){X=!0};W.on("loadstart",K);var it=function(){X||this.trigger("loadstart")};return W.on("loadedmetadata",it),W.ready(function(){this.off("loadstart",K),this.off("loadedmetadata",it),X||this.trigger("loadstart")}),{v:void 0}}();if(typeof $=="object")return $.v}var Y=["loadstart"];Y.push("loadedmetadata"),I.readyState>=2&&Y.push("loadeddata"),I.readyState>=3&&Y.push("canplay"),I.readyState>=4&&Y.push("canplaythrough"),this.ready(function(){Y.forEach(function(X){this.trigger(X)},this)})}},j.prototype.proxyNativeTextTracks_=function(){var I=this.el().textTracks;I&&I.addEventListener&&(I.addEventListener("change",this.handleTextTrackChange_),I.addEventListener("addtrack",this.handleTextTrackAdd_),I.addEventListener("removetrack",this.handleTextTrackRemove_))},j.prototype.handleTextTrackChange=function(I){var W=this.textTracks();this.textTracks().trigger({type:"change",target:W,currentTarget:W,srcElement:W})},j.prototype.handleTextTrackAdd=function(I){this.textTracks().addTrack_(I.track)},j.prototype.handleTextTrackRemove=function(I){this.textTracks().removeTrack_(I.track)},j.prototype.play=function(){this.el_.play()},j.prototype.pause=function(){this.el_.pause()},j.prototype.paused=function(){return this.el_.paused},j.prototype.currentTime=function(){return this.el_.currentTime},j.prototype.setCurrentTime=function(I){try{this.el_.currentTime=I}catch(W){_.default(W,"Video is not ready. (Video.js)")}},j.prototype.duration=function(){return this.el_.duration||0},j.prototype.buffered=function(){return this.el_.buffered},j.prototype.volume=function(){return this.el_.volume},j.prototype.setVolume=function(I){this.el_.volume=I},j.prototype.muted=function(){return this.el_.muted},j.prototype.setMuted=function(I){this.el_.muted=I},j.prototype.width=function(){return this.el_.offsetWidth},j.prototype.height=function(){return this.el_.offsetHeight},j.prototype.supportsFullScreen=function(){if(typeof this.el_.webkitEnterFullScreen=="function"){var I=O.default.navigator.userAgent;if(/Android/.test(I)||!/Chrome|Mac OS X 10.5/.test(I))return!0}return!1},j.prototype.enterFullScreen=function(){var I=this.el_;"webkitDisplayingFullscreen"in I&&this.one("webkitbeginfullscreen",function(){this.one("webkitendfullscreen",function(){this.trigger("fullscreenchange",{isFullscreen:!1})}),this.trigger("fullscreenchange",{isFullscreen:!0})}),I.paused&&I.networkState<=I.HAVE_METADATA?(this.el_.play(),this.setTimeout(function(){I.pause(),I.webkitEnterFullScreen()},0)):I.webkitEnterFullScreen()},j.prototype.exitFullScreen=function(){this.el_.webkitExitFullScreen()},j.prototype.src=function(I){if(I===void 0)return this.el_.src;this.setSrc(I)},j.prototype.setSrc=function(I){this.el_.src=I},j.prototype.load=function(){this.el_.load()},j.prototype.reset=function(){j.resetMediaElement(this.el_)},j.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},j.prototype.poster=function(){return this.el_.poster},j.prototype.setPoster=function(I){this.el_.poster=I},j.prototype.preload=function(){return this.el_.preload},j.prototype.setPreload=function(I){this.el_.preload=I},j.prototype.autoplay=function(){return this.el_.autoplay},j.prototype.setAutoplay=function(I){this.el_.autoplay=I},j.prototype.controls=function(){return this.el_.controls},j.prototype.setControls=function(I){this.el_.controls=!!I},j.prototype.loop=function(){return this.el_.loop},j.prototype.setLoop=function(I){this.el_.loop=I},j.prototype.error=function(){return this.el_.error},j.prototype.seeking=function(){return this.el_.seeking},j.prototype.seekable=function(){return this.el_.seekable},j.prototype.ended=function(){return this.el_.ended},j.prototype.defaultMuted=function(){return this.el_.defaultMuted},j.prototype.playbackRate=function(){return this.el_.playbackRate},j.prototype.played=function(){return this.el_.played},j.prototype.setPlaybackRate=function(I){this.el_.playbackRate=I},j.prototype.networkState=function(){return this.el_.networkState},j.prototype.readyState=function(){return this.el_.readyState},j.prototype.videoWidth=function(){return this.el_.videoWidth},j.prototype.videoHeight=function(){return this.el_.videoHeight},j.prototype.textTracks=function(){return A.prototype.textTracks.call(this)},j.prototype.addTextTrack=function(I,W,$){return this.featuresNativeTextTracks?this.el_.addTextTrack(I,W,$):A.prototype.addTextTrack.call(this,I,W,$)},j.prototype.addRemoteTextTrack=function(){var I=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];if(!this.featuresNativeTextTracks)return A.prototype.addRemoteTextTrack.call(this,I);var W=E.default.createElement("track");return I.kind&&(W.kind=I.kind),I.label&&(W.label=I.label),(I.language||I.srclang)&&(W.srclang=I.language||I.srclang),I.default&&(W.default=I.default),I.id&&(W.id=I.id),I.src&&(W.src=I.src),this.el().appendChild(W),this.remoteTextTrackEls().addTrackElement_(W),this.remoteTextTracks().addTrack_(W.track),W},j.prototype.removeRemoteTextTrack=function(I){if(!this.featuresNativeTextTracks)return A.prototype.removeRemoteTextTrack.call(this,I);var W=void 0,$=void 0,Y=this.remoteTextTrackEls().getTrackElementByTrack_(I);for(this.remoteTextTrackEls().removeTrackElement_(Y),this.remoteTextTracks().removeTrack_(I),W=this.$$("track"),$=W.length;$--;)(I===W[$]||I===W[$].track)&&this.el().removeChild(W[$])},j}(v.default);D.TEST_VID=E.default.createElement("video");var S=E.default.createElement("track");S.kind="captions",S.srclang="en",S.label="English",D.TEST_VID.appendChild(S),D.isSupported=function(){try{D.TEST_VID.volume=.5}catch(A){return!1}return!!D.TEST_VID.canPlayType},v.default.withSourceHandlers(D),D.nativeSourceHandler={},D.nativeSourceHandler.canPlayType=function(A){try{return D.TEST_VID.canPlayType(A)}catch(j){return""}},D.nativeSourceHandler.canHandleSource=function(A){var j,P;return A.type?D.nativeSourceHandler.canPlayType(A.type):A.src?(P=s.getFileExtension(A.src),D.nativeSourceHandler.canPlayType("video/"+P)):""},D.nativeSourceHandler.handleSource=function(A,j){j.setSrc(A.src)},D.nativeSourceHandler.dispose=function(){},D.registerSourceHandler(D.nativeSourceHandler),D.canControlVolume=function(){var A=D.TEST_VID.volume;return D.TEST_VID.volume=A/2+.1,A!==D.TEST_VID.volume},D.canControlPlaybackRate=function(){var A=D.TEST_VID.playbackRate;return D.TEST_VID.playbackRate=A/2+.1,A!==D.TEST_VID.playbackRate},D.supportsNativeTextTracks=function(){var A;return A=!!D.TEST_VID.textTracks,A&&D.TEST_VID.textTracks.length>0&&(A=typeof D.TEST_VID.textTracks[0].mode!="number"),A&&e.IS_FIREFOX&&(A=!1),A&&!("onremovetrack"in D.TEST_VID.textTracks)&&(A=!1),A},D.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","volumechange"],D.prototype.featuresVolumeControl=D.canControlVolume(),D.prototype.featuresPlaybackRate=D.canControlPlaybackRate(),D.prototype.movingMediaElementInDOM=!e.IS_IOS,D.prototype.featuresFullscreenResize=!0,D.prototype.featuresProgressEvents=!0,D.prototype.featuresNativeTextTracks=D.supportsNativeTextTracks();var k=void 0,J=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,R=/^video\/mp4/i;D.patchCanPlayType=function(){e.ANDROID_VERSION>=4&&(k||(k=D.TEST_VID.constructor.prototype.canPlayType),D.TEST_VID.constructor.prototype.canPlayType=function(A){return A&&J.test(A)?"maybe":k.call(this,A)}),e.IS_OLD_ANDROID&&(k||(k=D.TEST_VID.constructor.prototype.canPlayType),D.TEST_VID.constructor.prototype.canPlayType=function(A){return A&&R.test(A)?"maybe":k.call(this,A)})},D.unpatchCanPlayType=function(){var A=D.TEST_VID.constructor.prototype.canPlayType;return D.TEST_VID.constructor.prototype.canPlayType=k,k=null,A},D.patchCanPlayType(),D.disposeMediaElement=function(A){if(!!A){for(A.parentNode&&A.parentNode.removeChild(A);A.hasChildNodes();)A.removeChild(A.firstChild);A.removeAttribute("src"),typeof A.load=="function"&&function(){try{A.load()}catch(j){}}()}},D.resetMediaElement=function(A){if(!!A){for(var j=A.querySelectorAll("source"),P=j.length;P--;)A.removeChild(j[P]);A.removeAttribute("src"),typeof A.load=="function"&&function(){try{A.load()}catch(I){}}()}},i.default.registerComponent("Html5",D),v.default.registerTech("Html5",D),l.default=D,C.exports=l.default},{"../component":65,"../utils/browser.js":125,"../utils/dom.js":128,"../utils/fn.js":130,"../utils/log.js":133,"../utils/merge-options.js":134,"../utils/url.js":138,"./tech.js":115,"global/document":1,"global/window":2,"object.assign":45}],114:[function(t,C,l){"use strict";l.__esModule=!0;function p(d){return d&&d.__esModule?d:{default:d}}function a(d,c){if(!(d instanceof c))throw new TypeError("Cannot call a class as a function")}function m(d,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof c);d.prototype=Object.create(c&&c.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(d,c):d.__proto__=c)}var h=t("../component.js"),f=p(h),v=t("./tech.js"),u=p(v),i=t("global/window"),o=p(i),r=t("../utils/to-title-case.js"),g=p(r),s=function(d){m(c,d);function c(T,_,F){if(a(this,c),d.call(this,T,_,F),!_.playerOptions.sources||_.playerOptions.sources.length===0)for(var e=0,n=_.playerOptions.techOrder;e<n.length;e++){var E=g.default(n[e]),y=u.default.getTech(E);if(E||(y=f.default.getComponent(E)),y&&y.isSupported()){T.loadTech_(E);break}}else T.src(_.playerOptions.sources)}return c}(f.default);f.default.registerComponent("MediaLoader",s),l.default=s,C.exports=l.default},{"../component.js":65,"../utils/to-title-case.js":137,"./tech.js":115,"global/window":2}],115:[function(t,C,l){"use strict";l.__esModule=!0;function p(R){if(R&&R.__esModule)return R;var A={};if(R!=null)for(var j in R)Object.prototype.hasOwnProperty.call(R,j)&&(A[j]=R[j]);return A.default=R,A}function a(R){return R&&R.__esModule?R:{default:R}}function m(R,A){if(!(R instanceof A))throw new TypeError("Cannot call a class as a function")}function h(R,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);R.prototype=Object.create(A&&A.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(R,A):R.__proto__=A)}var f=t("../component"),v=a(f),u=t("../tracks/html-track-element"),i=a(u),o=t("../tracks/html-track-element-list"),r=a(o),g=t("../utils/merge-options.js"),s=a(g),d=t("../tracks/text-track"),c=a(d),T=t("../tracks/text-track-list"),_=a(T),F=t("../utils/fn.js"),e=p(F),n=t("../utils/log.js"),E=a(n),y=t("../utils/time-ranges.js"),O=t("../utils/buffer.js"),b=t("../media-error.js"),w=a(b),x=t("global/window"),B=a(x),D=t("global/document"),S=a(D),k=function(R){h(A,R);function A(){var j=arguments.length<=0||arguments[0]===void 0?{}:arguments[0],P=arguments.length<=1||arguments[1]===void 0?function(){}:arguments[1];m(this,A),j.reportTouchActivity=!1,R.call(this,null,j,P),this.hasStarted_=!1,this.on("playing",function(){this.hasStarted_=!0}),this.on("loadstart",function(){this.hasStarted_=!1}),this.textTracks_=j.textTracks,this.featuresProgressEvents||this.manualProgressOn(),this.featuresTimeupdateEvents||this.manualTimeUpdatesOn(),(j.nativeCaptions===!1||j.nativeTextTracks===!1)&&(this.featuresNativeTextTracks=!1),this.featuresNativeTextTracks||this.on("ready",this.emulateTextTracks),this.initTextTrackListeners(),this.emitTapEvents()}A.prototype.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},A.prototype.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},A.prototype.trackProgress=function(){this.stopTrackingProgress(),this.progressInterval=this.setInterval(e.bind(this,function(){var P=this.bufferedPercent();this.bufferedPercent_!==P&&this.trigger("progress"),this.bufferedPercent_=P,P===1&&this.stopTrackingProgress()}),500)},A.prototype.onDurationChange=function(){this.duration_=this.duration()},A.prototype.buffered=function(){return y.createTimeRange(0,0)},A.prototype.bufferedPercent=function(){return O.bufferedPercent(this.buffered(),this.duration_)},A.prototype.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)};/*! Time Tracking -------------------------------------------------------------- */return A.prototype.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},A.prototype.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},A.prototype.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},A.prototype.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},A.prototype.dispose=function(){var P=this.textTracks();if(P)for(var I=P.length;I--;)this.removeRemoteTextTrack(P[I]);this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),R.prototype.dispose.call(this)},A.prototype.reset=function(){},A.prototype.error=function(P){return P!==void 0&&(P instanceof w.default?this.error_=P:this.error_=new w.default(P),this.trigger("error")),this.error_},A.prototype.played=function(){return this.hasStarted_?y.createTimeRange(0,0):y.createTimeRange()},A.prototype.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},A.prototype.initTextTrackListeners=function(){var P=e.bind(this,function(){this.trigger("texttrackchange")}),I=this.textTracks();!I||(I.addEventListener("removetrack",P),I.addEventListener("addtrack",P),this.on("dispose",e.bind(this,function(){I.removeEventListener("removetrack",P),I.removeEventListener("addtrack",P)})))},A.prototype.emulateTextTracks=function(){var P=this,I=this.textTracks();if(!!I){if(!B.default.WebVTT&&this.el().parentNode!=null){var W=S.default.createElement("script");W.src=this.options_["vtt.js"]||"https://cdn.rawgit.com/gkatsev/vtt.js/vjs-v0.12.1/dist/vtt.min.js",this.el().parentNode.appendChild(W),B.default.WebVTT=!0}var $=function(){return P.trigger("texttrackchange")},Y=function(){$();for(var K=0;K<I.length;K++){var it=I[K];it.removeEventListener("cuechange",$),it.mode==="showing"&&it.addEventListener("cuechange",$)}};Y(),I.addEventListener("change",Y),this.on("dispose",function(){I.removeEventListener("change",Y)})}},A.prototype.textTracks=function(){return this.textTracks_=this.textTracks_||new _.default,this.textTracks_},A.prototype.remoteTextTracks=function(){return this.remoteTextTracks_=this.remoteTextTracks_||new _.default,this.remoteTextTracks_},A.prototype.remoteTextTrackEls=function(){return this.remoteTextTrackEls_=this.remoteTextTrackEls_||new r.default,this.remoteTextTrackEls_},A.prototype.addTextTrack=function(P,I,W){if(!P)throw new Error("TextTrack kind is required but was not provided");return J(this,P,I,W)},A.prototype.addRemoteTextTrack=function(P){var I=s.default(P,{tech:this}),W=new i.default(I);return this.remoteTextTrackEls().addTrackElement_(W),this.remoteTextTracks().addTrack_(W.track),this.textTracks().addTrack_(W.track),W},A.prototype.removeRemoteTextTrack=function(P){this.textTracks().removeTrack_(P);var I=this.remoteTextTrackEls().getTrackElementByTrack_(P);this.remoteTextTrackEls().removeTrackElement_(I),this.remoteTextTracks().removeTrack_(P)},A.prototype.setPoster=function(){},A.prototype.canPlayType=function(){return""},A.isTech=function(P){return P.prototype instanceof A||P instanceof A||P===A},A.registerTech=function(P,I){if(A.techs_||(A.techs_={}),!A.isTech(I))throw new Error("Tech "+P+" must be a Tech");return A.techs_[P]=I,I},A.getTech=function(P){if(A.techs_&&A.techs_[P])return A.techs_[P];if(B.default&&B.default.videojs&&B.default.videojs[P])return E.default.warn("The "+P+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),B.default.videojs[P]},A}(v.default);k.prototype.textTracks_;var J=function(A,j,P,I){var W=arguments.length<=4||arguments[4]===void 0?{}:arguments[4],$=A.textTracks();W.kind=j,P&&(W.label=P),I&&(W.language=I),W.tech=A;var Y=new c.default(W);return $.addTrack_(Y),Y};k.prototype.featuresVolumeControl=!0,k.prototype.featuresFullscreenResize=!1,k.prototype.featuresPlaybackRate=!1,k.prototype.featuresProgressEvents=!1,k.prototype.featuresTimeupdateEvents=!1,k.prototype.featuresNativeTextTracks=!1,k.withSourceHandlers=function(R){R.registerSourceHandler=function(j,P){var I=R.sourceHandlers;I||(I=R.sourceHandlers=[]),P===void 0&&(P=I.length),I.splice(P,0,j)},R.canPlayType=function(j){for(var P=R.sourceHandlers||[],I=void 0,W=0;W<P.length;W++)if(I=P[W].canPlayType(j),I)return I;return""},R.selectSourceHandler=function(j){for(var P=R.sourceHandlers||[],I=void 0,W=0;W<P.length;W++)if(I=P[W].canHandleSource(j),I)return P[W];return null},R.canPlaySource=function(j){var P=R.selectSourceHandler(j);return P?P.canHandleSource(j):""};var A=["seekable","duration"];A.forEach(function(j){var P=this[j];typeof P=="function"&&(this[j]=function(){return this.sourceHandler_&&this.sourceHandler_[j]?this.sourceHandler_[j].apply(this.sourceHandler_,arguments):P.apply(this,arguments)})},R.prototype),R.prototype.setSource=function(j){var P=R.selectSourceHandler(j);return P||(R.nativeSourceHandler?P=R.nativeSourceHandler:E.default.error("No source hander found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler),this.currentSource_=j,this.sourceHandler_=P.handleSource(j,this),this.on("dispose",this.disposeSourceHandler),this},R.prototype.disposeSourceHandler=function(){this.sourceHandler_&&this.sourceHandler_.dispose&&this.sourceHandler_.dispose()}},v.default.registerComponent("Tech",k),v.default.registerComponent("MediaTechController",k),k.registerTech("Tech",k),l.default=k,C.exports=l.default},{"../component":65,"../media-error.js":101,"../tracks/html-track-element":117,"../tracks/html-track-element-list":116,"../tracks/text-track":124,"../tracks/text-track-list":122,"../utils/buffer.js":126,"../utils/fn.js":130,"../utils/log.js":133,"../utils/merge-options.js":134,"../utils/time-ranges.js":136,"global/document":1,"global/window":2}],116:[function(t,C,l){"use strict";l.__esModule=!0;function p(o){return o&&o.__esModule?o:{default:o}}function a(o){if(o&&o.__esModule)return o;var r={};if(o!=null)for(var g in o)Object.prototype.hasOwnProperty.call(o,g)&&(r[g]=o[g]);return r.default=o,r}function m(o,r){if(!(o instanceof r))throw new TypeError("Cannot call a class as a function")}var h=t("../utils/browser.js"),f=a(h),v=t("global/document"),u=p(v),i=function(){function o(){var r=arguments.length<=0||arguments[0]===void 0?[]:arguments[0];m(this,o);var g=this;if(f.IS_IE8){g=u.default.createElement("custom");for(var s in o.prototype)s!=="constructor"&&(g[s]=o.prototype[s])}g.trackElements_=[],Object.defineProperty(g,"length",{get:function(){return this.trackElements_.length}});for(var d=0,c=r.length;d<c;d++)g.addTrackElement_(r[d]);if(f.IS_IE8)return g}return o.prototype.addTrackElement_=function(g){this.trackElements_.push(g)},o.prototype.getTrackElementByTrack_=function(g){for(var s=void 0,d=0,c=this.trackElements_.length;d<c;d++)if(g===this.trackElements_[d].track){s=this.trackElements_[d];break}return s},o.prototype.removeTrackElement_=function(g){for(var s=0,d=this.trackElements_.length;s<d;s++)if(g===this.trackElements_[s]){this.trackElements_.splice(s,1);break}},o}();l.default=i,C.exports=l.default},{"../utils/browser.js":125,"global/document":1}],117:[function(t,C,l){"use strict";l.__esModule=!0;function p(e){return e&&e.__esModule?e:{default:e}}function a(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var E in e)Object.prototype.hasOwnProperty.call(e,E)&&(n[E]=e[E]);return n.default=e,n}function m(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function h(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}var f=t("../utils/browser.js"),v=a(f),u=t("global/document"),i=p(u),o=t("../event-target"),r=p(o),g=t("../tracks/text-track"),s=p(g),d=0,c=1,T=2,_=3,F=function(e){h(n,e);function n(){var E=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];m(this,n),e.call(this);var y=void 0,O=this;if(v.IS_IE8){O=i.default.createElement("custom");for(var b in n.prototype)b!=="constructor"&&(O[b]=n.prototype[b])}var w=new s.default(E);if(O.kind=w.kind,O.src=w.src,O.srclang=w.language,O.label=w.label,O.default=w.default,Object.defineProperty(O,"readyState",{get:function(){return y}}),Object.defineProperty(O,"track",{get:function(){return w}}),y=d,w.addEventListener("loadeddata",function(){y=T,O.trigger({type:"load",target:O})}),v.IS_IE8)return O}return n}(r.default);F.prototype.allowedEvents_={load:"load"},F.NONE=d,F.LOADING=c,F.LOADED=T,F.ERROR=_,l.default=F,C.exports=l.default},{"../event-target":97,"../tracks/text-track":124,"../utils/browser.js":125,"global/document":1}],118:[function(t,C,l){"use strict";l.__esModule=!0;function p(i){return i&&i.__esModule?i:{default:i}}function a(i){if(i&&i.__esModule)return i;var o={};if(i!=null)for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(o[r]=i[r]);return o.default=i,o}var m=t("../utils/browser.js"),h=a(m),f=t("global/document"),v=p(f),u=function i(o){var r=this;if(h.IS_IE8){r=v.default.createElement("custom");for(var g in i.prototype)g!=="constructor"&&(r[g]=i.prototype[g])}if(i.prototype.setCues_.call(r,o),Object.defineProperty(r,"length",{get:function(){return this.length_}}),h.IS_IE8)return r};u.prototype.setCues_=function(i){var o=this.length||0,r=0,g=i.length;this.cues_=i,this.length_=i.length;var s=function(c){""+c in this||Object.defineProperty(this,""+c,{get:function(){return this.cues_[c]}})};if(o<g)for(r=o;r<g;r++)s.call(this,r)},u.prototype.getCueById=function(i){for(var o=null,r=0,g=this.length;r<g;r++){var s=this[r];if(s.id===i){o=s;break}}return o},l.default=u,C.exports=l.default},{"../utils/browser.js":125,"global/document":1}],119:[function(t,C,l){"use strict";l.__esModule=!0;function p(x){if(x&&x.__esModule)return x;var B={};if(x!=null)for(var D in x)Object.prototype.hasOwnProperty.call(x,D)&&(B[D]=x[D]);return B.default=x,B}function a(x){return x&&x.__esModule?x:{default:x}}function m(x,B){if(!(x instanceof B))throw new TypeError("Cannot call a class as a function")}function h(x,B){if(typeof B!="function"&&B!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof B);x.prototype=Object.create(B&&B.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),B&&(Object.setPrototypeOf?Object.setPrototypeOf(x,B):x.__proto__=B)}var f=t("../component"),v=a(f),u=t("../menu/menu.js"),i=a(u),o=t("../menu/menu-item.js"),r=a(o),g=t("../menu/menu-button.js"),s=a(g),d=t("../utils/fn.js"),c=p(d),T=t("global/document"),_=a(T),F=t("global/window"),e=a(F),n="#222",E="#ccc",y={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'},O=function(x){h(B,x);function B(D,S,k){m(this,B),x.call(this,D,S,k),D.on("loadstart",c.bind(this,this.toggleDisplay)),D.on("texttrackchange",c.bind(this,this.updateDisplay)),D.ready(c.bind(this,function(){if(D.tech_&&D.tech_.featuresNativeTextTracks){this.hide();return}D.on("fullscreenchange",c.bind(this,this.updateDisplay));for(var J=this.options_.playerOptions.tracks||[],R=0;R<J.length;R++){var A=J[R];this.player_.addRemoteTextTrack(A)}}))}return B.prototype.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},B.prototype.createEl=function(){return x.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"})},B.prototype.clearDisplay=function(){typeof e.default.WebVTT=="function"&&e.default.WebVTT.processCues(e.default,[],this.el_)},B.prototype.updateDisplay=function(){var S=this.player_.textTracks();if(this.clearDisplay(),!!S)for(var k=0;k<S.length;k++){var J=S[k];J.mode==="showing"&&this.updateForTrack(J)}},B.prototype.updateForTrack=function(S){if(!(typeof e.default.WebVTT!="function"||!S.activeCues)){for(var k=this.player_.textTrackSettings.getValues(),J=[],R=0;R<S.activeCues.length;R++)J.push(S.activeCues[R]);e.default.WebVTT.processCues(e.default,S.activeCues,this.el_);for(var A=J.length;A--;){var j=J[A];if(!!j){var P=j.displayState;if(k.color&&(P.firstChild.style.color=k.color),k.textOpacity&&w(P.firstChild,"color",b(k.color||"#fff",k.textOpacity)),k.backgroundColor&&(P.firstChild.style.backgroundColor=k.backgroundColor),k.backgroundOpacity&&w(P.firstChild,"backgroundColor",b(k.backgroundColor||"#000",k.backgroundOpacity)),k.windowColor&&(k.windowOpacity?w(P,"backgroundColor",b(k.windowColor,k.windowOpacity)):P.style.backgroundColor=k.windowColor),k.edgeStyle&&(k.edgeStyle==="dropshadow"?P.firstChild.style.textShadow="2px 2px 3px "+n+", 2px 2px 4px "+n+", 2px 2px 5px "+n:k.edgeStyle==="raised"?P.firstChild.style.textShadow="1px 1px "+n+", 2px 2px "+n+", 3px 3px "+n:k.edgeStyle==="depressed"?P.firstChild.style.textShadow="1px 1px "+E+", 0 1px "+E+", -1px -1px "+n+", 0 -1px "+n:k.edgeStyle==="uniform"&&(P.firstChild.style.textShadow="0 0 4px "+n+", 0 0 4px "+n+", 0 0 4px "+n+", 0 0 4px "+n)),k.fontPercent&&k.fontPercent!==1){var I=e.default.parseFloat(P.style.fontSize);P.style.fontSize=I*k.fontPercent+"px",P.style.height="auto",P.style.top="auto",P.style.bottom="2px"}k.fontFamily&&k.fontFamily!=="default"&&(k.fontFamily==="small-caps"?P.firstChild.style.fontVariant="small-caps":P.firstChild.style.fontFamily=y[k.fontFamily])}}}},B}(v.default);function b(x,B){return"rgba("+parseInt(x[1]+x[1],16)+","+parseInt(x[2]+x[2],16)+","+parseInt(x[3]+x[3],16)+","+B+")"}function w(x,B,D){try{x.style[B]=D}catch(S){}}v.default.registerComponent("TextTrackDisplay",O),l.default=O,C.exports=l.default},{"../component":65,"../menu/menu-button.js":102,"../menu/menu-item.js":103,"../menu/menu.js":104,"../utils/fn.js":130,"global/document":1,"global/window":2}],120:[function(t,C,l){"use strict";l.__esModule=!0;var p={disabled:"disabled",hidden:"hidden",showing:"showing"},a={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"};l.TextTrackMode=p,l.TextTrackKind=a},{}],121:[function(t,C,l){"use strict";l.__esModule=!0;var p=function(f){var v=["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(u,i,o){return f[i]&&(u[i]=f[i]),u},{cues:f.cues&&Array.prototype.map.call(f.cues,function(u){return{startTime:u.startTime,endTime:u.endTime,text:u.text,id:u.id}})});return v},a=function(f){var v=f.$$("track"),u=Array.prototype.map.call(v,function(o){return o.track}),i=Array.prototype.map.call(v,function(o){var r=p(o.track);return o.src&&(r.src=o.src),r});return i.concat(Array.prototype.filter.call(f.textTracks(),function(o){return u.indexOf(o)===-1}).map(p))},m=function(f,v){return f.forEach(function(u){var i=v.addRemoteTextTrack(u).track;!u.src&&u.cues&&u.cues.forEach(function(o){return i.addCue(o)})}),v.textTracks()};l.default={textTracksToJson:a,jsonToTextTracks:m,trackToJson_:p},C.exports=l.default},{}],122:[function(t,C,l){"use strict";l.__esModule=!0;function p(d){if(d&&d.__esModule)return d;var c={};if(d!=null)for(var T in d)Object.prototype.hasOwnProperty.call(d,T)&&(c[T]=d[T]);return c.default=d,c}function a(d){return d&&d.__esModule?d:{default:d}}var m=t("../event-target"),h=a(m),f=t("../utils/fn.js"),v=p(f),u=t("../utils/browser.js"),i=p(u),o=t("global/document"),r=a(o),g=function d(c){var T=this;if(i.IS_IE8){T=r.default.createElement("custom");for(var _ in d.prototype)_!=="constructor"&&(T[_]=d.prototype[_])}c=c||[],T.tracks_=[],Object.defineProperty(T,"length",{get:function(){return this.tracks_.length}});for(var F=0;F<c.length;F++)T.addTrack_(c[F]);if(i.IS_IE8)return T};g.prototype=Object.create(h.default.prototype),g.prototype.constructor=g,g.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack"};for(var s in g.prototype.allowedEvents_)g.prototype["on"+s]=null;g.prototype.addTrack_=function(d){var c=this.tracks_.length;""+c in this||Object.defineProperty(this,c,{get:function(){return this.tracks_[c]}}),d.addEventListener("modechange",v.bind(this,function(){this.trigger("change")})),this.tracks_.push(d),this.trigger({type:"addtrack",track:d})},g.prototype.removeTrack_=function(d){for(var c=void 0,T=0,_=this.length;T<_;T++)if(this[T]===d){c=this[T],this.tracks_.splice(T,1);break}!c||this.trigger({type:"removetrack",track:c})},g.prototype.getTrackById=function(d){for(var c=null,T=0,_=this.length;T<_;T++){var F=this[T];if(F.id===d){c=F;break}}return c},l.default=g,C.exports=l.default},{"../event-target":97,"../utils/browser.js":125,"../utils/fn.js":130,"global/document":1}],123:[function(t,C,l){"use strict";l.__esModule=!0;function p(y){if(y&&y.__esModule)return y;var O={};if(y!=null)for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&(O[b]=y[b]);return O.default=y,O}function a(y){return y&&y.__esModule?y:{default:y}}function m(y,O){if(!(y instanceof O))throw new TypeError("Cannot call a class as a function")}function h(y,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);y.prototype=Object.create(O&&O.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(y,O):y.__proto__=O)}var f=t("../component"),v=a(f),u=t("../utils/events.js"),i=p(u),o=t("../utils/fn.js"),r=p(o),g=t("../utils/log.js"),s=a(g),d=t("safe-json-parse/tuple"),c=a(d),T=t("global/window"),_=a(T),F=function(y){h(O,y);function O(b,w){m(this,O),y.call(this,b,w),this.hide(),w.persistTextTrackSettings===void 0&&(this.options_.persistTextTrackSettings=this.options_.playerOptions.persistTextTrackSettings),i.on(this.$(".vjs-done-button"),"click",r.bind(this,function(){this.saveSettings(),this.hide()})),i.on(this.$(".vjs-default-button"),"click",r.bind(this,function(){this.$(".vjs-fg-color > select").selectedIndex=0,this.$(".vjs-bg-color > select").selectedIndex=0,this.$(".window-color > select").selectedIndex=0,this.$(".vjs-text-opacity > select").selectedIndex=0,this.$(".vjs-bg-opacity > select").selectedIndex=0,this.$(".vjs-window-opacity > select").selectedIndex=0,this.$(".vjs-edge-style select").selectedIndex=0,this.$(".vjs-font-family select").selectedIndex=0,this.$(".vjs-font-percent select").selectedIndex=2,this.updateDisplay()})),i.on(this.$(".vjs-fg-color > select"),"change",r.bind(this,this.updateDisplay)),i.on(this.$(".vjs-bg-color > select"),"change",r.bind(this,this.updateDisplay)),i.on(this.$(".window-color > select"),"change",r.bind(this,this.updateDisplay)),i.on(this.$(".vjs-text-opacity > select"),"change",r.bind(this,this.updateDisplay)),i.on(this.$(".vjs-bg-opacity > select"),"change",r.bind(this,this.updateDisplay)),i.on(this.$(".vjs-window-opacity > select"),"change",r.bind(this,this.updateDisplay)),i.on(this.$(".vjs-font-percent select"),"change",r.bind(this,this.updateDisplay)),i.on(this.$(".vjs-edge-style select"),"change",r.bind(this,this.updateDisplay)),i.on(this.$(".vjs-font-family select"),"change",r.bind(this,this.updateDisplay)),this.options_.persistTextTrackSettings&&this.restoreSettings()}return O.prototype.createEl=function(){return y.prototype.createEl.call(this,"div",{className:"vjs-caption-settings vjs-modal-overlay",innerHTML:E()})},O.prototype.getValues=function(){var w=e(this.$(".vjs-edge-style select")),x=e(this.$(".vjs-font-family select")),B=e(this.$(".vjs-fg-color > select")),D=e(this.$(".vjs-text-opacity > select")),S=e(this.$(".vjs-bg-color > select")),k=e(this.$(".vjs-bg-opacity > select")),J=e(this.$(".window-color > select")),R=e(this.$(".vjs-window-opacity > select")),A=_.default.parseFloat(e(this.$(".vjs-font-percent > select"))),j={backgroundOpacity:k,textOpacity:D,windowOpacity:R,edgeStyle:w,fontFamily:x,color:B,backgroundColor:S,windowColor:J,fontPercent:A};for(var P in j)(j[P]===""||j[P]==="none"||P==="fontPercent"&&j[P]===1)&&delete j[P];return j},O.prototype.setValues=function(w){n(this.$(".vjs-edge-style select"),w.edgeStyle),n(this.$(".vjs-font-family select"),w.fontFamily),n(this.$(".vjs-fg-color > select"),w.color),n(this.$(".vjs-text-opacity > select"),w.textOpacity),n(this.$(".vjs-bg-color > select"),w.backgroundColor),n(this.$(".vjs-bg-opacity > select"),w.backgroundOpacity),n(this.$(".window-color > select"),w.windowColor),n(this.$(".vjs-window-opacity > select"),w.windowOpacity);var x=w.fontPercent;x&&(x=x.toFixed(2)),n(this.$(".vjs-font-percent > select"),x)},O.prototype.restoreSettings=function(){var w=c.default(_.default.localStorage.getItem("vjs-text-track-settings")),x=w[0],B=w[1];x&&s.default.error(x),B&&this.setValues(B)},O.prototype.saveSettings=function(){if(!!this.options_.persistTextTrackSettings){var w=this.getValues();try{Object.getOwnPropertyNames(w).length>0?_.default.localStorage.setItem("vjs-text-track-settings",JSON.stringify(w)):_.default.localStorage.removeItem("vjs-text-track-settings")}catch(x){}}},O.prototype.updateDisplay=function(){var w=this.player_.getChild("textTrackDisplay");w&&w.updateDisplay()},O}(v.default);v.default.registerComponent("TextTrackSettings",F);function e(y){var O=void 0;return y.selectedOptions?O=y.selectedOptions[0]:y.options&&(O=y.options[y.options.selectedIndex]),O.value}function n(y,O){if(!!O){var b=void 0;for(b=0;b<y.options.length;b++){var w=y.options[b];if(w.value===O)break}y.selectedIndex=b}}function E(){var y=`<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> <!-- vjs-fg-color -->
|
|
<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> <!-- vjs-bg-color -->
|
|
<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> <!-- vjs-window-color -->
|
|
</div> <!-- vjs-tracksettings -->
|
|
<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> <!-- vjs-font-percent -->
|
|
<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> <!-- vjs-edge-style -->
|
|
<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> <!-- vjs-font-family -->
|
|
</div>
|
|
</div>
|
|
<div class="vjs-tracksettings-controls">
|
|
<button class="vjs-default-button">Defaults</button>
|
|
<button class="vjs-done-button">Done</button>
|
|
</div>`;return y}l.default=F,C.exports=l.default},{"../component":65,"../utils/events.js":129,"../utils/fn.js":130,"../utils/log.js":133,"global/window":2,"safe-json-parse/tuple":53}],124:[function(t,C,l){"use strict";l.__esModule=!0;function p(S){if(S&&S.__esModule)return S;var k={};if(S!=null)for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(k[J]=S[J]);return k.default=S,k}function a(S){return S&&S.__esModule?S:{default:S}}var m=t("./text-track-cue-list"),h=a(m),f=t("../utils/fn.js"),v=p(f),u=t("../utils/guid.js"),i=p(u),o=t("../utils/browser.js"),r=p(o),g=t("./text-track-enums"),s=p(g),d=t("../utils/log.js"),c=a(d),T=t("../event-target"),_=a(T),F=t("global/document"),e=a(F),n=t("global/window"),E=a(n),y=t("../utils/url.js"),O=t("xhr"),b=a(O),w=function S(){var k=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];if(!k.tech)throw new Error("A tech was not provided.");var J=this;if(r.IS_IE8){J=e.default.createElement("custom");for(var R in S.prototype)R!=="constructor"&&(J[R]=S.prototype[R])}J.tech_=k.tech;var A=s.TextTrackMode[k.mode]||"disabled",j=s.TextTrackKind[k.kind]||"subtitles",P=k.label||"",I=k.language||k.srclang||"",W=k.id||"vjs_text_track_"+i.newGUID();(j==="metadata"||j==="chapters")&&(A="hidden"),J.cues_=[],J.activeCues_=[];var $=new h.default(J.cues_),Y=new h.default(J.activeCues_),X=!1,K=v.bind(J,function(){this.activeCues,X&&(this.trigger("cuechange"),X=!1)});if(A!=="disabled"&&J.tech_.on("timeupdate",K),Object.defineProperty(J,"kind",{get:function(){return j},set:Function.prototype}),Object.defineProperty(J,"label",{get:function(){return P},set:Function.prototype}),Object.defineProperty(J,"language",{get:function(){return I},set:Function.prototype}),Object.defineProperty(J,"id",{get:function(){return W},set:Function.prototype}),Object.defineProperty(J,"mode",{get:function(){return A},set:function(lt){!s.TextTrackMode[lt]||(A=lt,A==="showing"&&this.tech_.on("timeupdate",K),this.trigger("modechange"))}}),Object.defineProperty(J,"cues",{get:function(){return this.loaded_?$:null},set:Function.prototype}),Object.defineProperty(J,"activeCues",{get:function(){if(!this.loaded_)return null;if(this.cues.length===0)return Y;for(var lt=this.tech_.currentTime(),yt=[],mt=0,bt=this.cues.length;mt<bt;mt++){var N=this.cues[mt];(N.startTime<=lt&&N.endTime>=lt||N.startTime===N.endTime&&N.startTime<=lt&&N.startTime+.5>=lt)&&yt.push(N)}if(X=!1,yt.length!==this.activeCues_.length)X=!0;else for(var mt=0;mt<yt.length;mt++)D.call(this.activeCues_,yt[mt])===-1&&(X=!0);return this.activeCues_=yt,Y.setCues_(this.activeCues_),Y},set:Function.prototype}),k.src?(J.src=k.src,B(k.src,J)):J.loaded_=!0,r.IS_IE8)return J};w.prototype=Object.create(_.default.prototype),w.prototype.constructor=w,w.prototype.allowedEvents_={cuechange:"cuechange"},w.prototype.addCue=function(S){var k=this.tech_.textTracks();if(k)for(var J=0;J<k.length;J++)k[J]!==this&&k[J].removeCue(S);this.cues_.push(S),this.cues.setCues_(this.cues_)},w.prototype.removeCue=function(S){for(var k=!1,J=0,R=this.cues_.length;J<R;J++){var A=this.cues_[J];A===S&&(this.cues_.splice(J,1),k=!0)}k&&this.cues.setCues_(this.cues_)};var x=function(k,J){var R=new E.default.WebVTT.Parser(E.default,E.default.vttjs,E.default.WebVTT.StringDecoder());R.oncue=function(A){J.addCue(A)},R.onparsingerror=function(A){c.default.error(A)},R.onflush=function(){J.trigger({type:"loadeddata",target:J})},R.parse(k),R.flush()},B=function(k,J){var R={uri:k},A=y.isCrossOrigin(k);A&&(R.cors=A),b.default(R,v.bind(this,function(j,P,I){if(j)return c.default.error(j,P);J.loaded_=!0,typeof E.default.WebVTT!="function"?E.default.setTimeout(function(){x(I,J)},100):x(I,J)}))},D=function(k,J){if(this==null)throw new TypeError('"this" is null or not defined');var R=Object(this),A=R.length>>>0;if(A===0)return-1;var j=+J||0;if(Math.abs(j)===Infinity&&(j=0),j>=A)return-1;for(var P=Math.max(j>=0?j:A-Math.abs(j),0);P<A;){if(P in R&&R[P]===k)return P;P++}return-1};l.default=w,C.exports=l.default},{"../event-target":97,"../utils/browser.js":125,"../utils/fn.js":130,"../utils/guid.js":132,"../utils/log.js":133,"../utils/url.js":138,"./text-track-cue-list":118,"./text-track-enums":120,"global/document":1,"global/window":2,xhr:55}],125:[function(t,C,l){"use strict";l.__esModule=!0;function p(b){return b&&b.__esModule?b:{default:b}}var a=t("global/document"),m=p(a),h=t("global/window"),f=p(h),v=f.default.navigator.userAgent,u=/AppleWebKit\/([\d.]+)/i.exec(v),i=u?parseFloat(u.pop()):null,o=/iPhone/i.test(v);l.IS_IPHONE=o;var r=/iPad/i.test(v);l.IS_IPAD=r;var g=/iPod/i.test(v);l.IS_IPOD=g;var s=o||r||g;l.IS_IOS=s;var d=function(){var b=v.match(/OS (\d+)_/i);if(b&&b[1])return b[1]}();l.IOS_VERSION=d;var c=/Android/i.test(v);l.IS_ANDROID=c;var T=function(){var b=v.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i),w,x;return b?(w=b[1]&&parseFloat(b[1]),x=b[2]&&parseFloat(b[2]),w&&x?parseFloat(b[1]+"."+b[2]):w||null):null}();l.ANDROID_VERSION=T;var _=c&&/webkit/i.test(v)&&T<2.3;l.IS_OLD_ANDROID=_;var F=c&&T<5&&i<537;l.IS_NATIVE_ANDROID=F;var e=/Firefox/i.test(v);l.IS_FIREFOX=e;var n=/Chrome/i.test(v);l.IS_CHROME=n;var E=/MSIE\s8\.0/.test(v);l.IS_IE8=E;var y=!!("ontouchstart"in f.default||f.default.DocumentTouch&&m.default instanceof f.default.DocumentTouch);l.TOUCH_ENABLED=y;var O="backgroundSize"in m.default.createElement("video").style;l.BACKGROUND_SIZE_SUPPORTED=O},{"global/document":1,"global/window":2}],126:[function(t,C,l){"use strict";l.__esModule=!0,l.bufferedPercent=a;var p=t("./time-ranges.js");function a(m,h){var f=0,v,u;if(!h)return 0;(!m||!m.length)&&(m=p.createTimeRange(0,0));for(var i=0;i<m.length;i++)v=m.start(i),u=m.end(i),u>h&&(u=h),f+=u-v;return f/h}},{"./time-ranges.js":136}],127:[function(t,C,l){"use strict";l.__esModule=!0;function p(f){return f&&f.__esModule?f:{default:f}}var a=t("./log.js"),m=p(a),h={get:function(v,u){return v[u]},set:function(v,u,i){return v[u]=i,!0}};l.default=function(f){var v=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];if(typeof Proxy=="function"){var u=function(){var i={};return Object.keys(v).forEach(function(o){h.hasOwnProperty(o)&&(i[o]=function(){return m.default.warn(v[o]),h[o].apply(this,arguments)})}),{v:new Proxy(f,i)}}();if(typeof u=="object")return u.v}return f},C.exports=l.default},{"./log.js":133}],128:[function(t,C,l){"use strict";l.__esModule=!0,l.getEl=n,l.createEl=E,l.textContent=y,l.insertElFirst=O,l.getElData=x,l.hasElData=B,l.removeElData=D,l.hasElClass=S,l.addElClass=k,l.removeElClass=J,l.toggleElClass=R,l.setElAttributes=A,l.getElAttributes=j,l.blockTextSelection=P,l.unblockTextSelection=I,l.findElPosition=W,l.getPointerPosition=$,l.isEl=Y,l.isTextNode=X,l.emptyEl=K,l.normalizeContent=it,l.appendContent=lt,l.insertContent=yt;var p=h([`Setting attributes in the second argument of createEl()
|
|
has been deprecated. Use the third argument instead.
|
|
createEl(type, properties, attributes). Attempting to set `," to ","."],[`Setting attributes in the second argument of createEl()
|
|
has been deprecated. Use the third argument instead.
|
|
createEl(type, properties, attributes). Attempting to set `," to ","."]);function a(N){if(N&&N.__esModule)return N;var U={};if(N!=null)for(var Z in N)Object.prototype.hasOwnProperty.call(N,Z)&&(U[Z]=N[Z]);return U.default=N,U}function m(N){return N&&N.__esModule?N:{default:N}}function h(N,U){return N.raw=U,N}var f=t("global/document"),v=m(f),u=t("global/window"),i=m(u),o=t("./guid.js"),r=a(o),g=t("./log.js"),s=m(g),d=t("tsml"),c=m(d);function T(N){return typeof N=="string"&&/\S/.test(N)}function _(N){if(/\s/.test(N))throw new Error("class has illegal whitespace characters")}function F(N){return new RegExp("(^|\\s)"+N+"($|\\s)")}function e(N){return function(U,Z){return T(U)?(T(Z)&&(Z=v.default.querySelector(Z)),(Y(Z)?Z:v.default)[N](U)):v.default[N](null)}}function n(N){return N.indexOf("#")===0&&(N=N.slice(1)),v.default.getElementById(N)}function E(){var N=arguments.length<=0||arguments[0]===void 0?"div":arguments[0],U=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],Z=arguments.length<=2||arguments[2]===void 0?{}:arguments[2],nt=v.default.createElement(N);return Object.getOwnPropertyNames(U).forEach(function(st){var ft=U[st];st.indexOf("aria-")!==-1||st==="role"||st==="type"?(s.default.warn(c.default(p,st,ft)),nt.setAttribute(st,ft)):nt[st]=ft}),Object.getOwnPropertyNames(Z).forEach(function(st){var ft=Z[st];nt.setAttribute(st,Z[st])}),nt}function y(N,U){typeof N.textContent=="undefined"?N.innerText=U:N.textContent=U}function O(N,U){U.firstChild?U.insertBefore(N,U.firstChild):U.appendChild(N)}var b={},w="vdata"+new Date().getTime();function x(N){var U=N[w];return U||(U=N[w]=r.newGUID()),b[U]||(b[U]={}),b[U]}function B(N){var U=N[w];return U?!!Object.getOwnPropertyNames(b[U]).length:!1}function D(N){var U=N[w];if(!!U){delete b[U];try{delete N[w]}catch(Z){N.removeAttribute?N.removeAttribute(w):N[w]=null}}}function S(N,U){return N.classList?N.classList.contains(U):(_(U),F(U).test(N.className))}function k(N,U){return N.classList?N.classList.add(U):S(N,U)||(N.className=(N.className+" "+U).trim()),N}function J(N,U){return N.classList?N.classList.remove(U):(_(U),N.className=N.className.split(/\s+/).filter(function(Z){return Z!==U}).join(" ")),N}function R(N,U,Z){var nt=S(N,U);if(typeof Z=="function"&&(Z=Z(N,U)),typeof Z!="boolean"&&(Z=!nt),Z!==nt)return Z?k(N,U):J(N,U),N}function A(N,U){Object.getOwnPropertyNames(U).forEach(function(Z){var nt=U[Z];nt===null||typeof nt=="undefined"||nt===!1?N.removeAttribute(Z):N.setAttribute(Z,nt===!0?"":nt)})}function j(N){var U,Z,nt,st,ft;if(U={},Z=",autoplay,controls,loop,muted,default,",N&&N.attributes&&N.attributes.length>0){nt=N.attributes;for(var G=nt.length-1;G>=0;G--)st=nt[G].name,ft=nt[G].value,(typeof N[st]=="boolean"||Z.indexOf(","+st+",")!==-1)&&(ft=ft!==null),U[st]=ft}return U}function P(){v.default.body.focus(),v.default.onselectstart=function(){return!1}}function I(){v.default.onselectstart=function(){return!0}}function W(N){var U=void 0;if(N.getBoundingClientRect&&N.parentNode&&(U=N.getBoundingClientRect()),!U)return{left:0,top:0};var Z=v.default.documentElement,nt=v.default.body,st=Z.clientLeft||nt.clientLeft||0,ft=i.default.pageXOffset||nt.scrollLeft,G=U.left+ft-st,Et=Z.clientTop||nt.clientTop||0,Ft=i.default.pageYOffset||nt.scrollTop,tt=U.top+Ft-Et;return{left:Math.round(G),top:Math.round(tt)}}function $(N,U){var Z={},nt=W(N),st=N.offsetWidth,ft=N.offsetHeight,G=nt.top,Et=nt.left,Ft=U.pageY,tt=U.pageX;return U.changedTouches&&(tt=U.changedTouches[0].pageX,Ft=U.changedTouches[0].pageY),Z.y=Math.max(0,Math.min(1,(G-Ft+ft)/ft)),Z.x=Math.max(0,Math.min(1,(tt-Et)/st)),Z}function Y(N){return!!N&&typeof N=="object"&&N.nodeType===1}function X(N){return!!N&&typeof N=="object"&&N.nodeType===3}function K(N){for(;N.firstChild;)N.removeChild(N.firstChild);return N}function it(N){return typeof N=="function"&&(N=N()),(Array.isArray(N)?N:[N]).map(function(U){if(typeof U=="function"&&(U=U()),Y(U)||X(U))return U;if(typeof U=="string"&&/\S/.test(U))return v.default.createTextNode(U)}).filter(function(U){return U})}function lt(N,U){return it(U).forEach(function(Z){return N.appendChild(Z)}),N}function yt(N,U){return lt(K(N),U)}var mt=e("querySelector");l.$=mt;var bt=e("querySelectorAll");l.$$=bt},{"./guid.js":132,"./log.js":133,"global/document":1,"global/window":2,tsml:54}],129:[function(t,C,l){"use strict";l.__esModule=!0,l.on=g,l.off=s,l.trigger=d,l.one=c,l.fixEvent=T;function p(e){return e&&e.__esModule?e:{default:e}}function a(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var E in e)Object.prototype.hasOwnProperty.call(e,E)&&(n[E]=e[E]);return n.default=e,n}var m=t("./dom.js"),h=a(m),f=t("./guid.js"),v=a(f),u=t("global/window"),i=p(u),o=t("global/document"),r=p(o);function g(e,n,E){if(Array.isArray(n))return F(g,e,n,E);var y=h.getElData(e);y.handlers||(y.handlers={}),y.handlers[n]||(y.handlers[n]=[]),E.guid||(E.guid=v.newGUID()),y.handlers[n].push(E),y.dispatcher||(y.disabled=!1,y.dispatcher=function(O,b){if(!y.disabled){O=T(O);var w=y.handlers[O.type];if(w)for(var x=w.slice(0),B=0,D=x.length;B<D&&!O.isImmediatePropagationStopped();B++)x[B].call(e,O,b)}}),y.handlers[n].length===1&&(e.addEventListener?e.addEventListener(n,y.dispatcher,!1):e.attachEvent&&e.attachEvent("on"+n,y.dispatcher))}function s(e,n,E){if(!!h.hasElData(e)){var y=h.getElData(e);if(!!y.handlers){if(Array.isArray(n))return F(s,e,n,E);var O=function(D){y.handlers[D]=[],_(e,D)};if(!n){for(var b in y.handlers)O(b);return}var w=y.handlers[n];if(!!w){if(!E){O(n);return}if(E.guid)for(var x=0;x<w.length;x++)w[x].guid===E.guid&&w.splice(x--,1);_(e,n)}}}}function d(e,n,E){var y=h.hasElData(e)?h.getElData(e):{},O=e.parentNode||e.ownerDocument;if(typeof n=="string"&&(n={type:n,target:e}),n=T(n),y.dispatcher&&y.dispatcher.call(e,n,E),O&&!n.isPropagationStopped()&&n.bubbles===!0)d.call(null,O,n,E);else if(!O&&!n.defaultPrevented){var b=h.getElData(n.target);n.target[n.type]&&(b.disabled=!0,typeof n.target[n.type]=="function"&&n.target[n.type](),b.disabled=!1)}return!n.defaultPrevented}function c(e,n,E){if(Array.isArray(n))return F(c,e,n,E);var y=function O(){s(e,n,O),E.apply(this,arguments)};y.guid=E.guid=E.guid||v.newGUID(),g(e,n,y)}function T(e){function n(){return!0}function E(){return!1}if(!e||!e.isPropagationStopped){var y=e||i.default.event;e={};for(var O in y)O!=="layerX"&&O!=="layerY"&&O!=="keyLocation"&&O!=="webkitMovementX"&&O!=="webkitMovementY"&&(O==="returnValue"&&y.preventDefault||(e[O]=y[O]));if(e.target||(e.target=e.srcElement||r.default),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){y.preventDefault&&y.preventDefault(),e.returnValue=!1,y.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){y.stopPropagation&&y.stopPropagation(),e.cancelBubble=!0,y.cancelBubble=!0,e.isPropagationStopped=n},e.isPropagationStopped=E,e.stopImmediatePropagation=function(){y.stopImmediatePropagation&&y.stopImmediatePropagation(),e.isImmediatePropagationStopped=n,e.stopPropagation()},e.isImmediatePropagationStopped=E,e.clientX!=null){var b=r.default.documentElement,w=r.default.body;e.pageX=e.clientX+(b&&b.scrollLeft||w&&w.scrollLeft||0)-(b&&b.clientLeft||w&&w.clientLeft||0),e.pageY=e.clientY+(b&&b.scrollTop||w&&w.scrollTop||0)-(b&&b.clientTop||w&&w.clientTop||0)}e.which=e.charCode||e.keyCode,e.button!=null&&(e.button=e.button&1?0:e.button&4?1:e.button&2?2:0)}return e}function _(e,n){var E=h.getElData(e);E.handlers[n].length===0&&(delete E.handlers[n],e.removeEventListener?e.removeEventListener(n,E.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+n,E.dispatcher)),Object.getOwnPropertyNames(E.handlers).length<=0&&(delete E.handlers,delete E.dispatcher,delete E.disabled),Object.getOwnPropertyNames(E).length===0&&h.removeElData(e)}function F(e,n,E,y){E.forEach(function(O){e(n,O,y)})}},{"./dom.js":128,"./guid.js":132,"global/document":1,"global/window":2}],130:[function(t,C,l){"use strict";l.__esModule=!0;var p=t("./guid.js"),a=function(h,f,v){f.guid||(f.guid=p.newGUID());var u=function(){return f.apply(h,arguments)};return u.guid=v?v+"_"+f.guid:f.guid,u};l.bind=a},{"./guid.js":132}],131:[function(t,C,l){"use strict";l.__esModule=!0;function p(a){var m=arguments.length<=1||arguments[1]===void 0?a:arguments[1];return function(){a=a<0?0:a;var h=Math.floor(a%60),f=Math.floor(a/60%60),v=Math.floor(a/3600),u=Math.floor(m/60%60),i=Math.floor(m/3600);return(isNaN(a)||a===Infinity)&&(v=f=h="-"),v=v>0||i>0?v+":":"",f=((v||u>=10)&&f<10?"0"+f:f)+":",h=h<10?"0"+h:h,v+f+h}()}l.default=p,C.exports=l.default},{}],132:[function(t,C,l){"use strict";l.__esModule=!0,l.newGUID=a;var p=1;function a(){return p++}},{}],133:[function(t,C,l){"use strict";l.__esModule=!0;function p(v){return v&&v.__esModule?v:{default:v}}var a=t("global/window"),m=p(a),h=function(){f(null,arguments)};h.history=[],h.error=function(){f("error",arguments)},h.warn=function(){f("warn",arguments)};function f(v,u){var i=Array.prototype.slice.call(u),o=function(){},r=m.default.console||{log:o,warn:o,error:o};v?i.unshift(v.toUpperCase()+":"):v="log",h.history.push(i),i.unshift("VIDEOJS:"),r[v].apply?r[v].apply(r,i):r[v](i.join(" "))}l.default=h,C.exports=l.default},{"global/window":2}],134:[function(t,C,l){"use strict";l.__esModule=!0,l.default=v;function p(u){return u&&u.__esModule?u:{default:u}}var a=t("lodash-compat/object/merge"),m=p(a);function h(u){return!!u&&typeof u=="object"&&u.toString()==="[object Object]"&&u.constructor===Object}var f=function(i,o){if(!h(o))return o;if(!h(i))return v(o)};function v(){var u=Array.prototype.slice.call(arguments);return u.unshift({}),u.push(f),m.default.apply(null,u),u[0]}C.exports=l.default},{"lodash-compat/object/merge":40}],135:[function(t,C,l){"use strict";l.__esModule=!0;function p(v){return v&&v.__esModule?v:{default:v}}var a=t("global/document"),m=p(a),h=function(u){var i=m.default.createElement("style");return i.className=u,i};l.createStyleElement=h;var f=function(u,i){u.styleSheet?u.styleSheet.cssText=i:u.textContent=i};l.setTextContent=f},{"global/document":1}],136:[function(t,C,l){"use strict";l.__esModule=!0,l.createTimeRanges=h;function p(i){return i&&i.__esModule?i:{default:i}}var a=t("./log.js"),m=p(a);function h(i,o){return Array.isArray(i)?f(i):i===void 0||o===void 0?f():f([[i,o]])}l.createTimeRange=h;function f(i){return i===void 0||i.length===0?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:i.length,start:v.bind(null,"start",0,i),end:v.bind(null,"end",1,i)}}function v(i,o,r,g){return g===void 0&&(m.default.warn("DEPRECATED: Function '"+i+"' on 'TimeRanges' called without an index argument."),g=0),u(i,g,r.length-1),r[g][o]}function u(i,o,r){if(o<0||o>r)throw new Error("Failed to execute '"+i+"' on 'TimeRanges': The index provided ("+o+") is greater than or equal to the maximum bound ("+r+").")}},{"./log.js":133}],137:[function(t,C,l){"use strict";l.__esModule=!0;function p(a){return a.charAt(0).toUpperCase()+a.slice(1)}l.default=p,C.exports=l.default},{}],138:[function(t,C,l){"use strict";l.__esModule=!0;function p(r){return r&&r.__esModule?r:{default:r}}var a=t("global/document"),m=p(a),h=t("global/window"),f=p(h),v=function(g){var s=["protocol","hostname","port","pathname","search","hash","host"],d=m.default.createElement("a");d.href=g;var c=d.host===""&&d.protocol!=="file:",T=void 0;c&&(T=m.default.createElement("div"),T.innerHTML='<a href="'+g+'"></a>',d=T.firstChild,T.setAttribute("style","display:none; position:absolute;"),m.default.body.appendChild(T));for(var _={},F=0;F<s.length;F++)_[s[F]]=d[s[F]];return _.protocol==="http:"&&(_.host=_.host.replace(/:80$/,"")),_.protocol==="https:"&&(_.host=_.host.replace(/:443$/,"")),c&&m.default.body.removeChild(T),_};l.parseUrl=v;var u=function(g){if(!g.match(/^https?:\/\//)){var s=m.default.createElement("div");s.innerHTML='<a href="'+g+'">x</a>',g=s.firstChild.href}return g};l.getAbsoluteURL=u;var i=function(g){if(typeof g=="string"){var s=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i,d=s.exec(g);if(d)return d.pop().toLowerCase()}return""};l.getFileExtension=i;var o=function(g){var s=f.default.location,d=v(g),c=d.protocol===":"?s.protocol:d.protocol,T=c+d.host!==s.protocol+s.host;return T};l.isCrossOrigin=o},{"global/document":1,"global/window":2}],139:[function(t,C,l){"use strict";l.__esModule=!0;function p(tt){if(tt&&tt.__esModule)return tt;var ct={};if(tt!=null)for(var _t in tt)Object.prototype.hasOwnProperty.call(tt,_t)&&(ct[_t]=tt[_t]);return ct.default=tt,ct}function a(tt){return tt&&tt.__esModule?tt:{default:tt}}var m=t("global/document"),h=a(m),f=t("./setup"),v=p(f),u=t("./utils/stylesheet.js"),i=p(u),o=t("./component"),r=a(o),g=t("./event-target"),s=a(g),d=t("./utils/events.js"),c=p(d),T=t("./player"),_=a(T),F=t("./plugins.js"),e=a(F),n=t("../../src/js/utils/merge-options.js"),E=a(n),y=t("./utils/fn.js"),O=p(y),b=t("./tracks/text-track.js"),w=a(b),x=t("object.assign"),B=a(x),D=t("./utils/time-ranges.js"),S=t("./utils/format-time.js"),k=a(S),J=t("./utils/log.js"),R=a(J),A=t("./utils/dom.js"),j=p(A),P=t("./utils/browser.js"),I=p(P),W=t("./utils/url.js"),$=p(W),Y=t("./extend.js"),X=a(Y),K=t("lodash-compat/object/merge"),it=a(K),lt=t("./utils/create-deprecation-proxy.js"),yt=a(lt),mt=t("xhr"),bt=a(mt),N=t("./tech/tech.js"),U=a(N),Z=t("./tech/html5.js"),nt=a(Z),st=t("./tech/flash.js"),ft=a(st);typeof HTMLVideoElement=="undefined"&&(h.default.createElement("video"),h.default.createElement("audio"),h.default.createElement("track"));var G=function tt(ct,_t,wt){var Tt=void 0;if(typeof ct=="string"){if(ct.indexOf("#")===0&&(ct=ct.slice(1)),tt.getPlayers()[ct])return _t&&R.default.warn('Player "'+ct+'" is already initialised. Options will not be applied.'),wt&&tt.getPlayers()[ct].ready(wt),tt.getPlayers()[ct];Tt=j.getEl(ct)}else Tt=ct;if(!Tt||!Tt.nodeName)throw new TypeError("The element or ID supplied is not valid. (videojs)");return Tt.player||_.default.players[Tt.playerId]||new _.default(Tt,_t,wt)},Et=j.$(".vjs-styles-defaults");if(!Et){Et=i.createStyleElement("vjs-styles-defaults");var Ft=j.$("head");Ft.insertBefore(Et,Ft.firstChild),i.setTextContent(Et,`
|
|
.video-js {
|
|
width: 300px;
|
|
height: 150px;
|
|
}
|
|
|
|
.vjs-fluid {
|
|
padding-top: 56.25%
|
|
}
|
|
`)}v.autoSetupTimeout(1,G),G.VERSION="5.5.3",G.options=_.default.prototype.options_,G.getPlayers=function(){return _.default.players},G.players=yt.default(_.default.players,{get:"Access to videojs.players is deprecated; use videojs.getPlayers instead",set:"Modification of videojs.players is deprecated"}),G.getComponent=r.default.getComponent,G.registerComponent=function(tt,ct){U.default.isTech(ct)&&R.default.warn("The "+tt+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),r.default.registerComponent.call(r.default,tt,ct)},G.getTech=U.default.getTech,G.registerTech=U.default.registerTech,G.browser=I,G.TOUCH_ENABLED=I.TOUCH_ENABLED,G.extend=X.default,G.mergeOptions=E.default,G.bind=O.bind,G.plugin=e.default,G.addLanguage=function(tt,ct){var _t;return tt=(""+tt).toLowerCase(),it.default(G.options.languages,(_t={},_t[tt]=ct,_t))[tt]},G.log=R.default,G.createTimeRange=G.createTimeRanges=D.createTimeRanges,G.formatTime=k.default,G.parseUrl=$.parseUrl,G.isCrossOrigin=$.isCrossOrigin,G.EventTarget=s.default,G.on=c.on,G.one=c.one,G.off=c.off,G.trigger=c.trigger,G.xhr=bt.default,G.TextTrack=w.default,G.isEl=j.isEl,G.isTextNode=j.isTextNode,G.createEl=j.createEl,G.hasClass=j.hasElClass,G.addClass=j.addElClass,G.removeClass=j.removeElClass,G.toggleClass=j.toggleElClass,G.setAttributes=j.setElAttributes,G.getAttributes=j.getElAttributes,G.emptyEl=j.emptyEl,G.appendContent=j.appendContent,G.insertContent=j.insertContent,typeof ot=="function"&&ot.amd?ot("videojs",[],function(){return G}):typeof l=="object"&&typeof C=="object"&&(C.exports=G),l.default=G,C.exports=l.default},{"../../src/js/utils/merge-options.js":134,"./component":65,"./event-target":97,"./extend.js":98,"./player":106,"./plugins.js":107,"./setup":109,"./tech/flash.js":112,"./tech/html5.js":113,"./tech/tech.js":115,"./tracks/text-track.js":124,"./utils/browser.js":125,"./utils/create-deprecation-proxy.js":127,"./utils/dom.js":128,"./utils/events.js":129,"./utils/fn.js":130,"./utils/format-time.js":131,"./utils/log.js":133,"./utils/stylesheet.js":135,"./utils/time-ranges.js":136,"./utils/url.js":138,"global/document":1,"lodash-compat/object/merge":40,"object.assign":45,xhr:55}]},{},[139])(139)}),function(ot){var q=ot.vttjs={},at=q.VTTCue,t=q.VTTRegion,C=ot.VTTCue,l=ot.VTTRegion;q.shim=function(){q.VTTCue=at,q.VTTRegion=t},q.restore=function(){q.VTTCue=C,q.VTTRegion=l}}(this),function(ot,q){var at="auto",t={"":!0,lr:!0,rl:!0},C={start:!0,middle:!0,end:!0,left:!0,right:!0};function l(h){if(typeof h!="string")return!1;var f=t[h.toLowerCase()];return f?h.toLowerCase():!1}function p(h){if(typeof h!="string")return!1;var f=C[h.toLowerCase()];return f?h.toLowerCase():!1}function a(h){for(var f=1;f<arguments.length;f++){var v=arguments[f];for(var u in v)h[u]=v[u]}return h}function m(h,f,v){var u=this,i=/MSIE\s8\.0/.test(navigator.userAgent),o={};i?u=document.createElement("custom"):o.enumerable=!0,u.hasBeenReset=!1;var r="",g=!1,s=h,d=f,c=v,T=null,_="",F=!0,e="auto",n="start",E=50,y="middle",O=50,b="middle";if(Object.defineProperty(u,"id",a({},o,{get:function(){return r},set:function(w){r=""+w}})),Object.defineProperty(u,"pauseOnExit",a({},o,{get:function(){return g},set:function(w){g=!!w}})),Object.defineProperty(u,"startTime",a({},o,{get:function(){return s},set:function(w){if(typeof w!="number")throw new TypeError("Start time must be set to a number.");s=w,this.hasBeenReset=!0}})),Object.defineProperty(u,"endTime",a({},o,{get:function(){return d},set:function(w){if(typeof w!="number")throw new TypeError("End time must be set to a number.");d=w,this.hasBeenReset=!0}})),Object.defineProperty(u,"text",a({},o,{get:function(){return c},set:function(w){c=""+w,this.hasBeenReset=!0}})),Object.defineProperty(u,"region",a({},o,{get:function(){return T},set:function(w){T=w,this.hasBeenReset=!0}})),Object.defineProperty(u,"vertical",a({},o,{get:function(){return _},set:function(w){var x=l(w);if(x===!1)throw new SyntaxError("An invalid or illegal string was specified.");_=x,this.hasBeenReset=!0}})),Object.defineProperty(u,"snapToLines",a({},o,{get:function(){return F},set:function(w){F=!!w,this.hasBeenReset=!0}})),Object.defineProperty(u,"line",a({},o,{get:function(){return e},set:function(w){if(typeof w!="number"&&w!==at)throw new SyntaxError("An invalid number or illegal string was specified.");e=w,this.hasBeenReset=!0}})),Object.defineProperty(u,"lineAlign",a({},o,{get:function(){return n},set:function(w){var x=p(w);if(!x)throw new SyntaxError("An invalid or illegal string was specified.");n=x,this.hasBeenReset=!0}})),Object.defineProperty(u,"position",a({},o,{get:function(){return E},set:function(w){if(w<0||w>100)throw new Error("Position must be between 0 and 100.");E=w,this.hasBeenReset=!0}})),Object.defineProperty(u,"positionAlign",a({},o,{get:function(){return y},set:function(w){var x=p(w);if(!x)throw new SyntaxError("An invalid or illegal string was specified.");y=x,this.hasBeenReset=!0}})),Object.defineProperty(u,"size",a({},o,{get:function(){return O},set:function(w){if(w<0||w>100)throw new Error("Size must be between 0 and 100.");O=w,this.hasBeenReset=!0}})),Object.defineProperty(u,"align",a({},o,{get:function(){return b},set:function(w){var x=p(w);if(!x)throw new SyntaxError("An invalid or illegal string was specified.");b=x,this.hasBeenReset=!0}})),u.displayState=void 0,i)return u}m.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},ot.VTTCue=ot.VTTCue||m,q.VTTCue=m}(this,this.vttjs||{}),function(ot,q){var at={"":!0,up:!0};function t(p){if(typeof p!="string")return!1;var a=at[p.toLowerCase()];return a?p.toLowerCase():!1}function C(p){return typeof p=="number"&&p>=0&&p<=100}function l(){var p=100,a=3,m=0,h=100,f=0,v=100,u="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return p},set:function(i){if(!C(i))throw new Error("Width must be between 0 and 100.");p=i}},lines:{enumerable:!0,get:function(){return a},set:function(i){if(typeof i!="number")throw new TypeError("Lines must be set to a number.");a=i}},regionAnchorY:{enumerable:!0,get:function(){return h},set:function(i){if(!C(i))throw new Error("RegionAnchorX must be between 0 and 100.");h=i}},regionAnchorX:{enumerable:!0,get:function(){return m},set:function(i){if(!C(i))throw new Error("RegionAnchorY must be between 0 and 100.");m=i}},viewportAnchorY:{enumerable:!0,get:function(){return v},set:function(i){if(!C(i))throw new Error("ViewportAnchorY must be between 0 and 100.");v=i}},viewportAnchorX:{enumerable:!0,get:function(){return f},set:function(i){if(!C(i))throw new Error("ViewportAnchorX must be between 0 and 100.");f=i}},scroll:{enumerable:!0,get:function(){return u},set:function(i){var o=t(i);if(o===!1)throw new SyntaxError("An invalid or illegal string was specified.");u=o}}})}ot.VTTRegion=ot.VTTRegion||l,q.VTTRegion=l}(this,this.vttjs||{}),function(ot){var q=Object.create||function(){function e(){}return function(n){if(arguments.length!==1)throw new Error("Object.create shim only accepts one parameter.");return e.prototype=n,new e}}();function at(e,n){this.name="ParsingError",this.code=e.code,this.message=n||e.message}at.prototype=q(Error.prototype),at.prototype.constructor=at,at.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}};function t(e){function n(y,O,b,w){return(y|0)*3600+(O|0)*60+(b|0)+(w|0)/1e3}var E=e.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return E?E[3]?n(E[1],E[2],E[3].replace(":",""),E[4]):E[1]>59?n(E[1],E[2],0,E[4]):n(0,E[1],E[2],E[4]):null}function C(){this.values=q(null)}C.prototype={set:function(e,n){!this.get(e)&&n!==""&&(this.values[e]=n)},get:function(e,n,E){return E?this.has(e)?this.values[e]:n[E]:this.has(e)?this.values[e]:n},has:function(e){return e in this.values},alt:function(e,n,E){for(var y=0;y<E.length;++y)if(n===E[y]){this.set(e,n);break}},integer:function(e,n){/^-?\d+$/.test(n)&&this.set(e,parseInt(n,10))},percent:function(e,n){var E;return(E=n.match(/^([\d]{1,3})(\.[\d]*)?%$/))&&(n=parseFloat(n),n>=0&&n<=100)?(this.set(e,n),!0):!1}};function l(e,n,E,y){var O=y?e.split(y):[e];for(var b in O)if(typeof O[b]=="string"){var w=O[b].split(E);if(w.length===2){var x=w[0],B=w[1];n(x,B)}}}function p(e,n,E){var y=e;function O(){var x=t(e);if(x===null)throw new at(at.Errors.BadTimeStamp,"Malformed timestamp: "+y);return e=e.replace(/^[^\sa-zA-Z-]+/,""),x}function b(x,B){var D=new C;l(x,function(S,k){switch(S){case"region":for(var J=E.length-1;J>=0;J--)if(E[J].id===k){D.set(S,E[J].region);break}break;case"vertical":D.alt(S,k,["rl","lr"]);break;case"line":var R=k.split(","),A=R[0];D.integer(S,A),D.percent(S,A)&&D.set("snapToLines",!1),D.alt(S,A,["auto"]),R.length===2&&D.alt("lineAlign",R[1],["start","middle","end"]);break;case"position":R=k.split(","),D.percent(S,R[0]),R.length===2&&D.alt("positionAlign",R[1],["start","middle","end"]);break;case"size":D.percent(S,k);break;case"align":D.alt(S,k,["start","middle","end","left","right"]);break}},/:/,/\s/),B.region=D.get("region",null),B.vertical=D.get("vertical",""),B.line=D.get("line","auto"),B.lineAlign=D.get("lineAlign","start"),B.snapToLines=D.get("snapToLines",!0),B.size=D.get("size",100),B.align=D.get("align","middle"),B.position=D.get("position",{start:0,left:0,middle:50,end:100,right:100},B.align),B.positionAlign=D.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},B.align)}function w(){e=e.replace(/^\s+/,"")}if(w(),n.startTime=O(),w(),e.substr(0,3)!=="-->")throw new at(at.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+y);e=e.substr(3),w(),n.endTime=O(),w(),b(e,n)}var a={"&":"&","<":"<",">":">","‎":"\u200E","‏":"\u200F"," ":"\xA0"},m={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},h={v:"title",lang:"lang"},f={rt:"ruby"};function v(e,n){function E(){if(!n)return null;function A(P){return n=n.substr(P.length),P}var j=n.match(/^([^<]*)(<[^>]+>?)?/);return A(j[1]?j[1]:j[2])}function y(A){return a[A]}function O(A){for(;R=A.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)A=A.replace(R[0],y);return A}function b(A,j){return!f[j.localName]||f[j.localName]===A.localName}function w(A,j){var P=m[A];if(!P)return null;var I=e.document.createElement(P);I.localName=P;var W=h[A];return W&&j&&(I[W]=j.trim()),I}for(var x=e.document.createElement("div"),B=x,D,S=[];(D=E())!==null;){if(D[0]==="<"){if(D[1]==="/"){S.length&&S[S.length-1]===D.substr(2).replace(">","")&&(S.pop(),B=B.parentNode);continue}var k=t(D.substr(1,D.length-2)),J;if(k){J=e.document.createProcessingInstruction("timestamp",k),B.appendChild(J);continue}var R=D.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!R||(J=w(R[1],R[3]),!J)||!b(B,J))continue;R[2]&&(J.className=R[2].substr(1).replace("."," ")),S.push(R[1]),B.appendChild(J),B=J;continue}B.appendChild(e.document.createTextNode(O(D)))}return x}var u=[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];function i(e){var n=[],E="",y;if(!e||!e.childNodes)return"ltr";function O(B,D){for(var S=D.childNodes.length-1;S>=0;S--)B.push(D.childNodes[S])}function b(B){if(!B||!B.length)return null;var D=B.pop(),S=D.textContent||D.innerText;if(S){var k=S.match(/^.*(\n|\r)/);return k?(B.length=0,k[0]):S}if(D.tagName==="ruby")return b(B);if(D.childNodes)return O(B,D),b(B)}for(O(n,e);E=b(n);)for(var w=0;w<E.length;w++){y=E.charCodeAt(w);for(var x=0;x<u.length;x++)if(u[x]===y)return"rtl"}return"ltr"}function o(e){if(typeof e.line=="number"&&(e.snapToLines||e.line>=0&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var n=e.track,E=n.textTrackList,y=0,O=0;O<E.length&&E[O]!==n;O++)E[O].mode==="showing"&&y++;return++y*-1}function r(){}r.prototype.applyStyles=function(e,n){n=n||this.div;for(var E in e)e.hasOwnProperty(E)&&(n.style[E]=e[E])},r.prototype.formatStyle=function(e,n){return e===0?0:e+n};function g(e,n,E){var y=/MSIE\s8\.0/.test(navigator.userAgent),O="rgba(255, 255, 255, 1)",b="rgba(0, 0, 0, 0.8)";y&&(O="rgb(255, 255, 255)",b="rgb(0, 0, 0)"),r.call(this),this.cue=n,this.cueDiv=v(e,n.text);var w={color:O,backgroundColor:b,position:"relative",left:0,right:0,top:0,bottom:0,display:"inline"};y||(w.writingMode=n.vertical===""?"horizontal-tb":n.vertical==="lr"?"vertical-lr":"vertical-rl",w.unicodeBidi="plaintext"),this.applyStyles(w,this.cueDiv),this.div=e.document.createElement("div"),w={textAlign:n.align==="middle"?"center":n.align,font:E.font,whiteSpace:"pre-line",position:"absolute"},y||(w.direction=i(this.cueDiv),w.writingMode=n.vertical===""?"horizontal-tb":n.vertical==="lr"?"vertical-lr":"vertical-rl".stylesunicodeBidi="plaintext"),this.applyStyles(w),this.div.appendChild(this.cueDiv);var x=0;switch(n.positionAlign){case"start":x=n.position;break;case"middle":x=n.position-n.size/2;break;case"end":x=n.position-n.size;break}n.vertical===""?this.applyStyles({left:this.formatStyle(x,"%"),width:this.formatStyle(n.size,"%")}):this.applyStyles({top:this.formatStyle(x,"%"),height:this.formatStyle(n.size,"%")}),this.move=function(B){this.applyStyles({top:this.formatStyle(B.top,"px"),bottom:this.formatStyle(B.bottom,"px"),left:this.formatStyle(B.left,"px"),right:this.formatStyle(B.right,"px"),height:this.formatStyle(B.height,"px"),width:this.formatStyle(B.width,"px")})}}g.prototype=q(r.prototype),g.prototype.constructor=g;function s(e){var n=/MSIE\s8\.0/.test(navigator.userAgent),E,y,O,b;if(e.div){y=e.div.offsetHeight,O=e.div.offsetWidth,b=e.div.offsetTop;var w=(w=e.div.childNodes)&&(w=w[0])&&w.getClientRects&&w.getClientRects();e=e.div.getBoundingClientRect(),E=w?Math.max(w[0]&&w[0].height||0,e.height/w.length):0}this.left=e.left,this.right=e.right,this.top=e.top||b,this.height=e.height||y,this.bottom=e.bottom||b+(e.height||y),this.width=e.width||O,this.lineHeight=E!==void 0?E:e.lineHeight,n&&!this.lineHeight&&(this.lineHeight=13)}s.prototype.move=function(e,n){switch(n=n!==void 0?n:this.lineHeight,e){case"+x":this.left+=n,this.right+=n;break;case"-x":this.left-=n,this.right-=n;break;case"+y":this.top+=n,this.bottom+=n;break;case"-y":this.top-=n,this.bottom-=n;break}},s.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},s.prototype.overlapsAny=function(e){for(var n=0;n<e.length;n++)if(this.overlaps(e[n]))return!0;return!1},s.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},s.prototype.overlapsOppositeAxis=function(e,n){switch(n){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},s.prototype.intersectPercentage=function(e){var n=Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left)),E=Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top)),y=n*E;return y/(this.height*this.width)},s.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},s.getSimpleBoxPosition=function(e){var n=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,E=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,y=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e;var O={left:e.left,right:e.right,top:e.top||y,height:e.height||n,bottom:e.bottom||y+(e.height||n),width:e.width||E};return O};function d(e,n,E,y){function O(P,I){for(var W,$=new s(P),Y=1,X=0;X<I.length;X++){for(;P.overlapsOppositeAxis(E,I[X])||P.within(E)&&P.overlapsAny(y);)P.move(I[X]);if(P.within(E))return P;var K=P.intersectPercentage(E);Y>K&&(W=new s(P),Y=K),P=new s($)}return W||$}var b=new s(n),w=n.cue,x=o(w),B=[];if(w.snapToLines){var D;switch(w.vertical){case"":B=["+y","-y"],D="height";break;case"rl":B=["+x","-x"],D="width";break;case"lr":B=["-x","+x"],D="width";break}var S=b.lineHeight,k=S*Math.round(x),J=E[D]+S,R=B[0];Math.abs(k)>J&&(k=k<0?-1:1,k*=Math.ceil(J/S)*S),x<0&&(k+=w.vertical===""?E.height:E.width,B=B.reverse()),b.move(R,k)}else{var A=b.lineHeight/E.height*100;switch(w.lineAlign){case"middle":x-=A/2;break;case"end":x-=A;break}switch(w.vertical){case"":n.applyStyles({top:n.formatStyle(x,"%")});break;case"rl":n.applyStyles({left:n.formatStyle(x,"%")});break;case"lr":n.applyStyles({right:n.formatStyle(x,"%")});break}B=["+y","-x","+x","-y"],b=new s(n)}var j=O(b,B);n.move(j.toCSSCompatValues(E))}function c(){}c.StringDecoder=function(){return{decode:function(e){if(!e)return"";if(typeof e!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},c.convertCueToDOMTree=function(e,n){return!e||!n?null:v(e,n)};var T=.05,_="sans-serif",F="1.5%";c.processCues=function(e,n,E){if(!e||!n||!E)return null;for(;E.firstChild;)E.removeChild(E.firstChild);var y=e.document.createElement("div");y.style.position="absolute",y.style.left="0",y.style.right="0",y.style.top="0",y.style.bottom="0",y.style.margin=F,E.appendChild(y);function O(S){for(var k=0;k<S.length;k++)if(S[k].hasBeenReset||!S[k].displayState)return!0;return!1}if(!O(n)){for(var b=0;b<n.length;b++)y.appendChild(n[b].displayState);return}var w=[],x=s.getSimpleBoxPosition(y),B=Math.round(x.height*T*100)/100,D={font:B+"px "+_};(function(){for(var S,k,J=0;J<n.length;J++)k=n[J],S=new g(e,k,D),y.appendChild(S.div),d(e,S,x,w),k.displayState=S.div,w.push(s.getSimpleBoxPosition(S))})()},c.Parser=function(e,n,E){E||(E=n,n={}),n||(n={}),this.window=e,this.vttjs=n,this.state="INITIAL",this.buffer="",this.decoder=E||new TextDecoder("utf8"),this.regionList=[]},c.Parser.prototype={reportOrThrowError:function(e){if(e instanceof at)this.onparsingerror&&this.onparsingerror(e);else throw e},parse:function(e){var n=this;e&&(n.buffer+=n.decoder.decode(e,{stream:!0}));function E(){for(var D=n.buffer,S=0;S<D.length&&D[S]!=="\r"&&D[S]!==`
|
|
`;)++S;var k=D.substr(0,S);return D[S]==="\r"&&++S,D[S]===`
|
|
`&&++S,n.buffer=D.substr(S),k}function y(D){var S=new C;if(l(D,function(J,R){switch(J){case"id":S.set(J,R);break;case"width":S.percent(J,R);break;case"lines":S.integer(J,R);break;case"regionanchor":case"viewportanchor":var A=R.split(",");if(A.length!==2)break;var j=new C;if(j.percent("x",A[0]),j.percent("y",A[1]),!j.has("x")||!j.has("y"))break;S.set(J+"X",j.get("x")),S.set(J+"Y",j.get("y"));break;case"scroll":S.alt(J,R,["up"]);break}},/=/,/\s/),S.has("id")){var k=new(n.vttjs.VTTRegion||n.window.VTTRegion);k.width=S.get("width",100),k.lines=S.get("lines",3),k.regionAnchorX=S.get("regionanchorX",0),k.regionAnchorY=S.get("regionanchorY",100),k.viewportAnchorX=S.get("viewportanchorX",0),k.viewportAnchorY=S.get("viewportanchorY",100),k.scroll=S.get("scroll",""),n.onregion&&n.onregion(k),n.regionList.push({id:S.get("id"),region:k})}}function O(D){l(D,function(S,k){switch(S){case"Region":y(k);break}},/:/)}try{var b;if(n.state==="INITIAL"){if(!/\r\n|\n/.test(n.buffer))return this;b=E();var w=b.match(/^WEBVTT([ \t].*)?$/);if(!w||!w[0])throw new at(at.Errors.BadSignature);n.state="HEADER"}for(var x=!1;n.buffer;){if(!/\r\n|\n/.test(n.buffer))return this;switch(x?x=!1:b=E(),n.state){case"HEADER":/:/.test(b)?O(b):b||(n.state="ID");continue;case"NOTE":b||(n.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(b)){n.state="NOTE";break}if(!b)continue;if(n.cue=new(n.vttjs.VTTCue||n.window.VTTCue)(0,0,""),n.state="CUE",b.indexOf("-->")===-1){n.cue.id=b;continue}case"CUE":try{p(b,n.cue,n.regionList)}catch(D){n.reportOrThrowError(D),n.cue=null,n.state="BADCUE";continue}n.state="CUETEXT";continue;case"CUETEXT":var B=b.indexOf("-->")!==-1;if(!b||B&&(x=!0)){n.oncue&&n.oncue(n.cue),n.cue=null,n.state="ID";continue}n.cue.text&&(n.cue.text+=`
|
|
`),n.cue.text+=b;continue;case"BADCUE":b||(n.state="ID");continue}}}catch(D){n.reportOrThrowError(D),n.state==="CUETEXT"&&n.cue&&n.oncue&&n.oncue(n.cue),n.cue=null,n.state=n.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},flush:function(){var e=this;try{if(e.buffer+=e.decoder.decode(),(e.cue||e.state==="HEADER")&&(e.buffer+=`
|
|
|
|
`,e.parse()),e.state==="INITIAL")throw new at(at.Errors.BadSignature)}catch(n){e.reportOrThrowError(n)}return e.onflush&&e.onflush(),this}},ot.WebVTT=c}(this,this.vttjs||{}),function(){(function(ot){var q=ot&&ot.videojs;if(q){q.CDN_VERSION="5.5.3";var at=ot.location.protocol==="https:"?"https://":"http://";q.options.flash.swf=at+"vjs.zencdn.net/swf/5.0.1/video-js.swf"}})(window),function(ot,q,at,t,C,l,p){q&&q.HELP_IMPROVE_VIDEOJS!==!1&&(C.random()>.01||(l=q.location,p=q.videojs||{},ot.src="//www.google-analytics.com/__utm.gif?utmwv=5.4.2&utmac=UA-16505296-3&utmn=1&utmhn="+t(l.hostname)+"&utmsr="+q.screen.availWidth+"x"+q.screen.availHeight+"&utmul="+(at.language||at.userLanguage||"").toLowerCase()+"&utmr="+t(l.href)+"&utmp="+t(l.hostname+l.pathname)+"&utmcc=__utma%3D1."+C.floor(1e10*C.random())+".1.1.1.1%3B&utme=8(vjsv*cdnv)9("+p.VERSION+"*"+p.CDN_VERSION+")"))}(new Image,window,navigator,encodeURIComponent,Math)}();
|