/* MediaElement.js HTML5 and shim and player http://mediaelementjs.com/ Creates a JavaScript object that mimics HTML5 MediaElement API for browsers that don't understand HTML5 or can't play the provided codec Can play MP4 (H.264), Ogg, WebM, FLV, WMV, WMA, ACC, and MP3 Copyright 2010-2014, John Dyer (http://j.hn) License: MIT MediaElementPlayer http://mediaelementjs.com/ Creates a controller bar for HTML5 add tags using jQuery and MediaElement.js (HTML5 Flash/Silverlight wrapper) Copyright 2010-2013, John Dyer (http://j.hn/) License: MIT */ (function(modules){var installedModules={};function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={exports:{},id:moduleId,loaded:false};modules[moduleId].call(module.exports,module,module.exports,__webpack_require__);module.loaded=true;return module.exports}__webpack_require__.m=modules;__webpack_require__.c=installedModules;__webpack_require__.p="../";return __webpack_require__(0)})({0:function(module,exports, __webpack_require__){__webpack_require__(14);__webpack_require__(15);__webpack_require__(16);__webpack_require__(1);__webpack_require__(17);__webpack_require__(30)},1:function(module,exports,__webpack_require__){},14:function(module,exports,__webpack_require__){var mejs=mejs||{};mejs.version="2.17.0";mejs.meIndex=0;mejs.plugins={silverlight:[{version:[3,0],types:["video/mp4","video/m4v","video/mov","video/wmv","audio/wma","audio/m4a","audio/mp3","audio/wav","audio/mpeg"]}],flash:[{version:[9,0,124], types:["video/mp4","video/m4v","video/mov","video/flv","video/rtmp","video/x-flv","audio/flv","audio/x-flv","audio/mp3","audio/m4a","audio/mpeg","video/youtube","video/x-youtube","video/dailymotion","video/x-dailymotion","application/x-mpegURL"]}],youtube:[{version:null,types:["video/youtube","video/x-youtube","audio/youtube","audio/x-youtube"]}],vimeo:[{version:null,types:["video/vimeo","video/x-vimeo"]}]};mejs.Utility={encodeUrl:function(url){return encodeURIComponent(url)},escapeHTML:function(s){return s.toString().split("\x26").join("\x26amp;").split("\x3c").join("\x26lt;").split('"').join("\x26quot;")}, absolutizeUrl:function(url){var el=document.createElement("div");el.innerHTML='\x3ca href\x3d"'+this.escapeHTML(url)+'"\x3ex\x3c/a\x3e';return el.firstChild.href},getScriptPath:function(scriptNames){var i=0,j,codePath="",testname="",slashPos,filenamePos,scriptUrl,scriptPath,scriptFilename,scripts=document.getElementsByTagName("script"),il=scripts.length,jl=scriptNames.length;for(;i-1){scriptFilename=scriptUrl.substring(slashPos+ 1);scriptPath=scriptUrl.substring(0,slashPos+1)}else{scriptFilename=scriptUrl;scriptPath=""}for(j=0;j-1){codePath=scriptPath;break}}if(codePath!=="")break}return codePath},secondsToTimeCode:function(time,forceHours,showFrameCount,fps){if(typeof showFrameCount=="undefined")showFrameCount=false;else if(typeof fps=="undefined")fps=25;var hours=Math.floor(time/3600)%24,minutes=Math.floor(time/60)%60,seconds=Math.floor(time% 60),frames=Math.floor((time%1*fps).toFixed(3)),result=(forceHours||hours>0?(hours<10?"0"+hours:hours)+":":"")+(minutes<10?"0"+minutes:minutes)+":"+(seconds<10?"0"+seconds:seconds)+(showFrameCount?":"+(frames<10?"0"+frames:frames):"");return result},timeCodeToSeconds:function(hh_mm_ss_ff,forceHours,showFrameCount,fps){if(typeof showFrameCount=="undefined")showFrameCount=false;else if(typeof fps=="undefined")fps=25;var tc_array=hh_mm_ss_ff.split(":"),tc_hh=parseInt(tc_array[0],10),tc_mm=parseInt(tc_array[1], 10),tc_ss=parseInt(tc_array[2],10),tc_ff=0,tc_in_seconds=0;if(showFrameCount)tc_ff=parseInt(tc_array[3])/fps;tc_in_seconds=tc_hh*3600+tc_mm*60+tc_ss+tc_ff;return tc_in_seconds},convertSMPTEtoSeconds:function(SMPTE){if(typeof SMPTE!="string")return false;SMPTE=SMPTE.replace(",",".");var secs=0,decimalLen=SMPTE.indexOf(".")!=-1?SMPTE.split(".")[1].length:0,multiplier=1;SMPTE=SMPTE.split(":").reverse();for(var i=0;i0)multiplier=Math.pow(60,i);secs+=Number(SMPTE[i])* multiplier}return Number(secs.toFixed(decimalLen))},removeSwf:function(id){var obj=document.getElementById(id);if(obj&&/object|embed/i.test(obj.nodeName))if(mejs.MediaFeatures.isIE){obj.style.display="none";(function(){if(obj.readyState==4)mejs.Utility.removeObjectInIE(id);else setTimeout(arguments.callee,10)})()}else obj.parentNode.removeChild(obj)},removeObjectInIE:function(id){var obj=document.getElementById(id);if(obj){for(var i in obj)if(typeof obj[i]=="function")obj[i]=null;obj.parentNode.removeChild(obj)}}}; mejs.PluginDetector={hasPluginVersion:function(plugin,v){var pv=this.plugins[plugin];v[1]=v[1]||0;v[2]=v[2]||0;return pv[0]>v[0]||pv[0]==v[0]&&pv[1]>v[1]||pv[0]==v[0]&&pv[1]==v[1]&&pv[2]>=v[2]?true:false},nav:window.navigator,ua:window.navigator.userAgent.toLowerCase(),plugins:[],addPlugin:function(p,pluginName,mimeType,activeX,axDetect){this.plugins[p]=this.detectPlugin(pluginName,mimeType,activeX,axDetect)},detectPlugin:function(pluginName,mimeType,activeX,axDetect){var version=[0,0,0],description, i,ax;if(typeof this.nav.plugins!="undefined"&&typeof this.nav.plugins[pluginName]=="object"){description=this.nav.plugins[pluginName].description;if(description&&!(typeof this.nav.mimeTypes!="undefined"&&this.nav.mimeTypes[mimeType]&&!this.nav.mimeTypes[mimeType].enabledPlugin)){version=description.replace(pluginName,"").replace(/^\s+/,"").replace(/\sr/gi,".").split(".");for(i=0;i0)this.removeChild(existingSources[0]);if(typeof url=="string")this.src=url;else{var i,media;for(i=0;i0&&mediaFiles[0].url!==null&&this.getTypeFromFile(mediaFiles[0].url).indexOf("audio")>-1)result.isVideo=false;if(mejs.MediaFeatures.isBustedAndroid)htmlMediaElement.canPlayType=function(type){return type.match(/video\/(mp4|m4v)/gi)!== null?"maybe":""};if(mejs.MediaFeatures.isChromium)htmlMediaElement.canPlayType=function(type){return type.match(/video\/(webm|ogv|ogg)/gi)!==null?"maybe":""};if(supportsMediaTag&&(options.mode==="auto"||options.mode==="auto_plugin"||options.mode==="native")&&!(mejs.MediaFeatures.isBustedNativeHTTPS&&options.httpsBasicAuthSite===true)){if(!isMediaTag){dummy=document.createElement(result.isVideo?"video":"audio");htmlMediaElement.parentNode.insertBefore(dummy,htmlMediaElement);htmlMediaElement.style.display= "none";result.htmlMediaElement=htmlMediaElement=dummy}for(i=0;i0)result.url=mediaFiles[0].url;return result},formatType:function(url,type){var ext;if(url&&!type)return this.getTypeFromFile(url);else if(type&&~type.indexOf(";"))return type.substr(0,type.indexOf(";"));else return type},getTypeFromFile:function(url){url=url.split("?")[0];var ext=url.substring(url.lastIndexOf(".")+ 1).toLowerCase();return(/(mp4|m4v|ogg|ogv|m3u8|webm|webmv|flv|wmv|mpeg|mov)/gi.test(ext)?"video":"audio")+"/"+this.getTypeFromExtension(ext)},getTypeFromExtension:function(ext){switch(ext){case "mp4":case "m4v":case "m4a":return"mp4";case "webm":case "webma":case "webmv":return"webm";case "ogg":case "oga":case "ogv":return"ogg";default:return ext}},createErrorMessage:function(playback,options,poster){var htmlMediaElement=playback.htmlMediaElement,errorContainer=document.createElement("div");errorContainer.className= "me-cannotplay";try{errorContainer.style.width=htmlMediaElement.width+"px";errorContainer.style.height=htmlMediaElement.height+"px"}catch(e){}if(options.customError)errorContainer.innerHTML=options.customError;else errorContainer.innerHTML=poster!==""?'\x3ca href\x3d"'+playback.url+'"\x3e\x3cimg src\x3d"'+poster+'" width\x3d"100%" height\x3d"100%" /\x3e\x3c/a\x3e':'\x3ca href\x3d"'+playback.url+'"\x3e\x3cspan\x3e'+mejs.i18n.t("Download File")+"\x3c/span\x3e\x3c/a\x3e";htmlMediaElement.parentNode.insertBefore(errorContainer, htmlMediaElement);htmlMediaElement.style.display="none";options.error(htmlMediaElement)},createPlugin:function(playback,options,poster,autoplay,preload,controls){var htmlMediaElement=playback.htmlMediaElement,width=1,height=1,pluginid="me_"+playback.method+"_"+mejs.meIndex++,pluginMediaElement=new mejs.PluginMediaElement(pluginid,playback.method,playback.url),container=document.createElement("div"),specialIEContainer,node,initVars;pluginMediaElement.tagName=htmlMediaElement.tagName;for(var i=0;i< htmlMediaElement.attributes.length;i++){var attribute=htmlMediaElement.attributes[i];if(attribute.specified==true)pluginMediaElement.setAttribute(attribute.name,attribute.value)}node=htmlMediaElement.parentNode;while(node!==null&&node.tagName!=null&&node.tagName.toLowerCase()!=="body"&&node.parentNode!=null&&node.parentNode.tagName!=null&&node.parentNode.constructor!=null&&node.parentNode.constructor.name==="ShadowRoot"){if(node.parentNode.tagName.toLowerCase()==="p"){node.parentNode.parentNode.insertBefore(node, node.parentNode);break}node=node.parentNode}if(playback.isVideo){width=options.pluginWidth>0?options.pluginWidth:options.videoWidth>0?options.videoWidth:htmlMediaElement.getAttribute("width")!==null?htmlMediaElement.getAttribute("width"):options.defaultVideoWidth;height=options.pluginHeight>0?options.pluginHeight:options.videoHeight>0?options.videoHeight:htmlMediaElement.getAttribute("height")!==null?htmlMediaElement.getAttribute("height"):options.defaultVideoHeight;width=mejs.Utility.encodeUrl(width); height=mejs.Utility.encodeUrl(height)}else if(options.enablePluginDebug){width=320;height=240}pluginMediaElement.success=options.success;mejs.MediaPluginBridge.registerPluginElement(pluginid,pluginMediaElement,htmlMediaElement);container.className="me-plugin";container.id=pluginid+"_container";if(playback.isVideo)htmlMediaElement.parentNode.insertBefore(container,htmlMediaElement);else document.body.insertBefore(container,document.body.childNodes[0]);initVars=["id\x3d"+pluginid,"jsinitfunction\x3d"+ "mejs.MediaPluginBridge.initPlugin","jscallbackfunction\x3d"+"mejs.MediaPluginBridge.fireEvent","isvideo\x3d"+(playback.isVideo?"true":"false"),"autoplay\x3d"+(autoplay?"true":"false"),"preload\x3d"+preload,"width\x3d"+width,"startvolume\x3d"+options.startVolume,"timerrate\x3d"+options.timerRate,"flashstreamer\x3d"+options.flashStreamer,"height\x3d"+height,"pseudostreamstart\x3d"+options.pseudoStreamingStartQueryParam];if(playback.url!==null)if(playback.method=="flash")initVars.push("file\x3d"+mejs.Utility.encodeUrl(playback.url)); else initVars.push("file\x3d"+playback.url);if(options.enablePluginDebug)initVars.push("debug\x3dtrue");if(options.enablePluginSmoothing)initVars.push("smoothing\x3dtrue");if(options.enablePseudoStreaming)initVars.push("pseudostreaming\x3dtrue");if(controls)initVars.push("controls\x3dtrue");if(options.pluginVars)initVars=initVars.concat(options.pluginVars);switch(playback.method){case "silverlight":container.innerHTML='\x3cobject data\x3d"data:application/x-silverlight-2," type\x3d"application/x-silverlight-2" id\x3d"'+ pluginid+'" name\x3d"'+pluginid+'" width\x3d"'+width+'" height\x3d"'+height+'" class\x3d"mejs-shim"\x3e'+'\x3cparam name\x3d"initParams" value\x3d"'+initVars.join(",")+'" /\x3e'+'\x3cparam name\x3d"windowless" value\x3d"true" /\x3e'+'\x3cparam name\x3d"background" value\x3d"black" /\x3e'+'\x3cparam name\x3d"minRuntimeVersion" value\x3d"3.0.0.0" /\x3e'+'\x3cparam name\x3d"autoUpgrade" value\x3d"true" /\x3e'+'\x3cparam name\x3d"source" value\x3d"'+options.pluginPath+options.silverlightName+'" /\x3e'+ "\x3c/object\x3e";break;case "flash":if(mejs.MediaFeatures.isIE){specialIEContainer=document.createElement("div");container.appendChild(specialIEContainer);specialIEContainer.outerHTML='\x3cobject classid\x3d"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase\x3d"//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" '+'id\x3d"'+pluginid+'" width\x3d"'+width+'" height\x3d"'+height+'" class\x3d"mejs-shim"\x3e'+'\x3cparam name\x3d"movie" value\x3d"'+options.pluginPath+options.flashName+"?x\x3d"+ new Date+'" /\x3e'+'\x3cparam name\x3d"flashvars" value\x3d"'+initVars.join("\x26amp;")+'" /\x3e'+'\x3cparam name\x3d"quality" value\x3d"high" /\x3e'+'\x3cparam name\x3d"bgcolor" value\x3d"#000000" /\x3e'+'\x3cparam name\x3d"wmode" value\x3d"transparent" /\x3e'+'\x3cparam name\x3d"allowScriptAccess" value\x3d"always" /\x3e'+'\x3cparam name\x3d"allowFullScreen" value\x3d"true" /\x3e'+'\x3cparam name\x3d"scale" value\x3d"default" /\x3e'+"\x3c/object\x3e"}else container.innerHTML='\x3cembed id\x3d"'+ pluginid+'" name\x3d"'+pluginid+'" '+'play\x3d"true" '+'loop\x3d"false" '+'quality\x3d"high" '+'bgcolor\x3d"#000000" '+'wmode\x3d"transparent" '+'allowScriptAccess\x3d"always" '+'allowFullScreen\x3d"true" '+'type\x3d"application/x-shockwave-flash" pluginspage\x3d"//www.macromedia.com/go/getflashplayer" '+'src\x3d"'+options.pluginPath+options.flashName+'" '+'flashvars\x3d"'+initVars.join("\x26")+'" '+'width\x3d"'+width+'" '+'height\x3d"'+height+'" '+'scale\x3d"default"'+'class\x3d"mejs-shim"\x3e\x3c/embed\x3e'; break;case "youtube":var videoId;if(playback.url.lastIndexOf("youtu.be")!=-1){videoId=playback.url.substr(playback.url.lastIndexOf("/")+1);if(videoId.indexOf("?")!=-1)videoId=videoId.substr(0,videoId.indexOf("?"))}else videoId=playback.url.substr(playback.url.lastIndexOf("\x3d")+1);youtubeSettings={container:container,containerId:container.id,pluginMediaElement:pluginMediaElement,pluginId:pluginid,videoId:videoId,height:height,width:width};if(mejs.PluginDetector.hasPluginVersion("flash",[10,0,0]))mejs.YouTubeApi.createFlash(youtubeSettings); else mejs.YouTubeApi.enqueueIframe(youtubeSettings);break;case "vimeo":var player_id=pluginid+"_player";pluginMediaElement.vimeoid=playback.url.substr(playback.url.lastIndexOf("/")+1);container.innerHTML='\x3ciframe src\x3d"//player.vimeo.com/video/'+pluginMediaElement.vimeoid+"?api\x3d1\x26portrait\x3d0\x26byline\x3d0\x26title\x3d0\x26player_id\x3d"+player_id+'" width\x3d"'+width+'" height\x3d"'+height+'" frameborder\x3d"0" class\x3d"mejs-shim" id\x3d"'+player_id+'" webkitallowfullscreen mozallowfullscreen allowfullscreen\x3e\x3c/iframe\x3e'; if(typeof $f=="function"){var player=$f(container.childNodes[0]);player.addEvent("ready",function(){player.playVideo=function(){player.api("play")};player.stopVideo=function(){player.api("unload")};player.pauseVideo=function(){player.api("pause")};player.seekTo=function(seconds){player.api("seekTo",seconds)};player.setVolume=function(volume){player.api("setVolume",volume)};player.setMuted=function(muted){if(muted){player.lastVolume=player.api("getVolume");player.api("setVolume",0)}else{player.api("setVolume", player.lastVolume);delete player.lastVolume}};function createEvent(player,pluginMediaElement,eventName,e){var obj={type:eventName,target:pluginMediaElement};if(eventName=="timeupdate"){pluginMediaElement.currentTime=obj.currentTime=e.seconds;pluginMediaElement.duration=obj.duration=e.duration}pluginMediaElement.dispatchEvent(obj.type,obj)}player.addEvent("play",function(){createEvent(player,pluginMediaElement,"play");createEvent(player,pluginMediaElement,"playing")});player.addEvent("pause",function(){createEvent(player, pluginMediaElement,"pause")});player.addEvent("finish",function(){createEvent(player,pluginMediaElement,"ended")});player.addEvent("playProgress",function(e){createEvent(player,pluginMediaElement,"timeupdate",e)});pluginMediaElement.pluginElement=container;pluginMediaElement.pluginApi=player;mejs.MediaPluginBridge.initPlugin(pluginid)})}else console.warn("You need to include froogaloop for vimeo to work");break}htmlMediaElement.style.display="none";htmlMediaElement.removeAttribute("autoplay");return pluginMediaElement}, updateNative:function(playback,options,autoplay,preload){var htmlMediaElement=playback.htmlMediaElement,m;for(m in mejs.HtmlMediaElement)htmlMediaElement[m]=mejs.HtmlMediaElement[m];options.success(htmlMediaElement,htmlMediaElement);return htmlMediaElement}};mejs.YouTubeApi={isIframeStarted:false,isIframeLoaded:false,loadIframeApi:function(){if(!this.isIframeStarted){var tag=document.createElement("script");tag.src="//www.youtube.com/player_api";var firstScriptTag=document.getElementsByTagName("script")[0]; firstScriptTag.parentNode.insertBefore(tag,firstScriptTag);this.isIframeStarted=true}},iframeQueue:[],enqueueIframe:function(yt){if(this.isLoaded)this.createIframe(yt);else{this.loadIframeApi();this.iframeQueue.push(yt)}},createIframe:function(settings){var pluginMediaElement=settings.pluginMediaElement,player=new YT.Player(settings.containerId,{height:settings.height,width:settings.width,videoId:settings.videoId,playerVars:{controls:0},events:{"onReady":function(){settings.pluginMediaElement.pluginApi= player;mejs.MediaPluginBridge.initPlugin(settings.pluginId);setInterval(function(){mejs.YouTubeApi.createEvent(player,pluginMediaElement,"timeupdate")},250)},"onStateChange":function(e){mejs.YouTubeApi.handleStateChange(e.data,player,pluginMediaElement)}}})},createEvent:function(player,pluginMediaElement,eventName){var obj={type:eventName,target:pluginMediaElement};if(player&&player.getDuration){pluginMediaElement.currentTime=obj.currentTime=player.getCurrentTime();pluginMediaElement.duration=obj.duration= player.getDuration();obj.paused=pluginMediaElement.paused;obj.ended=pluginMediaElement.ended;obj.muted=player.isMuted();obj.volume=player.getVolume()/100;obj.bytesTotal=player.getVideoBytesTotal();obj.bufferedBytes=player.getVideoBytesLoaded();var bufferedTime=obj.bufferedBytes/obj.bytesTotal*obj.duration;obj.target.buffered=obj.buffered={start:function(index){return 0},end:function(index){return bufferedTime},length:1}}pluginMediaElement.dispatchEvent(obj.type,obj)},iFrameReady:function(){this.isLoaded= true;this.isIframeLoaded=true;while(this.iframeQueue.length>0){var settings=this.iframeQueue.pop();this.createIframe(settings)}},flashPlayers:{},createFlash:function(settings){this.flashPlayers[settings.pluginId]=settings;var specialIEContainer,youtubeUrl="//www.youtube.com/apiplayer?enablejsapi\x3d1\x26amp;playerapiid\x3d"+settings.pluginId+"\x26amp;version\x3d3\x26amp;autoplay\x3d0\x26amp;controls\x3d0\x26amp;modestbranding\x3d1\x26loop\x3d0";if(mejs.MediaFeatures.isIE){specialIEContainer=document.createElement("div"); settings.container.appendChild(specialIEContainer);specialIEContainer.outerHTML='\x3cobject classid\x3d"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase\x3d"//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" '+'id\x3d"'+settings.pluginId+'" width\x3d"'+settings.width+'" height\x3d"'+settings.height+'" class\x3d"mejs-shim"\x3e'+'\x3cparam name\x3d"movie" value\x3d"'+youtubeUrl+'" /\x3e'+'\x3cparam name\x3d"wmode" value\x3d"transparent" /\x3e'+'\x3cparam name\x3d"allowScriptAccess" value\x3d"always" /\x3e'+ '\x3cparam name\x3d"allowFullScreen" value\x3d"true" /\x3e'+"\x3c/object\x3e"}else settings.container.innerHTML='\x3cobject type\x3d"application/x-shockwave-flash" id\x3d"'+settings.pluginId+'" data\x3d"'+youtubeUrl+'" '+'width\x3d"'+settings.width+'" height\x3d"'+settings.height+'" style\x3d"visibility: visible; " class\x3d"mejs-shim"\x3e'+'\x3cparam name\x3d"allowScriptAccess" value\x3d"always"\x3e'+'\x3cparam name\x3d"wmode" value\x3d"transparent"\x3e'+"\x3c/object\x3e"},flashReady:function(id){var settings= this.flashPlayers[id],player=document.getElementById(id),pluginMediaElement=settings.pluginMediaElement;pluginMediaElement.pluginApi=pluginMediaElement.pluginElement=player;mejs.MediaPluginBridge.initPlugin(id);player.cueVideoById(settings.videoId);var callbackName=settings.containerId+"_callback";window[callbackName]=function(e){mejs.YouTubeApi.handleStateChange(e,player,pluginMediaElement)};player.addEventListener("onStateChange",callbackName);setInterval(function(){mejs.YouTubeApi.createEvent(player, pluginMediaElement,"timeupdate")},250);mejs.YouTubeApi.createEvent(player,pluginMediaElement,"canplay")},handleStateChange:function(youTubeState,player,pluginMediaElement){switch(youTubeState){case -1:pluginMediaElement.paused=true;pluginMediaElement.ended=true;mejs.YouTubeApi.createEvent(player,pluginMediaElement,"loadedmetadata");break;case 0:pluginMediaElement.paused=false;pluginMediaElement.ended=true;mejs.YouTubeApi.createEvent(player,pluginMediaElement,"ended");break;case 1:pluginMediaElement.paused= false;pluginMediaElement.ended=false;mejs.YouTubeApi.createEvent(player,pluginMediaElement,"play");mejs.YouTubeApi.createEvent(player,pluginMediaElement,"playing");break;case 2:pluginMediaElement.paused=true;pluginMediaElement.ended=false;mejs.YouTubeApi.createEvent(player,pluginMediaElement,"pause");break;case 3:mejs.YouTubeApi.createEvent(player,pluginMediaElement,"progress");break;case 5:break}}};function onYouTubePlayerAPIReady(){mejs.YouTubeApi.iFrameReady()}function onYouTubePlayerReady(id){mejs.YouTubeApi.flashReady(id)} (function(context,exports,undefined){var i18n={"locale":{"language":exports.i18n&&exports.i18n.locale.language||"","strings":exports.i18n&&exports.i18n.locale.strings||{}},"ietf_lang_regex":/^(x\-)?[a-z]{2,}(\-\w{2,})?(\-\w{2,})?$/,"methods":{}};i18n.getLanguage=function(){var language=i18n.locale.language||window.navigator.userLanguage||window.navigator.language;return i18n.ietf_lang_regex.exec(language)?language:null};if(typeof mejsL10n!="undefined")i18n.locale.language=mejsL10n.language;i18n.methods.checkPlain= function(str){var character,regex,replace={"\x26":"\x26amp;",'"':"\x26quot;","\x3c":"\x26lt;","\x3e":"\x26gt;"};str=String(str);for(character in replace)if(replace.hasOwnProperty(character)){regex=new RegExp(character,"g");str=str.replace(regex,replace[character])}return str};i18n.methods.t=function(str,options){if(i18n.locale.strings&&i18n.locale.strings[options.context]&&i18n.locale.strings[options.context][str])str=i18n.locale.strings[options.context][str];return i18n.methods.checkPlain(str)}; i18n.t=function(str,options){if(typeof str==="string"&&str.length>0){var language=i18n.getLanguage();options=options||{"context":language};return i18n.methods.t(str,options)}else throw{"name":"InvalidArgumentException","message":"First argument is either not a string or empty."};};exports.i18n=i18n})(document,mejs);(function(exports,undefined){if(typeof mejsL10n!="undefined")exports[mejsL10n.language]=mejsL10n.strings})(mejs.i18n.locale.strings);if(typeof jQuery!="undefined")mejs.$=jQuery;else if(typeof ender!= "undefined")mejs.$=ender;(function($){mejs.MepDefaults={poster:"",showPosterWhenEnded:false,defaultVideoWidth:480,defaultVideoHeight:270,videoWidth:-1,videoHeight:-1,defaultAudioWidth:400,defaultAudioHeight:30,defaultSeekBackwardInterval:function(media){return media.duration*.05},defaultSeekForwardInterval:function(media){return media.duration*.05},setDimensions:true,audioWidth:-1,audioHeight:-1,startVolume:.8,loop:false,autoRewind:true,enableAutosize:true,alwaysShowHours:false,showTimecodeFrameCount:false, framesPerSecond:25,autosizeProgress:true,alwaysShowControls:false,hideVideoControlsOnLoad:false,clickToPlayPause:true,iPadUseNativeControls:false,iPhoneUseNativeControls:false,AndroidUseNativeControls:false,features:["playpause","current","progress","duration","tracks","volume","fullscreen"],isVideo:true,enableKeyboard:true,pauseOtherPlayers:true,keyActions:[{keys:[32,179],action:function(player,media){if(media.paused||media.ended)player.play();else player.pause()}},{keys:[38],action:function(player, media){player.container.find(".mejs-volume-slider").css("display","block");if(player.isVideo){player.showControls();player.startControlsTimer()}var newVolume=Math.min(media.volume+.1,1);media.setVolume(newVolume)}},{keys:[40],action:function(player,media){player.container.find(".mejs-volume-slider").css("display","block");if(player.isVideo){player.showControls();player.startControlsTimer()}var newVolume=Math.max(media.volume-.1,0);media.setVolume(newVolume)}},{keys:[37,227],action:function(player, media){if(!isNaN(media.duration)&&media.duration>0){if(player.isVideo){player.showControls();player.startControlsTimer()}var newTime=Math.max(media.currentTime-player.options.defaultSeekBackwardInterval(media),0);media.setCurrentTime(newTime)}}},{keys:[39,228],action:function(player,media){if(!isNaN(media.duration)&&media.duration>0){if(player.isVideo){player.showControls();player.startControlsTimer()}var newTime=Math.min(media.currentTime+player.options.defaultSeekForwardInterval(media),media.duration); media.setCurrentTime(newTime)}}},{keys:[70],action:function(player,media){if(typeof player.enterFullScreen!="undefined")if(player.isFullScreen)player.exitFullScreen();else player.enterFullScreen()}},{keys:[77],action:function(player,media){player.container.find(".mejs-volume-slider").css("display","block");if(player.isVideo){player.showControls();player.startControlsTimer()}if(player.media.muted)player.setMuted(false);else player.setMuted(true)}}]};mejs.mepIndex=0;mejs.players={};mejs.MediaElementPlayer= function(node,o){if(!(this instanceof mejs.MediaElementPlayer))return new mejs.MediaElementPlayer(node,o);var t=this;t.$media=t.$node=$(node);t.node=t.media=t.$media[0];if(!t.node)return;if(typeof t.node.player!="undefined")return t.node.player;else t.node.player=t;if(typeof o=="undefined")o=t.$node.data("mejsoptions");t.options=$.extend({},mejs.MepDefaults,o);t.id="mep_"+mejs.mepIndex++;mejs.players[t.id]=t;t.init();return t};mejs.MediaElementPlayer.prototype={hasFocus:false,controlsAreVisible:true, init:function(){var t=this,mf=mejs.MediaFeatures,meOptions=$.extend(true,{},t.options,{success:function(media,domNode){t.meReady(media,domNode)},error:function(e){t.handleError(e)}}),tagName=t.media.tagName.toLowerCase();t.isDynamic=tagName!=="audio"&&tagName!=="video";if(t.isDynamic)t.isVideo=t.options.isVideo;else t.isVideo=tagName!=="audio"&&t.options.isVideo;if(mf.isiPad&&t.options.iPadUseNativeControls||mf.isiPhone&&t.options.iPhoneUseNativeControls){t.$media.attr("controls","controls");if(mf.isiPad&& t.media.getAttribute("autoplay")!==null)t.play()}else if(mf.isAndroid&&t.options.AndroidUseNativeControls);else{t.$media.removeAttr("controls");var videoPlayerTitle=t.isVideo?mejs.i18n.t("Video Player"):mejs.i18n.t("Audio Player");$('\x3cspan class\x3d"mejs-offscreen"\x3e'+videoPlayerTitle+"\x3c/span\x3e").insertBefore(t.$media);t.container=$('\x3cdiv id\x3d"'+t.id+'" class\x3d"mejs-container '+(mejs.MediaFeatures.svg?"svg":"no-svg")+'" tabindex\x3d"0" role\x3d"application" aria-label\x3d"'+videoPlayerTitle+ '"\x3e'+'\x3cdiv class\x3d"mejs-inner"\x3e'+'\x3cdiv class\x3d"mejs-mediaelement"\x3e\x3c/div\x3e'+'\x3cdiv class\x3d"mejs-layers"\x3e\x3c/div\x3e'+'\x3cdiv class\x3d"mejs-controls"\x3e\x3c/div\x3e'+'\x3cdiv class\x3d"mejs-clear"\x3e\x3c/div\x3e'+"\x3c/div\x3e"+"\x3c/div\x3e").addClass(t.$media[0].className).insertBefore(t.$media).focus(function(e){if(!t.controlsAreVisible){t.showControls(true);var playButton=t.container.find(".mejs-playpause-button \x3e button");playButton.focus()}});t.container.addClass((mf.isAndroid? "mejs-android ":"")+(mf.isiOS?"mejs-ios ":"")+(mf.isiPad?"mejs-ipad ":"")+(mf.isiPhone?"mejs-iphone ":"")+(t.isVideo?"mejs-video ":"mejs-audio "));if(mf.isiOS){var $newMedia=t.$media.clone();t.container.find(".mejs-mediaelement").append($newMedia);t.$media.remove();t.$node=t.$media=$newMedia;t.node=t.media=$newMedia[0]}else t.container.find(".mejs-mediaelement").append(t.$media);t.controls=t.container.find(".mejs-controls");t.layers=t.container.find(".mejs-layers");var tagType=t.isVideo?"video":"audio", capsTagName=tagType.substring(0,1).toUpperCase()+tagType.substring(1);if(t.options[tagType+"Width"]>0||t.options[tagType+"Width"].toString().indexOf("%")>-1)t.width=t.options[tagType+"Width"];else if(t.media.style.width!==""&&t.media.style.width!==null)t.width=t.media.style.width;else if(t.media.getAttribute("width")!==null)t.width=t.$media.attr("width");else t.width=t.options["default"+capsTagName+"Width"];if(t.options[tagType+"Height"]>0||t.options[tagType+"Height"].toString().indexOf("%")>-1)t.height= t.options[tagType+"Height"];else if(t.media.style.height!==""&&t.media.style.height!==null)t.height=t.media.style.height;else if(t.$media[0].getAttribute("height")!==null)t.height=t.$media.attr("height");else t.height=t.options["default"+capsTagName+"Height"];t.setPlayerSize(t.width,t.height);meOptions.pluginWidth=t.width;meOptions.pluginHeight=t.height}mejs.MediaElement(t.$media[0],meOptions);if(typeof t.container!="undefined"&&t.controlsAreVisible)t.container.trigger("controlsshown")},showControls:function(doAnimation){var t= this;doAnimation=typeof doAnimation=="undefined"||doAnimation;if(t.controlsAreVisible)return;if(doAnimation){t.controls.css("visibility","visible").stop(true,true).fadeIn(200,function(){t.controlsAreVisible=true;t.container.trigger("controlsshown")});t.container.find(".mejs-control").css("visibility","visible").stop(true,true).fadeIn(200,function(){t.controlsAreVisible=true})}else{t.controls.css("visibility","visible").css("display","block");t.container.find(".mejs-control").css("visibility","visible").css("display", "block");t.controlsAreVisible=true;t.container.trigger("controlsshown")}t.setControlsSize()},hideControls:function(doAnimation){var t=this;doAnimation=typeof doAnimation=="undefined"||doAnimation;if(!t.controlsAreVisible||t.options.alwaysShowControls||t.keyboardAction)return;if(doAnimation){t.controls.stop(true,true).fadeOut(200,function(){$(this).css("visibility","hidden").css("display","block");t.controlsAreVisible=false;t.container.trigger("controlshidden")});t.container.find(".mejs-control").stop(true, true).fadeOut(200,function(){$(this).css("visibility","hidden").css("display","block")})}else{t.controls.css("visibility","hidden").css("display","block");t.container.find(".mejs-control").css("visibility","hidden").css("display","block");t.controlsAreVisible=false;t.container.trigger("controlshidden")}},controlsTimer:null,startControlsTimer:function(timeout){var t=this;timeout=typeof timeout!="undefined"?timeout:1500;t.killControlsTimer("start");t.controlsTimer=setTimeout(function(){t.hideControls(); t.killControlsTimer("hide")},timeout)},killControlsTimer:function(src){var t=this;if(t.controlsTimer!==null){clearTimeout(t.controlsTimer);delete t.controlsTimer;t.controlsTimer=null}},controlsEnabled:true,disableControls:function(){var t=this;t.killControlsTimer();t.hideControls(false);this.controlsEnabled=false},enableControls:function(){var t=this;t.showControls(false);t.controlsEnabled=true},meReady:function(media,domNode){var t=this,mf=mejs.MediaFeatures,autoplayAttr=domNode.getAttribute("autoplay"), autoplay=!(typeof autoplayAttr=="undefined"||autoplayAttr===null||autoplayAttr==="false"),featureIndex,feature;if(t.created)return;else t.created=true;t.media=media;t.domNode=domNode;if(!(mf.isAndroid&&t.options.AndroidUseNativeControls)&&!(mf.isiPad&&t.options.iPadUseNativeControls)&&!(mf.isiPhone&&t.options.iPhoneUseNativeControls)){t.buildposter(t,t.controls,t.layers,t.media);t.buildkeyboard(t,t.controls,t.layers,t.media);t.buildoverlays(t,t.controls,t.layers,t.media);t.findTracks();for(featureIndex in t.options.features){feature= t.options.features[featureIndex];if(t["build"+feature])try{t["build"+feature](t,t.controls,t.layers,t.media)}catch(e){}}t.container.trigger("controlsready");t.setPlayerSize(t.width,t.height);t.setControlsSize();if(t.isVideo){if(mejs.MediaFeatures.hasTouch)t.$media.bind("touchstart",function(){if(t.controlsAreVisible)t.hideControls(false);else if(t.controlsEnabled)t.showControls(false)});else{t.clickToPlayPauseCallback=function(){if(t.options.clickToPlayPause)if(t.media.paused)t.play();else t.pause()}; t.media.addEventListener("click",t.clickToPlayPauseCallback,false);t.container.bind("mouseenter mouseover",function(){if(t.controlsEnabled)if(!t.options.alwaysShowControls){t.killControlsTimer("enter");t.showControls();t.startControlsTimer(2500)}}).bind("mousemove",function(){if(t.controlsEnabled){if(!t.controlsAreVisible)t.showControls();if(!t.options.alwaysShowControls)t.startControlsTimer(2500)}}).bind("mouseleave",function(){if(t.controlsEnabled)if(!t.media.paused&&!t.options.alwaysShowControls)t.startControlsTimer(1E3)})}if(t.options.hideVideoControlsOnLoad)t.hideControls(false); if(autoplay&&!t.options.alwaysShowControls)t.hideControls();if(t.options.enableAutosize)t.media.addEventListener("loadedmetadata",function(e){if(t.options.videoHeight<=0&&t.domNode.getAttribute("height")===null&&!isNaN(e.target.videoHeight)){t.setPlayerSize(e.target.videoWidth,e.target.videoHeight);t.setControlsSize();t.media.setVideoSize(e.target.videoWidth,e.target.videoHeight)}},false)}media.addEventListener("play",function(){var playerIndex;for(playerIndex in mejs.players){var p=mejs.players[playerIndex]; if(p.id!=t.id&&t.options.pauseOtherPlayers&&!p.paused&&!p.ended)p.pause();p.hasFocus=false}t.hasFocus=true},false);t.media.addEventListener("ended",function(e){if(t.options.autoRewind)try{t.media.setCurrentTime(0);window.setTimeout(function(){$(t.container).find(".mejs-overlay-loading").parent().hide()},20)}catch(exp){}t.media.pause();if(t.setProgressRail)t.setProgressRail();if(t.setCurrentRail)t.setCurrentRail();if(t.options.loop)t.play();else if(!t.options.alwaysShowControls&&t.controlsEnabled)t.showControls()}, false);t.media.addEventListener("loadedmetadata",function(e){if(t.updateDuration)t.updateDuration();if(t.updateCurrent)t.updateCurrent();if(!t.isFullScreen){t.setPlayerSize(t.width,t.height);t.setControlsSize()}},false);t.container.focusout(function(e){if(e.relatedTarget){var $target=$(e.relatedTarget);if(t.keyboardAction&&$target.parents(".mejs-container").length===0){t.keyboardAction=false;t.hideControls(true)}}});setTimeout(function(){t.setPlayerSize(t.width,t.height);t.setControlsSize()},50); t.globalBind("resize",function(){if(!(t.isFullScreen||mejs.MediaFeatures.hasTrueNativeFullScreen&&document.webkitIsFullScreen))t.setPlayerSize(t.width,t.height);t.setControlsSize()});if(t.media.pluginType=="youtube"&&(mf.isiOS||mf.isAndroid))t.container.find(".mejs-overlay-play").hide()}if(autoplay&&media.pluginType=="native")t.play();if(t.options.success)if(typeof t.options.success=="string")window[t.options.success](t.media,t.domNode,t);else t.options.success(t.media,t.domNode,t)},handleError:function(e){var t= this;t.controls.hide();if(t.options.error)t.options.error(e)},setPlayerSize:function(width,height){var t=this;if(!t.options.setDimensions)return false;if(typeof width!="undefined")t.width=width;if(typeof height!="undefined")t.height=height;if(t.height.toString().indexOf("%")>0||t.$node.css("max-width")==="100%"||t.$node[0].currentStyle&&t.$node[0].currentStyle.maxWidth==="100%"){var nativeWidth=function(){if(t.isVideo)if(t.media.videoWidth&&t.media.videoWidth>0)return t.media.videoWidth;else if(t.media.getAttribute("width")!== null)return t.media.getAttribute("width");else return t.options.defaultVideoWidth;else return t.options.defaultAudioWidth}();var nativeHeight=function(){if(t.isVideo)if(t.media.videoHeight&&t.media.videoHeight>0)return t.media.videoHeight;else if(t.media.getAttribute("height")!==null)return t.media.getAttribute("height");else return t.options.defaultVideoHeight;else return t.options.defaultAudioHeight}();var parentWidth=t.container.parent().closest(":visible").width(),parentHeight=t.container.parent().closest(":visible").height(), newHeight=t.isVideo||!t.options.autosizeProgress?parseInt(parentWidth*nativeHeight/nativeWidth,10):nativeHeight;if(isNaN(newHeight))newHeight=parentHeight;if(t.container.parent().length>0&&t.container.parent()[0].tagName.toLowerCase()==="body"){parentWidth=$(window).width();newHeight=$(window).height()}if(newHeight&&parentWidth){t.container.width(parentWidth).height(newHeight);t.$media.add(t.container.find(".mejs-shim")).width("100%").height("100%");if(t.isVideo)if(t.media.setVideoSize)t.media.setVideoSize(parentWidth, newHeight);t.layers.children(".mejs-layer").width("100%").height("100%")}}else{t.container.width(t.width).height(t.height);t.layers.children(".mejs-layer").width(t.width).height(t.height)}var playLayer=t.layers.find(".mejs-overlay-play"),playButton=playLayer.find(".mejs-overlay-button");playLayer.height(t.container.height()-t.controls.height());playButton.css("margin-top","-"+(playButton.height()/2-t.controls.height()/2).toString()+"px")},setControlsSize:function(){var t=this,usedWidth=0,railWidth= 0,rail=t.controls.find(".mejs-time-rail"),total=t.controls.find(".mejs-time-total"),current=t.controls.find(".mejs-time-current"),loaded=t.controls.find(".mejs-time-loaded"),others=rail.siblings(),lastControl=others.last(),lastControlPosition=null;if(!t.container.is(":visible")||!rail.length||!rail.is(":visible"))return;if(t.options&&!t.options.autosizeProgress)railWidth=parseInt(rail.css("width"),10);if(railWidth===0||!railWidth){others.each(function(){var $this=$(this);if($this.css("position")!= "absolute"&&$this.is(":visible"))usedWidth+=$(this).outerWidth(true)});railWidth=t.controls.width()-usedWidth-(rail.outerWidth(true)-rail.width())}do{rail.width(railWidth);total.width(railWidth-(total.outerWidth(true)-total.width()));if(lastControl.css("position")!="absolute"){lastControlPosition=lastControl.length?lastControl.position():null;railWidth--}}while(lastControlPosition!==null&&lastControlPosition.top>0&&railWidth>0);if(t.setProgressRail)t.setProgressRail();if(t.setCurrentRail)t.setCurrentRail()}, buildposter:function(player,controls,layers,media){var t=this,poster=$('\x3cdiv class\x3d"mejs-poster mejs-layer"\x3e'+"\x3c/div\x3e").appendTo(layers),posterUrl=player.$media.attr("poster");if(player.options.poster!=="")posterUrl=player.options.poster;if(posterUrl)t.setPoster(posterUrl);else poster.hide();media.addEventListener("play",function(){poster.hide()},false);if(player.options.showPosterWhenEnded&&player.options.autoRewind)media.addEventListener("ended",function(){poster.show()},false)}, setPoster:function(url){var t=this,posterDiv=t.container.find(".mejs-poster"),posterImg=posterDiv.find("img");if(posterImg.length===0)posterImg=$('\x3cimg width\x3d"100%" height\x3d"100%" /\x3e').appendTo(posterDiv);posterImg.attr("src",url);posterDiv.css({"background-image":"url("+url+")"})},buildoverlays:function(player,controls,layers,media){var t=this;if(!player.isVideo)return;var loading=$('\x3cdiv class\x3d"mejs-overlay mejs-layer"\x3e'+'\x3cdiv class\x3d"mejs-overlay-loading"\x3e\x3cspan\x3e\x3c/span\x3e\x3c/div\x3e'+ "\x3c/div\x3e").hide().appendTo(layers),error=$('\x3cdiv class\x3d"mejs-overlay mejs-layer"\x3e'+'\x3cdiv class\x3d"mejs-overlay-error"\x3e\x3c/div\x3e'+"\x3c/div\x3e").hide().appendTo(layers),bigPlay=$('\x3cdiv class\x3d"mejs-overlay mejs-layer mejs-overlay-play"\x3e'+'\x3cdiv class\x3d"mejs-overlay-button"\x3e\x3c/div\x3e'+"\x3c/div\x3e").appendTo(layers).bind("click",function(){if(t.options.clickToPlayPause)if(media.paused)media.play()});media.addEventListener("play",function(){bigPlay.hide(); loading.hide();controls.find(".mejs-time-buffering").hide();error.hide()},false);media.addEventListener("playing",function(){bigPlay.hide();loading.hide();controls.find(".mejs-time-buffering").hide();error.hide()},false);media.addEventListener("seeking",function(){loading.show();controls.find(".mejs-time-buffering").show()},false);media.addEventListener("seeked",function(){loading.hide();controls.find(".mejs-time-buffering").hide()},false);media.addEventListener("pause",function(){if(!mejs.MediaFeatures.isiPhone)bigPlay.show()}, false);media.addEventListener("waiting",function(){loading.show();controls.find(".mejs-time-buffering").show()},false);media.addEventListener("loadeddata",function(){loading.show();controls.find(".mejs-time-buffering").show();if(mejs.MediaFeatures.isAndroid)media.canplayTimeout=window.setTimeout(function(){if(document.createEvent){var evt=document.createEvent("HTMLEvents");evt.initEvent("canplay",true,true);return media.dispatchEvent(evt)}},300)},false);media.addEventListener("canplay",function(){loading.hide(); controls.find(".mejs-time-buffering").hide();clearTimeout(media.canplayTimeout)},false);media.addEventListener("error",function(){loading.hide();controls.find(".mejs-time-buffering").hide();error.show();error.find(".mejs-overlay-error").html("Error loading this resource")},false);media.addEventListener("keydown",function(e){t.onkeydown(player,media,e)},false)},buildkeyboard:function(player,controls,layers,media){var t=this;t.container.keydown(function(){t.keyboardAction=true});t.globalBind("keydown", function(e){return t.onkeydown(player,media,e)});t.globalBind("click",function(event){player.hasFocus=$(event.target).closest(".mejs-container").length!==0})},onkeydown:function(player,media,e){if(player.hasFocus&&player.options.enableKeyboard)for(var i=0,il=player.options.keyActions.length;i0){media.setCurrentTime(0);media.pause();controls.find(".mejs-time-current").width("0px");controls.find(".mejs-time-handle").css("left","0px");controls.find(".mejs-time-float-current").html(mejs.Utility.secondsToTimeCode(0));controls.find(".mejs-currenttime").html(mejs.Utility.secondsToTimeCode(0));layers.find(".mejs-poster").show()}})}})})(mejs.$);(function($){$.extend(mejs.MepDefaults, {progessHelpText:mejs.i18n.t("Use Left/Right Arrow keys to advance one second, Up/Down arrows to advance ten seconds.")});$.extend(MediaElementPlayer.prototype,{buildprogress:function(player,controls,layers,media){$('\x3cdiv class\x3d"mejs-time-rail"\x3e'+'\x3cspan class\x3d"mejs-time-total mejs-time-slider"\x3e'+'\x3cspan class\x3d"mejs-time-buffering"\x3e\x3c/span\x3e'+'\x3cspan class\x3d"mejs-time-loaded"\x3e\x3c/span\x3e'+'\x3cspan class\x3d"mejs-time-current"\x3e\x3c/span\x3e'+'\x3cspan class\x3d"mejs-time-handle"\x3e\x3c/span\x3e'+ '\x3cspan class\x3d"mejs-time-float"\x3e'+'\x3cspan class\x3d"mejs-time-float-current"\x3e00:00\x3c/span\x3e'+'\x3cspan class\x3d"mejs-time-float-corner"\x3e\x3c/span\x3e'+"\x3c/span\x3e"+"\x3c/span\x3e"+"\x3c/div\x3e").appendTo(controls);controls.find(".mejs-time-buffering").hide();var t=this,total=controls.find(".mejs-time-total"),loaded=controls.find(".mejs-time-loaded"),current=controls.find(".mejs-time-current"),handle=controls.find(".mejs-time-handle"),timefloat=controls.find(".mejs-time-float"), timefloatcurrent=controls.find(".mejs-time-float-current"),slider=controls.find(".mejs-time-slider"),handleMouseMove=function(e){var offset=total.offset(),width=total.outerWidth(true),percentage=0,newTime=0,pos=0,x;if(e.originalEvent.changedTouches)x=e.originalEvent.changedTouches[0].pageX;else x=e.pageX;if(media.duration){if(xwidth+offset.left)x=width+offset.left;pos=x-offset.left;percentage=pos/width;newTime=percentage<=.02?0:percentage*media.duration;if(mouseIsDown&& newTime!==media.currentTime)media.setCurrentTime(newTime);if(!mejs.MediaFeatures.hasTouch){timefloat.css("left",pos);timefloatcurrent.html(mejs.Utility.secondsToTimeCode(newTime));timefloat.show()}}},mouseIsDown=false,mouseIsOver=false,lastKeyPressTime=0,startedPaused=false,autoRewindInitial=player.options.autoRewind;var updateSlider=function(e){var seconds=media.currentTime,timeSliderText=mejs.i18n.t("Time Slider"),time=mejs.Utility.secondsToTimeCode(seconds),duration=media.duration;slider.attr({"aria-label":timeSliderText, "aria-valuemin":0,"aria-valuemax":duration,"aria-valuenow":seconds,"aria-valuetext":time,"role":"slider","tabindex":0})};var restartPlayer=function(){var now=new Date;if(now-lastKeyPressTime>=1E3)media.play()};slider.bind("focus",function(e){player.options.autoRewind=false});slider.bind("blur",function(e){player.options.autoRewind=autoRewindInitial});slider.bind("keydown",function(e){if(new Date-lastKeyPressTime>=1E3)startedPaused=media.paused;var keyCode=e.keyCode,duration=media.duration,seekTime= media.currentTime;switch(keyCode){case 37:seekTime-=1;break;case 39:seekTime+=1;break;case 38:seekTime+=Math.floor(duration*.1);break;case 40:seekTime-=Math.floor(duration*.1);break;case 36:seekTime=0;break;case 35:seekTime=duration;break;case 10:media.paused?media.play():media.pause();return;case 13:media.paused?media.play():media.pause();return;default:return}seekTime=seekTime<0?0:seekTime>=duration?duration:Math.floor(seekTime);lastKeyPressTime=new Date;if(!startedPaused)media.pause();if(seekTime< media.duration&&!startedPaused)setTimeout(restartPlayer,1100);media.setCurrentTime(seekTime);e.preventDefault();e.stopPropagation();return false});total.bind("mousedown touchstart",function(e){if(e.which===1||e.which===0){mouseIsDown=true;handleMouseMove(e);t.globalBind("mousemove.dur touchmove.dur",function(e){handleMouseMove(e)});t.globalBind("mouseup.dur touchend.dur",function(e){mouseIsDown=false;timefloat.hide();t.globalUnbind(".dur")})}}).bind("mouseenter",function(e){mouseIsOver=true;t.globalBind("mousemove.dur", function(e){handleMouseMove(e)});if(!mejs.MediaFeatures.hasTouch)timefloat.show()}).bind("mouseleave",function(e){mouseIsOver=false;if(!mouseIsDown){t.globalUnbind(".dur");timefloat.hide()}});media.addEventListener("progress",function(e){player.setProgressRail(e);player.setCurrentRail(e)},false);media.addEventListener("timeupdate",function(e){player.setProgressRail(e);player.setCurrentRail(e);updateSlider(e)},false);t.loaded=loaded;t.total=total;t.current=current;t.handle=handle},setProgressRail:function(e){var t= this,target=e!==undefined?e.target:t.media,percent=null;if(target&&target.buffered&&target.buffered.length>0&&target.buffered.end&&target.duration)percent=target.buffered.end(0)/target.duration;else if(target&&target.bytesTotal!==undefined&&target.bytesTotal>0&&target.bufferedBytes!==undefined)percent=target.bufferedBytes/target.bytesTotal;else if(e&&e.lengthComputable&&e.total!==0)percent=e.loaded/e.total;if(percent!==null){percent=Math.min(1,Math.max(0,percent));if(t.loaded&&t.total)t.loaded.width(t.total.width()* percent)}},setCurrentRail:function(){var t=this;if(t.media.currentTime!==undefined&&t.media.duration)if(t.total&&t.handle){var newWidth=Math.round(t.total.width()*t.media.currentTime/t.media.duration),handlePos=newWidth-Math.round(t.handle.outerWidth(true)/2);t.current.width(newWidth);t.handle.css("left",handlePos)}}})})(mejs.$);(function($){$.extend(mejs.MepDefaults,{duration:-1,timeAndDurationSeparator:"\x3cspan\x3e | \x3c/span\x3e"});$.extend(MediaElementPlayer.prototype,{buildcurrent:function(player, controls,layers,media){var t=this;$('\x3cdiv class\x3d"mejs-time" role\x3d"timer" aria-live\x3d"off"\x3e'+'\x3cspan class\x3d"mejs-currenttime"\x3e'+(player.options.alwaysShowHours?"00:":"")+(player.options.showTimecodeFrameCount?"00:00:00":"00:00")+"\x3c/span\x3e"+"\x3c/div\x3e").appendTo(controls);t.currenttime=t.controls.find(".mejs-currenttime");media.addEventListener("timeupdate",function(){player.updateCurrent()},false)},buildduration:function(player,controls,layers,media){var t=this;if(controls.children().last().find(".mejs-currenttime").length> 0)$(t.options.timeAndDurationSeparator+'\x3cspan class\x3d"mejs-duration"\x3e'+(t.options.duration>0?mejs.Utility.secondsToTimeCode(t.options.duration,t.options.alwaysShowHours||t.media.duration>3600,t.options.showTimecodeFrameCount,t.options.framesPerSecond||25):(player.options.alwaysShowHours?"00:":"")+(player.options.showTimecodeFrameCount?"00:00:00":"00:00"))+"\x3c/span\x3e").appendTo(controls.find(".mejs-time"));else{controls.find(".mejs-currenttime").parent().addClass("mejs-currenttime-container"); $('\x3cdiv class\x3d"mejs-time mejs-duration-container"\x3e'+'\x3cspan class\x3d"mejs-duration"\x3e'+(t.options.duration>0?mejs.Utility.secondsToTimeCode(t.options.duration,t.options.alwaysShowHours||t.media.duration>3600,t.options.showTimecodeFrameCount,t.options.framesPerSecond||25):(player.options.alwaysShowHours?"00:":"")+(player.options.showTimecodeFrameCount?"00:00:00":"00:00"))+"\x3c/span\x3e"+"\x3c/div\x3e").appendTo(controls)}t.durationD=t.controls.find(".mejs-duration");media.addEventListener("timeupdate", function(){player.updateDuration()},false)},updateCurrent:function(){var t=this;if(t.currenttime)t.currenttime.html(mejs.Utility.secondsToTimeCode(t.media.currentTime,t.options.alwaysShowHours||t.media.duration>3600,t.options.showTimecodeFrameCount,t.options.framesPerSecond||25))},updateDuration:function(){var t=this;t.container.toggleClass("mejs-long-video",t.media.duration>3600);if(t.durationD&&(t.options.duration>0||t.media.duration))t.durationD.html(mejs.Utility.secondsToTimeCode(t.options.duration> 0?t.options.duration:t.media.duration,t.options.alwaysShowHours,t.options.showTimecodeFrameCount,t.options.framesPerSecond||25))}})})(mejs.$);(function($){$.extend(mejs.MepDefaults,{muteText:mejs.i18n.t("Mute Toggle"),allyVolumeControlText:mejs.i18n.t("Use Up/Down Arrow keys to increase or decrease volume."),hideVolumeOnTouchDevices:true,audioVolume:"horizontal",videoVolume:"vertical"});$.extend(MediaElementPlayer.prototype,{buildvolume:function(player,controls,layers,media){if((mejs.MediaFeatures.isAndroid|| mejs.MediaFeatures.isiOS)&&this.options.hideVolumeOnTouchDevices)return;var t=this,mode=t.isVideo?t.options.videoVolume:t.options.audioVolume,mute=mode=="horizontal"?$('\x3cdiv class\x3d"mejs-button mejs-volume-button mejs-mute"\x3e'+'\x3cbutton type\x3d"button" aria-controls\x3d"'+t.id+'" title\x3d"'+t.options.muteText+'" aria-label\x3d"'+t.options.muteText+'"\x3e\x3c/button\x3e'+"\x3c/div\x3e"+'\x3ca href\x3d"javascript:void(0);" class\x3d"mejs-horizontal-volume-slider"\x3e'+'\x3cspan class\x3d"mejs-offscreen"\x3e'+ t.options.allyVolumeControlText+"\x3c/span\x3e"+'\x3cdiv class\x3d"mejs-horizontal-volume-total"\x3e\x3c/div\x3e'+'\x3cdiv class\x3d"mejs-horizontal-volume-current"\x3e\x3c/div\x3e'+'\x3cdiv class\x3d"mejs-horizontal-volume-handle"\x3e\x3c/div\x3e'+"\x3c/a\x3e").appendTo(controls):$('\x3cdiv class\x3d"mejs-button mejs-volume-button mejs-mute"\x3e'+'\x3cbutton type\x3d"button" aria-controls\x3d"'+t.id+'" title\x3d"'+t.options.muteText+'" aria-label\x3d"'+t.options.muteText+'"\x3e\x3c/button\x3e'+'\x3ca href\x3d"javascript:void(0);" class\x3d"mejs-volume-slider"\x3e'+ '\x3cspan class\x3d"mejs-offscreen"\x3e'+t.options.allyVolumeControlText+"\x3c/span\x3e"+'\x3cdiv class\x3d"mejs-volume-total"\x3e\x3c/div\x3e'+'\x3cdiv class\x3d"mejs-volume-current"\x3e\x3c/div\x3e'+'\x3cdiv class\x3d"mejs-volume-handle"\x3e\x3c/div\x3e'+"\x3c/a\x3e"+"\x3c/div\x3e").appendTo(controls),volumeSlider=t.container.find(".mejs-volume-slider, .mejs-horizontal-volume-slider"),volumeTotal=t.container.find(".mejs-volume-total, .mejs-horizontal-volume-total"),volumeCurrent=t.container.find(".mejs-volume-current, .mejs-horizontal-volume-current"), volumeHandle=t.container.find(".mejs-volume-handle, .mejs-horizontal-volume-handle"),positionVolumeHandle=function(volume,secondTry){if(!volumeSlider.is(":visible")&&typeof secondTry=="undefined"){volumeSlider.show();positionVolumeHandle(volume,true);volumeSlider.hide();return}volume=Math.max(0,volume);volume=Math.min(volume,1);if(volume===0){mute.removeClass("mejs-mute").addClass("mejs-unmute");mute.children("button").attr("title",mejs.i18n.t("Unmute")).attr("aria-label",mejs.i18n.t("Unmute"))}else{mute.removeClass("mejs-unmute").addClass("mejs-mute"); mute.children("button").attr("title",mejs.i18n.t("Mute")).attr("aria-label",mejs.i18n.t("Mute"))}var totalPosition=volumeTotal.position();if(mode=="vertical"){var totalHeight=volumeTotal.height(),newTop=totalHeight-totalHeight*volume;volumeHandle.css("top",Math.round(totalPosition.top+newTop-volumeHandle.height()/2));volumeCurrent.height(totalHeight-newTop);volumeCurrent.css("top",totalPosition.top+newTop)}else{var totalWidth=volumeTotal.width(),newLeft=totalWidth*volume;volumeHandle.css("left",Math.round(totalPosition.left+ newLeft-volumeHandle.width()/2));volumeCurrent.width(Math.round(newLeft))}},handleVolumeMove=function(e){var volume=null,totalOffset=volumeTotal.offset();if(mode==="vertical"){var railHeight=volumeTotal.height(),totalTop=parseInt(volumeTotal.css("top").replace(/px/,""),10),newY=e.pageY-totalOffset.top;volume=(railHeight-newY)/railHeight;if(totalOffset.top===0||totalOffset.left===0)return}else{var railWidth=volumeTotal.width(),newX=e.pageX-totalOffset.left;volume=newX/railWidth}volume=Math.max(0,volume); volume=Math.min(volume,1);positionVolumeHandle(volume);if(volume===0)media.setMuted(true);else media.setMuted(false);media.setVolume(volume)},mouseIsDown=false,mouseIsOver=false;mute.hover(function(){volumeSlider.show();mouseIsOver=true},function(){mouseIsOver=false;if(!mouseIsDown&&mode=="vertical")volumeSlider.hide()});var updateVolumeSlider=function(e){var volume=Math.floor(media.volume*100);volumeSlider.attr({"aria-label":mejs.i18n.t("volumeSlider"),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":volume, "aria-valuetext":volume+"%","role":"slider","tabindex":0})};volumeSlider.bind("mouseover",function(){mouseIsOver=true}).bind("mousedown",function(e){handleVolumeMove(e);t.globalBind("mousemove.vol",function(e){handleVolumeMove(e)});t.globalBind("mouseup.vol",function(){mouseIsDown=false;t.globalUnbind(".vol");if(!mouseIsOver&&mode=="vertical")volumeSlider.hide()});mouseIsDown=true;return false}).bind("keydown",function(e){var keyCode=e.keyCode;var volume=media.volume;switch(keyCode){case 38:volume+= .1;break;case 40:volume=volume-.1;break;default:return true}mouseIsDown=false;positionVolumeHandle(volume);media.setVolume(volume);return false}).bind("blur",function(){volumeSlider.hide()});mute.find("button").click(function(){media.setMuted(!media.muted)});mute.find("button").bind("focus",function(){volumeSlider.show()});media.addEventListener("volumechange",function(e){if(!mouseIsDown)if(media.muted){positionVolumeHandle(0);mute.removeClass("mejs-mute").addClass("mejs-unmute")}else{positionVolumeHandle(media.volume); mute.removeClass("mejs-unmute").addClass("mejs-mute")}updateVolumeSlider(e)},false);if(t.container.is(":visible")){positionVolumeHandle(player.options.startVolume);if(player.options.startVolume===0)media.setMuted(true);if(media.pluginType==="native")media.setVolume(player.options.startVolume)}}})})(mejs.$);(function($){$.extend(mejs.MepDefaults,{usePluginFullScreen:true,newWindowCallback:function(){return""},fullscreenText:mejs.i18n.t("Fullscreen")});$.extend(MediaElementPlayer.prototype,{isFullScreen:false, isNativeFullScreen:false,isInIframe:false,buildfullscreen:function(player,controls,layers,media){if(!player.isVideo)return;player.isInIframe=window.location!=window.parent.location;if(mejs.MediaFeatures.hasTrueNativeFullScreen){var func=function(e){if(player.isFullScreen)if(mejs.MediaFeatures.isFullScreen()){player.isNativeFullScreen=true;player.setControlsSize()}else{player.isNativeFullScreen=false;player.exitFullScreen()}};player.globalBind(mejs.MediaFeatures.fullScreenEventName,func)}var t=this, normalHeight=0,normalWidth=0,container=player.container,fullscreenBtn=$('\x3cdiv class\x3d"mejs-button mejs-fullscreen-button"\x3e'+'\x3cbutton type\x3d"button" aria-controls\x3d"'+t.id+'" title\x3d"'+t.options.fullscreenText+'" aria-label\x3d"'+t.options.fullscreenText+'"\x3e\x3c/button\x3e'+"\x3c/div\x3e").appendTo(controls);if(t.media.pluginType==="native"||!t.options.usePluginFullScreen&&!mejs.MediaFeatures.isFirefox)fullscreenBtn.click(function(){var isFullScreen=mejs.MediaFeatures.hasTrueNativeFullScreen&& mejs.MediaFeatures.isFullScreen()||player.isFullScreen;if(isFullScreen)player.exitFullScreen();else player.enterFullScreen()});else{var hideTimeout=null,supportsPointerEvents=function(){var element=document.createElement("x"),documentElement=document.documentElement,getComputedStyle=window.getComputedStyle,supports;if(!("pointerEvents"in element.style))return false;element.style.pointerEvents="auto";element.style.pointerEvents="x";documentElement.appendChild(element);supports=getComputedStyle&&getComputedStyle(element, "").pointerEvents==="auto";documentElement.removeChild(element);return!!supports}();if(supportsPointerEvents&&!mejs.MediaFeatures.isOpera){var fullscreenIsDisabled=false,restoreControls=function(){if(fullscreenIsDisabled){for(var i in hoverDivs)hoverDivs[i].hide();fullscreenBtn.css("pointer-events","");t.controls.css("pointer-events","");t.media.removeEventListener("click",t.clickToPlayPauseCallback);fullscreenIsDisabled=false}},hoverDivs={},hoverDivNames=["top","left","right","bottom"],i,len,positionHoverDivs= function(){var fullScreenBtnOffsetLeft=fullscreenBtn.offset().left-t.container.offset().left,fullScreenBtnOffsetTop=fullscreenBtn.offset().top-t.container.offset().top,fullScreenBtnWidth=fullscreenBtn.outerWidth(true),fullScreenBtnHeight=fullscreenBtn.outerHeight(true),containerWidth=t.container.width(),containerHeight=t.container.height();for(i in hoverDivs)hoverDivs[i].css({position:"absolute",top:0,left:0});hoverDivs["top"].width(containerWidth).height(fullScreenBtnOffsetTop);hoverDivs["left"].width(fullScreenBtnOffsetLeft).height(fullScreenBtnHeight).css({top:fullScreenBtnOffsetTop}); hoverDivs["right"].width(containerWidth-fullScreenBtnOffsetLeft-fullScreenBtnWidth).height(fullScreenBtnHeight).css({top:fullScreenBtnOffsetTop,left:fullScreenBtnOffsetLeft+fullScreenBtnWidth});hoverDivs["bottom"].width(containerWidth).height(containerHeight-fullScreenBtnHeight-fullScreenBtnOffsetTop).css({top:fullScreenBtnOffsetTop+fullScreenBtnHeight})};t.globalBind("resize",function(){positionHoverDivs()});for(i=0,len=hoverDivNames.length;ifullscreenBtnPos.top+fullscreenBtn.outerHeight(true)||e.pageXfullscreenBtnPos.left+fullscreenBtn.outerWidth(true)){fullscreenBtn.css("pointer-events", "");t.controls.css("pointer-events","");fullscreenIsDisabled=false}}})}else fullscreenBtn.on("mouseover",function(){if(hideTimeout!==null){clearTimeout(hideTimeout);delete hideTimeout}var buttonPos=fullscreenBtn.offset(),containerPos=player.container.offset();media.positionFullscreenButton(buttonPos.left-containerPos.left,buttonPos.top-containerPos.top,true)}).on("mouseout",function(){if(hideTimeout!==null){clearTimeout(hideTimeout);delete hideTimeout}hideTimeout=setTimeout(function(){media.hideFullscreenButton()}, 1500)})}player.fullscreenBtn=fullscreenBtn;t.globalBind("keydown",function(e){if((mejs.MediaFeatures.hasTrueNativeFullScreen&&mejs.MediaFeatures.isFullScreen()||t.isFullScreen)&&e.keyCode==27)player.exitFullScreen()})},cleanfullscreen:function(player){player.exitFullScreen()},containerSizeTimeout:null,enterFullScreen:function(){var t=this;if(t.media.pluginType!=="native"&&(mejs.MediaFeatures.isFirefox||t.options.usePluginFullScreen))return;$(document.documentElement).addClass("mejs-fullscreen");normalHeight= t.container.height();normalWidth=t.container.width();if(t.media.pluginType==="native")if(mejs.MediaFeatures.hasTrueNativeFullScreen){mejs.MediaFeatures.requestFullScreen(t.container[0]);if(t.isInIframe)setTimeout(function checkFullscreen(){if(t.isNativeFullScreen){var zoomMultiplier=window["devicePixelRatio"]||1;var percentErrorMargin=.002;var windowWidth=zoomMultiplier*$(window).width();var screenWidth=screen.width;var absDiff=Math.abs(screenWidth-windowWidth);var marginError=screenWidth*percentErrorMargin; if(absDiff>marginError)t.exitFullScreen();else setTimeout(checkFullscreen,500)}},500)}else if(mejs.MediaFeatures.hasSemiNativeFullScreen){t.media.webkitEnterFullscreen();return}if(t.isInIframe){var url=t.options.newWindowCallback(this);if(url!=="")if(!mejs.MediaFeatures.hasTrueNativeFullScreen){t.pause();window.open(url,t.id,"top\x3d0,left\x3d0,width\x3d"+screen.availWidth+",height\x3d"+screen.availHeight+",resizable\x3dyes,scrollbars\x3dno,status\x3dno,toolbar\x3dno");return}else setTimeout(function(){if(!t.isNativeFullScreen){t.pause(); window.open(url,t.id,"top\x3d0,left\x3d0,width\x3d"+screen.availWidth+",height\x3d"+screen.availHeight+",resizable\x3dyes,scrollbars\x3dno,status\x3dno,toolbar\x3dno")}},250)}t.container.addClass("mejs-container-fullscreen").width("100%").height("100%");t.containerSizeTimeout=setTimeout(function(){t.container.css({width:"100%",height:"100%"});t.setControlsSize()},500);if(t.media.pluginType==="native")t.$media.width("100%").height("100%");else{t.container.find(".mejs-shim").width("100%").height("100%"); t.media.setVideoSize($(window).width(),$(window).height())}t.layers.children("div").width("100%").height("100%");if(t.fullscreenBtn)t.fullscreenBtn.removeClass("mejs-fullscreen").addClass("mejs-unfullscreen");t.setControlsSize();t.isFullScreen=true;t.container.find(".mejs-captions-text").css("font-size",screen.width/t.width*1*100+"%");t.container.find(".mejs-captions-position").css("bottom","45px")},exitFullScreen:function(){var t=this;clearTimeout(t.containerSizeTimeout);if(t.media.pluginType!== "native"&&mejs.MediaFeatures.isFirefox){t.media.setFullscreen(false);return}if(mejs.MediaFeatures.hasTrueNativeFullScreen&&(mejs.MediaFeatures.isFullScreen()||t.isFullScreen))mejs.MediaFeatures.cancelFullScreen();$(document.documentElement).removeClass("mejs-fullscreen");t.container.removeClass("mejs-container-fullscreen").width(normalWidth).height(normalHeight);if(t.media.pluginType==="native")t.$media.width(normalWidth).height(normalHeight);else{t.container.find(".mejs-shim").width(normalWidth).height(normalHeight); t.media.setVideoSize(normalWidth,normalHeight)}t.layers.children("div").width(normalWidth).height(normalHeight);t.fullscreenBtn.removeClass("mejs-unfullscreen").addClass("mejs-fullscreen");t.setControlsSize();t.isFullScreen=false;t.container.find(".mejs-captions-text").css("font-size","");t.container.find(".mejs-captions-position").css("bottom","")}})})(mejs.$);(function($){$.extend(mejs.MepDefaults,{speeds:["2.00","1.50","1.25","1.00","0.75"],defaultSpeed:"1.00",speedChar:"x"});$.extend(MediaElementPlayer.prototype, {buildspeed:function(player,controls,layers,media){var t=this;if(t.media.pluginType=="native"){var speedButton=null,speedSelector=null,playbackSpeed=null,inputId=null,html='\x3cdiv class\x3d"mejs-button mejs-speed-button"\x3e'+'\x3cbutton type\x3d"button"\x3e'+t.options.defaultSpeed+t.options.speedChar+"\x3c/button\x3e"+'\x3cdiv class\x3d"mejs-speed-selector"\x3e'+"\x3cul\x3e";if($.inArray(t.options.defaultSpeed,t.options.speeds)===-1)t.options.speeds.push(t.options.defaultSpeed);t.options.speeds.sort(function(a, b){return parseFloat(b)-parseFloat(a)});for(var i=0,il=t.options.speeds.length;i= 0;i--)t.domNode.textTracks[i].mode="hidden";t.cleartracks(player,controls,layers,media);player.chapters=$('\x3cdiv class\x3d"mejs-chapters mejs-layer"\x3e\x3c/div\x3e').prependTo(layers).hide();player.captions=$('\x3cdiv class\x3d"mejs-captions-layer mejs-layer"\x3e\x3cdiv class\x3d"mejs-captions-position mejs-captions-position-hover" '+attr+'\x3e\x3cspan class\x3d"mejs-captions-text"\x3e\x3c/span\x3e\x3c/div\x3e\x3c/div\x3e').prependTo(layers).hide();player.captionsText=player.captions.find(".mejs-captions-text"); player.captionsButton=$('\x3cdiv class\x3d"mejs-button mejs-captions-button"\x3e'+'\x3cbutton type\x3d"button" aria-controls\x3d"'+t.id+'" title\x3d"'+t.options.tracksText+'" aria-label\x3d"'+t.options.tracksText+'"\x3e\x3c/button\x3e'+'\x3cdiv class\x3d"mejs-captions-selector"\x3e'+"\x3cul\x3e"+"\x3cli\x3e"+'\x3cinput type\x3d"radio" name\x3d"'+player.id+'_captions" id\x3d"'+player.id+'_captions_none" value\x3d"none" checked\x3d"checked" /\x3e'+'\x3clabel for\x3d"'+player.id+'_captions_none"\x3e'+ mejs.i18n.t("None")+"\x3c/label\x3e"+"\x3c/li\x3e"+"\x3c/ul\x3e"+"\x3c/div\x3e"+"\x3c/div\x3e").appendTo(controls);var subtitleCount=0;for(i=0;i0)t.displayChapters(track)},false);if(track.kind=="slides")t.setupSlides(track)},error:function(){t.loadNextTrack()}})},enableTrackButton:function(lang,label){var t=this;if(label==="")label=mejs.language.codes[lang]||lang;t.captionsButton.find("input[value\x3d"+lang+"]").prop("disabled",false).siblings("label").html(label);if(t.options.startLanguage==lang)$("#"+t.id+"_captions_"+lang).prop("checked", true).trigger("click");t.adjustLanguageBox()},addTrackButton:function(lang,label){var t=this;if(label==="")label=mejs.language.codes[lang]||lang;t.captionsButton.find("ul").append($("\x3cli\x3e"+'\x3cinput type\x3d"radio" name\x3d"'+t.id+'_captions" id\x3d"'+t.id+"_captions_"+lang+'" value\x3d"'+lang+'" disabled\x3d"disabled" /\x3e'+'\x3clabel for\x3d"'+t.id+"_captions_"+lang+'"\x3e'+label+" (loading)"+"\x3c/label\x3e"+"\x3c/li\x3e"));t.adjustLanguageBox();t.container.find(".mejs-captions-translations option[value\x3d"+ lang+"]").remove()},adjustLanguageBox:function(){var t=this;t.captionsButton.find(".mejs-captions-selector").height(t.captionsButton.find(".mejs-captions-selector ul").outerHeight(true)+t.captionsButton.find(".mejs-captions-translations").outerHeight(true))},checkForTracks:function(){var t=this,hasSubtitles=false;if(t.options.hideCaptionsButtonWhenEmpty){for(i=0;i=track.entries.times[i].start&&t.media.currentTime<=track.entries.times[i].stop){t.captionsText.html(track.entries.text[i]).attr("class","mejs-captions-text "+(track.entries.times[i].identifier||""));t.captions.show().height(0);return}t.captions.hide()}else t.captions.hide()},setupSlides:function(track){var t= this;t.slides=track;t.slides.entries.imgs=[t.slides.entries.text.length];t.showSlide(0)},showSlide:function(index){if(typeof this.tracks=="undefined"||typeof this.slidesContainer=="undefined")return;var t=this,url=t.slides.entries.text[index],img=t.slides.entries.imgs[index];if(typeof img=="undefined"||typeof img.fadeIn=="undefined")t.slides.entries.imgs[index]=img=$('\x3cimg src\x3d"'+url+'"\x3e').on("load",function(){img.appendTo(t.slidesContainer).hide().fadeIn().siblings(":visible").fadeOut()}); else if(!img.is(":visible")&&!img.is(":animated"))img.fadeIn().siblings(":visible").fadeOut()},displaySlides:function(){if(typeof this.slides=="undefined")return;var t=this,slides=t.slides,i;for(i=0;i=slides.entries.times[i].start&&t.media.currentTime<=slides.entries.times[i].stop){t.showSlide(i);return}},displayChapters:function(){var t=this,i;for(i=0;i100||i==chapters.entries.times.length-1&&percent+usedPercent<100)percent=100-usedPercent;t.chapters.append($('\x3cdiv class\x3d"mejs-chapter" rel\x3d"'+chapters.entries.times[i].start+'" style\x3d"left: '+ usedPercent.toString()+"%;width: "+percent.toString()+'%;"\x3e'+'\x3cdiv class\x3d"mejs-chapter-block'+(i==chapters.entries.times.length-1?" mejs-chapter-block-last":"")+'"\x3e'+'\x3cspan class\x3d"ch-title"\x3e'+chapters.entries.text[i]+"\x3c/span\x3e"+'\x3cspan class\x3d"ch-time"\x3e'+mejs.Utility.secondsToTimeCode(chapters.entries.times[i].start)+"\x26ndash;"+mejs.Utility.secondsToTimeCode(chapters.entries.times[i].stop)+"\x3c/span\x3e"+"\x3c/div\x3e"+"\x3c/div\x3e"));usedPercent+=percent}t.chapters.find("div.mejs-chapter").click(function(){t.media.setCurrentTime(parseFloat($(this).attr("rel"))); if(t.media.paused)t.media.play()});t.chapters.show()}});mejs.language={codes:{af:"Afrikaans",sq:"Albanian",ar:"Arabic",be:"Belarusian",bg:"Bulgarian",ca:"Catalan",zh:"Chinese","zh-cn":"Chinese Simplified","zh-tw":"Chinese Traditional",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch",en:"English",et:"Estonian",fl:"Filipino",fi:"Finnish",fr:"French",gl:"Galician",de:"German",el:"Greek",ht:"Haitian Creole",iw:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",ga:"Irish",it:"Italian",ja:"Japanese", ko:"Korean",lv:"Latvian",lt:"Lithuanian",mk:"Macedonian",ms:"Malay",mt:"Maltese",no:"Norwegian",fa:"Persian",pl:"Polish",pt:"Portuguese",ro:"Romanian",ru:"Russian",sr:"Serbian",sk:"Slovak",sl:"Slovenian",es:"Spanish",sw:"Swahili",sv:"Swedish",tl:"Tagalog",th:"Thai",tr:"Turkish",uk:"Ukrainian",vi:"Vietnamese",cy:"Welsh",yi:"Yiddish"}};mejs.TrackFormatParser={webvtt:{pattern_timecode:/^((?:[0-9]{1,2}:)?[0-9]{2}:[0-9]{2}([,.][0-9]{1,3})?) --\x3e ((?:[0-9]{1,2}:)?[0-9]{2}:[0-9]{2}([,.][0-9]{3})?)(.*)$/, parse:function(trackText){var i=0,lines=mejs.TrackFormatParser.split2(trackText,/\r?\n/),entries={text:[],times:[]},timecode,text,identifier;for(;i=0&&lines[i-1]!=="")identifier=lines[i-1];i++;text=lines[i];i++;while(lines[i]!==""&&i-1},supportsVideoOrAudio:function(){return!!document.createElement("video").canPlayType&&!!document.createElement("audio").canPlayType},isMediaVideo:function(){return this.media.mediaType==="VIDEO"},isMediaAudio:function(){return this.media.mediaType=== "AUDIO"},isPlaylist:function(){return this.playlistid!==undefined},isLightbox:function(){return this.lightbox==true},hidePlayButton:function(){this.getContainers().play().addClass("mcp-hidden")},showPlayButton:function(){var that=this;var isShareScreenClosed=function(){return that.getContainers().share().opened().length===0};if(isShareScreenClosed()&&this.video.paused)this.getContainers().play().removeClass("mcp-hidden")},getDomain:function(){if(this.partnerid=="171")return"https://sparkassen-mediacenter.de"; return"https://dev.sparkassen-mediacenter.de"},createContainer:function($element){this.$content=$('\x3cdiv class\x3d"mcp-content"\x3e\x3c/div\x3e\x3cdiv class\x3d"mcp-mediaquery"\x3e\x3c/div\x3e').appendTo($element||this.$node)},showSidebar:function(){if(!this.getContainers().share().opened().is(":visible"))this.getContainers().sidebar().css("display","block")},hideSidebar:function(){this.getContainers().sidebar().css("display","none")},getEntryAndCreatePlayer:function(){var that=this;var url="sparkassen-mediacenter.de/mediathek/getData?"; url+=this.param({entryId:this.entryid?this.entryid:"",playlistId:this.isPlaylist()?this.playlistid:"",blz:this.blz?this.blz:""});this.request(url,function(response){if(response.error)that.alertPlugin().expirated();else{that.ks=response.ks;var entryData=response;if(that.entryid){if(that.blz)that.entryid=response.id;that.relatedEntries=response.relatedEntries}else if(that.isPlaylist()){if(that.blz)that.playlistid=response.id;that.entryid=response.entries[0].id;that.playlist=response;entryData=response.entries[0]}that.initPlayer(entryData)}})}, request:function(url,callback){var data={};var ajaxUrl=url;if(this.proxy)if(this.isIF6Proxy())ajaxUrl=this.proxy+url;else{ajaxUrl=this.proxy;data={p:url}}$.ajax({"url":ajaxUrl,"data":data,success:function(response){if(callback)callback(response)}})},param:function(obj){var o="";var and="";for(var i in obj){o+=and+i+"\x3d"+encodeURIComponent(obj[i]);and="\x26"}return o},initPlayer:function(entryData){this.media=entryData;this.flavorsPlugin().createGroupedFlavors();if(this.isLightbox())this.lightboxPlugin().init(); else this.createPlayer()},selectVideoQuality:function(){this.media.flavors.selectedVideoQuality=$(".mcp-mediaquery").css("zoom")==="667"?this.media.flavors[this.media.flavors.length-1]:this.media.flavors[0]},isiPhone:function(){return window.navigator.userAgent.toLowerCase().match(/iphone/i)!==null},isiPad:function(){return window.navigator.userAgent.toLowerCase().match(/ipad/i)!==null},isiOS:function(){return this.isiPhone()||this.isiPad()},isVideoElement:function(){return this.isMediaVideo()||this.isiPhone()}, changeVideoAudioSrc:function(flavourId){this.$video.attr("src",this.getVideoSource(flavourId));this.$video.attr("poster",this.media.thumbnail.large)},createPlayer:function($content){if(this.$content)this.$content.remove();this.createContainer($content);this.createPlayerContainer();this.selectVideoQuality();var source=this.getVideoSource(this.media.flavors.selectedVideoQuality.id);var videoWidth=this.$content.width();var videoHeight=Math.round(videoWidth*9/16);if(this.playlistPlugin().listByPlayer()){videoWidth= Math.round(videoWidth*.66);videoHeight=Math.round(videoHeight*.66)}if(this.isVideoElement())this.$video=$('\x3cvideo class\x3d"mcp-video" preload\x3d"none" poster\x3d"'+(this.entryid==="0_8c3p2u1h"?"https://sparkassen-mediacenter.de/mediathek-if6/mcplayer/media/0_8c3p2u1h.jpg":this.media.thumbnail.large)+'" width\x3d"'+videoWidth+'" height\x3d"'+videoHeight+'" style\x3d"width:100%; height:100%;"\x3e\x3csource type\x3d"video/mp4" src\x3d"'+source+'"\x3e\x3c/source\x3e\x3c/video\x3e').appendTo(this.getContainers().playerContainerInner()); else this.$video=$('\x3caudio class\x3d"mcp-video" preload\x3d"none" poster\x3d"'+this.media.thumbnail.large+'" width\x3d"'+videoWidth+'" height\x3d"'+videoHeight+'" style\x3d"width:100%; height:100%;"\x3e\x3csource type\x3d"audio/mp3" src\x3d"'+source+'"\x3e\x3c/source\x3e\x3c/audio\x3e').appendTo(this.getContainers().playerContainerInner());this.video=this.$video[0];this.loadGlobalEvents();this.mediaElementInit()},getVideoSource:function(flavourId){if(this.entryid==="0_8c3p2u1h")return"https://sparkassen-mediacenter.de/mediathek-if6/mcplayer/media/0_8c3p2u1h.mp4"; else return"https://sparkasse-a.akamaihd.net/p/"+this.partnerid+"/sp/"+this.partnerid+"00/serveFlavor/entryId/"+this.entryid+"/flavorId/"+flavourId+"/name/a.mp4"},createPlayerContainer:function(){$('\x3cdiv class\x3d"mcp-container mcp-inlineblock"\x3e\x3cdiv class\x3d"mcp-responsive"\x3e\x3cdiv class\x3d"mcp-responsive-inner"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e').appendTo($(this.$content))},loadGlobalEvents:function(){var that=this;this.addVideoEvent("loadedmetadata",function(){if(that.getAutoPlay()){that.video.play(); that.setAutoPlay(false)}},false)},addVideoEvent:function(name,func){if(this.video.addEventListener)this.video.addEventListener(name,func,false);else this.video.attachEvent("on"+name,func)},getAutoPlay:function(){return this.autoplay===true},setAutoPlay:function(bool){this.autoplay=bool},getPaddingBottomProcent:function(){var padding=Math.round(1E4*(9/16))/100;if(this.playlistPlugin().listByPlayer())padding=Math.round(padding*.66);return padding},mediaElementInit:function(){var that=this;var MediaElementPlayer= mejs.MediaElementPlayer;$.extend(MediaElementPlayer.prototype,{buildmcp:function(player,controls,layers,media){that.$video=$(media);that.video=media;if(that.isPlaylist()){if(that.getContainers().playlistItem().length===0)that.playlistPlugin().init()}else that.endScreenPlugin().init();that.sharePlugin().init();that.contactButtonPlugin().createInSidebar();that.statisticPlugin().init();if(!that.isiOS())that.downloadPlugin().addButton();if(that.isMediaVideo())that.flavorsPlugin().addButton();if(that.isMediaAudio())that.audioPlugin().createPlayButton(); that.topContainerPlugin().init();that.statisticPlugin().mediaelementResizeEvent(player)}});var options={"features":["playpause","current","progress","tracks","mcp","volume","fullscreen"],"videoVolume":"horizontal","audioVolume":"horizontal","iPadUseNativeControls":false,"iPhoneUseNativeControls":false,"AndroidUseNativeControls":false,"pluginPath":mejs.Utility.getScriptPath(["player.js"])};$(that.video).data("mediaelementplayer",new MediaElementPlayer(that.video,options))},topContainerPlugin:function(){var mcPlayer= this;return{init:function(){if(mcPlayer.getContainers().top().length===0)$('\x3cdiv class\x3d"mcp-top"\x3e\x3c/div\x3e').prependTo(mcPlayer.getContainers().playerContainerInner());var topContainer=mcPlayer.getContainers().top();topContainer.html('\x3cdiv class\x3d"mcp-title"\x3e'+mcPlayer.media.title+'\x3c/div\x3e\x3cdiv class\x3d"mcp-description"\x3e'+mcPlayer.media.description+"\x3c/div\x3e");topContainer.show();this.loadEvents()},loadEvents:function(){mcPlayer.video.addEventListener("play",function(){mcPlayer.getContainers().top().hide()}, false)}}},flavorsPlugin:function(){var mcPlayer=this;return{addButton:function(){$(this.createFlavorHtml()).appendTo(mcPlayer.getContainers().control()).on("click",function(){$(this).find(".mcp-flavors-list").toggleClass("mcp-open")});this.loadClickEvent();this.loadEvents()},createFlavorHtml:function(){return'\x3cdiv class\x3d"mcp-flavors"\x3e'+'\x3cbutton class\x3d"mcp-btn mcp-icon-cog"\x3e\x3c/button\x3e'+'\x3cul class\x3d"mcp-flavors-list"\x3e'+this.createFlavorHtmlList()+"\x3c/ul\x3e"+"\x3c/div\x3e"}, createFlavorHtmlList:function(){var flavorsHtml="";$.each(mcPlayer.media.flavors,function(index,flavor){flavorsHtml+='\x3cli data-bitrate\x3d"'+flavor.bitrate+'" data-id\x3d"'+flavor.id+'"'+(mcPlayer.media.flavors.selectedVideoQuality.id===flavor.id?' class\x3d"mcp-active"':"")+"\x3e"+'\x3ca href\x3d"#" title\x3d"'+flavor.title+'"\x3e'+flavor.title+"\x3c/a\x3e"+"\x3c/li\x3e";flavorsHtml+='\x3cli class\x3d"mcp-divider"\x3e\x3c/li\x3e'});return flavorsHtml},reloadFlavors:function(){mcPlayer.getContainers().flavors().list().html(this.createFlavorHtmlList()); this.loadClickEvent()},loadClickEvent:function(){var $flavorItems=mcPlayer.getContainers().flavors().items();$flavorItems.on("click",function(e){e.preventDefault();mcPlayer.video.pause();$flavorItems.removeClass("mcp-active");$(this).addClass("mcp-active");mcPlayer.$video.data("currentTime",mcPlayer.video.currentTime);mcPlayer.changeVideoAudioSrc($(this).data("id"));mcPlayer.video.load();mcPlayer.video.play()})},loadEvents:function(){mcPlayer.video.addEventListener("ended",function(){mcPlayer.getContainers().flavors().list().removeClass("mcp-open")}, false);mcPlayer.video.addEventListener("loadedmetadata",function(){if(mcPlayer.$video.data("currentTime")){mcPlayer.video.currentTime=mcPlayer.$video.data("currentTime");mcPlayer.$video.data("currentTime",0)}})},createGroupedFlavors:function(){var that=this;var groupedFlavors=[];$.each(mcPlayer.media.flavors,function(index,flavor){var group=that.getSourceSizeGroup(flavor.height);flavor.title=group.title;if(groupedFlavors[group.id]===undefined)groupedFlavors[group.id]=[];if(groupedFlavors[group.id].length< 2){groupedFlavors[group.id].push(flavor);if(groupedFlavors[group.id].length===2)groupedFlavors[group.id][0].title+=" HQ"}});var flavors=[];$.each(groupedFlavors,function(indexGroup,group){if(group!==undefined)$.each(group,function(indexFlavor,flavor){flavors.push(flavor)})});mcPlayer.media.flavors=flavors},getSourceSizeGroup:function(height){if(height<255)return{"id":4,"title":"240P"};else if(height<370)return{"id":3,"title":"360P"};else if(height<500)return{"id":2,"title":"480P"};else if(height< 800)return{"id":1,"title":"720P"};else return{"id":0,"title":"1080P"}}}},sharePlugin:function(){var mcPlayer=this;return{shareButton:undefined,sharePanel:undefined,closeButton:undefined,init:function(){this.createButton();this.createPanel();this.loadEvents()},createButton:function(){var mcShare=this;var sidebar=mcPlayer.getContainers().sidebar();if(sidebar.length===0)sidebar=$('\x3cdiv class\x3d"mcp-sidebar mcp-hidden"\x3e\x3c/div\x3e').appendTo(mcPlayer.getContainers().playerContainerInner());this.shareButton= $('\x3ca class\x3d"mcp-button-share"\x3e\x3ci class\x3d"mcp-icon-share"\x3e\x3c/i\x3eTeilen\x3c/a\x3e').appendTo(sidebar);this.closeButton=$('\x3ci class\x3d"mcp-share-close mcp-icon-expand2 mcp-hidden"\x3e\x3c/i\x3eTeilen').appendTo(mcPlayer.getContainers().videocontainer());this.shareButton.on("click",function(){if(mcShare.getVideoShownObj().hasClass("mcp-share-opened"))mcShare.hideShare();else mcShare.showShare()});this.closeButton.on("click",function(){mcShare.hideShare()})},createPanel:function(){var shareLink= this.getShareLink();var encodedShareLink=encodeURIComponent(shareLink);var shareDiv='\x3cdiv class\x3d"mcp-share-panel"\x3e'+'\x3cinput value\x3d"'+shareLink+'"\x3e'+"\x3ch3\x3eSocial Share\x3c/h3\x3e"+"\x3cul\x3e"+'\x3cli\x3e\x3ca href\x3d"https://www.facebook.com/sharer/sharer.php?u\x3d'+encodedShareLink+'" target\x3d"_blank"\x3e\x3cspan class\x3d"mcp-icon-facebook" title\x3d"Facebook"\x3e\x3c/span\x3e\x3c/a\x3e\x3c/li\x3e'+'\x3cli\x3e\x3ca href\x3d"https://twitter.com/share?url\x3d'+encodedShareLink+ '" target\x3d"_blank"\x3e\x3cspan class\x3d"mcp-icon-twitter" title\x3d"Twitter"\x3e\x3c/span\x3e\x3c/a\x3e\x3c/li\x3e'+'\x3cli\x3e\x3ca href\x3d"https://plus.google.com/share?url\x3d'+encodedShareLink+'" target\x3d"_blank"\x3e\x3cspan class\x3d"mcp-icon-google-plus" title\x3d"Google+"\x3e\x3c/span\x3e\x3c/a\x3e\x3c/li\x3e'+"\x3c/ul\x3e"+"\x3c/div\x3e";this.sharePanel=$(shareDiv).appendTo(mcPlayer.getContainers().playerContainerInner())},getShareLink:function(){return mcPlayer.getDomain()+"/mediacenter/mediathek/angular/facebookopengraph?id\x3d"+ mcPlayer.entryid+"\x26redirect\x3d"+$(location).attr("href")},showShare:function(){this.getVideoShownObj().addClass("mcp-share-opened");mcPlayer.hidePlayButton();mcPlayer.hideSidebar();mcPlayer.getContainers().share().panel().show();mcPlayer.getContainers().share().closeButton().removeClass("mcp-hidden")},hideShare:function(){this.getVideoShownObj().removeClass("mcp-share-opened");mcPlayer.showPlayButton();mcPlayer.getContainers().share().panel().hide();mcPlayer.getContainers().share().closeButton().addClass("mcp-hidden")}, getVideoShownObj:function(){if(mcPlayer.isVideoElement())return mcPlayer.$video;return mcPlayer.getContainers().poster()},loadEvents:function(){var that=this;mcPlayer.video.addEventListener("play",function(){mcPlayer.getContainers().sidebar().removeClass("mcp-hidden")},false);mcPlayer.video.addEventListener("ended",function(){that.hideShare();mcPlayer.getContainers().sidebar().addClass("mcp-hidden")},false);mcPlayer.$node.hover(function(){mcPlayer.showSidebar()},function(){mcPlayer.hideSidebar()})}}}, statisticPlugin:function(){var mcPlayer=this;return{reached25:false,reached50:false,reached75:false,reached100:false,firstPlay:true,eventType:{widgetLoaded:1,mediaLoaded:2,play:3,playReached25:4,playReached50:5,playReached75:6,playReached100:7,bufferStart:12,bufferEnd:13,openFullScreen:14,closeFullScreen:15,seek:17},fullScreenOpenSend:false,fullScreenCloseSend:false,ended:false,init:function(){this.request(this.eventType.mediaLoaded);this.request(this.eventType.widgetLoaded);this.loadEvents()},loadEvents:function(){var mcStatistic= this;var currentPlayedMediaId=mcPlayer.entryid;mcPlayer.video.addEventListener("play",function(){if(mcStatistic.firstPlay){mcStatistic.request(mcStatistic.eventType.play);mcStatistic.firstPlay=false}mcStatistic.request(mcStatistic.eventType.bufferStart);mcStatistic.request(mcStatistic.eventType.bufferEnd);mcStatistic.ended=false},false);mcPlayer.video.addEventListener("seeking",function(){if(!mcStatistic.ended){mcStatistic.request(mcStatistic.eventType.seek);mcStatistic.request(mcStatistic.eventType.bufferStart)}}, false);mcPlayer.video.addEventListener("seeked",function(){if(!mcStatistic.ended)mcStatistic.request(mcStatistic.eventType.bufferEnd)},false);mcPlayer.video.addEventListener("ended",function(){mcStatistic.ended=true},false);if(mcPlayer.isPlaylist())mcPlayer.video.addEventListener("loadedmetadata",function(){if(currentPlayedMediaId!==mcPlayer.entryid){mcStatistic.reset();currentPlayedMediaId=mcPlayer.entryid}},false);mcPlayer.video.addEventListener("timeupdate",function(e){var procent=mcPlayer.video.currentTime/ mcPlayer.video.duration*100;if(procent>=25&&!this.reached25){mcStatistic.request(mcStatistic.eventType.playReached25);this.reached25=true}if(procent>=50&&!this.reached50){mcStatistic.request(mcStatistic.eventType.playReached50);this.reached50=true}if(procent>=75&&!this.reached75){mcStatistic.request(mcStatistic.eventType.playReached75);this.reached75=true}if(procent>=100&&!this.reached100){mcStatistic.request(mcStatistic.eventType.playReached100);this.reached100=true}},true)},mediaelementResizeEvent:function(mediaelementPlayer){var mcStatistic= this;mediaelementPlayer.globalBind("resize",function(){if(!mcStatistic.fullScreenOpenSend&&(mediaelementPlayer.isFullScreen||mejs.MediaFeatures.hasTrueNativeFullScreen&&document.webkitIsFullScreen)){mcStatistic.request(mcStatistic.eventType.openFullScreen);mcStatistic.fullScreenOpenSend=true;mcStatistic.fullScreenCloseSend=false}else if(!mcStatistic.fullScreenCloseSend&&!(mediaelementPlayer.isFullScreen||mejs.MediaFeatures.hasTrueNativeFullScreen&&document.webkitIsFullScreen)){mcStatistic.request(mcStatistic.eventType.closeFullScreen); mcStatistic.fullScreenOpenSend=false;mcStatistic.fullScreenCloseSend=true}})},reset:function(){this.reached25=false;this.reached50=false;this.reached75=false;this.reached100=false;this.firstPlay=true},request:function(eventType){var data={"service":"stats","action":"collect","event:eventType":eventType,"event:clientVer":"2.17","event:currentPoint":parseInt(mcPlayer.video.currentTime*1E3),"event:duration":mcPlayer.media.duration,"event:eventTimestamp":Date.now(),"event:isFirstInSession":"false","event:objectType":"KalturaStatsEvent", "event:partnerId":mcPlayer.partnerid,"event:sessionId":mcPlayer.kaltura.getSessionId(),"event:uiconfId":"1","event:seek":"false","event:entryId":mcPlayer.entryid,"event:widgetId":"_"+mcPlayer.partnerid,"event:referrer":$(location).attr("href"),"apiVersion":"3.1","clientTag":"html5:v2.17","expiry":"86400","format":"9","ignoreNull":"1","ks":mcPlayer.ks};data["kalsig"]=mcPlayer.kaltura.createKalsig(mcPlayer.param(data));if(this.proxy)mcPlayer.request("https://api.sparkassen-mediacenter.de/api_v3/index.php?"+ mcPlayer.param(data))}}},endScreenPlugin:function(){var mcPlayer=this;return{init:function(){this.createScreen();this.loadClickEvents();this.loadEvents()},createScreen:function(){var htmlRelatedEntries="";$.each(mcPlayer.relatedEntries,function(index,entry){htmlRelatedEntries+='\x3ca href\x3d"#" data-id\x3d"'+entry.id+'" data-index\x3d"'+index+'"\x3e'+'\x3cdiv class\x3d"mcp-push16x9"\x3e\x3c/div\x3e'+'\x3cimg src\x3d"'+entry.thumbnail.medium+'"\x3e'+'\x3cdiv class\x3d"mcp-text"\x3e\x3cp\x3e'+entry.title+ "\x3c/p\x3e\x3c/div\x3e"+"\x3c/a\x3e"});var arrowsHtml="";if(mcPlayer.relatedEntries.length>0)arrowsHtml='\x3ca class\x3d"mcp-arrow mcp-prev mcp-icon-angle-left"\x3e\x3c/a\x3e'+'\x3ca class\x3d"mcp-arrow mcp-next mcp-icon-angle-right"\x3e\x3c/a\x3e';var contactLink=mcPlayer.contactButtonPlugin().getLink();var html='\x3cdiv class\x3d"mcp-end-screen mcp-hidden"\x3e'+'\x3cdiv class\x3d"mcp-wrapper"\x3e'+arrowsHtml+'\x3cul class\x3d"mcp-actions"\x3e'+(mcPlayer.media.contact?'\x3cli\x3e\x3ca href\x3d"'+ contactLink.href+'" target\x3d"'+contactLink.target+'" class\x3d"mcp-advice"\x3e\x3ci class\x3d"mcp-icon-advice"\x3e\x3c/i\x3e\x3cspan\x3eBeratung\x3c/span\x3e\x3c/a\x3e\x3c/li\x3e':"")+(mcPlayer.media.productLinks.length>0?'\x3cli\x3e\x3ca href\x3d"'+mcPlayer.media.productLinks[0]+'" target\x3d"_blank" class\x3d"mcp-info"\x3e\x3ci class\x3d"mcp-icon-info"\x3e\x3c/i\x3e\x3cspan\x3eInfoseite\x3c/span\x3e\x3c/a\x3e\x3c/li\x3e':"")+'\x3cli\x3e\x3ca class\x3d"mcp-share"\x3e\x3ci class\x3d"mcp-icon-share"\x3e\x3c/i\x3e\x3cspan\x3eTeilen\x3c/span\x3e\x3c/a\x3e\x3c/li\x3e'+ '\x3cli\x3e\x3ca class\x3d"mcp-repeat"\x3e\x3ci class\x3d"mcp-icon-repeat"\x3e\x3c/i\x3e\x3cspan\x3eWiederh\x3c/span\x3e\x3c/a\x3e\x3c/li\x3e'+(mcPlayer.media.downloadable&&!mcPlayer.isiOS()?'\x3cli\x3e\x3ca href\x3d"'+mcPlayer.downloadPlugin().getDownloadLink(mcPlayer.$video.attr("src"))+'" target\x3d"_blank" class\x3d"mcp-download"\x3e\x3ci class\x3d"mcp-icon-download"\x3e\x3c/i\x3e\x3cspan\x3eDownload\x3c/span\x3e\x3c/a\x3e\x3c/li\x3e':"")+"\x3c/ul\x3e"+'\x3cdiv class\x3d"mcp-carousel"\x3e'+htmlRelatedEntries+ "\x3c/div\x3e"+"\x3c/div\x3e"+"\x3c/div\x3e";this.endScreen=$(html).appendTo(mcPlayer.getContainers().playerContainerInner())},loadClickEvents:function(){var mcEndScreen=this;this.endScreen.find(".mcp-share").on("click",function(e){e.preventDefault();mcEndScreen.closeEndScreen();mcPlayer.sharePlugin().showShare()});this.endScreen.find(".mcp-repeat").on("click",function(e){e.preventDefault();mcPlayer.video.load();mcPlayer.video.play()});mcPlayer.getContainers().endScreen().arrows().on("click",function(e){e.preventDefault(); mcEndScreen.carousel()(this.className.indexOf("mcp-next")>-1?"next":"prev")});mcPlayer.getContainers().endScreen().carouselItem().on("click",function(e){e.preventDefault();mcPlayer.entryid=$(this).data("id");mcPlayer.initPlayer(mcPlayer.relatedEntries[$(this).data("index")])})},loadEvents:function(){var mcEndScreen=this;mcPlayer.video.addEventListener("play",function(){mcEndScreen.closeEndScreen()},false);mcPlayer.video.addEventListener("ended",function(){mcEndScreen.endScreen.removeClass("mcp-hidden")}, false)},closeEndScreen:function(){this.endScreen.addClass("mcp-hidden")},carousel:function(){var locked,children,carousel,width;function slide(direction){if(locked)return;locked=true;if(carousel.children.length<2)return false;itemToMove=children[0];if(direction=="next")itemToMove.style.marginLeft=-width+"px";else{var itemToMove=children[children.length-1];itemToMove.style.marginLeft=-width+"px";carousel.insertBefore(itemToMove,children[0]);setTimeout(function(){itemToMove.removeAttribute("style")}, 50);locked=false}if(direction=="next")setTimeout(function(){itemToMove.removeAttribute("style");carousel.appendChild(itemToMove);locked=false},220)}function init(){carousel=$(".mcp-end-screen .mcp-carousel")[0];children=carousel.children;width=children[0].clientWidth;for(var i=0;i759}}},downloadPlugin:function(){var mcPlayer=this;return{addButton:function(){var html='\x3ca class\x3d"mcp-download-small'+ (mcPlayer.media.downloadable?"":" mcp-hidden")+'" href\x3d"'+this.getDownloadLink()+'" target\x3d"_blank"\x3e\x3c/a\x3e';$(html).appendTo(mcPlayer.getContainers().control())},getDownloadLink:function(){return mcPlayer.getDomain()+"/mediacenter/mediathek/player/downloadFile?url\x3d"+encodeURIComponent(mcPlayer.$video.attr("src"))}}},audioPlugin:function(){var mcPlayer=this;return{createPlayButton:function(){$('\x3cdiv class\x3d"mejs-overlay mejs-layer mejs-overlay-play" style\x3d"width: 100%; height: 433px;"\x3e\x3cdiv class\x3d"mejs-overlay-button"\x3e\x3c/div\x3e\x3c/div\x3e').appendTo(mcPlayer.getContainers().layer()).on("click", function(){mcPlayer.video.play()});this.loadEvents()},loadEvents:function(){mcPlayer.video.addEventListener("play",function(){mcPlayer.hidePlayButton()});mcPlayer.video.addEventListener("pause",function(){mcPlayer.showPlayButton()})}}},alertPlugin:function(){this.createContainer();this.createPlayerContainer();var mcPlayer=this;return{expirated:function(){this.content("Beim Abspielen des Videos trat ein Fehler auf. Bitte pr\u00fcfen Sie ihre Internet-Verbindung und versuchen sie es erneut.")},unsupportedFlash:function(){this.content("Leider unterst\u00fctzt Ihr Browser keine HTML5-Videos.\x3cbr/\x3eBitte nutzen Sie eine aktuelle Browserversion.")}, content:function(message){$('\x3cdiv class\x3d"mcp-alert-container"\x3e\x3cdiv class\x3d"mcp-alert-container-inner"\x3e\x3cdiv class\x3d"mcp-alert-message"\x3e'+message+"\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e").appendTo(mcPlayer.getContainers().playerContainerInner())}}},contactButtonPlugin:function(){var mcPlayer=this;return{createInSidebar:function(){if(mcPlayer.media.contact){var link=this.getLink();$('\x3ca class\x3d"mcp-button-advice" href\x3d"'+link.href+'" target\x3d"'+link.blank+'"\x3e\x3ci class\x3d"mcp-icon-advice"\x3e\x3c/i\x3eBeratung\x3c/a\x3e').prependTo(mcPlayer.getContainers().sidebar())}}, getLink:function(){if(this.isEmail(mcPlayer.media.contact))return{"href":"mailto:"+mcPlayer.media.contact,"target":""};return{"href":mcPlayer.media.contact,"target":"_blank"}},isEmail:function(email){var re=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return re.test(email)}}},lightboxPlugin:function(){var mcPlayer=this;return{init:function(){if(mcPlayer.$node.hasClass("mcp-lightbox")){this.openLightbox(); this.removeLightbox()}},openLightbox:function(){var that=this;mcPlayer.$node.on("click",function(){if(mcPlayer.isiPhone()&&mcPlayer.isMediaVideo())mcPlayer.video.play();else that.createLightboxWindow()})},createLightboxWindow:function(){var $lightbox=$('\x3cdiv class\x3d"mcp-lightbox-window"\x3e'+'\x3cdiv class\x3d"mcp-lightbox-container"\x3e'+'\x3cdiv class\x3d"mcp-responsive"\x3e'+'\x3cdiv class\x3d"mcp-responsive-inner"\x3e'+'\x3cdiv class\x3d"mcp-lightbox-close"\x3e\x3cbutton type\x3d"button"\x3e\x3cspan\x3e\u00d7\x3c/span\x3e\x3c/button\x3e\x3c/div\x3e'+ '\x3cdiv class\x3d"mcp"\x3e\x3c/div\x3e'+"\x3c/div\x3e"+"\x3c/div\x3e"+"\x3c/div\x3e"+'\x3cdiv class\x3d"mcp-lightbox-background"\x3e\x3c/div\x3e'+"\x3c/div\x3e").appendTo(document.body);mcPlayer.createPlayer($lightbox.find(".mcp"))},removeLightbox:function(){$(document).on("click",".mcp-lightbox-close",function(){mcPlayer.$video=undefined;$(this).closest(".mcp-lightbox-window").remove()})}}}};$.fn.mcplayer=function(options){var that=this;var mcPlayerLoder={init:function(){that.each(function(){mcPlayerLoder.createPlayer(this)})}, createPlayer:function(element){$(element).data("mcplayer",new mcPlayer(element,options))}};mcPlayerLoder.init();return this};$(document).ready(function(){$(".mcp").each(function(){if($(this).data("autoload")==true)$(this).mcplayer($(this).data())})})})(window.jQuery,__webpack_require__(14),__webpack_require__(15))},17:function(module,exports,__webpack_require__){},30:function(module,exports,__webpack_require__){}});