@theoplayer/extended 10.11.1 → 10.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THEOplayer.chromeless.d.ts +1 -1
- package/THEOplayer.chromeless.esm.js +2 -2
- package/THEOplayer.chromeless.js +3 -3
- package/THEOplayer.common.d.ts +25 -1
- package/THEOplayer.common.esm.js +3 -3
- package/THEOplayer.d.ts +1 -1
- package/THEOplayer.esm.js +3 -3
- package/THEOplayer.js +3 -3
- package/THEOplayer.transmux.asmjs.js +3 -3
- package/THEOplayer.transmux.js +3 -3
- package/package.json +1 -1
- package/theoplayer.d.js +3 -3
- package/theoplayer.sw.js +3 -3
package/THEOplayer.esm.js
CHANGED
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
THEOplayer is based on patented technology developed by
|
|
35
35
|
THEO Technologies (https://www.theoplayer.com).
|
|
36
36
|
|
|
37
|
-
Version: 10.
|
|
38
|
-
Created: 2026-03-
|
|
37
|
+
Version: 10.12.1
|
|
38
|
+
Created: 2026-03-17T15:09:35.190Z
|
|
39
39
|
*/
|
|
40
|
-
var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:void 0!==a?a:"undefined"!=typeof global?global:this,a=s.window,h=s.document,u=(s.location,s.navigator,s.setTimeout),c=s.clearTimeout,v=(s.setInterval,s.clearInterval,s.Error),p=s.TypeError,m=s.SyntaxError,g=s.Object,w=s.Math,k=s.parseInt,_=s.parseFloat,j=s.isNaN,x=s.Uint8Array;s.Worker,s.WorkerGlobalScope,s.XMLHttpRequest;import{$ as S,$a as T,A as C,Aa as P,Ab as M,B as A,Ba as I,Bb as E,C as D,Ca as N,Cb as F,D as B,Da as $,Db as R,E as O,Ea as V,Eb as U,F as L,Fa as H,G as z,Ga as W,H as q,Ha as G,I as X,Ia as J,J as Q,Ja as Y,K,Ka as Z,L as tt,La as it,M as st,Ma as et,N as nt,Na as rt,O as ht,Oa as ot,P as at,Pa as ut,Q as ct,Qa as lt,R as dt,Ra as ft,S as vt,Sa as pt,T as mt,Ta as gt,U as yt,Ua as bt,V as wt,Va as kt,W as _t,Wa as jt,X as xt,Xa as St,Y as Tt,Ya as Ct,Z as Pt,Za as Mt,_ as At,_a as It,a as Et,aa as Dt,ab as Nt,b as Ft,ba as Bt,bb as $t,c as Rt,ca as Ot,cb as Vt,d as Ut,da as Lt,db as Ht,e as zt,ea as Wt,eb as qt,f as Gt,fa as Xt,fb as Jt,g as Qt,ga as Yt,gb as Kt,h as Zt,ha as ti,hb as ii,i as si,ia as ei,ib as ni,j as ri,ja as hi,jb as oi,k as r,ka as ai,kb as ui,l as ci,la as li,lb as d,m as di,ma as fi,mb as vi,n as pi,na as mi,nb as gi,o as yi,oa as bi,ob as wi,p as ki,pa as _i,pb as ji,q as xi,qa as Si,qb as Ti,r as Ci,ra as Pi,rb as Mi,s as Ai,sa as Ii,sb as Ei,t as Di,ta as Ni,tb as Fi,u as Bi,ua as $i,ub as Ri,v as Oi,va as Vi,vb as Ui,w as Li,wa as Hi,wb as zi,x as Wi,xa as qi,xb as Gi,y as Xi,ya as Ji,yb as Qi,z as Yi,za as Ki,zb as Zi}from"./THEOplayer.common.esm.js";Rt(),Rt(),Rt(),Rt();var ts=[];var is=[];Rt(),Rt(),Rt(),Rt();var ss=void 0!==a?a:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},es=void 0!==h?h:{createElement:function(){}};function ns(t,i){return i||(i=t.slice(0)),t.raw=i,t}var rs=1;function hs(){return rs++}var os,as=g.prototype.toString,us=function(t){return ds(t)?g.keys(t):[]};function cs(t,i){us(t).forEach(function(s){return i(t[s],s)})}function ls(t){for(var i=arguments.length,s=new Array(i>1?i-1:0),e=1;e<i;e++)s[e-1]=arguments[e];return g.assign?g.assign.apply(g,[t].concat(s)):(s.forEach(function(i){i&&cs(i,function(i,s){t[s]=i})}),t)}function ds(t){return!!t&&"object"==typeof t}function fs(t){return ds(t)&&"[object Object]"===as.call(t)&&t.constructor===g}var vs=function(t,i,s){void 0===s&&(s=!!de&&de<11),"log"!==t&&i.unshift(t.toUpperCase()+":"),os.history.push(i),i.unshift("VIDEOJS:");var e=ss.console&&ss.console[t];e&&(s&&(i=i.map(function(t){if(ds(t)||Array.isArray(t))try{return JSON.stringify(t)}catch(i){return String(t)}return String(t)}).join(" ")),e.apply?e[Array.isArray(i)?"apply":"call"](ss.console,i):e(i))};(os=function(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];vs("log",i)}).history=[],os.error=function(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];return vs("error",i)},os.warn=function(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];return vs("warn",i)};var ps=os,ms="undefined"!=typeof globalThis?globalThis:void 0!==a?a:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function gs(t){return t.replace(/\n\r?\s*/g,"")}var ys,bs=function(t){for(var i="",s=0;s<arguments.length;s++)i+=gs(t[s])+(arguments[s+1]||"");return i};function ws(t){return"string"==typeof t&&/\S/.test(t)}function ks(t){if(/\s/.test(t))throw new v("class has illegal whitespace characters")}function _s(){return es===ss.document&&void 0!==es.createElement}function js(t){return ds(t)&&1===t.nodeType}function xs(t){return function(i,s){if(!ws(i))return es[t](null);ws(s)&&(s=es.querySelector(s));var e=js(s)?s:es;return e[t]&&e[t](i)}}function Ss(t,i,s,e){void 0===t&&(t="div"),void 0===i&&(i={}),void 0===s&&(s={});var n=es.createElement(t);return g.getOwnPropertyNames(i).forEach(function(t){var s=i[t];-1!==t.indexOf("aria-")||"role"===t||"type"===t?(ps.warn(bs(ys||(ys=ns(["Setting attributes in the second argument of createEl()\n has been deprecated. Use the third argument instead.\n createEl(type, properties, attributes). Attempting to set "," to ","."])),t,s)),n.setAttribute(t,s)):"textContent"===t?Ts(n,s):n[t]=s}),g.getOwnPropertyNames(s).forEach(function(t){n.setAttribute(t,s[t])}),e&&Ws(n,e),n}function Ts(t,i){return void 0===t.textContent?t.innerText=i:t.textContent=i,t}function Cs(t,i){i.firstChild?i.insertBefore(t,i.firstChild):i.appendChild(t)}var Ps={},Ms="vdata"+(new Date).getTime();function As(t){var i=t[Ms];return i||(i=t[Ms]=hs()),Ps[i]||(Ps[i]={}),Ps[i]}function Is(t){var i=t[Ms];return!!i&&!!g.getOwnPropertyNames(Ps[i]).length}function Es(t){var i=t[Ms];if(i){delete Ps[i];try{delete t[Ms]}catch(i){t.removeAttribute?t.removeAttribute(Ms):t[Ms]=null}}}function Ds(t,i){return ks(i),t.classList?t.classList.contains(i):function(t){return new RegExp("(^|\\s)"+t+"($|\\s)")}(i).test(t.className)}function Ns(t,i){return t.classList?t.classList.add(i):Ds(t,i)||(t.className=(t.className+" "+i).trim()),t}function Fs(t,i){return t.classList?t.classList.remove(i):(ks(i),t.className=t.className.split(/\s+/).filter(function(t){return t!==i}).join(" ")),t}function Bs(t,i,s){var e=Ds(t,i);if("function"==typeof s&&(s=s(t,i)),"boolean"!=typeof s&&(s=!e),s!==e)return s?Ns(t,i):Fs(t,i),t}function $s(t,i){g.getOwnPropertyNames(i).forEach(function(s){var e=i[s];null==e||!1===e?t.removeAttribute(s):t.setAttribute(s,!0===e?"":e)})}function Rs(t){var i={};if(t&&t.attributes&&t.attributes.length>0)for(var s=t.attributes,e=s.length-1;e>=0;e--){var n=s[e].name,r=s[e].value;"boolean"!=typeof t[n]&&-1===",autoplay,controls,playsinline,loop,muted,default,defaultMuted,".indexOf(","+n+",")||(r=null!==r),i[n]=r}return i}function Os(t,i,s){t.setAttribute(i,s)}function Vs(t,i){t.removeAttribute(i)}function Us(t){var i;if(t.getBoundingClientRect&&t.parentNode&&(i=t.getBoundingClientRect()),!i)return{left:0,top:0};var s=es.documentElement,e=es.body,n=s.clientLeft||e.clientLeft||0,r=ss.pageXOffset||e.scrollLeft,h=i.left+r-n,o=s.clientTop||e.clientTop||0,a=ss.pageYOffset||e.scrollTop,u=i.top+a-o;return{left:w.round(h),top:w.round(u)}}function Ls(t,i){var s={},e=Us(t),n=t.offsetWidth,r=t.offsetHeight,h=e.top,o=e.left,a=i.pageY,u=i.pageX;return i.changedTouches&&(u=i.changedTouches[0].pageX,a=i.changedTouches[0].pageY),s.y=w.max(0,w.min(1,(h-a+r)/r)),s.x=w.max(0,w.min(1,(u-o)/n)),s}function Hs(t){return ds(t)&&3===t.nodeType}function zs(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t}function Ws(t,i){return function(t){return"function"==typeof t&&(t=t()),(Array.isArray(t)?t:[t]).map(function(t){return"function"==typeof t&&(t=t()),js(t)||Hs(t)?t:"string"==typeof t&&/\S/.test(t)?es.createTextNode(t):void 0}).filter(function(t){return t})}(i).forEach(function(i){return t.appendChild(i)}),t}function qs(t,i){return Ws(zs(t),i)}var b,Gs=xs("querySelector"),Xs=xs("querySelectorAll"),Js=ss.navigator&&ss.navigator.userAgent||"",Qs=/AppleWebKit\/([\d.]+)/i.exec(Js),Ys=Qs?_(Qs.pop()):null,Ks=/iPad/i.test(Js),Zs=/iPhone/i.test(Js)&&!Ks,te=/iPod/i.test(Js),ie=Zs||Ks||te,se=(b=Js.match(/OS (\d+)_/i))&&b[1]?b[1]:null,ee=/Android/i.test(Js),ne=function(){var t=Js.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!t)return null;var i=t[1]&&_(t[1]),s=t[2]&&_(t[2]);return i&&s?_(t[1]+"."+t[2]):i||null}(),re=ee&&/webkit/i.test(Js)&&ne<2.3,he=ee&&ne<5&&Ys<537,oe=/Firefox/i.test(Js),ae=/Edge/i.test(Js),ue=!ae&&/Chrome/i.test(Js),ce=function(){var t=Js.match(/Chrome\/(\d+)/);return t&&t[1]?_(t[1]):null}(),le=/MSIE\s8\.0/.test(Js),de=function(){var t=/MSIE\s(\d+)\.\d/.exec(Js),i=t&&_(t[1]);return!i&&/Trident\/7.0/i.test(Js)&&/rv:11.0/.test(Js)&&(i=11),i}(),fe=/Safari/i.test(Js)&&!ue&&!ee&&!ae,ve=fe||ie,pe=_s()&&("ontouchstart"in ss||ss.DocumentTouch&&ss.document instanceof ss.DocumentTouch),me=_s()&&"backgroundSize"in ss.document.createElement("video").style,ge=g.freeze({__proto__:null,IS_IPAD:Ks,IS_IPHONE:Zs,IS_IPOD:te,IS_IOS:ie,IOS_VERSION:se,IS_ANDROID:ee,ANDROID_VERSION:ne,IS_OLD_ANDROID:re,IS_NATIVE_ANDROID:he,IS_FIREFOX:oe,IS_EDGE:ae,IS_CHROME:ue,CHROME_VERSION:ce,IS_IE8:le,IE_VERSION:de,IS_SAFARI:fe,IS_ANY_SAFARI:ve,TOUCH_ENABLED:pe,BACKGROUND_SIZE_SUPPORTED:me});function ye(t,i){var s=As(t);0===s.handlers[i].length&&(delete s.handlers[i],t.removeEventListener?t.removeEventListener(i,s.dispatcher,!1):t.detachEvent&&t.detachEvent("on"+i,s.dispatcher)),g.getOwnPropertyNames(s.handlers).length<=0&&(delete s.handlers,delete s.dispatcher,delete s.disabled),0===g.getOwnPropertyNames(s).length&&Es(t)}function be(t,i,s,e){s.forEach(function(s){t(i,s,e)})}function we(t){function i(){return!0}function s(){return!1}if(!t||!t.isPropagationStopped||!t.isImmediatePropagationStopped){var e=t||ss.event;for(var n in t={},e)"layerX"!==n&&"layerY"!==n&&"keyLocation"!==n&&"webkitMovementX"!==n&&"webkitMovementY"!==n&&"path"!==n&&("returnValue"===n&&e.preventDefault||(t[n]=e[n]));if(t.target||(t.target=t.srcElement||es),t.relatedTarget||(t.relatedTarget=t.fromElement===t.target?t.toElement:t.fromElement),t.preventDefault=function(){e.preventDefault&&e.preventDefault(),t.returnValue=!1,e.returnValue=!1,t.defaultPrevented=!0},t.defaultPrevented=!1,t.stopPropagation=function(){e.stopPropagation&&e.stopPropagation(),t.cancelBubble=!0,e.cancelBubble=!0,t.isPropagationStopped=i},t.isPropagationStopped=s,t.stopImmediatePropagation=function(){e.stopImmediatePropagation&&e.stopImmediatePropagation(),t.isImmediatePropagationStopped=i,t.stopPropagation()},t.isImmediatePropagationStopped=s,null!==t.clientX&&void 0!==t.clientX){var r=es.documentElement,h=es.body;t.pageX=t.clientX+(r&&r.scrollLeft||h&&h.scrollLeft||0)-(r&&r.clientLeft||h&&h.clientLeft||0),t.pageY=t.clientY+(r&&r.scrollTop||h&&h.scrollTop||0)-(r&&r.clientTop||h&&h.clientTop||0)}t.which=t.charCode||t.keyCode,null!==t.button&&void 0!==t.button&&(t.button=1&t.button?0:4&t.button?1:2&t.button?2:0)}return t}var ke=!1;!function(){try{var t=g.defineProperty({},"passive",{get:function(){ke=!0}});ss.addEventListener("test",null,t)}catch(t){}}();var _e=["touchstart","touchmove"];function je(t,i,s){if(Array.isArray(i))return be(je,t,i,s);var e=As(t);if(e.handlers||(e.handlers={}),e.handlers[i]||(e.handlers[i]=[]),s.guid||(s.guid=hs()),e.handlers[i].push(s),e.dispatcher||(e.disabled=!1,e.dispatcher=function(i,s){if(!e.disabled){i=we(i);var n=e.handlers[i.type];if(n)for(var r=n.slice(0),h=0,o=r.length;h<o&&!i.isImmediatePropagationStopped();h++)try{r[h].call(t,i,s)}catch(t){ps.error(t)}}}),1===e.handlers[i].length)if(t.addEventListener){var n=!1;ke&&_e.indexOf(i)>-1&&(n={passive:!0}),t.addEventListener(i,e.dispatcher,n)}else t.attachEvent&&t.attachEvent("on"+i,e.dispatcher)}function xe(t,i,s){if(Is(t)){var e=As(t);if(e.handlers){if(Array.isArray(i))return be(xe,t,i,s);var n=function(i){e.handlers[i]=[],ye(t,i)};if(i){var r=e.handlers[i];if(r)if(s){if(s.guid)for(var h=0;h<r.length;h++)r[h].guid===s.guid&&r.splice(h--,1);ye(t,i)}else n(i)}else for(var o in e.handlers)n(o)}}}function Se(t,i,s){var e=Is(t)?As(t):{},n=t.parentNode||t.ownerDocument;if("string"==typeof i&&(i={type:i,target:t}),i=we(i),e.dispatcher&&e.dispatcher.call(t,i,s),n&&!i.isPropagationStopped()&&!0===i.bubbles)Se.call(null,n,i,s);else if(!n&&!i.defaultPrevented){var r=As(i.target);i.target[i.type]&&(r.disabled=!0,"function"==typeof i.target[i.type]&&i.target[i.type](),r.disabled=!1)}return!i.defaultPrevented}function Te(t,i,s){if(Array.isArray(i))return be(Te,t,i,s);var e=function e(){xe(t,i,e),s.apply(this,arguments)};e.guid=s.guid=s.guid||hs(),je(t,i,e)}var Ce,Pe=!1,Me=function(){if(_s()){var t=es.getElementsByTagName("video"),i=es.getElementsByTagName("audio"),s=[];if(t&&t.length>0)for(var e=0,n=t.length;e<n;e++)s.push(t[e]);if(i&&i.length>0)for(var r=0,h=i.length;r<h;r++)s.push(i[r]);if(s&&s.length>0)for(var o=0,a=s.length;o<a;o++){var u=s[o];if(!u||!u.getAttribute){Ae(1);break}void 0===u.player&&null!==u.getAttribute("data-setup")&&Ce(u)}else Pe||Ae(1)}};function Ae(t,i){i&&(Ce=i),ss.setTimeout(Me,t)}_s()&&"complete"===es.readyState?Pe=!0:Te(ss,"load",function(){Pe=!0});var Ie=function(t){var i=es.createElement("style");return i.className=t,i},Ee=function(t,i){t.styleSheet?t.styleSheet.cssText=i:t.textContent=i},De=function(t,i,s){i.guid||(i.guid=hs());var e=function(){return i.apply(t,arguments)};return e.guid=s?s+"_"+i.guid:i.guid,e};function Ne(t){return"string"!=typeof t?t:t.charAt(0).toUpperCase()+t.slice(1)}function Fe(){for(var t={},i=arguments.length,s=new Array(i),e=0;e<i;e++)s[e]=arguments[e];return s.forEach(function(i){i&&cs(i,function(i,s){fs(i)?(fs(t[s])||(t[s]={}),t[s]=Fe(t[s],i)):t[s]=i})}),t}var Be=function(){function t(t,i,s){if(!t&&this.play?this.t=t=this:this.t=t,this.h=Fe({},this.h),i=this.h=Fe(this.h,i),this.o=i.id||i.el&&i.el.id,!this.o){var e=t&&t.id&&t.id()||"no_player";this.o=e+"u"+hs()}this.l=i.name||null,i.el?this.v=i.el:!1!==i.createEl&&(this.v=this.createEl()),this.m=[],this.k={},this.j={},!1!==i.initChildren&&this.initChildren(),this.ready(s),!1!==i.reportTouchActivity&&this.enableTouchActivity()}var i=t.prototype;return i.dispose=function(){if(this.trigger({type:"dispose",bubbles:!1}),this.m)for(var t=this.m.length-1;t>=0;t--)this.m[t].dispose&&this.m[t].dispose();this.m=null,this.k=null,this.j=null,this.off(),this.v.parentNode&&this.v.parentNode.removeChild(this.v),Es(this.v),this.v=null},i.player=function(){return this.t},i.options=function(t){return ps.warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),t?(this.h=Fe(this.h,t),this.h):this.h},i.el=function(){return this.v},i.createEl=function(t,i,s){return Ss(t,i,s)},i.localize=function(t){var i=this.t.language&&this.t.language(),s=this.t.languages&&this.t.languages();if(!i||!s)return t;var e=s[i];if(e&&e[t])return e[t];var n=s[i.split("-")[0]];return n&&n[t]?n[t]:t},i.contentEl=function(){return this.S||this.v},i.id=function(){return this.o},i.name=function(){return this.l},i.children=function(){return this.m},i.getChildById=function(t){return this.k[t]},i.getChild=function(t){if(t)return t=Ne(t),this.j[t]},i.addChild=function(i,s,e){var n,r;if(void 0===s&&(s={}),void 0===e&&(e=this.m.length),"string"==typeof i){r=Ne(i),s||(s={}),!0===s&&(ps.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`."),s={});var h=s.componentClass||r;s.name=r;var o=t.getComponent(h);if(!o)throw new v("Component "+h+" does not exist");if("function"!=typeof o)return null;n=new o(this.t||this,s)}else n=i;if(this.m.splice(e,0,n),"function"==typeof n.id&&(this.k[n.id()]=n),(r=r||n.name&&Ne(n.name()))&&(this.j[r]=n),"function"==typeof n.el&&n.el()){var a=this.contentEl().children[e]||null;this.contentEl().insertBefore(n.el(),a)}return n},i.removeChild=function(t){if("string"==typeof t&&(t=this.getChild(t)),t&&this.m){for(var i=!1,s=this.m.length-1;s>=0;s--)if(this.m[s]===t){i=!0,this.m.splice(s,1);break}if(i){this.k[t.id()]=null,this.j[t.name()]=null;var e=t.el();e&&e.parentNode===this.contentEl()&&this.contentEl().removeChild(t.el())}}},i.initChildren=function(){var i=this,s=this.h.children;if(s){var e,n=this.h,r=t.getComponent("Tech");(e=Array.isArray(s)?s:g.keys(s)).concat(g.keys(this.h).filter(function(t){return!e.some(function(i){return"string"==typeof i?t===i:t===i.name})})).map(function(t){var e,n;return"string"==typeof t?n=s[e=t]||i.h[e]||{}:(e=t.name,n=t),{name:e,opts:n}}).filter(function(i){var s=t.getComponent(i.opts.componentClass||Ne(i.name));return s&&!r.isTech(s)}).forEach(function(t){var s=t.name,e=t.opts;if(void 0!==n[s]&&(e=n[s]),!1!==e){!0===e&&(e={}),e.playerOptions=i.h.playerOptions;var r=i.addChild(s,e);r&&(i[s]=r)}})}},i.buildCSSClass=function(){return""},i.on=function(t,i,s){var e=this;if("string"==typeof t||Array.isArray(t))je(this.v,t,De(this,i));else{var n=t,r=i,h=De(this,s),o=function(){return e.off(n,r,h)};o.guid=h.guid,this.on("dispose",o);var a=function(){return e.off("dispose",o)};a.guid=h.guid,t.nodeName?(je(n,r,h),je(n,"dispose",a)):"function"==typeof t.on&&(n.on(r,h),n.on("dispose",a))}return this},i.off=function(t,i,s){if(!t||"string"==typeof t||Array.isArray(t))xe(this.v,t,i);else{var e=t,n=i,r=De(this,s);this.off("dispose",r),t.nodeName?(xe(e,n,r),xe(e,"dispose",r)):(e.off(n,r),e.off("dispose",r))}return this},i.one=function(t,i,s){var e=arguments,n=this;if("string"==typeof t||Array.isArray(t))Te(this.v,t,De(this,i));else{var r=t,h=i,o=De(this,s),a=function t(){n.off(r,h,t),o.apply(null,e)};a.guid=o.guid,this.on(r,h,a)}return this},i.trigger=function(t,i){return Se(this.v,t,i),this},i.ready=function(t,i){return void 0===i&&(i=!1),t&&(this.T?i?t.call(this):this.setTimeout(t,1):(this.C=this.C||[],this.C.push(t))),this},i.triggerReady=function(){this.T=!0,this.setTimeout(function(){var t=this.C;this.C=[],t&&t.length>0&&t.forEach(function(t){t.call(this)},this),this.trigger("ready")},1)},i.$=function(t,i){return Gs(t,i||this.contentEl())},i.$$=function(t,i){return Xs(t,i||this.contentEl())},i.hasClass=function(t){return Ds(this.v,t)},i.addClass=function(t){return Ns(this.v,t),this},i.removeClass=function(t){return Fs(this.v,t),this},i.toggleClass=function(t,i){return Bs(this.v,t,i),this},i.show=function(){return this.removeClass("vjs-hidden"),this},i.hide=function(){return this.addClass("vjs-hidden"),this},i.lockShowing=function(){return this.addClass("vjs-lock-showing"),this},i.unlockShowing=function(){return this.removeClass("vjs-lock-showing"),this},i.getAttribute=function(t){return function(t,i){return t.getAttribute(i)}(this.v,t)},i.setAttribute=function(t,i){return Os(this.v,t,i),this},i.removeAttribute=function(t){return Vs(this.v,t),this},i.width=function(t,i){return this.dimension("width",t,i)},i.height=function(t,i){return this.dimension("height",t,i)},i.dimensions=function(t,i){return this.width(t,!0).height(i)},i.dimension=function(t,i,s){if(void 0!==i)return null!==i&&i==i||(i=0),-1!==(""+i).indexOf("%")||-1!==(""+i).indexOf("px")?this.v.style[t]=i:this.v.style[t]="auto"===i?"":i+"px",s||this.trigger("resize"),this;if(!this.v)return 0;var e=this.v.style[t],n=e.indexOf("px");return k(-1!==n?e.slice(0,n):this.v["offset"+Ne(t)],10)},i.currentDimension=function(t){var i=0;if("width"!==t&&"height"!==t)throw new v("currentDimension only accepts width or height value");if("function"==typeof ss.getComputedStyle){var s=ss.getComputedStyle(this.v);i=s.getPropertyValue(t)||s[t]}if(0===(i=_(i))){var e="offset"+Ne(t);i=this.v[e]}return i},i.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},i.currentWidth=function(){return this.currentDimension("width")},i.currentHeight=function(){return this.currentDimension("height")},i.focus=function(){this.v.focus()},i.blur=function(){this.v.blur()},i.emitTapEvents=function(){var t,i=0,s=null;this.on("touchstart",function(e){1===e.touches.length&&(s={pageX:e.touches[0].pageX,pageY:e.touches[0].pageY},i=(new Date).getTime(),t=!0)}),this.on("touchmove",function(i){if(i.touches.length>1)t=!1;else if(s){var e=i.touches[0].pageX-s.pageX,n=i.touches[0].pageY-s.pageY;w.sqrt(e*e+n*n)>10&&(t=!1)}});var e=function(){t=!1};this.on("touchleave",e),this.on("touchcancel",e),this.on("touchend",function(e){(s=null,!0===t)&&((new Date).getTime()-i<200&&(e.preventDefault(),this.trigger("tap")))})},i.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var t,i=De(this.player(),this.player().reportUserActivity);this.on("touchstart",function(){i(),this.clearInterval(t),t=this.setInterval(i,250)});var s=function(s){i(),this.clearInterval(t)};this.on("touchmove",i),this.on("touchend",s),this.on("touchcancel",s)}},i.setTimeout=function(t,i){t=De(this,t);var s=ss.setTimeout(t,i),e=function(){this.clearTimeout(s)};return e.guid="vjs-timeout-"+s,this.on("dispose",e),s},i.clearTimeout=function(t){ss.clearTimeout(t);var i=function(){};return i.guid="vjs-timeout-"+t,this.off("dispose",i),t},i.setInterval=function(t,i){t=De(this,t);var s=ss.setInterval(t,i),e=function(){this.clearInterval(s)};return e.guid="vjs-interval-"+s,this.on("dispose",e),s},i.clearInterval=function(t){ss.clearInterval(t);var i=function(){};return i.guid="vjs-interval-"+t,this.off("dispose",i),t},t.registerComponent=function(i,s){if(i){if(i=Ne(i),t.P||(t.P={}),"Player"===i&&t.P[i]){var e=t.P[i];if(e.players&&g.keys(e.players).length>0&&g.keys(e.players).map(function(t){return e.players[t]}).every(Boolean))throw new v("Can not register Player component after player has been created")}return t.P[i]=s,s}},t.getComponent=function(i){if(i)return i=Ne(i),t.P&&t.P[i]?t.P[i]:ss&&ss.videojs&&ss.videojs[i]?(ps.warn("The "+i+" component was added to the videojs object when it should be registered using videojs.registerComponent(name, component)"),ss.videojs[i]):void 0},t.extend=function(i){i=i||{},ps.warn("Component.extend({}) has been deprecated, use videojs.extend(Component, {}) instead");var s=i.init||i.init||this.prototype.init||this.prototype.init||function(){},e=function(){s.apply(this,arguments)};for(var n in(e.prototype=g.create(this.prototype)).constructor=e,e.extend=t.extend,i)i.hasOwnProperty(n)&&(e.prototype[n]=i[n]);return e},t}();Be.registerComponent("Component",Be);var $e=function(){};function Re(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Oe(t,i){return(Oe=g.setPrototypeOf?g.setPrototypeOf.bind():function(t,i){return t.__proto__=i,t})(t,i)}function Ve(t,i){t.prototype=g.create(i.prototype),t.prototype.constructor=t,Oe(t,i)}function Ue(t,i,s,e){return void 0===e&&(ps.warn("DEPRECATED: Function '"+t+"' on 'TimeRanges' called without an index argument."),e=0),function(t,i,s){if(i<0||i>s)throw new v("Failed to execute '"+t+"' on 'TimeRanges': The index provided ("+i+") is greater than or equal to the maximum bound ("+s+").")}(t,e,s.length-1),s[e][i]}function Le(t){return void 0===t||0===t.length?{length:0,start:function(){throw new v("This TimeRanges object is empty")},end:function(){throw new v("This TimeRanges object is empty")}}:{length:t.length,start:Ue.bind(null,"start",0,t),end:Ue.bind(null,"end",1,t)}}function He(t,i){return Array.isArray(t)?Le(t):void 0===t||void 0===i?Le():Le([[t,i]])}function ze(t,i){var s,e,n=0;if(!i)return 0;t&&t.length||(t=He(0,0));for(var r=0;r<t.length;r++)s=t.start(r),(e=t.end(r))>i&&(e=i),n+=e-s;return n/i}$e.prototype.M={},$e.prototype.on=function(t,i){var s=this.addEventListener;this.addEventListener=function(){},je(this,t,i),this.addEventListener=s},$e.prototype.addEventListener=$e.prototype.on,$e.prototype.off=function(t,i){xe(this,t,i)},$e.prototype.removeEventListener=$e.prototype.off,$e.prototype.one=function(t,i){var s=this.addEventListener;this.addEventListener=function(){},Te(this,t,i),this.addEventListener=s},$e.prototype.trigger=function(t){var i=t.type||t;"string"==typeof t&&(t={type:i}),t=we(t),this.M[i]&&this["on"+i]&&this["on"+i](t),Se(this,t)},$e.prototype.dispatchEvent=$e.prototype.trigger;var We,qe,Ge,Xe,Je={prefixed:!0},Qe=[["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"]],Ye=Qe[0];for(qe=0;qe<Qe.length;qe++)if(Qe[qe][1]in es){We=Qe[qe];break}if(We){for(Ge=0;Ge<We.length;Ge++)Je[Ye[Ge]]=We[Ge];Je.prefixed=We[0]!==Ye[0]}function Ke(t){if(t instanceof Ke)return t;"number"==typeof t?this.code=t:"string"==typeof t?this.message=t:ds(t)&&("number"==typeof t.code&&(this.code=t.code),ls(this,t)),this.message||(this.message=Ke.defaultMessages[this.code]||"")}for(Ke.prototype.code=0,Ke.prototype.message="",Ke.prototype.status=null,Ke.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],Ke.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."},Xe=0;Xe<Ke.errorTypes.length;Xe++)Ke[Ke.errorTypes[Xe]]=Xe,Ke.prototype[Ke.errorTypes[Xe]]=Xe;var Ze=function(t,i){var s,e=null;try{s=JSON.parse(t,i)}catch(t){e=t}return[e,s]};var tn=function(t){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(i,s,e){return t[s]&&(i[s]=t[s]),i},{cues:t.cues&&Array.prototype.map.call(t.cues,function(t){return{startTime:t.startTime,endTime:t.endTime,text:t.text,id:t.id}})})},sn=function(t){var i=t.$$("track"),s=Array.prototype.map.call(i,function(t){return t.track});return Array.prototype.map.call(i,function(t){var i=tn(t.track);return t.src&&(i.src=t.src),i}).concat(Array.prototype.filter.call(t.textTracks(),function(t){return-1===s.indexOf(t)}).map(tn))},en=function(t,i){return t.forEach(function(t){var s=i.addRemoteTextTrack(t).track;!t.src&&t.cues&&t.cues.forEach(function(t){return s.addCue(t)})}),i.textTracks()},nn="vjs-modal-dialog",rn=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).A=e.I=e.D=!1,e.closeable(!e.h.uncloseable),e.content(e.h.content),e.S=Ss("div",{className:nn+"-content"},{role:"document"}),e.N=Ss("p",{className:nn+"-description vjs-offscreen",id:e.el().getAttribute("aria-describedby")}),Ts(e.N,e.description()),e.v.appendChild(e.N),e.v.appendChild(e.S),e.on(i,"languagechange",e.handleLanguagechange),e}Ve(i,t);var s=i.prototype;return s.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"F","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},s.buildCSSClass=function(){return nn+" vjs-hidden "+t.prototype.buildCSSClass.call(this)},s.handleKeyPress=function(t){27===t.which&&this.closeable()&&this.close()},s.label=function(){return this.h.label||this.localize("Modal Window")},s.description=function(){var t=this.h.description||this.localize("This is a modal window.");return this.closeable()&&(t+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),t},s.open=function(){if(!this.A){var t=this.player();this.trigger("beforemodalopen"),this.A=!0,(this.h.fillAlways||!this.I&&!this.D)&&this.fill(),this.B=!t.paused(),this.h.pauseOnOpen&&this.B&&t.pause(),this.closeable()&&this.on(this.v.ownerDocument,"keydown",De(this,this.handleKeyPress)),t.controls(!1),this.show(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.I=!0}return this},s.opened=function(t){return"boolean"==typeof t&&this[t?"open":"close"](),this.A},s.close=function(){if(this.A){var t=this.player();this.trigger("beforemodalclose"),this.A=!1,this.B&&this.h.pauseOnOpen&&t.play(),this.closeable()&&this.off(this.v.ownerDocument,"keydown",De(this,this.handleKeyPress)),t.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.h.temporary&&this.dispose()}return this},s.closeable=function(t){if("boolean"==typeof t){var i=this.R=!!t,s=this.getChild("closeButton");if(i&&!s){var e=this.S;this.S=this.v,s=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.S=e,this.on(s,"close",this.close)}!i&&s&&(this.off(s,"close",this.close),this.removeChild(s),s.dispose())}return this.R},s.fill=function(){return this.fillWith(this.content())},s.fillWith=function(t){var i=this.contentEl(),s=i.parentNode,e=i.nextSibling;return this.trigger("beforemodalfill"),this.D=!0,s.removeChild(i),this.empty(),qs(i,t),this.trigger("modalfill"),e?s.insertBefore(i,e):s.appendChild(i),this},s.empty=function(){return this.trigger("beforemodalempty"),zs(this.contentEl()),this.trigger("modalempty"),this},s.content=function(t){return void 0!==t&&(this.O=t),this.O},s.handleLanguagechange=function(){this.v.setAttribute("aria-label",this.label()),Ts(this.N,this.description()),this.opened()?this.fill():(this.I||this.D)&&(this.I=!1,this.D=!1,this.empty())},i}(Be);rn.prototype.h={pauseOnOpen:!0,temporary:!0},Be.registerComponent("ModalDialog",rn);var hn=function(){function t(i){var s=this;if(le)for(var e in s=es.createElement("custom"),t.prototype)"constructor"!==e&&(s[e]=t.prototype[e]);if(t.prototype.V.call(s,i),g.defineProperty(s,"length",{get:function(){return this.U}}),le)return s}var i=t.prototype;return i.V=function(t){var i=this.length||0,s=0,e=t.length;this.L=t,this.U=t.length;var n=function(t){""+t in this||g.defineProperty(this,""+t,{get:function(){return this.L[t]}})};if(i<e)for(s=i;s<e;s++)n.call(this,s)},i.getCueById=function(t){for(var i=null,s=0,e=this.length;s<e;s++){var n=this[s];if(n.id===t){i=n;break}}return i},t}(),on={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},an={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},un={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},cn={disabled:"disabled",hidden:"hidden",showing:"showing"},ln=function(t){function i(s){var e;void 0===s&&(s={});var n=Re(e=t.call(this)||this);if(le)for(var r in n=es.createElement("custom"),i.prototype)"constructor"!==r&&(n[r]=i.prototype[r]);var h={id:s.id||["vjs_track",hs()].join("_"),kind:s.kind||"",label:s.label||"",language:s.language||""},o=function(t){g.defineProperty(n,t,{get:function(){return h[t]},set:function(){}})};for(var a in h)o(a);return n||Re(e)}return Ve(i,t),i}($e),dn=function(t){var i=["protocol","hostname","port","pathname","search","hash","host"],s=es.createElement("a");s.href=t;var e,n=""===s.host&&"file:"!==s.protocol;n&&((e=es.createElement("div")).innerHTML='<a href="'+t+'"></a>',s=e.firstChild,e.setAttribute("style","display:none; position:absolute;"),es.body.appendChild(e));for(var r={},h=0;h<i.length;h++)r[i[h]]=s[i[h]];return"http:"===r.protocol&&(r.host=r.host.replace(/:80$/,"")),"https:"===r.protocol&&(r.host=r.host.replace(/:443$/,"")),n&&es.body.removeChild(e),r},fn=function(t){var i=ss.location,s=dn(t);return(":"===s.protocol?i.protocol:s.protocol)+s.host!==i.protocol+i.host},vn={exports:{}};void 0!==a?vn.exports=a:void 0!==ms?vn.exports=ms:"undefined"!=typeof self?vn.exports=self:vn.exports={};var pn=function(t){var i=mn.call(t);return"[object Function]"===i||"function"==typeof t&&"[object RegExp]"!==i||void 0!==a&&(t===a.setTimeout||t===a.alert||t===a.confirm||t===a.prompt)},mn=g.prototype.toString;var gn,yn,bn,wn,kn,_n,jn,xn,Sn,Tn,Cn,Pn,Mn=Array.prototype.slice,An=g.prototype.toString,In=function(t){var i=this;if("function"!=typeof i||"[object Function]"!==An.call(i))throw new p("Function.prototype.bind called on incompatible "+i);for(var s,e=Mn.call(arguments,1),n=w.max(0,i.length-e.length),r=[],h=0;h<n;h++)r.push("$"+h);if(s=Function("binder","return function ("+r.join(",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof s){var n=i.apply(this,e.concat(Mn.call(arguments)));return g(n)===n?n:this}return i.apply(t,e.concat(Mn.call(arguments)))}),i.prototype){var o=function(){};o.prototype=i.prototype,s.prototype=new o,o.prototype=null}return s},En=Function.prototype.bind||In,Dn=g.prototype.toString,Nn=function(t){var i=Dn.call(t),s="[object Arguments]"===i;return s||(s="[object Array]"!==i&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===Dn.call(t.callee)),s};g.keys||(yn=g.prototype.hasOwnProperty,bn=g.prototype.toString,wn=Nn,kn=g.prototype.propertyIsEnumerable,_n=!kn.call({toString:null},"toString"),jn=kn.call(function(){},"prototype"),xn=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Sn=function(t){var i=t.constructor;return i&&i.prototype===t},Tn={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},Cn=function(){if(void 0===a)return!1;for(var t in a)try{if(!Tn["$"+t]&&yn.call(a,t)&&null!==a[t]&&"object"==typeof a[t])try{Sn(a[t])}catch(t){return!0}}catch(t){return!0}return!1}(),Pn=function(t){if(void 0===a||!Cn)return Sn(t);try{return Sn(t)}catch(t){return!1}},gn=function(t){var i=null!==t&&"object"==typeof t,s="[object Function]"===bn.call(t),e=wn(t),n=i&&"[object String]"===bn.call(t),r=[];if(!i&&!s&&!e)throw new p("Object.keys called on a non-object");var h=jn&&s;if(n&&t.length>0&&!yn.call(t,0))for(var o=0;o<t.length;++o)r.push(String(o));if(e&&t.length>0)for(var a=0;a<t.length;++a)r.push(String(a));else for(var u in t)h&&"prototype"===u||!yn.call(t,u)||r.push(String(u));if(_n)for(var c=Pn(t),l=0;l<xn.length;++l)c&&"constructor"===xn[l]||!yn.call(t,xn[l])||r.push(xn[l]);return r});var Fn=gn,Bn=Array.prototype.slice,$n=Nn,Rn=g.keys,On=Rn?function(t){return Rn(t)}:Fn,Vn=g.keys;On.shim=function(){if(g.keys){var t=function(){var t=g.keys(arguments);return t&&t.length===arguments.length}(1,2);t||(g.keys=function(t){return $n(t)?Vn(Bn.call(t)):Vn(t)})}else g.keys=On;return g.keys||On};var Un=On,Ln="function"==typeof Et&&"symbol"==typeof Et("foo"),Hn=g.prototype.toString,zn=Array.prototype.concat,Wn=g.defineProperty,qn=Wn&&function(){var t={};try{for(var i in Wn(t,"x",{enumerable:!1,value:t}),t)return!1;return t.x===t}catch(t){return!1}}(),Gn=function(t,i,s,e){(!(i in t)||function(t){return"function"==typeof t&&"[object Function]"===Hn.call(t)}(e)&&e())&&(qn?Wn(t,i,{configurable:!0,enumerable:!1,value:s,writable:!0}):t[i]=s)},Xn=function(t,i){var s=arguments.length>2?arguments[2]:{},e=Un(i);Ln&&(e=zn.call(e,g.getOwnPropertySymbols(i)));for(var n=0;n<e.length;n+=1)Gn(t,e[n],i[e[n]],s[e[n]])};Xn.supportsDescriptors=!!qn;var Jn,Qn=Xn,Yn=g.getOwnPropertyDescriptor?function(){return g.getOwnPropertyDescriptor(arguments,"callee").get}():function(){throw new p},Kn="function"==typeof Et&&"symbol"==typeof Ft,Zn=g.getPrototypeOf||function(t){return t.__proto__},tr=Jn,ir=Jn,sr=Jn,er=void 0===x?Jn:Zn(x),nr={"$ %Array%":Array,"$ %ArrayBuffer%":"undefined"==typeof ArrayBuffer?Jn:ArrayBuffer,"$ %ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?Jn:ArrayBuffer.prototype,"$ %ArrayIteratorPrototype%":Kn?Zn([][Ft]()):Jn,"$ %ArrayPrototype%":Array.prototype,"$ %ArrayProto_entries%":Array.prototype.entries,"$ %ArrayProto_forEach%":Array.prototype.forEach,"$ %ArrayProto_keys%":Array.prototype.keys,"$ %ArrayProto_values%":Array.prototype.values,"$ %AsyncFromSyncIteratorPrototype%":Jn,"$ %AsyncFunction%":ir,"$ %AsyncFunctionPrototype%":Jn,"$ %AsyncGenerator%":Jn,"$ %AsyncGeneratorFunction%":sr,"$ %AsyncGeneratorPrototype%":Jn,"$ %AsyncIteratorPrototype%":Jn,"$ %Atomics%":"undefined"==typeof Atomics?Jn:Atomics,"$ %Boolean%":Boolean,"$ %BooleanPrototype%":Boolean.prototype,"$ %DataView%":"undefined"==typeof DataView?Jn:DataView,"$ %DataViewPrototype%":"undefined"==typeof DataView?Jn:DataView.prototype,"$ %Date%":Date,"$ %DatePrototype%":Date.prototype,"$ %decodeURI%":decodeURI,"$ %decodeURIComponent%":decodeURIComponent,"$ %encodeURI%":encodeURI,"$ %encodeURIComponent%":encodeURIComponent,"$ %Error%":v,"$ %ErrorPrototype%":v.prototype,"$ %eval%":eval,"$ %EvalError%":EvalError,"$ %EvalErrorPrototype%":EvalError.prototype,"$ %Float32Array%":"undefined"==typeof Float32Array?Jn:Float32Array,"$ %Float32ArrayPrototype%":"undefined"==typeof Float32Array?Jn:Float32Array.prototype,"$ %Float64Array%":"undefined"==typeof Float64Array?Jn:Float64Array,"$ %Float64ArrayPrototype%":"undefined"==typeof Float64Array?Jn:Float64Array.prototype,"$ %Function%":Function,"$ %FunctionPrototype%":Function.prototype,"$ %Generator%":Jn,"$ %GeneratorFunction%":tr,"$ %GeneratorPrototype%":Jn,"$ %Int8Array%":"undefined"==typeof Int8Array?Jn:Int8Array,"$ %Int8ArrayPrototype%":"undefined"==typeof Int8Array?Jn:Int8Array.prototype,"$ %Int16Array%":"undefined"==typeof Int16Array?Jn:Int16Array,"$ %Int16ArrayPrototype%":"undefined"==typeof Int16Array?Jn:Int8Array.prototype,"$ %Int32Array%":"undefined"==typeof Int32Array?Jn:Int32Array,"$ %Int32ArrayPrototype%":"undefined"==typeof Int32Array?Jn:Int32Array.prototype,"$ %isFinite%":isFinite,"$ %isNaN%":j,"$ %IteratorPrototype%":Kn?Zn(Zn([][Ft]())):Jn,"$ %JSON%":JSON,"$ %JSONParse%":JSON.parse,"$ %Map%":"undefined"==typeof Map?Jn:Map,"$ %MapIteratorPrototype%":"undefined"!=typeof Map&&Kn?Zn((new Map)[Ft]()):Jn,"$ %MapPrototype%":"undefined"==typeof Map?Jn:Map.prototype,"$ %Math%":w,"$ %Number%":Number,"$ %NumberPrototype%":Number.prototype,"$ %Object%":g,"$ %ObjectPrototype%":g.prototype,"$ %ObjProto_toString%":g.prototype.toString,"$ %ObjProto_valueOf%":g.prototype.valueOf,"$ %parseFloat%":_,"$ %parseInt%":k,"$ %Promise%":"undefined"==typeof Promise?Jn:Promise,"$ %PromisePrototype%":"undefined"==typeof Promise?Jn:Promise.prototype,"$ %PromiseProto_then%":"undefined"==typeof Promise?Jn:Promise.prototype.then,"$ %Promise_all%":"undefined"==typeof Promise?Jn:Promise.all,"$ %Promise_reject%":"undefined"==typeof Promise?Jn:Promise.reject,"$ %Promise_resolve%":"undefined"==typeof Promise?Jn:Promise.resolve,"$ %Proxy%":"undefined"==typeof Proxy?Jn:Proxy,"$ %RangeError%":RangeError,"$ %RangeErrorPrototype%":RangeError.prototype,"$ %ReferenceError%":ReferenceError,"$ %ReferenceErrorPrototype%":ReferenceError.prototype,"$ %Reflect%":"undefined"==typeof Reflect?Jn:Reflect,"$ %RegExp%":RegExp,"$ %RegExpPrototype%":RegExp.prototype,"$ %Set%":"undefined"==typeof Set?Jn:Set,"$ %SetIteratorPrototype%":"undefined"!=typeof Set&&Kn?Zn((new Set)[Ft]()):Jn,"$ %SetPrototype%":"undefined"==typeof Set?Jn:Set.prototype,"$ %SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?Jn:SharedArrayBuffer,"$ %SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?Jn:SharedArrayBuffer.prototype,"$ %String%":String,"$ %StringIteratorPrototype%":Kn?Zn(""[Ft]()):Jn,"$ %StringPrototype%":String.prototype,"$ %Symbol%":Kn?Et:Jn,"$ %SymbolPrototype%":Kn?Et.prototype:Jn,"$ %SyntaxError%":m,"$ %SyntaxErrorPrototype%":m.prototype,"$ %ThrowTypeError%":Yn,"$ %TypedArray%":er,"$ %TypedArrayPrototype%":er?er.prototype:Jn,"$ %TypeError%":p,"$ %TypeErrorPrototype%":p.prototype,"$ %Uint8Array%":void 0===x?Jn:x,"$ %Uint8ArrayPrototype%":void 0===x?Jn:x.prototype,"$ %Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?Jn:Uint8ClampedArray,"$ %Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?Jn:Uint8ClampedArray.prototype,"$ %Uint16Array%":"undefined"==typeof Uint16Array?Jn:Uint16Array,"$ %Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?Jn:Uint16Array.prototype,"$ %Uint32Array%":"undefined"==typeof Uint32Array?Jn:Uint32Array,"$ %Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?Jn:Uint32Array.prototype,"$ %URIError%":URIError,"$ %URIErrorPrototype%":URIError.prototype,"$ %WeakMap%":"undefined"==typeof WeakMap?Jn:WeakMap,"$ %WeakMapPrototype%":"undefined"==typeof WeakMap?Jn:WeakMap.prototype,"$ %WeakSet%":"undefined"==typeof WeakSet?Jn:WeakSet,"$ %WeakSetPrototype%":"undefined"==typeof WeakSet?Jn:WeakSet.prototype},rr=function(t,i){if(arguments.length>1&&"boolean"!=typeof i)throw new p('"allowMissing" argument must be a boolean');var s="$ "+t;if(!(s in nr))throw new m("intrinsic "+t+" does not exist!");if(void 0===nr[s]&&!i)throw new p("intrinsic "+t+" exists, but is not available. Please file an issue!");return nr[s]},hr=En.call(Function.call,g.prototype.hasOwnProperty),or=rr,ar=or("%TypeError%"),ur=or("%SyntaxError%"),cr=hr,lr={"Property Descriptor":function(t,i){if("Object"!==t.Type(i))return!1;var s={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var e in i)if(cr(i,e)&&!s[e])return!1;var n=cr(i,"[[Value]]"),r=cr(i,"[[Get]]")||cr(i,"[[Set]]");if(n&&r)throw new ar("Property Descriptors may not be both accessor and data descriptors");return!0}},dr=Number.isNaN||function(t){return t!=t},fr=Number.isNaN||function(t){return t!=t},vr=Number.isFinite||function(t){return"number"==typeof t&&!fr(t)&&t!==1/0&&t!==-1/0},pr=Function.prototype.toString,mr=/^\s*class\b/,gr=function(t){try{var i=pr.call(t);return mr.test(i)}catch(t){return!1}},yr=g.prototype.toString,br="function"==typeof Et&&"symbol"==typeof Et.toStringTag,wr=function(t){if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if("function"==typeof t&&!t.prototype)return!0;if(br)return function(t){try{return!gr(t)&&(pr.call(t),!0)}catch(t){return!1}}(t);if(gr(t))return!1;var i=yr.call(t);return"[object Function]"===i||"[object GeneratorFunction]"===i},kr=g.prototype.toString,_r=function(t){return null===t||"function"!=typeof t&&"object"!=typeof t},jr=wr,xr=function(t){var i;if((i=arguments.length>1?arguments[1]:"[object Date]"===kr.call(t)?String:Number)===String||i===Number){var s,e,n=i===String?["toString","valueOf"]:["valueOf","toString"];for(e=0;e<n.length;++e)if(jr(t[n[e]])&&(s=t[n[e]](),_r(s)))return s;throw new p("No default value")}throw new p("invalid [[DefaultValue]] hint supplied")},Sr=rr,Tr=Sr("%Object%"),Cr=Sr("%TypeError%"),Pr=Sr("%String%"),Mr=function(t,i,s,e){var n=lr[i];if("function"!=typeof n)throw new ur("unknown record type: "+i);if(!n(t,e))throw new ar(s+" must be a "+i);console.log(n(t,e),e)},Ar=dr,Ir=vr,Er=function(t){return t>=0?1:-1},Dr=function(t,i){var s=t%i;return w.floor(s>=0?s:s+i)},Nr=hr,Fr={ToPrimitive:function(t){return _r(t)?t:arguments.length>1?xr(t,arguments[1]):xr(t)},ToBoolean:function(t){return!!t},ToNumber:function(t){return+t},ToInteger:function(t){var i=this.ToNumber(t);return Ar(i)?0:0!==i&&Ir(i)?Er(i)*w.floor(w.abs(i)):i},ToInt32:function(t){return this.ToNumber(t)|0},ToUint32:function(t){return this.ToNumber(t)>>>0},ToUint16:function(t){var i=this.ToNumber(t);if(Ar(i)||0===i||!Ir(i))return 0;var s=Er(i)*w.floor(w.abs(i));return Dr(s,65536)},ToString:function(t){return Pr(t)},ToObject:function(t){return this.CheckObjectCoercible(t),Tr(t)},CheckObjectCoercible:function(t,i){if(null==t)throw new Cr(i||"Cannot call method on "+t);return t},IsCallable:wr,SameValue:function(t,i){return t===i?0!==t||1/t==1/i:Ar(t)&&Ar(i)},Type:function(t){return null===t?"Null":void 0===t?"Undefined":"function"==typeof t||"object"==typeof t?"Object":"number"==typeof t?"Number":"boolean"==typeof t?"Boolean":"string"==typeof t?"String":void 0},IsPropertyDescriptor:function(t){if("Object"!==this.Type(t))return!1;var i={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var s in t)if(Nr(t,s)&&!i[s])return!1;var e=Nr(t,"[[Value]]"),n=Nr(t,"[[Get]]")||Nr(t,"[[Set]]");if(e&&n)throw new Cr("Property Descriptors may not be both accessor and data descriptors");return!0},IsAccessorDescriptor:function(t){return void 0!==t&&(Mr(this,"Property Descriptor","Desc",t),!(!Nr(t,"[[Get]]")&&!Nr(t,"[[Set]]")))},IsDataDescriptor:function(t){return void 0!==t&&(Mr(this,"Property Descriptor","Desc",t),!(!Nr(t,"[[Value]]")&&!Nr(t,"[[Writable]]")))},IsGenericDescriptor:function(t){return void 0!==t&&(Mr(this,"Property Descriptor","Desc",t),!this.IsAccessorDescriptor(t)&&!this.IsDataDescriptor(t))},FromPropertyDescriptor:function(t){if(void 0===t)return t;if(Mr(this,"Property Descriptor","Desc",t),this.IsDataDescriptor(t))return{value:t["[[Value]]"],writable:!!t["[[Writable]]"],enumerable:!!t["[[Enumerable]]"],configurable:!!t["[[Configurable]]"]};if(this.IsAccessorDescriptor(t))return{get:t["[[Get]]"],set:t["[[Set]]"],enumerable:!!t["[[Enumerable]]"],configurable:!!t["[[Configurable]]"]};throw new Cr("FromPropertyDescriptor must be called with a fully populated Property Descriptor")},ToPropertyDescriptor:function(t){if("Object"!==this.Type(t))throw new Cr("ToPropertyDescriptor requires an object");var i={};if(Nr(t,"enumerable")&&(i["[[Enumerable]]"]=this.ToBoolean(t.enumerable)),Nr(t,"configurable")&&(i["[[Configurable]]"]=this.ToBoolean(t.configurable)),Nr(t,"value")&&(i["[[Value]]"]=t.value),Nr(t,"writable")&&(i["[[Writable]]"]=this.ToBoolean(t.writable)),Nr(t,"get")){var s=t.get;if(void 0!==s&&!this.IsCallable(s))throw new p("getter must be a function");i["[[Get]]"]=s}if(Nr(t,"set")){var e=t.set;if(void 0!==e&&!this.IsCallable(e))throw new Cr("setter must be a function");i["[[Set]]"]=e}if((Nr(i,"[[Get]]")||Nr(i,"[[Set]]"))&&(Nr(i,"[[Value]]")||Nr(i,"[[Writable]]")))throw new Cr("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return i}},Br=En.call(Function.call,String.prototype.replace),$r=/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,Rr=/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/,Or=function(){var t=Fr.ToString(Fr.CheckObjectCoercible(this));return Br(Br(t,$r,""),Rr,"")},Vr=Or,Ur=function(){return String.prototype.trim&&"\u200b"==="\u200b".trim()?String.prototype.trim:Vr},Lr=Qn,Hr=Ur,zr=Qn,Wr=Or,qr=Ur,Gr=function(){var t=Hr();return Lr(String.prototype,{trim:t},{trim:function(){return String.prototype.trim!==t}}),t},Xr=En.call(Function.call,qr());zr(Xr,{getPolyfill:qr,implementation:Wr,shim:Gr});var Jr=Xr,Qr=wr,Yr=g.prototype.toString,Kr=g.prototype.hasOwnProperty,Zr=Jr,th=function(t,i,s){if(!Qr(i))throw new p("iterator must be a function");var e;arguments.length>=3&&(e=s),"[object Array]"===Yr.call(t)?function(t,i,s){for(var e=0,n=t.length;e<n;e++)Kr.call(t,e)&&(null==s?i(t[e],e,t):i.call(s,t[e],e,t))}(t,i,e):"string"==typeof t?function(t,i,s){for(var e=0,n=t.length;e<n;e++)null==s?i(t.charAt(e),e,t):i.call(s,t.charAt(e),e,t)}(t,i,e):function(t,i,s){for(var e in t)Kr.call(t,e)&&(null==s?i(t[e],e,t):i.call(s,t[e],e,t))}(t,i,e)},ih=function(){for(var t={},i=0;i<arguments.length;i++){var s=arguments[i];for(var e in s)sh.call(s,e)&&(t[e]=s[e])}return t},sh=g.prototype.hasOwnProperty;var eh=vn.exports,nh=pn,rh=function(t){if(!t)return{};var i={};return th(Zr(t).split("\n"),function(t){var s=t.indexOf(":"),e=Zr(t.slice(0,s)).toLowerCase(),n=Zr(t.slice(s+1));void 0===i[e]?i[e]=n:!function(t){return"[object Array]"===g.prototype.toString.call(t)}(i[e])?i[e]=[i[e],n]:i[e].push(n)}),i},hh=ih,oh=uh;function ah(t,i,s){var e=t;return nh(i)?(s=i,"string"==typeof t&&(e={uri:t})):e=hh(i,{uri:t}),e.callback=s,e}function uh(t,i,s){return ch(i=ah(t,i,s))}function ch(t){if(void 0===t.callback)throw new v("callback argument missing");var i=!1,s=function(s,e,n){i||(i=!0,t.callback(s,e,n))};function e(){var t=void 0;if(t=l.response?l.response:l.responseText||function(t){if("document"===t.responseType)return t.responseXML;var i=204===t.status&&t.responseXML&&"parsererror"===t.responseXML.documentElement.nodeName;if(""===t.responseType&&!i)return t.responseXML;return null}(l),b)try{t=JSON.parse(t)}catch(t){}return t}var n={body:void 0,headers:{},statusCode:0,method:p,url:f,rawRequest:l};function r(t){return c(d),t instanceof v||(t=new v(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,s(t,n)}function h(){if(!a){var i;c(d),i=t.useXDR&&void 0===l.status?200:1223===l.status?204:l.status;var r=n,h=null;return 0!==i?(r={body:e(),statusCode:i,method:p,headers:{},url:f,rawRequest:l},l.getAllResponseHeaders&&(r.headers=rh(l.getAllResponseHeaders()))):h=new v("Internal XMLHttpRequest Error"),s(h,r,r.body)}}var o,a,l=t.xhr||null;l||(l=t.cors||t.useXDR?new uh.XDomainRequest:new uh.XMLHttpRequest);var d,f=l.url=t.uri||t.url,p=l.method=t.method||"GET",m=t.body||t.data||null,g=l.headers=t.headers||{},y=!!t.sync,b=!1;if("json"in t&&(b=!0,g.accept||g.Accept||(g.Accept="application/json"),"GET"!==p&&"HEAD"!==p&&(g["content-type"]||g["Content-Type"]||(g["Content-Type"]="application/json"),m=JSON.stringify(t.json))),l.onreadystatechange=function(){4===l.readyState&&h()},l.onload=h,l.onerror=r,l.onprogress=function(){},l.ontimeout=r,l.open(p,f,!y,t.username,t.password),y||(l.withCredentials=!!t.withCredentials),!y&&t.timeout>0&&(d=u(function(){a=!0,l.abort("timeout");var t=new v("XMLHttpRequest timeout");t.code="ETIMEDOUT",r(t)},t.timeout)),l.setRequestHeader)for(o in g)g.hasOwnProperty(o)&&l.setRequestHeader(o,g[o]);else if(t.headers&&!function(t){for(var i in t)if(t.hasOwnProperty(i))return!1;return!0}(t.headers))throw new v("Headers cannot be set on an XDomainRequest object");return"responseType"in t&&(l.responseType=t.responseType),"beforeSend"in t&&"function"==typeof t.beforeSend&&t.beforeSend(l),l.send(m),l}uh.XMLHttpRequest=eh.XMLHttpRequest||function(){},uh.XDomainRequest="withCredentials"in new uh.XMLHttpRequest?uh.XMLHttpRequest:eh.XDomainRequest,function(t,i){for(var s=0;s<t.length;s++)i(t[s])}(["get","put","post","patch","head","delete"],function(t){uh["delete"===t?"del":t]=function(i,s,e){return(s=ah(i,s,e)).method=t.toUpperCase(),ch(s)}});var lh=function(t,i){var s=new ss.WebVTT.Parser(ss,ss.vttjs,ss.WebVTT.StringDecoder()),e=[];s.oncue=function(t){i.addCue(t)},s.onparsingerror=function(t){e.push(t)},s.onflush=function(){i.trigger({type:"loadeddata",target:i})},s.parse(t),e.length>0&&(ss.console&&ss.console.groupCollapsed&&ss.console.groupCollapsed("Text Track parsing errors for "+i.src),e.forEach(function(t){return ps.error(t)}),ss.console&&ss.console.groupEnd&&ss.console.groupEnd()),s.flush()},dh=function(t){function i(s){var e;if(void 0===s&&(s={}),!s.tech)throw new v("A tech was not provided.");var n=Fe(s,{kind:un[s.kind]||"subtitles",language:s.language||s.srclang||""}),r=cn[n.mode]||"disabled",h=n.default;"metadata"!==n.kind&&"chapters"!==n.kind||(r="hidden");var o=e=t.call(this,n)||this;if(o.H=n.tech,le)for(var a in i.prototype)"constructor"!==a&&(o[a]=i.prototype[a]);o.L=[],o.W=[];var u=new hn(o.L),c=new hn(o.W),l=!1,d=De(o,function(){this.activeCues,l&&(this.trigger("cuechange"),l=!1)});return"disabled"!==r&&o.H.ready(function(){o.H.on("timeupdate",d)},!0),g.defineProperty(o,"default",{get:function(){return h},set:function(){}}),g.defineProperty(o,"mode",{get:function(){return r},set:function(t){var i=this;cn[t]&&("showing"===(r=t)&&this.H.ready(function(){i.H.on("timeupdate",d)},!0),this.trigger("modechange"))}}),g.defineProperty(o,"cues",{get:function(){return this.q?u:null},set:function(){}}),g.defineProperty(o,"activeCues",{get:function(){if(!this.q)return null;if(0===this.cues.length)return c;for(var t=this.H.currentTime(),i=[],s=0,e=this.cues.length;s<e;s++){var n=this.cues[s];(n.startTime<=t&&n.endTime>=t||n.startTime===n.endTime&&n.startTime<=t&&n.startTime+.5>=t)&&i.push(n)}if(l=!1,i.length!==this.W.length)l=!0;else for(var r=0;r<i.length;r++)-1===this.W.indexOf(i[r])&&(l=!0);return this.W=i,c.V(this.W),c},set:function(){}}),n.src?(o.src=n.src,function(t,i){var s={uri:t},e=fn(t);e&&(s.cors=e),oh(s,De(this,function(t,s,e){if(t)return ps.error(t,s);if(i.q=!0,"function"!=typeof ss.WebVTT){if(i.H){var n=function(){return lh(e,i)};i.H.on("vttjsloaded",n),i.H.on("vttjserror",function(){ps.error("vttjs failed to load, stopping trying to process "+i.src),i.H.off("vttjsloaded",n)})}}else lh(e,i)}))}(n.src,o)):o.q=!0,o||Re(e)}Ve(i,t);var s=i.prototype;return s.addCue=function(t){var i=t;if(ss.vttjs&&!(t instanceof ss.vttjs.VTTCue)){for(var s in i=new ss.vttjs.VTTCue(t.startTime,t.endTime,t.text),t)s in i||(i[s]=t[s]);i.id=t.id,i.G=t}var e=this.H.textTracks();if(e)for(var n=0;n<e.length;n++)e[n]!==this&&e[n].removeCue(i);this.L.push(i),this.cues.V(this.L)},s.removeCue=function(t){for(var i=this.L.length;i--;){var s=this.L[i];if(s===t||s.G&&s.G===t){this.L.splice(i,1),this.cues.V(this.L);break}}},i}(ln);dh.prototype.M={cuechange:"cuechange"};var fh=function(t){function i(s){var e,n;void 0===s&&(s={});var r=Re(e=t.call(this)||this);if(le)for(var h in r=es.createElement("custom"),i.prototype)"constructor"!==h&&(r[h]=i.prototype[h]);var o=new dh(s);return r.kind=o.kind,r.src=o.src,r.srclang=o.language,r.label=o.label,r.default=o.default,g.defineProperty(r,"readyState",{get:function(){return n}}),g.defineProperty(r,"track",{get:function(){return o}}),n=0,o.addEventListener("loadeddata",function(){n=2,r.trigger({type:"load",target:r})}),le?r||Re(e):e}return Ve(i,t),i}($e);fh.prototype.M={load:"load"},fh.NONE=0,fh.LOADING=1,fh.LOADED=2,fh.ERROR=3;var vh,ph=function(){function t(i){void 0===i&&(i=[]);var s=this;if(le)for(var e in s=es.createElement("custom"),t.prototype)"constructor"!==e&&(s[e]=t.prototype[e]);s.X=[],g.defineProperty(s,"length",{get:function(){return this.X.length}});for(var n=0,r=i.length;n<r;n++)s.J(i[n]);if(le)return s}var i=t.prototype;return i.J=function(t){var i=this.X.length;""+i in this||g.defineProperty(this,i,{get:function(){return this.X[i]}}),-1===this.X.indexOf(t)&&this.X.push(t)},i.Y=function(t){for(var i,s=0,e=this.X.length;s<e;s++)if(t===this.X[s].track){i=this.X[s];break}return i},i.K=function(t){for(var i=0,s=this.X.length;i<s;i++)if(t===this.X[i]){this.X.splice(i,1);break}},t}(),mh=function(t){function i(s,e){var n;if(void 0===s&&(s=[]),void 0===e&&(e=null),n=t.call(this)||this,!e&&(e=Re(n),le))for(var r in e=es.createElement("custom"),i.prototype)"constructor"!==r&&(e[r]=i.prototype[r]);e.Z=[],g.defineProperty(e,"length",{get:function(){return this.Z.length}});for(var h=0;h<s.length;h++)e.tt(s[h]);return e||Re(n)}Ve(i,t);var s=i.prototype;return s.tt=function(t){var i=this.Z.length;""+i in this||g.defineProperty(this,i,{get:function(){return this.Z[i]}}),-1===this.Z.indexOf(t)&&(this.Z.push(t),this.trigger({track:t,type:"addtrack"}))},s.it=function(t){for(var i,s=0,e=this.length;s<e;s++)if(this[s]===t){(i=this[s]).off&&i.off(),this.Z.splice(s,1);break}i&&this.trigger({track:i,type:"removetrack"})},s.getTrackById=function(t){for(var i=null,s=0,e=this.length;s<e;s++){var n=this[s];if(n.id===t){i=n;break}}return i},i}($e);for(vh in mh.prototype.M={change:"change",addtrack:"addtrack",removetrack:"removetrack"},mh.prototype.M)mh.prototype["on"+vh]=null;var gh=function(t){function i(s){var e,n;if(void 0===s&&(s=[]),le){for(var r in n=es.createElement("custom"),mh.prototype)"constructor"!==r&&(n[r]=mh.prototype[r]);for(var h in i.prototype)"constructor"!==h&&(n[h]=i.prototype[h])}return(n=e=t.call(this,s,n)||this)||Re(e)}return Ve(i,t),i.prototype.tt=function(i){t.prototype.tt.call(this,i),i.addEventListener("modechange",De(this,function(){this.trigger("change")}))},i}(mh),yh=function(t,i){for(var s=0;s<t.length;s++)i.id!==t[s].id&&(t[s].selected=!1)},bh=function(t){function i(s){var e,n;void 0===s&&(s=[]);for(var r=s.length-1;r>=0;r--)if(s[r].selected){yh(s,s[r]);break}if(le){for(var h in n=es.createElement("custom"),mh.prototype)"constructor"!==h&&(n[h]=mh.prototype[h]);for(var o in i.prototype)"constructor"!==o&&(n[o]=i.prototype[o])}return(n=e=t.call(this,s,n)||this).st=!1,g.defineProperty(n,"selectedIndex",{get:function(){for(var t=0;t<this.length;t++)if(this[t].selected)return t;return-1},set:function(){}}),n||Re(e)}Ve(i,t);var s=i.prototype;return s.tt=function(i){var s=this;i.selected&&yh(this,i),t.prototype.tt.call(this,i),i.addEventListener&&i.addEventListener("selectedchange",function(){s.st||(s.st=!0,yh(s,i),s.st=!1,s.trigger("change"))})},s.addTrack=function(t){this.tt(t)},s.removeTrack=function(i){t.prototype.it.call(this,i)},i}(mh),wh=function(t,i){for(var s=0;s<t.length;s++)i.id!==t[s].id&&(t[s].enabled=!1)},kh=function(t){function i(s){var e,n;void 0===s&&(s=[]);for(var r=s.length-1;r>=0;r--)if(s[r].enabled){wh(s,s[r]);break}if(le){for(var h in n=es.createElement("custom"),mh.prototype)"constructor"!==h&&(n[h]=mh.prototype[h]);for(var o in i.prototype)"constructor"!==o&&(n[o]=i.prototype[o])}return(n=e=t.call(this,s,n)||this).st=!1,n||Re(e)}Ve(i,t);var s=i.prototype;return s.tt=function(i){var s=this;i.enabled&&wh(this,i),t.prototype.tt.call(this,i),i.addEventListener&&i.addEventListener("enabledchange",function(){s.st||(s.st=!0,wh(s,i),s.st=!1,s.trigger("change"))})},s.addTrack=function(t){this.tt(t)},s.removeTrack=function(i){t.prototype.it.call(this,i)},i}(mh),_h=void 0;var jh=function(t){function i(i,s){var e;return void 0===i&&(i={}),void 0===s&&(s=function(){}),i.reportTouchActivity=!1,(e=t.call(this,null,i,s)||this).et=!1,e.on("playing",function(){this.et=!0}),e.on("loadstart",function(){this.et=!1}),e.nt=i.textTracks,e.rt=i.videoTracks,e.ht=i.audioTracks,e.featuresProgressEvents||e.manualProgressOn(),e.featuresTimeupdateEvents||e.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(function(t){!1===i["native"+t+"Tracks"]&&(e["featuresNative"+t+"Tracks"]=!1)}),!1===i.nativeCaptions&&(e.featuresNativeTextTracks=!1),e.featuresNativeTextTracks||e.emulateTextTracks(),e.ot=new gh,e.initTextTrackListeners(),e.initTrackListeners(),i.nativeControlsForTouch||e.emitTapEvents(),e.constructor&&(e.l=e.constructor.name||"Unknown Tech"),e}Ve(i,t);var s=i.prototype;return s.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},s.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},s.trackProgress=function(t){this.stopTrackingProgress(),this.progressInterval=this.setInterval(De(this,function(){var t=this.bufferedPercent();this.ut!==t&&this.trigger("progress"),this.ut=t,1===t&&this.stopTrackingProgress()}),500)},s.onDurationChange=function(t){this.ct=this.duration()},s.buffered=function(){return He(0,0)},s.bufferedPercent=function(){return ze(this.buffered(),this.ct)},s.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},s.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},s.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},s.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},s.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},s.dispose=function(){this.clearTracks(["audio","video","text"]),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),t.prototype.dispose.call(this)},s.clearTracks=function(t){var i=this;(t=[].concat(t)).forEach(function(t){for(var s=i[t+"Tracks"]()||[],e=s.length;e--;){var n=s[e];"text"===t&&i.removeRemoteTextTrack(n),s.it(n)}})},s.cleanupAutoTextTracks=function(){for(var t=this.ot||[],i=t.length;i--;){var s=t[i];this.removeRemoteTextTrack(s)}},s.reset=function(){},s.error=function(t){return void 0!==t&&(this.lt=new Ke(t),this.trigger("error")),this.lt},s.played=function(){return this.et?He(0,0):He()},s.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},s.initTextTrackListeners=function(){var t=De(this,function(){this.trigger("texttrackchange")}),i=this.textTracks();i&&(i.addEventListener("removetrack",t),i.addEventListener("addtrack",t),this.on("dispose",De(this,function(){i.removeEventListener("removetrack",t),i.removeEventListener("addtrack",t)})))},s.initTrackListeners=function(){var t=this;["video","audio"].forEach(function(i){var s=function(){t.trigger(i+"trackchange")},e=t[i+"Tracks"]();e.addEventListener("removetrack",s),e.addEventListener("addtrack",s),t.on("dispose",function(){e.removeEventListener("removetrack",s),e.removeEventListener("addtrack",s)})})},s.dt=function(){var t=this;if(!ss.WebVTT)if(es.body.contains(this.el())){if(!this.h["vtt.js"]&&fs(_h)&&g.keys(_h).length>0)return void this.trigger("vttjsloaded");var i=es.createElement("script");i.src=this.h["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.12.4/vtt.min.js",i.onload=function(){t.trigger("vttjsloaded")},i.onerror=function(){t.trigger("vttjserror")},this.on("dispose",function(){i.onload=null,i.onerror=null}),ss.WebVTT=!0,this.el().parentNode.appendChild(i)}else this.ready(this.dt)},s.emulateTextTracks=function(){var t=this,i=this.textTracks();if(i){var s=this.remoteTextTracks(),e=function(t){return i.tt(t.track)},n=function(t){return i.it(t.track)};s.on("addtrack",e),s.on("removetrack",n),this.dt();var r=function(){return t.trigger("texttrackchange")},h=function(){r();for(var t=0;t<i.length;t++){var s=i[t];s.removeEventListener("cuechange",r),"showing"===s.mode&&s.addEventListener("cuechange",r)}};h(),i.addEventListener("change",h),i.addEventListener("addtrack",h),i.addEventListener("removetrack",h),this.on("dispose",function(){s.off("addtrack",e),s.off("removetrack",n),i.removeEventListener("change",h),i.removeEventListener("addtrack",h),i.removeEventListener("removetrack",h);for(var t=0;t<i.length;t++){i[t].removeEventListener("cuechange",r)}})}},s.videoTracks=function(){return this.rt=this.rt||new bh,this.rt},s.audioTracks=function(){return this.ht=this.ht||new kh,this.ht},s.textTracks=function(){return this.nt=this.nt||new gh,this.nt},s.remoteTextTracks=function(){return this.ft=this.ft||new gh,this.ft},s.remoteTextTrackEls=function(){return this.vt=this.vt||new ph,this.vt},s.addTextTrack=function(t,i,s){if(!t)throw new v("TextTrack kind is required but was not provided");return function(t,i,s,e,n){void 0===n&&(n={});var r=t.textTracks();n.kind=i,s&&(n.label=s),e&&(n.language=e),n.tech=t;var h=new dh(n);return r.tt(h),h}(this,t,i,s)},s.createRemoteTextTrack=function(t){var i=Fe(t,{tech:this});return new fh(i)},s.addRemoteTextTrack=function(t,i){void 0===t&&(t={});var s=this.createRemoteTextTrack(t);return!0!==i&&!1!==i&&(ps.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),i=!0),this.remoteTextTrackEls().J(s),this.remoteTextTracks().tt(s.track),!0!==i&&this.ot.tt(s.track),s},s.removeRemoteTextTrack=function(t){var i=this.remoteTextTrackEls().Y(t);this.remoteTextTrackEls().K(i),this.remoteTextTracks().it(t),this.ot.it(t)},s.getVideoPlaybackQuality=function(){return{}},s.setPoster=function(){},s.playsinline=function(){},s.setPlaysinline=function(){},s.canPlayType=function(){return""},i.isTech=function(t){return t.prototype instanceof i||t instanceof i||t===i},i.registerTech=function(t,s){if(i.gt||(i.gt={}),!i.isTech(s))throw new v("Tech "+t+" must be a Tech");return i.gt[t]=s,s},i.getTech=function(t){return i.gt&&i.gt[t]?i.gt[t]:ss&&ss.videojs&&ss.videojs[t]?(ps.warn("The "+t+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),ss.videojs[t]):void 0},i}(Be);jh.prototype.nt,jh.prototype.ht,jh.prototype.rt,jh.prototype.featuresVolumeControl=!0,jh.prototype.featuresFullscreenResize=!1,jh.prototype.featuresPlaybackRate=!1,jh.prototype.featuresProgressEvents=!1,jh.prototype.featuresTimeupdateEvents=!1,jh.prototype.featuresNativeTextTracks=!1,jh.withSourceHandlers=function(t){t.registerSourceHandler=function(i,s){var e=t.sourceHandlers;e||(e=t.sourceHandlers=[]),void 0===s&&(s=e.length),e.splice(s,0,i)},t.canPlayType=function(i){for(var s,e=t.sourceHandlers||[],n=0;n<e.length;n++)if(s=e[n].canPlayType(i))return s;return""},t.selectSourceHandler=function(i,s){for(var e=t.sourceHandlers||[],n=0;n<e.length;n++)if(e[n].canHandleSource(i,s))return e[n];return null},t.canPlaySource=function(i,s){var e=t.selectSourceHandler(i,s);return e?e.canHandleSource(i,s):""};["seekable","duration"].forEach(function(t){var i=this[t];"function"==typeof i&&(this[t]=function(){return this.yt&&this.yt[t]?this.yt[t].apply(this.yt,arguments):i.apply(this,arguments)})},t.prototype),t.prototype.setSource=function(i){var s=t.selectSourceHandler(i,this.h);return s||(t.nativeSourceHandler?s=t.nativeSourceHandler:ps.error("No source hander found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler),s!==t.nativeSourceHandler&&(this.bt=i,this.off(this.v,"loadstart",t.prototype.wt),this.off(this.v,"loadstart",t.prototype.kt),this.one(this.v,"loadstart",t.prototype.wt)),this.yt=s.handleSource(i,this,this.h),this.on("dispose",this.disposeSourceHandler),this},t.prototype.wt=function(){this.one(this.v,"loadstart",t.prototype.kt)},t.prototype.kt=function(){this.disposeSourceHandler(),this.one(this.v,"loadstart",t.prototype.kt)},t.prototype.disposeSourceHandler=function(){this.bt&&(this.clearTracks(["audio","video"]),this.bt=null),this.cleanupAutoTextTracks(),this.yt&&(this.off(this.v,"loadstart",t.prototype.wt),this.off(this.v,"loadstart",t.prototype.kt),this.yt.dispose&&this.yt.dispose(),this.yt=null)}},Be.registerComponent("Tech",jh),Be.registerComponent("MediaTechController",jh),jh.registerTech("Tech",jh);var xh=function(t){function i(i,s,e){var n;if(n=t.call(this,i,s,e)||this,s.playerOptions.sources&&0!==s.playerOptions.sources.length)i.src(s.playerOptions.sources);else for(var r=0,h=s.playerOptions.techOrder;r<h.length;r++){var o=Ne(h[r]),a=jh.getTech(o);if(o||(a=Be.getComponent(o)),a&&a.isSupported()){i._t(o);break}}return n}return Ve(i,t),i}(Be);Be.registerComponent("MediaLoader",xh);var Sh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).emitTapEvents(),e.on(i,"languagechange",e.handleLanguagechange),e.enable(),e}Ve(i,t);var s=i.prototype;return s.createEl=function(i,s,e){void 0===i&&(i="div"),void 0===s&&(s={}),void 0===e&&(e={}),s=ls({className:this.buildCSSClass(),tabIndex:0},s),"button"===i&&ps.error("Creating a ClickableComponent with an HTML element of "+i+" is not supported; use a Button instead."),e=ls({role:"button","aria-live":"polite"},e),this.jt=s.tabIndex;var n=t.prototype.createEl.call(this,i,s,e);return this.createControlTextEl(n),n},s.createControlTextEl=function(t){return this.xt=Ss("span",{className:"vjs-control-text"}),t&&t.appendChild(this.xt),this.controlText(this.St,t),this.xt},s.controlText=function(t,i){if(void 0===i&&(i=this.el()),void 0===t)return this.St||"Need Text";var s=this.localize(t);return this.St=t,this.xt.innerHTML=s,this.nonIconControl||i.setAttribute("title",s),this},s.buildCSSClass=function(){return"vjs-control vjs-button "+t.prototype.buildCSSClass.call(this)},s.enable=function(){return this.removeClass("vjs-disabled"),this.v.setAttribute("aria-disabled","false"),void 0!==this.jt&&this.v.setAttribute("tabIndex",this.jt),this.off(["tap","click"],this.handleClick),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur),this.on(["tap","click"],this.handleClick),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur),this},s.disable=function(){return this.addClass("vjs-disabled"),this.v.setAttribute("aria-disabled","true"),void 0!==this.jt&&this.v.removeAttribute("tabIndex"),this.off(["tap","click"],this.handleClick),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur),this},s.handleLanguagechange=function(){this.controlText(this.St)},s.handleClick=function(t){},s.handleFocus=function(t){je(es,"keydown",De(this,this.handleKeyPress))},s.handleKeyPress=function(i){32===i.which||13===i.which?(i.preventDefault(),this.handleClick(i)):t.prototype.handleKeyPress&&t.prototype.handleKeyPress.call(this,i)},s.handleBlur=function(t){xe(es,"keydown",De(this,this.handleKeyPress))},i}(Be);Be.registerComponent("ClickableComponent",Sh);var Th=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).update(),i.on("posterchange",De(Re(e),e.update)),e}Ve(i,t);var s=i.prototype;return s.dispose=function(){this.player().off("posterchange",this.update),t.prototype.dispose.call(this)},s.createEl=function(){var t=Ss("div",{className:"vjs-poster",tabIndex:-1});return me||(this.Tt=Ss("img"),t.appendChild(this.Tt)),t},s.update=function(t){var i=this.player().poster();this.setSrc(i),i?this.show():this.hide()},s.setSrc=function(t){if(this.Tt)this.Tt.src=t;else{var i="";t&&(i='url("'+t+'")'),this.v.style.backgroundImage=i}},s.handleClick=function(t){this.t.controls()&&(this.t.paused()?this.t.play():this.t.pause())},i}(Sh);Be.registerComponent("PosterImage",Th);var Ch="#222",Ph={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'};function Mh(t,i){return"rgba("+k(t[1]+t[1],16)+","+k(t[2]+t[2],16)+","+k(t[3]+t[3],16)+","+i+")"}function Ah(t,i,s){try{t.style[i]=s}catch(t){return}}var Ih=function(t){function i(i,s,e){var n;return n=t.call(this,i,s,e)||this,i.on("loadstart",De(Re(n),n.toggleDisplay)),i.on("texttrackchange",De(Re(n),n.updateDisplay)),i.ready(De(Re(n),function(){if(i.H&&i.H.featuresNativeTextTracks)this.hide();else{i.on("fullscreenchange",De(this,this.updateDisplay));for(var t=this.h.playerOptions.tracks||[],s=0;s<t.length;s++)this.t.addRemoteTextTrack(t[s],!0);var e,n,r={captions:1,subtitles:1},h=this.t.textTracks();if(h){for(var o=0;o<h.length;o++){var a=h[o];a.default&&("descriptions"!==a.kind||e?a.kind in r&&!n&&(n=a):e=a)}n?n.mode="showing":e&&(e.mode="showing")}}})),n}Ve(i,t);var s=i.prototype;return s.toggleDisplay=function(){this.t.H&&this.t.H.featuresNativeTextTracks?this.hide():this.show()},s.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"off","aria-atomic":"true"})},s.clearDisplay=function(){"function"==typeof ss.WebVTT&&ss.WebVTT.processCues(ss,[],this.v)},s.updateDisplay=function(){var t=this.t.textTracks();if(this.clearDisplay(),t){for(var i=null,s=null,e=t.length;e--;){var n=t[e];"showing"===n.mode&&("descriptions"===n.kind?i=n:s=n)}s?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(s)):i&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(i))}},s.updateForTrack=function(t){if("function"==typeof ss.WebVTT&&t.activeCues){for(var i=this.t.textTrackSettings.getValues(),s=[],e=0;e<t.activeCues.length;e++)s.push(t.activeCues[e]);ss.WebVTT.processCues(ss,s,this.v);for(var n=s.length;n--;){var r=s[n];if(r){var h=r.displayState;if(i.color&&(h.firstChild.style.color=i.color),i.textOpacity&&Ah(h.firstChild,"color",Mh(i.color||"#fff",i.textOpacity)),i.backgroundColor&&(h.firstChild.style.backgroundColor=i.backgroundColor),i.backgroundOpacity&&Ah(h.firstChild,"backgroundColor",Mh(i.backgroundColor||"#000",i.backgroundOpacity)),i.windowColor&&(i.windowOpacity?Ah(h,"backgroundColor",Mh(i.windowColor,i.windowOpacity)):h.style.backgroundColor=i.windowColor),i.edgeStyle&&("dropshadow"===i.edgeStyle?h.firstChild.style.textShadow="2px 2px 3px #222, 2px 2px 4px #222, 2px 2px 5px "+Ch:"raised"===i.edgeStyle?h.firstChild.style.textShadow="1px 1px #222, 2px 2px #222, 3px 3px "+Ch:"depressed"===i.edgeStyle?h.firstChild.style.textShadow="1px 1px #ccc, 0 1px #ccc, -1px -1px #222, 0 -1px "+Ch:"uniform"===i.edgeStyle&&(h.firstChild.style.textShadow="0 0 4px #222, 0 0 4px #222, 0 0 4px #222, 0 0 4px "+Ch)),i.fontPercent&&1!==i.fontPercent){var o=ss.parseFloat(h.style.fontSize);h.style.fontSize=o*i.fontPercent+"px",h.style.height="auto",h.style.top="auto",h.style.bottom="2px"}i.fontFamily&&"default"!==i.fontFamily&&("small-caps"===i.fontFamily?h.firstChild.style.fontVariant="small-caps":h.firstChild.style.fontFamily=Ph[i.fontFamily])}}}},i}(Be);Be.registerComponent("TextTrackDisplay",Ih);var Eh=function(t){function i(){return t.apply(this,arguments)||this}return Ve(i,t),i.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"})},i}(Be);Be.registerComponent("LoadingSpinner",Eh);var Dh=function(t){function i(){return t.apply(this,arguments)||this}Ve(i,t);var s=i.prototype;return s.createEl=function(t,i,s){void 0===t&&(t="button"),void 0===i&&(i={}),void 0===s&&(s={}),i=ls({className:this.buildCSSClass()},i),"button"!==t&&(ps.warn("Creating a Button with an HTML element of "+t+" is deprecated; use ClickableComponent instead."),i=ls({tabIndex:0},i),s=ls({role:"button"},s)),s=ls({type:"button","aria-live":"polite"},s);var e=Be.prototype.createEl.call(this,t,i,s);return this.createControlTextEl(e),e},s.addChild=function(t,i){void 0===i&&(i={});var s=this.constructor.name;return ps.warn("Adding an actionable (user controllable) child to a Button ("+s+") is not supported; use a ClickableComponent instead."),Be.prototype.addChild.call(this,t,i)},s.enable=function(){t.prototype.enable.call(this),this.v.removeAttribute("disabled")},s.disable=function(){t.prototype.disable.call(this),this.v.setAttribute("disabled","disabled")},s.handleKeyPress=function(i){32!==i.which&&13!==i.which&&t.prototype.handleKeyPress.call(this,i)},i}(Sh);Be.registerComponent("Button",Dh);var Nh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).Ct=!1,e.on("mousedown",e.handleMouseDown),e}Ve(i,t);var s=i.prototype;return s.buildCSSClass=function(){return"vjs-big-play-button"},s.handleClick=function(t){var i=this;if(this.Ct&&t.clientX&&t.clientY)this.t.play();else{var s=this.t.getChild("controlBar"),e=s&&s.getChild("playToggle");this.one(this.t,"play",function(){e?e.focus():i.t.focus()}),this.t.play()}},s.handleKeyPress=function(i){this.Ct=!1,t.prototype.handleKeyPress.call(this,i)},s.handleMouseDown=function(t){this.Ct=!0},i}(Dh);Nh.prototype.St="Play Video",Be.registerComponent("BigPlayButton",Nh);var Fh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).controlText(s&&s.controlText||"Close"),e}Ve(i,t);var s=i.prototype;return s.buildCSSClass=function(){return"vjs-close-button "+t.prototype.buildCSSClass.call(this)},s.handleClick=function(t){this.trigger({type:"close",bubbles:!1})},i}(Dh);Be.registerComponent("CloseButton",Fh);var Bh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).on(i,"play",e.handlePlay),e.on(i,"pause",e.handlePause),e}Ve(i,t);var s=i.prototype;return s.buildCSSClass=function(){return"vjs-play-control "+t.prototype.buildCSSClass.call(this)},s.handleClick=function(t){this.t.paused()?this.t.play():this.t.pause()},s.handlePlay=function(t){this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},s.handlePause=function(t){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},i}(Dh);function $h(t,i){void 0===i&&(i=t),t=t<0?0:t;var s=w.floor(t%60),e=w.floor(t/60%60),n=w.floor(t/3600),r=w.floor(i/60%60),h=w.floor(i/3600);return(j(t)||t===1/0)&&(n=e=s="-"),(n=n>0||h>0?n+":":"")+(e=((n||r>=10)&&e<10?"0"+e:e)+":")+(s=s<10?"0"+s:s)}Bh.prototype.St="Play",Be.registerComponent("PlayToggle",Bh);var Rh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).on(i,"timeupdate",e.updateContent),e.on(i,"languagechange",e.updateContent),e}Ve(i,t);var s=i.prototype;return s.createEl=function(){var i=t.prototype.createEl.call(this,"div",{className:"vjs-current-time vjs-time-control vjs-control"});return this.S=Ss("div",{className:"vjs-current-time-display",innerHTML:'<span class="vjs-control-text">Current Time </span>0:00'},{"aria-live":"off"}),i.appendChild(this.S),i},s.updateContent=function(t){var i=this.t.scrubbing()?this.t.getCache().currentTime:this.t.currentTime(),s=this.localize("Current Time"),e=$h(i,this.t.duration());e!==this.Pt&&(this.Pt=e,this.S.innerHTML='<span class="vjs-control-text">'+s+"</span> "+e)},i}(Be);Be.registerComponent("CurrentTimeDisplay",Rh);var Oh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).on(i,"durationchange",e.updateContent),e.on(i,"timeupdate",e.updateContent),e.on(i,"loadedmetadata",e.updateContent),e.on(i,"languagechange",e.updateContent),e}Ve(i,t);var s=i.prototype;return s.createEl=function(){var i=t.prototype.createEl.call(this,"div",{className:"vjs-duration vjs-time-control vjs-control"});return this.S=Ss("div",{className:"vjs-duration-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Duration Time")+"</span> 0:00"},{"aria-live":"off"}),i.appendChild(this.S),i},s.updateContent=function(t){var i=this.t.duration();if(i&&this.ct!==i){this.ct=i;var s=this.localize("Duration Time"),e=$h(i);this.S.innerHTML='<span class="vjs-control-text">'+s+"</span> "+e}},i}(Be);Be.registerComponent("DurationDisplay",Oh);var Vh=function(t){function i(){return t.apply(this,arguments)||this}return Ve(i,t),i.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/</span></div>"})},i}(Be);Be.registerComponent("TimeDivider",Vh);var Uh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).on(i,"timeupdate",e.updateContent),e.on(i,"durationchange",e.updateContent),e.on(i,"languagechange",e.updateContent),e}Ve(i,t);var s=i.prototype;return s.createEl=function(){var i=t.prototype.createEl.call(this,"div",{className:"vjs-remaining-time vjs-time-control vjs-control"});return this.S=Ss("div",{className:"vjs-remaining-time-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Remaining Time")+"</span> -0:00"},{"aria-live":"off"}),i.appendChild(this.S),i},s.updateContent=function(t){if(this.t.duration()){var i=this.localize("Remaining Time"),s=$h(this.t.remainingTime());s!==this.Pt&&(this.Pt=s,this.S.innerHTML='<span class="vjs-control-text">'+i+"</span> -"+s)}},i}(Be);Be.registerComponent("RemainingTimeDisplay",Uh);var Lh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).updateShowing(),e.on(e.player(),"durationchange",e.updateShowing),e.on(e.player(),"languagechange",e.handleLanguagechange),e}Ve(i,t);var s=i.prototype;return s.createEl=function(){var i=t.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.S=Ss("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.xt=Ss("span",{className:"vjs-control-text",innerHTML:this.localize("Stream Type")}),this.Mt=es.createTextNode(this.localize("LIVE")),this.S.appendChild(this.xt),this.S.appendChild(this.Mt),i.appendChild(this.S),i},s.updateShowing=function(t){this.player().duration()===1/0?this.show():this.hide()},s.handleLanguagechange=function(){this.xt.innerHTML=this.localize("Stream Type"),this.Mt.innerHTML=this.localize("LIVE")},i}(Be);Be.registerComponent("LiveDisplay",Lh);var Hh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).bar=e.getChild(e.h.barName),e.vertical(!!e.h.vertical),e.on("mousedown",e.handleMouseDown),e.on("touchstart",e.handleMouseDown),e.on("focus",e.handleFocus),e.on("blur",e.handleBlur),e.on("click",e.handleClick),e.on(i,"controlsvisible",e.update),e.on(i,e.playerEvent,e.update),e}Ve(i,t);var s=i.prototype;return s.createEl=function(i,s,e){return void 0===s&&(s={}),void 0===e&&(e={}),s.className=s.className+" vjs-slider",s=ls({tabIndex:0},s),e=ls({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},e),t.prototype.createEl.call(this,i,s,e)},s.handleMouseDown=function(t){var i=this.bar.v.ownerDocument;t.preventDefault(),es.body.focus(),es.onselectstart=function(){return!1},this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(i,"mousemove",this.handleMouseMove),this.on(i,"mouseup",this.handleMouseUp),this.on(i,"touchmove",this.handleMouseMove),this.on(i,"touchend",this.handleMouseUp),this.handleMouseMove(t)},s.handleMouseMove=function(t){},s.handleMouseUp=function(){var t=this.bar.v.ownerDocument;es.onselectstart=function(){return!0},this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(t,"mousemove",this.handleMouseMove),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchmove",this.handleMouseMove),this.off(t,"touchend",this.handleMouseUp),this.update()},s.update=function(){if(this.v){var t=this.getPercent(),i=this.bar;if(i){("number"!=typeof t||t!=t||t<0||t===1/0)&&(t=0);var s=(100*t).toFixed(2)+"%";this.vertical()?i.el().style.height=s:i.el().style.width=s}}},s.calculateDistance=function(t){var i=Ls(this.v,t);return this.vertical()?i.y:i.x},s.handleFocus=function(){this.on(this.bar.v.ownerDocument,"keydown",this.handleKeyPress)},s.handleKeyPress=function(t){37===t.which||40===t.which?(t.preventDefault(),this.stepBack()):38!==t.which&&39!==t.which||(t.preventDefault(),this.stepForward())},s.handleBlur=function(){this.off(this.bar.v.ownerDocument,"keydown",this.handleKeyPress)},s.handleClick=function(t){t.stopImmediatePropagation(),t.preventDefault()},s.vertical=function(t){return void 0===t?this.At||!1:(this.At=!!t,this.At?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal"),this)},i}(Be);function zh(t,i){if(!t||!i)return"";if("function"==typeof ss.getComputedStyle){var s=ss.getComputedStyle(t);return s?s[i]:""}return t.currentStyle[i]||""}Be.registerComponent("Slider",Hh);var Wh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).It=[],e.on(i,"progress",e.update),e.on(i,"languagechange",e.handleLanguagechange),e}Ve(i,t);var s=i.prototype;return s.createEl=function(){var i=t.prototype.createEl.call(this,"div",{className:"vjs-load-progress"});return this.Et=Ss("span",{innerHTML:this.localize("Loaded")}),this.Dt=es.createTextNode(": 0%"),this.xt=Ss("span",{className:"vjs-control-text"}),this.xt.appendChild(this.Et),this.xt.appendChild(this.Dt),i.appendChild(this.xt),i},s.update=function(t){var i=this.t.buffered(),s=this.t.duration(),e=this.t.bufferedEnd(),n=this.It,r=function(t,i){var s=t/i||0;return 100*(s>=1?1:s)+"%"};this.v.style.width=r(e,s);for(var h=0;h<i.length;h++){var o=i.start(h),a=i.end(h),u=n[h];u||(u=this.v.appendChild(Ss()),n[h]=u),u.style.left=r(o,e),u.style.width=r(a-o,e)}for(var c=n.length;c>i.length;c--)this.v.removeChild(n[c-1]);n.length=i.length},s.handleLanguagechange=function(){this.Et.innerHTML=this.localize("Loaded")},i}(Be);Be.registerComponent("LoadProgressBar",Wh);var qh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).updateDataAttr(),e.on(i,"timeupdate",e.updateDataAttr),e.on(i,"languagechange",e.handleLanguagechange),i.ready(De(Re(e),e.updateDataAttr)),s.playerOptions&&s.playerOptions.controlBar&&s.playerOptions.controlBar.progressControl&&s.playerOptions.controlBar.progressControl.keepTooltipsInside&&(e.keepTooltipsInside=s.playerOptions.controlBar.progressControl.keepTooltipsInside),e.keepTooltipsInside&&e.addClass("vjs-keep-tooltips-inside"),e}Ve(i,t);var s=i.prototype;return s.createEl=function(){var i=t.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar"});return this.Nt=Ss("span",{innerHTML:this.localize("Progress")}),this.Ft=es.createTextNode(": 0%"),this.xt=Ss("span",{className:"vjs-control-text"}),this.xt.appendChild(this.Nt),this.xt.appendChild(this.Ft),i.appendChild(this.xt),i},s.updateDataAttr=function(t){var i=this.t.scrubbing()?this.t.getCache().currentTime:this.t.currentTime();this.v.setAttribute("data-current-time",$h(i,this.t.duration()))},s.handleLanguagechange=function(){this.Nt.innerHTML=this.localize("Progress")},i}(Be);Be.registerComponent("PlayProgressBar",qh);var Gh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).updateDataAttr(),e.on(i,"timeupdate",e.updateDataAttr),e.on(i,"languagechange",e.handleLanguagechange),i.ready(De(Re(e),e.updateDataAttr)),e}Ve(i,t);var s=i.prototype;return s.createEl=function(){var i=t.prototype.createEl.call(this,"div",{className:"vjs-tooltip-progress-bar vjs-slider-bar"});return this.tooltip=Ss("div",{className:"vjs-time-tooltip"}),this.Nt=Ss("span",{innerHTML:this.localize("Progress")}),this.Ft=es.createTextNode(": 0%"),this.xt=Ss("span",{className:"vjs-control-text"}),this.xt.appendChild(this.Nt),this.xt.appendChild(this.Ft),i.appendChild(this.tooltip),i.appendChild(this.xt),i},s.updateDataAttr=function(t){var i=$h(this.t.scrubbing()?this.t.getCache().currentTime:this.t.currentTime(),this.t.duration());this.v.setAttribute("data-current-time",i),this.tooltip.innerHTML=i},s.handleLanguagechange=function(){this.Nt.innerHTML=this.localize("Progress")},i}(Be);Be.registerComponent("TooltipProgressBar",Gh);var Xh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).on(i,"timeupdate",e.updateProgress),e.on(i,"ended",e.updateProgress),i.ready(De(Re(e),e.updateProgress)),s.playerOptions&&s.playerOptions.controlBar&&s.playerOptions.controlBar.progressControl&&s.playerOptions.controlBar.progressControl.keepTooltipsInside&&(e.keepTooltipsInside=s.playerOptions.controlBar.progressControl.keepTooltipsInside),e.keepTooltipsInside&&(e.tooltipProgressBar=e.addChild("TooltipProgressBar")),e}Ve(i,t);var s=i.prototype;return s.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":"progress bar"})},s.updateProgress=function(t){if(this.updateAriaAttributes(this.v),this.keepTooltipsInside){this.updateAriaAttributes(this.tooltipProgressBar.v),this.tooltipProgressBar.v.style.width=this.bar.v.style.width;var i=_(zh(this.player().el(),"width")),s=_(zh(this.tooltipProgressBar.tooltip,"width")),e=this.tooltipProgressBar.el().style;e.maxWidth=w.floor(i-s/2)+"px",e.minWidth=w.ceil(s/2)+"px",e.right="-"+s/2+"px"}},s.updateAriaAttributes=function(t){var i=this.t.scrubbing()?this.t.getCache().currentTime:this.t.currentTime();t.setAttribute("aria-valuenow",(100*this.getPercent()).toFixed(2)),t.setAttribute("aria-valuetext",$h(i,this.t.duration()))},s.getPercent=function(){var t=this.t.currentTime()/this.t.duration();return t>=1?1:t},s.handleMouseDown=function(i){this.t.scrubbing(!0),this.videoWasPlaying=!this.t.paused(),this.t.pause(),t.prototype.handleMouseDown.call(this,i)},s.handleMouseMove=function(t){var i=this.calculateDistance(t)*this.t.duration();i===this.t.duration()&&(i-=.1),this.t.currentTime(i)},s.handleMouseUp=function(i){t.prototype.handleMouseUp.call(this,i),this.t.scrubbing(!1),this.videoWasPlaying&&this.t.play()},s.stepForward=function(){this.t.currentTime(this.t.currentTime()+5)},s.stepBack=function(){this.t.currentTime(this.t.currentTime()-5)},i}(Hh);Xh.prototype.h={children:["loadProgressBar","mouseTimeDisplay","playProgressBar"],barName:"playProgressBar"},Xh.prototype.playerEvent="timeupdate",Be.registerComponent("SeekBar",Xh);var Jh=function(t){function i(i,s){var e;return e=t.call(this,i,s)||this,s.playerOptions&&s.playerOptions.controlBar&&s.playerOptions.controlBar.progressControl&&s.playerOptions.controlBar.progressControl.keepTooltipsInside&&(e.keepTooltipsInside=s.playerOptions.controlBar.progressControl.keepTooltipsInside),e.keepTooltipsInside&&(e.tooltip=Ss("div",{className:"vjs-time-tooltip"}),e.el().appendChild(e.tooltip),e.addClass("vjs-keep-tooltips-inside")),e.update(0,0),i.on("ready",function(){e.on(i.controlBar.progressControl.el(),"mousemove",function(t,i){var s=Date.now();return function(){var e=Date.now();e-s>=i&&(t.apply(void 0,arguments),s=e)}}(De(Re(e),e.handleMouseMove),25))}),e}Ve(i,t);var s=i.prototype;return s.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},s.handleMouseMove=function(t){var i=this.t.duration(),s=this.calculateDistance(t)*i,e=t.pageX-Us(this.el().parentNode).left;this.update(s,e)},s.update=function(t,i){var s=$h(t,this.t.duration());if(this.el().style.left=i+"px",this.el().setAttribute("data-current-time",s),this.keepTooltipsInside){var e=i-this.Bt(i)+1,n=_(zh(this.tooltip,"width"))/2;this.tooltip.innerHTML=s,this.tooltip.style.right="-"+(n-e)+"px"}},s.calculateDistance=function(t){return Ls(this.el().parentNode,t).x},s.Bt=function(t){if(!this.keepTooltipsInside)return t;var i=_(zh(this.player().el(),"width")),s=_(zh(this.tooltip,"width"))/2,e=t;return t<s?e=w.ceil(s):t>i-s&&(e=w.floor(i-s)),e},i}(Be);Be.registerComponent("MouseTimeDisplay",Jh);var Qh=function(t){function i(){return t.apply(this,arguments)||this}return Ve(i,t),i.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},i}(Be);Qh.prototype.h={children:["seekBar"]},Be.registerComponent("ProgressControl",Qh);var Yh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).on(i,"fullscreenchange",e.handleFullscreenChange),e}Ve(i,t);var s=i.prototype;return s.buildCSSClass=function(){return"vjs-fullscreen-control "+t.prototype.buildCSSClass.call(this)},s.handleFullscreenChange=function(t){this.t.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},s.handleClick=function(t){this.t.isFullscreen()?this.t.exitFullscreen():this.t.requestFullscreen()},i}(Dh);Yh.prototype.St="Fullscreen",Be.registerComponent("FullscreenToggle",Yh);var Kh=function(t){function i(){return t.apply(this,arguments)||this}return Ve(i,t),i.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'})},i}(Be);Be.registerComponent("VolumeLevel",Kh);var Zh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).on(i,"volumechange",e.updateARIAAttributes),i.ready(De(Re(e),e.updateARIAAttributes)),e}Ve(i,t);var s=i.prototype;return s.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":"volume level"})},s.handleMouseMove=function(t){this.checkMuted(),this.t.volume(this.calculateDistance(t))},s.checkMuted=function(){this.t.muted()&&this.t.muted(!1)},s.getPercent=function(){return this.t.muted()?0:this.t.volume()},s.stepForward=function(){this.checkMuted(),this.t.volume(this.t.volume()+.1)},s.stepBack=function(){this.checkMuted(),this.t.volume(this.t.volume()-.1)},s.updateARIAAttributes=function(t){var i=(100*this.t.volume()).toFixed(2);this.v.setAttribute("aria-valuenow",i),this.v.setAttribute("aria-valuetext",i+"%")},i}(Hh);Zh.prototype.h={children:["volumeLevel"],barName:"volumeLevel"},Zh.prototype.playerEvent="volumechange",Be.registerComponent("VolumeBar",Zh);var to=function(t){function i(i,s){var e;return e=t.call(this,i,s)||this,i.H&&!1===i.H.featuresVolumeControl&&e.addClass("vjs-hidden"),e.on(i,"loadstart",function(){!1===i.H.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}),e}return Ve(i,t),i.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control"})},i}(Be);to.prototype.h={children:["volumeBar"]},Be.registerComponent("VolumeControl",to);var io=function(t){function i(){return t.apply(this,arguments)||this}Ve(i,t);var s=i.prototype;return s.addItem=function(t){this.addChild(t),t.on("click",De(this,function(){this.unlockShowing()}))},s.createEl=function(){var i=this.h.contentElType||"ul";this.S=Ss(i,{className:"vjs-menu-content"});var s=t.prototype.createEl.call(this,"div",{append:this.S,className:"vjs-menu"});return s.appendChild(this.S),je(s,"click",function(t){t.preventDefault(),t.stopImmediatePropagation()}),s},i}(Be);Be.registerComponent("Popup",io);var so=function(t){function i(i,s){var e;return void 0===s&&(s={}),(e=t.call(this,i,s)||this).update(),e}Ve(i,t);var s=i.prototype;return s.update=function(){var t=this.createPopup();this.popup&&this.removeChild(this.popup),this.popup=t,this.addChild(t),this.items&&0===this.items.length?this.hide():this.items&&this.items.length>1&&this.show()},s.createPopup=function(){},s.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},s.buildCSSClass=function(){var i="vjs-menu-button";return!0===this.h.inline?i+="-inline":i+="-popup","vjs-menu-button "+i+" "+t.prototype.buildCSSClass.call(this)},i}(Sh);Be.registerComponent("PopupButton",so);var eo=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).on(i,"volumechange",e.update),i.H&&!1===i.H.featuresVolumeControl&&e.addClass("vjs-hidden"),e.on(i,"loadstart",function(){this.update(),!1===i.H.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}),e}Ve(i,t);var s=i.prototype;return s.buildCSSClass=function(){return"vjs-mute-control "+t.prototype.buildCSSClass.call(this)},s.handleClick=function(t){this.t.muted(!this.t.muted())},s.update=function(t){var i=this.t.volume(),s=3;this.t.muted()?s=0:i<.33?s=1:i<.67&&(s=2);var e=this.t.muted()?"Unmute":"Mute";this.controlText()!==e&&this.controlText(e);for(var n=0;n<4;n++)Fs(this.v,"vjs-vol-"+n);Ns(this.v,"vjs-vol-"+s)},i}(Dh);eo.prototype.St="Mute",Be.registerComponent("MuteToggle",eo);var no=function(t){function i(i,s){var e;function n(){i.H&&!1===i.H.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}return void 0===s&&(s={}),void 0===s.inline&&(s.inline=!0),void 0===s.vertical&&(s.inline?s.vertical=!1:s.vertical=!0),s.volumeBar=s.volumeBar||{},s.volumeBar.vertical=!!s.vertical,(e=t.call(this,i,s)||this).on(i,"volumechange",e.volumeUpdate),e.on(i,"loadstart",e.volumeUpdate),n.call(Re(e)),e.on(i,"loadstart",n),e.on(e.volumeBar,["slideractive","focus"],function(){this.addClass("vjs-slider-active")}),e.on(e.volumeBar,["sliderinactive","blur"],function(){this.removeClass("vjs-slider-active")}),e.on(e.volumeBar,["focus"],function(){this.addClass("vjs-lock-showing")}),e.on(e.volumeBar,["blur"],function(){this.removeClass("vjs-lock-showing")}),e}Ve(i,t);var s=i.prototype;return s.buildCSSClass=function(){var i="";return i=this.h.vertical?"vjs-volume-menu-button-vertical":"vjs-volume-menu-button-horizontal","vjs-volume-menu-button "+t.prototype.buildCSSClass.call(this)+" "+i},s.createPopup=function(){var t=new io(this.t,{contentElType:"div"}),i=new Zh(this.t,this.h.volumeBar);return t.addChild(i),this.menuContent=t,this.volumeBar=i,this.attachVolumeBarEvents(),t},s.handleClick=function(i){eo.prototype.handleClick.call(this),t.prototype.handleClick.call(this)},s.attachVolumeBarEvents=function(){this.menuContent.on(["mousedown","touchdown"],De(this,this.handleMouseDown))},s.handleMouseDown=function(t){this.on(["mousemove","touchmove"],De(this.volumeBar,this.volumeBar.handleMouseMove)),this.on(this.v.ownerDocument,["mouseup","touchend"],this.handleMouseUp)},s.handleMouseUp=function(t){this.off(["mousemove","touchmove"],De(this.volumeBar,this.volumeBar.handleMouseMove))},i}(so);no.prototype.volumeUpdate=eo.prototype.update,no.prototype.St="Mute",Be.registerComponent("VolumeMenuButton",no);var ro=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).$t=-1,e.on("keydown",e.handleKeyPress),e}Ve(i,t);var s=i.prototype;return s.addItem=function(t){this.addChild(t),t.on("click",De(this,function(t){this.unlockShowing()}))},s.createEl=function(){var i=this.h.contentElType||"ul";this.S=Ss(i,{className:"vjs-menu-content"}),this.S.setAttribute("role","menu");var s=t.prototype.createEl.call(this,"div",{append:this.S,className:"vjs-menu"});return s.setAttribute("role","presentation"),s.appendChild(this.S),je(s,"click",function(t){t.preventDefault(),t.stopImmediatePropagation()}),s},s.handleKeyPress=function(t){37===t.which||40===t.which?(t.preventDefault(),this.stepForward()):38!==t.which&&39!==t.which||(t.preventDefault(),this.stepBack())},s.stepForward=function(){var t=0;void 0!==this.$t&&(t=this.$t+1),this.focus(t)},s.stepBack=function(){var t=0;void 0!==this.$t&&(t=this.$t-1),this.focus(t)},s.focus=function(t){void 0===t&&(t=0);var i=this.children().slice();i.length&&i[0].className&&/vjs-menu-title/.test(i[0].className)&&i.shift(),i.length>0&&(t<0?t=0:t>=i.length&&(t=i.length-1),this.$t=t,i[t].v.focus())},i}(Be);Be.registerComponent("Menu",ro);var ho=function(t){function i(i,s){var e;return void 0===s&&(s={}),(e=t.call(this,i,s)||this).update(),e.Rt=!0,e.v.setAttribute("aria-haspopup","true"),e.v.setAttribute("role","menuitem"),e.on("keydown",e.handleSubmenuKeyPress),e}Ve(i,t);var s=i.prototype;return s.update=function(){var t=this.createMenu();this.menu&&this.removeChild(this.menu),this.menu=t,this.addChild(t),this.Ot=!1,this.v.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.Vt?this.hide():this.show()},s.createMenu=function(){var t=new ro(this.t);if(this.Vt=0,this.h.title){var i=Ss("li",{className:"vjs-menu-title",innerHTML:Ne(this.h.title),tabIndex:-1});this.Vt+=1,t.m.unshift(i),Cs(i,t.contentEl())}if(this.items=this.createItems(),this.items)for(var s=0;s<this.items.length;s++)t.addItem(this.items[s]);return t},s.createItems=function(){},s.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},s.buildCSSClass=function(){var i="vjs-menu-button";return!0===this.h.inline?i+="-inline":i+="-popup","vjs-menu-button "+i+" "+t.prototype.buildCSSClass.call(this)},s.handleClick=function(t){this.one(this.menu.contentEl(),"mouseleave",De(this,function(t){this.unpressButton(),this.v.blur()})),this.Ot?this.unpressButton():this.pressButton()},s.handleKeyPress=function(i){27===i.which||9===i.which?(this.Ot&&this.unpressButton(),9!==i.which&&i.preventDefault()):38===i.which||40===i.which?this.Ot||(this.pressButton(),i.preventDefault()):t.prototype.handleKeyPress.call(this,i)},s.handleSubmenuKeyPress=function(t){27!==t.which&&9!==t.which||(this.Ot&&this.unpressButton(),9!==t.which&&t.preventDefault())},s.pressButton=function(){this.Rt&&(this.Ot=!0,this.menu.lockShowing(),this.v.setAttribute("aria-expanded","true"),this.menu.focus())},s.unpressButton=function(){this.Rt&&(this.Ot=!1,this.menu.unlockShowing(),this.v.setAttribute("aria-expanded","false"),this.v.focus())},s.disable=function(){return this.Ot=!1,this.menu.unlockShowing(),this.v.setAttribute("aria-expanded","false"),this.Rt=!1,t.prototype.disable.call(this)},s.enable=function(){return this.Rt=!0,t.prototype.enable.call(this)},i}(Sh);Be.registerComponent("MenuButton",ho);var oo=function(t){function i(i,s){var e,n=s.tracks;if((e=t.call(this,i,s)||this).items.length<=1&&e.hide(),!n)return Re(e);var r=De(Re(e),e.update);return n.addEventListener("removetrack",r),n.addEventListener("addtrack",r),e.t.on("dispose",function(){n.removeEventListener("removetrack",r),n.removeEventListener("addtrack",r)}),e}return Ve(i,t),i}(ho);Be.registerComponent("TrackButton",oo);var ao=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).selectable=s.selectable,e.selected(s.selected),e.selectable?e.v.setAttribute("role","menuitemcheckbox"):e.v.setAttribute("role","menuitem"),e}Ve(i,t);var s=i.prototype;return s.createEl=function(i,s,e){this.nonIconControl=!0;var n=t.prototype.createEl.call(this,"li",ls({className:"vjs-menu-item",tabIndex:-1},s),e);return this.Ut=es.createTextNode(this.localize(this.h.label)),n.appendChild(this.Ut),n},s.handleClick=function(t){this.selected(!0)},s.selected=function(t){this.selectable&&(t?(this.addClass("vjs-selected"),this.v.setAttribute("aria-checked","true"),this.controlText(", selected")):(this.removeClass("vjs-selected"),this.v.setAttribute("aria-checked","false"),this.controlText("")))},s.handleLanguagechange=function(){t.prototype.handleLanguagechange.call(this),this.Ut.innerHTML=this.localize(this.h.label)},i}(Sh);Be.registerComponent("MenuItem",ao);var uo=function(t){function i(i,s){var e,n,r=s.track,h=i.textTracks();if(s.label=r.label||r.language||"Unknown",s.selected=r.default||"showing"===r.mode,(e=t.call(this,i,s)||this).track=r,h){var o=De(Re(e),e.handleTracksChange);i.on(["loadstart","texttrackchange"],o),h.addEventListener("change",o),e.on("dispose",function(){h.removeEventListener("change",o)})}h&&void 0===h.onchange&&e.on(["tap","click"],function(){if("object"!=typeof ss.Event)try{n=new ss.Event("change")}catch(t){}n||(n=es.createEvent("Event")).initEvent("change",!0,!0),h.dispatchEvent(n)});return e}Ve(i,t);var s=i.prototype;return s.handleClick=function(i){var s=this.track.kind,e=this.t.textTracks();if(t.prototype.handleClick.call(this,i),e)for(var n=0;n<e.length;n++){var r=e[n];r.kind===s&&(r===this.track?"showing"!==r.mode&&(r.mode="showing"):"disabled"!==r.mode&&(r.mode="disabled"))}},s.handleTracksChange=function(t){this.selected("showing"===this.track.mode)},i}(ao);Be.registerComponent("TextTrackMenuItem",uo);var co=function(t){function i(i,s){var e;return s.track={player:i,kind:s.kind,label:s.kind+" off",default:!1,mode:"disabled"},s.selectable=!0,(e=t.call(this,i,s)||this).selected(!0),e}return Ve(i,t),i.prototype.handleTracksChange=function(t){for(var i=this.player().textTracks(),s=!0,e=0,n=i.length;e<n;e++){var r=i[e];if(r.kind===this.track.kind&&"showing"===r.mode){s=!1;break}}this.selected(s)},i}(uo);Be.registerComponent("OffTextTrackMenuItem",co);var lo=function(t){function i(i,s){return void 0===s&&(s={}),s.tracks=i.textTracks(),t.call(this,i,s)||this}return Ve(i,t),i.prototype.createItems=function(t){void 0===t&&(t=[]),t.push(new co(this.t,{kind:this.Lt})),this.Vt+=1;var i=this.t.textTracks();if(!i)return t;for(var s=0;s<i.length;s++){var e=i[s];e.kind===this.Lt&&t.push(new uo(this.t,{track:e,selectable:!0}))}return t},i}(oo);Be.registerComponent("TextTrackButton",lo);var fo=function(t){function i(i,s){var e,n=s.track,r=s.cue,h=i.currentTime();return s.selectable=!0,s.label=r.text,s.selected=r.startTime<=h&&h<r.endTime,(e=t.call(this,i,s)||this).track=n,e.cue=r,n.addEventListener("cuechange",De(Re(e),e.update)),e}Ve(i,t);var s=i.prototype;return s.handleClick=function(i){t.prototype.handleClick.call(this),this.t.currentTime(this.cue.startTime),this.update(this.cue.startTime)},s.update=function(t){var i=this.cue,s=this.t.currentTime();this.selected(i.startTime<=s&&s<i.endTime)},i}(ao);Be.registerComponent("ChaptersTrackMenuItem",fo);var vo=function(t){function i(i,s,e){var n;return(n=t.call(this,i,s,e)||this).v.setAttribute("aria-label","Chapters Menu"),n}Ve(i,t);var s=i.prototype;return s.buildCSSClass=function(){return"vjs-chapters-button "+t.prototype.buildCSSClass.call(this)},s.update=function(i){this.Ht&&(!i||"addtrack"!==i.type&&"removetrack"!==i.type)||this.setTrack(this.findChaptersTrack()),t.prototype.update.call(this)},s.setTrack=function(t){if(this.Ht!==t){if(this.zt||(this.zt=this.update.bind(this)),this.Ht){var i=this.t.remoteTextTrackEls().Y(this.Ht);i&&i.removeEventListener("load",this.zt),this.Ht=null}if(this.Ht=t,this.Ht){this.Ht.mode="hidden";var s=this.t.remoteTextTrackEls().Y(this.Ht);s&&s.addEventListener("load",this.zt)}}},s.findChaptersTrack=function(){for(var t=this.t.textTracks()||[],i=t.length-1;i>=0;i--){var s=t[i];if(s.kind===this.Lt)return s}},s.getMenuCaption=function(){return this.Ht&&this.Ht.label?this.Ht.label:this.localize(Ne(this.Lt))},s.createMenu=function(){return this.h.title=this.getMenuCaption(),t.prototype.createMenu.call(this)},s.createItems=function(){var t=[];if(!this.Ht)return t;var i=this.Ht.cues;if(!i)return t;for(var s=0,e=i.length;s<e;s++){var n=i[s],r=new fo(this.t,{track:this.Ht,cue:n});t.push(r)}return t},i}(lo);vo.prototype.Lt="chapters",vo.prototype.St="Chapters",Be.registerComponent("ChaptersButton",vo);var po=function(t){function i(i,s,e){var n;(n=t.call(this,i,s,e)||this).v.setAttribute("aria-label","Descriptions Menu");var r=i.textTracks();if(r){var h=De(Re(n),n.handleTracksChange);r.addEventListener("change",h),n.on("dispose",function(){r.removeEventListener("change",h)})}return n}Ve(i,t);var s=i.prototype;return s.handleTracksChange=function(t){for(var i=this.player().textTracks(),s=!1,e=0,n=i.length;e<n;e++){var r=i[e];if(r.kind!==this.Lt&&"showing"===r.mode){s=!0;break}}s?this.disable():this.enable()},s.buildCSSClass=function(){return"vjs-descriptions-button "+t.prototype.buildCSSClass.call(this)},i}(lo);po.prototype.Lt="descriptions",po.prototype.St="Descriptions",Be.registerComponent("DescriptionsButton",po);var mo=function(t){function i(i,s,e){var n;return(n=t.call(this,i,s,e)||this).v.setAttribute("aria-label","Subtitles Menu"),n}return Ve(i,t),i.prototype.buildCSSClass=function(){return"vjs-subtitles-button "+t.prototype.buildCSSClass.call(this)},i}(lo);mo.prototype.Lt="subtitles",mo.prototype.St="Subtitles",Be.registerComponent("SubtitlesButton",mo);var go=function(t){function i(i,s){var e;return s.track={player:i,kind:s.kind,label:s.kind+" settings",selectable:!1,default:!1,mode:"disabled"},s.selectable=!1,(e=t.call(this,i,s)||this).addClass("vjs-texttrack-settings"),e.controlText(", opens "+s.kind+" settings dialog"),e}return Ve(i,t),i.prototype.handleClick=function(t){this.player().getChild("textTrackSettings").show(),this.player().getChild("textTrackSettings").v.focus()},i}(uo);Be.registerComponent("CaptionSettingsMenuItem",go);var yo=function(t){function i(i,s,e){var n;return(n=t.call(this,i,s,e)||this).v.setAttribute("aria-label","Captions Menu"),n}Ve(i,t);var s=i.prototype;return s.buildCSSClass=function(){return"vjs-captions-button "+t.prototype.buildCSSClass.call(this)},s.createItems=function(){var i=[];return this.player().H&&this.player().H.featuresNativeTextTracks||(i.push(new go(this.t,{kind:this.Lt})),this.Vt+=1),t.prototype.createItems.call(this,i)},i}(lo);yo.prototype.Lt="captions",yo.prototype.St="Captions",Be.registerComponent("CaptionsButton",yo);var bo=function(t){function i(i,s){var e,n=s.track,r=i.audioTracks();if(s.label=n.label||n.language||"Unknown",s.selected=n.enabled,(e=t.call(this,i,s)||this).track=n,r){var h=De(Re(e),e.handleTracksChange);r.addEventListener("change",h),e.on("dispose",function(){r.removeEventListener("change",h)})}return e}Ve(i,t);var s=i.prototype;return s.handleClick=function(i){var s=this.t.audioTracks();if(t.prototype.handleClick.call(this,i),s)for(var e=0;e<s.length;e++){var n=s[e];n.enabled=n===this.track}},s.handleTracksChange=function(t){this.selected(this.track.enabled)},i}(ao);Be.registerComponent("AudioTrackMenuItem",bo);var wo=function(t){function i(i,s){var e;return void 0===s&&(s={}),s.tracks=i.audioTracks&&i.audioTracks(),(e=t.call(this,i,s)||this).v.setAttribute("aria-label","Audio Menu"),e}Ve(i,t);var s=i.prototype;return s.buildCSSClass=function(){return"vjs-audio-button "+t.prototype.buildCSSClass.call(this)},s.createItems=function(t){void 0===t&&(t=[]),this.Vt=1;var i=this.t.audioTracks&&this.t.audioTracks();if(!i)return t;for(var s=0;s<i.length;s++){var e=i[s];t.push(new bo(this.t,{track:e,selectable:!0}))}return t},i}(oo);wo.prototype.St="Audio Track",Be.registerComponent("AudioTrackButton",wo);var ko=function(t){function i(i,s){var e,n=s.rate,r=_(n,10);return s.label=n,s.selected=1===r,s.selectable=!0,(e=t.call(this,i,s)||this).label=n,e.rate=r,e.on(i,"ratechange",e.update),e}Ve(i,t);var s=i.prototype;return s.handleClick=function(i){t.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},s.update=function(t){this.selected(this.player().playbackRate()===this.rate)},i}(ao);ko.prototype.contentElType="button",Be.registerComponent("PlaybackRateMenuItem",ko);var _o=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).updateVisibility(),e.updateLabel(),e.on(i,"loadstart",e.updateVisibility),e.on(i,"ratechange",e.updateLabel),e}Ve(i,t);var s=i.prototype;return s.createEl=function(){var i=t.prototype.createEl.call(this);return this.Ut=Ss("div",{className:"vjs-playback-rate-value",innerHTML:1}),i.appendChild(this.Ut),i},s.buildCSSClass=function(){return"vjs-playback-rate "+t.prototype.buildCSSClass.call(this)},s.createMenu=function(){var t=new ro(this.player()),i=this.playbackRates();if(i)for(var s=i.length-1;s>=0;s--)t.addChild(new ko(this.player(),{rate:i[s]+"x"}));return t},s.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},s.handleClick=function(t){for(var i=this.player().playbackRate(),s=this.playbackRates(),e=s[0],n=0;n<s.length;n++)if(s[n]>i){e=s[n];break}this.player().playbackRate(e)},s.playbackRates=function(){return this.h.playbackRates||this.h.playerOptions&&this.h.playerOptions.playbackRates},s.playbackRateSupported=function(){return this.player().H&&this.player().H.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},s.updateVisibility=function(t){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},s.updateLabel=function(t){this.playbackRateSupported()&&(this.Ut.innerHTML=this.player().playbackRate()+"x")},i}(ho);_o.prototype.St="Playback Rate",Be.registerComponent("PlaybackRateMenuButton",_o);var jo=function(t){function i(){return t.apply(this,arguments)||this}Ve(i,t);var s=i.prototype;return s.buildCSSClass=function(){return"vjs-spacer "+t.prototype.buildCSSClass.call(this)},s.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},i}(Be);Be.registerComponent("Spacer",jo);var xo=function(t){function i(){return t.apply(this,arguments)||this}Ve(i,t);var s=i.prototype;return s.buildCSSClass=function(){return"vjs-custom-control-spacer "+t.prototype.buildCSSClass.call(this)},s.createEl=function(){var i=t.prototype.createEl.call(this,{className:this.buildCSSClass()});return i.innerHTML=" ",i},i}(jo);Be.registerComponent("CustomControlSpacer",xo);var So=function(t){function i(){return t.apply(this,arguments)||this}return Ve(i,t),i.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"},{role:"group"})},i}(Be);So.prototype.h={children:["playToggle","volumeMenuButton","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subtitlesButton","captionsButton","audioTrackButton","fullscreenToggle"]},Be.registerComponent("ControlBar",So);var To=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).on(i,"error",e.open),e}Ve(i,t);var s=i.prototype;return s.buildCSSClass=function(){return"vjs-error-display "+t.prototype.buildCSSClass.call(this)},s.content=function(){var t=this.player().error();return t?this.localize(t.message):""},i}(rn);To.prototype.h=Fe(rn.prototype.h,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),Be.registerComponent("ErrorDisplay",To);var Co="vjs-text-track-settings",Po=["#000","Black"],Mo=["#00F","Blue"],Ao=["#0FF","Cyan"],Io=["#0F0","Green"],Eo=["#F0F","Magenta"],Do=["#F00","Red"],No=["#FFF","White"],Fo=["#FF0","Yellow"],Bo=["1","Opaque"],$o=["0.5","Semi-Transparent"],Ro=["0","Transparent"],Oo={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[Po,No,Do,Io,Mo,Fo,Eo,Ao]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[Bo,$o,Ro]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[No,Po,Do,Io,Mo,Fo,Eo,Ao]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(t){return"1.00"===t?null:Number(t)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[Bo,$o]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[Ro,$o,Bo]}};function Vo(t,i){if(i&&(t=i(t)),t&&"none"!==t)return t}Oo.windowColor.options=Oo.backgroundColor.options;var Uo,Lo=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).setDefaults(),e.hide(),e.updateDisplay=De(Re(e),e.updateDisplay),void 0===s.persistTextTrackSettings&&(e.h.persistTextTrackSettings=e.h.playerOptions.persistTextTrackSettings),e.on(e.$(".vjs-done-button"),"click",function(){e.saveSettings(),e.hide()}),e.on(e.$(".vjs-default-button"),"click",function(){e.setDefaults(),e.updateDisplay()}),cs(Oo,function(t){e.on(e.$(t.selector),"change",e.updateDisplay)}),e.h.persistTextTrackSettings&&e.restoreSettings(),e}Ve(i,t);var s=i.prototype;return s.Wt=function(t){var i=this,s=Oo[t],e=s.id.replace("%s",this.o);return[Ss("label",{className:"vjs-label",textContent:s.label},{for:e}),Ss("select",{id:e},void 0,s.options.map(function(t){return Ss("option",{textContent:i.localize(t[1]),value:t[0]})}))]},s.qt=function(){var t=Ss("legend",{textContent:this.localize("Text")}),i=this.Wt("color"),s=Ss("span",{className:"vjs-text-opacity vjs-opacity"},void 0,this.Wt("textOpacity"));return Ss("fieldset",{className:"vjs-fg-color vjs-tracksetting"},void 0,[t].concat(i,s))},s.Gt=function(){var t=Ss("legend",{textContent:this.localize("Background")}),i=this.Wt("backgroundColor"),s=Ss("span",{className:"vjs-bg-opacity vjs-opacity"},void 0,this.Wt("backgroundOpacity"));return Ss("fieldset",{className:"vjs-bg-color vjs-tracksetting"},void 0,[t].concat(i,s))},s.Xt=function(){var t=Ss("legend",{textContent:this.localize("Window")}),i=this.Wt("windowColor"),s=Ss("span",{className:"vjs-window-opacity vjs-opacity"},void 0,this.Wt("windowOpacity"));return Ss("fieldset",{className:"vjs-window-color vjs-tracksetting"},void 0,[t].concat(i,s))},s.Jt=function(){return Ss("div",{className:"vjs-tracksettings-colors"},void 0,[this.qt(),this.Gt(),this.Xt()])},s.Qt=function(){var t=Ss("div",{className:"vjs-font-percent vjs-tracksetting"},void 0,this.Wt("fontPercent")),i=Ss("div",{className:"vjs-edge-style vjs-tracksetting"},void 0,this.Wt("edgeStyle")),s=Ss("div",{className:"vjs-font-family vjs-tracksetting"},void 0,this.Wt("fontFamily"));return Ss("div",{className:"vjs-tracksettings-font"},void 0,[t,i,s])},s.Yt=function(){var t=Ss("button",{className:"vjs-default-button",textContent:this.localize("Defaults")}),i=Ss("button",{className:"vjs-done-button",textContent:"Done"});return Ss("div",{className:"vjs-tracksettings-controls"},void 0,[t,i])},s.createEl=function(){var t=Ss("div",{className:"vjs-tracksettings"},void 0,[this.Jt(),this.Qt(),this.Yt()]),i=Ss("div",{className:"vjs-control-text",id:"TTsettingsDialogLabel-"+this.o,textContent:"Caption Settings Dialog"},{"aria-level":"1",role:"heading"}),s=Ss("div",{className:"vjs-control-text",id:"TTsettingsDialogDescription-"+this.o,textContent:"Beginning of dialog window. Escape will cancel and close the window."}),e=Ss("div",void 0,{role:"document"},[i,s,t]);return Ss("div",{className:"vjs-caption-settings vjs-modal-overlay",tabIndex:-1},{role:"dialog","aria-labelledby":i.id,"aria-describedby":s.id},e)},s.getValues=function(){var t=this;return function(t,i,s){return void 0===s&&(s=0),us(t).reduce(function(s,e){return i(s,t[e],e)},s)}(Oo,function(i,s,e){var n=function(t,i){return Vo(t.options[t.options.selectedIndex].value,i)}(t.$(s.selector),s.parser);return void 0!==n&&(i[e]=n),i},{})},s.setValues=function(t){var i=this;cs(Oo,function(s,e){!function(t,i,s){if(i)for(var e=0;e<t.options.length;e++)if(Vo(t.options[e].value,s)===i){t.selectedIndex=e;break}}(i.$(s.selector),t[e],s.parser)})},s.setDefaults=function(){var t=this;cs(Oo,function(i){var s=i.hasOwnProperty("default")?i.default:0;t.$(i.selector).selectedIndex=s})},s.restoreSettings=function(){var t;try{t=JSON.parse(ss.localStorage.getItem(Co))}catch(t){ps.warn(t)}t&&this.setValues(t)},s.saveSettings=function(){if(this.h.persistTextTrackSettings){var t=this.getValues();try{g.keys(t).length?ss.localStorage.setItem(Co,JSON.stringify(t)):ss.localStorage.removeItem(Co)}catch(t){ps.warn(t)}}},s.updateDisplay=function(){var t=this.t.getChild("textTrackDisplay");t&&t.updateDisplay()},i}(Be);Be.registerComponent("TextTrackSettings",Lo);var Ho,e=function(t){function i(i,s){var e;e=t.call(this,i,s)||this;var n=i.source,r=!1;if(n&&(e.v.currentSrc!==n.src||i.tag&&3===i.tag.Kt)?e.setSource(n):e.Zt(e.v),e.v.hasChildNodes()){for(var h=e.v.childNodes,o=h.length,a=[];o--;){var u=h[o];"track"===u.nodeName.toLowerCase()&&(e.featuresNativeTextTracks?(e.remoteTextTrackEls().J(u),e.remoteTextTracks().tt(u.track),r||e.v.hasAttribute("crossorigin")||!fn(u.src)||(r=!0)):a.push(u))}for(var c=0;c<a.length;c++)e.v.removeChild(a[c])}return["audio","video"].forEach(function(t){var i=e.el()[t+"Tracks"],s=e[t+"Tracks"](),n=Ne(t);e["featuresNative"+n+"Tracks"]&&i&&i.addEventListener&&(e["handle"+n+"ti"]=function(t){s.trigger({type:"change",target:s,currentTarget:s,srcElement:s})},e["handle"+n+"ii"]=function(t){return s.addTrack(t.track)},e["handle"+n+"si"]=function(t){return s.removeTrack(t.track)},i.addEventListener("change",e["handle"+n+"ti"]),i.addEventListener("addtrack",e["handle"+n+"ii"]),i.addEventListener("removetrack",e["handle"+n+"si"]),e["removeOld"+n+"ei"]=function(t){return e.ni(s,i)},e.on("loadstart",e["removeOld"+n+"ei"]))}),e.featuresNativeTextTracks&&(r&&ps.warn(bs(Uo||(Uo=ns(["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n This may prevent text tracks from loading."])))),e.ri=De(Re(e),e.handleTextTrackChange),e.hi=De(Re(e),e.handleTextTrackAdd),e.oi=De(Re(e),e.handleTextTrackRemove),e.ai()),e.ci(),(pe||Zs||he)&&!0===i.nativeControlsForTouch&&e.setControls(!0),e.di(),e.triggerReady(),e}Ve(i,t);var s=i.prototype;return s.dispose=function(){var s=this;["audio","video","text"].forEach(function(t){var i=Ne(t),e=s.v[t+"Tracks"];e&&e.removeEventListener&&(e.removeEventListener("change",s["handle"+i+"ti"]),e.removeEventListener("addtrack",s["handle"+i+"ii"]),e.removeEventListener("removetrack",s["handle"+i+"si"])),e&&s.off("loadstart",s["removeOld"+i+"ei"])}),i.disposeMediaElement(this.v),t.prototype.dispose.call(this)},s.ci=function(){var t,i=this.textTracks(),s=function(){t=[];for(var s=0;s<i.length;s++){var e=i[s];"metadata"===e.kind&&t.push({track:e,storedMode:e.mode})}};s(),i.addEventListener("change",s);var e=function s(){for(var e=0;e<t.length;e++){var n=t[e];"disabled"===n.track.mode&&n.track.mode!==n.storedMode&&(n.track.mode=n.storedMode)}i.removeEventListener("change",s)};this.on("webkitbeginfullscreen",function(){i.removeEventListener("change",s),i.removeEventListener("change",e),i.addEventListener("change",e)}),this.on("webkitendfullscreen",function(){i.removeEventListener("change",s),i.addEventListener("change",s),i.removeEventListener("change",e)})},s.createEl=function(){var t=this.h.tag;if(!t||!this.h.playerElIngest&&!this.movingMediaElementInDOM){if(t){var s=t.cloneNode(!0);t.parentNode&&t.parentNode.insertBefore(s,t),i.disposeMediaElement(t),t=s}else{t=es.createElement("video");var e=Fe({},this.h.tag&&Rs(this.h.tag));pe&&!0===this.h.nativeControlsForTouch||delete e.controls,$s(t,ls(e,{id:this.h.techId,class:"vjs-tech"}))}t.playerId=this.h.playerId}void 0!==this.h.preload&&Os(t,"preload",this.h.preload);for(var n=["loop","muted","playsinline","autoplay"],r=n.length-1;r>=0;r--){var h=n[r],o=this.h[h];void 0!==o&&(o?Os(t,h,h):Vs(t,h),t[h]=o)}return t},s.Zt=function(t){if(0!==t.networkState&&3!==t.networkState){if(0===t.readyState){var i=!1,s=function(){i=!0};this.on("loadstart",s);var e=function(){i||this.trigger("loadstart")};return this.on("loadedmetadata",e),void this.ready(function(){this.off("loadstart",s),this.off("loadedmetadata",e),i||this.trigger("loadstart")})}var n=["loadstart"];n.push("loadedmetadata"),t.readyState>=2&&n.push("loadeddata"),t.readyState>=3&&n.push("canplay"),t.readyState>=4&&n.push("canplaythrough"),this.ready(function(){n.forEach(function(t){this.trigger(t)},this)})}},s.ai=function(){var t=this.el().textTracks;if(t){for(var i=0;i<t.length;i++)this.textTracks().tt(t[i]);t.addEventListener&&(t.addEventListener("change",this.ri),t.addEventListener("addtrack",this.hi),t.addEventListener("removetrack",this.oi)),this.on("loadstart",this.fi)}},s.handleTextTrackChange=function(t){var i=this.textTracks();this.textTracks().trigger({type:"change",target:i,currentTarget:i,srcElement:i})},s.handleTextTrackAdd=function(t){this.textTracks().tt(t.track)},s.handleTextTrackRemove=function(t){this.textTracks().it(t.track)},s.ni=function(t,i){var s=[];if(i){for(var e=0;e<t.length;e++){for(var n=t[e],r=!1,h=0;h<i.length;h++)if(i[h]===n){r=!0;break}r||s.push(n)}for(var o=0;o<s.length;o++){var a=s[o];t.it(a)}}},s.fi=function(t){var i=this.textTracks(),s=this.el().textTracks;this.ni(i,s)},s.play=function(){var t=this.v.play();void 0!==t&&"function"==typeof t.then&&t.then(null,function(t){})},s.setCurrentTime=function(t){try{this.v.currentTime=t}catch(t){ps(t,"Video is not ready. (Video.js)")}},s.duration=function(){var t=this;if(this.v.duration===1/0&&ee&&ue&&0===this.v.currentTime){return this.on("timeupdate",function i(){t.v.currentTime>0&&(t.v.duration===1/0&&t.trigger("durationchange"),t.off("timeupdate",i))}),NaN}return this.v.duration||NaN},s.width=function(){return this.v.offsetWidth},s.height=function(){return this.v.offsetHeight},s.di=function(){var t=this;if("webkitDisplayingFullscreen"in this.v){var i=function(){this.trigger("fullscreenchange",{isFullscreen:!1})},s=function(){"webkitPresentationMode"in this.v&&"picture-in-picture"!==this.v.webkitPresentationMode&&(this.one("webkitendfullscreen",i),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",s),this.on("dispose",function(){t.off("webkitbeginfullscreen",s),t.off("webkitendfullscreen",i)})}},s.supportsFullScreen=function(){if("function"==typeof this.v.webkitEnterFullScreen){var t=ss.navigator&&ss.navigator.userAgent||"";if(/Android/.test(t)||!/Chrome|Mac OS X 10.5/.test(t))return!0}return!1},s.enterFullScreen=function(){var t=this.v;t.paused&&t.networkState<=t.HAVE_METADATA?(this.v.play(),this.setTimeout(function(){t.pause(),t.webkitEnterFullScreen()},0)):t.webkitEnterFullScreen()},s.exitFullScreen=function(){this.v.webkitExitFullScreen()},s.src=function(t){if(void 0===t)return this.v.src;this.setSrc(t)},s.reset=function(){i.resetMediaElement(this.v)},s.currentSrc=function(){return this.bt?this.bt.src:this.v.currentSrc},s.setControls=function(t){this.v.controls=!!t},s.addTextTrack=function(i,s,e){return this.featuresNativeTextTracks?this.v.addTextTrack(i,s,e):t.prototype.addTextTrack.call(this,i,s,e)},s.createRemoteTextTrack=function(i){if(!this.featuresNativeTextTracks)return t.prototype.createRemoteTextTrack.call(this,i);var s=es.createElement("track");return i.kind&&(s.kind=i.kind),i.label&&(s.label=i.label),(i.language||i.srclang)&&(s.srclang=i.language||i.srclang),i.default&&(s.default=i.default),i.id&&(s.id=i.id),i.src&&(s.src=i.src),s},s.addRemoteTextTrack=function(i,s){var e=t.prototype.addRemoteTextTrack.call(this,i,s);return this.featuresNativeTextTracks&&this.el().appendChild(e),e},s.removeRemoteTextTrack=function(i){if(t.prototype.removeRemoteTextTrack.call(this,i),this.featuresNativeTextTracks)for(var s=this.$$("track"),e=s.length;e--;)i!==s[e]&&i!==s[e].track||this.el().removeChild(s[e])},s.getVideoPlaybackQuality=function(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var t={};return void 0!==this.el().webkitDroppedFrameCount&&void 0!==this.el().webkitDecodedFrameCount&&(t.droppedVideoFrames=this.el().webkitDroppedFrameCount,t.totalVideoFrames=this.el().webkitDecodedFrameCount),ss.performance&&"function"==typeof ss.performance.now?t.creationTime=ss.performance.now():ss.performance&&ss.performance.timing&&"number"==typeof ss.performance.timing.navigationStart&&(t.creationTime=ss.Date.now()-ss.performance.timing.navigationStart),t},i}(jh);_s()&&(e.TEST_VID=es.createElement("video"),(Ho=es.createElement("track")).kind="captions",Ho.srclang="en",Ho.label="English",e.TEST_VID.appendChild(Ho)),e.isSupported=function(){try{e.TEST_VID.volume=.5}catch(t){return!1}return!(!e.TEST_VID||!e.TEST_VID.canPlayType)},e.canControlVolume=function(){try{var t=e.TEST_VID.volume;return e.TEST_VID.volume=t/2+.1,t!==e.TEST_VID.volume}catch(t){return!1}},e.canControlPlaybackRate=function(){if(ee&&ue&&ce<58)return!1;try{var t=e.TEST_VID.playbackRate;return e.TEST_VID.playbackRate=t/2+.1,t!==e.TEST_VID.playbackRate}catch(t){return!1}},e.supportsNativeTextTracks=function(){return ve},e.supportsNativeVideoTracks=function(){return!(!e.TEST_VID||!e.TEST_VID.videoTracks)},e.supportsNativeAudioTracks=function(){return!(!e.TEST_VID||!e.TEST_VID.audioTracks)},e.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","volumechange"],e.prototype.featuresVolumeControl=e.canControlVolume(),e.prototype.featuresPlaybackRate=e.canControlPlaybackRate(),e.prototype.movingMediaElementInDOM=!ie,e.prototype.featuresFullscreenResize=!0,e.prototype.featuresProgressEvents=!0,e.prototype.featuresTimeupdateEvents=!0,e.prototype.featuresNativeTextTracks=e.supportsNativeTextTracks(),e.prototype.featuresNativeVideoTracks=e.supportsNativeVideoTracks(),e.prototype.featuresNativeAudioTracks=e.supportsNativeAudioTracks();var zo=e.TEST_VID&&e.TEST_VID.constructor.prototype.canPlayType,Wo=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,qo=/^video\/mp4/i;e.patchCanPlayType=function(){ne>=4&&!oe?e.TEST_VID.constructor.prototype.canPlayType=function(t){return t&&Wo.test(t)?"maybe":zo.call(this,t)}:re&&(e.TEST_VID.constructor.prototype.canPlayType=function(t){return t&&qo.test(t)?"maybe":zo.call(this,t)})},e.unpatchCanPlayType=function(){var t=e.TEST_VID.constructor.prototype.canPlayType;return e.TEST_VID.constructor.prototype.canPlayType=zo,t},e.patchCanPlayType(),e.disposeMediaElement=function(t){if(t){var i=t.nodeName.toLowerCase();if("video"===i||"audio"===i){for(t.parentNode&&t.parentNode.removeChild(t);t.hasChildNodes();)t.removeChild(t.firstChild);t.removeAttribute("src"),"function"==typeof t.load&&function(){try{t.load()}catch(t){}}()}}},e.resetMediaElement=function(t){if(t){for(var i=t.querySelectorAll("source"),s=i.length;s--;)t.removeChild(i[s]);t.removeAttribute("src"),"function"==typeof t.load&&function(){try{t.load()}catch(t){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(t){e.prototype[t]=function(){return this.v[t]||this.v.hasAttribute(t)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(t){e.prototype["set"+Ne(t)]=function(i){this.v[t]=i,i?this.v.setAttribute(t,t):this.v.removeAttribute(t)}}),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","played","networkState","readyState","videoWidth","videoHeight"].forEach(function(t){e.prototype[t]=function(){return this.v[t]}}),["volume","src","poster","preload","playbackRate"].forEach(function(t){e.prototype["set"+Ne(t)]=function(i){this.v[t]=i}}),["pause","load"].forEach(function(t){e.prototype[t]=function(){return this.v[t]()}}),jh.withSourceHandlers(e),e.nativeSourceHandler={},e.nativeSourceHandler.canPlayType=function(t){try{return e.TEST_VID.canPlayType(t)}catch(t){return""}},e.nativeSourceHandler.canHandleSource=function(t,i){if(t.type)return e.nativeSourceHandler.canPlayType(t.type);if(t.src){var s=function(t){if("string"==typeof t){var i=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i.exec(t);if(i)return i.pop().toLowerCase()}return""}(t.src);return e.nativeSourceHandler.canPlayType("video/"+s)}return""},e.nativeSourceHandler.handleSource=function(t,i,s){i.setSrc(t.src)},e.nativeSourceHandler.dispose=function(){},e.registerSourceHandler(e.nativeSourceHandler),Be.registerComponent("Html5",e),jh.registerTech("Html5",e);var Go=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","ratechange","volumechange","texttrackchange"],Xo=function(t){function i(s,e,n){var r;if(s.id=s.id||["vjs_video",hs()].join("_"),(e=ls(i.getTagSettings(s),e)).initChildren=!1,e.createEl=!1,e.reportTouchActivity=!1,!e.language)if("function"==typeof s.closest){var h=s.closest("[lang]");h&&(e.language=h.getAttribute("lang"))}else for(var o=s;o&&1===o.nodeType;){if(Rs(o).hasOwnProperty("lang")){e.language=o.getAttribute("lang");break}o=o.parentNode}if(!(r=t.call(this,null,e,n)||this).h||!r.h.techOrder||!r.h.techOrder.length)throw new v("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(r.tag=s,r.tagAttributes=s&&Rs(s),r.language(r.h.language),e.languages){var a={};g.getOwnPropertyNames(e.languages).forEach(function(t){a[t.toLowerCase()]=e.languages[t]}),r.pi=a}else r.pi=i.prototype.h.languages;r.mi={},r.gi=e.poster||"",r.yi=!!e.controls,s.controls=!1,r.bi=!1,r.v=r.createEl();var u=Fe(r.h);if(e.plugins){var c=e.plugins;g.getOwnPropertyNames(c).forEach(function(t){"function"==typeof this[t]?this[t](c[t]):ps.error("Unable to find plugin:",t)},Re(r))}r.h.playerOptions=u,r.initChildren(),r.isAudio("audio"===s.nodeName.toLowerCase()),r.controls()?r.addClass("vjs-controls-enabled"):r.addClass("vjs-controls-disabled"),r.v.setAttribute("role","region"),r.isAudio()?r.v.setAttribute("aria-label","audio player"):r.v.setAttribute("aria-label","video player"),r.isAudio()&&r.addClass("vjs-audio"),r.wi()&&r.addClass("vjs-no-flex"),ie||r.addClass("vjs-workinghover"),i.players[r.o]=Re(r);var l="5.20.6-opentelly.14".split(".")[0];return r.addClass("vjs-v"+l),r.userActive(!0),r.reportUserActivity(),r.ki(),r.on("fullscreenchange",r._i),r.on("stageclick",r.ji),r}Ve(i,t);var s=i.prototype;return s.dispose=function(){this.trigger("dispose"),this.off("dispose"),this.xi&&this.xi.parentNode&&this.xi.parentNode.removeChild(this.xi),i.players[this.o]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.v&&this.v.player&&(this.v.player=null),this.H&&this.H.dispose(),t.prototype.dispose.call(this)},s.createEl=function(){var i,s=this.tag,e=this.Si=s.parentNode&&s.parentNode.hasAttribute&&s.parentNode.hasAttribute("data-vjs-player");i=this.v=e?s.parentNode:t.prototype.createEl.call(this,"div"),s.setAttribute("tabindex","-1"),s.removeAttribute("width"),s.removeAttribute("height");var n=Rs(s);if(g.getOwnPropertyNames(n).forEach(function(t){"class"===t?i.className+=" "+n[t]:i.setAttribute(t,n[t])}),s.playerId=s.id,s.id+="Ti",s.className="vjs-tech",s.player=i.player=this,this.addClass("vjs-paused"),!0!==ss.VIDEOJS_NO_DYNAMIC_STYLE){this.xi=Ie("vjs-styles-dimensions");var r=Gs(".vjs-styles-defaults"),h=Gs("head");h.insertBefore(this.xi,r?r.nextSibling:h.firstChild)}this.width(this.h.width),this.height(this.h.height),this.fluid(this.h.fluid),this.aspectRatio(this.h.aspectRatio);for(var o=s.getElementsByTagName("a"),a=0;a<o.length;a++){var u=o.item(a);Ns(u,"vjs-hidden"),u.setAttribute("hidden","hidden")}return s.Kt=s.networkState,s.parentNode&&!e&&s.parentNode.insertBefore(i,s),Cs(s,i),this.m.unshift(s),this.v=i,i},s.width=function(t){return this.dimension("width",t)},s.height=function(t){return this.dimension("height",t)},s.dimension=function(t,i){var s="width"===t?"Ci":"Pi";if(void 0===i)return this[s]||0;if(""===i)this[s]=void 0;else{var e=_(i);if(j(e))return ps.error('Improper value "'+i+'" supplied for for '+t),this;this[s]=e}return this.Mi(),this},s.fluid=function(t){if(void 0===t)return!!this.Ai;this.Ai=!!t,t?this.addClass("vjs-fluid"):this.removeClass("vjs-fluid"),this.Mi()},s.aspectRatio=function(t){if(void 0===t)return this.Ii;if(!/^\d+\:\d+$/.test(t))throw new v("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.Ii=t,this.fluid(!0),this.Mi()},s.Mi=function(){if(!0!==ss.VIDEOJS_NO_DYNAMIC_STYLE){var t,i,s,e=(void 0!==this.Ii&&"auto"!==this.Ii?this.Ii:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),n=e[1]/e[0];t=void 0!==this.Ci?this.Ci:void 0!==this.Pi?this.Pi/n:this.videoWidth()||300,i=void 0!==this.Pi?this.Pi:t*n,s=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(s),Ee(this.xi,"\n ."+s+" {\n width: "+t+"px;\n height: "+i+"px;\n }\n\n ."+s+".vjs-fluid {\n padding-top: "+100*n+"%;\n }\n ")}else{var r="number"==typeof this.Ci?this.Ci:this.h.width,h="number"==typeof this.Pi?this.Pi:this.h.height,o=this.H&&this.H.el();o&&(r>=0&&(o.width=r),h>=0&&(o.height=h))}},s._t=function(t,i){var s=this;this.H&&this.Ei(),"Html5"!==t&&this.tag&&(jh.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.Di=t,this.T=!1;var e=ls({source:i,nativeControlsForTouch:this.h.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+t+"Ni",videoTracks:this.rt,textTracks:this.nt,audioTracks:this.ht,autoplay:this.h.autoplay,playsinline:this.h.playsinline,preload:this.h.preload,loop:this.h.loop,muted:this.h.muted,poster:this.poster(),language:this.language(),playerElIngest:this.Si||!1,"vtt.js":this.h["vtt.js"]},this.h[t.toLowerCase()]);this.tag&&(e.tag=this.tag),i&&(this.Fi=i.type,i.src===this.mi.src&&this.mi.currentTime>0&&(e.startTime=this.mi.currentTime),this.mi.sources=null,this.mi.source=i,this.mi.src=i.src);var n=jh.getTech(t);n||(n=Be.getComponent(t)),this.H=new n(e),this.H.ready(De(this,this.Bi),!0),en(this.$i||[],this.H),Go.forEach(function(t){s.on(s.H,t,s["handleTech"+Ne(t)+"_"])}),this.on(this.H,"loadstart",this.Ri),this.on(this.H,"waiting",this.Oi),this.on(this.H,"canplay",this.Vi),this.on(this.H,"canplaythrough",this.Ui),this.on(this.H,"playing",this.Li),this.on(this.H,"ended",this.Hi),this.on(this.H,"seeking",this.zi),this.on(this.H,"seeked",this.Wi),this.on(this.H,"play",this.qi),this.on(this.H,"firstplay",this.Gi),this.on(this.H,"pause",this.Xi),this.on(this.H,"durationchange",this.Ji),this.on(this.H,"fullscreenchange",this.Qi),this.on(this.H,"error",this.Yi),this.on(this.H,"loadedmetadata",this.Mi),this.on(this.H,"resize",this.Mi),this.on(this.H,"posterchange",this.Ki),this.on(this.H,"textdata",this.Zi),this.usingNativeControls(this.ts("controls")),this.controls()&&!this.usingNativeControls()&&this.ss(),this.H.el().parentNode===this.contentEl()||"Html5"===t&&this.tag||Cs(this.H.el(),this.contentEl()),this.tag&&(this.tag.player=null,this.tag=null)},s.Ei=function(){this.rt=this.videoTracks(),this.nt=this.textTracks(),this.ht=this.audioTracks(),this.$i=sn(this.H),this.T=!1,this.H.dispose(),this.H=!1},s.tech=function(t){if(t&&t.IWillNotUseThisInPlugins)return this.H;var i="\n Please make sure that you are not using this inside of a plugin.\n To disable this alert and error, please pass in an object with\n `IWillNotUseThisInPlugins` to the `tech` method. See\n https://github.com/videojs/video.js/issues/2617 for more info.\n ";throw ss.alert(i),new v(i)},s.ss=function(){this.es(),this.on(this.H,"mousedown",this.ns),this.on(this.H,"touchstart",this.rs),this.on(this.H,"touchmove",this.hs),this.on(this.H,"touchend",this.us),this.on(this.H,"tap",this.cs)},s.es=function(){this.off(this.H,"tap",this.cs),this.off(this.H,"touchstart",this.rs),this.off(this.H,"touchmove",this.hs),this.off(this.H,"touchend",this.us),this.off(this.H,"mousedown",this.ns)},s.Bi=function(){if(this.triggerReady(),this.mi.volume&&this.ls("setVolume",this.mi.volume),this.Ki(),this.Ji(),(this.src()||this.currentSrc())&&this.tag&&this.h.autoplay&&this.paused()){try{delete this.tag.poster}catch(t){ps("deleting tag.poster throws in some browsers",t)}this.play()}},s.Ri=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay"))},s.hasStarted=function(t){return void 0!==t?(this.et!==t&&(this.et=t,t?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started")),this):!!this.et},s.qi=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},s.Oi=function(){var t=this;this.addClass("vjs-waiting"),this.trigger("waiting"),this.one("timeupdate",function(){return t.removeClass("vjs-waiting")})},s.Vi=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},s.Ui=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},s.Li=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},s.zi=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},s.Wi=function(){this.removeClass("vjs-seeking"),this.trigger("seeked")},s.Gi=function(){this.h.starttime&&(ps.warn("Passing the `starttime` option to the player will be deprecated in 6.0"),this.currentTime(this.h.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},s.Xi=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},s.Hi=function(){this.addClass("vjs-ended"),this.h.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},s.Ji=function(){this.duration(this.ts("duration"))},s.ns=function(t){0===t.button&&this.controls()&&(void 0!==this.h&&void 0!==this.h.userActions&&void 0!==this.h.userActions.click&&!1===this.h.userActions.click||(void 0!==this.h&&void 0!==this.h.userActions&&"function"==typeof this.h.userActions.click?this.h.userActions.click.call(this,t):this.paused()?this.play():this.pause()))},s.cs=function(){this.userActive(!this.userActive())},s.rs=function(){this.userWasActive=this.userActive()},s.hs=function(){this.userWasActive&&this.reportUserActivity()},s.us=function(t){t.cancelable&&t.preventDefault()},s._i=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},s.ji=function(){this.reportUserActivity()},s.Qi=function(t,i){i&&(this.toggleClass("vjs-ios-native-fs",!(!i.nativeIOSFullscreen||!i.isFullscreen)),this.isFullscreen(i.isFullscreen)),this.trigger("fullscreenchange")},s.Yi=function(){var t=this.H.error();this.error(t)},s.Zi=function(){var t=null;arguments.length>1&&(t=arguments[1]),this.trigger("textdata",t)},s.getCache=function(){return this.mi},s.ls=function(t,i){if(this.H&&!this.H.T)this.H.ready(function(){this[t](i)},!0);else try{this.H&&this.H[t](i)}catch(t){throw ps(t),t}},s.ts=function(t){if(this.H&&this.H.T)try{return this.H[t]()}catch(i){throw void 0===this.H[t]?ps("Video.js: "+t+" method not defined for "+this.Di+" playback technology.",i):"TypeError"===i.name?(ps("Video.js: "+t+" unavailable on "+this.Di+" playback technology element.",i),this.H.T=!1):ps(i),i}},s.play=function(){return this.src()||this.currentSrc()?this.ls("play"):this.H.one("loadstart",function(){this.play()}),this},s.pause=function(){return this.ls("pause"),this},s.paused=function(){return!1!==this.ts("paused")},s.scrubbing=function(t){return void 0!==t?(this.bi=!!t,t?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing"),this):this.bi},s.currentTime=function(t){return void 0!==t?(this.ls("setCurrentTime",t),this):(this.mi.currentTime=this.ts("currentTime")||0,this.mi.currentTime)},s.duration=function(t){return void 0===t?void 0!==this.mi.duration?this.mi.duration:NaN:((t=_(t))<0&&(t=1/0),t!==this.mi.duration&&(this.mi.duration=t,t===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),this.trigger("durationchange")),this)},s.remainingTime=function(){return this.duration()-this.currentTime()},s.buffered=function(){var t=this.ts("buffered");return t&&t.length||(t=He(0,0)),t},s.bufferedPercent=function(){return ze(this.buffered(),this.duration())},s.bufferedEnd=function(){var t=this.buffered(),i=this.duration(),s=t.end(t.length-1);return s>i&&(s=i),s},s.volume=function(t){var i;return void 0!==t?(i=w.max(0,w.min(1,_(t))),this.mi.volume=i,this.ls("setVolume",i),this):(i=_(this.ts("volume")),j(i)?1:i)},s.muted=function(t){return void 0!==t?(this.ls("setMuted",t),this):this.ts("muted")||!1},s.supportsFullScreen=function(){return this.ts("supportsFullScreen")||!1},s.isFullscreen=function(t){return void 0!==t?(this.ds=!!t,this):!!this.ds},s.requestFullscreen=function(t){var i,s=Je;return this.isFullscreen(!0),s.requestFullscreen?(je(es,s.fullscreenchange,De(this,function t(i){this.isFullscreen(es[s.fullscreenElement]),!1===this.isFullscreen()&&xe(es,s.fullscreenchange,t),this.trigger("fullscreenchange")})),s.prefixed||(i=this.h.fullscreenOptions,void 0!==t&&(i=t)),this.v[s.requestFullscreen](i)):this.H.supportsFullScreen()?this.ls("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange")),this},s.exitFullscreen=function(){var t=Je;return this.isFullscreen(!1),t.requestFullscreen?es[t.exitFullscreen]():this.H.supportsFullScreen()?this.ls("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange")),this},s.enterFullWindow=function(){this.isFullWindow=!0,this.docOrigOverflow=es.documentElement.style.overflow,je(es,"keydown",De(this,this.fullWindowOnEscKey)),es.documentElement.style.overflow="hidden",Ns(es.body,"vjs-full-window"),this.trigger("enterFullWindow")},s.fullWindowOnEscKey=function(t){27===t.keyCode&&(!0===this.isFullscreen()?this.exitFullscreen():this.exitFullWindow())},s.exitFullWindow=function(){this.isFullWindow=!1,xe(es,"keydown",this.fullWindowOnEscKey),es.documentElement.style.overflow=this.docOrigOverflow,Fs(es.body,"vjs-full-window"),this.trigger("exitFullWindow")},s.canPlayType=function(t){for(var i,s=0,e=this.h.techOrder;s<e.length;s++){var n=Ne(e[s]),r=jh.getTech(n);if(r||(r=Be.getComponent(n)),r){if(r.isSupported()&&(i=r.canPlayType(t)))return i}else ps.error('The "'+n+'" tech is undefined. Skipped browser support check for that tech.')}return""},s.selectSource=function(t){var i,s=this,e=this.h.techOrder.map(Ne).map(function(t){return[t,jh.getTech(t)||Be.getComponent(t)]}).filter(function(t){var i=t[0],s=t[1];return s?s.isSupported():(ps.error('The "'+i+'" tech is undefined. Skipped browser support check for that tech.'),!1)}),n=function(t,i,s){var e;return t.some(function(t){return i.some(function(i){if(e=s(t,i))return!0})}),e},r=function(t,i){var e=t[0];if(t[1].canPlaySource(i,s.h[e.toLowerCase()]))return{source:i,tech:e}};return(this.h.sourceOrder?n(t,e,(i=r,function(t,s){return i(s,t)})):n(e,t,r))||!1},s.src=function(t){if(void 0===t)return this.ts("src");var i=jh.getTech(this.Di);return i||(i=Be.getComponent(this.Di)),Array.isArray(t)?this.fs(t):"string"==typeof t?this.src({src:t}):t instanceof g&&(t.type&&!i.canPlaySource(t,this.h[this.Di.toLowerCase()])?this.fs([t]):(this.mi.sources=null,this.mi.source=t,this.mi.src=t.src,this.Fi=t.type||"",this.ready(function(){i.prototype.hasOwnProperty("setSource")?this.ls("setSource",t):this.ls("src",t.src),"auto"===this.h.preload&&this.load(),this.h.autoplay&&this.play()},!0))),this},s.fs=function(t){var i=this.selectSource(t);i?(i.tech===this.Di?this.src(i.source):this._t(i.tech,i.source),this.mi.sources=t):(this.setTimeout(function(){this.error({code:4,message:this.localize(this.h.notSupportedMessage)})},0),this.triggerReady())},s.load=function(){return this.ls("load"),this},s.reset=function(){return this._t(Ne(this.h.techOrder[0]),null),this.ls("reset"),this},s.currentSources=function(){var t=this.currentSource(),i=[];return 0!==g.keys(t).length&&i.push(t),this.mi.sources||i},s.currentSource=function(){var t={},i=this.currentSrc();return i&&(t.src=i),this.mi.source||t},s.currentSrc=function(){return this.ts("currentSrc")||this.mi.src||""},s.currentType=function(){return this.Fi||""},s.preload=function(t){return void 0!==t?(this.ls("setPreload",t),this.h.preload=t,this):this.ts("preload")},s.autoplay=function(t){return void 0!==t?(this.ls("setAutoplay",t),this.h.autoplay=t,this):this.ts("autoplay",t)},s.playsinline=function(t){return void 0!==t?(this.ls("setPlaysinline",t),this.h.playsinline=t,this):this.ts("playsinline")},s.loop=function(t){return void 0!==t?(this.ls("setLoop",t),this.h.loop=t,this):this.ts("loop")},s.poster=function(t){return void 0===t?this.gi:(t||(t=""),this.gi=t,this.ls("setPoster",t),this.trigger("posterchange"),this)},s.Ki=function(){!this.gi&&this.H&&this.H.poster&&(this.gi=this.H.poster()||"",this.trigger("posterchange"))},s.controls=function(t){return void 0!==t?(t=!!t,this.yi!==t&&(this.yi=t,this.usingNativeControls()&&this.ls("setControls",t),t?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.ss()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.es())),this):!!this.yi},s.usingNativeControls=function(t){return void 0!==t?(t=!!t,this.vs!==t&&(this.vs=t,t?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols"))),this):!!this.vs},s.error=function(t){return void 0===t?this.lt||null:null===t?(this.lt=t,this.removeClass("vjs-error"),this.errorDisplay&&this.errorDisplay.close(),this):(this.lt=new Ke(t),this.addClass("vjs-error"),ps.error("(CODE:"+this.lt.code+" "+Ke.errorTypes[this.lt.code]+")",this.lt.message,this.lt),this.trigger("error"),this)},s.reportUserActivity=function(t){this.ps=!0},s.userActive=function(t){return void 0!==t?((t=!!t)!==this.gs&&(this.gs=t,t?(this.ps=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),this.trigger("useractive")):(this.ps=!1,this.H&&this.H.one("mousemove",function(t){t.stopPropagation(),t.preventDefault()}),this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive"))),this):this.gs},s.ki=function(){var t,i,s,e,n=De(this,this.reportUserActivity);this.on("mousedown",function(){n(),this.clearInterval(t),t=this.setInterval(n,250)}),this.on("mousemove",function(t){t.screenX===i&&t.screenY===s||(i=t.screenX,s=t.screenY,n())}),this.on("mouseup",function(i){n(),this.clearInterval(t)}),this.on("keydown",n),this.on("keyup",n),this.setInterval(function(){if(this.ps){this.ps=!1,this.userActive(!0),this.clearTimeout(e);var t=this.h.inactivityTimeout;t>0&&(e=this.setTimeout(function(){this.ps||this.userActive(!1)},t))}},250)},s.playbackRate=function(t){return void 0!==t?(this.ls("setPlaybackRate",t),this):this.H&&this.H.featuresPlaybackRate?this.ts("playbackRate"):1},s.isAudio=function(t){return void 0!==t?(this.ys=!!t,this):!!this.ys},s.videoTracks=function(){return this.H?this.H.videoTracks():(this.rt=this.rt||new bh,this.rt)},s.audioTracks=function(){return this.H?this.H.audioTracks():(this.ht=this.ht||new kh,this.ht)},s.textTracks=function(){if(this.H)return this.H.textTracks()},s.remoteTextTracks=function(){if(this.H)return this.H.remoteTextTracks()},s.remoteTextTrackEls=function(){if(this.H)return this.H.remoteTextTrackEls()},s.addTextTrack=function(t,i,s){if(this.H)return this.H.addTextTrack(t,i,s)},s.addRemoteTextTrack=function(t,i){if(this.H)return this.H.addRemoteTextTrack(t,i)},s.removeRemoteTextTrack=function(t){var i=(void 0===t?{}:t).track,s=void 0===i?arguments[0]:i;if(this.H)return this.H.removeRemoteTextTrack(s)},s.getVideoPlaybackQuality=function(){return this.ts("getVideoPlaybackQuality")},s.videoWidth=function(){return this.H&&this.H.videoWidth&&this.H.videoWidth()||0},s.videoHeight=function(){return this.H&&this.H.videoHeight&&this.H.videoHeight()||0},s.language=function(t){return void 0===t?this.bs:(this.bs!==String(t).toLowerCase()&&(this.bs=String(t).toLowerCase(),void 0!==this.v&&this.trigger("languagechange")),this)},s.languages=function(){return Fe(i.prototype.h.languages,this.pi)},s.toJSON=function(){var t=Fe(this.h),i=t.tracks;t.tracks=[];for(var s=0;s<i.length;s++){var e=i[s];(e=Fe(e)).player=void 0,t.tracks[s]=e}return t},s.createModal=function(t,i){var s=this;(i=i||{}).content=t||"";var e=new rn(this,i);return this.addChild(e),e.on("dispose",function(){s.removeChild(e)}),e.open()},i.getTagSettings=function(t){var i={sources:[],tracks:[]},s=Rs(t),e=s["data-setup"];if(Ds(t,"vjs-fluid")&&(s.fluid=!0),null!==e){var n=Ze(e||"{}"),r=n[0],h=n[1];r&&ps.error(r),ls(s,h)}if(ls(i,s),t.hasChildNodes())for(var o=t.childNodes,a=0,u=o.length;a<u;a++){var c=o[a],l=c.nodeName.toLowerCase();"source"===l?i.sources.push(Rs(c)):"track"===l&&i.tracks.push(Rs(c))}return i},s.wi=function(){var t=es.createElement("i");return!("flexBasis"in t.style||"webkitFlexBasis"in t.style||"mozFlexBasis"in t.style||"msFlexBasis"in t.style||"msFlexOrder"in t.style)},i}(Be);Xo.players={};var Jo=ss.navigator;Xo.prototype.h={techOrder:["html5","flash"],html5:{},flash:{},defaultVolume:0,inactivityTimeout:2e3,playbackRates:[],children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","controlBar","errorDisplay","textTrackSettings"],language:Jo&&(Jo.languages&&Jo.languages[0]||Jo.userLanguage||Jo.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",fullscreenOptions:{navigationUI:"hide"}},["ended","seeking","seekable","networkState","readyState"].forEach(function(t){Xo.prototype[t]=function(){return this.ts(t)}}),Go.forEach(function(t){Xo.prototype["handleTech"+Ne(t)+"_"]=function(){return this.trigger(t)}}),Be.registerComponent("Player",Xo);var Qo,Yo,Ko=function(t){function i(s){var e;void 0===s&&(s={});var n=Fe(s,{kind:an[s.kind]||""}),r=e=t.call(this,n)||this,h=!1;if(le)for(var o in i.prototype)"constructor"!==o&&(r[o]=i.prototype[o]);return g.defineProperty(r,"enabled",{get:function(){return h},set:function(t){"boolean"==typeof t&&t!==h&&(h=t,this.trigger("enabledchange"))}}),n.enabled&&(r.enabled=n.enabled),r.q=!0,r||Re(e)}return Ve(i,t),i}(ln),Zo=function(t){function i(s){var e;void 0===s&&(s={});var n=Fe(s,{kind:on[s.kind]||""}),r=e=t.call(this,n)||this,h=!1;if(le)for(var o in i.prototype)"constructor"!==o&&(r[o]=i.prototype[o]);return g.defineProperty(r,"selected",{get:function(){return h},set:function(t){"boolean"==typeof t&&t!==h&&(h=t,this.trigger("selectedchange"))}}),n.selected&&(r.selected=n.selected),r||Re(e)}return Ve(i,t),i}(ln);function ta(t,i,s){var e;if("string"==typeof t){if(0===t.indexOf("#")&&(t=t.slice(1)),ta.getPlayers()[t])return i&&ps.warn('Player "'+t+'" is already initialised. Options will not be applied.'),s&&ta.getPlayers()[t].ready(s),ta.getPlayers()[t];e=function(t){return 0===t.indexOf("#")&&(t=t.slice(1)),es.getElementById(t)}(t)}else e=t;if(!e||!e.nodeName)throw new p("The element or ID supplied is not valid. (videojs)");if(e.player||Xo.players[e.playerId])return e.player||Xo.players[e.playerId];i=i||{},ta.hooks("beforesetup").forEach(function(t){var s=t(e,Fe(i));ds(s)&&!Array.isArray(s)?i=Fe(i,s):ps.error("please return an object in beforesetup hooks")});var n=new(Be.getComponent("Player"))(e,i,s);return ta.hooks("setup").forEach(function(t){return t(n)}),n}"undefined"==typeof HTMLVideoElement&&_s()&&(es.createElement("video"),es.createElement("audio"),es.createElement("track")),ta.ws={},ta.hooks=function(t,i){return ta.ws[t]=ta.ws[t]||[],i&&(ta.ws[t]=ta.ws[t].concat(i)),ta.ws[t]},ta.hook=function(t,i){ta.hooks(t,i)},ta.removeHook=function(t,i){var s=ta.hooks(t).indexOf(i);return!(s<=-1)&&(ta.ws[t]=ta.ws[t].slice(),ta.ws[t].splice(s,1),!0)},!0!==ss.VIDEOJS_NO_DYNAMIC_STYLE&&_s()&&((Qo=Gs(".vjs-styles-defaults"))||(Qo=Ie("vjs-styles-defaults"),(Yo=Gs("head"))&&Yo.insertBefore(Qo,Yo.firstChild),Ee(Qo,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid {\n padding-top: 56.25%\n }\n "))),Ae(1,ta),ta.VERSION="5.20.6-opentelly.14",ta.options=Xo.prototype.h,ta.getPlayers=function(){return Xo.players},ta.players=Xo.players,ta.getComponent=Be.getComponent,ta.registerComponent=function(t,i){jh.isTech(i)&&ps.warn("The "+t+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),Be.registerComponent.call(Be,t,i)},ta.getTech=jh.getTech,ta.registerTech=jh.registerTech,ta.browser=ge,ta.TOUCH_ENABLED=pe,ta.extend=function(t,i){void 0===i&&(i={});var s=function(){t.apply(this,arguments)},e={};for(var n in ds(i)?("function"==typeof i.init&&(ps.warn("Constructor logic via init() is deprecated; please use constructor() instead."),i.constructor=i.init),i.constructor!==g.prototype.constructor&&(s=i.constructor),e=i):"function"==typeof i&&(s=i),function(t,i){if("function"!=typeof i&&null!==i)throw new p("Super expression must either be null or a function, not "+typeof i);t.prototype=g.create(i&&i.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),i&&(t.ks=i)}(s,t),e)e.hasOwnProperty(n)&&(s.prototype[n]=e[n]);return s},ta.mergeOptions=Fe,ta.bind=De,ta.plugin=function(t,i){Xo.prototype[t]=i},ta.addLanguage=function(t,i){var s;return t=(""+t).toLowerCase(),ta.options.languages=Fe(ta.options.languages,((s={})[t]=i,s)),ta.options.languages[t]},ta.log=ps,ta.createTimeRange=ta.createTimeRanges=He,ta.formatTime=$h,ta.parseUrl=dn,ta.isCrossOrigin=fn,ta.EventTarget=$e,ta.on=je,ta.one=Te,ta.off=xe,ta.trigger=Se,ta.xhr=oh,ta.TextTrack=dh,ta.AudioTrack=Ko,ta.VideoTrack=Zo,ta.isEl=js,ta.isTextNode=Hs,ta.createEl=Ss,ta.hasClass=Ds,ta.addClass=Ns,ta.removeClass=Fs,ta.toggleClass=Bs,ta.setAttributes=$s,ta.getAttributes=Rs,ta.emptyEl=zs,ta.appendContent=Ws,ta.insertContent=qs,ta.computedStyle=zh,Rt(),Rt();function ia(t){const i=t.duration;if(j(i)){var s;const i=null==(s=t.source)?void 0:s.streamType;return"live"===i||"dvr"===i}return i===1/0}function sa(t){return t.scrubbing()?t.getCache().currentTime:t.currentTime()}function ea(t){const i=ha(t);return ia(t)?i.end(i.length-1):i.start(0)}function na(t){return ha(t).start(0)}function ra(t){const i=ha(t);return i.end(i.length-1)-i.start(0)}function ha(t){const i=t.seekable;if(i&&i.length)return i;let s=t.duration;return s=isFinite(s)?s:0,new _i([0,s])._s()}function oa(t,i){void 0===i&&(i=t);const s=t<0?"-":"";t=w.abs(t);let e=w.floor(t%60),n=w.floor(t/60%60),r=w.floor(t/3600);const h=w.floor(i/60%60),o=w.floor(i/3600);return(j(t)||t===1/0)&&(r=n=e="-"),r=Number(r)>0||o>0?r+":":"",n=((r||h>=10)&&Number(n)<10?"0"+n:n)+":",e=Number(e)<10?"0"+e:e,s+r+n+e}function aa(t){return class extends t{get js(){var t;return null!=(t=this.xs)?t:this.xs=ua(this.player())}dispose(){this.xs=void 0,super.dispose()}constructor(...t){super(...t),this.xs=void 0}}}function ua(t){return t.tech({IWillNotUseThisInPlugins:!0}).theoplayer()}function ca(t){const i=ua(t),s=()=>{const s=sa(t);t.toggleClass("theo-at-live",function(t,i){if(ia(t)){const s=t.seekable;return 0===s.length||s.end(s.length-1)-i<10}return!1}(i,s)),t.toggleClass("vjs-live",ia(i)),t.toggleClass("theo-dvr",function(t){return"dvr"===M(t.duration,t.seekable,t.source)}(i))};t.on("emptied",s),t.on("timeupdate",s),t.on("durationchange",s)}Rt(),Rt();function la(t,i,s){t.toggleClass("theo-ad-playing",i),t.toggleClass("theo-dai-ad-playing",i&&s)}function da(){this.userActive(!1)}Rt(),Rt(),Rt();var fa=class{constructor(t,i){this.type=void 0,this.target=void 0,this.playerEvent=void 0,this.type=t.type,this.target=i,this.playerEvent=t}};Rt();var va=function(t){return t.Ss="unavailable",t.Ts="available",t.Cs="presenting",t}({});Rt(),Rt();var pa=["loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","volumechange","resize"],ma=ta.getTech("Tech"),ga=ta.getTech("Html5"),ya=class extends ma{Ps(){var t;for(const t of pa)this.js.addEventListener(t,this.Ms);this.js.addEventListener("error",this.As),this.js.addEventListener("contentprotectionerror",this.As),this.js.addEventListener("sourcechange",this.Is),this.js.addEventListener("loadstart",this.Es),null==(t=this.js.presentation)||t.addEventListener(bt.MODE_CHANGE,this.Ds),this.js.textTracks.addEventListener("addtrack",this.Ns),this.js.textTracks.addEventListener("removetrack",this.Fs),this.js.textTracks.addEventListener("change",this.Bs),this.js.audioTracks.addEventListener("addtrack",this.$s),this.js.audioTracks.addEventListener("removetrack",this.Rs),this.js.audioTracks.addEventListener("change",this.Os)}Vs(){var t;for(const t of pa)this.js.removeEventListener(t,this.Ms);this.js.removeEventListener("error",this.As),this.js.removeEventListener("contentprotectionerror",this.As),this.js.removeEventListener("sourcechange",this.Is),this.js.removeEventListener("loadstart",this.Es),null==(t=this.js.presentation)||t.removeEventListener(bt.MODE_CHANGE,this.Ds),this.js.textTracks.removeEventListener("addtrack",this.Ns),this.js.textTracks.removeEventListener("removetrack",this.Fs),this.js.textTracks.removeEventListener("change",this.Bs),this.js.audioTracks.removeEventListener("addtrack",this.$s),this.js.audioTracks.removeEventListener("removetrack",this.Rs),this.js.audioTracks.removeEventListener("change",this.Os)}Us(t){this.trigger(new fa(t,this))}createEl(){const t=this.h,i=t.player;if(!i)throw new v(this.localize('Missing required tech option "player"'));const s=i.element;return ta.setAttributes(s,{id:t.techId}),s}theoplayer(){return this.js}addTextTrack(t,i,s){return super.addTextTrack(t,i,s)}buffered(){return this.js.buffered}played(){return this.js.played}reset(){this.js.stop()}play(){this.js.play()}pause(){this.js.pause()}paused(){return this.js.paused}currentTime(){return this.js.currentTime}setCurrentTime(t){this.js.currentTime=t}duration(){return this.js.duration}volume(){return this.js.volume}setVolume(t){this.js.volume=t}muted(){return this.js.muted}setMuted(t){this.js.muted=t}src(t){if(void 0!==t)this.setSrc(t);else{if(this.js.src)return this.js.src;if(this.js.source){if(!J(this.js.source.ads))return this.js.source.ads[0].sources;if(function(t){return!!t.sources&&(Gt(t.sources)?t.sources.some(Pi):Pi(t.sources))}(this.js.source))return"This source is managed by the Uplynk integration extension.";if(function(t){if(t.sources)if(Gt(t.sources)){for(const i of t.sources)if(Si(i))return!0}else if(Qt(t.sources))return Si(t.sources);return!1}(this.js.source))return"This source is managed by the DAI integration extension.";if(Ii(this.js.source))return"This source is managed by Millicast."}}}setSrc(t){return this.setSource({src:t})}setSource(t){this.lt=null,this.trigger("error")}currentSrc(){return this.js.src}load(){this.setPreload("auto")}preload(){return this.js.preload}setPreload(t){this.js.preload=t}autoplay(){return this.js.autoplay}setAutoplay(t){this.js.autoplay=Boolean(t)}seeking(){return this.js.seeking}seekable(){return this.js.seekable}ended(){return this.js.ended}playbackRate(){return this.js.playbackRate}setPlaybackRate(t){this.js.playbackRate=t}readyState(){return this.js.readyState}networkState(){return 0}controls(){return!1}videoHeight(){return this.js.videoHeight}videoWidth(){return this.js.videoWidth}supportsFullScreen(){return this.js.presentation.supportsMode(N.FULLSCREEN)}enterFullScreen(){this.js.presentation.requestMode(N.FULLSCREEN)}exitFullScreen(){this.js.presentation.requestMode(N.INLINE)}Ls(){const t=this.js.ads;if(t&&t.playing)return!0;const i=this.js.vr;return!(!i||i.state===va.Ss)}initTextTrackListeners(){return this.on("touchend",t=>{this.Ls()&&(t.preventDefault=()=>{})}),super.initTextTrackListeners()}Zt(){if(!this.src())return;const t=this.readyState();if(0===t){let t=!1;const i=()=>{t=!0};this.on("loadstart",i);const s=()=>{t||this.trigger("loadstart")};return this.on("loadedmetadata",s),void this.ready(()=>{this.off("loadstart",i),this.off("loadedmetadata",s),t||this.trigger("loadstart")})}const i=["loadstart"];i.push("loadedmetadata"),t>=2&&i.push("loadeddata"),t>=3&&i.push("canplay"),t>=4&&i.push("canplaythrough"),this.ready(()=>{for(const t of i)this.trigger(t)})}dispose(){this.Vs(),this.js=null,super.dispose()}static isSupported(){return!0}static canPlayType(){return"maybe"}static canPlaySource(t){return"maybe"}get featuresVolumeControl(){return z}constructor(t={},i){super(t,i),this.js=void 0,this.Ms=t=>this.Us(t),this.Hs=!1,this.Is=()=>{void 0===this.js.errorObject&&(this.Us(new Ni(this.js.currentTime,this.js.readyState)),this.Us(new $t),this.Us(new Hi(this.js.duration)))},this.Es=()=>{this.Us(new Yt(this.js.currentTime))},this.Ns=t=>{this.textTracks().tt(t.track)},this.$s=t=>{this.audioTracks().tt(t.track)},this.Fs=t=>{this.textTracks().it(t.track)},this.Rs=t=>{this.audioTracks().it(t.track)},this.Bs=()=>{const t=this.textTracks();t.trigger({type:"change",target:t,currentTarget:t,srcElement:t})},this.Os=()=>{const t=this.audioTracks();t.trigger({type:"change",target:t,currentTarget:t,srcElement:t})},this.Ds=()=>{if(!this.supportsFullScreen())return;const t=this.Hs,i=this.js.presentation.currentMode===N.FULLSCREEN;t!==i&&(this.Hs=i,this.trigger("fullscreenchange",{isFullscreen:i,nativeIOSFullscreen:!0}))},this.As=()=>{const t=this.js.errorObject,i=t&&_t(t.code)||-1,s=t&&t.message||"An unknown error occurred.";this.error({code:i,message:this.localize(s)})},this.js=this.h.player,this.Ps();const s=!this.paused();s&&this.pause(),t.preload&&this.setPreload(t.preload),t.autoplay&&this.setAutoplay(t.autoplay),t.muted&&this.setMuted(t.muted),t.source?this.setSrc(t.source):this.Zt(),s&&this.ready(()=>this.play()),this.triggerReady()}};ya.prototype.featuresFullscreenResize=ga.prototype.featuresFullscreenResize,ya.prototype.featuresPlaybackRate=ga.prototype.featuresPlaybackRate,ya.prototype.featuresProgressEvents=!0,ya.prototype.featuresTimeupdateEvents=!0,ya.prototype.featuresNativeTextTracks=!0,ta.registerTech("THEOplayer",ya),Rt(),Rt(),Rt(),Rt();var ba=class{constructor(t){this.zs=void 0,this.Ws=t=>{r(this.zs,"theo-mobile-button-hover"),t.stopImmediatePropagation()},this.qs=t=>{ci(this.zs,"theo-mobile-button-hover")},this.Gs=t=>{this.zs.blur()},this.zs=t,t.addEventListener("touchstart",this.Ws),t.addEventListener("touchend",this.qs),t.addEventListener("focusin",this.Gs)}};Rt(),Rt(),Rt(),Rt();var wa=ta.getComponent("Menu"),ka=class extends(aa(wa)){get Xs(){return this.player().el()}Js(){r(this.Xs,"theo-menu-opened")}Qs(){ci(this.Xs,"theo-menu-opened")}constructor(t,i){super(t,i)}};Rt();var _a=ta.getComponent("MenuItem"),ja=class extends(aa(_a)){get parentMenu(){return this.Ys}buildCSSClass(){return"theo-menu-item vjs-menu-item"}createEl(){const t=super.createEl("li",{className:this.buildCSSClass(),tabIndex:0},{"aria-live":"off","aria-label":""});return t.innerHTML="",t}handleClick(t){this.Ks||(this.parentMenu.Zs(this),"tap"!==t.type&&"keydown"!==t.type||(this.Ks=!0,this.trigger("click"),this.Ks=!1))}dispose(){xi.ie.te&&(this.el().removeEventListener("touchstart",this.Ws),this.el().removeEventListener("touchend",this.qs)),super.dispose()}constructor(t,i,s){super(t,q({selectable:!0},i)),this.Ys=void 0,this.Ks=!1,this.Ws=t=>{r(this.el(),"theo-mobile-menu-item-hover"),t.stopImmediatePropagation()},this.qs=t=>{ci(this.el(),"theo-mobile-menu-item-hover")},this.Ys=s,xi.ie.te&&(this.el().addEventListener("touchstart",this.Ws),this.el().addEventListener("touchend",this.qs))}};Rt();var xa=ta.getComponent("ClickableComponent"),Sa=class extends xa{get parentMenu(){return this.Ys}get se(){return this.ee}set se(t){this.ee=t,this.el().setAttribute("tabindex",this.se?"0":"-1"),this.ne()}buildCSSClass(){return"theo-primary-background theo-menu-header"}createEl(){const t=super.createEl("div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-live":"off","aria-label":""});return t.innerHTML="",t}handleClick(t){!this.Ks&&this.se&&(this.Ys.re(),"tap"===t.type&&(this.Ks=!0,this.trigger("click"),this.Ks=!1))}ne(){this.se?this.el().setAttribute("aria-label",this.localize("Go back to the previous menu")):this.el().setAttribute("aria-label","")}constructor(t,i,s){super(t,i),this.Ys=void 0,this.Ks=!1,this.ee=!1,this.Ys=s,this.on(t,"languagechange",this.ne)}},Ta=class extends ka{get menuHeader(){return this.he}get menuItems(){return this.children()}addMenuItem(t){t=q({playerOptions:this.h.playerOptions},t);const i=new ja(this.player(),t,this);return this.addChild(i,void 0,t.index),this.trigger("menuchange"),i}addSubMenuItem(t){t=q({playerOptions:this.h.playerOptions},t);const i=this.oe(this.player(),t);return this.addChild(i,void 0,t.index),this.trigger("menuchange"),i}removeMenuItem(t){this.removeChild(t),this.trigger("menuchange")}buildCSSClass(){return"theo-menu vjs-menu"}Js(){super.Js(),a.removeEventListener("resize",this.ae),a.addEventListener("resize",this.ae),this.show()}ue(){const t=this.ce();if(!t)return;const i=t.getClientRects();xi.ie.te?this.le(t,i):this.de(t,i)}ce(){var t;return null!=(t=this.contentEl().parentElement)?t:void 0}de(t,i){}le(t,i){}Qs(){a.removeEventListener("resize",this.ae),super.Qs(),this.hide(),xi.ie.te&&(this.el().removeAttribute("style"),this.contentEl().removeAttribute("style"))}createEl(){const t=super.createEl();t.className=this.buildCSSClass();const i=this.contentEl();r(i,"theo-menu-content");const s=new Sa(this.player(),this.h,this);return i.parentNode.insertBefore(s.el(),i),this.he=s,t}Zs(t){}show(){return this.ue(),super.show()}dispose(){this.he&&this.he.dispose(),super.dispose()}constructor(t,i){super(t,i),this.fe=void 0,this.ae=()=>this.ue(),this.fe=this.player().el(),this.hide(),this.on("menuchange",this.ue)}},Ca=class extends Ta{get ve(){return this.pe}set ve(t){this.pe&&this.pe.me(this),this.pe=t,t&&t.ge(this)}ye(t){this.ve.be(t,"replace")}we(t){t.ve.be(this,"restore")}ke(){ci(this._e,"vjs-hidden"),this._e.style.opacity="1",super.show()}je(){r(this._e,"vjs-hidden")}Js(){this.ve&&this.ve.Js(),super.Js()}Qs(){this.ve&&this.ve.Qs(),super.Qs(),r(this._e,"vjs-hidden")}ce(){if(this.ve&&this.ve.xe)return this.ve.xe._e}de(t,i){if(i.length>0){const t=i[0].height,s=i[0].width;this.pe.Se.style.height=t+"px",this.pe.Se.style.width=s+"px"}super.de(t,i)}constructor(t,i){super(t,i)}};Rt();var Pa=class{get Se(){return this.zs}get xe(){return this.Te}ge(t){t.je(),this.zs.appendChild(t._e)}me(t){this.zs.removeChild(t._e)}be(t,i){if(t==this.Te)return;const s=this.Te;if(this.Te=t,this.Te.ke(),this.xe.focus(),xi.ie.te)s.je();else{const t="translateX(100%)",e="translateX(-100%)",n=ut("transform");s._e.style.opacity="0",s._e.style[n]="replace"===i?e:t,this.Te._e.style.opacity="1",this.Te._e.style[n]="",u(()=>{s.je(),s._e.style[n]=""},300)}}Js(){this.Ce(),this.Te.ke(),this.Pe()}Qs(){this.Ce(),this.Te.je(),this.Me.je(),this.Te=this.Me,this.Pe()}Pe(){rt(()=>{ci(this.zs,"theo-no-transition"),ci(this.Te._e,"theo-no-transition")})}Ce(){r(this.zs,"theo-no-transition"),r(this.Te._e,"theo-no-transition")}constructor(t){this.Te=void 0,this.Me=void 0,this.zs=void 0,this.fe=void 0,this.Me=this.Te=t,this.zs=h.createElement("div"),this.zs.className="theo-tertiary-background theo-menu-animation-container",this.zs.appendChild(this.Me._e),this.fe=this.Te.player().el()}};Rt(),Rt();var Ma=class extends Ca{get _e(){return this.el()}get parentMenu(){return this.Ae}oe(t,i){const s=new Aa(t,i,this);return s.subMenu.ve=this.ve,s}re(){this.Ie()}Zs(t){super.Zs(t),this.Ie()}Ie(){this.parentMenu.we(this)}buildCSSClass(){return"theo-submenu "+(this.Ee?"":"theo-leaf-submenu ")+"theo-menu-content theo-menu-content-animatable "+super.buildCSSClass()}addSubMenuItem(t){this.Ee=!0;const i=super.addSubMenuItem(t);return this.removeClass("theo-leaf-submenu"),i}constructor(t,i,s){super(t,i),this.Ae=void 0,this.Ee=!1,this.Ae=s,this.menuHeader.se=!0}},Aa=class extends ja{get subMenu(){return this.De}handleClick(t){this.parentMenu.ye(this.subMenu)}constructor(t,i,s){super(t,q({selectable:!1},i),s),this.De=void 0,this.De=new Ma(t,i,s)}},Ia=class extends Ca{get menuButton(){return this.Ne}createEl(){const t=ta.createEl("div",{className:this.buildCSSClass()});return this.Fe=super.createEl(),this.Fe.className=super.buildCSSClass(),r(this.Fe,"theo-menu-content-animatable"),t.appendChild(this.Fe),this.ve=new Pa(this),t.appendChild(this.ve.Se),t}buildCSSClass(){return"theo-menu-animatable "+super.buildCSSClass()}oe(t,i){const s=new Aa(t,i,this);return s.subMenu.ve=this.ve,s}de(t,i){super.de(t,i);const s=this.fe.getClientRects(),e=s.length>0?s[0]:void 0,n=_(getComputedStyle(this.el()).fontSize);ui(this.el(),this.Ne.el(),e,n)}get _e(){return this.Fe}re(){this.Ne.closeMenu()}dispose(){this.Be||(this.Be=!0,super.dispose())}constructor(t,i,s){super(t,i),this.Ne=void 0,this.Be=!1,this.Ne=s}};Rt();var Ea=class{set $e(t){this.Re.innerHTML=this.Oe.localize(t),this.Ve()&&this.Ue(),yi(this.Oe.el())}get $e(){return this.Re.textContent||""}Ve(){return!ri(this.Re,"vjs-hidden")}Le(){this.Oe.off("mouseover",this.Ue),this.Oe.off("mouseout",this.He),this.Oe.off("dispose",this.ze),Zt(this.Re)}constructor(t,i){this.Re=void 0,this.Oe=void 0,this.Ue=()=>{ci(this.Re,"vjs-hidden");const t=this.Oe.player().contentEl().getClientRects(),i=t.length>0?t[0]:void 0,s=_(getComputedStyle(this.Re).fontSize);ui(this.Re,this.Oe.el(),i,s)},this.He=()=>{r(this.Re,"vjs-hidden")},this.ze=()=>this.Le(),this.Oe=t,yi(t.el()),ki(t.el()),this.Re=h.createElement("span"),this.Re.innerHTML=this.Oe.localize(i),this.Re.className="theo-button-tooltip vjs-hidden",this.Re.setAttribute("aria-hidden","true"),this.Oe.el().appendChild(this.Re),this.Oe.on("mouseover",this.Ue),this.Oe.on("mouseout",this.He),this.Oe.on("dispose",this.ze)}},Da=ta.getComponent("Button"),Na=class extends(aa(Da)){get We(){const t=this.el().parentElement;return!!t&&null!==t.querySelector(".theo-mobile-menu-background")}get menu(){return this.qe}isMenuOpen(){return this.Ge}openMenu(){this.Xe&&!this.Ge&&(this.qe.Js(),this.el().setAttribute("aria-expanded","true"),this.Ge=!0,this.qe.focus())}closeMenu(){this.Xe&&this.Ge&&(this.qe.Qs(),this.el().setAttribute("aria-expanded","false"),this.Ge=!1)}set minimumMenuItems(t){this.Je=t,this.Qe()}buildCSSClass(){return"theo-controlbar-button vjs-menu-button vjs-menu-button-popup "+super.buildCSSClass()}createEl(t,i,s){return super.createEl("button",{},{"aria-live":"off"})}handleClick(){this.Ge?this.closeMenu():this.openMenu()}enable(){return this.Xe=!0,super.enable()}disable(){return this.closeMenu(),this.Xe=!1,super.disable()}ne(){this.Re.$e=this.controlText()}dispose(){this.player().removeChild(this.qe),this.qe.dispose(),this.Re.Le(),this.js.removeEventListener("seeking",this.Ye),super.dispose()}constructor(t,i){super(t,i),this.qe=void 0,this.Re=void 0,this.Ge=!1,this.Je=1,this.Xe=!0,this.Ke=t=>{const i=this.el().contains(t.target),s=this.qe.el().contains(t.target);let e=!1;var n;xi.ie.te&&this.We&&(e=(null==(n=this.el().parentElement)?void 0:n.querySelector(".theo-mobile-menu-background"))===t.target);i||s||!this.Ge||(e&&t.preventDefault(),this.closeMenu())},this.Ze=t=>{27===t.which&&(this.closeMenu(),this.focus())},this.Ye=()=>{this.Ge&&this.closeMenu()},this.Qe=()=>{this.qe.menuItems.length>=this.Je?this.show():(this.closeMenu(),this.hide())},this.qe=new Ia(t,i,this),this.player().getChild("controlBarMenuContainer").addChild(this.qe),this.Re=new Ea(this,this.controlText()),this.el().setAttribute("aria-haspopup","true"),xi.ie.tn?(this.on(h,"touchend",this.Ke),new ba(this.el())):(this.on(h,"click",this.Ke),this.on(h,"keydown",this.Ze),pt&&this.on(h,pt.sn,this.closeMenu)),this.js.addEventListener("seeking",this.Ye),this.on(this.qe,"menuchange",this.Qe),this.on(t,"languagechange",this.ne),this.Qe()}},Fa=ta.getComponent("Component"),Ba=class extends(ta.getComponent("ControlBar")){addMenuButton(t){t=q({playerOptions:this.h.playerOptions},t);const i=new Na(this.player(),t);return this.addChild(i),i}removeMenuButton(t){this.removeChild(t)}createEl(){const t=super.createEl();return t.className=this.buildCSSClass(),t}buildCSSClass(){return"theo-secondary-color vjs-control-bar "+super.buildCSSClass()}constructor(t,i){super(t,i),this.addChild("THEOControlBarShadow",void 0,0)}};ta.registerComponent("THEOControlBarShadow",class extends Fa{createEl(){return super.createEl("div",{className:this.buildCSSClass()})}buildCSSClass(){return"theo-tertiary-color theo-control-bar-shadow"}}),Rt(),Rt();var $a=ta.getComponent("VolumeBar"),Ra=class extends $a{handleFocus(t){super.handleFocus(t),this.nn.addClass("focus-within")}handleBlur(t){super.handleBlur(t),this.nn.removeClass("focus-within")}constructor(t,i){super(t,i),this.nn=void 0,this.nn=i.rn}};Rt();var Oa=ta.getComponent("VolumeControl"),Va=class extends Oa{constructor(t,i){super(t,i),this.hn=void 0,this.hn=new Ra(t,{rn:this}),this.addChild(this.hn)}};Va.prototype.h=q({},Oa.prototype.h,{children:[]}),ta.registerComponent("VolumeControl",Va);var Ua=class extends(aa(Ba)){an(){this.un(this.cn())}ln(){0===this.dn&&(this.dn=u(this.fn,100))}vn(t){"opacity"===t.propertyName&&(0!==this.dn&&(c(this.dn),this.dn=0),this.un(!0))}pn(t){"opacity"===t.propertyName&&(this.cn()||this.un(!1))}cn(){return"0"!==a.getComputedStyle(this.el()).opacity}un(t){this.mn!==t&&(this.mn=t,t?this.gn():this.js.textTrackStyle.marginBottom=void 0)}gn(){const t=this.el().getBoundingClientRect().height;this.js.textTrackStyle.marginBottom!==t&&(this.js.textTrackStyle.marginBottom=t)}dispose(){c(this.dn),this.dn=0,this.bn.yn(ot.wn,this.kn),this.bn._n(),super.dispose()}constructor(t,i){super(t,i),this.bn=void 0,this.mn=!1,this.dn=0,this.fn=()=>{0!==this.dn&&(this.dn=0,this.un(this.cn()))},this.kn=()=>{this.mn&&this.gn()},this.on(t,"ready",this.an),this.on(t,"pause",this.an),this.on(t,"useractive",this.an),this.on(t,"firstplay",this.ln),this.on(t,"play",this.ln),this.on(t,"userinactive",this.ln),this.on("transitionstart",this.vn),this.on("transitionend",this.pn),this.bn=new lt(this.el()),this.bn.jn(ot.wn,this.kn),this.bn.xn(!0)}};Ua.prototype.h=q({},Ba.prototype.h,{children:["progressControl","playToggle","muteToggle","volumeControl","currentTimeDisplay","timeDivider","durationDisplay","liveDisplay","remainingTimeDisplay","customControlSpacer","activeQualityLabel","vrButton","descriptionsButton","subtitlesButton","chromecastButton","airplayButton","multiViewButton","audioTrackButton","SettingsButton","fullscreenToggle"]}),ta.registerComponent("ControlBar",Ua),Rt();var La=class extends Ba{buildCSSClass(){return"theo-top-controlbar "+super.buildCSSClass()}constructor(t,i){super(t,i),t.topControlBar=this}};La.prototype.h=q({},Ba.prototype.h,{children:[]}),ta.registerComponent("TopControlBar",La),Rt();var Ha=ta.getComponent("CurrentTimeDisplay"),za=class extends(aa(Ha)){updateContent(){const t=sa(this.player()),i=this.js,s=na(i),e=this.localize("Current Time"),n=oa(w.max(0,t-s),ra(i));n!==this.Pt&&(this.Pt=n,this.contentEl().innerHTML='<span class="vjs-control-text">'+e+"</span> "+n)}constructor(t,i){super(t,i),this.on(t,"timeupdate",this.updateContent),this.on(t,"emptied",this.updateContent)}};ta.registerComponent("CurrentTimeDisplay",za),Rt();var Wa=ta.getComponent("DurationDisplay"),qa=class extends(aa(Wa)){updateContent(){const t=this.js,i=j(t.duration)?NaN:ra(t),s=t.clip.endTime-t.clip.startTime,e=w.min(i,s)||0;if(this.ct!==e){this.ct=e;const t=this.localize("Duration Time"),i=oa(e);this.S.innerHTML='<span class="vjs-control-text">'+t+"</span> "+i}}dispose(){var t;null==(t=this.js)||t.clip.removeEventListener("change",this.Sn),super.dispose()}constructor(t,i){var s;super(t,i),this.Sn=()=>this.updateContent(),this.off(t,"durationchange",this.updateContent),this.on(t,"durationchange",this.updateContent),this.off(t,"timeupdate",this.updateContent),this.on(t,"timeupdate",this.updateContent),this.off(t,"emptied",this.updateContent),this.on(t,"emptied",this.updateContent),null==(s=this.js)||s.clip.addEventListener("change",this.Sn)}};ta.registerComponent("DurationDisplay",qa),Rt();var Ga=ta.getComponent("Button"),Xa=class extends(aa(Ga)){buildCSSClass(){return"theo-live-control "+super.buildCSSClass()}createEl(){const t=super.createEl("button",{},{"aria-live":"off"});return this.Tn=ta.createEl("span",{className:"theo-live-control-indicator"}),si(t,this.Tn),t}createControlTextEl(t){const i=super.createControlTextEl(t);return ta.removeClass(i,"vjs-control-text"),ta.addClass(i,"theo-live-control-text"),i}handleClick(){var t;const i=this.js;if(void 0!==(null==(t=i.hesp)?void 0:t.manifest))i.hesp.goLive();else{const t=this.player();t.currentTime(1/0),t.play()}}Cn(){ia(this.js)?this.show():this.hide()}constructor(t,i){super(t,i),this.controlText("Live"),this.Cn(),this.on(t,"emptied",this.Cn),this.on(t,"durationchange",this.Cn),xi.ie.tn&&new ba(this.el())}};ta.registerComponent("LiveDisplay",Xa),Rt();var Ja=ta.getComponent("LoadingSpinner");ta.registerComponent("LoadingSpinner",class extends Ja{buildCSSClass(){return"theo-secondary-color vjs-loading-spinner "+super.buildCSSClass()}createEl(){const t=super.createEl();t.className=this.buildCSSClass();const i=ta.createEl("div",{className:"theo-loading-spinner-rotator"}),s=ta.createEl("div",{className:"theo-loading-spinner-circle-left"}),e=ta.createEl("div",{className:"theo-loading-spinner-circle-right"});return i.appendChild(s),i.appendChild(e),t.appendChild(i),t}constructor(t,i){super(t,i)}}),Rt();var Qa=ta.getComponent("LoadProgressBar"),Ya=class extends(aa(Qa)){update(){const t=this.js,i=_i.Pn(ha(t)),s=i.Mn(0),e=_i.Pn(t.buffered).An(i),n=i.In(0)-s;let r=e.U&&e.In(e.U-1)||0;r=w.max(0,r-s);const o=this.el(),a=this.En;o.style.width=Ka(r,n);for(let t=0;t<e.U;t++){const i=e.Mn(t),n=e.In(t);let u=a[t];u||(u=h.createElement("div"),a.push(u),o.appendChild(u)),u.style.left=Ka(i-s,r),u.style.width=Ka(n-i,r)}for(let t=a.length;t>e.U;t--)o.removeChild(a[t-1]);a.length=e.U}constructor(t,i){super(t,i),this.En=[],this.on(t,"emptied",this.update)}};function Ka(t,i){const s=t/i||0;return 100*(s>=1?1:s)+"%"}ta.registerComponent("LoadProgressBar",Ya),Rt();var Za=ta.getComponent("MouseTimeDisplay"),tu=class extends(aa(Za)){handleMouseMove(t){const i=t,s=this.js,e=na(s)+this.calculateDistance(i)*ra(s),n=i.pageX-oi(this.el().parentNode).left;this.update(e,n+"px")}handleTouchMove(t){const i=t,s=this.js,e=na(s)+this.calculateDistance(i)*ra(s),n=i.touches[0].pageX-oi(this.el().parentNode).left;this.update(e,n+"px")}createEl(){const t=super.createEl();return this.Dn=ta.createEl("span",{className:"theo-time-tooltip-text"}),t}update(t,i){this.Nn=t;const s=this.Fn(t);this.el().style.left=i,this.el().setAttribute("data-current-time",s),this.keepTooltipsInside&&(d(this.Dn,s),this.Bn())}Bn(){if(this.keepTooltipsInside&&this.tooltip.offsetParent){const t=this.player().contentEl(),i=t.getClientRects(),s=i.length>0?i[0]:void 0,e=_(getComputedStyle(t).fontSize);ui(this.tooltip,this.el(),s,e)}}Fn(t){const i=this.js,s=t-ea(i);return oa(ia(i)?w.min(s,0):s,ra(i))}dispose(){var t;this.js.removeEventListener("dimensionchange",this.$n),null==(t=this.js.presentation)||t.removeEventListener(bt.MODE_CHANGE,this.$n),super.dispose()}constructor(t,i){var s;(super(t,i),this.Nn=NaN,this.$n=()=>{const t=sa(this.player()),i=this.js;let s=(t-na(i))/ra(i)||0;s=Oi(s,0,1),this.update(t,100*s+"%")},this.keepTooltipsInside&&(ta.addClass(this.tooltip,"theo-secondary-color"),this.tooltip.appendChild(this.Dn)),this.on(t,"ready",()=>{this.on(t.controlBar.progressControl,"mouseenter",this.handleMouseMove)}),Ut.te)&&(this.on(t,"firstplay",this.$n),this.on(t,"play",this.$n),this.on(t,"seeking",this.$n),this.on(t,"seeked",this.$n),this.on(t,"timeupdate",this.$n),this.js.addEventListener("dimensionchange",this.$n),null==(s=this.js.presentation)||s.addEventListener(bt.MODE_CHANGE,this.$n),this.on(t,"ready",()=>{this.on(t.controlBar.progressControl,"touchstart",this.handleTouchMove),this.on(t.controlBar.progressControl,"touchmove",Ai(t=>this.handleTouchMove(t),25)),this.$n()}))}};ta.registerComponent("MouseTimeDisplay",tu),Rt();var iu=ta.getComponent("PlayProgressBar"),su=class extends(aa(iu)){updateDataAttr(){const t=sa(this.player());this.el().setAttribute("data-current-time",this.Fn(t))}Fn(t){const i=this.js;return oa(t-ea(i),ra(i))}createEl(){const t=super.createEl();return t.className=this.buildCSSClass(),t}buildCSSClass(){return"theo-primary-color vjs-play-progress vjs-slider-bar "+super.buildCSSClass()}constructor(t,i){super(t,i)}};ta.registerComponent("PlayProgressBar",su),Rt();var eu=ta.getComponent("RemainingTimeDisplay"),nu=class extends(aa(eu)){updateContent(){const t=this.js,i=ra(t);if(i){const s=ha(t).end(0),e=this.localize("Remaining Time"),n=oa(w.max(0,s-this.player().currentTime()),i);n!==this.Pt&&(this.Pt=n,this.contentEl().innerHTML='<span class="vjs-control-text">'+e+"</span> -"+n)}}constructor(t,i){super(t,i),this.on(t,"timeupdate",this.updateContent),this.on(t,"emptied",this.updateContent)}};ta.registerComponent("RemainingTimeDisplay",nu),Rt(),Rt();var ru=class{get js(){var t;return null!=(t=this.xs)?t:this.xs=ua(this.Rn)}On(){const t=this.Vn;if(!t)return;const i=this.js;if(0===i.seekable.length)return;const s=t.cues.slice();this.Ln.Un(s);for(let t=0;t<s.length;t++){const e=s[t],n=s[t+1],r=!n||e.endTime!==n.startTime,h=new hu(e,i,r);this.Hn.push(h),this.zn.appendChild(h.Se)}}Wn(){this.js.addEventListener("loadedmetadata",this.qn),this.js.addEventListener("loadeddata",this.qn),this.js.addEventListener("sourcechange",this.qn),this.js.addEventListener("durationchange",this.Gn),this.js.clip.addEventListener("change",this.Gn),this.js.textTracks.addEventListener("addtrack",this.Xn),this.js.textTracks.addEventListener("removetrack",this.Jn),this.js.textTracks.addEventListener("change",this.qn)}Qn(){this.js.removeEventListener("loadedmetadata",this.qn),this.js.removeEventListener("loadeddata",this.qn),this.js.removeEventListener("sourcechange",this.qn),this.js.removeEventListener("durationchange",this.Gn),this.js.clip.removeEventListener("change",this.Gn),this.js.textTracks.removeEventListener("addtrack",this.Xn),this.js.textTracks.removeEventListener("removetrack",this.Jn),this.js.textTracks.removeEventListener("change",this.qn)}Yn(){if(!(this.js.readyState<Lt.Kn))for(const t of this.js.textTracks)if(t.kind===At.Zn&&t.mode===Tt.tr&&t.cues.length>0&&t.readyState!==xt.ERROR)return t}ir(t){const i=this.Vn;t!==i&&(i&&(this.sr(),i.removeEventListener("cuechange",this.er)),this.Vn=t,t&&(t.addEventListener("cuechange",this.er),this.Gn()))}nr(t){this.Ln.rr(t)}hr(){this.Ln.ke()}ar(){this.Ln.je()}sr(){for(const t of this.Hn)t.Le();this.Ln.ur(),this.Hn=[],this.cr=void 0}Le(){this.Qn(),this.lr.removeEventListener("mousemove",this.dr),this.lr.removeEventListener("mouseenter",this.pr),this.lr.removeEventListener("mouseleave",this.mr),this.ir(void 0),this.Ln.Le(),this.xs=void 0}constructor(t,i){this.Rn=void 0,this.zn=void 0,this.Ln=void 0,this.lr=void 0,this.Vn=void 0,this.Hn=void 0,this.cr=void 0,this.xs=void 0,this.qn=void 0,this.Xn=void 0,this.Jn=void 0,this.dr=void 0,this.mr=void 0,this.pr=void 0,this.Gn=void 0,this.er=void 0,this.Rn=i,this.Hn=[],this.xs=void 0,this.qn=()=>{this.ir(this.Yn())},this.Xn=t=>{const i=t.track;i.kind===At.Zn&&(i.addEventListener("addcue",this.qn),i.addEventListener("removecue",this.qn),i.addEventListener("readystatechange",this.qn)),this.qn()},this.Jn=t=>{const i=t.track;i.kind===At.Zn&&(i.removeEventListener("addcue",this.qn),i.removeEventListener("removecue",this.qn),i.removeEventListener("readystatechange",this.qn)),this.qn()},this.dr=t=>{const i=this.js,s=function(t,i){const s=oi(t),e=t.offsetWidth,n=t.offsetHeight,r=s.top,h=s.left;let o,a;!function(t){return void 0!==t.changedTouches}(i)?(a=i.pageX,o=i.pageY):(a=i.changedTouches[0].pageX,o=i.changedTouches[0].pageY);const u=Oi((r-o+n)/n,0,1),c=Oi((a-h)/e,0,1);return{x:c,y:u}}(this.zn,t);let e=na(i)+s.x*ra(i);e===i.duration&&(e-=.1),this.nr(e)},this.mr=()=>{this.Ln.je()},this.pr=()=>{this.Ln.ke()},this.Gn=()=>{this.Vn&&(this.sr(),this.On(),this.er())},this.er=()=>{var t,i,s;const e=null==(i=this.Vn)||null==(t=i.activeCues)?void 0:t[0],n=Xi(this.Hn,t=>t.gr===e);n!==this.cr&&(null==(s=this.cr)||s.yr(),this.cr=n,null==n||n.br())},this.lr=t,this.Ln=new ou,this.Rn.contentEl().appendChild(this.Ln.Se),this.zn=h.createElement("div"),r(this.zn,"theoplayer-chapterbar"),this.lr.appendChild(this.zn),this.lr.addEventListener("mousemove",this.dr),this.lr.addEventListener("mouseenter",this.pr),this.lr.addEventListener("mouseleave",this.mr),this.Wn()}},hu=class{get Se(){return this.zs}br(){r(this.zs,"theoplayer-chapter-indicator-active")}yr(){ci(this.zs,"theoplayer-chapter-indicator-active")}wr(t,i){const s=t.seekable.start(0),e=t.seekable.end(t.seekable.length-1),n=e-s,o=this.gr.startTime,a=this.gr.endTime,u=a>=s&&o<=e,c=Oi(o-s,0,n),l=Oi(a-s,0,n),d=w.max(0,l-c),f=h.createElement("div");r(f,"theoplayer-chapter-indicator");const v=h.createElement("div");r(v,"theoplayer-chapter-indicator-highlight"),f.appendChild(v),i&&r(f,"theoplayer-chapter-indicator-discontinuous");const p=c/n*100,m=d/n*100;return f.style.display=u?"":"none",f.style.width=m+"%",f.style.left=p+"%",f}Le(){Zt(this.zs)}constructor(t,i,s){this.gr=void 0,this.zs=void 0,this.gr=t,this.zs=this.wr(i,s)}},ou=class{je(){this.kr--,0===this.kr&&ci(this.Se,"theoplayer-chapter-hovering")}Un(t){this._r=t||[],this._r.length>0&&(this.Se.style.display="")}jr(t){d(this.Sr,t.content)}ur(){this._r=[],d(this.Sr,""),this.Se.style.display="none"}ke(){this.kr++,this.kr>0&&r(this.Se,"theoplayer-chapter-hovering")}rr(t){for(const i of this._r)if(au(i,t)){this.jr(i);break}}Le(){Zt(this.Se)}constructor(){this._r=[],this.Se=void 0,this.Sr=void 0,this.kr=0,this.Se=h.createElement("div"),r(this.Se,"theoplayer-chaptertitle"),this.Se.style.display="none",this.Sr=h.createElement("p"),this.Se.appendChild(this.Sr)}};function au(t,i){return new _i([t.startTime,t.endTime]).Tr(i)}var uu=ta.getComponent("SeekBar"),cu=class extends(aa(uu)){updateAriaAttributes(t){const i=sa(this.player()),s=this.js;t.setAttribute("aria-valuenow",(100*this.Cr(i)).toFixed(2)),t.setAttribute("aria-valuetext",oa(i-ea(s),ra(s)))}getPercent(){return this.Cr(this.player().currentTime())}handleMouseMove(t){if(this.js&&this.js.ads&&this.js.ads.playing)return;const i=this.js;let s=na(i)+this.calculateDistance(t)*ra(i);s>=i.duration&&(s=i.duration-.1),this.zn.nr(s),this.player().currentTime(s)}handleMouseDown(t){this.playingStates.push(!this.player().paused()),this.zn.hr(),super.handleMouseDown(t)}handleMouseUp(t){this.videoWasPlaying=Boolean(this.playingStates.pop()),this.zn.ar(),super.handleMouseUp(t)}Cr(t){const i=this.js,s=(t-na(i))/ra(i);return Oi(s,0,1)}dispose(){this.zn.Le(),A(this.playingStates)}constructor(t,i){super(t,i),this.zn=void 0,this.playingStates=[],this.on(t,"emptied",this.update),this.on(t,"seeking",this.update),this.zn=new ru(this.el(),t)}};ta.registerComponent("SeekBar",cu),Rt();var lu=ta.getComponent("ProgressControl");xi.ie.te&&ta.registerComponent("ProgressControl",class extends lu{createEl(){return super.createEl("div",{className:"vjs-progress-control vjs-control"})}handleMouseMove(t){this.seekBar.handleMouseMove(t)}handleMouseDown(t){this.seekBar.handleMouseDown(t)}constructor(t,i){super(t,i),this.on(this,"touchmove",this.handleMouseMove),this.on("touchstart",this.handleMouseDown),this.seekBar.off(["touchmove","touchstart"])}}),Rt();var du=ta.getComponent("TooltipProgressBar"),fu=class extends(aa(du)){updateDataAttr(){const t=sa(this.player()),i=this.Fn(t);this.el().setAttribute("data-current-time",i),this.tooltip.innerHTML=i}Fn(t){const i=this.js;return oa(t-ea(i),ra(i))}createEl(){const t=super.createEl();return t.className=this.buildCSSClass(),t}buildCSSClass(){return"theo-primary-color vjs-tooltip-progress-bar vjs-slider-bar "+super.buildCSSClass()}constructor(t,i){super(t,i)}};function vu(t){for(const i of t)if(i.enabled)return i}function pu(t){if(t)return t.label&&""!==t.label?{name:t.label,hd:!1}:{name:mu(t),description:gu(t),hd:!!t.height&&t.height>=720}}function mu(t){return t.height?t.height+"p":t.bandwidth?gu(t):""}function gu(t){return t.bandwidth?t.bandwidth>1e7?(t.bandwidth/1e6).toFixed(0)+"Mbps":t.bandwidth>1e6?(t.bandwidth/1e6).toFixed(1)+"Mbps":(t.bandwidth/1e3).toFixed(0)+"kbps":""}ta.registerComponent("TooltipProgressBar",fu),Rt(),Rt(),Rt(),Rt(),Rt();var yu=class{get Pr(){return this.Mr}set Pr(t){const i=this.Mr;for(let s=i.length-1;s>=0;s--){const e=i[s];C(t,e)||this.Ar(e)}for(const i of t)this.Ir(i);this.Er.ue()}get Dr(){return this.Er.menuItems}Nr(t){const i=this.Dr;if(i)for(const s of i)if(s.Fr===t)return s}Br(t){const i=this.Er.addMenuItem();return i.Fr=t,i.on("click",()=>this.$r(i)),i.el().setAttribute("role","menuitemradio"),i}Rr(t){t.dispose()}Or(t){return!0}Ir(t){if(this.Or(t)){C(this.Mr,t)||this.Mr.push(t);const i=this.Nr(t)||this.Br(t);return this.Vr(i),i}this.Ar(t)}Ar(t){const i=this.Nr(t);i&&(this.Er.removeMenuItem(i),this.Rr(i)),Yi(this.Mr,t)}Le(){const t=[];for(const i of this.Mr)t.push(i);for(const i of t)this.Ar(i);A(t)}constructor(t){this.Er=void 0,this.Mr=[],this.Er=t}},bu=class extends yu{Ur(){return this.Lr=h.createElement("span"),this.Lr.className="theo-settings-control-menu-item-title",d(this.Lr,this.Hr.localize("Quality")),this.Lr}zr(){return this.Wr=h.createElement("span"),this.Wr.className="theo-settings-control-menu-quality-automatic",d(this.Wr,this.Hr.localize("Automatic")),this.Wr}qr(){return this.Gr=h.createElement("span"),d(this.Gr,this.Hr.localize("Automatic")),this.Gr}Xr(){return this.Jr=h.createElement("span"),this.Jr.className="theo-primary-color theo-settings-control-menu-item-hd-label",d(this.Jr,this.Hr.localize("HD")),this.Jr}Qr(){const t=h.createElement("span");t.className="theo-primary-color theo-settings-control-menu-item-value",t.appendChild(this.Wr),t.appendChild(h.createTextNode(" ")),t.appendChild(this.Gr),t.appendChild(h.createTextNode(" ")),t.appendChild(this.Jr),this.Yr.el().appendChild(this.Lr),this.Yr.el().appendChild(t),this.Yr.el().setAttribute("aria-label",this.Hr.localize("Open the video quality settings menu"))}Kr(){const t=this.Zr,i=t&&Tu(t.targetQuality),s=t&&t.activeQuality,e=pu(this.th(i||s))||{name:this.Hr.localize("Automatic")};d(this.Gr,e.name),di(this.Wr,"vjs-hidden",Boolean(i)),di(this.Jr,"vjs-hidden",!e.hd)}Vr(t){const i=pu(t.Fr)||{name:this.Hr.localize("Automatic")};let s=i.name;i.hd&&(s+='<span class="theo-primary-color theo-settings-control-menu-item-hd-label">'+this.Hr.localize("HD")+"</span>"),i.description&&(s+='<span class="theo-settings-control-submenu-item-alternate-value">'+i.description+"</span>"),t.el().innerHTML=s,t.el().setAttribute("aria-label",this.Hr.localize("Set video quality to ")+i.name),t.Fr?t.selected(t.Fr===this.ih):t.selected(!this.ih)}$r(t){this.Zr&&(this.Zr.targetQuality=t.Fr&&t.Fr.videoQualities)}th(t,i){const s=i||this.Pr;for(const i of s)if(t&&i&&-1!==i.videoQualities.indexOf(t))return i}Le(){this.xs.videoTracks.removeEventListener(["addtrack","removetrack","change"],this.sh),this.Hr.off("languagechange",this.ne),this.Zr&&(this.Zr.removeEventListener("activequalitychanged",this.eh),this.Zr.removeEventListener("targetqualitychanged",this.nh),this.Zr.removeEventListener("update",this.rh)),super.Le()}constructor(t,i,s){super(t.subMenu),this.Yr=void 0,this.xs=void 0,this.Hr=void 0,this.Zr=void 0,this.ih=void 0,this.Lr=void 0,this.Wr=void 0,this.Gr=void 0,this.Jr=void 0,this.sh=()=>{const t=vu(this.xs.videoTracks);if(t===this.Zr)return;let i=[];if(this.Zr&&(this.Zr.removeEventListener("activequalitychanged",this.eh),this.Zr.removeEventListener("targetqualitychanged",this.nh),this.Zr.removeEventListener("update",this.rh)),this.Zr=t,t){t.addEventListener("activequalitychanged",this.eh),t.addEventListener("targetqualitychanged",this.nh),t.addEventListener("update",this.rh);const s=ku(xu(t.qualities.filter(t=>t.available)));i=s.length>1?[void 0,...s]:[void 0]}this.Pr=i,this.nh(),this.eh()},this.rh=t=>{const i=t.track;if(i!==this.Zr)return;const s=ku(xu(i.qualities.filter(t=>t.available))),e=i&&Tu(i.targetQuality);let n;this.ih=this.th(e,s),n=s.length>1?[void 0,...s]:[void 0],this.Pr=n,this.Kr()},this.eh=()=>{this.Ir(void 0),this.Kr()},this.nh=()=>{const t=vu(this.xs.videoTracks),i=t&&Tu(t.targetQuality),s=this.th(i),e=this.ih;s!==e&&(this.ih=s,s&&e||this.Ir(void 0),e&&C(this.Pr,e)&&this.Ir(e),i&&this.Ir(s),this.Kr())},this.ne=()=>{d(this.Er.menuHeader.el(),this.Hr.localize("Quality")),d(this.Lr,this.Hr.localize("Quality")),d(this.Wr,this.Hr.localize("Automatic")),d(this.Gr,this.Hr.localize("Automatic")),d(this.Jr,this.Hr.localize("HD")),this.Yr.el().setAttribute("aria-label",this.Hr.localize("Open the video quality settings menu"));for(const t of this.Dr)this.Vr(t);this.Kr()},this.Yr=t,this.xs=i,this.Hr=s,this.Lr=this.Ur(),this.Wr=this.zr(),this.Gr=this.qr(),this.Jr=this.Xr(),this.Qr(),d(this.Er.menuHeader.el(),this.Hr.localize("Quality")),this.Pr=[void 0],this.xs.videoTracks.addEventListener(["addtrack","removetrack","change"],this.sh),this.Hr.on("languagechange",this.ne),this.sh()}},wu=class{get height(){return this.hh[0].height}get bandwidth(){return this.hh[0].bandwidth}get videoQualities(){return this.hh}get label(){return this.hh[0].label}add(t){this.hh.push(t)}constructor(t){this.hh=void 0,this.hh=t}};function ku(t){const i=[];for(const s of t){const t=s;let e=!1;for(const s of i)if(Su(s,t)){s.add(t),e=!0;break}e||i.push(new wu([t]))}return i}function _u(t,i){return t&&i?Wi(t,i):Li.oh}function ju(t,i){return t===i?Li.oh:_u(t.height,i.height)||_u(t.width,i.width)||_u(t.bandwidth,i.bandwidth)}function xu(t){return Bi(t,ju).reverse()}function Su(t,i){return t.label&&i.label&&t.label===i.label||vt(pu(t),pu(i))}function Tu(t){return Gt(t)?1===t.length?t[0]:void 0:t}function Cu(t){return 1===t?"Normal":""+w.round(100*t)/100}Rt();var Pu=class extends yu{Ur(){return this.Lr=h.createElement("span"),this.Lr.className="theo-settings-control-menu-item-title",d(this.Lr,this.Hr.localize("Speed")),this.Lr}Qr(){const t=h.createElement("span");return t.className="theo-primary-color theo-settings-control-menu-item-value",this.Yr.el().appendChild(this.Lr),this.Yr.el().appendChild(t),this.Yr.el().setAttribute("aria-label",this.Hr.localize("Open the video speed settings menu")),t}Br(t){const i=super.Br(t);return this.Vr(i),i}Vr(t){const i=t.Fr,s=this.Hr.localize(Cu(i));d(t.el(),s),t.el().setAttribute("aria-label",this.Hr.localize("Set video speed to ")+s),t.selected(t.Fr===this.xs.playbackRate)}$r(t){this.xs.playbackRate=t.Fr}Le(){this.xs.removeEventListener("ratechange",this.ah),this.Hr.off("languagechange",this.ne),super.Le()}constructor(t,i,s,e){super(t.subMenu),this.Yr=void 0,this.xs=void 0,this.Hr=void 0,this.uh=void 0,this.Lr=void 0,this.dh=void 0,this.ah=()=>{this.uh&&this.Ir(this.uh);const t=this.xs.playbackRate;this.uh=t,d(this.dh,this.Hr.localize(Cu(t))),t&&this.Ir(t)},this.ne=()=>{d(this.Er.menuHeader.el(),this.Hr.localize("Speed")),d(this.Lr,this.Hr.localize("Speed")),this.Yr.el().setAttribute("aria-label",this.Hr.localize("Open the video speed settings menu"));for(const t of this.Dr)this.Vr(t);this.ah()},this.Yr=t,this.xs=i,this.Hr=s,this.Lr=this.Ur(),this.dh=this.Qr(),d(this.Er.menuHeader.el(),this.Hr.localize("Speed")),this.Pr=e,this.xs.addEventListener("ratechange",this.ah),this.Hr.on("languagechange",this.ne),this.ah()}};ta.registerComponent("SettingsButton",class extends Na{createEl(){const t=super.createEl();return this.fh=ta.createEl("span",{className:"theo-settings-control-label-hd theo-primary-background"}),d(this.fh,this.localize("HD")),t.appendChild(this.fh),t}buildCSSClass(){return"vjs-icon-cog theo-settings-control-button "+super.buildCSSClass()}ne(){super.ne(),d(this.fh,this.localize("HD")),d(this.menu.menuHeader.el(),this.localize("Settings"))}dispose(){this.Zr&&(this.Zr.removeEventListener("activequalitychanged",this.eh),this.Zr=void 0),this.js.videoTracks.removeEventListener(["addtrack","removetrack","change"],this.ph),this.mh.Le(),this.gh.Le(),super.dispose()}constructor(t,i){var s,e;super(t,i),this.yh=void 0,this.mh=void 0,this.bh=void 0,this.gh=void 0,this.Zr=void 0,this.ph=()=>{const t=vu(this.js.videoTracks);t!==this.Zr&&(this.Zr&&this.Zr.removeEventListener("activequalitychanged",this.eh),this.Zr=t,t&&t.addEventListener("activequalitychanged",this.eh),this.eh())},this.eh=()=>{var t;const i=null==(t=this.Zr)?void 0:t.activeQuality,s=Boolean(i&&i.height>=720);this.player().toggleClass("theo-hd",s)},r(this.menu.el(),"theo-settings-control-menu"),d(this.menu.menuHeader.el(),t.localize("Settings")),this.controlText("Settings"),this.Re.$e=this.controlText(),this.yh=this.menu.addSubMenuItem({name:"QualityMenuItem"}),this.mh=new bu(this.yh,this.js,t);const n=null!=(e=null==i||null==(s=i.playerOptions)?void 0:s.playbackRates)?e:[];this.bh=this.menu.addSubMenuItem({name:"PlaybackRateMenuItem"}),this.gh=new Pu(this.bh,this.js,t,n),this.js.videoTracks.addEventListener(["addtrack","removetrack","change"],this.ph),this.ph()}}),Rt(),Rt(),Rt();var Mu=class extends yu{wh(t){const i=t.label;if(i)return i;const s=t.language;if(s){const t=Zi(s);if(t)return t.kh}return s||""}_h(){this.Pr=this.jh}Le(){this.jh.removeEventListener("addtrack",this.xh),this.jh.removeEventListener("removetrack",this.Sh),this.jh.removeEventListener("change",this.Th),super.Le()}constructor(t,i){super(t),this.jh=void 0,this.xh=t=>{const i=t.track;this.Ir(i),i.addEventListener("update",this.Ch)},this.Sh=t=>{const i=t.track;this.Ar(i),i.removeEventListener("update",this.Ch)},this.Th=t=>this._h(),this.Ch=()=>{for(const t of this.Pr)this.Ir(t)},this.jh=i,this.jh.addEventListener("addtrack",this.xh),this.jh.addEventListener("removetrack",this.Sh),this.jh.addEventListener("change",this.Th),this._h()}},Au=class extends Mu{Vr(t){const i=t.Fr,s=this.Hr.localize(this.wh(i));d(t.el(),s),t.el().setAttribute("aria-label",this.Hr.localize("Set the audio language to")+" "+s),t.selected(i.enabled)}$r(t){const i=t.Fr;for(const t of this.js.audioTracks)t!==i&&(t.enabled=!1);i.enabled=!0}Le(){this.Hr.off("languagechange",this.ne),super.Le()}constructor(t,i,s){super(t,i.audioTracks),this.js=void 0,this.Hr=void 0,this.ne=()=>{d(this.Er.menuHeader.el(),this.Hr.localize("Language"));for(const t of this.Dr)this.Vr(t)},this.js=i,this.Hr=s,d(this.Er.menuHeader.el(),this.Hr.localize("Language")),this.Hr.on("languagechange",this.ne)}};ta.registerComponent("audioTrackButton",class extends Na{buildCSSClass(){return"vjs-icon-audio theo-audio-track-control-button "+super.buildCSSClass()}dispose(){this.Ph.Le(),super.dispose()}constructor(t,i){super(t,i),this.Ph=void 0,this.minimumMenuItems=2,this.Ph=new Au(this.menu,this.js,t),this.controlText("Language"),this.Re.$e=this.controlText()}}),Rt(),Rt();var Iu=class extends Mu{Or(t){return!!super.Or(t)&&(!t.forced&&Dt(t.kind))}Br(t){const i=super.Br(t);r(i.el(),"theo-text-track-menu-item");const s=h.createElement("span");i.Mh=s;const e=h.createElement("div");e.className="theo-text-track-menu-item-toggle",i.Ah=e;const n=t=>this.Ih(t,i);i.Eh=n,e.addEventListener("click",n);const o=h.createElement("div");return o.className="theo-text-track-menu-item-toggle-slider",e.appendChild(o),i.el().appendChild(s),i.el().appendChild(e),i}Vr(t){const i=t,s=i.Fr,e=this.Hr.localize(this.wh(s));d(i.Mh,e),i.el().setAttribute("aria-label",this.Hr.localize("Set the subtitle language to")+" "+e),i.el().setAttribute("role","menuitemcheckbox"),i.selected(s.mode===Tt.tr)}Rr(t){const i=t;i.Ah.removeEventListener("click",i.Eh),super.Rr(t)}$r(t){const i=t.Fr;for(const t of this.js.textTracks)t!==i&&S(t.kind,i.kind)&&(t.mode=Tt.Dh);i.mode!==Tt.tr?i.mode=Tt.tr:i.mode=Tt.Dh}Ih(t,i){t.stopImmediatePropagation(),this.$r(i)}Le(){this.Hr.off("languagechange",this.ne),super.Le()}constructor(t,i,s){super(t,i.textTracks),this.js=void 0,this.Hr=void 0,this.ne=()=>{d(this.Er.menuHeader.el(),this.Hr.localize("Subtitles"));for(const t of this.Dr)this.Vr(t)},this.js=i,this.Hr=s,d(this.Er.menuHeader.el(),s.localize("Subtitles")),this.Hr.on("languagechange",this.ne)}};ta.registerComponent("subtitlesButton",class extends Na{buildCSSClass(){return"vjs-icon-subtitles theo-text-track-control-button "+super.buildCSSClass()}dispose(){this.Ph.Le(),super.dispose()}constructor(t,i){super(t,i),this.Ph=void 0,this.Ph=new Iu(this.menu,this.js,t),this.controlText("Subtitles"),this.Re.$e=this.controlText()}}),Rt();var Eu=ta.getComponent("playToggle"),Du=class extends(aa(Eu)){handleClick(t){this.js.muted||this.js.prepareWithUserAction(),super.handleClick(t)}handlePlay(t){super.handlePlay(t),this.controlText("Pause"),this.Re.$e=this.controlText()}handlePause(t){this.js.ended||(super.handlePause(t),this.controlText("Play"),this.Re.$e=this.controlText())}ne(){this.Re.$e=this.controlText()}dispose(){this.Re.Le(),this.js.removeEventListener("ended",this.Nh),super.dispose()}constructor(t,i){super(t,i),this.Re=void 0,this.Nh=()=>{this.controlText("Replay"),this.Re.$e=this.controlText()},this.controlText("Play"),this.Re=new Ea(this,this.controlText()),this.js.addEventListener("ended",this.Nh),this.on(t,"languagechange",this.ne),xi.ie.tn&&new ba(this.el())}};ta.registerComponent("playToggle",Du),Rt();var Nu=ta.getComponent("fullscreenToggle"),Fu=class extends(aa(Nu)){handleClick(t){this.js.prepareWithUserAction(),super.handleClick(t)}handleFullscreenChange(t){super.handleFullscreenChange(t),this.updateContent()}updateContent(){const t=this.player().isFullscreen()?"Exit fullscreen":"Fullscreen";this.controlText(t),this.Re.$e=this.controlText()}dispose(){this.Re.Le(),super.dispose()}constructor(t,i){super(t,i),this.Re=void 0,this.controlText("Fullscreen"),this.Re=new Ea(this,this.controlText()),xi.ie.tn&&new ba(this.el()),this.on(t,"languagechange",this.updateContent)}};ta.registerComponent("fullscreenToggle",Fu),Rt();var Bu=ta.getComponent("muteToggle"),$u=class extends(aa(Bu)){handleClick(t){this.js.muted&&!this.js.paused&&this.js.prepareWithUserAction(),super.handleClick(t)}update(t){super.update(t),this.ne()}ne(){const t=this.player().muted()?"Unmute":"Mute";this.controlText(t),this.Re.$e=this.controlText()}dispose(){this.Re.Le(),super.dispose()}constructor(t,i){super(t,i),this.Re=void 0,this.controlText("Mute"),this.Re=new Ea(this,this.controlText()),xi.ie.tn&&new ba(this.el()),this.on(t,"languagechange",this.ne),L&&(this.removeClass("vjs-hidden"),this.on(t,"loadstart",()=>{this.removeClass("vjs-hidden")}))}};ta.registerComponent("muteToggle",$u),Rt();var Ru=ta.getComponent("BigPlayButton"),Ou=class extends(aa(Ru)){createEl(){const t=super.createEl(),i=ta.createEl("div",{className:"theo-big-play-button-svg-container"});return i.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 150" fill="currentColor">\n <circle cx="75" cy="75" r="73" fill="#000" fill-opacity="0.2"></circle>\n <circle cx="75" cy="75" r="73" class="theo-play-svg-circle" stroke-width="4" stroke="currentColor" fill="none" transform="rotate(-90,75,75)"></circle>\n <g transform="translate(85,75) scale(0.5625) translate(-75,-75)">\n <path d="m 123.89639,85.432 c -12.865,9.167 -29.482997,19.402 -49.848997,30.7 -19.634,11.035 -36.851,19.7 -51.65,26 l -16.3990002,6.099 c -1.033,-4.433 -2,-11.002 -2.9,-19.7 -2.033,-17.333 -3.04999998,-36.466 -3.04999998,-57.399 0,-19.167 1.38199998,-37.081 4.14799998,-53.75 l 4.0019995,-19.1499994 17.3990007,5.849 c 15.068,5.9999994 31.401,14.5169994 49,25.5509994 18.631,11.666 34.616997,22.766 47.948997,33.3 6.663,5.3 11.463,9.383 14.396,12.25 l -13.046,10.25"></path>\n </g>\n</svg>',t.appendChild(i),t}buildCSSClass(){return"theo-primary-color "+super.buildCSSClass()}handleClick(t){this.js.muted||this.js.prepareWithUserAction(),super.handleClick(t),void 0!==this.js.vr&&"unavailable"!==this.js.vr.state&&(this.js.vr.useDeviceMotionControls=!0)}};ta.registerComponent("BigPlayButton",Ou),Rt();var Vu=/^([^#]*)#xywh=(\d+),(\d+),(\d+),(\d+)\s*$/;ta.registerComponent("MouseTimeDisplay",class extends tu{Fh(t){const i=t.track;"metadata"===i.kind&&"thumbnails"===i.label&&void 0===this.Bh&&(this.Bh=i,this.$h=i.src?xi.Rh(i.src).href:void 0,this.Bh.addEventListener(["addcue","removecue"],this.Oh),this.Vh())}Uh(t){t.track===this.Bh&&this.Lh()}createEl(){const t=super.createEl();return this.Hh=ta.createEl("img",{className:"theo-time-tooltip-thumbnail"}),this.zh=ta.createEl("canvas",{className:"theo-time-tooltip-thumbnail"}),t}update(t,i){super.update(t,i),this.keepTooltipsInside&&this.Wh(t)}Wh(t){let i;if(this.Bh&&this.Bh.cues){const s=function(t,i){let s=t[0];for(const e of t)if(e.startTime<=i)s=e;else if(i>=e.endTime)return s;return s}(this.Bh.cues,t);i=s&&s.content}if(i===this.qh)return;if(this.qh=i,ta.toggleClass(this.el(),"theo-time-tooltip-has-thumbnail",Boolean(i)),!i)return void this.Gh();const s=i.match(Vu);if(s){let[,t,i,e,n,r]=s;t=this.Xh(t);const h={Jh:Number(i),Qh:Number(e),Ci:Number(n),Pi:Number(r)};this.Yh(t,h)}else{const t=this.Xh(i);this.Yh(t)}}Vh(){j(this.Nn)||this.Wh(this.Nn)}Xh(t){return this.Bh&&this.$h?xi.Rh(t,this.$h).href:t}Yh(t,i){this.Hh&&(this.Hh.src!==t?(this.Hh.onload=()=>{this.Kh(i)},this.Hh.src="",this.Hh.src=t):this.Kh(i))}Kh(t){if(!this.zh||!this.Hh)return;const i=this.zh.getContext("2d");i&&(null!=t||(t={Jh:0,Qh:0,Ci:this.Hh.naturalWidth,Pi:this.Hh.naturalHeight}),this.zh.width=t.Ci,this.zh.height=t.Pi,i.drawImage(this.Hh,t.Jh,t.Qh,t.Ci,t.Pi,0,0,t.Ci,t.Pi),this.Zh(this.zh))}Zh(t){this.io||(si(this.tooltip,t),this.io=t),this.Bn()}Gh(){this.io&&(this.tooltip.removeChild(this.io),this.io=void 0,this.Bn())}Lh(){void 0!==this.Bh&&(this.Bh.removeEventListener(["addcue","removecue"],this.Oh),this.Bh=void 0),this.$h=void 0,this.Gh(),this.qh=void 0}dispose(){this.Lh(),super.dispose()}constructor(t,i){super(t,i),this.io=void 0,this.Bh=void 0,this.$h=void 0,this.so=t=>this.Fh(t),this.eo=t=>this.Uh(t),this.Oh=t=>this.Vh(),this.qh=void 0,this.showThumbnails=()=>{this.io&&this.io.hidden&&(this.io.hidden=!1,this.Bn())},this.hideThumbnails=()=>{!this.io||this.io.hidden||this.player().scrubbing()||(this.io.hidden=!0,this.Bn())},this.on(this.player().textTracks(),"addtrack",this.so),this.on(this.player().textTracks(),"removetrack",this.eo),Ut.te&&(this.on(t,"seeking",this.showThumbnails),this.on(t,"seeked",this.hideThumbnails))}}),Rt();var Uu=ta.getComponent("VolumeLevel");ta.registerComponent("VolumeLevel",class extends Uu{createEl(){const t=super.createEl();return t.className=this.buildCSSClass(),t}buildCSSClass(){return"theo-primary-color vjs-volume-level "+super.buildCSSClass()}}),Rt(),Rt();var Lu=ta.getComponent("Component"),Hu=class extends Lu{createEl(){const t=super.createEl();return t.className=this.buildCSSClass(),t}buildCSSClass(){return"theo-menu-container "+super.buildCSSClass()}};Hu.prototype.h=q({},Hu.prototype.h,{children:[]}),ta.registerComponent("controlBarMenuContainer",Hu);var zu=ta.getComponent("Player"),Wu=class extends zu{dispose(){const t=this.el(),i=this.contentEl(),s=t.parentNode,e=t.nextSibling;super.dispose(),Zt(i),this.Si&&s&&(e?s.insertBefore(t,e):s.appendChild(t)),h.body.removeEventListener("keydown",this.handleKeyPress),h.body.removeEventListener("click",this.handleClick)}constructor(t,i,s){super(t,i,s),this.handleKeyPress=t=>{9===t.which&&this.addClass("theo-probably-keyboard-focus")},this.handleClick=t=>{0===t.x&&0===t.y||this.removeClass("theo-probably-keyboard-focus")},h.body.addEventListener("keydown",this.handleKeyPress),h.body.addEventListener("click",this.handleClick)}};Wu.prototype.h=q({},zu.prototype.h,{children:["bigPlayButton","AdControlPanel","TopControlBar","mediaLoader","upNextContainer","posterImage","chromecastOverlay","upcomingAdNotificationText","controlBarMenuContainer","controlBar","textTrackDisplay","loadingSpinner","errorDisplay","textTrackSettings","xrCompass"]}),ta.registerComponent("Player",Wu),Rt(),Rt();var qu=ta.getComponent("Player"),Gu=qu.prototype.ns;qu.prototype.ns=function(t){if(!(this.H&&this.H.Ls&&this.H.Ls()))return Gu.call(this,t)};var Xu=qu.prototype.createEl;function Ju(t,i,s,e){const n=q({controls:!0,playbackRates:[.25,.5,1,1.25,1.5,2]},s);n.controlBar=q({progressControl:{keepTooltipsInside:!0}},n.controlBar);const h=n.techOrder||(n.techOrder=[]);-1===h.indexOf("THEOplayer")&&h.unshift("THEOplayer");(n.theoplayer||(n.theoplayer={})).player=t,s&&Qt(s.language)&&(n.languages=q({},n.languages,{[Qi]:s.language}),n.language=Qi),i.setAttribute("data-vjs-player","");const o=i.getAttribute("style"),a=ta(t.element,n,e);return a.ready(()=>{ca(a),function(t,i){if(i){if(i.ads){const s=i=>{const s="adbreakbegin"===i.type,e=i.adBreak.integration===F.no;la(t,s,e)};i.ads.addEventListener("adbreakbegin",s),i.ads.addEventListener("adbreakend",s)}if(i.uplynk){var s;const e=i=>{const s="adbreakbegin"===i.type;la(t,s,!1)};null==(s=i.uplynk)||s.ads.adBreaks.addEventListener("addadbreak",t=>{t.adBreak.addEventListener("adbreakbegin",e),t.adBreak.addEventListener("adbreakend",e)})}i.addEventListener("sourcechange",()=>{la(t,!1,!1)})}}(a,t),function(t){t.on("mouseleave",da)}(a)}),i.removeAttribute("data-vjs-player"),o?i.setAttribute("style",o):i.removeAttribute("style"),xi.ie.te&&(r(i,"theo-mobile"),Qu(i)),function(t){t.on("seeking",()=>{ri(t.el(),"vjs-ended")&&t.currentTime()!==t.duration()&&t.play()})}(a),a}function Qu(t){a.outerHeight>a.outerWidth?(ci(t,"theo-mobile-landscape"),r(t,"theo-mobile-portrait")):(ci(t,"theo-mobile-portrait"),r(t,"theo-mobile-landscape"))}qu.prototype.createEl=function(){const t=Xu.call(this),i=ta.createEl("div");for(i.className="theo-player-wrapper";t.firstChild;)i.appendChild(t.firstChild);return t.appendChild(i),this.S=i,t},Rt(),Rt(),Rt(),Rt();var Yu=ta.getComponent("Button");var Ku="THEOPiPCloseButton";ta.registerComponent(Ku,class extends Yu{buildCSSClass(){return"theo-close-button theo-pip-close"}handleClick(){this.ho.ro()}constructor(t,i){if(super(t,i),this.ho=void 0,this.controlText("Close Picture-in-Picture"),!function(t){return!!t&&Boolean(t.ho)}(i))throw new v("Invalid Picture-in-picture options.");this.ho=i.ho}});var Zu=class extends X{get oo(){return this.ao}get uo(){return this.t.ds()}co(){this.t.jn(K.lo,this.do),this.fo||this.t.jn(K.vo,this.po),this.t.mo.on("languagechange",this.ne)}yo(){var t;return"theo-pip-"+(null!=(t=this.bo)?t:"bottom-right")}wo(t){const i=this.ko;i&&!this.uo&&(this._o||this.jo(),this.xo(),r(i,"theo-pip"),r(i,this.yo()),this.ao=!0,this.So=t,this.To=!1,this.Co(new kt(N.PICTURE_IN_PICTURE)))}Po(t){const i=this.ko;i&&(this.Mo(),ci(i,"theo-pip"),ci(i,this.yo()),this.ao=!1,this.To=t,this.Ao=this.So,this.So=!1,this.Co(new kt(N.INLINE)))}jo(){if(!this._o){const t=this.t.mo;t.addChild(Ku,{ho:this});const i=h.createElement("div");i.className="theo-pip-overlay",this.Io=h.createElement("div"),this.Io.className="theo-pip-overlay-text",d(this.Io,t.localize("Video playing in Picture-in-Picture mode")),i.appendChild(this.Io),si(t.el(),i),this.Eo=i,this._o=!0}}Do(){this.No&&!this.Fo&&this.t.Bo&&(this.$o=this.t.Bo.Ro(gi,this.Oo),this.Fo=!0)}Vo(){this.$o&&this.t.Bo&&(this.t.Bo.Uo(this.$o),this.Fo=!1)}xo(){const t=this.t.mo.contentEl(),i=t.getBoundingClientRect(),s=h.documentElement.clientWidth,e=h.documentElement.clientHeight;t.style.top=i.top+"px",t.style.bottom=e-i.bottom+"px",t.style.right=s-i.right+"px",t.style.left=i.left+"px",t.style.width=i.width+"px",t.style.height=i.height+"px",t.style.position="fixed"}Mo(){const t=this.t.mo.contentEl();t.style.top="",t.style.bottom="",t.style.right="",t.style.left="",t.style.width="",t.style.height="",t.style.position=""}Lo(){ci(this.ko,"theo-pip"),this.oo&&this.bo&&ci(this.ko,"theo-pip-"+this.bo),this.Eo&&(Zt(this.Eo),this.Eo=void 0)}_n(){this.Lo(),this.Vo(),this.Ho(),this.t.yn(K.lo,this.do),this.t.yn(K.vo,this.po),this.t.mo.off("languagechange",this.ne),this.t=void 0}constructor(t,i,s){super(),this.zo=void 0,this.bo=void 0,this.fo=void 0,this.t=void 0,this.ko=void 0,this.Wo=!1,this.ao=!1,this.To=!1,this.So=!1,this._o=!1,this.ro=void 0,this.Fo=!1,this.$o=void 0,this.Eo=void 0,this.Io=void 0,this.Ao=!1,this.No=void 0,this.do=()=>{this.Wo=!0,this.No&&!this.oo&&this.$o&&this.zo&&this.$o.qo<=this.zo&&this.wo(!1)},this.po=()=>{this.fo||(this.Wo=!1,this.ro(),this.Po(!1))},this.ne=()=>{if(this.Io){const t=this.t.mo;d(this.Io,t.localize("Video playing in Picture-in-Picture mode"))}},this.Oo=t=>{!this.So&&this.No&&(j(t)||(this.zo&&t<=this.zo||this.Ao?this.ao||this.To||this.wo(!1):this.ao?this.Po(!1):this.To=!1))},this.zo=i.visibility,this.bo=i.position,this.fo=i.retainPresentationModeOnSourceChange,this.No=void 0!==this.zo,this.t=t,this.ko=t.Go,this.ro=s,this.co()}},tc=class extends jt{Xo(){const t=super.Xo();return t===N.INLINE&&this.Jo.oo?N.PICTURE_IN_PICTURE:t}Qo(t){return t===N.PICTURE_IN_PICTURE||super.Qo(t)}Yo(t){this.Ko=this.Zo,t===N.FULLSCREEN||t===N.NATIVE_PICTURE_IN_PICTURE?this.Jo.Vo():this.Jo.Do(),super.Yo(t)}ta(t){super.ta(t),t===N.PICTURE_IN_PICTURE?O(this.sa.ia(t=>this.ea(t))):t===N.FULLSCREEN?this.Jo.Po(!1):this.Jo.Po(!0)}async ea(t){D(t),await Promise.all([this.na(),this.ra.Po()]).catch(Ci),D(t),this.Jo.wo(!this.ha),this.Co(new kt(this.Zo)),this.ha=!1,this.oa=!1}_i(){this.oa||(this.Jo.oo&&this.aa.ds?this.Yo(N.FULLSCREEN):this.Ko!==N.PICTURE_IN_PICTURE||this.aa.ds?super._i():(this.ha=!0,this.Yo(N.PICTURE_IN_PICTURE)))}_n(){super._n(),this.Jo._n(),this.ua.yn(K.lo,this.ca),this.ua=void 0}constructor(t,i,s,e){super(i,s),this.ua=void 0,this.Jo=void 0,this.Ko=N.INLINE,this.ha=!1,this.ro=()=>{this.Zo===N.PICTURE_IN_PICTURE&&this.Yo(N.INLINE)},this.la=t=>{this.oa||(this.Zo!==N.PICTURE_IN_PICTURE||this.Jo.oo?this.Zo!==N.PICTURE_IN_PICTURE&&this.Jo.oo&&(this.ha=!0,this.Yo(N.PICTURE_IN_PICTURE)):this.Yo(N.INLINE))},this.ca=()=>{this.Xo()!==N.PICTURE_IN_PICTURE&&this.Xo()!==N.INLINE||this.Jo.Do(),this.ua.yn(K.lo,this.ca)},this.ua=t,this.Jo=new Zu(t,e.pip,this.ro),this.Jo.jn(bt.MODE_CHANGE,this.la),this.ua.jn(K.lo,this.ca)}};Rt();var ic=class extends X{get da(){return gt.fa(this.mo.el())||this.mo.supportsFullScreen()}get ds(){return this.mo.isFullscreen()||this.va}wo(){this.mo.requestFullscreen()}Po(){this.mo.exitFullscreen(),this.pa.Po()}_n(){this.Ho(),this.mo.off("fullscreenchange",this.ma),this.pa.yn(W.ga,this.ma),this.pa.yn(W.ya,this.Us),this.mo.isFullWindow&&this.mo.exitFullscreen()}constructor(t,i){super(),this.mo=void 0,this.pa=void 0,this.Hs=!1,this.va=!1,this.ba=!1,this.ma=()=>{if(this.ba)return;const t=this.Hs,i=this.ds;t!==i&&(this.Hs=i,this.Co(new ft))},this.wa=()=>{this.va=this.pa.ds,this.ma()},this.ka=()=>{this.ba||(this.mo.isFullWindow&&this.mo.supportsFullScreen()||this.va&&!this.mo.supportsFullScreen())&&(this.ba=!0,this.mo.exitFullscreen(),this.mo.requestFullscreen(),this.ba=!1,this.ma())},this.mo=t,this.pa=i,this.mo.on("fullscreenchange",this.ma),this.pa.jn(W.ga,this.wa),this.pa.jn(W._a,this.ka),this.pa.jn(W.ya,this.Us),this.ma()}};function sc(t){return class extends t{get Bo(){return this.ja}ds(){return this.xa.Xo()===N.FULLSCREEN}Sa(){return function(t,i){const s=g.create(t),e=i.mo;return dt(s,{get controls(){return e.controls()},set controls(t){e.controls(mt(t))},get presentation(){return i.xa.Ta},get presentationMode(){return i.xa.Xo()},set presentationMode(t){const s=H(t);s&&i.xa.Yo(s)},get ui(){return e},get visibility(){return i.Bo.Ta}})}(this.Ca,this)}_n(){super._n(),this.xa._n(),this.Pa._n(),this.mo.dispose(),this.ja._n()}Ma(t){this.mo.src(""),super.Ma(t)}constructor(t,i,s){super(i,s),this.Go=void 0,this.mo=void 0,this.Ca=void 0,this.ja=void 0,this.xa=void 0,this.Pa=void 0,this.Go=t,this.ja=new wi(t),this.Ca=super.Sa(),g.defineProperty(this.Ca,"constructor",{value:Ei}),this.mo=Ju(this.Ca,this.Go,s.ui),this.Pa=new ic(this.mo,this.Aa),this.xa=new tc(this,this.Pa,this.Ea.Ia(),s),this.xa.jn(bt.MODE_CHANGE,this.Us)}}}function ec(t){return(t=t||{}).position=function(t){switch(t){case"top-left":case"top-right":case"bottom-left":case"bottom-right":return t;default:return}}(t.position),t.visibility=function(t){if(zt(t)&&!j(t))return Oi(t,0,1)}(t.visibility),t.retainPresentationModeOnSourceChange=mt(t.retainPresentationModeOnSourceChange),t}function nc(t){const i=V(t);return i.ui=i.ui||{},void 0!==(null==t?void 0:t.width)&&void 0===i.ui.width&&(i.ui.width=t.width),void 0!==(null==t?void 0:t.height)&&void 0===i.ui.height&&(i.ui.height=t.height),void 0!==(null==t?void 0:t.fluid)&&void 0===i.ui.fluid&&(i.ui.fluid=t.fluid),i.pip=ec(i.pip),i}Rt(),Rt();var rc=Di(()=>{let t=sc(Mi());return t=function(t){let i=t;for(const t of ts)i=t(i);return i}(t),t});function hc(t,i){const s=nc(i),e=h.createElement("div");pi(e),t.appendChild(e);const n=new(rc())(t,e,s);n.Da=n;let r=n.Ta;return n.Na(),n.Fa(ji),g.defineProperty(r,"constructor",{value:hc}),r=ct(r),fi(n),function(t){for(const i of is)i(t)}(n),r}Rt(),Rt(),Rt();var oc="theo-cast-",ac=ta.getComponent("Button"),uc=class extends(aa(ac)){get Ba(){throw new v("$a")}get Ra(){return this.h.Ra}get Oa(){return this.h.Oa}buildCSSClass(){return oc+"button theo-"+this.Oa+"-button theo-controlbar-button "+super.buildCSSClass()}createEl(t,i,s){const e=super.createEl(),n=h.createElement("div");n.className="theo-button-icon-blur";const r=h.createElement("div");return r.className=oc+"svg-container",r.innerHTML=this.Ra,e.appendChild(n),e.appendChild(r),e}handleClick(t){var i;if(super.handleClick(t),this.Va===G.AVAILABLE)null==(i=this.Ba)||i.start();else if(this.Va===G.CONNECTED||this.Va===G.CONNECTING){var s;null==(s=this.Ba)||s.stop()}}Ua(t){ci(this.ko,"theo-"+this.Oa+"-"+this.Va),this.Va=t,r(this.ko,"theo-"+this.Oa+"-"+this.Va),this.ne()}ne(){this.La(this.Va),this.Re.$e=this.controlText()}La(t){t===G.CONNECTED?this.controlText("Stop Casting"):t===G.AVAILABLE?this.controlText("Start Casting"):t===G.CONNECTING?this.controlText("Connecting"):this.controlText("Unavailable")}constructor(t,i){var s;super(t,i),this.ko=void 0,this.Va=void 0,this.Re=void 0,this.Ha=void 0,this.ko=t.el(),this.Va=G.UNAVAILABLE,this.controlText("Unavailable"),this.Re=new Ea(this,this.controlText()),null==(s=this.Ba)||s.addEventListener("statechange",t=>{const i=t;this.Ua(i.state)}),xi.ie.tn&&(this.Ha=new ba(this.el())),this.Ua(this.Ba?this.Ba.state:G.UNAVAILABLE),this.on(t,"languagechange",this.ne)}},cc=0;function lc(){const t='\n <svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" fill="currentColor">\n <defs>\n <clipPath id="theo-chromecast-rings-mask-'+cc+'">\n <path d="M0-36h44V0H0z"/>\n </clipPath>\n </defs>\n <path class="theo-chromecast-outer" d="M2 10a4 4 0 0 1 4-4h36a4 4 0 0 1 4 4v28a4 4 0 0 1-4 4H28v-4h14V10H6v6H2z"/>\n <path class="theo-chromecast-inner" d="M10 14h28v20H26.74A26 26 0 0 0 10 17.26z"/>\n <g class="theo-chromecast-rings" fill="none" stroke="currentColor" stroke-width="4" transform="translate(2 42)" clip-path="url(#theo-chromecast-rings-mask-'+cc+')">\n <circle stroke="none" cx="0" cy="0" r="30" />\n <circle class="theo-chromecast-ring theo-chromecast-ring1" stroke-width="6" cx="0" cy="0" r="3" />\n <circle class="theo-chromecast-ring theo-chromecast-ring2" cx="0" cy="0" r="12" />\n <circle class="theo-chromecast-ring theo-chromecast-ring3" cx="0" cy="0" r="20"/>\n <path class="theo-chromecast-ring theo-chromecast-ring4" stroke-linecap="round" d="M0-20A20 20 0 0 1 20 0" />\n </g>\n </svg>';return cc++,t}ta.registerComponent("chromecastButton",class extends uc{get Ba(){var t;return null==(t=this.js.cast)?void 0:t.chromecast}constructor(t,i){super(t,q({},i,{Oa:"chromecast",Ra:lc()}))}}),Rt();var dc="theo-chromecast-",fc=ta.getComponent("Component"),vc=class t extends(aa(fc)){buildCSSClass(){return dc+"overlay "+super.buildCSSClass()}createEl(){const i=super.createEl();r(i,dc+"overlay");const s=ta.createEl("div",{className:dc+"status-icon",innerHTML:t.ICON_SVG}),e=ta.createEl("div",{className:dc+"status-info"});d(e,"Playing on");const n=ta.createEl("div",{className:dc+"status-title"}),h=ta.createEl("div",{className:dc+"status"});return this.Sr=n,h.appendChild(s),h.appendChild(e),h.appendChild(n),i.appendChild(h),i}dispose(){var t;null==(t=this.za)||t.removeEventListener("statechange",this.update),this.za=void 0,this.js.removeEventListener("play",this.update),super.dispose()}constructor(t,i){var s,e;super(t,i),this.za=void 0,this.update=()=>{this.za?(this.Sr&&d(this.Sr,this.za.receiverName||""),this.za.state===G.CONNECTED?this.show():this.hide()):this.hide()},this.za=null==(s=this.js.cast)?void 0:s.chromecast,null==(e=this.za)||e.addEventListener("statechange",this.update),this.js.addEventListener("play",this.update),this.update()}};vc.ICON_SVG='\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" fill="currentColor">\n <path d="M7 24v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm18-7H11v1.63c3.96 1.28 7.09 4.41 8.37 8.37H25V13zM7 16v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11zm20-7H9c-1.1 0-2 .9-2 2v3h2v-3h18v14h-7v2h7c1.1 0 2-.9 2-2V11c0-1.1-.9-2-2-2z"/>\n</svg>',ta.registerComponent("chromecastOverlay",vc),Rt(),Rt();ta.registerComponent("airplayButton",class extends uc{dispose(){var t,i;null==(t=this.js.ads)||t.removeEventListener("adbreakbegin",this.Wa),null==(i=this.js.ads)||i.removeEventListener("adbreakend",this.qa),this.js.removeEventListener("currentsourcechange",this.qa),super.dispose()}get Ba(){var t;return null==(t=this.js.cast)?void 0:t.airplay}constructor(t,i){var s,e;super(t,q({},i,{Oa:"airplay",Ra:'\n<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24">\n <path class="theo-cast-inner" d="M5 7h14v8H5z"/>\n <path d="M6 22h12l-6-6zM21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h4v-2H3V5h18v12h-4v2h4c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"/>\n</svg>'})),this.qa=()=>{this.enable()},this.Wa=t=>{"theoads"!==t.adBreak.integration&&"google-dai"!==t.adBreak.integration&&this.disable()},null==(s=this.js.ads)||s.addEventListener("adbreakbegin",this.Wa),null==(e=this.js.ads)||e.addEventListener("adbreakend",this.qa),this.js.addEventListener("currentsourcechange",this.qa)}}),Rt(),Rt(),Rt(),Rt();var pc={Default:"","Monospaced Serif":Ht.Ga,"Proportional Serif":Ht.Xa,"Monospaced Sans-Serif":Ht.Ja,"Proportional Sans-Serif":Ht.Qa},mc={White:"#ffffff",Yellow:"#ffff00",Green:"#00ff00",Cyan:"#00ffff",Blue:"#0000ff",Magenta:"#ff00ff",Red:"#ff0000",Black:"#000000"},gc=[50,75,100,150,200];function yc(t){return{label:t+"%",value:t}}function bc(t){return g.keys(t).map(i=>({label:i,value:t[i]}))}gc.map(function(t){return{label:t+"%",value:t/100+"em"}});var wc=gc.map(function(t){return{label:t+"%",value:t+"%"}}),kc=[25,50,75,100].map(yc),_c=[0,25,50,75,100].map(yc),jc=bc(mc),xc=bc(pc),Sc=bc({None:"none","Drop Shadow":"dropshadow",Raised:"raised",Depressed:"depressed",Uniform:"uniform"}),Tc=100,Cc="#000000",Pc="#FFFFFF",Mc="#000000";Rt();var Ac=class extends yu{Ya(){const t=this.Hr.localize(this.Ka);d(this.Za.subMenu.menuHeader.el(),t),this.Lr=h.createElement("span"),this.Lr.className="theo-settings-control-menu-item-title",d(this.Lr,t);const i=h.createElement("span");return i.className="theo-primary-color theo-settings-control-menu-item-value",r(this.Za.el(),"theo-subtitle-options-menu-item"),this.Za.el().appendChild(this.Lr),this.Za.el().appendChild(i),i}tu(t){const i=this.Nr(t);i&&this.iu(i)}su(){return this.Pr}$r(t){this.eu(t.Fr)}iu(t){for(const t of this.Er.menuItems)t.selected(!1);t?(t.selected(!0),this.nu(t.Fr.label)):this.nu("Custom")}nu(t){this.ru=t,d(this.hu,this.Hr.localize(t)),this.Za.parentMenu.ue()}Br(t){const i=super.Br(t);return r(i.el(),"theo-subtitle-options-menu-item"),this.Vr(i),i}Vr(t){const i=this.Hr.localize(t.Fr.label);d(t.el(),i);const s=this.Hr.localize("Set "+this.Ka+" to ")+i;t.el().setAttribute("aria-label",s)}Le(){this.Hr.off("languagechange",this.ne),super.Le()}constructor(t,i,s,e){super(t.subMenu),this.Za=void 0,this.Hr=void 0,this.Ka=void 0,this.Lr=void 0,this.hu=void 0,this.ru=void 0,this.eu=void 0,this.ne=void 0,this.Za=t,this.Hr=e,this.ru="",this.ne=()=>{const t=this.Hr.localize(this.Ka);d(this.Za.subMenu.menuHeader.el(),t),d(this.Lr,t),this.nu(this.ru);for(const t of this.Dr)this.Vr(t)},this.Ka=i,this.eu=s.ou,this.hu=this.Ya(),this.Pr=s.au,this.Hr.on("languagechange",this.ne)}};Rt();var Ic=class t{static uu(t,i,s,e){if(void 0===t&&void 0===i)return;return ni(void 0===t?s:t,void 0===i?e:i)}constructor(i){this.cu=void 0,this.lu=void 0,this.du=void 0,this.fu=void 0,this.vu=void 0,this.pu=void 0,this.mu=void 0,this.gu=void 0,this.yu=void 0,this.bu=void 0,this.wu=void 0,this.ku=void 0,this._u=void 0,this.ju=void 0,this.xu=void 0,this.Su=void 0,this.cu=i,this.gu=t=>{this.cu.fontFamily=t.value},this.yu=t=>{this.cu.fontSize=t.value},this.bu=i=>{this.lu=i.value,this.cu.fontColor=t.uu(this.du,this.lu,Pc,Tc)},this.wu=i=>{this.du=i.value,this.cu.fontColor=t.uu(this.du,this.lu,Pc,Tc)},this.ku=i=>{this.vu=i.value,this.cu.backgroundColor=t.uu(this.vu,this.fu,Cc,Tc)},this._u=i=>{this.fu=i.value,this.cu.backgroundColor=t.uu(this.vu,this.fu,Cc,Tc)},this.ju=i=>{this.mu=i.value,this.cu.windowColor=t.uu(this.mu,this.pu,Mc,Tc)},this.xu=i=>{this.pu=i.value,this.cu.windowColor=t.uu(this.mu,this.pu,Mc,Tc)},this.Su=t=>{this.cu.edgeStyle=t.value}}};Rt();var Ec=class{Tu(t,i){const s=this.Cu(t,i.su());s&&i.tu(s)}Cu(t,i){return Xi(i,i=>i.value===t)}Pu(t,i,s){let e,n;if(void 0===t)e=this.Cu(void 0,i.su()),n=this.Cu(void 0,s.su());else if(t){const r=function(t){let i=ii(t);i||(i=ii(t.slice(0,t.length-1).replace("rgb","rgba")+",1)"));i||(i=qt(Jt(t),1));if(!i){const s=t.charAt(0).toUpperCase()+t.toLowerCase().slice(1);i=qt(Jt(mc[s]),1)}return i}(t);if(r){const t=Kt(r),h=100*r.Mu;e=this.Cu(t,i.su()),n=this.Cu(h,s.su())}}e&&i.tu(e),n&&s.tu(n)}constructor(t,i){this.cu=void 0,this.Au=void 0,this.Iu=void 0,this.cu=t,this.Au=i,this.Iu=()=>{const t=this.cu.fontFamily;this.Tu(t,this.Au["Font family"]);const i=this.cu.fontColor;this.Pu(i,this.Au["Font color"],this.Au["Font opacity"]);const s=this.cu.fontSize;this.Tu(s,this.Au["Font size"]);const e=this.cu.backgroundColor;this.Pu(e,this.Au["Background color"],this.Au["Background opacity"]);const n=this.cu.windowColor;this.Pu(n,this.Au["Window color"],this.Au["Window opacity"]);const r=this.cu.edgeStyle;this.Tu(r,this.Au["Character edge style"])},this.cu.addEventListener("change",this.Iu),this.Iu()}};var Dc=class extends yu{Eu(){return{"Font family":{au:Nc(xc),ou:this.Du.gu},"Font color":{au:Nc(jc),ou:this.Du.wu},"Font opacity":{au:Nc(kc),ou:this.Du.bu},"Font size":{au:Nc(wc),ou:this.Du.yu},"Background color":{au:Nc(jc),ou:this.Du.ku},"Background opacity":{au:Nc(_c),ou:this.Du._u},"Window color":{au:Nc(jc),ou:this.Du.ju},"Window opacity":{au:Nc(_c),ou:this.Du.xu},"Character edge style":{au:Nc(Sc),ou:this.Du.Su}}}Nu(){this.Lr=h.createElement("span"),this.Lr.className="theo-settings-control-menu-item-title",this.Fu=h.createElement("span"),this.Fu.className="theo-primary-color theo-settings-control-menu-item-value",this.Yr.el().appendChild(this.Lr),this.Yr.el().appendChild(this.Fu),this.ne()}Br(t){const i=this.Er.addSubMenuItem();return i.Fr=t,this.Au[t]=new Ac(i,t,this.Bu[t],this.Hr),i}Vr(t){}$r(t){}Le(){this.Hr.off("languagechange",this.ne),this.$u.removeEventListener(["addtrack","removetrack"],this.Ru),super.Le()}constructor(t,i,s,e){super(t.subMenu),this.Yr=void 0,this.$u=void 0,this.Hr=void 0,this.Du=void 0,this.Ou=void 0,this.Bu=void 0,this.Au=void 0,this.Lr=void 0,this.Fu=void 0,this.Ru=void 0,this.ne=void 0,this.Yr=t,this.$u=i,this.Hr=e,this.Au={},this.Ru=()=>{this.$u.some(t=>Dt(t.kind))?this.Yr.show():this.Yr.hide()},this.ne=()=>{d(this.Er.menuHeader.el(),this.Hr.localize("Subtitle Options")),d(this.Lr,this.Hr.localize("Subtitle")),d(this.Fu,this.Hr.localize("Options")),this.Yr.el().setAttribute("aria-label",this.Hr.localize("Open the subtitle options menu"))},this.Du=new Ic(s),this.Bu=this.Eu(),this.Pr=g.keys(this.Bu),this.Nu(),this.Ou=new Ec(s,this.Au),this.Hr.on("languagechange",this.ne),this.$u.addEventListener(["addtrack","removetrack"],this.Ru),this.Ru()}};function Nc(t){const i=[{label:"Default",value:void 0}];for(const s of t)"Default"!==s.label&&i.push(s);return i}!function(t){is.push(t)}(function(t){const i=t.mo.controlBar.getChild("SettingsButton").menu,s=i.addSubMenuItem({name:"TextTrackOptionsMenuItem"}),e=new Dc(s,t.nt.Ta,t.Vu.Ta,t.mo);t.mo.on("dispose",()=>{i.removeMenuItem(s),s.dispose(),e.Le(),i.dispose()})}),Rt(),Rt(),Rt(),Rt(),Rt(),Rt();var Fc=.02,Bc=class{Uu(t){const i=t-this.Hu.Lu-20,s=t-this.Hu.Lu+20;if(0===this.Hu.bo)return;const e=this.Hu.t.currentProgramDateTime.valueOf();e>s?this.zu(this.Wu):e<i?this.zu(this.qu):this.zu(this.Gu)}Xu(t){const i=t-this.Hu.Lu/1e3-Fc,s=t-this.Hu.Lu/1e3+Fc;if(0===this.Hu.bo)return;const e=this.Hu.t.currentTime;e>s?this.zu(this.Wu):e<i?this.zu(this.qu):this.zu(this.Gu)}Ju(){this.Gu=this.ua.Qu,this.Wu=this.ua.Qu-.05,this.qu=this.ua.Qu+.05}zu(t){const i=this.Hu.t;if(i.playbackRate!==t&&0!==i.playbackRate){t>=.2&&t<=2.05?i.playbackRate=t:this.ua.Yu(this.Hu)}}Ku(){this.ua.yn(K.Zu,this.tc),this.ua.yn(K.sc,this.ec)}constructor(t,i){this.ua=void 0,this.Hu=void 0,this.Gu=1,this.Wu=1.05,this.qu=.95,this.tc=()=>{this.Ju()},this.ec=()=>{if(!this.ua.nc)return;const t=this.ua.nc.Lu,i=this.ua.rc,s=this.ua.hc;null!==s?this.Uu(s.valueOf()+t):this.Xu(i+t/1e3)},this.Hu=t,this.ua=i,this.ua.jn(K.Zu,this.tc),this.ua.jn(K.sc,this.ec)}},$c=class{get t(){return this.ua}get Ta(){var t;return null!=(t=this.oc)?t:this.oc=function(t){return{get label(){return t.Mh},get position(){return t.bo},set position(i){t.bo=i},get muted(){return t.ac},set muted(i){t.ac=i},get canResize(){return t.uc},get x(){return t.Jh},set x(i){t.Jh=i},get y(){return t.Qh},set y(i){t.Qh=i},get width(){return t.Ci},set width(i){t.Ci=i},get height(){return t.Pi},set height(i){t.Pi=i},get enabled(){return t.Rt},set enabled(i){t.Rt=i},get offset(){return t.Lu},set offset(i){t.Lu=i},remove(){t.cc()}}}(this)}get Mh(){return this.lc}get bo(){return this.fc.dc.indexOf(this)}set bo(t){this.fc.vc(this,t)}get ac(){return this.ua.muted}set ac(t){this.Rt&&(this.fc.mc=this,this.gc(t))}get uc(){return 0!==this.bo&&this.fc.yc===Zc.OVERLAY}get Jh(){return this.bc}set Jh(t){this.uc&&(this.wc||(this.wc=!0),this.bc=t>1-this.Ci?1-this.Ci:w.max(t,0),this.t.element.style.setProperty("left",100*this.bc+"%"))}get Qh(){return this.kc}set Qh(t){this.uc&&(this.wc||(this.wc=!0),this.kc=t>1-this.Pi?1-this.Pi:w.max(t,0),this.t.element.style.setProperty("top",100*this.kc+"%"))}get Ci(){return this._c}set Ci(t){this.uc&&this.jc(t)}get Pi(){return this.xc}set Pi(t){this.uc&&this.jc(t)}get Rt(){return this.Xe}set Rt(t){t!==this.Xe&&0!==this.bo&&(t?(O(this.fc.Yu(this)),this.fc.Sc(this),this.t.element.style.setProperty("display","block")):(this.t.pause(),this.t.element.style.setProperty("display","none")),this.Xe=t,this.fc.Tc(this))}get Cc(){return this.wc}set Cc(t){this.wc=t}get Pc(){return this.Mc}set Pc(t){this.Mc=t}get Lu(){return this.Ac}set Lu(t){this.Ac=yt(t),this.Ic(this.fc.rc,this.fc.hc)}Ec(t,i,s,e,n){!this.wc&&n&&(this.wc=!0),this.bc=t,this.kc=i,this._c=s,this.xc=e}gc(t){this.ua.muted=t}cc(){0!==this.bo&&this.fc.Dc(this)}Nc(){this.t.element.style.setProperty("top",100*this.kc+"%"),this.t.element.style.setProperty("left",100*this.bc+"%"),this.t.element.style.setProperty("width",100*this._c+"%")}jc(t){const i=this.bc+this._c,s=w.min(t,i),e=.9-this.kc,n=w.min(t,e),r=w.max(w.min(s,n),.1),h=this._c-r;this._c=r,this.xc=r,this.Jh+=h,this.t.element.style.setProperty("width",100*r+"%")}Ic(t,i){if(null!==i){const t=i.valueOf()-this.Lu;this.ua.currentProgramDateTime=new Date(t)}else this.ua.currentTime=t-this.Lu/1e3}Fc(t){const i=this.t.element.getElementsByClassName(Gc)[0],s=t?Jc:Xc;ci(i,t?Xc:Jc),r(i,s)}Ku(){this.Bc.Ku(),this.ua.element.remove(),this.ua.destroy()}constructor(t,i,s,e){this.lc=void 0,this.ua=void 0,this.fc=void 0,this.Bc=void 0,this.Ac=void 0,this.Xe=!0,this.wc=!1,this.Mc=0,this.oc=void 0,this._c=void 0,this.xc=void 0,this.bc=void 0,this.kc=void 0,this.lc=t,this.ua=i,this.fc=s,this.Bc=new Bc(this,s),this.Ac=null!=e?e:0,this._c=.2,this.xc=.2,this.bc=.76,this.kc=0}};Rt();var Rc=class{get multiViewPlayer(){return this.fc}get abr(){}get audioTracks(){return this.$c}get autoplay(){return this.fc.autoplay}set autoplay(t){this.fc.autoplay=t}get buffered(){return this.fc.buffered}get canvas(){}get clip(){return this.Rc.Ta}get currentProgramDateTime(){return null}get currentTime(){return this.fc.currentTime}set currentTime(t){this.fc.currentTime=t}get duration(){return this.fc.duration}get element(){return this.zs}get ended(){return this.fc.ended}get error(){}get errorObject(){return this.fc.errorObject}get latency(){}get loop(){return!1}get metrics(){}get millicast(){}get muted(){return this.fc.muted}set muted(t){this.fc.muted=t}get network(){}get paused(){return this.fc.paused}get playbackRate(){return this.fc.playbackRate}set playbackRate(t){this.fc.playbackRate=t}get played(){return this.fc.played}get poster(){return""}get preload(){return""}get presentation(){}get readyState(){return this.fc.readyState}get seekable(){return this.fc.seekable}get seeking(){return this.fc.seeking}get source(){}get src(){return"dummySource"}get textTrackStyle(){return this.Oc}get textTracks(){return this.Vc}addTextTrack(t){throw v("Not implemented")}get uid(){return 0}get videoHeight(){return 0}get videoTracks(){return this.$c}get videoWidth(){return 0}get volume(){return this.fc.volume}set volume(t){this.fc.volume=t}get views(){return this.fc.views}get visibility(){}get layout(){return this.fc.layout}set layout(t){this.fc.layout=t}play(){this.fc.play()}pause(){this.fc.pause()}stop(){this.fc.stop()}destroy(){this.fc.destroy()}prepareWithUserAction(){this.fc.prepareWithUserAction()}addEventListener(t,i){this.Uc.jn(t,i)}removeEventListener(t,i){this.Uc.yn(t,i)}setSource(t){}constructor(t,i){this.fc=void 0,this.Uc=new X,this.zs=void 0,this.Rc=void 0,this.$c=void 0,this.Vc=void 0,this.Oc=void 0,this.fc=t,this.zs=i,this.Rc=new Ct,this.$c=(new mi).Ta,this.Vc=(new bi).Ta,this.Oc=(new T).Ta,this.fc.addEventListener(["play","pause","seeking","seeked","timeupdate","ended","playing","waiting","sourcechange","readystatechange","loadedmetadata","loadeddata","canplay","canplaythrough","loadstart","progress","durationchange","volumechange","ratechange","error"],this.Uc.Us)}};Rt();var Oc=class extends Q{constructor(t){super(Kc.Lc),this.view=void 0,this.view=t}};Rt();var Vc=class extends Q{constructor(t,i){super(Kc.VIEW_POSITION_CHANGE),this.oldPosition=void 0,this.newPosition=void 0,this.oldPosition=t,this.newPosition=i}};Rt();var Uc=class extends Q{constructor(t){super(Kc.Hc),this.view=void 0,this.view=t}};Rt();var Lc=class extends Q{constructor(t){super(Kc.VIEW_CHANGE),this.view=void 0,this.view=t}};Rt();var Hc=class extends Q{constructor(t){super(Kc.zc),this.layout=void 0,this.layout=t}};Rt();var zc=class extends X{get rc(){return this.ua.rc}get Wc(){return this.ua.Wc}get lt(){return this.ua.qc}get Gc(){return this.ua.Gc}get Xc(){return this.ua.Xc}get Jc(){return this.ua.Jc}get Qc(){return!1}get Yc(){return!1}Ku(){this.Ho()}constructor(t){super(),this.ua=void 0,this.Kc=t=>{this.Us(new Ti(t.source))},this.Zc=t=>{this.Us(new Vi(t.currentTime))},this.tl=t=>{this.Us(new $i(t.currentTime))},this.il=t=>{this.Us(new Ki(t.currentTime))},this.sl=t=>{this.Us(new P(t.currentTime))},this.nl=t=>{this.Us(new at(t.currentTime,t.currentProgramDateTime))},this.rl=t=>{this.Us(new Ji(t.currentTime))},this.hl=t=>{this.Us(new hi(t.currentTime))},this.ol=t=>{this.Us(new Yt(t.currentTime))},this.al=t=>{this.Us(new Ot(t.currentTime,t.readyState))},this.cl=t=>{this.Us(new Wt(t.currentTime,this.Xc))},this.ll=t=>{this.Us(new Xt(t.currentTime,this.Xc))},this.dl=t=>{this.Us(new ti(t.currentTime,this.Xc))},this.fl=t=>{this.Us(new ei(t.currentTime,this.Xc))},this.vl=()=>{this.Us(new $t)},this.pl=t=>{this.Us(new Nt(t.currentTime))},this.ml=t=>{this.Us(new Hi(t.duration))},this.gl=t=>{this.Us(new I(this.rc,t.volume))},this.yl=t=>{this.Us(new qi(this.rc,t.playbackRate))},this.bl=t=>{this.Us(new E(t.errorObject))},this.wl=()=>{this.Us(new ft)},this.ua=t,this.ua.jn("sourcechange",this.Kc),this.ua.jn("play",this.Zc),this.ua.jn("pause",this.tl),this.ua.jn("seeking",this.il),this.ua.jn("seeked",this.sl),this.ua.jn("timeupdate",this.nl),this.ua.jn("ended",this.rl),this.ua.jn("playing",this.hl),this.ua.jn("waiting",this.ol),this.ua.jn("readystatechange",this.al),this.ua.jn("loadedmetadata",this.cl),this.ua.jn("loadeddata",this.ll),this.ua.jn("canplay",this.dl),this.ua.jn("canplaythrough",this.fl),this.ua.jn("loadstart",this.vl),this.ua.jn("progress",this.pl),this.ua.jn("durationchange",this.ml),this.ua.jn("volumechange",this.gl),this.ua.jn("ratechange",this.yl),this.ua.jn("error",this.bl),this.ua.jn("fullscreenchange",this.wl)}};Rt();var Wc=class{async kl(){const t=this.ua;if(!t._l||!t.Gc)return;const i=this.jl.mutedAutoplay;switch(await this.Sl.xl(t.ac)){case"all":t.ac||t.Tl(),t.Cl();break;case"muted":(t.ac||i===$.ALL)&&(t.ac=!0,t.Cl())}}_n(){this.Sl._n(),this.bn._n()}constructor(t,i,s){this.ua=void 0,this.jl=void 0,this.bn=void 0,this.Oc=void 0,this.Sl=void 0,this.ua=t,this.jl=s,this.Oc=new T,this.bn=new lt(i);const e=new vi(this.bn,this.Oc,s,1,[wt.Pl]);this.Sl=new St(e)}},qc=[Bt.Ml,Bt.Al,Bt.Il,Bt.El],Gc="theo-switch-audio-button",Xc="vjs-icon-volume-mute",Jc="vjs-icon-volume-high",Qc="theo-main-view",Yc="theo-layout-",Kc=function(t){return t.Lc="addview",t.Hc="removeview",t.VIEW_CHANGE="viewchange",t.VIEW_POSITION_CHANGE="viewpositionchange",t.zc="layoutchange",t}({}),Zc=function(t){return t.GALLERY="gallery",t.OVERLAY="overlay",t.SPOTLIGHT="spotlight",t}({}),tl=class extends X{get Ta(){var t;return null!=(t=this.oc)?t:this.oc=function(t){return{load:(i,s,e,n)=>t.Un(i,s,e,n),get views(){return t.dc.map(t=>t.Ta)},get mainVideoView(){var i;return null==(i=t.nc)?void 0:i.Ta},get mainAudioView(){var i;return null==(i=t.mc)?void 0:i.Ta},get ui(){return t.mo},get layout(){return t.yc},set layout(i){t.yc=i},get buffered(){return t.Dl},get currentTime(){return t.rc},set currentTime(i){t.rc=i},get autoplay(){return t._l},set autoplay(i){t._l=i},get duration(){return t.ct},get ended(){return t.Wc},get errorObject(){return t.qc},get muted(){return t.ac},set muted(i){t.ac=i},get paused(){return t.Gc},get playbackRate(){return t.Qu},set playbackRate(i){t.Qu=i},get played(){return t.Nl},get readyState(){return t.Xc},get seekable(){return t.Fl},get seeking(){return t.Jc},get volume(){return t.Bl},set volume(i){t.Bl=i},play(){t.Cl()},pause(){t.$l()},stop(){t.Rl()},destroy(){t.Ku(),t=null},requestFullscreen(i){t.Ol(i)},exitFullscreen(){t.na()},prepareWithUserAction(){t.Tl()},addEventListener(i,s){t.jn(i,s)},removeEventListener(i,s){t.yn(i,s)}}}(this)}get mo(){return this.Vl}get dc(){return this.Ul}get nc(){return this.Ll}get mc(){var t;return null!=(t=this.Hl)?t:this.Ll}set mc(t){if(this.Hl===t)return;const i=this.mc,s=null!=t?t:this.nc;i.t.removeEventListener(K.zl,this.Wl),i.Fc(!1),i.ac||(i.gc(!0),s.gc(!1)),s.t.addEventListener(K.zl,this.Wl),s.Fc(!0),this.Hl=t}get yc(){return this.ql}set yc(t){if(t!==this.ql){if("overlay"===this.yc)for(const t of this.dc)t.t.element.style.setProperty("left","auto"),t.t.element.style.setProperty("top","auto"),t.t.element.style.removeProperty("z-index");ci(this.zs,Yc+this.ql),this.ql=t,r(this.zs,Yc+this.ql),this.Nc(),this.Co(new Hc(t))}}get Dl(){if(0===this.dc.length)return _i.Gl()._s();return this.Xl().reduce((t,i)=>t.An(_i.Pn(i.t.buffered)),_i.Jl())._s()}get rc(){return this.Ll&&this.Ql?this.Ll.t.currentTime+this.Ll.Lu/1e3:0}set rc(t){this.Yl();const i=this.Xl();let s=null;if(null!==this.hc){s=this.hc;const i=t-this.rc;s.setSeconds(s.getSeconds()+i)}for(const e of i)e.Ic(t,s)}get hc(){if(!this.Ll)return null;return this.dc.every(t=>null!==t.t.currentProgramDateTime)?new Date(this.Ll.t.currentProgramDateTime.valueOf()+this.Ll.Lu):null}get _l(){return this.Kl}set _l(t){this.Kl=t,this.Zl.kl()}get ct(){if(0===this.dc.length)return NaN;let t=1/0;for(const i of this.Xl())t=w.min(i.t.duration,t);return t}get Wc(){return this.dc.some(t=>t.t.ended)}get lt(){return this.qc}get qc(){if(this.td)return this.td;for(const t of this.dc){const i=t.t.errorObject;if(void 0!==i)return i}}get ac(){var t,i;return null!=(i=null==(t=this.mc)?void 0:t.ac)&&i}set ac(t){this.mc&&this.mc.gc(t),this.Wl()}get Gc(){if(!this.dc.length)return!0;return this.Xl().some(t=>t.t.paused)}get Qu(){var t,i,s;return null!=(s=null!=(i=this.sd)?i:null==(t=this.Ll)?void 0:t.t.playbackRate)?s:1}set Qu(t){if(void 0!==this.sd)this.sd=t;else for(const i of this.dc)i.t.playbackRate=t;this.ed()}get Nl(){return this.dc.reduce((t,i)=>t.nd(_i.Pn(i.t.played)),_i.Gl())._s()}get Xc(){if(0===this.dc.length)return Lt.rd;let t=Lt.od;for(const i of this.Xl())i.t.readyState<t&&(t=i.t.readyState);return t}get Fl(){if(0===this.dc.length)return _i.Gl()._s();return this.Xl().reduce((t,i)=>t.An(_i.Pn(i.t.seekable)),_i.Jl())._s()}get Jc(){return this.dc.some(t=>t.t.seeking)}get Bl(){var t,i;return null!=(i=null==(t=this.mc)?void 0:t.t.volume)?i:1}set Bl(t){for(const i of this.dc)i.t.volume=t;this.Wl()}Un(t,i,s,e){if(this.ad)throw this.td;const n=this.dc.filter(i=>i.Mh===t)[0];if(n)return n.Ta;const r=yt(e),h=j(r)?void 0:r;return this.ud(t,i,s,h)}Cl(){if(!this.Ll||!this.Gc)return;this.Yl();const t=this.Xl();for(const i of t)i.t.play()}$l(){const t=this.Xl();for(const i of t)i.t.pause()}Rl(){for(let t=this.dc.length-1;t>=0;t--)this.Dc(this.dc[t]);this.Ll=void 0,this.Hl=void 0,this.td=void 0,this.ld&&(this.ld.dd(),this.ld=void 0),this.fd=!0,this.vd=!1,this.pd=!1,this.md=-1,this.gd=Lt.rd,this.yd=!1,this.sd=void 0,this.bd=!1,this.wd=-1,this.kd=!1,this._d=-1,this.Ql=!1,this.jd.ur(),this.Co(new Ti(void 0))}Ku(){for(let t=this.dc.length-1;t>=0;t--)this.Dc(this.dc[t]);this.Ho(),this.jd._n(),this.xd.Ku(),this.Sd.Ku(),this.Zl._n(),this.mo.dispose()}Ol(t){this.Co(new ft),this.zs.requestFullscreen(t).catch(Ci)}na(){this.Co(new ft),h.exitFullscreen().catch(Ci)}Tl(){for(const t of this.dc)t.t.prepareWithUserAction()}ud(t,i,s,e){const n=h.createElement("div");r(n,"theo-view"),this.zs.appendChild(n);const o=new(Mi())(n,this.jl).Ta;o.source=i;const a=new $c(t,o,this,e);if(s){const t=h.createElement("div");t.className="theo-view-description";const i=h.createElement("span");i.textContent=s,t.appendChild(i),n.appendChild(t),a.t.addEventListener("dimensionchange",()=>{this.Td(t)})}return this.Cd(a),this.dc.push(a),1===this.dc.length?(this.Ll=a,this.Pd(this.Ll),r(this.Ll.t.element,Qc)):(this.Md(o),0!==this.rc&&O(this.Yu(a,!0))),this.Nc(),this.Co(new Oc(a.Ta)),a.Ta}Xl(){return this.dc.filter(t=>t.Rt)}Ad(){return this.dc.filter(t=>t.Rt&&t!==this.Ll)}Md(t){t.volume=this.Ll.t.volume,t.muted=!0,t.playbackRate=this.Ll.t.playbackRate}Cd(t){t.Pc=this.dc.length;const i=t.t.element;i.addEventListener("dblclick",()=>{this.Id(t)}),i.addEventListener("touchend",i=>{this.Ed>=i.timeStamp?(i.preventDefault(),this.Id(t),this.Ed=0):this.Ed=i.timeStamp+500});const s=h.createElement("div"),e=0===this.dc.length?Jc:Xc;s.className="theo-primary-color "+Gc+" "+e,s.addEventListener("click",()=>{this.mc=t}),s.addEventListener("touchend",()=>{this.mc=t}),i.appendChild(s);const n=h.createElement("div");n.className="theo-primary-color theo-disable-button vjs-icon-close",n.addEventListener("click",()=>{t.Rt=!1}),n.addEventListener("touchend",()=>{t.Rt=!1}),i.appendChild(n),this.Dd(t,i),this.Nd(t),this.Fd(t)}Dd(t,i){const s=h.createElement("div");let e=0;const n=i=>{if(this.Bd=!0,this.Sc(t),i.preventDefault(),"touchstart"===i.type){e=i.changedTouches[0].clientX,h.addEventListener("touchmove",r),h.addEventListener("touchend",o),h.addEventListener("touchcancel",o)}else{e=i.x,h.addEventListener("mousemove",r),h.addEventListener("mouseup",o)}},r=i=>{let s;if("touchmove"===i.type){s=i.changedTouches[0].clientX}else{s=i.x}const n=e-s,r=t.t.element.parentElement.clientWidth,h=(t.t.element.clientWidth+n)/r;t.Ci=h,t.Pi=h,e=s},o=t=>{this.Bd=!1,"mouseup"===t.type?(h.removeEventListener("mousemove",r),h.removeEventListener("mouseup",o)):(h.removeEventListener("touchmove",r),h.removeEventListener("touchend",o),h.removeEventListener("touchcancel",o))};s.addEventListener("mousedown",n),s.addEventListener("touchstart",n),s.className="theo-resize-button theo-primary-color vjs-icon-resize-handle-sw",i.appendChild(s)}Td(t){const i=t.parentElement.clientWidth/100,s=w.min(40,5.23*i);t.style.fontSize=s+"px"}Nd(t){const i=t.t.element,s=i.parentElement;let e={x:0,y:0};const n=i=>{if(!this.Bd&&t.uc)if(this.Sc(t),i.preventDefault(),"touchstart"===i.type){const t=i;e.x=t.changedTouches[0].clientX,e.y=t.changedTouches[0].clientY,h.addEventListener("touchmove",r),h.addEventListener("touchend",o),h.addEventListener("touchcancel",o)}else{const t=i;e.x=t.x,e.y=t.y,h.addEventListener("mousemove",r),h.addEventListener("mouseup",o)}},r=n=>{let r;if("touchmove"===n.type){const t=n;r={x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY}}else{const t=n;r={x:t.x,y:t.y}}const h=r.x-e.x,o=r.y-e.y,a=i.offsetLeft,u=s.clientWidth;t.Jh=(a+h)/u;const c=s.offsetHeight,l=i.offsetTop;t.Qh=(l+o)/c,e=r},o=t=>{"mouseup"===t.type?(h.removeEventListener("mouseup",o),h.removeEventListener("mousemove",r)):(h.removeEventListener("touchmove",r),h.removeEventListener("touchend",o),h.removeEventListener("touchcancel",o))};i.addEventListener("mousedown",n),i.addEventListener("touchstart",n)}Sc(t){for(const i of this.dc)i.Pc>t.Pc&&(i.Pc-=1,i.t.element.style.setProperty("z-index",""+i.Pc));t.Pc=this.dc.length,t.t.element.style.setProperty("z-index",""+t.Pc)}Yl(){if(void 0!==this.sd)return;this.sd=this.Qu;const t=this.Xl();for(const i of t)i.t.playbackRate=0}$d(){if(void 0===this.sd)return;if(this.Jc||this.Xc<Lt.Rd){if(this.Ll&&!this.Ql){this.Ql=!0;for(const t of this.Ad())this.Ll.Lu!==t.Lu&&t.Ic(this.rc,this.hc)}return}const t=this.Xl();for(const i of t)i.t.playbackRate=this.sd;this.sd=void 0,this.Ql=!0}Tc(t){t.Rt||t!==this.Hl||(this.mc=void 0),this.Co(new Lc(t.Ta)),this.Nc()}async Yu(t,i){void 0===i&&(i=!1),this.Yl();const s=t.t;i&&(this.ld=new tt,s.addEventListener(K.vo,this.Is),await this.ld.Od,s.removeEventListener(K.vo,this.Is)),s.readyState===Lt.rd&&(this.bd=!0,s.play()),this.Gc?s.pause():s.play(),t.Ic(this.rc,this.hc)}Nc(){const t=this.Xl();if(!t.length)return;let i=0;switch(this.yc){case"spotlight":{t.length>1?this.zs.style.gridTemplateColumns="80% 20%":this.zs.style.gridTemplateColumns="100%";let s=1/0;for(const e of t)if(i>=s+1)e.Rt=!1;else if(e.t.element.style.setProperty("width","100%"),i++,2===i){const i=e.t.element.clientHeight,n=e.t.element.parentElement.clientHeight,r=w.floor(n/i);s=w.min(t.length-1,r),this.zs.style.gridTemplateRows="repeat("+s+", 1fr)"}break}case"overlay":{let s=0;for(i=1;i<t.length;i++){const e=t[i];if(i>=5)e.Rt=!1;else{if(!e.Cc){const t=.04+.24*s;e.Ec(e.Jh,t,e.Ci,e.Pi,!1),this.Sc(e),s++}e.t.element.style.setProperty("z-index",""+e.Pc),e.Nc()}}break}case"gallery":{const s=t.length,e=w.ceil(w.sqrt(s));for(const s of t)i>=16?s.Rt=!1:(s.t.element.style.setProperty("width",100/e+"%"),i++);break}}}vc(t,i){const s=i>=0?w.min(w.floor(i),this.dc.length-1):0,e=t.bo,n=w.min(e,s),r=w.max(e,s),h=0===n;if(!(!this.dc[n].Rt||!this.dc[r].Rt)||!h){if("overlay"===this.yc){const t=this.dc[r],i=this.dc[n],s=t.Jh,e=t.Qh,h=t.Ci,o=t.Pi,a=i.Cc||t.Cc;t.Ec(i.Jh,i.Qh,i.Ci,i.Pi,a),[this.dc[n],this.dc[r]]=[this.dc[r],this.dc[n]],i.Ec(s,e,h,o,a)}else[this.dc[n],this.dc[r]]=[this.dc[r],this.dc[n]];h&&this.Vd(this.dc[0]),this.Co(new Vc(e,s))}}Dc(t){t===this.Hl&&(this.mc=void 0),t.Ku(),Yi(this.dc,t),this.Nc(),this.Co(new Uc(t.Ta))}Id(t){this.Wc||0===this.Nl.length||this.Ll===t||"gallery"===this.ql||this.vc(t,0)}Vd(t,i){void 0===i&&(i=!1);let s=!1;const e=this.Ll;this.Ll=t,t.Cc=!1,this.Ud(e),ci(e.t.element,Qc),this.Hl||(s=e.ac,e.gc(!0),e.Fc(!1),t.Fc(!0),i&&!s?this.Co(new I(this.rc,0)):t.gc(s)),this.Sc(e),r(this.Ll.t.element,Qc),this.Pd(this.Ll),"overlay"===this.yc&&this.Nc()}Fd(t){t.t.addEventListener(K.Ld,this.Hd),t.t.addEventListener(K.zd,this.Nh),t.t.addEventListener(K.lo,this.Wd),t.t.addEventListener(K.qd,this.Gd),t.t.addEventListener(K.Xd,this.Ye),t.t.addEventListener(K.Jd,this.Qd),t.t.addEventListener(K.Yd,this.Kd),t.t.addEventListener(Bt.Zd,this.tf),t.t.addEventListener(Pt.ya,this.As)}Pd(t){t.t.addEventListener(K.if,this.Us),t.t.addEventListener(K.Zu,this.ed),t.t.addEventListener(K.sc,this.sf),this.Hl||t.t.addEventListener(K.zl,this.Wl)}Ud(t){t.t.removeEventListener(K.if,this.Us),t.t.removeEventListener(K.Zu,this.ed),t.t.removeEventListener(K.sc,this.sf),this.Hl||t.t.removeEventListener(K.zl,this.Wl)}constructor(t,i,s){super(),this.ef=void 0,this.zs=void 0,this.jl=void 0,this.Vl=void 0,this.Ul=[],this.Ll=void 0,this.Hl=void 0,this.ql="gallery",this.Bd=!1,this.td=void 0,this.ld=void 0,this.oc=void 0,this.nf=void 0,this.Sd=void 0,this.rf=void 0,this.ad=!1,this.fd=!0,this.vd=!1,this.pd=!1,this.md=-1,this.gd=Lt.rd,this.yd=!1,this.Ed=0,this.sd=void 0,this.bd=!1,this.Kl=!1,this.wd=-1,this.kd=!1,this._d=-1,this.Ql=!1,this.xd=void 0,this.jd=void 0,this.Zl=void 0,this.hf=t=>{this.$d(),B(()=>this.Us(t))},this.af=t=>{this.Yl(),this.Us(t)},this.Is=()=>{var t;null==(t=this.ld)||t.uf(),this.ld=void 0},this.ed=()=>{const t=this.Qu;this._d!==t&&(this._d=t,this.Us(new qi(this.rc,t)))},this.Wl=()=>{const t=this.Bl,i=this.ac;this.wd===t&&this.kd===i||(this.wd=t,this.kd=i,this.Us(new I(this.rc,t)))},this.sf=t=>{(this.Xc>Lt.cf||this.Jc)&&this.Us(t)},this.Hd=t=>{this.$d(),this.Jc||(this.vd=!1,this.Us(t))},this.Kd=t=>{const i=this.ct;this.md!==i&&(this.md=i,this.Us(t))},this.As=t=>{this.Us(t)},this.Wd=t=>{if(this.fd){if(this.bd)return void(this.bd=!1);this.fd=!1,this.pd=!1,this.Us(t)}},this.Ye=t=>{this.vd||(this.vd=!0,this.Us(t))},this.Gd=t=>{!this.fd&&this.Gc&&(this.fd=!0,this.Us(t))},this.Nh=t=>{this.pd||(this.pd=!0,this.Us(t))},this.Qd=t=>{this.yd||(this.yd=!0,this.Us(t))},this.tf=t=>{const i=this.Xc;this.gd!==i&&(this.gd=i,this.Us(t))},this.lf=async()=>{try{await this.rf.df([Y.MULTIVIEW])}catch(t){this.Rl(),this.td=ht(t,st.LICENSE_INVALID_FEATURE),this.ad=!0,this.Co(new li(this.td))}},this.ef=t,this.zs=i,this.jl=s;const e=xi.ff,n=new It,h=new et("10.11.1",e,n),o=new it(s.isEmbeddable,"10.11.1",Z());if(this.rf=new Mt(e,o,h,n,s,Z()),this.rf.vf().then(this.lf),this.nf=new Rc(this.Ta,this.zs),this.Vl=Ju(this.nf,this.ef,s.ui),r(this.zs,Yc+this.ql),xi.ie.te){const t=this.Vl.el();r(t,"theo-mobile"),Qu(t)}this.Sd=new zc(this),this.xd=new Vt(this.Sd),this.xd.jn(Bt.pf,this.hf),this.jd=new ai(this,!0),this.jd.jn(qc,this.Us),this.jd.jn(Bt.mf,this.af),this.Zl=new Wc(this,t,s)}};function il(t,i){var s;const e=nc(q({},i||{},{allowNativeFullscreen:!1,ui:q({},(null==i?void 0:i.ui)||{},{userActions:q({},(null==i||null==(s=i.ui)?void 0:s.userActions)||{},{click:!1})}),abr:q({},(null==i?void 0:i.abr)||{},{restrictToPlayerSize:!0})})),n=h.createElement("div");pi(n),t.appendChild(n);let r=new tl(t,n,e).Ta;return g.defineProperty(r,"constructor",{value:il}),r=ct(r),r}Rt(),Rt();var sl="vjs-selected",el=class extends yu{Vr(t){const i=t.Fr,s=this.Hr.localize(i.label);d(t.Mh,s),t.el().setAttribute("aria-label",this.Hr.localize("Enable/disable")+" "+s),t.el().setAttribute("role","menuitemcheckbox"),t.selected(i.enabled)}Br(t){const i=super.Br(t);r(i.el(),"theo-multi-view-menu-item"),2===this.Dr.length&&r(i.el(),"theo-multi-view-menu-item-position-zero");const s=h.createElement("span");i.Mh=s;const e=h.createElement("div");e.className="theo-multi-view-menu-item-toggle",i.Ah=e;const n=t=>this.Ih(t,i);i.Eh=n,e.addEventListener("click",n);const o=h.createElement("div");return o.className="theo-multi-view-menu-item-toggle-slider",e.appendChild(o),i.el().appendChild(s),i.el().appendChild(e),this.gf.before(i.el()),i}yf(){const t=this.Er.addMenuItem().el();r(t,"theo-multi-view-menu-item"),r(t,"theo-multi-view-menu-layout-select");const i=h.createElement("button");i.className="vjs-icon-view-grid",i.addEventListener("click",()=>{this.xs.layout=Zc.GALLERY}),t.appendChild(i),this.bf=i;const s=h.createElement("button");s.className="vjs-icon-view-spotlight",s.addEventListener("click",()=>{this.xs.layout=Zc.SPOTLIGHT}),t.appendChild(s),this.wf=s;const e=h.createElement("button");return e.className="vjs-icon-multi-view",e.addEventListener("click",()=>{this.xs.layout=Zc.OVERLAY}),t.appendChild(e),this.kf=e,t}Ih(t,i){t.stopImmediatePropagation(),this.$r(i)}$r(t){const i=t.Fr;for(const t of this.xs.views)t===i&&(t.enabled=!t.enabled);this.Vr(t)}Rr(t){t.Ah.removeEventListener("click",t.Eh),super.Rr(t)}constructor(t,i,s){super(t),this.xs=void 0,this.Hr=void 0,this.gf=void 0,this.bf=void 0,this.kf=void 0,this.wf=void 0,this._f=t=>{this.Ir(t.view)},this.jf=t=>{this.Ar(t.view)},this.xf=t=>{const i=t.oldPosition,s=t.newPosition,e=w.max(i,s),n=w.min(i,s),o=h.getElementsByClassName("theo-multi-view-menu-item");o[e].before(o[n]),o[n].before(o[e]),0===n&&(ci(o[e],"theo-multi-view-menu-item-position-zero"),r(o[n],"theo-multi-view-menu-item-position-zero"))},this.Sf=()=>{const t=this.xs.layout;di(this.bf,sl,t===Zc.GALLERY),di(this.wf,sl,t===Zc.SPOTLIGHT),di(this.kf,sl,t===Zc.OVERLAY)},i.views&&(this.xs=i,this.Hr=s,this.xs.multiViewPlayer.addEventListener(Kc.Lc,this._f),this.xs.multiViewPlayer.addEventListener(Kc.Hc,this.jf),this.xs.multiViewPlayer.addEventListener(Kc.VIEW_CHANGE,this._f),this.xs.multiViewPlayer.addEventListener(Kc.VIEW_POSITION_CHANGE,this.xf),this.xs.multiViewPlayer.addEventListener(Kc.zc,this.Sf),d(this.Er.menuHeader.el(),this.Hr.localize("MultiView")),this.gf=this.yf(),this.Sf())}};ta.registerComponent("multiViewButton",class extends Na{buildCSSClass(){return"vjs-icon-view-grid "+super.buildCSSClass()}dispose(){this.Ph.Le(),super.dispose()}constructor(t,i){super(t,i),this.Ph=void 0,this.minimumMenuItems=3,this.Ph=new el(this.menu,this.js,t),this.controlText(t.localize("Views")),this.Re.$e=this.controlText()}});export{Ei as ChromelessPlayer,nt as ErrorCategory,st as ErrorCode,il as MultiViewPlayer,hc as Player,U as cache,R as cast,Ri as features,zi as players,Gi as registerContentProtectionIntegration,Fi as utils,Ui as version,ta as videojs};
|
|
40
|
+
var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:void 0!==a?a:"undefined"!=typeof global?global:this,a=s.window,h=s.document,u=(s.location,s.navigator,s.setTimeout),c=s.clearTimeout,v=(s.setInterval,s.clearInterval,s.Error),p=s.TypeError,m=s.SyntaxError,g=s.Object,w=s.Math,k=s.parseInt,_=s.parseFloat,j=s.isNaN,x=s.Uint8Array;s.Worker,s.WorkerGlobalScope,s.XMLHttpRequest;import{$ as S,$a as T,A as C,Aa as P,Ab as M,B as A,Ba as I,Bb as E,C as D,Ca as N,Cb as F,D as B,Da as $,Db as R,E as O,Ea as V,Eb as U,F as L,Fa as H,G as z,Ga as W,H as q,Ha as G,I as X,Ia as J,J as Q,Ja as Y,K,Ka as Z,L as tt,La as it,M as st,Ma as et,N as nt,Na as rt,O as ht,Oa as ot,P as at,Pa as ut,Q as ct,Qa as lt,R as dt,Ra as ft,S as vt,Sa as pt,T as mt,Ta as gt,U as yt,Ua as bt,V as wt,Va as kt,W as _t,Wa as jt,X as xt,Xa as St,Y as Tt,Ya as Ct,Z as Pt,Za as Mt,_ as At,_a as It,a as Et,aa as Dt,ab as Nt,b as Ft,ba as Bt,bb as $t,c as Rt,ca as Ot,cb as Vt,d as Ut,da as Lt,db as Ht,e as zt,ea as Wt,eb as qt,f as Gt,fa as Xt,fb as Jt,g as Qt,ga as Yt,gb as Kt,h as Zt,ha as ti,hb as ii,i as si,ia as ei,ib as ni,j as ri,ja as hi,jb as oi,k as r,ka as ai,kb as ui,l as ci,la as li,lb as d,m as di,ma as fi,mb as vi,n as pi,na as mi,nb as gi,o as yi,oa as bi,ob as wi,p as ki,pa as _i,pb as ji,q as xi,qa as Si,qb as Ti,r as Ci,ra as Pi,rb as Mi,s as Ai,sa as Ii,sb as Ei,t as Di,ta as Ni,tb as Fi,u as Bi,ua as $i,ub as Ri,v as Oi,va as Vi,vb as Ui,w as Li,wa as Hi,wb as zi,x as Wi,xa as qi,xb as Gi,y as Xi,ya as Ji,yb as Qi,z as Yi,za as Ki,zb as Zi}from"./THEOplayer.common.esm.js";Rt(),Rt(),Rt(),Rt();var ts=[];var is=[];Rt(),Rt(),Rt(),Rt();var ss=void 0!==a?a:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},es=void 0!==h?h:{createElement:function(){}};function ns(t,i){return i||(i=t.slice(0)),t.raw=i,t}var rs=1;function hs(){return rs++}var os,as=g.prototype.toString,us=function(t){return ds(t)?g.keys(t):[]};function cs(t,i){us(t).forEach(function(s){return i(t[s],s)})}function ls(t){for(var i=arguments.length,s=new Array(i>1?i-1:0),e=1;e<i;e++)s[e-1]=arguments[e];return g.assign?g.assign.apply(g,[t].concat(s)):(s.forEach(function(i){i&&cs(i,function(i,s){t[s]=i})}),t)}function ds(t){return!!t&&"object"==typeof t}function fs(t){return ds(t)&&"[object Object]"===as.call(t)&&t.constructor===g}var vs=function(t,i,s){void 0===s&&(s=!!de&&de<11),"log"!==t&&i.unshift(t.toUpperCase()+":"),os.history.push(i),i.unshift("VIDEOJS:");var e=ss.console&&ss.console[t];e&&(s&&(i=i.map(function(t){if(ds(t)||Array.isArray(t))try{return JSON.stringify(t)}catch(i){return String(t)}return String(t)}).join(" ")),e.apply?e[Array.isArray(i)?"apply":"call"](ss.console,i):e(i))};(os=function(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];vs("log",i)}).history=[],os.error=function(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];return vs("error",i)},os.warn=function(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];return vs("warn",i)};var ps=os,ms="undefined"!=typeof globalThis?globalThis:void 0!==a?a:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function gs(t){return t.replace(/\n\r?\s*/g,"")}var ys,bs=function(t){for(var i="",s=0;s<arguments.length;s++)i+=gs(t[s])+(arguments[s+1]||"");return i};function ws(t){return"string"==typeof t&&/\S/.test(t)}function ks(t){if(/\s/.test(t))throw new v("class has illegal whitespace characters")}function _s(){return es===ss.document&&void 0!==es.createElement}function js(t){return ds(t)&&1===t.nodeType}function xs(t){return function(i,s){if(!ws(i))return es[t](null);ws(s)&&(s=es.querySelector(s));var e=js(s)?s:es;return e[t]&&e[t](i)}}function Ss(t,i,s,e){void 0===t&&(t="div"),void 0===i&&(i={}),void 0===s&&(s={});var n=es.createElement(t);return g.getOwnPropertyNames(i).forEach(function(t){var s=i[t];-1!==t.indexOf("aria-")||"role"===t||"type"===t?(ps.warn(bs(ys||(ys=ns(["Setting attributes in the second argument of createEl()\n has been deprecated. Use the third argument instead.\n createEl(type, properties, attributes). Attempting to set "," to ","."])),t,s)),n.setAttribute(t,s)):"textContent"===t?Ts(n,s):n[t]=s}),g.getOwnPropertyNames(s).forEach(function(t){n.setAttribute(t,s[t])}),e&&Ws(n,e),n}function Ts(t,i){return void 0===t.textContent?t.innerText=i:t.textContent=i,t}function Cs(t,i){i.firstChild?i.insertBefore(t,i.firstChild):i.appendChild(t)}var Ps={},Ms="vdata"+(new Date).getTime();function As(t){var i=t[Ms];return i||(i=t[Ms]=hs()),Ps[i]||(Ps[i]={}),Ps[i]}function Is(t){var i=t[Ms];return!!i&&!!g.getOwnPropertyNames(Ps[i]).length}function Es(t){var i=t[Ms];if(i){delete Ps[i];try{delete t[Ms]}catch(i){t.removeAttribute?t.removeAttribute(Ms):t[Ms]=null}}}function Ds(t,i){return ks(i),t.classList?t.classList.contains(i):function(t){return new RegExp("(^|\\s)"+t+"($|\\s)")}(i).test(t.className)}function Ns(t,i){return t.classList?t.classList.add(i):Ds(t,i)||(t.className=(t.className+" "+i).trim()),t}function Fs(t,i){return t.classList?t.classList.remove(i):(ks(i),t.className=t.className.split(/\s+/).filter(function(t){return t!==i}).join(" ")),t}function Bs(t,i,s){var e=Ds(t,i);if("function"==typeof s&&(s=s(t,i)),"boolean"!=typeof s&&(s=!e),s!==e)return s?Ns(t,i):Fs(t,i),t}function $s(t,i){g.getOwnPropertyNames(i).forEach(function(s){var e=i[s];null==e||!1===e?t.removeAttribute(s):t.setAttribute(s,!0===e?"":e)})}function Rs(t){var i={};if(t&&t.attributes&&t.attributes.length>0)for(var s=t.attributes,e=s.length-1;e>=0;e--){var n=s[e].name,r=s[e].value;"boolean"!=typeof t[n]&&-1===",autoplay,controls,playsinline,loop,muted,default,defaultMuted,".indexOf(","+n+",")||(r=null!==r),i[n]=r}return i}function Os(t,i,s){t.setAttribute(i,s)}function Vs(t,i){t.removeAttribute(i)}function Us(t){var i;if(t.getBoundingClientRect&&t.parentNode&&(i=t.getBoundingClientRect()),!i)return{left:0,top:0};var s=es.documentElement,e=es.body,n=s.clientLeft||e.clientLeft||0,r=ss.pageXOffset||e.scrollLeft,h=i.left+r-n,o=s.clientTop||e.clientTop||0,a=ss.pageYOffset||e.scrollTop,u=i.top+a-o;return{left:w.round(h),top:w.round(u)}}function Ls(t,i){var s={},e=Us(t),n=t.offsetWidth,r=t.offsetHeight,h=e.top,o=e.left,a=i.pageY,u=i.pageX;return i.changedTouches&&(u=i.changedTouches[0].pageX,a=i.changedTouches[0].pageY),s.y=w.max(0,w.min(1,(h-a+r)/r)),s.x=w.max(0,w.min(1,(u-o)/n)),s}function Hs(t){return ds(t)&&3===t.nodeType}function zs(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t}function Ws(t,i){return function(t){return"function"==typeof t&&(t=t()),(Array.isArray(t)?t:[t]).map(function(t){return"function"==typeof t&&(t=t()),js(t)||Hs(t)?t:"string"==typeof t&&/\S/.test(t)?es.createTextNode(t):void 0}).filter(function(t){return t})}(i).forEach(function(i){return t.appendChild(i)}),t}function qs(t,i){return Ws(zs(t),i)}var b,Gs=xs("querySelector"),Xs=xs("querySelectorAll"),Js=ss.navigator&&ss.navigator.userAgent||"",Qs=/AppleWebKit\/([\d.]+)/i.exec(Js),Ys=Qs?_(Qs.pop()):null,Ks=/iPad/i.test(Js),Zs=/iPhone/i.test(Js)&&!Ks,te=/iPod/i.test(Js),ie=Zs||Ks||te,se=(b=Js.match(/OS (\d+)_/i))&&b[1]?b[1]:null,ee=/Android/i.test(Js),ne=function(){var t=Js.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!t)return null;var i=t[1]&&_(t[1]),s=t[2]&&_(t[2]);return i&&s?_(t[1]+"."+t[2]):i||null}(),re=ee&&/webkit/i.test(Js)&&ne<2.3,he=ee&&ne<5&&Ys<537,oe=/Firefox/i.test(Js),ae=/Edge/i.test(Js),ue=!ae&&/Chrome/i.test(Js),ce=function(){var t=Js.match(/Chrome\/(\d+)/);return t&&t[1]?_(t[1]):null}(),le=/MSIE\s8\.0/.test(Js),de=function(){var t=/MSIE\s(\d+)\.\d/.exec(Js),i=t&&_(t[1]);return!i&&/Trident\/7.0/i.test(Js)&&/rv:11.0/.test(Js)&&(i=11),i}(),fe=/Safari/i.test(Js)&&!ue&&!ee&&!ae,ve=fe||ie,pe=_s()&&("ontouchstart"in ss||ss.DocumentTouch&&ss.document instanceof ss.DocumentTouch),me=_s()&&"backgroundSize"in ss.document.createElement("video").style,ge=g.freeze({__proto__:null,IS_IPAD:Ks,IS_IPHONE:Zs,IS_IPOD:te,IS_IOS:ie,IOS_VERSION:se,IS_ANDROID:ee,ANDROID_VERSION:ne,IS_OLD_ANDROID:re,IS_NATIVE_ANDROID:he,IS_FIREFOX:oe,IS_EDGE:ae,IS_CHROME:ue,CHROME_VERSION:ce,IS_IE8:le,IE_VERSION:de,IS_SAFARI:fe,IS_ANY_SAFARI:ve,TOUCH_ENABLED:pe,BACKGROUND_SIZE_SUPPORTED:me});function ye(t,i){var s=As(t);0===s.handlers[i].length&&(delete s.handlers[i],t.removeEventListener?t.removeEventListener(i,s.dispatcher,!1):t.detachEvent&&t.detachEvent("on"+i,s.dispatcher)),g.getOwnPropertyNames(s.handlers).length<=0&&(delete s.handlers,delete s.dispatcher,delete s.disabled),0===g.getOwnPropertyNames(s).length&&Es(t)}function be(t,i,s,e){s.forEach(function(s){t(i,s,e)})}function we(t){function i(){return!0}function s(){return!1}if(!t||!t.isPropagationStopped||!t.isImmediatePropagationStopped){var e=t||ss.event;for(var n in t={},e)"layerX"!==n&&"layerY"!==n&&"keyLocation"!==n&&"webkitMovementX"!==n&&"webkitMovementY"!==n&&"path"!==n&&("returnValue"===n&&e.preventDefault||(t[n]=e[n]));if(t.target||(t.target=t.srcElement||es),t.relatedTarget||(t.relatedTarget=t.fromElement===t.target?t.toElement:t.fromElement),t.preventDefault=function(){e.preventDefault&&e.preventDefault(),t.returnValue=!1,e.returnValue=!1,t.defaultPrevented=!0},t.defaultPrevented=!1,t.stopPropagation=function(){e.stopPropagation&&e.stopPropagation(),t.cancelBubble=!0,e.cancelBubble=!0,t.isPropagationStopped=i},t.isPropagationStopped=s,t.stopImmediatePropagation=function(){e.stopImmediatePropagation&&e.stopImmediatePropagation(),t.isImmediatePropagationStopped=i,t.stopPropagation()},t.isImmediatePropagationStopped=s,null!==t.clientX&&void 0!==t.clientX){var r=es.documentElement,h=es.body;t.pageX=t.clientX+(r&&r.scrollLeft||h&&h.scrollLeft||0)-(r&&r.clientLeft||h&&h.clientLeft||0),t.pageY=t.clientY+(r&&r.scrollTop||h&&h.scrollTop||0)-(r&&r.clientTop||h&&h.clientTop||0)}t.which=t.charCode||t.keyCode,null!==t.button&&void 0!==t.button&&(t.button=1&t.button?0:4&t.button?1:2&t.button?2:0)}return t}var ke=!1;!function(){try{var t=g.defineProperty({},"passive",{get:function(){ke=!0}});ss.addEventListener("test",null,t)}catch(t){}}();var _e=["touchstart","touchmove"];function je(t,i,s){if(Array.isArray(i))return be(je,t,i,s);var e=As(t);if(e.handlers||(e.handlers={}),e.handlers[i]||(e.handlers[i]=[]),s.guid||(s.guid=hs()),e.handlers[i].push(s),e.dispatcher||(e.disabled=!1,e.dispatcher=function(i,s){if(!e.disabled){i=we(i);var n=e.handlers[i.type];if(n)for(var r=n.slice(0),h=0,o=r.length;h<o&&!i.isImmediatePropagationStopped();h++)try{r[h].call(t,i,s)}catch(t){ps.error(t)}}}),1===e.handlers[i].length)if(t.addEventListener){var n=!1;ke&&_e.indexOf(i)>-1&&(n={passive:!0}),t.addEventListener(i,e.dispatcher,n)}else t.attachEvent&&t.attachEvent("on"+i,e.dispatcher)}function xe(t,i,s){if(Is(t)){var e=As(t);if(e.handlers){if(Array.isArray(i))return be(xe,t,i,s);var n=function(i){e.handlers[i]=[],ye(t,i)};if(i){var r=e.handlers[i];if(r)if(s){if(s.guid)for(var h=0;h<r.length;h++)r[h].guid===s.guid&&r.splice(h--,1);ye(t,i)}else n(i)}else for(var o in e.handlers)n(o)}}}function Se(t,i,s){var e=Is(t)?As(t):{},n=t.parentNode||t.ownerDocument;if("string"==typeof i&&(i={type:i,target:t}),i=we(i),e.dispatcher&&e.dispatcher.call(t,i,s),n&&!i.isPropagationStopped()&&!0===i.bubbles)Se.call(null,n,i,s);else if(!n&&!i.defaultPrevented){var r=As(i.target);i.target[i.type]&&(r.disabled=!0,"function"==typeof i.target[i.type]&&i.target[i.type](),r.disabled=!1)}return!i.defaultPrevented}function Te(t,i,s){if(Array.isArray(i))return be(Te,t,i,s);var e=function e(){xe(t,i,e),s.apply(this,arguments)};e.guid=s.guid=s.guid||hs(),je(t,i,e)}var Ce,Pe=!1,Me=function(){if(_s()){var t=es.getElementsByTagName("video"),i=es.getElementsByTagName("audio"),s=[];if(t&&t.length>0)for(var e=0,n=t.length;e<n;e++)s.push(t[e]);if(i&&i.length>0)for(var r=0,h=i.length;r<h;r++)s.push(i[r]);if(s&&s.length>0)for(var o=0,a=s.length;o<a;o++){var u=s[o];if(!u||!u.getAttribute){Ae(1);break}void 0===u.player&&null!==u.getAttribute("data-setup")&&Ce(u)}else Pe||Ae(1)}};function Ae(t,i){i&&(Ce=i),ss.setTimeout(Me,t)}_s()&&"complete"===es.readyState?Pe=!0:Te(ss,"load",function(){Pe=!0});var Ie=function(t){var i=es.createElement("style");return i.className=t,i},Ee=function(t,i){t.styleSheet?t.styleSheet.cssText=i:t.textContent=i},De=function(t,i,s){i.guid||(i.guid=hs());var e=function(){return i.apply(t,arguments)};return e.guid=s?s+"_"+i.guid:i.guid,e};function Ne(t){return"string"!=typeof t?t:t.charAt(0).toUpperCase()+t.slice(1)}function Fe(){for(var t={},i=arguments.length,s=new Array(i),e=0;e<i;e++)s[e]=arguments[e];return s.forEach(function(i){i&&cs(i,function(i,s){fs(i)?(fs(t[s])||(t[s]={}),t[s]=Fe(t[s],i)):t[s]=i})}),t}var Be=function(){function t(t,i,s){if(!t&&this.play?this.t=t=this:this.t=t,this.h=Fe({},this.h),i=this.h=Fe(this.h,i),this.o=i.id||i.el&&i.el.id,!this.o){var e=t&&t.id&&t.id()||"no_player";this.o=e+"u"+hs()}this.l=i.name||null,i.el?this.v=i.el:!1!==i.createEl&&(this.v=this.createEl()),this.m=[],this.k={},this.j={},!1!==i.initChildren&&this.initChildren(),this.ready(s),!1!==i.reportTouchActivity&&this.enableTouchActivity()}var i=t.prototype;return i.dispose=function(){if(this.trigger({type:"dispose",bubbles:!1}),this.m)for(var t=this.m.length-1;t>=0;t--)this.m[t].dispose&&this.m[t].dispose();this.m=null,this.k=null,this.j=null,this.off(),this.v.parentNode&&this.v.parentNode.removeChild(this.v),Es(this.v),this.v=null},i.player=function(){return this.t},i.options=function(t){return ps.warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),t?(this.h=Fe(this.h,t),this.h):this.h},i.el=function(){return this.v},i.createEl=function(t,i,s){return Ss(t,i,s)},i.localize=function(t){var i=this.t.language&&this.t.language(),s=this.t.languages&&this.t.languages();if(!i||!s)return t;var e=s[i];if(e&&e[t])return e[t];var n=s[i.split("-")[0]];return n&&n[t]?n[t]:t},i.contentEl=function(){return this.S||this.v},i.id=function(){return this.o},i.name=function(){return this.l},i.children=function(){return this.m},i.getChildById=function(t){return this.k[t]},i.getChild=function(t){if(t)return t=Ne(t),this.j[t]},i.addChild=function(i,s,e){var n,r;if(void 0===s&&(s={}),void 0===e&&(e=this.m.length),"string"==typeof i){r=Ne(i),s||(s={}),!0===s&&(ps.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`."),s={});var h=s.componentClass||r;s.name=r;var o=t.getComponent(h);if(!o)throw new v("Component "+h+" does not exist");if("function"!=typeof o)return null;n=new o(this.t||this,s)}else n=i;if(this.m.splice(e,0,n),"function"==typeof n.id&&(this.k[n.id()]=n),(r=r||n.name&&Ne(n.name()))&&(this.j[r]=n),"function"==typeof n.el&&n.el()){var a=this.contentEl().children[e]||null;this.contentEl().insertBefore(n.el(),a)}return n},i.removeChild=function(t){if("string"==typeof t&&(t=this.getChild(t)),t&&this.m){for(var i=!1,s=this.m.length-1;s>=0;s--)if(this.m[s]===t){i=!0,this.m.splice(s,1);break}if(i){this.k[t.id()]=null,this.j[t.name()]=null;var e=t.el();e&&e.parentNode===this.contentEl()&&this.contentEl().removeChild(t.el())}}},i.initChildren=function(){var i=this,s=this.h.children;if(s){var e,n=this.h,r=t.getComponent("Tech");(e=Array.isArray(s)?s:g.keys(s)).concat(g.keys(this.h).filter(function(t){return!e.some(function(i){return"string"==typeof i?t===i:t===i.name})})).map(function(t){var e,n;return"string"==typeof t?n=s[e=t]||i.h[e]||{}:(e=t.name,n=t),{name:e,opts:n}}).filter(function(i){var s=t.getComponent(i.opts.componentClass||Ne(i.name));return s&&!r.isTech(s)}).forEach(function(t){var s=t.name,e=t.opts;if(void 0!==n[s]&&(e=n[s]),!1!==e){!0===e&&(e={}),e.playerOptions=i.h.playerOptions;var r=i.addChild(s,e);r&&(i[s]=r)}})}},i.buildCSSClass=function(){return""},i.on=function(t,i,s){var e=this;if("string"==typeof t||Array.isArray(t))je(this.v,t,De(this,i));else{var n=t,r=i,h=De(this,s),o=function(){return e.off(n,r,h)};o.guid=h.guid,this.on("dispose",o);var a=function(){return e.off("dispose",o)};a.guid=h.guid,t.nodeName?(je(n,r,h),je(n,"dispose",a)):"function"==typeof t.on&&(n.on(r,h),n.on("dispose",a))}return this},i.off=function(t,i,s){if(!t||"string"==typeof t||Array.isArray(t))xe(this.v,t,i);else{var e=t,n=i,r=De(this,s);this.off("dispose",r),t.nodeName?(xe(e,n,r),xe(e,"dispose",r)):(e.off(n,r),e.off("dispose",r))}return this},i.one=function(t,i,s){var e=arguments,n=this;if("string"==typeof t||Array.isArray(t))Te(this.v,t,De(this,i));else{var r=t,h=i,o=De(this,s),a=function t(){n.off(r,h,t),o.apply(null,e)};a.guid=o.guid,this.on(r,h,a)}return this},i.trigger=function(t,i){return Se(this.v,t,i),this},i.ready=function(t,i){return void 0===i&&(i=!1),t&&(this.T?i?t.call(this):this.setTimeout(t,1):(this.C=this.C||[],this.C.push(t))),this},i.triggerReady=function(){this.T=!0,this.setTimeout(function(){var t=this.C;this.C=[],t&&t.length>0&&t.forEach(function(t){t.call(this)},this),this.trigger("ready")},1)},i.$=function(t,i){return Gs(t,i||this.contentEl())},i.$$=function(t,i){return Xs(t,i||this.contentEl())},i.hasClass=function(t){return Ds(this.v,t)},i.addClass=function(t){return Ns(this.v,t),this},i.removeClass=function(t){return Fs(this.v,t),this},i.toggleClass=function(t,i){return Bs(this.v,t,i),this},i.show=function(){return this.removeClass("vjs-hidden"),this},i.hide=function(){return this.addClass("vjs-hidden"),this},i.lockShowing=function(){return this.addClass("vjs-lock-showing"),this},i.unlockShowing=function(){return this.removeClass("vjs-lock-showing"),this},i.getAttribute=function(t){return function(t,i){return t.getAttribute(i)}(this.v,t)},i.setAttribute=function(t,i){return Os(this.v,t,i),this},i.removeAttribute=function(t){return Vs(this.v,t),this},i.width=function(t,i){return this.dimension("width",t,i)},i.height=function(t,i){return this.dimension("height",t,i)},i.dimensions=function(t,i){return this.width(t,!0).height(i)},i.dimension=function(t,i,s){if(void 0!==i)return null!==i&&i==i||(i=0),-1!==(""+i).indexOf("%")||-1!==(""+i).indexOf("px")?this.v.style[t]=i:this.v.style[t]="auto"===i?"":i+"px",s||this.trigger("resize"),this;if(!this.v)return 0;var e=this.v.style[t],n=e.indexOf("px");return k(-1!==n?e.slice(0,n):this.v["offset"+Ne(t)],10)},i.currentDimension=function(t){var i=0;if("width"!==t&&"height"!==t)throw new v("currentDimension only accepts width or height value");if("function"==typeof ss.getComputedStyle){var s=ss.getComputedStyle(this.v);i=s.getPropertyValue(t)||s[t]}if(0===(i=_(i))){var e="offset"+Ne(t);i=this.v[e]}return i},i.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},i.currentWidth=function(){return this.currentDimension("width")},i.currentHeight=function(){return this.currentDimension("height")},i.focus=function(){this.v.focus()},i.blur=function(){this.v.blur()},i.emitTapEvents=function(){var t,i=0,s=null;this.on("touchstart",function(e){1===e.touches.length&&(s={pageX:e.touches[0].pageX,pageY:e.touches[0].pageY},i=(new Date).getTime(),t=!0)}),this.on("touchmove",function(i){if(i.touches.length>1)t=!1;else if(s){var e=i.touches[0].pageX-s.pageX,n=i.touches[0].pageY-s.pageY;w.sqrt(e*e+n*n)>10&&(t=!1)}});var e=function(){t=!1};this.on("touchleave",e),this.on("touchcancel",e),this.on("touchend",function(e){(s=null,!0===t)&&((new Date).getTime()-i<200&&(e.preventDefault(),this.trigger("tap")))})},i.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var t,i=De(this.player(),this.player().reportUserActivity);this.on("touchstart",function(){i(),this.clearInterval(t),t=this.setInterval(i,250)});var s=function(s){i(),this.clearInterval(t)};this.on("touchmove",i),this.on("touchend",s),this.on("touchcancel",s)}},i.setTimeout=function(t,i){t=De(this,t);var s=ss.setTimeout(t,i),e=function(){this.clearTimeout(s)};return e.guid="vjs-timeout-"+s,this.on("dispose",e),s},i.clearTimeout=function(t){ss.clearTimeout(t);var i=function(){};return i.guid="vjs-timeout-"+t,this.off("dispose",i),t},i.setInterval=function(t,i){t=De(this,t);var s=ss.setInterval(t,i),e=function(){this.clearInterval(s)};return e.guid="vjs-interval-"+s,this.on("dispose",e),s},i.clearInterval=function(t){ss.clearInterval(t);var i=function(){};return i.guid="vjs-interval-"+t,this.off("dispose",i),t},t.registerComponent=function(i,s){if(i){if(i=Ne(i),t.P||(t.P={}),"Player"===i&&t.P[i]){var e=t.P[i];if(e.players&&g.keys(e.players).length>0&&g.keys(e.players).map(function(t){return e.players[t]}).every(Boolean))throw new v("Can not register Player component after player has been created")}return t.P[i]=s,s}},t.getComponent=function(i){if(i)return i=Ne(i),t.P&&t.P[i]?t.P[i]:ss&&ss.videojs&&ss.videojs[i]?(ps.warn("The "+i+" component was added to the videojs object when it should be registered using videojs.registerComponent(name, component)"),ss.videojs[i]):void 0},t.extend=function(i){i=i||{},ps.warn("Component.extend({}) has been deprecated, use videojs.extend(Component, {}) instead");var s=i.init||i.init||this.prototype.init||this.prototype.init||function(){},e=function(){s.apply(this,arguments)};for(var n in(e.prototype=g.create(this.prototype)).constructor=e,e.extend=t.extend,i)i.hasOwnProperty(n)&&(e.prototype[n]=i[n]);return e},t}();Be.registerComponent("Component",Be);var $e=function(){};function Re(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Oe(t,i){return(Oe=g.setPrototypeOf?g.setPrototypeOf.bind():function(t,i){return t.__proto__=i,t})(t,i)}function Ve(t,i){t.prototype=g.create(i.prototype),t.prototype.constructor=t,Oe(t,i)}function Ue(t,i,s,e){return void 0===e&&(ps.warn("DEPRECATED: Function '"+t+"' on 'TimeRanges' called without an index argument."),e=0),function(t,i,s){if(i<0||i>s)throw new v("Failed to execute '"+t+"' on 'TimeRanges': The index provided ("+i+") is greater than or equal to the maximum bound ("+s+").")}(t,e,s.length-1),s[e][i]}function Le(t){return void 0===t||0===t.length?{length:0,start:function(){throw new v("This TimeRanges object is empty")},end:function(){throw new v("This TimeRanges object is empty")}}:{length:t.length,start:Ue.bind(null,"start",0,t),end:Ue.bind(null,"end",1,t)}}function He(t,i){return Array.isArray(t)?Le(t):void 0===t||void 0===i?Le():Le([[t,i]])}function ze(t,i){var s,e,n=0;if(!i)return 0;t&&t.length||(t=He(0,0));for(var r=0;r<t.length;r++)s=t.start(r),(e=t.end(r))>i&&(e=i),n+=e-s;return n/i}$e.prototype.M={},$e.prototype.on=function(t,i){var s=this.addEventListener;this.addEventListener=function(){},je(this,t,i),this.addEventListener=s},$e.prototype.addEventListener=$e.prototype.on,$e.prototype.off=function(t,i){xe(this,t,i)},$e.prototype.removeEventListener=$e.prototype.off,$e.prototype.one=function(t,i){var s=this.addEventListener;this.addEventListener=function(){},Te(this,t,i),this.addEventListener=s},$e.prototype.trigger=function(t){var i=t.type||t;"string"==typeof t&&(t={type:i}),t=we(t),this.M[i]&&this["on"+i]&&this["on"+i](t),Se(this,t)},$e.prototype.dispatchEvent=$e.prototype.trigger;var We,qe,Ge,Xe,Je={prefixed:!0},Qe=[["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"]],Ye=Qe[0];for(qe=0;qe<Qe.length;qe++)if(Qe[qe][1]in es){We=Qe[qe];break}if(We){for(Ge=0;Ge<We.length;Ge++)Je[Ye[Ge]]=We[Ge];Je.prefixed=We[0]!==Ye[0]}function Ke(t){if(t instanceof Ke)return t;"number"==typeof t?this.code=t:"string"==typeof t?this.message=t:ds(t)&&("number"==typeof t.code&&(this.code=t.code),ls(this,t)),this.message||(this.message=Ke.defaultMessages[this.code]||"")}for(Ke.prototype.code=0,Ke.prototype.message="",Ke.prototype.status=null,Ke.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],Ke.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."},Xe=0;Xe<Ke.errorTypes.length;Xe++)Ke[Ke.errorTypes[Xe]]=Xe,Ke.prototype[Ke.errorTypes[Xe]]=Xe;var Ze=function(t,i){var s,e=null;try{s=JSON.parse(t,i)}catch(t){e=t}return[e,s]};var tn=function(t){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(i,s,e){return t[s]&&(i[s]=t[s]),i},{cues:t.cues&&Array.prototype.map.call(t.cues,function(t){return{startTime:t.startTime,endTime:t.endTime,text:t.text,id:t.id}})})},sn=function(t){var i=t.$$("track"),s=Array.prototype.map.call(i,function(t){return t.track});return Array.prototype.map.call(i,function(t){var i=tn(t.track);return t.src&&(i.src=t.src),i}).concat(Array.prototype.filter.call(t.textTracks(),function(t){return-1===s.indexOf(t)}).map(tn))},en=function(t,i){return t.forEach(function(t){var s=i.addRemoteTextTrack(t).track;!t.src&&t.cues&&t.cues.forEach(function(t){return s.addCue(t)})}),i.textTracks()},nn="vjs-modal-dialog",rn=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).A=e.I=e.D=!1,e.closeable(!e.h.uncloseable),e.content(e.h.content),e.S=Ss("div",{className:nn+"-content"},{role:"document"}),e.N=Ss("p",{className:nn+"-description vjs-offscreen",id:e.el().getAttribute("aria-describedby")}),Ts(e.N,e.description()),e.v.appendChild(e.N),e.v.appendChild(e.S),e.on(i,"languagechange",e.handleLanguagechange),e}Ve(i,t);var s=i.prototype;return s.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"F","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},s.buildCSSClass=function(){return nn+" vjs-hidden "+t.prototype.buildCSSClass.call(this)},s.handleKeyPress=function(t){27===t.which&&this.closeable()&&this.close()},s.label=function(){return this.h.label||this.localize("Modal Window")},s.description=function(){var t=this.h.description||this.localize("This is a modal window.");return this.closeable()&&(t+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),t},s.open=function(){if(!this.A){var t=this.player();this.trigger("beforemodalopen"),this.A=!0,(this.h.fillAlways||!this.I&&!this.D)&&this.fill(),this.B=!t.paused(),this.h.pauseOnOpen&&this.B&&t.pause(),this.closeable()&&this.on(this.v.ownerDocument,"keydown",De(this,this.handleKeyPress)),t.controls(!1),this.show(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.I=!0}return this},s.opened=function(t){return"boolean"==typeof t&&this[t?"open":"close"](),this.A},s.close=function(){if(this.A){var t=this.player();this.trigger("beforemodalclose"),this.A=!1,this.B&&this.h.pauseOnOpen&&t.play(),this.closeable()&&this.off(this.v.ownerDocument,"keydown",De(this,this.handleKeyPress)),t.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.h.temporary&&this.dispose()}return this},s.closeable=function(t){if("boolean"==typeof t){var i=this.R=!!t,s=this.getChild("closeButton");if(i&&!s){var e=this.S;this.S=this.v,s=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.S=e,this.on(s,"close",this.close)}!i&&s&&(this.off(s,"close",this.close),this.removeChild(s),s.dispose())}return this.R},s.fill=function(){return this.fillWith(this.content())},s.fillWith=function(t){var i=this.contentEl(),s=i.parentNode,e=i.nextSibling;return this.trigger("beforemodalfill"),this.D=!0,s.removeChild(i),this.empty(),qs(i,t),this.trigger("modalfill"),e?s.insertBefore(i,e):s.appendChild(i),this},s.empty=function(){return this.trigger("beforemodalempty"),zs(this.contentEl()),this.trigger("modalempty"),this},s.content=function(t){return void 0!==t&&(this.O=t),this.O},s.handleLanguagechange=function(){this.v.setAttribute("aria-label",this.label()),Ts(this.N,this.description()),this.opened()?this.fill():(this.I||this.D)&&(this.I=!1,this.D=!1,this.empty())},i}(Be);rn.prototype.h={pauseOnOpen:!0,temporary:!0},Be.registerComponent("ModalDialog",rn);var hn=function(){function t(i){var s=this;if(le)for(var e in s=es.createElement("custom"),t.prototype)"constructor"!==e&&(s[e]=t.prototype[e]);if(t.prototype.V.call(s,i),g.defineProperty(s,"length",{get:function(){return this.U}}),le)return s}var i=t.prototype;return i.V=function(t){var i=this.length||0,s=0,e=t.length;this.L=t,this.U=t.length;var n=function(t){""+t in this||g.defineProperty(this,""+t,{get:function(){return this.L[t]}})};if(i<e)for(s=i;s<e;s++)n.call(this,s)},i.getCueById=function(t){for(var i=null,s=0,e=this.length;s<e;s++){var n=this[s];if(n.id===t){i=n;break}}return i},t}(),on={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},an={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},un={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},cn={disabled:"disabled",hidden:"hidden",showing:"showing"},ln=function(t){function i(s){var e;void 0===s&&(s={});var n=Re(e=t.call(this)||this);if(le)for(var r in n=es.createElement("custom"),i.prototype)"constructor"!==r&&(n[r]=i.prototype[r]);var h={id:s.id||["vjs_track",hs()].join("_"),kind:s.kind||"",label:s.label||"",language:s.language||""},o=function(t){g.defineProperty(n,t,{get:function(){return h[t]},set:function(){}})};for(var a in h)o(a);return n||Re(e)}return Ve(i,t),i}($e),dn=function(t){var i=["protocol","hostname","port","pathname","search","hash","host"],s=es.createElement("a");s.href=t;var e,n=""===s.host&&"file:"!==s.protocol;n&&((e=es.createElement("div")).innerHTML='<a href="'+t+'"></a>',s=e.firstChild,e.setAttribute("style","display:none; position:absolute;"),es.body.appendChild(e));for(var r={},h=0;h<i.length;h++)r[i[h]]=s[i[h]];return"http:"===r.protocol&&(r.host=r.host.replace(/:80$/,"")),"https:"===r.protocol&&(r.host=r.host.replace(/:443$/,"")),n&&es.body.removeChild(e),r},fn=function(t){var i=ss.location,s=dn(t);return(":"===s.protocol?i.protocol:s.protocol)+s.host!==i.protocol+i.host},vn={exports:{}};void 0!==a?vn.exports=a:void 0!==ms?vn.exports=ms:"undefined"!=typeof self?vn.exports=self:vn.exports={};var pn=function(t){var i=mn.call(t);return"[object Function]"===i||"function"==typeof t&&"[object RegExp]"!==i||void 0!==a&&(t===a.setTimeout||t===a.alert||t===a.confirm||t===a.prompt)},mn=g.prototype.toString;var gn,yn,bn,wn,kn,_n,jn,xn,Sn,Tn,Cn,Pn,Mn=Array.prototype.slice,An=g.prototype.toString,In=function(t){var i=this;if("function"!=typeof i||"[object Function]"!==An.call(i))throw new p("Function.prototype.bind called on incompatible "+i);for(var s,e=Mn.call(arguments,1),n=w.max(0,i.length-e.length),r=[],h=0;h<n;h++)r.push("$"+h);if(s=Function("binder","return function ("+r.join(",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof s){var n=i.apply(this,e.concat(Mn.call(arguments)));return g(n)===n?n:this}return i.apply(t,e.concat(Mn.call(arguments)))}),i.prototype){var o=function(){};o.prototype=i.prototype,s.prototype=new o,o.prototype=null}return s},En=Function.prototype.bind||In,Dn=g.prototype.toString,Nn=function(t){var i=Dn.call(t),s="[object Arguments]"===i;return s||(s="[object Array]"!==i&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===Dn.call(t.callee)),s};g.keys||(yn=g.prototype.hasOwnProperty,bn=g.prototype.toString,wn=Nn,kn=g.prototype.propertyIsEnumerable,_n=!kn.call({toString:null},"toString"),jn=kn.call(function(){},"prototype"),xn=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Sn=function(t){var i=t.constructor;return i&&i.prototype===t},Tn={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},Cn=function(){if(void 0===a)return!1;for(var t in a)try{if(!Tn["$"+t]&&yn.call(a,t)&&null!==a[t]&&"object"==typeof a[t])try{Sn(a[t])}catch(t){return!0}}catch(t){return!0}return!1}(),Pn=function(t){if(void 0===a||!Cn)return Sn(t);try{return Sn(t)}catch(t){return!1}},gn=function(t){var i=null!==t&&"object"==typeof t,s="[object Function]"===bn.call(t),e=wn(t),n=i&&"[object String]"===bn.call(t),r=[];if(!i&&!s&&!e)throw new p("Object.keys called on a non-object");var h=jn&&s;if(n&&t.length>0&&!yn.call(t,0))for(var o=0;o<t.length;++o)r.push(String(o));if(e&&t.length>0)for(var a=0;a<t.length;++a)r.push(String(a));else for(var u in t)h&&"prototype"===u||!yn.call(t,u)||r.push(String(u));if(_n)for(var c=Pn(t),l=0;l<xn.length;++l)c&&"constructor"===xn[l]||!yn.call(t,xn[l])||r.push(xn[l]);return r});var Fn=gn,Bn=Array.prototype.slice,$n=Nn,Rn=g.keys,On=Rn?function(t){return Rn(t)}:Fn,Vn=g.keys;On.shim=function(){if(g.keys){var t=function(){var t=g.keys(arguments);return t&&t.length===arguments.length}(1,2);t||(g.keys=function(t){return $n(t)?Vn(Bn.call(t)):Vn(t)})}else g.keys=On;return g.keys||On};var Un=On,Ln="function"==typeof Et&&"symbol"==typeof Et("foo"),Hn=g.prototype.toString,zn=Array.prototype.concat,Wn=g.defineProperty,qn=Wn&&function(){var t={};try{for(var i in Wn(t,"x",{enumerable:!1,value:t}),t)return!1;return t.x===t}catch(t){return!1}}(),Gn=function(t,i,s,e){(!(i in t)||function(t){return"function"==typeof t&&"[object Function]"===Hn.call(t)}(e)&&e())&&(qn?Wn(t,i,{configurable:!0,enumerable:!1,value:s,writable:!0}):t[i]=s)},Xn=function(t,i){var s=arguments.length>2?arguments[2]:{},e=Un(i);Ln&&(e=zn.call(e,g.getOwnPropertySymbols(i)));for(var n=0;n<e.length;n+=1)Gn(t,e[n],i[e[n]],s[e[n]])};Xn.supportsDescriptors=!!qn;var Jn,Qn=Xn,Yn=g.getOwnPropertyDescriptor?function(){return g.getOwnPropertyDescriptor(arguments,"callee").get}():function(){throw new p},Kn="function"==typeof Et&&"symbol"==typeof Ft,Zn=g.getPrototypeOf||function(t){return t.__proto__},tr=Jn,ir=Jn,sr=Jn,er=void 0===x?Jn:Zn(x),nr={"$ %Array%":Array,"$ %ArrayBuffer%":"undefined"==typeof ArrayBuffer?Jn:ArrayBuffer,"$ %ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?Jn:ArrayBuffer.prototype,"$ %ArrayIteratorPrototype%":Kn?Zn([][Ft]()):Jn,"$ %ArrayPrototype%":Array.prototype,"$ %ArrayProto_entries%":Array.prototype.entries,"$ %ArrayProto_forEach%":Array.prototype.forEach,"$ %ArrayProto_keys%":Array.prototype.keys,"$ %ArrayProto_values%":Array.prototype.values,"$ %AsyncFromSyncIteratorPrototype%":Jn,"$ %AsyncFunction%":ir,"$ %AsyncFunctionPrototype%":Jn,"$ %AsyncGenerator%":Jn,"$ %AsyncGeneratorFunction%":sr,"$ %AsyncGeneratorPrototype%":Jn,"$ %AsyncIteratorPrototype%":Jn,"$ %Atomics%":"undefined"==typeof Atomics?Jn:Atomics,"$ %Boolean%":Boolean,"$ %BooleanPrototype%":Boolean.prototype,"$ %DataView%":"undefined"==typeof DataView?Jn:DataView,"$ %DataViewPrototype%":"undefined"==typeof DataView?Jn:DataView.prototype,"$ %Date%":Date,"$ %DatePrototype%":Date.prototype,"$ %decodeURI%":decodeURI,"$ %decodeURIComponent%":decodeURIComponent,"$ %encodeURI%":encodeURI,"$ %encodeURIComponent%":encodeURIComponent,"$ %Error%":v,"$ %ErrorPrototype%":v.prototype,"$ %eval%":eval,"$ %EvalError%":EvalError,"$ %EvalErrorPrototype%":EvalError.prototype,"$ %Float32Array%":"undefined"==typeof Float32Array?Jn:Float32Array,"$ %Float32ArrayPrototype%":"undefined"==typeof Float32Array?Jn:Float32Array.prototype,"$ %Float64Array%":"undefined"==typeof Float64Array?Jn:Float64Array,"$ %Float64ArrayPrototype%":"undefined"==typeof Float64Array?Jn:Float64Array.prototype,"$ %Function%":Function,"$ %FunctionPrototype%":Function.prototype,"$ %Generator%":Jn,"$ %GeneratorFunction%":tr,"$ %GeneratorPrototype%":Jn,"$ %Int8Array%":"undefined"==typeof Int8Array?Jn:Int8Array,"$ %Int8ArrayPrototype%":"undefined"==typeof Int8Array?Jn:Int8Array.prototype,"$ %Int16Array%":"undefined"==typeof Int16Array?Jn:Int16Array,"$ %Int16ArrayPrototype%":"undefined"==typeof Int16Array?Jn:Int8Array.prototype,"$ %Int32Array%":"undefined"==typeof Int32Array?Jn:Int32Array,"$ %Int32ArrayPrototype%":"undefined"==typeof Int32Array?Jn:Int32Array.prototype,"$ %isFinite%":isFinite,"$ %isNaN%":j,"$ %IteratorPrototype%":Kn?Zn(Zn([][Ft]())):Jn,"$ %JSON%":JSON,"$ %JSONParse%":JSON.parse,"$ %Map%":"undefined"==typeof Map?Jn:Map,"$ %MapIteratorPrototype%":"undefined"!=typeof Map&&Kn?Zn((new Map)[Ft]()):Jn,"$ %MapPrototype%":"undefined"==typeof Map?Jn:Map.prototype,"$ %Math%":w,"$ %Number%":Number,"$ %NumberPrototype%":Number.prototype,"$ %Object%":g,"$ %ObjectPrototype%":g.prototype,"$ %ObjProto_toString%":g.prototype.toString,"$ %ObjProto_valueOf%":g.prototype.valueOf,"$ %parseFloat%":_,"$ %parseInt%":k,"$ %Promise%":"undefined"==typeof Promise?Jn:Promise,"$ %PromisePrototype%":"undefined"==typeof Promise?Jn:Promise.prototype,"$ %PromiseProto_then%":"undefined"==typeof Promise?Jn:Promise.prototype.then,"$ %Promise_all%":"undefined"==typeof Promise?Jn:Promise.all,"$ %Promise_reject%":"undefined"==typeof Promise?Jn:Promise.reject,"$ %Promise_resolve%":"undefined"==typeof Promise?Jn:Promise.resolve,"$ %Proxy%":"undefined"==typeof Proxy?Jn:Proxy,"$ %RangeError%":RangeError,"$ %RangeErrorPrototype%":RangeError.prototype,"$ %ReferenceError%":ReferenceError,"$ %ReferenceErrorPrototype%":ReferenceError.prototype,"$ %Reflect%":"undefined"==typeof Reflect?Jn:Reflect,"$ %RegExp%":RegExp,"$ %RegExpPrototype%":RegExp.prototype,"$ %Set%":"undefined"==typeof Set?Jn:Set,"$ %SetIteratorPrototype%":"undefined"!=typeof Set&&Kn?Zn((new Set)[Ft]()):Jn,"$ %SetPrototype%":"undefined"==typeof Set?Jn:Set.prototype,"$ %SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?Jn:SharedArrayBuffer,"$ %SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?Jn:SharedArrayBuffer.prototype,"$ %String%":String,"$ %StringIteratorPrototype%":Kn?Zn(""[Ft]()):Jn,"$ %StringPrototype%":String.prototype,"$ %Symbol%":Kn?Et:Jn,"$ %SymbolPrototype%":Kn?Et.prototype:Jn,"$ %SyntaxError%":m,"$ %SyntaxErrorPrototype%":m.prototype,"$ %ThrowTypeError%":Yn,"$ %TypedArray%":er,"$ %TypedArrayPrototype%":er?er.prototype:Jn,"$ %TypeError%":p,"$ %TypeErrorPrototype%":p.prototype,"$ %Uint8Array%":void 0===x?Jn:x,"$ %Uint8ArrayPrototype%":void 0===x?Jn:x.prototype,"$ %Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?Jn:Uint8ClampedArray,"$ %Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?Jn:Uint8ClampedArray.prototype,"$ %Uint16Array%":"undefined"==typeof Uint16Array?Jn:Uint16Array,"$ %Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?Jn:Uint16Array.prototype,"$ %Uint32Array%":"undefined"==typeof Uint32Array?Jn:Uint32Array,"$ %Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?Jn:Uint32Array.prototype,"$ %URIError%":URIError,"$ %URIErrorPrototype%":URIError.prototype,"$ %WeakMap%":"undefined"==typeof WeakMap?Jn:WeakMap,"$ %WeakMapPrototype%":"undefined"==typeof WeakMap?Jn:WeakMap.prototype,"$ %WeakSet%":"undefined"==typeof WeakSet?Jn:WeakSet,"$ %WeakSetPrototype%":"undefined"==typeof WeakSet?Jn:WeakSet.prototype},rr=function(t,i){if(arguments.length>1&&"boolean"!=typeof i)throw new p('"allowMissing" argument must be a boolean');var s="$ "+t;if(!(s in nr))throw new m("intrinsic "+t+" does not exist!");if(void 0===nr[s]&&!i)throw new p("intrinsic "+t+" exists, but is not available. Please file an issue!");return nr[s]},hr=En.call(Function.call,g.prototype.hasOwnProperty),or=rr,ar=or("%TypeError%"),ur=or("%SyntaxError%"),cr=hr,lr={"Property Descriptor":function(t,i){if("Object"!==t.Type(i))return!1;var s={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var e in i)if(cr(i,e)&&!s[e])return!1;var n=cr(i,"[[Value]]"),r=cr(i,"[[Get]]")||cr(i,"[[Set]]");if(n&&r)throw new ar("Property Descriptors may not be both accessor and data descriptors");return!0}},dr=Number.isNaN||function(t){return t!=t},fr=Number.isNaN||function(t){return t!=t},vr=Number.isFinite||function(t){return"number"==typeof t&&!fr(t)&&t!==1/0&&t!==-1/0},pr=Function.prototype.toString,mr=/^\s*class\b/,gr=function(t){try{var i=pr.call(t);return mr.test(i)}catch(t){return!1}},yr=g.prototype.toString,br="function"==typeof Et&&"symbol"==typeof Et.toStringTag,wr=function(t){if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if("function"==typeof t&&!t.prototype)return!0;if(br)return function(t){try{return!gr(t)&&(pr.call(t),!0)}catch(t){return!1}}(t);if(gr(t))return!1;var i=yr.call(t);return"[object Function]"===i||"[object GeneratorFunction]"===i},kr=g.prototype.toString,_r=function(t){return null===t||"function"!=typeof t&&"object"!=typeof t},jr=wr,xr=function(t){var i;if((i=arguments.length>1?arguments[1]:"[object Date]"===kr.call(t)?String:Number)===String||i===Number){var s,e,n=i===String?["toString","valueOf"]:["valueOf","toString"];for(e=0;e<n.length;++e)if(jr(t[n[e]])&&(s=t[n[e]](),_r(s)))return s;throw new p("No default value")}throw new p("invalid [[DefaultValue]] hint supplied")},Sr=rr,Tr=Sr("%Object%"),Cr=Sr("%TypeError%"),Pr=Sr("%String%"),Mr=function(t,i,s,e){var n=lr[i];if("function"!=typeof n)throw new ur("unknown record type: "+i);if(!n(t,e))throw new ar(s+" must be a "+i);console.log(n(t,e),e)},Ar=dr,Ir=vr,Er=function(t){return t>=0?1:-1},Dr=function(t,i){var s=t%i;return w.floor(s>=0?s:s+i)},Nr=hr,Fr={ToPrimitive:function(t){return _r(t)?t:arguments.length>1?xr(t,arguments[1]):xr(t)},ToBoolean:function(t){return!!t},ToNumber:function(t){return+t},ToInteger:function(t){var i=this.ToNumber(t);return Ar(i)?0:0!==i&&Ir(i)?Er(i)*w.floor(w.abs(i)):i},ToInt32:function(t){return this.ToNumber(t)|0},ToUint32:function(t){return this.ToNumber(t)>>>0},ToUint16:function(t){var i=this.ToNumber(t);if(Ar(i)||0===i||!Ir(i))return 0;var s=Er(i)*w.floor(w.abs(i));return Dr(s,65536)},ToString:function(t){return Pr(t)},ToObject:function(t){return this.CheckObjectCoercible(t),Tr(t)},CheckObjectCoercible:function(t,i){if(null==t)throw new Cr(i||"Cannot call method on "+t);return t},IsCallable:wr,SameValue:function(t,i){return t===i?0!==t||1/t==1/i:Ar(t)&&Ar(i)},Type:function(t){return null===t?"Null":void 0===t?"Undefined":"function"==typeof t||"object"==typeof t?"Object":"number"==typeof t?"Number":"boolean"==typeof t?"Boolean":"string"==typeof t?"String":void 0},IsPropertyDescriptor:function(t){if("Object"!==this.Type(t))return!1;var i={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var s in t)if(Nr(t,s)&&!i[s])return!1;var e=Nr(t,"[[Value]]"),n=Nr(t,"[[Get]]")||Nr(t,"[[Set]]");if(e&&n)throw new Cr("Property Descriptors may not be both accessor and data descriptors");return!0},IsAccessorDescriptor:function(t){return void 0!==t&&(Mr(this,"Property Descriptor","Desc",t),!(!Nr(t,"[[Get]]")&&!Nr(t,"[[Set]]")))},IsDataDescriptor:function(t){return void 0!==t&&(Mr(this,"Property Descriptor","Desc",t),!(!Nr(t,"[[Value]]")&&!Nr(t,"[[Writable]]")))},IsGenericDescriptor:function(t){return void 0!==t&&(Mr(this,"Property Descriptor","Desc",t),!this.IsAccessorDescriptor(t)&&!this.IsDataDescriptor(t))},FromPropertyDescriptor:function(t){if(void 0===t)return t;if(Mr(this,"Property Descriptor","Desc",t),this.IsDataDescriptor(t))return{value:t["[[Value]]"],writable:!!t["[[Writable]]"],enumerable:!!t["[[Enumerable]]"],configurable:!!t["[[Configurable]]"]};if(this.IsAccessorDescriptor(t))return{get:t["[[Get]]"],set:t["[[Set]]"],enumerable:!!t["[[Enumerable]]"],configurable:!!t["[[Configurable]]"]};throw new Cr("FromPropertyDescriptor must be called with a fully populated Property Descriptor")},ToPropertyDescriptor:function(t){if("Object"!==this.Type(t))throw new Cr("ToPropertyDescriptor requires an object");var i={};if(Nr(t,"enumerable")&&(i["[[Enumerable]]"]=this.ToBoolean(t.enumerable)),Nr(t,"configurable")&&(i["[[Configurable]]"]=this.ToBoolean(t.configurable)),Nr(t,"value")&&(i["[[Value]]"]=t.value),Nr(t,"writable")&&(i["[[Writable]]"]=this.ToBoolean(t.writable)),Nr(t,"get")){var s=t.get;if(void 0!==s&&!this.IsCallable(s))throw new p("getter must be a function");i["[[Get]]"]=s}if(Nr(t,"set")){var e=t.set;if(void 0!==e&&!this.IsCallable(e))throw new Cr("setter must be a function");i["[[Set]]"]=e}if((Nr(i,"[[Get]]")||Nr(i,"[[Set]]"))&&(Nr(i,"[[Value]]")||Nr(i,"[[Writable]]")))throw new Cr("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return i}},Br=En.call(Function.call,String.prototype.replace),$r=/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,Rr=/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/,Or=function(){var t=Fr.ToString(Fr.CheckObjectCoercible(this));return Br(Br(t,$r,""),Rr,"")},Vr=Or,Ur=function(){return String.prototype.trim&&"\u200b"==="\u200b".trim()?String.prototype.trim:Vr},Lr=Qn,Hr=Ur,zr=Qn,Wr=Or,qr=Ur,Gr=function(){var t=Hr();return Lr(String.prototype,{trim:t},{trim:function(){return String.prototype.trim!==t}}),t},Xr=En.call(Function.call,qr());zr(Xr,{getPolyfill:qr,implementation:Wr,shim:Gr});var Jr=Xr,Qr=wr,Yr=g.prototype.toString,Kr=g.prototype.hasOwnProperty,Zr=Jr,th=function(t,i,s){if(!Qr(i))throw new p("iterator must be a function");var e;arguments.length>=3&&(e=s),"[object Array]"===Yr.call(t)?function(t,i,s){for(var e=0,n=t.length;e<n;e++)Kr.call(t,e)&&(null==s?i(t[e],e,t):i.call(s,t[e],e,t))}(t,i,e):"string"==typeof t?function(t,i,s){for(var e=0,n=t.length;e<n;e++)null==s?i(t.charAt(e),e,t):i.call(s,t.charAt(e),e,t)}(t,i,e):function(t,i,s){for(var e in t)Kr.call(t,e)&&(null==s?i(t[e],e,t):i.call(s,t[e],e,t))}(t,i,e)},ih=function(){for(var t={},i=0;i<arguments.length;i++){var s=arguments[i];for(var e in s)sh.call(s,e)&&(t[e]=s[e])}return t},sh=g.prototype.hasOwnProperty;var eh=vn.exports,nh=pn,rh=function(t){if(!t)return{};var i={};return th(Zr(t).split("\n"),function(t){var s=t.indexOf(":"),e=Zr(t.slice(0,s)).toLowerCase(),n=Zr(t.slice(s+1));void 0===i[e]?i[e]=n:!function(t){return"[object Array]"===g.prototype.toString.call(t)}(i[e])?i[e]=[i[e],n]:i[e].push(n)}),i},hh=ih,oh=uh;function ah(t,i,s){var e=t;return nh(i)?(s=i,"string"==typeof t&&(e={uri:t})):e=hh(i,{uri:t}),e.callback=s,e}function uh(t,i,s){return ch(i=ah(t,i,s))}function ch(t){if(void 0===t.callback)throw new v("callback argument missing");var i=!1,s=function(s,e,n){i||(i=!0,t.callback(s,e,n))};function e(){var t=void 0;if(t=l.response?l.response:l.responseText||function(t){if("document"===t.responseType)return t.responseXML;var i=204===t.status&&t.responseXML&&"parsererror"===t.responseXML.documentElement.nodeName;if(""===t.responseType&&!i)return t.responseXML;return null}(l),b)try{t=JSON.parse(t)}catch(t){}return t}var n={body:void 0,headers:{},statusCode:0,method:p,url:f,rawRequest:l};function r(t){return c(d),t instanceof v||(t=new v(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,s(t,n)}function h(){if(!a){var i;c(d),i=t.useXDR&&void 0===l.status?200:1223===l.status?204:l.status;var r=n,h=null;return 0!==i?(r={body:e(),statusCode:i,method:p,headers:{},url:f,rawRequest:l},l.getAllResponseHeaders&&(r.headers=rh(l.getAllResponseHeaders()))):h=new v("Internal XMLHttpRequest Error"),s(h,r,r.body)}}var o,a,l=t.xhr||null;l||(l=t.cors||t.useXDR?new uh.XDomainRequest:new uh.XMLHttpRequest);var d,f=l.url=t.uri||t.url,p=l.method=t.method||"GET",m=t.body||t.data||null,g=l.headers=t.headers||{},y=!!t.sync,b=!1;if("json"in t&&(b=!0,g.accept||g.Accept||(g.Accept="application/json"),"GET"!==p&&"HEAD"!==p&&(g["content-type"]||g["Content-Type"]||(g["Content-Type"]="application/json"),m=JSON.stringify(t.json))),l.onreadystatechange=function(){4===l.readyState&&h()},l.onload=h,l.onerror=r,l.onprogress=function(){},l.ontimeout=r,l.open(p,f,!y,t.username,t.password),y||(l.withCredentials=!!t.withCredentials),!y&&t.timeout>0&&(d=u(function(){a=!0,l.abort("timeout");var t=new v("XMLHttpRequest timeout");t.code="ETIMEDOUT",r(t)},t.timeout)),l.setRequestHeader)for(o in g)g.hasOwnProperty(o)&&l.setRequestHeader(o,g[o]);else if(t.headers&&!function(t){for(var i in t)if(t.hasOwnProperty(i))return!1;return!0}(t.headers))throw new v("Headers cannot be set on an XDomainRequest object");return"responseType"in t&&(l.responseType=t.responseType),"beforeSend"in t&&"function"==typeof t.beforeSend&&t.beforeSend(l),l.send(m),l}uh.XMLHttpRequest=eh.XMLHttpRequest||function(){},uh.XDomainRequest="withCredentials"in new uh.XMLHttpRequest?uh.XMLHttpRequest:eh.XDomainRequest,function(t,i){for(var s=0;s<t.length;s++)i(t[s])}(["get","put","post","patch","head","delete"],function(t){uh["delete"===t?"del":t]=function(i,s,e){return(s=ah(i,s,e)).method=t.toUpperCase(),ch(s)}});var lh=function(t,i){var s=new ss.WebVTT.Parser(ss,ss.vttjs,ss.WebVTT.StringDecoder()),e=[];s.oncue=function(t){i.addCue(t)},s.onparsingerror=function(t){e.push(t)},s.onflush=function(){i.trigger({type:"loadeddata",target:i})},s.parse(t),e.length>0&&(ss.console&&ss.console.groupCollapsed&&ss.console.groupCollapsed("Text Track parsing errors for "+i.src),e.forEach(function(t){return ps.error(t)}),ss.console&&ss.console.groupEnd&&ss.console.groupEnd()),s.flush()},dh=function(t){function i(s){var e;if(void 0===s&&(s={}),!s.tech)throw new v("A tech was not provided.");var n=Fe(s,{kind:un[s.kind]||"subtitles",language:s.language||s.srclang||""}),r=cn[n.mode]||"disabled",h=n.default;"metadata"!==n.kind&&"chapters"!==n.kind||(r="hidden");var o=e=t.call(this,n)||this;if(o.H=n.tech,le)for(var a in i.prototype)"constructor"!==a&&(o[a]=i.prototype[a]);o.L=[],o.W=[];var u=new hn(o.L),c=new hn(o.W),l=!1,d=De(o,function(){this.activeCues,l&&(this.trigger("cuechange"),l=!1)});return"disabled"!==r&&o.H.ready(function(){o.H.on("timeupdate",d)},!0),g.defineProperty(o,"default",{get:function(){return h},set:function(){}}),g.defineProperty(o,"mode",{get:function(){return r},set:function(t){var i=this;cn[t]&&("showing"===(r=t)&&this.H.ready(function(){i.H.on("timeupdate",d)},!0),this.trigger("modechange"))}}),g.defineProperty(o,"cues",{get:function(){return this.q?u:null},set:function(){}}),g.defineProperty(o,"activeCues",{get:function(){if(!this.q)return null;if(0===this.cues.length)return c;for(var t=this.H.currentTime(),i=[],s=0,e=this.cues.length;s<e;s++){var n=this.cues[s];(n.startTime<=t&&n.endTime>=t||n.startTime===n.endTime&&n.startTime<=t&&n.startTime+.5>=t)&&i.push(n)}if(l=!1,i.length!==this.W.length)l=!0;else for(var r=0;r<i.length;r++)-1===this.W.indexOf(i[r])&&(l=!0);return this.W=i,c.V(this.W),c},set:function(){}}),n.src?(o.src=n.src,function(t,i){var s={uri:t},e=fn(t);e&&(s.cors=e),oh(s,De(this,function(t,s,e){if(t)return ps.error(t,s);if(i.q=!0,"function"!=typeof ss.WebVTT){if(i.H){var n=function(){return lh(e,i)};i.H.on("vttjsloaded",n),i.H.on("vttjserror",function(){ps.error("vttjs failed to load, stopping trying to process "+i.src),i.H.off("vttjsloaded",n)})}}else lh(e,i)}))}(n.src,o)):o.q=!0,o||Re(e)}Ve(i,t);var s=i.prototype;return s.addCue=function(t){var i=t;if(ss.vttjs&&!(t instanceof ss.vttjs.VTTCue)){for(var s in i=new ss.vttjs.VTTCue(t.startTime,t.endTime,t.text),t)s in i||(i[s]=t[s]);i.id=t.id,i.G=t}var e=this.H.textTracks();if(e)for(var n=0;n<e.length;n++)e[n]!==this&&e[n].removeCue(i);this.L.push(i),this.cues.V(this.L)},s.removeCue=function(t){for(var i=this.L.length;i--;){var s=this.L[i];if(s===t||s.G&&s.G===t){this.L.splice(i,1),this.cues.V(this.L);break}}},i}(ln);dh.prototype.M={cuechange:"cuechange"};var fh=function(t){function i(s){var e,n;void 0===s&&(s={});var r=Re(e=t.call(this)||this);if(le)for(var h in r=es.createElement("custom"),i.prototype)"constructor"!==h&&(r[h]=i.prototype[h]);var o=new dh(s);return r.kind=o.kind,r.src=o.src,r.srclang=o.language,r.label=o.label,r.default=o.default,g.defineProperty(r,"readyState",{get:function(){return n}}),g.defineProperty(r,"track",{get:function(){return o}}),n=0,o.addEventListener("loadeddata",function(){n=2,r.trigger({type:"load",target:r})}),le?r||Re(e):e}return Ve(i,t),i}($e);fh.prototype.M={load:"load"},fh.NONE=0,fh.LOADING=1,fh.LOADED=2,fh.ERROR=3;var vh,ph=function(){function t(i){void 0===i&&(i=[]);var s=this;if(le)for(var e in s=es.createElement("custom"),t.prototype)"constructor"!==e&&(s[e]=t.prototype[e]);s.X=[],g.defineProperty(s,"length",{get:function(){return this.X.length}});for(var n=0,r=i.length;n<r;n++)s.J(i[n]);if(le)return s}var i=t.prototype;return i.J=function(t){var i=this.X.length;""+i in this||g.defineProperty(this,i,{get:function(){return this.X[i]}}),-1===this.X.indexOf(t)&&this.X.push(t)},i.Y=function(t){for(var i,s=0,e=this.X.length;s<e;s++)if(t===this.X[s].track){i=this.X[s];break}return i},i.K=function(t){for(var i=0,s=this.X.length;i<s;i++)if(t===this.X[i]){this.X.splice(i,1);break}},t}(),mh=function(t){function i(s,e){var n;if(void 0===s&&(s=[]),void 0===e&&(e=null),n=t.call(this)||this,!e&&(e=Re(n),le))for(var r in e=es.createElement("custom"),i.prototype)"constructor"!==r&&(e[r]=i.prototype[r]);e.Z=[],g.defineProperty(e,"length",{get:function(){return this.Z.length}});for(var h=0;h<s.length;h++)e.tt(s[h]);return e||Re(n)}Ve(i,t);var s=i.prototype;return s.tt=function(t){var i=this.Z.length;""+i in this||g.defineProperty(this,i,{get:function(){return this.Z[i]}}),-1===this.Z.indexOf(t)&&(this.Z.push(t),this.trigger({track:t,type:"addtrack"}))},s.it=function(t){for(var i,s=0,e=this.length;s<e;s++)if(this[s]===t){(i=this[s]).off&&i.off(),this.Z.splice(s,1);break}i&&this.trigger({track:i,type:"removetrack"})},s.getTrackById=function(t){for(var i=null,s=0,e=this.length;s<e;s++){var n=this[s];if(n.id===t){i=n;break}}return i},i}($e);for(vh in mh.prototype.M={change:"change",addtrack:"addtrack",removetrack:"removetrack"},mh.prototype.M)mh.prototype["on"+vh]=null;var gh=function(t){function i(s){var e,n;if(void 0===s&&(s=[]),le){for(var r in n=es.createElement("custom"),mh.prototype)"constructor"!==r&&(n[r]=mh.prototype[r]);for(var h in i.prototype)"constructor"!==h&&(n[h]=i.prototype[h])}return(n=e=t.call(this,s,n)||this)||Re(e)}return Ve(i,t),i.prototype.tt=function(i){t.prototype.tt.call(this,i),i.addEventListener("modechange",De(this,function(){this.trigger("change")}))},i}(mh),yh=function(t,i){for(var s=0;s<t.length;s++)i.id!==t[s].id&&(t[s].selected=!1)},bh=function(t){function i(s){var e,n;void 0===s&&(s=[]);for(var r=s.length-1;r>=0;r--)if(s[r].selected){yh(s,s[r]);break}if(le){for(var h in n=es.createElement("custom"),mh.prototype)"constructor"!==h&&(n[h]=mh.prototype[h]);for(var o in i.prototype)"constructor"!==o&&(n[o]=i.prototype[o])}return(n=e=t.call(this,s,n)||this).st=!1,g.defineProperty(n,"selectedIndex",{get:function(){for(var t=0;t<this.length;t++)if(this[t].selected)return t;return-1},set:function(){}}),n||Re(e)}Ve(i,t);var s=i.prototype;return s.tt=function(i){var s=this;i.selected&&yh(this,i),t.prototype.tt.call(this,i),i.addEventListener&&i.addEventListener("selectedchange",function(){s.st||(s.st=!0,yh(s,i),s.st=!1,s.trigger("change"))})},s.addTrack=function(t){this.tt(t)},s.removeTrack=function(i){t.prototype.it.call(this,i)},i}(mh),wh=function(t,i){for(var s=0;s<t.length;s++)i.id!==t[s].id&&(t[s].enabled=!1)},kh=function(t){function i(s){var e,n;void 0===s&&(s=[]);for(var r=s.length-1;r>=0;r--)if(s[r].enabled){wh(s,s[r]);break}if(le){for(var h in n=es.createElement("custom"),mh.prototype)"constructor"!==h&&(n[h]=mh.prototype[h]);for(var o in i.prototype)"constructor"!==o&&(n[o]=i.prototype[o])}return(n=e=t.call(this,s,n)||this).st=!1,n||Re(e)}Ve(i,t);var s=i.prototype;return s.tt=function(i){var s=this;i.enabled&&wh(this,i),t.prototype.tt.call(this,i),i.addEventListener&&i.addEventListener("enabledchange",function(){s.st||(s.st=!0,wh(s,i),s.st=!1,s.trigger("change"))})},s.addTrack=function(t){this.tt(t)},s.removeTrack=function(i){t.prototype.it.call(this,i)},i}(mh),_h=void 0;var jh=function(t){function i(i,s){var e;return void 0===i&&(i={}),void 0===s&&(s=function(){}),i.reportTouchActivity=!1,(e=t.call(this,null,i,s)||this).et=!1,e.on("playing",function(){this.et=!0}),e.on("loadstart",function(){this.et=!1}),e.nt=i.textTracks,e.rt=i.videoTracks,e.ht=i.audioTracks,e.featuresProgressEvents||e.manualProgressOn(),e.featuresTimeupdateEvents||e.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(function(t){!1===i["native"+t+"Tracks"]&&(e["featuresNative"+t+"Tracks"]=!1)}),!1===i.nativeCaptions&&(e.featuresNativeTextTracks=!1),e.featuresNativeTextTracks||e.emulateTextTracks(),e.ot=new gh,e.initTextTrackListeners(),e.initTrackListeners(),i.nativeControlsForTouch||e.emitTapEvents(),e.constructor&&(e.l=e.constructor.name||"Unknown Tech"),e}Ve(i,t);var s=i.prototype;return s.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},s.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},s.trackProgress=function(t){this.stopTrackingProgress(),this.progressInterval=this.setInterval(De(this,function(){var t=this.bufferedPercent();this.ut!==t&&this.trigger("progress"),this.ut=t,1===t&&this.stopTrackingProgress()}),500)},s.onDurationChange=function(t){this.ct=this.duration()},s.buffered=function(){return He(0,0)},s.bufferedPercent=function(){return ze(this.buffered(),this.ct)},s.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},s.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},s.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},s.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},s.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},s.dispose=function(){this.clearTracks(["audio","video","text"]),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),t.prototype.dispose.call(this)},s.clearTracks=function(t){var i=this;(t=[].concat(t)).forEach(function(t){for(var s=i[t+"Tracks"]()||[],e=s.length;e--;){var n=s[e];"text"===t&&i.removeRemoteTextTrack(n),s.it(n)}})},s.cleanupAutoTextTracks=function(){for(var t=this.ot||[],i=t.length;i--;){var s=t[i];this.removeRemoteTextTrack(s)}},s.reset=function(){},s.error=function(t){return void 0!==t&&(this.lt=new Ke(t),this.trigger("error")),this.lt},s.played=function(){return this.et?He(0,0):He()},s.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},s.initTextTrackListeners=function(){var t=De(this,function(){this.trigger("texttrackchange")}),i=this.textTracks();i&&(i.addEventListener("removetrack",t),i.addEventListener("addtrack",t),this.on("dispose",De(this,function(){i.removeEventListener("removetrack",t),i.removeEventListener("addtrack",t)})))},s.initTrackListeners=function(){var t=this;["video","audio"].forEach(function(i){var s=function(){t.trigger(i+"trackchange")},e=t[i+"Tracks"]();e.addEventListener("removetrack",s),e.addEventListener("addtrack",s),t.on("dispose",function(){e.removeEventListener("removetrack",s),e.removeEventListener("addtrack",s)})})},s.dt=function(){var t=this;if(!ss.WebVTT)if(es.body.contains(this.el())){if(!this.h["vtt.js"]&&fs(_h)&&g.keys(_h).length>0)return void this.trigger("vttjsloaded");var i=es.createElement("script");i.src=this.h["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.12.4/vtt.min.js",i.onload=function(){t.trigger("vttjsloaded")},i.onerror=function(){t.trigger("vttjserror")},this.on("dispose",function(){i.onload=null,i.onerror=null}),ss.WebVTT=!0,this.el().parentNode.appendChild(i)}else this.ready(this.dt)},s.emulateTextTracks=function(){var t=this,i=this.textTracks();if(i){var s=this.remoteTextTracks(),e=function(t){return i.tt(t.track)},n=function(t){return i.it(t.track)};s.on("addtrack",e),s.on("removetrack",n),this.dt();var r=function(){return t.trigger("texttrackchange")},h=function(){r();for(var t=0;t<i.length;t++){var s=i[t];s.removeEventListener("cuechange",r),"showing"===s.mode&&s.addEventListener("cuechange",r)}};h(),i.addEventListener("change",h),i.addEventListener("addtrack",h),i.addEventListener("removetrack",h),this.on("dispose",function(){s.off("addtrack",e),s.off("removetrack",n),i.removeEventListener("change",h),i.removeEventListener("addtrack",h),i.removeEventListener("removetrack",h);for(var t=0;t<i.length;t++){i[t].removeEventListener("cuechange",r)}})}},s.videoTracks=function(){return this.rt=this.rt||new bh,this.rt},s.audioTracks=function(){return this.ht=this.ht||new kh,this.ht},s.textTracks=function(){return this.nt=this.nt||new gh,this.nt},s.remoteTextTracks=function(){return this.ft=this.ft||new gh,this.ft},s.remoteTextTrackEls=function(){return this.vt=this.vt||new ph,this.vt},s.addTextTrack=function(t,i,s){if(!t)throw new v("TextTrack kind is required but was not provided");return function(t,i,s,e,n){void 0===n&&(n={});var r=t.textTracks();n.kind=i,s&&(n.label=s),e&&(n.language=e),n.tech=t;var h=new dh(n);return r.tt(h),h}(this,t,i,s)},s.createRemoteTextTrack=function(t){var i=Fe(t,{tech:this});return new fh(i)},s.addRemoteTextTrack=function(t,i){void 0===t&&(t={});var s=this.createRemoteTextTrack(t);return!0!==i&&!1!==i&&(ps.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),i=!0),this.remoteTextTrackEls().J(s),this.remoteTextTracks().tt(s.track),!0!==i&&this.ot.tt(s.track),s},s.removeRemoteTextTrack=function(t){var i=this.remoteTextTrackEls().Y(t);this.remoteTextTrackEls().K(i),this.remoteTextTracks().it(t),this.ot.it(t)},s.getVideoPlaybackQuality=function(){return{}},s.setPoster=function(){},s.playsinline=function(){},s.setPlaysinline=function(){},s.canPlayType=function(){return""},i.isTech=function(t){return t.prototype instanceof i||t instanceof i||t===i},i.registerTech=function(t,s){if(i.gt||(i.gt={}),!i.isTech(s))throw new v("Tech "+t+" must be a Tech");return i.gt[t]=s,s},i.getTech=function(t){return i.gt&&i.gt[t]?i.gt[t]:ss&&ss.videojs&&ss.videojs[t]?(ps.warn("The "+t+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),ss.videojs[t]):void 0},i}(Be);jh.prototype.nt,jh.prototype.ht,jh.prototype.rt,jh.prototype.featuresVolumeControl=!0,jh.prototype.featuresFullscreenResize=!1,jh.prototype.featuresPlaybackRate=!1,jh.prototype.featuresProgressEvents=!1,jh.prototype.featuresTimeupdateEvents=!1,jh.prototype.featuresNativeTextTracks=!1,jh.withSourceHandlers=function(t){t.registerSourceHandler=function(i,s){var e=t.sourceHandlers;e||(e=t.sourceHandlers=[]),void 0===s&&(s=e.length),e.splice(s,0,i)},t.canPlayType=function(i){for(var s,e=t.sourceHandlers||[],n=0;n<e.length;n++)if(s=e[n].canPlayType(i))return s;return""},t.selectSourceHandler=function(i,s){for(var e=t.sourceHandlers||[],n=0;n<e.length;n++)if(e[n].canHandleSource(i,s))return e[n];return null},t.canPlaySource=function(i,s){var e=t.selectSourceHandler(i,s);return e?e.canHandleSource(i,s):""};["seekable","duration"].forEach(function(t){var i=this[t];"function"==typeof i&&(this[t]=function(){return this.yt&&this.yt[t]?this.yt[t].apply(this.yt,arguments):i.apply(this,arguments)})},t.prototype),t.prototype.setSource=function(i){var s=t.selectSourceHandler(i,this.h);return s||(t.nativeSourceHandler?s=t.nativeSourceHandler:ps.error("No source hander found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler),s!==t.nativeSourceHandler&&(this.bt=i,this.off(this.v,"loadstart",t.prototype.wt),this.off(this.v,"loadstart",t.prototype.kt),this.one(this.v,"loadstart",t.prototype.wt)),this.yt=s.handleSource(i,this,this.h),this.on("dispose",this.disposeSourceHandler),this},t.prototype.wt=function(){this.one(this.v,"loadstart",t.prototype.kt)},t.prototype.kt=function(){this.disposeSourceHandler(),this.one(this.v,"loadstart",t.prototype.kt)},t.prototype.disposeSourceHandler=function(){this.bt&&(this.clearTracks(["audio","video"]),this.bt=null),this.cleanupAutoTextTracks(),this.yt&&(this.off(this.v,"loadstart",t.prototype.wt),this.off(this.v,"loadstart",t.prototype.kt),this.yt.dispose&&this.yt.dispose(),this.yt=null)}},Be.registerComponent("Tech",jh),Be.registerComponent("MediaTechController",jh),jh.registerTech("Tech",jh);var xh=function(t){function i(i,s,e){var n;if(n=t.call(this,i,s,e)||this,s.playerOptions.sources&&0!==s.playerOptions.sources.length)i.src(s.playerOptions.sources);else for(var r=0,h=s.playerOptions.techOrder;r<h.length;r++){var o=Ne(h[r]),a=jh.getTech(o);if(o||(a=Be.getComponent(o)),a&&a.isSupported()){i._t(o);break}}return n}return Ve(i,t),i}(Be);Be.registerComponent("MediaLoader",xh);var Sh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).emitTapEvents(),e.on(i,"languagechange",e.handleLanguagechange),e.enable(),e}Ve(i,t);var s=i.prototype;return s.createEl=function(i,s,e){void 0===i&&(i="div"),void 0===s&&(s={}),void 0===e&&(e={}),s=ls({className:this.buildCSSClass(),tabIndex:0},s),"button"===i&&ps.error("Creating a ClickableComponent with an HTML element of "+i+" is not supported; use a Button instead."),e=ls({role:"button","aria-live":"polite"},e),this.jt=s.tabIndex;var n=t.prototype.createEl.call(this,i,s,e);return this.createControlTextEl(n),n},s.createControlTextEl=function(t){return this.xt=Ss("span",{className:"vjs-control-text"}),t&&t.appendChild(this.xt),this.controlText(this.St,t),this.xt},s.controlText=function(t,i){if(void 0===i&&(i=this.el()),void 0===t)return this.St||"Need Text";var s=this.localize(t);return this.St=t,this.xt.innerHTML=s,this.nonIconControl||i.setAttribute("title",s),this},s.buildCSSClass=function(){return"vjs-control vjs-button "+t.prototype.buildCSSClass.call(this)},s.enable=function(){return this.removeClass("vjs-disabled"),this.v.setAttribute("aria-disabled","false"),void 0!==this.jt&&this.v.setAttribute("tabIndex",this.jt),this.off(["tap","click"],this.handleClick),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur),this.on(["tap","click"],this.handleClick),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur),this},s.disable=function(){return this.addClass("vjs-disabled"),this.v.setAttribute("aria-disabled","true"),void 0!==this.jt&&this.v.removeAttribute("tabIndex"),this.off(["tap","click"],this.handleClick),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur),this},s.handleLanguagechange=function(){this.controlText(this.St)},s.handleClick=function(t){},s.handleFocus=function(t){je(es,"keydown",De(this,this.handleKeyPress))},s.handleKeyPress=function(i){32===i.which||13===i.which?(i.preventDefault(),this.handleClick(i)):t.prototype.handleKeyPress&&t.prototype.handleKeyPress.call(this,i)},s.handleBlur=function(t){xe(es,"keydown",De(this,this.handleKeyPress))},i}(Be);Be.registerComponent("ClickableComponent",Sh);var Th=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).update(),i.on("posterchange",De(Re(e),e.update)),e}Ve(i,t);var s=i.prototype;return s.dispose=function(){this.player().off("posterchange",this.update),t.prototype.dispose.call(this)},s.createEl=function(){var t=Ss("div",{className:"vjs-poster",tabIndex:-1});return me||(this.Tt=Ss("img"),t.appendChild(this.Tt)),t},s.update=function(t){var i=this.player().poster();this.setSrc(i),i?this.show():this.hide()},s.setSrc=function(t){if(this.Tt)this.Tt.src=t;else{var i="";t&&(i='url("'+t+'")'),this.v.style.backgroundImage=i}},s.handleClick=function(t){this.t.controls()&&(this.t.paused()?this.t.play():this.t.pause())},i}(Sh);Be.registerComponent("PosterImage",Th);var Ch="#222",Ph={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'};function Mh(t,i){return"rgba("+k(t[1]+t[1],16)+","+k(t[2]+t[2],16)+","+k(t[3]+t[3],16)+","+i+")"}function Ah(t,i,s){try{t.style[i]=s}catch(t){return}}var Ih=function(t){function i(i,s,e){var n;return n=t.call(this,i,s,e)||this,i.on("loadstart",De(Re(n),n.toggleDisplay)),i.on("texttrackchange",De(Re(n),n.updateDisplay)),i.ready(De(Re(n),function(){if(i.H&&i.H.featuresNativeTextTracks)this.hide();else{i.on("fullscreenchange",De(this,this.updateDisplay));for(var t=this.h.playerOptions.tracks||[],s=0;s<t.length;s++)this.t.addRemoteTextTrack(t[s],!0);var e,n,r={captions:1,subtitles:1},h=this.t.textTracks();if(h){for(var o=0;o<h.length;o++){var a=h[o];a.default&&("descriptions"!==a.kind||e?a.kind in r&&!n&&(n=a):e=a)}n?n.mode="showing":e&&(e.mode="showing")}}})),n}Ve(i,t);var s=i.prototype;return s.toggleDisplay=function(){this.t.H&&this.t.H.featuresNativeTextTracks?this.hide():this.show()},s.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"off","aria-atomic":"true"})},s.clearDisplay=function(){"function"==typeof ss.WebVTT&&ss.WebVTT.processCues(ss,[],this.v)},s.updateDisplay=function(){var t=this.t.textTracks();if(this.clearDisplay(),t){for(var i=null,s=null,e=t.length;e--;){var n=t[e];"showing"===n.mode&&("descriptions"===n.kind?i=n:s=n)}s?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(s)):i&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(i))}},s.updateForTrack=function(t){if("function"==typeof ss.WebVTT&&t.activeCues){for(var i=this.t.textTrackSettings.getValues(),s=[],e=0;e<t.activeCues.length;e++)s.push(t.activeCues[e]);ss.WebVTT.processCues(ss,s,this.v);for(var n=s.length;n--;){var r=s[n];if(r){var h=r.displayState;if(i.color&&(h.firstChild.style.color=i.color),i.textOpacity&&Ah(h.firstChild,"color",Mh(i.color||"#fff",i.textOpacity)),i.backgroundColor&&(h.firstChild.style.backgroundColor=i.backgroundColor),i.backgroundOpacity&&Ah(h.firstChild,"backgroundColor",Mh(i.backgroundColor||"#000",i.backgroundOpacity)),i.windowColor&&(i.windowOpacity?Ah(h,"backgroundColor",Mh(i.windowColor,i.windowOpacity)):h.style.backgroundColor=i.windowColor),i.edgeStyle&&("dropshadow"===i.edgeStyle?h.firstChild.style.textShadow="2px 2px 3px #222, 2px 2px 4px #222, 2px 2px 5px "+Ch:"raised"===i.edgeStyle?h.firstChild.style.textShadow="1px 1px #222, 2px 2px #222, 3px 3px "+Ch:"depressed"===i.edgeStyle?h.firstChild.style.textShadow="1px 1px #ccc, 0 1px #ccc, -1px -1px #222, 0 -1px "+Ch:"uniform"===i.edgeStyle&&(h.firstChild.style.textShadow="0 0 4px #222, 0 0 4px #222, 0 0 4px #222, 0 0 4px "+Ch)),i.fontPercent&&1!==i.fontPercent){var o=ss.parseFloat(h.style.fontSize);h.style.fontSize=o*i.fontPercent+"px",h.style.height="auto",h.style.top="auto",h.style.bottom="2px"}i.fontFamily&&"default"!==i.fontFamily&&("small-caps"===i.fontFamily?h.firstChild.style.fontVariant="small-caps":h.firstChild.style.fontFamily=Ph[i.fontFamily])}}}},i}(Be);Be.registerComponent("TextTrackDisplay",Ih);var Eh=function(t){function i(){return t.apply(this,arguments)||this}return Ve(i,t),i.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"})},i}(Be);Be.registerComponent("LoadingSpinner",Eh);var Dh=function(t){function i(){return t.apply(this,arguments)||this}Ve(i,t);var s=i.prototype;return s.createEl=function(t,i,s){void 0===t&&(t="button"),void 0===i&&(i={}),void 0===s&&(s={}),i=ls({className:this.buildCSSClass()},i),"button"!==t&&(ps.warn("Creating a Button with an HTML element of "+t+" is deprecated; use ClickableComponent instead."),i=ls({tabIndex:0},i),s=ls({role:"button"},s)),s=ls({type:"button","aria-live":"polite"},s);var e=Be.prototype.createEl.call(this,t,i,s);return this.createControlTextEl(e),e},s.addChild=function(t,i){void 0===i&&(i={});var s=this.constructor.name;return ps.warn("Adding an actionable (user controllable) child to a Button ("+s+") is not supported; use a ClickableComponent instead."),Be.prototype.addChild.call(this,t,i)},s.enable=function(){t.prototype.enable.call(this),this.v.removeAttribute("disabled")},s.disable=function(){t.prototype.disable.call(this),this.v.setAttribute("disabled","disabled")},s.handleKeyPress=function(i){32!==i.which&&13!==i.which&&t.prototype.handleKeyPress.call(this,i)},i}(Sh);Be.registerComponent("Button",Dh);var Nh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).Ct=!1,e.on("mousedown",e.handleMouseDown),e}Ve(i,t);var s=i.prototype;return s.buildCSSClass=function(){return"vjs-big-play-button"},s.handleClick=function(t){var i=this;if(this.Ct&&t.clientX&&t.clientY)this.t.play();else{var s=this.t.getChild("controlBar"),e=s&&s.getChild("playToggle");this.one(this.t,"play",function(){e?e.focus():i.t.focus()}),this.t.play()}},s.handleKeyPress=function(i){this.Ct=!1,t.prototype.handleKeyPress.call(this,i)},s.handleMouseDown=function(t){this.Ct=!0},i}(Dh);Nh.prototype.St="Play Video",Be.registerComponent("BigPlayButton",Nh);var Fh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).controlText(s&&s.controlText||"Close"),e}Ve(i,t);var s=i.prototype;return s.buildCSSClass=function(){return"vjs-close-button "+t.prototype.buildCSSClass.call(this)},s.handleClick=function(t){this.trigger({type:"close",bubbles:!1})},i}(Dh);Be.registerComponent("CloseButton",Fh);var Bh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).on(i,"play",e.handlePlay),e.on(i,"pause",e.handlePause),e}Ve(i,t);var s=i.prototype;return s.buildCSSClass=function(){return"vjs-play-control "+t.prototype.buildCSSClass.call(this)},s.handleClick=function(t){this.t.paused()?this.t.play():this.t.pause()},s.handlePlay=function(t){this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},s.handlePause=function(t){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},i}(Dh);function $h(t,i){void 0===i&&(i=t),t=t<0?0:t;var s=w.floor(t%60),e=w.floor(t/60%60),n=w.floor(t/3600),r=w.floor(i/60%60),h=w.floor(i/3600);return(j(t)||t===1/0)&&(n=e=s="-"),(n=n>0||h>0?n+":":"")+(e=((n||r>=10)&&e<10?"0"+e:e)+":")+(s=s<10?"0"+s:s)}Bh.prototype.St="Play",Be.registerComponent("PlayToggle",Bh);var Rh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).on(i,"timeupdate",e.updateContent),e.on(i,"languagechange",e.updateContent),e}Ve(i,t);var s=i.prototype;return s.createEl=function(){var i=t.prototype.createEl.call(this,"div",{className:"vjs-current-time vjs-time-control vjs-control"});return this.S=Ss("div",{className:"vjs-current-time-display",innerHTML:'<span class="vjs-control-text">Current Time </span>0:00'},{"aria-live":"off"}),i.appendChild(this.S),i},s.updateContent=function(t){var i=this.t.scrubbing()?this.t.getCache().currentTime:this.t.currentTime(),s=this.localize("Current Time"),e=$h(i,this.t.duration());e!==this.Pt&&(this.Pt=e,this.S.innerHTML='<span class="vjs-control-text">'+s+"</span> "+e)},i}(Be);Be.registerComponent("CurrentTimeDisplay",Rh);var Oh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).on(i,"durationchange",e.updateContent),e.on(i,"timeupdate",e.updateContent),e.on(i,"loadedmetadata",e.updateContent),e.on(i,"languagechange",e.updateContent),e}Ve(i,t);var s=i.prototype;return s.createEl=function(){var i=t.prototype.createEl.call(this,"div",{className:"vjs-duration vjs-time-control vjs-control"});return this.S=Ss("div",{className:"vjs-duration-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Duration Time")+"</span> 0:00"},{"aria-live":"off"}),i.appendChild(this.S),i},s.updateContent=function(t){var i=this.t.duration();if(i&&this.ct!==i){this.ct=i;var s=this.localize("Duration Time"),e=$h(i);this.S.innerHTML='<span class="vjs-control-text">'+s+"</span> "+e}},i}(Be);Be.registerComponent("DurationDisplay",Oh);var Vh=function(t){function i(){return t.apply(this,arguments)||this}return Ve(i,t),i.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/</span></div>"})},i}(Be);Be.registerComponent("TimeDivider",Vh);var Uh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).on(i,"timeupdate",e.updateContent),e.on(i,"durationchange",e.updateContent),e.on(i,"languagechange",e.updateContent),e}Ve(i,t);var s=i.prototype;return s.createEl=function(){var i=t.prototype.createEl.call(this,"div",{className:"vjs-remaining-time vjs-time-control vjs-control"});return this.S=Ss("div",{className:"vjs-remaining-time-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Remaining Time")+"</span> -0:00"},{"aria-live":"off"}),i.appendChild(this.S),i},s.updateContent=function(t){if(this.t.duration()){var i=this.localize("Remaining Time"),s=$h(this.t.remainingTime());s!==this.Pt&&(this.Pt=s,this.S.innerHTML='<span class="vjs-control-text">'+i+"</span> -"+s)}},i}(Be);Be.registerComponent("RemainingTimeDisplay",Uh);var Lh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).updateShowing(),e.on(e.player(),"durationchange",e.updateShowing),e.on(e.player(),"languagechange",e.handleLanguagechange),e}Ve(i,t);var s=i.prototype;return s.createEl=function(){var i=t.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.S=Ss("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.xt=Ss("span",{className:"vjs-control-text",innerHTML:this.localize("Stream Type")}),this.Mt=es.createTextNode(this.localize("LIVE")),this.S.appendChild(this.xt),this.S.appendChild(this.Mt),i.appendChild(this.S),i},s.updateShowing=function(t){this.player().duration()===1/0?this.show():this.hide()},s.handleLanguagechange=function(){this.xt.innerHTML=this.localize("Stream Type"),this.Mt.innerHTML=this.localize("LIVE")},i}(Be);Be.registerComponent("LiveDisplay",Lh);var Hh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).bar=e.getChild(e.h.barName),e.vertical(!!e.h.vertical),e.on("mousedown",e.handleMouseDown),e.on("touchstart",e.handleMouseDown),e.on("focus",e.handleFocus),e.on("blur",e.handleBlur),e.on("click",e.handleClick),e.on(i,"controlsvisible",e.update),e.on(i,e.playerEvent,e.update),e}Ve(i,t);var s=i.prototype;return s.createEl=function(i,s,e){return void 0===s&&(s={}),void 0===e&&(e={}),s.className=s.className+" vjs-slider",s=ls({tabIndex:0},s),e=ls({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},e),t.prototype.createEl.call(this,i,s,e)},s.handleMouseDown=function(t){var i=this.bar.v.ownerDocument;t.preventDefault(),es.body.focus(),es.onselectstart=function(){return!1},this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(i,"mousemove",this.handleMouseMove),this.on(i,"mouseup",this.handleMouseUp),this.on(i,"touchmove",this.handleMouseMove),this.on(i,"touchend",this.handleMouseUp),this.handleMouseMove(t)},s.handleMouseMove=function(t){},s.handleMouseUp=function(){var t=this.bar.v.ownerDocument;es.onselectstart=function(){return!0},this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(t,"mousemove",this.handleMouseMove),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchmove",this.handleMouseMove),this.off(t,"touchend",this.handleMouseUp),this.update()},s.update=function(){if(this.v){var t=this.getPercent(),i=this.bar;if(i){("number"!=typeof t||t!=t||t<0||t===1/0)&&(t=0);var s=(100*t).toFixed(2)+"%";this.vertical()?i.el().style.height=s:i.el().style.width=s}}},s.calculateDistance=function(t){var i=Ls(this.v,t);return this.vertical()?i.y:i.x},s.handleFocus=function(){this.on(this.bar.v.ownerDocument,"keydown",this.handleKeyPress)},s.handleKeyPress=function(t){37===t.which||40===t.which?(t.preventDefault(),this.stepBack()):38!==t.which&&39!==t.which||(t.preventDefault(),this.stepForward())},s.handleBlur=function(){this.off(this.bar.v.ownerDocument,"keydown",this.handleKeyPress)},s.handleClick=function(t){t.stopImmediatePropagation(),t.preventDefault()},s.vertical=function(t){return void 0===t?this.At||!1:(this.At=!!t,this.At?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal"),this)},i}(Be);function zh(t,i){if(!t||!i)return"";if("function"==typeof ss.getComputedStyle){var s=ss.getComputedStyle(t);return s?s[i]:""}return t.currentStyle[i]||""}Be.registerComponent("Slider",Hh);var Wh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).It=[],e.on(i,"progress",e.update),e.on(i,"languagechange",e.handleLanguagechange),e}Ve(i,t);var s=i.prototype;return s.createEl=function(){var i=t.prototype.createEl.call(this,"div",{className:"vjs-load-progress"});return this.Et=Ss("span",{innerHTML:this.localize("Loaded")}),this.Dt=es.createTextNode(": 0%"),this.xt=Ss("span",{className:"vjs-control-text"}),this.xt.appendChild(this.Et),this.xt.appendChild(this.Dt),i.appendChild(this.xt),i},s.update=function(t){var i=this.t.buffered(),s=this.t.duration(),e=this.t.bufferedEnd(),n=this.It,r=function(t,i){var s=t/i||0;return 100*(s>=1?1:s)+"%"};this.v.style.width=r(e,s);for(var h=0;h<i.length;h++){var o=i.start(h),a=i.end(h),u=n[h];u||(u=this.v.appendChild(Ss()),n[h]=u),u.style.left=r(o,e),u.style.width=r(a-o,e)}for(var c=n.length;c>i.length;c--)this.v.removeChild(n[c-1]);n.length=i.length},s.handleLanguagechange=function(){this.Et.innerHTML=this.localize("Loaded")},i}(Be);Be.registerComponent("LoadProgressBar",Wh);var qh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).updateDataAttr(),e.on(i,"timeupdate",e.updateDataAttr),e.on(i,"languagechange",e.handleLanguagechange),i.ready(De(Re(e),e.updateDataAttr)),s.playerOptions&&s.playerOptions.controlBar&&s.playerOptions.controlBar.progressControl&&s.playerOptions.controlBar.progressControl.keepTooltipsInside&&(e.keepTooltipsInside=s.playerOptions.controlBar.progressControl.keepTooltipsInside),e.keepTooltipsInside&&e.addClass("vjs-keep-tooltips-inside"),e}Ve(i,t);var s=i.prototype;return s.createEl=function(){var i=t.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar"});return this.Nt=Ss("span",{innerHTML:this.localize("Progress")}),this.Ft=es.createTextNode(": 0%"),this.xt=Ss("span",{className:"vjs-control-text"}),this.xt.appendChild(this.Nt),this.xt.appendChild(this.Ft),i.appendChild(this.xt),i},s.updateDataAttr=function(t){var i=this.t.scrubbing()?this.t.getCache().currentTime:this.t.currentTime();this.v.setAttribute("data-current-time",$h(i,this.t.duration()))},s.handleLanguagechange=function(){this.Nt.innerHTML=this.localize("Progress")},i}(Be);Be.registerComponent("PlayProgressBar",qh);var Gh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).updateDataAttr(),e.on(i,"timeupdate",e.updateDataAttr),e.on(i,"languagechange",e.handleLanguagechange),i.ready(De(Re(e),e.updateDataAttr)),e}Ve(i,t);var s=i.prototype;return s.createEl=function(){var i=t.prototype.createEl.call(this,"div",{className:"vjs-tooltip-progress-bar vjs-slider-bar"});return this.tooltip=Ss("div",{className:"vjs-time-tooltip"}),this.Nt=Ss("span",{innerHTML:this.localize("Progress")}),this.Ft=es.createTextNode(": 0%"),this.xt=Ss("span",{className:"vjs-control-text"}),this.xt.appendChild(this.Nt),this.xt.appendChild(this.Ft),i.appendChild(this.tooltip),i.appendChild(this.xt),i},s.updateDataAttr=function(t){var i=$h(this.t.scrubbing()?this.t.getCache().currentTime:this.t.currentTime(),this.t.duration());this.v.setAttribute("data-current-time",i),this.tooltip.innerHTML=i},s.handleLanguagechange=function(){this.Nt.innerHTML=this.localize("Progress")},i}(Be);Be.registerComponent("TooltipProgressBar",Gh);var Xh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).on(i,"timeupdate",e.updateProgress),e.on(i,"ended",e.updateProgress),i.ready(De(Re(e),e.updateProgress)),s.playerOptions&&s.playerOptions.controlBar&&s.playerOptions.controlBar.progressControl&&s.playerOptions.controlBar.progressControl.keepTooltipsInside&&(e.keepTooltipsInside=s.playerOptions.controlBar.progressControl.keepTooltipsInside),e.keepTooltipsInside&&(e.tooltipProgressBar=e.addChild("TooltipProgressBar")),e}Ve(i,t);var s=i.prototype;return s.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":"progress bar"})},s.updateProgress=function(t){if(this.updateAriaAttributes(this.v),this.keepTooltipsInside){this.updateAriaAttributes(this.tooltipProgressBar.v),this.tooltipProgressBar.v.style.width=this.bar.v.style.width;var i=_(zh(this.player().el(),"width")),s=_(zh(this.tooltipProgressBar.tooltip,"width")),e=this.tooltipProgressBar.el().style;e.maxWidth=w.floor(i-s/2)+"px",e.minWidth=w.ceil(s/2)+"px",e.right="-"+s/2+"px"}},s.updateAriaAttributes=function(t){var i=this.t.scrubbing()?this.t.getCache().currentTime:this.t.currentTime();t.setAttribute("aria-valuenow",(100*this.getPercent()).toFixed(2)),t.setAttribute("aria-valuetext",$h(i,this.t.duration()))},s.getPercent=function(){var t=this.t.currentTime()/this.t.duration();return t>=1?1:t},s.handleMouseDown=function(i){this.t.scrubbing(!0),this.videoWasPlaying=!this.t.paused(),this.t.pause(),t.prototype.handleMouseDown.call(this,i)},s.handleMouseMove=function(t){var i=this.calculateDistance(t)*this.t.duration();i===this.t.duration()&&(i-=.1),this.t.currentTime(i)},s.handleMouseUp=function(i){t.prototype.handleMouseUp.call(this,i),this.t.scrubbing(!1),this.videoWasPlaying&&this.t.play()},s.stepForward=function(){this.t.currentTime(this.t.currentTime()+5)},s.stepBack=function(){this.t.currentTime(this.t.currentTime()-5)},i}(Hh);Xh.prototype.h={children:["loadProgressBar","mouseTimeDisplay","playProgressBar"],barName:"playProgressBar"},Xh.prototype.playerEvent="timeupdate",Be.registerComponent("SeekBar",Xh);var Jh=function(t){function i(i,s){var e;return e=t.call(this,i,s)||this,s.playerOptions&&s.playerOptions.controlBar&&s.playerOptions.controlBar.progressControl&&s.playerOptions.controlBar.progressControl.keepTooltipsInside&&(e.keepTooltipsInside=s.playerOptions.controlBar.progressControl.keepTooltipsInside),e.keepTooltipsInside&&(e.tooltip=Ss("div",{className:"vjs-time-tooltip"}),e.el().appendChild(e.tooltip),e.addClass("vjs-keep-tooltips-inside")),e.update(0,0),i.on("ready",function(){e.on(i.controlBar.progressControl.el(),"mousemove",function(t,i){var s=Date.now();return function(){var e=Date.now();e-s>=i&&(t.apply(void 0,arguments),s=e)}}(De(Re(e),e.handleMouseMove),25))}),e}Ve(i,t);var s=i.prototype;return s.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},s.handleMouseMove=function(t){var i=this.t.duration(),s=this.calculateDistance(t)*i,e=t.pageX-Us(this.el().parentNode).left;this.update(s,e)},s.update=function(t,i){var s=$h(t,this.t.duration());if(this.el().style.left=i+"px",this.el().setAttribute("data-current-time",s),this.keepTooltipsInside){var e=i-this.Bt(i)+1,n=_(zh(this.tooltip,"width"))/2;this.tooltip.innerHTML=s,this.tooltip.style.right="-"+(n-e)+"px"}},s.calculateDistance=function(t){return Ls(this.el().parentNode,t).x},s.Bt=function(t){if(!this.keepTooltipsInside)return t;var i=_(zh(this.player().el(),"width")),s=_(zh(this.tooltip,"width"))/2,e=t;return t<s?e=w.ceil(s):t>i-s&&(e=w.floor(i-s)),e},i}(Be);Be.registerComponent("MouseTimeDisplay",Jh);var Qh=function(t){function i(){return t.apply(this,arguments)||this}return Ve(i,t),i.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},i}(Be);Qh.prototype.h={children:["seekBar"]},Be.registerComponent("ProgressControl",Qh);var Yh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).on(i,"fullscreenchange",e.handleFullscreenChange),e}Ve(i,t);var s=i.prototype;return s.buildCSSClass=function(){return"vjs-fullscreen-control "+t.prototype.buildCSSClass.call(this)},s.handleFullscreenChange=function(t){this.t.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},s.handleClick=function(t){this.t.isFullscreen()?this.t.exitFullscreen():this.t.requestFullscreen()},i}(Dh);Yh.prototype.St="Fullscreen",Be.registerComponent("FullscreenToggle",Yh);var Kh=function(t){function i(){return t.apply(this,arguments)||this}return Ve(i,t),i.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'})},i}(Be);Be.registerComponent("VolumeLevel",Kh);var Zh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).on(i,"volumechange",e.updateARIAAttributes),i.ready(De(Re(e),e.updateARIAAttributes)),e}Ve(i,t);var s=i.prototype;return s.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":"volume level"})},s.handleMouseMove=function(t){this.checkMuted(),this.t.volume(this.calculateDistance(t))},s.checkMuted=function(){this.t.muted()&&this.t.muted(!1)},s.getPercent=function(){return this.t.muted()?0:this.t.volume()},s.stepForward=function(){this.checkMuted(),this.t.volume(this.t.volume()+.1)},s.stepBack=function(){this.checkMuted(),this.t.volume(this.t.volume()-.1)},s.updateARIAAttributes=function(t){var i=(100*this.t.volume()).toFixed(2);this.v.setAttribute("aria-valuenow",i),this.v.setAttribute("aria-valuetext",i+"%")},i}(Hh);Zh.prototype.h={children:["volumeLevel"],barName:"volumeLevel"},Zh.prototype.playerEvent="volumechange",Be.registerComponent("VolumeBar",Zh);var to=function(t){function i(i,s){var e;return e=t.call(this,i,s)||this,i.H&&!1===i.H.featuresVolumeControl&&e.addClass("vjs-hidden"),e.on(i,"loadstart",function(){!1===i.H.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}),e}return Ve(i,t),i.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control"})},i}(Be);to.prototype.h={children:["volumeBar"]},Be.registerComponent("VolumeControl",to);var io=function(t){function i(){return t.apply(this,arguments)||this}Ve(i,t);var s=i.prototype;return s.addItem=function(t){this.addChild(t),t.on("click",De(this,function(){this.unlockShowing()}))},s.createEl=function(){var i=this.h.contentElType||"ul";this.S=Ss(i,{className:"vjs-menu-content"});var s=t.prototype.createEl.call(this,"div",{append:this.S,className:"vjs-menu"});return s.appendChild(this.S),je(s,"click",function(t){t.preventDefault(),t.stopImmediatePropagation()}),s},i}(Be);Be.registerComponent("Popup",io);var so=function(t){function i(i,s){var e;return void 0===s&&(s={}),(e=t.call(this,i,s)||this).update(),e}Ve(i,t);var s=i.prototype;return s.update=function(){var t=this.createPopup();this.popup&&this.removeChild(this.popup),this.popup=t,this.addChild(t),this.items&&0===this.items.length?this.hide():this.items&&this.items.length>1&&this.show()},s.createPopup=function(){},s.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},s.buildCSSClass=function(){var i="vjs-menu-button";return!0===this.h.inline?i+="-inline":i+="-popup","vjs-menu-button "+i+" "+t.prototype.buildCSSClass.call(this)},i}(Sh);Be.registerComponent("PopupButton",so);var eo=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).on(i,"volumechange",e.update),i.H&&!1===i.H.featuresVolumeControl&&e.addClass("vjs-hidden"),e.on(i,"loadstart",function(){this.update(),!1===i.H.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}),e}Ve(i,t);var s=i.prototype;return s.buildCSSClass=function(){return"vjs-mute-control "+t.prototype.buildCSSClass.call(this)},s.handleClick=function(t){this.t.muted(!this.t.muted())},s.update=function(t){var i=this.t.volume(),s=3;this.t.muted()?s=0:i<.33?s=1:i<.67&&(s=2);var e=this.t.muted()?"Unmute":"Mute";this.controlText()!==e&&this.controlText(e);for(var n=0;n<4;n++)Fs(this.v,"vjs-vol-"+n);Ns(this.v,"vjs-vol-"+s)},i}(Dh);eo.prototype.St="Mute",Be.registerComponent("MuteToggle",eo);var no=function(t){function i(i,s){var e;function n(){i.H&&!1===i.H.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}return void 0===s&&(s={}),void 0===s.inline&&(s.inline=!0),void 0===s.vertical&&(s.inline?s.vertical=!1:s.vertical=!0),s.volumeBar=s.volumeBar||{},s.volumeBar.vertical=!!s.vertical,(e=t.call(this,i,s)||this).on(i,"volumechange",e.volumeUpdate),e.on(i,"loadstart",e.volumeUpdate),n.call(Re(e)),e.on(i,"loadstart",n),e.on(e.volumeBar,["slideractive","focus"],function(){this.addClass("vjs-slider-active")}),e.on(e.volumeBar,["sliderinactive","blur"],function(){this.removeClass("vjs-slider-active")}),e.on(e.volumeBar,["focus"],function(){this.addClass("vjs-lock-showing")}),e.on(e.volumeBar,["blur"],function(){this.removeClass("vjs-lock-showing")}),e}Ve(i,t);var s=i.prototype;return s.buildCSSClass=function(){var i="";return i=this.h.vertical?"vjs-volume-menu-button-vertical":"vjs-volume-menu-button-horizontal","vjs-volume-menu-button "+t.prototype.buildCSSClass.call(this)+" "+i},s.createPopup=function(){var t=new io(this.t,{contentElType:"div"}),i=new Zh(this.t,this.h.volumeBar);return t.addChild(i),this.menuContent=t,this.volumeBar=i,this.attachVolumeBarEvents(),t},s.handleClick=function(i){eo.prototype.handleClick.call(this),t.prototype.handleClick.call(this)},s.attachVolumeBarEvents=function(){this.menuContent.on(["mousedown","touchdown"],De(this,this.handleMouseDown))},s.handleMouseDown=function(t){this.on(["mousemove","touchmove"],De(this.volumeBar,this.volumeBar.handleMouseMove)),this.on(this.v.ownerDocument,["mouseup","touchend"],this.handleMouseUp)},s.handleMouseUp=function(t){this.off(["mousemove","touchmove"],De(this.volumeBar,this.volumeBar.handleMouseMove))},i}(so);no.prototype.volumeUpdate=eo.prototype.update,no.prototype.St="Mute",Be.registerComponent("VolumeMenuButton",no);var ro=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).$t=-1,e.on("keydown",e.handleKeyPress),e}Ve(i,t);var s=i.prototype;return s.addItem=function(t){this.addChild(t),t.on("click",De(this,function(t){this.unlockShowing()}))},s.createEl=function(){var i=this.h.contentElType||"ul";this.S=Ss(i,{className:"vjs-menu-content"}),this.S.setAttribute("role","menu");var s=t.prototype.createEl.call(this,"div",{append:this.S,className:"vjs-menu"});return s.setAttribute("role","presentation"),s.appendChild(this.S),je(s,"click",function(t){t.preventDefault(),t.stopImmediatePropagation()}),s},s.handleKeyPress=function(t){37===t.which||40===t.which?(t.preventDefault(),this.stepForward()):38!==t.which&&39!==t.which||(t.preventDefault(),this.stepBack())},s.stepForward=function(){var t=0;void 0!==this.$t&&(t=this.$t+1),this.focus(t)},s.stepBack=function(){var t=0;void 0!==this.$t&&(t=this.$t-1),this.focus(t)},s.focus=function(t){void 0===t&&(t=0);var i=this.children().slice();i.length&&i[0].className&&/vjs-menu-title/.test(i[0].className)&&i.shift(),i.length>0&&(t<0?t=0:t>=i.length&&(t=i.length-1),this.$t=t,i[t].v.focus())},i}(Be);Be.registerComponent("Menu",ro);var ho=function(t){function i(i,s){var e;return void 0===s&&(s={}),(e=t.call(this,i,s)||this).update(),e.Rt=!0,e.v.setAttribute("aria-haspopup","true"),e.v.setAttribute("role","menuitem"),e.on("keydown",e.handleSubmenuKeyPress),e}Ve(i,t);var s=i.prototype;return s.update=function(){var t=this.createMenu();this.menu&&this.removeChild(this.menu),this.menu=t,this.addChild(t),this.Ot=!1,this.v.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.Vt?this.hide():this.show()},s.createMenu=function(){var t=new ro(this.t);if(this.Vt=0,this.h.title){var i=Ss("li",{className:"vjs-menu-title",innerHTML:Ne(this.h.title),tabIndex:-1});this.Vt+=1,t.m.unshift(i),Cs(i,t.contentEl())}if(this.items=this.createItems(),this.items)for(var s=0;s<this.items.length;s++)t.addItem(this.items[s]);return t},s.createItems=function(){},s.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},s.buildCSSClass=function(){var i="vjs-menu-button";return!0===this.h.inline?i+="-inline":i+="-popup","vjs-menu-button "+i+" "+t.prototype.buildCSSClass.call(this)},s.handleClick=function(t){this.one(this.menu.contentEl(),"mouseleave",De(this,function(t){this.unpressButton(),this.v.blur()})),this.Ot?this.unpressButton():this.pressButton()},s.handleKeyPress=function(i){27===i.which||9===i.which?(this.Ot&&this.unpressButton(),9!==i.which&&i.preventDefault()):38===i.which||40===i.which?this.Ot||(this.pressButton(),i.preventDefault()):t.prototype.handleKeyPress.call(this,i)},s.handleSubmenuKeyPress=function(t){27!==t.which&&9!==t.which||(this.Ot&&this.unpressButton(),9!==t.which&&t.preventDefault())},s.pressButton=function(){this.Rt&&(this.Ot=!0,this.menu.lockShowing(),this.v.setAttribute("aria-expanded","true"),this.menu.focus())},s.unpressButton=function(){this.Rt&&(this.Ot=!1,this.menu.unlockShowing(),this.v.setAttribute("aria-expanded","false"),this.v.focus())},s.disable=function(){return this.Ot=!1,this.menu.unlockShowing(),this.v.setAttribute("aria-expanded","false"),this.Rt=!1,t.prototype.disable.call(this)},s.enable=function(){return this.Rt=!0,t.prototype.enable.call(this)},i}(Sh);Be.registerComponent("MenuButton",ho);var oo=function(t){function i(i,s){var e,n=s.tracks;if((e=t.call(this,i,s)||this).items.length<=1&&e.hide(),!n)return Re(e);var r=De(Re(e),e.update);return n.addEventListener("removetrack",r),n.addEventListener("addtrack",r),e.t.on("dispose",function(){n.removeEventListener("removetrack",r),n.removeEventListener("addtrack",r)}),e}return Ve(i,t),i}(ho);Be.registerComponent("TrackButton",oo);var ao=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).selectable=s.selectable,e.selected(s.selected),e.selectable?e.v.setAttribute("role","menuitemcheckbox"):e.v.setAttribute("role","menuitem"),e}Ve(i,t);var s=i.prototype;return s.createEl=function(i,s,e){this.nonIconControl=!0;var n=t.prototype.createEl.call(this,"li",ls({className:"vjs-menu-item",tabIndex:-1},s),e);return this.Ut=es.createTextNode(this.localize(this.h.label)),n.appendChild(this.Ut),n},s.handleClick=function(t){this.selected(!0)},s.selected=function(t){this.selectable&&(t?(this.addClass("vjs-selected"),this.v.setAttribute("aria-checked","true"),this.controlText(", selected")):(this.removeClass("vjs-selected"),this.v.setAttribute("aria-checked","false"),this.controlText("")))},s.handleLanguagechange=function(){t.prototype.handleLanguagechange.call(this),this.Ut.innerHTML=this.localize(this.h.label)},i}(Sh);Be.registerComponent("MenuItem",ao);var uo=function(t){function i(i,s){var e,n,r=s.track,h=i.textTracks();if(s.label=r.label||r.language||"Unknown",s.selected=r.default||"showing"===r.mode,(e=t.call(this,i,s)||this).track=r,h){var o=De(Re(e),e.handleTracksChange);i.on(["loadstart","texttrackchange"],o),h.addEventListener("change",o),e.on("dispose",function(){h.removeEventListener("change",o)})}h&&void 0===h.onchange&&e.on(["tap","click"],function(){if("object"!=typeof ss.Event)try{n=new ss.Event("change")}catch(t){}n||(n=es.createEvent("Event")).initEvent("change",!0,!0),h.dispatchEvent(n)});return e}Ve(i,t);var s=i.prototype;return s.handleClick=function(i){var s=this.track.kind,e=this.t.textTracks();if(t.prototype.handleClick.call(this,i),e)for(var n=0;n<e.length;n++){var r=e[n];r.kind===s&&(r===this.track?"showing"!==r.mode&&(r.mode="showing"):"disabled"!==r.mode&&(r.mode="disabled"))}},s.handleTracksChange=function(t){this.selected("showing"===this.track.mode)},i}(ao);Be.registerComponent("TextTrackMenuItem",uo);var co=function(t){function i(i,s){var e;return s.track={player:i,kind:s.kind,label:s.kind+" off",default:!1,mode:"disabled"},s.selectable=!0,(e=t.call(this,i,s)||this).selected(!0),e}return Ve(i,t),i.prototype.handleTracksChange=function(t){for(var i=this.player().textTracks(),s=!0,e=0,n=i.length;e<n;e++){var r=i[e];if(r.kind===this.track.kind&&"showing"===r.mode){s=!1;break}}this.selected(s)},i}(uo);Be.registerComponent("OffTextTrackMenuItem",co);var lo=function(t){function i(i,s){return void 0===s&&(s={}),s.tracks=i.textTracks(),t.call(this,i,s)||this}return Ve(i,t),i.prototype.createItems=function(t){void 0===t&&(t=[]),t.push(new co(this.t,{kind:this.Lt})),this.Vt+=1;var i=this.t.textTracks();if(!i)return t;for(var s=0;s<i.length;s++){var e=i[s];e.kind===this.Lt&&t.push(new uo(this.t,{track:e,selectable:!0}))}return t},i}(oo);Be.registerComponent("TextTrackButton",lo);var fo=function(t){function i(i,s){var e,n=s.track,r=s.cue,h=i.currentTime();return s.selectable=!0,s.label=r.text,s.selected=r.startTime<=h&&h<r.endTime,(e=t.call(this,i,s)||this).track=n,e.cue=r,n.addEventListener("cuechange",De(Re(e),e.update)),e}Ve(i,t);var s=i.prototype;return s.handleClick=function(i){t.prototype.handleClick.call(this),this.t.currentTime(this.cue.startTime),this.update(this.cue.startTime)},s.update=function(t){var i=this.cue,s=this.t.currentTime();this.selected(i.startTime<=s&&s<i.endTime)},i}(ao);Be.registerComponent("ChaptersTrackMenuItem",fo);var vo=function(t){function i(i,s,e){var n;return(n=t.call(this,i,s,e)||this).v.setAttribute("aria-label","Chapters Menu"),n}Ve(i,t);var s=i.prototype;return s.buildCSSClass=function(){return"vjs-chapters-button "+t.prototype.buildCSSClass.call(this)},s.update=function(i){this.Ht&&(!i||"addtrack"!==i.type&&"removetrack"!==i.type)||this.setTrack(this.findChaptersTrack()),t.prototype.update.call(this)},s.setTrack=function(t){if(this.Ht!==t){if(this.zt||(this.zt=this.update.bind(this)),this.Ht){var i=this.t.remoteTextTrackEls().Y(this.Ht);i&&i.removeEventListener("load",this.zt),this.Ht=null}if(this.Ht=t,this.Ht){this.Ht.mode="hidden";var s=this.t.remoteTextTrackEls().Y(this.Ht);s&&s.addEventListener("load",this.zt)}}},s.findChaptersTrack=function(){for(var t=this.t.textTracks()||[],i=t.length-1;i>=0;i--){var s=t[i];if(s.kind===this.Lt)return s}},s.getMenuCaption=function(){return this.Ht&&this.Ht.label?this.Ht.label:this.localize(Ne(this.Lt))},s.createMenu=function(){return this.h.title=this.getMenuCaption(),t.prototype.createMenu.call(this)},s.createItems=function(){var t=[];if(!this.Ht)return t;var i=this.Ht.cues;if(!i)return t;for(var s=0,e=i.length;s<e;s++){var n=i[s],r=new fo(this.t,{track:this.Ht,cue:n});t.push(r)}return t},i}(lo);vo.prototype.Lt="chapters",vo.prototype.St="Chapters",Be.registerComponent("ChaptersButton",vo);var po=function(t){function i(i,s,e){var n;(n=t.call(this,i,s,e)||this).v.setAttribute("aria-label","Descriptions Menu");var r=i.textTracks();if(r){var h=De(Re(n),n.handleTracksChange);r.addEventListener("change",h),n.on("dispose",function(){r.removeEventListener("change",h)})}return n}Ve(i,t);var s=i.prototype;return s.handleTracksChange=function(t){for(var i=this.player().textTracks(),s=!1,e=0,n=i.length;e<n;e++){var r=i[e];if(r.kind!==this.Lt&&"showing"===r.mode){s=!0;break}}s?this.disable():this.enable()},s.buildCSSClass=function(){return"vjs-descriptions-button "+t.prototype.buildCSSClass.call(this)},i}(lo);po.prototype.Lt="descriptions",po.prototype.St="Descriptions",Be.registerComponent("DescriptionsButton",po);var mo=function(t){function i(i,s,e){var n;return(n=t.call(this,i,s,e)||this).v.setAttribute("aria-label","Subtitles Menu"),n}return Ve(i,t),i.prototype.buildCSSClass=function(){return"vjs-subtitles-button "+t.prototype.buildCSSClass.call(this)},i}(lo);mo.prototype.Lt="subtitles",mo.prototype.St="Subtitles",Be.registerComponent("SubtitlesButton",mo);var go=function(t){function i(i,s){var e;return s.track={player:i,kind:s.kind,label:s.kind+" settings",selectable:!1,default:!1,mode:"disabled"},s.selectable=!1,(e=t.call(this,i,s)||this).addClass("vjs-texttrack-settings"),e.controlText(", opens "+s.kind+" settings dialog"),e}return Ve(i,t),i.prototype.handleClick=function(t){this.player().getChild("textTrackSettings").show(),this.player().getChild("textTrackSettings").v.focus()},i}(uo);Be.registerComponent("CaptionSettingsMenuItem",go);var yo=function(t){function i(i,s,e){var n;return(n=t.call(this,i,s,e)||this).v.setAttribute("aria-label","Captions Menu"),n}Ve(i,t);var s=i.prototype;return s.buildCSSClass=function(){return"vjs-captions-button "+t.prototype.buildCSSClass.call(this)},s.createItems=function(){var i=[];return this.player().H&&this.player().H.featuresNativeTextTracks||(i.push(new go(this.t,{kind:this.Lt})),this.Vt+=1),t.prototype.createItems.call(this,i)},i}(lo);yo.prototype.Lt="captions",yo.prototype.St="Captions",Be.registerComponent("CaptionsButton",yo);var bo=function(t){function i(i,s){var e,n=s.track,r=i.audioTracks();if(s.label=n.label||n.language||"Unknown",s.selected=n.enabled,(e=t.call(this,i,s)||this).track=n,r){var h=De(Re(e),e.handleTracksChange);r.addEventListener("change",h),e.on("dispose",function(){r.removeEventListener("change",h)})}return e}Ve(i,t);var s=i.prototype;return s.handleClick=function(i){var s=this.t.audioTracks();if(t.prototype.handleClick.call(this,i),s)for(var e=0;e<s.length;e++){var n=s[e];n.enabled=n===this.track}},s.handleTracksChange=function(t){this.selected(this.track.enabled)},i}(ao);Be.registerComponent("AudioTrackMenuItem",bo);var wo=function(t){function i(i,s){var e;return void 0===s&&(s={}),s.tracks=i.audioTracks&&i.audioTracks(),(e=t.call(this,i,s)||this).v.setAttribute("aria-label","Audio Menu"),e}Ve(i,t);var s=i.prototype;return s.buildCSSClass=function(){return"vjs-audio-button "+t.prototype.buildCSSClass.call(this)},s.createItems=function(t){void 0===t&&(t=[]),this.Vt=1;var i=this.t.audioTracks&&this.t.audioTracks();if(!i)return t;for(var s=0;s<i.length;s++){var e=i[s];t.push(new bo(this.t,{track:e,selectable:!0}))}return t},i}(oo);wo.prototype.St="Audio Track",Be.registerComponent("AudioTrackButton",wo);var ko=function(t){function i(i,s){var e,n=s.rate,r=_(n,10);return s.label=n,s.selected=1===r,s.selectable=!0,(e=t.call(this,i,s)||this).label=n,e.rate=r,e.on(i,"ratechange",e.update),e}Ve(i,t);var s=i.prototype;return s.handleClick=function(i){t.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},s.update=function(t){this.selected(this.player().playbackRate()===this.rate)},i}(ao);ko.prototype.contentElType="button",Be.registerComponent("PlaybackRateMenuItem",ko);var _o=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).updateVisibility(),e.updateLabel(),e.on(i,"loadstart",e.updateVisibility),e.on(i,"ratechange",e.updateLabel),e}Ve(i,t);var s=i.prototype;return s.createEl=function(){var i=t.prototype.createEl.call(this);return this.Ut=Ss("div",{className:"vjs-playback-rate-value",innerHTML:1}),i.appendChild(this.Ut),i},s.buildCSSClass=function(){return"vjs-playback-rate "+t.prototype.buildCSSClass.call(this)},s.createMenu=function(){var t=new ro(this.player()),i=this.playbackRates();if(i)for(var s=i.length-1;s>=0;s--)t.addChild(new ko(this.player(),{rate:i[s]+"x"}));return t},s.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},s.handleClick=function(t){for(var i=this.player().playbackRate(),s=this.playbackRates(),e=s[0],n=0;n<s.length;n++)if(s[n]>i){e=s[n];break}this.player().playbackRate(e)},s.playbackRates=function(){return this.h.playbackRates||this.h.playerOptions&&this.h.playerOptions.playbackRates},s.playbackRateSupported=function(){return this.player().H&&this.player().H.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},s.updateVisibility=function(t){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},s.updateLabel=function(t){this.playbackRateSupported()&&(this.Ut.innerHTML=this.player().playbackRate()+"x")},i}(ho);_o.prototype.St="Playback Rate",Be.registerComponent("PlaybackRateMenuButton",_o);var jo=function(t){function i(){return t.apply(this,arguments)||this}Ve(i,t);var s=i.prototype;return s.buildCSSClass=function(){return"vjs-spacer "+t.prototype.buildCSSClass.call(this)},s.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},i}(Be);Be.registerComponent("Spacer",jo);var xo=function(t){function i(){return t.apply(this,arguments)||this}Ve(i,t);var s=i.prototype;return s.buildCSSClass=function(){return"vjs-custom-control-spacer "+t.prototype.buildCSSClass.call(this)},s.createEl=function(){var i=t.prototype.createEl.call(this,{className:this.buildCSSClass()});return i.innerHTML=" ",i},i}(jo);Be.registerComponent("CustomControlSpacer",xo);var So=function(t){function i(){return t.apply(this,arguments)||this}return Ve(i,t),i.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"},{role:"group"})},i}(Be);So.prototype.h={children:["playToggle","volumeMenuButton","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subtitlesButton","captionsButton","audioTrackButton","fullscreenToggle"]},Be.registerComponent("ControlBar",So);var To=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).on(i,"error",e.open),e}Ve(i,t);var s=i.prototype;return s.buildCSSClass=function(){return"vjs-error-display "+t.prototype.buildCSSClass.call(this)},s.content=function(){var t=this.player().error();return t?this.localize(t.message):""},i}(rn);To.prototype.h=Fe(rn.prototype.h,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),Be.registerComponent("ErrorDisplay",To);var Co="vjs-text-track-settings",Po=["#000","Black"],Mo=["#00F","Blue"],Ao=["#0FF","Cyan"],Io=["#0F0","Green"],Eo=["#F0F","Magenta"],Do=["#F00","Red"],No=["#FFF","White"],Fo=["#FF0","Yellow"],Bo=["1","Opaque"],$o=["0.5","Semi-Transparent"],Ro=["0","Transparent"],Oo={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[Po,No,Do,Io,Mo,Fo,Eo,Ao]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[Bo,$o,Ro]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[No,Po,Do,Io,Mo,Fo,Eo,Ao]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(t){return"1.00"===t?null:Number(t)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[Bo,$o]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[Ro,$o,Bo]}};function Vo(t,i){if(i&&(t=i(t)),t&&"none"!==t)return t}Oo.windowColor.options=Oo.backgroundColor.options;var Uo,Lo=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).setDefaults(),e.hide(),e.updateDisplay=De(Re(e),e.updateDisplay),void 0===s.persistTextTrackSettings&&(e.h.persistTextTrackSettings=e.h.playerOptions.persistTextTrackSettings),e.on(e.$(".vjs-done-button"),"click",function(){e.saveSettings(),e.hide()}),e.on(e.$(".vjs-default-button"),"click",function(){e.setDefaults(),e.updateDisplay()}),cs(Oo,function(t){e.on(e.$(t.selector),"change",e.updateDisplay)}),e.h.persistTextTrackSettings&&e.restoreSettings(),e}Ve(i,t);var s=i.prototype;return s.Wt=function(t){var i=this,s=Oo[t],e=s.id.replace("%s",this.o);return[Ss("label",{className:"vjs-label",textContent:s.label},{for:e}),Ss("select",{id:e},void 0,s.options.map(function(t){return Ss("option",{textContent:i.localize(t[1]),value:t[0]})}))]},s.qt=function(){var t=Ss("legend",{textContent:this.localize("Text")}),i=this.Wt("color"),s=Ss("span",{className:"vjs-text-opacity vjs-opacity"},void 0,this.Wt("textOpacity"));return Ss("fieldset",{className:"vjs-fg-color vjs-tracksetting"},void 0,[t].concat(i,s))},s.Gt=function(){var t=Ss("legend",{textContent:this.localize("Background")}),i=this.Wt("backgroundColor"),s=Ss("span",{className:"vjs-bg-opacity vjs-opacity"},void 0,this.Wt("backgroundOpacity"));return Ss("fieldset",{className:"vjs-bg-color vjs-tracksetting"},void 0,[t].concat(i,s))},s.Xt=function(){var t=Ss("legend",{textContent:this.localize("Window")}),i=this.Wt("windowColor"),s=Ss("span",{className:"vjs-window-opacity vjs-opacity"},void 0,this.Wt("windowOpacity"));return Ss("fieldset",{className:"vjs-window-color vjs-tracksetting"},void 0,[t].concat(i,s))},s.Jt=function(){return Ss("div",{className:"vjs-tracksettings-colors"},void 0,[this.qt(),this.Gt(),this.Xt()])},s.Qt=function(){var t=Ss("div",{className:"vjs-font-percent vjs-tracksetting"},void 0,this.Wt("fontPercent")),i=Ss("div",{className:"vjs-edge-style vjs-tracksetting"},void 0,this.Wt("edgeStyle")),s=Ss("div",{className:"vjs-font-family vjs-tracksetting"},void 0,this.Wt("fontFamily"));return Ss("div",{className:"vjs-tracksettings-font"},void 0,[t,i,s])},s.Yt=function(){var t=Ss("button",{className:"vjs-default-button",textContent:this.localize("Defaults")}),i=Ss("button",{className:"vjs-done-button",textContent:"Done"});return Ss("div",{className:"vjs-tracksettings-controls"},void 0,[t,i])},s.createEl=function(){var t=Ss("div",{className:"vjs-tracksettings"},void 0,[this.Jt(),this.Qt(),this.Yt()]),i=Ss("div",{className:"vjs-control-text",id:"TTsettingsDialogLabel-"+this.o,textContent:"Caption Settings Dialog"},{"aria-level":"1",role:"heading"}),s=Ss("div",{className:"vjs-control-text",id:"TTsettingsDialogDescription-"+this.o,textContent:"Beginning of dialog window. Escape will cancel and close the window."}),e=Ss("div",void 0,{role:"document"},[i,s,t]);return Ss("div",{className:"vjs-caption-settings vjs-modal-overlay",tabIndex:-1},{role:"dialog","aria-labelledby":i.id,"aria-describedby":s.id},e)},s.getValues=function(){var t=this;return function(t,i,s){return void 0===s&&(s=0),us(t).reduce(function(s,e){return i(s,t[e],e)},s)}(Oo,function(i,s,e){var n=function(t,i){return Vo(t.options[t.options.selectedIndex].value,i)}(t.$(s.selector),s.parser);return void 0!==n&&(i[e]=n),i},{})},s.setValues=function(t){var i=this;cs(Oo,function(s,e){!function(t,i,s){if(i)for(var e=0;e<t.options.length;e++)if(Vo(t.options[e].value,s)===i){t.selectedIndex=e;break}}(i.$(s.selector),t[e],s.parser)})},s.setDefaults=function(){var t=this;cs(Oo,function(i){var s=i.hasOwnProperty("default")?i.default:0;t.$(i.selector).selectedIndex=s})},s.restoreSettings=function(){var t;try{t=JSON.parse(ss.localStorage.getItem(Co))}catch(t){ps.warn(t)}t&&this.setValues(t)},s.saveSettings=function(){if(this.h.persistTextTrackSettings){var t=this.getValues();try{g.keys(t).length?ss.localStorage.setItem(Co,JSON.stringify(t)):ss.localStorage.removeItem(Co)}catch(t){ps.warn(t)}}},s.updateDisplay=function(){var t=this.t.getChild("textTrackDisplay");t&&t.updateDisplay()},i}(Be);Be.registerComponent("TextTrackSettings",Lo);var Ho,e=function(t){function i(i,s){var e;e=t.call(this,i,s)||this;var n=i.source,r=!1;if(n&&(e.v.currentSrc!==n.src||i.tag&&3===i.tag.Kt)?e.setSource(n):e.Zt(e.v),e.v.hasChildNodes()){for(var h=e.v.childNodes,o=h.length,a=[];o--;){var u=h[o];"track"===u.nodeName.toLowerCase()&&(e.featuresNativeTextTracks?(e.remoteTextTrackEls().J(u),e.remoteTextTracks().tt(u.track),r||e.v.hasAttribute("crossorigin")||!fn(u.src)||(r=!0)):a.push(u))}for(var c=0;c<a.length;c++)e.v.removeChild(a[c])}return["audio","video"].forEach(function(t){var i=e.el()[t+"Tracks"],s=e[t+"Tracks"](),n=Ne(t);e["featuresNative"+n+"Tracks"]&&i&&i.addEventListener&&(e["handle"+n+"ti"]=function(t){s.trigger({type:"change",target:s,currentTarget:s,srcElement:s})},e["handle"+n+"ii"]=function(t){return s.addTrack(t.track)},e["handle"+n+"si"]=function(t){return s.removeTrack(t.track)},i.addEventListener("change",e["handle"+n+"ti"]),i.addEventListener("addtrack",e["handle"+n+"ii"]),i.addEventListener("removetrack",e["handle"+n+"si"]),e["removeOld"+n+"ei"]=function(t){return e.ni(s,i)},e.on("loadstart",e["removeOld"+n+"ei"]))}),e.featuresNativeTextTracks&&(r&&ps.warn(bs(Uo||(Uo=ns(["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n This may prevent text tracks from loading."])))),e.ri=De(Re(e),e.handleTextTrackChange),e.hi=De(Re(e),e.handleTextTrackAdd),e.oi=De(Re(e),e.handleTextTrackRemove),e.ai()),e.ci(),(pe||Zs||he)&&!0===i.nativeControlsForTouch&&e.setControls(!0),e.di(),e.triggerReady(),e}Ve(i,t);var s=i.prototype;return s.dispose=function(){var s=this;["audio","video","text"].forEach(function(t){var i=Ne(t),e=s.v[t+"Tracks"];e&&e.removeEventListener&&(e.removeEventListener("change",s["handle"+i+"ti"]),e.removeEventListener("addtrack",s["handle"+i+"ii"]),e.removeEventListener("removetrack",s["handle"+i+"si"])),e&&s.off("loadstart",s["removeOld"+i+"ei"])}),i.disposeMediaElement(this.v),t.prototype.dispose.call(this)},s.ci=function(){var t,i=this.textTracks(),s=function(){t=[];for(var s=0;s<i.length;s++){var e=i[s];"metadata"===e.kind&&t.push({track:e,storedMode:e.mode})}};s(),i.addEventListener("change",s);var e=function s(){for(var e=0;e<t.length;e++){var n=t[e];"disabled"===n.track.mode&&n.track.mode!==n.storedMode&&(n.track.mode=n.storedMode)}i.removeEventListener("change",s)};this.on("webkitbeginfullscreen",function(){i.removeEventListener("change",s),i.removeEventListener("change",e),i.addEventListener("change",e)}),this.on("webkitendfullscreen",function(){i.removeEventListener("change",s),i.addEventListener("change",s),i.removeEventListener("change",e)})},s.createEl=function(){var t=this.h.tag;if(!t||!this.h.playerElIngest&&!this.movingMediaElementInDOM){if(t){var s=t.cloneNode(!0);t.parentNode&&t.parentNode.insertBefore(s,t),i.disposeMediaElement(t),t=s}else{t=es.createElement("video");var e=Fe({},this.h.tag&&Rs(this.h.tag));pe&&!0===this.h.nativeControlsForTouch||delete e.controls,$s(t,ls(e,{id:this.h.techId,class:"vjs-tech"}))}t.playerId=this.h.playerId}void 0!==this.h.preload&&Os(t,"preload",this.h.preload);for(var n=["loop","muted","playsinline","autoplay"],r=n.length-1;r>=0;r--){var h=n[r],o=this.h[h];void 0!==o&&(o?Os(t,h,h):Vs(t,h),t[h]=o)}return t},s.Zt=function(t){if(0!==t.networkState&&3!==t.networkState){if(0===t.readyState){var i=!1,s=function(){i=!0};this.on("loadstart",s);var e=function(){i||this.trigger("loadstart")};return this.on("loadedmetadata",e),void this.ready(function(){this.off("loadstart",s),this.off("loadedmetadata",e),i||this.trigger("loadstart")})}var n=["loadstart"];n.push("loadedmetadata"),t.readyState>=2&&n.push("loadeddata"),t.readyState>=3&&n.push("canplay"),t.readyState>=4&&n.push("canplaythrough"),this.ready(function(){n.forEach(function(t){this.trigger(t)},this)})}},s.ai=function(){var t=this.el().textTracks;if(t){for(var i=0;i<t.length;i++)this.textTracks().tt(t[i]);t.addEventListener&&(t.addEventListener("change",this.ri),t.addEventListener("addtrack",this.hi),t.addEventListener("removetrack",this.oi)),this.on("loadstart",this.fi)}},s.handleTextTrackChange=function(t){var i=this.textTracks();this.textTracks().trigger({type:"change",target:i,currentTarget:i,srcElement:i})},s.handleTextTrackAdd=function(t){this.textTracks().tt(t.track)},s.handleTextTrackRemove=function(t){this.textTracks().it(t.track)},s.ni=function(t,i){var s=[];if(i){for(var e=0;e<t.length;e++){for(var n=t[e],r=!1,h=0;h<i.length;h++)if(i[h]===n){r=!0;break}r||s.push(n)}for(var o=0;o<s.length;o++){var a=s[o];t.it(a)}}},s.fi=function(t){var i=this.textTracks(),s=this.el().textTracks;this.ni(i,s)},s.play=function(){var t=this.v.play();void 0!==t&&"function"==typeof t.then&&t.then(null,function(t){})},s.setCurrentTime=function(t){try{this.v.currentTime=t}catch(t){ps(t,"Video is not ready. (Video.js)")}},s.duration=function(){var t=this;if(this.v.duration===1/0&&ee&&ue&&0===this.v.currentTime){return this.on("timeupdate",function i(){t.v.currentTime>0&&(t.v.duration===1/0&&t.trigger("durationchange"),t.off("timeupdate",i))}),NaN}return this.v.duration||NaN},s.width=function(){return this.v.offsetWidth},s.height=function(){return this.v.offsetHeight},s.di=function(){var t=this;if("webkitDisplayingFullscreen"in this.v){var i=function(){this.trigger("fullscreenchange",{isFullscreen:!1})},s=function(){"webkitPresentationMode"in this.v&&"picture-in-picture"!==this.v.webkitPresentationMode&&(this.one("webkitendfullscreen",i),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",s),this.on("dispose",function(){t.off("webkitbeginfullscreen",s),t.off("webkitendfullscreen",i)})}},s.supportsFullScreen=function(){if("function"==typeof this.v.webkitEnterFullScreen){var t=ss.navigator&&ss.navigator.userAgent||"";if(/Android/.test(t)||!/Chrome|Mac OS X 10.5/.test(t))return!0}return!1},s.enterFullScreen=function(){var t=this.v;t.paused&&t.networkState<=t.HAVE_METADATA?(this.v.play(),this.setTimeout(function(){t.pause(),t.webkitEnterFullScreen()},0)):t.webkitEnterFullScreen()},s.exitFullScreen=function(){this.v.webkitExitFullScreen()},s.src=function(t){if(void 0===t)return this.v.src;this.setSrc(t)},s.reset=function(){i.resetMediaElement(this.v)},s.currentSrc=function(){return this.bt?this.bt.src:this.v.currentSrc},s.setControls=function(t){this.v.controls=!!t},s.addTextTrack=function(i,s,e){return this.featuresNativeTextTracks?this.v.addTextTrack(i,s,e):t.prototype.addTextTrack.call(this,i,s,e)},s.createRemoteTextTrack=function(i){if(!this.featuresNativeTextTracks)return t.prototype.createRemoteTextTrack.call(this,i);var s=es.createElement("track");return i.kind&&(s.kind=i.kind),i.label&&(s.label=i.label),(i.language||i.srclang)&&(s.srclang=i.language||i.srclang),i.default&&(s.default=i.default),i.id&&(s.id=i.id),i.src&&(s.src=i.src),s},s.addRemoteTextTrack=function(i,s){var e=t.prototype.addRemoteTextTrack.call(this,i,s);return this.featuresNativeTextTracks&&this.el().appendChild(e),e},s.removeRemoteTextTrack=function(i){if(t.prototype.removeRemoteTextTrack.call(this,i),this.featuresNativeTextTracks)for(var s=this.$$("track"),e=s.length;e--;)i!==s[e]&&i!==s[e].track||this.el().removeChild(s[e])},s.getVideoPlaybackQuality=function(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var t={};return void 0!==this.el().webkitDroppedFrameCount&&void 0!==this.el().webkitDecodedFrameCount&&(t.droppedVideoFrames=this.el().webkitDroppedFrameCount,t.totalVideoFrames=this.el().webkitDecodedFrameCount),ss.performance&&"function"==typeof ss.performance.now?t.creationTime=ss.performance.now():ss.performance&&ss.performance.timing&&"number"==typeof ss.performance.timing.navigationStart&&(t.creationTime=ss.Date.now()-ss.performance.timing.navigationStart),t},i}(jh);_s()&&(e.TEST_VID=es.createElement("video"),(Ho=es.createElement("track")).kind="captions",Ho.srclang="en",Ho.label="English",e.TEST_VID.appendChild(Ho)),e.isSupported=function(){try{e.TEST_VID.volume=.5}catch(t){return!1}return!(!e.TEST_VID||!e.TEST_VID.canPlayType)},e.canControlVolume=function(){try{var t=e.TEST_VID.volume;return e.TEST_VID.volume=t/2+.1,t!==e.TEST_VID.volume}catch(t){return!1}},e.canControlPlaybackRate=function(){if(ee&&ue&&ce<58)return!1;try{var t=e.TEST_VID.playbackRate;return e.TEST_VID.playbackRate=t/2+.1,t!==e.TEST_VID.playbackRate}catch(t){return!1}},e.supportsNativeTextTracks=function(){return ve},e.supportsNativeVideoTracks=function(){return!(!e.TEST_VID||!e.TEST_VID.videoTracks)},e.supportsNativeAudioTracks=function(){return!(!e.TEST_VID||!e.TEST_VID.audioTracks)},e.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","volumechange"],e.prototype.featuresVolumeControl=e.canControlVolume(),e.prototype.featuresPlaybackRate=e.canControlPlaybackRate(),e.prototype.movingMediaElementInDOM=!ie,e.prototype.featuresFullscreenResize=!0,e.prototype.featuresProgressEvents=!0,e.prototype.featuresTimeupdateEvents=!0,e.prototype.featuresNativeTextTracks=e.supportsNativeTextTracks(),e.prototype.featuresNativeVideoTracks=e.supportsNativeVideoTracks(),e.prototype.featuresNativeAudioTracks=e.supportsNativeAudioTracks();var zo=e.TEST_VID&&e.TEST_VID.constructor.prototype.canPlayType,Wo=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,qo=/^video\/mp4/i;e.patchCanPlayType=function(){ne>=4&&!oe?e.TEST_VID.constructor.prototype.canPlayType=function(t){return t&&Wo.test(t)?"maybe":zo.call(this,t)}:re&&(e.TEST_VID.constructor.prototype.canPlayType=function(t){return t&&qo.test(t)?"maybe":zo.call(this,t)})},e.unpatchCanPlayType=function(){var t=e.TEST_VID.constructor.prototype.canPlayType;return e.TEST_VID.constructor.prototype.canPlayType=zo,t},e.patchCanPlayType(),e.disposeMediaElement=function(t){if(t){var i=t.nodeName.toLowerCase();if("video"===i||"audio"===i){for(t.parentNode&&t.parentNode.removeChild(t);t.hasChildNodes();)t.removeChild(t.firstChild);t.removeAttribute("src"),"function"==typeof t.load&&function(){try{t.load()}catch(t){}}()}}},e.resetMediaElement=function(t){if(t){for(var i=t.querySelectorAll("source"),s=i.length;s--;)t.removeChild(i[s]);t.removeAttribute("src"),"function"==typeof t.load&&function(){try{t.load()}catch(t){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(t){e.prototype[t]=function(){return this.v[t]||this.v.hasAttribute(t)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(t){e.prototype["set"+Ne(t)]=function(i){this.v[t]=i,i?this.v.setAttribute(t,t):this.v.removeAttribute(t)}}),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","played","networkState","readyState","videoWidth","videoHeight"].forEach(function(t){e.prototype[t]=function(){return this.v[t]}}),["volume","src","poster","preload","playbackRate"].forEach(function(t){e.prototype["set"+Ne(t)]=function(i){this.v[t]=i}}),["pause","load"].forEach(function(t){e.prototype[t]=function(){return this.v[t]()}}),jh.withSourceHandlers(e),e.nativeSourceHandler={},e.nativeSourceHandler.canPlayType=function(t){try{return e.TEST_VID.canPlayType(t)}catch(t){return""}},e.nativeSourceHandler.canHandleSource=function(t,i){if(t.type)return e.nativeSourceHandler.canPlayType(t.type);if(t.src){var s=function(t){if("string"==typeof t){var i=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i.exec(t);if(i)return i.pop().toLowerCase()}return""}(t.src);return e.nativeSourceHandler.canPlayType("video/"+s)}return""},e.nativeSourceHandler.handleSource=function(t,i,s){i.setSrc(t.src)},e.nativeSourceHandler.dispose=function(){},e.registerSourceHandler(e.nativeSourceHandler),Be.registerComponent("Html5",e),jh.registerTech("Html5",e);var Go=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","ratechange","volumechange","texttrackchange"],Xo=function(t){function i(s,e,n){var r;if(s.id=s.id||["vjs_video",hs()].join("_"),(e=ls(i.getTagSettings(s),e)).initChildren=!1,e.createEl=!1,e.reportTouchActivity=!1,!e.language)if("function"==typeof s.closest){var h=s.closest("[lang]");h&&(e.language=h.getAttribute("lang"))}else for(var o=s;o&&1===o.nodeType;){if(Rs(o).hasOwnProperty("lang")){e.language=o.getAttribute("lang");break}o=o.parentNode}if(!(r=t.call(this,null,e,n)||this).h||!r.h.techOrder||!r.h.techOrder.length)throw new v("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(r.tag=s,r.tagAttributes=s&&Rs(s),r.language(r.h.language),e.languages){var a={};g.getOwnPropertyNames(e.languages).forEach(function(t){a[t.toLowerCase()]=e.languages[t]}),r.pi=a}else r.pi=i.prototype.h.languages;r.mi={},r.gi=e.poster||"",r.yi=!!e.controls,s.controls=!1,r.bi=!1,r.v=r.createEl();var u=Fe(r.h);if(e.plugins){var c=e.plugins;g.getOwnPropertyNames(c).forEach(function(t){"function"==typeof this[t]?this[t](c[t]):ps.error("Unable to find plugin:",t)},Re(r))}r.h.playerOptions=u,r.initChildren(),r.isAudio("audio"===s.nodeName.toLowerCase()),r.controls()?r.addClass("vjs-controls-enabled"):r.addClass("vjs-controls-disabled"),r.v.setAttribute("role","region"),r.isAudio()?r.v.setAttribute("aria-label","audio player"):r.v.setAttribute("aria-label","video player"),r.isAudio()&&r.addClass("vjs-audio"),r.wi()&&r.addClass("vjs-no-flex"),ie||r.addClass("vjs-workinghover"),i.players[r.o]=Re(r);var l="5.20.6-opentelly.14".split(".")[0];return r.addClass("vjs-v"+l),r.userActive(!0),r.reportUserActivity(),r.ki(),r.on("fullscreenchange",r._i),r.on("stageclick",r.ji),r}Ve(i,t);var s=i.prototype;return s.dispose=function(){this.trigger("dispose"),this.off("dispose"),this.xi&&this.xi.parentNode&&this.xi.parentNode.removeChild(this.xi),i.players[this.o]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.v&&this.v.player&&(this.v.player=null),this.H&&this.H.dispose(),t.prototype.dispose.call(this)},s.createEl=function(){var i,s=this.tag,e=this.Si=s.parentNode&&s.parentNode.hasAttribute&&s.parentNode.hasAttribute("data-vjs-player");i=this.v=e?s.parentNode:t.prototype.createEl.call(this,"div"),s.setAttribute("tabindex","-1"),s.removeAttribute("width"),s.removeAttribute("height");var n=Rs(s);if(g.getOwnPropertyNames(n).forEach(function(t){"class"===t?i.className+=" "+n[t]:i.setAttribute(t,n[t])}),s.playerId=s.id,s.id+="Ti",s.className="vjs-tech",s.player=i.player=this,this.addClass("vjs-paused"),!0!==ss.VIDEOJS_NO_DYNAMIC_STYLE){this.xi=Ie("vjs-styles-dimensions");var r=Gs(".vjs-styles-defaults"),h=Gs("head");h.insertBefore(this.xi,r?r.nextSibling:h.firstChild)}this.width(this.h.width),this.height(this.h.height),this.fluid(this.h.fluid),this.aspectRatio(this.h.aspectRatio);for(var o=s.getElementsByTagName("a"),a=0;a<o.length;a++){var u=o.item(a);Ns(u,"vjs-hidden"),u.setAttribute("hidden","hidden")}return s.Kt=s.networkState,s.parentNode&&!e&&s.parentNode.insertBefore(i,s),Cs(s,i),this.m.unshift(s),this.v=i,i},s.width=function(t){return this.dimension("width",t)},s.height=function(t){return this.dimension("height",t)},s.dimension=function(t,i){var s="width"===t?"Ci":"Pi";if(void 0===i)return this[s]||0;if(""===i)this[s]=void 0;else{var e=_(i);if(j(e))return ps.error('Improper value "'+i+'" supplied for for '+t),this;this[s]=e}return this.Mi(),this},s.fluid=function(t){if(void 0===t)return!!this.Ai;this.Ai=!!t,t?this.addClass("vjs-fluid"):this.removeClass("vjs-fluid"),this.Mi()},s.aspectRatio=function(t){if(void 0===t)return this.Ii;if(!/^\d+\:\d+$/.test(t))throw new v("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.Ii=t,this.fluid(!0),this.Mi()},s.Mi=function(){if(!0!==ss.VIDEOJS_NO_DYNAMIC_STYLE){var t,i,s,e=(void 0!==this.Ii&&"auto"!==this.Ii?this.Ii:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),n=e[1]/e[0];t=void 0!==this.Ci?this.Ci:void 0!==this.Pi?this.Pi/n:this.videoWidth()||300,i=void 0!==this.Pi?this.Pi:t*n,s=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(s),Ee(this.xi,"\n ."+s+" {\n width: "+t+"px;\n height: "+i+"px;\n }\n\n ."+s+".vjs-fluid {\n padding-top: "+100*n+"%;\n }\n ")}else{var r="number"==typeof this.Ci?this.Ci:this.h.width,h="number"==typeof this.Pi?this.Pi:this.h.height,o=this.H&&this.H.el();o&&(r>=0&&(o.width=r),h>=0&&(o.height=h))}},s._t=function(t,i){var s=this;this.H&&this.Ei(),"Html5"!==t&&this.tag&&(jh.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.Di=t,this.T=!1;var e=ls({source:i,nativeControlsForTouch:this.h.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+t+"Ni",videoTracks:this.rt,textTracks:this.nt,audioTracks:this.ht,autoplay:this.h.autoplay,playsinline:this.h.playsinline,preload:this.h.preload,loop:this.h.loop,muted:this.h.muted,poster:this.poster(),language:this.language(),playerElIngest:this.Si||!1,"vtt.js":this.h["vtt.js"]},this.h[t.toLowerCase()]);this.tag&&(e.tag=this.tag),i&&(this.Fi=i.type,i.src===this.mi.src&&this.mi.currentTime>0&&(e.startTime=this.mi.currentTime),this.mi.sources=null,this.mi.source=i,this.mi.src=i.src);var n=jh.getTech(t);n||(n=Be.getComponent(t)),this.H=new n(e),this.H.ready(De(this,this.Bi),!0),en(this.$i||[],this.H),Go.forEach(function(t){s.on(s.H,t,s["handleTech"+Ne(t)+"_"])}),this.on(this.H,"loadstart",this.Ri),this.on(this.H,"waiting",this.Oi),this.on(this.H,"canplay",this.Vi),this.on(this.H,"canplaythrough",this.Ui),this.on(this.H,"playing",this.Li),this.on(this.H,"ended",this.Hi),this.on(this.H,"seeking",this.zi),this.on(this.H,"seeked",this.Wi),this.on(this.H,"play",this.qi),this.on(this.H,"firstplay",this.Gi),this.on(this.H,"pause",this.Xi),this.on(this.H,"durationchange",this.Ji),this.on(this.H,"fullscreenchange",this.Qi),this.on(this.H,"error",this.Yi),this.on(this.H,"loadedmetadata",this.Mi),this.on(this.H,"resize",this.Mi),this.on(this.H,"posterchange",this.Ki),this.on(this.H,"textdata",this.Zi),this.usingNativeControls(this.ts("controls")),this.controls()&&!this.usingNativeControls()&&this.ss(),this.H.el().parentNode===this.contentEl()||"Html5"===t&&this.tag||Cs(this.H.el(),this.contentEl()),this.tag&&(this.tag.player=null,this.tag=null)},s.Ei=function(){this.rt=this.videoTracks(),this.nt=this.textTracks(),this.ht=this.audioTracks(),this.$i=sn(this.H),this.T=!1,this.H.dispose(),this.H=!1},s.tech=function(t){if(t&&t.IWillNotUseThisInPlugins)return this.H;var i="\n Please make sure that you are not using this inside of a plugin.\n To disable this alert and error, please pass in an object with\n `IWillNotUseThisInPlugins` to the `tech` method. See\n https://github.com/videojs/video.js/issues/2617 for more info.\n ";throw ss.alert(i),new v(i)},s.ss=function(){this.es(),this.on(this.H,"mousedown",this.ns),this.on(this.H,"touchstart",this.rs),this.on(this.H,"touchmove",this.hs),this.on(this.H,"touchend",this.us),this.on(this.H,"tap",this.cs)},s.es=function(){this.off(this.H,"tap",this.cs),this.off(this.H,"touchstart",this.rs),this.off(this.H,"touchmove",this.hs),this.off(this.H,"touchend",this.us),this.off(this.H,"mousedown",this.ns)},s.Bi=function(){if(this.triggerReady(),this.mi.volume&&this.ls("setVolume",this.mi.volume),this.Ki(),this.Ji(),(this.src()||this.currentSrc())&&this.tag&&this.h.autoplay&&this.paused()){try{delete this.tag.poster}catch(t){ps("deleting tag.poster throws in some browsers",t)}this.play()}},s.Ri=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay"))},s.hasStarted=function(t){return void 0!==t?(this.et!==t&&(this.et=t,t?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started")),this):!!this.et},s.qi=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},s.Oi=function(){var t=this;this.addClass("vjs-waiting"),this.trigger("waiting"),this.one("timeupdate",function(){return t.removeClass("vjs-waiting")})},s.Vi=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},s.Ui=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},s.Li=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},s.zi=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},s.Wi=function(){this.removeClass("vjs-seeking"),this.trigger("seeked")},s.Gi=function(){this.h.starttime&&(ps.warn("Passing the `starttime` option to the player will be deprecated in 6.0"),this.currentTime(this.h.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},s.Xi=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},s.Hi=function(){this.addClass("vjs-ended"),this.h.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},s.Ji=function(){this.duration(this.ts("duration"))},s.ns=function(t){0===t.button&&this.controls()&&(void 0!==this.h&&void 0!==this.h.userActions&&void 0!==this.h.userActions.click&&!1===this.h.userActions.click||(void 0!==this.h&&void 0!==this.h.userActions&&"function"==typeof this.h.userActions.click?this.h.userActions.click.call(this,t):this.paused()?this.play():this.pause()))},s.cs=function(){this.userActive(!this.userActive())},s.rs=function(){this.userWasActive=this.userActive()},s.hs=function(){this.userWasActive&&this.reportUserActivity()},s.us=function(t){t.cancelable&&t.preventDefault()},s._i=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},s.ji=function(){this.reportUserActivity()},s.Qi=function(t,i){i&&(this.toggleClass("vjs-ios-native-fs",!(!i.nativeIOSFullscreen||!i.isFullscreen)),this.isFullscreen(i.isFullscreen)),this.trigger("fullscreenchange")},s.Yi=function(){var t=this.H.error();this.error(t)},s.Zi=function(){var t=null;arguments.length>1&&(t=arguments[1]),this.trigger("textdata",t)},s.getCache=function(){return this.mi},s.ls=function(t,i){if(this.H&&!this.H.T)this.H.ready(function(){this[t](i)},!0);else try{this.H&&this.H[t](i)}catch(t){throw ps(t),t}},s.ts=function(t){if(this.H&&this.H.T)try{return this.H[t]()}catch(i){throw void 0===this.H[t]?ps("Video.js: "+t+" method not defined for "+this.Di+" playback technology.",i):"TypeError"===i.name?(ps("Video.js: "+t+" unavailable on "+this.Di+" playback technology element.",i),this.H.T=!1):ps(i),i}},s.play=function(){return this.src()||this.currentSrc()?this.ls("play"):this.H.one("loadstart",function(){this.play()}),this},s.pause=function(){return this.ls("pause"),this},s.paused=function(){return!1!==this.ts("paused")},s.scrubbing=function(t){return void 0!==t?(this.bi=!!t,t?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing"),this):this.bi},s.currentTime=function(t){return void 0!==t?(this.ls("setCurrentTime",t),this):(this.mi.currentTime=this.ts("currentTime")||0,this.mi.currentTime)},s.duration=function(t){return void 0===t?void 0!==this.mi.duration?this.mi.duration:NaN:((t=_(t))<0&&(t=1/0),t!==this.mi.duration&&(this.mi.duration=t,t===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),this.trigger("durationchange")),this)},s.remainingTime=function(){return this.duration()-this.currentTime()},s.buffered=function(){var t=this.ts("buffered");return t&&t.length||(t=He(0,0)),t},s.bufferedPercent=function(){return ze(this.buffered(),this.duration())},s.bufferedEnd=function(){var t=this.buffered(),i=this.duration(),s=t.end(t.length-1);return s>i&&(s=i),s},s.volume=function(t){var i;return void 0!==t?(i=w.max(0,w.min(1,_(t))),this.mi.volume=i,this.ls("setVolume",i),this):(i=_(this.ts("volume")),j(i)?1:i)},s.muted=function(t){return void 0!==t?(this.ls("setMuted",t),this):this.ts("muted")||!1},s.supportsFullScreen=function(){return this.ts("supportsFullScreen")||!1},s.isFullscreen=function(t){return void 0!==t?(this.ds=!!t,this):!!this.ds},s.requestFullscreen=function(t){var i,s=Je;return this.isFullscreen(!0),s.requestFullscreen?(je(es,s.fullscreenchange,De(this,function t(i){this.isFullscreen(es[s.fullscreenElement]),!1===this.isFullscreen()&&xe(es,s.fullscreenchange,t),this.trigger("fullscreenchange")})),s.prefixed||(i=this.h.fullscreenOptions,void 0!==t&&(i=t)),this.v[s.requestFullscreen](i)):this.H.supportsFullScreen()?this.ls("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange")),this},s.exitFullscreen=function(){var t=Je;return this.isFullscreen(!1),t.requestFullscreen?es[t.exitFullscreen]():this.H.supportsFullScreen()?this.ls("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange")),this},s.enterFullWindow=function(){this.isFullWindow=!0,this.docOrigOverflow=es.documentElement.style.overflow,je(es,"keydown",De(this,this.fullWindowOnEscKey)),es.documentElement.style.overflow="hidden",Ns(es.body,"vjs-full-window"),this.trigger("enterFullWindow")},s.fullWindowOnEscKey=function(t){27===t.keyCode&&(!0===this.isFullscreen()?this.exitFullscreen():this.exitFullWindow())},s.exitFullWindow=function(){this.isFullWindow=!1,xe(es,"keydown",this.fullWindowOnEscKey),es.documentElement.style.overflow=this.docOrigOverflow,Fs(es.body,"vjs-full-window"),this.trigger("exitFullWindow")},s.canPlayType=function(t){for(var i,s=0,e=this.h.techOrder;s<e.length;s++){var n=Ne(e[s]),r=jh.getTech(n);if(r||(r=Be.getComponent(n)),r){if(r.isSupported()&&(i=r.canPlayType(t)))return i}else ps.error('The "'+n+'" tech is undefined. Skipped browser support check for that tech.')}return""},s.selectSource=function(t){var i,s=this,e=this.h.techOrder.map(Ne).map(function(t){return[t,jh.getTech(t)||Be.getComponent(t)]}).filter(function(t){var i=t[0],s=t[1];return s?s.isSupported():(ps.error('The "'+i+'" tech is undefined. Skipped browser support check for that tech.'),!1)}),n=function(t,i,s){var e;return t.some(function(t){return i.some(function(i){if(e=s(t,i))return!0})}),e},r=function(t,i){var e=t[0];if(t[1].canPlaySource(i,s.h[e.toLowerCase()]))return{source:i,tech:e}};return(this.h.sourceOrder?n(t,e,(i=r,function(t,s){return i(s,t)})):n(e,t,r))||!1},s.src=function(t){if(void 0===t)return this.ts("src");var i=jh.getTech(this.Di);return i||(i=Be.getComponent(this.Di)),Array.isArray(t)?this.fs(t):"string"==typeof t?this.src({src:t}):t instanceof g&&(t.type&&!i.canPlaySource(t,this.h[this.Di.toLowerCase()])?this.fs([t]):(this.mi.sources=null,this.mi.source=t,this.mi.src=t.src,this.Fi=t.type||"",this.ready(function(){i.prototype.hasOwnProperty("setSource")?this.ls("setSource",t):this.ls("src",t.src),"auto"===this.h.preload&&this.load(),this.h.autoplay&&this.play()},!0))),this},s.fs=function(t){var i=this.selectSource(t);i?(i.tech===this.Di?this.src(i.source):this._t(i.tech,i.source),this.mi.sources=t):(this.setTimeout(function(){this.error({code:4,message:this.localize(this.h.notSupportedMessage)})},0),this.triggerReady())},s.load=function(){return this.ls("load"),this},s.reset=function(){return this._t(Ne(this.h.techOrder[0]),null),this.ls("reset"),this},s.currentSources=function(){var t=this.currentSource(),i=[];return 0!==g.keys(t).length&&i.push(t),this.mi.sources||i},s.currentSource=function(){var t={},i=this.currentSrc();return i&&(t.src=i),this.mi.source||t},s.currentSrc=function(){return this.ts("currentSrc")||this.mi.src||""},s.currentType=function(){return this.Fi||""},s.preload=function(t){return void 0!==t?(this.ls("setPreload",t),this.h.preload=t,this):this.ts("preload")},s.autoplay=function(t){return void 0!==t?(this.ls("setAutoplay",t),this.h.autoplay=t,this):this.ts("autoplay",t)},s.playsinline=function(t){return void 0!==t?(this.ls("setPlaysinline",t),this.h.playsinline=t,this):this.ts("playsinline")},s.loop=function(t){return void 0!==t?(this.ls("setLoop",t),this.h.loop=t,this):this.ts("loop")},s.poster=function(t){return void 0===t?this.gi:(t||(t=""),this.gi=t,this.ls("setPoster",t),this.trigger("posterchange"),this)},s.Ki=function(){!this.gi&&this.H&&this.H.poster&&(this.gi=this.H.poster()||"",this.trigger("posterchange"))},s.controls=function(t){return void 0!==t?(t=!!t,this.yi!==t&&(this.yi=t,this.usingNativeControls()&&this.ls("setControls",t),t?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.ss()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.es())),this):!!this.yi},s.usingNativeControls=function(t){return void 0!==t?(t=!!t,this.vs!==t&&(this.vs=t,t?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols"))),this):!!this.vs},s.error=function(t){return void 0===t?this.lt||null:null===t?(this.lt=t,this.removeClass("vjs-error"),this.errorDisplay&&this.errorDisplay.close(),this):(this.lt=new Ke(t),this.addClass("vjs-error"),ps.error("(CODE:"+this.lt.code+" "+Ke.errorTypes[this.lt.code]+")",this.lt.message,this.lt),this.trigger("error"),this)},s.reportUserActivity=function(t){this.ps=!0},s.userActive=function(t){return void 0!==t?((t=!!t)!==this.gs&&(this.gs=t,t?(this.ps=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),this.trigger("useractive")):(this.ps=!1,this.H&&this.H.one("mousemove",function(t){t.stopPropagation(),t.preventDefault()}),this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive"))),this):this.gs},s.ki=function(){var t,i,s,e,n=De(this,this.reportUserActivity);this.on("mousedown",function(){n(),this.clearInterval(t),t=this.setInterval(n,250)}),this.on("mousemove",function(t){t.screenX===i&&t.screenY===s||(i=t.screenX,s=t.screenY,n())}),this.on("mouseup",function(i){n(),this.clearInterval(t)}),this.on("keydown",n),this.on("keyup",n),this.setInterval(function(){if(this.ps){this.ps=!1,this.userActive(!0),this.clearTimeout(e);var t=this.h.inactivityTimeout;t>0&&(e=this.setTimeout(function(){this.ps||this.userActive(!1)},t))}},250)},s.playbackRate=function(t){return void 0!==t?(this.ls("setPlaybackRate",t),this):this.H&&this.H.featuresPlaybackRate?this.ts("playbackRate"):1},s.isAudio=function(t){return void 0!==t?(this.ys=!!t,this):!!this.ys},s.videoTracks=function(){return this.H?this.H.videoTracks():(this.rt=this.rt||new bh,this.rt)},s.audioTracks=function(){return this.H?this.H.audioTracks():(this.ht=this.ht||new kh,this.ht)},s.textTracks=function(){if(this.H)return this.H.textTracks()},s.remoteTextTracks=function(){if(this.H)return this.H.remoteTextTracks()},s.remoteTextTrackEls=function(){if(this.H)return this.H.remoteTextTrackEls()},s.addTextTrack=function(t,i,s){if(this.H)return this.H.addTextTrack(t,i,s)},s.addRemoteTextTrack=function(t,i){if(this.H)return this.H.addRemoteTextTrack(t,i)},s.removeRemoteTextTrack=function(t){var i=(void 0===t?{}:t).track,s=void 0===i?arguments[0]:i;if(this.H)return this.H.removeRemoteTextTrack(s)},s.getVideoPlaybackQuality=function(){return this.ts("getVideoPlaybackQuality")},s.videoWidth=function(){return this.H&&this.H.videoWidth&&this.H.videoWidth()||0},s.videoHeight=function(){return this.H&&this.H.videoHeight&&this.H.videoHeight()||0},s.language=function(t){return void 0===t?this.bs:(this.bs!==String(t).toLowerCase()&&(this.bs=String(t).toLowerCase(),void 0!==this.v&&this.trigger("languagechange")),this)},s.languages=function(){return Fe(i.prototype.h.languages,this.pi)},s.toJSON=function(){var t=Fe(this.h),i=t.tracks;t.tracks=[];for(var s=0;s<i.length;s++){var e=i[s];(e=Fe(e)).player=void 0,t.tracks[s]=e}return t},s.createModal=function(t,i){var s=this;(i=i||{}).content=t||"";var e=new rn(this,i);return this.addChild(e),e.on("dispose",function(){s.removeChild(e)}),e.open()},i.getTagSettings=function(t){var i={sources:[],tracks:[]},s=Rs(t),e=s["data-setup"];if(Ds(t,"vjs-fluid")&&(s.fluid=!0),null!==e){var n=Ze(e||"{}"),r=n[0],h=n[1];r&&ps.error(r),ls(s,h)}if(ls(i,s),t.hasChildNodes())for(var o=t.childNodes,a=0,u=o.length;a<u;a++){var c=o[a],l=c.nodeName.toLowerCase();"source"===l?i.sources.push(Rs(c)):"track"===l&&i.tracks.push(Rs(c))}return i},s.wi=function(){var t=es.createElement("i");return!("flexBasis"in t.style||"webkitFlexBasis"in t.style||"mozFlexBasis"in t.style||"msFlexBasis"in t.style||"msFlexOrder"in t.style)},i}(Be);Xo.players={};var Jo=ss.navigator;Xo.prototype.h={techOrder:["html5","flash"],html5:{},flash:{},defaultVolume:0,inactivityTimeout:2e3,playbackRates:[],children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","controlBar","errorDisplay","textTrackSettings"],language:Jo&&(Jo.languages&&Jo.languages[0]||Jo.userLanguage||Jo.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",fullscreenOptions:{navigationUI:"hide"}},["ended","seeking","seekable","networkState","readyState"].forEach(function(t){Xo.prototype[t]=function(){return this.ts(t)}}),Go.forEach(function(t){Xo.prototype["handleTech"+Ne(t)+"_"]=function(){return this.trigger(t)}}),Be.registerComponent("Player",Xo);var Qo,Yo,Ko=function(t){function i(s){var e;void 0===s&&(s={});var n=Fe(s,{kind:an[s.kind]||""}),r=e=t.call(this,n)||this,h=!1;if(le)for(var o in i.prototype)"constructor"!==o&&(r[o]=i.prototype[o]);return g.defineProperty(r,"enabled",{get:function(){return h},set:function(t){"boolean"==typeof t&&t!==h&&(h=t,this.trigger("enabledchange"))}}),n.enabled&&(r.enabled=n.enabled),r.q=!0,r||Re(e)}return Ve(i,t),i}(ln),Zo=function(t){function i(s){var e;void 0===s&&(s={});var n=Fe(s,{kind:on[s.kind]||""}),r=e=t.call(this,n)||this,h=!1;if(le)for(var o in i.prototype)"constructor"!==o&&(r[o]=i.prototype[o]);return g.defineProperty(r,"selected",{get:function(){return h},set:function(t){"boolean"==typeof t&&t!==h&&(h=t,this.trigger("selectedchange"))}}),n.selected&&(r.selected=n.selected),r||Re(e)}return Ve(i,t),i}(ln);function ta(t,i,s){var e;if("string"==typeof t){if(0===t.indexOf("#")&&(t=t.slice(1)),ta.getPlayers()[t])return i&&ps.warn('Player "'+t+'" is already initialised. Options will not be applied.'),s&&ta.getPlayers()[t].ready(s),ta.getPlayers()[t];e=function(t){return 0===t.indexOf("#")&&(t=t.slice(1)),es.getElementById(t)}(t)}else e=t;if(!e||!e.nodeName)throw new p("The element or ID supplied is not valid. (videojs)");if(e.player||Xo.players[e.playerId])return e.player||Xo.players[e.playerId];i=i||{},ta.hooks("beforesetup").forEach(function(t){var s=t(e,Fe(i));ds(s)&&!Array.isArray(s)?i=Fe(i,s):ps.error("please return an object in beforesetup hooks")});var n=new(Be.getComponent("Player"))(e,i,s);return ta.hooks("setup").forEach(function(t){return t(n)}),n}"undefined"==typeof HTMLVideoElement&&_s()&&(es.createElement("video"),es.createElement("audio"),es.createElement("track")),ta.ws={},ta.hooks=function(t,i){return ta.ws[t]=ta.ws[t]||[],i&&(ta.ws[t]=ta.ws[t].concat(i)),ta.ws[t]},ta.hook=function(t,i){ta.hooks(t,i)},ta.removeHook=function(t,i){var s=ta.hooks(t).indexOf(i);return!(s<=-1)&&(ta.ws[t]=ta.ws[t].slice(),ta.ws[t].splice(s,1),!0)},!0!==ss.VIDEOJS_NO_DYNAMIC_STYLE&&_s()&&((Qo=Gs(".vjs-styles-defaults"))||(Qo=Ie("vjs-styles-defaults"),(Yo=Gs("head"))&&Yo.insertBefore(Qo,Yo.firstChild),Ee(Qo,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid {\n padding-top: 56.25%\n }\n "))),Ae(1,ta),ta.VERSION="5.20.6-opentelly.14",ta.options=Xo.prototype.h,ta.getPlayers=function(){return Xo.players},ta.players=Xo.players,ta.getComponent=Be.getComponent,ta.registerComponent=function(t,i){jh.isTech(i)&&ps.warn("The "+t+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),Be.registerComponent.call(Be,t,i)},ta.getTech=jh.getTech,ta.registerTech=jh.registerTech,ta.browser=ge,ta.TOUCH_ENABLED=pe,ta.extend=function(t,i){void 0===i&&(i={});var s=function(){t.apply(this,arguments)},e={};for(var n in ds(i)?("function"==typeof i.init&&(ps.warn("Constructor logic via init() is deprecated; please use constructor() instead."),i.constructor=i.init),i.constructor!==g.prototype.constructor&&(s=i.constructor),e=i):"function"==typeof i&&(s=i),function(t,i){if("function"!=typeof i&&null!==i)throw new p("Super expression must either be null or a function, not "+typeof i);t.prototype=g.create(i&&i.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),i&&(t.ks=i)}(s,t),e)e.hasOwnProperty(n)&&(s.prototype[n]=e[n]);return s},ta.mergeOptions=Fe,ta.bind=De,ta.plugin=function(t,i){Xo.prototype[t]=i},ta.addLanguage=function(t,i){var s;return t=(""+t).toLowerCase(),ta.options.languages=Fe(ta.options.languages,((s={})[t]=i,s)),ta.options.languages[t]},ta.log=ps,ta.createTimeRange=ta.createTimeRanges=He,ta.formatTime=$h,ta.parseUrl=dn,ta.isCrossOrigin=fn,ta.EventTarget=$e,ta.on=je,ta.one=Te,ta.off=xe,ta.trigger=Se,ta.xhr=oh,ta.TextTrack=dh,ta.AudioTrack=Ko,ta.VideoTrack=Zo,ta.isEl=js,ta.isTextNode=Hs,ta.createEl=Ss,ta.hasClass=Ds,ta.addClass=Ns,ta.removeClass=Fs,ta.toggleClass=Bs,ta.setAttributes=$s,ta.getAttributes=Rs,ta.emptyEl=zs,ta.appendContent=Ws,ta.insertContent=qs,ta.computedStyle=zh,Rt(),Rt();function ia(t){const i=t.duration;if(j(i)){var s;const i=null==(s=t.source)?void 0:s.streamType;return"live"===i||"dvr"===i}return i===1/0}function sa(t){return t.scrubbing()?t.getCache().currentTime:t.currentTime()}function ea(t){const i=ha(t);return ia(t)?i.end(i.length-1):i.start(0)}function na(t){return ha(t).start(0)}function ra(t){const i=ha(t);return i.end(i.length-1)-i.start(0)}function ha(t){const i=t.seekable;if(i&&i.length)return i;let s=t.duration;return s=isFinite(s)?s:0,new _i([0,s])._s()}function oa(t,i){void 0===i&&(i=t);const s=t<0?"-":"";t=w.abs(t);let e=w.floor(t%60),n=w.floor(t/60%60),r=w.floor(t/3600);const h=w.floor(i/60%60),o=w.floor(i/3600);return(j(t)||t===1/0)&&(r=n=e="-"),r=Number(r)>0||o>0?r+":":"",n=((r||h>=10)&&Number(n)<10?"0"+n:n)+":",e=Number(e)<10?"0"+e:e,s+r+n+e}function aa(t){return class extends t{get js(){var t;return null!=(t=this.xs)?t:this.xs=ua(this.player())}dispose(){this.xs=void 0,super.dispose()}constructor(...t){super(...t),this.xs=void 0}}}function ua(t){return t.tech({IWillNotUseThisInPlugins:!0}).theoplayer()}function ca(t){const i=ua(t),s=()=>{const s=sa(t);t.toggleClass("theo-at-live",function(t,i){if(ia(t)){const s=t.seekable;return 0===s.length||s.end(s.length-1)-i<10}return!1}(i,s)),t.toggleClass("vjs-live",ia(i)),t.toggleClass("theo-dvr",function(t){return"dvr"===M(t.duration,t.seekable,t.source)}(i))};t.on("emptied",s),t.on("timeupdate",s),t.on("durationchange",s)}Rt(),Rt();function la(t,i,s){t.toggleClass("theo-ad-playing",i),t.toggleClass("theo-dai-ad-playing",i&&s)}function da(){this.userActive(!1)}Rt(),Rt(),Rt();var fa=class{constructor(t,i){this.type=void 0,this.target=void 0,this.playerEvent=void 0,this.type=t.type,this.target=i,this.playerEvent=t}};Rt();var va=function(t){return t.Ss="unavailable",t.Ts="available",t.Cs="presenting",t}({});Rt(),Rt(),Rt();var pa=["loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","volumechange","resize"],ma=ta.getTech("Tech"),ga=ta.getTech("Html5"),ya=class extends ma{Ps(){var t;for(const t of pa)this.js.addEventListener(t,this.Ms);this.js.addEventListener("error",this.As),this.js.addEventListener("contentprotectionerror",this.As),this.js.addEventListener("sourcechange",this.Is),this.js.addEventListener("loadstart",this.Es),null==(t=this.js.presentation)||t.addEventListener(bt.MODE_CHANGE,this.Ds),this.js.textTracks.addEventListener("addtrack",this.Ns),this.js.textTracks.addEventListener("removetrack",this.Fs),this.js.textTracks.addEventListener("change",this.Bs),this.js.audioTracks.addEventListener("addtrack",this.$s),this.js.audioTracks.addEventListener("removetrack",this.Rs),this.js.audioTracks.addEventListener("change",this.Os)}Vs(){var t;for(const t of pa)this.js.removeEventListener(t,this.Ms);this.js.removeEventListener("error",this.As),this.js.removeEventListener("contentprotectionerror",this.As),this.js.removeEventListener("sourcechange",this.Is),this.js.removeEventListener("loadstart",this.Es),null==(t=this.js.presentation)||t.removeEventListener(bt.MODE_CHANGE,this.Ds),this.js.textTracks.removeEventListener("addtrack",this.Ns),this.js.textTracks.removeEventListener("removetrack",this.Fs),this.js.textTracks.removeEventListener("change",this.Bs),this.js.audioTracks.removeEventListener("addtrack",this.$s),this.js.audioTracks.removeEventListener("removetrack",this.Rs),this.js.audioTracks.removeEventListener("change",this.Os)}Us(t){this.trigger(new fa(t,this))}createEl(){const t=this.h,i=t.player;if(!i)throw new v(this.localize('Missing required tech option "player"'));const s=i.element;return ta.setAttributes(s,{id:t.techId}),s}theoplayer(){return this.js}addTextTrack(t,i,s){return super.addTextTrack(t,i,s)}buffered(){return this.js.buffered}played(){return this.js.played}reset(){this.js.stop()}play(){this.js.play()}pause(){this.js.pause()}paused(){return this.js.paused}currentTime(){return this.js.currentTime}setCurrentTime(t){this.js.currentTime=t}duration(){return this.js.duration}volume(){return this.js.volume}setVolume(t){this.js.volume=t}muted(){return this.js.muted}setMuted(t){this.js.muted=t}src(t){if(void 0!==t)this.setSrc(t);else{if(this.js.src)return this.js.src;if(this.js.source){if(!J(this.js.source.ads))return this.js.source.ads[0].sources;if(function(t){return!!t.sources&&(Gt(t.sources)?t.sources.some(Pi):Pi(t.sources))}(this.js.source))return"This source is managed by the Uplynk integration extension.";if(function(t){if(t.sources)if(Gt(t.sources)){for(const i of t.sources)if(Si(i))return!0}else if(Qt(t.sources))return Si(t.sources);return!1}(this.js.source))return"This source is managed by the DAI integration extension.";if(Ii(this.js.source))return"This source is managed by Millicast."}}}setSrc(t){return this.setSource({src:t})}setSource(t){this.lt=null,this.trigger("error")}currentSrc(){return this.js.src}load(){this.setPreload("auto")}preload(){return this.js.preload}setPreload(t){this.js.preload=t}autoplay(){return this.js.autoplay}setAutoplay(t){this.js.autoplay=Boolean(t)}seeking(){return this.js.seeking}seekable(){return this.js.seekable}ended(){return this.js.ended}playbackRate(){return this.js.playbackRate}setPlaybackRate(t){this.js.playbackRate=t}readyState(){return this.js.readyState}networkState(){return 0}controls(){return!1}videoHeight(){return this.js.videoHeight}videoWidth(){return this.js.videoWidth}supportsFullScreen(){return this.js.presentation.supportsMode(N.FULLSCREEN)}enterFullScreen(){this.js.presentation.requestMode(N.FULLSCREEN)}exitFullScreen(){this.js.presentation.requestMode(N.INLINE)}Ls(){const t=this.js.ads;if(t&&t.playing)return!0;const i=this.js.vr;return!(!i||i.state===va.Ss)}initTextTrackListeners(){return this.on("touchend",t=>{this.Ls()&&(t.preventDefault=()=>{})}),super.initTextTrackListeners()}Zt(){if(!this.src())return;const t=this.readyState();if(0===t){let t=!1;const i=()=>{t=!0};this.on("loadstart",i);const s=()=>{t||this.trigger("loadstart")};return this.on("loadedmetadata",s),void this.ready(()=>{this.off("loadstart",i),this.off("loadedmetadata",s),t||this.trigger("loadstart")})}const i=["loadstart"];i.push("loadedmetadata"),t>=2&&i.push("loadeddata"),t>=3&&i.push("canplay"),t>=4&&i.push("canplaythrough"),this.ready(()=>{for(const t of i)this.trigger(t)})}dispose(){this.Vs(),this.js=null,super.dispose()}static isSupported(){return!0}static canPlayType(){return"maybe"}static canPlaySource(t){return"maybe"}get featuresVolumeControl(){return z}constructor(t={},i){super(t,i),this.js=void 0,this.Ms=t=>this.Us(t),this.Hs=!1,this.Is=()=>{void 0===this.js.errorObject&&(this.Us(new Ni(this.js.currentTime,this.js.readyState)),this.Us(new $t),this.Us(new Hi(this.js.duration)))},this.Es=()=>{this.Us(new Yt(this.js.currentTime))},this.Ns=t=>{this.textTracks().tt(t.track)},this.$s=t=>{this.audioTracks().tt(t.track)},this.Fs=t=>{this.textTracks().it(t.track)},this.Rs=t=>{this.audioTracks().it(t.track)},this.Bs=()=>{const t=this.textTracks();t.trigger({type:"change",target:t,currentTarget:t,srcElement:t})},this.Os=()=>{const t=this.audioTracks();t.trigger({type:"change",target:t,currentTarget:t,srcElement:t})},this.Ds=()=>{if(!this.supportsFullScreen())return;const t=this.Hs,i=this.js.presentation.currentMode===N.FULLSCREEN;t!==i&&(this.Hs=i,this.trigger("fullscreenchange",{isFullscreen:i,nativeIOSFullscreen:!0}))},this.As=()=>{const t=this.js.errorObject,i=t&&_t(t.code)||-1,s=t&&t.message||"An unknown error occurred.";this.error({code:i,message:this.localize(s)})},this.js=this.h.player,this.Ps();const s=!this.paused();s&&this.pause(),t.preload&&this.setPreload(t.preload),t.autoplay&&this.setAutoplay(t.autoplay),t.muted&&this.setMuted(t.muted),t.source?this.setSrc(t.source):this.Zt(),s&&this.ready(()=>this.play()),this.triggerReady()}};ya.prototype.featuresFullscreenResize=ga.prototype.featuresFullscreenResize,ya.prototype.featuresPlaybackRate=ga.prototype.featuresPlaybackRate,ya.prototype.featuresProgressEvents=!0,ya.prototype.featuresTimeupdateEvents=!0,ya.prototype.featuresNativeTextTracks=!0,ta.registerTech("THEOplayer",ya),Rt(),Rt(),Rt(),Rt();var ba=class{constructor(t){this.zs=void 0,this.Ws=t=>{r(this.zs,"theo-mobile-button-hover"),t.stopImmediatePropagation()},this.qs=t=>{ci(this.zs,"theo-mobile-button-hover")},this.Gs=t=>{this.zs.blur()},this.zs=t,t.addEventListener("touchstart",this.Ws),t.addEventListener("touchend",this.qs),t.addEventListener("focusin",this.Gs)}};Rt(),Rt(),Rt(),Rt();var wa=ta.getComponent("Menu"),ka=class extends(aa(wa)){get Xs(){return this.player().el()}Js(){r(this.Xs,"theo-menu-opened")}Qs(){ci(this.Xs,"theo-menu-opened")}constructor(t,i){super(t,i)}};Rt();var _a=ta.getComponent("MenuItem"),ja=class extends(aa(_a)){get parentMenu(){return this.Ys}buildCSSClass(){return"theo-menu-item vjs-menu-item"}createEl(){const t=super.createEl("li",{className:this.buildCSSClass(),tabIndex:0},{"aria-live":"off","aria-label":""});return t.innerHTML="",t}handleClick(t){this.Ks||(this.parentMenu.Zs(this),"tap"!==t.type&&"keydown"!==t.type||(this.Ks=!0,this.trigger("click"),this.Ks=!1))}dispose(){xi.ie.te&&(this.el().removeEventListener("touchstart",this.Ws),this.el().removeEventListener("touchend",this.qs)),super.dispose()}constructor(t,i,s){super(t,q({selectable:!0},i)),this.Ys=void 0,this.Ks=!1,this.Ws=t=>{r(this.el(),"theo-mobile-menu-item-hover"),t.stopImmediatePropagation()},this.qs=t=>{ci(this.el(),"theo-mobile-menu-item-hover")},this.Ys=s,xi.ie.te&&(this.el().addEventListener("touchstart",this.Ws),this.el().addEventListener("touchend",this.qs))}};Rt();var xa=ta.getComponent("ClickableComponent"),Sa=class extends xa{get parentMenu(){return this.Ys}get se(){return this.ee}set se(t){this.ee=t,this.el().setAttribute("tabindex",this.se?"0":"-1"),this.ne()}buildCSSClass(){return"theo-primary-background theo-menu-header"}createEl(){const t=super.createEl("div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-live":"off","aria-label":""});return t.innerHTML="",t}handleClick(t){!this.Ks&&this.se&&(this.Ys.re(),"tap"===t.type&&(this.Ks=!0,this.trigger("click"),this.Ks=!1))}ne(){this.se?this.el().setAttribute("aria-label",this.localize("Go back to the previous menu")):this.el().setAttribute("aria-label","")}constructor(t,i,s){super(t,i),this.Ys=void 0,this.Ks=!1,this.ee=!1,this.Ys=s,this.on(t,"languagechange",this.ne)}},Ta=class extends ka{get menuHeader(){return this.he}get menuItems(){return this.children()}addMenuItem(t){t=q({playerOptions:this.h.playerOptions},t);const i=new ja(this.player(),t,this);return this.addChild(i,void 0,t.index),this.trigger("menuchange"),i}addSubMenuItem(t){t=q({playerOptions:this.h.playerOptions},t);const i=this.oe(this.player(),t);return this.addChild(i,void 0,t.index),this.trigger("menuchange"),i}removeMenuItem(t){this.removeChild(t),this.trigger("menuchange")}buildCSSClass(){return"theo-menu vjs-menu"}Js(){super.Js(),a.removeEventListener("resize",this.ae),a.addEventListener("resize",this.ae),this.show()}ue(){const t=this.ce();if(!t)return;const i=t.getClientRects();xi.ie.te?this.le(t,i):this.de(t,i)}ce(){var t;return null!=(t=this.contentEl().parentElement)?t:void 0}de(t,i){}le(t,i){}Qs(){a.removeEventListener("resize",this.ae),super.Qs(),this.hide(),xi.ie.te&&(this.el().removeAttribute("style"),this.contentEl().removeAttribute("style"))}createEl(){const t=super.createEl();t.className=this.buildCSSClass();const i=this.contentEl();r(i,"theo-menu-content");const s=new Sa(this.player(),this.h,this);return i.parentNode.insertBefore(s.el(),i),this.he=s,t}Zs(t){}show(){return this.ue(),super.show()}dispose(){this.he&&this.he.dispose(),super.dispose()}constructor(t,i){super(t,i),this.fe=void 0,this.ae=()=>this.ue(),this.fe=this.player().el(),this.hide(),this.on("menuchange",this.ue)}},Ca=class extends Ta{get ve(){return this.pe}set ve(t){this.pe&&this.pe.me(this),this.pe=t,t&&t.ge(this)}ye(t){this.ve.be(t,"replace")}we(t){t.ve.be(this,"restore")}ke(){ci(this._e,"vjs-hidden"),this._e.style.opacity="1",super.show()}je(){r(this._e,"vjs-hidden")}Js(){this.ve&&this.ve.Js(),super.Js()}Qs(){this.ve&&this.ve.Qs(),super.Qs(),r(this._e,"vjs-hidden")}ce(){if(this.ve&&this.ve.xe)return this.ve.xe._e}de(t,i){if(i.length>0){const t=i[0].height,s=i[0].width;this.pe.Se.style.height=t+"px",this.pe.Se.style.width=s+"px"}super.de(t,i)}constructor(t,i){super(t,i)}};Rt();var Pa=class{get Se(){return this.zs}get xe(){return this.Te}ge(t){t.je(),this.zs.appendChild(t._e)}me(t){this.zs.removeChild(t._e)}be(t,i){if(t==this.Te)return;const s=this.Te;if(this.Te=t,this.Te.ke(),this.xe.focus(),xi.ie.te)s.je();else{const t="translateX(100%)",e="translateX(-100%)",n=ut("transform");s._e.style.opacity="0",s._e.style[n]="replace"===i?e:t,this.Te._e.style.opacity="1",this.Te._e.style[n]="",u(()=>{s.je(),s._e.style[n]=""},300)}}Js(){this.Ce(),this.Te.ke(),this.Pe()}Qs(){this.Ce(),this.Te.je(),this.Me.je(),this.Te=this.Me,this.Pe()}Pe(){rt(()=>{ci(this.zs,"theo-no-transition"),ci(this.Te._e,"theo-no-transition")})}Ce(){r(this.zs,"theo-no-transition"),r(this.Te._e,"theo-no-transition")}constructor(t){this.Te=void 0,this.Me=void 0,this.zs=void 0,this.fe=void 0,this.Me=this.Te=t,this.zs=h.createElement("div"),this.zs.className="theo-tertiary-background theo-menu-animation-container",this.zs.appendChild(this.Me._e),this.fe=this.Te.player().el()}};Rt(),Rt();var Ma=class extends Ca{get _e(){return this.el()}get parentMenu(){return this.Ae}oe(t,i){const s=new Aa(t,i,this);return s.subMenu.ve=this.ve,s}re(){this.Ie()}Zs(t){super.Zs(t),this.Ie()}Ie(){this.parentMenu.we(this)}buildCSSClass(){return"theo-submenu "+(this.Ee?"":"theo-leaf-submenu ")+"theo-menu-content theo-menu-content-animatable "+super.buildCSSClass()}addSubMenuItem(t){this.Ee=!0;const i=super.addSubMenuItem(t);return this.removeClass("theo-leaf-submenu"),i}constructor(t,i,s){super(t,i),this.Ae=void 0,this.Ee=!1,this.Ae=s,this.menuHeader.se=!0}},Aa=class extends ja{get subMenu(){return this.De}handleClick(t){this.parentMenu.ye(this.subMenu)}constructor(t,i,s){super(t,q({selectable:!1},i),s),this.De=void 0,this.De=new Ma(t,i,s)}},Ia=class extends Ca{get menuButton(){return this.Ne}createEl(){const t=ta.createEl("div",{className:this.buildCSSClass()});return this.Fe=super.createEl(),this.Fe.className=super.buildCSSClass(),r(this.Fe,"theo-menu-content-animatable"),t.appendChild(this.Fe),this.ve=new Pa(this),t.appendChild(this.ve.Se),t}buildCSSClass(){return"theo-menu-animatable "+super.buildCSSClass()}oe(t,i){const s=new Aa(t,i,this);return s.subMenu.ve=this.ve,s}de(t,i){super.de(t,i);const s=this.fe.getClientRects(),e=s.length>0?s[0]:void 0,n=_(getComputedStyle(this.el()).fontSize);ui(this.el(),this.Ne.el(),e,n)}get _e(){return this.Fe}re(){this.Ne.closeMenu()}dispose(){this.Be||(this.Be=!0,super.dispose())}constructor(t,i,s){super(t,i),this.Ne=void 0,this.Be=!1,this.Ne=s}};Rt();var Ea=class{set $e(t){this.Re.innerHTML=this.Oe.localize(t),this.Ve()&&this.Ue(),yi(this.Oe.el())}get $e(){return this.Re.textContent||""}Ve(){return!ri(this.Re,"vjs-hidden")}Le(){this.Oe.off("mouseover",this.Ue),this.Oe.off("mouseout",this.He),this.Oe.off("dispose",this.ze),Zt(this.Re)}constructor(t,i){this.Re=void 0,this.Oe=void 0,this.Ue=()=>{ci(this.Re,"vjs-hidden");const t=this.Oe.player().contentEl().getClientRects(),i=t.length>0?t[0]:void 0,s=_(getComputedStyle(this.Re).fontSize);ui(this.Re,this.Oe.el(),i,s)},this.He=()=>{r(this.Re,"vjs-hidden")},this.ze=()=>this.Le(),this.Oe=t,yi(t.el()),ki(t.el()),this.Re=h.createElement("span"),this.Re.innerHTML=this.Oe.localize(i),this.Re.className="theo-button-tooltip vjs-hidden",this.Re.setAttribute("aria-hidden","true"),this.Oe.el().appendChild(this.Re),this.Oe.on("mouseover",this.Ue),this.Oe.on("mouseout",this.He),this.Oe.on("dispose",this.ze)}},Da=ta.getComponent("Button"),Na=class extends(aa(Da)){get We(){const t=this.el().parentElement;return!!t&&null!==t.querySelector(".theo-mobile-menu-background")}get menu(){return this.qe}isMenuOpen(){return this.Ge}openMenu(){this.Xe&&!this.Ge&&(this.qe.Js(),this.el().setAttribute("aria-expanded","true"),this.Ge=!0,this.qe.focus())}closeMenu(){this.Xe&&this.Ge&&(this.qe.Qs(),this.el().setAttribute("aria-expanded","false"),this.Ge=!1)}set minimumMenuItems(t){this.Je=t,this.Qe()}buildCSSClass(){return"theo-controlbar-button vjs-menu-button vjs-menu-button-popup "+super.buildCSSClass()}createEl(t,i,s){return super.createEl("button",{},{"aria-live":"off"})}handleClick(){this.Ge?this.closeMenu():this.openMenu()}enable(){return this.Xe=!0,super.enable()}disable(){return this.closeMenu(),this.Xe=!1,super.disable()}ne(){this.Re.$e=this.controlText()}dispose(){this.player().removeChild(this.qe),this.qe.dispose(),this.Re.Le(),this.js.removeEventListener("seeking",this.Ye),super.dispose()}constructor(t,i){super(t,i),this.qe=void 0,this.Re=void 0,this.Ge=!1,this.Je=1,this.Xe=!0,this.Ke=t=>{const i=this.el().contains(t.target),s=this.qe.el().contains(t.target);let e=!1;var n;xi.ie.te&&this.We&&(e=(null==(n=this.el().parentElement)?void 0:n.querySelector(".theo-mobile-menu-background"))===t.target);i||s||!this.Ge||(e&&t.preventDefault(),this.closeMenu())},this.Ze=t=>{27===t.which&&(this.closeMenu(),this.focus())},this.Ye=()=>{this.Ge&&this.closeMenu()},this.Qe=()=>{this.qe.menuItems.length>=this.Je?this.show():(this.closeMenu(),this.hide())},this.qe=new Ia(t,i,this),this.player().getChild("controlBarMenuContainer").addChild(this.qe),this.Re=new Ea(this,this.controlText()),this.el().setAttribute("aria-haspopup","true"),xi.ie.tn?(this.on(h,"touchend",this.Ke),new ba(this.el())):(this.on(h,"click",this.Ke),this.on(h,"keydown",this.Ze),pt&&this.on(h,pt.sn,this.closeMenu)),this.js.addEventListener("seeking",this.Ye),this.on(this.qe,"menuchange",this.Qe),this.on(t,"languagechange",this.ne),this.Qe()}},Fa=ta.getComponent("Component"),Ba=class extends(ta.getComponent("ControlBar")){addMenuButton(t){t=q({playerOptions:this.h.playerOptions},t);const i=new Na(this.player(),t);return this.addChild(i),i}removeMenuButton(t){this.removeChild(t)}createEl(){const t=super.createEl();return t.className=this.buildCSSClass(),t}buildCSSClass(){return"theo-secondary-color vjs-control-bar "+super.buildCSSClass()}constructor(t,i){super(t,i),this.addChild("THEOControlBarShadow",void 0,0)}};ta.registerComponent("THEOControlBarShadow",class extends Fa{createEl(){return super.createEl("div",{className:this.buildCSSClass()})}buildCSSClass(){return"theo-tertiary-color theo-control-bar-shadow"}}),Rt(),Rt();var $a=ta.getComponent("VolumeBar"),Ra=class extends $a{handleFocus(t){super.handleFocus(t),this.nn.addClass("focus-within")}handleBlur(t){super.handleBlur(t),this.nn.removeClass("focus-within")}constructor(t,i){super(t,i),this.nn=void 0,this.nn=i.rn}};Rt();var Oa=ta.getComponent("VolumeControl"),Va=class extends Oa{constructor(t,i){super(t,i),this.hn=void 0,this.hn=new Ra(t,{rn:this}),this.addChild(this.hn)}};Va.prototype.h=q({},Oa.prototype.h,{children:[]}),ta.registerComponent("VolumeControl",Va);var Ua=class extends(aa(Ba)){an(){this.un(this.cn())}ln(){0===this.dn&&(this.dn=u(this.fn,100))}vn(t){"opacity"===t.propertyName&&(0!==this.dn&&(c(this.dn),this.dn=0),this.un(!0))}pn(t){"opacity"===t.propertyName&&(this.cn()||this.un(!1))}cn(){return"0"!==a.getComputedStyle(this.el()).opacity}un(t){this.mn!==t&&(this.mn=t,t?this.gn():this.js.textTrackStyle.marginBottom=void 0)}gn(){const t=this.el().getBoundingClientRect().height;this.js.textTrackStyle.marginBottom!==t&&(this.js.textTrackStyle.marginBottom=t)}dispose(){c(this.dn),this.dn=0,this.bn.yn(ot.wn,this.kn),this.bn._n(),super.dispose()}constructor(t,i){super(t,i),this.bn=void 0,this.mn=!1,this.dn=0,this.fn=()=>{0!==this.dn&&(this.dn=0,this.un(this.cn()))},this.kn=()=>{this.mn&&this.gn()},this.on(t,"ready",this.an),this.on(t,"pause",this.an),this.on(t,"useractive",this.an),this.on(t,"firstplay",this.ln),this.on(t,"play",this.ln),this.on(t,"userinactive",this.ln),this.on("transitionstart",this.vn),this.on("transitionend",this.pn),this.bn=new lt(this.el()),this.bn.jn(ot.wn,this.kn),this.bn.xn(!0)}};Ua.prototype.h=q({},Ba.prototype.h,{children:["progressControl","playToggle","muteToggle","volumeControl","currentTimeDisplay","timeDivider","durationDisplay","liveDisplay","remainingTimeDisplay","customControlSpacer","activeQualityLabel","vrButton","descriptionsButton","subtitlesButton","chromecastButton","airplayButton","multiViewButton","audioTrackButton","SettingsButton","fullscreenToggle"]}),ta.registerComponent("ControlBar",Ua),Rt();var La=class extends Ba{buildCSSClass(){return"theo-top-controlbar "+super.buildCSSClass()}constructor(t,i){super(t,i),t.topControlBar=this}};La.prototype.h=q({},Ba.prototype.h,{children:[]}),ta.registerComponent("TopControlBar",La),Rt();var Ha=ta.getComponent("CurrentTimeDisplay"),za=class extends(aa(Ha)){updateContent(){const t=sa(this.player()),i=this.js,s=na(i),e=this.localize("Current Time"),n=oa(w.max(0,t-s),ra(i));n!==this.Pt&&(this.Pt=n,this.contentEl().innerHTML='<span class="vjs-control-text">'+e+"</span> "+n)}constructor(t,i){super(t,i),this.on(t,"timeupdate",this.updateContent),this.on(t,"emptied",this.updateContent)}};ta.registerComponent("CurrentTimeDisplay",za),Rt();var Wa=ta.getComponent("DurationDisplay"),qa=class extends(aa(Wa)){updateContent(){const t=this.js,i=j(t.duration)?NaN:ra(t),s=t.clip.endTime-t.clip.startTime,e=w.min(i,s)||0;if(this.ct!==e){this.ct=e;const t=this.localize("Duration Time"),i=oa(e);this.S.innerHTML='<span class="vjs-control-text">'+t+"</span> "+i}}dispose(){var t;null==(t=this.js)||t.clip.removeEventListener("change",this.Sn),super.dispose()}constructor(t,i){var s;super(t,i),this.Sn=()=>this.updateContent(),this.off(t,"durationchange",this.updateContent),this.on(t,"durationchange",this.updateContent),this.off(t,"timeupdate",this.updateContent),this.on(t,"timeupdate",this.updateContent),this.off(t,"emptied",this.updateContent),this.on(t,"emptied",this.updateContent),null==(s=this.js)||s.clip.addEventListener("change",this.Sn)}};ta.registerComponent("DurationDisplay",qa),Rt();var Ga=ta.getComponent("Button"),Xa=class extends(aa(Ga)){buildCSSClass(){return"theo-live-control "+super.buildCSSClass()}createEl(){const t=super.createEl("button",{},{"aria-live":"off"});return this.Tn=ta.createEl("span",{className:"theo-live-control-indicator"}),si(t,this.Tn),t}createControlTextEl(t){const i=super.createControlTextEl(t);return ta.removeClass(i,"vjs-control-text"),ta.addClass(i,"theo-live-control-text"),i}handleClick(){var t;const i=this.js;if(void 0!==(null==(t=i.hesp)?void 0:t.manifest))i.hesp.goLive();else{const t=this.player();t.currentTime(1/0),t.play()}}Cn(){ia(this.js)?this.show():this.hide()}constructor(t,i){super(t,i),this.controlText("Live"),this.Cn(),this.on(t,"emptied",this.Cn),this.on(t,"durationchange",this.Cn),xi.ie.tn&&new ba(this.el())}};ta.registerComponent("LiveDisplay",Xa),Rt();var Ja=ta.getComponent("LoadingSpinner");ta.registerComponent("LoadingSpinner",class extends Ja{buildCSSClass(){return"theo-secondary-color vjs-loading-spinner "+super.buildCSSClass()}createEl(){const t=super.createEl();t.className=this.buildCSSClass();const i=ta.createEl("div",{className:"theo-loading-spinner-rotator"}),s=ta.createEl("div",{className:"theo-loading-spinner-circle-left"}),e=ta.createEl("div",{className:"theo-loading-spinner-circle-right"});return i.appendChild(s),i.appendChild(e),t.appendChild(i),t}constructor(t,i){super(t,i)}}),Rt();var Qa=ta.getComponent("LoadProgressBar"),Ya=class extends(aa(Qa)){update(){const t=this.js,i=_i.Pn(ha(t)),s=i.Mn(0),e=_i.Pn(t.buffered).An(i),n=i.In(0)-s;let r=e.U&&e.In(e.U-1)||0;r=w.max(0,r-s);const o=this.el(),a=this.En;o.style.width=Ka(r,n);for(let t=0;t<e.U;t++){const i=e.Mn(t),n=e.In(t);let u=a[t];u||(u=h.createElement("div"),a.push(u),o.appendChild(u)),u.style.left=Ka(i-s,r),u.style.width=Ka(n-i,r)}for(let t=a.length;t>e.U;t--)o.removeChild(a[t-1]);a.length=e.U}constructor(t,i){super(t,i),this.En=[],this.on(t,"emptied",this.update)}};function Ka(t,i){const s=t/i||0;return 100*(s>=1?1:s)+"%"}ta.registerComponent("LoadProgressBar",Ya),Rt();var Za=ta.getComponent("MouseTimeDisplay"),tu=class extends(aa(Za)){handleMouseMove(t){const i=t,s=this.js,e=na(s)+this.calculateDistance(i)*ra(s),n=i.pageX-oi(this.el().parentNode).left;this.update(e,n+"px")}handleTouchMove(t){const i=t,s=this.js,e=na(s)+this.calculateDistance(i)*ra(s),n=i.touches[0].pageX-oi(this.el().parentNode).left;this.update(e,n+"px")}createEl(){const t=super.createEl();return this.Dn=ta.createEl("span",{className:"theo-time-tooltip-text"}),t}update(t,i){this.Nn=t;const s=this.Fn(t);this.el().style.left=i,this.el().setAttribute("data-current-time",s),this.keepTooltipsInside&&(d(this.Dn,s),this.Bn())}Bn(){if(this.keepTooltipsInside&&this.tooltip.offsetParent){const t=this.player().contentEl(),i=t.getClientRects(),s=i.length>0?i[0]:void 0,e=_(getComputedStyle(t).fontSize);ui(this.tooltip,this.el(),s,e)}}Fn(t){const i=this.js,s=t-ea(i);return oa(ia(i)?w.min(s,0):s,ra(i))}dispose(){var t;this.js.removeEventListener("dimensionchange",this.$n),null==(t=this.js.presentation)||t.removeEventListener(bt.MODE_CHANGE,this.$n),super.dispose()}constructor(t,i){var s;(super(t,i),this.Nn=NaN,this.$n=()=>{const t=sa(this.player()),i=this.js;let s=(t-na(i))/ra(i)||0;s=Oi(s,0,1),this.update(t,100*s+"%")},this.keepTooltipsInside&&(ta.addClass(this.tooltip,"theo-secondary-color"),this.tooltip.appendChild(this.Dn)),this.on(t,"ready",()=>{this.on(t.controlBar.progressControl,"mouseenter",this.handleMouseMove)}),Ut.te)&&(this.on(t,"firstplay",this.$n),this.on(t,"play",this.$n),this.on(t,"seeking",this.$n),this.on(t,"seeked",this.$n),this.on(t,"timeupdate",this.$n),this.js.addEventListener("dimensionchange",this.$n),null==(s=this.js.presentation)||s.addEventListener(bt.MODE_CHANGE,this.$n),this.on(t,"ready",()=>{this.on(t.controlBar.progressControl,"touchstart",this.handleTouchMove),this.on(t.controlBar.progressControl,"touchmove",Ai(t=>this.handleTouchMove(t),25)),this.$n()}))}};ta.registerComponent("MouseTimeDisplay",tu),Rt();var iu=ta.getComponent("PlayProgressBar"),su=class extends(aa(iu)){updateDataAttr(){const t=sa(this.player());this.el().setAttribute("data-current-time",this.Fn(t))}Fn(t){const i=this.js;return oa(t-ea(i),ra(i))}createEl(){const t=super.createEl();return t.className=this.buildCSSClass(),t}buildCSSClass(){return"theo-primary-color vjs-play-progress vjs-slider-bar "+super.buildCSSClass()}constructor(t,i){super(t,i)}};ta.registerComponent("PlayProgressBar",su),Rt();var eu=ta.getComponent("RemainingTimeDisplay"),nu=class extends(aa(eu)){updateContent(){const t=this.js,i=ra(t);if(i){const s=ha(t).end(0),e=this.localize("Remaining Time"),n=oa(w.max(0,s-this.player().currentTime()),i);n!==this.Pt&&(this.Pt=n,this.contentEl().innerHTML='<span class="vjs-control-text">'+e+"</span> -"+n)}}constructor(t,i){super(t,i),this.on(t,"timeupdate",this.updateContent),this.on(t,"emptied",this.updateContent)}};ta.registerComponent("RemainingTimeDisplay",nu),Rt(),Rt();var ru=class{get js(){var t;return null!=(t=this.xs)?t:this.xs=ua(this.Rn)}On(){const t=this.Vn;if(!t)return;const i=this.js;if(0===i.seekable.length)return;const s=t.cues.slice();this.Ln.Un(s);for(let t=0;t<s.length;t++){const e=s[t],n=s[t+1],r=!n||e.endTime!==n.startTime,h=new hu(e,i,r);this.Hn.push(h),this.zn.appendChild(h.Se)}}Wn(){this.js.addEventListener("loadedmetadata",this.qn),this.js.addEventListener("loadeddata",this.qn),this.js.addEventListener("sourcechange",this.qn),this.js.addEventListener("durationchange",this.Gn),this.js.clip.addEventListener("change",this.Gn),this.js.textTracks.addEventListener("addtrack",this.Xn),this.js.textTracks.addEventListener("removetrack",this.Jn),this.js.textTracks.addEventListener("change",this.qn)}Qn(){this.js.removeEventListener("loadedmetadata",this.qn),this.js.removeEventListener("loadeddata",this.qn),this.js.removeEventListener("sourcechange",this.qn),this.js.removeEventListener("durationchange",this.Gn),this.js.clip.removeEventListener("change",this.Gn),this.js.textTracks.removeEventListener("addtrack",this.Xn),this.js.textTracks.removeEventListener("removetrack",this.Jn),this.js.textTracks.removeEventListener("change",this.qn)}Yn(){if(!(this.js.readyState<Lt.Kn))for(const t of this.js.textTracks)if(t.kind===At.Zn&&t.mode===Tt.tr&&t.cues.length>0&&t.readyState!==xt.ERROR)return t}ir(t){const i=this.Vn;t!==i&&(i&&(this.sr(),i.removeEventListener("cuechange",this.er)),this.Vn=t,t&&(t.addEventListener("cuechange",this.er),this.Gn()))}nr(t){this.Ln.rr(t)}hr(){this.Ln.ke()}ar(){this.Ln.je()}sr(){for(const t of this.Hn)t.Le();this.Ln.ur(),this.Hn=[],this.cr=void 0}Le(){this.Qn(),this.lr.removeEventListener("mousemove",this.dr),this.lr.removeEventListener("mouseenter",this.pr),this.lr.removeEventListener("mouseleave",this.mr),this.ir(void 0),this.Ln.Le(),this.xs=void 0}constructor(t,i){this.Rn=void 0,this.zn=void 0,this.Ln=void 0,this.lr=void 0,this.Vn=void 0,this.Hn=void 0,this.cr=void 0,this.xs=void 0,this.qn=void 0,this.Xn=void 0,this.Jn=void 0,this.dr=void 0,this.mr=void 0,this.pr=void 0,this.Gn=void 0,this.er=void 0,this.Rn=i,this.Hn=[],this.xs=void 0,this.qn=()=>{this.ir(this.Yn())},this.Xn=t=>{const i=t.track;i.kind===At.Zn&&(i.addEventListener("addcue",this.qn),i.addEventListener("removecue",this.qn),i.addEventListener("readystatechange",this.qn)),this.qn()},this.Jn=t=>{const i=t.track;i.kind===At.Zn&&(i.removeEventListener("addcue",this.qn),i.removeEventListener("removecue",this.qn),i.removeEventListener("readystatechange",this.qn)),this.qn()},this.dr=t=>{const i=this.js,s=function(t,i){const s=oi(t),e=t.offsetWidth,n=t.offsetHeight,r=s.top,h=s.left;let o,a;!function(t){return void 0!==t.changedTouches}(i)?(a=i.pageX,o=i.pageY):(a=i.changedTouches[0].pageX,o=i.changedTouches[0].pageY);const u=Oi((r-o+n)/n,0,1),c=Oi((a-h)/e,0,1);return{x:c,y:u}}(this.zn,t);let e=na(i)+s.x*ra(i);e===i.duration&&(e-=.1),this.nr(e)},this.mr=()=>{this.Ln.je()},this.pr=()=>{this.Ln.ke()},this.Gn=()=>{this.Vn&&(this.sr(),this.On(),this.er())},this.er=()=>{var t,i,s;const e=null==(i=this.Vn)||null==(t=i.activeCues)?void 0:t[0],n=Xi(this.Hn,t=>t.gr===e);n!==this.cr&&(null==(s=this.cr)||s.yr(),this.cr=n,null==n||n.br())},this.lr=t,this.Ln=new ou,this.Rn.contentEl().appendChild(this.Ln.Se),this.zn=h.createElement("div"),r(this.zn,"theoplayer-chapterbar"),this.lr.appendChild(this.zn),this.lr.addEventListener("mousemove",this.dr),this.lr.addEventListener("mouseenter",this.pr),this.lr.addEventListener("mouseleave",this.mr),this.Wn()}},hu=class{get Se(){return this.zs}br(){r(this.zs,"theoplayer-chapter-indicator-active")}yr(){ci(this.zs,"theoplayer-chapter-indicator-active")}wr(t,i){const s=t.seekable.start(0),e=t.seekable.end(t.seekable.length-1),n=e-s,o=this.gr.startTime,a=this.gr.endTime,u=a>=s&&o<=e,c=Oi(o-s,0,n),l=Oi(a-s,0,n),d=w.max(0,l-c),f=h.createElement("div");r(f,"theoplayer-chapter-indicator");const v=h.createElement("div");r(v,"theoplayer-chapter-indicator-highlight"),f.appendChild(v),i&&r(f,"theoplayer-chapter-indicator-discontinuous");const p=c/n*100,m=d/n*100;return f.style.display=u?"":"none",f.style.width=m+"%",f.style.left=p+"%",f}Le(){Zt(this.zs)}constructor(t,i,s){this.gr=void 0,this.zs=void 0,this.gr=t,this.zs=this.wr(i,s)}},ou=class{je(){this.kr--,0===this.kr&&ci(this.Se,"theoplayer-chapter-hovering")}Un(t){this._r=t||[],this._r.length>0&&(this.Se.style.display="")}jr(t){d(this.Sr,t.content)}ur(){this._r=[],d(this.Sr,""),this.Se.style.display="none"}ke(){this.kr++,this.kr>0&&r(this.Se,"theoplayer-chapter-hovering")}rr(t){for(const i of this._r)if(au(i,t)){this.jr(i);break}}Le(){Zt(this.Se)}constructor(){this._r=[],this.Se=void 0,this.Sr=void 0,this.kr=0,this.Se=h.createElement("div"),r(this.Se,"theoplayer-chaptertitle"),this.Se.style.display="none",this.Sr=h.createElement("p"),this.Se.appendChild(this.Sr)}};function au(t,i){return new _i([t.startTime,t.endTime]).Tr(i)}var uu=ta.getComponent("SeekBar"),cu=class extends(aa(uu)){updateAriaAttributes(t){const i=sa(this.player()),s=this.js;t.setAttribute("aria-valuenow",(100*this.Cr(i)).toFixed(2)),t.setAttribute("aria-valuetext",oa(i-ea(s),ra(s)))}getPercent(){return this.Cr(this.player().currentTime())}handleMouseMove(t){if(this.js&&this.js.ads&&this.js.ads.playing)return;const i=this.js;let s=na(i)+this.calculateDistance(t)*ra(i);s>=i.duration&&(s=i.duration-.1),this.zn.nr(s),this.player().currentTime(s)}handleMouseDown(t){this.playingStates.push(!this.player().paused()),this.zn.hr(),super.handleMouseDown(t)}handleMouseUp(t){this.videoWasPlaying=Boolean(this.playingStates.pop()),this.zn.ar(),super.handleMouseUp(t)}Cr(t){const i=this.js,s=(t-na(i))/ra(i);return Oi(s,0,1)}dispose(){this.zn.Le(),A(this.playingStates)}constructor(t,i){super(t,i),this.zn=void 0,this.playingStates=[],this.on(t,"emptied",this.update),this.on(t,"seeking",this.update),this.zn=new ru(this.el(),t)}};ta.registerComponent("SeekBar",cu),Rt();var lu=ta.getComponent("ProgressControl");xi.ie.te&&ta.registerComponent("ProgressControl",class extends lu{createEl(){return super.createEl("div",{className:"vjs-progress-control vjs-control"})}handleMouseMove(t){this.seekBar.handleMouseMove(t)}handleMouseDown(t){this.seekBar.handleMouseDown(t)}constructor(t,i){super(t,i),this.on(this,"touchmove",this.handleMouseMove),this.on("touchstart",this.handleMouseDown),this.seekBar.off(["touchmove","touchstart"])}}),Rt();var du=ta.getComponent("TooltipProgressBar"),fu=class extends(aa(du)){updateDataAttr(){const t=sa(this.player()),i=this.Fn(t);this.el().setAttribute("data-current-time",i),this.tooltip.innerHTML=i}Fn(t){const i=this.js;return oa(t-ea(i),ra(i))}createEl(){const t=super.createEl();return t.className=this.buildCSSClass(),t}buildCSSClass(){return"theo-primary-color vjs-tooltip-progress-bar vjs-slider-bar "+super.buildCSSClass()}constructor(t,i){super(t,i)}};function vu(t){for(const i of t)if(i.enabled)return i}function pu(t){if(t)return t.label&&""!==t.label?{name:t.label,hd:!1}:{name:mu(t),description:gu(t),hd:!!t.height&&t.height>=720}}function mu(t){return t.height?t.height+"p":t.bandwidth?gu(t):""}function gu(t){return t.bandwidth?t.bandwidth>1e7?(t.bandwidth/1e6).toFixed(0)+"Mbps":t.bandwidth>1e6?(t.bandwidth/1e6).toFixed(1)+"Mbps":(t.bandwidth/1e3).toFixed(0)+"kbps":""}ta.registerComponent("TooltipProgressBar",fu),Rt(),Rt(),Rt(),Rt(),Rt();var yu=class{get Pr(){return this.Mr}set Pr(t){const i=this.Mr;for(let s=i.length-1;s>=0;s--){const e=i[s];C(t,e)||this.Ar(e)}for(const i of t)this.Ir(i);this.Er.ue()}get Dr(){return this.Er.menuItems}Nr(t){const i=this.Dr;if(i)for(const s of i)if(s.Fr===t)return s}Br(t){const i=this.Er.addMenuItem();return i.Fr=t,i.on("click",()=>this.$r(i)),i.el().setAttribute("role","menuitemradio"),i}Rr(t){t.dispose()}Or(t){return!0}Ir(t){if(this.Or(t)){C(this.Mr,t)||this.Mr.push(t);const i=this.Nr(t)||this.Br(t);return this.Vr(i),i}this.Ar(t)}Ar(t){const i=this.Nr(t);i&&(this.Er.removeMenuItem(i),this.Rr(i)),Yi(this.Mr,t)}Le(){const t=[];for(const i of this.Mr)t.push(i);for(const i of t)this.Ar(i);A(t)}constructor(t){this.Er=void 0,this.Mr=[],this.Er=t}},bu=class extends yu{Ur(){return this.Lr=h.createElement("span"),this.Lr.className="theo-settings-control-menu-item-title",d(this.Lr,this.Hr.localize("Quality")),this.Lr}zr(){return this.Wr=h.createElement("span"),this.Wr.className="theo-settings-control-menu-quality-automatic",d(this.Wr,this.Hr.localize("Automatic")),this.Wr}qr(){return this.Gr=h.createElement("span"),d(this.Gr,this.Hr.localize("Automatic")),this.Gr}Xr(){return this.Jr=h.createElement("span"),this.Jr.className="theo-primary-color theo-settings-control-menu-item-hd-label",d(this.Jr,this.Hr.localize("HD")),this.Jr}Qr(){const t=h.createElement("span");t.className="theo-primary-color theo-settings-control-menu-item-value",t.appendChild(this.Wr),t.appendChild(h.createTextNode(" ")),t.appendChild(this.Gr),t.appendChild(h.createTextNode(" ")),t.appendChild(this.Jr),this.Yr.el().appendChild(this.Lr),this.Yr.el().appendChild(t),this.Yr.el().setAttribute("aria-label",this.Hr.localize("Open the video quality settings menu"))}Kr(){const t=this.Zr,i=t&&Tu(t.targetQuality),s=t&&t.activeQuality,e=pu(this.th(i||s))||{name:this.Hr.localize("Automatic")};d(this.Gr,e.name),di(this.Wr,"vjs-hidden",Boolean(i)),di(this.Jr,"vjs-hidden",!e.hd)}Vr(t){const i=pu(t.Fr)||{name:this.Hr.localize("Automatic")};let s=i.name;i.hd&&(s+='<span class="theo-primary-color theo-settings-control-menu-item-hd-label">'+this.Hr.localize("HD")+"</span>"),i.description&&(s+='<span class="theo-settings-control-submenu-item-alternate-value">'+i.description+"</span>"),t.el().innerHTML=s,t.el().setAttribute("aria-label",this.Hr.localize("Set video quality to ")+i.name),t.Fr?t.selected(t.Fr===this.ih):t.selected(!this.ih)}$r(t){this.Zr&&(this.Zr.targetQuality=t.Fr&&t.Fr.videoQualities)}th(t,i){const s=i||this.Pr;for(const i of s)if(t&&i&&-1!==i.videoQualities.indexOf(t))return i}Le(){this.xs.videoTracks.removeEventListener(["addtrack","removetrack","change"],this.sh),this.Hr.off("languagechange",this.ne),this.Zr&&(this.Zr.removeEventListener("activequalitychanged",this.eh),this.Zr.removeEventListener("targetqualitychanged",this.nh),this.Zr.removeEventListener("update",this.rh)),super.Le()}constructor(t,i,s){super(t.subMenu),this.Yr=void 0,this.xs=void 0,this.Hr=void 0,this.Zr=void 0,this.ih=void 0,this.Lr=void 0,this.Wr=void 0,this.Gr=void 0,this.Jr=void 0,this.sh=()=>{const t=vu(this.xs.videoTracks);if(t===this.Zr)return;let i=[];if(this.Zr&&(this.Zr.removeEventListener("activequalitychanged",this.eh),this.Zr.removeEventListener("targetqualitychanged",this.nh),this.Zr.removeEventListener("update",this.rh)),this.Zr=t,t){t.addEventListener("activequalitychanged",this.eh),t.addEventListener("targetqualitychanged",this.nh),t.addEventListener("update",this.rh);const s=ku(xu(t.qualities.filter(t=>t.available)));i=s.length>1?[void 0,...s]:[void 0]}this.Pr=i,this.nh(),this.eh()},this.rh=t=>{const i=t.track;if(i!==this.Zr)return;const s=ku(xu(i.qualities.filter(t=>t.available))),e=i&&Tu(i.targetQuality);let n;this.ih=this.th(e,s),n=s.length>1?[void 0,...s]:[void 0],this.Pr=n,this.Kr()},this.eh=()=>{this.Ir(void 0),this.Kr()},this.nh=()=>{const t=vu(this.xs.videoTracks),i=t&&Tu(t.targetQuality),s=this.th(i),e=this.ih;s!==e&&(this.ih=s,s&&e||this.Ir(void 0),e&&C(this.Pr,e)&&this.Ir(e),i&&this.Ir(s),this.Kr())},this.ne=()=>{d(this.Er.menuHeader.el(),this.Hr.localize("Quality")),d(this.Lr,this.Hr.localize("Quality")),d(this.Wr,this.Hr.localize("Automatic")),d(this.Gr,this.Hr.localize("Automatic")),d(this.Jr,this.Hr.localize("HD")),this.Yr.el().setAttribute("aria-label",this.Hr.localize("Open the video quality settings menu"));for(const t of this.Dr)this.Vr(t);this.Kr()},this.Yr=t,this.xs=i,this.Hr=s,this.Lr=this.Ur(),this.Wr=this.zr(),this.Gr=this.qr(),this.Jr=this.Xr(),this.Qr(),d(this.Er.menuHeader.el(),this.Hr.localize("Quality")),this.Pr=[void 0],this.xs.videoTracks.addEventListener(["addtrack","removetrack","change"],this.sh),this.Hr.on("languagechange",this.ne),this.sh()}},wu=class{get height(){return this.hh[0].height}get bandwidth(){return this.hh[0].bandwidth}get videoQualities(){return this.hh}get label(){return this.hh[0].label}add(t){this.hh.push(t)}constructor(t){this.hh=void 0,this.hh=t}};function ku(t){const i=[];for(const s of t){const t=s;let e=!1;for(const s of i)if(Su(s,t)){s.add(t),e=!0;break}e||i.push(new wu([t]))}return i}function _u(t,i){return t&&i?Wi(t,i):Li.oh}function ju(t,i){return t===i?Li.oh:_u(t.height,i.height)||_u(t.width,i.width)||_u(t.bandwidth,i.bandwidth)}function xu(t){return Bi(t,ju).reverse()}function Su(t,i){return t.label&&i.label&&t.label===i.label||vt(pu(t),pu(i))}function Tu(t){return Gt(t)?1===t.length?t[0]:void 0:t}function Cu(t){return 1===t?"Normal":""+w.round(100*t)/100}Rt();var Pu=class extends yu{Ur(){return this.Lr=h.createElement("span"),this.Lr.className="theo-settings-control-menu-item-title",d(this.Lr,this.Hr.localize("Speed")),this.Lr}Qr(){const t=h.createElement("span");return t.className="theo-primary-color theo-settings-control-menu-item-value",this.Yr.el().appendChild(this.Lr),this.Yr.el().appendChild(t),this.Yr.el().setAttribute("aria-label",this.Hr.localize("Open the video speed settings menu")),t}Br(t){const i=super.Br(t);return this.Vr(i),i}Vr(t){const i=t.Fr,s=this.Hr.localize(Cu(i));d(t.el(),s),t.el().setAttribute("aria-label",this.Hr.localize("Set video speed to ")+s),t.selected(t.Fr===this.xs.playbackRate)}$r(t){this.xs.playbackRate=t.Fr}Le(){this.xs.removeEventListener("ratechange",this.ah),this.Hr.off("languagechange",this.ne),super.Le()}constructor(t,i,s,e){super(t.subMenu),this.Yr=void 0,this.xs=void 0,this.Hr=void 0,this.uh=void 0,this.Lr=void 0,this.dh=void 0,this.ah=()=>{this.uh&&this.Ir(this.uh);const t=this.xs.playbackRate;this.uh=t,d(this.dh,this.Hr.localize(Cu(t))),t&&this.Ir(t)},this.ne=()=>{d(this.Er.menuHeader.el(),this.Hr.localize("Speed")),d(this.Lr,this.Hr.localize("Speed")),this.Yr.el().setAttribute("aria-label",this.Hr.localize("Open the video speed settings menu"));for(const t of this.Dr)this.Vr(t);this.ah()},this.Yr=t,this.xs=i,this.Hr=s,this.Lr=this.Ur(),this.dh=this.Qr(),d(this.Er.menuHeader.el(),this.Hr.localize("Speed")),this.Pr=e,this.xs.addEventListener("ratechange",this.ah),this.Hr.on("languagechange",this.ne),this.ah()}};ta.registerComponent("SettingsButton",class extends Na{createEl(){const t=super.createEl();return this.fh=ta.createEl("span",{className:"theo-settings-control-label-hd theo-primary-background"}),d(this.fh,this.localize("HD")),t.appendChild(this.fh),t}buildCSSClass(){return"vjs-icon-cog theo-settings-control-button "+super.buildCSSClass()}ne(){super.ne(),d(this.fh,this.localize("HD")),d(this.menu.menuHeader.el(),this.localize("Settings"))}dispose(){this.Zr&&(this.Zr.removeEventListener("activequalitychanged",this.eh),this.Zr=void 0),this.js.videoTracks.removeEventListener(["addtrack","removetrack","change"],this.ph),this.mh.Le(),this.gh.Le(),super.dispose()}constructor(t,i){var s,e;super(t,i),this.yh=void 0,this.mh=void 0,this.bh=void 0,this.gh=void 0,this.Zr=void 0,this.ph=()=>{const t=vu(this.js.videoTracks);t!==this.Zr&&(this.Zr&&this.Zr.removeEventListener("activequalitychanged",this.eh),this.Zr=t,t&&t.addEventListener("activequalitychanged",this.eh),this.eh())},this.eh=()=>{var t;const i=null==(t=this.Zr)?void 0:t.activeQuality,s=Boolean(i&&i.height>=720);this.player().toggleClass("theo-hd",s)},r(this.menu.el(),"theo-settings-control-menu"),d(this.menu.menuHeader.el(),t.localize("Settings")),this.controlText("Settings"),this.Re.$e=this.controlText(),this.yh=this.menu.addSubMenuItem({name:"QualityMenuItem"}),this.mh=new bu(this.yh,this.js,t);const n=null!=(e=null==i||null==(s=i.playerOptions)?void 0:s.playbackRates)?e:[];this.bh=this.menu.addSubMenuItem({name:"PlaybackRateMenuItem"}),this.gh=new Pu(this.bh,this.js,t,n),this.js.videoTracks.addEventListener(["addtrack","removetrack","change"],this.ph),this.ph()}}),Rt(),Rt(),Rt();var Mu=class extends yu{wh(t){const i=t.label;if(i)return i;const s=t.language;if(s){const t=Zi(s);if(t)return t.kh}return s||""}_h(){this.Pr=this.jh}Le(){this.jh.removeEventListener("addtrack",this.xh),this.jh.removeEventListener("removetrack",this.Sh),this.jh.removeEventListener("change",this.Th),super.Le()}constructor(t,i){super(t),this.jh=void 0,this.xh=t=>{const i=t.track;this.Ir(i),i.addEventListener("update",this.Ch)},this.Sh=t=>{const i=t.track;this.Ar(i),i.removeEventListener("update",this.Ch)},this.Th=t=>this._h(),this.Ch=()=>{for(const t of this.Pr)this.Ir(t)},this.jh=i,this.jh.addEventListener("addtrack",this.xh),this.jh.addEventListener("removetrack",this.Sh),this.jh.addEventListener("change",this.Th),this._h()}},Au=class extends Mu{Vr(t){const i=t.Fr,s=this.Hr.localize(this.wh(i));d(t.el(),s),t.el().setAttribute("aria-label",this.Hr.localize("Set the audio language to")+" "+s),t.selected(i.enabled)}$r(t){const i=t.Fr;for(const t of this.js.audioTracks)t!==i&&(t.enabled=!1);i.enabled=!0}Le(){this.Hr.off("languagechange",this.ne),super.Le()}constructor(t,i,s){super(t,i.audioTracks),this.js=void 0,this.Hr=void 0,this.ne=()=>{d(this.Er.menuHeader.el(),this.Hr.localize("Language"));for(const t of this.Dr)this.Vr(t)},this.js=i,this.Hr=s,d(this.Er.menuHeader.el(),this.Hr.localize("Language")),this.Hr.on("languagechange",this.ne)}};ta.registerComponent("audioTrackButton",class extends Na{buildCSSClass(){return"vjs-icon-audio theo-audio-track-control-button "+super.buildCSSClass()}dispose(){this.Ph.Le(),super.dispose()}constructor(t,i){super(t,i),this.Ph=void 0,this.minimumMenuItems=2,this.Ph=new Au(this.menu,this.js,t),this.controlText("Language"),this.Re.$e=this.controlText()}}),Rt(),Rt();var Iu=class extends Mu{Or(t){return!!super.Or(t)&&(!t.forced&&Dt(t.kind))}Br(t){const i=super.Br(t);r(i.el(),"theo-text-track-menu-item");const s=h.createElement("span");i.Mh=s;const e=h.createElement("div");e.className="theo-text-track-menu-item-toggle",i.Ah=e;const n=t=>this.Ih(t,i);i.Eh=n,e.addEventListener("click",n);const o=h.createElement("div");return o.className="theo-text-track-menu-item-toggle-slider",e.appendChild(o),i.el().appendChild(s),i.el().appendChild(e),i}Vr(t){const i=t,s=i.Fr,e=this.Hr.localize(this.wh(s));d(i.Mh,e),i.el().setAttribute("aria-label",this.Hr.localize("Set the subtitle language to")+" "+e),i.el().setAttribute("role","menuitemcheckbox"),i.selected(s.mode===Tt.tr)}Rr(t){const i=t;i.Ah.removeEventListener("click",i.Eh),super.Rr(t)}$r(t){const i=t.Fr;for(const t of this.js.textTracks)t!==i&&S(t.kind,i.kind)&&(t.mode=Tt.Dh);i.mode!==Tt.tr?i.mode=Tt.tr:i.mode=Tt.Dh}Ih(t,i){t.stopImmediatePropagation(),this.$r(i)}Le(){this.Hr.off("languagechange",this.ne),super.Le()}constructor(t,i,s){super(t,i.textTracks),this.js=void 0,this.Hr=void 0,this.ne=()=>{d(this.Er.menuHeader.el(),this.Hr.localize("Subtitles"));for(const t of this.Dr)this.Vr(t)},this.js=i,this.Hr=s,d(this.Er.menuHeader.el(),s.localize("Subtitles")),this.Hr.on("languagechange",this.ne)}};ta.registerComponent("subtitlesButton",class extends Na{buildCSSClass(){return"vjs-icon-subtitles theo-text-track-control-button "+super.buildCSSClass()}dispose(){this.Ph.Le(),super.dispose()}constructor(t,i){super(t,i),this.Ph=void 0,this.Ph=new Iu(this.menu,this.js,t),this.controlText("Subtitles"),this.Re.$e=this.controlText()}}),Rt();var Eu=ta.getComponent("playToggle"),Du=class extends(aa(Eu)){handleClick(t){this.js.muted||this.js.prepareWithUserAction(),super.handleClick(t)}handlePlay(t){super.handlePlay(t),this.controlText("Pause"),this.Re.$e=this.controlText()}handlePause(t){this.js.ended||(super.handlePause(t),this.controlText("Play"),this.Re.$e=this.controlText())}ne(){this.Re.$e=this.controlText()}dispose(){this.Re.Le(),this.js.removeEventListener("ended",this.Nh),super.dispose()}constructor(t,i){super(t,i),this.Re=void 0,this.Nh=()=>{this.controlText("Replay"),this.Re.$e=this.controlText()},this.controlText("Play"),this.Re=new Ea(this,this.controlText()),this.js.addEventListener("ended",this.Nh),this.on(t,"languagechange",this.ne),xi.ie.tn&&new ba(this.el())}};ta.registerComponent("playToggle",Du),Rt();var Nu=ta.getComponent("fullscreenToggle"),Fu=class extends(aa(Nu)){handleClick(t){this.js.prepareWithUserAction(),super.handleClick(t)}handleFullscreenChange(t){super.handleFullscreenChange(t),this.updateContent()}updateContent(){const t=this.player().isFullscreen()?"Exit fullscreen":"Fullscreen";this.controlText(t),this.Re.$e=this.controlText()}dispose(){this.Re.Le(),super.dispose()}constructor(t,i){super(t,i),this.Re=void 0,this.controlText("Fullscreen"),this.Re=new Ea(this,this.controlText()),xi.ie.tn&&new ba(this.el()),this.on(t,"languagechange",this.updateContent)}};ta.registerComponent("fullscreenToggle",Fu),Rt();var Bu=ta.getComponent("muteToggle"),$u=class extends(aa(Bu)){handleClick(t){this.js.muted&&!this.js.paused&&this.js.prepareWithUserAction(),super.handleClick(t)}update(t){super.update(t),this.ne()}ne(){const t=this.player().muted()?"Unmute":"Mute";this.controlText(t),this.Re.$e=this.controlText()}dispose(){this.Re.Le(),super.dispose()}constructor(t,i){super(t,i),this.Re=void 0,this.controlText("Mute"),this.Re=new Ea(this,this.controlText()),xi.ie.tn&&new ba(this.el()),this.on(t,"languagechange",this.ne),L&&(this.removeClass("vjs-hidden"),this.on(t,"loadstart",()=>{this.removeClass("vjs-hidden")}))}};ta.registerComponent("muteToggle",$u),Rt();var Ru=ta.getComponent("BigPlayButton"),Ou=class extends(aa(Ru)){createEl(){const t=super.createEl(),i=ta.createEl("div",{className:"theo-big-play-button-svg-container"});return i.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 150" fill="currentColor">\n <circle cx="75" cy="75" r="73" fill="#000" fill-opacity="0.2"></circle>\n <circle cx="75" cy="75" r="73" class="theo-play-svg-circle" stroke-width="4" stroke="currentColor" fill="none" transform="rotate(-90,75,75)"></circle>\n <g transform="translate(85,75) scale(0.5625) translate(-75,-75)">\n <path d="m 123.89639,85.432 c -12.865,9.167 -29.482997,19.402 -49.848997,30.7 -19.634,11.035 -36.851,19.7 -51.65,26 l -16.3990002,6.099 c -1.033,-4.433 -2,-11.002 -2.9,-19.7 -2.033,-17.333 -3.04999998,-36.466 -3.04999998,-57.399 0,-19.167 1.38199998,-37.081 4.14799998,-53.75 l 4.0019995,-19.1499994 17.3990007,5.849 c 15.068,5.9999994 31.401,14.5169994 49,25.5509994 18.631,11.666 34.616997,22.766 47.948997,33.3 6.663,5.3 11.463,9.383 14.396,12.25 l -13.046,10.25"></path>\n </g>\n</svg>',t.appendChild(i),t}buildCSSClass(){return"theo-primary-color "+super.buildCSSClass()}handleClick(t){this.js.muted||this.js.prepareWithUserAction(),super.handleClick(t),void 0!==this.js.vr&&"unavailable"!==this.js.vr.state&&(this.js.vr.useDeviceMotionControls=!0)}};ta.registerComponent("BigPlayButton",Ou),Rt();var Vu=/^([^#]*)#xywh=(\d+),(\d+),(\d+),(\d+)\s*$/;ta.registerComponent("MouseTimeDisplay",class extends tu{Fh(t){const i=t.track;"metadata"===i.kind&&"thumbnails"===i.label&&void 0===this.Bh&&(this.Bh=i,this.$h=i.src?xi.Rh(i.src).href:void 0,this.Bh.addEventListener(["addcue","removecue"],this.Oh),this.Vh())}Uh(t){t.track===this.Bh&&this.Lh()}createEl(){const t=super.createEl();return this.Hh=ta.createEl("img",{className:"theo-time-tooltip-thumbnail"}),this.zh=ta.createEl("canvas",{className:"theo-time-tooltip-thumbnail"}),t}update(t,i){super.update(t,i),this.keepTooltipsInside&&this.Wh(t)}Wh(t){let i;if(this.Bh&&this.Bh.cues){const s=function(t,i){let s=t[0];for(const e of t)if(e.startTime<=i)s=e;else if(i>=e.endTime)return s;return s}(this.Bh.cues,t);i=s&&s.content}if(i===this.qh)return;if(this.qh=i,ta.toggleClass(this.el(),"theo-time-tooltip-has-thumbnail",Boolean(i)),!i)return void this.Gh();const s=i.match(Vu);if(s){let[,t,i,e,n,r]=s;t=this.Xh(t);const h={Jh:Number(i),Qh:Number(e),Ci:Number(n),Pi:Number(r)};this.Yh(t,h)}else{const t=this.Xh(i);this.Yh(t)}}Vh(){j(this.Nn)||this.Wh(this.Nn)}Xh(t){return this.Bh&&this.$h?xi.Rh(t,this.$h).href:t}Yh(t,i){this.Hh&&(this.Hh.src!==t?(this.Hh.onload=()=>{this.Kh(i)},this.Hh.src="",this.Hh.src=t):this.Kh(i))}Kh(t){if(!this.zh||!this.Hh)return;const i=this.zh.getContext("2d");i&&(null!=t||(t={Jh:0,Qh:0,Ci:this.Hh.naturalWidth,Pi:this.Hh.naturalHeight}),this.zh.width=t.Ci,this.zh.height=t.Pi,i.drawImage(this.Hh,t.Jh,t.Qh,t.Ci,t.Pi,0,0,t.Ci,t.Pi),this.Zh(this.zh))}Zh(t){this.io||(si(this.tooltip,t),this.io=t),this.Bn()}Gh(){this.io&&(this.tooltip.removeChild(this.io),this.io=void 0,this.Bn())}Lh(){void 0!==this.Bh&&(this.Bh.removeEventListener(["addcue","removecue"],this.Oh),this.Bh=void 0),this.$h=void 0,this.Gh(),this.qh=void 0}dispose(){this.Lh(),super.dispose()}constructor(t,i){super(t,i),this.io=void 0,this.Bh=void 0,this.$h=void 0,this.so=t=>this.Fh(t),this.eo=t=>this.Uh(t),this.Oh=t=>this.Vh(),this.qh=void 0,this.showThumbnails=()=>{this.io&&this.io.hidden&&(this.io.hidden=!1,this.Bn())},this.hideThumbnails=()=>{!this.io||this.io.hidden||this.player().scrubbing()||(this.io.hidden=!0,this.Bn())},this.on(this.player().textTracks(),"addtrack",this.so),this.on(this.player().textTracks(),"removetrack",this.eo),Ut.te&&(this.on(t,"seeking",this.showThumbnails),this.on(t,"seeked",this.hideThumbnails))}}),Rt();var Uu=ta.getComponent("VolumeLevel");ta.registerComponent("VolumeLevel",class extends Uu{createEl(){const t=super.createEl();return t.className=this.buildCSSClass(),t}buildCSSClass(){return"theo-primary-color vjs-volume-level "+super.buildCSSClass()}}),Rt(),Rt();var Lu=ta.getComponent("Component"),Hu=class extends Lu{createEl(){const t=super.createEl();return t.className=this.buildCSSClass(),t}buildCSSClass(){return"theo-menu-container "+super.buildCSSClass()}};Hu.prototype.h=q({},Hu.prototype.h,{children:[]}),ta.registerComponent("controlBarMenuContainer",Hu);var zu=ta.getComponent("Player"),Wu=class extends zu{dispose(){const t=this.el(),i=this.contentEl(),s=t.parentNode,e=t.nextSibling;super.dispose(),Zt(i),this.Si&&s&&(e?s.insertBefore(t,e):s.appendChild(t)),h.body.removeEventListener("keydown",this.handleKeyPress),h.body.removeEventListener("click",this.handleClick)}constructor(t,i,s){super(t,i,s),this.handleKeyPress=t=>{9===t.which&&this.addClass("theo-probably-keyboard-focus")},this.handleClick=t=>{0===t.x&&0===t.y||this.removeClass("theo-probably-keyboard-focus")},h.body.addEventListener("keydown",this.handleKeyPress),h.body.addEventListener("click",this.handleClick)}};Wu.prototype.h=q({},zu.prototype.h,{children:["bigPlayButton","AdControlPanel","TopControlBar","mediaLoader","upNextContainer","posterImage","chromecastOverlay","upcomingAdNotificationText","controlBarMenuContainer","controlBar","textTrackDisplay","loadingSpinner","errorDisplay","textTrackSettings","xrCompass"]}),ta.registerComponent("Player",Wu),Rt(),Rt();var qu=ta.getComponent("Player"),Gu=qu.prototype.ns;qu.prototype.ns=function(t){if(!(this.H&&this.H.Ls&&this.H.Ls()))return Gu.call(this,t)};var Xu=qu.prototype.createEl;function Ju(t,i,s,e){const n=q({controls:!0,playbackRates:[.25,.5,1,1.25,1.5,2]},s);n.controlBar=q({progressControl:{keepTooltipsInside:!0}},n.controlBar);const h=n.techOrder||(n.techOrder=[]);-1===h.indexOf("THEOplayer")&&h.unshift("THEOplayer");(n.theoplayer||(n.theoplayer={})).player=t,s&&Qt(s.language)&&(n.languages=q({},n.languages,{[Qi]:s.language}),n.language=Qi),i.setAttribute("data-vjs-player","");const o=i.getAttribute("style"),a=ta(t.element,n,e);return a.ready(()=>{ca(a),function(t,i){if(i){if(i.ads){const s=i=>{const s="adbreakbegin"===i.type,e=i.adBreak.integration===F.no;la(t,s,e)};i.ads.addEventListener("adbreakbegin",s),i.ads.addEventListener("adbreakend",s)}if(i.uplynk){var s;const e=i=>{const s="adbreakbegin"===i.type;la(t,s,!1)};null==(s=i.uplynk)||s.ads.adBreaks.addEventListener("addadbreak",t=>{t.adBreak.addEventListener("adbreakbegin",e),t.adBreak.addEventListener("adbreakend",e)})}i.addEventListener("sourcechange",()=>{la(t,!1,!1)})}}(a,t),function(t){t.on("mouseleave",da)}(a)}),i.removeAttribute("data-vjs-player"),o?i.setAttribute("style",o):i.removeAttribute("style"),xi.ie.te&&(r(i,"theo-mobile"),Qu(i)),function(t){t.on("seeking",()=>{ri(t.el(),"vjs-ended")&&t.currentTime()!==t.duration()&&t.play()})}(a),a}function Qu(t){a.outerHeight>a.outerWidth?(ci(t,"theo-mobile-landscape"),r(t,"theo-mobile-portrait")):(ci(t,"theo-mobile-portrait"),r(t,"theo-mobile-landscape"))}qu.prototype.createEl=function(){const t=Xu.call(this),i=ta.createEl("div");for(i.className="theo-player-wrapper";t.firstChild;)i.appendChild(t.firstChild);return t.appendChild(i),this.S=i,t},Rt(),Rt(),Rt(),Rt();var Yu=ta.getComponent("Button");var Ku="THEOPiPCloseButton";ta.registerComponent(Ku,class extends Yu{buildCSSClass(){return"theo-close-button theo-pip-close"}handleClick(){this.ho.ro()}constructor(t,i){if(super(t,i),this.ho=void 0,this.controlText("Close Picture-in-Picture"),!function(t){return!!t&&Boolean(t.ho)}(i))throw new v("Invalid Picture-in-picture options.");this.ho=i.ho}});var Zu=class extends X{get oo(){return this.ao}get uo(){return this.t.ds()}co(){this.t.jn(K.lo,this.do),this.fo||this.t.jn(K.vo,this.po),this.t.mo.on("languagechange",this.ne)}yo(){var t;return"theo-pip-"+(null!=(t=this.bo)?t:"bottom-right")}wo(t){const i=this.ko;i&&!this.uo&&(this._o||this.jo(),this.xo(),r(i,"theo-pip"),r(i,this.yo()),this.ao=!0,this.So=t,this.To=!1,this.Co(new kt(N.PICTURE_IN_PICTURE)))}Po(t){const i=this.ko;i&&(this.Mo(),ci(i,"theo-pip"),ci(i,this.yo()),this.ao=!1,this.To=t,this.Ao=this.So,this.So=!1,this.Co(new kt(N.INLINE)))}jo(){if(!this._o){const t=this.t.mo;t.addChild(Ku,{ho:this});const i=h.createElement("div");i.className="theo-pip-overlay",this.Io=h.createElement("div"),this.Io.className="theo-pip-overlay-text",d(this.Io,t.localize("Video playing in Picture-in-Picture mode")),i.appendChild(this.Io),si(t.el(),i),this.Eo=i,this._o=!0}}Do(){this.No&&!this.Fo&&this.t.Bo&&(this.$o=this.t.Bo.Ro(gi,this.Oo),this.Fo=!0)}Vo(){this.$o&&this.t.Bo&&(this.t.Bo.Uo(this.$o),this.Fo=!1)}xo(){const t=this.t.mo.contentEl(),i=t.getBoundingClientRect(),s=h.documentElement.clientWidth,e=h.documentElement.clientHeight;t.style.top=i.top+"px",t.style.bottom=e-i.bottom+"px",t.style.right=s-i.right+"px",t.style.left=i.left+"px",t.style.width=i.width+"px",t.style.height=i.height+"px",t.style.position="fixed"}Mo(){const t=this.t.mo.contentEl();t.style.top="",t.style.bottom="",t.style.right="",t.style.left="",t.style.width="",t.style.height="",t.style.position=""}Lo(){ci(this.ko,"theo-pip"),this.oo&&this.bo&&ci(this.ko,"theo-pip-"+this.bo),this.Eo&&(Zt(this.Eo),this.Eo=void 0)}_n(){this.Lo(),this.Vo(),this.Ho(),this.t.yn(K.lo,this.do),this.t.yn(K.vo,this.po),this.t.mo.off("languagechange",this.ne),this.t=void 0}constructor(t,i,s){super(),this.zo=void 0,this.bo=void 0,this.fo=void 0,this.t=void 0,this.ko=void 0,this.Wo=!1,this.ao=!1,this.To=!1,this.So=!1,this._o=!1,this.ro=void 0,this.Fo=!1,this.$o=void 0,this.Eo=void 0,this.Io=void 0,this.Ao=!1,this.No=void 0,this.do=()=>{this.Wo=!0,this.No&&!this.oo&&this.$o&&this.zo&&this.$o.qo<=this.zo&&this.wo(!1)},this.po=()=>{this.fo||(this.Wo=!1,this.ro(),this.Po(!1))},this.ne=()=>{if(this.Io){const t=this.t.mo;d(this.Io,t.localize("Video playing in Picture-in-Picture mode"))}},this.Oo=t=>{!this.So&&this.No&&(j(t)||(this.zo&&t<=this.zo||this.Ao?this.ao||this.To||this.wo(!1):this.ao?this.Po(!1):this.To=!1))},this.zo=i.visibility,this.bo=i.position,this.fo=i.retainPresentationModeOnSourceChange,this.No=void 0!==this.zo,this.t=t,this.ko=t.Go,this.ro=s,this.co()}},tc=class extends jt{Xo(){const t=super.Xo();return t===N.INLINE&&this.Jo.oo?N.PICTURE_IN_PICTURE:t}Qo(t){return t===N.PICTURE_IN_PICTURE||super.Qo(t)}Yo(t){this.Ko=this.Zo,t===N.FULLSCREEN||t===N.NATIVE_PICTURE_IN_PICTURE?this.Jo.Vo():this.Jo.Do(),super.Yo(t)}ta(t){super.ta(t),t===N.PICTURE_IN_PICTURE?O(this.sa.ia(t=>this.ea(t))):t===N.FULLSCREEN?this.Jo.Po(!1):this.Jo.Po(!0)}async ea(t){D(t),await Promise.all([this.na(),this.ra.Po()]).catch(Ci),D(t),this.Jo.wo(!this.ha),this.Co(new kt(this.Zo)),this.ha=!1,this.oa=!1}_i(){this.oa||(this.Jo.oo&&this.aa.ds?this.Yo(N.FULLSCREEN):this.Ko!==N.PICTURE_IN_PICTURE||this.aa.ds?super._i():(this.ha=!0,this.Yo(N.PICTURE_IN_PICTURE)))}_n(){super._n(),this.Jo._n(),this.ua.yn(K.lo,this.ca),this.ua=void 0}constructor(t,i,s,e){super(i,s),this.ua=void 0,this.Jo=void 0,this.Ko=N.INLINE,this.ha=!1,this.ro=()=>{this.Zo===N.PICTURE_IN_PICTURE&&this.Yo(N.INLINE)},this.la=t=>{this.oa||(this.Zo!==N.PICTURE_IN_PICTURE||this.Jo.oo?this.Zo!==N.PICTURE_IN_PICTURE&&this.Jo.oo&&(this.ha=!0,this.Yo(N.PICTURE_IN_PICTURE)):this.Yo(N.INLINE))},this.ca=()=>{this.Xo()!==N.PICTURE_IN_PICTURE&&this.Xo()!==N.INLINE||this.Jo.Do(),this.ua.yn(K.lo,this.ca)},this.ua=t,this.Jo=new Zu(t,e.pip,this.ro),this.Jo.jn(bt.MODE_CHANGE,this.la),this.ua.jn(K.lo,this.ca)}};Rt();var ic=class extends X{get da(){return gt.fa(this.mo.el())||this.mo.supportsFullScreen()}get ds(){return this.mo.isFullscreen()||this.va}wo(){this.mo.requestFullscreen()}Po(){this.mo.exitFullscreen(),this.pa.Po()}_n(){this.Ho(),this.mo.off("fullscreenchange",this.ma),this.pa.yn(W.ga,this.ma),this.pa.yn(W.ya,this.Us),this.mo.isFullWindow&&this.mo.exitFullscreen()}constructor(t,i){super(),this.mo=void 0,this.pa=void 0,this.Hs=!1,this.va=!1,this.ba=!1,this.ma=()=>{if(this.ba)return;const t=this.Hs,i=this.ds;t!==i&&(this.Hs=i,this.Co(new ft))},this.wa=()=>{this.va=this.pa.ds,this.ma()},this.ka=()=>{this.ba||(this.mo.isFullWindow&&this.mo.supportsFullScreen()||this.va&&!this.mo.supportsFullScreen())&&(this.ba=!0,this.mo.exitFullscreen(),this.mo.requestFullscreen(),this.ba=!1,this.ma())},this.mo=t,this.pa=i,this.mo.on("fullscreenchange",this.ma),this.pa.jn(W.ga,this.wa),this.pa.jn(W._a,this.ka),this.pa.jn(W.ya,this.Us),this.ma()}};function sc(t){return class extends t{get Bo(){return this.ja}ds(){return this.xa.Xo()===N.FULLSCREEN}Sa(){return function(t,i){const s=g.create(t),e=i.mo;return dt(s,{get controls(){return e.controls()},set controls(t){e.controls(mt(t))},get presentation(){return i.xa.Ta},get presentationMode(){return i.xa.Xo()},set presentationMode(t){const s=H(t);s&&i.xa.Yo(s)},get ui(){return e},get visibility(){return i.Bo.Ta}})}(this.Ca,this)}_n(){super._n(),this.xa._n(),this.Pa._n(),this.mo.dispose(),this.ja._n()}Ma(t){this.mo.src(""),super.Ma(t)}constructor(t,i,s){super(i,s),this.Go=void 0,this.mo=void 0,this.Ca=void 0,this.ja=void 0,this.xa=void 0,this.Pa=void 0,this.Go=t,this.ja=new wi(t),this.Ca=super.Sa(),g.defineProperty(this.Ca,"constructor",{value:Ei}),this.mo=Ju(this.Ca,this.Go,s.ui),this.Pa=new ic(this.mo,this.Aa),this.xa=new tc(this,this.Pa,this.Ea.Ia(),s),this.xa.jn(bt.MODE_CHANGE,this.Us)}}}function ec(t){return(t=t||{}).position=function(t){switch(t){case"top-left":case"top-right":case"bottom-left":case"bottom-right":return t;default:return}}(t.position),t.visibility=function(t){if(zt(t)&&!j(t))return Oi(t,0,1)}(t.visibility),t.retainPresentationModeOnSourceChange=mt(t.retainPresentationModeOnSourceChange),t}function nc(t){const i=V(t);return i.ui=i.ui||{},void 0!==(null==t?void 0:t.width)&&void 0===i.ui.width&&(i.ui.width=t.width),void 0!==(null==t?void 0:t.height)&&void 0===i.ui.height&&(i.ui.height=t.height),void 0!==(null==t?void 0:t.fluid)&&void 0===i.ui.fluid&&(i.ui.fluid=t.fluid),i.pip=ec(i.pip),i}Rt(),Rt();var rc=Di(()=>{let t=sc(Mi());return t=function(t){let i=t;for(const t of ts)i=t(i);return i}(t),t});function hc(t,i){const s=nc(i),e=h.createElement("div");pi(e),t.appendChild(e);const n=new(rc())(t,e,s);n.Da=n;let r=n.Ta;return n.Na(),n.Fa(ji),g.defineProperty(r,"constructor",{value:hc}),r=ct(r),fi(n),function(t){for(const i of is)i(t)}(n),r}Rt(),Rt(),Rt();var oc="theo-cast-",ac=ta.getComponent("Button"),uc=class extends(aa(ac)){get Ba(){throw new v("$a")}get Ra(){return this.h.Ra}get Oa(){return this.h.Oa}buildCSSClass(){return oc+"button theo-"+this.Oa+"-button theo-controlbar-button "+super.buildCSSClass()}createEl(t,i,s){const e=super.createEl(),n=h.createElement("div");n.className="theo-button-icon-blur";const r=h.createElement("div");return r.className=oc+"svg-container",r.innerHTML=this.Ra,e.appendChild(n),e.appendChild(r),e}handleClick(t){var i;if(super.handleClick(t),this.Va===G.AVAILABLE)null==(i=this.Ba)||i.start();else if(this.Va===G.CONNECTED||this.Va===G.CONNECTING){var s;null==(s=this.Ba)||s.stop()}}Ua(t){ci(this.ko,"theo-"+this.Oa+"-"+this.Va),this.Va=t,r(this.ko,"theo-"+this.Oa+"-"+this.Va),this.ne()}ne(){this.La(this.Va),this.Re.$e=this.controlText()}La(t){t===G.CONNECTED?this.controlText("Stop Casting"):t===G.AVAILABLE?this.controlText("Start Casting"):t===G.CONNECTING?this.controlText("Connecting"):this.controlText("Unavailable")}constructor(t,i){var s;super(t,i),this.ko=void 0,this.Va=void 0,this.Re=void 0,this.Ha=void 0,this.ko=t.el(),this.Va=G.UNAVAILABLE,this.controlText("Unavailable"),this.Re=new Ea(this,this.controlText()),null==(s=this.Ba)||s.addEventListener("statechange",t=>{const i=t;this.Ua(i.state)}),xi.ie.tn&&(this.Ha=new ba(this.el())),this.Ua(this.Ba?this.Ba.state:G.UNAVAILABLE),this.on(t,"languagechange",this.ne)}},cc=0;function lc(){const t='\n <svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" fill="currentColor">\n <defs>\n <clipPath id="theo-chromecast-rings-mask-'+cc+'">\n <path d="M0-36h44V0H0z"/>\n </clipPath>\n </defs>\n <path class="theo-chromecast-outer" d="M2 10a4 4 0 0 1 4-4h36a4 4 0 0 1 4 4v28a4 4 0 0 1-4 4H28v-4h14V10H6v6H2z"/>\n <path class="theo-chromecast-inner" d="M10 14h28v20H26.74A26 26 0 0 0 10 17.26z"/>\n <g class="theo-chromecast-rings" fill="none" stroke="currentColor" stroke-width="4" transform="translate(2 42)" clip-path="url(#theo-chromecast-rings-mask-'+cc+')">\n <circle stroke="none" cx="0" cy="0" r="30" />\n <circle class="theo-chromecast-ring theo-chromecast-ring1" stroke-width="6" cx="0" cy="0" r="3" />\n <circle class="theo-chromecast-ring theo-chromecast-ring2" cx="0" cy="0" r="12" />\n <circle class="theo-chromecast-ring theo-chromecast-ring3" cx="0" cy="0" r="20"/>\n <path class="theo-chromecast-ring theo-chromecast-ring4" stroke-linecap="round" d="M0-20A20 20 0 0 1 20 0" />\n </g>\n </svg>';return cc++,t}ta.registerComponent("chromecastButton",class extends uc{get Ba(){var t;return null==(t=this.js.cast)?void 0:t.chromecast}constructor(t,i){super(t,q({},i,{Oa:"chromecast",Ra:lc()}))}}),Rt();var dc="theo-chromecast-",fc=ta.getComponent("Component"),vc=class t extends(aa(fc)){buildCSSClass(){return dc+"overlay "+super.buildCSSClass()}createEl(){const i=super.createEl();r(i,dc+"overlay");const s=ta.createEl("div",{className:dc+"status-icon",innerHTML:t.ICON_SVG}),e=ta.createEl("div",{className:dc+"status-info"});d(e,"Playing on");const n=ta.createEl("div",{className:dc+"status-title"}),h=ta.createEl("div",{className:dc+"status"});return this.Sr=n,h.appendChild(s),h.appendChild(e),h.appendChild(n),i.appendChild(h),i}dispose(){var t;null==(t=this.za)||t.removeEventListener("statechange",this.update),this.za=void 0,this.js.removeEventListener("play",this.update),super.dispose()}constructor(t,i){var s,e;super(t,i),this.za=void 0,this.update=()=>{this.za?(this.Sr&&d(this.Sr,this.za.receiverName||""),this.za.state===G.CONNECTED?this.show():this.hide()):this.hide()},this.za=null==(s=this.js.cast)?void 0:s.chromecast,null==(e=this.za)||e.addEventListener("statechange",this.update),this.js.addEventListener("play",this.update),this.update()}};vc.ICON_SVG='\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" fill="currentColor">\n <path d="M7 24v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm18-7H11v1.63c3.96 1.28 7.09 4.41 8.37 8.37H25V13zM7 16v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11zm20-7H9c-1.1 0-2 .9-2 2v3h2v-3h18v14h-7v2h7c1.1 0 2-.9 2-2V11c0-1.1-.9-2-2-2z"/>\n</svg>',ta.registerComponent("chromecastOverlay",vc),Rt(),Rt();ta.registerComponent("airplayButton",class extends uc{dispose(){var t,i;null==(t=this.js.ads)||t.removeEventListener("adbreakbegin",this.Wa),null==(i=this.js.ads)||i.removeEventListener("adbreakend",this.qa),this.js.removeEventListener("currentsourcechange",this.qa),super.dispose()}get Ba(){var t;return null==(t=this.js.cast)?void 0:t.airplay}constructor(t,i){var s,e;super(t,q({},i,{Oa:"airplay",Ra:'\n<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24">\n <path class="theo-cast-inner" d="M5 7h14v8H5z"/>\n <path d="M6 22h12l-6-6zM21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h4v-2H3V5h18v12h-4v2h4c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"/>\n</svg>'})),this.qa=()=>{this.enable()},this.Wa=t=>{"theoads"!==t.adBreak.integration&&"google-dai"!==t.adBreak.integration&&this.disable()},null==(s=this.js.ads)||s.addEventListener("adbreakbegin",this.Wa),null==(e=this.js.ads)||e.addEventListener("adbreakend",this.qa),this.js.addEventListener("currentsourcechange",this.qa)}}),Rt(),Rt(),Rt(),Rt();var pc={Default:"","Monospaced Serif":Ht.Ga,"Proportional Serif":Ht.Xa,"Monospaced Sans-Serif":Ht.Ja,"Proportional Sans-Serif":Ht.Qa},mc={White:"#ffffff",Yellow:"#ffff00",Green:"#00ff00",Cyan:"#00ffff",Blue:"#0000ff",Magenta:"#ff00ff",Red:"#ff0000",Black:"#000000"},gc=[50,75,100,150,200];function yc(t){return{label:t+"%",value:t}}function bc(t){return g.keys(t).map(i=>({label:i,value:t[i]}))}gc.map(function(t){return{label:t+"%",value:t/100+"em"}});var wc=gc.map(function(t){return{label:t+"%",value:t+"%"}}),kc=[25,50,75,100].map(yc),_c=[0,25,50,75,100].map(yc),jc=bc(mc),xc=bc(pc),Sc=bc({None:"none","Drop Shadow":"dropshadow",Raised:"raised",Depressed:"depressed",Uniform:"uniform"}),Tc=100,Cc="#000000",Pc="#FFFFFF",Mc="#000000";Rt();var Ac=class extends yu{Ya(){const t=this.Hr.localize(this.Ka);d(this.Za.subMenu.menuHeader.el(),t),this.Lr=h.createElement("span"),this.Lr.className="theo-settings-control-menu-item-title",d(this.Lr,t);const i=h.createElement("span");return i.className="theo-primary-color theo-settings-control-menu-item-value",r(this.Za.el(),"theo-subtitle-options-menu-item"),this.Za.el().appendChild(this.Lr),this.Za.el().appendChild(i),i}tu(t){const i=this.Nr(t);i&&this.iu(i)}su(){return this.Pr}$r(t){this.eu(t.Fr)}iu(t){for(const t of this.Er.menuItems)t.selected(!1);t?(t.selected(!0),this.nu(t.Fr.label)):this.nu("Custom")}nu(t){this.ru=t,d(this.hu,this.Hr.localize(t)),this.Za.parentMenu.ue()}Br(t){const i=super.Br(t);return r(i.el(),"theo-subtitle-options-menu-item"),this.Vr(i),i}Vr(t){const i=this.Hr.localize(t.Fr.label);d(t.el(),i);const s=this.Hr.localize("Set "+this.Ka+" to ")+i;t.el().setAttribute("aria-label",s)}Le(){this.Hr.off("languagechange",this.ne),super.Le()}constructor(t,i,s,e){super(t.subMenu),this.Za=void 0,this.Hr=void 0,this.Ka=void 0,this.Lr=void 0,this.hu=void 0,this.ru=void 0,this.eu=void 0,this.ne=void 0,this.Za=t,this.Hr=e,this.ru="",this.ne=()=>{const t=this.Hr.localize(this.Ka);d(this.Za.subMenu.menuHeader.el(),t),d(this.Lr,t),this.nu(this.ru);for(const t of this.Dr)this.Vr(t)},this.Ka=i,this.eu=s.ou,this.hu=this.Ya(),this.Pr=s.au,this.Hr.on("languagechange",this.ne)}};Rt();var Ic=class t{static uu(t,i,s,e){if(void 0===t&&void 0===i)return;return ni(void 0===t?s:t,void 0===i?e:i)}constructor(i){this.cu=void 0,this.lu=void 0,this.du=void 0,this.fu=void 0,this.vu=void 0,this.pu=void 0,this.mu=void 0,this.gu=void 0,this.yu=void 0,this.bu=void 0,this.wu=void 0,this.ku=void 0,this._u=void 0,this.ju=void 0,this.xu=void 0,this.Su=void 0,this.cu=i,this.gu=t=>{this.cu.fontFamily=t.value},this.yu=t=>{this.cu.fontSize=t.value},this.bu=i=>{this.lu=i.value,this.cu.fontColor=t.uu(this.du,this.lu,Pc,Tc)},this.wu=i=>{this.du=i.value,this.cu.fontColor=t.uu(this.du,this.lu,Pc,Tc)},this.ku=i=>{this.vu=i.value,this.cu.backgroundColor=t.uu(this.vu,this.fu,Cc,Tc)},this._u=i=>{this.fu=i.value,this.cu.backgroundColor=t.uu(this.vu,this.fu,Cc,Tc)},this.ju=i=>{this.mu=i.value,this.cu.windowColor=t.uu(this.mu,this.pu,Mc,Tc)},this.xu=i=>{this.pu=i.value,this.cu.windowColor=t.uu(this.mu,this.pu,Mc,Tc)},this.Su=t=>{this.cu.edgeStyle=t.value}}};Rt();var Ec=class{Tu(t,i){const s=this.Cu(t,i.su());s&&i.tu(s)}Cu(t,i){return Xi(i,i=>i.value===t)}Pu(t,i,s){let e,n;if(void 0===t)e=this.Cu(void 0,i.su()),n=this.Cu(void 0,s.su());else if(t){const r=function(t){let i=ii(t);i||(i=ii(t.slice(0,t.length-1).replace("rgb","rgba")+",1)"));i||(i=qt(Jt(t),1));if(!i){const s=t.charAt(0).toUpperCase()+t.toLowerCase().slice(1);i=qt(Jt(mc[s]),1)}return i}(t);if(r){const t=Kt(r),h=100*r.Mu;e=this.Cu(t,i.su()),n=this.Cu(h,s.su())}}e&&i.tu(e),n&&s.tu(n)}constructor(t,i){this.cu=void 0,this.Au=void 0,this.Iu=void 0,this.cu=t,this.Au=i,this.Iu=()=>{const t=this.cu.fontFamily;this.Tu(t,this.Au["Font family"]);const i=this.cu.fontColor;this.Pu(i,this.Au["Font color"],this.Au["Font opacity"]);const s=this.cu.fontSize;this.Tu(s,this.Au["Font size"]);const e=this.cu.backgroundColor;this.Pu(e,this.Au["Background color"],this.Au["Background opacity"]);const n=this.cu.windowColor;this.Pu(n,this.Au["Window color"],this.Au["Window opacity"]);const r=this.cu.edgeStyle;this.Tu(r,this.Au["Character edge style"])},this.cu.addEventListener("change",this.Iu),this.Iu()}};var Dc=class extends yu{Eu(){return{"Font family":{au:Nc(xc),ou:this.Du.gu},"Font color":{au:Nc(jc),ou:this.Du.wu},"Font opacity":{au:Nc(kc),ou:this.Du.bu},"Font size":{au:Nc(wc),ou:this.Du.yu},"Background color":{au:Nc(jc),ou:this.Du.ku},"Background opacity":{au:Nc(_c),ou:this.Du._u},"Window color":{au:Nc(jc),ou:this.Du.ju},"Window opacity":{au:Nc(_c),ou:this.Du.xu},"Character edge style":{au:Nc(Sc),ou:this.Du.Su}}}Nu(){this.Lr=h.createElement("span"),this.Lr.className="theo-settings-control-menu-item-title",this.Fu=h.createElement("span"),this.Fu.className="theo-primary-color theo-settings-control-menu-item-value",this.Yr.el().appendChild(this.Lr),this.Yr.el().appendChild(this.Fu),this.ne()}Br(t){const i=this.Er.addSubMenuItem();return i.Fr=t,this.Au[t]=new Ac(i,t,this.Bu[t],this.Hr),i}Vr(t){}$r(t){}Le(){this.Hr.off("languagechange",this.ne),this.$u.removeEventListener(["addtrack","removetrack"],this.Ru),super.Le()}constructor(t,i,s,e){super(t.subMenu),this.Yr=void 0,this.$u=void 0,this.Hr=void 0,this.Du=void 0,this.Ou=void 0,this.Bu=void 0,this.Au=void 0,this.Lr=void 0,this.Fu=void 0,this.Ru=void 0,this.ne=void 0,this.Yr=t,this.$u=i,this.Hr=e,this.Au={},this.Ru=()=>{this.$u.some(t=>Dt(t.kind))?this.Yr.show():this.Yr.hide()},this.ne=()=>{d(this.Er.menuHeader.el(),this.Hr.localize("Subtitle Options")),d(this.Lr,this.Hr.localize("Subtitle")),d(this.Fu,this.Hr.localize("Options")),this.Yr.el().setAttribute("aria-label",this.Hr.localize("Open the subtitle options menu"))},this.Du=new Ic(s),this.Bu=this.Eu(),this.Pr=g.keys(this.Bu),this.Nu(),this.Ou=new Ec(s,this.Au),this.Hr.on("languagechange",this.ne),this.$u.addEventListener(["addtrack","removetrack"],this.Ru),this.Ru()}};function Nc(t){const i=[{label:"Default",value:void 0}];for(const s of t)"Default"!==s.label&&i.push(s);return i}!function(t){is.push(t)}(function(t){const i=t.mo.controlBar.getChild("SettingsButton").menu,s=i.addSubMenuItem({name:"TextTrackOptionsMenuItem"}),e=new Dc(s,t.nt.Ta,t.Vu.Ta,t.mo);t.mo.on("dispose",()=>{i.removeMenuItem(s),s.dispose(),e.Le(),i.dispose()})}),Rt(),Rt(),Rt(),Rt(),Rt(),Rt();var Fc=.02,Bc=class{Uu(t){const i=t-this.Hu.Lu-20,s=t-this.Hu.Lu+20;if(0===this.Hu.bo)return;const e=this.Hu.t.currentProgramDateTime.valueOf();e>s?this.zu(this.Wu):e<i?this.zu(this.qu):this.zu(this.Gu)}Xu(t){const i=t-this.Hu.Lu/1e3-Fc,s=t-this.Hu.Lu/1e3+Fc;if(0===this.Hu.bo)return;const e=this.Hu.t.currentTime;e>s?this.zu(this.Wu):e<i?this.zu(this.qu):this.zu(this.Gu)}Ju(){this.Gu=this.ua.Qu,this.Wu=this.ua.Qu-.05,this.qu=this.ua.Qu+.05}zu(t){const i=this.Hu.t;if(i.playbackRate!==t&&0!==i.playbackRate){t>=.2&&t<=2.05?i.playbackRate=t:this.ua.Yu(this.Hu)}}Ku(){this.ua.yn(K.Zu,this.tc),this.ua.yn(K.sc,this.ec)}constructor(t,i){this.ua=void 0,this.Hu=void 0,this.Gu=1,this.Wu=1.05,this.qu=.95,this.tc=()=>{this.Ju()},this.ec=()=>{if(!this.ua.nc)return;const t=this.ua.nc.Lu,i=this.ua.rc,s=this.ua.hc;null!==s?this.Uu(s.valueOf()+t):this.Xu(i+t/1e3)},this.Hu=t,this.ua=i,this.ua.jn(K.Zu,this.tc),this.ua.jn(K.sc,this.ec)}},$c=class{get t(){return this.ua}get Ta(){var t;return null!=(t=this.oc)?t:this.oc=function(t){return{get player(){return t.t},get label(){return t.Mh},get position(){return t.bo},set position(i){t.bo=i},get muted(){return t.ac},set muted(i){t.ac=i},get canResize(){return t.uc},get x(){return t.Jh},set x(i){t.Jh=i},get y(){return t.Qh},set y(i){t.Qh=i},get width(){return t.Ci},set width(i){t.Ci=i},get height(){return t.Pi},set height(i){t.Pi=i},get enabled(){return t.Rt},set enabled(i){t.Rt=i},get offset(){return t.Lu},set offset(i){t.Lu=i},remove(){t.cc()}}}(this)}get Mh(){return this.lc}get bo(){return this.fc.dc.indexOf(this)}set bo(t){this.fc.vc(this,t)}get ac(){return this.ua.muted}set ac(t){this.Rt&&(this.fc.mc=this,this.gc(t))}get uc(){return 0!==this.bo&&this.fc.yc===Zc.OVERLAY}get Jh(){return this.bc}set Jh(t){this.uc&&(this.wc||(this.wc=!0),this.bc=t>1-this.Ci?1-this.Ci:w.max(t,0),this.t.element.style.setProperty("left",100*this.bc+"%"))}get Qh(){return this.kc}set Qh(t){this.uc&&(this.wc||(this.wc=!0),this.kc=t>1-this.Pi?1-this.Pi:w.max(t,0),this.t.element.style.setProperty("top",100*this.kc+"%"))}get Ci(){return this._c}set Ci(t){this.uc&&this.jc(t)}get Pi(){return this.xc}set Pi(t){this.uc&&this.jc(t)}get Rt(){return this.Xe}set Rt(t){t!==this.Xe&&0!==this.bo&&(t?(O(this.fc.Yu(this)),this.fc.Sc(this),this.t.element.style.setProperty("display","block")):(this.t.pause(),this.t.element.style.setProperty("display","none")),this.Xe=t,this.fc.Tc(this))}get Cc(){return this.wc}set Cc(t){this.wc=t}get Pc(){return this.Mc}set Pc(t){this.Mc=t}get Lu(){return this.Ac}set Lu(t){this.Ac=yt(t),this.Ic(this.fc.rc,this.fc.hc)}Ec(t,i,s,e,n){!this.wc&&n&&(this.wc=!0),this.bc=t,this.kc=i,this._c=s,this.xc=e}gc(t){this.ua.muted=t}cc(){0!==this.bo&&this.fc.Dc(this)}Nc(){this.t.element.style.setProperty("top",100*this.kc+"%"),this.t.element.style.setProperty("left",100*this.bc+"%"),this.t.element.style.setProperty("width",100*this._c+"%")}jc(t){const i=this.bc+this._c,s=w.min(t,i),e=.9-this.kc,n=w.min(t,e),r=w.max(w.min(s,n),.1),h=this._c-r;this._c=r,this.xc=r,this.Jh+=h,this.t.element.style.setProperty("width",100*r+"%")}Ic(t,i){if(null!==i){const t=i.valueOf()-this.Lu;this.ua.currentProgramDateTime=new Date(t)}else this.ua.currentTime=t-this.Lu/1e3}Fc(t){const i=this.t.element.getElementsByClassName(Gc)[0],s=t?Jc:Xc;ci(i,t?Xc:Jc),r(i,s)}Ku(){this.Bc.Ku(),this.ua.element.remove(),this.ua.destroy()}constructor(t,i,s,e){this.lc=void 0,this.ua=void 0,this.fc=void 0,this.Bc=void 0,this.Ac=void 0,this.Xe=!0,this.wc=!1,this.Mc=0,this.oc=void 0,this._c=void 0,this.xc=void 0,this.bc=void 0,this.kc=void 0,this.lc=t,this.ua=i,this.fc=s,this.Bc=new Bc(this,s),this.Ac=null!=e?e:0,this._c=.2,this.xc=.2,this.bc=.76,this.kc=0}};Rt();var Rc=class{get multiViewPlayer(){return this.fc}get abr(){}get audioTracks(){return this.$c}get autoplay(){return this.fc.autoplay}set autoplay(t){this.fc.autoplay=t}get buffered(){return this.fc.buffered}get canvas(){}get clip(){return this.Rc.Ta}get currentProgramDateTime(){return null}get currentTime(){return this.fc.currentTime}set currentTime(t){this.fc.currentTime=t}get duration(){return this.fc.duration}get element(){return this.zs}get ended(){return this.fc.ended}get error(){}get errorObject(){return this.fc.errorObject}get latency(){}get loop(){return!1}get metrics(){}get millicast(){}get muted(){return this.fc.muted}set muted(t){this.fc.muted=t}get network(){}get paused(){return this.fc.paused}get playbackRate(){return this.fc.playbackRate}set playbackRate(t){this.fc.playbackRate=t}get played(){return this.fc.played}get poster(){return""}get preload(){return""}get presentation(){}get readyState(){return this.fc.readyState}get seekable(){return this.fc.seekable}get seeking(){return this.fc.seeking}get source(){}get src(){return"dummySource"}get textTrackStyle(){return this.Oc}get textTracks(){return this.Vc}addTextTrack(t){throw v("Not implemented")}get uid(){return 0}get videoHeight(){return 0}get videoTracks(){return this.$c}get videoWidth(){return 0}get volume(){return this.fc.volume}set volume(t){this.fc.volume=t}get views(){return this.fc.views}get visibility(){}get layout(){return this.fc.layout}set layout(t){this.fc.layout=t}play(){this.fc.play()}pause(){this.fc.pause()}stop(){this.fc.stop()}destroy(){this.fc.destroy()}prepareWithUserAction(){this.fc.prepareWithUserAction()}addEventListener(t,i){this.Uc.jn(t,i)}removeEventListener(t,i){this.Uc.yn(t,i)}setSource(t){}constructor(t,i){this.fc=void 0,this.Uc=new X,this.zs=void 0,this.Rc=void 0,this.$c=void 0,this.Vc=void 0,this.Oc=void 0,this.fc=t,this.zs=i,this.Rc=new Ct,this.$c=(new mi).Ta,this.Vc=(new bi).Ta,this.Oc=(new T).Ta,this.fc.addEventListener(["play","pause","seeking","seeked","timeupdate","ended","playing","waiting","sourcechange","readystatechange","loadedmetadata","loadeddata","canplay","canplaythrough","loadstart","progress","durationchange","volumechange","ratechange","error"],this.Uc.Us)}};Rt();var Oc=class extends Q{constructor(t){super(Kc.Lc),this.view=void 0,this.view=t}};Rt();var Vc=class extends Q{constructor(t,i){super(Kc.VIEW_POSITION_CHANGE),this.oldPosition=void 0,this.newPosition=void 0,this.oldPosition=t,this.newPosition=i}};Rt();var Uc=class extends Q{constructor(t){super(Kc.Hc),this.view=void 0,this.view=t}};Rt();var Lc=class extends Q{constructor(t){super(Kc.VIEW_CHANGE),this.view=void 0,this.view=t}};Rt();var Hc=class extends Q{constructor(t){super(Kc.zc),this.layout=void 0,this.layout=t}};Rt();var zc=class extends X{get rc(){return this.ua.rc}get Wc(){return this.ua.Wc}get lt(){return this.ua.qc}get Gc(){return this.ua.Gc}get Xc(){return this.ua.Xc}get Jc(){return this.ua.Jc}get Qc(){return!1}get Yc(){return!1}Ku(){this.Ho()}constructor(t){super(),this.ua=void 0,this.Kc=t=>{this.Us(new Ti(t.source))},this.Zc=t=>{this.Us(new Vi(t.currentTime))},this.tl=t=>{this.Us(new $i(t.currentTime))},this.il=t=>{this.Us(new Ki(t.currentTime))},this.sl=t=>{this.Us(new P(t.currentTime))},this.nl=t=>{this.Us(new at(t.currentTime,t.currentProgramDateTime))},this.rl=t=>{this.Us(new Ji(t.currentTime))},this.hl=t=>{this.Us(new hi(t.currentTime))},this.ol=t=>{this.Us(new Yt(t.currentTime))},this.al=t=>{this.Us(new Ot(t.currentTime,t.readyState))},this.cl=t=>{this.Us(new Wt(t.currentTime,this.Xc))},this.ll=t=>{this.Us(new Xt(t.currentTime,this.Xc))},this.dl=t=>{this.Us(new ti(t.currentTime,this.Xc))},this.fl=t=>{this.Us(new ei(t.currentTime,this.Xc))},this.vl=()=>{this.Us(new $t)},this.pl=t=>{this.Us(new Nt(t.currentTime))},this.ml=t=>{this.Us(new Hi(t.duration))},this.gl=t=>{this.Us(new I(this.rc,t.volume))},this.yl=t=>{this.Us(new qi(this.rc,t.playbackRate))},this.bl=t=>{this.Us(new E(t.errorObject))},this.wl=()=>{this.Us(new ft)},this.ua=t,this.ua.jn("sourcechange",this.Kc),this.ua.jn("play",this.Zc),this.ua.jn("pause",this.tl),this.ua.jn("seeking",this.il),this.ua.jn("seeked",this.sl),this.ua.jn("timeupdate",this.nl),this.ua.jn("ended",this.rl),this.ua.jn("playing",this.hl),this.ua.jn("waiting",this.ol),this.ua.jn("readystatechange",this.al),this.ua.jn("loadedmetadata",this.cl),this.ua.jn("loadeddata",this.ll),this.ua.jn("canplay",this.dl),this.ua.jn("canplaythrough",this.fl),this.ua.jn("loadstart",this.vl),this.ua.jn("progress",this.pl),this.ua.jn("durationchange",this.ml),this.ua.jn("volumechange",this.gl),this.ua.jn("ratechange",this.yl),this.ua.jn("error",this.bl),this.ua.jn("fullscreenchange",this.wl)}};Rt();var Wc=class{async kl(){const t=this.ua;if(!t._l||!t.Gc)return;const i=this.jl.mutedAutoplay;switch(await this.Sl.xl(t.ac)){case"all":t.ac||t.Tl(),t.Cl();break;case"muted":(t.ac||i===$.ALL)&&(t.ac=!0,t.Cl())}}_n(){this.Sl._n(),this.bn._n()}constructor(t,i,s){this.ua=void 0,this.jl=void 0,this.bn=void 0,this.Oc=void 0,this.Sl=void 0,this.ua=t,this.jl=s,this.Oc=new T,this.bn=new lt(i);const e=new vi(this.bn,this.Oc,s,1,[wt.Pl]);this.Sl=new St(e)}},qc=[Bt.Ml,Bt.Al,Bt.Il,Bt.El],Gc="theo-switch-audio-button",Xc="vjs-icon-volume-mute",Jc="vjs-icon-volume-high",Qc="theo-main-view",Yc="theo-layout-",Kc=function(t){return t.Lc="addview",t.Hc="removeview",t.VIEW_CHANGE="viewchange",t.VIEW_POSITION_CHANGE="viewpositionchange",t.zc="layoutchange",t}({}),Zc=function(t){return t.GALLERY="gallery",t.OVERLAY="overlay",t.SPOTLIGHT="spotlight",t}({}),tl=class extends X{get Ta(){var t;return null!=(t=this.oc)?t:this.oc=function(t){return{load:(i,s,e,n)=>t.Un(i,s,e,n),get views(){return t.dc.map(t=>t.Ta)},get mainVideoView(){var i;return null==(i=t.nc)?void 0:i.Ta},get mainAudioView(){var i;return null==(i=t.mc)?void 0:i.Ta},get ui(){return t.mo},get layout(){return t.yc},set layout(i){t.yc=i},get buffered(){return t.Dl},get currentTime(){return t.rc},set currentTime(i){t.rc=i},get autoplay(){return t._l},set autoplay(i){t._l=i},get duration(){return t.ct},get ended(){return t.Wc},get errorObject(){return t.qc},get muted(){return t.ac},set muted(i){t.ac=i},get paused(){return t.Gc},get playbackRate(){return t.Qu},set playbackRate(i){t.Qu=i},get played(){return t.Nl},get readyState(){return t.Xc},get seekable(){return t.Fl},get seeking(){return t.Jc},get volume(){return t.Bl},set volume(i){t.Bl=i},play(){t.Cl()},pause(){t.$l()},stop(){t.Rl()},destroy(){t.Ku(),t=null},requestFullscreen(i){t.Ol(i)},exitFullscreen(){t.na()},prepareWithUserAction(){t.Tl()},addEventListener(i,s){t.jn(i,s)},removeEventListener(i,s){t.yn(i,s)}}}(this)}get mo(){return this.Vl}get dc(){return this.Ul}get nc(){return this.Ll}get mc(){var t;return null!=(t=this.Hl)?t:this.Ll}set mc(t){if(this.Hl===t)return;const i=this.mc,s=null!=t?t:this.nc;i.t.removeEventListener(K.zl,this.Wl),i.Fc(!1),i.ac||(i.gc(!0),s.gc(!1)),s.t.addEventListener(K.zl,this.Wl),s.Fc(!0),this.Hl=t}get yc(){return this.ql}set yc(t){if(t!==this.ql){if("overlay"===this.yc)for(const t of this.dc)t.t.element.style.setProperty("left","auto"),t.t.element.style.setProperty("top","auto"),t.t.element.style.removeProperty("z-index");ci(this.zs,Yc+this.ql),this.ql=t,r(this.zs,Yc+this.ql),this.Nc(),this.Co(new Hc(t))}}get Dl(){if(0===this.dc.length)return _i.Gl()._s();return this.Xl().reduce((t,i)=>t.An(_i.Pn(i.t.buffered)),_i.Jl())._s()}get rc(){return this.Ll&&this.Ql?this.Ll.t.currentTime+this.Ll.Lu/1e3:0}set rc(t){this.Yl();const i=this.Xl();let s=null;if(null!==this.hc){s=this.hc;const i=t-this.rc;s.setSeconds(s.getSeconds()+i)}for(const e of i)e.Ic(t,s)}get hc(){if(!this.Ll)return null;return this.dc.every(t=>null!==t.t.currentProgramDateTime)?new Date(this.Ll.t.currentProgramDateTime.valueOf()+this.Ll.Lu):null}get _l(){return this.Kl}set _l(t){this.Kl=t,this.Zl.kl()}get ct(){if(0===this.dc.length)return NaN;let t=1/0;for(const i of this.Xl())t=w.min(i.t.duration,t);return t}get Wc(){return this.dc.some(t=>t.t.ended)}get lt(){return this.qc}get qc(){if(this.td)return this.td;for(const t of this.dc){const i=t.t.errorObject;if(void 0!==i)return i}}get ac(){var t,i;return null!=(i=null==(t=this.mc)?void 0:t.ac)&&i}set ac(t){this.mc&&this.mc.gc(t),this.Wl()}get Gc(){if(!this.dc.length)return!0;return this.Xl().some(t=>t.t.paused)}get Qu(){var t,i,s;return null!=(s=null!=(i=this.sd)?i:null==(t=this.Ll)?void 0:t.t.playbackRate)?s:1}set Qu(t){if(void 0!==this.sd)this.sd=t;else for(const i of this.dc)i.t.playbackRate=t;this.ed()}get Nl(){return this.dc.reduce((t,i)=>t.nd(_i.Pn(i.t.played)),_i.Gl())._s()}get Xc(){if(0===this.dc.length)return Lt.rd;let t=Lt.od;for(const i of this.Xl())i.t.readyState<t&&(t=i.t.readyState);return t}get Fl(){if(0===this.dc.length)return _i.Gl()._s();return this.Xl().reduce((t,i)=>t.An(_i.Pn(i.t.seekable)),_i.Jl())._s()}get Jc(){return this.dc.some(t=>t.t.seeking)}get Bl(){var t,i;return null!=(i=null==(t=this.mc)?void 0:t.t.volume)?i:1}set Bl(t){for(const i of this.dc)i.t.volume=t;this.Wl()}Un(t,i,s,e){if(this.ad)throw this.td;const n=this.dc.filter(i=>i.Mh===t)[0];if(n)return n.Ta;const r=yt(e),h=j(r)?void 0:r;return this.ud(t,i,s,h)}Cl(){if(!this.Ll||!this.Gc)return;this.Yl();const t=this.Xl();for(const i of t)i.t.play()}$l(){const t=this.Xl();for(const i of t)i.t.pause()}Rl(){for(let t=this.dc.length-1;t>=0;t--)this.Dc(this.dc[t]);this.Ll=void 0,this.Hl=void 0,this.td=void 0,this.ld&&(this.ld.dd(),this.ld=void 0),this.fd=!0,this.vd=!1,this.pd=!1,this.md=-1,this.gd=Lt.rd,this.yd=!1,this.sd=void 0,this.bd=!1,this.wd=-1,this.kd=!1,this._d=-1,this.Ql=!1,this.jd.ur(),this.Co(new Ti(void 0))}Ku(){for(let t=this.dc.length-1;t>=0;t--)this.Dc(this.dc[t]);this.Ho(),this.jd._n(),this.xd.Ku(),this.Sd.Ku(),this.Zl._n(),this.mo.dispose()}Ol(t){this.Co(new ft),this.zs.requestFullscreen(t).catch(Ci)}na(){this.Co(new ft),h.exitFullscreen().catch(Ci)}Tl(){for(const t of this.dc)t.t.prepareWithUserAction()}ud(t,i,s,e){const n=h.createElement("div");r(n,"theo-view"),this.zs.appendChild(n);const o=new(Mi())(n,this.jl).Ta;o.source=i;const a=new $c(t,o,this,e);if(s){const t=h.createElement("div");t.className="theo-view-description";const i=h.createElement("span");i.textContent=s,t.appendChild(i),n.appendChild(t),a.t.addEventListener("dimensionchange",()=>{this.Td(t)})}return this.Cd(a),this.dc.push(a),1===this.dc.length?(this.Ll=a,this.Pd(this.Ll),r(this.Ll.t.element,Qc)):(this.Md(o),0!==this.rc&&O(this.Yu(a,!0))),this.Nc(),this.Co(new Oc(a.Ta)),a.Ta}Xl(){return this.dc.filter(t=>t.Rt)}Ad(){return this.dc.filter(t=>t.Rt&&t!==this.Ll)}Md(t){t.volume=this.Ll.t.volume,t.muted=!0,t.playbackRate=this.Ll.t.playbackRate}Cd(t){t.Pc=this.dc.length;const i=t.t.element;i.addEventListener("dblclick",()=>{this.Id(t)}),i.addEventListener("touchend",i=>{this.Ed>=i.timeStamp?(i.preventDefault(),this.Id(t),this.Ed=0):this.Ed=i.timeStamp+500});const s=h.createElement("div"),e=0===this.dc.length?Jc:Xc;s.className="theo-primary-color "+Gc+" "+e,s.addEventListener("click",()=>{this.mc=t}),s.addEventListener("touchend",()=>{this.mc=t}),i.appendChild(s);const n=h.createElement("div");n.className="theo-primary-color theo-disable-button vjs-icon-close",n.addEventListener("click",()=>{t.Rt=!1}),n.addEventListener("touchend",()=>{t.Rt=!1}),i.appendChild(n),this.Dd(t,i),this.Nd(t),this.Fd(t)}Dd(t,i){const s=h.createElement("div");let e=0;const n=i=>{if(this.Bd=!0,this.Sc(t),i.preventDefault(),"touchstart"===i.type){e=i.changedTouches[0].clientX,h.addEventListener("touchmove",r),h.addEventListener("touchend",o),h.addEventListener("touchcancel",o)}else{e=i.x,h.addEventListener("mousemove",r),h.addEventListener("mouseup",o)}},r=i=>{let s;if("touchmove"===i.type){s=i.changedTouches[0].clientX}else{s=i.x}const n=e-s,r=t.t.element.parentElement.clientWidth,h=(t.t.element.clientWidth+n)/r;t.Ci=h,t.Pi=h,e=s},o=t=>{this.Bd=!1,"mouseup"===t.type?(h.removeEventListener("mousemove",r),h.removeEventListener("mouseup",o)):(h.removeEventListener("touchmove",r),h.removeEventListener("touchend",o),h.removeEventListener("touchcancel",o))};s.addEventListener("mousedown",n),s.addEventListener("touchstart",n),s.className="theo-resize-button theo-primary-color vjs-icon-resize-handle-sw",i.appendChild(s)}Td(t){const i=t.parentElement.clientWidth/100,s=w.min(40,5.23*i);t.style.fontSize=s+"px"}Nd(t){const i=t.t.element,s=i.parentElement;let e={x:0,y:0};const n=i=>{if(!this.Bd&&t.uc)if(this.Sc(t),i.preventDefault(),"touchstart"===i.type){const t=i;e.x=t.changedTouches[0].clientX,e.y=t.changedTouches[0].clientY,h.addEventListener("touchmove",r),h.addEventListener("touchend",o),h.addEventListener("touchcancel",o)}else{const t=i;e.x=t.x,e.y=t.y,h.addEventListener("mousemove",r),h.addEventListener("mouseup",o)}},r=n=>{let r;if("touchmove"===n.type){const t=n;r={x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY}}else{const t=n;r={x:t.x,y:t.y}}const h=r.x-e.x,o=r.y-e.y,a=i.offsetLeft,u=s.clientWidth;t.Jh=(a+h)/u;const c=s.offsetHeight,l=i.offsetTop;t.Qh=(l+o)/c,e=r},o=t=>{"mouseup"===t.type?(h.removeEventListener("mouseup",o),h.removeEventListener("mousemove",r)):(h.removeEventListener("touchmove",r),h.removeEventListener("touchend",o),h.removeEventListener("touchcancel",o))};i.addEventListener("mousedown",n),i.addEventListener("touchstart",n)}Sc(t){for(const i of this.dc)i.Pc>t.Pc&&(i.Pc-=1,i.t.element.style.setProperty("z-index",""+i.Pc));t.Pc=this.dc.length,t.t.element.style.setProperty("z-index",""+t.Pc)}Yl(){if(void 0!==this.sd)return;this.sd=this.Qu;const t=this.Xl();for(const i of t)i.t.playbackRate=0}$d(){if(void 0===this.sd)return;if(this.Jc||this.Xc<Lt.Rd){if(this.Ll&&!this.Ql){this.Ql=!0;for(const t of this.Ad())this.Ll.Lu!==t.Lu&&t.Ic(this.rc,this.hc)}return}const t=this.Xl();for(const i of t)i.t.playbackRate=this.sd;this.sd=void 0,this.Ql=!0}Tc(t){t.Rt||t!==this.Hl||(this.mc=void 0),this.Co(new Lc(t.Ta)),this.Nc()}async Yu(t,i){void 0===i&&(i=!1),this.Yl();const s=t.t;i&&(this.ld=new tt,s.addEventListener(K.vo,this.Is),await this.ld.Od,s.removeEventListener(K.vo,this.Is)),s.readyState===Lt.rd&&(this.bd=!0,s.play()),this.Gc?s.pause():s.play(),t.Ic(this.rc,this.hc)}Nc(){const t=this.Xl();if(!t.length)return;let i=0;switch(this.yc){case"spotlight":{t.length>1?this.zs.style.gridTemplateColumns="80% 20%":this.zs.style.gridTemplateColumns="100%";let s=1/0;for(const e of t)if(i>=s+1)e.Rt=!1;else if(e.t.element.style.setProperty("width","100%"),i++,2===i){const i=e.t.element.clientHeight,n=e.t.element.parentElement.clientHeight,r=w.floor(n/i);s=w.min(t.length-1,r),this.zs.style.gridTemplateRows="repeat("+s+", 1fr)"}break}case"overlay":{let s=0;for(i=1;i<t.length;i++){const e=t[i];if(i>=5)e.Rt=!1;else{if(!e.Cc){const t=.04+.24*s;e.Ec(e.Jh,t,e.Ci,e.Pi,!1),this.Sc(e),s++}e.t.element.style.setProperty("z-index",""+e.Pc),e.Nc()}}break}case"gallery":{const s=t.length,e=w.ceil(w.sqrt(s));for(const s of t)i>=16?s.Rt=!1:(s.t.element.style.setProperty("width",100/e+"%"),i++);break}}}vc(t,i){const s=i>=0?w.min(w.floor(i),this.dc.length-1):0,e=t.bo,n=w.min(e,s),r=w.max(e,s),h=0===n;if(!(!this.dc[n].Rt||!this.dc[r].Rt)||!h){if("overlay"===this.yc){const t=this.dc[r],i=this.dc[n],s=t.Jh,e=t.Qh,h=t.Ci,o=t.Pi,a=i.Cc||t.Cc;t.Ec(i.Jh,i.Qh,i.Ci,i.Pi,a),[this.dc[n],this.dc[r]]=[this.dc[r],this.dc[n]],i.Ec(s,e,h,o,a)}else[this.dc[n],this.dc[r]]=[this.dc[r],this.dc[n]];h&&this.Vd(this.dc[0]),this.Co(new Vc(e,s))}}Dc(t){t===this.Hl&&(this.mc=void 0),t.Ku(),Yi(this.dc,t),this.Nc(),this.Co(new Uc(t.Ta))}Id(t){this.Wc||0===this.Nl.length||this.Ll===t||"gallery"===this.ql||this.vc(t,0)}Vd(t,i){void 0===i&&(i=!1);let s=!1;const e=this.Ll;this.Ll=t,t.Cc=!1,this.Ud(e),ci(e.t.element,Qc),this.Hl||(s=e.ac,e.gc(!0),e.Fc(!1),t.Fc(!0),i&&!s?this.Co(new I(this.rc,0)):t.gc(s)),this.Sc(e),r(this.Ll.t.element,Qc),this.Pd(this.Ll),"overlay"===this.yc&&this.Nc()}Fd(t){t.t.addEventListener(K.Ld,this.Hd),t.t.addEventListener(K.zd,this.Nh),t.t.addEventListener(K.lo,this.Wd),t.t.addEventListener(K.qd,this.Gd),t.t.addEventListener(K.Xd,this.Ye),t.t.addEventListener(K.Jd,this.Qd),t.t.addEventListener(K.Yd,this.Kd),t.t.addEventListener(Bt.Zd,this.tf),t.t.addEventListener(Pt.ya,this.As)}Pd(t){t.t.addEventListener(K.if,this.Us),t.t.addEventListener(K.Zu,this.ed),t.t.addEventListener(K.sc,this.sf),this.Hl||t.t.addEventListener(K.zl,this.Wl)}Ud(t){t.t.removeEventListener(K.if,this.Us),t.t.removeEventListener(K.Zu,this.ed),t.t.removeEventListener(K.sc,this.sf),this.Hl||t.t.removeEventListener(K.zl,this.Wl)}constructor(t,i,s){super(),this.ef=void 0,this.zs=void 0,this.jl=void 0,this.Vl=void 0,this.Ul=[],this.Ll=void 0,this.Hl=void 0,this.ql="gallery",this.Bd=!1,this.td=void 0,this.ld=void 0,this.oc=void 0,this.nf=void 0,this.Sd=void 0,this.rf=void 0,this.ad=!1,this.fd=!0,this.vd=!1,this.pd=!1,this.md=-1,this.gd=Lt.rd,this.yd=!1,this.Ed=0,this.sd=void 0,this.bd=!1,this.Kl=!1,this.wd=-1,this.kd=!1,this._d=-1,this.Ql=!1,this.xd=void 0,this.jd=void 0,this.Zl=void 0,this.hf=t=>{this.$d(),B(()=>this.Us(t))},this.af=t=>{this.Yl(),this.Us(t)},this.Is=()=>{var t;null==(t=this.ld)||t.uf(),this.ld=void 0},this.ed=()=>{const t=this.Qu;this._d!==t&&(this._d=t,this.Us(new qi(this.rc,t)))},this.Wl=()=>{const t=this.Bl,i=this.ac;this.wd===t&&this.kd===i||(this.wd=t,this.kd=i,this.Us(new I(this.rc,t)))},this.sf=t=>{(this.Xc>Lt.cf||this.Jc)&&this.Us(t)},this.Hd=t=>{this.$d(),this.Jc||(this.vd=!1,this.Us(t))},this.Kd=t=>{const i=this.ct;this.md!==i&&(this.md=i,this.Us(t))},this.As=t=>{this.Us(t)},this.Wd=t=>{if(this.fd){if(this.bd)return void(this.bd=!1);this.fd=!1,this.pd=!1,this.Us(t)}},this.Ye=t=>{this.vd||(this.vd=!0,this.Us(t))},this.Gd=t=>{!this.fd&&this.Gc&&(this.fd=!0,this.Us(t))},this.Nh=t=>{this.pd||(this.pd=!0,this.Us(t))},this.Qd=t=>{this.yd||(this.yd=!0,this.Us(t))},this.tf=t=>{const i=this.Xc;this.gd!==i&&(this.gd=i,this.Us(t))},this.lf=async()=>{try{await this.rf.df([Y.MULTIVIEW])}catch(t){this.Rl(),this.td=ht(t,st.LICENSE_INVALID_FEATURE),this.ad=!0,this.Co(new li(this.td))}},this.ef=t,this.zs=i,this.jl=s;const e=xi.ff,n=new It,h=new et("10.12.1",e,n),o=new it(s.isEmbeddable,"10.12.1",Z());if(this.rf=new Mt(e,o,h,n,s,Z()),this.rf.vf().then(this.lf),this.nf=new Rc(this.Ta,this.zs),this.Vl=Ju(this.nf,this.ef,s.ui),r(this.zs,Yc+this.ql),xi.ie.te){const t=this.Vl.el();r(t,"theo-mobile"),Qu(t)}this.Sd=new zc(this),this.xd=new Vt(this.Sd),this.xd.jn(Bt.pf,this.hf),this.jd=new ai(this,!0),this.jd.jn(qc,this.Us),this.jd.jn(Bt.mf,this.af),this.Zl=new Wc(this,t,s)}};function il(t,i){var s;const e=nc(q({},i||{},{allowNativeFullscreen:!1,ui:q({},(null==i?void 0:i.ui)||{},{userActions:q({},(null==i||null==(s=i.ui)?void 0:s.userActions)||{},{click:!1})}),abr:q({},(null==i?void 0:i.abr)||{},{restrictToPlayerSize:!0})})),n=h.createElement("div");pi(n),t.appendChild(n);let r=new tl(t,n,e).Ta;return g.defineProperty(r,"constructor",{value:il}),r=ct(r),r}Rt(),Rt();var sl="vjs-selected",el=class extends yu{Vr(t){const i=t.Fr,s=this.Hr.localize(i.label);d(t.Mh,s),t.el().setAttribute("aria-label",this.Hr.localize("Enable/disable")+" "+s),t.el().setAttribute("role","menuitemcheckbox"),t.selected(i.enabled)}Br(t){const i=super.Br(t);r(i.el(),"theo-multi-view-menu-item"),2===this.Dr.length&&r(i.el(),"theo-multi-view-menu-item-position-zero");const s=h.createElement("span");i.Mh=s;const e=h.createElement("div");e.className="theo-multi-view-menu-item-toggle",i.Ah=e;const n=t=>this.Ih(t,i);i.Eh=n,e.addEventListener("click",n);const o=h.createElement("div");return o.className="theo-multi-view-menu-item-toggle-slider",e.appendChild(o),i.el().appendChild(s),i.el().appendChild(e),this.gf.before(i.el()),i}yf(){const t=this.Er.addMenuItem().el();r(t,"theo-multi-view-menu-item"),r(t,"theo-multi-view-menu-layout-select");const i=h.createElement("button");i.className="vjs-icon-view-grid",i.addEventListener("click",()=>{this.xs.layout=Zc.GALLERY}),t.appendChild(i),this.bf=i;const s=h.createElement("button");s.className="vjs-icon-view-spotlight",s.addEventListener("click",()=>{this.xs.layout=Zc.SPOTLIGHT}),t.appendChild(s),this.wf=s;const e=h.createElement("button");return e.className="vjs-icon-multi-view",e.addEventListener("click",()=>{this.xs.layout=Zc.OVERLAY}),t.appendChild(e),this.kf=e,t}Ih(t,i){t.stopImmediatePropagation(),this.$r(i)}$r(t){const i=t.Fr;for(const t of this.xs.views)t===i&&(t.enabled=!t.enabled);this.Vr(t)}Rr(t){t.Ah.removeEventListener("click",t.Eh),super.Rr(t)}constructor(t,i,s){super(t),this.xs=void 0,this.Hr=void 0,this.gf=void 0,this.bf=void 0,this.kf=void 0,this.wf=void 0,this._f=t=>{this.Ir(t.view)},this.jf=t=>{this.Ar(t.view)},this.xf=t=>{const i=t.oldPosition,s=t.newPosition,e=w.max(i,s),n=w.min(i,s),o=h.getElementsByClassName("theo-multi-view-menu-item");o[e].before(o[n]),o[n].before(o[e]),0===n&&(ci(o[e],"theo-multi-view-menu-item-position-zero"),r(o[n],"theo-multi-view-menu-item-position-zero"))},this.Sf=()=>{const t=this.xs.layout;di(this.bf,sl,t===Zc.GALLERY),di(this.wf,sl,t===Zc.SPOTLIGHT),di(this.kf,sl,t===Zc.OVERLAY)},i.views&&(this.xs=i,this.Hr=s,this.xs.multiViewPlayer.addEventListener(Kc.Lc,this._f),this.xs.multiViewPlayer.addEventListener(Kc.Hc,this.jf),this.xs.multiViewPlayer.addEventListener(Kc.VIEW_CHANGE,this._f),this.xs.multiViewPlayer.addEventListener(Kc.VIEW_POSITION_CHANGE,this.xf),this.xs.multiViewPlayer.addEventListener(Kc.zc,this.Sf),d(this.Er.menuHeader.el(),this.Hr.localize("MultiView")),this.gf=this.yf(),this.Sf())}};ta.registerComponent("multiViewButton",class extends Na{buildCSSClass(){return"vjs-icon-view-grid "+super.buildCSSClass()}dispose(){this.Ph.Le(),super.dispose()}constructor(t,i){super(t,i),this.Ph=void 0,this.minimumMenuItems=3,this.Ph=new el(this.menu,this.js,t),this.controlText(t.localize("Views")),this.Re.$e=this.controlText()}});export{Ei as ChromelessPlayer,nt as ErrorCategory,st as ErrorCode,il as MultiViewPlayer,hc as Player,U as cache,R as cast,Ri as features,zi as players,Gi as registerContentProtectionIntegration,Fi as utils,Ui as version,ta as videojs};
|
|
41
41
|
//# sourceMappingURL=THEOplayer.esm.js.map
|