/*! * 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 r(a,s,l){function d(n,e){if(!s[n]){if(!a[n]){var t="function"==typeof require&&require;if(!e&&t)return t(n,!0);if(u)return u(n,!0);var o=new error("cannot find module '"+n+"'");throw o.code="module_not_found",o}var i=s[n]={exports:{}};a[n][0].call(i.exports,function(e){var t=a[n][1][e];return d(t||e)},i,i.exports,r,a,s,l)}return s[n].exports}for(var u="function"==typeof require&&require,e=0;e',o.addcontrolelement(t,"fullscreen"),t.addeventlistener("click",function(){m.has_true_native_fullscreen&&m.is_fullscreen||n.isfullscreen?n.exitfullscreen():n.enterfullscreen()}),n.fullscreenbtn=t,o.options.keyactions.push({keys:[70],action:function(e,t,n,o){o.ctrlkey||void 0!==e.enterfullscreen&&(e.isfullscreen?e.exitfullscreen():e.enterfullscreen())}}),o.exitfullscreencallback=function(e){var t=e.which||e.keycode||0;o.options.enablekeyboard&&27===t&&(m.has_true_native_fullscreen&&m.is_fullscreen||o.isfullscreen)&&n.exitfullscreen()},o.globalbind("keydown",o.exitfullscreencallback),o.normalheight=0,o.normalwidth=0,m.has_true_native_fullscreen){n.globalbind(m.fullscreen_event_name,function(){n.isfullscreen&&(m.isfullscreen()?(n.isnativefullscreen=!0,n.setcontrolssize()):(n.isnativefullscreen=!1,n.exitfullscreen()))})}}},cleanfullscreen:function(e){e.exitfullscreen(),e.globalunbind("keydown",e.exitfullscreencallback)},detectfullscreenmode:function(){var e=null!==this.media.renderername&&/(native|html5)/i.test(this.media.renderername),t="";return m.has_true_native_fullscreen&&e?t="native-native":m.has_true_native_fullscreen&&!e?t="plugin-native":this.usepluginfullscreen&&m.support_pointer_events&&(t="plugin-click"),this.fullscreenmode=t},enterfullscreen:function(){var o=this,e=null!==o.media.renderername&&/(html5|native)/i.test(o.media.renderername),t=getcomputedstyle(o.getelement(o.container));if(o.isvideo)if(!1===o.options.usefakefullscreen&&m.is_ios&&m.has_ios_fullscreen&&"function"==typeof o.media.originalnode.webkitenterfullscreen&&o.media.originalnode.canplaytype((0,g.gettypefromfile)(o.media.getsrc())))o.media.originalnode.webkitenterfullscreen();else{if((0,v.addclass)(p.default.documentelement,o.options.classprefix+"fullscreen"),(0,v.addclass)(o.getelement(o.container),o.options.classprefix+"container-fullscreen"),o.normalheight=parsefloat(t.height),o.normalwidth=parsefloat(t.width),"native-native"!==o.fullscreenmode&&"plugin-native"!==o.fullscreenmode||(m.requestfullscreen(o.getelement(o.container)),o.isiniframe&&settimeout(function e(){if(o.isnativefullscreen){var t=f.default.innerwidth||p.default.documentelement.clientwidth||p.default.body.clientwidth,n=screen.width;.002*n',l.addeventlistener("click",function(){i.paused?i.play():i.pause()});var d=l.queryselector("button");function u(e){"play"===e?((0,m.removeclass)(l,i.options.classprefix+"play"),(0,m.removeclass)(l,i.options.classprefix+"replay"),(0,m.addclass)(l,i.options.classprefix+"pause"),d.setattribute("title",s),d.setattribute("aria-label",s)):((0,m.removeclass)(l,i.options.classprefix+"pause"),(0,m.removeclass)(l,i.options.classprefix+"replay"),(0,m.addclass)(l,i.options.classprefix+"play"),d.setattribute("title",a),d.setattribute("aria-label",a))}i.addcontrolelement(l,"playpause"),u("pse"),o.addeventlistener("loadedmetadata",function(){-1===o.renderername.indexof("flash")&&u("pse")}),o.addeventlistener("play",function(){u("play")}),o.addeventlistener("playing",function(){u("play")}),o.addeventlistener("pause",function(){u("pse")}),o.addeventlistener("ended",function(){e.options.loop||((0,m.removeclass)(l,i.options.classprefix+"pause"),(0,m.removeclass)(l,i.options.classprefix+"play"),(0,m.addclass)(l,i.options.classprefix+"replay"),d.setattribute("title",a),d.setattribute("aria-label",a))})}})},{16:16,2:2,26:26,27:27,5:5}],11:[function(e,t,n){"use strict";var p=r(e(2)),o=e(16),i=r(o),m=r(e(5)),y=e(25),e=e(30),b=e(26);function r(e){return e&&e.__esmodule?e:{default:e}}object.assign(o.config,{enableprogresstooltip:!0,usesmoothhover:!0,forcelive:!1}),object.assign(i.default.prototype,{buildprogress:function(h,s,e,d){var u=0,v=!1,c=!1,g=this,t=h.options.autorewind,n=h.options.enableprogresstooltip?'00:00':"",o=p.default.createelement("div");o.classname=g.options.classprefix+"time-rail",o.innerhtml=''+n+"",g.addcontrolelement(o,"progress"),g.options.keyactions.push({keys:[37,227],action:function(e){if(!isnan(e.duration)&&0o+n.left&&(d=o+n.left),a=(l=d-n.left)/o,g.newtime=a*g.getduration(),v&&null!==g.getcurrenttime()&&g.newtime.tofixed(4)!==g.getcurrenttime().tofixed(4)&&(g.setcurrentrailhandle(g.newtime),g.updatecurrent(g.newtime)),!y.is_ios&&!y.is_android){if(l<0&&(l=0),g.options.usesmoothhover&&null!==r&&void 0!==window[r]){var u=new window[r](getcomputedstyle(g.handle)[i]).m41,c=l/parsefloat(getcomputedstyle(g.total).width)-u/parsefloat(getcomputedstyle(g.total).width);g.hovered.style.left=u+"px",g.settransformstyle(g.hovered,"scalex("+c+")"),g.hovered.setattribute("pos",l),0<=c?(0,b.removeclass)(g.hovered,"negative"):(0,b.addclass)(g.hovered,"negative")}if(g.timefloat){var f=g.timefloat.offsetwidth/2,p=mejs.utils.offset(g.getelement(g.container)),m=getcomputedstyle(g.timefloat);s=d-p.left=g.getelement(g.container).offsetwidth-f?g.total.offsetwidth-f:l,(0,b.hasclass)(g.getelement(g.container),g.options.classprefix+"long-video")&&(s+=parsefloat(m.marginleft)/2+g.timefloat.offsetwidth/2),g.timefloat.style.left=s+"px",g.timefloatcurrent.innerhtml=(0,e.secondstotimecode)(g.newtime,h.options.alwaysshowhours,h.options.showtimecodeframecount,h.options.framespersecond,h.options.secondsdecimallength,h.options.timeformat),g.timefloat.style.display="block"}}}else y.is_ios||y.is_android||!g.timefloat||(s=g.timefloat.offsetwidth+o>=g.getelement(g.container).offsetwidth?g.timefloat.offsetwidth/2:0,g.timefloat.style.left=s+"px",g.timefloat.style.left=s+"px",g.timefloat.style.display="block")},f=function(){1e3<=new date-u&&g.play()};g.slider.addeventlistener("focus",function(){h.options.autorewind=!1}),g.slider.addeventlistener("blur",function(){h.options.autorewind=t}),g.slider.addeventlistener("keydown",function(e){if(1e3<=new date-u&&(c=g.paused),g.options.enablekeyboard&&g.options.keyactions.length){var t=e.which||e.keycode||0,n=g.getduration(),o=h.options.defaultseekforwardinterval(d),i=h.options.defaultseekbackwardinterval(d),r=g.getcurrenttime(),a=g.getelement(g.container).queryselector("."+g.options.classprefix+"volume-slider");if(38===t||40===t){a&&(a.style.display="block"),g.isvideo&&(g.showcontrols(),g.startcontrolstimer());var s=38===t?math.min(g.volume+.1,1):math.max(g.volume-.1,0),l=s<=0;return g.setvolume(s),void g.setmuted(l)}switch(a&&(a.style.display="none"),t){case 37:g.getduration()!==1/0&&(r-=i);break;case 39:g.getduration()!==1/0&&(r+=o);break;case 36:r=0;break;case 35:r=n;break;case 13:case 32:return void(y.is_firefox&&(g.paused?g.play():g.pause()));default:return}r=r<0||isnan(r)?0:n<=r?n:math.floor(r),u=new date,c||h.pause(),settimeout(function(){g.setcurrenttime(r)},0),r | "}),object.assign(i.default.prototype,{buildcurrent:function(e,t,n,o){var i=this,r=a.default.createelement("div");r.classname=i.options.classprefix+"time",r.setattribute("role","timer"),r.setattribute("aria-live","off"),r.innerhtml=''+(0,s.secondstotimecode)(0,e.options.alwaysshowhours,e.options.showtimecodeframecount,e.options.framespersecond,e.options.secondsdecimallength,e.options.timeformat)+"",i.addcontrolelement(r,"current"),e.updatecurrent(),i.updatetimecallback=function(){i.controlsarevisible&&e.updatecurrent()},o.addeventlistener("timeupdate",i.updatetimecallback)},cleancurrent:function(e,t,n,o){o.removeeventlistener("timeupdate",e.updatetimecallback)},buildduration:function(e,t,n,o){var i=this;if(t.lastchild.queryselector("."+i.options.classprefix+"currenttime"))t.queryselector("."+i.options.classprefix+"time").innerhtml+=i.options.timeanddurationseparator+''+(0,s.secondstotimecode)(i.options.duration,i.options.alwaysshowhours,i.options.showtimecodeframecount,i.options.framespersecond,i.options.secondsdecimallength,i.options.timeformat)+"";else{t.queryselector("."+i.options.classprefix+"currenttime")&&(0,l.addclass)(t.queryselector("."+i.options.classprefix+"currenttime").parentnode,i.options.classprefix+"currenttime-container");var r=a.default.createelement("div");r.classname=i.options.classprefix+"time "+i.options.classprefix+"duration-container",r.innerhtml=''+(0,s.secondstotimecode)(i.options.duration,i.options.alwaysshowhours,i.options.showtimecodeframecount,i.options.framespersecond,i.options.secondsdecimallength,i.options.timeformat)+"",i.addcontrolelement(r,"duration")}i.updatedurationcallback=function(){i.controlsarevisible&&e.updateduration()},o.addeventlistener("timeupdate",i.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);5',o.captions.style.display="none",t.insertbefore(o.captions,t.firstchild),o.captionstext=o.captions.queryselector("."+i.options.classprefix+"captions-text"),o.captionsbutton=l.default.createelement("div"),o.captionsbutton.classname=i.options.classprefix+"button "+i.options.classprefix+"captions-button",o.captionsbutton.innerhtml='
",i.addcontrolelement(o.captionsbutton,"tracks"),o.captionsbutton.queryselector("."+i.options.classprefix+"captions-selector-input").disabled=!1,o.chaptersbutton=l.default.createelement("div"),o.chaptersbutton.classname=i.options.classprefix+"button "+i.options.classprefix+"chapters-button",o.chaptersbutton.innerhtml='
    ';for(var u=0,c=0;c"},checkfortracks:function(){var e=this,t=!1;if(e.options.hidecaptionsbuttonwhenempty){for(var n=0,o=e.tracks.length;n";for(var o=r.chaptersbutton.queryselectorall('input[type="radio"]'),i=r.chaptersbutton.queryselectorall("."+r.options.classprefix+"chapters-selector-label"),a=0,s=o.length;a>1].start,a=e[i].stop,r<=t&&t ((?:[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$1"),n.push({identifier:r,start:0===(0,m.convertsmptetoseconds)(o[1])?.2:(0,m.convertsmptetoseconds)(o[1]),stop:(0,m.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(f)}return i}}}},{16:16,2:2,26:26,27:27,30:30,5:5,7:7}],14:[function(e,t,n){"use strict";var x=r(e(2)),o=e(16),i=r(o),w=r(e(5)),p=e(25),t=e(27),c=e(26);function r(e){return e&&e.__esmodule?e:{default:e}}object.assign(o.config,{mutetext:null,unmutetext:null,allyvolumecontroltext:null,hidevolumeontouchdevices:!0,audiovolume:"horizontal",videovolume:"vertical",startvolume:.8}),object.assign(i.default.prototype,{buildvolume:function(e,t,n,o){if(!p.is_android&&!p.is_ios||!this.options.hidevolumeontouchdevices){var a=this,s=a.isvideo?a.options.videovolume:a.options.audiovolume,r=(0,t.isstring)(a.options.mutetext)?a.options.mutetext:w.default.t("mejs.mute"),l=(0,t.isstring)(a.options.unmutetext)?a.options.unmutetext:w.default.t("mejs.unmute"),i=(0,t.isstring)(a.options.allyvolumecontroltext)?a.options.allyvolumecontroltext:w.default.t("mejs.volume-help-text"),d=x.default.createelement("div");if(d.classname=a.options.classprefix+"button "+a.options.classprefix+"volume-button "+a.options.classprefix+"mute",d.innerhtml="horizontal"===s?'':''+i+'
    ',a.addcontrolelement(d,"volume"),a.options.keyactions.push({keys:[38],action:function(e){var t=e.getelement(e.container).queryselector("."+a.options.classprefix+"volume-slider");t&&t.matches(":focus")&&(t.style.display="block"),e.isvideo&&(e.showcontrols(),e.startcontrolstimer());var n=math.min(e.volume+.1,1);e.setvolume(n),0'+i+'
    ',d.parentnode.insertbefore(u,d.nextsibling)}var c=!1,f=!1,p=!1,m="vertical"===s?a.getelement(a.container).queryselector("."+a.options.classprefix+"volume-slider"):a.getelement(a.container).queryselector("."+a.options.classprefix+"horizontal-volume-slider"),h="vertical"===s?a.getelement(a.container).queryselector("."+a.options.classprefix+"volume-total"):a.getelement(a.container).queryselector("."+a.options.classprefix+"horizontal-volume-total"),v="vertical"===s?a.getelement(a.container).queryselector("."+a.options.classprefix+"volume-current"):a.getelement(a.container).queryselector("."+a.options.classprefix+"horizontal-volume-current"),g="vertical"===s?a.getelement(a.container).queryselector("."+a.options.classprefix+"volume-handle"):a.getelement(a.container).queryselector("."+a.options.classprefix+"horizontal-volume-handle"),y=function(e){if(null!==e&&!isnan(e)&&void 0!==e){if(e=math.max(0,e),0===(e=math.min(e,1))){(0,c.removeclass)(d,a.options.classprefix+"mute"),(0,c.addclass)(d,a.options.classprefix+"unmute");var t=d.firstelementchild;t.setattribute("title",l),t.setattribute("aria-label",l)}else{(0,c.removeclass)(d,a.options.classprefix+"unmute"),(0,c.addclass)(d,a.options.classprefix+"mute");var n=d.firstelementchild;n.setattribute("title",r),n.setattribute("aria-label",r)}var o=100*e+"%",i=getcomputedstyle(g);"vertical"===s?(v.style.bottom=0,v.style.height=o,g.style.bottom=o,g.style.marginbottom=-parsefloat(i.height)/2+"px"):(v.style.left=0,v.style.width=o,g.style.left=o,g.style.marginleft=-parsefloat(i.width)/2+"px")}},e=function(e){var t=(0,c.offset)(h),n=getcomputedstyle(h);p=!0;var o=null;if("vertical"===s){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),y(o),a.setmuted(0===o),a.setvolume(o),e.preventdefault(),e.stoppropagation()},b=function(){a.muted?(y(0),(0,c.removeclass)(d,a.options.classprefix+"mute"),(0,c.addclass)(d,a.options.classprefix+"unmute")):(y(o.volume),(0,c.removeclass)(d,a.options.classprefix+"unmute"),(0,c.addclass)(d,a.options.classprefix+"mute"))};e.getelement(e.container).addeventlistener("keydown",function(e){!!e.target.closest("."+a.options.classprefix+"container")||"vertical"!==s||(m.style.display="none")}),d.addeventlistener("mouseenter",function(e){e.target===d&&(m.style.display="block",f=!0,e.preventdefault(),e.stoppropagation())}),d.addeventlistener("focusin",function(){m.style.display="block",f=!0}),d.addeventlistener("focusout",function(e){e.relatedtarget&&(!e.relatedtarget||e.relatedtarget.matches("."+a.options.classprefix+"volume-slider"))||"vertical"!==s||(m.style.display="none")}),d.addeventlistener("mouseleave",function(){f=!1,c||"vertical"!==s||(m.style.display="none")}),d.addeventlistener("focusout",function(){f=!1}),d.addeventlistener("keydown",function(e){if(a.options.enablekeyboard&&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}c=!1,y(n),o.setvolume(n),e.preventdefault(),e.stoppropagation()}}),d.queryselector("button").addeventlistener("click",function(){o.setmuted(!o.muted);var e=(0,t.createevent)("volumechange",o);o.dispatchevent(e)}),m.addeventlistener("dragstart",function(){return!1}),m.addeventlistener("mouseover",function(){f=!0}),m.addeventlistener("focusin",function(){m.style.display="block",f=!0}),m.addeventlistener("focusout",function(){f=!1,c||"vertical"!==s||(m.style.display="none")}),m.addeventlistener("mousedown",function(e){e(e),a.globalbind("mousemove.vol",function(e){var t=e.target;c&&(t===m||t.closest("vertical"===s?"."+a.options.classprefix+"volume-slider":"."+a.options.classprefix+"horizontal-volume-slider"))&&e(e)}),a.globalbind("mouseup.vol",function(){c=!1,f||"vertical"!==s||(m.style.display="none")}),c=!0,e.preventdefault(),e.stoppropagation()}),o.addeventlistener("volumechange",function(e){var t;c||b(),t=math.floor(100*o.volume),m.setattribute("aria-valuenow",t),m.setattribute("aria-valuetext",t+"%")});var s=!1;o.addeventlistener("rendererready",function(){p||settimeout(function(){s=!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(){p||s||((0===e.options.startvolume||o.originalnode.muted)&&o.setmuted(!0),o.setvolume(e.options.startvolume),a.setcontrolssize()),s=!1},250)}),(0===e.options.startvolume||o.originalnode.muted)&&(o.setmuted(!0),e.options.startvolume=0,b()),a.getelement(a.container).addeventlistener("controlsresize",function(){b()})}}})},{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";object.defineproperty(n,"__esmodule",{value:!0}),n.config=void 0;var i="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},o=function(){function o(e,t){for(var n=0;n
    ',n.getelement(n.container).addeventlistener("focus",function(e){if(!n.controlsarevisible&&!n.hasfocus&&n.controlsenabled){n.showcontrols(!0);var t=(0,m.isnodeafter)(e.relatedtarget,n.getelement(n.container))?"."+n.options.classprefix+"controls ."+n.options.classprefix+"button:last-child > button":"."+n.options.classprefix+"playpause-button > button";n.getelement(n.container).queryselector(t).focus()}}),n.node.parentnode.insertbefore(n.getelement(n.container),n.node),n.options.features.length||n.options.usedefaultcontrols||(n.getelement(n.container).style.background="transparent",n.getelement(n.container).queryselector("."+n.options.classprefix+"controls").style.display="none"),n.isvideo&&"fill"===n.options.stretching&&!p.hasclass(n.getelement(n.container).parentnode,n.options.classprefix+"fill-container")){n.outercontainer=n.media.parentnode;var r=x.default.createelement("div");r.classname=n.options.classprefix+"fill-container",n.getelement(n.container).parentnode.insertbefore(r,n.getelement(n.container)),r.appendchild(n.getelement(n.container))}w.is_android&&p.addclass(n.getelement(n.container),n.options.classprefix+"android"),w.is_ios&&p.addclass(n.getelement(n.container),n.options.classprefix+"ios"),w.is_ipad&&p.addclass(n.getelement(n.container),n.options.classprefix+"ipad"),w.is_iphone&&p.addclass(n.getelement(n.container),n.options.classprefix+"iphone"),p.addclass(n.getelement(n.container),n.isvideo?n.options.classprefix+"video":n.options.classprefix+"audio"),n.getelement(n.container).queryselector("."+n.options.classprefix+"mediaelement").appendchild(n.node),(n.media.player=n).controls=n.getelement(n.container).queryselector("."+n.options.classprefix+"controls"),n.layers=n.getelement(n.container).queryselector("."+n.options.classprefix+"layers");var a=n.isvideo?"video":"audio",s=a.substring(0,1).touppercase()+a.substring(1);0=n.width?n.width/n.height:n.height/n.width,n.setplayersize(n.width,n.height),e.pluginwidth=n.width,e.pluginheight=n.height}if(f.default.mepdefaults=e,new d.default(n.media,e,n.mediafiles),void 0!==n.getelement(n.container)&&n.options.features.length&&n.controlsarevisible&&!n.options.hidevideocontrolsonload){var l=(0,m.createevent)("controlsshown",n.getelement(n.container));n.getelement(n.container).dispatchevent(l)}}},{key:"showcontrols",value:function(e){var i=this;if(e=void 0===e||e,!i.controlsarevisible&&i.isvideo){if(e)!function(){p.fadein(i.getelement(i.controls),200,function(){p.removeclass(i.getelement(i.controls),i.options.classprefix+"offscreen");var e=(0,m.createevent)("controlsshown",i.getelement(i.container));i.getelement(i.container).dispatchevent(e)});for(var n=i.getelement(i.container).queryselectorall("."+i.options.classprefix+"control"),e=function(e,t){p.fadein(n[e],200,function(){p.removeclass(n[e],i.options.classprefix+"offscreen")})},t=0,o=n.length;t'),e.message&&(a="

    "+e.message+"

    "),e.urls)for(var d=0,u=e.urls.length;d'+f.default.i18n.t("mejs.download-file")+": "+c.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,o=this,t=function(){for(var t=void 0,n=o.getelement(o.container);n;){try{if(w.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&&p.visible(t))return t;n=t}return null}(),n=t?getcomputedstyle(t,null):getcomputedstyle(x.default.body,null),i=o.isvideo?o.node.videowidth&&0=o.width?o.node.videowidth/o.node.videoheight:o.node.videoheight/o.node.videowidth:o.initialaspectratio,(isnan(e)||e<.01||100=o.width?parsefloat(d/a,10):parsefloat(d*a,10):r,isnan(l)&&(l=s),0img");a&&(a.style.display="");for(var s=e.getelement(e.container).queryselectorall("object, embed, iframe, video"),l=e.height,d=e.width,u=i,c=l*i/d,f=d*r/l,p=r,m=i',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||w.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")||t.options.poster||"function"==typeof i.media.renderer.getposterurl&&i.media.renderer.getposterurl())||w.is_stock_android||i.media.originalnode.getattribute("autoplay"))&&(s.style.display="none");var l=!1;o.addeventlistener("play",function(){s.style.display="none",r.style.display="none",a.style.display="none",l=!1}),o.addeventlistener("playing",function(){s.style.display="none",r.style.display="none",a.style.display="none",l=!1}),o.addeventlistener("seeking",function(){s.style.display="none",r.style.display="",l=!1}),o.addeventlistener("seeked",function(){s.style.display=i.paused&&!w.is_stock_android?"":"none",r.style.display="none",l=!1}),o.addeventlistener("pause",function(){r.style.display="none",w.is_stock_android||l||(s.style.display=""),l=!1}),o.addeventlistener("waiting",function(){r.style.display="",l=!1}),o.addeventlistener("loadeddata",function(){r.style.display="",w.is_android&&(o.canplaytimeout=settimeout(function(){if(x.default.createevent){var e=x.default.createevent("htmlevents");return e.initevent("canplay",!0,!0),o.dispatchevent(e)}},300)),l=!1}),o.addeventlistener("canplay",function(){r.style.display="none",cleartimeout(o.canplaytimeout),l=!1}),o.addeventlistener("error",function(e){i._handleerror(e,i.media,i.node),r.style.display="none",s.style.display="none",l=!0}),o.addeventlistener("loadedmetadata",function(){i.controlsenabled||i.enablecontrols()}),o.addeventlistener("keydown",function(e){i.onkeydown(t,o,e),l=!1})}}},{key:"buildkeyboard",value:function(o,e,t,i){var r=this;r.getelement(r.container).addeventlistener("keydown",function(){r.keyboardaction=!0}),r.globalkeydowncallback=function(e){var t=x.default.activeelement.closest("."+r.options.classprefix+"container"),n=r.media.closest("."+r.options.classprefix+"container");return r.hasfocus=!(!t||!n||t.id!==n.id),r.onkeydown(o,i,e)},r.globalclickcallback=function(e){r.hasfocus=!!e.target.closest("."+r.options.classprefix+"container")},r.globalbind("keydown",r.globalkeydowncallback),r.globalbind("click",r.globalclickcallback)}},{key:"onkeydown",value:function(e,t,n){if(e.hasfocus&&e.options.enablekeyboard)for(var o=0,i=e.options.keyactions.length;oimg");(e&&l.node.setattribute("poster",e.src),delete l.node.autoplay,l.node.setattribute("src",""),""!==l.media.canplaytype((0,p.gettypefromfile)(u))&&l.node.setattribute("src",u),d&&-1t[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){r.plugins[e]=r.detectplugin(t,n,o,i)},detectplugin:function(e,t,n,o){var i=[0,0,0],r=void 0,a=void 0;if(null!==f.nav.plugins&&void 0!==f.nav.plugins&&"object"===d(f.nav.plugins[e])){if((r=f.nav.plugins[e].description)&&(void 0===f.nav.mimetypes||!f.nav.mimetypes[t]||f.nav.mimetypes[t].enabledplugin))for(var s=0,l=(i=r.replace(e,"").replace(/^\s+/,"").replace(/\sr/gi,".").split(".")).length;s
    '+n.default.t("mejs.install-flash")+"
    "}else x=['id="__'+r.id+'"','name="__'+r.id+'"','play="true"','loop="false"','quality="high"','bgcolor="#000000"','wmode="transparent"','allowscriptaccess="'+r.options.shimscriptaccess+'"','allowfullscreen="true"','type="application/x-shockwave-flash"','pluginspage="//www.macromedia.com/go/getflashplayer"','src="'+r.options.pluginpath+r.options.filename+'"','flashvars="'+y.join("&")+'"'],e?(x.push('width="'+s+'"'),x.push('height="'+b+'"')):x.push('style="position: fixed; left: -9999em; top: -9999em;"'),r.flashwrapper.innerhtml="";if(r.flashnode=r.flashwrapper.lastchild,r.hide=function(){o=!1,e&&(r.flashnode.style.display="none")},r.show=function(){o=!0,e&&(r.flashnode.style.display="")},r.setsize=function(e,t){r.flashnode.style.width=e+"px",r.flashnode.style.height=t+"px",null!==r.flashapi&&"function"==typeof r.flashapi.fire_setsize&&r.flashapi.fire_setsize(e,t)},r.destroy=function(){r.flashnode.remove()},n&&0":">",'"':"""};return e.replace(/[&<>"]/g,function(e){return t[e]})}function s(o,i){var r=this,a=arguments,s=2x',t.firstchild.href}function d(e){var t=1