// HTML5 Shiv v3 | @jon_neal @afarkas @rem | MIT/GPL2 Licensed
// Uncompressed source: https://github.com/aFarkas/html5shiv
(function(a,b){function c(a){var c,d,e,f;b.documentMode>7?(c=b.createElement("font"),c.setAttribute("data-html5shiv",a.nodeName.toLowerCase())):c=b.createElement("shiv:"+a.nodeName);while(a.firstChild)c.appendChild(a.childNodes[0]);for(d=a.attributes,e=d.length,f=0;f7?e[g][e[g].length-1]=e[g][e[g].length-1].replace(d,'$1font[data-html5shiv="$2"]'):e[g][e[g].length-1]=e[g][e[g].length-1].replace(d,"$1shiv\\:$2"),e[g]=e[g].join("}");return e.join("{")}var g=function(a){return a.innerHTML="",a.childNodes.length===1}(b.createElement("a")),h=function(a,b,c){return b.appendChild(a),(c=(c?c(a):a.currentStyle).display)&&b.removeChild(a)&&c==="block"}(b.createElement("nav"),b.documentElement,a.getComputedStyle),i={elements:"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video".split(" "),shivDocument:function(a){a=a||b;if(a.documentShived)return;a.documentShived=!0;var c=a.createElement,d=a.createDocumentFragment,e=a.getElementsByTagName("head")[0],f=function(a){c(a)};g||(i.elements.join(" ").replace(/\w+/g,f),a.createElement=function(a){var b=c(a);return b.canHaveChildren&&i.shivDocument(b.document),b},a.createDocumentFragment=function(){return i.shivDocument(d())});if(!h&&e){var j=c("div");j.innerHTML=["x"].join(""),e.insertBefore(j.lastChild,e.firstChild)}return a}};i.shivDocument(b),a.html5=i;if(g||!a.attachEvent)return;a.attachEvent("onbeforeprint",function(){if(a.html5.supportsXElement||!b.namespaces)return;b.namespaces.shiv||b.namespaces.add("shiv");var d=-1,g=new RegExp("^("+a.html5.elements.join("|")+")$","i"),h=b.getElementsByTagName("*"),i=h.length,j,k=f(e(function(a,b){var c=[],d=a.length;while(d)c.unshift(a[--d]);d=b.length;while(d)c.unshift(b[--d]);c.sort(function(a,b){return a.sourceIndex-b.sourceIndex}),d=c.length;while(d)c[--d]=c[d].styleSheet;return c}(b.getElementsByTagName("style"),b.getElementsByTagName("link"))));while(++d