Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 133

!function(t,e){"object"==typeof exports&&"object"==typeof module?

module.exports=e():"function"==typeof define&&define.amd?
define([],e):"object"==typeof exports?exports.Clappr=e():t.Clappr=e()}
(window,function(){return e={},f.m=d=[function(t,e,r){"use strict";e.__esModule=!
0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a
class as a function")}},function(t,e,r){"use strict";e.__esModule=!0;var
i,n=r(39),a=(i=n)&&i.__esModule?i:{default:i};e.default=function(t,e){if(!t)throw
new ReferenceError("this hasn't been initialised - super() hasn't been
called");return!e||"object"!==(void 0===e?"undefined":(0,a.default)
(e))&&"function"!=typeof e?t:e}},function(t,e,r){"use strict";e.__esModule=!0;var
i=o(r(133)),n=o(r(76)),a=o(r(39));function o(t){return t&&t.__esModule?t:
{default:t}}e.default=function(t,e){if("function"!=typeof e&&null!==e)throw new
TypeError("Super expression must either be null or a function, not "+(void
0===e?"undefined":(0,a.default)(e)));t.prototype=(0,n.default)(e&&e.prototype,
{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(i.default?
(0,i.default)(t,e):t.__proto__=e)}},function(t,e,r){"use strict";e.__esModule=!
0;var i,n=r(75),a=(i=n)&&i.__esModule?i:{default:i};function o(t,e){for(var
r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!
0,"value"in i&&(i.writable=!0),(0,a.default)(t,i.key,i)}}e.default=function(t,e,r)
{return e&&o(t.prototype,e),r&&o(t,r),t}},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
c=a(r(53)),i=a(r(0)),l=a(r(39)),f=a(r(29)),n=r(5);function a(t){return
t&&t.__esModule?t:{default:t}}function h(t,e,r,i){if(!r)return!
0;if("object"===(void 0===r?"undefined":(0,l.default)(r))){for(var n in
r)t[e].apply(t,[n,r[n]].concat(i));return!1}if(u.test(r)){for(var
a=r.split(u),o=0,s=a.length;o<s;o++)t[e].apply(t,[a[o]].concat(i));return!1}return!
0}function o(t,r,i,n){var a=void 0,o=-1,s=t.length,l=r[0],u=r[1],d=r[2];!function
e(){try{switch(r.length){case 0:for(;++o<s;)
(a=t[o]).callback.call(a.ctx);return;case 1:for(;++o<s;)
(a=t[o]).callback.call(a.ctx,l);return;case 2:for(;++o<s;)
(a=t[o]).callback.call(a.ctx,l,u);return;case 3:for(;++o<s;)
(a=t[o]).callback.call(a.ctx,l,u,d);return;default:for(;++o<s;)
(a=t[o]).callback.apply(a.ctx,r);return}}catch(t){f.default.error.apply(f.default,
[i,"error on event",n,"trigger","-",t]),e()}}()}var s=Array.prototype.slice,u=/\
s+/,d=(p.prototype.on=function(t,e,r){return h(this,"on",t,
[e,r])&&e&&(this._events||(this._events={}),(this._events[t]||
(this._events[t]=[])).push({callback:e,context:r,ctx:r||
this})),this},p.prototype.once=function(t,e,r){var i=this,n=void 0;return
h(this,"once",t,[e,r])&&e?(n=function()
{i.off(t,n),e.apply(this,arguments)},this.on(t,n,r)):this},p.prototype.off=function
(t,e,r){var i,n,a=void 0,o=void 0,s=void 0,l=void 0,u=void 0,d=void 0;if(!
this._events||!h(this,"off",t,[e,r]))return this;if(!t&&!e&&!r)return
this._events=void 0,this;for(l=0,n=(i=t?[t]:(0,c.default)
(this._events)).length;l<n;l++)if(t=i[l],s=this._events[t])
{if(this._events[t]=a=[],e||r)for(u=0,d=s.length;u<d;u++)o=s[u],(e&&e!
==o.callback&&e!==o.callback._callback||r&&r!==o.context)&&a.push(o);a.length||
delete this._events[t]}return this},p.prototype.trigger=function(t){var
e=this.name||this.constructor.name;if(f.default.debug.apply(f.default,
[e].concat(Array.prototype.slice.call(arguments))),!this._events)return this;var
r=s.call(arguments,1);if(!h(this,"trigger",t,r))return this;var
i=this._events[t],n=this._events.all;return
i&&o(i,r,e,t),n&&o(n,arguments,e,t),this},p.prototype.stopListening=function(t,e,r)
{var i=this._listeningTo;if(!i)return this;var n=!e&&!r;for(var a in r||"object"!
==(void 0===e?"undefined":(0,l.default)(e))||(r=this),t&&((i={})[t._listenId]=t),i)
(t=i[a]).off(e,r,this),!n&&0!==(0,c.default)(t._events).length||delete
this._listeningTo[a];return this},p.register=function(t){p.Custom||
(p.Custom={});var e="string"==typeof t&&t.toUpperCase().trim();e&&!p.Custom[e]?
p.Custom[e]=e.toLowerCase().split("_").map(function(t,e){return 0===e?
t:t=t[0].toUpperCase()+t.slice(1)}).join(""):f.default.error("Events","Error when
register event: "+t)},p.listAvailableCustomEvents=function(){return p.Custom||
(p.Custom={}),(0,c.default)(p.Custom).filter(function(t){return"string"==typeof
p.Custom[t]})},p);function p(){(0,i.default)(this,p)}e.default=d;var
g={listenTo:"on",listenToOnce:"once"};(0,c.default)(g).forEach(function(i)
{d.prototype[i]=function(t,e,r){return(this._listeningTo||(this._listeningTo={}))
[t._listenId||(t._listenId=(0,n.uniqueId)("l"))]=t,r||"object"!==(void
0===e?"undefined":(0,l.default)(e))||(r=this),t[g[i]]
(e,r,this),this}}),d.PLAYER_READY="ready",d.PLAYER_RESIZE="resize",d.PLAYER_FULLSCR
EEN="fullscreen",d.PLAYER_PLAY="play",d.PLAYER_PAUSE="pause",d.PLAYER_STOP="stop",d
.PLAYER_ENDED="ended",d.PLAYER_SEEK="seek",d.PLAYER_ERROR="playererror",d.ERROR="er
ror",d.PLAYER_TIMEUPDATE="timeupdate",d.PLAYER_VOLUMEUPDATE="volumeupdate",d.PLAYER
_SUBTITLE_AVAILABLE="subtitleavailable",d.PLAYBACK_PROGRESS="playback:progress",d.P
LAYBACK_TIMEUPDATE="playback:timeupdate",d.PLAYBACK_READY="playback:ready",d.PLAYBA
CK_BUFFERING="playback:buffering",d.PLAYBACK_BUFFERFULL="playback:bufferfull",d.PLA
YBACK_SETTINGSUPDATE="playback:settingsupdate",d.PLAYBACK_LOADEDMETADATA="playback:
loadedmetadata",d.PLAYBACK_HIGHDEFINITIONUPDATE="playback:highdefinitionupdate",d.P
LAYBACK_BITRATE="playback:bitrate",d.PLAYBACK_LEVELS_AVAILABLE="playback:levels:ava
ilable",d.PLAYBACK_LEVEL_SWITCH_START="playback:levels:switch:start",d.PLAYBACK_LEV
EL_SWITCH_END="playback:levels:switch:end",d.PLAYBACK_PLAYBACKSTATE="playback:playb
ackstate",d.PLAYBACK_DVR="playback:dvr",d.PLAYBACK_MEDIACONTROL_DISABLE="playback:m
ediacontrol:disable",d.PLAYBACK_MEDIACONTROL_ENABLE="playback:mediacontrol:enable",
d.PLAYBACK_ENDED="playback:ended",d.PLAYBACK_PLAY_INTENT="playback:play:intent",d.P
LAYBACK_PLAY="playback:play",d.PLAYBACK_PAUSE="playback:pause",d.PLAYBACK_SEEK="pla
yback:seek",d.PLAYBACK_SEEKED="playback:seeked",d.PLAYBACK_STOP="playback:stop",d.P
LAYBACK_ERROR="playback:error",d.PLAYBACK_STATS_ADD="playback:stats:add",d.PLAYBACK
_FRAGMENT_LOADED="playback:fragment:loaded",d.PLAYBACK_LEVEL_SWITCH="playback:level
:switch",d.PLAYBACK_SUBTITLE_AVAILABLE="playback:subtitle:available",d.PLAYBACK_SUB
TITLE_CHANGED="playback:subtitle:changed",d.CORE_CONTAINERS_CREATED="core:container
s:created",d.CORE_ACTIVE_CONTAINER_CHANGED="core:active:container:changed",d.CORE_O
PTIONS_CHANGE="core:options:change",d.CORE_READY="core:ready",d.CORE_FULLSCREEN="co
re:fullscreen",d.CORE_RESIZE="core:resize",d.CORE_SCREEN_ORIENTATION_CHANGED="core:
screen:orientation:changed",d.CORE_MOUSE_MOVE="core:mousemove",d.CORE_MOUSE_LEAVE="
core:mouseleave",d.CONTAINER_PLAYBACKSTATE="container:playbackstate",d.CONTAINER_PL
AYBACKDVRSTATECHANGED="container:dvr",d.CONTAINER_BITRATE="container:bitrate",d.CON
TAINER_STATS_REPORT="container:stats:report",d.CONTAINER_DESTROYED="container:destr
oyed",d.CONTAINER_READY="container:ready",d.CONTAINER_ERROR="container:error",d.CON
TAINER_LOADEDMETADATA="container:loadedmetadata",d.CONTAINER_SUBTITLE_AVAILABLE="co
ntainer:subtitle:available",d.CONTAINER_SUBTITLE_CHANGED="container:subtitle:change
d",d.CONTAINER_TIMEUPDATE="container:timeupdate",d.CONTAINER_PROGRESS="container:pr
ogress",d.CONTAINER_PLAY="container:play",d.CONTAINER_STOP="container:stop",d.CONTA
INER_PAUSE="container:pause",d.CONTAINER_ENDED="container:ended",d.CONTAINER_CLICK=
"container:click",d.CONTAINER_DBLCLICK="container:dblclick",d.CONTAINER_CONTEXTMENU
="container:contextmenu",d.CONTAINER_MOUSE_ENTER="container:mouseenter",d.CONTAINER
_MOUSE_LEAVE="container:mouseleave",d.CONTAINER_SEEK="container:seek",d.CONTAINER_S
EEKED="container:seeked",d.CONTAINER_VOLUME="container:volume",d.CONTAINER_FULLSCRE
EN="container:fullscreen",d.CONTAINER_STATE_BUFFERING="container:state:buffering",d
.CONTAINER_STATE_BUFFERFULL="container:state:bufferfull",d.CONTAINER_SETTINGSUPDATE
="container:settingsupdate",d.CONTAINER_HIGHDEFINITIONUPDATE="container:highdefinit
ionupdate",d.CONTAINER_MEDIACONTROL_SHOW="container:mediacontrol:show",d.CONTAINER_
MEDIACONTROL_HIDE="container:mediacontrol:hide",d.CONTAINER_MEDIACONTROL_DISABLE="c
ontainer:mediacontrol:disable",d.CONTAINER_MEDIACONTROL_ENABLE="container:mediacont
rol:enable",d.CONTAINER_STATS_ADD="container:stats:add",d.CONTAINER_OPTIONS_CHANGE=
"container:options:change",d.MEDIACONTROL_RENDERED="mediacontrol:rendered",d.MEDIAC
ONTROL_FULLSCREEN="mediacontrol:fullscreen",d.MEDIACONTROL_SHOW="mediacontrol:show"
,d.MEDIACONTROL_HIDE="mediacontrol:hide",d.MEDIACONTROL_MOUSEMOVE_SEEKBAR="mediacon
trol:mousemove:seekbar",d.MEDIACONTROL_MOUSELEAVE_SEEKBAR="mediacontrol:mouseleave:
seekbar",d.MEDIACONTROL_PLAYING="mediacontrol:playing",d.MEDIACONTROL_NOTPLAYING="m
ediacontrol:notplaying",d.MEDIACONTROL_CONTAINERCHANGED="mediacontrol:containerchan
ged",d.MEDIACONTROL_OPTIONS_CHANGE="mediacontrol:options:change",t.exports=e.defaul
t},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!
0}),e.SvgIcons=e.DoubleEventHandler=e.DomRecycler=e.cancelAnimationFrame=e.requestA
nimationFrame=e.QueryString=e.Config=e.Fullscreen=void 0;var
o=p(r(12)),i=p(r(3)),s=p(r(0)),l=p(r(1)),u=p(r(2)),n=p(r(75)),a=p(r(139));e.assign=
g,e.extend=m,e.formatTime=v,e.seekStringToSeconds=T,e.uniqueId=k,e.isNumber=L,e.cur
rentScriptUrl=R,e.getBrowserLanguage=O,e.now=P,e.removeArrayItem=D,e.listContainsIg
noreCase=function(e,t){return void 0!==e&&void 0!==t&&void 0!==t.find(function(t)
{return e.toLowerCase()===t.toLowerCase()})},e.canAutoPlayMedia=I,r(142);var
d=p(r(14)),c=p(r(6)),f=p(r(150)),h=p(r(151));function p(t){return t&&t.__esModule?
t:{default:t}}function g(t,e){if(e)for(var r in e){var i=(0,a.default)(e,r);i?
(0,n.default)(t,r,i):t[r]=e[r]}return t}function m(t,n){var a,e=(a=t,(0,u.default)
(o,a),o);function o(){(0,s.default)(this,o);for(var
t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];var i=(0,l.default)
(this,a.call.apply(a,[this].concat(e)));return
n.initialize&&n.initialize.apply(i,e),i}return g(e.prototype,n),e}function v(t,e)
{if(!isFinite(t))return"--:--";t*=1e3;var r=(t=parseInt(t/1e3))
%60,i=(t=parseInt(t/60))%60,n=(t=parseInt(t/60))%24,a=parseInt(t/24),o="";return
a&&0<a&&(o+=a+":",n<1&&(o+="00:")),(n&&0<n||e)&&(o+=("0"+n).slice(-
2)+":"),o+=("0"+i).slice(-2)+":",(o+=("0"+r).slice(-2)).trim()}var
y=e.Fullscreen={fullscreenElement:function(){return document.fullscreenElement||
document.webkitFullscreenElement||document.mozFullScreenElement||
document.msFullscreenElement},requestFullscreen:function(t){t.requestFullscreen?
t.requestFullscreen():t.webkitRequestFullscreen?
t.webkitRequestFullscreen():t.mozRequestFullScreen?
t.mozRequestFullScreen():t.msRequestFullscreen?
t.msRequestFullscreen():t.querySelector&&t.querySelector("video")&&t.querySelector(
"video").webkitEnterFullScreen?
t.querySelector("video").webkitEnterFullScreen():t.webkitEnterFullScreen&&t.webkitE
nterFullScreen()},cancelFullscreen:function(t){var e=0<arguments.length&&void 0!
==t?t:document;e.exitFullscreen?e.exitFullscreen():e.webkitCancelFullScreen?
e.webkitCancelFullScreen():e.webkitExitFullscreen?
e.webkitExitFullscreen():e.mozCancelFullScreen?
e.mozCancelFullScreen():e.msExitFullscreen&&e.msExitFullscreen()},fullscreenEnabled
:function(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||
document.mozFullScreenEnabled||
document.msFullscreenEnabled)}},A=e.Config=(_._defaultConfig=function()
{return{volume:{value:100,parse:parseInt}}},_._defaultValueFor=function(t)
{try{return this._defaultConfig()[t].parse(this._defaultConfig()[t].value)}catch(t)
{return}},_._createKeyspace=function(t)
{return"clappr."+document.domain+"."+t},_.restore=function(t){return
d.default.hasLocalstorage&&localStorage[this._createKeyspace(t)]?
this._defaultConfig()
[t].parse(localStorage[this._createKeyspace(t)]):this._defaultValueFor(t)},_.persis
t=function(t,e){if(d.default.hasLocalstorage)try{return
localStorage[this._createKeyspace(t)]=e,!0}catch(t){return!1}},_);function _()
{(0,s.default)(this,_)}var b=e.QueryString=(E.parse=function(t){for(var e=void
0,r=/\+/g,i=/([^&=]+)=?([^&]*)/g,n=function(t){return
decodeURIComponent(t.replace(r,"
"))},a={};e=i.exec(t);)a[n(e[1]).toLowerCase()]=n(e[2]);return a},(0,i.default)
(E,null,[{key:"params",get:function(){var
t=window.location.search.substring(1);return t!
==this.query&&(this._urlParams=this.parse(t),this.query=t),this._urlParams}},
{key:"hashParams",get:function(){var t=window.location.hash.substring(1);return t!
==this.hash&&(this._hashParams=this.parse(t),this.hash=t),this._hashParams}}]),E);f
unction E(){(0,s.default)(this,E)}function T(){var t=0<arguments.length&&void 0!
==arguments[0]?arguments[0]:"t",i=0,e=b.params[t]||b.hashParams[t]||"",r=e.match(/
[0-9]+[hms]+/g)||[];if(0<r.length){var n={h:3600,m:60,s:1};r.forEach(function(t)
{if(t){var e=t[t.length-1],r=parseInt(t.slice(0,t.length-1),10);i+=r*n[e]}})}else
e&&(i=parseInt(e,10));return i}var S={};function k(t){return S[t]||(S[t]=0),t+ +
+S[t]}function L(t){return 0<=t-parseFloat(t)+1}function R(){var
t=document.getElementsByTagName("script");return t.length?t[t.length-1].src:""}var
C=e.requestAnimationFrame=(window.requestAnimationFrame||
window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(t)
{window.setTimeout(t,1e3/60)}).bind(window),w=e.cancelAnimationFrame=(window.cancel
AnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||
window.clearTimeout).bind(window);function O(){return
window.navigator&&window.navigator.language}function P(){return
window.performance&&window.performance.now?performance.now():Date.now()}function
D(t,e){var r=t.indexOf(e);0<=r&&t.splice(r,1)}function I(i,t){var
e=(t=(0,o.default)({inline:!1,muted:!
1,timeout:250,type:"video",source:f.default.mp4,element:null},t)).element?
t.element:document.createElement(t.type);e.muted=t.muted,!
0===t.muted&&e.setAttribute("muted","muted"),!
0===t.inline&&e.setAttribute("playsinline","playsinline"),e.src=t.source;var
r=e.play(),n=setTimeout(function(){a(!1,new Error("Timeout "+t.timeout+" ms has
been reached"))},t.timeout),a=function(t,e){var r=1<arguments.length&&void 0!==e?
e:null;clearTimeout(n),i(t,r)};void 0!==r?r.then(function(){return a(!
0)}).catch(function(t){return a(!1,t)}):a(!0)}var
x=[],M=e.DomRecycler=(N.configure=function(t)
{this.options=c.default.extend(this.options,t)},N.create=function(t){return
this.options.recycleVideo&&"video"===t&&0<x.length?x.shift():(0,c.default)
("<"+t+">")},N.garbage=function(t)
{this.options.recycleVideo&&"VIDEO"===t[0].tagName.toUpperCase()&&(t.children().rem
ove(),x.push(t))},N);function N(){(0,s.default)(this,N)}M.options={recycleVideo:!
1};var F=e.DoubleEventHandler=(B.prototype.handle=function(t,e,r){var i=!
(2<arguments.length&&void 0!==r)||r,n=(new Date).getTime(),a=n-
this.lastTime;a<this.delay&&0<a&&(e(),i&&t.preventDefault()),this.lastTime=n},B);fu
nction B(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:500;
(0,s.default)
(this,B),this.delay=t,this.lastTime=0}e.SvgIcons=h.default;e.default={Config:A,Full
screen:y,QueryString:b,DomRecycler:M,extend:m,formatTime:v,seekStringToSeconds:T,un
iqueId:k,currentScriptUrl:R,isNumber:L,requestAnimationFrame:C,cancelAnimationFrame
:w,getBrowserLanguage:O,now:P,removeArrayItem:D,canAutoPlayMedia:I,Media:f.default,
DoubleEventHandler:F,SvgIcons:h.default}},function(Ke,Le){var
Ne,Oe,Pe,Qe,nf,of,Re,Se,Te,Ue,Ve,We,Xe,Ye,Ze,
$e,_e,af,bf,cf,ef,ff,gf,hf,jf,kf,lf,mf,pf,qf,rf,cn,Bn,Cn,Nq,Oq,Pq,Qq,Sq,Tq,Uq,Vq,Me
=(Se=(Re=[]).concat,Te=Re.filter,Ue=Re.slice,Ve=window.document,We={},Xe={},Ye={"co
lumn-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-
index":1,zoom:1},Ze=/^\s*<(\w+|!)[^>]*>/,$e=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,_e=/<(?!
area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,af=/^(?:body|
html)$/i,bf=/([A-Z])/
g,cf=["val","css","html","text","data","width","height","offset"],ef=Ve.createEleme
nt("table"),ff=Ve.createElement("tr"),gf={tr:Ve.createElement("tbody"),tbody:ef,the
ad:ef,tfoot:ef,td:ff,th:ff,"*":Ve.createElement("div")},hf=/complete|loaded|
interactive/,jf=/^[\
w-]*$/,lf=(kf={}).toString,mf={},pf=Ve.createElement("div"),qf={tabindex:"tabIndex"
,readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspac
ing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",use
map:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},rf=Array.
isArray||function(t){return t instanceof Array},mf.matches=function(t,e){if(!e||!
t||1!==t.nodeType)return!1;var r=t.matches||t.webkitMatchesSelector||
t.mozMatchesSelector||t.oMatchesSelector||t.matchesSelector;if(r)return
r.call(t,e);var i,n=t.parentNode,a=!n;return
a&&(n=pf).appendChild(t),i=~mf.qsa(n,e).indexOf(t),a&&pf.removeChild(t),i},nf=funct
ion(t){return t.replace(/-+(.)?/g,function(t,e){return e?
e.toUpperCase():""})},of=function(r){return Te.call(r,function(t,e){return
r.indexOf(t)==e})},mf.fragment=function(t,e,r){var i,n,a;return
$e.test(t)&&(i=Pe(Ve.createElement(RegExp.$1))),i||
(t.replace&&(t=t.replace(_e,"<$1></$2>")),e===Ne&&(e=Ze.test(t)&&RegExp.$1),e in
gf||(e="*"),(a=gf[e]).innerHTML=""+t,i=Pe.each(Ue.call(a.childNodes),function()
{a.removeChild(this)})),xf(r)&&(n=Pe(i),Pe.each(r,function(t,e){-1<cf.indexOf(t)?
n[t](e):n.attr(t,e)})),i},mf.Z=function(t,e){return new Gf(t,e)},mf.isZ=function(t)
{return t instanceof mf.Z},mf.init=function(t,e){var r;if(!t)return
mf.Z();if("string"==typeof t)if("<"==(t=t.trim())
[0]&&Ze.test(t))r=mf.fragment(t,RegExp.$1,e),t=null;else{if(e!==Ne)return
Pe(e).find(t);r=mf.qsa(Ve,t)}else{if(tf(t))return
Pe(Ve).ready(t);if(mf.isZ(t))return t;if(rf(t))r=function(t){return
Te.call(t,function(t){return null!=t})}(t);else if(wf(t))r=[t],t=null;else
if(Ze.test(t))r=mf.fragment(t.trim(),RegExp.$1,e),t=null;else{if(e!==Ne)return
Pe(e).find(t);r=mf.qsa(Ve,t)}}return mf.Z(r,t)},(Pe=function(t,e){return
mf.init(t,e)}).extend=function(e){var
r,t=Ue.call(arguments,1);return"boolean"==typeof
e&&(r=e,e=t.shift()),t.forEach(function(t){!function t(e,r,i){for(Oe in
r)i&&(xf(r[Oe])||rf(r[Oe]))?(xf(r[Oe])&&!xf(e[Oe])&&(e[Oe]={}),rf(r[Oe])&&!
rf(e[Oe])&&(e[Oe]=[]),t(e[Oe],r[Oe],i)):r[Oe]!==Ne&&(e[Oe]=r[Oe])}
(e,t,r)}),e},mf.qsa=function(t,e){var r,i="#"==e[0],n=!i&&"."==e[0],a=i||n?
e.slice(1):e,o=jf.test(a);return t.getElementById&&o&&i?(r=t.getElementById(a))?
[r]:[]:1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType?[]:Ue.call(o&&!
i&&t.getElementsByClassName?n?
t.getElementsByClassName(a):t.getElementsByTagName(e):t.querySelectorAll(e))},Pe.co
ntains=Ve.documentElement.contains?function(t,e){return t!
==e&&t.contains(e)}:function(t,e){for(;e&&(e=e.parentNode);)if(e===t)return!
0;return!
1},Pe.type=sf,Pe.isFunction=tf,Pe.isWindow=uf,Pe.isArray=rf,Pe.isPlainObject=xf,Pe.
isEmptyObject=function(t){var e;for(e in t)return!1;return!
0},Pe.isNumeric=function(t){var e=Number(t),r=typeof t;return null!=t&&"boolean"!
=r&&("string"!=r||t.length)&&!isNaN(e)&&isFinite(e)||!1},Pe.inArray=function(t,e,r)
{return Re.indexOf.call(e,t,r)},Pe.camelCase=nf,Pe.trim=function(t){return
null==t?"":String.prototype.trim.call(t)},Pe.uuid=0,Pe.support={},Pe.expr={},Pe.noo
p=function(){},Pe.map=function(t,e){var r,i,n,a=[];if(yf(t))for(i=0;i<t.length;i+
+)null!=(r=e(t[i],i))&&a.push(r);else for(n in t)null!
=(r=e(t[n],n))&&a.push(r);return function(t){return 0<t.length?
Pe.fn.concat.apply([],t):t}(a)},Pe.each=function(t,e){var r,i;if(yf(t))
{for(r=0;r<t.length;r++)if(!1===e.call(t[r],r,t[r]))return t}else for(i in t)if(!
1===e.call(t[i],i,t[i]))return t;return t},Pe.grep=function(t,e){return
Te.call(t,e)},window.JSON&&(Pe.parseJSON=JSON.parse),Pe.each("Boolean Number String
Function Array Date RegExp Object Error".split(" "),function(t,e){kf["[object
"+e+"]"]=e.toLowerCase()}),Pe.fn={constructor:mf.Z,length:0,forEach:Re.forEach,redu
ce:Re.reduce,push:Re.push,sort:Re.sort,splice:Re.splice,indexOf:R
e.indexOf,concat:function(){var t,e,r=[];for(t=0;t<arguments.length;t+
+)e=arguments[t],r[t]=mf.isZ(e)?e.toArray():e;return Se.apply(mf.isZ(this)?
this.toArray():this,r)},map:function(r){return Pe(Pe.map(this,function(t,e){return
r.call(t,e,t)}))},slice:function(){return
Pe(Ue.apply(this,arguments))},ready:function(t){return
hf.test(Ve.readyState)&&Ve.body?
t(Pe):Ve.addEventListener("DOMContentLoaded",function(){t(Pe)},!
1),this},get:function(t){return t===Ne?Ue.call(this):this[0<=t?
t:t+this.length]},toArray:function(){return this.get()},size:function(){return
this.length},remove:function(){return this.each(function(){null!
=this.parentNode&&this.parentNode.removeChild(this)})},each:function(r){return
Re.every.call(this,function(t,e){return!1!
==r.call(t,e,t)}),this},filter:function(e){return tf(e)?
this.not(this.not(e)):Pe(Te.call(this,function(t){return
mf.matches(t,e)}))},add:function(t,e){return
Pe(of(this.concat(Pe(t,e))))},is:function(t){return
0<this.length&&mf.matches(this[0],t)},not:function(e){var r=[];if(tf(e)&&e.call!
==Ne)this.each(function(t){e.call(this,t)||r.push(this)});else{var
i="string"==typeof e?this.filter(e):yf(e)&&tf(e.item)?
Ue.call(e):Pe(e);this.forEach(function(t){i.indexOf(t)<0&&r.push(t)})}return
Pe(r)},has:function(t){return this.filter(function(){return wf(t)?
Pe.contains(this,t):Pe(this).find(t).size()})},eq:function(t){return-1===t?
this.slice(t):this.slice(t,+t+1)},first:function(){var t=this[0];return t&&!wf(t)?
t:Pe(t)},last:function(){var t=this[this.length-1];return t&&!wf(t)?
t:Pe(t)},find:function(t){var r=this;return t?"object"==typeof t?
Pe(t).filter(function(){var e=this;return Re.some.call(r,function(t){return
Pe.contains(t,e)})}):1==this.length?Pe(mf.qsa(this[0],t)):this.map(function()
{return mf.qsa(this,t)}):Pe()},closest:function(r,i){var n=[],a="object"==typeof
r&&Pe(r);return this.each(function(t,e){for(;e&&!(a?
0<=a.indexOf(e):mf.matches(e,r));)e=e!==i&&!
vf(e)&&e.parentNode;e&&n.indexOf(e)<0&&n.push(e)}),Pe(n)},parents:function(t)
{for(var e=[],r=this;0<r.length;)r=Pe.map(r,function(t){if((t=t.parentNode)&&!
vf(t)&&e.indexOf(t)<0)return e.push(t),t});return If(e,t)},parent:function(t)
{return If(of(this.pluck("parentNode")),t)},children:function(t){return
If(this.map(function(){return Ff(this)}),t)},contents:function(){return
this.map(function(){return this.contentDocument||
Ue.call(this.childNodes)})},siblings:function(t){return If(this.map(function(t,e)
{return Te.call(Ff(e.parentNode),function(t){return t!==e})}),t)},empty:function()
{return this.each(function(){this.innerHTML=""})},pluck:function(e){return
Pe.map(this,function(t){return t[e]})},show:function(){return this.each(function()
{"none"==this.style.display&&(this.style.display=""),"none"==getComputedStyle(this,
"").getPropertyValue("display")&&(this.style.display=function(t){var e,r;return
We[t]||
(e=Ve.createElement(t),Ve.body.appendChild(e),r=getComputedStyle(e,"").getPropertyV
alue("display"),e.parentNode.removeChild(e),"none"==r&&(r="block"),We[t]=r),We[t]}
(this.nodeName))})},replaceWith:function(t){return
this.before(t).remove()},wrap:function(e){var r=tf(e);if(this[0]&&!r)var
i=Pe(e).get(0),n=i.parentNode||1<this.length;return this.each(function(t)
{Pe(this).wrapAll(r?e.call(this,t):n?i.cloneNode(!0):i)})},wrapAll:function(t)
{if(this[0]){var e;for(Pe(this[0]).before(t=Pe(t));
(e=t.children()).length;)t=e.first();Pe(t).append(this)}return
this},wrapInner:function(n){var a=tf(n);return this.each(function(t){var
e=Pe(this),r=e.contents(),i=a?n.call(this,t):n;r.length?
r.wrapAll(i):e.append(i)})},unwrap:function(){return this.parent().each(function()
{Pe(this).replaceWith(Pe(this).children())}),this},clone:function(){return
this.map(function(){return this.cloneNode(!0)})},hide:function(){return
this.css("display","none")},toggle:function(e){return this.each(function(){var
t=Pe(this);(e===Ne?"none"==t.css("display"):e)?
t.show():t.hide()})},prev:function(t){return
Pe(this.pluck("previousElementSibling")).filter(t||"*")},next:function(t){return
Pe(this.pluck("nextElementSibling")).filter(t||"*")},html:function(r){return 0 in
arguments?this.each(function(t){var
e=this.innerHTML;Pe(this).empty().append(Jf(this,r,t,e))}):0 in this?
this[0].innerHTML:null},text:function(r){return 0 in arguments?
this.each(function(t){var
e=Jf(this,r,t,this.textContent);this.textContent=null==e?"":""+e}):0 in this?
this.pluck("textContent").join(""):null},attr:function(e,r){var t;return"string"!
=typeof e||1 in arguments?this.each(function(t)
{if(1===this.nodeType)if(wf(e))for(Oe in e)Kf(this,Oe,e[Oe]);else
Kf(this,e,Jf(this,r,t,this.getAttribute(e)))}):0 in
this&&1==this[0].nodeType&&null!=(t=this[0].getAttribute(e))?
t:Ne},removeAttr:function(t){return this.each(function()
{1===this.nodeType&&t.split(" ").forEach(function(t)
{Kf(this,t)},this)})},prop:function(e,r){return e=qf[e]||e,1 in arguments?
this.each(function(t){this[e]=Jf(this,r,t,this[e])}):this[0]&&this[0]
[e]},removeProp:function(t){return t=qf[t]||t,this.each(function(){delete
this[t]})},data:function(t,e){var r="data-"+t.replace(bf,"-$1").toLowerCase(),i=1
in arguments?this.attr(r,e):this.attr(r);return null!==i?Mf(i):Ne},val:function(e)
{return 0 in arguments?(null==e&&(e=""),this.each(function(t)
{this.value=Jf(this,e,t,this.value)})):this[0]&&(this[0].multiple?
Pe(this[0]).find("option").filter(function(){return
this.selected}).pluck("value"):this[0].value)},offset:function(a){if(a)return
this.each(function(t){var
e=Pe(this),r=Jf(this,a,t,e.offset()),i=e.offsetParent().offset(),n={top:r.top-
i.top,left:r.left-
i.left};"static"==e.css("position")&&(n.position="relative"),e.css(n)});if(!
this.length)return null;if(Ve.documentElement!==this[0]&&!
Pe.contains(Ve.documentElement,this[0]))return{top:0,left:0};var
t=this[0].getBoundingClientRect();return{left:t.left+window.pageXOffset,top:t.top+w
indow.pageYOffset,width:Math.round(t.width),height:Math.round(t.height)}},css:funct
ion(t,e){if(arguments.length<2){var r=this[0];if("string"==typeof t){if(!
r)return;return r.style[nf(t)]||
getComputedStyle(r,"").getPropertyValue(t)}if(rf(t)){if(!r)return;var
i={},n=getComputedStyle(r,"");return Pe.each(t,function(t,e){i[e]=r.style[nf(e)]||
n.getPropertyValue(e)}),i}}var a="";if("string"==sf(t))e||0===e?a=Bf(t)
+":"+Df(t,e):this.each(function(){this.style.removeProperty(Bf(t))});else for(Oe in
t)t[Oe]||0===t[Oe]?a+=Bf(Oe)+":"+Df(Oe,t[Oe])+";":this.each(function()
{this.style.removeProperty(Bf(Oe))});return this.each(function()
{this.style.cssText+=";"+a})},index:function(t){return t?this.indexOf(Pe(t)
[0]):this.parent().children().indexOf(this[0])},hasClass:function(t){return!!
t&&Re.some.call(this,function(t){return
this.test(Lf(t))},Cf(t))},addClass:function(r){return r?this.each(function(t)
{if("className"in this){Qe=[];var
e=Lf(this);Jf(this,r,t,e).split(/\s+/g).forEach(function(t){Pe(this).hasClass(t)||
Qe.push(t)},this),Qe.length&&Lf(this,e+(e?" ":"")+Qe.join("
"))}}):this},removeClass:function(e){return this.each(function(t){if("className"in
this){if(e===Ne)return
Lf(this,"");Qe=Lf(this),Jf(this,e,t,Qe).split(/\s+/g).forEach(function(t)
{Qe=Qe.replace(Cf(t)," ")}),Lf(this,Qe.trim())}})},toggleClass:function(r,i){return
r?this.each(function(t){var
e=Pe(this);Jf(this,r,t,Lf(this)).split(/\s+/g).forEach(function(t){(i===Ne?!
e.hasClass(t):i)?e.addClass(t):e.removeClass(t)})}):this},scrollTop:function(t)
{if(this.length){var e="scrollTop"in this[0];return t===Ne?e?
this[0].scrollTop:this[0].pageYOffset:this.each(e?function()
{this.scrollTop=t}:function()
{this.scrollTo(this.scrollX,t)})}},scrollLeft:function(t){if(this.length){var
e="scrollLeft"in this[0];return t===Ne?e?
this[0].scrollLeft:this[0].pageXOffset:this.each(e?function()
{this.scrollLeft=t}:function()
{this.scrollTo(t,this.scrollY)})}},position:function(){if(this.length){var
t=this[0],e=this.offsetParent(),r=this.offset(),i=af.test(e[0].nodeName)?
{top:0,left:0}:e.offset();return r.top-=parseFloat(Pe(t).css("margin-top"))||
0,r.left-=parseFloat(Pe(t).css("margin-left"))||
0,i.top+=parseFloat(Pe(e[0]).css("border-top-width"))||
0,i.left+=parseFloat(Pe(e[0]).css("border-left-width"))||0,{top:r.top-
i.top,left:r.left-i.left}}},offsetParent:function(){return this.map(function()
{for(var t=this.offsetParent||Ve.body;t&&!
af.test(t.nodeName)&&"static"==Pe(t).css("position");)t=t.offsetParent;return
t})}},Pe.fn.detach=Pe.fn.remove,["width","height"].forEach(function(i){var
n=i.replace(/./,function(t){return t[0].toUpperCase()});Pe.fn[i]=function(e){var
t,r=this[0];return e===Ne?uf(r)?r["inner"+n]:vf(r)?r.documentElement["scroll"+n]:
(t=this.offset())&&t[i]:this.each(function(t){(r=Pe(this)).css(i,Jf(this,e,t,r[i]
()))})}}),["after","prepend","before","append"].forEach(function(e,o){var s=o
%2;Pe.fn[e]=function(){var r,i,n=Pe.map(arguments,function(t){var
e=[];return"array"==(r=sf(t))?(t.forEach(function(t){return t.nodeType!==Ne?
e.push(t):Pe.zepto.isZ(t)?
e=e.concat(t.get()):void(e=e.concat(mf.fragment(t)))}),e):"object"==r||null==t?
t:mf.fragment(t)}),a=1<this.length;return n.length<1?this:this.each(function(t,e)
{i=s?e:e.parentNode,e=0==o?e.nextSibling:1==o?e.firstChild:2==o?e:null;var
r=Pe.contains(Ve.documentElement,i);n.forEach(function(t){if(a)t=t.cloneNode(!
0);else if(!i)return Pe(t).remove();i.insertBefore(t,e),r&&function t(e,r)
{r(e);for(var i=0,n=e.childNodes.length;i<n;i++)t(e.childNodes[i],r)}(t,function(t)
{if(!(null==t.nodeName||"SCRIPT"!==t.nodeName.toUpperCase()||t.type&&"text/
javascript"!==t.type||t.src)){var e=t.ownerDocument?
t.ownerDocument.defaultView:window;e.eval.call(e,t.innerHTML)}})})})},Pe.fn[s?
e+"To":"insert"+(o?"Before":"After")]=function(t){return Pe(t)[e]
(this),this}}),mf.Z.prototype=Gf.prototype=Pe.fn,mf.uniq=of,mf.deserializeValue=Mf,
Pe.zepto=mf,Pe);function sf(t){return null==t?
String(t):kf[lf.call(t)]||"object"}function tf(t){return"function"==sf(t)}function
uf(t){return null!=t&&t==t.window}function vf(t){return null!
=t&&t.nodeType==t.DOCUMENT_NODE}function
wf(t){return"object"==sf(t)}function xf(t){return wf(t)&&!
uf(t)&&Object.getPrototypeOf(t)==Object.prototype}function yf(t){var e=!!
t&&"length"in t&&t.length,r=Pe.type(t);return"function"!=r&&!uf(t)&&("array"==r||
0===e||"number"==typeof e&&0<e&&e-1 in t)}function Bf(t){return
t.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])
([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function Cf(t){return t in Xe?
Xe[t]:Xe[t]=new RegExp("(^|\\s)"+t+"(\\s|$)")}function Df(t,e){return"number"!
=typeof e||Ye[Bf(t)]?e:e+"px"}function Ff(t){return"children"in t?
Ue.call(t.children):Pe.map(t.childNodes,function(t){if(1==t.nodeType)return
t})}function Gf(t,e){var r,i=t?t.length:0;for(r=0;r<i;r+
+)this[r]=t[r];this.length=i,this.selector=e||""}function If(t,e){return null==e?
Pe(t):Pe(t).filter(e)}function Jf(t,e,r,i){return tf(e)?e.call(t,r,i):e}function
Kf(t,e,r){null==r?t.removeAttribute(e):t.setAttribute(e,r)}function Lf(t,e){var
r=t.className||"",i=r&&r.baseVal!==Ne;if(e===Ne)return i?r.baseVal:r;i?
r.baseVal=e:t.className=e}function Mf(e){try{return e?"true"==e||"false"!
=e&&("null"==e?null:+e+""==e?+e:/^[\[\{]/.test(e)?Pe.parseJSON(e):e):e}catch(t)
{return e}}function Dn(t){var
n=[["resolve","done",Bn.Callbacks({once:1,memory:1}),"resolved"],
["reject","fail",Bn.Callbacks({once:1,memory:1}),"rejected"],
["notify","progress",Bn.Callbacks({memory:1})]],a="pending",o={state:function()
{return a},always:function(){return
s.done(arguments).fail(arguments),this},then:function(){var e=arguments;return
Dn(function(a){Bn.each(n,function(t,i){var n=Bn.isFunction(e[t])&&e[t];s[i[1]]
(function(){var
t=n&&n.apply(this,arguments);if(t&&Bn.isFunction(t.promise))t.promise().done(a.reso
lve).fail(a.reject).progress(a.notify);else{var e=this===o?a.promise():this,r=n?
[t]:arguments;a[i[0]+"With"](e,r)}})}),e=null}).promise()},promise:function(t)
{return null!=t?Bn.extend(t,o):o}},s={};return Bn.each(n,function(t,e){var
r=e[2],i=e[3];o[e[1]]=r.add,i&&r.add(function(){a=i},n[1^t][2].disable,n[2]
[2].lock),s[e[0]]=function(){return s[e[0]+"With"](this===s?
o:this,arguments),this},s[e[0]+"With"]=r.fireWith}),o.promise(s),t&&t.call(s,s),s}f
unction Rq(t){return!(!(t=Nq(t)).width()&&!t.height())&&"none"!
==t.css("display")}function Wq(t,e){t=t.replace(/=#\]/g,'="#"]');var
r,i,n=Tq.exec(t);if(n&&n[2]in Sq&&(r=Sq[n[2]],i=n[3],t=n[1],i)){var
a=Number(i);i=isNaN(a)?i.replace(/^["']|["']$/g,""):a}return
e(t,r,i)}window.Zepto=Me,void 0===window.$&&(window.$=Me),function(Lk){var
Ok,Pk,Mk=+new
Date,Nk=window.document,Qk=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/
gi,Rk=/^(?:text|application)\/javascript/i,Sk=/^(?:text|application)\/xml/
i,Tk="application/json",Uk="text/html",Vk=/^\s*$/,Wk=Nk.createElement("a");function
Yk(t,e,r,i){if(t.global)return function(t,e,r){var i=Lk.Event(e);return
Lk(t).trigger(i,r),!i.isDefaultPrevented()}(e||Nk,r,i)}function _k(t,e){var
r=e.context;if(!1===e.beforeSend.call(r,t,e)||!1===Yk(e,r,"ajaxBeforeSend",
[t,e]))return!1;Yk(e,r,"ajaxSend",[t,e])}function al(t,e,r,i){var
n=r.context,a="success";r.success.call(n,t,a,e),i&&i.resolveWith(n,
[t,a,e]),Yk(r,n,"ajaxSuccess",[e,r,t]),cl(a,e,r)}function bl(t,e,r,i,n){var
a=i.context;i.error.call(a,r,e,t),n&&n.rejectWith(a,[r,e,t]),Yk(i,a,"ajaxError",
[r,i,t||e]),cl(e,r,i)}function cl(t,e,r){var
i=r.context;r.complete.call(i,e,t),Yk(r,i,"ajaxComplete",[e,r]),function(t)
{t.global&&!--Lk.active&&Yk(t,null,"ajaxStop")}(r)}function el(){}function gl(t,e)
{return""==e?t:(t+"&"+e).replace(/[&?]{1,2}/,"?")}function il(t,e,r,i){return
Lk.isFunction(e)&&(i=r,r=e,e=void 0),Lk.isFunction(r)||(i=r,r=void 0),
{url:t,data:e,success:r,dataType:i}}Wk.href=window.location.href,Lk.active=0,Lk.aja
xJSONP=function(r,i){if(!("type"in r))return Lk.ajax(r);function t(t)
{Lk(s).triggerHandler("error",t||"abort")}var
n,a,e=r.jsonpCallback,o=(Lk.isFunction(e)?e():e)||"Zepto"+Mk+
+,s=Nk.createElement("script"),l=window[o],u={abort:t};return
i&&i.promise(u),Lk(s).on("load error",function(t,e)
{clearTimeout(a),Lk(s).off().remove(),"error"!=t.type&&n?
al(n[0],u,r,i):bl(null,e||"error",u,r,i),window[o]=l,n&&Lk.isFunction(l)&&l(n[0]),l
=n=void 0}),!1===_k(u,r)?t("abort"):(window[o]=function()
{n=arguments},s.src=r.url.replace(/\?(.+)=\?/,"?
$1="+o),Nk.head.appendChild(s),0<r.timeout&&(a=setTimeout(function()
{t("timeout")},r.timeout))),u},Lk.ajaxSettings={type:"GET",beforeSend:el,success:el
,error:el,complete:el,context:null,global:!0,xhr:function(){return new
window.XMLHttpRequest},accepts:{script:"text/javascript, application/javascript,
application/x-javascript",json:Tk,xml:"application/xml,
text/xml",html:Uk,text:"text/plain"},crossDomain:!1,timeout:0,processData:!
0,cache:!0,dataFilter:el},Lk.ajax=function(hm){var km,lm,im=Lk.extend({},hm||
{}),jm=Lk.Deferred&&Lk.Deferred();for(Ok in Lk.ajaxSettings)void
0===im[Ok]&&(im[Ok]=Lk.ajaxSettings[Ok]);!function(t){t.global&&0==Lk.active+
+&&Yk(t,null,"ajaxStart")}(im),im.crossDomain||
((km=Nk.createElement("a")).href=im.url,km.href=km.href,im.crossDomain=Wk.protocol+
"//"+Wk.host!=km.protocol+"//"+km.host),im.url||
(im.url=window.location.toString()),-
1<(lm=im.url.indexOf("#"))&&(im.url=im.url.slice(0,lm)),function(t)
{t.processData&&t.data&&"string"!
=Lk.type(t.data)&&(t.data=Lk.param(t.data,t.traditional)),!t.data||t.type&&"GET"!
=t.type.toUpperCase()&&"jsonp"!=t.dataType||(t.url=gl(t.url,t.data),t.data=void 0)}
(im);var mm=im.dataType,nm=/\?.+=\?/.test(im.url);if(nm&&(mm="jsonp"),!1!
==im.cache&&(hm&&!0===hm.cache||"script"!=mm&&"jsonp"!=mm)||
(im.url=gl(im.url,"_="+Date.now())),"jsonp"==mm)return nm||
(im.url=gl(im.url,im.jsonp?im.jsonp+"=?":!
1===im.jsonp?"":"callback=?")),Lk.ajaxJSONP(im,jm);function qm(t,e)
{pm[t.toLowerCase()]=[t,e]}var um,om=im.accepts[mm],pm={},rm=/^([\w-]
+:)\/\//.test(im.url)?RegExp.
$1:window.location.protocol,sm=im.xhr(),tm=sm.setRequestHeader;if(jm&&jm.promise(sm
),im.crossDomain||qm("X-Requested-With","XMLHttpRequest"),qm("Accept",om||"*/*"),
(om=im.mimeType||om)&&(-1<om.indexOf(",")&&(om=om.split(",",2)
[0]),sm.overrideMimeType&&sm.overrideMimeType(om)),(im.contentType||!1!
==im.contentType&&im.data&&"GET"!=im.type.toUpperCase())&&qm("Content-
Type",im.contentType||"application/x-www-form-urlencoded"),im.headers)for(Pk in
im.headers)qm(Pk,im.headers[Pk]);if(sm.setRequestHeader=qm,!
(sm.onreadystatechange=function(){if(4==sm.readyState)
{sm.onreadystatechange=el,clearTimeout(um);var ym,zm=!
1;if(200<=sm.status&&sm.status<300||304==sm.status||0==sm.status&&"file:"==rm)
{if(mm=mm||function(t){return t&&(t=t.split(";",2)
[0]),t&&(t==Uk?"html":t==Tk?"json":Rk.test(t)?"script":Sk.test(t)&&"xml")||"text"}
(im.mimeType||sm.getResponseHeader("content-
type")),"arraybuffer"==sm.responseType||"blob"==sm.responseType)ym=sm.response;else
{ym=sm.responseText;try{ym=function(t,e,r){if(r.dataFilter==el)return t;var
i=r.context;return r.dataFilter.call(i,t,e)}(ym,mm,im),"script"==mm?
eval(ym):"xml"==mm?ym=sm.responseXML:"json"==mm&&(ym=Vk.test(ym)?
null:Lk.parseJSON(ym))}catch(t){zm=t}if(zm)return
bl(zm,"parsererror",sm,im,jm)}al(ym,sm,im,jm)}else bl(sm.statusText||
null,sm.status?"error":"abort",sm,im,jm)}})===_k(sm,im))return
sm.abort(),bl(null,"abort",sm,im,jm),sm;var vm=!("async"in im)||
im.async;if(sm.open(im.type,im.url,vm,im.username,im.password),im.xhrFields)for(Pk
in im.xhrFields)sm[Pk]=im.xhrFields[Pk];for(Pk in pm)tm.apply(sm,pm[Pk]);return
0<im.timeout&&(um=setTimeout(function()
{sm.onreadystatechange=el,sm.abort(),bl(null,"timeout",sm,im,jm)},im.timeout)),sm.s
end(im.data?im.data:null),sm},Lk.get=function(){return
Lk.ajax(il.apply(null,arguments))},Lk.post=function(){var
t=il.apply(null,arguments);return t.type="POST",Lk.ajax(t)},Lk.getJSON=function()
{var t=il.apply(null,arguments);return
t.dataType="json",Lk.ajax(t)},Lk.fn.load=function(t,e,r){if(!this.length)return
this;var i,n=this,a=t.split(/\s/),o=il(t,e,r),s=o.success;return
1<a.length&&(o.url=a[0],i=a[1]),o.success=function(t){n.html(i?
Lk("<div>").html(t.replace(Qk,"")).find(i):t),s&&s.apply(n,arguments)},Lk.ajax(o),t
his};var jl=encodeURIComponent;Lk.param=function(t,e){var r=[];return
r.add=function(t,e){Lk.isFunction(e)&&(e=e()),null==e&&(e=""),this.push(jl(t)
+"="+jl(e))},function r(i,t,n,a){var
o,s=Lk.isArray(t),l=Lk.isPlainObject(t);Lk.each(t,function(t,e)
{o=Lk.type(e),a&&(t=n?a:a+"["+(l||"object"==o||"array"==o?t:"")+"]"),!a&&s?
i.add(e.name,e.value):"array"==o||!n&&"object"==o?r(i,e,n,t):i.add(t,e)})}
(r,t,e),r.join("&").replace(/%20/g,"+")}}(Me),(cn=Me).Callbacks=function(i)
{i=cn.extend({},i);var e,r,n,a,o,s,l=[],u=!i.once&&[],d=function(t)
{for(e=i.memory&&t,r=!0,s=a||0,a=0,o=l.length,n=!0;l&&s<o;++s)if(!
1===l[s].apply(t[0],t[1])&&i.stopOnFalse){e=!1;break}n=!1,l&&(u?
u.length&&d(u.shift()):e?l.length=0:c.disable())},c={add:function(){if(l){var
t=l.length,r=function(t){cn.each(t,function(t,e){"function"==typeof e?
i.unique&&c.has(e)||l.push(e):e&&e.length&&"string"!=typeof
e&&r(e)})};r(arguments),n?o=l.length:e&&(a=t,d(e))}return this},remove:function()
{return l&&cn.each(arguments,function(t,e){for(var r;-
1<(r=cn.inArray(e,l,r));)l.splice(r,1),n&&(r<=o&&--o,r<=s&&--
s)}),this},has:function(t){return!(!l||!(t?-
1<cn.inArray(t,l):l.length))},empty:function(){return
o=l.length=0,this},disable:function(){return l=u=e=void 0,this},disabled:function()
{return!l},lock:function(){return u=void 0,e||c.disable(),this},locked:function()
{return!u},fireWith:function(t,e){return!l||r&&!u||(e=[t,(e=e||[]).slice?
e.slice():e],n?u.push(e):d(e)),this},fire:function(){return
c.fireWith(this,arguments)},fired:function(){return!!r}};return
c},Bn=Me,Cn=Array.prototype.slice,Bn.when=function(t){function e(e,r,i){return
function(t){r[e]=this,i[e]=1<arguments.length?Cn.call(arguments):t,i===n?
u.notifyWith(r,i):--l||u.resolveWith(r,i)}}var
n,r,i,a=Cn.call(arguments),o=a.length,s=0,l=1!==o||t&&Bn.isFunction(t.promise)?
o:0,u=1===l?t:Dn();if(1<o)for(n=new Array(o),r=new Array(o),i=new Array(o);s<o;+
+s)a[s]&&Bn.isFunction(a[s].promise)?
a[s].promise().done(e(s,i,a)).fail(u.reject).progress(e(s,r,n)):--l;return
l||u.resolveWith(i,a),u.promise()},Bn.Deferred=Dn,function(d){function u(t)
{return"string"==typeof t}var
c,e=1,f=Array.prototype.slice,h=d.isFunction,p={},a={},r="onfocusin"in
window,i={focus:"focusin",blur:"focusout"},g={mouseenter:"mouseover",mouseleave:"mo
useout"};function m(t){return t._zid||(t._zid=e++)}function o(t,e,r,i)
{if((e=v(e)).ns)var n=function(t){return new RegExp("(?:^| )"+t.replace("
"," .* ?")+"(?: |$)")}(e.ns);return(p[m(t)]||[]).filter(function(t){return t&&(!
e.e||t.e==e.e)&&(!e.ns||n.test(t.ns))&&(!r||m(t.fn)===m(r))&&(!i||
t.sel==i)})}function v(t){var
e=(""+t).split(".");return{e:e[0],ns:e.slice(1).sort().join(" ")}}function y(t,e)
{return t.del&&!r&&t.e in i||!!e}function A(t){return g[t]||r&&i[t]||t}function
_(n,t,e,a,o,s,l){var r=m(n),u=p[r]||(p[r]=[]);t.split(/\s/).forEach(function(t)
{if("ready"==t)return d(document).ready(e);var r=v(t);r.fn=e,r.sel=o,r.e in
g&&(e=function(t){var e=t.relatedTarget;if(!e||e!==this&&!d.contains(this,e))return
r.fn.apply(this,arguments)});var i=(r.del=s)||e;r.proxy=function(t){if(!
(t=T(t)).isImmediatePropagationStopped()){t.data=a;var e=i.apply(n,t._args==c?[t]:
[t].concat(t._args));return!
1===e&&(t.preventDefault(),t.stopPropagation()),e}},r.i=u.length,u.push(r),"addEven
tListener"in n&&n.addEventListener(A(r.e),r.proxy,y(r,l))})}function b(e,t,r,i,n)
{var a=m(e);(t||"").split(/\s/).forEach(function(t){o(e,t,r,i).forEach(function(t)
{delete p[a][t.i],"removeEventListener"in
e&&e.removeEventListener(A(t.e),t.proxy,y(t,n))})})}a.click=a.mousedown=a.mouseup=a
.mousemove="MouseEvents",d.event={add:_,remove:b},d.proxy=function(t,e){var r=2 in
arguments&&f.call(arguments,2);if(h(t)){function i(){return t.apply(e,r?
r.concat(f.call(arguments)):arguments)}return i._zid=m(t),i}if(u(e))return r?
(r.unshift(t[e],t),d.proxy.apply(null,r)):d.proxy(t[e],t);throw new
TypeError("expected function")},d.fn.bind=function(t,e,r){return
this.on(t,e,r)},d.fn.unbind=function(t,e){return
this.off(t,e)},d.fn.one=function(t,e,r,i){return this.on(t,e,r,i,1)};var
s=function(){return!0},E=function(){return!1},n=/^([A-Z]|returnValue$|layer[XY]$|
webkitMovement[XY]
$)/,t={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePro
pagationStopped",stopPropagation:"isPropagationStopped"};function T(i,n){return!
n&&i.isDefaultPrevented||(n||(n=i),d.each(t,function(t,e){var
r=n[t];i[t]=function(){return
this[e]=s,r&&r.apply(n,arguments)},i[e]=E}),i.timeStamp||(i.timeStamp=Date.now()),
(n.defaultPrevented!==c?n.defaultPrevented:"returnValue"in n?!
1===n.returnValue:n.getPreventDefault&&n.getPreventDefault())&&(i.isDefaultPrevente
d=s)),i}function S(t){var e,r={originalEvent:t};for(e in t)n.test(e)||t[e]===c||
(r[e]=t[e]);return T(r,t)}d.fn.delegate=function(t,e,r){return
this.on(e,t,r)},d.fn.undelegate=function(t,e,r){return
this.off(e,t,r)},d.fn.live=function(t,e){return
d(document.body).delegate(this.selector,t,e),this},d.fn.die=function(t,e){return
d(document.body).undelegate(this.selector,t,e),this},d.fn.on=function(e,n,r,a,o)
{var s,l,i=this;return e&&!u(e)?(d.each(e,function(t,e){i.on(t,n,r,e,o)}),i):
(u(n)||h(a)||!1===a||(a=r,r=n,n=c),a!==c&&!1!==r||(a=r,r=c),!
1===a&&(a=E),i.each(function(t,i){o&&(s=function(t){return
b(i,t.type,a),a.apply(this,arguments)}),n&&(l=function(t){var
e,r=d(t.target).closest(n,i).get(0);if(r&&r!==i)return e=d.extend(S(t),
{currentTarget:r,liveFired:i}),(s||a).apply(r,
[e].concat(f.call(arguments,1)))}),_(i,e,a,r,n,l||s)}))},d.fn.off=function(t,r,e)
{var i=this;return t&&!u(t)?(d.each(t,function(t,e){i.off(t,r,e)}),i):(u(r)||
h(e)||!1===e||(e=r,r=c),!1===e&&(e=E),i.each(function()
{b(this,t,e,r)}))},d.fn.trigger=function(t,e){return(t=u(t)||d.isPlainObject(t)?
d.Event(t):T(t))._args=e,this.each(function(){t.type in i&&"function"==typeof
this[t.type]?this[t.type]():"dispatchEvent"in this?
this.dispatchEvent(t):d(this).triggerHandler(t,e)})},d.fn.triggerHandler=function(r
,i){var n,a;return this.each(function(t,e){(n=S(u(r)?
d.Event(r):r))._args=i,n.target=e,d.each(o(e,r.type||r),function(t,e)
{if(a=e.proxy(n),n.isImmediatePropagationStopped())return!1})}),a},"focusin
focusout focus blur load resize scroll unload click dblclick mousedown mouseup
mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress
keyup error".split(" ").forEach(function(e){d.fn[e]=function(t){return 0 in
arguments?this.bind(e,t):this.trigger(e)}}),d.Event=function(t,e){u(t)||
(t=(e=t).type);var r=document.createEvent(a[t]||"Events"),i=!0;if(e)for(var n in
e)"bubbles"==n?i=!!e[n]:r[n]=e[n];return r.initEvent(t,i,!0),T(r)}}(Me),function()
{try{getComputedStyle(void 0)}catch(t){var
r=getComputedStyle;window.getComputedStyle=function(t,e){try{return r(t,e)}catch(t)
{return null}}}}
(),Oq=(Nq=Me).zepto,Pq=Oq.qsa,Qq=Oq.matches,Sq=Nq.expr[":"]={visible:function()
{if(Rq(this))return this},hidden:function(){if(!Rq(this))return
this},selected:function(){if(this.selected)return this},checked:function()
{if(this.checked)return this},parent:function(){return
this.parentNode},first:function(t){if(0===t)return this},last:function(t,e)
{if(t===e.length-1)return this},eq:function(t,e,r){if(t===r)return
this},contains:function(t,e,r){if(-1<Nq(this).text().indexOf(r))return
this},has:function(t,e,r){if(Oq.qsa(this,r).length)return this}},Tq=new
RegExp("(.*):(\\w+)(?:\\(([^)]+)\\))?$\\s*"),Uq=/^\s*>/,Vq="Zepto"+ +new
Date,Oq.qsa=function(a,o){return Wq(o,function(t,r,i){try{var e;!t&&r?
t="*":Uq.test(t)&&(e=Nq(a).addClass(Vq),t="."+Vq+" "+t);var n=Pq(a,t)}catch(t)
{throw console.error("error performing selector:
%o",o),t}finally{e&&e.removeClass(Vq)}return r?Oq.uniq(Nq.map(n,function(t,e)
{return r.call(t,e,n,i)})):n})},Oq.matches=function(i,t){return
Wq(t,function(t,e,r){return(!t||Qq(i,t))&&(!e||
e.call(i,null,r)===i)})},Ke.exports=Me},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});function n(t){return
null===t?"":(""+t).replace(o,function(t){return a[t]})}function i(a,t){var e,r=new
RegExp([(l.escape||u).source,(l.interpolate||u).source,(l.evaluate||
u).source].join("|")+"|$","g"),o=0,s="__p+='";a.replace(r,function(t,e,r,i,n)
{return s+=a.slice(o,n).replace(c,function(t){return"\\"+d[t]}),e&&(s+="'+\
n((__t=("+e+"))==null?'':escapeExpr(__t))+\n'"),r&&(s+="'+\
n((__t=("+r+"))==null?'':__t)+\n'"),i&&(s+="';\n"+i+"\
n__p+='"),o=n+t.length,t}),s+="';\n",l.variable||(s="with(obj||{}){\n"+s+"}\
n"),s="var __t,__p='',__j=Array.prototype.join,print=function()
{__p+=__j.call(arguments,'');};\n"+s+"return __p;\n//#
sourceURL=/microtemplates/source["+f+++"]";try{e=new
Function(l.variable||"obj","escapeExpr",s)}catch(t){throw t.source=s,t}if(t)return
e(t,n);function i(t){return e.call(this,t,n)}return i.source="function("+
(l.variable||"obj")+"){\n"+s+"}",i}var l={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<
%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},u=/(.)^/,d={"'":"'","\\":"\\","\
r":"r","\n":"n","\t":"t","\u2028":"u2028","\u2029":"u2029"},c=/\\|'|\r|\n|\t|\
u2028|\u2029/
g,a={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;"},o=new
RegExp("[&<>\"']","g"),f=0;i.settings=l,e.default=i,t.exports=e.default},function(t
,e){t.exports=function(r){var o=[];return o.toString=function(){return
this.map(function(t){var e=function(t,e){var r=t[1]||"",i=t[3];if(!i)return
r;if(e&&"function"==typeof btoa){var n=function(t){return"/*#
sourceMappingURL=data:application/json;charset=utf-
8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}
(i),a=i.sources.map(function(t){return"/*# sourceURL="+i.sourceRoot+t+"
*/"});return[r].concat(a).concat([n]).join("\n")}return[r].join("\n")}(t,r);return
t[2]?"@media "+t[2]+"{"+e+"}":e}).join("")},o.i=function(t,e){"string"==typeof
t&&(t=[[null,t,""]]);for(var r={},i=0;i<this.length;i++){var n=this[i]
[0];"number"==typeof n&&(r[n]=!0)}for(i=0;i<t.length;i++){var
a=t[i];"number"==typeof a[0]&&r[a[0]]||(e&&!a[2]?a[2]=e:e&&(a[2]="("+a[2]+") and
("+e+")"),o.push(a))}},o}},function(t,e){var
r=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=r)},function(t,e,r){var
i,n,a,l={},u=(i=function(){return window&&document&&document.all&&!
window.atob},function(){return void
0===n&&(n=i.apply(this,arguments)),n}),o=(a={},function(t){if("function"==typeof
t)return t();if(void 0===a[t]){var e=function(t){return
document.querySelector(t)}.call(this,t);if(window.HTMLIFrameElement&&e instanceof
window.HTMLIFrameElement)try{e=e.contentDocument.head}catch(t){e=null}a[t]=e}return
a[t]}),s=null,d=0,c=[],f=r(172);function h(t,e){for(var r=0;r<t.length;r++){var
i=t[r],n=l[i.id];if(n){n.refs++;for(var a=0;a<n.parts.length;a++)n.parts[a]
(i.parts[a]);for(;a<i.parts.length;a++)n.parts.push(A(i.parts[a],e))}else{var
o=[];for(a=0;a<i.parts.length;a+
+)o.push(A(i.parts[a],e));l[i.id]={id:i.id,refs:1,parts:o}}}}function p(t,e)
{for(var r=[],i={},n=0;n<t.length;n++){var a=t[n],o=e.base?
a[0]+e.base:a[0],s={css:a[1],media:a[2],sourceMap:a[3]};i[o]?
i[o].parts.push(s):r.push(i[o]={id:o,parts:[s]})}return r}function g(t,e){var
r=o(t.insertInto);if(!r)throw new Error("Couldn't find a style target. This
probably means that the value for the 'insertInto' parameter is invalid.");var
i=c[c.length-1];if("top"===t.insertAt)i?i.nextSibling?
r.insertBefore(e,i.nextSibling):r.appendChild(e):r.insertBefore(e,r.firstChild),c.p
ush(e);else if("bottom"===t.insertAt)r.appendChild(e);else{if("object"!=typeof
t.insertAt||!t.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value
for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or
Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var
n=o(t.insertInto+" "+t.insertAt.before);r.insertBefore(e,n)}}function m(t)
{if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var
e=c.indexOf(t);0<=e&&c.splice(e,1)}function v(t){var
e=document.createElement("style");return
t.attrs.type="text/css",y(e,t.attrs),g(t,e),e}function y(e,r)
{Object.keys(r).forEach(function(t){e.setAttribute(t,r[t])})}function
A(e,t){var r,i,n,a;if(t.transform&&e.css){if(!(a=t.transform(e.css)))return
function(){};e.css=a}if(t.singleton){var o=d++;r=s||(s=v(t)),i=E.bind(null,r,o,!
1),n=E.bind(null,r,o,!0)}else n=e.sourceMap&&"function"==typeof
URL&&"function"==typeof URL.createObjectURL&&"function"==typeof
URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?
(r=function(t){var e=document.createElement("link");return
t.attrs.type="text/css",t.attrs.rel="stylesheet",y(e,t.attrs),g(t,e),e}
(t),i=function(t,e,r){var i=r.css,n=r.sourceMap,a=void
0===e.convertToAbsoluteUrls&&n;(e.convertToAbsoluteUrls||a)&&(i=f(i));n&&(i+="\n/*#
sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JS
ON.stringify(n))))+" */");var o=new
Blob([i],{type:"text/css"}),s=t.href;t.href=URL.createObjectURL(o),s&&URL.revokeObj
ectURL(s)}.bind(null,r,t),function(){m(r),r.href&&URL.revokeObjectURL(r.href)}):
(r=v(t),i=function(t,e){var
r=e.css,i=e.media;i&&t.setAttribute("media",i);if(t.styleSheet)t.styleSheet.cssText
=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.creat
eTextNode(r))}}.bind(null,r),function(){m(r)});return i(e),function(t){if(t)
{if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else
n()}}t.exports=function(t,o){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof
document)throw new Error("The style-loader cannot be used in a non-browser
environment");(o=o||{}).attrs="object"==typeof o.attrs?o.attrs:
{},o.singleton||"boolean"==typeof o.singleton||(o.singleton=u()),o.insertInto||
(o.insertInto="head"),o.insertAt||(o.insertAt="bottom");var s=p(t,o);return
h(s,o),function(t){for(var e=[],r=0;r<s.length;r++){var i=s[r];
(n=l[i.id]).refs--,e.push(n)}t&&h(p(t,o),o);for(r=0;r<e.length;r++){var
n;if(0===(n=e[r]).refs){for(var a=0;a<n.parts.length;a++)n.parts[a]();delete
l[n.id]}}}};var _,b=(_=[],function(t,e){return _[t]=e,_.filter(Boolean).join("\
n")});function E(t,e,r,i){var
n=r?"":i.css;if(t.styleSheet)t.styleSheet.cssText=b(e,n);else{var
a=document.createTextNode(n),o=t.childNodes;o[e]&&t.removeChild(o[e]),o.length?
t.insertBefore(a,o[e]):t.appendChild(a)}}},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
i=f(r(12)),n=f(r(0)),a=f(r(1)),o=f(r(3)),s=f(r(2)),l=r(5),u=f(r(30)),d=f(r(20)),c=f
(r(6));function f(t){return t&&t.__esModule?t:{default:t}}var h,p=(h=u.default,
(0,s.default)(g,h),(0,o.default)(g,[{key:"isAudioOnly",get:function(){return!1}},
{key:"isAdaptive",get:function(){return!1}},{key:"ended",get:function(){return!1}},
{key:"i18n",get:function(){return this._i18n}},{key:"buffering",get:function()
{return!1}},{key:"consented",get:function(){return
this._consented}}]),g.prototype.consent=function(){this._consented=!
0},g.prototype.play=function(){},g.prototype.pause=function()
{},g.prototype.stop=function(){},g.prototype.seek=function(t)
{},g.prototype.seekPercentage=function(t)
{},g.prototype.getStartTimeOffset=function(){return
0},g.prototype.getDuration=function(){return 0},g.prototype.isPlaying=function()
{return!1},g.prototype.getPlaybackType=function(){return
g.NO_OP},g.prototype.isHighDefinitionInUse=function(){return!
1},g.prototype.volume=function(t){},g.prototype.configure=function(t)
{this._options=c.default.extend(this._options,t)},g.prototype.attemptAutoPlay=funct
ion(){var r=this;this.canAutoPlay(function(t,e)
{t&&r.play()})},g.prototype.canAutoPlay=function(t){t(!0,null)},(0,o.default)(g,
[{key:"isReady",get:function(){return!1}},
{key:"hasClosedCaptionsTracks",get:function(){return
0<this.closedCaptionsTracks.length}},{key:"closedCaptionsTracks",get:function()
{return[]}},{key:"closedCaptionsTrackId",get:function(){return-1},set:function(t)
{}}]),g);function g(t,e,r){(0,n.default)(this,g);var i=(0,a.default)
(this,h.call(this,t));return i.settings={},i._i18n=e,i.playerError=r,i._consented=!
1,i}e.default=p,(0,i.default)(p.prototype,d.default),p.extend=function(t)
{return(0,l.extend)(p,t)},p.canPlay=function(t,e){return!
1},p.VOD="vod",p.AOD="aod",p.LIVE="live",p.NO_OP="no_op",p.type="playback",t.export
s=e.default},function(t,e,r){t.exports={default:r(102),__esModule:!
0}},function(t,e,r){var i=r(50)("wks"),n=r(36),a=r(17).Symbol,o="function"==typeof
a;(t.exports=function(t){return i[t]||(i[t]=o&&a[t]||(o?a:n)
("Symbol."+t))}).store=i},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
i,n=r(143),a=(i=n)&&i.__esModule?i:
{default:i};e.default=a.default,t.exports=e.default},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
i=u(r(0)),n=u(r(1)),a=u(r(3)),o=u(r(2)),s=r(5),l=u(r(4));function u(t){return
t&&t.__esModule?t:{default:t}}var d,c=(d=l.default,(0,o.default)(f,d),(0,a.default)
(f,[{key:"options",get:function(){return this._options}}]),f);function f(){var
t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};(0,i.default)
(this,f);var e=(0,n.default)(this,d.call(this,t));return
e._options=t,e.uniqueId=(0,s.uniqueId)
("o"),e}e.default=c,t.exports=e.default},function(t,e,r){var
g=r(17),m=r(9),v=r(44),y=r(26),A="prototype",_=function(t,e,r){var
i,n,a,o=t&_.F,s=t&_.G,l=t&_.S,u=t&_.P,d=t&_.B,c=t&_.W,f=s?m:m[e]||
(m[e]={}),h=f[A],p=s?g:l?g[e]:(g[e]||{})[A];for(i in s&&(r=e),r)(n=!o&&p&&void 0!
==p[i])&&i in f||(a=n?p[i]:r[i],f[i]=s&&"function"!=typeof p[i]?r[i]:d&&n?
v(a,g):c&&p[i]==a?function(i){function t(t,e,r){if(this instanceof i)
{switch(arguments.length){case 0:return new i;case 1:return new i(t);case 2:return
new i(t,e)}return new i(t,e,r)}return i.apply(this,arguments)}return t[A]=i[A],t}
(a):u&&"function"==typeof a?v(Function.call,a):a,u&&((f.virtual||(f.virtual={}))
[i]=a,t&_.R&&h&&!
h[i]&&y(h,i,a)))};_.F=1,_.G=2,_.S=4,_.P=8,_.B=16,_.W=32,_.U=64,_.R=128,t.exports=_}
,function(t,e){var r=t.exports="undefined"!=typeof window&&window.Math==Math?
window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")
();"number"==typeof __g&&(__g=r)},function(t,e,r){var
i=r(21),n=r(65),a=r(45),o=Object.defineProperty;e.f=r(22)?
Object.defineProperty:function(t,e,r){if(i(t),e=a(e,!0),i(r),n)try{return
o(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not
supported!");return"value"in r&&(t[e]=r.value),t}},function(t,e,r){var
i=r(68),n=r(47);t.exports=function(t){return i(n(t))}},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
d=i(r(12)),c=i(r(29)),f=i(r(25));function i(t){return t&&t.__esModule?t:
{default:t}}var n={createError:function(t,e){var r=1<arguments.length&&void 0!==e?
e:{useCodePrefix:!0},i=this.constructor&&this.constructor.type||"",n=this.name||
i,a=this.i18n||this.core&&this.core.i18n||
this.container&&this.container.i18n,o=n+":"+
(t&&t.code||"unknown"),s={description:"",level:f.default.Levels.FATAL,origin:n,scop
e:i,raw:{}},l=(0,d.default)({},s,t,{code:r.useCodePrefix?
o:t.code});if(a&&l.level==f.default.Levels.FATAL&&!l.UI){var
u={title:a.t("default_error_title"),message:a.t("default_error_message")};l.UI=u}re
turn this.playerError?this.playerError.createError(l):c.default.warn(n,"PlayerError
is not defined. Error: ",l),l}};e.default=n,t.exports=e.default},function(t,e,r)
{var i=r(32);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an
object!");return t}},function(t,e,r){t.exports=!r(27)(function(){return 7!
=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){var
r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},function(t,e,r)
{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var
i=c(r(12)),n=c(r(0)),a=c(r(1)),o=c(r(3)),s=c(r(2)),l=r(5),u=c(r(30)),d=c(r(20));fun
ction c(t){return t&&t.__esModule?t:{default:t}}var f,h=(f=u.default,(0,s.default)
(p,f),(0,o.default)(p,[{key:"playerError",get:function(){return
this.core.playerError}}]),p.prototype.bindEvents=function()
{},p.prototype.getExternalInterface=function()
{return{}},p.prototype.enable=function(){this.enabled||(this.bindEvents(),this.
$el.show(),this.enabled=!0)},p.prototype.disable=function()
{this.stopListening(),this.$el.hide(),this.enabled=!
1},p.prototype.render=function(){return this},p);function p(t){(0,n.default)
(this,p);var e=(0,a.default)(this,f.call(this,t.options));return
e.core=t,e.enabled=!0,e.bindEvents(),e.render(),e}e.default=h,(0,i.default)
(h.prototype,d.default),h.extend=function(t){return(0,l.extend)
(h,t)},h.type="core",t.exports=e.default},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
i,n=r(80),a=(i=n)&&i.__esModule?i:
{default:i};e.default=a.default,t.exports=e.default},function(t,e,r){var
i=r(18),n=r(33);t.exports=r(22)?function(t,e,r){return
i.f(t,e,n(1,r))}:function(t,e,r){return t[e]=r,t}},function(t,e)
{t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,r){var
i=r(67),n=r(51);t.exports=Object.keys||function(t){return i(t,n)}},function(t,e,r)
{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var
i,n=r(162),a=(i=n)&&i.__esModule?i:
{default:i};e.default=a.default,t.exports=e.default},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
i=d(r(0)),n=d(r(1)),a=d(r(3)),o=d(r(2)),s=d(r(6)),l=r(5),u=d(r(15));function d(t)
{return t&&t.__esModule?t:{default:t}}var c,f=/^(\S+)\s*(.*)$/,h=(c=u.default,
(0,o.default)(p,c),(0,a.default)(p,[{key:"tagName",get:function(){return"div"}},
{key:"events",get:function(){return{}}},{key:"attributes",get:function()
{return{}}}]),p.prototype.$=function(t){return this.
$el.find(t)},p.prototype.render=function(){return
this},p.prototype.destroy=function(){return this.
$el.remove(),this.stopListening(),this.undelegateEvents(),this},p.prototype.setElem
ent=function(t,e){return this.$el&&this.undelegateEvents(),this.
$el=s.default.zepto.isZ(t)?t:(0,s.default)(t),this.el=this.$el[0],!1!
==e&&this.delegateEvents(),this},p.prototype.delegateEvents=function(t){if(!t&&!
(t=this.events))return this;for(var e in this.undelegateEvents(),t){var
r=t[e];if(r&&r.constructor!==Function&&(r=this[t[e]]),r){var
i=e.match(f),n=i[1],a=i[2];n+=".delegateEvents"+this.cid,""===a?this.
$el.on(n,r.bind(this)):this.$el.on(n,a,r.bind(this))}}return
this},p.prototype.undelegateEvents=function(){return this.
$el.off(".delegateEvents"+this.cid),this},p.prototype._ensureElement=function()
{if(this.el)this.setElement(this.el,!1);else{var
t=s.default.extend({},this.attributes);this.id&&(t.id=this.id),this.className&&(t.c
lass=this.className);var
e=l.DomRecycler.create(this.tagName).attr(t);this.setElement(e,!1)}},p);function
p(t){(0,i.default)(this,p);var e=(0,n.default)(this,c.call(this,t));return
e.cid=(0,l.uniqueId)
("c"),e._ensureElement(),e.delegateEvents(),e}e.default=h,t.exports=e.default},func
tion(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var
i=n(r(0));function n(t){return t&&t.__esModule?t:{default:t}}function a()
{(0,i.default)(this,a)}var o=new(n(r(4)).default);(e.default=a).on=function(t,e,r)
{o.on(t,e,r)},a.once=function(t,e,r){o.once(t,e,r)},a.off=function(t,e,r)
{o.off(t,e,r)},a.trigger=function(t){for(var e=arguments.length,r=Array(1<e?e-
1:0),i=1;i<e;i++)r[i-1]=arguments[i];o.trigger.apply(o,
[t].concat(r))},a.stopListening=function(t,e,r)
{o.stopListening(t,e,r)},t.exports=e.default},function(t,e){t.exports=function(t)
{return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e)
{t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!
(4&t),value:e}}},function(t,e){t.exports={}},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
i=c(r(12)),n=c(r(0)),a=c(r(1)),o=c(r(3)),s=c(r(2)),l=r(5),u=c(r(15)),d=c(r(20));fun
ction c(t){return t&&t.__esModule?t:{default:t}}var f,h=(f=u.default,(0,s.default)
(p,f),(0,o.default)(p,[{key:"playerError",get:function(){return
this.core.playerError}}]),p.prototype.bindEvents=function()
{},p.prototype.enable=function(){this.enabled||(this.bindEvents(),this.enabled=!
0)},p.prototype.disable=function()
{this.enabled&&(this.stopListening(),this.enabled=!
1)},p.prototype.getExternalInterface=function()
{return{}},p.prototype.destroy=function(){this.stopListening()},p);function p(t)
{(0,n.default)(this,p);var e=(0,a.default)(this,f.call(this,t.options));return
e.core=t,e.enabled=!0,e.bindEvents(),e}e.default=h,(0,i.default)
(h.prototype,d.default),h.extend=function(t){return(0,l.extend)
(h,t)},h.type="core",t.exports=e.default},function(t,e){var
r=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void
0===t?"":t,")_",(++r+i).toString(36))}},function(t,e)
{e.f={}.propertyIsEnumerable},function(t,e,r){var i=r(47);t.exports=function(t)
{return Object(i(t))}},function(t,e,r){"use strict";e.__esModule=!0;var
i=o(r(110)),n=o(r(120)),a="function"==typeof n.default&&"symbol"==typeof i.default?
function(t){return typeof t}:function(t){return t&&"function"==typeof
n.default&&t.constructor===n.default&&t!==n.default.prototype?"symbol":typeof
t};function o(t){return t&&t.__esModule?t:{default:t}}e.default="function"==typeof
n.default&&"symbol"===a(i.default)?function(t){return void
0===t?"undefined":a(t)}:function(t){return t&&"function"==typeof
n.default&&t.constructor===n.default&&t!==n.default.prototype?"symbol":void
0===t?"undefined":a(t)}},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
i,n=r(0),a=(i=n)&&i.__esModule?i:{default:i};function o(){(0,a.default)
(this,o),this.options={},this.playbackPlugins=[],this.currentSize={width:0,height:0
}}o._players={},o.getInstance=function(t){return o._players[t]||(o._players[t]=new
o)},e.default=o,t.exports=e.default},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
i,n=r(184),a=(i=n)&&i.__esModule?i:
{default:i};e.default=a.default,t.exports=e.default},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
i=c(r(12)),n=c(r(0)),a=c(r(1)),o=c(r(3)),s=c(r(2)),l=r(5),u=c(r(30)),d=c(r(20));fun
ction c(t){return t&&t.__esModule?t:{default:t}}var f,h=(f=u.default,(0,s.default)
(p,f),(0,o.default)(p,[{key:"playerError",get:function(){return
this.container.playerError}}]),p.prototype.enable=function(){this.enabled||
(this.bindEvents(),this.$el.show(),this.enabled=!0)},p.prototype.disable=function()
{this.stopListening(),this.$el.hide(),this.enabled=!
1},p.prototype.bindEvents=function(){},p);function p(t){(0,n.default)(this,p);var
e=(0,a.default)(this,f.call(this,t.options));return e.container=t,e.enabled=!
0,e.bindEvents(),e}e.default=h,(0,i.default)
(h.prototype,d.default),h.extend=function(t){return(0,l.extend)
(h,t)},h.type="container",t.exports=e.default},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
i=c(r(12)),n=c(r(0)),a=c(r(1)),o=c(r(3)),s=c(r(2)),l=c(r(15)),u=r(5),d=c(r(20));fun
ction c(t){return t&&t.__esModule?t:{default:t}}var f,h=(f=l.default,(0,s.default)
(p,f),(0,o.default)(p,[{key:"playerError",get:function(){return
this.container.playerError}}]),p.prototype.enable=function(){this.enabled||
(this.bindEvents(),this.enabled=!0)},p.prototype.disable=function()
{this.enabled&&(this.stopListening(),this.enabled=!
1)},p.prototype.bindEvents=function(){},p.prototype.destroy=function()
{this.stopListening()},p);function p(t){(0,n.default)(this,p);var e=(0,a.default)
(this,f.call(this,t.options));return e.container=t,e.enabled=!
0,e.bindEvents(),e}e.default=h,(0,i.default)
(h.prototype,d.default),h.extend=function(t){return(0,u.extend)
(h,t)},h.type="container",t.exports=e.default},function(t,e,r){var
a=r(104);t.exports=function(i,n,t){if(a(i),void 0===n)return i;switch(t){case
1:return function(t){return i.call(n,t)};case 2:return function(t,e){return
i.call(n,t,e)};case 3:return function(t,e,r){return i.call(n,t,e,r)}}return
function(){return i.apply(n,arguments)}}},function(t,e,r){var
n=r(32);t.exports=function(t,e){if(!n(t))return t;var
r,i;if(e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return
i;if("function"==typeof(r=t.valueOf)&&!n(i=r.call(t)))return i;if(!
e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;throw
TypeError("Can't convert object to primitive value")}},function(t,e){var
r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,e)
{t.exports=function(t){if(null==t)throw TypeError("Can't call method on
"+t);return t}},function(t,e){var r=Math.ceil,i=Math.floor;t.exports=function(t)
{return isNaN(t=+t)?0:(0<t?i:r)(t)}},function(t,e,r){var i=r(50)
("keys"),n=r(36);t.exports=function(t){return i[t]||(i[t]=n(t))}},function(t,e,r)
{var i=r(17),n="__core-js_shared__",a=i[n]||(i[n]={});t.exports=function(t){return
a[t]||(a[t]={})}},function(t,e)
{t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleS
tring,toString,valueOf".split(",")},function(t,e)
{e.f=Object.getOwnPropertySymbols},function(t,e,r)
{t.exports={default:r(108),__esModule:!0}},function(t,e,r){"use strict";var
i=r(112)(!0);r(71)(String,"String",function(t)
{this._t=String(t),this._i=0},function(){var t,e=this._t,r=this._i;return
r>=e.length?{value:void 0,done:!0}:(t=i(e,r),this._i+=t.length,{value:t,done:!
1})})},function(t,e){t.exports=!0},function(t,e,i){function n(){}var
a=i(21),o=i(114),s=i(51),l=i(49)("IE_PROTO"),u="prototype",d=function(){var
t,e=i(66)
("iframe"),r=s.length;for(e.style.display="none",i(115).appendChild(e),e.src="javas
cript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/
script>"),t.close(),d=t.F;r--;)delete d[u][s[r]];return
d()};t.exports=Object.create||function(t,e){var r;return null!==t?(n[u]=a(t),r=new
n,n[u]=null,r[l]=t):r=d(),void 0===e?r:o(r,e)}},function(t,e,r){var
i=r(18).f,n=r(23),a=r(13)("toStringTag");t.exports=function(t,e,r){t&&!n(t=r?
t:t.prototype,a)&&i(t,a,{configurable:!0,value:e})}},function(t,e,r)
{e.f=r(13)},function(t,e,r){var
i=r(17),n=r(9),a=r(55),o=r(58),s=r(18).f;t.exports=function(t){var e=n.Symbol||
(n.Symbol=a?{}:i.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,
{value:o.f(t)})}},function(t,e,r){var
i=r(37),n=r(33),a=r(19),o=r(45),s=r(23),l=r(65),u=Object.getOwnPropertyDescriptor;e
.f=r(22)?u:function(t,e){if(t=a(t),e=o(e,!0),l)try{return u(t,e)}catch(t)
{}if(s(t,e))return n(!i.f.call(t,e),t[e])}},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
i,n=r(163),a=(i=n)&&i.__esModule?i:
{default:i};e.default={Kibo:a.default},t.exports=e.default},function(t,e,r){"use
strict";e.__esModule=!0;var i,n=r(84),a=(i=n)&&i.__esModule?i:
{default:i};e.default=function(t){if(Array.isArray(t)){for(var
e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return(0,a.default)
(t)}},function(t,e){var r,i,n=t.exports={};function a(){throw new Error("setTimeout
has not been defined")}function o(){throw new Error("clearTimeout has not been
defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!
r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t)
{try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function()
{try{r="function"==typeof setTimeout?setTimeout:a}catch(t)
{r=a}try{i="function"==typeof clearTimeout?clearTimeout:o}catch(t){i=o}}();var
l,u=[],d=!1,c=-1;function f(){d&&l&&(d=!1,l.length?u=l.concat(u):c=-
1,u.length&&h())}function h(){if(!d){var t=s(f);d=!0;for(var e=u.length;e;)
{for(l=u,u=[];++c<e;)l&&l[c].run();c=-1,e=u.length}l=null,d=!1,function(e)
{if(i===clearTimeout)return clearTimeout(e);if((i===o||!i)&&clearTimeout)return
i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t)
{return i.call(this,e)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function g()
{}n.nextTick=function(t){var e=new Array(arguments.length-
1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)e[r-
1]=arguments[r];u.push(new p(t,e)),1!==u.length||d||
s(h)},p.prototype.run=function()
{this.fun.apply(null,this.array)},n.title="browser",n.browser=!
0,n.env={},n.argv=[],n.version="",n.versions={},n.on=g,n.addListener=g,n.once=g,n.o
ff=g,n.removeListener=g,n.removeAllListeners=g,n.emit=g,n.binding=function(t){throw
new Error("process.binding is not supported")},n.cwd=function()
{return"/"},n.chdir=function(t){throw new Error("process.chdir is not
supported")},n.umask=function(){return 0}},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!
0}),e.default=r(189),t.exports=e.default},function(t,e,r){t.exports=!r(22)&&!r(27)
(function(){return 7!=Object.defineProperty(r(66)("div"),"a",{get:function(){return
7}}).a})},function(t,e,r){var
i=r(32),n=r(17).document,a=i(n)&&i(n.createElement);t.exports=function(t){return a?
n.createElement(t):{}}},function(t,e,r){var o=r(23),s=r(19),l=r(106)(!1),u=r(49)
("IE_PROTO");t.exports=function(t,e){var r,i=s(t),n=0,a=[];for(r in i)r!
=u&&o(i,r)&&a.push(r);for(;e.length>n;)o(i,r=e[n++])&&(~l(a,r)||a.push(r));return
a}},function(t,e,r){var i=r(46);t.exports=Object("z").propertyIsEnumerable(0)?
Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},function(t,e,r){var
i=r(48),n=Math.min;t.exports=function(t){return 0<t?
n(i(t),9007199254740991):0}},function(t,e,r){var
n=r(16),a=r(9),o=r(27);t.exports=function(t,e){var r=(a.Object||{})[t]||
Object[t],i={};i[t]=e(r),n(n.S+n.F*o(function()
{r(1)}),"Object",i)}},function(t,e,r){"use strict";function A(){return this}var
_=r(55),b=r(16),E=r(72),T=r(26),S=r(23),k=r(34),L=r(113),R=r(57),C=r(116),w=r(13)
("iterator"),O=!
([].keys&&"next"in[].keys()),P="values";t.exports=function(t,e,r,i,n,a,o)
{L(r,e,i);function s(t){if(!O&&t in p)return p[t];switch(t){case"keys":case
P:return function(){return new r(this,t)}}return function(){return new
r(this,t)}}var l,u,d,c=e+" Iterator",f=n==P,h=!1,p=t.prototype,g=p[w]||
p["@@iterator"]||n&&p[n],m=g||s(n),v=n?f?s("entries"):m:void
0,y="Array"==e&&p.entries||g;if(y&&(d=C(y.call(new t)))!
==Object.prototype&&(R(d,c,!0),_||S(d,w)||T(d,w,A)),f&&g&&g.name!==P&&(h=!
0,m=function(){return g.call(this)}),_&&!o||!O&&!h&&p[w]||
T(p,w,m),k[e]=m,k[c]=A,n)if(l={values:f?m:s(P),keys:a?
m:s("keys"),entries:v},o)for(u in l)u in p||E(p,u,l[u]);else b(b.P+b.F*(O||
h),e,l);return l}},function(t,e,r){t.exports=r(26)},function(t,e,r){r(117);for(var
i=r(17),n=r(26),a=r(34),o=r(13)
("toStringTag"),s=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleL
ist"],l=0;l<5;l++){var u=s[l],d=i[u],c=d&&d.prototype;c&&!
c[o]&&n(c,o,u),a[u]=a.Array}},function(t,e,r){var
i=r(67),n=r(51).concat("length","prototype");e.f=Object.getOwnPropertyNames||
function(t){return i(t,n)}},function(t,e,r){t.exports={default:r(131),__esModule:!
0}},function(t,e,r){t.exports={default:r(137),__esModule:!0}},function(t,e,r){var
i=r(147),n=r(13)("iterator"),a=r(34);t.exports=r(9).getIteratorMethod=function(t)
{if(null!=t)return t[n]||t["@@iterator"]||a[i(t)]}},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
i,n=r(166),a=(i=n)&&i.__esModule?i:
{default:i};e.default=a.default,t.exports=e.default},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
i=a(r(6)),n=a(r(7));function a(t){return t&&t.__esModule?t:{default:t}}var
o={getStyleFor:function(t,e){var r=1<arguments.length&&void 0!==e?e:
{baseUrl:""};return(0,i.default)('<style
class="clappr-style"></style>').html((0,n.default)(t.toString())
(r))}};e.default=o,t.exports=e.default},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
i=d(r(0)),n=d(r(1)),a=d(r(3)),o=d(r(2)),s=d(r(4)),l=d(r(15)),u=d(r(29));function
d(t){return t&&t.__esModule?t:{default:t}}var c,f=(c=l.default,(0,o.default)(h,c),
(0,a.default)(h,[{key:"name",get:function(){return"error"}}],
[{key:"Levels",get:function()
{return{FATAL:"FATAL",WARN:"WARN",INFO:"INFO"}}}]),h.prototype.createError=function
(t){this.core?this.core.trigger(s.default.ERROR,t):u.default.warn(this.name,"Core
is not set. Error: ",t)},h);function h(){var t=0<arguments.length&&void 0!
==arguments[0]?arguments[0]:{},e=arguments[1];(0,i.default)(this,h);var
r=(0,n.default)(this,c.call(this,t));return
r.core=e,r}e.default=f,t.exports=e.default},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
i,n=r(169),a=(i=n)&&i.__esModule?i:
{default:i};e.default=a.default,t.exports=e.default},function(t,e)
{t.exports=function(t){return"string"!=typeof t?t:(/^['"].*['"]
$/.test(t)&&(t=t.slice(1,-1)),/["'()
\t\n]/.test(t)?'"'+t.replace(/"/g,'\\"').replace(/\n/g,"\\n")
+'"':t)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",
{value:!0});var i,n=r(177),a=(i=n)&&i.__esModule?i:
{default:i};e.default=a.default,t.exports=e.default},function(t,e,r)
{t.exports={default:r(178),__esModule:!0}},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
i,n=r(188),a=(i=n)&&i.__esModule?i:
{default:i};e.default=a.default,t.exports=e.default},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
i,n=r(194),a=(i=n)&&i.__esModule?i:
{default:i};e.default=a.default,t.exports=e.default},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
i,n=r(195),a=(i=n)&&i.__esModule?i:
{default:i};e.default=a.default,t.exports=e.default},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
i,n=r(198),a=(i=n)&&i.__esModule?i:
{default:i};e.default=a.default,t.exports=e.default},function(t,e,r)
{t.exports={default:r(199),__esModule:!0}},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
i,n=r(202),a=(i=n)&&i.__esModule?i:
{default:i};e.default=a.default,t.exports=e.default},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
i,n=r(205),a=(i=n)&&i.__esModule?i:
{default:i};e.default=a.default,t.exports=e.default},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
i,n=r(209),a=(i=n)&&i.__esModule?i:
{default:i};e.default=a.default,t.exports=e.default},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
i,n=r(215),a=(i=n)&&i.__esModule?i:
{default:i};e.default=a.default,t.exports=e.default},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
i,n=r(219),a=(i=n)&&i.__esModule?i:
{default:i};e.default=a.default,t.exports=e.default},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
i,n=r(225),a=(i=n)&&i.__esModule?i:
{default:i};e.default=a.default,t.exports=e.default},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
i,n=r(226),a=(i=n)&&i.__esModule?i:
{default:i};e.default=a.default,t.exports=e.default},function(t,e){t.exports="<
%=baseUrl%>/a8c874b93b3d848f39a71260c57e3863.cur"},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
i,n=r(230),a=(i=n)&&i.__esModule?i:
{default:i};e.default=a.default,t.exports=e.default},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
i,n=r(239),a=(i=n)&&i.__esModule?i:
{default:i};e.default=a.default,t.exports=e.default},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
i=j(r(101)),n=j(r(5)),a=j(r(4)),o=j(r(11)),s=j(r(43)),l=j(r(35)),u=j(r(24)),d=j(r(4
2)),c=j(r(15)),f=j(r(30)),h=j(r(14)),p=j(r(81)),g=j(r(78)),m=j(r(25)),v=j(r(83)),y=
j(r(31)),A=j(r(40)),_=j(r(64)),b=j(r(85)),E=j(r(87)),T=j(r(88)),S=j(r(86)),k=j(r(41
)),L=j(r(90)),R=j(r(91)),C=j(r(96)),w=j(r(95)),O=j(r(98)),P=j(r(99)),D=j(r(29)),I=j
(r(94)),x=j(r(92)),M=j(r(93)),N=j(r(79)),F=j(r(61)),B=j(r(7)),U=j(r(6));function
j(t){return t&&t.__esModule?t:
{default:t}}e.default={Player:i.default,Mediator:y.default,Events:a.default,Browser
:h.default,PlayerInfo:A.default,MediaControl:C.default,ContainerPlugin:s.default,UI
ContainerPlugin:d.default,CorePlugin:l.default,UICorePlugin:u.default,Playback:o.de
fault,Container:p.default,Core:g.default,PlayerError:m.default,Loader:v.default,Bas
eObject:c.default,UIObject:f.default,Utils:n.default,BaseFlashPlayback:_.default,Fl
ash:b.default,FlasHLS:E.default,HLS:T.default,HTML5Audio:S.default,HTML5Video:k.def
ault,HTMLImg:L.default,NoOp:R.default,ClickToPausePlugin:w.default,DVRControls:O.de
fault,Favicon:P.default,Log:D.default,Poster:I.default,SpinnerThreeBouncePlugin:x.d
efault,WaterMarkPlugin:M.default,Styler:N.default,Vendor:F.default,version:"0.3.13"
,template:B.default,$:U.default},t.exports=e.default},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
i=y(r(12)),a=y(r(53)),n=y(r(0)),o=y(r(1)),s=y(r(3)),l=y(r(2)),u=r(5),d=y(r(15)),c=y
(r(4)),f=y(r(14)),h=y(r(164)),p=y(r(83)),g=y(r(40)),m=y(r(20)),v=y(r(6));function
y(t){return t&&t.__esModule?t:{default:t}}var A,_=(0,u.currentScriptUrl)
().replace(/\/[^/]+$/,""),b=(A=d.default,(0,l.default)(E,A),(0,s.default)(E,
[{key:"loader",set:function(t){this._loader=t},get:function(){return this._loader||
(this._loader=new p.default(this.options.plugins||
{},this.options.playerId)),this._loader}},{key:"ended",get:function(){return
this.core.activeContainer.ended}},{key:"buffering",get:function(){return
this.core.activeContainer.buffering}},{key:"isReady",get:function(){return!!
this._ready}},{key:"eventsMapping",get:function()
{return{onReady:c.default.PLAYER_READY,onResize:c.default.PLAYER_RESIZE,onPlay:c.de
fault.PLAYER_PLAY,onPause:c.default.PLAYER_PAUSE,onStop:c.default.PLAYER_STOP,onEnd
ed:c.default.PLAYER_ENDED,onSeek:c.default.PLAYER_SEEK,onError:c.default.PLAYER_ERR
OR,onTimeUpdate:c.default.PLAYER_TIMEUPDATE,onVolumeUpdate:c.default.PLAYER_VOLUMEU
PDATE,onSubtitleAvailable:c.default.PLAYER_SUBTITLE_AVAILABLE}}}]),E.prototype.setP
arentId=function(t){var e=document.querySelector(t);return
e&&this.attachTo(e),this},E.prototype.attachTo=function(t){return
this.options.parentElement=t,this.core=this._coreFactory.create(),this._addEventLis
teners(),this},E.prototype._addEventListeners=function(){return this.core.isReady?
this._onReady():this.listenToOnce(this.core,c.default.CORE_READY,this._onReady),thi
s.listenTo(this.core,c.default.CORE_ACTIVE_CONTAINER_CHANGED,this._containerChanged
),this.listenTo(this.core,c.default.CORE_FULLSCREEN,this._onFullscreenChange),this.
listenTo(this.core,c.default.CORE_RESIZE,thi
s._onResize),this},E.prototype._addContainerEventListeners=function(){var
t=this.core.activeContainer;return
t&&(this.listenTo(t,c.default.CONTAINER_PLAY,this._onPlay),this.listenTo(t,c.defaul
t.CONTAINER_PAUSE,this._onPause),this.listenTo(t,c.default.CONTAINER_STOP,this._onS
top),this.listenTo(t,c.default.CONTAINER_ENDED,this._onEnded),this.listenTo(t,c.def
ault.CONTAINER_SEEK,this._onSeek),this.listenTo(t,c.default.CONTAINER_ERROR,this._o
nError),this.listenTo(t,c.default.CONTAINER_TIMEUPDATE,this._onTimeUpdate),this.lis
tenTo(t,c.default.CONTAINER_VOLUME,this._onVolumeUpdate),this.listenTo(t,c.default.
CONTAINER_SUBTITLE_AVAILABLE,this._onSubtitleAvailable)),this},E.prototype._registe
rOptionEventListeners=function(t,e){var i=this,n=0<arguments.length&&void 0!==t?t:
{},r=1<arguments.length&&void 0!==e?e:{};return 0<(0,a.default)
(n).length&&(0,a.default)(r).forEach(function(t){var
e=i.eventsMapping[t];e&&i.off(e,r[t])}),(0,a.default)(n).forEach(function(t){var
e=i.eventsMapping[t];if(e){var r=n[t];(r="function"==typeof
r&&r)&&i.on(e,r)}}),this},E.prototype._containerChanged=function()
{this.stopListening(),this._addEventListeners()},E.prototype._onReady=function()
{this._ready=!
0,this._addContainerEventListeners(),this.trigger(c.default.PLAYER_READY)},E.protot
ype._onFullscreenChange=function(t)
{this.trigger(c.default.PLAYER_FULLSCREEN,t)},E.prototype._onVolumeUpdate=function(
t)
{this.trigger(c.default.PLAYER_VOLUMEUPDATE,t)},E.prototype._onSubtitleAvailable=fu
nction()
{this.trigger(c.default.PLAYER_SUBTITLE_AVAILABLE)},E.prototype._onResize=function(
t){this.trigger(c.default.PLAYER_RESIZE,t)},E.prototype._onPlay=function()
{this.trigger(c.default.PLAYER_PLAY)},E.prototype._onPause=function()
{this.trigger(c.default.PLAYER_PAUSE)},E.prototype._onStop=function()
{this.trigger(c.default.PLAYER_STOP,this.getCurrentTime())},E.prototype._onEnded=fu
nction(){this.trigger(c.default.PLAYER_ENDED)},E.prototype._onSeek=function(t)
{this.trigger(c.default.PLAYER_SEEK,t)},E.prototype._onTimeUpdate=function(t)
{this.trigger(c.default.PLAYER_TIMEUPDATE,t)},E.prototype._onError=function(t)
{this.trigger(c.default.PLAYER_ERROR,t)},E.prototype._normalizeSources=function(t)
{var e=t.sources||(void 0!==t.source?[t.source]:[]);return 0===e.length?
[{source:"",mimeType:""}]:e},E.prototype.resize=function(t){return
this.core.resize(t),this},E.prototype.load=function(t,e,r){return void 0!
==r&&this.configure({autoPlay:!!
r}),this.core.load(t,e),this},E.prototype.destroy=function(){return
this.stopListening(),this.core.destroy(),this},E.prototype.consent=function()
{return this.core.getCurrentPlayback().consent(),this},E.prototype.play=function()
{return this.core.activeContainer.play(),this},E.prototype.pause=function(){return
this.core.activeContainer.pause(),this},E.prototype.stop=function(){return
this.core.activeContainer.stop(),this},E.prototype.seek=function(t){return
this.core.activeContainer.seek(t),this},E.prototype.seekPercentage=function(t)
{return
this.core.activeContainer.seekPercentage(t),this},E.prototype.mute=function()
{return
this._mutedVolume=this.getVolume(),this.setVolume(0),this},E.prototype.unmute=funct
ion(){return this.setVolume("number"==typeof this._mutedVolume?
this._mutedVolume:100),this._mutedVolume=null,this},E.prototype.isPlaying=function(
){return this.core.activeContainer.isPlaying()},E.prototype.isDvrEnabled=function()
{return this.core.activeContainer.isDvrEnabled()},E.prototype.isDvrInUse=function()
{return this.core.activeContainer.isDvrInUse()},E.prototype.configure=function(t)
{var e=0<arguments.length&&void 0!==t?t:{};return
this._registerOptionEventListeners(e.events,this.options.events),this.core.configur
e(e),this},E.prototype.getPlugin=function(e){return
this.core.plugins.concat(this.core.activeContainer.plugins).filter(function(t)
{return t.name===e})[0]},E.prototype.getCurrentTime=function(){return
this.core.activeContainer.getCurrentTime()},E.prototype.getStartTimeOffset=function
(){return
this.core.activeContainer.getStartTimeOffset()},E.prototype.getDuration=function()
{return this.core.activeContainer.getDuration()},E);function E(t){(0,n.default)
(this,E);var e=(0,o.default)(this,A.call(this,t)),r={playerId:(0,u.uniqueId)
(""),persistConfig:!
0,width:640,height:360,baseUrl:_,allowUserInteraction:f.default.isMobile,playback:
{recycleVideo:!0}};return
e._options=v.default.extend(r,t),e.options.sources=e._normalizeSources(t),e.options
.chromeless||(e.options.allowUserInteraction=!0),e.options.allowUserInteraction||
(e.options.disableKeyboardShortcuts=!
0),e._registerOptionEventListeners(e.options.events),e._coreFactory=new
h.default(e),e.playerInfo=g.default.getInstance(e.options.playerId),e.playerInfo.cu
rrentSize={width:t.width,height:t.height},e.playerInfo.options=e.options,e.options.
parentId?
e.setParentId(e.options.parentId):e.options.parent&&e.attachTo(e.options.parent),e}
e.default=b,(0,i.default)
(b.prototype,m.default),t.exports=e.default},function(t,e,r)
{r(103),t.exports=r(9).Object.assign},function(t,e,r){var
i=r(16);i(i.S+i.F,"Object",{assign:r(105)})},function(t,e){t.exports=function(t)
{if("function"!=typeof t)throw TypeError(t+" is not a function!");return
t}},function(t,e,r){"use strict";var
f=r(28),h=r(52),p=r(37),g=r(38),m=r(68),n=Object.assign;t.exports=!n||r(27)
(function(){var t={},e={},r=Symbol(),i="abcdefghijklmnopqrst";return
t[r]=7,i.split("").forEach(function(t){e[t]=t}),7!=n({},t)[r]||
Object.keys(n({},e)).join("")!=i})?function(t,e){for(var
r=g(t),i=arguments.length,n=1,a=h.f,o=p.f;n<i;)for(var s,l=m(arguments[n++]),u=a?
f(l).concat(a(l)):f(l),d=u.length,c=0;c<d;)o.call(l,s=u[c++])&&(r[s]=l[s]);return
r}:n},function(t,e,r){var l=r(19),u=r(69),d=r(107);t.exports=function(s){return
function(t,e,r){var i,n=l(t),a=u(n.length),o=d(r,a);if(s&&e!=e)
{for(;o<a;)if((i=n[o++])!=i)return!0}else for(;o<a;o++)if((s||o in
n)&&n[o]===e)return s||o||0;return!s&&-1}}},function(t,e,r){var
i=r(48),n=Math.max,a=Math.min;t.exports=function(t,e){return(t=i(t))<0?
n(t+e,0):a(t,e)}},function(t,e,r)
{r(109),t.exports=r(9).Object.keys},function(t,e,r){var i=r(38),n=r(28);r(70)
("keys",function(){return function(t){return n(i(t))}})},function(t,e,r)
{t.exports={default:r(111),__esModule:!0}},function(t,e,r)
{r(54),r(73),t.exports=r(58).f("iterator")},function(t,e,r){var
l=r(48),u=r(47);t.exports=function(s){return function(t,e){var
r,i,n=String(u(t)),a=l(e),o=n.length;return a<0||o<=a?s?"":void 0:
(r=n.charCodeAt(a))<55296||56319<r||a+1===o||(i=n.charCodeAt(a+1))<56320||57343<i?
s?n.charAt(a):r:s?n.slice(a,a+2):i-56320+(r-55296<<10)+65536}}},function(t,e,r)
{"use strict";var i=r(56),n=r(33),a=r(57),o={};r(26)(o,r(13)("iterator"),function()
{return this}),t.exports=function(t,e,r){t.prototype=i(o,{next:n(1,r)}),a(t,e+"
Iterator")}},function(t,e,r){var o=r(18),s=r(21),l=r(28);t.exports=r(22)?
Object.defineProperties:function(t,e){s(t);for(var
r,i=l(e),n=i.length,a=0;a<n;)o.f(t,r=i[a++],e[r]);return t}},function(t,e,r)
{t.exports=r(17).document&&document.documentElement},function(t,e,r){var
i=r(23),n=r(38),a=r(49)
("IE_PROTO"),o=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return
t=n(t),i(t,a)?t[a]:"function"==typeof t.constructor&&t instanceof t.constructor?
t.constructor.prototype:t instanceof Object?o:null}},function(t,e,r){"use
strict";var i=r(118),n=r(119),a=r(34),o=r(19);t.exports=r(71)
(Array,"Array",function(t,e){this._t=o(t),this._i=0,this._k=e},function(){var
t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void
0,n(1)):n(0,"keys"==e?r:"values"==e?t[r]:
[r,t[r]])},"values"),a.Arguments=a.Array,i("keys"),i("values"),i("entries")},functi
on(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e)
{return{value:e,done:!!t}}},function(t,e,r){t.exports={default:r(121),__esModule:!
0}},function(t,e,r)
{r(122),r(128),r(129),r(130),t.exports=r(9).Symbol},function(t,e,r){"use
strict";function i(t){var e=H[t]=w(F[j]);return e._k=t,e}function n(t,e)
{k(t);for(var r,i=T(e=L(e)),n=0,a=i.length;n<a;)J(t,r=i[n++],e[r]);return
t}function a(t){var e=G.call(this,t=R(t,!0));return!(this===z&&d(H,t)&&!d($,t))&&(!
(e||!d(this,t)||!d(H,t)||d(this,K)&&this[K][t])||e)}function o(t,e)
{if(t=L(t),e=R(e,!0),t!==z||!d(H,e)||d($,e)){var r=x(t,e);return!r||!d(H,e)||
d(t,K)&&t[K][e]||(r.enumerable=!0),r}}function s(t){for(var
e,r=N(L(t)),i=[],n=0;r.length>n;)d(H,e=r[n++])||e==K||e==p||i.push(e);return
i}function l(t){for(var e,r=t===z,i=N(r?$:L(t)),n=[],a=0;i.length>a;)!d(H,e=i[a+
+])||r&&!d(z,e)||n.push(H[e]);return n}var
u=r(17),d=r(23),c=r(22),f=r(16),h=r(72),p=r(123).KEY,g=r(27),m=r(50),v=r(57),y=r(36
),A=r(13),_=r(58),b=r(59),E=r(124),T=r(125),S=r(126),k=r(21),L=r(19),R=r(45),C=r(33
),w=r(56),O=r(127),P=r(60),D=r(18),I=r(28),x=P.f,M=D.f,N=O.f,F=u.Symbol,B=u.JSON,U=
B&&B.stringify,j="prototype",K=A("_hidden"),V=A("toPrimitive"),G={}.propertyIsEnume
rable,Y=m("symbol-registry"),H=m("symbols"),$=m("op-
symbols"),z=Object[j],W="function"==typeof F,q=u.QObject,X=!q||!q[j]||!
q[j].findChild,Z=c&&g(function(){return 7!=w(M({},"a",{get:function(){return
M(this,"a",{value:7}).a}})).a})?function(t,e,r){var i=x(z,e);i&&delete
z[e],M(t,e,r),i&&t!==z&&M(z,e,i)}:M,Q=W&&"symbol"==typeof F.iterator?function(t)
{return"symbol"==typeof t}:function(t){return t instanceof F},J=function(t,e,r)
{return t===z&&J($,e,r),k(t),e=R(e,!0),k(r),d(H,e)?(r.enumerable?(d(t,K)&&t[K]
[e]&&(t[K][e]=!1),r=w(r,{enumerable:C(0,!1)})):(d(t,K)||M(t,K,C(1,{})),t[K][e]=!
0),Z(t,e,r)):M(t,e,r)};W||(h((F=function(t){if(this instanceof F)throw
TypeError("Symbol is not a constructor!");var e=y(0<arguments.length?t:void
0),r=function(t){this===z&&r.call($,t),d(this,K)&&d(this[K],e)&&(this[K][e]=!
1),Z(this,e,C(1,t))};return c&&X&&Z(z,e,{configurable:!0,set:r}),i(e)})
[j],"toString",function(){return
this._k}),P.f=o,D.f=J,r(74).f=O.f=s,r(37).f=a,r(52).f=l,c&&!
r(55)&&h(z,"propertyIsEnumerable",a,!0),_.f=function(t){return
i(A(t))}),f(f.G+f.W+f.F*!W,{Symbol:F});for(var
tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPr
imitive,toStringTag,unscopables".split(","),et
=0;tt.length>et;)A(tt[et++]);for(tt=I(A.store),et=0;tt.length>et;)b(tt[et+
+]);f(f.S+f.F*!W,"Symbol",{for:function(t){return d(Y,t+="")?
Y[t]:Y[t]=F(t)},keyFor:function(t){if(Q(t))return E(Y,t);throw TypeError(t+" is not
a symbol!")},useSetter:function(){X=!0},useSimple:function(){X=!1}}),f(f.S+f.F*!
W,"Object",{create:function(t,e){return void 0===e?
w(t):n(w(t),e)},defineProperty:J,defineProperties:n,getOwnPropertyDescriptor:o,getO
wnPropertyNames:s,getOwnPropertySymbols:l}),B&&f(f.S+f.F*(!W||g(function(){var
t=F();return"[null]"!=U([t])||"{}"!=U({a:t})||"{}"!=U(Object(t))})),"JSON",
{stringify:function(t){if(void 0!==t&&!Q(t)){for(var
e,r,i=[t],n=1;n<arguments.length;)i.push(arguments[n+
+]);return"function"==typeof(e=i[1])&&(r=e),!r&&S(e)||(e=function(t,e)
{if(r&&(e=r.call(this,t,e)),!Q(e))return e}),i[1]=e,U.apply(B,i)}}}),F[j][V]||r(26)
(F[j],V,F[j].valueOf),v(F,"Symbol"),v(Math,"Math",!0),v(u.JSON,"JSON",!
0)},function(t,e,r){function i(t){s(t,n,{value:{i:"O"+ ++l,w:{}}})}var n=r(36)
("meta"),a=r(32),o=r(23),s=r(18).f,l=0,u=Object.isExtensible||function(){return!
0},d=!r(27)(function(){return
u(Object.preventExtensions({}))}),c=t.exports={KEY:n,NEED:!1,fastKey:function(t,e)
{if(!a(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,n))
{if(!u(t))return"F";if(!e)return"E";i(t)}return t[n].i},getWeak:function(t,e){if(!
o(t,n)){if(!u(t))return!0;if(!e)return!1;i(t)}return t[n].w},onFreeze:function(t)
{return d&&c.NEED&&u(t)&&!o(t,n)&&i(t),t}}},function(t,e,r){var
s=r(28),l=r(19);t.exports=function(t,e){for(var
r,i=l(t),n=s(i),a=n.length,o=0;o<a;)if(i[r=n[o++]]===e)return r}},function(t,e,r)
{var s=r(28),l=r(52),u=r(37);t.exports=function(t){var e=s(t),r=l.f;if(r)for(var
i,n=r(t),a=u.f,o=0;n.length>o;)a.call(t,i=n[o++])&&e.push(i);return
e}},function(t,e,r){var i=r(46);t.exports=Array.isArray||function(t)
{return"Array"==i(t)}},function(t,e,r){var
i=r(19),n=r(74).f,a={}.toString,o="object"==typeof
window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):
[];t.exports.f=function(t){return o&&"[object Window]"==a.call(t)?function(t)
{try{return n(t)}catch(t){return o.slice()}}(t):n(i(t))}},function(t,e)
{},function(t,e,r){r(59)("asyncIterator")},function(t,e,r){r(59)
("observable")},function(t,e,r){r(132);var i=r(9).Object;t.exports=function(t,e,r)
{return i.defineProperty(t,e,r)}},function(t,e,r){var i=r(16);i(i.S+i.F*!
r(22),"Object",{defineProperty:r(18).f})},function(t,e,r)
{t.exports={default:r(134),__esModule:!0}},function(t,e,r)
{r(135),t.exports=r(9).Object.setPrototypeOf},function(t,e,r){var
i=r(16);i(i.S,"Object",{setPrototypeOf:r(136).set})},function(t,e,n){function
a(t,e){if(i(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")}var
r=n(32),i=n(21);t.exports={set:Object.setPrototypeOf||("__proto__"in{}?
function(t,r,i){try{(i=n(44)
(Function.call,n(60).f(Object.prototype,"__proto__").set,2))(t,[]),r=!(t instanceof
Array)}catch(t){r=!0}return function(t,e){return a(t,e),r?t.__proto__=e:i(t,e),t}}
({},!1):void 0),check:a}},function(t,e,r){r(138);var
i=r(9).Object;t.exports=function(t,e){return i.create(t,e)}},function(t,e,r){var
i=r(16);i(i.S,"Object",{create:r(56)})},function(t,e,r)
{t.exports={default:r(140),__esModule:!0}},function(t,e,r){r(141);var
i=r(9).Object;t.exports=function(t,e){return
i.getOwnPropertyDescriptor(t,e)}},function(t,e,r){var i=r(19),n=r(60).f;r(70)
("getOwnPropertyDescriptor",function(){return function(t,e){return
n(i(t),e)}})},function(t,e,r){"use strict";Array.prototype.find||
Object.defineProperty(Array.prototype,"find",{value:function(t,e)
{if(null==this)throw new TypeError('"this" is null or not defined');var
r=Object(this),i=r.length>>>0;if("function"!=typeof t)throw new
TypeError("predicate must be a function");for(var n=e,a=0;a<i;){var
o=r[a];if(t.call(n,o,a,r))return o;a++}}})},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!
0}),e.getDevice=e.getViewportSize=e.getOsData=e.getBrowserData=e.getBrowserInfo=voi
d 0;var d=n(r(144)),i=n(r(6)),c=n(r(148)),f=n(r(149));function n(t){return
t&&t.__esModule?t:{default:t}}var h={},a=e.getBrowserInfo=function(t){var
e=t.match(/\b(playstation 4|nx|opera|chrome|safari|firefox|msie|trident(?=\/))\/?\
s*(\d+)/i)||[],r=void 0;if(/trident/i.test(e[1]))return r=/\brv[
:]+(\d+)/g.exec(t)||[],{name:"IE",version:parseInt(r[1]||"")};if("Chrome"===e[1])
{if(null!=(r=t.match(/\bOPR\/(\
d+)/)))return{name:"Opera",version:parseInt(r[1])};if(null!=(r=t.match(/\bEdge\/(\
d+)/)))return{name:"Edge",version:parseInt(r[1])}}else/android/
i.test(t)&&(r=t.match(/version\/(\d+)/i))&&(e.splice(1,1,"Android
WebView"),e.splice(2,1,r[1]));return{name:(e=e[2]?[e[1],e[2]]:
[navigator.appName,navigator.appVersion,"-?"])
[0],version:parseInt(e[1])}},o=e.getBrowserData=function(){var
t={},e=h.userAgent.toLowerCase(),r=!0,i=!1,n=void 0;try{for(var a,o=(0,d.default)
(c.default);!(r=(a=o.next()).done);r=!0){var s=a.value,l=new
RegExp(s.identifier.toLowerCase()).exec(e);if(null!=l&&l[1])
{if(t.name=s.name,t.group=s.group,s.versionIdentifier){var u=new
RegExp(s.versionIdentifier.toLowerCase()).exec(e);null!=u&&u[1]&&p(u[1],t)}else
p(l[1],t);break}}}catch(t){i=!0,n=t}finally{try{!
r&&o.return&&o.return()}finally{if(i)throw n}}return t},p=function(t,e){var
r=t.split(".",2);e.fullVersion=t,r[0]&&(e.majorVersion=parseInt(r[0])),r[1]&&(e.min
orVersion=parseInt(r[1]))},s=e.getOsData=function(){var
t={},e=h.userAgent.toLowerCase(),r=!0,i=!1,n=void 0;try{for(var a,o=(0,d.default)
(f.default);!(r=(a=o.next()).done);r=!0){var s=a.value,l=new
RegExp(s.identifier.toLowerCase()).exec(e);if(null!=l)
{if(t.name=s.name,t.group=s.group,s.version)g(s.version,s.versionSeparator?
s.versionSeparator:".",t);else if(l[1])g(l[1],s.versionSeparator?
s.versionSeparator:".",t);else if(s.versionIdentifier){var u=new
RegExp(s.versionIdentifier.toLowerCase()).exec(e);null!
=u&&u[1]&&g(u[1],s.versionSeparator?s.versionSeparator:".",t)}break}}}catch(t){i=!
0,n=t}finally{try{!r&&o.return&&o.return()}finally{if(i)throw n}}return
t},g=function(t,e,r){var i="["==e.substr(0,1)?new
RegExp(e,"g"):e,n=t.split(i,2);"."!=e&&(t=t.replace(new
RegExp(e,"g"),".")),r.fullVersion=t,n&&n[0]&&(r.majorVersion=parseInt(n[0])),n&&n[1
]&&(r.minorVersion=parseInt(n[1]))},l=e.getViewportSize=function(){var t={};return
t.width=(0,i.default)(window).width(),t.height=(0,i.default)
(window).height(),t},u=e.getDevice=function(t){var e=/\((iP(?:hone|ad|od))?(?:
[^;]*; ){0,2}([^)]+(?=\)))/.exec(t);return e&&(e[1]||
e[2])||""},m=a(navigator.userAgent);h.isEdge=/edge/i.test(navigator.userAgent),h.is
Chrome=/chrome|CriOS/i.test(navigator.userAgent)&&!h.isEdge,h.isSafari=/safari/
i.test(navigator.userAgent)&&!h.isChrome&&!h.isEdge,h.isFirefox=/firefox/
i.test(navigator.userAgent),h.isLegacyIE=!!
window.ActiveXObject,h.isIE=h.isLegacyIE||/trident.*rv:1\d/
i.test(navigator.userAgent),h.isIE11=/trident.*rv:11/
i.test(navigator.userAgent),h.isChromecast=h.isChrome&&/CrKey/
i.test(navigator.userAgent),h.isMobile=/Android|webOS|iPhone|iPad|iPod|BlackBerry|
Windows Phone|IEMobile|Mobile Safari|Opera
Mini/i.test(navigator.userAgent),h.isiOS=/iPad|iPhone|iPod/i.test(navigator.userAge
nt),h.isAndroid=/Android/i.test(navigator.userAgent),h.isWindowsPhone=/Windows
Phone/i.test(navigator.userAgent),h.isWin8App=/MSAppHost/i.test(navigator.userAgent
),h.isWiiU=/WiiU/i.test(navigator.userAgent),h.isPS4=/PlayStation
4/i.test(navigator.userAgent),h.hasLocalstorage=function(){try{return
localStorage.setItem("clappr","clappr"),localStorage.removeItem("clappr"),!
0}catch(t){return!1}}(),h.hasFlash=function(){try{return!!new
ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(t){return!(!
navigator.mimeTypes||void 0===navigator.mimeTypes["application/x-shockwave-
flash"]||!navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin)}}
(),h.name=m.name,h.version=m.version,h.userAgent=navigator.userAgent,h.data=o(),h.o
s=s(),h.viewport=l(),h.device=u(h.userAgent),void 0!
==window.orientation&&function(){switch(window.orientation){case-90:case
90:h.viewport.orientation="landscape";break;default:h.viewport.orientation="portrai
t"}}(),e.default=h},function(t,e,r){t.exports={default:r(145),__esModule:!
0}},function(t,e,r){r(73),r(54),t.exports=r(146)},function(t,e,r){var
i=r(21),n=r(77);t.exports=r(9).getIterator=function(t){var e=n(t);if("function"!
=typeof e)throw TypeError(t+" is not iterable!");return
i(e.call(t))}},function(t,e,r){var n=r(46),a=r(13)
("toStringTag"),o="Arguments"==n(function(){return arguments}
());t.exports=function(t){var e,r,i;return void
0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return
t[e]}catch(t){}}(e=Object(t),a))?r:o?n(e):"Object"==(i=n(e))&&"function"==typeof
e.callee?"Arguments":i}},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!
0});e.default=[{name:"Chromium",group:"Chrome",identifier:"Chromium/([0-9.]*)"},
{name:"Chrome Mobile",group:"Chrome",identifier:"Chrome/([0-9.]*)
Mobile",versionIdentifier:"Chrome/([0-9.]*)"},
{name:"Chrome",group:"Chrome",identifier:"Chrome/([0-9.]*)"},{name:"Chrome for
iOS",group:"Chrome",identifier:"CriOS/([0-9.]*)"},{name:"Android
Browser",group:"Chrome",identifier:"CrMo/([0-9.]*)"},
{name:"Firefox",group:"Firefox",identifier:"Firefox/([0-9.]*)"},{name:"Opera
Mini",group:"Opera",identifier:"Opera Mini/([0-9.]*)"},
{name:"Opera",group:"Opera",identifier:"Opera ([0-9.]*)"},
{name:"Opera",group:"Opera",identifier:"Opera/([0-
9.]*)",versionIdentifier:"Version/([0-9.]*)"},
{name:"IEMobile",group:"Explorer",identifier:"IEMobile/([0-9.]*)"},{name:"Internet
Explorer",group:"Explorer",identifier:"MSIE ([a-zA-Z0-9.]*)"},{name:"Internet
Explorer",group:"Explorer",identifier:"Trident/([0-9.]*)",versionIdentifier:"rv:
([0-9.]*)"},{name:"Spartan",group:"Spartan",identifier:"Edge/([0-
9.]*)",versionIdentifier:"Edge/([0-9.]*)"},
{name:"Safari",group:"Safari",identifier:"Safari/([0-
9.]*)",versionIdentifier:"Version/([0-9.]*)"}],t.exports=e.default},function(t,e,r)
{"use
strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=[{name:"Windows
2000",group:"Windows",identifier:"Windows NT 5.0",version:"5.0"},{name:"Windows
XP",group:"Windows",identifier:"Windows NT 5.1",version:"5.1"},{name:"Windows
Vista",group:"Windows",identifier:"Windows NT 6.0",version:"6.0"},{name:"Windows
7",group:"Windows",identifier:"Windows NT 6.1",version:"7.0"},{name:"Windows
8",group:"Windows",identifier:"Windows NT 6.2",version:"8.0"},{name:"Windows
8.1",group:"Windows",identifier:"Windows NT 6.3",version:"8.1"},{name:"Windows
10",group:"Windows",identifier:"Windows NT 10.0",version:"10.0"},{name:"Windows
Phone",group:"Windows Phone",identifier:"Windows Phone ([0-9.]*)"},{name:"Windows
Phone",group:"Windows Phone",identifier:"Windows Phone OS ([0-9.]*)"},
{name:"Windows",group:"Windows",identifier:"Windows"},{name:"Chrome
OS",group:"Chrome OS",identifier:"CrOS"},
{name:"Android",group:"Android",identifier:"Android",versionIdentifier:"Android
([a-zA-Z0-9.-]*)"},{name:"iPad",group:"iOS",identifier:"iPad",versionIdentifier:"OS
([0-9_]*)",versionSeparator:"[_|.]"},
{name:"iPod",group:"iOS",identifier:"iPod",versionIdentifier:"OS ([0-
9_]*)",versionSeparator:"[_|.]"},{name:"iPhone",group:"iOS",identifier:"iPhone
OS",versionIdentifier:"OS ([0-9_]*)",versionSeparator:"[_|.]"},{name:"Mac OS X High
Sierra",group:"Mac OS",identifier:"Mac OS X (10([_|.])13([0-
9_.]*))",versionSeparator:"[_|.]"},{name:"Mac OS X Sierra",group:"Mac
OS",identifier:"Mac OS X (10([_|.])12([0-9_.]*))",versionSeparator:"[_|.]"},
{name:"Mac OS X El Capitan",group:"Mac OS",identifier:"Mac OS X (10([_|.])11([0-
9_.]*))",versionSeparator:"[_|.]"},{name:"Mac OS X Yosemite",group:"Mac
OS",identifier:"Mac OS X (10([_|.])10([0-9_.]*))",versionSeparator:"[_|.]"},
{name:"Mac OS X Mavericks",group:"Mac OS",identifier:"Mac OS X (10([_|.])9([0-
9_.]*))",versionSeparator:"[_|.]"},{name:"Mac OS X Mountain Lion",group:"Mac
OS",identifier:"Mac OS X (10([_|.])8([0-9_.]*))",versionSeparator:"[_|.]"},
{name:"Mac OS X Lion",group:"Mac OS",identifier:"Mac OS X (10([_|.])7([0-
9_.]*))",versionSeparator:"[_|.]"},{name:"Mac OS X Snow Leopard",group:"Mac
OS",identifier:"Mac OS X (10([_|.])6([0-9_.]*))",versionSeparator:"[_|.]"},
{name:"Mac OS X Leopard",group:"Mac OS",identifier:"Mac OS X (10([_|.])5([0-
9_.]*))",versionSeparator:"[_|.]"},{name:"Mac OS X Tiger",group:"Mac
OS",identifier:"Mac OS X (10([_|.])4([0-9_.]*))",versionSeparator:"[_|.]"},
{name:"Mac OS X Panther",group:"Mac OS",identifier:"Mac OS X (10([_|.])3([0-
9_.]*))",versionSeparator:"[_|.]"},{name:"Mac OS X Jaguar",group:"Mac
OS",identifier:"Mac OS X (10([_|.])2([0-9_.]*))",versionSeparator:"[_|.]"},
{name:"Mac OS X Puma",group:"Mac OS",identifier:"Mac OS X (10([_|.])1([0-
9_.]*))",versionSeparator:"[_|.]"},{name:"Mac OS X Cheetah",group:"Mac
OS",identifier:"Mac OS X (10([_|.])0([0-9_.]*))",versionSeparator:"[_|.]"},
{name:"Mac OS",group:"Mac OS",identifier:"Mac OS"},
{name:"Ubuntu",group:"Linux",identifier:"Ubuntu",versionIdentifier:"Ubuntu/([0-
9.]*)"},{name:"Debian",group:"Linux",identifier:"Debian"},
{name:"Gentoo",group:"Linux",identifier:"Gentoo"},
{name:"Linux",group:"Linux",identifier:"Linux"},
{name:"BlackBerry",group:"BlackBerry",identifier:"BlackBerry"}],t.exports=e.default
},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var
i=e.mp4="data:video/mp4;base64,AAAAHGZ0eXBpc29tAAACAGlzb21pc28ybXA0MQAAAAhmcmVlAAAC
721kYXQhEAUgpBv/
wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAA3pwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcCEQBSCkG//
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAADengAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcAAAAsJtb292A
AAAbG12aGQAAAAAAAAAAAAAAAAAAAPoAAAALwABAAABAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEA
AAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAB7HRyYWsAAABcdGtoZAA
AAAMAAAAAAAAAAAAAAAIAAAAAAAAALwAAAAAAAAAAAAAAAQEAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAA
AAAAAAAAAAAEAAAAAAAAAAAAAAAAAAACRlZHRzAAAAHGVsc3QAAAAAAAAAAQAAAC8AAAAAAAEAAAAAAWRtZ
GlhAAAAIG1kaGQAAAAAAAAAAAAAAAAAAKxEAAAIAFXEAAAAAAAtaGRscgAAAAAAAAAAc291bgAAAAAAAAAA
AAAAAFNvdW5kSGFuZGxlcgAAAAEPbWluZgAAABBzbWhkAAAAAAAAAAAAAAAkZGluZgAAABxkcmVmAAAAAAA
AAAEAAAAMdXJsIAAAAAEAAADTc3RibAAAAGdzdHNkAAAAAAAAAAEAAABXbXA0YQAAAAAAAAABAAAAAAAAAA
AAAgAQAAAAAKxEAAAAAAAzZXNkcwAAAAADgICAIgACAASAgIAUQBUAAAAAAfQAAAHz+QWAgIACEhAGgICAA
QIAAAAYc3R0cwAAAAAAAAABAAAAAgAABAAAAAAcc3RzYwAAAAAAAAABAAAAAQAAAAIAAAABAAAAHHN0c3oA
AAAAAAAAAAAAAAIAAAFzAAABdAAAABRzdGNvAAAAAAAAAAEAAAAsAAAAYnVkdGEAAABabWV0YQAAAAAAAAA
haGRscgAAAAAAAAAAbWRpcmFwcGwAAAAAAAAAAAAAAAAtaWxzdAAAACWpdG9vAAAAHWRhdGEAAAABAAAAAE
xhdmY1Ni40MC4xMDE=";e.default={mp4:i}},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!
0}),e.volumeMute=e.volume=e.stop=e.reload=e.play=e.pause=e.hd=e.fullscreen=e.exitFu
llscreen=e.cc=void 0;var
i=h(r(152)),n=h(r(153)),a=h(r(154)),o=h(r(155)),s=h(r(156)),l=h(r(157)),u=h(r(158))
,d=h(r(159)),c=h(r(160)),f=h(r(161));function h(t){return t&&t.__esModule?t:
{default:t}}e.cc=c.default,e.exitFullscreen=u.default,e.fullscreen=l.default,e.hd=d
.default,e.pause=n.default,e.play=i.default,e.reload=f.default,e.stop=a.default,e.v
olume=o.default,e.volumeMute=s.default;e.default={cc:c.default,exitFullscreen:u.def
ault,fullscreen:l.default,hd:d.default,pause:n.default,play:i.default,reload:f.defa
ult,stop:a.default,volume:o.default,volumeMute:s.default}},function(t,e)
{t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path
fill="#010101" d="M1.425.35L14.575 8l-13.15
7.65V.35z"></path></svg>'},function(t,e){t.exports='<svg
xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill-rule="evenodd"
clip-rule="evenodd" fill="#010101" d="M1.712 14.76H6.43V1.24H1.71v13.52zm7.86-
13.52v13.52h4.716V1.24H9.573z"></path></svg>'},function(t,e){t.exports='<svg
xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill-rule="evenodd"
clip-rule="evenodd" fill="#010101" d="M1.712
1.24h12.6v13.52h-12.6z"></path></svg>'},function(t,e){t.exports='<svg
xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill-rule="evenodd"
clip-rule="evenodd" fill="#010101" d="M11.5 11h-.002v1.502L7.798
10H4.5V6h3.297l3.7-2.502V4.5h.003V11zM11 4.49L7.953 6.5H5v3h2.953L11
11.51V4.49z"></path></svg>'},function(t,e){t.exports='<svg
xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill-rule="evenodd"
clip-rule="evenodd" fill="#010101" d="M9.75 11.51L6.7 9.5H3.75v-3H6.7L9.75
4.49v.664l.497.498V3.498L6.547 6H3.248v4h3.296l3.7 2.502v-2.154l-.497.5v.662zm3-
5.165L12.404 6l-1.655 1.653L9.093 6l-.346.345L10.402 8 8.747 9.654l.346.347 1.655-
1.653L12.403 10l.348-.346L11.097 8l1.655-1.655z"></path></svg>'},function(t,e)
{t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path
fill="#010101" d="M7.156 8L4 11.156V8.5H3V13h4.5v-1H4.844L8 8.844 7.156 8zM8.5
3v1h2.657L8 7.157 8.846 8 12 4.844V7.5h1V3H8.5z"></path></svg>'},function(t,e)
{t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path
fill="#010101" d="M13.5 3.344l-.844-.844L9.5 5.656V3h-1v4.5H13v-1h-2.656L13.5
3.344zM3 9.5h2.656L2.5 12.656l.844.844L6.5
10.344V13h1V8.5H3v1z"></path></svg>'},function(t,e){t.exports='<svg
xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="#010101"
d="M5.375
7.062H2.637V4.26H.502v7.488h2.135V8.9h2.738v2.848h2.133V4.26H5.375v2.802zm5.97-
2.81h-2.84v7.496h2.798c2.65 0 4.195-1.607 4.195-3.77v-.022c0-2.162-1.523-3.704-
4.154-3.704zm2.06 3.758c0 1.21-.81 1.896-2.03 1.896h-.83V6.093h.83c1.22 0 2.03.696
2.03 1.896v.02z"></path></svg>'},function(t,e){t.exports='<svg version="1.1"
id="Layer_1" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 49 41.8"
style="enable-background:new 0 0 49 41.8;" xml:space="preserve"><path
d="M47.1,0H3.2C1.6,0,0,1.2,0,2.8v31.5C0,35.9,1.6,37,3.2,37h11.9l3.2,1.9l4.7,2.7c0.9
,0.5,2-0.1,2-1.1V37h22.1 c1.6,0,1.9-1.1,1.9-2.7V2.8C49,1.2,48.7,0,47.1,0z
M7.2,18.6c0-4.8,3.5-9.3,9.9-9.3c4.8,0,7.1,2.7,7.1,2.7l-2.5,4 c0,0-1.7-1.7-4.2-1.7c-
2.8,0-4.3,2.1-4.3,4.3c0,2.1,1.5,4.4,4.5,4.4c2.5,0,4.9-2.1,4.9-2.1l2.2,4.2c0,0-
2.7,2.9-7.6,2.9 C10.8,27.9,7.2,23.5,7.2,18.6z M36.9,27.9c-6.4,0-9.9-4.4-9.9-9.3c0-
4.8,3.5-9.3,9.9-9.3C41.7,9.3,44,12,44,12l-2.5,4 c0,0-1.7-1.7-4.2-1.7c-2.8,0-
4.3,2.1-4.3,4.3c0,2.1,1.5,4.4,4.5,4.4c2.5,0,4.9-2.1,4.9-
2.1l2.2,4.2C44.5,25,41.9,27.9,36.9,27.9z"></path></svg>'},function(t,e)
{t.exports='<svg fill="#FFFFFF" viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"><path d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42
0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-
5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35
2.35z"></path><path d="M0 0h24v24H0z" fill="none"></path></svg>'},function(t,e,r)
{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var
i,n=r(0),a=(i=n)&&i.__esModule?i:{default:i},o=r(61);var s="font-weight: bold;
font-size: 13px;",l="color: #ff8000;"+s,u="color: #ff0000;"+s,d=["color:
#0000ff;font-weight: bold; font-size: 13px;","color: #006600;font-weight: bold;
font-size:
13px;",l,u,u],c=["debug","info","warn","error","disabled"],f=(h.prototype.debug=fun
ction(t)
{this.log(t,0,Array.prototype.slice.call(arguments,1))},h.prototype.info=function(t
){this.log(t,1,Array.prototype.s
lice.call(arguments,1))},h.prototype.warn=function(t)
{this.log(t,2,Array.prototype.slice.call(arguments,1))},h.prototype.error=function(
t)
{this.log(t,3,Array.prototype.slice.call(arguments,1))},h.prototype.onOff=function(
){this.level===this.offLevel?this.level=this.previousLevel:
(this.previousLevel=this.level,this.level=this.offLevel),window.console&&window.con
sole.log&&window.console.log("%c[Clappr.Log] set log level to
"+c[this.level],l)},h.prototype.level=function(t)
{this.level=t},h.prototype.log=function(t,e,r){if(!
(0<=this.BLACKLIST.indexOf(r[0])||e<this.level)){r||(r=t,t=null);var
i=d[e],n="";t&&(n="["+t+"]"),window.console&&window.console.log&&window.console.log
.apply(console,["%c["+c[e]+"]"+n,i].concat(r))}},h);function h(){var
t=this,e=0<arguments.length&&void 0!==arguments[0]?
arguments[0]:1,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:3;
(0,a.default)(this,h),this.kibo=new o.Kibo,this.kibo.down(["ctrl shift
d"],function(){return
t.onOff()}),this.BLACKLIST=["timeupdate","playback:timeupdate","playback:progress",
"container:hover","container:timeupdate","container:progress"],this.level=e,this.of
fLevel=r}
(e.default=f).LEVEL_DEBUG=0,f.LEVEL_INFO=1,f.LEVEL_WARN=2,f.LEVEL_ERROR=3,f.getInst
ance=function(){return void 0===this._instance&&(this._instance=new
this,this._instance.previousLevel=this._instance.level,this._instance.level=this._i
nstance.offLevel),this._instance},f.setLevel=function(t)
{this.getInstance().level=t},f.debug=function()
{this.getInstance().debug.apply(this.getInstance(),arguments)},f.info=function()
{this.getInstance().info.apply(this.getInstance(),arguments)},f.warn=function()
{this.getInstance().warn.apply(this.getInstance(),arguments)},f.error=function()
{this.getInstance().error.apply(this.getInstance(),arguments)},t.exports=e.default}
,function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!
0});function s(t){this.element=t||
window.document,this.initialize()}s.KEY_NAMES_BY_CODE={8:"backspace",9:"tab",13:"en
ter",16:"shift",17:"ctrl",18:"alt",20:"caps_lock",27:"esc",32:"space",37:"left",38:
"up",39:"right",40:"down",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",5
6:"8",57:"9",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",
75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v"
,87:"w",88:"x",89:"y",90:"z",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",
118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12"},s.KEY_CODES_BY_NAME={},fu
nction(){for(var t in
s.KEY_NAMES_BY_CODE)Object.prototype.hasOwnProperty.call(s.KEY_NAMES_BY_CODE,t)&&(s
.KEY_CODES_BY_NAME[s.KEY_NAMES_BY_CODE[t]]=+t)}
(),s.MODIFIERS=["shift","ctrl","alt"],s.registerEvent=document.addEventListener?
function(t,e,r){t.addEventListener(e,r,!1)}:document.attachEvent?function(t,e,r)
{t.attachEvent("on"+e,r)}:void 0,s.unregisterEvent=document.removeEventListener?
function(t,e,r){t.removeEventListener(e,r,!1)}:document.detachEvent?function(t,e,r)
{t.detachEvent("on"+e,r)}:void 0,s.stringContains=function(t,e){return-1!
==t.indexOf(e)},s.neatString=function(t){return
t.replace(/^\s+|\s+$/g,"").replace(/\s+/g," ")},s.capitalize=function(t){return
t.toLowerCase().replace(/^./,function(t){return
t.toUpperCase()})},s.isString=function(t){return
s.stringContains(Object.prototype.toString.call(t),"String")},s.arrayIncludes=Array
.prototype.indexOf?function(t,e){return-1!==t.indexOf(e)}:function(t,e){for(var
r=0;r<t.length;r++)if(t[r]===e)return!0;return!1},s.extractModifiers=function(t)
{var e,r;for(e=[],r=0;r<s.MODIFIERS.length;r+
+)s.stringContains(t,s.MODIFIERS[r])&&e.push(s.MODIFIERS[r]);return
e},s.extractKey=function(t){var e,r;for(e=s.neatString(t).split("
"),r=0;r<e.length;r++)if(!s.arrayIncludes(s.MODIFIERS,e[r]))return
e[r]},s.modifiersAndKey=function(t){var e,r;return s.stringContains(t,"any")?
s.neatString(t).split(" ").slice(0,2).join(" "):(e=s.extractModifiers(t),
(r=s.extractKey(t))&&!s.arrayIncludes(s.MODIFIERS,r)&&e.push(r),e.join("
"))},s.keyName=function(t){return s.KEY_NAMES_BY_CODE[t+""]},s.keyCode=function(t)
{return+s.KEY_CODES_BY_NAME[t]},s.prototype.initialize=function(){var
t,e=this;for(this.lastKeyCode=-1,this.lastModifiers={},t=0;t<s.MODIFIERS.length;t+
+)this.lastModifiers[s.MODIFIERS[t]]=!1;this.keysDown={any:[]},this.keysUp={any:
[]},this.downHandler=this.handler("down"),this.upHandler=this.handler("up"),s.regis
terEvent(this.element,"keydown",this.downHandler),s.registerEvent(this.element,"key
up",this.upHandler),s.registerEvent(window,"unload",function t()
{s.unregisterEvent(e.element,"keydown",e.downHandler),s.unregisterEvent(e.element,"
keyup",e.upHandler),s.unregisterEvent(window,"unload",t)})},s.prototype.handler=fun
ction(n){var a=this;return function(t){var e,r,i;for(t=t||
window.event,a.lastKeyCode=t.keyCode,e=0;e<s.MODIFIERS.length;e+
+)a.lastModifiers[s.MODIFIERS[e]]=t[s.MODIFIERS[e]
+"Key"];for(s.arrayIncludes(s.MODIFIERS,s.keyName(a.lastKeyCode))&&(a.lastModifiers
[s.keyName(a.lastKeyCode)]=!0),r=a["keys"+s.capitalize(n)],e=0;e<r.any.length;e++)!
1===r.any[e]
(t)&&t.preventDefault&&t.preventDefault();if(r[i=a.lastModifiersAndKey()])for(e=0;e
<r[i].length;e++)!1===r[i][e]
(t)&&t.preventDefault&&t.preventDefault()}},s.prototype.registerKeys=function(t,e,r
){var
i,n,a=this["keys"+s.capitalize(t)];for(s.isString(e)&&(e=[e]),i=0;i<e.length;i+
+)n=e[i],a[n=s.modifiersAndKey(n+"")]?a[n].push(r):a[n]=[r];return
this},s.prototype.unregisterKeys=function(t,e,r){var
i,n,a,o=this["keys"+s.capitalize(t)];for(s.isString(e)&&(e=[e]),i=0;i<e.length;i+
+)if(a=e[i],a=s.modifiersAndKey(a+""),null===r)delete o[a];else
if(o[a])for(n=0;n<o[a].length;n++)if(String(o[a][n])===String(r))
{o[a].splice(n,1);break}return this},s.prototype.off=function(t){return
this.unregisterKeys("down",t,null)},s.prototype.delegate=function(t,e,r){return
null!==r||void 0!==r?
this.registerKeys(t,e,r):this.unregisterKeys(t,e,r)},s.prototype.down=function(t,e)
{return this.delegate("down",t,e)},s.prototype.up=function(t,e){return
this.delegate("up",t,e)},s.prototype.lastKey=function(t){return t?
this.lastModifiers[t]:s.keyName(this.lastKeyCode)},s.prototype.lastModifiersAndKey=
function(){var t,e;for(t=[],e=0;e<s.MODIFIERS.length;e+
+)this.lastKey(s.MODIFIERS[e])&&t.push(s.MODIFIERS[e]);return
s.arrayIncludes(t,this.lastKey())||t.push(this.lastKey()),t.join("
")},e.default=s,t.exports=e.default},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
i,n=r(165),a=(i=n)&&i.__esModule?i:
{default:i};e.default=a.default,t.exports=e.default},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
i=u(r(0)),n=u(r(1)),a=u(r(3)),o=u(r(2)),s=u(r(15)),l=u(r(78));function u(t){return
t&&t.__esModule?t:{default:t}}var d,c=(d=s.default,(0,o.default)(f,d),(0,a.default)
(f,[{key:"loader",get:function(){return
this.player.loader}}]),f.prototype.create=function(){return
this.options.loader=this.loader,this.core=new
l.default(this.options),this.addCorePlugins(),this.core.createContainers(this.optio
ns),this.core},f.prototype.addCorePlugins=function(){var r=this;return
this.loader.corePlugins.forEach(function(t){var e=new
t(r.core);r.core.addPlugin(e),r.setupExternalInterface(e)}),this.core},f.prototype.
setupExternalInterface=function(t){var e=t.getExternalInterface();for(var r in
e)this.player[r]=e[r].bind(t),this.core[r]=e[r].bind(t)},f);function f(t)
{(0,i.default)(this,f);var e=(0,n.default)(this,d.call(this));return
e.player=t,e._options=t.options,e}e.default=c,t.exports=e.default},function(t,e,r)
{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var
i=b(r(12)),n=b(r(0)),a=b(r(1)),o=b(r(3)),s=b(r(2)),l=r(5),u=b(r(79)),d=b(r(4)),c=b(
r(30)),f=b(r(24)),h=b(r(14)),p=b(r(167)),g=b(r(31)),m=b(r(40)),v=b(r(25)),y=b(r(20)
),A=b(r(6));r(173);var _=b(r(175));function b(t){return t&&t.__esModule?t:
{default:t}}var E,T=void 0,S=(E=c.default,(0,s.default)(k,E),(0,o.default)(k,
[{key:"events",get:function()
{return{webkitfullscreenchange:"handleFullscreenChange",mousemove:"onMouseMove",mou
seleave:"onMouseLeave"}}},{key:"attributes",get:function(){return{"data-
player":"",tabindex:9999}}},{key:"isReady",get:function(){return!!this.ready}},
{key:"i18n",get:function(){return this.getPlugin("strings")||{t:function(t){return
t}}}},{key:"mediaControl",get:function(){return this.getPlugin("media_control")||
this.dummyMediaControl}},{key:"dummyMediaControl",get:function(){return
this._dummyMediaControl||(this._dummyMediaControl=new
f.default(this)),this._dummyMediaControl}},{key:"activeContainer",get:function()
{return this._activeContainer},set:function(t)
{this._activeContainer=t,this.trigger(d.default.CORE_ACTIVE_CONTAINER_CHANGED,this.
_activeContainer)}},{key:"activePlayback",get:function(){return
this.activeContainer&&this.activeContainer.playback}}]),k.prototype.configureDomRec
ycler=function(){var
t=this.options&&this.options.playback&&this.options.playback.recycleVideo;l.DomRecy
cler.configure({recycleVideo:t})},k.prototype.createContainers=function(t)
{this.defer=A.default.Deferred(),this.defer.promise(this),this.containerFactory=new
p.default(t,t.loader,this.i18n,this.playerError),this.prepareContainers()},k.protot
ype.prepareContainers=function(){var
e=this;this.containerFactory.createContainers().then(function(t){return
e.setupContainers(t)}).then(function(t){return
e.resolveOnContainersReady(t)})},k.prototype.updateSize=function()
{this.isFullscreen()?
this.setFullscreen():this.setPlayerSize()},k.prototype.setFullscreen=function()
{h.default.isiOS||(this.$el.addClass("fullscreen"),this.
$el.removeAttr("style"),this.playerInfo.previousSize={width:this.options.width,heig
ht:this.options.height},this.playerInfo.currentSize={width:(0,A.default)
(window).width(),height:(0,A.default)
(window).height()})},k.prototype.setPlayerSize=function(){this.
$el.removeClass("fullscreen"),this.playerInfo.currentSize=this.playerInfo.previousS
ize,this.playerInfo.previousSize={width:(0,A.default)(window).width(),height:
(0,A.default)(window).height()},this.resize(this.playerInfo.currentSiz
e)},k.prototype.resize=function(t){(0,l.isNumber)(t.height)||(0,l.isNumber)
(t.width)?(this.el.style.height=t.height+"px",this.el.style.width=t.width+"px"):
(this.el.style.height=""+t.height,this.el.style.width=""+t.width),this.playerInfo.p
reviousSize={width:this.options.width,height:this.options.height},this.options.widt
h=t.width,this.options.height=t.height,this.playerInfo.currentSize=t,this.triggerRe
size(this.playerInfo.currentSize)},k.prototype.enableResizeObserver=function(){var
t=this;this.resizeObserverInterval=setInterval(function()
{t.triggerResize({width:t.el.clientWidth,height:t.el.clientHeight})},500)},k.protot
ype.triggerResize=function(t){!
this.firstResize&&this.oldHeight===t.height&&this.oldWidth===t.width||
(this.oldHeight=t.height,this.oldWidth=t.width,this.playerInfo.computedSize=t,this.
firstResize=!
1,g.default.trigger(this.options.playerId+":"+d.default.PLAYER_RESIZE,t),this.trigg
er(d.default.CORE_RESIZE,t))},k.prototype.disableResizeObserver=function()
{this.resizeObserverInterval&&clearInterval(this.resizeObserverInterval)},k.prototy
pe.resolveOnContainersReady=function(t){var
e=this;A.default.when.apply(A.default,t).done(function()
{e.defer.resolve(e),e.ready=!
0,e.trigger(d.default.CORE_READY)})},k.prototype.addPlugin=function(t)
{this.plugins.push(t)},k.prototype.hasPlugin=function(t){return!!
this.getPlugin(t)},k.prototype.getPlugin=function(e){return
this.plugins.filter(function(t){return t.name===e})
[0]},k.prototype.load=function(t,e)
{this.options.mimeType=e,t=t&&t.constructor===Array?t:
[t],this.options.sources=t,this.containers.forEach(function(t){return
t.destroy()}),this.containerFactory.options=A.default.extend(this.options,
{sources:t}),this.prepareContainers()},k.prototype.destroy=function()
{this.disableResizeObserver(),this.containers.forEach(function(t){return
t.destroy()}),this.plugins.forEach(function(t){return t.destroy()}),this.
$el.remove(),(0,A.default)
(document).unbind("fullscreenchange",this._boundFullscreenHandler),(0,A.default)
(document).unbind("MSFullscreenChange",this._boundFullscreenHandler),(0,A.default)
(document).unbind("mozfullscreenchange",this._boundFullscreenHandler),this.stopList
ening()},k.prototype.handleFullscreenChange=function()
{this.trigger(d.default.CORE_FULLSCREEN,this.isFullscreen()),this.updateSize()},k.p
rototype.handleWindowResize=function(t){var
e=window.innerWidth>window.innerHeight?"landscape":"portrait";this._screenOrientati
on!
==e&&(this._screenOrientation=e,this.triggerResize({width:this.el.clientWidth,heigh
t:this.el.clientHeight}),this.trigger(d.default.CORE_SCREEN_ORIENTATION_CHANGED,
{event:t,orientation:this._screenOrientation}))},k.prototype.removeContainer=functi
on(e){this.stopListening(e),this.containers=this.containers.filter(function(t)
{return t!==e})},k.prototype.setupContainer=function(t)
{this.listenTo(t,d.default.CONTAINER_DESTROYED,this.removeContainer),this.container
s.push(t)},k.prototype.setupContainers=function(t){return
t.forEach(this.setupContainer.bind(this)),this.trigger(d.default.CORE_CONTAINERS_CR
EATED),this.renderContainers(),this.activeContainer=t[0],this.render(),this.appendT
oParent(),this.containers},k.prototype.renderContainers=function(){var
e=this;this.containers.forEach(function(t){return
e.el.appendChild(t.render().el)})},k.prototype.createContainer=function(t,e){var
r=this.containerFactory.createContainer(t,e);return
this.setupContainer(r),this.el.appendChild(r.render().el),r},k.prototype.getCurrent
Container=function(){return
this.activeContainer},k.prototype.getCurrentPlayback=function(){return
this.activePlayback},k.prototype.getPlaybackType=function(){return
this.activeContainer&&this.activeContainer.getPlaybackType()},k.prototype.isFullscr
een=function(){var
t=h.default.isiOS&&this.activeContainer&&this.activeContainer.el||this.el;return
l.Fullscreen.fullscreenElement()===t},k.prototype.toggleFullscreen=function()
{this.isFullscreen()?(l.Fullscreen.cancelFullscreen(),h.default.isiOS||this.
$el.removeClass("fullscreen nocursor")):
(l.Fullscreen.requestFullscreen(h.default.isiOS?
this.activeContainer.el:this.el),h.default.isiOS||this.
$el.addClass("fullscreen"))},k.prototype.onMouseMove=function(t)
{this.trigger(d.default.CORE_MOUSE_MOVE,t)},k.prototype.onMouseLeave=function(t)
{this.trigger(d.default.CORE_MOUSE_LEAVE,t)},k.prototype.configure=function(t){var
e=this;this._options=A.default.extend(this._options,t),this.configureDomRecycler();
var r=t.source||t.sources;r&&this.load(r,t.mimeType||
this.options.mimeType),this.trigger(d.default.CORE_OPTIONS_CHANGE,t),this.container
s.forEach(function(t){return
t.configure(e.options)})},k.prototype.appendToParent=function(){this.
$el.parent()&&this.$el.parent().length||this.
$el.appendTo(this.options.parentElement)},k.prototype.render=function(){T||
(T=u.default.getStyleFor(_.default,{baseUrl:this.options.baseUrl})),(0,A.default)
("head").append(T),this.options.width=this.options.width||this.
$el.width(),this.options.height=this.options.height||this.$el.height();var
t={width:this.options.width,height:this.options.height};return
this.playerInfo.previousSize=this.playerInfo.currentSize=this.playerInfo.computedSi
ze=t,this.updateSize(),this.previousSize={width:this.$el.width(),height:this.
$el.height()},this.enableResizeObserver(),this},k);function k(t){(0,n.default)
(this,k);var e=(0,a.default)(this,E.call(this,t));return e.playerError=new
v.default(t,e),e.configureDomRecycler(),e.playerInfo=m.default.getInstance(t.player
Id),e.firstResize=!
0,e.plugins=[],e.containers=[],e._boundFullscreenHandler=function(){return
e.handleFullscreenChange()},(0,A.default)
(document).bind("fullscreenchange",e._boundFullscreenHandler),(0,A.default)
(document).bind("MSFullscreenChange",e._boundFullscreenHandler),(0,A.default)
(document).bind("mozfullscreenchange",e._boundFullscreenHandler),h.default.isMobile
&&(0,A.default)(window).bind("resize",function(t)
{e.handleWindowResize(t)}),e}e.default=S,(0,i.default)
(S.prototype,y.default),t.exports=e.default},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
i,n=r(168),a=(i=n)&&i.__esModule?i:
{default:i};e.default=a.default,t.exports=e.default},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
s=f(r(39)),a=f(r(0)),o=f(r(1)),i=f(r(3)),n=f(r(2)),l=f(r(15)),u=f(r(4)),d=f(r(81)),
c=f(r(6));function f(t){return t&&t.__esModule?t:{default:t}}var h,p=(h=l.default,
(0,n.default)(g,h),(0,i.default)(g,[{key:"options",get:function(){return
this._options},set:function(t)
{this._options=t}}]),g.prototype.createContainers=function(){var e=this;return
c.default.Deferred(function(t){t.resolve(e.options.sources.map(function(t){return
e.createContainer(t)}))})},g.prototype.findPlaybackPlugin=function(e,r){return
this.loader.playbackPlugins.filter(function(t){return t.canPlay(e,r)})
[0]},g.prototype.createContainer=function(t){var
e=null,r=this.options.mimeType;"object"===(void 0===t?"undefined":(0,s.default)
(t))?(e=t.source.toString(),t.mimeType&&(r=t.mimeType)):e=t.toString(),e.match(/
^\/\//)&&(e=window.location.protocol+e);var i=c.default.extend({},this.options,
{src:e,mimeType:r}),n=new(this.findPlaybackPlugin(e,r))
(i,this._i18n,this.playerError);i=c.default.extend({},i,{playback:n});var a=new
d.default(i,this._i18n,this.playerError),o=c.default.Deferred();return
o.promise(a),this.addContainerPlugins(a),this.listenToOnce(a,u.default.CONTAINER_RE
ADY,function(){return o.resolve(a)}),a},g.prototype.addContainerPlugins=function(e)
{this.loader.containerPlugins.forEach(function(t){e.addPlugin(new
t(e))})},g);function g(t,e,r,i){(0,a.default)(this,g);var n=(0,o.default)
(this,h.call(this,t));return
n._i18n=r,n.loader=e,n.playerError=i,n}e.default=p,t.exports=e.default},function(t,
e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var
i=h(r(12)),n=h(r(0)),a=h(r(1)),o=h(r(3)),s=h(r(2)),l=h(r(4)),u=h(r(30)),d=h(r(20)),
c=r(5);r(170);var f=h(r(6));function h(t){return t&&t.__esModule?t:{default:t}}var
p,g=(p=u.default,(0,s.default)(m,p),(0,o.default)(m,[{key:"name",get:function()
{return"Container"}},{key:"attributes",get:function()
{return{class:"container","data-container":""}}},{key:"events",get:function()
{return{click:"clicked",dblclick:"dblClicked",touchend:"dblTap",contextmenu:"onCont
extMenu",mouseenter:"mouseEnter",mouseleave:"mouseLeave"}}},
{key:"ended",get:function(){return this.playback.ended}},
{key:"buffering",get:function(){return this.playback.buffering}},
{key:"i18n",get:function(){return this._i18n}},
{key:"hasClosedCaptionsTracks",get:function(){return
this.playback.hasClosedCaptionsTracks}},{key:"closedCaptionsTracks",get:function()
{return this.playback.closedCaptionsTracks}},
{key:"closedCaptionsTrackId",get:function(){return
this.playback.closedCaptionsTrackId},set:function(t)
{this.playback.closedCaptionsTrackId=t}}]),m.prototype.bindEvents=function()
{this.listenTo(this.playback,l.default.PLAYBACK_PROGRESS,this.onProgress),this.list
enTo(this.playback,l.default.PLAYBACK_TIMEUPDATE,this.timeUpdated),this.listenTo(th
is.playback,l.default.PLAYBACK_READY,this.ready),this.listenTo(this.playback,l.defa
ult.PLAYBACK_BUFFERING,this.onBuffering),this.listenTo(this.playback,l.default.PLAY
BACK_BUFFERFULL,this.bufferfull),this.listenTo(this.playback,l.default.PLAYBACK_SET
TINGSUPDATE,this.settingsUpdate),this.listenTo(this.playback,l.default.PLAYBACK_LOA
DEDMETADATA,this.loadedMetadata),this.listenTo(this.playback,l.default.PLAYBACK_HIG
HDEFINITIONUPDATE,this.highDefinitionUpdate),this.listenTo(this.playback,l.default.
PLAYBACK_BITRATE,this.updateBitrate),this.listenTo(this.playback,l.default.PLAYBACK
_PLAYBACKSTATE,this.playbackStateChanged),this.listenTo(this.playback,l.default.PLA
YBACK_DVR,this.playbackDvrStateChanged),this.listenTo(this.playback,l.default.PLAYB
ACK_MEDIACONTROL_DISABLE,this.disableMediaControl),this.listenTo(this.playback,l.de
fault.PLAYBACK_MEDIACONTROL_ENABLE,this.enableMediaControl),this.listenTo(this.play
back,l.default.PLAYBACK_SEEKED,this.onSeeked),this.listenTo(this.playback,l.default
.PLAYBACK_ENDED,this.onEnde
d),this.listenTo(this.playback,l.default.PLAYBACK_PLAY,this.playing),this.listenTo(
this.playback,l.default.PLAYBACK_PAUSE,this.paused),this.listenTo(this.playback,l.d
efault.PLAYBACK_STOP,this.stopped),this.listenTo(this.playback,l.default.PLAYBACK_E
RROR,this.error),this.listenTo(this.playback,l.default.PLAYBACK_SUBTITLE_AVAILABLE,
this.subtitleAvailable),this.listenTo(this.playback,l.default.PLAYBACK_SUBTITLE_CHA
NGED,this.subtitleChanged)},m.prototype.subtitleAvailable=function()
{this.trigger(l.default.CONTAINER_SUBTITLE_AVAILABLE)},m.prototype.subtitleChanged=
function(t)
{this.trigger(l.default.CONTAINER_SUBTITLE_CHANGED,t)},m.prototype.playbackStateCha
nged=function(t)
{this.trigger(l.default.CONTAINER_PLAYBACKSTATE,t)},m.prototype.playbackDvrStateCha
nged=function(t)
{this.settings=this.playback.settings,this.dvrInUse=t,this.trigger(l.default.CONTAI
NER_PLAYBACKDVRSTATECHANGED,t)},m.prototype.updateBitrate=function(t)
{this.trigger(l.default.CONTAINER_BITRATE,t)},m.prototype.statsReport=function(t)
{this.trigger(l.default.CONTAINER_STATS_REPORT,t)},m.prototype.getPlaybackType=func
tion(){return this.playback.getPlaybackType()},m.prototype.isDvrEnabled=function()
{return!!this.playback.dvrEnabled},m.prototype.isDvrInUse=function(){return!!
this.dvrInUse},m.prototype.destroy=function()
{this.trigger(l.default.CONTAINER_DESTROYED,this,this.name),this.stopListening(),th
is.plugins.forEach(function(t){return t.destroy()}),this.
$el.remove()},m.prototype.setStyle=function(t){this.
$el.css(t)},m.prototype.animate=function(t,e){return this.
$el.animate(t,e).promise()},m.prototype.ready=function(){this.isReady=!
0,this.trigger(l.default.CONTAINER_READY,this.name)},m.prototype.isPlaying=function
(){return this.playback.isPlaying()},m.prototype.getStartTimeOffset=function()
{return this.playback.getStartTimeOffset()},m.prototype.getCurrentTime=function()
{return this.currentTime},m.prototype.getDuration=function(){return
this.playback.getDuration()},m.prototype.error=function(t){this.isReady||
this.ready(),this.trigger(l.default.CONTAINER_ERROR,t,this.name)},m.prototype.loade
dMetadata=function(t)
{this.trigger(l.default.CONTAINER_LOADEDMETADATA,t)},m.prototype.timeUpdated=functi
on(t)
{this.currentTime=t.current,this.trigger(l.default.CONTAINER_TIMEUPDATE,t,this.name
)},m.prototype.onProgress=function(){for(var
t=arguments.length,e=Array(t),r=0;r<t;r+
+)e[r]=arguments[r];this.trigger.apply(this,
[l.default.CONTAINER_PROGRESS].concat(e,
[this.name]))},m.prototype.playing=function()
{this.trigger(l.default.CONTAINER_PLAY,this.name)},m.prototype.paused=function()
{this.trigger(l.default.CONTAINER_PAUSE,this.name)},m.prototype.play=function()
{this.playback.play()},m.prototype.stop=function()
{this.playback.stop(),this.currentTime=0},m.prototype.pause=function()
{this.playback.pause()},m.prototype.onEnded=function()
{this.trigger(l.default.CONTAINER_ENDED,this,this.name),this.currentTime=0},m.proto
type.stopped=function()
{this.trigger(l.default.CONTAINER_STOP)},m.prototype.clicked=function(){var
t=this;this.options.chromeless&&!this.options.allowUserInteraction||
(this.clickTimer=setTimeout(function()
{t.clickTimer&&t.trigger(l.default.CONTAINER_CLICK,t,t.name)},this.clickDelay))},m.
prototype.cancelClicked=function()
{clearTimeout(this.clickTimer),this.clickTimer=null},m.prototype.dblClicked=functio
n(){this.options.chromeless&&!this.options.allowUserInteraction||
(this.cancelClicked(),this.trigger(l.default.CONTAINER_DBLCLICK,this,this.name))},m
.prototype.dblTap=function(t){var e=this;this.options.chromeless&&!
this.options.allowUserInteraction||this.dblTapHandler.handle(t,function()
{e.cancelClicked(),e.trigger(l.default.CONTAINER_DBLCLICK,e,e.name)})},m.prototype.
onContextMenu=function(t){this.options.chromeless&&!
this.options.allowUserInteraction||
this.trigger(l.default.CONTAINER_CONTEXTMENU,t,this.name)},m.prototype.seek=functio
n(t)
{this.trigger(l.default.CONTAINER_SEEK,t,this.name),this.playback.seek(t)},m.protot
ype.onSeeked=function()
{this.trigger(l.default.CONTAINER_SEEKED,this.name)},m.prototype.seekPercentage=fun
ction(t){var e=this.getDuration();if(0<=t&&t<=100){var
r=e*(t/100);this.seek(r)}},m.prototype.setVolume=function(t)
{this.volume=parseFloat(t),this.trigger(l.default.CONTAINER_VOLUME,this.volume,this
.name),this.playback.volume(this.volume)},m.prototype.fullscreen=function()
{this.trigger(l.default.CONTAINER_FULLSCREEN,this.name)},m.prototype.onBuffering=fu
nction()
{this.trigger(l.default.CONTAINER_STATE_BUFFERING,this.name)},m.prototype.bufferful
l=function()
{this.trigger(l.default.CONTAINER_STATE_BUFFERFULL,this.name)},m.prototype.addPlugi
n=function(t){this.plugins.push(t)},m.prototype.hasPlugin=function(t){return!!
this.getPlugin(t)},m.prototype.getPlugin=function(e){return
this.plugins.filter(function(t){return t.name===e})
[0]},m.prototype.mouseEnter=function(){this.options.chromeless&&!
this.options.allowUserInteraction||
this.trigger(l.default.CONTAINER_MOUSE_ENTER)},m.prototype.mouseLeave=function()
{this.options.chromeless&&!this.options.allowUserInteraction||
this.trigger(l.default.CONTAINER_MOUSE_LEAVE)},m.prototype.settingsUpdate=function(
)
{this.settings=this.playback.settings,this.trigger(l.default.CONTAINER_SETTINGSUPDA
TE)},m.prototype.highDefinitionUpdate=function(t)
{this.trigger(l.default.CONTAINER_HIGHDEFINITIONUPDATE,t)},m.prototype.isHighDefini
tionInUse=function(){return
this.playback.isHighDefinitionInUse()},m.prototype.disableMediaControl=function()
{this.mediaControlDisabled||(this.mediaControlDisabled=!
0,this.trigger(l.default.CONTAINER_MEDIACONTROL_DISABLE))},m.prototype.enableMediaC
ontrol=function(){this.mediaControlDisabled&&(this.mediaControlDisabled=!
1,this.trigger(l.default.CONTAINER_MEDIACONTROL_ENABLE))},m.prototype.updateStyle=f
unction(){!this.options.chromeless||this.options.allowUserInteraction?this.
$el.removeClass("chromeless"):this.
$el.addClass("chromeless")},m.prototype.configure=function(t)
{this._options=f.default.extend(this._options,t),this.updateStyle(),this.playback.c
onfigure(this.options),this.trigger(l.default.CONTAINER_OPTIONS_CHANGE)},m.prototyp
e.render=function(){return this.
$el.append(this.playback.render().el),this.updateStyle(),this},m);function m(t,e,r)
{(0,n.default)(this,m);var i=(0,a.default)(this,p.call(this,t));return
i._i18n=e,i.currentTime=0,i.volume=100,i.playback=t.playback,i.playerError=r,i.sett
ings=f.default.extend({},i.playback.settings),i.isReady=!1,i.mediaControlDisabled=!
1,i.plugins=[i.playback],i.dblTapHandler=new
c.DoubleEventHandler(500),i.clickTimer=null,i.clickDelay=200,i.bindEvents(),i}e.def
ault=g,(0,i.default)(g.prototype,d.default),t.exports=e.default},function(t,e,r)
{var i=r(171);"string"==typeof i&&(i=[[t.i,i,""]]);var n={singleton:!0,hmr:!
0,transform:void 0,insertInto:void 0};r(10)
(i,n);i.locals&&(t.exports=i.locals)},function(t,e,r){(t.exports=r(8)(!
1)).push([t.i,".container[data-container]{position:absolute;background-
color:#000;height:100%;width:100%;max-width:100%}.container[data-
container] .chromeless{cursor:default}[data-player]:not(.nocursor) .container[data-
container]:not(.chromeless).pointer-enabled{cursor:pointer}",""])},function(t,e)
{t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!
e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof
t)return t;var
n=e.protocol+"//"+e.host,a=n+e.pathname.replace(/\/[^\/]*$/,"/");return
t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){var
r,i=e.trim().replace(/^"(.*)"$/,function(t,e){return
e}).replace(/^'(.*)'$/,function(t,e){return e});return/^(#|data:|http:\/\/|
https:\/\/|file:\/\/\/|\s*$)/i.test(i)?t:(r=0===i.indexOf("//")?
i:0===i.indexOf("/")?n+i:a+i.replace(/^\.\//,""),"url("+JSON.stringify(r)
+")")})}},function(t,e,r){var i=r(174);"string"==typeof i&&(i=[[t.i,i,""]]);var
n={singleton:!0,hmr:!0,transform:void 0,insertInto:void 0};r(10)
(i,n);i.locals&&(t.exports=i.locals)},function(t,e,r){(t.exports=r(8)(!
1)).push([t.i,'[data-player]{-webkit-touch-callout:none;-webkit-user-select:none;-
moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;-
webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-
transform:translateZ(0);transform:translateZ(0);position:relative;margin:0;padding:
0;border:0;font-style:normal;font-weight:400;text-
align:center;overflow:hidden;font-size:100%;font-family:Roboto,Open
Sans,Arial,sans-serif;text-shadow:0 0 0;box-sizing:border-box}[data-player] a,
[data-player] abbr,[data-player] acronym,[data-player] address,[data-player]
applet,[data-player] article,[data-player] aside,[data-player] audio,[data-player]
b,[data-player] big,[data-player] blockquote,[data-player] canvas,[data-player]
caption,[data-player] center,[data-player] cite,[data-player] code,[data-player]
dd,[data-player] del,[data-player] details,[data-player] dfn,[data-player] div,
[data-player] dl,[data-player] dt,[data-player] em,[data-player] embed,[data-
player] fieldset,[data-player] figcaption,[data-player] figure,[data-player]
footer,[data-player] form,[data-player] h1,[data-player] h2,[data-player] h3,[data-
player] h4,[data-player] h5,[data-player] h6,[data-player] header,[data-player]
hgroup,[data-player] i,[data-player] iframe,[data-player] img,[data-player] ins,
[data-player] kbd,[data-player] label,[data-player] legend,[data-player] li,[data-
player] mark,[data-player] menu,[data-player] nav,[data-player] object,[data-
player] ol,[data-player] output,[data-player] p,[data-player] pre,[data-player] q,
[data-player] ruby,[data-player] s,[data-player] samp,[data-player] section,[data-
player] small,[data-player] span,[data-player] strike,[data-player] strong,[data-
player] sub,[data-player] summary,[data-player] sup,[data-player] table,[data-
player] tbody,[data-player] td,[data-player] tfoot,[data-player] th,[data-player]
thead,[data-player] time,[data-player] tr,[data-player] tt,[data-player] u,[data-
player] ul,[data-player] var,[data-player]
video{margin:0;padding:0;border:0;font:inherit;font-size:100%;vertical-
align:baseline}[data-player] table{border-collapse:collapse;border-spacing:0}[data-
player] caption,[data-player] td,[data-player] th{text-align:left;font-
weight:400;vertical-align:middle}[data-player] blockquote,[data-player]
q{quotes:none}[data-player] blockquote:after,[data-player] blockquote:before,[data-
player] q:after,[data-player] q:before{content:"";content:none}[data-player] a
img{border:none}[data-player]:focus{outline:0}[data-player] *{max-width:none;box-
sizing:inherit;float:none}[data-player] div{display:block}[data-
player].fullscreen{width:100%!important;height:100%!important;top:0;left:0}[data-
player].nocursor{cursor:none}.clappr-style{display:none!
important}',""])},function(t,e,r){var i=r(82);(t.exports=r(8)(!
1)).push([t.i,'@font-face{font-family:Roboto;font-style:normal;font-
weight:400;src:local("Roboto"),local("Roboto-Regular"),url('+i(r(176))+')
format("truetype")}',""])},function(t,e){t.exports="<%=baseUrl%>/38861cba61c66739c1
452c3a71e39852.ttf"},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
n=D(r(76)),a=D(r(62)),o=D(r(0)),s=D(r(1)),i=D(r(2)),l=D(r(15)),u=D(r(40)),d=D(r(41)
),c=D(r(85)),f=D(r(86)),h=D(r(87)),p=D(r(88)),g=D(r(90)),m=D(r(91)),v=D(r(92)),y=D(
r(213)),A=D(r(93)),_=D(r(94)),b=D(r(223)),E=D(r(95)),T=D(r(96)),S=D(r(98)),k=D(r(23
4)),L=D(r(99)),R=D(r(240)),C=D(r(245)),w=D(r(246)),O=D(r(247)),P=D(r(248));function
D(t){return t&&t.__esModule?t:{default:t}}var I,x=(I=l.default,(0,i.default)
(M,I),M.prototype.groupPluginsByType=function(t){return
Array.isArray(t)&&(t=t.reduce(function(t,e){return t[e.type]||
(t[e.type]=[]),t[e.type].push(e),t},{})),t},M.prototype.removeDups=function(t){var
e=t.reduceRight(function(t,e){return t[e.prototype.name]&&delete
t[e.prototype.name],t[e.prototype.name]=e,t},(0,n.default)(null)),r=[];for(var i in
e)r.unshift(e[i]);return r},M.prototype.addExternalPlugins=function(t)
{(t=this.groupPluginsByType(t)).playback&&(this.playbackPlugins=this.removeDups(t.p
layback.concat(this.playbackPlugins))),t.container&&(this.containerPlugins=this.rem
oveDups(t.container.concat(this.containerPlugins))),t.core&&(this.corePlugins=this.
removeDups(t.core.concat(this.corePlugins))),u.default.getInstance(this.playerId).p
laybackPlugins=this.playbackPlugins},M.prototype.validateExternalPluginsType=functi
on(t){["playback","container","core"].forEach(function(r){(t[r]||
[]).forEach(function(t){var e="external "+t.type+" plugin on "+r+"
array";if(t.type!==r)throw new ReferenceError(e)})})},M);function M(){var
t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:
[],e=1<arguments.length&&void 0!==arguments[1]?
arguments[1]:0,r=2<arguments.length&&void 0!==arguments[2]&&arguments[2];
(0,o.default)(this,M);var i=(0,s.default)(this,I.call(this));return
i.playerId=e,i.playbackPlugins=[],r||(i.playbackPlugins=[].concat((0,a.default)
(i.playbackPlugins),[p.default])),i.playbackPlugins=[].concat((0,a.default)
(i.playbackPlugins),[d.default,f.default]),r||
(i.playbackPlugins=[].concat((0,a.default)(i.playbackPlugins),
[c.default,h.default])),i.playbackPlugins=[].concat((0,a.default)
(i.playbackPlugins),
[g.default,m.default]),i.containerPlugins=[v.default,A.default,_.default,y.default,
b.default,E.default],i.corePlugins=[T.default,S.default,k.default,L.default,R.defau
lt,C.default,w.default,P.default,O.default],Array.isArray(t)||
i.validateExternalPluginsType(t),i.addExternalPlugins(t),i}e.default=x,t.exports=e.
default},function(t,e,r){r(54),r(179),t.exports=r(9).Array.from},function(t,e,r)
{"use strict";var
p=r(44),i=r(16),g=r(38),m=r(180),v=r(181),y=r(69),A=r(182),_=r(77);i(i.S+i.F*!
r(183)(function(t){Array.from(t)}),"Array",{from:function(t,e,r){var
i,n,a,o,s=g(t),l="function"==typeof this?this:Array,u=arguments.length,d=1<u?e:void
0,c=void 0!==d,f=0,h=_(s);if(c&&(d=p(d,2<u?r:void 0,2)),null==h||
l==Array&&v(h))for(n=new l(i=y(s.length));f<i;f++)A(n,f,c?d(s[f],f):s[f]);else
for(o=h.call(s),n=new l;!(a=o.next()).done;f++)A(n,f,c?m(o,d,[a.value,f],!
0):a.value);return n.length=f,n}})},function(t,e,r){var
a=r(21);t.exports=function(e,t,r,i){try{return i?t(a(r)[0],r[1]):t(r)}catch(t){var
n=e.return;throw void 0!==n&&a(n.call(e)),t}}},function(t,e,r){var i=r(34),n=r(13)
("iterator"),a=Array.prototype;t.exports=function(t){return void 0!
==t&&(i.Array===t||a[n]===t)}},function(t,e,r){"use strict";var
i=r(18),n=r(33);t.exports=function(t,e,r){e in t?
i.f(t,e,n(0,r)):t[e]=r}},function(t,e,r){var a=r(13)("iterator"),o=!1;try{var i=[7]
[a]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t)
{}t.exports=function(t,e){if(!e&&!o)return!1;var r=!1;try{var i=[7],n=i[a]
();n.next=function(){return{done:r=!0}},i[a]=function(){return n},t(i)}catch(t)
{}return r}},function(k,L,R){"use strict";(function(i)
{Object.defineProperty(L,"__esModule",{value:!0});var
t=v(R(84)),s=v(R(0)),l=v(R(1)),e=v(R(3)),r=v(R(2)),n=v(R(62)),a=v(R(53)),o=R(5),u=v
(R(11)),d=v(R(14)),c=v(R(25)),f=v(R(4)),h=v(R(29)),p=v(R(6)),g=v(R(7)),m=v(R(185));
function v(t){return t&&t.__esModule?t:{default:t}}R(186);var y={mp4:
["avc1.42E01E","avc1.58A01E","avc1.4D401E","avc1.64001E","mp4v.20.8","mp4v.20.240",
"mp4a.40.2"].map(function(t){return'video/mp4; codecs="'+t+', mp4a.40.2"'}),ogg:
['video/ogg; codecs="theora, vorbis"','video/ogg; codecs="dirac"','video/ogg;
codecs="theora, speex"'],"3gpp":['video/3gpp; codecs="mp4v.20.8, samr"'],webm:
['video/webm; codecs="vp8, vorbis"'],mkv:['video/x-matroska; codecs="theora,
vorbis"'],m3u8:["application/x-mpegurl"]};y.ogv=y.ogg,y["3gp"]=y["3gpp"];var
A,_={wav:["audio/wav"],mp3:["audio/mp3",'audio/mpeg;codecs="mp3"'],aac:['audio/
mp4;codecs="mp4a.40.5"'],oga:["audio/ogg"]},b=(0,a.default)(_).reduce(function(t,e)
{return[].concat((0,n.default)(t),(0,n.default)(_[e]))},
[]),E={code:"unknown",message:"unknown"},T=(A=u.default,(0,r.default)(S,A),
(0,e.default)(S,[{key:"name",get:function(){return"html5_video"}},
{key:"tagName",get:function(){return this.isAudioOnly?"audio":"video"}},
{key:"isAudioOnly",get:function(){var
t=this.options.src,e=S._mimeTypesForUrl(t,_,this.options.mimeType);return
this.options.playback&&this.options.playback.audioOnly||this.options.audioOnly||
0<=b.indexOf(e[0])}},{key:"attributes",get:function(){return{"data-html5-
video":""}}},{key:"events",get:function()
{return{canplay:"_onCanPlay",canplaythrough:"_handleBufferingEvents",durationchange
:"_onDurationChange",ended:"_onEnded",error:"_onError",loadeddata:"_onLoadedData",l
oadedmetadata:"_onLoadedMetadata",pause:"_onPause",playing:"_onPlaying",progress:"_
onProgress",seeking:"_onSeeking",seeked:"_onSeeked",stalled:"_handleBufferingEvents
",timeupdate:"_onTimeUpdate",waiting:"_onWaiting"}}},{key:"ended",get:function()
{return this.el.ended}},{key:"buffering",get:function(){return
this._isBuffering}}]),S.prototype.configure=function(t)
{A.prototype.configure.call(this,t),this.el.loop=!!
t.loop},S.prototype.attemptAutoPlay=function(){var
r=this;this.canAutoPlay(function(t,e){e&&h.default.warn(r.name,"autoplay error.",
{result:t,error:e}),t&&i.nextTick(function(){return!
r._destroyed&&r.play()})})},S.prototype.canAutoPlay=function(t)
{this.options.disableCanAutoPlay&&t(!0,null);var
e={timeout:this.options.autoPlayTimeout||
500,inline:this.options.playback.playInline||!1,muted:this.options.mute||!
1};d.default.isMobile&&o.DomRecycler.options.recycleVideo&&(e.element=this.el),
(0,o.canAutoPlayMedia)(t,e)},S.prototype._setupExternalTracks=function(t)
{this._externalTracks=t.map(function(t)
{return{kind:t.kind||"subtitles",label:t.label,lang:t.lang,src:t.src}})},S.prototyp
e._setupSrc=function(t){this.el.src!==t&&(this._ccIsSetup=!
1,this.el.src=t,this._src=this.el.src)},S.prototype._onLoadedMetadata=function(t)
{this._handleBufferingEvents(),this.trigger(f.default.PLAYBACK_LOADEDMETADATA,
{duration:t.target.duration,data:t}),this._updateSettings();var e=void
0===this._options.autoSeekFromUrl||
this._options.autoSeekFromUrl;this.getPlaybackType()!
==u.default.LIVE&&e&&this._checkInitialSeek()},S.prototype._onDurationChange=functi
on()
{this._updateSettings(),this._onTimeUpdate(),this._onProgress()},S.prototype._updat
eSettings=function(){this.getPlaybackType()===u.default.VOD||
this.getPlaybackType()===u.default.AOD?
this.settings.left=["playpause","position","duration"]:this.settings.left=["playsto
p"],this.settings.seekEnabled=this.isSeekEnabled(),this.trigger(f.default.PLAYBACK_
SETTINGSUPDATE)},S.prototype.isSeekEnabled=function(){return
isFinite(this.getDuration())},S.prototype.getPlaybackType=function(){var
t="audio"===this.tagName?u.default.AOD:u.default.VOD;return 0<=[0,void
0,1/0].indexOf(this.el.duration)?
u.default.LIVE:t},S.prototype.isHighDefinitionInUse=function(){return!
1},S.prototype.consent=function(){this.isPlaying()||
(A.prototype.consent.call(this),this.el.load())},S.prototype.play=function()
{this.trigger(f.default.PLAYBACK_PLAY_INTENT),this._stopped=!
1,this._setupSrc(this._src),this._handleBufferingEvents();var
t=this.el.play();t&&t.catch&&t.catch(function(){})},S.prototype.pause=function()
{this.el.pause()},S.prototype.stop=function(){this.pause(),this._stopped=!
0,this.el.removeAttribute("src"),this.el.load(),this._stopPlayheadMovingChecks(),th
is._handleBufferingEvents(),this.trigger(f.default.PLAYBACK_STOP)},S.prototype.volu
me=function(t){0===t?(this.$el.attr({muted:"true"}),this.el.muted=!0):(this.
$el.attr({muted:null}),this.el.muted=!1,this.el.volume=t/
100)},S.prototype.mute=function(){this.el.muted=!0},S.prototype.unmute=function()
{this.el.muted=!1},S.prototype.isMuted=function(){return!0===this.el.muted||
0===this.el.volume},S.prototype.isPlaying=function(){return!this.el.paused&&!
this.el.ended},S.prototype._startPlayheadMovingChecks=function()
{null===this._playheadMovingTimer&&(this._playheadMovingTimeOnCheck=null,this._dete
rmineIfPlayheadMoving(),this._playheadMovingTimer=setInterval(this._determineIfPlay
headMoving.bind(this),500))},S.prototype._stopPlayheadMovingChecks=function(){null!
==this._playheadMovingTimer&&(clearInterval(this._playheadMoving
Timer),this._playheadMovingTimer=null,this._playheadMoving=!
1)},S.prototype._determineIfPlayheadMoving=function(){var
t=this._playheadMovingTimeOnCheck,e=this.el.currentTime;this._playheadMoving=t!
==e,this._playheadMovingTimeOnCheck=e,this._handleBufferingEvents()},S.prototype._o
nWaiting=function(){this._loadStarted=!
0,this._handleBufferingEvents()},S.prototype._onLoadedData=function()
{this._loadStarted=!
0,this._handleBufferingEvents()},S.prototype._onCanPlay=function()
{this._handleBufferingEvents()},S.prototype._onPlaying=function()
{this._checkForClosedCaptions(),this._startPlayheadMovingChecks(),this._handleBuffe
ringEvents(),this.trigger(f.default.PLAYBACK_PLAY)},S.prototype._onPause=function()
{this._stopPlayheadMovingChecks(),this._handleBufferingEvents(),this.trigger(f.defa
ult.PLAYBACK_PAUSE)},S.prototype._onSeeking=function()
{this._handleBufferingEvents(),this.trigger(f.default.PLAYBACK_SEEK)},S.prototype._
onSeeked=function()
{this._handleBufferingEvents(),this.trigger(f.default.PLAYBACK_SEEKED)},S.prototype
._onEnded=function()
{this._handleBufferingEvents(),this.trigger(f.default.PLAYBACK_ENDED,this.name)},S.
prototype._handleBufferingEvents=function(){var t=!this.el.ended&&!
this.el.paused,e=this._loadStarted&&!this.el.ended&&!this._stopped&&(t&&!
this._playheadMoving||
this.el.readyState<this.el.HAVE_FUTURE_DATA);this._isBuffering!
==e&&((this._isBuffering=e)?
this.trigger(f.default.PLAYBACK_BUFFERING,this.name):this.trigger(f.default.PLAYBAC
K_BUFFERFULL,this.name))},S.prototype._onError=function(){var t=this.el.error||
E,e=t.code,r=t.message,i=e===E.code,n=this.createError({code:e,description:r,raw:th
is.el.error,level:i?c.default.Levels.WARN:c.default.Levels.FATAL});i?
h.default.warn(this.name,"HTML5 unknown error:
",n):this.trigger(f.default.PLAYBACK_ERROR,n)},S.prototype.destroy=function()
{this._destroyed=!
0,this.handleTextTrackChange&&this.el.textTracks.removeEventListener("change",this.
handleTextTrackChange),A.prototype.destroy.call(this),this.el.removeAttribute("src"
),this.el.load(),this._src=null,o.DomRecycler.garbage(this.
$el)},S.prototype.seek=function(t)
{this.el.currentTime=t},S.prototype.seekPercentage=function(t){var
e=this.el.duration*(t/100);this.seek(e)},S.prototype._checkInitialSeek=function()
{var t=(0,o.seekStringToSeconds)();0!
==t&&this.seek(t)},S.prototype.getCurrentTime=function(){return
this.el.currentTime},S.prototype.getDuration=function(){return
this.el.duration},S.prototype._onTimeUpdate=function()
{this.getPlaybackType()===u.default.LIVE?
this.trigger(f.default.PLAYBACK_TIMEUPDATE,
{current:1,total:1},this.name):this.trigger(f.default.PLAYBACK_TIMEUPDATE,
{current:this.el.currentTime,total:this.el.duration},this.name)},S.prototype._onPro
gress=function(){if(this.el.buffered.length){for(var
t=[],e=0,r=0;r<this.el.buffered.length;r++)t=[].concat((0,n.default)(t),
[{start:this.el.buffered.start(r),end:this.el.buffered.end(r)}]),this.el.currentTim
e>=t[r].start&&this.el.currentTime<=t[r].end&&(e=r);var
i={start:t[e].start,current:t[e].end,total:this.el.duration};this.trigger(f.default
.PLAYBACK_PROGRESS,i,t)}},S.prototype._typeFor=function(t){var
e=S._mimeTypesForUrl(t,y,this.options.mimeType);return
0===e.length&&(e=S._mimeTypesForUrl(t,_,this.options.mimeType)),
(e[0]||"").split(";")[0]},S.prototype._ready=function(){this._isReadyState||
(this._isReadyState=!
0,this.trigger(f.default.PLAYBACK_READY,this.name))},S.prototype._checkForClosedCap
tions=function(){if(this.isHTML5Video&&!this._ccIsSetup)
{if(this.hasClosedCaptionsTracks)
{this.trigger(f.default.PLAYBACK_SUBTITLE_AVAILABLE);var
t=this.closedCaptionsTrackId;this.closedCaptionsTrackId=t,this.handleTextTrackChang
e=this._handleTextTrackChange.bind(this),this.el.textTracks.addEventListener("chang
e",this.handleTextTrackChange)}this._ccIsSetup=!
0}},S.prototype._handleTextTrackChange=function(){var
t=this.closedCaptionsTracks.find(function(t){return"showing"===t.track.mode})||
{id:-1};this._ccTrackId!
==t.id&&(this._ccTrackId=t.id,this.trigger(f.default.PLAYBACK_SUBTITLE_CHANGED,
{id:t.id}))},S.prototype.render=function(){return
this.options.playback.disableContextMenu&&this.$el.on("contextmenu",function()
{return!1}),this._externalTracks&&0<this._externalTracks.length&&this.
$el.html(this.template({tracks:this._externalTracks})),this._ready(),this},
(0,e.default)(S,[{key:"isReady",get:function(){return this._isReadyState}},
{key:"isHTML5Video",get:function(){return this.name===S.prototype.name}},
{key:"closedCaptionsTracks",get:function(){var e=0;return(this.el.textTracks?
(0,t.default)(this.el.textTracks):[]).filter(function(t)
{return"subtitles"===t.kind||"captions"===t.kind}).map(function(t){return{id:e+
+,name:t.label,track:t}})}},{key:"closedCaptionsTrackId",get:function(){return
this._ccTrackId},set:function(e){if((0,o.isNumber)(e)){var
t=this.closedCaptionsTracks,r=void 0;if(-1!==e){if(!(r=t.find(function(t){return
t.id===e})))return;if("showing"===r.track.mode)return}t.filter(function(t)
{return"hidden"!==t.track.mode}).forEach(function(t){return
t.track.mode="hidden"}),r&&(r.track.mode="showing"),this._ccTrackId=e,this.trigger(
f.default.PLAYBACK_SUBTITLE_CHANGED,{id:e})}}},{key:"template",get:function()
{return(0,g.default)(m.default)}}]),S);function S(){(0,s.default)(this,S);for(var
t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];var i=(0,l.default)
(this,A.call.apply(A,[this].concat(e)));i._destroyed=!1,i._loadStarted=!
1,i._isBuffering=!1,i._playheadMoving=!1,i._playheadMovingTimer=null,i._stopped=!
1,i._ccTrackId=-1,i._setupSrc(i.options.src),i.options.playback||
(i.options.playback=i.options||
{}),i.options.playback.disableContextMenu=i.options.playback.disableContextMenu||
i.options.disableVideoTagContextMenu;var n=i.options.playback,a=n.preload||
(d.default.isSafari?"auto":i.options.preload),o=void 0;return
i.options.poster&&("string"==typeof i.options.poster?
o=i.options.poster:"string"==typeof
i.options.poster.url&&(o=i.options.poster.url)),p.default.extend(i.el,
{muted:i.options.mute,defaultMuted:i.options.mute,loop:i.options.loop,poster:o,prel
oad:a||"metadata",controls:(n.controls||
i.options.useVideoTagDefaultControls)&&"controls",crossOrigin:n.crossOrigin,"x-
webkit-playsinline":n.playInline}),n.playInline&&i.
$el.attr({playsinline:"playsinline"}),n.crossOrigin&&i.
$el.attr({crossorigin:n.crossOrigin}),i.settings={default:
["seekbar"]},i.settings.left=["playpause","position","duration"],i.settings.right=[
"fullscreen","volume","hd-
indicator"],n.externalTracks&&i._setupExternalTracks(n.externalTracks),i.options.au
toPlay&&i.attemptAutoPlay(),i}(L.default=T)._mimeTypesForUrl=function(t,e,r){var
i=(t.split("?")[0].match(/.*\.(.*)$/)||[])[1],n=r||i&&e[i.toLowerCase()]||[];return
n.constructor===Array?n:[n]},T._canPlay=function(t,e,r,i){var
n=T._mimeTypesForUrl(r,e,i),a=document.createElement(t);return!!
n.filter(function(t){return!!a.canPlayType(t).replace(/no/,"")})
[0]},T.canPlay=function(t,e){return T._canPlay("audio",_,t,e)||
T._canPlay("video",y,t,e)},k.exports=L.default}).call(this,R(63))},function(t,e)
{t.exports='<% for (var i = 0; i < tracks.length; i++) { %>\n <track data-html5-
video-track="<%= i %>" kind="<%= tracks[i].kind %>" label="<%= tracks[i].label %>"
srclang="<%= tracks[i].lang %>" src="<%= tracks[i].src %>" />\n<% }; %>\
n'},function(t,e,r){var i=r(187);"string"==typeof i&&(i=[[t.i,i,""]]);var
n={singleton:!0,hmr:!0,transform:void 0,insertInto:void 0};r(10)
(i,n);i.locals&&(t.exports=i.locals)},function(t,e,r){(t.exports=r(8)(!
1)).push([t.i,"[data-html5-video]
{position:absolute;height:100%;width:100%;display:block}",""])},function(t,e,r)
{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var
n=m(r(0)),a=m(r(1)),i=m(r(3)),o=m(r(2)),s=r(5),l=m(r(64)),u=m(r(14)),d=m(r(31)),c=m
(r(7)),f=m(r(6)),h=m(r(4)),p=m(r(11)),g=m(r(193));function m(t){return
t&&t.__esModule?t:{default:t}}var v,y=(v=l.default,(0,o.default)(A,v),(0,i.default)
(A,[{key:"name",get:function(){return"flash"}},{key:"swfPath",get:function()
{return(0,c.default)(g.default)({baseUrl:this._baseUrl})}},
{key:"ended",get:function(){return"ENDED"===this._currentState}},
{key:"buffering",get:function(){return!!this._bufferingState&&"ENDED"!
==this._currentState}}]),A.prototype._bootstrap=function(){var
t=this;this.el.playerPlay?
(this.el.width="100%",this.el.height="100%","PLAYING"===this._currentState?
this._firstPlay():(this._currentState="IDLE",this._autoPlay&&this.play()),
(0,f.default)('<div style="position: absolute; top: 0; left: 0; width: 100%;
height: 100%" />').insertAfter(this.$el),0<this.getDuration()?
this._metadataLoaded():d.default.once(this.uniqueId+":timeupdate",this._metadataLoa
ded,this)):(this._attempts=this._attempts||0,++this._attempts<=60?
setTimeout(function(){return
t._bootstrap()},50):this.trigger(h.default.PLAYBACK_ERROR,{message:"Max number of
attempts reached"},this.name))},A.prototype._metadataLoaded=function()
{this._isReadyState=!
0,this.trigger(h.default.PLAYBACK_READY,this.name),this.trigger(h.default.PLAYBACK_
SETTINGSUPDATE,this.name)},A.prototype.getPlaybackType=function(){return
p.default.VOD},A.prototype.isHighDefinitionInUse=function(){return!
1},A.prototype._updateTime=function(){this.trigger(h.default.PLAYBACK_TIMEUPDATE,
{current:this.el.getPosition(),total:this.el.getDuration()},this.name)},A.prototype
._addListeners=function()
{d.default.on(this.uniqueId+":progress",this._progress,this),d.default.on(this.uniq
ueId+":timeupdate",this._updateTime,this),d.default.on(this.uniqueId+":statechanged
",this._checkState,this),d.default.on(this.uniqueId+":flashready",this._bootstrap,t
his)},A.prototype.stopListening=function()
{v.prototype.stopListening.call(this),d.default.off(this.uniqueId+":progress"),d.de
fault.off(this.uniqueId+":timeupdate"),d.default.off(this.uniqueId+":statechanged")
,d.default.off(this.uniqueId+":flashready")},A.prototype._checkState=function()
{this._isIdle||"PAUSED"===this._currentState||("PLAYING_BUFFERING"!
==this._currentState&&"PLAYING_BUFFERING"===this.el.getState()?
(this._bufferingState=!0,this.trigger(h.default.PLAYBACK_BUFFER
ING,this.name),this._currentState="PLAYING_BUFFERING"):"PLAYING"===this.el.getState
()?(this._bufferingState=!
1,this.trigger(h.default.PLAYBACK_BUFFERFULL,this.name),this._currentState="PLAYING
"):"IDLE"===this.el.getState()?
this._currentState="IDLE":"ENDED"===this.el.getState()&&(this.trigger(h.default.PLA
YBACK_ENDED,this.name),this.trigger(h.default.PLAYBACK_TIMEUPDATE,
{current:0,total:this.el.getDuration()},this.name),this._currentState="ENDED",this.
_isIdle=!0))},A.prototype._progress=function(){"IDLE"!
==this._currentState&&"ENDED"!
==this._currentState&&this.trigger(h.default.PLAYBACK_PROGRESS,
{start:0,current:this.el.getBytesLoaded(),total:this.el.getBytesTotal()})},A.protot
ype._firstPlay=function(){var t=this;this.el.playerPlay?(this._isIdle=!
1,this.el.playerPlay(this._src),this.listenToOnce(this,h.default.PLAYBACK_BUFFERFUL
L,function(){return
t._checkInitialSeek()}),this._currentState="PLAYING"):this.listenToOnce(this,h.defa
ult.PLAYBACK_READY,this._firstPlay)},A.prototype._checkInitialSeek=function(){var
t=(0,s.seekStringToSeconds)(window.location.href);0!
==t&&this.seekSeconds(t)},A.prototype.play=function()
{this.trigger(h.default.PLAYBACK_PLAY_INTENT),"PAUSED"===this._currentState||"PLAYI
NG_BUFFERING"===this._currentState?
(this._currentState="PLAYING",this.el.playerResume(),this.trigger(h.default.PLAYBAC
K_PLAY,this.name)):"PLAYING"!
==this._currentState&&(this._firstPlay(),this.trigger(h.default.PLAYBACK_PLAY,this.
name))},A.prototype.volume=function(t){var e=this;this.isReady?
this.el.playerVolume(t):this.listenToOnce(this,h.default.PLAYBACK_BUFFERFULL,functi
on(){return e.volume(t)})},A.prototype.pause=function()
{this._currentState="PAUSED",this.el.playerPause(),this.trigger(h.default.PLAYBACK_
PAUSE,this.name)},A.prototype.stop=function()
{this.el.playerStop(),this.trigger(h.default.PLAYBACK_STOP),this.trigger(h.default.
PLAYBACK_TIMEUPDATE,
{current:0,total:0},this.name)},A.prototype.isPlaying=function(){return!!
(this.isReady&&-
1<this._currentState.indexOf("PLAYING"))},A.prototype.getDuration=function(){return
this.el.getDuration()},A.prototype.seekPercentage=function(t){var
e=this;if(0<this.el.getDuration()){var
r=this.el.getDuration()*(t/100);this.seek(r)}else
this.listenToOnce(this,h.default.PLAYBACK_BUFFERFULL,function(){return
e.seekPercentage(t)})},A.prototype.seek=function(t){var
e=this;this.isReady&&this.el.playerSeek?
(this.el.playerSeek(t),this.trigger(h.default.PLAYBACK_TIMEUPDATE,
{current:t,total:this.el.getDuration()},this.name),"PAUSED"===this._currentState&&t
his.el.playerPause()):this.listenToOnce(this,h.default.PLAYBACK_BUFFERFULL,function
(){return e.seek(t)})},A.prototype.destroy=function()
{clearInterval(this.bootstrapId),v.prototype.stopListening.call(this),this.
$el.remove()},(0,i.default)(A,[{key:"isReady",get:function(){return
this._isReadyState}}]),A);function A(){(0,n.default)(this,A);for(var
t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];var i=(0,a.default)
(this,v.call.apply(v,[this].concat(e)));return
i._src=i.options.src,i._baseUrl=i.options.baseUrl,i._autoPlay=i.options.autoPlay,i.
settings={default:
["seekbar"]},i.settings.left=["playpause","position","duration"],i.settings.right=[
"fullscreen","volume"],i.settings.seekEnabled=!0,i._isReadyState=!
1,i._addListeners(),i}(e.default=y).canPlay=function(t)
{if(u.default.hasFlash&&t&&t.constructor===String){var e=t.split("?")
[0].match(/.*\.(.*)$/)||[];return 1<e.length&&!
u.default.isMobile&&e[1].toLowerCase().match(/^(mp4|mov|f4v|3gpp|3gp)$/)}return!
1},t.exports=e.default},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
i=c(r(0)),n=c(r(3)),a=c(r(1)),o=c(r(2)),s=c(r(11)),l=c(r(7)),u=c(r(14)),d=c(r(190))
;function c(t){return t&&t.__esModule?t:{default:t}}r(191);var f,h=(f=s.default,
(0,o.default)(p,f),p.prototype.setElement=function(t){this.
$el=t,this.el=t[0]},p.prototype.render=function(){return this.
$el.attr("data",this.swfPath),this.
$el.html(this.template({cid:this.cid,swfPath:this.swfPath,baseUrl:this.baseUrl,play
backId:this.uniqueId,wmode:this.wmode,callbackName:"window.Clappr.flashlsCallbacks.
"+this.cid})),u.default.isIE&&(this.$("embed").remove(),u.default.isLegacyIE&&this.
$el.attr("classid","clsid:d27cdb6e-ae6d-11cf-96b8-
444553540000")),this.el.id=this.cid,this},(0,n.default)(p,
[{key:"tagName",get:function(){return"object"}},{key:"swfPath",get:function()
{return""}},{key:"wmode",get:function(){return"transparent"}},
{key:"template",get:function(){return(0,l.default)(d.default)}},
{key:"attributes",get:function(){var t="application/x-shockwave-flash";return
u.default.isLegacyIE&&(t=""),{class:"clappr-flash-
playback",type:t,width:"100%",height:"100%",data:this.swfPath,"data-flash-
playback":this.name}}}]),p);function p(){return(0,i.default)(this,p),(0,a.default)
(this,f.apply(this,arguments))}e.default=h,t.exports=e.default},function(t,e)
{t.exports='<param name="movie" value="<%= swfPath %>">\n<param name="quality"
value="autohigh">\n<param name="swliveconnect" value="true">\n<param
name="allowScriptAccess" value="always">\n<param name="bgcolor" value="#000000">\
n<param name="allowFullScreen" value="false">\n<param name="wmode" value="<%= wmode
%>">\n<param name="tabindex" value="1">\n<param name="FlashVars"
value="playbackId=<%= playbackId %>&callback=<%= callbackName %>">\n<embed\n
name="<%= cid %>"\n type="application/x-shockwave-flash"\n disabled="disabled"\n
tabindex="-1"\n enablecontextmenu="false"\n allowScriptAccess="always"\n
quality="autohigh"\n pluginspage="http://www.macromedia.com/go/getflashplayer"\n
wmode="<%= wmode %>"\n swliveconnect="true"\n allowfullscreen="false"\n
bgcolor="#000000"\n FlashVars="playbackId=<%= playbackId %>&callback=<%=
callbackName %>"\n data="<%= swfPath %>"\n src="<%= swfPath %>"\n width="100%"\n
height="100%">\n</embed>\n'},function(t,e,r){var i=r(192);"string"==typeof
i&&(i=[[t.i,i,""]]);var n={singleton:!0,hmr:!0,transform:void 0,insertInto:void
0};r(10)(i,n);i.locals&&(t.exports=i.locals)},function(t,e,r){(t.exports=r(8)(!
1)).push([t.i,".clappr-flash-playback[data-flash-playback]
{display:block;position:absolute;top:0;left:0;height:100%;width:100%;pointer-
events:none}",""])},function(t,e){t.exports="<%=baseUrl%>/
4b76590b32dab62bc95c1b7951efae78.swf"},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
i=d(r(0)),n=d(r(3)),a=d(r(1)),o=d(r(2)),s=d(r(4)),l=d(r(11)),u=d(r(41));function
d(t){return t&&t.__esModule?t:{default:t}}var c,f=(c=u.default,(0,o.default)
(h,c),h.prototype.updateSettings=function()
{this.settings.left=["playpause","position","duration"],this.settings.seekEnabled=t
his.isSeekEnabled(),this.trigger(s.default.PLAYBACK_SETTINGSUPDATE)},h.prototype.ge
tPlaybackType=function(){return l.default.AOD},(0,n.default)(h,
[{key:"name",get:function(){return"html5_audio"}},{key:"tagName",get:function()
{return"audio"}},{key:"isAudioOnly",get:function(){return!0}}]),h);function h()
{return(0,i.default)(this,h),(0,a.default)(this,c.apply(this,arguments))}
(e.default=f).canPlay=function(t,e){return u.default._canPlay("audio",{wav:
["audio/wav"],mp3:["audio/mp3",'audio/mpeg;codecs="mp3"'],aac:['audio/
mp4;codecs="mp4a.40.5"'],oga:["audio/
ogg"]},t,e)},t.exports=e.default},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
n=v(r(0)),a=v(r(1)),i=v(r(3)),o=v(r(2)),s=v(r(64)),l=v(r(4)),u=v(r(7)),d=v(r(11)),c
=v(r(31)),f=v(r(14)),h=v(r(25)),p=v(r(196)),g=v(r(197)),m=v(r(6));function v(t)
{return t&&t.__esModule?t:{default:t}}var y,A=(y=s.default,(0,o.default)(_,y),
(0,i.default)(_,[{key:"name",get:function(){return"flashls"}},
{key:"swfPath",get:function(){return(0,u.default)(g.default)
({baseUrl:this._baseUrl})}},{key:"levels",get:function(){return this._levels||[]}},
{key:"currentLevel",get:function(){return null===this._currentLevel||void
0===this._currentLevel?-1:this._currentLevel},set:function(t)
{this._currentLevel=t,this.trigger(l.default.PLAYBACK_LEVEL_SWITCH_START),this.el.p
layerSetCurrentLevel(t)}},{key:"ended",get:function(){return this._hasEnded}},
{key:"buffering",get:function(){return!!this._bufferingState&&!
this._hasEnded}}]),_.prototype._initHlsParameters=function(t)
{this._autoStartLoad=void 0===t.autoStartLoad||
t.autoStartLoad,this._capLevelToStage=void 0!
==t.capLevelToStage&&t.capLevelToStage,this._maxLevelCappingMode=void
0===t.maxLevelCappingMode?"downscale":t.maxLevelCappingMode,this._minBufferLength=v
oid 0===t.minBufferLength?-1:t.minBufferLength,this._minBufferLengthCapping=void
0===t.minBufferLengthCapping?-1:t.minBufferLengthCapping,this._maxBufferLength=void
0===t.maxBufferLength?120:t.maxBufferLength,this._maxBackBufferLength=void
0===t.maxBackBufferLength?30:t.maxBackBufferLength,this._lowBufferLength=void
0===t.lowBufferLength?3:t.lowBufferLength,this._mediaTimePeriod=void
0===t.mediaTimePeriod?100:t.mediaTimePeriod,this._fpsDroppedMonitoringPeriod=void
0===t.fpsDroppedMonitoringPeriod?
5e3:t.fpsDroppedMonitoringPeriod,this._fpsDroppedMonitoringThreshold=void
0===t.fpsDroppedMonitoringThreshold?.2:t.fpsDroppedMonitoringThreshold,this._capLev
elonFPSDrop=void 0!
==t.capLevelonFPSDrop&&t.capLevelonFPSDrop,this._smoothAutoSwitchonFPSDrop=void
0===t.smoothAutoSwitchonFPSDrop?
this.capLevelonFPSDrop:t.smoothAutoSwitchonFPSDrop,this._switchDownOnLevelError=voi
d 0===t.switchDownOnLevelError||t.switchDownOnLevelError,this._seekMode=void
0===t.seekMode?"ACCURATE":t.seekMode,this._keyLoadMaxRetry=void
0===t.keyLoadMaxRetry?3:t.keyLoadMaxRetry,this._keyLoadMaxRetryTimeout=void
0===t.keyLoadMaxRetryTimeout?
64e3:t.keyLoadMaxRetryTimeout,this._fragmentLoadMaxRetry=void
0===t.fragmentLoadMaxRetry?
3:t.fragmentLoadMaxRetry,this._fragmentLoadMaxRetryTimeout=void
0===t.fragmentLoadMaxRetryTimeout?
4e3:t.fragmentLoadMaxRetryTimeout,this._fragmentLoadSkipAfterMaxRetry=void
0===t.fragmentLoadSkipAfterMaxRetry||
t.fragmentLoadSkipAfterMaxRetry,this._maxSkippedFragments=void
0===t.maxSkippedFragments?5:t.maxSkippedFragments,this._flushLiveURLCache=void
0!==t.flushLiveURLCache&&t.flushLiveURLCache,this._initialLiveManifestSize=void
0===t.initialLiveManifestSize?
1:t.initialLiveManifestSize,this._manifestLoadMaxRetry=void
0===t.manifestLoadMaxRetry?
3:t.manifestLoadMaxRetry,this._manifestLoadMaxRetryTimeout=void
0===t.manifestLoadMaxRetryTimeout?
64e3:t.manifestLoadMaxRetryTimeout,this._manifestRedundantLoadmaxRetry=void
0===t.manifestRedundantLoadmaxRetry?
3:t.manifestRedundantLoadmaxRetry,this._startFromBitrate=void
0===t.startFromBitrate?-1:t.startFromBitrate,this._startFromLevel=void
0===t.startFromLevel?-1:t.startFromLevel,this._autoStartMaxDuration=void
0===t.autoStartMaxDuration?-1:t.autoStartMaxDuration,this._seekFromLevel=void
0===t.seekFromLevel?-1:t.seekFromLevel,this._useHardwareVideoDecoder=void 0!
==t.useHardwareVideoDecoder&&t.useHardwareVideoDecoder,this._hlsLogEnabled=void
0===t.hlsLogEnabled||t.hlsLogEnabled,this._logDebug=void 0!
==t.logDebug&&t.logDebug,this._logDebug2=void 0!
==t.logDebug2&&t.logDebug2,this._logWarn=void 0===t.logWarn||
t.logWarn,this._logError=void 0===t.logError||
t.logError,this._hlsMinimumDvrSize=void 0===t.hlsMinimumDvrSize?
60:t.hlsMinimumDvrSize},_.prototype._addListeners=function(){var
i=this;c.default.on(this.cid+":flashready",function(){return
i._bootstrap()}),c.default.on(this.cid+":timeupdate",function(t){return
i._updateTime(t)}),c.default.on(this.cid+":playbackstate",function(t){return
i._setPlaybackState(t)}),c.default.on(this.cid+":levelchanged",function(t){return
i._levelChanged(t)}),c.default.on(this.cid+":error",function(t,e,r){return
i._flashPlaybackError(t,e,r)}),c.default.on(this.cid+":fragmentloaded",function(t)
{return i._onFragmentLoaded(t)}),c.default.on(this.cid+":levelendlist",function(t)
{return i._onLevelEndlist(t)})},_.prototype.stopListening=function()
{y.prototype.stopListening.call(this),c.default.off(this.cid+":flashready"),c.defau
lt.off(this.cid+":timeupdate"),c.default.off(this.cid+":playbackstate"),c.default.o
ff(this.cid+":levelchanged"),c.default.off(this.cid+":playbackerror"),c.default.off
(this.cid+":fragmentloaded"),c.default.off(this.cid+":manifestloaded"),c.default.of
f(this.cid+":levelendlist")},_.prototype._bootstrap=function(){var
t=this;if(this.el.playerLoad)this.el.width="100%",this.el.height="100%",this._isRea
dyState=!0,this._srcLoaded=!
1,this._currentState="IDLE",this._setFlashSettings(),this._updatePlaybackType(),
(this._autoPlay||
this._shouldPlayOnManifestLoaded)&&this.play(),this.trigger(l.default.PLAYBACK_READ
Y,this.name);else if(this._bootstrapAttempts=this._bootstrapAttempts||0,+
+this._bootstrapAttempts<=60)setTimeout(function(){return
t._bootstrap()},50);else{var
e=this.createError({code:"playerLoadFail_maxNumberAttemptsReached",description:this
.name+" error: Max number of attempts reached",level:h.default.Levels.FATAL,raw:
{}});this.trigger(l.default.PLAYBACK_ERROR,e)}},_.prototype._setFlashSettings=funct
ion()
{this.el.playerSetAutoStartLoad(this._autoStartLoad),this.el.playerSetCapLevelToSta
ge(this._capLevelToStage),this.el.playerSetMaxLevelCappingMode(this._maxLevelCappin
gMode),this.el.playerSetMinBufferLength(this._minBufferLength),this.el.playerSetMin
BufferLengthCapping(this._minBufferLengthCapping),this.el.playerSetMaxBufferLength(
this._maxBufferLength),this.el.playerSetMaxBackBufferLength(this._maxBackBufferLeng
th),this.el.playerSetLowBufferLength(this._lowBufferLength),this.el.playerSetMediaT
imePeriod(this._mediaTimePeriod),this.el.playerSetFpsDroppedMonitoringPeriod(this._
fpsDroppedMonitoringPeriod),this.el.playerSetFpsDroppedMonitoringThreshold(this._fp
sDroppedMonitoringThreshold),this.el.playerSetCapLevelonFPSDrop(this._capLevelonFPS
Drop),this.el.playerSetSmoothAutoSwitchonFPSDrop(this._smoothAutoSwitchonFPSDrop),t
his.el.playerSetSwitchDownOnLevelError(this._switchDownOnLevelError),this.el.player
SetSeekMode(this._seekMode),this.el.playerSetKeyLoadMaxRetry(this._keyLoadMaxRetry)
,this.el.playerSetKeyLoadMaxRetryTimeout(this._keyLoadMaxRetryTimeout),this.el.play
erSetFragmentLoadMaxRetry(this._fragmentLoadMaxRetry),this.el.playerSetFragmentLoad
MaxRetryTimeout(this._fragmentLoadMaxRetryTimeout),this.el.playerSetFragmentLoadSki
pAfterMaxRetry(this._fragmentLoadSkipAfterMaxRetry),this.el.playerSetMaxSkippedFrag
ments(this._maxSkippedFragments),this.el.playerSetFlushLiveURLCache(this._flushLive
URLCache),this.el.playerSetInitialLiveManifestSize(this._initialLiveManifestSize),t
his.el.playerSetManifestLoadMaxRetry(this._manifestLoadMaxRetry),this.el.playerSetM
anifestLoadMaxRetryTimeout(this._manifestLoadMaxRetryTimeout),this.el.playerSetMani
festRedundantLoadmaxRetry(this._manifestRedundantLoadmaxRetry),this.el.playerSetSta
rtFromBitrate(this._startFromBitrate),this.el.playerSetStartFromLevel(this._startFr
omLevel),this.el.playerSetAutoStartMaxDuration(this._autoStartMaxDuration),this.el.
playerSetSeekFromLevel(this._seekFromLevel),this.el.playerSetUseHardwareVideoDecode
r(this._useHardwareVideoDecoder),this.el.playerSetLogInfo(this._hlsLogEnabled),this
.el.playerSetLogDebug(this._logDebug),this.el.playerSetLogDebug2(this._logDebug2),t
his.el.playerSetLogWarn(this._logWarn),this.el.playerSetLogError(this._logError)},_
.prototype.setAutoStartLoad=function(t)
{this._autoStartLoad=t,this.el.playerSetAutoStartLoad(this._autoStartLoad)},_.proto
type.setCapLevelToStage=function(t)
{this._capLevelToStage=t,this.el.playerSetCapLevelToStage(this._capLevelToStage)},_
.prototype.setMaxLevelCappingMode=function(t)
{this._maxLevelCappingMode=t,this.el.playerSetMaxLevelCappingMode(this._maxLevelCap
pingMode)},_.prototype.setSetMinBufferLength=function(t)
{this._minBufferLength=t,this.el.playerSetMinBufferLength(this._minBufferLength)},_
.prototype.setMinBufferLengthCapping=function(t)
{this._minBufferLengthCapping=t,this.el.playerSetMinBufferLengthCapping(this._minBu
fferLengthCapping)},_.prototype.setMaxBufferLength=function(t)
{this._maxBufferLength=t,this.el.playerSetMaxBufferLength(this._maxBufferLength)},_
.prototype.setMaxBackBufferLength=function(t)
{this._maxBackBufferLength=t,this.el.playerSetMaxBackBufferLength(this._maxBackBuff
erLength)},_.prototype.setLowBufferLength=function(t)
{this._lowBufferLength=t,this.el.playerSetLowBufferLength(this._lowBufferLength)},_
.prototype.setMediaTimePeriod=function(t)
{this._mediaTimePeriod=t,this.el.playerSetMediaTimePeriod(this._mediaTimePeriod)},_
.prototype.setFpsDroppedMonitoringPeriod=function(t)
{this._fpsDroppedMonitoringPeriod=t,this.el.playerSetFpsDroppedMonitoringPeriod(thi
s._fpsDroppedMonitoringPeriod)},_.prototype.setFpsDroppedMonitoringThreshold=functi
on(t)
{this._fpsDroppedMonitoringThreshold=t,this.el.playerSetFpsDroppedMonitoringThresho
ld(this._fpsDroppedMonitoringThreshold)},_.prototype.setCapLevelonFPSDrop=function(
t)
{this._capLevelonFPSDrop=t,this.el.playerSetCapLevelonFPSDrop(this._capLevelonFPSDr
op)},_.prototype.setSmoothAutoSwitchonFPSDrop=function(t)
{this._smoothAutoSwitchonFPSDrop=t,this.el.playerSetSmoothAutoSwitchonFPSDrop(this.
_smoothAutoSwitchonFPSDrop)},_.prototype.setSwitchDownOnLevelError=function(t)
{this._switchDownOnLevelError=t,this.el.playerSetSwitchDownOnLevelError(this._switc
hDownOnLevelError)},_.prototype.setSeekMode=function(t)
{this._seekMode=t,this.el.playerSetSeekMode(this._seekMode)},_.prototype.setKeyLoad
MaxRetry=function(t)
{this._keyLoadMaxRetry=t,this.el.playerSetKeyLoadMaxRetry(this._keyLoadMaxRetry)},_
.prototype.setKeyLoadMaxRetryTimeout=function(t)
{this._keyLoadMaxRetryTimeout=t,this.el.playerSetKeyLoadMaxRetryTimeout(this._keyLo
adMaxRetryTimeout)},_.prototype.setFragmentLoadMaxRetry=function(t)
{this._fragmentLoadMaxRetry=t,this.el.playerSetFragmentLoadMaxRetry(this._fragmentL
oadMaxRetry)},_.prototype.setFragmentLoadMaxRetryTimeout=function(t)
{this._fragmentLoadMaxRetryTimeout=t,this.el.playerSetFragmentLoadMaxRetryTimeout(t
his._fragmentLoadMaxRetryTimeout)},_.prototype.setFragmentLoadSkipAfterMaxRetry=fun
ction(t)
{this._fragmentLoadSkipAfterMaxRetry=t,this.el.playerSetFragmentLoadSkipAfterMaxRet
ry(this._fragmentLoadSkipAfterMaxRetry)},_.prototype.setMaxSkippedFragments=functio
n(t)
{this._maxSkippedFragments=t,this.el.playerSetMaxSkippedFragments(this._maxSkippedF
ragments)},_.prototype.setFlushLiveURLCache=function(t)
{this._flushLiveURLCache=t,this.el.playerSetFlushLiveURLCache(this._flushLiveURLCac
he)},_.prototype.setInitialLiveManifestSize=function(t)
{this._initialLiveManifestSize=t,this.el.playerSetInitialLiveManifestSize(this._ini
tialLiveManifestSize)},_.prototype.setManifestLoadMaxRetry=function(t)
{this._manifestLoadMaxRetry=t,this.el.playerSetManifestLoadMaxRetry(this._manifestL
oadMaxRetry)},_.prototype.setManifestLoadMaxRetryTimeout=function(t)
{this._manifestLoadMaxRetryTimeout=t,this.el.playerSetManifestLoadMaxRetryTimeout(t
his._manifestLoadMaxRetryTimeout)},_.prototype.setManifestRedundantLoadmaxRetry=fun
ction(t)
{this._manifestRedundantLoadmaxRetry=t,this.el.playerSetManifestRedundantLoadmaxRet
ry(this._manifestRedundantLoadmaxRetry)},_.prototype.setStartFromBitrate=function(t
)
{this._startFromBitrate=t,this.el.playerSetStartFromBitrate(this._startFromBitrate)
},_.prototype.setStartFromLevel=function(t)
{this._startFromLevel=t,this.el.playerSetStartFromLevel(this._startFromLevel)},_.pr
ototype.setAutoStartMaxDuration=function(t)
{this._autoStartMaxDuration=t,this.el.playerSetAutoStartMaxDuration(this._autoStart
MaxDuration)},_.prototype.setSeekFromLevel=function(t)
{this._seekFromLevel=t,this.el.playerSetSeekFromLevel(this._seekFromLevel)},_.proto
type.setUseHardwareVideoDecoder=function(t)
{this._useHardwareVideoDecoder=t,this.el.playerSetUseHardwareVideoDecoder(this._use
HardwareVideoDecoder)},_.prototype.setSetLogInfo=function(t)
{this._hlsLogEnabled=t,this.el.playerSetLogInfo(this._hlsLogEnabled)},_.prototype.s
etLogDebug=function(t)
{this._logDebug=t,this.el.playerSetLogDebug(this._logDebug)},_.prototype.setLogDebu
g2=function(t)
{this._logDebug2=t,this.el.playerSetLogDebug2(this._logDebug2)},_.prototype.setLogW
arn=function(t)
{this._logWarn=t,this.el.playerSetLogWarn(this._logWarn)},_.prototype.setLogError=f
unction(t){this._logError
=t,this.el.playerSetLogError(this._logError)},_.prototype._levelChanged=function(t)
{var e=this.el.getLevels()[t];e&&(this.highDefinition=720<=e.height||
2e3<=e.bitrate/
1e3,this.trigger(l.default.PLAYBACK_HIGHDEFINITIONUPDATE,this.highDefinition),this.
_levels&&0!==this._levels.length||
this._fillLevels(),this.trigger(l.default.PLAYBACK_BITRATE,
{height:e.height,width:e.width,bandwidth:e.bitrate,bitrate:e.bitrate,level:t}),this
.trigger(l.default.PLAYBACK_LEVEL_SWITCH_END))},_.prototype._updateTime=function(t)
{if("IDLE"!==this._currentState){var
e=this._normalizeDuration(t.duration),r=Math.min(Math.max(t.position,0),e),i=this._
dvrEnabled,n=this._playbackType===d.default.LIVE;this._dvrEnabled=n&&e>this._hlsMin
imumDvrSize,100!==e&&(this._dvrEnabled!
==i&&(this._updateSettings(),this.trigger(l.default.PLAYBACK_SETTINGSUPDATE,this.na
me)),n&&!this._dvrEnabled&&(r=e),this.trigger(l.default.PLAYBACK_TIMEUPDATE,
{current:r,total:e},this.name))}},_.prototype.play=function()
{this.trigger(l.default.PLAYBACK_PLAY_INTENT),"PAUSED"===this._currentState?
this.el.playerResume():this._srcLoaded||"PLAYING"===this._currentState?
this.el.playerPlay():this._firstPlay()},_.prototype.getPlaybackType=function()
{return this._playbackType?
this._playbackType:null},_.prototype.getCurrentTime=function(){return
this.el.getPosition()},_.prototype.getCurrentLevelIndex=function(){return
this._currentLevel},_.prototype.getCurrentLevel=function(){return
this.levels[this.currentLevel]},_.prototype.getCurrentBitrate=function(){return
this.levels[this.currentLevel].bitrate},_.prototype.setCurrentLevel=function(t)
{this.currentLevel=t},_.prototype.isHighDefinitionInUse=function(){return
this.highDefinition},_.prototype.getLevels=function(){return
this.levels},_.prototype._setPlaybackState=function(t)
{0<=["PLAYING_BUFFERING","PAUSED_BUFFERING"].indexOf(t)?(this._bufferingState=!
0,this.trigger(l.default.PLAYBACK_BUFFERING,this.name),this._updateCurrentState(t))
:0<=["PLAYING","PAUSED"].indexOf(t)?
(0<=["PLAYING_BUFFERING","PAUSED_BUFFERING","IDLE"].indexOf(this._currentState)&&(t
his._bufferingState=!
1,this.trigger(l.default.PLAYBACK_BUFFERFULL,this.name)),this._updateCurrentState(t
)):"IDLE"===t&&(this._srcLoaded=!
1,this._loop&&0<=["PLAYING_BUFFERING","PLAYING"].indexOf(this._currentState)?
(this.play(),this.seek(0)):(this._updateCurrentState(t),this._hasEnded=!
0,this.trigger(l.default.PLAYBACK_TIMEUPDATE,
{current:0,total:this.getDuration()},this.name),this.trigger(l.default.PLAYBACK_END
ED,this.name)))},_.prototype._updateCurrentState=function(t){"IDLE"!
==(this._currentState=t)&&(this._hasEnded=!
1),this._updatePlaybackType(),"PLAYING"===t?
this.trigger(l.default.PLAYBACK_PLAY,this.name):"PAUSED"===t&&this.trigger(l.defaul
t.PLAYBACK_PAUSE,this.name)},_.prototype._updatePlaybackType=function()
{this._playbackType=this.el.getType(),this._playbackType&&(this._playbackType=this.
_playbackType.toLowerCase(),this._playbackType===d.default.VOD?
this._startReportingProgress():this._stopReportingProgress()),this.trigger(l.defaul
t.PLAYBACK_PLAYBACKSTATE,
{type:this._playbackType})},_.prototype._startReportingProgress=function()
{this._reportingProgress||(this._reportingProgress=!
0)},_.prototype._stopReportingProgress=function(){this._reportingProgress=!
1},_.prototype._onFragmentLoaded=function(t)
{if(this.trigger(l.default.PLAYBACK_FRAGMENT_LOADED,t),this._reportingProgress&&thi
s.getCurrentTime()){var e=this.getCurrentTime()
+this.el.getbufferLength();this.trigger(l.default.PLAYBACK_PROGRESS,
{start:this.getCurrentTime(),current:e,total:this.el.getDuration()})}},_.prototype.
_onLevelEndlist=function()
{this._updatePlaybackType()},_.prototype._firstPlay=function(){var
r=this;this._shouldPlayOnManifestLoaded=!
0,this.el.playerLoad&&(c.default.once(this.cid+":manifestloaded",function(t,e)
{return
r._manifestLoaded(t,e)}),this._setFlashSettings(),this.el.playerLoad(this._src),thi
s._srcLoaded=!0)},_.prototype.volume=function(t){var e=this;this.isReady?
this.el.playerVolume(t):this.listenToOnce(this,l.default.PLAYBACK_BUFFERFULL,functi
on(){return e.volume(t)})},_.prototype.pause=function()
{this._playbackType===d.default.LIVE&&!this._dvrEnabled||
(this.el.playerPause(),this._playbackType===d.default.LIVE&&this._dvrEnabled&&this.
_updateDvr(!0))},_.prototype.stop=function(){this._srcLoaded=!
1,this.el.playerStop(),this.trigger(l.default.PLAYBACK_STOP),this.trigger(l.default
.PLAYBACK_TIMEUPDATE,
{current:0,total:0},this.name)},_.prototype.isPlaying=function(){return!!
this._currentState&&!!this._currentState.match(/playing/
i)},_.prototype.getDuration=function(){return
this._normalizeDuration(this.el.getDuration())},_.prototype._normalizeDuration=func
tion(t){return this._playbackType===d.default.LIVE&&(t=Math.max(0,t-
10)),t},_.prototype.seekPercentage=function(t){var
e=this.el.getDuration(),r=0;0<t&&(r=e*t/100),this.seek(r)},_.prototype.seek=functio
n(t){var e=this.getDuration();if(this._playbackType===d.default.LIVE){var r=3<e-
t;this._updateDvr(r)}this.el.playerSeek(t),this.trigger(l.default.PLAYBACK_TIMEUPDA
TE,{current:t,total:e},this.name)},_.prototype._updateDvr=function(t){var e=!!
this._dvrInUse;this._dvrInUse=t,this._dvrInUse!
==e&&(this._updateSettings(),this.trigger(l.default.PLAYBACK_DVR,this._dvrInUse),th
is.trigger(l.default.PLAYBACK_STATS_ADD,
{dvr:this._dvrInUse}))},_.prototype._flashPlaybackError=function(t,e,r){var
i={code:t,description:r,level:h.default.Levels.FATAL,raw:
{code:t,url:e,message:r}},n=this.createError(i);this.trigger(l.default.PLAYBACK_ERR
OR,n),this.trigger(l.default.PLAYBACK_STOP)},_.prototype._manifestLoaded=function(t
,e){this._shouldPlayOnManifestLoaded&&(this._shouldPlayOnManifestLoaded=!
1,this.el.playerPlay()),this._fillLevels(),this.trigger(l.default.PLAYBACK_LOADEDME
TADATA,{duration:t,data:e})},_.prototype._fillLevels=function(){var
t=this.el.getLevels(),e=t.length;this._levels=[];for(var r=0;r<e;r+
+)this._levels.push({id:r,label:t[r].height+"p",level:t[r]});this.trigger(l.default
.PLAYBACK_LEVELS_AVAILABLE,this._levels)},_.prototype.destroy=function()
{this.stopListening(),this.$el.remove()},_.prototype._updateSettings=function()
{this.settings=m.default.extend({},this._defaultSettings),this._playbackType===d.de
fault.VOD||this._dvrInUse?
(this.settings.left=["playpause","position","duration"],this.settings.seekEnabled=!
0):this._dvrEnabled?(this.settings.left=["playpause"],this.settings.seekEnabled=!
0):this.settings.seekEnabled=!1},_.prototype._createCallbacks=function(){var
r=this;window.Clappr||(window.Clappr={}),window.Clappr.flashlsCallbacks||
(window.Clappr.flashlsCallbacks={}),this.flashlsEvents=new
p.default(this.cid),window.Clappr.flashlsCallbacks[this.cid]=function(t,e)
{r.flashlsEvents[t].apply(r.flashlsEvents,e)}},_.prototype.render=function(){return
y.prototype.render.call(this),this._createCallbacks(),this},(0,i.default)(_,
[{key:"isReady",get:function(){return this._isReadyState}},
{key:"dvrEnabled",get:function(){return!!this._dvrEnabled}}]),_);function _()
{(0,n.default)(this,_);for(var t=arguments.length,e=Array(t),r=0;r<t;r+
+)e[r]=arguments[r];var i=(0,a.default)(this,y.call.apply(y,
[this].concat(e)));return
i._src=i.options.src,i._baseUrl=i.options.baseUrl,i._initHlsParameters(i.options),i
.highDefinition=!
1,i._autoPlay=i.options.autoPlay,i._loop=i.options.loop,i._defaultSettings={left:
["playstop"],default:["seekbar"],right:["fullscreen","volume","hd-
indicator"],seekEnabled:!
1},i.settings=m.default.extend({},i._defaultSettings),i._playbackType=d.default.LIV
E,i._hasEnded=!1,i._addListeners(),i}(e.default=A).canPlay=function(t,e){var
r=t.split("?")[0].match(/.*\.(.*)$/)||[];return
f.default.hasFlash&&(1<r.length&&"m3u8"===r[1].toLowerCase()||"application/x-
mpegURL"===e||"application/
vnd.apple.mpegurl"===e)},t.exports=e.default},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
i=a(r(0)),n=a(r(31));function a(t){return t&&t.__esModule?t:{default:t}}var
o=(s.prototype.ready=function()
{n.default.trigger(this.instanceId+":flashready")},s.prototype.videoSize=function(t
,e)
{n.default.trigger(this.instanceId+":videosizechanged",t,e)},s.prototype.complete=f
unction()
{n.default.trigger(this.instanceId+":complete")},s.prototype.error=function(t,e,r)
{n.default.trigger(this.instanceId+":error",t,e,r)},s.prototype.manifest=function(t
,e)
{n.default.trigger(this.instanceId+":manifestloaded",t,e)},s.prototype.audioLevelLo
aded=function(t)
{n.default.trigger(this.instanceId+":audiolevelloaded",t)},s.prototype.levelLoaded=
function(t)
{n.default.trigger(this.instanceId+":levelloaded",t)},s.prototype.levelEndlist=func
tion(t)
{n.default.trigger(this.instanceId+":levelendlist",t)},s.prototype.fragmentLoaded=f
unction(t)
{n.default.trigger(this.instanceId+":fragmentloaded",t)},s.prototype.fragmentPlayin
g=function(t)
{n.default.trigger(this.instanceId+":fragmentplaying",t)},s.prototype.position=func
tion(t)
{n.default.trigger(this.instanceId+":timeupdate",t)},s.prototype.state=function(t)
{n.default.trigger(this.instanceId+":playbackstate",t)},s.prototype.seekState=funct
ion(t)
{n.default.trigger(this.instanceId+":seekstate",t)},s.prototype.switch=function(t)
{n.default.trigger(this.instanceId+":levelchanged",t)},s.prototype.audioTracksListC
hange=function(t)
{n.default.trigger(this.instanceId+":audiotracklistchanged",t)},s.prototype.audioTr
ackChange=function(t)
{n.default.trigger(this.instanceId+":audiotrackchanged",t)},s);function s(t)
{(0,i.default)
(this,s),this.instanceId=t}e.default=o,t.exports=e.default},function(t,e)
{t.exports="<%=baseUrl%>/8fa12a459188502b9f0d39b8a67d9e6c.swf"},function(t,e,r)
{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var
n=g(r(62)),a=g(r(89)),o=g(r(200)),s=g(r(0)),l=g(r(1)),i=g(r(3)),u=g(r(2)),d=g(r(41)
),v=g(r(201)),c=g(r(4)),y=g(r(11)),f=r(5),h=g(r(29)),p=g(r(25));function g(t)
{return t&&t.__esModule?t:{default:t}}var m,A=(m=d.default,(0,u.default)(_,m),
(0,i.default)(_,[{key:"name",get:function(){return"hls"}},
{key:"levels",get:function(){return
this._levels||[]}},{key:"currentLevel",get:function(){return
null===this._currentLevel||void 0===this._currentLevel?-
1:this._currentLevel},set:function(t)
{this._currentLevel=t,this.trigger(c.default.PLAYBACK_LEVEL_SWITCH_START),this.opti
ons.playback.hlsUseNextLevel?
this._hls.nextLevel=this._currentLevel:this._hls.currentLevel=this._currentLevel}},
{key:"isReady",get:function(){return this._isReadyState}},
{key:"_startTime",get:function(){return
this._playbackType===y.default.LIVE&&"EVENT"!==this._playlistType?
this._extrapolatedStartTime:this._playableRegionStartTime}},
{key:"_now",get:function(){return(0,f.now)()}},
{key:"_extrapolatedStartTime",get:function(){if(!
this._localStartTimeCorrelation)return this._playableRegionStartTime;var
t=this._localStartTimeCorrelation,e=this._now-t.local,r=(t.remote+e)/1e3;return
Math.min(r,this._playableRegionStartTime+this._extrapolatedWindowDuration)}},
{key:"_extrapolatedEndTime",get:function(){var
t=this._playableRegionStartTime+this._playableRegionDuration;if(!
this._localEndTimeCorrelation)return t;var
e=this._localEndTimeCorrelation,r=this._now-e.local,i=(e.remote+r)/1e3;return
Math.max(t-this._extrapolatedWindowDuration,Math.min(i,t))}},
{key:"_duration",get:function(){return this._extrapolatedEndTime-this._startTime}},
{key:"_extrapolatedWindowDuration",get:function(){return
null===this._segmentTargetDuration?
0:this._extrapolatedWindowNumSegments*this._segmentTargetDuration}}],
[{key:"HLSJS",get:function(){return v.default}}]),_.prototype._setup=function(){var
r=this;this._ccIsSetup=!1,this._ccTracksUpdated=!1,this._hls=new
v.default((0,f.assign)
({},this.options.playback.hlsjsConfig)),this._hls.on(v.default.Events.MEDIA_ATTACHE
D,function(){return
r._hls.loadSource(r.options.src)}),this._hls.on(v.default.Events.LEVEL_LOADED,funct
ion(t,e){return
r._updatePlaybackType(t,e)}),this._hls.on(v.default.Events.LEVEL_UPDATED,function(t
,e){return
r._onLevelUpdated(t,e)}),this._hls.on(v.default.Events.LEVEL_SWITCHING,function(t,e
){return
r._onLevelSwitch(t,e)}),this._hls.on(v.default.Events.FRAG_LOADED,function(t,e)
{return
r._onFragmentLoaded(t,e)}),this._hls.on(v.default.Events.ERROR,function(t,e){return
r._onHLSJSError(t,e)}),this._hls.on(v.default.Events.SUBTITLE_TRACK_LOADED,function
(t,e){return
r._onSubtitleLoaded(t,e)}),this._hls.on(v.default.Events.SUBTITLE_TRACKS_UPDATED,fu
nction(){return r._ccTracksUpdated=!
0}),this._hls.attachMedia(this.el)},_.prototype.render=function(){return
this._ready(),m.prototype.render.call(this)},_.prototype._ready=function()
{this._isReadyState=!
0,this.trigger(c.default.PLAYBACK_READY,this.name)},_.prototype._recover=function(t
,e,r){if(this._recoveredDecodingError)if(this._recoveredAudioCodecError)
{h.default.error("hlsjs: failed to recover",
{evt:t,data:e}),r.level=p.default.Levels.FATAL;var
i=this.createError(r);this.trigger(c.default.PLAYBACK_ERROR,i),this.stop()}else
this._recoveredAudioCodecError=!
0,this._hls.swapAudioCodec(),this._hls.recoverMediaError();else
this._recoveredDecodingError=!
0,this._hls.recoverMediaError()},_.prototype._setupSrc=function(t)
{},_.prototype._startTimeUpdateTimer=function(){var t=this;this._timeUpdateTimer||
(this._timeUpdateTimer=setInterval(function()
{t._onDurationChange(),t._onTimeUpdate()},100))},_.prototype._stopTimeUpdateTimer=f
unction()
{this._timeUpdateTimer&&(clearInterval(this._timeUpdateTimer),this._timeUpdateTimer
=null)},_.prototype.getProgramDateTime=function(){return
this._programDateTime},_.prototype.getDuration=function(){return
this._duration},_.prototype.getCurrentTime=function(){return
Math.max(0,this.el.currentTime-
this._startTime)},_.prototype.getStartTimeOffset=function(){return
this._startTime},_.prototype.seekPercentage=function(t){var
e=this._duration;0<t&&(e=this._duration*(t/100)),this.seek(e)},_.prototype.seek=fun
ction(t){t<0&&(h.default.warn("Attempt to seek to a negative time. Resetting to
live point. Use seekToLivePoint() to seek to the live
point."),t=this.getDuration()),this.dvrEnabled&&this._updateDvr(t<this.getDuration(
)-
3),t+=this._startTime,m.prototype.seek.call(this,t)},_.prototype.seekToLivePoint=fu
nction(){this.seek(this.getDuration())},_.prototype._updateDvr=function(t)
{this.trigger(c.default.PLAYBACK_DVR,t),this.trigger(c.default.PLAYBACK_STATS_ADD,
{dvr:t})},_.prototype._updateSettings=function()
{this._playbackType===y.default.VOD?
this.settings.left=["playpause","position","duration"]:this.dvrEnabled?
this.settings.left=["playpause"]:this.settings.left=["playstop"],this.settings.seek
Enabled=this.isSeekEnabled(),this.trigger(c.default.PLAYBACK_SETTINGSUPDATE)},_.pro
totype._onHLSJSError=function(t,e){var
r={code:e.type+"_"+e.details,description:this.name+" error: type: "+e.type+",
details: "+e.details,raw:e},i=void 0;if(e.response&&(r.description+=", response:
"+(0,a.default)
(e.response)),e.fatal)if(0<this._recoverAttemptsRemaining)switch(this._recoverAttem
ptsRemaining-=1,e.type){case v.default.ErrorTypes.NETWORK_ERROR:switch(e.details)
{case v.default.ErrorDetails.MANIFEST_LOAD_ERROR:case
v.default.ErrorDetails.MANIFEST_LOAD_TIMEOUT:case
v.default.ErrorDetails.MANIFEST_PARSING_ERROR:case
v.default.ErrorDetails.LEVEL_LOAD_ERROR:case
v.default.ErrorDetails.LEVEL_LOAD_TIMEOUT:h.default.error("hlsjs: unrecoverable
network fatal error.",
{evt:t,data:e}),i=this.createError(r),this.trigger(c.default.PLAYBACK_ERROR,i),this
.stop();break;default:h.default.warn("hlsjs: trying to recover from network
error.",
{evt:t,data:e}),r.level=p.default.Levels.WARN,this.createError(r),this._hls.startLo
ad()}break;case v.default.ErrorTypes.MEDIA_ERROR:h.default.warn("hlsjs: trying to
recover from media error.",
{evt:t,data:e}),r.level=p.default.Levels.WARN,this.createError(r),this._recover(t,e
,r);break;default:h.default.error("hlsjs: could not recover from error.",
{evt:t,data:e}),i=this.createError(r),this.trigger(c.default.PLAYBACK_ERROR,i),this
.stop()}else h.default.error("hlsjs: could not recover from error after maximum
number of attempts.",
{evt:t,data:e}),i=this.createError(r),this.trigger(c.default.PLAYBACK_ERROR,i),this
.stop();else{if(this.options.playback.triggerFatalErrorOnResourceDenied&&this._keyI
sDenied(e))return h.default.error("hlsjs: could not load decrypt key.",
{evt:t,data:e}),i=this.createError(r),this.trigger(c.default.PLAYBACK_ERROR,i),void
this.stop();r.level=p.default.Levels.WARN,this.createError(r),h.default.warn("hlsjs
: non-fatal error occurred",{evt:t,data:e})}},_.prototype._keyIsDenied=function(t)
{return
t.type===v.default.ErrorTypes.NETWORK_ERROR&&t.details===v.default.ErrorDetails.KEY
_LOAD_ERROR&&t.response&&400<=t.response.code},_.prototype._onTimeUpdate=function()
{var
t={current:this.getCurrentTime(),total:this.getDuration(),firstFragDateTime:this.ge
tProgramDateTime()};this._lastTimeUpdate&&t.current===this._lastTimeUpdate.current&
&t.total===this._lastTimeUpdate.total||
(this._lastTimeUpdate=t,this.trigger(c.default.PLAYBACK_TIMEUPDATE,t,this.name))},_
.prototype._onDurationChange=function(){var
t=this.getDuration();this._lastDuration!
==t&&(this._lastDuration=t,m.prototype._onDurationChange.call(this))},_.prototype._
onProgress=function(){if(this.el.buffered.length){for(var
t=[],e=0,r=0;r<this.el.buffered.length;r++)t=[].concat((0,n.default)(t),
[{start:Math.max(0,this.el.buffered.start(r)-
this._playableRegionStartTime),end:Math.max(0,this.el.buffered.end(r)-
this._playableRegionStartTime)}]),this.el.currentTime>=t[r].start&&this.el.currentT
ime<=t[r].end&&(e=r);var
i={start:t[e].start,current:t[e].end,total:this.getDuration()};this.trigger(c.defau
lt.PLAYBACK_PROGRESS,i,t)}},_.prototype.play=function(){this._hls||
this._setup(),m.prototype.play.call(this),this._startTimeUpdateTimer()},_.prototype
.pause=function()
{this._hls&&(m.prototype.pause.call(this),this.dvrEnabled&&this._updateDvr(!
0))},_.prototype.stop=function()
{this._stopTimeUpdateTimer(),this._hls&&(m.prototype.stop.call(this),this._hls.dest
roy(),delete this._hls)},_.prototype.destroy=function()
{this._stopTimeUpdateTimer(),this._hls&&(this._hls.destroy(),delete
this._hls),m.prototype.destroy.call(this)},_.prototype._updatePlaybackType=function
(t,e){this._playbackType=e.details.live?
y.default.LIVE:y.default.VOD,this._onLevelUpdated(t,e),this._ccTracksUpdated&&this.
_playbackType===y.default.LIVE&&this.hasClosedCaptionsTracks&&this._onSubtitleLoade
d()},_.prototype._fillLevels=function()
{this._levels=this._hls.levels.map(function(t,e)
{return{id:e,level:t,label:t.bitrate/
1e3+"Kbps"}}),this.trigger(c.default.PLAYBACK_LEVELS_AVAILABLE,this._levels)},_.pro
totype._onLevelUpdated=function(t,e)
{this._segmentTargetDuration=e.details.targetduration,this._playlistType=e.details.
type||null;var r=!1,i=!
1,n=e.details.fragments,a=this._playableRegionStartTime,o=this._playableRegionDurat
ion;if(0!==n.length)
{if(n[0].rawProgramDateTime&&(this._programDateTime=n[0].rawProgramDateTime),this._
playableRegionStartTime!==n[0].start&&(r=!
0,this._playableRegionStartTime=n[0].start),r)if(this._localStartTimeCorrelation)
{var s=this._localStartTimeCorrelation,l=this._now-s.local,u=(s.remote+l)/
1e3;u<n[0].start?
this._localStartTimeCorrelation={local:this._now,remote:1e3*n[0].start}:u>a+this._e
xtrapolatedWindowDuration&&(this._localStartTimeCorrelation={local:this._now,remote
:1e3*Math.max(n[0].start,a+this._extrapolatedWindowDuration)})}else
this._localStartTimeCorrelation={local:this._now,remote:1e3*(n[0].start+this._extra
polatedWindowDuration/2)};var
d=e.details.totalduration;if(this._playbackType===y.default.LIVE){var
c=e.details.targetduration*((this.options.playback.hlsjsConfig||
{}).liveSyncDurationCount||v.default.DefaultConfig.liveSyncDurationCount);c<=d?(d-
=c,this._durationExcludesAfterLiveSyncPoint=!
0):this._durationExcludesAfterLiveSyncPoint=!1}d!
==this._playableRegionDuration&&(i=!0,this._playableRegionDuration=d);var
f=n[0].start+d,h=a+o;if(f!==h)if(this._localEndTimeCorrelation){var
p=this._localEndTimeCorrelation,g=this._now-p.local,m=(p.remote+g)/1e3;f<m?
this._localEndTimeCorrelation={local:this._now,remote:1e3*f}:m<f-
this._extrapolatedWindowDurat
ion?this._localEndTimeCorrelation={local:this._now,remote:1e3*(f-
this._extrapolatedWindowDuration)}:h<m&&(this._localEndTimeCorrelation={local:this.
_now,remote:1e3*h})}else
this._localEndTimeCorrelation={local:this._now,remote:1e3*f};i&&this._onDurationCha
nge(),r&&this._onProgress()}},_.prototype._onFragmentLoaded=function(t,e)
{this.trigger(c.default.PLAYBACK_FRAGMENT_LOADED,e)},_.prototype._onSubtitleLoaded=
function(){if(!this._ccIsSetup)
{this.trigger(c.default.PLAYBACK_SUBTITLE_AVAILABLE);var
t=this._playbackType===y.default.LIVE?-
1:this.closedCaptionsTrackId;this.closedCaptionsTrackId=t,this._ccIsSetup=!
0}},_.prototype._onLevelSwitch=function(t,e){this.levels.length||
this._fillLevels(),this.trigger(c.default.PLAYBACK_LEVEL_SWITCH_END),this.trigger(c
.default.PLAYBACK_LEVEL_SWITCH,e);var
r=this._hls.levels[e.level];r&&(this.highDefinition=720<=r.height||2e3<=r.bitrate/
1e3,this.trigger(c.default.PLAYBACK_HIGHDEFINITIONUPDATE,this.highDefinition),this.
trigger(c.default.PLAYBACK_BITRATE,
{height:r.height,width:r.width,bandwidth:r.bitrate,bitrate:r.bitrate,level:e.level}
))},_.prototype.getPlaybackType=function(){return
this._playbackType},_.prototype.isSeekEnabled=function(){return
this._playbackType===y.default.VOD||this.dvrEnabled},(0,i.default)(_,
[{key:"dvrEnabled",get:function(){return
this._durationExcludesAfterLiveSyncPoint&&this._duration>=this._minDvrSize&&this.ge
tPlaybackType()===y.default.LIVE}}]),_);function _(){(0,s.default)(this,_);for(var
t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];var i=(0,l.default)
(this,m.call.apply(m,[this].concat(e)));return i.options.playback=(0,o.default)
({},i.options,i.options.playback),i._minDvrSize=void
0===i.options.hlsMinimumDvrSize?
60:i.options.hlsMinimumDvrSize,i._extrapolatedWindowNumSegments=i.options.playback&
&void 0!==i.options.playback.extrapolatedWindowNumSegments?
i.options.playback.extrapolatedWindowNumSegments:2,i._playbackType=y.default.VOD,i.
_lastTimeUpdate={current:0,total:0},i._lastDuration=null,i._playableRegionStartTime
=0,i._localStartTimeCorrelation=null,i._localEndTimeCorrelation=null,i._playableReg
ionDuration=0,i._programDateTime=0,i._durationExcludesAfterLiveSyncPoint=!
1,i._segmentTargetDuration=null,i._playlistType=null,i._recoverAttemptsRemaining=i.
options.hlsRecoverAttempts||16,i}(e.default=A).canPlay=function(t,e){var
r=t.split("?")[0].match(/.*\.(.*)$/)||
[],i=1<r.length&&"m3u8"===r[1].toLowerCase()||(0,f.listContainsIgnoreCase)(e,
["application/vnd.apple.mpegurl","application/x-mpegURL"]);return!(!
v.default.isSupported()||!i)},t.exports=e.default},function(t,e,r){var
i=r(9),n=i.JSON||(i.JSON={stringify:JSON.stringify});t.exports=function(t){return
n.stringify.apply(n,arguments)}},function(t,e,r){"use strict";e.__esModule=!0;var
i,n=r(12),a=(i=n)&&i.__esModule?i:{default:i};e.default=a.default||function(t)
{for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in
r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t}},function(t,e,r)
{var i;"undefined"!=typeof
window&&(i=function(){return(i={},n.m=r={"./node_modules/eventemitter3/
index.js":function(t,e,r){"use strict";var
i=Object.prototype.hasOwnProperty,h="~";function n(){}function s(t,e,r)
{this.fn=t,this.context=e,this.once=r||!1}function a(t,e,r,i,n){if("function"!
=typeof r)throw new TypeError("The listener must be a function");var a=new s(r,i||
t,n),o=h?h+e:e;return t._events[o]?t._events[o].fn?
t._events[o]=[t._events[o],a]:t._events[o].push(a):(t._events[o]=a,t._eventsCount+
+),t}function u(t,e){0==--t._eventsCount?t._events=new n:delete
t._events[e]}function o(){this._events=new
n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new
n).__proto__||(h=!1)),o.prototype.eventNames=function(){var
t,e,r=[];if(0===this._eventsCount)return r;for(e in
t=this._events)i.call(t,e)&&r.push(h?e.slice(1):e);return
Object.getOwnPropertySymbols?
r.concat(Object.getOwnPropertySymbols(t)):r},o.prototype.listeners=function(t){var
e=h?h+t:t,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var
i=0,n=r.length,a=new Array(n);i<n;i++)a[i]=r[i].fn;return
a},o.prototype.listenerCount=function(t){var e=h?h+t:t,r=this._events[e];return r?
r.fn?1:r.length:0},o.prototype.emit=function(t,e,r,i,n,a){var o=h?h+t:t;if(!
this._events[o])return!1;var s,l,u=this._events[o],d=arguments.length;if(u.fn)
{switch(u.once&&this.removeListener(t,u.fn,void 0,!0),d){case 1:return
u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,e),!0;case 3:return
u.fn.call(u.context,e,r),!0;case 4:return u.fn.call(u.context,e,r,i),!0;case
5:return u.fn.call(u.context,e,r,i,n),!0;case 6:return
u.fn.call(u.context,e,r,i,n,a),!0}for(l=1,s=new Array(d-1);l<d;l++)s[l-
1]=arguments[l];u.fn.apply(u.context,s)}else{var c,f=u.length;for(l=0;l<f;l+
+)switch(u[l].once&&this.removeListener(t,u[l].fn,void 0,!0),d){case
1:u[l].fn.call(u[l].context);break;case 2:u[l].fn.call(u[l].context,e);break;case
3:u[l].fn.call(u[l].context,e,r);break;case
4:u[l].fn.call(u[l].context,e,r,i);break;default:if(!s)for(c=1,s=new Array(d-
1);c<d;c++)s[c-1]=arguments[c];u[l].fn.apply(u[l].context,s)}}return!
0},o.prototype.on=function(t,e,r){return a(this,t,e,r,!
1)},o.prototype.once=function(t,e,r){return a(this,t,e,r,!
0)},o.prototype.removeListener=function(t,e,r,i){var n=h?h+t:t;if(!
this._events[n])return this;if(!e)return u(this,n),this;var
a=this._events[n];if(a.fn)a.fn!==e||i&&!a.once||r&&a.context!==r||
u(this,n);else{for(var o=0,s=[],l=a.length;o<l;o++)(a[o].fn!==e||i&&!a[o].once||
r&&a[o].context!==r)&&s.push(a[o]);s.length?this._events[n]=1===s.length?
s[0]:s:u(this,n)}return this},o.prototype.removeAllListeners=function(t){var
e;return t?(e=h?h+t:t,this._events[e]&&u(this,e)):(this._events=new
n,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype
.addListener=o.prototype.on,o.prefixed=h,o.EventEmitter=o,t.exports=o},"./
node_modules/url-toolkit/src/url-toolkit.js":function(t,e,r){var i,d,n,a,c;i=/^((?:
[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/\?#]*\/)*.*?)??(;.*?)?(\?.*?)?(#.*?)?
$/,d=/^([^\/?#]*)(.*)$/,n=/(?:\/|^)\.(?=\/)/g,a=/(?:\/|^)\.\.\/(?!\.\.\/).*?(?
=\/)/g,c={buildAbsoluteURL:function(t,e,r){if(r=r||{},t=t.trim(),!(e=e.trim()))
{if(!r.alwaysNormalize)return t;var i=c.parseURL(t);if(!i)throw new Error("Error
trying to parse base URL.");return
i.path=c.normalizePath(i.path),c.buildURLFromParts(i)}var n=c.parseURL(e);if(!
n)throw new Error("Error trying to parse relative URL.");if(n.scheme)return
r.alwaysNormalize?(n.path=c.normalizePath(n.path),c.buildURLFromParts(n)):e;var
a=c.parseURL(t);if(!a)throw new Error("Error trying to parse base URL.");if(!
a.netLoc&&a.path&&"/"!==a.path[0]){var
o=d.exec(a.path);a.netLoc=o[1],a.path=o[2]}a.netLoc&&!a.path&&(a.path="/");var
s={scheme:a.scheme,netLoc:n.netLoc,path:null,params:n.params,query:n.query,fragment
:n.fragment};if(!n.netLoc&&(s.netLoc=a.netLoc,"/"!==n.path[0]))if(n.path){var
l=a.path,u=l.substring(0,l.lastIndexOf("/")
+1)+n.path;s.path=c.normalizePath(u)}else s.path=a.path,n.params||
(s.params=a.params,n.query||(s.query=a.query));return
null===s.path&&(s.path=r.alwaysNormalize?
c.normalizePath(n.path):n.path),c.buildURLFromParts(s)},parseURL:function(t){var
e=i.exec(t);return e?
{scheme:e[1]||"",netLoc:e[2]||"",path:e[3]||"",params:e[4]||"",query:e[5]||"",fragm
ent:e[6]||""}:null},normalizePath:function(t)
{for(t=t.split("").reverse().join("").replace(n,"");t.length!
==(t=t.replace(a,"")).length;);return
t.split("").reverse().join("")},buildURLFromParts:function(t){return
t.scheme+t.netLoc+t.path+t.params+t.query+t.fragment}},t.exports=c},"./
node_modules/webworkify-webpack/index.js":function(t,e,h){function l(r){var
i={};function n(t){if(i[t])return i[t].exports;var e=i[t]={i:t,l:!1,exports:
{}};return r[t].call(e.exports,e,e.exports,n),e.l=!
0,e.exports}n.m=r,n.c=i,n.i=function(t){return t},n.d=function(t,e,r){n.o(t,e)||
Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.r=function(t)
{Object.defineProperty(t,"__esModule",{value:!0})},n.n=function(t){var
e=t&&t.__esModule?function(){return t.default}:function(){return t};return
n.d(e,"a",e),e},n.o=function(t,e){return
Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n.oe=function(t){throw
console.error(t),t};var t=n(n.s=ENTRY_MODULE);return t.default||t}var
p="[\\.|\\-|\\+|\\w|/|@]+",g="\\(\\s*(/\\*.*?\\*/)?\\s*.*?("+p+").*?\\)";function
m(t){return(t+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function f(t,e,r){var
i={};i[r]=[];var n=e.toString(),a=n.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\
w+)\)/);if(!a)return i;for(var o,s=a[1],l=new RegExp("(\\\\n|\\W)"+m(s)
+g,"g");o=l.exec(n);)"dll-reference"!==o[3]&&i[r].push(o[3]);for(l=new RegExp("\\
("+m(s)+'\\("(dll-reference\\s('+p+'))"\\)\\)'+g,"g");o=l.exec(n);)t[o[2]]||
(i[r].push(o[1]),t[o[2]]=h(o[1]).m),i[o[2]]=i[o[2]]||[],i[o[2]].push(o[4]);for(var
u,d=Object.keys(i),c=0;c<d.length;c++)for(var f=0;f<i[d[c]].length;f++)u=i[d[c]]
[f],isNaN(1*u)||(i[d[c]][f]=1*i[d[c]][f]);return i}function v(r){return
Object.keys(r).reduce(function(t,e){return t||0<r[e].length},!
1)}t.exports=function(t,e){e=e||{};var r={main:h.m},i=e.all?
{main:Object.keys(r.main)}:function(t,e){for(var r={main:[e]},i={main:[]},n={main:
{}};v(r);)for(var a=Object.keys(r),o=0;o<a.length;o++){var
s=a[o],l=r[s].pop();if(n[s]=n[s]||{},!n[s][l]&&t[s][l]){n[s][l]=!0,i[s]=i[s]||
[],i[s].push(l);for(var u=f(t,t[s][l],s),d=Object.keys(u),c=0;c<d.length;c+
+)r[d[c]]=r[d[c]]||[],r[d[c]]=r[d[c]].concat(u[d[c]])}}return i}
(r,t),n="";Object.keys(i).filter(function(t){return"main"!==t}).forEach(function(e)
{for(var t=0;i[e][t];)t++;i[e].push(t),r[e][t]="(function(module, exports,
__webpack_require__) { module.exports = __webpack_require__; })",n=n+"var "+e+" =
("+l.toString().replace("ENTRY_MODULE",JSON.stringify(t))+")
({"+i[e].map(function(t){return JSON.stringify(t)+": "+r[e]
[t].toString()}).join(",")+"});\n"}),n=n+"new
(("+l.toString().replace("ENTRY_MODULE",JSON.stringify(t))+")
({"+i.main.map(function(t){return
JSON.stringify(t)+": "+r.main[t].toString()}).join(",")+"}))(self);";var a=new
window.Blob([n],{type:"text/javascript"});if(e.bare)return a;var o=(window.URL||
window.webkitURL||window.mozURL||window.msURL).createObjectURL(a),s=new
window.Worker(o);return
s.objectURL=o,s}},"./src/crypt/decrypter.js":function(t,e,r){"use
strict";r.r(e);var s=function(){function t(t,e){this.subtle=t,this.aesIV=e}return
t.prototype.decrypt=function(t,e){return this.subtle.decrypt({name:"AES-
CBC",iv:this.aesIV},e,t)},t}(),l=function(){function t(t,e)
{this.subtle=t,this.key=e}return t.prototype.expandKey=function(){return
this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])},t}
();var u=function(){function t()
{this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new
Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new
Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new
Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new
Uint32Array(256),this.key=new Uint32Array(0),this.initTable()}var
e=t.prototype;return e.uint8ArrayToUint32Array_=function(t){for(var e=new
DataView(t),r=new Uint32Array(4),i=0;i<4;i++)r[i]=e.getUint32(4*i);return
r},e.initTable=function(){var
t=this.sBox,e=this.invSBox,r=this.subMix,i=r[0],n=r[1],a=r[2],o=r[3],s=this.invSubM
ix,l=s[0],u=s[1],d=s[2],c=s[3],f=new Uint32Array(256),h=0,p=0,g=0;for(g=0;g<256;g+
+)f[g]=g<128?g<<1:g<<1^283;for(g=0;g<256;g++){var
m=p^p<<1^p<<2^p<<3^p<<4;m=m>>>8^255&m^99;var
v=f[e[t[h]=m]=h],y=f[v],A=f[y],_=257*f[m]^16843008*m;i[h]=_<<24|_>>>8,n[h]=_<<16|
_>>>16,a[h]=_<<8|_>>>24,o[h]=_,_=16843009*A^65537*y^257*v^16843008*h,l[m]=_<<24|
_>>>8,u[m]=_<<16|_>>>16,d[m]=_<<8|_>>>24,c[m]=_,h?
(h=v^f[f[f[A^v]]],p^=f[f[p]]):h=p=1}},e.expandKey=function(t){for(var
e=this.uint8ArrayToUint32Array_(t),r=!0,i=0;i<e.length&&r;)r=e[i]===this.key[i],i+
+;if(!r){this.key=e;var n=this.keySize=e.length;if(4!==n&&6!==n&&8!==n)throw new
Error("Invalid aes key size="+n);var
a,o,s,l,u=this.ksRows=4*(n+6+1),d=this.keySchedule=new
Uint32Array(u),c=this.invKeySchedule=new
Uint32Array(u),f=this.sBox,h=this.rcon,p=this.invSubMix,g=p[0],m=p[1],v=p[2],y=p[3]
;for(a=0;a<u;a++)a<n?s=d[a]=e[a]:(l=s,a%n==0?(l=f[(l=l<<8|l>>>24)>>>24]<<24|
f[l>>>16&255]<<16|f[l>>>8&255]<<8|f[255&l],l^=h[a/n|0]<<24):6<n&&a
%n==4&&(l=f[l>>>24]<<24|f[l>>>16&255]<<16|f[l>>>8&255]<<8|f[255&l]),d[a]=s=(d[a-
n]^l)>>>0);for(o=0;o<u;o++)a=u-o,l=3&o?d[a]:d[a-4],c[o]=o<4||a<=4?
l:g[f[l>>>24]]^m[f[l>>>16&255]]^v[f[l>>>8&255]]^y[f[255&l]],c[o]=c[o]>>>0}},e.netwo
rkToHostOrderSwap=function(t){return t<<24|(65280&t)<<8|(16711680&t)>>8|
t>>>24},e.decrypt=function(t,e,r,i){for(var
n,a,o,s,l,u,d,c,f,h,p,g,m,v,y=this.keySize+6,A=this.invKeySchedule,_=this.invSBox,b
=this.invSubMix,E=b[0],T=b[1],S=b[2],k=b[3],L=this.uint8ArrayToUint32Array_(r),R=L[
0],C=L[1],w=L[2],O=L[3],P=new Int32Array(t),D=new
Int32Array(P.length),I=this.networkToHostOrderSwap;e<P.length;)
{for(f=I(P[e]),h=I(P[e+1]),p=I(P[e+2]),g=I(P[e+3]),l=f^A[0],u=g^A[1],d=p^A[2],c=h^A
[3],m=4,v=1;v<y;v+
+)n=E[l>>>24]^T[u>>16&255]^S[d>>8&255]^k[255&c]^A[m],a=E[u>>>24]^T[d>>16&255]^S[c>>
8&255]^k[255&l]^A[m+1],o=E[d>>>24]^T[c>>16&255]^S[l>>8&255]^k[255&u]^A[m+2],s=E[c>>
>24]^T[l>>16&255]^S[u>>8&255]^k[255&d]^A[m+3],l=n,u=a,d=o,c=s,m+=4;n=_[l>>>24]<<24^
_[u>>16&255]<<16^_[d>>8&255]<<8^_[255&c]^A[m],a=_[u>>>24]<<24^_[d>>16&255]<<16^_[c>
>8&255]<<8^_[255&l]^A[m+1],o=_[d>>>24]<<24^_[c>>16&255]<<16^_[l>>8&255]<<8^_[255&u]
^A[m+2],s=_[c>>>24]<<24^_[l>>16&255]<<16^_[u>>8&255]<<8^_[255&d]^A[m+3],m+=3,D[e]=I
(n^R),D[e+1]=I(s^C),D[e+2]=I(o^w),D[e+3]=I(a^O),R=f,C=h,w=p,O=g,e+=4}return i?
function(t){var e=t.byteLength,r=e&&new DataView(t).getUint8(e-1);return r?
t.slice(0,e-r):t}(D.buffer):D.buffer},e.destroy=function(){this.key=void
0,this.keySize=void 0,this.ksRows=void 0,this.sBox=void 0,this.invSBox=void
0,this.subMix=void 0,this.invSubMix=void 0,this.keySchedule=void
0,this.invKeySchedule=void 0,this.rcon=void
0},t}(),a=r("./src/errors.ts"),d=r("./src/utils/logger.js"),o=r("./src/
events.js"),i=r("./src/utils/get-self-scope.js"),c=Object(i.getSelfScope)
(),n=function(){function t(t,e,r){var i=(void 0===r?{}:r).removePKCS7Padding,n=void
0===i||i;if(this.logEnabled=!
0,this.observer=t,this.config=e,this.removePKCS7Padding=n)try{var
a=c.crypto;a&&(this.subtle=a.subtle||a.webkitSubtle)}catch(t)
{}this.disableWebCrypto=!this.subtle}var e=t.prototype;return e.isSync=function()
{return
this.disableWebCrypto&&this.config.enableSoftwareAES},e.decrypt=function(e,r,i,n)
{var a=this;if(this.disableWebCrypto&&this.config.enableSoftwareAES)
{this.logEnabled&&(d.logger.log("JS AES decrypt"),this.logEnabled=!1);var
t=this.decryptor;t||(this.decryptor=t=new
u),t.expandKey(r),n(t.decrypt(e,0,i,this.removePKCS7Padding))}else{this.logEnabled&
&(d.logger.log("WebCrypto AES decrypt"),this.logEnabled=!1);var
o=this.subtle;this.key!==r&&(this.key=r,this.fastAesKey=new
l(o,r)),this.fastAesKey.expandKey().then(function(t){new
s(o,i).decrypt(e,t).catch(function(t)
{a.onWebCryptoError(t,e,r,i,n)}).then(function(t){n(t)})}).catch(function(t)
{a.onWebCryptoError(t,e,r,i,n)})}},e.onWebCryptoError=function(t,e,r,i,n)
{this.config.enableSoftwareAES?(d.logger.log("WebCrypto Error, disable WebCrypto
API"),this.disableWebCrypto=!0,this.logEnabled=!0,this.decrypt(e,r,i,n)):
(d.logger.error("decrypting error :
"+t.message),this.observer.trigger(o.default.ERROR,
{type:a.ErrorTypes.MEDIA_ERROR,details:a.ErrorDetails.FRAG_DECRYPT_ERROR,fatal:!
0,reason:t.message}))},e.destroy=function(){var
t=this.decryptor;t&&(t.destroy(),this.decryptor=void
0)},t}();e.default=n},"./src/demux/demuxer-inline.js":function(t,e,r){"use
strict";r.r(e);var
J=r("./src/events.js"),tt=r("./src/errors.ts"),g=r("./src/crypt/decrypter.js"),p=r(
"./src/polyfills/number-isFinite.js"),et=r("./src/utils/logger.js"),i=r("./src/
utils/get-self-scope.js");function n(t,e){return
255===t[e]&&240==(246&t[e+1])}function d(t,e){return 1&t[e+1]?7:9}function c(t,e)
{return(3&t[e+3])<<11|t[e+4]<<3|(224&t[e+5])>>>5}function m(t,e){return!!
(e+1<t.length&&n(t,e))}function a(t,e){if(m(t,e)){var
r=d(t,e);e+5<t.length&&(r=c(t,e));var i=e+r;if(i===t.length||
i+1<t.length&&n(t,i))return!0}return!1}function v(t,e,r,i,n){if(!t.samplerate){var
a=function(t,e,r,i){var
n,a,o,s,l,u=navigator.userAgent.toLowerCase(),d=i,c=[96e3,88200,64e3,48e3,44100,32e
3,24e3,22050,16e3,12e3,11025,8e3,7350];if(n=1+
((192&e[r+2])>>>6),a=(60&e[r+2])>>>2,!(c.length-1<a))return s=(1&e[r+2])<<2,s|
=(192&e[r+3])>>>6,et.logger.log("manifest codec:"+i+",ADTS
data:type:"+n+",sampleingIndex:"+a+"["+c[a]+"Hz],channelConfig:"+s),o=/firefox/
i.test(u)?6<=a?(n=5,l=new Array(4),a-3):(n=2,l=new Array(2),a):-1!
==u.indexOf("android")?(n=2,l=new Array(2),a):(n=5,l=new Array(4),i&&(-1!
==i.indexOf("mp4a.40.29")||-1!==i.indexOf("mp4a.40.5"))||!i&&6<=a?a-3:((i&&-1!
==i.indexOf("mp4a.40.2")&&(6<=a&&1==s||/vivaldi/i.test(u))||!i&&1==s)&&(n=2,l=new
Array(2)),a)),l[0]=n<<3,l[0]|=(14&a)>>1,l[1]|=(1&a)<<7,l[1]|=s<<3,5===n&&(l[1]|
=(14&o)>>1,l[2]=(1&o)<<7,l[2]|=8,l[3]=0),
{config:l,samplerate:c[a],channelCount:s,codec:"mp4a.40."+n,manifestCodec:d};t.trig
ger(J.default.ERROR,
{type:tt.ErrorTypes.MEDIA_ERROR,details:tt.ErrorDetails.FRAG_PARSING_ERROR,fatal:!
0,reason:"invalid ADTS sampling index:"+a})}
(e,r,i,n);t.config=a.config,t.samplerate=a.samplerate,t.channelCount=a.channelCount
,t.codec=a.codec,t.manifestCodec=a.manifestCodec,et.logger.log("parsed
codec:"+t.codec+",rate:"+a.samplerate+",nb channel:"+a.channelCount)}}function y(t)
{return 9216e4/t}function A(t,e,r,i,n){var a=function(t,e,r,i,n){var
a,o,s=t.length;if(a=d(t,e),o=c(t,e),0<(o-
=a)&&e+a+o<=s)return{headerLength:a,frameLength:o,stamp:r+i*n}}
(e,r,i,n,y(t.samplerate));if(a){var
o=a.stamp,s=a.headerLength,l=a.frameLength,u={unit:e.subarray(r+s,r+s+l),pts:o,dts:
o};return t.samples.push(u),{sample:u,length:l+s}}}var
R=r("./src/demux/id3.js"),T=function(){function t(t,e,r)
{this.observer=t,this.config=r,this.remuxer=e}var e=t.prototype;return
e.resetInitSegment=function(t,e,r,i){this._audioTrack={container:"audio/
adts",type:"audio",id:0,sequenceNumber:0,isAAC:!0,samples:
[],len:0,manifestCodec:e,duration:i,inputTimeScale:9e4}},e.resetTimeStamp=function(
){},t.probe=function(t){if(!t)return!1;for(var e=(R.default.getID3Data(t,0)||
[]).length,r=t.length;e<r;e++)if(a(t,e))return et.logger.log("ADTS sync word
found !"),!0;return!1},e.append=function(t,e,r,i){for(var
n=this._audioTrack,a=R.default.getID3Data(t,0)||
[],o=R.default.getTimeStamp(a),s=Object(p.isFiniteNumber)(o)?
90*o:9e4*e,l=0,u=s,d=t.length,c=a.length,f=[{pts:u,dts:u,data:a}];c<d-
1;)if(m(t,c)&&c+5<d){v(n,this.observer,t,c,n.manifestCodec);var h=A(n,t,c,s,l);if(!
h){et.logger.log("Unable to parse AAC frame");break}c+=h.length,u=h.sample.pts,l+
+}else R.default.isHeader(t,c)?
(a=R.default.getID3Data(t,c),f.push({pts:u,dts:u,data:a}),c+=a.length):c+
+;this.remuxer.remux(n,{samples:[]},{samples:f,inputTimeScale:9e4},{samples:
[]},e,r,i)},e.destroy=function(){},t}(),S=r("./src/demux/
mp4demuxer.js"),_={BitratesMap:
[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160
,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,8
0,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],
SamplingRateMap:
[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],SamplesCoefficients:
[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],BytesInSlot:
[0,1,1,4],appendFrame:function(t,e,r,i,n){if(!(r+24>e.length)){var
a=this.parseHeader(e,r);if(a&&r+a.frameLength<=e.length){var
o=i+n*(9e4*a.samplesPerFrame/a.sampleRate),s={unit:e.subarray(r,r+a.frameLength),pt
s:o,dts:o};return
t.config=[],t.channelCount=a.channelCount,t.samplerate=a.sampleRate,t.samples.push(
s),{sample:s,length:a.frameLength}}}},parseHeader:function(t,e){var
r=t[e+1]>>3&3,i=t[e+1]>>1&3,n=t[e+2]>>4&15,a=t[e+2]>>2&3,o=t[e+2]>>1&1;if(1!=r&&0!
=n&&15!=n&&3!=a){var s=3==r?3-i:3==i?3:4,l=1e3*_.BitratesMap[14*s+n-1],u=3==r?
0:2==r?1:2,d=_.SamplingRateMap[3*u+a],c=t[e+3]>>6==3?1:2,f=_.SamplesCoeffic
ients[r]
[i],h=_.BytesInSlot[i],p=8*f*h;return{sampleRate:d,channelCount:c,frameLength:parse
Int(f*l/d+o,10)*h,samplesPerFrame:p}}},isHeaderPattern:function(t,e){return
255===t[e]&&224==(224&t[e+1])&&0!=(6&t[e+1])},isHeader:function(t,e){return!!
(e+1<t.length&&this.isHeaderPattern(t,e))},probe:function(t,e)
{if(e+1<t.length&&this.isHeaderPattern(t,e)){var
r=this.parseHeader(t,e),i=4;r&&r.frameLength&&(i=r.frameLength);var
n=e+i;if(n===t.length||n+1<t.length&&this.isHeaderPattern(t,n))return!0}return!
1}},b=_,C=function(){function t(t)
{this.data=t,this.bytesAvailable=t.byteLength,this.word=0,this.bitsAvailable=0}var
e=t.prototype;return e.loadWord=function(){var
t=this.data,e=this.bytesAvailable,r=t.byteLength-e,i=new
Uint8Array(4),n=Math.min(4,e);if(0===n)throw new Error("no bytes
available");i.set(t.subarray(r,r+n)),this.word=new
DataView(i.buffer).getUint32(0),this.bitsAvailable=8*n,this.bytesAvailable-
=n},e.skipBits=function(t){var e;this.bitsAvailable>t||(t-=this.bitsAvailable,t-
=(e=t>>3)>>3,this.bytesAvailable-
=e,this.loadWord()),this.word<<=t,this.bitsAvailable-=t},e.readBits=function(t){var
e=Math.min(this.bitsAvailable,t),r=this.word>>>32-e;return
32<t&&et.logger.error("Cannot read more than 32 bits at a
time"),this.bitsAvailable-=e,0<this.bitsAvailable?
this.word<<=e:0<this.bytesAvailable&&this.loadWord(),0<(e=t-e)&&this.bitsAvailable?
r<<e|this.readBits(e):r},e.skipLZ=function(){var t;for(t=0;t<this.bitsAvailable;+
+t)if(0!=(this.word&2147483648>>>t))return this.word<<=t,this.bitsAvailable-
=t,t;return this.loadWord(),t+this.skipLZ()},e.skipUEG=function()
{this.skipBits(1+this.skipLZ())},e.skipEG=function()
{this.skipBits(1+this.skipLZ())},e.readUEG=function(){var t=this.skipLZ();return
this.readBits(t+1)-1},e.readEG=function(){var t=this.readUEG();return 1&t?1+t>>>1:-
1*(t>>>1)},e.readBoolean=function(){return
1===this.readBits(1)},e.readUByte=function(){return
this.readBits(8)},e.readUShort=function(){return
this.readBits(16)},e.readUInt=function(){return
this.readBits(32)},e.skipScalingList=function(t){var e,r=8,i=8;for(e=0;e<t;e++)0!
==i&&(i=(r+this.readEG()+256)%256),r=0===i?r:i},e.readSPS=function(){var
t,e,r,i,n,a,o,s=0,l=0,u=0,d=0,c=this.readUByte.bind(this),f=this.readBits.bind(this
),h=this.readUEG.bind(this),p=this.readBoolean.bind(this),g=this.skipBits.bind(this
),m=this.skipEG.bind(this),v=this.skipUEG.bind(this),y=this.skipScalingList.bind(th
is);if(c(),t=c(),f(5),g(3),c(),v(),100===t||110===t||122===t||244===t||44===t||
83===t||86===t||118===t||128===t){var
A=h();if(3===A&&g(1),v(),v(),g(1),p())for(a=3!==A?8:12,o=0;o<a;o++)p()&&y(o<6?
16:64)}v();var _=h();if(0===_)h();else if(1===_)for(g(1),m(),m(),e=h(),o=0;o<e;o+
+)m();v(),g(1),r=h(),i=h(),0===(n=f(1))&&g(1),g(1),p()&&(s=h(),l=h(),u=h(),d=h());v
ar b=[1,1];if(p()&&p())switch(c()){case 1:b=[1,1];break;case 2:b=[12,11];break;case
3:b=[10,11];break;case 4:b=[16,11];break;case 5:b=[40,33];break;case
6:b=[24,11];break;case 7:b=[20,11];break;case 8:b=[32,11];break;case
9:b=[80,33];break;case 10:b=[18,11];break;case 11:b=[15,11];break;case
12:b=[64,33];break;case 13:b=[160,99];break;case 14:b=[4,3];break;case
15:b=[3,2];break;case 16:b=[2,1];break;case 255:b=[c()<<8|c(),c()<<8|
c()]}return{width:Math.ceil(16*(r+1)-2*s-2*l),height:(2-n)*(i+1)*16-(n?
2:4)*(u+d),pixelRatio:b}},e.readSliceType=function(){return
this.readUByte(),this.readUEG(),this.readUEG()},t}(),o=function(){function
t(t,e,r,i){this.decryptdata=r,this.discardEPB=i,this.decrypter=new g.default(t,e,
{removePKCS7Padding:!1})}var e=t.prototype;return e.decryptBuffer=function(t,e)
{this.decrypter.decrypt(t,this.decryptdata.key.buffer,this.decryptdata.iv.buffer,e)
},e.decryptAacSample=function(e,r,i,n){var a=e[r].unit,t=a.subarray(16,a.length-
a.length
%16),o=t.buffer.slice(t.byteOffset,t.byteOffset+t.length),s=this;this.decryptBuffer
(o,function(t){t=new Uint8Array(t),a.set(t,16),n||
s.decryptAacSamples(e,r+1,i)})},e.decryptAacSamples=function(t,e,r){for(;;e++)
{if(e>=t.length)return void r();if(!(t[e].unit.length<32)){var
i=this.decrypter.isSync();if(this.decryptAacSample(t,e,r,i),!
i)return}}},e.getAvcEncryptedData=function(t){for(var e=16*Math.floor((t.length-
48)/160)+16,r=new Int8Array(e),i=0,n=32;n<=t.length-
16;n+=160,i+=16)r.set(t.subarray(n,n+16),i);return
r},e.getAvcDecryptedUnit=function(t,e){e=new Uint8Array(e);for(var
r=0,i=32;i<=t.length-16;i+=160,r+=16)t.set(e.subarray(r,r+16),i);return
t},e.decryptAvcSample=function(e,r,i,n,a,o){var
s=this.discardEPB(a.data),t=this.getAvcEncryptedData(s),l=this;this.decryptBuffer(t
.buffer,function(t){a.data=l.getAvcDecryptedUnit(s,t),o||
l.decryptAvcSamples(e,r,i+1,n)})},e.decryptAvcSamples=function(t,e,r,i){for(;;e+
+,r=0){if(e>=t.length)return void i();for(var n=t[e].units;!(r>=n.length);r++){var
a=n[r];if(!(a.length<=48||1!==a.type&&5!==a.type)){var
o=this.decrypter.isSync();if(this.decryptAvcSample(t,e,r,i,a,o),!o)return}}}},t}
(),s={video:1,audio:2,id3:3,text:4},k=function(){function P(t,e,r,i)
{this.observer=t,this.config=r,this.typeSupported=i,this.remuxer=e,this.sampleAes=n
ull}var t=P.prototype;return t.setDecryptData=function(t){null!=t&&null!
=t.key&&"SAMPLE-AES"===t.method?this.sampleAes=new
o(this.observer,this.config,t,this.discardEPB):this.sampleAes=null},P.probe=functio
n(t){var e=P._syncOffset(t);return!(e<0)&&(e&&et.logger.warn("MPEG2-TS detected but
first sync word found @ offset "+e+", junk ahead ?"),!0)},P._syncOffset=function(t)
{for(var e=Math.min(1e3,t.length-564),r=0;r<e;)
{if(71===t[r]&&71===t[r+188]&&71===t[r+376])return r;r++}return-
1},P.createTrack=function(t,e){return{container:"video"===t||"audio"===t?"video/
mp2t":void 0,type:t,id:s[t],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:
[],dropped:"video"===t?0:void 0,isAAC:"audio"===t||void 0,duration:"audio"===t?
e:void 0}},t.resetInitSegment=function(t,e,r,i){this.pmtParsed=!1,this._pmtId=-
1,this._avcTrack=P.createTrack("video",i),this._audioTrack=P.createTrack("audio",i)
,this._id3Track=P.createTrack("id3",i),this._txtTrack=P.createTrack("text",i),this.
aacOverFlow=null,this.aacLastPTS=null,this.avcSample=null,this.audioCodec=e,this.vi
deoCodec=r,this._duration=i},t.resetTimeStamp=function()
{},t.append=function(t,e,r,i){var n,a,o,s,l,u=t.length,d=!1;this.contiguous=r;var
c=this.pmtParsed,f=this._avcTrack,h=this._audioTrack,p=this._id3Track,g=f.pid,m=h.p
id,v=p.pid,y=this._pmtId,A=f.pesData,_=h.pesData,b=p.pesData,E=this._parsePAT,T=thi
s._parsePMT,S=this._parsePES,k=this._parseAVCPES.bind(this),L=this._parseAACPES.bin
d(this),R=this._parseMPEGPES.bind(this),C=this._parseID3PES.bind(this),w=P._syncOff
set(t);for(u-=(u+w)%188,n=w;n<u;n+=188)if(71===t[n]){if(a=!!
(64&t[n+1]),o=((31&t[n+1])<<8)+t[n+2],1<(48&t[n+3])>>4)
{if((s=n+5+t[n+4])===n+188)continue}else s=n+4;switch(o){case
g:a&&(A&&(l=S(A))&&k(l,!1),A={data:
[],size:0}),A&&(A.data.push(t.subarray(s,n+188)),A.size+=n+188-s);break;case
m:a&&(_&&(l=S(_))&&(h.isAAC?L(l):R(l)),_={data:
[],size:0}),_&&(_.data.push(t.subarray(s,n+188)),_.size+=n+188-s);break;case
v:a&&(b&&(l=S(b))&&C(l),b={data:
[],size:0}),b&&(b.data.push(t.subarray(s,n+188)),b.size+=n+188-s);break;case
0:a&&(s+=t[s]+1),y=this._pmtId=E(t,s);break;case y:a&&(s+=t[s]+1);var O=T(t,s,!
0===this.typeSupported.mpeg||!0===this.typeSupported.mp3,null!
=this.sampleAes);0<(g=O.avc)&&(f.pid=g),0<(m=O.audio)&&(h.pid=m,h.isAAC=O.isAAC),0<
(v=O.id3)&&(p.pid=v),d&&!c&&(et.logger.log("reparse from beginning"),d=!1,n=w-
188),c=this.pmtParsed=!0;break;case 17:case 8191:break;default:d=!0}}else
this.observer.trigger(J.default.ERROR,
{type:tt.ErrorTypes.MEDIA_ERROR,details:tt.ErrorDetails.FRAG_PARSING_ERROR,fatal:!
1,reason:"TS packet did not start with 0x47"});A&&(l=S(A))?(k(l,!
0),f.pesData=null):f.pesData=A,_&&(l=S(_))?(h.isAAC?L(l):R(l),h.pesData=null):
(_&&_.size&&et.logger.log("last AAC PES packet truncated,might overlap between
fragments"),h.pesData=_),b&&(l=S(b))?
(C(l),p.pesData=null):p.pesData=b,null==this.sampleAes?
this.remuxer.remux(h,f,p,this._txtTrack,e,r,i):this.decryptAndRemux(h,f,p,this._txt
Track,e,r,i)},t.decryptAndRemux=function(t,e,r,i,n,a,o){if(t.samples&&t.isAAC){var
s=this;this.sampleAes.decryptAacSamples(t.samples,0,function()
{s.decryptAndRemuxAvc(t,e,r,i,n,a,o)})}else
this.decryptAndRemuxAvc(t,e,r,i,n,a,o)},t.decryptAndRemuxAvc=function(t,e,r,i,n,a,o
){if(e.samples){var
s=this;this.sampleAes.decryptAvcSamples(e.samples,0,0,function()
{s.remuxer.remux(t,e,r,i,n,a,o)})}else
this.remuxer.remux(t,e,r,i,n,a,o)},t.destroy=function()
{this._initPTS=this._initDTS=void 0,this._duration=0},t._parsePAT=function(t,e)
{return(31&t[e+10])<<8|t[e+11]},t._parsePMT=function(t,e,r,i){var n,a,o={audio:-
1,avc:-1,id3:-1,isAAC:!0};for(n=e+3+((15&t[e+1])<<8|t[e+2])-4,e+=12+
((15&t[e+10])<<8|t[e+11]);e<n;){switch(a=(31&t[e+1])<<8|t[e+2],t[e]){case 207:if(!
i){et.logger.log("unknown stream type:"+t[e]);break}case 15:-
1===o.audio&&(o.audio=a);break;case 21:-1===o.id3&&(o.id3=a);break;case 219:if(!i)
{et.logger.log("unknown stream type:"+t[e]);break}case 27:-
1===o.avc&&(o.avc=a);break;case 3:case 4:r?-1===o.audio&&(o.audio=a,o.isAAC=!
1):et.logger.log("MPEG audio found, not supported in this browser for
now");break;case 36:et.logger.warn("HEVC stream type found, not supported for
now");break;default:et.logger.log("unknown stream type:"+t[e])}e+=5+
((15&t[e+3])<<8|t[e+4])}return o},t._parsePES=function(t){var
e,r,i,n,a,o,s,l,u=0,d=t.data;if(!t||0===t.size)return
null;for(;d[0].length<19&&1<d.length;){var c=new
Uint8Array(d[0].length+d[1].length);c.set(d[0]),c.set(d[1],d[0].length),d[0]=c,d.sp
lice(1,1)}if(1!==((e=d[0])[0]<<16)+(e[1]<<8)+e[2])return
null;if((i=(e[4]<<8)+e[5])&&i>t.size-6)return
null;if(192&(r=e[7])&&(4294967295<(o=536870912*(14&e[9])+4194304*(255&e[10])
+16384*(254&e[11])+128*(255&e[12])+(254&e[13])/2)&&(o-=8589934592),64&r?
(4294967295<(s=536870912*(14&e[14])+4194304*(255&e[15])+16384*(254&e[16])
+128*(255&e[17])+(254&e[18])/2)&&(s-=8589934592),54e5<o-
s&&(et.logger.warn(Math.round((o-s)/9e4)+"s delta between PTS and DTS,
align them"),o=s)):s=o),l=(n=e[8])+9,t.size<=l)return null;t.size-=l,a=new
Uint8Array(t.size);for(var f=0,h=d.length;f<h;f++){var p=(e=d[f]).byteLength;if(l)
{if(p<l){l-=p;continue}e=e.subarray(l),p-=l,l=0}a.set(e,u),u+=p}return i&&(i-=n+3),
{data:a,pts:o,dts:s,len:i}},t.pushAccesUnit=function(t,e)
{if(t.units.length&&t.frame){var r=e.samples,i=r.length;if(isNaN(t.pts)){if(!
i)return void e.dropped++;var n=r[i-1];t.pts=n.pts,t.dts=n.dts}!
this.config.forceKeyFrameOnDiscontinuity||!0===t.key||e.sps&&(i||this.contiguous)?
(t.id=i,r.push(t)):e.dropped+
+}t.debug.length&&et.logger.log(t.pts+"/"+t.dts+":"+t.debug)},t._parseAVCPES=functi
on(v,t){function y(t,e,r,i){return{key:t,pts:e,dts:r,units:[],debug:i}}var
A,_,b,E=this,T=this._avcTrack,e=this._parseAVCNALu(v.data),S=this.avcSample,k=!
1,L=this.pushAccesUnit.bind(this);v.data=null,S&&e.length&&!
T.audFound&&(L(S,T),S=this.avcSample=y(!1,v.pts,v.dts,"")),e.forEach(function(t)
{switch(t.type){case 1:_=!0,S||(S=E.avcSample=y(!0,v.pts,v.dts,"")),S.frame=!0;var
e=t.data;if(k&&4<e.length){var r=new C(e).readSliceType();2!==r&&4!==r&&7!==r&&9!
==r||(S.key=!0)}break;case 5:_=!0,S||(S=E.avcSample=y(!0,v.pts,v.dts,"")),S.key=!
0,S.frame=!0;break;case 6:_=!0,(A=new C(E.discardEPB(t.data))).readUByte();for(var
i=0,n=0,a=!1,o=0;!a&&1<A.bytesAvailable;)
{for(i=0;i+=o=A.readUByte(),255===o;);for(n=0;n+=o=A.readUByte(),255===o;);if(4===i
&&0!==A.bytesAvailable){if(a=!
0,181===A.readUByte())if(49===A.readUShort())if(1195456820===A.readUInt())if(3===A.
readUByte()){var s=A.readUByte(),l=31&s,u=[s,A.readUByte()];for(b=0;b<l;b+
+)u.push(A.readUByte()),u.push(A.readUByte()),u.push(A.readUByte());E._insertSample
InOrder(E._txtTrack.samples,{type:3,pts:v.pts,bytes:u})}}else if(5===i&&0!
==A.bytesAvailable){if(a=!0,16<n){var d=[];for(b=0;b<16;b+
+)d.push(A.readUByte().toString(16)),3!==b&&5!==b&&7!==b&&9!==b||d.push("-");var
c=n-16,f=new Uint8Array(c);for(b=0;b<c;b+
+)f[b]=A.readUByte();E._insertSampleInOrder(E._txtTrack.samples,
{pts:v.pts,payloadType:i,uuid:d.join(""),userDataBytes:f,userData:Object(R.utf8Arra
yToStr)(f.buffer)})}}else if(n<A.bytesAvailable)for(b=0;b<n;b+
+)A.readUByte()}break;case 7:if(k=_=!0,!T.sps){var h=(A=new
C(t.data)).readSPS();T.width=h.width,T.height=h.height,T.pixelRatio=h.pixelRatio,T.
sps=[t.data],T.duration=E._duration;var
p=t.data.subarray(1,4),g="avc1.";for(b=0;b<3;b++){var
m=p[b].toString(16);m.length<2&&(m="0"+m),g+=m}T.codec=g}break;case 8:_=!0,T.pps||
(T.pps=[t.data]);break;case 9:_=!1,T.audFound=!0,S&&L(S,T),S=E.avcSample=y(!
1,v.pts,v.dts,"");break;case 12:_=!1;break;default:_=!1,S&&(S.debug+="unknown NAL
"+t.type+"
")}S&&_&&S.units.push(t)}),t&&S&&(L(S,T),this.avcSample=null)},t._insertSampleInOrd
er=function(t,e){var r=t.length;if(0<r){if(e.pts>=t[r-1].pts)t.push(e);else for(var
i=r-1;0<=i;i--)if(e.pts<t[i].pts){t.splice(i,0,e);break}}else
t.push(e)},t._getLastNalUnit=function(){var t,e=this.avcSample;if(!e||
0===e.units.length){var r=this._avcTrack.samples;e=r[r.length-1]}if(e){var
i=e.units;t=i[i.length-1]}return t},t._parseAVCNALu=function(t){var
e,r,i,n,a=0,o=t.byteLength,s=this._avcTrack,l=s.naluState||0,u=l,d=[],c=-1;for(-
1===l&&(n=31&t[c=0],l=0,a=1);a<o;)if(e=t[a++],l)if(1!==l)if(e)if(1===e)
{if(0<=c)i={data:t.subarray(c,a-l-1),type:n},d.push(i);else{var
f=this._getLastNalUnit();if(f&&(u&&a<=4-
u&&f.state&&(f.data=f.data.subarray(0,f.data.byteLength-u)),0<(r=a-l-1))){var h=new
Uint8Array(f.data.byteLength+r);h.set(f.data,0),h.set(t.subarray(0,r),f.data.byteLe
ngth),f.data=h}}l=a<o?(n=31&t[c=a],0):-1}else l=0;else l=3;else l=e?0:2;else l=e?
0:1;if(0<=c&&0<=l&&(i={data:t.subarray(c,o),type:n,state:l},d.push(i)),0===d.length
){var p=this._getLastNalUnit();if(p){var g=new
Uint8Array(p.data.byteLength+t.byteLength);g.set(p.data,0),g.set(t,p.data.byteLengt
h),p.data=g}}return s.naluState=l,d},t.discardEPB=function(t){for(var
e,r,i=t.byteLength,n=[],a=1;a<i-2;)0===t[a]&&0===t[a+1]&&3===t[a+2]?
(n.push(a+2),a+=2):a++;if(0===n.length)return t;e=i-n.length,r=new
Uint8Array(e);var o=0;for(a=0;a<e;o++,a++)o===n[0]&&(o+
+,n.shift()),r[a]=t[o];return r},t._parseAACPES=function(t){var
e,r,i,n,a,o,s,l=this._audioTrack,u=t.data,d=t.pts,c=this.aacOverFlow,f=this.aacLast
PTS;if(c){var h=new
Uint8Array(c.byteLength+u.byteLength);h.set(c,0),h.set(u,c.byteLength),u=h}for(i=0,
a=u.length;i<a-1&&!m(u,i);i++);if(i&&(s=i<a-1?(o="AAC PES did not start with ADTS
header,offset:"+i,!1):(o="no ADTS header found in AAC PES",!
0),et.logger.warn("parsing error:"+o),this.observer.trigger(J.default.ERROR,
{type:tt.ErrorTypes.MEDIA_ERROR,details:tt.ErrorDetails.FRAG_PARSING_ERROR,fatal:s,
reason:o}),s))return;if(v(l,this.observer,u,i,this.audioCodec),r=0,e=y(l.samplerate
),c&&f){var p=f+e;1<Math.abs(p-d)&&(et.logger.log("AAC: align PTS for overlapping
frames by "+Math.round((p-d)/90)),d=p)}for(;i<a;){if(m(u,i)){if(i+5<a){var
g=A(l,u,i,d,r);if(g){i+=g.length,n=g.sample.pts,r++;continue}}break}i++}c=i<a?
u.subarray(i,a):null,this.aacOverFlow=c,this.aacLastPTS=n},t._parseMPEGPES=function
(t){for(var e=t.data,r=e.length,i=0,n=0,a=t.pts;n<r;)if(b.isHeader(e,n)){var
o=b.appendFrame(this._audioTrack,e,n,a,i);if(!o)break;n+=o.length,i++}else n+
+},t._parseID3PES=function(t){this._id3Track.samples.push(t)},P}(),L=function()
{function t(t,e,r){this.observer=t,this.config=r,this.remuxer=e}var
e=t.prototype;return e.resetInitSegment=function(t,e,r,i)
{this._audioTrack={container:"audio/mpeg",type:"audio",id:-
1,sequenceNumber:0,isAAC:!1,samples:
[],len:0,manifestCodec:e,duration:i,inputTimeScale:9e4}},e.resetTimeStamp=function(
){},t.probe=function(t){var e,r,i=R.default.getID3Data(t,0);if(i&&void 0!
==R.default.getTimeStamp(i))for(e=i.length,r=Math.min(t.length-1,e+100);e<r;e+
+)if(b.probe(t,e))return et.logger.log("MPEG Audio sync word found !"),!0;return!
1},e.append=function(t,e,r,i){for(var
n=R.default.getID3Data(t,0),a=R.default.getTimeStamp(n),o=a?
90*a:9e4*e,s=n.length,l=t.length,u=0,d=0,c=this._audioTrack,f=[{pts:o,dts:o,data:n}
];s<l;)if(b.isHeader(t,s)){var h=b.appendFrame(c,t,s,o,u);if(!
h)break;s+=h.length,d=h.sample.pts,u++}else R.default.isHeader(t,s)?
(n=R.default.getID3Data(t,s),f.push({pts:d,dts:d,data:n}),s+=n.length):s+
+;this.remuxer.remux(c,{samples:[]},{samples:f,inputTimeScale:9e4},{samples:
[]},e,r,i)},e.destroy=function(){},t}(),Y=function(){function t(){}return
t.getSilentFrame=function(t,e){switch(t){case"mp4a.40.2":if(1===e)return new
Uint8Array([0,200,0,128,35,128]);if(2===e)return new
Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===e)return new
Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===e)return new
Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===e)return
new
Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===
e)return new
Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8
,224]);break;default:if(1===e)return new
Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,9
0,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,
90,90,90,90,90,90,90,94]);if(2===e)return new
Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90
,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,9
0,90,90,90,90,90,90,94]);if(3===e)return new
Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90
,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,9
0,90,90,90,90,90,90,94])}return null},t}(),l=Math.pow(2,32)-1,rt=function()
{function f(){}return f.init=function(){var t;for(t in f.types={avc1:[],avcC:
[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:
[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:
[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:
[],trex:[],tkhd:[],vmhd:[],smhd:
[]})f.types.hasOwnProperty(t)&&(f.types[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charC
odeAt(2),t.charCodeAt(3)]);var e=new
Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,
111,72,97,110,100,108,101,114,0]),r=new
Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,
100,72,97,110,100,108,101,114,0]);f.HDLR_TYPES={video:e,audio:r};var i=new
Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),n=new
Uint8Array([0,0,0,0,0,0,0,0]);f.STTS=f.STSC=f.STCO=n,f.STSZ=new
Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),f.VMHD=new
Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),f.SMHD=new
Uint8Array([0,0,0,0,0,0,0,0]),f.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var a=new
Uint8Array([105,115,111,109]),o=new Uint8Array([97,118,99,49]),s=new
Uint8Array([0,0,0,1]);f.FTYP=f.box(f.types.ftyp,a,s,a,o),f.DINF=f.box(f.types.dinf,
f.box(f.types.dref,i))},f.box=function(t){for(var
e,r=Array.prototype.slice.call(arguments,1),i=8,n=r.length,a=n;n--;)i+=r[n].byteLen
gth;for((e=new Uint8Array(i))
[0]=i>>24&255,e[1]=i>>16&255,e[2]=i>>8&255,e[3]=255&i,e.set(t,4),n=0,i=8;n<a;n+
+)e.set(r[n],i),i+=r[n].byteLength;return e},f.hdlr=function(t){return
f.box(f.types.hdlr,f.HDLR_TYPES[t])},f.mdat=function(t){return
f.box(f.types.mdat,t)},f.mdhd=function(t,e){e*=t;var
r=Math.floor(e/(1+l)),i=Math.floor(e%(1+l));return f.box(f.types.mdhd,new
Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,25
5&t,r>>24,r>>16&255,r>>8&255,255&r,i>>24,i>>16&255,i>>8&255,255&i,85,196,0,0]))},f.
mdia=function(t){return
f.box(f.types.mdia,f.mdhd(t.timescale,t.duration),f.hdlr(t.type),f.minf(t))},f.mfhd
=function(t){return f.box(f.types.mfhd,new
Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,255&t]))},f.minf=function(t)
{return"audio"===t.type?
f.box(f.types.minf,f.box(f.types.smhd,f.SMHD),f.DINF,f.stbl(t)):f.box(f.types.minf,
f.box(f.types.vmhd,f.VMHD),f.DINF,f.stbl(t))},f.moof=function(t,e,r){return
f.box(f.types.moof,f.mfhd(t),f.traf(r,e))},f.moov=function(t){for(var
e=t.length,r=[];e--;)r[e]=f.trak(t[e]);return
f.box.apply(null,
[f.types.moov,f.mvhd(t[0].timescale,t[0].duration)].concat(r).concat(f.mvex(t)))},f
.mvex=function(t){for(var e=t.length,r=[];e--;)r[e]=f.trex(t[e]);return
f.box.apply(null,[f.types.mvex].concat(r))},f.mvhd=function(t,e){e*=t;var
r=Math.floor(e/(1+l)),i=Math.floor(e%(1+l)),n=new
Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,25
5&t,r>>24,r>>16&255,r>>8&255,255&r,i>>24,i>>16&255,i>>8&255,255&i,0,1,0,0,1,0,0,0,0
,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0
,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return
f.box(f.types.mvhd,n)},f.sdtp=function(t){var e,r,i=t.samples||[],n=new
Uint8Array(4+i.length);for(r=0;r<i.length;r++)e=i[r].flags,n[r+4]=e.dependsOn<<4|
e.isDependedOn<<2|e.hasRedundancy;return f.box(f.types.sdtp,n)},f.stbl=function(t)
{return
f.box(f.types.stbl,f.stsd(t),f.box(f.types.stts,f.STTS),f.box(f.types.stsc,f.STSC),
f.box(f.types.stsz,f.STSZ),f.box(f.types.stco,f.STCO))},f.avc1=function(t){var
e,r,i,n=[],a=[];for(e=0;e<t.sps.length;e+
+)i=(r=t.sps[e]).byteLength,n.push(i>>>8&255),n.push(255&i),n=n.concat(Array.protot
ype.slice.call(r));for(e=0;e<t.pps.length;e+
+)i=(r=t.pps[e]).byteLength,a.push(i>>>8&255),a.push(255&i),a=a.concat(Array.protot
ype.slice.call(r));var o=f.box(f.types.avcC,new
Uint8Array([1,n[3],n[4],n[5],255,224|
t.sps.length].concat(n).concat([t.pps.length]).concat(a))),s=t.width,l=t.height,u=t
.pixelRatio[0],d=t.pixelRatio[1];return f.box(f.types.avc1,new
Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,s>>8&255,255&s,l>>8&255
,255&l,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,
47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),o,f.box(f.types.bt
rt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),f.box(f.types.pasp,new
Uint8Array([u>>24,u>>16&255,u>>8&255,255&u,d>>24,d>>16&255,d>>8&255,255&d])))},f.es
ds=function(t){var e=t.config.length;return new
Uint8Array([0,0,0,0,3,23+e,0,1,0,4,15+e,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([e]).
concat(t.config).concat([6,1,2]))},f.mp4a=function(t){var e=t.samplerate;return
f.box(f.types.mp4a,new
Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t.channelCount,0,16,0,0,0,0,e>>8&255,
255&e,0,0]),f.box(f.types.esds,f.esds(t)))},f.mp3=function(t){var
e=t.samplerate;return f.box(f.types[".mp3"],new
Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t.channelCount,0,16,0,0,0,0,e>>8&255,
255&e,0,0]))},f.stsd=function(t){return"audio"===t.type?t.isAAC||"mp3"!==t.codec?
f.box(f.types.stsd,f.STSD,f.mp4a(t)):f.box(f.types.stsd,f.STSD,f.mp3(t)):f.box(f.ty
pes.stsd,f.STSD,f.avc1(t))},f.tkhd=function(t){var
e=t.id,r=t.duration*t.timescale,i=t.width,n=t.height,a=Math.floor(r/
(1+l)),o=Math.floor(r%(1+l));return f.box(f.types.tkhd,new
Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,25
5&e,0,0,0,0,a>>24,a>>16&255,a>>8&255,255&a,o>>24,o>>16&255,o>>8&255,255&o,0,0,0,0,0
,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,64,0,0,0,i>>8&255,255&i,0,0,n>>8&255,255&n,0,0]))},f.traf=function(t,e){var
r=f.sdtp(t),i=t.id,n=Math.floor(e/(1+l)),a=Math.floor(e%(1+l));return
f.box(f.types.traf,f.box(f.types.tfhd,new
Uint8Array([0,0,0,0,i>>24,i>>16&255,i>>8&255,255&i])),f.box(f.types.tfdt,new
Uint8Array([1,0,0,0,n>>24,n>>16&255,n>>8&255,255&n,a>>24,a>>16&255,a>>8&255,255&a])
),f.trun(t,r.length+16+20+8+16+8+8),r)},f.trak=function(t){return
t.duration=t.duration||
4294967295,f.box(f.types.trak,f.tkhd(t),f.mdia(t))},f.trex=function(t){var
e=t.id;return f.box(f.types.trex,new
Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,255&e,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]
))},f.trun=function(t,e){var r,i,n,a,o,s,l=t.samples||[],u=l.length,d=12+16*u,c=new
Uint8Array(d);for(e+=8+d,c.set([0,0,15,1,u>>>24&255,u>>>16&255,u>>>8&255,255&u,e>>>
24&255,e>>>16&255,e>>>8&255,255&e],0),r=0;r<u;r+
+)n=(i=l[r]).duration,a=i.size,o=i.flags,s=i.cts,c.set([n>>>24&255,n>>>16&255,n>>>8
&255,255&n,a>>>24&255,a>>>16&255,a>>>8&255,255&a,o.isLeading<<2|
o.dependsOn,o.isDependedOn<<6|o.hasRedundancy<<4|o.paddingValue<<1|
o.isNonSync,61440&o.degradPrio,15&o.degradPrio,s>>>24&255,s>>>16&255,s>>>8&255,255&
s],12+16*r);return f.box(f.types.trun,c)},f.initSegment=function(t){f.types||
f.init();var e,r=f.moov(t);return(e=new
Uint8Array(f.FTYP.byteLength+r.byteLength)).set(f.FTYP),e.set(r,f.FTYP.byteLength),
e},f}();function u(t,e,r,i){void 0===r&&(r=1),void 0===i&&(i=!1);var n=t*e*r;return
i?Math.round(n):n}function it(t,e){return void 0===e&&(e=!
1),u(t,1e3,1/9e4,e)}function f(t,e){return void 0===e&&(e=1),u(t,9e4,1/e)}var
E,H=f(10),nt=f(.2),w=function(){function t(t,e,r,i)
{this.observer=t,this.config=e,this.typeSupported=r;var
n=navigator.userAgent;this.isSafari=i&&-1<i.indexOf("Apple")&&n&&!
n.match("CriOS"),this.ISGenerated=!1}var e=t.prototype;return e.destroy=function()
{},e.resetTimeStamp=function(t)
{this._initPTS=this._initDTS=t},e.resetInitSegment=function(){this.ISGenerated=!
1},e.remux=function(t,e,r,i,n,a,o){if(this.ISGenerated||
this.generateIS(t,e,n),this.ISGenerated){var
s=t.samples.length,l=e.samples.length,u=n,d=n;if(s&&l){var c=(t.samples[0].pts-
e.samples[0].pts)/e.inputTimeScale;u+=Math.max(0,c),d+=Math.max(0,-c)}if(s)
{t.timescale||(et.logger.warn("regenerate InitSegment as audio
detected"),this.generateIS(t,e,n));var
f,h=this.remuxAudio(t,u,a,o);if(l)h&&(f=h.endPTS-h.startPTS),e.timescale||
(et.logger.warn("regenerate InitSegment as video
detected"),this.generateIS(t,e,n)),this.remuxVideo(e,d,a,f,o)}else if(l){var
p=this.remuxVideo(e,d,a,0,o);p&&t.codec&&this.remuxEmptyAudio(t,u,a,p)}}r.samples.l
ength&&this.remuxID3(r,n),i.samples.length&&this.remuxText(i,n),this.observer.trigg
er(J.default.FRAG_PARSED)},e.generateIS=function(t,e,r){var
i,n,a=this.observer,o=t.samples,s=e.samples,l=this.typeSupported,u="audio/
mp4",d={},c={tracks:d},f=void
0===this._initPTS;if(f&&(i=n=1/0),t.config&&o.length&&(t.timescale=t.samplerate,et.
logger.log("audio sampling rate :
"+t.samplerate),t.isAAC||(l.mpeg?(u="audio/mpeg",t.codec=""):l.mp3&&(t.codec="mp3")
),d.audio={container:u,codec:t.codec,initSegment:!t.isAAC&&l.mpeg?new
Uint8Array:rt.initSegment([t]),metadata:
{channelCount:t.channelCount}},f&&(i=n=o[0].pts-
t.inputTimeScale*r)),e.sps&&e.pps&&s.length){var
h=e.inputTimeScale;e.timescale=h,d.video={container:"video/mp4",codec:e.codec,initS
egment:rt.initSegment([e]),metadata:
{width:e.width,height:e.height}},f&&(i=Math.min(i,s[0].pts-
h*r),n=Math.min(n,s[0].dts-h*r),this.observer.trigger(J.default.INIT_PTS_FOUND,
{initPTS:i}))}Object.keys(d).length?
(a.trigger(J.default.FRAG_PARSING_INIT_SEGMENT,c),this.ISGenerated=!
0,f&&(this._initPTS=i,this._initDTS=n)):a.trigger(J.default.ERROR,
{type:tt.ErrorTypes.MEDIA_ERROR,details:tt.ErrorDetails.FRAG_PARSING_ERROR,fatal:!
1,reason:"no audio/video samples found"})},e.remuxVideo=function(t,e,r,i,n){var
a,o,s,l,u,d,c,f=8,h=t.timescale,p=t.samples,g=[],m=p.length,v=this._PTSNormalize,y=
this._initPTS,A=this.nextAvcDts,_=this.isSafari;if(0!==m){_&&(r|
=p.length&&A&&(n&&Math.abs(e-A/h)<.1||Math.abs(p[0].pts-A-y)<h/5)),r||
(A=e*h),p.forEach(function(t){t.pts=v(t.pts-y,A),t.dts=v(t.dts-
y,A)}),p.sort(function(t,e){var r=t.dts-e.dts,i=t.pts-e.pts;return r||i||t.id-
e.id});var b=p.reduce(function(t,e){return Math.max(Math.min(t,e.pts-e.dts),-
1*nt)},0);if(b<0){et.logger.warn("PTS < DTS detected in video samples, shifting DTS
by "+it(b,!0)+" ms to overcome this issue");for(var E=0;E<p.length;E+
+)p[E].dts+=b}var T=p[0];u=Math.max(T.dts,0),l=Math.max(T.pts,0);var S=u-
A;r&&S&&(1<S?et.logger.log("AVC: "+it(S,!0)+" ms hole between fragments
detected,filling it"):S<-1&&et.logger.log("AVC: "+it(-S,!0)+" ms overlapping
between fragments detected"),u=A,p[0].dts=u,l=Math.max(l-
S,A),p[0].pts=l,et.logger.log("Video: PTS/DTS adjusted: "+it(l,!0)+"/"+it(u,!0)+",
delta: "+it(S,!0)+" ms")),T=p[p.length-
1],c=Math.max(T.dts,0),d=Math.max(T.pts,0,c),_&&(a=Math.round((c-u)/(p.length-
1)));for(var k=0,L=0,R=0;R<m;R++){for(var
C=p[R],w=C.units,O=w.length,P=0,D=0;D<O;D+
+)P+=w[D].data.length;L+=P,k+=O,C.length=P,C.dts=_?
u+R*a:Math.max(C.dts,u),C.pts=Math.max(C.pts,C.dts)}var I=L+4*k+8;try{o=new
Uint8Array(I)}catch(t){return void this.observer.trigger(J.default.ERROR,
{type:tt.ErrorTypes.MUX_ERROR,details:tt.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!
1,bytes:I,reason:"fail allocating video mdat "+I})}var x=new
DataView(o.buffer);x.setUint32(0,I),o.set(rt.types.mdat,4);for(var M=0;M<m;M++)
{for(var N=p[M],F=N.units,B=0,U=void 0,j=0,K=F.length;j<K;j++){var
V=F[j],G=V.data,Y=V.data.byteLength;x.setUint32(f,Y),f+=4,o.set(G,f),f+=Y,B+=4+Y}if
(_)U=Math.max(0,a*Math.round((N.pts-N.dts)/a));else{if(M<m-1)a=p[M+1].dts-
N.dts;else{var H=this.config,$=N.dts-p[0<M?M-1:M].dts;if(H.stretchShortVideoTrack)
{var z=H.maxBufferHole,W=Math.floor(z*h),q=(i?l+i*h:this.nextAudioPts)-N.pts;W<q?
((a=q-$)<0&&(a=$),et.logger.log("It is approximately "+it(q,!1)+" ms to the next
segment; using duration "+it(a,!1)+" ms for the last video frame.")):a=$}else
a=$}U=Math.round(N.pts-N.dts)}g.push({size:B,duration:a,cts:U,flags:
{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:N.key?
2:1,isNonSync:N.key?0:1}})}this.nextAvcDts=c+a;var
X=t.dropped;if(t.nbNalu=0,t.dropped=0,g.length&&-
1<navigator.userAgent.toLowerCase().indexOf("chrome")){var
Z=g[0].flags;Z.dependsOn=2,Z.isNonSync=0}t.samples=g,s=rt.moof(t.sequenceNumber+
+,u,t),t.samples=[];var
Q={data1:s,data2:o,startPTS:l/h,endPTS:(d+a)/h,startDTS:u/h,endDTS:this.nextAvcDts/
h,type:"video",hasAudio:!1,hasVideo:!0,nb:g.length,dropped:X};return
this.observer.trigger(J.default.FRAG_PARSING_DATA,Q),Q}},e.remuxAudio=function(t,e,
r,i){var n,a,o,s,l,u,d=t.inputTimeScale,c=t.timescale,f=d/c,h=(t.isAAC?
1024:1152)*f,p=this._PTSNormalize,g=this._initPTS,m=!
t.isAAC&&this.typeSupported.mpeg,v=m?0:8,y=t.samples,A=[],_=this.nextAudioPts;if(r|
=y.length&&_&&(i&&Math.abs(e-_/d)<.1||Math.abs(y[0].pts-_-
g)<20*h),y.forEach(function(t){t.pts=t.dts=p(t.pts-g,e*d)}),0!
==(y=y.filter(function(t){return
0<=t.pts})).length){if(r||(_=i?e*d:y[0].pts),t.isAAC)for(var
b=this.config.maxAudioFramesDrift,E=0,T=_;E<y.length;){var S,k=y[E];if((S=k.pts-
T)<=-b*h)et.logger.warn("Dropping 1 audio frame @ "+it(T,!0)+" ms due to "+it(S,!
0)+" ms overlap."),y.splice(E,1);else if(b*h<=S&&S<H&&T){var
L=Math.round(S/h);et.logger.warn("Injecting "+L+" audio frames @ "+it(T,!0)+" ms
due to "+it(T,!0)+" ms gap.");for(var R=0;R<L;R++){var C=Math.max(T,0);
(a=Y.getSilentFrame(t.manifestCodec||t.codec,t.channelCount))||
(et.logger.log("Unable to get silent frame for given audio codec; duplicating last
frame instead."),a=k.unit.subarray()),y.splice(E,0,{unit:a,pts:C,dts:C}),T+=h,E+
+}k.pts=k.dts=T,T+=h,E++}else Math.abs(S),k.pts=k.dts=T,T+=h,E++}for(var
w=y.length,O=0;w--;)O+=y[w].unit.byteLength;for(var P=0,D=y.length;P<D;P++){var
I=y[P],x=I.unit,M=I.pts;if(void 0!==u)n.duration=Math.round((M-u)/f);else{var N=M-
_,F=0;if(r&&t.isAAC&&N){if(0<N&&N<H)F=Math.round((M-_)/h),et.logger.log(it(N,!0)+"
ms hole between AAC samples detected,filling
it"),0<F&&((a=Y.getSilentFrame(t.manifestCodec||t.codec,t.channelCount))||
(a=x.subarray()),O+=F*a.length);else if(N<-12){et.logger.log("drop overlapping AAC
sample, expected/parsed/delta: "+it(_,!0)+" ms / "+it(M,!0)+" ms / "+it(-N,!0)+"
ms"),O-=x.byteLength;continue}M=_}if(l=M,!(0<O))return;O+=v;try{o=new
Uint8Array(O)}catch(t){return void this.observer.trigger(J.default.ERROR,
{type:tt.ErrorTypes.MUX_ERROR,details:tt.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!
1,bytes:O,reason:"fail allocating audio mdat "+O})}m||(new
DataView(o.buffer).setUint32(0,O),o.set(rt.types.mdat,4));for(var B=0;B<F;B++)
(a=Y.getSilentFrame(t.manifestCodec||t.codec,t.channelCount))||
(et.logger.log("Unable to get silent frame for given audio codec; duplicating this
frame
instead."),a=x.subarray()),o.set(a,v),v+=a.byteLength,n={size:a.byteLength,cts:0,du
ration:1024,flags:
{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:1}},A.push(n)}o.
set(x,v);var U=x.byteLength;v+=U,n={size:U,cts:0,duration:0,flags:
{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:1}},A.push(n),u=
M}var j=0;if(2<=(w=A.length)&&(j=A[w-2].duration,n.duration=j),w)
{this.nextAudioPts=_=u+f*j,t.samples=A,s=m?new Uint8Array:rt.moof(t.sequenceNumber+
+,l/f,t),t.samples=[];var
K=l/d,V=_/d,G={data1:s,data2:o,startPTS:K,endPTS:V,startDTS:K,endDTS:V,type:"audio"
,hasAudio:!0,hasVideo:!1,nb:w};return
this.observer.trigger(J.default.FRAG_PARSING_DATA,G),G}return
null}},e.remuxEmptyAudio=function(t,e,r,i){var
n=t.inputTimeScale,a=n/(t.samplerate?t.samplerate:n),o=this.nextAudioPts,s=(void 0!
==o?o:i.startDTS*n)
+this._initDTS,l=i.endDTS*n+this._initDTS,u=1024*a,d=Math.ceil((l-s)/
u),c=Y.getSilentFrame(t.manifestCodec||
t.codec,t.channelCount);if(et.logger.warn("remux empty Audio"),c){for(var
f=[],h=0;h<d;h++){var
p=s+h*u;f.push({unit:c,pts:p,dts:p})}t.samples=f,this.remuxAudio(t,e,r)}else
et.logger.trace("Unable to remuxEmptyAudio since we were unable to get a silent
frame for given audio codec!")},e.remuxID3=function(t){var
e,r=t.samples.length,i=t.inputTimeScale,n=this._initPTS,a=this._initDTS;if(r)
{for(var
o=0;o<r;o++)(e=t.samples[o]).pts=(e.pts-n)/i,e.dts=(e.dts-a)/i;this.observer.trigge
r(J.default.FRAG_PARSING_METADATA,
{samples:t.samples})}t.samples=[]},e.remuxText=function(t)
{t.samples.sort(function(t,e){return t.pts-e.pts});var
e,r=t.samples.length,i=t.inputTimeScale,n=this._initPTS;if(r){for(var a=0;a<r;a++)
(e=t.samples[a]).pts=(e.pts-n)/i;this.observer.trigger(J.default.FRAG_PARSING_USERD
ATA,{samples:t.samples})}t.samples=[]},e._PTSNormalize=function(t,e){var r;if(void
0===e)return t;for(r=e<t?-8589934592:8589934592;4294967296<Math.abs(t-
e);)t+=r;return t},t}(),O=function(){function t(t){this.observer=t}var
e=t.prototype;return e.destroy=function(){},e.resetTimeStamp=function()
{},e.resetInitSegment=function(){},e.remux=function(t,e,r,i,n,a,o,s){var
l=this.observer,u="";t&&(u+="audio"),e&&(u+="video"),l.trigger(J.default.FRAG_PARSI
NG_DATA,{data1:s,startPTS:n,startDTS:n,type:u,hasAudio:!!t,hasVideo:!!
e,nb:1,dropped:0}),l.trigger(J.default.FRAG_PARSED)},t}(),h=Object(i.getSelfScope)
();try{E=h.performance.now.bind(h.performance)}catch(t){et.logger.debug("Unable to
use Performance API on this environment"),E=h.Date.now}var P=function(){function
t(t,e,r,i){this.observer=t,this.typeSupported=e,this.config=r,this.vendor=i}var
e=t.prototype;return e.destroy=function(){var
t=this.demuxer;t&&t.destroy()},e.push=function(t,r,i,n,a,o,s,l,u,d,c,f){var
h=this;if(0<t.byteLength&&null!=r&&null!=r.key&&"AES-128"===r.method){var
e=this.decrypter;null==e&&(e=this.decrypter=new
g.default(this.observer,this.config));var
p=E();e.decrypt(t,r.key.buffer,r.iv.buffer,function(t){var
e=E();h.observer.trigger(J.default.FRAG_DECRYPTED,{stats:
{tstart:p,tdecrypt:e}}),h.pushDecrypted(new Uint8Array(t),r,new
Uint8Array(i),n,a,o,s,l,u,d,c,f)})}else this.pushDecrypted(new Uint8Array(t),r,new
Uint8Array(i),n,a,o,s,l,u,d,c,f)},e.pushDecrypted=function(t,e,r,i,n,a,o,s,l,u,d,c)
{var f=this.demuxer;if(!f||(o||s)&&!this.probe(t)){for(var
h=this.observer,p=this.typeSupported,g=this.config,m=[{demux:k,remux:w},
{demux:S.default,remux:O},{demux:T,remux:w},
{demux:L,remux:w}],v=0,y=m.length;v<y;v++){var A=m[v],_=A.demux.probe;if(_(t)){var
b=this.remuxer=new A.remux(h,g,p,this.vendor);f=new
A.demux(h,b,g,p),this.probe=_;break}}if(!f)return void h.trigger(J.default.ERROR,
{type:tt.ErrorTypes.MEDIA_ERROR,details:tt.ErrorDetails.FRAG_PARSING_ERROR,fatal:!
0,reason:"no demux matching with content found"});this.demuxer=f}var
E=this.remuxer;(o||
s)&&(f.resetInitSegment(r,i,n,u),E.resetInitSegment()),o&&(f.resetTimeStamp(c),E.re
setTimeStamp(c)),"function"==typeof
f.setDecryptData&&f.setDecryptData(e),f.append(t,a,l,d)},t}();e.default=P},"./src/
demux/demuxer-worker.js":function(t,e,r){"use strict";r.r(e);var
o=r("./src/demux/demuxer-inline.js"),s=r("./src/events.js"),l=r("./src/utils/
logger.js"),u=r("./node_modules/eventemitter3/index.js");e.default=function(n){var
a=new u.EventEmitter;a.trigger=function(t){for(var e=arguments.length,r=new
Array(1<e?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];a.emit.apply(a,
[t,t].concat(r))},a.off=function(t){for(var e=arguments.length,r=new Array(1<e?e-
1:0),i=1;i<e;i++)r[i-1]=arguments[i];a.removeListener.apply(a,
[t].concat(r))};function i(t,e)
{n.postMessage({event:t,data:e})}n.addEventListener("message",function(t){var
e=t.data;switch(e.cmd){case"init":var r=JSON.parse(e.config);n.demuxer=new
o.default(a,e.typeSupported,r,e.vendor),Object(l.enableLogs)
(r.debug),i("init",null);break;case"demux":n.demuxer.push(e.data,e.decryptdata,e.in
itSegment,e.audioCodec,e.videoCodec,e.timeOffset,e.discontinuity,e.trackSwitch,e.co
ntiguous,e.duration,e.accurateTimeOffset,e.defaultInitPTS)}}),a.on(s.default.FRAG_D
ECRYPTED,i),a.on(s.default.FRAG_PARSING_INIT_SEGMENT,i),a.on(s.default.FRAG_PARSED,
i),a.on(s.default.ERROR,i),a.on(s.default.FRAG_PARSING_METADATA,i),a.on(s.default.F
RAG_PARSING_USERDATA,i),a.on(s.default.INIT_PTS_FOUND,i),a.on(s.default.FRAG_PARSIN
G_DATA,function(t,e){var
r=[],i={event:t,data:e};e.data1&&(i.data1=e.data1.buffer,r.push(e.data1.buffer),del
ete e.data1),e.data2&&(i.data2=e.data2.buffer,r.push(e.data2.buffer),delete
e.data2),n.postMessage(i,r)})}},"./src/demux/id3.js":function(t,e,r){"use
strict";r.r(e),r.d(e,"utf8ArrayToStr",function(){return n});var
c,f=r("./src/utils/get-self-scope.js"),i=function(){function s(){}return
s.isHeader=function(t,e){return
e+10<=t.length&&73===t[e]&&68===t[e+1]&&51===t[e+2]&&t[e+3]<255&&t[e+4]<255&&t[e+6]
<128&&t[e+7]<128&&t[e+8]<128&&t[e+9]<128},s.isFooter=function(t,e){return
e+10<=t.length&&51===t[e]&&68===t[e+1]&&73===t[e+2]&&t[e+3]<255&&t[e+4]<255&&t[e+6]
<128&&t[e+7]<128&&t[e+8]<128&&t[e+9]<128},s.getID3Data=function(t,e){for(var
r=e,i=0;s.isHeader(t,e);)
{i+=10,i+=s._readSize(t,e+6),s.isFooter(t,e+10)&&(i+=10),e+=i}if(0<i)return
t.subarray(r,r+i)},s._readSize=function(t,e){var r=0;return r=(127&t[e])<<21,r|
=(127&t[e+1])<<14,r|=(127&t[e+2])<<7,r|=127&t[e+3]},s.getTimeStamp=function(t)
{for(var e=s.getID3Frames(t),r=0;r<e.length;r++){var
i=e[r];if(s.isTimeStampFrame(i))return
s._readTimeStamp(i)}},s.isTimeStampFrame=function(t){return
t&&"PRIV"===t.key&&"com.apple.streaming.transportStreamTimestamp"===t.info},s._getF
rameData=function(t){var
e=String.fromCharCode(t[0],t[1],t[2],t[3]),r=s._readSize(t,4);return{type:e,size:r,
data:t.subarray(10,10+r)}},s.getID3Frames=function(t){for(var
e=0,r=[];s.isHeader(t,e);){for(var i=s._readSize(t,e+6),n=(e+=10)+i;e+8<n;){var
a=s._getFrameData(t.subarray(e)),o=s._decodeFrame(a);o&&r.push(o),e+=a.size+10}s.is
Footer(t,e)&&(e+=10)}return r},s._decodeFrame=function(t){return"PRIV"===t.type?
s._decodePrivFrame(t):"T"===t.type[0]?s._decodeTextFrame(t):"W"===t.type[0]?
s._decodeURLFrame(t):void 0},s._readTimeStamp=function(t){if(8===t.data.byteLength)
{var e=new Uint8Array(t.data),r=1&e[3],i=(e[4]<<23)+(e[5]<<15)+
(e[6]<<7)+e[7];return
i/=45,r&&(i+=47721858.84),Math.round(i)}},s._decodePrivFrame=function(t){if(!
(t.size<2)){var e=s._utf8ArrayToStr(t.data,!0),r=new
Uint8Array(t.data.subarray(e.length+1));return{key:t.type,info:e,data:r.buffer}}},s
._decodeTextFrame=function(t){if(!(t.size<2)){if("TXXX"===t.type){var
e=1,r=s._utf8ArrayToStr(t.data.subarray(e),!0);e+=r.length+1;var
i=s._utf8ArrayToStr(t.data.subarray(e));return{key:t.type,info:r,data:i}}var
n=s._utf8ArrayToStr(t.data.subarray(1));return{key:t.type,data:n}}},s._decodeURLFra
me=function(t){if("WXXX"===t.type){if(t.size<2)return;var
e=1,r=s._utf8ArrayToStr(t.data.subarray(e));e+=r.length+1;var
i=s._utf8ArrayToStr(t.data.subarray(e));return{key:t.type,info:r,data:i}}var
n=s._utf8ArrayToStr(t.data);return{key:t.type,data:n}},s._utf8ArrayToStr=function(t
,e){void 0===e&&(e=!1);var r=function(){var t=Object(f.getSelfScope)();c||void
0===t.TextDecoder||(c=new t.TextDecoder("utf-8"));return c}();if(r){var
i=r.decode(t);if(e){var n=i.indexOf("\0");return-1!==n?i.substring(0,n):i}return
i.replace(/\0/g,"")}for(var a,o,s,l=t.length,u="",d=0;d<l;){if(0===(a=t[d+
+])&&e)return u;if(0!==a&&3!==a)switch(a>>4){case 0:case 1:case 2:case 3:case
4:case 5:case 6:case 7:u+=String.fromCharCode(a);break;case 12:case 13:o=t[d+
+],u+=String.fromCharCode((31&a)<<6|63&o);break;case 14:o=t[d++],s=t[d+
+],u+=String.fromCharCode((15&a)<<12|(63&o)<<6|(63&s)<<0)}}return u},s}();var
n=i._utf8ArrayToStr;e.default=i},"./src/demux/mp4demuxer.js":function(t,e,r){"use
strict";r.r(e);var
f=r("./src/utils/logger.js"),l=r("./src/events.js"),s=Math.pow(2,32)-1,i=function()
{function g(t,e){this.observer=t,this.remuxer=e}var t=g.prototype;return
t.resetTimeStamp=function(t){this.initPTS=t},t.resetInitSegment=function(t,e,r,i)
{if(t&&t.byteLength){var
n=this.initData=g.parseInitSegment(t);null==e&&(e="mp4a.40.5"),null==r&&(r="avc1.42
e01e");var
a={};n.audio&&n.video?a.audiovideo={container:"video/mp4",codec:e+","+r,initSegment
:i?t:null}:(n.audio&&(a.audio={container:"audio/mp4",codec:e,initSegment:i?
t:null}),n.video&&(a.video={container:"video/mp4",codec:r,initSegment:i?
t:null})),this.observer.trigger(l.default.FRAG_PARSING_INIT_SEGMENT,
{tracks:a})}else e&&(this.audioCodec=e),r&&(this.videoCodec=r)},g.probe=function(t)
{return 0<g.findBox({data:t,start:0,end:Math.min(t.length,16384)},
["moof"]).length},g.bin2str=function(t){return
String.fromCharCode.apply(null,t)},g.readUint16=function(t,e)
{t.data&&(e+=t.start,t=t.data);var r=t[e]<<8|t[e+1];return r<0?
65536+r:r},g.readUint32=function(t,e){t.data&&(e+=t.start,t=t.data);var r=t[e]<<24|
t[e+1]<<16|t[e+2]<<8|t[e+3];return r<0?
4294967296+r:r},g.writeUint32=function(t,e,r)
{t.data&&(e+=t.start,t=t.data),t[e]=r>>24,t[e+1]=r>>16&255,t[e+2]=r>>8&255,t[e+3]=2
55&r},g.findBox=function(t,e){var r,i,n,a,o,s,l=[];if(t.data?
(o=t.start,n=t.end,t=t.data):(o=0,n=t.byteLength),!e.length)return
null;for(r=o;r<n;)s=1<(i=g.readUint32(t,r))?
r+i:n,g.bin2str(t.subarray(r+4,r+8))===e[0]&&(1===e.length?
l.push({data:t,start:r+8,end:s}):
(a=g.findBox({data:t,start:r+8,end:s},e.slice(1))).length&&(l=l.concat(a))),r=s;ret
urn l},g.parseSegmentIndex=function(t){var e,r=g.findBox(t,["moov"])[0],i=r?
r.end:null,n=0,a=g.findBox(t,["sidx"]);if(!a||!a[0])return null;e=[];var
o=(a=a[0]).data[0],s=g.readUint32(a,n=0===o?8:16);n+=4;n+=0===o?8:16,n+=2;var
l=a.end+0,u=g.readUint16(a,n);n+=2;for(var d=0;d<u;d++){var
c=n,f=g.readUint32(a,c);c+=4;var h=2147483647&f;if(1==(2147483648&f)>>>31)return
void console.warn("SIDX has hierarchical references (not supported)");var
p=g.readUint32(a,c);c+=4,e.push({referenceSize:h,subsegmentDuration:p,info:
{duration:p/s,start:l,end:l+h-
1}}),l+=h,n=c+=4}return{earliestPresentationTime:0,timescale:s,version:o,references
Count:u,references:e,moovEndOffset:i}},g.parseInitSegment=function(t){var
c=[];return g.findBox(t,["moov","trak"]).forEach(function(t){var e=g.findBox(t,
["tkhd"])[0];if(e){var r=e.data[e.start],i=0===r?
12:20,n=g.readUint32(e,i),a=g.findBox(t,["mdia","mdhd"])[0];if(a)
{r=a.data[a.start];var o=g.readUint32(a,i=0===r?12:20),s=g.findBox(t,
["mdia","hdlr"])[0];if(s){var l={soun:"audio",vide:"video"}
[g.bin2str(s.data.subarray(s.start+8,s.start+12))];if(l){var u=g.findBox(t,
["mdia","minf","stbl","stsd"]);if(u.length){u=u[0];var
d=g.bin2str(u.data.subarray(u.start+12,u.start+16));f.logger.log("MP4Demuxer:"+l+":
"+d+"
found")}c[n]={timescale:o,type:l},c[l]={timescale:o,id:n}}}}}}),c},g.getStartDTS=fu
nction(n,t){var e,r,i;return e=g.findBox(t,
["moof","traf"]),r=[].concat.apply([],e.map(function(i){return g.findBox(i,
["tfhd"]).map(function(t){var e,r;return e=g.readUint32(t,4),r=n[e].timescale||
9e4,g.findBox(i,["tfdt"]).map(function(t){var e,r;return
e=t.data[t.start],r=g.readUint32(t,4),1===e&&(r*=Math.pow(2,32),r+=g.readUint32(t,8
)),r})[0]/r})})),i=Math.min.apply(null,r),isFinite(i)?
i:0},g.offsetStartDTS=function(i,t,o){g.findBox(t,["moof","traf"]).map(function(r)
{return g.findBox(r,["tfhd"]).map(function(t){var
e=g.readUint32(t,4),a=i[e].timescale||9e4;g.findBox(r,["tfdt"]).map(function(t){var
e=t.data[t.start],r=g.readUint32(t,4);if(0===e)g.writeUint32(t,4,r-
o*a);else{r*=Math.pow(2,32),r+=g.readUint32(t,8),r-=o*a,r=Math.max(r,0);var
i=Math.floor(r/(1+s)),n=Math.floor(r
%(1+s));g.writeUint32(t,4,i),g.writeUint32(t,8,n)}})})})},t.append=function(t,e,r,i
){var n=this.initData;n||(this.resetInitSegment(t,this.audioCodec,this.videoCodec,!
1),n=this.initData);var a,o=this.initPTS;if(void 0===o){var
s=g.getStartDTS(n,t);this.initPTS=o=s-
e,this.observer.trigger(l.default.INIT_PTS_FOUND,
{initPTS:o})}g.offsetStartDTS(n,t,o),a=g.getStartDTS(n,t),this.remuxer.remux(n.audi
o,n.video,null,null,a,r,i,t)},t.destroy=function(){},g}();e.default=i},"./src/
errors.ts":function(t,e,r){"use strict";var
i,n,a,o;r.r(e),r.d(e,"ErrorTypes",function(){return
i}),r.d(e,"ErrorDetails",function(){return a}),(n=i||
(i={})).NETWORK_ERROR="networkError",n.MEDIA_ERROR="mediaError",n.KEY_SYSTEM_ERROR=
"keySystemError",n.MUX_ERROR="muxError",n.OTHER_ERROR="otherError",(o=a||
(a={})).KEY_SYSTEM_NO_KEYS="keySystemNoKeys",o.KEY_SYSTEM_NO_ACCESS="keySystemNoAcc
ess",o.KEY_SYSTEM_NO_SESSION="keySystemNoSession",o.KEY_SYSTEM_LICENSE_REQUEST_FAIL
ED="keySystemLicenseRequestFailed",o.KEY_SYSTEM_NO_INIT_DATA="keySystemNoInitData",
o.MANIFEST_LOAD_ERROR="manifestLoadError",o.MANIFEST_LOAD_TIMEOUT="manifestLoadTime
Out",o.MANIFEST_PARSING_ERROR="manifestParsingError",o.MANIFEST_INCOMPATIBLE_CODECS
_ERROR="manifestIncompatibleCodecsError",o.LEVEL_LOAD_ERROR="levelLoadError",o.LEVE
L_LOAD_TIMEOUT="levelLoadTimeOut",o.LEVEL_SWITCH_ERROR="levelSwitchError",o.AUDIO_T
RACK_LOAD_ERROR="audioTrackLoadError",o.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTim
eOut",o.FRAG_LOAD_ERROR="fragLoadError",o.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",o.FRA
G_DECRYPT_ERROR="fragDecryptError",o.FRAG_PARSING_ERROR="fragParsingError",o.REMUX_
ALLOC_ERROR="remuxAllocError",o.KEY_LOAD_ERROR="keyLoadError",o.KEY_LOAD_TIMEOUT="k
eyLoadTimeOut",o.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",o.BUFFER_APPEND_ERROR
="bufferAppendError",o.BUFFER_APPENDING_ERROR="bufferAppendingError",o.BUFFER_STALL
ED_ERROR="bufferStalledError",o.BUFFER_FULL_ERROR="bufferFullError",o.BUFFER_SEEK_O
VER_HOLE="bufferSeekOverHole",o.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",o.INTERN
AL_EXCEPTION="internalException"},"./src/events.js":function(t,e,r){"use
strict";r.r(e);e.default={MEDIA_ATTACHING:"hlsMediaAttaching",MEDIA_ATTACHED:"hlsMe
diaAttached",MEDIA_DETACHING:"hlsMediaDetaching",MEDIA_DETACHED:"hlsMediaDetached",
BUFFER_RESET:"hlsBufferReset",BUFFER_CODECS:"hlsBufferCodecs",BUFFER_CREATED:"hlsBu
fferCreated",BUFFER_APPENDING:"hlsBufferAppending",BUFFER_APPENDED:"hlsBufferAppend
ed",BUFFER_EOS:"hlsBufferEos",BUFFER_FLUSHING:"hlsBufferFlushing",BUFFER_FLUSHED:"h
lsBufferFlushed",MANIFEST_LOADING:"hlsManifestLoading",MANIFEST_LOADED:"hlsManifest
Loaded",MANIFEST_PARSED:"hlsManifestParsed",LEVEL_SWITCHING:"hlsLevelSwitching",LEV
EL_SWITCHED:"hlsLevelSwitched",LEVEL_LOADING:"hlsLevelLoading",LEVEL_LOADED:"hlsLev
elLoaded",LEVEL_UPDATED:"hlsLevelUpdated",LEVEL_PTS_UPDATED:"hlsLevelPtsUpdated",AU
DIO_TRACKS_UPDATED:"hlsAudioTracksUpdated",AUDIO_TRACK_SWITCHING:"hlsAudioTrackSwit
ching",AUDIO_TRACK_SWITCHED:"hlsAudioTrackSwitched",AUDIO_TRACK_LOADING:"hlsAudioTr
ackLoading",AUDIO_TRACK_LOADED:"hlsAudioTrackLoaded",SUBTITLE_TRACKS_UPDATED:"hlsSu
btitleTracksUpdated",SUBTITLE_TRACK_SWITCH:"hlsSubtitleTrackSwitch",SUBTITLE_TRACK_
LOADING:"hlsSubtitleTrackLoading",SUBTITLE_TRACK_LOADED:"hlsSubtitleTrackLoaded",SU
BTITLE_FRAG_PROCESSED:"hlsSubtitleFragProcessed",INIT_PTS_FOUND:"hlsInitPtsFound",F
RAG_LOADING:"hlsFragLoading",FRAG_LOAD_PROGRESS:"hlsFragLoadProgress",FRAG_LOAD_EME
RGENCY_ABORTED:"hlsFragLoadEmergencyAborted",FRAG_LOADED:"hlsFragLoaded",FRAG_DECRY
PTED:"hlsFragDecrypted",FRAG_PARSING_INIT_SEGMENT:"hlsFragParsingInitSegment",FRAG_
PARSING_USERDATA:"hlsFragParsingUserdata",FRAG_PARSING_METADATA:"hlsFragParsingMeta
data",FRAG_PARSING_DATA:"hlsFragParsingData",FRAG_PARSED:"hlsFragParsed",FRAG_BUFFE
RED:"hlsFragBuffered",FRAG_CHANGED:"hlsFragChanged",FPS_DROP:"hlsFpsDrop",FPS_DROP_
LEVEL_CAPPING:"hlsFpsDropLevelCapping",ERROR:"hlsError",DESTROYING:"hlsDestroying",
KEY_LOADING:"hlsKeyLoading",KEY_LOADED:"hlsKeyLoaded",STREAM_STATE_TRANSITION:"hlsS
treamStateTransition",LIVE_BACK_BUFFER_REACHED:"hlsLiveBackBufferReached"}},"./
src/hls.ts":function(t,e,r){"use strict";r.r(e);var
i={};r.r(i),r.d(i,"newCue",function(){return ve});var
m,n,a,o,s=r("./node_modules/url-toolkit/src/url-toolkit.js"),f=r("./src/
errors.ts"),I=r("./src/polyfills/number-isFinite.js"),x=r("./src/
events.js"),M=r("./src/utils/logger.js"),l={hlsEventGeneric:!
0,hlsHandlerDestroying:!0,hlsHandlerDestroyed:!0},u=function(){function t(t)
{this.hls=void 0,this.handledEvents=void 0,this.useGenericHandler=void
0,this.hls=t,this.onEvent=this.onEvent.bind(this);for(var e=arguments.length,r=new
Array(1<e?e-1:0),i=1;i<e;i++)r[i-
1]=arguments[i];this.handledEvents=r,this.useGenericHandler=!
0,this.registerListeners()}var e=t.prototype;return e.destroy=function()
{this.onHandlerDestroying(),this.unregisterListeners(),this.onHandlerDestroyed()},e
.onHandlerDestroying=function(){},e.onHandlerDestroyed=function()
{},e.isEventHandler=function(){return"object"==typeof
this.handledEvents&&this.handledEvents.length&&"function"==typeof
this.onEvent},e.registerListeners=function()
{this.isEventHandler()&&this.handledEvents.forEach(function(t){if(l[t])throw new
Error("Forbidden event-name:
"+t);this.hls.on(t,this.onEvent)},this)},e.unregisterListeners=function()
{this.isEventHandler()&&this.handledEvents.forEach(function(t)
{this.hls.off(t,this.onEvent)},this)},e.onEvent=function(t,e)
{this.onEventGeneric(t,e)},e.onEventGeneric=function(e,t){try{(function(t,e){var
r="on"+t.replace("hls","");if("function"!=typeof this[r])throw new Error("Event
"+t+" has no generic handler in this "+this.constructor.name+" class (tried
"+r+")");return this[r].bind(this,e)}).call(this,e,t).call()}catch(t)
{M.logger.error("An internal
error happened while handling event "+e+'. Error message: "'+t.message+'". Here is
a stacktrace:',t),this.hls.trigger(x.default.ERROR,
{type:f.ErrorTypes.OTHER_ERROR,details:f.ErrorDetails.INTERNAL_EXCEPTION,fatal:!
1,event:e,err:t})}},t}();(n=m||
(m={})).MANIFEST="manifest",n.LEVEL="level",n.AUDIO_TRACK="audioTrack",n.SUBTITLE_T
RACK="subtitleTrack",(o=a||
(a={})).MAIN="main",o.AUDIO="audio",o.SUBTITLE="subtitle";var
d=r("./src/demux/mp4demuxer.js");function c(t,e){for(var r=0;r<e.length;r++){var
i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!
0),Object.defineProperty(t,i.key,i)}}var h,p,R=function(){function t(t,e)
{this._uri=null,this.baseuri=void 0,this.reluri=void
0,this.method=null,this.key=null,this.iv=null,this.baseuri=t,this.reluri=e}return
function(t,e,r){e&&c(t.prototype,e),r&&c(t,r)}(t,[{key:"uri",get:function(){return!
this._uri&&this.reluri&&(this._uri=Object(s.buildAbsoluteURL)
(this.baseuri,this.reluri,{alwaysNormalize:!0})),this._uri}}]),t}();function g(t,e)
{for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!
1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}
(p=h||(h={})).AUDIO="audio",p.VIDEO="video";var C=function(){function t(){var
t;this._url=null,this._byteRange=null,this._decryptdata=null,this._elementaryStream
s=((t={})[h.AUDIO]=!1,t[h.VIDEO]=!
1,t),this.deltaPTS=0,this.rawProgramDateTime=null,this.programDateTime=null,this.ti
tle=null,this.tagList=[],this.cc=void 0,this.type=void 0,this.relurl=void
0,this.baseurl=void 0,this.duration=void 0,this.start=void
0,this.sn=0,this.urlId=0,this.level=0,this.levelkey=void 0,this.loader=void 0}var
e=t.prototype;return e.setByteRange=function(t,e){var
r=t.split("@",2),i=[];1===r.length?i[0]=e?
e.byteRangeEndOffset:0:i[0]=parseInt(r[1]),i[1]=parseInt(r[0])
+i[0],this._byteRange=i},e.addElementaryStream=function(t)
{this._elementaryStreams[t]=!0},e.hasElementaryStream=function(t){return!
0===this._elementaryStreams[t]},e.createInitializationVector=function(t){for(var
e=new Uint8Array(16),r=12;r<16;r++)e[r]=t>>8*(15-r)&255;return
e},e.setDecryptDataFromLevelKey=function(t,e){var r=t;return t&&t.method&&t.uri&&!
t.iv&&((r=new
R(t.baseuri,t.reluri)).method=t.method,r.iv=this.createInitializationVector(e)),r},
function(t,e,r){e&&g(t.prototype,e),r&&g(t,r)}(t,[{key:"url",get:function(){return!
this._url&&this.relurl&&(this._url=Object(s.buildAbsoluteURL)
(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url},set:function(t)
{this._url=t}},{key:"byteRange",get:function(){return this._byteRange?
this._byteRange:[]}},{key:"byteRangeStartOffset",get:function(){return
this.byteRange[0]}},{key:"byteRangeEndOffset",get:function(){return
this.byteRange[1]}},{key:"decryptdata",get:function(){if(!this.levelkey&&!
this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var
t=this.sn;"number"!=typeof t&&(this.levelkey&&"AES-128"===this.levelkey.method&&!
this.levelkey.iv&&M.logger.warn('missing IV for initialization segment with
method="'+this.levelkey.method+'" - compliance
issue'),t=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,t)}ret
urn this._decryptdata}},{key:"endProgramDateTime",get:function()
{if(null===this.programDateTime)return null;if(!Object(I.isFiniteNumber)
(this.programDateTime))return null;var t=Object(I.isFiniteNumber)(this.duration)?
this.duration:0;return this.programDateTime+1e3*t}},{key:"encrypted",get:function()
{return!(!this.decryptdata||null===this.decryptdata.uri||null!
==this.decryptdata.key)}}]),t}();function v(t,e){for(var r=0;r<e.length;r++){var
i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!
0),Object.defineProperty(t,i.key,i)}}var w=function(){function t(t)
{this.endCC=0,this.endSN=0,this.fragments=[],this.initSegment=null,this.live=!
0,this.needSidxRanges=!
1,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,thi
s.totalduration=0,this.type=null,this.url=t,this.version=null}return
function(t,e,r){e&&v(t.prototype,e),r&&v(t,r)}(t,
[{key:"hasProgramDateTime",get:function(){return!(!this.fragments[0]||!
Object(I.isFiniteNumber)(this.fragments[0].programDateTime))}}]),t}(),y=/^(\d+)x(\
d+)$/,A=/\s*(.+?)\s*=((?:\".*?\")|.*?)(?:,|$)/g,O=function(){function r(t){for(var
e in"string"==typeof
t&&(t=r.parseAttrList(t)),t)t.hasOwnProperty(e)&&(this[e]=t[e])}var
t=r.prototype;return t.decimalInteger=function(t){var e=parseInt(this[t],10);return
e>Number.MAX_SAFE_INTEGER?1/0:e},t.hexadecimalInteger=function(t){if(this[t]){var
e=(this[t]||"0x").slice(2);e=(1&e.length?"0":"")+e;for(var r=new
Uint8Array(e.length/2),i=0;i<e.length/2;i+
+)r[i]=parseInt(e.slice(2*i,2*i+2),16);return r}return
null},t.hexadecimalIntegerAsNumber=function(t){var e=parseInt(this[t],16);return
e>Number.MAX_SAFE_INTEGER?1/0:e},t.decimalFloatingPoint=function(t){return
parseFloat(this[t])},t.enumeratedString=function(t){return
this[t]},t.decimalResolution=function(t){var e=y.exec(this[t]);if(null!
==e)return{width:parseInt(e[1],10),height:parseInt(e[2],10)}},r.parseAttrList=funct
ion(t){var e,r={};for(A.lastIndex=0;null!==(e=A.exec(t));){var
i=e[2];0===i.indexOf('"')&&i.lastIndexOf('"')===i.length-1&&(i=i.slice(1,-
1)),r[e[1]]=i}return r},r}(),_={audio:{a3ds:!0,"ac-3":!0,"ac-4":!0,alac:!0,alaw:!
0,dra1:!0,"dts+":!0,"dts-":!0,dtsc:!0,dtse:!0,dtsh:!0,"ec-3":!0,enca:!0,g719:!
0,g726:!0,m4ae:!0,mha1:!0,mha2:!0,mhm1:!0,mhm2:!0,mlpa:!0,mp4a:!0,"raw ":!0,Opus:!
0,samr:!0,sawb:!0,sawp:!0,sevc:!0,sqcp:!0,ssmv:!0,twos:!0,ulaw:!0},video:{avc1:!
0,avc2:!0,avc3:!0,avc4:!0,avcp:!0,drac:!0,dvav:!0,dvhe:!0,encv:!0,hev1:!0,hvc1:!
0,mjp2:!0,mp4v:!0,mvc1:!0,mvc2:!0,mvc3:!0,mvc4:!0,resv:!0,rv60:!0,s263:!0,svc1:!
0,svc2:!0,"vc-1":!0,vp08:!0,vp09:!0}};function b(t,e){return
MediaSource.isTypeSupported((e||"video")+'/mp4;codecs="'+t+'"')}var E=/#EXT-X-
STREAM-INF:([^\n\r]*)[\r\n]+([^\r\n]+)/g,T=/#EXT-X-MEDIA:(.*)/g,P=new
RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/|(?!#)([\S+ ?]
+)/.source,/|#EXT-X-BYTERANGE:*(.+)/.source,/|#EXT-X-PROGRAM-DATE-TIME:(.
+)/.source,/|#.*/.source].join(""),"g"),D=/(?:(?:#(EXTM3U))|(?:#EXT-X-(PLAYLIST-
TYPE):(.+))|(?:#EXT-X-(MEDIA-SEQUENCE): *(\d+))|(?:#EXT-X-(TARGETDURATION): *(\
d+))|(?:#EXT-X-(KEY):(.+))|(?:#EXT-X-(START):(.+))|(?:#EXT-X-(ENDLIST))|(?:#EXT-X-
(DISCONTINUITY-SEQ)UENCE:(\d+))|(?:#EXT-X-(DIS)CONTINUITY))|(?:#EXT-X-(VERSION):(\
d+))|(?:#EXT-X-(MAP):(.+))|(?:(#)([^:]*):(.*))|(?:(#)(.*))(?:.*)\r?\n?/,N=/\.(mp4|
m4s|m4v|m4a)$/i,S=function(){function d(){}return d.findGroup=function(t,e){for(var
r=0;r<t.length;r++){var i=t[r];if(i.id===e)return
i}},d.convertAVC1ToAVCOTI=function(t){var e,r=t.split(".");return 2<r.length?
(e=r.shift()
+".",e+=parseInt(r.shift()).toString(16),e+=("000"+parseInt(r.shift()).toString(16)
).substr(-4)):e=t,e},d.resolve=function(t,e){return s.buildAbsoluteURL(e,t,
{alwaysNormalize:!0})},d.parseMasterPlaylist=function(t,e){var r,i=[];function
n(i,n){["video","audio"].forEach(function(e){var r=i.filter(function(t){return
function(t,e){var r=_[e];return!!r&&!0===r[t.slice(0,4)]}(t,e)});if(r.length){var
t=r.filter(function(t){return 0===t.lastIndexOf("avc1",0)||
0===t.lastIndexOf("mp4a",0)});n[e+"Codec"]=0<t.length?
t[0]:r[0],i=i.filter(function(t){return-
1===r.indexOf(t)})}}),n.unknownCodecs=i}for(E.lastIndex=0;null!=(r=E.exec(t));){var
a={},o=a.attrs=new O(r[1]);a.url=d.resolve(r[2],e);var
s=o.decimalResolution("RESOLUTION");s&&(a.width=s.width,a.height=s.height),a.bitrat
e=o.decimalInteger("AVERAGE-BANDWIDTH")||
o.decimalInteger("BANDWIDTH"),a.name=o.NAME,n([].concat((o.CODECS||"").split(/[ ,]
+/)),a),a.videoCodec&&-1!
==a.videoCodec.indexOf("avc1")&&(a.videoCodec=d.convertAVC1ToAVCOTI(a.videoCodec)),
i.push(a)}return i},d.parseMasterPlaylistMedia=function(t,e,r,i){var n;void
0===i&&(i=[]);var a=[],o=0;for(T.lastIndex=0;null!==(n=T.exec(t));){var s=new
O(n[1]);if(s.TYPE===r){var l={id:o++,groupId:s["GROUP-ID"],name:s.NAME||
s.LANGUAGE,type:r,default:"YES"===s.DEFAULT,autoselect:"YES"===s.AUTOSELECT,forced:
"YES"===s.FORCED,lang:s.LANGUAGE};if(s.URI&&(l.url=d.resolve(s.URI,e)),i.length)
{var u=d.findGroup(i,l.groupId);l.audioCodec=u?u.codec:i[0].codec}a.push(l)}}return
a},d.parseLevelPlaylist=function(t,e,r,i,n){var a,o,s,l=0,u=0,d=new
w(e),c=0,f=null,h=new C,p=null;for(P.lastIndex=0;null!==(a=P.exec(t));){var
g=a[1];if(g){h.duration=parseFloat(g);var m=(" "+a[2]).slice(1);h.title=m||
null,h.tagList.push(m?["INF",g,m]:["INF",g])}else if(a[3])
{if(Object(I.isFiniteNumber)(h.duration)){var v=l+
+;h.type=i,h.start=u,s&&(h.levelkey=s),h.sn=v,h.level=r,h.cc=c,h.urlId=n,h.baseurl=
e,h.relurl=(" "+a[3]).slice(1),F(h,f),d.fragments.push(h),u+=(f=h).duration,h=new
C}}else if(a[4]){var y=(" "+a[4]).slice(1);f?
h.setByteRange(y,f):h.setByteRange(y)}else if(a[5])h.rawProgramDateTime=("
"+a[5]).slice(1),h.tagList.push(["PROGRAM-DATE-
TIME",h.rawProgramDateTime]),null===p&&(p=d.fragments.length);else{if(!
(a=a[0].match(D))){M.logger.warn("No matches on slow regex match for level
playlist!");continue}for(o=1;o<a.length&&void 0===a[o];o++);var A=("
"+a[o+1]).slice(1),_=(" "+a[o+2]).slice(1);switch(a[o]){case"#":h.tagList.push(_?
[A,_]:[A]);break;case"PLAYLIST-TYPE":d.type=A.toUpperCase();break;case"MEDIA-
SEQUENCE":l=d.startSN=parseInt(A);break;case"TARGETDURATION":d.targetduration=parse
Float(A);break;case"VERSION":d.version=parseInt(A);break;case"EXTM3U":break;case"EN
DLIST":d.live=!1;break;case"DIS":c+
+,h.tagList.push(["DIS"]);break;case"DISCONTINUITY-
SEQ":c=parseInt(A);break;case"KEY":var b=new
O(A),E=b.enumeratedString("METHOD"),T=b.URI,S=b.hexadecimalInteger("IV");E&&(s=new
R(e,T),T&&0<=["AES-128","SAMPLE-AES","SAMPLE-AES-
CENC"].indexOf(E)&&(s.method=E,s.key=null,s.iv=S));break;case"START":var k=new
O(A).decimalFloatingPoint("TIME-OFFSET");Object(I.isFiniteNumber)
(k)&&(d.startTimeOffset=k);break;case"MAP":var L=new
O(A);h.relurl=L.URI,L.BYTERANGE&&h.setByteRange(L.BYTERANGE),h.baseurl=e,h.level=r,
h.type=i,h.sn="initSegment",d.initSegment=h,(h=new

C).rawProgramDateTime=d.initSegment.rawProgramDateTime;break;default:M.logger.warn(
"line parsed but not handled: "+a)}}}return(h=f)&&!h.relurl&&(d.fragments.pop(),u-
=h.duration),d.totalduration=u,d.averagetargetduration=u/
d.fragments.length,d.endSN=l-1,d.startCC=d.fragments[0]?
d.fragments[0].cc:0,d.endCC=c,!
d.initSegment&&d.fragments.length&&d.fragments.every(function(t){return
N.test(t.relurl)})&&(M.logger.warn("MP4 fragments found but no init segment
(probably no MAP, incomplete M3U8), trying to fetch SIDX"),(h=new
C).relurl=d.fragments[0].relurl,h.baseurl=e,h.level=r,h.type=i,h.sn="initSegment",d
.initSegment=h,d.needSidxRanges=!0),p&&function(t,e){for(var r=t[e],i=e-1;0<=i;i--)
{var n=t[i];n.programDateTime=r.programDateTime-1e3*n.duration,r=n}}
(d.fragments,p),d},d}();function F(t,e){t.rawProgramDateTime?
t.programDateTime=Date.parse(t.rawProgramDateTime):e&&e.programDateTime&&(t.program
DateTime=e.endProgramDateTime),Object(I.isFiniteNumber)(t.programDateTime)||
(t.programDateTime=null,t.rawProgramDateTime=null)}var
k=window.performance,L=function(r){function g(t){var
e;return(e=r.call(this,t,x.default.MANIFEST_LOADING,x.default.LEVEL_LOADING,x.defau
lt.AUDIO_TRACK_LOADING,x.default.SUBTITLE_TRACK_LOADING)||this).loaders={},e}!
function(t,e){t.prototype=Object.create(e.prototype),
(t.prototype.constructor=t).__proto__=e}(g,r),g.canHaveQualityLevels=function(t)
{return t!==m.AUDIO_TRACK&&t!
==m.SUBTITLE_TRACK},g.mapContextToLevelType=function(t){switch(t.type){case
m.AUDIO_TRACK:return a.AUDIO;case m.SUBTITLE_TRACK:return a.SUBTITLE;default:return
a.MAIN}},g.getResponseUrl=function(t,e){var r=t.url;return void 0!==r&&0!
==r.indexOf("data:")||(r=e.url),r};var t=g.prototype;return
t.createInternalLoader=function(t){var
e=this.hls.config,r=e.pLoader,i=e.loader,n=new(r||i)(e);return
t.loader=n,this.loaders[t.type]=n},t.getInternalLoader=function(t){return
this.loaders[t.type]},t.resetInternalLoader=function(t){this.loaders[t]&&delete
this.loaders[t]},t.destroyInternalLoaders=function(){for(var t in this.loaders){var
e=this.loaders[t];e&&e.destroy(),this.resetInternalLoader(t)}},t.destroy=function()
{this.destroyInternalLoaders(),r.prototype.destroy.call(this)},t.onManifestLoading=
function(t)
{this.load({url:t.url,type:m.MANIFEST,level:0,id:null,responseType:"text"})},t.onLe
velLoading=function(t)
{this.load({url:t.url,type:m.LEVEL,level:t.level,id:t.id,responseType:"text"})},t.o
nAudioTrackLoading=function(t)
{this.load({url:t.url,type:m.AUDIO_TRACK,level:null,id:t.id,responseType:"text"})},
t.onSubtitleTrackLoading=function(t)
{this.load({url:t.url,type:m.SUBTITLE_TRACK,level:null,id:t.id,responseType:"text"}
)},t.load=function(t){var e=this.hls.config;M.logger.debug("Loading playlist of
type "+t.type+", level: "+t.level+", id: "+t.id);var
r,i,n,a,o=this.getInternalLoader(t);if(o){var
s=o.context;if(s&&s.url===t.url)return M.logger.trace("playlist request ongoing"),!
1;M.logger.warn("aborting previous loader for type:
"+t.type),o.abort()}switch(t.type){case
m.MANIFEST:r=e.manifestLoadingMaxRetry,i=e.manifestLoadingTimeOut,n=e.manifestLoadi
ngRetryDelay,a=e.manifestLoadingMaxRetryTimeout;break;case
m.LEVEL:n=a=r=0,i=e.levelLoadingTimeOut;break;default:r=e.levelLoadingMaxRetry,i=e.
levelLoadingTimeOut,n=e.levelLoadingRetryDelay,a=e.levelLoadingMaxRetryTimeout}o=th
is.createInternalLoader(t);var
l={timeout:i,maxRetry:r,retryDelay:n,maxRetryDelay:a},u={onSuccess:this.loadsuccess
.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)
};return M.logger.debug("Calling internal loader delegate for URL:
"+t.url),o.load(t,l,u),!0},t.loadsuccess=function(t,e,r,i){if(void
0===i&&(i=null),r.isSidxRequest)return this._handleSidxRequest(t,r),void
this._handlePlaylistLoaded(t,e,r,i);if(this.resetInternalLoader(r.type),"string"!
=typeof t.data)throw new Error('expected responseType of "text" for
PlaylistLoader');var n=t.data;e.tload=k.now(),0===n.indexOf("#EXTM3U")?
0<n.indexOf("#EXTINF:")||0<n.indexOf("#EXT-X-TARGETDURATION:")?
this._handleTrackOrLevelPlaylist(t,e,r,i):this._handleMasterPlaylist(t,e,r,i):this.
_handleManifestParsingError(t,r,"no EXTM3U
delimiter",i)},t.loaderror=function(t,e,r){void
0===r&&(r=null),this._handleNetworkError(e,r,!1,t)},t.loadtimeout=function(t,e,r)
{void 0===r&&(r=null),this._handleNetworkError(e,r,!
0)},t._handleMasterPlaylist=function(t,e,r,i){var
n=this.hls,a=t.data,o=g.getResponseUrl(t,r),s=S.parseMasterPlaylist(a,o);if(s.lengt
h){var l=s.map(function(t)
{return{id:t.attrs.AUDIO,codec:t.audioCodec}}),u=S.parseMasterPlaylistMedia(a,o,"AU
DIO",l),d=S.parseMasterPlaylistMedia(a,o,"SUBTITLES");if(u.length){var c=!
1;u.forEach(function(t){t.url||(c=!0)}),!1===c&&s[0].audioCodec&&!
s[0].attrs.AUDIO&&(M.logger.log("audio codec signaled in quality level, but no
embedded audio track signaled, create
one"),u.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-
1}))}n.trigger(x.default.MANIFEST_LOADED,
{levels:s,audioTracks:u,subtitles:d,url:o,stats:e,networkDetails:i})}else
this._handleManifestParsingError(t,r,"no level found in
manifest",i)},t._handleTrackOrLevelPlaylist=function(t,e,r,i){var
n=this.hls,a=r.id,o=r.level,s=r.type,l=g.getResponseUrl(t,r),u=Object(I.isFiniteNum
ber)(a)?a:0,d=Object(I.isFiniteNumber)(o)?
o:u,c=g.mapContextToLevelType(r),f=S.parseLevelPlaylist(t.data,l,d,c,u);if(f.tload=
e.tload,s===m.MANIFEST){var
h={url:l,details:f};n.trigger(x.default.MANIFEST_LOADED,{levels:[h],audioTracks:
[],url:l,stats:e,networkDetails:i})}if(e.tparsed=k.now(),f.needSidxRanges){var
p=f.initSegment.url;this.load({url:p,isSidxRequest:!
0,type:s,level:o,levelDetails:f,id:a,rangeStart:0,rangeEnd:2048,responseType:"array
buffer"})}else
r.levelDetails=f,this._handlePlaylistLoaded(t,e,r,i)},t._handleSidxRequest=function
(t,e){if("string"==typeof t.data)throw new Error("sidx request must be made with
responseType of array buffer");var r=d.default.parseSegmentIndex(new
Uint8Array(t.data));if(r){var
i=r.references,n=e.levelDetails;i.forEach(function(t,e){var r=t.info;if(n){var
i=n.fragments[e];0===i.byteRange.length&&i.setByteRange(String(1+r.end-r.start)
+"@"+String(r.start))}}),n&&n.initSegment.setByteRange(String(r.moovEndOffset)
+"@0")}},t._handleManifestParsingError=function(t,e,r,i)
{this.hls.trigger(x.default.ERROR,
{type:f.ErrorTypes.NETWORK_ERROR,details:f.ErrorDetails.MANIFEST_PARSING_ERROR,fata
l:!0,url:t.url,reason:r,networkDetails:i})},t._handleNetworkError=function(t,e,r,i)
{var n,a;void 0===r&&(r=!1),void 0===i&&(i=null),M.logger.info("A network error
occured while loading a "+t.type+"-type playlist");var
o=this.getInternalLoader(t);switch(t.type){case m.MANIFEST:n=r?
f.ErrorDetails.MANIFEST_LOAD_TIMEOUT:f.ErrorDetails.MANIFEST_LOAD_ERROR,a=!
0;break;case m.LEVEL:n=r?
f.ErrorDetails.LEVEL_LOAD_TIMEOUT:f.ErrorDetails.LEVEL_LOAD_ERROR,a=!1;break;case
m.AUDIO_TRACK:n=r?
f.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:f.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,a=!
1;break;default:a=!1}o&&(o.abort(),this.resetInternalLoader(t.type));var
s={type:f.ErrorTypes.NETWORK_ERROR,details:n,fatal:a,url:t.url,loader:o,context:t,n
etworkDetails:e};i&&(s.response=i),this.hls.trigger(x.default.ERROR,s)},t._handlePl
aylistLoaded=function(t,e,r,i){var
n=r.type,a=r.level,o=r.id,s=r.levelDetails;if(s&&s.targetduration)if(g.canHaveQuali
tyLevels(r.type))this.hls.trigger(x.default.LEVEL_LOADED,{details:s,level:a||
0,id:o||0,stats:e,networkDetails:i});else switch(n){case
m.AUDIO_TRACK:this.hls.trigger(x.default.AUDIO_TRACK_LOADED,
{details:s,id:o,stats:e,networkDetails:i});break;case
m.SUBTITLE_TRACK:this.hls.trigger(x.default.SUBTITLE_TRACK_LOADED,
{details:s,id:o,stats:e,networkDetails:i})}else
this._handleManifestParsingError(t,r,"invalid target duration",i)},g}(u);var
B=function(i){function t(t){var e;return(e=i.call(this,t,x.default.FRAG_LOADING)||
this).loaders={},e}!function(t,e){t.prototype=Object.create(e.prototype),
(t.prototype.constructor=t).__proto__=e}(t,i);var e=t.prototype;return
e.destroy=function(){var t=this.loaders;for(var e in t){var
r=t[e];r&&r.destroy()}this.loaders={},i.prototype.destroy.call(this)},e.onFragLoadi
ng=function(t){var
e=t.frag,r=e.type,i=this.loaders,n=this.hls.config,a=n.fLoader,o=n.loader;e.loaded=
0;var s,l,u,d=i[r];d&&(M.logger.warn("abort previous fragment loader for type:
"+r),d.abort()),d=i[r]=e.loader=n.fLoader?new a(n):new
o(n),s={url:e.url,frag:e,responseType:"arraybuffer",progressData:!1};var
c=e.byteRangeStartOffset,f=e.byteRangeEndOffset;Object(I.isFiniteNumber)
(c)&&Object(I.isFiniteNumber)
(f)&&(s.rangeStart=c,s.rangeEnd=f),l={timeout:n.fragLoadingTimeOut,maxRetry:0,retry
Delay:0,maxRetryDelay:n.fragLoadingMaxRetryTimeout},u={onSuccess:this.loadsuccess.b
ind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this),o
nProgress:this.loadprogress.bind(this)},d.load(s,l,u)},e.loadsuccess=function(t,e,r
,i){void 0===i&&(i=null);var n=t.data,a=r.frag;a.loader=void
0,this.loaders[a.type]=void 0,this.hls.trigger(x.default.FRAG_LOADED,
{payload:n,frag:a,stats:e,networkDetails:i})},e.loaderror=function(t,e,r){void
0===r&&(r=null);var i=e.frag,n=i.loader;n&&n.abort(),this.loaders[i.type]=void
0,this.hls.trigger(x.default.ERROR,
{type:f.ErrorTypes.NETWORK_ERROR,details:f.ErrorDetails.FRAG_LOAD_ERROR,fatal:!
1,frag:e.frag,response:t,networkDetails:r})},e.loadtimeout=function(t,e,r){void
0===r&&(r=null);var i=e.frag,n=i.loader;n&&n.abort(),this.loaders[i.type]=void
0,this.hls.trigger(x.default.ERROR,
{type:f.ErrorTypes.NETWORK_ERROR,details:f.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!
1,frag:e.frag,networkDetails:r})},e.loadprogress=function(t,e,r,i){void
0===i&&(i=null);var
n=e.frag;n.loaded=t.loaded,this.hls.trigger(x.default.FRAG_LOAD_PROGRESS,
{frag:n,stats:t,networkDetails:i})},t}(u);var U=function(r){function t(t){var
e;return(e=r.call(this,t,x.default.KEY_LOADING)||
this).loaders={},e.decryptkey=null,e.decrypturl=null,e}!function(t,e)
{t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}
(t,r);var
e=t.prototype;return e.destroy=function(){for(var t in this.loaders){var
e=this.loaders[t];e&&e.destroy()}this.loaders={},r.prototype.destroy.call(this)},e.
onKeyLoading=function(t){var e=t.frag,r=e.type,i=this.loaders[r];if(e.decryptdata)
{var n=e.decryptdata.uri;if(n!==this.decrypturl||null===this.decryptkey){var
a=this.hls.config;if(i&&(M.logger.warn("abort previous key loader for
type:"+r),i.abort()),!n)return void M.logger.warn("key uri is
falsy");e.loader=this.loaders[r]=new
a.loader(a),this.decrypturl=n,this.decryptkey=null;var
o={url:n,frag:e,responseType:"arraybuffer"},s={timeout:a.fragLoadingTimeOut,maxRetr
y:0,retryDelay:a.fragLoadingRetryDelay,maxRetryDelay:a.fragLoadingMaxRetryTimeout},
l={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeou
t:this.loadtimeout.bind(this)};e.loader.load(o,s,l)}else
this.decryptkey&&(e.decryptdata.key=this.decryptkey,this.hls.trigger(x.default.KEY_
LOADED,{frag:e}))}else M.logger.warn("Missing decryption data on fragment in
onKeyLoading")},e.loadsuccess=function(t,e,r){var i=r.frag;i.decryptdata?
(this.decryptkey=i.decryptdata.key=new Uint8Array(t.data),i.loader=void 0,delete
this.loaders[i.type],this.hls.trigger(x.default.KEY_LOADED,
{frag:i})):M.logger.error("after key load, decryptdata
unset")},e.loaderror=function(t,e){var r=e.frag,i=r.loader;i&&i.abort(),delete
this.loaders[r.type],this.hls.trigger(x.default.ERROR,
{type:f.ErrorTypes.NETWORK_ERROR,details:f.ErrorDetails.KEY_LOAD_ERROR,fatal:!
1,frag:r,response:t})},e.loadtimeout=function(t,e){var
r=e.frag,i=r.loader;i&&i.abort(),delete
this.loaders[r.type],this.hls.trigger(x.default.ERROR,
{type:f.ErrorTypes.NETWORK_ERROR,details:f.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!
1,frag:r})},t}(u);var j="NOT_LOADED",K="APPENDING",V="PARTIAL",G="OK",Y=function(r)
{function t(t){var
e;return(e=r.call(this,t,x.default.BUFFER_APPENDED,x.default.FRAG_BUFFERED,x.defaul
t.FRAG_LOADED)||
this).bufferPadding=.2,e.fragments=Object.create(null),e.timeRanges=Object.create(n
ull),e.config=t.config,e}!function(t,e){t.prototype=Object.create(e.prototype),
(t.prototype.constructor=t).__proto__=e}(t,r);var e=t.prototype;return
e.destroy=function()
{this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.config
=null,u.prototype.destroy.call(this),r.prototype.destroy.call(this)},e.getBufferedF
rag=function(i,n){var a=this.fragments,t=Object.keys(a).filter(function(t){var
e=a[t];if(e.body.type!==n)return!1;if(!e.buffered)return!1;var r=e.body;return
r.startPTS<=i&&i<=r.endPTS});if(0===t.length)return null;var e=t.pop();return
a[e].body},e.detectEvictedFragments=function(n,a){var
o,s,l=this;Object.keys(this.fragments).forEach(function(t){var
e=l.fragments[t];if(!0===e.buffered){var r=e.range[n];if(r){o=r.time;for(var
i=0;i<o.length;i++)if(s=o[i],!1===l.isTimeBuffered(s.startPTS,s.endPTS,a))
{l.removeFragment(e.body);break}}}})},e.detectPartialFragments=function(r){var
i=this,t=this.getFragmentKey(r),n=this.fragments[t];n&&(n.buffered=!
0,Object.keys(this.timeRanges).forEach(function(t){if(r.hasElementaryStream(t)){var
e=i.timeRanges[t];n.range[t]=i.getBufferedTimes(r.startPTS,r.endPTS,e)}}))},e.getBu
fferedTimes=function(t,e,r){for(var i,n,a=[],o=!1,s=0;s<r.length;s++)
{if(i=r.start(s)-this.bufferPadding,n=r.end(s)+this.bufferPadding,i<=t&&e<=n)
{a.push({startPTS:Math.max(t,r.start(s)),endPTS:Math.min(e,r.end(s))});break}if(t<n
&&i<e)a.push({startPTS:Math.max(t,r.start(s)),endPTS:Math.min(e,r.end(s))}),o=!
0;else if(e<=i)break}return{time:a,partial:o}},e.getFragmentKey=function(t){return
t.type+"_"+t.level+"_"+t.urlId+"_"+t.sn},e.getPartialFragment=function(r){var
i,n,a,o=this,s=null,l=0;return Object.keys(this.fragments).forEach(function(t){var
e=o.fragments[t];o.isPartial(e)&&(n=e.body.startPTS-
o.bufferPadding,a=e.body.endPTS+o.bufferPadding,n<=r&&r<=a&&(i=Math.min(r-n,a-
r),l<=i&&(s=e.body,l=i)))}),s},e.getState=function(t){var
e=this.getFragmentKey(t),r=this.fragments[e],i=j;return void 0!==r&&(i=r.buffered?!
0===this.isPartial(r)?V:G:K),i},e.isPartial=function(t){return!
0===t.buffered&&(void 0!==t.range.video&&!0===t.range.video.partial||void 0!
==t.range.audio&&!0===t.range.audio.partial)},e.isTimeBuffered=function(t,e,r)
{for(var i,n,a=0;a<r.length;a++){if(i=r.start(a)-this.bufferPadding,n=r.end(a)
+this.bufferPadding,i<=t&&e<=n)return!0;if(e<=i)return!1}return!
1},e.onFragLoaded=function(t){var e=t.frag;Object(I.isFiniteNumber)(e.sn)&&!
e.bitrateTest&&(this.fragments[this.getFragmentKey(e)]={body:e,range:Object.create(
null),buffered:!1})},e.onBufferAppended=function(t){var
r=this;this.timeRanges=t.timeRanges,Object.keys(this.timeRanges).forEach(function(t
){var
e=r.timeRanges[t];r.detectEvictedFragments(t,e)})},e.onFragBuffered=function(t)
{this.detectPartialFragments(t.frag)},e.hasFragment=function(t){var
e=this.getFragmentKey(t);return void 0!
==this.fragments[e]},e.removeFragment=function(t){var
e=this.getFragmentKey(t);delete this.fragments[e]},e.removeAllFragments=function()
{this.fragments=Object.create(null)},t}(u),H={search:function(t,e){for(var
r=0,i=t.length-1,n=null,a=null;r<=i;){var o=e(a=t[n=(r+i)/2|
0]);if(0<o)r=n+1;else{if(!(o<0))return a;i=n-1}}return null}},$=function(){function
t(){}return t.isBuffered=function(t,e){try{if(t)for(var
r=t.buffered,i=0;i<r.length;i++)if(e>=r.start(i)&&e<=r.end(i))return!0}catch(t)
{}return!1},t.bufferInfo=function(t,e,r){try{if(t){var
i,n=t.buffered,a=[];for(i=0;i<n.length;i+
+)a.push({start:n.start(i),end:n.end(i)});return this.bufferedInfo(a,e,r)}}catch(t)
{}return{len:0,start:e,end:e,nextStart:void 0}},t.bufferedInfo=function(t,e,r)
{t.sort(function(t,e){var r=t.start-e.start;return r||e.end-t.end});var
i=[];if(r)for(var n=0;n<t.length;n++){var a=i.length;if(a){var o=i[a-
1].end;t[n].start-o<r?t[n].end>o&&(i[a-1].end=t[n].end):i.push(t[n])}else
i.push(t[n])}else i=t;for(var s,l=0,u=e,d=e,c=0;c<i.length;c++){var
f=i[c].start,h=i[c].end;if(f<=e+r&&e<h)u=f,l=(d=h)-e;else if(e+r<f)
{s=f;break}}return{len:l,start:u,end:d,nextStart:s}},t}(),z=r("./node_modules/
eventemitter3/index.js"),W=r("./node_modules/webworkify-webpack/index.js"),q=r("./
src/demux/demuxer-inline.js");function X(){return window.MediaSource||
window.WebKitMediaSource}var Z=r("./src/utils/get-self-scope.js");var Q=function(t)
{function e(){return t.apply(this,arguments)||this}return function(t,e)
{t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}
(e,t),e.prototype.trigger=function(t){for(var e=arguments.length,r=new Array(1<e?e-
1:0),i=1;i<e;i++)r[i-1]=arguments[i];this.emit.apply(this,[t,t].concat(r))},e}
(z.EventEmitter),J=Object(Z.getSelfScope)(),tt=X()||{isTypeSupported:function()
{return!1}},et=function(){function t(r,t){var i=this;this.hls=r,this.id=t;function
e(t,e){(e=e||{}).frag=i.frag,e.id=i.id,r.trigger(t,e)}var n=this.observer=new
Q,a=r.config;n.on(x.default.FRAG_DECRYPTED,e),n.on(x.default.FRAG_PARSING_INIT_SEGM
ENT,e),n.on(x.default.FRAG_PARSING_DATA,e),n.on(x.default.FRAG_PARSED,e),n.on(x.def
ault.ERROR,e),n.on(x.default.FRAG_PARSING_METADATA,e),n.on(x.default.FRAG_PARSING_U
SERDATA,e),n.on(x.default.INIT_PTS_FOUND,e);var
o={mp4:tt.isTypeSupported("video/mp4"),mpeg:tt.isTypeSupported("audio/
mpeg"),mp3:tt.isTypeSupported('audio/mp4;
codecs="mp3"')},s=navigator.vendor;if(a.enableWorker&&"undefined"!=typeof Worker)
{var l;M.logger.log("demuxing in webworker");try{l=this.w=W("./src/demux/demuxer-
worker.js"),this.onwmsg=this.onWorkerMessage.bind(this),l.addEventListener("message
",this.onwmsg),l.onerror=function(t){r.trigger(x.default.ERROR,
{type:f.ErrorTypes.OTHER_ERROR,details:f.ErrorDetails.INTERNAL_EXCEPTION,fatal:!
0,event:"demuxerWorker",err:{message:t.message+"
("+t.filename+":"+t.lineno+")"}})},l.postMessage({cmd:"init",typeSupported:o,vendor
:s,id:t,config:JSON.stringify(a)})}catch(t){M.logger.warn("Error in
worker:",t),M.logger.error("Error while initializing DemuxerWorker, fallback on
DemuxerInline"),l&&J.URL.revokeObjectURL(l.objectURL),this.demuxer=new
q.default(n,o,a,s),this.w=void 0}}else this.demuxer=new q.default(n,o,a,s)}var
e=t.prototype;return e.destroy=function(){var
t=this.w;if(t)t.removeEventListener("message",this.onwmsg),t.terminate(),this.w=nul
l;else{var e=this.demuxer;e&&(e.destroy(),this.demuxer=null)}var
r=this.observer;r&&(r.removeAllListeners(),this.observer=null)},e.push=function(t,e
,r,i,n,a,o,s){var l=this.w,u=Object(I.isFiniteNumber)(n.startPTS)?
n.startPTS:n.start,d=n.decryptdata,c=this.frag,f=!(c&&n.cc===c.cc),h=!
(c&&n.level===c.level),p=c&&n.sn===c.sn+1,g=!
h&&p;if(f&&M.logger.log(this.id+":discontinuity
detected"),h&&M.logger.log(this.id+":switch
detected"),this.frag=n,l)l.postMessage({cmd:"demux",data:t,decryptdata:d,initSegmen
t:e,audioCodec:r,videoCodec:i,timeOffset:u,discontinuity:f,trackSwitch:h,contiguous
:g,duration:a,accurateTimeOffset:o,defaultInitPTS:s},t instanceof ArrayBuffer?[t]:
[]);else{var
m=this.demuxer;m&&m.push(t,d,e,r,i,u,f,h,g,a,o,s)}},e.onWorkerMessage=function(t)
{var e=t.data,r=this.hls;switch(e.event)
{case"init":J.URL.revokeObjectURL(this.w.objectURL);break;case
x.default.FRAG_PARSING_DATA:e.data.data1=new
Uint8Array(e.data1),e.data2&&(e.data.data2=new
Uint8Array(e.data2));default:e.data=e.data||
{},e.data.frag=this.frag,e.data.id=this.id,r.trigger(e.event,e.data)}},t}
();function rt(t,e,r){switch(e){case"audio":t.audioGroupIds||
(t.audioGroupIds=[]),t.audioGroupIds.push(r);break;case"text":t.textGroupIds||
(t.textGroupIds=[]),t.textGroupIds.push(r)}}function it(t,e,r){var
i=t[e],n=t[r],a=n.startPTS;Object(I.isFiniteNumber)(a)?e<r?(i.duration=a-
i.start,i.duration<0&&M.logger.warn("negative duration computed for frag
"+i.sn+",level "+i.level+", there should be some duration drift between playlist
and fragment!")):(n.duration=i.start-a,n.duration<0&&M.logger.warn("negative
duration computed for frag "+n.sn+",level "+n.level+", there should be some
duration drift between playlist and fragment!")):n.start=e<r?
i.start+i.duration:Math.max(i.start-n.duration,0)}function
nt(t,e,r,i,n,a){var o=r;if(Object(I.isFiniteNumber)(e.startPTS)){var
s=Math.abs(e.startPTS-r);Object(I.isFiniteNumber)(e.deltaPTS)?
e.deltaPTS=Math.max(s,e.deltaPTS):e.deltaPTS=s,o=Math.max(r,e.startPTS),r=Math.min(
r,e.startPTS),i=Math.max(i,e.endPTS),n=Math.min(n,e.startDTS),a=Math.max(a,e.endDTS
)}var l=r-
e.start;e.start=e.startPTS=r,e.maxStartPTS=o,e.endPTS=i,e.startDTS=n,e.endDTS=a,e.d
uration=i-r;var u,d,c,f=e.sn;if(!t||f<t.startSN||f>t.endSN)return 0;for(u=f-
t.startSN,(d=t.fragments)[u]=e,c=u;0<c;c--)it(d,c,c-1);for(c=u;c<d.length-1;c+
+)it(d,c,c+1);return t.PTSKnown=!0,l}function at(t,r)
{r.initSegment&&t.initSegment&&(r.initSegment=t.initSegment);var
i,n=0;if(ot(t,r,function(t,e){n=t.cc-e.cc,Object(I.isFiniteNumber)
(t.startPTS)&&(e.start=e.startPTS=t.startPTS,e.endPTS=t.endPTS,e.duration=t.duratio
n,e.backtracked=t.backtracked,e.dropped=t.dropped,i=e),r.PTSKnown=!0}),r.PTSKnown)
{if(n){M.logger.log("discontinuity sliding from playlist, take drift into
account");for(var e=r.fragments,a=0;a<e.length;a++)e[a].cc+=n}i?
nt(r,i,i.startPTS,i.endPTS,i.startDTS,i.endDTS):function(t,e){var r=e.startSN-
t.startSN,i=t.fragments,n=e.fragments;if(r<0||r>i.length)return;for(var
a=0;a<n.length;a++)n[a].start+=i[r].start}(t,r),r.PTSKnown=t.PTSKnown}}function
ot(t,e,r){if(t&&e)for(var i=Math.max(t.startSN,e.startSN)-
e.startSN,n=Math.min(t.endSN,e.endSN)-e.startSN,a=e.startSN-t.startSN,o=i;o<=n;o++)
{var s=t.fragments[a+o],l=e.fragments[o];if(!s||!l)break;r(s,l,o)}}function
st(t,e,r){var i=1e3*(e.averagetargetduration?
e.averagetargetduration:e.targetduration),n=i/2;return
t&&e.endSN===t.endSN&&(i=n),r&&(i=Math.max(n,i-(window.performance.now()-
r))),Math.round(i)}var lt={toString:function(t){for(var e="",r=t.length,i=0;i<r;i+
+)e+="["+t.start(i).toFixed(3)+","+t.end(i).toFixed(3)+"]";return e}};function
ut(r,t){t.fragments.forEach(function(t){if(t){var
e=t.start+r;t.start=t.startPTS=e,t.endPTS=e+t.duration}}),t.PTSKnown=!0}function
dt(t,e,r){!function(t,e,r){if(function(t,e,r){var i=!1;return
e&&e.details&&r&&(r.endCC>r.startCC||t&&t.cc<r.startCC)&&(i=!0),i}(t,r,e)){var
i=function(t,e){var r=t.fragments,i=e.fragments;if(i.length&&r.length){var
n=function(t,e){for(var r=null,i=0;i<t.length;i+=1){var n=t[i];if(n&&n.cc===e)
{r=n;break}}return r}(r,i[0].cc);if(n&&(!n||n.startPTS))return n;M.logger.log("No
frag in previous level to align on")}else M.logger.log("No fragments to align")}
(r.details,e);i&&(M.logger.log("Adjusting PTS using last level due to CC increase
within current level"),ut(i.start,e))}}(t,r,e),!r.PTSKnown&&e&&function(t,e)
{if(e&&e.fragments.length){if(!t.hasProgramDateTime||!
e.hasProgramDateTime)return;var
r=e.fragments[0].programDateTime,i=(t.fragments[0].programDateTime-r)/
1e3+e.fragments[0].start;Object(I.isFiniteNumber)(i)&&(M.logger.log("adjusting PTS
using programDateTime delta, sliding:"+i.toFixed(3)),ut(i,t))}}
(r,e.details)}function ct(t,e,r){if(null===e||!Array.isArray(t)||!t.length||!
Object(I.isFiniteNumber)(e))return null;var i,n,a,o,s;if(e<(t[0].programDateTime||
0))return null;if((t[t.length-1].endProgramDateTime||0)<=e)return null;r=r||
0;for(var l=0;l<t.length;++l){var u=t[l];if(i=e,n=r,a=u,void
0,o=1e3*Math.min(n,a.duration+(a.deltaPTS?a.deltaPTS:0)),s=a.endProgramDateTime||
0,i<s-o)return u}return null}function ft(t,e,r,i){void 0===r&&(r=0),void
0===i&&(i=0);var n=t?e[t.sn-e[0].sn+1]:null;return n&&!ht(r,i,n)?
n:H.search(e,ht.bind(null,r,i))}function ht(t,e,r){void 0===t&&(t=0),void
0===e&&(e=0);var i=Math.min(e,r.duration+(r.deltaPTS?r.deltaPTS:0));return
r.start+r.duration-i<=t?1:r.start-i>t&&r.start?-1:0}var pt=function(){function
t(t,e,r,i)
{this.config=t,this.media=e,this.fragmentTracker=r,this.hls=i,this.nudgeRetry=0,thi
s.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1}var
e=t.prototype;return e.poll=function(t){var
e=this.config,r=this.media,i=this.stalled,n=r.currentTime,a=r.seeking,o=this.seekin
g&&!a,s=!this.seeking&&a;if(this.seeking=a,n===t){if((s||o)&&(this.stalled=null),!
r.paused&&!r.ended&&0!==r.playbackRate&&r.buffered.length){var
l=$.bufferInfo(r,n,0),u=0<l.len,d=l.nextStart||0;if(u||d){if(a){if(2<l.len||(!d||
2<d-n))return;this.moved=!1}if(!this.moved&&this.stalled){var
c=Math.max(d,l.start||0)-n;if(0<c&&c<=2)return void
this._trySkipBufferHole(null)}var f=self.performance.now();if(null!==i){var h=f-i;!
a&&250<=h&&this._reportStall(l.len);var
p=$.bufferInfo(r,n,e.maxBufferHole);this._tryFixBufferStall(p,h)}else
this.stalled=f}}}else if(this.moved=!0,null!==i){if(this.stallReported){var
g=self.performance.now()-i;M.logger.warn("playback not stuck anymore @"+n+", after
"+Math.round(g)+"ms"),this.stallReported=!
1}this.stalled=null,this.nudgeRetry=0}},e._tryFixBufferStall=function(t,e){var
r=this.config,i=this.fragmentTracker,n=this.media.currentTime,a=i.getPartialFragmen
t(n);if(a&&this._trySkipBufferHole(a))return;t.len>r.maxBufferHole&&e>1e3*r.highBuf
ferWatchdogPeriod&&(M.logger.warn("Trying to nudge playhead over buffer-
hole"),this.stalled=null,this._tryNudgeBuffer())},e._reportStall=function(t){var
e=this.hls,r=this.media;this.stallReported||(this.stallReported=!
0,M.logger.warn("Playback stalling at @"+r.currentTime+" due to low
buffer"),e.trigger(x.default.ERROR,
{type:f.ErrorTypes.MEDIA_ERROR,details:f.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!
1,buffer:t}))},e._trySkipBufferHole=function(t){for(var
e=this.config,r=this.hls,i=this.media,n=i.currentTime,a=0,o=0;o<i.buffered.length;o
++){var s=i.buffered.start(o);if(n+e.maxBufferHole>=a&&n<s){var
l=Math.max(s+.05,i.currentTime+.1);return M.logger.warn("skipping hole, adjusting
currentTime from "+n+" to "+l),this.moved=!
0,this.stalled=null,i.currentTime=l,t&&r.trigger(x.default.ERROR,
{type:f.ErrorTypes.MEDIA_ERROR,details:f.ErrorDetails.BUFFER_SEEK_OVER_HOLE,fatal:!
1,reason:"fragment loaded with buffer holes, seeking from "+n+" to
"+l,frag:t}),l}a=i.buffered.end(o)}return 0},e._tryNudgeBuffer=function(){var
t=this.config,e=this.hls,r=this.media,i=r.currentTime,n=(this.nudgeRetry||
0)+1;if((this.nudgeRetry=n)<t.nudgeMaxRetry){var
a=i+n*t.nudgeOffset;M.logger.warn("Nudging 'currentTime' from "+i+" to
"+a),r.currentTime=a,e.trigger(x.default.ERROR,
{type:f.ErrorTypes.MEDIA_ERROR,details:f.ErrorDetails.BUFFER_NUDGE_ON_STALL,fatal:!
1})}else M.logger.error("Playhead still not moving while enough data buffered
@"+i+" after "+t.nudgeMaxRetry+" nudges"),e.trigger(x.default.ERROR,
{type:f.ErrorTypes.MEDIA_ERROR,details:f.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!
0})},t}();var gt=function(a){function t(t){for(var e,r=arguments.length,i=new
Array(1<r?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return(e=a.call.apply(a,
[this,t].concat(i))||this)._boundTick=void
0,e._tickTimer=null,e._tickInterval=null,e._tickCallCount=0,e._boundTick=e.tick.bin
d(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised
- super() hasn't been called");return t}(e)),e}!function(t,e)
{t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}
(t,a);var e=t.prototype;return e.onHandlerDestroying=function()
{this.clearNextTick(),this.clearInterval()},e.hasInterval=function(){return!!
this._tickInterval},e.hasNextTick=function(){return!!
this._tickTimer},e.setInterval=function(t){return!
this._tickInterval&&(this._tickInterval=self.setInterval(this._boundTick,t),!
0)},e.clearInterval=function(){return!!
this._tickInterval&&(self.clearInterval(this._tickInterval),!
(this._tickInterval=null))},e.clearNextTick=function(){return!!
this._tickTimer&&(self.clearTimeout(this._tickTimer),!
(this._tickTimer=null))},e.tick=function(){this._tickCallCount+
+,1===this._tickCallCount&&(this.doTick(),1<this._tickCallCount&&(this.clearNextTic
k(),this._tickTimer=self.setTimeout(this._boundTick,0)),this._tickCallCount=0)},e.d
oTick=function(){},t}(u);var
mt="STOPPED",vt="STARTING",yt="IDLE",At="PAUSED",_t="KEY_LOADING",bt="FRAG_LOADING"
,Et="FRAG_LOADING_WAITING_RETRY",Tt="WAITING_TRACK",St="PARSING",kt="PARSED",Lt="BU
FFER_FLUSHING",Rt="ENDED",Ct="ERROR",wt="WAITING_INIT_PTS",Ot="WAITING_LEVEL",Pt=fu
nction(t){function e(){return t.apply(this,arguments)||this}!function(t,e)
{t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}
(e,t);var r=e.prototype;return r.doTick=function(){},r.startLoad=function()
{},r.stopLoad=function(){var
t=this.fragCurrent;t&&(t.loader&&t.loader.abort(),this.fragmentTracker.removeFragme
nt(t)),this.demuxer&&(this.demuxer.destroy(),this.demuxer=null),this.fragCurrent=nu
ll,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=mt},
r._streamEnded=function(t,e){var
r=this.fragCurrent,i=this.fragmentTracker;if(e.live||!r||r.backtracked||r.sn!
==e.endSN||t.nextStart)return!1;var n=i.getState(r);return n===V||
n===G},r.onMediaSeeking=function(){var
t=this.config,e=this.media,r=this.mediaBuffer,i=this.state,n=e?
e.currentTime:null,a=$.bufferInfo(r||
e,n,this.config.maxBufferHole);if(Object(I.isFiniteNumber)(n)&&M.logger.log("media
seeking to "+n.toFixed(3)),i===bt){var o=this.fragCurrent;if(0===a.len&&o){var
s=t.maxFragLookUpTolerance,l=o.start-s,u=o.start+o.duration+s;n<l||u<n?
(o.loader&&(M.logger.log("seeking outside of buffer while fragment load in
progress, cancel fragment
load"),o.loader.abort()),this.fragCurrent=null,this.fragPrevious=null,this.state=yt
):M.logger.log("seeking outside of buffer but within currently loaded fragment
range")}}else
i===Rt&&(0===a.len&&(this.fragPrevious=null,this.fragCurrent=null),this.state=yt);e
&&(this.lastCurrentTime=n),this.loadedmetadata||
(this.nextLoadPosition=this.startPosition=n),this.tick()},r.onMediaEnded=function()
{this.startPosition=this.lastCurrentTime=0},r.onHandlerDestroying=function()
{this.stopLoad(),t.prototype.onHandlerDestroying.call(this)},r.onHandlerDestroyed=f
unction()
{this.state=mt,this.fragmentTracker=null},r.computeLivePosition=function(t,e){var
r=void 0!==this.config.liveSyncDuration?
this.config.liveSyncDuration:this.config.liveSyncDurationCount*e.targetduration;ret
urn
t+Math.max(0,e.totalduration-r)},e}(gt);function Dt(t,e){for(var r=0;r<e.length;r+
+){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in
i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var It=function(i){function
t(t,e){var
r;return(r=i.call(this,t,x.default.MEDIA_ATTACHED,x.default.MEDIA_DETACHING,x.defau
lt.MANIFEST_LOADING,x.default.MANIFEST_PARSED,x.default.LEVEL_LOADED,x.default.KEY_
LOADED,x.default.FRAG_LOADED,x.default.FRAG_LOAD_EMERGENCY_ABORTED,x.default.FRAG_P
ARSING_INIT_SEGMENT,x.default.FRAG_PARSING_DATA,x.default.FRAG_PARSED,x.default.ERR
OR,x.default.AUDIO_TRACK_SWITCHING,x.default.AUDIO_TRACK_SWITCHED,x.default.BUFFER_
CREATED,x.default.BUFFER_APPENDED,x.default.BUFFER_FLUSHED)||
this).fragmentTracker=e,r.config=t.config,r.audioCodecSwap=!
1,r._state=mt,r.stallReported=!1,r.gapController=null,r.altAudio=!1,r}!
function(t,e){t.prototype=Object.create(e.prototype),
(t.prototype.constructor=t).__proto__=e}(t,i);var e=t.prototype;return
e.startLoad=function(t){if(this.levels){var
e=this.lastCurrentTime,r=this.hls;if(this.stopLoad(),this.setInterval(100),this.lev
el=-1,this.fragLoadError=0,!this.startFragRequested){var i=r.startLevel;-
1===i&&(i=0,this.bitrateTest=!0),this.level=r.nextLoadLevel=i,this.loadedmetadata=!
1}0<e&&-1===t&&(M.logger.log("override startPosition with lastCurrentTime
@"+e.toFixed(3)),t=e),this.state=yt,this.nextLoadPosition=this.startPosition=this.l
astCurrentTime=t,this.tick()}else this.forceStartLoad=!
0,this.state=mt},e.stopLoad=function(){this.forceStartLoad=!
1,i.prototype.stopLoad.call(this)},e.doTick=function(){switch(this.state){case
Lt:this.fragLoadError=0;break;case yt:this._doTickIdle();break;case Ot:var
t=this.levels[this.level];t&&t.details&&(this.state=yt);break;case Et:var
e=window.performance.now(),r=this.retryDate;(!r||r<=e||
this.media&&this.media.seeking)&&(M.logger.log("mediaController: retryDate reached,
switch back to IDLE
state"),this.state=yt)}this._checkBuffer(),this._checkFragmentChanged()},e._doTickI
dle=function(){var t=this.hls,e=t.config,r=this.media;if(void 0!
==this.levelLastLoaded&&(r||!this.startFragRequested&&e.startFragPrefetch)){var
i;i=this.loadedmetadata?r.currentTime:this.nextLoadPosition;var
n=t.nextLoadLevel,a=this.levels[n];if(a){var o,s=a.bitrate;o=s?
Math.max(8*e.maxBufferSize/s,e.maxBufferLength):e.maxBufferLength,o=Math.min(o,e.ma
xMaxBufferLength);var l=$.bufferInfo(this.mediaBuffer?
this.mediaBuffer:r,i,e.maxBufferHole),u=l.len;if(!(o<=u)){M.logger.trace("buffer
length of "+u.toFixed(3)+" is below max of "+o.toFixed(3)+". checking for more
payload ..."),this.level=t.nextLoadLevel=n;var d=a.details;if(!d||
d.live&&this.levelLastLoaded!==n)this.state=Ot;else{if(this._streamEnded(l,d)){var
c={};return
this.altAudio&&(c.type="video"),this.hls.trigger(x.default.BUFFER_EOS,c),void(this.
state=Rt)}this._fetchPayloadOrEos(i,l,d)}}}}},e._fetchPayloadOrEos=function(t,e,r)
{var i=this.fragPrevious,n=this.level,a=r.fragments,o=a.length;if(0!==o){var
s,l=a[0].start,u=a[o-1].start+a[o-1].duration,d=e.end;if(r.initSegment&&!
r.initSegment.data)s=r.initSegment;else if(r.live){var
c=this.config.initialLiveManifestSize;if(o<c)return void M.logger.warn("Can not
start playback of a level, reason: not enough fragments "+o+" <
"+c);if(null===(s=this._ensureFragmentAtLivePoint(r,d,l,u,i,a,o)))return}else
d<l&&(s=a[0]);s||(s=this._findFragment(l,i,o,a,d,u,r)),s&&(s.encrypted?
(M.logger.log("Loading key for "+s.sn+" of ["+r.startSN+" ,"+r.endSN+"],level
"+n),this._loadKey(s)):(M.logger.log("Loading "+s.sn+" of
["+r.startSN+" ,"+r.endSN+"],level "+n+",
currentTime:"+t.toFixed(3)+",bufferEnd:"+d.toFixed(3)),this._loadFragment(s)))}},e.
_ensureFragmentAtLivePoint=function(t,e,r,i,n,a,o){var
s,l=this.hls.config,u=this.media,d=void 0!==l.liveMaxLatencyDuration?
l.liveMaxLatencyDuration:l.liveMaxLatencyDurationCount*t.targetduration;if(e<Math.m
ax(r-l.maxFragLookUpTolerance,i-d)){var
c=this.liveSyncPosition=this.computeLivePosition(r,t);e=c,u&&!
u.paused&&u.readyState&&u.duration>c&&c>u.currentTime&&(M.logger.log("buffer end:
"+e.toFixed(3)+" is located too far from the end of live sliding playlist, reset
currentTime to :
"+c.toFixed(3)),u.currentTime=c),this.nextLoadPosition=c}if(t.PTSKnown&&i<e&&u&&u.r
eadyState)return null;if(this.startFragRequested&&!t.PTSKnown)
{if(n)if(t.hasProgramDateTime)M.logger.log("live playlist, switching playlist, load
frag with same PDT:
"+n.programDateTime),s=ct(a,n.endProgramDateTime,l.maxFragLookUpTolerance);else{var
f=n.sn+1;if(f>=t.startSN&&f<=t.endSN){var h=a[f-
t.startSN];n.cc===h.cc&&(s=h,M.logger.log("live playlist, switching playlist, load
frag with next SN: "+s.sn))}s||(s=H.search(a,function(t){return n.cc-
t.cc}))&&M.logger.log("live playlist, switching playlist, load frag with same CC:
"+s.sn)}s||(s=a[Math.min(o-1,Math.round(o/2))],M.logger.log("live playlist,
switching playlist, unknown, load middle frag : "+s.sn))}return
s},e._findFragment=function(t,e,r,i,n,a,o){var s,l=this.hls.config;n<a?
s=ft(e,i,n,n>a-l.maxFragLookUpTolerance?0:l.maxFragLookUpTolerance):s=i[r-1];if(s)
{var u=s.sn-o.startSN,d=e&&s.level===e.level,c=i[u-
1],f=i[1+u];if(e&&s.sn===e.sn)if(d&&!s.backtracked)if(s.sn<o.endSN){var
h=e.deltaPTS;h&&h>l.maxBufferHole&&e.dropped&&u?(s=c,M.logger.warn("Previous
fragment was dropped with large PTS gap between audio and video. Maybe fragment is
not starting with a keyframe? Loading previous one to try to overcome this")):
(s=f,M.logger.log("Re-loading fragment with SN: "+s.sn))}else s=null;else
s.backtracked&&(f&&f.backtracked?(M.logger.warn("Already backtracked from fragment
"+f.sn+", will not backtrack to fragment "+s.sn+". Loading fragment "+f.sn),s=f):
(M.logger.warn("Loaded fragment with dropped frames, backtracking 1 segment to find
a keyframe"),s.dropped=0,c?(s=c).backtracked=!0:u&&(s=null)))}return
s},e._loadKey=function(t){this.state=_t,this.hls.trigger(x.default.KEY_LOADING,
{frag:t})},e._loadFragment=function(t){var
e=this.fragmentTracker.getState(t);"initSegment"!
==(this.fragCurrent=t).sn&&(this.startFragRequested=!0),Object(I.isFiniteNumber)
(t.sn)&&!t.bitrateTest&&(this.nextLoadPosition=t.start+t.duration),t.backtracked||
e===j||e===V?
(t.autoLevel=this.hls.autoLevelEnabled,t.bitrateTest=this.bitrateTest,this.hls.trig
ger(x.default.FRAG_LOADING,{frag:t}),this.demuxer||(this.demuxer=new
et(this.hls,"main")),this.state=bt):e===K&&this._reduceMaxBufferLength(t.duration)&
&this.fragmentTracker.removeFragment(t)},e.getBufferedFrag=function(t){return
this.fragmentTracker.getBufferedFrag(t,a.MAIN)},e.followingBufferedFrag=function(t)
{return t?
this.getBufferedFrag(t.endPTS+.5):null},e._checkFragmentChanged=function(){var
t,e,r=this.media;if(r&&r.readyState&&!
1===r.seeking&&((e=r.currentTime)>this.lastCurrentTime&&(this.lastCurrentTime=e),
$.isBuffered(r,e)?t=this.getBufferedFrag(e):
$.isBuffered(r,e+.1)&&(t=this.getBufferedFrag(e+.1)),t)){var i=t;if(i!
==this.fragPlaying){this.hls.trigger(x.default.FRAG_CHANGED,{frag:i});var
n=i.level;this.fragPlaying&&this.fragPlaying.level===n||
this.hls.trigger(x.default.LEVEL_SWITCHED,
{level:n}),this.fragPlaying=i}}},e.immediateLevelSwitch=function()
{if(M.logger.log("immediateLevelSwitch"),!this.immediateSwitch)
{this.immediateSwitch=!0;var t,e=this.media;e?(t=e.paused,e.pause()):t=!
0,this.previouslyPaused=t}var
r=this.fragCurrent;r&&r.loader&&r.loader.abort(),this.fragCurrent=null,this.flushMa
inBuffer(0,Number.POSITIVE_INFINITY)},e.immediateLevelSwitchEnd=function(){var
t=this.media;t&&t.buffered.length&&(this.immediateSwitch=!
1,$.isBuffered(t,t.currentTime)&&(t.currentTime-=1e-4),this.previouslyPaused||
t.play())},e.nextLevelSwitch=function(){var t=this.media;if(t&&t.readyState){var
e,r,i;if((r=this.getBufferedFrag(t.currentTime))&&1<r.startPTS&&this.flushMainBuffe
r(0,r.startPTS-1),t.paused)e=0;else{var
n=this.hls.nextLoadLevel,a=this.levels[n],o=this.fragLastKbps;e=o&&this.fragCurrent
?this.fragCurrent.duration*a.bitrate/(1e3*o)
+1:0}if((i=this.getBufferedFrag(t.currentTime+e))&&(i=this.followingBufferedFrag(i)
)){var
s=this.fragCurrent;s&&s.loader&&s.loader.abort(),this.fragCurrent=null,this.flushMa
inBuffer(i.maxStartPTS,Number.POSITIVE_INFINITY)}}},e.flushMainBuffer=function(t,e)
{this.state=Lt;var
r={startOffset:t,endOffset:e};this.altAudio&&(r.type="video"),this.hls.trigger(x.de
fault.BUFFER_FLUSHING,r)},e.onMediaAttached=function(t){var
e=this.media=this.mediaBuffer=t.media;this.onvseeking=this.onMediaSeeking.bind(this
),this.onvseeked=this.onMediaSeeked.bind(this),this.onvended=this.onMediaEnded.bind
(this),e.addEventListener("seeking",this.onvseeking),e.addEventListener("seeked",th
is.onvseeked),e.addEventListener("ended",this.onvended);var
r=this.config;this.levels&&r.autoStartLoad&&this.hls.startLoad(r.startPosition),thi
s.gapController=new
pt(r,e,this.fragmentTracker,this.hls)},e.onMediaDetaching=function(){var
t=this.media;t&&t.ended&&(M.logger.log("MSE detaching and video ended, reset
startPosition"),this.startPosition=this.lastCurrentTime=0);var
e=this.levels;e&&e.forEach(function(t)
{t.details&&t.details.fragments.forEach(function(t){t.backtracked=void
0})}),t&&(t.removeEventListener("seeking",this.onvseeking),t.removeEventListener("s
eeked",this.onvseeked),t.removeEventListener("ended",this.onvended),this.onvseeking
=this.onvseeked=this.onvended=null),this.fragmentTracker.removeAllFragments(),this.
media=this.mediaBuffer=null,this.loadedmetadata=!
1,this.stopLoad()},e.onMediaSeeked=function(){var t=this.media,e=t?
t.currentTime:void 0;Object(I.isFiniteNumber)(e)&&M.logger.log("media seeked to
"+e.toFixed(3)),this.tick()},e.onManifestLoading=function(){M.logger.log("trigger
BUFFER_RESET"),this.hls.trigger(x.default.BUFFER_RESET),this.fragmentTracker.remove
AllFragments(),this.stalled=!
1,this.startPosition=this.lastCurrentTime=0},e.onManifestParsed=function(t){var
e,r=!1,i=!1;t.levels.forEach(function(t){(e=t.audioCodec)&&(-1!
==e.indexOf("mp4a.40.2")&&(r=!0),-1!==e.indexOf("mp4a.40.5")&&(i=!
0))}),this.audioCodecSwitch=r&&i,this.audioCodecSwitch&&M.logger.log("both
AAC/HE-AAC audio found in levels; declaring level codec as HE-
AAC"),this.altAudio=t.altAudio,this.levels=t.levels,this.startFragRequested=!1;var
n=this.config;(n.autoStartLoad||
this.forceStartLoad)&&this.hls.startLoad(n.startPosition)},e.onLevelLoaded=function
(t){var
e=t.details,r=t.level,i=this.levels[this.levelLastLoaded],n=this.levels[r],a=e.tota
lduration,o=0;if(M.logger.log("level "+r+" loaded
["+e.startSN+","+e.endSN+"],duration:"+a),e.live){var
s=n.details;s&&0<e.fragments.length?
(at(s,e),o=e.fragments[0].start,this.liveSyncPosition=this.computeLivePosition(o,s)
,e.PTSKnown&&Object(I.isFiniteNumber)(o)?M.logger.log("live playlist
sliding:"+o.toFixed(3)):(M.logger.log("live playlist - outdated PTS, unknown
sliding"),dt(this.fragPrevious,i,e))):(M.logger.log("live playlist - first load,
unknown sliding"),e.PTSKnown=!1,dt(this.fragPrevious,i,e))}else e.PTSKnown=!
1;if(n.details=e,this.levelLastLoaded=r,this.hls.trigger(x.default.LEVEL_UPDATED,
{details:e,level:r}),!1===this.startFragRequested){if(-1===this.startPosition||-
1===this.lastCurrentTime){var l=e.startTimeOffset;Object(I.isFiniteNumber)(l)?
(l<0&&(M.logger.log("negative start time offset "+l+", count from end of last
fragment"),l=o+a+l),M.logger.log("start time offset found in playlist, adjust
startPosition to "+l),this.startPosition=l):e.live?
(this.startPosition=this.computeLivePosition(o,e),M.logger.log("configure
startPosition to
"+this.startPosition)):this.startPosition=0,this.lastCurrentTime=this.startPosition
}this.nextLoadPosition=this.startPosition}this.state===Ot&&(this.state=yt),this.tic
k()},e.onKeyLoaded=function()
{this.state===_t&&(this.state=yt,this.tick())},e.onFragLoaded=function(t){var
e=this.fragCurrent,r=this.hls,i=this.levels,n=this.media,a=t.frag;if(this.state===b
t&&e&&"main"===a.type&&a.level===e.level&&a.sn===e.sn){var
o=t.stats,s=i[e.level],l=s.details;if(this.bitrateTest=!
1,this.stats=o,M.logger.log("Loaded "+e.sn+" of ["+l.startSN+" ,"+l.endSN+"],level
"+e.level),a.bitrateTest&&r.nextLoadLevel)this.state=yt,this.startFragRequested=!
1,o.tparsed=o.tbuffered=window.performance.now(),r.trigger(x.default.FRAG_BUFFERED,
{stats:o,frag:e,id:"main"}),this.tick();else
if("initSegment"===a.sn)this.state=yt,o.tparsed=o.tbuffered=window.performance.now(
),l.initSegment.data=t.payload,r.trigger(x.default.FRAG_BUFFERED,
{stats:o,frag:e,id:"main"}),this.tick();else{M.logger.log("Parsing "+e.sn+" of
["+l.startSN+" ,"+l.endSN+"],level "+e.level+", cc
"+e.cc),this.state=St,this.pendingBuffering=!0,this.appended=!
1,a.bitrateTest&&(a.bitrateTest=!1,this.fragmentTracker.onFragLoaded({frag:a}));var
u=!(n&&n.seeking)&&(l.PTSKnown||!l.live),d=l.initSegment?l.initSegment.data:
[],c=this._getAudioCodec(s);(this.demuxer=this.demuxer||new
et(this.hls,"main")).push(t.payload,d,c,s.videoCodec,e,l.totalduration,u)}}this.fra
gLoadError=0},e.onFragParsingInitSegment=function(t){var
e=this.fragCurrent,r=t.frag;if(e&&"main"===t.id&&r.sn===e.sn&&r.level===e.level&&th
is.state===St){var i,n,a=t.tracks;if(a.audio&&this.altAudio&&delete
a.audio,n=a.audio){var
o=this.levels[this.level].audioCodec,s=navigator.userAgent.toLowerCase();o&&this.au
dioCodecSwap&&(M.logger.log("swapping playlist audio codec"),o=-1!
==o.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5"),this.audioCodecSwitch&&1!
==n.metadata.channelCount&&-1===s.indexOf("firefox")&&(o="mp4a.40.5"),-1!
==s.indexOf("android")&&"audio/mpeg"!
==n.container&&(o="mp4a.40.2",M.logger.log("Android: force audio codec to
"+o)),n.levelCodec=o,n.id=t.id}for(i
in(n=a.video)&&(n.levelCodec=this.levels[this.level].videoCodec,n.id=t.id),this.hls
.trigger(x.default.BUFFER_CODECS,a),a){n=a[i],M.logger.log("main
track:"+i+",container:"+n.container+",codecs[level/parsed]=["+n.levelCodec+"/"+n.co
dec+"]");var l=n.initSegment;l&&(this.appended=!0,this.pendingBuffering=!
0,this.hls.trigger(x.default.BUFFER_APPENDING,
{type:i,data:l,parent:"main",content:"initSegment"}))}this.tick()}},e.onFragParsing
Data=function(e){var
r=this,t=this.fragCurrent,i=e.frag;if(t&&"main"===e.id&&i.sn===t.sn&&i.level===t.le
vel&&("audio"!==e.type||!this.altAudio)&&this.state===St){var
n=this.levels[this.level],a=t;if(Object(I.isFiniteNumber)(e.endPTS)||
(e.endPTS=e.startPTS+t.duration,e.endDTS=e.startDTS+t.duration),!
0===e.hasAudio&&a.addElementaryStream(h.AUDIO),!
0===e.hasVideo&&a.addElementaryStream(h.VIDEO),M.logger.log("Parsed "+e.type+",PTS:
["+e.startPTS.toFixed(3)+","+e.endPTS.toFixed(3)+"],DTS:
["+e.startDTS.toFixed(3)+"/"+e.endDTS.toFixed(3)+"],nb:"+e.nb+",dropped:"+
(e.dropped||
0)),"video"===e.type)if(a.dropped=e.dropped,a.dropped)if(a.backtracked)M.logger.war
n("Already backtracked on this fragment, appending with the gap",a.sn);else{var
o=n.details;if(!o||a.sn!==o.startSN)return M.logger.warn("missing video frame(s),
backtracking fragment",a.sn),this.fragmentTracker.removeFragment(a),a.backtracked=!
0,this.nextLoadPosition=e.startPTS,this.state=yt,this.fragPrevious=a,void
this.tick();M.logger.warn("missing video frame(s) on first frag, appending with
gap",a.sn)}else a.backtracked=!1;var
s=nt(n.details,a,e.startPTS,e.endPTS,e.startDTS,e.endDTS),l=this.hls;l.trigger(x.de
fault.LEVEL_PTS_UPDATED,
{details:n.details,level:this.level,drift:s,type:e.type,start:e.startPTS,end:e.endP
TS}),[e.data1,e.data2].forEach(function(t){t&&t.length&&r.state===St&&(r.appended=!
0,r.pendingBuffering=!0,l.trigger(x.default.BUFFER_APPENDING,
{type:e.type,data:t,parent:"main",content:"data"}))}),this.tick()}},e.onFragParsed=
function(t){var
e=this.fragCurrent,r=t.frag;e&&"main"===t.id&&r.sn===e.sn&&r.level===e.level&&this.
state===St&&(this.stats.tparsed=window.performance.now(),this.state=kt,this._checkA
ppendedParsed())},e.onAudioTrackSwitching=function(t){var e=!!t.url,r=t.id;if(!e)
{if(this.mediaBuffer!==this.media){M.logger.log("switching on main audio, use
media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var
i=this.fragCurrent;i.loader&&(M.logger.log("switching to main audio track, cancel
main fragment
load"),i.loader.abort()),this.fragCurrent=null,this.fragPrevious=null,this.demuxer&
&(this.demuxer.destroy(),this.demuxer=null),this.state=yt}var
n=this.hls;n.trigger(x.default.BUFFER_FLUSHING,
{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),n.trigger(x.defaul
t.AUDIO_TRACK_SWITCHED,{id:r}),this.altAudio=!
1}},e.onAudioTrackSwitched=function(t){var e=t.id,r=!!
this.hls.audioTracks[e].url;if(r){var i=this.videoBuffer;i&&this.mediaBuffer!
==i&&(M.logger.log("switching on alternate audio, use video.buffered to schedule
main fragment
loading"),this.mediaBuffer=i)}this.altAudio=r,this.tick()},e.onBufferCreated=functi
on(t){var e,r,i=t.tracks,n=!1;for(var a in i){var o=i[a];"main"===o.id?
(e=o,"video"===(r=a)&&(this.videoBuffer=i[a].buffer)):n=!0}n&&e?
(M.logger.log("alternate track found, use "+r+".buffered to schedule main fragment
loading"),this.mediaBuffer=e.buffer):this.mediaBuffer=this.media},e.onBufferAppende
d=function(t){if("main"===t.parent){var e=this.state;e!==St&&e!==kt||
(this.pendingBuffering=0<t.pending,this._checkAppendedParsed())}},e._checkAppendedP
arsed=function(){if(!(this.state!==kt||this.appended&&this.pendingBuffering)){var
t=this.fragCurrent;if(t){var e=this.mediaBuffer?
this.mediaBuffer:this.media;M.logger.log("main buffered :
"+lt.toString(e.buffered)),this.fragPrevious=t;var
r=this.stats;r.tbuffered=window.performance.now(),this.fragLastKbps=Math.round(8*r.
total/(r.tbuffered-r.tfirst)),this.hls.trigger(x.default.FRAG_BUFFERED,
{stats:r,frag:t,id:"main"}),this.state=yt}this.tick()}},e.onError=function(t){var
e=t.frag||this.fragCurrent;if(!e||"main"===e.type){var r=!!
this.media&&$.isBuffered(this.media,this.media.currentTime)&&$.isBuffered(this.medi
a,this.media.currentTime+.5);switch(t.details){case
f.ErrorDetails.FRAG_LOAD_ERROR:case f.ErrorDetails.FRAG_LOAD_TIMEOUT:case
f.ErrorDetails.KEY_LOAD_ERROR:case f.ErrorDetails.KEY_LOAD_TIMEOUT:if(!
t.fatal)if(this.fragLoadError+1<=this.config.fragLoadingMaxRetry){var
i=Math.min(Math.pow(2,this.fragLoadError)*this.config.fragLoadingRetryDelay,this.co
nfig.fragLoadingMaxRetryTimeout);M.logger.warn("mediaController: frag loading
failed, retry in "+i+" ms"),this.retryDate=window.performance.now()
+i,this.loadedmetadata||(this.startFragRequested=!
1,this.nextLoadPosition=this.startPosition),this.fragLoadError++,this.state=Et}else
M.logger.error("mediaController: "+t.details+" reaches max retry, redispatch as
fatal ..."),t.fatal=!0,this.state=Ct;break;case
f.ErrorDetails.LEVEL_LOAD_ERROR:case f.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!
==Ct&&(t.fatal?(this.state=Ct,M.logger.warn("streamController: "+t.details+",switch
to "+this.state+" state ...")):t.levelRetry||this.state!==Ot||
(this.state=yt));break;case f.ErrorDetails.BUFFER_FULL_ERROR:"main"!==t.parent||
this.state!==St&&this.state!==kt||(r?
(this._reduceMaxBufferLength(this.config.maxBufferLength),this.state=yt):
(M.logger.warn("buffer full error also media.currentTime is not buffered, flush
everything"),this.fragCurrent=null,this.flushMainBuffer(0,Number.POSITIVE_INFINITY)
))}}},e._reduceMaxBufferLength=function(t){var e=this.config;return
e.maxMaxBufferLength>=t&&(e.maxMaxBufferLength/=2,M.logger.warn("main:reduce max
buffer length to "+e.maxMaxBufferLength+"s"),!0)},e._checkBuffer=function(){var
t=this.media;if(t&&0!==t.readyState){var e=(this.mediaBuffer?
this.mediaBuffer:t).buffered;!this.loadedmetadata&&e.length?(this.loadedmetadata=!
0,this._seekToStartPos()):this.immediateSwitch?
this.immediateLevelSwitchEnd():this.gapController.poll(this.lastCurrentTime,e)}},e.
onFragLoadEmergencyAborted=function(){this.state=yt,this.loadedmetadata||
(this.startFragRequested=!
1,this.nextLoadPosition=this.startPosition),this.tick()},e.onBufferFlushed=function
(){var t=this.mediaBuffer?
this.mediaBuffer:this.media;t&&this.fragmentTracker.detectEvictedFragments(h.VIDEO,
t.buffered),this.state=yt,this.fragPrevious=null},e.swapAudioCodec=function()
{this.audioCodecSwap=!this.audioCodecSwap},e._seekToStartPos=function(){var
t=this.media,e=t.currentTime,r=t.seeking?e:this.startPosition;e!
==r&&0<=r&&(M.logger.log("target start position not buffered, seek to
buffered.start(0) "+r+" from current time "+e+"
"),t.currentTime=r)},e._getAudioCodec=function(t){var
e=this.config.defaultAudioCodec||t.audioCodec;return
this.audioCodecSwap&&(M.logger.log("swapping playlist audio codec"),e&&(e=-1!
==e.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5")),e},function(t,e,r)
{e&&Dt(t.prototype,e),r&&Dt(t,r)}(t,[{key:"state",set:function(t){if(this.state!
==t){var e=this.state;this._state=t,M.logger.log("main stream-controller: "+e+"-
>"+t),this.hls.trigger(x.default.STREAM_STATE_TRANSITION,
{previousState:e,nextState:t})}},get:function(){return this._state}},
{key:"currentLevel",get:function(){var t=this.media;if(t){var
e=this.getBufferedFrag(t.currentTime);if(e)return e.level}return-1}},
{key:"nextBufferedFrag",get:function(){var t=this.media;return t?
this.followingBufferedFrag(this.getBufferedFrag(t.currentTime)):null}},
{key:"nextLevel",get:function(){var t=this.nextBufferedFrag;return t?t.level:-1}},
{key:"liveSyncPosition",get:function(){return
this._liveSyncPosition},set:function(t){this._liveSyncPosition=t}}]),t}
(Pt);function xt(t,e){for(var r=0;r<e.length;r++){var
i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!
0),Object.defineProperty(t,i.key,i)}}window.performance;var Mt,Nt=function(r)
{function t(t){var
e;return(e=r.call(this,t,x.default.MANIFEST_LOADED,x.default.LEVEL_LOADED,x.default
.AUDIO_TRACK_SWITCHED,x.default.FRAG_LOADED,x.default.ERROR)||this).canload=!
1,e.currentLevelIndex=null,e.manualLevelIndex=-1,e.timer=null,Mt=/chrome|
firefox/.test(navigator.userAgent.toLowerCase()),e}!function(t,e)
{t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}
(t,r);var e=t.prototype;return e.onHandlerDestroying=function()
{this.clearTimer(),this.manualLevelIndex=-1},e.clearTimer=function(){null!
==this.timer&&(clearTimeout(this.timer),this.timer=null)},e.startLoad=function()
{var t=this._levels;this.canload=!0,this.levelRetryCount=0,t&&t.forEach(function(t)
{t.loadError=0;var e=t.details;e&&e.live&&(t.details=void 0)}),null!
==this.timer&&this.loadLevel()},e.stopLoad=function(){this.canload=!
1},e.onManifestLoaded=function(t){var e,r=[],i=[],n={},a=null,o=!1,s=!
1;if(t.levels.forEach(function(t){var e=t.attrs;t.loadError=0,t.fragmentError=!
1,o=o||!!t.videoCodec,s=s||!!t.audioCodec,Mt&&t.audioCodec&&-1!
==t.audioCodec.indexOf("mp4a.40.34")&&(t.audioCodec=void 0),(a=n[t.bitrate])?
a.url.push(t.url):
(t.url=[t.url],t.urlId=0,n[t.bitrate]=t,r.push(t)),e&&(e.AUDIO&&(s=!0,rt(a||
t,"audio",e.AUDIO)),e.SUBTITLES&&rt(a||
t,"text",e.SUBTITLES))}),o&&s&&(r=r.filter(function(t){return!!
t.videoCodec})),r=r.filter(function(t){var e=t.audioCodec,r=t.videoCodec;return(!
e||b(e,"audio"))&&(!r||
b(r,"video"))}),t.audioTracks&&(i=t.audioTracks.filter(function(t){return!
t.audioCodec||b(t.audioCodec,"audio")})).forEach(function(t,e){t.id=e}),0<r.length)
{e=r[0].bitrate,r.sort(function(t,e){return t.bitrate-
e.bitrate}),this._levels=r;for(var l=0;l<r.length;l++)if(r[l].bitrate===e)
{this._firstLevel=l,M.logger.log("manifest loaded,"+r.length+" level(s) found,
first bitrate:"+e);break}this.hls.trigger(x.default.MANIFEST_PARSED,
{levels:r,audioTracks:i,firstLevel:this._firstLevel,stats:t.stats,audio:s,video:o,a
ltAudio:i.some(function(t){return!!t.url})})}else this.hls.trigger(x.default.ERROR,
{type:f.ErrorTypes.MEDIA_ERROR,details:f.ErrorDetails.MANIFEST_INCOMPATIBLE_CODECS_
ERROR,fatal:!0,url:this.hls.url,reason:"no level with compatible codecs found in
manifest"})},e.setLevelInternal=function(t){var
e=this._levels,r=this.hls;if(0<=t&&t<e.length)
{if(this.clearTimer(),this.currentLevelIndex!==t){M.logger.log("switching to level
"+t);var
i=e[this.currentLevelIndex=t];i.level=t,r.trigger(x.default.LEVEL_SWITCHING,i)}var
n=e[t],a=n.details;if(!a||a.live){var o=n.urlId;r.trigger(x.default.LEVEL_LOADING,
{url:n.url[o],level:t,id:o})}}else r.trigger(x.default.ERROR,
{type:f.ErrorTypes.OTHER_ERROR,details:f.ErrorDetails.LEVEL_SWITCH_ERROR,level:t,fa
tal:!1,reason:"invalid level idx"})},e.onError=function(t)
{if(t.fatal)t.type===f.ErrorTypes.NETWORK_ERROR&&this.clearTimer();else{var e,r=!
1,i=!1;switch(t.details){case f.ErrorDetails.FRAG_LOAD_ERROR:case
f.ErrorDetails.FRAG_LOAD_TIMEOUT:case f.ErrorDetails.KEY_LOAD_ERROR:case
f.ErrorDetails.KEY_LOAD_TIMEOUT:e=t.frag.level,i=!0;break;case
f.ErrorDetails.LEVEL_LOAD_ERROR:case
f.ErrorDetails.LEVEL_LOAD_TIMEOUT:e=t.context.level,r=!0;break;case
f.ErrorDetails.REMUX_ALLOC_ERROR:e=t.level,r=!0}void 0!
==e&&this.recoverLevel(t,e,r,i)}},e.recoverLevel=function(t,e,r,i){var
n,a,o,s=this,l=this.hls.config,u=t.details,d=this._levels[e];if(d.loadError+
+,d.fragmentError=i,r){if(!(this.levelRetryCount+1<=l.levelLoadingMaxRetry))return
M.logger.error("level controller, cannot recover from "+u+"
error"),this.currentLevelIndex=null,this.clearTimer(),void(t.fatal=!
0);a=Math.min(Math.pow(2,this.levelRetryCount)*l.levelLoadingRetryDelay,l.levelLoad
ingMaxRetryTimeout),this.timer=setTimeout(function(){return
s.loadLevel()},a),t.levelRetry=!0,this.levelRetryCount++,M.logger.warn("level
controller, "+u+", retry in "+a+" ms, current retry count is
"+this.levelRetryCount)}(r||i)&&(1<(n=d.url.length)&&d.loadError<n?
(d.urlId=(d.urlId+1)%n,d.details=void 0,M.logger.warn("level controller, "+u+" for
level "+e+": switching to redundant URL-id "+d.urlId)):-1===this.manualLevelIndex?
(o=0===e?this._levels.length-1:e-1,M.logger.warn("level controller, "+u+": switch
to "+o),this.hls.nextAutoLevel=this.currentLevelIndex=o):i&&(M.logger.warn("level
controller, "+u+": reload a
fragment"),this.currentLevelIndex=null))},e.onFragLoaded=function(t){var
e=t.frag;if(void 0!==e&&"main"===e.type){var r=this._levels[e.level];void 0!
==r&&(r.fragmentError=!
1,r.loadError=0,this.levelRetryCount=0)}},e.onLevelLoaded=function(t){var
e=this,r=t.level,i=t.details;if(r===this.currentLevelIndex){var
n=this._levels[r];if(n.fragmentError||
(n.loadError=0,this.levelRetryCount=0),i.live){var
a=st(n.details,i,t.stats.trequest);M.logger.log("live playlist, reload in
"+Math.round(a)+" ms"),this.timer=setTimeout(function(){return
e.loadLevel()},a)}else this.clearTimer()}},e.onAudioTrackSwitched=function(t){var
e=this.hls.audioTracks[t.id].groupId,r=this.hls.levels[this.currentLevelIndex];if(r
&&r.audioGroupIds){for(var i=-1,n=0;n<r.audioGroupIds.length;n+
+)if(r.audioGroupIds[n]===e){i=n;break}i!
==r.urlId&&(r.urlId=i,this.startLoad())}},e.loadLevel=function()
{if(M.logger.debug("call to loadLevel"),null!
==this.currentLevelIndex&&this.canload){var
t=this._levels[this.currentLevelIndex];if("object"==typeof t&&0<t.url.length){var
e=this.currentLevelIndex,r=t.urlId,i=t.url[r];M.logger.log("Attempt loading level
index "+e+" with URL-id "+r),this.hls.trigger(x.default.LEVEL_LOADING,
{url:i,level:e,id:r})}}},function(t,e,r){e&&xt(t.prototype,e),r&&xt(t,r)}(t,
[{key:"levels",get:function(){return this._levels}},{key:"level",get:function()
{return this.currentLevelIndex},set:function(t){var
e=this._levels;e&&(t=Math.min(t,e.length-
1),this.currentLevelIndex===t&&e[t].details||this.setLevelInternal(t))}},
{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(t)
{this.manualLevelIndex=t,void 0===this._startLevel&&(this._startLevel=t),-1!
==t&&(this.level=t)}},{key:"firstLevel",get:function(){return
this._firstLevel},set:function(t){this._firstLevel=t}},
{key:"startLevel",get:function(){if(void 0!==this._startLevel)return
this._startLevel;var t=this.hls.config.startLevel;return void 0!==t?
t:this._firstLevel},set:function(t){this._startLevel=t}},
{key:"nextLoadLevel",get:function(){return-1!==this.manualLevelIndex?
this.manualLevelIndex:this.hls.nextAutoLevel},set:function(t){this.level=t,-
1===this.manualLevelIndex&&(this.hls.nextAutoLevel=t)}}]),t}(u),Ft=r("./src/demux/
id3.js");function Bt(t,e){var r;try{r=new Event("addtrack")}catch(t)
{(r=document.createEvent("Event")).initEvent("addtrack",!1,!
1)}r.track=t,e.dispatchEvent(r)}function Ut(t)
{if(t&&t.cues)for(;0<t.cues.length;)t.removeCue(t.cues[0])}var jt=function(r)
{function t(t){var
e;return(e=r.call(this,t,x.default.MEDIA_ATTACHED,x.default.MEDIA_DETACHING,x.defau
lt.FRAG_PARSING_METADATA,x.default.LIVE_BACK_BUFFER_REACHED)||this).id3Track=void
0,e.media=void 0,e}!function(t,e){t.prototype=Object.create(e.prototype),
(t.prototype.constructor=t).__proto__=e}(t,r);var e=t.prototype;return
e.destroy=function(){u.prototype.destroy.call(this)},e.onMediaAttached=function(t)
{this.media=t.media,this.media},e.onMediaDetaching=function()
{Ut(this.id3Track),this.id3Track=void 0,this.media=void
0},e.getID3Track=function(t){for(var e=0;e<t.length;e++){var
r=t[e];if("metadata"===r.kind&&"id3"===r.label)return Bt(r,this.media),r}return
this.media.addTextTrack("metadata","id3")},e.onFragParsingMetadata=function(t){var
e=t.frag,r=t.samples;this.id3Track||
(this.id3Track=this.getID3Track(this.media.textTracks),this.id3Track.mode="hidden")
;for(var i=window.WebKitDataCue||window.VTTCue||
window.TextTrackCue,n=0;n<r.length;n++){var
a=Ft.default.getID3Frames(r[n].data);if(a){var o=r[n].pts,s=n<r.length-1?
r[n+1].pts:e.endPTS;o===s?s+=1e-4:s<o&&(M.logger.warn("detected an id3 sample with
endTime < startTime, adjusting endTime to (startTime + 0.25)"),s=o+.25);for(var
l=0;l<a.length;l++){var u=a[l];if(!Ft.default.isTimeStampFrame(u)){var d=new
i(o,s,"");d.value=u,this.id3Track.addCue(d)}}}}},e.onLiveBackBufferReached=function
(t){var e=t.bufferEnd,r=this.id3Track;if(r&&r.cues&&r.cues.length){var
i=function(t,e){if(e<t[0].endTime)return t[0];if(e>t[t.length-1].endTime)return
t[t.length-1];for(var r=0,i=t.length-1;r<=i;){var
n=Math.floor((i+r)/2);if(e<t[n].endTime)i=n-1;else{if(!(e>t[n].endTime))return
t[n];r=n+1}}return t[r].endTime-e<e-t[i].endTime?t[r]:t[i]}
(r.cues,e);if(i)for(;r.cues[0]!==i;)r.removeCue(r.cues[0])}},t}(u);var
Kt=function(){function t(t){this.alpha_=void
0,this.estimate_=void 0,this.totalWeight_=void 0,this.alpha_=t?
Math.exp(Math.log(.5)/t):0,this.estimate_=0,this.totalWeight_=0}var
e=t.prototype;return e.sample=function(t,e){var
r=Math.pow(this.alpha_,t);this.estimate_=e*(1-r)
+r*this.estimate_,this.totalWeight_+=t},e.getTotalWeight=function(){return
this.totalWeight_},e.getEstimate=function(){if(this.alpha_){var t=1-
Math.pow(this.alpha_,this.totalWeight_);return this.estimate_/t}return
this.estimate_},t}(),Vt=function(){function t(t,e,r,i){this.hls=void
0,this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void
0,this.slow_=void 0,this.fast_=void
0,this.hls=t,this.defaultEstimate_=i,this.minWeight_=.001,this.minDelayMs_=50,this.
slow_=new Kt(e),this.fast_=new Kt(r)}var e=t.prototype;return
e.sample=function(t,e){var
r=(t=Math.max(t,this.minDelayMs_))/1e3,i=8*e/r;this.fast_.sample(r,i),this.slow_.sa
mple(r,i)},e.canEstimate=function(){var t=this.fast_;return
t&&t.getTotalWeight()>=this.minWeight_},e.getEstimate=function(){return
this.canEstimate()?
Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},
e.destroy=function(){},t}();function Gt(t,e){for(var r=0;r<e.length;r++){var
i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!
0),Object.defineProperty(t,i.key,i)}}var Yt=window.performance,Ht=function(r)
{function t(t){var
e;return(e=r.call(this,t,x.default.FRAG_LOADING,x.default.FRAG_LOADED,x.default.FRA
G_BUFFERED,x.default.ERROR)||this).lastLoadedFragLevel=0,e._nextAutoLevel=-
1,e.hls=t,e.timer=null,e._bwEstimator=null,e.onCheck=e._abandonRulesCheck.bind(func
tion(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised -
super() hasn't been called");return t}(e)),e}!function(t,e)
{t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}
(t,r);var e=t.prototype;return e.destroy=function()
{this.clearTimer(),u.prototype.destroy.call(this)},e.onFragLoading=function(t){var
e=t.frag;if("main"===e.type&&(this.timer||
(this.fragCurrent=e,this.timer=setInterval(this.onCheck,100)),!this._bwEstimator))
{var r,i,n=this.hls,a=n.config,o=e.level;i=n.levels[o].details.live?
(r=a.abrEwmaFastLive,a.abrEwmaSlowLive):
(r=a.abrEwmaFastVoD,a.abrEwmaSlowVoD),this._bwEstimator=new
Vt(n,i,r,a.abrEwmaDefaultEstimate)}},e._abandonRulesCheck=function(){var
t=this.hls,e=t.media,r=this.fragCurrent;if(r){var i=r.loader,n=t.minAutoLevel;if(!
i||i.stats&&i.stats.aborted)return M.logger.warn("frag loader destroy or aborted,
disarm abandonRules"),this.clearTimer(),void(this._nextAutoLevel=-1);var
a=i.stats;if(e&&a&&(!e.paused&&0!==e.playbackRate||!
e.readyState)&&r.autoLevel&&r.level){var o=Yt.now()-
a.trequest,s=Math.abs(e.playbackRate);if(o>500*r.duration/s){var
l=t.levels,u=Math.max(1,a.bw?a.bw/8:1e3*a.loaded/o),d=l[r.level],c=d.realBitrate?
Math.max(d.realBitrate,d.bitrate):d.bitrate,f=a.total?
a.total:Math.max(a.loaded,Math.round(r.duration*c/8)),h=e.currentTime,p=(f-
a.loaded)/u,g=($.bufferInfo(e,h,t.config.maxBufferHole).end-h)/
s;if(g<2*r.duration/s&&g<p){var m;for(m=r.level-1;n<m;m--){var v=l[m].realBitrate?
Math.max(l[m].realBitrate,l[m].bitrate):l[m].bitrate;if(r.duration*v/
(6.4*u)<g)break}void 0<p&&(M.logger.warn("loading too slow, abort fragment loading
and switch to level "+m+":fragLoadedDelay["+m+"]<fragLoadedDelay["+(r.level-
1)+"];bufferStarvationDelay:"+(void
0).toFixed(1)+"<"+p.toFixed(1)+":"+g.toFixed(1)),t.nextLoadLevel=m,this._bwEstimato
r.sample(o,a.loaded),i.abort(),this.clearTimer(),t.trigger(x.default.FRAG_LOAD_EMER
GENCY_ABORTED,{frag:r,stats:a}))}}}}},e.onFragLoaded=function(t){var
e=t.frag;if("main"===e.type&&Object(I.isFiniteNumber)(e.sn))
{if(this.clearTimer(),this.lastLoadedFragLevel=e.level,this._nextAutoLevel=-
1,this.hls.config.abrMaxWithRealBitrate){var
r=this.hls.levels[e.level],i=(r.loaded?
r.loaded.bytes:0)+t.stats.loaded,n=(r.loaded?
r.loaded.duration:0)+t.frag.duration;r.loaded={bytes:i,duration:n},r.realBitrate=Ma
th.round(8*i/n)}if(t.frag.bitrateTest){var
a=t.stats;a.tparsed=a.tbuffered=a.tload,this.onFragBuffered(t)}}},e.onFragBuffered=
function(t){var e=t.stats,r=t.frag;if(!0!
==e.aborted&&"main"===r.type&&Object(I.isFiniteNumber)(r.sn)&&(!r.bitrateTest||
e.tload===e.tbuffered)){var
i=e.tparsed-e.trequest;M.logger.log("latency/loading/parsing/append/
kbps:"+Math.round(e.tfirst-e.trequest)+"/"+Math.round(e.tload-e.tfirst)
+"/"+Math.round(e.tparsed-e.tload)+"/"+Math.round(e.tbuffered-e.tparsed)
+"/"+Math.round(8*e.loaded/(e.tbuffered-
e.trequest))),this._bwEstimator.sample(i,e.loaded),e.bwEstimate=this._bwEstimator.g
etEstimate(),r.bitrateTest?this.bitrateTestDelay=i/
1e3:this.bitrateTestDelay=0}},e.onError=function(t){switch(t.details){case
f.ErrorDetails.FRAG_LOAD_ERROR:case
f.ErrorDetails.FRAG_LOAD_TIMEOUT:this.clearTimer()}},e.clearTimer=function()
{clearInterval(this.timer),this.timer=null},e._findBestLevel=function(t,e,r,i,n,a,o
,s,l){for(var u=n;i<=u;u--){var d=l[u];if(d){var
c=d.details,f=c?c.totalduration/c.fragments.length:e,h=!!c&&c.live,p=void 0;p=u<=t?
o*r:s*r;var g=l[u].realBitrate?
Math.max(l[u].realBitrate,l[u].bitrate):l[u].bitrate,m=g*f/
p;if(M.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/
fetchDuration: "+u+"/"+Math.round(p)+"/"+g+"/"+f+"/"+a+"/"+m),g<p&&(!m||h&&!
this.bitrateTestDelay||m<a))return u}}return-1},function(t,e,r)
{e&&Gt(t.prototype,e),r&&Gt(t,r)}(t,[{key:"nextAutoLevel",get:function(){var
t=this._nextAutoLevel,e=this._bwEstimator;if(!(-1===t||e&&e.canEstimate()))return
t;var r=this._nextABRAutoLevel;return-1!==t&&(r=Math.min(t,r)),r},set:function(t)
{this._nextAutoLevel=t}},{key:"_nextABRAutoLevel",get:function(){var
t=this.hls,e=t.maxAutoLevel,r=t.levels,i=t.config,n=t.minAutoLevel,a=t.media,o=this
.lastLoadedFragLevel,s=this.fragCurrent?this.fragCurrent.duration:0,l=a?
a.currentTime:0,u=a&&0!==a.playbackRate?
Math.abs(a.playbackRate):1,d=this._bwEstimator?
this._bwEstimator.getEstimate():i.abrEwmaDefaultEstimate,c=($.bufferInfo(a,l,i.maxB
ufferHole).end-l)/
u,f=this._findBestLevel(o,s,d,n,e,c,i.abrBandWidthFactor,i.abrBandWidthUpFactor,r);
if(0<=f)return f;M.logger.trace("rebuffering expected to happen, lets try to find a
quality level minimizing the rebuffering");var h=s?
Math.min(s,i.maxStarvationDelay):i.maxStarvationDelay,p=i.abrBandWidthFactor,g=i.ab
rBandWidthUpFactor;if(0==c){var m=this.bitrateTestDelay;if(m)h=(s?
Math.min(s,i.maxLoadingDelay):i.maxLoadingDelay)-m,M.logger.trace("bitrate test
took "+Math.round(1e3*m)+"ms, set first fragment max fetchDuration to
"+Math.round(1e3*h)+" ms"),p=g=1}return
f=this._findBestLevel(o,s,d,n,e,c+h,p,g,r),Math.max(f,0)}}]),t}(u);var
$t=X(),zt=function(e){function t(t){var
s;return(s=e.call(this,t,x.default.MEDIA_ATTACHING,x.default.MEDIA_DETACHING,x.defa
ult.MANIFEST_PARSED,x.default.BUFFER_RESET,x.default.BUFFER_APPENDING,x.default.BUF
FER_CODECS,x.default.BUFFER_EOS,x.default.BUFFER_FLUSHING,x.default.LEVEL_PTS_UPDAT
ED,x.default.LEVEL_UPDATED)||
this)._msDuration=null,s._levelDuration=null,s._levelTargetDuration=10,s._live=null
,s._objectUrl=null,s._needsFlush=!1,s._needsEos=!1,s.config=void
0,s.audioTimestampOffset=void
0,s.bufferCodecEventsExpected=0,s._bufferCodecEventsTotal=0,s.media=null,s.mediaSou
rce=null,s.segments=[],s.parent=void 0,s.appending=!
1,s.appended=0,s.appendError=0,s.flushBufferCounter=0,s.tracks={},s.pendingTracks={
},s.sourceBuffer={},s.flushRange=[],s._onMediaSourceOpen=function()
{M.logger.log("media source opened"),s.hls.trigger(x.default.MEDIA_ATTACHED,
{media:s.media});var
t=s.mediaSource;t&&t.removeEventListener("sourceopen",s._onMediaSourceOpen),s.check
PendingTracks()},s._onMediaSourceClose=function(){M.logger.log("media source
closed")},s._onMediaSourceEnded=function(){M.logger.log("media source
ended")},s._onSBUpdateEnd=function()
{if(s.audioTimestampOffset&&s.sourceBuffer.audio){var
t=s.sourceBuffer.audio;M.logger.warn("change mpeg audio timestamp offset from
"+t.timestampOffset+" to
"+s.audioTimestampOffset),t.timestampOffset=s.audioTimestampOffset,delete
s.audioTimestampOffset}s._needsFlush&&s.doFlush(),s._needsEos&&s.checkEos(),s.appen
ding=!1;var r=s.parent,e=s.segments.reduce(function(t,e){return e.parent===r?
t+1:t},0),i={},n=s.sourceBuffer;for(var a in n){var o=n[a];if(!o)throw
Error("handling source buffer update end error: source buffer for "+a+"
uninitilized and unable to update buffered
TimeRanges.");i[a]=o.buffered}s.hls.trigger(x.default.BUFFER_APPENDED,
{parent:r,pending:e,timeRanges:i}),s._needsFlush||
s.doAppending(),s.updateMediaElementDuration(),0===e&&s.flushLiveBackBuffer()},s._o
nSBUpdateError=function(t){M.logger.error("sourceBuffer
error:",t),s.hls.trigger(x.default.ERROR,
{type:f.ErrorTypes.MEDIA_ERROR,details:f.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:
!1})},s.config=t.config,s}!function(t,e){t.prototype=Object.create(e.prototype),
(t.prototype.constructor=t).__proto__=e}(t,e);var r=t.prototype;return
r.destroy=function()
{u.prototype.destroy.call(this)},r.onLevelPtsUpdated=function(t){var
e=t.type,r=this.tracks.audio;if("audio"===e&&r&&"audio/mpeg"===r.container){var
i=this.sourceBuffer.audio;if(!i)throw Error("Level PTS Updated and source buffer
for audio uninitalized");if(.1<Math.abs(i.timestampOffset-t.start)){var
n=i.updating;try{i.abort()}catch(t){M.logger.warn("can not abort audio buffer:
"+t)}n?this.audioTimestampOffset=t.start:(M.logger.warn("change mpeg audio
timestamp offset from "+i.timestampOffset+" to
"+t.start),i.timestampOffset=t.start)}}},r.onManifestParsed=function(t)
{this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=t.altAudio?
2:1,M.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s)
expected")},r.onMediaAttaching=function(t){var e=this.media=t.media;if(e&&$t){var
r=this.mediaSource=new
$t;r.addEventListener("sourceopen",this._onMediaSourceOpen),r.addEventListener("sou
rceended",this._onMediaSourceEnded),r.addEventListener("sourceclose",this._onMediaS
ourceClose),e.src=window.URL.createObjectURL(r),this._objectUrl=e.src}},r.onMediaDe
taching=function(){M.logger.log("media
source detaching");var t=this.mediaSource;if(t)
{if("open"===t.readyState)try{t.endOfStream()}catch(t)
{M.logger.warn("onMediaDetaching:"+t.message+" while calling
endOfStream")}t.removeEventListener("sourceopen",this._onMediaSourceOpen),t.removeE
ventListener("sourceended",this._onMediaSourceEnded),t.removeEventListener("sourcec
lose",this._onMediaSourceClose),this.media&&(this._objectUrl&&window.URL.revokeObje
ctURL(this._objectUrl),this.media.src===this._objectUrl?
(this.media.removeAttribute("src"),this.media.load()):M.logger.warn("media.src was
changed by a third party - skip
cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCo
decEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={}
,this.sourceBuffer={},this.flushRange=[],this.segments=[],this.appended=0}this.hls.
trigger(x.default.MEDIA_DETACHED)},r.checkPendingTracks=function(){var
t=this.bufferCodecEventsExpected,e=this.pendingTracks,r=Object.keys(e).length;(r&&!
t||
2===r)&&(this.createSourceBuffers(e),this.pendingTracks={},this.doAppending())},r.o
nBufferReset=function(){var t=this.sourceBuffer;for(var e in t){var
r=t[e];try{r&&(this.mediaSource&&this.mediaSource.removeSourceBuffer(r),r.removeEve
ntListener("updateend",this._onSBUpdateEnd),r.removeEventListener("error",this._onS
BUpdateError))}catch(t)
{}}this.sourceBuffer={},this.flushRange=[],this.segments=[],this.appended=0},r.onBu
fferCodecs=function(e){var r=this;Object.keys(this.sourceBuffer).length||
(Object.keys(e).forEach(function(t)
{r.pendingTracks[t]=e[t]}),this.bufferCodecEventsExpected=Math.max(this.bufferCodec
EventsExpected-
1,0),this.mediaSource&&"open"===this.mediaSource.readyState&&this.checkPendingTrack
s())},r.createSourceBuffers=function(t){var
e=this.sourceBuffer,r=this.mediaSource;if(!r)throw Error("createSourceBuffers
called when mediaSource was null");for(var i in t)if(!e[i]){var n=t[i];if(!n)throw
Error("source buffer exists for track "+i+", however track does not");var
a=n.levelCodec||n.codec,o=n.container+";codecs="+a;M.logger.log("creating
sourceBuffer("+o+")");try{var
s=e[i]=r.addSourceBuffer(o);s.addEventListener("updateend",this._onSBUpdateEnd),s.a
ddEventListener("error",this._onSBUpdateError),this.tracks[i]={buffer:s,codec:a,id:
n.id,container:n.container,levelCodec:n.levelCodec}}catch(t){M.logger.error("error
while trying to add sourceBuffer:"+t.message),this.hls.trigger(x.default.ERROR,
{type:f.ErrorTypes.MEDIA_ERROR,details:f.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:
!1,err:t,mimeType:o})}}this.hls.trigger(x.default.BUFFER_CREATED,
{tracks:this.tracks})},r.onBufferAppending=function(t){this._needsFlush||
(this.segments?
this.segments.push(t):this.segments=[t],this.doAppending())},r.onBufferEos=function
(t){for(var e in this.sourceBuffer)if(!t.type||t.type===e){var
r=this.sourceBuffer[e];r&&!r.ended&&(r.ended=!0,M.logger.log(e+" sourceBuffer now
EOS"))}this.checkEos()},r.checkEos=function(){var
t=this.sourceBuffer,e=this.mediaSource;if(e&&"open"===e.readyState){for(var r in t)
{var i=t[r];if(i){if(!i.ended)return;if(i.updating)return void(this._needsEos=!
0)}}M.logger.log("all media data are available, signal endOfStream() to MediaSource
and stop loading fragment");try{e.endOfStream()}catch(t){M.logger.warn("exception
while calling mediaSource.endOfStream()")}this._needsEos=!1}else this._needsEos=!
1},r.onBufferFlushing=function(t){t.type?
this.flushRange.push({start:t.startOffset,end:t.endOffset,type:t.type}):
(this.flushRange.push({start:t.startOffset,end:t.endOffset,type:"video"}),this.flus
hRange.push({start:t.startOffset,end:t.endOffset,type:"audio"})),this.flushBufferCo
unter=0,this.doFlush()},r.flushLiveBackBuffer=function(){if(this._live){var
t=this.config.liveBackBufferLength;if(isFinite(t)&&!(t<0))if(this.media)for(var
e=this.media.currentTime,r=this.sourceBuffer,i=Object.keys(r),n=e-
Math.max(t,this._levelTargetDuration),a=i.length-1;0<=a;a--){var
o=i[a],s=r[o];if(s){var
l=s.buffered;0<l.length&&n>l.start(0)&&this.removeBufferRange(o,s,0,n)&&this.hls.tr
igger(x.default.LIVE_BACK_BUFFER_REACHED,{bufferEnd:n})}}else
M.logger.error("flushLiveBackBuffer called without attaching
media")}},r.onLevelUpdated=function(t){var
e=t.details;0<e.fragments.length&&(this._levelDuration=e.totalduration+e.fragments[
0].start,this._levelTargetDuration=e.averagetargetduration||e.targetduration||
10,this._live=e.live,this.updateMediaElementDuration())},r.updateMediaElementDurati
on=function(){var t,e=this.config;if(null!
==this._levelDuration&&this.media&&this.mediaSource&&this.sourceBuffer&&0!
==this.media.readyState&&"open"===this.mediaSource.readyState){for(var r in
this.sourceBuffer){var i=this.sourceBuffer[r];if(i&&!
0===i.updating)return}t=this.media.duration,null===this._msDuration&&(this._msDurat
ion=this.mediaSource.duration),!0===this._live&&!0===e.liveDurationInfinity?
(M.logger.log("Media Source duration is set to
Infinity"),this._msDuration=this.mediaSource.duration=1/0):
(this._levelDuration>this._msDuration&&this._levelDuration>t||!
Object(I.isFiniteNumber)(t))&&(M.logger.log("Updating Media Source duration to
"+this._levelDuration.toFixed(3)),this._msDuration=this.mediaSource.duration=this._
levelDuration)}},r.doFlush=function(){for(;this.flushRange.length;){var
t=this.flushRange[0];if(!this.flushBuffer(t.start,t.end,t.type))return
void(this._needsFlush=!
0);this.flushRange.shift(),this.flushBufferCounter=0}if(0===this.flushRange.length)
{this._needsFlush=!1;var e=0,r=this.sourceBuffer;try{for(var i in r){var
n=r[i];n&&(e+=n.buffered.length)}}catch(t){M.logger.error("error while accessing
sourceBuffer.buffered")}this.appended=e,this.hls.trigger(x.default.BUFFER_FLUSHED)}
},r.doAppending=function(){var
e=this.config,r=this.hls,i=this.segments,t=this.sourceBuffer;if(Object.keys(t).leng
th){if(!this.media||this.media.error)return this.segments=[],void
M.logger.error("trying to append although a media error occured, flush segment and
abort");if(!this.appending){var n=i.shift();if(n)try{var a=t[n.type];if(!a)return
void this._onSBUpdateEnd();if(a.updating)return void i.unshift(n);a.ended=!
1,this.parent=n.parent,a.appendBuffer(n.data),this.appendError=0,this.appended+
+,this.appending=!0}catch(t){M.logger.error("error while trying to append
buffer:"+t.message),i.unshift(n);var
o={type:f.ErrorTypes.MEDIA_ERROR,parent:n.parent,details:"",fatal:!1};22===t.code?
(this.segments=[],o.details=f.ErrorDetails.BUFFER_FULL_ERROR):(this.appendError+
+,o.details=f.ErrorDetails.BUFFER_APPEND_ERROR,this.appendError>e.appendErrorMaxRet
ry&&(M.logger.log("fail "+e.appendErrorMaxRetry+" times to append segment in
sourceBuffer"),this.segments=[],o.fatal=!
0)),r.trigger(x.default.ERROR,o)}}}},r.flushBuffer=function(t,e,r){var
i=this.sourceBuffer;if(!Object.keys(i).length)return!0;var
n="null";if(this.media&&(n=this.media.currentTime.toFixed(3)),M.logger.log("flushBu
ffer,pos/start/end: "+n+"/"+t+"/"+e),this.flushBufferCounter>=this.appended)return
M.logger.warn("abort flushing too many retries"),!0;var a=i[r];if(a){if(a.ended=!
1,a.updating)return M.logger.warn("cannot flush, sb updating in progress"),!
1;if(this.removeBufferRange(r,a,t,e))return this.flushBufferCounter++,!1}return
M.logger.log("buffer flushed"),!0},r.removeBufferRange=function(t,e,r,i)
{try{for(var n=0;n<e.buffered.length;n++){var
a=e.buffered.start(n),o=e.buffered.end(n),s=Math.max(a,r),l=Math.min(o,i);if(.5<Mat
h.min(l,o)-s){var u="null";return
this.media&&(u=this.media.currentTime.toString()),M.logger.log("sb remove "+t+"
["+s+","+l+"], of ["+a+","+o+"], pos:"+u),e.remove(s,l),!0}}}catch(t)
{M.logger.warn("removeBufferRange failed",t)}return!1},t}(u);function Wt(t,e)
{for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!
1,i.configurable=!0,"value"in i&&(i.writable=!
0),Object.defineProperty(t,i.key,i)}}var qt=function(r){function n(t){var
e;return(e=r.call(this,t,x.default.FPS_DROP_LEVEL_CAPPING,x.default.MEDIA_ATTACHING
,x.default.MANIFEST_PARSED,x.default.BUFFER_CODECS,x.default.MEDIA_DETACHING)||
this).autoLevelCapping=Number.POSITIVE_INFINITY,e.firstLevel=null,e.levels=[],e.med
ia=null,e.restrictedLevels=[],e.timer=null,e}!function(t,e)
{t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}
(n,r);var t=n.prototype;return t.destroy=function()
{this.hls.config.capLevelToPlayerSize&&(this.media=null,this.stopCapping())},t.onFp
sDropLevelCapping=function(t)
{n.isLevelAllowed(t.droppedLevel,this.restrictedLevels)&&this.restrictedLevels.push
(t.droppedLevel)},t.onMediaAttaching=function(t){this.media=t.media instanceof
window.HTMLVideoElement?t.media:null},t.onManifestParsed=function(t){var
e=this.hls;this.restrictedLevels=[],this.levels=t.levels,this.firstLevel=t.firstLev
el,e.config.capLevelToPlayerSize&&t.video&&this.startCapping()},t.onBufferCodecs=fu
nction(t)
{this.hls.config.capLevelToPlayerSize&&t.video&&this.startCapping()},t.onLevelsUpda
ted=function(t){this.levels=t.levels},t.onMediaDetaching=function()
{this.stopCapping()},t.detectPlayerSize=function(){if(this.media){var
t=this.levels?this.levels.length:0;if(t){var
e=this.hls;e.autoLevelCapping=this.getMaxLevel(t-
1),e.autoLevelCapping>this.autoLevelCapping&&e.streamController.nextLevelSwitch(),t
his.autoLevelCapping=e.autoLevelCapping}}},t.getMaxLevel=function(r){var
i=this;if(!this.levels)return-1;var t=this.levels.filter(function(t,e){return
n.isLevelAllowed(e,i.restrictedLevels)&&e<=r});return
n.getMaxLevelByMediaSize(t,this.mediaWidth,this.mediaHeight)},t.startCapping=functi
on(){this.timer||
(this.autoLevelCapping=Number.POSITIVE_INFINITY,this.hls.firstLevel=this.getMaxLeve
l(this.firstLevel),clearInterval(this.timer),this.timer=setInterval(this.detectPlay
erSize.bind(this),1e3),this.detectPlayerSize())},t.stopCapping=function()
{this.restrictedLevels=[],this.firstLevel=null,this.autoLevelCapping=Number.POSITIV
E_INFINITY,this.timer&&(this.timer=clearInterval(this.timer),this.timer=null)},n.is
LevelAllowed=function(t,e){return void 0===e&&(e=[]),-
1===e.indexOf(t)},n.getMaxLevelByMediaSize=function(t,e,r){if(!t||t&&!
t.length)return-1
;for(var i,n,a=t.length-1,o=0;o<t.length;o+=1){var s=t[o];if((s.width>=e||
s.height>=r)&&(i=s,!(n=t[o+1])||i.width!==n.width||i.height!==n.height))
{a=o;break}}return a},function(t,e,r){e&&Wt(t.prototype,e),r&&Wt(t,r)}(n,
[{key:"mediaWidth",get:function(){var t,e=this.media;return e&&(t=e.width||
e.clientWidth||e.offsetWidth,t*=n.contentScaleFactor),t}},
{key:"mediaHeight",get:function(){var t,e=this.media;return e&&(t=e.height||
e.clientHeight||e.offsetHeight,t*=n.contentScaleFactor),t}}],
[{key:"contentScaleFactor",get:function(){var
t=1;try{t=window.devicePixelRatio}catch(t){}return t}}]),n}(u);var
Xt=window.performance,Zt=function(e){function t(t){return
e.call(this,t,x.default.MEDIA_ATTACHING)||this}!function(t,e)
{t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}
(t,e);var r=t.prototype;return r.destroy=function()
{this.timer&&clearInterval(this.timer),this.isVideoPlaybackQualityAvailable=!
1},r.onMediaAttaching=function(t){var
e=this.hls.config;e.capLevelOnFPSDrop&&("function"==typeof(this.video=t.media
instanceof window.HTMLVideoElement?
t.media:null).getVideoPlaybackQuality&&(this.isVideoPlaybackQualityAvailable=!
0),clearInterval(this.timer),this.timer=setInterval(this.checkFPSInterval.bind(this
),e.fpsDroppedMonitoringPeriod))},r.checkFPS=function(t,e,r){var i=Xt.now();if(e)
{if(this.lastTime){var n=i-this.lastTime,a=r-this.lastDroppedFrames,o=e-
this.lastDecodedFrames,s=1e3*a/n,l=this.hls;if(l.trigger(x.default.FPS_DROP,
{currentDropped:a,currentDecoded:o,totalDroppedFrames:r}),0<s&&a>l.config.fpsDroppe
dMonitoringThreshold*o){var u=l.currentLevel;M.logger.warn("drop FPS ratio greater
than max allowed value for currentLevel: "+u),0<u&&(-1===l.autoLevelCapping||
l.autoLevelCapping>=u)&&(u-=1,l.trigger(x.default.FPS_DROP_LEVEL_CAPPING,
{level:u,droppedLevel:l.currentLevel}),l.autoLevelCapping=u,l.streamController.next
LevelSwitch())}}this.lastTime=i,this.lastDroppedFrames=r,this.lastDecodedFrames=e}}
,r.checkFPSInterval=function(){var
t=this.video;if(t)if(this.isVideoPlaybackQualityAvailable){var
e=t.getVideoPlaybackQuality();this.checkFPS(t,e.totalVideoFrames,e.droppedVideoFram
es)}else this.checkFPS(t,t.webkitDecodedFrameCount,t.webkitDroppedFrameCount)},t}
(u),Qt=window,Jt=Qt.performance,te=Qt.XMLHttpRequest,ee=function(){function t(t)
{t&&t.xhrSetup&&(this.xhrSetup=t.xhrSetup)}var e=t.prototype;return
e.destroy=function(){this.abort(),this.loader=null},e.abort=function(){var
t=this.loader;t&&4!==t.readyState&&(this.stats.aborted=!
0,t.abort()),window.clearTimeout(this.requestTimeout),this.requestTimeout=null,wind
ow.clearTimeout(this.retryTimeout),this.retryTimeout=null},e.load=function(t,e,r)
{this.context=t,this.config=e,this.callbacks=r,this.stats={trequest:Jt.now(),retry:
0},this.retryDelay=e.retryDelay,this.loadInternal()},e.loadInternal=function(){var
e,r=this.context;e=this.loader=new te;var t=this.stats;t.tfirst=0,t.loaded=0;var
i=this.xhrSetup;try{if(i)try{i(e,r.url)}catch(t){e.open("GET",r.url,!
0),i(e,r.url)}e.readyState||e.open("GET",r.url,!0)}catch(t){return void
this.callbacks.onError({code:e.status,text:t.message},r,e)}r.rangeEnd&&e.setRequest
Header("Range","bytes="+r.rangeStart+"-"+(r.rangeEnd-
1)),e.onreadystatechange=this.readystatechange.bind(this),e.onprogress=this.loadpro
gress.bind(this),e.responseType=r.responseType,this.requestTimeout=window.setTimeou
t(this.loadtimeout.bind(this),this.config.timeout),e.send()},e.readystatechange=fun
ction(t){var
e=t.currentTarget,r=e.readyState,i=this.stats,n=this.context,a=this.config;if(!
i.aborted&&2<=r)if(window.clearTimeout(this.requestTimeout),0===i.tfirst&&(i.tfirst
=Math.max(Jt.now(),i.trequest)),4===r){var o=e.status;if(200<=o&&o<300){var
s,l;i.tload=Math.max(i.tfirst,Jt.now()),l="arraybuffer"===n.responseType?
(s=e.response).byteLength:(s=e.responseText).length,i.loaded=i.total=l;var
u={url:e.responseURL,data:s};this.callbacks.onSuccess(u,i,n,e)}else
i.retry>=a.maxRetry||400<=o&&o<499?(M.logger.error(o+" while loading
"+n.url),this.callbacks.onError({code:o,text:e.statusText},n,e)):(M.logger.warn(o+"
while loading "+n.url+", retrying in
"+this.retryDelay+"..."),this.destroy(),this.retryTimeout=window.setTimeout(this.lo
adInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,a
.maxRetryDelay),i.retry++)}else
this.requestTimeout=window.setTimeout(this.loadtimeout.bind(this),a.timeout)},e.loa
dtimeout=function(){M.logger.warn("timeout while loading
"+this.context.url),this.callbacks.onTimeout(this.stats,this.context,null)},e.loadp
rogress=function(t){var
e=t.currentTarget,r=this.stats;r.loaded=t.loaded,t.lengthComputable&&(r.total=t.tot
al);var i=this.callbacks.onProgress;i&&i(r,this.context,null,e)},t}();function
re(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!
1,i.configurable=!0,"value"in i&&(i.writable=!
0),Object.defineProperty(t,i.key,i)}}var ie=function(r){function t(t){var
e;return(e=r.call(this,t,x.default.MANIFEST_LOADING,x.default.MANIFEST_PARSED,x.def
ault.AUDIO_TRACK_LOADED,x.default.AUDIO_TRACK_SWITCHED,x.default.LEVEL_LOADED,x.def
ault.ERROR)||this)._trackId=-1,e._selectDefaultTrack=!
0,e.tracks=[],e.trackIdBlacklist=Object.create(null),e.audioGroupId=null,e}!
function(t,e){t.prototype=Object.create(e.prototype),
(t.prototype.constructor=t).__proto__=e}(t,r);var e=t.prototype;return
e.onManifestLoading=function(){this.tracks=[],this._trackId=-
1,this._selectDefaultTrack=!0},e.onManifestParsed=function(t){var
e=this.tracks=t.audioTracks||[];this.hls.trigger(x.default.AUDIO_TRACKS_UPDATED,
{audioTracks:e}),this._selectAudioGroup(this.hls.nextLoadLevel)},e.onAudioTrackLoad
ed=function(t){if(t.id>=this.tracks.length)M.logger.warn("Invalid audio track
id:",t.id);else{if(M.logger.log("audioTrack "+t.id+"
loaded"),this.tracks[t.id].details=t.details,t.details.live&&!this.hasInterval())
{var e=1e3*t.details.targetduration;this.setInterval(e)}!
t.details.live&&this.hasInterval()&&this.clearInterval()}},e.onAudioTrackSwitched=f
unction(t){var e=this.tracks[t.id].groupId;e&&this.audioGroupId!
==e&&(this.audioGroupId=e)},e.onLevelLoaded=function(t)
{this._selectAudioGroup(t.level)},e.onError=function(t)
{t.type===f.ErrorTypes.NETWORK_ERROR&&(t.fatal&&this.clearInterval(),t.details===f.
ErrorDetails.AUDIO_TRACK_LOAD_ERROR&&(M.logger.warn("Network failure on audio-track
id:",t.context.id),this._handleLoadError()))},e._setAudioTrack=function(t)
{if(this._trackId===t&&this.tracks[this._trackId].details)M.logger.debug("Same id
as current audio-track passed, and track details available -> no-op");else if(t<0||
t>=this.tracks.length)M.logger.warn("Invalid id passed to audio-track
controller");else{var e=this.tracks[t];M.logger.log("Now switching to audio-track
index "+t),this.clearInterval(),this._trackId=t;var
r=e.url,i=e.type,n=e.id;this.hls.trigger(x.default.AUDIO_TRACK_SWITCHING,
{id:n,type:i,url:r}),this._loadTrackDetailsIfNeeded(e)}},e.doTick=function()
{this._updateTrack(this._trackId)},e._selectAudioGroup=function(t){var
e=this.hls.levels[t];if(e&&e.audioGroupIds){var
r=e.audioGroupIds[e.urlId];this.audioGroupId!
==r&&(this.audioGroupId=r,this._selectInitialAudioTrack())}},e._selectInitialAudioT
rack=function(){var e=this,t=this.tracks;if(t.length){var
r=this.tracks[this._trackId],i=null;if(r&&(i=r.name),this._selectDefaultTrack){var
n=t.filter(function(t){return t.default});n.length?t=n:M.logger.warn("No default
audio tracks defined")}var a=!1,o=function(){t.forEach(function(t){a||
e.audioGroupId&&t.groupId!==e.audioGroupId||i&&i!==t.name||
(e._setAudioTrack(t.id),a=!0)})};o(),a||(i=null,o()),a||(M.logger.error("No track
found for running audio group-ID:
"+this.audioGroupId),this.hls.trigger(x.default.ERROR,
{type:f.ErrorTypes.MEDIA_ERROR,details:f.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,fatal:
!0}))}},e._needsTrackLoading=function(t){var e=t.details,r=t.url;return!(e&&!
e.live)&&!!r},e._loadTrackDetailsIfNeeded=function(t)
{if(this._needsTrackLoading(t)){var e=t.url,r=t.id;M.logger.log("loading audio-
track playlist for id: "+r),this.hls.trigger(x.default.AUDIO_TRACK_LOADING,
{url:e,id:r})}},e._updateTrack=function(t){if(!(t<0||t>=this.tracks.length))
{this.clearInterval(),this._trackId=t,M.logger.log("trying to update audio-track
"+t);var
e=this.tracks[t];this._loadTrackDetailsIfNeeded(e)}},e._handleLoadError=function()
{this.trackIdBlacklist[this._trackId]=!0;var
t=this._trackId,e=this.tracks[t],r=e.name,i=e.language,n=e.groupId;M.logger.warn("L
oading failed on audio track id: "+t+", group-id: "+n+', name/language: "'+r+'" /
"'+i+'"');for(var a=t,o=0;o<this.tracks.length;o++){if(!
this.trackIdBlacklist[o])if(this.tracks[o].name===r){a=o;break}}a!==t?
(M.logger.log("Attempting audio-track fallback id:",a,"group-
id:",this.tracks[a].groupId),this._setAudioTrack(a)):M.logger.warn('No fallback
audio-track found for name/language: "'+r+'" / "'+i+'"')},function(t,e,r)
{e&&re(t.prototype,e),r&&re(t,r)}(t,[{key:"audioTracks",get:function(){return
this.tracks}},{key:"audioTrack",get:function(){return
this._trackId},set:function(t){this._setAudioTrack(t),this._selectDefaultTrack=!
1}}]),t}(gt);function ne(t,e){for(var r=0;r<e.length;r++){var
i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!
0),Object.defineProperty(t,i.key,i)}}function ae(){return{decode:function(t){if(!
t)return"";if("string"!=typeof t)throw new Error("Error - expected string
data.");return decodeURIComponent(encodeURIComponent(t))}}}var
oe=window.performance,se=function(i){function t(t,e){var
r;return(r=i.call(this,t,x.default.MEDIA_ATTACHED,x.default.MEDIA_DETACHING,x.defau
lt.AUDIO_TRACKS_UPDATED,x.default.AUDIO_TRACK_SWITCHING,x.default.AUDIO_TRACK_LOADE
D,x.default.KEY_LOADED,x.default.FRAG_LOADED,x.default.FRAG_PARSING_INIT_SEGMENT,x.
default.FRAG_PARSING_DATA,x.default.FRAG_PARSED,x.default.ERROR,x.default.BUFFER_RE
SET,x.default.BUFFER_CREATED,x.default.BUFFER_APPENDED,x.default.BUFFER_FLUSHED,x.d
efault.INIT_PTS_FOUND)||
this).fragmentTracker=e,r.config=t.config,r.audioCodecSwap=!
1,r._state=mt,r.initPTS=[],r.waitingFragment=null,r.v
ideoTrackCC=null,r}!function(t,e){t.prototype=Object.create(e.prototype),
(t.prototype.constructor=t).__proto__=e}(t,i);var e=t.prototype;return
e.onInitPtsFound=function(t){var
e=t.id,r=t.frag.cc,i=t.initPTS;"main"===e&&(this.initPTS[r]=i,this.videoTrackCC=r,M
.logger.log("InitPTS for cc: "+r+" found from video track:
"+i),this.state===wt&&this.tick())},e.startLoad=function(t){if(this.tracks){var
e=this.lastCurrentTime;this.stopLoad(),this.setInterval(100),
(this.fragLoadError=0)<e&&-1===t?(M.logger.log("audio:override startPosition with
lastCurrentTime @"+e.toFixed(3)),this.state=yt):
(this.lastCurrentTime=this.startPosition?
this.startPosition:t,this.state=vt),this.nextLoadPosition=this.startPosition=this.l
astCurrentTime,this.tick()}else
this.startPosition=t,this.state=mt},e.doTick=function(){var
t,e,r,i=this.hls,n=i.config;switch(this.state){case Ct:case At:case Lt:break;case
vt:this.state=Tt,this.loadedmetadata=!1;break;case yt:var a=this.tracks;if(!
a)break;if(!this.media&&(this.startFragRequested||!
n.startFragPrefetch))break;if(this.loadedmetadata)t=this.media.currentTime;else
if(void 0===(t=this.nextLoadPosition))break;var o=this.mediaBuffer?
this.mediaBuffer:this.media,s=this.videoBuffer?
this.videoBuffer:this.media,l=$.bufferInfo(o,t,n.maxBufferHole),u=$.bufferInfo(s,t,
n.maxBufferHole),d=l.len,c=l.end,f=this.fragPrevious,h=Math.min(n.maxBufferLength,n
.maxMaxBufferLength),p=Math.max(h,u.len),g=this.audioSwitch,m=this.trackId;if((d<p|
|g)&&m<a.length){if(void 0===(r=a[m].details)){this.state=Tt;break}if(!
g&&this._streamEnded(l,r))return this.hls.trigger(x.default.BUFFER_EOS,
{type:"audio"}),void(this.state=Rt);var
v,y=r.fragments,A=y.length,_=y[0].start,b=y[A-1].start+y[A-
1].duration;if(g)if(r.live&&!r.PTSKnown)M.logger.log("switching audiotrack, live
stream, unknown PTS,load first fragment"),c=0;else if(c=t,r.PTSKnown&&t<_){if(!
(l.end>_||l.nextStart))return;M.logger.log("alt audio track ahead of main track,
seek to start of alt audio track"),this.media.currentTime=_+.05}if(r.initSegment&&!
r.initSegment.data)v=r.initSegment;else if(c<=_){if(v=y[0],null!
==this.videoTrackCC&&v.cc!==this.videoTrackCC&&(v=function(t,e){return
H.search(t,function(t){return t.cc<e?1:t.cc>e?-1:0})}
(y,this.videoTrackCC)),r.live&&v.loadIdx&&v.loadIdx===this.fragLoadIdx){var
E=l.nextStart?l.nextStart:_;return M.logger.log("no alt audio available
@currentTime:"+this.media.currentTime+", seeking @"+
(E+.05)),void(this.media.currentTime=E+.05)}}else{var
T,S=n.maxFragLookUpTolerance,k=f?y[f.sn-y[0].sn+1]:void 0,L=function(t){var
e=Math.min(S,t.duration);return t.start+t.duration-e<=c?1:t.start-e>c&&t.start?-
1:0};(T=c<b?(b-S<c&&(S=0),k&&!L(k)?k:H.search(y,L)):y[A-
1])&&(_=(v=T).start,f&&v.level===f.level&&v.sn===f.sn&&(v.sn<r.endSN?(v=y[v.sn+1-
r.startSN],M.logger.log("SN just loaded, load next one:
"+v.sn)):v=null))}v&&(v.encrypted?(M.logger.log("Loading key for "+v.sn+" of
["+r.startSN+" ,"+r.endSN+"],track
"+m),this.state=_t,i.trigger(x.default.KEY_LOADING,{frag:v})):
(M.logger.log("Loading "+v.sn+", cc: "+v.cc+" of ["+r.startSN+" ,"+r.endSN+"],track
"+m+", currentTime:"+t+",bufferEnd:"+c.toFixed(3)),this.fragCurrent=v,!
g&&this.fragmentTracker.getState(v)!==j||("initSegment"!
==v.sn&&(this.startFragRequested=!0),Object(I.isFiniteNumber)
(v.sn)&&(this.nextLoadPosition=v.start+v.duration),i.trigger(x.default.FRAG_LOADING
,{frag:v}),this.state=bt)))}break;case Tt:
(e=this.tracks[this.trackId])&&e.details&&(this.state=yt);break;case Et:var
R=oe.now(),C=this.retryDate,w=(o=this.media)&&o.seeking;(!C||C<=R||
w)&&(M.logger.log("audioStreamController: retryDate reached, switch back to IDLE
state"),this.state=yt);break;case wt:var O=this.videoTrackCC;if(void
0===this.initPTS[O])break;var P=this.waitingFragment;if(P){var D=P.frag.cc;O!==D?
(e=this.tracks[this.trackId]).details&&e.details.live&&(M.logger.warn("Waiting
fragment CC ("+D+") does not match video track CC
("+O+")"),this.waitingFragment=null,this.state=yt):
(this.state=bt,this.onFragLoaded(this.waitingFragment),this.waitingFragment=null)}e
lse this.state=yt}},e.onMediaAttached=function(t){var
e=this.media=this.mediaBuffer=t.media;this.onvseeking=this.onMediaSeeking.bind(this
),this.onvended=this.onMediaEnded.bind(this),e.addEventListener("seeking",this.onvs
eeking),e.addEventListener("ended",this.onvended);var
r=this.config;this.tracks&&r.autoStartLoad&&this.startLoad(r.startPosition)},e.onMe
diaDetaching=function(){var t=this.media;t&&t.ended&&(M.logger.log("MSE detaching
and video ended, reset
startPosition"),this.startPosition=this.lastCurrentTime=0),t&&(t.removeEventListene
r("seeking",this.onvseeking),t.removeEventListener("ended",this.onvended),this.onvs
eeking=this.onvseeked=this.onvended=null),this.media=this.mediaBuffer=this.videoBuf
fer=null,this.loadedmetadata=!
1,this.fragmentTracker.removeAllFragments(),this.stopLoad()},e.onAudioTracksUpdated
=function(t){M.logger.log("audio tracks
updated"),this.tracks=t.audioTracks},e.onAudioTrackSwitching=function(t){var e=!!
t.url;this.trackId=t.id,this.fragCurrent=null,this.state=At,this.waitingFragment=nu
ll,e?
this.setInterval(100):this.demuxer&&(this.demuxer.destroy(),this.demuxer=null),e&&(
this.audioSwitch=!0,this.state=yt),this.tick()},e.onAudioTrackLoaded=function(t)
{var
e=t.details,r=t.id,i=this.tracks[r],n=e.totalduration,a=0;if(M.logger.log("track
"+r+" loaded ["+e.startSN+","+e.endSN+"],duration:"+n),e.live){var
o=i.details;o&&0<e.fragments.length?(at(o,e),a=e.fragments[0].start,e.PTSKnown?
M.logger.log("live audio playlist sliding:"+a.toFixed(3)):M.logger.log("live audio
playlist - outdated PTS, unknown sliding")):(e.PTSKnown=!1,M.logger.log("live audio
playlist - first load, unknown sliding"))}else e.PTSKnown=!1;if(i.details=e,!
this.startFragRequested){if(-1===this.startPosition){var
s=e.startTimeOffset;Object(I.isFiniteNumber)(s)?(M.logger.log("start time offset
found in playlist, adjust startPosition to "+s),this.startPosition=s):e.live?
(this.startPosition=this.computeLivePosition(a,e),M.logger.log("compute
startPosition for audio-track to
"+this.startPosition)):this.startPosition=0}this.nextLoadPosition=this.startPositio
n}this.state===Tt&&(this.state=yt),this.tick()},e.onKeyLoaded=function()
{this.state===_t&&(this.state=yt,this.tick())},e.onFragLoaded=function(t){var
e=this.fragCurrent,r=t.frag;if(this.state===bt&&e&&"audio"===r.type&&r.level===e.le
vel&&r.sn===e.sn){var
i=this.tracks[this.trackId],n=i.details,a=n.totalduration,o=e.level,s=e.sn,l=e.cc,u
=this.config.defaultAudioCodec||
i.audioCodec||"mp4a.40.2",d=this.stats=t.stats;if("initSegment"===s)this.state=yt,d
.tparsed=d.tbuffered=oe.now(),n.initSegment.data=t.payload,this.hls.trigger(x.defau
lt.FRAG_BUFFERED,
{stats:d,frag:e,id:"audio"}),this.tick();else{this.state=St,this.appended=!
1,this.demuxer||(this.demuxer=new et(this.hls,"audio"));var
c=this.initPTS[l],f=n.initSegment?n.initSegment.data:[];if(n.initSegment||void 0!
==c){this.pendingBuffering=!0,M.logger.log("Demuxing "+s+" of
["+n.startSN+" ,"+n.endSN+"],track "+o);this.demuxer.push(t.payload,f,u,null,e,a,!
1,c)}else M.logger.log("unknown video PTS for continuity counter "+l+", waiting for
video PTS before demuxing audio frag "+s+" of ["+n.startSN+" ,"+n.endSN+"],track
"+o),this.waitingFragment=t,this.state=wt}}this.fragLoadError=0},e.onFragParsingIni
tSegment=function(t){var
e=this.fragCurrent,r=t.frag;if(e&&"audio"===t.id&&r.sn===e.sn&&r.level===e.level&&t
his.state===St){var i,n=t.tracks;if(n.video&&delete n.video,i=n.audio)
{i.levelCodec=i.codec,i.id=t.id,this.hls.trigger(x.default.BUFFER_CODECS,n),M.logge
r.log("audio
track:audio,container:"+i.container+",codecs[level/parsed]=["+i.levelCodec+"/"+i.co
dec+"]");var a=i.initSegment;if(a){var
o={type:"audio",data:a,parent:"audio",content:"initSegment"};this.audioSwitch?
this.pendingData=[o]:(this.appended=!0,this.pendingBuffering=!
0,this.hls.trigger(x.default.BUFFER_APPENDING,o))}this.tick()}}},e.onFragParsingDat
a=function(e){var
r=this,t=this.fragCurrent,i=e.frag;if(t&&"audio"===e.id&&"audio"===e.type&&i.sn===t
.sn&&i.level===t.level&&this.state===St){var
n=this.trackId,a=this.tracks[n],o=this.hls;Object(I.isFiniteNumber)(e.endPTS)||
(e.endPTS=e.startPTS+t.duration,e.endDTS=e.startDTS+t.duration),t.addElementaryStre
am(h.AUDIO),M.logger.log("parsed "+e.type+",PTS:
["+e.startPTS.toFixed(3)+","+e.endPTS.toFixed(3)+"],DTS:
["+e.startDTS.toFixed(3)+"/"+e.endDTS.toFixed(3)+"],nb:"+e.nb),nt(a.details,t,e.sta
rtPTS,e.endPTS);var s=this.audioSwitch,l=this.media,u=!1;if(s)if(l&&l.readyState)
{var d=l.currentTime;M.logger.log("switching audio track :
currentTime:"+d),d>=e.startPTS&&(M.logger.log("switching audio track : flushing all
audio"),this.state=Lt,o.trigger(x.default.BUFFER_FLUSHING,
{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),u=!
0,this.audioSwitch=!1,o.trigger(x.default.AUDIO_TRACK_SWITCHED,{id:n}))}else
this.audioSwitch=!1,o.trigger(x.default.AUDIO_TRACK_SWITCHED,{id:n});var
c=this.pendingData;if(!c)return M.logger.warn("Apparently attempt to enqueue media
payload without codec initialization data upfront"),void o.trigger(x.default.ERROR,
{type:f.ErrorTypes.MEDIA_ERROR,details:null,fatal:!0});this.audioSwitch||
([e.data1,e.data2].forEach(function(t)
{t&&t.length&&c.push({type:e.type,data:t,parent:"audio",content:"data"})}),!
u&&c.length&&(c.forEach(function(t){r.state===St&&(r.pendingBuffering=!
0,r.hls.trigger(x.default.BUFFER_APPENDING,t))}),this.pendingData=[],this.appended=
!0)),this.tick()}},e.onFragParsed=function(t){var
e=this.fragCurrent,r=t.frag;e&&"audio"===t.id&&r.sn===e.sn&&r.level===e.level&&this
.state===St&&(this.stats.tparsed=oe.now(),this.state=kt,this._checkAppendedParsed()
)},e.onBufferReset=function()
{this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!
1},e.onBufferCreated=function(t){var
e=t.tracks.audio;e&&(this.mediaBuffer=e.buffer,this.loadedmetadata=!
0),t.tracks.video&&(this.videoBuffer=t.tracks.video.buffer)},e.onBufferAppended=fun
ction(t){if("audio"===t.parent){var
e=this.state;e!==St&&e!==kt||
(this.pendingBuffering=0<t.pending,this._checkAppendedParsed())}},e._checkAppendedP
arsed=function(){if(!(this.state!==kt||this.appended&&this.pendingBuffering)){var
t=this.fragCurrent,e=this.stats,r=this.hls;if(t)
{this.fragPrevious=t,e.tbuffered=oe.now(),r.trigger(x.default.FRAG_BUFFERED,
{stats:e,frag:t,id:"audio"});var i=this.mediaBuffer?
this.mediaBuffer:this.media;i&&M.logger.log("audio buffered :
"+lt.toString(i.buffered)),this.audioSwitch&&this.appended&&(this.audioSwitch=!
1,r.trigger(x.default.AUDIO_TRACK_SWITCHED,
{id:this.trackId})),this.state=yt}this.tick()}},e.onError=function(t){var
e=t.frag;if(!e||"audio"===e.type)switch(t.details){case
f.ErrorDetails.FRAG_LOAD_ERROR:case f.ErrorDetails.FRAG_LOAD_TIMEOUT:var
r=t.frag;if(r&&"audio"!==r.type)break;if(!t.fatal){var i=this.fragLoadError;i?i+
+:i=1;var n=this.config;if(i<=n.fragLoadingMaxRetry){this.fragLoadError=i;var
a=Math.min(Math.pow(2,i-
1)*n.fragLoadingRetryDelay,n.fragLoadingMaxRetryTimeout);M.logger.warn("AudioStream
Controller: frag loading failed, retry in "+a+" ms"),this.retryDate=oe.now()
+a,this.state=Et}else M.logger.error("AudioStreamController: "+t.details+" reaches
max retry, redispatch as fatal ..."),t.fatal=!0,this.state=Ct}break;case
f.ErrorDetails.AUDIO_TRACK_LOAD_ERROR:case
f.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:case f.ErrorDetails.KEY_LOAD_ERROR:case
f.ErrorDetails.KEY_LOAD_TIMEOUT:this.state!==Ct&&(this.state=t.fatal?
Ct:yt,M.logger.warn("AudioStreamController: "+t.details+" while loading frag, now
switching to "+this.state+" state ..."));break;case
f.ErrorDetails.BUFFER_FULL_ERROR:if("audio"===t.parent&&(this.state===St||
this.state===kt)){var
o=this.mediaBuffer,s=this.media.currentTime;if(o&&$.isBuffered(o,s)&&$.isBuffered(o
,s+.5)){var
l=this.config;l.maxMaxBufferLength>=l.maxBufferLength&&(l.maxMaxBufferLength/
=2,M.logger.warn("AudioStreamController: reduce max buffer length to
"+l.maxMaxBufferLength+"s")),this.state=yt}else
M.logger.warn("AudioStreamController: buffer full error also media.currentTime is
not buffered, flush audio
buffer"),this.fragCurrent=null,this.state=Lt,this.hls.trigger(x.default.BUFFER_FLUS
HING,
{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"})}}},e.onBufferFlush
ed=function(){var e=this,t=this.pendingData;t&&t.length?
(M.logger.log("AudioStreamController: appending pending audio data after buffer
flushed"),t.forEach(function(t)
{e.hls.trigger(x.default.BUFFER_APPENDING,t)}),this.appended=!
0,this.pendingData=[],this.state=kt):
(this.state=yt,this.fragPrevious=null,this.tick())},function(t,e,r)
{e&&ne(t.prototype,e),r&&ne(t,r)}(t,[{key:"state",set:function(t){if(this.state!
==t){var e=this.state;this._state=t,M.logger.log("audio stream:"+e+"-
>"+t)}},get:function(){return this._state}}]),t}(Pt),le=function(){if("undefined"!
=typeof window&&window.VTTCue)return window.VTTCue;var A={"":!0,lr:!0,rl:!
0},e={start:!0,middle:!0,end:!0,left:!0,right:!0};function _(t)
{return"string"==typeof t&&(!!e[t.toLowerCase()]&&t.toLowerCase())}function b(t)
{for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in
r)t[i]=r[i]}return t}function t(t,e,r){var i=this,n={enumerable:!
0};i.hasBeenReset=!1;var a="",o=!1,s=t,l=e,u=r,d=null,c="",f=!
0,h="auto",p="start",g=50,m="middle",v=50,y="middle";Object.defineProperty(i,"id",b
({},n,{get:function(){return a},set:function(t)
{a=""+t}})),Object.defineProperty(i,"pauseOnExit",b({},n,{get:function(){return
o},set:function(t){o=!!t}})),Object.defineProperty(i,"startTime",b({},n,
{get:function(){return s},set:function(t){if("number"!=typeof t)throw new
TypeError("Start time must be set to a number.");s=t,this.hasBeenReset=!
0}})),Object.defineProperty(i,"endTime",b({},n,{get:function(){return
l},set:function(t){if("number"!=typeof t)throw new TypeError("End time must be set
to a number.");l=t,this.hasBeenReset=!0}})),Object.defineProperty(i,"text",b({},n,
{get:function(){return u},set:function(t){u=""+t,this.hasBeenReset=!
0}})),Object.defineProperty(i,"region",b({},n,{get:function(){return
d},set:function(t){d=t,this.hasBeenReset=!
0}})),Object.defineProperty(i,"vertical",b({},n,{get:function(){return
c},set:function(t){var e=function(t){return"string"==typeof t&&(!!
A[t.toLowerCase()]&&t.toLowerCase())}(t);if(!1===e)throw new SyntaxError("An
invalid or illegal string was specified.");c=e,this.hasBeenReset=!
0}})),Object.defineProperty(i,"snapToLines",b({},n,{get:function(){return
f},set:function(t){f=!!t,this.hasBeenReset=!
0}})),Object.defineProperty(i,"line",b({},n,{get:function(){return
h},set:function(t){if("number"!=typeof t&&"auto"!==t)throw new SyntaxError("An
invalid number or illegal string was specified.");h=t,this.hasBeenReset=!
0}})),Object.defineProperty(i,"lineAlign",b({},n,{get:function(){return
p},set:function(t){var e=_(t);if(!e)throw new SyntaxError("An invalid or illegal
string was specified.");p=e,this.hasBeenReset=!
0}})),Object.defineProperty(i,"position",b({},n,{get:function(){return
g},set:function(t){if(t<0||100<t)throw new Error("Position must be between 0 and
100.");g=t,this.hasBeenReset=!0}})),Object.defineProperty(i,"positionAlign",b({},n,
{get:function(){return m},set:function(t){var e=_(t);if(!e)throw new
SyntaxError("An invalid or illegal string was specified.");m=e,this.hasBeenReset=!
0}})),Object.defineProperty(i,"size",b({},n,{get:function(){return
v},set:function(t){if(t<0||100<t)throw new Error("Size must be between 0 and
100.");v=t,this.hasBeenReset=!0}})),Object.defineProperty(i,"align",b({},n,
{get:function(){return y},set:function(t){var e=_(t);if(!e)throw new
SyntaxError("An invalid or illegal string was specified.");y=e,this.hasBeenReset=!
0}})),i.displayState=void 0}return t.prototype.getCueAsHTML=function(){return
window.WebVTT.convertCueToDOMTree(window,this.text)},t}();function ue()
{this.window=window,this.state="INITIAL",this.buffer="",this.decoder=new
ae,this.regionList=[]}function de(){this.values=Object.create(null)}function
ce(t,e,r,i){var n=i?t.split(i):[t];for(var a in n)if("string"==typeof n[a]){var
o=n[a].split(r);if(2===o.length)e(o[0],o[1])}}de.prototype={set:function(t,e)
{this.get(t)||""===e||(this.values[t]=e)},get:function(t,e,r){return r?this.has(t)?
this.values[t]:e[r]:this.has(t)?this.values[t]:e},has:function(t){return t in
this.values},alt:function(t,e,r){for(var i=0;i<r.length;++i)if(e===r[i])
{this.set(t,e);break}},integer:function(t,e){/^-?\d+
$/.test(e)&&this.set(t,parseInt(e,10))},percent:function(t,e){return!!(e.match(/
^([\d]{1,3})(\.[\d]*)?%$/)&&0<=(e=parseFloat(e))&&e<=100)&&(this.set(t,e),!0)}};var
fe=new le(0,0,0),he="middle"===fe.align?"middle":"center";function pe(e,t,o){var
r=e;function i(){var t=function(t){function e(t,e,r,i){return 3600*(0|t)+60*(0|e)
+(0|r)+(0|i)/1e3}var r=t.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return r?r[3]?
e(r[1],r[2],r[3].replace(":",""),r[4]):59<r[1]?
e(r[1],r[2],0,r[4]):e(0,r[1],r[2],r[4]):null}(e);if(null===t)throw new
Error("Malformed timestamp: "+r);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function
n(){e=e.replace(/^\s+/,"")}if(n(),t.startTime=i(),n(),"--\x3e"!
==e.substr(0,3))throw new Error("Malformed time stamp (time stamps must be
separated by '--\x3e'): "+r);e=e.substr(3),n(),t.endTime=i(),n(),function(t,e){var
a=new de;ce(t,function(t,e){switch(t){case"region":for(var r=o.length-
1;0<=r;r--)if(o[r].id===e)
{a.set(t,o[r].region);break}break;case"vertical":a.alt(t,e,
["rl","lr"]);break;case"line":var
i=e.split(","),n=i[0];a.integer(t,n),a.percent(t,n)&&a.set("snapToLines",!
1),a.alt(t,n,["auto"]),2===i.length&&a.alt("lineAlign",i[1],
["start",he,"end"]);break;case"position":i=e.split(","),a.percent(t,i[0]),2===i.len
gth&&a.alt("positionAlign",i[1],["start",he,"end","line-left","line-
right","auto"]);break;case"size":a.percent(t,e);break;case"align":a.alt(t,e,
["start",he,"end","left","right"])}},/:/,/\
s/),e.region=a.get("region",null),e.vertical=a.get("vertical","");var
r=a.get("line","auto");"auto"===r&&-1===fe.line&&(r=-
1),e.line=r,e.lineAlign=a.get("lineAlign","start"),e.snapToLines=a.get("snapToLines
",!0),e.size=a.get("size",100),e.align=a.get("align",he);var
i=a.get("position","auto");"auto"===i&&50===fe.position&&(i="start"===e.align||"lef
t"===e.align?0:"end"===e.align||"right"===e.align?100:50),e.position=i}
(e,t)}function ge(t){return t.replace(/<br(?: \/)?>/gi,"\
n")}ue.prototype={parse:function(t){var i=this;function e(){var
t=i.buffer,e=0;for(t=ge(t);e<t.length&&"\r"!==t[e]&&"\n"!==t[e];)++e;var
r=t.substr(0,e);return"\r"===t[e]&&++e,"\n"===t[e]&&+
+e,i.buffer=t.substr(e),r}t&&(i.buffer+=i.decoder.decode(t,{stream:!0}));try{var
r;if("INITIAL"===i.state){if(!/\r\n|\n/.test(i.buffer))return this;var
n=(r=e()).match(/^()?WEBVTT([ \t].*)?$/);if(!n||!n[0])throw new Error("Malformed
WebVTT signature.");i.state="HEADER"}for(var a=!1;i.buffer;){if(!/\r\n|\
n/.test(i.buffer))return this;switch(a?a=!1:r=e(),i.state)
{case"HEADER":/:/.test(r)?ce(r,function(t,e){},/:/):r||
(i.state="ID");continue;case"NOTE":r||(i.state="ID");continue;case"ID":if(/^NOTE($|
[ \t])/.test(r)){i.state="NOTE";break}if(!r)continue;if(i.cue=new
le(0,0,""),i.state="CUE",-1===r.indexOf("--\x3e"))
{i.cue.id=r;continue}case"CUE":try{pe(r,i.cue,i.regionList)}catch(t)
{i.cue=null,i.state="BADCUE";continue}i.state="CUETEXT";continue;case"CUETEXT":var
o=-1!==r.indexOf("--\x3e");if(!r||o&&(a=!0))
{i.oncue&&i.oncue(i.cue),i.cue=null,i.state="ID";continue}i.cue.text&&(i.cue.text+=
"\n"),i.cue.text+=r;continue;case"BADCUE":r||(i.state="ID");continue}}}catch(t)
{"CUETEXT"===i.state&&i.cue&&i.oncue&&i.oncue(i.cue),i.cue=null,i.state="INITIAL"==
=i.state?"BADWEBVTT":"BADCUE"}return this},flush:function()
{try{if(this.buffer+=this.decoder.decode(),!this.cue&&"HEADER"!==this.state||
(this.buffer+="\n\n",this.parse()),"INITIAL"===this.state)throw new
Error("Malformed WebVTT signature.")}catch(t){throw t}return
this.onflush&&this.onflush(),this}};var me=ue;function ve(t,e,r,i){for(var
n,a,o,s,l,u=window.VTTCue||TextTrackCue,d=0;d<i.rows.length;d++)if(o=!0,s=0,l="",!
(n=i.rows[d]).isEmpty()){for(var
c=0;c<n.chars.length;c++)n.chars[c].uchar.match(/\s/)&&o?s++:
(l+=n.chars[c].uchar,o=!1);(n.cueStartTime=e)===r&&(r+=1e-4),a=new
u(e,r,ge(l.trim())),16<=s?s--:s++,navigator.userAgent.match(/Firefox\//)?
a.line=d+1:a.line=7<d?d-2:d+1,a.align="left",a.position=Math.max(0,Math.min(100,s/
32*100)),t.addCue(a)}}function ye(t){var e=t;return
be.hasOwnProperty(t)&&(e=be[t]),String.fromCharCode(e)}var
Ae,_e,be={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:96
08,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32
,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,14
8:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,1
58:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,16
8:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:2
05,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,18
9:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9
475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},Ee={17:1,1
8:3,21:5,22:7,23:9,16:11,19:12,20:14},Te={17:2,18:4,21:6,22:8,23:10,19:13,20:15},Se
={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},ke={25:2,26:4,29:6,30:8,31:10,27:13,2
8:15},Le=["white","green","blue","cyan","red","yellow","magenta","black","transpare
nt"];(_e=Ae||(Ae={}))
[_e.ERROR=0]="ERROR",_e[_e.TEXT=1]="TEXT",_e[_e.WARNING=2]="WARNING",_e[_e.INFO=2]=
"INFO",_e[_e.DEBUG=3]="DEBUG",_e[_e.DATA=3]="DATA";function Re(t){for(var
e=[],r=0;r<t.length;r++)e.push(t[r].toString(16));return e}function Ce(t,e,r)
{return t.substr(r||0,e.length)===e}function we(t){for(var
e=5381,r=t.length;r;)e=33*e^t.charCodeAt(--r);return(e>>>0).toString()}var
Oe={verboseFilter:
{DATA:3,DEBUG:3,INFO:2,WARNING:2,TEXT:1,ERROR:0},time:null,verboseLevel:0,setTime:f
unction(t){this.time=t},log:function(t,e)
{this.verboseFilter[t];this.verboseLevel}},Pe=function(){function t(t,e,r,i,n)
{this.foreground=void 0,this.underline=void 0,this.italics=void
0,this.background=void 0,this.flash=void
0,this.foreground=t||"white",this.underline=e||!1,this.italics=r||!
1,this.background=i||"black",this.flash=n||!1}var e=t.prototype;return
e.reset=function(){this.foreground="white",this.underline=!1,this.italics=!
1,this.background="black",this.flash=!1},e.setStyles=function(t){for(var
e=["foreground","underline","italics","background","flash"],r=0;r<e.length;r++){var
i=e[r];t.hasOwnProperty(i)&&(this[i]=t[i])}},e.isDefault=function()
{return"white"===this.foreground&&!this.underline&&!
this.italics&&"black"===this.background&&!this.flash},e.equals=function(t){return
this.foreground===t.foreground&&this.underline===t.underline&&this.italics===t.ital
ics&&this.background===t.background&&this.flash===t.flash},e.copy=function(t)
{this.foreground=t.foreground,this.underline=t.underline,this.italics=t.italics,thi
s.background=t.background,this.flash=t.flash},e.toString=function()
{return"color="+this.foreground+", underline="+this.underline+",
italics="+this.italics+", background="+this.background+", flash="+this.flash},t}
(),De=function(){function t(t,e,r,i,n,a){this.uchar=void 0,this.penState=void
0,this.uchar=t||" ",this.penState=new Pe(e,r,i,n,a)}var e=t.prototype;return
e.reset=function(){this.uchar=" ",this.penState.reset()},e.setChar=function(t,e)
{this.uchar=t,this.penState.copy(e)},e.setPenState=function(t)
{this.penState.copy(t)},e.equals=function(t){return
this.uchar===t.uchar&&this.penState.equals(t.penState)},e.copy=function(t)
{this.uchar=t.uchar,this.penState.copy(t.penState)},e.isEmpty=function(){return"
"===this.uchar&&this.penState.isDefault()},t}(),Ie=function(){function t()
{this.chars=void 0,this.pos=void 0,this.currPenState=void 0,this.cueStartTime=void
0,this.chars=[];for(var t=0;t<100;t++)this.chars.push(new
De);this.pos=0,this.currPenState=new Pe}var e=t.prototype;return
e.equals=function(t){for(var e=!0,r=0;r<100;r++)if(!
this.chars[r].equals(t.chars[r])){e=!1;break}return e},e.copy=function(t){for(var
e=0;e<100;e++)this.chars[e].copy(t.chars[e])},e.isEmpty=function(){for(var t=!
0,e=0;e<100;e++)if(!this.chars[e].isEmpty()){t=!1;break}return
t},e.setCursor=function(t){this.pos!==t&&(this.pos=t),this.pos<0?
(Oe.log("ERROR","Negative cursor position
"+this.pos),this.pos=0):100<this.pos&&(Oe.log("ERROR","Too large cursor position
"+this.pos),this.pos=100)},e.moveCursor=function(t){var e=this.pos+t;if(1<t)for(var
r=this.pos+1;r<e+1;r+
+)this.chars[r].setPenState(this.currPenState);this.setCursor(e)},e.backSpace=funct
ion(){this.moveCursor(-1),this.chars[this.pos].setChar("
",this.currPenState)},e.insertChar=function(t){144<=t&&this.backSpace();var
e=ye(t);100<=this.pos?Oe.log("ERROR","Cannot insert "+t.toString(16)+" ("+e+") at
position "+this.pos+". Skipping it!"):
(this.chars[this.pos].setChar(e,this.currPenState),this.moveCursor(1))},e.clearFrom
Pos=function(t){var e;for(e=t;e<100;e++)this.chars[e].reset()},e.clear=function()
{this.clearFromPos(0),this.pos=0,this.currPenState.reset()},e.clearToEndOfRow=funct
ion(){this.clearFromPos(this.pos)},e.getTextString=function(){for(var t=[],e=!
0,r=0;r<100;r++){var i=this.chars[r].uchar;" "!==i&&(e=!1),t.push(i)}return
e?"":t.join("")},e.setPenStyles=function(t)
{this.currPenState.setStyles(t),this.chars[this.pos].setPenState(this.currPenState)
},t}(),xe=function(){function t(){this.rows=void 0,this.currRow=void
0,this.nrRollUpRows=void 0,this.lastOutputScreen=void 0,this.rows=[];for(var
t=0;t<15;t++)this.rows.push(new
Ie);this.currRow=14,this.nrRollUpRows=null,this.reset()}var e=t.prototype;return
e.reset=function(){for(var t=0;t<15;t+
+)this.rows[t].clear();this.currRow=14},e.equals=function(t){for(var e=!
0,r=0;r<15;r++)if(!this.rows[r].equals(t.rows[r])){e=!1;break}return
e},e.copy=function(t){for(var e=0;e<15;e+
+)this.rows[e].copy(t.rows[e])},e.isEmpty=function(){for(var t=!0,e=0;e<15;e++)if(!
this.rows[e].isEmpty()){t=!1;break}return t},e.backSpace=function()
{this.rows[this.currRow].backSpace()},e.clearToEndOfRow=function()
{this.rows[this.currRow].clearToEndOfRow()},e.insertChar=function(t)
{this.rows[this.currRow].insertChar(t)},e.setPen=function(t)
{this.rows[this.currRow].setPenStyles(t)},e.moveCursor=function(t)
{this.rows[this.currRow].moveCursor(t)},e.setCursor=function(t)
{Oe.log("INFO","setCursor:
"+t),this.rows[this.currRow].setCursor(t)},e.setPAC=function(t)
{Oe.log("INFO","pacData = "+JSON.stringify(t));var e=t.row-
1;if(this.nrRollUpRows&&e<this.nrRollUpRows-1&&(e=this.nrRollUpRows-
1),this.nrRollUpRows&&this.currRow!==e){for(var r=0;r<15;r+
+)this.rows[r].clear();var i=this.currRow+1-
this.nrRollUpRows,n=this.lastOutputScreen;if(n){var
a=n.rows[i].cueStartTime;if(a&&Oe.time&&a<Oe.time)for(var
o=0;o<this.nrRollUpRows;o++)this.rows[e-
this.nrRollUpRows+o+1].copy(n.rows[i+o])}}this.currRow=e;var
s=this.rows[this.currRow];if(null!==t.indent){var l=t.indent,u=Math.max(l-
1,0);s.setCursor(t.indent),t.color=s.chars[u].penState.foreground}var
d={foreground:t.color,underline:t.underline,italics:t.italics,background:"black",fl
ash:!1};this.setPen(d)},e.setBkgData=function(t){Oe.log("INFO","bkgData =
"+JSON.stringify(t)),this.backSpace(),this.setPen(t),this.insertChar(32)},e.setRoll
UpRows=function(t){this.nrRollUpRows=t},e.rollUp=function(){if(null!
==this.nrRollUpRows){Oe.log("TEXT",this.getDisplayText());var t=this.currRow+1-
this.nrRollUpRows,e=this.rows.splice(t,1)
[0];e.clear(),this.rows.splice(this.currRow,0,e),Oe.log("INFO","Rolling up")}else
Oe.log("DEBUG","roll_up but nrRollUpRows not set
yet")},e.getDisplayText=function(t){t=t||!1;for(var e=[],r="",i=-1,n=0;n<15;n++)
{var a=this.rows[n].getTextString();a&&(i=n+1,t?e.push("Row "+i+":
'"+a+"'"):e.push(a.trim()))}return 0<e.length&&(r=t?"["+e.join(" | ")+"]":e.join("\
n")),r},e.getTextAndFormat=function(){return this.rows},t}(),Me=function(){function
t(t,e){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void
0,this.displayedMemory=void 0,this.nonDisplayedMemory=void
0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void
0,this.cueStartTime=void 0,this.lastCueEndTime=void
0,this.chNr=t,this.outputFilter=e,this.mode=null,this.verbose=0,this.displayedMemor
y=new xe,this.nonDisplayedMemory=new xe,this.lastOutputScreen=new
xe,this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayed
Memory,this.mode=null,this.cueStartTime=null}var e=t.prototype;return
e.reset=function()
{this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.l
astOutputScreen.reset(),this.currRollUpRow=this.displayedMemory.rows[14],this.write
Screen=this.displayedMemory,this.mode=null,this.cueStartTime=null},e.getHandler=fun
ction(){return this.outputFilter},e.setHandler=function(t)
{this.outputFilter=t},e.setPAC=function(t)
{this.writeScreen.setPAC(t)},e.setBkgData=function(t)
{this.writeScreen.setBkgData(t)},e.setMode=function(t){t!
==this.mode&&(this.mode=t,Oe.log("INFO","MODE="+t),"MODE_POP-ON"===this.mode?
this.writeScreen=this.nonDisplayedMemory:
(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),"MODE_ROLL-UP"!
==this.mode&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRoll
UpRows=null),this.mode=t)},e.insertChars=function(t){for(var e=0;e<t.length;e+
+)this.writeScreen.insertChar(t[e]);var
r=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";Oe.log("INFO",r+":
"+this.writeScreen.getDisplayText(!0)),"MODE_PAINT-ON"!==this.mode&&"MODE_ROLL-UP"!
==this.mode||(Oe.log("TEXT","DISPLAYED: "+this.displayedMemory.getDisplayText(!
0)),this.outputDataUpdate())},e.ccRCL=function(){Oe.log("INFO","RCL - Resume
Caption Loading"),this.setMode("MODE_POP-ON")},e.ccBS=function(){Oe.log("INFO","BS
- BackSpace"),"MODE_TEXT"!
==this.mode&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&
&this.outputDataUpdate())},e.ccAOF=function(){},e.ccAON=function()
{},e.ccDER=function(){Oe.log("INFO","DER-
Delete to End of
Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},e.ccRU=function(t
){Oe.log("INFO","RU("+t+") - Roll
Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-
UP"),this.writeScreen.setRollUpRows(t)},e.ccFON=function(){Oe.log("INFO","FON -
Flash On"),this.writeScreen.setPen({flash:!0})},e.ccRDC=function()
{Oe.log("INFO","RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-
ON")},e.ccTR=function()
{Oe.log("INFO","TR"),this.setMode("MODE_TEXT")},e.ccRTD=function()
{Oe.log("INFO","RTD"),this.setMode("MODE_TEXT")},e.ccEDM=function()
{Oe.log("INFO","EDM - Erase Displayed
Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)},e.ccCR=function()
{Oe.log("INFO","CR - Carriage
Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)},e.ccENM=function()
{Oe.log("INFO","ENM - Erase Non-displayed
Memory"),this.nonDisplayedMemory.reset()},e.ccEOC=function(){if(Oe.log("INFO","EOC
- End Of Caption"),"MODE_POP-ON"===this.mode){var
t=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplay
edMemory=t,this.writeScreen=this.nonDisplayedMemory,Oe.log("TEXT","DISP:
"+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!
0)},e.ccTO=function(t){Oe.log("INFO","TO("+t+") - Tab
Offset"),this.writeScreen.moveCursor(t)},e.ccMIDROW=function(t){var e={flash:!
1};if(e.underline=t%2==1,e.italics=46<=t,e.italics)e.foreground="white";else{var
r=Math.floor(t/2)-
16;e.foreground=["white","green","blue","cyan","red","yellow","magenta"]
[r]}Oe.log("INFO","MIDROW:
"+JSON.stringify(e)),this.writeScreen.setPen(e)},e.outputDataUpdate=function(t)
{void 0===t&&(t=!1);var e=Oe.time;null!==e&&this.outputFilter&&(null!
==this.cueStartTime||this.displayedMemory.isEmpty()?
this.displayedMemory.equals(this.lastOutputScreen)||
(this.outputFilter.newCue(this.cueStartTime,e,this.lastOutputScreen),t&&this.output
Filter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displaye
dMemory.isEmpty()?
null:e):this.cueStartTime=e,this.lastOutputScreen.copy(this.displayedMemory))},e.cu
eSplitAtTime=function(t){this.outputFilter&&(this.displayedMemory.isEmpty()||
(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,t,this.displa
yedMemory),this.cueStartTime=t))},t}(),Ne=function(){function t(t,e,r)
{this.field=void 0,this.outputs=void 0,this.channels=void 0,this.currChNr=void
0,this.lastCmdA=void 0,this.lastCmdB=void 0,this.lastTime=void
0,this.dataCounters=void 0,this.field=t||1,this.outputs=[e,r],this.channels=[new
Me(1,e),new Me(2,r)],this.currChNr=-
1,this.lastCmdA=null,this.lastCmdB=null,this.lastTime=null,this.dataCounters={paddi
ng:0,char:0,cmd:0,other:0}}var e=t.prototype;return e.getHandler=function(t){return
this.channels[t].getHandler()},e.setHandler=function(t,e)
{this.channels[t].setHandler(e)},e.addData=function(t,e){var r,i,n,a=!
1;this.lastTime=t,Oe.setTime(t);for(var
o=0;o<e.length;o+=2)if(i=127&e[o],n=127&e[o+1],0!=i||0!=n)
{if(Oe.log("DATA","["+Re([e[o],e[o+1]])+"] -> ("+Re([i,n])+")"),
(r=this.parseCmd(i,n))||(r=this.parseMidrow(i,n)),r||(r=this.parsePAC(i,n)),r||
(r=this.parseBackgroundAttributes(i,n)),!
r)if(a=this.parseChars(i,n))if(this.currChNr&&0<=this.currChNr)this.channels[this.c
urrChNr-1].insertChars(a);else Oe.log("WARNING","No channel found yet. TEXT-
MODE?");r?this.dataCounters.cmd+=2:a?this.dataCounters.char+=2:
(this.dataCounters.other+=2,Oe.log("WARNING","Couldn't parse cleaned data
"+Re([i,n])+" orig: "+Re([e[o],e[o+1]])))}else
this.dataCounters.padding+=2},e.parseCmd=function(t,e){var r=null;if(!((20===t||
28===t)&&32<=e&&e<=47)&&!((23===t||31===t)&&33<=e&&e<=35))return!
1;if(t===this.lastCmdA&&e===this.lastCmdB)return
this.lastCmdA=null,this.lastCmdB=null,Oe.log("DEBUG","Repeated command ("+Re([t,e])
+") is dropped"),!0;r=20===t||23===t?1:2;var i=this.channels[r-1];return 20===t||
28===t?32===e?i.ccRCL():33===e?i.ccBS():34===e?i.ccAOF():35===e?i.ccAON():36===e?
i.ccDER():37===e?i.ccRU(2):38===e?i.ccRU(3):39===e?i.ccRU(4):40===e?
i.ccFON():41===e?i.ccRDC():42===e?i.ccTR():43===e?i.ccRTD():44===e?
i.ccEDM():45===e?i.ccCR():46===e?i.ccENM():47===e&&i.ccEOC():i.ccTO(e-
32),this.lastCmdA=t,this.lastCmdB=e,this.currChNr=r,!0},e.parseMidrow=function(t,e)
{var r=null;return(17===t||25===t)&&32<=e&&e<=47&&((r=17===t?1:2)!==this.currChNr?
(Oe.log("ERROR","Mismatch channel in midrow parsing"),!1):(this.channels[r-
1].ccMIDROW(e),Oe.log("DEBUG","MIDROW ("+Re([t,e])+")"),!
0))},e.parsePAC=function(t,e){var r,i=null;if(!((17<=t&&t<=23||
25<=t&&t<=31)&&64<=e&&e<=127)&&!((16===t||24===t)&&64<=e&&e<=95))return!
1;if(t===this.lastCmdA&&e===this.lastCmdB)return this.lastCmdA=null,!
(this.lastCmdB=null);r=t<=23?1:2,i=64<=e&&e<=95?1==r?Ee[t]:Se[t]:1==r?
Te[t]:ke[t];var n=this.interpretPAC(i,e);return this.channels[r-
1].setPAC(n),this.lastCmdA=t,this.lastCmdB=e,this.currChNr=r,!
0},e.interpretPAC=function(t,e){var r=e,i={color:null,italics:!
1,indent:null,underline:!1,row:t};return r=95<e?e-96:e-
64,i.underline=1==(1&r),r<=13?
i.color=["white","green","blue","cyan","red","yellow","magenta","white"]
[Math.floor(r/2)]:r<=15?(i.italics=!0,i.color="white"):i.indent=4*Math.floor((r-
16)/2),i},e.parseChars=function(t,e){var r=null,i=null,n=null;if(17<=(n=25<=t?
(r=2,t-8):(r=1,t))&&n<=19){var a=e;a=17===n?e+80:18===n?
e+112:e+144,Oe.log("INFO","Special char '"+ye(a)+"' in channel "+r),i=[a]}else
32<=t&&t<=127&&(i=0===e?[t]:[t,e]);if(i){var o=Re(i);Oe.log("DEBUG","Char codes =
"+o.join(",")),this.lastCmdA=null,this.lastCmdB=null}return
i},e.parseBackgroundAttributes=function(t,e){var r,i,n;return((16===t||
24===t)&&32<=e&&e<=47||(23===t||31===t)&&45<=e&&e<=47)&&(r={},16===t||24===t?
(i=Math.floor((e-32)/2),r.background=Le[i],e
%2==1&&(r.background=r.background+"_semi")):45===e?r.background="transparent":
(r.foreground="black",47===e&&(r.underline=!0)),n=t<24?1:2,this.channels[n-
1].setBkgData(r),this.lastCmdA=null,!(this.lastCmdB=null))},e.reset=function()
{for(var t=0;t<this.channels.length;t+
+)this.channels[t]&&this.channels[t].reset();this.lastCmdA=null,this.lastCmdB=null}
,e.cueSplitAtTime=function(t){for(var e=0;e<this.channels.length;e+
+)this.channels[e]&&this.channels[e].cueSplitAtTime(t)},t}(),Fe=function(){function
t(t,e){this.timelineController=void 0,this.trackName=void 0,this.startTime=void
0,this.endTime=void 0,this.screen=void
0,this.timelineController=t,this.trackName=e,this.startTime=null,this.endTime=null,
this.screen=null}var e=t.prototype;return e.dispatchCue=function(){null!
==this.startTime&&(this.timelineController.addCues(this.trackName,this.startTime,th
is.endTime,this.screen),this.startTime=null)},e.newCue=function(t,e,r)
{(null===this.startTime||
this.startTime>t)&&(this.startTime=t),this.endTime=e,this.screen=r,this.timelineCon
troller.createCaptionsTrack(this.trackName)},t}(),Be={parse:function(t,e,i,n,r,a)
{var o,s=Object(Ft.utf8ArrayToStr)(new Uint8Array(t)).trim().replace(/\r\n|\n\r|\
n|\r/g,"\n").split("\n"),l="00:00.000",u=0,d=0,c=0,f=[],h=!0,p=!1,g=new
me;g.oncue=function(t){var e=i[n],r=i.ccOffset;e&&e.new&&(void 0!==d?
r=i.ccOffset=e.start:function(t,e,r){var i=t[e],n=t[i.prevCC];if(!n||!
n.new&&i.new)return t.ccOffset=t.presentationOffset=i.start,i.new=!
1;for(;n&&n.new;)t.ccOffset+=i.start-n.start,i.new=!
1,n=t[(i=n).prevCC];t.presentationOffset=r}(i,n,c)),c&&(r=c-
i.presentationOffset),p&&(t.startTime+=r-d,t.endTime+=r-
d),t.id=we(t.startTime.toString())+we(t.endTime.toString())
+we(t.text),t.text=decodeURIComponent(encodeURIComponent(t.text)),0<t.endTime&&f.pu
sh(t)},g.onparsingerror=function(t){o=t},g.onflush=function(){o&&a?
a(o):r(f)},s.forEach(function(t){if(h){if(Ce(t,"X-TIMESTAMP-MAP=")){p=!(h=!
1),t.substr(16).split(",").forEach(function(t){Ce(t,"LOCAL:")?
l=t.substr(6):Ce(t,"MPEGTS:")&&(u=parseInt(t.substr(7)))});try{e+(9e4*i[n].start||
0)<0&&(e+=8589934592),u-=e,d=function(t){var e=parseInt(t.substr(-
3)),r=parseInt(t.substr(-6,2)),i=parseInt(t.substr(-9,2)),n=9<t.length?
parseInt(t.substr(0,t.indexOf(":"))):0;if(!(Object(I.isFiniteNumber)
(e)&&Object(I.isFiniteNumber)(r)&&Object(I.isFiniteNumber)
(i)&&Object(I.isFiniteNumber)(n)))throw Error("Malformed X-TIMESTAMP-MAP:
Local:"+t);return e+=1e3*r,e+=6e4*i,e+=36e5*n}(l)/1e3,c=u/9e4}catch(t){p=!
1,o=t}return}""===t&&(h=!1)}g.parse(t+"\n")}),g.flush()}};function Ue(t){if(void
0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been
called");return t}var je=function(n){function t(t){var
e;if((e=n.call(this,t,x.default.MEDIA_ATTACHING,x.default.MEDIA_DETACHING,x.default
.FRAG_PARSING_USERDATA,x.default.FRAG_DECRYPTED,x.default.MANIFEST_LOADING,x.defaul
t.MANIFEST_LOADED,x.default.FRAG_LOADED,x.default.INIT_PTS_FOUND)||
this).media=null,e.config=void 0,e.enabled=!0,e.Cues=void
0,e.textTracks=[],e.tracks=[],e.initPTS=[],e.unparsedVttFrags=[],e.cueRanges=[],e.c
aptionsTracks={},e.captionsProperties=void 0,e.cea608Parser=void 0,e.lastSn=-
1,e.prevCC=-
1,e.vttCCs=null,e.hls=t,e.config=t.config,e.Cues=t.config.cueHandler,e.captionsProp
erties={textTrack1:
{label:e.config.captionsTextTrack1Label,languageCode:e.config.captionsTextTrack1Lan
guageCode},textTrack2:
{label:e.config.captionsTextTrack2Label,languageCode:e.config.captionsTextTrack2Lan
guageCode}},e.config.enableCEA708Captions){var r=new Fe(Ue(e),"textTrack1"),i=new
Fe(Ue(e),"textTrack2");e.cea608Parser=new Ne(0,r,i)}return e}!function(t,e)
{t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}
(t,n);var e=t.prototype;return e.addCues=function(t,e,r,i){for(var
n,a,o,s,l=this.cueRanges,u=!1,d=l.length;d--;){var
c=l[d],f=(n=c[0],a=c[1],o=e,s=r,Math.min(a,s)-
Math.max(n,o));if(0<=f&&(c[0]=Math.min(c[0],e),c[1]=Math.max(c[1],r),u=!0,.5<f/(r-
e)))return}u||
l.push([e,r]),this.Cues.newCue(this.captionsTracks[t],e,r,i)},e.onInitPtsFound=func
tion(t){var
e=this,r=t.frag,i=t.id,n=t.initPTS,a=this.unparsedVttFrags;"main"===i&&(this.initPT
S[r.cc]=n),a.length&&(this.unparsedVttFrags=[],a.forEach(function(t)
{e.onFragLoaded(t)}))},e.getExistingTrack=function(t){var
e=this.media;if(e)for(var r=0;r<e.textTracks.length;r++){var
i=e.textTracks[r];if(i[t])return i}return null},e.createCaptionsTrack=function(t)
{var
e=this.captionsProperties,r=this.captionsTracks,i=this.media,n=e[t],a=n.label,o=n.l
anguageCode;if(!r[t]){var
s=this.getExistingTrack(t);if(s)r[t]=s,Ut(r[t]),Bt(r[t],i);else{var
l=this.createTextTrack("captions",a,o);l&&(l[t]=!
0,r[t]=l)}}},e.createTextTrack=function(t,e,r){var i=this.media;if(i)return
i.addTextTrack(t,e,r)},e.destroy=function()
{n.prototype.destroy.call(this)},e.onMediaAttaching=function(t)
{this.media=t.media,this._cleanTracks()},e.onMediaDetaching=function(){var
e=this.captionsTracks;Object.keys(e).forEach(function(t){Ut(e[t]),delete
e[t]})},e.onManifestLoading=function(){this.lastSn=-1,this.prevCC=-
1,this.vttCCs={ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!
1}},this._cleanTracks()},e._cleanTracks=function(){var t=this.media;if(t){var
e=t.textTracks;if(e)for(var r=0;r<e.length;r+
+)Ut(e[r])}},e.onManifestLoaded=function(t){var
s=this;if(this.textTracks=[],this.unparsedVttFrags=this.unparsedVttFrags||
[],this.initPTS=[],this.cueRanges=[],this.config.enableWebVTT)
{this.tracks=t.subtitles||[];var l=this.media?this.media.textTracks:
[];this.tracks.forEach(function(t,e){var r,i,n;if(e<l.length){for(var
a=null,o=0;o<l.length;o++)if(i=l[o],n=t,i&&i.label===n.name&&!i.textTrack1&&!
i.textTrack2){a=l[o];break}a&&(r=a)}r||
(r=s.createTextTrack("subtitles",t.name,t.lang)),t.default?
r.mode=s.hls.subtitleDisplay?"showing":"hidden":r.mode="disabled",s.textTracks.push
(r)})}},e.onFragLoaded=function(t){var
e=t.frag,r=t.payload,i=this.cea608Parser,n=this.initPTS,a=this.lastSn,o=this.unpars
edVttFrags;if("main"===e.type){var s=e.sn;e.sn!
==a+1&&i&&i.reset(),this.lastSn=s}else if("subtitle"===e.type)if(r.byteLength){if(!
Object(I.isFiniteNumber)(n[e.cc]))return
o.push(t),void(n.length&&this.hls.trigger(x.default.SUBTITLE_FRAG_PROCESSED,
{success:!1,frag:e}));var l=e.decryptdata;null!=l&&null!=l.key&&"AES-
128"===l.method||this._parseVTTs(e,r)}else
this.hls.trigger(x.default.SUBTITLE_FRAG_PROCESSED,{success:!
1,frag:e})},e._parseVTTs=function(e,t){var
r=this.hls,i=this.prevCC,n=this.textTracks,a=this.vttCCs;a[e.cc]||
(a[e.cc]={start:e.start,prevCC:i,new:!
0},this.prevCC=e.cc),Be.parse(t,this.initPTS[e.cc],a,e.cc,function(t){var
i=n[e.level];"disabled"!==i.mode?(t.forEach(function(e){if(!
i.cues.getCueById(e.id))try{if(i.addCue(e),!i.cues.getCueById(e.id))throw new
Error("addCue is failed for: "+e)}catch(t){M.logger.debug("Failed occurred on
adding cues: "+t);var r=new
window.TextTrackCue(e.startTime,e.endTime,e.text);r.id=e.id,i.addCue(r)}}),r.trigge
r(x.default.SUBTITLE_FRAG_PROCESSED,{success:!
0,frag:e})):r.trigger(x.default.SUBTITLE_FRAG_PROCESSED,{success:!
1,frag:e})},function(t){M.logger.log("Failed to parse VTT cue:
"+t),r.trigger(x.default.SUBTITLE_FRAG_PROCESSED,{success:!
1,frag:e})})},e.onFragDecrypted=function(t){var
e=t.frag,r=t.payload;if("subtitle"===e.type){if(!Object(I.isFiniteNumber)
(this.initPTS[e.cc]))return void
this.unparsedVttFrags.push(t);this._parseVTTs(e,r)}},e.onFragParsingUserdata=functi
on(t){if(this.enabled&&this.cea608Parser)for(var e=0;e<t.samples.length;e++){var
r=t.samples[e].bytes;if(r){var
i=this.extractCea608Data(r);this.cea608Parser.addData(t.samples[e].pts,i)}}},e.extr
actCea608Data=function(t){for(var e,r,i,n=31&t[0],a=2,o=[],s=0;s<n;s++)e=t[a+
+],r=127&t[a++],i=127&t[a++],0==r&&0==i||0!
=(4&e)&&0==(3&e)&&(o.push(r),o.push(i));return o},t}(u);function Ke(t,e){for(var
r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!
0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Ve(t)
{for(var e=[],r=0;r<t.length;r++){var
i=t[r];"subtitles"===i.kind&&i.label&&e.push(t[r])}return e}var Ge=function(r)
{function t(t){var
e;return(e=r.call(this,t,x.default.MEDIA_ATTACHED,x.default.MEDIA_DETACHING,x.defau
lt.MANIFEST_LOADED,x.default.SUBTITLE_TRACK_LOADED)||this).tracks=[],e.trackId=-
1,e.media=null,e.stopped=!0,e.subtitleDisplay=!0,e.queuedDefaultTrack=null,e}!
function(t,e){t.prototype=Object.create(e.prototype),
(t.prototype.constructor=t).__proto__=e}(t,r);var e=t.prototype;return
e.destroy=function(){u.prototype.destroy.call(this)},e.onMediaAttached=function(t)
{var e=this;this.media=t.media,this.media&&(Object(I.isFiniteNumber)
(this.queuedDefaultTrack)&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedD
efaultTrack=null),this.trackChangeListener=this._onTextTracksChanged.bind(this),thi
s.useTextTrackPolling=!(this.media.textTracks&&"onchange"in
this.media.textTracks),this.useTextTrackPolling?
this.subtitlePollingInterval=setInterval(function()
{e.trackChangeListener()},500):this.media.textTracks.addEventListener("change",this
.trackChangeListener))},e.onMediaDetaching=function()
{this.media&&(this.useTextTrackPolling?
clearInterval(this.subtitlePollingInterval):this.media.textTracks.removeEventListen
er("change",this.trackChangeListener),Object(I.isFiniteNumber)
(this.subtitleTrack)&&(this.queuedDefaultTrack=this.subtitleTrack),Ve(this.media.te
xtTracks).forEach(function(t){Ut(t)}),this.subtitleTrack=-
1,this.media=null)},e.onManifestLoaded=function(t){var e=this,r=t.subtitles||
[];this.tracks=r,this.hls.trigger(x.default.SUBTITLE_TRACKS_UPDATED,
{subtitleTracks:r}),r.forEach(function(t){t.default&&(e.media?
e.subtitleTrack=t.id:e.queuedDefaultTrack=t.id)})},e.onSubtitleTrackLoaded=function
(t){var
e=this,r=t.id,i=t.details,n=this.trackId,a=this.tracks,o=a[n];if(r>=a.length||r!
==n||!o||this.stopped)this._clearReloadTimer();else if(M.logger.log("subtitle track
"+r+" loaded"),i.live){var
s=st(o.details,i,t.stats.trequest);M.logger.log("Reloading live subtitle playlist
in "+s+"ms"),this.timer=setTimeout(function(){e._loadCurrentTrack()},s)}else
this._clearReloadTimer()},e.startLoad=function(){this.stopped=!
1,this._loadCurrentTrack()},e.stopLoad=function(){this.stopped=!
0,this._clearReloadTimer()},e._clearReloadTimer=function()
{this.timer&&(clearTimeout(this.timer),this.timer=null)},e._loadCurrentTrack=functi
on(){var t=this.trackId,e=this.tracks,r=this.hls,i=e[t];t<0||!i||i.details&&!
i.details.live||(M.logger.log("Loading subtitle track
"+t),r.trigger(x.default.SUBTITLE_TRACK_LOADING,
{url:i.url,id:t}))},e._toggleTrackModes=function(t){var
e=this.media,r=this.subtitleDisplay,i=this.trackId;if(e){var
n=Ve(e.textTracks);if(-1===t)[].slice.call(n).forEach(function(t)
{t.mode="disabled"});else{var a=n[i];a&&(a.mode="disabled")}var
o=n[t];o&&(o.mode=r?"showing":"hidden")}},e._setSubtitleTrackInternal=function(t)
{var e=this.hls,r=this.tracks;!Object(I.isFiniteNumber)(t)||t<-1||t>=r.length||
(this.trackId=t,M.logger.log("Switching to subtitle track
"+t),e.trigger(x.default.SUBTITLE_TRACK_SWITCH,
{id:t}),this._loadCurrentTrack())},e._onTextTracksChanged=function(){if(this.media)
{for(var t=-1,e=Ve(this.media.textTracks),r=0;r<e.length;r+
+)if("hidden"===e[r].mode)t=r;else if("showing"===e[r].mode)
{t=r;break}this.subtitleTrack=t}},function(t,e,r){e&&Ke(t.prototype,e),r&&Ke(t,r)}
(t,[{key:"subtitleTracks",get:function(){return this.tracks}},
{key:"subtitleTrack",get:function(){return this.trackId},set:function(t)
{this.trackId!
==t&&(this._toggleTrackModes(t),this._setSubtitleTrackInternal(t))}}]),t}
(u),Ye=r("./src/crypt/decrypter.js");var He,$e,ze=window.performance,We=function(i)
{function t(t,e){var
r;return(r=i.call(this,t,x.default.MEDIA_ATTACHED,x.default.MEDIA_DETACHING,x.defau
lt.ERROR,x.default.KEY_LOADED,x.default.FRAG_LOADED,x.default.SUBTITLE_TRACKS_UPDAT
ED,x.default.SUBTITLE_TRACK_SWITCH,x.default.SUBTITLE_TRACK_LOADED,x.default.SUBTIT
LE_FRAG_PROCESSED,x.default.LEVEL_UPDATED)||
this).fragmentTracker=e,r.config=t.config,r.state=mt,r.tracks=[],r.tracksBuffered=[
],r.currentTrackId=-1,r.decrypter=new
Ye.default(t,t.config),r.lastAVStart=0,r._onMediaSeeking=r.onMediaSeeking.bind(func
tion(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised -
super() hasn't been called");return t}(r)),r}!function(t,e)
{t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}
(t,i);var e=t.prototype;return e.onSubtitleFragProcessed=function(t){var
e=t.frag,r=t.success;if(this.fragPrevious=e,this.state=yt,r){var
i=this.tracksBuffered[this.currentTrackId];if(i){for(var
n,a=e.start,o=0;o<i.length;o++)if(a>=i[o].start&&a<=i[o].end){n=i[o];break}var
s=e.start+e.duration;n?n.end=s:
(n={start:a,end:s},i.push(n))}}},e.onMediaAttached=function(t){var e=t.media;
(this.media=e).addEventListener("seeking",this._onMediaSeeking),this.state=yt},e.on
MediaDetaching=function(){var
e=this;this.media&&(this.media.removeEventListener("seeking",this._onMediaSeeking),
this.fragmentTracker.removeAllFragments(),this.currentTrackId=-
1,this.tracks.forEach(function(t)
{e.tracksBuffered[t.id]=[]}),this.media=null,this.state=mt)},e.onError=function(t)
{var
e=t.frag;e&&"subtitle"===e.type&&(this.state=yt)},e.onSubtitleTracksUpdated=functio
n(t){var e=this;M.logger.log("subtitle tracks
updated"),this.tracksBuffered=[],this.tracks=t.subtitleTracks,this.tracks.forEach(f
unction(t){e.tracksBuffered[t.id]=[]})},e.onSubtitleTrackSwitch=function(t)
{if(this.currentTrackId=t.id,this.tracks&&this.tracks.length&&-1!
==this.currentTrackId){var
e=this.tracks[this.currentTrackId];e&&e.details&&this.setInterval(500)}else
this.clearInterval()},e.onSubtitleTrackLoaded=function(t){var
e=t.id,r=t.details,i=this.currentTrackId,n=this.tracks,a=n[i];e>=n.length||e!==i||!
a||(r.live&&function(t,e,r){void 0===r&&(r=0);var i=-1;ot(t,e,function(t,e,r)
{e.start=t.start,i=r});var n=e.fragments;if(i<0)n.forEach(function(t)
{t.start+=r});else for(var a=i+1;a<n.length;a++)n[a].start=n[a-1].start+n[a-
1].duration}
(a.details,r,this.lastAVStart),a.details=r,this.setInterval(500))},e.onKeyLoaded=fu
nction(){this.state===_t&&(this.state=yt)},e.onFragLoaded=function(t){var
e=this.fragCurrent,r=t.frag.decryptdata,i=t.frag,n=this.hls;if(this.state===bt&&e&&
"subtitle"===t.frag.type&&e.sn===t.frag.sn&&0<t.payload.byteLength&&r&&r.key&&"AES-
128"===r.method){var
a=ze.now();this.decrypter.decrypt(t.payload,r.key.buffer,r.iv.buffer,function(t)
{var e=ze.now();n.trigger(x.default.FRAG_DECRYPTED,{frag:i,payload:t,stats:
{tstart:a,tdecrypt:e}})})}},e.onLevelUpdated=function(t){var
e=t.details.fragments;this.lastAVStart=e.length?e[0].start:0},e.doTick=function()
{if(this.media)switch(this.state){case yt:var
t=this.config,e=this.currentTrackId,r=this.fragmentTracker,i=this.media,n=this.trac
ks;if(!n||!n[e]||!n[e].details)break;var
a,o=t.maxBufferHole,s=t.maxFragLookUpTolerance,l=Math.min(t.maxBufferLength,t.maxMa
xBufferLength),u=$.bufferedInfo(this._getBuffered(),i.currentTime,o),d=u.end,c=u.le
n,f=n[e].details,h=f.fragments,p=h.length,g=h[p-1].start+h[p-
1].duration;if(l<c)return;var m=this.fragPrevious;d<g?
(m&&f.hasProgramDateTime&&(a=ct(h,m.endProgramDateTime,s)),a||
(a=ft(m,h,d,s))):a=h[p-1],a&&a.encrypted?(M.logger.log("Loading key for
"+a.sn),this.state=_t,this.hls.trigger(x.default.KEY_LOADING,
{frag:a})):a&&r.getState(a)===j&&(this.fragCurrent=a,this.state=bt,this.hls.trigger
(x.default.FRAG_LOADING,{frag:a}))}else this.state=yt},e.stopLoad=function()
{this.lastAVStart=0,i.prototype.stopLoad.call(this)},e._getBuffered=function()
{return this.tracksBuffered[this.currentTrackId]||[]},e.onMediaSeeking=function()
{this.fragPrevious=null},t}(Pt);($e=He||(He={})).WIDEVINE="com.widevine.alpha",
$e.PLAYREADY="com.microsoft.playready";var qe="undefined"!=typeof
window&&window.navigator&&window.navigator.requestMediaKeySystemAccess?
window.navigator.requestMediaKeySystemAccess.bind(window.navigator):null;function
Xe(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!
1,i.configurable=!0,"value"in i&&(i.writable=!
0),Object.defineProperty(t,i.key,i)}}var Ze=function(r){function t(t){var
e;return(e=r.call(this,t,x.default.MEDIA_ATTACHED,x.default.MEDIA_DETACHED,x.defaul
t.MANIFEST_PARSED)||this)._widevineLicenseUrl=void 0,e._licenseXhrSetup=void
0,e._emeEnabled=void 0,e._requestMediaKeySystemAccess=void 0,e._config=void
0,e._mediaKeysList=[],e._media=null,e._hasSetMediaKeys=!
1,e._requestLicenseFailureCount=0,e._onMediaEncrypted=function(t)
{M.logger.log('Media is encrypted using "'+t.initDataType+'" init data
type'),e._attemptSetMediaKeys(),e._generateRequestWithPreferredKeySession(t.initDat
aType,t.initData)},e._config=t.config,e._widevineLicenseUrl=e._config.widevineLicen
seUrl,e._licenseXhrSetup=e._config.licenseXhrSetup,e._emeEnabled=e._config.emeEnabl
ed,e._requestMediaKeySystemAccess=e._config.requestMediaKeySystemAccessFunc,e}!
function(t,e){t.prototype=Object.create(e.prototype),
(t.prototype.constructor=t).__proto__=e}(t,r);var e=t.prototype;return
e.getLicenseServerUrl=function(t){switch(t){case He.WIDEVINE:if(!
this._widevineLicenseUrl)break;return this._widevineLicenseUrl}throw new Error('no
license server URL configured for key-system
"'+t+'"')},e._attemptKeySystemAccess=function(e,t,r){var i=this,n=function(t,e,r)
{switch(t){case He.WIDEVINE:return function(t,e){var r={videoCapabilities:
[]};return e.forEach(function(t){r.videoCapabilities.push({contentType:'video/mp4;
codecs="'+t+'"'})}),[r]}(0,r);default:throw new Error("Unknown key-system: "+t)}}
(e,0,r);M.logger.log("Requesting encrypted media key-system
access"),this.requestMediaKeySystemAccess(e,n).then(function(t)
{i._onMediaKeySystemAccessObtained(e,t)}).catch(function(t){M.logger.error('Failed
to obtain key-system "'+e+'"
access:',t)})},e._onMediaKeySystemAccessObtained=function(e,t){var
r=this;M.logger.log('Access for key-system "'+e+'" obtained');var
i={mediaKeysSessionInitialized:!
1,mediaKeySystemAccess:t,mediaKeySystemDomain:e};this._mediaKeysList.push(i),t.crea
teMediaKeys().then(function(t){i.mediaKeys=t,M.logger.log('Media-keys created for
key-system "'+e+'"'),r._onMediaKeysCreated()}).catch(function(t)
{M.logger.error("Failed to create media-
keys:",t)})},e._onMediaKeysCreated=function(){var
e=this;this._mediaKeysList.forEach(function(t){t.mediaKeysSession||
(t.mediaKeysSession=t.mediaKeys.createSession(),e._onNewMediaKeySession(t.mediaKeys
Session))})},e._onNewMediaKeySession=function(e){var r=this;M.logger.log("New key-
system session "+e.sessionId),e.addEventListener("message",function(t)
{r._onKeySessionMessage(e,t.message)},!1)},e._onKeySessionMessage=function(e,t)
{M.logger.log("Got EME message event, creating license
request"),this._requestLicense(t,function(t){M.logger.log("Received license data
(length: "+(t?t.byteLength:t)+"), updating key-
session"),e.update(t)})},e._attemptSetMediaKeys=function(){if(!this._media)throw
new Error("Attempted to set mediaKeys without first attaching a media
element");if(!this._hasSetMediaKeys){var t=this._mediaKeysList[0];if(!t||!
t.mediaKeys)return M.logger.error("Fatal: Media is encrypted but no CDM access or
no keys have been obtained yet"),void this.hls.trigger(x.default.ERROR,
{type:f.ErrorTypes.KEY_SYSTEM_ERROR,details:f.ErrorDetails.KEY_SYSTEM_NO_KEYS,fatal
:!0});M.logger.log("Setting keys for encrypted
media"),this._media.setMediaKeys(t.mediaKeys),this._hasSetMediaKeys=!
0}},e._generateRequestWithPreferredKeySession=function(t,e){var
r=this,i=this._mediaKeysList[0];if(!i)return M.logger.error("Fatal: Media is
encrypted but not any key-system access has been obtained yet"),void
this.hls.trigger(x.default.ERROR,
{type:f.ErrorTypes.KEY_SYSTEM_ERROR,details:f.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fat
al:!0});if(i.mediaKeysSessionInitialized)M.logger.warn("Key-Session already
initialized but requested again");else{var n=i.mediaKeysSession;if(!n)return
M.logger.error("Fatal: Media is encrypted but no key-session existing"),void
this.hls.trigger(x.default.ERROR,
{type:f.ErrorTypes.KEY_SYSTEM_ERROR,details:f.ErrorDetails.KEY_SYSTEM_NO_SESSION,fa
tal:!0});if(!e)return M.logger.warn("Fatal: initData required for generating a key
session is null"),void this.hls.trigger(x.default.ERROR,
{type:f.ErrorTypes.KEY_SYSTEM_ERROR,details:f.ErrorDetails.KEY_SYSTEM_NO_INIT_DATA,
fatal:!0});M.logger.log('Generating key-session request for "'+t+'" init data
type'),i.mediaKeysSessionInitialized=!0,n.generateRequest(t,e).then(function()
{M.logger.debug("Key-session generation succeeded")}).catch(function(t)
{M.logger.error("Error generating key-session
request:",t),r.hls.trigger(x.default.ERROR,
{type:f.ErrorTypes.KEY_SYSTEM_ERROR,details:f.ErrorDetails.KEY_SYSTEM_NO_SESSION,fa
tal:!1})})}},e._createLicenseXhr=function(e,t,r){var i=new
XMLHttpRequest,n=this._licenseXhrSetup;try{if(n)try{n(i,e)}catch(t)
{i.open("POST",e,!0),n(i,e)}i.readyState||i.open("POST",e,!0)}catch(t){throw new
Error("issue setting up KeySystem license XHR "+t)}return
i.responseType="arraybuffer",i.onreadystatechange=this._onLicenseRequestReadyStageC
hange.bind(this,i,e,t,r),i},e._onLicenseRequestReadyStageChange=function(t,e,r,i)
{switch(t.readyState){case
4:if(200===t.status)this._requestLicenseFailureCount=0,M.logger.log("License
request succeeded"),"arraybuffer"!==t.responseType&&M.logger.warn("xhr response
type was not set to the expected arraybuffer for license
request"),i(t.response);else{if(M.logger.error("License Request XHR failed ("+e+").
Status: "+t.status+" ("+t.statusText+")"),this._requestLicenseFailureCount+
+,3<this._requestLicenseFailureCount)return void this.hls.trigger(x.default.ERROR,
{type:f.ErrorTypes.KEY_SYSTEM_ERROR,details:f.ErrorDetails.KEY_SYSTEM_LICENSE_REQUE
ST_FAILED,fatal:!0});var n=3-
this._requestLicenseFailureCount+1;M.logger.warn("Retrying license request, "+n+"
attempts
left"),this._requestLicense(r,i)}}},e._generateLicenseRequestChallenge=function(t,e
){switch(t.mediaKeySystemDomain){case He.WIDEVINE:return e}throw new
Error("unsupported key-system:
"+t.mediaKeySystemDomain)},e._requestLicense=function(t,e){M.logger.log("Requesting
content license for key-system");var r=this._mediaKeysList[0];if(!r)return
M.logger.error("Fatal error: Media is encrypted but no key-system access has been
obtained yet"),void this.hls.trigger(x.default.ERROR,
{type:f.ErrorTypes.KEY_SYSTEM_ERROR,details:f.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fat
al:!0});try{var
i=this.getLicenseServerUrl(r.mediaKeySystemDomain),n=this._createLicenseXhr(i,t,e);
M.logger.log("Sending license request to URL: "+i);var
a=this._generateLicenseRequestChallenge(r,t);n.send(a)}catch(t)
{M.logger.error("Failure requesting DRM license:
"+t),this.hls.trigger(x.default.ERROR,
{type:f.ErrorTypes.KEY_SYSTEM_ERROR,details:f.ErrorDetails.KEY_SYSTEM_LICENSE_REQUE
ST_FAILED,fatal:!0})}},e.onMediaAttached=function(t){if(this._emeEnabled){var
e=t.media;
(this._media=e).addEventListener("encrypted",this._onMediaEncrypted)}},e.onMediaDet
ached=function()
{this._media&&(this._media.removeEventListener("encrypted",this._onMediaEncrypted),
this._media=null)},e.onManifestParsed=function(t){if(this._emeEnabled){var
e=t.levels.map(function(t){return t.audioCodec}),r=t.levels.map(function(t){return
t.videoCodec});this._attemptKeySystemAccess(He.WIDEVINE,e,r)}},function(t,e,r)
{e&&Xe(t.prototype,e),r&&Xe(t,r)}(t,
[{key:"requestMediaKeySystemAccess",get:function(){if(!
this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess
function configured");return this._requestMediaKeySystemAccess}}]),t}(u);function
Qe(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!
0,configurable:!0,writable:!0}):t[e]=r,t}var Je=function(e){for(var
t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:
{},i=Object.keys(r);"function"==typeof
Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(fu
nction(t){return
Object.getOwnPropertyDescriptor(r,t).enumerable}))),i.forEach(function(t)
{Qe(e,t,r[t])})}return e}({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void
0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!
1,initialLiveManifestSize:1,maxBufferLength:30,maxBufferSize:6e7,maxBufferHole:.5,l
owBufferWatchdogPeriod:.5,highBufferWatchdogPeriod:3,nudgeOffset:.1,nudgeMaxRetry:3
,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,liveMaxLatencyDurationCount:1/0
,liveSyncDuration:void
0,liveMaxLatencyDuration:void 0,liveDurationInfinity:!
1,liveBackBufferLength:1/0,maxMaxBufferLength:600,enableWorker:!
0,enableSoftwareAES:!
0,manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e
3,manifestLoadingMaxRetryTimeout:64e3,startLevel:void
0,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLo
adingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingR
etryDelay:1e3,fragLoadingMaxRetryTimeout:64e3,startFragPrefetch:!
1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRet
ry:3,loader:ee,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void
0,abrController:Ht,bufferController:zt,capLevelController:qt,fpsController:Zt,stret
chShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!
0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefa
ultEstimate:5e5,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrat
e:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!
1,widevineLicenseUrl:void 0,requestMediaKeySystemAccessFunc:qe},function()
{0;return{cueHandler:i,enableCEA708Captions:!0,enableWebVTT:!
0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTex
tTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es"}}(),
{subtitleStreamController:We,subtitleTrackController:Ge,timelineController:je,audio
StreamController:se,audioTrackController:ie,emeController:Ze});function tr(t,e,r)
{return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!
0,writable:!0}):t[e]=r,t}function er(t){if(void 0===t)throw new
ReferenceError("this hasn't been initialised - super() hasn't been called");return
t}function rr(t,e){for(var r=0;r<e.length;r++){var
i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!
0),Object.defineProperty(t,i.key,i)}}function ir(t,e,r){return
e&&rr(t.prototype,e),r&&rr(t,r),t}r.d(e,"default",function(){return nr});var
nr=function(_){function b(t){var e;void 0===t&&(t={}),(e=_.call(this)||
this).config=void 0,e._autoLevelCapping=void 0,e.abrController=void
0,e.capLevelController=void 0,e.levelController=void 0,e.streamController=void
0,e.networkControllers=void 0,e.audioTrackController=void
0,e.subtitleTrackController=void 0,e.emeController=void 0,e.coreComponents=void
0,e.media=null,e.url=null;var r=b.DefaultConfig;if((t.liveSyncDurationCount||
t.liveMaxLatencyDurationCount)&&(t.liveSyncDuration||
t.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up
liveSyncDurationCount/liveMaxLatencyDurationCount and
liveSyncDuration/liveMaxLatencyDuration");e.config=function(e){for(var
t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:
{},i=Object.keys(r);"function"==typeof
Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(fu
nction(t){return
Object.getOwnPropertyDescriptor(r,t).enumerable}))),i.forEach(function(t)
{tr(e,t,r[t])})}return e}({},r,t);var i=er(e).config;if(void 0!
==i.liveMaxLatencyDurationCount&&i.liveMaxLatencyDurationCount<=i.liveSyncDurationC
ount)throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be
gt "liveSyncDurationCount"');if(void 0!==i.liveMaxLatencyDuration&&(void
0===i.liveSyncDuration||i.liveMaxLatencyDuration<=i.liveSyncDuration))throw new
Error('Illegal hls.js config: "liveMaxLatencyDuration" must be gt
"liveSyncDuration"');Object(M.enableLogs)(i.debug),e._autoLevelCapping=-1;var
n=e.abrController=new i.abrController(er(e)),a=new
i.bufferController(er(e)),o=e.capLevelController=new
i.capLevelController(er(e)),s=new i.fpsController(er(e)),l=new L(er(e)),u=new
B(er(e)),d=new U(er(e)),c=new jt(er(e)),f=e.levelController=new Nt(er(e)),h=new
Y(er(e)),p=[f,e.streamController=new
It(er(e),h)],g=i.audioStreamController;g&&p.push(new
g(er(e),h)),e.networkControllers=p;var
m=[l,u,d,n,a,o,s,c,h];if(g=i.audioTrackController){var v=new
g(er(e));e.audioTrackController=v,m.push(v)}if(g=i.subtitleTrackController){var
y=new g(er(e));e.subtitleTrackController=y,p.push(y)}if(g=i.emeController){var
A=new
g(er(e));e.emeController=A,m.push(A)}return(g=i.subtitleStreamController)&&p.push(n
ew g(er(e),h)),(g=i.timelineController)&&m.push(new
g(er(e))),e.coreComponents=m,e}!function(t,e)
{t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}
(b,_),b.isSupported=function(){return function(){var t=X();if(!t)return!1;var
e=self.SourceBuffer||self.WebKitSourceBuffer,r=t&&"function"==typeof
t.isTypeSupported&&t.isTypeSupported('video/mp4;
codecs="avc1.42E01E,mp4a.40.2"'),i=!e||e.prototype&&"function"==typeof
e.prototype.appendBuffer&&"function"==typeof e.prototype.remove;return!!r&&!!i}
()},ir(b,null,[{key:"version",get:function(){return"0.13.2"}},
{key:"Events",get:function(){return x.default}},{key:"ErrorTypes",get:function()
{return f.ErrorTypes}},{key:"ErrorDetails",get:function(){return f.ErrorDetails}},
{key:"DefaultConfig",get:function(){return b.defaultConfig?
b.defaultConfig:Je},set:function(t){b.defaultConfig=t}}]);var t=b.prototype;return
t.destroy=function()
{M.logger.log("destroy"),this.trigger(x.default.DESTROYING),this.detachMedia(),this
.coreComponents.concat(this.networkControllers).forEach(function(t)
{t.destroy()}),this.url=null,this.removeAllListeners(),this._autoLevelCapping=-
1},t.attachMedia=function(t)
{M.logger.log("attachMedia"),this.media=t,this.trigger(x.default.MEDIA_ATTACHING,
{media:t})},t.detachMedia=function()
{M.logger.log("detachMedia"),this.trigger(x.default.MEDIA_DETACHING),this.media=nul
l},t.loadSource=function(t){t=s.buildAbsoluteURL(window.location.href,t,
{alwaysNormalize:!
0}),M.logger.log("loadSource:"+t),this.url=t,this.trigger(x.default.MANIFEST_LOADIN
G,{url:t})},t.startLoad=function(e){void 0===e&&(e=-
1),M.logger.log("startLoad("+e+")"),this.networkControllers.forEach(function(t)
{t.startLoad(e)})},t.stopLoad=function()
{M.logger.log("stopLoad"),this.networkControllers.forEach(function(t)
{t.stopLoad()})},t.swapAudioCodec=function()
{M.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()},t.recoverMe
diaError=function(){M.logger.log("recoverMediaError");var
t=this.media;this.detachMedia(),t&&this.attachMedia(t)},ir(b,
[{key:"levels",get:function(){return this.levelController.levels}},
{key:"currentLevel",get:function(){return
this.streamController.currentLevel},set:function(t){M.logger.log("set
currentLevel:"+t),this.loadLevel=t,this.streamController.immediateLevelSwitch()}},
{key:"nextLevel",get:function(){return
this.streamController.nextLevel},set:function(t){M.logger.log("set
nextLevel:"+t),this.levelController.manualLevel=t,this.streamController.nextLevelSw
itch()}},{key:"loadLevel",get:function(){return
this.levelController.level},set:function(t){M.logger.log("set
loadLevel:"+t),this.levelController.manualLevel=t}},
{key:"nextLoadLevel",get:function(){return
this.levelController.nextLoadLevel},set:function(t)
{this.levelController.nextLoadLevel=t}},{key:"firstLevel",get:function(){return
Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(t)
{M.logger.log("set firstLevel:"+t),this.levelController.firstLevel=t}},
{key:"startLevel",get:function(){return
this.levelController.startLevel},set:function(t){M.logger.log("set
startLevel:"+t),-1!
==t&&(t=Math.max(t,this.minAutoLevel)),this.levelController.startLevel=t}},
{key:"capLevelToPlayerSize",set:function(t){var e=!!t;e!
==this.config.capLevelToPlayerSize&&(e?this.capLevelController.startCapping():
(this.capLevelController.stopCapping(),this.autoLevelCapping=-
1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=e)}},
{key:"autoLevelCapping",get:function(){return
this._autoLevelCapping},set:function(t){M.logger.log("set
autoLevelCapping:"+t),this._autoLevelCapping=t}},
{key:"bandwidthEstimate",get:function(){var
t=this.abrController._bwEstimator;return t?t.getEstimate():NaN}},
{key:"autoLevelEnabled",get:function(){return-
1===this.levelController.manualLevel}},{key:"manualLevel",get:function(){return
this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){for(var
t=this.levels,e=this.config.minAutoBitrate,r=t?t.length:0,i=0;i<r;i++)
{if(e<(t[i].realBitrate?
Math.max(t[i].realBitrate,t[i].bitrate):t[i].bitrate))return i}return 0}},
{key:"maxAutoLevel",get:function(){var
t=this.levels,e=this.autoLevelCapping;return-1===e&&t&&t.length?t.length-1:e}},
{key:"nextAutoLevel",get:function(){return
Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoL
evel)},set:function(t)
{this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,t)}},
{key:"audioTracks",get:function(){var t=this.audioTrackController;return t?
t.audioTracks:[]}},{key:"audioTrack",get:function(){var
t=this.audioTrackController;return t?t.audioTrack:-1},set:function(t){var
e=this.audioTrackController;e&&(e.audioTrack=t)}},
{key:"liveSyncPosition",get:function(){return
this.streamController.liveSyncPosition}},{key:"subtitleTracks",get:function(){var
t=this.subtitleTrackController;return t?t.subtitleTracks:[]}},
{key:"subtitleTrack",get:function(){var t=this.subtitleTrackController;return t?
t.subtitleTrack:-1},set:function(t){var
e=this.subtitleTrackController;e&&(e.subtitleTrack=t)}},
{key:"subtitleDisplay",get:function(){var t=this.subtitleTrackController;return!!
t&&t.subtitleDisplay},set:function(t){var
e=this.subtitleTrackController;e&&(e.subtitleDisplay=t)}}]),b}
(Q);nr.defaultConfig=void 0},"./src/polyfills/number-isFinite.js":function(t,e,r)
{"use strict";r.r(e),r.d(e,"isFiniteNumber",function(){return i});var
i=Number.isFinite||function(t){return"number"==typeof
t&&isFinite(t)}},"./src/utils/get-self-scope.js":function(t,e,r){"use
strict";function i(){return"undefined"==typeof window?
self:window}r.r(e),r.d(e,"getSelfScope",function(){return
i})},"./src/utils/logger.js":function(t,e,r){"use
strict";r.r(e),r.d(e,"enableLogs",function(){return
u}),r.d(e,"logger",function(){return d});var i=r("./src/utils/get-self-
scope.js");function a(){}var
n={trace:a,debug:a,log:a,warn:a,info:a,error:a},o=n;var s=Object(i.getSelfScope)
();function l(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-
1]=arguments[i];r.forEach(function(t){o[t]=e[t]?e[t].bind(e):function(i){var
n=s.console[i];return n?function(){for(var t=arguments.length,e=new
Array(t),r=0;r<t;r++)e[r]=arguments[r];e[0]&&(e[0]=function(t,e){return e="["+t+"]
> "+e}(i,e[0])),n.apply(s.console,e)}:a}(t)})}var u=function(t){if(s.console&&!
0===t||"object"==typeof t)
{l(t,"debug","log","info","warn","error");try{o.log()}catch(t){o=n}}else
o=n},d=o}},n.c=i,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,
{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof
Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,
{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!
0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof
e&&e&&e.__esModule)return e;var
r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!
0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return
e[t]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function()
{return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e)
{return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s="./src/
hls.ts")).default;function n(t){if(i[t])return i[t].exports;var e=i[t]={i:t,l:!
1,exports:{}};return r[t].call(e.exports,e,e.exports,n),e.l=!0,e.exports}var
r,i},t.exports=i())},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
i=u(r(0)),n=u(r(1)),a=u(r(3)),o=u(r(2)),s=u(r(11)),l=u(r(4));function u(t){return
t&&t.__esModule?t:{default:t}}r(203);var d,c=(d=s.default,(0,o.default)
(f,d),f.prototype.getPlaybackType=function(){return s.default.NO_OP},(0,a.default)
(f,[{key:"name",get:function(){return"html_img"}},{key:"tagName",get:function()
{return"img"}},{key:"attributes",get:function(){return{"data-html-img":""}}},
{key:"events",get:function()
{return{load:"_onLoad",abort:"_onError",error:"_onError"}}}]),f.prototype.render=fu
nction(){return
this.trigger(l.default.PLAYBACK_READY,this.name),this},f.prototype._onLoad=function
()
{this.trigger(l.default.PLAYBACK_ENDED,this.name)},f.prototype._onError=function(t)
{var e="error"===t.type?"load error":"loading
aborted";this.trigger(l.default.PLAYBACK_ERROR,{message:e},this.name)},f);function
f(t){(0,i.default)(this,f);var e=(0,n.default)(this,d.call(this,t));return
e.el.src=t.src,e}(e.default=c).canPlay=function(t){return/\.(png|jpg|jpeg|gif|bmp|
tiff|pgm|pnm|webp)(|\?.*)$/i.test(t)},t.exports=e.default},function(t,e,r){var
i=r(204);"string"==typeof i&&(i=[[t.i,i,""]]);var n={singleton:!0,hmr:!
0,transform:void 0,insertInto:void 0};r(10)
(i,n);i.locals&&(t.exports=i.locals)},function(t,e,r){(t.exports=r(8)(!
1)).push([t.i,"[data-html-img]{max-width:100%;max-
height:100%}",""])},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
n=f(r(0)),a=f(r(1)),i=f(r(3)),o=f(r(2)),s=r(5),l=f(r(11)),u=f(r(7)),d=f(r(4)),c=f(r
(206));function f(t){return t&&t.__esModule?t:{default:t}}r(207);var
h,p=(h=l.default,(0,o.default)(g,h),(0,i.default)(g,[{key:"name",get:function()
{return"no_op"}},{key:"template",get:function(){return(0,u.default)(c.default)}},
{key:"attributes",get:function(){return{"data-no-
op":""}}}]),g.prototype.render=function(){var
t=this.options.playbackNotSupportedMessage||
this.i18n.t("playback_not_supported");this.
$el.html(this.template({message:t})),this.trigger(d.default.PLAYBACK_READY,this.nam
e);var e=!(!this.options.poster||!this.options.poster.showForNoOp);return!
this.options.autoPlay&&e||this._animate(),this},g.prototype._noise=function()
{if(this._noiseFrameNum=(this._noiseFrameNum+1)%5,!this._noiseFrameNum){var
e=this.context.createImageData(this.context.canvas.width,this.context.canvas.height
),r=void 0;try{r=new Uint32Array(e.data.buffer)}catch(t){r=new
Uint32Array(this.context.canvas.width*this.context.canvas.height*4);for(var
i=e.data,n=0;n<i.length;n++)r[n]=i[n]}for(var t=r.length,a=6*Math.random()
+4,o=0,s=0,l=0;l<t;)o<0&&(o=a*Math.random(),s=255*Math.pow(Math.random(),.4)<<24),o
-=1,r[l++]=s;this.context.putImageData(e,0,0)}},g.prototype._loop=function(){var
t=this;this._stop||(this._noise(),this._animationHandle=(0,s.requestAnimationFrame)
(function(){return t._loop()}))},g.prototype.destroy=function()
{this._animationHandle&&((0,s.cancelAnimationFrame)
(this._animationHandle),this._stop=!0)},g.prototype._animate=function()
{this.canvas=this.$el.find("canvas[data-no-op-canvas]")
[0],this.context=this.canvas.getContext("2d"),this._loop()},g);function g()
{(0,n.default)(this,g);for(var t=arguments.length,e=Array(t),r=0;r<t;r+
+)e[r]=arguments[r];var i=(0,a.default)(this,h.call.apply(h,
[this].concat(e)));return i._noiseFrameNum=-1,i}(e.default=p).canPlay=function(t)
{return!0},t.exports=e.default},function(t,e){t.exports="<canvas data-no-op-
canvas></canvas>\n<p data-no-op-msg><%=message%><p>\n"},function(t,e,r){var
i=r(208);"string"==typeof i&&(i=[[t.i,i,""]]);var n={singleton:!0,hmr:!
0,transform:void 0,insertInto:void 0};r(10)
(i,n);i.locals&&(t.exports=i.locals)},function(t,e,r){(t.exports=r(8)(!
1)).push([t.i,"[data-no-op]{position:absolute;height:100%;width:100%;text-
align:center}[data-no-op] p[data-no-op-msg]{position:absolute;text-
align:center;font-size:25px;left:0;right:0;color:#fff;padding:10px;top:50%;-webkit-
transform:translateY(-50%);transform:translateY(-50%);max-
height:100%;overflow:auto}[data-no-op] canvas[data-no-op-canvas]{background-
color:#777;height:100%;width:100%}",""])},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
i=c(r(0)),n=c(r(1)),a=c(r(3)),o=c(r(2)),s=c(r(42)),l=c(r(4)),u=c(r(7)),d=c(r(210));
function c(t){return t&&t.__esModule?t:{default:t}}r(211);var f,h=(f=s.default,
(0,o.default)(p,f),(0,a.default)(p,[{key:"name",get:function(){return"spinner"}},
{key:"attributes",get:function(){return{"data-spinner":"",class:"spinner-three-
bounce"}}}]),p.prototype.onBuffering=function()
{this.show()},p.prototype.onBufferFull=function()
{this.hide()},p.prototype.onStop=function()
{this.hide()},p.prototype.show=function(){var
t=this;null===this.showTimeout&&(this.showTimeout=setTimeout(function(){return t.
$el.show()},300))},p.prototype.hide=function(){null!
==this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null),this.
$el.hide()},p.prototype.render=function(){return this.
$el.html(this.template()),this.container.$el.append(this.$el),this.
$el.hide(),this.container.buffering&&this.onBuffering(),this},p);function p(t)
{(0,i.default)(this,p);var e=(0,n.default)(this,f.call(this,t));return
e.template=(0,u.default)
(d.default),e.showTimeout=null,e.listenTo(e.container,l.default.CONTAINER_STATE_BUF
FERING,e.onBuffering),e.listenTo(e.container,l.default.CONTAINER_STATE_BUFFERFULL,e
.onBufferFull),e.listenTo(e.container,l.default.CONTAINER_STOP,e.onStop),e.listenTo
(e.container,l.default.CONTAINER_ENDED,e.onStop),e.listenTo(e.container,l.default.C
ONTAINER_ERROR,e.onStop),e.render(),e}e.default=h,t.exports=e.default},function(t,e
){t.exports="<div data-bounce1></div><div data-bounce2></div><div
data-bounce3></div>\n"},function(t,e,r){var i=r(212);"string"==typeof
i&&(i=[[t.i,i,""]]);var n={singleton:!0,hmr:!0,transform:void 0,insertInto:void
0};r(10)(i,n);i.locals&&(t.exports=i.locals)},function(t,e,r){(t.exports=r(8)(!
1)).push([t.i,".spinner-three-bounce[data-spinner]{position:absolute;margin:0
auto;width:70px;text-align:center;z-index:999;left:0;right:0;margin-
left:auto;margin-right:auto;top:50%;-webkit-transform:translateY(-
50%);transform:translateY(-50%)}.spinner-three-bounce[data-
spinner]>div{width:18px;height:18px;background-color:#fff;border-
radius:100%;display:inline-block;-webkit-animation:bouncedelay 1.4s infinite ease-
in-out;animation:bouncedelay 1.4s infinite ease-in-out;-webkit-animation-fill-
mode:both;animation-fill-mode:both}.spinner-three-bounce[data-spinner] [data-
bounce1]{-webkit-animation-delay:-.32s;animation-delay:-.32s}.spinner-three-
bounce[data-spinner] [data-bounce2]{-webkit-animation-delay:-.16s;animation-
delay:-.16s}@-webkit-keyframes bouncedelay{0%,80%,to{-webkit-
transform:scale(0);transform:scale(0)}40%{-webkit-
transform:scale(1);transform:scale(1)}}@keyframes bouncedelay{0%,80%,to{-webkit-
transform:scale(0);transform:scale(0)}40%{-webkit-
transform:scale(1);transform:scale(1)}}",""])},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
i,n=r(214),a=(i=n)&&i.__esModule?i:
{default:i};e.default=a.default,t.exports=e.default},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
i=d(r(0)),n=d(r(1)),a=d(r(3)),o=d(r(2)),s=d(r(43)),l=d(r(4)),u=d(r(6));function
d(t){return t&&t.__esModule?t:{default:t}}var c,f=(c=s.default,(0,o.default)(h,c),
(0,a.default)(h,[{key:"name",get:function()
{return"stats"}}]),h.prototype.bindEvents=function()
{this.listenTo(this.container.playback,l.default.PLAYBACK_PLAY,this.onPlay),this.li
stenTo(this.container,l.default.CONTAINER_STOP,this.onStop),this.listenTo(this.cont
ainer,l.default.CONTAINER_ENDED,this.onStop),this.listenTo(this.container,l.default
.CONTAINER_DESTROYED,this.onStop),this.listenTo(this.container,l.default.CONTAINER_
STATE_BUFFERING,this.onBuffering),this.listenTo(this.container,l.default.CONTAINER_
STATE_BUFFERFULL,this.onBufferFull),this.listenTo(this.container,l.default.CONTAINE
R_STATS_ADD,this.onStatsAdd),this.listenTo(this.container,l.default.CONTAINER_BITRA
TE,this.onStatsAdd),this.listenTo(this.container.playback,l.default.PLAYBACK_STATS_
ADD,this.onStatsAdd)},h.prototype.setInitialAttrs=function(){this.firstPlay=!
0,this.startupTime=0,this.rebufferingTime=0,this.watchingTime=0,this.rebuffers=0,th
is.externalMetrics={}},h.prototype.onPlay=function()
{this.state="PLAYING",this.watchingTimeInit=Date.now(),this.intervalId||
(this.intervalId=setInterv
al(this.report.bind(this),this.reportInterval))},h.prototype.onStop=function()
{clearInterval(this.intervalId),this.report(),this.intervalId=void
0,this.state="STOPPED"},h.prototype.onBuffering=function(){this.firstPlay?
this.startupTimeInit=Date.now():this.rebufferingTimeInit=Date.now(),this.state="BUF
FERING",this.rebuffers++},h.prototype.onBufferFull=function()
{this.firstPlay&&this.startupTimeInit?(this.firstPlay=!
1,this.startupTime=Date.now()-
this.startupTimeInit,this.watchingTimeInit=Date.now()):this.rebufferingTimeInit&&(t
his.rebufferingTime+=this.getRebufferingTime()),this.rebufferingTimeInit=void
0,this.state="PLAYING"},h.prototype.getRebufferingTime=function(){return
Date.now()-this.rebufferingTimeInit},h.prototype.getWatchingTime=function(){return
Date.now()-this.watchingTimeInit-
this.rebufferingTime},h.prototype.isRebuffering=function(){return!!
this.rebufferingTimeInit},h.prototype.onStatsAdd=function(t)
{u.default.extend(this.externalMetrics,t)},h.prototype.getStats=function(){var
t={startupTime:this.startupTime,rebuffers:this.rebuffers,rebufferingTime:this.isReb
uffering()?
this.rebufferingTime+this.getRebufferingTime():this.rebufferingTime,watchingTime:th
is.isRebuffering()?this.getWatchingTime()-
this.getRebufferingTime():this.getWatchingTime()};return
u.default.extend(t,this.externalMetrics),t},h.prototype.report=function()
{this.container.statsReport(this.getStats())},h);function h(t){(0,i.default)
(this,h);var e=(0,n.default)(this,c.call(this,t));return
e.setInitialAttrs(),e.reportInterval=e.options.reportInterval||
5e3,e.state="IDLE",e}e.default=f,t.exports=e.default},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
i=c(r(0)),n=c(r(1)),a=c(r(3)),o=c(r(2)),s=c(r(42)),l=c(r(4)),u=c(r(7)),d=c(r(216));
function c(t){return t&&t.__esModule?t:{default:t}}r(217);var f,h=(f=s.default,
(0,o.default)(p,f),(0,a.default)(p,[{key:"name",get:function(){return"watermark"}},
{key:"template",get:function(){return(0,u.default)
(d.default)}}]),p.prototype.bindEvents=function()
{this.listenTo(this.container,l.default.CONTAINER_PLAY,this.onPlay),this.listenTo(t
his.container,l.default.CONTAINER_STOP,this.onStop),this.listenTo(this.container,l.
default.CONTAINER_OPTIONS_CHANGE,this.configure)},p.prototype.configure=function()
{this.position=this.options.position||"bottom-right",this.options.watermark?
(this.imageUrl=this.options.watermark,this.imageLink=this.options.watermarkLink,thi
s.render()):this.$el.remove()},p.prototype.onPlay=function(){this.hidden||this.
$el.show()},p.prototype.onStop=function(){this.
$el.hide()},p.prototype.render=function(){this.$el.hide();var
t={position:this.position,imageUrl:this.imageUrl,imageLink:this.imageLink};return
this.$el.html(this.template(t)),this.container.$el.append(this.
$el),this},p);function p(t){(0,i.default)(this,p);var e=(0,n.default)
(this,f.call(this,t));return
e.configure(),e}e.default=h,t.exports=e.default},function(t,e){t.exports='<div
class="clappr-watermark" data-watermark data-watermark-<%=position %>>\n<%
if(typeof imageLink !== \'undefined\') { %>\n<a target=_blank href="<%= imageLink
%>">\n<% } %>\n<img src="<%= imageUrl %>">\n<% if(typeof imageLink !
== \'undefined\') { %>\n</a>\n<% } %>\n</div>\n'},function(t,e,r){var
i=r(218);"string"==typeof i&&(i=[[t.i,i,""]]);var n={singleton:!0,hmr:!
0,transform:void 0,insertInto:void 0};r(10)
(i,n);i.locals&&(t.exports=i.locals)},function(t,e,r){(t.exports=r(8)(!
1)).push([t.i,".clappr-watermark[data-watermark]{position:absolute;min-
width:70px;max-width:200px;width:12%;text-align:center;z-index:10}.clappr-
watermark[data-watermark] a{outline:none;cursor:pointer}.clappr-watermark[data-
watermark] img{max-width:100%}.clappr-watermark[data-watermark-bottom-left]
{bottom:10px;left:10px}.clappr-watermark[data-watermark-bottom-right]
{bottom:10px;right:42px}.clappr-watermark[data-watermark-top-left]
{top:10px;left:10px}.clappr-watermark[data-watermark-top-right]
{top:10px;right:37px}",""])},function(m,v,y){"use strict";(function(r)
{Object.defineProperty(v,"__esModule",{value:!0});var
i=f(y(0)),n=f(y(1)),t=f(y(3)),e=f(y(2)),a=f(y(42)),o=f(y(4)),s=f(y(7)),l=f(y(11)),u
=f(y(80)),d=f(y(220)),c=y(5);function f(t){return t&&t.__esModule?t:
{default:t}}y(221);var h,p=(h=a.default,(0,e.default)(g,h),(0,t.default)(g,
[{key:"name",get:function(){return"poster"}},{key:"template",get:function()
{return(0,s.default)(d.default)}},{key:"shouldRender",get:function(){var t=!(!
this.options.poster||!this.options.poster.showForNoOp);return"html_img"!
==this.container.playback.name&&(this.container.playback.getPlaybackType()!
==l.default.NO_OP||t)}},{key:"attributes",get:function(){return{class:"player-
poster","data-poster":""}}},{key:"events",get:function(){return{click:"clicked"}}},
{key:"showOnVideoEnd",get:function(){return!this.options.poster||
this.options.poster.showOnVideoEnd||void
0===this.options.poster.showOnVideoEnd}}]),g.prototype.bindEvents=function()
{this.listenTo(this.container,o.default.CONTAINER_STOP,this.onStop),this.listenTo(t
his.container,o.default.CONTAINER_PLAY,this.onPlay),this.listenTo(this.container,o.
default.CONTAINER_STATE_BUFFERING,this.update),this.listenTo(this.container,o.defau
lt.CONTAINER_STATE_BUFFERFULL,this.update),this.listenTo(this.container,o.default.C
ONTAINER_OPTIONS_CHANGE,this.render),this.listenTo(this.container,o.default.CONTAIN
ER_ERROR,this.onError),this.showOnVideoEnd&&this.listenTo(this.container,o.default.
CONTAINER_ENDED,this.onStop)},g.prototype.onError=function(t)
{this.hasFatalError=t.level===u.default.Levels.FATAL,this.hasFatalError&&(this.hasS
tartedPlaying=!1,this.playRequested=!
1,this.showPlayButton())},g.prototype.onPlay=function(){this.hasStartedPlaying=!
0,this.update()},g.prototype.onStop=function(){this.hasStartedPlaying=!
1,this.playRequested=!1,this.update()},g.prototype.updatePlayButton=function(t){!
t||this.options.chromeless&&!this.options.allowUserInteraction?
this.hidePlayButton():this.showPlayButton()},g.prototype.showPlayButton=function()
{this.hasFatalError&&!this.options.disableErrorScreen||(this.
$playButton.show(),this.
$el.addClass("clickable"))},g.prototype.hidePlayButton=function(){this.
$playButton.hide(),this.
$el.removeClass("clickable")},g.prototype.clicked=function(){if(!
this.hasStartedPlaying)return this.options.chromeless&&!
this.options.allowUserInteraction||(this.playRequested=!
0,this.update(),this.container.play()),!1},g.prototype.shouldHideOnPlay=function()
{return!this.container.playback.isAudioOnly},g.prototype.update=function()
{if(this.shouldRender){var t=!this.playRequested&&!this.hasStartedPlaying&&!
this.container.buffering;this.updatePlayButton(t),this.updatePoster()}},g.prototype
.updatePoster=function(){this.hasStartedPlaying?
this.hidePoster():this.showPoster()},g.prototype.showPoster=function()
{this.container.disableMediaControl(),this.
$el.show()},g.prototype.hidePoster=function()
{this.container.enableMediaControl(),this.shouldHideOnPlay()&&this.
$el.hide()},g.prototype.render=function(){if(this.shouldRender){if(this.
$el.html(this.template()),this.options.poster&&void 0===this.options.poster.custom)
{var t=this.options.poster.url||this.options.poster;this.$el.css({"background-
image":"url("+t+")"})}else this.options.poster&&this.
$el.css({background:this.options.poster.custom});this.container.
$el.append(this.el),this.$playWrapper=this.$el.find(".play-wrapper"),this.
$playWrapper.append(c.SvgIcons.play),this.$playButton=this.
$playWrapper.find("svg"),this.$playButton.addClass("poster-icon"),this.
$playButton.attr("data-poster","");var
e=this.options.mediacontrol&&this.options.mediacontrol.buttons;return e&&this.
$el.find("svg
path").css("fill",e),this.options.mediacontrol&&this.options.mediacontrol.buttons&&
(e=this.options.mediacontrol.buttons,this.
$playButton.css("color",e)),this.update(),this}},g);function g(t){(0,i.default)
(this,g);var e=(0,n.default)(this,h.call(this,t));return e.hasStartedPlaying=!
1,e.playRequested=!1,e.render(),r.nextTick(function(){return
e.update()}),e}v.default=p,m.exports=v.default}).call(this,y(63))},function(t,e)
{t.exports='<div class="play-wrapper" data-poster></div>\n'},function(t,e,r){var
i=r(222);"string"==typeof i&&(i=[[t.i,i,""]]);var n={singleton:!0,hmr:!
0,transform:void 0,insertInto:void 0};r(10)
(i,n);i.locals&&(t.exports=i.locals)},function(t,e,r){(t.exports=r(8)(!
1)).push([t.i,".player-poster[data-poster]{display:-webkit-box;display:-ms-
flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-
content:center;-webkit-box-align:center;-ms-flex-align:center;align-
items:center;position:absolute;height:100%;width:100%;z-
index:998;top:0;left:0;background-color:#000;background-size:cover;background-
repeat:no-repeat;background-position:50% 50%}.player-poster[data-
poster].clickable{cursor:pointer}.player-poster[data-poster]:hover .play-
wrapper[data-poster]{opacity:1}.player-poster[data-poster] .play-wrapper[data-
poster]{width:100%;height:25%;margin:0 auto;opacity:.75;transition:opacity .1s
ease}.player-poster[data-poster] .play-wrapper[data-poster]
svg{height:100%}.player-poster[data-poster] .play-wrapper[data-poster] svg
path{fill:#fff}",""])},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
i,n=r(224),a=(i=n)&&i.__esModule?i:
{default:i};e.default=a.default,t.exports=e.default},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
i=u(r(0)),n=u(r(1)),a=u(r(3)),o=u(r(2)),s=u(r(43)),l=u(r(4));function u(t){return
t&&t.__esModule?t:{default:t}}var d,c=(d=s.default,(0,o.default)(f,d),(0,a.default)
(f,[{key:"name",get:function()
{return"google_analytics"}}]),f.prototype.embedScript=function(){var
t=this;if(window._gat)this.addEventListeners();else{var
e=document.createElement("script");e.setAttribute("type","text/javascript"),e.setAt
tribute("async","async"),e.setAttribute("src","//www.google-analytics.com/
ga.js"),e.onload=function(){return
t.addEventListeners()},document.body.appendChild(e)}},f.prototype.addEventListeners
=function(){var

e=this;this.container&&(this.listenTo(this.container,l.default.CONTAINER_READY,this
.onReady),this.listenTo(this.container,l.default.CONTAINER_PLAY,this.onPlay),this.l
istenTo(this.container,l.default.CONTAINER_STOP,this.onStop),this.listenTo(this.con
tainer,l.default.CONTAINER_PAUSE,this.onPause),this.listenTo(this.container,l.defau
lt.CONTAINER_ENDED,this.onEnded),this.listenTo(this.container,l.default.CONTAINER_S
TATE_BUFFERING,this.onBuffering),this.listenTo(this.container,l.default.CONTAINER_S
TATE_BUFFERFULL,this.onBufferFull),this.listenTo(this.container,l.default.CONTAINER
_ERROR,this.onError),this.listenTo(this.container,l.default.CONTAINER_PLAYBACKSTATE
,this.onPlaybackChanged),this.listenTo(this.container,l.default.CONTAINER_VOLUME,fu
nction(t){return
e.onVolumeChanged(t)}),this.listenTo(this.container,l.default.CONTAINER_SEEK,functi
on(t){return
e.onSeek(t)}),this.listenTo(this.container,l.default.CONTAINER_FULL_SCREEN,this.onF
ullscreen),this.listenTo(this.container,l.default.CONTAINER_HIGHDEFINITIONUPDATE,th
is.onHD),this.listenTo(this.container,l.default.CONTAINER_PLAYBACKDVRSTATECHANGED,t
his.onDVR)),_gaq.push([this.trackerName+"_setAccount",this.account]),this.domainNam
e&&_gaq.push([this.trackerName+"_setDomainName",this.domainName])},f.prototype.onRe
ady=function()
{this.push(["Video","Playback",this.container.playback.name])},f.prototype.onPlay=f
unction()
{this.push(["Video","Play",this.container.playback.src])},f.prototype.onStop=functi
on()
{this.push(["Video","Stop",this.container.playback.src])},f.prototype.onEnded=funct
ion()
{this.push(["Video","Ended",this.container.playback.src])},f.prototype.onBuffering=
function()
{this.push(["Video","Buffering",this.container.playback.src])},f.prototype.onBuffer
Full=function()
{this.push(["Video","Bufferfull",this.container.playback.src])},f.prototype.onError
=function()
{this.push(["Video","Error",this.container.playback.src])},f.prototype.onHD=functio
n(t){var e=t?"ON":"OFF";e!
==this.currentHDState&&(this.currentHDState=e,this.push(["Video","HD -
"+e,this.container.playback.src]))},f.prototype.onPlaybackChanged=function(t){null!
==t.type&&this.push(["Video","Playback Type -
"+t.type,this.container.playback.src])},f.prototype.onDVR=function(t){var
e=t?"ON":"OFF";this.push(["Interaction","DVR -
"+e,this.container.playback.src])},f.prototype.onPause=function()
{this.push(["Video","Pause",this.container.playback.src])},f.prototype.onSeek=funct
ion()
{this.push(["Video","Seek",this.container.playback.src])},f.prototype.onVolumeChang
ed=function()
{this.push(["Interaction","Volume",this.container.playback.src])},f.prototype.onFul
lscreen=function()
{this.push(["Interaction","Fullscreen",this.container.playback.src])},f.prototype.p
ush=function(t){var
e=[this.trackerName+"_trackEvent"].concat(t);_gaq.push(e)},f);function f(t)
{(0,i.default)(this,f);var e=(0,n.default)(this,d.call(this,t));return
e.container.options.gaAccount&&(e.account=e.container.options.gaAccount,e.trackerNa
me=e.container.options.gaTrackerName?
e.container.options.gaTrackerName+".":"Clappr.",e.domainName=e.container.options.ga
DomainName,e.currentHDState=void
0,e.embedScript()),e}e.default=c,t.exports=e.default},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
i=d(r(0)),n=d(r(1)),a=d(r(3)),o=d(r(2)),s=d(r(43)),l=d(r(4)),u=d(r(11));function
d(t){return t&&t.__esModule?t:{default:t}}var c,f=(c=s.default,(0,o.default)(h,c),
(0,a.default)(h,[{key:"name",get:function()
{return"click_to_pause"}}]),h.prototype.bindEvents=function()
{this.listenTo(this.container,l.default.CONTAINER_CLICK,this.click),this.listenTo(t
his.container,l.default.CONTAINER_SETTINGSUPDATE,this.settingsUpdate)},h.prototype.
click=function(){this.container.getPlaybackType()===u.default.LIVE&&!
this.container.isDvrEnabled()||(this.container.isPlaying()?
this.container.pause():this.container.play())},h.prototype.settingsUpdate=function(
){var t=this.container.getPlaybackType()!==u.default.LIVE||
this.container.isDvrEnabled();if(t!==this.pointerEnabled){var
e=t?"addClass":"removeClass";this.container.$el[e]("pointer-
enabled"),this.pointerEnabled=t}},h);function h(t){return(0,i.default)(this,h),
(0,n.default)(this,c.call(this,t))}e.default=f,t.exports=e.default},function(_,b,E)
{"use strict";(function(i){Object.defineProperty(b,"__esModule",{value:!0});var
e=m(E(89)),r=m(E(0)),n=m(E(1)),t=m(E(3)),a=m(E(2)),o=E(5),s=E(61),l=m(E(4)),u=m(E(2
4)),d=m(E(14)),c=m(E(31)),f=m(E(7)),h=m(E(11)),p=m(E(6));E(227);var
g=m(E(229));function m(t){return t&&t.__esModule?t:{default:t}}var
v,y=(v=u.default,(0,a.default)(A,v),(0,t.default)(A,[{key:"name",get:function()
{return"media_control"}},{key:"disabled",get:function(){var
t=this.container&&this.container.getPlaybackType()===h.default.NO_OP;return
this.userDisabled||t}},{key:"container",get:function(){return
this.core&&this.core.activeContainer}},{key:"playback",get:function(){return
this.core&&this.core.activePlayback}},{key:"attributes",get:function()
{return{class:"media-control","data-media-control":""}}},
{key:"events",get:function(){return{"click [data-play]":"play","click [data-
pause]":"pause","click [data-playpause]":"togglePlayPause","click [data-
stop]":"stop","click [data-playstop]":"togglePlayStop","click [data-
fullscreen]":"toggleFullscreen","click .bar-container[data-
seekbar]":"seek","click .bar-container[data-
volume]":"onVolumeClick","click .drawer-icon[data-volume]":"toggleMute","mouseenter
.drawer-container[data-volume]":"showVolumeBar","mouseleave .drawer-container[data-
volume]":"hideVolumeBar","mousedown .bar-container[data-
volume]":"startVolumeDrag","mousemove .bar-container[data-
volume]":"mousemoveOnVolumeBar","mousedown .bar-scrubber[data-
seekbar]":"startSeekDrag","mousemove .bar-container[data-
seekbar]":"mousemoveOnSeekBar","mouseleave .bar-container[data-
seekbar]":"mouseleaveOnSeekBar","mouseenter .media-control-layer[data-
controls]":"setUserKeepVisible","mouseleave .media-control-layer[data-
controls]":"resetUserKeepVisible"}}},{key:"template",get:function()
{return(0,f.default)(g.default)}},{key:"volume",get:function(){return
this.container&&this.container.isReady?this.container.volume:this.intendedVolume}},
{key:"muted",get:function(){return
0===this.volume}}]),A.prototype.getExternalInterface=function(){var
t=this;return{setVolume:this.setVolume,getVolume:function(){return
t.volume}}},A.prototype.bindEvents=function(){var
t=this;this.stopListening(),this.listenTo(this.core,l.default.CORE_ACTIVE_CONTAINER
_CHANGED,this.onActiveContainerChanged),this.listenTo(this.core,l.default.CORE_MOUS
E_MOVE,this.show),this.listenTo(this.core,l.default.CORE_MOUSE_LEAVE,function()
{return
t.hide(t.options.hideMediaControlDelay)}),this.listenTo(this.core,l.default.CORE_FU
LLSCREEN,this.show),this.listenTo(this.core,l.default.CORE_OPTIONS_CHANGE,this.conf
igure),c.default.on(this.options.playerId+":"+l.default.PLAYER_RESIZE,this.playerRe
size,this),this.bindContainerEvents()},A.prototype.bindContainerEvents=function()
{this.container&&(this.listenTo(this.container,l.default.CONTAINER_PLAY,this.change
TogglePlay),this.listenTo(this.container,l.default.CONTAINER_PAUSE,this.changeToggl
ePlay),this.listenTo(this.container,l.default.CONTAINER_STOP,this.changeTogglePlay)
,this.listenTo(this.container,l.default.CONTAINER_DBLCLICK,this.toggleFullscreen),t
his.listenTo(this.container,l.default.CONTAINER_TIMEUPDATE,this.onTimeUpdate),this.
listenTo(this.container,l.default.CONTAINER_PROGRESS,this.updateProgressBar),this.l
istenTo(this.container,l.default.CONTAINER_SETTINGSUPDATE,this.settingsUpdate),this
.listenTo(this.container,l.default.CONTAINER_PLAYBACKDVRSTATECHANGED,this.settingsU
pdate),this.listenTo(this.container,l.default.CONTAINER_HIGHDEFINITIONUPDATE,this.h
ighDefinitionUpdate),this.listenTo(this.container,l.default.CONTAINER_MEDIACONTROL_
DISABLE,this.disable),this.listenTo(this.container,l.default.CONTAINER_MEDIACONTROL
_ENABLE,this.enable),this.listenTo(this.container,l.default.CONTAINER_ENDED,this.en
ded),this.listenTo(this.container,l.default.CONTAINER_VOLUME,this.onVolumeChanged),
this.listenTo(this.container,l.default.CONTAINER_OPTIONS_CHANGE,this.setInitialVolu
me),"video"===this.container.playback.el.nodeName.toLowerCase()&&this.listenToOnce(
this.container,l.default.CONTAINER_LOADEDMETADATA,this.onLoadedMetadataOnVideoTag))
},A.prototype.disable=function(){this.userDisabled=!
0,this.hide(),this.unbindKeyEvents(),this.$el.hide()},A.prototype.enable=function()
{this.options.chromeless||(this.userDisabled=!
1,this.bindKeyEvents(),this.show())},A.prototype.play=function()
{this.container&&this.container.play()},A.prototype.pause=function()
{this.container&&this.container.pause()},A.prototype.stop=function()
{this.container&&this.container.stop()},A.prototype.setInitialVolume=function(){var
t=this.persistConfig?
o.Config.restore("volume"):100,e=this.container&&this.container.options||
this.options;this.setVolume(e.mute?0:t,!0)},A.prototype.onVolumeChanged=function()
{this.updateVolumeUI()},A.prototype.onLoadedMetadataOnVideoTag=function(){var
t=this.playback&&this.playback.el;!
o.Fullscreen.fullscreenEnabled()&&t.webkitSupportsFullscreen&&(this.fullScreenOnVid
eoTagSupported=!0,this.settingsUpdate())},A.prototype.updateVolumeUI=function()
{if(this.rendered){this.$volumeBarContainer.find(".bar-fill-2").css({});var t=this.
$volumeBarContainer.width(),e=this.$volumeBarBackground.width(),r=(t-e)/
2,i=e*this.volume/100+r;this.$volumeBarFill.css({width:this.volume+"%"}),this.
$volumeBarScrubber.css({left:i}),this.$volumeBarContainer.find(".segmented-bar-
element").removeClass("fill");var n=Math.ceil(this.volume/10);this.
$volumeBarContainer.find(".segmented-bar-
element").slice(0,n).addClass("fill"),this.$volumeIcon.html(""),this.
$volumeIcon.removeClass("muted"),this.muted?(this.
$volumeIcon.append(o.SvgIcons.volumeMute),this.$volumeIcon.addClass("muted")):this.
$volumeIcon.append(o.SvgIcons.volume),this.applyButtonStyle(this.
$volumeIcon)}},A.prototype.changeTogglePlay=function(){this.
$playPauseToggle.html(""),this.$playStopToggle.html(""
),this.container&&this.container.isPlaying()?(this.
$playPauseToggle.append(o.SvgIcons.pause),this.
$playStopToggle.append(o.SvgIcons.stop),this.trigger(l.default.MEDIACONTROL_PLAYING
)):(this.$playPauseToggle.append(o.SvgIcons.play),this.
$playStopToggle.append(o.SvgIcons.play),this.trigger(l.default.MEDIACONTROL_NOTPLAY
ING),d.default.isMobile&&this.show()),this.applyButtonStyle(this.
$playPauseToggle),this.applyButtonStyle(this.
$playStopToggle)},A.prototype.mousemoveOnSeekBar=function(t)
{if(this.settings.seekEnabled){var e=t.pageX-this.$seekBarContainer.offset().left-
this.$seekBarHover.width()/2;this.
$seekBarHover.css({left:e})}this.trigger(l.default.MEDIACONTROL_MOUSEMOVE_SEEKBAR,t
)},A.prototype.mouseleaveOnSeekBar=function(t)
{this.trigger(l.default.MEDIACONTROL_MOUSELEAVE_SEEKBAR,t)},A.prototype.onVolumeCli
ck=function(t)
{this.setVolume(this.getVolumeFromUIEvent(t))},A.prototype.mousemoveOnVolumeBar=fun
ction(t)
{this.draggingVolumeBar&&this.setVolume(this.getVolumeFromUIEvent(t))},A.prototype.
playerResize=function(t){this.$fullscreenToggle.html("");var
e=this.core.isFullscreen()?o.SvgIcons.exitFullscreen:o.SvgIcons.fullscreen;this.
$fullscreenToggle.append(e),this.applyButtonStyle(this.$fullscreenToggle),0!==this.
$el.find(".media-control").length&&this.$el.removeClass("w320"),(t.width<=320||
this.options.hideVolumeBar)&&this.
$el.addClass("w320")},A.prototype.togglePlayPause=function(){return
this.container.isPlaying()?this.container.pause():this.container.play(),!
1},A.prototype.togglePlayStop=function(){this.container.isPlaying()?
this.container.stop():this.container.play()},A.prototype.startSeekDrag=function(t)
{this.settings.seekEnabled&&(this.draggingSeekBar=!0,this.
$el.addClass("dragging"),this.$seekBarLoaded.addClass("media-control-
notransition"),this.$seekBarPosition.addClass("media-control-notransition"),this.
$seekBarScrubber.addClass("media-control-
notransition"),t&&t.preventDefault())},A.prototype.startVolumeDrag=function(t)
{this.draggingVolumeBar=!0,this.
$el.addClass("dragging"),t&&t.preventDefault()},A.prototype.stopDrag=function(t)
{this.draggingSeekBar&&this.seek(t),this.$el.removeClass("dragging"),this.
$seekBarLoaded.removeClass("media-control-notransition"),this.
$seekBarPosition.removeClass("media-control-notransition"),this.
$seekBarScrubber.removeClass("media-control-notransition
dragging"),this.draggingSeekBar=!1,this.draggingVolumeBar=!
1},A.prototype.updateDrag=function(t){if(this.draggingSeekBar)
{t.preventDefault();var e=(t.pageX-this.$seekBarContainer.offset().left)/this.
$seekBarContainer.width()*100;e=Math.min(100,Math.max(e,0)),this.setSeekPercentage(
e)}else
this.draggingVolumeBar&&(t.preventDefault(),this.setVolume(this.getVolumeFromUIEven
t(t)))},A.prototype.getVolumeFromUIEvent=function(t){return(t.pageX-this.
$volumeBarContainer.offset().left)/this.
$volumeBarContainer.width()*100},A.prototype.toggleMute=function()
{if(this.muted)return this.setVolume(this._mutedVolume||
100),void(this._mutedVolume=null);this._mutedVolume=this.volume,this.setVolume(0)},
A.prototype.setVolume=function(t,e){var r=this,i=1<arguments.length&&void 0!
==e&&e;function n(){r.container&&r.container.isReady?
r.container.setVolume(t):r.listenToOnce(r.container,l.default.CONTAINER_READY,funct
ion()
{r.container.setVolume(t)})}t=Math.min(100,Math.max(t,0)),this.intendedVolume=t,thi
s.persistConfig&&!i&&o.Config.persist("volume",t),this.container?
n():this.listenToOnce(this,l.default.MEDIACONTROL_CONTAINERCHANGED,function()
{return n()})},A.prototype.toggleFullscreen=function()
{this.trigger(l.default.MEDIACONTROL_FULLSCREEN,this.name),this.container.fullscree
n(),this.core.toggleFullscreen(),this.resetUserKeepVisible()},A.prototype.onActiveC
ontainerChanged=function()
{this.fullScreenOnVideoTagSupported=null,c.default.off(this.options.playerId+":"+l.
default.PLAYER_RESIZE,this.playerResize,this),this.bindEvents(),this.setInitialVolu
me(),this.changeTogglePlay(),this.bindContainerEvents(),this.settingsUpdate(),this.
container&&this.container.trigger(l.default.CONTAINER_PLAYBACKDVRSTATECHANGED,this.
container.isDvrInUse()),this.container&&this.container.mediaControlDisabled&&this.d
isable(),this.trigger(l.default.MEDIACONTROL_CONTAINERCHANGED)},A.prototype.showVol
umeBar=function(){this.hideVolumeId&&clearTimeout(this.hideVolumeId),this.
$volumeBarContainer.removeClass("volume-bar-
hide")},A.prototype.hideVolumeBar=function(t){var e=this,r=0<arguments.length&&void
0!==t?t:400;this.$volumeBarContainer&&(this.draggingVolumeBar?
this.hideVolumeId=setTimeout(function(){return e.hideVolumeBar()},r):
(this.hideVolumeId&&clearTimeout(this.hideVolumeId),this.hideVolumeId=setTimeout(fu
nction(){return e.$volumeBarContainer.addClass("volume-bar-
hide")},r)))},A.prototype.ended=function()
{this.changeTogglePlay()},A.prototype.updateProgressBar=function(t){var
e=t.start/t.total*100,r=t.current/t.total*100;this.
$seekBarLoaded.css({left:e+"%",width:r-
e+"%"})},A.prototype.onTimeUpdate=function(t){if(!this.draggingSeekBar){var
e=t.current<0?
t.total:t.current;this.currentPositionValue=e,this.currentDurationValue=t.total,thi
s.renderSeekBar()}},A.prototype.renderSeekBar=function(){if(null!
==this.currentPositionValue&&null!==this.currentDurationValue)
{this.currentSeekBarPercentage=100,this.container&&(this.container.getPlaybackType(
)!==h.default.LIVE||
this.container.isDvrInUse())&&(this.currentSeekBarPercentage=this.currentPositionVa
lue/
this.currentDurationValue*100),this.setSeekPercentage(this.currentSeekBarPercentage
);var t=(0,o.formatTime)(this.currentPositionValue),e=(0,o.formatTime)
(this.currentDurationValue);t!==this.displayedPosition&&(this.
$position.text(t),this.displayedPosition=t),e!==this.displayedDuration&&(this.
$duration.text(e),this.displayedDuration=e)}},A.prototype.seek=function(t)
{if(this.settings.seekEnabled){var e=(t.pageX-this.
$seekBarContainer.offset().left)/this.$seekBarContainer.width()*100;return
e=Math.min(100,Math.max(e,0)),this.container&&this.container.seekPercentage(e),this
.setSeekPercentage(e),!1}},A.prototype.setKeepVisible=function(){this.keepVisible=!
0},A.prototype.resetKeepVisible=function(){this.keepVisible=!
1},A.prototype.setUserKeepVisible=function(){this.userKeepVisible=!
0},A.prototype.resetUserKeepVisible=function(){this.userKeepVisible=!
1},A.prototype.isVisible=function(){return!this.$el.hasClass("media-control-
hide")},A.prototype.show=function(t){var e=this;if(!this.disabled){var
r=t&&t.clientX!==this.lastMouseX&&t.clientY!==this.lastMouseY;t&&!r&&!
navigator.userAgent.match(/firefox/i)||(clearTimeout(this.hideId),this.
$el.show(),this.trigger(l.default.MEDIACONTROL_SHOW,this.name),this.container&&this
.container.trigger(l.default.CONTAINER_MEDIACONTROL_SHOW,this.name),this.
$el.removeClass("media-control-hide"),this.hideId=setTimeout(function(){return
e.hide()},2e3),t&&(this.lastMouseX=t.clientX,this.lastMouseY=t.clientY)),this.updat
eCursorStyle(!0)}},A.prototype.hide=function(t){var
e=this,r=0<arguments.length&&void 0!==t?t:0;if(this.isVisible()){var i=r||
2e3;if(clearTimeout(this.hideId),this.disabled||!1!==this.options.hideMediaControl)
{var n=this.userKeepVisible||this.keepVisible,a=this.draggingSeekBar||
this.draggingVolumeBar;!this.disabled&&(r||n||a)?this.hideId=setTimeout(function()
{return e.hide()},i):
(this.trigger(l.default.MEDIACONTROL_HIDE,this.name),this.container&&this.container
.trigger(l.default.CONTAINER_MEDIACONTROL_HIDE,this.name),this.$el.addClass("media-
control-hide"),this.hideVolumeBar(0),this.updateCursorStyle(!
1))}}},A.prototype.updateCursorStyle=function(t){t?this.core.
$el.removeClass("nocursor"):this.core.isFullscreen()&&this.core.
$el.addClass("nocursor")},A.prototype.settingsUpdate=function(){var
t=this.getSettings();!t||this.fullScreenOnVideoTagSupported||
o.Fullscreen.fullscreenEnabled()||(t.default&&(0,o.removeArrayItem)
(t.default,"fullscreen"),t.left&&(0,o.removeArrayItem)
(t.left,"fullscreen"),t.right&&(0,o.removeArrayItem)(t.right,"fullscreen")),
(0,e.default)(this.settings)!==(0,e.default)
(t)&&(this.settings=t,this.render())},A.prototype.getSettings=function(){return
p.default.extend(!0,
{},this.container&&this.container.settings)},A.prototype.highDefinitionUpdate=funct
ion(t){var e=(this.isHD=t)?"addClass":"removeClass";this.$hdIndicator[e]
("enabled")},A.prototype.createCachedElements=function(){var t=this.
$el.find(".media-control-layer");this.$duration=t.find(".media-control-
indicator[data-duration]"),this.$fullscreenToggle=t.find("button.media-control-
button[data-fullscreen]"),this.$playPauseToggle=t.find("button.media-control-
button[data-playpause]"),this.$playStopToggle=t.find("button.media-control-
button[data-playstop]"),this.$position=t.find(".media-control-indicator[data-
position]"),this.$seekBarContainer=t.find(".bar-container[data-seekbar]"),this.
$seekBarHover=t.find(".bar-hover[data-seekbar]"),this.$seekBarLoaded=t.find(".bar-
fill-1[data-seekbar]"),this.$seekBarPosition=t.find(".bar-fill-2[data-
seekbar]"),this.$seekBarScrubber=t.find(".bar-scrubber[data-seekbar]"),this.
$volumeBarContainer=t.find(".bar-container[data-volume]"),this.
$volumeContainer=t.find(".drawer-container[data-volume]"),this.
$volumeIcon=t.find(".drawer-icon[data-volume]"),this.$volumeBarBackground=this.
$el.find(".bar-background[data-volume]"),this.$volumeBarFill=this.$el.find(".bar-
fill-1[data-volume]"),this.$volumeBarScrubber=this.$el.find(".bar-scrubber[data-
volume]"),this.$hdIndicator=this.$el.find("button.media-control-button[data-hd-
indicator]"),this.resetIndicators(),this.initializeIcons()},A.prototype.resetIndica
tors=function(){this.displayedPosition=this.
$position.text(),this.displayedDuration=this.
$duration.text()},A.prototype.initializeIcons=function(){var t=this.
$el.find(".media-control-layer");t.find("button.media-control-button[data-
play]").append(o.SvgIcons.play),t.find("button.media-control-button[data-
pause]").append(o.SvgIcons.pause),t.find("button.media-control-button[data-
stop]").append(o.SvgIcons.stop),this.$playPauseToggle.append(o.SvgIcons.play),this.
$playStopToggle.append(o.SvgIcons.play),this.$volumeIcon.ap
pend(o.SvgIcons.volume),this.$fullscreenToggle.append(o.SvgIcons.fullscreen),this.
$hdIndicator.append(o.SvgIcons.hd)},A.prototype.setSeekPercentage=function(t)
{t=Math.max(Math.min(t,100),0),this.displayedSeekBarPercentage!
==t&&(this.displayedSeekBarPercentage=t,this.$seekBarPosition.removeClass("media-
control-notransition"),this.$seekBarScrubber.removeClass("media-control-
notransition"),this.$seekBarPosition.css({width:t+"%"}),this.
$seekBarScrubber.css({left:t+"%"}))},A.prototype.seekRelative=function(t)
{if(this.settings.seekEnabled){var
e=this.container.getCurrentTime(),r=this.container.getDuration(),i=Math.min(Math.ma
x(e+t,0),r);i=Math.min(100*i/
r,100),this.container.seekPercentage(i)}},A.prototype.bindKeyAndShow=function(t,e)
{var r=this;this.kibo.down(t,function(){return
r.show(),e()})},A.prototype.bindKeyEvents=function(){var
e=this;d.default.isMobile||this.options.disableKeyboardShortcuts||
(this.unbindKeyEvents(),this.kibo=new s.Kibo(this.options.focusElement||
this.options.parentElement),this.bindKeyAndShow("space",function(){return
e.togglePlayPause()}),this.bindKeyAndShow("left",function(){return e.seekRelative(-
5)}),this.bindKeyAndShow("right",function(){return
e.seekRelative(5)}),this.bindKeyAndShow("shift left",function(){return
e.seekRelative(-10)}),this.bindKeyAndShow("shift right",function(){return
e.seekRelative(10)}),this.bindKeyAndShow("shift ctrl left",function(){return
e.seekRelative(-15)}),this.bindKeyAndShow("shift ctrl right",function(){return
e.seekRelative(15)}),["1","2","3","4","5","6","7","8","9","0"].forEach(function(t)
{e.bindKeyAndShow(t,function()
{e.settings.seekEnabled&&e.container&&e.container.seekPercentage(10*t)})}))},A.prot
otype.unbindKeyEvents=function()
{this.kibo&&(this.kibo.off("space"),this.kibo.off("left"),this.kibo.off("right"),th
is.kibo.off("shift left"),this.kibo.off("shift right"),this.kibo.off("shift ctrl
left"),this.kibo.off("shift ctrl
right"),this.kibo.off(["1","2","3","4","5","6","7","8","9","0"]))},A.prototype.pars
eColors=function(){if(this.options.mediacontrol)
{this.buttonsColor=this.options.mediacontrol.buttons;var
t=this.options.mediacontrol.seekbar;this.$el.find(".bar-fill-2[data-
seekbar]").css("background-color",t),this.$el.find(".media-control-icon svg
path").css("fill",this.buttonsColor),this.$el.find(".segmented-bar-element[data-
volume]").css("boxShadow","inset 2px 0 0
"+this.buttonsColor)}},A.prototype.applyButtonStyle=function(t)
{this.buttonsColor&&t&&(0,p.default)(t).find("svg
path").css("fill",this.buttonsColor)},A.prototype.destroy=function(){(0,p.default)
(document).unbind("mouseup",this.stopDragHandler),(0,p.default)
(document).unbind("mousemove",this.updateDragHandler),this.unbindKeyEvents(),this.s
topListening(),v.prototype.destroy.call(this)},A.prototype.configure=function(t)
{this.options.chromeless||t.source||t.sources?
this.disable():this.enable(),this.trigger(l.default.MEDIACONTROL_OPTIONS_CHANGE)},A
.prototype.render=function(){var t=this,e=this.options.hideMediaControlDelay||
2e3;this.settings&&this.
$el.html(this.template({settings:this.settings})),this.createCachedElements(),this.
$playPauseToggle.addClass("paused"),this.
$playStopToggle.addClass("stopped"),this.changeTogglePlay(),this.container&&(this.h
ideId=setTimeout(function(){return
t.hide()},e),this.disabled&&this.hide()),d.default.isSafari&&d.default.isMobile&&(d
.default.version<10?this.$volumeContainer.css("display","none"):this.
$volumeBarContainer.css("display","none")),this.$seekBarPosition.addClass("media-
control-notransition"),this.$seekBarScrubber.addClass("media-control-
notransition");var r=0;return
this.displayedSeekBarPercentage&&(r=this.displayedSeekBarPercentage),this.displayed
SeekBarPercentage=null,this.setSeekPercentage(r),i.nextTick(function()
{t.settings.seekEnabled||t.$seekBarContainer.addClass("seek-
disabled"),d.default.isMobile||t.options.disableKeyboardShortcuts||
t.bindKeyEvents(),t.playerResize({width:t.options.width,height:t.options.height}),t
.hideVolumeBar(0)}),this.parseColors(),this.highDefinitionUpdate(this.isHD),this.co
re.$el.append(this.el),this.rendered=!
0,this.updateVolumeUI(),this.trigger(l.default.MEDIACONTROL_RENDERED),this},A);func
tion A(t){(0,r.default)(this,A);var e=(0,n.default)(this,v.call(this,t));return
e.persistConfig=e.options.persistConfig,e.currentPositionValue=null,e.currentDurati
onValue=null,e.keepVisible=!
1,e.fullScreenOnVideoTagSupported=null,e.setInitialVolume(),e.settings={left:
["play","stop","pause"],right:["volume"],default:
["position","seekbar","duration"]},e.kibo=new
s.Kibo(e.options.focusElement),e.bindKeyEvents(),e.container?
p.default.isEmptyObject(e.container.settings)||
(e.settings=p.default.extend({},e.container.settings)):e.settings={},e.userDisabled
=!1,(e.container&&e.container.mediaControlDisabled||
e.options.chromeless)&&e.disable(),e.stopDragHandler=function(t){return
e.stopDrag(t)},e.updateDragHandler=function(t){return e.updateDrag(t)},
(0,p.default)(document).bind("mouseup",e.stopDragHandler),(0,p.default)
(document).bind("mousemove",e.updateDragHandler),e}(b.default=y).extend=function(t)
{return(0,o.extend)(y,t)},_.exports=b.default}).call(this,E(63))},function(t,e,r)
{var i=r(228);"string"==typeof i&&(i=[[t.i,i,""]]);var n={singleton:!0,hmr:!
0,transform:void 0,insertInto:void 0};r(10)
(i,n);i.locals&&(t.exports=i.locals)},function(t,e,r){var i=r(82);(t.exports=r(8)(!
1)).push([t.i,".media-control-notransition{transition:none!important}.media-
control[data-media-control]{position:absolute;width:100%;height:100%;z-
index:9999;pointer-events:none}.media-control[data-media-control].dragging{pointer-
events:auto;cursor:-webkit-grabbing!important;cursor:grabbing!
important;cursor:url("+i(r(97))+"),move}.media-control[data-media-control].dragging
*{cursor:-webkit-grabbing!important;cursor:grabbing!important;cursor:url("+i(r(97))
+'),move}.media-control[data-media-control] .media-control-background[data-
background]{position:absolute;height:40%;width:100%;bottom:0;background:linear-
gradient(transparent,rgba(0,0,0,.9));transition:opacity .6s ease-out}.media-
control[data-media-control] .media-control-icon{line-height:0;letter-
spacing:0;speak:none;color:#fff;opacity:.5;vertical-align:middle;text-
align:left;transition:all .1s ease}.media-control[data-media-control] .media-
control-icon:hover{color:#fff;opacity:.75;text-shadow:hsla(0,0%,100%,.8) 0 0
5px}.media-control[data-media-control].media-control-hide .media-control-
background[data-background]{opacity:0}.media-control[data-media-control].media-
control-hide .media-control-layer[data-controls]{bottom:-50px}.media-control[data-
media-control].media-control-hide .media-control-layer[data-controls] .bar-
container[data-seekbar] .bar-scrubber[data-seekbar]{opacity:0}.media-control[data-
media-control] .media-control-layer[data-controls]
{position:absolute;bottom:7px;width:100%;height:32px;font-size:0;vertical-
align:middle;pointer-events:auto;transition:bottom .4s ease-out}.media-
control[data-media-control] .media-control-layer[data-controls] .media-control-
left-panel[data-media-control]{position:absolute;top:0;left:4px;height:100%}.media-
control[data-media-control] .media-control-layer[data-controls] .media-control-
center-panel[data-media-control]{height:100%;text-align:center;line-
height:32px}.media-control[data-media-control] .media-control-layer[data-
controls] .media-control-right-panel[data-media-control]
{position:absolute;top:0;right:4px;height:100%}.media-control[data-media-
control] .media-control-layer[data-controls] button.media-control-
button{background-color:transparent;border:0;margin:0
6px;padding:0;cursor:pointer;display:inline-block;width:32px;height:100%}.media-
control[data-media-control] .media-control-layer[data-controls] button.media-
control-button svg{width:100%;height:22px}.media-control[data-media-
control] .media-control-layer[data-controls] button.media-control-button svg
path{fill:#fff}.media-control[data-media-control] .media-control-layer[data-
controls] button.media-control-button:focus{outline:none}.media-control[data-media-
control] .media-control-layer[data-controls] button.media-control-button[data-
pause],.media-control[data-media-control] .media-control-layer[data-controls]
button.media-control-button[data-play],.media-control[data-media-control] .media-
control-layer[data-controls] button.media-control-button[data-stop]
{float:left;height:100%}.media-control[data-media-control] .media-control-
layer[data-controls] button.media-control-button[data-fullscreen]
{float:right;background-color:transparent;border:0;height:100%}.media-control[data-
media-control] .media-control-layer[data-controls] button.media-control-
button[data-hd-indicator]{background-
color:transparent;border:0;cursor:default;display:none;float:right;height:100%}.med
ia-control[data-media-control] .media-control-layer[data-controls] button.media-
control-button[data-hd-indicator].enabled{display:block;opacity:1}.media-
control[data-media-control] .media-control-layer[data-controls] button.media-
control-button[data-hd-indicator].enabled:hover{opacity:1;text-shadow:none}.media-
control[data-media-control] .media-control-layer[data-controls] button.media-
control-button[data-playpause],.media-control[data-media-control] .media-control-
layer[data-controls] button.media-control-button[data-playstop]{float:left}.media-
control[data-media-control] .media-control-layer[data-controls] .media-control-
indicator[data-duration],.media-control[data-media-control] .media-control-
layer[data-controls] .media-control-indicator[data-position]{display:inline-
block;font-size:10px;color:#fff;cursor:default;line-
height:32px;position:relative}.media-control[data-media-control] .media-control-
layer[data-controls] .media-control-indicator[data-position]{margin:0 6px 0
7px}.media-control[data-media-control] .media-control-layer[data-controls] .media-
control-indicator[data-duration]{color:hsla(0,0%,100%,.5);margin-right:6px}.media-
control[data-media-control]
.media-control-layer[data-controls] .media-control-indicator[data-
duration]:before{content:"|";margin-right:7px}.media-control[data-media-
control] .media-control-layer[data-controls] .bar-container[data-seekbar]
{position:absolute;top:-20px;left:0;display:inline-block;vertical-
align:middle;width:100%;height:25px;cursor:pointer}.media-control[data-media-
control] .media-control-layer[data-controls] .bar-container[data-seekbar] .bar-
background[data-seekbar]
{width:100%;height:1px;position:relative;top:12px;background-color:#666}.media-
control[data-media-control] .media-control-layer[data-controls] .bar-
container[data-seekbar] .bar-background[data-seekbar] .bar-fill-1[data-seekbar]
{position:absolute;top:0;left:0;width:0;height:100%;background-
color:#c2c2c2;transition:all .1s ease-out}.media-control[data-media-
control] .media-control-layer[data-controls] .bar-container[data-seekbar] .bar-
background[data-seekbar] .bar-fill-2[data-seekbar]
{position:absolute;top:0;left:0;width:0;height:100%;background-
color:#005aff;transition:all .1s ease-out}.media-control[data-media-
control] .media-control-layer[data-controls] .bar-container[data-seekbar] .bar-
background[data-seekbar] .bar-hover[data-seekbar]{opacity:0;position:absolute;top:-
3px;width:5px;height:7px;background-color:hsla(0,0%,100%,.5);transition:opacity .1s
ease}.media-control[data-media-control] .media-control-layer[data-controls] .bar-
container[data-seekbar]:hover .bar-background[data-seekbar] .bar-hover[data-
seekbar]{opacity:1}.media-control[data-media-control] .media-control-layer[data-
controls] .bar-container[data-seekbar].seek-disabled{cursor:default}.media-
control[data-media-control] .media-control-layer[data-controls] .bar-
container[data-seekbar].seek-disabled:hover .bar-background[data-seekbar] .bar-
hover[data-seekbar]{opacity:0}.media-control[data-media-control] .media-control-
layer[data-controls] .bar-container[data-seekbar] .bar-scrubber[data-seekbar]
{position:absolute;-webkit-transform:translateX(-50%);transform:translateX(-
50%);top:2px;left:0;width:20px;height:20px;opacity:1;transition:all .1s ease-
out}.media-control[data-media-control] .media-control-layer[data-controls] .bar-
container[data-seekbar] .bar-scrubber[data-seekbar] .bar-scrubber-icon[data-
seekbar]{position:absolute;left:6px;top:6px;width:8px;height:8px;border-
radius:10px;box-shadow:0 0 0 6px hsla(0,0%,100%,.2);background-color:#fff}.media-
control[data-media-control] .media-control-layer[data-controls] .drawer-
container[data-volume]{float:right;display:inline-
block;height:32px;cursor:pointer;margin:0 6px;box-sizing:border-box}.media-
control[data-media-control] .media-control-layer[data-controls] .drawer-
container[data-volume] .drawer-icon-container[data-volume]
{float:left;bottom:0}.media-control[data-media-control] .media-control-layer[data-
controls] .drawer-container[data-volume] .drawer-icon-container[data-
volume] .drawer-icon[data-volume]{background-color:transparent;border:0;box-
sizing:content-box;width:32px;height:32px;opacity:.5}.media-control[data-media-
control] .media-control-layer[data-controls] .drawer-container[data-
volume] .drawer-icon-container[data-volume] .drawer-icon[data-
volume]:hover{opacity:.75}.media-control[data-media-control] .media-control-
layer[data-controls] .drawer-container[data-volume] .drawer-icon-container[data-
volume] .drawer-icon[data-volume] svg{height:24px;position:relative;top:3px}.media-
control[data-media-control] .media-control-layer[data-controls] .drawer-
container[data-volume] .drawer-icon-container[data-volume] .drawer-icon[data-
volume] svg path{fill:#fff}.media-control[data-media-control] .media-control-
layer[data-controls] .drawer-container[data-volume] .drawer-icon-container[data-
volume] .drawer-icon[data-volume].muted svg{margin-left:2px}.media-control[data-
media-control] .media-control-layer[data-controls] .drawer-container[data-
volume] .bar-container[data-volume]
{float:left;position:relative;overflow:hidden;top:6px;width:42px;height:18px;paddin
g:3px 0;transition:width .2s ease-out}.media-control[data-media-control] .media-
control-layer[data-controls] .drawer-container[data-volume] .bar-container[data-
volume] .bar-background[data-volume]{height:1px;position:relative;top:7px;margin:0
3px;background-color:#666}.media-control[data-media-control] .media-control-
layer[data-controls] .drawer-container[data-volume] .bar-container[data-
volume] .bar-background[data-volume] .bar-fill-1[data-volume]
{position:absolute;top:0;left:0;width:0;height:100%;background-
color:#c2c2c2;transition:all .1s ease-out}.media-control[data-media-
control] .media-control-layer[data-controls] .drawer-container[data-volume] .bar-
container[data-volume] .bar-background[data-volume] .bar-fill-2[data-volume]
{position:absolute;top:0;left:0;width:0;height:100%;background-
color:#005aff;transition:all .1s ease-out}.media-control[data-media-
control] .media-control-layer[data-controls] .drawer-container[data-volume] .bar-
container[data-volume] .bar-background[data-volume] .bar-hover[data-volume]
{opacity:0;position:absolute;top:-3px;width:5px;height:7px;background-
color:hsla(0,0%,100%,.5);transition:opacity .1s ease}.media-control[data-media-
control] .media-control-layer[data-controls] .drawer-container[data-volume] .bar-
container[data-volume] .bar-scrubber[data-volume]{position:absolute;-webkit-
transform:translateX(-50%);transform:translateX(-
50%);top:0;left:0;width:20px;height:20px;opacity:1;transition:all .1s ease-
out}.media-control[data-media-control] .media-control-layer[data-controls] .drawer-
container[data-volume] .bar-container[data-volume] .bar-scrubber[data-volume] .bar-
scrubber-icon[data-volume]
{position:absolute;left:6px;top:6px;width:8px;height:8px;border-radius:10px;box-
shadow:0 0 0 6px hsla(0,0%,100%,.2);background-color:#fff}.media-control[data-
media-control] .media-control-layer[data-controls] .drawer-container[data-
volume] .bar-container[data-volume] .segmented-bar-element[data-volume]
{float:left;width:4px;padding-left:2px;height:12px;opacity:.5;box-shadow:inset 2px
0 0 #fff;transition:-webkit-transform .2s ease-out;transition:transform .2s ease-
out;transition:transform .2s ease-out,-webkit-transform .2s ease-out}.media-
control[data-media-control] .media-control-layer[data-controls] .drawer-
container[data-volume] .bar-container[data-volume] .segmented-bar-element[data-
volume].fill{box-shadow:inset 2px 0 0 #fff;opacity:1}.media-control[data-media-
control] .media-control-layer[data-controls] .drawer-container[data-volume] .bar-
container[data-volume] .segmented-bar-element[data-volume]:first-of-type{padding-
left:0}.media-control[data-media-control] .media-control-layer[data-
controls] .drawer-container[data-volume] .bar-container[data-volume] .segmented-
bar-element[data-volume]:hover{-webkit-
transform:scaleY(1.5);transform:scaleY(1.5)}.media-control[data-media-control].w320
.media-control-layer[data-controls] .drawer-container[data-volume] .bar-
container[data-volume].volume-bar-
hide{width:0;height:12px;top:9px;padding:0}',""])},function(t,e){t.exports='<div
class="media-control-background" data-background></div>\n<div class="media-control-
layer" data-controls>\n <% var renderBar = function(name) { %>\n <div
class="bar-container" data-<%= name %>>\n <div class="bar-background" data-<
%= name %>>\n <div class="bar-fill-1" data-<%= name %>></div>\n
<div class="bar-fill-2" data-<%= name %>></div>\n <div class="bar-hover"
data-<%= name %>></div>\n </div>\n <div class="bar-scrubber" data-<%=
name %>>\n <div class="bar-scrubber-icon" data-<%= name %>></div>\n
</div>\n </div>\n <% }; %>\n <% var renderSegmentedBar = function(name,
segments) {\n segments = segments || 10; %>\n <div class="bar-container"
data-<%= name %>>\n <% for (var i = 0; i < segments; i++) { %>\n <div
class="segmented-bar-element" data-<%= name %>></div>\n <% } %>\n </div>\n <
% }; %>\n <% var renderDrawer = function(name, renderContent) { %>\n <div
class="drawer-container" data-<%= name %>>\n <div class="drawer-icon-
container" data-<%= name %>>\n <div class="drawer-icon media-control-icon"
data-<%= name %>></div>\n <span class="drawer-text" data-<%= name
%>></span>\n </div>\n <% renderContent(name); %>\n </div>\n <
% }; %>\n <% var renderIndicator = function(name) { %>\n <div class="media-
control-indicator" data-<%= name %>></div>\n <% }; %>\n <% var renderButton =
function(name) { %>\n <button type="button" class="media-control-button media-
control-icon" data-<%= name %> aria-label="<%= name %>"></button>\n <% }; %>\n <%
var templates = {\n bar: renderBar,\n segmentedBar:
renderSegmentedBar,\n };\n var render = function(settingsList) {\n
settingsList.forEach(function(setting) {\n if(setting === "seekbar") {\n
renderBar(setting);\n } else if (setting === "volume") {\n
renderDrawer(setting, settings.volumeBarTemplate ?
templates[settings.volumeBarTemplate] : function(name) { return
renderSegmentedBar(name); });\n } else if (setting === "duration" ||
setting === "position") {\n renderIndicator(setting);\n } else
{\n renderButton(setting);\n }\n });\n }; %>\n <%
if (settings.default && settings.default.length) { %>\n <div class="media-control-
center-panel" data-media-control>\n <% render(settings.default); %>\n </div>\n
<% } %>\n <% if (settings.left && settings.left.length) { %>\n <div class="media-
control-left-panel" data-media-control>\n <% render(settings.left); %>\n
</div>\n <% } %>\n <% if (settings.right && settings.right.length) { %>\n <div
class="media-control-right-panel" data-media-control>\n <%
render(settings.right); %>\n </div>\n <% } %>\n</div>\n'},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var

i=f(r(0)),n=f(r(1)),a=f(r(3)),o=f(r(2)),s=f(r(24)),l=f(r(7)),u=f(r(11)),d=f(r(4)),c
=f(r(231));function f(t){return t&&t.__esModule?t:{default:t}}r(232);var
h,p=(h=s.default,(0,o.default)(g,h),(0,a.default)(g,[{key:"template",get:function()
{return(0,l.default)(c.default)}},{key:"name",get:function()
{return"dvr_controls"}},{key:"events",get:function(){return{"click .live-
button":"click"}}},{key:"attributes",get:function(){return{class:"dvr-
controls","data-dvr-controls":""}}}]),g.prototype.bindEvents=function()
{this.listenTo(this.core.mediaControl,d.default.MEDIACONTROL_CONTAINERCHANGED,this.
containerChanged),this.listenTo(this.core.mediaControl,d.default.MEDIACONTROL_RENDE
RED,this.settingsUpdate),this.listenTo(this.core,d.default.CORE_OPTIONS_CHANGE,this
.render),this.core.getCurrentContainer()&&(this.listenToOnce(this.core.getCurrentCo
ntainer(),d.default.CONTAINER_TIMEUPDATE,this.render),this.listenTo(this.core.getCu
rrentContainer(),d.default.CONTAINER_PLAYBACKDVRSTATECHANGED,this.dvrChanged))},g.p
rototype.containerChanged=function()
{this.stopListening(),this.bindEvents()},g.prototype.dvrChanged=function(t)
{this.core.getPlaybackType()===u.default.LIVE&&(this.settingsUpdate(),this.core.med
iaControl.$el.addClass("live"),t?(this.core.mediaControl.
$el.addClass("dvr"),this.core.mediaControl.$el.find(".media-control-indicator[data-
position], .media-control-indicator[data-
duration]").hide()):this.core.mediaControl.
$el.removeClass("dvr"))},g.prototype.click=function(){var
t=this.core.mediaControl,e=t.container;e.isPlaying()||e.play(),t.
$el.hasClass("dvr")&&e.seek(e.getDuration())},g.prototype.settingsUpdate=function()
{var t=this;this.stopListening(),this.core.mediaControl.
$el.removeClass("live"),this.shouldRender()&&(this.render(),this.
$el.click(function(){return
t.click()})),this.bindEvents()},g.prototype.shouldRender=function(){return(void
0===this.core.options.useDvrControls||!!
this.core.options.useDvrControls)&&this.core.getPlaybackType()===u.default.LIVE},g.
prototype.render=function(){return this.
$el.html(this.template({live:this.core.i18n.t("live"),backToLive:this.core.i18n.t("
back_to_live")})),this.shouldRender()&&(this.core.mediaControl.
$el.addClass("live"),this.core.mediaControl.$(".media-control-left-panel[data-
media-control]").append(this.$el)),this},g);function g(t){(0,i.default)(this,g);var
e=(0,n.default)(this,h.call(this,t));return
e.settingsUpdate(),e}e.default=p,t.exports=e.default},function(t,e){t.exports='<div
class="live-info"><%= live %></div>\n<button type="button" class="live-button"
aria-label="<%= backToLive %>"><%= backToLive %></button>\n'},function(t,e,r){var
i=r(233);"string"==typeof i&&(i=[[t.i,i,""]]);var n={singleton:!0,hmr:!
0,transform:void 0,insertInto:void 0};r(10)
(i,n);i.locals&&(t.exports=i.locals)},function(t,e,r){(t.exports=r(8)(!
1)).push([t.i,'.dvr-controls[data-dvr-controls]{display:inline-
block;float:left;color:#fff;line-height:32px;font-size:10px;font-weight:700;margin-
left:6px}.dvr-controls[data-dvr-controls] .live-info{cursor:default;font-
family:Roboto,Open Sans,Arial,sans-serif;text-transform:uppercase}.dvr-
controls[data-dvr-controls] .live-info:before{content:"";display:inline-
block;position:relative;width:7px;height:7px;border-radius:3.5px;margin-
right:3.5px;background-color:#ff0101}.dvr-controls[data-dvr-controls] .live-
info.disabled{opacity:.3}.dvr-controls[data-dvr-controls] .live-
info.disabled:before{background-color:#fff}.dvr-controls[data-dvr-controls] .live-
button{cursor:pointer;outline:none;display:none;border:0;color:#fff;background-
color:transparent;height:32px;padding:0;opacity:.7;font-family:Roboto,Open
Sans,Arial,sans-serif;text-transform:uppercase;transition:all .1s ease}.dvr-
controls[data-dvr-controls] .live-button:before{content:"";display:inline-
block;position:relative;width:7px;height:7px;border-radius:3.5px;margin-
right:3.5px;background-color:#fff}.dvr-controls[data-dvr-controls] .live-
button:hover{opacity:1;text-shadow:hsla(0,0%,100%,.75) 0 0 5px}.dvr .dvr-
controls[data-dvr-controls] .live-info{display:none}.dvr .dvr-controls[data-dvr-
controls] .live-button{display:block}.dvr.media-control.live[data-media-
control] .media-control-layer[data-controls] .bar-container[data-seekbar] .bar-
background[data-seekbar] .bar-fill-2[data-seekbar]{background-color:#005aff}.media-
control.live[data-media-control] .media-control-layer[data-controls] .bar-
container[data-seekbar] .bar-background[data-seekbar] .bar-fill-2[data-seekbar]
{background-color:#ff0101}',""])},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
i,n=r(235),a=(i=n)&&i.__esModule?i:
{default:i};e.default=a.default,t.exports=e.default},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
i=f(r(0)),n=f(r(1)),a=f(r(3)),o=f(r(2)),s=f(r(24)),l=f(r(7)),u=f(r(4)),d=r(5),c=f(r
(236));function f(t){return t&&t.__esModule?t:{default:t}}r(237);var
h,p=(h=s.default,(0,o.default)(g,h),(0,a.default)(g,[{key:"name",get:function()
{return"closed_captions"}},{key:"template",get:function(){return(0,l.default)
(c.default)}},{key:"events",get:function(){return{"click [data-cc-
button]":"toggleContextMenu","click [data-cc-select]":"onTrackSelect"}}},
{key:"attributes",get:function(){return{class:"cc-controls","data-cc-
controls":""}}}]),g.prototype.bindEvents=function()
{this.listenTo(this.core,u.default.CORE_ACTIVE_CONTAINER_CHANGED,this.containerChan
ged),this.listenTo(this.core.mediaControl,u.default.MEDIACONTROL_RENDERED,this.rend
er),this.listenTo(this.core.mediaControl,u.default.MEDIACONTROL_HIDE,this.hideConte
xtMenu),this.container=this.core.getCurrentContainer(),this.container&&(this.listen
To(this.container,u.default.CONTAINER_SUBTITLE_AVAILABLE,this.onSubtitleAvailable),
this.listenTo(this.container,u.default.CONTAINER_SUBTITLE_CHANGED,this.onSubtitleCh
anged),this.listenTo(this.container,u.default.CONTAINER_STOP,this.onContainerStop))
},g.prototype.onContainerStop=function(){this.ccAvailable(!
1)},g.prototype.containerChanged=function(){this.ccAvailable(!
1),this.stopListening(),this.bindEvents()},g.prototype.onSubtitleAvailable=function
(){this.renderCcButton(),this.ccAvailable(!
0)},g.prototype.onSubtitleChanged=function(t)
{this.setCurrentContextMenuElement(t.id)},g.prototype.onTrackSelect=function(t){var
e=parseInt(t.target.dataset.ccSelect,10);return
this.container.closedCaptionsTrackId=e,this.hideContextMenu(),t.stopPropagation(),!
1},g.prototype.ccAvailable=function(t){var e=t?"addClass":"removeClass";this.$el[e]
("available")},g.prototype.toggleContextMenu=function(){this.
$el.find("ul").toggle()},g.prototype.hideContextMenu=function(){this.
$el.find("ul").hide()},g.prototype.contextMenuElement=function(t){return this.
$el.find("ul a"+(isNaN(t)?"":'[data-cc-
select="'+t+'"]')).parent()},g.prototype.setCurrentContextMenuElement=function(t)
{if(this._trackId!==t)
{this.contextMenuElement().removeClass("current"),this.contextMenuElement(t).addCla
ss("current");var e=-1<t?"addClass":"removeClass";this.$ccButton[e]
("enabled"),this._trackId=t}},g.prototype.renderCcButton=function(){for(var
t=this.container?this.container.closedCaptionsTracks:[],e=0;e<t.length;e+
+)t[e].label=this._labelCb(t[e]);this.
$el.html(this.template({ariaLabel:this._ariaLabel,disabledLabel:this.core.i18n.t("d
isabled"),title:this._title,tracks:t})),this.$ccButton=this.$el.find("button.cc-
button[data-cc-button]"),this.$ccButton.append(d.SvgIcons.cc),this.
$el.append(this.style)},g.prototype.render=function(){this.renderCcButton();var
t=this.core.mediaControl.$el.find("button[data-fullscreen]");return t[0]?this.
$el.insertAfter(t):this.core.mediaControl.$el.find(".media-control-right-
panel[data-media-control]").prepend(this.$el),this},g);function g(t){(0,i.default)
(this,g);var e=(0,n.default)
(this,h.call(this,t)),r=t.options.closedCaptionsConfig;return e._title=r&&r.title?
r.title:null,e._ariaLabel=r&&r.ariaLabel?r.ariaLabel:"cc-
button",e._labelCb=r&&r.labelCallback&&"function"==typeof r.labelCallback?
r.labelCallback:function(t){return
t.name},e}e.default=p,t.exports=e.default},function(t,e){t.exports='<button
type="button" class="cc-button media-control-button media-control-icon" data-cc-
button aria-label="<%= ariaLabel %>"></button>\n<ul>\n <% if (title) { %>\n <li
data-title><%= title %></li>\n <% }; %>\n <li><a href="#" data-cc-select="-1"><%=
disabledLabel %></a></li>\n <% for (var i = 0; i < tracks.length; i++) { %>\n
<li><a href="#" data-cc-select="<%= tracks[i].id %>"><%= tracks[i].label
%></a></li>\n <% }; %>\n</ul>\n'},function(t,e,r){var i=r(238);"string"==typeof
i&&(i=[[t.i,i,""]]);var n={singleton:!0,hmr:!0,transform:void 0,insertInto:void
0};r(10)(i,n);i.locals&&(t.exports=i.locals)},function(t,e,r){(t.exports=r(8)(!
1)).push([t.i,".cc-controls[data-cc-controls]
{float:right;position:relative;display:none}.cc-controls[data-cc-
controls].available{display:block}.cc-controls[data-cc-controls] .cc-
button{padding:6px!important}.cc-controls[data-cc-controls] .cc-
button.enabled{display:block;opacity:1}.cc-controls[data-cc-controls] .cc-
button.enabled:hover{opacity:1;text-shadow:none}.cc-controls[data-cc-
controls]>ul{list-style-type:none;position:absolute;bottom:25px;border:1px solid
#000;display:none;background-color:#e6e6e6}.cc-controls[data-cc-controls] li{font-
size:10px}.cc-controls[data-cc-controls] li[data-title]{background-
color:#c3c2c2;padding:5px}.cc-controls[data-cc-controls] li
a{color:#444;padding:2px 10px;display:block;text-decoration:none}.cc-controls[data-
cc-controls] li a:hover{background-color:#555;color:#fff}.cc-controls[data-cc-
controls] li a:hover a{color:#fff;text-decoration:none}.cc-controls[data-cc-
controls] li.current a{color:red}",""])},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
i=c(r(0)),n=c(r(1)),a=c(r(3)),o=c(r(2)),s=c(r(35)),l=c(r(4)),u=c(r(6)),d=r(5);funct
ion c(t){return t&&t.__esModule?t:{default:t}}var f,h=(0,u.default)
('link[rel="shortcut
icon"]'),p=(f=s.default,(0,o.default)(g,f),(0,a.default)(g,
[{key:"name",get:function(){return"favicon"}},{key:"oldIcon",get:function(){return
h}}]),g.prototype.configure=function(){this.core.options.changeFavicon?
this.enabled||
(this.stopListening(this.core,l.default.CORE_OPTIONS_CHANGE),this.enable()):this.en
abled&&(this.disable(),this.listenTo(this.core,l.default.CORE_OPTIONS_CHANGE,this.c
onfigure))},g.prototype.bindEvents=function()
{this.listenTo(this.core,l.default.CORE_OPTIONS_CHANGE,this.configure),this.listenT
o(this.core,l.default.CORE_ACTIVE_CONTAINER_CHANGED,this.containerChanged),this.cor
e.activeContainer&&this.containerChanged()},g.prototype.containerChanged=function()
{this._container&&this.stopListening(this._container),this._container=this.core.act
iveContainer,this.listenTo(this._container,l.default.CONTAINER_PLAY,this.setPlayIco
n),this.listenTo(this._container,l.default.CONTAINER_PAUSE,this.setPauseIcon),this.
listenTo(this._container,l.default.CONTAINER_STOP,this.resetIcon),this.listenTo(thi
s._container,l.default.CONTAINER_ENDED,this.resetIcon),this.listenTo(this._containe
r,l.default.CONTAINER_ERROR,this.resetIcon),this.resetIcon()},g.prototype.disable=f
unction()
{f.prototype.disable.call(this),this.resetIcon()},g.prototype.destroy=function()
{f.prototype.destroy.call(this),this.resetIcon()},g.prototype.createIcon=function(t
){var e=(0,u.default)("<canvas/>");e[0].width=16,e[0].height=16;var
r=e[0].getContext("2d");r.fillStyle="#000";var i=(0,u.default)
(t).find("path").attr("d"),n=new Path2D(i);r.fill(n);var a=(0,u.default)('<link
rel="shortcut icon" type="image/png"/>');return
a.attr("href",e[0].toDataURL("image/png")),a},g.prototype.setPlayIcon=function()
{this.playIcon||
(this.playIcon=this.createIcon(d.SvgIcons.play)),this.changeIcon(this.playIcon)},g.
prototype.setPauseIcon=function(){this.pauseIcon||
(this.pauseIcon=this.createIcon(d.SvgIcons.pause)),this.changeIcon(this.pauseIcon)}
,g.prototype.resetIcon=function(){(0,u.default)('link[rel="shortcut
icon"]').remove(),(0,u.default)
("head").append(this.oldIcon)},g.prototype.changeIcon=function(t){t&&((0,u.default)
('link[rel="shortcut icon"]').remove(),(0,u.default)
("head").append(t))},g);function g(t){(0,i.default)(this,g);var e=(0,n.default)
(this,f.call(this,t));return
e._container=null,e.configure(),e}e.default=p,t.exports=e.default},function(t,e,r)
{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var
i,n=r(241),a=(i=n)&&i.__esModule?i:
{default:i};e.default=a.default,t.exports=e.default},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
i=h(r(0)),n=h(r(1)),a=h(r(3)),o=h(r(2)),s=r(5),l=h(r(24)),u=h(r(7)),d=h(r(4)),c=h(r
(11)),f=h(r(242));function h(t){return t&&t.__esModule?t:{default:t}}r(243);var
p,g=(p=l.default,(0,o.default)(m,p),(0,a.default)(m,[{key:"name",get:function()
{return"seek_time"}},{key:"template",get:function(){return(0,u.default)
(f.default)}},{key:"attributes",get:function(){return{class:"seek-time","data-seek-
time":""}}},{key:"mediaControl",get:function(){return this.core.mediaControl}},
{key:"mediaControlContainer",get:function(){return this.mediaControl.container}},
{key:"isLiveStreamWithDvr",get:function(){return
this.mediaControlContainer&&this.mediaControlContainer.getPlaybackType()===c.defaul
t.LIVE&&this.mediaControlContainer.isDvrEnabled()}},
{key:"durationShown",get:function(){return this.isLiveStreamWithDvr&&!
this.actualLiveTime}},{key:"useActualLiveTime",get:function(){return
this.actualLiveTime&&this.isLiveStreamWithDvr}}]),m.prototype.bindEvents=function()
{this.listenTo(this.mediaControl,d.default.MEDIACONTROL_RENDERED,this.render),this.
listenTo(this.mediaControl,d.default.MEDIACONTROL_MOUSEMOVE_SEEKBAR,this.showTime),
this.listenTo(this.mediaControl,d.default.MEDIACONTROL_MOUSELEAVE_SEEKBAR,this.hide
Time),this.listenTo(this.mediaControl,d.default.MEDIACONTROL_CONTAINERCHANGED,this.
onContainerChanged),this.mediaControlContainer&&(this.listenTo(this.mediaControlCon
tainer,d.default.CONTAINER_PLAYBACKDVRSTATECHANGED,this.update),this.listenTo(this.
mediaControlContainer,d.default.CONTAINER_TIMEUPDATE,this.updateDuration))},m.proto
type.onContainerChanged=function()
{this.stopListening(),this.bindEvents()},m.prototype.updateDuration=function(t)
{this.duration=t.total,this.firstFragDateTime=t.firstFragDateTime,this.update()},m.
prototype.showTime=function(t){this.hoveringOverSeekBar=!
0,this.calculateHoverPosition(t),this.update()},m.prototype.hideTime=function()
{this.hoveringOverSeekBar=!
1,this.update()},m.prototype.calculateHoverPosition=function(t){var e=t.pageX-
this.mediaControl.
$seekBarContainer.offset().left;this.hoverPosition=Math.min(1,Math.max(e/
this.mediaControl.$seekBarContainer.width(),0))},m.prototype.getSeekTime=function()
{var t=void 0,e=void 0,r=void 0,i=void 0;return this.useActualLiveTime?
(t=(e=this.firstFragDateTime?(i=new Date(this.firstFragDateTime),(r=new
Date(this.firstFragDateTime)).setHours(0,0,0,0),(i.getTime()-r.getTime())/
1e3+this.duration):(r=new Date((new Date).getTime()-this.actualLiveServerTimeDiff),
((i=new Date(r))-r.setHours(0,0,0,0))/1e3))-
this.duration+this.hoverPosition*this.duration)<0&&(t+=86400):t=this.hoverPosition*
this.duration,{seekTime:t,secondsSinceMidnight:e}},m.prototype.update=function()
{if(this.rendered)if(this.shouldBeVisible()){var
t=this.getSeekTime(),e=(0,s.formatTime)(t.seekTime,this.useActualLiveTime);if(e!
==this.displayedSeekTime&&(this.
$seekTimeEl.text(e),this.displayedSeekTime=e),this.durationShown){this.
$durationEl.show();var r=(0,s.formatTime)(this.actualLiveTime?
t.secondsSinceMidnight:this.duration,this.actualLiveTime);r!
==this.displayedDuration&&(this.$durationEl.text(r),this.displayedDuration=r)}else
this.$durationEl.hide();this.$el.show();var i=this.mediaControl.
$seekBarContainer.width(),n=this.$el.width(),a=this.hoverPosition*i;a-=n/
2,a=Math.max(0,Math.min(a,i-n)),this.$el.css("left",a)}else this.$el.hide(),this.
$el.css("left","-100%")},m.prototype.shouldBeVisible=function(){return
this.mediaControlContainer&&this.mediaControlContainer.settings.seekEnabled&&this.h
overingOverSeekBar&&null!==this.hoverPosition&&null!
==this.duration},m.prototype.render=function(){this.rendered=!
0,this.displayedDuration=null,this.displayedSeekTime=null,this.
$el.html(this.template()),this.$el.hide(),this.mediaControl.
$el.append(this.el),this.$seekTimeEl=this.$el.find("[data-seek-time]"),this.
$durationEl=this.$el.find("[data-duration]"),this.
$durationEl.hide(),this.update()},m);function m(t){(0,i.default)(this,m);var
e=(0,n.default)(this,p.call(this,t));return e.hoveringOverSeekBar=!
1,e.hoverPosition=null,e.duration=null,e.firstFragDateTime=null,e.actualLiveTime=!!
e.mediaControl.options.actualLiveTime,e.actualLiveTime&&(e.mediaControl.options.act
ualLiveServerTime?e.actualLiveServerTimeDiff=(new Date).getTime()-new
Date(e.mediaControl.options.actualLiveServerTime).getTime():e.actualLiveServerTimeD
iff=0),e}e.default=g,t.exports=e.default},function(t,e){t.exports="<span data-seek-
time></span>\n<span data-duration></span>\n"},function(t,e,r){var
i=r(244);"string"==typeof i&&(i=[[t.i,i,""]]);var n={singleton:!0,hmr:!
0,transform:void 0,insertInto:void 0};r(10)
(i,n);i.locals&&(t.exports=i.locals)},function(t,e,r){(t.exports=r(8)(!
1)).push([t.i,'.seek-time[data-seek-time]{position:absolute;white-
space:nowrap;height:20px;line-height:20px;font-size:0;left:-
100%;bottom:55px;background-color:rgba(2,2,2,.5);z-
index:9999;transition:opacity .1s ease}.seek-time[data-seek-time].hidden[data-seek-
time]{opacity:0}.seek-time[data-seek-time] [data-seek-time]{display:inline-
block;color:#fff;font-size:10px;padding-left:7px;padding-right:7px;vertical-
align:top}.seek-time[data-seek-time] [data-duration]{display:inline-
block;color:hsla(0,0%,100%,.5);font-size:10px;padding-right:7px;vertical-
align:top}.seek-time[data-seek-time] [data-duration]:before{content:"|";margin-
right:7px}',""])},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
i=u(r(0)),n=u(r(3)),a=u(r(1)),o=u(r(2)),s=u(r(35)),l=u(r(4));function u(t){return
t&&t.__esModule?t:{default:t}}var d,c=(d=s.default,(0,o.default)
(f,d),f.prototype.bindEvents=function()
{this.listenTo(this.core,l.default.CORE_CONTAINERS_CREATED,this.onContainersCreated
)},f.prototype.onContainersCreated=function(){var
e=this.core.containers.filter(function(t){return"no_op"!==t.playback.name})[0]||
this.core.containers[0];e&&this.core.containers.forEach(function(t){t!
==e&&t.destroy()})},(0,n.default)(f,[{key:"name",get:function()
{return"sources"}}]),f);function f(){return(0,i.default)(this,f),(0,a.default)
(this,d.apply(this,arguments))}e.default=c,t.exports=e.default},function(t,e,r)
{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var
i=u(r(0)),n=u(r(3)),a=u(r(1)),o=u(r(2)),s=u(r(4)),l=u(r(35));function u(t){return
t&&t.__esModule?t:{default:t}}var d,c=(d=l.default,(0,o.default)
(f,d),f.prototype.bindEvents=function()
{this.listenTo(this.core,s.default.CORE_ACTIVE_CONTAINER_CHANGED,this.containerChan
ged);var
t=this.core.activeContainer;t&&(this.listenTo(t,s.default.CONTAINER_ENDED,this.ende
d),this.listenTo(t,s.default.CONTAINER_STOP,this.ended))},f.prototype.containerChan
ged=function(){this.stopListening(),this.bindEvents()},f.prototype.ended=function()
{(void 0===this.core.options.exitFullscreenOnEnd||
this.core.options.exitFullscreenOnEnd)&&this.core.isFullscreen()&&this.core.toggleF
ullscreen()},(0,n.default)(f,[{key:"name",get:function()
{return"end_video"}}]),f);function f(){return(0,i.default)(this,f),(0,a.default)
(this,d.apply(this,arguments))}e.default=c,t.exports=e.default},function(t,e,r)
{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var
i=d(r(0)),n=d(r(1)),a=d(r(3)),o=d(r(2)),s=r(5),l=d(r(6)),u=d(r(35));function d(t)
{return t&&t.__esModule?t:{default:t}}var c,f=(c=u.default,(0,o.default)(h,c),
(0,a.default)(h,[{key:"name",get:function()
{return"strings"}}]),h.prototype.t=function(t){var
e=this._language(),r=this._messages.en;return(e&&this._messages[e]||r)[t]||r[t]||
t},h.prototype._lan
guage=function(){return this.core.options.language||(0,s.getBrowserLanguage)
()},h.prototype._initializeMessages=function(){this._messages=l.default.extend(!0,
{en:{live:"live",back_to_live:"back to
live",disabled:"Disabled",playback_not_supported:"Your browser does not support the
playback of this video. Please try using a different
browser.",default_error_title:"Could not play video.",default_error_message:"There
was a problem trying to load the video."},pt:{live:"ao vivo",back_to_live:"voltar
para o ao vivo",disabled:"Desativado",playback_not_supported:"Seu navegador não
supporta a reprodução deste video. Por favor, tente usar um navegador
diferente.",default_error_title:"Não foi possível reproduzir o
vídeo.",default_error_message:"Ocorreu um problema ao tentar carregar o
vídeo."},es:{live:"vivo",back_to_live:"volver en
vivo",disabled:"Discapacitado",playback_not_supported:"Su navegador no soporta la
reproducción de un video. Por favor, trate de usar un navegador diferente."},ru:
{live:"прямой эфир",back_to_live:"к прямому
эфиру",disabled:"Отключено",playback_not_supported:"Ваш браузер не поддерживает
воспроизведение этого видео. Пожалуйста, попробуйте другой браузер."},fr:{live:"en
direct",back_to_live:"retour au
direct",disabled:"Désactivé",playback_not_supported:"Votre navigateur ne supporte
pas la lecture de cette vidéo. Merci de tenter sur un autre
navigateur.",default_error_title:"Impossible de lire la
vidéo.",default_error_message:"Un problème est survenu lors du chargement de la
vidéo."},tr:{live:"canlı",back_to_live:"canlı yayına
dön",disabled:"Engelli",playback_not_supported:"Tarayıcınız bu videoyu oynatma
desteğine sahip değil. Lütfen farklı bir tarayıcı ile deneyin."},et:
{live:"Otseülekanne",back_to_live:"Tagasi otseülekande
juurde",disabled:"Keelatud",playback_not_supported:"Teie brauser ei toeta selle
video taasesitust. Proovige kasutada muud brauserit."},ar:{live:"
‫"مباشر‬,back_to_live:"‫"الرجوع إلى المباشر‬,disabled:"‫"معّطل‬,playback_not_supported:" ‫المتصفح الذي‬
‫ الرجاء إستخدام متصفح آخر‬.‫تستخدمه ال يدعم تشغيل هذا الفيديو‬.",default_error_title:" ‫غير قادر الى‬
‫التشغيل‬.",default_error_message:"‫حدثت مشكلة أثناء تحميل الفيديو‬."}},this.core.options.strings||
{}),this._messages["pt-BR"]=this._messages.pt,this._messages["en-
US"]=this._messages.en,this._messages["es-
419"]=this._messages.es,this._messages["fr-
FR"]=this._messages.fr,this._messages["tr-
TR"]=this._messages.tr,this._messages["et-
EE"]=this._messages.et,this._messages["ar-IQ"]=this._messages.ar},h);function h(t)
{(0,i.default)(this,h);var e=(0,n.default)(this,c.call(this,t));return
e._initializeMessages(),e}e.default=f,t.exports=e.default},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
i,n=r(249),a=(i=n)&&i.__esModule?i:
{default:i};e.default=a.default,t.exports=e.default},function(t,e,r){"use
strict";Object.defineProperty(e,"__esModule",{value:!0});var
i=h(r(0)),n=h(r(1)),a=h(r(3)),o=h(r(2)),s=h(r(4)),l=h(r(24)),u=h(r(7)),d=h(r(25)),c
=r(5),f=h(r(250));function h(t){return t&&t.__esModule?t:{default:t}}r(251);var
p,g=(p=l.default,(0,o.default)(m,p),(0,a.default)(m,[{key:"name",get:function()
{return"error_screen"}},{key:"template",get:function(){return(0,u.default)
(f.default)}},{key:"container",get:function(){return
this.core.getCurrentContainer()}},{key:"attributes",get:function()
{return{class:"player-error-screen","data-error-
screen":""}}}]),m.prototype.bindEvents=function()
{this.listenTo(this.core,s.default.ERROR,this.onError),this.listenTo(this.core,s.de
fault.CORE_ACTIVE_CONTAINER_CHANGED,this.onContainerChanged)},m.prototype.bindReloa
d=function(){this.reloadButton=this.$el.find(".player-error-
screen__reload"),this.reloadButton&&this.reloadButton.on("click",this.reload.bind(t
his))},m.prototype.reload=function(){var
t=this;this.listenToOnce(this.core,s.default.CORE_READY,function(){return
t.container.play()}),this.core.load(this.options.sources,this.options.mimeType),thi
s.unbindReload()},m.prototype.unbindReload=function()
{this.reloadButton&&this.reloadButton.off("click")},m.prototype.onContainerChanged=
function()
{this.err=null,this.unbindReload(),this.hide()},m.prototype.onError=function(t){var
e=0<arguments.length&&void 0!==t?t:
{};e.level===d.default.Levels.FATAL&&(this.err=e,this.container.disableMediaControl
(),this.container.stop(),this.show())},m.prototype.show=function()
{this.render(),this.$el.show()},m.prototype.hide=function(){this.
$el.hide()},m.prototype.render=function(){if(this.err)return this.
$el.html(this.template({title:this.err.UI.title,message:this.err.UI.message,code:th
is.err.code,icon:this.err.UI.icon||"",reloadIcon:c.SvgIcons.reload})),this.core.
$el.append(this.el),this.bindReload(),this},m);function m(t){var e;(0,i.default)
(this,m);var r=(0,n.default)(this,p.call(this,t));return
r.options.disableErrorScreen?(e=r.disable(),(0,n.default)
(r,e)):r}e.default=g,t.exports=e.default},function(t,e){t.exports='<div
class="player-error-screen__content" data-error-screen>\n <% if (icon) { %>\n
<div class="player-error-screen__icon" data-error-screen><%= icon %></div>\n <% }
%>\n <div class="player-error-screen__title" data-error-screen><%= title %></div>\
n <div class="player-error-screen__message" data-error-screen><%= message
%></div>\n <div class="player-error-screen__code" data-error-screen>Error code: <
%= code %></div>\n <div class="player-error-screen__reload" data-error-screen><%=
reloadIcon %></div>\n</div>\n'},function(t,e,r){var i=r(252);"string"==typeof
i&&(i=[[t.i,i,""]]);var n={singleton:!0,hmr:!0,transform:void 0,insertInto:void
0};r(10)(i,n);i.locals&&(t.exports=i.locals)},function(t,e,r){(t.exports=r(8)(!
1)).push([t.i,"div.player-error-screen{-webkit-font-smoothing:antialiased;-moz-osx-
font-
smoothing:grayscale;color:#cccaca;position:absolute;top:0;height:100%;width:100%;ba
ckground-color:rgba(0,0,0,.7);z-index:2000;display:-webkit-box;display:-ms-
flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-
flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-
pack:center;justify-content:center}div.player-error-screen__content[data-error-
screen]{font-size:14px;color:#cccaca;margin-top:45px}div.player-error-
screen__title[data-error-screen]{font-weight:700;line-height:30px;font-
size:18px}div.player-error-screen__message[data-error-screen]{width:90%;margin:0
auto}div.player-error-screen__code[data-error-screen]{font-size:13px;margin-
top:15px}div.player-error-screen__reload{cursor:pointer;width:30px;margin:15px auto
0}",""])}],f.c=e,f.d=function(t,e,r){f.o(t,e)||Object.defineProperty(t,e,
{enumerable:!0,get:r})},f.r=function(t){"undefined"!=typeof
Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,
{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!
0})},f.t=function(e,t){if(1&t&&(e=f(e)),8&t)return e;if(4&t&&"object"==typeof
e&&e&&e.__esModule)return e;var
r=Object.create(null);if(f.r(r),Object.defineProperty(r,"default",{enumerable:!
0,value:e}),2&t&&"string"!=typeof e)for(var i in e)f.d(r,i,function(t){return
e[t]}.bind(null,i));return r},f.n=function(t){var e=t&&t.__esModule?function()
{return t.default}:function(){return t};return f.d(e,"a",e),e},f.o=function(t,e)
{return Object.prototype.hasOwnProperty.call(t,e)},f.p="dist/",f(f.s=100);function
f(t){if(e[t])return e[t].exports;var r=e[t]={i:t,l:!1,exports:{}};return
d[t].call(r.exports,r,r.exports,f),r.l=!0,r.exports}var d,e});

You might also like