(function(){var a=Function.prototype.call,f=Object.prototype,h=Array.prototype.slice,o,l;if(!Function.prototype.bind)Function.prototype.bind=function(a){var c=this;if("function"!=typeof c)throw new TypeError;var b=h.call(arguments,1),e=function(){if(this instanceof e){var d=function(){};d.prototype=c.prototype;var d=new d,p=c.apply(d,b.concat(h.call(arguments)));return null!==p&&Object(p)===p?p:d}return c.apply(a,b.concat(h.call(arguments)))};return e};l=a.bind(f.toString);o=a.bind(f.hasOwnProperty);
if(!Array.isArray)Array.isArray=function(a){return"[object Array]"==l(a)};if(!Array.prototype.forEach)Array.prototype.forEach=function(a,c){var b=i(this),e=0,d=b.length>>>0;if("[object Function]"!=l(a))throw new TypeError;for(;e<d;)e in b&&a.call(c,b[e],e,b),e++};if(!Array.prototype.map)Array.prototype.map=function(a,c){var b=i(this),e=b.length>>>0,d=Array(e);if("[object Function]"!=l(a))throw new TypeError;for(var p=0;p<e;p++)p in b&&(d[p]=a.call(c,b[p],p,b));return d};if(!Array.prototype.filter)Array.prototype.filter=
function(a,c){var b=i(this),e=b.length>>>0,d=[];if("[object Function]"!=l(a))throw new TypeError;for(var p=0;p<e;p++)p in b&&a.call(c,b[p],p,b)&&d.push(b[p]);return d};if(!Array.prototype.every)Array.prototype.every=function(a,c){var b=i(this),e=b.length>>>0;if("[object Function]"!=l(a))throw new TypeError;for(var d=0;d<e;d++)if(d in b&&!a.call(c,b[d],d,b))return!1;return!0};if(!Array.prototype.some)Array.prototype.some=function(a,c){var b=i(this),e=b.length>>>0;if("[object Function]"!=l(a))throw new TypeError;
for(var d=0;d<e;d++)if(d in b&&a.call(c,b[d],d,b))return!0;return!1};if(!Array.prototype.reduce)Array.prototype.reduce=function(a){var c=i(this),b=c.length>>>0;if("[object Function]"!=l(a))throw new TypeError;if(!b&&1==arguments.length)throw new TypeError;var e=0,d;if(2<=arguments.length)d=arguments[1];else{do{if(e in c){d=c[e++];break}if(++e>=b)throw new TypeError;}while(1)}for(;e<b;e++)e in c&&(d=a.call(void 0,d,c[e],e,c));return d};if(!Array.prototype.reduceRight)Array.prototype.reduceRight=function(a){var c=
i(this),b=c.length>>>0;if("[object Function]"!=l(a))throw new TypeError;if(!b&&1==arguments.length)throw new TypeError;var e,b=b-1;if(2<=arguments.length)e=arguments[1];else{do{if(b in c){e=c[b--];break}if(0>--b)throw new TypeError;}while(1)}do b in this&&(e=a.call(void 0,e,c[b],b,c));while(b--);return e};if(!Array.prototype.indexOf)Array.prototype.indexOf=function(a){var c=i(this),b=c.length>>>0;if(!b)return-1;var e=0;1<arguments.length&&(e=k(arguments[1]));for(e=0<=e?e:b-Math.abs(e);e<b;e++)if(e in
c&&c[e]===a)return e;return-1};if(!Array.prototype.lastIndexOf)Array.prototype.lastIndexOf=function(a){var c=i(this),b=c.length>>>0;if(!b)return-1;var e=b-1;1<arguments.length&&(e=k(arguments[1]));for(e=0<=e?e:b-Math.abs(e);0<=e;e--)if(e in c&&a===c[e])return e;return-1};if(2!=[1,2].splice(0).length){var s=Array.prototype.splice;Array.prototype.splice=function(a,c){return!arguments.length?[]:s.apply(this,[void 0===a?0:a,void 0===c?this.length-a:c].concat(h.call(arguments,2)))}}if(!Object.keys){var j=
!0,t="toString,toLocaleString,valueOf,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,constructor".split(","),n=t.length,q;for(q in{toString:null})j=!1;Object.keys=function(a){if("object"!=typeof a&&"function"!=typeof a||null===a)throw new TypeError("Object.keys called on a non-object");var c=[],b;for(b in a)o(a,b)&&c.push(b);if(j)for(b=0;b<n;b++){var e=t[b];o(a,e)&&c.push(e)}return c}}if(!Date.prototype.toISOString)Date.prototype.toISOString=function(){var a,c,b;if(!isFinite(this))throw new RangeError;
a=[this.getUTCFullYear(),this.getUTCMonth()+1,this.getUTCDate(),this.getUTCHours(),this.getUTCMinutes(),this.getUTCSeconds()];for(c=a.length;c--;)b=a[c],10>b&&(a[c]="0"+b);return a.slice(0,3).join("-")+"T"+a.slice(3).join(":")+"."+("000"+this.getUTCMilliseconds()).slice(-3)+"Z"};if(!Date.now)Date.now=function(){return(new Date).getTime()};if(!Date.prototype.toJSON)Date.prototype.toJSON=function(){if("function"!=typeof this.toISOString)throw new TypeError;return this.toISOString()};a="\t\n\u000b\u000c\r \u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff";
if(!String.prototype.trim||a.trim()){var a="["+a+"]",u=RegExp("^"+a+a+"*"),r=RegExp(a+a+"*$");String.prototype.trim=function(){return(""+this).replace(u,"").replace(r,"")}}if("0".split(void 0,0).length){var v=String.prototype.split;String.prototype.split=function(a,c){return void 0===a&&0===c?[]:v.apply(this,arguments)}}if("".substr&&"b"!=="0b".substr(-1)){var x=String.prototype.substr;String.prototype.substr=function(a,c){return x.call(this,0>a?0>(a=this.length+a)?0:a:a,c)}}var k=function(a){a=+a;
a!==a?a=-1:0!==a&&a!==1/0&&a!==-(1/0)&&(a=(0<a||-1)*Math.floor(Math.abs(a)));return a},g="a"!="a"[0],i=function(a){if(null==a)throw new TypeError;return g&&"string"==typeof a&&a?a.split(""):Object(a)}})();
(function(a,f){var h=!(!Object.create||!Object.defineProperties||!Object.getOwnPropertyDescriptor);h&&!a.browser.msie&&Object.defineProperty&&Object.prototype.__defineGetter__&&function(){try{var a=document.createElement("foo");Object.defineProperty(a,"bar",{get:function(){return!0}});h=!!a.bar}catch(f){h=!1}a=null}();Modernizr.objectAccessor=!(!(h||Object.prototype.__defineGetter__&&Object.prototype.__lookupSetter__)||a.browser.opera&&!(11<=f.browserVersion));Modernizr.advancedObjectProperties=h;
if(!h||!Object.create||!Object.defineProperties||!Object.getOwnPropertyDescriptor||!Object.defineProperty){var o=Function.prototype.call.bind(Object.prototype.hasOwnProperty);f.objectCreate=function(a,h,j,o){var n;n=function(){};n.prototype=a;n=new n;if(!o&&!("__proto__"in n)&&!Modernizr.objectAccessor)n.__proto__=a;h&&f.defineProperties(n,h);if(j)n.options=jQuery.extend(!0,{},n.options||{},j),j=n.options;n._create&&jQuery.isFunction(n._create)&&n._create(j);return n};f.defineProperties=function(a,
h){for(var j in h)o(h,j)&&f.defineProperty(a,j,h[j]);return a};f.defineProperty=function(a,f,j){if("object"!=typeof j||null===j)return a;if(o(j,"value"))return a[f]=j.value,a;a.__defineGetter__&&("function"==typeof j.get&&a.__defineGetter__(f,j.get),"function"==typeof j.set&&a.__defineSetter__(f,j.set));return a};f.getPrototypeOf=function(a){return Object.getPrototypeOf&&Object.getPrototypeOf(a)||a.__proto__||a.constructor&&a.constructor.prototype};f.getOwnPropertyDescriptor=function(a,f){if("object"!==
typeof a&&"function"!==typeof a||null===a)throw new TypeError("Object.getOwnPropertyDescriptor called on a non-object");var j;if(Object.defineProperty&&Object.getOwnPropertyDescriptor)try{return j=Object.getOwnPropertyDescriptor(a,f)}catch(h){}j={configurable:!0,enumerable:!0,writable:!0,value:void 0};var n=a.__lookupGetter__&&a.__lookupGetter__(f),q=a.__lookupSetter__&&a.__lookupSetter__(f);if(!n&&!q){if(!o(a,f))return;j.value=a[f];return j}delete j.writable;delete j.value;j.get=j.set=void 0;if(n)j.get=
n;if(q)j.set=q;return j}}})(jQuery,jQuery.webshims);
jQuery.webshims.register("dom-extend",function(a,f,h,o,l){var s=f.modules,j=/\s*,\s*/,t={},n={},q={},u={},r={},v=a.fn.val,x=function(e,d,p,b,c){return c?v.call(a(e)):v.call(a(e),p)};a.fn.val=function(e){var d=this[0];arguments.length&&null==e&&(e="");if(!arguments.length)return!d||1!==d.nodeType?v.call(this):a.prop(d,"value",e,"val",!0);if(a.isArray(e))return v.apply(this,arguments);var p=a.isFunction(e);return this.each(function(b){d=this;1===d.nodeType&&(p?(b=e.call(d,b,a.prop(d,"value",l,"val",
!0)),null==b&&(b=""),a.prop(d,"value",b,"val")):a.prop(d,"value",e,"val"))})};var k="_webshimsLib"+Math.round(1E3*Math.random()),g=function(e,d,p){e=e.jquery?e[0]:e;if(!e)return p||{};var b=a.data(e,k);p!==l&&(b||(b=a.data(e,k,{})),d&&(b[d]=p));return d?b&&b[d]:b};[{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=g(this,
"shadowData");return a&&a[e.prop]||this})}});["removeAttr","prop","attr"].forEach(function(e){t[e]=a[e];a[e]=function(d,b,c,f,g){var w="val"==f,k=!w?t[e]:x;if(!d||!n[b]||1!==d.nodeType||!w&&f&&"attr"==e&&a.attrFn[b])return k(d,b,c,f,g);var z=(d.nodeName||"").toLowerCase(),i=q[z],m="attr"==e&&(!1===c||null===c)?"removeAttr":e,j,h,v;i||(i=q["*"]);i&&(i=i[b]);i&&(j=i[m]);if(j){if("value"==b)h=j.isVal,j.isVal=w;if("removeAttr"===m)return j.value.call(d);if(c===l)return j.get?j.get.call(d):j.value;j.set&&
("attr"==e&&!0===c&&(c=b),v=j.set.call(d,c));if("value"==b)j.isVal=h}else v=k(d,b,c,f,g);if((c!==l||"removeAttr"===m)&&r[z]&&r[z][b]){var o;o="removeAttr"==m?!1:"prop"==m?!!c:!0;r[z][b].forEach(function(a){if(!a.only||(a.only="prop"==e)||"attr"==a.only&&"prop"!=e)a.call(d,c,o,w?"val":m,e)})}return v};u[e]=function(d,b,c){q[d]||(q[d]={});q[d][b]||(q[d][b]={});var g=q[d][b][e],i=function(a,d,f){return d&&d[a]?d[a]:f&&f[a]?f[a]:"prop"==e&&"value"==b?function(a){return c.isVal?x(this,b,a,!1,0===arguments.length):
t[e](this,b,a)}:"prop"==e&&"value"==a&&c.value.apply?function(a){var d=t[e](this,b);d&&d.apply&&(d=d.apply(this,arguments));return d}:function(a){return t[e](this,b,a)}};q[d][b][e]=c;if(c.value===l){if(!c.set)c.set=c.writeable?i("set",c,g):f.cfg.useStrict&&"prop"==b?function(){throw b+" is readonly on "+d;}:a.noop;if(!c.get)c.get=i("get",c,g)}["value","get","set"].forEach(function(a){c[a]&&(c["_sup"+a]=i(a,g))})}});var i=!a.browser.msie||8<parseInt(a.browser.version,10),m=function(){var a=f.getPrototypeOf(o.createElement("foobar")),
d=Object.prototype.hasOwnProperty;return function(b,k,m){var j=o.createElement(b),w=f.getPrototypeOf(j);if(i&&w&&a!==w&&(!j[k]||!d.call(j,k))){var y=j[k];m._supvalue=function(){return y&&y.apply?y.apply(this,arguments):y};w[k]=m.value}else m._supvalue=function(){var a=g(this,"propValue");return a&&a[k]&&a[k].apply?a[k].apply(this,arguments):a&&a[k]},c.extendValue(b,k,m.value);m.value._supvalue=m._supvalue}}(),c=function(){var e={};f.addReady(function(d,b){var c={},p=function(e){c[e]||(c[e]=a(d.getElementsByTagName(e)),
b[0]&&a.nodeName(b[0],e)&&(c[e]=c[e].add(b)))};a.each(e,function(a,e){p(a);!e||!e.forEach?f.warn("Error: with "+a+"-property. methods: "+e):e.forEach(function(e){c[a].each(e)})});c=null});var d,b=a([]),c=function(b,c){e[b]?e[b].push(c):e[b]=[c];a.isDOMReady&&(d||a(o.getElementsByTagName(b))).each(c)};return{createTmpCache:function(e){a.isDOMReady&&(d=d||a(o.getElementsByTagName(e)));return d||b},flushTmpCache:function(){d=null},content:function(e,d){c(e,function(){var e=a.attr(this,d);null!=e&&a.attr(this,
d,e)})},createElement:function(a,e){c(a,e)},extendValue:function(e,d,b){c(e,function(){a(this).each(function(){g(this,"propValue",{})[d]=this[d];this[d]=b})})}}}(),b=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(f,{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(a,d){a in e||(e[a]=d)})},createPropDefault:b,data:g,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,f={init:!1,start:function(){if(!this.init)this.init=!0,this.height=a(o).height(),this.width=a(o).width(),setInterval(function(){var e=
a(o).height(),d=a(o).width();if(e!=f.height||d!=f.width)f.height=e,f.width=d,c({type:"docresize"})},400)}};c=function(c){clearTimeout(e);e=setTimeout(function(){if("resize"==c.type){var e=a(h).width(),g=a(h).width();if(g==d&&e==b)return;d=g;b=e;f.height=a(o).height();f.width=a(o).width()}a.event.trigger("updateshadowdom")},40)};a(h).bind("resize",c);a.event.customEvent.updateshadowdom=!0;return function(e,d,b){b=b||{};e.jquery&&(e=e[0]);d.jquery&&(d=d[0]);var c=a.data(e,k)||a.data(e,k,{}),i=a.data(d,
k)||a.data(d,k,{}),p={};if(b.shadowFocusElement){if(b.shadowFocusElement){if(b.shadowFocusElement.jquery)b.shadowFocusElement=b.shadowFocusElement[0];p=a.data(b.shadowFocusElement,k)||a.data(b.shadowFocusElement,k,p)}}else b.shadowFocusElement=d;c.hasShadow=d;p.nativeElement=i.nativeElement=e;p.shadowData=i.shadowData=c.shadowData={nativeElement:e,shadowElement:d,shadowFocusElement:b.shadowFocusElement};b.shadowChilds&&b.shadowChilds.each(function(){g(this,"shadowData",i.shadowData)});if(b.data)p.shadowData.data=
i.shadowData.data=c.shadowData.data=b.data;b=null;f.start()}}(),propTypes:{standard:function(a){b(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){b(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=o.createElement("a");e.style.display="none";return function(d,c){b(d);if(!d.prop)d.prop=
{set:function(a){d.attr.set.call(this,a)},get:function(){var d=this.getAttribute(c),b;if(null==d)return"";e.setAttribute("href",d+"");if(!a.support.hrefNormalized){try{a(e).insertAfter(this),b=e.getAttribute("href",4)}catch(f){b=e.getAttribute("href",4)}a(e).detach()}return b||e.href}}}}(),enumarated:function(a){b(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(j));d.forEach(function(d){f.defineNodeNamesProperty(e,d,{prop:{set:function(e){a.attr(this,d,e)},get:function(){return a.attr(this,d)||""}}})})},defineNodeNameProperty:function(e,d,b){n[d]=!0;if(b.reflect)f.propTypes[b.propType||"standard"](b,d);["prop","attr","removeAttr"].forEach(function(c){var g=b[c];g&&(g="prop"===c?a.extend({writeable:!0},g):a.extend({},g,{writeable:!0}),u[c](e,d,g),"*"!=e&&f.cfg.extendNative&&"prop"==c&&g.value&&
a.isFunction(g.value)&&m(e,d,g),b[c]=g)});b.initAttr&&c.content(e,d);return b},defineNodeNameProperties:function(a,d,b,g){for(var i in d)!g&&d[i].initAttr&&c.createTmpCache(a),b&&(d[i][b]?f.log("override: "+a+"["+i+"] for "+b):(d[i][b]={},["value","set","get"].forEach(function(a){a in d[i]&&(d[i][b][a]=d[i][a],delete d[i][a])}))),d[i]=f.defineNodeNameProperty(a,i,d[i]);g||c.flushTmpCache();return d},createElement:function(e,b,g){var i;a.isFunction(b)&&(b={after:b});c.createTmpCache(e);b.before&&c.createElement(e,
b.before);g&&(i=f.defineNodeNameProperties(e,g,!1,!0));b.after&&c.createElement(e,b.after);c.flushTmpCache();return i},onNodeNamesPropertyModify:function(b,d,g,f){"string"==typeof b&&(b=b.split(j));a.isFunction(g)&&(g={set:g});b.forEach(function(a){r[a]||(r[a]={});"string"==typeof d&&(d=d.split(j));g.initAttr&&c.createTmpCache(a);d.forEach(function(b){r[a][b]||(r[a][b]=[],n[b]=!0);if(g.set){if(f)g.set.only=f;r[a][b].push(g.set)}g.initAttr&&c.content(a,b)});c.flushTmpCache()})},defineNodeNamesBooleanProperty:function(b,
d,c){c||(c={});if(a.isFunction(c))c.set=c;f.defineNodeNamesProperty(b,d,{attr:{set:function(a){this.setAttribute(d,a);c.set&&c.set.call(this,!0)},get:function(){return null==this.getAttribute(d)?l:d}},removeAttr:{value:function(){this.removeAttribute(d);c.set&&c.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:c.initAttr||!1})},contentAttr:function(a,b,c){if(a.nodeName){if(c===l)return a=a.attributes[b]||{},c=a.specified?a.value:null,null==c?l:c;"boolean"==typeof c?c?a.setAttribute(b,b):
a.removeAttribute(b):a.setAttribute(b,c)}},activeLang:function(){var b=[],d={},c,g,i=/:\/\/|^\.*\//,k=function(b,c,d){return c&&d&&-1!==a.inArray(c,d.availabeLangs||[])?(b.loading=!0,d=d.langSrc,i.test(d)||(d=f.cfg.basePath+d),f.loader.loadScript(d+c+".js",function(){b.langObj[c]?(b.loading=!1,m(b,!0)):a(function(){b.langObj[c]&&m(b,!0);b.loading=!1})}),!0):!1},w=function(a){d[a]&&d[a].forEach(function(a){a.callback()})},m=function(a,b){if(a.activeLang!=c&&a.activeLang!==g){var d=s[a.module].options;
if(a.langObj[c]||g&&a.langObj[g])a.activeLang=c,a.callback(a.langObj[c]||a.langObj[g],c),w(a.module);else if(!b&&!k(a,c,d)&&!k(a,g,d)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],c),w(a.module)}};return function(f){if("string"==typeof f&&f!==c)c=f,g=c.split("-")[0],c==g&&(g=!1),a.each(b,function(a,b){m(b)});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="";b.push(f);m(f)}return c}}()});
a.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(a,b){f[a]=function(a,c,e,g){"string"==typeof a&&(a=a.split(j));var i={};a.forEach(function(a){i[a]=f[b](a,c,e,g)});return i}});f.isReady("webshimLocalization",!0)});
(function(a,f){var h=a.webshims.browserVersion;if(!(a.browser.mozilla&&5<h)&&(!a.browser.msie||12>h&&7<h)){var o={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},l=function(a,f){a.getAttribute("role")||a.setAttribute("role",f)};a.webshims.addReady(function(h,j){a.each(o,function(f,r){for(var v=a(f,h).add(j.filter(f)),n=0,k=v.length;n<k;n++)l(v[n],r)});if(h===f){var t=f.getElementsByTagName("header")[0],n=f.getElementsByTagName("footer"),q=n.length;
t&&!a(t).closest("section, article")[0]&&l(t,"banner");q&&(t=n[q-1],a(t).closest("section, article")[0]||l(t,"contentinfo"))}})}})(jQuery,document);
(function(a,f,h){var o=f.audio&&f.video,l=!1,s=h.cfg.mediaelement,j=h.bugs,t=function(){h.ready("mediaelement-swf",function(){if(!h.mediaelement.createSWF)h.modules["mediaelement-swf"].test=a.noop,h.reTest(["mediaelement-swf"],o)})},n;if(o){var q=document.createElement("video");f.videoBuffered="buffered"in q;l="loop"in q;h.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(","));f.videoBuffered||(h.addPolyfill("mediaelement-native-fix",{f:"mediaelement",
test:f.videoBuffered,d:["dom-support"]}),h.reTest("mediaelement-native-fix"))}if(o&&!s.preferFlash){var u=function(f){var j=f.target.parentNode;!s.preferFlash&&(a(f.target).is("audio, video")||j&&a("source:last",j)[0]==f.target)&&h.ready("DOM mediaelement",function(){n&&t();h.ready("WINDOWLOAD mediaelement-swf",function(){setTimeout(function(){n&&!s.preferFlash&&h.mediaelement.createSWF&&!a(f.target).closest("audio, video").is(".nonnative-api-active")?(s.preferFlash=!0,document.removeEventListener("error",
u,!0),a("audio, video").mediaLoad(),h.info("switching mediaelements option to 'preferFlash', due to an error with native player: "+f.target.src)):n||document.removeEventListener("error",u,!0)},20)})})};document.addEventListener("error",u,!0);a("audio, video").each(function(){this.error&&u({target:this})})}j.track=!1;f.track&&function(){if(!j.track)j.track="number"!=typeof a("<track />")[0].readyState;if(!j.track)try{new TextTrackCue(2,3,"")}catch(f){j.track=!0}var l=h.cfg.track,n=function(f){a(f.target).filter("track").each(k)},
k=function(){if(j.track||!l.override&&3==a.prop(this,"readyState"))l.override=!0,h.reTest("track"),document.removeEventListener("error",n,!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")},g=function(){document.addEventListener("error",n,!0);j.track?k():a("track").each(k)};l.override||(h.isReady("track")?g():a(g))}();h.register("mediaelement-core",function(a,
h,q,k,g){n=swfobject.hasFlashPlayerVersion("9.0.115");var i=h.mediaelement,m=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=i.getTypeForSrc(d.src,c))d.type=e,d.container=e;if(e=b.attr("media"))d.media=e;return d},c=!n&&"postMessage"in q&&o,b=
function(){var b;return function(){!b&&c&&(b=!0,h.loader.loadScript("https://www.youtube.com/player_api"),a(function(){h.polyfill("mediaelement-yt")}))}}(),e=function(){n?t():b()};h.addPolyfill("mediaelement-yt",{test:!c,d:["dom-support"]});i.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"]}};i.mimeTypes.source=a.extend({},i.mimeTypes.audio,i.mimeTypes.video);i.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(i.mimeTypes[c],function(a,c){if(-1!==c.indexOf(b))return d=a,!1});return d};i.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=k.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=m(b,d);e.src?c.push(e):a("source",b).each(function(){e=m(this,d);e.src&&c.push(e)});return c}};a.fn.loadMediaSrc=function(b,c){return this.each(function(){c!==g&&(a(this).removeAttr("poster"),c&&a.attr(this,"poster",c));i.srces(this,b);a(this).mediaLoad()})};i.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(",");
i.canThirdPlaySrces=function(b,d){var e="";if(n||c)b=a(b),d=d||i.srces(b),a.each(d,function(a,b){if(b.container&&b.src&&(n&&-1!=i.swfMimeTypes.indexOf(b.container)||c&&"video/youtube"==b.container))return e=b,!1});return e};var d={};i.canNativePlaySrces=function(b,c){var e="";if(o){var b=a(b),f=(b[0].nodeName||"").toLowerCase();if(!d[f])return e;c=c||i.srces(b);a.each(c,function(a,c){if(c.type&&d[f].prop._supvalue.call(b[0],c.type))return e=c,!1})}return e};i.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 p=function(){var a;return function(d,f,g){h.ready(n?"mediaelement-swf":"mediaelement-yt",function(){i.createSWF?i.createSWF(d,f,g):a||(a=!0,e(),p(d,f,g))});!a&&c&&!i.createSWF&&b()}}(),u=function(a,b,c,d,e){c||!1!==c&&b&&"third"==b.isActive?(c=i.canThirdPlaySrces(a,d))?p(a,c,b):e?i.setError(a,!1):u(a,b,!1,d,!0):(c=i.canNativePlaySrces(a,d))?b&&"third"==
b.isActive&&i.setActive(a,"html5",b):e?(i.setError(a,!1),b&&"third"==b.isActive&&i.setActive(a,"html5",b)):u(a,b,!0,d,!0)},C=/^(?:embed|object|datalist)$/i,B=function(b,c){var d=h.data(b,"mediaelementBase")||h.data(b,"mediaelementBase",{}),e=i.srces(b),f=b.parentNode;clearTimeout(d.loadTimer);a.data(b,"mediaerror",!1);if(e.length&&f&&!(1!=f.nodeType||C.test(f.nodeName||"")))c=c||h.data(b,"mediaelement"),u(b,c,s.preferFlash||g,e)};a(k).bind("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(b){var c=h.defineNodeNameProperty(b,"load",{prop:{value:function(){var a=h.data(this,"mediaelement");B(this,a);o&&(!a||"html5"==a.isActive)&&c.prop._supvalue&&c.prop._supvalue.apply(this,arguments)}}});d[b]=h.defineNodeNameProperty(b,
"canPlayType",{prop:{value:function(c){var e="";o&&d[b].prop._supvalue&&(e=d[b].prop._supvalue.call(this,c),"no"==e&&(e=""));!e&&n&&(c=a.trim((c||"").split(";")[0]),-1!=i.swfMimeTypes.indexOf(c)&&(e="maybe"));return e}}})});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)}});q=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():B(this);if(o){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).bind("play loadstart progress",function(a){"progress"==
a.type&&(c=e());clearTimeout(b);b=setTimeout(f,999)}).bind("emptied stalled mediaerror abort suspend",function(a){"emptied"==a.type&&(c=!1);clearTimeout(b)})}})})};f.track&&!j.track&&h.defineProperty(TextTrack.prototype,"shimActiveCues",{get:function(){return this._shimActiveCues||this.activeCues}});o?(h.isReady("mediaelement-core",!0),q(),h.ready("WINDOWLOAD mediaelement",e)):h.ready("mediaelement-swf",q);a(function(){h.loader.loadList(["track-ui"])})})})(jQuery,Modernizr,jQuery.webshims);
jQuery.webshims.register("mediaelement-swf",function(a,f,h,o,l,s){var j=f.mediaelement,t=h.swfobject,n=Modernizr.audio&&Modernizr.video,q=t.hasFlashPlayerVersion("9.0.115"),u=0,h={paused:!0,ended:!1,currentSrc:"",duration:h.NaN,readyState:0,networkState:0,videoHeight:0,videoWidth:0,error:null,buffered:{start:function(a){if(a)f.error("buffered index size error");else return 0},end:function(a){if(a)f.error("buffered index size error");else return 0},length:0}},r=Object.keys(h),v={currentTime:0,volume:1,
muted:!1};Object.keys(v);var x=a.extend({isActive:"html5",activating:"html5",wasSwfReady:!1,_bufferedEnd:0,_bufferedStart:0,_metadata:!1,_durationCalcs:-1,_callMeta:!1,currentTime:0,_ppFlag:l},h,v),k=/^jwplayer-/,g=function(a){if(a=o.getElementById(a.replace(k,"")))return a=f.data(a,"mediaelement"),"third"==a.isActive?a:null},i=function(a){return(a=f.data(a,"mediaelement"))&&"third"==a.isActive?a:null},m=function(b,c){c=a.Event(c);c.preventDefault();a.event.trigger(c,l,b)},c=s.playerPath||f.cfg.basePath+
"jwplayer/"+(s.playerName||"player.swf"),b=s.pluginPath||f.cfg.basePath+"swf/jwwebshims.swf";f.extendUNDEFProp(s.jwParams,{allowscriptaccess:"always",allowfullscreen:"true",wmode:"transparent"});f.extendUNDEFProp(s.jwVars,{screencolor:"ffffffff"});f.extendUNDEFProp(s.jwAttrs,{bgcolor:"#000000"});var e=function(b,c){var d=b.duration;if(!(d&&0<b._durationCalcs)){try{if(b.duration=b.jwapi.getPlaylist()[0].duration,!b.duration||0>=b.duration||b.duration===b._lastDuration)b.duration=d}catch(e){}b.duration&&
b.duration!=b._lastDuration?(m(b._elem,"durationchange"),("audio"==b._elemNodeName||b._callMeta)&&j.jwEvents.Model.META(a.extend({duration:b.duration},c),b),b._durationCalcs--):b._durationCalcs++}},d=function(a,b){3>a&&clearTimeout(b._canplaythroughTimer);if(3<=a&&3>b.readyState)b.readyState=a,m(b._elem,"canplay"),clearTimeout(b._canplaythroughTimer),b._canplaythroughTimer=setTimeout(function(){d(4,b)},4E3);if(4<=a&&4>b.readyState)b.readyState=a,m(b._elem,"canplaythrough");b.readyState=a};a.extend(a.event.customEvent,
{updatemediaelementdimensions:!0,flashblocker:!0,swfstageresize:!0,mediaelementapichange:!0});j.jwEvents={View:{PLAY:function(a){var b=g(a.id);if(b&&!b.stopPlayPause&&(b._ppFlag=!0,b.paused==a.state)){b.paused=!a.state;if(b.ended)b.ended=!1;m(b._elem,a.state?"play":"pause")}}},Model:{BUFFER:function(b){var c=g(b.id);if(c&&"percentage"in b&&c._bufferedEnd!=b.percentage){c.networkState=100==b.percentage?1:2;(isNaN(c.duration)||5<b.percentage&&25>b.percentage||100===b.percentage)&&e(c,b);if(c.ended)c.ended=
!1;if(c.duration){2<b.percentage&&20>b.percentage?d(3,c):20<b.percentage&&d(4,c);if(c._bufferedEnd&&c._bufferedEnd>b.percentage)c._bufferedStart=c.currentTime||0;c._bufferedEnd=b.percentage;c.buffered.length=1;if(100==b.percentage)c.networkState=1,d(4,c);a.event.trigger("progress",l,c._elem,!0)}}},META:function(a,b){if(b=b&&b.networkState?b:g(a.id))if("duration"in a){if(!b._metadata||!((!a.height||b.videoHeight==a.height)&&a.duration===b.duration)){b._metadata=!0;var c=b.duration;if(a.duration)b.duration=
a.duration;b._lastDuration=b.duration;if(a.height||a.width)b.videoHeight=a.height||0,b.videoWidth=a.width||0;if(!b.networkState)b.networkState=2;1>b.readyState&&d(1,b);b.duration&&c!==b.duration&&m(b._elem,"durationchange");m(b._elem,"loadedmetadata")}}else b._callMeta=!0},TIME:function(a){var b=g(a.id);if(b&&b.currentTime!==a.position){b.currentTime=a.position;b.duration&&b.duration<b.currentTime&&e(b,a);2>b.readyState&&d(2,b);if(b.ended)b.ended=!1;m(b._elem,"timeupdate")}},STATE:function(a){var b=
g(a.id);if(b)switch(a.newstate){case "BUFFERING":if(b.ended)b.ended=!1;d(1,b);m(b._elem,"waiting");break;case "PLAYING":b.paused=!1;b._ppFlag=!0;b.duration||e(b,a);3>b.readyState&&d(3,b);if(b.ended)b.ended=!1;m(b._elem,"playing");break;case "PAUSED":if(!b.paused&&!b.stopPlayPause)b.paused=!0,b._ppFlag=!0,m(b._elem,"pause");break;case "COMPLETED":4>b.readyState&&d(4,b),b.ended=!0,m(b._elem,"ended")}}},Controller:{ERROR:function(a){var b=g(a.id);b&&j.setError(b._elem,a.message)},SEEK:function(a){var b=
g(a.id);if(b){if(b.ended)b.ended=!1;if(b.paused)try{b.jwapi.sendEvent("play","false")}catch(c){}if(b.currentTime!=a.position)b.currentTime=a.position,m(b._elem,"timeupdate")}},VOLUME:function(a){var b=g(a.id);if(b&&(a=a.percentage/100,b.volume!=a))b.volume=a,m(b._elem,"volumechange")},MUTE:function(a){if(!a.state){var b=g(a.id);if(b&&b.muted!=a.state)b.muted=a.state,m(b._elem,"volumechange")}}}};var p=function(b){var c=!0;a.each(j.jwEvents,function(d,e){a.each(e,function(a){try{b.jwapi["add"+d+"Listener"](a,
"jQuery.webshims.mediaelement.jwEvents."+d+"."+a)}catch(e){return c=!1}})});return c},G=function(a){var b=a.actionQueue.length,c=0,d;if(b&&"third"==a.isActive)for(;a.actionQueue.length&&b>c;)c++,d=a.actionQueue.shift(),a.jwapi[d.fn].apply(a.jwapi,d.args);if(a.actionQueue.length)a.actionQueue=[]},C=function(b){b&&(b._ppFlag===l&&a.prop(b._elem,"autoplay")||!b.paused)&&setTimeout(function(){if("third"==b.isActive&&(b._ppFlag===l||!b.paused))try{a(b._elem).play()}catch(c){}},1)},B=function(b){if(b&&
"video"==b._elemNodeName){var c,d,e,f,g,i,k,m,h=function(h,j){if(j&&h&&!(1>j||1>h||"third"!=b.isActive))if(c&&(c.remove(),c=!1),f=h,g=j,clearTimeout(k),d="auto"==b._elem.style.width,e="auto"==b._elem.style.height,d||e){i=i||a(b._elem).getShadowElement();var l;d&&!e?(l=i.height(),h*=l/j,j=l):!d&&e&&(l=i.width(),j*=l/h,h=l);m=!0;setTimeout(function(){m=!1},9);i.css({width:h,height:j})}},j=function(){if(!("third"!=b.isActive||a.prop(b._elem,"readyState")&&a.prop(this,"videoWidth"))){var f=a.prop(b._elem,
"poster");if(f&&(d="auto"==b._elem.style.width,e="auto"==b._elem.style.height,d||e))c&&(c.remove(),c=!1),c=a('<img style="position: absolute; height: auto; width: auto; top: 0px; left: 0px; visibility: hidden;" />'),c.bind("load error alreadycomplete",function(){clearTimeout(k);var b=this,d=b.naturalWidth||b.width||b.offsetWidth,e=b.naturalHeight||b.height||b.offsetHeight;e&&d?(h(d,e),b=null):setTimeout(function(){d=b.naturalWidth||b.width||b.offsetWidth;e=b.naturalHeight||b.height||b.offsetHeight;
h(d,e);c&&(c.remove(),c=!1);b=null},9);a(this).unbind()}).prop("src",f).appendTo("body").each(function(){this.complete||this.error?a(this).triggerHandler("alreadycomplete"):(clearTimeout(k),k=setTimeout(function(){a(b._elem).triggerHandler("error")},9999))})}};a(b._elem).bind("loadedmetadata",function(){h(a.prop(this,"videoWidth"),a.prop(this,"videoHeight"))}).bind("emptied",j).bind("swfstageresize updatemediaelementdimensions",function(){m||h(f,g)}).bind("emptied",function(){f=void 0;g=void 0}).triggerHandler("swfstageresize");
j();a.prop(b._elem,"readyState")&&h(a.prop(b._elem,"videoWidth"),a.prop(b._elem,"videoHeight"))}};j.playerResize=function(b){b&&(b=o.getElementById(b.replace(k,"")))&&a(b).triggerHandler("swfstageresize")};a(o).bind("emptied",function(a){a=i(a.target);C(a)});var w;j.jwPlayerReady=function(b){var c=g(b.id),d=0,e=function(){if(!(9<d))if(d++,p(c)){if(c.wasSwfReady)a(c._elem).mediaLoad();else{var g=parseFloat(b.version,10);(5.1>g||6<=g)&&f.warn("mediaelement-swf is only testet with jwplayer 5.6+")}c.wasSwfReady=
!0;c.tryedReframeing=0;G(c);C(c)}else clearTimeout(c.reframeTimer),c.reframeTimer=setTimeout(e,9*d),2<d&&9>c.tryedReframeing&&(c.tryedReframeing++,c.shadowElem.css({overflow:"visible"}),setTimeout(function(){c.shadowElem.css({overflow:"hidden"})},16))};if(c&&c.jwapi){if(!c.tryedReframeing)c.tryedReframeing=0;clearTimeout(w);c.jwData=b;c.shadowElem.removeClass("flashblocker-assumed");a.prop(c._elem,"volume",c.volume);a.prop(c._elem,"muted",c.muted);e()}};var y=a.noop;if(n){var z={play:1,playing:1},
E="play,pause,playing,canplay,progress,waiting,ended,loadedmetadata,durationchange,emptied".split(","),F=E.map(function(a){return a+".webshimspolyfill"}).join(" "),H=function(b){var c=f.data(b.target,"mediaelement");c&&(b.originalEvent&&b.originalEvent.type===b.type)==("third"==c.activating)&&(b.stopImmediatePropagation(),z[b.type]&&c.isActive!=c.activating&&a(b.target).pause())},y=function(b){a(b).unbind(F).bind(F,H);E.forEach(function(a){f.moveToFirstEvent(b,a)})};y(o)}j.setActive=function(b,c,
d){d||(d=f.data(b,"mediaelement"));if(d&&d.isActive!=c){"html5"!=c&&"third"!=c&&f.warn("wrong type for mediaelement activating: "+c);var e=f.data(b,"shadowData");d.activating=c;a(b).pause();d.isActive=c;"third"==c?(e.shadowElement=e.shadowFocusElement=d.shadowElem[0],a(b).addClass("swf-api-active nonnative-api-active").hide().getShadowElement().show()):(a(b).removeClass("swf-api-active nonnative-api-active").show().getShadowElement().hide(),e.shadowElement=e.shadowFocusElement=!1);a(b).trigger("mediaelementapichange")}};
var I=function(){var a="_bufferedEnd,_bufferedStart,_metadata,_ppFlag,currentSrc,currentTime,duration,ended,networkState,paused,videoHeight,videoWidth,_callMeta,_durationCalcs".split(","),b=a.length;return function(c){if(c){var e=b,f=c.networkState;for(d(0,c);--e;)delete c[a[e]];c.actionQueue=[];c.buffered.length=0;f&&m(c._elem,"emptied")}}}(),D=function(b,c){var d=b._elem,e=b.shadowElem;a(d)[c?"addClass":"removeClass"]("webshims-controls");"audio"==b._elemNodeName&&!c?e.css({width:0,height:0}):e.css({width:d.style.width||
a(d).width(),height:d.style.height||a(d).height()})};j.createSWF=function(d,e,g){if(q){1>u?u=1:u++;var i=a.extend({},s.jwVars,{image:a.prop(d,"poster")||"",file:e.srcProp}),k=a(d).data("jwvars")||{};g||(g=f.data(d,"mediaelement"));if(g&&g.swfCreated)j.setActive(d,"third",g),I(g),g.currentSrc=e.srcProp,a.extend(i,k),s.changeJW(i,d,e,g,"load"),A(d,"sendEvent",["LOAD",i]);else{var h=a.prop(d,"controls"),m="jwplayer-"+f.getID(d),l=a.extend({},s.jwParams,a(d).data("jwparams")),p=d.nodeName.toLowerCase(),
o=a.extend({},s.jwAttrs,{name:m,id:m},a(d).data("jwattrs")),r=a('<div class="polyfill-'+p+' polyfill-mediaelement" id="wrapper-'+m+'"><div id="'+m+'"></div>').css({position:"relative",overflow:"hidden"}),g=f.data(d,"mediaelement",f.objectCreate(x,{actionQueue:{value:[]},shadowElem:{value:r},_elemNodeName:{value:p},_elem:{value:d},currentSrc:{value:e.srcProp},swfCreated:{value:!0},buffered:{value:{start:function(a){if(a>=g.buffered.length)f.error("buffered index size error");else return 0},end:function(a){if(a>=
g.buffered.length)f.error("buffered index size error");else return(g.duration-g._bufferedStart)*g._bufferedEnd/100+g._bufferedStart},length:0}}}));D(g,h);r.insertBefore(d);n&&a.extend(g,{volume:a.prop(d,"volume"),muted:a.prop(d,"muted")});a.extend(i,{id:m,controlbar:h?s.jwVars.controlbar||("video"==p?"over":"bottom"):"video"==p?"none":"bottom",icons:""+(h&&"video"==p)},k,{playerready:"jQuery.webshims.mediaelement.jwPlayerReady"});i.plugins=i.plugins?i.plugins+(","+b):b;f.addShadowDom(d,r);y(d);j.setActive(d,
"third",g);s.changeJW(i,d,e,g,"embed");a(d).bind("updatemediaelementdimensions updateshadowdom",function(){D(g,a.prop(d,"controls"))});B(g);t.embedSWF(c,m,"100%","100%","9.0.0",!1,i,l,o,function(b){if(b.success)g.jwapi=b.ref,h||a(b.ref).attr("tabindex","-1").css("outline","none"),setTimeout(function(){if(!b.ref.parentNode&&r[0].parentNode||"none"==b.ref.style.display)r.addClass("flashblocker-assumed"),a(d).trigger("flashblocker"),f.warn("flashblocker assumed");a(b.ref).css({minHeight:"2px",minWidth:"2px",
display:"block"})},9),w||(clearTimeout(w),w=setTimeout(function(){var c=a(b.ref);1<c[0].offsetWidth&&1<c[0].offsetHeight&&0===location.protocol.indexOf("file:")?f.error("Add your local development-directory to the local-trusted security sandbox:  http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html"):(2>c[0].offsetWidth||2>c[0].offsetHeight)&&f.info("JS-SWF connection can't be established on hidden or unconnected flash objects")},8E3))})}}else setTimeout(function(){a(d).mediaLoad()},
1)};var A=function(a,b,c,d){return(d=d||i(a))?(d.jwapi&&d.jwapi[b]?d.jwapi[b].apply(d.jwapi,c||[]):(d.actionQueue.push({fn:b,args:c}),10<d.actionQueue.length&&setTimeout(function(){5<d.actionQueue.length&&d.actionQueue.shift()},99)),d):!1};["audio","video"].forEach(function(b){var c={},d,e=function(a){"audio"==b&&("videoHeight"==a||"videoWidth"==a)||(c[a]={get:function(){var b=i(this);return b?b[a]:n&&d[a].prop._supget?d[a].prop._supget.apply(this):x[a]},writeable:!1})},g=function(a,b){e(a);delete c[a].writeable;
c[a].set=b};g("volume",function(a){var b=i(this);if(b){if(a*=100,!isNaN(a)){var c=b.muted;(0>a||100<a)&&f.error("volume greater or less than allowed "+a/100);A(this,"sendEvent",["VOLUME",a],b);if(c)try{b.jwapi.sendEvent("mute","true")}catch(e){}a/=100;if(!(b.volume==a||"third"!=b.isActive))b.volume=a,m(b._elem,"volumechange")}}else if(d.volume.prop._supset)return d.volume.prop._supset.apply(this,arguments)});g("muted",function(a){var b=i(this);if(b){if(a=!!a,A(this,"sendEvent",["mute",""+a],b),!(b.muted==
a||"third"!=b.isActive))b.muted=a,m(b._elem,"volumechange")}else if(d.muted.prop._supset)return d.muted.prop._supset.apply(this,arguments)});g("currentTime",function(a){var b=i(this);if(b){if(a*=1,!isNaN(a)){if(b.paused)clearTimeout(b.stopPlayPause),b.stopPlayPause=setTimeout(function(){b.paused=!0;b.stopPlayPause=!1},50);A(this,"sendEvent",["SEEK",""+a],b);if(b.paused){if(0<b.readyState)b.currentTime=a,m(b._elem,"timeupdate");try{b.jwapi.sendEvent("play","false")}catch(c){}}}}else if(d.currentTime.prop._supset)return d.currentTime.prop._supset.apply(this,
arguments)});["play","pause"].forEach(function(a){c[a]={value:function(){var b=i(this);if(b)b.stopPlayPause&&clearTimeout(b.stopPlayPause),A(this,"sendEvent",["play","play"==a],b),setTimeout(function(){if("third"==b.isActive&&(b._ppFlag=!0,b.paused!=("play"!=a)))b.paused="play"!=a,m(b._elem,a)},1);else if(d[a].prop._supvalue)return d[a].prop._supvalue.apply(this,arguments)}}});r.forEach(e);f.onNodeNamesPropertyModify(b,"controls",function(c,d){var e=i(this);a(this)[d?"addClass":"removeClass"]("webshims-controls");
if(e){try{A(this,d?"showControls":"hideControls",[b],e)}catch(g){f.warn("you need to generate a crossdomain.xml")}"audio"==b&&D(e,d);a(e.jwapi).attr("tabindex",d?"0":"-1")}});d=f.defineNodeNameProperties(b,c,"prop")});if(q){var J=a.cleanData,K=a.browser.msie&&9>f.browserVersion,L={object:1,OBJECT:1};a.cleanData=function(a){var b,c,d;if(a&&(c=a.length)&&u)for(b=0;b<c;b++)if(L[a[b].nodeName]){if("sendEvent"in a[b]){u--;try{a[b].sendEvent("play",!1)}catch(e){}}if(K)try{for(d in a[b])"function"==typeof a[b][d]&&
(a[b][d]=null)}catch(g){}}return J.apply(this,arguments)}}n||(["poster","src"].forEach(function(a){f.defineNodeNamesProperty("src"==a?["audio","video","source"]:["video"],a,{reflect:!0,propType:"src"})}),["autoplay","controls"].forEach(function(a){f.defineNodeNamesBooleanProperty(["audio","video"],a)}),f.defineNodeNamesProperties(["audio","video"],{HAVE_CURRENT_DATA:{value:2},HAVE_ENOUGH_DATA:{value:4},HAVE_FUTURE_DATA:{value:3},HAVE_METADATA:{value:1},HAVE_NOTHING:{value:0},NETWORK_EMPTY:{value:0},
NETWORK_IDLE:{value:1},NETWORK_LOADING:{value:2},NETWORK_NO_SOURCE:{value:3}},"prop"))});
jQuery.webshims.register("track",function(a,f,h,o){var l=f.mediaelement;(new Date).getTime();var s={subtitles:1,captions:1},j=function(a){var g={};a.addEventListener=function(a,k){g[a]&&f.error("always use $.bind to the shimed event: "+a+" already bound fn was: "+g[a]+" your fn was: "+k);g[a]=k};a.removeEventListener=function(a,k){g[a]&&g[a]!=k&&f.error("always use $.bind/$.unbind to the shimed event: "+a+" already bound fn was: "+g[a]+" your fn was: "+k);g[a]&&delete g[a]};return a},t={getCueById:function(a){for(var g=
null,f=0,h=this.length;f<h;f++)if(this[f].id===a){g=this[f];break}return g}},n={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 g=this.cues[this.cues.length-1];g&&g.startTime>a.startTime&&f.error("cue startTime higher than previous cue's startTime")}else this.cues=l.createCueList();a.track&&f.error("cue already part of a track element");
a.track=this;this.cues.push(a)},removeCue:function(){f.error("not implemented yet")},DISABLED:"disabled",OFF:"disabled",HIDDEN:"hidden",SHOWING:"showing",ERROR:3,LOADED:2,LOADING:1,NONE:0},q=["kind","label","srclang"],u=Function.prototype.call.bind(Object.prototype.hasOwnProperty),r=function(k,g){var i=[],h=[],c=[],b,e;k||(k=f.data(this,"mediaelementBase")||f.data(this,"mediaelementBase",{}));if(!g)k.blockTrackListUpdate=!0,g=a.prop(this,"textTracks"),k.blockTrackListUpdate=!1;clearTimeout(k.updateTrackListTimer);
a("track",this).each(function(){var b=a.prop(this,"track");c.push(b);-1==g.indexOf(b)&&h.push(b)});if(k.scriptedTextTracks)for(b=0,e=k.scriptedTextTracks.length;b<e;b++)c.push(k.scriptedTextTracks[b]),-1==g.indexOf(k.scriptedTextTracks[b])&&h.push(k.scriptedTextTracks[b]);for(b=0,e=g.length;b<e;b++)-1==c.indexOf(g[b])&&i.push(g[b]);if(i.length||h.length){g.splice(0);for(b=0,e=c.length;b<e;b++)g.push(c[b]);for(b=0,e=i.length;b<e;b++)a([g]).triggerHandler(a.Event({type:"removetrack",track:g,track:i[b]}));
for(b=0,e=h.length;b<e;b++)a([g]).triggerHandler(a.Event({type:"addtrack",track:g,track:h[b]}));(k.scriptedTextTracks||i.length)&&a(this).triggerHandler("updatetrackdisplay")}},v=function(k,g){var i,h;g||(g=f.data(k,"trackData"));if(g&&!g.isTriggering)g.isTriggering=!0,i=(g.track||{}).mode,h=(g.track||{}).kind,setTimeout(function(){if(i!==(g.track||{}).mode||h!=(g.track||{}).kind)(g.track||{}).readyState?a(k).parent().triggerHandler("updatetrackdisplay"):a(k).triggerHandler("checktrackmode");g.isTriggering=
!1},9)},x=a("<div />")[0];h.TextTrackCue=function(a,g,i){3!=arguments.length&&f.error("wrong arguments.length for TextTrackCue.constructor");this.startTime=a;this.endTime=g;this.text=i;this.id="";this.pauseOnExit=!1;j(this)};h.TextTrackCue.prototype={onenter:null,onexit:null,pauseOnExit:!1,getCueAsHTML:function(){var a="",g="",f=o.createDocumentFragment(),h;if(!u(this,"getCueAsHTML"))h=this.getCueAsHTML=function(){var c,b;if(a!=this.text){a=this.text;g=l.parseCueTextToHTML(a);x.innerHTML=g;for(c=
0,b=x.childNodes.length;c<b;c++)f.appendChild(x.childNodes[c].cloneNode(!0))}return f.cloneNode(!0)};return h?h.apply(this,arguments):f.cloneNode(!0)},track:null,id:""};l.createCueList=function(){return a.extend([],t)};l.parseCueTextToHTML=function(){var a=/(<\/?[^>]+>)/ig,f=/^(?:c|v|ruby|rt|b|i|u)/,i=/\<\s*\//,h=function(a,c,d,f){i.test(f)?a="</"+a+">":(d.splice(0,1),a="<"+a+" "+c+'="'+d.join(" ").replace(/\"/g,"&#34;")+'">');return a},c=function(a){var c=a.replace(/[<\/>]+/ig,"").split(/[\s\.]+/);
c[0]&&(c[0]=c[0].toLowerCase(),f.test(c[0])?"c"==c[0]?a=h("span","class",c,a):"v"==c[0]&&(a=h("q","title",c,a)):a="");return a};return function(b){return b.replace(a,c)}}();l.loadTextTrack=function(h,g,i,j){var c=i.track,b=function(){var e=a.prop(g,"src"),d,i;if("disabled"!=c.mode&&e&&a.attr(g,"src")&&(a(h).unbind("play playing timeupdate updatetrackdisplay",b),a(g).unbind("checktrackmode",b),!c.readyState)){d=function(){c.readyState=3;c.cues=null;c.activeCues=c.shimActiveCues=c._shimActiveCues=null;
a(g).triggerHandler("error")};c.readyState=1;try{c.cues=l.createCueList(),c.activeCues=c.shimActiveCues=c._shimActiveCues=l.createCueList(),i=a.ajax({dataType:"text",url:e,success:function(b){"text/vtt"!=i.getResponseHeader("content-type")&&f.error("set the mime-type of your WebVTT files to text/vtt. see: http://dev.w3.org/html5/webvtt/#text/vtt");l.parseCaptions(b,c,function(b){b&&"length"in b?(c.readyState=2,a(g).triggerHandler("load"),a(h).triggerHandler("updatetrackdisplay")):d()})},error:d})}catch(j){d(),
f.warn(j)}}};c.readyState=0;c.shimActiveCues=null;c._shimActiveCues=null;c.activeCues=null;c.cues=null;a(h).unbind("play playing timeupdate updatetrackdisplay",b);a(g).unbind("checktrackmode",b);a(h).bind("play playing timeupdate updatetrackdisplay",b);a(g).bind("checktrackmode",b);if(j)c.mode=s[c.kind]?"showing":"hidden",b()};l.createTextTrack=function(h,g){var i,m;if(g.nodeName&&(m=f.data(g,"trackData")))v(g,m),i=m.track;if(!i)i=j(f.objectCreate(n)),q.forEach(function(c){var b=a.prop(g,c);b&&("srclang"==
c&&(c="language"),i[c]=b)}),g.nodeName?(m=f.data(g,"trackData",{track:i}),l.loadTextTrack(h,g,m,a.prop(g,"default"))):(i.cues=l.createCueList(),i.activeCues=i._shimActiveCues=i.shimActiveCues=l.createCueList(),i.mode="hidden",i.readyState=2);return i};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,i=/^(STYLE|STYLES)\s+\-\-\>\s*\n([\s\S]*)/g,h=/^(COMMENT|COMMENTS)\s+\-\-\>\s+(.*)/g;
return function(c){var b,e,d,j;if(f.exec(c)||i.exec(c)||h.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)&&(d=""+c.shift().replace(/\s*/ig,""));0<c.length;){if(j=a.exec(c[0]))e=j.slice(1),b=parseInt(3600*(e[0]||0),10)+parseInt(60*(e[1]||0),10)+parseInt(e[2]||0,10)+parseFloat("0."+(e[3]||0)),e=parseInt(3600*(e[4]||0),10)+parseInt(60*(e[5]||0),10)+parseInt(e[6]||0,10)+parseFloat("0."+(e[7]||0));c=c.slice(0,0).concat(c.slice(1));
break}if(!b&&!e)return null;c=c.join("\n");b=new TextTrackCue(b,e,c);if(d)b.id=d;return b}}();l.parseCaptions=function(a,g,i){l.createCueList();var h,c,b,e,d;a?(b=/^WEBVTT(\s*FILE)?/ig,c=function(j,n){for(;j<n;j++){h=a[j];if(b.test(h))d=!0;else if(h.replace(/\s*/ig,"").length){if(!d){f.error("please use WebVTT format. This is the standard");i(null);break}(h=l.parseCaptionChunk(h,j))&&g.addCue(h)}if(e<(new Date).getTime()-9){j++;setTimeout(function(){e=(new Date).getTime();c(j,n)},90);break}}j>=n&&
(d||f.error("please use WebVTT format. This is the standard"),i(g.cues))},a=a.replace(/\r\n/g,"\n"),setTimeout(function(){a=a.replace(/\r/g,"\n");setTimeout(function(){e=(new Date).getTime();a=a.split(/\n\n+/g);c(0,a.length)},9)},9)):f.error("Required parameter captionData not supplied.")};l.createTrackList=function(a,g){g=g||f.data(a,"mediaelementBase")||f.data(a,"mediaelementBase",{});if(!g.textTracks)g.textTracks=[],f.defineProperties(g.textTracks,{onaddtrack:{value:null},onremovetrack:{value:null}}),
j(g.textTracks);return g.textTracks};Modernizr.track||(f.defineNodeNamesBooleanProperty(["track"],"default"),f.reflectProperties(["track"],["srclang","label"]),f.defineNodeNameProperties("track",{src:{reflect:!0,propType:"src"}}));f.defineNodeNameProperties("track",{kind:{attr:Modernizr.track?{set:function(a){var g=f.data(this,"trackData");this.setAttribute("data-kind",a);if(g)g.attrKind=a},get:function(){var a=f.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"]}});f.onNodeNamesPropertyModify("track","kind",function(){var h=f.data(this,"trackData");if(h)h.track.kind=a.prop(this,"kind"),v(this,h)});f.onNodeNamesPropertyModify("track","src",function(h){if(h){var h=f.data(this,"trackData"),g;h&&(g=a(this).closest("video, audio"),g[0]&&l.loadTextTrack(g,this,h))}});f.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");f.defineNodeNamesProperties(["audio","video"],{textTracks:{get:function(){var a=f.data(this,"mediaelementBase")||f.data(this,"mediaelementBase",{}),g=l.createTrackList(this,a);a.blockTrackListUpdate||r.call(this,a,g);return g},writeable:!1},addTextTrack:{value:function(a,
g,h){a=l.createTextTrack(this,{kind:a||"",label:g||"",srclang:h||""});g=f.data(this,"mediaelementBase")||f.data(this,"mediaelementBase",{});if(!g.scriptedTextTracks)g.scriptedTextTracks=[];g.scriptedTextTracks.push(a);r.call(this);return a}}},"prop");a(o).bind("emptied ended updatetracklist",function(h){if(a(h.target).is("audio, video")){var g=f.data(h.target,"mediaelementBase");if(g)clearTimeout(g.updateTrackListTimer),g.updateTrackListTimer=setTimeout(function(){r.call(h.target,g)},0)}});f.addReady(function(h,
g){var i=g.filter("video, audio, track").closest("audio, video");a("video, audio",h).add(i).each(function(){r.call(this)}).each(function(){if(Modernizr.track){var g=this.textTracks;a.prop(this,"textTracks").length!=g.length&&f.error("textTracks couldn't be copied");a("track",this).each(function(){var c=a.prop(this,"track"),b=this.track,e,d;if(b){e=a.prop(this,"kind");d=b.readyState||this.readyState;if(b.mode||d)c.mode=b.mode;if("descriptions"!=e)b.mode="string"==typeof b.mode?"disabled":0,this.kind=
"metadata",a(this).attr({kind:e})}}).bind("load error",function(a){a.originalEvent&&a.stopImmediatePropagation()})}});i.each(function(){var a=this,c=f.data(a,"mediaelementBase");if(c)clearTimeout(c.updateTrackListTimer),c.updateTrackListTimer=setTimeout(function(){r.call(a,c)},9)})});Modernizr.track&&a("video, audio").trigger("trackapichange")});