/*! * mediaelement.js * http://www.mediaelementjs.com/ * * wrapper that mimics native html5 mediaelement (audio and video) * using a variety of technologies (pure javascript, flash, iframe) * * copyright 2010-2017, john dyer (http://j.hn/) * license: mit * */ !function e(t,n,o){function i(a,s){if(!n[a]){if(!t[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(r)return r(a,!0);var d=new error("cannot find module '"+a+"'");throw d.code="module_not_found",d}var u=n[a]={exports:{}};t[a][0].call(u.exports,function(e){var n=t[a][1][e];return i(n||e)},u,u.exports,e,t,n,o)}return n[a].exports}for(var r="function"==typeof require&&require,a=0;a1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof e&&e.length){var n=void 0,i=void 0,r=s.language(),l=function(e,t,n){return"object"!==(void 0===e?"undefined":o(e))||"number"!=typeof t||"number"!=typeof n?e:[function(){return arguments.length<=1?void 0:arguments[1]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:arguments.length<=2?void 0:arguments[2]},function(){return 0===(arguments.length<=0?void 0:arguments[0])||1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:arguments.length<=2?void 0:arguments[2]},function(){return(arguments.length<=0?void 0:arguments[0])%10==1&&(arguments.length<=0?void 0:arguments[0])%100!=11?arguments.length<=1?void 0:arguments[1]:0!==(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return 1===(arguments.length<=0?void 0:arguments[0])||11===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:2===(arguments.length<=0?void 0:arguments[0])||12===(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:(arguments.length<=0?void 0:arguments[0])>2&&(arguments.length<=0?void 0:arguments[0])<20?arguments.length<=3?void 0:arguments[3]:arguments.length<=4?void 0:arguments[4]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:0===(arguments.length<=0?void 0:arguments[0])||(arguments.length<=0?void 0:arguments[0])%100>0&&(arguments.length<=0?void 0:arguments[0])%100<20?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return(arguments.length<=0?void 0:arguments[0])%10==1&&(arguments.length<=0?void 0:arguments[0])%100!=11?arguments.length<=1?void 0:arguments[1]:(arguments.length<=0?void 0:arguments[0])%10>=2&&((arguments.length<=0?void 0:arguments[0])%100<10||(arguments.length<=0?void 0:arguments[0])%100>=20)?arguments.length<=2?void 0:arguments[2]:[3]},function(){return(arguments.length<=0?void 0:arguments[0])%10==1&&(arguments.length<=0?void 0:arguments[0])%100!=11?arguments.length<=1?void 0:arguments[1]:(arguments.length<=0?void 0:arguments[0])%10>=2&&(arguments.length<=0?void 0:arguments[0])%10<=4&&((arguments.length<=0?void 0:arguments[0])%100<10||(arguments.length<=0?void 0:arguments[0])%100>=20)?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:(arguments.length<=0?void 0:arguments[0])>=2&&(arguments.length<=0?void 0:arguments[0])<=4?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:(arguments.length<=0?void 0:arguments[0])%10>=2&&(arguments.length<=0?void 0:arguments[0])%10<=4&&((arguments.length<=0?void 0:arguments[0])%100<10||(arguments.length<=0?void 0:arguments[0])%100>=20)?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return(arguments.length<=0?void 0:arguments[0])%100==1?arguments.length<=2?void 0:arguments[2]:(arguments.length<=0?void 0:arguments[0])%100==2?arguments.length<=3?void 0:arguments[3]:(arguments.length<=0?void 0:arguments[0])%100==3||(arguments.length<=0?void 0:arguments[0])%100==4?arguments.length<=4?void 0:arguments[4]:arguments.length<=1?void 0:arguments[1]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:2===(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:(arguments.length<=0?void 0:arguments[0])>2&&(arguments.length<=0?void 0:arguments[0])<7?arguments.length<=3?void 0:arguments[3]:(arguments.length<=0?void 0:arguments[0])>6&&(arguments.length<=0?void 0:arguments[0])<11?arguments.length<=4?void 0:arguments[4]:arguments.length<=5?void 0:arguments[5]},function(){return 0===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:2===(arguments.length<=0?void 0:arguments[0])?arguments.length<=3?void 0:arguments[3]:(arguments.length<=0?void 0:arguments[0])%100>=3&&(arguments.length<=0?void 0:arguments[0])%100<=10?arguments.length<=4?void 0:arguments[4]:(arguments.length<=0?void 0:arguments[0])%100>=11?arguments.length<=5?void 0:arguments[5]:arguments.length<=6?void 0:arguments[6]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:0===(arguments.length<=0?void 0:arguments[0])||(arguments.length<=0?void 0:arguments[0])%100>1&&(arguments.length<=0?void 0:arguments[0])%100<11?arguments.length<=2?void 0:arguments[2]:(arguments.length<=0?void 0:arguments[0])%100>10&&(arguments.length<=0?void 0:arguments[0])%100<20?arguments.length<=3?void 0:arguments[3]:arguments.length<=4?void 0:arguments[4]},function(){return(arguments.length<=0?void 0:arguments[0])%10==1?arguments.length<=1?void 0:arguments[1]:(arguments.length<=0?void 0:arguments[0])%10==2?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return 11!==(arguments.length<=0?void 0:arguments[0])&&(arguments.length<=0?void 0:arguments[0])%10==1?arguments.length<=1?void 0:arguments[1]:arguments.length<=2?void 0:arguments[2]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:(arguments.length<=0?void 0:arguments[0])%10>=2&&(arguments.length<=0?void 0:arguments[0])%10<=4&&((arguments.length<=0?void 0:arguments[0])%100<10||(arguments.length<=0?void 0:arguments[0])%100>=20)?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:2===(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:8!==(arguments.length<=0?void 0:arguments[0])&&11!==(arguments.length<=0?void 0:arguments[0])?arguments.length<=3?void 0:arguments[3]:arguments.length<=4?void 0:arguments[4]},function(){return 0===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:arguments.length<=2?void 0:arguments[2]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:2===(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:3===(arguments.length<=0?void 0:arguments[0])?arguments.length<=3?void 0:arguments[3]:arguments.length<=4?void 0:arguments[4]},function(){return 0===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]}][n].apply(null,[t].concat(e))};return void 0!==s[r]&&(n=s[r][e],null!==t&&"number"==typeof t&&(i=s[r]["mejs.plural-form"],n=l.apply(null,[n,t,i]))),!n&&s.en&&(n=s.en[e],null!==t&&"number"==typeof t&&(i=s.en["mejs.plural-form"],n=l.apply(null,[n,t,i]))),n=n||e,null!==t&&"number"==typeof t&&(n=n.replace("%1",t)),(0,a.escapehtml)(n)}return e},i.default.i18n=s,"undefined"!=typeof mejsl10n&&i.default.i18n.language(mejsl10n.language,mejsl10n.strings),n.default=s},{15:15,27:27,7:7}],6:[function(e,t,n){"use strict";function o(e){return e&&e.__esmodule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new typeerror("cannot call a class as a function")}object.defineproperty(n,"__esmodule",{value:!0});var r="function"==typeof symbol&&"symbol"==typeof symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof symbol&&e.constructor===symbol&&e!==symbol.prototype?"symbol":typeof e},a=o(e(3)),s=o(e(2)),l=o(e(7)),d=e(27),u=e(28),c=e(8),f=e(25),p=function e(t,n,o){var p=this;i(this,e);var m=this;o=array.isarray(o)?o:null,m.defaults={renderers:[],fakenodename:"mediaelementwrapper",pluginpath:"build/",shimscriptaccess:"samedomain"},n=object.assign(m.defaults,n),m.mediaelement=s.default.createelement(n.fakenodename);var h=t,v=!1;if("string"==typeof t?m.mediaelement.originalnode=s.default.getelementbyid(t):(m.mediaelement.originalnode=t,h=t.id),void 0===m.mediaelement.originalnode||null===m.mediaelement.originalnode)return null;m.mediaelement.options=n,h=h||"mejs_"+math.random().tostring().slice(2),m.mediaelement.originalnode.setattribute("id",h+"_from_mejs");var g=m.mediaelement.originalnode.tagname.tolowercase();["video","audio"].indexof(g)>-1&&!m.mediaelement.originalnode.getattribute("preload")&&m.mediaelement.originalnode.setattribute("preload","none"),m.mediaelement.originalnode.parentnode.insertbefore(m.mediaelement,m.mediaelement.originalnode),m.mediaelement.appendchild(m.mediaelement.originalnode);var y=function(e,t){if("https:"===a.default.location.protocol&&0===e.indexof("http:")&&f.is_ios&&l.default.html5media.mediatypes.indexof(t)>-1){var n=new xmlhttprequest;n.onreadystatechange=function(){if(4===this.readystate&&200===this.status){var t=(a.default.url||a.default.webkiturl).createobjecturl(this.response);return m.mediaelement.originalnode.setattribute("src",t),t}return e},n.open("get",e),n.responsetype="blob",n.send()}return e},e=void 0;if(null!==o)e=o;else if(null!==m.mediaelement.originalnode)switch(e=[],m.mediaelement.originalnode.nodename.tolowercase()){case"iframe":e.push({type:"",src:m.mediaelement.originalnode.getattribute("src")});break;case"audio":case"video":var b=m.mediaelement.originalnode.children.length,s=m.mediaelement.originalnode.getattribute("src");if(s){var x=m.mediaelement.originalnode,w=(0,u.formattype)(s,x.getattribute("type"));e.push({type:w,src:y(s,w)})}for(var p=0;p2?t[0]:t[0].src;if(void 0!==n.mediaelement.renderer&&null!==n.mediaelement.renderer&&n.mediaelement.renderer.name===e)return n.mediaelement.renderer.pause(),n.mediaelement.renderer.stop&&n.mediaelement.renderer.stop(),n.mediaelement.renderer.show(),n.mediaelement.renderer.setsrc(o),!0;void 0!==n.mediaelement.renderer&&null!==n.mediaelement.renderer&&(n.mediaelement.renderer.pause(),n.mediaelement.renderer.stop&&n.mediaelement.renderer.stop(),n.mediaelement.renderer.hide());var i=n.mediaelement.renderers[e],r=null;if(void 0!==i&&null!==i)return i.show(),i.setsrc(o),n.mediaelement.renderer=i,n.mediaelement.renderername=e,!0;for(var a=n.mediaelement.options.renderers.length?n.mediaelement.options.renderers:c.renderer.order,s=0,l=a.length;s1&&void 0!==arguments[1]?arguments[1]:[],n=t.length;if(t=t.length?t:this.order,!n){var o=[/^(html5|native)/i,/^flash/i,/iframe$/i],i=function(e){for(var t=0,n=o.length;t',t.addcontrolelement(o,"fullscreen"),o.addeventlistener("click",function(){d.has_true_native_fullscreen&&d.is_fullscreen||e.isfullscreen?e.exitfullscreen():e.enterfullscreen()}),e.fullscreenbtn=o,t.options.keyactions.push({keys:[70],action:function(e,t,n,o){o.ctrlkey||void 0!==e.enterfullscreen&&(e.isfullscreen?e.exitfullscreen():e.enterfullscreen())}}),t.exitfullscreencallback=function(n){27===(n.which||n.keycode||0)&&(d.has_true_native_fullscreen&&d.is_fullscreen||t.isfullscreen)&&e.exitfullscreen()},t.globalbind("keydown",t.exitfullscreencallback),t.normalheight=0,t.normalwidth=0,d.has_true_native_fullscreen){e.globalbind(d.fullscreen_event_name,function(){e.isfullscreen&&(d.isfullscreen()?(e.isnativefullscreen=!0,e.setcontrolssize()):(e.isnativefullscreen=!1,e.exitfullscreen()))})}}},cleanfullscreen:function(e){e.exitfullscreen(),e.globalunbind("keydown",e.exitfullscreencallback)},detectfullscreenmode:function(){var e=this,t=null!==e.media.renderername&&/(native|html5)/i.test(e.media.renderername),n="";return d.has_true_native_fullscreen&&t?n="native-native":d.has_true_native_fullscreen&&!t?n="plugin-native":e.usepluginfullscreen&&d.support_pointer_events&&(n="plugin-click"),e.fullscreenmode=n,n},enterfullscreen:function(){var e=this,t=null!==e.media.renderername&&/(html5|native)/i.test(e.media.renderername),n=getcomputedstyle(e.getelement(e.container));if(!1===e.options.usefakefullscreen&&d.is_ios&&d.has_ios_fullscreen&&"function"==typeof e.media.originalnode.webkitenterfullscreen&&e.media.originalnode.canplaytype((0,f.gettypefromfile)(e.media.getsrc())))e.media.originalnode.webkitenterfullscreen();else{if((0,c.addclass)(r.default.documentelement,e.options.classprefix+"fullscreen"),(0,c.addclass)(e.getelement(e.container),e.options.classprefix+"container-fullscreen"),e.normalheight=parsefloat(n.height),e.normalwidth=parsefloat(n.width),"native-native"!==e.fullscreenmode&&"plugin-native"!==e.fullscreenmode||(d.requestfullscreen(e.getelement(e.container)),e.isiniframe&&settimeout(function t(){if(e.isnativefullscreen){var n=i.default.innerwidth||r.default.documentelement.clientwidth||r.default.body.clientwidth,o=screen.width;math.abs(o-n)>.002*o?e.exitfullscreen():settimeout(t,500)}},1e3)),e.getelement(e.container).style.width="100%",e.getelement(e.container).style.height="100%",e.containersizetimeout=settimeout(function(){e.getelement(e.container).style.width="100%",e.getelement(e.container).style.height="100%",e.setcontrolssize()},500),t)e.node.style.width="100%",e.node.style.height="100%";else for(var o=e.getelement(e.container).queryselectorall("embed, object, video"),a=o.length,s=0;s',p.addeventlistener("click",function(){a.paused?a.play():a.pause()});var m=p.queryselector("button");a.addcontrolelement(p,"playpause"),r("pse"),o.addeventlistener("loadedmetadata",function(){-1===o.renderername.indexof("flash")&&r("pse")}),o.addeventlistener("play",function(){r("play")}),o.addeventlistener("playing",function(){r("play")}),o.addeventlistener("pause",function(){r("pse")}),o.addeventlistener("ended",function(){e.options.loop||((0,d.removeclass)(p,a.options.classprefix+"pause"),(0,d.removeclass)(p,a.options.classprefix+"play"),(0,d.addclass)(p,a.options.classprefix+"replay"),m.setattribute("title",c),m.setattribute("aria-label",c))})}})},{16:16,2:2,26:26,27:27,5:5}],11:[function(e,t,n){"use strict";function o(e){return e&&e.__esmodule?e:{default:e}}var i=o(e(2)),r=e(16),a=o(r),s=o(e(5)),l=e(25),d=e(30),u=e(26);object.assign(r.config,{enableprogresstooltip:!0,usesmoothhover:!0,forcelive:!1}),object.assign(a.default.prototype,{buildprogress:function(e,t,n,o){var a=0,c=!1,f=!1,p=this,m=e.options.autorewind,h=e.options.enableprogresstooltip?'00:00':"",v=i.default.createelement("div");v.classname=p.options.classprefix+"time-rail",v.innerhtml=''+h+"",p.addcontrolelement(v,"progress"),p.options.keyactions.push({keys:[37,227],action:function(e){if(!isnan(e.duration)&&e.duration>0){e.isvideo&&(e.showcontrols(),e.startcontrolstimer()),e.getelement(e.container).queryselector("."+r.config.classprefix+"time-total").focus();var t=math.max(e.currenttime-e.options.defaultseekbackwardinterval(e),0);e.setcurrenttime(t)}}},{keys:[39,228],action:function(e){if(!isnan(e.duration)&&e.duration>0){e.isvideo&&(e.showcontrols(),e.startcontrolstimer()),e.getelement(e.container).queryselector("."+r.config.classprefix+"time-total").focus();var t=math.min(e.currenttime+e.options.defaultseekforwardinterval(e),e.duration);e.setcurrenttime(t)}}}),p.rail=t.queryselector("."+p.options.classprefix+"time-rail"),p.total=t.queryselector("."+p.options.classprefix+"time-total"),p.loaded=t.queryselector("."+p.options.classprefix+"time-loaded"),p.current=t.queryselector("."+p.options.classprefix+"time-current"),p.handle=t.queryselector("."+p.options.classprefix+"time-handle"),p.timefloat=t.queryselector("."+p.options.classprefix+"time-float"),p.timefloatcurrent=t.queryselector("."+p.options.classprefix+"time-float-current"),p.slider=t.queryselector("."+p.options.classprefix+"time-slider"),p.hovered=t.queryselector("."+p.options.classprefix+"time-hovered"),p.buffer=t.queryselector("."+p.options.classprefix+"time-buffering"),p.newtime=0,p.forcedhandlepause=!1,p.settransformstyle=function(e,t){e.style.transform=t,e.style.webkittransform=t,e.style.moztransform=t,e.style.mstransform=t,e.style.otransform=t},p.buffer.style.display="none";var g=function(t){var n=getcomputedstyle(p.total),o=(0,u.offset)(p.total),i=p.total.offsetwidth,r=void 0!==n.webkittransform?"webkittransform":void 0!==n.moztransform?"moztransform ":void 0!==n.otransform?"otransform":void 0!==n.mstransform?"mstransform":"transform",a="webkitcssmatrix"in window?"webkitcssmatrix":"mscssmatrix"in window?"mscssmatrix":"cssmatrix"in window?"cssmatrix":void 0,s=0,f=0,m=0,h=void 0;if(h=t.originalevent&&t.originalevent.changedtouches?t.originalevent.changedtouches[0].pagex:t.changedtouches?t.changedtouches[0].pagex:t.pagex,p.getduration()){if(hi+o.left&&(h=i+o.left),m=h-o.left,s=m/i,p.newtime=s<=.02?0:s*p.getduration(),c&&null!==p.getcurrenttime()&&p.newtime.tofixed(4)!==p.getcurrenttime().tofixed(4)&&(p.setcurrentrailhandle(p.newtime),p.updatecurrent(p.newtime)),!l.is_ios&&!l.is_android){if(m<0&&(m=0),p.options.usesmoothhover&&null!==a&&void 0!==window[a]){var v=new window[a](getcomputedstyle(p.handle)[r]).m41,g=m/parsefloat(getcomputedstyle(p.total).width)-v/parsefloat(getcomputedstyle(p.total).width);p.hovered.style.left=v+"px",p.settransformstyle(p.hovered,"scalex("+g+")"),p.hovered.setattribute("pos",m),g>=0?(0,u.removeclass)(p.hovered,"negative"):(0,u.addclass)(p.hovered,"negative")}if(p.timefloat){var y=p.timefloat.offsetwidth/2,e=mejs.utils.offset(p.getelement(p.container)),b=getcomputedstyle(p.timefloat);f=h-e.left=p.getelement(p.container).offsetwidth-y?p.total.offsetwidth-y:m,(0,u.hasclass)(p.getelement(p.container),p.options.classprefix+"long-video")&&(f+=parsefloat(b.marginleft)/2+p.timefloat.offsetwidth/2),p.timefloat.style.left=f+"px",p.timefloatcurrent.innerhtml=(0,d.secondstotimecode)(p.newtime,e.options.alwaysshowhours,e.options.showtimecodeframecount,e.options.framespersecond,e.options.secondsdecimallength,e.options.timeformat),p.timefloat.style.display="block"}}}else l.is_ios||l.is_android||!p.timefloat||(f=p.timefloat.offsetwidth+i>=p.getelement(p.container).offsetwidth?p.timefloat.offsetwidth/2:0,p.timefloat.style.left=f+"px",p.timefloat.style.left=f+"px",p.timefloat.style.display="block")},y=function(){var t=p.getcurrenttime(),n=s.default.t("mejs.time-slider"),i=(0,d.secondstotimecode)(t,e.options.alwaysshowhours,e.options.showtimecodeframecount,e.options.framespersecond,e.options.secondsdecimallength,e.options.timeformat),r=p.getduration();p.slider.setattribute("role","slider"),p.slider.tabindex=0,o.paused?(p.slider.setattribute("aria-label",n),p.slider.setattribute("aria-valuemin",0),p.slider.setattribute("aria-valuemax",r),p.slider.setattribute("aria-valuenow",t),p.slider.setattribute("aria-valuetext",i)):(p.slider.removeattribute("aria-label"),p.slider.removeattribute("aria-valuemin"),p.slider.removeattribute("aria-valuemax"),p.slider.removeattribute("aria-valuenow"),p.slider.removeattribute("aria-valuetext"))},e=function(){new date-a>=1e3&&p.play()},b=function(){c&&null!==p.getcurrenttime()&&p.newtime.tofixed(4)!==p.getcurrenttime().tofixed(4)&&(p.setcurrenttime(p.newtime),p.setcurrentrail(),p.updatecurrent(p.newtime)),p.forcedhandlepause&&(p.slider.focus(),p.play()),p.forcedhandlepause=!1};p.slider.addeventlistener("focus",function(){e.options.autorewind=!1}),p.slider.addeventlistener("blur",function(){e.options.autorewind=m}),p.slider.addeventlistener("keydown",function(t){if(new date-a>=1e3&&(f=p.paused),p.options.keyactions.length){var n=t.which||t.keycode||0,i=p.getduration(),r=e.options.defaultseekforwardinterval(o),s=e.options.defaultseekbackwardinterval(o),d=p.getcurrenttime(),u=p.getelement(p.container).queryselector("."+p.options.classprefix+"volume-slider");if(38===n||40===n){u&&(u.style.display="block"),p.isvideo&&(p.showcontrols(),p.startcontrolstimer());var c=38===n?math.min(p.volume+.1,1):math.max(p.volume-.1,0),m=c<=0;return p.setvolume(c),void p.setmuted(m)}switch(u&&(u.style.display="none"),n){case 37:p.getduration()!==1/0&&(d-=s);break;case 39:p.getduration()!==1/0&&(d+=r);break;case 36:d=0;break;case 35:d=i;break;case 13:case 32:return void(l.is_firefox&&(p.paused?p.play():p.pause()));default:return}d=d<0?0:d>=i?i:math.floor(d),a=new date,f||e.pause(),d0&&n.buffered.end&&t.getduration()?o=n.buffered.end(n.buffered.length-1)/t.getduration():n&&void 0!==n.bytestotal&&n.bytestotal>0&&void 0!==n.bufferedbytes?o=n.bufferedbytes/n.bytestotal:e&&e.lengthcomputable&&0!==e.total&&(o=e.loaded/e.total),null!==o&&(o=math.min(1,math.max(0,o)),t.loaded&&t.settransformstyle(t.loaded,"scalex("+o+")"))},setcurrentrailhandle:function(e){var t=this;t.setcurrentrailmain(t,e)},setcurrentrail:function(){var e=this;e.setcurrentrailmain(e)},setcurrentrailmain:function(e,t){if(void 0!==e.getcurrenttime()&&e.getduration()){var n=void 0===t?e.getcurrenttime():t;if(e.total&&e.handle){var o=parsefloat(getcomputedstyle(e.total).width),i=math.round(o*n/e.getduration()),r=i-math.round(e.handle.offsetwidth/2);if(r=r<0?0:r,e.settransformstyle(e.current,"scalex("+i/o+")"),e.settransformstyle(e.handle,"translatex("+r+"px)"),e.options.usesmoothhover&&!(0,u.hasclass)(e.hovered,"no-hover")){var a=parseint(e.hovered.getattribute("pos"),10),s=(a=isnan(a)?0:a)/o-r/o;e.hovered.style.left=r+"px",e.settransformstyle(e.hovered,"scalex("+s+")"),s>=0?(0,u.removeclass)(e.hovered,"negative"):(0,u.addclass)(e.hovered,"negative")}}}}})},{16:16,2:2,25:25,26:26,30:30,5:5}],12:[function(e,t,n){"use strict";function o(e){return e&&e.__esmodule?e:{default:e}}var i=o(e(2)),r=e(16),a=o(r),s=e(30),l=e(26);object.assign(r.config,{duration:0,timeanddurationseparator:" | "}),object.assign(a.default.prototype,{buildcurrent:function(e,t,n,o){var r=this,a=i.default.createelement("div");a.classname=r.options.classprefix+"time",a.setattribute("role","timer"),a.setattribute("aria-live","off"),a.innerhtml=''+(0,s.secondstotimecode)(0,e.options.alwaysshowhours,e.options.showtimecodeframecount,e.options.framespersecond,e.options.secondsdecimallength,e.options.timeformat)+"",r.addcontrolelement(a,"current"),e.updatecurrent(),r.updatetimecallback=function(){r.controlsarevisible&&e.updatecurrent()},o.addeventlistener("timeupdate",r.updatetimecallback)},cleancurrent:function(e,t,n,o){o.removeeventlistener("timeupdate",e.updatetimecallback)},buildduration:function(e,t,n,o){var r=this;if(t.lastchild.queryselector("."+r.options.classprefix+"currenttime"))t.queryselector("."+r.options.classprefix+"time").innerhtml+=r.options.timeanddurationseparator+''+(0,s.secondstotimecode)(r.options.duration,r.options.alwaysshowhours,r.options.showtimecodeframecount,r.options.framespersecond,r.options.secondsdecimallength,r.options.timeformat)+"";else{t.queryselector("."+r.options.classprefix+"currenttime")&&(0,l.addclass)(t.queryselector("."+r.options.classprefix+"currenttime").parentnode,r.options.classprefix+"currenttime-container");var a=i.default.createelement("div");a.classname=r.options.classprefix+"time "+r.options.classprefix+"duration-container",a.innerhtml=''+(0,s.secondstotimecode)(r.options.duration,r.options.alwaysshowhours,r.options.showtimecodeframecount,r.options.framespersecond,r.options.secondsdecimallength,r.options.timeformat)+"",r.addcontrolelement(a,"duration")}r.updatedurationcallback=function(){r.controlsarevisible&&e.updateduration()},o.addeventlistener("timeupdate",r.updatedurationcallback)},cleanduration:function(e,t,n,o){o.removeeventlistener("timeupdate",e.updatedurationcallback)},updatecurrent:function(){var e=this,t=e.getcurrenttime();isnan(t)&&(t=0);var n=(0,s.secondstotimecode)(t,e.options.alwaysshowhours,e.options.showtimecodeframecount,e.options.framespersecond,e.options.secondsdecimallength,e.options.timeformat);n.length>5?(0,l.addclass)(e.getelement(e.container),e.options.classprefix+"long-video"):(0,l.removeclass)(e.getelement(e.container),e.options.classprefix+"long-video"),e.getelement(e.controls).queryselector("."+e.options.classprefix+"currenttime")&&(e.getelement(e.controls).queryselector("."+e.options.classprefix+"currenttime").innertext=n)},updateduration:function(){var e=this,t=e.getduration();(isnan(t)||t===1/0||t<0)&&(e.media.duration=e.options.duration=t=0),e.options.duration>0&&(t=e.options.duration);var n=(0,s.secondstotimecode)(t,e.options.alwaysshowhours,e.options.showtimecodeframecount,e.options.framespersecond,e.options.secondsdecimallength,e.options.timeformat);n.length>5?(0,l.addclass)(e.getelement(e.container),e.options.classprefix+"long-video"):(0,l.removeclass)(e.getelement(e.container),e.options.classprefix+"long-video"),e.getelement(e.controls).queryselector("."+e.options.classprefix+"duration")&&t>0&&(e.getelement(e.controls).queryselector("."+e.options.classprefix+"duration").innerhtml=n)}})},{16:16,2:2,26:26,30:30}],13:[function(e,t,n){"use strict";function o(e){return e&&e.__esmodule?e:{default:e}}var i=o(e(2)),r=o(e(7)),a=o(e(5)),s=e(16),l=o(s),d=e(30),u=e(27),c=e(26);object.assign(s.config,{startlanguage:"",trackstext:null,chapterstext:null,tracksarialive:!1,hidecaptionsbuttonwhenempty:!0,togglecaptionsbuttonwhenonlyone:!1,slidesselector:""}),object.assign(l.default.prototype,{haschapters:!1,buildtracks:function(e,t,n,o){if(this.findtracks(),e.tracks.length||e.trackfiles&&0!==!e.trackfiles.length){var r=this,s=r.options.tracksarialive?' role="log" aria-live="assertive" aria-atomic="false"':"",l=(0,u.isstring)(r.options.trackstext)?r.options.trackstext:a.default.t("mejs.captions-subtitles"),d=(0,u.isstring)(r.options.chapterstext)?r.options.chapterstext:a.default.t("mejs.captions-chapters"),f=null===e.trackfiles?e.tracks.length:e.trackfiles.length;if(r.domnode.texttracks)for(var p=r.domnode.texttracks.length-1;p>=0;p--)r.domnode.texttracks[p].mode="hidden";r.cleartracks(e),e.captions=i.default.createelement("div"),e.captions.classname=r.options.classprefix+"captions-layer "+r.options.classprefix+"layer",e.captions.innerhtml='
',e.captions.style.display="none",n.insertbefore(e.captions,n.firstchild),e.captionstext=e.captions.queryselector("."+r.options.classprefix+"captions-text"),e.captionsbutton=i.default.createelement("div"),e.captionsbutton.classname=r.options.classprefix+"button "+r.options.classprefix+"captions-button",e.captionsbutton.innerhtml='
",r.addcontrolelement(e.captionsbutton,"tracks"),e.captionsbutton.queryselector("."+r.options.classprefix+"captions-selector-input").disabled=!1,e.chaptersbutton=i.default.createelement("div"),e.chaptersbutton.classname=r.options.classprefix+"button "+r.options.classprefix+"chapters-button",e.chaptersbutton.innerhtml='
    ';for(var m=0,h=0;h"},checkfortracks:function(){var e=this,t=!1;if(e.options.hidecaptionsbuttonwhenempty){for(var n=0,o=e.tracks.length;n-1)return e.captionstext.innerhtml=function(e){var t=i.default.createelement("div");t.innerhtml=e;for(var n=t.getelementsbytagname("script"),o=n.length;o--;)n[o].remove();for(var r=t.getelementsbytagname("*"),a=0,s=r.length;a-1&&e.showslide(n)}},drawchapters:function(e){var t=this,n=e.entries.length;if(n){t.chaptersbutton.queryselector("ul").innerhtml="";for(var o=0;o";for(var i=t.chaptersbutton.queryselectorall('input[type="radio"]'),r=t.chaptersbutton.queryselectorall("."+t.options.classprefix+"chapters-selector-label"),a=0,s=i.length;a>1,r=e[i].start,a=e[i].stop,t>=r&&tt&&(o=i-1)}return-1}}),r.default.language={codes:{af:"mejs.afrikaans",sq:"mejs.albanian",ar:"mejs.arabic",be:"mejs.belarusian",bg:"mejs.bulgarian",ca:"mejs.catalan",zh:"mejs.chinese","zh-cn":"mejs.chinese-simplified","zh-tw":"mejs.chines-traditional",hr:"mejs.croatian",cs:"mejs.czech",da:"mejs.danish",nl:"mejs.dutch",en:"mejs.english",et:"mejs.estonian",fl:"mejs.filipino",fi:"mejs.finnish",fr:"mejs.french",gl:"mejs.galician",de:"mejs.german",el:"mejs.greek",ht:"mejs.haitian-creole",iw:"mejs.hebrew",hi:"mejs.hindi",hu:"mejs.hungarian",is:"mejs.icelandic",id:"mejs.indonesian",ga:"mejs.irish",it:"mejs.italian",ja:"mejs.japanese",ko:"mejs.korean",lv:"mejs.latvian",lt:"mejs.lithuanian",mk:"mejs.macedonian",ms:"mejs.malay",mt:"mejs.maltese",no:"mejs.norwegian",fa:"mejs.persian",pl:"mejs.polish",pt:"mejs.portuguese",ro:"mejs.romanian",ru:"mejs.russian",sr:"mejs.serbian",sk:"mejs.slovak",sl:"mejs.slovenian",es:"mejs.spanish",sw:"mejs.swahili",sv:"mejs.swedish",tl:"mejs.tagalog",th:"mejs.thai",tr:"mejs.turkish",uk:"mejs.ukrainian",vi:"mejs.vietnamese",cy:"mejs.welsh",yi:"mejs.yiddish"}},r.default.trackformatparser={webvtt:{pattern:/^((?:[0-9]{1,2}:)?[0-9]{2}:[0-9]{2}([,.][0-9]{1,3})?) --\> ((?:[0-9]{1,2}:)?[0-9]{2}:[0-9]{2}([,.][0-9]{3})?)(.*)$/,parse:function(e){for(var t=e.split(/\r?\n/),n=[],o=void 0,i=void 0,r=void 0,a=0,s=t.length;a=0&&""!==t[a-1]&&(r=t[a-1]),i=t[++a],a++;""!==t[a]&&a$1"),n.push({identifier:r,start:0===(0,d.convertsmptetoseconds)(o[1])?.2:(0,d.convertsmptetoseconds)(o[1]),stop:(0,d.convertsmptetoseconds)(o[3]),text:i,settings:o[5]})}r=""}return n}},dfxp:{parse:function(e){var t=(e=$(e).filter("tt")).firstchild,n=t.queryselectorall("p"),o=e.getelementbyid(""+t.attr("style")),i=[],r=void 0;if(o.length){o.removeattribute("id");var a=o.attributes;if(a.length){r={};for(var s=0,l=a.length;s$1"),i.push(p)}return i}}}},{16:16,2:2,26:26,27:27,30:30,5:5,7:7}],14:[function(e,t,n){"use strict";function o(e){return e&&e.__esmodule?e:{default:e}}var i=o(e(2)),r=e(16),a=o(r),s=o(e(5)),l=e(25),d=e(27),u=e(26);object.assign(r.config,{mutetext:null,unmutetext:null,allyvolumecontroltext:null,hidevolumeontouchdevices:!0,audiovolume:"horizontal",videovolume:"vertical",startvolume:.8}),object.assign(a.default.prototype,{buildvolume:function(e,t,n,o){if(!l.is_android&&!l.is_ios||!this.options.hidevolumeontouchdevices){var a=this,c=a.isvideo?a.options.videovolume:a.options.audiovolume,f=(0,d.isstring)(a.options.mutetext)?a.options.mutetext:s.default.t("mejs.mute"),p=(0,d.isstring)(a.options.unmutetext)?a.options.unmutetext:s.default.t("mejs.unmute"),m=(0,d.isstring)(a.options.allyvolumecontroltext)?a.options.allyvolumecontroltext:s.default.t("mejs.volume-help-text"),h=i.default.createelement("div");if(h.classname=a.options.classprefix+"button "+a.options.classprefix+"volume-button "+a.options.classprefix+"mute",h.innerhtml="horizontal"===c?'':''+m+'
    ',a.addcontrolelement(h,"volume"),a.options.keyactions.push({keys:[38],action:function(e){var t=e.getelement(e.container).queryselector("."+r.config.classprefix+"volume-slider");(t||e.getelement(e.container).queryselector("."+r.config.classprefix+"volume-slider").matches(":focus"))&&(t.style.display="block"),e.isvideo&&(e.showcontrols(),e.startcontrolstimer());var n=math.min(e.volume+.1,1);e.setvolume(n),n>0&&e.setmuted(!1)}},{keys:[40],action:function(e){var t=e.getelement(e.container).queryselector("."+r.config.classprefix+"volume-slider");t&&(t.style.display="block"),e.isvideo&&(e.showcontrols(),e.startcontrolstimer());var n=math.max(e.volume-.1,0);e.setvolume(n),n<=.1&&e.setmuted(!0)}},{keys:[77],action:function(e){e.getelement(e.container).queryselector("."+r.config.classprefix+"volume-slider").style.display="block",e.isvideo&&(e.showcontrols(),e.startcontrolstimer()),e.media.muted?e.setmuted(!1):e.setmuted(!0)}}),"horizontal"===c){var v=i.default.createelement("a");v.classname=a.options.classprefix+"horizontal-volume-slider",v.href="javascript:void(0);",v.setattribute("aria-label",s.default.t("mejs.volume-slider")),v.setattribute("aria-valuemin",0),v.setattribute("aria-valuemax",100),v.setattribute("role","slider"),v.innerhtml+=''+m+'
    ',h.parentnode.insertbefore(v,h.nextsibling)}var g=!1,y=!1,e=!1,b=function(){var e=math.floor(100*o.volume);s.setattribute("aria-valuenow",e),s.setattribute("aria-valuetext",e+"%")},s="vertical"===c?a.getelement(a.container).queryselector("."+a.options.classprefix+"volume-slider"):a.getelement(a.container).queryselector("."+a.options.classprefix+"horizontal-volume-slider"),x="vertical"===c?a.getelement(a.container).queryselector("."+a.options.classprefix+"volume-total"):a.getelement(a.container).queryselector("."+a.options.classprefix+"horizontal-volume-total"),w="vertical"===c?a.getelement(a.container).queryselector("."+a.options.classprefix+"volume-current"):a.getelement(a.container).queryselector("."+a.options.classprefix+"horizontal-volume-current"),p="vertical"===c?a.getelement(a.container).queryselector("."+a.options.classprefix+"volume-handle"):a.getelement(a.container).queryselector("."+a.options.classprefix+"horizontal-volume-handle"),t=function(e){if(null!==e&&!isnan(e)&&void 0!==e){if(e=math.max(0,e),0===(e=math.min(e,1))){(0,u.removeclass)(h,a.options.classprefix+"mute"),(0,u.addclass)(h,a.options.classprefix+"unmute");var t=h.firstelementchild;t.setattribute("title",p),t.setattribute("aria-label",p)}else{(0,u.removeclass)(h,a.options.classprefix+"unmute"),(0,u.addclass)(h,a.options.classprefix+"mute");var n=h.firstelementchild;n.setattribute("title",f),n.setattribute("aria-label",f)}var o=100*e+"%",i=getcomputedstyle(p);"vertical"===c?(w.style.bottom=0,w.style.height=o,p.style.bottom=o,p.style.marginbottom=-parsefloat(i.height)/2+"px"):(w.style.left=0,w.style.width=o,p.style.left=o,p.style.marginleft=-parsefloat(i.width)/2+"px")}},c=function(e){var t=(0,u.offset)(x),n=getcomputedstyle(x);e=!0;var o=null;if("vertical"===c){var i=parsefloat(n.height);if(o=(i-(e.pagey-t.top))/i,0===t.top||0===t.left)return}else{var r=parsefloat(n.width);o=(e.pagex-t.left)/r}o=math.max(0,o),o=math.min(o,1),t(o),a.setmuted(0===o),a.setvolume(o),e.preventdefault(),e.stoppropagation()},k=function(){a.muted?(t(0),(0,u.removeclass)(h,a.options.classprefix+"mute"),(0,u.addclass)(h,a.options.classprefix+"unmute")):(t(o.volume),(0,u.removeclass)(h,a.options.classprefix+"unmute"),(0,u.addclass)(h,a.options.classprefix+"mute"))};e.getelement(e.container).addeventlistener("keydown",function(e){!!e.target.closest("."+a.options.classprefix+"container")||"vertical"!==c||(s.style.display="none")}),h.addeventlistener("mouseenter",function(e){e.target===h&&(s.style.display="block",y=!0,e.preventdefault(),e.stoppropagation())}),h.addeventlistener("focusin",function(){s.style.display="block",y=!0}),h.addeventlistener("focusout",function(e){e.relatedtarget&&(!e.relatedtarget||e.relatedtarget.matches("."+a.options.classprefix+"volume-slider"))||"vertical"!==c||(s.style.display="none")}),h.addeventlistener("mouseleave",function(){y=!1,g||"vertical"!==c||(s.style.display="none")}),h.addeventlistener("focusout",function(){y=!1}),h.addeventlistener("keydown",function(e){if(a.options.keyactions.length){var t=e.which||e.keycode||0,n=o.volume;switch(t){case 38:n=math.min(n+.1,1);break;case 40:n=math.max(0,n-.1);break;default:return!0}g=!1,t(n),o.setvolume(n),e.preventdefault(),e.stoppropagation()}}),h.queryselector("button").addeventlistener("click",function(){o.setmuted(!o.muted);var e=(0,d.createevent)("volumechange",o);o.dispatchevent(e)}),s.addeventlistener("dragstart",function(){return!1}),s.addeventlistener("mouseover",function(){y=!0}),s.addeventlistener("focusin",function(){s.style.display="block",y=!0}),s.addeventlistener("focusout",function(){y=!1,g||"vertical"!==c||(s.style.display="none")}),s.addeventlistener("mousedown",function(e){c(e),a.globalbind("mousemove.vol",function(e){var t=e.target;g&&(t===s||t.closest("vertical"===c?"."+a.options.classprefix+"volume-slider":"."+a.options.classprefix+"horizontal-volume-slider"))&&c(e)}),a.globalbind("mouseup.vol",function(){g=!1,y||"vertical"!==c||(s.style.display="none")}),g=!0,e.preventdefault(),e.stoppropagation()}),o.addeventlistener("volumechange",function(e){g||k(),b()});var _=!1;o.addeventlistener("rendererready",function(){e||settimeout(function(){_=!0,(0===e.options.startvolume||o.originalnode.muted)&&(o.setmuted(!0),e.options.startvolume=0),o.setvolume(e.options.startvolume),a.setcontrolssize()},250)}),o.addeventlistener("loadedmetadata",function(){settimeout(function(){e||_||((0===e.options.startvolume||o.originalnode.muted)&&(o.setmuted(!0),e.options.startvolume=0),o.setvolume(e.options.startvolume),a.setcontrolssize()),_=!1},250)}),(0===e.options.startvolume||o.originalnode.muted)&&(o.setmuted(!0),e.options.startvolume=0,k()),a.getelement(a.container).addeventlistener("controlsresize",function(){k()})}}})},{16:16,2:2,25:25,26:26,27:27,5:5}],15:[function(e,t,n){"use strict";object.defineproperty(n,"__esmodule",{value:!0});n.en={"mejs.plural-form":1,"mejs.download-file":"download file","mejs.install-flash":"you are using a browser that does not have flash player enabled or installed. please turn on your flash player plugin or download the latest version from https://get.adobe.com/flashplayer/","mejs.fullscreen":"fullscreen","mejs.play":"play","mejs.pause":"pause","mejs.time-slider":"time slider","mejs.time-help-text":"use left/right arrow keys to advance one second, up/down arrows to advance ten seconds.","mejs.live-broadcast":"live broadcast","mejs.volume-help-text":"use up/down arrow keys to increase or decrease volume.","mejs.unmute":"unmute","mejs.mute":"mute","mejs.volume-slider":"volume slider","mejs.video-player":"video player","mejs.audio-player":"audio player","mejs.captions-subtitles":"captions/subtitles","mejs.captions-chapters":"chapters","mejs.none":"none","mejs.afrikaans":"afrikaans","mejs.albanian":"albanian","mejs.arabic":"arabic","mejs.belarusian":"belarusian","mejs.bulgarian":"bulgarian","mejs.catalan":"catalan","mejs.chinese":"chinese","mejs.chinese-simplified":"chinese (simplified)","mejs.chinese-traditional":"chinese (traditional)","mejs.croatian":"croatian","mejs.czech":"czech","mejs.danish":"danish","mejs.dutch":"dutch","mejs.english":"english","mejs.estonian":"estonian","mejs.filipino":"filipino","mejs.finnish":"finnish","mejs.french":"french","mejs.galician":"galician","mejs.german":"german","mejs.greek":"greek","mejs.haitian-creole":"haitian creole","mejs.hebrew":"hebrew","mejs.hindi":"hindi","mejs.hungarian":"hungarian","mejs.icelandic":"icelandic","mejs.indonesian":"indonesian","mejs.irish":"irish","mejs.italian":"italian","mejs.japanese":"japanese","mejs.korean":"korean","mejs.latvian":"latvian","mejs.lithuanian":"lithuanian","mejs.macedonian":"macedonian","mejs.malay":"malay","mejs.maltese":"maltese","mejs.norwegian":"norwegian","mejs.persian":"persian","mejs.polish":"polish","mejs.portuguese":"portuguese","mejs.romanian":"romanian","mejs.russian":"russian","mejs.serbian":"serbian","mejs.slovak":"slovak","mejs.slovenian":"slovenian","mejs.spanish":"spanish","mejs.swahili":"swahili","mejs.swedish":"swedish","mejs.tagalog":"tagalog","mejs.thai":"thai","mejs.turkish":"turkish","mejs.ukrainian":"ukrainian","mejs.vietnamese":"vietnamese","mejs.welsh":"welsh","mejs.yiddish":"yiddish"}},{}],16:[function(e,t,n){"use strict";function o(e){return e&&e.__esmodule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new typeerror("cannot call a class as a function")}object.defineproperty(n,"__esmodule",{value:!0}),n.config=void 0;var r="function"==typeof symbol&&"symbol"==typeof symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof symbol&&e.constructor===symbol&&e!==symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var n=0;n
    ',e.getelement(e.container).addeventlistener("focus",function(t){if(!e.controlsarevisible&&!e.hasfocus&&e.controlsenabled){e.showcontrols(!0);var n=(0,m.isnodeafter)(t.relatedtarget,e.getelement(e.container))?"."+e.options.classprefix+"controls ."+e.options.classprefix+"button:last-child > button":"."+e.options.classprefix+"playpause-button > button";e.getelement(e.container).queryselector(n).focus()}}),e.node.parentnode.insertbefore(e.getelement(e.container),e.node),e.options.features.length||e.options.usedefaultcontrols||(e.getelement(e.container).style.background="transparent",e.getelement(e.container).queryselector("."+e.options.classprefix+"controls").style.display="none"),e.isvideo&&"fill"===e.options.stretching&&!g.hasclass(e.getelement(e.container).parentnode,e.options.classprefix+"fill-container")){e.outercontainer=e.media.parentnode;var r=l.default.createelement("div");r.classname=e.options.classprefix+"fill-container",e.getelement(e.container).parentnode.insertbefore(r,e.getelement(e.container)),r.appendchild(e.getelement(e.container))}if(p.is_android&&g.addclass(e.getelement(e.container),e.options.classprefix+"android"),p.is_ios&&g.addclass(e.getelement(e.container),e.options.classprefix+"ios"),p.is_ipad&&g.addclass(e.getelement(e.container),e.options.classprefix+"ipad"),p.is_iphone&&g.addclass(e.getelement(e.container),e.options.classprefix+"iphone"),g.addclass(e.getelement(e.container),e.isvideo?e.options.classprefix+"video":e.options.classprefix+"audio"),p.is_safari&&!p.is_ios){g.addclass(e.getelement(e.container),e.options.classprefix+"hide-cues");for(var a=e.node.clonenode(),s=e.node.children,c=[],h=[],y=0,e=s.length;y0||e.options[s+"width"].tostring().indexof("%")>-1?e.width=e.options[s+"width"]:""!==e.node.style.width&&null!==e.node.style.width?e.width=e.node.style.width:e.node.getattribute("width")?e.width=e.node.getattribute("width"):e.width=e.options["default"+x+"width"],e.options[s+"height"]>0||e.options[s+"height"].tostring().indexof("%")>-1?e.height=e.options[s+"height"]:""!==e.node.style.height&&null!==e.node.style.height?e.height=e.node.style.height:e.node.getattribute("height")?e.height=e.node.getattribute("height"):e.height=e.options["default"+x+"height"],e.initialaspectratio=e.height>=e.width?e.width/e.height:e.height/e.width,e.setplayersize(e.width,e.height),t.pluginwidth=e.width,t.pluginheight=e.height}if(d.default.mepdefaults=t,new u.default(e.media,t,e.mediafiles),void 0!==e.getelement(e.container)&&e.options.features.length&&e.controlsarevisible&&!e.options.hidevideocontrolsonload){var w=(0,m.createevent)("controlsshown",e.getelement(e.container));e.getelement(e.container).dispatchevent(w)}}},{key:"showcontrols",value:function(e){var t=this;if(e=void 0===e||e,!t.controlsarevisible&&t.isvideo){if(e)!function(){g.fadein(t.getelement(t.controls),200,function(){g.removeclass(t.getelement(t.controls),t.options.classprefix+"offscreen");var e=(0,m.createevent)("controlsshown",t.getelement(t.container));t.getelement(t.container).dispatchevent(e)});for(var e=t.getelement(t.container).queryselectorall("."+t.options.classprefix+"control"),n=0,o=e.length;n0)||n.isvideo&&!n.options.hidevideocontrolsonload&&!n.readystate||n.ended)){if(e)!function(){g.fadeout(n.getelement(n.controls),200,function(){g.addclass(n.getelement(n.controls),n.options.classprefix+"offscreen"),n.getelement(n.controls).style.display="";var e=(0,m.createevent)("controlshidden",n.getelement(n.container));n.getelement(n.container).dispatchevent(e)});for(var e=n.getelement(n.container).queryselectorall("."+n.options.classprefix+"control"),t=0,o=e.length;t0&&e.currentmediatime>0&&(e.setcurrenttime(e.currentmediatime),p.is_ios||p.is_android||e.play())})}},{key:"_meready",value:function(e,t){var n=this,o=t.getattribute("autoplay"),i=!(void 0===o||null===o||"false"===o),r=null!==e.renderername&&/(native|html5)/i.test(n.media.renderername);if(n.getelement(n.controls)&&n.enablecontrols(),n.getelement(n.container)&&n.getelement(n.container).queryselector("."+n.options.classprefix+"overlay-play")&&(n.getelement(n.container).queryselector("."+n.options.classprefix+"overlay-play").style.display=""),!n.created){if(n.created=!0,n.media=e,n.domnode=t,!(p.is_android&&n.options.androidusenativecontrols||p.is_ipad&&n.options.ipadusenativecontrols||p.is_iphone&&n.options.iphoneusenativecontrols)){if(!n.isvideo&&!n.options.features.length&&!n.options.usedefaultcontrols)return i&&r&&n.play(),void(n.options.success&&("string"==typeof n.options.success?s.default[n.options.success](n.media,n.domnode,n):n.options.success(n.media,n.domnode,n)));if(n.featureposition={},n._setdefaultplayer(),n.buildposter(n,n.getelement(n.controls),n.getelement(n.layers),n.media),n.buildkeyboard(n,n.getelement(n.controls),n.getelement(n.layers),n.media),n.buildoverlays(n,n.getelement(n.controls),n.getelement(n.layers),n.media),n.options.usedefaultcontrols){var a=["playpause","current","progress","duration","tracks","volume","fullscreen"];n.options.features=a.concat(n.options.features.filter(function(e){return-1===a.indexof(e)}))}n.buildfeatures(n,n.getelement(n.controls),n.getelement(n.layers),n.media);var u=(0,m.createevent)("controlsready",n.getelement(n.container));n.getelement(n.container).dispatchevent(u),n.setplayersize(n.width,n.height),n.setcontrolssize(),n.isvideo&&(n.clicktoplaypausecallback=function(){if(n.options.clicktoplaypause){var e=n.getelement(n.container).queryselector("."+n.options.classprefix+"overlay-button"),t=e.getattribute("aria-pressed");n.paused&&t?n.pause():n.paused?n.play():n.pause(),e.setattribute("aria-pressed",!t),n.getelement(n.container).focus()}},n.createiframelayer(),n.media.addeventlistener("click",n.clicktoplaypausecallback),!p.is_android&&!p.is_ios||n.options.alwaysshowcontrols?(n.getelement(n.container).addeventlistener("mouseenter",function(){n.controlsenabled&&(n.options.alwaysshowcontrols||(n.killcontrolstimer("enter"),n.showcontrols(),n.startcontrolstimer(n.options.controlstimeoutmouseenter)))}),n.getelement(n.container).addeventlistener("mousemove",function(){n.controlsenabled&&(n.controlsarevisible||n.showcontrols(),n.options.alwaysshowcontrols||n.startcontrolstimer(n.options.controlstimeoutmouseenter))}),n.getelement(n.container).addeventlistener("mouseleave",function(){n.controlsenabled&&(n.paused||n.options.alwaysshowcontrols||n.startcontrolstimer(n.options.controlstimeoutmouseleave))})):n.node.addeventlistener("touchstart",function(){n.controlsarevisible?n.hidecontrols(!1):n.controlsenabled&&n.showcontrols(!1)},!!p.support_passive_event&&{passive:!0}),n.options.hidevideocontrolsonload&&n.hidecontrols(!1),n.options.enableautosize&&n.media.addeventlistener("loadedmetadata",function(e){var t=void 0!==e?e.detail.target||e.target:n.media;n.options.videoheight<=0&&!n.domnode.getattribute("height")&&!n.domnode.style.height&&null!==t&&!isnan(t.videoheight)&&(n.setplayersize(t.videowidth,t.videoheight),n.setcontrolssize(),n.media.setsize(t.videowidth,t.videoheight))})),n.media.addeventlistener("play",function(){n.hasfocus=!0;for(var e in d.default.players)if(d.default.players.hasownproperty(e)){var t=d.default.players[e];t.id===n.id||!n.options.pauseotherplayers||t.paused||t.ended||(t.pause(),t.hasfocus=!1)}p.is_android||p.is_ios||n.options.alwaysshowcontrols||!n.isvideo||n.hidecontrols()}),n.media.addeventlistener("ended",function(){if(n.options.autorewind)try{n.setcurrenttime(0),settimeout(function(){var e=n.getelement(n.container).queryselector("."+n.options.classprefix+"overlay-loading");e&&e.parentnode&&(e.parentnode.style.display="none")},20)}catch(e){}"function"==typeof n.media.renderer.stop?n.media.renderer.stop():n.pause(),n.setprogressrail&&n.setprogressrail(),n.setcurrentrail&&n.setcurrentrail(),n.options.loop?n.play():!n.options.alwaysshowcontrols&&n.controlsenabled&&n.showcontrols()}),n.media.addeventlistener("loadedmetadata",function(){(0,h.calculatetimeformat)(n.getduration(),n.options,n.options.framespersecond||25),n.updateduration&&n.updateduration(),n.updatecurrent&&n.updatecurrent(),n.isfullscreen||(n.setplayersize(n.width,n.height),n.setcontrolssize())});var c=null;n.media.addeventlistener("timeupdate",function(){isnan(n.getduration())||c===n.getduration()||(c=n.getduration(),(0,h.calculatetimeformat)(c,n.options,n.options.framespersecond||25),n.updateduration&&n.updateduration(),n.updatecurrent&&n.updatecurrent(),n.setcontrolssize())}),n.getelement(n.container).addeventlistener("click",function(e){g.addclass(e.currenttarget,n.options.classprefix+"container-keyboard-inactive")}),n.getelement(n.container).addeventlistener("focusin",function(e){g.removeclass(e.currenttarget,n.options.classprefix+"container-keyboard-inactive"),!n.isvideo||p.is_android||p.is_ios||!n.controlsenabled||n.options.alwaysshowcontrols||(n.killcontrolstimer("enter"),n.showcontrols(),n.startcontrolstimer(n.options.controlstimeoutmouseenter))}),n.getelement(n.container).addeventlistener("focusout",function(e){settimeout(function(){e.relatedtarget&&n.keyboardaction&&!e.relatedtarget.closest("."+n.options.classprefix+"container")&&(n.keyboardaction=!1,!n.isvideo||n.options.alwaysshowcontrols||n.paused||n.startcontrolstimer(n.options.controlstimeoutmouseleave))},0)}),settimeout(function(){n.setplayersize(n.width,n.height),n.setcontrolssize()},0),n.globalresizecallback=function(){n.isfullscreen||p.has_true_native_fullscreen&&l.default.webkitisfullscreen||n.setplayersize(n.width,n.height),n.setcontrolssize()},n.globalbind("resize",n.globalresizecallback)}i&&r&&n.play(),n.options.success&&("string"==typeof n.options.success?s.default[n.options.success](n.media,n.domnode,n):n.options.success(n.media,n.domnode,n))}}},{key:"_handleerror",value:function(e,t,n){var o=this,i=o.getelement(o.layers).queryselector("."+o.options.classprefix+"overlay-play");i&&(i.style.display="none"),o.options.error&&o.options.error(e,t,n),o.getelement(o.container).queryselector("."+o.options.classprefix+"cannotplay")&&o.getelement(o.container).queryselector("."+o.options.classprefix+"cannotplay").remove();var r=l.default.createelement("div");r.classname=o.options.classprefix+"cannotplay",r.style.width="100%",r.style.height="100%";var a="function"==typeof o.options.customerror?o.options.customerror(o.media,o.media.originalnode):o.options.customerror,s="";if(!a){var u=o.media.originalnode.getattribute("poster");if(u&&(s=''+d.default.i18n.t('),e.message&&(a="

    "+e.message+"

    "),e.urls)for(var c=0,f=e.urls.length;c'+d.default.i18n.t("mejs.download-file")+": "+p.src+""}}a&&o.getelement(o.layers).queryselector("."+o.options.classprefix+"overlay-error")&&(r.innerhtml=a,o.getelement(o.layers).queryselector("."+o.options.classprefix+"overlay-error").innerhtml=""+s+r.outerhtml,o.getelement(o.layers).queryselector("."+o.options.classprefix+"overlay-error").parentnode.style.display="block"),o.controlsenabled&&o.disablecontrols()}},{key:"setplayersize",value:function(e,t){var n=this;if(!n.options.setdimensions)return!1;switch(void 0!==e&&(n.width=e),void 0!==t&&(n.height=t),n.options.stretching){case"fill":n.isvideo?n.setfillmode():n.setdimensions(n.width,n.height);break;case"responsive":n.setresponsivemode();break;case"none":n.setdimensions(n.width,n.height);break;default:!0===n.hasfluidmode()?n.setresponsivemode():n.setdimensions(n.width,n.height)}}},{key:"hasfluidmode",value:function(){var e=this;return-1!==e.height.tostring().indexof("%")||e.node&&e.node.style.maxwidth&&"none"!==e.node.style.maxwidth&&e.node.style.maxwidth!==e.width||e.node&&e.node.currentstyle&&"100%"===e.node.currentstyle.maxwidth}},{key:"setresponsivemode",value:function(){var e=this,t=function(){for(var t=void 0,n=e.getelement(e.container);n;){try{if(p.is_firefox&&"html"===n.tagname.tolowercase()&&s.default.self!==s.default.top&&null!==s.default.frameelement)return s.default.frameelement;t=n.parentelement}catch(e){t=n.parentelement}if(t&&g.visible(t))return t;n=t}return null}(),n=t?getcomputedstyle(t,null):getcomputedstyle(l.default.body,null),o=e.isvideo?e.media.videowidth&&e.media.videowidth>0?e.media.videowidth:e.node.getattribute("width")?e.node.getattribute("width"):e.options.defaultvideowidth:e.options.defaultaudiowidth,i=e.isvideo?e.media.videoheight&&e.media.videoheight>0?e.media.videoheight:e.node.getattribute("height")?e.node.getattribute("height"):e.options.defaultvideoheight:e.options.defaultaudioheight,r=function(){var t=1;return e.isvideo?(t=e.media.videowidth&&e.media.videowidth>0&&e.media.videoheight&&e.media.videoheight>0?e.height>=e.width?e.media.videowidth/e.media.videoheight:e.media.videoheight/e.media.videowidth:e.initialaspectratio,(isnan(t)||t<.01||t>100)&&(t=1),t):t}(),a=parsefloat(n.height),d=void 0,u=parsefloat(n.width);if(d=e.isvideo?"100%"===e.height?parsefloat(u*i/o,10):e.height>=e.width?parsefloat(u/r,10):parsefloat(u*r,10):i,isnan(d)&&(d=a),e.getelement(e.container).parentnode.length>0&&"body"===e.getelement(e.container).parentnode.tagname.tolowercase()&&(u=s.default.innerwidth||l.default.documentelement.clientwidth||l.default.body.clientwidth,d=s.default.innerheight||l.default.documentelement.clientheight||l.default.body.clientheight),d&&u){e.getelement(e.container).style.width=u+"px",e.getelement(e.container).style.height=d+"px",e.node.style.width="100%",e.node.style.height="100%",e.isvideo&&e.media.setsize&&e.media.setsize(u,d);for(var c=e.getelement(e.layers).children,f=0,m=c.length;fimg");a&&(a.style.display="");for(var d=e.getelement(e.container).queryselectorall("object, embed, iframe, video"),u=e.height,c=e.width,f=i,m=u*i/c,h=c*r/u,v=r,y=h>i==!1,e=y?math.floor(f):math.floor(h),b=y?math.floor(m):math.floor(v),s=y?i+"px":e+"px",x=y?b+"px":r+"px",w=0,p=d.length;w-1?e:parsefloat(e)+"px",t=(0,m.isstring)(t)&&t.indexof("%")>-1?t:parsefloat(t)+"px",n.getelement(n.container).style.width=e,n.getelement(n.container).style.height=t;for(var o=n.getelement(n.layers).children,i=0,r=o.length;i-1&&!l.default.getelementbyid(e.media.id+"-iframe-overlay")){var t=l.default.createelement("div"),n=l.default.getelementbyid(e.media.id+"_"+e.media.renderername);t.id=e.media.id+"-iframe-overlay",t.classname=e.options.classprefix+"iframe-overlay",t.addeventlistener("click",function(t){e.options.clicktoplaypause&&(e.paused?e.play():e.pause(),t.preventdefault(),t.stoppropagation())}),n.parentnode.insertbefore(t,n)}}},{key:"resetsize",value:function(){var e=this;settimeout(function(){e.setplayersize(e.width,e.height),e.setcontrolssize()},50)}},{key:"setposter",value:function(e){var t=this;if(t.getelement(t.container)){var n=t.getelement(t.container).queryselector("."+t.options.classprefix+"poster");n||((n=l.default.createelement("div")).classname=t.options.classprefix+"poster "+t.options.classprefix+"layer",t.getelement(t.layers).appendchild(n));var o=n.queryselector("img");!o&&e&&((o=l.default.createelement("img")).classname=t.options.classprefix+"poster-img",o.width="100%",o.height="100%",n.style.display="",n.appendchild(o)),e?(o.setattribute("src",e),n.style.backgroundimage='url("'+e+'")',n.style.display=""):o?(n.style.backgroundimage="none",n.style.display="none",o.remove()):n.style.display="none"}else(p.is_ipad&&t.options.ipadusenativecontrols||p.is_iphone&&t.options.iphoneusenativecontrols||p.is_android&&t.options.androidusenativecontrols)&&(t.media.originalnode.poster=e)}},{key:"changeskin",value:function(e){var t=this;t.getelement(t.container).classname=t.options.classprefix+"container "+e,t.setplayersize(t.width,t.height),t.setcontrolssize()}},{key:"globalbind",value:function(e,t){var n=this,o=n.node?n.node.ownerdocument:l.default;if((e=(0,m.splitevents)(e,n.id)).d)for(var i=e.d.split(" "),r=0,a=i.length;r',n.appendchild(r),a.style.display="none",a.classname=i.options.classprefix+"overlay "+i.options.classprefix+"layer",a.innerhtml='
    ',n.appendchild(a),s.classname=i.options.classprefix+"overlay "+i.options.classprefix+"layer "+i.options.classprefix+"overlay-play",s.innerhtml='
    ',s.addeventlistener("click",function(){if(i.options.clicktoplaypause){var e=i.getelement(i.container).queryselector("."+i.options.classprefix+"overlay-button"),t=e.getattribute("aria-pressed");i.paused?i.play():i.pause(),e.setattribute("aria-pressed",!!t),i.getelement(i.container).focus()}}),s.addeventlistener("keydown",function(e){var t=e.keycode||e.which||0;if(13===t||p.is_firefox&&32===t){var n=(0,m.createevent)("click",s);return s.dispatchevent(n),!1}}),n.appendchild(s),null!==i.media.renderername&&(/(youtube|facebook)/i.test(i.media.renderername)&&!(i.media.originalnode.getattribute("poster")||e.options.poster||"function"==typeof i.media.renderer.getposterurl&&i.media.renderer.getposterurl())||p.is_stock_android||i.media.originalnode.getattribute("autoplay"))&&(s.style.display="none");var d=!1;o.addeventlistener("play",function(){s.style.display="none",r.style.display="none",a.style.display="none",d=!1}),o.addeventlistener("playing",function(){s.style.display="none",r.style.display="none",a.style.display="none",d=!1}),o.addeventlistener("seeking",function(){s.style.display="none",r.style.display="",d=!1}),o.addeventlistener("seeked",function(){s.style.display=i.paused&&!p.is_stock_android?"":"none",r.style.display="none",d=!1}),o.addeventlistener("pause",function(){r.style.display="none",p.is_stock_android||d||(s.style.display=""),d=!1}),o.addeventlistener("waiting",function(){r.style.display="",d=!1}),o.addeventlistener("loadeddata",function(){r.style.display="",p.is_android&&(o.canplaytimeout=settimeout(function(){if(l.default.createevent){var e=l.default.createevent("htmlevents");return e.initevent("canplay",!0,!0),o.dispatchevent(e)}},300)),d=!1}),o.addeventlistener("canplay",function(){r.style.display="none",cleartimeout(o.canplaytimeout),d=!1}),o.addeventlistener("error",function(e){i._handleerror(e,i.media,i.node),r.style.display="none",s.style.display="none",d=!0}),o.addeventlistener("loadedmetadata",function(){i.controlsenabled||i.enablecontrols()}),o.addeventlistener("keydown",function(t){i.onkeydown(e,o,t),d=!1})}}},{key:"buildkeyboard",value:function(e,t,n,o){var i=this;i.getelement(i.container).addeventlistener("keydown",function(){i.keyboardaction=!0}),i.globalkeydowncallback=function(t){var n=l.default.activeelement.closest("."+i.options.classprefix+"container"),r=i.media.closest("."+i.options.classprefix+"container");return i.hasfocus=!(!n||!r||n.id!==r.id),i.onkeydown(e,o,t)},i.globalclickcallback=function(e){i.hasfocus=!!e.target.closest("."+i.options.classprefix+"container")},i.globalbind("keydown",i.globalkeydowncallback),i.globalbind("click",i.globalclickcallback)}},{key:"onkeydown",value:function(e,t,n){if(e.hasfocus&&e.options.enablekeyboard)for(var o=0,i=e.options.keyactions.length;oimg");o&&e.node.setattribute("poster",o.src),delete e.node.autoplay,""!==e.media.canplaytype((0,v.gettypefromfile)(n))&&e.node.setattribute("src",n),~t.indexof("iframe")&&l.default.getelementbyid(e.media.id+"-iframe-overlay").remove();var i=e.node.clonenode();if(i.style.display="",e.getelement(e.container).parentnode.insertbefore(i,e.getelement(e.container)),e.node.remove(),e.mediafiles)for(var r=0,a=e.mediafiles.length;r-1},create:function(e,t,n){var o=e.originalnode,d=e.id+"_"+t.prefix,u=o.autoplay,c=o.children,p=null,m=null;o.removeattribute("type");for(var h=0,v=c.length;h1?t-1:0),o=1;o0)for(var x=0,w=n.length;xt[0]||n[0]===t[0]&&n[1]>t[1]||n[0]===t[0]&&n[1]===t[1]&&n[2]>=t[2]},addplugin:function(e,t,n,o,i){p.plugins[e]=p.detectplugin(t,n,o,i)},detectplugin:function(e,t,n,o){var a=[0,0,0],s=void 0,l=void 0;if(null!==c.nav.plugins&&void 0!==c.nav.plugins&&"object"===i(c.nav.plugins[e])){if((s=c.nav.plugins[e].description)&&(void 0===c.nav.mimetypes||!c.nav.mimetypes[t]||c.nav.mimetypes[t].enabledplugin))for(var d=0,u=(a=s.replace(e,"").replace(/^\s+/,"").replace(/\sr/gi,".").split(".")).length;d
    '+l.default.t("mejs.install-flash")+"
    "}else _=['id="__'+o.id+'"','name="__'+o.id+'"','play="true"','loop="false"','quality="high"','bgcolor="#000000"','wmode="transparent"','allowscriptaccess="'+o.options.shimscriptaccess+'"','allowfullscreen="true"','type="application/x-shockwave-flash"','pluginspage="//www.macromedia.com/go/getflashplayer"','src="'+o.options.pluginpath+o.options.filename+'"','flashvars="'+p.join("&")+'"'],t?(_.push('width="'+k+'"'),_.push('height="'+c+'"')):_.push('style="position: fixed; left: -9999em; top: -9999em;"'),o.flashwrapper.innerhtml="";if(o.flashnode=o.flashwrapper.lastchild,o.hide=function(){i=!1,t&&(o.flashnode.style.display="none")},o.show=function(){i=!0,t&&(o.flashnode.style.display="")},o.setsize=function(e,t){o.flashnode.style.width=e+"px",o.flashnode.style.height=t+"px",null!==o.flashapi&&"function"==typeof o.flashapi.fire_setsize&&o.flashapi.fire_setsize(e,t)},o.destroy=function(){o.flashnode.remove()},n&&n.length>0)for(var a=0,l=n.length;a-1},create:function(e,t,n){var o=e.originalnode,d=e.id+"_"+t.prefix,u=null,c=null;u=o.clonenode(!0),t=object.assign(t,e.options);for(var p=a.default.html5media.properties,m=a.default.html5media.events.concat(["click","mouseover","mouseout"]),h=function(t){if("error"!==t.type){var n=(0,l.createevent)(t.type,e);e.dispatchevent(n)}},v=0,g=p.length;v0)for(var y=0,e=n.length;y-1},create:function(e,t,n){var o=e.originalnode,d=e.id+"_"+t.prefix,u=o.getattribute("preload"),c=o.autoplay,p=null,m=null,h=0,v=n.length;m=o.clonenode(!0),(t=object.assign(t,e.options)).hls.autostartload=u&&"none"!==u||c;for(var g=a.default.html5media.properties,y=a.default.html5media.events.concat(["click","mouseover","mouseout"]),e=function(t){if("error"!==t.type){var n=(0,l.createevent)(t.type,e);e.dispatchevent(n)}},b=0,s=g.length;b3e3)a=(new date).gettime(),p.recovermediaerror();else if(!s||i-s>3e3)s=(new date).gettime(),console.warn("attempting to swap audio codec and recover from media error"),p.swapaudiocodec(),p.recovermediaerror();else{var r="cannot recover, last media error recovery failed";e.generateerror(r,m.src),console.error(r)}break;case"networkerror":if("manifestloaderror"===o.details)if(h0)for(;h0)for(;v0;){var e=c.iframequeue.pop();c.createiframe(e)}},createiframe:function(e){return new yt.player(e.containerid,e)},getyoutubeid:function(e){var t="";return e.indexof("?")>0?""===(t=c.getyoutubeidfromparam(e))&&(t=c.getyoutubeidfromurl(e)):t=c.getyoutubeidfromurl(e),(t=t.substring(t.lastindexof("/")+1).split("?"))[0]},getyoutubeidfromparam:function(e){if(void 0===e||null===e||!e.trim().length)return null;for(var t=e.split("?")[1].split("&"),n="",o=0,i=t.length;o-1&&i?"https://img.youtube.com/vi/"+i+"/"+n+".jpg":""},o}};i.default.onyoutubeplayerapiready=function(){c.iframeready()},d.typechecks.push(function(e){return/\/\/(www\.youtube|youtu\.?be)/i.test(e)?"video/x-youtube":null}),s.renderer.add(f)},{2:2,26:26,27:27,28:28,3:3,7:7,8:8}],25:[function(e,t,n){"use strict";function o(e){return e&&e.__esmodule?e:{default:e}}object.defineproperty(n,"__esmodule",{value:!0}),n.cancelfullscreen=n.requestfullscreen=n.isfullscreen=n.fullscreen_event_name=n.has_native_fullscreen_enabled=n.has_true_native_fullscreen=n.has_ios_fullscreen=n.has_ms_native_fullscreen=n.has_moz_native_fullscreen=n.has_webkit_native_fullscreen=n.has_native_fullscreen=n.supports_native_hls=n.support_passive_event=n.support_pointer_events=n.has_mse=n.is_stock_android=n.is_safari=n.is_firefox=n.is_chrome=n.is_edge=n.is_ie=n.is_android=n.is_ios=n.is_ipod=n.is_iphone=n.is_ipad=n.ua=n.nav=void 0;for(var i=o(e(3)),r=o(e(2)),a=o(e(7)),s=n.nav=i.default.navigator,l=n.ua=s.useragent.tolowercase(),d=n.is_ipad=/ipad/i.test(l)&&!i.default.msstream,u=n.is_iphone=/iphone/i.test(l)&&!i.default.msstream,c=n.is_ipod=/ipod/i.test(l)&&!i.default.msstream,f=(n.is_ios=/ipad|iphone|ipod/i.test(l)&&!i.default.msstream,n.is_android=/android/i.test(l)),p=n.is_ie=/(trident|microsoft)/i.test(s.appname),m=(n.is_edge="mslaunchuri"in s&&!("documentmode"in r.default)),h=n.is_chrome=/chrome/i.test(l),v=n.is_firefox=/firefox/i.test(l),g=n.is_safari=/safari/i.test(l)&&!h,y=n.is_stock_android=/^mozilla\/\d+\.\d+\s\(linux;\su;/i.test(l),e=(n.has_mse="mediasource"in i.default),b=n.support_pointer_events=function(){var e=r.default.createelement("x"),t=r.default.documentelement,n=i.default.getcomputedstyle;if(!("pointerevents"in e.style))return!1;e.style.pointerevents="auto",e.style.pointerevents="x",t.appendchild(e);var o=n&&"auto"===n(e,"").pointerevents;return e.remove(),!!o}(),s=n.support_passive_event=function(){var e=!1;try{var t=object.defineproperty({},"passive",{get:function(){e=!0}});i.default.addeventlistener("test",null,t)}catch(e){}return e}(),x=["source","track","audio","video"],w=void 0,p=0,t=x.length;p1&&void 0!==arguments[1]?arguments[1]:400,n=arguments[2];e.style.opacity||(e.style.opacity=1);var o=null;f.default.requestanimationframe(function i(r){var a=r-(o=o||r),s=parsefloat(1-a/t,2);e.style.opacity=s<0?0:s,a>t?n&&"function"==typeof n&&n():f.default.requestanimationframe(i)})}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:400,n=arguments[2];e.style.opacity||(e.style.opacity=0);var o=null;f.default.requestanimationframe(function i(r){var a=r-(o=o||r),s=parsefloat(a/t,2);e.style.opacity=s>1?1:s,a>t?n&&"function"==typeof n&&n():f.default.requestanimationframe(i)})}function d(e,t){var n=[];e=e.parentnode.firstchild;do{t&&!t(e)||n.push(e)}while(e=e.nextsibling);return n}function u(e){return void 0!==e.getclientrects&&"function"===e.getclientrects?!!(e.offsetwidth||e.offsetheight||e.getclientrects().length):!(!e.offsetwidth&&!e.offsetheight)}function c(e,t,n,o){var i=f.default.xmlhttprequest?new xmlhttprequest:new activexobject("microsoft.xmlhttp"),r="application/x-www-form-urlencoded; charset=utf-8",a=!1,s="*/".concat("*");switch(t){case"text":r="text/plain";break;case"json":r="application/json, text/javascript";break;case"html":r="text/html";break;case"xml":r="application/xml, text/xml"}"application/x-www-form-urlencoded"!==r&&(s=r+", */*; q=0.01"),i&&(i.open("get",e,!0),i.setrequestheader("accept",s),i.onreadystatechange=function(){if(!a&&4===i.readystate)if(200===i.status){a=!0;var e=void 0;switch(t){case"json":e=json.parse(i.responsetext);break;case"xml":e=i.responsexml;break;default:e=i.responsetext}n(e)}else"function"==typeof o&&o(i.status)},i.send())}object.defineproperty(n,"__esmodule",{value:!0}),n.removeclass=n.addclass=n.hasclass=void 0,n.loadscript=i,n.offset=r,n.toggleclass=a,n.fadeout=s,n.fadein=l,n.siblings=d,n.visible=u,n.ajax=c;var f=o(e(3)),p=o(e(2)),m=o(e(7)),h=void 0,v=void 0,g=void 0;"classlist"in p.default.documentelement?(h=function(e,t){return void 0!==e.classlist&&e.classlist.contains(t)},v=function(e,t){return e.classlist.add(t)},g=function(e,t){return e.classlist.remove(t)}):(h=function(e,t){return new regexp("\\b"+t+"\\b").test(e.classname)},v=function(e,t){y(e,t)||(e.classname+=" "+t)},g=function(e,t){e.classname=e.classname.replace(new regexp("\\b"+t+"\\b","g"),"")});var y=n.hasclass=h,e=n.addclass=v,b=n.removeclass=g;m.default.utils=m.default.utils||{},m.default.utils.offset=r,m.default.utils.hasclass=y,m.default.utils.addclass=e,m.default.utils.removeclass=b,m.default.utils.toggleclass=a,m.default.utils.fadein=l,m.default.utils.fadeout=s,m.default.utils.siblings=d,m.default.utils.visible=u,m.default.utils.ajax=c,m.default.utils.loadscript=i},{2:2,3:3,7:7}],27:[function(e,t,n){"use strict";function o(e){if("string"!=typeof e)throw new error("argument passed must be a string");var t={"&":"&","<":"<",">":">",'"':"""};return e.replace(/[&<>"]/g,function(e){return t[e]})}function i(e,t){var n=this,o=arguments,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("function"!=typeof e)throw new error("first argument must be a function");if("number"!=typeof t)throw new error("second argument must be a numeric value");var r=void 0;return function(){var a=n,s=o,l=i&&!r;cleartimeout(r),r=settimeout(function(){r=null,i||e.apply(a,s)},t),l&&e.apply(a,s)}}function r(e){return object.getownpropertynames(e).length<=0}function a(e,t){var n=/^((after|before)print|(before)?unload|hashchange|message|o(ff|n)line|page(hide|show)|popstate|resize|storage)\b/,o={d:[],w:[]};return(e||"").split(" ").foreach(function(e){var i=e+(t?"."+t:"");i.startswith(".")?(o.d.push(i),o.w.push(i)):o[n.test(e)?"w":"d"].push(i)}),o.d=o.d.join(" "),o.w=o.w.join(" "),o}function s(e,t){if("string"!=typeof e)throw new error("event name must be a string");var n=e.match(/([a-z]+\.([a-z]+))/i),o={target:t};return null!==n&&(e=n[1],o.namespace=n[2]),new window.customevent(e,{detail:o})}function l(e,t){return!!(e&&t&&2&e.comparedocumentposition(t))}function d(e){return"string"==typeof e}object.defineproperty(n,"__esmodule",{value:!0}),n.escapehtml=o,n.debounce=i,n.isobjectempty=r,n.splitevents=a,n.createevent=s,n.isnodeafter=l,n.isstring=d;var u=function(e){return e&&e.__esmodule?e:{default:e}}(e(7));u.default.utils=u.default.utils||{},u.default.utils.escapehtml=o,u.default.utils.debounce=i,u.default.utils.isobjectempty=r,u.default.utils.splitevents=a,u.default.utils.createevent=s,u.default.utils.isnodeafter=l,u.default.utils.isstring=d},{7:7}],28:[function(e,t,n){"use strict";function o(e){if("string"!=typeof e)throw new error("`url` argument must be a string");var t=document.createelement("div");return t.innerhtml='x',t.firstchild.href}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e&&!t?a(e):t}function r(e){if("string"!=typeof e)throw new error("`type` argument must be a string");return e&&e.indexof(";")>-1?e.substr(0,e.indexof(";")):e}function a(e){if("string"!=typeof e)throw new error("`url` argument must be a string");for(var t=0,n=c.length;t=0&&t.item(n)!==this;);return n>-1}),window.element&&!element.prototype.closest&&(element.prototype.closest=function(e){var t=(this.document||this.ownerdocument).queryselectorall(e),n=void 0,o=this;do{for(n=t.length;--n>=0&&t.item(n)!==o;);}while(n<0&&(o=o.parentelement));return o}),function(){for(var e=0,t=["ms","moz","webkit","o"],n=0;n0&&void 0!==arguments[0]?arguments[0]:25)%1==0)}function i(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:25,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"mm:ss";e=!e||"number"!=typeof e||e<0?0:e;var s=math.round(.066666*i),l=math.round(i),d=24*math.round(3600*i),u=math.round(600*i),c=o(i)?";":":",f=void 0,p=void 0,m=void 0,h=void 0,v=math.round(e*i);if(o(i)){v<0&&(v=d+v);var g=(v%=d)%u;v+=9*s*math.floor(v/u),g>s&&(v+=s*math.floor((g-s)/math.round(60*l-s)));var y=math.floor(v/l);f=math.floor(math.floor(y/60)/60),p=math.floor(y/60)%60,m=n?y%60:(v/l%60).tofixed(r)}else f=math.floor(e/3600)%24,p=math.floor(e/60)%60,m=n?math.floor(e%60):(e%60).tofixed(r);f=f<=0?0:f,p=p<=0?0:p,m=m<=0?0:m;for(var e=a.split(":"),b={},s=0,x=e.length;s0?(f<10&&b.h>1?"0"+f:f)+":":"";return c+=(p<10&&b.m>1?"0"+p:p)+":",c+=""+(m<10&&b.s>1?"0"+m:m),n&&(c+=(h=(h=(v%l).tofixed(0))<=0?0:h)<10&&b.f?c+"0"+h:""+c+h),c}function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:25;if("string"!=typeof e)throw new typeerror("time must be a string");if(e.indexof(";")>0&&(e=e.replace(";",":")),!/\d{2}(\:\d{2}){0,3}/i.test(e))throw new typeerror("time code must have the format `00:00:00`");var n=e.split(":"),i=void 0,r=0,a=0,s=0,l=0,d=0,u=math.round(.066666*t),c=math.round(t),f=3600*c,p=60*c;switch(n.length){default:case 1:s=parseint(n[0],10);break;case 2:a=parseint(n[0],10),s=parseint(n[1],10);break;case 3:r=parseint(n[0],10),a=parseint(n[1],10),s=parseint(n[2],10);break;case 4:r=parseint(n[0],10),a=parseint(n[1],10),s=parseint(n[2],10),l=parseint(n[3],10)}return i=o(t)?f*r+p*a+c*s+l-u*((d=60*r+a)-math.floor(d/10)):(f*r+p*a+t*s+l)/t,parsefloat(i.tofixed(3))}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:25;e=!e||"number"!=typeof e||e<0?0:e;for(var o=math.floor(e/3600)%24,i=math.floor(e/60)%60,r=math.floor(e%60),a=[[math.floor((e%1*n).tofixed(3)),"f"],[r,"s"],[i,"m"],[o,"h"]],s=t.timeformat,l=s[1]===s[0],d=l?2:1,u=s.length0){h=!0;break}if(!h)break;l||(s=c+s),s=a[p][1]+u+s,l&&(s=a[p][1]+s),c=a[p][1]}t.timeformat=s}function s(e){if("string"!=typeof e)throw new typeerror("argument must be a string value");for(var t=~(e=e.replace(",",".")).indexof(".")?e.split(".")[1].length:0,n=0,o=1,i=0,r=(e=e.split(":").reverse()).length;i0&&(o=math.pow(60,i)),n+=number(e[i])*o;return number(n.tofixed(t))}object.defineproperty(n,"__esmodule",{value:!0}),n.isdropframe=o,n.secondstotimecode=i,n.timecodetoseconds=r,n.calculatetimeformat=a,n.convertsmptetoseconds=s;var l=function(e){return e&&e.__esmodule?e:{default:e}}(e(7));l.default.utils=l.default.utils||{},l.default.utils.secondstotimecode=i,l.default.utils.timecodetoseconds=r,l.default.utils.calculatetimeformat=a,l.default.utils.convertsmptetoseconds=s},{7:7}]},{},[29,6,5,15,23,20,19,21,22,24,16,18,17,9,10,11,12,13,14]);