webshims-rails 0.3 → 0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (140) hide show
  1. data/lib/webshims-rails.rb +1 -1
  2. data/lib/webshims-rails/version.rb +2 -2
  3. data/readme.textile +5 -3
  4. data/vendor/assets/javascripts/webshims/dev/extras/custom-validity.js +261 -0
  5. data/vendor/assets/javascripts/webshims/dev/extras/modernizr-custom.js +535 -0
  6. data/vendor/assets/javascripts/webshims/dev/extras/mousepress.js +60 -0
  7. data/vendor/assets/javascripts/webshims/dev/polyfiller.js +1171 -0
  8. data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvas/README +62 -0
  9. data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvas/canvas2png.js +42 -0
  10. data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvas/flashcanvas.js +28 -0
  11. data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvas/flashcanvas.swf +0 -0
  12. data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvas/proxy.php +73 -0
  13. data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvas/save.php +49 -0
  14. data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvasPro/README +82 -0
  15. data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvasPro/canvas2png.js +42 -0
  16. data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvasPro/flash10canvas.swf +0 -0
  17. data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvasPro/flash9canvas.swf +0 -0
  18. data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvasPro/flashcanvas.js +31 -0
  19. data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvasPro/proxy.php +73 -0
  20. data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvasPro/save.php +49 -0
  21. data/vendor/assets/javascripts/webshims/dev/shims/combos/1.js +1710 -0
  22. data/vendor/assets/javascripts/webshims/dev/shims/combos/10.js +3317 -0
  23. data/vendor/assets/javascripts/webshims/dev/shims/combos/11.js +1585 -0
  24. data/vendor/assets/javascripts/webshims/dev/shims/combos/12.js +1587 -0
  25. data/vendor/assets/javascripts/webshims/dev/shims/combos/13.js +1054 -0
  26. data/vendor/assets/javascripts/webshims/dev/shims/combos/14.js +476 -0
  27. data/vendor/assets/javascripts/webshims/dev/shims/combos/15.js +314 -0
  28. data/vendor/assets/javascripts/webshims/dev/shims/combos/16.js +2101 -0
  29. data/vendor/assets/javascripts/webshims/dev/shims/combos/17.js +2264 -0
  30. data/vendor/assets/javascripts/webshims/dev/shims/combos/18.js +2161 -0
  31. data/vendor/assets/javascripts/webshims/dev/shims/combos/19.js +2244 -0
  32. data/vendor/assets/javascripts/webshims/dev/shims/combos/2.js +2294 -0
  33. data/vendor/assets/javascripts/webshims/dev/shims/combos/20.js +1607 -0
  34. data/vendor/assets/javascripts/webshims/dev/shims/combos/21.js +1635 -0
  35. data/vendor/assets/javascripts/webshims/dev/shims/combos/22.js +2409 -0
  36. data/vendor/assets/javascripts/webshims/dev/shims/combos/23.js +2168 -0
  37. data/vendor/assets/javascripts/webshims/dev/shims/combos/24.js +2777 -0
  38. data/vendor/assets/javascripts/webshims/dev/shims/combos/25.js +2204 -0
  39. data/vendor/assets/javascripts/webshims/dev/shims/combos/26.js +2863 -0
  40. data/vendor/assets/javascripts/webshims/dev/shims/combos/27.js +4079 -0
  41. data/vendor/assets/javascripts/webshims/dev/shims/combos/3.js +2971 -0
  42. data/vendor/assets/javascripts/webshims/dev/shims/combos/4.js +823 -0
  43. data/vendor/assets/javascripts/webshims/dev/shims/combos/5.js +1078 -0
  44. data/vendor/assets/javascripts/webshims/dev/shims/combos/59.js +1754 -0
  45. data/vendor/assets/javascripts/webshims/dev/shims/combos/6.js +1230 -0
  46. data/vendor/assets/javascripts/webshims/dev/shims/combos/7.js +1485 -0
  47. data/vendor/assets/javascripts/webshims/dev/shims/combos/8.js +1442 -0
  48. data/vendor/assets/javascripts/webshims/dev/shims/combos/9.js +2515 -0
  49. data/vendor/assets/javascripts/webshims/dev/shims/details.js +146 -0
  50. data/vendor/assets/javascripts/webshims/dev/shims/dom-extend.js +908 -0
  51. data/vendor/assets/javascripts/webshims/dev/shims/es5.js +802 -0
  52. data/vendor/assets/javascripts/webshims/dev/shims/excanvas.js +924 -0
  53. data/vendor/assets/javascripts/webshims/dev/shims/form-core.js +660 -0
  54. data/vendor/assets/javascripts/webshims/dev/shims/form-datalist.js +677 -0
  55. data/vendor/assets/javascripts/webshims/dev/shims/form-message.js +164 -0
  56. data/vendor/assets/javascripts/webshims/dev/shims/form-native-extend.js +256 -0
  57. data/vendor/assets/javascripts/webshims/dev/shims/form-native-fix.js +261 -0
  58. data/vendor/assets/javascripts/webshims/dev/shims/form-number-date-api.js +384 -0
  59. data/vendor/assets/javascripts/webshims/dev/shims/form-number-date-ui.js +847 -0
  60. data/vendor/assets/javascripts/webshims/dev/shims/form-shim-extend.js +1472 -0
  61. data/vendor/assets/javascripts/webshims/dev/shims/geolocation.js +168 -0
  62. data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-ar.js +32 -0
  63. data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-ch-ZN.js +32 -0
  64. data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-de.txt +33 -0
  65. data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-el.js +32 -0
  66. data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-en.txt +34 -0
  67. data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-es.js +32 -0
  68. data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-fr.js +32 -0
  69. data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-he.js +32 -0
  70. data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-hi.js +32 -0
  71. data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-hu.js +32 -0
  72. data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-it.js +32 -0
  73. data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-ja.js +32 -0
  74. data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-nl.js +32 -0
  75. data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-pt-PT.js +32 -0
  76. data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-ru.js +32 -0
  77. data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-sv.js +32 -0
  78. data/vendor/assets/javascripts/webshims/dev/shims/json-storage.js +308 -0
  79. data/vendor/assets/javascripts/webshims/dev/shims/jwplayer/license.txt +1 -0
  80. data/vendor/assets/javascripts/webshims/dev/shims/jwplayer/player.swf +0 -0
  81. data/vendor/assets/javascripts/webshims/dev/shims/jwplayer/readme.html +87 -0
  82. data/vendor/assets/javascripts/webshims/dev/shims/mediaelement-core.js +534 -0
  83. data/vendor/assets/javascripts/webshims/dev/shims/mediaelement-native-fix.js +99 -0
  84. data/vendor/assets/javascripts/webshims/dev/shims/mediaelement-swf.js +1074 -0
  85. data/vendor/assets/javascripts/webshims/dev/shims/mediaelement-yt.js +543 -0
  86. data/vendor/assets/javascripts/webshims/dev/shims/styles/details-arrows.png +0 -0
  87. data/vendor/assets/javascripts/webshims/dev/shims/styles/forms.png +0 -0
  88. data/vendor/assets/javascripts/webshims/dev/shims/styles/polyfill-loader.gif +0 -0
  89. data/vendor/assets/javascripts/webshims/dev/shims/styles/shim.css +677 -0
  90. data/vendor/assets/javascripts/webshims/dev/shims/swf/jwwebshims.swf +0 -0
  91. data/vendor/assets/javascripts/webshims/dev/shims/swf/localStorage.swf +0 -0
  92. data/vendor/assets/javascripts/webshims/dev/shims/track-ui.js +292 -0
  93. data/vendor/assets/javascripts/webshims/dev/shims/track.js +763 -0
  94. data/vendor/assets/javascripts/webshims/minified/extras/modernizr-custom.js +20 -20
  95. data/vendor/assets/javascripts/webshims/minified/polyfiller.js +29 -29
  96. data/vendor/assets/javascripts/webshims/minified/shims/combos/1.js +37 -33
  97. data/vendor/assets/javascripts/webshims/minified/shims/combos/10.js +83 -76
  98. data/vendor/assets/javascripts/webshims/minified/shims/combos/11.js +44 -42
  99. data/vendor/assets/javascripts/webshims/minified/shims/combos/12.js +43 -38
  100. data/vendor/assets/javascripts/webshims/minified/shims/combos/13.js +27 -25
  101. data/vendor/assets/javascripts/webshims/minified/shims/combos/16.js +60 -55
  102. data/vendor/assets/javascripts/webshims/minified/shims/combos/17.js +68 -64
  103. data/vendor/assets/javascripts/webshims/minified/shims/combos/18.js +60 -59
  104. data/vendor/assets/javascripts/webshims/minified/shims/combos/19.js +66 -64
  105. data/vendor/assets/javascripts/webshims/minified/shims/combos/2.js +74 -69
  106. data/vendor/assets/javascripts/webshims/minified/shims/combos/20.js +46 -43
  107. data/vendor/assets/javascripts/webshims/minified/shims/combos/21.js +52 -47
  108. data/vendor/assets/javascripts/webshims/minified/shims/combos/22.js +61 -57
  109. data/vendor/assets/javascripts/webshims/minified/shims/combos/23.js +68 -60
  110. data/vendor/assets/javascripts/webshims/minified/shims/combos/24.js +82 -77
  111. data/vendor/assets/javascripts/webshims/minified/shims/combos/25.js +58 -0
  112. data/vendor/assets/javascripts/webshims/minified/shims/combos/26.js +80 -0
  113. data/vendor/assets/javascripts/webshims/minified/shims/combos/27.js +103 -0
  114. data/vendor/assets/javascripts/webshims/minified/shims/combos/3.js +96 -91
  115. data/vendor/assets/javascripts/webshims/minified/shims/combos/4.js +30 -31
  116. data/vendor/assets/javascripts/webshims/minified/shims/combos/5.js +37 -39
  117. data/vendor/assets/javascripts/webshims/minified/shims/combos/59.js +59 -61
  118. data/vendor/assets/javascripts/webshims/minified/shims/combos/6.js +31 -29
  119. data/vendor/assets/javascripts/webshims/minified/shims/combos/7.js +38 -37
  120. data/vendor/assets/javascripts/webshims/minified/shims/combos/8.js +38 -33
  121. data/vendor/assets/javascripts/webshims/minified/shims/combos/9.js +68 -63
  122. data/vendor/assets/javascripts/webshims/minified/shims/dom-extend.js +22 -20
  123. data/vendor/assets/javascripts/webshims/minified/shims/es5.js +15 -14
  124. data/vendor/assets/javascripts/webshims/minified/shims/form-core.js +22 -22
  125. data/vendor/assets/javascripts/webshims/minified/shims/form-datalist.js +22 -22
  126. data/vendor/assets/javascripts/webshims/minified/shims/form-message.js +8 -9
  127. data/vendor/assets/javascripts/webshims/minified/shims/form-native-extend.js +7 -8
  128. data/vendor/assets/javascripts/webshims/minified/shims/form-number-date-ui.js +23 -21
  129. data/vendor/assets/javascripts/webshims/minified/shims/form-shim-extend.js +44 -33
  130. data/vendor/assets/javascripts/webshims/minified/shims/i18n/errormessages-sv.js +3 -0
  131. data/vendor/assets/javascripts/webshims/minified/shims/jwplayer/player.swf +0 -0
  132. data/vendor/assets/javascripts/webshims/minified/shims/jwplayer/readme.html +86 -86
  133. data/vendor/assets/javascripts/webshims/minified/shims/mediaelement-core.js +16 -13
  134. data/vendor/assets/javascripts/webshims/minified/shims/mediaelement-swf.js +30 -30
  135. data/vendor/assets/javascripts/webshims/minified/shims/mediaelement-yt.js +14 -0
  136. data/vendor/assets/javascripts/webshims/minified/shims/styles/shim.css +71 -10
  137. data/vendor/assets/javascripts/webshims/minified/shims/track-ui.js +9 -0
  138. data/vendor/assets/javascripts/webshims/minified/shims/track.js +20 -0
  139. metadata +101 -5
  140. data/vendor/assets/javascripts/webshims/minified/shims/form-output.js +0 -5
@@ -1,8 +1,7 @@
1
- jQuery.webshims.register("form-extend",function(e,d,m,j,k,h){m=m.Modernizr;k=m.inputtypes;if(m.formvalidation&&!d.bugs.bustedValidity){var n=d.inputTypes,t={};d.addInputType=function(a,b){n[a]=b};d.addValidityRule=function(a,b){t[a]=b};d.addValidityRule("typeMismatch",function(a,b,c,d){if(""===b)return!1;d=d.typeMismatch;if(!("type"in c))c.type=(a[0].getAttribute("type")||"").toLowerCase();n[c.type]&&n[c.type].mismatch&&(d=n[c.type].mismatch(b,a));return d});var g=h.overrideMessages,o=!k.number||
2
- !k.time||!k.range||g,v="customError,typeMismatch,rangeUnderflow,rangeOverflow,stepMismatch,tooLong,patternMismatch,valueMissing,valid".split(","),h=g?["value","checked"]:["value"],i=[],l=function(a,d){if(a){var c=(a.getAttribute&&a.getAttribute("type")||a.type||"").toLowerCase();if(g||n[c])g&&!d&&"radio"==c&&a.name?e(j.getElementsByName(a.name)).each(function(){e.prop(this,"validity")}):e.prop(a,"validity")}},p={};["input","textarea","select"].forEach(function(a){var b=d.defineNodeNameProperty(a,
3
- "setCustomValidity",{prop:{value:function(c){var c=c+"",g="input"==a?e(this).getNativeElement()[0]:this;b.prop._supvalue.call(g,c);d.bugs.validationMessage&&d.data(g,"customvalidationMessage",c);o&&(d.data(g,"hasCustomError",!!c),l(g))}}});p[a]=b.prop._supvalue});if(o||g)h.push("min"),h.push("max"),h.push("step"),i.push("input");g&&(h.push("required"),h.push("pattern"),i.push("select"),i.push("textarea"));if(o){var q;i.forEach(function(a){var b=d.defineNodeNameProperty(a,"validity",{prop:{get:function(){if(!q){var c=
4
- "input"==a?e(this).getNativeElement()[0]:this,h=b.prop._supget.call(c);if(!h)return h;var f={};v.forEach(function(a){f[a]=h[a]});if(!e.prop(c,"willValidate"))return f;q=!0;var j=e(c),i={type:(c.getAttribute&&c.getAttribute("type")||"").toLowerCase(),nodeName:(c.nodeName||"").toLowerCase()},m=j.val(),l=!!d.data(c,"hasCustomError"),k;q=!1;f.customError=l;if(f.valid&&f.customError)f.valid=!1;else if(!f.valid){var o=!0;e.each(f,function(a,c){if(c)return o=!1});if(o)f.valid=!0}e.each(t,function(b,e){f[b]=
5
- e(j,m,i,f);if(f[b]&&(f.valid||!k)&&(g||n[i.type]&&n[i.type].mismatch))p[a].call(c,d.createValidationMessage(c,b)),f.valid=!1,k=!0});f.valid?(p[a].call(c,""),d.data(c,"hasCustomError",!1)):g&&!k&&!l&&e.each(f,function(b,e){if("valid"!==b&&e)return p[a].call(c,d.createValidationMessage(c,b)),!1});return f}},writeable:!1}})});h.forEach(function(a){d.onNodeNamesPropertyModify(i,a,function(){l(this)})});if(j.addEventListener){var r,s=function(a){if("form"in a.target){var b=a.target.form;clearTimeout(r);
6
- l(a.target);b&&g&&e("input",b).each(function(){"password"==this.type&&l(this)})}};j.addEventListener("change",s,!0);g&&(j.addEventListener("blur",s,!0),j.addEventListener("keydown",function(a){13==a.keyCode&&s(a)},!0));j.addEventListener("input",function(a){clearTimeout(r);r=setTimeout(function(){l(a.target)},290)},!0)}var u=i.join(",");d.addReady(function(a,b){e(u,a).add(b.filter(u)).each(function(){e.prop(this,"validity")})});g&&d.ready("DOM form-message",function(){d.activeLang({register:"form-core",
7
- callback:function(){e("input, select, textarea").getNativeElement().each(function(){if(!d.data(this,"hasCustomError")){var a=this,b=e.prop(a,"validity")||{valid:!0},c;b.valid||(c=(a.nodeName||"").toLowerCase(),e.each(b,function(b,e){if("valid"!==b&&e)return p[c].call(a,d.createValidationMessage(a,b)),!1}))}})}})})}d.defineNodeNameProperty("input","type",{prop:{get:function(){var a=(this.getAttribute("type")||"").toLowerCase();return d.inputTypes[a]?a:this.type}}});m.input.list&&!(e("<datalist><select><option></option></select></datalist>").prop("options")||
8
- []).length&&d.defineNodeNameProperty("datalist","options",{prop:{writeable:!1,get:function(){var a=this.options||[];if(!a.length){var b=e("select",this);if(b[0]&&b[0].options&&b[0].options.length)a=b[0].options}return a}}})}});
1
+ jQuery.webshims.register("form-extend",function(c,b,k,i,j,g){k=k.Modernizr;j=k.inputtypes;if(k.formvalidation&&!b.bugs.bustedValidity){var l=b.inputTypes,t={};b.addInputType=function(a,b){l[a]=b};b.addValidityRule=function(a,b){t[a]=b};b.addValidityRule("typeMismatch",function(a,b,d,c){if(""===b)return!1;c=c.typeMismatch;if(!("type"in d))d.type=(a[0].getAttribute("type")||"").toLowerCase();l[d.type]&&l[d.type].mismatch&&(c=l[d.type].mismatch(b,a));return c});var f=g.overrideMessages,n=!j.number||
2
+ !j.time||!j.range||f,v="customError,typeMismatch,rangeUnderflow,rangeOverflow,stepMismatch,tooLong,patternMismatch,valueMissing,valid".split(","),g=f?["value","checked"]:["value"],h=[],m=function(a,b){if(a){var d=(a.getAttribute&&a.getAttribute("type")||a.type||"").toLowerCase();if(f||l[d])f&&!b&&"radio"==d&&a.name?c(i.getElementsByName(a.name)).each(function(){c.prop(this,"validity")}):c.prop(a,"validity")}},o={};["input","textarea","select"].forEach(function(a){var p=b.defineNodeNameProperty(a,
3
+ "setCustomValidity",{prop:{value:function(d){var d=d+"",f="input"==a?c(this).getNativeElement()[0]:this;p.prop._supvalue.call(f,d);b.bugs.validationMessage&&b.data(f,"customvalidationMessage",d);n&&(b.data(f,"hasCustomError",!!d),m(f))}}});o[a]=p.prop._supvalue});if(n||f)g.push("min"),g.push("max"),g.push("step"),h.push("input");f&&(g.push("required"),g.push("pattern"),h.push("select"),h.push("textarea"));if(n){var q;h.forEach(function(a){var p=b.defineNodeNameProperty(a,"validity",{prop:{get:function(){if(!q){var d=
4
+ "input"==a?c(this).getNativeElement()[0]:this,g=p.prop._supget.call(d);if(!g)return g;var e={};v.forEach(function(a){e[a]=g[a]});if(!c.prop(d,"willValidate"))return e;q=!0;var i=c(d),h={type:(d.getAttribute&&d.getAttribute("type")||"").toLowerCase(),nodeName:(d.nodeName||"").toLowerCase()},m=i.val(),k=!!b.data(d,"hasCustomError"),j;q=!1;e.customError=k;if(e.valid&&e.customError)e.valid=!1;else if(!e.valid){var n=!0;c.each(e,function(a,b){if(b)return n=!1});if(n)e.valid=!0}c.each(t,function(c,g){e[c]=
5
+ g(i,m,h,e);if(e[c]&&(e.valid||!j)&&(f||l[h.type]&&l[h.type].mismatch))o[a].call(d,b.createValidationMessage(d,c)),e.valid=!1,j=!0});e.valid?(o[a].call(d,""),b.data(d,"hasCustomError",!1)):f&&!j&&!k&&c.each(e,function(c,e){if("valid"!==c&&e)return o[a].call(d,b.createValidationMessage(d,c)),!1});return e}},writeable:!1}})});g.forEach(function(a){b.onNodeNamesPropertyModify(h,a,function(){m(this)})});if(i.addEventListener){var r,s=function(a){if("form"in a.target){var b=a.target.form;clearTimeout(r);
6
+ m(a.target);b&&f&&c("input",b).each(function(){"password"==this.type&&m(this)})}};i.addEventListener("change",s,!0);f&&(i.addEventListener("blur",s,!0),i.addEventListener("keydown",function(a){13==a.keyCode&&s(a)},!0));i.addEventListener("input",function(a){clearTimeout(r);r=setTimeout(function(){m(a.target)},290)},!0)}var u=h.join(",");b.addReady(function(a,b){c(u,a).add(b.filter(u)).each(function(){c.prop(this,"validity")})});f&&b.ready("DOM form-message",function(){b.activeLang({register:"form-core",
7
+ callback:function(){c("input, select, textarea").getNativeElement().each(function(){if(!b.data(this,"hasCustomError")){var a=this,f=c.prop(a,"validity")||{valid:!0},d;f.valid||(d=(a.nodeName||"").toLowerCase(),c.each(f,function(c,e){if("valid"!==c&&e)return o[d].call(a,b.createValidationMessage(a,c)),!1}))}})}})})}b.defineNodeNameProperty("input","type",{prop:{get:function(){var a=(this.getAttribute("type")||"").toLowerCase();return b.inputTypes[a]?a:this.type}}})}});
@@ -1,21 +1,23 @@
1
- jQuery.webshims.register("form-number-date-ui",function(c,g,n,l,v,j){var o=g.triggerInlineForm,s=Modernizr.inputtypes,t=function(){var c={"padding-box":"innerWidth","border-box":"outerWidth","content-box":"width"},a=Modernizr.prefixed&&Modernizr.prefixed("boxSizing");return function(b,h){var g,i,j;i="width";a&&(i=c[b.css(a)]||i);g=b[i]();i="width"==i;if(g){var k=parseInt(h.css("marginLeft"),10)||0,q=h.outerWidth();(j=parseInt(b.css("marginRight"),10)||0)&&b.css("marginRight",0);k<=-1*q?(h.css("marginRight",
2
- Math.floor(Math.abs(q+k)+j)),b.css("paddingRight",(parseInt(b.css("paddingRight"),10)||0)+Math.abs(k)),i&&b.css("width",Math.floor(g+k))):(h.css("marginRight",j),b.css("width",Math.floor(g-k-q)))}}}(),p={},w=c([]),r,f=function(d,a){c("input",d).add(a.filter("input")).each(function(){var b=c.prop(this,"type");if(f[b]&&!g.data(this,"shadowData"))f[b](c(this))})},x=function(d,a){if(j.lazyDate){var b=c.data(d[0],"setDateLazyTimer");b&&clearTimeout(b);c.data(d[0],"setDateLazyTimer",setTimeout(function(){d.datepicker("setDate",
3
- a);c.removeData(d[0],"setDateLazyTimer");d=null},0))}else d.datepicker("setDate",a)};if(j.lazyDate===v)try{j.lazyDate=c.browser.msie&&9>g.browserVersion||500>c(n).width()&&500>c(n).height()}catch(z){}var u={tabindex:1,tabIndex:1,title:1,"aria-required":1,"aria-invalid":1};if(!j.copyAttrs)j.copyAttrs={};g.extendUNDEFProp(j.copyAttrs,u);f.common=function(d,a,b){Modernizr.formvalidation&&d.bind("firstinvalid",function(b){(g.fromSubmit||!r)&&d.unbind("invalid.replacedwidgetbubble").bind("invalid.replacedwidgetbubble",
4
- function(c){!b.isInvalidUIPrevented()&&!c.isDefaultPrevented()&&(g.validityAlert.showFor(b.target),b.preventDefault(),c.preventDefault());d.unbind("invalid.replacedwidgetbubble")})});var h,m,i=c("input, span.ui-slider-handle",a),f=d[0].attributes;for(h in j.copyAttrs)if((m=f[h])&&m.specified)u[h]&&i[0]?i.attr(h,m.nodeValue):a[0].setAttribute(h,m.nodeValue);m=d.attr("id");h=j.calculateWidth?{css:{marginRight:d.css("marginRight"),marginLeft:d.css("marginLeft")},outerWidth:d.outerWidth()}:{};h.label=
5
- m?c('label[for="'+m+'"]',d[0].form):w;m=g.getID(h.label);a.addClass(d[0].className);g.addShadowDom(d,a,{data:b||{},shadowFocusElement:c("input.input-datetime-local-date, span.ui-slider-handle",a)[0],shadowChilds:i});d.after(a).hide();d[0].form&&c(d[0].form).bind("reset",function(b){b.originalEvent&&!b.isDefaultPrevented()&&setTimeout(function(){d.prop("value",d.prop("value"))},0)});1==a.length&&!c("*",a)[0]&&(a.attr("aria-labelledby",m),h.label.bind("click",function(){a.focus();return!1}));return h};
6
- Modernizr.formvalidation&&["input","form"].forEach(function(c){var a=g.defineNodeNameProperty(c,"checkValidity",{prop:{value:function(){r=!0;var b=a.prop._supvalue.apply(this,arguments);r=!1;return b}}})});if(!s.date||j.replaceUI){var y=function(d,a,b,h){var m,i,f=function(){k.dpDiv.unbind("mousedown.webshimsmousedownhandler");i=m=!1},k=a.bind("focusin",function(){f();k.dpDiv.unbind("mousedown.webshimsmousedownhandler").bind("mousedown.webshimsmousedownhandler",function(){m=!0})}).bind("focusout blur",
7
- function(b){m&&(i=!0,b.stopImmediatePropagation())}).datepicker(c.extend({onClose:function(){i&&a.not(":focus")?(f(),a.trigger("focusout"),a.triggerHandler("blur")):f()}},p,j.datepicker,d.data("datepicker"))).bind("change",b).data("datepicker");k.dpDiv.addClass("input-date-datepicker-control");h&&g.triggerDomUpdate(h[0]);["disabled","min","max","value","step"].forEach(function(b){var c=d.prop(b);""!==c&&("disabled"!=b||!c)&&d.prop(b,c)});return k};f.date=function(d){if(c.fn.datepicker){var a=c('<input class="input-date" type="text" />'),
8
- b=this.common(d,a,f.date.attrs),h=y(d,a,function(b){f.date.blockAttr=!0;var h;if(j.lazyDate){var g=c.data(a[0],"setDateLazyTimer");g&&(clearTimeout(g),c.removeData(a[0],"setDateLazyTimer"))}try{h=(h=c.datepicker.parseDate(a.datepicker("option","dateFormat"),a.prop("value")))?c.datepicker.formatDate("yy-mm-dd",h):a.prop("value")}catch(k){h=a.prop("value")}d.prop("value",h);f.date.blockAttr=!1;b.stopImmediatePropagation();o(d[0],"input");o(d[0],"change")});b.css&&(a.css(b.css),b.outerWidth&&a.outerWidth(b.outerWidth),
9
- h.trigger[0]&&t(a,h.trigger))}};f.date.attrs={disabled:function(d,a,b){c.prop(a,"disabled",!!b)},min:function(d,a,b){try{b=c.datepicker.parseDate("yy-mm-dd",b)}catch(h){b=!1}b&&c(a).datepicker("option","minDate",b)},max:function(d,a,b){try{b=c.datepicker.parseDate("yy-mm-dd",b)}catch(h){b=!1}b&&c(a).datepicker("option","maxDate",b)},value:function(d,a,b){if(!f.date.blockAttr){try{var h=c.datepicker.parseDate("yy-mm-dd",b)}catch(g){h=!1}h?x(c(a),h):c.prop(a,"value",b)}}}}if(!s.range||j.replaceUI)f.range=
10
- function(d){if(c.fn.slider){var a=c('<span class="input-range"><span class="ui-slider-handle" role="slider" tabindex="0" /></span>'),b=this.common(d,a,f.range.attrs);c("span",a).attr("aria-labelledby",b.label.attr("id"));b.label.bind("click",function(){c("span",a).focus();return!1});b.css&&(a.css(b.css),b.outerWidth&&a.outerWidth(b.outerWidth));a.slider(c.extend(!0,{},j.slider,d.data("slider"))).bind("slide",function(b,c){if(b.originalEvent)f.range.blockAttr=!0,d.prop("value",c.value),f.range.blockAttr=
11
- !1,o(d[0],"input"),o(d[0],"change")});["disabled","min","max","step","value"].forEach(function(b){var a=d.attr(b),g;"value"==b&&!a&&(g=d.getShadowElement())&&(a=(c(g).slider("option","max")-c(g).slider("option","min"))/2);null!=a&&d.attr(b,a)})}},f.range.attrs={disabled:function(d,a,b){b=!!b;c(a).slider("option","disabled",b);c("span",a).attr({"aria-disabled":b+"",tabindex:b?"-1":"0"})},min:function(d,a,b){b=b?1*b||0:0;c(a).slider("option","min",b);c("span",a).attr({"aria-valuemin":b})},max:function(d,
12
- a,b){b=b||0===b?1*b||100:100;c(a).slider("option","max",b);c("span",a).attr({"aria-valuemax":b})},value:function(d,a,b){b=c(d).prop("valueAsNumber");isNaN(b)||(f.range.blockAttr||c(a).slider("option","value",b),c("span",a).attr({"aria-valuenow":b,"aria-valuetext":b}))},step:function(d,a,b){b=b&&c.trim(b)?1*b||1:1;c(a).slider("option","step",b)}};if(!g.bugs.valueAsNumberSet&&(j.replaceUI||!Modernizr.inputtypes.date||!Modernizr.inputtypes.range))n=function(){g.data(this,"hasShadow")&&c.prop(this,"value",
13
- c.prop(this,"value"))},g.onNodeNamesPropertyModify("input","valueAsNumber",n),g.onNodeNamesPropertyModify("input","valueAsDate",n);c.each(["disabled","min","max","value","step"],function(c,a){g.onNodeNamesPropertyModify("input",a,function(b){var c=g.data(this,"shadowData");if(c&&c.data&&c.data[a]&&c.nativeElement===this)c.data[a](this,c.shadowElement,b)})});if(!j.availabeLangs)j.availabeLangs="af ar ar-DZ az bg bs ca cs da de el en-AU en-GB en-NZ eo es et eu fa fi fo fr fr-CH gl he hr hu hy id is it ja ko kz lt lv ml ms nl no pl pt-BR rm ro ru sk sl sq sr sr-SR sv ta th tr uk vi zh-CN zh-HK zh-TW".split(" ");
14
- n=function(){c.datepicker&&(g.activeLang({langObj:c.datepicker.regional,module:"form-number-date-ui",callback:function(d){d=c.extend({},p,d,j.datepicker);c.datepicker.setDefaults(d);d.dateFormat&&j.datepicker.dateFormat!=d.dateFormat&&c("input.hasDatepicker").filter(".input-date, .input-datetime-local-date").datepicker("option","dateFormat",d.dateFormat)}}),c(l).unbind("jquery-uiReady.langchange input-widgetsReady.langchange"))};c(l).bind("jquery-uiReady.langchange input-widgetsReady.langchange",
15
- n);n();(function(){var d=function(){var b={};return function(a){return a in b?b[a]:b[a]=c('<input type="'+a+'" />')[0].type===a}}();if(!d("number")){var a=g.cfg["forms-ext"],b=g.inputTypes,h=function(a,d,e){e=e||{};if(!("type"in e))e.type=c.prop(a,"type");if(!("step"in e))e.step=g.getStep(a,e.type);if(!("valueAsNumber"in e))e.valueAsNumber=b[e.type].asNumber(c.prop(a,"value"));var h="any"==e.step?b[e.type].step*b[e.type].stepScaleFactor:e.step;g.addMinMaxNumberToCache("min",c(a),e);g.addMinMaxNumberToCache("max",
16
- c(a),e);if(isNaN(e.valueAsNumber))e.valueAsNumber=b[e.type].stepBase||0;if("any"!==e.step&&(a=Math.round(1E7*((e.valueAsNumber-(e.minAsnumber||0))%e.step))/1E7)&&Math.abs(a)!=e.step)e.valueAsNumber-=a;a=e.valueAsNumber+h*d;return a=!isNaN(e.minAsNumber)&&a<e.minAsNumber?e.valueAsNumber*d<e.minAsNumber?e.minAsNumber:isNaN(e.maxAsNumber)?e.valueAsNumber:e.maxAsNumber:!isNaN(e.maxAsNumber)&&a>e.maxAsNumber?e.valueAsNumber*d>e.maxAsNumber?e.maxAsNumber:isNaN(e.minAsNumber)?e.valueAsNumber:e.minAsNumber:
17
- Math.round(1E7*a)/1E7};g.modules["form-number-date-ui"].getNextStep=h;var j=function(a,d,e){if(!a.disabled&&!a.readOnly&&!c(e).hasClass("step-controls")&&(c.prop(a,"value",b[d].numberToString(h(a,c(e).hasClass("step-up")?1:-1,{type:d}))),c(a).unbind("blur.stepeventshim"),o(a,"input"),l.activeElement)){if(l.activeElement!==a)try{a.focus()}catch(g){}setTimeout(function(){if(l.activeElement!==a)try{a.focus()}catch(b){}c(a).one("blur.stepeventshim",function(){o(a,"change")})},0)}};if(a.stepArrows){var f=
18
- {set:function(){var a=g.data(this,"step-controls");if(a)a[this.disabled||this.readonly?"addClass":"removeClass"]("disabled-step-control")}};g.onNodeNamesPropertyModify("input","disabled",f);g.onNodeNamesPropertyModify("input","readonly",c.extend({},f))}var n={38:1,40:-1};g.addReady(function(f,i){a.stepArrows&&c("input",f).add(i.filter("input")).each(function(){var e=c.prop(this,"type");if(b[e]&&b[e].asNumber&&a.stepArrows&&!(!0!==a.stepArrows&&!a.stepArrows[e]||d(e)||c(f).hasClass("has-step-controls"))){var f=
19
- this,i=c('<span class="step-controls" unselectable="on"><span class="step-up" /><span class="step-down" /></span>').insertAfter(f).bind("selectstart dragstart",function(){return!1}).bind("mousedown mousepress",function(a){j(f,e,a.target);return!1}).bind("mousepressstart mousepressend",function(a){c(a.target)["mousepressstart"==a.type?"addClass":"removeClass"]("mousepress-ui")}),k=function(a,d){if(!f.disabled&&!f.readOnly)return c.prop(f,"value",b[e].numberToString(h(f,d,{type:e}))),o(f,"input"),!1},
20
- l=c(f).addClass("has-step-controls").attr({readonly:f.readOnly,disabled:f.disabled,autocomplete:"off",role:"spinbutton"}).bind(c.browser.msie?"keydown":"keypress",function(a){if(!f.disabled&&!f.readOnly&&n[a.keyCode])return c.prop(f,"value",b[e].numberToString(h(f,n[a.keyCode],{type:e}))),o(f,"input"),!1});c.fn.mwheelIntent?l.add(i).bind("mwheelIntent",k):l.bind("focus",function(){l.add(i).unbind(".mwhellwebshims").bind("mousewheel.mwhellwebshims",k)}).bind("blur",function(){c(f).add(i).unbind(".mwhellwebshims")});
21
- g.data(f,"step-controls",i);a.calculateWidth&&(t(l,i),i.css("marginTop",(l.outerHeight()-i.outerHeight())/2))}})})}})();g.addReady(function(d,a){c(l).bind("jquery-uiReady.initinputui input-widgetsReady.initinputui",function(){if(c.datepicker||c.fn.slider){if(c.datepicker&&!p.dateFormat)p.dateFormat=c.datepicker._defaults.dateFormat;f(d,a)}c.datepicker&&c.fn.slider?c(l).unbind(".initinputui"):g.modules["input-widgets"].src||g.warn('jQuery UI Widget factory is already included, but not datepicker or slider. configure src of $.webshims.modules["input-widgets"].src')})})});
1
+ jQuery.webshims.register("form-number-date-ui",function(a,f,l,m,z,i){var n=f.triggerInlineForm,l=Modernizr.inputtypes,t=function(){var c={"padding-box":"innerWidth","border-box":"outerWidth","content-box":"width"},d=Modernizr.prefixed&&Modernizr.prefixed("boxSizing");a.browser.msie&&8>f.browserVersion&&(d=!1);return function(b,a){var f,g,i;g="width";d&&(g=c[b.css(d)]||g);f=b[g]();g="width"==g;if(f){var j=parseInt(a.css("marginLeft"),10)||0,r=a.outerWidth();(i=parseInt(b.css("marginRight"),10)||0)&&
2
+ b.css("marginRight",0);j<=-1*r?(a.css("marginRight",Math.floor(Math.abs(r+j-0.1)+i)),b.css("paddingRight",(parseInt(b.css("paddingRight"),10)||0)+Math.abs(j)),g&&b.css("width",Math.floor(f+j))):(a.css("marginRight",i),b.css("width",Math.floor(f-j-r-0.2)))}}}(),p={},w=a([]),s,h=function(c,d){a("input",c).add(d.filter("input")).each(function(){var b=a.prop(this,"type");if(h[b]&&!f.data(this,"shadowData"))h[b](a(this))})},x=function(c,d){if(i.lazyDate){var b=a.data(c[0],"setDateLazyTimer");b&&clearTimeout(b);
3
+ a.data(c[0],"setDateLazyTimer",setTimeout(function(){c.datepicker("setDate",d);a.removeData(c[0],"setDateLazyTimer");c=null},0))}else c.datepicker("setDate",d)},u={tabindex:1,tabIndex:1,title:1,"aria-required":1,"aria-invalid":1};if(!i.copyAttrs)i.copyAttrs={};f.extendUNDEFProp(i.copyAttrs,u);var v=function(a){return i.calculateWidth?{css:{marginRight:a.css("marginRight"),marginLeft:a.css("marginLeft")},outerWidth:a.outerWidth()}:{}};h.common=function(c,d,b){Modernizr.formvalidation&&c.bind("firstinvalid",
4
+ function(b){(f.fromSubmit||!s)&&c.unbind("invalid.replacedwidgetbubble").bind("invalid.replacedwidgetbubble",function(a){!b.isInvalidUIPrevented()&&!a.isDefaultPrevented()&&(f.validityAlert.showFor(b.target),b.preventDefault(),a.preventDefault());c.unbind("invalid.replacedwidgetbubble")})});var k,o,g=a("input, span.ui-slider-handle",d),h=c[0].attributes;for(k in i.copyAttrs)if((o=h[k])&&o.specified)u[k]&&g[0]?g.attr(k,o.nodeValue):d[0].setAttribute(k,o.nodeValue);k=(k=c.attr("id"))?a('label[for="'+
5
+ k+'"]',c[0].form):w;d.addClass(c[0].className);f.addShadowDom(c,d,{data:b||{},shadowFocusElement:a("input.input-datetime-local-date, span.ui-slider-handle",d)[0],shadowChilds:g});c.after(d);c[0].form&&a(c[0].form).bind("reset",function(b){b.originalEvent&&!b.isDefaultPrevented()&&setTimeout(function(){c.prop("value",c.prop("value"))},0)});k[0]&&(d.getShadowFocusElement().attr("aria-labelledby",f.getID(k)),k.bind("click",function(){c.getShadowFocusElement().focus();return!1}))};Modernizr.formvalidation&&
6
+ ["input","form"].forEach(function(a){var d=f.defineNodeNameProperty(a,"checkValidity",{prop:{value:function(){s=!0;var b=d.prop._supvalue.apply(this,arguments);s=!1;return b}}})});if(!l.date||i.replaceUI){var y=function(c,d,b,k){var o,g,h=function(){j.dpDiv.unbind("mousedown.webshimsmousedownhandler");g=o=!1},j=d.bind("focusin",function(){h();j.dpDiv.unbind("mousedown.webshimsmousedownhandler").bind("mousedown.webshimsmousedownhandler",function(){o=!0})}).bind("focusout blur",function(b){o&&(g=!0,
7
+ b.stopImmediatePropagation())}).datepicker(a.extend({onClose:function(){g&&d.not(":focus")?(h(),d.trigger("focusout"),d.triggerHandler("blur")):h()}},p,i.datepicker,c.data("datepicker"))).bind("change",b).data("datepicker");j.dpDiv.addClass("input-date-datepicker-control");k&&f.triggerDomUpdate(k[0]);"disabled,min,max,value,step,data-placeholder".split(",").forEach(function(b){var a=c.attr(b);a&&c.attr(b,a)});return j};h.date=function(c){if(a.fn.datepicker){var d=a('<input class="input-date" type="text" />'),
8
+ b;this.common(c,d,h.date.attrs);b=y(c,d,function(b){h.date.blockAttr=!0;var f;if(i.lazyDate){var g=a.data(d[0],"setDateLazyTimer");g&&(clearTimeout(g),a.removeData(d[0],"setDateLazyTimer"))}try{f=(f=a.datepicker.parseDate(d.datepicker("option","dateFormat"),d.prop("value")))?a.datepicker.formatDate("yy-mm-dd",f):d.prop("value")}catch(l){f=d.prop("value")}c.prop("value",f);h.date.blockAttr=!1;b.stopImmediatePropagation();n(c[0],"input");n(c[0],"change")});a(c).bind("updateshadowdom",function(){if(b.trigger[0]&&
9
+ (c.css({display:""}),c[0].offsetWidth||c[0].offsetHeight)){var a=v(c);a.css&&(d.css(a.css),a.outerWidth&&d.outerWidth(a.outerWidth),t(d,b.trigger))}c.css({display:"none"})}).triggerHandler("updateshadowdom");b.trigger[0]&&setTimeout(function(){f.ready("WINDOWLOAD",function(){a(c).triggerHandler("updateshadowdom")})},9)}};h.date.attrs={disabled:function(c,d,b){a.prop(d,"disabled",!!b)},min:function(c,d,b){try{b=a.datepicker.parseDate("yy-mm-dd",b)}catch(f){b=!1}b&&a(d).datepicker("option","minDate",
10
+ b)},max:function(c,d,b){try{b=a.datepicker.parseDate("yy-mm-dd",b)}catch(f){b=!1}b&&a(d).datepicker("option","maxDate",b)},"data-placeholder":function(c,d,b){c=(b||"").split("-");3==c.length&&(b=a(d).datepicker("option","dateFormat").replace("yy",c[0]).replace("mm",c[1]).replace("dd",c[2]));a.prop(d,"placeholder",b)},value:function(c,d,b){if(!h.date.blockAttr){try{var f=a.datepicker.parseDate("yy-mm-dd",b)}catch(i){f=!1}f?x(a(d),f):a.prop(d,"value",b)}}}}if(!l.range||i.replaceUI)h.range=function(c){if(a.fn.slider){var d=
11
+ a('<span class="input-range"><span class="ui-slider-handle" role="slider" tabindex="0" /></span>');this.common(c,d,h.range.attrs);c.bind("updateshadowdom",function(){c.css({display:""});if(c[0].offsetWidth||c[0].offsetHeight){var b=v(c);b.css&&(d.css(b.css),b.outerWidth&&d.outerWidth(b.outerWidth))}c.css({display:"none"})}).triggerHandler("updateshadowdom");d.slider(a.extend(!0,{},i.slider,c.data("slider"))).bind("slide",function(b,a){if(b.originalEvent)h.range.blockAttr=!0,c.prop("value",a.value),
12
+ h.range.blockAttr=!1,n(c[0],"input"),n(c[0],"change")});["disabled","min","max","step","value"].forEach(function(b){var d=c.prop(b),f;"value"==b&&!d&&(f=c.getShadowElement())&&(d=(a(f).slider("option","max")-a(f).slider("option","min"))/2);null!=d&&c.prop(b,d)})}},h.range.attrs={disabled:function(c,d,b){b=!!b;a(d).slider("option","disabled",b);a("span",d).attr({"aria-disabled":b+"",tabindex:b?"-1":"0"})},min:function(c,d,b){b=b?1*b||0:0;a(d).slider("option","min",b);a("span",d).attr({"aria-valuemin":b})},
13
+ max:function(c,d,b){b=b||0===b?1*b||100:100;a(d).slider("option","max",b);a("span",d).attr({"aria-valuemax":b})},value:function(c,d,b){b=a(c).prop("valueAsNumber");isNaN(b)||(h.range.blockAttr||a(d).slider("option","value",b),a("span",d).attr({"aria-valuenow":b,"aria-valuetext":b}))},step:function(c,d,b){b=b&&a.trim(b)?1*b||1:1;a(d).slider("option","step",b)}};if(!f.bugs.valueAsNumberSet&&(i.replaceUI||!Modernizr.inputtypes.date||!Modernizr.inputtypes.range))l=function(){f.data(this,"hasShadow")&&
14
+ a.prop(this,"value",a.prop(this,"value"))},f.onNodeNamesPropertyModify("input","valueAsNumber",l),f.onNodeNamesPropertyModify("input","valueAsDate",l);a.each("disabled,min,max,value,step,data-placeholder".split(","),function(a,d){f.onNodeNamesPropertyModify("input",d,function(b){var a=f.data(this,"shadowData");if(a&&a.data&&a.data[d]&&a.nativeElement===this)a.data[d](this,a.shadowElement,b)})});if(!i.availabeLangs)i.availabeLangs="af ar ar-DZ az bg bs ca cs da de el en-AU en-GB en-NZ eo es et eu fa fi fo fr fr-CH gl he hr hu hy id is it ja ko kz lt lv ml ms nl no pl pt-BR rm ro ru sk sl sq sr sr-SR sv ta th tr uk vi zh-CN zh-HK zh-TW".split(" ");
15
+ l=function(){a.datepicker&&(f.activeLang({langObj:a.datepicker.regional,module:"form-number-date-ui",callback:function(c){c=a.extend({},p,c,i.datepicker);c.dateFormat&&i.datepicker.dateFormat!=c.dateFormat&&a("input.hasDatepicker").filter(".input-date, .input-datetime-local-date").datepicker("option","dateFormat",c.dateFormat).getNativeElement().filter("[data-placeholder]").attr("data-placeholder",function(a,b){return b});a.datepicker.setDefaults(c)}}),a(m).unbind("jquery-uiReady.langchange input-widgetsReady.langchange"))};
16
+ a(m).bind("jquery-uiReady.langchange input-widgetsReady.langchange",l);l();(function(){var c=function(){var b={};return function(c){return c in b?b[c]:b[c]=a('<input type="'+c+'" />')[0].type===c}}();if(!c("number")){var d=f.cfg["forms-ext"],b=f.inputTypes,h=function(c,d,e){e=e||{};if(!("type"in e))e.type=a.prop(c,"type");if(!("step"in e))e.step=f.getStep(c,e.type);if(!("valueAsNumber"in e))e.valueAsNumber=b[e.type].asNumber(a.prop(c,"value"));var h="any"==e.step?b[e.type].step*b[e.type].stepScaleFactor:
17
+ e.step;f.addMinMaxNumberToCache("min",a(c),e);f.addMinMaxNumberToCache("max",a(c),e);if(isNaN(e.valueAsNumber))e.valueAsNumber=b[e.type].stepBase||0;if("any"!==e.step&&(c=Math.round(1E7*((e.valueAsNumber-(e.minAsnumber||0))%e.step))/1E7)&&Math.abs(c)!=e.step)e.valueAsNumber-=c;c=e.valueAsNumber+h*d;return c=!isNaN(e.minAsNumber)&&c<e.minAsNumber?e.valueAsNumber*d<e.minAsNumber?e.minAsNumber:isNaN(e.maxAsNumber)?e.valueAsNumber:e.maxAsNumber:!isNaN(e.maxAsNumber)&&c>e.maxAsNumber?e.valueAsNumber*d>
18
+ e.maxAsNumber?e.maxAsNumber:isNaN(e.minAsNumber)?e.valueAsNumber:e.minAsNumber:Math.round(1E7*c)/1E7};f.modules["form-number-date-ui"].getNextStep=h;var i=function(c,d,e){if(!c.disabled&&!c.readOnly&&!a(e).hasClass("step-controls")&&(a.prop(c,"value",b[d].numberToString(h(c,a(e).hasClass("step-up")?1:-1,{type:d}))),a(c).unbind("blur.stepeventshim"),n(c,"input"),m.activeElement)){if(m.activeElement!==c)try{c.focus()}catch(f){}setTimeout(function(){if(m.activeElement!==c)try{c.focus()}catch(b){}a(c).one("blur.stepeventshim",
19
+ function(){n(c,"change")})},0)}};if(d.stepArrows){var g={set:function(){var a=f.data(this,"step-controls");if(a)a[this.disabled||this.readonly?"addClass":"removeClass"]("disabled-step-control")}};f.onNodeNamesPropertyModify("input","disabled",g);f.onNodeNamesPropertyModify("input","readonly",a.extend({},g))}var l={38:1,40:-1};f.addReady(function(g,m){d.stepArrows&&a("input",g).add(m.filter("input")).each(function(){var e=a.prop(this,"type");if(b[e]&&b[e].asNumber&&d.stepArrows&&!(!0!==d.stepArrows&&
20
+ !d.stepArrows[e]||c(e)||a(g).hasClass("has-step-controls"))){var g=this,j=a('<span class="step-controls" unselectable="on"><span class="step-up" /><span class="step-down" /></span>').insertAfter(g).bind("selectstart dragstart",function(){return!1}).bind("mousedown mousepress",function(a){i(g,e,a.target);return!1}).bind("mousepressstart mousepressend",function(b){a(b.target)["mousepressstart"==b.type?"addClass":"removeClass"]("mousepress-ui")}),m=function(c,d){if(!g.disabled&&!g.readOnly&&d)return a.prop(g,
21
+ "value",b[e].numberToString(h(g,d,{type:e}))),n(g,"input"),!1},q=a(g).addClass("has-step-controls").attr({readonly:g.readOnly,disabled:g.disabled,autocomplete:"off",role:"spinbutton"}).bind(a.browser.msie?"keydown":"keypress",function(c){if(!g.disabled&&!g.readOnly&&l[c.keyCode])return a.prop(g,"value",b[e].numberToString(h(g,l[c.keyCode],{type:e}))),n(g,"input"),!1});"number"==e&&q.bind("keypress",function(){return function(a){var b=String.fromCharCode(null==a.charCode?a.keyCode:a.charCode);return a.ctrlKey||
22
+ a.metaKey||" ">b||-1<"0123456789.".indexOf(b)}}());a.fn.mwheelIntent?q.add(j).bind("mwheelIntent",m):a.fn.mousewheel&&q.bind("focus",function(){q.add(j).unbind(".mwhellwebshims").bind("mousewheel.mwhellwebshims",m)}).bind("blur",function(){a(g).add(j).unbind(".mwhellwebshims")});f.data(g,"step-controls",j);if(d.calculateWidth){var p;q.bind("updateshadowdom",function(){if(!p&&(g.offsetWidth||g.offsetHeight))p=!0,t(q,j),j.css("marginTop",(q.outerHeight()-j.outerHeight())/2)}).triggerHandler("updateshadowdom")}}})})}})();
23
+ f.addReady(function(c,d){a(m).bind("jquery-uiReady.initinputui input-widgetsReady.initinputui",function(){if(a.datepicker||a.fn.slider){if(a.datepicker&&!p.dateFormat)p.dateFormat=a.datepicker._defaults.dateFormat;h(c,d)}a.datepicker&&a.fn.slider?a(m).unbind(".initinputui"):f.modules["input-widgets"].src||f.warn('jQuery UI Widget factory is already included, but not datepicker or slider. configure src of $.webshims.modules["input-widgets"].src')})})});
@@ -1,33 +1,44 @@
1
- (!Modernizr.formvalidation||jQuery.webshims.bugs.bustedValidity)&&jQuery.webshims.register("form-extend",function(a,d,z,n){d.inputTypes=d.inputTypes||{};var x=d.cfg.forms,r,t=d.inputTypes,A={radio:1,checkbox:1};d.addInputType=function(b,a){t[b]=a};var y={customError:!1,typeMismatch:!1,rangeUnderflow:!1,rangeOverflow:!1,stepMismatch:!1,tooLong:!1,patternMismatch:!1,valueMissing:!1,valid:!0},v={valueMissing:function(b,f,c){if(!b.prop("required"))return!1;var i=!1;if(!("type"in c))c.type=(b[0].getAttribute("type")||
2
- b[0].type||"").toLowerCase();if("select"==c.nodeName){if(f=!f)if(!(f=0>b[0].selectedIndex))b=b[0],f="select-one"==b.type&&2>b.size?!!a("> option:first-child",b).prop("selected"):!1;b=f}else b=A[c.type]?"checkbox"==c.type?!b.is(":checked"):!d.modules["form-core"].getGroupElements(b).filter(":checked")[0]:!f;return b},tooLong:function(){return!1},typeMismatch:function(b,a,c){if(""===a||"select"==c.nodeName)return!1;var d=!1;if(!("type"in c))c.type=(b[0].getAttribute("type")||b[0].type||"").toLowerCase();
3
- if(t[c.type]&&t[c.type].mismatch)d=t[c.type].mismatch(a,b);else if("validity"in b[0])d=b[0].validity.typeMismatch;return d},patternMismatch:function(b,a,c){if(""===a||"select"==c.nodeName)return!1;b=b.attr("pattern");if(!b)return!1;try{b=RegExp("^(?:"+b+")$")}catch(i){d.error('invalid pattern value: "'+b+'" | '+i),b=!1}return!b?!1:!b.test(a)}};d.addValidityRule=function(b,a){v[b]=a};a.event.special.invalid={add:function(){a.event.special.invalid.setup.call(this.form||this)},setup:function(){var b=
4
- this.form||this;if(!a.data(b,"invalidEventShim")&&(a(b).data("invalidEventShim",!0).bind("submit",a.event.special.invalid.handler),d.moveToFirstEvent(b,"submit"),d.bugs.bustedValidity&&a.nodeName(b,"form"))){var f=b.getAttribute("novalidate");b.setAttribute("novalidate","novalidate");d.data(b,"bustedNoValidate",null==f?null:f)}},teardown:a.noop,handler:function(b){if(!("submit"!=b.type||b.testedValidity||!b.originalEvent||!a.nodeName(b.target,"form")||a.prop(b.target,"noValidate"))){r=!0;b.testedValidity=
5
- !0;if(!a(b.target).checkValidity())return b.stopImmediatePropagation(),r=!1;r=!1}}};a(n).bind("invalid",a.noop);a.event.special.submit=a.event.special.submit||{setup:function(){return!1}};var B=a.event.special.submit.setup;a.extend(a.event.special.submit,{setup:function(){a.nodeName(this,"form")?a(this).bind("invalid",a.noop):a("form",this).bind("invalid",a.noop);return B.apply(this,arguments)}});d.addInputType("email",{mismatch:function(){var a=x.emailReg||/^[a-zA-Z0-9.!#$%&'*+-\/=?\^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/;
6
- return function(f){return!a.test(f)}}()});d.addInputType("url",{mismatch:function(){var a=x.urlReg||/^([a-z]([a-z]|\d|\+|-|\.)*):(\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?((\[(|(v[\da-f]{1,}\.(([a-z]|\d|-|\.|_|~)|[!\$&'\(\)\*\+,;=]|:)+))\])|((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=])*)(:\d*)?)(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*|(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)|((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)|((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)){0})(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i;
7
- return function(f){return!a.test(f)}}()});d.defineNodeNameProperty("input","type",{prop:{get:function(){var a=(this.getAttribute("type")||"").toLowerCase();return d.inputTypes[a]?a:this.type}}});d.defineNodeNamesProperties(["button","fieldset","output"],{checkValidity:{value:function(){return!0}},willValidate:{value:!1},setCustomValidity:{value:a.noop},validity:{writeable:!1,get:function(){return a.extend({},y)}}},"prop");var o=function(b){var f,c=a.prop(b,"validity");if(c)a.data(b,"cachedValidity",
8
- c);else return!0;if(!c.valid){f=a.Event("invalid");var i=a(b).trigger(f);if(r&&!o.unhandledInvalids&&!f.isDefaultPrevented())d.validityAlert.showFor(i),o.unhandledInvalids=!0}a.removeData(b,"cachedValidity");return c.valid};d.defineNodeNameProperty("form","checkValidity",{prop:{value:function(){var b=!0,f=a("input,textarea,select",this).filter(function(){var a=d.data(this,"shadowData");return!a||!a.nativeElement||a.nativeElement===this});o.unhandledInvalids=!1;for(var c=0,i=f.length;c<i;c++)o(f[c])||
9
- (b=!1);return b}}});d.defineNodeNamesProperties(["input","textarea","select"],{checkValidity:{value:function(){o.unhandledInvalids=!1;return o(a(this).getNativeElement()[0])}},setCustomValidity:{value:function(b){a.removeData(this,"cachedValidity");d.data(this,"customvalidationMessage",""+b)}},willValidate:{writeable:!1,get:function(){var b={button:1,reset:1,hidden:1,image:1};return function(){var f=a(this).getNativeElement()[0];return!(f.disabled||f.readOnly||b[f.type])}}()},validity:{writeable:!1,
10
- get:function(){var b=a(this).getNativeElement(),f=b[0],c=a.data(f,"cachedValidity");if(c)return c;c=a.extend({},y);if(!a.prop(f,"willValidate")||"submit"==f.type)return c;var i=b.val(),j={nodeName:f.nodeName.toLowerCase()};c.customError=!!d.data(f,"customvalidationMessage");if(c.customError)c.valid=!1;a.each(v,function(a,f){if(f(b,i,j))c[a]=!0,c.valid=!1});a(this).getShadowFocusElement().attr("aria-invalid",c.valid?"false":"true");f=b=null;return c}}},"prop");d.defineNodeNamesBooleanProperty(["input",
11
- "textarea","select"],"required",{set:function(b){a(this).getShadowFocusElement().attr("aria-required",!!b+"")},initAttr:!a.browser.msie||7<d.browserVersion});d.reflectProperties(["input"],["pattern"]);if(!("maxLength"in n.createElement("textarea"))){var p=function(){var b,f=0,c=a([]),d=1E9,j=function(){var a=c.prop("value"),b=a.length;b>f&&b>d&&(b=Math.max(f,d),c.prop("value",a.substr(0,b)));f=b},u=function(){clearTimeout(b);c.unbind(".maxlengthconstraint")};return function(s,l){u();if(-1<l)d=l,f=
12
- a.prop(s,"value").length,c=a(s),c.bind("keydown.maxlengthconstraint keypress.maxlengthconstraint paste.maxlengthconstraint cut.maxlengthconstraint",function(){setTimeout(j,0)}),c.bind("keyup.maxlengthconstraint",j),c.bind("blur.maxlengthconstraint",u),b=setInterval(j,200)}}();p.update=function(b,f){a(b).is(":focus")&&(null==f&&(f=a.prop(b,"maxlength")),p(e.target,f))};a(n).bind("focusin",function(b){var f;"TEXTAREA"==b.target.nodeName&&-1<(f=a.prop(b.target,"maxlength"))&&p(b.target,f)});d.defineNodeNameProperty("textarea",
13
- "maxlength",{attr:{set:function(a){this.setAttribute("maxlength",""+a);p.update(this)},get:function(){var a=this.getAttribute("maxlength");return null==a?void 0:a}},prop:{set:function(a){if("number"==typeof a||a&&a==1*a){if(0>a)throw"INDEX_SIZE_ERR";a=parseInt(a,10);this.setAttribute("maxlength",a);p.update(this,a)}else this.setAttribute("maxlength","0"),p.update(this,0)},get:function(){var a=this.getAttribute("maxlength");return("number"==typeof a||a&&a==1*a)&&0<=a?parseInt(a,10):-1}}});d.defineNodeNameProperty("textarea",
14
- "maxLength",{prop:{set:function(b){a.prop(this,"maxlength",b)},get:function(){return a.prop(this,"maxlength")}}})}var C={submit:1,button:1,image:1},g={};[{name:"enctype",limitedTo:{"application/x-www-form-urlencoded":1,"multipart/form-data":1,"text/plain":1},defaultProp:"application/x-www-form-urlencoded",proptype:"enum"},{name:"method",limitedTo:{get:1,post:1},defaultProp:"get",proptype:"enum"},{name:"action",proptype:"url"},{name:"target"},{name:"novalidate",propName:"noValidate",proptype:"boolean"}].forEach(function(b){var f=
15
- "form"+(b.propName||b.name).replace(/^[a-z]/,function(a){return a.toUpperCase()}),c="form"+b.name,d=b.name,j="click.webshimssubmittermutate"+d,u=function(){if("form"in this&&C[this.type]){var l=a.prop(this,"form");if(l){var m=a.attr(this,c);if(null!=m&&(!b.limitedTo||m.toLowerCase()===a.prop(this,f))){var h=a.attr(l,d);a.attr(l,d,m);setTimeout(function(){if(null!=h)a.attr(l,d,h);else try{a(l).removeAttr(d)}catch(b){l.removeAttribute(d)}},9)}}}};switch(b.proptype){case "url":var s=n.createElement("form");
16
- g[f]={prop:{set:function(b){a.attr(this,c,b)},get:function(){var b=a.attr(this,c);if(null==b)return"";s.setAttribute("action",b);return s.action}}};break;case "boolean":g[f]={prop:{set:function(b){b?a.attr(this,"formnovalidate","formnovalidate"):a(this).removeAttr("formnovalidate")},get:function(){return null!=a.attr(this,"formnovalidate")}}};break;case "enum":g[f]={prop:{set:function(b){a.attr(this,c,b)},get:function(){var d=a.attr(this,c);return!d||(d=d.toLowerCase())&&!b.limitedTo[d]?b.defaultProp:
17
- d}}};break;default:g[f]={prop:{set:function(b){a.attr(this,c,b)},get:function(){var b=a.attr(this,c);return null!=b?b:""}}}}g[c]||(g[c]={});g[c].attr={set:function(b){g[c].attr._supset.call(this,b);a(this).unbind(j).bind(j,u)},get:function(){return g[c].attr._supget.call(this)}};g[c].initAttr=!0;g[c].removeAttr={value:function(){a(this).unbind(j);g[c].removeAttr._supvalue.call(this)}}});d.defineNodeNamesProperties(["input","button"],g);!a.support.getSetAttribute&&null==a("<form novalidate></form>").attr("novalidate")?
18
- d.defineNodeNameProperty("form","novalidate",{attr:{set:function(a){this.setAttribute("novalidate",""+a)},get:function(){var a=this.getAttribute("novalidate");return null==a?void 0:a}}}):d.bugs.bustedValidity&&(d.defineNodeNameProperty("form","novalidate",{attr:{set:function(a){d.data(this,"bustedNoValidate",""+a)},get:function(){var a=d.data(this,"bustedNoValidate");return null==a?void 0:a}},removeAttr:{value:function(){d.data(this,"bustedNoValidate",null)}}}),a.each(["rangeUnderflow","rangeOverflow",
19
- "stepMismatch"],function(a,d){v[d]=function(a){return(a[0].validity||{})[d]||!1}}));d.defineNodeNameProperty("form","noValidate",{prop:{set:function(b){b?a.attr(this,"novalidate","novalidate"):a(this).removeAttr("novalidate")},get:function(){return null!=a.attr(this,"novalidate")}}});a.browser.webkit&&Modernizr.inputtypes.date&&function(){var b={updateInput:1,input:1},f={date:1,time:1,"datetime-local":1},c={focusout:1,blur:1},i={updateInput:1,change:1},j=function(a){var d,f=!0,m=a.prop("value"),h=
20
- m,q=function(d){if(a){var c=a.prop("value");c!==m&&(m=c,(!d||!b[d.type])&&a.trigger("input"));d&&i[d.type]&&(h=c);!f&&c!==h&&a.trigger("change")}},k,w=function(b){clearInterval(d);setTimeout(function(){b&&c[b.type]&&(f=!1);a&&(a.unbind("focusout blur",w).unbind("input change updateInput",q),q());a=null},1)};clearInterval(d);d=setInterval(q,160);clearTimeout(k);k=setTimeout(q,9);a.unbind("focusout blur",w).unbind("input change updateInput",q);a.bind("focusout blur",w).bind("input updateInput change",
21
- q)};if(a.event.customEvent)a.event.customEvent.updateInput=!0;(function(){var b=function(b){var d=1,c,h;if("date"==b.type&&(r||!a(b).is(":focus")))if((h=b.value)&&10>h.length&&(h=h.split("-"))&&3==h.length){for(;3>d;d++)if(1==h[d].length)h[d]="0"+h[d];else if(2!=h[d].length){c=!0;break}if(!c)return h=h.join("-"),a.prop(b,"value",h),h}},c,f,m,h;c=d.defineNodeNameProperty("input","checkValidity",{prop:{value:function(){b(this);return c.prop._supvalue.apply(this,arguments)}}});f=d.defineNodeNameProperty("form",
22
- "checkValidity",{prop:{value:function(){a("input",this).each(function(){b(this)});return f.prop._supvalue.apply(this,arguments)}}});m=d.defineNodeNameProperty("input","value",{prop:{set:function(){return m.prop._supset.apply(this,arguments)},get:function(){return b(this)||m.prop._supget.apply(this,arguments)}}});h=d.defineNodeNameProperty("input","validity",{prop:{writeable:!1,get:function(){b(this);return h.prop._supget.apply(this,arguments)}}});a(n).bind("change",function(a){isChangeSubmit=!0;b(a.target);
23
- isChangeSubmit=!1})})();a(n).bind("focusin",function(b){b.target&&f[b.target.type]&&!b.target.readOnly&&!b.target.disabled&&j(a(b.target))})}();d.addReady(function(b,d){var c;a("form",b).add(d.filter("form")).bind("invalid",a.noop);try{if(b==n&&!("form"in(n.activeElement||{})))(c=a("input[autofocus], select[autofocus], textarea[autofocus]",b).eq(0).getShadowFocusElement()[0])&&c.offsetHeight&&c.offsetWidth&&c.focus()}catch(i){}});(function(){Modernizr.textareaPlaceholder=!!("placeholder"in a("<textarea />")[0]);
24
- var b=a.browser.webkit&&Modernizr.textareaPlaceholder;if(!Modernizr.input.placeholder||!Modernizr.textareaPlaceholder||b){var f="over"==d.cfg.forms.placeholderType,c=["textarea"];Modernizr.input.placeholder||c.push("input");var i=function(a){if(a.setSelectionRange)return a.setSelectionRange(0,0),!0;if(a)return a=a.createTextRange(),a.collapse(!0),a.moveEnd("character",0),a.moveStart("character",0),a.select(),!0},j=function(b,d,c,k){!1===c&&(c=a.prop(b,"value"));if(!f&&"password"!=b.type){if(!c&&k&&
25
- i(b)){var g;a(b).unbind(".placeholderremove").bind("keydown.placeholderremove keypress.placeholderremove paste.placeholderremove input.placeholderremove",function(c){if(!c||!(17==c.keyCode||16==c.keyCode))b.value=a.prop(b,"value"),d.box.removeClass("placeholder-visible"),clearTimeout(g),a(b).unbind(".placeholderremove")}).bind("mousedown.placeholderremove drag.placeholderremove select.placeholderremove",function(){i(b);clearTimeout(g);g=setTimeout(function(){i(b)},9)}).bind("blur.placeholderremove",
26
- function(){clearTimeout(g);a(b).unbind(".placeholderremove")});return}b.value=c}else if(!c&&k){a(b).unbind(".placeholderremove").bind("keydown.placeholderremove keypress.placeholderremove paste.placeholderremove input.placeholderremove",function(c){if(!c||!(17==c.keyCode||16==c.keyCode))d.box.removeClass("placeholder-visible"),a(b).unbind(".placeholderremove")}).bind("blur.placeholderremove",function(){a(b).unbind(".placeholderremove")});return}d.box.removeClass("placeholder-visible")},g=function(b,
27
- d,c,k,g){if(!k&&(k=a.data(b,"placeHolder"),!k))return;a(b).unbind(".placeholderremove");if("focus"==g||!g&&a(b).is(":focus"))("password"==b.type||f||a(b).hasClass("placeholder-visible"))&&j(b,k,"",!0);else if(!1===d&&(d=a.prop(b,"value")),d)j(b,k,d);else if(!1===c&&(c=a.attr(b,"placeholder")||""),c&&!d){d=k;!1===c&&(c=a.prop(b,"placeholder"));if(!f&&"password"!=b.type)b.value=c;d.box.addClass("placeholder-visible")}else j(b,k,d)},n=function(b){var b=a(b),d=b.prop("id"),c=!(!b.prop("title")&&!b.attr("aria-labelledby"));
28
- !c&&d&&(c=!!a('label[for="'+d+'"]',b[0].form)[0]);c||(d||(d=a.webshims.getID(b)),c=!!a("label #"+d)[0]);return a(c?'<span class="placeholder-text"></span>':'<label for="'+d+'" class="placeholder-text"></label>')},l=function(){var b={text:1,search:1,url:1,email:1,password:1,tel:1};return{create:function(b){var d=a.data(b,"placeHolder");if(d)return d;d=a.data(b,"placeHolder",{});a(b).bind("focus.placeholder blur.placeholder",function(a){g(this,!1,!1,d,a.type);d.box["focus"==a.type?"addClass":"removeClass"]("placeholder-focused")});
29
- b.form&&a(b.form).bind("reset.placeholder",function(a){setTimeout(function(){g(b,!1,!1,d,a.type)},0)});if("password"==b.type||f){d.text=n(b);d.box=a(b).wrap('<span class="placeholder-box placeholder-box-'+(b.nodeName||"").toLowerCase()+'" />').parent();d.text.insertAfter(b).bind("mousedown.placeholder",function(){g(this,!1,!1,d,"focus");try{setTimeout(function(){b.focus()},0)}catch(a){}return!1});a.each(["Left","Top"],function(c,f){var g=(parseInt(a.css(b,"padding"+f),10)||0)+Math.max(parseInt(a.css(b,
30
- "margin"+f),10)||0,0)+(parseInt(a.css(b,"border"+f+"Width"),10)||0);d.text.css("padding"+f,g)});a.css(b,"lineHeight");var c={width:a(b).width(),height:a(b).height()},i=a.css(b,"float");a.each(["lineHeight","fontSize","fontFamily","fontWeight"],function(c,f){var g=a.css(b,f);d.text.css(f)!=g&&d.text.css(f,g)});c.width&&c.height&&d.text.css(c);"none"!==i&&d.box.addClass("placeholder-box-"+i)}else c=function(c){a(b).hasClass("placeholder-visible")&&(j(b,d,""),c&&"submit"==c.type&&setTimeout(function(){c.isDefaultPrevented()&&
31
- g(b,!1,!1,d)},9))},a(z).bind("beforeunload",c),d.box=a(b),b.form&&a(b.form).submit(c);return d},update:function(c,f){if(!b[a.prop(c,"type")]&&!a.nodeName(c,"textarea"))d.warn("placeholder not allowed on type: "+a.prop(c,"type"));else{var k=l.create(c);k.text&&k.text.text(f);g(c,!1,f,k)}}}}();a.webshims.publicMethods={pHolder:l};c.forEach(function(a){d.defineNodeNameProperty(a,"placeholder",{attr:{set:function(a){b?(d.data(this,"textareaPlaceholder",a),this.placeholder=""):d.contentAttr(this,"placeholder",
32
- a);l.update(this,a)},get:function(){return(b?d.data(this,"textareaPlaceholder"):"")||d.contentAttr(this,"placeholder")}},reflect:!0,initAttr:!0})});c.forEach(function(c){var f={},i;["attr","prop"].forEach(function(c){f[c]={set:function(f){var h;b&&(h=d.data(this,"textareaPlaceholder"));h||(h=d.contentAttr(this,"placeholder"));a.removeData(this,"cachedValidity");var j=i[c]._supset.call(this,f);h&&"value"in this&&g(this,f,h);return j},get:function(){return a(this).hasClass("placeholder-visible")?"":
33
- i[c]._supget.call(this)}}});i=d.defineNodeNameProperty(c,"value",f)})}})()});
1
+ (!Modernizr.formvalidation||jQuery.webshims.bugs.bustedValidity)&&jQuery.webshims.register("form-extend",function(a,c,v,j){c.inputTypes=c.inputTypes||{};var w=c.cfg.forms,q,r=c.inputTypes,B={radio:1,checkbox:1};c.addInputType=function(a,d){r[a]=d};var x={customError:!1,typeMismatch:!1,rangeUnderflow:!1,rangeOverflow:!1,stepMismatch:!1,tooLong:!1,patternMismatch:!1,valueMissing:!1,valid:!0},s={valueMissing:function(b,d,f){if(!b.prop("required"))return!1;var h=!1;if(!("type"in f))f.type=(b[0].getAttribute("type")||
2
+ b[0].type||"").toLowerCase();if("select"==f.nodeName){if(d=!d)if(!(d=0>b[0].selectedIndex))b=b[0],d="select-one"==b.type&&2>b.size?!!a("> option:first-child",b).prop("selected"):!1;b=d}else b=B[f.type]?"checkbox"==f.type?!b.is(":checked"):!c.modules["form-core"].getGroupElements(b).filter(":checked")[0]:!d;return b},tooLong:function(){return!1},typeMismatch:function(a,d,f){if(""===d||"select"==f.nodeName)return!1;var c=!1;if(!("type"in f))f.type=(a[0].getAttribute("type")||a[0].type||"").toLowerCase();
3
+ if(r[f.type]&&r[f.type].mismatch)c=r[f.type].mismatch(d,a);else if("validity"in a[0])c=a[0].validity.typeMismatch;return c},patternMismatch:function(a,d,f){if(""===d||"select"==f.nodeName)return!1;a=a.attr("pattern");if(!a)return!1;try{a=RegExp("^(?:"+a+")$")}catch(h){c.error('invalid pattern value: "'+a+'" | '+h),a=!1}return!a?!1:!a.test(d)}};c.addValidityRule=function(a,d){s[a]=d};a.event.special.invalid={add:function(){a.event.special.invalid.setup.call(this.form||this)},setup:function(){var b=
4
+ this.form||this;if(!a.data(b,"invalidEventShim")&&(a(b).data("invalidEventShim",!0).bind("submit",a.event.special.invalid.handler),c.moveToFirstEvent(b,"submit"),c.bugs.bustedValidity&&a.nodeName(b,"form"))){var d=b.getAttribute("novalidate");b.setAttribute("novalidate","novalidate");c.data(b,"bustedNoValidate",null==d?null:d)}},teardown:a.noop,handler:function(b){if(!("submit"!=b.type||b.testedValidity||!b.originalEvent||!a.nodeName(b.target,"form")||a.prop(b.target,"noValidate"))){q=!0;b.testedValidity=
5
+ !0;if(!a(b.target).checkValidity())return b.stopImmediatePropagation(),q=!1;q=!1}}};var y=function(b){if(!a.support.submitBubbles&&b&&"object"==typeof b&&!b._submit_attached)a.event.add(b,"submit._submit",function(a){a._submit_bubble=!0}),b._submit_attached=!0};if(!a.support.submitBubbles&&a.event.special.submit)a.event.special.submit.setup=function(){if(a.nodeName(this,"form"))return!1;a.event.add(this,"click._submit keypress._submit",function(b){b=b.target;b=a.nodeName(b,"input")||a.nodeName(b,
6
+ "button")?a.prop(b,"form"):void 0;y(b)})};a.event.special.submit=a.event.special.submit||{setup:function(){return!1}};var C=a.event.special.submit.setup;a.extend(a.event.special.submit,{setup:function(){a.nodeName(this,"form")?a(this).bind("invalid",a.noop):a("form",this).bind("invalid",a.noop);return C.apply(this,arguments)}});a(v).bind("invalid",a.noop);c.addInputType("email",{mismatch:function(){var a=w.emailReg||/^[a-zA-Z0-9.!#$%&'*+-\/=?\^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/;return function(d){return!a.test(d)}}()});
7
+ c.addInputType("url",{mismatch:function(){var a=w.urlReg||/^([a-z]([a-z]|\d|\+|-|\.)*):(\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?((\[(|(v[\da-f]{1,}\.(([a-z]|\d|-|\.|_|~)|[!\$&'\(\)\*\+,;=]|:)+))\])|((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=])*)(:\d*)?)(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*|(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)|((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)|((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)){0})(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i;
8
+ return function(d){return!a.test(d)}}()});c.defineNodeNameProperty("input","type",{prop:{get:function(){var a=(this.getAttribute("type")||"").toLowerCase();return c.inputTypes[a]?a:this.type}}});c.defineNodeNamesProperties(["button","fieldset","output"],{checkValidity:{value:function(){return!0}},willValidate:{value:!1},setCustomValidity:{value:a.noop},validity:{writeable:!1,get:function(){return a.extend({},x)}}},"prop");var o=function(b){var d,f=a.prop(b,"validity");if(f)a.data(b,"cachedValidity",
9
+ f);else return!0;if(!f.valid){d=a.Event("invalid");var h=a(b).trigger(d);if(q&&!o.unhandledInvalids&&!d.isDefaultPrevented())c.validityAlert.showFor(h),o.unhandledInvalids=!0}a.removeData(b,"cachedValidity");return f.valid},D=/^(?:select|textarea|input)/i;c.defineNodeNameProperty("form","checkValidity",{prop:{value:function(){var b=!0,d=a(a.prop(this,"elements")).filter(function(){if(!D.test(this.nodeName))return!1;var a=c.data(this,"shadowData");return!a||!a.nativeElement||a.nativeElement===this});
10
+ o.unhandledInvalids=!1;for(var f=0,h=d.length;f<h;f++)o(d[f])||(b=!1);return b}}});c.defineNodeNamesProperties(["input","textarea","select"],{checkValidity:{value:function(){o.unhandledInvalids=!1;return o(a(this).getNativeElement()[0])}},setCustomValidity:{value:function(b){a.removeData(this,"cachedValidity");c.data(this,"customvalidationMessage",""+b)}},willValidate:{writeable:!1,get:function(){var b={button:1,reset:1,hidden:1,image:1};return function(){var d=a(this).getNativeElement()[0];return!(d.disabled||
11
+ d.readOnly||b[d.type])}}()},validity:{writeable:!1,get:function(){var b=a(this).getNativeElement(),d=b[0],f=a.data(d,"cachedValidity");if(f)return f;f=a.extend({},x);if(!a.prop(d,"willValidate")||"submit"==d.type)return f;var h=b.val(),g={nodeName:d.nodeName.toLowerCase()};f.customError=!!c.data(d,"customvalidationMessage");if(f.customError)f.valid=!1;a.each(s,function(a,d){if(d(b,h,g))f[a]=!0,f.valid=!1});a(this).getShadowFocusElement().attr("aria-invalid",f.valid?"false":"true");d=b=null;return f}}},
12
+ "prop");c.defineNodeNamesBooleanProperty(["input","textarea","select"],"required",{set:function(b){a(this).getShadowFocusElement().attr("aria-required",!!b+"")},initAttr:!a.browser.msie||7<c.browserVersion});c.reflectProperties(["input"],["pattern"]);if(!("maxLength"in j.createElement("textarea"))){var p=function(){var b,d=0,f=a([]),c=1E9,g=function(){var a=f.prop("value"),b=a.length;b>d&&b>c&&(b=Math.max(d,c),f.prop("value",a.substr(0,b)));d=b},i=function(){clearTimeout(b);f.unbind(".maxlengthconstraint")};
13
+ return function(m,z){i();if(-1<z)c=z,d=a.prop(m,"value").length,f=a(m),f.bind("keydown.maxlengthconstraint keypress.maxlengthconstraint paste.maxlengthconstraint cut.maxlengthconstraint",function(){setTimeout(g,0)}),f.bind("keyup.maxlengthconstraint",g),f.bind("blur.maxlengthconstraint",i),b=setInterval(g,200)}}();p.update=function(b,d){a(b).is(":focus")&&(null==d&&(d=a.prop(b,"maxlength")),p(e.target,d))};a(j).bind("focusin",function(b){var d;"TEXTAREA"==b.target.nodeName&&-1<(d=a.prop(b.target,
14
+ "maxlength"))&&p(b.target,d)});c.defineNodeNameProperty("textarea","maxlength",{attr:{set:function(a){this.setAttribute("maxlength",""+a);p.update(this)},get:function(){var a=this.getAttribute("maxlength");return null==a?void 0:a}},prop:{set:function(a){if("number"==typeof a||a&&a==1*a){if(0>a)throw"INDEX_SIZE_ERR";a=parseInt(a,10);this.setAttribute("maxlength",a);p.update(this,a)}else this.setAttribute("maxlength","0"),p.update(this,0)},get:function(){var a=this.getAttribute("maxlength");return("number"==
15
+ typeof a||a&&a==1*a)&&0<=a?parseInt(a,10):-1}}});c.defineNodeNameProperty("textarea","maxLength",{prop:{set:function(b){a.prop(this,"maxlength",b)},get:function(){return a.prop(this,"maxlength")}}})}var E={submit:1,button:1,image:1},l={};[{name:"enctype",limitedTo:{"application/x-www-form-urlencoded":1,"multipart/form-data":1,"text/plain":1},defaultProp:"application/x-www-form-urlencoded",proptype:"enum"},{name:"method",limitedTo:{get:1,post:1},defaultProp:"get",proptype:"enum"},{name:"action",proptype:"url"},
16
+ {name:"target"},{name:"novalidate",propName:"noValidate",proptype:"boolean"}].forEach(function(b){var d="form"+(b.propName||b.name).replace(/^[a-z]/,function(a){return a.toUpperCase()}),f="form"+b.name,c=b.name,g="click.webshimssubmittermutate"+c,i=function(){if("form"in this&&E[this.type]){var i=a.prop(this,"form");if(i){var g=a.attr(this,f);if(null!=g&&(!b.limitedTo||g.toLowerCase()===a.prop(this,d))){var k=a.attr(i,c);a.attr(i,c,g);setTimeout(function(){if(null!=k)a.attr(i,c,k);else try{a(i).removeAttr(c)}catch(b){i.removeAttribute(c)}},
17
+ 9)}}}};switch(b.proptype){case "url":var m=j.createElement("form");l[d]={prop:{set:function(b){a.attr(this,f,b)},get:function(){var b=a.attr(this,f);if(null==b)return"";m.setAttribute("action",b);return m.action}}};break;case "boolean":l[d]={prop:{set:function(b){b?a.attr(this,"formnovalidate","formnovalidate"):a(this).removeAttr("formnovalidate")},get:function(){return null!=a.attr(this,"formnovalidate")}}};break;case "enum":l[d]={prop:{set:function(b){a.attr(this,f,b)},get:function(){var d=a.attr(this,
18
+ f);return!d||(d=d.toLowerCase())&&!b.limitedTo[d]?b.defaultProp:d}}};break;default:l[d]={prop:{set:function(b){a.attr(this,f,b)},get:function(){var b=a.attr(this,f);return null!=b?b:""}}}}l[f]||(l[f]={});l[f].attr={set:function(b){l[f].attr._supset.call(this,b);a(this).unbind(g).bind(g,i)},get:function(){return l[f].attr._supget.call(this)}};l[f].initAttr=!0;l[f].removeAttr={value:function(){a(this).unbind(g);l[f].removeAttr._supvalue.call(this)}}});c.defineNodeNamesProperties(["input","button"],
19
+ l);!a.support.getSetAttribute&&null==a("<form novalidate></form>").attr("novalidate")?c.defineNodeNameProperty("form","novalidate",{attr:{set:function(a){this.setAttribute("novalidate",""+a)},get:function(){var a=this.getAttribute("novalidate");return null==a?void 0:a}}}):c.bugs.bustedValidity&&(c.defineNodeNameProperty("form","novalidate",{attr:{set:function(a){c.data(this,"bustedNoValidate",""+a)},get:function(){var a=c.data(this,"bustedNoValidate");return null==a?void 0:a}},removeAttr:{value:function(){c.data(this,
20
+ "bustedNoValidate",null)}}}),a.each(["rangeUnderflow","rangeOverflow","stepMismatch"],function(a,d){s[d]=function(a){return(a[0].validity||{})[d]||!1}}));c.defineNodeNameProperty("form","noValidate",{prop:{set:function(b){b?a.attr(this,"novalidate","novalidate"):a(this).removeAttr("novalidate")},get:function(){return null!=a.attr(this,"novalidate")}}});a.browser.webkit&&Modernizr.inputtypes.date&&function(){var b={updateInput:1,input:1},d={date:1,time:1,"datetime-local":1},f={focusout:1,blur:1},h=
21
+ {updateInput:1,change:1},g=function(a){var d,c=!0,g=a.prop("value"),k=g,n=function(d){if(a){var f=a.prop("value");f!==g&&(g=f,(!d||!b[d.type])&&a.trigger("input"));d&&h[d.type]&&(k=f);!c&&f!==k&&a.trigger("change")}},A,u=function(b){clearInterval(d);setTimeout(function(){b&&f[b.type]&&(c=!1);a&&(a.unbind("focusout blur",u).unbind("input change updateInput",n),n());a=null},1)};clearInterval(d);d=setInterval(n,160);clearTimeout(A);A=setTimeout(n,9);a.unbind("focusout blur",u).unbind("input change updateInput",
22
+ n);a.bind("focusout blur",u).bind("input updateInput change",n)};if(a.event.customEvent)a.event.customEvent.updateInput=!0;(function(){var b=function(b){var d=1,f,c;if("date"==b.type&&(q||!a(b).is(":focus")))if((c=b.value)&&10>c.length&&(c=c.split("-"))&&3==c.length){for(;3>d;d++)if(1==c[d].length)c[d]="0"+c[d];else if(2!=c[d].length){f=!0;break}if(!f)return c=c.join("-"),a.prop(b,"value",c),c}},d,f,g,k;d=c.defineNodeNameProperty("input","checkValidity",{prop:{value:function(){b(this);return d.prop._supvalue.apply(this,
23
+ arguments)}}});f=c.defineNodeNameProperty("form","checkValidity",{prop:{value:function(){a("input",this).each(function(){b(this)});return f.prop._supvalue.apply(this,arguments)}}});g=c.defineNodeNameProperty("input","value",{prop:{set:function(){return g.prop._supset.apply(this,arguments)},get:function(){return b(this)||g.prop._supget.apply(this,arguments)}}});k=c.defineNodeNameProperty("input","validity",{prop:{writeable:!1,get:function(){b(this);return k.prop._supget.apply(this,arguments)}}});a(j).bind("change",
24
+ function(a){isChangeSubmit=!0;b(a.target);isChangeSubmit=!1})})();a(j).bind("focusin",function(b){b.target&&d[b.target.type]&&!b.target.readOnly&&!b.target.disabled&&g(a(b.target))})}();c.addReady(function(b,d){var c;a("form",b).add(d.filter("form")).bind("invalid",a.noop);try{if(b==j&&!("form"in(j.activeElement||{})))(c=a("input[autofocus], select[autofocus], textarea[autofocus]",b).eq(0).getShadowFocusElement()[0])&&c.offsetHeight&&c.offsetWidth&&c.focus()}catch(h){}});(!Modernizr.formattribute||
25
+ !Modernizr.fieldsetdisabled)&&function(){(function(b,d){a.prop=function(c,f,h){var k;if(c&&1==c.nodeType&&h===d&&a.nodeName(c,"form")&&c.id){k=j.getElementsByName(f);if(!k||!k.length)k=j.getElementById(f);if(k&&(k=a(k).filter(function(){return a.prop(this,"form")==c}).get(),k.length))return 1==k.length?k[0]:k}return b.apply(this,arguments)}})(a.prop,void 0);var b=function(b){var d=a.data(b,"webshimsAddedElements");d&&(d.remove(),a.removeData(b,"webshimsAddedElements"))},d=/\r?\n/g,f=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,
26
+ h=/^(?:select|textarea)/i;Modernizr.formattribute||(c.defineNodeNamesProperty(["input","textarea","select","button","fieldset"],"form",{prop:{get:function(){var b=c.contentAttr(this,"form");b&&(b=j.getElementById(b))&&!a.nodeName(b,"form")&&(b=null);return b||this.form},writeable:!1}}),c.defineNodeNamesProperty(["form"],"elements",{prop:{get:function(){var b=this.id,d=a.makeArray(this.elements);b&&(d=a(d).add('input[form="'+b+'"], select[form="'+b+'"], textarea[form="'+b+'"], button[form="'+b+'"], fieldset[form="'+
27
+ b+'"]').not(".webshims-visual-hide > *").get());return d},writeable:!1}}),a(function(){var d=function(a){a.stopPropagation()};a(j).bind("submit",function(d){if(!d.isDefaultPrevented()){var c=d.target;if(d=c.id)b(c),d=a('input[form="'+d+'"], select[form="'+d+'"], textarea[form="'+d+'"]').filter(function(){return!this.disabled&&this.name&&this.form!=c}).clone(),d.length&&(a.data(c,"webshimsAddedElements",a('<div class="webshims-visual-hide" />').append(d).appendTo(c)),setTimeout(function(){b(c)},9)),
28
+ d=null}});a(j).bind("click",function(b){if(!b.isDefaultPrevented()&&a(b.target).is('input[type="submit"][form], button[form], input[type="button"][form], input[type="image"][form], input[type="reset"][form]')){var c=a.prop(b.target,"form"),f=b.target.form,h;c&&c!=f&&(h=a(b.target).clone().removeAttr("form").addClass("webshims-visual-hide").bind("click",d).appendTo(c),f&&b.preventDefault(),y(c),h.trigger("click"),setTimeout(function(){h.remove();h=null},9))}})}));Modernizr.fieldsetdisabled||c.defineNodeNamesProperty(["fieldset"],
29
+ "elements",{prop:{get:function(){return a("input, select, textarea, button, fieldset",this).get()||[]},writeable:!1}});a.fn.serializeArray=function(){return this.map(function(){var b=a.prop(this,"elements");return b?a.makeArray(b):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||h.test(this.nodeName)||f.test(this.type))}).map(function(b,c){var f=a(this).val();return null==f?null:a.isArray(f)?a.map(f,function(a){return{name:c.name,value:a.replace(d,"\r\n")}}):{name:c.name,
30
+ value:f.replace(d,"\r\n")}}).get()}}();(function(){Modernizr.textareaPlaceholder=!!("placeholder"in a("<textarea />")[0]);var b=a.browser.webkit&&Modernizr.textareaPlaceholder&&535>c.browserVersion;if(!Modernizr.input.placeholder||!Modernizr.textareaPlaceholder||b){var d="over"==c.cfg.forms.placeholderType,f=c.cfg.forms.responsivePlaceholder,h=["textarea"];Modernizr.input.placeholder||h.push("input");var g=function(a){try{if(a.setSelectionRange)return a.setSelectionRange(0,0),!0;if(a.createTextRange){var b=
31
+ a.createTextRange();b.collapse(!0);b.moveEnd("character",0);b.moveStart("character",0);b.select();return!0}}catch(d){}},i=function(b,c,f,h){!1===f&&(f=a.prop(b,"value"));if(!d&&"password"!=b.type){if(!f&&h&&g(b)){var i=setTimeout(function(){g(b)},9);a(b).unbind(".placeholderremove").bind("keydown.placeholderremove keypress.placeholderremove paste.placeholderremove input.placeholderremove",function(d){if(!d||!(17==d.keyCode||16==d.keyCode))b.value=a.prop(b,"value"),c.box.removeClass("placeholder-visible"),
32
+ clearTimeout(i),a(b).unbind(".placeholderremove")}).bind("mousedown.placeholderremove drag.placeholderremove select.placeholderremove",function(){g(b);clearTimeout(i);i=setTimeout(function(){g(b)},9)}).bind("blur.placeholderremove",function(){clearTimeout(i);a(b).unbind(".placeholderremove")});return}b.value=f}else if(!f&&h){a(b).unbind(".placeholderremove").bind("keydown.placeholderremove keypress.placeholderremove paste.placeholderremove input.placeholderremove",function(d){if(!d||!(17==d.keyCode||
33
+ 16==d.keyCode))c.box.removeClass("placeholder-visible"),a(b).unbind(".placeholderremove")}).bind("blur.placeholderremove",function(){a(b).unbind(".placeholderremove")});return}c.box.removeClass("placeholder-visible")},m=function(b,c,f,g,h){if(!g&&(g=a.data(b,"placeHolder"),!g))return;a(b).unbind(".placeholderremove");if("focus"==h||!h&&a(b).is(":focus"))("password"==b.type||d||a(b).hasClass("placeholder-visible"))&&i(b,g,"",!0);else if(!1===c&&(c=a.prop(b,"value")),c)i(b,g,c);else if(!1===f&&(f=a.attr(b,
34
+ "placeholder")||""),f&&!c){c=g;!1===f&&(f=a.prop(b,"placeholder"));if(!d&&"password"!=b.type)b.value=f;c.box.addClass("placeholder-visible")}else i(b,g,c)},j=function(b){var b=a(b),d=b.prop("id"),c=!(!b.prop("title")&&!b.attr("aria-labelledby"));!c&&d&&(c=!!a('label[for="'+d+'"]',b[0].form)[0]);c||(d||(d=a.webshims.getID(b)),c=!!a("label #"+d)[0]);return a(c?'<span class="placeholder-text"></span>':'<label for="'+d+'" class="placeholder-text"></label>')},t=function(){var b={text:1,search:1,url:1,
35
+ email:1,password:1,tel:1};return{create:function(b){var c=a.data(b,"placeHolder"),g;if(c)return c;c=a.data(b,"placeHolder",{});a(b).bind("focus.placeholder blur.placeholder",function(a){m(this,!1,!1,c,a.type);c.box["focus"==a.type?"addClass":"removeClass"]("placeholder-focused")});(g=a.prop(b,"form"))&&a(g).bind("reset.placeholder",function(a){setTimeout(function(){m(b,!1,!1,c,a.type)},0)});if("password"==b.type||d)c.text=j(b),c.box=f||a(b).is(".responsive-width")||-1!=(b.currentStyle||{width:""}).width.indexOf("%")?
36
+ c.text:a(b).wrap('<span class="placeholder-box placeholder-box-'+(b.nodeName||"").toLowerCase()+" placeholder-box-"+a.css(b,"float")+'" />').parent(),c.text.insertAfter(b).bind("mousedown.placeholder",function(){m(this,!1,!1,c,"focus");try{setTimeout(function(){b.focus()},0)}catch(a){}return!1}),a.each(["lineHeight","fontSize","fontFamily","fontWeight"],function(d,f){var g=a.css(b,f);c.text.css(f)!=g&&c.text.css(f,g)}),a.each(["Left","Top"],function(d,f){var g=(parseInt(a.css(b,"padding"+f),10)||
37
+ 0)+Math.max(parseInt(a.css(b,"margin"+f),10)||0,0)+(parseInt(a.css(b,"border"+f+"Width"),10)||0);c.text.css("padding"+f,g)}),a(b).bind("updateshadowdom",function(){var d,f;((f=b.offsetWidth)||(d=b.offsetHeight))&&c.text.css({width:f,height:d}).css(a(b).position())}).triggerHandler("updateshadowdom");else{var h=function(d){a(b).hasClass("placeholder-visible")&&(i(b,c,""),d&&"submit"==d.type&&setTimeout(function(){d.isDefaultPrevented()&&m(b,!1,!1,c)},9))};a(v).bind("beforeunload",h);c.box=a(b);g&&
38
+ a(g).submit(h)}return c},update:function(d,f){var g=(a.attr(d,"type")||a.prop(d,"type")||"").toLowerCase();!b[g]&&!a.nodeName(d,"textarea")?(c.error('placeholder not allowed on input[type="'+g+'"]'),"date"==g&&c.error('but you can use data-placeholder for input[type="date"]')):(g=t.create(d),g.text&&g.text.text(f),m(d,!1,f,g))}}}();a.webshims.publicMethods={pHolder:t};h.forEach(function(a){c.defineNodeNameProperty(a,"placeholder",{attr:{set:function(a){b?(c.data(this,"textareaPlaceholder",a),this.placeholder=
39
+ ""):c.contentAttr(this,"placeholder",a);t.update(this,a)},get:function(){return(b?c.data(this,"textareaPlaceholder"):"")||c.contentAttr(this,"placeholder")}},reflect:!0,initAttr:!0})});h.forEach(function(d){var f={},g;["attr","prop"].forEach(function(d){f[d]={set:function(f){var h;b&&(h=c.data(this,"textareaPlaceholder"));h||(h=c.contentAttr(this,"placeholder"));a.removeData(this,"cachedValidity");var i=g[d]._supset.call(this,f);h&&"value"in this&&m(this,f,h);return i},get:function(){return a(this).hasClass("placeholder-visible")?
40
+ "":g[d]._supget.call(this)}}});g=c.defineNodeNameProperty(d,"value",f)})}})();(function(){if(!("value"in j.createElement("output"))){c.defineNodeNameProperty("output","value",{prop:{set:function(d){var c=a.data(this,"outputShim");c||(c=b(this));c(d)},get:function(){return c.contentAttr(this,"value")||a(this).text()||""}}});c.onNodeNamesPropertyModify("input","value",function(b,c,h){"removeAttr"!=h&&(c=a.data(this,"outputShim"))&&c(b)});var b=function(b){if(!b.getAttribute("aria-live")){var b=a(b),
41
+ f=(b.text()||"").trim(),h=b.attr("id"),g=b.attr("for"),i=a('<input class="output-shim" type="text" disabled name="'+(b.attr("name")||"")+'" value="'+f+'" style="display: none !important;" />').insertAfter(b),m=i[0].form||j,l=function(a){i[0].value=a;a=i[0].value;b.text(a);c.contentAttr(b[0],"value",a)};b[0].defaultValue=f;c.contentAttr(b[0],"value",f);b.attr({"aria-live":"polite"});h&&(i.attr("id",h),b.attr("aria-labelledby",c.getID(a('label[for="'+h+'"]',m))));g&&(h=c.getID(b),g.split(" ").forEach(function(a){(a=
42
+ j.getElementById(a))&&a.setAttribute("aria-controls",h)}));b.data("outputShim",l);i.data("outputShim",l);return l}};c.addReady(function(c,f){a("output",c).add(f.filter("output")).each(function(){b(this)})});(function(){var b={updateInput:1,input:1},f={radio:1,checkbox:1,submit:1,button:1,image:1,reset:1,file:1,color:1},h=function(a){var f,h=a.prop("value"),j=function(f){if(a){var i=a.prop("value");i!==h&&(h=i,(!f||!b[f.type])&&c.triggerInlineForm&&c.triggerInlineForm(a[0],"input"))}},l,k=function(){clearTimeout(l);
43
+ l=setTimeout(j,9)},n=function(){a.unbind("focusout",n).unbind("keyup keypress keydown paste cut",k).unbind("input change updateInput",j);clearInterval(f);setTimeout(function(){j();a=null},1)};clearInterval(f);f=setInterval(j,99);k();a.bind("keyup keypress keydown paste cut",k).bind("focusout",n).bind("input updateInput change",j)};if(a.event.customEvent)a.event.customEvent.updateInput=!0;a(j).bind("focusin",function(b){b.target&&b.target.type&&!b.target.readOnly&&!b.target.disabled&&"input"==(b.target.nodeName||
44
+ "").toLowerCase()&&!f[b.target.type]&&h(a(b.target))})})()}})()});
@@ -0,0 +1,3 @@
1
+ jQuery.webshims.validityMessages.sv={typeMismatch:{email:"Fyll i en e-postadress.",url:"Fyll i en URL.",number:"Fyll i ett nummer.",date:"Fyll i ett datum.",time:"Fyll i en tid.",range:"Felaktig inmatning.","datetime-local":"Fyll i datum och tid."},tooLong:"Fyll i max {%maxlength} tecken. Du fyllde i {%valueLen} tecken.",patternMismatch:"Felaktig inmatning. {%title}",valueMissing:{defaultMessage:"Fyll i detta f\u00e4lt.",checkbox:"Bocka dennaa ruta f\u00f6r att g\u00e5 vidare.",select:"V\u00e4lj n\u00e5got ur listan.",
2
+ radio:"V\u00e4lj ett av valen."},rangeUnderflow:{defaultMessage:"V\u00e4rdet m\u00e5ste vara st\u00f6rre eller lika med {%min}.",date:"Datumet m\u00e5ste vara efter eller lika med {%min}.",time:"Tiden m\u00e5ste vara efter eller lika med {%min}.","datetime-local":"V\u00e4rdet m\u00e5ste vara efter eller lika med {%min}."},rangeOverflow:{defaultMessage:"V\u00e4rdet m\u00e5ste vara mindre eller lika med {%max}.",date:"Datumet m\u00e5ste vara f\u00f6re eller lika med {%max}.",time:"Tiden m\u00e5ste vara f\u00f6re eller lika med {%max}.",
3
+ "datetime-local":"V\u00e4rdet m\u00e5ste vara f\u00f6re eller lika med {%max}."},stepMismatch:"Felaktig inmatning."};
@@ -1,87 +1,87 @@
1
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
- <html xmlns="http://www.w3.org/1999/xhtml">
3
- <head>
4
-
5
- <title>About the JW Player 5</title>
6
-
7
- <style type="text/css">
8
- body { background-color: #fff; padding: 0 20px; color:#000; font: 13px/18px Arial, sans-serif; }
9
- a { color: #360; }
10
- h3 { padding-top: 20px; }
11
- ol { margin:5px 0 15px 16px; padding:0; list-style-type:square; }
12
- </style>
13
-
14
- </head>
15
- <body>
16
-
17
- <h1>About the JW Player 5</h1>
18
- <p>Thank you for downloading the JW Player, the leading open source video player for Flash and HTML5 on the Web. Not only is the JW Player the easiest way to put video on your website, but we offer a host of other products and services to assist in providing the best possible video experience for your users.</p>
19
-
20
- <h3>Quickstart</h3>
21
- <p>The quickest way to get started is to unzip the file you downloaded (you must have done that if you're reading this!) and copy the contents into a folder called 'jwplayer' at the root of your website. The end result should be:</p>
22
- <ol>
23
- <li>{webroot}/jwplayer/player.swf</li>
24
- <li>{webroot}/jwplayer/jwplayer.js</li>
25
- <li>etc...</li>
26
- </ol>
27
- <p>You can then view the source of this page and copy the code from the example below onto your webpage. That's it! You should see a player on your site.</p>
28
-
29
- <h3>An Example of the JW Player</h3>
30
- <p>Below you see a simple embedded example of the JW Player.</p>
31
-
32
- <!-- START OF THE PLAYER EMBEDDING TO COPY-PASTE -->
33
- <div id="mediaplayer">JW Player goes here</div>
34
-
35
- <script type="text/javascript" src="jwplayer.js"></script>
36
- <script type="text/javascript">
37
- jwplayer("mediaplayer").setup({
38
- flashplayer: "player.swf",
39
- file: "video.mp4",
40
- image: "preview.jpg"
41
- });
42
- </script>
43
- <!-- END OF THE PLAYER EMBEDDING -->
44
-
45
- <h3>Support, Documentation and Source Code</h3>
46
-
47
- <p>If you need help, the LongTail Support Community contains a wealth of information, include a large <a href="http://www.longtailvideo.com/support/jw-player/">library of documentation</a>, a very active <a href="http://www.longtailvideo.com/support/forums/jw-player/">support forum</a>, and a <a href="http://www.longtailvideo.com/support/blog">blog</a> on the latest releases and tips on publishing video.</p>
48
-
49
- <p>Some documents you might find useful are:</p>
50
- <ol>
51
- <li><a href="http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/12539/supported-video-and-audio-formats">Supported file formats</a>.</li>
52
- <li><a href="http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/12537/xml-playlist-support">Supported XML playlist formats</a>.</li>
53
- <li><a href="http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/12536/configuration-options">Complete list of configuration options</a> (for customizing the player).</li>
54
- <li><a href="http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/12540/javascript-api-reference">Supported JavaScript API calls</a> (for JavaScript interaction).</li>
55
- <li><a href="http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/14/skinning-the-jw-player-5">Supported skinning elements</a> (for creating your own graphics).</li>
56
- <li><a href="http://developer.longtailvideo.com/trac/roadmap/">Roadmap with full changelogs</a> for each version.</li>
57
- </ol>
58
- <p>Last, the source code of all different versions of the player can <a href="http://developer.longtailvideo.com/trac/browser/tags">be found here</a>. You can click a version and download the ZIP files (the links are at the bottom).</p>
59
-
60
- <h3>Licensing</h3>
61
- <p>The player is licensed under a <a href="http://creativecommons.org/licenses/by-nc-sa/2.0/">Creative Commons License</a>. It allows you to use, modify and redistribute the script, but only for <b>non-commercial</b> purposes.</p>
62
- <p>Examples of <b>commercial use</b> include:
63
-
64
- <ul>
65
- <li>websites with any advertisements; </li>
66
- <li>websites owned or operated by corporations; </li>
67
- <li>websites designed to promote other products, such as a band or artist;</li>
68
- <li>products (e.g. a CMS) that bundle LongTail products into its offering. </li>
69
- </ul>
70
-
71
- If any of the above conditions apply to you, then <a href="http://www.longtailvideo.com/order/" title="Order commercial licenses">please purchase a license for the player</a>. If you are still unsure whether you need to purchase a license, please <a href="http://www.longtailvideo.com/support/contact-us">contact us</a>.</p>
72
-
73
- <h3>Related Products</h3>
74
- <p>In addition to the JW Player, <a href="http://www.longtailvideo.com">LongTail Video</a> has a suite of products to help you publish video.</p>
75
- <p>Learn more about them here:</p>
76
-
77
- <ul>
78
- <li><a href="http://www.longtailvideo.com/addons/skins">Skins</a> - Change the look of your player to match your site. <a href="http://www.longtailvideo.com/addons/skins">View our library</a>.</li>
79
- <li><a href="http://www.longtailvideo.com/addons/plugins">Plugins</a> - Add functionality to your player, like sharing, social networking, analytics, advertising and more. <a href="http://www.longtailvideo.com/addons/plugins">Find one for you</a>.</li>
80
- <li><a href="http://www.longtailvideo.com/referral.aspx?page=pubreferral&ref=xvwjuhgktajeelu">AdSolution</a> - Monetize your videos with LongTail's AdSolution. Integrate pre-roll, overlay and post-roll ads into your site and starting making money today. <a href="http://www.longtailvideo.com/referral.aspx?page=pubreferral&ref=xvwjuhgktajeelu">Sign up now</a>.</li>
81
- <li><a href="http://www.bitsontherun.com/via/longtailvideo">Bits on the Run</a> - Upload, encode, store, manage and stream your videos with Bits on the Run, LongTail's end-to-end online video platform. <a href="http://www.bitsontherun.com/via/longtailvideo">Sign up now</a>.</li>
82
- </ul>
83
-
84
-
85
-
86
- </body>
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+ <html xmlns="http://www.w3.org/1999/xhtml">
3
+ <head>
4
+
5
+ <title>About the JW Player 5</title>
6
+
7
+ <style type="text/css">
8
+ body { background-color: #fff; padding: 0 20px; color:#000; font: 13px/18px Arial, sans-serif; }
9
+ a { color: #360; }
10
+ h3 { padding-top: 20px; }
11
+ ol { margin:5px 0 15px 16px; padding:0; list-style-type:square; }
12
+ </style>
13
+
14
+ </head>
15
+ <body>
16
+
17
+ <h1>About the JW Player 5</h1>
18
+ <p>Thank you for downloading the JW Player, the leading open source video player for Flash and HTML5 on the Web. Not only is the JW Player the easiest way to put video on your website, but we offer a host of other products and services to assist in providing the best possible video experience for your users.</p>
19
+
20
+ <h3>Quickstart</h3>
21
+ <p>The quickest way to get started is to unzip the file you downloaded (you must have done that if you're reading this!) and copy the contents into a folder called 'jwplayer' at the root of your website. The end result should be:</p>
22
+ <ol>
23
+ <li>{webroot}/jwplayer/player.swf</li>
24
+ <li>{webroot}/jwplayer/jwplayer.js</li>
25
+ <li>etc...</li>
26
+ </ol>
27
+ <p>You can then view the source of this page and copy the code from the example below onto your webpage. That's it! You should see a player on your site.</p>
28
+
29
+ <h3>An Example of the JW Player</h3>
30
+ <p>Below you see a simple embedded example of the JW Player.</p>
31
+
32
+ <!-- START OF THE PLAYER EMBEDDING TO COPY-PASTE -->
33
+ <div id="mediaplayer">JW Player goes here</div>
34
+
35
+ <script type="text/javascript" src="jwplayer.js"></script>
36
+ <script type="text/javascript">
37
+ jwplayer("mediaplayer").setup({
38
+ flashplayer: "player.swf",
39
+ file: "video.mp4",
40
+ image: "preview.jpg"
41
+ });
42
+ </script>
43
+ <!-- END OF THE PLAYER EMBEDDING -->
44
+
45
+ <h3>Support, Documentation and Source Code</h3>
46
+
47
+ <p>If you need help, the LongTail Support Community contains a wealth of information, include a large <a href="http://www.longtailvideo.com/support/jw-player/">library of documentation</a>, a very active <a href="http://www.longtailvideo.com/support/forums/jw-player/">support forum</a>, and a <a href="http://www.longtailvideo.com/support/blog">blog</a> on the latest releases and tips on publishing video.</p>
48
+
49
+ <p>Some documents you might find useful are:</p>
50
+ <ol>
51
+ <li><a href="http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/12539/supported-video-and-audio-formats">Supported file formats</a>.</li>
52
+ <li><a href="http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/12537/xml-playlist-support">Supported XML playlist formats</a>.</li>
53
+ <li><a href="http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/12536/configuration-options">Complete list of configuration options</a> (for customizing the player).</li>
54
+ <li><a href="http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/12540/javascript-api-reference">Supported JavaScript API calls</a> (for JavaScript interaction).</li>
55
+ <li><a href="http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/14/skinning-the-jw-player-5">Supported skinning elements</a> (for creating your own graphics).</li>
56
+ <li><a href="http://developer.longtailvideo.com/trac/roadmap/">Roadmap with full changelogs</a> for each version.</li>
57
+ </ol>
58
+ <p>Last, the source code of all different versions of the player can <a href="http://developer.longtailvideo.com/trac/browser/tags">be found here</a>. You can click a version and download the ZIP files (the links are at the bottom).</p>
59
+
60
+ <h3>Licensing</h3>
61
+ <p>The player is licensed under a <a href="http://creativecommons.org/licenses/by-nc-sa/2.0/">Creative Commons License</a>. It allows you to use, modify and redistribute the script, but only for <b>non-commercial</b> purposes.</p>
62
+ <p>Examples of <b>commercial use</b> include:
63
+
64
+ <ul>
65
+ <li>websites with any advertisements; </li>
66
+ <li>websites owned or operated by corporations; </li>
67
+ <li>websites designed to promote other products, such as a band or artist;</li>
68
+ <li>products (e.g. a CMS) that bundle LongTail products into its offering. </li>
69
+ </ul>
70
+
71
+ If any of the above conditions apply to you, then <a href="http://www.longtailvideo.com/order/" title="Order commercial licenses">please purchase a license for the player</a>. If you are still unsure whether you need to purchase a license, please <a href="http://www.longtailvideo.com/support/contact-us">contact us</a>.</p>
72
+
73
+ <h3>Related Products</h3>
74
+ <p>In addition to the JW Player, <a href="http://www.longtailvideo.com">LongTail Video</a> has a suite of products to help you publish video.</p>
75
+ <p>Learn more about them here:</p>
76
+
77
+ <ul>
78
+ <li><a href="http://www.longtailvideo.com/addons/skins">Skins</a> - Change the look of your player to match your site. <a href="http://www.longtailvideo.com/addons/skins">View our library</a>.</li>
79
+ <li><a href="http://www.longtailvideo.com/addons/plugins">Plugins</a> - Add functionality to your player, like sharing, social networking, analytics, advertising and more. <a href="http://www.longtailvideo.com/addons/plugins">Find one for you</a>.</li>
80
+ <li><a href="http://www.longtailvideo.com/referral.aspx?page=pubreferral&ref=xvwjuhgktajeelu">AdSolution</a> - Monetize your videos with LongTail's AdSolution. Integrate pre-roll, overlay and post-roll ads into your site and starting making money today. <a href="http://www.longtailvideo.com/referral.aspx?page=pubreferral&ref=xvwjuhgktajeelu">Sign up now</a>.</li>
81
+ <li><a href="http://www.bitsontherun.com/via/longtailvideo">Bits on the Run</a> - Upload, encode, store, manage and stream your videos with Bits on the Run, LongTail's end-to-end online video platform. <a href="http://www.bitsontherun.com/via/longtailvideo">Sign up now</a>.</li>
82
+ </ul>
83
+
84
+
85
+
86
+ </body>
87
87
  </html>
@@ -1,13 +1,16 @@
1
- (function(i,h,k){var j=h.audio&&h.video,m=!1;if(j)i=document.createElement("video"),h.videoBuffered="buffered"in i,m="loop"in i,k.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(",")),h.videoBuffered||(k.addPolyfill("mediaelement-native-fix",{f:"mediaelement",test:h.videoBuffered,d:["dom-support"]}),k.reTest("mediaelement-native-fix"));jQuery.webshims.register("mediaelement-core",function(c,g,h,i,k){var e=g.mediaelement,t=g.cfg.mediaelement,
2
- q=function(a,b){var a=c(a),d={src:a.attr("src")||"",elem:a,srcProp:a.prop("src")};if(!d.src)return d;var f=a.attr("type");if(f)d.type=f,d.container=c.trim(f.split(";")[0]);else if(b||(b=a[0].nodeName.toLowerCase(),"source"==b&&(b=(a.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),f=e.getTypeForSrc(d.src,b))d.type=f,d.container=f;if(f=a.attr("media"))d.media=f;return d},n=swfobject.hasFlashPlayerVersion("9.0.115"),r=function(){g.ready("mediaelement-swf",function(){if(!e.createSWF)g.modules["mediaelement-swf"].test=
3
- c.noop,g.reTest(["mediaelement-swf"],j)})};e.mimeTypes={audio:{"audio/ogg":["ogg","oga","ogm"],"audio/mpeg":["mp2","mp3","mpga","mpega"],"audio/mp4":"mp4,mpg4,m4r,m4a,m4p,m4b,aac".split(","),"audio/wav":["wav"],"audio/3gpp":["3gp","3gpp"],"audio/webm":["webm"],"audio/fla":["flv","f4a","fla"],"application/x-mpegURL":["m3u8","m3u"]},video:{"video/ogg":["ogg","ogv","ogm"],"video/mpeg":["mpg","mpeg","mpe"],"video/mp4":["mp4","mpg4","m4v"],"video/quicktime":["mov","qt"],"video/x-msvideo":["avi"],"video/x-ms-asf":["asf",
4
- "asx"],"video/flv":["flv","f4v"],"video/3gpp":["3gp","3gpp"],"video/webm":["webm"],"application/x-mpegURL":["m3u8","m3u"],"video/MP2T":["ts"]}};e.mimeTypes.source=c.extend({},e.mimeTypes.audio,e.mimeTypes.video);e.getTypeForSrc=function(a,b){if(-1!=a.indexOf("youtube.com/watch?")||-1!=a.indexOf("youtube.com/v/"))return"video/youtube";var a=a.split("?")[0].split("."),a=a[a.length-1],d;c.each(e.mimeTypes[b],function(b,c){if(-1!==c.indexOf(a))return d=b,!1});return d};e.srces=function(a,b){a=c(a);if(b)a.removeAttr("src").removeAttr("type").find("source").remove(),
5
- c.isArray(b)||(b=[b]),b.forEach(function(b){var d=i.createElement("source");"string"==typeof b&&(b={src:b});d.setAttribute("src",b.src);b.type&&d.setAttribute("type",b.type);b.media&&d.setAttribute("media",b.media);a.append(d)});else{var b=[],d=a[0].nodeName.toLowerCase(),f=q(a,d);f.src?b.push(f):c("source",a).each(function(){f=q(this,d);f.src&&b.push(f)});return b}};c.fn.loadMediaSrc=function(a,b){return this.each(function(){b!==k&&(c(this).removeAttr("poster"),b&&c.attr(this,"poster",b));e.srces(this,
6
- a);c(this).mediaLoad()})};e.swfMimeTypes="video/3gpp,video/x-msvideo,video/quicktime,video/x-m4v,video/mp4,video/m4p,video/x-flv,video/flv,audio/mpeg,audio/aac,audio/mp4,audio/x-m4a,audio/m4a,audio/mp3,audio/x-fla,audio/fla,youtube/flv,jwplayer/jwplayer,video/youtube".split(",");e.canSwfPlaySrces=function(a,b){var d="";n&&(a=c(a),b=b||e.srces(a),c.each(b,function(a,b){if(b.container&&b.src&&-1!=e.swfMimeTypes.indexOf(b.container))return d=b,!1}));return d};var l={};e.canNativePlaySrces=function(a,
7
- b){var d="";if(j){var a=c(a),f=(a[0].nodeName||"").toLowerCase();if(!l[f])return d;b=b||e.srces(a);c.each(b,function(b,c){if(c.type&&l[f].prop._supvalue.call(a[0],c.type))return d=c,!1})}return d};e.setError=function(a,b){b||(b="can't play sources");c(a).pause().data("mediaerror",b);g.warn("mediaelementError: "+b);setTimeout(function(){c(a).data("mediaerror")&&c(a).trigger("mediaerror")},1)};var s=function(){var a;return function(b,d,c){g.ready("mediaelement-swf",function(){e.createSWF?e.createSWF(b,
8
- d,c):a||(a=!0,r(),s(b,d,c))})}}(),o=function(a,b,d,c,g){d||!1!==d&&b&&"flash"==b.isActive?(d=e.canSwfPlaySrces(a,c))?s(a,d,b):g?e.setError(a,!1):o(a,b,!1,c,!0):(d=e.canNativePlaySrces(a,c))?b&&"flash"==b.isActive&&e.setActive(a,"html5",b):g?(e.setError(a,!1),b&&"flash"==b.isActive&&e.setActive(a,"html5",b)):o(a,b,!0,c,!0)},u=/^(?:embed|object|datalist)$/i,p=function(a,b){var d=g.data(a,"mediaelementBase")||g.data(a,"mediaelementBase",{}),f=e.srces(a),h=a.parentNode;clearTimeout(d.loadTimer);c.data(a,
9
- "mediaerror",!1);if(f.length&&h&&!(1!=h.nodeType||u.test(h.nodeName||"")))b=b||g.data(a,"mediaelement"),o(a,b,t.preferFlash||k,f)};c(i).bind("ended",function(a){var b=g.data(a.target,"mediaelement");(!m||b&&"html5"!=b.isActive||c.prop(a.target,"loop"))&&setTimeout(function(){!c.prop(a.target,"paused")&&c.prop(a.target,"loop")&&c(a.target).prop("currentTime",0).play()},1)});m||g.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(a){var b=g.defineNodeNameProperty(a,
10
- "load",{prop:{value:function(){var a=g.data(this,"mediaelement");p(this,a);j&&(!a||"html5"==a.isActive)&&b.prop._supvalue&&b.prop._supvalue.apply(this,arguments)}}});l[a]=g.defineNodeNameProperty(a,"canPlayType",{prop:{value:function(b){var f="";j&&l[a].prop._supvalue&&(f=l[a].prop._supvalue.call(this,b),"no"==f&&(f=""));!f&&n&&(b=c.trim((b||"").split(";")[0]),-1!=e.swfMimeTypes.indexOf(b)&&(f="maybe"));return f}}})});g.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var a=
11
- this,b=g.data(a,"mediaelementBase")||g.data(a,"mediaelementBase",{});clearTimeout(b.loadTimer);b.loadTimer=setTimeout(function(){p(a);a=null},9)}});h=function(){g.addReady(function(a,b){c("video, audio",a).add(b.filter("video, audio")).each(function(){c.browser.msie&&8<g.browserVersion&&c.prop(this,"paused")&&!c.prop(this,"readyState")&&c(this).is('audio[preload="none"][controls]:not([autoplay])')?c(this).prop("preload","metadata").mediaLoad():p(this);if(j){var a,b,e=this,h=function(){var a=c.prop(e,
12
- "buffered");if(a){for(var b="",d=0,f=a.length;d<f;d++)b+=a.end(d);return b}},i=function(){var a=h();a!=b&&(b=a,c(e).triggerHandler("progress"))};c(this).bind("play loadstart progress",function(c){"progress"==c.type&&(b=h());clearTimeout(a);a=setTimeout(i,999)}).bind("emptied stalled mediaerror abort suspend",function(c){"emptied"==c.type&&(b=!1);clearTimeout(a)})}})})};j?(g.isReady("mediaelement-core",!0),h(),n&&g.ready("WINDOWLOAD mediaelement",r)):g.ready("mediaelement-swf",h)})})(jQuery,Modernizr,
13
- jQuery.webshims);
1
+ (function(i,l,f){var j=l.audio&&l.video,s=!1,o=f.cfg.mediaelement,m=f.bugs,v=function(){f.ready("mediaelement-swf",function(){if(!f.mediaelement.createSWF)f.modules["mediaelement-swf"].test=i.noop,f.reTest(["mediaelement-swf"],j)})},k;if(j){var p=document.createElement("video");l.videoBuffered="buffered"in p;s="loop"in p;f.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(","));l.videoBuffered||(f.addPolyfill("mediaelement-native-fix",{f:"mediaelement",
2
+ test:l.videoBuffered,d:["dom-support"]}),f.reTest("mediaelement-native-fix"))}if(j&&!o.preferFlash){var n=function(c){var e=c.target.parentNode;!o.preferFlash&&(i(c.target).is("audio, video")||e&&i("source:last",e)[0]==c.target)&&f.ready("DOM mediaelement",function(){k&&v();f.ready("WINDOWLOAD mediaelement-swf",function(){setTimeout(function(){k&&!o.preferFlash&&f.mediaelement.createSWF&&!i(c.target).closest("audio, video").is(".nonnative-api-active")?(o.preferFlash=!0,document.removeEventListener("error",
3
+ n,!0),i("audio, video").mediaLoad(),f.info("switching mediaelements option to 'preferFlash', due to an error with native player: "+c.target.src)):k||document.removeEventListener("error",n,!0)},20)})})};document.addEventListener("error",n,!0);i("audio, video").each(function(){this.error&&n({target:this})})}m.track=!1;l.track&&function(){if(!m.track)m.track="number"!=typeof i("<track />")[0].readyState;if(!m.track)try{new TextTrackCue(2,3,"")}catch(c){m.track=!0}var e=f.cfg.track,k=function(c){i(c.target).filter("track").each(j)},
4
+ j=function(){if(m.track||!e.override&&3==i.prop(this,"readyState"))e.override=!0,f.reTest("track"),document.removeEventListener("error",k,!0),this&&i.nodeName(this,"track")?f.error("track support was overwritten. Please check your vtt including your vtt mime-type"):f.info("track support was overwritten. due to bad browser support")},l=function(){document.addEventListener("error",k,!0);m.track?j():i("track").each(j)};e.override||(f.isReady("track")?l():i(l))}();f.register("mediaelement-core",function(c,
5
+ e,f,i,n){k=swfobject.hasFlashPlayerVersion("9.0.115");var g=e.mediaelement,p=function(a,b){var a=c(a),h={src:a.attr("src")||"",elem:a,srcProp:a.prop("src")};if(!h.src)return h;var d=a.attr("type");if(d)h.type=d,h.container=c.trim(d.split(";")[0]);else if(b||(b=a[0].nodeName.toLowerCase(),"source"==b&&(b=(a.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),d=g.getTypeForSrc(h.src,b))h.type=d,h.container=d;if(d=a.attr("media"))h.media=d;return h},q=!k&&"postMessage"in f&&j,w=
6
+ function(){var a;return function(){!a&&q&&(a=!0,e.loader.loadScript("https://www.youtube.com/player_api"),c(function(){e.polyfill("mediaelement-yt")}))}}(),x=function(){k?v():w()};e.addPolyfill("mediaelement-yt",{test:!q,d:["dom-support"]});g.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",
7
+ "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"]}};g.mimeTypes.source=c.extend({},g.mimeTypes.audio,g.mimeTypes.video);g.getTypeForSrc=function(a,b){if(-1!=a.indexOf("youtube.com/watch?")||
8
+ -1!=a.indexOf("youtube.com/v/"))return"video/youtube";var a=a.split("?")[0].split("."),a=a[a.length-1],h;c.each(g.mimeTypes[b],function(b,c){if(-1!==c.indexOf(a))return h=b,!1});return h};g.srces=function(a,b){a=c(a);if(b)a.removeAttr("src").removeAttr("type").find("source").remove(),c.isArray(b)||(b=[b]),b.forEach(function(b){var c=i.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)});
9
+ else{var b=[],h=a[0].nodeName.toLowerCase(),d=p(a,h);d.src?b.push(d):c("source",a).each(function(){d=p(this,h);d.src&&b.push(d)});return b}};c.fn.loadMediaSrc=function(a,b){return this.each(function(){b!==n&&(c(this).removeAttr("poster"),b&&c.attr(this,"poster",b));g.srces(this,a);c(this).mediaLoad()})};g.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(",");
10
+ g.canThirdPlaySrces=function(a,b){var h="";if(k||q)a=c(a),b=b||g.srces(a),c.each(b,function(a,b){if(b.container&&b.src&&(k&&-1!=g.swfMimeTypes.indexOf(b.container)||q&&"video/youtube"==b.container))return h=b,!1});return h};var r={};g.canNativePlaySrces=function(a,b){var h="";if(j){var a=c(a),d=(a[0].nodeName||"").toLowerCase();if(!r[d])return h;b=b||g.srces(a);c.each(b,function(b,c){if(c.type&&r[d].prop._supvalue.call(a[0],c.type))return h=c,!1})}return h};g.setError=function(a,b){b||(b="can't play sources");
11
+ c(a).pause().data("mediaerror",b);e.warn("mediaelementError: "+b);setTimeout(function(){c(a).data("mediaerror")&&c(a).trigger("mediaerror")},1)};var y=function(){var a;return function(b,c,d){e.ready(k?"mediaelement-swf":"mediaelement-yt",function(){g.createSWF?g.createSWF(b,c,d):a||(a=!0,x(),y(b,c,d))});!a&&q&&!g.createSWF&&w()}}(),t=function(a,b,c,d,e){c||!1!==c&&b&&"third"==b.isActive?(c=g.canThirdPlaySrces(a,d))?y(a,c,b):e?g.setError(a,!1):t(a,b,!1,d,!0):(c=g.canNativePlaySrces(a,d))?b&&"third"==
12
+ b.isActive&&g.setActive(a,"html5",b):e?(g.setError(a,!1),b&&"third"==b.isActive&&g.setActive(a,"html5",b)):t(a,b,!0,d,!0)},z=/^(?:embed|object|datalist)$/i,u=function(a,b){var h=e.data(a,"mediaelementBase")||e.data(a,"mediaelementBase",{}),d=g.srces(a),f=a.parentNode;clearTimeout(h.loadTimer);c.data(a,"mediaerror",!1);if(d.length&&f&&!(1!=f.nodeType||z.test(f.nodeName||"")))b=b||e.data(a,"mediaelement"),t(a,b,o.preferFlash||n,d)};c(i).bind("ended",function(a){var b=e.data(a.target,"mediaelement");
13
+ (!s||b&&"html5"!=b.isActive||c.prop(a.target,"loop"))&&setTimeout(function(){!c.prop(a.target,"paused")&&c.prop(a.target,"loop")&&c(a.target).prop("currentTime",0).play()},1)});s||e.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(a){var b=e.defineNodeNameProperty(a,"load",{prop:{value:function(){var a=e.data(this,"mediaelement");u(this,a);j&&(!a||"html5"==a.isActive)&&b.prop._supvalue&&b.prop._supvalue.apply(this,arguments)}}});r[a]=e.defineNodeNameProperty(a,
14
+ "canPlayType",{prop:{value:function(b){var d="";j&&r[a].prop._supvalue&&(d=r[a].prop._supvalue.call(this,b),"no"==d&&(d=""));!d&&k&&(b=c.trim((b||"").split(";")[0]),-1!=g.swfMimeTypes.indexOf(b)&&(d="maybe"));return d}}})});e.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var a=this,b=e.data(a,"mediaelementBase")||e.data(a,"mediaelementBase",{});clearTimeout(b.loadTimer);b.loadTimer=setTimeout(function(){u(a);a=null},9)}});f=function(){e.addReady(function(a,b){c("video, audio",
15
+ a).add(b.filter("video, audio")).each(function(){c.browser.msie&&8<e.browserVersion&&c.prop(this,"paused")&&!c.prop(this,"readyState")&&c(this).is('audio[preload="none"][controls]:not([autoplay])')?c(this).prop("preload","metadata").mediaLoad():u(this);if(j){var a,b,f=this,g=function(){var a=c.prop(f,"buffered");if(a){for(var b="",d=0,e=a.length;d<e;d++)b+=a.end(d);return b}},i=function(){var a=g();a!=b&&(b=a,c(f).triggerHandler("progress"))};c(this).bind("play loadstart progress",function(c){"progress"==
16
+ c.type&&(b=g());clearTimeout(a);a=setTimeout(i,999)}).bind("emptied stalled mediaerror abort suspend",function(c){"emptied"==c.type&&(b=!1);clearTimeout(a)})}})})};l.track&&!m.track&&e.defineProperty(TextTrack.prototype,"shimActiveCues",{get:function(){return this._shimActiveCues||this.activeCues}});j?(e.isReady("mediaelement-core",!0),f(),e.ready("WINDOWLOAD mediaelement",x)):e.ready("mediaelement-swf",f);c(function(){e.loader.loadList(["track-ui"])})})})(jQuery,Modernizr,jQuery.webshims);
@@ -1,30 +1,30 @@
1
- jQuery.webshims.register("mediaelement-swf",function(c,f,s,t,u,j){var h=f.mediaelement,B=s.swfobject,w=Modernizr.audio&&Modernizr.video,C=B.hasFlashPlayerVersion("9.0.115"),v=0,s={paused:!0,ended:!1,currentSrc:"",duration:s.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}},K=Object.keys(s),D={currentTime:0,volume:1,
2
- muted:!1};Object.keys(D);var E=c.extend({isActive:"html5",activating:"html5",wasSwfReady:!1,_bufferedEnd:0,_bufferedStart:0,_metadata:!1,_durationCalcs:-1,_callMeta:!1,currentTime:0,_ppFlag:u},s,D),F=/^jwplayer-/,l=function(a){if(a=t.getElementById(a.replace(F,"")))return a=f.data(a,"mediaelement"),"flash"==a.isActive?a:null},n=function(a){return(a=f.data(a,"mediaelement"))&&"flash"==a.isActive?a:null},g=function(a,b){b=c.Event(b);b.preventDefault();c.event.trigger(b,u,a)},L=j.playerPath||f.cfg.basePath+
3
- "jwplayer/"+(j.playerName||"player.swf"),G=j.pluginPath||f.cfg.basePath+"swf/jwwebshims.swf";f.extendUNDEFProp(j.jwParams,{allowscriptaccess:"always",allowfullscreen:"true",wmode:"transparent"});f.extendUNDEFProp(j.jwVars,{screencolor:"ffffffff"});f.extendUNDEFProp(j.jwAttrs,{bgcolor:"#000000"});var y=function(a,b){var d=a.duration;if(!(d&&0<a._durationCalcs)){try{if(a.duration=a.jwapi.getPlaylist()[0].duration,!a.duration||0>=a.duration||a.duration===a._lastDuration)a.duration=d}catch(e){}a.duration&&
4
- a.duration!=a._lastDuration?(g(a._elem,"durationchange"),("audio"==a._elemNodeName||a._callMeta)&&h.jwEvents.Model.META(c.extend({duration:a.duration},b),a),a._durationCalcs--):a._durationCalcs++}},k=function(a,b){3>a&&clearTimeout(b._canplaythroughTimer);if(3<=a&&3>b.readyState)b.readyState=a,g(b._elem,"canplay"),clearTimeout(b._canplaythroughTimer),b._canplaythroughTimer=setTimeout(function(){k(4,b)},4E3);if(4<=a&&4>b.readyState)b.readyState=a,g(b._elem,"canplaythrough");b.readyState=a};h.jwEvents=
5
- {View:{PLAY:function(a){var b=l(a.id);if(b&&!b.stopPlayPause&&(b._ppFlag=!0,b.paused==a.state)){b.paused=!a.state;if(b.ended)b.ended=!1;g(b._elem,a.state?"play":"pause")}}},Model:{BUFFER:function(a){var b=l(a.id);if(b&&"percentage"in a&&b._bufferedEnd!=a.percentage){b.networkState=100==a.percentage?1:2;(isNaN(b.duration)||5<a.percentage&&25>a.percentage||100===a.percentage)&&y(b,a);if(b.ended)b.ended=!1;if(b.duration){2<a.percentage&&20>a.percentage?k(3,b):20<a.percentage&&k(4,b);if(b._bufferedEnd&&
6
- b._bufferedEnd>a.percentage)b._bufferedStart=b.currentTime||0;b._bufferedEnd=a.percentage;b.buffered.length=1;if(100==a.percentage)b.networkState=1,k(4,b);c.event.trigger("progress",u,b._elem,!0)}}},META:function(a,b){if(b=b&&b.networkState?b:l(a.id))if("duration"in a){if(!b._metadata||!((!a.height||b.videoHeight==a.height)&&a.duration===b.duration)){b._metadata=!0;var d=b.duration;if(a.duration)b.duration=a.duration;b._lastDuration=b.duration;if(a.height||a.width)b.videoHeight=a.height||0,b.videoWidth=
7
- a.width||0;if(!b.networkState)b.networkState=2;1>b.readyState&&k(1,b);b.duration&&d!==b.duration&&g(b._elem,"durationchange");g(b._elem,"loadedmetadata")}}else b._callMeta=!0},TIME:function(a){var b=l(a.id);if(b&&b.currentTime!==a.position){b.currentTime=a.position;b.duration&&b.duration<b.currentTime&&y(b,a);2>b.readyState&&k(2,b);if(b.ended)b.ended=!1;g(b._elem,"timeupdate")}},STATE:function(a){var b=l(a.id);if(b)switch(a.newstate){case "BUFFERING":if(b.ended)b.ended=!1;k(1,b);g(b._elem,"waiting");
8
- break;case "PLAYING":b.paused=!1;b._ppFlag=!0;b.duration||y(b,a);3>b.readyState&&k(3,b);if(b.ended)b.ended=!1;g(b._elem,"playing");break;case "PAUSED":if(!b.paused&&!b.stopPlayPause)b.paused=!0,b._ppFlag=!0,g(b._elem,"pause");break;case "COMPLETED":4>b.readyState&&k(4,b),b.ended=!0,g(b._elem,"ended")}}},Controller:{ERROR:function(a){var b=l(a.id);b&&h.setError(b._elem,a.message)},SEEK:function(a){var b=l(a.id);if(b){if(b.ended)b.ended=!1;if(b.paused)try{b.jwapi.sendEvent("play","false")}catch(d){}if(b.currentTime!=
9
- a.position)b.currentTime=a.position,g(b._elem,"timeupdate")}},VOLUME:function(a){var b=l(a.id);if(b&&(a=a.percentage/100,b.volume!=a))b.volume=a,g(b._elem,"volumechange")},MUTE:function(a){if(!a.state){var b=l(a.id);if(b&&b.muted!=a.state)b.muted=a.state,g(b._elem,"volumechange")}}}};var M=function(a){var b=!0;c.each(h.jwEvents,function(d,e){c.each(e,function(c){try{a.jwapi["add"+d+"Listener"](c,"jQuery.webshims.mediaelement.jwEvents."+d+"."+c)}catch(e){return b=!1}})});return b},N=function(a){var b=
10
- a.actionQueue.length,d=0,c;if(b&&"flash"==a.isActive)for(;a.actionQueue.length&&b>d;)d++,c=a.actionQueue.shift(),a.jwapi[c.fn].apply(a.jwapi,c.args);if(a.actionQueue.length)a.actionQueue=[]},H=function(a){a&&(a._ppFlag===u&&c.prop(a._elem,"autoplay")||!a.paused)&&setTimeout(function(){if("flash"==a.isActive&&(a._ppFlag===u||!a.paused))try{c(a._elem).play()}catch(b){}},1)},O=function(a){if(a&&"video"==a._elemNodeName){var b,d,e,f,o,i,g,j,h=function(p,q){if(q&&p&&!(1>q||1>p||"flash"!=a.isActive))if(b&&
11
- (b.remove(),b=!1),f=p,o=q,clearTimeout(g),d="auto"==a._elem.style.width,e="auto"==a._elem.style.height,d||e){i=i||c(a._elem).getShadowElement();var h;d&&!e?(h=i.height(),p*=h/q,q=h):!d&&e&&(h=i.width(),q*=h/p,p=h);j=!0;setTimeout(function(){j=!1},9);i.css({width:p,height:q})}},l=function(){if(!("flash"!=a.isActive||c.prop(a._elem,"readyState")&&c.prop(this,"videoWidth"))){var i=c.prop(a._elem,"poster");if(i&&(d="auto"==a._elem.style.width,e="auto"==a._elem.style.height,d||e))b&&(b.remove(),b=!1),
12
- b=c('<img style="position: absolute; height: auto; width: auto; top: 0px; left: 0px; visibility: hidden;" />'),b.bind("load error alreadycomplete",function(){clearTimeout(g);var a=this,d=a.naturalWidth||a.width||a.offsetWidth,i=a.naturalHeight||a.height||a.offsetHeight;i&&d?(h(d,i),a=null):setTimeout(function(){d=a.naturalWidth||a.width||a.offsetWidth;i=a.naturalHeight||a.height||a.offsetHeight;h(d,i);b&&(b.remove(),b=!1);a=null},9);c(this).unbind()}).prop("src",i).appendTo("body").each(function(){this.complete||
13
- this.error?c(this).triggerHandler("alreadycomplete"):(clearTimeout(g),g=setTimeout(function(){c(a._elem).triggerHandler("error")},9999))})}};c(a._elem).bind("loadedmetadata",function(){h(c.prop(this,"videoWidth"),c.prop(this,"videoHeight"))}).bind("emptied",l).bind("swfstageresize updatemediaelementdimensions",function(){j||h(f,o)}).bind("emptied",function(){f=void 0;o=void 0}).triggerHandler("swfstageresize");l();c.prop(a._elem,"readyState")&&h(c.prop(a._elem,"videoWidth"),c.prop(a._elem,"videoHeight"))}};
14
- h.playerResize=function(a){a&&(a=t.getElementById(a.replace(F,"")))&&c(a).triggerHandler("swfstageresize")};c(t).bind("emptied",function(a){a=n(a.target);H(a)});var x;h.jwPlayerReady=function(a){var b=l(a.id),d=0,e=function(){if(!(9<d))if(d++,M(b)){if(b.wasSwfReady)c(b._elem).mediaLoad();else{var g=parseFloat(a.version,10);(5.6>g||6<=g)&&f.warn("mediaelement-swf is only testet with jwplayer 5.6+")}b.wasSwfReady=!0;b.tryedReframeing=0;N(b);H(b)}else clearTimeout(b.reframeTimer),b.reframeTimer=setTimeout(e,
15
- 9*d),2<d&&9>b.tryedReframeing&&(b.tryedReframeing++,b.shadowElem.css({overflow:"visible"}),setTimeout(function(){b.shadowElem.css({overflow:"hidden"})},16))};if(b&&b.jwapi){if(!b.tryedReframeing)b.tryedReframeing=0;clearTimeout(x);b.jwData=a;b.shadowElem.removeClass("flashblocker-assumed");c.prop(b._elem,"volume",b.volume);c.prop(b._elem,"muted",b.muted);e()}};var z=c.noop;if(w){var P={play:1,playing:1},I="play,pause,playing,canplay,progress,waiting,ended,loadedmetadata,durationchange,emptied".split(","),
16
- J=I.map(function(a){return a+".webshimspolyfill"}).join(" "),Q=function(a){var b=f.data(a.target,"mediaelement");b&&(a.originalEvent&&a.originalEvent.type===a.type)==("flash"==b.activating)&&(a.stopImmediatePropagation(),P[a.type]&&b.isActive!=b.activating&&c(a.target).pause())},z=function(a){c(a).unbind(J).bind(J,Q);I.forEach(function(b){f.moveToFirstEvent(a,b)})};z(t)}h.setActive=function(a,b,d){d||(d=f.data(a,"mediaelement"));if(d&&d.isActive!=b){"html5"!=b&&"flash"!=b&&f.warn("wrong type for mediaelement activating: "+
17
- b);var e=f.data(a,"shadowData");d.activating=b;c(a).pause();d.isActive=b;"flash"==b?(e.shadowElement=e.shadowFocusElement=d.shadowElem[0],c(a).hide().getShadowElement().show()):(c(a).show().getShadowElement().hide(),e.shadowElement=e.shadowFocusElement=!1)}};var R=function(){var a="_bufferedEnd,_bufferedStart,_metadata,_ppFlag,currentSrc,currentTime,duration,ended,networkState,paused,videoHeight,videoWidth,_callMeta,_durationCalcs".split(","),b=a.length;return function(d){if(d){var c=b,f=d.networkState;
18
- for(k(0,d);--c;)delete d[a[c]];d.actionQueue=[];d.buffered.length=0;f&&g(d._elem,"emptied")}}}(),A=function(a,b){var d=a._elem,e=a.shadowElem;c(d)[b?"addClass":"removeClass"]("webshims-controls");"audio"==a._elemNodeName&&!b?e.css({width:0,height:0}):e.css({width:d.style.width||c(d).width(),height:d.style.height||c(d).height()})};h.createSWF=function(a,b,d){if(C){1>v?v=1:v++;var e=c.extend({},j.jwVars,{image:c.prop(a,"poster")||"",file:b.srcProp}),g=c(a).data("jwvars")||{};d||(d=f.data(a,"mediaelement"));
19
- if(d&&d.swfCreated)h.setActive(a,"flash",d),R(d),d.currentSrc=b.srcProp,c.extend(e,g),j.changeJW(e,a,b,d,"load"),r(a,"sendEvent",["LOAD",e]);else{var o=c.prop(a,"controls"),i="jwplayer-"+f.getID(a),l=c.extend({},j.jwParams,c(a).data("jwparams")),k=a.nodeName.toLowerCase(),n=c.extend({},j.jwAttrs,{name:i,id:i},c(a).data("jwattrs")),m=c('<div class="polyfill-'+k+' polyfill-mediaelement" id="wrapper-'+i+'"><div id="'+i+'"></div>').css({position:"relative",overflow:"hidden"}),d=f.data(a,"mediaelement",
20
- f.objectCreate(E,{actionQueue:{value:[]},shadowElem:{value:m},_elemNodeName:{value:k},_elem:{value:a},currentSrc:{value:b.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>=d.buffered.length)f.error("buffered index size error");else return(d.duration-d._bufferedStart)*d._bufferedEnd/100+d._bufferedStart},length:0}}}));A(d,o);m.insertBefore(a);w&&c.extend(d,{volume:c.prop(a,"volume"),muted:c.prop(a,
21
- "muted")});c.extend(e,{id:i,controlbar:o?j.jwVars.controlbar||("video"==k?"over":"bottom"):"video"==k?"none":"bottom",icons:""+(o&&"video"==k)},g,{playerready:"jQuery.webshims.mediaelement.jwPlayerReady"});e.plugins=e.plugins?e.plugins+(","+G):G;f.addShadowDom(a,m);z(a);h.setActive(a,"flash",d);j.changeJW(e,a,b,d,"embed");c(a).bind("updatemediaelementdimensions",function(){A(d,c.prop(a,"controls"))});O(d);B.embedSWF(L,i,"100%","100%","9.0.0",!1,e,l,n,function(b){if(b.success)d.jwapi=b.ref,o||c(b.ref).attr("tabindex",
22
- "-1").css("outline","none"),setTimeout(function(){if(!b.ref.parentNode&&m[0].parentNode||"none"==b.ref.style.display)m.addClass("flashblocker-assumed"),c(a).trigger("flashblocker"),f.warn("flashblocker assumed");c(b.ref).css({minHeight:"2px",minWidth:"2px",display:"block"})},9),x||(clearTimeout(x),x=setTimeout(function(){var a=c(b.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"):
23
- (2>a[0].offsetWidth||2>a[0].offsetHeight)&&f.info("JS-SWF connection can't be established on hidden or unconnected flash objects")},8E3))})}}else setTimeout(function(){c(a).mediaLoad()},1)};var r=function(a,b,d,c){return(c=c||n(a))?(c.jwapi&&c.jwapi[b]?c.jwapi[b].apply(c.jwapi,d||[]):(c.actionQueue.push({fn:b,args:d}),10<c.actionQueue.length&&setTimeout(function(){5<c.actionQueue.length&&c.actionQueue.shift()},99)),c):!1};["audio","video"].forEach(function(a){var b={},d,e=function(c){"audio"==a&&
24
- ("videoHeight"==c||"videoWidth"==c)||(b[c]={get:function(){var a=n(this);return a?a[c]:w&&d[c].prop._supget?d[c].prop._supget.apply(this):E[c]},writeable:!1})},h=function(a,c){e(a);delete b[a].writeable;b[a].set=c};h("volume",function(a){var b=n(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);r(this,"sendEvent",["VOLUME",a],b);if(c)try{b.jwapi.sendEvent("mute","true")}catch(e){}a/=100;if(!(b.volume==a||"flash"!=b.isActive))b.volume=
25
- a,g(b._elem,"volumechange")}}else if(d.volume.prop._supset)return d.volume.prop._supset.apply(this,arguments)});h("muted",function(a){var b=n(this);if(b){if(a=!!a,r(this,"sendEvent",["mute",""+a],b),!(b.muted==a||"flash"!=b.isActive))b.muted=a,g(b._elem,"volumechange")}else if(d.muted.prop._supset)return d.muted.prop._supset.apply(this,arguments)});h("currentTime",function(a){var b=n(this);if(b){if(a*=1,!isNaN(a)){if(b.paused)clearTimeout(b.stopPlayPause),b.stopPlayPause=setTimeout(function(){b.paused=
26
- !0;b.stopPlayPause=!1},50);r(this,"sendEvent",["SEEK",""+a],b);if(b.paused){if(0<b.readyState)b.currentTime=a,g(b._elem,"timeupdate");try{b.jwapi.sendEvent("play","false")}catch(c){}}}}else if(d.currentTime.prop._supset)return d.currentTime.prop._supset.apply(this,arguments)});["play","pause"].forEach(function(a){b[a]={value:function(){var b=n(this);if(b)b.stopPlayPause&&clearTimeout(b.stopPlayPause),r(this,"sendEvent",["play","play"==a],b),setTimeout(function(){if("flash"==b.isActive&&(b._ppFlag=
27
- !0,b.paused!=("play"!=a)))b.paused="play"!=a,g(b._elem,a)},1);else if(d[a].prop._supvalue)return d[a].prop._supvalue.apply(this,arguments)}}});K.forEach(e);f.onNodeNamesPropertyModify(a,"controls",function(b,d){var e=n(this);c(this)[d?"addClass":"removeClass"]("webshims-controls");if(e){try{r(this,d?"showControls":"hideControls",[a],e)}catch(g){f.warn("you need to generate a crossdomain.xml")}"audio"==a&&A(e,d);c(e.jwapi).attr("tabindex",d?"0":"-1")}});d=f.defineNodeNameProperties(a,b,"prop")});if(C){var S=
28
- c.cleanData,T=c.browser.msie&&9>f.browserVersion,U={object:1,OBJECT:1};c.cleanData=function(a){var b,c,e;if(a&&(c=a.length)&&v)for(b=0;b<c;b++)if(U[a[b].nodeName]){if("sendEvent"in a[b]){v--;try{a[b].sendEvent("play",!1)}catch(f){}}if(T)try{for(e in a[b])"function"==typeof a[b][e]&&(a[b][e]=null)}catch(g){}}return S.apply(this,arguments)}}if(!w){var m=t.createElement("a");m.style.display="none";["poster","src"].forEach(function(a){f.defineNodeNamesProperty("src"==a?["audio","video","source"]:["video"],
29
- a,{prop:{get:function(){var b=this.getAttribute(a),d;if(null==b)return"";m.setAttribute("href",b+"");if(!c.support.hrefNormalized){try{c(m).appendTo(this),d=m.getAttribute("href",4)}catch(e){d=m.getAttribute("href",4)}c(m).detach()}return d||m.href},set:function(b){c.attr(this,a,b)}}})});["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},
30
- HAVE_METADATA:{value:1},HAVE_NOTHING:{value:0},NETWORK_EMPTY:{value:0},NETWORK_IDLE:{value:1},NETWORK_LOADING:{value:2},NETWORK_NO_SOURCE:{value:3}},"prop")}});
1
+ jQuery.webshims.register("mediaelement-swf",function(c,f,m,u,s,j){var h=f.mediaelement,A=m.swfobject,v=Modernizr.audio&&Modernizr.video,B=A.hasFlashPlayerVersion("9.0.115"),t=0,m={paused:!0,ended:!1,currentSrc:"",duration:m.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}},J=Object.keys(m),C={currentTime:0,volume:1,
2
+ muted:!1};Object.keys(C);var D=c.extend({isActive:"html5",activating:"html5",wasSwfReady:!1,_bufferedEnd:0,_bufferedStart:0,_metadata:!1,_durationCalcs:-1,_callMeta:!1,currentTime:0,_ppFlag:s},m,C),E=/^jwplayer-/,l=function(a){if(a=u.getElementById(a.replace(E,"")))return a=f.data(a,"mediaelement"),"third"==a.isActive?a:null},n=function(a){return(a=f.data(a,"mediaelement"))&&"third"==a.isActive?a:null},g=function(a,b){b=c.Event(b);b.preventDefault();c.event.trigger(b,s,a)},K=j.playerPath||f.cfg.basePath+
3
+ "jwplayer/"+(j.playerName||"player.swf"),F=j.pluginPath||f.cfg.basePath+"swf/jwwebshims.swf";f.extendUNDEFProp(j.jwParams,{allowscriptaccess:"always",allowfullscreen:"true",wmode:"transparent"});f.extendUNDEFProp(j.jwVars,{screencolor:"ffffffff"});f.extendUNDEFProp(j.jwAttrs,{bgcolor:"#000000"});var x=function(a,b){var d=a.duration;if(!(d&&0<a._durationCalcs)){try{if(a.duration=a.jwapi.getPlaylist()[0].duration,!a.duration||0>=a.duration||a.duration===a._lastDuration)a.duration=d}catch(e){}a.duration&&
4
+ a.duration!=a._lastDuration?(g(a._elem,"durationchange"),("audio"==a._elemNodeName||a._callMeta)&&h.jwEvents.Model.META(c.extend({duration:a.duration},b),a),a._durationCalcs--):a._durationCalcs++}},k=function(a,b){3>a&&clearTimeout(b._canplaythroughTimer);if(3<=a&&3>b.readyState)b.readyState=a,g(b._elem,"canplay"),clearTimeout(b._canplaythroughTimer),b._canplaythroughTimer=setTimeout(function(){k(4,b)},4E3);if(4<=a&&4>b.readyState)b.readyState=a,g(b._elem,"canplaythrough");b.readyState=a};c.extend(c.event.customEvent,
5
+ {updatemediaelementdimensions:!0,flashblocker:!0,swfstageresize:!0,mediaelementapichange:!0});h.jwEvents={View:{PLAY:function(a){var b=l(a.id);if(b&&!b.stopPlayPause&&(b._ppFlag=!0,b.paused==a.state)){b.paused=!a.state;if(b.ended)b.ended=!1;g(b._elem,a.state?"play":"pause")}}},Model:{BUFFER:function(a){var b=l(a.id);if(b&&"percentage"in a&&b._bufferedEnd!=a.percentage){b.networkState=100==a.percentage?1:2;(isNaN(b.duration)||5<a.percentage&&25>a.percentage||100===a.percentage)&&x(b,a);if(b.ended)b.ended=
6
+ !1;if(b.duration){2<a.percentage&&20>a.percentage?k(3,b):20<a.percentage&&k(4,b);if(b._bufferedEnd&&b._bufferedEnd>a.percentage)b._bufferedStart=b.currentTime||0;b._bufferedEnd=a.percentage;b.buffered.length=1;if(100==a.percentage)b.networkState=1,k(4,b);c.event.trigger("progress",s,b._elem,!0)}}},META:function(a,b){if(b=b&&b.networkState?b:l(a.id))if("duration"in a){if(!b._metadata||!((!a.height||b.videoHeight==a.height)&&a.duration===b.duration)){b._metadata=!0;var d=b.duration;if(a.duration)b.duration=
7
+ a.duration;b._lastDuration=b.duration;if(a.height||a.width)b.videoHeight=a.height||0,b.videoWidth=a.width||0;if(!b.networkState)b.networkState=2;1>b.readyState&&k(1,b);b.duration&&d!==b.duration&&g(b._elem,"durationchange");g(b._elem,"loadedmetadata")}}else b._callMeta=!0},TIME:function(a){var b=l(a.id);if(b&&b.currentTime!==a.position){b.currentTime=a.position;b.duration&&b.duration<b.currentTime&&x(b,a);2>b.readyState&&k(2,b);if(b.ended)b.ended=!1;g(b._elem,"timeupdate")}},STATE:function(a){var b=
8
+ l(a.id);if(b)switch(a.newstate){case "BUFFERING":if(b.ended)b.ended=!1;k(1,b);g(b._elem,"waiting");break;case "PLAYING":b.paused=!1;b._ppFlag=!0;b.duration||x(b,a);3>b.readyState&&k(3,b);if(b.ended)b.ended=!1;g(b._elem,"playing");break;case "PAUSED":if(!b.paused&&!b.stopPlayPause)b.paused=!0,b._ppFlag=!0,g(b._elem,"pause");break;case "COMPLETED":4>b.readyState&&k(4,b),b.ended=!0,g(b._elem,"ended")}}},Controller:{ERROR:function(a){var b=l(a.id);b&&h.setError(b._elem,a.message)},SEEK:function(a){var b=
9
+ l(a.id);if(b){if(b.ended)b.ended=!1;if(b.paused)try{b.jwapi.sendEvent("play","false")}catch(d){}if(b.currentTime!=a.position)b.currentTime=a.position,g(b._elem,"timeupdate")}},VOLUME:function(a){var b=l(a.id);if(b&&(a=a.percentage/100,b.volume!=a))b.volume=a,g(b._elem,"volumechange")},MUTE:function(a){if(!a.state){var b=l(a.id);if(b&&b.muted!=a.state)b.muted=a.state,g(b._elem,"volumechange")}}}};var L=function(a){var b=!0;c.each(h.jwEvents,function(d,e){c.each(e,function(c){try{a.jwapi["add"+d+"Listener"](c,
10
+ "jQuery.webshims.mediaelement.jwEvents."+d+"."+c)}catch(e){return b=!1}})});return b},M=function(a){var b=a.actionQueue.length,d=0,c;if(b&&"third"==a.isActive)for(;a.actionQueue.length&&b>d;)d++,c=a.actionQueue.shift(),a.jwapi[c.fn].apply(a.jwapi,c.args);if(a.actionQueue.length)a.actionQueue=[]},G=function(a){a&&(a._ppFlag===s&&c.prop(a._elem,"autoplay")||!a.paused)&&setTimeout(function(){if("third"==a.isActive&&(a._ppFlag===s||!a.paused))try{c(a._elem).play()}catch(b){}},1)},N=function(a){if(a&&
11
+ "video"==a._elemNodeName){var b,d,e,f,o,i,g,j,h=function(p,q){if(q&&p&&!(1>q||1>p||"third"!=a.isActive))if(b&&(b.remove(),b=!1),f=p,o=q,clearTimeout(g),d="auto"==a._elem.style.width,e="auto"==a._elem.style.height,d||e){i=i||c(a._elem).getShadowElement();var h;d&&!e?(h=i.height(),p*=h/q,q=h):!d&&e&&(h=i.width(),q*=h/p,p=h);j=!0;setTimeout(function(){j=!1},9);i.css({width:p,height:q})}},l=function(){if(!("third"!=a.isActive||c.prop(a._elem,"readyState")&&c.prop(this,"videoWidth"))){var i=c.prop(a._elem,
12
+ "poster");if(i&&(d="auto"==a._elem.style.width,e="auto"==a._elem.style.height,d||e))b&&(b.remove(),b=!1),b=c('<img style="position: absolute; height: auto; width: auto; top: 0px; left: 0px; visibility: hidden;" />'),b.bind("load error alreadycomplete",function(){clearTimeout(g);var a=this,d=a.naturalWidth||a.width||a.offsetWidth,i=a.naturalHeight||a.height||a.offsetHeight;i&&d?(h(d,i),a=null):setTimeout(function(){d=a.naturalWidth||a.width||a.offsetWidth;i=a.naturalHeight||a.height||a.offsetHeight;
13
+ h(d,i);b&&(b.remove(),b=!1);a=null},9);c(this).unbind()}).prop("src",i).appendTo("body").each(function(){this.complete||this.error?c(this).triggerHandler("alreadycomplete"):(clearTimeout(g),g=setTimeout(function(){c(a._elem).triggerHandler("error")},9999))})}};c(a._elem).bind("loadedmetadata",function(){h(c.prop(this,"videoWidth"),c.prop(this,"videoHeight"))}).bind("emptied",l).bind("swfstageresize updatemediaelementdimensions",function(){j||h(f,o)}).bind("emptied",function(){f=void 0;o=void 0}).triggerHandler("swfstageresize");
14
+ l();c.prop(a._elem,"readyState")&&h(c.prop(a._elem,"videoWidth"),c.prop(a._elem,"videoHeight"))}};h.playerResize=function(a){a&&(a=u.getElementById(a.replace(E,"")))&&c(a).triggerHandler("swfstageresize")};c(u).bind("emptied",function(a){a=n(a.target);G(a)});var w;h.jwPlayerReady=function(a){var b=l(a.id),d=0,e=function(){if(!(9<d))if(d++,L(b)){if(b.wasSwfReady)c(b._elem).mediaLoad();else{var g=parseFloat(a.version,10);(5.1>g||6<=g)&&f.warn("mediaelement-swf is only testet with jwplayer 5.6+")}b.wasSwfReady=
15
+ !0;b.tryedReframeing=0;M(b);G(b)}else clearTimeout(b.reframeTimer),b.reframeTimer=setTimeout(e,9*d),2<d&&9>b.tryedReframeing&&(b.tryedReframeing++,b.shadowElem.css({overflow:"visible"}),setTimeout(function(){b.shadowElem.css({overflow:"hidden"})},16))};if(b&&b.jwapi){if(!b.tryedReframeing)b.tryedReframeing=0;clearTimeout(w);b.jwData=a;b.shadowElem.removeClass("flashblocker-assumed");c.prop(b._elem,"volume",b.volume);c.prop(b._elem,"muted",b.muted);e()}};var y=c.noop;if(v){var O={play:1,playing:1},
16
+ H="play,pause,playing,canplay,progress,waiting,ended,loadedmetadata,durationchange,emptied".split(","),I=H.map(function(a){return a+".webshimspolyfill"}).join(" "),P=function(a){var b=f.data(a.target,"mediaelement");b&&(a.originalEvent&&a.originalEvent.type===a.type)==("third"==b.activating)&&(a.stopImmediatePropagation(),O[a.type]&&b.isActive!=b.activating&&c(a.target).pause())},y=function(a){c(a).unbind(I).bind(I,P);H.forEach(function(b){f.moveToFirstEvent(a,b)})};y(u)}h.setActive=function(a,b,
17
+ d){d||(d=f.data(a,"mediaelement"));if(d&&d.isActive!=b){"html5"!=b&&"third"!=b&&f.warn("wrong type for mediaelement activating: "+b);var e=f.data(a,"shadowData");d.activating=b;c(a).pause();d.isActive=b;"third"==b?(e.shadowElement=e.shadowFocusElement=d.shadowElem[0],c(a).addClass("swf-api-active nonnative-api-active").hide().getShadowElement().show()):(c(a).removeClass("swf-api-active nonnative-api-active").show().getShadowElement().hide(),e.shadowElement=e.shadowFocusElement=!1);c(a).trigger("mediaelementapichange")}};
18
+ var Q=function(){var a="_bufferedEnd,_bufferedStart,_metadata,_ppFlag,currentSrc,currentTime,duration,ended,networkState,paused,videoHeight,videoWidth,_callMeta,_durationCalcs".split(","),b=a.length;return function(d){if(d){var c=b,f=d.networkState;for(k(0,d);--c;)delete d[a[c]];d.actionQueue=[];d.buffered.length=0;f&&g(d._elem,"emptied")}}}(),z=function(a,b){var d=a._elem,e=a.shadowElem;c(d)[b?"addClass":"removeClass"]("webshims-controls");"audio"==a._elemNodeName&&!b?e.css({width:0,height:0}):e.css({width:d.style.width||
19
+ c(d).width(),height:d.style.height||c(d).height()})};h.createSWF=function(a,b,d){if(B){1>t?t=1:t++;var e=c.extend({},j.jwVars,{image:c.prop(a,"poster")||"",file:b.srcProp}),g=c(a).data("jwvars")||{};d||(d=f.data(a,"mediaelement"));if(d&&d.swfCreated)h.setActive(a,"third",d),Q(d),d.currentSrc=b.srcProp,c.extend(e,g),j.changeJW(e,a,b,d,"load"),r(a,"sendEvent",["LOAD",e]);else{var o=c.prop(a,"controls"),i="jwplayer-"+f.getID(a),l=c.extend({},j.jwParams,c(a).data("jwparams")),k=a.nodeName.toLowerCase(),
20
+ n=c.extend({},j.jwAttrs,{name:i,id:i},c(a).data("jwattrs")),m=c('<div class="polyfill-'+k+' polyfill-mediaelement" id="wrapper-'+i+'"><div id="'+i+'"></div>').css({position:"relative",overflow:"hidden"}),d=f.data(a,"mediaelement",f.objectCreate(D,{actionQueue:{value:[]},shadowElem:{value:m},_elemNodeName:{value:k},_elem:{value:a},currentSrc:{value:b.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>=
21
+ d.buffered.length)f.error("buffered index size error");else return(d.duration-d._bufferedStart)*d._bufferedEnd/100+d._bufferedStart},length:0}}}));z(d,o);m.insertBefore(a);v&&c.extend(d,{volume:c.prop(a,"volume"),muted:c.prop(a,"muted")});c.extend(e,{id:i,controlbar:o?j.jwVars.controlbar||("video"==k?"over":"bottom"):"video"==k?"none":"bottom",icons:""+(o&&"video"==k)},g,{playerready:"jQuery.webshims.mediaelement.jwPlayerReady"});e.plugins=e.plugins?e.plugins+(","+F):F;f.addShadowDom(a,m);y(a);h.setActive(a,
22
+ "third",d);j.changeJW(e,a,b,d,"embed");c(a).bind("updatemediaelementdimensions updateshadowdom",function(){z(d,c.prop(a,"controls"))});N(d);A.embedSWF(K,i,"100%","100%","9.0.0",!1,e,l,n,function(b){if(b.success)d.jwapi=b.ref,o||c(b.ref).attr("tabindex","-1").css("outline","none"),setTimeout(function(){if(!b.ref.parentNode&&m[0].parentNode||"none"==b.ref.style.display)m.addClass("flashblocker-assumed"),c(a).trigger("flashblocker"),f.warn("flashblocker assumed");c(b.ref).css({minHeight:"2px",minWidth:"2px",
23
+ display:"block"})},9),w||(clearTimeout(w),w=setTimeout(function(){var a=c(b.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.info("JS-SWF connection can't be established on hidden or unconnected flash objects")},8E3))})}}else setTimeout(function(){c(a).mediaLoad()},
24
+ 1)};var r=function(a,b,d,c){return(c=c||n(a))?(c.jwapi&&c.jwapi[b]?c.jwapi[b].apply(c.jwapi,d||[]):(c.actionQueue.push({fn:b,args:d}),10<c.actionQueue.length&&setTimeout(function(){5<c.actionQueue.length&&c.actionQueue.shift()},99)),c):!1};["audio","video"].forEach(function(a){var b={},d,e=function(c){"audio"==a&&("videoHeight"==c||"videoWidth"==c)||(b[c]={get:function(){var a=n(this);return a?a[c]:v&&d[c].prop._supget?d[c].prop._supget.apply(this):D[c]},writeable:!1})},h=function(a,c){e(a);delete b[a].writeable;
25
+ b[a].set=c};h("volume",function(a){var b=n(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);r(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,g(b._elem,"volumechange")}}else if(d.volume.prop._supset)return d.volume.prop._supset.apply(this,arguments)});h("muted",function(a){var b=n(this);if(b){if(a=!!a,r(this,"sendEvent",["mute",""+a],b),!(b.muted==
26
+ a||"third"!=b.isActive))b.muted=a,g(b._elem,"volumechange")}else if(d.muted.prop._supset)return d.muted.prop._supset.apply(this,arguments)});h("currentTime",function(a){var b=n(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);r(this,"sendEvent",["SEEK",""+a],b);if(b.paused){if(0<b.readyState)b.currentTime=a,g(b._elem,"timeupdate");try{b.jwapi.sendEvent("play","false")}catch(c){}}}}else if(d.currentTime.prop._supset)return d.currentTime.prop._supset.apply(this,
27
+ arguments)});["play","pause"].forEach(function(a){b[a]={value:function(){var b=n(this);if(b)b.stopPlayPause&&clearTimeout(b.stopPlayPause),r(this,"sendEvent",["play","play"==a],b),setTimeout(function(){if("third"==b.isActive&&(b._ppFlag=!0,b.paused!=("play"!=a)))b.paused="play"!=a,g(b._elem,a)},1);else if(d[a].prop._supvalue)return d[a].prop._supvalue.apply(this,arguments)}}});J.forEach(e);f.onNodeNamesPropertyModify(a,"controls",function(b,d){var e=n(this);c(this)[d?"addClass":"removeClass"]("webshims-controls");
28
+ if(e){try{r(this,d?"showControls":"hideControls",[a],e)}catch(g){f.warn("you need to generate a crossdomain.xml")}"audio"==a&&z(e,d);c(e.jwapi).attr("tabindex",d?"0":"-1")}});d=f.defineNodeNameProperties(a,b,"prop")});if(B){var R=c.cleanData,S=c.browser.msie&&9>f.browserVersion,T={object:1,OBJECT:1};c.cleanData=function(a){var b,c,e;if(a&&(c=a.length)&&t)for(b=0;b<c;b++)if(T[a[b].nodeName]){if("sendEvent"in a[b]){t--;try{a[b].sendEvent("play",!1)}catch(f){}}if(S)try{for(e in a[b])"function"==typeof a[b][e]&&
29
+ (a[b][e]=null)}catch(g){}}return R.apply(this,arguments)}}v||(["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},
30
+ NETWORK_IDLE:{value:1},NETWORK_LOADING:{value:2},NETWORK_NO_SOURCE:{value:3}},"prop"))});
@@ -0,0 +1,14 @@
1
+ jQuery.webshims.register("mediaelement-yt",function(d,e,i,r,m){var n=e.mediaelement,p=jQuery.Deferred();i.onYouTubePlayerAPIReady=function(){p.resolve()};if(i.YT&&YT.Player)i.onYouTubePlayerAPIReady();var i={paused:!0,ended:!1,currentSrc:"",duration:i.NaN,readyState:0,networkState:0,videoHeight:0,videoWidth:0,error:null,buffered:{start:function(b){if(b)e.error("buffered index size error");else return 0},end:function(b){if(b)e.error("buffered index size error");else return 0},length:0}},v=Object.keys(i),
2
+ s={currentTime:0,volume:1,muted:!1};Object.keys(s);var w=d.extend({isActive:"html5",activating:"html5",wasSwfReady:!1,_metadata:!1,_callMeta:!1,currentTime:0,_buffered:0,_ppFlag:m},i,s),k=function(b,c){c=d.Event(c);c.preventDefault();d.event.trigger(c,m,b)},x=function(){var b="_buffered,_metadata,_ppFlag,currentSrc,currentTime,duration,ended,networkState,paused,videoHeight,videoWidth,_callMeta".split(","),c=b.length;return function(a){if(a){var d=c,h=a.networkState;for(a.readyState=0;--d;)delete a[b[d]];
3
+ a.buffered.length=0;clearInterval(a._timeInterval);h&&k(a._elem,"emptied")}}}(),t=function(b){var c=b._elem;b.shadowElem.css({width:c.style.width||d(c).width(),height:c.style.height||d(c).height()})},j=function(b){return(b=e.data(b,"mediaelement"))&&"third"==b.isActive?b:null},y=function(b){var c,b=b.split("?");-1!=b[0].indexOf("youtube.com/watch")&&b[1]?(b=b[1].split("&"),d.each(b,function(a,d){d=d.split("=");if("v"==d[0])return b=d[1],c=!0,!1})):-1!=b[0].indexOf("youtube.com/v/")&&(b=b[0].split("/"),
4
+ d.each(b,function(a,d){if(c)return b=d,!1;"v"==d&&(c=!0)}));c||e.warn("no youtube id found: "+b);return b},u=function(b){b&&(b._ppFlag===m&&d.prop(b._elem,"autoplay")||!b.paused)&&setTimeout(function(){if("third"==b.isActive&&(b._ppFlag===m||!b.paused))try{d(b._elem).play()}catch(c){}},1)},q=d.noop;(function(){var b={play:1,playing:1},c="play,pause,playing,canplay,progress,waiting,ended,loadedmetadata,durationchange,emptied".split(","),a=c.map(function(a){return a+".webshimspolyfill"}).join(" "),
5
+ g=function(a){var c=e.data(a.target,"mediaelement");c&&(a.originalEvent&&a.originalEvent.type===a.type)==("third"==c.activating)&&(a.stopImmediatePropagation(),b[a.type]&&c.isActive!=c.activating&&d(a.target).pause())};q=function(b){d(b).unbind(a).bind(a,g);c.forEach(function(a){e.moveToFirstEvent(b,a)})};q(r)})();d(r).bind("emptied",function(b){b=j(b.target);u(b)});n.setActive=function(b,c,a){a||(a=e.data(b,"mediaelement"));if(a&&a.isActive!=c){"html5"!=c&&"third"!=c&&e.warn("wrong type for mediaelement activating: "+
6
+ c);var g=e.data(b,"shadowData");a.activating=c;d(b).pause();a.isActive=c;"third"==c?(g.shadowElement=g.shadowFocusElement=a.shadowElem[0],d(b).addClass("yt-api-active nonnative-api-active").hide().getShadowElement().show()):(clearInterval(a._timeInterval),d(b).removeClass("yt-api-active nonnative-api-active").show().getShadowElement().hide(),g.shadowElement=g.shadowFocusElement=!1);d(b).trigger("mediaelementapichange")}};var o=function(b,c){c._ppFlag=!0;if("playing"==b){o("play",c);if(3>c.readyState)c.readyState=
7
+ 3,k(c._elem,"canplay");d(c._elem).trigger("playing")}if("play"==b&&c.paused)c.paused=!1,k(c._elem,"play");else if("pause"==b&&!c.paused)c.paused=!0,k(c._elem,"pause")},z=function(b,c,a,e){p.done(function(){var h=function(){var c,f;if(a._metadata&&a._ytAPI.getVideoLoadedFraction){f=a._ytAPI.getVideoLoadedFraction();c=f*a.duration;if(a._buffered!==c)a._buffered=c,a.buffered.length=1,d(b).trigger("progress");if(0.99<f)a.networkState=1;if(4>a.readyState&&a.currentTime&&(9<a._buffered-a.currentTime||0.9<
8
+ f))a.readyState=4,k(a._elem,"canplaythrough")}},f=function(){if("third"==a.isActive&&a._ytAPI&&a._ytAPI.getVolume){var c=a._ytAPI.getVolume()/100,f=a._ytAPI.isMuted(),l;if(c!=a.volume)a.volume=c,l=!0;if(f!=a.muted)a.muted=f,l=!0;if(a._ytAPI&&a._ytAPI.getCurrentTime){c=a._ytAPI.getCurrentTime();if(a.currentTime!=c)a.currentTime=c,d(b).trigger("timeupdate");h()}h();l&&d(b).trigger("volumechange")}},l=function(){clearInterval(a._timeInterval);a._timeInterval=setInterval(function(){var c=a._ytAPI.getCurrentTime();
9
+ if(a.currentTime!=c)a.currentTime=c,d(b).trigger("timeupdate")},350)};a._ytAPI=new YT.Player(c,{height:"100%",width:"100%",playerVars:{allowfullscreen:!0,fs:1,rel:0,showinfo:0,autohide:1,controls:d.prop(b,"controls")?1:0},videoId:e,events:{onReady:function(){u(a);setTimeout(f,9);setInterval(f,5E3)},onStateChange:function(c){if(c.target.getDuration){var e;if(!a._metadata){var g=c.target.getDuration();if(g){a._metadata=!0;a.duration=g;if(1>a.readyState)a.readyState=1;if(1>a.networkState)a.networkState=
10
+ 2;e=!0}}e&&d(b).trigger("durationchange").trigger("loadedmetadata");setTimeout(f,9);if(1==c.data)o("playing",a),l();else if(2==c.data)clearInterval(a._timeInterval),o("pause",a);else if(3==c.data){if(2<a.readyState)a.readyState=2;a.networkState=2;d(b).trigger("waiting")}else if(0===c.data){if(4<a.readyState)a.readyState=4;a.networkState=1;clearInterval(a._timeInterval);d(b).trigger("ended")}}}}});d(b).bind("updateytdata",f)})};n.createSWF=function(b,c,a){a||(a=e.data(b,"mediaelement"));var g=y(c.src);
11
+ if(a)n.setActive(b,"third",a),x(a),a.currentSrc=c.srcProp,p.done(function(){a._ytAPI.loadVideoById&&a._ytAPI.loadVideoById(g)});else{d.prop(b,"controls");var h="yt-"+e.getID(b),f=d('<div class="polyfill-video polyfill-mediaelement" id="wrapper-'+h+'"><div id="'+h+'"></div>').css({position:"relative",overflow:"hidden"}),a=e.data(b,"mediaelement",e.objectCreate(w,{shadowElem:{value:f},_elem:{value:b},currentSrc:{value:c.srcProp},buffered:{value:{start:function(b){if(b>=a.buffered.length)e.error("buffered index size error");
12
+ else return 0},end:function(b){if(b>=a.buffered.length)e.error("buffered index size error");else return a._buffered},length:0}}}));t(a);f.insertBefore(b);e.addShadowDom(b,f);n.setActive(b,"third",a);q(b);z(b,h,a,g);d(b).bind("updatemediaelementdimensions updateshadowdom",function(){t(a)})}};(function(){var b=function(a){clearTimeout(a.updateDataTimer);a.updateDataTimer=setTimeout(function(){d(a._elem).triggerHandler("updateytdata")},9)},c={},a,g=function(b){c[b]={get:function(){var c=j(this);return c?
13
+ c[b]:a[b].prop._supget.apply(this)},writeable:!1}},h=function(a,b){g(a);delete c[a].writeable;c[a].set=b};v.forEach(g);h("currentTime",function(c){var d=j(this);if(d)c*=1,!isNaN(c)&&d._ytAPI&&d._ytAPI.seekTo&&(d._ytAPI.seekTo(c),b(d));else return a.currentTime.prop._supset.apply(this,arguments)});h("muted",function(c){var d=j(this);if(d)d._ytAPI&&d._ytAPI.mute&&(d._ytAPI[c?"mute":"unMute"](),b(d));else return a.muted.prop._supset.apply(this,arguments)});h("volume",function(c){var d=j(this);if(d)c*=
14
+ 100,!isNaN(c)&&d._ytAPI&&d._ytAPI.setVolume&&((0>c||100<c)&&e.error("volume greater or less than allowed "+c/100),d._ytAPI.setVolume(c),b(d));else return a.volume.prop._supset.apply(this,arguments)});d.each(["play","pause"],function(b,d){var e=d+"Video";c[d]={value:function(){var b=j(this);if(b)b._ytAPI&&b._ytAPI[e]&&(b._ytAPI[e](),o(d,b));else return a[d].prop._supvalue.apply(this,arguments)}}});a=e.defineNodeNameProperties("video",c,"prop")})()});
@@ -1,6 +1,6 @@
1
1
  article,aside,canvas,details,figcaption,figure,
2
2
  footer,header,hgroup,menu,nav,section,summary {
3
- display:block;
3
+ display:block;
4
4
  }
5
5
  audio {
6
6
  display: none;
@@ -26,6 +26,50 @@ audio * {
26
26
  min-height: 20px;
27
27
  min-width: 20px;
28
28
  }
29
+ .cue-display {
30
+ position: absolute !important;
31
+ margin: 0;
32
+ padding: 0px !important;
33
+ max-width: 100% !important;
34
+ max-height: 100% !important;
35
+ border: none !important;
36
+ background: none !important;
37
+ text-align: center;
38
+ visibility: hidden;
39
+ font-family: sans-serif;
40
+ font-size: 12px;
41
+ white-space: pre-wrap;
42
+ overflow: hidden;
43
+ }
44
+ .cue-display b {
45
+ font-weight: bold;
46
+ }
47
+ .cue-display i {
48
+ font-style: italic;
49
+ }
50
+ .cue-display u {
51
+ text-decoration: underline;
52
+ }
53
+ .cue-display span.cue-wrapper {
54
+ position: absolute;
55
+ left: 0;
56
+ bottom: 0;
57
+ right: 0;
58
+ display: block;
59
+ padding: 0;
60
+ margin: 0;
61
+ width: 100%;
62
+ font-size: 160%;
63
+ color: #fff;
64
+ visibility: visible !important;
65
+ }
66
+ .cue-display span.cue {
67
+ display: inline-block;
68
+ padding: 3px 5px;
69
+ background: #000;
70
+ background: rgba(0,0,0,0.8);
71
+ color: #fff;
72
+ }
29
73
  mark {
30
74
  background-color: #ff9;
31
75
  color: #000;
@@ -36,7 +80,6 @@ mark {
36
80
  /* reset */
37
81
  .input-range .ui-slider-range,
38
82
  .placeholder-box,
39
- .placeholder-box,
40
83
  .placeholder-text,
41
84
  .input-datetime-local,
42
85
  .step-controls,
@@ -55,6 +98,19 @@ output {
55
98
  position: relative;
56
99
  }
57
100
 
101
+ .webshims-visual-hide {
102
+ position: absolute !important;
103
+ top: 0 !important;
104
+ left: 0 !important;
105
+ visibility: hidden !important;
106
+ width: 0 !important;
107
+ height: 0 !important;
108
+ overflow: hidden !important;
109
+ }
110
+
111
+ .webshims-visual-hide * {
112
+ visibility: hidden !important;
113
+ }
58
114
 
59
115
  /* placeholder */
60
116
  .placeholder-box {
@@ -65,7 +121,6 @@ output {
65
121
  .polyfill-important .placeholder-box {
66
122
  position: relative !important;
67
123
  display: inline-block !important;
68
- overflow: hidden !important;
69
124
  margin: 0 !important;
70
125
  padding: 0 !important;
71
126
  width: auto !important;
@@ -104,13 +159,15 @@ output {
104
159
  .placeholder-visible {
105
160
  color: #999;
106
161
  }
107
- .placeholder-visible .placeholder-text {
162
+ .placeholder-visible .placeholder-text,
163
+ .placeholder-text.placeholder-visible {
108
164
  display: inline-block;
109
165
  }
110
166
  .placeholder-focused.placeholder-visible {
111
167
  color: #ccc;
112
168
  }
113
- .polyfill-important .placeholder-visible .placeholder-text {
169
+ .polyfill-important .placeholder-visible .placeholder-text,
170
+ .polyfill-important .placeholder-text.placeholder-visible {
114
171
  display: inline-block !important;
115
172
  }
116
173
 
@@ -500,6 +557,7 @@ datalist {
500
557
  position: absolute !important;
501
558
  overflow: hidden;
502
559
  padding: 0 6px 6px 0;
560
+ font: 12px/140% sans-serif;
503
561
  z-index: 1000000000;
504
562
 
505
563
  }
@@ -511,9 +569,10 @@ datalist {
511
569
  display: inline-block !important;
512
570
  background: #fafafa;
513
571
  color: #000;
514
- border: 1px solid #000;
572
+ border: 1px solid #ccc;
515
573
  padding: 5px;
516
- border-radius: 2px;
574
+ border-radius: 5px;
575
+ box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
517
576
  zoom: 1 !important;
518
577
  min-width: 60px;
519
578
  }
@@ -528,16 +587,18 @@ datalist {
528
587
  border-left: 9px solid transparent;
529
588
  border-right: 9px solid transparent;
530
589
 
531
- border-bottom: 7px solid #000;
590
+ border-bottom: 7px solid #ccc;
532
591
  border-top: none;
533
592
  zoom: 1;
534
593
  font-size: 0;
535
594
  }
536
- html .validity-alert span.va-arrow {
595
+ html .validity-alert span.va-arrow,
596
+ html .validity-alert .va-arrow .va-arrow-box{
537
597
  border-left-color: transparent;
538
598
  border-right-color: transparent;
539
599
  }
540
- .polyfill-important .validity-alert span.va-arrow {
600
+ .polyfill-important .validity-alert span.va-arrow,
601
+ .polyfill-important .validity-alert .va-arrow .va-arrow-box {
541
602
  border-left-color: transparent !important;
542
603
  border-right-color: transparent !important;
543
604
  }