webshims-rails 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. data/lib/webshims-rails/version.rb +2 -2
  2. data/vendor/assets/javascripts/webshims/minified/polyfiller.js +30 -29
  3. data/vendor/assets/javascripts/webshims/minified/shims/combos/1.js +12 -12
  4. data/vendor/assets/javascripts/webshims/minified/shims/combos/10.js +76 -76
  5. data/vendor/assets/javascripts/webshims/minified/shims/combos/11.js +12 -12
  6. data/vendor/assets/javascripts/webshims/minified/shims/combos/12.js +12 -12
  7. data/vendor/assets/javascripts/webshims/minified/shims/combos/13.js +27 -27
  8. data/vendor/assets/javascripts/webshims/minified/shims/combos/16.js +12 -12
  9. data/vendor/assets/javascripts/webshims/minified/shims/combos/17.js +14 -14
  10. data/vendor/assets/javascripts/webshims/minified/shims/combos/18.js +63 -60
  11. data/vendor/assets/javascripts/webshims/minified/shims/combos/19.js +59 -59
  12. data/vendor/assets/javascripts/webshims/minified/shims/combos/20.js +1 -1
  13. data/vendor/assets/javascripts/webshims/minified/shims/combos/22.js +1 -1
  14. data/vendor/assets/javascripts/webshims/minified/shims/combos/24.js +67 -67
  15. data/vendor/assets/javascripts/webshims/minified/shims/combos/25.js +59 -58
  16. data/vendor/assets/javascripts/webshims/minified/shims/combos/26.js +81 -80
  17. data/vendor/assets/javascripts/webshims/minified/shims/combos/27.js +103 -102
  18. data/vendor/assets/javascripts/webshims/minified/shims/combos/6.js +34 -31
  19. data/vendor/assets/javascripts/webshims/minified/shims/combos/7.js +41 -38
  20. data/vendor/assets/javascripts/webshims/minified/shims/combos/8.js +35 -35
  21. data/vendor/assets/javascripts/webshims/minified/shims/combos/9.js +67 -67
  22. data/vendor/assets/javascripts/webshims/minified/shims/dom-extend.js +17 -17
  23. data/vendor/assets/javascripts/webshims/minified/shims/form-number-date-api.js +10 -8
  24. data/vendor/assets/javascripts/webshims/minified/shims/form-number-date-ui.js +24 -23
  25. data/vendor/assets/javascripts/webshims/minified/shims/mediaelement-swf.js +1 -1
  26. data/vendor/assets/javascripts/webshims/minified/shims/styles/shim.css +9 -0
  27. data/vendor/assets/javascripts/webshims/minified/shims/track-ui.js +9 -9
  28. data/vendor/assets/javascripts/webshims/minified/shims/track.js +21 -20
  29. data/vendor/assets/javascripts/webshims/polyfiller.js +144 -140
  30. data/vendor/assets/javascripts/webshims/shims/combos/1.js +10 -6
  31. data/vendor/assets/javascripts/webshims/shims/combos/10.js +11 -7
  32. data/vendor/assets/javascripts/webshims/shims/combos/11.js +10 -6
  33. data/vendor/assets/javascripts/webshims/shims/combos/12.js +10 -6
  34. data/vendor/assets/javascripts/webshims/shims/combos/13.js +10 -6
  35. data/vendor/assets/javascripts/webshims/shims/combos/16.js +10 -6
  36. data/vendor/assets/javascripts/webshims/shims/combos/17.js +10 -6
  37. data/vendor/assets/javascripts/webshims/shims/combos/18.js +986 -924
  38. data/vendor/assets/javascripts/webshims/shims/combos/19.js +10 -6
  39. data/vendor/assets/javascripts/webshims/shims/combos/20.js +1 -1
  40. data/vendor/assets/javascripts/webshims/shims/combos/22.js +1 -1
  41. data/vendor/assets/javascripts/webshims/shims/combos/24.js +10 -6
  42. data/vendor/assets/javascripts/webshims/shims/combos/25.js +820 -768
  43. data/vendor/assets/javascripts/webshims/shims/combos/26.js +820 -768
  44. data/vendor/assets/javascripts/webshims/shims/combos/27.js +821 -769
  45. data/vendor/assets/javascripts/webshims/shims/combos/6.js +986 -924
  46. data/vendor/assets/javascripts/webshims/shims/combos/7.js +986 -924
  47. data/vendor/assets/javascripts/webshims/shims/combos/8.js +10 -6
  48. data/vendor/assets/javascripts/webshims/shims/combos/9.js +11 -7
  49. data/vendor/assets/javascripts/webshims/shims/dom-extend.js +10 -6
  50. data/vendor/assets/javascripts/webshims/shims/form-number-date-api.js +77 -77
  51. data/vendor/assets/javascripts/webshims/shims/form-number-date-ui.js +909 -847
  52. data/vendor/assets/javascripts/webshims/shims/mediaelement-swf.js +1 -1
  53. data/vendor/assets/javascripts/webshims/shims/styles/shim.css +9 -0
  54. data/vendor/assets/javascripts/webshims/shims/track-ui.js +300 -291
  55. data/vendor/assets/javascripts/webshims/shims/track.js +810 -762
  56. metadata +10 -5
@@ -1,38 +1,38 @@
1
- jQuery.webshims.register("dom-extend",function(d,h,i,l,p){var B=h.modules,s=/\s*,\s*/,t={},m={},q={},w={},g={},f=d.fn.val,D=function(b,a,c,e,o){return o?f.call(d(b)):f.call(d(b),c)};d.fn.val=function(b){var a=this[0];arguments.length&&null==b&&(b="");if(!arguments.length)return!a||1!==a.nodeType?f.call(this):d.prop(a,"value",b,"val",!0);if(d.isArray(b))return f.apply(this,arguments);var c=d.isFunction(b);return this.each(function(e){a=this;1===a.nodeType&&(c?(e=b.call(a,e,d.prop(a,"value",p,"val",
1
+ jQuery.webshims.register("dom-extend",function(d,h,i,k,p){var B=h.modules,s=/\s*,\s*/,t={},m={},q={},w={},g={},f=d.fn.val,D=function(b,a,c,e,o){return o?f.call(d(b)):f.call(d(b),c)};d.fn.val=function(b){var a=this[0];arguments.length&&null==b&&(b="");if(!arguments.length)return!a||1!==a.nodeType?f.call(this):d.prop(a,"value",b,"val",!0);if(d.isArray(b))return f.apply(this,arguments);var c=d.isFunction(b);return this.each(function(e){a=this;1===a.nodeType&&(c?(e=b.call(a,e,d.prop(a,"value",p,"val",
2
2
  !0)),null==e&&(e=""),d.prop(a,"value",e,"val")):d.prop(a,"value",b,"val"))})};var x="_webshimsLib"+Math.round(1E3*Math.random()),y=function(b,a,c){b=b.jquery?b[0]:b;if(!b)return c||{};var e=d.data(b,x);c!==p&&(e||(e=d.data(b,x,{})),a&&(e[a]=c));return a?e&&e[a]:e};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(b){d.fn[b.name]=function(){return this.map(function(){var a=y(this,
3
- "shadowData");return a&&a[b.prop]||this})}});["removeAttr","prop","attr"].forEach(function(b){t[b]=d[b];d[b]=function(a,c,e,o,u){var j="val"==o,n=!j?t[b]:D;if(!a||!m[c]||1!==a.nodeType||!j&&o&&"attr"==b&&d.attrFn[c])return n(a,c,e,o,u);var z=(a.nodeName||"").toLowerCase(),v=q[z],C="attr"==b&&(!1===e||null===e)?"removeAttr":b,f,h,k;v||(v=q["*"]);v&&(v=v[c]);v&&(f=v[C]);if(f){if("value"==c)h=f.isVal,f.isVal=j;if("removeAttr"===C)return f.value.call(a);if(e===p)return f.get?f.get.call(a):f.value;f.set&&
4
- ("attr"==b&&!0===e&&(e=c),k=f.set.call(a,e));if("value"==c)f.isVal=h}else k=n(a,c,e,o,u);if((e!==p||"removeAttr"===C)&&g[z]&&g[z][c]){var i;i="removeAttr"==C?!1:"prop"==C?!!e:!0;g[z][c].forEach(function(c){if(!c.only||(c.only="prop"==b)||"attr"==c.only&&"prop"!=b)c.call(a,e,i,j?"val":C,b)})}return k};w[b]=function(a,c,e){q[a]||(q[a]={});q[a][c]||(q[a][c]={});var o=q[a][c][b],u=function(a,n,z){return n&&n[a]?n[a]:z&&z[a]?z[a]:"prop"==b&&"value"==c?function(a){return e.isVal?D(this,c,a,!1,0===arguments.length):
5
- t[b](this,c,a)}:"prop"==b&&"value"==a&&e.value.apply?function(a){var j=t[b](this,c);j&&j.apply&&(j=j.apply(this,arguments));return j}:function(a){return t[b](this,c,a)}};q[a][c][b]=e;if(e.value===p){if(!e.set)e.set=e.writeable?u("set",e,o):h.cfg.useStrict&&"prop"==c?function(){throw c+" is readonly on "+a;}:d.noop;if(!e.get)e.get=u("get",e,o)}["value","get","set"].forEach(function(a){e[a]&&(e["_sup"+a]=u(a,o))})}});var k=!d.browser.msie||8<parseInt(d.browser.version,10),E=function(){var b=h.getPrototypeOf(l.createElement("foobar")),
6
- a=Object.prototype.hasOwnProperty;return function(c,e,d){var u=l.createElement(c),j=h.getPrototypeOf(u);if(k&&j&&b!==j&&(!u[e]||!a.call(u,e))){var n=u[e];d._supvalue=function(){return n&&n.apply?n.apply(this,arguments):n};j[e]=d.value}else d._supvalue=function(){var a=y(this,"propValue");return a&&a[e]&&a[e].apply?a[e].apply(this,arguments):a&&a[e]},r.extendValue(c,e,d.value);d.value._supvalue=d._supvalue}}(),r=function(){var b={};h.addReady(function(a,c){var j={},n=function(b){j[b]||(j[b]=d(a.getElementsByTagName(b)),
7
- c[0]&&d.nodeName(c[0],b)&&(j[b]=j[b].add(c)))};d.each(b,function(a,b){n(a);!b||!b.forEach?h.warn("Error: with "+a+"-property. methods: "+b):b.forEach(function(b){j[a].each(b)})});j=null});var a,c=d([]),e=function(c,e){b[c]?b[c].push(e):b[c]=[e];d.isDOMReady&&(a||d(l.getElementsByTagName(c))).each(e)};return{createTmpCache:function(b){d.isDOMReady&&(a=a||d(l.getElementsByTagName(b)));return a||c},flushTmpCache:function(){a=null},content:function(a,b){e(a,function(){var a=d.attr(this,b);null!=a&&d.attr(this,
3
+ "shadowData");return a&&a[b.prop]||this})}});["removeAttr","prop","attr"].forEach(function(b){t[b]=d[b];d[b]=function(a,c,e,o,u){var j="val"==o,n=!j?t[b]:D;if(!a||!m[c]||1!==a.nodeType||!j&&o&&"attr"==b&&d.attrFn[c])return n(a,c,e,o,u);var z=(a.nodeName||"").toLowerCase(),v=q[z],C="attr"==b&&(!1===e||null===e)?"removeAttr":b,f,h,l;v||(v=q["*"]);v&&(v=v[c]);v&&(f=v[C]);if(f){if("value"==c)h=f.isVal,f.isVal=j;if("removeAttr"===C)return f.value.call(a);if(e===p)return f.get?f.get.call(a):f.value;f.set&&
4
+ ("attr"==b&&!0===e&&(e=c),l=f.set.call(a,e));if("value"==c)f.isVal=h}else l=n(a,c,e,o,u);if((e!==p||"removeAttr"===C)&&g[z]&&g[z][c]){var i;i="removeAttr"==C?!1:"prop"==C?!!e:!0;g[z][c].forEach(function(c){if(!c.only||(c.only="prop"==b)||"attr"==c.only&&"prop"!=b)c.call(a,e,i,j?"val":C,b)})}return l};w[b]=function(a,c,e){q[a]||(q[a]={});q[a][c]||(q[a][c]={});var o=q[a][c][b],u=function(a,n,z){return n&&n[a]?n[a]:z&&z[a]?z[a]:"prop"==b&&"value"==c?function(a){return e.isVal?D(this,c,a,!1,0===arguments.length):
5
+ t[b](this,c,a)}:"prop"==b&&"value"==a&&e.value.apply?function(a){var j=t[b](this,c);j&&j.apply&&(j=j.apply(this,arguments));return j}:function(a){return t[b](this,c,a)}};q[a][c][b]=e;if(e.value===p){if(!e.set)e.set=e.writeable?u("set",e,o):h.cfg.useStrict&&"prop"==c?function(){throw c+" is readonly on "+a;}:d.noop;if(!e.get)e.get=u("get",e,o)}["value","get","set"].forEach(function(a){e[a]&&(e["_sup"+a]=u(a,o))})}});var l=!d.browser.msie||8<parseInt(d.browser.version,10),E=function(){var b=h.getPrototypeOf(k.createElement("foobar")),
6
+ a=Object.prototype.hasOwnProperty;return function(c,e,d){var u=k.createElement(c),j=h.getPrototypeOf(u);if(l&&j&&b!==j&&(!u[e]||!a.call(u,e))){var n=u[e];d._supvalue=function(){return n&&n.apply?n.apply(this,arguments):n};j[e]=d.value}else d._supvalue=function(){var a=y(this,"propValue");return a&&a[e]&&a[e].apply?a[e].apply(this,arguments):a&&a[e]},r.extendValue(c,e,d.value);d.value._supvalue=d._supvalue}}(),r=function(){var b={};h.addReady(function(a,c){var j={},n=function(b){j[b]||(j[b]=d(a.getElementsByTagName(b)),
7
+ c[0]&&d.nodeName(c[0],b)&&(j[b]=j[b].add(c)))};d.each(b,function(a,b){n(a);!b||!b.forEach?h.warn("Error: with "+a+"-property. methods: "+b):b.forEach(function(b){j[a].each(b)})});j=null});var a,c=d([]),e=function(c,e){b[c]?b[c].push(e):b[c]=[e];d.isDOMReady&&(a||d(k.getElementsByTagName(c))).each(e)};return{createTmpCache:function(b){d.isDOMReady&&(a=a||d(k.getElementsByTagName(b)));return a||c},flushTmpCache:function(){a=null},content:function(a,b){e(a,function(){var a=d.attr(this,b);null!=a&&d.attr(this,
8
8
  b,a)})},createElement:function(a,b){e(a,b)},extendValue:function(a,b,c){e(a,function(){d(this).each(function(){y(this,"propValue",{})[b]=this[b];this[b]=c})})}}}(),A=function(b,a){if(b.defaultValue===p)b.defaultValue="";if(!b.removeAttr)b.removeAttr={value:function(){b[a||"prop"].set.call(this,b.defaultValue);b.removeAttr._supvalue.call(this)}};if(!b.attr)b.attr={}};d.extend(h,{getID:function(){var b=(new Date).getTime();return function(a){var a=d(a),c=a.attr("id");c||(b++,c="ID-"+b,a.attr("id",c));
9
- return c}}(),extendUNDEFProp:function(b,a){d.each(a,function(a,e){a in b||(b[a]=e)})},createPropDefault:A,data:y,moveToFirstEvent:function(){var b=d._data?"_data":"data";return function(a,c,e){if((a=(d[b](a,"events")||{})[c])&&1<a.length)c=a.pop(),e||(e="bind"),"bind"==e&&a.delegateCount?a.splice(a.delegateCount,0,c):a.unshift(c)}}(),addShadowDom:function(){var b,a,c,e,o={init:!1,start:function(){if(!this.init)this.init=!0,this.height=d(l).height(),this.width=d(l).width(),setInterval(function(){var a=
10
- d(l).height(),b=d(l).width();if(a!=o.height||b!=o.width)o.height=a,o.width=b,e({type:"docresize"})},400)}};e=function(e){clearTimeout(b);b=setTimeout(function(){if("resize"==e.type){var b=d(i).width(),n=d(i).width();if(n==a&&b==c)return;a=n;c=b;o.height=d(l).height();o.width=d(l).width()}d.event.trigger("updateshadowdom")},40)};d(i).bind("resize",e);d.event.customEvent.updateshadowdom=!0;return function(a,b,c){c=c||{};a.jquery&&(a=a[0]);b.jquery&&(b=b[0]);var e=d.data(a,x)||d.data(a,x,{}),v=d.data(b,
11
- x)||d.data(b,x,{}),g={};if(c.shadowFocusElement){if(c.shadowFocusElement){if(c.shadowFocusElement.jquery)c.shadowFocusElement=c.shadowFocusElement[0];g=d.data(c.shadowFocusElement,x)||d.data(c.shadowFocusElement,x,g)}}else c.shadowFocusElement=b;e.hasShadow=b;g.nativeElement=v.nativeElement=a;g.shadowData=v.shadowData=e.shadowData={nativeElement:a,shadowElement:b,shadowFocusElement:c.shadowFocusElement};c.shadowChilds&&c.shadowChilds.each(function(){y(this,"shadowData",v.shadowData)});if(c.data)g.shadowData.data=
12
- v.shadowData.data=e.shadowData.data=c.data;c=null;o.start()}}(),propTypes:{standard:function(b){A(b);if(!b.prop)b.prop={set:function(a){b.attr.set.call(this,""+a)},get:function(){return b.attr.get.call(this)||b.defaultValue}}},"boolean":function(b){A(b);if(!b.prop)b.prop={set:function(a){a?b.attr.set.call(this,""):b.removeAttr.value.call(this)},get:function(){return null!=b.attr.get.call(this)}}},src:function(){var b=l.createElement("a");b.style.display="none";return function(a,c){A(a);if(!a.prop)a.prop=
13
- {set:function(b){a.attr.set.call(this,b)},get:function(){var a=this.getAttribute(c),g;if(null==a)return"";b.setAttribute("href",a+"");if(!d.support.hrefNormalized){try{d(b).insertAfter(this),g=b.getAttribute("href",4)}catch(f){g=b.getAttribute("href",4)}d(b).detach()}return g||b.href}}}}(),enumarated:function(b){A(b);if(!b.prop)b.prop={set:function(a){b.attr.set.call(this,a)},get:function(){var a=(b.attr.get.call(this)||"").toLowerCase();if(!a||-1==b.limitedTo.indexOf(a))a=b.defaultValue;return a}}}},
14
- reflectProperties:function(b,a){"string"==typeof a&&(a=a.split(s));a.forEach(function(a){h.defineNodeNamesProperty(b,a,{prop:{set:function(b){d.attr(this,a,b)},get:function(){return d.attr(this,a)||""}}})})},defineNodeNameProperty:function(b,a,c){m[a]=!0;if(c.reflect)h.propTypes[c.propType||"standard"](c,a);["prop","attr","removeAttr"].forEach(function(e){var g=c[e];g&&(g="prop"===e?d.extend({writeable:!0},g):d.extend({},g,{writeable:!0}),w[e](b,a,g),"*"!=b&&h.cfg.extendNative&&"prop"==e&&g.value&&
15
- d.isFunction(g.value)&&E(b,a,g),c[e]=g)});c.initAttr&&r.content(b,a);return c},defineNodeNameProperties:function(b,a,c,e){for(var d in a)!e&&a[d].initAttr&&r.createTmpCache(b),c&&(a[d][c]?h.log("override: "+b+"["+d+"] for "+c):(a[d][c]={},["value","set","get"].forEach(function(b){b in a[d]&&(a[d][c][b]=a[d][b],delete a[d][b])}))),a[d]=h.defineNodeNameProperty(b,d,a[d]);e||r.flushTmpCache();return a},createElement:function(b,a,c){var e;d.isFunction(a)&&(a={after:a});r.createTmpCache(b);a.before&&r.createElement(b,
16
- a.before);c&&(e=h.defineNodeNameProperties(b,c,!1,!0));a.after&&r.createElement(b,a.after);r.flushTmpCache();return e},onNodeNamesPropertyModify:function(b,a,c,e){"string"==typeof b&&(b=b.split(s));d.isFunction(c)&&(c={set:c});b.forEach(function(b){g[b]||(g[b]={});"string"==typeof a&&(a=a.split(s));c.initAttr&&r.createTmpCache(b);a.forEach(function(a){g[b][a]||(g[b][a]=[],m[a]=!0);if(c.set){if(e)c.set.only=e;g[b][a].push(c.set)}c.initAttr&&r.content(b,a)});r.flushTmpCache()})},defineNodeNamesBooleanProperty:function(b,
17
- a,c){c||(c={});if(d.isFunction(c))c.set=c;h.defineNodeNamesProperty(b,a,{attr:{set:function(b){this.setAttribute(a,b);c.set&&c.set.call(this,!0)},get:function(){return null==this.getAttribute(a)?p:a}},removeAttr:{value:function(){this.removeAttribute(a);c.set&&c.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:c.initAttr||!1})},contentAttr:function(b,a,c){if(b.nodeName){if(c===p)return b=b.attributes[a]||{},c=b.specified?b.value:null,null==c?p:c;"boolean"==typeof c?c?b.setAttribute(a,a):
18
- b.removeAttribute(a):b.setAttribute(a,c)}},activeLang:function(){var b=[],a={},c,e,g=/:\/\/|^\.*\//,f=function(a,b,c){return b&&c&&-1!==d.inArray(b,c.availabeLangs||[])?(a.loading=!0,c=c.langSrc,g.test(c)||(c=h.cfg.basePath+c),h.loader.loadScript(c+b+".js",function(){a.langObj[b]?(a.loading=!1,n(a,!0)):d(function(){a.langObj[b]&&n(a,!0);a.loading=!1})}),!0):!1},j=function(b){a[b]&&a[b].forEach(function(a){a.callback()})},n=function(a,b){if(a.activeLang!=c&&a.activeLang!==e){var d=B[a.module].options;
19
- if(a.langObj[c]||e&&a.langObj[e])a.activeLang=c,a.callback(a.langObj[c]||a.langObj[e],c),j(a.module);else if(!b&&!f(a,c,d)&&!f(a,e,d)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],c),j(a.module)}};return function(j){if("string"==typeof j&&j!==c)c=j,e=c.split("-")[0],c==e&&(e=!1),d.each(b,function(a,b){n(b)});else if("object"==typeof j)if(j.register)a[j.register]||(a[j.register]=[]),a[j.register].push(j),j.callback();else{if(!j.activeLang)j.activeLang="";b.push(j);n(j)}return c}}()});
20
- d.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(b,a){h[b]=function(b,d,g,f){"string"==typeof b&&(b=b.split(s));var j={};b.forEach(function(b){j[b]=h[a](b,d,g,f)});return j}});h.isReady("webshimLocalization",!0)});
21
- (function(d,h){var i=d.webshims.browserVersion;if(!(d.browser.mozilla&&5<i)&&(!d.browser.msie||12>i&&7<i)){var l={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},p=function(d,h){d.getAttribute("role")||d.setAttribute("role",h)};d.webshims.addReady(function(i,s){d.each(l,function(h,g){for(var f=d(h,i).add(s.filter(h)),l=0,m=f.length;l<m;l++)p(f[l],g)});if(i===h){var t=h.getElementsByTagName("header")[0],m=h.getElementsByTagName("footer"),q=m.length;
9
+ return c}}(),extendUNDEFProp:function(b,a){d.each(a,function(a,e){a in b||(b[a]=e)})},createPropDefault:A,data:y,moveToFirstEvent:function(){var b=d._data?"_data":"data";return function(a,c,e){if((a=(d[b](a,"events")||{})[c])&&1<a.length)c=a.pop(),e||(e="bind"),"bind"==e&&a.delegateCount?a.splice(a.delegateCount,0,c):a.unshift(c)}}(),addShadowDom:function(){var b,a,c,e,o={init:!1,start:function(){if(!this.init&&k.body)this.init=!0,this.height=d(k).height(),this.width=d(k).width(),setInterval(function(){var a=
10
+ d(k).height(),b=d(k).width();if(a!=o.height||b!=o.width)o.height=a,o.width=b,e({type:"docresize"})},600)}};e=function(e){clearTimeout(b);b=setTimeout(function(){if("resize"==e.type){var b=d(i).width(),n=d(i).width();if(n==a&&b==c)return;a=n;c=b;if(k.body)o.height=d(k).height(),o.width=d(k).width()}d.event.trigger("updateshadowdom")},40)};d(i).bind("resize",e);d.event.customEvent.updateshadowdom=!0;return function(a,b,c){c=c||{};a.jquery&&(a=a[0]);b.jquery&&(b=b[0]);var e=d.data(a,x)||d.data(a,x,{}),
11
+ v=d.data(b,x)||d.data(b,x,{}),g={};if(c.shadowFocusElement){if(c.shadowFocusElement){if(c.shadowFocusElement.jquery)c.shadowFocusElement=c.shadowFocusElement[0];g=d.data(c.shadowFocusElement,x)||d.data(c.shadowFocusElement,x,g)}}else c.shadowFocusElement=b;e.hasShadow=b;g.nativeElement=v.nativeElement=a;g.shadowData=v.shadowData=e.shadowData={nativeElement:a,shadowElement:b,shadowFocusElement:c.shadowFocusElement};c.shadowChilds&&c.shadowChilds.each(function(){y(this,"shadowData",v.shadowData)});
12
+ if(c.data)g.shadowData.data=v.shadowData.data=e.shadowData.data=c.data;c=null;h.ready("DOM",function(){o.start()})}}(),propTypes:{standard:function(b){A(b);if(!b.prop)b.prop={set:function(a){b.attr.set.call(this,""+a)},get:function(){return b.attr.get.call(this)||b.defaultValue}}},"boolean":function(b){A(b);if(!b.prop)b.prop={set:function(a){a?b.attr.set.call(this,""):b.removeAttr.value.call(this)},get:function(){return null!=b.attr.get.call(this)}}},src:function(){var b=k.createElement("a");b.style.display=
13
+ "none";return function(a,c){A(a);if(!a.prop)a.prop={set:function(b){a.attr.set.call(this,b)},get:function(){var a=this.getAttribute(c),g;if(null==a)return"";b.setAttribute("href",a+"");if(!d.support.hrefNormalized){try{d(b).insertAfter(this),g=b.getAttribute("href",4)}catch(f){g=b.getAttribute("href",4)}d(b).detach()}return g||b.href}}}}(),enumarated:function(b){A(b);if(!b.prop)b.prop={set:function(a){b.attr.set.call(this,a)},get:function(){var a=(b.attr.get.call(this)||"").toLowerCase();if(!a||-1==
14
+ b.limitedTo.indexOf(a))a=b.defaultValue;return a}}}},reflectProperties:function(b,a){"string"==typeof a&&(a=a.split(s));a.forEach(function(a){h.defineNodeNamesProperty(b,a,{prop:{set:function(b){d.attr(this,a,b)},get:function(){return d.attr(this,a)||""}}})})},defineNodeNameProperty:function(b,a,c){m[a]=!0;if(c.reflect)h.propTypes[c.propType||"standard"](c,a);["prop","attr","removeAttr"].forEach(function(e){var g=c[e];g&&(g="prop"===e?d.extend({writeable:!0},g):d.extend({},g,{writeable:!0}),w[e](b,
15
+ a,g),"*"!=b&&h.cfg.extendNative&&"prop"==e&&g.value&&d.isFunction(g.value)&&E(b,a,g),c[e]=g)});c.initAttr&&r.content(b,a);return c},defineNodeNameProperties:function(b,a,c,e){for(var d in a)!e&&a[d].initAttr&&r.createTmpCache(b),c&&!a[d][c]&&(a[d][c]={},["value","set","get"].forEach(function(b){b in a[d]&&(a[d][c][b]=a[d][b],delete a[d][b])})),a[d]=h.defineNodeNameProperty(b,d,a[d]);e||r.flushTmpCache();return a},createElement:function(b,a,c){var e;d.isFunction(a)&&(a={after:a});r.createTmpCache(b);
16
+ a.before&&r.createElement(b,a.before);c&&(e=h.defineNodeNameProperties(b,c,!1,!0));a.after&&r.createElement(b,a.after);r.flushTmpCache();return e},onNodeNamesPropertyModify:function(b,a,c,e){"string"==typeof b&&(b=b.split(s));d.isFunction(c)&&(c={set:c});b.forEach(function(b){g[b]||(g[b]={});"string"==typeof a&&(a=a.split(s));c.initAttr&&r.createTmpCache(b);a.forEach(function(a){g[b][a]||(g[b][a]=[],m[a]=!0);if(c.set){if(e)c.set.only=e;g[b][a].push(c.set)}c.initAttr&&r.content(b,a)});r.flushTmpCache()})},
17
+ defineNodeNamesBooleanProperty:function(b,a,c){c||(c={});if(d.isFunction(c))c.set=c;h.defineNodeNamesProperty(b,a,{attr:{set:function(b){this.setAttribute(a,b);c.set&&c.set.call(this,!0)},get:function(){return null==this.getAttribute(a)?p:a}},removeAttr:{value:function(){this.removeAttribute(a);c.set&&c.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:c.initAttr||!1})},contentAttr:function(b,a,c){if(b.nodeName){if(c===p)return b=b.attributes[a]||{},c=b.specified?b.value:null,null==c?p:c;
18
+ "boolean"==typeof c?c?b.setAttribute(a,a):b.removeAttribute(a):b.setAttribute(a,c)}},activeLang:function(){var b=[],a={},c,e,g=/:\/\/|^\.*\//,f=function(a,b,c){return b&&c&&-1!==d.inArray(b,c.availabeLangs||[])?(a.loading=!0,c=c.langSrc,g.test(c)||(c=h.cfg.basePath+c),h.loader.loadScript(c+b+".js",function(){a.langObj[b]?(a.loading=!1,n(a,!0)):d(function(){a.langObj[b]&&n(a,!0);a.loading=!1})}),!0):!1},j=function(b){a[b]&&a[b].forEach(function(a){a.callback()})},n=function(a,b){if(a.activeLang!=c&&
19
+ a.activeLang!==e){var d=B[a.module].options;if(a.langObj[c]||e&&a.langObj[e])a.activeLang=c,a.callback(a.langObj[c]||a.langObj[e],c),j(a.module);else if(!b&&!f(a,c,d)&&!f(a,e,d)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],c),j(a.module)}};return function(j){if("string"==typeof j&&j!==c)c=j,e=c.split("-")[0],c==e&&(e=!1),d.each(b,function(a,b){n(b)});else if("object"==typeof j)if(j.register)a[j.register]||(a[j.register]=[]),a[j.register].push(j),j.callback();else{if(!j.activeLang)j.activeLang=
20
+ "";b.push(j);n(j)}return c}}()});d.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(b,a){h[b]=function(b,d,g,f){"string"==typeof b&&(b=b.split(s));var j={};b.forEach(function(b){j[b]=h[a](b,d,g,f)});return j}});h.isReady("webshimLocalization",!0)});
21
+ (function(d,h){var i=d.webshims.browserVersion;if(!(d.browser.mozilla&&5<i)&&(!d.browser.msie||12>i&&7<i)){var k={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},p=function(d,h){d.getAttribute("role")||d.setAttribute("role",h)};d.webshims.addReady(function(i,s){d.each(k,function(h,g){for(var f=d(h,i).add(s.filter(h)),k=0,m=f.length;k<m;k++)p(f[k],g)});if(i===h){var t=h.getElementsByTagName("header")[0],m=h.getElementsByTagName("footer"),q=m.length;
22
22
  t&&!d(t).closest("section, article")[0]&&p(t,"banner");q&&(t=m[q-1],d(t).closest("section, article")[0]||p(t,"contentinfo"))}})}})(jQuery,document);
23
- (function(d,h,i){var l=h.audio&&h.video,p=!1,B=i.cfg.mediaelement,s=i.bugs,t=function(){i.ready("mediaelement-swf",function(){if(!i.mediaelement.createSWF)i.modules["mediaelement-swf"].test=d.noop,i.reTest(["mediaelement-swf"],l)})},m;if(l){var q=document.createElement("video");h.videoBuffered="buffered"in q;p="loop"in q;i.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(","));h.videoBuffered||(i.addPolyfill("mediaelement-native-fix",{f:"mediaelement",
24
- test:h.videoBuffered,d:["dom-support"]}),i.reTest("mediaelement-native-fix"))}if(l&&!B.preferFlash){var w=function(g){var f=g.target.parentNode;!B.preferFlash&&(d(g.target).is("audio, video")||f&&d("source:last",f)[0]==g.target)&&i.ready("DOM mediaelement",function(){m&&t();i.ready("WINDOWLOAD mediaelement-swf",function(){setTimeout(function(){m&&!B.preferFlash&&i.mediaelement.createSWF&&!d(g.target).closest("audio, video").is(".nonnative-api-active")?(B.preferFlash=!0,document.removeEventListener("error",
25
- w,!0),d("audio, video").mediaLoad(),i.info("switching mediaelements option to 'preferFlash', due to an error with native player: "+g.target.src)):m||document.removeEventListener("error",w,!0)},20)})})};document.addEventListener("error",w,!0);d("audio, video").each(function(){this.error&&w({target:this})})}s.track=!1;h.track&&function(){if(!s.track)s.track="number"!=typeof d("<track />")[0].readyState;if(!s.track)try{new TextTrackCue(2,3,"")}catch(g){s.track=!0}var f=i.cfg.track,h=function(g){d(g.target).filter("track").each(l)},
26
- l=function(){if(s.track||!f.override&&3==d.prop(this,"readyState"))f.override=!0,i.reTest("track"),document.removeEventListener("error",h,!0),this&&d.nodeName(this,"track")?i.error("track support was overwritten. Please check your vtt including your vtt mime-type"):i.info("track support was overwritten. due to bad browser support")},m=function(){document.addEventListener("error",h,!0);s.track?l():d("track").each(l)};f.override||(i.isReady("track")?m():d(m))}();i.register("mediaelement-core",function(d,
27
- f,i,q,y){m=swfobject.hasFlashPlayerVersion("9.0.115");var k=f.mediaelement,w=function(a,b){var a=d(a),c={src:a.attr("src")||"",elem:a,srcProp:a.prop("src")};if(!c.src)return c;var e=a.attr("type");if(e)c.type=e,c.container=d.trim(e.split(";")[0]);else if(b||(b=a[0].nodeName.toLowerCase(),"source"==b&&(b=(a.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),e=k.getTypeForSrc(c.src,b))c.type=e,c.container=e;if(e=a.attr("media"))c.media=e;return c},r=!m&&"postMessage"in i&&l,A=
28
- function(){var a;return function(){!a&&r&&(a=!0,f.loader.loadScript("https://www.youtube.com/player_api"),d(function(){f.polyfill("mediaelement-yt")}))}}(),b=function(){m?t():A()};f.addPolyfill("mediaelement-yt",{test:!r,d:["dom-support"]});k.mimeTypes={audio:{"audio/ogg":["ogg","oga","ogm"],'audio/ogg;codecs="opus"':"opus","audio/mpeg":["mp2","mp3","mpga","mpega"],"audio/mp4":"mp4,mpg4,m4r,m4a,m4p,m4b,aac".split(","),"audio/wav":["wav"],"audio/3gpp":["3gp","3gpp"],"audio/webm":["webm"],"audio/fla":["flv",
29
- "f4a","fla"],"application/x-mpegURL":["m3u8","m3u"]},video:{"video/ogg":["ogg","ogv","ogm"],"video/mpeg":["mpg","mpeg","mpe"],"video/mp4":["mp4","mpg4","m4v"],"video/quicktime":["mov","qt"],"video/x-msvideo":["avi"],"video/x-ms-asf":["asf","asx"],"video/flv":["flv","f4v"],"video/3gpp":["3gp","3gpp"],"video/webm":["webm"],"application/x-mpegURL":["m3u8","m3u"],"video/MP2T":["ts"]}};k.mimeTypes.source=d.extend({},k.mimeTypes.audio,k.mimeTypes.video);k.getTypeForSrc=function(a,b){if(-1!=a.indexOf("youtube.com/watch?")||
30
- -1!=a.indexOf("youtube.com/v/"))return"video/youtube";var a=a.split("?")[0].split("."),a=a[a.length-1],c;d.each(k.mimeTypes[b],function(b,d){if(-1!==d.indexOf(a))return c=b,!1});return c};k.srces=function(a,b){a=d(a);if(b)a.removeAttr("src").removeAttr("type").find("source").remove(),d.isArray(b)||(b=[b]),b.forEach(function(b){var c=q.createElement("source");"string"==typeof b&&(b={src:b});c.setAttribute("src",b.src);b.type&&c.setAttribute("type",b.type);b.media&&c.setAttribute("media",b.media);a.append(c)});
31
- else{var b=[],c=a[0].nodeName.toLowerCase(),e=w(a,c);e.src?b.push(e):d("source",a).each(function(){e=w(this,c);e.src&&b.push(e)});return b}};d.fn.loadMediaSrc=function(a,b){return this.each(function(){b!==y&&(d(this).removeAttr("poster"),b&&d.attr(this,"poster",b));k.srces(this,a);d(this).mediaLoad()})};k.swfMimeTypes="video/3gpp,video/x-msvideo,video/quicktime,video/x-m4v,video/mp4,video/m4p,video/x-flv,video/flv,audio/mpeg,audio/aac,audio/mp4,audio/x-m4a,audio/m4a,audio/mp3,audio/x-fla,audio/fla,youtube/flv,jwplayer/jwplayer,video/youtube".split(",");
32
- k.canThirdPlaySrces=function(a,b){var c="";if(m||r)a=d(a),b=b||k.srces(a),d.each(b,function(a,b){if(b.container&&b.src&&(m&&-1!=k.swfMimeTypes.indexOf(b.container)||r&&"video/youtube"==b.container))return c=b,!1});return c};var a={};k.canNativePlaySrces=function(b,c){var e="";if(l){var b=d(b),f=(b[0].nodeName||"").toLowerCase();if(!a[f])return e;c=c||k.srces(b);d.each(c,function(c,d){if(d.type&&a[f].prop._supvalue.call(b[0],d.type))return e=d,!1})}return e};k.setError=function(a,b){b||(b="can't play sources");
33
- d(a).pause().data("mediaerror",b);f.warn("mediaelementError: "+b);setTimeout(function(){d(a).data("mediaerror")&&d(a).trigger("mediaerror")},1)};var c=function(){var a;return function(d,e,g){f.ready(m?"mediaelement-swf":"mediaelement-yt",function(){k.createSWF?k.createSWF(d,e,g):a||(a=!0,b(),c(d,e,g))});!a&&r&&!k.createSWF&&A()}}(),e=function(a,b,d,f,g){d||!1!==d&&b&&"third"==b.isActive?(d=k.canThirdPlaySrces(a,f))?c(a,d,b):g?k.setError(a,!1):e(a,b,!1,f,!0):(d=k.canNativePlaySrces(a,f))?b&&"third"==
34
- b.isActive&&k.setActive(a,"html5",b):g?(k.setError(a,!1),b&&"third"==b.isActive&&k.setActive(a,"html5",b)):e(a,b,!0,f,!0)},o=/^(?:embed|object|datalist)$/i,u=function(a,b){var c=f.data(a,"mediaelementBase")||f.data(a,"mediaelementBase",{}),h=k.srces(a),i=a.parentNode;clearTimeout(c.loadTimer);d.data(a,"mediaerror",!1);if(h.length&&i&&!(1!=i.nodeType||o.test(i.nodeName||"")))b=b||f.data(a,"mediaelement"),e(a,b,B.preferFlash||y,h)};d(q).bind("ended",function(a){var b=f.data(a.target,"mediaelement");
35
- (!p||b&&"html5"!=b.isActive||d.prop(a.target,"loop"))&&setTimeout(function(){!d.prop(a.target,"paused")&&d.prop(a.target,"loop")&&d(a.target).prop("currentTime",0).play()},1)});p||f.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(b){var c=f.defineNodeNameProperty(b,"load",{prop:{value:function(){var a=f.data(this,"mediaelement");u(this,a);l&&(!a||"html5"==a.isActive)&&c.prop._supvalue&&c.prop._supvalue.apply(this,arguments)}}});a[b]=f.defineNodeNameProperty(b,
36
- "canPlayType",{prop:{value:function(c){var e="";l&&a[b].prop._supvalue&&(e=a[b].prop._supvalue.call(this,c),"no"==e&&(e=""));!e&&m&&(c=d.trim((c||"").split(";")[0]),-1!=k.swfMimeTypes.indexOf(c)&&(e="maybe"));return e}}})});f.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var a=this,b=f.data(a,"mediaelementBase")||f.data(a,"mediaelementBase",{});clearTimeout(b.loadTimer);b.loadTimer=setTimeout(function(){u(a);a=null},9)}});i=function(){f.addReady(function(a,b){d("video, audio",
37
- a).add(b.filter("video, audio")).each(function(){d.browser.msie&&8<f.browserVersion&&d.prop(this,"paused")&&!d.prop(this,"readyState")&&d(this).is('audio[preload="none"][controls]:not([autoplay])')?d(this).prop("preload","metadata").mediaLoad():u(this);if(l){var a,b,c=this,e=function(){var a=d.prop(c,"buffered");if(a){for(var b="",e=0,f=a.length;e<f;e++)b+=a.end(e);return b}},h=function(){var a=e();a!=b&&(b=a,d(c).triggerHandler("progress"))};d(this).bind("play loadstart progress",function(c){"progress"==
38
- c.type&&(b=e());clearTimeout(a);a=setTimeout(h,999)}).bind("emptied stalled mediaerror abort suspend",function(c){"emptied"==c.type&&(b=!1);clearTimeout(a)})}})})};h.track&&!s.track&&f.defineProperty(TextTrack.prototype,"shimActiveCues",{get:function(){return this._shimActiveCues||this.activeCues}});l?(f.isReady("mediaelement-core",!0),i(),f.ready("WINDOWLOAD mediaelement",b)):f.ready("mediaelement-swf",i);d(function(){f.loader.loadList(["track-ui"])})})})(jQuery,Modernizr,jQuery.webshims);
23
+ (function(d,h,i){var k=h.audio&&h.video,p=!1,B=i.cfg.mediaelement,s=i.bugs,t=function(){i.ready("mediaelement-swf",function(){if(!i.mediaelement.createSWF)i.modules["mediaelement-swf"].test=d.noop,i.reTest(["mediaelement-swf"],k)})},m;if(k){var q=document.createElement("video");h.videoBuffered="buffered"in q;p="loop"in q;i.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(","));h.videoBuffered||(i.addPolyfill("mediaelement-native-fix",{f:"mediaelement",
24
+ test:h.videoBuffered,d:["dom-support"]}),i.reTest("mediaelement-native-fix"))}if(k&&!B.preferFlash){var w=function(g){var f=g.target.parentNode;!B.preferFlash&&(d(g.target).is("audio, video")||f&&d("source:last",f)[0]==g.target)&&i.ready("DOM mediaelement",function(){m&&t();i.ready("WINDOWLOAD mediaelement-swf",function(){setTimeout(function(){m&&!B.preferFlash&&i.mediaelement.createSWF&&!d(g.target).closest("audio, video").is(".nonnative-api-active")?(B.preferFlash=!0,document.removeEventListener("error",
25
+ w,!0),d("audio, video").mediaLoad(),i.info("switching mediaelements option to 'preferFlash', due to an error with native player: "+g.target.src)):m||document.removeEventListener("error",w,!0)},20)})})};document.addEventListener("error",w,!0);d("audio, video").each(function(){this.error&&w({target:this})})}s.track=!1;h.track&&function(){if(!s.track)s.track="number"!=typeof d("<track />")[0].readyState;if(!s.track)try{new TextTrackCue(2,3,"")}catch(g){s.track=!0}var f=i.cfg.track,h=function(g){d(g.target).filter("track").each(k)},
26
+ k=function(){if(s.track||!f.override&&3==d.prop(this,"readyState"))f.override=!0,i.reTest("track"),document.removeEventListener("error",h,!0),this&&d.nodeName(this,"track")?i.error("track support was overwritten. Please check your vtt including your vtt mime-type"):i.info("track support was overwritten. due to bad browser support")},m=function(){document.addEventListener("error",h,!0);s.track?k():d("track").each(k)};f.override||(i.isReady("track")?m():d(m))}();i.register("mediaelement-core",function(d,
27
+ f,i,q,y){m=swfobject.hasFlashPlayerVersion("9.0.115");var l=f.mediaelement,w=function(a,b){var a=d(a),c={src:a.attr("src")||"",elem:a,srcProp:a.prop("src")};if(!c.src)return c;var e=a.attr("type");if(e)c.type=e,c.container=d.trim(e.split(";")[0]);else if(b||(b=a[0].nodeName.toLowerCase(),"source"==b&&(b=(a.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),e=l.getTypeForSrc(c.src,b))c.type=e,c.container=e;if(e=a.attr("media"))c.media=e;return c},r=!m&&"postMessage"in i&&k,A=
28
+ function(){var a;return function(){!a&&r&&(a=!0,f.loader.loadScript("https://www.youtube.com/player_api"),d(function(){f.polyfill("mediaelement-yt")}))}}(),b=function(){m?t():A()};f.addPolyfill("mediaelement-yt",{test:!r,d:["dom-support"]});l.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",
29
+ "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"]}};l.mimeTypes.source=d.extend({},l.mimeTypes.audio,l.mimeTypes.video);l.getTypeForSrc=function(a,b){if(-1!=a.indexOf("youtube.com/watch?")||
30
+ -1!=a.indexOf("youtube.com/v/"))return"video/youtube";var a=a.split("?")[0].split("."),a=a[a.length-1],c;d.each(l.mimeTypes[b],function(b,d){if(-1!==d.indexOf(a))return c=b,!1});return c};l.srces=function(a,b){a=d(a);if(b)a.removeAttr("src").removeAttr("type").find("source").remove(),d.isArray(b)||(b=[b]),b.forEach(function(b){var c=q.createElement("source");"string"==typeof b&&(b={src:b});c.setAttribute("src",b.src);b.type&&c.setAttribute("type",b.type);b.media&&c.setAttribute("media",b.media);a.append(c)});
31
+ else{var b=[],c=a[0].nodeName.toLowerCase(),e=w(a,c);e.src?b.push(e):d("source",a).each(function(){e=w(this,c);e.src&&b.push(e)});return b}};d.fn.loadMediaSrc=function(a,b){return this.each(function(){b!==y&&(d(this).removeAttr("poster"),b&&d.attr(this,"poster",b));l.srces(this,a);d(this).mediaLoad()})};l.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(",");
32
+ l.canThirdPlaySrces=function(a,b){var c="";if(m||r)a=d(a),b=b||l.srces(a),d.each(b,function(a,b){if(b.container&&b.src&&(m&&-1!=l.swfMimeTypes.indexOf(b.container)||r&&"video/youtube"==b.container))return c=b,!1});return c};var a={};l.canNativePlaySrces=function(b,c){var e="";if(k){var b=d(b),f=(b[0].nodeName||"").toLowerCase();if(!a[f])return e;c=c||l.srces(b);d.each(c,function(c,d){if(d.type&&a[f].prop._supvalue.call(b[0],d.type))return e=d,!1})}return e};l.setError=function(a,b){b||(b="can't play sources");
33
+ d(a).pause().data("mediaerror",b);f.warn("mediaelementError: "+b);setTimeout(function(){d(a).data("mediaerror")&&d(a).trigger("mediaerror")},1)};var c=function(){var a;return function(d,e,g){f.ready(m?"mediaelement-swf":"mediaelement-yt",function(){l.createSWF?l.createSWF(d,e,g):a||(a=!0,b(),c(d,e,g))});!a&&r&&!l.createSWF&&A()}}(),e=function(a,b,d,f,g){d||!1!==d&&b&&"third"==b.isActive?(d=l.canThirdPlaySrces(a,f))?c(a,d,b):g?l.setError(a,!1):e(a,b,!1,f,!0):(d=l.canNativePlaySrces(a,f))?b&&"third"==
34
+ b.isActive&&l.setActive(a,"html5",b):g?(l.setError(a,!1),b&&"third"==b.isActive&&l.setActive(a,"html5",b)):e(a,b,!0,f,!0)},o=/^(?:embed|object|datalist)$/i,u=function(a,b){var c=f.data(a,"mediaelementBase")||f.data(a,"mediaelementBase",{}),h=l.srces(a),i=a.parentNode;clearTimeout(c.loadTimer);d.data(a,"mediaerror",!1);if(h.length&&i&&!(1!=i.nodeType||o.test(i.nodeName||"")))b=b||f.data(a,"mediaelement"),e(a,b,B.preferFlash||y,h)};d(q).bind("ended",function(a){var b=f.data(a.target,"mediaelement");
35
+ (!p||b&&"html5"!=b.isActive||d.prop(a.target,"loop"))&&setTimeout(function(){!d.prop(a.target,"paused")&&d.prop(a.target,"loop")&&d(a.target).prop("currentTime",0).play()},1)});p||f.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(b){var c=f.defineNodeNameProperty(b,"load",{prop:{value:function(){var a=f.data(this,"mediaelement");u(this,a);k&&(!a||"html5"==a.isActive)&&c.prop._supvalue&&c.prop._supvalue.apply(this,arguments)}}});a[b]=f.defineNodeNameProperty(b,
36
+ "canPlayType",{prop:{value:function(c){var e="";k&&a[b].prop._supvalue&&(e=a[b].prop._supvalue.call(this,c),"no"==e&&(e=""));!e&&m&&(c=d.trim((c||"").split(";")[0]),-1!=l.swfMimeTypes.indexOf(c)&&(e="maybe"));return e}}})});f.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var a=this,b=f.data(a,"mediaelementBase")||f.data(a,"mediaelementBase",{});clearTimeout(b.loadTimer);b.loadTimer=setTimeout(function(){u(a);a=null},9)}});i=function(){f.addReady(function(a,b){d("video, audio",
37
+ a).add(b.filter("video, audio")).each(function(){d.browser.msie&&8<f.browserVersion&&d.prop(this,"paused")&&!d.prop(this,"readyState")&&d(this).is('audio[preload="none"][controls]:not([autoplay])')?d(this).prop("preload","metadata").mediaLoad():u(this);if(k){var a,b,c=this,e=function(){var a=d.prop(c,"buffered");if(a){for(var b="",e=0,f=a.length;e<f;e++)b+=a.end(e);return b}},h=function(){var a=e();a!=b&&(b=a,d(c).triggerHandler("progress"))};d(this).bind("play loadstart progress",function(c){"progress"==
38
+ c.type&&(b=e());clearTimeout(a);a=setTimeout(h,999)}).bind("emptied stalled mediaerror abort suspend",function(c){"emptied"==c.type&&(b=!1);clearTimeout(a)})}})})};h.track&&!s.track&&f.defineProperty(TextTrack.prototype,"shimActiveCues",{get:function(){return this._shimActiveCues||this.activeCues}});k?(f.isReady("mediaelement-core",!0),i(),f.ready("WINDOWLOAD mediaelement",b)):f.ready("mediaelement-swf",i);d(function(){f.loader.loadList(["track-ui"])})})})(jQuery,Modernizr,jQuery.webshims);
@@ -1,68 +1,68 @@
1
- jQuery.webshims.register("dom-extend",function(a,f,j,k,n){var t=f.modules,p=/\s*,\s*/,x={},o={},u={},y={},i={},g=a.fn.val,H=function(d,b,c,e,r){return r?g.call(a(d)):g.call(a(d),c)};a.fn.val=function(d){var b=this[0];arguments.length&&null==d&&(d="");if(!arguments.length)return!b||1!==b.nodeType?g.call(this):a.prop(b,"value",d,"val",!0);if(a.isArray(d))return g.apply(this,arguments);var c=a.isFunction(d);return this.each(function(e){b=this;1===b.nodeType&&(c?(e=d.call(b,e,a.prop(b,"value",n,"val",
2
- !0)),null==e&&(e=""),a.prop(b,"value",e,"val")):a.prop(b,"value",d,"val"))})};var D="_webshimsLib"+Math.round(1E3*Math.random()),v=function(d,b,c){d=d.jquery?d[0]:d;if(!d)return c||{};var e=a.data(d,D);c!==n&&(e||(e=a.data(d,D,{})),b&&(e[b]=c));return b?e&&e[b]:e};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(d){a.fn[d.name]=function(){return this.map(function(){var a=v(this,
3
- "shadowData");return a&&a[d.prop]||this})}});["removeAttr","prop","attr"].forEach(function(d){x[d]=a[d];a[d]=function(b,c,e,r,f){var l="val"==r,s=!l?x[d]:H;if(!b||!o[c]||1!==b.nodeType||!l&&r&&"attr"==d&&a.attrFn[c])return s(b,c,e,r,f);var E=(b.nodeName||"").toLowerCase(),z=u[E],A="attr"==d&&(!1===e||null===e)?"removeAttr":d,g,h,j;z||(z=u["*"]);z&&(z=z[c]);z&&(g=z[A]);if(g){if("value"==c)h=g.isVal,g.isVal=l;if("removeAttr"===A)return g.value.call(b);if(e===n)return g.get?g.get.call(b):g.value;g.set&&
4
- ("attr"==d&&!0===e&&(e=c),j=g.set.call(b,e));if("value"==c)g.isVal=h}else j=s(b,c,e,r,f);if((e!==n||"removeAttr"===A)&&i[E]&&i[E][c]){var k;k="removeAttr"==A?!1:"prop"==A?!!e:!0;i[E][c].forEach(function(a){if(!a.only||(a.only="prop"==d)||"attr"==a.only&&"prop"!=d)a.call(b,e,k,l?"val":A,d)})}return j};y[d]=function(b,c,e){u[b]||(u[b]={});u[b][c]||(u[b][c]={});var r=u[b][c][d],B=function(a,b,E){return b&&b[a]?b[a]:E&&E[a]?E[a]:"prop"==d&&"value"==c?function(a){return e.isVal?H(this,c,a,!1,0===arguments.length):
5
- x[d](this,c,a)}:"prop"==d&&"value"==a&&e.value.apply?function(a){var b=x[d](this,c);b&&b.apply&&(b=b.apply(this,arguments));return b}:function(a){return x[d](this,c,a)}};u[b][c][d]=e;if(e.value===n){if(!e.set)e.set=e.writeable?B("set",e,r):f.cfg.useStrict&&"prop"==c?function(){throw c+" is readonly on "+b;}:a.noop;if(!e.get)e.get=B("get",e,r)}["value","get","set"].forEach(function(a){e[a]&&(e["_sup"+a]=B(a,r))})}});var h=!a.browser.msie||8<parseInt(a.browser.version,10),q=function(){var a=f.getPrototypeOf(k.createElement("foobar")),
6
- b=Object.prototype.hasOwnProperty;return function(c,e,r){var B=k.createElement(c),l=f.getPrototypeOf(B);if(h&&l&&a!==l&&(!B[e]||!b.call(B,e))){var s=B[e];r._supvalue=function(){return s&&s.apply?s.apply(this,arguments):s};l[e]=r.value}else r._supvalue=function(){var a=v(this,"propValue");return a&&a[e]&&a[e].apply?a[e].apply(this,arguments):a&&a[e]},w.extendValue(c,e,r.value);r.value._supvalue=r._supvalue}}(),w=function(){var d={};f.addReady(function(b,c){var l={},s=function(d){l[d]||(l[d]=a(b.getElementsByTagName(d)),
7
- c[0]&&a.nodeName(c[0],d)&&(l[d]=l[d].add(c)))};a.each(d,function(a,b){s(a);!b||!b.forEach?f.warn("Error: with "+a+"-property. methods: "+b):b.forEach(function(b){l[a].each(b)})});l=null});var b,c=a([]),e=function(c,e){d[c]?d[c].push(e):d[c]=[e];a.isDOMReady&&(b||a(k.getElementsByTagName(c))).each(e)};return{createTmpCache:function(d){a.isDOMReady&&(b=b||a(k.getElementsByTagName(d)));return b||c},flushTmpCache:function(){b=null},content:function(b,d){e(b,function(){var b=a.attr(this,d);null!=b&&a.attr(this,
8
- d,b)})},createElement:function(a,b){e(a,b)},extendValue:function(b,d,c){e(b,function(){a(this).each(function(){v(this,"propValue",{})[d]=this[d];this[d]=c})})}}}(),F=function(a,b){if(a.defaultValue===n)a.defaultValue="";if(!a.removeAttr)a.removeAttr={value:function(){a[b||"prop"].set.call(this,a.defaultValue);a.removeAttr._supvalue.call(this)}};if(!a.attr)a.attr={}};a.extend(f,{getID:function(){var d=(new Date).getTime();return function(b){var b=a(b),c=b.attr("id");c||(d++,c="ID-"+d,b.attr("id",c));
9
- return c}}(),extendUNDEFProp:function(d,b){a.each(b,function(a,b){a in d||(d[a]=b)})},createPropDefault:F,data:v,moveToFirstEvent:function(){var d=a._data?"_data":"data";return function(b,c,e){if((b=(a[d](b,"events")||{})[c])&&1<b.length)c=b.pop(),e||(e="bind"),"bind"==e&&b.delegateCount?b.splice(b.delegateCount,0,c):b.unshift(c)}}(),addShadowDom:function(){var d,b,c,e,f={init:!1,start:function(){if(!this.init)this.init=!0,this.height=a(k).height(),this.width=a(k).width(),setInterval(function(){var b=
10
- a(k).height(),d=a(k).width();if(b!=f.height||d!=f.width)f.height=b,f.width=d,e({type:"docresize"})},400)}};e=function(e){clearTimeout(d);d=setTimeout(function(){if("resize"==e.type){var d=a(j).width(),s=a(j).width();if(s==b&&d==c)return;b=s;c=d;f.height=a(k).height();f.width=a(k).width()}a.event.trigger("updateshadowdom")},40)};a(j).bind("resize",e);a.event.customEvent.updateshadowdom=!0;return function(b,d,c){c=c||{};b.jquery&&(b=b[0]);d.jquery&&(d=d[0]);var e=a.data(b,D)||a.data(b,D,{}),z=a.data(d,
11
- D)||a.data(d,D,{}),A={};if(c.shadowFocusElement){if(c.shadowFocusElement){if(c.shadowFocusElement.jquery)c.shadowFocusElement=c.shadowFocusElement[0];A=a.data(c.shadowFocusElement,D)||a.data(c.shadowFocusElement,D,A)}}else c.shadowFocusElement=d;e.hasShadow=d;A.nativeElement=z.nativeElement=b;A.shadowData=z.shadowData=e.shadowData={nativeElement:b,shadowElement:d,shadowFocusElement:c.shadowFocusElement};c.shadowChilds&&c.shadowChilds.each(function(){v(this,"shadowData",z.shadowData)});if(c.data)A.shadowData.data=
12
- z.shadowData.data=e.shadowData.data=c.data;c=null;f.start()}}(),propTypes:{standard:function(a){F(a);if(!a.prop)a.prop={set:function(b){a.attr.set.call(this,""+b)},get:function(){return a.attr.get.call(this)||a.defaultValue}}},"boolean":function(a){F(a);if(!a.prop)a.prop={set:function(b){b?a.attr.set.call(this,""):a.removeAttr.value.call(this)},get:function(){return null!=a.attr.get.call(this)}}},src:function(){var d=k.createElement("a");d.style.display="none";return function(b,c){F(b);if(!b.prop)b.prop=
13
- {set:function(a){b.attr.set.call(this,a)},get:function(){var b=this.getAttribute(c),f;if(null==b)return"";d.setAttribute("href",b+"");if(!a.support.hrefNormalized){try{a(d).insertAfter(this),f=d.getAttribute("href",4)}catch(i){f=d.getAttribute("href",4)}a(d).detach()}return f||d.href}}}}(),enumarated:function(a){F(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}}}},
14
- reflectProperties:function(d,b){"string"==typeof b&&(b=b.split(p));b.forEach(function(b){f.defineNodeNamesProperty(d,b,{prop:{set:function(d){a.attr(this,b,d)},get:function(){return a.attr(this,b)||""}}})})},defineNodeNameProperty:function(d,b,c){o[b]=!0;if(c.reflect)f.propTypes[c.propType||"standard"](c,b);["prop","attr","removeAttr"].forEach(function(e){var i=c[e];i&&(i="prop"===e?a.extend({writeable:!0},i):a.extend({},i,{writeable:!0}),y[e](d,b,i),"*"!=d&&f.cfg.extendNative&&"prop"==e&&i.value&&
15
- a.isFunction(i.value)&&q(d,b,i),c[e]=i)});c.initAttr&&w.content(d,b);return c},defineNodeNameProperties:function(a,b,c,e){for(var i in b)!e&&b[i].initAttr&&w.createTmpCache(a),c&&(b[i][c]?f.log("override: "+a+"["+i+"] for "+c):(b[i][c]={},["value","set","get"].forEach(function(a){a in b[i]&&(b[i][c][a]=b[i][a],delete b[i][a])}))),b[i]=f.defineNodeNameProperty(a,i,b[i]);e||w.flushTmpCache();return b},createElement:function(d,b,c){var e;a.isFunction(b)&&(b={after:b});w.createTmpCache(d);b.before&&w.createElement(d,
16
- b.before);c&&(e=f.defineNodeNameProperties(d,c,!1,!0));b.after&&w.createElement(d,b.after);w.flushTmpCache();return e},onNodeNamesPropertyModify:function(d,b,c,e){"string"==typeof d&&(d=d.split(p));a.isFunction(c)&&(c={set:c});d.forEach(function(a){i[a]||(i[a]={});"string"==typeof b&&(b=b.split(p));c.initAttr&&w.createTmpCache(a);b.forEach(function(b){i[a][b]||(i[a][b]=[],o[b]=!0);if(c.set){if(e)c.set.only=e;i[a][b].push(c.set)}c.initAttr&&w.content(a,b)});w.flushTmpCache()})},defineNodeNamesBooleanProperty:function(d,
17
- b,c){c||(c={});if(a.isFunction(c))c.set=c;f.defineNodeNamesProperty(d,b,{attr:{set:function(a){this.setAttribute(b,a);c.set&&c.set.call(this,!0)},get:function(){return null==this.getAttribute(b)?n:b}},removeAttr:{value:function(){this.removeAttribute(b);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===n)return a=a.attributes[b]||{},c=a.specified?a.value:null,null==c?n:c;"boolean"==typeof c?c?a.setAttribute(b,b):
18
- a.removeAttribute(b):a.setAttribute(b,c)}},activeLang:function(){var d=[],b={},c,e,i=/:\/\/|^\.*\//,g=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,s(b,!0)):a(function(){b.langObj[c]&&s(b,!0);b.loading=!1})}),!0):!1},l=function(a){b[a]&&b[a].forEach(function(a){a.callback()})},s=function(a,b){if(a.activeLang!=c&&a.activeLang!==e){var d=t[a.module].options;
19
- if(a.langObj[c]||e&&a.langObj[e])a.activeLang=c,a.callback(a.langObj[c]||a.langObj[e],c),l(a.module);else if(!b&&!g(a,c,d)&&!g(a,e,d)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],c),l(a.module)}};return function(l){if("string"==typeof l&&l!==c)c=l,e=c.split("-")[0],c==e&&(e=!1),a.each(d,function(a,b){s(b)});else if("object"==typeof l)if(l.register)b[l.register]||(b[l.register]=[]),b[l.register].push(l),l.callback();else{if(!l.activeLang)l.activeLang="";d.push(l);s(l)}return c}}()});
20
- a.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(a,b){f[a]=function(a,d,i,g){"string"==typeof a&&(a=a.split(p));var l={};a.forEach(function(a){l[a]=f[b](a,d,i,g)});return l}});f.isReady("webshimLocalization",!0)});
21
- (function(a,f){var j=a.webshims.browserVersion;if(!(a.browser.mozilla&&5<j)&&(!a.browser.msie||12>j&&7<j)){var k={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},n=function(a,f){a.getAttribute("role")||a.setAttribute("role",f)};a.webshims.addReady(function(j,p){a.each(k,function(f,i){for(var g=a(f,j).add(p.filter(f)),k=0,o=g.length;k<o;k++)n(g[k],i)});if(j===f){var x=f.getElementsByTagName("header")[0],o=f.getElementsByTagName("footer"),u=o.length;
22
- x&&!a(x).closest("section, article")[0]&&n(x,"banner");u&&(x=o[u-1],a(x).closest("section, article")[0]||n(x,"contentinfo"))}})}})(jQuery,document);
23
- (function(a,f,j){var k=f.audio&&f.video,n=!1,t=j.cfg.mediaelement,p=j.bugs,x=function(){j.ready("mediaelement-swf",function(){if(!j.mediaelement.createSWF)j.modules["mediaelement-swf"].test=a.noop,j.reTest(["mediaelement-swf"],k)})},o;if(k){var u=document.createElement("video");f.videoBuffered="buffered"in u;n="loop"in u;j.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(","));f.videoBuffered||(j.addPolyfill("mediaelement-native-fix",{f:"mediaelement",
24
- test:f.videoBuffered,d:["dom-support"]}),j.reTest("mediaelement-native-fix"))}if(k&&!t.preferFlash){var y=function(f){var g=f.target.parentNode;!t.preferFlash&&(a(f.target).is("audio, video")||g&&a("source:last",g)[0]==f.target)&&j.ready("DOM mediaelement",function(){o&&x();j.ready("WINDOWLOAD mediaelement-swf",function(){setTimeout(function(){o&&!t.preferFlash&&j.mediaelement.createSWF&&!a(f.target).closest("audio, video").is(".nonnative-api-active")?(t.preferFlash=!0,document.removeEventListener("error",
25
- y,!0),a("audio, video").mediaLoad(),j.info("switching mediaelements option to 'preferFlash', due to an error with native player: "+f.target.src)):o||document.removeEventListener("error",y,!0)},20)})})};document.addEventListener("error",y,!0);a("audio, video").each(function(){this.error&&y({target:this})})}p.track=!1;f.track&&function(){if(!p.track)p.track="number"!=typeof a("<track />")[0].readyState;if(!p.track)try{new TextTrackCue(2,3,"")}catch(f){p.track=!0}var g=j.cfg.track,k=function(f){a(f.target).filter("track").each(o)},
26
- o=function(){if(p.track||!g.override&&3==a.prop(this,"readyState"))g.override=!0,j.reTest("track"),document.removeEventListener("error",k,!0),this&&a.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")},n=function(){document.addEventListener("error",k,!0);p.track?o():a("track").each(o)};g.override||(j.isReady("track")?n():a(n))}();j.register("mediaelement-core",function(a,
27
- g,j,u,v){o=swfobject.hasFlashPlayerVersion("9.0.115");var h=g.mediaelement,q=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=h.getTypeForSrc(d.src,c))d.type=e,d.container=e;if(e=b.attr("media"))d.media=e;return d},w=!o&&"postMessage"in j&&k,y=
28
- function(){var b;return function(){!b&&w&&(b=!0,g.loader.loadScript("https://www.youtube.com/player_api"),a(function(){g.polyfill("mediaelement-yt")}))}}(),d=function(){o?x():y()};g.addPolyfill("mediaelement-yt",{test:!w,d:["dom-support"]});h.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",
29
- "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"]}};h.mimeTypes.source=a.extend({},h.mimeTypes.audio,h.mimeTypes.video);h.getTypeForSrc=function(b,c){if(-1!=b.indexOf("youtube.com/watch?")||
30
- -1!=b.indexOf("youtube.com/v/"))return"video/youtube";var b=b.split("?")[0].split("."),b=b[b.length-1],d;a.each(h.mimeTypes[c],function(a,c){if(-1!==c.indexOf(b))return d=a,!1});return d};h.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=u.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)});
31
- else{var c=[],d=b[0].nodeName.toLowerCase(),e=q(b,d);e.src?c.push(e):a("source",b).each(function(){e=q(this,d);e.src&&c.push(e)});return c}};a.fn.loadMediaSrc=function(b,c){return this.each(function(){c!==v&&(a(this).removeAttr("poster"),c&&a.attr(this,"poster",c));h.srces(this,b);a(this).mediaLoad()})};h.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(",");
32
- h.canThirdPlaySrces=function(b,c){var d="";if(o||w)b=a(b),c=c||h.srces(b),a.each(c,function(a,b){if(b.container&&b.src&&(o&&-1!=h.swfMimeTypes.indexOf(b.container)||w&&"video/youtube"==b.container))return d=b,!1});return d};var b={};h.canNativePlaySrces=function(c,d){var e="";if(k){var c=a(c),f=(c[0].nodeName||"").toLowerCase();if(!b[f])return e;d=d||h.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};h.setError=function(b,c){c||(c="can't play sources");
33
- a(b).pause().data("mediaerror",c);g.warn("mediaelementError: "+c);setTimeout(function(){a(b).data("mediaerror")&&a(b).trigger("mediaerror")},1)};var c=function(){var a;return function(b,e,f){g.ready(o?"mediaelement-swf":"mediaelement-yt",function(){h.createSWF?h.createSWF(b,e,f):a||(a=!0,d(),c(b,e,f))});!a&&w&&!h.createSWF&&y()}}(),e=function(a,b,d,f,g){d||!1!==d&&b&&"third"==b.isActive?(d=h.canThirdPlaySrces(a,f))?c(a,d,b):g?h.setError(a,!1):e(a,b,!1,f,!0):(d=h.canNativePlaySrces(a,f))?b&&"third"==
34
- b.isActive&&h.setActive(a,"html5",b):g?(h.setError(a,!1),b&&"third"==b.isActive&&h.setActive(a,"html5",b)):e(a,b,!0,f,!0)},r=/^(?:embed|object|datalist)$/i,B=function(b,c){var d=g.data(b,"mediaelementBase")||g.data(b,"mediaelementBase",{}),f=h.srces(b),j=b.parentNode;clearTimeout(d.loadTimer);a.data(b,"mediaerror",!1);if(f.length&&j&&!(1!=j.nodeType||r.test(j.nodeName||"")))c=c||g.data(b,"mediaelement"),e(b,c,t.preferFlash||v,f)};a(u).bind("ended",function(b){var c=g.data(b.target,"mediaelement");
35
- (!n||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)});n||g.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(c){var d=g.defineNodeNameProperty(c,"load",{prop:{value:function(){var a=g.data(this,"mediaelement");B(this,a);k&&(!a||"html5"==a.isActive)&&d.prop._supvalue&&d.prop._supvalue.apply(this,arguments)}}});b[c]=g.defineNodeNameProperty(c,
36
- "canPlayType",{prop:{value:function(d){var e="";k&&b[c].prop._supvalue&&(e=b[c].prop._supvalue.call(this,d),"no"==e&&(e=""));!e&&o&&(d=a.trim((d||"").split(";")[0]),-1!=h.swfMimeTypes.indexOf(d)&&(e="maybe"));return e}}})});g.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var a=this,b=g.data(a,"mediaelementBase")||g.data(a,"mediaelementBase",{});clearTimeout(b.loadTimer);b.loadTimer=setTimeout(function(){B(a);a=null},9)}});j=function(){g.addReady(function(b,c){a("video, audio",
37
- b).add(c.filter("video, audio")).each(function(){a.browser.msie&&8<g.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(k){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"==
38
- 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&&!p.track&&g.defineProperty(TextTrack.prototype,"shimActiveCues",{get:function(){return this._shimActiveCues||this.activeCues}});k?(g.isReady("mediaelement-core",!0),j(),g.ready("WINDOWLOAD mediaelement",d)):g.ready("mediaelement-swf",j);a(function(){g.loader.loadList(["track-ui"])})})})(jQuery,Modernizr,jQuery.webshims);
39
- jQuery.webshims.register("mediaelement-swf",function(a,f,j,k,n,t){var p=f.mediaelement,x=j.swfobject,o=Modernizr.audio&&Modernizr.video,u=x.hasFlashPlayerVersion("9.0.115"),y=0,j={paused:!0,ended:!1,currentSrc:"",duration:j.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}},i=Object.keys(j),g={currentTime:0,volume:1,
40
- muted:!1};Object.keys(g);var H=a.extend({isActive:"html5",activating:"html5",wasSwfReady:!1,_bufferedEnd:0,_bufferedStart:0,_metadata:!1,_durationCalcs:-1,_callMeta:!1,currentTime:0,_ppFlag:n},j,g),D=/^jwplayer-/,v=function(a){if(a=k.getElementById(a.replace(D,"")))return a=f.data(a,"mediaelement"),"third"==a.isActive?a:null},h=function(a){return(a=f.data(a,"mediaelement"))&&"third"==a.isActive?a:null},q=function(b,m){m=a.Event(m);m.preventDefault();a.event.trigger(m,n,b)},w=t.playerPath||f.cfg.basePath+
41
- "jwplayer/"+(t.playerName||"player.swf"),F=t.pluginPath||f.cfg.basePath+"swf/jwwebshims.swf";f.extendUNDEFProp(t.jwParams,{allowscriptaccess:"always",allowfullscreen:"true",wmode:"transparent"});f.extendUNDEFProp(t.jwVars,{screencolor:"ffffffff"});f.extendUNDEFProp(t.jwAttrs,{bgcolor:"#000000"});var d=function(b,m){var c=b.duration;if(!(c&&0<b._durationCalcs)){try{if(b.duration=b.jwapi.getPlaylist()[0].duration,!b.duration||0>=b.duration||b.duration===b._lastDuration)b.duration=c}catch(d){}b.duration&&
42
- b.duration!=b._lastDuration?(q(b._elem,"durationchange"),("audio"==b._elemNodeName||b._callMeta)&&p.jwEvents.Model.META(a.extend({duration:b.duration},m),b),b._durationCalcs--):b._durationCalcs++}},b=function(a,m){3>a&&clearTimeout(m._canplaythroughTimer);if(3<=a&&3>m.readyState)m.readyState=a,q(m._elem,"canplay"),clearTimeout(m._canplaythroughTimer),m._canplaythroughTimer=setTimeout(function(){b(4,m)},4E3);if(4<=a&&4>m.readyState)m.readyState=a,q(m._elem,"canplaythrough");m.readyState=a};a.extend(a.event.customEvent,
43
- {updatemediaelementdimensions:!0,flashblocker:!0,swfstageresize:!0,mediaelementapichange:!0});p.jwEvents={View:{PLAY:function(a){var b=v(a.id);if(b&&!b.stopPlayPause&&(b._ppFlag=!0,b.paused==a.state)){b.paused=!a.state;if(b.ended)b.ended=!1;q(b._elem,a.state?"play":"pause")}}},Model:{BUFFER:function(c){var m=v(c.id);if(m&&"percentage"in c&&m._bufferedEnd!=c.percentage){m.networkState=100==c.percentage?1:2;(isNaN(m.duration)||5<c.percentage&&25>c.percentage||100===c.percentage)&&d(m,c);if(m.ended)m.ended=
44
- !1;if(m.duration){2<c.percentage&&20>c.percentage?b(3,m):20<c.percentage&&b(4,m);if(m._bufferedEnd&&m._bufferedEnd>c.percentage)m._bufferedStart=m.currentTime||0;m._bufferedEnd=c.percentage;m.buffered.length=1;if(100==c.percentage)m.networkState=1,b(4,m);a.event.trigger("progress",n,m._elem,!0)}}},META:function(a,c){if(c=c&&c.networkState?c:v(a.id))if("duration"in a){if(!c._metadata||!((!a.height||c.videoHeight==a.height)&&a.duration===c.duration)){c._metadata=!0;var d=c.duration;if(a.duration)c.duration=
45
- a.duration;c._lastDuration=c.duration;if(a.height||a.width)c.videoHeight=a.height||0,c.videoWidth=a.width||0;if(!c.networkState)c.networkState=2;1>c.readyState&&b(1,c);c.duration&&d!==c.duration&&q(c._elem,"durationchange");q(c._elem,"loadedmetadata")}}else c._callMeta=!0},TIME:function(a){var c=v(a.id);if(c&&c.currentTime!==a.position){c.currentTime=a.position;c.duration&&c.duration<c.currentTime&&d(c,a);2>c.readyState&&b(2,c);if(c.ended)c.ended=!1;q(c._elem,"timeupdate")}},STATE:function(a){var c=
46
- v(a.id);if(c)switch(a.newstate){case "BUFFERING":if(c.ended)c.ended=!1;b(1,c);q(c._elem,"waiting");break;case "PLAYING":c.paused=!1;c._ppFlag=!0;c.duration||d(c,a);3>c.readyState&&b(3,c);if(c.ended)c.ended=!1;q(c._elem,"playing");break;case "PAUSED":if(!c.paused&&!c.stopPlayPause)c.paused=!0,c._ppFlag=!0,q(c._elem,"pause");break;case "COMPLETED":4>c.readyState&&b(4,c),c.ended=!0,q(c._elem,"ended")}}},Controller:{ERROR:function(a){var b=v(a.id);b&&p.setError(b._elem,a.message)},SEEK:function(a){var b=
47
- v(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,q(b._elem,"timeupdate")}},VOLUME:function(a){var b=v(a.id);if(b&&(a=a.percentage/100,b.volume!=a))b.volume=a,q(b._elem,"volumechange")},MUTE:function(a){if(!a.state){var b=v(a.id);if(b&&b.muted!=a.state)b.muted=a.state,q(b._elem,"volumechange")}}}};var c=function(b){var c=!0;a.each(p.jwEvents,function(d,e){a.each(e,function(a){try{b.jwapi["add"+d+"Listener"](a,
48
- "jQuery.webshims.mediaelement.jwEvents."+d+"."+a)}catch(e){return c=!1}})});return c},e=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=[]},r=function(b){b&&(b._ppFlag===n&&a.prop(b._elem,"autoplay")||!b.paused)&&setTimeout(function(){if("third"==b.isActive&&(b._ppFlag===n||!b.paused))try{a(b._elem).play()}catch(c){}},1)},B=function(b){if(b&&
49
- "video"==b._elemNodeName){var c,d,e,f,g,C,j,l,h=function(h,i){if(i&&h&&!(1>i||1>h||"third"!=b.isActive))if(c&&(c.remove(),c=!1),f=h,g=i,clearTimeout(j),d="auto"==b._elem.style.width,e="auto"==b._elem.style.height,d||e){C=C||a(b._elem).getShadowElement();var k;d&&!e?(k=C.height(),h*=k/i,i=k):!d&&e&&(k=C.width(),i*=k/h,h=k);l=!0;setTimeout(function(){l=!1},9);C.css({width:h,height:i})}},i=function(){if(!("third"!=b.isActive||a.prop(b._elem,"readyState")&&a.prop(this,"videoWidth"))){var f=a.prop(b._elem,
50
- "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(j);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;
51
- 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(j),j=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",i).bind("swfstageresize updatemediaelementdimensions",function(){l||h(f,g)}).bind("emptied",function(){f=void 0;g=void 0}).triggerHandler("swfstageresize");
52
- i();a.prop(b._elem,"readyState")&&h(a.prop(b._elem,"videoWidth"),a.prop(b._elem,"videoHeight"))}};p.playerResize=function(b){b&&(b=k.getElementById(b.replace(D,"")))&&a(b).triggerHandler("swfstageresize")};a(k).bind("emptied",function(a){a=h(a.target);r(a)});var l;p.jwPlayerReady=function(b){var d=v(b.id),I=0,g=function(){if(!(9<I))if(I++,c(d)){if(d.wasSwfReady)a(d._elem).mediaLoad();else{var h=parseFloat(b.version,10);(5.1>h||6<=h)&&f.warn("mediaelement-swf is only testet with jwplayer 5.6+")}d.wasSwfReady=
53
- !0;d.tryedReframeing=0;e(d);r(d)}else clearTimeout(d.reframeTimer),d.reframeTimer=setTimeout(g,9*I),2<I&&9>d.tryedReframeing&&(d.tryedReframeing++,d.shadowElem.css({overflow:"visible"}),setTimeout(function(){d.shadowElem.css({overflow:"hidden"})},16))};if(d&&d.jwapi){if(!d.tryedReframeing)d.tryedReframeing=0;clearTimeout(l);d.jwData=b;d.shadowElem.removeClass("flashblocker-assumed");a.prop(d._elem,"volume",d.volume);a.prop(d._elem,"muted",d.muted);g()}};var s=a.noop;if(o){var E={play:1,playing:1},
54
- z="play,pause,playing,canplay,progress,waiting,ended,loadedmetadata,durationchange,emptied".split(","),A=z.map(function(a){return a+".webshimspolyfill"}).join(" "),K=function(b){var c=f.data(b.target,"mediaelement");c&&(b.originalEvent&&b.originalEvent.type===b.type)==("third"==c.activating)&&(b.stopImmediatePropagation(),E[b.type]&&c.isActive!=c.activating&&a(b.target).pause())},s=function(b){a(b).unbind(A).bind(A,K);z.forEach(function(a){f.moveToFirstEvent(b,a)})};s(k)}p.setActive=function(b,c,
55
- 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")}};
56
- var L=function(){var a="_bufferedEnd,_bufferedStart,_metadata,_ppFlag,currentSrc,currentTime,duration,ended,networkState,paused,videoHeight,videoWidth,_callMeta,_durationCalcs".split(","),c=a.length;return function(d){if(d){var e=c,f=d.networkState;for(b(0,d);--e;)delete d[a[e]];d.actionQueue=[];d.buffered.length=0;f&&q(d._elem,"emptied")}}}(),J=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||
57
- a(d).width(),height:d.style.height||a(d).height()})};p.createSWF=function(b,c,d){if(u){1>y?y=1:y++;var e=a.extend({},t.jwVars,{image:a.prop(b,"poster")||"",file:c.srcProp}),g=a(b).data("jwvars")||{};d||(d=f.data(b,"mediaelement"));if(d&&d.swfCreated)p.setActive(b,"third",d),L(d),d.currentSrc=c.srcProp,a.extend(e,g),t.changeJW(e,b,c,d,"load"),G(b,"sendEvent",["LOAD",e]);else{var h=a.prop(b,"controls"),C="jwplayer-"+f.getID(b),j=a.extend({},t.jwParams,a(b).data("jwparams")),i=b.nodeName.toLowerCase(),
58
- k=a.extend({},t.jwAttrs,{name:C,id:C},a(b).data("jwattrs")),n=a('<div class="polyfill-'+i+' polyfill-mediaelement" id="wrapper-'+C+'"><div id="'+C+'"></div>').css({position:"relative",overflow:"hidden"}),d=f.data(b,"mediaelement",f.objectCreate(H,{actionQueue:{value:[]},shadowElem:{value:n},_elemNodeName:{value:i},_elem:{value:b},currentSrc:{value:c.srcProp},swfCreated:{value:!0},buffered:{value:{start:function(a){if(a>=d.buffered.length)f.error("buffered index size error");else return 0},end:function(a){if(a>=
59
- d.buffered.length)f.error("buffered index size error");else return(d.duration-d._bufferedStart)*d._bufferedEnd/100+d._bufferedStart},length:0}}}));J(d,h);n.insertBefore(b);o&&a.extend(d,{volume:a.prop(b,"volume"),muted:a.prop(b,"muted")});a.extend(e,{id:C,controlbar:h?t.jwVars.controlbar||("video"==i?"over":"bottom"):"video"==i?"none":"bottom",icons:""+(h&&"video"==i)},g,{playerready:"jQuery.webshims.mediaelement.jwPlayerReady"});e.plugins=e.plugins?e.plugins+(","+F):F;f.addShadowDom(b,n);s(b);p.setActive(b,
60
- "third",d);t.changeJW(e,b,c,d,"embed");a(b).bind("updatemediaelementdimensions updateshadowdom",function(){J(d,a.prop(b,"controls"))});B(d);x.embedSWF(w,C,"100%","100%","9.0.0",!1,e,j,k,function(c){if(c.success)d.jwapi=c.ref,h||a(c.ref).attr("tabindex","-1").css("outline","none"),setTimeout(function(){if(!c.ref.parentNode&&n[0].parentNode||"none"==c.ref.style.display)n.addClass("flashblocker-assumed"),a(b).trigger("flashblocker"),f.warn("flashblocker assumed");a(c.ref).css({minHeight:"2px",minWidth:"2px",
61
- display:"block"})},9),l||(clearTimeout(l),l=setTimeout(function(){var b=a(c.ref);1<b[0].offsetWidth&&1<b[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>b[0].offsetWidth||2>b[0].offsetHeight)&&f.info("JS-SWF connection can't be established on hidden or unconnected flash objects")},8E3))})}}else setTimeout(function(){a(b).mediaLoad()},
62
- 1)};var G=function(a,b,c,d){return(d=d||h(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=h(this);return b?b[a]:o&&d[a].prop._supget?d[a].prop._supget.apply(this):H[a]},writeable:!1})},g=function(b,a){e(b);delete c[b].writeable;
63
- c[b].set=a};g("volume",function(b){var a=h(this);if(a){if(b*=100,!isNaN(b)){var c=a.muted;(0>b||100<b)&&f.error("volume greater or less than allowed "+b/100);G(this,"sendEvent",["VOLUME",b],a);if(c)try{a.jwapi.sendEvent("mute","true")}catch(e){}b/=100;if(!(a.volume==b||"third"!=a.isActive))a.volume=b,q(a._elem,"volumechange")}}else if(d.volume.prop._supset)return d.volume.prop._supset.apply(this,arguments)});g("muted",function(b){var a=h(this);if(a){if(b=!!b,G(this,"sendEvent",["mute",""+b],a),!(a.muted==
64
- b||"third"!=a.isActive))a.muted=b,q(a._elem,"volumechange")}else if(d.muted.prop._supset)return d.muted.prop._supset.apply(this,arguments)});g("currentTime",function(b){var a=h(this);if(a){if(b*=1,!isNaN(b)){if(a.paused)clearTimeout(a.stopPlayPause),a.stopPlayPause=setTimeout(function(){a.paused=!0;a.stopPlayPause=!1},50);G(this,"sendEvent",["SEEK",""+b],a);if(a.paused){if(0<a.readyState)a.currentTime=b,q(a._elem,"timeupdate");try{a.jwapi.sendEvent("play","false")}catch(c){}}}}else if(d.currentTime.prop._supset)return d.currentTime.prop._supset.apply(this,
65
- arguments)});["play","pause"].forEach(function(a){c[a]={value:function(){var b=h(this);if(b)b.stopPlayPause&&clearTimeout(b.stopPlayPause),G(this,"sendEvent",["play","play"==a],b),setTimeout(function(){if("third"==b.isActive&&(b._ppFlag=!0,b.paused!=("play"!=a)))b.paused="play"!=a,q(b._elem,a)},1);else if(d[a].prop._supvalue)return d[a].prop._supvalue.apply(this,arguments)}}});i.forEach(e);f.onNodeNamesPropertyModify(b,"controls",function(c,d){var e=h(this);a(this)[d?"addClass":"removeClass"]("webshims-controls");
66
- if(e){try{G(this,d?"showControls":"hideControls",[b],e)}catch(g){f.warn("you need to generate a crossdomain.xml")}"audio"==b&&J(e,d);a(e.jwapi).attr("tabindex",d?"0":"-1")}});d=f.defineNodeNameProperties(b,c,"prop")});if(u){var M=a.cleanData,N=a.browser.msie&&9>f.browserVersion,O={object:1,OBJECT:1};a.cleanData=function(b){var a,c,d;if(b&&(c=b.length)&&y)for(a=0;a<c;a++)if(O[b[a].nodeName]){if("sendEvent"in b[a]){y--;try{b[a].sendEvent("play",!1)}catch(e){}}if(N)try{for(d in b[a])"function"==typeof b[a][d]&&
67
- (b[a][d]=null)}catch(f){}}return M.apply(this,arguments)}}o||(["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},
1
+ jQuery.webshims.register("dom-extend",function(b,f,k,l,n){var s=f.modules,p=/\s*,\s*/,w={},o={},t={},y={},x={},g=b.fn.val,H=function(d,a,c,e,h){return h?g.call(b(d)):g.call(b(d),c)};b.fn.val=function(d){var a=this[0];arguments.length&&null==d&&(d="");if(!arguments.length)return!a||1!==a.nodeType?g.call(this):b.prop(a,"value",d,"val",!0);if(b.isArray(d))return g.apply(this,arguments);var c=b.isFunction(d);return this.each(function(e){a=this;1===a.nodeType&&(c?(e=d.call(a,e,b.prop(a,"value",n,"val",
2
+ !0)),null==e&&(e=""),b.prop(a,"value",e,"val")):b.prop(a,"value",d,"val"))})};var D="_webshimsLib"+Math.round(1E3*Math.random()),u=function(d,a,c){d=d.jquery?d[0]:d;if(!d)return c||{};var e=b.data(d,D);c!==n&&(e||(e=b.data(d,D,{})),a&&(e[a]=c));return a?e&&e[a]:e};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(d){b.fn[d.name]=function(){return this.map(function(){var b=u(this,
3
+ "shadowData");return b&&b[d.prop]||this})}});["removeAttr","prop","attr"].forEach(function(d){w[d]=b[d];b[d]=function(a,c,e,h,f){var i="val"==h,r=!i?w[d]:H;if(!a||!o[c]||1!==a.nodeType||!i&&h&&"attr"==d&&b.attrFn[c])return r(a,c,e,h,f);var E=(a.nodeName||"").toLowerCase(),z=t[E],A="attr"==d&&(!1===e||null===e)?"removeAttr":d,g,j,k;z||(z=t["*"]);z&&(z=z[c]);z&&(g=z[A]);if(g){if("value"==c)j=g.isVal,g.isVal=i;if("removeAttr"===A)return g.value.call(a);if(e===n)return g.get?g.get.call(a):g.value;g.set&&
4
+ ("attr"==d&&!0===e&&(e=c),k=g.set.call(a,e));if("value"==c)g.isVal=j}else k=r(a,c,e,h,f);if((e!==n||"removeAttr"===A)&&x[E]&&x[E][c]){var l;l="removeAttr"==A?!1:"prop"==A?!!e:!0;x[E][c].forEach(function(b){if(!b.only||(b.only="prop"==d)||"attr"==b.only&&"prop"!=d)b.call(a,e,l,i?"val":A,d)})}return k};y[d]=function(a,c,e){t[a]||(t[a]={});t[a][c]||(t[a][c]={});var h=t[a][c][d],B=function(b,a,E){return a&&a[b]?a[b]:E&&E[b]?E[b]:"prop"==d&&"value"==c?function(b){return e.isVal?H(this,c,b,!1,0===arguments.length):
5
+ w[d](this,c,b)}:"prop"==d&&"value"==b&&e.value.apply?function(b){var a=w[d](this,c);a&&a.apply&&(a=a.apply(this,arguments));return a}:function(b){return w[d](this,c,b)}};t[a][c][d]=e;if(e.value===n){if(!e.set)e.set=e.writeable?B("set",e,h):f.cfg.useStrict&&"prop"==c?function(){throw c+" is readonly on "+a;}:b.noop;if(!e.get)e.get=B("get",e,h)}["value","get","set"].forEach(function(b){e[b]&&(e["_sup"+b]=B(b,h))})}});var j=!b.browser.msie||8<parseInt(b.browser.version,10),q=function(){var b=f.getPrototypeOf(l.createElement("foobar")),
6
+ a=Object.prototype.hasOwnProperty;return function(c,e,h){var B=l.createElement(c),i=f.getPrototypeOf(B);if(j&&i&&b!==i&&(!B[e]||!a.call(B,e))){var r=B[e];h._supvalue=function(){return r&&r.apply?r.apply(this,arguments):r};i[e]=h.value}else h._supvalue=function(){var b=u(this,"propValue");return b&&b[e]&&b[e].apply?b[e].apply(this,arguments):b&&b[e]},v.extendValue(c,e,h.value);h.value._supvalue=h._supvalue}}(),v=function(){var d={};f.addReady(function(a,c){var i={},r=function(d){i[d]||(i[d]=b(a.getElementsByTagName(d)),
7
+ c[0]&&b.nodeName(c[0],d)&&(i[d]=i[d].add(c)))};b.each(d,function(b,a){r(b);!a||!a.forEach?f.warn("Error: with "+b+"-property. methods: "+a):a.forEach(function(a){i[b].each(a)})});i=null});var a,c=b([]),e=function(c,e){d[c]?d[c].push(e):d[c]=[e];b.isDOMReady&&(a||b(l.getElementsByTagName(c))).each(e)};return{createTmpCache:function(d){b.isDOMReady&&(a=a||b(l.getElementsByTagName(d)));return a||c},flushTmpCache:function(){a=null},content:function(a,d){e(a,function(){var a=b.attr(this,d);null!=a&&b.attr(this,
8
+ d,a)})},createElement:function(b,a){e(b,a)},extendValue:function(a,d,c){e(a,function(){b(this).each(function(){u(this,"propValue",{})[d]=this[d];this[d]=c})})}}}(),F=function(b,a){if(b.defaultValue===n)b.defaultValue="";if(!b.removeAttr)b.removeAttr={value:function(){b[a||"prop"].set.call(this,b.defaultValue);b.removeAttr._supvalue.call(this)}};if(!b.attr)b.attr={}};b.extend(f,{getID:function(){var d=(new Date).getTime();return function(a){var a=b(a),c=a.attr("id");c||(d++,c="ID-"+d,a.attr("id",c));
9
+ return c}}(),extendUNDEFProp:function(d,a){b.each(a,function(b,a){b in d||(d[b]=a)})},createPropDefault:F,data:u,moveToFirstEvent:function(){var d=b._data?"_data":"data";return function(a,c,e){if((a=(b[d](a,"events")||{})[c])&&1<a.length)c=a.pop(),e||(e="bind"),"bind"==e&&a.delegateCount?a.splice(a.delegateCount,0,c):a.unshift(c)}}(),addShadowDom:function(){var d,a,c,e,h={init:!1,start:function(){if(!this.init&&l.body)this.init=!0,this.height=b(l).height(),this.width=b(l).width(),setInterval(function(){var a=
10
+ b(l).height(),d=b(l).width();if(a!=h.height||d!=h.width)h.height=a,h.width=d,e({type:"docresize"})},600)}};e=function(e){clearTimeout(d);d=setTimeout(function(){if("resize"==e.type){var d=b(k).width(),r=b(k).width();if(r==a&&d==c)return;a=r;c=d;if(l.body)h.height=b(l).height(),h.width=b(l).width()}b.event.trigger("updateshadowdom")},40)};b(k).bind("resize",e);b.event.customEvent.updateshadowdom=!0;return function(a,d,c){c=c||{};a.jquery&&(a=a[0]);d.jquery&&(d=d[0]);var e=b.data(a,D)||b.data(a,D,{}),
11
+ z=b.data(d,D)||b.data(d,D,{}),A={};if(c.shadowFocusElement){if(c.shadowFocusElement){if(c.shadowFocusElement.jquery)c.shadowFocusElement=c.shadowFocusElement[0];A=b.data(c.shadowFocusElement,D)||b.data(c.shadowFocusElement,D,A)}}else c.shadowFocusElement=d;e.hasShadow=d;A.nativeElement=z.nativeElement=a;A.shadowData=z.shadowData=e.shadowData={nativeElement:a,shadowElement:d,shadowFocusElement:c.shadowFocusElement};c.shadowChilds&&c.shadowChilds.each(function(){u(this,"shadowData",z.shadowData)});
12
+ if(c.data)A.shadowData.data=z.shadowData.data=e.shadowData.data=c.data;c=null;f.ready("DOM",function(){h.start()})}}(),propTypes:{standard:function(b){F(b);if(!b.prop)b.prop={set:function(a){b.attr.set.call(this,""+a)},get:function(){return b.attr.get.call(this)||b.defaultValue}}},"boolean":function(b){F(b);if(!b.prop)b.prop={set:function(a){a?b.attr.set.call(this,""):b.removeAttr.value.call(this)},get:function(){return null!=b.attr.get.call(this)}}},src:function(){var d=l.createElement("a");d.style.display=
13
+ "none";return function(a,c){F(a);if(!a.prop)a.prop={set:function(b){a.attr.set.call(this,b)},get:function(){var a=this.getAttribute(c),f;if(null==a)return"";d.setAttribute("href",a+"");if(!b.support.hrefNormalized){try{b(d).insertAfter(this),f=d.getAttribute("href",4)}catch(x){f=d.getAttribute("href",4)}b(d).detach()}return f||d.href}}}}(),enumarated:function(b){F(b);if(!b.prop)b.prop={set:function(a){b.attr.set.call(this,a)},get:function(){var a=(b.attr.get.call(this)||"").toLowerCase();if(!a||-1==
14
+ b.limitedTo.indexOf(a))a=b.defaultValue;return a}}}},reflectProperties:function(d,a){"string"==typeof a&&(a=a.split(p));a.forEach(function(a){f.defineNodeNamesProperty(d,a,{prop:{set:function(d){b.attr(this,a,d)},get:function(){return b.attr(this,a)||""}}})})},defineNodeNameProperty:function(d,a,c){o[a]=!0;if(c.reflect)f.propTypes[c.propType||"standard"](c,a);["prop","attr","removeAttr"].forEach(function(e){var h=c[e];h&&(h="prop"===e?b.extend({writeable:!0},h):b.extend({},h,{writeable:!0}),y[e](d,
15
+ a,h),"*"!=d&&f.cfg.extendNative&&"prop"==e&&h.value&&b.isFunction(h.value)&&q(d,a,h),c[e]=h)});c.initAttr&&v.content(d,a);return c},defineNodeNameProperties:function(b,a,c,e){for(var h in a)!e&&a[h].initAttr&&v.createTmpCache(b),c&&!a[h][c]&&(a[h][c]={},["value","set","get"].forEach(function(b){b in a[h]&&(a[h][c][b]=a[h][b],delete a[h][b])})),a[h]=f.defineNodeNameProperty(b,h,a[h]);e||v.flushTmpCache();return a},createElement:function(d,a,c){var e;b.isFunction(a)&&(a={after:a});v.createTmpCache(d);
16
+ a.before&&v.createElement(d,a.before);c&&(e=f.defineNodeNameProperties(d,c,!1,!0));a.after&&v.createElement(d,a.after);v.flushTmpCache();return e},onNodeNamesPropertyModify:function(d,a,c,e){"string"==typeof d&&(d=d.split(p));b.isFunction(c)&&(c={set:c});d.forEach(function(b){x[b]||(x[b]={});"string"==typeof a&&(a=a.split(p));c.initAttr&&v.createTmpCache(b);a.forEach(function(a){x[b][a]||(x[b][a]=[],o[a]=!0);if(c.set){if(e)c.set.only=e;x[b][a].push(c.set)}c.initAttr&&v.content(b,a)});v.flushTmpCache()})},
17
+ defineNodeNamesBooleanProperty:function(d,a,c){c||(c={});if(b.isFunction(c))c.set=c;f.defineNodeNamesProperty(d,a,{attr:{set:function(b){this.setAttribute(a,b);c.set&&c.set.call(this,!0)},get:function(){return null==this.getAttribute(a)?n:a}},removeAttr:{value:function(){this.removeAttribute(a);c.set&&c.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:c.initAttr||!1})},contentAttr:function(b,a,c){if(b.nodeName){if(c===n)return b=b.attributes[a]||{},c=b.specified?b.value:null,null==c?n:c;
18
+ "boolean"==typeof c?c?b.setAttribute(a,a):b.removeAttribute(a):b.setAttribute(a,c)}},activeLang:function(){var d=[],a={},c,e,x=/:\/\/|^\.*\//,g=function(a,c,d){return c&&d&&-1!==b.inArray(c,d.availabeLangs||[])?(a.loading=!0,d=d.langSrc,x.test(d)||(d=f.cfg.basePath+d),f.loader.loadScript(d+c+".js",function(){a.langObj[c]?(a.loading=!1,r(a,!0)):b(function(){a.langObj[c]&&r(a,!0);a.loading=!1})}),!0):!1},i=function(b){a[b]&&a[b].forEach(function(b){b.callback()})},r=function(b,a){if(b.activeLang!=c&&
19
+ b.activeLang!==e){var d=s[b.module].options;if(b.langObj[c]||e&&b.langObj[e])b.activeLang=c,b.callback(b.langObj[c]||b.langObj[e],c),i(b.module);else if(!a&&!g(b,c,d)&&!g(b,e,d)&&b.langObj[""]&&""!==b.activeLang)b.activeLang="",b.callback(b.langObj[""],c),i(b.module)}};return function(i){if("string"==typeof i&&i!==c)c=i,e=c.split("-")[0],c==e&&(e=!1),b.each(d,function(b,a){r(a)});else if("object"==typeof i)if(i.register)a[i.register]||(a[i.register]=[]),a[i.register].push(i),i.callback();else{if(!i.activeLang)i.activeLang=
20
+ "";d.push(i);r(i)}return c}}()});b.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(b,a){f[b]=function(b,d,x,g){"string"==typeof b&&(b=b.split(p));var i={};b.forEach(function(b){i[b]=f[a](b,d,x,g)});return i}});f.isReady("webshimLocalization",!0)});
21
+ (function(b,f){var k=b.webshims.browserVersion;if(!(b.browser.mozilla&&5<k)&&(!b.browser.msie||12>k&&7<k)){var l={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},n=function(b,f){b.getAttribute("role")||b.setAttribute("role",f)};b.webshims.addReady(function(k,p){b.each(l,function(f,x){for(var g=b(f,k).add(p.filter(f)),l=0,o=g.length;l<o;l++)n(g[l],x)});if(k===f){var w=f.getElementsByTagName("header")[0],o=f.getElementsByTagName("footer"),t=o.length;
22
+ w&&!b(w).closest("section, article")[0]&&n(w,"banner");t&&(w=o[t-1],b(w).closest("section, article")[0]||n(w,"contentinfo"))}})}})(jQuery,document);
23
+ (function(b,f,k){var l=f.audio&&f.video,n=!1,s=k.cfg.mediaelement,p=k.bugs,w=function(){k.ready("mediaelement-swf",function(){if(!k.mediaelement.createSWF)k.modules["mediaelement-swf"].test=b.noop,k.reTest(["mediaelement-swf"],l)})},o;if(l){var t=document.createElement("video");f.videoBuffered="buffered"in t;n="loop"in t;k.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(","));f.videoBuffered||(k.addPolyfill("mediaelement-native-fix",{f:"mediaelement",
24
+ test:f.videoBuffered,d:["dom-support"]}),k.reTest("mediaelement-native-fix"))}if(l&&!s.preferFlash){var y=function(f){var g=f.target.parentNode;!s.preferFlash&&(b(f.target).is("audio, video")||g&&b("source:last",g)[0]==f.target)&&k.ready("DOM mediaelement",function(){o&&w();k.ready("WINDOWLOAD mediaelement-swf",function(){setTimeout(function(){o&&!s.preferFlash&&k.mediaelement.createSWF&&!b(f.target).closest("audio, video").is(".nonnative-api-active")?(s.preferFlash=!0,document.removeEventListener("error",
25
+ y,!0),b("audio, video").mediaLoad(),k.info("switching mediaelements option to 'preferFlash', due to an error with native player: "+f.target.src)):o||document.removeEventListener("error",y,!0)},20)})})};document.addEventListener("error",y,!0);b("audio, video").each(function(){this.error&&y({target:this})})}p.track=!1;f.track&&function(){if(!p.track)p.track="number"!=typeof b("<track />")[0].readyState;if(!p.track)try{new TextTrackCue(2,3,"")}catch(f){p.track=!0}var g=k.cfg.track,l=function(f){b(f.target).filter("track").each(o)},
26
+ o=function(){if(p.track||!g.override&&3==b.prop(this,"readyState"))g.override=!0,k.reTest("track"),document.removeEventListener("error",l,!0),this&&b.nodeName(this,"track")?k.error("track support was overwritten. Please check your vtt including your vtt mime-type"):k.info("track support was overwritten. due to bad browser support")},n=function(){document.addEventListener("error",l,!0);p.track?o():b("track").each(o)};g.override||(k.isReady("track")?n():b(n))}();k.register("mediaelement-core",function(b,
27
+ g,k,t,u){o=swfobject.hasFlashPlayerVersion("9.0.115");var j=g.mediaelement,q=function(a,c){var a=b(a),d={src:a.attr("src")||"",elem:a,srcProp:a.prop("src")};if(!d.src)return d;var e=a.attr("type");if(e)d.type=e,d.container=b.trim(e.split(";")[0]);else if(c||(c=a[0].nodeName.toLowerCase(),"source"==c&&(c=(a.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),e=j.getTypeForSrc(d.src,c))d.type=e,d.container=e;if(e=a.attr("media"))d.media=e;return d},v=!o&&"postMessage"in k&&l,y=
28
+ function(){var a;return function(){!a&&v&&(a=!0,g.loader.loadScript("https://www.youtube.com/player_api"),b(function(){g.polyfill("mediaelement-yt")}))}}(),d=function(){o?w():y()};g.addPolyfill("mediaelement-yt",{test:!v,d:["dom-support"]});j.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",
29
+ "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"]}};j.mimeTypes.source=b.extend({},j.mimeTypes.audio,j.mimeTypes.video);j.getTypeForSrc=function(a,c){if(-1!=a.indexOf("youtube.com/watch?")||
30
+ -1!=a.indexOf("youtube.com/v/"))return"video/youtube";var a=a.split("?")[0].split("."),a=a[a.length-1],d;b.each(j.mimeTypes[c],function(b,c){if(-1!==c.indexOf(a))return d=b,!1});return d};j.srces=function(a,c){a=b(a);if(c)a.removeAttr("src").removeAttr("type").find("source").remove(),b.isArray(c)||(c=[c]),c.forEach(function(b){var c=t.createElement("source");"string"==typeof b&&(b={src:b});c.setAttribute("src",b.src);b.type&&c.setAttribute("type",b.type);b.media&&c.setAttribute("media",b.media);a.append(c)});
31
+ else{var c=[],d=a[0].nodeName.toLowerCase(),e=q(a,d);e.src?c.push(e):b("source",a).each(function(){e=q(this,d);e.src&&c.push(e)});return c}};b.fn.loadMediaSrc=function(a,c){return this.each(function(){c!==u&&(b(this).removeAttr("poster"),c&&b.attr(this,"poster",c));j.srces(this,a);b(this).mediaLoad()})};j.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(",");
32
+ j.canThirdPlaySrces=function(a,c){var d="";if(o||v)a=b(a),c=c||j.srces(a),b.each(c,function(b,a){if(a.container&&a.src&&(o&&-1!=j.swfMimeTypes.indexOf(a.container)||v&&"video/youtube"==a.container))return d=a,!1});return d};var a={};j.canNativePlaySrces=function(c,d){var e="";if(l){var c=b(c),f=(c[0].nodeName||"").toLowerCase();if(!a[f])return e;d=d||j.srces(c);b.each(d,function(b,d){if(d.type&&a[f].prop._supvalue.call(c[0],d.type))return e=d,!1})}return e};j.setError=function(a,c){c||(c="can't play sources");
33
+ b(a).pause().data("mediaerror",c);g.warn("mediaelementError: "+c);setTimeout(function(){b(a).data("mediaerror")&&b(a).trigger("mediaerror")},1)};var c=function(){var b;return function(a,e,f){g.ready(o?"mediaelement-swf":"mediaelement-yt",function(){j.createSWF?j.createSWF(a,e,f):b||(b=!0,d(),c(a,e,f))});!b&&v&&!j.createSWF&&y()}}(),e=function(b,a,d,f,g){d||!1!==d&&a&&"third"==a.isActive?(d=j.canThirdPlaySrces(b,f))?c(b,d,a):g?j.setError(b,!1):e(b,a,!1,f,!0):(d=j.canNativePlaySrces(b,f))?a&&"third"==
34
+ a.isActive&&j.setActive(b,"html5",a):g?(j.setError(b,!1),a&&"third"==a.isActive&&j.setActive(b,"html5",a)):e(b,a,!0,f,!0)},h=/^(?:embed|object|datalist)$/i,B=function(a,c){var d=g.data(a,"mediaelementBase")||g.data(a,"mediaelementBase",{}),f=j.srces(a),k=a.parentNode;clearTimeout(d.loadTimer);b.data(a,"mediaerror",!1);if(f.length&&k&&!(1!=k.nodeType||h.test(k.nodeName||"")))c=c||g.data(a,"mediaelement"),e(a,c,s.preferFlash||u,f)};b(t).bind("ended",function(a){var c=g.data(a.target,"mediaelement");
35
+ (!n||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)});n||g.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(c){var d=g.defineNodeNameProperty(c,"load",{prop:{value:function(){var b=g.data(this,"mediaelement");B(this,b);l&&(!b||"html5"==b.isActive)&&d.prop._supvalue&&d.prop._supvalue.apply(this,arguments)}}});a[c]=g.defineNodeNameProperty(c,
36
+ "canPlayType",{prop:{value:function(d){var e="";l&&a[c].prop._supvalue&&(e=a[c].prop._supvalue.call(this,d),"no"==e&&(e=""));!e&&o&&(d=b.trim((d||"").split(";")[0]),-1!=j.swfMimeTypes.indexOf(d)&&(e="maybe"));return e}}})});g.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var b=this,a=g.data(b,"mediaelementBase")||g.data(b,"mediaelementBase",{});clearTimeout(a.loadTimer);a.loadTimer=setTimeout(function(){B(b);b=null},9)}});k=function(){g.addReady(function(a,c){b("video, audio",
37
+ a).add(c.filter("video, audio")).each(function(){b.browser.msie&&8<g.browserVersion&&b.prop(this,"paused")&&!b.prop(this,"readyState")&&b(this).is('audio[preload="none"][controls]:not([autoplay])')?b(this).prop("preload","metadata").mediaLoad():B(this);if(l){var a,c,d=this,e=function(){var a=b.prop(d,"buffered");if(a){for(var c="",e=0,f=a.length;e<f;e++)c+=a.end(e);return c}},f=function(){var a=e();a!=c&&(c=a,b(d).triggerHandler("progress"))};b(this).bind("play loadstart progress",function(b){"progress"==
38
+ b.type&&(c=e());clearTimeout(a);a=setTimeout(f,999)}).bind("emptied stalled mediaerror abort suspend",function(b){"emptied"==b.type&&(c=!1);clearTimeout(a)})}})})};f.track&&!p.track&&g.defineProperty(TextTrack.prototype,"shimActiveCues",{get:function(){return this._shimActiveCues||this.activeCues}});l?(g.isReady("mediaelement-core",!0),k(),g.ready("WINDOWLOAD mediaelement",d)):g.ready("mediaelement-swf",k);b(function(){g.loader.loadList(["track-ui"])})})})(jQuery,Modernizr,jQuery.webshims);
39
+ jQuery.webshims.register("mediaelement-swf",function(b,f,k,l,n,s){var p=f.mediaelement,w=k.swfobject,o=Modernizr.audio&&Modernizr.video,t=w.hasFlashPlayerVersion("9.0.115"),y=0,k={paused:!0,ended:!1,currentSrc:"",duration:k.NaN,readyState:0,networkState:0,videoHeight:0,videoWidth:0,error:null,buffered:{start:function(b){if(b)f.error("buffered index size error");else return 0},end:function(b){if(b)f.error("buffered index size error");else return 0},length:0}},x=Object.keys(k),g={currentTime:0,volume:1,
40
+ muted:!1};Object.keys(g);var H=b.extend({isActive:"html5",activating:"html5",wasSwfReady:!1,_bufferedEnd:0,_bufferedStart:0,_metadata:!1,_durationCalcs:-1,_callMeta:!1,currentTime:0,_ppFlag:n},k,g),D=/^jwplayer-/,u=function(b){if(b=l.getElementById(b.replace(D,"")))return b=f.data(b,"mediaelement"),"third"==b.isActive?b:null},j=function(b){return(b=f.data(b,"mediaelement"))&&"third"==b.isActive?b:null},q=function(a,m){m=b.Event(m);m.preventDefault();b.event.trigger(m,n,a)},v=s.playerPath||f.cfg.basePath+
41
+ "jwplayer/"+(s.playerName||"player.swf"),F=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 d=function(a,m){var c=a.duration;if(!(c&&0<a._durationCalcs)){try{if(a.duration=a.jwapi.getPlaylist()[0].duration,!a.duration||0>=a.duration||a.duration===a._lastDuration)a.duration=c}catch(d){}a.duration&&
42
+ a.duration!=a._lastDuration?(q(a._elem,"durationchange"),("audio"==a._elemNodeName||a._callMeta)&&p.jwEvents.Model.META(b.extend({duration:a.duration},m),a),a._durationCalcs--):a._durationCalcs++}},a=function(b,m){3>b&&clearTimeout(m._canplaythroughTimer);if(3<=b&&3>m.readyState)m.readyState=b,q(m._elem,"canplay"),clearTimeout(m._canplaythroughTimer),m._canplaythroughTimer=setTimeout(function(){a(4,m)},4E3);if(4<=b&&4>m.readyState)m.readyState=b,q(m._elem,"canplaythrough");m.readyState=b};b.extend(b.event.customEvent,
43
+ {updatemediaelementdimensions:!0,flashblocker:!0,swfstageresize:!0,mediaelementapichange:!0});p.jwEvents={View:{PLAY:function(b){var a=u(b.id);if(a&&!a.stopPlayPause&&(a._ppFlag=!0,a.paused==b.state)){a.paused=!b.state;if(a.ended)a.ended=!1;q(a._elem,b.state?"play":"pause")}}},Model:{BUFFER:function(c){var m=u(c.id);if(m&&"percentage"in c&&m._bufferedEnd!=c.percentage){m.networkState=100==c.percentage?1:2;(isNaN(m.duration)||5<c.percentage&&25>c.percentage||100===c.percentage)&&d(m,c);if(m.ended)m.ended=
44
+ !1;if(m.duration){2<c.percentage&&20>c.percentage?a(3,m):20<c.percentage&&a(4,m);if(m._bufferedEnd&&m._bufferedEnd>c.percentage)m._bufferedStart=m.currentTime||0;m._bufferedEnd=c.percentage;m.buffered.length=1;if(100==c.percentage)m.networkState=1,a(4,m);b.event.trigger("progress",n,m._elem,!0)}}},META:function(b,c){if(c=c&&c.networkState?c:u(b.id))if("duration"in b){if(!c._metadata||!((!b.height||c.videoHeight==b.height)&&b.duration===c.duration)){c._metadata=!0;var d=c.duration;if(b.duration)c.duration=
45
+ b.duration;c._lastDuration=c.duration;if(b.height||b.width)c.videoHeight=b.height||0,c.videoWidth=b.width||0;if(!c.networkState)c.networkState=2;1>c.readyState&&a(1,c);c.duration&&d!==c.duration&&q(c._elem,"durationchange");q(c._elem,"loadedmetadata")}}else c._callMeta=!0},TIME:function(b){var c=u(b.id);if(c&&c.currentTime!==b.position){c.currentTime=b.position;c.duration&&c.duration<c.currentTime&&d(c,b);2>c.readyState&&a(2,c);if(c.ended)c.ended=!1;q(c._elem,"timeupdate")}},STATE:function(b){var c=
46
+ u(b.id);if(c)switch(b.newstate){case "BUFFERING":if(c.ended)c.ended=!1;a(1,c);q(c._elem,"waiting");break;case "PLAYING":c.paused=!1;c._ppFlag=!0;c.duration||d(c,b);3>c.readyState&&a(3,c);if(c.ended)c.ended=!1;q(c._elem,"playing");break;case "PAUSED":if(!c.paused&&!c.stopPlayPause)c.paused=!0,c._ppFlag=!0,q(c._elem,"pause");break;case "COMPLETED":4>c.readyState&&a(4,c),c.ended=!0,q(c._elem,"ended")}}},Controller:{ERROR:function(b){var a=u(b.id);a&&p.setError(a._elem,b.message)},SEEK:function(b){var a=
47
+ u(b.id);if(a){if(a.ended)a.ended=!1;if(a.paused)try{a.jwapi.sendEvent("play","false")}catch(c){}if(a.currentTime!=b.position)a.currentTime=b.position,q(a._elem,"timeupdate")}},VOLUME:function(b){var a=u(b.id);if(a&&(b=b.percentage/100,a.volume!=b))a.volume=b,q(a._elem,"volumechange")},MUTE:function(b){if(!b.state){var a=u(b.id);if(a&&a.muted!=b.state)a.muted=b.state,q(a._elem,"volumechange")}}}};var c=function(a){var c=!0;b.each(p.jwEvents,function(d,e){b.each(e,function(b){try{a.jwapi["add"+d+"Listener"](b,
48
+ "jQuery.webshims.mediaelement.jwEvents."+d+"."+b)}catch(e){return c=!1}})});return c},e=function(b){var a=b.actionQueue.length,c=0,d;if(a&&"third"==b.isActive)for(;b.actionQueue.length&&a>c;)c++,d=b.actionQueue.shift(),b.jwapi[d.fn].apply(b.jwapi,d.args);if(b.actionQueue.length)b.actionQueue=[]},h=function(a){a&&(a._ppFlag===n&&b.prop(a._elem,"autoplay")||!a.paused)&&setTimeout(function(){if("third"==a.isActive&&(a._ppFlag===n||!a.paused))try{b(a._elem).play()}catch(c){}},1)},B=function(a){if(a&&
49
+ "video"==a._elemNodeName){var c,d,e,f,g,C,h,k,i=function(i,j){if(j&&i&&!(1>j||1>i||"third"!=a.isActive))if(c&&(c.remove(),c=!1),f=i,g=j,clearTimeout(h),d="auto"==a._elem.style.width,e="auto"==a._elem.style.height,d||e){C=C||b(a._elem).getShadowElement();var l;d&&!e?(l=C.height(),i*=l/j,j=l):!d&&e&&(l=C.width(),j*=l/i,i=l);k=!0;setTimeout(function(){k=!1},9);C.css({width:i,height:j})}},j=function(){if(!("third"!=a.isActive||b.prop(a._elem,"readyState")&&b.prop(this,"videoWidth"))){var f=b.prop(a._elem,
50
+ "poster");if(f&&(d="auto"==a._elem.style.width,e="auto"==a._elem.style.height,d||e))c&&(c.remove(),c=!1),c=b('<img style="position: absolute; height: auto; width: auto; top: 0px; left: 0px; visibility: hidden;" />'),c.bind("load error alreadycomplete",function(){clearTimeout(h);var a=this,d=a.naturalWidth||a.width||a.offsetWidth,e=a.naturalHeight||a.height||a.offsetHeight;e&&d?(i(d,e),a=null):setTimeout(function(){d=a.naturalWidth||a.width||a.offsetWidth;e=a.naturalHeight||a.height||a.offsetHeight;
51
+ i(d,e);c&&(c.remove(),c=!1);a=null},9);b(this).unbind()}).prop("src",f).appendTo("body").each(function(){this.complete||this.error?b(this).triggerHandler("alreadycomplete"):(clearTimeout(h),h=setTimeout(function(){b(a._elem).triggerHandler("error")},9999))})}};b(a._elem).bind("loadedmetadata",function(){i(b.prop(this,"videoWidth"),b.prop(this,"videoHeight"))}).bind("emptied",j).bind("swfstageresize updatemediaelementdimensions",function(){k||i(f,g)}).bind("emptied",function(){f=void 0;g=void 0}).triggerHandler("swfstageresize");
52
+ j();b.prop(a._elem,"readyState")&&i(b.prop(a._elem,"videoWidth"),b.prop(a._elem,"videoHeight"))}};p.playerResize=function(a){a&&(a=l.getElementById(a.replace(D,"")))&&b(a).triggerHandler("swfstageresize")};b(l).bind("emptied",function(b){b=j(b.target);h(b)});var i;p.jwPlayerReady=function(a){var d=u(a.id),I=0,g=function(){if(!(9<I))if(I++,c(d)){if(d.wasSwfReady)b(d._elem).mediaLoad();else{var i=parseFloat(a.version,10);(5.1>i||6<=i)&&f.warn("mediaelement-swf is only testet with jwplayer 5.6+")}d.wasSwfReady=
53
+ !0;d.tryedReframeing=0;e(d);h(d)}else clearTimeout(d.reframeTimer),d.reframeTimer=setTimeout(g,9*I),2<I&&9>d.tryedReframeing&&(d.tryedReframeing++,d.shadowElem.css({overflow:"visible"}),setTimeout(function(){d.shadowElem.css({overflow:"hidden"})},16))};if(d&&d.jwapi){if(!d.tryedReframeing)d.tryedReframeing=0;clearTimeout(i);d.jwData=a;d.shadowElem.removeClass("flashblocker-assumed");b.prop(d._elem,"volume",d.volume);b.prop(d._elem,"muted",d.muted);g()}};var r=b.noop;if(o){var E={play:1,playing:1},
54
+ z="play,pause,playing,canplay,progress,waiting,ended,loadedmetadata,durationchange,emptied".split(","),A=z.map(function(b){return b+".webshimspolyfill"}).join(" "),K=function(a){var c=f.data(a.target,"mediaelement");c&&(a.originalEvent&&a.originalEvent.type===a.type)==("third"==c.activating)&&(a.stopImmediatePropagation(),E[a.type]&&c.isActive!=c.activating&&b(a.target).pause())},r=function(a){b(a).unbind(A).bind(A,K);z.forEach(function(b){f.moveToFirstEvent(a,b)})};r(l)}p.setActive=function(a,c,
55
+ d){d||(d=f.data(a,"mediaelement"));if(d&&d.isActive!=c){"html5"!=c&&"third"!=c&&f.warn("wrong type for mediaelement activating: "+c);var e=f.data(a,"shadowData");d.activating=c;b(a).pause();d.isActive=c;"third"==c?(e.shadowElement=e.shadowFocusElement=d.shadowElem[0],b(a).addClass("swf-api-active nonnative-api-active").hide().getShadowElement().show()):(b(a).removeClass("swf-api-active nonnative-api-active").show().getShadowElement().hide(),e.shadowElement=e.shadowFocusElement=!1);b(a).trigger("mediaelementapichange")}};
56
+ var L=function(){var b="_bufferedEnd,_bufferedStart,_metadata,_ppFlag,currentSrc,currentTime,duration,ended,networkState,paused,videoHeight,videoWidth,_callMeta,_durationCalcs".split(","),c=b.length;return function(d){if(d){var e=c,f=d.networkState;for(a(0,d);--e;)delete d[b[e]];d.actionQueue=[];d.buffered.length=0;f&&q(d._elem,"emptied")}}}(),J=function(a,c){var d=a._elem,e=a.shadowElem;b(d)[c?"addClass":"removeClass"]("webshims-controls");"audio"==a._elemNodeName&&!c?e.css({width:0,height:0}):e.css({width:d.style.width||
57
+ b(d).width(),height:d.style.height||b(d).height()})};p.createSWF=function(a,c,d){if(t){1>y?y=1:y++;var e=b.extend({},s.jwVars,{image:b.prop(a,"poster")||"",file:c.srcProp}),g=b(a).data("jwvars")||{};d||(d=f.data(a,"mediaelement"));if(d&&d.swfCreated)p.setActive(a,"third",d),L(d),d.currentSrc=c.srcProp,b.extend(e,g),s.changeJW(e,a,c,d,"load"),G(a,"sendEvent",["LOAD",e]);else{var h=b.prop(a,"controls"),C="jwplayer-"+f.getID(a),k=b.extend({},s.jwParams,b(a).data("jwparams")),j=a.nodeName.toLowerCase(),
58
+ l=b.extend({},s.jwAttrs,{name:C,id:C},b(a).data("jwattrs")),n=b('<div class="polyfill-'+j+' polyfill-mediaelement" id="wrapper-'+C+'"><div id="'+C+'"></div>').css({position:"relative",overflow:"hidden"}),d=f.data(a,"mediaelement",f.objectCreate(H,{actionQueue:{value:[]},shadowElem:{value:n},_elemNodeName:{value:j},_elem:{value:a},currentSrc:{value:c.srcProp},swfCreated:{value:!0},buffered:{value:{start:function(b){if(b>=d.buffered.length)f.error("buffered index size error");else return 0},end:function(b){if(b>=
59
+ d.buffered.length)f.error("buffered index size error");else return(d.duration-d._bufferedStart)*d._bufferedEnd/100+d._bufferedStart},length:0}}}));J(d,h);n.insertBefore(a);o&&b.extend(d,{volume:b.prop(a,"volume"),muted:b.prop(a,"muted")});b.extend(e,{id:C,controlbar:h?s.jwVars.controlbar||("video"==j?"over":"bottom"):"video"==j?"none":"bottom",icons:""+(h&&"video"==j)},g,{playerready:"jQuery.webshims.mediaelement.jwPlayerReady"});e.plugins=e.plugins?e.plugins+(","+F):F;f.addShadowDom(a,n);r(a);p.setActive(a,
60
+ "third",d);s.changeJW(e,a,c,d,"embed");b(a).bind("updatemediaelementdimensions updateshadowdom",function(){J(d,b.prop(a,"controls"))});B(d);w.embedSWF(v,C,"100%","100%","9.0.0",!1,e,k,l,function(c){if(c.success)d.jwapi=c.ref,h||b(c.ref).attr("tabindex","-1").css("outline","none"),setTimeout(function(){if(!c.ref.parentNode&&n[0].parentNode||"none"==c.ref.style.display)n.addClass("flashblocker-assumed"),b(a).trigger("flashblocker"),f.warn("flashblocker assumed");b(c.ref).css({minHeight:"2px",minWidth:"2px",
61
+ display:"block"})},9),i||(clearTimeout(i),i=setTimeout(function(){var a=b(c.ref);1<a[0].offsetWidth&&1<a[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>a[0].offsetWidth||2>a[0].offsetHeight)&&f.warn("JS-SWF connection can't be established on hidden or unconnected flash objects")},8E3))})}}else setTimeout(function(){b(a).mediaLoad()},
62
+ 1)};var G=function(b,a,c,d){return(d=d||j(b))?(d.jwapi&&d.jwapi[a]?d.jwapi[a].apply(d.jwapi,c||[]):(d.actionQueue.push({fn:a,args:c}),10<d.actionQueue.length&&setTimeout(function(){5<d.actionQueue.length&&d.actionQueue.shift()},99)),d):!1};["audio","video"].forEach(function(a){var c={},d,e=function(b){"audio"==a&&("videoHeight"==b||"videoWidth"==b)||(c[b]={get:function(){var a=j(this);return a?a[b]:o&&d[b].prop._supget?d[b].prop._supget.apply(this):H[b]},writeable:!1})},g=function(a,b){e(a);delete c[a].writeable;
63
+ c[a].set=b};g("volume",function(a){var b=j(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);G(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,q(b._elem,"volumechange")}}else if(d.volume.prop._supset)return d.volume.prop._supset.apply(this,arguments)});g("muted",function(a){var b=j(this);if(b){if(a=!!a,G(this,"sendEvent",["mute",""+a],b),!(b.muted==
64
+ a||"third"!=b.isActive))b.muted=a,q(b._elem,"volumechange")}else if(d.muted.prop._supset)return d.muted.prop._supset.apply(this,arguments)});g("currentTime",function(a){var b=j(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);G(this,"sendEvent",["SEEK",""+a],b);if(b.paused){if(0<b.readyState)b.currentTime=a,q(b._elem,"timeupdate");try{b.jwapi.sendEvent("play","false")}catch(c){}}}}else if(d.currentTime.prop._supset)return d.currentTime.prop._supset.apply(this,
65
+ arguments)});["play","pause"].forEach(function(b){c[b]={value:function(){var a=j(this);if(a)a.stopPlayPause&&clearTimeout(a.stopPlayPause),G(this,"sendEvent",["play","play"==b],a),setTimeout(function(){if("third"==a.isActive&&(a._ppFlag=!0,a.paused!=("play"!=b)))a.paused="play"!=b,q(a._elem,b)},1);else if(d[b].prop._supvalue)return d[b].prop._supvalue.apply(this,arguments)}}});x.forEach(e);f.onNodeNamesPropertyModify(a,"controls",function(c,d){var e=j(this);b(this)[d?"addClass":"removeClass"]("webshims-controls");
66
+ if(e){try{G(this,d?"showControls":"hideControls",[a],e)}catch(g){f.warn("you need to generate a crossdomain.xml")}"audio"==a&&J(e,d);b(e.jwapi).attr("tabindex",d?"0":"-1")}});d=f.defineNodeNameProperties(a,c,"prop")});if(t){var M=b.cleanData,N=b.browser.msie&&9>f.browserVersion,O={object:1,OBJECT:1};b.cleanData=function(a){var b,c,d;if(a&&(c=a.length)&&y)for(b=0;b<c;b++)if(O[a[b].nodeName]){if("sendEvent"in a[b]){y--;try{a[b].sendEvent("play",!1)}catch(e){}}if(N)try{for(d in a[b])"function"==typeof a[b][d]&&
67
+ (a[b][d]=null)}catch(f){}}return M.apply(this,arguments)}}o||(["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},
68
68
  NETWORK_IDLE:{value:1},NETWORK_LOADING:{value:2},NETWORK_NO_SOURCE:{value:3}},"prop"))});