vendor/assets/javascripts/webshims/minified/shims/combos/26.js in webshims-rails-0.4.3 vs vendor/assets/javascripts/webshims/minified/shims/combos/26.js in webshims-rails-0.4.4
- old
+ new
@@ -1,81 +1,79 @@
-jQuery.webshims.register("dom-extend",function(b,g,j,k,l){var u=g.modules,m=/\s*,\s*/,p={},r={},o={},s={},n={},h=b.fn.val,w=function(c,f,a,d,e){return e?h.call(b(c)):h.call(b(c),a)};b.fn.val=function(c){var f=this[0];arguments.length&&null==c&&(c="");if(!arguments.length)return!f||1!==f.nodeType?h.call(this):b.prop(f,"value",c,"val",!0);if(b.isArray(c))return h.apply(this,arguments);var a=b.isFunction(c);return this.each(function(d){f=this;1===f.nodeType&&(a?(d=c.call(f,d,b.prop(f,"value",l,"val",
-!0)),null==d&&(d=""),b.prop(f,"value",d,"val")):b.prop(f,"value",c,"val"))})};var t="_webshimsLib"+Math.round(1E3*Math.random()),z=function(c,f,a){c=c.jquery?c[0]:c;if(!c)return a||{};var d=b.data(c,t);a!==l&&(d||(d=b.data(c,t,{})),f&&(d[f]=a));return f?d&&d[f]:d};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(c){b.fn[c.name]=function(){return this.map(function(){var b=z(this,
-"shadowData");return b&&b[c.prop]||this})}});["removeAttr","prop","attr"].forEach(function(c){p[c]=b[c];b[c]=function(f,a,d,e,g){var q="val"==e,v=!q?p[c]:w;if(!f||!r[a]||1!==f.nodeType||!q&&e&&"attr"==c&&b.attrFn[a])return v(f,a,d,e,g);var C=(f.nodeName||"").toLowerCase(),i=o[C],B="attr"==c&&(!1===d||null===d)?"removeAttr":c,h,j,k;i||(i=o["*"]);i&&(i=i[a]);i&&(h=i[B]);if(h){if("value"==a)j=h.isVal,h.isVal=q;if("removeAttr"===B)return h.value.call(f);if(d===l)return h.get?h.get.call(f):h.value;h.set&&
-("attr"==c&&!0===d&&(d=a),k=h.set.call(f,d));if("value"==a)h.isVal=j}else k=v(f,a,d,e,g);if((d!==l||"removeAttr"===B)&&n[C]&&n[C][a]){var m;m="removeAttr"==B?!1:"prop"==B?!!d:!0;n[C][a].forEach(function(b){if(!b.only||(b.only="prop"==c)||"attr"==b.only&&"prop"!=c)b.call(f,d,m,q?"val":B,c)})}return k};s[c]=function(f,a,d){o[f]||(o[f]={});o[f][a]||(o[f][a]={});var e=o[f][a][c],i=function(b,f,e){return f&&f[b]?f[b]:e&&e[b]?e[b]:"prop"==c&&"value"==a?function(b){return d.isVal?w(this,a,b,!1,0===arguments.length):
-p[c](this,a,b)}:"prop"==c&&"value"==b&&d.value.apply?function(b){var f=p[c](this,a);f&&f.apply&&(f=f.apply(this,arguments));return f}:function(b){return p[c](this,a,b)}};o[f][a][c]=d;if(d.value===l){if(!d.set)d.set=d.writeable?i("set",d,e):g.cfg.useStrict&&"prop"==a?function(){throw a+" is readonly on "+f;}:b.noop;if(!d.get)d.get=i("get",d,e)}["value","get","set"].forEach(function(b){d[b]&&(d["_sup"+b]=i(b,e))})}});var e=!b.browser.msie||8<parseInt(b.browser.version,10),a=function(){var b=g.getPrototypeOf(k.createElement("foobar")),
-f=Object.prototype.hasOwnProperty;return function(a,y,A){var i=k.createElement(a),q=g.getPrototypeOf(i);if(e&&q&&b!==q&&(!i[y]||!f.call(i,y))){var v=i[y];A._supvalue=function(){return v&&v.apply?v.apply(this,arguments):v};q[y]=A.value}else A._supvalue=function(){var b=z(this,"propValue");return b&&b[y]&&b[y].apply?b[y].apply(this,arguments):b&&b[y]},d.extendValue(a,y,A.value);A.value._supvalue=A._supvalue}}(),d=function(){var c={};g.addReady(function(f,a){var d={},x=function(c){d[c]||(d[c]=b(f.getElementsByTagName(c)),
-a[0]&&b.nodeName(a[0],c)&&(d[c]=d[c].add(a)))};b.each(c,function(b,c){x(b);!c||!c.forEach?g.warn("Error: with "+b+"-property. methods: "+c):c.forEach(function(c){d[b].each(c)})});d=null});var f,a=b([]),d=function(a,d){c[a]?c[a].push(d):c[a]=[d];b.isDOMReady&&(f||b(k.getElementsByTagName(a))).each(d)};return{createTmpCache:function(c){b.isDOMReady&&(f=f||b(k.getElementsByTagName(c)));return f||a},flushTmpCache:function(){f=null},content:function(c,a){d(c,function(){var c=b.attr(this,a);null!=c&&b.attr(this,
-a,c)})},createElement:function(b,c){d(b,c)},extendValue:function(c,a,f){d(c,function(){b(this).each(function(){z(this,"propValue",{})[a]=this[a];this[a]=f})})}}}(),i=function(c,b){if(c.defaultValue===l)c.defaultValue="";if(!c.removeAttr)c.removeAttr={value:function(){c[b||"prop"].set.call(this,c.defaultValue);c.removeAttr._supvalue.call(this)}};if(!c.attr)c.attr={}};b.extend(g,{getID:function(){var c=(new Date).getTime();return function(a){var a=b(a),d=a.attr("id");d||(c++,d="ID-"+c,a.attr("id",d));
-return d}}(),extendUNDEFProp:function(c,a){b.each(a,function(b,a){b in c||(c[b]=a)})},createPropDefault:i,data:z,moveToFirstEvent:function(){var c=b._data?"_data":"data";return function(a,d,e){if((a=(b[c](a,"events")||{})[d])&&1<a.length)d=a.pop(),e||(e="bind"),"bind"==e&&a.delegateCount?a.splice(a.delegateCount,0,d):a.unshift(d)}}(),addShadowDom:function(){var c,a,d,e,i={init:!1,start:function(){if(!this.init&&k.body)this.init=!0,this.height=b(k).height(),this.width=b(k).width(),setInterval(function(){var c=
-b(k).height(),a=b(k).width();if(c!=i.height||a!=i.width)i.height=c,i.width=a,e({type:"docresize"})},600)}};e=function(e){clearTimeout(c);c=setTimeout(function(){if("resize"==e.type){var c=b(j).width(),v=b(j).width();if(v==a&&c==d)return;a=v;d=c;if(k.body)i.height=b(k).height(),i.width=b(k).width()}b.event.trigger("updateshadowdom")},40)};b(j).bind("resize",e);b.event.customEvent.updateshadowdom=!0;return function(c,a,f){f=f||{};c.jquery&&(c=c[0]);a.jquery&&(a=a[0]);var d=b.data(c,t)||b.data(c,t,{}),
-e=b.data(a,t)||b.data(a,t,{}),x={};if(f.shadowFocusElement){if(f.shadowFocusElement){if(f.shadowFocusElement.jquery)f.shadowFocusElement=f.shadowFocusElement[0];x=b.data(f.shadowFocusElement,t)||b.data(f.shadowFocusElement,t,x)}}else f.shadowFocusElement=a;d.hasShadow=a;x.nativeElement=e.nativeElement=c;x.shadowData=e.shadowData=d.shadowData={nativeElement:c,shadowElement:a,shadowFocusElement:f.shadowFocusElement};f.shadowChilds&&f.shadowChilds.each(function(){z(this,"shadowData",e.shadowData)});
-if(f.data)x.shadowData.data=e.shadowData.data=d.shadowData.data=f.data;f=null;g.ready("DOM",function(){i.start()})}}(),propTypes:{standard:function(c){i(c);if(!c.prop)c.prop={set:function(a){c.attr.set.call(this,""+a)},get:function(){return c.attr.get.call(this)||c.defaultValue}}},"boolean":function(c){i(c);if(!c.prop)c.prop={set:function(a){a?c.attr.set.call(this,""):c.removeAttr.value.call(this)},get:function(){return null!=c.attr.get.call(this)}}},src:function(){var a=k.createElement("a");a.style.display=
-"none";return function(f,d){i(f);if(!f.prop)f.prop={set:function(a){f.attr.set.call(this,a)},get:function(){var f=this.getAttribute(d),e;if(null==f)return"";a.setAttribute("href",f+"");if(!b.support.hrefNormalized){try{b(a).insertAfter(this),e=a.getAttribute("href",4)}catch(i){e=a.getAttribute("href",4)}b(a).detach()}return e||a.href}}}}(),enumarated:function(a){i(a);if(!a.prop)a.prop={set:function(b){a.attr.set.call(this,b)},get:function(){var b=(a.attr.get.call(this)||"").toLowerCase();if(!b||-1==
-a.limitedTo.indexOf(b))b=a.defaultValue;return b}}}},reflectProperties:function(a,f){"string"==typeof f&&(f=f.split(m));f.forEach(function(f){g.defineNodeNamesProperty(a,f,{prop:{set:function(a){b.attr(this,f,a)},get:function(){return b.attr(this,f)||""}}})})},defineNodeNameProperty:function(c,f,e){r[f]=!0;if(e.reflect)g.propTypes[e.propType||"standard"](e,f);["prop","attr","removeAttr"].forEach(function(d){var i=e[d];i&&(i="prop"===d?b.extend({writeable:!0},i):b.extend({},i,{writeable:!0}),s[d](c,
-f,i),"*"!=c&&g.cfg.extendNative&&"prop"==d&&i.value&&b.isFunction(i.value)&&a(c,f,i),e[d]=i)});e.initAttr&&d.content(c,f);return e},defineNodeNameProperties:function(a,b,e,i){for(var n in b)!i&&b[n].initAttr&&d.createTmpCache(a),e&&!b[n][e]&&(b[n][e]={},["value","set","get"].forEach(function(a){a in b[n]&&(b[n][e][a]=b[n][a],delete b[n][a])})),b[n]=g.defineNodeNameProperty(a,n,b[n]);i||d.flushTmpCache();return b},createElement:function(a,f,e){var i;b.isFunction(f)&&(f={after:f});d.createTmpCache(a);
-f.before&&d.createElement(a,f.before);e&&(i=g.defineNodeNameProperties(a,e,!1,!0));f.after&&d.createElement(a,f.after);d.flushTmpCache();return i},onNodeNamesPropertyModify:function(a,f,e,i){"string"==typeof a&&(a=a.split(m));b.isFunction(e)&&(e={set:e});a.forEach(function(a){n[a]||(n[a]={});"string"==typeof f&&(f=f.split(m));e.initAttr&&d.createTmpCache(a);f.forEach(function(b){n[a][b]||(n[a][b]=[],r[b]=!0);if(e.set){if(i)e.set.only=i;n[a][b].push(e.set)}e.initAttr&&d.content(a,b)});d.flushTmpCache()})},
-defineNodeNamesBooleanProperty:function(a,d,e){e||(e={});if(b.isFunction(e))e.set=e;g.defineNodeNamesProperty(a,d,{attr:{set:function(a){this.setAttribute(d,a);e.set&&e.set.call(this,!0)},get:function(){return null==this.getAttribute(d)?l:d}},removeAttr:{value:function(){this.removeAttribute(d);e.set&&e.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:e.initAttr||!1})},contentAttr:function(a,b,d){if(a.nodeName){if(d===l)return a=a.attributes[b]||{},d=a.specified?a.value:null,null==d?l:d;
-"boolean"==typeof d?d?a.setAttribute(b,b):a.removeAttribute(b):a.setAttribute(b,d)}},activeLang:function(){var a=[],d={},e,i,n=/:\/\/|^\.*\//,h=function(a,d,c){return d&&c&&-1!==b.inArray(d,c.availabeLangs||[])?(a.loading=!0,c=c.langSrc,n.test(c)||(c=g.cfg.basePath+c),g.loader.loadScript(c+d+".js",function(){a.langObj[d]?(a.loading=!1,v(a,!0)):b(function(){a.langObj[d]&&v(a,!0);a.loading=!1})}),!0):!1},q=function(a){d[a]&&d[a].forEach(function(a){a.callback()})},v=function(a,b){if(a.activeLang!=e&&
-a.activeLang!==i){var c=u[a.module].options;if(a.langObj[e]||i&&a.langObj[i])a.activeLang=e,a.callback(a.langObj[e]||a.langObj[i],e),q(a.module);else if(!b&&!h(a,e,c)&&!h(a,i,c)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],e),q(a.module)}};return function(q){if("string"==typeof q&&q!==e)e=q,i=e.split("-")[0],e==i&&(i=!1),b.each(a,function(a,b){v(b)});else if("object"==typeof q)if(q.register)d[q.register]||(d[q.register]=[]),d[q.register].push(q),q.callback();else{if(!q.activeLang)q.activeLang=
-"";a.push(q);v(q)}return e}}()});b.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(a,b){g[a]=function(a,c,d,e){"string"==typeof a&&(a=a.split(m));var i={};a.forEach(function(a){i[a]=g[b](a,c,d,e)});return i}});g.isReady("webshimLocalization",!0)});
-(function(b,g){var j=b.webshims.browserVersion;if(!(b.browser.mozilla&&5<j)&&(!b.browser.msie||12>j&&7<j)){var k={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},l=function(b,g){b.getAttribute("role")||b.setAttribute("role",g)};b.webshims.addReady(function(j,m){b.each(k,function(g,n){for(var h=b(g,j).add(m.filter(g)),k=0,t=h.length;k<t;k++)l(h[k],n)});if(j===g){var p=g.getElementsByTagName("header")[0],r=g.getElementsByTagName("footer"),o=r.length;
-p&&!b(p).closest("section, article")[0]&&l(p,"banner");o&&(p=r[o-1],b(p).closest("section, article")[0]||l(p,"contentinfo"))}})}})(jQuery,document);
-(function(b,g,j){var k=g.audio&&g.video,l=!1,u=j.cfg.mediaelement,m=j.bugs,p=function(){j.ready("mediaelement-swf",function(){if(!j.mediaelement.createSWF)j.modules["mediaelement-swf"].test=b.noop,j.reTest(["mediaelement-swf"],k)})},r;if(k){var o=document.createElement("video");g.videoBuffered="buffered"in o;l="loop"in o;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(k&&!u.preferFlash){var s=function(g){var h=g.target.parentNode;!u.preferFlash&&(b(g.target).is("audio, video")||h&&b("source:last",h)[0]==g.target)&&j.ready("DOM mediaelement",function(){r&&p();j.ready("WINDOWLOAD mediaelement-swf",function(){setTimeout(function(){r&&!u.preferFlash&&j.mediaelement.createSWF&&!b(g.target).closest("audio, video").is(".nonnative-api-active")?(u.preferFlash=!0,document.removeEventListener("error",
-s,!0),b("audio, video").mediaLoad(),j.info("switching mediaelements option to 'preferFlash', due to an error with native player: "+g.target.src)):r||document.removeEventListener("error",s,!0)},20)})})};document.addEventListener("error",s,!0);b("audio, video").each(function(){this.error&&s({target:this})})}m.track=!1;g.track&&function(){if(!m.track)m.track="number"!=typeof b("<track />")[0].readyState;if(!m.track)try{new TextTrackCue(2,3,"")}catch(g){m.track=!0}var h=j.cfg.track,k=function(e){b(e.target).filter("track").each(l)},
-l=function(){if(m.track||!h.override&&3==b.prop(this,"readyState"))h.override=!0,j.reTest("track"),document.removeEventListener("error",k,!0),this&&b.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")},p=function(){document.addEventListener("error",k,!0);m.track?l():b("track").each(l)};h.override||(j.isReady("track")?p():b(p))}();j.register("mediaelement-core",function(b,
-h,j,t,o){r=swfobject.hasFlashPlayerVersion("9.0.115");var e=h.mediaelement,a=function(a,c){var a=b(a),d={src:a.attr("src")||"",elem:a,srcProp:a.prop("src")};if(!d.src)return d;var f=a.attr("type");if(f)d.type=f,d.container=b.trim(f.split(";")[0]);else if(c||(c=a[0].nodeName.toLowerCase(),"source"==c&&(c=(a.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),f=e.getTypeForSrc(d.src,c))d.type=f,d.container=f;if(f=a.attr("media"))d.media=f;return d},d=!r&&"postMessage"in j&&k,i=
-function(){var a;return function(){!a&&d&&(a=!0,h.loader.loadScript("https://www.youtube.com/player_api"),b(function(){h.polyfill("mediaelement-yt")}))}}(),c=function(){r?p():i()};h.addPolyfill("mediaelement-yt",{test:!d,d:["dom-support"]});e.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"]}};e.mimeTypes.source=b.extend({},e.mimeTypes.audio,e.mimeTypes.video);e.getTypeForSrc=function(a,d){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;b.each(e.mimeTypes[d],function(b,d){if(-1!==d.indexOf(a))return c=b,!1});return c};e.srces=function(d,c){d=b(d);if(c)d.removeAttr("src").removeAttr("type").find("source").remove(),b.isArray(c)||(c=[c]),c.forEach(function(a){var b=t.createElement("source");"string"==typeof a&&(a={src:a});b.setAttribute("src",a.src);a.type&&b.setAttribute("type",a.type);a.media&&b.setAttribute("media",a.media);d.append(b)});
-else{var c=[],f=d[0].nodeName.toLowerCase(),e=a(d,f);e.src?c.push(e):b("source",d).each(function(){e=a(this,f);e.src&&c.push(e)});return c}};b.fn.loadMediaSrc=function(a,c){return this.each(function(){c!==o&&(b(this).removeAttr("poster"),c&&b.attr(this,"poster",c));e.srces(this,a);b(this).mediaLoad()})};e.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(",");
-e.canThirdPlaySrces=function(a,c){var f="";if(r||d)a=b(a),c=c||e.srces(a),b.each(c,function(a,b){if(b.container&&b.src&&(r&&-1!=e.swfMimeTypes.indexOf(b.container)||d&&"video/youtube"==b.container))return f=b,!1});return f};var f={};e.canNativePlaySrces=function(a,c){var d="";if(k){var a=b(a),i=(a[0].nodeName||"").toLowerCase();if(!f[i])return d;c=c||e.srces(a);b.each(c,function(b,c){if(c.type&&f[i].prop._supvalue.call(a[0],c.type))return d=c,!1})}return d};e.setError=function(a,c){c||(c="can't play sources");
-b(a).pause().data("mediaerror",c);h.warn("mediaelementError: "+c);setTimeout(function(){b(a).data("mediaerror")&&b(a).trigger("mediaerror")},1)};var x=function(){var a;return function(b,f,g){h.ready(r?"mediaelement-swf":"mediaelement-yt",function(){e.createSWF?e.createSWF(b,f,g):a||(a=!0,c(),x(b,f,g))});!a&&d&&!e.createSWF&&i()}}(),y=function(a,b,c,d,f){c||!1!==c&&b&&"third"==b.isActive?(c=e.canThirdPlaySrces(a,d))?x(a,c,b):f?e.setError(a,!1):y(a,b,!1,d,!0):(c=e.canNativePlaySrces(a,d))?b&&"third"==
-b.isActive&&e.setActive(a,"html5",b):f?(e.setError(a,!1),b&&"third"==b.isActive&&e.setActive(a,"html5",b)):y(a,b,!0,d,!0)},A=/^(?:embed|object|datalist)$/i,D=function(a,c){var d=h.data(a,"mediaelementBase")||h.data(a,"mediaelementBase",{}),f=e.srces(a),i=a.parentNode;clearTimeout(d.loadTimer);b.data(a,"mediaerror",!1);if(f.length&&i&&!(1!=i.nodeType||A.test(i.nodeName||"")))c=c||h.data(a,"mediaelement"),y(a,c,u.preferFlash||o,f)};b(t).bind("ended",function(a){var c=h.data(a.target,"mediaelement");
-(!l||c&&"html5"!=c.isActive||b.prop(a.target,"loop"))&&setTimeout(function(){!b.prop(a.target,"paused")&&b.prop(a.target,"loop")&&b(a.target).prop("currentTime",0).play()},1)});l||h.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(a){var c=h.defineNodeNameProperty(a,"load",{prop:{value:function(){var a=h.data(this,"mediaelement");D(this,a);k&&(!a||"html5"==a.isActive)&&c.prop._supvalue&&c.prop._supvalue.apply(this,arguments)}}});f[a]=h.defineNodeNameProperty(a,
-"canPlayType",{prop:{value:function(c){var d="";k&&f[a].prop._supvalue&&(d=f[a].prop._supvalue.call(this,c),"no"==d&&(d=""));!d&&r&&(c=b.trim((c||"").split(";")[0]),-1!=e.swfMimeTypes.indexOf(c)&&(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(){D(a);a=null},9)}});j=function(){h.addReady(function(a,c){b("video, audio",
-a).add(c.filter("video, audio")).each(function(){b.browser.msie&&8<h.browserVersion&&b.prop(this,"paused")&&!b.prop(this,"readyState")&&b(this).is('audio[preload="none"][controls]:not([autoplay])')?b(this).prop("preload","metadata").mediaLoad():D(this);if(k){var a,c,d=this,f=function(){var a=b.prop(d,"buffered");if(a){for(var c="",f=0,e=a.length;f<e;f++)c+=a.end(f);return c}},e=function(){var a=f();a!=c&&(c=a,b(d).triggerHandler("progress"))};b(this).bind("play loadstart progress",function(b){"progress"==
-b.type&&(c=f());clearTimeout(a);a=setTimeout(e,999)}).bind("emptied stalled mediaerror abort suspend",function(b){"emptied"==b.type&&(c=!1);clearTimeout(a)})}})})};g.track&&!m.track&&h.defineProperty(TextTrack.prototype,"shimActiveCues",{get:function(){return this._shimActiveCues||this.activeCues}});k?(h.isReady("mediaelement-core",!0),j(),h.ready("WINDOWLOAD mediaelement",c)):h.ready("mediaelement-swf",j);b(function(){h.loader.loadList(["track-ui"])})})})(jQuery,Modernizr,jQuery.webshims);
-(function(b){var g=window.Modernizr,j=b.webshims,k=j.bugs,l=b('<form action="#" style="width: 1px; height: 1px; overflow: hidden;"><select name="b" required="" /><input type="date" required="" name="a" /><input type="submit" /></form>'),u=function(){if(l[0].querySelector)try{k.findRequired=!l[0].querySelector("select:required")}catch(b){k.findRequired=!1}};k.findRequired=!1;k.validationMessage=!1;k.valueAsNumberSet=!1;j.capturingEventPrevented=function(g){if(!g._isPolyfilled){var h=g.isDefaultPrevented,
-j=g.preventDefault;g.preventDefault=function(){clearTimeout(b.data(g.target,g.type+"DefaultPrevented"));b.data(g.target,g.type+"DefaultPrevented",setTimeout(function(){b.removeData(g.target,g.type+"DefaultPrevented")},30));return j.apply(this,arguments)};g.isDefaultPrevented=function(){return!(!h.apply(this,arguments)&&!b.data(g.target,g.type+"DefaultPrevented"))};g._isPolyfilled=!0}};if(!g.formvalidation||k.bustedValidity)u();else if(j.capturingEvents(["input"]),j.capturingEvents(["invalid"],!0),
-g.bugfreeformvalidation=!0,window.opera||b.browser.webkit||window.testGoodWithFix){var m=b("input",l).eq(0),p,r=function(b){j.loader.loadList(["dom-extend"]);j.ready("dom-extend",b)},o=function(k){var h=["form-extend","form-message","form-native-fix"];k&&(k.preventDefault(),k.stopImmediatePropagation());clearTimeout(p);setTimeout(function(){l&&(l.remove(),l=m=null)},9);if(!g.bugfreeformvalidation)j.addPolyfill("form-native-fix",{f:"forms",d:["form-extend"]}),j.modules["form-extend"].test=b.noop;j.isReady("form-number-date-api")&&
-h.push("form-number-date-api");j.reTest(h);if(m)try{m.prop({disabled:!0,value:""}).prop("disabled",!1).is(":valid")&&r(function(){j.onNodeNamesPropertyModify(["input","textarea"],["disabled","readonly"],{set:function(g){!g&&this&&b.prop(this,"value",b.prop(this,"value"))}});j.onNodeNamesPropertyModify(["select"],["disabled","readonly"],{set:function(g){if(!g&&this)g=b(this).val(),(b("option:last-child",this)[0]||{}).selected=!0,b(this).val(g)}})})}catch(o){}(b.browser.opera||window.testGoodWithFix)&&
-r(function(){var g=function(b){b.preventDefault()};["form","input","textarea","select"].forEach(function(h){var e=j.defineNodeNameProperty(h,"checkValidity",{prop:{value:function(){j.fromSubmit||b(this).bind("invalid.checkvalidity",g);j.fromCheckValidity=!0;var a=e.prop._supvalue.apply(this,arguments);j.fromSubmit||b(this).unbind("invalid.checkvalidity",g);j.fromCheckValidity=!1;return a}}})})})};l.appendTo("head");if(window.opera||window.testGoodWithFix){u();k.validationMessage=!m.prop("validationMessage");
-if((g.inputtypes||{}).date){try{m.prop("valueAsNumber",0)}catch(s){}k.valueAsNumberSet="1970-01-01"!=m.prop("value")}m.prop("value","")}l.bind("submit",function(b){g.bugfreeformvalidation=!1;o(b)});p=setTimeout(function(){l&&l.triggerHandler("submit")},9);b("input, select",l).bind("invalid",o).filter('[type="submit"]').bind("click",function(b){b.stopImmediatePropagation()}).trigger("click");b.browser.webkit&&g.bugfreeformvalidation&&!j.bugs.bustedValidity&&function(){var g=/^(?:textarea|input)$/i,
-h=!1;document.addEventListener("contextmenu",function(b){g.test(b.target.nodeName||"")&&(h=b.target.form)&&setTimeout(function(){h=!1},1)},!1);b(window).bind("invalid",function(b){if(b.originalEvent&&h&&h==b.target.form)b.wrongWebkitInvalid=!0,b.stopImmediatePropagation()})}()}})(jQuery);
-jQuery.webshims.register("form-core",function(b,g,j,k,l,u){var m={radio:1},p={checkbox:1,radio:1},r=b([]),o=g.bugs,s=function(a){var a=b(a),d,e;d=r;if(m[a[0].type])e=a.prop("form"),d=(d=a[0].name)?e?b(e[d]):b(k.getElementsByName(d)).filter(function(){return!b.prop(this,"form")}):a,d=d.filter('[type="radio"]');return d},n=g.getContentValidationMessage=function(a,d,e){var c=b(a).data("errormessage")||a.getAttribute("x-moz-errormessage")||"";e&&c[e]&&(c=c[e]);"object"==typeof c&&(d=d||b.prop(a,"validity")||
-{valid:1},d.valid||b.each(d,function(a,b){if(b&&"valid"!=a&&c[a])return c=c[a],!1}));if("object"==typeof c)c=c.defaultMessage;return c||""},h={number:1,range:1,date:1};b.extend(b.expr[":"],{"valid-element":function(a){return!(!b.prop(a,"willValidate")||!(b.prop(a,"validity")||{valid:1}).valid)},"invalid-element":function(a){return!(!b.prop(a,"willValidate")||(b.prop(a,"validity")||{valid:1}).valid)},"required-element":function(a){return!(!b.prop(a,"willValidate")||!b.prop(a,"required"))},"optional-element":function(a){return!!(b.prop(a,
-"willValidate")&&!1===b.prop(a,"required"))},"in-range":function(a){if(!h[b.prop(a,"type")]||!b.prop(a,"willValidate"))return!1;a=b.prop(a,"validity");return!(!a||a.rangeOverflow||a.rangeUnderflow)},"out-of-range":function(a){if(!h[b.prop(a,"type")]||!b.prop(a,"willValidate"))return!1;a=b.prop(a,"validity");return!(!a||!a.rangeOverflow&&!a.rangeUnderflow)}});["valid","invalid","required","optional"].forEach(function(a){b.expr[":"][a]=b.expr.filters[a+"-element"]});b.expr[":"].focus=function(a){try{var b=
-a.ownerDocument;return a===b.activeElement&&(!b.hasFocus||b.hasFocus())}catch(e){}return!1};var w=b.event.customEvent||{};(o.bustedValidity||o.findRequired||!Modernizr.bugfreeformvalidation)&&function(){var a=b.find,d=b.find.matchesSelector,e=/(\:valid|\:invalid|\:optional|\:required|\:in-range|\:out-of-range)(?=[\s\[\~\.\+\>\:\#*]|$)/ig,c=function(a){return a+"-element"};b.find=function(){var b=Array.prototype.slice,d=function(d){var g=arguments,g=b.call(g,1,g.length);g.unshift(d.replace(e,c));return a.apply(this,
-g)},g;for(g in a)a.hasOwnProperty(g)&&(d[g]=a[g]);return d}();if(!Modernizr.prefixed||Modernizr.prefixed("matchesSelector",k.documentElement))b.find.matchesSelector=function(a,b){b=b.replace(e,c);return d.call(this,a,b)}}();var t=b.prop,z={selectedIndex:1,value:1,checked:1,disabled:1,readonly:1};b.prop=function(a,d,e){var c=t.apply(this,arguments);if(a&&"form"in a&&z[d]&&e!==l&&b(a).hasClass("form-ui-invalid")&&(b.prop(a,"validity")||{valid:1}).valid)b(a).getShadowElement().removeClass("form-ui-invalid"),
-"checked"==d&&e&&s(a).not(a).removeClass("form-ui-invalid").removeAttr("aria-invalid");return c};var e=function(a,d){var e;b.each(a,function(a,f){if(f)return e="customError"==a?b.prop(d,"validationMessage"):a,!1});return e};b(k).bind(u.validityUIEvents||"focusout change refreshvalidityui",function(a){var d,g;if(a.target&&(d=b(a.target).getNativeElement()[0],!("submit"==d.type||!b.prop(d,"willValidate")||"focusout"==a.type&&"radio"==a.type))){g=b.data(d,"webshimsswitchvalidityclass");var c=function(){var c=
-b.prop(d,"validity"),g=b(d).getShadowElement(),i,h,j,k;b(d).trigger("refreshCustomValidityRules");c.valid?g.hasClass("form-ui-valid")||(i="form-ui-valid",h="form-ui-invalid",k="changedvaliditystate",j="changedvalid",p[d.type]&&d.checked&&s(d).not(d).removeClass(h).addClass(i).removeAttr("aria-invalid"),b.removeData(d,"webshimsinvalidcause")):(c=e(c,d),b.data(d,"webshimsinvalidcause")!=c&&(b.data(d,"webshimsinvalidcause",c),k="changedvaliditystate"),g.hasClass("form-ui-invalid")||(i="form-ui-invalid",
-h="form-ui-valid",p[d.type]&&!d.checked&&s(d).not(d).removeClass(h).addClass(i),j="changedinvalid"));i&&(g.addClass(i).removeClass(h),setTimeout(function(){b(d).trigger(j)},0));k&&setTimeout(function(){b(d).trigger(k)},0);b.removeData(a.target,"webshimsswitchvalidityclass")};g&&clearTimeout(g);"refreshvalidityui"==a.type?c():b.data(a.target,"webshimsswitchvalidityclass",setTimeout(c,9))}});w.changedvaliditystate=!0;w.refreshCustomValidityRules=!0;w.changedvalid=!0;w.changedinvalid=!0;w.refreshvalidityui=
-!0;g.triggerInlineForm=function(a,d){b(a).trigger(d)};g.modules["form-core"].getGroupElements=s;o=function(){g.scrollRoot=b.browser.webkit||"BackCompat"==k.compatMode?b(k.body):b(k.documentElement)};o();g.ready("DOM",o);g.getRelOffset=function(a,d){var a=b(a),e=b(d).offset(),c;b.swap(b(a)[0],{visibility:"hidden",display:"inline-block",left:0,top:0},function(){c=a.offset()});e.top-=c.top;e.left-=c.left;return e};g.validityAlert=function(){var a=!b.browser.msie||7<parseInt(b.browser.version,10)?"span":
-"label",d,e=!1,c=!1,f,h={hideDelay:5E3,showFor:function(a,d,g,k){h._create();var a=b(a),l=b(a).getShadowElement(),m=h.getOffsetFromBody(l);h.clear();k?this.hide():(this.getMessage(a,d),this.position(l,m),this.show(),this.hideDelay&&(e=setTimeout(f,this.hideDelay)),b(j).bind("resize.validityalert",function(){clearTimeout(c);c=setTimeout(function(){h.position(l)},9)}));g||this.setFocus(l,m)},getOffsetFromBody:function(a){return g.getRelOffset(d,a)},setFocus:function(c,e){var i=b(c).getShadowFocusElement(),
-h=g.scrollRoot.scrollTop(),j=(e||i.offset()).top-30,x;g.getID&&"label"==a&&d.attr("for",g.getID(i));h>j&&(g.scrollRoot.animate({scrollTop:j-5},{queue:!1,duration:Math.max(Math.min(600,1.5*(h-j)),80)}),x=!0);try{i[0].focus()}catch(l){}x&&(g.scrollRoot.scrollTop(h),setTimeout(function(){g.scrollRoot.scrollTop(h)},0));setTimeout(function(){b(k).bind("focusout.validityalert",f)},10)},getMessage:function(a,c){c||(c=n(a[0])||a.prop("validationMessage"));c?b("span.va-box",d).text(c):this.hide()},position:function(a,
-c){c=c?b.extend({},c):h.getOffsetFromBody(a);c.top+=a.outerHeight();d.css(c)},show:function(){"none"===d.css("display")&&d.css({opacity:0}).show();d.addClass("va-visible").fadeTo(400,1)},hide:function(){d.removeClass("va-visible").fadeOut()},clear:function(){clearTimeout(!1);clearTimeout(e);b(k).unbind(".validityalert");b(j).unbind(".validityalert");d.stop().removeAttr("for")},_create:function(){if(!d)d=h.errorBubble=b("<"+a+' class="validity-alert-wrapper" role="alert"><span class="validity-alert"><span class="va-arrow"><span class="va-arrow-box"></span></span><span class="va-box"></span></span></'+
-a+">").css({position:"absolute",display:"none"}),g.ready("DOM",function(){d.appendTo("body");b.fn.bgIframe&&b.browser.msie&&7>parseInt(b.browser.version,10)&&d.bgIframe()})}};f=b.proxy(h,"hide");return h}();(function(){var a,d=[],e;b(k).bind("invalid",function(c){if(!c.wrongWebkitInvalid){var f=b(c.target),g=f.getShadowElement();g.hasClass("form-ui-invalid")||(g.addClass("form-ui-invalid").removeClass("form-ui-valid"),setTimeout(function(){b(c.target).trigger("changedinvalid").trigger("changedvaliditystate")},
-0));if(!a)a=b.Event("firstinvalid"),a.isInvalidUIPrevented=c.isDefaultPrevented,g=b.Event("firstinvalidsystem"),b(k).triggerHandler(g,{element:c.target,form:c.target.form,isInvalidUIPrevented:c.isDefaultPrevented}),f.trigger(a);a&&a.isDefaultPrevented()&&c.preventDefault();d.push(c.target);c.extraData="fix";clearTimeout(e);e=setTimeout(function(){var e={type:"lastinvalid",cancelable:!1,invalidlist:b(d)};a=!1;d=[];b(c.target).trigger(e,e)},9);g=f=null}})})();b.fn.getErrorMessage=function(){var a="",
-d=this[0];d&&(a=n(d)||b.prop(d,"customValidationMessage")||b.prop(d,"validationMessage"));return a};u.replaceValidationUI&&g.ready("DOM forms",function(){b(k).bind("firstinvalid",function(a){a.isInvalidUIPrevented()||(a.preventDefault(),b.webshims.validityAlert.showFor(a.target,b(a.target).prop("customValidationMessage")))})})});
-jQuery.webshims.register("track",function(b,g,j,k){var l=g.mediaelement;(new Date).getTime();var u={subtitles:1,captions:1,descriptions:1},m=Modernizr.ES5&&Modernizr.objectAccessor,p=function(b){var a={};b.addEventListener=function(b,e){a[b]&&g.error("always use $.bind to the shimed event: "+b+" already bound fn was: "+a[b]+" your fn was: "+e);a[b]=e};b.removeEventListener=function(b,e){a[b]&&a[b]!=e&&g.error("always use $.bind/$.unbind to the shimed event: "+b+" already bound fn was: "+a[b]+" your fn was: "+
-e);a[b]&&delete a[b]};return b},r={getCueById:function(b){for(var a=null,d=0,g=this.length;d<g;d++)if(this[d].id===b){a=this[d];break}return a}},o={shimActiveCues:null,_shimActiveCues:null,activeCues:null,cues:null,kind:"subtitles",label:"",language:"",mode:"disabled",readyState:0,oncuechange:null,toString:function(){return"[object TextTrack]"},addCue:function(b){if(this.cues){var a=this.cues[this.cues.length-1];a&&a.startTime>b.startTime&&g.error("cue startTime higher than previous cue's startTime")}else this.cues=
-l.createCueList();b.track&&b.track.removeCue&&b.track.removeCue(b);b.track=this;this.cues.push(b)},removeCue:function(b){var a=this.cues||[],d=0,i=a.length;if(b.track!=this)g.error("cue not part of track");else{for(;d<i;d++)if(a[d]===b){a.splice(d,1);b.track=null;break}b.track&&g.error("cue not part of track")}},DISABLED:"disabled",OFF:"disabled",HIDDEN:"hidden",SHOWING:"showing",ERROR:3,LOADED:2,LOADING:1,NONE:0},s=["kind","label","srclang"],n={srclang:"language"},h=Function.prototype.call.bind(Object.prototype.hasOwnProperty),
-w=function(e,a){var d=[],i=[],c=[],f,h;e||(e=g.data(this,"mediaelementBase")||g.data(this,"mediaelementBase",{}));if(!a)e.blockTrackListUpdate=!0,a=b.prop(this,"textTracks"),e.blockTrackListUpdate=!1;clearTimeout(e.updateTrackListTimer);b("track",this).each(function(){var d=b.prop(this,"track");c.push(d);-1==a.indexOf(d)&&i.push(d)});if(e.scriptedTextTracks)for(f=0,h=e.scriptedTextTracks.length;f<h;f++)c.push(e.scriptedTextTracks[f]),-1==a.indexOf(e.scriptedTextTracks[f])&&i.push(e.scriptedTextTracks[f]);
-for(f=0,h=a.length;f<h;f++)-1==c.indexOf(a[f])&&d.push(a[f]);if(d.length||i.length){a.splice(0);for(f=0,h=c.length;f<h;f++)a.push(c[f]);for(f=0,h=d.length;f<h;f++)b([a]).triggerHandler(b.Event({type:"removetrack",track:a,track:d[f]}));for(f=0,h=i.length;f<h;f++)b([a]).triggerHandler(b.Event({type:"addtrack",track:a,track:i[f]}));(e.scriptedTextTracks||d.length)&&b(this).triggerHandler("updatetrackdisplay")}},t=function(e,a){a||(a=g.data(e,"trackData"));if(a&&!a.isTriggering)a.isTriggering=!0,setTimeout(function(){(a.track||
-{}).readyState?b(e).closest("audio, video").triggerHandler("updatetrackdisplay"):b(e).triggerHandler("checktrackmode");a.isTriggering=!1},1)},z=b("<div />")[0];j.TextTrackCue=function(b,a,d){3!=arguments.length&&g.error("wrong arguments.length for TextTrackCue.constructor");this.startTime=b;this.endTime=a;this.text=d;this.id="";this.pauseOnExit=!1;p(this)};j.TextTrackCue.prototype={onenter:null,onexit:null,pauseOnExit:!1,getCueAsHTML:function(){var b="",a="",d=k.createDocumentFragment(),g;if(!h(this,
-"getCueAsHTML"))g=this.getCueAsHTML=function(){var c,f;if(b!=this.text){b=this.text;a=l.parseCueTextToHTML(b);z.innerHTML=a;for(c=0,f=z.childNodes.length;c<f;c++)d.appendChild(z.childNodes[c].cloneNode(!0))}return d.cloneNode(!0)};return g?g.apply(this,arguments):d.cloneNode(!0)},track:null,id:""};l.createCueList=function(){return b.extend([],r)};l.parseCueTextToHTML=function(){var b=/(<\/?[^>]+>)/ig,a=/^(?:c|v|ruby|rt|b|i|u)/,d=/\<\s*\//,g=function(a,b,c,e){d.test(e)?a="</"+a+">":(c.splice(0,1),
-a="<"+a+" "+b+'="'+c.join(" ").replace(/\"/g,""")+'">');return a},c=function(b){var c=b.replace(/[<\/>]+/ig,"").split(/[\s\.]+/);c[0]&&(c[0]=c[0].toLowerCase(),a.test(c[0])?"c"==c[0]?b=g("span","class",c,b):"v"==c[0]&&(b=g("q","title",c,b)):b="");return b};return function(a){return a.replace(b,c)}}();l.loadTextTrack=function(e,a,d,i){var c=d.track,f=function(){var d=b.prop(a,"src"),i,h;if("disabled"!=c.mode&&d&&b.attr(a,"src")&&(b(e).unbind("play playing timeupdate updatetrackdisplay",f),b(a).unbind("checktrackmode",
-f),!c.readyState)){i=function(){c.readyState=3;c.cues=null;c.activeCues=c.shimActiveCues=c._shimActiveCues=null;b(a).triggerHandler("error")};c.readyState=1;try{c.cues=l.createCueList(),c.activeCues=c.shimActiveCues=c._shimActiveCues=l.createCueList(),h=b.ajax({dataType:"text",url:d,success:function(d){"text/vtt"!=h.getResponseHeader("content-type")&&g.error("set the mime-type of your WebVTT files to text/vtt. see: http://dev.w3.org/html5/webvtt/#text/vtt");l.parseCaptions(d,c,function(d){d&&"length"in
-d?(c.readyState=2,b(a).triggerHandler("load"),b(e).triggerHandler("updatetrackdisplay")):i()})},error:i})}catch(j){i(),g.warn(j)}}};c.readyState=0;c.shimActiveCues=null;c._shimActiveCues=null;c.activeCues=null;c.cues=null;b(e).unbind("play playing timeupdate updatetrackdisplay",f);b(a).unbind("checktrackmode",f);b(e).bind("play playing timeupdate updatetrackdisplay",f);b(a).bind("checktrackmode",f);if(i)c.mode=u[c.kind]?"showing":"hidden",f()};l.createTextTrack=function(e,a){var d,i;if(a.nodeName&&
-(i=g.data(a,"trackData")))t(a,i),d=i.track;if(!d)d=p(g.objectCreate(o)),m||s.forEach(function(c){var e=b.prop(a,c);e&&(d[n[c]||c]=e)}),a.nodeName?(m&&s.forEach(function(c){g.defineProperty(d,n[c]||c,{get:function(){return b.prop(a,c)}})}),i=g.data(a,"trackData",{track:d}),l.loadTextTrack(e,a,i,b.prop(a,"default")&&b(a).siblings("track[default]").andSelf()[0]==a)):(m&&s.forEach(function(b){g.defineProperty(d,n[b]||b,{value:a[b],writeable:!1})}),d.cues=l.createCueList(),d.activeCues=d._shimActiveCues=
-d.shimActiveCues=l.createCueList(),d.mode="hidden",d.readyState=2);return d};l.parseCaptionChunk=function(){var b=/^(\d{2})?:?(\d{2}):(\d{2})\.(\d+)\s+\-\-\>\s+(\d{2})?:?(\d{2}):(\d{2})\.(\d+)\s*(.*)/,a=/^(DEFAULTS|DEFAULT)\s+\-\-\>\s+(.*)/g,d=/^(STYLE|STYLES)\s+\-\-\>\s*\n([\s\S]*)/g,i=/^(COMMENT|COMMENTS)\s+\-\-\>\s+(.*)/g;return function(c){var f,h,j,k;if(a.exec(c)||d.exec(c)||i.exec(c))return null;for(c=c.split(/\n/g);!c[0].replace(/\s+/ig,"").length&&0<c.length;)c.shift();for(c[0].match(/^\s*[a-z0-9-\_]+\s*$/ig)&&
-(j=""+c.shift().replace(/\s*/ig,""));0<c.length;){if(k=b.exec(c[0]))h=k.slice(1),f=parseInt(3600*(h[0]||0),10)+parseInt(60*(h[1]||0),10)+parseInt(h[2]||0,10)+parseFloat("0."+(h[3]||0)),h=parseInt(3600*(h[4]||0),10)+parseInt(60*(h[5]||0),10)+parseInt(h[6]||0,10)+parseFloat("0."+(h[7]||0));c=c.slice(0,0).concat(c.slice(1));break}if(!f&&!h)return g.warn("couldn't extract time information: "+[f,h,c.join("\n"),j].join(" ; ")),null;c=c.join("\n");f=new TextTrackCue(f,h,c);if(j)f.id=j;return f}}();l.parseCaptions=
-function(b,a,d){l.createCueList();var i,c,f,h,j;b?(f=/^WEBVTT(\s*FILE)?/ig,c=function(k,m){for(;k<m;k++){i=b[k];if(f.test(i))j=!0;else if(i.replace(/\s*/ig,"").length){if(!j){g.error("please use WebVTT format. This is the standard");d(null);break}(i=l.parseCaptionChunk(i,k))&&a.addCue(i)}if(h<(new Date).getTime()-30){k++;setTimeout(function(){h=(new Date).getTime();c(k,m)},90);break}}k>=m&&(j||g.error("please use WebVTT format. This is the standard"),d(a.cues))},b=b.replace(/\r\n/g,"\n"),setTimeout(function(){b=
-b.replace(/\r/g,"\n");setTimeout(function(){h=(new Date).getTime();b=b.split(/\n\n+/g);c(0,b.length)},9)},9)):g.error("Required parameter captionData not supplied.")};l.createTrackList=function(b,a){a=a||g.data(b,"mediaelementBase")||g.data(b,"mediaelementBase",{});if(!a.textTracks)a.textTracks=[],g.defineProperties(a.textTracks,{onaddtrack:{value:null},onremovetrack:{value:null}}),p(a.textTracks);return a.textTracks};Modernizr.track||(g.defineNodeNamesBooleanProperty(["track"],"default"),g.reflectProperties(["track"],
-["srclang","label"]),g.defineNodeNameProperties("track",{src:{reflect:!0,propType:"src"}}));g.defineNodeNameProperties("track",{kind:{attr:Modernizr.track?{set:function(b){var a=g.data(this,"trackData");this.setAttribute("data-kind",b);if(a)a.attrKind=b},get:function(){var b=g.data(this,"trackData");return b&&"attrKind"in b?b.attrKind:this.getAttribute("kind")}}:{},reflect:!0,propType:"enumarated",defaultValue:"subtitles",limitedTo:["subtitles","captions","descriptions","chapters","metadata"]}});
-b.each(s,function(e,a){var d=n[a]||a;g.onNodeNamesPropertyModify("track",a,function(){var e=g.data(this,"trackData"),c=this;if(e)"kind"==a&&t(this,e),m||(e.track[d]=b.prop(this,a)),clearTimeout(e.changedTrackPropTimer),e.changedTrackPropTimer=setTimeout(function(){b(c).trigger("updatesubtitlestate")},1)})});g.onNodeNamesPropertyModify("track","src",function(e){if(e){var e=g.data(this,"trackData"),a;e&&(a=b(this).closest("video, audio"),a[0]&&l.loadTextTrack(a,this,e))}});g.defineNodeNamesProperties(["track"],
-{ERROR:{value:3},LOADED:{value:2},LOADING:{value:1},NONE:{value:0},readyState:{get:function(){return(b.prop(this,"track")||{readyState:0}).readyState},writeable:!1},track:{get:function(){return l.createTextTrack(b(this).closest("audio, video")[0],this)},writeable:!1}},"prop");g.defineNodeNamesProperties(["audio","video"],{textTracks:{get:function(){var b=g.data(this,"mediaelementBase")||g.data(this,"mediaelementBase",{}),a=l.createTrackList(this,b);b.blockTrackListUpdate||w.call(this,b,a);return a},
-writeable:!1},addTextTrack:{value:function(b,a,d){b=l.createTextTrack(this,{kind:b||"",label:a||"",srclang:d||""});a=g.data(this,"mediaelementBase")||g.data(this,"mediaelementBase",{});if(!a.scriptedTextTracks)a.scriptedTextTracks=[];a.scriptedTextTracks.push(b);w.call(this);return b}}},"prop");b(k).bind("emptied ended updatetracklist",function(e){if(b(e.target).is("audio, video")){var a=g.data(e.target,"mediaelementBase");if(a)clearTimeout(a.updateTrackListTimer),a.updateTrackListTimer=setTimeout(function(){w.call(e.target,
-a)},0)}});g.addReady(function(e,a){var d=a.filter("video, audio, track").closest("audio, video");b("video, audio",e).add(d).each(function(){w.call(this)}).each(function(){if(Modernizr.track){var a=this.textTracks;b.prop(this,"textTracks").length!=a.length&&g.error("textTracks couldn't be copied");b("track",this).each(function(){var a=b.prop(this,"track"),d=this.track,e,g;if(d){e=b.prop(this,"kind");g=d.readyState||this.readyState;if(d.mode||g)a.mode=d.mode;if("descriptions"!=e)d.mode="string"==typeof d.mode?
-"disabled":0,this.kind="metadata",b(this).attr({kind:e})}}).bind("load error",function(a){a.originalEvent&&a.stopImmediatePropagation()})}});d.each(function(){var a=this,b=g.data(a,"mediaelementBase");if(b)clearTimeout(b.updateTrackListTimer),b.updateTrackListTimer=setTimeout(function(){w.call(a,b)},9)})});Modernizr.track&&b("video, audio").trigger("trackapichange")});
+jQuery.webshims.register("dom-extend",function(a,g,h,i,l){var v=g.modules,q=/\s*,\s*/,p={},s={},n={},u={},r={},o=a.fn.val,y=function(e,d,b,c,k){return k?o.call(a(e)):o.call(a(e),b)};a.fn.val=function(e){var d=this[0];arguments.length&&null==e&&(e="");if(!arguments.length)return!d||1!==d.nodeType?o.call(this):a.prop(d,"value",e,"val",!0);if(a.isArray(e))return o.apply(this,arguments);var b=a.isFunction(e);return this.each(function(c){d=this;1===d.nodeType&&(b?(c=e.call(d,c,a.prop(d,"value",l,"val",
+!0)),null==c&&(c=""),a.prop(d,"value",c,"val")):a.prop(d,"value",e,"val"))})};var w="_webshimsLib"+Math.round(1E3*Math.random()),x=function(e,d,b){e=e.jquery?e[0]:e;if(!e)return b||{};var c=a.data(e,w);b!==l&&(c||(c=a.data(e,w,{})),d&&(c[d]=b));return d?c&&c[d]:c};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(e){a.fn[e.name]=function(){return this.map(function(){var a=x(this,
+"shadowData");return a&&a[e.prop]||this})}});["removeAttr","prop","attr"].forEach(function(e){p[e]=a[e];a[e]=function(d,b,c,k,t){var f="val"==k,z=!f?p[e]:y;if(!d||!s[b]||1!==d.nodeType||!f&&k&&"attr"==e&&a.attrFn[b])return z(d,b,c,k,t);var A=(d.nodeName||"").toLowerCase(),j=n[A],g="attr"==e&&(!1===c||null===c)?"removeAttr":e,o,h,i;j||(j=n["*"]);j&&(j=j[b]);j&&(o=j[g]);if(o){if("value"==b)h=o.isVal,o.isVal=f;if("removeAttr"===g)return o.value.call(d);if(c===l)return o.get?o.get.call(d):o.value;o.set&&
+("attr"==e&&!0===c&&(c=b),i=o.set.call(d,c));if("value"==b)o.isVal=h}else i=z(d,b,c,k,t);if((c!==l||"removeAttr"===g)&&r[A]&&r[A][b]){var m;m="removeAttr"==g?!1:"prop"==g?!!c:!0;r[A][b].forEach(function(b){if(!b.only||(b.only="prop"==e)||"attr"==b.only&&"prop"!=e)b.call(d,c,m,f?"val":g,e)})}return i};u[e]=function(d,b,c){n[d]||(n[d]={});n[d][b]||(n[d][b]={});var k=n[d][b][e],t=function(a,d,k){return d&&d[a]?d[a]:k&&k[a]?k[a]:"prop"==e&&"value"==b?function(a){return c.isVal?y(this,b,a,!1,0===arguments.length):
+p[e](this,b,a)}:"prop"==e&&"value"==a&&c.value.apply?function(c){var a=p[e](this,b);a&&a.apply&&(a=a.apply(this,arguments));return a}:function(c){return p[e](this,b,c)}};n[d][b][e]=c;if(c.value===l){if(!c.set)c.set=c.writeable?t("set",c,k):g.cfg.useStrict&&"prop"==b?function(){throw b+" is readonly on "+d;}:a.noop;if(!c.get)c.get=t("get",c,k)}["value","get","set"].forEach(function(b){c[b]&&(c["_sup"+b]=t(b,k))})}});var B=!a.browser.msie||8<parseInt(a.browser.version,10),m=function(){var a=g.getPrototypeOf(i.createElement("foobar")),
+d=Object.prototype.hasOwnProperty;return function(b,c,k){var t=i.createElement(b),f=g.getPrototypeOf(t);if(B&&f&&a!==f&&(!t[c]||!d.call(t,c))){var z=t[c];k._supvalue=function(){return z&&z.apply?z.apply(this,arguments):z};f[c]=k.value}else k._supvalue=function(){var b=x(this,"propValue");return b&&b[c]&&b[c].apply?b[c].apply(this,arguments):b&&b[c]},j.extendValue(b,c,k.value);k.value._supvalue=k._supvalue}}(),j=function(){var e={};g.addReady(function(b,c){var d={},z=function(e){d[e]||(d[e]=a(b.getElementsByTagName(e)),
+c[0]&&a.nodeName(c[0],e)&&(d[e]=d[e].add(c)))};a.each(e,function(b,c){z(b);!c||!c.forEach?g.warn("Error: with "+b+"-property. methods: "+c):c.forEach(function(c){d[b].each(c)})});d=null});var d,b=a([]),c=function(b,c){e[b]?e[b].push(c):e[b]=[c];a.isDOMReady&&(d||a(i.getElementsByTagName(b))).each(c)};return{createTmpCache:function(c){a.isDOMReady&&(d=d||a(i.getElementsByTagName(c)));return d||b},flushTmpCache:function(){d=null},content:function(b,e){c(b,function(){var b=a.attr(this,e);null!=b&&a.attr(this,
+e,b)})},createElement:function(b,a){c(b,a)},extendValue:function(b,e,d){c(b,function(){a(this).each(function(){x(this,"propValue",{})[e]=this[e];this[e]=d})})}}}(),f=function(a,d){if(a.defaultValue===l)a.defaultValue="";if(!a.removeAttr)a.removeAttr={value:function(){a[d||"prop"].set.call(this,a.defaultValue);a.removeAttr._supvalue.call(this)}};if(!a.attr)a.attr={}};a.extend(g,{getID:function(){var e=(new Date).getTime();return function(d){var d=a(d),b=d.attr("id");b||(e++,b="ID-"+e,d.attr("id",b));
+return b}}(),extendUNDEFProp:function(e,d){a.each(d,function(b,c){b in e||(e[b]=c)})},createPropDefault:f,data:x,moveToFirstEvent:function(){var e=a._data?"_data":"data";return function(d,b,c){if((d=(a[e](d,"events")||{})[b])&&1<d.length)b=d.pop(),c||(c="bind"),"bind"==c&&d.delegateCount?d.splice(d.delegateCount,0,b):d.unshift(b)}}(),addShadowDom:function(){var e,d,b,c={init:!1,runs:0,test:function(){var b=c.getHeight(),a=c.getWidth();b!=c.height||a!=c.width?(c.height=b,c.width=a,c.handler({type:"docresize"}),
+c.runs++,30>c.runs&&setTimeout(c.test,30)):c.runs=0},handler:function(k){clearTimeout(e);e=setTimeout(function(){if("resize"==k.type){var e=a(h).width(),f=a(h).width();if(f==d&&e==b)return;d=f;b=e;c.height=c.getHeight();c.width=c.getWidth()}a.event.trigger("updateshadowdom")},"resize"==k.type?50:9)},_create:function(){a.each({Height:"getHeight",Width:"getWidth"},function(b,a){var e=i.body,d=i.documentElement;c[a]=function(){return Math.max(e["scroll"+b],d["scroll"+b],e["offset"+b],d["offset"+b],d["client"+
+b])}})},start:function(){if(!this.init&&i.body)this.init=!0,this._create(),this.height=c.getHeight(),this.width=c.getWidth(),setInterval(this.test,400),a(this.test),a(h).bind("load",this.test),a(h).bind("resize",this.handler),function(){var b=a.fn.animate,e;a.fn.animate=function(){clearTimeout(e);e=setTimeout(function(){c.test();c.handler({type:"animationstart"})},19);return b.apply(this,arguments)}}()}};a.event.customEvent.updateshadowdom=!0;g.docObserve=function(){g.ready("DOM",function(){c.start()})};
+return function(b,c,e){e=e||{};b.jquery&&(b=b[0]);c.jquery&&(c=c[0]);var d=a.data(b,w)||a.data(b,w,{}),A=a.data(c,w)||a.data(c,w,{}),f={};if(e.shadowFocusElement){if(e.shadowFocusElement){if(e.shadowFocusElement.jquery)e.shadowFocusElement=e.shadowFocusElement[0];f=a.data(e.shadowFocusElement,w)||a.data(e.shadowFocusElement,w,f)}}else e.shadowFocusElement=c;d.hasShadow=c;f.nativeElement=A.nativeElement=b;f.shadowData=A.shadowData=d.shadowData={nativeElement:b,shadowElement:c,shadowFocusElement:e.shadowFocusElement};
+e.shadowChilds&&e.shadowChilds.each(function(){x(this,"shadowData",A.shadowData)});if(e.data)f.shadowData.data=A.shadowData.data=d.shadowData.data=e.data;e=null;g.docObserve()}}(),propTypes:{standard:function(a){f(a);if(!a.prop)a.prop={set:function(d){a.attr.set.call(this,""+d)},get:function(){return a.attr.get.call(this)||a.defaultValue}}},"boolean":function(a){f(a);if(!a.prop)a.prop={set:function(d){d?a.attr.set.call(this,""):a.removeAttr.value.call(this)},get:function(){return null!=a.attr.get.call(this)}}},
+src:function(){var e=i.createElement("a");e.style.display="none";return function(d,b){f(d);if(!d.prop)d.prop={set:function(b){d.attr.set.call(this,b)},get:function(){var c=this.getAttribute(b),d;if(null==c)return"";e.setAttribute("href",c+"");if(!a.support.hrefNormalized){try{a(e).insertAfter(this),d=e.getAttribute("href",4)}catch(f){d=e.getAttribute("href",4)}a(e).detach()}return d||e.href}}}}(),enumarated:function(a){f(a);if(!a.prop)a.prop={set:function(d){a.attr.set.call(this,d)},get:function(){var d=
+(a.attr.get.call(this)||"").toLowerCase();if(!d||-1==a.limitedTo.indexOf(d))d=a.defaultValue;return d}}}},reflectProperties:function(e,d){"string"==typeof d&&(d=d.split(q));d.forEach(function(b){g.defineNodeNamesProperty(e,b,{prop:{set:function(c){a.attr(this,b,c)},get:function(){return a.attr(this,b)||""}}})})},defineNodeNameProperty:function(e,d,b){s[d]=!0;if(b.reflect)g.propTypes[b.propType||"standard"](b,d);["prop","attr","removeAttr"].forEach(function(c){var k=b[c];k&&(k="prop"===c?a.extend({writeable:!0},
+k):a.extend({},k,{writeable:!0}),u[c](e,d,k),"*"!=e&&g.cfg.extendNative&&"prop"==c&&k.value&&a.isFunction(k.value)&&m(e,d,k),b[c]=k)});b.initAttr&&j.content(e,d);return b},defineNodeNameProperties:function(a,d,b,c){for(var k in d)!c&&d[k].initAttr&&j.createTmpCache(a),b&&!d[k][b]&&(d[k][b]={},["value","set","get"].forEach(function(a){a in d[k]&&(d[k][b][a]=d[k][a],delete d[k][a])})),d[k]=g.defineNodeNameProperty(a,k,d[k]);c||j.flushTmpCache();return d},createElement:function(e,d,b){var c;a.isFunction(d)&&
+(d={after:d});j.createTmpCache(e);d.before&&j.createElement(e,d.before);b&&(c=g.defineNodeNameProperties(e,b,!1,!0));d.after&&j.createElement(e,d.after);j.flushTmpCache();return c},onNodeNamesPropertyModify:function(e,d,b,c){"string"==typeof e&&(e=e.split(q));a.isFunction(b)&&(b={set:b});e.forEach(function(a){r[a]||(r[a]={});"string"==typeof d&&(d=d.split(q));b.initAttr&&j.createTmpCache(a);d.forEach(function(d){r[a][d]||(r[a][d]=[],s[d]=!0);if(b.set){if(c)b.set.only=c;r[a][d].push(b.set)}b.initAttr&&
+j.content(a,d)});j.flushTmpCache()})},defineNodeNamesBooleanProperty:function(e,d,b){b||(b={});if(a.isFunction(b))b.set=b;g.defineNodeNamesProperty(e,d,{attr:{set:function(a){this.setAttribute(d,a);b.set&&b.set.call(this,!0)},get:function(){return null==this.getAttribute(d)?l:d}},removeAttr:{value:function(){this.removeAttribute(d);b.set&&b.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:b.initAttr||!1})},contentAttr:function(a,d,b){if(a.nodeName){if(b===l)return a=a.attributes[d]||{},
+b=a.specified?a.value:null,null==b?l:b;"boolean"==typeof b?b?a.setAttribute(d,d):a.removeAttribute(d):a.setAttribute(d,b)}},activeLang:function(){var e=[],d={},b,c,f=/:\/\/|^\.*\//,j=function(b,c,d){return c&&d&&-1!==a.inArray(c,d.availabeLangs||[])?(b.loading=!0,d=d.langSrc,f.test(d)||(d=g.cfg.basePath+d),g.loader.loadScript(d+c+".js",function(){b.langObj[c]?(b.loading=!1,z(b,!0)):a(function(){b.langObj[c]&&z(b,!0);b.loading=!1})}),!0):!1},o=function(b){d[b]&&d[b].forEach(function(b){b.callback()})},
+z=function(a,d){if(a.activeLang!=b&&a.activeLang!==c){var e=v[a.module].options;if(a.langObj[b]||c&&a.langObj[c])a.activeLang=b,a.callback(a.langObj[b]||a.langObj[c],b),o(a.module);else if(!d&&!j(a,b,e)&&!j(a,c,e)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],b),o(a.module)}};return function(f){if("string"==typeof f&&f!==b)b=f,c=b.split("-")[0],b==c&&(c=!1),a.each(e,function(b,a){z(a)});else if("object"==typeof f)if(f.register)d[f.register]||(d[f.register]=[]),d[f.register].push(f),
+f.callback();else{if(!f.activeLang)f.activeLang="";e.push(f);z(f)}return b}}()});a.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(a,d){g[a]=function(b,a,e,f){"string"==typeof b&&(b=b.split(q));var j={};b.forEach(function(b){j[b]=g[d](b,a,e,f)});return j}});g.isReady("webshimLocalization",!0)});
+(function(a,g){var h=a.webshims.browserVersion;if(!(a.browser.mozilla&&5<h)&&(!a.browser.msie||12>h&&7<h)){var i={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},l=function(a,g){a.getAttribute("role")||a.setAttribute("role",g)};a.webshims.addReady(function(h,q){a.each(i,function(g,i){for(var o=a(g,h).add(q.filter(g)),y=0,n=o.length;y<n;y++)l(o[y],i)});if(h===g){var p=g.getElementsByTagName("header")[0],s=g.getElementsByTagName("footer"),n=s.length;
+p&&!a(p).closest("section, article")[0]&&l(p,"banner");n&&(p=s[n-1],a(p).closest("section, article")[0]||l(p,"contentinfo"))}})}})(jQuery,document);
+(function(a,g,h){var i=g.audio&&g.video,l=!1,v=h.cfg.mediaelement,q=h.bugs,p="jwplayer"==v.player?"mediaelement-swf":"mediaelement-jaris",s=function(){h.ready(p,function(){if(!h.mediaelement.createSWF)h.mediaelement.loadSwf=!0,h.reTest([p],i)})},n;if(i){var u=document.createElement("video");g.videoBuffered="buffered"in u;l="loop"in u;h.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(","));g.videoBuffered||(h.addPolyfill("mediaelement-native-fix",
+{f:"mediaelement",test:g.videoBuffered,d:["dom-support"]}),h.reTest("mediaelement-native-fix"))}if(i&&!v.preferFlash){var r=function(g){var i=g.target.parentNode;!v.preferFlash&&(a(g.target).is("audio, video")||i&&a("source:last",i)[0]==g.target)&&h.ready("DOM mediaelement",function(){n&&s();h.ready("WINDOWLOAD "+p,function(){setTimeout(function(){n&&!v.preferFlash&&h.mediaelement.createSWF&&!a(g.target).closest("audio, video").is(".nonnative-api-active")?(v.preferFlash=!0,document.removeEventListener("error",
+r,!0),a("audio, video").mediaLoad(),h.info("switching mediaelements option to 'preferFlash', due to an error with native player: "+g.target.src)):n||document.removeEventListener("error",r,!0)},20)})})};document.addEventListener("error",r,!0);a("audio, video").each(function(){this.error&&r({target:this})})}q.track=!1;g.track&&function(){if(!q.track)q.track="number"!=typeof a("<track />")[0].readyState;if(!q.track)try{new TextTrackCue(2,3,"")}catch(g){q.track=!0}var i=h.cfg.track,l=function(g){a(g.target).filter("track").each(n)},
+n=function(){if(q.track||!i.override&&3==a.prop(this,"readyState"))i.override=!0,h.reTest("track"),document.removeEventListener("error",l,!0),this&&a.nodeName(this,"track")?h.error("track support was overwritten. Please check your vtt including your vtt mime-type"):h.info("track support was overwritten. due to bad browser support")},s=function(){document.addEventListener("error",l,!0);q.track?n():a("track").each(n)};i.override||(h.isReady("track")?s():a(s))}();h.register("mediaelement-core",function(a,
+h,u,r,B){n=swfobject.hasFlashPlayerVersion("9.0.115");var m=h.mediaelement,j=function(b,c){var b=a(b),d={src:b.attr("src")||"",elem:b,srcProp:b.prop("src")};if(!d.src)return d;var e=b.attr("type");if(e)d.type=e,d.container=a.trim(e.split(";")[0]);else if(c||(c=b[0].nodeName.toLowerCase(),"source"==c&&(c=(b.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),e=m.getTypeForSrc(d.src,c))d.type=e,d.container=e;if(e=b.attr("media"))d.media=e;return d},f=!n&&"postMessage"in u&&i,e=
+function(){var b;return function(){!b&&f&&(b=!0,h.loader.loadScript("https://www.youtube.com/player_api"),a(function(){h.polyfill("mediaelement-yt")}))}}(),d=function(){n?s():e()};h.addPolyfill("mediaelement-yt",{test:!f,d:["dom-support"]});m.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"]}};m.mimeTypes.source=a.extend({},m.mimeTypes.audio,m.mimeTypes.video);m.getTypeForSrc=function(b,c){if(-1!=b.indexOf("youtube.com/watch?")||
+-1!=b.indexOf("youtube.com/v/"))return"video/youtube";var b=b.split("?")[0].split("."),b=b[b.length-1],d;a.each(m.mimeTypes[c],function(a,c){if(-1!==c.indexOf(b))return d=a,!1});return d};m.srces=function(b,c){b=a(b);if(c)b.removeAttr("src").removeAttr("type").find("source").remove(),a.isArray(c)||(c=[c]),c.forEach(function(a){var c=r.createElement("source");"string"==typeof a&&(a={src:a});c.setAttribute("src",a.src);a.type&&c.setAttribute("type",a.type);a.media&&c.setAttribute("media",a.media);b.append(c)});
+else{var c=[],d=b[0].nodeName.toLowerCase(),e=j(b,d);e.src?c.push(e):a("source",b).each(function(){e=j(this,d);e.src&&c.push(e)});return c}};a.fn.loadMediaSrc=function(b,c){return this.each(function(){c!==B&&(a(this).removeAttr("poster"),c&&a.attr(this,"poster",c));m.srces(this,b);a(this).mediaLoad()})};m.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(",");
+m.canThirdPlaySrces=function(b,c){var d="";if(n||f)b=a(b),c=c||m.srces(b),a.each(c,function(b,a){if(a.container&&a.src&&(n&&-1!=m.swfMimeTypes.indexOf(a.container)||f&&"video/youtube"==a.container))return d=a,!1});return d};var b={};m.canNativePlaySrces=function(c,d){var e="";if(i){var c=a(c),f=(c[0].nodeName||"").toLowerCase();if(!b[f])return e;d=d||m.srces(c);a.each(d,function(a,d){if(d.type&&b[f].prop._supvalue.call(c[0],d.type))return e=d,!1})}return e};m.setError=function(b,c){c||(c="can't play sources");
+a(b).pause().data("mediaerror",c);h.warn("mediaelementError: "+c);setTimeout(function(){a(b).data("mediaerror")&&a(b).trigger("mediaerror")},1)};var c=function(){var b;return function(a,k,j){h.ready(n?p:"mediaelement-yt",function(){m.createSWF?m.createSWF(a,k,j):b||(b=!0,d(),c(a,k,j))});!b&&f&&!m.createSWF&&e()}}(),k=function(b,a,d,e,f){d||!1!==d&&a&&"third"==a.isActive?(d=m.canThirdPlaySrces(b,e))?c(b,d,a):f?m.setError(b,!1):k(b,a,!1,e,!0):(d=m.canNativePlaySrces(b,e))?a&&"third"==a.isActive&&m.setActive(b,
+"html5",a):f?(m.setError(b,!1),a&&"third"==a.isActive&&m.setActive(b,"html5",a)):k(b,a,!0,e,!0)},t=/^(?:embed|object|datalist)$/i,C=function(b,c){var d=h.data(b,"mediaelementBase")||h.data(b,"mediaelementBase",{}),e=m.srces(b),f=b.parentNode;clearTimeout(d.loadTimer);a.data(b,"mediaerror",!1);if(e.length&&f&&!(1!=f.nodeType||t.test(f.nodeName||"")))c=c||h.data(b,"mediaelement"),k(b,c,v.preferFlash||B,e)};a(r).on("ended",function(b){var c=h.data(b.target,"mediaelement");(!l||c&&"html5"!=c.isActive||
+a.prop(b.target,"loop"))&&setTimeout(function(){!a.prop(b.target,"paused")&&a.prop(b.target,"loop")&&a(b.target).prop("currentTime",0).play()},1)});l||h.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(c){var d=h.defineNodeNameProperty(c,"load",{prop:{value:function(){var b=h.data(this,"mediaelement");C(this,b);i&&(!b||"html5"==b.isActive)&&d.prop._supvalue&&d.prop._supvalue.apply(this,arguments)}}});b[c]=h.defineNodeNameProperty(c,"canPlayType",{prop:{value:function(d){var e=
+"";i&&b[c].prop._supvalue&&(e=b[c].prop._supvalue.call(this,d),"no"==e&&(e=""));!e&&n&&(d=a.trim((d||"").split(";")[0]),-1!=m.swfMimeTypes.indexOf(d)&&(e="maybe"));return e}}})});h.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var b=this,a=h.data(b,"mediaelementBase")||h.data(b,"mediaelementBase",{});clearTimeout(a.loadTimer);a.loadTimer=setTimeout(function(){C(b);b=null},9)}});u=function(){h.addReady(function(b,c){a("video, audio",b).add(c.filter("video, audio")).each(function(){a.browser.msie&&
+8<h.browserVersion&&a.prop(this,"paused")&&!a.prop(this,"readyState")&&a(this).is('audio[preload="none"][controls]:not([autoplay])')?a(this).prop("preload","metadata").mediaLoad():C(this);if(i){var b,c,d=this,e=function(){var b=a.prop(d,"buffered");if(b){for(var c="",e=0,f=b.length;e<f;e++)c+=b.end(e);return c}},f=function(){var b=e();b!=c&&(c=b,a(d).triggerHandler("progress"))};a(this).on({"play loadstart progress":function(a){"progress"==a.type&&(c=e());clearTimeout(b);b=setTimeout(f,999)},"emptied stalled mediaerror abort suspend":function(a){"emptied"==
+a.type&&(c=!1);clearTimeout(b)}})}})})};g.track&&!q.track&&h.defineProperty(TextTrack.prototype,"shimActiveCues",{get:function(){return this._shimActiveCues||this.activeCues}});i?(h.isReady("mediaelement-core",!0),u(),h.ready("WINDOWLOAD mediaelement",d)):h.ready(p,u);a(function(){h.loader.loadList(["track-ui"])})})})(jQuery,Modernizr,jQuery.webshims);
+(function(a){var g=window.Modernizr,h=a.webshims,i=h.bugs,l=a('<form action="#" style="width: 1px; height: 1px; overflow: hidden;"><select name="b" required="" /><input required="" name="a" /></form>'),v=function(){if(l[0].querySelector)try{i.findRequired=!l[0].querySelector("select:required")}catch(a){i.findRequired=!1}},q=a("input",l).eq(0),p=function(a){h.loader.loadList(["dom-extend"]);h.ready("dom-extend",a)};i.findRequired=!1;i.validationMessage=!1;h.capturingEventPrevented=function(g){if(!g._isPolyfilled){var h=
+g.isDefaultPrevented,i=g.preventDefault;g.preventDefault=function(){clearTimeout(a.data(g.target,g.type+"DefaultPrevented"));a.data(g.target,g.type+"DefaultPrevented",setTimeout(function(){a.removeData(g.target,g.type+"DefaultPrevented")},30));return i.apply(this,arguments)};g.isDefaultPrevented=function(){return!(!h.apply(this,arguments)&&!a.data(g.target,g.type+"DefaultPrevented"))};g._isPolyfilled=!0}};if(!g.formvalidation||i.bustedValidity)v();else{h.capturingEvents(["input"]);h.capturingEvents(["invalid"],
+!0);if(window.opera||window.testGoodWithFix)l.appendTo("head"),v(),i.validationMessage=!q.prop("validationMessage"),h.reTest(["form-extend","form-message"]),l.remove(),a(function(){p(function(){var g=function(a){a.preventDefault()};["form","input","textarea","select"].forEach(function(i){var l=h.defineNodeNameProperty(i,"checkValidity",{prop:{value:function(){if(!h.fromSubmit)a(this).on("invalid.checkvalidity",g);h.fromCheckValidity=!0;var i=l.prop._supvalue.apply(this,arguments);h.fromSubmit||a(this).unbind("invalid.checkvalidity",
+g);h.fromCheckValidity=!1;return i}}})})})});a.browser.webkit&&!h.bugs.bustedValidity&&function(){var g=/^(?:textarea|input)$/i,h=!1;document.addEventListener("contextmenu",function(a){g.test(a.target.nodeName||"")&&(h=a.target.form)&&setTimeout(function(){h=!1},1)},!1);a(window).on("invalid",function(a){if(a.originalEvent&&h&&h==a.target.form)a.wrongWebkitInvalid=!0,a.stopImmediatePropagation()})}()}})(jQuery);
+jQuery.webshims.register("form-core",function(a,g,h,i,l,v){var q={radio:1},p={checkbox:1,radio:1},s=a([]),n=g.bugs,u=function(b){var b=a(b),c,d;c=s;if(q[b[0].type])d=b.prop("form"),c=(c=b[0].name)?d?a(d[c]):a(i.getElementsByName(c)).filter(function(){return!a.prop(this,"form")}):b,c=c.filter('[type="radio"]');return c},r=g.getContentValidationMessage=function(b,c,d){var e=a(b).data("errormessage")||b.getAttribute("x-moz-errormessage")||"";d&&e[d]&&(e=e[d]);"object"==typeof e&&(c=c||a.prop(b,"validity")||
+{valid:1},c.valid||a.each(c,function(b,a){if(a&&"valid"!=b&&e[b])return e=e[b],!1}));if("object"==typeof e)e=e.defaultMessage;return e||""},o={number:1,range:1,date:1},y=function(b){var c=!1;a(a.prop(b,"elements")).each(function(){if(c=a(this).is(":invalid"))return!1});return c};a.extend(a.expr[":"],{"valid-element":function(b){return a.nodeName(b,"form")?!y(b):!(!a.prop(b,"willValidate")||!x(b))},"invalid-element":function(b){return a.nodeName(b,"form")?y(b):!(!a.prop(b,"willValidate")||x(b))},"required-element":function(b){return!(!a.prop(b,
+"willValidate")||!a.prop(b,"required"))},"user-error":function(b){return a.prop(b,"willValidate")&&a(b).hasClass("user-error")},"optional-element":function(b){return!!(a.prop(b,"willValidate")&&!1===a.prop(b,"required"))},"in-range":function(b){if(!o[a.prop(b,"type")]||!a.prop(b,"willValidate"))return!1;b=a.prop(b,"validity");return!(!b||b.rangeOverflow||b.rangeUnderflow)},"out-of-range":function(b){if(!o[a.prop(b,"type")]||!a.prop(b,"willValidate"))return!1;b=a.prop(b,"validity");return!(!b||!b.rangeOverflow&&
+!b.rangeUnderflow)}});["valid","invalid","required","optional"].forEach(function(b){a.expr[":"][b]=a.expr.filters[b+"-element"]});a.expr[":"].focus=function(b){try{var a=b.ownerDocument;return b===a.activeElement&&(!a.hasFocus||a.hasFocus())}catch(d){}return!1};var w=a.event.customEvent||{},x=function(b){return(a.prop(b,"validity")||{valid:1}).valid};(n.bustedValidity||n.findRequired)&&function(){var b=a.find,c=a.find.matchesSelector,d=/(\:valid|\:invalid|\:optional|\:required|\:in-range|\:out-of-range)(?=[\s\[\~\.\+\>\:\#*]|$)/ig,
+e=function(b){return b+"-element"};a.find=function(){var a=Array.prototype.slice,c=function(c){var f=arguments,f=a.call(f,1,f.length);f.unshift(c.replace(d,e));return b.apply(this,f)},f;for(f in b)b.hasOwnProperty(f)&&(c[f]=b[f]);return c}();if(!Modernizr.prefixed||Modernizr.prefixed("matchesSelector",i.documentElement))a.find.matchesSelector=function(b,a){a=a.replace(d,e);return c.call(this,b,a)}}();var B=a.prop,m={selectedIndex:1,value:1,checked:1,disabled:1,readonly:1};a.prop=function(b,c,f){var g=
+B.apply(this,arguments);b&&"form"in b&&m[c]&&f!==l&&a(b).hasClass(e)&&x(b)&&(a(b).getShadowElement().removeClass(d),"checked"==c&&f&&u(b).not(b).removeClass(d).removeAttr("aria-invalid"));return g};var j=function(b,c){var d;a.each(b,function(b,e){if(e)return d="customError"==b?a.prop(c,"validationMessage"):b,!1});return d},f=function(b){var a;try{a=i.activeElement.name===b}catch(d){}return a},e="user-error",d="user-error form-ui-invalid";a(i).on(v.validityUIEvents||"focusout change refreshvalidityui",
+function(b){var c,g;if(b.target&&(c=a(b.target).getNativeElement()[0],"submit"!=c.type&&a.prop(c,"willValidate"))){g=a.data(c,"webshimsswitchvalidityclass");var h=function(){if(!("focusout"==b.type&&"radio"==c.type&&f(c.name))){var g=a.prop(c,"validity"),k=a(c).getShadowElement(),h,i,t,l;a(c).trigger("refreshCustomValidityRules");g.valid?k.hasClass("user-success")||(h="user-success form-ui-valid",i=d,l="changedvaliditystate",t="changedvalid",p[c.type]&&c.checked&&u(c).not(c).removeClass(i).addClass(h).removeAttr("aria-invalid"),
+a.removeData(c,"webshimsinvalidcause")):(g=j(g,c),a.data(c,"webshimsinvalidcause")!=g&&(a.data(c,"webshimsinvalidcause",g),l="changedvaliditystate"),k.hasClass(e)||(h=d,i="user-success form-ui-valid",p[c.type]&&!c.checked&&u(c).not(c).removeClass(i).addClass(h),t="changedinvalid"));h&&(k.addClass(h).removeClass(i),setTimeout(function(){a(c).trigger(t)},0));l&&setTimeout(function(){a(c).trigger(l)},0);a.removeData(b.target,"webshimsswitchvalidityclass")}};g&&clearTimeout(g);"refreshvalidityui"==b.type?
+h():a.data(c,"webshimsswitchvalidityclass",setTimeout(h,9))}});w.changedvaliditystate=!0;w.refreshCustomValidityRules=!0;w.changedvalid=!0;w.changedinvalid=!0;w.refreshvalidityui=!0;g.triggerInlineForm=function(b,c){a(b).trigger(c)};g.modules["form-core"].getGroupElements=u;n=function(){g.scrollRoot=a.browser.webkit||"BackCompat"==i.compatMode?a(i.body):a(i.documentElement)};n();g.ready("DOM",n);g.getRelOffset=function(b,c){var b=a(b),d=a(c).offset(),e;a.swap(a(b)[0],{visibility:"hidden",display:"inline-block",
+left:0,top:0},function(){e=b.offset()});d.top-=e.top;d.left-=e.left;return d};g.validityAlert=function(){var b=!a.browser.msie||7<parseInt(a.browser.version,10)?"span":"label",c,d=!1,e=!1,f,j={hideDelay:5E3,showFor:function(b,c,g,i){j._create();var b=a(b),l=a(b).getShadowElement(),m=j.getOffsetFromBody(l);j.clear();i?this.hide():(this.getMessage(b,c),this.position(l,m),this.show(),this.hideDelay&&(d=setTimeout(f,this.hideDelay)),a(h).on("resize.validityalert",function(){clearTimeout(e);e=setTimeout(function(){j.position(l)},
+9)}));g||this.setFocus(l,m)},getOffsetFromBody:function(b){return g.getRelOffset(c,b)},setFocus:function(d,e){var j=a(d).getShadowFocusElement(),k=g.scrollRoot.scrollTop(),h=(e||j.offset()).top-30,l;g.getID&&"label"==b&&c.attr("for",g.getID(j));k>h&&(g.scrollRoot.animate({scrollTop:h-5},{queue:!1,duration:Math.max(Math.min(600,1.5*(k-h)),80)}),l=!0);try{j[0].focus()}catch(t){}l&&(g.scrollRoot.scrollTop(k),setTimeout(function(){g.scrollRoot.scrollTop(k)},0));setTimeout(function(){a(i).on("focusout.validityalert",
+f)},10)},getMessage:function(b,d){d||(d=r(b[0])||b.prop("validationMessage"));d?a("span.va-box",c).text(d):this.hide()},position:function(b,d){d=d?a.extend({},d):j.getOffsetFromBody(b);d.top+=b.outerHeight();c.css(d)},show:function(){"none"===c.css("display")&&c.css({opacity:0}).show();c.addClass("va-visible").fadeTo(400,1)},hide:function(){c.removeClass("va-visible").fadeOut()},clear:function(){clearTimeout(!1);clearTimeout(d);a(i).unbind(".validityalert");a(h).unbind(".validityalert");c.stop().removeAttr("for")},
+_create:function(){if(!c)c=j.errorBubble=a("<"+b+' class="validity-alert-wrapper" role="alert"><span class="validity-alert"><span class="va-arrow"><span class="va-arrow-box"></span></span><span class="va-box"></span></span></'+b+">").css({position:"absolute",display:"none"}),g.ready("DOM",function(){c.appendTo("body");a.fn.bgIframe&&a.browser.msie&&7>parseInt(a.browser.version,10)&&c.bgIframe()})}};f=a.proxy(j,"hide");return j}();(function(){var b,c=[],f;a(i).on("invalid",function(g){if(!g.wrongWebkitInvalid){var j=
+a(g.target),h=j.getShadowElement();h.hasClass(e)||(h.addClass(d).removeClass("user-success form-ui-valid"),setTimeout(function(){a(g.target).trigger("changedinvalid").trigger("changedvaliditystate")},0));if(!b)b=a.Event("firstinvalid"),b.isInvalidUIPrevented=g.isDefaultPrevented,h=a.Event("firstinvalidsystem"),a(i).triggerHandler(h,{element:g.target,form:g.target.form,isInvalidUIPrevented:g.isDefaultPrevented}),j.trigger(b);b&&b.isDefaultPrevented()&&g.preventDefault();c.push(g.target);g.extraData=
+"fix";clearTimeout(f);f=setTimeout(function(){var d={type:"lastinvalid",cancelable:!1,invalidlist:a(c)};b=!1;c=[];a(g.target).trigger(d,d)},9);h=j=null}})})();a.fn.getErrorMessage=function(){var b="",c=this[0];c&&(b=r(c)||a.prop(c,"customValidationMessage")||a.prop(c,"validationMessage"));return b};v.replaceValidationUI&&g.ready("DOM forms",function(){a(i).on("firstinvalid",function(b){b.isInvalidUIPrevented()||(b.preventDefault(),a.webshims.validityAlert.showFor(b.target,a(b.target).prop("customValidationMessage")))})})});
+jQuery.webshims.register("track",function(a,g,h,i){var l=g.mediaelement;(new Date).getTime();var v={subtitles:1,captions:1,descriptions:1},q=a("<track />"),p=Modernizr.ES5&&Modernizr.objectAccessor,s=function(a){var f={};a.addEventListener=function(a,d){f[a]&&g.error("always use $.on to the shimed event: "+a+" already bound fn was: "+f[a]+" your fn was: "+d);f[a]=d};a.removeEventListener=function(a,d){f[a]&&f[a]!=d&&g.error("always use $.on/$.off to the shimed event: "+a+" already bound fn was: "+
+f[a]+" your fn was: "+d);f[a]&&delete f[a]};return a},n={getCueById:function(a){for(var f=null,e=0,d=this.length;e<d;e++)if(this[e].id===a){f=this[e];break}return f}},u={"0":"disabled",1:"hidden",2:"showing"},r={shimActiveCues:null,_shimActiveCues:null,activeCues:null,cues:null,kind:"subtitles",label:"",language:"",mode:"disabled",readyState:0,oncuechange:null,toString:function(){return"[object TextTrack]"},addCue:function(a){if(this.cues){var f=this.cues[this.cues.length-1];f&&f.startTime>a.startTime&&
+g.error("cue startTime higher than previous cue's startTime")}else this.cues=l.createCueList();a.track&&a.track.removeCue&&a.track.removeCue(a);a.track=this;this.cues.push(a)},removeCue:function(a){var f=this.cues||[],e=0,d=f.length;if(a.track!=this)g.error("cue not part of track");else{for(;e<d;e++)if(f[e]===a){f.splice(e,1);a.track=null;break}a.track&&g.error("cue not part of track")}},DISABLED:"disabled",OFF:"disabled",HIDDEN:"hidden",SHOWING:"showing",ERROR:3,LOADED:2,LOADING:1,NONE:0},o=["kind",
+"label","srclang"],y={srclang:"language"},w=Function.prototype.call.bind(Object.prototype.hasOwnProperty),x=function(j,f){var e=[],d=[],b=[],c,k;j||(j=g.data(this,"mediaelementBase")||g.data(this,"mediaelementBase",{}));if(!f)j.blockTrackListUpdate=!0,f=a.prop(this,"textTracks"),j.blockTrackListUpdate=!1;clearTimeout(j.updateTrackListTimer);a("track",this).each(function(){var c=a.prop(this,"track");b.push(c);-1==f.indexOf(c)&&d.push(c)});if(j.scriptedTextTracks)for(c=0,k=j.scriptedTextTracks.length;c<
+k;c++)b.push(j.scriptedTextTracks[c]),-1==f.indexOf(j.scriptedTextTracks[c])&&d.push(j.scriptedTextTracks[c]);for(c=0,k=f.length;c<k;c++)-1==b.indexOf(f[c])&&e.push(f[c]);if(e.length||d.length){f.splice(0);for(c=0,k=b.length;c<k;c++)f.push(b[c]);for(c=0,k=e.length;c<k;c++)a([f]).triggerHandler(a.Event({type:"removetrack",track:e[c]}));for(c=0,k=d.length;c<k;c++)a([f]).triggerHandler(a.Event({type:"addtrack",track:d[c]}));(j.scriptedTextTracks||e.length)&&a(this).triggerHandler("updatetrackdisplay")}},
+B=function(j,f){f||(f=g.data(j,"trackData"));if(f&&!f.isTriggering)f.isTriggering=!0,setTimeout(function(){(f.track||{}).readyState?a(j).closest("audio, video").triggerHandler("updatetrackdisplay"):a(j).triggerHandler("checktrackmode");f.isTriggering=!1},1)},m=a("<div />")[0];h.TextTrackCue=function(a,f,e){3!=arguments.length&&g.error("wrong arguments.length for TextTrackCue.constructor");this.startTime=a;this.endTime=f;this.text=e;this.id="";this.pauseOnExit=!1;s(this)};h.TextTrackCue.prototype=
+{onenter:null,onexit:null,pauseOnExit:!1,getCueAsHTML:function(){var a="",f="",e=i.createDocumentFragment(),d;if(!w(this,"getCueAsHTML"))d=this.getCueAsHTML=function(){var b,c;if(a!=this.text){a=this.text;f=l.parseCueTextToHTML(a);m.innerHTML=f;for(b=0,c=m.childNodes.length;b<c;b++)e.appendChild(m.childNodes[b].cloneNode(!0))}return e.cloneNode(!0)};return d?d.apply(this,arguments):e.cloneNode(!0)},track:null,id:""};l.createCueList=function(){return a.extend([],n)};l.parseCueTextToHTML=function(){var a=
+/(<\/?[^>]+>)/ig,f=/^(?:c|v|ruby|rt|b|i|u)/,e=/\<\s*\//,d=function(b,a,d,f){e.test(f)?b="</"+b+">":(d.splice(0,1),b="<"+b+" "+a+'="'+d.join(" ").replace(/\"/g,""")+'">');return b},b=function(b){var a=b.replace(/[<\/>]+/ig,"").split(/[\s\.]+/);a[0]&&(a[0]=a[0].toLowerCase(),f.test(a[0])?"c"==a[0]?b=d("span","class",a,b):"v"==a[0]&&(b=d("q","title",a,b)):b="");return b};return function(c){return c.replace(a,b)}}();l.loadTextTrack=function(j,f,e,d){var b=e.track,c=function(){var d=a.prop(f,"src"),
+e,h;if("disabled"!=b.mode&&d&&a.attr(f,"src")&&(a(j).unbind("play playing timeupdate updatetrackdisplay",c),a(f).unbind("checktrackmode",c),!b.readyState)){e=function(){b.readyState=3;b.cues=null;b.activeCues=b.shimActiveCues=b._shimActiveCues=null;a(f).triggerHandler("error")};b.readyState=1;try{b.cues=l.createCueList(),b.activeCues=b.shimActiveCues=b._shimActiveCues=l.createCueList(),h=a.ajax({dataType:"text",url:d,success:function(c){"text/vtt"!=h.getResponseHeader("content-type")&&g.error("set the mime-type of your WebVTT files to text/vtt. see: http://dev.w3.org/html5/webvtt/#text/vtt");
+l.parseCaptions(c,b,function(c){c&&"length"in c?(b.readyState=2,a(f).triggerHandler("load"),a(j).triggerHandler("updatetrackdisplay")):e()})},error:e})}catch(i){e(),g.warn(i)}}};b.readyState=0;b.shimActiveCues=null;b._shimActiveCues=null;b.activeCues=null;b.cues=null;a(j).unbind("play playing timeupdate updatetrackdisplay",c);a(f).unbind("checktrackmode",c);a(j).on("play playing timeupdate updatetrackdisplay",c);a(f).on("checktrackmode",c);if(d)b.mode=v[b.kind]?"showing":"hidden",c()};l.createTextTrack=
+function(j,f){var e,d;if(f.nodeName&&(d=g.data(f,"trackData")))B(f,d),e=d.track;if(!e)e=s(g.objectCreate(r)),p||o.forEach(function(b){var c=a.prop(f,b);c&&(e[y[b]||b]=c)}),f.nodeName?(p&&o.forEach(function(b){g.defineProperty(e,y[b]||b,{get:function(){return a.prop(f,b)}})}),d=g.data(f,"trackData",{track:e}),l.loadTextTrack(j,f,d,a.prop(f,"default")&&a(f).siblings("track[default]").andSelf()[0]==f)):(p&&o.forEach(function(b){g.defineProperty(e,y[b]||b,{value:f[b],writeable:!1})}),e.cues=l.createCueList(),
+e.activeCues=e._shimActiveCues=e.shimActiveCues=l.createCueList(),e.mode="hidden",e.readyState=2);return e};l.parseCaptionChunk=function(){var a=/^(\d{2})?:?(\d{2}):(\d{2})\.(\d+)\s+\-\-\>\s+(\d{2})?:?(\d{2}):(\d{2})\.(\d+)\s*(.*)/,f=/^(DEFAULTS|DEFAULT)\s+\-\-\>\s+(.*)/g,e=/^(STYLE|STYLES)\s+\-\-\>\s*\n([\s\S]*)/g,d=/^(COMMENT|COMMENTS)\s+\-\-\>\s+(.*)/g;return function(b){var c,h,i,l;if(f.exec(b)||e.exec(b)||d.exec(b))return null;for(b=b.split(/\n/g);!b[0].replace(/\s+/ig,"").length&&0<b.length;)b.shift();
+for(b[0].match(/^\s*[a-z0-9-\_]+\s*$/ig)&&(i=""+b.shift().replace(/\s*/ig,""));0<b.length;){if(l=a.exec(b[0]))h=l.slice(1),c=parseInt(3600*(h[0]||0),10)+parseInt(60*(h[1]||0),10)+parseInt(h[2]||0,10)+parseFloat("0."+(h[3]||0)),h=parseInt(3600*(h[4]||0),10)+parseInt(60*(h[5]||0),10)+parseInt(h[6]||0,10)+parseFloat("0."+(h[7]||0));b=b.slice(0,0).concat(b.slice(1));break}if(!c&&!h)return g.warn("couldn't extract time information: "+[c,h,b.join("\n"),i].join(" ; ")),null;b=b.join("\n");c=new TextTrackCue(c,
+h,b);if(i)c.id=i;return c}}();l.parseCaptions=function(a,f,e){l.createCueList();var d,b,c,h,i;a?(c=/^WEBVTT(\s*FILE)?/ig,b=function(m,n){for(;m<n;m++){d=a[m];if(c.test(d))i=!0;else if(d.replace(/\s*/ig,"").length){if(!i){g.error("please use WebVTT format. This is the standard");e(null);break}(d=l.parseCaptionChunk(d,m))&&f.addCue(d)}if(h<(new Date).getTime()-30){m++;setTimeout(function(){h=(new Date).getTime();b(m,n)},90);break}}m>=n&&(i||g.error("please use WebVTT format. This is the standard"),
+e(f.cues))},a=a.replace(/\r\n/g,"\n"),setTimeout(function(){a=a.replace(/\r/g,"\n");setTimeout(function(){h=(new Date).getTime();a=a.split(/\n\n+/g);b(0,a.length)},9)},9)):g.error("Required parameter captionData not supplied.")};l.createTrackList=function(a,f){f=f||g.data(a,"mediaelementBase")||g.data(a,"mediaelementBase",{});if(!f.textTracks)f.textTracks=[],g.defineProperties(f.textTracks,{onaddtrack:{value:null},onremovetrack:{value:null}}),s(f.textTracks);return f.textTracks};Modernizr.track||
+(g.defineNodeNamesBooleanProperty(["track"],"default"),g.reflectProperties(["track"],["srclang","label"]),g.defineNodeNameProperties("track",{src:{reflect:!0,propType:"src"}}));g.defineNodeNameProperties("track",{kind:{attr:Modernizr.track?{set:function(a){var f=g.data(this,"trackData");this.setAttribute("data-kind",a);if(f)f.attrKind=a},get:function(){var a=g.data(this,"trackData");return a&&"attrKind"in a?a.attrKind:this.getAttribute("kind")}}:{},reflect:!0,propType:"enumarated",defaultValue:"subtitles",
+limitedTo:["subtitles","captions","descriptions","chapters","metadata"]}});a.each(o,function(h,f){var e=y[f]||f;g.onNodeNamesPropertyModify("track",f,function(){var d=g.data(this,"trackData"),b=this;if(d)"kind"==f&&B(this,d),p||(d.track[e]=a.prop(this,f)),clearTimeout(d.changedTrackPropTimer),d.changedTrackPropTimer=setTimeout(function(){a(b).trigger("updatesubtitlestate")},1)})});g.onNodeNamesPropertyModify("track","src",function(h){if(h){var h=g.data(this,"trackData"),f;h&&(f=a(this).closest("video, audio"),
+f[0]&&l.loadTextTrack(f,this,h))}});g.defineNodeNamesProperties(["track"],{ERROR:{value:3},LOADED:{value:2},LOADING:{value:1},NONE:{value:0},readyState:{get:function(){return(a.prop(this,"track")||{readyState:0}).readyState},writeable:!1},track:{get:function(){return l.createTextTrack(a(this).closest("audio, video")[0],this)},writeable:!1}},"prop");g.defineNodeNamesProperties(["audio","video"],{textTracks:{get:function(){var a=g.data(this,"mediaelementBase")||g.data(this,"mediaelementBase",{}),f=
+l.createTrackList(this,a);a.blockTrackListUpdate||x.call(this,a,f);return f},writeable:!1},addTextTrack:{value:function(a,f,e){a=l.createTextTrack(this,{kind:q.prop("kind",a||"").prop("kind"),label:f||"",srclang:e||""});f=g.data(this,"mediaelementBase")||g.data(this,"mediaelementBase",{});if(!f.scriptedTextTracks)f.scriptedTextTracks=[];f.scriptedTextTracks.push(a);x.call(this);return a}}},"prop");a(i).on("emptied ended updatetracklist",function(h){if(a(h.target).is("audio, video")){var f=g.data(h.target,
+"mediaelementBase");if(f)clearTimeout(f.updateTrackListTimer),f.updateTrackListTimer=setTimeout(function(){x.call(h.target,f)},0)}});g.addReady(function(h,f){var e=f.filter("video, audio, track").closest("audio, video");a("video, audio",h).add(e).each(function(){x.call(this)}).each(function(){if(Modernizr.track){var d=this.textTracks;a.prop(this,"textTracks").length!=d.length&&g.error("textTracks couldn't be copied");a("track",this).each(function(){var b=a.prop(this,"track"),c=this.track,d,e;if(c){d=
+a.prop(this,"kind");e=c.readyState||this.readyState;if(c.mode||e)b.mode=u[c.mode]||c.mode;if("descriptions"!=d)c.mode="string"==typeof c.mode?"disabled":0,this.kind="metadata",a(this).attr({kind:d})}}).on("load error",function(a){a.originalEvent&&a.stopImmediatePropagation()})}});e.each(function(){var a=this,b=g.data(a,"mediaelementBase");if(b)clearTimeout(b.updateTrackListTimer),b.updateTrackListTimer=setTimeout(function(){x.call(a,b)},9)})});Modernizr.track&&a("video, audio").trigger("trackapichange")});