var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{
let window = _____WB$wombat$assign$function_____("window");
let self = _____WB$wombat$assign$function_____("self");
let document = _____WB$wombat$assign$function_____("document");
let location = _____WB$wombat$assign$function_____("location");
let top = _____WB$wombat$assign$function_____("top");
let parent = _____WB$wombat$assign$function_____("parent");
let frames = _____WB$wombat$assign$function_____("frames");
let opens = _____WB$wombat$assign$function_____("opens");

/*!
   JW Player version 8.12.5
   Copyright (c) 2020, JW Player, All Rights Reserved 
   This source code and its use and distribution is subject to the terms 
   and conditions of the applicable license agreement. 
   https://www.jwplayer.com/tos/
   This product includes portions of other software. For the full text of licenses, see
   https://ssl.p.jwpcdn.com/player/v/8.12.5/notice.txt
*/
window.jwplayer=function(e){function t(t){for(var n,i,o=t[0],u=t[1],a=0,s=[];a<o.length;a++)i=o[a],r[i]&&s.push(r[i][0]),r[i]=0;for(n in u)Object.prototype.hasOwnProperty.call(u,n)&&(e[n]=u[n]);for(c&&c(t);s.length;)s.shift()()}var n={},r={0:0};function i(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(e){var t=[],n=r[e];if(0!==n)if(n)t.push(n[2]);else{var o=new Promise((function(t,i){n=r[e]=[t,i]}));t.push(n[2]=o);var u,a=document.createElement("script");a.charset="utf-8",a.timeout=55,i.nc&&a.setAttribute("nonce",i.nc),a.src=function(e){return i.p+""+({1:"jwplayer.controls",2:"jwplayer.core",3:"jwplayer.core.controls",4:"jwplayer.core.controls.html5",5:"jwplayer.core.controls.polyfills",6:"jwplayer.core.controls.polyfills.html5",7:"jwplayer.vr",8:"polyfills.intersection-observer",9:"polyfills.webvtt",10:"provider.airplay",11:"provider.cast",12:"provider.flash",13:"provider.hlsjs",14:"provider.hlsjs-progressive",15:"provider.html5",16:"provider.shaka",17:"related",18:"vttparser"}[e]||e)+".js"}(e),u=function(t){a.onerror=a.onload=null,clearTimeout(c);var n=r[e];if(0!==n){if(n){var i=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src,u=new Error("Loading chunk "+e+" failed.\n("+i+": "+o+")");u.type=i,u.request=o,n[1](u)}r[e]=void 0}};var c=setTimeout((function(){u({type:"timeout",target:a})}),55e3);a.onerror=a.onload=u,document.head.appendChild(a)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i.oe=function(e){throw console.error(e),e};var o=window.webpackJsonpjwplayer=window.webpackJsonpjwplayer||[],u=o.push.bind(o);o.push=t,o=o.slice();for(var a=0;a<o.length;a++)t(o[a]);var c=u;return i(i.s=71)}([function(e,t,n){"use strict";n.d(t,"i",(function(){return k})),n.d(t,"A",(function(){return P})),n.d(t,"F",(function(){return E})),n.d(t,"l",(function(){return _})),n.d(t,"k",(function(){return M})),n.d(t,"a",(function(){return N})),n.d(t,"b",(function(){return R})),n.d(t,"G",(function(){return B})),n.d(t,"n",(function(){return H})),n.d(t,"H",(function(){return W})),n.d(t,"e",(function(){return U})),n.d(t,"J",(function(){return Y})),n.d(t,"m",(function(){return J})),n.d(t,"h",(function(){return K})),n.d(t,"p",(function(){return Z})),n.d(t,"c",(function(){return G})),n.d(t,"C",(function(){return ne})),n.d(t,"I",(function(){return oe})),n.d(t,"q",(function(){return ce})),n.d(t,"g",(function(){return se})),n.d(t,"j",(function(){return le})),n.d(t,"D",(function(){return fe})),n.d(t,"w",(function(){return pe})),n.d(t,"t",(function(){return be})),n.d(t,"v",(function(){return me})),n.d(t,"x",(function(){return ye})),n.d(t,"s",(function(){return je})),n.d(t,"u",(function(){return we})),n.d(t,"r",(function(){return Oe})),n.d(t,"y",(function(){return ke})),n.d(t,"o",(function(){return Pe})),n.d(t,"d",(function(){return Se})),n.d(t,"E",(function(){return xe})),n.d(t,"B",(function(){return Ee})),n.d(t,"z",(function(){return Ae}));var r=n(18),i={},o=Array.prototype,u=Object.prototype,a=Function.prototype,c=o.slice,s=o.concat,l=u.toString,f=u.hasOwnProperty,d=o.map,p=o.reduce,h=o.forEach,v=o.filter,g=o.every,b=o.some,m=o.indexOf,y=Array.isArray,j=Object.keys,w=a.bind,O=window.isFinite,k=function(e,t,n){var r,o;if(null==e)return e;if(h&&e.forEach===h)e.forEach(t,n);else if(e.length===+e.length){for(r=0,o=e.length;r<o;r++)if(t.call(n,e[r],r,e)===i)return}else{var u=ue(e);for(r=0,o=u.length;r<o;r++)if(t.call(n,e[u[r]],u[r],e)===i)return}return e},C=k,P=function(e,t,n){var r=[];return null==e?r:d&&e.map===d?e.map(t,n):(k(e,(function(e,i,o){r.push(t.call(n,e,i,o))})),r)},S=P,x="Reduce of empty array with no initial value",E=function(e,t,n,r){var i=arguments.length>2;if(null==e&&(e=[]),p&&e.reduce===p)return r&&(t=G(t,r)),i?e.reduce(t,n):e.reduce(t);if(k(e,(function(e,o,u){i?n=t.call(r,n,e,o,u):(n=e,i=!0)})),!i)throw new TypeError(x);return n},T=E,A=E,_=function(e,t,n){var r;return R(e,(function(e,i,o){if(t.call(n,e,i,o))return r=e,!0})),r},F=_,M=function(e,t,n){var r=[];return null==e?r:v&&e.filter===v?e.filter(t,n):(k(e,(function(e,i,o){t.call(n,e,i,o)&&r.push(e)})),r)},I=M,N=function(e,t,n){t||(t=Pe);var r=!0;return null==e?r:g&&e.every===g?e.every(t,n):(k(e,(function(e,o,u){if(!(r=r&&t.call(n,e,o,u)))return i})),!!r)},L=N,R=function(e,t,n){t||(t=Pe);var r=!1;return null==e?r:b&&e.some===b?e.some(t,n):(k(e,(function(e,o,u){if(r||(r=t.call(n,e,o,u)))return i})),!!r)},D=R,B=function(e){return null==e?0:e.length===+e.length?e.length:ue(e).length},z=function(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}},q=function(e){return null==e?Pe:be(e)?e:xe(e)},V=function(e){return function(t,n,r){var i={};return n=q(n),k(t,(function(o,u){var a=n.call(r,o,u,t);e(i,a,o)})),i}},H=V((function(e,t,n){Ce(e,t)?e[t].push(n):e[t]=[n]})),Q=V((function(e,t,n){e[t]=n})),W=function(e,t,n,r){for(var i=(n=q(n)).call(r,t),o=0,u=e.length;o<u;){var a=o+u>>>1;n.call(r,e[a])<i?o=a+1:u=a}return o},U=function(e,t){return null!=e&&(e.length!==+e.length&&(e=ae(e)),Z(e,t)>=0)},X=U,Y=function(e,t){return M(e,Ee(t))},J=function(e,t){return _(e,Ee(t))},K=function(e){var t=s.apply(o,c.call(arguments,1));return M(e,(function(e){return!U(t,e)}))},Z=function(e,t,n){if(null==e)return-1;var r=0,i=e.length;if(n){if("number"!=typeof n)return e[r=W(e,t)]===t?r:-1;r=n<0?Math.max(0,i+n):n}if(m&&e.indexOf===m)return e.indexOf(t,n);for(;r<i;r++)if(e[r]===t)return r;return-1},$=function(){},G=function(e,t){var n,r;if(w&&e.bind===w)return w.apply(e,c.call(arguments,1));if(!be(e))throw new TypeError;return n=c.call(arguments,2),r=function(){if(!(this instanceof r))return e.apply(t,n.concat(c.call(arguments)));$.prototype=e.prototype;var i=new $;$.prototype=null;var o=e.apply(i,n.concat(c.call(arguments)));return Object(o)===o?o:i}},ee=function(e){var t=c.call(arguments,1);return function(){for(var n=0,r=t.slice(),i=0,o=r.length;i<o;i++)Ce(r[i],"partial")&&(r[i]=arguments[n++]);for(;n<arguments.length;)r.push(arguments[n++]);return e.apply(this,r)}},te=ee(z,2),ne=function(e,t){var n={};return t||(t=Pe),function(){var r=t.apply(this,arguments);return Ce(n,r)?n[r]:n[r]=e.apply(this,arguments)}},re=function(e,t){var n=c.call(arguments,2);return setTimeout((function(){return e.apply(null,n)}),t)},ie=ee(re,{partial:ee},1),oe=function(e,t,n){var r,i,o,u=null,a=0;n||(n={});var c=function(){a=!1===n.leading?0:Te(),u=null,o=e.apply(r,i),r=i=null};return function(){a||!1!==n.leading||(a=Te);var s=t-(Te-a);return r=this,i=arguments,s<=0?(clearTimeout(u),u=null,a=Te,o=e.apply(r,i),r=i=null):u||!1===n.trailing||(u=setTimeout(c,s)),o}},ue=function(e){if(!pe(e))return[];if(j)return j(e);var t=[];for(var n in e)Ce(e,n)&&t.push(n);return t},ae=function(e){for(var t=ue(e),n=ue.length,r=Array(n),i=0;i<n;i++)r[i]=e[t[i]];return r},ce=function(e){for(var t={},n=ue(e),r=0,i=n.length;r<i;r++)t[e[n[r]]]=n[r];return t},se=function(e){return k(c.call(arguments,1),(function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])})),e},le=Object.assign||function(e){return k(c.call(arguments,1),(function(t){if(t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})),e},fe=function(e){var t={},n=s.apply(o,c.call(arguments,1));return k(n,(function(n){n in e&&(t[n]=e[n])})),t},de=y||function(e){return"[object Array]"==l.call(e)},pe=function(e){return e===Object(e)},he=[];k(["Function","String","Number","Date","RegExp"],(function(e){he[e]=function(t){return l.call(t)=="[object "+e+"]"}})),he.Function=function(e){return"function"==typeof e};var ve=he.Date,ge=he.RegExp,be=he.Function,me=he.Number,ye=he.String,je=function(e){return O(e)&&!we(parseFloat(e))},we=function(e){return me(e)&&e!=+e},Oe=function(e){return!0===e||!1===e||"[object Boolean]"==l.call(e)},ke=function(e){return void 0===e},Ce=function(e,t){return f.call(e,t)},Pe=function(e){return e},Se=function(e){return function(){return e}},xe=function(e){return function(t){return t[e]}},Ee=function(e){return function(t){if(t===e)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0}},Te=r.a,Ae=function(e){return me(e)&&!we(e)};t.f={after:function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},all:N,any:R,before:z,bind:G,clone:function(e){return pe(e)?de(e)?e.slice():le({},e):e},collect:S,compact:function(e){return M(e,Pe)},constant:Se,contains:U,debounce:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;return function(){for(var r=this,i=arguments.length,o=new Array(i),u=0;u<i;u++)o[u]=arguments[u];clearTimeout(t),t=setTimeout((function(){e.apply(r,o)}),n)}},defaults:se,defer:ie,delay:re,detect:F,difference:K,each:k,every:L,extend:le,filter:M,find:_,findWhere:J,foldl:T,forEach:C,groupBy:H,has:Ce,identity:Pe,include:X,indexBy:Q,indexOf:Z,inject:A,invert:ce,isArray:de,isBoolean:Oe,isDate:ve,isFinite:je,isFunction:be,isNaN:we,isNull:function(e){return null===e},isNumber:me,isObject:pe,isRegExp:ge,isString:ye,isUndefined:ke,isValidNumber:Ae,keys:ue,last:function(e,t,n){if(null!=e)return null==t||n?e[e.length-1]:c.call(e,Math.max(e.length-t,0))},map:P,matches:Ee,max:function(e,t,n){if(!t&&de(e)&&e[0]===+e[0]&&e.length<65535)return Math.max.apply(Math,e);var r=-1/0,i=-1/0;return k(e,(function(e,o,u){var a=t?t.call(n,e,o,u):e;a>i&&(r=e,i=a)})),r},memoize:ne,now:Te,omit:function(e){var t={},n=s.apply(o,c.call(arguments,1));for(var r in e)U(n,r)||(t[r]=e[r]);return t},once:te,partial:ee,pick:fe,pluck:function(e,t){return P(e,xe(t))},property:xe,propertyOf:function(e){return null==e?function(){}:function(t){return e[t]}},reduce:E,reject:function(e,t,n){return M(e,(function(e,r,i){return!t.call(n,e,r,i)}),n)},result:function(e,t){if(null!=e){var n=e[t];return be(n)?n.call(e):n}},select:I,size:B,some:D,sortedIndex:W,throttle:oe,where:Y,without:function(e){return K(e,c.call(arguments,1))}}},function(e,t,n){"use strict";n.d(t,"y",(function(){return u})),n.d(t,"x",(function(){return a})),n.d(t,"w",(function(){return c})),n.d(t,"t",(function(){return s})),n.d(t,"u",(function(){return l})),n.d(t,"a",(function(){return f})),n.d(t,"c",(function(){return d})),n.d(t,"v",(function(){return p})),n.d(t,"d",(function(){return h})),n.d(t,"h",(function(){return v})),n.d(t,"e",(function(){return g})),n.d(t,"k",(function(){return b})),n.d(t,"i",(function(){return m})),n.d(t,"j",(function(){return y})),n.d(t,"b",(function(){return j})),n.d(t,"f",(function(){return w})),n.d(t,"g",(function(){return O})),n.d(t,"o",(function(){return k})),n.d(t,"l",(function(){return C})),n.d(t,"m",(function(){return P})),n.d(t,"n",(function(){return S})),n.d(t,"p",(function(){return x})),n.d(t,"q",(function(){return E})),n.d(t,"r",(function(){return T})),n.d(t,"s",(function(){return A})),n.d(t,"A",(function(){return _})),n.d(t,"z",(function(){return F})),n.d(t,"B",(function(){return M}));var r=n(0);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=1e5,a=100001,c=100002,s=101e3,l=102e3,f=200001,d=202e3,p=104e3,h=203e3,v=203640,g=204e3,b=210001,m=21e4,y=214e3,j=306e3,w=308e3,O=308640,k="cantPlayVideo",C="badConnection",P="cantLoadPlayer",S="cantPlayInBrowser",x="liveStreamDown",E="protectedContent",T="technicalError",A=function(){function e(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;i(this,e),this.code=Object(r.z)(n)?n:0,this.sourceError=o,t&&(this.key=t)}var t,n,u;return t=e,u=[{key:"logMessage",value:function(e){var t=e%1e3,n=Math.floor((e-t)/1e3),r=e;return t>=400&&t<600&&(r="".concat(n,"400-").concat(n,"599")),"JW Player ".concat(e>299999&&e<4e5?"Warning":"Error"," ").concat(e,". For more information see https://developer.jwplayer.com/jw-player/docs/developer-guide/api/errors-reference#").concat(r)}}],(n=null)&&o(t.prototype,n),u&&o(t,u),e}();function _(e,t,n){return n instanceof A&&n.code?n:new A(e,t,n)}function F(e,t){var n=_(T,t,e);return n.code=(e&&e.code||0)+t,n}function M(e){var t=e.name,n=e.message;switch(t){case"AbortError":return/pause/.test(n)?303213:/load/.test(n)?303212:303210;case"NotAllowedError":return 303220;case"NotSupportedError":return 303230;default:return 303200}}},function(e,t,n){"use strict";n.d(t,"i",(function(){return o})),n.d(t,"e",(function(){return u})),n.d(t,"j",(function(){return a})),n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return s})),n.d(t,"g",(function(){return l})),n.d(t,"d",(function(){return f})),n.d(t,"f",(function(){return d})),n.d(t,"h",(function(){return p})),n.d(t,"c",(function(){return h}));var r=n(0),i=window.parseFloat;function o(e){return e.replace(/^\s+|\s+$/g,"")}function u(e,t,n){for(e=""+e,n=n||"0";e.length<t;)e=n+e;return e}function a(e,t){for(var n=e.attributes,r=0;r<n.length;r++)if(n[r].name&&n[r].name.toLowerCase()===t.toLowerCase())return n[r].value.toString();return""}function c(e){if(!e||"rtmp"===e.substr(0,4))return"";var t=/[(,]format=(m3u8|mpd)-/i.exec(e);return t?t[1]:(e=e.split("?")[0].split("#")[0]).lastIndexOf(".")>-1?e.substr(e.lastIndexOf(".")+1,e.length).toLowerCase():""}function s(e){var t=(e/60|0)%60,n=e%60;return u((e/3600|0).toString(),2)+":"+u(t.toString(),2)+":"+u(n.toFixed(3),6)}function l(e,t){if(!e)return 0;if(Object(r.z)(e))return e;var n=e.replace(",","."),o=n.slice(-1),u=n.split(":"),a=u.length,c=0;if("s"===o)c=i(n);else if("m"===o)c=60*i(n);else if("h"===o)c=3600*i(n);else if(a>1){var s=a-1;4===a&&(t&&(c=i(u[s])/t),s-=1),c+=i(u[s]),c+=60*i(u[s-1]),a>=3&&(c+=3600*i(u[s-2]))}else c=i(n);return Object(r.z)(c)?c:0}function f(e,t,n){if(Object(r.x)(e)&&"%"===e.slice(-1)){var o=i(e);return t&&Object(r.z)(t)&&Object(r.z)(o)?t*o/100:null}return l(e,n)}function d(e,t){return e.map((function(e){return t+e}))}function p(e,t){return e.map((function(e){return e+t}))}function h(e){return!!e&&Object(r.x)(e)&&"%"===e.slice(-1)}},function(e,t,n){"use strict";n.d(t,"kb",(function(){return r})),n.d(t,"nb",(function(){return i})),n.d(t,"lb",(function(){return o})),n.d(t,"pb",(function(){return u})),n.d(t,"qb",(function(){return a})),n.d(t,"mb",(function(){return c})),n.d(t,"ob",(function(){return s})),n.d(t,"rb",(function(){return l})),n.d(t,"s",(function(){return f})),n.d(t,"u",(function(){return d})),n.d(t,"t",(function(){return p})),n.d(t,"n",(function(){return h})),n.d(t,"q",(function(){return v})),n.d(t,"sb",(function(){return g})),n.d(t,"r",(function(){return b})),n.d(t,"Z",(function(){return m})),n.d(t,"W",(function(){return y})),n.d(t,"v",(function(){return j})),n.d(t,"Y",(function(){return w})),n.d(t,"w",(function(){return O})),n.d(t,"ub",(function(){return k})),n.d(t,"a",(function(){return C})),n.d(t,"b",(function(){return P})),n.d(t,"c",(function(){return S})),n.d(t,"d",(function(){return x})),n.d(t,"e",(function(){return E})),n.d(t,"h",(function(){return T})),n.d(t,"F",(function(){return A})),n.d(t,"hb",(function(){return _})),n.d(t,"Q",(function(){return F})),n.d(t,"C",(function(){return M})),n.d(t,"B",(function(){return I})),n.d(t,"E",(function(){return N})),n.d(t,"p",(function(){return L})),n.d(t,"cb",(function(){return R})),n.d(t,"m",(function(){return D})),n.d(t,"G",(function(){return B})),n.d(t,"H",(function(){return z})),n.d(t,"N",(function(){return q})),n.d(t,"O",(function(){return V})),n.d(t,"R",(function(){return H})),n.d(t,"jb",(function(){return Q})),n.d(t,"bb",(function(){return W})),n.d(t,"D",(function(){return U})),n.d(t,"S",(function(){return X})),n.d(t,"P",(function(){return Y})),n.d(t,"T",(function(){return J})),n.d(t,"V",(function(){return K})),n.d(t,"M",(function(){return Z})),n.d(t,"L",(function(){return $})),n.d(t,"K",(function(){return G})),n.d(t,"I",(function(){return ee})),n.d(t,"J",(function(){return te})),n.d(t,"U",(function(){return ne})),n.d(t,"o",(function(){return re})),n.d(t,"y",(function(){return ie})),n.d(t,"ib",(function(){return oe})),n.d(t,"db",(function(){return ue})),n.d(t,"eb",(function(){return ae})),n.d(t,"f",(function(){return ce})),n.d(t,"g",(function(){return se})),n.d(t,"ab",(function(){return le})),n.d(t,"A",(function(){return fe})),n.d(t,"l",(function(){return de})),n.d(t,"k",(function(){return pe})),n.d(t,"fb",(function(){return he})),n.d(t,"gb",(function(){return ve})),n.d(t,"tb",(function(){return ge})),n.d(t,"z",(function(){return be})),n.d(t,"j",(function(){return me})),n.d(t,"X",(function(){return ye})),n.d(t,"i",(function(){return je})),n.d(t,"x",(function(){return we}));var r="buffering",i="idle",o="complete",u="paused",a="playing",c="error",s="loading",l="stalled",f="drag",d="dragStart",p="dragEnd",h="click",v="doubleClick",g="tap",b="doubleTap",m="over",y="move",j="enter",w="out",O=c,k="warning",C="adClick",P="adPause",S="adPlay",x="adSkipped",E="adTime",T="autostartNotAllowed",A=o,_="ready",F="seek",M="beforePlay",I="beforeComplete",N="bufferFull",L="displayClick",R="playlistComplete",D="cast",B="mediaError",z="firstFrame",q="playAttempt",V="playAttemptFailed",H="seeked",Q="setupError",W="state",U="bufferChange",X="time",Y="ratechange",J="mediaType",K="volume",Z="mute",$="metadataCueParsed",G="meta",ee="levels",te="levelsChanged",ne="visualQuality",re="controls",ie="fullscreen",oe="resize",ue="playlistItem",ae="playlist",ce="audioTracks",se="audioTrackChanged",le="playbackRateChanged",fe="logoClick",de="captionsList",pe="captionsChanged",he="providerChanged",ve="providerFirstFrame",ge="userAction",be="instreamClick",me="breakpoint",ye="fullscreenchange",je="bandwidthEstimate",we="float"},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"a",(function(){return u})),n.d(t,"c",(function(){return a}));var r=n(2);function i(e){var t="";return e&&(e.localName?t=e.localName:e.baseName&&(t=e.baseName)),t}function o(e){var t="";return e&&(e.textContent?t=Object(r.i)(e.textContent):e.text&&(t=Object(r.i)(e.text))),t}function u(e,t){return e.childNodes[t]}function a(e){return e.childNodes?e.childNodes.length:0}},function(e,t,n){"use strict";n.r(t);var r=n(7);function i(e,t){if(e&&e.length>t)return e[t]}var o=n(0);n.d(t,"Browser",(function(){return a})),n.d(t,"OS",(function(){return c})),n.d(t,"Features",(function(){return s}));var u=navigator.userAgent;var a={},c={},s={};Object.defineProperties(a,{androidNative:{get:Object(o.C)(r.c),enumerable:!0},chrome:{get:Object(o.C)(r.d),enumerable:!0},edge:{get:Object(o.C)(r.e),enumerable:!0},facebook:{get:Object(o.C)(r.g),enumerable:!0},firefox:{get:Object(o.C)(r.f),enumerable:!0},ie:{get:Object(o.C)(r.i),enumerable:!0},msie:{get:Object(o.C)(r.n),enumerable:!0},safari:{get:Object(o.C)(r.q),enumerable:!0},version:{get:Object(o.C)(function(e,t){var n,r,i,o;return e.chrome?n=-1!==t.indexOf("Chrome")?t.substring(t.indexOf("Chrome")+7):t.substring(t.indexOf("CriOS")+6):e.safari?n=t.substring(t.indexOf("Version")+8):e.firefox?n=t.substring(t.indexOf("Firefox")+8):e.edge?n=t.substring(t.indexOf("Edge")+5):e.ie&&(-1!==t.indexOf("rv:")?n=t.substring(t.indexOf("rv:")+3):-1!==t.indexOf("MSIE")&&(n=t.substring(t.indexOf("MSIE")+5))),n&&(-1!==(o=n.indexOf(";"))&&(n=n.substring(0,o)),-1!==(o=n.indexOf(" "))&&(n=n.substring(0,o)),-1!==(o=n.indexOf(")"))&&(n=n.substring(0,o)),r=parseInt(n,10),i=parseInt(n.split(".")[1],10)),{version:n,major:r,minor:i}}.bind(void 0,a,u)),enumerable:!0}}),Object.defineProperties(c,{android:{get:Object(o.C)(r.b),enumerable:!0},iOS:{get:Object(o.C)(r.j),enumerable:!0},mobile:{get:Object(o.C)(r.o),enumerable:!0},mac:{get:Object(o.C)(r.p),enumerable:!0},iPad:{get:Object(o.C)(r.k),enumerable:!0},iPhone:{get:Object(o.C)(r.l),enumerable:!0},windows:{get:Object(o.C)((function(){return u.indexOf("Windows")>-1})),enumerable:!0},version:{get:Object(o.C)(function(e,t){var n,r,o;if(e.windows)switch(n=i(/Windows(?: NT|)? ([._\d]+)/.exec(t),1)){case"6.1":n="7.0";break;case"6.2":n="8.0";break;case"6.3":n="8.1"}else e.android?n=i(/Android ([._\d]+)/.exec(t),1):e.iOS?n=i(/OS ([._\d]+)/.exec(t),1):e.mac&&(n=i(/Mac OS X (10[._\d]+)/.exec(t),1));if(n){r=parseInt(n,10);var u=n.split(/[._]/);u&&(o=parseInt(u[1],10))}return{version:n,major:r,minor:o}}.bind(void 0,c,u)),enumerable:!0}}),Object.defineProperties(s,{flash:{get:Object(o.C)(r.h),enumerable:!0},flashVersion:{get:Object(o.C)(r.a),enumerable:!0},iframe:{get:Object(o.C)(r.m),enumerable:!0},passiveEvents:{get:Object(o.C)((function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){return e=!0}});window.addEventListener("testPassive",null,t),window.removeEventListener("testPassive",null,t)}catch(e){}return e})),enumerable:!0},backgroundLoading:{get:Object(o.C)((function(){return!(c.iOS||a.safari)})),enumerable:!0}})},function(e,t,n){"use strict";n.d(t,"i",(function(){return a})),n.d(t,"e",(function(){return c})),n.d(t,"q",(function(){return s})),n.d(t,"j",(function(){return l})),n.d(t,"s",(function(){return f})),n.d(t,"r",(function(){return d})),n.d(t,"u",(function(){return p})),n.d(t,"d",(function(){return g})),n.d(t,"a",(function(){return b})),n.d(t,"o",(function(){return m})),n.d(t,"p",(function(){return y})),n.d(t,"v",(function(){return j})),n.d(t,"t",(function(){return w})),n.d(t,"h",(function(){return O})),n.d(t,"b",(function(){return k})),n.d(t,"g",(function(){return C})),n.d(t,"c",(function(){return P})),n.d(t,"m",(function(){return S})),n.d(t,"k",(function(){return x})),n.d(t,"n",(function(){return E})),n.d(t,"l",(function(){return T})),n.d(t,"f",(function(){return A}));var r,i=n(0),o=n(2),u=n(5);function a(e,t){return e.classList.contains(t)}function c(e){return l(e).firstChild}function s(e,t){O(e),function(e,t){if(!t)return;for(var n=document.createDocumentFragment(),r=l(t).childNodes,i=0;i<r.length;i++)n.appendChild(r[i].cloneNode(!0));e.appendChild(n)}(e,t)}function l(e){r||(r=new DOMParser);var t=r.parseFromString(e,"text/html").body;f(t);for(var n=t.querySelectorAll("*"),i=n.length;i--;){d(n[i])}return t}function f(e){for(var t=e.querySelectorAll("script,object,iframe"),n=t.length;n--;){var r=t[n];r.parentNode.removeChild(r)}return e}function d(e){for(var t=e.attributes,n=t.length;n--;){var r=t[n].name;if(/^on/.test(r)&&e.removeAttribute(r),/href/.test(r)){var i=t[n].value;/javascript:|javascript&colon;/.test(i)&&e.removeAttribute(r)}}return e}function p(e){return e+(e.toString().indexOf("%")>0?"":"px")}function h(e){return Object(i.x)(e.className)?e.className.split(" "):[]}function v(e,t){t=Object(o.i)(t),e.className!==t&&(e.className=t)}function g(e){return e.classList?e.classList:h(e)}function b(e,t){var n=h(e);(Array.isArray(t)?t:t.split(" ")).forEach((function(e){Object(i.e)(n,e)||n.push(e)})),v(e,n.join(" "))}function m(e,t){var n=h(e),r=Array.isArray(t)?t:t.split(" ");v(e,Object(i.h)(n,r).join(" "))}function y(e,t,n){var r=e.className||"";t.test(r)?r=r.replace(t,n):n&&(r+=" "+n),v(e,r)}function j(e,t,n){var r=a(e,t);(n=Object(i.r)(n)?n:!r)!==r&&(n?b(e,t):m(e,t))}function w(e,t,n){e.setAttribute(t,n)}function O(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function k(e){var t=document.createElement("link");t.rel="stylesheet",t.href=e,document.getElementsByTagName("head")[0].appendChild(t)}function C(e){e&&O(e)}function P(e){var t={left:0,right:0,width:0,height:0,top:0,bottom:0};if(!e||!document.body.contains(e))return t;var n=e.getBoundingClientRect(),r=window.pageYOffset,i=window.pageXOffset;return n.width||n.height||n.left||n.top?(t.left=n.left+i,t.right=n.right+i,t.top=n.top+r,t.bottom=n.bottom+r,t.width=n.right-n.left,t.height=n.bottom-n.top,t):t}function S(e,t){e.insertBefore(t,e.firstChild)}function x(e){return e.nextElementSibling}function E(e){return e.previousElementSibling}function T(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=document.createElement("a");r.href=e,r.target=t,r=Object(i.j)(r,n),u.Browser.firefox?r.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window})):r.click()}function A(){var e=window.screen.orientation;return!!e&&("landscape-primary"===e.type||"landscape-secondary"===e.type)||90===window.orientation||-90===window.orientation}},function(e,t,n){"use strict";n.d(t,"h",(function(){return u})),n.d(t,"f",(function(){return a})),n.d(t,"l",(function(){return s})),n.d(t,"k",(function(){return f})),n.d(t,"p",(function(){return d})),n.d(t,"g",(function(){return p})),n.d(t,"e",(function(){return h})),n.d(t,"n",(function(){return v})),n.d(t,"d",(function(){return g})),n.d(t,"i",(function(){return b})),n.d(t,"q",(function(){return m})),n.d(t,"j",(function(){return y})),n.d(t,"c",(function(){return j})),n.d(t,"b",(function(){return w})),n.d(t,"o",(function(){return O})),n.d(t,"m",(function(){return k})),n.d(t,"a",(function(){return C}));var r=navigator.userAgent;function i(e){return null!==r.match(e)}function o(e){return function(){return i(e)}}function u(){var e=C();return!!(e&&e>=18)}var a=o(/gecko\//i),c=o(/trident\/.+rv:\s*11/i),s=o(/iP(hone|od)/i),l="MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,f=function(){return i(/iPad/i)||l},d=function(){return i(/Macintosh/i)&&!l},p=o(/FBAV/i);function h(){return i(/\sEdge\/\d+/i)}function v(){return i(/msie/i)}function g(){return i(/\s(?:(?:Headless)?Chrome|CriOS)\//i)&&!h()&&!i(/UCBrowser/i)}function b(){return h()||c()||v()}function m(){return i(/safari/i)&&!i(/(?:Chrome|CriOS|chromium|android|phantom)/i)}function y(){return i(/iP(hone|ad|od)/i)||l}function j(){return!(i(/chrome\/[123456789]/i)&&!i(/chrome\/18/i)&&!a())&&w()}function w(){return i(/Android/i)&&!i(/Windows Phone/i)}function O(){return y()||w()||i(/Windows Phone/i)}function k(){try{return window.self!==window.top}catch(e){return!0}}function C(){if(w())return 0;var e,t=navigator.plugins;if(t&&(e=t.namedItem("Shockwave Flash"))&&e.description)return parseFloat(e.description.replace(/\D+(\d+\.?\d*).*/,"$1"));if(void 0!==window.ActiveXObject){try{if(e=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash"))return parseFloat(e.GetVariable("$version").split(" ")[1].replace(/\s*,\s*/,"."))}catch(e){return 0}return e}return 0}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.r(t),n.d(t,"exists",(function(){return o})),n.d(t,"isHTTPS",(function(){return u})),n.d(t,"isFileProtocol",(function(){return a})),n.d(t,"isRtmp",(function(){return c})),n.d(t,"isYouTube",(function(){return s})),n.d(t,"typeOf",(function(){return l})),n.d(t,"isDeepKeyCompliant",(function(){return f}));var i=window.location.protocol;function o(e){switch(r(e)){case"string":return e.length>0;case"object":return null!==e;case"undefined":return!1;default:return!0}}function u(){return"https:"===i}function a(){return"file:"===i}function c(e,t){return 0===e.indexOf("rtmp:")||"rtmp"===t}function s(e,t){return"youtube"===t||/^(http|\/\/).*(youtube\.com|youtu\.be)\/.+/.test(e)}function l(e){if(null===e)return"null";var t=r(e);return"object"===t&&Array.isArray(e)?"array":t}function f(e,t,n){var i=Object.keys(e);return Object.keys(t).length>=i.length&&i.every((function(i){var o=e[i],u=t[i];return o&&"object"===r(o)?!(!u||"object"!==r(u))&&f(o,u,n):n(i,e)}))}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n.d(t,"a",(function(){return u})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return c})),n.d(t,"b",(function(){return s})),n.d(t,"e",(function(){return l})),n.d(t,"f",(function(){return f}));var o=[].slice,u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,(n=[{key:"on",value:function(e,t,n){if(!p(this,"on",e,[t,n])||!t)return this;var r=this._events||(this._events={});return(r[e]||(r[e]=[])).push({callback:t,context:n}),this}},{key:"once",value:function(e,t,n){if(!p(this,"once",e,[t,n])||!t)return this;var r=0,i=this,o=function n(){r++||(i.off(e,n),t.apply(this,arguments))};return o._callback=t,this.on(e,o,n)}},{key:"off",value:function(e,t,n){if(!this._events||!p(this,"off",e,[t,n]))return this;if(!e&&!t&&!n)return delete this._events,this;for(var r=e?[e]:Object.keys(this._events),i=0,o=r.length;i<o;i++){e=r[i];var u=this._events[e];if(u){var a=this._events[e]=[];if(t||n)for(var c=0,s=u.length;c<s;c++){var l=u[c];(t&&t!==l.callback&&t!==l.callback._callback||n&&n!==l.context)&&a.push(l)}a.length||delete this._events[e]}}return this}},{key:"trigger",value:function(e){if(!this._events)return this;var t=o.call(arguments,1);if(!p(this,"trigger",e,t))return this;var n=this._events[e],r=this._events.all;return n&&h(n,t,this),r&&h(r,arguments,this),this}},{key:"triggerSafe",value:function(e){if(!this._events)return this;var t=o.call(arguments,1);if(!p(this,"trigger",e,t))return this;var n=this._events[e],r=this._events.all;return n&&h(n,t,this,e),r&&h(r,arguments,this,e),this}}])&&i(t.prototype,n),r&&i(t,r),e}(),a=u.prototype.on,c=u.prototype.once,s=u.prototype.off,l=u.prototype.trigger,f=u.prototype.triggerSafe;u.on=a,u.once=c,u.off=s,u.trigger=l;var d=/\s+/;function p(e,t,n,i){if(!n)return!0;if("object"===r(n)){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&e[t].apply(e,[o,n[o]].concat(i));return!1}if(d.test(n)){for(var u=n.split(d),a=0,c=u.length;a<c;a++)e[t].apply(e,[u[a]].concat(i));return!1}return!0}function h(e,t,n,r){for(var i=-1,o=e.length;++i<o;){var u=e[i];if(r)try{u.callback.apply(u.context||n,t)}catch(e){console.log('Error in "'+r+'" event handler:',e)}else u.callback.apply(u.context||n,t)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"d",(function(){return f})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return p}));var r=n(29),i=n(30),o=n(17),u=n(13),a=n(38),c=n(1),s=null,l={};function f(e){return s||(s=function(e){var t=e.get("controls"),s=h(),f=function(e,t){var n=e.get("playlist");if(Array.isArray(n)&&n.length)for(var u=Object(i.c)(Object(r.a)(n[0]),e),a=0;a<u.length;a++)for(var c=u[a],s=e.getProviders(),l=0;l<o.a.length;l++){var f=o.a[l];if(s.providerSupports(f,c))return f.name===t}return!1}(e,"html5");if(t&&s&&f)return p=n.e(6).then(function(e){n(37);var t=n(22).default;return a.a.controls=n(21).default,Object(u.a)(n(51).default),t}.bind(null,n)).catch(d(c.t+105)),l.html5=p,p;var p;if(t&&f)return function(){var e=n.e(4).then(function(e){var t=n(22).default;return a.a.controls=n(21).default,Object(u.a)(n(51).default),t}.bind(null,n)).catch(d(c.t+104));return l.html5=e,e}();if(t&&s)return n.e(5).then(function(e){n(37);var t=n(22).default;return a.a.controls=n(21).default,t}.bind(null,n)).catch(d(c.t+103));if(t)return n.e(3).then(function(e){var t=n(22).default;return a.a.controls=n(21).default,t}.bind(null,n)).catch(d(c.t+102));return(h()?n.e(8).then(function(e){return n(37)}.bind(null,n)).catch(d(c.t+120)):Promise.resolve()).then((function(){return n.e(2).then(function(e){return n(22).default}.bind(null,n)).catch(d(c.t+101))}))}(e)),s}function d(e,t){return function(){throw new c.s(c.m,e,t)}}function p(e,t){return function(){throw new c.s(null,e,t)}}function h(){var e=window.IntersectionObserverEntry;return!(e&&"IntersectionObserver"in window&&"intersectionRatio"in e.prototype)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"e",(function(){return p})),n.d(t,"c",(function(){return h}));var r=n(2),i=n(41),o=n.n(i);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a,c=o.a.clear;function s(e,t,n,r){n=n||"all-players";var i="";if("object"===u(t)){var a=document.createElement("div");l(a,t);var c=a.style.cssText;Object.prototype.hasOwnProperty.call(t,"content")&&c&&(c="".concat(c,' content: "').concat(t.content,'";')),r&&c&&(c=c.replace(/;/g," !important;")),i="{"+c+"}"}else"string"==typeof t&&(i=t);""!==i&&"{}"!==i?o.a.style([[e,e+i]],n):o.a.clear(n,e)}function l(e,t){if(null!=e){var n;void 0===e.length&&(e=[e]);var r={};for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=d(n,t[n]));for(var i=0;i<e.length;i++){var o=e[i],u=void 0;if(null!=o)for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(u=f(n),o.style[u]!==r[n]&&(o.style[u]=r[n]))}}}function f(e){e=e.split("-");for(var t=1;t<e.length;t++)e[t]=e[t].charAt(0).toUpperCase()+e[t].slice(1);return e.join("")}function d(e,t){return""===t||null==t?"":"string"==typeof t&&isNaN(t)?/png|gif|jpe?g/i.test(t)&&t.indexOf("url")<0?"url("+t+")":t:0===t||"z-index"===e||"opacity"===e?""+t:/color/i.test(e)?"#"+Object(r.e)(t.toString(16).replace(/^0x/i,""),6):Math.ceil(t)+"px"}function p(e,t){l(e,{transform:t,webkitTransform:t,msTransform:t,mozTransform:t,oTransform:t})}function h(e,t){var n="rgb",r=void 0!==t&&100!==t;if(r&&(n+="a"),!a){var i=document.createElement("canvas");i.height=1,i.width=1,a=i.getContext("2d")}e?isNaN(parseInt(e,16))||(e="#"+e):e="#000000",a.clearRect(0,0,1,1),a.fillStyle=e,a.fillRect(0,0,1,1);var o=a.getImageData(0,0,1,1).data;return n+="("+o[0]+", "+o[1]+", "+o[2],r&&(n+=", "+t/100),n+")"}},function(e,t,n){"use strict";n.r(t),n.d(t,"getAbsolutePath",(function(){return o})),n.d(t,"isAbsolutePath",(function(){return u})),n.d(t,"parseXML",(function(){return a})),n.d(t,"serialize",(function(){return c})),n.d(t,"parseDimension",(function(){return s})),n.d(t,"timeFormat",(function(){return l}));var r=n(8),i=n(0);function o(e,t){if(t&&Object(r.exists)(t)||(t=document.location.href),!Object(r.exists)(e))return"";if(u(e))return e;var n,i=t.substring(0,t.indexOf("://")+3),o=t.substring(i.length,t.indexOf("/",i.length+1));if(0===e.indexOf("/"))n=e.split("/");else{var a=t.split("?")[0];n=(a=a.substring(i.length+o.length+1,a.lastIndexOf("/"))).split("/").concat(e.split("/"))}for(var c=[],s=0;s<n.length;s++)n[s]&&Object(r.exists)(n[s])&&"."!==n[s]&&(".."===n[s]?c.pop():c.push(n[s]));return i+o+"/"+c.join("/")}function u(e){return/^(?:(?:https?|file):)?\/\//.test(e)}function a(e){var t=null;try{(t=(new window.DOMParser).parseFromString(e,"text/xml")).querySelector("parsererror")&&(t=null)}catch(e){}return t}function c(e){if(void 0===e)return null;if("string"==typeof e&&e.length<6){var t=e.toLowerCase();if("true"===t)return!0;if("false"===t)return!1;if(!Object(i.u)(Number(e))&&!Object(i.u)(parseFloat(e)))return Number(e)}return e}function s(e){return Object(i.z)(e)?e:""===e?0:e.lastIndexOf("%")>-1?e:parseInt(e.replace("px",""),10)}function l(e,t){if(Object(i.u)(e)&&(e=parseInt(e.toString())),Object(i.u)(e)||!isFinite(e)||e<=0&&!t)return"00:00";var n=e<0?"-":"";e=Math.abs(e);var r=Math.floor(e/3600),o=Math.floor((e-3600*r)/60),u=Math.floor(e%60);return n+(r?r+":":"")+(o<10?"0":"")+o+":"+(u<10?"0":"")+u}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(33),i=n(17),o=n(58),u=n(0);function a(e){var t=e.getName().name;if(!r.a[t]){if(!Object(u.l)(i.a,Object(u.B)({name:t}))){if(!Object(u.t)(e.supports))throw new Error("Tried to register a provider with an invalid object");i.a.unshift({name:t,supports:e.supports})}Object(u.g)(e.prototype,o.a),r.a[t]=e}}},function(e,t,n){"use strict";n.d(t,"j",(function(){return p})),n.d(t,"d",(function(){return h})),n.d(t,"b",(function(){return v})),n.d(t,"e",(function(){return b})),n.d(t,"g",(function(){return y})),n.d(t,"h",(function(){return j})),n.d(t,"c",(function(){return w})),n.d(t,"f",(function(){return k})),n.d(t,"i",(function(){return C})),n.d(t,"a",(function(){return P}));var r=n(0),i=n(7),o=n(28),u=n(8),a=n(40),c={},s={zh:"Chinese",nl:"Dutch",en:"English",fr:"French",de:"German",it:"Italian",ja:"Japanese",pt:"Portuguese",ru:"Russian",es:"Spanish",el:"Greek",fi:"Finnish",id:"Indonesian",ko:"Korean",th:"Thai",vi:"Vietnamese"},l=Object(r.q)(s);function f(e){var t=d(e),n=t.indexOf("_");return-1===n?t:t.substring(0,n)}function d(e){return e.toLowerCase().replace("-","_")}function p(e){return e?Object.keys(e).reduce((function(t,n){return t[d(n)]=e[n],t}),{}):{}}function h(e){if(e)return 3===e.length?e:s[f(e)]||e}function v(e){return l[e]||""}function g(e){var t=e.querySelector("html");return t?t.getAttribute("lang"):null}function b(){var e=g(document);if(!e&&Object(i.m)())try{e=g(window.top.document)}catch(e){}return e||navigator.language||"en"}var m=["ar","da","de","el","es","fi","fr","he","id","it","ja","ko","nl","no","oc","pt","ro","ru","sl","sv","th","tr","vi","zh"];function y(e){return 8207===e.charCodeAt(0)||/^[\u0591-\u07FF\uFB1D-\uFDFD\uFE70-\uFEFC]/.test(e)}function j(e){return m.indexOf(f(e))>=0}function w(e,t,n){return Object(r.j)({},function(e){var t=e.advertising,n=e.related,i=e.sharing,o=e.abouttext,u=Object(r.j)({},e.localization);t&&(u.advertising=u.advertising||{},O(u.advertising,t,"admessage"),O(u.advertising,t,"cuetext"),O(u.advertising,t,"loadingAd"),O(u.advertising,t,"podmessage"),O(u.advertising,t,"skipmessage"),O(u.advertising,t,"skiptext"));"string"==typeof u.related?u.related={heading:u.related}:u.related=u.related||{};n&&O(u.related,n,"autoplaymessage");i&&(u.sharing=u.sharing||{},O(u.sharing,i,"heading"),O(u.sharing,i,"copied"));o&&O(u,e,"abouttext");var a=u.close||u.nextUpClose;a&&(u.close=a);return u}(e),t[f(n)],t[d(n)])}function O(e,t,n){var r=e[n]||t[n];r&&(e[n]=r)}function k(e){return Object(u.isDeepKeyCompliant)(a.a,e,(function(e,t){return"string"==typeof t[e]}))}function C(e,t){var n=c[t];if(!n){var r="".concat(e,"translations/").concat(f(t),".json");c[t]=n=new Promise((function(e,n){Object(o.a)({url:r,oncomplete:e,onerror:function(e,r,i,o){c[t]=null,n(o)},responseType:"json"})}))}return n}function P(e,t){var n=Object(r.j)({},e,t);return S(n,"errors",e,t),S(n,"related",e,t),S(n,"sharing",e,t),S(n,"advertising",e,t),S(n,"shortcuts",e,t),S(n,"captionsStyles",e,t),n}function S(e,t,n,i){e[t]=Object(r.j)({},n[t],i[t])}},function(e,t,n){"use strict";t.a=[]},function(e,t,n){"use strict";t.a={debug:!1}},function(e,t,n){"use strict";var r=n(27),i=n(5),o=n(23),u=n(0),a=n(8),c=n(36),s=Object(u.l)(r.a,Object(u.B)({name:"html5"})),l=s.supports;function f(e){var t=window.MediaSource;return Object(u.a)(e,(function(e){return!!t&&!!t.isTypeSupported&&t.isTypeSupported(e)}))}function d(e){if(e.drm)return!1;var t=e.file.indexOf(".m3u8")>-1,n="hls"===e.type||"m3u8"===e.type;if(!t&&!n)return!1;var r=i.Browser.chrome||i.Browser.firefox||i.Browser.edge||i.Browser.ie&&11===i.Browser.version.major,o=i.OS.android&&!1===e.hlsjsdefault,u=i.Browser.safari&&!!e.safarihlsjs;return f(e.mediaTypes||['video/mp4;codecs="avc1.4d400d,mp4a.40.2"'])&&(r||u)&&!o}s.supports=function(e,t){var n=l.apply(this,arguments);if(n&&e.drm&&"hls"===e.type){var r=Object(o.a)(t),i=r("drm");if(i&&e.drm.fairplay){var u=window.WebKitMediaKeys;return u&&u.isTypeSupported&&u.isTypeSupported("com.apple.fps.1_0","video/mp4")}return i}return n},r.a.push({name:"shaka",supports:function(e){return!(e.drm&&!Object(c.a)(e.drm))&&(!(!window.HTMLVideoElement||!window.MediaSource)&&(f(e.mediaTypes)&&("dash"===e.type||"mpd"===e.type||(e.file||"").indexOf("mpd-time-csf")>-1)))}}),r.a.unshift({name:"hlsjs",supports:function(e){return d(e)}}),r.a.unshift({name:"hlsjsProgressive",supports:function(e){return e._hlsjsProgressive&&d(e)}}),r.a.push({name:"flash",supports:function(e){if(!i.Features.flash||e.drm)return!1;var t=e.type;return"hls"===t||"m3u8"===t||!Object(a.isRtmp)(e.file,t)&&["flv","f4v","mov","m4a","m4v","mp4","aac","f4a","mp3","mpeg","smil"].indexOf(t)>-1}}),t.a=r.a},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=Date.now||function(){return(new Date).getTime()}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return u}));var r=n(0),i=function(e){return e.replace(/^(.*\/)?([^-]*)-?.*\.(js)$/,"$2")};function o(e){var t=305e3;if(!e)return t;switch(i(e)){case"jwpsrv":t=305001;break;case"googima":t=305002;break;case"vast":t=305003;break;case"freewheel":t=305004;break;case"dai":t=305005;break;case"gapro":t=305006}return t}function u(e,t,n){var i=e.name,o=document.createElement("div");o.id=n.id+"_"+i,o.className="jw-plugin jw-reset";var u=Object(r.j)({},t),a=e.getNewInstance(n,u,o);return n.addPlugin(i,a),a}},function(e,t,n){"use strict";n.r(t),n.d(t,"getScriptPath",(function(){return o})),n.d(t,"repo",(function(){return u})),n.d(t,"versionCheck",(function(){return a})),n.d(t,"loadFrom",(function(){return c}));var r=n(31),i=n(8),o=function(e){for(var t=document.getElementsByTagName("script"),n=0;n<t.length;n++){var r=t[n].src;if(r){var i=r.lastIndexOf("/"+e);if(i>=0)return r.substr(0,i+1)}}return""},u=function(){var e="//web.archive.org/web/20200314115822/https://ssl.p.jwpcdn.com/player/v/8.12.5/",t=Object(i.isFileProtocol)()?"https:":"";return"".concat(t).concat(e)},a=function(e){var t=("0"+e).split(/\W/),n=r.a.split(/\W/),i=parseFloat(t[0]),o=parseFloat(n[0]);return!(i>o)&&!(i===o&&parseFloat("0"+t[1])>parseFloat(n[1]))},c=function(){return u()}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));function r(e){var t={setup:["free","starter","business","premium","enterprise","developer","ads","unlimited","trial","platinum"],drm:["enterprise","developer","ads","unlimited","trial"],ads:["ads","unlimited","trial","platinum","enterprise","developer","business"],jwpsrv:["free","starter","business","premium","enterprise","developer","ads","trial","platinum","invalid"],discovery:["ads","enterprise","developer","trial","unlimited"]};return function(n){return t[n]&&t[n].indexOf(e)>-1}}},function(e,t,n){"use strict";var r=n(0),i=n(9),o=n(3),u={};function a(e){var t=document.createElement("link");return t.type="text/css",t.rel="stylesheet",t.href=e,t}function c(e,t){var n=document.createElement("script");return n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=t||45e3,n.src=e,n}var s=function(e,t,n){var r=this,i=0;function s(e){i=2,r.trigger(o.w,e).off()}function l(e){i=3,r.trigger(o.lb,e).off()}this.getStatus=function(){return i},this.load=function(){var r=u[e];return 0!==i?r:(r&&r.then(l).catch(s),i=1,r=new Promise((function(r,i){var o=(t?a:c)(e,n),u=function(){o.onerror=o.onload=null,clearTimeout(d)},f=function(e){u(),s(e),i(e)},d=setTimeout((function(){f(new Error("Network timeout ".concat(e)))}),45e3);o.onerror=function(){f(new Error("Failed to load ".concat(e)))},o.onload=function(e){u(),l(e),r(e)};var p=document.getElementsByTagName("head")[0]||document.documentElement;p.insertBefore(o,p.firstChild)})),u[e]=r,r)}};Object(r.j)(s.prototype,i.a),t.a=s},function(e,t,n){"use strict";var r=n(1),i=n(19);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var u=function(){this.load=function(e,t,n,u){return n&&"object"===o(n)?Promise.all(Object.keys(n).filter((function(e){return e})).map((function(o){var a=n[o];return t.setupPlugin(o).then((function(t){if(!u.attributes._destroyed)return Object(i.a)(t,a,e)})).catch((function(e){return t.removePlugin(o),e.code?e:new r.s(null,Object(i.c)(o),e)}))}))):Promise.resolve()}},a=n(59),c=n(47),s={},l=function(){},f=l.prototype;f.setupPlugin=function(e){var t=this.getPlugin(e);return t?(t.url!==e&&Object(c.a)('JW Plugin "'.concat(Object(i.b)(e),'" already loaded from "').concat(t.url,'". Ignoring "').concat(e,'."')),t.promise):this.addPlugin(e).load()},f.addPlugin=function(e){var t=Object(i.b)(e),n=s[t];return n||(n=new a.a(e),s[t]=n),n},f.getPlugin=function(e){return s[Object(i.b)(e)]},f.removePlugin=function(e){delete s[Object(i.b)(e)]},f.getPlugins=function(){return s};var d=l;n.d(t,"b",(function(){return h})),n.d(t,"a",(function(){return v}));var p=new d,h=function(e,t,n){var r=p.addPlugin(e);r.js||r.registerPlugin(e,t,n)};function v(e,t){var n=e.get("plugins");return window.jwplayerPluginJsonp=h,(e.pluginLoader=e.pluginLoader||new u).load(t,p,n,e).then((function(t){if(!e.attributes._destroyed)return delete window.jwplayerPluginJsonp,t}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(48),i=n(23),o=n(45),u=n(1),a=100013;t.b=function(e){var t,n,c;try{var s=Object(r.a)(e||"",Object(o.a)("NDh2aU1Cb0NHRG5hcDFRZQ==")).split("/");if("pro"===(t=s[0])&&(t="premium"),Object(i.a)(t)("setup")||(t="invalid"),s.length>2){n=s[1];var l=parseInt(s[2]);l>0&&(c=new Date).setTime(l)}}catch(e){t="invalid"}this.edition=function(){return t},this.token=function(){return n},this.expiration=function(){return c},this.duration=function(){return c?c.getTime()-(new Date).getTime():0},this.error=function(){var r;return void 0===e?r=100011:"invalid"!==t&&n?this.duration()<0&&(r=a):r=100012,r?new u.s(u.m,r):null}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return c}));var r=n(66),i=n(8),o=n(39),u={aac:"audio/mp4",mp4:"video/mp4",f4v:"video/mp4",m4v:"video/mp4",mov:"video/mp4",mp3:"audio/mpeg",mpeg:"audio/mpeg",ogv:"video/ogg",ogg:"video/ogg",oga:"video/ogg",vorbis:"video/ogg",webm:"video/webm",f4a:"video/aac",m3u8:"application/vnd.apple.mpegurl",m3u:"application/vnd.apple.mpegurl",hls:"application/vnd.apple.mpegurl"},a=[{name:"html5",supports:c}];function c(e){if(!1===Object(r.a)(e))return!1;if(!o.a.canPlayType)return!1;var t=e.file,n=e.type;if(Object(i.isRtmp)(t,n))return!1;var a=e.mimeType||u[n];if(!a)return!1;var c=e.mediaTypes;return c&&c.length&&(a=[a].concat(c.slice()).join("; ")),!!o.a.canPlayType(a)}t.a=a},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(0),i=n(12),o=n(8),u=n(1),a=function(){};function c(e,t,n,d){var p;e===Object(e)&&(e=(d=e).url);var h=Object(r.j)({xhr:null,url:e,withCredentials:!1,retryWithoutCredentials:!1,timeout:6e4,timeoutId:-1,oncomplete:t||a,onerror:n||a,mimeType:d&&!d.responseType?"text/xml":"",requireValidXML:!1,responseType:d&&d.plainText?"text":"",useDomParser:!1,requestFilter:null},d),v=function(e,t){return function(e,n){var i=e.currentTarget||t.xhr;if(clearTimeout(t.timeoutId),t.retryWithoutCredentials&&t.xhr.withCredentials)return s(i),void c(Object(r.j)({},t,{xhr:null,withCredentials:!1,retryWithoutCredentials:!1}));!n&&i.status>=400&&i.status<600&&(n=i.status),l(t,n?u.o:u.r,n||6,e)}}(0,h);if("XMLHttpRequest"in window){if(p=h.xhr=h.xhr||new window.XMLHttpRequest,"function"==typeof h.requestFilter){var g;try{g=h.requestFilter({url:e,xhr:p})}catch(e){return v(e,5),p}g&&"open"in g&&"send"in g&&(p=h.xhr=g)}p.onreadystatechange=function(e){return function(t){var n=t.currentTarget||e.xhr;if(4===n.readyState){clearTimeout(e.timeoutId);var a=n.status;if(a>=400)return void l(e,u.o,a<600?a:6);if(200===a)return function(e){return function(t){var n=t.currentTarget||e.xhr;if(clearTimeout(e.timeoutId),e.responseType){if("json"===e.responseType)return function(e,t){if(!e.response||"string"==typeof e.response&&'"'!==e.responseText.substr(1))try{e=Object(r.j)({},e,{response:JSON.parse(e.responseText)})}catch(e){return void l(t,u.o,611,e)}return t.oncomplete(e)}(n,e)}else{var o,a=n.responseXML;if(a)try{o=a.firstChild}catch(e){}if(a&&o)return f(n,a,e);if(e.useDomParser&&n.responseText&&!a&&(a=Object(i.parseXML)(n.responseText))&&a.firstChild)return f(n,a,e);if(e.requireValidXML)return void l(e,u.o,602)}e.oncomplete(n)}}(e)(t);0===a&&Object(o.isFileProtocol)()&&!/^[a-z][a-z0-9+.-]*:/.test(e.url)&&l(e,u.o,7)}}}(h),p.onerror=v,"overrideMimeType"in p?h.mimeType&&p.overrideMimeType(h.mimeType):h.useDomParser=!0;try{e=e.replace(/#.*$/,""),p.open("GET",e,!0)}catch(e){return v(e,3),p}if(h.responseType)try{p.responseType=h.responseType}catch(e){}h.timeout&&(h.timeoutId=setTimeout((function(){s(p),l(h,u.r,1)}),h.timeout),p.onabort=function(){clearTimeout(h.timeoutId)});try{h.withCredentials&&"withCredentials"in p&&(p.withCredentials=!0),p.send()}catch(e){v(e,4)}return p}l(h,u.r,2)}function s(e){e.onload=null,e.onprogress=null,e.onreadystatechange=null,e.onerror=null,"abort"in e&&e.abort()}function l(e,t,n,r){e.onerror(t,e.url,e.xhr,new u.s(t,n,r))}function f(e,t,n){var i=t.documentElement;if(!n.requireValidXML||"parsererror"!==i.nodeName&&!i.getElementsByTagName("parsererror").length)return e.responseXML||(e=Object(r.j)({},e,{responseXML:t})),n.oncomplete(e);l(n,u.o,601)}},function(e,t,n){"use strict";var r=n(0),i=n(34),o=function(e){if(e&&e.file)return Object(r.j)({},{kind:"captions",default:!1},e)},u=Array.isArray;t.a=function(e){u((e=e||{}).tracks)||delete e.tracks;var t=Object(r.j)({},{sources:[],tracks:[],minDvrWindow:120,dvrSeekLimit:25},e);t.sources!==Object(t.sources)||u(t.sources)||(t.sources=[Object(i.a)(t.sources)]),u(t.sources)&&0!==t.sources.length||(e.levels?t.sources=e.levels:t.sources=[Object(i.a)(e)]);for(var n=0;n<t.sources.length;n++){var a=t.sources[n];if(a){var c=a.default;a.default=!!c&&"true"===c.toString(),t.sources[n].label||(t.sources[n].label=n.toString()),t.sources[n]=Object(i.a)(t.sources[n])}}return t.sources=t.sources.filter((function(e){return!!e})),u(t.tracks)||(t.tracks=[]),u(t.captions)&&(t.tracks=t.tracks.concat(t.captions),delete t.captions),t.tracks=t.tracks.map(o).filter((function(e){return!!e})),t}},function(e,t,n){"use strict";var r=n(0),i={none:!0,metadata:!0,auto:!0};function o(e,t){return i[e]?e:i[t]?t:"metadata"}var u=n(29),a=n(34),c=n(42),s=n(1);n.d(t,"b",(function(){return l})),n.d(t,"e",(function(){return f})),n.d(t,"d",(function(){return d})),n.d(t,"c",(function(){return p}));function l(e,t,n){var i=Object(r.j)({},n);return delete i.playlist,e.map((function(e){return d(t,e,i)})).filter((function(e){return!!e}))}function f(e){if(!Array.isArray(e)||0===e.length)throw new s.s(s.o,630)}function d(e,t,n){var i=e.getProviders(),u=e.get("preload"),a=Object(r.j)({},t);if(a.preload=o(t.preload,u),a.allSources=h(t,e),a.sources=v(a.allSources,i),a.sources.length)return a.file=a.sources[0].file,a.feedData=n,function(e){var t=e.sources[0].liveSyncDuration;return e.dvrSeekLimit=e.liveSyncDuration=t,e}(a)}var p=function(e,t){return v(h(e,t),t.getProviders())};function h(e,t){var n=t.attributes,r=e.sources,i=e.allSources,u=e.preload,c=e.drm,s=g(e.withCredentials,n.withCredentials);return(i||r).map((function(t){if(t!==Object(t))return null;b(t,n,"androidhls"),b(t,n,"hlsjsdefault"),b(t,n,"safarihlsjs"),function(e,t,n){if(e.liveSyncDuration)return;var r=t.liveSyncDuration?t:n;b(e,r,"liveSyncDuration")}(t,e,n),b(t,n,"_hlsjsProgressive"),t.preload=o(t.preload,u);var r=t.drm||c||n.drm;r&&(t.drm=r);var i=g(t.withCredentials,s);return void 0!==i&&(t.withCredentials=i),Object(a.a)(t)})).filter((function(e){return!!e}))}function v(e,t){t&&t.choose||(t=new c.a);var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=t.choose(r).providerToCheck;if(i)return{type:r.type,provider:i}}return null}(e,t);if(!n)return[];var r=n.provider,i=n.type;return e.filter((function(e){return e.type===i&&t.providerSupports(r,e)}))}function g(e,t){return void 0===e?t:e}function b(e,t,n){n in t&&(e[n]=t[n])}t.a=function(e){return(Array.isArray(e)?e:[e]).map(u.a)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="8.12.5+commercial_v8-12-5.377.commercial.a176579.hlsjs.16769c8.hlsjsprogressive.466d98e.jwplayer.5629f64.dai.45542e3.freewheel.d9ae537.googima.caf768e.vast.f499d9d.analytics.46845b6.gapro.141397a"},function(e,t,n){"use strict";var r=n(0),i=n(18),o=window.performance||{timing:{}},u=o.timing.navigationStart||Object(i.a)();function a(){return u+o.now()}"now"in o||(o.now=function(){return Object(i.a)()-u});t.a=function(){var e={},t={},n={},i={};return{start:function(t){e[t]=a(),n[t]=n[t]+1||1},end:function(n){if(e[n]){var r=a()-e[n];delete e[n],t[n]=t[n]+r||r}},dump:function(){var o=Object(r.j)({},t);for(var u in e)if(Object.prototype.hasOwnProperty.call(e,u)){var c=a()-e[u];o[u]=o[u]+c||c}return{counts:Object(r.j)({},n),sums:o,events:Object(r.j)({},i)}},tick:function(e){i[e]=a()},clear:function(e){delete i[e]},between:function(e,t){return i[t]&&i[e]?i[t]-i[e]:null}}}},function(e,t,n){"use strict";t.a={}},function(e,t,n){"use strict";var r=n(0),i=n(8),o=n(2);t.a=function(e){if(e&&e.file){var t=Object(r.j)({},{default:!1},e);t.file=Object(o.i)(""+t.file);var n=/^[^/]+\/(?:x-)?([^/]+)$/;if(n.test(t.type)&&(t.mimeType=t.type,t.type=t.type.replace(n,"$1")),Object(i.isYouTube)(t.file)?t.type="youtube":Object(i.isRtmp)(t.file)?t.type="rtmp":t.type||(t.type=Object(o.a)(t.file)),t.type){switch(t.type){case"m3u8":case"vnd.apple.mpegurl":t.type="hls";break;case"dash+xml":t.type="dash";break;case"m4a":t.type="aac";break;case"smil":t.type="rtmp"}return Object.keys(t).forEach((function(e){""===t[e]&&delete t[e]})),t}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return w})),n.d(t,"b",(function(){return S}));var r=n(5),i=n(3),o=n(9),u=n(18),a=n(6);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e,t,n){return(f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var h,v,g="ontouchstart"in window,b="PointerEvent"in window&&!r.OS.android,m=!(b||g&&r.OS.mobile),y=r.Features.passiveEvents,j=!!y&&{passive:!0},w=function(e){function t(e,n){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=l(this,d(t).call(this));var i=!(n=n||{}).preventScrolling;return r.directSelect=!!n.directSelect,r.dragged=!1,r.enableDoubleTap=!1,r.el=e,r.handlers={},r.options={},r.lastClick=0,r.lastStart=0,r.passive=i,r.pointerId=null,r.startX=0,r.startY=0,r.event=null,r}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(t,e),n=t,(r=[{key:"on",value:function(e,n,r){return k(e)&&(this.handlers[e]||P[e](this)),f(d(t.prototype),"on",this).call(this,e,n,r)}},{key:"off",value:function(e,n,r){var i=this;if(k(e))E(this,e);else if(!e){var o=this.handlers;Object.keys(o).forEach((function(e){E(i,e)}))}return f(d(t.prototype),"off",this).call(this,e,n,r)}},{key:"destroy",value:function(){this.off(),b&&T(this),this.el=null}}])&&s(n.prototype,r),i&&s(n,i),t}(o.a),O=/\s+/;function k(e){return e&&!(O.test(e)||"object"===c(e))}function C(e){if(!e.handlers.init){var t=e.el,n=e.passive,r=!!y&&{passive:n},o=function(i){if(Object(a.o)(t,"jw-tab-focus"),!function(e){if("which"in e)return 3===e.which;if("button"in e)return 2===e.button;return!1}(i)){var o=i.target,l=i.type;if(!e.directSelect||o===t){var f=F(i),d=f.pageX,p=f.pageY;if(e.dragged=!1,e.lastStart=Object(u.a)(),e.startX=d,e.startY=p,E(e,"window"),"pointerdown"===l&&i.isPrimary){if(!n){var h=i.pointerId;e.pointerId=h,t.setPointerCapture(h)}x(e,"window","pointermove",c,r),x(e,"window","pointercancel",s),x(e,"window","pointerup",s),"BUTTON"===t.tagName&&t.focus()}else"mousedown"===l?(x(e,"window","mousemove",c,r),x(e,"window","mouseup",s)):"touchstart"===l&&(x(e,"window","touchmove",c,r),x(e,"window","touchcancel",s),x(e,"window","touchend",s),n||M(i))}}},c=function(t){if(e.dragged)_(e,i.s,t);else{var r=F(t),o=r.pageX,u=r.pageY,a=o-e.startX,c=u-e.startY;a*a+c*c>36&&(_(e,i.u,t),e.dragged=!0,_(e,i.s,t))}n||"touchmove"!==t.type||M(t)},s=function(n){if(clearTimeout(h),e.el)if(T(e),E(e,"window"),e.dragged)e.dragged=!1,_(e,i.t,n);else if(-1===n.type.indexOf("cancel")&&t.contains(n.target)){if(Object(u.a)()-e.lastStart>500)return;var r="pointerup"===n.type||"pointercancel"===n.type,o="mouseup"===n.type||r&&"mouse"===n.pointerType;!function(e,t,n){if(e.enableDoubleTap)if(Object(u.a)()-e.lastClick<300){var r=n?i.q:i.r;_(e,r,t),e.lastClick=0}else e.lastClick=Object(u.a)()}(e,n,o),o?_(e,i.n,n):(_(e,i.sb,n),"touchend"!==n.type||y||M(n))}};b?x(e,"init","pointerdown",o,r):(m&&x(e,"init","mousedown",o,r),x(e,"init","touchstart",o,r)),v||(v=new w(document).on("interaction")),x(e,"init","blur",(function(){Object(a.o)(t,"jw-tab-focus")})),x(e,"init","focus",(function(){v.event&&"keydown"===v.event.type&&Object(a.a)(t,"jw-tab-focus")}))}}var P={drag:function(e){C(e)},dragStart:function(e){C(e)},dragEnd:function(e){C(e)},click:function(e){C(e)},tap:function(e){C(e)},doubleTap:function(e){e.enableDoubleTap=!0,C(e)},doubleClick:function(e){e.enableDoubleTap=!0,C(e)},longPress:function(e){if(r.OS.iOS){var t=function(){clearTimeout(h)};x(e,"longPress","touchstart",(function(n){t(),h=setTimeout((function(){_(e,"longPress",n)}),500)})),x(e,"longPress","touchmove",t),x(e,"longPress","touchcancel",t),x(e,"longPress","touchend",t)}else e.el.oncontextmenu=function(t){return _(e,"longPress",t),!1}},focus:function(e){x(e,"focus","focus",(function(t){A(e,"focus",t)}))},blur:function(e){x(e,"blur","blur",(function(t){A(e,"blur",t)}))},over:function(e){(b||m)&&x(e,i.Z,b?"pointerover":"mouseover",(function(t){"touch"!==t.pointerType&&_(e,i.Z,t)}))},out:function(e){if(b){var t=e.el;x(e,i.Y,"pointerout",(function(n){if("touch"!==n.pointerType&&"x"in n){var r=document.elementFromPoint(n.x,n.y);t.contains(r)||_(e,i.Y,n)}}))}else m&&x(e,i.Y,"mouseout",(function(t){_(e,i.Y,t)}))},move:function(e){(b||m)&&x(e,i.W,b?"pointermove":"mousemove",(function(t){"touch"!==t.pointerType&&_(e,i.W,t)}))},enter:function(e){x(e,i.v,"keydown",(function(t){"Enter"!==t.key&&13!==t.keyCode||(t.stopPropagation(),A(e,i.v,t))}))},keydown:function(e){x(e,"keydown","keydown",(function(t){A(e,"keydown",t)}),!1)},gesture:function(e){var t=function(t){return _(e,"gesture",t)};x(e,"gesture","click",t),x(e,"gesture","keydown",t)},interaction:function(e){var t=function(t){e.event=t};x(e,"interaction","mousedown",t,!0),x(e,"interaction","keydown",t,!0)}};function S(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||window}function x(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:j,o=e.handlers[t],u=e.options[t];if(o||(o=e.handlers[t]={},u=e.options[t]={}),o[n])throw new Error("".concat(t," ").concat(n," already registered"));o[n]=r,u[n]=i;var a=e.el,c="window"===t?S(a):a;c.addEventListener(n,r,i)}function E(e,t){var n=e.el,r=e.handlers,i=e.options,o="window"===t?S(n):n,u=r[t],a=i[t];u&&(Object.keys(u).forEach((function(e){var t=a[e];"boolean"==typeof t?o.removeEventListener(e,u[e],t):o.removeEventListener(e,u[e])})),r[t]=null,i[t]=null)}function T(e){var t=e.el;null!==e.pointerId&&(t.releasePointerCapture(e.pointerId),e.pointerId=null)}function A(e,t,n){var r=e.el,i=n.target;e.trigger(t,{type:t,sourceEvent:n,currentTarget:r,target:i})}function _(e,t,n){var r=function(e,t,n){var r,i=t.target,o=t.touches,u=t.changedTouches,a=t.pointerType;o||u?(r=o&&o.length?o[0]:u[0],a=a||"touch"):(r=t,a=a||"mouse");var c=r,s=c.pageX,l=c.pageY;return{type:e,pointerType:a,pageX:s,pageY:l,sourceEvent:t,currentTarget:n,target:i}}(t,n,e.el);e.trigger(t,r)}function F(e){return 0===e.type.indexOf("touch")?(e.originalEvent||e).changedTouches[0]:e}function M(e){e.preventDefault&&e.preventDefault()}},function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"d",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"a",(function(){return f}));var r,i=n(23),o=[{configName:"clearkey",keyName:"org.w3.clearkey"},{configName:"widevine",keyName:"com.widevine.alpha"},{configName:"playready",keyName:"com.microsoft.playready"}],u=[],a={};function c(e){return e.some((function(e){return!!e.drm||e.sources.some((function(e){return!!e.drm}))}))}function s(e){return r||((navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||window.MSMediaKeys)&&Object(i.a)(e)("drm")?(o.forEach((function(e){var t,n,r=(t=e.keyName,n=[{initDataTypes:["cenc"],videoCapabilities:[{contentType:'video/mp4;codecs="avc1.4d401e"'}],audioCapabilities:[{contentType:'audio/mp4;codecs="mp4a.40.2"'}]}],navigator.requestMediaKeySystemAccess?navigator.requestMediaKeySystemAccess(t,n):new Promise((function(e,n){var r;try{r=new window.MSMediaKeys(t)}catch(e){return void n(e)}e(r)}))).then((function(){a[e.configName]=!0})).catch((function(){a[e.configName]=!1}));u.push(r)})),r=Promise.all(u)):Promise.resolve())}function l(e){return a[e]}function f(e){if(r)return Object.keys(e).some((function(e){return l(e)}))}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return u}));var r=n(10),i=null,o={};function u(){return i||(i=n.e(1).then(function(e){var t=n(21).default;return o.controls=t,t}.bind(null,n)).catch((function(){i=null,Object(r.c)(301130)()}))),i}},function(e,t,n){"use strict";var r=document.createElement("video");t.a=r},function(e,t,n){"use strict";t.a={advertising:{admessage:"This ad will end in xx",cuetext:"Advertisement",displayHeading:"Advertisement",loadingAd:"Loading ad",podmessage:"Ad __AD_POD_CURRENT__ of __AD_POD_LENGTH__.",skipmessage:"Skip ad in xx",skiptext:"Skip"},airplay:"AirPlay",audioTracks:"Audio Tracks",auto:"Auto",buffer:"Loading",cast:"Chromecast",cc:"Closed Captions",close:"Close",errors:{badConnection:"This video cannot be played because of a problem with your internet connection.",cantLoadPlayer:"Sorry, the video player failed to load.",cantPlayInBrowser:"The video cannot be played in this browser.",cantPlayVideo:"This video file cannot be played.",errorCode:"Error Code",liveStreamDown:"The live stream is either down or has ended.",protectedContent:"There was a problem providing access to protected content.",technicalError:"This video cannot be played because of a technical error."},exitFullscreen:"Exit Fullscreen",fullscreen:"Fullscreen",hd:"Quality",liveBroadcast:"Live",logo:"Logo",mute:"Mute",next:"Next",nextUp:"Next Up",notLive:"Not Live",off:"Off",pause:"Pause",play:"Play",playback:"Play",playbackRates:"Playback Rates",player:"Video Player",poweredBy:"Powered by",prev:"Previous",related:{autoplaymessage:"Next up in xx",heading:"More Videos"},replay:"Replay",rewind:"Rewind 10 Seconds",settings:"Settings",sharing:{copied:"Copied",email:"Email",embed:"Embed",heading:"Share",link:"Link"},slider:"Seek",stop:"Stop",unmute:"Unmute",videoInfo:"About This Video",volume:"Volume",volumeSlider:"Volume",shortcuts:{playPause:"Play/Pause",volumeToggle:"Mute/Unmute",fullscreenToggle:"Fullscreen/Exit Fullscreen",seekPercent:"Seek %",keyboardShortcuts:"Keyboard Shortcuts",increaseVolume:"Increase Volume",decreaseVolume:"Decrease Volume",seekForward:"Seek Forward",seekBackward:"Seek Backward",spacebar:"SPACE",captionsToggle:"Captions On/Off"},captionsStyles:{subtitleSettings:"Subtitle Settings",color:"Font Color",fontOpacity:"Font Opacity",userFontScale:"Font Size",fontFamily:"Font Family",edgeStyle:"Character Edge",backgroundColor:"Background Color",backgroundOpacity:"Background Opacity",windowColor:"Window Color",windowOpacity:"Window Opacity",white:"White",black:"Black",red:"Red",green:"Green",blue:"Blue",yellow:"Yellow",magenta:"Magenta",cyan:"Cyan",none:"None",raised:"Raised",depressed:"Depressed",uniform:"Uniform",dropShadow:"Drop Shadow"},disabled:"Disabled",enabled:"Enabled",reset:"Reset"}},function(e,t){var n,r,i={},o={},u=(n=function(){return document.head||document.getElementsByTagName("head")[0]},function(){return void 0===r&&(r=n.apply(this,arguments)),r});function a(e){var t=document.createElement("style");return t.type="text/css",t.setAttribute("data-jwplayer-id",e),function(e){u().appendChild(e)}(t),t}function c(e,t){var n,r,i,u=o[e];u||(u=o[e]={element:a(e),counter:0});var c=u.counter++;return n=u.element,i=function(){f(n,c,"")},(r=function(e){f(n,c,e)})(t.css),function(e){if(e){if(e.css===t.css&&e.media===t.media)return;r((t=e).css)}else i()}}e.exports={style:function(e,t){!function(e,t){for(var n=0;n<t.length;n++){var r=t[n],o=(i[e]||{})[r.id];if(o){for(var u=0;u<o.parts.length;u++)o.parts[u](r.parts[u]);for(;u<r.parts.length;u++)o.parts.push(c(e,r.parts[u]))}else{var a=[];for(u=0;u<r.parts.length;u++)a.push(c(e,r.parts[u]));i[e]=i[e]||{},i[e][r.id]={id:r.id,parts:a}}}}(t,function(e){for(var t=[],n={},r=0;r<e.length;r++){var i=e[r],o=i[0],u=i[1],a=i[2],c={css:u,media:a};n[o]?n[o].parts.push(c):t.push(n[o]={id:o,parts:[c]})}return t}(e))},clear:function(e,t){var n=i[e];if(!n)return;if(t){var r=n[t];if(r)for(var o=0;o<r.parts.length;o+=1)r.parts[o]();return}for(var u=Object.keys(n),a=0;a<u.length;a+=1)for(var c=n[u[a]],s=0;s<c.parts.length;s+=1)c.parts[s]();delete i[e]}};var s,l=(s=[],function(e,t){return s[e]=t,s.filter(Boolean).join("\n")});function f(e,t,n){if(e.styleSheet)e.styleSheet.cssText=l(t,n);else{var r=document.createTextNode(n),i=e.childNodes[t];i?e.replaceChild(r,i):e.appendChild(r)}}},function(e,t,n){"use strict";var r=n(0),i=n(17),o=n(13),u=n(33),a=n(10);function c(e){this.config=e||{}}var s={html5:function(){return n.e(15).then(function(e){var t=n(51).default;return Object(o.a)(t),t}.bind(null,n)).catch(Object(a.b)(152))}};Object(r.j)(c.prototype,{load:function(e){var t=s[e],n=function(){return Promise.reject(new Error("Failed to load media"))};return t?t().then((function(){var t=u.a[e];return t||n()})):n()},providerSupports:function(e,t){return e.supports(t)},choose:function(e){if(e===Object(e))for(var t=i.a.length,n=0;n<t;n++){var r=i.a[n];if(this.providerSupports(r,e))return{priority:t-n-1,name:r.name,type:e.type,providerToCheck:r,provider:u.a[r.name]}}return{}}});var l,f=c;Object(r.j)(s,{shaka:function(){return n.e(16).then(function(e){var t=n(167).default;return Object(o.a)(t),t}.bind(null,n)).catch(Object(a.b)(154))},hlsjs:function(){return n.e(13).then(function(e){var t=n(163).default;return t.setEdition&&t.setEdition(l),Object(o.a)(t),t}.bind(null,n)).catch(Object(a.b)(153))},flash:function(){return n.e(12).then(function(e){var t=n(169).default;return Object(o.a)(t),t}.bind(null,n)).catch(Object(a.b)(151))},hlsjsProgressive:function(){return n.e(14).then(function(e){var t=n(164).default;return t.setEdition(l),Object(o.a)(t),t}.bind(null,n)).catch(Object(a.b)(155))}}),f.prototype.providerSupports=function(e,t){return l=this.config.edition,e.supports(t,l)};t.a=f},function(e,t,n){"use strict";var r=n(6),i=n(11);function o(e,t){var n=t.message,o=t.code,u=function(e,t,n,r){var i=r?"(".concat(n,": ").concat(r,")").replace(/\s+/g,"&nbsp;"):"";return'<div id="'.concat(e,'" class="jw-error jw-reset">')+'<div class="jw-error-msg jw-info-overlay jw-reset"><style>'+'[id="'.concat(e,'"].jw-error{background:#000;overflow:hidden;position:relative}')+'[id="'.concat(e,'"] .jw-error-msg{top:50%;left:50%;position:absolute;transform:translate(-50%,-50%)}')+'[id="'.concat(e,'"] .jw-error-text{text-align:start;color:#FFF;font:14px/1.35 Arial,Helvetica,sans-serif}')+'</style><div class="jw-icon jw-reset"></div><div class="jw-info-container jw-reset">'+'<div class="jw-error-text jw-reset-text" dir="auto">'.concat(t||"",'<span class="jw-break jw-reset"></span>').concat(i,"</div>")+"</div></div></div>"}(e.get("id"),n,e.get("localization").errors.errorCode,o),a=e.get("width"),c=e.get("height"),s=Object(r.e)(u);return Object(i.d)(s,{width:a.toString().indexOf("%")>0?a:"".concat(a,"px"),height:c.toString().indexOf("%")>0?c:"".concat(c,"px")}),s}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";function r(e){return e.slice&&"px"===e.slice(-2)&&(e=e.slice(0,-2)),e}function i(e,t){if(-1===t.toString().indexOf("%"))return 0;if("string"!=typeof e||!e)return 0;if(/^\d*\.?\d+%$/.test(e))return e;var n=e.indexOf(":");if(-1===n)return 0;var r=parseFloat(e.substr(0,n)),i=parseFloat(e.substr(n+1));return r<=0||i<=0?0:i/r*100+"%"}n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=window.atob},function(e,t,n){"use strict";var r=n(4),i=n(2);function o(e){for(var t=[],n=0;n<Object(r.c)(e);n++){var i=e.childNodes[n];"jwplayer"===i.prefix&&"mediatypes"===Object(r.b)(i).toLowerCase()&&t.push(Object(r.d)(i))}return t}var u=function e(t,n){var u,a,c=[];for(var s=0;s<Object(r.c)(t);s++){var l=t.childNodes[s];if("media"===l.prefix){if(!Object(r.b)(l))continue;switch(Object(r.b)(l).toLowerCase()){case"content":if(Object(i.j)(l,"duration")&&(n.duration=Object(i.g)(Object(i.j)(l,"duration"))),Object(i.j)(l,"url")){n.sources||(n.sources=[]);var f={file:Object(i.j)(l,"url"),type:Object(i.j)(l,"type"),width:Object(i.j)(l,"width"),label:Object(i.j)(l,"label")},d=o(l);d.length&&(f.mediaTypes=d),n.sources.push(f)}Object(r.c)(l)>0&&(n=e(l,n));break;case"title":n.title=Object(r.d)(l);break;case"description":n.description=Object(r.d)(l);break;case"guid":n.mediaid=Object(r.d)(l);break;case"thumbnail":n.image||(n.image=Object(i.j)(l,"url"));break;case"group":e(l,n);break;case"subtitle":var p={};p.file=Object(i.j)(l,"url"),p.kind="captions",Object(i.j)(l,"lang").length>0&&(p.label=(u=Object(i.j)(l,"lang"),a=void 0,(a={zh:"Chinese",nl:"Dutch",en:"English",fr:"French",de:"German",it:"Italian",ja:"Japanese",pt:"Portuguese",ru:"Russian",es:"Spanish"})[u]?a[u]:u)),c.push(p)}}}n.hasOwnProperty("tracks")||(n.tracks=[]);for(var h=0;h<c.length;h++)n.tracks.push(c[h]);return n},a=n(12),c=function(e,t){for(var n="default",o=[],u=[],c=0;c<e.childNodes.length;c++){var s=e.childNodes[c];if("jwplayer"===s.prefix){var l=Object(r.b)(s);"source"===l?(delete t.sources,o.push({file:Object(i.j)(s,"file"),default:Object(i.j)(s,n),label:Object(i.j)(s,"label"),type:Object(i.j)(s,"type")})):"track"===l?(delete t.tracks,u.push({file:Object(i.j)(s,"file"),default:Object(i.j)(s,n),kind:Object(i.j)(s,"kind"),label:Object(i.j)(s,"label")})):(t[l]=Object(a.serialize)(Object(r.d)(s)),"file"===l&&t.sources&&delete t.sources)}t.file||(t.file=t.link)}if(o.length){t.sources=[];for(var f=0;f<o.length;f++)o[f].file.length>0&&(o[f][n]="true"===o[f][n],o[f].label.length||delete o[f].label,t.sources.push(o[f]))}if(u.length){t.tracks=[];for(var d=0;d<u.length;d++)u[d].file.length>0&&(u[d][n]="true"===u[d][n],u[d].kind=u[d].kind.length?u[d].kind:"captions",u[d].label.length||delete u[d].label,t.tracks.push(u[d]))}return t},s=n(29);function l(e){var t=[];t.feedData={};for(var n=0;n<Object(r.c)(e);n++){var i=Object(r.a)(e,n);if("channel"===Object(r.b)(i).toLowerCase())for(var o=0;o<Object(r.c)(i);o++){var u=Object(r.a)(i,o),a=Object(r.b)(u).toLowerCase();"item"===a?t.push(f(u)):a&&(t.feedData[a]=Object(r.d)(u))}}return t}function f(e){for(var t={},n=0;n<e.childNodes.length;n++){var o=e.childNodes[n],a=Object(r.b)(o);if(a)switch(a.toLowerCase()){case"enclosure":t.file=Object(i.j)(o,"url");break;case"title":t.title=Object(r.d)(o);break;case"guid":t.mediaid=Object(r.d)(o);break;case"pubdate":t.date=Object(r.d)(o);break;case"description":t.description=Object(r.d)(o);break;case"link":t.link=Object(r.d)(o);break;case"category":t.tags?t.tags+=Object(r.d)(o):t.tags=Object(r.d)(o)}}return new s.a(c(e,u(e,t)))}n.d(t,"a",(function(){return l}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="function"==typeof console.log?console.log.bind(console):function(){}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(45);function i(e){for(var t=new Array(Math.ceil(e.length/4)),n=0;n<t.length;n++)t[n]=e.charCodeAt(4*n)+(e.charCodeAt(4*n+1)<<8)+(e.charCodeAt(4*n+2)<<16)+(e.charCodeAt(4*n+3)<<24);return t}function o(e,t){if(e=String(e),t=String(t),0===e.length)return"";for(var n,o,u,a=i(Object(r.a)(e)),c=i((n=t,unescape(encodeURIComponent(n))).slice(0,16)),s=a.length,l=a[s-1],f=a[0],d=2654435769*Math.floor(6+52/s);d;){u=d>>>2&3;for(var p=s-1;p>=0;p--)o=((l=a[p>0?p-1:s-1])>>>5^f<<2)+(f>>>3^l<<4)^(d^f)+(c[3&p^u]^l),f=a[p]-=o;d-=2654435769}return function(e){try{return decodeURIComponent(escape(e))}catch(t){return e}}(function(e){for(var t=new Array(e.length),n=0;n<e.length;n++)t[n]=String.fromCharCode(255&e[n],e[n]>>>8&255,e[n]>>>16&255,e[n]>>>24&255);return t.join("")}(a).replace(/\0+$/,""))}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}));var r=window.requestAnimationFrame||function(e){return setTimeout(e,17)},i=window.cancelAnimationFrame||clearTimeout},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}));var r={audioMode:!1,flashBlocked:!1,item:0,itemMeta:{},playbackRate:1,playRejected:!1,state:n(3).nb,itemReady:!1,controlsEnabled:!1},i={position:0,duration:0,buffer:0,currentTime:0}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"c",(function(){return f}));var r=n(0),i=n(44),o=n(20),u=n(12),a=n(5),c=n(40),s=n(14),l={autoPause:{viewability:!1,pauseAds:!1},autostart:!1,bandwidthEstimate:null,bitrateSelection:null,castAvailable:!1,controls:!0,cues:[],defaultPlaybackRate:1,displaydescription:!0,displaytitle:!0,displayPlaybackLabel:!1,enableShortcuts:!0,height:360,intl:{},language:"en",liveTimeout:null,localization:c.a,mute:!1,nextUpDisplay:!0,playbackRateControls:!1,playbackRates:[.5,1,1.25,1.5,2],renderCaptionsNatively:!1,repeat:!1,stretching:"uniform",volume:90,width:640};function f(e){return e?e<5?5:e>30?30:e:25}t.b=function(e,t){var d=Object(r.j)({},(window.jwplayer||{}).defaults,t,e);!function(e){Object.keys(e).forEach((function(t){"id"!==t&&(e[t]=Object(u.serialize)(e[t]))}))}(d);var p=d.forceLocalizationDefaults?l.language:Object(s.e)(),h=Object(s.j)(d.intl);d.localization=Object(s.a)(c.a,Object(s.c)(d,h,p));var v=Object(r.j)({},l,d);"."===v.base&&(v.base=Object(o.getScriptPath)("jwplayer.js")),v.base=(v.base||Object(o.loadFrom)()).replace(/\/?$/,"/"),n.p=v.base,v.width=Object(i.b)(v.width),v.height=Object(i.b)(v.height),v.aspectratio=Object(i.a)(v.aspectratio,v.width),v.volume=Object(r.z)(v.volume)?Math.min(Math.max(0,v.volume),100):l.volume,v.mute=!!v.mute,v.language=p,v.intl=h;var g=d.autoPause;g&&(v.autoPause.viewability=!("viewability"in g)||!!g.viewability);var b=v.playbackRateControls;if(b){var m=v.playbackRates;Array.isArray(b)&&(m=b),(m=m.filter((function(e){return Object(r.v)(e)&&e>=.25&&e<=4})).map((function(e){return Math.round(100*e)/100}))).indexOf(1)<0&&m.push(1),m.sort(),v.playbackRateControls=!0,v.playbackRates=m}(!v.playbackRateControls||v.playbackRates.indexOf(v.defaultPlaybackRate)<0)&&(v.defaultPlaybackRate=1),v.playbackRate=v.defaultPlaybackRate,v.aspectratio||delete v.aspectratio;var y=v.playlist;if(y)Array.isArray(y.playlist)&&(v.feedData=y,v.playlist=y.playlist);else{var j=Object(r.D)(v,["title","description","type","mediaid","image","images","file","sources","tracks","preload","duration"]);v.playlist=[j]}v.qualityLabels=v.qualityLabels||v.hlslabels,delete v.duration;var w=v.liveTimeout;null!==w&&(Object(r.z)(w)?0!==w&&(w=Math.max(30,w)):w=null,v.liveTimeout=w);var O,k,C=parseFloat(v.bandwidthEstimate),P=parseFloat(v.bitrateSelection);return v.bandwidthEstimate=Object(r.z)(C)?C:(O=v.defaultBandwidthEstimate,k=parseFloat(O),Object(r.z)(k)?Math.max(k,1):l.bandwidthEstimate),v.bitrateSelection=Object(r.z)(P)?P:l.bitrateSelection,v.liveSyncDuration=f(v.liveSyncDuration),v.backgroundLoading=Object(r.r)(v.backgroundLoading)?v.backgroundLoading:a.Features.backgroundLoading,v}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e,t,n){return Math.max(Math.min(e,n),t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r=12;function i(){try{var e=window.crypto||window.msCrypto;if(e&&e.getRandomValues)return e.getRandomValues(new Uint32Array(1))[0].toString(36)}catch(e){}return Math.random().toString(36).slice(2,9)}function o(e){for(var t="";t.length<e;)t+=i();return t.slice(0,e)}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,"a",(function(){return c}));var c=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=o(this,u(t).call(this))).attributes=Object.create(null),e}var n,r,c;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(t,e),n=t,(r=[{key:"addAttributes",value:function(e){var t=this;Object.keys(e).forEach((function(n){t.add(n,e[n])}))}},{key:"add",value:function(e,t){var n=this;Object.defineProperty(this,e,{get:function(){return n.attributes[e]},set:function(t){return n.set(e,t)},enumerable:!1}),this.attributes[e]=t}},{key:"get",value:function(e){return this.attributes[e]}},{key:"set",value:function(e,t){if(this.attributes[e]!==t){var n=this.attributes[e];this.attributes[e]=t,this.trigger("change:"+e,this,t,n)}}},{key:"clone",value:function(){var e={},t=this.attributes;if(t)for(var n in t)e[n]=t[n];return e}},{key:"change",value:function(e,t,n){this.on("change:"+e,t,n);var r=this.get(e);return t.call(n,this,r,r),this}}])&&i(n.prototype,r),c&&i(n,c),t}(n(9).a)},function(e,t,n){"use strict";function r(e,t,n){var r=[],i={};function o(){for(;r.length>0;){var t=r.shift(),n=t.command,o=t.args;(i[n]||e[n]).apply(e,o)}}t.forEach((function(t){var u=e[t];i[t]=u,e[t]=function(){var e=Array.prototype.slice.call(arguments,0);n()?r.push({command:t,args:e}):(o(),u&&u.apply(this,e))}})),Object.defineProperty(this,"queue",{enumerable:!0,get:function(){return r}}),this.flush=o,this.empty=function(){r.length=0},this.off=function(){t.forEach((function(t){var n=i[t];n&&(e[t]=n,delete i[t])}))},this.destroy=function(){this.off(),this.empty()}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o}));var r=4,i=2,o=1},function(e,t,n){"use strict";var r=n(3),i=function(){},o=function(){return!1},u={name:"default"},a={supports:o,play:i,pause:i,preload:i,load:i,stop:i,volume:i,mute:i,seek:i,resize:i,remove:i,destroy:i,setVisibility:i,setFullscreen:i,getFullscreen:o,supportsFullscreen:o,getContainer:i,setContainer:i,getName:function(){return u},getQualityLevels:i,getCurrentQuality:i,setCurrentQuality:i,getAudioTracks:i,getCurrentAudioTrack:i,setCurrentAudioTrack:i,getSeekRange:function(){return{start:0,end:this.getDuration()}},setPlaybackRate:i,getPlaybackRate:function(){return 1},getBandwidthEstimate:function(){return null},getLiveLatency:function(){return null},setControls:i,attachMedia:i,detachMedia:i,init:i,setState:function(e){this.state=e,this.trigger(r.bb,{newstate:e})},sendMediaType:function(e){var t=e[0],n=t.type,i=t.mimeType,o="aac"===n||"mp3"===n||"mpeg"===n||i&&0===i.indexOf("audio/");this.trigger(r.T,{mediaType:o?"audio":"video"})}};t.a=a},function(e,t,n){"use strict";var r=n(0),i=n(24),o=n(12),u=n(2),a=n(1),c=n(19),s=function(e){if("string"==typeof e){var t=(e=e.split("?")[0]).indexOf("://");if(t>0)return 0;var n=e.indexOf("/"),r=Object(u.a)(e);return!(t<0&&n<0)||r&&isNaN(r)?1:2}};var l=function(e){this.url=e,this.promise_=null};Object.defineProperties(l.prototype,{promise:{get:function(){return this.promise_||this.load()},set:function(){}}}),Object(r.j)(l.prototype,{load:function(){var e=this,t=this.promise_;if(!t){if(2===s(this.url))t=Promise.resolve(this);else{var n=new i.a(function(e){switch(s(e)){case 0:return e;case 1:return Object(o.getAbsolutePath)(e,window.location.href)}}(this.url));this.loader=n,t=n.load().then((function(){return e}))}this.promise_=t}return t},registerPlugin:function(e,t,n){this.name=e,this.target=t,this.js=n},getNewInstance:function(e,t,n){var r=this.js;if("function"!=typeof r)throw new a.s(null,Object(c.c)(this.url)+100);var i=new r(e,t,n);return i.addToPlayer=function(){var t=e.getContainer().querySelector(".jw-overlays");t&&(n.left=t.style.left,n.top=t.style.top,t.appendChild(n),i.displayArea=t)},i.resizeHandler=function(){var e=i.displayArea;e&&i.resize(e.clientWidth,e.clientHeight)},i}}),t.a=l},function(e,t,n){"use strict";var r=n(0),i=n(3),o=n(4),u=n(46),a=n(28),c=n(9),s=n(1);t.a=function(){var e=Object(r.j)(this,c.a);function t(t){try{var a,c=t.responseXML?t.responseXML.childNodes:null,l="";if(c){for(var f=0;f<c.length&&8===(l=c[f]).nodeType;f++);if("xml"===Object(o.b)(l)&&(l=l.nextSibling),"rss"===Object(o.b)(l)){var d=Object(u.a)(l);a=Object(r.j)({playlist:d},d.feedData)}}if(!a)try{var p=JSON.parse(t.responseText);if(Array.isArray(p))a={playlist:p};else{if(!Array.isArray(p.playlist))throw Error("Playlist is not an array");a=p}}catch(e){throw new s.s(s.o,621,e)}e.trigger(i.eb,a)}catch(e){n(e)}}function n(t){t.code||(t=new s.s(s.o,0)),e.trigger(i.w,t)}this.load=function(e){Object(a.a)(e,t,(function(e,t,r,i){n(i)}))},this.destroy=function(){this.off()}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return u}));var r=n(57);function i(){for(var e=r.c,t=[],n=[],i=0;i<e;i++){var a=u();t.push(a),n.push(a),o(a)}var c=n.shift(),s=n.shift(),l=!1;return{primed:function(){return l},prime:function(){t.forEach(o),l=!0},played:function(){l=!0},getPrimedElement:function(){return n.length?n.shift():null},getAdElement:function(){return c},getTestElement:function(){return s},clean:function(e){if(e.src){e.removeAttribute("src");try{e.load()}catch(e){}}},recycle:function(e){e&&!n.some((function(t){return t===e}))&&(this.clean(e),n.push(e))},syncVolume:function(e){var n=Math.min(Math.max(0,e/100),1);t.forEach((function(e){e.volume=n}))},syncMute:function(e){t.forEach((function(t){t.muted=e}))}}}function o(e){e.src||e.load()}function u(e){var t=document.createElement("video");return t.className="jw-video jw-reset",t.setAttribute("tabindex","-1"),t.setAttribute("disableRemotePlayback",""),t.setAttribute("webkit-playsinline",""),t.setAttribute("playsinline",""),e&&Object.keys(e).forEach((function(n){t.setAttribute(n,e[n])})),t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0);function i(e,t){return Object(r.j)({},t,{prime:function(){e.src||e.load()},getPrimedElement:function(){return e},clean:function(){t.clean(e)},recycle:function(){t.clean(e)}})}},function(e,t,n){"use strict";t.a="hidden"in document?function(){return!document.hidden}:"webkitHidden"in document?function(){return!document.webkitHidden}:function(){return!0}},function(e,t,n){"use strict";function r(e){return(e=e||window.event)&&/^(?:mouse|pointer|touch|gesture|click|key)/.test(e.type)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(0),i=n(56),o=n(52),u=n(20),a=n(8),c=n(26),s=n(23);function l(e,t){var n=e.querySelector(t);if(n)return n.getAttribute("content")}var f=n(68),d=n.n(f),p=n(67);function h(e){return"string"==typeof e&&/^\/\/(?:content\.jwplatform|cdn\.jwplayer)\.com\//.test(e)}function v(e){return"https:"+e}function g(e){var t="file:"===window.location.protocol?"https:":"",n={jwpsrv:"//web.archive.org/web/20200314115822/https://ssl.p.jwpcdn.com/player/v/8.12.5/jwpsrv.js",dai:"//web.archive.org/web/20200314115822/https://ssl.p.jwpcdn.com/player/plugins/dai/v/0.4.9/dai.js",vast:"//web.archive.org/web/20200314115822/https://ssl.p.jwpcdn.com/player/plugins/vast/v/8.7.10/vast.js",googima:"//web.archive.org/web/20200314115822/https://ssl.p.jwpcdn.com/player/plugins/googima/v/8.7.11/googima.js",freewheel:"//web.archive.org/web/20200314115822/https://ssl.p.jwpcdn.com/player/plugins/freewheel/v/2.2.8/freewheel.js",gapro:"//web.archive.org/web/20200314115822/https://ssl.p.jwpcdn.com/player/plugins/gapro/v/2.1.5/gapro.js"}[e];return n?t+n:""}function b(e,t,n){t&&(e[t.client||g(n)]=t,delete t.client)}var m=function(e,t){var i,f,m,y=Object(o.b)(e,t),j=y.key||window.jwplayer&&window.jwplayer.key,w=new c.b(j),O=w.edition();if("free"===w.edition()&&(y=Object(r.j)({skin:{active:"#ff0046",timeslider:{progress:"none"}},logo:{position:"control-bar",file:d.a}},o.a,Object(r.D)(y,["analytics","aspectratio","base","file","height","playlist","sources","width"]))),y.key=j,y.edition=O,y.error=w.error(),y.generateSEOMetadata=y.generateSEOMetadata||!1,"unlimited"===O){var k=Object(u.getScriptPath)("jwplayer.js");if(!k)throw new Error("Error setting up player: Could not locate jwplayer.js script tag");n.p=k}if(y.flashplayer=function(e){var t=e.flashplayer;t||(t=(Object(u.getScriptPath)("jwplayer.js")||e.base)+"jwplayer.flash.swf");"http:"===window.location.protocol&&(t=t.replace(/^https/,"http"));return t}(y),y.plugins=function(e){var t=Object(r.j)({},e.plugins),n=Object(s.a)(e.edition);if(n("ads")){var i=Object(r.j)({},e.advertising),o=i.client;if(o){var u=g(o)||o;t[u]=i,delete i.client}}if(n("jwpsrv")){var a=e.analytics;a!==Object(a)&&(a={}),b(t,a,"jwpsrv")}b(t,e.ga,"gapro");var c=e.related,l=!n("discovery")||c!==Object(c),f=!c||"none"!==c.displayMode,d=c||{},p=void 0===d.oncomplete?"none":d.oncomplete,h=d.autoplaytimer;!1===p||e.repeat?p="hide":"none"===p&&(h=0);var v="autoplay"===p&&h<=0||"none"===p;return e.related=Object(r.j)({},c,{disableRelated:l,showButton:f,oncomplete:p,autoplaytimer:h,shouldAutoAdvance:v}),t}(y),y.ab&&(y.ab=function(e){var t=e.ab;t.clone&&(t=t.clone());return Object.keys(t.tests).forEach((function(n){t.tests[n].forEach((function(t){t.addConfig&&t.addConfig(e,t.selection)}))})),t}(y)),i=y.playlist,Object(r.x)(i)&&i.indexOf("__CONTEXTUAL__")>-1&&(y.playlist=function(e,t){var n=(e.querySelector("title")||{}).textContent,r=l(e,'meta[property="og:title"]'),i=encodeURIComponent(r||n||""),o=l(e,'meta[property="og:description"]')||l(e,'meta[name="description"]');return o&&(i+="&page_description="+encodeURIComponent(o)),t.replace("__CONTEXTUAL__",i)}(document,y.playlist),y.contextual=!0),Object(a.isFileProtocol)()){var C=y,P=C.playlist,S=C.related;h(P)&&(y.playlist=v(P)),S&&h(S.file)&&(S.file=v(S.file))}return y.__abSendDomainToFeeds&&(m=y.playlist,/\.jwplatform.com|\.jwplayer.com/.test(m))&&(y.playlist=(f=y.playlist,f+="".concat(-1!==f.indexOf("?")?"&":"?","page_domain=").concat(encodeURIComponent(Object(p.a)())))),y},y=n(10),j=n(25),w=n(3),O=n(60),k=n(30),C=n(24),P=n(1),S=n(14);function x(e){var t=e.get("playlist");return new Promise((function(n,r){if("string"!=typeof t){var i=e.get("feedData")||{};return E(e,t,i),n()}var o=new O.a;o.on(w.eb,(function(t){var r=t.playlist;delete t.playlist,E(e,r,t),n()})),o.on(w.w,(function(t){E(e,[],{}),r(Object(P.z)(t,P.u))})),o.load(t)}))}function E(e,t,n){var r=e.attributes;r.playlist=Object(k.a)(t),r.feedData=n}function T(e){return e.attributes._destroyed}var A=n(36);function _(e){return I(e)?Promise.resolve():x(e).then((function(){if(e.get("drm")||Object(A.b)(e.get("playlist")))return Object(A.d)(e.get("edition"))})).then((function(){return x(t=e).then((function(){if(!T(t)){var e=Object(k.b)(t.get("playlist"),t);t.attributes.playlist=e;try{Object(k.e)(e)}catch(e){throw e.code+=P.u,e}var n=t.getProviders(),r=n.choose(e[0].sources[0]),i=r.provider,o=r.name;return"function"==typeof i?i:y.a.html5&&"html5"===o?y.a.html5:n.load(o).catch((function(e){throw Object(P.z)(e,P.v)}))}}));var t}))}function F(e,t){var n=[M(e)];return I(e)||n.push(Promise.resolve()),Promise.all(n)}function M(e){var t=e.attributes,n=t.error;if(n&&n.code===c.a){var r=t.pid,i=t.ph,o=new c.b(t.key);if(i>0&&i<4&&r&&o.duration()>-7776e6)return new C.a("//web.archive.org/web/20200314115822/https://content.jwplatform.com/libraries/".concat(r,".js")).load().then((function(){var e=window.jwplayer.defaults.key,n=new c.b(e);n.error()||n.token()!==o.token()||(t.key=e,t.edition=n.edition(),t.error=n.error())})).catch((function(){}))}return Promise.resolve()}function I(e){var t=e.get("advertising");return!(!t||!t.outstream)}var N=function(e){var t=e.get("skin")?e.get("skin").url:void 0;if("string"==typeof t&&!function(e){for(var t=document.styleSheets,n=0,r=t.length;n<r;n++)if(t[n].href===e)return!0;return!1}(t)){return new C.a(t,!0).load().catch((function(e){return e}))}return Promise.resolve()},L=function(e){var t=e.attributes,n=t.language,r=t.base,i=t.setupConfig,o=t.intl,u=Object(S.c)(i,o,n);return!Object(S.h)(n)||Object(S.f)(u)?Promise.resolve():new Promise((function(i){return Object(S.i)(r,n).then((function(n){var r=n.response;if(!T(e)){if(!r)throw new P.s(null,P.g);t.localization=Object(S.a)(r,u),i()}})).catch((function(e){i(e.code===P.g?e:Object(P.z)(e,P.f))}))}))};var R=function(e){var t;this.start=function(n){var r=Object(j.a)(e,n),i=Promise.all([Object(y.d)(e),r,_(e),F(e),N(e),L(e)]),o=new Promise((function(e,n){t=setTimeout((function(){n(new P.s(P.m,P.x))}),6e4);var r=function(){clearTimeout(t),setTimeout(e,6e4)};i.then(r).catch(r)}));return Promise.race([i,o]).catch((function(e){var t=function(){throw e};return r.then(t).catch(t)})).then((function(e){return function(e){if(!e||!e.length)return{core:null,warnings:[]};var t=e.reduce((function(e,t){return e.concat(t)}),[]).filter((function(e){return e&&e.code}));return{core:e[0],warnings:t}}(e)}))},this.destroy=function(){clearTimeout(t),e.set("_destroyed",!0),e=null}},D=n(42),B=n(32),z=n(12),q=n(16),V={removeItem:function(){}};try{V=window.localStorage||V}catch(e){}function H(e,t){this.namespace=e,this.items=t}Object(r.j)(H.prototype,{getAllItems:function(){var e=this;return this.items.reduce((function(t,n){var r=V["".concat(e.namespace,".").concat(n)];return r&&(t[n]="captions"!==n?Object(z.serialize)(r):JSON.parse(r)),t}),{})},track:function(e){var t=this;this.items.forEach((function(n){e.on("change:".concat(n),(function(e,r){try{"captions"===n&&(r=JSON.stringify(r)),V["".concat(t.namespace,".").concat(n)]=r}catch(e){q.a.debug&&console.error(e)}}))}))},clear:function(){var e=this;this.items.forEach((function(t){V.removeItem("".concat(e.namespace,".").concat(t))}))}});var Q=H,W=n(55),U=n(50),X=n(9),Y=n(43),J=n(61),K=n(62),Z=n(35);n(69),n(70);n.d(t,"b",(function(){return te}));var $=function(e){this._events={},this.modelShim=new W.a,this.modelShim._qoeItem=new B.a,this.mediaShim={},this.setup=new R(this.modelShim),this.currentContainer=this.originalContainer=e,this.apiQueue=new i.a(this,["load","play","pause","seek","stop","playlistItem","playlistNext","playlistPrev","next","preload","setConfig","setCurrentAudioTrack","setCurrentCaptions","setCurrentQuality","setFullscreen","addButton","removeButton","castToggle","setMute","setVolume","setPlaybackRate","addCues","setCues","setPlaylistItem","resize","setCaptions","setControls"],(function(){return!0}))};function G(e,t){t&&t.code&&(t.sourceError&&console.error(t.sourceError),console.error(P.s.logMessage(t.code)))}function ee(e){e&&e.code&&console.warn(P.s.logMessage(e.code))}function te(e,t){if(!document.body.contains(e.currentContainer)){var n=document.getElementById(e.get("id"));n&&(e.currentContainer=n)}e.currentContainer.parentElement&&e.currentContainer.parentElement.replaceChild(t,e.currentContainer),e.currentContainer=t}Object(r.j)($.prototype,{on:X.a.on,once:X.a.once,off:X.a.off,trigger:X.a.trigger,init:function(e,t){var n=this,i=this.modelShim,o=new Q("jwplayer",["volume","mute","captionLabel","captions","bandwidthEstimate","bitrateSelection","qualityLabel","enableShortcuts"]),u=o&&o.getAllItems();i.attributes=i.attributes||{},Object(r.j)(this.mediaShim,U.a);var a=e,c=m(Object(r.j)({},e),u);c.id=t.id,c.setupConfig=a,Object(r.j)(i.attributes,c,U.b),i.getProviders=function(){return new D.a(c)},i.setProvider=function(){};var s=Object(J.b)();i.get("backgroundLoading")||(s=Object(K.a)(s.getPrimedElement(),s));var l=new Z.a(Object(Z.b)(this.originalContainer)).once("gesture",(function(){s.prime(),n.preload(),l.destroy()}));return i.on("change:errorEvent",G),this.setup.start(t).then((function(e){var u=e.core;if(!u)throw Object(P.z)(null,P.w);if(n.setup){n.on(w.ub,ee),e.warnings.forEach((function(e){n.trigger(w.ub,e)}));var a=n.modelShim.clone();if(a.error)throw a.error;var c=n.apiQueue.queue.slice(0);n.apiQueue.destroy(),Object(r.j)(n,u.prototype),n.setup(a,t,n.originalContainer,n._events,c,s);var l=n._model;return i.off("change:errorEvent",G),l.on("change:errorEvent",G),o.track(l),n.updatePlaylist(l.get("playlist"),l.get("feedData")).catch((function(e){throw Object(P.z)(e,P.u)}))}})).then((function(){n.setup&&n.playerReady()})).catch((function(e){n.setup&&function(e,t,n){Promise.resolve().then((function(){var r=Object(P.A)(P.r,P.y,n),i=e._model||e.modelShim;r.message=r.message||i.get("localization").errors[r.key],delete r.key;var o=i.get("contextual");if(!o){var u=Object(Y.a)(e,r);Y.a.cloneIcon&&u.querySelector(".jw-icon").appendChild(Y.a.cloneIcon("error")),te(e,u)}i.set("errorEvent",r),i.set("state",w.mb),e.trigger(w.jb,r),o&&t.remove()}))}(n,t,e)}))},playerDestroy:function(){this.apiQueue&&this.apiQueue.destroy(),this.setup&&this.setup.destroy(),this.currentContainer!==this.originalContainer&&te(this,this.originalContainer),this.off(),this._events=this._model=this.modelShim=this.apiQueue=this.setup=null},getContainer:function(){return this.currentContainer},get:function(e){if(this.modelShim)return e in this.mediaShim?this.mediaShim[e]:this.modelShim.get(e)},getItemQoe:function(){return this.modelShim._qoeItem},getConfig:function(){return Object(r.j)({},this.modelShim.attributes,this.mediaShim)},getCurrentCaptions:function(){return this.get("captionsIndex")},getWidth:function(){return this.get("containerWidth")},getHeight:function(){return this.get("containerHeight")},getMute:function(){return this.get("mute")},getProvider:function(){return this.get("provider")},getState:function(){return this.get("state")},getAudioTracks:function(){return null},getCaptionsList:function(){return null},getQualityLevels:function(){return null},getVisualQuality:function(){return null},getCurrentQuality:function(){return-1},getCurrentAudioTrack:function(){return-1},getSafeRegion:function(){return{x:0,y:0,width:0,height:0}},isBeforeComplete:function(){return!1},isBeforePlay:function(){return!1},createInstream:function(){return null},skipAd:function(){},attachMedia:function(){},detachMedia:function(){}});t.a=$},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(5);function i(e){return"hls"===e.type&&r.OS.android?!1!==e.androidhls&&(!r.Browser.firefox&&parseFloat(r.OS.version.version)>=4.4):null}},function(e,t,n){"use strict";function r(){var e,t,n=window.location.host;if(window.top!==window.self){n=(document.referrer?(e=document.referrer,(t=document.createElement("a")).href=e,t):{}).host;try{n=n||window.top.location.host}catch(e){}}return n}n.d(t,"a",(function(){return r}))},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 29.3" class="jw-svg-icon jw-svg-icon-watermark" focusable="false"><path d="M37,16.68c0,2.4-.59,3.43-2.4,3.43a5.75,5.75,0,0,1-3.38-1.23v3.58a7.39,7.39,0,0,0,3.67,1c3.67,0,5.73-1.91,5.73-6.32V5.86H37Z"></path><polygon points="58.33 17.61 55.39 6.01 52.55 6.01 49.52 17.61 46.73 6.01 43.06 6.01 47.56 23.29 50.89 23.29 53.92 11.88 56.96 23.29 60.24 23.29 64.74 6.01 61.17 6.01 58.33 17.61"></polygon><path d="M73.84,6H67.47V23.29h2.2v-6.9h4.17c3.47,0,5.77-1.77,5.77-5.19S77.31,6,73.84,6Zm0,8.47H69.72V8h4.12c2.3,0,3.57,1.22,3.62,3.28C77.46,13.21,76.19,14.48,73.84,14.48Z"></path><path d="M99.2,6l-6,15.27H85V6H82.8V23.29H94.7l2-5.19h7.09l2,5.19H108L101.26,6ZM97.39,16.14l2.84-7.39L103,16.14Z"></path><polygon points="113.98 14.18 108.99 6.01 106.59 6.01 112.81 16.14 112.81 23.29 115.01 23.29 115.01 16.14 121.33 6.01 118.98 6.01 113.98 14.18"></polygon><polygon points="123.14 23.29 134.1 23.29 134.1 21.28 125.29 21.28 125.29 15.41 133.32 15.41 133.32 13.45 125.29 13.45 125.29 7.97 134.1 7.97 134.1 6.01 123.14 6.01 123.14 23.29"></polygon><path d="M144.86,15.85c2.74-.39,4.41-2,4.41-4.85,0-3.23-2.26-5-5.73-5h-6.32V23.29h2.22V16h3.08l4.94,7.29H150Zm-5.42-1.71V8h4.06c2.3,0,3.62,1.17,3.62,3.08s-1.32,3.09-3.62,3.09Z"></path><path d="M27.63.09a1,1,0,0,0-1.32.48c-.24.51-6.35,15.3-6.35,15.3-.2.46-.33.41-.33-.07,0,0,0-5.15,0-9.39,0-2.31-1.12-3.61-2.73-3.88A3.12,3.12,0,0,0,14.83,3a4.57,4.57,0,0,0-1.5,1.79c-.48.94-3.47,9.66-3.47,9.66-.16.46-.31.44-.31,0,0,0-.09-3.76-.18-4.64-.13-1.36-.44-3.59-2.2-3.7S4.77,8,4.36,9.24c-.29.84-1.65,5.35-1.65,5.35l-.2.46h0c-.06.24-.17.24-.24,0l-.11-.42Q2,14,1.74,13.31a1.71,1.71,0,0,0-.33-.66.83.83,0,0,0-.88-.22.82.82,0,0,0-.53.69,4.22,4.22,0,0,0,.07.79,29,29,0,0,0,1,4.6,1.31,1.31,0,0,0,1.8.66,3.43,3.43,0,0,0,1.24-1.81c.33-.81,2-5.48,2-5.48.18-.46.31-.44.29,0,0,0-.09,4.57-.09,6.64a13.11,13.11,0,0,0,.28,2.93,2.41,2.41,0,0,0,.82,1.27,2,2,0,0,0,1.41.4,2,2,0,0,0,.7-.24,3.15,3.15,0,0,0,.79-.71,12.52,12.52,0,0,0,1.26-2.11c.81-1.6,2.92-6.58,2.92-6.58.2-.46.33-.41.33.07,0,0-.26,8.36-.26,11.55a6.39,6.39,0,0,0,.44,2.33,2.8,2.8,0,0,0,1.45,1.61A2.57,2.57,0,0,0,18.79,29a3.76,3.76,0,0,0,1.28-1.32,15.12,15.12,0,0,0,1.07-2.31c.64-1.65,1.17-3.33,1.7-5s5-17.65,5.28-19a1.79,1.79,0,0,0,0-.46A1,1,0,0,0,27.63.09Z"></path></svg>'},function(e,t,n){"use strict";var r,i=n(63),o=n(5),u=n(6),a=[],c=[],s=[],l={},f="screen"in window&&"orientation"in window.screen,d=o.OS.android&&o.Browser.chrome,p=!1;function h(e,t){for(var n=t.length;n--;){var r=t[n];if(e.target===r.getContainer()){r.setIntersection(e);break}}}function v(){a.forEach((function(e){var t=e.model;if(!(t.get("audioMode")||!t.get("controls")||t.get("visibility")<.75)){var n=t.get("state"),r=Object(u.f)();!r&&"paused"===n&&e.api.getFullscreen()?e.api.setFullscreen(!1):"playing"===n&&e.api.setFullscreen(r)}}))}function g(){a.forEach((function(e){e.model.set("activeTab",Object(i.a)())}))}function b(e,t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}function m(e){s.forEach((function(t){t(e)}))}document.addEventListener("visibilitychange",g),document.addEventListener("webkitvisibilitychange",g),d&&f&&window.screen.orientation.addEventListener("change",v),window.addEventListener("beforeunload",(function(){document.removeEventListener("visibilitychange",g),document.removeEventListener("webkitvisibilitychange",g),window.removeEventListener("scroll",m),d&&f&&window.screen.orientation.removeEventListener("change",v)})),t.a={add:function(e){a.push(e)},remove:function(e){b(e,a)},addScrollHandler:function(e){p||(p=!0,window.addEventListener("scroll",m)),s.push(e)},removeScrollHandler:function(e){var t=s.indexOf(e);-1!==t&&s.splice(t,1)},addWidget:function(e){c.push(e)},removeWidget:function(e){b(e,c)},size:function(){return a.length},observe:function(e){var t;t=window.IntersectionObserver,r||(r=new t((function(e){if(e&&e.length)for(var t=e.length;t--;){var n=e[t];h(n,a),h(n,c)}}),{threshold:[0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1]})),l[e.id]||(l[e.id]=!0,r.observe(e))},unobserve:function(e){r&&l[e.id]&&(delete l[e.id],r.unobserve(e))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(0),i=n(49),o=n(6),u=n(11);function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=[],s=-1;function l(){Object(i.a)(s),s=Object(i.b)((function(){c.forEach((function(e){e.view.updateBounds();var t=e.view.model.get("containerWidth");e.resized=e.width!==t,e.width=t})),c.forEach((function(e){e.contractElement.scrollLeft=2*e.width})),c.forEach((function(e){Object(u.d)(e.expandChild,{width:e.width+1}),e.resized&&e.view.model.get("visibility")&&e.view.updateStyles()})),c.forEach((function(e){e.expandElement.scrollLeft=e.width+1})),c.forEach((function(e){e.resized&&e.view.checkResized()}))}))}var f=function(){function e(t,n,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var a={display:"block",position:"absolute",top:0,left:0},s={width:"100%",height:"100%"},f=Object(o.e)('<div style="opacity:0;visibility:hidden;overflow:hidden;"><div><div style="height:1px;"></div></div><div class="jw-contract-trigger"></div></div>'),d=f.firstChild,p=d.firstChild,h=d.nextSibling;Object(u.d)([d,h],Object(r.j)({overflow:"auto"},a,s)),Object(u.d)(f,Object(r.j)({},a,s)),this.expandElement=d,this.expandChild=p,this.contractElement=h,this.hiddenElement=f,this.element=t,this.view=n,this.model=i,this.width=0,this.resized=!1,t.firstChild?t.insertBefore(f,t.firstChild):t.appendChild(f),t.addEventListener("scroll",l,!0),c.push(this),l()}var t,n,i;return t=e,(n=[{key:"destroy",value:function(){if(this.view){var e=c.indexOf(this);-1!==e&&c.splice(e,1),this.element.removeEventListener("scroll",l,!0),this.element.removeChild(this.hiddenElement),this.view=this.model=null}}}])&&a(t.prototype,n),i&&a(t,i),e}()},function(e,t,n){"use strict";n.r(t);var r=n(0),i=setTimeout;function o(){}function u(e){if(!(this instanceof u))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],d(e,this)}function a(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,u._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(e){return void s(t.promise,e)}c(t.promise,r)}else(1===e._state?c:s)(t.promise,e._value)}))):e._deferreds.push(t)}function c(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof u)return e._state=3,e._value=t,void l(e);if("function"==typeof n)return void d((r=n,i=t,function(){r.apply(i,arguments)}),e)}e._state=1,e._value=t,l(e)}catch(t){s(e,t)}var r,i}function s(e,t){e._state=2,e._value=t,l(e)}function l(e){2===e._state&&0===e._deferreds.length&&u._immediateFn((function(){e._handled||u._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)a(e,e._deferreds[t]);e._deferreds=null}function f(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function d(e,t){var n=!1;try{e((function(e){n||(n=!0,c(t,e))}),(function(e){n||(n=!0,s(t,e))}))}catch(e){if(n)return;n=!0,s(t,e)}}u.prototype.catch=function(e){return this.then(null,e)},u.prototype.then=function(e,t){var n=new this.constructor(o);return a(this,new f(e,t,n)),n},u.prototype.finally=function(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){return t.reject(n)}))}))},u.all=function(e){return new u((function(t,n){if(!e||void 0===e.length)throw new TypeError("Promise.all accepts an array");var r=Array.prototype.slice.call(e);if(0===r.length)return t([]);var i=r.length;function o(e,u){try{if(u&&("object"==typeof u||"function"==typeof u)){var a=u.then;if("function"==typeof a)return void a.call(u,(function(t){o(e,t)}),n)}r[e]=u,0==--i&&t(r)}catch(e){n(e)}}for(var u=0;u<r.length;u++)o(u,r[u])}))},u.resolve=function(e){return e&&"object"==typeof e&&e.constructor===u?e:new u((function(t){t(e)}))},u.reject=function(e){return new u((function(t,n){n(e)}))},u.race=function(e){return new u((function(t,n){for(var r=0,i=e.length;r<i;r++)e[r].then(t,n)}))},u._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){i(e,0)},u._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var p=u;window.Promise||(window.Promise=p);var h=n(20),v=n(15),g=n(17),b=n(13),m={availableProviders:g.a,registerProvider:b.a},y=n(25);m.registerPlugin=function(e,t,n){"jwpsrv"!==e&&Object(y.b)(e,t,n)};var j=m,w=n(31),O=n(16),k=n(5),C=n(65),P=n(3),S=n(32),x=n(9),E=n(8),T=n(12),A=n(2);function _(e,t){this.name=e,this.message=t.message||t.toString(),this.error=t}var F=n(7),M=n(6),I=n(11),N=n(28),L=n(53),R=n(47),D=n(54);var B=Object(r.j)({},T,E,h,{addClass:M.a,hasClass:M.i,removeClass:M.o,replaceClass:M.p,toggleClass:M.v,classList:M.d,styleDimension:M.u,createElement:M.e,emptyElement:M.h,addStyleSheet:M.b,bounds:M.c,openLink:M.l,replaceInnerHtml:M.q,css:I.b,clearCss:I.a,style:I.d,transform:I.e,getRgba:I.c,ajax:N.a,crossdomain:function(e){var t=document.createElement("a"),n=document.createElement("a");t.href=location.href;try{return n.href=e,n.href=n.href,t.protocol+"//"+t.host!=n.protocol+"//"+n.host}catch(e){}return!0},tryCatch:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(O.a.debug)return e.apply(t||this,n);try{return e.apply(t||this,n)}catch(t){return new _(e.name,t)}},Error:_,Timer:S.a,log:R.a,genId:D.b,between:L.a,foreach:function(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t(n,e[n])},flashVersion:F.a,isIframe:F.m,indexOf:r.p,trim:A.i,pad:A.e,extension:A.a,hms:A.b,seconds:A.g,prefix:A.f,suffix:A.h,noop:function(){}}),z=0;function q(e,t){var n=new C.a(t);return n.on(P.hb,(function(t){e._qoe.tick("ready"),t.setupTime=e._qoe.between("setup","ready")})),n.on("all",(function(t,n){e.trigger(t,n)})),n}function V(e,t){var n=e.plugins;Object.keys(n).forEach((function(e){delete n[e]})),t.get("setupConfig")&&e.trigger("remove"),e.off(),t.playerDestroy(),t.getContainer().removeAttribute("data-jwplayer-id")}function H(e){var t=++z,n=e.id||"player-".concat(t),i=new S.a,o={},u=q(this,e);i.tick("init"),e.setAttribute("data-jwplayer-id",n),Object.defineProperties(this,{id:{enumerable:!0,get:function(){return n}},uniqueId:{enumerable:!0,get:function(){return t}},plugins:{enumerable:!0,get:function(){return o}},_qoe:{enumerable:!0,get:function(){return i}},version:{enumerable:!0,get:function(){return w.a}},Events:{enumerable:!0,get:function(){return x.a}},utils:{enumerable:!0,get:function(){return B}},_:{enumerable:!0,get:function(){return r.f}}}),Object(r.j)(this,{_events:{},setup:function(t){return i.clear("ready"),i.tick("setup"),V(this,u),(u=q(this,e)).init(t,this),this.on(t.events,null,this)},remove:function(){return function(e){for(var t=v.a.length;t--;)if(v.a[t].uniqueId===e.uniqueId){v.a.splice(t,1);break}}(this),V(this,u),this},qoe:function(){var e=u.getItemQoe();return{setupTime:this._qoe.between("setup","ready"),firstFrame:e.getFirstFrame?e.getFirstFrame():null,player:this._qoe.dump(),item:e.dump()}},addCues:function(e){return Array.isArray(e)&&u.addCues(e),this},getAudioTracks:function(){return u.getAudioTracks()},getBuffer:function(){return u.get("buffer")},getCaptions:function(){return u.get("captions")},getCaptionsList:function(){return u.getCaptionsList()},getConfig:function(){return u.getConfig()},getContainer:function(){return u.getContainer()},getControls:function(){return u.get("controls")},getCues:function(){return u.get("cues")},getCurrentAudioTrack:function(){return u.getCurrentAudioTrack()},getCurrentCaptions:function(){return u.getCurrentCaptions()},getCurrentQuality:function(){return u.getCurrentQuality()},getCurrentTime:function(){return u.get("currentTime")},getDuration:function(){return u.get("duration")},getEnvironment:function(){return k},getFullscreen:function(){return u.get("fullscreen")},getHeight:function(){return u.getHeight()},getItemMeta:function(){return u.get("itemMeta")||{}},getMute:function(){return u.getMute()},getPlaybackRate:function(){return u.get("playbackRate")},getPlaylist:function(){return u.get("playlist")},getPlaylistIndex:function(){return u.get("item")},getPlaylistItem:function(e){if(!B.exists(e))return u.get("playlistItem");var t=this.getPlaylist();return t?t[e]:null},getPosition:function(){return u.get("position")},getProvider:function(){return u.getProvider()},getQualityLevels:function(){return u.getQualityLevels()},getSafeRegion:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return u.getSafeRegion(e)},getState:function(){return u.getState()},getStretching:function(){return u.get("stretching")},getViewable:function(){return u.get("viewable")},getVisualQuality:function(){return u.getVisualQuality()},getVolume:function(){return u.get("volume")},getWidth:function(){return u.getWidth()},setCaptions:function(e){return u.setCaptions(e),this},setConfig:function(e){return u.setConfig(e),this},setControls:function(e){return u.setControls(e),this},setCurrentAudioTrack:function(e){u.setCurrentAudioTrack(e)},setCurrentCaptions:function(e){u.setCurrentCaptions(e)},setCurrentQuality:function(e){u.setCurrentQuality(e)},setFullscreen:function(e){return u.setFullscreen(e),this},setMute:function(e){return u.setMute(e),this},setPlaybackRate:function(e){return u.setPlaybackRate(e),this},setPlaylistItem:function(e,t){return u.setPlaylistItem(e,t),this},setCues:function(e){return Array.isArray(e)&&u.setCues(e),this},setVolume:function(e){return u.setVolume(e),this},load:function(e,t){return u.load(e,t),this},play:function(e){return u.play(e),this},pause:function(e){return u.pause(e),this},playToggle:function(e){switch(this.getState()){case P.qb:case P.kb:return this.pause(e);default:return this.play(e)}},seek:function(e,t){return u.seek(e,t),this},playlistItem:function(e,t){return u.playlistItem(e,t),this},playlistNext:function(e){return u.playlistNext(e),this},playlistPrev:function(e){return u.playlistPrev(e),this},next:function(e){return u.next(e),this},castToggle:function(){return u.castToggle(),this},createInstream:function(){return u.createInstream()},stop:function(){return u.stop(),this},resize:function(e,t){return u.resize(e,t),this},addButton:function(e,t,n,r,i){return u.addButton(e,t,n,r,i),this},removeButton:function(e){return u.removeButton(e),this},attachMedia:function(){return u.attachMedia(),this},detachMedia:function(){return u.detachMedia(),this},isBeforeComplete:function(){return u.isBeforeComplete()},isBeforePlay:function(){return u.isBeforePlay()}})}Object(r.j)(H.prototype,{on:function(e,t,n){return x.c.call(this,e,t,n)},once:function(e,t,n){return x.d.call(this,e,t,n)},off:function(e,t,n){return x.b.call(this,e,t,n)},trigger:function(e,t){return(t=r.f.isObject(t)?Object(r.j)({},t):{}).type=e,O.a.debug?x.e.call(this,e,t):x.f.call(this,e,t)},getPlugin:function(e){return this.plugins[e]},addPlugin:function(e,t){this.plugins[e]=t,this.on("ready",t.addToPlayer),t.resize&&this.on("resize",t.resizeHandler)},registerPlugin:function(e,t,n){Object(y.b)(e,t,n)},getAdBlock:function(){return!1},playAd:function(e){},pauseAd:function(e){},skipAd:function(){}}),n.p=Object(h.loadFrom)();var Q=function(e){var t,n;if(e?"string"==typeof e?(t=W(e))||(n=document.getElementById(e)):"number"==typeof e?t=v.a[e]:e.nodeType&&(t=W((n=e).id||n.getAttribute("data-jwplayer-id"))):t=v.a[0],t)return t;if(n){var r=new H(n);return v.a.push(r),r}return{registerPlugin:y.b}};function W(e){for(var t=0;t<v.a.length;t++)if(v.a[t].id===e)return v.a[t];return null}function U(e){Object.defineProperties(e,{api:{get:function(){return j},set:function(){}},version:{get:function(){return w.a},set:function(){}},debug:{get:function(){return O.a.debug},set:function(e){O.a.debug=!!e}}})}U(Q);var X=Q,Y=n(35),J=n(26),K=n(24),Z=n(48),$=n(46),G=n(39),ee=r.f.extend,te={};te._=r.f,te.utils=Object(r.j)(B,{key:J.b,extend:ee,scriptloader:K.a,rssparser:{parse:$.a},tea:Z.a,UI:Y.a}),te.utils.css.style=te.utils.style,te.vid=G.a;var ne=te,re=n(64),ie=/^(?:on(?:ce)?|off|trigger)$/;function oe(e){var t={};ue(this,e,e,t),ue(this,e,H.prototype,t)}function ue(e,t,n,r){var i=Object.keys(n);i.forEach((function(o){"function"==typeof n[o]&&"Events"!==o?e[o]=function e(t,n,r,i,o){return function(){var u=Array.prototype.slice.call(arguments),a=u[0],c=n._trackCallQueue||(n._trackCallQueue=[]),s=ie.test(r),l=s&&u[1]&&u[1]._callback,f=o.edition||ae(n,o,"edition"),d="free"===f;if(d){var p=["addButton","addCues","detachMedia","load","next","pause","play","playlistItem","playlistNext","playlistPrev","playToggle","resize","seek","setCaptions","setConfig","setControls","setCues","setFullscreen","setMute","setPlaybackRate","setPlaylistItem","setVolume","stop"];if(p.indexOf(r)>-1)return ce(r),t;var h=["createInstream","setCurrentAudioTrack","setCurrentCaptions","setCurrentQuality"];if(h.indexOf(r)>-1)return ce(r),null}if(l||c.push([r,a]),s)return fe(n,c),n[r].apply(t,u);se(r,u);var v=n[r].apply(n,u);return"remove"===r?n.off.call(t):"setup"===r&&(n.off.call(t),n.off(a.events,null,n),n.on.call(t,a.events,null,t),n.on("all",(function(r,u){if("ready"===r){var a=Object.keys(n).filter((function(e){return"_"!==e[0]&&-1===i.indexOf(e)&&"function"==typeof n[e]})),s=i.concat(a);a.forEach((function(r){t[r]=e(t,n,r,s,o)}))}n.trigger.call(t,r,u),fe(n,c)}))),fe(n,c),v===n?t:v}}(e,t,o,i,r):"_events"===o?e._events={}:Object.defineProperty(e,o,{enumerable:!0,get:function(){return n[o]}})}))}function ae(e,t,n){var r=e.getConfig()[n];return t[n]=r,r}function ce(e){console.warn("The API method jwplayer().".concat(e,"() is disabled in the free edition of JW Player."))}function se(e,t){var n={reason:Object(re.a)()?"interaction":"external"};switch(e){case"play":case"pause":case"playToggle":case"playlistNext":case"playlistPrev":case"next":t[0]=n;break;case"seek":case"playlistItem":t[1]=n}}function le(e,t,n){try{var r=function(e,t){switch(e){case"setup":return!!t;case"getSafeRegion":case"pauseAd":case"setControls":case"setFullscreen":case"setMute":return!!t===t?t:void 0;case"setPlaylistItem":case"getPlaylistItem":return(0|t)===t?t:void 0;case"setPlaybackRate":case"setVolume":return Number(t);case"setConfig":return Object.keys(Object(t)).join(",");case"on":case"once":case"off":case"trigger":case"getPlugin":case"addPlugin":case"registerPlugin":return""+t}return null}(t,n);e.trackExternalAPIUsage(t,r)}catch(e){O.a.debug&&console.warn(e)}}function fe(e,t){if(t.length){var n=e.getPlugin("jwpsrv");n&&n.trackExternalAPIUsage&&(t.forEach((function(e){le(n,e[0],e[1])})),t.length=0)}}var de=window;Object(r.j)(X,ne);var pe=function(e){var t=X(e);return t.uniqueId?t._publicApi||(t._publicApi=new oe(t)):t};Object(r.j)(pe,ne),U(pe),"function"==typeof de.define&&de.define.amd&&de.define([],(function(){return pe}));var he=pe;de.jwplayer&&(he=de.jwplayer);t.default=he}]).default;


var jwDefaults = {
  "aspectratio": "16:9",
  "autoPause": {},
  "autostart": "viewable",
  "controls": true,
  "defaultBandwidthEstimate": 1000000,
  "displaydescription": true,
  "displaytitle": true,
  "flashplayer": "//web.archive.org/web/20200314115822/https://ssl.p.jwpcdn.com/player/v/8.12.5/jwplayer.flash.swf",
  "height": 360,
  "key": "bHgIraNb3yewGPWlXEuu0gE1pFd9rHJyrxAEuJwg27NKDymvIgPiaKrvaobWFRKg",
  "mute": true,
  "ph": 1,
  "pid": "6qFFztDW",
  "playbackRateControls": true,
  "preload": "metadata",
  "repeat": false,
  "stagevideo": false,
  "stretching": "uniform",
  "width": "100%"
};
jwplayer.defaults = jwDefaults;


 var DugoutAS=function(){"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){"use strict";if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var r=Object(e),n=1;n<arguments.length;n++){var o=arguments[n];if(null!=o)for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(r[a]=o[a])}return r},writable:!0,configurable:!0}),Array.prototype.forEach||(Array.prototype.forEach=function(e,t){t=t||window;for(var r=0;r<this.length;r++)e.call(t,this[r],r,this)});var e=function(e,t){function r(e,t){for(var r=arguments,n=r.length-1,o=r[n],a=o[0];!0!==a&&!RegExp(a).test(e)&&n>0;a=(o=r[--n])[0]);(t.slice||t.call(this,a,o))&&(this[t]=void 0===o[1]?a:o[1])}e="string"==typeof e?e.toLowerCase():"",!0===t?t=exports:t||(t={});var n="firefox",o="chrome",a="android",i="wrapper",s=".+mobile",c="webkit",u="playstation",f="xbox",l="crkey",p="cast",v="tablet",d="windows",g="phone",m="rikstv",h="edge",w="version",y="samsung";return r.call(t,e,function(r,n){t.browser=n[2]||r;var o=e.match(RegExp("((([\\/ ]"+w+"|"+n[0]+"(?!.+"+w+"))[/ ])| rv:)([0-9]{1,4}\\.[0-9]{0,2})"));t[w]=o?Number(o[4]):0,t.prefix=n[1]},[!0,c],["\\("+d,"ms","ie"],["safari",c],[n,"Moz"],["opera","O"],["msie","ms","ie"],["facebook"],[o+"|crios/",c,o],[h,c,h]),r.call(t,e,"platform",[!0,d],["linux"],["lg.{0,3}netcast","lg"],[n+s,n],["mac os x","mac"],["iphone|ipod|ipad","ios"],[f],[u],[a],[d],[l,p],["smart-tv;|;"+y+";smarttv",y],[m]),r.call(t,e,"device",[!0,"desktop"],[d+".+touch|ipad|"+a,v],[g+"|phone|("+a+s+")|("+n+s+")|"+d+" phone|iemobile",g],[f+"|"+u,"console"],["tv|smarttv|googletv|appletv|hbbtv|pov_tv|netcast.tv|webos.+large","tv"],[l,p],[v+"|amazon-fireos|nexus (?=[^1-6])\\d{1,2}",v],["aft[bsm]","firetv"],[m]),r.call(t,e,"webview",[!0,!1],["crosswalk"],["vigour-"+i,i],["cordova"],["ploy-native"]),t}(navigator.userAgent)||{};!function(e,t,r){var n=256,o="random",a=r.pow(n,6),i=r.pow(2,52),s=2*i,c=n-1;function u(e){var t,r=e.length,o=this,a=0,i=o.i=o.j=0,s=o.S=[];for(r||(e=[r++]);a<n;)s[a]=a++;for(a=0;a<n;a++)s[a]=s[i=c&i+e[a%r]+(t=s[a])],s[i]=t;(o.g=function(e){for(var t,r=0,a=o.i,i=o.j,s=o.S;e--;)t=s[a=c&a+1],r=r*n+s[c&(s[a]=s[i=c&i+t])+(s[i]=t)];return o.i=a,o.j=i,r})(n)}function f(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function l(e,t){for(var r,n=e+"",o=0;o<n.length;)t[c&o]=c&(r^=19*t[c&o])+n.charCodeAt(o++);return p(t)}function p(e){return String.fromCharCode.apply(0,e)}l(r.random(),t),r["seed"+o]=function(c,v,d){var g=[],m=l(function e(t,r){var n,o=[],a=typeof t;if(r&&"object"==a)for(n in t)try{o.push(e(t[n],r-1))}catch(e){}return o.length?o:"string"==a?t:t+"\0"}((v=1==v?{entropy:!0}:v||{}).entropy?[c,p(t)]:null==c?function(){try{var r;return r=new Uint8Array(n),(e.crypto||e.msCrypto).getRandomValues(r),p(r)}catch(r){var o=e.navigator,a=o&&o.plugins;return[+new Date,e,a,e.screen,p(t)]}}():c,3),g),h=new u(g),w=function(){for(var e=h.g(6),t=a,r=0;e<i;)e=(e+r)*n,t*=n,r=h.g(1);for(;e>=s;)e/=2,t/=2,r>>>=1;return(e+r)/t};return w.int32=function(){return 0|h.g(4)},w.quick=function(){return h.g(4)/4294967296},w.double=w,l(p(h.S),t),(v.pass||d||function(e,t,n,a){return a&&(a.S&&f(a,h),e.state=function(){return f(h,{})}),n?(r[o]=e,t):e})(w,m,"global"in v?v.global:this==r,v.state)}}("undefined"!=typeof self?self:this,[],Math);var t,r,n,o=1,a=!0,i=[],s=0,c=0,u=0,f=!1,l=!1,p=!1,v=null,d=["ready","first-frame","play-request","ad-impression","playlist-item","leave-page","jw-error","setup-error"],g={pr:0,lv:1,si:2,de:3,br:4,bv:5,os:6,ur:7,pi:8,pt:9,em:10,ca:11,ac:12,la:13,va:14,dt:15,ms:16,dl:17,pe:18,ps:19,vp:20},m="https://web.archive.org/web/20200314115822/https://perf.dugout.com/api/index.wsgi",h="https://web.archive.org/web/20200314115822/https://perf.dugout.com/api/index.wsgi",w=!0,y=!1;function x(){var e;if(!a&&i.length>0&&(0===n.readyState||4===n.readyState))if(e=i.pop(),w&&navigator.sendBeacon)try{navigator.sendBeacon(h,e)}catch(e){}else try{n.open("POST",m,!0),n.setRequestHeader("Content-Type","text/plain"),n.send(e)}catch(e){}}function b(){var e=new Math.seedrandom,t=(new Date).getTime(),r=performance&&performance.now&&1e3*performance.now()||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var o=16*e();return t>0?(o=(t+o)%16|0,t=Math.floor(t/16)):(o=(r+o)%16|0,r=Math.floor(r/16)),("x"===n?o:3&o|8).toString(16)}).replace(/-/g,"")}return{instance:function(){return new this},setup:function(i,s,c){if(!f){t=new Date,window.performance?Math.round(window.performance.timeOrigin):t.getTime(),o=isNaN(parseInt(c))?o:parseInt(c);var u=new Math.seedrandom;a=1!=Math.ceil(u()*o);var l=function(){try{return window.self!==window.top}catch(e){return!0}}()?document.referrer:window.location.href;l=function(e){return e=(e=e.replace(/(utm_.*?)(&|$)/gim,"")).replace(/(\?|&)*$/gim,"")}(l=function(e){return e=(e=e.replace(/(fbclid=.+?)($|&)/gim,"")).replace(/(\?|&)*$/gim,"")}(l)),r={pr:i,lv:"0.7.3",si:b(),ms:0,de:e.device&&"phone"===e.device?"mobile":"desktop",br:e.browser,bv:e.version,os:e.platform,ur:l},"object"==typeof s&&(r=Object.assign(r,s)),(n=new XMLHttpRequest).onreadystatechange=function(){4===n.readyState&&(n.status,x())},f=!0}},setPlayerId:function(e){r.pi=e},setPlayerType:function(e){r.pt=e},setPlayerSize:function(e){r.ps=e},setPlayerVerticalPos:function(e){r.vp=e},setEmbedVersion:function(e){r.em=e},logEvent:function(e,n,o,a){if(!y){if("first-frame"===n)y=!0;else if("load"===n){if(l)return;l=!0}else if("ready"===n)s++,p=!0;else{if("playlist-item"===n)return void(p?p=!1:s++);if("play-request"===n)return;if("lost-view"===n){if(++u>1)return}else if("in-view"===n&&++c>1)return}r.ac=n,r.la=o,r.pe=v?v.ac:null,d.indexOf(n)>-1?r.va=s:r.va="in-view"===n?c:"lost-view"===n?u:a;var f=new Date;r.dt=f.getTime();var m=window.performance?Math.round(performance.now()):f-t;r.dl=m-r.ms,r.ms=m,v=Object.assign({},r),i.push(function(e,t,r){var n=Object.keys(t),o=Array.apply(null,Array(n.length));return Object.keys(e).forEach(function(r){o[parseInt(t[r])]=e[r]}),o.join(r)}(r,g,"\t")),x()}}}};




 window.dugout_producers_config = {"aia":{"allow_ads":"no","allow_embeds":"no"},"fcporto":{"allow_embeds":"no"},"kia":{"allow_ads":"no","allow_embeds":"no"},"ol":{"disallowed":["lefigaro"],"blacklisted":["lefigaro.fr","sport24.lefigaro.fr"]},"pressbox":{"disallowed":["pressassociation","talksport","indy","theeveningstandard"]},"rpl":{"disallowed":["sportsru","rambler"],"blacklisted":["sports.ru","rambler.ru"]},"spfl":{"allow_embeds":"no"},"spurs":{"disallowed":["pressassociation","talksport"]}};



 window.dugout_partner_config = {'owner_user_type': 'embed', 'owner_nickname': 'lefigaro', 'owner_display_name': 'Le Figaro', 'player_id': '6qFFztDW', 'player_max_width': '100%', 'allow_float': 'no', 'allow_float_aop': 'no', 'allow_autoplay': 'viewable', 'allow_autoplay_aop': 'viewable', 'autoplay_in_mobile': 'yes', 'follow_up_playlist': 'related-same', 'allow_ads': 'no', 'domains': ['https://web.archive.org/web/20200314115822/http://www.lefigaro.fr/'], 'default_folder': 'France', 'player_id_aop': 'kDEmlA4n', 'allow_feeds': 'no', 'embed_type': 'iframe', 'ad_tag': '', 'allow_prebid_ads': 'no', 'debug_script': 'yes', 'ept_throttling': 'default', 'prebid_config': {'appnexus_id': 17828395, 'openx_id': 540948040}, 'mobile_autoplay': 'default'};

window.dugout_videos = window.dugout_videos || [];
window.dugout_producers_config = window.dugout_producers_config || [];

if (typeof window.dugout_style === "undefined") {
    var css = '.dugout-no-float{position:absolute;top:0;bottom:0;width:100%;height:100%;overflow:hidden;}.dugout-float{position:fixed;z-index:999;overflow:hidden;width:100%;height:230px;max-width:410px;max-height:230px;}.dugout-float-top-right{top:0;right:0;}.dugout-float-bottom-right{bottom:0;right:0;}.dugout-float .dgtclsbtn{width:30px;height:30px;position:absolute;top:0;right:0;margin:5px;}.dugout-no-float .dgtclsbtn{display:none}';

    window.dugout_style = document.createElement('style');
    var head = document.getElementsByTagName('head');
    head[0].appendChild(window.dugout_style);

    dugout_style.type = 'text/css';
    if (dugout_style.styleSheet) dugout_style.styleSheet.cssText = css;
    else dugout_style.appendChild(document.createTextNode(css));
}

if (typeof window.DugoutEmbed === "undefined") {

    window.DugoutEmbed = {

        debug: false,
        debug_msg: 'Dugout Embed',

        instance: 0,
        jwloop: 0,
        running_as_iframe: false,
        iframe_url: "https://web.archive.org/web/20200314115822/https://embed.dugout.com/v2/",
        rootDomain: '',
        mode: null,
        is_mobile: false,
        amp: false,
        show_ads: true,
        start_mode: null,
        mute_mode: null,

        partner_id: null,
        floating_player: false,

        use_cookies: false,
        ga: true,
        ga_event_tracking: false,

        query_string: false,

        prebid: false,
        prebid_lib: "//web.archive.org/web/20200314115822/https://embed.dugout.com/libs/prebid3.9.0-vz.js",
        prebid_wait: true,

        cmpFrame: null,
        cmpCallbacks: {},

        gdpr: 0,
        gdpr_consent: null,

        cmp: function(cmd, arg, callback) {
            if(!this.cmpFrame) {
                callback({msg:"CMP not found"}, false);
                return;
            }

            var callId = Math.random() + "";
            var msg = {__cmpCall: {
                command: cmd,
                parameter: arg,
                callId: callId
            }};

            this.cmpCallbacks[callId] = callback;
            this.cmpFrame.postMessage(msg, '*');
        },

        checkCMP: function() {

            console.log('Dugout: Checking CMP');

            var f=window;
            var loop = 0;
            while(!this.cmpFrame) {
                try {
                    if(f.frames["__cmpLocator"]) this.cmpFrame = f;
                } catch(e) {}
    
                if(f === window.top) break;
                f = window.parent;
                loop++;
                console.log('Dugout CMP Loop ', loop);
                if (loop>5) break;
            }

            if (this.cmpFrame) {
                console.log('Dugout: CMP found');
                window.addEventListener("message", (function(event) {
                    var json=null;
                    if (typeof event.data === "string") {
                        try {
                            json =  JSON.parse(event.data);
                        }
                        catch(e){}
                    }
                    json = event.data;

                    if(json && json.__cmpReturn) {
                        var i = json.__cmpReturn;
                        if (typeof this.cmpCallbacks[i.callId] === 'function') this.cmpCallbacks[i.callId](i.returnValue, i.success);
                        delete this.cmpCallbacks[i.callId];
                    }
                }).bind(this), false);
    
                this.cmp("getConsentData", 1, (function(val, success) {
                    console.log('-------------------');
                    console.log("DO-CMP: val=",val);
                    console.log('-------------------');
                    this.gdpr = (val.gdprApplies) ? 1 : 0;
                    this.gdpr_consent = val.consentData;
                }).bind(this));
                
            }
            else {
                console.log('Dugout: CMP not found');
            }

            this.init();
        },

        init: function() {

            this.instance++;

            if (!this.debug && typeof window.dugout_partner_config !== 'undefined' && typeof window.dugout_partner_config.debug_script !== 'undefined') {
                this.debug = (window.dugout_partner_config.debug_script == 'yes') ? true : false;
            }

            if (this.instance == 1) {
                // Only the first time we run init()
                if (typeof window.dugout_iframe !== 'undefined' && window.dugout_iframe == true) {
                    this.running_as_iframe = true;
                    this.debug_msg = "Dugout iFrame";
                }

                if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
                    this.is_mobile = true;
                }

                // Track in Google Analytics
                this.gaSetup();
                this.gaTrack([{
                    type: 'pageview'
                }]);

                // check URL parameters
                this.checkURLParameters();

                this.log('v3.1 start');

                // get the root domain
                if (window.location != window.parent.location) this.rootDomain = this.extractRootDomain(document.referrer);
                else this.rootDomain = this.extractRootDomain(document.location.href);
                this.log('Root domain: ', this.rootDomain);
            }

            // look for embeds in the page
            var previous_embeds = window.dugout_videos.length;
            this.checkScript();
            this.checkDivs();
            if (window.dugout_videos.length == 0) {
                this.log('No embed codes found');
                return false;
            } else if (window.dugout_videos.length == previous_embeds) {
                this.log('No new embeds to process');
                return false;
            } else {
                this.log(window.dugout_videos.length, ' embed codes found');
                this.log('Embed codes: ', window.dugout_videos);
            }

            // check for partner configuration
            if (this.instance == 1 && typeof window.dugout_partner_config === "undefined") {
                this.log('No partner configuration found. Loading configuration...');
                this.loadPartnerConfig();
            } else this.init2();

        },

        loadPartnerConfig: function() {
            var hash = JSON.parse(atob(window.dugout_videos[0].hash));

            if (hash && "p" in hash) {
                var http = new XMLHttpRequest();
                var pid = hash["p"].replace('.', '-');
                //console.log('Changed pid: ', pid);
                http.open('GET', "https://web.archive.org/web/20200314115822/https://embed.dugout.com/data/partners/" + pid + ".json", true);
                http.onload = (function(e) {
                    window.dugout_partner_config = JSON.parse(http.responseText);
                    if (!this.debug && typeof window.dugout_partner_config !== 'undefined' && typeof window.dugout_partner_config.debug_script !== 'undefined') {
                        this.debug = (window.dugout_partner_config.debug_script == 'yes') ? true : false;
                    }
                    this.log('Partner configuration loaded for ' + hash["p"] + ': ', window.dugout_partner_config);
                    this.init2();
                }).bind(this);
                http.send();
            } else this.log('No partner_id found');
        },

        init2: function() {

            this.log('Partner ID:', window.dugout_partner_config.owner_nickname);

            // prebid
            if (this.running_as_iframe) {
                this.prebid = (typeof window.dugout_partner_config.allow_prebid_ads && window.dugout_partner_config.allow_prebid_ads == 'yes') ? true : false;
                if (this.prebid) this.setupPrebid();
            }

            // load JWPlayer
            if (typeof window.jwplayer === 'undefined' && (this.running_as_iframe || (this.instance == 1 && window.dugout_partner_config.embed_type == 'inline'))) {
                this.log('JWPlayer not loaded, loading now...');
                var player_id =
                    (window.dugout_videos[0].mode == "EP") ?
                    window.dugout_partner_config.player_id :
                    (typeof window.dugout_partner_config.player_id_aop !== 'undefined' && window.dugout_partner_config.player_id_aop.length) ?
                    window.dugout_partner_config.player_id_aop : window.dugout_partner_config.player_id;

                var script = document.createElement('script');
                script.onload = (this.checkForJW).bind(this);
                script.src = "https://web.archive.org/web/20200314115822/https://cdn.jwplayer.com/libraries/" + player_id + ".js";
                document.head.appendChild(script);
            } else {
                if (window.dugout_partner_config.embed_type == 'inline') {
                    this.log('JWPlayer not loaded but required');
                    this.checkForJW();
                } else {
                    this.log('JWPlayer not needed');
                    this.createVideoPlayers();
                }
            }

        },

        checkScript: function() {
            var currentScript = document.currentScript || function() { for (var a = document.querySelectorAll("script[src]"), b = 0; b < a.length; b++) { var c = a[b]; if (-1 !== c.src.indexOf('dugout.com') && !c.getAttribute("data-loaded")) return c } return null }();
            var hash = currentScript.getAttribute('data-dugout-video');
            if (!hash) {
                // check for URL parameters
                if ("p" in this.query_string) hash = this.query_string["p"];
            }
            var start_mode = currentScript.getAttribute('data-video-start');
            if (start_mode && ['playinview','clicktoplay'].indexOf(start_mode)>-1) this.start_mode = start_mode;
            var mute_mode = currentScript.getAttribute('data-video-mute');
            if (mute_mode && ['true','false'].indexOf(mute_mode)>-1) this.mute_mode = mute_mode;
            console.log('************ PARAMS', start_mode, mute_mode);

            if (hash && hash.length) {
                var html_tag = '<div class="dugout-video dugout-embed-' + hash + '"></div>';
                var replace = currentScript.getAttribute('data-replace');
                if (replace && replace.length) {
                    var op = replace.substr(0,2);
                    var sel = replace.substr(2);
                    if (op==">>") document.querySelector(sel).insertAdjacentHTML('afterend', html_tag);
                    else if (op=="=>") document.querySelector(sel).insertAdjacentHTML('beforeend', html_tag);
                    else if (op=="<<") document.querySelector(sel).insertAdjacentHTML('beforebegin', html_tag);
                    else if (op=="<=") document.querySelector(sel).insertAdjacentHTML('afterbegin', html_tag);
                    else if (op=="!!") document.querySelector(sel).outerHTML = html_tag;
                    else if (op=="==") document.querySelector(sel).innerHTML = html_tag;
                    else document.querySelector(replace).innerHTML = html_tag;
                } 
                else currentScript.insertAdjacentHTML('afterend', html_tag);
            }

        },

        checkDivs: function() {
            var videos = document.querySelectorAll('div.dugout-video'); // select not initialized video tags
            for (var v = 0; v < videos.length; v++) {
                var hash = null;

                for (var i = 0; i < videos[v].classList.length; i++) {
                    if (videos[v].classList.item(i).indexOf('dugout-embed-') === 0) {
                        hash = videos[v].classList.item(i).substring(("dugout-embed-").length);
                    }
                }

                if (hash && hash.length) {
                    var hash_obj = JSON.parse(atob(hash));
                    if ("p" in hash_obj && hash_obj.p.length) {
                        if (!this.partner_id) this.partner_id = hash_obj.p;
                        if (hash_obj.p == this.partner_id) {
                            videos[v].setAttribute('id', 'placeholder_' + hash);
                            videos[v].setAttribute('style', 'position:relative;overflow:hidden;padding:56.25% 0 0 0;height:0;');
                            window.dugout_videos.push(new DugoutPlayer(window.dugout_videos.length, hash));
                        } else {
                            this.log("Trying to embed a second publisher player", hash_obj);
                        }
                    }
                    videos[v].removeAttribute('class');
                }
            }
        },

        checkForJW: function() {
            this.log('Is JWPlayer available? ', (typeof window.jwplayer === 'undefined') ? 'no' : 'yes', this.jwloop);

            if (this.jwloop > 25) {
                this.log('Could not load JWPlayer. Aborting.');
                return;
            }

            if (typeof jwplayer === 'undefined') {
                this.jwloop++;
                setTimeout((this.checkForJW).bind(this), 100); // wait to jwplayer to be available
                return;
            }

            this.createVideoPlayers();
        },

        createVideoPlayers: function() {

            this.log('Creating video players...');

            for (var i = 0; i < window.dugout_videos.length; i++) {
                window.dugout_videos[i].run();
            }

        },

        getPlaylistURL: function(playlist_id, related_video) {

            var url = 'https://web.archive.org/web/20200314115822/https://cdn.jwplayer.com/v2/playlists/';
            var params = [];

            if (playlist_id == 'none') return '';
            
            else if (playlist_id == 'latest') playlist_id='W5FWgUmX';

            else if (playlist_id == 'related-any' || playlist_id == 'related-same') {
                if (related_video) {
                    var tags = [];
                    params.push('related_media_id=' + related_video.mediaid);
                    if (playlist_id=='related-same') tags.push('cl-'+related_video.owner_nickname);
                    var language_tag = window.DugoutEmbed.getVideoLanguageTag(related_video.language);
                    if (language_tag) tags.push(language_tag);
                    if (tags.length) {
                        params.push('tags=' + tags.join(','));
                        params.push('tags_mode=ALL');
                    }
                    playlist_id = 'W9NAzRM1'; // related videos playlist
                } else {
                    playlist_id = 'W5FWgUmX'; // if we don't have a related video, let's return the latest videos
                }
            }

            url += playlist_id;
            if (params.length) url += '?' + params.join('&');

            return url;
        },

        getVideoLanguageTag: function(language) {
            var tags = {
                en: "ln-en-english",
                es: "ln-es-spanish",
                pt: "ln-pt-portuguese",
                ar: "ln-ar-arabic",
                tk: "ln-tk-turkish",
                vi: "ln-vi-vietnamese",
                fr: "ln-fr-french",
                id: "ln-id-indonesian",
                it: "ln-it-italian"
            };
            if (language in tags) return tags[language];

            return false;
        },

        // URL helpers

        // this function just parses the URL parameters and returns an array for easier access
        parse_query_string: function(query) {
            var vars = query.split("&");
            var query_string = {};
            for (var i = 0; i < vars.length; i++) {
                var pair = vars[i].split("=");
                var key = decodeURIComponent(pair[0]);
                var value = decodeURIComponent(pair[1]);
                // If first entry with this name
                if (typeof query_string[key] === "undefined") {
                    query_string[key] = decodeURIComponent(value);
                    // If second entry with this name
                } else if (typeof query_string[key] === "string") {
                    var arr = [query_string[key], decodeURIComponent(value)];
                    query_string[key] = arr;
                    // If third or later entry with this name
                } else {
                    query_string[key].push(decodeURIComponent(value));
                }
            }
            return query_string;
        },

        extractHostname: function(url) {
            var hostname;
            //find & remove protocol (http, ftp, etc.) and get hostname

            if (url.indexOf("//") > -1) {
                hostname = url.split('/')[2];
            } else {
                hostname = url.split('/')[0];
            }

            //find & remove port number
            hostname = hostname.split(':')[0];
            //find & remove "?"
            hostname = hostname.split('?')[0];

            return hostname;
        },

        // To address those who want the "root domain," use this function:
        extractRootDomain: function(url) {
            var domain = this.extractHostname(url),
                splitArr = domain.split('.'),
                arrLen = splitArr.length;

            //extracting the root domain here
            //if there is a subdomain
            if (arrLen > 2) {
                domain = splitArr[arrLen - 2] + '.' + splitArr[arrLen - 1];
                //check to see if it's using a Country Code Top Level Domain (ccTLD) (i.e. ".me.uk")
                if (splitArr[arrLen - 2].length == 2 && splitArr[arrLen - 1].length == 2) {
                    //this is using a ccTLD
                    domain = splitArr[arrLen - 3] + '.' + domain;
                }
            }
            return domain;
        },

        // this function just parses the URL parameters and returns an array for easier access
        checkURLParameters: function() {
            var query = window.location.search.substring(1);
            var vars = query.split("&");
            var query_string = {};
            for (var i = 0; i < vars.length; i++) {
                var pair = vars[i].split("=");
                var key = decodeURIComponent(pair[0]);
                var value = decodeURIComponent(pair[1]);
                // If first entry with this name
                if (typeof query_string[key] === "undefined") {
                    query_string[key] = decodeURIComponent(value);
                    // If second entry with this name
                } else if (typeof query_string[key] === "string") {
                    var arr = [query_string[key], decodeURIComponent(value)];
                    query_string[key] = arr;
                    // If third or later entry with this name
                } else {
                    query_string[key].push(decodeURIComponent(value));
                }
            }

            this.query_string = query_string;
            this.log('Query string: ', this.query_string);

            if ("show_ads" in this.query_string && this.query_string.show_ads=='no') this.show_ads = false;
            if ("video_start" in this.query_string && ['playinview','clicktoplay'].indexOf(this.query_string.video_start)>-1) this.start_mode = this.query_string.video_start;
            if ("video_mute" in this.query_string && ['true','false'].indexOf(this.query_string.video_mute)>-1) this.mute_mode = this.query_string.video_mute;
            if ("dugout_debug" in this.query_string) this.debug = true;
            if (this.debug) this.log('Debug Mode ON');

            if ("amp" in this.query_string) {
                this.log('AMP in the query string');
                this.amp = true;
                this.loadAMP();
            }
        },

        // Load AMP library
        loadAMP: function() {
            var script = document.createElement('script');
            script.onload = (function() { this.log("AMP library loaded"); }).bind(this);
            script.src = "https://web.archive.org/web/20200314115822/https://cdn.ampproject.org/video-iframe-integration-v0.js";
            document.head.appendChild(script);
        },

        // Manage cookies
        setCookie: function(cname, cvalue, exdays) {
            var d = new Date();
            d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));
            var expires = "expires=" + d.toUTCString();
            document.cookie = cname + "=" + cvalue + ";" + expires + "; Samesite=none; Secure";
        },

        getCookie: function(cname) {
            var name = cname + "=";
            var ca = document.cookie.split(';');
            for (var i = 0; i < ca.length; i++) {
                var c = ca[i];
                while (c.charAt(0) == ' ') {
                    c = c.substring(1);
                }
                if (c.indexOf(name) == 0) {
                    return c.substring(name.length, c.length);
                }
            }
            return "";
        },

        // Google Analytics

        gaSetup: function() {
            if (this.ga) {
                // Analytics setup
                if (this.use_cookies) {
                    this.viewer_id = this.getCookie('dugout_uid');
                    if (this.viewer_id == '') {
                        this.viewer_id = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
                            var r = Math.random() * 16 | 0,
                                v = c == 'x' ? r : (r & 0x3 | 0x8);
                            return v.toString(16);
                        });
                        this.setCookie('dugout_uid', this.viewer_id, 730);
                    }
                } else {
                    this.viewer_id = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
                        var r = Math.random() * 16 | 0,
                            v = c == 'x' ? r : (r & 0x3 | 0x8);
                        return v.toString(16);
                    });
                }
            }
        },

        gaTrack: function(hits) {
            if (this.ga) {
                var ga_property = "UA-80588940-15"; // -21
                var ga_url = "https://web.archive.org/web/20200314115822/https://www.google-analytics.com/batch";
                var params = '';

                for (var i = 0; i < hits.length; i++) {
                    params += 'v=1&tid=' + ga_property + '&cid=' + this.viewer_id + '&t=' + hits[i].type;
                    params += '&dl=' + encodeURI(document.location.href);
                    params += '&dt=' + encodeURI(document.title);
                    params += '&vp=' + document.documentElement.clientWidth + 'x' + document.documentElement.clientHeight;

                    if (hits[i].type == 'event') {
                        if ('ec' in hits[i]) params += '&ec=' + encodeURI(hits[i].ec);
                        if ('ea' in hits[i]) params += '&ea=' + encodeURI(hits[i].ea);
                        if ('el' in hits[i]) params += '&el=' + encodeURI(hits[i].el);
                    }
                    params += '\n';
                }
                params += '&z=' + Math.random();

                var http = new XMLHttpRequest();
                http.open('POST', ga_url, true);
                http.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
                http.send(params);
            }
        },

        log: function() {
            if (this.debug) {
                var args = Array.prototype.slice.call(arguments);
                if (typeof this.ordinal !== 'undefined') args.unshift("Player #" + this.ordinal + ": ");
                if (typeof this.instance !== 'undefined') args.unshift("Instance #" + this.instance + ": ");
                args.unshift(this.debug_msg + ": ");
                console.log.apply(console, args);
            }
        },


        // Prebid
        setupPrebid: function() {
            this.log("Setting up prebid...");

            var script = document.createElement('script');
            script.onload = (function() { this.log("Prebid library loaded"); }).bind(this);
            script.src = this.prebid_lib;
            document.head.appendChild(script);

            window.pbjs = window.pbjs || {};
            window.pbjs.que = window.pbjs.que || [];

            window.PREBID_TIMEOUT = 700;

            window.prebid_adunit = {
                code: 'dugout_player',
                mediaTypes: {
                    video: {
                        context: 'instream',
                        playerSize: [
                            [640, 480]
                        ]
                    },
                },
                bids: [{
                    bidder: 'oneVideo',
                    params: {
                        video: {
                            playerWidth: 640,
                            playerHeight: 480,
                            mimes: ['video/mp4', 'application/javascript'],
                            protocols: [2, 5],
                            api: [1,2],
                            delivery: [2],
                            playbackmethod: [2,6], // [6]
                            placement: 1,
                            inventoryid: (this.cmpFrame) ? 1253348 : 1260301, // 1253348
                            //bidfloor: 0.4
                        },
                        pubId: "Dugout"
                    }
                }]
            };

            window.pbjs.que.push(function() {
                window.pbjs.addAdUnits(window.prebid_adunit); // add your ad units to the bid request
                window.pbjs.setConfig({
                    consentManagement: {
                        gdpr: {
                            cmpApi: 'iab',
                            timeout: 4000,
                            allowAuctionWithoutConsent: true
                        }
                    },
                    cache: {
                        url: 'https://web.archive.org/web/20200314115822/https://prebid.adnxs.com/pbc/v1/cache'
                    },
                    debug: window.DugoutEmbed.debug
                });
            });
        }

    };

    // DUGOUT PLAYER OBJECT
    window.DugoutPlayer = function(ordinal, hash) {

        this.debug = window.DugoutEmbed.debug;
        this.debug_msg = window.DugoutEmbed.debug_msg;
        this.log = window.DugoutEmbed.log;

        this.player_defaults = null;

        this.status = 0;
        this.new_video = false;
        this.float = false;
        this.visible = false;
        this.jw_viewable = false;
        this.playlist = null;
        this.playlist_pos = 0;
        this.current_video_id = null;

        this.wait_loops = 0;

        this.ordinal = ordinal;
        this.hash = hash;
        this.el = document.getElementById('placeholder_' + hash);
        if (!this.el) {
            this.log('Dugout Player: Element not found: ' + hash);
            return;
        }

        // set player config
        this.player_config = JSON.parse(atob(hash));
        console.log('------------- Initialising video player', this.player_config);

        // set the player mode (EP or AOP)
        if ("pl" in this.player_config && this.player_config.pl.length) this.mode = "AOP"; // AOP
        if ("key" in this.player_config && this.player_config.key.length) this.mode = "EP"; // EP

        // EPT
        this.tracking = true;
        this.das_tracking = (typeof DugoutAS !== 'undefined');
        this.das = null;

        // RUN ----------------------------------------------
        this.run = function() {

            if (this.status == 0) {
                this.status = 1; // don't run this function again
                this.debug = window.DugoutEmbed.debug; // update debug value

                this.log('Setup');

                // Run the function immediatelly
                if (window.DugoutEmbed.prebid) this.requestPrebidVideoAd();

                // use the proper default settings
                if (this.mode == "EP") this.player_defaults = (typeof window.dugout_ep_settings !== "undefined") ? window.dugout_ep_settings : window.jwDefaults;
                else if (this.mode == "AOP") this.player_defaults = (typeof window.dugout_aop_settings !== "undefined") ? window.dugout_aop_settings : window.jwDefaults;

                // set the embed type for this particular video (iframe or inline)
                var innerHTML;
                if (window.DugoutEmbed.running_as_iframe || (window.dugout_partner_config.embed_type == 'inline' && this.mode == "EP")) {
                    this.log(this.mode + ' running as an inline player');
                    this.embed_type = 'inline';
                    innerHTML = '<div style="position:absolute;top:0;bottom:0;width:100%;height:100%;"><div id="' + hash + '">';
                    innerHTML += '</div></div>';
                    this.el.innerHTML = innerHTML;
                } else {
                    this.log(this.mode + ' running as an iframe');
                    this.embed_type = 'iframe';
                    innerHTML = '<div id="' + this.hash + '" class="dugout-no-float"><div style="position:relative;height:100%;">';
                    var iframe_url = window.DugoutEmbed.iframe_url + "?p=" + hash;
                    if (this.debug) iframe_url += '&dugout_debug=1';
                    if (window.DugoutEmbed.start_mode) iframe_url += '&video_start='+window.DugoutEmbed.start_mode;
                    if (window.DugoutEmbed.mute_mode) iframe_url += '&video_mute='+window.DugoutEmbed.mute_mode;
                    innerHTML += '<iframe allow="autoplay; fullscreen" src="' + iframe_url + '" width="100%" height="100%" frameborder="0" scrolling="no" allowfullscreen></iframe>';
                    innerHTML += '<div class="dgtclsbtn"><svg xmlns="http://www.w3.org/2000/svg"><circle class="circle" cx="15" cy="15" r="13" opacity=".3" stroke="#FFF" stroke-width="2.5" stroke-linecap="round" stroke-miterlimit="10" fill="black"></circle><line x1="10" y1="10" x2="20" y2="20" stroke="#fff" stroke-width="2.5" stroke-linecap="round" stroke-miterlimit="10"></line><line x1="20" y1="10" x2="10" y2="20" stroke="#fff" stroke-width="2.5" stroke-linecap="round" stroke-miterlimit="10"></line></svg></div>';
                    innerHTML += '</div></div>';
                    this.el.innerHTML = innerHTML;
                    this.el.firstChild.firstChild.childNodes[1].addEventListener('click', (this.onCloseFloat).bind(this));
                }

                // set the floating status
                if (this.embed_type == 'iframe') {
                    if (!window.DugoutEmbed.floating_player) {
                        if (this.mode == "EP" && ("allow_float" in window.dugout_partner_config)) {
                            if (window.DugoutEmbed.is_mobile && window.dugout_partner_config.allow_float == 'mobile') {
                                this.float = true;
                            } else if (!window.DugoutEmbed.is_mobile && window.dugout_partner_config.allow_float == 'desktop') {
                                this.float = true;
                            } else if (window.dugout_partner_config.allow_float == 'always') {
                                this.float = true;
                            }

                        }
                        if (this.mode == "AOP" && ("allow_float_aop" in window.dugout_partner_config)) {
                            if (window.DugoutEmbed.is_mobile && window.dugout_partner_config.allow_float_aop == 'mobile') {
                                this.float = true;
                            } else if (!window.DugoutEmbed.is_mobile && window.dugout_partner_config.allow_float_aop == 'desktop') {
                                this.float = true;
                            } else if (window.dugout_partner_config.allow_float_aop == 'always') {
                                this.float = true;
                            }

                        }

                        if (this.float) {
                            window.DugoutEmbed.floating_player = true; // just one floating player per page
                            this.log('Dugout Player #' + this.ordinal + ': Required to float');
                            window.addEventListener('scroll', (this.onScroll).bind(this));
                        }
                    }

                } else if (this.embed_type == 'inline') {

                    // check for a valid playlist
                    var playlist_url;
                    if ('key' in this.player_config && this.player_config.key.length) {
                        playlist_url = 'https://web.archive.org/web/20200314115822/https://cdn.jwplayer.com/v2/media/' + this.player_config.key;
                    } else if ('pl' in this.player_config && this.player_config.pl.length) {
                        playlist_url = window.DugoutEmbed.getPlaylistURL(this.player_config.pl, null);
                    } else {
                        this.log('Dugout Player #' + this.ordinal + ': No video to play: ', this.player_config);
                        return;
                    }

                    // initialise JWPlayer object
                    this.jwplayer = jwplayer(this.hash);
                    this.jwplayer.dugout = this;

                    // Performance tracking
                    if (this.das_tracking) {
                        this.das = new DugoutAS;
                        this.das.setup(this.player_config.p);
                        this.das.setEmbedVersion((typeof window.dugout_iframe === "undefined") ? '3.1' : '3.1i');
                        if (typeof jwDefaults !== 'undefined') this.das.setPlayerId(jwDefaults.pid);
                        this.das.setPlayerType(this.mode);
                        this.das.logEvent("player", "load");

                        this.log("EPT enabled");
                    } else this.log("EPT disabled");

                    this.loadPlaylist(playlist_url);
                }

                // receive external events
                window.addEventListener("message", (function(event) {
                    if (event.data && typeof event.data==='string' && event.data.substring(0,9)=='dugout://') {
                        var data = JSON.parse(event.data.substring(9));
                        this.log('Action received:', data);
                        if (!"id" in data) return;
                        if (data.id=='play') this.jwplayer.play();
                        else if (data.id=='pause') this.jwplayer.pause();
                        else if (data.id=='new_video') {
                            var playlist_url;
                            this.player_config = JSON.parse(atob(data.hash));
                            if ("pl" in this.player_config && this.player_config.pl.length) {
                                this.mode = "AOP"; // AOP
                                playlist_url = window.DugoutEmbed.getPlaylistURL(this.player_config.pl, null);
                            }
                            if ("key" in this.player_config && this.player_config.key.length) {
                                this.mode = "EP"; // EP
                                playlist_url = 'https://web.archive.org/web/20200314115822/https://cdn.jwplayer.com/v2/media/' + this.player_config.key;
                            }
                            this.loadPlaylist(playlist_url);
                        }
                        else if (data.id=='mute') this.jwplayer.setMute(true);
                        else if (data.id=='unmute') { this.jwplayer.setMute(false); this.jwplayer.setVolume(50); }
                    }
                }).bind(this), false);

                this.sendMessage({
                    "id": "playerReady",
                    "publisher_id": window.dugout_partner_config.owner_nickname,
                    "publisher_name": window.dugout_partner_config.owner_display_name
                });
            }
        };

        this.loadPlaylist = function(url) {
            var http = new XMLHttpRequest();
            http.open('GET', url, true);
            http.onload = (function(e) {
                this.playlist = JSON.parse(http.responseText);
                this.log("Playlist loaded with " + this.playlist.playlist.length + " elements", this.playlist);
                this.playPlaylist();
            }).bind(this);
            http.send();
        }

        this.playPlaylist = function() {
            if (!this.playlist || !("playlist" in this.playlist) || !this.playlist.playlist.length) {
                this.log("Playlist is empty or not valid: ", this.playlist);
                return;
            }

            // filter the playlist
            var new_playlist = [];
            for (i in this.playlist.playlist) {
                //this.log(i + ") " + this.playlist.playlist[i].title, this.playlist.playlist[i].owner_nickname);
                if (this.isVideoAllowed(this.playlist.playlist[i])) new_playlist.push(this.playlist.playlist[i]);
            }

            if (this.playlist.playlist.length > new_playlist.length) {
                this.log("Playlist was reduced by " + (this.playlist.playlist.length - new_playlist.length) + " elements");
                this.playlist.playlist = new_playlist;
            }

            if (this.playlist.playlist.length == 0) {
                this.log("Playlist was reduced and now is empty");
                return;
            }

            this.playlist_pos = 0;
            this.playVideo();
        }

        this.playVideo = function() {

            if (window.DugoutEmbed.prebid_wait && !this.prebid_bids && this.wait_loops<20) {
                this.wait_loops++;
                setTimeout((this.playVideo).bind(this), 100);
                return;
            }

            if (window.DugoutEmbed.gdpr && !window.DugoutEmbed.gdpr_consent && this.wait_loops<20) {
                this.wait_loops++;
                setTimeout((this.playVideo).bind(this), 100);
                return;
            }

            this.log("playVideo() conditions met?", (this.wait_loops<20) ? 'YES' : 'NO');
            this.log("Prebid:", window.DugoutEmbed.prebid_wait, this.prebid_bids, this.wait_loops);
            this.log("GDPR:", window.DugoutEmbed.gdpr, window.DugoutEmbed.gdpr_consent);
            
            this.log("Playing video #" + this.playlist_pos);

            this.wait_loops=0;

            var tmp_playlist = JSON.parse(JSON.stringify(this.playlist));
            tmp_playlist.playlist = [this.playlist.playlist[this.playlist_pos]];

            var config = JSON.parse(JSON.stringify(this.player_defaults));

            if ("advertising" in config) {
                config.advertising.schedule = this.buildAdTag(this.playlist.playlist[this.playlist_pos]);
            }

            if (window.DugoutEmbed.is_mobile && 
                "mobile_autoplay" in dugout_partner_config && 
                dugout_partner_config.mobile_autoplay=="click") config.autostart=false;

            if (window.DugoutEmbed.start_mode) {
                switch (window.DugoutEmbed.start_mode) {
                    case 'clicktoplay': config.autostart = false; break;
                    case 'playinview': config.autostart = "viewable"; break;
                }
            }
            if (window.DugoutEmbed.mute_mode) {
                config.mute = (window.DugoutEmbed.mute_mode=='true');
            }

            config.playlist = tmp_playlist;

            // setup the player
            this.log("Player setup config", config);
            this.jwplayer.setup(config);
            this.jwplayer.on('ready', this.onReady);
            this.jwplayer.on('viewable', this.onViewable);
            this.jwplayer.on('adImpression', this.onAdImpression);
            this.jwplayer.on('firstFrame', this.onFirstFrame);
            this.jwplayer.on('playlistItem', this.onPlaylistItem);
            this.jwplayer.on('beforePlay', this.onBeforePlay);
            this.jwplayer.on('playlistComplete', this.onPlaylistComplete);

            this.jwplayer.on('setupError', function(error) { this.dugout.track('setup-error', error.code); });
            this.jwplayer.on('error', function(error) { this.dugout.track('jw-error', error.code); });
            this.jwplayer.on('adError', function(error) { this.dugout.track('ad-error', error.code); });

            this.jwplayer.on('play', function(event) {
                this.dugout.sendMessage({
                    "id": "playStart",
                    "viewable": event.viewable
                });
            });

            this.jwplayer.on('pause', function(event) {
                this.dugout.sendMessage({
                    "id": "playPause",
                    "viewable": event.viewable
                });
            });

            this.jwplayer.on('complete', function() {
                this.dugout.sendMessage({
                    "id": "playComplete",
                });
            });

            if (window.DugoutEmbed.amp) {
                (window.AmpVideoIframe = window.AmpVideoIframe || []).push(
                    (function(ampIntegration) {
                        this.log("AmpIntegrationReady!", this.jwplayer, ampIntegration);
                        ampIntegration.listenTo('jwplayer', this.jwplayer);
                    }).bind(this)
                );
            }
        }

        this.onReady = function() {
            if (this.dugout.tracking && this.dugout.das_tracking) {
                var p = document.getElementById(this.dugout.hash);
                this.dugout.playerWidth = p.clientWidth;
                this.dugout.das.setPlayerSize(p.clientWidth + 'x' + p.clientHeight);
            }
            this.dugout.track('ready', this.dugout.current_video_id, this.dugout.playlist_pos);
        }

        this.onViewable = function(player) {
            if (!this.dugout.jw_viewable && player.viewable) {
                this.dugout.jw_viewable = 1;
                this.dugout.track('in-view', this.dugout.current_video_id);
            }
            if (this.dugout.jw_viewable == 1 && !player.viewable) {
                this.dugout.jw_viewable = 2;
                this.dugout.track('lost-view', this.dugout.current_video_id);
            }
        };

        this.onAdImpression = function(event) {
            this.dugout.track('ad-impression', this.dugout.current_video_id, this.dugout.playlist_pos);
            if (typeof moatjw !== 'undefined') {
                // record moat event
                /*moatjw.add({
                    partnerCode: "dugoutimavideo825101166218",
                    player: this,
                    zMoatpublisherid: window.dugout_partner_config.owner_nickname, // publisher_id
                    zMoatplayertype: this.dugout.mode, // EP | AOP
                    zMoattest: this.dugout.playerWidth, //player width
                    adImpressionEvent: event
                });*/
            }
            this.dugout.sendMessage({
                "id": "adImpression",
                "adTag": event.tag
            });
        }

        this.onFirstFrame = function(event) {
            this.dugout.track('first-frame', this.dugout.current_video_id, this.dugout.playlist_pos);
            this.dugout.tracking = false;
            this.dugout.sendMessage({
                "id": "newVideo",
                "event": event.viewable,
                "video": {
                    "id": this.dugout.current_video_id,
                    "title": this.getPlaylistItem(this.dugout.playlist_pos).title,
                    "duration": this.getPlaylistItem(this.dugout.playlist_pos).duration,
                }
            });
        };

        this.buildAdTag = function(video) {
            var new_adschedule = null;

            if (!window.DugoutEmbed.show_ads) return null;

            if (this.player_defaults && "advertising" in this.player_defaults) {
                // the player has an adschedule attached and it has schedules
                this.log('Base Ad Schedule: ', this.player_defaults.advertising);

                var producer = video.owner_nickname; // the club nickname

                // set defaults
                video.allow_ads = video.allow_ads || 'yes';
                window.dugout_partner_config.allow_ads = window.dugout_partner_config.allow_ads || 'yes';

                // check if we allow ads for this video
                var allow_ads = true;
                if (video.allow_ads == 'no') allow_ads = false;
                if ((producer in window.dugout_producers_config) && ('allow_ads' in window.dugout_producers_config[producer]) && window.dugout_producers_config[producer].allow_ads == 'no') allow_ads = false;

                if (!allow_ads) {
                    this.log('Ads not allowed');
                    return null;
                }

                // video tags
                var tags = video.tags.split(",");

                try {
                    new_adschedule = JSON.parse(JSON.stringify(this.player_defaults.advertising.schedule));
                }
                catch(e) {
                    this.log('Error in the advertising schedule', this.player_defaults.advertising.schedule);
                    return '';
                }

                // now replace the macro variables
                for (i = 0; i < new_adschedule.length; i++) {

                    var custparams = [];
                    for (j in tags) {
                        if (tags[j].indexOf('ln-') === 0) custparams.push(('ln%3D' + tags[j]));
                        if (tags[j].indexOf('bx-') === 0) custparams.push(('bx%3D' + tags[j]));
                        if (tags[j].indexOf('cp-') === 0) custparams.push(('cp%3D' + tags[j]));
                        //if (tags[j].indexOf('cl-') === 0) custparams.push(('cl%3D' + tags[j]));
                        if (tags[j].indexOf('pl-') === 0) custparams.push(('pl%3D' + tags[j]));
                    }

                    this.log('Custom params:', custparams.join('%26'));

                    var adtag = new_adschedule[i].tag;
                    var was_adtag_array = true;
                    if (!Array.isArray(adtag)) {
                        // IMA
                        adtag = [adtag];
                        was_adtag_array = false;
                    }

                    var new_tag = '';
                    for (j in adtag) {
                        if ("ad_tag" in window.dugout_partner_config && window.dugout_partner_config.ad_tag.length) {
                            if (window.dugout_partner_config.ad_tag.substring(0, 2) == "@@") {
                                this.log('@@ in the ad_tag: ', window.dugout_partner_config.ad_tag);
                                var eval_string = "adtag[j]=" + window.dugout_partner_config.ad_tag.substring(2);
                                this.log('eval: ', eval_string);
                                eval(eval_string);
                                this.log('Resulting ad tag: ', adtag[j]);
                            } else adtag[j] = window.dugout_partner_config.ad_tag;
                        }

                        new_tag = adtag[j].replace("__embed_partner__", window.dugout_partner_config.owner_nickname)
                            .replace("__embed_partner__", window.dugout_partner_config.owner_nickname)
                            .replace("__producer_partner__", producer)
                            .replace("__allow_ads__", allow_ads ? "yes" : "no")
                            .replace("__content_tags__", custparams.join('%26'))
                            .replace("__rounded_duration__", Math.round(video.duration))
                            .replace("__bild_device__", (window.DugoutEmbed.is_mobile) ? "mew" : "desktop");

                        if (window.DugoutEmbed.gdpr_consent) new_tag = new_tag.replace("__gdpr_consent__", window.DugoutEmbed.gdpr_consent);

                        new_adschedule[i].tag[j] = new_tag;
                    }

                    if (window.DugoutEmbed.prebid) {
                        if (this.prebid_bids==2) { // 1: auction with no bids; 2: auction with bids
                            // we have bids available
                            this.log("buildAdTag(): Adtag before prebid: ", adtag);
                            var prebid_adtag = window.pbjs.adServers.dfp.buildVideoUrl({
                                adUnit: window.prebid_adunit,
                                url: new_tag,
                            });
                            if (prebid_adtag.length) new_tag = prebid_adtag;
                            this.log("buildAdTag(): Prebid adtag: ", prebid_adtag);
                        } else {
                            // we don't have bids
                            this.log('buildAdTag(): No bids available from Prebid');
                        }
                        this.requestPrebidVideoAd();
                    }

                    this.log('Ad tag: ', new_tag, new_adschedule);

                    if (!was_adtag_array) {
                        new_adschedule[i].tag = new_tag;
                    }
                }
            } else {
                this.log('No adschedule detected.');

            }

            return new_adschedule;
        };

        // ONPLAYLISTITEM ----------------------------------------------
        this.onPlaylistItem = function(video) {

            this.dugout.current_video_id = video.item.mediaid;
            this.dugout.new_video = true;

            this.dugout.track('playlist-item', this.dugout.current_video_id, this.dugout.playlist_pos);
            this.dugout.log('Playing video #' + this.dugout.playlist_pos + ': ', video.item.owner_nickname, video.item.title);
            this.dugout.log('Video metadata: ', video);
        };

        this.isVideoAllowed = function(video) {
            var allow_embeds = true;
            var producer = video.owner_nickname;

            if (typeof window.dugout_producers_config === 'undefined') return true;

            if ("allow_embed" in video && video.allow_embed == "no") allow_embeds = false;
            else {
                // if the producer/club has an entry in the clubs settings
                if (producer in window.dugout_producers_config) {
                    // check if producer/club allows embeds
                    if ('allow_embeds' in window.dugout_producers_config[producer] &&
                        window.dugout_producers_config[producer].allow_embeds == 'no') {
                        allow_embeds = false;
                        //this.log(producer + " doesn't allow embeds. Video removed from the playlist");
                    }

                    // check disallowed publishers for this producer/club
                    if ('disallowed' in window.dugout_producers_config[producer]) {
                        for (publisher in window.dugout_producers_config[producer].disallowed) {
                            if (window.dugout_producers_config[producer].disallowed[publisher] == window.dugout_partner_config.owner_nickname) {
                                allow_embeds = false;
                                //this.log(producer + " doesn't allow " + window.dugout_partner_config.owner_nickname + " to play its videos. Video removed from the playlist");
                            }
                        }
                    }

                    // check blacklisted publishers for this producer/club
                    if ('blacklisted' in window.dugout_producers_config[producer]) {
                        for (domain in window.dugout_producers_config[producer].blacklisted) {
                            if (window.dugout_producers_config[producer].blacklisted[domain] == window.DugoutEmbed.rootDomain) {
                                allow_embeds = false;
                                //this.log(producer + " doesn't allow " + window.DugoutEmbed.rootDomain + " to embed its videos. Video removed from the playlist");
                            }
                        }
                    }
                }
            }

            return (allow_embeds);
        };

        this.onPlaylistComplete = function() {
            // This function runs in JWPlayer's context
            this.dugout.playlist_pos++;
            this.dugout.log('Playlist complete. Moving to next video.');
            if (this.dugout.playlist_pos < this.dugout.playlist.playlist.length) {
                this.dugout.playVideo();
            } else {
                // We need more videos
                if (typeof window.dugout_partner_config.follow_up_playlist !== "undefined" && window.dugout_partner_config.follow_up_playlist.length) {
                    var playlist_url = window.DugoutEmbed.getPlaylistURL(window.dugout_partner_config.follow_up_playlist, this.dugout.playlist.playlist[this.dugout.playlist_pos - 1]);
                    this.dugout.log("Loading new playlist: ", window.dugout_partner_config.follow_up_playlist, playlist_url);
                    if (playlist_url.length) this.dugout.loadPlaylist(playlist_url);
                    else this.dugout.log("Playlist URL not valid. EOL.");
                } else {
                    this.dugout.log("No more videos to show. EOL.")
                }
            }
        };

        // FLOATING FUNCTIONS --------------------
        this.onScroll = function() {
            if (this.float) {
                var now_visible = this.isInViewport(this.el);
                if (now_visible != this.visible) {
                    if (!now_visible) this.el.firstChild.className = 'dugout-float dugout-float-bottom-right';
                    else this.el.firstChild.className = 'dugout-no-float';
                    this.visible = now_visible;
                }
            }
        };

        this.onCloseFloat = function() {
            this.log('Close floating player');
            this.el.firstChild.className = 'dugout-no-float';
            this.float = false;
        };

        this.isInViewport = function(el) {
            if (!el) return false;
            var bounding = el.getBoundingClientRect();
            var y_limit = (bounding.bottom - bounding.top) / 2;
            return (
                bounding.top >= -y_limit &&
                bounding.left >= 0 &&
                bounding.bottom <= (window.innerHeight || document.documentElement.clientHeight) &&
                bounding.right <= (window.innerWidth || document.documentElement.clientWidth)
            );
        };

        // PREBID FUNCTION ----------------------
        this.requestPrebidVideoAd = function() {
            if (window.DugoutEmbed.prebid) {
                
                this.log('requestPrebidVideoAd(): ', 'Requesting bids...');
                this.prebid_bids = false;
                window.pbjs.que.push((function() {
                    window.pbjs.requestBids({
                        bidsBackHandler: (function(bids) {
                            this.log('requestPrebidVideoAd(): Returned bids', bids);
                            if (typeof bids !== 'undefined' && "dugout_player" in bids) this.prebid_bids = 2;
                            else this.prebid_bids = 1;
                        }).bind(this)
                    });
                }).bind(this));
            }
        };

        // TRACKING FUNCTION -----------------------
        this.track = function(label, extra, value, error) {

            if (typeof extra === "undefined") extra = "";
            if (typeof value === "undefined") value = null;
            if (typeof error === "undefined") error = false;

            var self = this;
            if (typeof this.dugout !== 'undefined') self = this.dugout;

            if (self.tracking) {
                // GA Events Flow tracking
                if (window.DugoutEmbed.ga_event_tracking) {
                    var action = self.player_config.p + '_' + self.mode;
                    var ts = 0;

                    if (window.DugoutEmbed.is_mobile) action += '_mobile';
                    else action += '_desktop';
                    if (error) action += '_error';
                    if (value) ts = value;
                    else if (typeof performance.now === 'function') ts = ((performance.now()) / 1000).toFixed(2);

                    if (typeof self.last_event === 'undefined') self.last_event = 'origin';
                    var final_label = label + ' (after ' + self.last_event + ')';
                    self.last_event = label;

                    self.log('// Track: ', action, final_label, ts);

                    window.DugoutEmbed.gaTrack([{
                        type: 'event',
                        ec: action,
                        ea: final_label,
                        el: extra,
                        ev: ts
                    }]);
                }

                if (self.das_tracking) {
                    // DAS tracking
                    self.das.logEvent("player", label, extra, value);
                }
            }
        };

        // MESSAGING THROGH IFRAMES -------------
        this.sendMessage = function(data) {
            window.parent.postMessage("dugout://"+JSON.stringify(data), "*");
        };
    };
}

window.DugoutEmbed.checkCMP();
}
