filesbox/web/dist/design/designstatic/chatroom/video/alt/video.novtt.js
2024-07-26 14:10:54 +08:00

147 lines
216 KiB
JavaScript

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