@theoplayer/extended 7.7.1 → 7.8.0
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 +3 -3
- package/THEOplayer.chromeless.js +3 -3
- package/THEOplayer.common.d.ts +37 -9
- package/THEOplayer.common.esm.js +3 -3
- package/THEOplayer.d.ts +2 -25
- 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.esm.js
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
THEOplayer is based on patented technology developed by
|
|
35
35
|
THEO Technologies (https://www.theoplayer.com).
|
|
36
36
|
|
|
37
|
-
Version: 7.
|
|
38
|
-
Created: 2024-07-
|
|
37
|
+
Version: 7.8.0
|
|
38
|
+
Created: 2024-07-18T14:18:31.209Z
|
|
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,B as A,Ba as M,C as I,Ca as E,D,Da as N,E as F,Ea as B,F as $,Fa as R,G as O,Ga as V,H as U,Ha as L,I as H,Ia as z,J as W,Ja as q,K as G,Ka as X,L as J,La as Q,M as Y,Ma as K,N as Z,Na as tt,O as it,Oa as st,P as et,Pa as nt,Q as rt,Qa as ht,R as ot,Ra as at,S as ut,Sa as ct,T as lt,Ta as ft,U as dt,Ua as vt,V as pt,Va as mt,W as gt,Wa as yt,X as bt,Xa as wt,Y as kt,Ya as _t,Z as jt,Za as xt,_ as St,_a as Tt,a as Ct,aa as Pt,ab as At,b as Mt,ba as It,bb as Et,c as Dt,ca as Nt,cb as Ft,d as Bt,da as $t,db as Rt,e as Ot,ea as Vt,eb as Ut,f as Lt,fa as Ht,fb as zt,g as Wt,ga as qt,gb as Gt,h as Xt,ha as Jt,hb as Qt,i as Yt,ia as Kt,ib as Zt,j as ti,ja as ii,jb as si,k as ei,ka as ni,kb as ri,l as hi,la as oi,lb as ai,m as ui,ma as ci,mb as li,n as fi,na as di,nb as vi,o as pi,oa as mi,ob as gi,p as yi,pa as bi,pb as wi,q as ki,qa as _i,qb as ji,r as xi,ra as Si,rb as Ti,s as Ci,sa as Pi,sb as Ai,t as Mi,ta as Ii,tb as Ei,u as Di,ua as Ni,ub as Fi,v as Bi,va as $i,vb as Ri,w as Oi,wa as Vi,x as Ui,xa as Li,y as Hi,ya as zi,z as Wi,za as qi}from"./THEOplayer.common.esm.js";var Gi=[];var Xi=[];var Ji=void 0!==a?a:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Qi=void 0!==h?h:{createElement:function(){}};function Yi(t,i){return i||(i=t.slice(0)),t.raw=i,t}var Ki=1;function Zi(){return Ki++}var ts,is=g.prototype.toString,ss=function(t){return rs(t)?g.keys(t):[]};function es(t,i){ss(t).forEach((function(s){return i(t[s],s)}))}function ns(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&&es(i,(function(i,s){t[s]=i}))})),t)}function rs(t){return!!t&&"object"==typeof t}function hs(t){return rs(t)&&"[object Object]"===is.call(t)&&t.constructor===g}var os=function(t,i,s){void 0===s&&(s=!!re&&re<11),"log"!==t&&i.unshift(t.toUpperCase()+":"),ts.history.push(i),i.unshift("VIDEOJS:");var e=Ji.console&&Ji.console[t];e&&(s&&(i=i.map((function(t){if(rs(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"](Ji.console,i):e(i))};(ts=function(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];os("log",i)}).history=[],ts.error=function(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];return os("error",i)},ts.warn=function(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];return os("warn",i)};var as=ts,us="undefined"!=typeof globalThis?globalThis:void 0!==a?a:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function cs(t){return t.replace(/\n\r?\s*/g,"")}var ls,fs=function(t){for(var i="",s=0;s<arguments.length;s++)i+=cs(t[s])+(arguments[s+1]||"");return i};function ds(t){return"string"==typeof t&&/\S/.test(t)}function vs(t){if(/\s/.test(t))throw new v("class has illegal whitespace characters")}function ps(){return Qi===Ji.document&&void 0!==Qi.createElement}function ms(t){return rs(t)&&1===t.nodeType}function gs(t){return function(i,s){if(!ds(i))return Qi[t](null);ds(s)&&(s=Qi.querySelector(s));var e=ms(s)?s:Qi;return e[t]&&e[t](i)}}function ys(t,i,s,e){void 0===t&&(t="div"),void 0===i&&(i={}),void 0===s&&(s={});var n=Qi.createElement(t);return g.getOwnPropertyNames(i).forEach((function(t){var s=i[t];-1!==t.indexOf("aria-")||"role"===t||"type"===t?(as.warn(fs(ls||(ls=Yi(["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?bs(n,s):n[t]=s})),g.getOwnPropertyNames(s).forEach((function(t){n.setAttribute(t,s[t])})),e&&Rs(n,e),n}function bs(t,i){return void 0===t.textContent?t.innerText=i:t.textContent=i,t}function ws(t,i){i.firstChild?i.insertBefore(t,i.firstChild):i.appendChild(t)}var ks={},_s="vdata"+(new Date).getTime();function js(t){var i=t[_s];return i||(i=t[_s]=Zi()),ks[i]||(ks[i]={}),ks[i]}function xs(t){var i=t[_s];return!!i&&!!g.getOwnPropertyNames(ks[i]).length}function Ss(t){var i=t[_s];if(i){delete ks[i];try{delete t[_s]}catch(i){t.removeAttribute?t.removeAttribute(_s):t[_s]=null}}}function Ts(t,i){return vs(i),t.classList?t.classList.contains(i):function(t){return new RegExp("(^|\\s)"+t+"($|\\s)")}(i).test(t.className)}function Cs(t,i){return t.classList?t.classList.add(i):Ts(t,i)||(t.className=(t.className+" "+i).trim()),t}function Ps(t,i){return t.classList?t.classList.remove(i):(vs(i),t.className=t.className.split(/\s+/).filter((function(t){return t!==i})).join(" ")),t}function As(t,i,s){var e=Ts(t,i);if("function"==typeof s&&(s=s(t,i)),"boolean"!=typeof s&&(s=!e),s!==e)return s?Cs(t,i):Ps(t,i),t}function Ms(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 Is(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 Es(t,i,s){t.setAttribute(i,s)}function Ds(t,i){t.removeAttribute(i)}function Ns(t){var i;if(t.getBoundingClientRect&&t.parentNode&&(i=t.getBoundingClientRect()),!i)return{left:0,top:0};var s=Qi.documentElement,e=Qi.body,n=s.clientLeft||e.clientLeft||0,r=Ji.pageXOffset||e.scrollLeft,h=i.left+r-n,o=s.clientTop||e.clientTop||0,a=Ji.pageYOffset||e.scrollTop,u=i.top+a-o;return{left:w.round(h),top:w.round(u)}}function Fs(t,i){var s={},e=Ns(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 Bs(t){return rs(t)&&3===t.nodeType}function $s(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t}function Rs(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()),ms(t)||Bs(t)?t:"string"==typeof t&&/\S/.test(t)?Qi.createTextNode(t):void 0})).filter((function(t){return t}))}(i).forEach((function(i){return t.appendChild(i)})),t}function Os(t,i){return Rs($s(t),i)}var d,Vs=gs("querySelector"),Us=gs("querySelectorAll"),Ls=Ji.navigator&&Ji.navigator.userAgent||"",Hs=/AppleWebKit\/([\d.]+)/i.exec(Ls),zs=Hs?_(Hs.pop()):null,Ws=/iPad/i.test(Ls),qs=/iPhone/i.test(Ls)&&!Ws,Gs=/iPod/i.test(Ls),Xs=qs||Ws||Gs,Js=(d=Ls.match(/OS (\d+)_/i))&&d[1]?d[1]:null,Qs=/Android/i.test(Ls),Ys=function(){var t=Ls.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}(),Ks=Qs&&/webkit/i.test(Ls)&&Ys<2.3,Zs=Qs&&Ys<5&&zs<537,te=/Firefox/i.test(Ls),ie=/Edge/i.test(Ls),se=!ie&&/Chrome/i.test(Ls),ee=function(){var t=Ls.match(/Chrome\/(\d+)/);return t&&t[1]?_(t[1]):null}(),ne=/MSIE\s8\.0/.test(Ls),re=function(){var t=/MSIE\s(\d+)\.\d/.exec(Ls),i=t&&_(t[1]);return!i&&/Trident\/7.0/i.test(Ls)&&/rv:11.0/.test(Ls)&&(i=11),i}(),he=/Safari/i.test(Ls)&&!se&&!Qs&&!ie,oe=he||Xs,ae=ps()&&("ontouchstart"in Ji||Ji.DocumentTouch&&Ji.document instanceof Ji.DocumentTouch),ue=ps()&&"backgroundSize"in Ji.document.createElement("video").style,ce=g.freeze({__proto__:null,IS_IPAD:Ws,IS_IPHONE:qs,IS_IPOD:Gs,IS_IOS:Xs,IOS_VERSION:Js,IS_ANDROID:Qs,ANDROID_VERSION:Ys,IS_OLD_ANDROID:Ks,IS_NATIVE_ANDROID:Zs,IS_FIREFOX:te,IS_EDGE:ie,IS_CHROME:se,CHROME_VERSION:ee,IS_IE8:ne,IE_VERSION:re,IS_SAFARI:he,IS_ANY_SAFARI:oe,TOUCH_ENABLED:ae,BACKGROUND_SIZE_SUPPORTED:ue});function le(t,i){var s=js(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&&Ss(t)}function fe(t,i,s,e){s.forEach((function(s){t(i,s,e)}))}function de(t){function i(){return!0}function s(){return!1}if(!t||!t.isPropagationStopped||!t.isImmediatePropagationStopped){var e=t||Ji.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||Qi),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=Qi.documentElement,h=Qi.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 ve=!1;!function(){try{var t=g.defineProperty({},"passive",{get:function(){ve=!0}});Ji.addEventListener("test",null,t)}catch(t){}}();var pe=["touchstart","touchmove"];function me(t,i,s){if(Array.isArray(i))return fe(me,t,i,s);var e=js(t);if(e.handlers||(e.handlers={}),e.handlers[i]||(e.handlers[i]=[]),s.guid||(s.guid=Zi()),e.handlers[i].push(s),e.dispatcher||(e.disabled=!1,e.dispatcher=function(i,s){if(!e.disabled){i=de(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){as.error(t)}}}),1===e.handlers[i].length)if(t.addEventListener){var n=!1;ve&&pe.indexOf(i)>-1&&(n={passive:!0}),t.addEventListener(i,e.dispatcher,n)}else t.attachEvent&&t.attachEvent("on"+i,e.dispatcher)}function ge(t,i,s){if(xs(t)){var e=js(t);if(e.handlers){if(Array.isArray(i))return fe(ge,t,i,s);var n=function(i){e.handlers[i]=[],le(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);le(t,i)}else n(i)}else for(var o in e.handlers)n(o)}}}function ye(t,i,s){var e=xs(t)?js(t):{},n=t.parentNode||t.ownerDocument;if("string"==typeof i&&(i={type:i,target:t}),i=de(i),e.dispatcher&&e.dispatcher.call(t,i,s),n&&!i.isPropagationStopped()&&!0===i.bubbles)ye.call(null,n,i,s);else if(!n&&!i.defaultPrevented){var r=js(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 be(t,i,s){if(Array.isArray(i))return fe(be,t,i,s);var e=function e(){ge(t,i,e),s.apply(this,arguments)};e.guid=s.guid=s.guid||Zi(),me(t,i,e)}var we,ke=!1,_e=function(){if(ps()){var t=Qi.getElementsByTagName("video"),i=Qi.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){je(1);break}void 0===u.player&&null!==u.getAttribute("data-setup")&&we(u)}else ke||je(1)}};function je(t,i){i&&(we=i),Ji.setTimeout(_e,t)}ps()&&"complete"===Qi.readyState?ke=!0:be(Ji,"load",(function(){ke=!0}));var xe=function(t){var i=Qi.createElement("style");return i.className=t,i},Se=function(t,i){t.styleSheet?t.styleSheet.cssText=i:t.textContent=i},b=function(t,i,s){i.guid||(i.guid=Zi());var e=function(){return i.apply(t,arguments)};return e.guid=s?s+"_"+i.guid:i.guid,e};function Te(t){return"string"!=typeof t?t:t.charAt(0).toUpperCase()+t.slice(1)}function Ce(){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&&es(i,(function(i,s){hs(i)?(hs(t[s])||(t[s]={}),t[s]=Ce(t[s],i)):t[s]=i}))})),t}var t=function(){function t(t,i,s){if(!t&&this.play?this.t=t=this:this.t=t,this.h=Ce({},this.h),i=this.h=Ce(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"+Zi()}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),Ss(this.v),this.v=null},i.player=function(){return this.t},i.options=function(t){return as.warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),t?(this.h=Ce(this.h,t),this.h):this.h},i.el=function(){return this.v},i.createEl=function(t,i,s){return ys(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=Te(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=Te(i),s||(s={}),!0===s&&(as.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&&Te(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||Te(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))me(this.v,t,b(this,i));else{var n=t,r=i,h=b(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?(me(n,r,h),me(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))ge(this.v,t,i);else{var e=t,n=i,r=b(this,s);this.off("dispose",r),t.nodeName?(ge(e,n,r),ge(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))be(this.v,t,b(this,i));else{var r=t,h=i,o=b(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 ye(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 Vs(t,i||this.contentEl())},i.$$=function(t,i){return Us(t,i||this.contentEl())},i.hasClass=function(t){return Ts(this.v,t)},i.addClass=function(t){return Cs(this.v,t),this},i.removeClass=function(t){return Ps(this.v,t),this},i.toggleClass=function(t,i){return As(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 Es(this.v,t,i),this},i.removeAttribute=function(t){return Ds(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"+Te(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 Ji.getComputedStyle){var s=Ji.getComputedStyle(this.v);i=s.getPropertyValue(t)||s[t]}if(0===(i=_(i))){var e="offset"+Te(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=b(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=b(this,t);var s=Ji.setTimeout(t,i),e=function(){this.clearTimeout(s)};return e.guid="vjs-timeout-"+s,this.on("dispose",e),s},i.clearTimeout=function(t){Ji.clearTimeout(t);var i=function(){};return i.guid="vjs-timeout-"+t,this.off("dispose",i),t},i.setInterval=function(t,i){t=b(this,t);var s=Ji.setInterval(t,i),e=function(){this.clearInterval(s)};return e.guid="vjs-interval-"+s,this.on("dispose",e),s},i.clearInterval=function(t){Ji.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=Te(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=Te(i),t.P&&t.P[i]?t.P[i]:Ji&&Ji.videojs&&Ji.videojs[i]?(as.warn("The "+i+" component was added to the videojs object when it should be registered using videojs.registerComponent(name, component)"),Ji.videojs[i]):void 0},t.extend=function(i){i=i||{},as.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}();t.registerComponent("Component",t);var Pe=function(){};function Ae(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Me(t,i){return(Me=g.setPrototypeOf?g.setPrototypeOf.bind():function(t,i){return t.__proto__=i,t})(t,i)}function Ie(t,i){t.prototype=g.create(i.prototype),t.prototype.constructor=t,Me(t,i)}function Ee(t,i,s,e){return void 0===e&&(as.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 De(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:Ee.bind(null,"start",0,t),end:Ee.bind(null,"end",1,t)}}function Ne(t,i){return Array.isArray(t)?De(t):void 0===t||void 0===i?De():De([[t,i]])}function Fe(t,i){var s,e,n=0;if(!i)return 0;t&&t.length||(t=Ne(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}Pe.prototype.A={},Pe.prototype.on=function(t,i){var s=this.addEventListener;this.addEventListener=function(){},me(this,t,i),this.addEventListener=s},Pe.prototype.addEventListener=Pe.prototype.on,Pe.prototype.off=function(t,i){ge(this,t,i)},Pe.prototype.removeEventListener=Pe.prototype.off,Pe.prototype.one=function(t,i){var s=this.addEventListener;this.addEventListener=function(){},be(this,t,i),this.addEventListener=s},Pe.prototype.trigger=function(t){var i=t.type||t;"string"==typeof t&&(t={type:i}),t=de(t),this.A[i]&&this["on"+i]&&this["on"+i](t),ye(this,t)},Pe.prototype.dispatchEvent=Pe.prototype.trigger;var Be,$e,Re,Oe,Ve={prefixed:!0},Ue=[["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"]],Le=Ue[0];for($e=0;$e<Ue.length;$e++)if(Ue[$e][1]in Qi){Be=Ue[$e];break}if(Be){for(Re=0;Re<Be.length;Re++)Ve[Le[Re]]=Be[Re];Ve.prefixed=Be[0]!==Le[0]}function He(t){if(t instanceof He)return t;"number"==typeof t?this.code=t:"string"==typeof t?this.message=t:rs(t)&&("number"==typeof t.code&&(this.code=t.code),ns(this,t)),this.message||(this.message=He.defaultMessages[this.code]||"")}for(He.prototype.code=0,He.prototype.message="",He.prototype.status=null,He.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],He.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."},Oe=0;Oe<He.errorTypes.length;Oe++)He[He.errorTypes[Oe]]=Oe,He.prototype[He.errorTypes[Oe]]=Oe;var ze=function(t,i){var s,e=null;try{s=JSON.parse(t,i)}catch(t){e=t}return[e,s]};var We=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}}))})},qe=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=We(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(We))},Ge=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()},Xe="vjs-modal-dialog",Je=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).M=e.I=e.D=!1,e.closeable(!e.h.uncloseable),e.content(e.h.content),e.S=ys("div",{className:Xe+"-content"},{role:"document"}),e.N=ys("p",{className:Xe+"-description vjs-offscreen",id:e.el().getAttribute("aria-describedby")}),bs(e.N,e.description()),e.v.appendChild(e.N),e.v.appendChild(e.S),e.on(i,"languagechange",e.handleLanguagechange),e}Ie(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 Xe+" 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.M){var t=this.player();this.trigger("beforemodalopen"),this.M=!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",b(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.M},s.close=function(){if(this.M){var t=this.player();this.trigger("beforemodalclose"),this.M=!1,this.B&&this.h.pauseOnOpen&&t.play(),this.closeable()&&this.off(this.v.ownerDocument,"keydown",b(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(),Os(i,t),this.trigger("modalfill"),e?s.insertBefore(i,e):s.appendChild(i),this},s.empty=function(){return this.trigger("beforemodalempty"),$s(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()),bs(this.N,this.description()),this.opened()?this.fill():(this.I||this.D)&&(this.I=!1,this.D=!1,this.empty())},i}(t);Je.prototype.h={pauseOnOpen:!0,temporary:!0},t.registerComponent("ModalDialog",Je);var Qe=function(){function t(i){var s=this;if(ne)for(var e in s=Qi.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}}),ne)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}(),Ye={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},Ke={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},Ze={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},tn={disabled:"disabled",hidden:"hidden",showing:"showing"},sn=function(t){function i(s){var e;void 0===s&&(s={});var n=Ae(e=t.call(this)||this);if(ne)for(var r in n=Qi.createElement("custom"),i.prototype)"constructor"!==r&&(n[r]=i.prototype[r]);var h={id:s.id||["vjs_track",Zi()].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||Ae(e)}return Ie(i,t),i}(Pe),en=function(t){var i=["protocol","hostname","port","pathname","search","hash","host"],s=Qi.createElement("a");s.href=t;var e,n=""===s.host&&"file:"!==s.protocol;n&&((e=Qi.createElement("div")).innerHTML='<a href="'+t+'"></a>',s=e.firstChild,e.setAttribute("style","display:none; position:absolute;"),Qi.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&&Qi.body.removeChild(e),r},nn=function(t){var i=Ji.location,s=en(t);return(":"===s.protocol?i.protocol:s.protocol)+s.host!==i.protocol+i.host},rn={exports:{}};void 0!==a?rn.exports=a:void 0!==us?rn.exports=us:"undefined"!=typeof self?rn.exports=self:rn.exports={};var hn=function(t){var i=on.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)},on=g.prototype.toString;var an,un,cn,ln,fn,dn,vn,pn,mn,gn,yn,bn,wn=Array.prototype.slice,kn=g.prototype.toString,_n=function(t){var i=this;if("function"!=typeof i||"[object Function]"!==kn.call(i))throw new p("Function.prototype.bind called on incompatible "+i);for(var s,e=wn.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(wn.call(arguments)));return g(n)===n?n:this}return i.apply(t,e.concat(wn.call(arguments)))})),i.prototype){var o=function(){};o.prototype=i.prototype,s.prototype=new o,o.prototype=null}return s},jn=Function.prototype.bind||_n,xn=g.prototype.toString,Sn=function(t){var i=xn.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]"===xn.call(t.callee)),s};g.keys||(un=g.prototype.hasOwnProperty,cn=g.prototype.toString,ln=Sn,fn=g.prototype.propertyIsEnumerable,dn=!fn.call({toString:null},"toString"),vn=fn.call((function(){}),"prototype"),pn=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],mn=function(t){var i=t.constructor;return i&&i.prototype===t},gn={$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},yn=function(){if(void 0===a)return!1;for(var t in a)try{if(!gn["$"+t]&&un.call(a,t)&&null!==a[t]&&"object"==typeof a[t])try{mn(a[t])}catch(t){return!0}}catch(t){return!0}return!1}(),bn=function(t){if(void 0===a||!yn)return mn(t);try{return mn(t)}catch(t){return!1}},an=function(t){var i=null!==t&&"object"==typeof t,s="[object Function]"===cn.call(t),e=ln(t),n=i&&"[object String]"===cn.call(t),r=[];if(!i&&!s&&!e)throw new p("Object.keys called on a non-object");var h=vn&&s;if(n&&t.length>0&&!un.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||!un.call(t,u)||r.push(String(u));if(dn)for(var c=bn(t),l=0;l<pn.length;++l)c&&"constructor"===pn[l]||!un.call(t,pn[l])||r.push(pn[l]);return r});var Tn=an,Cn=Array.prototype.slice,Pn=Sn,An=g.keys,Mn=An?function(t){return An(t)}:Tn,In=g.keys;Mn.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 Pn(t)?In(Cn.call(t)):In(t)})}else g.keys=Mn;return g.keys||Mn};var En=Mn,Dn="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),Nn=g.prototype.toString,Fn=Array.prototype.concat,Bn=g.defineProperty,$n=Bn&&function(){var t={};try{for(var i in Bn(t,"x",{enumerable:!1,value:t}),t)return!1;return t.x===t}catch(t){return!1}}(),Rn=function(t,i,s,e){(!(i in t)||function(t){return"function"==typeof t&&"[object Function]"===Nn.call(t)}(e)&&e())&&($n?Bn(t,i,{configurable:!0,enumerable:!1,value:s,writable:!0}):t[i]=s)},On=function(t,i){var s=arguments.length>2?arguments[2]:{},e=En(i);Dn&&(e=Fn.call(e,g.getOwnPropertySymbols(i)));for(var n=0;n<e.length;n+=1)Rn(t,e[n],i[e[n]],s[e[n]])};On.supportsDescriptors=!!$n;var Vn,Un=On,Ln=g.getOwnPropertyDescriptor?function(){return g.getOwnPropertyDescriptor(arguments,"callee").get}():function(){throw new p},Hn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,zn=g.getPrototypeOf||function(t){return t.__proto__},Wn=void 0===x?Vn:zn(x),qn={"$ %Array%":Array,"$ %ArrayBuffer%":"undefined"==typeof ArrayBuffer?Vn:ArrayBuffer,"$ %ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?Vn:ArrayBuffer.prototype,"$ %ArrayIteratorPrototype%":Hn?zn([][Symbol.iterator]()):Vn,"$ %ArrayPrototype%":Array.prototype,"$ %ArrayProto_entries%":Array.prototype.entries,"$ %ArrayProto_forEach%":Array.prototype.forEach,"$ %ArrayProto_keys%":Array.prototype.keys,"$ %ArrayProto_values%":Array.prototype.values,"$ %AsyncFromSyncIteratorPrototype%":Vn,"$ %AsyncFunction%":undefined,"$ %AsyncFunctionPrototype%":Vn,"$ %AsyncGenerator%":Vn,"$ %AsyncGeneratorFunction%":undefined,"$ %AsyncGeneratorPrototype%":Vn,"$ %AsyncIteratorPrototype%":Vn,"$ %Atomics%":"undefined"==typeof Atomics?Vn:Atomics,"$ %Boolean%":Boolean,"$ %BooleanPrototype%":Boolean.prototype,"$ %DataView%":"undefined"==typeof DataView?Vn:DataView,"$ %DataViewPrototype%":"undefined"==typeof DataView?Vn: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?Vn:Float32Array,"$ %Float32ArrayPrototype%":"undefined"==typeof Float32Array?Vn:Float32Array.prototype,"$ %Float64Array%":"undefined"==typeof Float64Array?Vn:Float64Array,"$ %Float64ArrayPrototype%":"undefined"==typeof Float64Array?Vn:Float64Array.prototype,"$ %Function%":Function,"$ %FunctionPrototype%":Function.prototype,"$ %Generator%":Vn,"$ %GeneratorFunction%":undefined,"$ %GeneratorPrototype%":Vn,"$ %Int8Array%":"undefined"==typeof Int8Array?Vn:Int8Array,"$ %Int8ArrayPrototype%":"undefined"==typeof Int8Array?Vn:Int8Array.prototype,"$ %Int16Array%":"undefined"==typeof Int16Array?Vn:Int16Array,"$ %Int16ArrayPrototype%":"undefined"==typeof Int16Array?Vn:Int8Array.prototype,"$ %Int32Array%":"undefined"==typeof Int32Array?Vn:Int32Array,"$ %Int32ArrayPrototype%":"undefined"==typeof Int32Array?Vn:Int32Array.prototype,"$ %isFinite%":isFinite,"$ %isNaN%":j,"$ %IteratorPrototype%":Hn?zn(zn([][Symbol.iterator]())):Vn,"$ %JSON%":JSON,"$ %JSONParse%":JSON.parse,"$ %Map%":"undefined"==typeof Map?Vn:Map,"$ %MapIteratorPrototype%":"undefined"!=typeof Map&&Hn?zn((new Map)[Symbol.iterator]()):Vn,"$ %MapPrototype%":"undefined"==typeof Map?Vn: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?Vn:Promise,"$ %PromisePrototype%":"undefined"==typeof Promise?Vn:Promise.prototype,"$ %PromiseProto_then%":"undefined"==typeof Promise?Vn:Promise.prototype.then,"$ %Promise_all%":"undefined"==typeof Promise?Vn:Promise.all,"$ %Promise_reject%":"undefined"==typeof Promise?Vn:Promise.reject,"$ %Promise_resolve%":"undefined"==typeof Promise?Vn:Promise.resolve,"$ %Proxy%":"undefined"==typeof Proxy?Vn:Proxy,"$ %RangeError%":RangeError,"$ %RangeErrorPrototype%":RangeError.prototype,"$ %ReferenceError%":ReferenceError,"$ %ReferenceErrorPrototype%":ReferenceError.prototype,"$ %Reflect%":"undefined"==typeof Reflect?Vn:Reflect,"$ %RegExp%":RegExp,"$ %RegExpPrototype%":RegExp.prototype,"$ %Set%":"undefined"==typeof Set?Vn:Set,"$ %SetIteratorPrototype%":"undefined"!=typeof Set&&Hn?zn((new Set)[Symbol.iterator]()):Vn,"$ %SetPrototype%":"undefined"==typeof Set?Vn:Set.prototype,"$ %SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?Vn:SharedArrayBuffer,"$ %SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?Vn:SharedArrayBuffer.prototype,"$ %String%":String,"$ %StringIteratorPrototype%":Hn?zn(""[Symbol.iterator]()):Vn,"$ %StringPrototype%":String.prototype,"$ %Symbol%":Hn?Symbol:Vn,"$ %SymbolPrototype%":Hn?Symbol.prototype:Vn,"$ %SyntaxError%":m,"$ %SyntaxErrorPrototype%":m.prototype,"$ %ThrowTypeError%":Ln,"$ %TypedArray%":Wn,"$ %TypedArrayPrototype%":Wn?Wn.prototype:Vn,"$ %TypeError%":p,"$ %TypeErrorPrototype%":p.prototype,"$ %Uint8Array%":void 0===x?Vn:x,"$ %Uint8ArrayPrototype%":void 0===x?Vn:x.prototype,"$ %Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?Vn:Uint8ClampedArray,"$ %Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?Vn:Uint8ClampedArray.prototype,"$ %Uint16Array%":"undefined"==typeof Uint16Array?Vn:Uint16Array,"$ %Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?Vn:Uint16Array.prototype,"$ %Uint32Array%":"undefined"==typeof Uint32Array?Vn:Uint32Array,"$ %Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?Vn:Uint32Array.prototype,"$ %URIError%":URIError,"$ %URIErrorPrototype%":URIError.prototype,"$ %WeakMap%":"undefined"==typeof WeakMap?Vn:WeakMap,"$ %WeakMapPrototype%":"undefined"==typeof WeakMap?Vn:WeakMap.prototype,"$ %WeakSet%":"undefined"==typeof WeakSet?Vn:WeakSet,"$ %WeakSetPrototype%":"undefined"==typeof WeakSet?Vn:WeakSet.prototype},Gn=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 qn))throw new m("intrinsic "+t+" does not exist!");if(void 0===qn[s]&&!i)throw new p("intrinsic "+t+" exists, but is not available. Please file an issue!");return qn[s]},Xn=jn.call(Function.call,g.prototype.hasOwnProperty),Jn=Gn,Qn=Jn("%TypeError%"),Yn=Jn("%SyntaxError%"),Kn=Xn,Zn={"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(Kn(i,e)&&!s[e])return!1;var n=Kn(i,"[[Value]]"),r=Kn(i,"[[Get]]")||Kn(i,"[[Set]]");if(n&&r)throw new Qn("Property Descriptors may not be both accessor and data descriptors");return!0}},tr=Number.isNaN||function(t){return t!=t},ir=Number.isNaN||function(t){return t!=t},sr=Number.isFinite||function(t){return"number"==typeof t&&!ir(t)&&t!==1/0&&t!==-1/0},er=Function.prototype.toString,nr=/^\s*class\b/,rr=function(t){try{var i=er.call(t);return nr.test(i)}catch(t){return!1}},hr=g.prototype.toString,or="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,ar=function(t){if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if("function"==typeof t&&!t.prototype)return!0;if(or)return function(t){try{return!rr(t)&&(er.call(t),!0)}catch(t){return!1}}(t);if(rr(t))return!1;var i=hr.call(t);return"[object Function]"===i||"[object GeneratorFunction]"===i},ur=g.prototype.toString,cr=function(t){return null===t||"function"!=typeof t&&"object"!=typeof t},lr=ar,fr=function(t){var i;if((i=arguments.length>1?arguments[1]:"[object Date]"===ur.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(lr(t[n[e]])&&(s=t[n[e]](),cr(s)))return s;throw new p("No default value")}throw new p("invalid [[DefaultValue]] hint supplied")},dr=Gn,vr=dr("%Object%"),pr=dr("%TypeError%"),mr=dr("%String%"),gr=function(t,i,s,e){var n=Zn[i];if("function"!=typeof n)throw new Yn("unknown record type: "+i);if(!n(t,e))throw new Qn(s+" must be a "+i);console.log(n(t,e),e)},yr=tr,br=sr,wr=function(t){return t>=0?1:-1},kr=function(t,i){var s=t%i;return w.floor(s>=0?s:s+i)},_r=Xn,jr={ToPrimitive:function(t){return cr(t)?t:arguments.length>1?fr(t,arguments[1]):fr(t)},ToBoolean:function(t){return!!t},ToNumber:function(t){return+t},ToInteger:function(t){var i=this.ToNumber(t);return yr(i)?0:0!==i&&br(i)?wr(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(yr(i)||0===i||!br(i))return 0;var s=wr(i)*w.floor(w.abs(i));return kr(s,65536)},ToString:function(t){return mr(t)},ToObject:function(t){return this.CheckObjectCoercible(t),vr(t)},CheckObjectCoercible:function(t,i){if(null==t)throw new pr(i||"Cannot call method on "+t);return t},IsCallable:ar,SameValue:function(t,i){return t===i?0!==t||1/t==1/i:yr(t)&&yr(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(_r(t,s)&&!i[s])return!1;var e=_r(t,"[[Value]]"),n=_r(t,"[[Get]]")||_r(t,"[[Set]]");if(e&&n)throw new pr("Property Descriptors may not be both accessor and data descriptors");return!0},IsAccessorDescriptor:function(t){return void 0!==t&&(gr(this,"Property Descriptor","Desc",t),!(!_r(t,"[[Get]]")&&!_r(t,"[[Set]]")))},IsDataDescriptor:function(t){return void 0!==t&&(gr(this,"Property Descriptor","Desc",t),!(!_r(t,"[[Value]]")&&!_r(t,"[[Writable]]")))},IsGenericDescriptor:function(t){return void 0!==t&&(gr(this,"Property Descriptor","Desc",t),!this.IsAccessorDescriptor(t)&&!this.IsDataDescriptor(t))},FromPropertyDescriptor:function(t){if(void 0===t)return t;if(gr(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 pr("FromPropertyDescriptor must be called with a fully populated Property Descriptor")},ToPropertyDescriptor:function(t){if("Object"!==this.Type(t))throw new pr("ToPropertyDescriptor requires an object");var i={};if(_r(t,"enumerable")&&(i["[[Enumerable]]"]=this.ToBoolean(t.enumerable)),_r(t,"configurable")&&(i["[[Configurable]]"]=this.ToBoolean(t.configurable)),_r(t,"value")&&(i["[[Value]]"]=t.value),_r(t,"writable")&&(i["[[Writable]]"]=this.ToBoolean(t.writable)),_r(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(_r(t,"set")){var e=t.set;if(void 0!==e&&!this.IsCallable(e))throw new pr("setter must be a function");i["[[Set]]"]=e}if((_r(i,"[[Get]]")||_r(i,"[[Set]]"))&&(_r(i,"[[Value]]")||_r(i,"[[Writable]]")))throw new pr("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return i}},xr=jn.call(Function.call,String.prototype.replace),Sr=/^[\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]+/,Tr=/[\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]+$/,Cr=function(){var t=jr.ToString(jr.CheckObjectCoercible(this));return xr(xr(t,Sr,""),Tr,"")},Pr=Cr,Ar=function(){return String.prototype.trim&&"\u200b"==="\u200b".trim()?String.prototype.trim:Pr},Mr=Un,Ir=Ar,Er=Un,Dr=Cr,Nr=Ar,Fr=function(){var t=Ir();return Mr(String.prototype,{trim:t},{trim:function(){return String.prototype.trim!==t}}),t},Br=jn.call(Function.call,Nr());Er(Br,{getPolyfill:Nr,implementation:Dr,shim:Fr});var $r=Br,Rr=ar,Or=g.prototype.toString,Vr=g.prototype.hasOwnProperty,Ur=$r,Lr=function(t,i,s){if(!Rr(i))throw new p("iterator must be a function");var e;arguments.length>=3&&(e=s),"[object Array]"===Or.call(t)?function(t,i,s){for(var e=0,n=t.length;e<n;e++)Vr.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)Vr.call(t,e)&&(null==s?i(t[e],e,t):i.call(s,t[e],e,t))}(t,i,e)},Hr=function(){for(var t={},i=0;i<arguments.length;i++){var s=arguments[i];for(var e in s)zr.call(s,e)&&(t[e]=s[e])}return t},zr=g.prototype.hasOwnProperty;var Wr=rn.exports,qr=hn,Gr=function(t){if(!t)return{};var i={};return Lr(Ur(t).split("\n"),(function(t){var s=t.indexOf(":"),e=Ur(t.slice(0,s)).toLowerCase(),n=Ur(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},Xr=Hr,Jr=Yr;function Qr(t,i,s){var e=t;return qr(i)?(s=i,"string"==typeof t&&(e={uri:t})):e=Xr(i,{uri:t}),e.callback=s,e}function Yr(t,i,s){return Kr(i=Qr(t,i,s))}function Kr(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:d,rawRequest:l};function r(t){return c(f),t instanceof v||(t=new v(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,s(t,n)}function h(){if(!a){var i;c(f),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:d,rawRequest:l},l.getAllResponseHeaders&&(r.headers=Gr(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 Yr.XDomainRequest:new Yr.XMLHttpRequest);var f,d=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,d,!y,t.username,t.password),y||(l.withCredentials=!!t.withCredentials),!y&&t.timeout>0&&(f=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}Yr.XMLHttpRequest=Wr.XMLHttpRequest||function(){},Yr.XDomainRequest="withCredentials"in new Yr.XMLHttpRequest?Yr.XMLHttpRequest:Wr.XDomainRequest,function(t,i){for(var s=0;s<t.length;s++)i(t[s])}(["get","put","post","patch","head","delete"],(function(t){Yr["delete"===t?"del":t]=function(i,s,e){return(s=Qr(i,s,e)).method=t.toUpperCase(),Kr(s)}}));var Zr=function(t,i){var s=new Ji.WebVTT.Parser(Ji,Ji.vttjs,Ji.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&&(Ji.console&&Ji.console.groupCollapsed&&Ji.console.groupCollapsed("Text Track parsing errors for "+i.src),e.forEach((function(t){return as.error(t)})),Ji.console&&Ji.console.groupEnd&&Ji.console.groupEnd()),s.flush()},th=function(t){function i(s){var e;if(void 0===s&&(s={}),!s.tech)throw new v("A tech was not provided.");var n=Ce(s,{kind:Ze[s.kind]||"subtitles",language:s.language||s.srclang||""}),r=tn[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,ne)for(var a in i.prototype)"constructor"!==a&&(o[a]=i.prototype[a]);o.L=[],o.W=[];var u=new Qe(o.L),c=new Qe(o.W),l=!1,f=b(o,(function(){this.activeCues,l&&(this.trigger("cuechange"),l=!1)}));return"disabled"!==r&&o.H.ready((function(){o.H.on("timeupdate",f)}),!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;tn[t]&&("showing"===(r=t)&&this.H.ready((function(){i.H.on("timeupdate",f)}),!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=nn(t);e&&(s.cors=e),Jr(s,b(this,(function(t,s,e){if(t)return as.error(t,s);if(i.q=!0,"function"!=typeof Ji.WebVTT){if(i.H){var n=function(){return Zr(e,i)};i.H.on("vttjsloaded",n),i.H.on("vttjserror",(function(){as.error("vttjs failed to load, stopping trying to process "+i.src),i.H.off("vttjsloaded",n)}))}}else Zr(e,i)})))}(n.src,o)):o.q=!0,o||Ae(e)}Ie(i,t);var s=i.prototype;return s.addCue=function(t){var i=t;if(Ji.vttjs&&!(t instanceof Ji.vttjs.VTTCue)){for(var s in i=new Ji.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}(sn);th.prototype.A={cuechange:"cuechange"};var ih=function(t){function i(s){var e,n;void 0===s&&(s={});var r=Ae(e=t.call(this)||this);if(ne)for(var h in r=Qi.createElement("custom"),i.prototype)"constructor"!==h&&(r[h]=i.prototype[h]);var o=new th(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})})),ne?r||Ae(e):e}return Ie(i,t),i}(Pe);ih.prototype.A={load:"load"},ih.NONE=0,ih.LOADING=1,ih.LOADED=2,ih.ERROR=3;var sh,eh=function(){function t(i){void 0===i&&(i=[]);var s=this;if(ne)for(var e in s=Qi.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(ne)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}(),nh=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=Ae(n),ne))for(var r in e=Qi.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||Ae(n)}Ie(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}(Pe);for(sh in nh.prototype.A={change:"change",addtrack:"addtrack",removetrack:"removetrack"},nh.prototype.A)nh.prototype["on"+sh]=null;var rh=function(t){function i(s){var e,n;if(void 0===s&&(s=[]),ne){for(var r in n=Qi.createElement("custom"),nh.prototype)"constructor"!==r&&(n[r]=nh.prototype[r]);for(var h in i.prototype)"constructor"!==h&&(n[h]=i.prototype[h])}return(n=e=t.call(this,s,n)||this)||Ae(e)}return Ie(i,t),i.prototype.tt=function(i){t.prototype.tt.call(this,i),i.addEventListener("modechange",b(this,(function(){this.trigger("change")})))},i}(nh),hh=function(t,i){for(var s=0;s<t.length;s++)i.id!==t[s].id&&(t[s].selected=!1)},oh=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){hh(s,s[r]);break}if(ne){for(var h in n=Qi.createElement("custom"),nh.prototype)"constructor"!==h&&(n[h]=nh.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||Ae(e)}Ie(i,t);var s=i.prototype;return s.tt=function(i){var s=this;i.selected&&hh(this,i),t.prototype.tt.call(this,i),i.addEventListener&&i.addEventListener("selectedchange",(function(){s.st||(s.st=!0,hh(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}(nh),ah=function(t,i){for(var s=0;s<t.length;s++)i.id!==t[s].id&&(t[s].enabled=!1)},uh=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){ah(s,s[r]);break}if(ne){for(var h in n=Qi.createElement("custom"),nh.prototype)"constructor"!==h&&(n[h]=nh.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||Ae(e)}Ie(i,t);var s=i.prototype;return s.tt=function(i){var s=this;i.enabled&&ah(this,i),t.prototype.tt.call(this,i),i.addEventListener&&i.addEventListener("enabledchange",(function(){s.st||(s.st=!0,ah(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}(nh),ch=void 0;var lh=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 rh,e.initTextTrackListeners(),e.initTrackListeners(),i.nativeControlsForTouch||e.emitTapEvents(),e.constructor&&(e.l=e.constructor.name||"Unknown Tech"),e}Ie(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(b(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 Ne(0,0)},s.bufferedPercent=function(){return Fe(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 He(t),this.trigger("error")),this.lt},s.played=function(){return this.et?Ne(0,0):Ne()},s.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},s.initTextTrackListeners=function(){var t=b(this,(function(){this.trigger("texttrackchange")})),i=this.textTracks();i&&(i.addEventListener("removetrack",t),i.addEventListener("addtrack",t),this.on("dispose",b(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.ft=function(){var t=this;if(!Ji.WebVTT)if(Qi.body.contains(this.el())){if(!this.h["vtt.js"]&&hs(ch)&&g.keys(ch).length>0)return void this.trigger("vttjsloaded");var i=Qi.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})),Ji.WebVTT=!0,this.el().parentNode.appendChild(i)}else this.ready(this.ft)},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.ft();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 oh,this.rt},s.audioTracks=function(){return this.ht=this.ht||new uh,this.ht},s.textTracks=function(){return this.nt=this.nt||new rh,this.nt},s.remoteTextTracks=function(){return this.dt=this.dt||new rh,this.dt},s.remoteTextTrackEls=function(){return this.vt=this.vt||new eh,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 th(n);return r.tt(h),h}(this,t,i,s)},s.createRemoteTextTrack=function(t){var i=Ce(t,{tech:this});return new ih(i)},s.addRemoteTextTrack=function(t,i){void 0===t&&(t={});var s=this.createRemoteTextTrack(t);return!0!==i&&!1!==i&&(as.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]:Ji&&Ji.videojs&&Ji.videojs[t]?(as.warn("The "+t+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),Ji.videojs[t]):void 0},i}(t);lh.prototype.nt,lh.prototype.ht,lh.prototype.rt,lh.prototype.featuresVolumeControl=!0,lh.prototype.featuresFullscreenResize=!1,lh.prototype.featuresPlaybackRate=!1,lh.prototype.featuresProgressEvents=!1,lh.prototype.featuresTimeupdateEvents=!1,lh.prototype.featuresNativeTextTracks=!1,lh.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:as.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)}},t.registerComponent("Tech",lh),t.registerComponent("MediaTechController",lh),lh.registerTech("Tech",lh);var fh=function(i){function s(s,e,n){var r;if(r=i.call(this,s,e,n)||this,e.playerOptions.sources&&0!==e.playerOptions.sources.length)s.src(e.playerOptions.sources);else for(var h=0,o=e.playerOptions.techOrder;h<o.length;h++){var a=Te(o[h]),u=lh.getTech(a);if(a||(u=t.getComponent(a)),u&&u.isSupported()){s._t(a);break}}return r}return Ie(s,i),s}(t);t.registerComponent("MediaLoader",fh);var dh=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}Ie(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=ns({className:this.buildCSSClass(),tabIndex:0},s),"button"===i&&as.error("Creating a ClickableComponent with an HTML element of "+i+" is not supported; use a Button instead."),e=ns({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=ys("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){me(Qi,"keydown",b(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){ge(Qi,"keydown",b(this,this.handleKeyPress))},i}(t);t.registerComponent("ClickableComponent",dh);var vh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).update(),i.on("posterchange",b(Ae(e),e.update)),e}Ie(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=ys("div",{className:"vjs-poster",tabIndex:-1});return ue||(this.Tt=ys("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}(dh);t.registerComponent("PosterImage",vh);var ph="#222",mh={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 gh(t,i){return"rgba("+k(t[1]+t[1],16)+","+k(t[2]+t[2],16)+","+k(t[3]+t[3],16)+","+i+")"}function yh(t,i,s){try{t.style[i]=s}catch(t){return}}var bh=function(t){function i(i,s,e){var n;return n=t.call(this,i,s,e)||this,i.on("loadstart",b(Ae(n),n.toggleDisplay)),i.on("texttrackchange",b(Ae(n),n.updateDisplay)),i.ready(b(Ae(n),(function(){if(i.H&&i.H.featuresNativeTextTracks)this.hide();else{i.on("fullscreenchange",b(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}Ie(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 Ji.WebVTT&&Ji.WebVTT.processCues(Ji,[],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 Ji.WebVTT&&t.activeCues){for(var i=this.t.textTrackSettings.getValues(),s=[],e=0;e<t.activeCues.length;e++)s.push(t.activeCues[e]);Ji.WebVTT.processCues(Ji,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&&yh(h.firstChild,"color",gh(i.color||"#fff",i.textOpacity)),i.backgroundColor&&(h.firstChild.style.backgroundColor=i.backgroundColor),i.backgroundOpacity&&yh(h.firstChild,"backgroundColor",gh(i.backgroundColor||"#000",i.backgroundOpacity)),i.windowColor&&(i.windowOpacity?yh(h,"backgroundColor",gh(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 "+ph:"raised"===i.edgeStyle?h.firstChild.style.textShadow="1px 1px #222, 2px 2px #222, 3px 3px "+ph:"depressed"===i.edgeStyle?h.firstChild.style.textShadow="1px 1px #ccc, 0 1px #ccc, -1px -1px #222, 0 -1px "+ph:"uniform"===i.edgeStyle&&(h.firstChild.style.textShadow="0 0 4px #222, 0 0 4px #222, 0 0 4px #222, 0 0 4px "+ph)),i.fontPercent&&1!==i.fontPercent){var o=Ji.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=mh[i.fontFamily])}}}},i}(t);t.registerComponent("TextTrackDisplay",bh);var wh=function(t){function i(){return t.apply(this,arguments)||this}return Ie(i,t),i.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"})},i}(t);t.registerComponent("LoadingSpinner",wh);var kh=function(i){function s(){return i.apply(this,arguments)||this}Ie(s,i);var e=s.prototype;return e.createEl=function(i,s,e){void 0===i&&(i="button"),void 0===s&&(s={}),void 0===e&&(e={}),s=ns({className:this.buildCSSClass()},s),"button"!==i&&(as.warn("Creating a Button with an HTML element of "+i+" is deprecated; use ClickableComponent instead."),s=ns({tabIndex:0},s),e=ns({role:"button"},e)),e=ns({type:"button","aria-live":"polite"},e);var n=t.prototype.createEl.call(this,i,s,e);return this.createControlTextEl(n),n},e.addChild=function(i,s){void 0===s&&(s={});var e=this.constructor.name;return as.warn("Adding an actionable (user controllable) child to a Button ("+e+") is not supported; use a ClickableComponent instead."),t.prototype.addChild.call(this,i,s)},e.enable=function(){i.prototype.enable.call(this),this.v.removeAttribute("disabled")},e.disable=function(){i.prototype.disable.call(this),this.v.setAttribute("disabled","disabled")},e.handleKeyPress=function(t){32!==t.which&&13!==t.which&&i.prototype.handleKeyPress.call(this,t)},s}(dh);t.registerComponent("Button",kh);var _h=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).Ct=!1,e.on("mousedown",e.handleMouseDown),e}Ie(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}(kh);_h.prototype.St="Play Video",t.registerComponent("BigPlayButton",_h);var jh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).controlText(s&&s.controlText||"Close"),e}Ie(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}(kh);t.registerComponent("CloseButton",jh);var xh=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}Ie(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}(kh);function Sh(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)}xh.prototype.St="Play",t.registerComponent("PlayToggle",xh);var Th=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}Ie(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=ys("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=Sh(i,this.t.duration());e!==this.Pt&&(this.Pt=e,this.S.innerHTML='<span class="vjs-control-text">'+s+"</span> "+e)},i}(t);t.registerComponent("CurrentTimeDisplay",Th);var Ch=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}Ie(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=ys("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=Sh(i);this.S.innerHTML='<span class="vjs-control-text">'+s+"</span> "+e}},i}(t);t.registerComponent("DurationDisplay",Ch);var Ph=function(t){function i(){return t.apply(this,arguments)||this}return Ie(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}(t);t.registerComponent("TimeDivider",Ph);var Ah=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}Ie(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=ys("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=Sh(this.t.remainingTime());s!==this.Pt&&(this.Pt=s,this.S.innerHTML='<span class="vjs-control-text">'+i+"</span> -"+s)}},i}(t);t.registerComponent("RemainingTimeDisplay",Ah);var Mh=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}Ie(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=ys("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.xt=ys("span",{className:"vjs-control-text",innerHTML:this.localize("Stream Type")}),this.At=Qi.createTextNode(this.localize("LIVE")),this.S.appendChild(this.xt),this.S.appendChild(this.At),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.At.innerHTML=this.localize("LIVE")},i}(t);t.registerComponent("LiveDisplay",Mh);var Ih=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}Ie(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=ns({tabIndex:0},s),e=ns({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(),Qi.body.focus(),Qi.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;Qi.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=Fs(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.Mt||!1:(this.Mt=!!t,this.Mt?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal"),this)},i}(t);function Eh(t,i){if(!t||!i)return"";if("function"==typeof Ji.getComputedStyle){var s=Ji.getComputedStyle(t);return s?s[i]:""}return t.currentStyle[i]||""}t.registerComponent("Slider",Ih);var Dh=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}Ie(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=ys("span",{innerHTML:this.localize("Loaded")}),this.Dt=Qi.createTextNode(": 0%"),this.xt=ys("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(ys()),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}(t);t.registerComponent("LoadProgressBar",Dh);var Nh=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(b(Ae(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}Ie(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=ys("span",{innerHTML:this.localize("Progress")}),this.Ft=Qi.createTextNode(": 0%"),this.xt=ys("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",Sh(i,this.t.duration()))},s.handleLanguagechange=function(){this.Nt.innerHTML=this.localize("Progress")},i}(t);t.registerComponent("PlayProgressBar",Nh);var Fh=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(b(Ae(e),e.updateDataAttr)),e}Ie(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=ys("div",{className:"vjs-time-tooltip"}),this.Nt=ys("span",{innerHTML:this.localize("Progress")}),this.Ft=Qi.createTextNode(": 0%"),this.xt=ys("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=Sh(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}(t);t.registerComponent("TooltipProgressBar",Fh);var Bh=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(b(Ae(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}Ie(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=_(Eh(this.player().el(),"width")),s=_(Eh(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",Sh(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}(Ih);Bh.prototype.h={children:["loadProgressBar","mouseTimeDisplay","playProgressBar"],barName:"playProgressBar"},Bh.prototype.playerEvent="timeupdate",t.registerComponent("SeekBar",Bh);var $h=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=ys("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)}}(b(Ae(e),e.handleMouseMove),25))})),e}Ie(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-Ns(this.el().parentNode).left;this.update(s,e)},s.update=function(t,i){var s=Sh(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=_(Eh(this.tooltip,"width"))/2;this.tooltip.innerHTML=s,this.tooltip.style.right="-"+(n-e)+"px"}},s.calculateDistance=function(t){return Fs(this.el().parentNode,t).x},s.Bt=function(t){if(!this.keepTooltipsInside)return t;var i=_(Eh(this.player().el(),"width")),s=_(Eh(this.tooltip,"width"))/2,e=t;return t<s?e=w.ceil(s):t>i-s&&(e=w.floor(i-s)),e},i}(t);t.registerComponent("MouseTimeDisplay",$h);var Rh=function(t){function i(){return t.apply(this,arguments)||this}return Ie(i,t),i.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},i}(t);Rh.prototype.h={children:["seekBar"]},t.registerComponent("ProgressControl",Rh);var Oh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).on(i,"fullscreenchange",e.handleFullscreenChange),e}Ie(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}(kh);Oh.prototype.St="Fullscreen",t.registerComponent("FullscreenToggle",Oh);var Vh=function(t){function i(){return t.apply(this,arguments)||this}return Ie(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}(t);t.registerComponent("VolumeLevel",Vh);var Uh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).on(i,"volumechange",e.updateARIAAttributes),i.ready(b(Ae(e),e.updateARIAAttributes)),e}Ie(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}(Ih);Uh.prototype.h={children:["volumeLevel"],barName:"volumeLevel"},Uh.prototype.playerEvent="volumechange",t.registerComponent("VolumeBar",Uh);var Lh=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 Ie(i,t),i.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control"})},i}(t);Lh.prototype.h={children:["volumeBar"]},t.registerComponent("VolumeControl",Lh);var Hh=function(t){function i(){return t.apply(this,arguments)||this}Ie(i,t);var s=i.prototype;return s.addItem=function(t){this.addChild(t),t.on("click",b(this,(function(){this.unlockShowing()})))},s.createEl=function(){var i=this.h.contentElType||"ul";this.S=ys(i,{className:"vjs-menu-content"});var s=t.prototype.createEl.call(this,"div",{append:this.S,className:"vjs-menu"});return s.appendChild(this.S),me(s,"click",(function(t){t.preventDefault(),t.stopImmediatePropagation()})),s},i}(t);t.registerComponent("Popup",Hh);var zh=function(t){function i(i,s){var e;return void 0===s&&(s={}),(e=t.call(this,i,s)||this).update(),e}Ie(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}(dh);t.registerComponent("PopupButton",zh);var Wh=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}Ie(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++)Ps(this.v,"vjs-vol-"+n);Cs(this.v,"vjs-vol-"+s)},i}(kh);Wh.prototype.St="Mute",t.registerComponent("MuteToggle",Wh);var qh=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(Ae(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}Ie(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 Hh(this.t,{contentElType:"div"}),i=new Uh(this.t,this.h.volumeBar);return t.addChild(i),this.menuContent=t,this.volumeBar=i,this.attachVolumeBarEvents(),t},s.handleClick=function(i){Wh.prototype.handleClick.call(this),t.prototype.handleClick.call(this)},s.attachVolumeBarEvents=function(){this.menuContent.on(["mousedown","touchdown"],b(this,this.handleMouseDown))},s.handleMouseDown=function(t){this.on(["mousemove","touchmove"],b(this.volumeBar,this.volumeBar.handleMouseMove)),this.on(this.v.ownerDocument,["mouseup","touchend"],this.handleMouseUp)},s.handleMouseUp=function(t){this.off(["mousemove","touchmove"],b(this.volumeBar,this.volumeBar.handleMouseMove))},i}(zh);qh.prototype.volumeUpdate=Wh.prototype.update,qh.prototype.St="Mute",t.registerComponent("VolumeMenuButton",qh);var Gh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).$t=-1,e.on("keydown",e.handleKeyPress),e}Ie(i,t);var s=i.prototype;return s.addItem=function(t){this.addChild(t),t.on("click",b(this,(function(t){this.unlockShowing()})))},s.createEl=function(){var i=this.h.contentElType||"ul";this.S=ys(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),me(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}(t);t.registerComponent("Menu",Gh);var Xh=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}Ie(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 Gh(this.t);if(this.Vt=0,this.h.title){var i=ys("li",{className:"vjs-menu-title",innerHTML:Te(this.h.title),tabIndex:-1});this.Vt+=1,t.m.unshift(i),ws(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",b(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}(dh);t.registerComponent("MenuButton",Xh);var Jh=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 Ae(e);var r=b(Ae(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 Ie(i,t),i}(Xh);t.registerComponent("TrackButton",Jh);var Qh=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}Ie(i,t);var s=i.prototype;return s.createEl=function(i,s,e){this.nonIconControl=!0;var n=t.prototype.createEl.call(this,"li",ns({className:"vjs-menu-item",tabIndex:-1},s),e);return this.Ut=Qi.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}(dh);t.registerComponent("MenuItem",Qh);var Yh=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=b(Ae(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 Ji.Event)try{n=new Ji.Event("change")}catch(t){}n||(n=Qi.createEvent("Event")).initEvent("change",!0,!0),h.dispatchEvent(n)}));return e}Ie(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}(Qh);t.registerComponent("TextTrackMenuItem",Yh);var Kh=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 Ie(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}(Yh);t.registerComponent("OffTextTrackMenuItem",Kh);var Zh=function(t){function i(i,s){return void 0===s&&(s={}),s.tracks=i.textTracks(),t.call(this,i,s)||this}return Ie(i,t),i.prototype.createItems=function(t){void 0===t&&(t=[]),t.push(new Kh(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 Yh(this.t,{track:e,selectable:!0}))}return t},i}(Jh);t.registerComponent("TextTrackButton",Zh);var to=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",b(Ae(e),e.update)),e}Ie(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}(Qh);t.registerComponent("ChaptersTrackMenuItem",to);var io=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}Ie(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(Te(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 to(this.t,{track:this.Ht,cue:n});t.push(r)}return t},i}(Zh);io.prototype.Lt="chapters",io.prototype.St="Chapters",t.registerComponent("ChaptersButton",io);var so=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=b(Ae(n),n.handleTracksChange);r.addEventListener("change",h),n.on("dispose",(function(){r.removeEventListener("change",h)}))}return n}Ie(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}(Zh);so.prototype.Lt="descriptions",so.prototype.St="Descriptions",t.registerComponent("DescriptionsButton",so);var eo=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 Ie(i,t),i.prototype.buildCSSClass=function(){return"vjs-subtitles-button "+t.prototype.buildCSSClass.call(this)},i}(Zh);eo.prototype.Lt="subtitles",eo.prototype.St="Subtitles",t.registerComponent("SubtitlesButton",eo);var no=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 Ie(i,t),i.prototype.handleClick=function(t){this.player().getChild("textTrackSettings").show(),this.player().getChild("textTrackSettings").v.focus()},i}(Yh);t.registerComponent("CaptionSettingsMenuItem",no);var ro=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}Ie(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 no(this.t,{kind:this.Lt})),this.Vt+=1),t.prototype.createItems.call(this,i)},i}(Zh);ro.prototype.Lt="captions",ro.prototype.St="Captions",t.registerComponent("CaptionsButton",ro);var ho=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=b(Ae(e),e.handleTracksChange);r.addEventListener("change",h),e.on("dispose",(function(){r.removeEventListener("change",h)}))}return e}Ie(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}(Qh);t.registerComponent("AudioTrackMenuItem",ho);var oo=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}Ie(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 ho(this.t,{track:e,selectable:!0}))}return t},i}(Jh);oo.prototype.St="Audio Track",t.registerComponent("AudioTrackButton",oo);var ao=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}Ie(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}(Qh);ao.prototype.contentElType="button",t.registerComponent("PlaybackRateMenuItem",ao);var uo=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}Ie(i,t);var s=i.prototype;return s.createEl=function(){var i=t.prototype.createEl.call(this);return this.Ut=ys("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 Gh(this.player()),i=this.playbackRates();if(i)for(var s=i.length-1;s>=0;s--)t.addChild(new ao(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}(Xh);uo.prototype.St="Playback Rate",t.registerComponent("PlaybackRateMenuButton",uo);var co=function(t){function i(){return t.apply(this,arguments)||this}Ie(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}(t);t.registerComponent("Spacer",co);var lo=function(t){function i(){return t.apply(this,arguments)||this}Ie(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}(co);t.registerComponent("CustomControlSpacer",lo);var fo=function(t){function i(){return t.apply(this,arguments)||this}return Ie(i,t),i.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"},{role:"group"})},i}(t);fo.prototype.h={children:["playToggle","volumeMenuButton","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subtitlesButton","captionsButton","audioTrackButton","fullscreenToggle"]},t.registerComponent("ControlBar",fo);var vo=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).on(i,"error",e.open),e}Ie(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}(Je);vo.prototype.h=Ce(Je.prototype.h,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),t.registerComponent("ErrorDisplay",vo);var po="vjs-text-track-settings",mo=["#000","Black"],go=["#00F","Blue"],yo=["#0FF","Cyan"],bo=["#0F0","Green"],wo=["#F0F","Magenta"],ko=["#F00","Red"],_o=["#FFF","White"],jo=["#FF0","Yellow"],xo=["1","Opaque"],So=["0.5","Semi-Transparent"],To=["0","Transparent"],Co={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[mo,_o,ko,bo,go,jo,wo,yo]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[xo,So,To]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[_o,mo,ko,bo,go,jo,wo,yo]},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:[xo,So]},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:[To,So,xo]}};function Po(t,i){if(i&&(t=i(t)),t&&"none"!==t)return t}Co.windowColor.options=Co.backgroundColor.options;var Ao,Mo=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).setDefaults(),e.hide(),e.updateDisplay=b(Ae(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()})),es(Co,(function(t){e.on(e.$(t.selector),"change",e.updateDisplay)})),e.h.persistTextTrackSettings&&e.restoreSettings(),e}Ie(i,t);var s=i.prototype;return s.Wt=function(t){var i=this,s=Co[t],e=s.id.replace("%s",this.o);return[ys("label",{className:"vjs-label",textContent:s.label},{for:e}),ys("select",{id:e},void 0,s.options.map((function(t){return ys("option",{textContent:i.localize(t[1]),value:t[0]})})))]},s.qt=function(){var t=ys("legend",{textContent:this.localize("Text")}),i=this.Wt("color"),s=ys("span",{className:"vjs-text-opacity vjs-opacity"},void 0,this.Wt("textOpacity"));return ys("fieldset",{className:"vjs-fg-color vjs-tracksetting"},void 0,[t].concat(i,s))},s.Gt=function(){var t=ys("legend",{textContent:this.localize("Background")}),i=this.Wt("backgroundColor"),s=ys("span",{className:"vjs-bg-opacity vjs-opacity"},void 0,this.Wt("backgroundOpacity"));return ys("fieldset",{className:"vjs-bg-color vjs-tracksetting"},void 0,[t].concat(i,s))},s.Xt=function(){var t=ys("legend",{textContent:this.localize("Window")}),i=this.Wt("windowColor"),s=ys("span",{className:"vjs-window-opacity vjs-opacity"},void 0,this.Wt("windowOpacity"));return ys("fieldset",{className:"vjs-window-color vjs-tracksetting"},void 0,[t].concat(i,s))},s.Jt=function(){return ys("div",{className:"vjs-tracksettings-colors"},void 0,[this.qt(),this.Gt(),this.Xt()])},s.Qt=function(){var t=ys("div",{className:"vjs-font-percent vjs-tracksetting"},void 0,this.Wt("fontPercent")),i=ys("div",{className:"vjs-edge-style vjs-tracksetting"},void 0,this.Wt("edgeStyle")),s=ys("div",{className:"vjs-font-family vjs-tracksetting"},void 0,this.Wt("fontFamily"));return ys("div",{className:"vjs-tracksettings-font"},void 0,[t,i,s])},s.Yt=function(){var t=ys("button",{className:"vjs-default-button",textContent:this.localize("Defaults")}),i=ys("button",{className:"vjs-done-button",textContent:"Done"});return ys("div",{className:"vjs-tracksettings-controls"},void 0,[t,i])},s.createEl=function(){var t=ys("div",{className:"vjs-tracksettings"},void 0,[this.Jt(),this.Qt(),this.Yt()]),i=ys("div",{className:"vjs-control-text",id:"TTsettingsDialogLabel-"+this.o,textContent:"Caption Settings Dialog"},{"aria-level":"1",role:"heading"}),s=ys("div",{className:"vjs-control-text",id:"TTsettingsDialogDescription-"+this.o,textContent:"Beginning of dialog window. Escape will cancel and close the window."}),e=ys("div",void 0,{role:"document"},[i,s,t]);return ys("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),ss(t).reduce((function(s,e){return i(s,t[e],e)}),s)}(Co,(function(i,s,e){var n=function(t,i){return Po(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;es(Co,(function(s,e){!function(t,i,s){if(i)for(var e=0;e<t.options.length;e++)if(Po(t.options[e].value,s)===i){t.selectedIndex=e;break}}(i.$(s.selector),t[e],s.parser)}))},s.setDefaults=function(){var t=this;es(Co,(function(i){var s=i.hasOwnProperty("default")?i.default:0;t.$(i.selector).selectedIndex=s}))},s.restoreSettings=function(){var t;try{t=JSON.parse(Ji.localStorage.getItem(po))}catch(t){as.warn(t)}t&&this.setValues(t)},s.saveSettings=function(){if(this.h.persistTextTrackSettings){var t=this.getValues();try{g.keys(t).length?Ji.localStorage.setItem(po,JSON.stringify(t)):Ji.localStorage.removeItem(po)}catch(t){as.warn(t)}}},s.updateDisplay=function(){var t=this.t.getChild("textTrackDisplay");t&&t.updateDisplay()},i}(t);t.registerComponent("TextTrackSettings",Mo);var Io,Eo=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")||!nn(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=Te(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&&as.warn(fs(Ao||(Ao=Yi(["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=b(Ae(e),e.handleTextTrackChange),e.hi=b(Ae(e),e.handleTextTrackAdd),e.oi=b(Ae(e),e.handleTextTrackRemove),e.ai()),e.ci(),(ae||qs||Zs)&&!0===i.nativeControlsForTouch&&e.setControls(!0),e.fi(),e.triggerReady(),e}Ie(i,t);var s=i.prototype;return s.dispose=function(){var s=this;["audio","video","text"].forEach((function(t){var i=Te(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=Qi.createElement("video");var e=Ce({},this.h.tag&&Is(this.h.tag));ae&&!0===this.h.nativeControlsForTouch||delete e.controls,Ms(t,ns(e,{id:this.h.techId,class:"vjs-tech"}))}t.playerId=this.h.playerId}void 0!==this.h.preload&&Es(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?Es(t,h,h):Ds(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.di)}},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.di=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){as(t,"Video is not ready. (Video.js)")}},s.duration=function(){var t=this;if(this.v.duration===1/0&&Qs&&se&&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.fi=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=Ji.navigator&&Ji.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=Qi.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),Ji.performance&&"function"==typeof Ji.performance.now?t.creationTime=Ji.performance.now():Ji.performance&&Ji.performance.timing&&"number"==typeof Ji.performance.timing.navigationStart&&(t.creationTime=Ji.Date.now()-Ji.performance.timing.navigationStart),t},i}(lh);ps()&&(Eo.TEST_VID=Qi.createElement("video"),(Io=Qi.createElement("track")).kind="captions",Io.srclang="en",Io.label="English",Eo.TEST_VID.appendChild(Io)),Eo.isSupported=function(){try{Eo.TEST_VID.volume=.5}catch(t){return!1}return!(!Eo.TEST_VID||!Eo.TEST_VID.canPlayType)},Eo.canControlVolume=function(){try{var t=Eo.TEST_VID.volume;return Eo.TEST_VID.volume=t/2+.1,t!==Eo.TEST_VID.volume}catch(t){return!1}},Eo.canControlPlaybackRate=function(){if(Qs&&se&&ee<58)return!1;try{var t=Eo.TEST_VID.playbackRate;return Eo.TEST_VID.playbackRate=t/2+.1,t!==Eo.TEST_VID.playbackRate}catch(t){return!1}},Eo.supportsNativeTextTracks=function(){return oe},Eo.supportsNativeVideoTracks=function(){return!(!Eo.TEST_VID||!Eo.TEST_VID.videoTracks)},Eo.supportsNativeAudioTracks=function(){return!(!Eo.TEST_VID||!Eo.TEST_VID.audioTracks)},Eo.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","volumechange"],Eo.prototype.featuresVolumeControl=Eo.canControlVolume(),Eo.prototype.featuresPlaybackRate=Eo.canControlPlaybackRate(),Eo.prototype.movingMediaElementInDOM=!Xs,Eo.prototype.featuresFullscreenResize=!0,Eo.prototype.featuresProgressEvents=!0,Eo.prototype.featuresTimeupdateEvents=!0,Eo.prototype.featuresNativeTextTracks=Eo.supportsNativeTextTracks(),Eo.prototype.featuresNativeVideoTracks=Eo.supportsNativeVideoTracks(),Eo.prototype.featuresNativeAudioTracks=Eo.supportsNativeAudioTracks();var Do=Eo.TEST_VID&&Eo.TEST_VID.constructor.prototype.canPlayType,No=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,Fo=/^video\/mp4/i;Eo.patchCanPlayType=function(){Ys>=4&&!te?Eo.TEST_VID.constructor.prototype.canPlayType=function(t){return t&&No.test(t)?"maybe":Do.call(this,t)}:Ks&&(Eo.TEST_VID.constructor.prototype.canPlayType=function(t){return t&&Fo.test(t)?"maybe":Do.call(this,t)})},Eo.unpatchCanPlayType=function(){var t=Eo.TEST_VID.constructor.prototype.canPlayType;return Eo.TEST_VID.constructor.prototype.canPlayType=Do,t},Eo.patchCanPlayType(),Eo.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){}}()}}},Eo.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){Eo.prototype[t]=function(){return this.v[t]||this.v.hasAttribute(t)}})),["muted","defaultMuted","autoplay","loop","playsinline"].forEach((function(t){Eo.prototype["set"+Te(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){Eo.prototype[t]=function(){return this.v[t]}})),["volume","src","poster","preload","playbackRate"].forEach((function(t){Eo.prototype["set"+Te(t)]=function(i){this.v[t]=i}})),["pause","load"].forEach((function(t){Eo.prototype[t]=function(){return this.v[t]()}})),lh.withSourceHandlers(Eo),Eo.nativeSourceHandler={},Eo.nativeSourceHandler.canPlayType=function(t){try{return Eo.TEST_VID.canPlayType(t)}catch(t){return""}},Eo.nativeSourceHandler.canHandleSource=function(t,i){if(t.type)return Eo.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 Eo.nativeSourceHandler.canPlayType("video/"+s)}return""},Eo.nativeSourceHandler.handleSource=function(t,i,s){i.setSrc(t.src)},Eo.nativeSourceHandler.dispose=function(){},Eo.registerSourceHandler(Eo.nativeSourceHandler),t.registerComponent("Html5",Eo),lh.registerTech("Html5",Eo);var Bo=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","ratechange","volumechange","texttrackchange"],$o=function(i){function s(t,e,n){var r;if(t.id=t.id||["vjs_video",Zi()].join("_"),(e=ns(s.getTagSettings(t),e)).initChildren=!1,e.createEl=!1,e.reportTouchActivity=!1,!e.language)if("function"==typeof t.closest){var h=t.closest("[lang]");h&&(e.language=h.getAttribute("lang"))}else for(var o=t;o&&1===o.nodeType;){if(Is(o).hasOwnProperty("lang")){e.language=o.getAttribute("lang");break}o=o.parentNode}if(!(r=i.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=t,r.tagAttributes=t&&Is(t),r.language(r.h.language),e.languages){var a={};g.getOwnPropertyNames(e.languages).forEach((function(t){a[t.toLowerCase()]=e.languages[t]})),r.vi=a}else r.vi=s.prototype.h.languages;r.pi={},r.mi=e.poster||"",r.gi=!!e.controls,t.controls=!1,r.yi=!1,r.v=r.createEl();var u=Ce(r.h);if(e.plugins){var c=e.plugins;g.getOwnPropertyNames(c).forEach((function(t){"function"==typeof this[t]?this[t](c[t]):as.error("Unable to find plugin:",t)}),Ae(r))}r.h.playerOptions=u,r.initChildren(),r.isAudio("audio"===t.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.bi()&&r.addClass("vjs-no-flex"),Xs||r.addClass("vjs-workinghover"),s.players[r.o]=Ae(r);var l="5.20.6-opentelly.14".split(".")[0];return r.addClass("vjs-v"+l),r.userActive(!0),r.reportUserActivity(),r.wi(),r.on("fullscreenchange",r.ki),r.on("stageclick",r._i),r}Ie(s,i);var e=s.prototype;return e.dispose=function(){this.trigger("dispose"),this.off("dispose"),this.ji&&this.ji.parentNode&&this.ji.parentNode.removeChild(this.ji),s.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(),i.prototype.dispose.call(this)},e.createEl=function(){var t,s=this.tag,e=this.xi=s.parentNode&&s.parentNode.hasAttribute&&s.parentNode.hasAttribute("data-vjs-player");t=this.v=e?s.parentNode:i.prototype.createEl.call(this,"div"),s.setAttribute("tabindex","-1"),s.removeAttribute("width"),s.removeAttribute("height");var n=Is(s);if(g.getOwnPropertyNames(n).forEach((function(i){"class"===i?t.className+=" "+n[i]:t.setAttribute(i,n[i])})),s.playerId=s.id,s.id+="Si",s.className="vjs-tech",s.player=t.player=this,this.addClass("vjs-paused"),!0!==Ji.VIDEOJS_NO_DYNAMIC_STYLE){this.ji=xe("vjs-styles-dimensions");var r=Vs(".vjs-styles-defaults"),h=Vs("head");h.insertBefore(this.ji,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);Cs(u,"vjs-hidden"),u.setAttribute("hidden","hidden")}return s.Kt=s.networkState,s.parentNode&&!e&&s.parentNode.insertBefore(t,s),ws(s,t),this.m.unshift(s),this.v=t,t},e.width=function(t){return this.dimension("width",t)},e.height=function(t){return this.dimension("height",t)},e.dimension=function(t,i){var s="width"===t?"Ti":"Ci";if(void 0===i)return this[s]||0;if(""===i)this[s]=void 0;else{var e=_(i);if(j(e))return as.error('Improper value "'+i+'" supplied for for '+t),this;this[s]=e}return this.Pi(),this},e.fluid=function(t){if(void 0===t)return!!this.Ai;this.Ai=!!t,t?this.addClass("vjs-fluid"):this.removeClass("vjs-fluid"),this.Pi()},e.aspectRatio=function(t){if(void 0===t)return this.Mi;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.Mi=t,this.fluid(!0),this.Pi()},e.Pi=function(){if(!0!==Ji.VIDEOJS_NO_DYNAMIC_STYLE){var t,i,s,e=(void 0!==this.Mi&&"auto"!==this.Mi?this.Mi:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),n=e[1]/e[0];t=void 0!==this.Ti?this.Ti:void 0!==this.Ci?this.Ci/n:this.videoWidth()||300,i=void 0!==this.Ci?this.Ci:t*n,s=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(s),Se(this.ji,"\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.Ti?this.Ti:this.h.width,h="number"==typeof this.Ci?this.Ci:this.h.height,o=this.H&&this.H.el();o&&(r>=0&&(o.width=r),h>=0&&(o.height=h))}},e._t=function(i,s){var e=this;this.H&&this.Ii(),"Html5"!==i&&this.tag&&(lh.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.Ei=i,this.T=!1;var n=ns({source:s,nativeControlsForTouch:this.h.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+i+"Di",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.xi||!1,"vtt.js":this.h["vtt.js"]},this.h[i.toLowerCase()]);this.tag&&(n.tag=this.tag),s&&(this.Ni=s.type,s.src===this.pi.src&&this.pi.currentTime>0&&(n.startTime=this.pi.currentTime),this.pi.sources=null,this.pi.source=s,this.pi.src=s.src);var r=lh.getTech(i);r||(r=t.getComponent(i)),this.H=new r(n),this.H.ready(b(this,this.Fi),!0),Ge(this.Bi||[],this.H),Bo.forEach((function(t){e.on(e.H,t,e["handleTech"+Te(t)+"_"])})),this.on(this.H,"loadstart",this.$i),this.on(this.H,"waiting",this.Ri),this.on(this.H,"canplay",this.Oi),this.on(this.H,"canplaythrough",this.Vi),this.on(this.H,"playing",this.Ui),this.on(this.H,"ended",this.Li),this.on(this.H,"seeking",this.Hi),this.on(this.H,"seeked",this.zi),this.on(this.H,"play",this.Wi),this.on(this.H,"firstplay",this.qi),this.on(this.H,"pause",this.Gi),this.on(this.H,"durationchange",this.Xi),this.on(this.H,"fullscreenchange",this.Ji),this.on(this.H,"error",this.Qi),this.on(this.H,"loadedmetadata",this.Pi),this.on(this.H,"resize",this.Pi),this.on(this.H,"posterchange",this.Yi),this.on(this.H,"textdata",this.Ki),this.usingNativeControls(this.Zi("controls")),this.controls()&&!this.usingNativeControls()&&this.ts(),this.H.el().parentNode===this.contentEl()||"Html5"===i&&this.tag||ws(this.H.el(),this.contentEl()),this.tag&&(this.tag.player=null,this.tag=null)},e.Ii=function(){this.rt=this.videoTracks(),this.nt=this.textTracks(),this.ht=this.audioTracks(),this.Bi=qe(this.H),this.T=!1,this.H.dispose(),this.H=!1},e.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 Ji.alert(i),new v(i)},e.ts=function(){this.ss(),this.on(this.H,"mousedown",this.es),this.on(this.H,"touchstart",this.ns),this.on(this.H,"touchmove",this.rs),this.on(this.H,"touchend",this.hs),this.on(this.H,"tap",this.os)},e.ss=function(){this.off(this.H,"tap",this.os),this.off(this.H,"touchstart",this.ns),this.off(this.H,"touchmove",this.rs),this.off(this.H,"touchend",this.hs),this.off(this.H,"mousedown",this.es)},e.Fi=function(){if(this.triggerReady(),this.pi.volume&&this.us("setVolume",this.pi.volume),this.Yi(),this.Xi(),(this.src()||this.currentSrc())&&this.tag&&this.h.autoplay&&this.paused()){try{delete this.tag.poster}catch(t){as("deleting tag.poster throws in some browsers",t)}this.play()}},e.$i=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"))},e.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},e.Wi=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},e.Ri=function(){var t=this;this.addClass("vjs-waiting"),this.trigger("waiting"),this.one("timeupdate",(function(){return t.removeClass("vjs-waiting")}))},e.Oi=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},e.Vi=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},e.Ui=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},e.Hi=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},e.zi=function(){this.removeClass("vjs-seeking"),this.trigger("seeked")},e.qi=function(){this.h.starttime&&(as.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")},e.Gi=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},e.Li=function(){this.addClass("vjs-ended"),this.h.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},e.Xi=function(){this.duration(this.Zi("duration"))},e.es=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()))},e.os=function(){this.userActive(!this.userActive())},e.ns=function(){this.userWasActive=this.userActive()},e.rs=function(){this.userWasActive&&this.reportUserActivity()},e.hs=function(t){t.cancelable&&t.preventDefault()},e.ki=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},e._i=function(){this.reportUserActivity()},e.Ji=function(t,i){i&&(this.toggleClass("vjs-ios-native-fs",!(!i.nativeIOSFullscreen||!i.isFullscreen)),this.isFullscreen(i.isFullscreen)),this.trigger("fullscreenchange")},e.Qi=function(){var t=this.H.error();this.error(t)},e.Ki=function(){var t=null;arguments.length>1&&(t=arguments[1]),this.trigger("textdata",t)},e.getCache=function(){return this.pi},e.us=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 as(t),t}},e.Zi=function(t){if(this.H&&this.H.T)try{return this.H[t]()}catch(i){throw void 0===this.H[t]?as("Video.js: "+t+" method not defined for "+this.Ei+" playback technology.",i):"TypeError"===i.name?(as("Video.js: "+t+" unavailable on "+this.Ei+" playback technology element.",i),this.H.T=!1):as(i),i}},e.play=function(){return this.src()||this.currentSrc()?this.us("play"):this.H.one("loadstart",(function(){this.play()})),this},e.pause=function(){return this.us("pause"),this},e.paused=function(){return!1!==this.Zi("paused")},e.scrubbing=function(t){return void 0!==t?(this.yi=!!t,t?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing"),this):this.yi},e.currentTime=function(t){return void 0!==t?(this.us("setCurrentTime",t),this):(this.pi.currentTime=this.Zi("currentTime")||0,this.pi.currentTime)},e.duration=function(t){return void 0===t?void 0!==this.pi.duration?this.pi.duration:NaN:((t=_(t))<0&&(t=1/0),t!==this.pi.duration&&(this.pi.duration=t,t===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),this.trigger("durationchange")),this)},e.remainingTime=function(){return this.duration()-this.currentTime()},e.buffered=function(){var t=this.Zi("buffered");return t&&t.length||(t=Ne(0,0)),t},e.bufferedPercent=function(){return Fe(this.buffered(),this.duration())},e.bufferedEnd=function(){var t=this.buffered(),i=this.duration(),s=t.end(t.length-1);return s>i&&(s=i),s},e.volume=function(t){var i;return void 0!==t?(i=w.max(0,w.min(1,_(t))),this.pi.volume=i,this.us("setVolume",i),this):(i=_(this.Zi("volume")),j(i)?1:i)},e.muted=function(t){return void 0!==t?(this.us("setMuted",t),this):this.Zi("muted")||!1},e.supportsFullScreen=function(){return this.Zi("supportsFullScreen")||!1},e.isFullscreen=function(t){return void 0!==t?(this.cs=!!t,this):!!this.cs},e.requestFullscreen=function(t){var i,s=Ve;return this.isFullscreen(!0),s.requestFullscreen?(me(Qi,s.fullscreenchange,b(this,(function t(i){this.isFullscreen(Qi[s.fullscreenElement]),!1===this.isFullscreen()&&ge(Qi,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.us("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange")),this},e.exitFullscreen=function(){var t=Ve;return this.isFullscreen(!1),t.requestFullscreen?Qi[t.exitFullscreen]():this.H.supportsFullScreen()?this.us("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange")),this},e.enterFullWindow=function(){this.isFullWindow=!0,this.docOrigOverflow=Qi.documentElement.style.overflow,me(Qi,"keydown",b(this,this.fullWindowOnEscKey)),Qi.documentElement.style.overflow="hidden",Cs(Qi.body,"vjs-full-window"),this.trigger("enterFullWindow")},e.fullWindowOnEscKey=function(t){27===t.keyCode&&(!0===this.isFullscreen()?this.exitFullscreen():this.exitFullWindow())},e.exitFullWindow=function(){this.isFullWindow=!1,ge(Qi,"keydown",this.fullWindowOnEscKey),Qi.documentElement.style.overflow=this.docOrigOverflow,Ps(Qi.body,"vjs-full-window"),this.trigger("exitFullWindow")},e.canPlayType=function(i){for(var s,e=0,n=this.h.techOrder;e<n.length;e++){var r=Te(n[e]),h=lh.getTech(r);if(h||(h=t.getComponent(r)),h){if(h.isSupported()&&(s=h.canPlayType(i)))return s}else as.error('The "'+r+'" tech is undefined. Skipped browser support check for that tech.')}return""},e.selectSource=function(i){var s,e=this,n=this.h.techOrder.map(Te).map((function(i){return[i,lh.getTech(i)||t.getComponent(i)]})).filter((function(t){var i=t[0],s=t[1];return s?s.isSupported():(as.error('The "'+i+'" tech is undefined. Skipped browser support check for that tech.'),!1)})),r=function(t,i,s){var e;return t.some((function(t){return i.some((function(i){if(e=s(t,i))return!0}))})),e},h=function(t,i){var s=t[0];if(t[1].canPlaySource(i,e.h[s.toLowerCase()]))return{source:i,tech:s}};return(this.h.sourceOrder?r(i,n,(s=h,function(t,i){return s(i,t)})):r(n,i,h))||!1},e.src=function(i){if(void 0===i)return this.Zi("src");var s=lh.getTech(this.Ei);return s||(s=t.getComponent(this.Ei)),Array.isArray(i)?this.ls(i):"string"==typeof i?this.src({src:i}):i instanceof g&&(i.type&&!s.canPlaySource(i,this.h[this.Ei.toLowerCase()])?this.ls([i]):(this.pi.sources=null,this.pi.source=i,this.pi.src=i.src,this.Ni=i.type||"",this.ready((function(){s.prototype.hasOwnProperty("setSource")?this.us("setSource",i):this.us("src",i.src),"auto"===this.h.preload&&this.load(),this.h.autoplay&&this.play()}),!0))),this},e.ls=function(t){var i=this.selectSource(t);i?(i.tech===this.Ei?this.src(i.source):this._t(i.tech,i.source),this.pi.sources=t):(this.setTimeout((function(){this.error({code:4,message:this.localize(this.h.notSupportedMessage)})}),0),this.triggerReady())},e.load=function(){return this.us("load"),this},e.reset=function(){return this._t(Te(this.h.techOrder[0]),null),this.us("reset"),this},e.currentSources=function(){var t=this.currentSource(),i=[];return 0!==g.keys(t).length&&i.push(t),this.pi.sources||i},e.currentSource=function(){var t={},i=this.currentSrc();return i&&(t.src=i),this.pi.source||t},e.currentSrc=function(){return this.Zi("currentSrc")||this.pi.src||""},e.currentType=function(){return this.Ni||""},e.preload=function(t){return void 0!==t?(this.us("setPreload",t),this.h.preload=t,this):this.Zi("preload")},e.autoplay=function(t){return void 0!==t?(this.us("setAutoplay",t),this.h.autoplay=t,this):this.Zi("autoplay",t)},e.playsinline=function(t){return void 0!==t?(this.us("setPlaysinline",t),this.h.playsinline=t,this):this.Zi("playsinline")},e.loop=function(t){return void 0!==t?(this.us("setLoop",t),this.h.loop=t,this):this.Zi("loop")},e.poster=function(t){return void 0===t?this.mi:(t||(t=""),this.mi=t,this.us("setPoster",t),this.trigger("posterchange"),this)},e.Yi=function(){!this.mi&&this.H&&this.H.poster&&(this.mi=this.H.poster()||"",this.trigger("posterchange"))},e.controls=function(t){return void 0!==t?(t=!!t,this.gi!==t&&(this.gi=t,this.usingNativeControls()&&this.us("setControls",t),t?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.ts()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.ss())),this):!!this.gi},e.usingNativeControls=function(t){return void 0!==t?(t=!!t,this.fs!==t&&(this.fs=t,t?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols"))),this):!!this.fs},e.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 He(t),this.addClass("vjs-error"),as.error("(CODE:"+this.lt.code+" "+He.errorTypes[this.lt.code]+")",this.lt.message,this.lt),this.trigger("error"),this)},e.reportUserActivity=function(t){this.ds=!0},e.userActive=function(t){return void 0!==t?((t=!!t)!==this.vs&&(this.vs=t,t?(this.ds=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),this.trigger("useractive")):(this.ds=!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.vs},e.wi=function(){var t,i,s,e,n=b(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.ds){this.ds=!1,this.userActive(!0),this.clearTimeout(e);var t=this.h.inactivityTimeout;t>0&&(e=this.setTimeout((function(){this.ds||this.userActive(!1)}),t))}}),250)},e.playbackRate=function(t){return void 0!==t?(this.us("setPlaybackRate",t),this):this.H&&this.H.featuresPlaybackRate?this.Zi("playbackRate"):1},e.isAudio=function(t){return void 0!==t?(this.ps=!!t,this):!!this.ps},e.videoTracks=function(){return this.H?this.H.videoTracks():(this.rt=this.rt||new oh,this.rt)},e.audioTracks=function(){return this.H?this.H.audioTracks():(this.ht=this.ht||new uh,this.ht)},e.textTracks=function(){if(this.H)return this.H.textTracks()},e.remoteTextTracks=function(){if(this.H)return this.H.remoteTextTracks()},e.remoteTextTrackEls=function(){if(this.H)return this.H.remoteTextTrackEls()},e.addTextTrack=function(t,i,s){if(this.H)return this.H.addTextTrack(t,i,s)},e.addRemoteTextTrack=function(t,i){if(this.H)return this.H.addRemoteTextTrack(t,i)},e.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)},e.getVideoPlaybackQuality=function(){return this.Zi("getVideoPlaybackQuality")},e.videoWidth=function(){return this.H&&this.H.videoWidth&&this.H.videoWidth()||0},e.videoHeight=function(){return this.H&&this.H.videoHeight&&this.H.videoHeight()||0},e.language=function(t){return void 0===t?this.gs:(this.gs!==String(t).toLowerCase()&&(this.gs=String(t).toLowerCase(),void 0!==this.v&&this.trigger("languagechange")),this)},e.languages=function(){return Ce(s.prototype.h.languages,this.vi)},e.toJSON=function(){var t=Ce(this.h),i=t.tracks;t.tracks=[];for(var s=0;s<i.length;s++){var e=i[s];(e=Ce(e)).player=void 0,t.tracks[s]=e}return t},e.createModal=function(t,i){var s=this;(i=i||{}).content=t||"";var e=new Je(this,i);return this.addChild(e),e.on("dispose",(function(){s.removeChild(e)})),e.open()},s.getTagSettings=function(t){var i={sources:[],tracks:[]},s=Is(t),e=s["data-setup"];if(Ts(t,"vjs-fluid")&&(s.fluid=!0),null!==e){var n=ze(e||"{}"),r=n[0],h=n[1];r&&as.error(r),ns(s,h)}if(ns(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(Is(c)):"track"===l&&i.tracks.push(Is(c))}return i},e.bi=function(){var t=Qi.createElement("i");return!("flexBasis"in t.style||"webkitFlexBasis"in t.style||"mozFlexBasis"in t.style||"msFlexBasis"in t.style||"msFlexOrder"in t.style)},s}(t);$o.players={};var Ro=Ji.navigator;$o.prototype.h={techOrder:["html5","flash"],html5:{},flash:{},defaultVolume:0,inactivityTimeout:2e3,playbackRates:[],children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","controlBar","errorDisplay","textTrackSettings"],language:Ro&&(Ro.languages&&Ro.languages[0]||Ro.userLanguage||Ro.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",fullscreenOptions:{navigationUI:"hide"}},["ended","seeking","seekable","networkState","readyState"].forEach((function(t){$o.prototype[t]=function(){return this.Zi(t)}})),Bo.forEach((function(t){$o.prototype["handleTech"+Te(t)+"_"]=function(){return this.trigger(t)}})),t.registerComponent("Player",$o);var Oo,Vo,Uo=function(t){function i(s){var e;void 0===s&&(s={});var n=Ce(s,{kind:Ke[s.kind]||""}),r=e=t.call(this,n)||this,h=!1;if(ne)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||Ae(e)}return Ie(i,t),i}(sn),Lo=function(t){function i(s){var e;void 0===s&&(s={});var n=Ce(s,{kind:Ye[s.kind]||""}),r=e=t.call(this,n)||this,h=!1;if(ne)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||Ae(e)}return Ie(i,t),i}(sn);function Ho(i,s,e){var n;if("string"==typeof i){if(0===i.indexOf("#")&&(i=i.slice(1)),Ho.getPlayers()[i])return s&&as.warn('Player "'+i+'" is already initialised. Options will not be applied.'),e&&Ho.getPlayers()[i].ready(e),Ho.getPlayers()[i];n=function(t){return 0===t.indexOf("#")&&(t=t.slice(1)),Qi.getElementById(t)}(i)}else n=i;if(!n||!n.nodeName)throw new p("The element or ID supplied is not valid. (videojs)");if(n.player||$o.players[n.playerId])return n.player||$o.players[n.playerId];s=s||{},Ho.hooks("beforesetup").forEach((function(t){var i=t(n,Ce(s));rs(i)&&!Array.isArray(i)?s=Ce(s,i):as.error("please return an object in beforesetup hooks")}));var r=new(t.getComponent("Player"))(n,s,e);return Ho.hooks("setup").forEach((function(t){return t(r)})),r}"undefined"==typeof HTMLVideoElement&&ps()&&(Qi.createElement("video"),Qi.createElement("audio"),Qi.createElement("track")),Ho.ys={},Ho.hooks=function(t,i){return Ho.ys[t]=Ho.ys[t]||[],i&&(Ho.ys[t]=Ho.ys[t].concat(i)),Ho.ys[t]},Ho.hook=function(t,i){Ho.hooks(t,i)},Ho.removeHook=function(t,i){var s=Ho.hooks(t).indexOf(i);return!(s<=-1)&&(Ho.ys[t]=Ho.ys[t].slice(),Ho.ys[t].splice(s,1),!0)},!0!==Ji.VIDEOJS_NO_DYNAMIC_STYLE&&ps()&&((Oo=Vs(".vjs-styles-defaults"))||(Oo=xe("vjs-styles-defaults"),(Vo=Vs("head"))&&Vo.insertBefore(Oo,Vo.firstChild),Se(Oo,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid {\n padding-top: 56.25%\n }\n "))),je(1,Ho),Ho.VERSION="5.20.6-opentelly.14",Ho.options=$o.prototype.h,Ho.getPlayers=function(){return $o.players},Ho.players=$o.players,Ho.getComponent=t.getComponent,Ho.registerComponent=function(i,s){lh.isTech(s)&&as.warn("The "+i+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),t.registerComponent.call(t,i,s)},Ho.getTech=lh.getTech,Ho.registerTech=lh.registerTech,Ho.browser=ce,Ho.TOUCH_ENABLED=ae,Ho.extend=function(t,i){void 0===i&&(i={});var s=function(){t.apply(this,arguments)},e={};for(var n in rs(i)?("function"==typeof i.init&&(as.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.bs=i)}(s,t),e)e.hasOwnProperty(n)&&(s.prototype[n]=e[n]);return s},Ho.mergeOptions=Ce,Ho.bind=b,Ho.plugin=function(t,i){$o.prototype[t]=i},Ho.addLanguage=function(t,i){var s;return t=(""+t).toLowerCase(),Ho.options.languages=Ce(Ho.options.languages,((s={})[t]=i,s)),Ho.options.languages[t]},Ho.log=as,Ho.createTimeRange=Ho.createTimeRanges=Ne,Ho.formatTime=Sh,Ho.parseUrl=en,Ho.isCrossOrigin=nn,Ho.EventTarget=Pe,Ho.on=me,Ho.one=be,Ho.off=ge,Ho.trigger=ye,Ho.xhr=Jr,Ho.TextTrack=th,Ho.AudioTrack=Uo,Ho.VideoTrack=Lo,Ho.isEl=ms,Ho.isTextNode=Bs,Ho.createEl=ys,Ho.hasClass=Ts,Ho.addClass=Cs,Ho.removeClass=Ps,Ho.toggleClass=As,Ho.setAttributes=Ms,Ho.getAttributes=Is,Ho.emptyEl=$s,Ho.appendContent=Rs,Ho.insertContent=Os,Ho.computedStyle=Eh;var zo=10;function Wo(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 qo(t){return t.scrubbing()?t.getCache().currentTime:t.currentTime()}function Go(t){const i=Qo(t);return Wo(t)?i.end(i.length-1):i.start(0)}function Xo(t){return Qo(t).start(0)}function Jo(t){const i=Qo(t);return i.end(i.length-1)-i.start(0)}function Qo(t){const i=t.seekable;if(i&&i.length)return i;let s=t.duration;return s=isFinite(s)?s:0,new Vi([0,s]).ws()}function Yo(t,i){void 0===i&&(i=t);let 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=+r>0||o>0?r+":":"",n=((r||h>=10)&&+n<10?"0"+n:n)+":",e=+e<10?"0"+e:e,s+r+n+e}function Ko(t){return class extends t{get ks(){var t;return null!=(t=this._s)?t:this._s=Zo(this.player())}dispose(){this._s=void 0,super.dispose()}constructor(...t){super(...t),this._s=void 0}}}function Zo(t){return t.tech({IWillNotUseThisInPlugins:!0}).theoplayer()}function ta(t){const i=Zo(t),s=()=>{const s=qo(t);t.toggleClass("theo-at-live",function(t,i){if(Wo(t)){let s=t.seekable;return 0===s.length||s.end(s.length-1)-i<zo}return!1}(i,s)),t.toggleClass("vjs-live",Wo(i)),t.toggleClass("theo-dvr",function(t){var i;return"dvr"===Ei(t.duration,t.seekable,null==(i=t.source)?void 0:i.streamType)}(i))};t.on("emptied",s),t.on("timeupdate",s),t.on("durationchange",s)}var ia="theo-ad-playing",sa="theo-dai-ad-playing";function ea(t,i,s){t.toggleClass(ia,i),t.toggleClass(sa,i&&s)}function na(){this.userActive(!1)}var ra,ha,oa=class{constructor(t,i){this.type=t.type,this.target=i,this.playerEvent=t}};!function(t){t.js="unavailable",t.xs="available",t.Ss="presenting"}(ra||(ra={})),function(t){t.LOADED="DAILoaded",t.AD_BREAK_STARTED="DAIAdBreakStarted",t.AD_BREAK_ENDED="DAIAdBreakEnded",t.AD_PERIOD_STARTED="DAIAdPeriodStarted",t.AD_PERIOD_ENDED="DAIAdPeriodEnded",t.AD_PROGRESS="DAIAdProgress",t.CUEPOINTS_CHANGED="DAICuePointsChanged",t.CLICK="DAIClick",t.ERROR="DAIError",t.STARTED="DAIStarted",t.FIRST_QUARTILE="DAIFirstQuartile",t.MIDPOINT="DAIMidpoint",t.STREAM_INITIALIZED="DAIStreamInitialized",t.THIRD_QUARTILE="DAIThirdQuartile",t.COMPLETE="DAIComplete"}(ha||(ha={}));var aa=["loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","volumechange","resize"],ua=Ho.getTech("Tech"),ca=Ho.getTech("Html5"),la=class extends ua{Ts(){var t;for(const t of aa)this.ks.addEventListener(t,this.Cs);this.ks.addEventListener("error",this.Ps),this.ks.addEventListener("contentprotectionerror",this.Ps),this.ks.addEventListener("sourcechange",this.As),this.ks.addEventListener("loadstart",this.Ms),null==(t=this.ks.presentation)||t.addEventListener("presentationmodechange",this.Is),this.ks.textTracks.addEventListener("addtrack",this.Es),this.ks.textTracks.addEventListener("removetrack",this.Ds),this.ks.textTracks.addEventListener("change",this.Ns),this.ks.audioTracks.addEventListener("addtrack",this.Fs),this.ks.audioTracks.addEventListener("removetrack",this.Bs),this.ks.audioTracks.addEventListener("change",this.$s)}Rs(){var t;for(const t of aa)this.ks.removeEventListener(t,this.Cs);this.ks.removeEventListener("error",this.Ps),this.ks.removeEventListener("contentprotectionerror",this.Ps),this.ks.removeEventListener("sourcechange",this.As),this.ks.removeEventListener("loadstart",this.Ms),null==(t=this.ks.presentation)||t.removeEventListener("presentationmodechange",this.Is),this.ks.textTracks.removeEventListener("addtrack",this.Es),this.ks.textTracks.removeEventListener("removetrack",this.Ds),this.ks.textTracks.removeEventListener("change",this.Ns),this.ks.audioTracks.removeEventListener("addtrack",this.Fs),this.ks.audioTracks.removeEventListener("removetrack",this.Bs),this.ks.audioTracks.removeEventListener("change",this.$s)}Os(t){this.trigger(new oa(t,this))}createEl(){let t=this.h,i=t.player;if(!i)throw new v(this.localize('Missing required tech option "player"'));let s=i.element;return Ho.setAttributes(s,{id:t.techId}),s}theoplayer(){return this.ks}addTextTrack(t,i,s){return super.addTextTrack(t,i,s)}buffered(){return this.ks.buffered}played(){return this.ks.played}reset(){this.ks.stop()}play(){this.ks.play()}pause(){this.ks.pause()}paused(){return this.ks.paused}currentTime(){return this.ks.currentTime}setCurrentTime(t){this.ks.currentTime=t}duration(){return this.ks.duration}volume(){return this.ks.volume}setVolume(t){this.ks.volume=t}muted(){return this.ks.muted}setMuted(t){this.ks.muted=t}src(t){if(void 0!==t)this.setSrc(t);else{if(this.ks.src)return this.ks.src;if(this.ks.source){if(!N(this.ks.source.ads))return this.ks.source.ads[0].sources;if(function(t){if(t.sources)if(Bt(t.sources)){for(const i of t.sources)if(!Lt(i)&&"verizon-media"===i.integration)return!0}else if(!Lt(t.sources))return"verizon-media"===t.sources.integration;return!1}(this.ks.source))return"This source is managed by the Verizon Media integration extension.";if(function(t){if(t.sources)if(Bt(t.sources)){for(const i of t.sources)if(ni(i))return!0}else if(Ot(t.sources))return ni(t.sources);return!1}(this.ks.source))return"This source is managed by the DAI integration extension."}}}setSrc(t){return this.setSource({src:t})}setSource(t){this.lt=null,this.trigger("error")}currentSrc(){return this.ks.src}load(){this.setPreload("auto")}preload(){return this.ks.preload}setPreload(t){this.ks.preload=t}autoplay(){return this.ks.autoplay}setAutoplay(t){this.ks.autoplay=!!t}seeking(){return this.ks.seeking}seekable(){return this.ks.seekable}ended(){return this.ks.ended}playbackRate(){return this.ks.playbackRate}setPlaybackRate(t){this.ks.playbackRate=t}readyState(){return this.ks.readyState}networkState(){return 0}controls(){return!1}videoHeight(){return this.ks.videoHeight}videoWidth(){return this.ks.videoWidth}supportsFullScreen(){return this.ks.presentation.supportsMode(qi.FULLSCREEN)}enterFullScreen(){this.ks.presentation.requestMode(qi.FULLSCREEN)}exitFullScreen(){this.ks.presentation.requestMode(qi.INLINE)}Vs(){let t=this.ks.ads;if(t&&t.playing)return!0;let i=this.ks.vr;return!(!i||i.state===ra.js)}initTextTrackListeners(){return this.on("touchend",(t=>{this.Vs()&&(t.preventDefault=()=>{})})),super.initTextTrackListeners()}Zt(){if(!this.src())return;const t=this.readyState();if(0===t){let t=!1,i=()=>{t=!0};this.on("loadstart",i);let 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")}))}let 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.Rs(),this.ks=null,super.dispose()}static isSupported(){return!0}static canPlayType(){return"maybe"}static canPlaySource(t){return"maybe"}get featuresVolumeControl(){return Mi}constructor(t={},i){super(t,i),this.Cs=t=>this.Os(t),this.Us=!1,this.As=()=>{void 0===this.ks.errorObject&&(this.Os(new oi(this.ks.currentTime,this.ks.readyState)),this.Os(new vt),this.Os(new mi(this.ks.duration)))},this.Ms=()=>{this.Os(new It(this.ks.currentTime))},this.Es=t=>{this.textTracks().tt(t.track)},this.Fs=t=>{this.audioTracks().tt(t.track)},this.Ds=t=>{this.textTracks().it(t.track)},this.Bs=t=>{this.audioTracks().it(t.track)},this.Ns=()=>{let t=this.textTracks();t.trigger({type:"change",target:t,currentTarget:t,srcElement:t})},this.$s=()=>{let t=this.audioTracks();t.trigger({type:"change",target:t,currentTarget:t,srcElement:t})},this.Is=()=>{if(!this.supportsFullScreen())return;let t=this.Us,i=this.ks.presentation.currentMode===qi.FULLSCREEN;t!==i&&(this.Us=i,this.trigger("fullscreenchange",{isFullscreen:i,nativeIOSFullscreen:!0}))},this.Ps=()=>{const t=this.ks.errorObject,i=t&&ot(t.code)||-1,s=t&&t.message||"An unknown error occurred.";this.error({code:i,message:this.localize(s)})},this.ks=this.h.player,this.Ts();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()}};la.prototype.featuresFullscreenResize=ca.prototype.featuresFullscreenResize,la.prototype.featuresPlaybackRate=ca.prototype.featuresPlaybackRate,la.prototype.featuresProgressEvents=!0,la.prototype.featuresTimeupdateEvents=!0,la.prototype.featuresNativeTextTracks=!0,Ho.registerTech("THEOplayer",la);var fa=class{constructor(t){this.Ls=t=>{fi(this.Hs,"theo-mobile-button-hover"),t.stopImmediatePropagation()},this.zs=t=>{pi(this.Hs,"theo-mobile-button-hover")},this.Ws=t=>{this.Hs.blur()},this.Hs=t,t.addEventListener("touchstart",this.Ls),t.addEventListener("touchend",this.zs),t.addEventListener("focusin",this.Ws)}},da=Ho.getComponent("Menu"),va=class extends(Ko(da)){get qs(){return this.player().el()}Gs(){fi(this.qs,"theo-menu-opened")}Xs(){pi(this.qs,"theo-menu-opened")}constructor(t,i){super(t,i)}},pa=Ho.getComponent("MenuItem"),ma=class extends(Ko(pa)){get parentMenu(){return this.Js}buildCSSClass(){return"theo-menu-item vjs-menu-item"}createEl(){let t=super.createEl("li",{className:this.buildCSSClass(),tabIndex:0},{"aria-live":"off","aria-label":""});return t.innerHTML="",t}handleClick(t){this.Qs||(this.parentMenu.Ys(this),"tap"!==t.type&&"keydown"!==t.type||(this.Qs=!0,this.trigger("click"),this.Qs=!1))}dispose(){Ct.Zs.Ks&&(this.el().removeEventListener("touchstart",this.Ls),this.el().removeEventListener("touchend",this.zs)),super.dispose()}constructor(t,i,s){super(t,Di({selectable:!0},i)),this.Qs=!1,this.Ls=t=>{fi(this.el(),"theo-mobile-menu-item-hover"),t.stopImmediatePropagation()},this.zs=t=>{pi(this.el(),"theo-mobile-menu-item-hover")},this.Js=s,Ct.Zs.Ks&&(this.el().addEventListener("touchstart",this.Ls),this.el().addEventListener("touchend",this.zs))}},ga=Ho.getComponent("ClickableComponent"),ya=class extends ga{get parentMenu(){return this.Js}get te(){return this.ie}set te(t){this.ie=t,this.el().setAttribute("tabindex",this.te?"0":"-1"),this.se()}buildCSSClass(){return"theo-primary-background theo-menu-header"}createEl(){let t=super.createEl("div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-live":"off","aria-label":""});return t.innerHTML="",t}handleClick(t){!this.Qs&&this.te&&(this.Js.ee(),"tap"===t.type&&(this.Qs=!0,this.trigger("click"),this.Qs=!1))}se(){this.te?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.Qs=!1,this.ie=!1,this.Js=s,this.on(t,"languagechange",this.se)}},ba=class extends va{get menuHeader(){return this.ne}get menuItems(){return this.children()}addMenuItem(t){t=Di({playerOptions:this.h.playerOptions},t);let i=new ma(this.player(),t,this);return this.addChild(i,void 0,t.index),this.trigger("menuchange"),i}addSubMenuItem(t){t=Di({playerOptions:this.h.playerOptions},t);let i=this.re(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"}Gs(){super.Gs(),a.removeEventListener("resize",this.he),a.addEventListener("resize",this.he),this.show()}oe(){let t=this.ae();if(!t)return;let i=t.getClientRects();Ct.Zs.Ks?this.ue(t,i):this.ce(t,i)}ae(){var t;return null!=(t=this.contentEl().parentElement)?t:void 0}ce(t,i){}ue(t,i){}Xs(){a.removeEventListener("resize",this.he),super.Xs(),this.hide(),Ct.Zs.Ks&&(this.el().removeAttribute("style"),this.contentEl().removeAttribute("style"))}createEl(){let t=super.createEl();t.className=this.buildCSSClass();let i=this.contentEl();fi(i,"theo-menu-content");let s=new ya(this.player(),this.h,this);return i.parentNode.insertBefore(s.el(),i),this.ne=s,t}Ys(t){}show(){return this.oe(),super.show()}dispose(){this.ne&&this.ne.dispose(),super.dispose()}constructor(t,i){super(t,i),this.he=()=>this.oe(),this.le=this.player().el(),this.hide(),this.on("menuchange",this.oe)}},wa=class extends ba{get fe(){return this.de}set fe(t){this.de&&this.de.ve(this),this.de=t,t&&t.pe(this)}me(t){this.fe.ge(t,"replace")}ye(t){t.fe.ge(this,"restore")}be(){pi(this.we,"vjs-hidden"),this.we.style.opacity="1",super.show()}ke(){fi(this.we,"vjs-hidden")}Gs(){this.fe&&this.fe.Gs(),super.Gs()}Xs(){this.fe&&this.fe.Xs(),super.Xs(),fi(this.we,"vjs-hidden")}ae(){if(this.fe&&this.fe._e)return this.fe._e.we}ce(t,i){if(i.length>0){let t=i[0].height,s=i[0].width;this.de.je.style.height=t+"px",this.de.je.style.width=s+"px"}super.ce(t,i)}constructor(t,i){super(t,i)}},ka=class{get je(){return this.Hs}get _e(){return this.xe}pe(t){t.ke(),this.Hs.appendChild(t.we)}ve(t){this.Hs.removeChild(t.we)}ge(t,i){if(t==this.xe)return;let s=this.xe;if(this.xe=t,this.xe.be(),this._e.focus(),Ct.Zs.Ks)s.ke();else{const t="translateX(100%)",e="translateX(-100%)",n=X("transform");s.we.style.opacity="0",s.we.style[n]="replace"===i?e:t,this.xe.we.style.opacity="1",this.xe.we.style[n]="",u((()=>{s.ke(),s.we.style[n]=""}),300)}}Gs(){this.Se(),this.xe.be(),this.Te()}Xs(){this.Se(),this.xe.ke(),this.Ce.ke(),this.xe=this.Ce,this.Te()}Te(){z((()=>{pi(this.Hs,"theo-no-transition"),pi(this.xe.we,"theo-no-transition")}))}Se(){fi(this.Hs,"theo-no-transition"),fi(this.xe.we,"theo-no-transition")}constructor(t){this.Ce=this.xe=t,this.Hs=h.createElement("div"),this.Hs.className="theo-tertiary-background theo-menu-animation-container",this.Hs.appendChild(this.Ce.we),this.le=this.xe.player().el()}},_a=class extends wa{get we(){return this.el()}get parentMenu(){return this.Pe}re(t,i){let s=new ja(t,i,this);return s.subMenu.fe=this.fe,s}ee(){this.Ae()}Ys(t){super.Ys(t),this.Ae()}Ae(){this.parentMenu.ye(this)}buildCSSClass(){return"theo-submenu "+(this.Me?"":"theo-leaf-submenu ")+"theo-menu-content theo-menu-content-animatable "+super.buildCSSClass()}addSubMenuItem(t){this.Me=!0;let i=super.addSubMenuItem(t);return this.removeClass("theo-leaf-submenu"),i}constructor(t,i,s){super(t,i),this.Me=!1,this.Pe=s,this.menuHeader.te=!0}},ja=class extends ma{get subMenu(){return this.Ie}handleClick(t){this.parentMenu.me(this.subMenu)}constructor(t,i,s){super(t,Di({selectable:!1},i),s),this.Ie=new _a(t,i,s)}},xa=class extends wa{get menuButton(){return this.Ee}createEl(){let t=Ho.createEl("div",{className:this.buildCSSClass()});return this.De=super.createEl(),this.De.className=super.buildCSSClass(),fi(this.De,"theo-menu-content-animatable"),t.appendChild(this.De),this.fe=new ka(this),t.appendChild(this.fe.je),t}buildCSSClass(){return"theo-menu-animatable "+super.buildCSSClass()}re(t,i){let s=new ja(t,i,this);return s.subMenu.fe=this.fe,s}ce(t,i){super.ce(t,i);let s=this.le.getClientRects(),e=s.length>0?s[0]:void 0,n=_(getComputedStyle(this.el()).fontSize);Et(this.el(),this.Ee.el(),e,n)}get we(){return this.De}ee(){this.Ee.closeMenu()}dispose(){this.Ne||(this.Ne=!0,super.dispose())}constructor(t,i,s){super(t,i),this.Ne=!1,this.Ee=s}},Sa=class{set Fe(t){this.Be.innerHTML=this.$e.localize(t),this.Re(),this.Oe(),ki(this.$e.el())}get Fe(){return this.Be.textContent||""}Ve(){this.$e.off("mouseover",this.Oe),this.$e.off("mouseout",this.Re),this.$e.off("dispose",this.Ue),hi(this.Be)}constructor(t,i){this.Oe=()=>{pi(this.Be,"vjs-hidden");let t=this.$e.player().contentEl().getClientRects(),i=t.length>0?t[0]:void 0,s=_(getComputedStyle(this.Be).fontSize);Et(this.Be,this.$e.el(),i,s)},this.Re=()=>{fi(this.Be,"vjs-hidden")},this.Ue=()=>this.Ve(),this.$e=t,ki(t.el()),xi(t.el()),this.Be=h.createElement("span"),this.Be.innerHTML=this.$e.localize(i),this.Be.className="theo-button-tooltip vjs-hidden",this.Be.setAttribute("aria-hidden","true"),this.$e.el().appendChild(this.Be),this.$e.on("mouseover",this.Oe),this.$e.on("mouseout",this.Re),this.$e.on("dispose",this.Ue)}},Ta=Ho.getComponent("Button"),Ca=class extends(Ko(Ta)){get Le(){const t=this.el().parentElement;return!!t&&null!==t.querySelector(".theo-mobile-menu-background")}get menu(){return this.He}isMenuOpen(){return this.ze}openMenu(){this.We&&!this.ze&&(this.He.Gs(),this.el().setAttribute("aria-expanded","true"),this.ze=!0,this.He.focus())}closeMenu(){this.We&&this.ze&&(this.He.Xs(),this.el().setAttribute("aria-expanded","false"),this.ze=!1)}set minimumMenuItems(t){this.qe=t,this.Ge()}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.ze?this.closeMenu():this.openMenu()}enable(){return this.We=!0,super.enable()}disable(){return this.closeMenu(),this.We=!1,super.disable()}se(){this.Be.Fe=this.controlText()}dispose(){this.player().removeChild(this.He),this.He.dispose(),this.Be.Ve(),this.ks.removeEventListener("seeking",this.Xe),super.dispose()}constructor(t,i){super(t,i),this.ze=!1,this.qe=1,this.We=!0,this.Je=t=>{let i=this.el().contains(t.target),s=this.He.el().contains(t.target),e=!1;var n;Ct.Zs.Ks&&this.Le&&(e=(null==(n=this.el().parentElement)?void 0:n.querySelector(".theo-mobile-menu-background"))===t.target);i||s||!this.ze||(e&&t.preventDefault(),this.closeMenu())},this.Qe=t=>{27===t.which&&(this.closeMenu(),this.focus())},this.Xe=()=>{this.ze&&this.closeMenu()},this.Ge=()=>{this.He.menuItems.length>=this.qe?this.show():(this.closeMenu(),this.hide())},this.He=new xa(t,i,this),this.player().getChild("controlBarMenuContainer").addChild(this.He),this.Be=new Sa(this,this.controlText()),this.el().setAttribute("aria-haspopup","true"),Ct.Zs.Ye?(this.on(h,"touchend",this.Je),new fa(this.el())):(this.on(h,"click",this.Je),this.on(h,"keydown",this.Qe),tt&&this.on(h,tt.Ke,this.closeMenu)),this.ks.addEventListener("seeking",this.Xe),this.on(this.He,"menuchange",this.Ge),this.on(t,"languagechange",this.se),this.Ge()}},Pa=Ho.getComponent("Component"),Aa=class extends(Ho.getComponent("ControlBar")){addMenuButton(t){t=Di({playerOptions:this.h.playerOptions},t);let i=new Ca(this.player(),t);return this.addChild(i),i}removeMenuButton(t){this.removeChild(t)}createEl(){let 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)}};Ho.registerComponent("THEOControlBarShadow",class extends Pa{createEl(){return super.createEl("div",{className:this.buildCSSClass()})}buildCSSClass(){return"theo-tertiary-color theo-control-bar-shadow"}});var Ma=Ho.getComponent("VolumeBar"),Ia=class extends Ma{handleFocus(t){super.handleFocus(t),this.Ze.addClass("focus-within")}handleBlur(t){super.handleBlur(t),this.Ze.removeClass("focus-within")}constructor(t,i){super(t,i),this.Ze=i.tn}},Ea=Ho.getComponent("VolumeControl"),Da=class extends Ea{constructor(t,i){super(t,i),this.sn=new Ia(t,{tn:this}),this.addChild(this.sn)}};Da.prototype.h=Di({},Ea.prototype.h,{children:[]}),Ho.registerComponent("VolumeControl",Da);var Na=class extends(Ko(Aa)){nn(){this.rn(this.hn())}an(){0===this.un&&(this.un=u(this.cn,100))}ln(t){"opacity"===t.propertyName&&(0!==this.un&&(c(this.un),this.un=0),this.rn(!0))}fn(t){"opacity"===t.propertyName&&(this.hn()||this.rn(!1))}hn(){return"0"!==a.getComputedStyle(this.el()).opacity}rn(t){this.dn!==t&&(this.dn=t,t?this.vn():this.ks.textTrackStyle.marginBottom=void 0)}vn(){const t=this.el().getBoundingClientRect().height;this.ks.textTrackStyle.marginBottom!==t&&(this.ks.textTrackStyle.marginBottom=t)}dispose(){c(this.un),this.un=0,this.mn.pn(q.gn,this.yn),this.mn.bn(),super.dispose()}constructor(t,i){super(t,i),this.dn=!1,this.un=0,this.cn=()=>{0!==this.un&&(this.un=0,this.rn(this.hn()))},this.yn=()=>{this.dn&&this.vn()},this.on(t,"ready",this.nn),this.on(t,"pause",this.nn),this.on(t,"useractive",this.nn),this.on(t,"firstplay",this.an),this.on(t,"play",this.an),this.on(t,"userinactive",this.an),this.on("transitionstart",this.ln),this.on("transitionend",this.fn),this.mn=new Q(this.el()),this.mn.wn(q.gn,this.yn),this.mn.kn(!0)}};Na.prototype.h=Di({},Aa.prototype.h,{children:["progressControl","playToggle","muteToggle","volumeControl","currentTimeDisplay","timeDivider","durationDisplay","liveDisplay","remainingTimeDisplay","customControlSpacer","activeQualityLabel","vrButton","descriptionsButton","subtitlesButton","chromecastButton","airplayButton","multiViewButton","audioTrackButton","SettingsButton","fullscreenToggle"]}),Ho.registerComponent("ControlBar",Na);var Fa=class extends Aa{buildCSSClass(){return"theo-top-controlbar "+super.buildCSSClass()}constructor(t,i){super(t,i),t.topControlBar=this}};Fa.prototype.h=Di({},Aa.prototype.h,{children:[]}),Ho.registerComponent("TopControlBar",Fa);var Ba=Ho.getComponent("CurrentTimeDisplay"),$a=class extends(Ko(Ba)){updateContent(){const t=qo(this.player()),i=this.ks,s=Xo(i),e=this.localize("Current Time"),n=Yo(w.max(0,t-s),Jo(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)}};Ho.registerComponent("CurrentTimeDisplay",$a);var Ra=Ho.getComponent("DurationDisplay"),Oa=class extends(Ko(Ra)){updateContent(){const t=this.ks,i=j(t.duration)?NaN:Jo(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=Yo(e);this.S.innerHTML='<span class="vjs-control-text">'+t+"</span> "+i}}dispose(){var t;null==(t=this.ks)||t.clip.removeEventListener("change",this._n),super.dispose()}constructor(t,i){var s;super(t,i),this._n=()=>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.ks)||s.clip.addEventListener("change",this._n)}};Ho.registerComponent("DurationDisplay",Oa);var Va=Ho.getComponent("Button"),Ua=class extends(Ko(Va)){buildCSSClass(){return"theo-live-control "+super.buildCSSClass()}createEl(){let t=super.createEl("button",{},{"aria-live":"off"});return this.jn=Ho.createEl("span",{className:"theo-live-control-indicator"}),t.insertBefore(this.jn,t.firstChild),t}createControlTextEl(t){let i=super.createControlTextEl(t);return Ho.removeClass(i,"vjs-control-text"),Ho.addClass(i,"theo-live-control-text"),i}handleClick(){var t;const i=this.ks;if(void 0!==(null==(t=i.hesp)?void 0:t.manifest))i.hesp.goLive();else{const t=this.player();t.currentTime(Go(i)),t.play()}}xn(){Wo(this.ks)?this.show():this.hide()}constructor(t,i){super(t,i),this.controlText("Live"),this.xn(),this.on(t,"emptied",this.xn),this.on(t,"durationchange",this.xn),Ct.Zs.Ye&&new fa(this.el())}};Ho.registerComponent("LiveDisplay",Ua);var La=Ho.getComponent("LoadingSpinner");Ho.registerComponent("LoadingSpinner",class extends La{buildCSSClass(){return"theo-secondary-color vjs-loading-spinner "+super.buildCSSClass()}createEl(){let t=super.createEl();t.className=this.buildCSSClass();let i=Ho.createEl("div",{className:"theo-loading-spinner-rotator"}),s=Ho.createEl("div",{className:"theo-loading-spinner-circle-left"}),e=Ho.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)}});var Ha=Ho.getComponent("LoadProgressBar"),za=class extends(Ko(Ha)){update(){let t=this.ks,i=Vi.Sn(Qo(t)),s=i.Tn(0),e=Vi.Sn(t.buffered).Cn(i),n=i.Pn(0)-s,r=e.U&&e.Pn(e.U-1)||0;r=w.max(0,r-s);let o=this.el(),a=this.An;o.style.width=Wa(r,n);for(let t=0;t<e.U;t++){let i=e.Tn(t),n=e.Pn(t),u=a[t];u||(u=h.createElement("div"),a.push(u),o.appendChild(u)),u.style.left=Wa(i-s,r),u.style.width=Wa(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.An=[],this.on(t,"emptied",this.update)}};function Wa(t,i){let s=t/i||0;return 100*(s>=1?1:s)+"%"}Ho.registerComponent("LoadProgressBar",za);var qa=Ho.getComponent("MouseTimeDisplay"),Ga=class extends(Ko(qa)){handleMouseMove(t){let i=t,s=this.ks,e=Xo(s)+this.calculateDistance(i)*Jo(s),n=i.pageX-At(this.el().parentNode).left;this.update(e,n+"px")}handleTouchMove(t){let i=t,s=this.ks,e=Xo(s)+this.calculateDistance(i)*Jo(s),n=i.touches[0].pageX-At(this.el().parentNode).left;this.update(e,n+"px")}createEl(){let t=super.createEl();return this.Mn=Ho.createEl("span",{className:"theo-time-tooltip-text"}),t}update(t,i){this.In=t;let s=this.En(t);this.el().style.left=i,this.el().setAttribute("data-current-time",s),this.keepTooltipsInside&&(Ft(this.Mn,s),this.Dn())}Dn(){if(this.keepTooltipsInside&&this.tooltip.offsetParent){let t=this.player().contentEl(),i=t.getClientRects(),s=i.length>0?i[0]:void 0,e=_(getComputedStyle(t).fontSize);Et(this.tooltip,this.el(),s,e)}}En(t){const i=this.ks,s=t-Go(i);return Yo(Wo(i)?w.min(s,0):s,Jo(i))}dispose(){var t;this.ks.removeEventListener("dimensionchange",this.Nn),null==(t=this.ks.presentation)||t.removeEventListener("presentationmodechange",this.Nn),super.dispose()}constructor(t,i){var s;(super(t,i),this.In=NaN,this.Nn=()=>{let t=qo(this.player());const i=this.ks;let s=(t-Xo(i))/Jo(i)||0;s=Yt(s,0,1),this.update(t,100*s+"%")},this.keepTooltipsInside&&(Ho.addClass(this.tooltip,"theo-secondary-color"),this.tooltip.appendChild(this.Mn)),this.on(t,"ready",(()=>{this.on(t.controlBar.progressControl,"mouseenter",this.handleMouseMove)})),Mt.Ks)&&(this.on(t,"firstplay",this.Nn),this.on(t,"play",this.Nn),this.on(t,"seeking",this.Nn),this.on(t,"seeked",this.Nn),this.on(t,"timeupdate",this.Nn),this.ks.addEventListener("dimensionchange",this.Nn),null==(s=this.ks.presentation)||s.addEventListener("presentationmodechange",this.Nn),this.on(t,"ready",(()=>{this.on(t.controlBar.progressControl,"touchstart",this.handleTouchMove),this.on(t.controlBar.progressControl,"touchmove",Xt((t=>this.handleTouchMove(t)),25)),this.Nn()})))}};Ho.registerComponent("MouseTimeDisplay",Ga);var Xa=Ho.getComponent("PlayProgressBar"),Ja=class extends(Ko(Xa)){updateDataAttr(){let t=qo(this.player());this.el().setAttribute("data-current-time",this.En(t))}En(t){let i=this.ks;return Yo(t-Go(i),Jo(i))}createEl(){let 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)}};Ho.registerComponent("PlayProgressBar",Ja);var Qa=Ho.getComponent("RemainingTimeDisplay"),Ya=class extends(Ko(Qa)){updateContent(){const t=this.ks,i=Jo(t);if(i){const s=Qo(t).end(0),e=this.localize("Remaining Time"),n=Yo(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)}};Ho.registerComponent("RemainingTimeDisplay",Ya);var Ka=class{get ks(){return this._s||(this._s=this.Fn.tech({IWillNotUseThisInPlugins:!0}).theoplayer()),this._s}Bn(t){if(t.kind!==pt.$n)return;if(0===this.ks.seekable.length)return;this.Rn=t;const i=t.cues.slice();this.Vn.On(i);for(let t=0;t<i.length;t++){let s=i[t],e=i[t+1],n=!e||s.endTime!==e.startTime,r=new Za(s,this.ks,n);this.Un.push(r),this.Ln.appendChild(r.je)}t.addEventListener("cuechange",this.Hn),this.Hn()}zn(){this.ks.addEventListener("loadedmetadata",this.Wn),this.ks.addEventListener("loadeddata",this.Wn),this.ks.addEventListener("sourcechange",this.Wn),this.ks.textTracks.addEventListener("addtrack",this.qn),this.ks.textTracks.addEventListener("removetrack",this.Gn),this.ks.textTracks.addEventListener("change",this.Wn)}Xn(){this.ks.removeEventListener("loadedmetadata",this.Wn),this.ks.removeEventListener("loadeddata",this.Wn),this.ks.removeEventListener("sourcechange",this.Wn),this.ks.textTracks.removeEventListener("addtrack",this.qn),this.ks.textTracks.removeEventListener("removetrack",this.Gn),this.ks.textTracks.removeEventListener("change",this.Wn)}Jn(){if(!(this.ks.readyState<St.Qn))for(let t of this.ks.textTracks)if(t.kind===pt.$n&&t.mode===lt.Yn&&t.cues.length>0&&t.readyState!==ut.ERROR)return t}Kn(t){this.Vn.Zn(t)}tr(){this.Vn.be()}ir(){this.Vn.ke()}sr(){for(let t of this.Un)t.Ve();this.Vn.sr(),this.Un=[],this.er=void 0,this.Rn&&this.Rn.removeEventListener("cuechange",this.Hn),this.Rn=void 0}Ve(){this.Xn(),this.nr.removeEventListener("mousemove",this.rr),this.nr.removeEventListener("mouseenter",this.hr),this.nr.removeEventListener("mouseleave",this.ar),this.sr(),this.Vn.Ve(),this._s=void 0}constructor(t,i){this.Fn=i,this.Un=[],this._s=void 0,this.qn=t=>{let i=t.track;i.kind===pt.$n&&(i.addEventListener("addcue",this.Wn),i.addEventListener("removecue",this.Wn),i.addEventListener("readystatechange",this.Wn)),this.Wn()},this.Gn=t=>{let i=t.track;i.kind===pt.$n&&(i.removeEventListener("addcue",this.Wn),i.removeEventListener("removecue",this.Wn),i.removeEventListener("readystatechange",this.Wn)),this.Wn()},this.rr=t=>{let i=this.ks,s=function(t,i){let s,e,n=At(t),r=t.offsetWidth,h=t.offsetHeight,o=n.top,a=n.left;!function(t){return void 0!==t.changedTouches}(i)?(e=i.pageX,s=i.pageY):(e=i.changedTouches[0].pageX,s=i.changedTouches[0].pageY);let u=Yt((o-s+h)/h,0,1),c=Yt((e-a)/r,0,1);return{x:c,y:u}}(this.Ln,t),e=Xo(i)+s.x*Jo(i);e===i.duration&&(e-=.1),this.Kn(e)},this.ar=()=>{this.Vn.ke()},this.hr=()=>{this.Vn.be()},this.Wn=()=>{let t=this.Jn();t!==this.Rn&&(this.sr(),t&&this.Bn(t))},this.Hn=()=>{var t,i,s;const e=null==(i=this.Rn)||null==(t=i.activeCues)?void 0:t[0],n=Hi(this.Un,(t=>t.ur===e));n!==this.er&&(null==(s=this.er)||s.cr(),this.er=n,null==n||n.lr())},this.nr=t,this.Vn=new tu,this.Fn.contentEl().appendChild(this.Vn.je),this.Ln=h.createElement("div"),fi(this.Ln,"theoplayer-chapterbar"),this.nr.appendChild(this.Ln),this.nr.addEventListener("mousemove",this.rr),this.nr.addEventListener("mouseenter",this.hr),this.nr.addEventListener("mouseleave",this.ar),this.zn()}},Za=class{get je(){return this.Hs}lr(){fi(this.Hs,"theoplayer-chapter-indicator-active")}cr(){pi(this.Hs,"theoplayer-chapter-indicator-active")}dr(t,i){let s=t.seekable.start(0),e=t.seekable.end(t.seekable.length-1)-s,n=this.ur.startTime,r=this.ur.endTime-n,o=h.createElement("div");fi(o,"theoplayer-chapter-indicator");let a=h.createElement("div");fi(a,"theoplayer-chapter-indicator-highlight"),o.appendChild(a),i&&fi(o,"theoplayer-chapter-indicator-discontinuous");let u=w.min(n/e*100,100),c=100-u,l=w.min(r/e*100,c);return o.style.width=l+"%",o.style.left=u+"%",o}Ve(){hi(this.Hs)}constructor(t,i,s){this.ur=t,this.Hs=this.dr(i,s)}},tu=class{ke(){this.pr--,0===this.pr&&pi(this.je,"theoplayer-chapter-hovering")}On(t){this.mr=t||[],this.mr.length>0&&(this.je.style.display="")}gr(t){Ft(this.yr,t.content)}sr(){this.mr=[],Ft(this.yr,""),this.je.style.display="none"}be(){this.pr++,this.pr>0&&fi(this.je,"theoplayer-chapter-hovering")}Zn(t){for(let i of this.mr)if(iu(i,t)){this.gr(i);break}}Ve(){hi(this.je)}constructor(){this.mr=[],this.pr=0,this.je=h.createElement("div"),fi(this.je,"theoplayer-chaptertitle"),this.je.style.display="none",this.yr=h.createElement("p"),this.je.appendChild(this.yr)}};function iu(t,i){return new Vi([t.startTime,t.endTime]).br(i)}var su=Ho.getComponent("SeekBar"),eu=class extends(Ko(su)){updateAriaAttributes(t){const i=qo(this.player()),s=this.ks;t.setAttribute("aria-valuenow",(100*this.wr(i)).toFixed(2)),t.setAttribute("aria-valuetext",Yo(i-Go(s),Jo(s)))}getPercent(){return this.wr(this.player().currentTime())}handleMouseMove(t){if(this.ks&&this.ks.ads&&this.ks.ads.playing)return;const i=this.ks;let s=Xo(i)+this.calculateDistance(t)*Jo(i);s>=i.duration&&(s=i.duration-.1),this.Ln.Kn(s),this.player().currentTime(s)}handleMouseDown(t){this.playingStates.push(!this.player().paused()),this.Ln.tr(),super.handleMouseDown(t)}handleMouseUp(t){this.videoWasPlaying=Boolean(this.playingStates.pop()),this.Ln.ir(),super.handleMouseUp(t)}wr(t){let i=this.ks,s=(t-Xo(i))/Jo(i);return Yt(s,0,1)}dispose(){this.Ln.Ve(),A(this.playingStates)}constructor(t,i){super(t,i),this.playingStates=[],this.on(t,"emptied",this.update),this.on(t,"seeking",this.update),this.Ln=new Ka(this.el(),t)}};Ho.registerComponent("SeekBar",eu);var nu=Ho.getComponent("ProgressControl");Ct.Zs.Ks&&Ho.registerComponent("ProgressControl",class extends nu{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"])}});var ru=Ho.getComponent("TooltipProgressBar"),hu=class extends(Ko(ru)){updateDataAttr(){let t=qo(this.player()),i=this.En(t);this.el().setAttribute("data-current-time",i),this.tooltip.innerHTML=i}En(t){const i=this.ks;return Yo(t-Go(i),Jo(i))}createEl(){let 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 ou(t){for(const i of t)if(i.enabled)return i}function au(t){if(t)return t.label&&""!==t.label?{name:t.label,hd:!1}:{name:uu(t),description:cu(t),hd:!!t.height&&t.height>=720}}function uu(t){return t.height?t.height+"p":t.bandwidth?cu(t):""}function cu(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":""}Ho.registerComponent("TooltipProgressBar",hu);var lu=class{get kr(){return this._r}set kr(t){let i=this._r;for(let s=i.length-1;s>=0;s--){let e=i[s];C(t,e)||this.jr(e)}for(let i of t)this.Sr(i);this.Tr.oe()}get Cr(){return this.Tr.menuItems}Pr(t){let i=this.Cr;if(i)for(let s of i)if(s.Ar===t)return s}Mr(t){let i=this.Tr.addMenuItem();return i.Ar=t,i.on("click",(()=>this.Ir(i))),i.el().setAttribute("role","menuitemradio"),i}Er(t){t.dispose()}Dr(t){return!0}Sr(t){if(this.Dr(t)){C(this._r,t)||this._r.push(t);let i=this.Pr(t)||this.Mr(t);return this.Nr(i),i}this.jr(t)}jr(t){let i=this.Pr(t);i&&(this.Tr.removeMenuItem(i),this.Er(i)),Wi(this._r,t)}Ve(){const t=[];for(let i of this._r)t.push(i);for(let i of t)this.jr(i);A(t)}constructor(t){this._r=[],this.Tr=t}},fu=class extends lu{Fr(){return this.Br=h.createElement("span"),this.Br.className="theo-settings-control-menu-item-title",Ft(this.Br,this.$r.localize("Quality")),this.Br}Rr(){return this.Or=h.createElement("span"),this.Or.className="theo-settings-control-menu-quality-automatic",Ft(this.Or,this.$r.localize("Automatic")),this.Or}Vr(){return this.Ur=h.createElement("span"),Ft(this.Ur,this.$r.localize("Automatic")),this.Ur}Lr(){return this.Hr=h.createElement("span"),this.Hr.className="theo-primary-color theo-settings-control-menu-item-hd-label",Ft(this.Hr,this.$r.localize("HD")),this.Hr}zr(){let t=h.createElement("span");t.className="theo-primary-color theo-settings-control-menu-item-value",t.appendChild(this.Or),t.appendChild(h.createTextNode(" ")),t.appendChild(this.Ur),t.appendChild(h.createTextNode(" ")),t.appendChild(this.Hr),this.Wr.el().appendChild(this.Br),this.Wr.el().appendChild(t),this.Wr.el().setAttribute("aria-label",this.$r.localize("Open the video quality settings menu"))}qr(){let t=this.Gr,i=t&&bu(t.targetQuality),s=t&&t.activeQuality,e=au(this.Xr(i||s))||{name:this.$r.localize("Automatic")};Ft(this.Ur,e.name),yi(this.Or,"vjs-hidden",!!i),yi(this.Hr,"vjs-hidden",!e.hd)}Nr(t){let i=au(t.Ar)||{name:this.$r.localize("Automatic")},s=i.name;i.hd&&(s+='<span class="theo-primary-color theo-settings-control-menu-item-hd-label">'+this.$r.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.$r.localize("Set video quality to ")+i.name),t.Ar?t.selected(t.Ar===this.Jr):t.selected(!this.Jr)}Ir(t){this.Gr&&(this.Gr.targetQuality=t.Ar&&t.Ar.videoQualities)}Xr(t,i){const s=i||this.kr;for(let i of s)if(t&&i&&-1!==i.videoQualities.indexOf(t))return i}Ve(){this._s.videoTracks.removeEventListener(["addtrack","removetrack","change"],this.Qr),this.$r.off("languagechange",this.se),this.Gr&&(this.Gr.removeEventListener("activequalitychanged",this.Yr),this.Gr.removeEventListener("targetqualitychanged",this.Kr),this.Gr.removeEventListener("update",this.Zr)),super.Ve()}constructor(t,i,s){super(t.subMenu),this.Gr=void 0,this.Jr=void 0,this.Qr=()=>{let t=ou(this._s.videoTracks);if(t===this.Gr)return;let i=[];if(this.Gr&&(this.Gr.removeEventListener("activequalitychanged",this.Yr),this.Gr.removeEventListener("targetqualitychanged",this.Kr),this.Gr.removeEventListener("update",this.Zr)),this.Gr=t,t){t.addEventListener("activequalitychanged",this.Yr),t.addEventListener("targetqualitychanged",this.Kr),t.addEventListener("update",this.Zr);const s=vu(gu(t.qualities.filter((t=>t.available))));i=s.length>1?[void 0,...s]:[void 0]}this.kr=i,this.Kr(),this.Yr()},this.Zr=t=>{const i=t.track;if(i!==this.Gr)return;const s=vu(gu(i.qualities.filter((t=>t.available)))),e=i&&bu(i.targetQuality);let n;this.Jr=this.Xr(e,s),n=s.length>1?[void 0,...s]:[void 0],this.kr=n,this.qr()},this.Yr=()=>{this.Sr(void 0),this.qr()},this.Kr=()=>{let t=ou(this._s.videoTracks),i=t&&bu(t.targetQuality),s=this.Xr(i),e=this.Jr;s!==e&&(this.Jr=s,s&&e||this.Sr(void 0),e&&C(this.kr,e)&&this.Sr(e),i&&this.Sr(s),this.qr())},this.se=()=>{Ft(this.Tr.menuHeader.el(),this.$r.localize("Quality")),Ft(this.Br,this.$r.localize("Quality")),Ft(this.Or,this.$r.localize("Automatic")),Ft(this.Ur,this.$r.localize("Automatic")),Ft(this.Hr,this.$r.localize("HD")),this.Wr.el().setAttribute("aria-label",this.$r.localize("Open the video quality settings menu"));for(const t of this.Cr)this.Nr(t);this.qr()},this.Wr=t,this._s=i,this.$r=s,this.Br=this.Fr(),this.Or=this.Rr(),this.Ur=this.Vr(),this.Hr=this.Lr(),this.zr(),Ft(this.Tr.menuHeader.el(),this.$r.localize("Quality")),this.kr=[void 0],this._s.videoTracks.addEventListener(["addtrack","removetrack","change"],this.Qr),this.$r.on("languagechange",this.se),this.Qr()}},du=class{get height(){return this.th[0].height}get bandwidth(){return this.th[0].bandwidth}get videoQualities(){return this.th}get label(){return this.th[0].label}add(t){this.th.push(t)}constructor(t){this.th=t}};function vu(t){let i=[];for(let s of t){let t=s,e=!1;for(let s of i)if(yu(s,t)){s.add(t),e=!0;break}e||i.push(new du([t]))}return i}function pu(t,i){return t&&i?Ui(t,i):Oi.ih}function mu(t,i){return t===i?Oi.ih:pu(t.height,i.height)||pu(t.width,i.width)||pu(t.bandwidth,i.bandwidth)}function gu(t){return Bi(t,mu).reverse()}function yu(t,i){return t.label&&i.label&&t.label===i.label||it(au(t),au(i))}function bu(t){return Bt(t)?1===t.length?t[0]:void 0:t}function wu(t){return 1===t?"Normal":""+w.round(100*t)/100}var ku=class extends lu{Fr(){return this.Br=h.createElement("span"),this.Br.className="theo-settings-control-menu-item-title",Ft(this.Br,this.$r.localize("Speed")),this.Br}zr(){const t=h.createElement("span");return t.className="theo-primary-color theo-settings-control-menu-item-value",this.Wr.el().appendChild(this.Br),this.Wr.el().appendChild(t),this.Wr.el().setAttribute("aria-label",this.$r.localize("Open the video speed settings menu")),t}Mr(t){let i=super.Mr(t);return this.Nr(i),i}Nr(t){const i=t.Ar,s=this.$r.localize(wu(i));Ft(t.el(),s),t.el().setAttribute("aria-label",this.$r.localize("Set video speed to ")+s),t.selected(t.Ar===this._s.playbackRate)}Ir(t){this._s.playbackRate=t.Ar}Ve(){this._s.removeEventListener("ratechange",this.sh),this.$r.off("languagechange",this.se),super.Ve()}constructor(t,i,s,e){super(t.subMenu),this.eh=void 0,this.sh=()=>{this.eh&&this.Sr(this.eh);let t=this._s.playbackRate;this.eh=t,Ft(this.nh,this.$r.localize(wu(t))),t&&this.Sr(t)},this.se=()=>{Ft(this.Tr.menuHeader.el(),this.$r.localize("Speed")),Ft(this.Br,this.$r.localize("Speed")),this.Wr.el().setAttribute("aria-label",this.$r.localize("Open the video speed settings menu"));for(const t of this.Cr)this.Nr(t);this.sh()},this.Wr=t,this._s=i,this.$r=s,this.Br=this.Fr(),this.nh=this.zr(),Ft(this.Tr.menuHeader.el(),this.$r.localize("Speed")),this.kr=e,this._s.addEventListener("ratechange",this.sh),this.$r.on("languagechange",this.se),this.sh()}};Ho.registerComponent("SettingsButton",class extends Ca{createEl(){let t=super.createEl();return this.rh=Ho.createEl("span",{className:"theo-settings-control-label-hd theo-primary-background"}),Ft(this.rh,this.localize("HD")),t.appendChild(this.rh),t}buildCSSClass(){return"vjs-icon-cog theo-settings-control-button "+super.buildCSSClass()}se(){super.se(),Ft(this.rh,this.localize("HD")),Ft(this.menu.menuHeader.el(),this.localize("Settings"))}dispose(){this.Gr&&(this.Gr.removeEventListener("activequalitychanged",this.Yr),this.Gr=void 0),this.ks.videoTracks.removeEventListener(["addtrack","removetrack","change"],this.hh),this.oh.Ve(),this.ah.Ve(),super.dispose()}constructor(t,i){var s,e;super(t,i),this.Gr=void 0,this.hh=()=>{let t=ou(this.ks.videoTracks);t!==this.Gr&&(this.Gr&&this.Gr.removeEventListener("activequalitychanged",this.Yr),this.Gr=t,t&&t.addEventListener("activequalitychanged",this.Yr),this.Yr())},this.Yr=()=>{var t;const i=null==(t=this.Gr)?void 0:t.activeQuality,s=!!(i&&i.height>=720);this.player().toggleClass("theo-hd",s)},fi(this.menu.el(),"theo-settings-control-menu"),Ft(this.menu.menuHeader.el(),t.localize("Settings")),this.controlText("Settings"),this.Be.Fe=this.controlText(),this.uh=this.menu.addSubMenuItem({name:"QualityMenuItem"}),this.oh=new fu(this.uh,this.ks,t);let n=null!=(e=null==i||null==(s=i.playerOptions)?void 0:s.playbackRates)?e:[];this.lh=this.menu.addSubMenuItem({name:"PlaybackRateMenuItem"}),this.ah=new ku(this.lh,this.ks,t,n),this.ks.videoTracks.addEventListener(["addtrack","removetrack","change"],this.hh),this.hh()}});var _u=class extends lu{fh(t){let i=t.label;if(i)return i;let s=t.language;if(s){let t=ji(s);if(t)return t.dh}return s||""}ph(){this.kr=this.mh}Ve(){this.mh.removeEventListener("addtrack",this.gh),this.mh.removeEventListener("removetrack",this.yh),this.mh.removeEventListener("change",this.bh),super.Ve()}constructor(t,i){super(t),this.gh=t=>{const i=t.track;this.Sr(i),i.addEventListener("update",this.wh)},this.yh=t=>{const i=t.track;this.jr(i),i.removeEventListener("update",this.wh)},this.bh=t=>this.ph(),this.wh=()=>{for(const t of this.kr)this.Sr(t)},this.mh=i,this.mh.addEventListener("addtrack",this.gh),this.mh.addEventListener("removetrack",this.yh),this.mh.addEventListener("change",this.bh),this.ph()}},ju=class extends _u{Nr(t){let i=t.Ar,s=this.$r.localize(this.fh(i));Ft(t.el(),s),t.el().setAttribute("aria-label",this.$r.localize("Set the audio language to")+" "+s),t.selected(i.enabled)}Ir(t){let i=t.Ar;for(let t of this.ks.audioTracks)t!==i&&(t.enabled=!1);i.enabled=!0}Ve(){this.$r.off("languagechange",this.se),super.Ve()}constructor(t,i,s){super(t,i.audioTracks),this.se=()=>{Ft(this.Tr.menuHeader.el(),this.$r.localize("Language"));for(const t of this.Cr)this.Nr(t)},this.ks=i,this.$r=s,Ft(this.Tr.menuHeader.el(),this.$r.localize("Language")),this.$r.on("languagechange",this.se)}};Ho.registerComponent("audioTrackButton",class extends Ca{buildCSSClass(){return"vjs-icon-audio theo-audio-track-control-button "+super.buildCSSClass()}dispose(){this.kh.Ve(),super.dispose()}constructor(t,i){super(t,i),this.minimumMenuItems=2,this.kh=new ju(this.menu,this.ks,t),this.controlText("Language"),this.Be.Fe=this.controlText()}});var xu=class extends _u{Dr(t){return!!super.Dr(t)&&(!t.forced&&bt(t.kind))}Mr(t){let i=super.Mr(t);fi(i.el(),"theo-text-track-menu-item");let s=h.createElement("span");i._h=s;let e=h.createElement("div");e.className="theo-text-track-menu-item-toggle",i.jh=e;let n=t=>this.xh(t,i);i.Sh=n,e.addEventListener("click",n);let r=h.createElement("div");return r.className="theo-text-track-menu-item-toggle-slider",e.appendChild(r),i.el().appendChild(s),i.el().appendChild(e),i}Nr(t){let i=t,s=i.Ar,e=this.$r.localize(this.fh(s));Ft(i._h,e),i.el().setAttribute("aria-label",this.$r.localize("Set the subtitle language to")+" "+e),i.el().setAttribute("role","menuitemcheckbox"),i.selected(s.mode===lt.Yn)}Er(t){let i=t;i.jh.removeEventListener("click",i.Sh),super.Er(t)}Ir(t){let i=t.Ar;for(let t of this.ks.textTracks)t!==i&>(t.kind,i.kind)&&(t.mode=lt.Th);i.mode!==lt.Yn?i.mode=lt.Yn:i.mode=lt.Th}xh(t,i){t.stopImmediatePropagation(),this.Ir(i)}Ve(){this.$r.off("languagechange",this.se),super.Ve()}constructor(t,i,s){super(t,i.textTracks),this.se=()=>{Ft(this.Tr.menuHeader.el(),this.$r.localize("Subtitles"));for(const t of this.Cr)this.Nr(t)},this.ks=i,this.$r=s,Ft(this.Tr.menuHeader.el(),s.localize("Subtitles")),this.$r.on("languagechange",this.se)}};Ho.registerComponent("subtitlesButton",class extends Ca{buildCSSClass(){return"vjs-icon-subtitles theo-text-track-control-button "+super.buildCSSClass()}dispose(){this.kh.Ve(),super.dispose()}constructor(t,i){super(t,i),this.kh=new xu(this.menu,this.ks,t),this.controlText("Subtitles"),this.Be.Fe=this.controlText()}});var Su,Tu=Ho.getComponent("playToggle");!function(t){t.Ch="Pause",t.Ph="Play",t.Ah="Replay"}(Su||(Su={}));var Cu=class extends(Ko(Tu)){handleClick(t){this.ks.muted||this.ks.prepareWithUserAction(),super.handleClick(t)}handlePlay(t){super.handlePlay(t),this.controlText("Pause"),this.Be.Fe=this.controlText()}handlePause(t){this.ks.ended||(super.handlePause(t),this.controlText("Play"),this.Be.Fe=this.controlText())}se(){this.Be.Fe=this.controlText()}dispose(){this.Be.Ve(),this.ks.removeEventListener("ended",this.Mh),super.dispose()}constructor(t,i){super(t,i),this.Mh=()=>{this.controlText("Replay"),this.Be.Fe=this.controlText()},this.controlText("Play"),this.Be=new Sa(this,this.controlText()),this.ks.addEventListener("ended",this.Mh),this.on(t,"languagechange",this.se),Ct.Zs.Ye&&new fa(this.el())}};Ho.registerComponent("playToggle",Cu);var Pu,Au=Ho.getComponent("fullscreenToggle");!function(t){t.Ih="Exit fullscreen",t.Eh="Fullscreen"}(Pu||(Pu={}));var Mu=class extends(Ko(Au)){handleClick(t){this.ks.prepareWithUserAction(),super.handleClick(t)}handleFullscreenChange(t){super.handleFullscreenChange(t),this.updateContent()}updateContent(){const t=this.player().isFullscreen()?"Exit fullscreen":"Fullscreen";this.controlText(t),this.Be.Fe=this.controlText()}dispose(){this.Be.Ve(),super.dispose()}constructor(t,i){super(t,i),this.controlText("Fullscreen"),this.Be=new Sa(this,this.controlText()),Ct.Zs.Ye&&new fa(this.el()),this.on(t,"languagechange",this.updateContent)}};Ho.registerComponent("fullscreenToggle",Mu);var Iu,Eu=Ho.getComponent("muteToggle");!function(t){t.Dh="Unmute",t.Nh="Mute"}(Iu||(Iu={}));var Du=class extends(Ko(Eu)){handleClick(t){this.ks.muted&&!this.ks.paused&&this.ks.prepareWithUserAction(),super.handleClick(t)}update(t){super.update(t),this.se()}se(){const t=this.player().muted()?"Unmute":"Mute";this.controlText(t),this.Be.Fe=this.controlText()}dispose(){this.Be.Ve(),super.dispose()}constructor(t,i){super(t,i),this.controlText("Mute"),this.Be=new Sa(this,this.controlText()),Ct.Zs.Ye&&new fa(this.el()),this.on(t,"languagechange",this.se),Ci&&(this.removeClass("vjs-hidden"),this.on(t,"loadstart",(()=>{this.removeClass("vjs-hidden")})))}};Ho.registerComponent("muteToggle",Du);var Nu=Ho.getComponent("BigPlayButton"),Fu=class extends(Ko(Nu)){createEl(){let t=super.createEl(),i=Ho.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.ks.muted||this.ks.prepareWithUserAction(),super.handleClick(t),void 0!==this.ks.vr&&"unavailable"!==this.ks.vr.state&&(this.ks.vr.useDeviceMotionControls=!0)}};Ho.registerComponent("BigPlayButton",Fu);var Bu=/^([^#]*)#xywh=(\d+),(\d+),(\d+),(\d+)\s*$/;Ho.registerComponent("MouseTimeDisplay",class extends Ga{Fh(t){const i=t.track;"metadata"===i.kind&&"thumbnails"===i.label&&void 0===this.Bh&&(this.Bh=i,this.$h=i.src?Ct.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=Ho.createEl("img",{className:"theo-time-tooltip-thumbnail"}),this.zh=Ho.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){let s=function(t,i){let s=t[0];for(let 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,Ho.toggleClass(this.el(),"theo-time-tooltip-has-thumbnail",!!i),!i)return void this.Gh();const s=i.match(Bu);if(s){let[,t,i,e,n,r]=s;t=this.Xh(t);const h={Jh:+i,Qh:+e,Ti:+n,Ci:+r};this.Yh(t,h)}else{const t=this.Xh(i);this.Yh(t)}}Vh(){j(this.In)||this.Wh(this.In)}Xh(t){return this.Bh&&this.$h?Ct.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,Ti:this.Hh.naturalWidth,Ci:this.Hh.naturalHeight}),this.zh.width=t.Ti,this.zh.height=t.Ci,i.drawImage(this.Hh,t.Jh,t.Qh,t.Ti,t.Ci,0,0,t.Ti,t.Ci),this.Zh(this.zh))}Zh(t){this.io||(this.tooltip.firstChild?this.tooltip.insertBefore(t,this.tooltip.firstChild):this.tooltip.appendChild(t),this.io=t),this.Dn()}Gh(){this.io&&(this.tooltip.removeChild(this.io),this.io=void 0,this.Dn())}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.showThumbnails=()=>{this.io&&this.io.hidden&&(this.io.hidden=!1,this.Dn())},this.hideThumbnails=()=>{!this.io||this.io.hidden||this.player().scrubbing()||(this.io.hidden=!0,this.Dn())},this.on(this.player().textTracks(),"addtrack",this.so),this.on(this.player().textTracks(),"removetrack",this.eo),Mt.Ks&&(this.on(t,"seeking",this.showThumbnails),this.on(t,"seeked",this.hideThumbnails))}});var $u=Ho.getComponent("VolumeLevel");Ho.registerComponent("VolumeLevel",class extends $u{createEl(){let t=super.createEl();return t.className=this.buildCSSClass(),t}buildCSSClass(){return"theo-primary-color vjs-volume-level "+super.buildCSSClass()}});var Ru=Ho.getComponent("Component"),Ou=class extends Ru{createEl(){let t=super.createEl();return t.className=this.buildCSSClass(),t}buildCSSClass(){return"theo-menu-container "+super.buildCSSClass()}};Ou.prototype.h=Di({},Ou.prototype.h,{children:[]}),Ho.registerComponent("controlBarMenuContainer",Ou);var Vu=Ho.getComponent("Player"),Uu=class extends Vu{dispose(){const t=this.el(),i=this.contentEl(),s=t.parentNode,e=t.nextSibling;super.dispose(),hi(i),this.xi&&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)}};Uu.prototype.h=Di({},Vu.prototype.h,{children:["bigPlayButton","AdControlPanel","TopControlBar","mediaLoader","upNextContainer","posterImage","chromecastOverlay","upcomingAdNotificationText","controlBarMenuContainer","controlBar","textTrackDisplay","loadingSpinner","errorDisplay","textTrackSettings","xrCompass"]}),Ho.registerComponent("Player",Uu);var Lu=Ho.getComponent("Player"),Hu=Lu.prototype.es;Lu.prototype.es=function(t){if(!(this.H&&this.H.Vs&&this.H.Vs()))return Hu.call(this,t)};var zu=Lu.prototype.createEl;function Wu(t,i,s,e){let n=Di({controls:!0,playbackRates:[.25,.5,1,1.25,1.5,2]},s);n.controlBar=Di({progressControl:{keepTooltipsInside:!0}},n.controlBar);let r=n.techOrder||(n.techOrder=[]);-1===r.indexOf("THEOplayer")&&r.unshift("THEOplayer"),(n.theoplayer||(n.theoplayer={})).player=t,s&&Ot(s.language)&&(n.languages=Di({},n.languages,{[wi]:s.language}),n.language=wi),i.setAttribute("data-vjs-player","");let h=i.getAttribute("style"),o=Ho(t.element,n,e);return o.ready((()=>{ta(o),function(t,i){if(i){if(i.ads){const s=i=>{const s="adbreakbegin"===i.type,e=i.adBreak.integration===Ai.no;ea(t,s,e)};i.ads.addEventListener("adbreakbegin",s),i.ads.addEventListener("adbreakend",s)}if(i.verizonMedia){const s=i=>{const s="adbreakbegin"===i.type;ea(t,s,!1)};i.verizonMedia.ads.adBreaks.addEventListener("addadbreak",(t=>{t.adBreak.addEventListener("adbreakbegin",s),t.adBreak.addEventListener("adbreakend",s)}))}i.addEventListener("sourcechange",(()=>{ea(t,!1,!1)}))}}(o,t),function(t){t.on("mouseleave",na)}(o)})),i.removeAttribute("data-vjs-player"),h?i.setAttribute("style",h):i.removeAttribute("style"),Ct.Zs.Ks&&(fi(i,"theo-mobile"),qu(i)),function(t){t.on("seeking",(()=>{ui(t.el(),"vjs-ended")&&t.currentTime()!==t.duration()&&t.play()}))}(o),o}function qu(t){a.outerHeight>a.outerWidth?(pi(t,"theo-mobile-landscape"),fi(t,"theo-mobile-portrait")):(pi(t,"theo-mobile-portrait"),fi(t,"theo-mobile-landscape"))}Lu.prototype.createEl=function(){let t=zu.call(this),i=Ho.createEl("div");for(i.className="theo-player-wrapper";t.firstChild;)i.appendChild(t.firstChild);return t.appendChild(i),this.S=i,t};var Gu=Ho.getComponent("Button");var Xu="THEOPiPCloseButton";Ho.registerComponent(Xu,class extends Gu{buildCSSClass(){return"theo-close-button theo-pip-close"}handleClick(){this.ho.ro()}constructor(t,i){if(super(t,i),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 Ju,Qu=class extends F{get oo(){return this.ao}get uo(){return this.t.cs()}co(){this.t.wn(G.Ph,this.lo),this.fo||this.t.wn(G.do,this.vo),this.t.po.on("languagechange",this.se)}mo(){let t=this.yo;if(t)return"theo-pip-"+t}bo(t){let i=this.wo;if(i&&!this.uo){this.ko||this._o(),this.jo(),fi(i,"theo-pip");let s=this.mo();s&&fi(i,s),this.ao=!0,this.xo=t,this.So=!1,this.To(new zi(qi.PICTURE_IN_PICTURE))}}Co(t){let i=this.wo;if(i){this.Po(),pi(i,"theo-pip");let s=this.mo();s&&pi(i,s),this.ao=!1,this.So=t,this.Ao=this.xo,this.xo=!1,this.To(new zi(qi.INLINE))}}_o(){if(!this.ko){let t=this.t.po;t.addChild(Xu,{ho:this});let i=h.createElement("div");i.className="theo-pip-overlay",this.Mo=h.createElement("div"),this.Mo.className="theo-pip-overlay-text",Ft(this.Mo,t.localize("Video playing in Picture-in-Picture mode")),i.appendChild(this.Mo),t.el().appendChild(i),this.Io=i,this.ko=!0}}Eo(){this.Do&&!this.No&&this.t.Fo&&(this.Bo=this.t.Fo.$o(Rt,this.Ro),this.No=!0)}Oo(){this.Bo&&this.t.Fo&&(this.t.Fo.Vo(this.Bo),this.No=!1)}jo(){let t=this.t.po.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"}Po(){let t=this.t.po.contentEl();t.style.top="",t.style.bottom="",t.style.right="",t.style.left="",t.style.width="",t.style.height="",t.style.position=""}Uo(){pi(this.wo,"theo-pip"),this.oo&&this.yo&&pi(this.wo,"theo-pip-"+this.yo),this.Io&&(hi(this.Io),this.Io=void 0)}bn(){this.Uo(),this.Oo(),this.Lo(),this.t.pn(G.Ph,this.lo),this.t.pn(G.do,this.vo),this.t.po.off("languagechange",this.se),this.t=void 0}constructor(t,i,s){super(),this.Ho=!1,this.ao=!1,this.So=!1,this.xo=!1,this.ko=!1,this.No=!1,this.Ao=!1,this.lo=()=>{this.Ho=!0,this.Do&&!this.oo&&this.Bo&&this.zo&&this.Bo.Wo<=this.zo&&this.bo(!1)},this.vo=()=>{this.fo||(this.Ho=!1,this.Co(!1))},this.se=()=>{if(this.Mo){const t=this.t.po;Ft(this.Mo,t.localize("Video playing in Picture-in-Picture mode"))}},this.Ro=t=>{!this.xo&&this.Do&&(j(t)||(this.zo&&t<=this.zo||this.Ao?this.ao||this.So||this.bo(!1):this.ao?this.Co(!1):this.So=!1))},this.zo=i.visibility,this.yo=i.position,this.fo=i.retainPresentationModeOnSourceChange,this.Do=void 0!==this.zo,this.t=t,this.wo=t.qo,this.ro=s,this.co()}},Yu=class extends P{Go(){let t=super.Go();return t===qi.INLINE&&this.Xo&&this.Xo.oo?qi.PICTURE_IN_PICTURE:t}Jo(t){return t===qi.PICTURE_IN_PICTURE||super.Jo(t)}Qo(t,i){t===qi.FULLSCREEN&&this.Xo.Oo(),super.Qo(t,i),t!==qi.FULLSCREEN&&this.Xo.Eo()}Yo(t,i){t!==i&&(t===qi.FULLSCREEN&&this.Xo.Co(!1),t===qi.INLINE&&i===qi.PICTURE_IN_PICTURE&&this.Xo.Co(!0),super.Yo(t,i),t===qi.PICTURE_IN_PICTURE&&(i===qi.INLINE?this.Xo.bo(!0):this.Xo.bo(!1)))}bn(){super.bn(),this.Xo.bn(),this.Ko.pn(G.Ph,this.Zo),this.Ko=void 0}constructor(t,i,s){super(i),this.ta=()=>this.Zr(),this.ro=()=>this.ia(qi.INLINE),this.Zo=()=>{this.Go()!==qi.FULLSCREEN&&this.Xo.Eo(),this.Ko.pn(G.Ph,this.Zo)},this.Ko=t,this.Xo=new Qu(t,s.pip,this.ro),this.Xo.wn("presentationmodechange",this.ta),this.Ko.wn(G.Ph,this.Zo),this.Zr()}},Ku=class extends F{get sa(){return st.ea(this.po.el())||this.po.supportsFullScreen()}get cs(){return this.po.isFullscreen()||this.na}bo(){this.po.requestFullscreen()}Co(){this.po.exitFullscreen(),this.ra.Co()}bn(){this.Lo(),this.po.off("fullscreenchange",this.ha),this.ra.pn(Li.oa,this.ha),this.ra.pn(Li.aa,this.Os),this.po.isFullWindow&&this.po.exitFullscreen()}constructor(t,i){super(),this.Us=!1,this.na=!1,this.ua=!1,this.ha=()=>{if(this.ua)return;let t=this.Us,i=this.cs;t!==i&&(this.Us=i,this.To(new K))},this.ca=()=>{this.na=this.ra.cs,this.ha()},this.la=()=>{this.ua||(this.po.isFullWindow&&this.po.supportsFullScreen()||this.na&&!this.po.supportsFullScreen())&&(this.ua=!0,this.po.exitFullscreen(),this.po.requestFullscreen(),this.ua=!1,this.ha())},this.po=t,this.ra=i,this.po.on("fullscreenchange",this.ha),this.ra.wn(Li.oa,this.ca),this.ra.wn(Li.fa,this.la),this.ra.wn(Li.aa,this.Os),this.ha()}};function Zu(t){return class extends t{get Fo(){return this.da}cs(){return"fullscreen"===this.va.Go()}pa(){return function(t,i){let s=g.create(t);const e=i.po;return Z(s,{get controls(){return e.controls()},set controls(t){e.controls(et(t))},get presentation(){return i.va.ma},get presentationMode(){return i.va.Go()},set presentationMode(t){const s=M(t);s&&i.va.ia(s)},get ui(){return e},get visibility(){return i.Fo.ma}})}(this.ga,this)}bn(){super.bn(),this.va.bn(),this.ya.bn(),this.po.dispose(),this.da.bn()}ba(t){this.po.src(""),super.ba(t)}constructor(t,i,s){super(i,s),this.qo=t,this.da=new Ut(t),this.ga=super.pa(),g.defineProperty(this.ga,"constructor",{value:Zt}),this.po=Wu(this.ga,this.qo,s.ui),this.ya=new Ku(this.po,this.wa),this.va=new Yu(this,this.ya,s),this.va.wn("presentationmodechange",this.Os)}}}function tc(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(Dt(t)&&!j(t))return Yt(t,0,1)}(t.visibility),t.retainPresentationModeOnSourceChange=et(t.retainPresentationModeOnSourceChange),t}function ic(t){const i=$i(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=tc(i.pip),i}function sc(){return Ju||(Ju=function(t){let i=t;for(const t of Gi)i=t(i);return i}(Ju=Zu(Qt()))),Ju}function ec(t,i){const s=ic(i),e=h.createElement("div");e.style.position="absolute",t.appendChild(e);const n=new(sc())(t,e,s);n.ka=n;let r=n.ma;return n._a(),n.ja(zt),g.defineProperty(r,"constructor",{value:ec}),r=Y(r),Jt(n),function(t){for(const i of Xi)i(t)}(n),r}var nc="theo-cast-",rc=Ho.getComponent("Button"),hc=class extends(Ko(rc)){get xa(){throw new v("Sa")}get Ta(){return this.h.Ta}get Ca(){return this.h.Ca}buildCSSClass(){return nc+"button theo-"+this.Ca+"-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=nc+"svg-container",r.innerHTML=this.Ta,e.appendChild(n),e.appendChild(r),e}handleClick(t){var i;if(super.handleClick(t),this.Pa===E.AVAILABLE)null==(i=this.xa)||i.start();else if(this.Pa===E.CONNECTED||this.Pa===E.CONNECTING){var s;null==(s=this.xa)||s.stop()}}Aa(t){pi(this.wo,"theo-"+this.Ca+"-"+this.Pa),this.Pa=t,fi(this.wo,"theo-"+this.Ca+"-"+this.Pa),this.se()}se(){this.Ma(this.Pa),this.Be.Fe=this.controlText()}Ma(t){t===E.CONNECTED?this.controlText("Stop Casting"):t===E.AVAILABLE?this.controlText("Start Casting"):t===E.CONNECTING?this.controlText("Connecting"):this.controlText("Unavailable")}constructor(t,i){var s;super(t,i),this.wo=t.el(),this.Pa=E.UNAVAILABLE,this.controlText("Unavailable"),this.Be=new Sa(this,this.controlText()),null==(s=this.xa)||s.addEventListener("statechange",(t=>{const i=t;this.Aa(i.state)})),Ct.Zs.Ye&&(this.Ia=new fa(this.el())),this.Aa(this.xa?this.xa.state:E.UNAVAILABLE),this.on(t,"languagechange",this.se)}},oc=0;function ac(){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-'+oc+'">\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-'+oc+')">\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 oc++,t}Ho.registerComponent("chromecastButton",class extends hc{get xa(){var t;return null==(t=this.ks.cast)?void 0:t.chromecast}constructor(t,i){super(t,Di({},i,{Ca:"chromecast",Ta:ac()}))}});var uc="theo-chromecast-",cc=Ho.getComponent("Component"),lc=class t extends(Ko(cc)){buildCSSClass(){return uc+"overlay "+super.buildCSSClass()}createEl(){const i=super.createEl();fi(i,uc+"overlay");const s=Ho.createEl("div",{className:uc+"status-icon",innerHTML:t.ICON_SVG}),e=Ho.createEl("div",{className:uc+"status-info"});Ft(e,"Playing on");const n=Ho.createEl("div",{className:uc+"status-title"}),r=Ho.createEl("div",{className:uc+"status"});return this.yr=n,r.appendChild(s),r.appendChild(e),r.appendChild(n),i.appendChild(r),i}dispose(){var t;null==(t=this.Ea)||t.removeEventListener("statechange",this.update),this.Ea=void 0,this.ks.removeEventListener("play",this.update),super.dispose()}constructor(t,i){var s,e;super(t,i),this.update=()=>{this.Ea?(this.yr&&Ft(this.yr,this.Ea.receiverName||""),this.Ea.state===E.CONNECTED?this.show():this.hide()):this.hide()},this.Ea=null==(s=this.ks.cast)?void 0:s.chromecast,null==(e=this.Ea)||e.addEventListener("statechange",this.update),this.ks.addEventListener("play",this.update),this.update()}};lc.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>',Ho.registerComponent("chromecastOverlay",lc);Ho.registerComponent("airplayButton",class extends hc{dispose(){var t,i;null==(t=this.ks.ads)||t.removeEventListener("adbreakbegin",this.Da),null==(i=this.ks.ads)||i.removeEventListener("adbreakend",this.Na),this.ks.removeEventListener("currentsourcechange",this.Na),super.dispose()}get xa(){var t;return null==(t=this.ks.cast)?void 0:t.airplay}constructor(t,i){var s,e;super(t,Di({},i,{Ca:"airplay",Ta:'\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.Na=()=>{this.enable()},this.Da=()=>{this.disable()},null==(s=this.ks.ads)||s.addEventListener("adbreakbegin",this.Da),null==(e=this.ks.ads)||e.addEventListener("adbreakend",this.Na),this.ks.addEventListener("currentsourcechange",this.Na)}});var fc={Default:"","Monospaced Serif":yt.Fa,"Proportional Serif":yt.Ba,"Monospaced Sans-Serif":yt.$a,"Proportional Sans-Serif":yt.Ra},dc={White:"#ffffff",Yellow:"#ffff00",Green:"#00ff00",Cyan:"#00ffff",Blue:"#0000ff",Magenta:"#ff00ff",Red:"#ff0000",Black:"#000000"},vc=[50,75,100,150,200];function pc(t){return{label:t+"%",value:t}}function mc(t){return g.keys(t).map((i=>({label:i,value:t[i]})))}vc.map((function(t){return{label:t+"%",value:t/100+"em"}}));var gc=vc.map((function(t){return{label:t+"%",value:t+"%"}})),yc=[25,50,75,100].map(pc),bc=[0,25,50,75,100].map(pc),wc=mc(dc),kc=mc(fc),_c=mc({None:"none","Drop Shadow":"dropshadow",Raised:"raised",Depressed:"depressed",Uniform:"uniform"}),jc=100,xc="#000000",Sc="#FFFFFF",Tc="#000000",Cc=class extends lu{Oa(){let t=this.$r.localize(this.Va);Ft(this.Ua.subMenu.menuHeader.el(),t),this.Br=h.createElement("span"),this.Br.className="theo-settings-control-menu-item-title",Ft(this.Br,t);let i=h.createElement("span");return i.className="theo-primary-color theo-settings-control-menu-item-value",fi(this.Ua.el(),"theo-subtitle-options-menu-item"),this.Ua.el().appendChild(this.Br),this.Ua.el().appendChild(i),i}La(t){const i=this.Pr(t);i&&this.Ha(i)}za(){return this.kr}Ir(t){this.Wa(t.Ar)}Ha(t){for(let t of this.Tr.menuItems)t.selected(!1);t?(t.selected(!0),this.qa(t.Ar.label)):this.qa("Custom")}qa(t){this.Ga=t,Ft(this.Xa,this.$r.localize(t)),this.Ua.parentMenu.oe()}Mr(t){let i=super.Mr(t);return fi(i.el(),"theo-subtitle-options-menu-item"),this.Nr(i),i}Nr(t){const i=this.$r.localize(t.Ar.label);Ft(t.el(),i);const s=this.$r.localize("Set "+this.Va+" to ")+i;t.el().setAttribute("aria-label",s)}Ve(){this.$r.off("languagechange",this.se),super.Ve()}constructor(t,i,s,e){super(t.subMenu),this.Ua=t,this.$r=e,this.Ga="",this.se=()=>{let t=this.$r.localize(this.Va);Ft(this.Ua.subMenu.menuHeader.el(),t),Ft(this.Br,t),this.qa(this.Ga);for(const t of this.Cr)this.Nr(t)},this.Va=i,this.Wa=s.ta,this.Xa=this.Oa(),this.kr=s.Ja,this.$r.on("languagechange",this.se)}},Pc=class t{static Qa(t,i,s,e){if(void 0===t&&void 0===i)return;return T(void 0===t?s:t,void 0===i?e:i)}constructor(i){this.Ya=i,this.Ka=t=>{this.Ya.fontFamily=t.value},this.Za=t=>{this.Ya.fontSize=t.value},this.tu=i=>{this.iu=i.value,this.Ya.fontColor=t.Qa(this.su,this.iu,Sc,jc)},this.eu=i=>{this.su=i.value,this.Ya.fontColor=t.Qa(this.su,this.iu,Sc,jc)},this.nu=i=>{this.ru=i.value,this.Ya.backgroundColor=t.Qa(this.ru,this.hu,xc,jc)},this.ou=i=>{this.hu=i.value,this.Ya.backgroundColor=t.Qa(this.ru,this.hu,xc,jc)},this.au=i=>{this.uu=i.value,this.Ya.windowColor=t.Qa(this.uu,this.cu,Tc,jc)},this.lu=i=>{this.cu=i.value,this.Ya.windowColor=t.Qa(this.uu,this.cu,Tc,jc)},this.fu=t=>{this.Ya.edgeStyle=t.value}}},Ac=class{du(t,i){const s=this.vu(t,i.za());s&&i.La(s)}vu(t,i){return Hi(i,(i=>i.value===t))}pu(t,i,s){let e,n;if(void 0===t)e=this.vu(void 0,i.za()),n=this.vu(void 0,s.za());else if(t){let r=function(t){let i=Tt(t);i||(i=Tt(t.slice(0,t.length-1).replace("rgb","rgba")+",1)"));i||(i=wt(_t(t),1));if(!i){let s=t.charAt(0).toUpperCase()+t.toLowerCase().slice(1);i=wt(_t(dc[s]),1)}return i}(t);if(r){let t=xt(r),h=100*r.mu;e=this.vu(t,i.za()),n=this.vu(h,s.za())}}e&&i.La(e),n&&s.La(n)}constructor(t,i){this.Ya=t,this.gu=i,this.yu=()=>{let t=this.Ya.fontFamily;this.du(t,this.gu["Font family"]);let i=this.Ya.fontColor;this.pu(i,this.gu["Font color"],this.gu["Font opacity"]);let s=this.Ya.fontSize;this.du(s,this.gu["Font size"]);let e=this.Ya.backgroundColor;this.pu(e,this.gu["Background color"],this.gu["Background opacity"]);let n=this.Ya.windowColor;this.pu(n,this.gu["Window color"],this.gu["Window opacity"]);let r=this.Ya.edgeStyle;this.du(r,this.gu["Character edge style"])},this.Ya.addEventListener("change",this.yu),this.yu()}};var Mc,Ic=class extends lu{bu(){return{"Font family":{Ja:Ec(kc),ta:this.wu.Ka},"Font color":{Ja:Ec(wc),ta:this.wu.eu},"Font opacity":{Ja:Ec(yc),ta:this.wu.tu},"Font size":{Ja:Ec(gc),ta:this.wu.Za},"Background color":{Ja:Ec(wc),ta:this.wu.nu},"Background opacity":{Ja:Ec(bc),ta:this.wu.ou},"Window color":{Ja:Ec(wc),ta:this.wu.au},"Window opacity":{Ja:Ec(bc),ta:this.wu.lu},"Character edge style":{Ja:Ec(_c),ta:this.wu.fu}}}ku(){this.Br=h.createElement("span"),this.Br.className="theo-settings-control-menu-item-title",this._u=h.createElement("span"),this._u.className="theo-primary-color theo-settings-control-menu-item-value",this.Wr.el().appendChild(this.Br),this.Wr.el().appendChild(this._u),this.se()}Mr(t){let i=this.Tr.addSubMenuItem();return i.Ar=t,this.gu[t]=new Cc(i,t,this.ju[t],this.$r),i}Nr(t){}Ir(t){}Ve(){this.$r.off("languagechange",this.se),this.xu.removeEventListener(["addtrack","removetrack"],this.Su),super.Ve()}constructor(t,i,s,e){super(t.subMenu),this.Wr=t,this.xu=i,this.$r=e,this.gu={},this.Su=()=>{this.xu.some((t=>bt(t.kind)))?this.Wr.show():this.Wr.hide()},this.se=()=>{Ft(this.Tr.menuHeader.el(),this.$r.localize("Subtitle Options")),Ft(this.Br,this.$r.localize("Subtitle")),Ft(this._u,this.$r.localize("Options")),this.Wr.el().setAttribute("aria-label",this.$r.localize("Open the subtitle options menu"))},this.wu=new Pc(s),this.ju=this.bu(),this.kr=g.keys(this.ju),this.ku(),this.Tu=new Ac(s,this.gu),this.$r.on("languagechange",this.se),this.xu.addEventListener(["addtrack","removetrack"],this.Su),this.Su()}};function Ec(t){let i=[{label:"Default",value:void 0}];for(let s of t)"Default"!==s.label&&i.push(s);return i}!function(t){Xi.push(t)}((function(t){const i=t.po.controlBar.getChild("SettingsButton").menu,s=i.addSubMenuItem({name:"TextTrackOptionsMenuItem"}),e=new Ic(s,t.nt.ma,t.Cu.ma,t.po);t.po.on("dispose",(()=>{i.removeMenuItem(s),s.dispose(),e.Ve(),i.dispose()}))})),function(t){t.GALLERY="gallery",t.OVERLAY="overlay",t.SPOTLIGHT="spotlight"}(Mc||(Mc={}));var Dc=.02,Nc=class{Pu(t){const i=t-this.Mu.Au-20,s=t-this.Mu.Au+20;if(0===this.Mu.yo)return;const e=this.Mu.t.currentProgramDateTime.valueOf();e>s?this.Iu(this.Eu):e<i?this.Iu(this.Du):this.Iu(this.Nu)}Fu(t){const i=t-this.Mu.Au/1e3-Dc,s=t-this.Mu.Au/1e3+Dc;if(0===this.Mu.yo)return;const e=this.Mu.t.currentTime;e>s?this.Iu(this.Eu):e<i?this.Iu(this.Du):this.Iu(this.Nu)}Bu(){this.Nu=this.Ko.$u,this.Eu=this.Ko.$u-.05,this.Du=this.Ko.$u+.05}Iu(t){const i=this.Mu.t;if(i.playbackRate!==t&&0!==i.playbackRate){t>=.2&&t<=2.05?i.playbackRate=t:this.Ko.Ru(this.Mu)}}Ou(){this.Ko.pn(G.Vu,this.Uu),this.Ko.pn(G.Lu,this.Hu)}constructor(t,i){this.Nu=1,this.Eu=1.05,this.Du=.95,this.Uu=()=>{this.Bu()},this.Hu=()=>{if(!this.Ko.zu)return;const t=this.Ko.zu.Au,i=this.Ko.Wu,s=this.Ko.qu;null!==s?this.Pu(s.valueOf()+t):this.Fu(i+t/1e3)},this.Mu=t,this.Ko=i,this.Ko.wn(G.Vu,this.Uu),this.Ko.wn(G.Lu,this.Hu)}},Fc=class{get t(){return this.Ko}get ma(){var t;return null!=(t=this.Gu)?t:this.Gu=function(t){return{get label(){return t._h},get position(){return t.yo},set position(i){t.yo=i},get muted(){return t.Xu},set muted(i){t.Xu=i},get canResize(){return t.Ju},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.Ti},set width(i){t.Ti=i},get height(){return t.Ci},set height(i){t.Ci=i},get enabled(){return t.Rt},set enabled(i){t.Rt=i},get offset(){return t.Au},set offset(i){t.Au=i},remove(){t.Qu()}}}(this)}get _h(){return this.Yu}get yo(){return this.Zu.Ku.indexOf(this)}set yo(t){this.Zu.tc(this,t)}get Xu(){return this.Ko.muted}set Xu(t){this.Rt&&(this.Zu.ic=this,this.sc(t))}get Ju(){return 0!==this.yo&&this.Zu.ec===Mc.OVERLAY}get Jh(){return this.nc}set Jh(t){this.Ju&&(this.rc||(this.rc=!0),this.nc=t>1-this.Ti?1-this.Ti:w.max(t,0),this.t.element.style.setProperty("left",100*this.nc+"%"))}get Qh(){return this.hc}set Qh(t){this.Ju&&(this.rc||(this.rc=!0),this.hc=t>1-this.Ci?1-this.Ci:w.max(t,0),this.t.element.style.setProperty("top",100*this.hc+"%"))}get Ti(){return this.oc}set Ti(t){this.Ju&&this.ac(t)}get Ci(){return this.uc}set Ci(t){this.Ju&&this.ac(t)}get Rt(){return this.We}set Rt(t){t!==this.We&&0!==this.yo&&(t?(D(this.Zu.Ru(this)),this.Zu.cc(this),this.t.element.style.setProperty("display","block")):(this.t.pause(),this.t.element.style.setProperty("display","none")),this.We=t,this.Zu.lc(this))}get fc(){return this.rc}set fc(t){this.rc=t}get dc(){return this.vc}set dc(t){this.vc=t}get Au(){return this.mc}set Au(t){this.mc=t,this.gc(this.Zu.Wu,this.Zu.qu)}yc(t,i,s,e,n){!this.rc&&n&&(this.rc=!0),this.nc=t,this.hc=i,this.oc=s,this.uc=e}sc(t){this.Ko.muted=t}Qu(){0!==this.yo&&this.Zu.bc(this)}wc(){this.t.element.style.setProperty("top",100*this.hc+"%"),this.t.element.style.setProperty("left",100*this.nc+"%"),this.t.element.style.setProperty("width",100*this.oc+"%")}ac(t){const i=this.nc+this.oc,s=w.min(t,i),e=.9-this.hc,n=w.min(t,e),r=w.max(w.min(s,n),.1),h=this.oc-r;this.oc=r,this.uc=r,this.Jh+=h,this.t.element.style.setProperty("width",100*r+"%")}gc(t,i){if(null!==i){const t=i.valueOf()-this.Au;this.Ko.currentProgramDateTime=new Date(t)}else this.Ko.currentTime=t-this.Au/1e3}kc(t){const i=this.t.element.getElementsByClassName(qc)[0],s=t?Xc:Gc;pi(i,t?Gc:Xc),fi(i,s)}Ou(){this._c.Ou(),this.Ko.element.remove(),this.Ko.destroy()}constructor(t,i,s,e){this.We=!0,this.rc=!1,this.vc=0,this.Yu=t,this.Ko=i,this.Zu=s,this._c=new Nc(this,s),this.mc=null!=e?e:0,this.oc=.2,this.uc=.2,this.nc=.76,this.hc=0}};var Bc,$c=class{get multiViewPlayer(){return this.Zu}get abr(){}get analytics(){}get audioTracks(){return this.jc}get autoplay(){return this.Zu.autoplay}set autoplay(t){this.Zu.autoplay=t}get buffered(){return this.Zu.buffered}get canvas(){}get clip(){return this.xc.ma}get currentProgramDateTime(){return null}get currentTime(){return this.Zu.currentTime}set currentTime(t){this.Zu.currentTime=t}get duration(){return this.Zu.duration}get element(){return this.Hs}get ended(){return this.Zu.ended}get error(){}get errorObject(){return this.Zu.errorObject}get latency(){}get loop(){return!1}get metrics(){}get muted(){return this.Zu.muted}set muted(t){this.Zu.muted=t}get network(){}get paused(){return this.Zu.paused}get playbackRate(){return this.Zu.playbackRate}set playbackRate(t){this.Zu.playbackRate=t}get played(){return this.Zu.played}get poster(){return""}get preload(){return""}get presentation(){}get readyState(){return this.Zu.readyState}get seekable(){return this.Zu.seekable}get seeking(){return this.Zu.seeking}get source(){}get src(){return"dummySource"}get textTrackStyle(){return this.Sc}get textTracks(){return this.Tc}get uid(){return 0}get videoHeight(){return 0}get videoTracks(){return this.jc}get videoWidth(){return 0}get volume(){return this.Zu.volume}set volume(t){this.Zu.volume=t}get views(){return this.Zu.views}get visibility(){}get layout(){return this.Zu.layout}set layout(t){this.Zu.layout=t}play(){this.Zu.play()}pause(){this.Zu.pause()}stop(){this.Zu.stop()}destroy(){this.Zu.destroy()}prepareWithUserAction(){this.Zu.prepareWithUserAction()}addEventListener(t,i){this.Cc.wn(t,i)}removeEventListener(t,i){this.Cc.pn(t,i)}setSource(t){}constructor(t,i){this.Cc=new F,this.Zu=t,this.Hs=i,this.xc=new nt,this.jc=(new Kt).ma,this.Tc=(new ii).ma,this.Sc=(new ct).ma,this.Zu.addEventListener(["play","pause","seeking","seeked","timeupdate","ended","playing","waiting","sourcechange","readystatechange","loadedmetadata","loadeddata","canplay","canplaythrough","loadstart","progress","durationchange","volumechange","ratechange","error"],this.Cc.Os)}},Rc=class extends ${constructor(t){super(Bc.Pc),this.view=t}},Oc=class extends ${constructor(t,i){super(Bc.VIEW_POSITION_CHANGE),this.oldPosition=t,this.newPosition=i}},Vc=class extends ${constructor(t){super(Bc.Ac),this.view=t}},Uc=class extends ${constructor(t){super(Bc.VIEW_CHANGE),this.view=t}},Lc=class extends ${constructor(t){super(Bc.Mc),this.layout=t}},Hc=class extends F{get Wu(){return this.Ko.Wu}get Ic(){return this.Ko.Ic}get lt(){return this.Ko.Ec}get Dc(){return this.Ko.Dc}get Nc(){return this.Ko.Nc}get Fc(){return this.Ko.Fc}get Bc(){return!1}get $c(){return!1}Ou(){this.Lo()}constructor(t){super(),this.Rc=t=>{this.Os(new Gt(t.source))},this.Oc=t=>{this.Os(new di(t.currentTime))},this.Vc=t=>{this.Os(new ci(t.currentTime))},this.Uc=t=>{this.Os(new Si(t.currentTime))},this.Lc=t=>{this.Os(new Pi(t.currentTime))},this.Hc=t=>{this.Os(new J(t.currentTime,t.currentProgramDateTime))},this.zc=t=>{this.Os(new _i(t.currentTime))},this.Wc=t=>{this.Os(new Vt(t.currentTime))},this.qc=t=>{this.Os(new It(t.currentTime))},this.Gc=t=>{this.Os(new jt(t.currentTime,t.readyState))},this.Xc=t=>{this.Os(new S(t.currentTime,this.Nc))},this.Jc=t=>{this.Os(new Pt(t.currentTime,this.Nc))},this.Qc=t=>{this.Os(new Nt(t.currentTime,this.Nc))},this.Yc=t=>{this.Os(new $t(t.currentTime,this.Nc))},this.Kc=()=>{this.Os(new vt)},this.Zc=t=>{this.Os(new ft(t.currentTime))},this.tl=t=>{this.Os(new mi(t.duration))},this.il=t=>{this.Os(new Ii(this.Wu,t.volume))},this.sl=t=>{this.Os(new bi(this.Wu,t.playbackRate))},this.nl=t=>{this.Os(new Ti(t.errorObject))},this.rl=()=>{this.Os(new K)},this.Ko=t,this.Ko.wn("sourcechange",this.Rc),this.Ko.wn("play",this.Oc),this.Ko.wn("pause",this.Vc),this.Ko.wn("seeking",this.Uc),this.Ko.wn("seeked",this.Lc),this.Ko.wn("timeupdate",this.Hc),this.Ko.wn("ended",this.zc),this.Ko.wn("playing",this.Wc),this.Ko.wn("waiting",this.qc),this.Ko.wn("readystatechange",this.Gc),this.Ko.wn("loadedmetadata",this.Xc),this.Ko.wn("loadeddata",this.Jc),this.Ko.wn("canplay",this.Qc),this.Ko.wn("canplaythrough",this.Yc),this.Ko.wn("loadstart",this.Kc),this.Ko.wn("progress",this.Zc),this.Ko.wn("durationchange",this.tl),this.Ko.wn("volumechange",this.il),this.Ko.wn("ratechange",this.sl),this.Ko.wn("error",this.nl),this.Ko.wn("fullscreenchange",this.rl)}},zc=class{async hl(){const t=this.Ko;if(!t.ol||!t.Dc)return;const i=this.al.mutedAutoplay;switch(await this.ll.cl(t.Xu)){case"all":t.Xu||t.fl(),t.dl();break;case"muted":(t.Xu||i===Ni.ALL)&&(t.Xu=!0,t.dl())}}bn(){this.ll.bn(),this.mn.bn()}constructor(t,i,s){this.Ko=t,this.al=s,this.Sc=new ct,this.mn=new Q(i);const e=new ti(this.mn,this.Sc,1,[rt.vl]);this.ll=new ei(e)}},Wc=[kt.pl,kt.ml,kt.gl,kt.yl],qc="theo-switch-audio-button",Gc="vjs-icon-volume-mute",Xc="vjs-icon-volume-high",Jc="theo-main-view",Qc="theo-layout-";!function(t){t.Pc="addview",t.Ac="removeview",t.VIEW_CHANGE="viewchange",t.VIEW_POSITION_CHANGE="viewpositionchange",t.Mc="layoutchange"}(Bc||(Bc={}));var Yc=class extends F{get ma(){var t;return null!=(t=this.Gu)?t:this.Gu=function(t){return{load:(i,s,e,n)=>t.On(i,s,e,n),get views(){return t.Ku.map((t=>t.ma))},get mainVideoView(){var i;return null==(i=t.zu)?void 0:i.ma},get mainAudioView(){var i;return null==(i=t.ic)?void 0:i.ma},get layout(){return t.ec},set layout(i){t.ec=i},get buffered(){return t.bl},get currentTime(){return t.Wu},set currentTime(i){t.Wu=i},get autoplay(){return t.ol},set autoplay(i){t.ol=i},get duration(){return t.ct},get ended(){return t.Ic},get errorObject(){return t.Ec},get muted(){return t.Xu},set muted(i){t.Xu=i},get paused(){return t.Dc},get playbackRate(){return t.$u},set playbackRate(i){t.$u=i},get played(){return t.wl},get readyState(){return t.Nc},get seekable(){return t.kl},get seeking(){return t.Fc},get volume(){return t._l},set volume(i){t._l=i},play(){t.dl()},pause(){t.jl()},stop(){t.xl()},destroy(){t.Ou(),t=null},requestFullscreen(i){t.Sl(i)},exitFullscreen(){t.Tl()},prepareWithUserAction(){t.fl()},addEventListener(i,s){t.wn(i,s)},removeEventListener(i,s){t.pn(i,s)}}}(this)}get po(){return this.Cl}get Ku(){return this.Pl}get zu(){return this.Al}get ic(){var t;return null!=(t=this.Ml)?t:this.Al}set ic(t){if(this.Ml===t)return;const i=this.ic,s=null!=t?t:this.zu;i.t.removeEventListener(G.Il,this.El),i.kc(!1),i.Xu||(i.sc(!0),s.sc(!1)),s.t.addEventListener(G.Il,this.El),s.kc(!0),this.Ml=t}get ec(){return this.Dl}set ec(t){if(t!==this.Dl){if(this.ec===Mc.OVERLAY)for(const t of this.Ku)t.t.element.style.setProperty("left","auto"),t.t.element.style.setProperty("top","auto"),t.t.element.style.removeProperty("z-index");pi(this.Hs,Qc+this.Dl),this.Dl=t,fi(this.Hs,Qc+this.Dl),this.wc(),this.To(new Lc(t))}}get bl(){if(0===this.Ku.length)return Vi.Nl().ws();return this.Fl().reduce(((t,i)=>t.Cn(Vi.Sn(i.t.buffered))),new Vi([0,1/0])).ws()}get Wu(){return this.Al&&this.Bl?this.Al.t.currentTime+this.Al.Au/1e3:0}set Wu(t){this.$l();const i=this.Fl();let s=null;if(null!==this.qu){s=this.qu;const i=t-this.Wu;s.setSeconds(s.getSeconds()+i)}for(const e of i)e.gc(t,s)}get qu(){if(!this.Al)return null;return this.Ku.every((t=>null!==t.t.currentProgramDateTime))?new Date(this.Al.t.currentProgramDateTime.valueOf()+this.Al.Au):null}get ol(){return this.Rl}set ol(t){this.Rl=t,this.Ol.hl()}get ct(){if(0===this.Ku.length)return NaN;let t=1/0;for(const i of this.Fl())t=w.min(i.t.duration,t);return t}get Ic(){return this.Ku.some((t=>t.t.ended))}get lt(){return this.Ec}get Ec(){if(this.Vl)return this.Vl;for(const t of this.Ku){const i=t.t.errorObject;if(void 0!==i)return i}}get Xu(){var t,i;return null!=(i=null==(t=this.ic)?void 0:t.Xu)&&i}set Xu(t){this.ic&&this.ic.sc(t),this.El()}get Dc(){if(!this.Ku.length)return!0;return this.Fl().some((t=>t.t.paused))}get $u(){var t,i,s;return null!=(s=null!=(i=this.Ul)?i:null==(t=this.Al)?void 0:t.t.playbackRate)?s:1}set $u(t){if(void 0!==this.Ul)this.Ul=t;else for(const i of this.Ku)i.t.playbackRate=t;this.Ll()}get wl(){return this.Ku.reduce(((t,i)=>t.Hl(Vi.Sn(i.t.played))),Vi.Nl()).ws()}get Nc(){if(0===this.Ku.length)return St.zl;let t=St.Wl;for(const i of this.Fl())i.t.readyState<t&&(t=i.t.readyState);return t}get kl(){if(0===this.Ku.length)return Vi.Nl().ws();return this.Fl().reduce(((t,i)=>t.Cn(Vi.Sn(i.t.seekable))),new Vi([0,1/0])).ws()}get Fc(){return this.Ku.some((t=>t.t.seeking))}get _l(){var t,i;return null!=(i=null==(t=this.ic)?void 0:t.t.volume)?i:1}set _l(t){for(const i of this.Ku)i.t.volume=t;this.El()}On(t,i,s,e){if(this.ql)throw this.Vl;const n=this.Ku.filter((i=>i._h===t))[0];return n?n.ma:this.Gl(t,i,s,e)}dl(){if(!this.Al||!this.Dc)return;this.$l();const t=this.Fl();for(const i of t)i.t.play()}jl(){const t=this.Fl();for(const i of t)i.t.pause()}xl(){for(let t=this.Ku.length-1;t>=0;t--)this.bc(this.Ku[t]);this.Al=void 0,this.Ml=void 0,this.Vl=void 0,this.Xl&&(this.Xl.Jl(),this.Xl=void 0),this.Ql=!0,this.Yl=!1,this.Kl=!1,this.Zl=-1,this.tf=St.zl,this.if=!1,this.Ul=void 0,this.sf=!1,this.ef=-1,this.nf=!1,this.rf=-1,this.Bl=!1,this.hf.sr(),this.To(new Gt(void 0))}Ou(){for(let t=this.Ku.length-1;t>=0;t--)this.bc(this.Ku[t]);this.Lo(),this.hf.bn(),this.af.Ou(),this.uf.Ou(),this.Ol.bn(),this.po.dispose()}Sl(t){this.To(new K),this.Hs.requestFullscreen(t).catch(Wt)}Tl(){this.To(new K),h.exitFullscreen().catch(Wt)}fl(){for(const t of this.Ku)t.t.prepareWithUserAction()}Gl(t,i,s,e){const n=h.createElement("div");fi(n,"theo-view"),this.Hs.appendChild(n);const r=new(Qt())(n,this.al).ma;r.source=i;const o=new Fc(t,r,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),o.t.addEventListener("dimensionchange",(()=>{this.cf(t)}))}return this.lf(o),this.Ku.push(o),1===this.Ku.length?(this.Al=o,this.ff(this.Al),fi(this.Al.t.element,Jc)):(this.df(r),0!==this.Wu&&D(this.Ru(o,!0))),this.wc(),this.To(new Rc(o.ma)),o.ma}Fl(){return this.Ku.filter((t=>t.Rt))}vf(){return this.Ku.filter((t=>t.Rt&&t!==this.Al))}df(t){t.volume=this.Al.t.volume,t.muted=!0,t.playbackRate=this.Al.t.playbackRate}lf(t){t.dc=this.Ku.length;const i=t.t.element;i.addEventListener("dblclick",(()=>{this.pf(t)})),i.addEventListener("touchend",(i=>{this.mf>=i.timeStamp?(i.preventDefault(),this.pf(t),this.mf=0):this.mf=i.timeStamp+500}));const s=h.createElement("div"),e=0===this.Ku.length?Xc:Gc;s.className="theo-primary-color "+qc+" "+e,s.addEventListener("click",(()=>{this.ic=t})),s.addEventListener("touchend",(()=>{this.ic=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.gf(t,i),this.yf(t),this.bf(t)}gf(t,i){const s=h.createElement("div");let e=0;const n=i=>{if(this.wf=!0,this.cc(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.Ti=h,t.Ci=h,e=s},o=t=>{this.wf=!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)}cf(t){const i=t.parentElement.clientWidth/100,s=w.min(40,5.23*i);t.style.fontSize=s+"px"}yf(t){const i=t.t.element,s=i.parentElement;let e={x:0,y:0};const n=i=>{if(!this.wf&&t.Ju)if(this.cc(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)}cc(t){for(const i of this.Ku)i.dc>t.dc&&(i.dc-=1,i.t.element.style.setProperty("z-index",""+i.dc));t.dc=this.Ku.length,t.t.element.style.setProperty("z-index",""+t.dc)}$l(){if(void 0!==this.Ul)return;this.Ul=this.$u;const t=this.Fl();for(const i of t)i.t.playbackRate=0}kf(){if(void 0===this.Ul)return;if(this.Fc||this.Nc<St._f){if(this.Al&&!this.Bl){this.Bl=!0;for(const t of this.vf())this.Al.Au!==t.Au&&t.gc(this.Wu,this.qu)}return}const t=this.Fl();for(const i of t)i.t.playbackRate=this.Ul;this.Ul=void 0,this.Bl=!0}lc(t){t.Rt||t!==this.Ml||(this.ic=void 0),this.To(new Uc(t.ma)),this.wc()}async Ru(t,i){void 0===i&&(i=!1),this.$l();const s=t.t;i&&(this.Xl=new O,s.addEventListener(G.do,this.As),await this.Xl.jf,s.removeEventListener(G.do,this.As)),s.readyState===St.zl&&(this.sf=!0,s.play()),this.Dc?s.pause():s.play(),t.gc(this.Wu,this.qu)}wc(){const t=this.Fl();if(!t.length)return;let i=0;switch(this.ec){case Mc.SPOTLIGHT:{t.length>1?this.Hs.style.gridTemplateColumns="80% 20%":this.Hs.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.Hs.style.gridTemplateRows="repeat("+s+", 1fr)"}break}case Mc.OVERLAY:{let s=0;for(i=1;i<t.length;i++){const e=t[i];if(i>=5)e.Rt=!1;else{if(!e.fc){const t=.04+.24*s;e.yc(e.Jh,t,e.Ti,e.Ci,!1),this.cc(e),s++}e.t.element.style.setProperty("z-index",""+e.dc),e.wc()}}break}case Mc.GALLERY:{const s=t.length,e=w.ceil(w.sqrt(s));for(const s of t)i>=9?s.Rt=!1:(s.t.element.style.setProperty("width",100/e+"%"),i++);break}}}tc(t,i){const s=i>=0?w.min(w.floor(i),this.Ku.length-1):0,e=t.yo,n=w.min(e,s),r=w.max(e,s),h=0===n;if(!(!this.Ku[n].Rt||!this.Ku[r].Rt)||!h){if(this.ec===Mc.OVERLAY){const t=this.Ku[r],i=this.Ku[n],s=t.Jh,e=t.Qh,h=t.Ti,o=t.Ci,a=i.fc||t.fc;t.yc(i.Jh,i.Qh,i.Ti,i.Ci,a),[this.Ku[n],this.Ku[r]]=[this.Ku[r],this.Ku[n]],i.yc(s,e,h,o,a)}else[this.Ku[n],this.Ku[r]]=[this.Ku[r],this.Ku[n]];h&&this.xf(this.Ku[0]),this.To(new Oc(e,s))}}bc(t){t===this.Ml&&(this.ic=void 0),t.Ou(),Wi(this.Ku,t),this.wc(),this.To(new Vc(t.ma))}pf(t){this.Ic||0===this.wl.length||this.Al===t||this.Dl===Mc.GALLERY||this.tc(t,0)}xf(t,i){void 0===i&&(i=!1);let s=!1;const e=this.Al;this.Al=t,t.fc=!1,this.Sf(e),pi(e.t.element,Jc),this.Ml||(s=e.Xu,e.sc(!0),e.kc(!1),t.kc(!0),i&&!s?this.To(new Ii(this.Wu,0)):t.sc(s)),this.cc(e),fi(this.Al.t.element,Jc),this.ff(this.Al),this.ec===Mc.OVERLAY&&this.wc()}bf(t){t.t.addEventListener(G.Tf,this.Cf),t.t.addEventListener(G.Pf,this.Mh),t.t.addEventListener(G.Ph,this.Af),t.t.addEventListener(G.Ch,this.Mf),t.t.addEventListener(G.If,this.Xe),t.t.addEventListener(G.Ef,this.Df),t.t.addEventListener(G.Nf,this.Ff),t.t.addEventListener(kt.Bf,this.$f),t.t.addEventListener(dt.aa,this.Ps)}ff(t){t.t.addEventListener(G.Rf,this.Os),t.t.addEventListener(G.Vu,this.Ll),t.t.addEventListener(G.Lu,this.Of),this.Ml||t.t.addEventListener(G.Il,this.El)}Sf(t){t.t.removeEventListener(G.Rf,this.Os),t.t.removeEventListener(G.Vu,this.Ll),t.t.removeEventListener(G.Lu,this.Of),this.Ml||t.t.removeEventListener(G.Il,this.El)}constructor(t,i){super(),this.Pl=[],this.Dl=Mc.GALLERY,this.wf=!1,this.ql=!1,this.Ql=!0,this.Yl=!1,this.Kl=!1,this.Zl=-1,this.tf=St.zl,this.if=!1,this.mf=0,this.Ul=void 0,this.sf=!1,this.Rl=!1,this.ef=-1,this.nf=!1,this.rf=-1,this.Bl=!1,this.Vf=t=>{this.kf(),I((()=>this.Os(t)))},this.Uf=t=>{this.$l(),this.Os(t)},this.As=()=>{var t;null==(t=this.Xl)||t.Lf(),this.Xl=void 0},this.Ll=()=>{const t=this.$u;this.rf!==t&&(this.rf=t,this.Os(new bi(this.Wu,t)))},this.El=()=>{const t=this._l,i=this.Xu;this.ef===t&&this.nf===i||(this.ef=t,this.nf=i,this.Os(new Ii(this.Wu,t)))},this.Of=t=>{(this.Nc>St.Hf||this.Fc)&&this.Os(t)},this.Cf=t=>{this.kf(),this.Fc||(this.Yl=!1,this.Os(t))},this.Ff=t=>{const i=this.ct;this.Zl!==i&&(this.Zl=i,this.Os(t))},this.Ps=t=>{this.Os(t)},this.Af=t=>{if(this.Ql){if(this.sf)return void(this.sf=!1);this.Ql=!1,this.Kl=!1,this.Os(t)}},this.Xe=t=>{this.Yl||(this.Yl=!0,this.Os(t))},this.Mf=t=>{!this.Ql&&this.Dc&&(this.Ql=!0,this.Os(t))},this.Mh=t=>{this.Kl||(this.Kl=!0,this.Os(t))},this.Df=t=>{this.if||(this.if=!0,this.Os(t))},this.$f=t=>{const i=this.Nc;this.tf!==i&&(this.tf=i,this.Os(t))},this.zf=async()=>{try{await this.qf.Wf([B.MULTIVIEW])}catch(t){this.xl(),this.Vl=W(t,U.LICENSE_INVALID_FEATURE),this.ql=!0,this.To(new qt(this.Vl))}},this.Hs=t,this.al=i;const s=Ct.Gf,e=new at,n=new L("7.7.1",s,e),r=new V(i.isEmbeddable,"7.7.1",R());if(this.qf=new ht(s,r,n,e,i,R()),this.qf.Xf().then(this.zf),this.Jf=new $c(this.ma,t),this.Cl=Wu(this.Jf,this.Hs,i.ui),fi(this.Hs,Qc+this.Dl),Ct.Zs.Ks){const t=this.Cl.el();fi(t,"theo-mobile"),qu(t)}this.uf=new Hc(this),this.af=new mt(this.uf),this.af.wn(kt.Qf,this.Vf),this.hf=new Ht(this,!0),this.hf.wn(Wc,this.Os),this.hf.wn(kt.Yf,this.Uf),this.Ol=new zc(this,t,i)}};function Kc(t,i){var s;const e=ic(Di({},i||{},{allowNativeFullscreen:!1,ui:Di({},(null==i?void 0:i.ui)||{},{userActions:Di({},(null==i||null==(s=i.ui)?void 0:s.userActions)||{},{click:!1})}),abr:Di({},(null==i?void 0:i.abr)||{},{restrictToPlayerSize:!0})}));let n=new Yc(t,e).ma;return g.defineProperty(n,"constructor",{value:Kc}),n=Y(n),n}var Zc="vjs-selected",tl=class extends lu{Nr(t){const i=t.Ar,s=this.$r.localize(i.label);Ft(t._h,s),t.el().setAttribute("aria-label",this.$r.localize("Enable/disable")+" "+s),t.el().setAttribute("role","menuitemcheckbox"),t.selected(i.enabled)}Mr(t){const i=super.Mr(t);fi(i.el(),"theo-multi-view-menu-item"),2===this.Cr.length&&fi(i.el(),"theo-multi-view-menu-item-position-zero");const s=h.createElement("span");i._h=s;const e=h.createElement("div");e.className="theo-multi-view-menu-item-toggle",i.jh=e;const n=t=>this.xh(t,i);i.Sh=n,e.addEventListener("click",n);const r=h.createElement("div");return r.className="theo-multi-view-menu-item-toggle-slider",e.appendChild(r),i.el().appendChild(s),i.el().appendChild(e),this.Kf.before(i.el()),i}Zf(){const t=this.Tr.addMenuItem().el();fi(t,"theo-multi-view-menu-item"),fi(t,"theo-multi-view-menu-layout-select");const i=h.createElement("button");i.className="vjs-icon-view-grid",i.addEventListener("click",(()=>{this._s.layout=Mc.GALLERY})),t.appendChild(i),this.td=i;const s=h.createElement("button");s.className="vjs-icon-view-spotlight",s.addEventListener("click",(()=>{this._s.layout=Mc.SPOTLIGHT})),t.appendChild(s),this.sd=s;const e=h.createElement("button");return e.className="vjs-icon-multi-view",e.addEventListener("click",(()=>{this._s.layout=Mc.OVERLAY})),t.appendChild(e),this.ed=e,t}xh(t,i){t.stopImmediatePropagation(),this.Ir(i)}Ir(t){const i=t.Ar;for(const t of this._s.views)t===i&&(t.enabled=!t.enabled);this.Nr(t)}Er(t){t.jh.removeEventListener("click",t.Sh),super.Er(t)}constructor(t,i,s){super(t),this.nd=t=>{this.Sr(t.view)},this.rd=t=>{this.jr(t.view)},this.od=t=>{const i=t.oldPosition,s=t.newPosition,e=w.max(i,s),n=w.min(i,s),r=h.getElementsByClassName("theo-multi-view-menu-item");r[e].before(r[n]),r[n].before(r[e]),0===n&&(pi(r[e],"theo-multi-view-menu-item-position-zero"),fi(r[n],"theo-multi-view-menu-item-position-zero"))},this.ad=()=>{const t=this._s.layout;yi(this.td,Zc,t===Mc.GALLERY),yi(this.sd,Zc,t===Mc.SPOTLIGHT),yi(this.ed,Zc,t===Mc.OVERLAY)},i.views&&(this._s=i,this.$r=s,this._s.multiViewPlayer.addEventListener(Bc.Pc,this.nd),this._s.multiViewPlayer.addEventListener(Bc.Ac,this.rd),this._s.multiViewPlayer.addEventListener(Bc.VIEW_CHANGE,this.nd),this._s.multiViewPlayer.addEventListener(Bc.VIEW_POSITION_CHANGE,this.od),this._s.multiViewPlayer.addEventListener(Bc.Mc,this.ad),Ft(this.Tr.menuHeader.el(),this.$r.localize("MultiView")),this.Kf=this.Zf(),this.ad())}};Ho.registerComponent("multiViewButton",class extends Ca{buildCSSClass(){return"vjs-icon-view-grid "+super.buildCSSClass()}dispose(){this.kh.Ve(),super.dispose()}constructor(t,i){super(t,i),this.minimumMenuItems=3,this.kh=new tl(this.menu,this.ks,t),this.controlText(t.localize("Views")),this.Be.Fe=this.controlText()}});export{Zt as ChromelessPlayer,H as ErrorCategory,U as ErrorCode,Kc as MultiViewPlayer,ec as Player,Ri as cache,Fi as cast,ri as features,li as playerSuiteVersion,vi as players,gi as registerContentProtectionIntegration,si as utils,ai as version,Ho 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,d=(s.setInterval,s.clearInterval,s.Error),v=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,B as A,Ba as M,C as I,Ca as E,D,Da as N,E as F,Ea as B,F as $,Fa as R,G as O,Ga as V,H as U,Ha as L,I as H,Ia as z,J as W,Ja as q,K as G,Ka as X,L as J,La as Q,M as Y,Ma as K,N as Z,Na as tt,O as it,Oa as st,P as et,Pa as nt,Q as rt,Qa as ht,R as ot,Ra as at,S as ut,Sa as ct,T as lt,Ta as ft,U as dt,Ua as vt,V as pt,Va as mt,W as gt,Wa as yt,X as bt,Xa as wt,Y as kt,Ya as _t,Z as jt,Za as xt,_ as St,_a as Tt,a as Ct,aa as Pt,ab as At,b as Mt,ba as It,bb as Et,c as Dt,ca as Nt,cb as Ft,d as Bt,da as $t,db as Rt,e as Ot,ea as Vt,eb as Ut,f as Lt,fa as Ht,fb as zt,g as Wt,ga as qt,gb as Gt,h as Xt,ha as Jt,hb as Qt,i as Yt,ia as Kt,ib as Zt,j as ti,ja as ii,jb as si,k as ei,ka as ni,kb as ri,l as hi,la as oi,lb as ai,m as ui,ma as ci,mb as li,n as fi,na as di,nb as vi,o as pi,oa as mi,ob as gi,p as yi,pa as bi,pb as wi,q as ki,qa as _i,qb as ji,r as xi,ra as Si,rb as Ti,s as Ci,sa as Pi,sb as Ai,t as Mi,ta as Ii,tb as Ei,u as Di,ua as Ni,ub as Fi,v as Bi,va as $i,vb as Ri,w as Oi,wa as Vi,wb as Ui,x as Li,xa as Hi,y as zi,ya as Wi,z as qi,za as Gi}from"./THEOplayer.common.esm.js";var Xi=[];var Ji=[];var Qi=void 0!==a?a:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Yi=void 0!==h?h:{createElement:function(){}};function Ki(t,i){return i||(i=t.slice(0)),t.raw=i,t}var Zi=1;function ts(){return Zi++}var is,ss=g.prototype.toString,es=function(t){return hs(t)?g.keys(t):[]};function ns(t,i){es(t).forEach((function(s){return i(t[s],s)}))}function rs(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&&ns(i,(function(i,s){t[s]=i}))})),t)}function hs(t){return!!t&&"object"==typeof t}function os(t){return hs(t)&&"[object Object]"===ss.call(t)&&t.constructor===g}var as=function(t,i,s){void 0===s&&(s=!!oe&&oe<11),"log"!==t&&i.unshift(t.toUpperCase()+":"),is.history.push(i),i.unshift("VIDEOJS:");var e=Qi.console&&Qi.console[t];e&&(s&&(i=i.map((function(t){if(hs(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"](Qi.console,i):e(i))};(is=function(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];as("log",i)}).history=[],is.error=function(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];return as("error",i)},is.warn=function(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];return as("warn",i)};var us=is,cs="undefined"!=typeof globalThis?globalThis:void 0!==a?a:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ls(t){return t.replace(/\n\r?\s*/g,"")}var fs,ds=function(t){for(var i="",s=0;s<arguments.length;s++)i+=ls(t[s])+(arguments[s+1]||"");return i};function vs(t){return"string"==typeof t&&/\S/.test(t)}function ps(t){if(/\s/.test(t))throw new d("class has illegal whitespace characters")}function ms(){return Yi===Qi.document&&void 0!==Yi.createElement}function gs(t){return hs(t)&&1===t.nodeType}function ys(t){return function(i,s){if(!vs(i))return Yi[t](null);vs(s)&&(s=Yi.querySelector(s));var e=gs(s)?s:Yi;return e[t]&&e[t](i)}}function bs(t,i,s,e){void 0===t&&(t="div"),void 0===i&&(i={}),void 0===s&&(s={});var n=Yi.createElement(t);return g.getOwnPropertyNames(i).forEach((function(t){var s=i[t];-1!==t.indexOf("aria-")||"role"===t||"type"===t?(us.warn(ds(fs||(fs=Ki(["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?ws(n,s):n[t]=s})),g.getOwnPropertyNames(s).forEach((function(t){n.setAttribute(t,s[t])})),e&&Os(n,e),n}function ws(t,i){return void 0===t.textContent?t.innerText=i:t.textContent=i,t}function ks(t,i){i.firstChild?i.insertBefore(t,i.firstChild):i.appendChild(t)}var _s={},js="vdata"+(new Date).getTime();function xs(t){var i=t[js];return i||(i=t[js]=ts()),_s[i]||(_s[i]={}),_s[i]}function Ss(t){var i=t[js];return!!i&&!!g.getOwnPropertyNames(_s[i]).length}function Ts(t){var i=t[js];if(i){delete _s[i];try{delete t[js]}catch(i){t.removeAttribute?t.removeAttribute(js):t[js]=null}}}function Cs(t,i){return ps(i),t.classList?t.classList.contains(i):function(t){return new RegExp("(^|\\s)"+t+"($|\\s)")}(i).test(t.className)}function Ps(t,i){return t.classList?t.classList.add(i):Cs(t,i)||(t.className=(t.className+" "+i).trim()),t}function As(t,i){return t.classList?t.classList.remove(i):(ps(i),t.className=t.className.split(/\s+/).filter((function(t){return t!==i})).join(" ")),t}function Ms(t,i,s){var e=Cs(t,i);if("function"==typeof s&&(s=s(t,i)),"boolean"!=typeof s&&(s=!e),s!==e)return s?Ps(t,i):As(t,i),t}function Is(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 Es(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 Ds(t,i,s){t.setAttribute(i,s)}function Ns(t,i){t.removeAttribute(i)}function Fs(t){var i;if(t.getBoundingClientRect&&t.parentNode&&(i=t.getBoundingClientRect()),!i)return{left:0,top:0};var s=Yi.documentElement,e=Yi.body,n=s.clientLeft||e.clientLeft||0,r=Qi.pageXOffset||e.scrollLeft,h=i.left+r-n,o=s.clientTop||e.clientTop||0,a=Qi.pageYOffset||e.scrollTop,u=i.top+a-o;return{left:w.round(h),top:w.round(u)}}function Bs(t,i){var s={},e=Fs(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 $s(t){return hs(t)&&3===t.nodeType}function Rs(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t}function Os(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()),gs(t)||$s(t)?t:"string"==typeof t&&/\S/.test(t)?Yi.createTextNode(t):void 0})).filter((function(t){return t}))}(i).forEach((function(i){return t.appendChild(i)})),t}function Vs(t,i){return Os(Rs(t),i)}var Us,Ls=ys("querySelector"),Hs=ys("querySelectorAll"),zs=Qi.navigator&&Qi.navigator.userAgent||"",Ws=/AppleWebKit\/([\d.]+)/i.exec(zs),qs=Ws?_(Ws.pop()):null,Gs=/iPad/i.test(zs),Xs=/iPhone/i.test(zs)&&!Gs,Js=/iPod/i.test(zs),Qs=Xs||Gs||Js,Ys=(Us=zs.match(/OS (\d+)_/i))&&Us[1]?Us[1]:null,Ks=/Android/i.test(zs),Zs=function(){var t=zs.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}(),te=Ks&&/webkit/i.test(zs)&&Zs<2.3,ie=Ks&&Zs<5&&qs<537,se=/Firefox/i.test(zs),ee=/Edge/i.test(zs),ne=!ee&&/Chrome/i.test(zs),re=function(){var t=zs.match(/Chrome\/(\d+)/);return t&&t[1]?_(t[1]):null}(),he=/MSIE\s8\.0/.test(zs),oe=function(){var t=/MSIE\s(\d+)\.\d/.exec(zs),i=t&&_(t[1]);return!i&&/Trident\/7.0/i.test(zs)&&/rv:11.0/.test(zs)&&(i=11),i}(),ae=/Safari/i.test(zs)&&!ne&&!Ks&&!ee,ue=ae||Qs,ce=ms()&&("ontouchstart"in Qi||Qi.DocumentTouch&&Qi.document instanceof Qi.DocumentTouch),le=ms()&&"backgroundSize"in Qi.document.createElement("video").style,fe=g.freeze({__proto__:null,IS_IPAD:Gs,IS_IPHONE:Xs,IS_IPOD:Js,IS_IOS:Qs,IOS_VERSION:Ys,IS_ANDROID:Ks,ANDROID_VERSION:Zs,IS_OLD_ANDROID:te,IS_NATIVE_ANDROID:ie,IS_FIREFOX:se,IS_EDGE:ee,IS_CHROME:ne,CHROME_VERSION:re,IS_IE8:he,IE_VERSION:oe,IS_SAFARI:ae,IS_ANY_SAFARI:ue,TOUCH_ENABLED:ce,BACKGROUND_SIZE_SUPPORTED:le});function de(t,i){var s=xs(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&&Ts(t)}function ve(t,i,s,e){s.forEach((function(s){t(i,s,e)}))}function pe(t){function i(){return!0}function s(){return!1}if(!t||!t.isPropagationStopped||!t.isImmediatePropagationStopped){var e=t||Qi.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||Yi),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=Yi.documentElement,h=Yi.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 me=!1;!function(){try{var t=g.defineProperty({},"passive",{get:function(){me=!0}});Qi.addEventListener("test",null,t)}catch(t){}}();var ge=["touchstart","touchmove"];function ye(t,i,s){if(Array.isArray(i))return ve(ye,t,i,s);var e=xs(t);if(e.handlers||(e.handlers={}),e.handlers[i]||(e.handlers[i]=[]),s.guid||(s.guid=ts()),e.handlers[i].push(s),e.dispatcher||(e.disabled=!1,e.dispatcher=function(i,s){if(!e.disabled){i=pe(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){us.error(t)}}}),1===e.handlers[i].length)if(t.addEventListener){var n=!1;me&&ge.indexOf(i)>-1&&(n={passive:!0}),t.addEventListener(i,e.dispatcher,n)}else t.attachEvent&&t.attachEvent("on"+i,e.dispatcher)}function be(t,i,s){if(Ss(t)){var e=xs(t);if(e.handlers){if(Array.isArray(i))return ve(be,t,i,s);var n=function(i){e.handlers[i]=[],de(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);de(t,i)}else n(i)}else for(var o in e.handlers)n(o)}}}function we(t,i,s){var e=Ss(t)?xs(t):{},n=t.parentNode||t.ownerDocument;if("string"==typeof i&&(i={type:i,target:t}),i=pe(i),e.dispatcher&&e.dispatcher.call(t,i,s),n&&!i.isPropagationStopped()&&!0===i.bubbles)we.call(null,n,i,s);else if(!n&&!i.defaultPrevented){var r=xs(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 ke(t,i,s){if(Array.isArray(i))return ve(ke,t,i,s);var e=function e(){be(t,i,e),s.apply(this,arguments)};e.guid=s.guid=s.guid||ts(),ye(t,i,e)}var _e,je=!1,xe=function(){if(ms()){var t=Yi.getElementsByTagName("video"),i=Yi.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){Se(1);break}void 0===u.player&&null!==u.getAttribute("data-setup")&&_e(u)}else je||Se(1)}};function Se(t,i){i&&(_e=i),Qi.setTimeout(xe,t)}ms()&&"complete"===Yi.readyState?je=!0:ke(Qi,"load",(function(){je=!0}));var Te=function(t){var i=Yi.createElement("style");return i.className=t,i},Ce=function(t,i){t.styleSheet?t.styleSheet.cssText=i:t.textContent=i},b=function(t,i,s){i.guid||(i.guid=ts());var e=function(){return i.apply(t,arguments)};return e.guid=s?s+"_"+i.guid:i.guid,e};function Pe(t){return"string"!=typeof t?t:t.charAt(0).toUpperCase()+t.slice(1)}function Ae(){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&&ns(i,(function(i,s){os(i)?(os(t[s])||(t[s]={}),t[s]=Ae(t[s],i)):t[s]=i}))})),t}var t=function(){function t(t,i,s){if(!t&&this.play?this.t=t=this:this.t=t,this.h=Ae({},this.h),i=this.h=Ae(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"+ts()}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),Ts(this.v),this.v=null},i.player=function(){return this.t},i.options=function(t){return us.warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),t?(this.h=Ae(this.h,t),this.h):this.h},i.el=function(){return this.v},i.createEl=function(t,i,s){return bs(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=Pe(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=Pe(i),s||(s={}),!0===s&&(us.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 d("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&&Pe(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||Pe(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))ye(this.v,t,b(this,i));else{var n=t,r=i,h=b(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?(ye(n,r,h),ye(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))be(this.v,t,i);else{var e=t,n=i,r=b(this,s);this.off("dispose",r),t.nodeName?(be(e,n,r),be(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))ke(this.v,t,b(this,i));else{var r=t,h=i,o=b(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 we(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 Ls(t,i||this.contentEl())},i.$$=function(t,i){return Hs(t,i||this.contentEl())},i.hasClass=function(t){return Cs(this.v,t)},i.addClass=function(t){return Ps(this.v,t),this},i.removeClass=function(t){return As(this.v,t),this},i.toggleClass=function(t,i){return Ms(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 Ds(this.v,t,i),this},i.removeAttribute=function(t){return Ns(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"+Pe(t)],10)},i.currentDimension=function(t){var i=0;if("width"!==t&&"height"!==t)throw new d("currentDimension only accepts width or height value");if("function"==typeof Qi.getComputedStyle){var s=Qi.getComputedStyle(this.v);i=s.getPropertyValue(t)||s[t]}if(0===(i=_(i))){var e="offset"+Pe(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=b(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=b(this,t);var s=Qi.setTimeout(t,i),e=function(){this.clearTimeout(s)};return e.guid="vjs-timeout-"+s,this.on("dispose",e),s},i.clearTimeout=function(t){Qi.clearTimeout(t);var i=function(){};return i.guid="vjs-timeout-"+t,this.off("dispose",i),t},i.setInterval=function(t,i){t=b(this,t);var s=Qi.setInterval(t,i),e=function(){this.clearInterval(s)};return e.guid="vjs-interval-"+s,this.on("dispose",e),s},i.clearInterval=function(t){Qi.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=Pe(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 d("Can not register Player component after player has been created")}return t.P[i]=s,s}},t.getComponent=function(i){if(i)return i=Pe(i),t.P&&t.P[i]?t.P[i]:Qi&&Qi.videojs&&Qi.videojs[i]?(us.warn("The "+i+" component was added to the videojs object when it should be registered using videojs.registerComponent(name, component)"),Qi.videojs[i]):void 0},t.extend=function(i){i=i||{},us.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}();t.registerComponent("Component",t);var Me=function(){};function Ie(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ee(t,i){return(Ee=g.setPrototypeOf?g.setPrototypeOf.bind():function(t,i){return t.__proto__=i,t})(t,i)}function De(t,i){t.prototype=g.create(i.prototype),t.prototype.constructor=t,Ee(t,i)}function Ne(t,i,s,e){return void 0===e&&(us.warn("DEPRECATED: Function '"+t+"' on 'TimeRanges' called without an index argument."),e=0),function(t,i,s){if(i<0||i>s)throw new d("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 Fe(t){return void 0===t||0===t.length?{length:0,start:function(){throw new d("This TimeRanges object is empty")},end:function(){throw new d("This TimeRanges object is empty")}}:{length:t.length,start:Ne.bind(null,"start",0,t),end:Ne.bind(null,"end",1,t)}}function Be(t,i){return Array.isArray(t)?Fe(t):void 0===t||void 0===i?Fe():Fe([[t,i]])}function $e(t,i){var s,e,n=0;if(!i)return 0;t&&t.length||(t=Be(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}Me.prototype.A={},Me.prototype.on=function(t,i){var s=this.addEventListener;this.addEventListener=function(){},ye(this,t,i),this.addEventListener=s},Me.prototype.addEventListener=Me.prototype.on,Me.prototype.off=function(t,i){be(this,t,i)},Me.prototype.removeEventListener=Me.prototype.off,Me.prototype.one=function(t,i){var s=this.addEventListener;this.addEventListener=function(){},ke(this,t,i),this.addEventListener=s},Me.prototype.trigger=function(t){var i=t.type||t;"string"==typeof t&&(t={type:i}),t=pe(t),this.A[i]&&this["on"+i]&&this["on"+i](t),we(this,t)},Me.prototype.dispatchEvent=Me.prototype.trigger;var Re,Oe,Ve,Ue,Le={prefixed:!0},He=[["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"]],ze=He[0];for(Oe=0;Oe<He.length;Oe++)if(He[Oe][1]in Yi){Re=He[Oe];break}if(Re){for(Ve=0;Ve<Re.length;Ve++)Le[ze[Ve]]=Re[Ve];Le.prefixed=Re[0]!==ze[0]}function We(t){if(t instanceof We)return t;"number"==typeof t?this.code=t:"string"==typeof t?this.message=t:hs(t)&&("number"==typeof t.code&&(this.code=t.code),rs(this,t)),this.message||(this.message=We.defaultMessages[this.code]||"")}for(We.prototype.code=0,We.prototype.message="",We.prototype.status=null,We.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],We.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."},Ue=0;Ue<We.errorTypes.length;Ue++)We[We.errorTypes[Ue]]=Ue,We.prototype[We.errorTypes[Ue]]=Ue;var qe=function(t,i){var s,e=null;try{s=JSON.parse(t,i)}catch(t){e=t}return[e,s]};var Ge=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}}))})},Xe=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=Ge(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(Ge))},Je=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()},Qe="vjs-modal-dialog",Ye=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).M=e.I=e.D=!1,e.closeable(!e.h.uncloseable),e.content(e.h.content),e.S=bs("div",{className:Qe+"-content"},{role:"document"}),e.N=bs("p",{className:Qe+"-description vjs-offscreen",id:e.el().getAttribute("aria-describedby")}),ws(e.N,e.description()),e.v.appendChild(e.N),e.v.appendChild(e.S),e.on(i,"languagechange",e.handleLanguagechange),e}De(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 Qe+" 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.M){var t=this.player();this.trigger("beforemodalopen"),this.M=!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",b(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.M},s.close=function(){if(this.M){var t=this.player();this.trigger("beforemodalclose"),this.M=!1,this.B&&this.h.pauseOnOpen&&t.play(),this.closeable()&&this.off(this.v.ownerDocument,"keydown",b(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(),Vs(i,t),this.trigger("modalfill"),e?s.insertBefore(i,e):s.appendChild(i),this},s.empty=function(){return this.trigger("beforemodalempty"),Rs(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()),ws(this.N,this.description()),this.opened()?this.fill():(this.I||this.D)&&(this.I=!1,this.D=!1,this.empty())},i}(t);Ye.prototype.h={pauseOnOpen:!0,temporary:!0},t.registerComponent("ModalDialog",Ye);var Ke=function(){function t(i){var s=this;if(he)for(var e in s=Yi.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}}),he)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}(),Ze={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},tn={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},sn={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},en={disabled:"disabled",hidden:"hidden",showing:"showing"},nn=function(t){function i(s){var e;void 0===s&&(s={});var n=Ie(e=t.call(this)||this);if(he)for(var r in n=Yi.createElement("custom"),i.prototype)"constructor"!==r&&(n[r]=i.prototype[r]);var h={id:s.id||["vjs_track",ts()].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||Ie(e)}return De(i,t),i}(Me),rn=function(t){var i=["protocol","hostname","port","pathname","search","hash","host"],s=Yi.createElement("a");s.href=t;var e,n=""===s.host&&"file:"!==s.protocol;n&&((e=Yi.createElement("div")).innerHTML='<a href="'+t+'"></a>',s=e.firstChild,e.setAttribute("style","display:none; position:absolute;"),Yi.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&&Yi.body.removeChild(e),r},hn=function(t){var i=Qi.location,s=rn(t);return(":"===s.protocol?i.protocol:s.protocol)+s.host!==i.protocol+i.host},on={exports:{}};void 0!==a?on.exports=a:void 0!==cs?on.exports=cs:"undefined"!=typeof self?on.exports=self:on.exports={};var an=function(t){var i=un.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)},un=g.prototype.toString;var cn,ln,fn,dn,vn,pn,mn,gn,yn,bn,wn,kn,_n=Array.prototype.slice,jn=g.prototype.toString,xn=function(t){var i=this;if("function"!=typeof i||"[object Function]"!==jn.call(i))throw new v("Function.prototype.bind called on incompatible "+i);for(var s,e=_n.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(_n.call(arguments)));return g(n)===n?n:this}return i.apply(t,e.concat(_n.call(arguments)))})),i.prototype){var o=function(){};o.prototype=i.prototype,s.prototype=new o,o.prototype=null}return s},Sn=Function.prototype.bind||xn,Tn=g.prototype.toString,Cn=function(t){var i=Tn.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]"===Tn.call(t.callee)),s};g.keys||(ln=g.prototype.hasOwnProperty,fn=g.prototype.toString,dn=Cn,vn=g.prototype.propertyIsEnumerable,pn=!vn.call({toString:null},"toString"),mn=vn.call((function(){}),"prototype"),gn=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],yn=function(t){var i=t.constructor;return i&&i.prototype===t},bn={$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},wn=function(){if(void 0===a)return!1;for(var t in a)try{if(!bn["$"+t]&&ln.call(a,t)&&null!==a[t]&&"object"==typeof a[t])try{yn(a[t])}catch(t){return!0}}catch(t){return!0}return!1}(),kn=function(t){if(void 0===a||!wn)return yn(t);try{return yn(t)}catch(t){return!1}},cn=function(t){var i=null!==t&&"object"==typeof t,s="[object Function]"===fn.call(t),e=dn(t),n=i&&"[object String]"===fn.call(t),r=[];if(!i&&!s&&!e)throw new v("Object.keys called on a non-object");var h=mn&&s;if(n&&t.length>0&&!ln.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||!ln.call(t,u)||r.push(String(u));if(pn)for(var c=kn(t),l=0;l<gn.length;++l)c&&"constructor"===gn[l]||!ln.call(t,gn[l])||r.push(gn[l]);return r});var Pn=cn,An=Array.prototype.slice,Mn=Cn,In=g.keys,En=In?function(t){return In(t)}:Pn,Dn=g.keys;En.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 Mn(t)?Dn(An.call(t)):Dn(t)})}else g.keys=En;return g.keys||En};var Nn=En,Fn="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),Bn=g.prototype.toString,$n=Array.prototype.concat,Rn=g.defineProperty,On=Rn&&function(){var t={};try{for(var i in Rn(t,"x",{enumerable:!1,value:t}),t)return!1;return t.x===t}catch(t){return!1}}(),Vn=function(t,i,s,e){(!(i in t)||function(t){return"function"==typeof t&&"[object Function]"===Bn.call(t)}(e)&&e())&&(On?Rn(t,i,{configurable:!0,enumerable:!1,value:s,writable:!0}):t[i]=s)},Un=function(t,i){var s=arguments.length>2?arguments[2]:{},e=Nn(i);Fn&&(e=$n.call(e,g.getOwnPropertySymbols(i)));for(var n=0;n<e.length;n+=1)Vn(t,e[n],i[e[n]],s[e[n]])};Un.supportsDescriptors=!!On;var Ln,Hn=Un,zn=g.getOwnPropertyDescriptor?function(){return g.getOwnPropertyDescriptor(arguments,"callee").get}():function(){throw new v},Wn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,qn=g.getPrototypeOf||function(t){return t.__proto__},Gn=void 0===x?Ln:qn(x),Xn={"$ %Array%":Array,"$ %ArrayBuffer%":"undefined"==typeof ArrayBuffer?Ln:ArrayBuffer,"$ %ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?Ln:ArrayBuffer.prototype,"$ %ArrayIteratorPrototype%":Wn?qn([][Symbol.iterator]()):Ln,"$ %ArrayPrototype%":Array.prototype,"$ %ArrayProto_entries%":Array.prototype.entries,"$ %ArrayProto_forEach%":Array.prototype.forEach,"$ %ArrayProto_keys%":Array.prototype.keys,"$ %ArrayProto_values%":Array.prototype.values,"$ %AsyncFromSyncIteratorPrototype%":Ln,"$ %AsyncFunction%":undefined,"$ %AsyncFunctionPrototype%":Ln,"$ %AsyncGenerator%":Ln,"$ %AsyncGeneratorFunction%":undefined,"$ %AsyncGeneratorPrototype%":Ln,"$ %AsyncIteratorPrototype%":Ln,"$ %Atomics%":"undefined"==typeof Atomics?Ln:Atomics,"$ %Boolean%":Boolean,"$ %BooleanPrototype%":Boolean.prototype,"$ %DataView%":"undefined"==typeof DataView?Ln:DataView,"$ %DataViewPrototype%":"undefined"==typeof DataView?Ln:DataView.prototype,"$ %Date%":Date,"$ %DatePrototype%":Date.prototype,"$ %decodeURI%":decodeURI,"$ %decodeURIComponent%":decodeURIComponent,"$ %encodeURI%":encodeURI,"$ %encodeURIComponent%":encodeURIComponent,"$ %Error%":d,"$ %ErrorPrototype%":d.prototype,"$ %eval%":eval,"$ %EvalError%":EvalError,"$ %EvalErrorPrototype%":EvalError.prototype,"$ %Float32Array%":"undefined"==typeof Float32Array?Ln:Float32Array,"$ %Float32ArrayPrototype%":"undefined"==typeof Float32Array?Ln:Float32Array.prototype,"$ %Float64Array%":"undefined"==typeof Float64Array?Ln:Float64Array,"$ %Float64ArrayPrototype%":"undefined"==typeof Float64Array?Ln:Float64Array.prototype,"$ %Function%":Function,"$ %FunctionPrototype%":Function.prototype,"$ %Generator%":Ln,"$ %GeneratorFunction%":undefined,"$ %GeneratorPrototype%":Ln,"$ %Int8Array%":"undefined"==typeof Int8Array?Ln:Int8Array,"$ %Int8ArrayPrototype%":"undefined"==typeof Int8Array?Ln:Int8Array.prototype,"$ %Int16Array%":"undefined"==typeof Int16Array?Ln:Int16Array,"$ %Int16ArrayPrototype%":"undefined"==typeof Int16Array?Ln:Int8Array.prototype,"$ %Int32Array%":"undefined"==typeof Int32Array?Ln:Int32Array,"$ %Int32ArrayPrototype%":"undefined"==typeof Int32Array?Ln:Int32Array.prototype,"$ %isFinite%":isFinite,"$ %isNaN%":j,"$ %IteratorPrototype%":Wn?qn(qn([][Symbol.iterator]())):Ln,"$ %JSON%":JSON,"$ %JSONParse%":JSON.parse,"$ %Map%":"undefined"==typeof Map?Ln:Map,"$ %MapIteratorPrototype%":"undefined"!=typeof Map&&Wn?qn((new Map)[Symbol.iterator]()):Ln,"$ %MapPrototype%":"undefined"==typeof Map?Ln: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?Ln:Promise,"$ %PromisePrototype%":"undefined"==typeof Promise?Ln:Promise.prototype,"$ %PromiseProto_then%":"undefined"==typeof Promise?Ln:Promise.prototype.then,"$ %Promise_all%":"undefined"==typeof Promise?Ln:Promise.all,"$ %Promise_reject%":"undefined"==typeof Promise?Ln:Promise.reject,"$ %Promise_resolve%":"undefined"==typeof Promise?Ln:Promise.resolve,"$ %Proxy%":"undefined"==typeof Proxy?Ln:Proxy,"$ %RangeError%":RangeError,"$ %RangeErrorPrototype%":RangeError.prototype,"$ %ReferenceError%":ReferenceError,"$ %ReferenceErrorPrototype%":ReferenceError.prototype,"$ %Reflect%":"undefined"==typeof Reflect?Ln:Reflect,"$ %RegExp%":RegExp,"$ %RegExpPrototype%":RegExp.prototype,"$ %Set%":"undefined"==typeof Set?Ln:Set,"$ %SetIteratorPrototype%":"undefined"!=typeof Set&&Wn?qn((new Set)[Symbol.iterator]()):Ln,"$ %SetPrototype%":"undefined"==typeof Set?Ln:Set.prototype,"$ %SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?Ln:SharedArrayBuffer,"$ %SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?Ln:SharedArrayBuffer.prototype,"$ %String%":String,"$ %StringIteratorPrototype%":Wn?qn(""[Symbol.iterator]()):Ln,"$ %StringPrototype%":String.prototype,"$ %Symbol%":Wn?Symbol:Ln,"$ %SymbolPrototype%":Wn?Symbol.prototype:Ln,"$ %SyntaxError%":m,"$ %SyntaxErrorPrototype%":m.prototype,"$ %ThrowTypeError%":zn,"$ %TypedArray%":Gn,"$ %TypedArrayPrototype%":Gn?Gn.prototype:Ln,"$ %TypeError%":v,"$ %TypeErrorPrototype%":v.prototype,"$ %Uint8Array%":void 0===x?Ln:x,"$ %Uint8ArrayPrototype%":void 0===x?Ln:x.prototype,"$ %Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?Ln:Uint8ClampedArray,"$ %Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?Ln:Uint8ClampedArray.prototype,"$ %Uint16Array%":"undefined"==typeof Uint16Array?Ln:Uint16Array,"$ %Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?Ln:Uint16Array.prototype,"$ %Uint32Array%":"undefined"==typeof Uint32Array?Ln:Uint32Array,"$ %Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?Ln:Uint32Array.prototype,"$ %URIError%":URIError,"$ %URIErrorPrototype%":URIError.prototype,"$ %WeakMap%":"undefined"==typeof WeakMap?Ln:WeakMap,"$ %WeakMapPrototype%":"undefined"==typeof WeakMap?Ln:WeakMap.prototype,"$ %WeakSet%":"undefined"==typeof WeakSet?Ln:WeakSet,"$ %WeakSetPrototype%":"undefined"==typeof WeakSet?Ln:WeakSet.prototype},Jn=function(t,i){if(arguments.length>1&&"boolean"!=typeof i)throw new v('"allowMissing" argument must be a boolean');var s="$ "+t;if(!(s in Xn))throw new m("intrinsic "+t+" does not exist!");if(void 0===Xn[s]&&!i)throw new v("intrinsic "+t+" exists, but is not available. Please file an issue!");return Xn[s]},Qn=Sn.call(Function.call,g.prototype.hasOwnProperty),Yn=Jn,Kn=Yn("%TypeError%"),Zn=Yn("%SyntaxError%"),tr=Qn,ir={"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(tr(i,e)&&!s[e])return!1;var n=tr(i,"[[Value]]"),r=tr(i,"[[Get]]")||tr(i,"[[Set]]");if(n&&r)throw new Kn("Property Descriptors may not be both accessor and data descriptors");return!0}},sr=Number.isNaN||function(t){return t!=t},er=Number.isNaN||function(t){return t!=t},nr=Number.isFinite||function(t){return"number"==typeof t&&!er(t)&&t!==1/0&&t!==-1/0},rr=Function.prototype.toString,hr=/^\s*class\b/,or=function(t){try{var i=rr.call(t);return hr.test(i)}catch(t){return!1}},ar=g.prototype.toString,ur="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,cr=function(t){if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if("function"==typeof t&&!t.prototype)return!0;if(ur)return function(t){try{return!or(t)&&(rr.call(t),!0)}catch(t){return!1}}(t);if(or(t))return!1;var i=ar.call(t);return"[object Function]"===i||"[object GeneratorFunction]"===i},lr=g.prototype.toString,fr=function(t){return null===t||"function"!=typeof t&&"object"!=typeof t},dr=cr,vr=function(t){var i;if((i=arguments.length>1?arguments[1]:"[object Date]"===lr.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(dr(t[n[e]])&&(s=t[n[e]](),fr(s)))return s;throw new v("No default value")}throw new v("invalid [[DefaultValue]] hint supplied")},pr=Jn,mr=pr("%Object%"),gr=pr("%TypeError%"),yr=pr("%String%"),br=function(t,i,s,e){var n=ir[i];if("function"!=typeof n)throw new Zn("unknown record type: "+i);if(!n(t,e))throw new Kn(s+" must be a "+i);console.log(n(t,e),e)},wr=sr,kr=nr,_r=function(t){return t>=0?1:-1},jr=function(t,i){var s=t%i;return w.floor(s>=0?s:s+i)},xr=Qn,Sr={ToPrimitive:function(t){return fr(t)?t:arguments.length>1?vr(t,arguments[1]):vr(t)},ToBoolean:function(t){return!!t},ToNumber:function(t){return+t},ToInteger:function(t){var i=this.ToNumber(t);return wr(i)?0:0!==i&&kr(i)?_r(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(wr(i)||0===i||!kr(i))return 0;var s=_r(i)*w.floor(w.abs(i));return jr(s,65536)},ToString:function(t){return yr(t)},ToObject:function(t){return this.CheckObjectCoercible(t),mr(t)},CheckObjectCoercible:function(t,i){if(null==t)throw new gr(i||"Cannot call method on "+t);return t},IsCallable:cr,SameValue:function(t,i){return t===i?0!==t||1/t==1/i:wr(t)&&wr(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(xr(t,s)&&!i[s])return!1;var e=xr(t,"[[Value]]"),n=xr(t,"[[Get]]")||xr(t,"[[Set]]");if(e&&n)throw new gr("Property Descriptors may not be both accessor and data descriptors");return!0},IsAccessorDescriptor:function(t){return void 0!==t&&(br(this,"Property Descriptor","Desc",t),!(!xr(t,"[[Get]]")&&!xr(t,"[[Set]]")))},IsDataDescriptor:function(t){return void 0!==t&&(br(this,"Property Descriptor","Desc",t),!(!xr(t,"[[Value]]")&&!xr(t,"[[Writable]]")))},IsGenericDescriptor:function(t){return void 0!==t&&(br(this,"Property Descriptor","Desc",t),!this.IsAccessorDescriptor(t)&&!this.IsDataDescriptor(t))},FromPropertyDescriptor:function(t){if(void 0===t)return t;if(br(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 gr("FromPropertyDescriptor must be called with a fully populated Property Descriptor")},ToPropertyDescriptor:function(t){if("Object"!==this.Type(t))throw new gr("ToPropertyDescriptor requires an object");var i={};if(xr(t,"enumerable")&&(i["[[Enumerable]]"]=this.ToBoolean(t.enumerable)),xr(t,"configurable")&&(i["[[Configurable]]"]=this.ToBoolean(t.configurable)),xr(t,"value")&&(i["[[Value]]"]=t.value),xr(t,"writable")&&(i["[[Writable]]"]=this.ToBoolean(t.writable)),xr(t,"get")){var s=t.get;if(void 0!==s&&!this.IsCallable(s))throw new v("getter must be a function");i["[[Get]]"]=s}if(xr(t,"set")){var e=t.set;if(void 0!==e&&!this.IsCallable(e))throw new gr("setter must be a function");i["[[Set]]"]=e}if((xr(i,"[[Get]]")||xr(i,"[[Set]]"))&&(xr(i,"[[Value]]")||xr(i,"[[Writable]]")))throw new gr("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return i}},Tr=Sn.call(Function.call,String.prototype.replace),Cr=/^[\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]+/,Pr=/[\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]+$/,Ar=function(){var t=Sr.ToString(Sr.CheckObjectCoercible(this));return Tr(Tr(t,Cr,""),Pr,"")},Mr=Ar,Ir=function(){return String.prototype.trim&&"\u200b"==="\u200b".trim()?String.prototype.trim:Mr},Er=Hn,Dr=Ir,Nr=Hn,Fr=Ar,Br=Ir,$r=function(){var t=Dr();return Er(String.prototype,{trim:t},{trim:function(){return String.prototype.trim!==t}}),t},Rr=Sn.call(Function.call,Br());Nr(Rr,{getPolyfill:Br,implementation:Fr,shim:$r});var Or=Rr,Vr=cr,Ur=g.prototype.toString,Lr=g.prototype.hasOwnProperty,Hr=Or,zr=function(t,i,s){if(!Vr(i))throw new v("iterator must be a function");var e;arguments.length>=3&&(e=s),"[object Array]"===Ur.call(t)?function(t,i,s){for(var e=0,n=t.length;e<n;e++)Lr.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)Lr.call(t,e)&&(null==s?i(t[e],e,t):i.call(s,t[e],e,t))}(t,i,e)},Wr=function(){for(var t={},i=0;i<arguments.length;i++){var s=arguments[i];for(var e in s)qr.call(s,e)&&(t[e]=s[e])}return t},qr=g.prototype.hasOwnProperty;var Gr=on.exports,Xr=an,Jr=function(t){if(!t)return{};var i={};return zr(Hr(t).split("\n"),(function(t){var s=t.indexOf(":"),e=Hr(t.slice(0,s)).toLowerCase(),n=Hr(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},Qr=Wr,Yr=Zr;function Kr(t,i,s){var e=t;return Xr(i)?(s=i,"string"==typeof t&&(e={uri:t})):e=Qr(i,{uri:t}),e.callback=s,e}function Zr(t,i,s){return th(i=Kr(t,i,s))}function th(t){if(void 0===t.callback)throw new d("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:v,rawRequest:l};function r(t){return c(f),t instanceof d||(t=new d(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,s(t,n)}function h(){if(!a){var i;c(f),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:v,rawRequest:l},l.getAllResponseHeaders&&(r.headers=Jr(l.getAllResponseHeaders()))):h=new d("Internal XMLHttpRequest Error"),s(h,r,r.body)}}var o,a,l=t.xhr||null;l||(l=t.cors||t.useXDR?new Zr.XDomainRequest:new Zr.XMLHttpRequest);var f,v=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,v,!y,t.username,t.password),y||(l.withCredentials=!!t.withCredentials),!y&&t.timeout>0&&(f=u((function(){a=!0,l.abort("timeout");var t=new d("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 d("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}Zr.XMLHttpRequest=Gr.XMLHttpRequest||function(){},Zr.XDomainRequest="withCredentials"in new Zr.XMLHttpRequest?Zr.XMLHttpRequest:Gr.XDomainRequest,function(t,i){for(var s=0;s<t.length;s++)i(t[s])}(["get","put","post","patch","head","delete"],(function(t){Zr["delete"===t?"del":t]=function(i,s,e){return(s=Kr(i,s,e)).method=t.toUpperCase(),th(s)}}));var ih=function(t,i){var s=new Qi.WebVTT.Parser(Qi,Qi.vttjs,Qi.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&&(Qi.console&&Qi.console.groupCollapsed&&Qi.console.groupCollapsed("Text Track parsing errors for "+i.src),e.forEach((function(t){return us.error(t)})),Qi.console&&Qi.console.groupEnd&&Qi.console.groupEnd()),s.flush()},sh=function(t){function i(s){var e;if(void 0===s&&(s={}),!s.tech)throw new d("A tech was not provided.");var n=Ae(s,{kind:sn[s.kind]||"subtitles",language:s.language||s.srclang||""}),r=en[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,he)for(var a in i.prototype)"constructor"!==a&&(o[a]=i.prototype[a]);o.L=[],o.W=[];var u=new Ke(o.L),c=new Ke(o.W),l=!1,f=b(o,(function(){this.activeCues,l&&(this.trigger("cuechange"),l=!1)}));return"disabled"!==r&&o.H.ready((function(){o.H.on("timeupdate",f)}),!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;en[t]&&("showing"===(r=t)&&this.H.ready((function(){i.H.on("timeupdate",f)}),!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=hn(t);e&&(s.cors=e),Yr(s,b(this,(function(t,s,e){if(t)return us.error(t,s);if(i.q=!0,"function"!=typeof Qi.WebVTT){if(i.H){var n=function(){return ih(e,i)};i.H.on("vttjsloaded",n),i.H.on("vttjserror",(function(){us.error("vttjs failed to load, stopping trying to process "+i.src),i.H.off("vttjsloaded",n)}))}}else ih(e,i)})))}(n.src,o)):o.q=!0,o||Ie(e)}De(i,t);var s=i.prototype;return s.addCue=function(t){var i=t;if(Qi.vttjs&&!(t instanceof Qi.vttjs.VTTCue)){for(var s in i=new Qi.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}(nn);sh.prototype.A={cuechange:"cuechange"};var eh=function(t){function i(s){var e,n;void 0===s&&(s={});var r=Ie(e=t.call(this)||this);if(he)for(var h in r=Yi.createElement("custom"),i.prototype)"constructor"!==h&&(r[h]=i.prototype[h]);var o=new sh(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})})),he?r||Ie(e):e}return De(i,t),i}(Me);eh.prototype.A={load:"load"},eh.NONE=0,eh.LOADING=1,eh.LOADED=2,eh.ERROR=3;var nh,rh=function(){function t(i){void 0===i&&(i=[]);var s=this;if(he)for(var e in s=Yi.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(he)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}(),hh=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=Ie(n),he))for(var r in e=Yi.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||Ie(n)}De(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}(Me);for(nh in hh.prototype.A={change:"change",addtrack:"addtrack",removetrack:"removetrack"},hh.prototype.A)hh.prototype["on"+nh]=null;var oh=function(t){function i(s){var e,n;if(void 0===s&&(s=[]),he){for(var r in n=Yi.createElement("custom"),hh.prototype)"constructor"!==r&&(n[r]=hh.prototype[r]);for(var h in i.prototype)"constructor"!==h&&(n[h]=i.prototype[h])}return(n=e=t.call(this,s,n)||this)||Ie(e)}return De(i,t),i.prototype.tt=function(i){t.prototype.tt.call(this,i),i.addEventListener("modechange",b(this,(function(){this.trigger("change")})))},i}(hh),ah=function(t,i){for(var s=0;s<t.length;s++)i.id!==t[s].id&&(t[s].selected=!1)},uh=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){ah(s,s[r]);break}if(he){for(var h in n=Yi.createElement("custom"),hh.prototype)"constructor"!==h&&(n[h]=hh.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||Ie(e)}De(i,t);var s=i.prototype;return s.tt=function(i){var s=this;i.selected&&ah(this,i),t.prototype.tt.call(this,i),i.addEventListener&&i.addEventListener("selectedchange",(function(){s.st||(s.st=!0,ah(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}(hh),ch=function(t,i){for(var s=0;s<t.length;s++)i.id!==t[s].id&&(t[s].enabled=!1)},lh=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){ch(s,s[r]);break}if(he){for(var h in n=Yi.createElement("custom"),hh.prototype)"constructor"!==h&&(n[h]=hh.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||Ie(e)}De(i,t);var s=i.prototype;return s.tt=function(i){var s=this;i.enabled&&ch(this,i),t.prototype.tt.call(this,i),i.addEventListener&&i.addEventListener("enabledchange",(function(){s.st||(s.st=!0,ch(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}(hh),fh=void 0;var dh=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 oh,e.initTextTrackListeners(),e.initTrackListeners(),i.nativeControlsForTouch||e.emitTapEvents(),e.constructor&&(e.l=e.constructor.name||"Unknown Tech"),e}De(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(b(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 Be(0,0)},s.bufferedPercent=function(){return $e(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 We(t),this.trigger("error")),this.lt},s.played=function(){return this.et?Be(0,0):Be()},s.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},s.initTextTrackListeners=function(){var t=b(this,(function(){this.trigger("texttrackchange")})),i=this.textTracks();i&&(i.addEventListener("removetrack",t),i.addEventListener("addtrack",t),this.on("dispose",b(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.ft=function(){var t=this;if(!Qi.WebVTT)if(Yi.body.contains(this.el())){if(!this.h["vtt.js"]&&os(fh)&&g.keys(fh).length>0)return void this.trigger("vttjsloaded");var i=Yi.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})),Qi.WebVTT=!0,this.el().parentNode.appendChild(i)}else this.ready(this.ft)},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.ft();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 uh,this.rt},s.audioTracks=function(){return this.ht=this.ht||new lh,this.ht},s.textTracks=function(){return this.nt=this.nt||new oh,this.nt},s.remoteTextTracks=function(){return this.dt=this.dt||new oh,this.dt},s.remoteTextTrackEls=function(){return this.vt=this.vt||new rh,this.vt},s.addTextTrack=function(t,i,s){if(!t)throw new d("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 sh(n);return r.tt(h),h}(this,t,i,s)},s.createRemoteTextTrack=function(t){var i=Ae(t,{tech:this});return new eh(i)},s.addRemoteTextTrack=function(t,i){void 0===t&&(t={});var s=this.createRemoteTextTrack(t);return!0!==i&&!1!==i&&(us.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 d("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]:Qi&&Qi.videojs&&Qi.videojs[t]?(us.warn("The "+t+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),Qi.videojs[t]):void 0},i}(t);dh.prototype.nt,dh.prototype.ht,dh.prototype.rt,dh.prototype.featuresVolumeControl=!0,dh.prototype.featuresFullscreenResize=!1,dh.prototype.featuresPlaybackRate=!1,dh.prototype.featuresProgressEvents=!1,dh.prototype.featuresTimeupdateEvents=!1,dh.prototype.featuresNativeTextTracks=!1,dh.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:us.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)}},t.registerComponent("Tech",dh),t.registerComponent("MediaTechController",dh),dh.registerTech("Tech",dh);var vh=function(i){function s(s,e,n){var r;if(r=i.call(this,s,e,n)||this,e.playerOptions.sources&&0!==e.playerOptions.sources.length)s.src(e.playerOptions.sources);else for(var h=0,o=e.playerOptions.techOrder;h<o.length;h++){var a=Pe(o[h]),u=dh.getTech(a);if(a||(u=t.getComponent(a)),u&&u.isSupported()){s._t(a);break}}return r}return De(s,i),s}(t);t.registerComponent("MediaLoader",vh);var ph=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}De(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=rs({className:this.buildCSSClass(),tabIndex:0},s),"button"===i&&us.error("Creating a ClickableComponent with an HTML element of "+i+" is not supported; use a Button instead."),e=rs({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=bs("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){ye(Yi,"keydown",b(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){be(Yi,"keydown",b(this,this.handleKeyPress))},i}(t);t.registerComponent("ClickableComponent",ph);var mh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).update(),i.on("posterchange",b(Ie(e),e.update)),e}De(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=bs("div",{className:"vjs-poster",tabIndex:-1});return le||(this.Tt=bs("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}(ph);t.registerComponent("PosterImage",mh);var gh="#222",yh={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 bh(t,i){return"rgba("+k(t[1]+t[1],16)+","+k(t[2]+t[2],16)+","+k(t[3]+t[3],16)+","+i+")"}function wh(t,i,s){try{t.style[i]=s}catch(t){return}}var kh=function(t){function i(i,s,e){var n;return n=t.call(this,i,s,e)||this,i.on("loadstart",b(Ie(n),n.toggleDisplay)),i.on("texttrackchange",b(Ie(n),n.updateDisplay)),i.ready(b(Ie(n),(function(){if(i.H&&i.H.featuresNativeTextTracks)this.hide();else{i.on("fullscreenchange",b(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}De(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 Qi.WebVTT&&Qi.WebVTT.processCues(Qi,[],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 Qi.WebVTT&&t.activeCues){for(var i=this.t.textTrackSettings.getValues(),s=[],e=0;e<t.activeCues.length;e++)s.push(t.activeCues[e]);Qi.WebVTT.processCues(Qi,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&&wh(h.firstChild,"color",bh(i.color||"#fff",i.textOpacity)),i.backgroundColor&&(h.firstChild.style.backgroundColor=i.backgroundColor),i.backgroundOpacity&&wh(h.firstChild,"backgroundColor",bh(i.backgroundColor||"#000",i.backgroundOpacity)),i.windowColor&&(i.windowOpacity?wh(h,"backgroundColor",bh(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 "+gh:"raised"===i.edgeStyle?h.firstChild.style.textShadow="1px 1px #222, 2px 2px #222, 3px 3px "+gh:"depressed"===i.edgeStyle?h.firstChild.style.textShadow="1px 1px #ccc, 0 1px #ccc, -1px -1px #222, 0 -1px "+gh:"uniform"===i.edgeStyle&&(h.firstChild.style.textShadow="0 0 4px #222, 0 0 4px #222, 0 0 4px #222, 0 0 4px "+gh)),i.fontPercent&&1!==i.fontPercent){var o=Qi.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=yh[i.fontFamily])}}}},i}(t);t.registerComponent("TextTrackDisplay",kh);var _h=function(t){function i(){return t.apply(this,arguments)||this}return De(i,t),i.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"})},i}(t);t.registerComponent("LoadingSpinner",_h);var jh=function(i){function s(){return i.apply(this,arguments)||this}De(s,i);var e=s.prototype;return e.createEl=function(i,s,e){void 0===i&&(i="button"),void 0===s&&(s={}),void 0===e&&(e={}),s=rs({className:this.buildCSSClass()},s),"button"!==i&&(us.warn("Creating a Button with an HTML element of "+i+" is deprecated; use ClickableComponent instead."),s=rs({tabIndex:0},s),e=rs({role:"button"},e)),e=rs({type:"button","aria-live":"polite"},e);var n=t.prototype.createEl.call(this,i,s,e);return this.createControlTextEl(n),n},e.addChild=function(i,s){void 0===s&&(s={});var e=this.constructor.name;return us.warn("Adding an actionable (user controllable) child to a Button ("+e+") is not supported; use a ClickableComponent instead."),t.prototype.addChild.call(this,i,s)},e.enable=function(){i.prototype.enable.call(this),this.v.removeAttribute("disabled")},e.disable=function(){i.prototype.disable.call(this),this.v.setAttribute("disabled","disabled")},e.handleKeyPress=function(t){32!==t.which&&13!==t.which&&i.prototype.handleKeyPress.call(this,t)},s}(ph);t.registerComponent("Button",jh);var xh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).Ct=!1,e.on("mousedown",e.handleMouseDown),e}De(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}(jh);xh.prototype.St="Play Video",t.registerComponent("BigPlayButton",xh);var Sh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).controlText(s&&s.controlText||"Close"),e}De(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}(jh);t.registerComponent("CloseButton",Sh);var Th=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}De(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}(jh);function Ch(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)}Th.prototype.St="Play",t.registerComponent("PlayToggle",Th);var Ph=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}De(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=bs("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=Ch(i,this.t.duration());e!==this.Pt&&(this.Pt=e,this.S.innerHTML='<span class="vjs-control-text">'+s+"</span> "+e)},i}(t);t.registerComponent("CurrentTimeDisplay",Ph);var Ah=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}De(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=bs("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=Ch(i);this.S.innerHTML='<span class="vjs-control-text">'+s+"</span> "+e}},i}(t);t.registerComponent("DurationDisplay",Ah);var Mh=function(t){function i(){return t.apply(this,arguments)||this}return De(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}(t);t.registerComponent("TimeDivider",Mh);var Ih=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}De(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=bs("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=Ch(this.t.remainingTime());s!==this.Pt&&(this.Pt=s,this.S.innerHTML='<span class="vjs-control-text">'+i+"</span> -"+s)}},i}(t);t.registerComponent("RemainingTimeDisplay",Ih);var Eh=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}De(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=bs("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.xt=bs("span",{className:"vjs-control-text",innerHTML:this.localize("Stream Type")}),this.At=Yi.createTextNode(this.localize("LIVE")),this.S.appendChild(this.xt),this.S.appendChild(this.At),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.At.innerHTML=this.localize("LIVE")},i}(t);t.registerComponent("LiveDisplay",Eh);var Dh=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}De(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=rs({tabIndex:0},s),e=rs({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(),Yi.body.focus(),Yi.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;Yi.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=Bs(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.Mt||!1:(this.Mt=!!t,this.Mt?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal"),this)},i}(t);function Nh(t,i){if(!t||!i)return"";if("function"==typeof Qi.getComputedStyle){var s=Qi.getComputedStyle(t);return s?s[i]:""}return t.currentStyle[i]||""}t.registerComponent("Slider",Dh);var Fh=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}De(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=bs("span",{innerHTML:this.localize("Loaded")}),this.Dt=Yi.createTextNode(": 0%"),this.xt=bs("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(bs()),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}(t);t.registerComponent("LoadProgressBar",Fh);var Bh=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(b(Ie(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}De(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=bs("span",{innerHTML:this.localize("Progress")}),this.Ft=Yi.createTextNode(": 0%"),this.xt=bs("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",Ch(i,this.t.duration()))},s.handleLanguagechange=function(){this.Nt.innerHTML=this.localize("Progress")},i}(t);t.registerComponent("PlayProgressBar",Bh);var $h=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(b(Ie(e),e.updateDataAttr)),e}De(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=bs("div",{className:"vjs-time-tooltip"}),this.Nt=bs("span",{innerHTML:this.localize("Progress")}),this.Ft=Yi.createTextNode(": 0%"),this.xt=bs("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=Ch(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}(t);t.registerComponent("TooltipProgressBar",$h);var Rh=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(b(Ie(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}De(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=_(Nh(this.player().el(),"width")),s=_(Nh(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",Ch(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}(Dh);Rh.prototype.h={children:["loadProgressBar","mouseTimeDisplay","playProgressBar"],barName:"playProgressBar"},Rh.prototype.playerEvent="timeupdate",t.registerComponent("SeekBar",Rh);var Oh=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=bs("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)}}(b(Ie(e),e.handleMouseMove),25))})),e}De(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-Fs(this.el().parentNode).left;this.update(s,e)},s.update=function(t,i){var s=Ch(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=_(Nh(this.tooltip,"width"))/2;this.tooltip.innerHTML=s,this.tooltip.style.right="-"+(n-e)+"px"}},s.calculateDistance=function(t){return Bs(this.el().parentNode,t).x},s.Bt=function(t){if(!this.keepTooltipsInside)return t;var i=_(Nh(this.player().el(),"width")),s=_(Nh(this.tooltip,"width"))/2,e=t;return t<s?e=w.ceil(s):t>i-s&&(e=w.floor(i-s)),e},i}(t);t.registerComponent("MouseTimeDisplay",Oh);var Vh=function(t){function i(){return t.apply(this,arguments)||this}return De(i,t),i.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},i}(t);Vh.prototype.h={children:["seekBar"]},t.registerComponent("ProgressControl",Vh);var Uh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).on(i,"fullscreenchange",e.handleFullscreenChange),e}De(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}(jh);Uh.prototype.St="Fullscreen",t.registerComponent("FullscreenToggle",Uh);var Lh=function(t){function i(){return t.apply(this,arguments)||this}return De(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}(t);t.registerComponent("VolumeLevel",Lh);var Hh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).on(i,"volumechange",e.updateARIAAttributes),i.ready(b(Ie(e),e.updateARIAAttributes)),e}De(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}(Dh);Hh.prototype.h={children:["volumeLevel"],barName:"volumeLevel"},Hh.prototype.playerEvent="volumechange",t.registerComponent("VolumeBar",Hh);var zh=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 De(i,t),i.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control"})},i}(t);zh.prototype.h={children:["volumeBar"]},t.registerComponent("VolumeControl",zh);var Wh=function(t){function i(){return t.apply(this,arguments)||this}De(i,t);var s=i.prototype;return s.addItem=function(t){this.addChild(t),t.on("click",b(this,(function(){this.unlockShowing()})))},s.createEl=function(){var i=this.h.contentElType||"ul";this.S=bs(i,{className:"vjs-menu-content"});var s=t.prototype.createEl.call(this,"div",{append:this.S,className:"vjs-menu"});return s.appendChild(this.S),ye(s,"click",(function(t){t.preventDefault(),t.stopImmediatePropagation()})),s},i}(t);t.registerComponent("Popup",Wh);var qh=function(t){function i(i,s){var e;return void 0===s&&(s={}),(e=t.call(this,i,s)||this).update(),e}De(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}(ph);t.registerComponent("PopupButton",qh);var Gh=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}De(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++)As(this.v,"vjs-vol-"+n);Ps(this.v,"vjs-vol-"+s)},i}(jh);Gh.prototype.St="Mute",t.registerComponent("MuteToggle",Gh);var Xh=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(Ie(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}De(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 Wh(this.t,{contentElType:"div"}),i=new Hh(this.t,this.h.volumeBar);return t.addChild(i),this.menuContent=t,this.volumeBar=i,this.attachVolumeBarEvents(),t},s.handleClick=function(i){Gh.prototype.handleClick.call(this),t.prototype.handleClick.call(this)},s.attachVolumeBarEvents=function(){this.menuContent.on(["mousedown","touchdown"],b(this,this.handleMouseDown))},s.handleMouseDown=function(t){this.on(["mousemove","touchmove"],b(this.volumeBar,this.volumeBar.handleMouseMove)),this.on(this.v.ownerDocument,["mouseup","touchend"],this.handleMouseUp)},s.handleMouseUp=function(t){this.off(["mousemove","touchmove"],b(this.volumeBar,this.volumeBar.handleMouseMove))},i}(qh);Xh.prototype.volumeUpdate=Gh.prototype.update,Xh.prototype.St="Mute",t.registerComponent("VolumeMenuButton",Xh);var Jh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).$t=-1,e.on("keydown",e.handleKeyPress),e}De(i,t);var s=i.prototype;return s.addItem=function(t){this.addChild(t),t.on("click",b(this,(function(t){this.unlockShowing()})))},s.createEl=function(){var i=this.h.contentElType||"ul";this.S=bs(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),ye(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}(t);t.registerComponent("Menu",Jh);var Qh=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}De(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 Jh(this.t);if(this.Vt=0,this.h.title){var i=bs("li",{className:"vjs-menu-title",innerHTML:Pe(this.h.title),tabIndex:-1});this.Vt+=1,t.m.unshift(i),ks(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",b(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}(ph);t.registerComponent("MenuButton",Qh);var Yh=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 Ie(e);var r=b(Ie(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 De(i,t),i}(Qh);t.registerComponent("TrackButton",Yh);var Kh=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}De(i,t);var s=i.prototype;return s.createEl=function(i,s,e){this.nonIconControl=!0;var n=t.prototype.createEl.call(this,"li",rs({className:"vjs-menu-item",tabIndex:-1},s),e);return this.Ut=Yi.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}(ph);t.registerComponent("MenuItem",Kh);var Zh=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=b(Ie(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 Qi.Event)try{n=new Qi.Event("change")}catch(t){}n||(n=Yi.createEvent("Event")).initEvent("change",!0,!0),h.dispatchEvent(n)}));return e}De(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}(Kh);t.registerComponent("TextTrackMenuItem",Zh);var to=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 De(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}(Zh);t.registerComponent("OffTextTrackMenuItem",to);var io=function(t){function i(i,s){return void 0===s&&(s={}),s.tracks=i.textTracks(),t.call(this,i,s)||this}return De(i,t),i.prototype.createItems=function(t){void 0===t&&(t=[]),t.push(new to(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 Zh(this.t,{track:e,selectable:!0}))}return t},i}(Yh);t.registerComponent("TextTrackButton",io);var so=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",b(Ie(e),e.update)),e}De(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}(Kh);t.registerComponent("ChaptersTrackMenuItem",so);var eo=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}De(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(Pe(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 so(this.t,{track:this.Ht,cue:n});t.push(r)}return t},i}(io);eo.prototype.Lt="chapters",eo.prototype.St="Chapters",t.registerComponent("ChaptersButton",eo);var no=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=b(Ie(n),n.handleTracksChange);r.addEventListener("change",h),n.on("dispose",(function(){r.removeEventListener("change",h)}))}return n}De(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}(io);no.prototype.Lt="descriptions",no.prototype.St="Descriptions",t.registerComponent("DescriptionsButton",no);var ro=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 De(i,t),i.prototype.buildCSSClass=function(){return"vjs-subtitles-button "+t.prototype.buildCSSClass.call(this)},i}(io);ro.prototype.Lt="subtitles",ro.prototype.St="Subtitles",t.registerComponent("SubtitlesButton",ro);var ho=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 De(i,t),i.prototype.handleClick=function(t){this.player().getChild("textTrackSettings").show(),this.player().getChild("textTrackSettings").v.focus()},i}(Zh);t.registerComponent("CaptionSettingsMenuItem",ho);var oo=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}De(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 ho(this.t,{kind:this.Lt})),this.Vt+=1),t.prototype.createItems.call(this,i)},i}(io);oo.prototype.Lt="captions",oo.prototype.St="Captions",t.registerComponent("CaptionsButton",oo);var ao=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=b(Ie(e),e.handleTracksChange);r.addEventListener("change",h),e.on("dispose",(function(){r.removeEventListener("change",h)}))}return e}De(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}(Kh);t.registerComponent("AudioTrackMenuItem",ao);var uo=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}De(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 ao(this.t,{track:e,selectable:!0}))}return t},i}(Yh);uo.prototype.St="Audio Track",t.registerComponent("AudioTrackButton",uo);var co=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}De(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}(Kh);co.prototype.contentElType="button",t.registerComponent("PlaybackRateMenuItem",co);var lo=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}De(i,t);var s=i.prototype;return s.createEl=function(){var i=t.prototype.createEl.call(this);return this.Ut=bs("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 Jh(this.player()),i=this.playbackRates();if(i)for(var s=i.length-1;s>=0;s--)t.addChild(new co(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}(Qh);lo.prototype.St="Playback Rate",t.registerComponent("PlaybackRateMenuButton",lo);var fo=function(t){function i(){return t.apply(this,arguments)||this}De(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}(t);t.registerComponent("Spacer",fo);var vo=function(t){function i(){return t.apply(this,arguments)||this}De(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}(fo);t.registerComponent("CustomControlSpacer",vo);var po=function(t){function i(){return t.apply(this,arguments)||this}return De(i,t),i.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"},{role:"group"})},i}(t);po.prototype.h={children:["playToggle","volumeMenuButton","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subtitlesButton","captionsButton","audioTrackButton","fullscreenToggle"]},t.registerComponent("ControlBar",po);var mo=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).on(i,"error",e.open),e}De(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}(Ye);mo.prototype.h=Ae(Ye.prototype.h,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),t.registerComponent("ErrorDisplay",mo);var go="vjs-text-track-settings",yo=["#000","Black"],bo=["#00F","Blue"],wo=["#0FF","Cyan"],ko=["#0F0","Green"],_o=["#F0F","Magenta"],jo=["#F00","Red"],xo=["#FFF","White"],So=["#FF0","Yellow"],To=["1","Opaque"],Co=["0.5","Semi-Transparent"],Po=["0","Transparent"],Ao={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[yo,xo,jo,ko,bo,So,_o,wo]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[To,Co,Po]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[xo,yo,jo,ko,bo,So,_o,wo]},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:[To,Co]},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:[Po,Co,To]}};function Mo(t,i){if(i&&(t=i(t)),t&&"none"!==t)return t}Ao.windowColor.options=Ao.backgroundColor.options;var Io,Eo=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).setDefaults(),e.hide(),e.updateDisplay=b(Ie(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()})),ns(Ao,(function(t){e.on(e.$(t.selector),"change",e.updateDisplay)})),e.h.persistTextTrackSettings&&e.restoreSettings(),e}De(i,t);var s=i.prototype;return s.Wt=function(t){var i=this,s=Ao[t],e=s.id.replace("%s",this.o);return[bs("label",{className:"vjs-label",textContent:s.label},{for:e}),bs("select",{id:e},void 0,s.options.map((function(t){return bs("option",{textContent:i.localize(t[1]),value:t[0]})})))]},s.qt=function(){var t=bs("legend",{textContent:this.localize("Text")}),i=this.Wt("color"),s=bs("span",{className:"vjs-text-opacity vjs-opacity"},void 0,this.Wt("textOpacity"));return bs("fieldset",{className:"vjs-fg-color vjs-tracksetting"},void 0,[t].concat(i,s))},s.Gt=function(){var t=bs("legend",{textContent:this.localize("Background")}),i=this.Wt("backgroundColor"),s=bs("span",{className:"vjs-bg-opacity vjs-opacity"},void 0,this.Wt("backgroundOpacity"));return bs("fieldset",{className:"vjs-bg-color vjs-tracksetting"},void 0,[t].concat(i,s))},s.Xt=function(){var t=bs("legend",{textContent:this.localize("Window")}),i=this.Wt("windowColor"),s=bs("span",{className:"vjs-window-opacity vjs-opacity"},void 0,this.Wt("windowOpacity"));return bs("fieldset",{className:"vjs-window-color vjs-tracksetting"},void 0,[t].concat(i,s))},s.Jt=function(){return bs("div",{className:"vjs-tracksettings-colors"},void 0,[this.qt(),this.Gt(),this.Xt()])},s.Qt=function(){var t=bs("div",{className:"vjs-font-percent vjs-tracksetting"},void 0,this.Wt("fontPercent")),i=bs("div",{className:"vjs-edge-style vjs-tracksetting"},void 0,this.Wt("edgeStyle")),s=bs("div",{className:"vjs-font-family vjs-tracksetting"},void 0,this.Wt("fontFamily"));return bs("div",{className:"vjs-tracksettings-font"},void 0,[t,i,s])},s.Yt=function(){var t=bs("button",{className:"vjs-default-button",textContent:this.localize("Defaults")}),i=bs("button",{className:"vjs-done-button",textContent:"Done"});return bs("div",{className:"vjs-tracksettings-controls"},void 0,[t,i])},s.createEl=function(){var t=bs("div",{className:"vjs-tracksettings"},void 0,[this.Jt(),this.Qt(),this.Yt()]),i=bs("div",{className:"vjs-control-text",id:"TTsettingsDialogLabel-"+this.o,textContent:"Caption Settings Dialog"},{"aria-level":"1",role:"heading"}),s=bs("div",{className:"vjs-control-text",id:"TTsettingsDialogDescription-"+this.o,textContent:"Beginning of dialog window. Escape will cancel and close the window."}),e=bs("div",void 0,{role:"document"},[i,s,t]);return bs("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),es(t).reduce((function(s,e){return i(s,t[e],e)}),s)}(Ao,(function(i,s,e){var n=function(t,i){return Mo(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;ns(Ao,(function(s,e){!function(t,i,s){if(i)for(var e=0;e<t.options.length;e++)if(Mo(t.options[e].value,s)===i){t.selectedIndex=e;break}}(i.$(s.selector),t[e],s.parser)}))},s.setDefaults=function(){var t=this;ns(Ao,(function(i){var s=i.hasOwnProperty("default")?i.default:0;t.$(i.selector).selectedIndex=s}))},s.restoreSettings=function(){var t;try{t=JSON.parse(Qi.localStorage.getItem(go))}catch(t){us.warn(t)}t&&this.setValues(t)},s.saveSettings=function(){if(this.h.persistTextTrackSettings){var t=this.getValues();try{g.keys(t).length?Qi.localStorage.setItem(go,JSON.stringify(t)):Qi.localStorage.removeItem(go)}catch(t){us.warn(t)}}},s.updateDisplay=function(){var t=this.t.getChild("textTrackDisplay");t&&t.updateDisplay()},i}(t);t.registerComponent("TextTrackSettings",Eo);var Do,No=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")||!hn(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=Pe(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&&us.warn(ds(Io||(Io=Ki(["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=b(Ie(e),e.handleTextTrackChange),e.hi=b(Ie(e),e.handleTextTrackAdd),e.oi=b(Ie(e),e.handleTextTrackRemove),e.ai()),e.ci(),(ce||Xs||ie)&&!0===i.nativeControlsForTouch&&e.setControls(!0),e.fi(),e.triggerReady(),e}De(i,t);var s=i.prototype;return s.dispose=function(){var s=this;["audio","video","text"].forEach((function(t){var i=Pe(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=Yi.createElement("video");var e=Ae({},this.h.tag&&Es(this.h.tag));ce&&!0===this.h.nativeControlsForTouch||delete e.controls,Is(t,rs(e,{id:this.h.techId,class:"vjs-tech"}))}t.playerId=this.h.playerId}void 0!==this.h.preload&&Ds(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?Ds(t,h,h):Ns(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.di)}},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.di=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){us(t,"Video is not ready. (Video.js)")}},s.duration=function(){var t=this;if(this.v.duration===1/0&&Ks&&ne&&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.fi=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=Qi.navigator&&Qi.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=Yi.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),Qi.performance&&"function"==typeof Qi.performance.now?t.creationTime=Qi.performance.now():Qi.performance&&Qi.performance.timing&&"number"==typeof Qi.performance.timing.navigationStart&&(t.creationTime=Qi.Date.now()-Qi.performance.timing.navigationStart),t},i}(dh);ms()&&(No.TEST_VID=Yi.createElement("video"),(Do=Yi.createElement("track")).kind="captions",Do.srclang="en",Do.label="English",No.TEST_VID.appendChild(Do)),No.isSupported=function(){try{No.TEST_VID.volume=.5}catch(t){return!1}return!(!No.TEST_VID||!No.TEST_VID.canPlayType)},No.canControlVolume=function(){try{var t=No.TEST_VID.volume;return No.TEST_VID.volume=t/2+.1,t!==No.TEST_VID.volume}catch(t){return!1}},No.canControlPlaybackRate=function(){if(Ks&&ne&&re<58)return!1;try{var t=No.TEST_VID.playbackRate;return No.TEST_VID.playbackRate=t/2+.1,t!==No.TEST_VID.playbackRate}catch(t){return!1}},No.supportsNativeTextTracks=function(){return ue},No.supportsNativeVideoTracks=function(){return!(!No.TEST_VID||!No.TEST_VID.videoTracks)},No.supportsNativeAudioTracks=function(){return!(!No.TEST_VID||!No.TEST_VID.audioTracks)},No.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","volumechange"],No.prototype.featuresVolumeControl=No.canControlVolume(),No.prototype.featuresPlaybackRate=No.canControlPlaybackRate(),No.prototype.movingMediaElementInDOM=!Qs,No.prototype.featuresFullscreenResize=!0,No.prototype.featuresProgressEvents=!0,No.prototype.featuresTimeupdateEvents=!0,No.prototype.featuresNativeTextTracks=No.supportsNativeTextTracks(),No.prototype.featuresNativeVideoTracks=No.supportsNativeVideoTracks(),No.prototype.featuresNativeAudioTracks=No.supportsNativeAudioTracks();var Fo=No.TEST_VID&&No.TEST_VID.constructor.prototype.canPlayType,Bo=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,$o=/^video\/mp4/i;No.patchCanPlayType=function(){Zs>=4&&!se?No.TEST_VID.constructor.prototype.canPlayType=function(t){return t&&Bo.test(t)?"maybe":Fo.call(this,t)}:te&&(No.TEST_VID.constructor.prototype.canPlayType=function(t){return t&&$o.test(t)?"maybe":Fo.call(this,t)})},No.unpatchCanPlayType=function(){var t=No.TEST_VID.constructor.prototype.canPlayType;return No.TEST_VID.constructor.prototype.canPlayType=Fo,t},No.patchCanPlayType(),No.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){}}()}}},No.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){No.prototype[t]=function(){return this.v[t]||this.v.hasAttribute(t)}})),["muted","defaultMuted","autoplay","loop","playsinline"].forEach((function(t){No.prototype["set"+Pe(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){No.prototype[t]=function(){return this.v[t]}})),["volume","src","poster","preload","playbackRate"].forEach((function(t){No.prototype["set"+Pe(t)]=function(i){this.v[t]=i}})),["pause","load"].forEach((function(t){No.prototype[t]=function(){return this.v[t]()}})),dh.withSourceHandlers(No),No.nativeSourceHandler={},No.nativeSourceHandler.canPlayType=function(t){try{return No.TEST_VID.canPlayType(t)}catch(t){return""}},No.nativeSourceHandler.canHandleSource=function(t,i){if(t.type)return No.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 No.nativeSourceHandler.canPlayType("video/"+s)}return""},No.nativeSourceHandler.handleSource=function(t,i,s){i.setSrc(t.src)},No.nativeSourceHandler.dispose=function(){},No.registerSourceHandler(No.nativeSourceHandler),t.registerComponent("Html5",No),dh.registerTech("Html5",No);var Ro=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","ratechange","volumechange","texttrackchange"],Oo=function(i){function s(t,e,n){var r;if(t.id=t.id||["vjs_video",ts()].join("_"),(e=rs(s.getTagSettings(t),e)).initChildren=!1,e.createEl=!1,e.reportTouchActivity=!1,!e.language)if("function"==typeof t.closest){var h=t.closest("[lang]");h&&(e.language=h.getAttribute("lang"))}else for(var o=t;o&&1===o.nodeType;){if(Es(o).hasOwnProperty("lang")){e.language=o.getAttribute("lang");break}o=o.parentNode}if(!(r=i.call(this,null,e,n)||this).h||!r.h.techOrder||!r.h.techOrder.length)throw new d("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(r.tag=t,r.tagAttributes=t&&Es(t),r.language(r.h.language),e.languages){var a={};g.getOwnPropertyNames(e.languages).forEach((function(t){a[t.toLowerCase()]=e.languages[t]})),r.vi=a}else r.vi=s.prototype.h.languages;r.pi={},r.mi=e.poster||"",r.gi=!!e.controls,t.controls=!1,r.yi=!1,r.v=r.createEl();var u=Ae(r.h);if(e.plugins){var c=e.plugins;g.getOwnPropertyNames(c).forEach((function(t){"function"==typeof this[t]?this[t](c[t]):us.error("Unable to find plugin:",t)}),Ie(r))}r.h.playerOptions=u,r.initChildren(),r.isAudio("audio"===t.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.bi()&&r.addClass("vjs-no-flex"),Qs||r.addClass("vjs-workinghover"),s.players[r.o]=Ie(r);var l="5.20.6-opentelly.14".split(".")[0];return r.addClass("vjs-v"+l),r.userActive(!0),r.reportUserActivity(),r.wi(),r.on("fullscreenchange",r.ki),r.on("stageclick",r._i),r}De(s,i);var e=s.prototype;return e.dispose=function(){this.trigger("dispose"),this.off("dispose"),this.ji&&this.ji.parentNode&&this.ji.parentNode.removeChild(this.ji),s.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(),i.prototype.dispose.call(this)},e.createEl=function(){var t,s=this.tag,e=this.xi=s.parentNode&&s.parentNode.hasAttribute&&s.parentNode.hasAttribute("data-vjs-player");t=this.v=e?s.parentNode:i.prototype.createEl.call(this,"div"),s.setAttribute("tabindex","-1"),s.removeAttribute("width"),s.removeAttribute("height");var n=Es(s);if(g.getOwnPropertyNames(n).forEach((function(i){"class"===i?t.className+=" "+n[i]:t.setAttribute(i,n[i])})),s.playerId=s.id,s.id+="Si",s.className="vjs-tech",s.player=t.player=this,this.addClass("vjs-paused"),!0!==Qi.VIDEOJS_NO_DYNAMIC_STYLE){this.ji=Te("vjs-styles-dimensions");var r=Ls(".vjs-styles-defaults"),h=Ls("head");h.insertBefore(this.ji,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);Ps(u,"vjs-hidden"),u.setAttribute("hidden","hidden")}return s.Kt=s.networkState,s.parentNode&&!e&&s.parentNode.insertBefore(t,s),ks(s,t),this.m.unshift(s),this.v=t,t},e.width=function(t){return this.dimension("width",t)},e.height=function(t){return this.dimension("height",t)},e.dimension=function(t,i){var s="width"===t?"Ti":"Ci";if(void 0===i)return this[s]||0;if(""===i)this[s]=void 0;else{var e=_(i);if(j(e))return us.error('Improper value "'+i+'" supplied for for '+t),this;this[s]=e}return this.Pi(),this},e.fluid=function(t){if(void 0===t)return!!this.Ai;this.Ai=!!t,t?this.addClass("vjs-fluid"):this.removeClass("vjs-fluid"),this.Pi()},e.aspectRatio=function(t){if(void 0===t)return this.Mi;if(!/^\d+\:\d+$/.test(t))throw new d("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.Mi=t,this.fluid(!0),this.Pi()},e.Pi=function(){if(!0!==Qi.VIDEOJS_NO_DYNAMIC_STYLE){var t,i,s,e=(void 0!==this.Mi&&"auto"!==this.Mi?this.Mi:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),n=e[1]/e[0];t=void 0!==this.Ti?this.Ti:void 0!==this.Ci?this.Ci/n:this.videoWidth()||300,i=void 0!==this.Ci?this.Ci:t*n,s=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(s),Ce(this.ji,"\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.Ti?this.Ti:this.h.width,h="number"==typeof this.Ci?this.Ci:this.h.height,o=this.H&&this.H.el();o&&(r>=0&&(o.width=r),h>=0&&(o.height=h))}},e._t=function(i,s){var e=this;this.H&&this.Ii(),"Html5"!==i&&this.tag&&(dh.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.Ei=i,this.T=!1;var n=rs({source:s,nativeControlsForTouch:this.h.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+i+"Di",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.xi||!1,"vtt.js":this.h["vtt.js"]},this.h[i.toLowerCase()]);this.tag&&(n.tag=this.tag),s&&(this.Ni=s.type,s.src===this.pi.src&&this.pi.currentTime>0&&(n.startTime=this.pi.currentTime),this.pi.sources=null,this.pi.source=s,this.pi.src=s.src);var r=dh.getTech(i);r||(r=t.getComponent(i)),this.H=new r(n),this.H.ready(b(this,this.Fi),!0),Je(this.Bi||[],this.H),Ro.forEach((function(t){e.on(e.H,t,e["handleTech"+Pe(t)+"_"])})),this.on(this.H,"loadstart",this.$i),this.on(this.H,"waiting",this.Ri),this.on(this.H,"canplay",this.Oi),this.on(this.H,"canplaythrough",this.Vi),this.on(this.H,"playing",this.Ui),this.on(this.H,"ended",this.Li),this.on(this.H,"seeking",this.Hi),this.on(this.H,"seeked",this.zi),this.on(this.H,"play",this.Wi),this.on(this.H,"firstplay",this.qi),this.on(this.H,"pause",this.Gi),this.on(this.H,"durationchange",this.Xi),this.on(this.H,"fullscreenchange",this.Ji),this.on(this.H,"error",this.Qi),this.on(this.H,"loadedmetadata",this.Pi),this.on(this.H,"resize",this.Pi),this.on(this.H,"posterchange",this.Yi),this.on(this.H,"textdata",this.Ki),this.usingNativeControls(this.Zi("controls")),this.controls()&&!this.usingNativeControls()&&this.ts(),this.H.el().parentNode===this.contentEl()||"Html5"===i&&this.tag||ks(this.H.el(),this.contentEl()),this.tag&&(this.tag.player=null,this.tag=null)},e.Ii=function(){this.rt=this.videoTracks(),this.nt=this.textTracks(),this.ht=this.audioTracks(),this.Bi=Xe(this.H),this.T=!1,this.H.dispose(),this.H=!1},e.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 Qi.alert(i),new d(i)},e.ts=function(){this.ss(),this.on(this.H,"mousedown",this.es),this.on(this.H,"touchstart",this.ns),this.on(this.H,"touchmove",this.rs),this.on(this.H,"touchend",this.hs),this.on(this.H,"tap",this.os)},e.ss=function(){this.off(this.H,"tap",this.os),this.off(this.H,"touchstart",this.ns),this.off(this.H,"touchmove",this.rs),this.off(this.H,"touchend",this.hs),this.off(this.H,"mousedown",this.es)},e.Fi=function(){if(this.triggerReady(),this.pi.volume&&this.us("setVolume",this.pi.volume),this.Yi(),this.Xi(),(this.src()||this.currentSrc())&&this.tag&&this.h.autoplay&&this.paused()){try{delete this.tag.poster}catch(t){us("deleting tag.poster throws in some browsers",t)}this.play()}},e.$i=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"))},e.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},e.Wi=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},e.Ri=function(){var t=this;this.addClass("vjs-waiting"),this.trigger("waiting"),this.one("timeupdate",(function(){return t.removeClass("vjs-waiting")}))},e.Oi=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},e.Vi=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},e.Ui=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},e.Hi=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},e.zi=function(){this.removeClass("vjs-seeking"),this.trigger("seeked")},e.qi=function(){this.h.starttime&&(us.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")},e.Gi=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},e.Li=function(){this.addClass("vjs-ended"),this.h.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},e.Xi=function(){this.duration(this.Zi("duration"))},e.es=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()))},e.os=function(){this.userActive(!this.userActive())},e.ns=function(){this.userWasActive=this.userActive()},e.rs=function(){this.userWasActive&&this.reportUserActivity()},e.hs=function(t){t.cancelable&&t.preventDefault()},e.ki=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},e._i=function(){this.reportUserActivity()},e.Ji=function(t,i){i&&(this.toggleClass("vjs-ios-native-fs",!(!i.nativeIOSFullscreen||!i.isFullscreen)),this.isFullscreen(i.isFullscreen)),this.trigger("fullscreenchange")},e.Qi=function(){var t=this.H.error();this.error(t)},e.Ki=function(){var t=null;arguments.length>1&&(t=arguments[1]),this.trigger("textdata",t)},e.getCache=function(){return this.pi},e.us=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 us(t),t}},e.Zi=function(t){if(this.H&&this.H.T)try{return this.H[t]()}catch(i){throw void 0===this.H[t]?us("Video.js: "+t+" method not defined for "+this.Ei+" playback technology.",i):"TypeError"===i.name?(us("Video.js: "+t+" unavailable on "+this.Ei+" playback technology element.",i),this.H.T=!1):us(i),i}},e.play=function(){return this.src()||this.currentSrc()?this.us("play"):this.H.one("loadstart",(function(){this.play()})),this},e.pause=function(){return this.us("pause"),this},e.paused=function(){return!1!==this.Zi("paused")},e.scrubbing=function(t){return void 0!==t?(this.yi=!!t,t?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing"),this):this.yi},e.currentTime=function(t){return void 0!==t?(this.us("setCurrentTime",t),this):(this.pi.currentTime=this.Zi("currentTime")||0,this.pi.currentTime)},e.duration=function(t){return void 0===t?void 0!==this.pi.duration?this.pi.duration:NaN:((t=_(t))<0&&(t=1/0),t!==this.pi.duration&&(this.pi.duration=t,t===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),this.trigger("durationchange")),this)},e.remainingTime=function(){return this.duration()-this.currentTime()},e.buffered=function(){var t=this.Zi("buffered");return t&&t.length||(t=Be(0,0)),t},e.bufferedPercent=function(){return $e(this.buffered(),this.duration())},e.bufferedEnd=function(){var t=this.buffered(),i=this.duration(),s=t.end(t.length-1);return s>i&&(s=i),s},e.volume=function(t){var i;return void 0!==t?(i=w.max(0,w.min(1,_(t))),this.pi.volume=i,this.us("setVolume",i),this):(i=_(this.Zi("volume")),j(i)?1:i)},e.muted=function(t){return void 0!==t?(this.us("setMuted",t),this):this.Zi("muted")||!1},e.supportsFullScreen=function(){return this.Zi("supportsFullScreen")||!1},e.isFullscreen=function(t){return void 0!==t?(this.cs=!!t,this):!!this.cs},e.requestFullscreen=function(t){var i,s=Le;return this.isFullscreen(!0),s.requestFullscreen?(ye(Yi,s.fullscreenchange,b(this,(function t(i){this.isFullscreen(Yi[s.fullscreenElement]),!1===this.isFullscreen()&&be(Yi,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.us("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange")),this},e.exitFullscreen=function(){var t=Le;return this.isFullscreen(!1),t.requestFullscreen?Yi[t.exitFullscreen]():this.H.supportsFullScreen()?this.us("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange")),this},e.enterFullWindow=function(){this.isFullWindow=!0,this.docOrigOverflow=Yi.documentElement.style.overflow,ye(Yi,"keydown",b(this,this.fullWindowOnEscKey)),Yi.documentElement.style.overflow="hidden",Ps(Yi.body,"vjs-full-window"),this.trigger("enterFullWindow")},e.fullWindowOnEscKey=function(t){27===t.keyCode&&(!0===this.isFullscreen()?this.exitFullscreen():this.exitFullWindow())},e.exitFullWindow=function(){this.isFullWindow=!1,be(Yi,"keydown",this.fullWindowOnEscKey),Yi.documentElement.style.overflow=this.docOrigOverflow,As(Yi.body,"vjs-full-window"),this.trigger("exitFullWindow")},e.canPlayType=function(i){for(var s,e=0,n=this.h.techOrder;e<n.length;e++){var r=Pe(n[e]),h=dh.getTech(r);if(h||(h=t.getComponent(r)),h){if(h.isSupported()&&(s=h.canPlayType(i)))return s}else us.error('The "'+r+'" tech is undefined. Skipped browser support check for that tech.')}return""},e.selectSource=function(i){var s,e=this,n=this.h.techOrder.map(Pe).map((function(i){return[i,dh.getTech(i)||t.getComponent(i)]})).filter((function(t){var i=t[0],s=t[1];return s?s.isSupported():(us.error('The "'+i+'" tech is undefined. Skipped browser support check for that tech.'),!1)})),r=function(t,i,s){var e;return t.some((function(t){return i.some((function(i){if(e=s(t,i))return!0}))})),e},h=function(t,i){var s=t[0];if(t[1].canPlaySource(i,e.h[s.toLowerCase()]))return{source:i,tech:s}};return(this.h.sourceOrder?r(i,n,(s=h,function(t,i){return s(i,t)})):r(n,i,h))||!1},e.src=function(i){if(void 0===i)return this.Zi("src");var s=dh.getTech(this.Ei);return s||(s=t.getComponent(this.Ei)),Array.isArray(i)?this.ls(i):"string"==typeof i?this.src({src:i}):i instanceof g&&(i.type&&!s.canPlaySource(i,this.h[this.Ei.toLowerCase()])?this.ls([i]):(this.pi.sources=null,this.pi.source=i,this.pi.src=i.src,this.Ni=i.type||"",this.ready((function(){s.prototype.hasOwnProperty("setSource")?this.us("setSource",i):this.us("src",i.src),"auto"===this.h.preload&&this.load(),this.h.autoplay&&this.play()}),!0))),this},e.ls=function(t){var i=this.selectSource(t);i?(i.tech===this.Ei?this.src(i.source):this._t(i.tech,i.source),this.pi.sources=t):(this.setTimeout((function(){this.error({code:4,message:this.localize(this.h.notSupportedMessage)})}),0),this.triggerReady())},e.load=function(){return this.us("load"),this},e.reset=function(){return this._t(Pe(this.h.techOrder[0]),null),this.us("reset"),this},e.currentSources=function(){var t=this.currentSource(),i=[];return 0!==g.keys(t).length&&i.push(t),this.pi.sources||i},e.currentSource=function(){var t={},i=this.currentSrc();return i&&(t.src=i),this.pi.source||t},e.currentSrc=function(){return this.Zi("currentSrc")||this.pi.src||""},e.currentType=function(){return this.Ni||""},e.preload=function(t){return void 0!==t?(this.us("setPreload",t),this.h.preload=t,this):this.Zi("preload")},e.autoplay=function(t){return void 0!==t?(this.us("setAutoplay",t),this.h.autoplay=t,this):this.Zi("autoplay",t)},e.playsinline=function(t){return void 0!==t?(this.us("setPlaysinline",t),this.h.playsinline=t,this):this.Zi("playsinline")},e.loop=function(t){return void 0!==t?(this.us("setLoop",t),this.h.loop=t,this):this.Zi("loop")},e.poster=function(t){return void 0===t?this.mi:(t||(t=""),this.mi=t,this.us("setPoster",t),this.trigger("posterchange"),this)},e.Yi=function(){!this.mi&&this.H&&this.H.poster&&(this.mi=this.H.poster()||"",this.trigger("posterchange"))},e.controls=function(t){return void 0!==t?(t=!!t,this.gi!==t&&(this.gi=t,this.usingNativeControls()&&this.us("setControls",t),t?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.ts()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.ss())),this):!!this.gi},e.usingNativeControls=function(t){return void 0!==t?(t=!!t,this.fs!==t&&(this.fs=t,t?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols"))),this):!!this.fs},e.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 We(t),this.addClass("vjs-error"),us.error("(CODE:"+this.lt.code+" "+We.errorTypes[this.lt.code]+")",this.lt.message,this.lt),this.trigger("error"),this)},e.reportUserActivity=function(t){this.ds=!0},e.userActive=function(t){return void 0!==t?((t=!!t)!==this.vs&&(this.vs=t,t?(this.ds=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),this.trigger("useractive")):(this.ds=!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.vs},e.wi=function(){var t,i,s,e,n=b(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.ds){this.ds=!1,this.userActive(!0),this.clearTimeout(e);var t=this.h.inactivityTimeout;t>0&&(e=this.setTimeout((function(){this.ds||this.userActive(!1)}),t))}}),250)},e.playbackRate=function(t){return void 0!==t?(this.us("setPlaybackRate",t),this):this.H&&this.H.featuresPlaybackRate?this.Zi("playbackRate"):1},e.isAudio=function(t){return void 0!==t?(this.ps=!!t,this):!!this.ps},e.videoTracks=function(){return this.H?this.H.videoTracks():(this.rt=this.rt||new uh,this.rt)},e.audioTracks=function(){return this.H?this.H.audioTracks():(this.ht=this.ht||new lh,this.ht)},e.textTracks=function(){if(this.H)return this.H.textTracks()},e.remoteTextTracks=function(){if(this.H)return this.H.remoteTextTracks()},e.remoteTextTrackEls=function(){if(this.H)return this.H.remoteTextTrackEls()},e.addTextTrack=function(t,i,s){if(this.H)return this.H.addTextTrack(t,i,s)},e.addRemoteTextTrack=function(t,i){if(this.H)return this.H.addRemoteTextTrack(t,i)},e.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)},e.getVideoPlaybackQuality=function(){return this.Zi("getVideoPlaybackQuality")},e.videoWidth=function(){return this.H&&this.H.videoWidth&&this.H.videoWidth()||0},e.videoHeight=function(){return this.H&&this.H.videoHeight&&this.H.videoHeight()||0},e.language=function(t){return void 0===t?this.gs:(this.gs!==String(t).toLowerCase()&&(this.gs=String(t).toLowerCase(),void 0!==this.v&&this.trigger("languagechange")),this)},e.languages=function(){return Ae(s.prototype.h.languages,this.vi)},e.toJSON=function(){var t=Ae(this.h),i=t.tracks;t.tracks=[];for(var s=0;s<i.length;s++){var e=i[s];(e=Ae(e)).player=void 0,t.tracks[s]=e}return t},e.createModal=function(t,i){var s=this;(i=i||{}).content=t||"";var e=new Ye(this,i);return this.addChild(e),e.on("dispose",(function(){s.removeChild(e)})),e.open()},s.getTagSettings=function(t){var i={sources:[],tracks:[]},s=Es(t),e=s["data-setup"];if(Cs(t,"vjs-fluid")&&(s.fluid=!0),null!==e){var n=qe(e||"{}"),r=n[0],h=n[1];r&&us.error(r),rs(s,h)}if(rs(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(Es(c)):"track"===l&&i.tracks.push(Es(c))}return i},e.bi=function(){var t=Yi.createElement("i");return!("flexBasis"in t.style||"webkitFlexBasis"in t.style||"mozFlexBasis"in t.style||"msFlexBasis"in t.style||"msFlexOrder"in t.style)},s}(t);Oo.players={};var Vo=Qi.navigator;Oo.prototype.h={techOrder:["html5","flash"],html5:{},flash:{},defaultVolume:0,inactivityTimeout:2e3,playbackRates:[],children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","controlBar","errorDisplay","textTrackSettings"],language:Vo&&(Vo.languages&&Vo.languages[0]||Vo.userLanguage||Vo.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",fullscreenOptions:{navigationUI:"hide"}},["ended","seeking","seekable","networkState","readyState"].forEach((function(t){Oo.prototype[t]=function(){return this.Zi(t)}})),Ro.forEach((function(t){Oo.prototype["handleTech"+Pe(t)+"_"]=function(){return this.trigger(t)}})),t.registerComponent("Player",Oo);var Uo,Lo,Ho=function(t){function i(s){var e;void 0===s&&(s={});var n=Ae(s,{kind:tn[s.kind]||""}),r=e=t.call(this,n)||this,h=!1;if(he)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||Ie(e)}return De(i,t),i}(nn),zo=function(t){function i(s){var e;void 0===s&&(s={});var n=Ae(s,{kind:Ze[s.kind]||""}),r=e=t.call(this,n)||this,h=!1;if(he)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||Ie(e)}return De(i,t),i}(nn);function Wo(i,s,e){var n;if("string"==typeof i){if(0===i.indexOf("#")&&(i=i.slice(1)),Wo.getPlayers()[i])return s&&us.warn('Player "'+i+'" is already initialised. Options will not be applied.'),e&&Wo.getPlayers()[i].ready(e),Wo.getPlayers()[i];n=function(t){return 0===t.indexOf("#")&&(t=t.slice(1)),Yi.getElementById(t)}(i)}else n=i;if(!n||!n.nodeName)throw new v("The element or ID supplied is not valid. (videojs)");if(n.player||Oo.players[n.playerId])return n.player||Oo.players[n.playerId];s=s||{},Wo.hooks("beforesetup").forEach((function(t){var i=t(n,Ae(s));hs(i)&&!Array.isArray(i)?s=Ae(s,i):us.error("please return an object in beforesetup hooks")}));var r=new(t.getComponent("Player"))(n,s,e);return Wo.hooks("setup").forEach((function(t){return t(r)})),r}"undefined"==typeof HTMLVideoElement&&ms()&&(Yi.createElement("video"),Yi.createElement("audio"),Yi.createElement("track")),Wo.ys={},Wo.hooks=function(t,i){return Wo.ys[t]=Wo.ys[t]||[],i&&(Wo.ys[t]=Wo.ys[t].concat(i)),Wo.ys[t]},Wo.hook=function(t,i){Wo.hooks(t,i)},Wo.removeHook=function(t,i){var s=Wo.hooks(t).indexOf(i);return!(s<=-1)&&(Wo.ys[t]=Wo.ys[t].slice(),Wo.ys[t].splice(s,1),!0)},!0!==Qi.VIDEOJS_NO_DYNAMIC_STYLE&&ms()&&((Uo=Ls(".vjs-styles-defaults"))||(Uo=Te("vjs-styles-defaults"),(Lo=Ls("head"))&&Lo.insertBefore(Uo,Lo.firstChild),Ce(Uo,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid {\n padding-top: 56.25%\n }\n "))),Se(1,Wo),Wo.VERSION="5.20.6-opentelly.14",Wo.options=Oo.prototype.h,Wo.getPlayers=function(){return Oo.players},Wo.players=Oo.players,Wo.getComponent=t.getComponent,Wo.registerComponent=function(i,s){dh.isTech(s)&&us.warn("The "+i+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),t.registerComponent.call(t,i,s)},Wo.getTech=dh.getTech,Wo.registerTech=dh.registerTech,Wo.browser=fe,Wo.TOUCH_ENABLED=ce,Wo.extend=function(t,i){void 0===i&&(i={});var s=function(){t.apply(this,arguments)},e={};for(var n in hs(i)?("function"==typeof i.init&&(us.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 v("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.bs=i)}(s,t),e)e.hasOwnProperty(n)&&(s.prototype[n]=e[n]);return s},Wo.mergeOptions=Ae,Wo.bind=b,Wo.plugin=function(t,i){Oo.prototype[t]=i},Wo.addLanguage=function(t,i){var s;return t=(""+t).toLowerCase(),Wo.options.languages=Ae(Wo.options.languages,((s={})[t]=i,s)),Wo.options.languages[t]},Wo.log=us,Wo.createTimeRange=Wo.createTimeRanges=Be,Wo.formatTime=Ch,Wo.parseUrl=rn,Wo.isCrossOrigin=hn,Wo.EventTarget=Me,Wo.on=ye,Wo.one=ke,Wo.off=be,Wo.trigger=we,Wo.xhr=Yr,Wo.TextTrack=sh,Wo.AudioTrack=Ho,Wo.VideoTrack=zo,Wo.isEl=gs,Wo.isTextNode=$s,Wo.createEl=bs,Wo.hasClass=Cs,Wo.addClass=Ps,Wo.removeClass=As,Wo.toggleClass=Ms,Wo.setAttributes=Is,Wo.getAttributes=Es,Wo.emptyEl=Rs,Wo.appendContent=Os,Wo.insertContent=Vs,Wo.computedStyle=Nh;var qo=10;function Go(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 Xo(t){return t.scrubbing()?t.getCache().currentTime:t.currentTime()}function Jo(t){const i=Ko(t);return Go(t)?i.end(i.length-1):i.start(0)}function Qo(t){return Ko(t).start(0)}function Yo(t){const i=Ko(t);return i.end(i.length-1)-i.start(0)}function Ko(t){const i=t.seekable;if(i&&i.length)return i;let s=t.duration;return s=isFinite(s)?s:0,new Hi([0,s]).ws()}function Zo(t,i){void 0===i&&(i=t);let 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=+r>0||o>0?r+":":"",n=((r||h>=10)&&+n<10?"0"+n:n)+":",e=+e<10?"0"+e:e,s+r+n+e}function ta(t){return class extends t{get ks(){var t;return null!=(t=this._s)?t:this._s=ia(this.player())}dispose(){this._s=void 0,super.dispose()}constructor(...t){super(...t),this._s=void 0}}}function ia(t){return t.tech({IWillNotUseThisInPlugins:!0}).theoplayer()}function sa(t){const i=ia(t),s=()=>{const s=Xo(t);t.toggleClass("theo-at-live",function(t,i){if(Go(t)){let s=t.seekable;return 0===s.length||s.end(s.length-1)-i<qo}return!1}(i,s)),t.toggleClass("vjs-live",Go(i)),t.toggleClass("theo-dvr",function(t){var i;return"dvr"===Fi(t.duration,t.seekable,null==(i=t.source)?void 0:i.streamType)}(i))};t.on("emptied",s),t.on("timeupdate",s),t.on("durationchange",s)}var ea="theo-ad-playing",na="theo-dai-ad-playing";function ra(t,i,s){t.toggleClass(ea,i),t.toggleClass(na,i&&s)}function ha(){this.userActive(!1)}var oa,aa,ua=class{constructor(t,i){this.type=t.type,this.target=i,this.playerEvent=t}};!function(t){t.js="unavailable",t.xs="available",t.Ss="presenting"}(oa||(oa={})),function(t){t.LOADED="DAILoaded",t.AD_BREAK_STARTED="DAIAdBreakStarted",t.AD_BREAK_ENDED="DAIAdBreakEnded",t.AD_PERIOD_STARTED="DAIAdPeriodStarted",t.AD_PERIOD_ENDED="DAIAdPeriodEnded",t.AD_PROGRESS="DAIAdProgress",t.CUEPOINTS_CHANGED="DAICuePointsChanged",t.CLICK="DAIClick",t.ERROR="DAIError",t.STARTED="DAIStarted",t.FIRST_QUARTILE="DAIFirstQuartile",t.MIDPOINT="DAIMidpoint",t.STREAM_INITIALIZED="DAIStreamInitialized",t.THIRD_QUARTILE="DAIThirdQuartile",t.COMPLETE="DAIComplete"}(aa||(aa={}));var ca=["loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","volumechange","resize"],la=Wo.getTech("Tech"),fa=Wo.getTech("Html5"),da=class extends la{Ts(){var t;for(const t of ca)this.ks.addEventListener(t,this.Cs);this.ks.addEventListener("error",this.Ps),this.ks.addEventListener("contentprotectionerror",this.Ps),this.ks.addEventListener("sourcechange",this.As),this.ks.addEventListener("loadstart",this.Ms),null==(t=this.ks.presentation)||t.addEventListener("presentationmodechange",this.Is),this.ks.textTracks.addEventListener("addtrack",this.Es),this.ks.textTracks.addEventListener("removetrack",this.Ds),this.ks.textTracks.addEventListener("change",this.Ns),this.ks.audioTracks.addEventListener("addtrack",this.Fs),this.ks.audioTracks.addEventListener("removetrack",this.Bs),this.ks.audioTracks.addEventListener("change",this.$s)}Rs(){var t;for(const t of ca)this.ks.removeEventListener(t,this.Cs);this.ks.removeEventListener("error",this.Ps),this.ks.removeEventListener("contentprotectionerror",this.Ps),this.ks.removeEventListener("sourcechange",this.As),this.ks.removeEventListener("loadstart",this.Ms),null==(t=this.ks.presentation)||t.removeEventListener("presentationmodechange",this.Is),this.ks.textTracks.removeEventListener("addtrack",this.Es),this.ks.textTracks.removeEventListener("removetrack",this.Ds),this.ks.textTracks.removeEventListener("change",this.Ns),this.ks.audioTracks.removeEventListener("addtrack",this.Fs),this.ks.audioTracks.removeEventListener("removetrack",this.Bs),this.ks.audioTracks.removeEventListener("change",this.$s)}Os(t){this.trigger(new ua(t,this))}createEl(){let t=this.h,i=t.player;if(!i)throw new d(this.localize('Missing required tech option "player"'));let s=i.element;return Wo.setAttributes(s,{id:t.techId}),s}theoplayer(){return this.ks}addTextTrack(t,i,s){return super.addTextTrack(t,i,s)}buffered(){return this.ks.buffered}played(){return this.ks.played}reset(){this.ks.stop()}play(){this.ks.play()}pause(){this.ks.pause()}paused(){return this.ks.paused}currentTime(){return this.ks.currentTime}setCurrentTime(t){this.ks.currentTime=t}duration(){return this.ks.duration}volume(){return this.ks.volume}setVolume(t){this.ks.volume=t}muted(){return this.ks.muted}setMuted(t){this.ks.muted=t}src(t){if(void 0!==t)this.setSrc(t);else{if(this.ks.src)return this.ks.src;if(this.ks.source){if(!B(this.ks.source.ads))return this.ks.source.ads[0].sources;if(function(t){if(t.sources)if(Bt(t.sources)){for(const i of t.sources)if(!Lt(i)&&"verizon-media"===i.integration)return!0}else if(!Lt(t.sources))return"verizon-media"===t.sources.integration;return!1}(this.ks.source))return"This source is managed by the Verizon Media integration extension.";if(function(t){if(t.sources)if(Bt(t.sources)){for(const i of t.sources)if(oi(i))return!0}else if(Ot(t.sources))return oi(t.sources);return!1}(this.ks.source))return"This source is managed by the DAI integration extension."}}}setSrc(t){return this.setSource({src:t})}setSource(t){this.lt=null,this.trigger("error")}currentSrc(){return this.ks.src}load(){this.setPreload("auto")}preload(){return this.ks.preload}setPreload(t){this.ks.preload=t}autoplay(){return this.ks.autoplay}setAutoplay(t){this.ks.autoplay=!!t}seeking(){return this.ks.seeking}seekable(){return this.ks.seekable}ended(){return this.ks.ended}playbackRate(){return this.ks.playbackRate}setPlaybackRate(t){this.ks.playbackRate=t}readyState(){return this.ks.readyState}networkState(){return 0}controls(){return!1}videoHeight(){return this.ks.videoHeight}videoWidth(){return this.ks.videoWidth}supportsFullScreen(){return this.ks.presentation.supportsMode(P.FULLSCREEN)}enterFullScreen(){this.ks.presentation.requestMode(P.FULLSCREEN)}exitFullScreen(){this.ks.presentation.requestMode(P.INLINE)}Vs(){let t=this.ks.ads;if(t&&t.playing)return!0;let i=this.ks.vr;return!(!i||i.state===oa.js)}initTextTrackListeners(){return this.on("touchend",(t=>{this.Vs()&&(t.preventDefault=()=>{})})),super.initTextTrackListeners()}Zt(){if(!this.src())return;const t=this.readyState();if(0===t){let t=!1,i=()=>{t=!0};this.on("loadstart",i);let 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")}))}let 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.Rs(),this.ks=null,super.dispose()}static isSupported(){return!0}static canPlayType(){return"maybe"}static canPlaySource(t){return"maybe"}get featuresVolumeControl(){return Di}constructor(t={},i){super(t,i),this.Cs=t=>this.Os(t),this.Us=!1,this.As=()=>{void 0===this.ks.errorObject&&(this.Os(new ci(this.ks.currentTime,this.ks.readyState)),this.Os(new mt),this.Os(new bi(this.ks.duration)))},this.Ms=()=>{this.Os(new Nt(this.ks.currentTime))},this.Es=t=>{this.textTracks().tt(t.track)},this.Fs=t=>{this.audioTracks().tt(t.track)},this.Ds=t=>{this.textTracks().it(t.track)},this.Bs=t=>{this.audioTracks().it(t.track)},this.Ns=()=>{let t=this.textTracks();t.trigger({type:"change",target:t,currentTarget:t,srcElement:t})},this.$s=()=>{let t=this.audioTracks();t.trigger({type:"change",target:t,currentTarget:t,srcElement:t})},this.Is=()=>{if(!this.supportsFullScreen())return;let t=this.Us,i=this.ks.presentation.currentMode===P.FULLSCREEN;t!==i&&(this.Us=i,this.trigger("fullscreenchange",{isFullscreen:i,nativeIOSFullscreen:!0}))},this.Ps=()=>{const t=this.ks.errorObject,i=t&&ut(t.code)||-1,s=t&&t.message||"An unknown error occurred.";this.error({code:i,message:this.localize(s)})},this.ks=this.h.player,this.Ts();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()}};da.prototype.featuresFullscreenResize=fa.prototype.featuresFullscreenResize,da.prototype.featuresPlaybackRate=fa.prototype.featuresPlaybackRate,da.prototype.featuresProgressEvents=!0,da.prototype.featuresTimeupdateEvents=!0,da.prototype.featuresNativeTextTracks=!0,Wo.registerTech("THEOplayer",da);var va=class{constructor(t){this.Ls=t=>{fi(this.Hs,"theo-mobile-button-hover"),t.stopImmediatePropagation()},this.zs=t=>{pi(this.Hs,"theo-mobile-button-hover")},this.Ws=t=>{this.Hs.blur()},this.Hs=t,t.addEventListener("touchstart",this.Ls),t.addEventListener("touchend",this.zs),t.addEventListener("focusin",this.Ws)}},pa=Wo.getComponent("Menu"),ma=class extends(ta(pa)){get qs(){return this.player().el()}Gs(){fi(this.qs,"theo-menu-opened")}Xs(){pi(this.qs,"theo-menu-opened")}constructor(t,i){super(t,i)}},ga=Wo.getComponent("MenuItem"),ya=class extends(ta(ga)){get parentMenu(){return this.Js}buildCSSClass(){return"theo-menu-item vjs-menu-item"}createEl(){let t=super.createEl("li",{className:this.buildCSSClass(),tabIndex:0},{"aria-live":"off","aria-label":""});return t.innerHTML="",t}handleClick(t){this.Qs||(this.parentMenu.Ys(this),"tap"!==t.type&&"keydown"!==t.type||(this.Qs=!0,this.trigger("click"),this.Qs=!1))}dispose(){Ct.Zs.Ks&&(this.el().removeEventListener("touchstart",this.Ls),this.el().removeEventListener("touchend",this.zs)),super.dispose()}constructor(t,i,s){super(t,Bi({selectable:!0},i)),this.Qs=!1,this.Ls=t=>{fi(this.el(),"theo-mobile-menu-item-hover"),t.stopImmediatePropagation()},this.zs=t=>{pi(this.el(),"theo-mobile-menu-item-hover")},this.Js=s,Ct.Zs.Ks&&(this.el().addEventListener("touchstart",this.Ls),this.el().addEventListener("touchend",this.zs))}},ba=Wo.getComponent("ClickableComponent"),wa=class extends ba{get parentMenu(){return this.Js}get te(){return this.ie}set te(t){this.ie=t,this.el().setAttribute("tabindex",this.te?"0":"-1"),this.se()}buildCSSClass(){return"theo-primary-background theo-menu-header"}createEl(){let t=super.createEl("div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-live":"off","aria-label":""});return t.innerHTML="",t}handleClick(t){!this.Qs&&this.te&&(this.Js.ee(),"tap"===t.type&&(this.Qs=!0,this.trigger("click"),this.Qs=!1))}se(){this.te?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.Qs=!1,this.ie=!1,this.Js=s,this.on(t,"languagechange",this.se)}},ka=class extends ma{get menuHeader(){return this.ne}get menuItems(){return this.children()}addMenuItem(t){t=Bi({playerOptions:this.h.playerOptions},t);let i=new ya(this.player(),t,this);return this.addChild(i,void 0,t.index),this.trigger("menuchange"),i}addSubMenuItem(t){t=Bi({playerOptions:this.h.playerOptions},t);let i=this.re(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"}Gs(){super.Gs(),a.removeEventListener("resize",this.he),a.addEventListener("resize",this.he),this.show()}oe(){let t=this.ae();if(!t)return;let i=t.getClientRects();Ct.Zs.Ks?this.ue(t,i):this.ce(t,i)}ae(){var t;return null!=(t=this.contentEl().parentElement)?t:void 0}ce(t,i){}ue(t,i){}Xs(){a.removeEventListener("resize",this.he),super.Xs(),this.hide(),Ct.Zs.Ks&&(this.el().removeAttribute("style"),this.contentEl().removeAttribute("style"))}createEl(){let t=super.createEl();t.className=this.buildCSSClass();let i=this.contentEl();fi(i,"theo-menu-content");let s=new wa(this.player(),this.h,this);return i.parentNode.insertBefore(s.el(),i),this.ne=s,t}Ys(t){}show(){return this.oe(),super.show()}dispose(){this.ne&&this.ne.dispose(),super.dispose()}constructor(t,i){super(t,i),this.he=()=>this.oe(),this.le=this.player().el(),this.hide(),this.on("menuchange",this.oe)}},_a=class extends ka{get fe(){return this.de}set fe(t){this.de&&this.de.ve(this),this.de=t,t&&t.pe(this)}me(t){this.fe.ge(t,"replace")}ye(t){t.fe.ge(this,"restore")}be(){pi(this.we,"vjs-hidden"),this.we.style.opacity="1",super.show()}ke(){fi(this.we,"vjs-hidden")}Gs(){this.fe&&this.fe.Gs(),super.Gs()}Xs(){this.fe&&this.fe.Xs(),super.Xs(),fi(this.we,"vjs-hidden")}ae(){if(this.fe&&this.fe._e)return this.fe._e.we}ce(t,i){if(i.length>0){let t=i[0].height,s=i[0].width;this.de.je.style.height=t+"px",this.de.je.style.width=s+"px"}super.ce(t,i)}constructor(t,i){super(t,i)}},ja=class{get je(){return this.Hs}get _e(){return this.xe}pe(t){t.ke(),this.Hs.appendChild(t.we)}ve(t){this.Hs.removeChild(t.we)}ge(t,i){if(t==this.xe)return;let s=this.xe;if(this.xe=t,this.xe.be(),this._e.focus(),Ct.Zs.Ks)s.ke();else{const t="translateX(100%)",e="translateX(-100%)",n=Q("transform");s.we.style.opacity="0",s.we.style[n]="replace"===i?e:t,this.xe.we.style.opacity="1",this.xe.we.style[n]="",u((()=>{s.ke(),s.we.style[n]=""}),300)}}Gs(){this.Se(),this.xe.be(),this.Te()}Xs(){this.Se(),this.xe.ke(),this.Ce.ke(),this.xe=this.Ce,this.Te()}Te(){q((()=>{pi(this.Hs,"theo-no-transition"),pi(this.xe.we,"theo-no-transition")}))}Se(){fi(this.Hs,"theo-no-transition"),fi(this.xe.we,"theo-no-transition")}constructor(t){this.Ce=this.xe=t,this.Hs=h.createElement("div"),this.Hs.className="theo-tertiary-background theo-menu-animation-container",this.Hs.appendChild(this.Ce.we),this.le=this.xe.player().el()}},xa=class extends _a{get we(){return this.el()}get parentMenu(){return this.Pe}re(t,i){let s=new Sa(t,i,this);return s.subMenu.fe=this.fe,s}ee(){this.Ae()}Ys(t){super.Ys(t),this.Ae()}Ae(){this.parentMenu.ye(this)}buildCSSClass(){return"theo-submenu "+(this.Me?"":"theo-leaf-submenu ")+"theo-menu-content theo-menu-content-animatable "+super.buildCSSClass()}addSubMenuItem(t){this.Me=!0;let i=super.addSubMenuItem(t);return this.removeClass("theo-leaf-submenu"),i}constructor(t,i,s){super(t,i),this.Me=!1,this.Pe=s,this.menuHeader.te=!0}},Sa=class extends ya{get subMenu(){return this.Ie}handleClick(t){this.parentMenu.me(this.subMenu)}constructor(t,i,s){super(t,Bi({selectable:!1},i),s),this.Ie=new xa(t,i,s)}},Ta=class extends _a{get menuButton(){return this.Ee}createEl(){let t=Wo.createEl("div",{className:this.buildCSSClass()});return this.De=super.createEl(),this.De.className=super.buildCSSClass(),fi(this.De,"theo-menu-content-animatable"),t.appendChild(this.De),this.fe=new ja(this),t.appendChild(this.fe.je),t}buildCSSClass(){return"theo-menu-animatable "+super.buildCSSClass()}re(t,i){let s=new Sa(t,i,this);return s.subMenu.fe=this.fe,s}ce(t,i){super.ce(t,i);let s=this.le.getClientRects(),e=s.length>0?s[0]:void 0,n=_(getComputedStyle(this.el()).fontSize);Ft(this.el(),this.Ee.el(),e,n)}get we(){return this.De}ee(){this.Ee.closeMenu()}dispose(){this.Ne||(this.Ne=!0,super.dispose())}constructor(t,i,s){super(t,i),this.Ne=!1,this.Ee=s}},Ca=class{set Fe(t){this.Be.innerHTML=this.$e.localize(t),this.Re(),this.Oe(),xi(this.$e.el())}get Fe(){return this.Be.textContent||""}Ve(){this.$e.off("mouseover",this.Oe),this.$e.off("mouseout",this.Re),this.$e.off("dispose",this.Ue),hi(this.Be)}constructor(t,i){this.Oe=()=>{pi(this.Be,"vjs-hidden");let t=this.$e.player().contentEl().getClientRects(),i=t.length>0?t[0]:void 0,s=_(getComputedStyle(this.Be).fontSize);Ft(this.Be,this.$e.el(),i,s)},this.Re=()=>{fi(this.Be,"vjs-hidden")},this.Ue=()=>this.Ve(),this.$e=t,xi(t.el()),Ci(t.el()),this.Be=h.createElement("span"),this.Be.innerHTML=this.$e.localize(i),this.Be.className="theo-button-tooltip vjs-hidden",this.Be.setAttribute("aria-hidden","true"),this.$e.el().appendChild(this.Be),this.$e.on("mouseover",this.Oe),this.$e.on("mouseout",this.Re),this.$e.on("dispose",this.Ue)}},Pa=Wo.getComponent("Button"),Aa=class extends(ta(Pa)){get Le(){const t=this.el().parentElement;return!!t&&null!==t.querySelector(".theo-mobile-menu-background")}get menu(){return this.He}isMenuOpen(){return this.ze}openMenu(){this.We&&!this.ze&&(this.He.Gs(),this.el().setAttribute("aria-expanded","true"),this.ze=!0,this.He.focus())}closeMenu(){this.We&&this.ze&&(this.He.Xs(),this.el().setAttribute("aria-expanded","false"),this.ze=!1)}set minimumMenuItems(t){this.qe=t,this.Ge()}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.ze?this.closeMenu():this.openMenu()}enable(){return this.We=!0,super.enable()}disable(){return this.closeMenu(),this.We=!1,super.disable()}se(){this.Be.Fe=this.controlText()}dispose(){this.player().removeChild(this.He),this.He.dispose(),this.Be.Ve(),this.ks.removeEventListener("seeking",this.Xe),super.dispose()}constructor(t,i){super(t,i),this.ze=!1,this.qe=1,this.We=!0,this.Je=t=>{let i=this.el().contains(t.target),s=this.He.el().contains(t.target),e=!1;var n;Ct.Zs.Ks&&this.Le&&(e=(null==(n=this.el().parentElement)?void 0:n.querySelector(".theo-mobile-menu-background"))===t.target);i||s||!this.ze||(e&&t.preventDefault(),this.closeMenu())},this.Qe=t=>{27===t.which&&(this.closeMenu(),this.focus())},this.Xe=()=>{this.ze&&this.closeMenu()},this.Ge=()=>{this.He.menuItems.length>=this.qe?this.show():(this.closeMenu(),this.hide())},this.He=new Ta(t,i,this),this.player().getChild("controlBarMenuContainer").addChild(this.He),this.Be=new Ca(this,this.controlText()),this.el().setAttribute("aria-haspopup","true"),Ct.Zs.Ye?(this.on(h,"touchend",this.Je),new va(this.el())):(this.on(h,"click",this.Je),this.on(h,"keydown",this.Qe),st&&this.on(h,st.Ke,this.closeMenu)),this.ks.addEventListener("seeking",this.Xe),this.on(this.He,"menuchange",this.Ge),this.on(t,"languagechange",this.se),this.Ge()}},Ma=Wo.getComponent("Component"),Ia=class extends(Wo.getComponent("ControlBar")){addMenuButton(t){t=Bi({playerOptions:this.h.playerOptions},t);let i=new Aa(this.player(),t);return this.addChild(i),i}removeMenuButton(t){this.removeChild(t)}createEl(){let 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)}};Wo.registerComponent("THEOControlBarShadow",class extends Ma{createEl(){return super.createEl("div",{className:this.buildCSSClass()})}buildCSSClass(){return"theo-tertiary-color theo-control-bar-shadow"}});var Ea=Wo.getComponent("VolumeBar"),Da=class extends Ea{handleFocus(t){super.handleFocus(t),this.Ze.addClass("focus-within")}handleBlur(t){super.handleBlur(t),this.Ze.removeClass("focus-within")}constructor(t,i){super(t,i),this.Ze=i.tn}},Na=Wo.getComponent("VolumeControl"),Fa=class extends Na{constructor(t,i){super(t,i),this.sn=new Da(t,{tn:this}),this.addChild(this.sn)}};Fa.prototype.h=Bi({},Na.prototype.h,{children:[]}),Wo.registerComponent("VolumeControl",Fa);var Ba=class extends(ta(Ia)){nn(){this.rn(this.hn())}an(){0===this.un&&(this.un=u(this.cn,100))}ln(t){"opacity"===t.propertyName&&(0!==this.un&&(c(this.un),this.un=0),this.rn(!0))}fn(t){"opacity"===t.propertyName&&(this.hn()||this.rn(!1))}hn(){return"0"!==a.getComputedStyle(this.el()).opacity}rn(t){this.dn!==t&&(this.dn=t,t?this.vn():this.ks.textTrackStyle.marginBottom=void 0)}vn(){const t=this.el().getBoundingClientRect().height;this.ks.textTrackStyle.marginBottom!==t&&(this.ks.textTrackStyle.marginBottom=t)}dispose(){c(this.un),this.un=0,this.mn.pn(X.gn,this.yn),this.mn.bn(),super.dispose()}constructor(t,i){super(t,i),this.dn=!1,this.un=0,this.cn=()=>{0!==this.un&&(this.un=0,this.rn(this.hn()))},this.yn=()=>{this.dn&&this.vn()},this.on(t,"ready",this.nn),this.on(t,"pause",this.nn),this.on(t,"useractive",this.nn),this.on(t,"firstplay",this.an),this.on(t,"play",this.an),this.on(t,"userinactive",this.an),this.on("transitionstart",this.ln),this.on("transitionend",this.fn),this.mn=new K(this.el()),this.mn.wn(X.gn,this.yn),this.mn.kn(!0)}};Ba.prototype.h=Bi({},Ia.prototype.h,{children:["progressControl","playToggle","muteToggle","volumeControl","currentTimeDisplay","timeDivider","durationDisplay","liveDisplay","remainingTimeDisplay","customControlSpacer","activeQualityLabel","vrButton","descriptionsButton","subtitlesButton","chromecastButton","airplayButton","multiViewButton","audioTrackButton","SettingsButton","fullscreenToggle"]}),Wo.registerComponent("ControlBar",Ba);var $a=class extends Ia{buildCSSClass(){return"theo-top-controlbar "+super.buildCSSClass()}constructor(t,i){super(t,i),t.topControlBar=this}};$a.prototype.h=Bi({},Ia.prototype.h,{children:[]}),Wo.registerComponent("TopControlBar",$a);var Ra=Wo.getComponent("CurrentTimeDisplay"),Oa=class extends(ta(Ra)){updateContent(){const t=Xo(this.player()),i=this.ks,s=Qo(i),e=this.localize("Current Time"),n=Zo(w.max(0,t-s),Yo(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)}};Wo.registerComponent("CurrentTimeDisplay",Oa);var Va=Wo.getComponent("DurationDisplay"),Ua=class extends(ta(Va)){updateContent(){const t=this.ks,i=j(t.duration)?NaN:Yo(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=Zo(e);this.S.innerHTML='<span class="vjs-control-text">'+t+"</span> "+i}}dispose(){var t;null==(t=this.ks)||t.clip.removeEventListener("change",this._n),super.dispose()}constructor(t,i){var s;super(t,i),this._n=()=>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.ks)||s.clip.addEventListener("change",this._n)}};Wo.registerComponent("DurationDisplay",Ua);var La=Wo.getComponent("Button"),Ha=class extends(ta(La)){buildCSSClass(){return"theo-live-control "+super.buildCSSClass()}createEl(){let t=super.createEl("button",{},{"aria-live":"off"});return this.jn=Wo.createEl("span",{className:"theo-live-control-indicator"}),t.insertBefore(this.jn,t.firstChild),t}createControlTextEl(t){let i=super.createControlTextEl(t);return Wo.removeClass(i,"vjs-control-text"),Wo.addClass(i,"theo-live-control-text"),i}handleClick(){var t;const i=this.ks;if(void 0!==(null==(t=i.hesp)?void 0:t.manifest))i.hesp.goLive();else{const t=this.player();t.currentTime(Jo(i)),t.play()}}xn(){Go(this.ks)?this.show():this.hide()}constructor(t,i){super(t,i),this.controlText("Live"),this.xn(),this.on(t,"emptied",this.xn),this.on(t,"durationchange",this.xn),Ct.Zs.Ye&&new va(this.el())}};Wo.registerComponent("LiveDisplay",Ha);var za=Wo.getComponent("LoadingSpinner");Wo.registerComponent("LoadingSpinner",class extends za{buildCSSClass(){return"theo-secondary-color vjs-loading-spinner "+super.buildCSSClass()}createEl(){let t=super.createEl();t.className=this.buildCSSClass();let i=Wo.createEl("div",{className:"theo-loading-spinner-rotator"}),s=Wo.createEl("div",{className:"theo-loading-spinner-circle-left"}),e=Wo.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)}});var Wa=Wo.getComponent("LoadProgressBar"),qa=class extends(ta(Wa)){update(){let t=this.ks,i=Hi.Sn(Ko(t)),s=i.Tn(0),e=Hi.Sn(t.buffered).Cn(i),n=i.Pn(0)-s,r=e.U&&e.Pn(e.U-1)||0;r=w.max(0,r-s);let o=this.el(),a=this.An;o.style.width=Ga(r,n);for(let t=0;t<e.U;t++){let i=e.Tn(t),n=e.Pn(t),u=a[t];u||(u=h.createElement("div"),a.push(u),o.appendChild(u)),u.style.left=Ga(i-s,r),u.style.width=Ga(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.An=[],this.on(t,"emptied",this.update)}};function Ga(t,i){let s=t/i||0;return 100*(s>=1?1:s)+"%"}Wo.registerComponent("LoadProgressBar",qa);var Xa=Wo.getComponent("MouseTimeDisplay"),Ja=class extends(ta(Xa)){handleMouseMove(t){let i=t,s=this.ks,e=Qo(s)+this.calculateDistance(i)*Yo(s),n=i.pageX-Et(this.el().parentNode).left;this.update(e,n+"px")}handleTouchMove(t){let i=t,s=this.ks,e=Qo(s)+this.calculateDistance(i)*Yo(s),n=i.touches[0].pageX-Et(this.el().parentNode).left;this.update(e,n+"px")}createEl(){let t=super.createEl();return this.Mn=Wo.createEl("span",{className:"theo-time-tooltip-text"}),t}update(t,i){this.In=t;let s=this.En(t);this.el().style.left=i,this.el().setAttribute("data-current-time",s),this.keepTooltipsInside&&(Rt(this.Mn,s),this.Dn())}Dn(){if(this.keepTooltipsInside&&this.tooltip.offsetParent){let t=this.player().contentEl(),i=t.getClientRects(),s=i.length>0?i[0]:void 0,e=_(getComputedStyle(t).fontSize);Ft(this.tooltip,this.el(),s,e)}}En(t){const i=this.ks,s=t-Jo(i);return Zo(Go(i)?w.min(s,0):s,Yo(i))}dispose(){var t;this.ks.removeEventListener("dimensionchange",this.Nn),null==(t=this.ks.presentation)||t.removeEventListener("presentationmodechange",this.Nn),super.dispose()}constructor(t,i){var s;(super(t,i),this.In=NaN,this.Nn=()=>{let t=Xo(this.player());const i=this.ks;let s=(t-Qo(i))/Yo(i)||0;s=Yt(s,0,1),this.update(t,100*s+"%")},this.keepTooltipsInside&&(Wo.addClass(this.tooltip,"theo-secondary-color"),this.tooltip.appendChild(this.Mn)),this.on(t,"ready",(()=>{this.on(t.controlBar.progressControl,"mouseenter",this.handleMouseMove)})),Mt.Ks)&&(this.on(t,"firstplay",this.Nn),this.on(t,"play",this.Nn),this.on(t,"seeking",this.Nn),this.on(t,"seeked",this.Nn),this.on(t,"timeupdate",this.Nn),this.ks.addEventListener("dimensionchange",this.Nn),null==(s=this.ks.presentation)||s.addEventListener("presentationmodechange",this.Nn),this.on(t,"ready",(()=>{this.on(t.controlBar.progressControl,"touchstart",this.handleTouchMove),this.on(t.controlBar.progressControl,"touchmove",Xt((t=>this.handleTouchMove(t)),25)),this.Nn()})))}};Wo.registerComponent("MouseTimeDisplay",Ja);var Qa=Wo.getComponent("PlayProgressBar"),Ya=class extends(ta(Qa)){updateDataAttr(){let t=Xo(this.player());this.el().setAttribute("data-current-time",this.En(t))}En(t){let i=this.ks;return Zo(t-Jo(i),Yo(i))}createEl(){let 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)}};Wo.registerComponent("PlayProgressBar",Ya);var Ka=Wo.getComponent("RemainingTimeDisplay"),Za=class extends(ta(Ka)){updateContent(){const t=this.ks,i=Yo(t);if(i){const s=Ko(t).end(0),e=this.localize("Remaining Time"),n=Zo(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)}};Wo.registerComponent("RemainingTimeDisplay",Za);var tu=class{get ks(){return this._s||(this._s=this.Fn.tech({IWillNotUseThisInPlugins:!0}).theoplayer()),this._s}Bn(t){if(t.kind!==gt.$n)return;if(0===this.ks.seekable.length)return;this.Rn=t;const i=t.cues.slice();this.Vn.On(i);for(let t=0;t<i.length;t++){let s=i[t],e=i[t+1],n=!e||s.endTime!==e.startTime,r=new iu(s,this.ks,n);this.Un.push(r),this.Ln.appendChild(r.je)}t.addEventListener("cuechange",this.Hn),this.Hn()}zn(){this.ks.addEventListener("loadedmetadata",this.Wn),this.ks.addEventListener("loadeddata",this.Wn),this.ks.addEventListener("sourcechange",this.Wn),this.ks.textTracks.addEventListener("addtrack",this.qn),this.ks.textTracks.addEventListener("removetrack",this.Gn),this.ks.textTracks.addEventListener("change",this.Wn)}Xn(){this.ks.removeEventListener("loadedmetadata",this.Wn),this.ks.removeEventListener("loadeddata",this.Wn),this.ks.removeEventListener("sourcechange",this.Wn),this.ks.textTracks.removeEventListener("addtrack",this.qn),this.ks.textTracks.removeEventListener("removetrack",this.Gn),this.ks.textTracks.removeEventListener("change",this.Wn)}Jn(){if(!(this.ks.readyState<S.Qn))for(let t of this.ks.textTracks)if(t.kind===gt.$n&&t.mode===dt.Yn&&t.cues.length>0&&t.readyState!==lt.ERROR)return t}Kn(t){this.Vn.Zn(t)}tr(){this.Vn.be()}ir(){this.Vn.ke()}sr(){for(let t of this.Un)t.Ve();this.Vn.sr(),this.Un=[],this.er=void 0,this.Rn&&this.Rn.removeEventListener("cuechange",this.Hn),this.Rn=void 0}Ve(){this.Xn(),this.nr.removeEventListener("mousemove",this.rr),this.nr.removeEventListener("mouseenter",this.hr),this.nr.removeEventListener("mouseleave",this.ar),this.sr(),this.Vn.Ve(),this._s=void 0}constructor(t,i){this.Fn=i,this.Un=[],this._s=void 0,this.qn=t=>{let i=t.track;i.kind===gt.$n&&(i.addEventListener("addcue",this.Wn),i.addEventListener("removecue",this.Wn),i.addEventListener("readystatechange",this.Wn)),this.Wn()},this.Gn=t=>{let i=t.track;i.kind===gt.$n&&(i.removeEventListener("addcue",this.Wn),i.removeEventListener("removecue",this.Wn),i.removeEventListener("readystatechange",this.Wn)),this.Wn()},this.rr=t=>{let i=this.ks,s=function(t,i){let s,e,n=Et(t),r=t.offsetWidth,h=t.offsetHeight,o=n.top,a=n.left;!function(t){return void 0!==t.changedTouches}(i)?(e=i.pageX,s=i.pageY):(e=i.changedTouches[0].pageX,s=i.changedTouches[0].pageY);let u=Yt((o-s+h)/h,0,1),c=Yt((e-a)/r,0,1);return{x:c,y:u}}(this.Ln,t),e=Qo(i)+s.x*Yo(i);e===i.duration&&(e-=.1),this.Kn(e)},this.ar=()=>{this.Vn.ke()},this.hr=()=>{this.Vn.be()},this.Wn=()=>{let t=this.Jn();t!==this.Rn&&(this.sr(),t&&this.Bn(t))},this.Hn=()=>{var t,i,s;const e=null==(i=this.Rn)||null==(t=i.activeCues)?void 0:t[0],n=qi(this.Un,(t=>t.ur===e));n!==this.er&&(null==(s=this.er)||s.cr(),this.er=n,null==n||n.lr())},this.nr=t,this.Vn=new su,this.Fn.contentEl().appendChild(this.Vn.je),this.Ln=h.createElement("div"),fi(this.Ln,"theoplayer-chapterbar"),this.nr.appendChild(this.Ln),this.nr.addEventListener("mousemove",this.rr),this.nr.addEventListener("mouseenter",this.hr),this.nr.addEventListener("mouseleave",this.ar),this.zn()}},iu=class{get je(){return this.Hs}lr(){fi(this.Hs,"theoplayer-chapter-indicator-active")}cr(){pi(this.Hs,"theoplayer-chapter-indicator-active")}dr(t,i){let s=t.seekable.start(0),e=t.seekable.end(t.seekable.length-1)-s,n=this.ur.startTime,r=this.ur.endTime-n,o=h.createElement("div");fi(o,"theoplayer-chapter-indicator");let a=h.createElement("div");fi(a,"theoplayer-chapter-indicator-highlight"),o.appendChild(a),i&&fi(o,"theoplayer-chapter-indicator-discontinuous");let u=w.min(n/e*100,100),c=100-u,l=w.min(r/e*100,c);return o.style.width=l+"%",o.style.left=u+"%",o}Ve(){hi(this.Hs)}constructor(t,i,s){this.ur=t,this.Hs=this.dr(i,s)}},su=class{ke(){this.pr--,0===this.pr&&pi(this.je,"theoplayer-chapter-hovering")}On(t){this.mr=t||[],this.mr.length>0&&(this.je.style.display="")}gr(t){Rt(this.yr,t.content)}sr(){this.mr=[],Rt(this.yr,""),this.je.style.display="none"}be(){this.pr++,this.pr>0&&fi(this.je,"theoplayer-chapter-hovering")}Zn(t){for(let i of this.mr)if(eu(i,t)){this.gr(i);break}}Ve(){hi(this.je)}constructor(){this.mr=[],this.pr=0,this.je=h.createElement("div"),fi(this.je,"theoplayer-chaptertitle"),this.je.style.display="none",this.yr=h.createElement("p"),this.je.appendChild(this.yr)}};function eu(t,i){return new Hi([t.startTime,t.endTime]).br(i)}var nu=Wo.getComponent("SeekBar"),ru=class extends(ta(nu)){updateAriaAttributes(t){const i=Xo(this.player()),s=this.ks;t.setAttribute("aria-valuenow",(100*this.wr(i)).toFixed(2)),t.setAttribute("aria-valuetext",Zo(i-Jo(s),Yo(s)))}getPercent(){return this.wr(this.player().currentTime())}handleMouseMove(t){if(this.ks&&this.ks.ads&&this.ks.ads.playing)return;const i=this.ks;let s=Qo(i)+this.calculateDistance(t)*Yo(i);s>=i.duration&&(s=i.duration-.1),this.Ln.Kn(s),this.player().currentTime(s)}handleMouseDown(t){this.playingStates.push(!this.player().paused()),this.Ln.tr(),super.handleMouseDown(t)}handleMouseUp(t){this.videoWasPlaying=Boolean(this.playingStates.pop()),this.Ln.ir(),super.handleMouseUp(t)}wr(t){let i=this.ks,s=(t-Qo(i))/Yo(i);return Yt(s,0,1)}dispose(){this.Ln.Ve(),I(this.playingStates)}constructor(t,i){super(t,i),this.playingStates=[],this.on(t,"emptied",this.update),this.on(t,"seeking",this.update),this.Ln=new tu(this.el(),t)}};Wo.registerComponent("SeekBar",ru);var hu=Wo.getComponent("ProgressControl");Ct.Zs.Ks&&Wo.registerComponent("ProgressControl",class extends hu{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"])}});var ou=Wo.getComponent("TooltipProgressBar"),au=class extends(ta(ou)){updateDataAttr(){let t=Xo(this.player()),i=this.En(t);this.el().setAttribute("data-current-time",i),this.tooltip.innerHTML=i}En(t){const i=this.ks;return Zo(t-Jo(i),Yo(i))}createEl(){let 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 uu(t){for(const i of t)if(i.enabled)return i}function cu(t){if(t)return t.label&&""!==t.label?{name:t.label,hd:!1}:{name:lu(t),description:fu(t),hd:!!t.height&&t.height>=720}}function lu(t){return t.height?t.height+"p":t.bandwidth?fu(t):""}function fu(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":""}Wo.registerComponent("TooltipProgressBar",au);var du=class{get kr(){return this._r}set kr(t){let i=this._r;for(let s=i.length-1;s>=0;s--){let e=i[s];A(t,e)||this.jr(e)}for(let i of t)this.Sr(i);this.Tr.oe()}get Cr(){return this.Tr.menuItems}Pr(t){let i=this.Cr;if(i)for(let s of i)if(s.Ar===t)return s}Mr(t){let i=this.Tr.addMenuItem();return i.Ar=t,i.on("click",(()=>this.Ir(i))),i.el().setAttribute("role","menuitemradio"),i}Er(t){t.dispose()}Dr(t){return!0}Sr(t){if(this.Dr(t)){A(this._r,t)||this._r.push(t);let i=this.Pr(t)||this.Mr(t);return this.Nr(i),i}this.jr(t)}jr(t){let i=this.Pr(t);i&&(this.Tr.removeMenuItem(i),this.Er(i)),C(this._r,t)}Ve(){const t=[];for(let i of this._r)t.push(i);for(let i of t)this.jr(i);I(t)}constructor(t){this._r=[],this.Tr=t}},vu=class extends du{Fr(){return this.Br=h.createElement("span"),this.Br.className="theo-settings-control-menu-item-title",Rt(this.Br,this.$r.localize("Quality")),this.Br}Rr(){return this.Or=h.createElement("span"),this.Or.className="theo-settings-control-menu-quality-automatic",Rt(this.Or,this.$r.localize("Automatic")),this.Or}Vr(){return this.Ur=h.createElement("span"),Rt(this.Ur,this.$r.localize("Automatic")),this.Ur}Lr(){return this.Hr=h.createElement("span"),this.Hr.className="theo-primary-color theo-settings-control-menu-item-hd-label",Rt(this.Hr,this.$r.localize("HD")),this.Hr}zr(){let t=h.createElement("span");t.className="theo-primary-color theo-settings-control-menu-item-value",t.appendChild(this.Or),t.appendChild(h.createTextNode(" ")),t.appendChild(this.Ur),t.appendChild(h.createTextNode(" ")),t.appendChild(this.Hr),this.Wr.el().appendChild(this.Br),this.Wr.el().appendChild(t),this.Wr.el().setAttribute("aria-label",this.$r.localize("Open the video quality settings menu"))}qr(){let t=this.Gr,i=t&&ku(t.targetQuality),s=t&&t.activeQuality,e=cu(this.Xr(i||s))||{name:this.$r.localize("Automatic")};Rt(this.Ur,e.name),yi(this.Or,"vjs-hidden",!!i),yi(this.Hr,"vjs-hidden",!e.hd)}Nr(t){let i=cu(t.Ar)||{name:this.$r.localize("Automatic")},s=i.name;i.hd&&(s+='<span class="theo-primary-color theo-settings-control-menu-item-hd-label">'+this.$r.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.$r.localize("Set video quality to ")+i.name),t.Ar?t.selected(t.Ar===this.Jr):t.selected(!this.Jr)}Ir(t){this.Gr&&(this.Gr.targetQuality=t.Ar&&t.Ar.videoQualities)}Xr(t,i){const s=i||this.kr;for(let i of s)if(t&&i&&-1!==i.videoQualities.indexOf(t))return i}Ve(){this._s.videoTracks.removeEventListener(["addtrack","removetrack","change"],this.Qr),this.$r.off("languagechange",this.se),this.Gr&&(this.Gr.removeEventListener("activequalitychanged",this.Yr),this.Gr.removeEventListener("targetqualitychanged",this.Kr),this.Gr.removeEventListener("update",this.Zr)),super.Ve()}constructor(t,i,s){super(t.subMenu),this.Gr=void 0,this.Jr=void 0,this.Qr=()=>{let t=uu(this._s.videoTracks);if(t===this.Gr)return;let i=[];if(this.Gr&&(this.Gr.removeEventListener("activequalitychanged",this.Yr),this.Gr.removeEventListener("targetqualitychanged",this.Kr),this.Gr.removeEventListener("update",this.Zr)),this.Gr=t,t){t.addEventListener("activequalitychanged",this.Yr),t.addEventListener("targetqualitychanged",this.Kr),t.addEventListener("update",this.Zr);const s=mu(bu(t.qualities.filter((t=>t.available))));i=s.length>1?[void 0,...s]:[void 0]}this.kr=i,this.Kr(),this.Yr()},this.Zr=t=>{const i=t.track;if(i!==this.Gr)return;const s=mu(bu(i.qualities.filter((t=>t.available)))),e=i&&ku(i.targetQuality);let n;this.Jr=this.Xr(e,s),n=s.length>1?[void 0,...s]:[void 0],this.kr=n,this.qr()},this.Yr=()=>{this.Sr(void 0),this.qr()},this.Kr=()=>{let t=uu(this._s.videoTracks),i=t&&ku(t.targetQuality),s=this.Xr(i),e=this.Jr;s!==e&&(this.Jr=s,s&&e||this.Sr(void 0),e&&A(this.kr,e)&&this.Sr(e),i&&this.Sr(s),this.qr())},this.se=()=>{Rt(this.Tr.menuHeader.el(),this.$r.localize("Quality")),Rt(this.Br,this.$r.localize("Quality")),Rt(this.Or,this.$r.localize("Automatic")),Rt(this.Ur,this.$r.localize("Automatic")),Rt(this.Hr,this.$r.localize("HD")),this.Wr.el().setAttribute("aria-label",this.$r.localize("Open the video quality settings menu"));for(const t of this.Cr)this.Nr(t);this.qr()},this.Wr=t,this._s=i,this.$r=s,this.Br=this.Fr(),this.Or=this.Rr(),this.Ur=this.Vr(),this.Hr=this.Lr(),this.zr(),Rt(this.Tr.menuHeader.el(),this.$r.localize("Quality")),this.kr=[void 0],this._s.videoTracks.addEventListener(["addtrack","removetrack","change"],this.Qr),this.$r.on("languagechange",this.se),this.Qr()}},pu=class{get height(){return this.th[0].height}get bandwidth(){return this.th[0].bandwidth}get videoQualities(){return this.th}get label(){return this.th[0].label}add(t){this.th.push(t)}constructor(t){this.th=t}};function mu(t){let i=[];for(let s of t){let t=s,e=!1;for(let s of i)if(wu(s,t)){s.add(t),e=!0;break}e||i.push(new pu([t]))}return i}function gu(t,i){return t&&i?zi(t,i):Li.ih}function yu(t,i){return t===i?Li.ih:gu(t.height,i.height)||gu(t.width,i.width)||gu(t.bandwidth,i.bandwidth)}function bu(t){return Oi(t,yu).reverse()}function wu(t,i){return t.label&&i.label&&t.label===i.label||et(cu(t),cu(i))}function ku(t){return Bt(t)?1===t.length?t[0]:void 0:t}function _u(t){return 1===t?"Normal":""+w.round(100*t)/100}var ju=class extends du{Fr(){return this.Br=h.createElement("span"),this.Br.className="theo-settings-control-menu-item-title",Rt(this.Br,this.$r.localize("Speed")),this.Br}zr(){const t=h.createElement("span");return t.className="theo-primary-color theo-settings-control-menu-item-value",this.Wr.el().appendChild(this.Br),this.Wr.el().appendChild(t),this.Wr.el().setAttribute("aria-label",this.$r.localize("Open the video speed settings menu")),t}Mr(t){let i=super.Mr(t);return this.Nr(i),i}Nr(t){const i=t.Ar,s=this.$r.localize(_u(i));Rt(t.el(),s),t.el().setAttribute("aria-label",this.$r.localize("Set video speed to ")+s),t.selected(t.Ar===this._s.playbackRate)}Ir(t){this._s.playbackRate=t.Ar}Ve(){this._s.removeEventListener("ratechange",this.sh),this.$r.off("languagechange",this.se),super.Ve()}constructor(t,i,s,e){super(t.subMenu),this.eh=void 0,this.sh=()=>{this.eh&&this.Sr(this.eh);let t=this._s.playbackRate;this.eh=t,Rt(this.nh,this.$r.localize(_u(t))),t&&this.Sr(t)},this.se=()=>{Rt(this.Tr.menuHeader.el(),this.$r.localize("Speed")),Rt(this.Br,this.$r.localize("Speed")),this.Wr.el().setAttribute("aria-label",this.$r.localize("Open the video speed settings menu"));for(const t of this.Cr)this.Nr(t);this.sh()},this.Wr=t,this._s=i,this.$r=s,this.Br=this.Fr(),this.nh=this.zr(),Rt(this.Tr.menuHeader.el(),this.$r.localize("Speed")),this.kr=e,this._s.addEventListener("ratechange",this.sh),this.$r.on("languagechange",this.se),this.sh()}};Wo.registerComponent("SettingsButton",class extends Aa{createEl(){let t=super.createEl();return this.rh=Wo.createEl("span",{className:"theo-settings-control-label-hd theo-primary-background"}),Rt(this.rh,this.localize("HD")),t.appendChild(this.rh),t}buildCSSClass(){return"vjs-icon-cog theo-settings-control-button "+super.buildCSSClass()}se(){super.se(),Rt(this.rh,this.localize("HD")),Rt(this.menu.menuHeader.el(),this.localize("Settings"))}dispose(){this.Gr&&(this.Gr.removeEventListener("activequalitychanged",this.Yr),this.Gr=void 0),this.ks.videoTracks.removeEventListener(["addtrack","removetrack","change"],this.hh),this.oh.Ve(),this.ah.Ve(),super.dispose()}constructor(t,i){var s,e;super(t,i),this.Gr=void 0,this.hh=()=>{let t=uu(this.ks.videoTracks);t!==this.Gr&&(this.Gr&&this.Gr.removeEventListener("activequalitychanged",this.Yr),this.Gr=t,t&&t.addEventListener("activequalitychanged",this.Yr),this.Yr())},this.Yr=()=>{var t;const i=null==(t=this.Gr)?void 0:t.activeQuality,s=!!(i&&i.height>=720);this.player().toggleClass("theo-hd",s)},fi(this.menu.el(),"theo-settings-control-menu"),Rt(this.menu.menuHeader.el(),t.localize("Settings")),this.controlText("Settings"),this.Be.Fe=this.controlText(),this.uh=this.menu.addSubMenuItem({name:"QualityMenuItem"}),this.oh=new vu(this.uh,this.ks,t);let n=null!=(e=null==i||null==(s=i.playerOptions)?void 0:s.playbackRates)?e:[];this.lh=this.menu.addSubMenuItem({name:"PlaybackRateMenuItem"}),this.ah=new ju(this.lh,this.ks,t,n),this.ks.videoTracks.addEventListener(["addtrack","removetrack","change"],this.hh),this.hh()}});var xu=class extends du{fh(t){let i=t.label;if(i)return i;let s=t.language;if(s){let t=Ti(s);if(t)return t.dh}return s||""}ph(){this.kr=this.mh}Ve(){this.mh.removeEventListener("addtrack",this.gh),this.mh.removeEventListener("removetrack",this.yh),this.mh.removeEventListener("change",this.bh),super.Ve()}constructor(t,i){super(t),this.gh=t=>{const i=t.track;this.Sr(i),i.addEventListener("update",this.wh)},this.yh=t=>{const i=t.track;this.jr(i),i.removeEventListener("update",this.wh)},this.bh=t=>this.ph(),this.wh=()=>{for(const t of this.kr)this.Sr(t)},this.mh=i,this.mh.addEventListener("addtrack",this.gh),this.mh.addEventListener("removetrack",this.yh),this.mh.addEventListener("change",this.bh),this.ph()}},Su=class extends xu{Nr(t){let i=t.Ar,s=this.$r.localize(this.fh(i));Rt(t.el(),s),t.el().setAttribute("aria-label",this.$r.localize("Set the audio language to")+" "+s),t.selected(i.enabled)}Ir(t){let i=t.Ar;for(let t of this.ks.audioTracks)t!==i&&(t.enabled=!1);i.enabled=!0}Ve(){this.$r.off("languagechange",this.se),super.Ve()}constructor(t,i,s){super(t,i.audioTracks),this.se=()=>{Rt(this.Tr.menuHeader.el(),this.$r.localize("Language"));for(const t of this.Cr)this.Nr(t)},this.ks=i,this.$r=s,Rt(this.Tr.menuHeader.el(),this.$r.localize("Language")),this.$r.on("languagechange",this.se)}};Wo.registerComponent("audioTrackButton",class extends Aa{buildCSSClass(){return"vjs-icon-audio theo-audio-track-control-button "+super.buildCSSClass()}dispose(){this.kh.Ve(),super.dispose()}constructor(t,i){super(t,i),this.minimumMenuItems=2,this.kh=new Su(this.menu,this.ks,t),this.controlText("Language"),this.Be.Fe=this.controlText()}});var Tu=class extends xu{Dr(t){return!!super.Dr(t)&&(!t.forced&&kt(t.kind))}Mr(t){let i=super.Mr(t);fi(i.el(),"theo-text-track-menu-item");let s=h.createElement("span");i._h=s;let e=h.createElement("div");e.className="theo-text-track-menu-item-toggle",i.jh=e;let n=t=>this.xh(t,i);i.Sh=n,e.addEventListener("click",n);let r=h.createElement("div");return r.className="theo-text-track-menu-item-toggle-slider",e.appendChild(r),i.el().appendChild(s),i.el().appendChild(e),i}Nr(t){let i=t,s=i.Ar,e=this.$r.localize(this.fh(s));Rt(i._h,e),i.el().setAttribute("aria-label",this.$r.localize("Set the subtitle language to")+" "+e),i.el().setAttribute("role","menuitemcheckbox"),i.selected(s.mode===dt.Yn)}Er(t){let i=t;i.jh.removeEventListener("click",i.Sh),super.Er(t)}Ir(t){let i=t.Ar;for(let t of this.ks.textTracks)t!==i&&bt(t.kind,i.kind)&&(t.mode=dt.Th);i.mode!==dt.Yn?i.mode=dt.Yn:i.mode=dt.Th}xh(t,i){t.stopImmediatePropagation(),this.Ir(i)}Ve(){this.$r.off("languagechange",this.se),super.Ve()}constructor(t,i,s){super(t,i.textTracks),this.se=()=>{Rt(this.Tr.menuHeader.el(),this.$r.localize("Subtitles"));for(const t of this.Cr)this.Nr(t)},this.ks=i,this.$r=s,Rt(this.Tr.menuHeader.el(),s.localize("Subtitles")),this.$r.on("languagechange",this.se)}};Wo.registerComponent("subtitlesButton",class extends Aa{buildCSSClass(){return"vjs-icon-subtitles theo-text-track-control-button "+super.buildCSSClass()}dispose(){this.kh.Ve(),super.dispose()}constructor(t,i){super(t,i),this.kh=new Tu(this.menu,this.ks,t),this.controlText("Subtitles"),this.Be.Fe=this.controlText()}});var Cu,Pu=Wo.getComponent("playToggle");!function(t){t.Ch="Pause",t.Ph="Play",t.Ah="Replay"}(Cu||(Cu={}));var Au=class extends(ta(Pu)){handleClick(t){this.ks.muted||this.ks.prepareWithUserAction(),super.handleClick(t)}handlePlay(t){super.handlePlay(t),this.controlText("Pause"),this.Be.Fe=this.controlText()}handlePause(t){this.ks.ended||(super.handlePause(t),this.controlText("Play"),this.Be.Fe=this.controlText())}se(){this.Be.Fe=this.controlText()}dispose(){this.Be.Ve(),this.ks.removeEventListener("ended",this.Mh),super.dispose()}constructor(t,i){super(t,i),this.Mh=()=>{this.controlText("Replay"),this.Be.Fe=this.controlText()},this.controlText("Play"),this.Be=new Ca(this,this.controlText()),this.ks.addEventListener("ended",this.Mh),this.on(t,"languagechange",this.se),Ct.Zs.Ye&&new va(this.el())}};Wo.registerComponent("playToggle",Au);var Mu,Iu=Wo.getComponent("fullscreenToggle");!function(t){t.Ih="Exit fullscreen",t.Eh="Fullscreen"}(Mu||(Mu={}));var Eu=class extends(ta(Iu)){handleClick(t){this.ks.prepareWithUserAction(),super.handleClick(t)}handleFullscreenChange(t){super.handleFullscreenChange(t),this.updateContent()}updateContent(){const t=this.player().isFullscreen()?"Exit fullscreen":"Fullscreen";this.controlText(t),this.Be.Fe=this.controlText()}dispose(){this.Be.Ve(),super.dispose()}constructor(t,i){super(t,i),this.controlText("Fullscreen"),this.Be=new Ca(this,this.controlText()),Ct.Zs.Ye&&new va(this.el()),this.on(t,"languagechange",this.updateContent)}};Wo.registerComponent("fullscreenToggle",Eu);var Du,Nu=Wo.getComponent("muteToggle");!function(t){t.Dh="Unmute",t.Nh="Mute"}(Du||(Du={}));var Fu=class extends(ta(Nu)){handleClick(t){this.ks.muted&&!this.ks.paused&&this.ks.prepareWithUserAction(),super.handleClick(t)}update(t){super.update(t),this.se()}se(){const t=this.player().muted()?"Unmute":"Mute";this.controlText(t),this.Be.Fe=this.controlText()}dispose(){this.Be.Ve(),super.dispose()}constructor(t,i){super(t,i),this.controlText("Mute"),this.Be=new Ca(this,this.controlText()),Ct.Zs.Ye&&new va(this.el()),this.on(t,"languagechange",this.se),Mi&&(this.removeClass("vjs-hidden"),this.on(t,"loadstart",(()=>{this.removeClass("vjs-hidden")})))}};Wo.registerComponent("muteToggle",Fu);var Bu=Wo.getComponent("BigPlayButton"),$u=class extends(ta(Bu)){createEl(){let t=super.createEl(),i=Wo.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.ks.muted||this.ks.prepareWithUserAction(),super.handleClick(t),void 0!==this.ks.vr&&"unavailable"!==this.ks.vr.state&&(this.ks.vr.useDeviceMotionControls=!0)}};Wo.registerComponent("BigPlayButton",$u);var Ru=/^([^#]*)#xywh=(\d+),(\d+),(\d+),(\d+)\s*$/;Wo.registerComponent("MouseTimeDisplay",class extends Ja{Fh(t){const i=t.track;"metadata"===i.kind&&"thumbnails"===i.label&&void 0===this.Bh&&(this.Bh=i,this.$h=i.src?Ct.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=Wo.createEl("img",{className:"theo-time-tooltip-thumbnail"}),this.zh=Wo.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){let s=function(t,i){let s=t[0];for(let 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,Wo.toggleClass(this.el(),"theo-time-tooltip-has-thumbnail",!!i),!i)return void this.Gh();const s=i.match(Ru);if(s){let[,t,i,e,n,r]=s;t=this.Xh(t);const h={Jh:+i,Qh:+e,Ti:+n,Ci:+r};this.Yh(t,h)}else{const t=this.Xh(i);this.Yh(t)}}Vh(){j(this.In)||this.Wh(this.In)}Xh(t){return this.Bh&&this.$h?Ct.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,Ti:this.Hh.naturalWidth,Ci:this.Hh.naturalHeight}),this.zh.width=t.Ti,this.zh.height=t.Ci,i.drawImage(this.Hh,t.Jh,t.Qh,t.Ti,t.Ci,0,0,t.Ti,t.Ci),this.Zh(this.zh))}Zh(t){this.io||(this.tooltip.firstChild?this.tooltip.insertBefore(t,this.tooltip.firstChild):this.tooltip.appendChild(t),this.io=t),this.Dn()}Gh(){this.io&&(this.tooltip.removeChild(this.io),this.io=void 0,this.Dn())}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.showThumbnails=()=>{this.io&&this.io.hidden&&(this.io.hidden=!1,this.Dn())},this.hideThumbnails=()=>{!this.io||this.io.hidden||this.player().scrubbing()||(this.io.hidden=!0,this.Dn())},this.on(this.player().textTracks(),"addtrack",this.so),this.on(this.player().textTracks(),"removetrack",this.eo),Mt.Ks&&(this.on(t,"seeking",this.showThumbnails),this.on(t,"seeked",this.hideThumbnails))}});var Ou=Wo.getComponent("VolumeLevel");Wo.registerComponent("VolumeLevel",class extends Ou{createEl(){let t=super.createEl();return t.className=this.buildCSSClass(),t}buildCSSClass(){return"theo-primary-color vjs-volume-level "+super.buildCSSClass()}});var Vu=Wo.getComponent("Component"),Uu=class extends Vu{createEl(){let t=super.createEl();return t.className=this.buildCSSClass(),t}buildCSSClass(){return"theo-menu-container "+super.buildCSSClass()}};Uu.prototype.h=Bi({},Uu.prototype.h,{children:[]}),Wo.registerComponent("controlBarMenuContainer",Uu);var Lu=Wo.getComponent("Player"),Hu=class extends Lu{dispose(){const t=this.el(),i=this.contentEl(),s=t.parentNode,e=t.nextSibling;super.dispose(),hi(i),this.xi&&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)}};Hu.prototype.h=Bi({},Lu.prototype.h,{children:["bigPlayButton","AdControlPanel","TopControlBar","mediaLoader","upNextContainer","posterImage","chromecastOverlay","upcomingAdNotificationText","controlBarMenuContainer","controlBar","textTrackDisplay","loadingSpinner","errorDisplay","textTrackSettings","xrCompass"]}),Wo.registerComponent("Player",Hu);var zu=Wo.getComponent("Player"),Wu=zu.prototype.es;zu.prototype.es=function(t){if(!(this.H&&this.H.Vs&&this.H.Vs()))return Wu.call(this,t)};var qu=zu.prototype.createEl;function Gu(t,i,s,e){let n=Bi({controls:!0,playbackRates:[.25,.5,1,1.25,1.5,2]},s);n.controlBar=Bi({progressControl:{keepTooltipsInside:!0}},n.controlBar);let r=n.techOrder||(n.techOrder=[]);-1===r.indexOf("THEOplayer")&&r.unshift("THEOplayer"),(n.theoplayer||(n.theoplayer={})).player=t,s&&Ot(s.language)&&(n.languages=Bi({},n.languages,{[ji]:s.language}),n.language=ji),i.setAttribute("data-vjs-player","");let h=i.getAttribute("style"),o=Wo(t.element,n,e);return o.ready((()=>{sa(o),function(t,i){if(i){if(i.ads){const s=i=>{const s="adbreakbegin"===i.type,e=i.adBreak.integration===Ei.no;ra(t,s,e)};i.ads.addEventListener("adbreakbegin",s),i.ads.addEventListener("adbreakend",s)}if(i.verizonMedia){const s=i=>{const s="adbreakbegin"===i.type;ra(t,s,!1)};i.verizonMedia.ads.adBreaks.addEventListener("addadbreak",(t=>{t.adBreak.addEventListener("adbreakbegin",s),t.adBreak.addEventListener("adbreakend",s)}))}i.addEventListener("sourcechange",(()=>{ra(t,!1,!1)}))}}(o,t),function(t){t.on("mouseleave",ha)}(o)})),i.removeAttribute("data-vjs-player"),h?i.setAttribute("style",h):i.removeAttribute("style"),Ct.Zs.Ks&&(fi(i,"theo-mobile"),Xu(i)),function(t){t.on("seeking",(()=>{ui(t.el(),"vjs-ended")&&t.currentTime()!==t.duration()&&t.play()}))}(o),o}function Xu(t){a.outerHeight>a.outerWidth?(pi(t,"theo-mobile-landscape"),fi(t,"theo-mobile-portrait")):(pi(t,"theo-mobile-portrait"),fi(t,"theo-mobile-landscape"))}zu.prototype.createEl=function(){let t=qu.call(this),i=Wo.createEl("div");for(i.className="theo-player-wrapper";t.firstChild;)i.appendChild(t.firstChild);return t.appendChild(i),this.S=i,t};var Ju=Wo.getComponent("Button");var Qu="THEOPiPCloseButton";Wo.registerComponent(Qu,class extends Ju{buildCSSClass(){return"theo-close-button theo-pip-close"}handleClick(){this.ho.ro()}constructor(t,i){if(super(t,i),this.controlText("Close Picture-in-Picture"),!function(t){return!!t&&Boolean(t.ho)}(i))throw new d("Invalid Picture-in-picture options.");this.ho=i.ho}});var Yu,Ku=class extends ${get oo(){return this.ao}get uo(){return this.t.cs()}co(){this.t.wn(J.Ph,this.lo),this.fo||this.t.wn(J.do,this.vo),this.t.po.on("languagechange",this.se)}mo(){let t=this.yo;if(t)return"theo-pip-"+t}bo(t){let i=this.wo;if(i&&!this.uo){this.ko||this._o(),this.jo(),fi(i,"theo-pip");let s=this.mo();s&&fi(i,s),this.ao=!0,this.xo=t,this.So=!1,this.To(new Gi(P.PICTURE_IN_PICTURE))}}Co(t){let i=this.wo;if(i){this.Po(),pi(i,"theo-pip");let s=this.mo();s&&pi(i,s),this.ao=!1,this.So=t,this.Ao=this.xo,this.xo=!1,this.To(new Gi(P.INLINE))}}_o(){if(!this.ko){let t=this.t.po;t.addChild(Qu,{ho:this});let i=h.createElement("div");i.className="theo-pip-overlay",this.Mo=h.createElement("div"),this.Mo.className="theo-pip-overlay-text",Rt(this.Mo,t.localize("Video playing in Picture-in-Picture mode")),i.appendChild(this.Mo),t.el().appendChild(i),this.Io=i,this.ko=!0}}Eo(){this.Do&&!this.No&&this.t.Fo&&(this.Bo=this.t.Fo.$o(Ut,this.Ro),this.No=!0)}Oo(){this.Bo&&this.t.Fo&&(this.t.Fo.Vo(this.Bo),this.No=!1)}jo(){let t=this.t.po.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"}Po(){let t=this.t.po.contentEl();t.style.top="",t.style.bottom="",t.style.right="",t.style.left="",t.style.width="",t.style.height="",t.style.position=""}Uo(){pi(this.wo,"theo-pip"),this.oo&&this.yo&&pi(this.wo,"theo-pip-"+this.yo),this.Io&&(hi(this.Io),this.Io=void 0)}bn(){this.Uo(),this.Oo(),this.Lo(),this.t.pn(J.Ph,this.lo),this.t.pn(J.do,this.vo),this.t.po.off("languagechange",this.se),this.t=void 0}constructor(t,i,s){super(),this.Ho=!1,this.ao=!1,this.So=!1,this.xo=!1,this.ko=!1,this.No=!1,this.Ao=!1,this.lo=()=>{this.Ho=!0,this.Do&&!this.oo&&this.Bo&&this.zo&&this.Bo.Wo<=this.zo&&this.bo(!1)},this.vo=()=>{this.fo||(this.Ho=!1,this.Co(!1))},this.se=()=>{if(this.Mo){const t=this.t.po;Rt(this.Mo,t.localize("Video playing in Picture-in-Picture mode"))}},this.Ro=t=>{!this.xo&&this.Do&&(j(t)||(this.zo&&t<=this.zo||this.Ao?this.ao||this.So||this.bo(!1):this.ao?this.Co(!1):this.So=!1))},this.zo=i.visibility,this.yo=i.position,this.fo=i.retainPresentationModeOnSourceChange,this.Do=void 0!==this.zo,this.t=t,this.wo=t.qo,this.ro=s,this.co()}},Zu=class extends M{Go(){let t=super.Go();return t===P.INLINE&&this.Xo&&this.Xo.oo?P.PICTURE_IN_PICTURE:t}Jo(t){return t===P.PICTURE_IN_PICTURE||super.Jo(t)}Qo(t,i){t===P.FULLSCREEN&&this.Xo.Oo(),super.Qo(t,i),t!==P.FULLSCREEN&&this.Xo.Eo()}Yo(t,i){t!==i&&(t===P.FULLSCREEN&&this.Xo.Co(!1),t===P.INLINE&&i===P.PICTURE_IN_PICTURE&&this.Xo.Co(!0),super.Yo(t,i),t===P.PICTURE_IN_PICTURE&&(i===P.INLINE?this.Xo.bo(!0):this.Xo.bo(!1)))}bn(){super.bn(),this.Xo.bn(),this.Ko.pn(J.Ph,this.Zo),this.Ko=void 0}constructor(t,i,s){super(i),this.ta=()=>this.Zr(),this.ro=()=>this.ia(P.INLINE),this.Zo=()=>{this.Go()!==P.FULLSCREEN&&this.Xo.Eo(),this.Ko.pn(J.Ph,this.Zo)},this.Ko=t,this.Xo=new Ku(t,s.pip,this.ro),this.Xo.wn("presentationmodechange",this.ta),this.Ko.wn(J.Ph,this.Zo),this.Zr()}},tc=class extends ${get sa(){return nt.ea(this.po.el())||this.po.supportsFullScreen()}get cs(){return this.po.isFullscreen()||this.na}bo(){this.po.requestFullscreen()}Co(){this.po.exitFullscreen(),this.ra.Co()}bn(){this.Lo(),this.po.off("fullscreenchange",this.ha),this.ra.pn(Wi.oa,this.ha),this.ra.pn(Wi.aa,this.Os),this.po.isFullWindow&&this.po.exitFullscreen()}constructor(t,i){super(),this.Us=!1,this.na=!1,this.ua=!1,this.ha=()=>{if(this.ua)return;let t=this.Us,i=this.cs;t!==i&&(this.Us=i,this.To(new tt))},this.ca=()=>{this.na=this.ra.cs,this.ha()},this.la=()=>{this.ua||(this.po.isFullWindow&&this.po.supportsFullScreen()||this.na&&!this.po.supportsFullScreen())&&(this.ua=!0,this.po.exitFullscreen(),this.po.requestFullscreen(),this.ua=!1,this.ha())},this.po=t,this.ra=i,this.po.on("fullscreenchange",this.ha),this.ra.wn(Wi.oa,this.ca),this.ra.wn(Wi.fa,this.la),this.ra.wn(Wi.aa,this.Os),this.ha()}};function ic(t){return class extends t{get Fo(){return this.da}cs(){return"fullscreen"===this.va.Go()}pa(){return function(t,i){let s=g.create(t);const e=i.po;return it(s,{get controls(){return e.controls()},set controls(t){e.controls(rt(t))},get presentation(){return i.va.ma},get presentationMode(){return i.va.Go()},set presentationMode(t){const s=E(t);s&&i.va.ia(s)},get ui(){return e},get visibility(){return i.Fo.ma}})}(this.ga,this)}bn(){super.bn(),this.va.bn(),this.ya.bn(),this.po.dispose(),this.da.bn()}ba(t){this.po.src(""),super.ba(t)}constructor(t,i,s){super(i,s),this.qo=t,this.da=new zt(t),this.ga=super.pa(),g.defineProperty(this.ga,"constructor",{value:si}),this.po=Gu(this.ga,this.qo,s.ui),this.ya=new tc(this.po,this.wa),this.va=new Zu(this,this.ya,s),this.va.wn("presentationmodechange",this.Os)}}}function sc(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(Dt(t)&&!j(t))return Yt(t,0,1)}(t.visibility),t.retainPresentationModeOnSourceChange=rt(t.retainPresentationModeOnSourceChange),t}function ec(t){const i=Vi(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=sc(i.pip),i}function nc(){return Yu||(Yu=function(t){let i=t;for(const t of Xi)i=t(i);return i}(Yu=ic(Zt()))),Yu}function rc(t,i){const s=ec(i),e=h.createElement("div");ki(e),t.appendChild(e);const n=new(nc())(t,e,s);n.ka=n;let r=n.ma;return n._a(),n.ja(Gt),g.defineProperty(r,"constructor",{value:rc}),r=Z(r),Kt(n),function(t){for(const i of Ji)i(t)}(n),r}var hc="theo-cast-",oc=Wo.getComponent("Button"),ac=class extends(ta(oc)){get xa(){throw new d("Sa")}get Ta(){return this.h.Ta}get Ca(){return this.h.Ca}buildCSSClass(){return hc+"button theo-"+this.Ca+"-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=hc+"svg-container",r.innerHTML=this.Ta,e.appendChild(n),e.appendChild(r),e}handleClick(t){var i;if(super.handleClick(t),this.Pa===N.AVAILABLE)null==(i=this.xa)||i.start();else if(this.Pa===N.CONNECTED||this.Pa===N.CONNECTING){var s;null==(s=this.xa)||s.stop()}}Aa(t){pi(this.wo,"theo-"+this.Ca+"-"+this.Pa),this.Pa=t,fi(this.wo,"theo-"+this.Ca+"-"+this.Pa),this.se()}se(){this.Ma(this.Pa),this.Be.Fe=this.controlText()}Ma(t){t===N.CONNECTED?this.controlText("Stop Casting"):t===N.AVAILABLE?this.controlText("Start Casting"):t===N.CONNECTING?this.controlText("Connecting"):this.controlText("Unavailable")}constructor(t,i){var s;super(t,i),this.wo=t.el(),this.Pa=N.UNAVAILABLE,this.controlText("Unavailable"),this.Be=new Ca(this,this.controlText()),null==(s=this.xa)||s.addEventListener("statechange",(t=>{const i=t;this.Aa(i.state)})),Ct.Zs.Ye&&(this.Ia=new va(this.el())),this.Aa(this.xa?this.xa.state:N.UNAVAILABLE),this.on(t,"languagechange",this.se)}},uc=0;function cc(){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-'+uc+'">\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-'+uc+')">\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 uc++,t}Wo.registerComponent("chromecastButton",class extends ac{get xa(){var t;return null==(t=this.ks.cast)?void 0:t.chromecast}constructor(t,i){super(t,Bi({},i,{Ca:"chromecast",Ta:cc()}))}});var lc="theo-chromecast-",fc=Wo.getComponent("Component"),dc=class t extends(ta(fc)){buildCSSClass(){return lc+"overlay "+super.buildCSSClass()}createEl(){const i=super.createEl();fi(i,lc+"overlay");const s=Wo.createEl("div",{className:lc+"status-icon",innerHTML:t.ICON_SVG}),e=Wo.createEl("div",{className:lc+"status-info"});Rt(e,"Playing on");const n=Wo.createEl("div",{className:lc+"status-title"}),r=Wo.createEl("div",{className:lc+"status"});return this.yr=n,r.appendChild(s),r.appendChild(e),r.appendChild(n),i.appendChild(r),i}dispose(){var t;null==(t=this.Ea)||t.removeEventListener("statechange",this.update),this.Ea=void 0,this.ks.removeEventListener("play",this.update),super.dispose()}constructor(t,i){var s,e;super(t,i),this.update=()=>{this.Ea?(this.yr&&Rt(this.yr,this.Ea.receiverName||""),this.Ea.state===N.CONNECTED?this.show():this.hide()):this.hide()},this.Ea=null==(s=this.ks.cast)?void 0:s.chromecast,null==(e=this.Ea)||e.addEventListener("statechange",this.update),this.ks.addEventListener("play",this.update),this.update()}};dc.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>',Wo.registerComponent("chromecastOverlay",dc);Wo.registerComponent("airplayButton",class extends ac{dispose(){var t,i;null==(t=this.ks.ads)||t.removeEventListener("adbreakbegin",this.Da),null==(i=this.ks.ads)||i.removeEventListener("adbreakend",this.Na),this.ks.removeEventListener("currentsourcechange",this.Na),super.dispose()}get xa(){var t;return null==(t=this.ks.cast)?void 0:t.airplay}constructor(t,i){var s,e;super(t,Bi({},i,{Ca:"airplay",Ta:'\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.Na=()=>{this.enable()},this.Da=()=>{this.disable()},null==(s=this.ks.ads)||s.addEventListener("adbreakbegin",this.Da),null==(e=this.ks.ads)||e.addEventListener("adbreakend",this.Na),this.ks.addEventListener("currentsourcechange",this.Na)}});var vc={Default:"","Monospaced Serif":wt.Fa,"Proportional Serif":wt.Ba,"Monospaced Sans-Serif":wt.$a,"Proportional Sans-Serif":wt.Ra},pc={White:"#ffffff",Yellow:"#ffff00",Green:"#00ff00",Cyan:"#00ffff",Blue:"#0000ff",Magenta:"#ff00ff",Red:"#ff0000",Black:"#000000"},mc=[50,75,100,150,200];function gc(t){return{label:t+"%",value:t}}function yc(t){return g.keys(t).map((i=>({label:i,value:t[i]})))}mc.map((function(t){return{label:t+"%",value:t/100+"em"}}));var bc=mc.map((function(t){return{label:t+"%",value:t+"%"}})),wc=[25,50,75,100].map(gc),kc=[0,25,50,75,100].map(gc),_c=yc(pc),jc=yc(vc),xc=yc({None:"none","Drop Shadow":"dropshadow",Raised:"raised",Depressed:"depressed",Uniform:"uniform"}),Sc=100,Tc="#000000",Cc="#FFFFFF",Pc="#000000",Ac=class extends du{Oa(){let t=this.$r.localize(this.Va);Rt(this.Ua.subMenu.menuHeader.el(),t),this.Br=h.createElement("span"),this.Br.className="theo-settings-control-menu-item-title",Rt(this.Br,t);let i=h.createElement("span");return i.className="theo-primary-color theo-settings-control-menu-item-value",fi(this.Ua.el(),"theo-subtitle-options-menu-item"),this.Ua.el().appendChild(this.Br),this.Ua.el().appendChild(i),i}La(t){const i=this.Pr(t);i&&this.Ha(i)}za(){return this.kr}Ir(t){this.Wa(t.Ar)}Ha(t){for(let t of this.Tr.menuItems)t.selected(!1);t?(t.selected(!0),this.qa(t.Ar.label)):this.qa("Custom")}qa(t){this.Ga=t,Rt(this.Xa,this.$r.localize(t)),this.Ua.parentMenu.oe()}Mr(t){let i=super.Mr(t);return fi(i.el(),"theo-subtitle-options-menu-item"),this.Nr(i),i}Nr(t){const i=this.$r.localize(t.Ar.label);Rt(t.el(),i);const s=this.$r.localize("Set "+this.Va+" to ")+i;t.el().setAttribute("aria-label",s)}Ve(){this.$r.off("languagechange",this.se),super.Ve()}constructor(t,i,s,e){super(t.subMenu),this.Ua=t,this.$r=e,this.Ga="",this.se=()=>{let t=this.$r.localize(this.Va);Rt(this.Ua.subMenu.menuHeader.el(),t),Rt(this.Br,t),this.qa(this.Ga);for(const t of this.Cr)this.Nr(t)},this.Va=i,this.Wa=s.ta,this.Xa=this.Oa(),this.kr=s.Ja,this.$r.on("languagechange",this.se)}},Mc=class t{static Qa(t,i,s,e){if(void 0===t&&void 0===i)return;return At(void 0===t?s:t,void 0===i?e:i)}constructor(i){this.Ya=i,this.Ka=t=>{this.Ya.fontFamily=t.value},this.Za=t=>{this.Ya.fontSize=t.value},this.tu=i=>{this.iu=i.value,this.Ya.fontColor=t.Qa(this.su,this.iu,Cc,Sc)},this.eu=i=>{this.su=i.value,this.Ya.fontColor=t.Qa(this.su,this.iu,Cc,Sc)},this.nu=i=>{this.ru=i.value,this.Ya.backgroundColor=t.Qa(this.ru,this.hu,Tc,Sc)},this.ou=i=>{this.hu=i.value,this.Ya.backgroundColor=t.Qa(this.ru,this.hu,Tc,Sc)},this.au=i=>{this.uu=i.value,this.Ya.windowColor=t.Qa(this.uu,this.cu,Pc,Sc)},this.lu=i=>{this.cu=i.value,this.Ya.windowColor=t.Qa(this.uu,this.cu,Pc,Sc)},this.fu=t=>{this.Ya.edgeStyle=t.value}}},Ic=class{du(t,i){const s=this.vu(t,i.za());s&&i.La(s)}vu(t,i){return qi(i,(i=>i.value===t))}pu(t,i,s){let e,n;if(void 0===t)e=this.vu(void 0,i.za()),n=this.vu(void 0,s.za());else if(t){let r=function(t){let i=T(t);i||(i=T(t.slice(0,t.length-1).replace("rgb","rgba")+",1)"));i||(i=_t(xt(t),1));if(!i){let s=t.charAt(0).toUpperCase()+t.toLowerCase().slice(1);i=_t(xt(pc[s]),1)}return i}(t);if(r){let t=Tt(r),h=100*r.mu;e=this.vu(t,i.za()),n=this.vu(h,s.za())}}e&&i.La(e),n&&s.La(n)}constructor(t,i){this.Ya=t,this.gu=i,this.yu=()=>{let t=this.Ya.fontFamily;this.du(t,this.gu["Font family"]);let i=this.Ya.fontColor;this.pu(i,this.gu["Font color"],this.gu["Font opacity"]);let s=this.Ya.fontSize;this.du(s,this.gu["Font size"]);let e=this.Ya.backgroundColor;this.pu(e,this.gu["Background color"],this.gu["Background opacity"]);let n=this.Ya.windowColor;this.pu(n,this.gu["Window color"],this.gu["Window opacity"]);let r=this.Ya.edgeStyle;this.du(r,this.gu["Character edge style"])},this.Ya.addEventListener("change",this.yu),this.yu()}};var Ec=class extends du{bu(){return{"Font family":{Ja:Dc(jc),ta:this.wu.Ka},"Font color":{Ja:Dc(_c),ta:this.wu.eu},"Font opacity":{Ja:Dc(wc),ta:this.wu.tu},"Font size":{Ja:Dc(bc),ta:this.wu.Za},"Background color":{Ja:Dc(_c),ta:this.wu.nu},"Background opacity":{Ja:Dc(kc),ta:this.wu.ou},"Window color":{Ja:Dc(_c),ta:this.wu.au},"Window opacity":{Ja:Dc(kc),ta:this.wu.lu},"Character edge style":{Ja:Dc(xc),ta:this.wu.fu}}}ku(){this.Br=h.createElement("span"),this.Br.className="theo-settings-control-menu-item-title",this._u=h.createElement("span"),this._u.className="theo-primary-color theo-settings-control-menu-item-value",this.Wr.el().appendChild(this.Br),this.Wr.el().appendChild(this._u),this.se()}Mr(t){let i=this.Tr.addSubMenuItem();return i.Ar=t,this.gu[t]=new Ac(i,t,this.ju[t],this.$r),i}Nr(t){}Ir(t){}Ve(){this.$r.off("languagechange",this.se),this.xu.removeEventListener(["addtrack","removetrack"],this.Su),super.Ve()}constructor(t,i,s,e){super(t.subMenu),this.Wr=t,this.xu=i,this.$r=e,this.gu={},this.Su=()=>{this.xu.some((t=>kt(t.kind)))?this.Wr.show():this.Wr.hide()},this.se=()=>{Rt(this.Tr.menuHeader.el(),this.$r.localize("Subtitle Options")),Rt(this.Br,this.$r.localize("Subtitle")),Rt(this._u,this.$r.localize("Options")),this.Wr.el().setAttribute("aria-label",this.$r.localize("Open the subtitle options menu"))},this.wu=new Mc(s),this.ju=this.bu(),this.kr=g.keys(this.ju),this.ku(),this.Tu=new Ic(s,this.gu),this.$r.on("languagechange",this.se),this.xu.addEventListener(["addtrack","removetrack"],this.Su),this.Su()}};function Dc(t){let i=[{label:"Default",value:void 0}];for(let s of t)"Default"!==s.label&&i.push(s);return i}!function(t){Ji.push(t)}((function(t){const i=t.po.controlBar.getChild("SettingsButton").menu,s=i.addSubMenuItem({name:"TextTrackOptionsMenuItem"}),e=new Ec(s,t.nt.ma,t.Cu.ma,t.po);t.po.on("dispose",(()=>{i.removeMenuItem(s),s.dispose(),e.Ve(),i.dispose()}))}));var Nc=.02,Fc=class{Pu(t){const i=t-this.Mu.Au-20,s=t-this.Mu.Au+20;if(0===this.Mu.yo)return;const e=this.Mu.t.currentProgramDateTime.valueOf();e>s?this.Iu(this.Eu):e<i?this.Iu(this.Du):this.Iu(this.Nu)}Fu(t){const i=t-this.Mu.Au/1e3-Nc,s=t-this.Mu.Au/1e3+Nc;if(0===this.Mu.yo)return;const e=this.Mu.t.currentTime;e>s?this.Iu(this.Eu):e<i?this.Iu(this.Du):this.Iu(this.Nu)}Bu(){this.Nu=this.Ko.$u,this.Eu=this.Ko.$u-.05,this.Du=this.Ko.$u+.05}Iu(t){const i=this.Mu.t;if(i.playbackRate!==t&&0!==i.playbackRate){t>=.2&&t<=2.05?i.playbackRate=t:this.Ko.Ru(this.Mu)}}Ou(){this.Ko.pn(J.Vu,this.Uu),this.Ko.pn(J.Lu,this.Hu)}constructor(t,i){this.Nu=1,this.Eu=1.05,this.Du=.95,this.Uu=()=>{this.Bu()},this.Hu=()=>{if(!this.Ko.zu)return;const t=this.Ko.zu.Au,i=this.Ko.Wu,s=this.Ko.qu;null!==s?this.Pu(s.valueOf()+t):this.Fu(i+t/1e3)},this.Mu=t,this.Ko=i,this.Ko.wn(J.Vu,this.Uu),this.Ko.wn(J.Lu,this.Hu)}},Bc=class{get t(){return this.Ko}get ma(){var t;return null!=(t=this.Gu)?t:this.Gu=function(t){return{get label(){return t._h},get position(){return t.yo},set position(i){t.yo=i},get muted(){return t.Xu},set muted(i){t.Xu=i},get canResize(){return t.Ju},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.Ti},set width(i){t.Ti=i},get height(){return t.Ci},set height(i){t.Ci=i},get enabled(){return t.Rt},set enabled(i){t.Rt=i},get offset(){return t.Au},set offset(i){t.Au=i},remove(){t.Qu()}}}(this)}get _h(){return this.Yu}get yo(){return this.Zu.Ku.indexOf(this)}set yo(t){this.Zu.tc(this,t)}get Xu(){return this.Ko.muted}set Xu(t){this.Rt&&(this.Zu.ic=this,this.sc(t))}get Ju(){return 0!==this.yo&&this.Zu.ec===Rc.OVERLAY}get Jh(){return this.nc}set Jh(t){this.Ju&&(this.rc||(this.rc=!0),this.nc=t>1-this.Ti?1-this.Ti:w.max(t,0),this.t.element.style.setProperty("left",100*this.nc+"%"))}get Qh(){return this.hc}set Qh(t){this.Ju&&(this.rc||(this.rc=!0),this.hc=t>1-this.Ci?1-this.Ci:w.max(t,0),this.t.element.style.setProperty("top",100*this.hc+"%"))}get Ti(){return this.oc}set Ti(t){this.Ju&&this.ac(t)}get Ci(){return this.uc}set Ci(t){this.Ju&&this.ac(t)}get Rt(){return this.We}set Rt(t){t!==this.We&&0!==this.yo&&(t?(F(this.Zu.Ru(this)),this.Zu.cc(this),this.t.element.style.setProperty("display","block")):(this.t.pause(),this.t.element.style.setProperty("display","none")),this.We=t,this.Zu.lc(this))}get fc(){return this.rc}set fc(t){this.rc=t}get dc(){return this.vc}set dc(t){this.vc=t}get Au(){return this.mc}set Au(t){this.mc=t,this.gc(this.Zu.Wu,this.Zu.qu)}yc(t,i,s,e,n){!this.rc&&n&&(this.rc=!0),this.nc=t,this.hc=i,this.oc=s,this.uc=e}sc(t){this.Ko.muted=t}Qu(){0!==this.yo&&this.Zu.bc(this)}wc(){this.t.element.style.setProperty("top",100*this.hc+"%"),this.t.element.style.setProperty("left",100*this.nc+"%"),this.t.element.style.setProperty("width",100*this.oc+"%")}ac(t){const i=this.nc+this.oc,s=w.min(t,i),e=.9-this.hc,n=w.min(t,e),r=w.max(w.min(s,n),.1),h=this.oc-r;this.oc=r,this.uc=r,this.Jh+=h,this.t.element.style.setProperty("width",100*r+"%")}gc(t,i){if(null!==i){const t=i.valueOf()-this.Au;this.Ko.currentProgramDateTime=new Date(t)}else this.Ko.currentTime=t-this.Au/1e3}kc(t){const i=this.t.element.getElementsByClassName(Xc)[0],s=t?Qc:Jc;pi(i,t?Jc:Qc),fi(i,s)}Ou(){this._c.Ou(),this.Ko.element.remove(),this.Ko.destroy()}constructor(t,i,s,e){this.We=!0,this.rc=!1,this.vc=0,this.Yu=t,this.Ko=i,this.Zu=s,this._c=new Fc(this,s),this.mc=null!=e?e:0,this.oc=.2,this.uc=.2,this.nc=.76,this.hc=0}};var $c,Rc,Oc=class{get multiViewPlayer(){return this.Zu}get abr(){}get analytics(){}get audioTracks(){return this.jc}get autoplay(){return this.Zu.autoplay}set autoplay(t){this.Zu.autoplay=t}get buffered(){return this.Zu.buffered}get canvas(){}get clip(){return this.xc.ma}get currentProgramDateTime(){return null}get currentTime(){return this.Zu.currentTime}set currentTime(t){this.Zu.currentTime=t}get duration(){return this.Zu.duration}get element(){return this.Hs}get ended(){return this.Zu.ended}get error(){}get errorObject(){return this.Zu.errorObject}get latency(){}get loop(){return!1}get metrics(){}get muted(){return this.Zu.muted}set muted(t){this.Zu.muted=t}get network(){}get paused(){return this.Zu.paused}get playbackRate(){return this.Zu.playbackRate}set playbackRate(t){this.Zu.playbackRate=t}get played(){return this.Zu.played}get poster(){return""}get preload(){return""}get presentation(){}get readyState(){return this.Zu.readyState}get seekable(){return this.Zu.seekable}get seeking(){return this.Zu.seeking}get source(){}get src(){return"dummySource"}get textTrackStyle(){return this.Sc}get textTracks(){return this.Tc}get uid(){return 0}get videoHeight(){return 0}get videoTracks(){return this.jc}get videoWidth(){return 0}get volume(){return this.Zu.volume}set volume(t){this.Zu.volume=t}get views(){return this.Zu.views}get visibility(){}get layout(){return this.Zu.layout}set layout(t){this.Zu.layout=t}play(){this.Zu.play()}pause(){this.Zu.pause()}stop(){this.Zu.stop()}destroy(){this.Zu.destroy()}prepareWithUserAction(){this.Zu.prepareWithUserAction()}addEventListener(t,i){this.Cc.wn(t,i)}removeEventListener(t,i){this.Cc.pn(t,i)}setSource(t){}constructor(t,i){this.Cc=new $,this.Zu=t,this.Hs=i,this.xc=new ht,this.jc=(new ii).ma,this.Tc=(new ni).ma,this.Sc=(new ft).ma,this.Zu.addEventListener(["play","pause","seeking","seeked","timeupdate","ended","playing","waiting","sourcechange","readystatechange","loadedmetadata","loadeddata","canplay","canplaythrough","loadstart","progress","durationchange","volumechange","ratechange","error"],this.Cc.Os)}},Vc=class extends O{constructor(t){super($c.Pc),this.view=t}},Uc=class extends O{constructor(t,i){super($c.VIEW_POSITION_CHANGE),this.oldPosition=t,this.newPosition=i}},Lc=class extends O{constructor(t){super($c.Ac),this.view=t}},Hc=class extends O{constructor(t){super($c.VIEW_CHANGE),this.view=t}},zc=class extends O{constructor(t){super($c.Mc),this.layout=t}},Wc=class extends ${get Wu(){return this.Ko.Wu}get Ic(){return this.Ko.Ic}get lt(){return this.Ko.Ec}get Dc(){return this.Ko.Dc}get Nc(){return this.Ko.Nc}get Fc(){return this.Ko.Fc}get Bc(){return!1}get $c(){return!1}Ou(){this.Lo()}constructor(t){super(),this.Rc=t=>{this.Os(new Qt(t.source))},this.Oc=t=>{this.Os(new mi(t.currentTime))},this.Vc=t=>{this.Os(new di(t.currentTime))},this.Uc=t=>{this.Os(new Pi(t.currentTime))},this.Lc=t=>{this.Os(new Ii(t.currentTime))},this.Hc=t=>{this.Os(new Y(t.currentTime,t.currentProgramDateTime))},this.zc=t=>{this.Os(new Si(t.currentTime))},this.Wc=t=>{this.Os(new Ht(t.currentTime))},this.qc=t=>{this.Os(new Nt(t.currentTime))},this.Gc=t=>{this.Os(new St(t.currentTime,t.readyState))},this.Xc=t=>{this.Os(new Pt(t.currentTime,this.Nc))},this.Jc=t=>{this.Os(new It(t.currentTime,this.Nc))},this.Qc=t=>{this.Os(new $t(t.currentTime,this.Nc))},this.Yc=t=>{this.Os(new Vt(t.currentTime,this.Nc))},this.Kc=()=>{this.Os(new mt)},this.Zc=t=>{this.Os(new vt(t.currentTime))},this.tl=t=>{this.Os(new bi(t.duration))},this.il=t=>{this.Os(new Ni(this.Wu,t.volume))},this.sl=t=>{this.Os(new _i(this.Wu,t.playbackRate))},this.nl=t=>{this.Os(new Ai(t.errorObject))},this.rl=()=>{this.Os(new tt)},this.Ko=t,this.Ko.wn("sourcechange",this.Rc),this.Ko.wn("play",this.Oc),this.Ko.wn("pause",this.Vc),this.Ko.wn("seeking",this.Uc),this.Ko.wn("seeked",this.Lc),this.Ko.wn("timeupdate",this.Hc),this.Ko.wn("ended",this.zc),this.Ko.wn("playing",this.Wc),this.Ko.wn("waiting",this.qc),this.Ko.wn("readystatechange",this.Gc),this.Ko.wn("loadedmetadata",this.Xc),this.Ko.wn("loadeddata",this.Jc),this.Ko.wn("canplay",this.Qc),this.Ko.wn("canplaythrough",this.Yc),this.Ko.wn("loadstart",this.Kc),this.Ko.wn("progress",this.Zc),this.Ko.wn("durationchange",this.tl),this.Ko.wn("volumechange",this.il),this.Ko.wn("ratechange",this.sl),this.Ko.wn("error",this.nl),this.Ko.wn("fullscreenchange",this.rl)}},qc=class{async hl(){const t=this.Ko;if(!t.ol||!t.Dc)return;const i=this.al.mutedAutoplay;switch(await this.ll.cl(t.Xu)){case"all":t.Xu||t.fl(),t.dl();break;case"muted":(t.Xu||i===$i.ALL)&&(t.Xu=!0,t.dl())}}bn(){this.ll.bn(),this.mn.bn()}constructor(t,i,s){this.Ko=t,this.al=s,this.Sc=new ft,this.mn=new K(i);const e=new ti(this.mn,this.Sc,1,[ot.vl]);this.ll=new ei(e)}},Gc=[jt.pl,jt.ml,jt.gl,jt.yl],Xc="theo-switch-audio-button",Jc="vjs-icon-volume-mute",Qc="vjs-icon-volume-high",Yc="theo-main-view",Kc="theo-layout-";!function(t){t.Pc="addview",t.Ac="removeview",t.VIEW_CHANGE="viewchange",t.VIEW_POSITION_CHANGE="viewpositionchange",t.Mc="layoutchange"}($c||($c={})),function(t){t.GALLERY="gallery",t.OVERLAY="overlay",t.SPOTLIGHT="spotlight"}(Rc||(Rc={}));var Zc=class extends ${get ma(){var t;return null!=(t=this.Gu)?t:this.Gu=function(t){return{load:(i,s,e,n)=>t.On(i,s,e,n),get views(){return t.Ku.map((t=>t.ma))},get mainVideoView(){var i;return null==(i=t.zu)?void 0:i.ma},get mainAudioView(){var i;return null==(i=t.ic)?void 0:i.ma},get ui(){return t.po},get layout(){return t.ec},set layout(i){t.ec=i},get buffered(){return t.bl},get currentTime(){return t.Wu},set currentTime(i){t.Wu=i},get autoplay(){return t.ol},set autoplay(i){t.ol=i},get duration(){return t.ct},get ended(){return t.Ic},get errorObject(){return t.Ec},get muted(){return t.Xu},set muted(i){t.Xu=i},get paused(){return t.Dc},get playbackRate(){return t.$u},set playbackRate(i){t.$u=i},get played(){return t.wl},get readyState(){return t.Nc},get seekable(){return t.kl},get seeking(){return t.Fc},get volume(){return t._l},set volume(i){t._l=i},play(){t.dl()},pause(){t.jl()},stop(){t.xl()},destroy(){t.Ou(),t=null},requestFullscreen(i){t.Sl(i)},exitFullscreen(){t.Tl()},prepareWithUserAction(){t.fl()},addEventListener(i,s){t.wn(i,s)},removeEventListener(i,s){t.pn(i,s)}}}(this)}get po(){return this.Cl}get Ku(){return this.Pl}get zu(){return this.Al}get ic(){var t;return null!=(t=this.Ml)?t:this.Al}set ic(t){if(this.Ml===t)return;const i=this.ic,s=null!=t?t:this.zu;i.t.removeEventListener(J.Il,this.El),i.kc(!1),i.Xu||(i.sc(!0),s.sc(!1)),s.t.addEventListener(J.Il,this.El),s.kc(!0),this.Ml=t}get ec(){return this.Dl}set ec(t){if(t!==this.Dl){if("overlay"===this.ec)for(const t of this.Ku)t.t.element.style.setProperty("left","auto"),t.t.element.style.setProperty("top","auto"),t.t.element.style.removeProperty("z-index");pi(this.Hs,Kc+this.Dl),this.Dl=t,fi(this.Hs,Kc+this.Dl),this.wc(),this.To(new zc(t))}}get bl(){if(0===this.Ku.length)return Hi.Nl().ws();return this.Fl().reduce(((t,i)=>t.Cn(Hi.Sn(i.t.buffered))),new Hi([0,1/0])).ws()}get Wu(){return this.Al&&this.Bl?this.Al.t.currentTime+this.Al.Au/1e3:0}set Wu(t){this.$l();const i=this.Fl();let s=null;if(null!==this.qu){s=this.qu;const i=t-this.Wu;s.setSeconds(s.getSeconds()+i)}for(const e of i)e.gc(t,s)}get qu(){if(!this.Al)return null;return this.Ku.every((t=>null!==t.t.currentProgramDateTime))?new Date(this.Al.t.currentProgramDateTime.valueOf()+this.Al.Au):null}get ol(){return this.Rl}set ol(t){this.Rl=t,this.Ol.hl()}get ct(){if(0===this.Ku.length)return NaN;let t=1/0;for(const i of this.Fl())t=w.min(i.t.duration,t);return t}get Ic(){return this.Ku.some((t=>t.t.ended))}get lt(){return this.Ec}get Ec(){if(this.Vl)return this.Vl;for(const t of this.Ku){const i=t.t.errorObject;if(void 0!==i)return i}}get Xu(){var t,i;return null!=(i=null==(t=this.ic)?void 0:t.Xu)&&i}set Xu(t){this.ic&&this.ic.sc(t),this.El()}get Dc(){if(!this.Ku.length)return!0;return this.Fl().some((t=>t.t.paused))}get $u(){var t,i,s;return null!=(s=null!=(i=this.Ul)?i:null==(t=this.Al)?void 0:t.t.playbackRate)?s:1}set $u(t){if(void 0!==this.Ul)this.Ul=t;else for(const i of this.Ku)i.t.playbackRate=t;this.Ll()}get wl(){return this.Ku.reduce(((t,i)=>t.Hl(Hi.Sn(i.t.played))),Hi.Nl()).ws()}get Nc(){if(0===this.Ku.length)return S.zl;let t=S.Wl;for(const i of this.Fl())i.t.readyState<t&&(t=i.t.readyState);return t}get kl(){if(0===this.Ku.length)return Hi.Nl().ws();return this.Fl().reduce(((t,i)=>t.Cn(Hi.Sn(i.t.seekable))),new Hi([0,1/0])).ws()}get Fc(){return this.Ku.some((t=>t.t.seeking))}get _l(){var t,i;return null!=(i=null==(t=this.ic)?void 0:t.t.volume)?i:1}set _l(t){for(const i of this.Ku)i.t.volume=t;this.El()}On(t,i,s,e){if(this.ql)throw this.Vl;const n=this.Ku.filter((i=>i._h===t))[0];return n?n.ma:this.Gl(t,i,s,e)}dl(){if(!this.Al||!this.Dc)return;this.$l();const t=this.Fl();for(const i of t)i.t.play()}jl(){const t=this.Fl();for(const i of t)i.t.pause()}xl(){for(let t=this.Ku.length-1;t>=0;t--)this.bc(this.Ku[t]);this.Al=void 0,this.Ml=void 0,this.Vl=void 0,this.Xl&&(this.Xl.Jl(),this.Xl=void 0),this.Ql=!0,this.Yl=!1,this.Kl=!1,this.Zl=-1,this.tf=S.zl,this.if=!1,this.Ul=void 0,this.sf=!1,this.ef=-1,this.nf=!1,this.rf=-1,this.Bl=!1,this.hf.sr(),this.To(new Qt(void 0))}Ou(){for(let t=this.Ku.length-1;t>=0;t--)this.bc(this.Ku[t]);this.Lo(),this.hf.bn(),this.af.Ou(),this.uf.Ou(),this.Ol.bn(),this.po.dispose()}Sl(t){this.To(new tt),this.Hs.requestFullscreen(t).catch(Wt)}Tl(){this.To(new tt),h.exitFullscreen().catch(Wt)}fl(){for(const t of this.Ku)t.t.prepareWithUserAction()}Gl(t,i,s,e){const n=h.createElement("div");fi(n,"theo-view"),this.Hs.appendChild(n);const r=new(Zt())(n,this.al).ma;r.source=i;const o=new Bc(t,r,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),o.t.addEventListener("dimensionchange",(()=>{this.cf(t)}))}return this.lf(o),this.Ku.push(o),1===this.Ku.length?(this.Al=o,this.ff(this.Al),fi(this.Al.t.element,Yc)):(this.df(r),0!==this.Wu&&F(this.Ru(o,!0))),this.wc(),this.To(new Vc(o.ma)),o.ma}Fl(){return this.Ku.filter((t=>t.Rt))}vf(){return this.Ku.filter((t=>t.Rt&&t!==this.Al))}df(t){t.volume=this.Al.t.volume,t.muted=!0,t.playbackRate=this.Al.t.playbackRate}lf(t){t.dc=this.Ku.length;const i=t.t.element;i.addEventListener("dblclick",(()=>{this.pf(t)})),i.addEventListener("touchend",(i=>{this.mf>=i.timeStamp?(i.preventDefault(),this.pf(t),this.mf=0):this.mf=i.timeStamp+500}));const s=h.createElement("div"),e=0===this.Ku.length?Qc:Jc;s.className="theo-primary-color "+Xc+" "+e,s.addEventListener("click",(()=>{this.ic=t})),s.addEventListener("touchend",(()=>{this.ic=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.gf(t,i),this.yf(t),this.bf(t)}gf(t,i){const s=h.createElement("div");let e=0;const n=i=>{if(this.wf=!0,this.cc(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.Ti=h,t.Ci=h,e=s},o=t=>{this.wf=!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)}cf(t){const i=t.parentElement.clientWidth/100,s=w.min(40,5.23*i);t.style.fontSize=s+"px"}yf(t){const i=t.t.element,s=i.parentElement;let e={x:0,y:0};const n=i=>{if(!this.wf&&t.Ju)if(this.cc(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)}cc(t){for(const i of this.Ku)i.dc>t.dc&&(i.dc-=1,i.t.element.style.setProperty("z-index",""+i.dc));t.dc=this.Ku.length,t.t.element.style.setProperty("z-index",""+t.dc)}$l(){if(void 0!==this.Ul)return;this.Ul=this.$u;const t=this.Fl();for(const i of t)i.t.playbackRate=0}kf(){if(void 0===this.Ul)return;if(this.Fc||this.Nc<S._f){if(this.Al&&!this.Bl){this.Bl=!0;for(const t of this.vf())this.Al.Au!==t.Au&&t.gc(this.Wu,this.qu)}return}const t=this.Fl();for(const i of t)i.t.playbackRate=this.Ul;this.Ul=void 0,this.Bl=!0}lc(t){t.Rt||t!==this.Ml||(this.ic=void 0),this.To(new Hc(t.ma)),this.wc()}async Ru(t,i){void 0===i&&(i=!1),this.$l();const s=t.t;i&&(this.Xl=new U,s.addEventListener(J.do,this.As),await this.Xl.jf,s.removeEventListener(J.do,this.As)),s.readyState===S.zl&&(this.sf=!0,s.play()),this.Dc?s.pause():s.play(),t.gc(this.Wu,this.qu)}wc(){const t=this.Fl();if(!t.length)return;let i=0;switch(this.ec){case"spotlight":{t.length>1?this.Hs.style.gridTemplateColumns="80% 20%":this.Hs.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.Hs.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.fc){const t=.04+.24*s;e.yc(e.Jh,t,e.Ti,e.Ci,!1),this.cc(e),s++}e.t.element.style.setProperty("z-index",""+e.dc),e.wc()}}break}case"gallery":{const s=t.length,e=w.ceil(w.sqrt(s));for(const s of t)i>=9?s.Rt=!1:(s.t.element.style.setProperty("width",100/e+"%"),i++);break}}}tc(t,i){const s=i>=0?w.min(w.floor(i),this.Ku.length-1):0,e=t.yo,n=w.min(e,s),r=w.max(e,s),h=0===n;if(!(!this.Ku[n].Rt||!this.Ku[r].Rt)||!h){if("overlay"===this.ec){const t=this.Ku[r],i=this.Ku[n],s=t.Jh,e=t.Qh,h=t.Ti,o=t.Ci,a=i.fc||t.fc;t.yc(i.Jh,i.Qh,i.Ti,i.Ci,a),[this.Ku[n],this.Ku[r]]=[this.Ku[r],this.Ku[n]],i.yc(s,e,h,o,a)}else[this.Ku[n],this.Ku[r]]=[this.Ku[r],this.Ku[n]];h&&this.xf(this.Ku[0]),this.To(new Uc(e,s))}}bc(t){t===this.Ml&&(this.ic=void 0),t.Ou(),C(this.Ku,t),this.wc(),this.To(new Lc(t.ma))}pf(t){this.Ic||0===this.wl.length||this.Al===t||"gallery"===this.Dl||this.tc(t,0)}xf(t,i){void 0===i&&(i=!1);let s=!1;const e=this.Al;this.Al=t,t.fc=!1,this.Sf(e),pi(e.t.element,Yc),this.Ml||(s=e.Xu,e.sc(!0),e.kc(!1),t.kc(!0),i&&!s?this.To(new Ni(this.Wu,0)):t.sc(s)),this.cc(e),fi(this.Al.t.element,Yc),this.ff(this.Al),"overlay"===this.ec&&this.wc()}bf(t){t.t.addEventListener(J.Tf,this.Cf),t.t.addEventListener(J.Pf,this.Mh),t.t.addEventListener(J.Ph,this.Af),t.t.addEventListener(J.Ch,this.Mf),t.t.addEventListener(J.If,this.Xe),t.t.addEventListener(J.Ef,this.Df),t.t.addEventListener(J.Nf,this.Ff),t.t.addEventListener(jt.Bf,this.$f),t.t.addEventListener(pt.aa,this.Ps)}ff(t){t.t.addEventListener(J.Rf,this.Os),t.t.addEventListener(J.Vu,this.Ll),t.t.addEventListener(J.Lu,this.Of),this.Ml||t.t.addEventListener(J.Il,this.El)}Sf(t){t.t.removeEventListener(J.Rf,this.Os),t.t.removeEventListener(J.Vu,this.Ll),t.t.removeEventListener(J.Lu,this.Of),this.Ml||t.t.removeEventListener(J.Il,this.El)}constructor(t,i,s){super(),this.Pl=[],this.Dl="gallery",this.wf=!1,this.ql=!1,this.Ql=!0,this.Yl=!1,this.Kl=!1,this.Zl=-1,this.tf=S.zl,this.if=!1,this.mf=0,this.Ul=void 0,this.sf=!1,this.Rl=!1,this.ef=-1,this.nf=!1,this.rf=-1,this.Bl=!1,this.Vf=t=>{this.kf(),D((()=>this.Os(t)))},this.Uf=t=>{this.$l(),this.Os(t)},this.As=()=>{var t;null==(t=this.Xl)||t.Lf(),this.Xl=void 0},this.Ll=()=>{const t=this.$u;this.rf!==t&&(this.rf=t,this.Os(new _i(this.Wu,t)))},this.El=()=>{const t=this._l,i=this.Xu;this.ef===t&&this.nf===i||(this.ef=t,this.nf=i,this.Os(new Ni(this.Wu,t)))},this.Of=t=>{(this.Nc>S.Hf||this.Fc)&&this.Os(t)},this.Cf=t=>{this.kf(),this.Fc||(this.Yl=!1,this.Os(t))},this.Ff=t=>{const i=this.ct;this.Zl!==i&&(this.Zl=i,this.Os(t))},this.Ps=t=>{this.Os(t)},this.Af=t=>{if(this.Ql){if(this.sf)return void(this.sf=!1);this.Ql=!1,this.Kl=!1,this.Os(t)}},this.Xe=t=>{this.Yl||(this.Yl=!0,this.Os(t))},this.Mf=t=>{!this.Ql&&this.Dc&&(this.Ql=!0,this.Os(t))},this.Mh=t=>{this.Kl||(this.Kl=!0,this.Os(t))},this.Df=t=>{this.if||(this.if=!0,this.Os(t))},this.$f=t=>{const i=this.Nc;this.tf!==i&&(this.tf=i,this.Os(t))},this.zf=async()=>{try{await this.qf.Wf([R.MULTIVIEW])}catch(t){this.xl(),this.Vl=G(t,H.LICENSE_INVALID_FEATURE),this.ql=!0,this.To(new Jt(this.Vl))}},this.Gf=t,this.Hs=i,this.al=s;const e=Ct.Xf,n=new ct,r=new z("7.8.0",e,n),h=new L(s.isEmbeddable,"7.8.0",V());if(this.qf=new at(e,h,r,n,s,V()),this.qf.Jf().then(this.zf),this.Qf=new Oc(this.ma,this.Hs),this.Cl=Gu(this.Qf,this.Gf,s.ui),fi(this.Hs,Kc+this.Dl),Ct.Zs.Ks){const t=this.Cl.el();fi(t,"theo-mobile"),Xu(t)}this.uf=new Wc(this),this.af=new yt(this.uf),this.af.wn(jt.Yf,this.Vf),this.hf=new qt(this,!0),this.hf.wn(Gc,this.Os),this.hf.wn(jt.Kf,this.Uf),this.Ol=new qc(this,t,s)}};function tl(t,i){var s;const e=ec(Bi({},i||{},{allowNativeFullscreen:!1,ui:Bi({},(null==i?void 0:i.ui)||{},{userActions:Bi({},(null==i||null==(s=i.ui)?void 0:s.userActions)||{},{click:!1})}),abr:Bi({},(null==i?void 0:i.abr)||{},{restrictToPlayerSize:!0})})),n=h.createElement("div");ki(n),t.appendChild(n);let r=new Zc(t,n,e).ma;return g.defineProperty(r,"constructor",{value:tl}),r=Z(r),r}var il="vjs-selected",sl=class extends du{Nr(t){const i=t.Ar,s=this.$r.localize(i.label);Rt(t._h,s),t.el().setAttribute("aria-label",this.$r.localize("Enable/disable")+" "+s),t.el().setAttribute("role","menuitemcheckbox"),t.selected(i.enabled)}Mr(t){const i=super.Mr(t);fi(i.el(),"theo-multi-view-menu-item"),2===this.Cr.length&&fi(i.el(),"theo-multi-view-menu-item-position-zero");const s=h.createElement("span");i._h=s;const e=h.createElement("div");e.className="theo-multi-view-menu-item-toggle",i.jh=e;const n=t=>this.xh(t,i);i.Sh=n,e.addEventListener("click",n);const r=h.createElement("div");return r.className="theo-multi-view-menu-item-toggle-slider",e.appendChild(r),i.el().appendChild(s),i.el().appendChild(e),this.Zf.before(i.el()),i}td(){const t=this.Tr.addMenuItem().el();fi(t,"theo-multi-view-menu-item"),fi(t,"theo-multi-view-menu-layout-select");const i=h.createElement("button");i.className="vjs-icon-view-grid",i.addEventListener("click",(()=>{this._s.layout=Rc.GALLERY})),t.appendChild(i),this.sd=i;const s=h.createElement("button");s.className="vjs-icon-view-spotlight",s.addEventListener("click",(()=>{this._s.layout=Rc.SPOTLIGHT})),t.appendChild(s),this.ed=s;const e=h.createElement("button");return e.className="vjs-icon-multi-view",e.addEventListener("click",(()=>{this._s.layout=Rc.OVERLAY})),t.appendChild(e),this.nd=e,t}xh(t,i){t.stopImmediatePropagation(),this.Ir(i)}Ir(t){const i=t.Ar;for(const t of this._s.views)t===i&&(t.enabled=!t.enabled);this.Nr(t)}Er(t){t.jh.removeEventListener("click",t.Sh),super.Er(t)}constructor(t,i,s){super(t),this.rd=t=>{this.Sr(t.view)},this.od=t=>{this.jr(t.view)},this.ad=t=>{const i=t.oldPosition,s=t.newPosition,e=w.max(i,s),n=w.min(i,s),r=h.getElementsByClassName("theo-multi-view-menu-item");r[e].before(r[n]),r[n].before(r[e]),0===n&&(pi(r[e],"theo-multi-view-menu-item-position-zero"),fi(r[n],"theo-multi-view-menu-item-position-zero"))},this.ud=()=>{const t=this._s.layout;yi(this.sd,il,t===Rc.GALLERY),yi(this.ed,il,t===Rc.SPOTLIGHT),yi(this.nd,il,t===Rc.OVERLAY)},i.views&&(this._s=i,this.$r=s,this._s.multiViewPlayer.addEventListener($c.Pc,this.rd),this._s.multiViewPlayer.addEventListener($c.Ac,this.od),this._s.multiViewPlayer.addEventListener($c.VIEW_CHANGE,this.rd),this._s.multiViewPlayer.addEventListener($c.VIEW_POSITION_CHANGE,this.ad),this._s.multiViewPlayer.addEventListener($c.Mc,this.ud),Rt(this.Tr.menuHeader.el(),this.$r.localize("MultiView")),this.Zf=this.td(),this.ud())}};Wo.registerComponent("multiViewButton",class extends Aa{buildCSSClass(){return"vjs-icon-view-grid "+super.buildCSSClass()}dispose(){this.kh.Ve(),super.dispose()}constructor(t,i){super(t,i),this.minimumMenuItems=3,this.kh=new sl(this.menu,this.ks,t),this.controlText(t.localize("Views")),this.Be.Fe=this.controlText()}});export{si as ChromelessPlayer,W as ErrorCategory,H as ErrorCode,tl as MultiViewPlayer,rc as Player,Ui as cache,Ri as cast,ai as features,vi as playerSuiteVersion,gi as players,wi as registerContentProtectionIntegration,ri as utils,li as version,Wo as videojs};
|