vendor/assets/javascripts/webshims/minified/shims/combos/8.js in webshims-rails-0.4.4 vs vendor/assets/javascripts/webshims/minified/shims/combos/8.js in webshims-rails-0.4.5

- old
+ new

@@ -1,39 +2 @@ -jQuery.webshims.register("dom-extend",function(e,g,j,m,q){var x=g.modules,s=/\s*,\s*/,p={},w={},l={},y={},r={},f=e.fn.val,h=function(b,a,c,d,o){return o?f.call(e(b)):f.call(e(b),c)};e.fn.val=function(b){var a=this[0];arguments.length&&null==b&&(b="");if(!arguments.length)return!a||1!==a.nodeType?f.call(this):e.prop(a,"value",b,"val",!0);if(e.isArray(b))return f.apply(this,arguments);var c=e.isFunction(b);return this.each(function(d){a=this;1===a.nodeType&&(c?(d=b.call(a,d,e.prop(a,"value",q,"val", -!0)),null==d&&(d=""),e.prop(a,"value",d,"val")):e.prop(a,"value",b,"val"))})};var z="_webshimsLib"+Math.round(1E3*Math.random()),D=function(b,a,c){b=b.jquery?b[0]:b;if(!b)return c||{};var d=e.data(b,z);c!==q&&(d||(d=e.data(b,z,{})),a&&(d[a]=c));return a?d&&d[a]:d};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(b){e.fn[b.name]=function(){return this.map(function(){var a=D(this, -"shadowData");return a&&a[b.prop]||this})}});["removeAttr","prop","attr"].forEach(function(b){p[b]=e[b];e[b]=function(a,c,d,o,A){var B="val"==o,n=!B?p[b]:h;if(!a||!w[c]||1!==a.nodeType||!B&&o&&"attr"==b&&e.attrFn[c])return n(a,c,d,o,A);var i=(a.nodeName||"").toLowerCase(),u=l[i],C="attr"==b&&(!1===d||null===d)?"removeAttr":b,f,g,k;u||(u=l["*"]);u&&(u=u[c]);u&&(f=u[C]);if(f){if("value"==c)g=f.isVal,f.isVal=B;if("removeAttr"===C)return f.value.call(a);if(d===q)return f.get?f.get.call(a):f.value;f.set&& -("attr"==b&&!0===d&&(d=c),k=f.set.call(a,d));if("value"==c)f.isVal=g}else k=n(a,c,d,o,A);if((d!==q||"removeAttr"===C)&&r[i]&&r[i][c]){var j;j="removeAttr"==C?!1:"prop"==C?!!d:!0;r[i][c].forEach(function(i){if(!i.only||(i.only="prop"==b)||"attr"==i.only&&"prop"!=b)i.call(a,d,j,B?"val":C,b)})}return k};y[b]=function(a,c,d){l[a]||(l[a]={});l[a][c]||(l[a][c]={});var o=l[a][c][b],A=function(a,n,i){return n&&n[a]?n[a]:i&&i[a]?i[a]:"prop"==b&&"value"==c?function(a){return d.isVal?h(this,c,a,!1,0===arguments.length): -p[b](this,c,a)}:"prop"==b&&"value"==a&&d.value.apply?function(a){var i=p[b](this,c);i&&i.apply&&(i=i.apply(this,arguments));return i}:function(i){return p[b](this,c,i)}};l[a][c][b]=d;if(d.value===q){if(!d.set)d.set=d.writeable?A("set",d,o):g.cfg.useStrict&&"prop"==c?function(){throw c+" is readonly on "+a;}:e.noop;if(!d.get)d.get=A("get",d,o)}["value","get","set"].forEach(function(a){d[a]&&(d["_sup"+a]=A(a,o))})}});var E=!e.browser.msie||8<parseInt(e.browser.version,10),k=function(){var b=g.getPrototypeOf(m.createElement("foobar")), -a=Object.prototype.hasOwnProperty;return function(c,d,o){var e=m.createElement(c),f=g.getPrototypeOf(e);if(E&&f&&b!==f&&(!e[d]||!a.call(e,d))){var n=e[d];o._supvalue=function(){return n&&n.apply?n.apply(this,arguments):n};f[d]=o.value}else o._supvalue=function(){var a=D(this,"propValue");return a&&a[d]&&a[d].apply?a[d].apply(this,arguments):a&&a[d]},t.extendValue(c,d,o.value);o.value._supvalue=o._supvalue}}(),t=function(){var b={};g.addReady(function(a,c){var d={},n=function(i){d[i]||(d[i]=e(a.getElementsByTagName(i)), -c[0]&&e.nodeName(c[0],i)&&(d[i]=d[i].add(c)))};e.each(b,function(a,b){n(a);!b||!b.forEach?g.warn("Error: with "+a+"-property. methods: "+b):b.forEach(function(b){d[a].each(b)})});d=null});var a,c=e([]),d=function(c,d){b[c]?b[c].push(d):b[c]=[d];e.isDOMReady&&(a||e(m.getElementsByTagName(c))).each(d)};return{createTmpCache:function(b){e.isDOMReady&&(a=a||e(m.getElementsByTagName(b)));return a||c},flushTmpCache:function(){a=null},content:function(a,b){d(a,function(){var a=e.attr(this,b);null!=a&&e.attr(this, -b,a)})},createElement:function(a,b){d(a,b)},extendValue:function(a,b,c){d(a,function(){e(this).each(function(){D(this,"propValue",{})[b]=this[b];this[b]=c})})}}}(),v=function(b,a){if(b.defaultValue===q)b.defaultValue="";if(!b.removeAttr)b.removeAttr={value:function(){b[a||"prop"].set.call(this,b.defaultValue);b.removeAttr._supvalue.call(this)}};if(!b.attr)b.attr={}};e.extend(g,{getID:function(){var b=(new Date).getTime();return function(a){var a=e(a),c=a.attr("id");c||(b++,c="ID-"+b,a.attr("id",c)); -return c}}(),extendUNDEFProp:function(b,a){e.each(a,function(a,d){a in b||(b[a]=d)})},createPropDefault:v,data:D,moveToFirstEvent:function(){var b=e._data?"_data":"data";return function(a,c,d){if((a=(e[b](a,"events")||{})[c])&&1<a.length)c=a.pop(),d||(d="bind"),"bind"==d&&a.delegateCount?a.splice(a.delegateCount,0,c):a.unshift(c)}}(),addShadowDom:function(){var b,a,c,d={init:!1,runs:0,test:function(){var a=d.getHeight(),b=d.getWidth();a!=d.height||b!=d.width?(d.height=a,d.width=b,d.handler({type:"docresize"}), -d.runs++,30>d.runs&&setTimeout(d.test,30)):d.runs=0},handler:function(o){clearTimeout(b);b=setTimeout(function(){if("resize"==o.type){var b=e(j).width(),f=e(j).width();if(f==a&&b==c)return;a=f;c=b;d.height=d.getHeight();d.width=d.getWidth()}e.event.trigger("updateshadowdom")},"resize"==o.type?50:9)},_create:function(){e.each({Height:"getHeight",Width:"getWidth"},function(a,b){var c=m.body,n=m.documentElement;d[b]=function(){return Math.max(c["scroll"+a],n["scroll"+a],c["offset"+a],n["offset"+a],n["client"+ -a])}})},start:function(){if(!this.init&&m.body)this.init=!0,this._create(),this.height=d.getHeight(),this.width=d.getWidth(),setInterval(this.test,400),e(this.test),e(j).bind("load",this.test),e(j).bind("resize",this.handler),function(){var a=e.fn.animate,b;e.fn.animate=function(){clearTimeout(b);b=setTimeout(function(){d.test();d.handler({type:"animationstart"})},19);return a.apply(this,arguments)}}()}};e.event.customEvent.updateshadowdom=!0;g.docObserve=function(){g.ready("DOM",function(){d.start()})}; -return function(a,b,c){c=c||{};a.jquery&&(a=a[0]);b.jquery&&(b=b[0]);var d=e.data(a,z)||e.data(a,z,{}),i=e.data(b,z)||e.data(b,z,{}),u={};if(c.shadowFocusElement){if(c.shadowFocusElement){if(c.shadowFocusElement.jquery)c.shadowFocusElement=c.shadowFocusElement[0];u=e.data(c.shadowFocusElement,z)||e.data(c.shadowFocusElement,z,u)}}else c.shadowFocusElement=b;d.hasShadow=b;u.nativeElement=i.nativeElement=a;u.shadowData=i.shadowData=d.shadowData={nativeElement:a,shadowElement:b,shadowFocusElement:c.shadowFocusElement}; -c.shadowChilds&&c.shadowChilds.each(function(){D(this,"shadowData",i.shadowData)});if(c.data)u.shadowData.data=i.shadowData.data=d.shadowData.data=c.data;c=null;g.docObserve()}}(),propTypes:{standard:function(b){v(b);if(!b.prop)b.prop={set:function(a){b.attr.set.call(this,""+a)},get:function(){return b.attr.get.call(this)||b.defaultValue}}},"boolean":function(b){v(b);if(!b.prop)b.prop={set:function(a){a?b.attr.set.call(this,""):b.removeAttr.value.call(this)},get:function(){return null!=b.attr.get.call(this)}}}, -src:function(){var b=m.createElement("a");b.style.display="none";return function(a,c){v(a);if(!a.prop)a.prop={set:function(b){a.attr.set.call(this,b)},get:function(){var a=this.getAttribute(c),f;if(null==a)return"";b.setAttribute("href",a+"");if(!e.support.hrefNormalized){try{e(b).insertAfter(this),f=b.getAttribute("href",4)}catch(h){f=b.getAttribute("href",4)}e(b).detach()}return f||b.href}}}}(),enumarated:function(b){v(b);if(!b.prop)b.prop={set:function(a){b.attr.set.call(this,a)},get:function(){var a= -(b.attr.get.call(this)||"").toLowerCase();if(!a||-1==b.limitedTo.indexOf(a))a=b.defaultValue;return a}}}},reflectProperties:function(b,a){"string"==typeof a&&(a=a.split(s));a.forEach(function(a){g.defineNodeNamesProperty(b,a,{prop:{set:function(b){e.attr(this,a,b)},get:function(){return e.attr(this,a)||""}}})})},defineNodeNameProperty:function(b,a,c){w[a]=!0;if(c.reflect)g.propTypes[c.propType||"standard"](c,a);["prop","attr","removeAttr"].forEach(function(d){var f=c[d];f&&(f="prop"===d?e.extend({writeable:!0}, -f):e.extend({},f,{writeable:!0}),y[d](b,a,f),"*"!=b&&g.cfg.extendNative&&"prop"==d&&f.value&&e.isFunction(f.value)&&k(b,a,f),c[d]=f)});c.initAttr&&t.content(b,a);return c},defineNodeNameProperties:function(b,a,c,d){for(var e in a)!d&&a[e].initAttr&&t.createTmpCache(b),c&&!a[e][c]&&(a[e][c]={},["value","set","get"].forEach(function(b){b in a[e]&&(a[e][c][b]=a[e][b],delete a[e][b])})),a[e]=g.defineNodeNameProperty(b,e,a[e]);d||t.flushTmpCache();return a},createElement:function(b,a,c){var d;e.isFunction(a)&& -(a={after:a});t.createTmpCache(b);a.before&&t.createElement(b,a.before);c&&(d=g.defineNodeNameProperties(b,c,!1,!0));a.after&&t.createElement(b,a.after);t.flushTmpCache();return d},onNodeNamesPropertyModify:function(b,a,c,d){"string"==typeof b&&(b=b.split(s));e.isFunction(c)&&(c={set:c});b.forEach(function(b){r[b]||(r[b]={});"string"==typeof a&&(a=a.split(s));c.initAttr&&t.createTmpCache(b);a.forEach(function(a){r[b][a]||(r[b][a]=[],w[a]=!0);if(c.set){if(d)c.set.only=d;r[b][a].push(c.set)}c.initAttr&& -t.content(b,a)});t.flushTmpCache()})},defineNodeNamesBooleanProperty:function(b,a,c){c||(c={});if(e.isFunction(c))c.set=c;g.defineNodeNamesProperty(b,a,{attr:{set:function(b){this.setAttribute(a,b);c.set&&c.set.call(this,!0)},get:function(){return null==this.getAttribute(a)?q:a}},removeAttr:{value:function(){this.removeAttribute(a);c.set&&c.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:c.initAttr||!1})},contentAttr:function(b,a,c){if(b.nodeName){if(c===q)return b=b.attributes[a]||{}, -c=b.specified?b.value:null,null==c?q:c;"boolean"==typeof c?c?b.setAttribute(a,a):b.removeAttribute(a):b.setAttribute(a,c)}},activeLang:function(){var b=[],a={},c,d,f=/:\/\/|^\.*\//,h=function(a,b,c){return b&&c&&-1!==e.inArray(b,c.availabeLangs||[])?(a.loading=!0,c=c.langSrc,f.test(c)||(c=g.cfg.basePath+c),g.loader.loadScript(c+b+".js",function(){a.langObj[b]?(a.loading=!1,n(a,!0)):e(function(){a.langObj[b]&&n(a,!0);a.loading=!1})}),!0):!1},k=function(b){a[b]&&a[b].forEach(function(a){a.callback()})}, -n=function(a,b){if(a.activeLang!=c&&a.activeLang!==d){var n=x[a.module].options;if(a.langObj[c]||d&&a.langObj[d])a.activeLang=c,a.callback(a.langObj[c]||a.langObj[d],c),k(a.module);else if(!b&&!h(a,c,n)&&!h(a,d,n)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],c),k(a.module)}};return function(i){if("string"==typeof i&&i!==c)c=i,d=c.split("-")[0],c==d&&(d=!1),e.each(b,function(a,b){n(b)});else if("object"==typeof i)if(i.register)a[i.register]||(a[i.register]=[]),a[i.register].push(i), -i.callback();else{if(!i.activeLang)i.activeLang="";b.push(i);n(i)}return c}}()});e.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(b,a){g[b]=function(b,d,e,f){"string"==typeof b&&(b=b.split(s));var h={};b.forEach(function(b){h[b]=g[a](b,d,e,f)});return h}});g.isReady("webshimLocalization",!0)}); -(function(e,g){var j=e.webshims.browserVersion;if(!(e.browser.mozilla&&5<j)&&(!e.browser.msie||12>j&&7<j)){var m={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},q=function(e,g){e.getAttribute("role")||e.setAttribute("role",g)};e.webshims.addReady(function(j,s){e.each(m,function(g,l){for(var f=e(g,j).add(s.filter(g)),h=0,m=f.length;h<m;h++)q(f[h],l)});if(j===g){var p=g.getElementsByTagName("header")[0],w=g.getElementsByTagName("footer"),l=w.length; -p&&!e(p).closest("section, article")[0]&&q(p,"banner");l&&(p=w[l-1],e(p).closest("section, article")[0]||q(p,"contentinfo"))}})}})(jQuery,document); -(function(e,g,j){var m=g.audio&&g.video,q=!1,x=j.cfg.mediaelement,s=j.bugs,p="jwplayer"==x.player?"mediaelement-swf":"mediaelement-jaris",w=function(){j.ready(p,function(){if(!j.mediaelement.createSWF)j.mediaelement.loadSwf=!0,j.reTest([p],m)})},l;if(m){var y=document.createElement("video");g.videoBuffered="buffered"in y;q="loop"in y;j.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(","));g.videoBuffered||(j.addPolyfill("mediaelement-native-fix", -{f:"mediaelement",test:g.videoBuffered,d:["dom-support"]}),j.reTest("mediaelement-native-fix"))}if(m&&!x.preferFlash){var r=function(f){var h=f.target.parentNode;!x.preferFlash&&(e(f.target).is("audio, video")||h&&e("source:last",h)[0]==f.target)&&j.ready("DOM mediaelement",function(){l&&w();j.ready("WINDOWLOAD "+p,function(){setTimeout(function(){l&&!x.preferFlash&&j.mediaelement.createSWF&&!e(f.target).closest("audio, video").is(".nonnative-api-active")?(x.preferFlash=!0,document.removeEventListener("error", -r,!0),e("audio, video").mediaLoad(),j.info("switching mediaelements option to 'preferFlash', due to an error with native player: "+f.target.src)):l||document.removeEventListener("error",r,!0)},20)})})};document.addEventListener("error",r,!0);e("audio, video").each(function(){this.error&&r({target:this})})}s.track=!1;g.track&&function(){if(!s.track)s.track="number"!=typeof e("<track />")[0].readyState;if(!s.track)try{new TextTrackCue(2,3,"")}catch(f){s.track=!0}var h=j.cfg.track,g=function(f){e(f.target).filter("track").each(l)}, -l=function(){if(s.track||!h.override&&3==e.prop(this,"readyState"))h.override=!0,j.reTest("track"),document.removeEventListener("error",g,!0),this&&e.nodeName(this,"track")?j.error("track support was overwritten. Please check your vtt including your vtt mime-type"):j.info("track support was overwritten. due to bad browser support")},m=function(){document.addEventListener("error",g,!0);s.track?l():e("track").each(l)};h.override||(j.isReady("track")?m():e(m))}();j.register("mediaelement-core",function(e, -h,j,r,y){l=swfobject.hasFlashPlayerVersion("9.0.115");var k=h.mediaelement,t=function(a,b){var a=e(a),c={src:a.attr("src")||"",elem:a,srcProp:a.prop("src")};if(!c.src)return c;var d=a.attr("type");if(d)c.type=d,c.container=e.trim(d.split(";")[0]);else if(b||(b=a[0].nodeName.toLowerCase(),"source"==b&&(b=(a.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),d=k.getTypeForSrc(c.src,b))c.type=d,c.container=d;if(d=a.attr("media"))c.media=d;return c},v=!l&&"postMessage"in j&&m,b= -function(){var a;return function(){!a&&v&&(a=!0,h.loader.loadScript("https://www.youtube.com/player_api"),e(function(){h.polyfill("mediaelement-yt")}))}}(),a=function(){l?w():b()};h.addPolyfill("mediaelement-yt",{test:!v,d:["dom-support"]});k.mimeTypes={audio:{"audio/ogg":["ogg","oga","ogm"],'audio/ogg;codecs="opus"':"opus","audio/mpeg":["mp2","mp3","mpga","mpega"],"audio/mp4":"mp4,mpg4,m4r,m4a,m4p,m4b,aac".split(","),"audio/wav":["wav"],"audio/3gpp":["3gp","3gpp"],"audio/webm":["webm"],"audio/fla":["flv", -"f4a","fla"],"application/x-mpegURL":["m3u8","m3u"]},video:{"video/ogg":["ogg","ogv","ogm"],"video/mpeg":["mpg","mpeg","mpe"],"video/mp4":["mp4","mpg4","m4v"],"video/quicktime":["mov","qt"],"video/x-msvideo":["avi"],"video/x-ms-asf":["asf","asx"],"video/flv":["flv","f4v"],"video/3gpp":["3gp","3gpp"],"video/webm":["webm"],"application/x-mpegURL":["m3u8","m3u"],"video/MP2T":["ts"]}};k.mimeTypes.source=e.extend({},k.mimeTypes.audio,k.mimeTypes.video);k.getTypeForSrc=function(a,b){if(-1!=a.indexOf("youtube.com/watch?")|| --1!=a.indexOf("youtube.com/v/"))return"video/youtube";var a=a.split("?")[0].split("."),a=a[a.length-1],c;e.each(k.mimeTypes[b],function(b,e){if(-1!==e.indexOf(a))return c=b,!1});return c};k.srces=function(a,b){a=e(a);if(b)a.removeAttr("src").removeAttr("type").find("source").remove(),e.isArray(b)||(b=[b]),b.forEach(function(b){var c=r.createElement("source");"string"==typeof b&&(b={src:b});c.setAttribute("src",b.src);b.type&&c.setAttribute("type",b.type);b.media&&c.setAttribute("media",b.media);a.append(c)}); -else{var b=[],c=a[0].nodeName.toLowerCase(),d=t(a,c);d.src?b.push(d):e("source",a).each(function(){d=t(this,c);d.src&&b.push(d)});return b}};e.fn.loadMediaSrc=function(a,b){return this.each(function(){b!==y&&(e(this).removeAttr("poster"),b&&e.attr(this,"poster",b));k.srces(this,a);e(this).mediaLoad()})};k.swfMimeTypes="video/3gpp,video/x-msvideo,video/quicktime,video/x-m4v,video/mp4,video/m4p,video/x-flv,video/flv,audio/mpeg,audio/aac,audio/mp4,audio/x-m4a,audio/m4a,audio/mp3,audio/x-fla,audio/fla,youtube/flv,jwplayer/jwplayer,video/youtube".split(","); -k.canThirdPlaySrces=function(a,b){var c="";if(l||v)a=e(a),b=b||k.srces(a),e.each(b,function(a,b){if(b.container&&b.src&&(l&&-1!=k.swfMimeTypes.indexOf(b.container)||v&&"video/youtube"==b.container))return c=b,!1});return c};var c={};k.canNativePlaySrces=function(a,b){var d="";if(m){var a=e(a),h=(a[0].nodeName||"").toLowerCase();if(!c[h])return d;b=b||k.srces(a);e.each(b,function(b,e){if(e.type&&c[h].prop._supvalue.call(a[0],e.type))return d=e,!1})}return d};k.setError=function(a,b){b||(b="can't play sources"); -e(a).pause().data("mediaerror",b);h.warn("mediaelementError: "+b);setTimeout(function(){e(a).data("mediaerror")&&e(a).trigger("mediaerror")},1)};var d=function(){var c;return function(e,f,g){h.ready(l?p:"mediaelement-yt",function(){k.createSWF?k.createSWF(e,f,g):c||(c=!0,a(),d(e,f,g))});!c&&v&&!k.createSWF&&b()}}(),o=function(a,b,c,e,f){c||!1!==c&&b&&"third"==b.isActive?(c=k.canThirdPlaySrces(a,e))?d(a,c,b):f?k.setError(a,!1):o(a,b,!1,e,!0):(c=k.canNativePlaySrces(a,e))?b&&"third"==b.isActive&&k.setActive(a, -"html5",b):f?(k.setError(a,!1),b&&"third"==b.isActive&&k.setActive(a,"html5",b)):o(a,b,!0,e,!0)},A=/^(?:embed|object|datalist)$/i,B=function(a,b){var c=h.data(a,"mediaelementBase")||h.data(a,"mediaelementBase",{}),d=k.srces(a),g=a.parentNode;clearTimeout(c.loadTimer);e.data(a,"mediaerror",!1);if(d.length&&g&&!(1!=g.nodeType||A.test(g.nodeName||"")))b=b||h.data(a,"mediaelement"),o(a,b,x.preferFlash||y,d)};e(r).on("ended",function(a){var b=h.data(a.target,"mediaelement");(!q||b&&"html5"!=b.isActive|| -e.prop(a.target,"loop"))&&setTimeout(function(){!e.prop(a.target,"paused")&&e.prop(a.target,"loop")&&e(a.target).prop("currentTime",0).play()},1)});q||h.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(a){var b=h.defineNodeNameProperty(a,"load",{prop:{value:function(){var a=h.data(this,"mediaelement");B(this,a);m&&(!a||"html5"==a.isActive)&&b.prop._supvalue&&b.prop._supvalue.apply(this,arguments)}}});c[a]=h.defineNodeNameProperty(a,"canPlayType",{prop:{value:function(b){var d= -"";m&&c[a].prop._supvalue&&(d=c[a].prop._supvalue.call(this,b),"no"==d&&(d=""));!d&&l&&(b=e.trim((b||"").split(";")[0]),-1!=k.swfMimeTypes.indexOf(b)&&(d="maybe"));return d}}})});h.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var a=this,b=h.data(a,"mediaelementBase")||h.data(a,"mediaelementBase",{});clearTimeout(b.loadTimer);b.loadTimer=setTimeout(function(){B(a);a=null},9)}});j=function(){h.addReady(function(a,b){e("video, audio",a).add(b.filter("video, audio")).each(function(){e.browser.msie&& -8<h.browserVersion&&e.prop(this,"paused")&&!e.prop(this,"readyState")&&e(this).is('audio[preload="none"][controls]:not([autoplay])')?e(this).prop("preload","metadata").mediaLoad():B(this);if(m){var a,b,c=this,d=function(){var a=e.prop(c,"buffered");if(a){for(var b="",d=0,g=a.length;d<g;d++)b+=a.end(d);return b}},g=function(){var a=d();a!=b&&(b=a,e(c).triggerHandler("progress"))};e(this).on({"play loadstart progress":function(c){"progress"==c.type&&(b=d());clearTimeout(a);a=setTimeout(g,999)},"emptied stalled mediaerror abort suspend":function(c){"emptied"== -c.type&&(b=!1);clearTimeout(a)}})}})})};g.track&&!s.track&&h.defineProperty(TextTrack.prototype,"shimActiveCues",{get:function(){return this._shimActiveCues||this.activeCues}});m?(h.isReady("mediaelement-core",!0),j(),h.ready("WINDOWLOAD mediaelement",a)):h.ready(p,j);e(function(){h.loader.loadList(["track-ui"])})})})(jQuery,Modernizr,jQuery.webshims); +jQuery.webshims.register("dom-extend",function(e,t,n,r,i){"use strict";var s=t.modules,o=/\s*,\s*/,u={},a={},f={},l={},c={},h=e.fn.val,p=function(t,n,r,i,s){return s?h.call(e(t)):h.call(e(t),r)};e.fn.val=function(t){var n=this[0];arguments.length&&t==null&&(t="");if(!arguments.length)return!n||n.nodeType!==1?h.call(this):e.prop(n,"value",t,"val",!0);if(e.isArray(t))return h.apply(this,arguments);var r=e.isFunction(t);return this.each(function(s){n=this;if(n.nodeType===1)if(r){var o=t.call(n,s,e.prop(n,"value",i,"val",!0));o==null&&(o=""),e.prop(n,"value",o,"val")}else e.prop(n,"value",t,"val")})};var d="_webshimsLib"+Math.round(Math.random()*1e3),v=function(t,n,r){t=t.jquery?t[0]:t;if(!t)return r||{};var s=e.data(t,d);return r!==i&&(s||(s=e.data(t,d,{})),n&&(s[n]=r)),n?s&&s[n]:s};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(t){e.fn[t.name]=function(){return this.map(function(){var e=v(this,"shadowData");return e&&e[t.prop]||this})}}),["removeAttr","prop","attr"].forEach(function(n){u[n]=e[n],e[n]=function(t,r,s,o,l){var h=o=="val",d=h?p:u[n];if(!t||!a[r]||t.nodeType!==1||!h&&o&&n=="attr"&&e.attrFn[r])return d(t,r,s,o,l);var v=(t.nodeName||"").toLowerCase(),m=f[v],g=n!="attr"||s!==!1&&s!==null?n:"removeAttr",y,b,w;m||(m=f["*"]),m&&(m=m[r]),m&&(y=m[g]);if(y){r=="value"&&(b=y.isVal,y.isVal=h);if(g==="removeAttr")return y.value.call(t);if(s===i)return y.get?y.get.call(t):y.value;y.set&&(n=="attr"&&s===!0&&(s=r),w=y.set.call(t,s)),r=="value"&&(y.isVal=b)}else w=d(t,r,s,o,l);if((s!==i||g==="removeAttr")&&c[v]&&c[v][r]){var E;g=="removeAttr"?E=!1:g=="prop"?E=!!s:E=!0,c[v][r].forEach(function(e){(!e.only||(e.only=n=="prop")||e.only=="attr"&&n!="prop")&&e.call(t,s,E,h?"val":g,n)})}return w},l[n]=function(r,s,o){f[r]||(f[r]={}),f[r][s]||(f[r][s]={});var a=f[r][s][n],l=function(e,t,r){return t&&t[e]?t[e]:r&&r[e]?r[e]:n=="prop"&&s=="value"?function(e){var t=this;return o.isVal?p(t,s,e,!1,arguments.length===0):u[n](t,s,e)}:n=="prop"&&e=="value"&&o.value.apply?function(e){var t=u[n](this,s);return t&&t.apply&&(t=t.apply(this,arguments)),t}:function(e){return u[n](this,s,e)}};f[r][s][n]=o,o.value===i&&(o.set||(o.set=o.writeable?l("set",o,a):t.cfg.useStrict&&s=="prop"?function(){throw s+" is readonly on "+r}:e.noop),o.get||(o.get=l("get",o,a))),["value","get","set"].forEach(function(e){o[e]&&(o["_sup"+e]=l(e,a))})}});var m=!e.browser.msie||parseInt(e.browser.version,10)>8,g=function(){var e=t.getPrototypeOf(r.createElement("foobar")),n=Object.prototype.hasOwnProperty;return function(i,s,o){var u=r.createElement(i),a=t.getPrototypeOf(u);if(m&&a&&e!==a&&(!u[s]||!n.call(u,s))){var f=u[s];o._supvalue=function(){return f&&f.apply?f.apply(this,arguments):f},a[s]=o.value}else o._supvalue=function(){var e=v(this,"propValue");return e&&e[s]&&e[s].apply?e[s].apply(this,arguments):e&&e[s]},y.extendValue(i,s,o.value);o.value._supvalue=o._supvalue}}(),y=function(){var n={};t.addReady(function(r,i){var s={},o=function(t){s[t]||(s[t]=e(r.getElementsByTagName(t)),i[0]&&e.nodeName(i[0],t)&&(s[t]=s[t].add(i)))};e.each(n,function(e,n){o(e);if(!n||!n.forEach){t.warn("Error: with "+e+"-property. methods: "+n);return}n.forEach(function(t){s[e].each(t)})}),s=null});var i,s=e([]),o=function(t,s){n[t]?n[t].push(s):n[t]=[s],e.isDOMReady&&(i||e(r.getElementsByTagName(t))).each(s)},u={};return{createTmpCache:function(t){return e.isDOMReady&&(i=i||e(r.getElementsByTagName(t))),i||s},flushTmpCache:function(){i=null},content:function(t,n){o(t,function(){var t=e.attr(this,n);t!=null&&e.attr(this,n,t)})},createElement:function(e,t){o(e,t)},extendValue:function(t,n,r){o(t,function(){e(this).each(function(){var e=v(this,"propValue",{});e[n]=this[n],this[n]=r})})}}}(),b=function(e,t){e.defaultValue===i&&(e.defaultValue=""),e.removeAttr||(e.removeAttr={value:function(){e[t||"prop"].set.call(this,e.defaultValue),e.removeAttr._supvalue.call(this)}}),e.attr||(e.attr={})};e.extend(t,{getID:function(){var t=(new Date).getTime();return function(n){n=e(n);var r=n.attr("id");return r||(t++,r="ID-"+t,n.attr("id",r)),r}}(),extendUNDEFProp:function(t,n){e.each(n,function(e,n){e in t||(t[e]=n)})},createPropDefault:b,data:v,moveToFirstEvent:function(t,n,r){var i=(e._data(t,"events")||{})[n],s;i&&i.length>1&&(s=i.pop(),r||(r="bind"),r=="bind"&&i.delegateCount?i.splice(i.delegateCount,0,s):i.unshift(s)),t=null},addShadowDom:function(){var i,s,o,u={init:!1,runs:0,test:function(){var e=u.getHeight(),t=u.getWidth();e!=u.height||t!=u.width?(u.height=e,u.width=t,u.handler({type:"docresize"}),u.runs++,u.runs<9&&setTimeout(u.test,90)):u.runs=0},handler:function(t){clearTimeout(i),i=setTimeout(function(){if(t.type=="resize"){var r=e(n).width(),i=e(n).width();if(i==s&&r==o)return;s=i,o=r,u.height=u.getHeight(),u.width=u.getWidth()}e.event.trigger("updateshadowdom")},t.type=="resize"?50:9)},_create:function(){e.each({Height:"getHeight",Width:"getWidth"},function(e,t){var n=r.body,i=r.documentElement;u[t]=function(){return Math.max(n["scroll"+e],i["scroll"+e],n["offset"+e],i["offset"+e],i["client"+e])}})},start:function(){!this.init&&r.body&&(this.init=!0,this._create(),this.height=u.getHeight(),this.width=u.getWidth(),setInterval(this.test,600),e(this.test),t.ready("WINDOWLOAD",this.test),e(n).bind("resize",this.handler),function(){var t=e.fn.animate,n;e.fn.animate=function(){return clearTimeout(n),n=setTimeout(function(){u.test()},99),t.apply(this,arguments)}}())}};return e.event.customEvent.updateshadowdom=!0,t.docObserve=function(){t.ready("DOM",function(){u.start()})},function(n,r,i){i=i||{},n.jquery&&(n=n[0]),r.jquery&&(r=r[0]);var s=e.data(n,d)||e.data(n,d,{}),o=e.data(r,d)||e.data(r,d,{}),u={};i.shadowFocusElement?i.shadowFocusElement&&(i.shadowFocusElement.jquery&&(i.shadowFocusElement=i.shadowFocusElement[0]),u=e.data(i.shadowFocusElement,d)||e.data(i.shadowFocusElement,d,u)):i.shadowFocusElement=r,s.hasShadow=r,u.nativeElement=o.nativeElement=n,u.shadowData=o.shadowData=s.shadowData={nativeElement:n,shadowElement:r,shadowFocusElement:i.shadowFocusElement},i.shadowChilds&&i.shadowChilds.each(function(){v(this,"shadowData",o.shadowData)}),i.data&&(u.shadowData.data=o.shadowData.data=s.shadowData.data=i.data),i=null,t.docObserve()}}(),propTypes:{standard:function(e,t){b(e);if(e.prop)return;e.prop={set:function(t){e.attr.set.call(this,""+t)},get:function(){return e.attr.get.call(this)||e.defaultValue}}},"boolean":function(e,t){b(e);if(e.prop)return;e.prop={set:function(t){t?e.attr.set.call(this,""):e.removeAttr.value.call(this)},get:function(){return e.attr.get.call(this)!=null}}},src:function(){var t=r.createElement("a");return t.style.display="none",function(n,r){b(n);if(n.prop)return;n.prop={set:function(e){n.attr.set.call(this,e)},get:function(){var n=this.getAttribute(r),i;if(n==null)return"";t.setAttribute("href",n+"");if(!e.support.hrefNormalized){try{e(t).insertAfter(this),i=t.getAttribute("href",4)}catch(s){i=t.getAttribute("href",4)}e(t).detach()}return i||t.href}}}}(),enumarated:function(e,t){b(e);if(e.prop)return;e.prop={set:function(t){e.attr.set.call(this,t)},get:function(){var t=(e.attr.get.call(this)||"").toLowerCase();if(!t||e.limitedTo.indexOf(t)==-1)t=e.defaultValue;return t}}}},reflectProperties:function(n,r){typeof r=="string"&&(r=r.split(o)),r.forEach(function(r){t.defineNodeNamesProperty(n,r,{prop:{set:function(t){e.attr(this,r,t)},get:function(){return e.attr(this,r)||""}}})})},defineNodeNameProperty:function(n,r,i){return a[r]=!0,i.reflect&&t.propTypes[i.propType||"standard"](i,r),["prop","attr","removeAttr"].forEach(function(s){var o=i[s];o&&(s==="prop"?o=e.extend({writeable:!0},o):o=e.extend({},o,{writeable:!0}),l[s](n,r,o),n!="*"&&t.cfg.extendNative&&s=="prop"&&o.value&&e.isFunction(o.value)&&g(n,r,o),i[s]=o)}),i.initAttr&&y.content(n,r),i},defineNodeNameProperties:function(e,n,r,i){var s;for(var o in n)!i&&n[o].initAttr&&y.createTmpCache(e),r&&(n[o][r]||(n[o][r]={},["value","set","get"].forEach(function(e){e in n[o]&&(n[o][r][e]=n[o][e],delete n[o][e])}))),n[o]=t.defineNodeNameProperty(e,o,n[o]);return i||y.flushTmpCache(),n},createElement:function(n,r,i){var s;return e.isFunction(r)&&(r={after:r}),y.createTmpCache(n),r.before&&y.createElement(n,r.before),i&&(s=t.defineNodeNameProperties(n,i,!1,!0)),r.after&&y.createElement(n,r.after),y.flushTmpCache(),s},onNodeNamesPropertyModify:function(t,n,r,i){typeof t=="string"&&(t=t.split(o)),e.isFunction(r)&&(r={set:r}),t.forEach(function(e){c[e]||(c[e]={}),typeof n=="string"&&(n=n.split(o)),r.initAttr&&y.createTmpCache(e),n.forEach(function(t){c[e][t]||(c[e][t]=[],a[t]=!0),r.set&&(i&&(r.set.only=i),c[e][t].push(r.set)),r.initAttr&&y.content(e,t)}),y.flushTmpCache()})},defineNodeNamesBooleanProperty:function(n,r,s){s||(s={}),e.isFunction(s)&&(s.set=s),t.defineNodeNamesProperty(n,r,{attr:{set:function(e){this.setAttribute(r,e),s.set&&s.set.call(this,!0)},get:function(){var e=this.getAttribute(r);return e==null?i:r}},removeAttr:{value:function(){this.removeAttribute(r),s.set&&s.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:s.initAttr||!1})},contentAttr:function(e,t,n){if(!e.nodeName)return;var r;if(n===i)return r=e.attributes[t]||{},n=r.specified?r.value:null,n==null?i:n;typeof n=="boolean"?n?e.setAttribute(t,t):e.removeAttribute(t):e.setAttribute(t,n)},activeLang:function(){var n=[],r={},i,o,u=/:\/\/|^\.*\//,a=function(n,r,i){var s;return r&&i&&e.inArray(r,i.availabeLangs||[])!==-1?(n.loading=!0,s=i.langSrc,u.test(s)||(s=t.cfg.basePath+s),t.loader.loadScript(s+r+".js",function(){n.langObj[r]?(n.loading=!1,l(n,!0)):e(function(){n.langObj[r]&&l(n,!0),n.loading=!1})}),!0):!1},f=function(e){r[e]&&r[e].forEach(function(e){e.callback()})},l=function(e,t){if(e.activeLang!=i&&e.activeLang!==o){var n=s[e.module].options;e.langObj[i]||o&&e.langObj[o]?(e.activeLang=i,e.callback(e.langObj[i]||e.langObj[o],i),f(e.module)):!t&&!a(e,i,n)&&!a(e,o,n)&&e.langObj[""]&&e.activeLang!==""&&(e.activeLang="",e.callback(e.langObj[""],i),f(e.module))}},c=function(t){return typeof t=="string"&&t!==i?(i=t,o=i.split("-")[0],i==o&&(o=!1),e.each(n,function(e,t){l(t)})):typeof t=="object"&&(t.register?(r[t.register]||(r[t.register]=[]),r[t.register].push(t),t.callback()):(t.activeLang||(t.activeLang=""),n.push(t),l(t))),i};return c}()}),e.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(e,n){t[e]=function(e,r,i,s){typeof e=="string"&&(e=e.split(o));var u={};return e.forEach(function(e){u[e]=t[n](e,r,i,s)}),u}}),t.isReady("webshimLocalization",!0)}),function(e,t){var n=e.webshims.browserVersion;if(e.browser.mozilla&&n>5)return;if(!e.browser.msie||n<12&&n>7){var r={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},i=function(e,t){var n=e.getAttribute("role");n||e.setAttribute("role",t)};e.webshims.addReady(function(n,s){e.each(r,function(t,r){var o=e(t,n).add(s.filter(t));for(var u=0,a=o.length;u<a;u++)i(o[u],r)});if(n===t){var o=t.getElementsByTagName("header")[0],u=t.getElementsByTagName("footer"),a=u.length;o&&!e(o).closest("section, article")[0]&&i(o,"banner");if(!a)return;var f=u[a-1];e(f).closest("section, article")[0]||i(f,"contentinfo")}})}}(jQuery,document),function(e,t,n){"use strict";var r=t.audio&&t.video,i=!1,s=n.bugs,o=function(){n.ready(a,function(){n.mediaelement.createSWF||(n.mediaelement.loadSwf=!0,n.reTest([a],r))})},u=n.cfg.mediaelement,a=u&&u.player=="jwplayer"?"mediaelement-swf":"mediaelement-jaris",f;if(!u){n.error("mediaelement wasn't implemented but loaded");return}if(r){var l=document.createElement("video");t.videoBuffered="buffered"in l,i="loop"in l,n.capturingEvents(["play","playing","waiting","paused","ended","durationchange","loadedmetadata","canplay","volumechange"]),t.videoBuffered||(n.addPolyfill("mediaelement-native-fix",{f:"mediaelement",test:t.videoBuffered,d:["dom-support"]}),n.reTest("mediaelement-native-fix"))}if(r&&!u.preferFlash){var c=function(t){var r=t.target.parentNode;!u.preferFlash&&(e(t.target).is("audio, video")||r&&e("source:last",r)[0]==t.target)&&n.ready("DOM mediaelement",function(){f&&o(),n.ready("WINDOWLOAD "+a,function(){setTimeout(function(){f&&!u.preferFlash&&n.mediaelement.createSWF&&!e(t.target).closest("audio, video").is(".nonnative-api-active")?(u.preferFlash=!0,document.removeEventListener("error",c,!0),e("audio, video").mediaLoad(),n.info("switching mediaelements option to 'preferFlash', due to an error with native player: "+t.target.src)):f||document.removeEventListener("error",c,!0)},20)})})};document.addEventListener("error",c,!0),e("audio, video").each(function(){this.error&&c({target:this})})}t.track&&!s.track&&function(){s.track||(s.track=typeof e("<track />")[0].readyState!="number");if(!s.track)try{new TextTrackCue(2,3,"")}catch(t){s.track=!0}var r=n.cfg.track,i=function(t){e(t.target).filter("track").each(o)},o=function(){if(s.track||!r.override&&e.prop(this,"readyState")==3)r.override=!0,n.reTest("track"),document.removeEventListener("error",i,!0),this&&e.nodeName(this,"track")?n.error("track support was overwritten. Please check your vtt including your vtt mime-type"):n.info("track support was overwritten. due to bad browser support")},u=function(){document.addEventListener("error",i,!0),s.track?o():e("track").each(o)};r.override||(n.isReady("track")?u():e(u))}(),n.register("mediaelement-core",function(e,n,l,c,h){f=swfobject.hasFlashPlayerVersion("9.0.115"),e("html").addClass(f?"swf":"no-swf");var p=n.mediaelement;p.parseRtmp=function(e){var t=e.src.split("://"),r=t[1].split("/"),i,s,o;e.server=t[0]+"://"+r[0]+"/",e.streamId=[];for(i=1,s=r.length;i<s;i++)!o&&r[i].indexOf(":")!==-1&&(r[i]=r[i].split(":")[1],o=!0),o?e.streamId.push(r[i]):e.server+=r[i]+"/";e.streamId.length||n.error("Could not parse rtmp url"),e.streamId=e.streamId.join("/"),console.log(e)};var d=function(t,n){t=e(t);var r={src:t.attr("src")||"",elem:t,srcProp:t.prop("src")},i;if(!r.src)return r;i=t.attr("data-server"),i!=null&&(r.server=i),i=t.attr("type"),i?(r.type=i,r.container=e.trim(i.split(";")[0])):(n||(n=t[0].nodeName.toLowerCase(),n=="source"&&(n=(t.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),r.server?(r.type=n+"/rtmp",r.container=n+"/rtmp"):(i=p.getTypeForSrc(r.src,n,r),i&&(r.type=i,r.container=i))),i=t.attr("media"),i&&(r.media=i);if(r.type=="audio/rtmp"||r.type=="video/rtmp")r.server?r.streamId=r.src:p.parseRtmp(r);return r},v=!f&&"postMessage"in l&&r,m=function(){if(m.loaded)return;m.loaded=!0,e(function(){n.loader.loadList(["track-ui"])})},g=function(){var t;return function(){if(t||!v)return;t=!0,n.loader.loadScript("https://www.youtube.com/player_api"),e(function(){n.polyfill("mediaelement-yt")})}}(),y=function(){f?o():g()};n.addPolyfill("mediaelement-yt",{test:!v,d:["dom-support"]}),p.mimeTypes={audio:{"audio/ogg":["ogg","oga","ogm"],'audio/ogg;codecs="opus"':"opus","audio/mpeg":["mp2","mp3","mpga","mpega"],"audio/mp4":["mp4","mpg4","m4r","m4a","m4p","m4b","aac"],"audio/wav":["wav"],"audio/3gpp":["3gp","3gpp"],"audio/webm":["webm"],"audio/fla":["flv","f4a","fla"],"application/x-mpegURL":["m3u8","m3u"]},video:{"video/ogg":["ogg","ogv","ogm"],"video/mpeg":["mpg","mpeg","mpe"],"video/mp4":["mp4","mpg4","m4v"],"video/quicktime":["mov","qt"],"video/x-msvideo":["avi"],"video/x-ms-asf":["asf","asx"],"video/flv":["flv","f4v"],"video/3gpp":["3gp","3gpp"],"video/webm":["webm"],"application/x-mpegURL":["m3u8","m3u"],"video/MP2T":["ts"]}},p.mimeTypes.source=e.extend({},p.mimeTypes.audio,p.mimeTypes.video),p.getTypeForSrc=function(t,n,r){if(t.indexOf("youtube.com/watch?")!=-1||t.indexOf("youtube.com/v/")!=-1)return"video/youtube";if(t.indexOf("rtmp")===0)return n+"/rtmp";t=t.split("?")[0].split("."),t=t[t.length-1];var i;return e.each(p.mimeTypes[n],function(e,n){if(n.indexOf(t)!==-1)return i=e,!1}),i},p.srces=function(t,n){t=e(t);if(!n){n=[];var r=t[0].nodeName.toLowerCase(),i=d(t,r);return i.src?n.push(i):e("source",t).each(function(){i=d(this,r),i.src&&n.push(i)}),n}t.removeAttr("src").removeAttr("type").find("source").remove(),e.isArray(n)||(n=[n]),n.forEach(function(e){var n=c.createElement("source");typeof e=="string"&&(e={src:e}),n.setAttribute("src",e.src),e.type&&n.setAttribute("type",e.type),e.media&&n.setAttribute("media",e.media),t.append(n)})},e.fn.loadMediaSrc=function(t,n){return this.each(function(){n!==h&&(e(this).removeAttr("poster"),n&&e.attr(this,"poster",n)),p.srces(this,t),e(this).mediaLoad()})},p.swfMimeTypes=["video/3gpp","video/x-msvideo","video/quicktime","video/x-m4v","video/mp4","video/m4p","video/x-flv","video/flv","audio/mpeg","audio/aac","audio/mp4","audio/x-m4a","audio/m4a","audio/mp3","audio/x-fla","audio/fla","youtube/flv","jwplayer/jwplayer","video/youtube","video/rtmp","audio/rtmp"],p.canThirdPlaySrces=function(t,n){var r="";if(f||v)t=e(t),n=n||p.srces(t),e.each(n,function(e,t){if(t.container&&t.src&&(f&&p.swfMimeTypes.indexOf(t.container)!=-1||v&&t.container=="video/youtube"))return r=t,!1});return r};var b={};p.canNativePlaySrces=function(t,n){var i="";if(r){t=e(t);var s=(t[0].nodeName||"").toLowerCase();if(!b[s])return i;n=n||p.srces(t),e.each(n,function(e,n){if(n.type&&b[s].prop._supvalue.call(t[0],n.type))return i=n,!1})}return i},p.setError=function(t,r){r||(r="can't play sources"),e(t).pause().data("mediaerror",r),n.warn("mediaelementError: "+r),setTimeout(function(){e(t).data("mediaerror")&&e(t).trigger("mediaerror")},1)};var w=function(){var e;return function(t,r,i){e||m(),n.ready(f?a:"mediaelement-yt",function(){p.createSWF?p.createSWF(t,r,i):e||(e=!0,y(),w(t,r,i))}),!e&&v&&!p.createSWF&&g()}}(),E=function(e,t,n,r,i){var s;n||n!==!1&&t&&t.isActive=="third"?(s=p.canThirdPlaySrces(e,r),s?w(e,s,t):i?p.setError(e,!1):E(e,t,!1,r,!0)):(s=p.canNativePlaySrces(e,r),s?t&&t.isActive=="third"&&p.setActive(e,"html5",t):i?(p.setError(e,!1),t&&t.isActive=="third"&&p.setActive(e,"html5",t)):E(e,t,!0,r,!0))},S=/^(?:embed|object|datalist)$/i,x=function(t,r){var i=n.data(t,"mediaelementBase")||n.data(t,"mediaelementBase",{}),s=p.srces(t),o=t.parentNode;clearTimeout(i.loadTimer),e.data(t,"mediaerror",!1);if(!s.length||!o||o.nodeType!=1||S.test(o.nodeName||""))return;r=r||n.data(t,"mediaelement"),E(t,r,u.preferFlash||h,s)};e(c).on("ended",function(t){var r=n.data(t.target,"mediaelement");if(i&&(!r||r.isActive=="html5")&&!e.prop(t.target,"loop"))return;setTimeout(function(){if(e.prop(t.target,"paused")||!e.prop(t.target,"loop"))return;e(t.target).prop("currentTime",0).play()},1)}),i||n.defineNodeNamesBooleanProperty(["audio","video"],"loop"),["audio","video"].forEach(function(t){var i=n.defineNodeNameProperty(t,"load",{prop:{value:function(){var e=n.data(this,"mediaelement");x(this,e),r&&(!e||e.isActive=="html5")&&i.prop._supvalue&&i.prop._supvalue.apply(this,arguments)}}});b[t]=n.defineNodeNameProperty(t,"canPlayType",{prop:{value:function(n){var i="";return r&&b[t].prop._supvalue&&(i=b[t].prop._supvalue.call(this,n),i=="no"&&(i="")),!i&&f&&(n=e.trim((n||"").split(";")[0]),p.swfMimeTypes.indexOf(n)!=-1&&(i="maybe")),i}}})}),n.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var e=this,t=n.data(e,"mediaelementBase")||n.data(e,"mediaelementBase",{});clearTimeout(t.loadTimer),t.loadTimer=setTimeout(function(){x(e),e=null},9)}});var T=function(){n.addReady(function(t,i){var s=e("video, audio",t).add(i.filter("video, audio")).each(function(){e.browser.msie&&n.browserVersion>8&&e.prop(this,"paused")&&!e.prop(this,"readyState")&&e(this).is('audio[preload="none"][controls]:not([autoplay])')?e(this).prop("preload","metadata").mediaLoad():x(this);if(r){var t,i,s=this,o=function(){var t=e.prop(s,"buffered");if(!t)return;var n="";for(var r=0,i=t.length;r<i;r++)n+=t.end(r);return n},u=function(){var t=o();t!=i&&(i=t,e(s).triggerHandler("progress"))};e(this).on({"play loadstart progress":function(e){e.type=="progress"&&(i=o()),clearTimeout(t),t=setTimeout(u,999)},"emptied stalled mediaerror abort suspend":function(e){e.type=="emptied"&&(i=!1),clearTimeout(t)}})}});!m.loaded&&e("track",s).length&&m(),s=null})};t.track&&!s.track&&n.defineProperty(TextTrack.prototype,"shimActiveCues",{get:function(){return this._shimActiveCues||this.activeCues}}),r?(n.isReady("mediaelement-core",!0),T(),n.ready("WINDOWLOAD mediaelement",y)):n.ready(a,T),n.ready("WINDOWLOAD mediaelement",m)})}(jQuery,Modernizr,jQuery.webshims); \ No newline at end of file