webshims-rails 0.1 → 0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/webshims-rails/version.rb +2 -2
- data/vendor/assets/javascripts/webshims/minified/extras/custom-validity.js +9 -9
- data/vendor/assets/javascripts/webshims/minified/polyfiller.js +28 -27
- data/vendor/assets/javascripts/webshims/minified/shims/combos/10.js +75 -74
- data/vendor/assets/javascripts/webshims/minified/shims/combos/11.js +41 -39
- data/vendor/assets/javascripts/webshims/minified/shims/combos/12.js +6 -6
- data/vendor/assets/javascripts/webshims/minified/shims/combos/16.js +54 -53
- data/vendor/assets/javascripts/webshims/minified/shims/combos/17.js +62 -61
- data/vendor/assets/javascripts/webshims/minified/shims/combos/18.js +58 -64
- data/vendor/assets/javascripts/webshims/minified/shims/combos/19.js +62 -60
- data/vendor/assets/javascripts/webshims/minified/shims/combos/2.js +62 -60
- data/vendor/assets/javascripts/webshims/minified/shims/combos/20.js +43 -42
- data/vendor/assets/javascripts/webshims/minified/shims/combos/21.js +41 -39
- data/vendor/assets/javascripts/webshims/minified/shims/combos/22.js +48 -47
- data/vendor/assets/javascripts/webshims/minified/shims/combos/23.js +51 -49
- data/vendor/assets/javascripts/webshims/minified/shims/combos/24.js +75 -73
- data/vendor/assets/javascripts/webshims/minified/shims/combos/3.js +83 -79
- data/vendor/assets/javascripts/webshims/minified/shims/combos/4.js +27 -27
- data/vendor/assets/javascripts/webshims/minified/shims/combos/5.js +34 -33
- data/vendor/assets/javascripts/webshims/minified/shims/combos/59.js +58 -55
- data/vendor/assets/javascripts/webshims/minified/shims/combos/6.js +29 -38
- data/vendor/assets/javascripts/webshims/minified/shims/combos/7.js +37 -45
- data/vendor/assets/javascripts/webshims/minified/shims/combos/8.js +33 -33
- data/vendor/assets/javascripts/webshims/minified/shims/combos/9.js +57 -56
- data/vendor/assets/javascripts/webshims/minified/shims/form-core.js +21 -21
- data/vendor/assets/javascripts/webshims/minified/shims/form-datalist.js +21 -19
- data/vendor/assets/javascripts/webshims/minified/shims/form-message.js +5 -5
- data/vendor/assets/javascripts/webshims/minified/shims/form-native-extend.js +8 -7
- data/vendor/assets/javascripts/webshims/minified/shims/form-native-fix.js +5 -9
- data/vendor/assets/javascripts/webshims/minified/shims/form-number-date-api.js +8 -12
- data/vendor/assets/javascripts/webshims/minified/shims/form-number-date-ui.js +21 -26
- data/vendor/assets/javascripts/webshims/minified/shims/form-output.js +1 -1
- data/vendor/assets/javascripts/webshims/minified/shims/form-shim-extend.js +28 -26
- data/vendor/assets/javascripts/webshims/minified/shims/mediaelement-core.js +7 -7
- data/vendor/assets/javascripts/webshims/minified/shims/mediaelement-swf.js +29 -28
- data/vendor/assets/javascripts/webshims/minified/shims/styles/shim.css +24 -19
- metadata +4 -4
@@ -1,9 +1,9 @@
|
|
1
|
-
(function(b,h
|
2
|
-
g.refreshCustomValidityRules=function(
|
3
|
-
g.refreshCustomValidityRules;g.ready("forms",function(){
|
4
|
-
|
5
|
-
(function(b,h
|
6
|
-
b(c.form&&c.form[d]||
|
7
|
-
1;0<=n;n--){
|
8
|
-
|
9
|
-
f):b(a.masterElement).bind("change",function(){b.webshims.refreshCustomValidityRules(c)})}if("value"==a.prop&&!
|
1
|
+
(function(b,e,h){if(!b.webshims){var i=navigator.browserLanguage||navigator.language||b("html").attr("lang")||"";b.webshims={addReady:function(a){b(function(){a(h,b([]))})},ready:function(a,b){b()},activeLang:function(){return i}}}var g=b.webshims,j={},k=!1,c,d,a=function(a){g.refreshCustomValidityRules(a.target)};g.customErrorMessages={};g.addCustomValidityRule=function(a,c,d){j[a]=c;g.customErrorMessages[a]||(g.customErrorMessages[a]=[],g.customErrorMessages[a][""]=d||a);b.isReady&&k&&b("input, select, textarea").each(function(){f(this)})};
|
2
|
+
g.refreshCustomValidityRules=function(a){if(a.form&&(d||b.prop(a,"willValidate"))){c=!0;var f=b.data(a,"customMismatchedRule"),h=b.prop(a,"validity")||{},e="";if(f||!h.customError){var i=b(a).val();b.each(j,function(b,c){e=c(a,i)||"";f=b;if(e)return"string"!=typeof e&&(e=a.getAttribute("x-moz-errormessage")||a.getAttribute("data-errormessage")||g.customErrorMessages[b][g.activeLang()]||g.customErrorMessages[b][""]),!1});e&&b.data(a,"customMismatchedRule",f);b(a).setCustomValidity(e)}c=!1}};var f=
|
3
|
+
g.refreshCustomValidityRules;g.ready("forms",function(){k=!0;var e=b.fn.setCustomValidity||function(a){return this.each(function(){this.setCustomValidity&&this.setCustomValidity(a)})};b.fn.setCustomValidity=function(a){c||this.data("customMismatchedRule","");return e.apply(this,arguments)};h.addEventListener&&h.createElement("form").checkValidity&&h.addEventListener("change",a,!0);g.addReady(function(a,c){d=!0;b("input, select, textarea",a).add(c.filter("input, select, textarea")).each(function(){f(this)});
|
4
|
+
d=!1});b(h).bind("refreshCustomValidityRules",a)})})(jQuery,window,document);
|
5
|
+
(function(b,e,h){e=b.webshims.addCustomValidityRule;e("partialPattern",function(c,d){if(d&&c.getAttribute("data-partial-pattern")){var a=b(c).data("partial-pattern");return!a?void 0:!RegExp("("+a+")","i").test(d)}},"This format is not allowed here.");e("tooShort",function(c,d){return!d||!c.getAttribute("data-minlength")?void 0:b(c).data("minlength")>d.length},"Entered value is too short.");var i={};e("group-required",function(c){var d=c.name;if(d&&"checkbox"===c.type&&b(c).hasClass("group-required")){var a=
|
6
|
+
b(c.form&&c.form[d]||h.getElementsByName(d)),c=a.filter(":checked");i[d]&&clearTimeout(i[d]);i[d]=setTimeout(function(){a.unbind("click.groupRequired").bind("click.groupRequired",function(){a.filter(".group-required").each(function(){b.webshims.refreshCustomValidityRules(this)})})},9);return!c[0]}},"Please check one of these checkboxes.");var g=/[^0-9-]+/;e("creditcard",function(c,d){if(d&&b(c).hasClass("creditcard-input")){if(!g.test(d))return!0;var a=0,f=0,e=!1,d=d.replace(/\D/g,"");for(n=d.length-
|
7
|
+
1;0<=n;n--){f=d.charAt(n);f=parseInt(f,10);if(e&&9<(f*=2))f-=9;a+=f;e=!e}return 0!==a%10}},"Please enter a valid credit card number");var j={prop:"value","from-prop":"value",toggle:!1},k=b.webshims.modules&&b.webshims.modules["form-core"].getGroupElements||function(c){return b(c.form[c.name]).filter('[type="radio"]')};e("dependent",function(c,d){if(c.getAttribute("data-dependent-validation")){var a=b(c).data("dependentValidation"),f;if(a){var e=function(){var d=b.prop(a.masterElement,a["from-prop"]);
|
8
|
+
f&&(d=-1!==b.inArray(d,f));a.toggle&&(d=!d);b.prop(c,a.prop,d)};if(!a._init||!a.masterElement){"string"==typeof a&&(a={from:a});a.masterElement=h.getElementById(a.from)||h.getElementsByName(a.from||[])[0];if(!a.masterElement||!a.masterElement.form)return;if(/radio|checkbox/i.test(a.masterElement.type)){if(a["from-prop"]||(a["from-prop"]="checked"),!a.prop&&"checked"==a["from-prop"])a.prop="disabled"}else a["from-prop"]||(a["from-prop"]="value");0===a["from-prop"].indexOf("value:")&&(f=a["from-prop"].replace("value:",
|
9
|
+
"").split("||"),a["from-prop"]="value");a=b.data(c,"dependentValidation",b.extend({_init:!0},j,a));"value"!==a.prop||f?("radio"===a.masterElement.type&&k||b)(a.masterElement).bind("change",e):b(a.masterElement).bind("change",function(){b.webshims.refreshCustomValidityRules(c)})}if("value"==a.prop&&!f)return b.prop(a.masterElement,"value")!=d;e();return""}}},"The value of this field does not repeat the value of the other field")})(jQuery,window,document);
|
@@ -1,27 +1,28 @@
|
|
1
|
-
(function(
|
2
|
-
waitReady:!0,extendNative:!0,loadStyles:!0,basePath:function(){var a=
|
3
|
-
b||{},e=
|
4
|
-
600);
|
5
|
-
b){
|
6
|
-
b){if(
|
7
|
-
b){document.addEventListener&&("string"==typeof a&&(a=[a]),
|
8
|
-
e.d?q(e.d,f):f()}}else d.warn("can't find module: "+a)},c:{},loader:{addModule:function(a,
|
9
|
-
d){!e(d,
|
10
|
-
h),g.push(i.name));for(j=0,h=g.length;j<h;j++)k=!1,i=g[j],-1==
|
11
|
-
loadScript:function(){var a=[];return function(
|
12
|
-
|
13
|
-
this};d.activeLang=function(){var a=navigator.browserLanguage||navigator.language||"";q("webshimLocalization",function(){d.activeLang(a)});return function(
|
14
|
-
c.isReady;if(
|
15
|
-
|
16
|
-
|
17
|
-
function(){return this}})})();(function(){var a=p.prototype.hasOwnProperty,
|
18
|
-
b,c){e(c);return p.defineProperty(a,b,c)});if(p.defineProperties)d.defineProperties=function(a,b){f(b);return p.defineProperties(a,b)};d.getOwnPropertyDescriptor=p.getOwnPropertyDescriptor;d.getPrototypeOf=p.getPrototypeOf})();
|
19
|
-
window}});
|
20
|
-
test:g.canvas,options:{type:"excanvas"},noAutoCallback:!0,loadInit:function(){var
|
21
|
-
d){
|
22
|
-
!
|
23
|
-
"
|
24
|
-
2,23,21]
|
25
|
-
|
26
|
-
"
|
27
|
-
|
1
|
+
(function(b){if(window.jQuery)b(jQuery),b=jQuery.noop;"function"===typeof define&&define.amd&&define.amd.jQuery&&define("polyfiller",["jquery"],b)})(function(b){var B=b(document.scripts||"script"),o=b.event.special,C=b([]),g=window.Modernizr,r=window.asyncWebshims,A=g.addTest,x=parseFloat(b.browser.version,10),p=window.Object,E=window.html5||{};g.genericDOM=!!b("<video><div></div></video>")[0].innerHTML;g.advancedObjectProperties=g.objectAccessor=g.ES5=!!("create"in p&&"seal"in p);var d={version:"1.8.10",
|
2
|
+
cfg:{useImportantStyles:!0,waitReady:!0,extendNative:!0,loadStyles:!0,disableShivMethods:!0,basePath:function(){var a=B.filter('[src*="polyfiller.js"]'),a=a[0]||a.end()[a.end().length-1],a=(b.support.hrefNormalized?a.src:a.getAttribute("src",4)).split("?")[0];return a=a.slice(0,a.lastIndexOf("/")+1)+"shims/"}()},bugs:{},browserVersion:x,modules:{},features:{},featureList:[],setOptions:function(a,c){"string"==typeof a&&void 0!==c?j[a]=!b.isPlainObject(c)?c:b.extend(!0,j[a]||{},c):"object"==typeof a&&
|
3
|
+
b.extend(!0,j,a)},addPolyfill:function(a,c){var c=c||{},e=c.f||a;if(!n[e])n[e]=[],n[e].delayReady=0,d.featureList.push(e),j[e]={};n[e].push(a);c.options=b.extend(j[e],c.options);y(a,c);c.methodNames&&b.each(c.methodNames,function(a,b){d.addMethodName(b)})},polyfill:function(){var a=function(c){var f=[],h;if(j.disableShivMethods&&g.genericDOM&&"html5Clone"in b.support)E.shivMethods=!1;var i=function(){b("html").removeClass("loading-polyfills long-loading-polyfills");b(window).unbind(".lP");clearTimeout(h)};
|
4
|
+
f.push("loading-polyfills");b(window).bind("load.lP error.lP",i);h=setTimeout(function(){b("html").addClass("long-loading-polyfills")},600);j.waitReady&&b.isReady&&d.warn("Call webshims.polyfill before DOM-Ready or set waitReady to false.");q(c,i);j.useImportantStyles&&f.push("polyfill-important");f[0]&&b("html").addClass(f.join(" "));j.loadStyles&&s.loadCSS("styles/shim.css");a=b.noop},c;return function(e){var f=[],e=e||d.featureList;"string"==typeof e&&(e=e.split(" "));c||(c=-1!==b.inArray("forms",
|
5
|
+
e),!c&&-1!==b.inArray("forms-ext",e)&&(e.push("forms"),c=!0));j.waitReady&&(b.readyWait++,q(e,function(){b.ready(!0)}));b.each(e,function(a,b){n[b]?(b!==n[b][0]&&q(n[b],function(){k(b,!0)}),f=f.concat(n[b])):(d.warn("could not find webshims-feature (aborted): "+b),k(b,!0))});a(e);t(f)}}(),reTest:function(){var a,c,e=function(e,h){var i=m[h],d=h+"Ready",g;if(i&&!i.loaded&&!(i.test&&b.isFunction(i.test)?i.test([]):i.test)){o[d]&&delete o[d];if((g=n[i.f])&&!c)g.delayReady++,q(h,function(){g.delayReady--;
|
6
|
+
k(i.f,g.callReady)});a.push(h)}};return function(d,h){c=h;"string"==typeof d&&(d=d.split(" "));a=[];b.each(d,e);t(a)}}(),isReady:function(a,c){if(n[a]&&0<n[a].delayReady){if(c)n[a].callReady=!0;return!1}a+="Ready";if(c){if(o[a]&&o[a].add)return!0;o[a]=b.extend(o[a]||{},{add:function(b){b.handler.call(this,a)}});b.event.trigger(a)}return!(!o[a]||!o[a].add)||!1},ready:function(a,c,e){"string"==typeof a&&(a=a.split(" "));e||(a=b.map(b.grep(a,function(a){return!k(a)}),function(a){return a+"Ready"}));
|
7
|
+
a.length?(e=a.shift(),b(document).one(e,function(){q(a,c,!0)})):c(b,d,window,document)},fixHTML5:function(a){return a},capturingEvents:function(a,c){document.addEventListener&&("string"==typeof a&&(a=[a]),b.each(a,function(a,f){var h=function(a){a=b.event.fix(a);c&&d.capturingEventPrevented&&d.capturingEventPrevented(a);return b.event.handle.call(this,a)};o[f]=o[f]||{};!o[f].setup&&!o[f].teardown&&b.extend(o[f],{setup:function(){this.addEventListener(f,h,!0)},teardown:function(){this.removeEventListener(f,
|
8
|
+
h,!0)}})}))},register:function(a,c){var e=m[a];if(e){if(e.noAutoCallback){var f=function(){c(b,d,window,document,void 0,e.options);k(a,!0)};e.d?q(e.d,f):f()}}else d.warn("can't find module: "+a)},c:{},loader:{addModule:function(a,c){m[a]=c;c.name=c.name||a;if(!c.c)c.c=[];b.each(c.c,function(b,c){d.c[c]||(d.c[c]=[]);d.c[c].push(a)})},loadList:function(){var a=[],c=function(c,e){"string"==typeof e&&(e=[e]);b.merge(a,e);s.loadScript(c,!1,e)},e=function(c,e){if(k(c)||-1!=b.inArray(c,a))return!0;var d=
|
9
|
+
m[c];if(d)if(d=d.test&&b.isFunction(d.test)?d.test(e):d.test)k(c,!0);else return!1;return!0},f=function(a,c){if(a.d&&a.d.length){var d=function(a,d){!e(d,c)&&-1==b.inArray(d,c)&&c.push(d)};b.each(a.d,function(a,c){m[c]?d(a,c):n[c]&&(b.each(n[c],d),q(n[c],function(){k(c,!0)}))});if(!a.noAutoCallback)a.noAutoCallback=!0}};return function(h){var i,g=[],j,k,l=function(e,h){k=h;b.each(d.c[h],function(c,d){if(-1==b.inArray(d,g)||-1!=b.inArray(d,a))return k=!1});if(k)return c("combos/"+k,d.c[k]),!1};for(j=
|
10
|
+
0;j<h.length;j++)i=m[h[j]],!i||e(i.name,h)?i||d.warn("could not find: "+h[j]):(i.css&&s.loadCSS(i.css),i.loadInit&&i.loadInit(),i.loaded=!0,f(i,h),g.push(i.name));for(j=0,h=g.length;j<h;j++)k=!1,i=g[j],-1==b.inArray(i,a)&&("noCombo"!=d.debug&&b.each(m[i].c,l),k||c(m[i].src||i,i))}}(),makePath:function(a){if(-1!=a.indexOf("//")||0===a.indexOf("/"))return a;-1==a.indexOf(".")&&(a+=".js");j.addCacheBuster&&(a+=j.addCacheBuster);return j.basePath+a},loadCSS:function(){var a,c=[];return function(d){d=
|
11
|
+
this.makePath(d);-1==b.inArray(d,c)&&(a=a||b("link, style")[0]||b("script")[0],c.push(d),b('<link rel="stylesheet" />').insertBefore(a).attr({href:d}))}}(),loadScript:function(){var a=[];return function(c,d,f){c=s.makePath(c);if(-1==b.inArray(c,a)){var h=function(){h=null;d&&d();f&&("string"==typeof f&&(f=f.split(" ")),b.each(f,function(a,c){m[c]&&(m[c].afterLoad&&m[c].afterLoad(),k(!m[c].noAutoCallback?c:c+"FileLoaded",!0))}))};a.push(c);window.require?require([c],h):window.sssl?sssl(c,h):window.yepnope?
|
12
|
+
yepnope.injectJs(c,h):window.steal&&steal(c).then(h)}}}()}};b.webshims=d;var x=("https:"==location.protocol?"https://":"http://")+"ajax.googleapis.com/ajax/libs/",D=x+"jqueryui/1.8.18/",j=d.cfg,n=d.features,k=d.isReady,q=d.ready,l=d.addPolyfill,m=d.modules,s=d.loader,t=s.loadList,y=s.addModule,u=[],F={warn:1,error:1};d.addMethodName=function(a){var a=a.split(":"),c=a[1];1==a.length&&(c=a[0]);a=a[0];b.fn[a]=function(){return this.callProp(c,arguments)}};b.fn.callProp=function(a,c){var e;c||(c=[]);
|
13
|
+
this.each(function(){var f=b.prop(this,a);if(f&&f.apply){if(e=f.apply(this,c),void 0!==e)return!1}else d.warn(a+" is not a method of "+this)});return void 0!==e?e:this};d.activeLang=function(){var a=navigator.browserLanguage||navigator.language||"";q("webshimLocalization",function(){d.activeLang(a)});return function(c){if(c)if("string"==typeof c)a=c;else if("object"==typeof c){var b=arguments,f=this;q("webshimLocalization",function(){d.activeLang.apply(f,b)})}return a}}();b.each(["log","error","warn",
|
14
|
+
"info"],function(a,c){d[c]=function(a){if((F[c]&&!1!==d.debug||d.debug)&&window.console&&console.log)return console[console[c]?c:"log"](a)}});(function(){b.isDOMReady=b.isReady;if(b.isDOMReady)k("DOM",!0);else{var a=b.ready;b.ready=function(c){if(!0!==c&&!b.isDOMReady)document.body?(b.isDOMReady=!0,k("DOM",!0),b.ready=a):setTimeout(function(){b.ready(c)},13);return a.apply(this,arguments)}}b(function(){b.isDOMReady=!0;k("DOM",!0);setTimeout(function(){k("WINDOWLOAD",!0)},9999)});b(window).load(function(){k("DOM",
|
15
|
+
!0);k("WINDOWLOAD",!0)})})();(function(){var a=[];b.extend(d,{addReady:function(c){var b=function(a,b){d.ready("DOM",function(){c(a,b)})};a.push(b);b(document,C)},triggerDomUpdate:function(c){if(!c||!c.nodeType)c&&c.jquery&&c.each(function(){d.triggerDomUpdate(this)});else{var e=c.nodeType;if(!(1!=e&&9!=e)){var f=c!==document?b(c):C;b.each(a,function(a,b){b(c,f)})}}}});b.fn.htmlPolyfill=function(a){a=b.fn.html.call(this,a?d.fixHTML5(a):a);a===this&&b.isDOMReady&&this.each(function(){1==this.nodeType&&
|
16
|
+
d.triggerDomUpdate(this)});return a};b.each(["after","before","append","prepend","replaceWith"],function(a,e){b.fn[e+"Polyfill"]=function(a){a=b(d.fixHTML5(a));b.fn[e].call(this,a);b.isDOMReady&&a.each(function(){1==this.nodeType&&d.triggerDomUpdate(this)});return this}});b.each(["insertAfter","insertBefore","appendTo","prependTo","replaceAll"],function(a,e){b.fn[e.replace(/[A-Z]/,function(a){return"Polyfill"+a})]=function(){b.fn[e].apply(this,arguments);d.triggerDomUpdate(this);return this}});b.fn.updatePolyfill=
|
17
|
+
function(){d.triggerDomUpdate(this);return this};b.each(["getNativeElement","getShadowElement","getShadowFocusElement"],function(a,d){b.fn[d]=function(){return this}})})();(function(){var a=p.prototype.hasOwnProperty,c=["configurable","enumerable","writable"],e=function(a){for(var b=0;3>b;b++)if(void 0===a[c[b]]&&("writable"!==c[b]||void 0!==a.value))a[c[b]]=!0},f=function(b){if(b)for(var c in b)a.call(b,c)&&e(b[c])};if(p.create)d.objectCreate=function(a,c,d){f(c);a=p.create(a,c);if(d)a.options=b.extend(!0,
|
18
|
+
{},a.options||{},d),d=a.options;a._create&&b.isFunction(a._create)&&a._create(d);return a};p.defineProperty&&(d.defineProperty=function(a,b,c){e(c);return p.defineProperty(a,b,c)});if(p.defineProperties)d.defineProperties=function(a,b){f(b);return p.defineProperties(a,b)};d.getOwnPropertyDescriptor=p.getOwnPropertyDescriptor;d.getPrototypeOf=p.getPrototypeOf})();y("jquery-ui",{src:D+"jquery-ui.min.js",test:function(){return!(!b.widget||!b.Widget)}});y("input-widgets",{src:"",test:function(){return!this.src||
|
19
|
+
!(b.widget&&(!b.fn.datepicker||!b.fn.slider))}});y("swfobject",{src:x+"swfobject/2.2/swfobject.js",test:function(){return"swfobject"in window}});l("es5",{test:!(!g.ES5||!Function.prototype.bind),c:[10,1,22]});l("dom-extend",{f:"dom-support",noAutoCallback:!0,d:["es5"],c:[10,9,12,17,16,8,1,24,19,11,13]});"localstorage"in g&&l("json-storage",{test:g.localstorage&&"sessionStorage"in window&&"JSON"in window,loadInit:function(){t(["swfobject"])},noAutoCallback:!0,c:[14]});"geolocation"in g&&l("geolocation",
|
20
|
+
{test:g.geolocation,options:{destroyWrite:!0},d:["json-storage"],c:[14,15]});(function(){if("canvas"in g){var a;l("canvas",{src:"excanvas",test:g.canvas,options:{type:"excanvas"},noAutoCallback:!0,loadInit:function(){var c=this.options.type;if(c&&-1!==c.indexOf("flash")&&(!window.swfobject||swfobject.hasFlashPlayerVersion("9.0.0")))window.FlashCanvasOptions=window.FlashCanvasOptions||{},a=FlashCanvasOptions,"flash"==c?(b.extend(a,{swfPath:j.basePath+"FlashCanvas/"}),this.src="FlashCanvas/flashcanvas"):
|
21
|
+
(b.extend(a,{swfPath:j.basePath+"FlashCanvasPro/"}),this.src="FlashCanvasPro/flashcanvas")},afterLoad:function(){d.addReady(function(a,d){b("canvas",a).add(d.filter("canvas")).each(function(){!this.getContext&&window.G_vmlCanvasManager&&G_vmlCanvasManager.initElement(this)});a==document&&k("canvas",!0)})},methodNames:["getContext"],d:["dom-support"]})}})();var z=g.input,v=g.inputtypes;if(z&&v){var w;A("formvalidation",function(){return!(!z.required||!z.pattern)});if(g.formvalidation)d.bugs.bustedValidity=
|
22
|
+
!(b('<input type="date" value="1488-12-11" />')[0].validity||{valid:!0}).valid||!("required"in b("<select />")[0]);A("styleableinputrange",function(){if(!v.range)return!1;var a=document.createElement("input");a.setAttribute("type","range");return void 0!==a.style.WebkitAppearance});d.validationMessages=d.validityMessages=[];d.inputTypes={};l("form-core",{f:"forms",d:["es5"],test:function(){if(w.lightweightDatalist&&!this.datalistLoaded)this.datalistLoaded=!0,m["form-datalist"].f="forms",d.reTest(["form-datalist"]);
|
23
|
+
return!1},options:{placeholderType:"value",langSrc:"i18n/errormessages-",availabeLangs:"ar,ch-ZN,el,es,fr,he,hi,hu,it,ja,nl,pt-PT,ru".split(",")},methodNames:["setCustomValidity","checkValidity"],c:[3,2,59,17,16,5,4,24,19]});w=j.forms;g.formvalidation&&!d.bugs.bustedValidity?(l("form-extend",{f:"forms",src:"form-native-extend",test:function(a){return(m["form-number-date-api"].test()||-1==b.inArray("form-number-date-api",a||[]))&&!w.overrideMessages},d:["form-core","dom-support","form-message"],c:[18,
|
24
|
+
7,59,5]}),u=u.concat([2,3,23,21])):(u=u.concat([18,7,4,59,5]),l("form-extend",{f:"forms",src:"form-shim-extend",test:function(){return!1},d:["form-core","dom-support"],c:[3,2,23,21]}));l("form-message",{f:"forms",test:function(a){return!(w.customMessages||!g.formvalidation||!m["form-extend"].test(a)||d.bugs.validationMessage)},d:["dom-support"],c:[3,2,23,21,59,17,5,4]});d.addPolyfill("form-output",{f:"forms",test:"value"in document.createElement("output"),d:["dom-support"],c:[3,2,23,21]});l("form-number-date-api",
|
25
|
+
{f:"forms-ext",uiTest:function(){return v.range&&v.date&&v.number},test:function(){return this.uiTest()&&!d.bugs.valueAsNumberSet},d:["forms","dom-support"],c:[18,7,6]});l("form-number-date-ui",{f:"forms-ext",test:function(){return m["form-number-date-api"].test()&&!this.options.replaceUI},d:["forms","dom-support","form-number-date-api"],loadInit:function(){t(["jquery-ui"]);m["input-widgets"].src&&t(["input-widgets"])},options:{stepArrows:{number:1,time:1},calculateWidth:!0,slider:{},datepicker:{},
|
26
|
+
langSrc:D+"i18n/jquery.ui.datepicker-",recalcWidth:!0},c:[18,7,6]});l("form-datalist",{f:"forms-ext",test:function(){return z.list&&!w.customDatalist},d:["form-core","dom-support"],c:[3,59,18,24,19,11]})}"details"in g||A("details",function(){return"open"in document.createElement("details")});l("details",{test:g.details,d:["dom-support"],options:{text:"Details"},c:[12,13,15]});if("audio"in g&&"video"in g)d.mediaelement={},l("mediaelement-core",{f:"mediaelement",noAutoCallback:!0,d:["swfobject","dom-support"],
|
27
|
+
c:[10,9,12,17,16,8,22,23,24,20]}),l("mediaelement-swf",{f:"mediaelement",options:{hasToPlay:"any",preferFlash:!1,jwVars:{},jwParams:{},jwAttrs:{},changeJW:b.noop},methodNames:["play","pause","canPlayType","mediaLoad:load"],d:["swfobject","dom-support"],test:function(){if(!g.audio||!g.video)return!1;var a=this.options,b=a.hasToPlay;return!((!window.swfobject||window.swfobject.hasFlashPlayerVersion("9.0.115"))&&(a.preferFlash||"any"!=b&&!g.video[b]&&!g.audio[b]))},c:[10,9,22,20]});l("feature-dummy",
|
28
|
+
{test:!0,loaded:!0,c:u});B.filter("[data-polyfill-cfg]").each(function(){try{d.setOptions(b(this).data("polyfillCfg"))}catch(a){d.warn("error parsing polyfill cfg: "+a)}}).end().filter("[data-polyfill]").each(function(){d.polyfill(b.trim(b(this).data("polyfill")||""))});r&&(r.cfg&&d.setOptions(r.cfg),r.lang&&d.activeLang(r.lang),"polyfill"in r&&d.polyfill(r.polyfill))});
|
@@ -1,75 +1,76 @@
|
|
1
|
-
(function(){var a=Function.prototype.call,b=Object.prototype,
|
2
|
-
if(!Array.isArray)Array.isArray=function(a){return"[object Array]"==
|
3
|
-
function(a,
|
4
|
-
for(var
|
5
|
-
q(this),
|
6
|
-
|
7
|
-
typeof a||null===a)throw new TypeError("Object.keys called on a non-object");var b=[],
|
8
|
-
a.slice(3).join(":")+"."+("000"+this.getUTCMilliseconds()).slice(-3)+"Z"};if(!Date.now)Date.now=function(){return(new Date).getTime()};if(!Date.prototype.toJSON)Date.prototype.toJSON=function(){if("function"!=typeof this.toISOString)throw new TypeError;return this.toISOString()};a="\t\n\u000b\u000c\r \u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff";if(!String.prototype.trim||a.trim()){var a="["+a+"]",o=RegExp("^"+a+a+"*"),
|
9
|
-
RegExp(a+a+"*$");String.prototype.trim=function(){return(""+this).replace(o,"").replace(
|
10
|
-
(function(a,b){var
|
11
|
-
if(!
|
12
|
-
|
13
|
-
typeof a&&"function"!==typeof a||null===a)throw new TypeError("Object.getOwnPropertyDescriptor called on a non-object");var
|
14
|
-
|
15
|
-
jQuery.webshims.register("dom-extend",function(a,b,k,
|
16
|
-
!0)),null==b&&(b=""),a.prop(c,"value",b,"val")):a.prop(c,"value",f,"val"))})};var u="_webshimsLib"+Math.round(1E3*Math.random()),n=function(f,c,
|
17
|
-
"shadowData");return a&&a[f.prop]||this})}});["removeAttr","prop","attr"].forEach(function(f){t[f]=a[f];a[f]=function(c,
|
18
|
-
("attr"==f&&!0===b&&(b=
|
19
|
-
t[f](this,
|
20
|
-
c=Object.prototype.hasOwnProperty;return function(
|
21
|
-
|
22
|
-
f,c)})},createElement:function(a,c){d(a,c)},extendValue:function(c,f,
|
23
|
-
c){a.each(c,function(a,c){a in f||(f[a]=c)})},createPropDefault:w,data:n,moveToFirstEvent:function(){var f=a._data?"_data":"data";return function(c,
|
24
|
-
f;
|
25
|
-
""):a.removeAttr.value.call(this)},get:function(){return null!=a.attr.get.call(this)}}}},reflectProperties:function(f,c){"string"==typeof c&&(c=c.split(
|
26
|
-
|
27
|
-
c,d){var
|
28
|
-
s[a][c].push(
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
(function(a,b){var
|
33
|
-
|
34
|
-
(function(a,b,
|
35
|
-
v=function(
|
36
|
-
|
37
|
-
"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"]}};
|
38
|
-
var b=b.split("?")[0].split("."),b=b[b.length-1],
|
39
|
-
|
40
|
-
|
41
|
-
c);
|
42
|
-
|
43
|
-
"paused")&&a.prop(
|
44
|
-
|
45
|
-
|
46
|
-
function(a){"emptied"==a.type&&(
|
47
|
-
jQuery.webshims.register("mediaelement-swf",function(a,b,k,
|
48
|
-
muted:!1};Object.keys(v);var q=a.extend({isActive:"html5",activating:"html5",wasSwfReady:!1,_bufferedEnd:0,_bufferedStart:0,_metadata:!1,_durationCalcs:-1,_callMeta:!1,currentTime:0,_ppFlag:
|
49
|
-
"jwplayer/"+(
|
50
|
-
|
51
|
-
{View:{PLAY:function(a){var
|
52
|
-
d._bufferedEnd>b.percentage)d._bufferedStart=d.currentTime||0;d._bufferedEnd=b.percentage;d.buffered.length=1;if(100==b.percentage)d.networkState=1,c(4,d);a.event.trigger("progress",
|
1
|
+
(function(){var a=Function.prototype.call,b=Object.prototype,h=Array.prototype.slice,k,j;if(!Function.prototype.bind)Function.prototype.bind=function(a){var e=this;if("function"!=typeof e)throw new TypeError;var d=h.call(arguments,1),m=function(){if(this instanceof m){var b=function(){};b.prototype=e.prototype;var b=new b,j=e.apply(b,d.concat(h.call(arguments)));return null!==j&&Object(j)===j?j:b}return e.apply(a,d.concat(h.call(arguments)))};return m};j=a.bind(b.toString);k=a.bind(b.hasOwnProperty);
|
2
|
+
if(!Array.isArray)Array.isArray=function(a){return"[object Array]"==j(a)};if(!Array.prototype.forEach)Array.prototype.forEach=function(a,e){var b=q(this),d=0,l=b.length>>>0;if("[object Function]"!=j(a))throw new TypeError;for(;d<l;)d in b&&a.call(e,b[d],d,b),d++};if(!Array.prototype.map)Array.prototype.map=function(a,e){var b=q(this),d=b.length>>>0,l=Array(d);if("[object Function]"!=j(a))throw new TypeError;for(var g=0;g<d;g++)g in b&&(l[g]=a.call(e,b[g],g,b));return l};if(!Array.prototype.filter)Array.prototype.filter=
|
3
|
+
function(a,b){var d=q(this),e=d.length>>>0,l=[];if("[object Function]"!=j(a))throw new TypeError;for(var g=0;g<e;g++)g in d&&a.call(b,d[g],g,d)&&l.push(d[g]);return l};if(!Array.prototype.every)Array.prototype.every=function(a,d){var b=q(this),e=b.length>>>0;if("[object Function]"!=j(a))throw new TypeError;for(var g=0;g<e;g++)if(g in b&&!a.call(d,b[g],g,b))return!1;return!0};if(!Array.prototype.some)Array.prototype.some=function(a,b){var d=q(this),e=d.length>>>0;if("[object Function]"!=j(a))throw new TypeError;
|
4
|
+
for(var g=0;g<e;g++)if(g in d&&a.call(b,d[g],g,d))return!0;return!1};if(!Array.prototype.reduce)Array.prototype.reduce=function(a){var d=q(this),b=d.length>>>0;if("[object Function]"!=j(a))throw new TypeError;if(!b&&1==arguments.length)throw new TypeError;var e=0,g;if(2<=arguments.length)g=arguments[1];else{do{if(e in d){g=d[e++];break}if(++e>=b)throw new TypeError;}while(1)}for(;e<b;e++)e in d&&(g=a.call(void 0,g,d[e],e,d));return g};if(!Array.prototype.reduceRight)Array.prototype.reduceRight=function(a){var d=
|
5
|
+
q(this),b=d.length>>>0;if("[object Function]"!=j(a))throw new TypeError;if(!b&&1==arguments.length)throw new TypeError;var e,b=b-1;if(2<=arguments.length)e=arguments[1];else{do{if(b in d){e=d[b--];break}if(0>--b)throw new TypeError;}while(1)}do b in this&&(e=a.call(void 0,e,d[b],b,d));while(b--);return e};if(!Array.prototype.indexOf)Array.prototype.indexOf=function(a){var b=q(this),d=b.length>>>0;if(!d)return-1;var e=0;1<arguments.length&&(e=s(arguments[1]));for(e=0<=e?e:d-Math.abs(e);e<d;e++)if(e in
|
6
|
+
b&&b[e]===a)return e;return-1};if(!Array.prototype.lastIndexOf)Array.prototype.lastIndexOf=function(a){var e=q(this),b=e.length>>>0;if(!b)return-1;var d=b-1;1<arguments.length&&(d=s(arguments[1]));for(d=0<=d?d:b-Math.abs(d);0<=d;d--)if(d in e&&a===e[d])return d;return-1};if(!Object.keys){var d=!0,e="toString,toLocaleString,valueOf,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,constructor".split(","),t=e.length,g;for(g in{toString:null})d=!1;Object.keys=function(a){if("object"!=typeof a&&"function"!=
|
7
|
+
typeof a||null===a)throw new TypeError("Object.keys called on a non-object");var b=[],j;for(j in a)k(a,j)&&b.push(j);if(d)for(j=0;j<t;j++){var g=e[j];k(a,g)&&b.push(g)}return b}}if(!Date.prototype.toISOString)Date.prototype.toISOString=function(){var a,d,b;if(!isFinite(this))throw new RangeError;a=[this.getUTCFullYear(),this.getUTCMonth()+1,this.getUTCDate(),this.getUTCHours(),this.getUTCMinutes(),this.getUTCSeconds()];for(d=a.length;d--;)b=a[d],10>b&&(a[d]="0"+b);return a.slice(0,3).join("-")+"T"+
|
8
|
+
a.slice(3).join(":")+"."+("000"+this.getUTCMilliseconds()).slice(-3)+"Z"};if(!Date.now)Date.now=function(){return(new Date).getTime()};if(!Date.prototype.toJSON)Date.prototype.toJSON=function(){if("function"!=typeof this.toISOString)throw new TypeError;return this.toISOString()};a="\t\n\u000b\u000c\r \u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff";if(!String.prototype.trim||a.trim()){var a="["+a+"]",o=RegExp("^"+a+a+"*"),l=
|
9
|
+
RegExp(a+a+"*$");String.prototype.trim=function(){return(""+this).replace(o,"").replace(l,"")}}var s=function(a){a=+a;a!==a?a=-1:0!==a&&a!==1/0&&a!==-(1/0)&&(a=(0<a||-1)*Math.floor(Math.abs(a)));return a},v="a"!="a"[0],q=function(a){if(null==a)throw new TypeError;return v&&"string"==typeof a&&a?a.split(""):Object(a)}})();
|
10
|
+
(function(a,b){var h=!(!Object.create||!Object.defineProperties||!Object.getOwnPropertyDescriptor);h&&!a.browser.msie&&Object.defineProperty&&Object.prototype.__defineGetter__&&function(){try{var a=document.createElement("foo");Object.defineProperty(a,"bar",{get:function(){return!0}});h=!!a.bar}catch(d){h=!1}a=null}();Modernizr.objectAccessor=!(!(h||Object.prototype.__defineGetter__&&Object.prototype.__lookupSetter__)||a.browser.opera&&!(11<=b.browserVersion));Modernizr.advancedObjectProperties=h;
|
11
|
+
if(!h||!Object.create||!Object.defineProperties||!Object.getOwnPropertyDescriptor||!Object.defineProperty){var k=Function.prototype.call.bind(Object.prototype.hasOwnProperty);b.objectCreate=function(a,d,e,k){var g;g=function(){};g.prototype=a;g=new g;if(!k&&!("__proto__"in g)&&!Modernizr.objectAccessor)g.__proto__=a;d&&b.defineProperties(g,d);if(e)g.options=jQuery.extend(!0,{},g.options||{},e),e=g.options;g._create&&jQuery.isFunction(g._create)&&g._create(e);return g};b.defineProperties=function(a,
|
12
|
+
d){for(var e in d)k(d,e)&&b.defineProperty(a,e,d[e]);return a};b.defineProperty=function(a,d,b){if("object"!=typeof b||null===b)return a;if(k(b,"value"))return a[d]=b.value,a;a.__defineGetter__&&("function"==typeof b.get&&a.__defineGetter__(d,b.get),"function"==typeof b.set&&a.__defineSetter__(d,b.set));return a};b.getPrototypeOf=function(a){return Object.getPrototypeOf&&Object.getPrototypeOf(a)||a.__proto__||a.constructor&&a.constructor.prototype};b.getOwnPropertyDescriptor=function(a,b){if("object"!==
|
13
|
+
typeof a&&"function"!==typeof a||null===a)throw new TypeError("Object.getOwnPropertyDescriptor called on a non-object");var e;if(Object.defineProperty&&Object.getOwnPropertyDescriptor)try{return e=Object.getOwnPropertyDescriptor(a,b)}catch(h){}e={configurable:!0,enumerable:!0,writable:!0,value:void 0};var g=a.__lookupGetter__&&a.__lookupGetter__(b),o=a.__lookupSetter__&&a.__lookupSetter__(b);if(!g&&!o){if(!k(a,b))return;e.value=a[b];return e}delete e.writable;delete e.value;e.get=e.set=void 0;if(g)e.get=
|
14
|
+
g;if(o)e.set=o;return e}}})(jQuery,jQuery.webshims);(function(a){if(!Modernizr.genericDOM){var b=document,h,k,j=/<([\w:]+)/,d={option:1,optgroup:1,legend:1,thead:1,tr:1,td:1,col:1,area:1};a.webshims.fixHTML5=function(a){if("string"!=typeof a||d[(j.exec(a)||["",""])[1].toLowerCase()])return a;if(!k){h=b.body;if(!h)return a;k=b.createElement("div");k.style.display="none"}var t=k.cloneNode(!1);h.appendChild(t);t.innerHTML=a;h.removeChild(t);return t.childNodes}}})(jQuery);
|
15
|
+
jQuery.webshims.register("dom-extend",function(a,b,h,k,j){var d=b.modules,e=/\s*,\s*/,t={},g={},o={},l={},s={},v=a.fn.val,q=function(f,c,i,b,d){return d?v.call(a(f)):v.call(a(f),i)};a.fn.val=function(f){var c=this[0];arguments.length&&null==f&&(f="");if(!arguments.length)return!c||1!==c.nodeType?v.call(this):a.prop(c,"value",f,"val",!0);if(a.isArray(f))return v.apply(this,arguments);var i=a.isFunction(f);return this.each(function(b){c=this;1===c.nodeType&&(i?(b=f.call(c,b,a.prop(c,"value",j,"val",
|
16
|
+
!0)),null==b&&(b=""),a.prop(c,"value",b,"val")):a.prop(c,"value",f,"val"))})};var u="_webshimsLib"+Math.round(1E3*Math.random()),n=function(f,c,i){f=f.jquery?f[0]:f;if(!f)return i||{};var b=a.data(f,u);i!==j&&(b||(b=a.data(f,u,{})),c&&(b[c]=i));return c?b&&b[c]:b};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(f){a.fn[f.name]=function(){return this.map(function(){var a=n(this,
|
17
|
+
"shadowData");return a&&a[f.prop]||this})}});["removeAttr","prop","attr"].forEach(function(f){t[f]=a[f];a[f]=function(c,i,b,d,e){var l="val"==d,z=!l?t[f]:q;if(!c||!g[i]||1!==c.nodeType||!l&&d&&"attr"==f&&a.attrFn[i])return z(c,i,b,d,e);var A=(c.nodeName||"").toLowerCase(),x=o[A],k="attr"==f&&(!1===b||null===b)?"removeAttr":f,h,m,n;x||(x=o["*"]);x&&(x=x[i]);x&&(h=x[k]);if(h){if("value"==i)m=h.isVal,h.isVal=l;if("removeAttr"===k)return h.value.call(c);if(b===j)return h.get?h.get.call(c):h.value;h.set&&
|
18
|
+
("attr"==f&&!0===b&&(b=i),n=h.set.call(c,b));if("value"==i)h.isVal=m}else n=z(c,i,b,d,e);if((b!==j||"removeAttr"===k)&&s[A]&&s[A][i]){var r;r="removeAttr"==k?!1:"prop"==k?!!b:!0;s[A][i].forEach(function(a){if(!a.only||(a.only="prop"==f)||"attr"==a.only&&"prop"!=f)a.call(c,b,r,l?"val":k,f)})}return n};l[f]=function(c,i,d){o[c]||(o[c]={});o[c][i]||(o[c][i]={});var e=o[c][i][f],g=function(a,c,b){return c&&c[a]?c[a]:b&&b[a]?b[a]:"prop"==f&&"value"==i?function(a){return d.isVal?q(this,i,a,!1,0===arguments.length):
|
19
|
+
t[f](this,i,a)}:"prop"==f&&"value"==a&&d.value.apply?function(a){var c=t[f](this,i);c&&c.apply&&(c=c.apply(this,arguments));return c}:function(a){return t[f](this,i,a)}};o[c][i][f]=d;if(d.value===j){if(!d.set)d.set=d.writeable?g("set",d,e):b.cfg.useStrict&&"prop"==i?function(){throw i+" is readonly on "+c;}:a.noop;if(!d.get)d.get=g("get",d,e)}["value","get","set"].forEach(function(a){d[a]&&(d["_sup"+a]=g(a,e))})}});var p=!a.browser.msie||8<parseInt(a.browser.version,10),m=function(){var a=b.getPrototypeOf(k.createElement("foobar")),
|
20
|
+
c=Object.prototype.hasOwnProperty;return function(i,d,e){var g=k.createElement(i),l=b.getPrototypeOf(g);if(p&&l&&a!==l&&(!g[d]||!c.call(g,d))){var j=g[d];e._supvalue=function(){return j&&j.apply?j.apply(this,arguments):j};l[d]=e.value}else e._supvalue=function(){var a=n(this,"propValue");return a&&a[d]&&a[d].apply?a[d].apply(this,arguments):a&&a[d]},r.extendValue(i,d,e.value);e.value._supvalue=e._supvalue}}(),r=function(){var f={};b.addReady(function(c,i){var d={},e=function(f){d[f]||(d[f]=a(c.getElementsByTagName(f)),
|
21
|
+
i[0]&&a.nodeName(i[0],f)&&(d[f]=d[f].add(i)))};a.each(f,function(a,c){e(a);!c||!c.forEach?b.warn("Error: with "+a+"-property. methods: "+c):c.forEach(function(c){d[a].each(c)})});d=null});var c,i=a([]),d=function(i,b){f[i]?f[i].push(b):f[i]=[b];a.isDOMReady&&(c||a(k.getElementsByTagName(i))).each(b)};return{createTmpCache:function(f){a.isDOMReady&&(c=c||a(k.getElementsByTagName(f)));return c||i},flushTmpCache:function(){c=null},content:function(c,f){d(c,function(){var c=a.attr(this,f);null!=c&&a.attr(this,
|
22
|
+
f,c)})},createElement:function(a,c){d(a,c)},extendValue:function(c,f,i){d(c,function(){a(this).each(function(){n(this,"propValue",{})[f]=this[f];this[f]=i})})}}}(),w=function(a,c){if(a.defaultValue===j)a.defaultValue="";if(!a.removeAttr)a.removeAttr={value:function(){a[c||"prop"].set.call(this,a.defaultValue);a.removeAttr._supvalue.call(this)}}};a.extend(b,{getID:function(){var f=(new Date).getTime();return function(c){var c=a(c),i=c.attr("id");i||(f++,i="ID-"+f,c.attr("id",i));return i}}(),extendUNDEFProp:function(f,
|
23
|
+
c){a.each(c,function(a,c){a in f||(f[a]=c)})},createPropDefault:w,data:n,moveToFirstEvent:function(){var f=a._data?"_data":"data";return function(c,i,b){if((c=(a[f](c,"events")||{})[i])&&1<c.length)i=c.pop(),b||(b="bind"),"bind"==b&&c.delegateCount?c.splice(c.delegateCount,0,i):c.unshift(i)}}(),addShadowDom:function(f,c,b){b=b||{};f.jquery&&(f=f[0]);c.jquery&&(c=c[0]);if(!b.shadowFocusElement)b.shadowFocusElement=c;var d=a.data(f,u)||a.data(f,u,{}),e=a.data(c,u)||a.data(c,u,{});d.hasShadow=c;e.nativeElement=
|
24
|
+
f;e.shadowData=d.shadowData={nativeElement:f,shadowElement:c,shadowFocusElement:b.shadowFocusElement};b.shadowChilds&&b.shadowChilds.each(function(){n(this,"shadowData",e.shadowData)});if(b.data)d.shadowData.data=b.data,e.shadowData.data=b.data;b=null},propTypes:{standard:function(a){w(a);if(!a.prop)a.prop={set:function(c){a.attr.set.call(this,""+c)},get:function(){return a.attr.get.call(this)||a.defaultValue}}},"boolean":function(a){w(a);if(!a.prop)a.prop={set:function(c){c?a.attr.set.call(this,
|
25
|
+
""):a.removeAttr.value.call(this)},get:function(){return null!=a.attr.get.call(this)}}}},reflectProperties:function(f,c){"string"==typeof c&&(c=c.split(e));c.forEach(function(c){b.defineNodeNamesProperty(f,c,{prop:{set:function(f){a.attr(this,c,f)},get:function(){return a.attr(this,c)||""}}})})},defineNodeNameProperty:function(f,c,d){g[c]=!0;if(d.reflect)b.propTypes[d.propType||"standard"](d);["prop","attr","removeAttr"].forEach(function(e){var g=d[e];g&&(g="prop"===e?a.extend({writeable:!0},g):a.extend({},
|
26
|
+
g,{writeable:!0}),l[e](f,c,g),"*"!=f&&b.cfg.extendNative&&"prop"==e&&g.value&&a.isFunction(g.value)&&m(f,c,g),d[e]=g)});d.initAttr&&r.content(f,c);return d},defineNodeNameProperties:function(a,c,d,e){for(var g in c)!e&&c[g].initAttr&&r.createTmpCache(a),d&&(c[g][d]?b.log("override: "+a+"["+g+"] for "+d):(c[g][d]={},["value","set","get"].forEach(function(a){a in c[g]&&(c[g][d][a]=c[g][a],delete c[g][a])}))),c[g]=b.defineNodeNameProperty(a,g,c[g]);e||r.flushTmpCache();return c},createElement:function(f,
|
27
|
+
c,d){var e;a.isFunction(c)&&(c={after:c});r.createTmpCache(f);c.before&&r.createElement(f,c.before);d&&(e=b.defineNodeNameProperties(f,d,!1,!0));c.after&&r.createElement(f,c.after);r.flushTmpCache();return e},onNodeNamesPropertyModify:function(b,c,d,D){"string"==typeof b&&(b=b.split(e));a.isFunction(d)&&(d={set:d});b.forEach(function(a){s[a]||(s[a]={});"string"==typeof c&&(c=c.split(e));d.initAttr&&r.createTmpCache(a);c.forEach(function(c){s[a][c]||(s[a][c]=[],g[c]=!0);if(d.set){if(D)d.set.only=D;
|
28
|
+
s[a][c].push(d.set)}d.initAttr&&r.content(a,c)});r.flushTmpCache()})},defineNodeNamesBooleanProperty:function(d,c,e){e||(e={});if(a.isFunction(e))e.set=e;b.defineNodeNamesProperty(d,c,{attr:{set:function(a){this.setAttribute(c,a);e.set&&e.set.call(this,!0)},get:function(){return null==this.getAttribute(c)?j:c}},removeAttr:{value:function(){this.removeAttribute(c);e.set&&e.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:e.initAttr||!1})},contentAttr:function(a,c,d){if(a.nodeName){if(d===
|
29
|
+
j)return d=(a.attributes[c]||{}).value,null==d?j:d;"boolean"==typeof d?d?a.setAttribute(c,c):a.removeAttribute(c):a.setAttribute(c,d)}},activeLang:function(){var f=[],c={},e,g,l=/:\/\/|^\.*\//,j=function(c,d,f){return d&&f&&-1!==a.inArray(d,f.availabeLangs||[])?(c.loading=!0,f=f.langSrc,l.test(f)||(f=b.cfg.basePath+f),b.loader.loadScript(f+d+".js",function(){c.langObj[d]?(c.loading=!1,k(c,!0)):a(function(){c.langObj[d]&&k(c,!0);c.loading=!1})}),!0):!1},h=function(a){c[a]&&c[a].forEach(function(a){a.callback()})},
|
30
|
+
k=function(a,c){if(a.activeLang!=e&&a.activeLang!==g){var b=d[a.module].options;if(a.langObj[e]||g&&a.langObj[g])a.activeLang=e,a.callback(a.langObj[e]||a.langObj[g],e),h(a.module);else if(!c&&!j(a,e,b)&&!j(a,g,b)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],e),h(a.module)}};return function(d){if("string"==typeof d&&d!==e)e=d,g=e.split("-")[0],e==g&&(g=!1),a.each(f,function(a,c){k(c)});else if("object"==typeof d)if(d.register)c[d.register]||(c[d.register]=[]),c[d.register].push(d),
|
31
|
+
d.callback();else{if(!d.activeLang)d.activeLang="";f.push(d);k(d)}return e}}()});a.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(a,c){b[a]=function(a,d,f,g){"string"==typeof a&&(a=a.split(e));var l={};a.forEach(function(a){l[a]=b[c](a,d,f,g)});return l}});b.isReady("webshimLocalization",!0)});
|
32
|
+
(function(a,b){var h=a.webshims.browserVersion;if(!(a.browser.mozilla&&5<h)&&(!a.browser.msie||12>h&&7<h)){var k={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},j=function(a,b){a.getAttribute("role")||a.setAttribute("role",b)};a.webshims.addReady(function(d,e){a.each(k,function(b,g){for(var h=a(b,d).add(e.filter(b)),k=0,o=h.length;k<o;k++)j(h[k],g)});if(d===b){var h=b.getElementsByTagName("header")[0],g=b.getElementsByTagName("footer"),o=g.length;
|
33
|
+
h&&!a(h).closest("section, article")[0]&&j(h,"banner");o&&(h=g[o-1],a(h).closest("section, article")[0]||j(h,"contentinfo"))}})}})(jQuery,document);
|
34
|
+
(function(a,b,h){var k=b.audio&&b.video,j=!1;if(k)a=document.createElement("video"),b.videoBuffered="buffered"in a,j="loop"in a,h.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(",")),b.videoBuffered||(h.addPolyfill("mediaelement-native-fix",{f:"mediaelement",test:b.videoBuffered,d:["dom-support"]}),h.reTest("mediaelement-native-fix"));jQuery.webshims.register("mediaelement-core",function(a,b,h,g,o){var l=b.mediaelement,s=b.cfg.mediaelement,
|
35
|
+
v=function(f,c){var f=a(f),g={src:f.attr("src")||"",elem:f,srcProp:f.prop("src")};if(!g.src)return g;var h=f.attr("type");if(h)g.type=h,g.container=a.trim(h.split(";")[0]);else if(c||(c=f[0].nodeName.toLowerCase(),"source"==c&&(c=(f.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),h=l.getTypeForSrc(g.src,c))g.type=h,g.container=h,b.warn("you should always provide a proper mime-type using the source element. "+g.src+" detected as: "+h),a.nodeName(f[0],"source")&&f.attr("type",
|
36
|
+
h);if(h=f.attr("media"))g.media=h;return g},q=swfobject.hasFlashPlayerVersion("9.0.115"),u=function(){b.ready("mediaelement-swf",function(){if(!l.createSWF)b.modules["mediaelement-swf"].test=a.noop,b.reTest(["mediaelement-swf"],k)})};l.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",
|
37
|
+
"m3u"]},video:{"video/ogg":["ogg","ogv","ogm"],"video/mpeg":["mpg","mpeg","mpe"],"video/mp4":["mp4","mpg4","m4v"],"video/quicktime":["mov","qt"],"video/x-msvideo":["avi"],"video/x-ms-asf":["asf","asx"],"video/flv":["flv","f4v"],"video/3gpp":["3gp","3gpp"],"video/webm":["webm"],"application/x-mpegURL":["m3u8","m3u"],"video/MP2T":["ts"]}};l.mimeTypes.source=a.extend({},l.mimeTypes.audio,l.mimeTypes.video);l.getTypeForSrc=function(b,c){if(-1!=b.indexOf("youtube.com/watch?")||-1!=b.indexOf("youtube.com/v/"))return"video/youtube";
|
38
|
+
var b=b.split("?")[0].split("."),b=b[b.length-1],e;a.each(l.mimeTypes[c],function(a,c){if(-1!==c.indexOf(b))return e=a,!1});return e};l.srces=function(b,c){b=a(b);if(c)b.removeAttr("src").removeAttr("type").find("source").remove(),a.isArray(c)||(c=[c]),c.forEach(function(a){var c=g.createElement("source");"string"==typeof a&&(a={src:a});c.setAttribute("src",a.src);a.type&&c.setAttribute("type",a.type);a.media&&c.setAttribute("media",a.media);b.append(c)});else{var c=[],e=b[0].nodeName.toLowerCase(),
|
39
|
+
h=v(b,e);h.src?c.push(h):a("source",b).each(function(){h=v(this,e);h.src&&c.push(h)});return c}};a.fn.loadMediaSrc=function(b,c){return this.each(function(){c!==o&&(a(this).removeAttr("poster"),c&&a.attr(this,"poster",c));l.srces(this,b);a(this).mediaLoad()})};l.swfMimeTypes="video/3gpp,video/x-msvideo,video/quicktime,video/x-m4v,video/mp4,video/m4p,video/x-flv,video/flv,audio/mpeg,audio/aac,audio/mp4,audio/x-m4a,audio/m4a,audio/mp3,audio/x-fla,audio/fla,youtube/flv,jwplayer/jwplayer,video/youtube".split(",");
|
40
|
+
l.canSwfPlaySrces=function(b,c){var e="";q&&(b=a(b),c=c||l.srces(b),a.each(c,function(a,c){if(c.container&&c.src&&-1!=l.swfMimeTypes.indexOf(c.container))return e=c,!1}));return e};var n={};l.canNativePlaySrces=function(b,c){var e="";if(k){var b=a(b),g=(b[0].nodeName||"").toLowerCase();if(!n[g])return e;c=c||l.srces(b);a.each(c,function(a,c){if(c.type&&n[g].prop._supvalue.call(b[0],c.type))return e=c,!1})}return e};l.setError=function(f,c){c||(c="can't play sources");a(f).pause().data("mediaerror",
|
41
|
+
c);b.warn("mediaelementError: "+c);setTimeout(function(){a(f).data("mediaerror")&&a(f).trigger("mediaerror")},1)};var p=function(){var a;return function(c,d,g){b.ready("mediaelement-swf",function(){l.createSWF?l.createSWF(c,d,g):a||(a=!0,u(),p(c,d,g))})}}(),m=function(a,c,b,d,e){b||!1!==b&&c&&"flash"==c.isActive?(b=l.canSwfPlaySrces(a,d))?p(a,b,c):e?l.setError(a,!1):m(a,c,!1,d,!0):(b=l.canNativePlaySrces(a,d))?c&&"flash"==c.isActive&&l.setActive(a,"html5",c):e?(l.setError(a,!1),c&&"flash"==c.isActive&&
|
42
|
+
l.setActive(a,"html5",c)):m(a,c,!0,d,!0)},r=/^(?:embed|object|datalist)$/i,w=function(f,c){var g=b.data(f,"mediaelementBase")||b.data(f,"mediaelementBase",{}),h=l.srces(f),j=f.parentNode;clearTimeout(g.loadTimer);a.data(f,"mediaerror",!1);if(h.length&&j&&!(1!=j.nodeType||r.test(j.nodeName||"")))c=c||b.data(f,"mediaelement"),m(f,c,s.preferFlash||o,h)};a(g).bind("ended",function(f){var c=b.data(f.target,"mediaelement");(!j||c&&"html5"!=c.isActive||a.prop(f.target,"loop"))&&setTimeout(function(){!a.prop(f.target,
|
43
|
+
"paused")&&a.prop(f.target,"loop")&&a(f.target).prop("currentTime",0).play()},1)});j||b.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(f){var c=b.defineNodeNameProperty(f,"load",{prop:{value:function(){var a=b.data(this,"mediaelement");w(this,a);k&&(!a||"html5"==a.isActive)&&c.prop._supvalue&&c.prop._supvalue.apply(this,arguments)}}});n[f]=b.defineNodeNameProperty(f,"canPlayType",{prop:{value:function(b){var c="";k&&n[f].prop._supvalue&&(c=n[f].prop._supvalue.call(this,
|
44
|
+
b),"no"==c&&(c=""));!c&&q&&(b=a.trim((b||"").split(";")[0]),-1!=l.swfMimeTypes.indexOf(b)&&(c="maybe"));return c}}})});b.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var a=this,c=b.data(a,"mediaelementBase")||b.data(a,"mediaelementBase",{});clearTimeout(c.loadTimer);c.loadTimer=setTimeout(function(){w(a);a=null},9)}});h=function(){b.addReady(function(f,c){a("video, audio",f).add(c.filter("video, audio")).each(function(){a.browser.msie&&8<b.browserVersion&&a.prop(this,
|
45
|
+
"paused")&&!a.prop(this,"readyState")&&a(this).is('audio[preload="none"][controls]:not([autoplay])')?a(this).prop("preload","metadata").mediaLoad():w(this);if(k){var c,f,g=this,h=function(){var c=a.prop(g,"buffered");if(c){for(var b="",e=0,f=c.length;e<f;e++)b+=c.end(e);return b}},j=function(){var c=h();c!=f&&(f=c,a(g).triggerHandler("progress"))};a(this).bind("play loadstart progress",function(a){"progress"==a.type&&(f=h());clearTimeout(c);c=setTimeout(j,999)}).bind("emptied stalled mediaerror abort suspend",
|
46
|
+
function(a){"emptied"==a.type&&(f=!1);clearTimeout(c)})}})})};k?(b.isReady("mediaelement-core",!0),h(),q&&b.ready("WINDOWLOAD mediaelement",u)):b.ready("mediaelement-swf",h)})})(jQuery,Modernizr,jQuery.webshims);
|
47
|
+
jQuery.webshims.register("mediaelement-swf",function(a,b,h,k,j,d){var e=b.mediaelement,t=h.swfobject,g=Modernizr.audio&&Modernizr.video,o=t.hasFlashPlayerVersion("9.0.115"),l=0,h={paused:!0,ended:!1,currentSrc:"",duration:h.NaN,readyState:0,networkState:0,videoHeight:0,videoWidth:0,error:null,buffered:{start:function(a){if(a)b.error("buffered index size error");else return 0},end:function(a){if(a)b.error("buffered index size error");else return 0},length:0}},s=Object.keys(h),v={currentTime:0,volume:1,
|
48
|
+
muted:!1};Object.keys(v);var q=a.extend({isActive:"html5",activating:"html5",wasSwfReady:!1,_bufferedEnd:0,_bufferedStart:0,_metadata:!1,_durationCalcs:-1,_callMeta:!1,currentTime:0,_ppFlag:j},h,v),u=/^jwplayer-/,n=function(a){if(a=k.getElementById(a.replace(u,"")))return a=b.data(a,"mediaelement"),"flash"==a.isActive?a:null},p=function(a){return(a=b.data(a,"mediaelement"))&&"flash"==a.isActive?a:null},m=function(c,b){b=a.Event(b);b.preventDefault();a.event.trigger(b,j,c)},r=d.playerPath||b.cfg.basePath+
|
49
|
+
"jwplayer/"+(d.playerName||"player.swf"),w=d.pluginPath||b.cfg.basePath+"swf/jwwebshims.swf";b.extendUNDEFProp(d.jwParams,{allowscriptaccess:"always",allowfullscreen:"true",wmode:"transparent"});b.extendUNDEFProp(d.jwVars,{screencolor:"ffffffff"});b.extendUNDEFProp(d.jwAttrs,{bgcolor:"#000000"});var f=function(c,b){var d=c.duration;if(!(d&&0<c._durationCalcs)){try{if(c.duration=c.jwapi.getPlaylist()[0].duration,!c.duration||0>=c.duration||c.duration===c._lastDuration)c.duration=d}catch(f){}c.duration&&
|
50
|
+
c.duration!=c._lastDuration?(m(c._elem,"durationchange"),("audio"==c._elemNodeName||c._callMeta)&&e.jwEvents.Model.META(a.extend({duration:c.duration},b),c),c._durationCalcs--):c._durationCalcs++}},c=function(a,b){3>a&&clearTimeout(b._canplaythroughTimer);if(3<=a&&3>b.readyState)b.readyState=a,m(b._elem,"canplay"),clearTimeout(b._canplaythroughTimer),b._canplaythroughTimer=setTimeout(function(){c(4,b)},4E3);if(4<=a&&4>b.readyState)b.readyState=a,m(b._elem,"canplaythrough");b.readyState=a};e.jwEvents=
|
51
|
+
{View:{PLAY:function(a){var c=n(a.id);if(c&&!c.stopPlayPause&&(c._ppFlag=!0,c.paused==a.state)){c.paused=!a.state;if(c.ended)c.ended=!1;m(c._elem,a.state?"play":"pause")}}},Model:{BUFFER:function(b){var d=n(b.id);if(d&&"percentage"in b&&d._bufferedEnd!=b.percentage){d.networkState=100==b.percentage?1:2;(isNaN(d.duration)||5<b.percentage&&25>b.percentage||100===b.percentage)&&f(d,b);if(d.ended)d.ended=!1;if(d.duration){2<b.percentage&&20>b.percentage?c(3,d):20<b.percentage&&c(4,d);if(d._bufferedEnd&&
|
52
|
+
d._bufferedEnd>b.percentage)d._bufferedStart=d.currentTime||0;d._bufferedEnd=b.percentage;d.buffered.length=1;if(100==b.percentage)d.networkState=1,c(4,d);a.event.trigger("progress",j,d._elem,!0)}}},META:function(a,b){if(b=b&&b.networkState?b:n(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=
|
53
53
|
a.width||0;if(!b.networkState)b.networkState=2;1>b.readyState&&c(1,b);b.duration&&d!==b.duration&&m(b._elem,"durationchange");m(b._elem,"loadedmetadata")}}else b._callMeta=!0},TIME:function(a){var b=n(a.id);if(b&&b.currentTime!==a.position){b.currentTime=a.position;b.duration&&b.duration<b.currentTime&&f(b,a);2>b.readyState&&c(2,b);if(b.ended)b.ended=!1;m(b._elem,"timeupdate")}},STATE:function(a){var b=n(a.id);if(b)switch(a.newstate){case "BUFFERING":if(b.ended)b.ended=!1;c(1,b);m(b._elem,"waiting");
|
54
|
-
break;case "PLAYING":b.paused=!1;b._ppFlag=!0;b.duration||f(b,a);3>b.readyState&&c(3,b);if(b.ended)b.ended=!1;m(b._elem,"playing");break;case "PAUSED":if(!b.paused&&!b.stopPlayPause)b.paused=!0,b._ppFlag=!0,m(b._elem,"pause");break;case "COMPLETED":4>b.readyState&&c(4,b),b.ended=!0,m(b._elem,"ended")}}},Controller:{ERROR:function(a){var b=n(a.id);b&&
|
55
|
-
a.position)b.currentTime=a.position,m(b._elem,"timeupdate")}},VOLUME:function(a){var b=n(a.id);if(b&&(a=a.percentage/100,b.volume!=a))b.volume=a,m(b._elem,"volumechange")},MUTE:function(a){if(!a.state){var b=n(a.id);if(b&&b.muted!=a.state)b.muted=a.state,m(b._elem,"volumechange")}}}};var
|
56
|
-
|
57
|
-
g.css({width:i,height:
|
58
|
-
b.offsetHeight;e&&d?(i(d,e),b=null):setTimeout(function(){d=b.naturalWidth||b.width||b.offsetWidth;e=b.naturalHeight||b.height||b.offsetHeight;i(d,e);c&&(c.remove(),c=!1);b=null},9);a(this).unbind()}).prop("src",f).appendTo("body").each(function(){this.complete||
|
59
|
-
|
60
|
-
d.wasSwfReady
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
"none"==
|
68
|
-
|
69
|
-
(
|
70
|
-
|
71
|
-
|
72
|
-
!0
|
73
|
-
|
74
|
-
|
75
|
-
|
54
|
+
break;case "PLAYING":b.paused=!1;b._ppFlag=!0;b.duration||f(b,a);3>b.readyState&&c(3,b);if(b.ended)b.ended=!1;m(b._elem,"playing");break;case "PAUSED":if(!b.paused&&!b.stopPlayPause)b.paused=!0,b._ppFlag=!0,m(b._elem,"pause");break;case "COMPLETED":4>b.readyState&&c(4,b),b.ended=!0,m(b._elem,"ended")}}},Controller:{ERROR:function(a){var b=n(a.id);b&&e.setError(b._elem,a.message)},SEEK:function(a){var b=n(a.id);if(b){if(b.ended)b.ended=!1;if(b.paused)try{b.jwapi.sendEvent("play","false")}catch(c){}if(b.currentTime!=
|
55
|
+
a.position)b.currentTime=a.position,m(b._elem,"timeupdate")}},VOLUME:function(a){var b=n(a.id);if(b&&(a=a.percentage/100,b.volume!=a))b.volume=a,m(b._elem,"volumechange")},MUTE:function(a){if(!a.state){var b=n(a.id);if(b&&b.muted!=a.state)b.muted=a.state,m(b._elem,"volumechange")}}}};var i=function(b){var c=!0;a.each(e.jwEvents,function(d,e){a.each(e,function(a){try{b.jwapi["add"+d+"Listener"](a,"jQuery.webshims.mediaelement.jwEvents."+d+"."+a)}catch(e){return c=!1}})});return c},D=function(a){var b=
|
56
|
+
a.actionQueue.length,c=0,d;if(b&&"flash"==a.isActive)for(;a.actionQueue.length&&b>c;)c++,d=a.actionQueue.shift(),a.jwapi[d.fn].apply(a.jwapi,d.args);if(a.actionQueue.length)a.actionQueue=[]},F=function(b){b&&(b._ppFlag===j&&a.prop(b._elem,"autoplay")||!b.paused)&&setTimeout(function(){if("flash"==b.isActive&&(b._ppFlag===j||!b.paused))try{a(b._elem).play()}catch(c){}},1)},I=function(b){if(b&&"video"==b._elemNodeName){var c,d,e,f,g,h,j,l,i=function(i,k){if(k&&i&&!(1>k||1>i||"flash"!=b.isActive))if(c&&
|
57
|
+
(c.remove(),c=!1),f=i,g=k,clearTimeout(j),d="auto"==b._elem.style.width,e="auto"==b._elem.style.height,d||e){h=h||a(b._elem).getShadowElement();var m;d&&!e?(m=h.height(),i*=m/k,k=m):!d&&e&&(m=h.width(),k*=m/i,i=m);l=!0;setTimeout(function(){l=!1},9);h.css({width:i,height:k})}},k=function(){if(!("flash"!=b.isActive||a.prop(b._elem,"readyState")&&a.prop(this,"videoWidth"))){var f=a.prop(b._elem,"poster");if(f&&(d="auto"==b._elem.style.width,e="auto"==b._elem.style.height,d||e))c&&(c.remove(),c=!1),
|
58
|
+
c=a('<img style="position: absolute; height: auto; width: auto; top: 0px; left: 0px; visibility: hidden;" />'),c.bind("load error alreadycomplete",function(){clearTimeout(j);var b=this,d=b.naturalWidth||b.width||b.offsetWidth,e=b.naturalHeight||b.height||b.offsetHeight;e&&d?(i(d,e),b=null):setTimeout(function(){d=b.naturalWidth||b.width||b.offsetWidth;e=b.naturalHeight||b.height||b.offsetHeight;i(d,e);c&&(c.remove(),c=!1);b=null},9);a(this).unbind()}).prop("src",f).appendTo("body").each(function(){this.complete||
|
59
|
+
this.error?a(this).triggerHandler("alreadycomplete"):(clearTimeout(j),j=setTimeout(function(){a(b._elem).triggerHandler("error")},9999))})}};a(b._elem).bind("loadedmetadata",function(){i(a.prop(this,"videoWidth"),a.prop(this,"videoHeight"))}).bind("emptied",k).bind("swfstageresize",function(){l||i(f,g)}).bind("emptied",function(){f=void 0;g=void 0}).triggerHandler("swfstageresize");k();a.prop(b._elem,"readyState")&&i(a.prop(b._elem,"videoWidth"),a.prop(b._elem,"videoHeight"))}};e.playerResize=function(b){b&&
|
60
|
+
(b=k.getElementById(b.replace(u,"")))&&a(b).triggerHandler("swfstageresize")};a(k).bind("emptied",function(a){a=p(a.target);F(a)});var E;e.jwPlayerReady=function(c){var d=n(c.id),e=0,f=function(){if(!(9<e))if(e++,i(d)){if(d.wasSwfReady)a(d._elem).mediaLoad();else{var g=parseFloat(c.version,10);(5.6>g||6<=g)&&b.warn("mediaelement-swf is only testet with jwplayer 5.6+")}d.wasSwfReady=!0;d.tryedReframeing=0;D(d);F(d)}else clearTimeout(d.reframeTimer),d.reframeTimer=setTimeout(f,9*e),2<e&&9>d.tryedReframeing&&
|
61
|
+
(d.tryedReframeing++,d.shadowElem.css({overflow:"visible"}),setTimeout(function(){d.shadowElem.css({overflow:"hidden"})},16))};if(d&&d.jwapi){if(!d.tryedReframeing)d.tryedReframeing=0;clearTimeout(E);d.jwData=c;d.shadowElem.removeClass("flashblocker-assumed");a.prop(d._elem,"volume",d.volume);a.prop(d._elem,"muted",d.muted);f()}};var z=a.noop;if(g){var A={play:1,playing:1},x="play,pause,playing,canplay,progress,waiting,ended,loadedmetadata,durationchange,emptied".split(","),G=x.map(function(a){return a+
|
62
|
+
".webshimspolyfill"}).join(" "),J=function(c){var d=b.data(c.target,"mediaelement");d&&(c.originalEvent&&c.originalEvent.type===c.type)==("flash"==d.activating)&&(c.stopImmediatePropagation(),A[c.type]&&d.isActive!=d.activating&&a(c.target).pause())},z=function(c){a(c).unbind(G).bind(G,J);x.forEach(function(a){b.moveToFirstEvent(c,a)})};z(k)}e.setActive=function(c,d,e){e||(e=b.data(c,"mediaelement"));if(e&&e.isActive!=d){"html5"!=d&&"flash"!=d&&b.warn("wrong type for mediaelement activating: "+d);
|
63
|
+
var f=b.data(c,"shadowData");e.activating=d;a(c).pause();e.isActive=d;"flash"==d?(f.shadowElement=f.shadowFocusElement=e.shadowElem[0],a(c).hide().getShadowElement().show()):(a(c).show().getShadowElement().hide(),f.shadowElement=f.shadowFocusElement=!1)}};var K=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 e=b,f=d.networkState;
|
64
|
+
for(c(0,d);--e;)delete d[a[e]];d.actionQueue=[];d.buffered.length=0;f&&m(d._elem,"emptied")}}}(),H=function(b,c){var d=b._elem,e=b.shadowElem;a(d)[c?"addClass":"removeClass"]("webshims-controls");"audio"==b._elemNodeName&&!c?e.css({width:0,height:0}):e.css({width:d.style.width||a(d).width(),height:d.style.height||a(d).height()})};e.createSWF=function(c,f,h){if(o){1>l?l=1:l++;var i=a.extend({},d.jwVars,{image:a.prop(c,"poster")||"",file:f.srcProp}),j=a(c).data("jwvars")||{};if(h&&h.swfCreated)e.setActive(c,
|
65
|
+
"flash",h),K(h),h.currentSrc=f.srcProp,a.extend(i,j),d.changeJW(i,c,f,h,"load"),B(c,"sendEvent",["LOAD",i]);else{var k=a.prop(c,"controls"),C="jwplayer-"+b.getID(c),m=a.extend({},d.jwParams,a(c).data("jwparams")),n=c.nodeName.toLowerCase(),s=a.extend({},d.jwAttrs,{name:C,id:C},a(c).data("jwattrs")),p=a('<div class="polyfill-'+n+' polyfill-mediaelement" id="wrapper-'+C+'"><div id="'+C+'"></div>').css({position:"relative",overflow:"hidden"}),h=b.data(c,"mediaelement",b.objectCreate(q,{actionQueue:{value:[]},
|
66
|
+
shadowElem:{value:p},_elemNodeName:{value:n},_elem:{value:c},currentSrc:{value:f.srcProp},swfCreated:{value:!0},buffered:{value:{start:function(a){if(a>=h.buffered.length)b.error("buffered index size error");else return 0},end:function(a){if(a>=h.buffered.length)b.error("buffered index size error");else return(h.duration-h._bufferedStart)*h._bufferedEnd/100+h._bufferedStart},length:0}}}));H(h,k);p.insertBefore(c);g&&a.extend(h,{volume:a.prop(c,"volume"),muted:a.prop(c,"muted")});a.extend(i,{id:C,
|
67
|
+
controlbar:k?d.jwVars.controlbar||("video"==n?"over":"bottom"):"video"==n?"none":"bottom",icons:""+(k&&"video"==n)},j,{playerready:"jQuery.webshims.mediaelement.jwPlayerReady"});i.plugins=i.plugins?i.plugins+(","+w):w;b.addShadowDom(c,p);z(c);e.setActive(c,"flash",h);d.changeJW(i,c,f,h,"embed");I(h);t.embedSWF(r,C,"100%","100%","9.0.0",!1,i,m,s,function(d){if(d.success)h.jwapi=d.ref,k||a(d.ref).attr("tabindex","-1").css("outline","none"),setTimeout(function(){if(!d.ref.parentNode&&p[0].parentNode||
|
68
|
+
"none"==d.ref.style.display)p.addClass("flashblocker-assumed"),a(c).trigger("flashblocker"),b.warn("flashblocker assumed");a(d.ref).css({minHeight:"2px",minWidth:"2px",display:"block"})},9),E||(clearTimeout(E),E=setTimeout(function(){var c=a(d.ref);1<c[0].offsetWidth&&1<c[0].offsetHeight&&0===location.protocol.indexOf("file:")?b.error("Add your local development-directory to the local-trusted security sandbox: http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html"):
|
69
|
+
(2>c[0].offsetWidth||2>c[0].offsetHeight)&&b.info("JS-SWF connection can't be established on hidden or unconnected flash objects")},8E3))})}}else setTimeout(function(){a(c).mediaLoad()},1)};var B=function(a,b,c,d){return(d=d||p(a))?(d.jwapi&&d.jwapi[b]?d.jwapi[b].apply(d.jwapi,c||[]):(d.actionQueue.push({fn:b,args:c}),10<d.actionQueue.length&&setTimeout(function(){5<d.actionQueue.length&&d.actionQueue.shift()},99)),d):!1};["audio","video"].forEach(function(c){var d={},e,f=function(a){"audio"==c&&
|
70
|
+
("videoHeight"==a||"videoWidth"==a)||(d[a]={get:function(){var b=p(this);return b?b[a]:g&&e[a].prop._supget?e[a].prop._supget.apply(this):q[a]},writeable:!1})},h=function(a,b){f(a);delete d[a].writeable;d[a].set=b};h("volume",function(a){var c=p(this);if(c){if(a*=100,!isNaN(a)){var d=c.muted;(0>a||100<a)&&b.error("volume greater or less than allowed "+a/100);B(this,"sendEvent",["VOLUME",a],c);if(d)try{c.jwapi.sendEvent("mute","true")}catch(f){}a/=100;if(!(c.volume==a||"flash"!=c.isActive))c.volume=
|
71
|
+
a,m(c._elem,"volumechange")}}else if(e.volume.prop._supset)return e.volume.prop._supset.apply(this,arguments)});h("muted",function(a){var b=p(this);if(b){if(a=!!a,B(this,"sendEvent",["mute",""+a],b),!(b.muted==a||"flash"!=b.isActive))b.muted=a,m(b._elem,"volumechange")}else if(e.muted.prop._supset)return e.muted.prop._supset.apply(this,arguments)});h("currentTime",function(a){var b=p(this);if(b){if(a*=1,!isNaN(a)){if(b.paused)clearTimeout(b.stopPlayPause),b.stopPlayPause=setTimeout(function(){b.paused=
|
72
|
+
!0;b.stopPlayPause=!1},50);B(this,"sendEvent",["SEEK",""+a],b);if(b.paused){if(0<b.readyState)b.currentTime=a,m(b._elem,"timeupdate");try{b.jwapi.sendEvent("play","false")}catch(c){}}}}else if(e.currentTime.prop._supset)return e.currentTime.prop._supset.apply(this,arguments)});["play","pause"].forEach(function(a){d[a]={value:function(){var b=p(this);if(b)b.stopPlayPause&&clearTimeout(b.stopPlayPause),B(this,"sendEvent",["play","play"==a],b),setTimeout(function(){if("flash"==b.isActive&&(b._ppFlag=
|
73
|
+
!0,b.paused!=("play"!=a)))b.paused="play"!=a,m(b._elem,a)},1);else if(e[a].prop._supvalue)return e[a].prop._supvalue.apply(this,arguments)}}});s.forEach(f);b.onNodeNamesPropertyModify(c,"controls",function(d,e){var f=p(this);a(this)[e?"addClass":"removeClass"]("webshims-controls");if(f){try{B(this,e?"showControls":"hideControls",[c],f)}catch(g){b.warn("you need to generate a crossdomain.xml")}"audio"==c&&H(f,e);a(f.jwapi).attr("tabindex",e?"0":"-1")}});e=b.defineNodeNameProperties(c,d,"prop")});if(o){var L=
|
74
|
+
a.cleanData,M=a.browser.msie&&9>b.browserVersion,N={object:1,OBJECT:1};a.cleanData=function(a){var b,c,d;if(a&&(c=a.length)&&l)for(b=0;b<c;b++)if(N[a[b].nodeName]){if("sendEvent"in a[b]){l--;try{a[b].sendEvent("play",!1)}catch(e){}}if(M)try{for(d in a[b])"function"==typeof a[b][d]&&(a[b][d]=null)}catch(f){}}return L.apply(this,arguments)}}if(!g){var y=k.createElement("a");y.style.display="none";["poster","src"].forEach(function(c){b.defineNodeNamesProperty("src"==c?["audio","video","source"]:["video"],
|
75
|
+
c,{prop:{get:function(){var b=this.getAttribute(c),d;if(null==b)return"";y.setAttribute("href",b+"");if(!a.support.hrefNormalized){try{a(y).appendTo(this),d=y.getAttribute("href",4)}catch(e){d=y.getAttribute("href",4)}a(y).detach()}return d||y.href},set:function(b){a.attr(this,c,b)}}})});["autoplay","controls"].forEach(function(a){b.defineNodeNamesBooleanProperty(["audio","video"],a)});b.defineNodeNamesProperties(["audio","video"],{HAVE_CURRENT_DATA:{value:2},HAVE_ENOUGH_DATA:{value:4},HAVE_FUTURE_DATA:{value:3},
|
76
|
+
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,39 +1,41 @@
|
|
1
|
-
(function(
|
2
|
-
jQuery.webshims.register("dom-extend",function(
|
3
|
-
!0)),null==
|
4
|
-
"shadowData");return
|
5
|
-
("attr"==
|
6
|
-
m[
|
7
|
-
|
8
|
-
|
9
|
-
d
|
10
|
-
|
11
|
-
|
12
|
-
""):a.removeAttr.value.call(this)},get:function(){return null!=a.attr.get.call(this)}}}},reflectProperties:function(
|
13
|
-
|
14
|
-
|
15
|
-
a[b]
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
(function(
|
20
|
-
m&&!
|
21
|
-
jQuery.webshims.register("form-datalist",function(
|
22
|
-
try{
|
23
|
-
|
24
|
-
|
25
|
-
if(!
|
26
|
-
this.timedHide);
|
27
|
-
|
28
|
-
a)},_resetListCached:function(a){var
|
29
|
-
"fontFamily")});var c=[],
|
30
|
-
j.indexOf(a)&&
|
31
|
-
this.showHideOptions()},showHideOptions:function(
|
32
|
-
f.
|
33
|
-
this.
|
34
|
-
9)):
|
35
|
-
-1;
|
36
|
-
0);0>f.top?
|
37
|
-
(a=0),
|
38
|
-
|
39
|
-
|
1
|
+
(function(a){if(!Modernizr.genericDOM){var g=document,q,k,o=/<([\w:]+)/,r={option:1,optgroup:1,legend:1,thead:1,tr:1,td:1,col:1,area:1};a.webshims.fixHTML5=function(a){if("string"!=typeof a||r[(o.exec(a)||["",""])[1].toLowerCase()])return a;if(!k){q=g.body;if(!q)return a;k=g.createElement("div");k.style.display="none"}var m=k.cloneNode(!1);q.appendChild(m);m.innerHTML=a;q.removeChild(m);return m.childNodes}}})(jQuery);
|
2
|
+
jQuery.webshims.register("dom-extend",function(a,g,q,k,o){var r=g.modules,p=/\s*,\s*/,m={},y={},s={},x={},t={},w=a.fn.val,b=function(i,d,h,b,c){return c?w.call(a(i)):w.call(a(i),h)};a.fn.val=function(i){var d=this[0];arguments.length&&null==i&&(i="");if(!arguments.length)return!d||1!==d.nodeType?w.call(this):a.prop(d,"value",i,"val",!0);if(a.isArray(i))return w.apply(this,arguments);var h=a.isFunction(i);return this.each(function(b){d=this;1===d.nodeType&&(h?(b=i.call(d,b,a.prop(d,"value",o,"val",
|
3
|
+
!0)),null==b&&(b=""),a.prop(d,"value",b,"val")):a.prop(d,"value",i,"val"))})};var c="_webshimsLib"+Math.round(1E3*Math.random()),e=function(i,d,h){i=i.jquery?i[0]:i;if(!i)return h||{};var b=a.data(i,c);h!==o&&(b||(b=a.data(i,c,{})),d&&(b[d]=h));return d?b&&b[d]:b};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(i){a.fn[i.name]=function(){return this.map(function(){var a=e(this,
|
4
|
+
"shadowData");return a&&a[i.prop]||this})}});["removeAttr","prop","attr"].forEach(function(i){m[i]=a[i];a[i]=function(d,h,c,u,e){var f="val"==u,l=!f?m[i]:b;if(!d||!y[h]||1!==d.nodeType||!f&&u&&"attr"==i&&a.attrFn[h])return l(d,h,c,u,e);var v=(d.nodeName||"").toLowerCase(),n=s[v],g="attr"==i&&(!1===c||null===c)?"removeAttr":i,j,r,p;n||(n=s["*"]);n&&(n=n[h]);n&&(j=n[g]);if(j){if("value"==h)r=j.isVal,j.isVal=f;if("removeAttr"===g)return j.value.call(d);if(c===o)return j.get?j.get.call(d):j.value;j.set&&
|
5
|
+
("attr"==i&&!0===c&&(c=h),p=j.set.call(d,c));if("value"==h)j.isVal=r}else p=l(d,h,c,u,e);if((c!==o||"removeAttr"===g)&&t[v]&&t[v][h]){var k;k="removeAttr"==g?!1:"prop"==g?!!c:!0;t[v][h].forEach(function(a){if(!a.only||(a.only="prop"==i)||"attr"==a.only&&"prop"!=i)a.call(d,c,k,f?"val":g,i)})}return p};x[i]=function(d,h,c){s[d]||(s[d]={});s[d][h]||(s[d][h]={});var u=s[d][h][i],e=function(a,d,v){return d&&d[a]?d[a]:v&&v[a]?v[a]:"prop"==i&&"value"==h?function(a){return c.isVal?b(this,h,a,!1,0===arguments.length):
|
6
|
+
m[i](this,h,a)}:"prop"==i&&"value"==a&&c.value.apply?function(a){var d=m[i](this,h);d&&d.apply&&(d=d.apply(this,arguments));return d}:function(a){return m[i](this,h,a)}};s[d][h][i]=c;if(c.value===o){if(!c.set)c.set=c.writeable?e("set",c,u):g.cfg.useStrict&&"prop"==h?function(){throw h+" is readonly on "+d;}:a.noop;if(!c.get)c.get=e("get",c,u)}["value","get","set"].forEach(function(a){c[a]&&(c["_sup"+a]=e(a,u))})}});var f=!a.browser.msie||8<parseInt(a.browser.version,10),n=function(){var a=g.getPrototypeOf(k.createElement("foobar")),
|
7
|
+
d=Object.prototype.hasOwnProperty;return function(h,b,c){var n=k.createElement(h),j=g.getPrototypeOf(n);if(f&&j&&a!==j&&(!n[b]||!d.call(n,b))){var p=n[b];c._supvalue=function(){return p&&p.apply?p.apply(this,arguments):p};j[b]=c.value}else c._supvalue=function(){var a=e(this,"propValue");return a&&a[b]&&a[b].apply?a[b].apply(this,arguments):a&&a[b]},l.extendValue(h,b,c.value);c.value._supvalue=c._supvalue}}(),l=function(){var b={};g.addReady(function(d,h){var c={},e=function(b){c[b]||(c[b]=a(d.getElementsByTagName(b)),
|
8
|
+
h[0]&&a.nodeName(h[0],b)&&(c[b]=c[b].add(h)))};a.each(b,function(a,d){e(a);!d||!d.forEach?g.warn("Error: with "+a+"-property. methods: "+d):d.forEach(function(d){c[a].each(d)})});c=null});var d,h=a([]),c=function(c,h){b[c]?b[c].push(h):b[c]=[h];a.isDOMReady&&(d||a(k.getElementsByTagName(c))).each(h)};return{createTmpCache:function(b){a.isDOMReady&&(d=d||a(k.getElementsByTagName(b)));return d||h},flushTmpCache:function(){d=null},content:function(d,b){c(d,function(){var d=a.attr(this,b);null!=d&&a.attr(this,
|
9
|
+
b,d)})},createElement:function(a,d){c(a,d)},extendValue:function(d,b,h){c(d,function(){a(this).each(function(){e(this,"propValue",{})[b]=this[b];this[b]=h})})}}}(),j=function(a,d){if(a.defaultValue===o)a.defaultValue="";if(!a.removeAttr)a.removeAttr={value:function(){a[d||"prop"].set.call(this,a.defaultValue);a.removeAttr._supvalue.call(this)}}};a.extend(g,{getID:function(){var b=(new Date).getTime();return function(d){var d=a(d),c=d.attr("id");c||(b++,c="ID-"+b,d.attr("id",c));return c}}(),extendUNDEFProp:function(b,
|
10
|
+
d){a.each(d,function(a,d){a in b||(b[a]=d)})},createPropDefault:j,data:e,moveToFirstEvent:function(){var b=a._data?"_data":"data";return function(d,c,e){if((d=(a[b](d,"events")||{})[c])&&1<d.length)c=d.pop(),e||(e="bind"),"bind"==e&&d.delegateCount?d.splice(d.delegateCount,0,c):d.unshift(c)}}(),addShadowDom:function(b,d,h){h=h||{};b.jquery&&(b=b[0]);d.jquery&&(d=d[0]);if(!h.shadowFocusElement)h.shadowFocusElement=d;var n=a.data(b,c)||a.data(b,c,{}),f=a.data(d,c)||a.data(d,c,{});n.hasShadow=d;f.nativeElement=
|
11
|
+
b;f.shadowData=n.shadowData={nativeElement:b,shadowElement:d,shadowFocusElement:h.shadowFocusElement};h.shadowChilds&&h.shadowChilds.each(function(){e(this,"shadowData",f.shadowData)});if(h.data)n.shadowData.data=h.data,f.shadowData.data=h.data;h=null},propTypes:{standard:function(a){j(a);if(!a.prop)a.prop={set:function(b){a.attr.set.call(this,""+b)},get:function(){return a.attr.get.call(this)||a.defaultValue}}},"boolean":function(a){j(a);if(!a.prop)a.prop={set:function(b){b?a.attr.set.call(this,
|
12
|
+
""):a.removeAttr.value.call(this)},get:function(){return null!=a.attr.get.call(this)}}}},reflectProperties:function(b,d){"string"==typeof d&&(d=d.split(p));d.forEach(function(d){g.defineNodeNamesProperty(b,d,{prop:{set:function(b){a.attr(this,d,b)},get:function(){return a.attr(this,d)||""}}})})},defineNodeNameProperty:function(b,d,c){y[d]=!0;if(c.reflect)g.propTypes[c.propType||"standard"](c);["prop","attr","removeAttr"].forEach(function(e){var f=c[e];f&&(f="prop"===e?a.extend({writeable:!0},f):a.extend({},
|
13
|
+
f,{writeable:!0}),x[e](b,d,f),"*"!=b&&g.cfg.extendNative&&"prop"==e&&f.value&&a.isFunction(f.value)&&n(b,d,f),c[e]=f)});c.initAttr&&l.content(b,d);return c},defineNodeNameProperties:function(a,b,c,e){for(var f in b)!e&&b[f].initAttr&&l.createTmpCache(a),c&&(b[f][c]?g.log("override: "+a+"["+f+"] for "+c):(b[f][c]={},["value","set","get"].forEach(function(a){a in b[f]&&(b[f][c][a]=b[f][a],delete b[f][a])}))),b[f]=g.defineNodeNameProperty(a,f,b[f]);e||l.flushTmpCache();return b},createElement:function(b,
|
14
|
+
c,h){var f;a.isFunction(c)&&(c={after:c});l.createTmpCache(b);c.before&&l.createElement(b,c.before);h&&(f=g.defineNodeNameProperties(b,h,!1,!0));c.after&&l.createElement(b,c.after);l.flushTmpCache();return f},onNodeNamesPropertyModify:function(b,c,h,f){"string"==typeof b&&(b=b.split(p));a.isFunction(h)&&(h={set:h});b.forEach(function(a){t[a]||(t[a]={});"string"==typeof c&&(c=c.split(p));h.initAttr&&l.createTmpCache(a);c.forEach(function(b){t[a][b]||(t[a][b]=[],y[b]=!0);if(h.set){if(f)h.set.only=f;
|
15
|
+
t[a][b].push(h.set)}h.initAttr&&l.content(a,b)});l.flushTmpCache()})},defineNodeNamesBooleanProperty:function(b,c,h){h||(h={});if(a.isFunction(h))h.set=h;g.defineNodeNamesProperty(b,c,{attr:{set:function(a){this.setAttribute(c,a);h.set&&h.set.call(this,!0)},get:function(){return null==this.getAttribute(c)?o:c}},removeAttr:{value:function(){this.removeAttribute(c);h.set&&h.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:h.initAttr||!1})},contentAttr:function(a,b,c){if(a.nodeName){if(c===
|
16
|
+
o)return c=(a.attributes[b]||{}).value,null==c?o:c;"boolean"==typeof c?c?a.setAttribute(b,b):a.removeAttribute(b):a.setAttribute(b,c)}},activeLang:function(){var b=[],c={},h,f,e=/:\/\/|^\.*\//,n=function(b,c,d){return c&&d&&-1!==a.inArray(c,d.availabeLangs||[])?(b.loading=!0,d=d.langSrc,e.test(d)||(d=g.cfg.basePath+d),g.loader.loadScript(d+c+".js",function(){b.langObj[c]?(b.loading=!1,j(b,!0)):a(function(){b.langObj[c]&&j(b,!0);b.loading=!1})}),!0):!1},l=function(a){c[a]&&c[a].forEach(function(a){a.callback()})},
|
17
|
+
j=function(a,b){if(a.activeLang!=h&&a.activeLang!==f){var c=r[a.module].options;if(a.langObj[h]||f&&a.langObj[f])a.activeLang=h,a.callback(a.langObj[h]||a.langObj[f],h),l(a.module);else if(!b&&!n(a,h,c)&&!n(a,f,c)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],h),l(a.module)}};return function(e){if("string"==typeof e&&e!==h)h=e,f=h.split("-")[0],h==f&&(f=!1),a.each(b,function(a,b){j(b)});else if("object"==typeof e)if(e.register)c[e.register]||(c[e.register]=[]),c[e.register].push(e),
|
18
|
+
e.callback();else{if(!e.activeLang)e.activeLang="";b.push(e);j(e)}return h}}()});a.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(a,b){g[a]=function(a,c,e,f){"string"==typeof a&&(a=a.split(p));var n={};a.forEach(function(a){n[a]=g[b](a,c,e,f)});return n}});g.isReady("webshimLocalization",!0)});
|
19
|
+
(function(a,g){var q=a.webshims.browserVersion;if(!(a.browser.mozilla&&5<q)&&(!a.browser.msie||12>q&&7<q)){var k={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},o=function(a,g){a.getAttribute("role")||a.setAttribute("role",g)};a.webshims.addReady(function(r,p){a.each(k,function(g,k){for(var m=a(g,r).add(p.filter(g)),b=0,c=m.length;b<c;b++)o(m[b],k)});if(r===g){var m=g.getElementsByTagName("header")[0],q=g.getElementsByTagName("footer"),s=q.length;
|
20
|
+
m&&!a(m).closest("section, article")[0]&&o(m,"banner");s&&(m=q[s-1],a(m).closest("section, article")[0]||o(m,"contentinfo"))}})}})(jQuery,document);
|
21
|
+
jQuery.webshims.register("form-datalist",function(a,g,q,k,o){g.propTypes.element=function(k){g.createPropDefault(k,"attr");if(!k.prop)k.prop={get:function(){var g=k.attr.get.call(this);g&&(g=a("#"+g)[0])&&k.propNodeName&&!a.nodeName(g,k.propNodeName)&&(g=null);return g||null},writeable:!1}};(function(){var r=a.webshims.cfg.forms,p=Modernizr.input.list;if(!p||r.customDatalist){var m=0,y={submit:1,button:1,reset:1,hidden:1,range:1,date:1},s=a.browser.msie&&7>parseInt(a.browser.version,10),x={},t=function(a){if(!a)return[];
|
22
|
+
if(x[a])return x[a];var c;try{c=JSON.parse(localStorage.getItem("storedDatalistOptions"+a))}catch(e){}x[a]=c||[];return c||[]},w={_create:function(b){if(!y[a.prop(b.input,"type")]){var c=b.datalist,e=a.data(b.input,"datalistWidget");if(c&&e&&e.datalist!==c)e.datalist=c,e.id=b.id,a(e.datalist).unbind("updateDatalist.datalistWidget").bind("updateDatalist.datalistWidget",a.proxy(e,"_resetListCached")),e._resetListCached();else if(c){if(!(e&&e.datalist===c)){m++;var f=this;this.hideList=a.proxy(f,"hideList");
|
23
|
+
this.timedHide=function(){clearTimeout(f.hideTimer);f.hideTimer=setTimeout(f.hideList,9)};this.datalist=c;this.id=b.id;this.hasViewableData=!0;this._autocomplete=a.attr(b.input,"autocomplete");a.data(b.input,"datalistWidget",this);this.shadowList=a('<div class="datalist-polyfill" />');r.positionDatalist?this.shadowList.insertAfter(b.input):this.shadowList.appendTo("body");this.index=-1;this.input=b.input;this.arrayOptions=[];this.shadowList.delegate("li","mouseenter.datalistWidget mousedown.datalistWidget click.datalistWidget",
|
24
|
+
function(c){var e=a("li:not(.hidden-item)",f.shadowList),g="mousedown"==c.type||"click"==c.type;f.markItem(e.index(c.currentTarget),g,e);"click"==c.type&&(f.hideList(),a(b.input).trigger("datalistselect"));return"mousedown"!=c.type}).bind("focusout",this.timedHide);b.input.setAttribute("autocomplete","off");a(b.input).attr({"aria-haspopup":"true"}).bind("input.datalistWidget",function(){if(!f.triggeredByDatalist)f.changedValue=!1,f.showHideOptions()}).bind("keydown.datalistWidget",function(c){var e=
|
25
|
+
c.keyCode,g;if(40==e&&!f.showList())return f.markItem(f.index+1,!0),!1;if(f.isListVisible){if(38==e)return f.markItem(f.index-1,!0),!1;if(!c.shiftKey&&(33==e||36==e))return f.markItem(0,!0),!1;if(!c.shiftKey&&(34==e||35==e))return c=a("li:not(.hidden-item)",f.shadowList),f.markItem(c.length-1,!0,c),!1;if(13==e||27==e)return 13==e&&(g=a("li.active-item:not(.hidden-item)",f.shadowList),f.changeValue(a("li.active-item:not(.hidden-item)",f.shadowList))),f.hideList(),g&&g[0]&&a(b.input).trigger("datalistselect"),
|
26
|
+
!1}}).bind("focus.datalistWidget",function(){a(this).hasClass("list-focus")&&f.showList()}).bind("mousedown.datalistWidget",function(){(this==k.activeElement||a(this).is(":focus"))&&f.showList()}).bind("blur.datalistWidget",this.timedHide);a(this.datalist).unbind("updateDatalist.datalistWidget").bind("updateDatalist.datalistWidget",a.proxy(this,"_resetListCached"));this._resetListCached();b.input.form&&b.input.id&&a(b.input.form).bind("submit.datalistWidget"+b.input.id,function(){var c=a.prop(b.input,
|
27
|
+
"value"),e=(b.input.name||b.input.id)+a.prop(b.input,"type");if(!f.storedOptions)f.storedOptions=t(e);if(c&&-1==f.storedOptions.indexOf(c)&&(f.storedOptions.push(c),c=f.storedOptions,e)){c=c||[];try{localStorage.setItem("storedDatalistOptions"+e,JSON.stringify(c))}catch(g){}}});a(q).bind("unload",function(){f.destroy()})}}else e&&e.destroy()}},destroy:function(){var b=a.attr(this.input,"autocomplete");a(this.input).unbind(".datalistWidget").removeData("datalistWidget");this.shadowList.remove();a(k).unbind(".datalist"+
|
28
|
+
this.id);this.input.form&&this.input.id&&a(this.input.form).unbind("submit.datalistWidget"+this.input.id);this.input.removeAttribute("aria-haspopup");b===o?this.input.removeAttribute("autocomplete"):a(this.input).attr("autocomplete",b)},_resetListCached:function(a){var c=this,e;this.needsUpdate=!0;this.lastUpdatedValue=!1;this.lastUnfoundValue="";this.updateTimer||(q.QUnit||(e=a&&k.activeElement==c.input)?c.updateListOptions(e):g.ready("WINDOWLOAD",function(){c.updateTimer=setTimeout(function(){c.updateListOptions();
|
29
|
+
c=null;m=1},200+100*m)}))},updateListOptions:function(b){this.needsUpdate=!1;clearTimeout(this.updateTimer);this.updateTimer=!1;this.shadowList.css({fontSize:a.curCSS(this.input,"fontSize"),fontFamily:a.curCSS(this.input,"fontFamily")});this.searchStart=a(this.input).hasClass("search-start");var c=[],e=[],f=[],g,l,j,i;for(l=a.prop(this.datalist,"options"),j=0,i=l.length;j<i;j++){g=l[j];if(g.disabled)return;g={value:a(g).val()||"",text:a.trim(a.attr(g,"label")||g.textContent||g.innerText||a.text([g])||
|
30
|
+
""),className:g.className||"",style:a.attr(g,"style")||""};g.text?g.text!=g.value&&(g.className+=" different-label-value"):g.text=g.value;e[j]=g.value;f[j]=g}if(!this.storedOptions)this.storedOptions=t((this.input.name||this.input.id)+a.prop(this.input,"type"));this.storedOptions.forEach(function(a){-1==e.indexOf(a)&&f.push({value:a,text:a,className:"stored-suggest",style:""})});for(j=0,i=f.length;j<i;j++)l=f[j],c[j]='<li class="'+l.className+'" style="'+l.style+'" tabindex="-1" role="listitem"><span class="option-label">'+
|
31
|
+
l.text+'</span> <span class="option-value">'+l.value+"</span></li>";this.arrayOptions=f;this.shadowList.html('<div><ul role="list" class="'+(this.datalist.className||"")+" "+this.datalist.id+'-shadowdom">'+c.join("\n")+"</ul></div>");a.fn.bgIframe&&s&&this.shadowList.bgIframe();(b||this.isListVisible)&&this.showHideOptions()},showHideOptions:function(b){var c=a.prop(this.input,"value").toLowerCase();if(!(c===this.lastUpdatedValue||this.lastUnfoundValue&&0===c.indexOf(this.lastUnfoundValue))){this.lastUpdatedValue=
|
32
|
+
c;var e=!1,f=this.searchStart,g=a("li",this.shadowList);c?this.arrayOptions.forEach(function(b,j){var i;if(!("lowerText"in b))b.lowerText=b.text!=b.value?b.text.toLowerCase()+b.value.toLowerCase():b.text.toLowerCase();i=b.lowerText.indexOf(c);(i=f?!i:-1!==i)?(a(g[j]).removeClass("hidden-item"),e=!0):a(g[j]).addClass("hidden-item")}):g.length&&(g.removeClass("hidden-item"),e=!0);this.hasViewableData=e;!b&&e&&this.showList();if(!e)this.lastUnfoundValue=c,this.hideList()}},setPos:function(){var b=r.positionDatalist?
|
33
|
+
a(this.input).position():g.getRelOffset(this.shadowList,this.input);b.top+=a(this.input).outerHeight();b.width=a(this.input).outerWidth()-(parseInt(this.shadowList.css("borderLeftWidth"),10)||0)-(parseInt(this.shadowList.css("borderRightWidth"),10)||0);this.shadowList.css(b);return b},showList:function(){if(this.isListVisible)return!1;this.needsUpdate&&this.updateListOptions();this.showHideOptions(!0);if(!this.hasViewableData)return!1;this.isListVisible=!0;var b=this,c;b.setPos();b.shadowList.addClass("datalist-visible");
|
34
|
+
a(k).unbind(".datalist"+b.id).bind("mousedown.datalist"+b.id+" focusin.datalist"+b.id,function(c){c.target===b.input||b.shadowList[0]===c.target||a.contains(b.shadowList[0],c.target)?(clearTimeout(b.hideTimer),setTimeout(function(){clearTimeout(b.hideTimer)},9)):b.timedHide()});a(q).unbind(".datalist"+b.id).bind("resize.datalist"+b.id+"orientationchange.datalist "+b.id+" emchange.datalist"+b.id,function(){clearTimeout(c);c=setTimeout(function(){b.setPos()},9)});clearTimeout(c);return!0},hideList:function(){if(!this.isListVisible)return!1;
|
35
|
+
var b=this,c=function(){b.changedValue&&a(b.input).trigger("change");b.changedValue=!1};b.shadowList.removeClass("datalist-visible list-item-active").scrollTop(0).find("li.active-item").removeClass("active-item");b.index=-1;b.isListVisible=!1;if(b.changedValue){b.triggeredByDatalist=!0;g.triggerInlineForm&&g.triggerInlineForm(b.input,"input");if(b.input==k.activeElement||a(b.input).is(":focus"))a(b.input).one("blur",c);else c();b.triggeredByDatalist=!1}a(k).unbind(".datalist"+b.id);a(q).unbind(".datalist"+
|
36
|
+
b.id);return!0},scrollIntoView:function(b){var c=a("ul",this.shadowList),e=a("div",this.shadowList),f=b.position();f.top-=(parseInt(c.css("paddingTop"),10)||0)+(parseInt(c.css("marginTop"),10)||0)+(parseInt(c.css("borderTopWidth"),10)||0);0>f.top?e.scrollTop(e.scrollTop()+f.top-2):(f.top+=b.outerHeight(),b=e.height(),f.top>b&&e.scrollTop(e.scrollTop()+(f.top-b)+2))},changeValue:function(b){if(b[0]){var b=a("span.option-value",b).text(),c=a.prop(this.input,"value");if(b!=c)a(this.input).prop("value",
|
37
|
+
b).triggerHandler("updateInput"),this.changedValue=!0}},markItem:function(b,c,e){e=e||a("li:not(.hidden-item)",this.shadowList);if(e.length)0>b?b=e.length-1:b>=e.length&&(b=0),e.removeClass("active-item"),this.shadowList.addClass("list-item-active"),e=e.filter(":eq("+b+")").addClass("active-item"),c&&(this.changeValue(e),this.scrollIntoView(e)),this.index=b}};(function(){p||g.defineNodeNameProperty("datalist","options",{prop:{writeable:!1,get:function(){var b=a("select",this);b[0]?b=b[0].options:
|
38
|
+
(b=a("option",this).get(),b.length&&g.warn("you should wrap you option-elements for a datalist in a select element to support IE and other old browsers."));return b}}});var b={autocomplete:{attr:{get:function(){var b=a.data(this,"datalistWidget");return b?b._autocomplete:"autocomplete"in this?this.autocomplete:this.getAttribute("autocomplete")},set:function(b){var e=a.data(this,"datalistWidget");e?(e._autocomplete=b,"off"==b&&e.hideList()):"autocomplete"in this?this.autocomplete=b:this.setAttribute("autocomplete",
|
39
|
+
b)}}}};if(!p||!1 in a("<input />")[0])b.selectedOption={prop:{writeable:!1,get:function(){var b=a.prop(this,"list"),e=null,f;if(!b)return e;f=a.attr(this,"value");if(!f)return e;b=a.prop(b,"options");if(!b.length)return e;a.each(b,function(b,c){if(f==a.prop(c,"value"))return e=c,!1});return e}}};b.list=p?{attr:{get:function(){var b=g.contentAttr(this,"list");null!=b?this.removeAttribute("list"):b=a.data(this,"datalistListAttr");return null==b?o:b},set:function(b){a.data(this,"datalistListAttr",b);
|
40
|
+
g.objectCreate(w,o,{input:this,id:b,datalist:a.prop(this,"list")})}},initAttr:!0,reflect:!0,propType:"element",propNodeName:"datalist"}:{attr:{get:function(){var a=g.contentAttr(this,"list");return null==a?o:a},set:function(b){g.contentAttr(this,"list",b);g.objectCreate(w,o,{input:this,id:b,datalist:a.prop(this,"list")})}},initAttr:!0,reflect:!0,propType:"element",propNodeName:"datalist"};g.defineNodeNameProperties("input",b);if(a.event.customEvent)a.event.customEvent.updateDatalist=!0,a.event.customEvent.updateInput=
|
41
|
+
!0,a.event.customEvent.datalistselect=!0;g.addReady(function(a,b){b.filter("datalist > select, datalist, datalist > option, datalist > select > option").closest("datalist").triggerHandler("updateDatalist")})})()}})()});
|
@@ -25,14 +25,14 @@ e);if(e=a.attr("media"))d.media=e;return d},w=swfobject.hasFlashPlayerVersion("9
|
|
25
25
|
var a=a.split("?")[0].split("."),a=a[a.length-1],d;c.each(f.mimeTypes[b],function(b,c){if(-1!==c.indexOf(a))return d=b,!1});return d};f.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 d=j.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(),
|
26
26
|
e=t(a,d);e.src?b.push(e):c("source",a).each(function(){e=t(this,d);e.src&&b.push(e)});return b}};c.fn.loadMediaSrc=function(a,b){return this.each(function(){b!==n&&(c(this).removeAttr("poster"),b&&c.attr(this,"poster",b));f.srces(this,a);c(this).mediaLoad()})};f.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(",");
|
27
27
|
f.canSwfPlaySrces=function(a,b){var d="";w&&(a=c(a),b=b||f.srces(a),c.each(b,function(a,b){if(b.container&&b.src&&-1!=f.swfMimeTypes.indexOf(b.container))return d=b,!1}));return d};var r={};f.canNativePlaySrces=function(a,b){var d="";if(i){var a=c(a),e=(a[0].nodeName||"").toLowerCase();if(!r[e])return d;b=b||f.srces(a);c.each(b,function(b,c){if(c.type&&r[e].prop._supvalue.call(a[0],c.type))return d=c,!1})}return d};f.setError=function(a,b){b||(b="can't play sources");c(a).pause().data("mediaerror",
|
28
|
-
b);h.warn("mediaelementError: "+b);setTimeout(function(){c(a).data("mediaerror")&&c(a).trigger("mediaerror")},1)};var z=function(){var a;return function(b,d,c){h.ready("mediaelement-swf",function(){f.createSWF?f.createSWF(b,d,c):a||(a=!0,p(),z(b,d,c))})}}(),x=function(a,b,d,c,
|
28
|
+
b);h.warn("mediaelementError: "+b);setTimeout(function(){c(a).data("mediaerror")&&c(a).trigger("mediaerror")},1)};var z=function(){var a;return function(b,d,c){h.ready("mediaelement-swf",function(){f.createSWF?f.createSWF(b,d,c):a||(a=!0,p(),z(b,d,c))})}}(),x=function(a,b,d,c,g){d||!1!==d&&b&&"flash"==b.isActive?(d=f.canSwfPlaySrces(a,c))?z(a,d,b):g?f.setError(a,!1):x(a,b,!1,c,!0):(d=f.canNativePlaySrces(a,c))?b&&"flash"==b.isActive&&f.setActive(a,"html5",b):g?(f.setError(a,!1),b&&"flash"==b.isActive&&
|
29
29
|
f.setActive(a,"html5",b)):x(a,b,!0,c,!0)},q=/^(?:embed|object|datalist)$/i,v=function(a,b){var d=h.data(a,"mediaelementBase")||h.data(a,"mediaelementBase",{}),e=f.srces(a),g=a.parentNode;clearTimeout(d.loadTimer);c.data(a,"mediaerror",!1);if(e.length&&g&&!(1!=g.nodeType||q.test(g.nodeName||"")))b=b||h.data(a,"mediaelement"),x(a,b,s.preferFlash||n,e)};c(j).bind("ended",function(a){var b=h.data(a.target,"mediaelement");(!l||b&&"html5"!=b.isActive||c.prop(a.target,"loop"))&&setTimeout(function(){!c.prop(a.target,
|
30
30
|
"paused")&&c.prop(a.target,"loop")&&c(a.target).prop("currentTime",0).play()},1)});l||h.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(a){var b=h.defineNodeNameProperty(a,"load",{prop:{value:function(){var a=h.data(this,"mediaelement");v(this,a);i&&(!a||"html5"==a.isActive)&&b.prop._supvalue&&b.prop._supvalue.apply(this,arguments)}}});r[a]=h.defineNodeNameProperty(a,"canPlayType",{prop:{value:function(b){var e="";i&&r[a].prop._supvalue&&(e=r[a].prop._supvalue.call(this,
|
31
|
-
b),"no"==e&&(e=""));!e&&w&&(b=c.trim((b||"").split(";")[0]),-1!=f.swfMimeTypes.indexOf(b)&&(e="maybe"));return e}}})});h.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var a=this,b=h.data(a,"mediaelementBase")||h.data(a,"mediaelementBase",{});clearTimeout(b.loadTimer);b.loadTimer=setTimeout(function(){v(a);a=null},9)}});
|
32
|
-
|
33
|
-
function(c){"emptied"==c.type&&(b=!1);clearTimeout(a)})}})});i
|
34
|
-
jQuery.webshims.register("details",function(c,g,j,i,l,o){var h=function(g){var f=c(g).parent("details");if(f[0]&&f.children(":first").get(0)===g)return f},m=function(g,f){var g=c(g),f=c(f),h=c.data(f[0],"summaryElement");c.data(g[0],"detailsElement",f);if(!h||g[0]!==h[0])h&&(h.hasClass("fallback-summary")?h.remove():h.unbind(".summaryPolyfill").removeData("detailsElement").removeAttr("role").removeAttr("tabindex").removeAttr("aria-expanded").removeClass("summary-button").find("span.details-open-indicator").remove()),
|
35
|
-
"summaryElement",g),f.prop("open",f.prop("open"))};g.createElement("summary",function(){var i=h(this);if(i&&!c.data(this,"detailsElement")){var f,j,l=c.attr(this,"tabIndex")||"0";m(this,i);c(this).bind("focus.summaryPolyfill",function(){c(this).addClass("summary-has-focus")}).bind("blur.summaryPolyfill",function(){c(this).removeClass("summary-has-focus")}).bind("mouseenter.summaryPolyfill",function(){c(this).addClass("summary-has-hover")}).bind("mouseleave.summaryPolyfill",function(){c(this).removeClass("summary-has-hover")}).bind("click.summaryPolyfill",
|
31
|
+
b),"no"==e&&(e=""));!e&&w&&(b=c.trim((b||"").split(";")[0]),-1!=f.swfMimeTypes.indexOf(b)&&(e="maybe"));return e}}})});h.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var a=this,b=h.data(a,"mediaelementBase")||h.data(a,"mediaelementBase",{});clearTimeout(b.loadTimer);b.loadTimer=setTimeout(function(){v(a);a=null},9)}});g=function(){h.addReady(function(a,b){c("video, audio",a).add(b.filter("video, audio")).each(function(){c.browser.msie&&8<h.browserVersion&&c.prop(this,
|
32
|
+
"paused")&&!c.prop(this,"readyState")&&c(this).is('audio[preload="none"][controls]:not([autoplay])')?c(this).prop("preload","metadata").mediaLoad():v(this);if(i){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}},n=function(){var a=g();a!=b&&(b=a,c(f).triggerHandler("progress"))};c(this).bind("play loadstart progress",function(c){"progress"==c.type&&(b=g());clearTimeout(a);a=setTimeout(n,999)}).bind("emptied stalled mediaerror abort suspend",
|
33
|
+
function(c){"emptied"==c.type&&(b=!1);clearTimeout(a)})}})})};i?(h.isReady("mediaelement-core",!0),g(),w&&h.ready("WINDOWLOAD mediaelement",p)):h.ready("mediaelement-swf",g)})})(jQuery,Modernizr,jQuery.webshims);
|
34
|
+
jQuery.webshims.register("details",function(c,g,j,i,l,o){var h=function(g){var f=c(g).parent("details");if(f[0]&&f.children(":first").get(0)===g)return f},m=function(g,f){var g=c(g),f=c(f),h=c.data(f[0],"summaryElement");c.data(g[0],"detailsElement",f);if(!h||g[0]!==h[0])h&&(h.hasClass("fallback-summary")?h.remove():h.unbind(".summaryPolyfill").removeData("detailsElement").removeAttr("role").removeAttr("tabindex").removeAttr("aria-expanded").removeClass("summary-button").find("span.details-open-indicator").remove()),
|
35
|
+
c.data(f[0],"summaryElement",g),f.prop("open",f.prop("open"))};g.createElement("summary",function(){var i=h(this);if(i&&!c.data(this,"detailsElement")){var f,j,l=c.attr(this,"tabIndex")||"0";m(this,i);c(this).bind("focus.summaryPolyfill",function(){c(this).addClass("summary-has-focus")}).bind("blur.summaryPolyfill",function(){c(this).removeClass("summary-has-focus")}).bind("mouseenter.summaryPolyfill",function(){c(this).addClass("summary-has-hover")}).bind("mouseleave.summaryPolyfill",function(){c(this).removeClass("summary-has-hover")}).bind("click.summaryPolyfill",
|
36
36
|
function(g){var i=h(this);if(i){if(!j&&g.originalEvent)return j=!0,g.stopImmediatePropagation(),g.preventDefault(),c(this).trigger("click"),j=!1;clearTimeout(f);f=setTimeout(function(){g.isDefaultPrevented()||i.prop("open",!i.prop("open"))},0)}}).bind("keydown.summaryPolyfill",function(f){if((13==f.keyCode||32==f.keyCode)&&!f.isDefaultPrevented())j=!0,f.preventDefault(),c(this).trigger("click"),j=!1}).attr({tabindex:l,role:"button"}).prepend('<span class="details-open-indicator" />');g.moveToFirstEvent(this,
|
37
37
|
"click")}});var u;g.defineNodeNamesBooleanProperty("details","open",function(g){var f=c(c.data(this,"summaryElement"));if(f){var h=g?"removeClass":"addClass",i=c(this);if(!u&&o.animate){i.stop().css({width:"",height:""});var j={width:i.width(),height:i.height()}}f.attr("aria-expanded",""+g);i[h]("closed-details-summary").children().not(f[0])[h]("closed-details-child");!u&&o.animate&&(g={width:i.width(),height:i.height()},i.css(j).animate(g,{complete:function(){c(this).css({width:"",height:""})}}))}});
|
38
38
|
g.createElement("details",function(){u=!0;var g=c.data(this,"summaryElement");g||(g=c("> summary:first-child",this),g[0]?m(g,this):(c(this).prependPolyfill('<summary class="fallback-summary">'+o.text+"</summary>"),c.data(this,"summaryElement")));c.prop(this,"open",c.prop(this,"open"));u=!1})});
|
@@ -1,53 +1,54 @@
|
|
1
|
-
(function(c){if(!Modernizr.genericDOM){var
|
2
|
-
jQuery.webshims.register("dom-extend",function(c,
|
3
|
-
!0)),null==
|
4
|
-
"shadowData");return
|
5
|
-
("attr"==
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
b,a)})},createElement:function(a,b){
|
10
|
-
|
11
|
-
|
12
|
-
""):
|
13
|
-
|
14
|
-
|
15
|
-
u[
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
(function(c,
|
20
|
-
|
21
|
-
(function(c,
|
22
|
-
|
23
|
-
|
24
|
-
"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"]}};
|
25
|
-
var
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
"paused")&&c.prop(
|
31
|
-
|
32
|
-
|
33
|
-
function(c){"emptied"==c.type&&(b=!1);clearTimeout(a)})}})});
|
34
|
-
(function(c){var
|
35
|
-
|
36
|
-
(h.remove(),
|
37
|
-
{prop:{value:function(){
|
38
|
-
h[0].options.length)
|
39
|
-
|
40
|
-
jQuery.webshims.register("form-core",function(c,
|
41
|
-
function(
|
42
|
-
"willValidate")||!c.prop(
|
43
|
-
c.expr.filters[
|
44
|
-
|
45
|
-
g
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
a)},setFocus:function(a,
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
1
|
+
(function(c){if(!Modernizr.genericDOM){var e=document,j,k,l=/<([\w:]+)/,m={option:1,optgroup:1,legend:1,thead:1,tr:1,td:1,col:1,area:1};c.webshims.fixHTML5=function(c){if("string"!=typeof c||m[(l.exec(c)||["",""])[1].toLowerCase()])return c;if(!k){j=e.body;if(!j)return c;k=e.createElement("div");k.style.display="none"}var r=k.cloneNode(!1);j.appendChild(r);r.innerHTML=c;j.removeChild(r);return r.childNodes}}})(jQuery);
|
2
|
+
jQuery.webshims.register("dom-extend",function(c,e,j,k,l){var m=e.modules,q=/\s*,\s*/,r={},s={},p={},h={},u={},x=c.fn.val,v=function(a,b,d,f,n){return n?x.call(c(a)):x.call(c(a),d)};c.fn.val=function(a){var b=this[0];arguments.length&&null==a&&(a="");if(!arguments.length)return!b||1!==b.nodeType?x.call(this):c.prop(b,"value",a,"val",!0);if(c.isArray(a))return x.apply(this,arguments);var d=c.isFunction(a);return this.each(function(f){b=this;1===b.nodeType&&(d?(f=a.call(b,f,c.prop(b,"value",l,"val",
|
3
|
+
!0)),null==f&&(f=""),c.prop(b,"value",f,"val")):c.prop(b,"value",a,"val"))})};var w="_webshimsLib"+Math.round(1E3*Math.random()),t=function(a,b,d){a=a.jquery?a[0]:a;if(!a)return d||{};var f=c.data(a,w);d!==l&&(f||(f=c.data(a,w,{})),b&&(f[b]=d));return b?f&&f[b]:f};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(a){c.fn[a.name]=function(){return this.map(function(){var b=t(this,
|
4
|
+
"shadowData");return b&&b[a.prop]||this})}});["removeAttr","prop","attr"].forEach(function(a){r[a]=c[a];c[a]=function(b,d,f,n,g){var i="val"==n,h=!i?r[a]:v;if(!b||!s[d]||1!==b.nodeType||!i&&n&&"attr"==a&&c.attrFn[d])return h(b,d,f,n,g);var z=(b.nodeName||"").toLowerCase(),o=p[z],e="attr"==a&&(!1===f||null===f)?"removeAttr":a,m,q,k;o||(o=p["*"]);o&&(o=o[d]);o&&(m=o[e]);if(m){if("value"==d)q=m.isVal,m.isVal=i;if("removeAttr"===e)return m.value.call(b);if(f===l)return m.get?m.get.call(b):m.value;m.set&&
|
5
|
+
("attr"==a&&!0===f&&(f=d),k=m.set.call(b,f));if("value"==d)m.isVal=q}else k=h(b,d,f,n,g);if((f!==l||"removeAttr"===e)&&u[z]&&u[z][d]){var j;j="removeAttr"==e?!1:"prop"==e?!!f:!0;u[z][d].forEach(function(d){if(!d.only||(d.only="prop"==a)||"attr"==d.only&&"prop"!=a)d.call(b,f,j,i?"val":e,a)})}return k};h[a]=function(b,d,f){p[b]||(p[b]={});p[b][d]||(p[b][d]={});var n=p[b][d][a],g=function(b,c,n){return c&&c[b]?c[b]:n&&n[b]?n[b]:"prop"==a&&"value"==d?function(b){return f.isVal?v(this,d,b,!1,0===arguments.length):
|
6
|
+
r[a](this,d,b)}:"prop"==a&&"value"==b&&f.value.apply?function(b){var c=r[a](this,d);c&&c.apply&&(c=c.apply(this,arguments));return c}:function(b){return r[a](this,d,b)}};p[b][d][a]=f;if(f.value===l){if(!f.set)f.set=f.writeable?g("set",f,n):e.cfg.useStrict&&"prop"==d?function(){throw d+" is readonly on "+b;}:c.noop;if(!f.get)f.get=g("get",f,n)}["value","get","set"].forEach(function(a){f[a]&&(f["_sup"+a]=g(a,n))})}});var y=!c.browser.msie||8<parseInt(c.browser.version,10),g=function(){var a=e.getPrototypeOf(k.createElement("foobar")),
|
7
|
+
b=Object.prototype.hasOwnProperty;return function(d,c,n){var g=k.createElement(d),i=e.getPrototypeOf(g);if(y&&i&&a!==i&&(!g[c]||!b.call(g,c))){var h=g[c];n._supvalue=function(){return h&&h.apply?h.apply(this,arguments):h};i[c]=n.value}else n._supvalue=function(){var a=t(this,"propValue");return a&&a[c]&&a[c].apply?a[c].apply(this,arguments):a&&a[c]},o.extendValue(d,c,n.value);n.value._supvalue=n._supvalue}}(),o=function(){var a={};e.addReady(function(b,d){var f={},g=function(a){f[a]||(f[a]=c(b.getElementsByTagName(a)),
|
8
|
+
d[0]&&c.nodeName(d[0],a)&&(f[a]=f[a].add(d)))};c.each(a,function(a,b){g(a);!b||!b.forEach?e.warn("Error: with "+a+"-property. methods: "+b):b.forEach(function(b){f[a].each(b)})});f=null});var b,d=c([]),f=function(d,f){a[d]?a[d].push(f):a[d]=[f];c.isDOMReady&&(b||c(k.getElementsByTagName(d))).each(f)};return{createTmpCache:function(a){c.isDOMReady&&(b=b||c(k.getElementsByTagName(a)));return b||d},flushTmpCache:function(){b=null},content:function(a,b){f(a,function(){var a=c.attr(this,b);null!=a&&c.attr(this,
|
9
|
+
b,a)})},createElement:function(a,b){f(a,b)},extendValue:function(a,b,d){f(a,function(){c(this).each(function(){t(this,"propValue",{})[b]=this[b];this[b]=d})})}}}(),i=function(a,b){if(a.defaultValue===l)a.defaultValue="";if(!a.removeAttr)a.removeAttr={value:function(){a[b||"prop"].set.call(this,a.defaultValue);a.removeAttr._supvalue.call(this)}}};c.extend(e,{getID:function(){var a=(new Date).getTime();return function(b){var b=c(b),d=b.attr("id");d||(a++,d="ID-"+a,b.attr("id",d));return d}}(),extendUNDEFProp:function(a,
|
10
|
+
b){c.each(b,function(b,c){b in a||(a[b]=c)})},createPropDefault:i,data:t,moveToFirstEvent:function(){var a=c._data?"_data":"data";return function(b,d,f){if((b=(c[a](b,"events")||{})[d])&&1<b.length)d=b.pop(),f||(f="bind"),"bind"==f&&b.delegateCount?b.splice(b.delegateCount,0,d):b.unshift(d)}}(),addShadowDom:function(a,b,d){d=d||{};a.jquery&&(a=a[0]);b.jquery&&(b=b[0]);if(!d.shadowFocusElement)d.shadowFocusElement=b;var f=c.data(a,w)||c.data(a,w,{}),g=c.data(b,w)||c.data(b,w,{});f.hasShadow=b;g.nativeElement=
|
11
|
+
a;g.shadowData=f.shadowData={nativeElement:a,shadowElement:b,shadowFocusElement:d.shadowFocusElement};d.shadowChilds&&d.shadowChilds.each(function(){t(this,"shadowData",g.shadowData)});if(d.data)f.shadowData.data=d.data,g.shadowData.data=d.data;d=null},propTypes:{standard:function(a){i(a);if(!a.prop)a.prop={set:function(b){a.attr.set.call(this,""+b)},get:function(){return a.attr.get.call(this)||a.defaultValue}}},"boolean":function(a){i(a);if(!a.prop)a.prop={set:function(b){b?a.attr.set.call(this,
|
12
|
+
""):a.removeAttr.value.call(this)},get:function(){return null!=a.attr.get.call(this)}}}},reflectProperties:function(a,b){"string"==typeof b&&(b=b.split(q));b.forEach(function(b){e.defineNodeNamesProperty(a,b,{prop:{set:function(a){c.attr(this,b,a)},get:function(){return c.attr(this,b)||""}}})})},defineNodeNameProperty:function(a,b,d){s[b]=!0;if(d.reflect)e.propTypes[d.propType||"standard"](d);["prop","attr","removeAttr"].forEach(function(f){var n=d[f];n&&(n="prop"===f?c.extend({writeable:!0},n):c.extend({},
|
13
|
+
n,{writeable:!0}),h[f](a,b,n),"*"!=a&&e.cfg.extendNative&&"prop"==f&&n.value&&c.isFunction(n.value)&&g(a,b,n),d[f]=n)});d.initAttr&&o.content(a,b);return d},defineNodeNameProperties:function(a,b,d,c){for(var g in b)!c&&b[g].initAttr&&o.createTmpCache(a),d&&(b[g][d]?e.log("override: "+a+"["+g+"] for "+d):(b[g][d]={},["value","set","get"].forEach(function(a){a in b[g]&&(b[g][d][a]=b[g][a],delete b[g][a])}))),b[g]=e.defineNodeNameProperty(a,g,b[g]);c||o.flushTmpCache();return b},createElement:function(a,
|
14
|
+
b,d){var f;c.isFunction(b)&&(b={after:b});o.createTmpCache(a);b.before&&o.createElement(a,b.before);d&&(f=e.defineNodeNameProperties(a,d,!1,!0));b.after&&o.createElement(a,b.after);o.flushTmpCache();return f},onNodeNamesPropertyModify:function(a,b,d,f){"string"==typeof a&&(a=a.split(q));c.isFunction(d)&&(d={set:d});a.forEach(function(a){u[a]||(u[a]={});"string"==typeof b&&(b=b.split(q));d.initAttr&&o.createTmpCache(a);b.forEach(function(b){u[a][b]||(u[a][b]=[],s[b]=!0);if(d.set){if(f)d.set.only=f;
|
15
|
+
u[a][b].push(d.set)}d.initAttr&&o.content(a,b)});o.flushTmpCache()})},defineNodeNamesBooleanProperty:function(a,b,d){d||(d={});if(c.isFunction(d))d.set=d;e.defineNodeNamesProperty(a,b,{attr:{set:function(a){this.setAttribute(b,a);d.set&&d.set.call(this,!0)},get:function(){return null==this.getAttribute(b)?l:b}},removeAttr:{value:function(){this.removeAttribute(b);d.set&&d.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:d.initAttr||!1})},contentAttr:function(a,b,d){if(a.nodeName){if(d===
|
16
|
+
l)return d=(a.attributes[b]||{}).value,null==d?l:d;"boolean"==typeof d?d?a.setAttribute(b,b):a.removeAttribute(b):a.setAttribute(b,d)}},activeLang:function(){var a=[],b={},d,f,g=/:\/\/|^\.*\//,i=function(a,b,d){return b&&d&&-1!==c.inArray(b,d.availabeLangs||[])?(a.loading=!0,d=d.langSrc,g.test(d)||(d=e.cfg.basePath+d),e.loader.loadScript(d+b+".js",function(){a.langObj[b]?(a.loading=!1,o(a,!0)):c(function(){a.langObj[b]&&o(a,!0);a.loading=!1})}),!0):!1},h=function(a){b[a]&&b[a].forEach(function(a){a.callback()})},
|
17
|
+
o=function(a,b){if(a.activeLang!=d&&a.activeLang!==f){var c=m[a.module].options;if(a.langObj[d]||f&&a.langObj[f])a.activeLang=d,a.callback(a.langObj[d]||a.langObj[f],d),h(a.module);else if(!b&&!i(a,d,c)&&!i(a,f,c)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],d),h(a.module)}};return function(g){if("string"==typeof g&&g!==d)d=g,f=d.split("-")[0],d==f&&(f=!1),c.each(a,function(a,b){o(b)});else if("object"==typeof g)if(g.register)b[g.register]||(b[g.register]=[]),b[g.register].push(g),
|
18
|
+
g.callback();else{if(!g.activeLang)g.activeLang="";a.push(g);o(g)}return d}}()});c.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(a,b){e[a]=function(a,c,g,i){"string"==typeof a&&(a=a.split(q));var h={};a.forEach(function(a){h[a]=e[b](a,c,g,i)});return h}});e.isReady("webshimLocalization",!0)});
|
19
|
+
(function(c,e){var j=c.webshims.browserVersion;if(!(c.browser.mozilla&&5<j)&&(!c.browser.msie||12>j&&7<j)){var k={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},l=function(c,e){c.getAttribute("role")||c.setAttribute("role",e)};c.webshims.addReady(function(m,q){c.each(k,function(h,e){for(var j=c(h,m).add(q.filter(h)),k=0,p=j.length;k<p;k++)l(j[k],e)});if(m===e){var j=e.getElementsByTagName("header")[0],s=e.getElementsByTagName("footer"),p=s.length;
|
20
|
+
j&&!c(j).closest("section, article")[0]&&l(j,"banner");p&&(j=s[p-1],c(j).closest("section, article")[0]||l(j,"contentinfo"))}})}})(jQuery,document);
|
21
|
+
(function(c,e,j){var k=e.audio&&e.video,l=!1;if(k)c=document.createElement("video"),e.videoBuffered="buffered"in c,l="loop"in c,j.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(",")),e.videoBuffered||(j.addPolyfill("mediaelement-native-fix",{f:"mediaelement",test:e.videoBuffered,d:["dom-support"]}),j.reTest("mediaelement-native-fix"));jQuery.webshims.register("mediaelement-core",function(c,e,j,s,p){var h=e.mediaelement,u=e.cfg.mediaelement,
|
22
|
+
x=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=h.getTypeForSrc(d.src,b))d.type=f,d.container=f,e.warn("you should always provide a proper mime-type using the source element. "+d.src+" detected as: "+f),c.nodeName(a[0],"source")&&a.attr("type",
|
23
|
+
f);if(f=a.attr("media"))d.media=f;return d},v=swfobject.hasFlashPlayerVersion("9.0.115"),w=function(){e.ready("mediaelement-swf",function(){if(!h.createSWF)e.modules["mediaelement-swf"].test=c.noop,e.reTest(["mediaelement-swf"],k)})};h.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",
|
24
|
+
"m3u"]},video:{"video/ogg":["ogg","ogv","ogm"],"video/mpeg":["mpg","mpeg","mpe"],"video/mp4":["mp4","mpg4","m4v"],"video/quicktime":["mov","qt"],"video/x-msvideo":["avi"],"video/x-ms-asf":["asf","asx"],"video/flv":["flv","f4v"],"video/3gpp":["3gp","3gpp"],"video/webm":["webm"],"application/x-mpegURL":["m3u8","m3u"],"video/MP2T":["ts"]}};h.mimeTypes.source=c.extend({},h.mimeTypes.audio,h.mimeTypes.video);h.getTypeForSrc=function(a,b){if(-1!=a.indexOf("youtube.com/watch?")||-1!=a.indexOf("youtube.com/v/"))return"video/youtube";
|
25
|
+
var a=a.split("?")[0].split("."),a=a[a.length-1],d;c.each(h.mimeTypes[b],function(b,c){if(-1!==c.indexOf(a))return d=b,!1});return d};h.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=s.createElement("source");"string"==typeof b&&(b={src:b});c.setAttribute("src",b.src);b.type&&c.setAttribute("type",b.type);b.media&&c.setAttribute("media",b.media);a.append(c)});else{var b=[],d=a[0].nodeName.toLowerCase(),
|
26
|
+
f=x(a,d);f.src?b.push(f):c("source",a).each(function(){f=x(this,d);f.src&&b.push(f)});return b}};c.fn.loadMediaSrc=function(a,b){return this.each(function(){b!==p&&(c(this).removeAttr("poster"),b&&c.attr(this,"poster",b));h.srces(this,a);c(this).mediaLoad()})};h.swfMimeTypes="video/3gpp,video/x-msvideo,video/quicktime,video/x-m4v,video/mp4,video/m4p,video/x-flv,video/flv,audio/mpeg,audio/aac,audio/mp4,audio/x-m4a,audio/m4a,audio/mp3,audio/x-fla,audio/fla,youtube/flv,jwplayer/jwplayer,video/youtube".split(",");
|
27
|
+
h.canSwfPlaySrces=function(a,b){var d="";v&&(a=c(a),b=b||h.srces(a),c.each(b,function(a,b){if(b.container&&b.src&&-1!=h.swfMimeTypes.indexOf(b.container))return d=b,!1}));return d};var t={};h.canNativePlaySrces=function(a,b){var d="";if(k){var a=c(a),f=(a[0].nodeName||"").toLowerCase();if(!t[f])return d;b=b||h.srces(a);c.each(b,function(b,c){if(c.type&&t[f].prop._supvalue.call(a[0],c.type))return d=c,!1})}return d};h.setError=function(a,b){b||(b="can't play sources");c(a).pause().data("mediaerror",
|
28
|
+
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,f){e.ready("mediaelement-swf",function(){h.createSWF?h.createSWF(b,c,f):a||(a=!0,w(),y(b,c,f))})}}(),g=function(a,b,c,f,e){c||!1!==c&&b&&"flash"==b.isActive?(c=h.canSwfPlaySrces(a,f))?y(a,c,b):e?h.setError(a,!1):g(a,b,!1,f,!0):(c=h.canNativePlaySrces(a,f))?b&&"flash"==b.isActive&&h.setActive(a,"html5",b):e?(h.setError(a,!1),b&&"flash"==b.isActive&&
|
29
|
+
h.setActive(a,"html5",b)):g(a,b,!0,f,!0)},o=/^(?:embed|object|datalist)$/i,i=function(a,b){var d=e.data(a,"mediaelementBase")||e.data(a,"mediaelementBase",{}),f=h.srces(a),i=a.parentNode;clearTimeout(d.loadTimer);c.data(a,"mediaerror",!1);if(f.length&&i&&!(1!=i.nodeType||o.test(i.nodeName||"")))b=b||e.data(a,"mediaelement"),g(a,b,u.preferFlash||p,f)};c(s).bind("ended",function(a){var b=e.data(a.target,"mediaelement");(!l||b&&"html5"!=b.isActive||c.prop(a.target,"loop"))&&setTimeout(function(){!c.prop(a.target,
|
30
|
+
"paused")&&c.prop(a.target,"loop")&&c(a.target).prop("currentTime",0).play()},1)});l||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");i(this,a);k&&(!a||"html5"==a.isActive)&&b.prop._supvalue&&b.prop._supvalue.apply(this,arguments)}}});t[a]=e.defineNodeNameProperty(a,"canPlayType",{prop:{value:function(b){var f="";k&&t[a].prop._supvalue&&(f=t[a].prop._supvalue.call(this,
|
31
|
+
b),"no"==f&&(f=""));!f&&v&&(b=c.trim((b||"").split(";")[0]),-1!=h.swfMimeTypes.indexOf(b)&&(f="maybe"));return f}}})});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(){i(a);a=null},9)}});j=function(){e.addReady(function(a,b){c("video, audio",a).add(b.filter("video, audio")).each(function(){c.browser.msie&&8<e.browserVersion&&c.prop(this,
|
32
|
+
"paused")&&!c.prop(this,"readyState")&&c(this).is('audio[preload="none"][controls]:not([autoplay])')?c(this).prop("preload","metadata").mediaLoad():i(this);if(k){var a,b,g=this,h=function(){var a=c.prop(g,"buffered");if(a){for(var b="",d=0,f=a.length;d<f;d++)b+=a.end(d);return b}},o=function(){var a=h();a!=b&&(b=a,c(g).triggerHandler("progress"))};c(this).bind("play loadstart progress",function(c){"progress"==c.type&&(b=h());clearTimeout(a);a=setTimeout(o,999)}).bind("emptied stalled mediaerror abort suspend",
|
33
|
+
function(c){"emptied"==c.type&&(b=!1);clearTimeout(a)})}})})};k?(e.isReady("mediaelement-core",!0),j(),v&&e.ready("WINDOWLOAD mediaelement",w)):e.ready("mediaelement-swf",j)})})(jQuery,Modernizr,jQuery.webshims);
|
34
|
+
(function(c){var e=window.Modernizr,j=c.webshims,k=j.bugs,l=c('<form action="#" style="width: 1px; height: 1px; overflow: hidden;"><select name="b" required /><input type="date" required name="a" /><input type="submit" /></form>'),m=function(){if(l[0].querySelector)try{k.findRequired=!l[0].querySelector("select:required")}catch(c){k.findRequired=!1}};k.findRequired=!1;k.validationMessage=!1;k.valueAsNumberSet=!1;j.capturingEventPrevented=function(e){if(!e._isPolyfilled){var j=e.isDefaultPrevented,
|
35
|
+
k=e.preventDefault;e.preventDefault=function(){clearTimeout(c.data(e.target,e.type+"DefaultPrevented"));c.data(e.target,e.type+"DefaultPrevented",setTimeout(function(){c.removeData(e.target,e.type+"DefaultPrevented")},30));return k.apply(this,arguments)};e.isDefaultPrevented=function(){return!(!j.apply(this,arguments)&&!c.data(e.target,e.type+"DefaultPrevented"))};e._isPolyfilled=!0}};if(!e.formvalidation||k.bustedValidity)m();else{e.bugfreeformvalidation=!0;if(window.opera||c.browser.webkit||window.testGoodWithFix){var q=
|
36
|
+
c("input",l).eq(0),r,s=function(h){var k=["form-extend","form-message","form-native-fix"];h&&(h.preventDefault(),h.stopImmediatePropagation());clearTimeout(r);setTimeout(function(){l&&(l.remove(),l=q=null)},9);if(!e.bugfreeformvalidation)j.addPolyfill("form-native-fix",{f:"forms",d:["form-extend"]}),j.modules["form-extend"].test=c.noop;j.isReady("form-number-date-api")&&k.push("form-number-date-api");j.reTest(k);if(c.browser.opera||window.testGoodWithFix)j.loader.loadList(["dom-extend"]),j.ready("dom-extend",
|
37
|
+
function(){var h=function(c){c.preventDefault()};["form","input","textarea","select"].forEach(function(e){var k=j.defineNodeNameProperty(e,"checkValidity",{prop:{value:function(){j.fromSubmit||c(this).bind("invalid.checkvalidity",h);j.fromCheckValidity=!0;var e=k.prop._supvalue.apply(this,arguments);j.fromSubmit||c(this).unbind("invalid.checkvalidity",h);j.fromCheckValidity=!1;return e}}})});e.input.list&&!(c("<datalist><select><option></option></select></datalist>").prop("options")||[]).length&&
|
38
|
+
j.defineNodeNameProperty("datalist","options",{prop:{writeable:!1,get:function(){var e=this.options||[];if(!e.length){var h=c("select",this);if(h[0]&&h[0].options&&h[0].options.length)e=h[0].options}return e}}})})};l.appendTo("head");if(window.opera||window.testGoodWithFix){m();k.validationMessage=!q.prop("validationMessage");if((e.inputtypes||{}).date){try{q.prop("valueAsNumber",0)}catch(p){}k.valueAsNumberSet="1970-01-01"!=q.prop("value")}q.prop("value","")}l.bind("submit",function(c){e.bugfreeformvalidation=
|
39
|
+
!1;s(c)});r=setTimeout(function(){l&&l.triggerHandler("submit")},9);j.capturingEvents(["input"]);j.capturingEvents(["invalid"],!0);c("input, select",l).bind("invalid",s).filter('[type="submit"]').bind("click",function(c){c.stopImmediatePropagation()}).trigger("click")}j.capturingEvents(["input"]);j.capturingEvents(["invalid"],!0)}})(jQuery);
|
40
|
+
jQuery.webshims.register("form-core",function(c,e,j,k,l,m){var q={radio:1},r={checkbox:1,radio:1},s=c([]),p=e.bugs,h=function(g){var g=c(g),e,i;e=s;if(q[g[0].type])i=g.prop("form"),e=(e=g[0].name)?i?c(i[e]):c(k.getElementsByName(e)).filter(function(){return!c.prop(this,"form")}):g,e=e.filter('[type="radio"]');return e},u=e.getContentValidationMessage=function(g,h){var i=g.getAttribute("x-moz-errormessage")||g.getAttribute("data-errormessage")||"";if(i&&-1!=i.indexOf("{")){try{i=jQuery.parseJSON(i)}catch(a){return i}"object"==
|
41
|
+
typeof i&&(h=h||c.prop(g,"validity")||{valid:1},h.valid||c.each(h,function(a,c){if(c&&"valid"!=a&&i[a])return i=i[a],!1}));e.data(g,"contentErrorMessage",i);if("object"==typeof i)i=i.defaultMessage}return i||""},x={number:1,range:1,date:1};c.extend(c.expr.filters,{"valid-element":function(g){return!(!c.prop(g,"willValidate")||!(c.prop(g,"validity")||{valid:1}).valid)},"invalid-element":function(g){return!(!c.prop(g,"willValidate")||(c.prop(g,"validity")||{valid:1}).valid)},"required-element":function(g){return!(!c.prop(g,
|
42
|
+
"willValidate")||!c.prop(g,"required"))},"optional-element":function(g){return!!(c.prop(g,"willValidate")&&!1===c.prop(g,"required"))},"in-range":function(g){if(!x[c.prop(g,"type")]||!c.prop(g,"willValidate"))return!1;g=c.prop(g,"validity");return!(!g||g.rangeOverflow||g.rangeUnderflow)},"out-of-range":function(g){if(!x[c.prop(g,"type")]||!c.prop(g,"willValidate"))return!1;g=c.prop(g,"validity");return!(!g||!g.rangeOverflow&&!g.rangeUnderflow)}});["valid","invalid","required","optional"].forEach(function(g){c.expr.filters[g]=
|
43
|
+
c.expr.filters[g+"-element"]});var v=c.event.customEvent||{};(p.bustedValidity||p.findRequired)&&function(){var g=c.find,e=c.find.matchesSelector,i=/(\:valid|\:invalid|\:optional|\:required|\:in-range|\:out-of-range)(?=[\s\[\~\.\+\>\:\#*]|$)/ig,a=function(a){return a+"-element"};c.find=function(){var b=Array.prototype.slice,c=function(c){var d=arguments,d=b.call(d,1,d.length);d.unshift(c.replace(i,a));return g.apply(this,d)},f;for(f in g)g.hasOwnProperty(f)&&(c[f]=g[f]);return c}();if(!Modernizr.prefixed||
|
44
|
+
Modernizr.prefixed("matchesSelector",k.documentElement))c.find.matchesSelector=function(b,c){c=c.replace(i,a);return e.call(this,b,c)}}();var w=c.prop,t={selectedIndex:1,value:1,checked:1,disabled:1,readonly:1};c.prop=function(g,e,i){var a=w.apply(this,arguments);if(g&&"form"in g&&t[e]&&i!==l&&c(g).hasClass("form-ui-invalid")&&(c.prop(g,"validity")||{valid:1}).valid)c(g).getShadowElement().removeClass("form-ui-invalid"),"checked"==e&&i&&h(g).not(g).removeClass("form-ui-invalid").removeAttr("aria-invalid");
|
45
|
+
return a};var y=function(g,e){var i;c.each(g,function(a,b){if(b)return i="customError"==a?c.prop(e,"validationMessage"):a,!1});return i};c(k).bind("focusout change refreshvalidityui",function(g){if(g.target&&"submit"!=g.target.type&&c.prop(g.target,"willValidate")){var e=c.data(g.target,"webshimsswitchvalidityclass");e&&clearTimeout(e);c.data(g.target,"webshimsswitchvalidityclass",setTimeout(function(){var e=c(g.target).getNativeElement()[0],a=c.prop(e,"validity"),b=c(e).getShadowElement(),d,f,k,
|
46
|
+
j;a.valid?b.hasClass("form-ui-valid")||(d="form-ui-valid",f="form-ui-invalid",j="changedvaliditystate",k="changedvalid",r[e.type]&&e.checked&&h(e).not(e).removeClass(f).addClass(d).removeAttr("aria-invalid"),c.removeData(e,"webshimsinvalidcause")):(a=y(a,e),c.data(e,"webshimsinvalidcause")!=a&&(c.data(e,"webshimsinvalidcause",a),j="changedvaliditystate"),b.hasClass("form-ui-invalid")||(d="form-ui-invalid",f="form-ui-valid",r[e.type]&&!e.checked&&h(e).not(e).removeClass(f).addClass(d),k="changedinvalid"));
|
47
|
+
d&&(b.addClass(d).removeClass(f),setTimeout(function(){c(e).trigger(k)},0));j&&setTimeout(function(){c(e).trigger(j)},0);c.removeData(g.target,"webshimsswitchvalidityclass")},9))}});v.changedvaliditystate=!0;v.changedvalid=!0;v.changedinvalid=!0;v.refreshvalidityui=!0;e.triggerInlineForm=function(e,h){c(e).trigger(h)};e.modules["form-core"].getGroupElements=h;p=function(){e.scrollRoot=c.browser.webkit||"BackCompat"==k.compatMode?c(k.body):c(k.documentElement)};p();e.ready("DOM",p);e.getRelOffset=
|
48
|
+
function(e,h){var e=c(e),i=c(h).offset(),a;c.swap(c(e)[0],{visibility:"hidden",display:"inline-block",left:0,top:0},function(){a=e.offset()});i.top-=a.top;i.left-=a.left;return i};e.validityAlert=function(){var g=!c.browser.msie||7<parseInt(c.browser.version,10)?"span":"label",h,i=!1,a=!1,b,d={hideDelay:5E3,showFor:function(e,g,k,l){d._create();var e=c(e),m=c(e).getShadowElement(),p=d.getOffsetFromBody(m);d.clear();l?this.hide():(this.getMessage(e,g),this.position(m,p),h.css({fontSize:e.css("fontSize"),
|
49
|
+
fontFamily:e.css("fontFamily")}),this.show(),this.hideDelay&&(i=setTimeout(b,this.hideDelay)),c(j).bind("resize.validityalert orientationchange.validityalert emchange.validityalert",function(){clearTimeout(a);a=setTimeout(function(){d.position(m)},9)}));k||this.setFocus(m,p)},getOffsetFromBody:function(a){return e.getRelOffset(h,a)},setFocus:function(a,d){var i=c(a).getShadowFocusElement(),j=e.scrollRoot.scrollTop(),l=(d||i.offset()).top-30,m;e.getID&&"label"==g&&h.attr("for",e.getID(i));j>l&&(e.scrollRoot.animate({scrollTop:l-
|
50
|
+
5},{queue:!1,duration:Math.max(Math.min(600,1.5*(j-l)),80)}),m=!0);try{i[0].focus()}catch(p){}m&&(e.scrollRoot.scrollTop(j),setTimeout(function(){e.scrollRoot.scrollTop(j)},0));setTimeout(function(){c(k).bind("focusout.validityalert",b)},10)},getMessage:function(a,b){c("span.va-box",h).text(b||u(a[0])||a.prop("validationMessage"))},position:function(a,b){b=b?c.extend({},b):d.getOffsetFromBody(a);b.top+=a.outerHeight();h.css(b)},show:function(){"none"===h.css("display")&&h.css({opacity:0}).show();
|
51
|
+
h.addClass("va-visible").fadeTo(400,1)},hide:function(){h.removeClass("va-visible").fadeOut()},clear:function(){clearTimeout(!1);clearTimeout(i);c(k).unbind(".validityalert");c(j).unbind(".validityalert");h.stop().removeAttr("for")},_create:function(){if(!h)h=d.errorBubble=c("<"+g+' class="validity-alert-wrapper" role="alert"><span class="validity-alert"><span class="va-arrow"><span class="va-arrow-box"></span></span><span class="va-box"></span></span></'+g+">").css({position:"absolute",display:"none"}),
|
52
|
+
e.ready("DOM",function(){h.appendTo("body");c.fn.bgIframe&&c.browser.msie&&7>parseInt(c.browser.version,10)&&h.bgIframe()})}};b=c.proxy(d,"hide");return d}();(function(){var e,h=[],i;c(k).bind("invalid",function(a){if(!a.wrongWebkitInvalid){var b=c(a.target),d=b.getShadowElement();d.hasClass("form-ui-invalid")||(d.addClass("form-ui-invalid").removeClass("form-ui-valid"),setTimeout(function(){c(a.target).trigger("changedinvalid").trigger("changedvaliditystate")},0));if(!e)e=c.Event("firstinvalid"),
|
53
|
+
e.isInvalidUIPrevented=a.isDefaultPrevented,d=c.Event("firstinvalidsystem"),c(k).triggerHandler(d,{element:a.target,form:a.target.form,isInvalidUIPrevented:a.isDefaultPrevented}),b.trigger(e);e&&e.isDefaultPrevented()&&a.preventDefault();h.push(a.target);a.extraData="fix";clearTimeout(i);i=setTimeout(function(){var b={type:"lastinvalid",cancelable:!1,invalidlist:c(h)};e=!1;h=[];c(a.target).trigger(b,b)},9);d=b=null}})})();m.replaceValidationUI&&e.ready("DOM",function(){c(k).bind("firstinvalid",function(e){e.isInvalidUIPrevented()||
|
54
|
+
(e.preventDefault(),c.webshims.validityAlert.showFor(e.target,c(e.target).prop("customValidationMessage")))})})});
|