1/* 2 HTML5 Shiv prev3.7.1 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed 3 Modernizr v2.8.3 4 www.modernizr.com 5 6 Copyright (c) Faruk Ates, Paul Irish, Alex Sexton 7 Available under the BSD and MIT licenses: www.modernizr.com/license/ 8 matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas. Dual MIT/BSD license Picturefill - Responsive Images that work today. (and mimic the proposed Picture element with span elements). Author: Scott Jehl, Filament Group, 2012 | License: MIT/GPLv2 */ 9window.Modernizr=function(e,d,k){function l(c,b){return typeof c===b}function h(c,b){for(var r in c){var a=c[r];if(!~(""+a).indexOf("-")&&n[a]!==k)return"pfx"==b?a:!0}return!1}function f(c,b,r){var a=c.charAt(0).toUpperCase()+c.slice(1),e=(c+" "+B.join(a+" ")+a).split(" ");if(l(b,"string")||l(b,"undefined"))return h(e,b);e=(c+" "+C.join(a+" ")+a).split(" ");a:{c=e;for(var d in c)if(a=b[c[d]],a!==k){if(!1===r){b=c[d];break a}if(l(a,"function")){b=a.bind(r||b);break a}b=a;break a}b=!1}return b}function q(){g.input= 10function(c){for(var b=0,a=c.length;b<a;b++)u[c[b]]=!!(c[b]in p);u.list&&(u.list=!(!d.createElement("datalist")||!e.HTMLDataListElement));return u}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" "));g.inputtypes=function(c){for(var b=0,a,e,f=c.length;b<f;b++){p.setAttribute("type",e=c[b]);if(a="text"!==p.type)p.value=":)",p.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(e)&&p.style.WebkitAppearance!==k?(m.appendChild(p),a=d.defaultView, 11a=a.getComputedStyle&&"textfield"!==a.getComputedStyle(p,null).WebkitAppearance&&0!==p.offsetHeight,m.removeChild(p)):/^(search|tel)$/.test(e)||(a=/^(url|email)$/.test(e)?p.checkValidity&&!1===p.checkValidity():":)"!=p.value);D[c[b]]=!!a}return D}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var g={},m=d.documentElement,a=d.createElement("modernizr"),n=a.style,p=d.createElement("input"),E={}.toString,v=" -webkit- -moz- -o- -ms- ".split(" "),B= 12["Webkit","Moz","O","ms"],C=["webkit","moz","o","ms"];a={};var D={},u={},w=[],x=w.slice,t=function(c,b,a,e){var r=d.createElement("div"),f=d.body,g=f||d.createElement("body");if(parseInt(a,10))for(;a--;){var h=d.createElement("div");h.id=e?e[a]:"modernizr"+(a+1);r.appendChild(h)}a=['\x26#173;\x3cstyle id\x3d"smodernizr"\x3e',c,"\x3c/style\x3e"].join("");r.id="modernizr";(f?r:g).innerHTML+=a;g.appendChild(r);if(!f){g.style.background="";g.style.overflow="hidden";var k=m.style.overflow;m.style.overflow= 13"hidden";m.appendChild(g)}c=b(r,c);f?r.parentNode.removeChild(r):(g.parentNode.removeChild(g),m.style.overflow=k);return!!c},F=function(){var c={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return function(b,a){a=a||d.createElement(c[b]||"div");b="on"+b;var e=b in a;e||(a.setAttribute||(a=d.createElement("div")),a.setAttribute&&a.removeAttribute&&(a.setAttribute(b,""),e=l(a[b],"function"),l(a[b],"undefined")||(a[b]=k),a.removeAttribute(b)));return e}}(), 14y={}.hasOwnProperty;var G=l(y,"undefined")||l(y.call,"undefined")?function(c,b){return b in c&&l(c.constructor.prototype[b],"undefined")}:function(c,b){return y.call(c,b)};Function.prototype.bind||(Function.prototype.bind=function(c){var b=this;if("function"!=typeof b)throw new TypeError;var a=x.call(arguments,1),e=function(){if(this instanceof e){var d=function(){};d.prototype=b.prototype;d=new d;var f=b.apply(d,a.concat(x.call(arguments)));return Object(f)===f?f:d}return b.apply(c,a.concat(x.call(arguments)))}; 15return e});a.flexbox=function(){return f("flexWrap")};a.flexboxlegacy=function(){return f("boxDirection")};a.canvas=function(){var c=d.createElement("canvas");return!(!c.getContext||!c.getContext("2d"))};
15a.canvastext=function(){return!(!g.canvas||!l(d.createElement("canvas").getContext("2d").fillText,"function"))};a.webgl=function(){return!!e.WebGLRenderingContext};a.touch=function(){var c;"ontouchstart"in e||e.DocumentTouch&&d instanceof DocumentTouch?c=!0:t(["@media (",v.join("touch-enabled),("), 16"modernizr){#modernizr{top:9px;position:absolute}}"].join(""),function(b){c=9===b.offsetTop});return c};a.geolocation=function(){return"geolocation"in navigator};a.postmessage=function(){return!!e.postMessage};a.websqldatabase=function(){return!!e.openDatabase};a.indexedDB=function(){return!!f("indexedDB",e)};a.hashchange=function(){return F("hashchange",e)&&(d.documentMode===k||7<d.documentMode)};a.history=function(){return!(!e.history||!history.pushState)};a.draganddrop=function(){var c=d.createElement("div"); 17return"draggable"in c||"ondragstart"in c&&"ondrop"in c};a.websockets=function(){return"WebSocket"in e||"MozWebSocket"in e};a.rgba=function(){n.cssText="background-color:rgba(150,255,150,.5)";return!!~(""+n.backgroundColor).indexOf("rgba")};a.hsla=function(){n.cssText="background-color:hsla(120,40%,100%,.5)";return!!~(""+n.backgroundColor).indexOf("rgba")||!!~(""+n.backgroundColor).indexOf("hsla")};a.multiplebgs=function(){n.cssText="background:url(https://),url(https://),red url(https://)";return/(url\s*\(.*?){3}/.test(n.background)}; 18a.backgroundsize=function(){return f("backgroundSize")};a.borderimage=function(){return f("borderImage")};a.borderradius=function(){return f("borderRadius")};a.boxshadow=function(){return f("boxShadow")};a.textshadow=function(){return""===d.createElement("div").style.textShadow};a.opacity=function(){n.cssText=v.join("opacity:.55;")+"";return/^0.55$/.test(n.opacity)};a.cssanimations=function(){return f("animationName")};a.csscolumns=function(){return f("columnCount")};a.cssgradients=function(){n.cssText= 19("background-image:-webkit-gradient(linear,left top,right bottom,from(#9f9),to(white));background-image:"+v.join("linear-gradient(left top,#9f9, white);background-image:")).slice(0,-17);return!!~(""+n.backgroundImage).indexOf("gradient")};a.cssreflections=function(){return f("boxReflect")};a.csstransforms=function(){return!!f("transform")};a.csstransforms3d=function(){var c=!!f("perspective");c&&"webkitPerspective"in m.style&&t("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}", 20function(b,a){c=9===b.offsetLeft&&3===b.offsetHeight});return c};a.csstransitions=function(){return f("transition")};a.fontface=function(){var a;t('@font-face {font-family:"font";src:url("https://")}',function(b,c){b=d.getElementById("smodernizr");b=(b=b.sheet||b.styleSheet)?b.cssRules&&b.cssRules[0]?b.cssRules[0].cssText:b.cssText||"":"";a=/src/i.test(b)&&0===b.indexOf(c.split(" ")[0])});return a};a.generatedcontent=function(){var a;t('#modernizr{font:0/0 a}#modernizr:after{content:":)";visibility:hidden;font:3px/1 a}', 21function(b){a=3<=b.offsetHeight});return a};a.video=function(){var a=d.createElement("video"),b=!1;try{if(b=!!a.canPlayType)b=new Boolean(b),b.ogg=a.canPlayType('video/ogg; codecs\x3d"theora"').replace(/^no$/,""),b.h264=a.canPlayType('video/mp4; codecs\x3d"avc1.42E01E"').replace(/^no$/,""),b.webm=a.canPlayType('video/webm; codecs\x3d"vp8, vorbis"').replace(/^no$/,"")}catch(r){}return b};a.audio=function(){var a=d.createElement("audio"),b=!1;try{if(b=!!a.canPlayType)b=new Boolean(b),b.ogg=a.canPlayType('audio/ogg; codecs\x3d"vorbis"').replace(/^no$/, 22""),b.mp3=a.canPlayType("audio/mpeg;").replace(/^no$/,""),b.wav=a.canPlayType('audio/wav; codecs\x3d"1"').replace(/^no$/,""),b.m4a=(a.canPlayType("audio/x-m4a;")||a.canPlayType("audio/aac;")).replace(/^no$/,"")}catch(r){}return b};a.localstorage=function(){try{return localStorage.setItem("modernizr","modernizr"),localStorage.removeItem("modernizr"),!0}catch(c){return!1}};a.sessionstorage=function(){try{return sessionStorage.setItem("modernizr","modernizr"),sessionStorage.removeItem("modernizr"),!0}catch(c){return!1}}; 23a.webworkers=function(){return!!e.Worker};a.applicationcache=function(){return!!e.applicationCache};a.svg=function(){return!!d.createElementNS&&!!d.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect};a.inlinesvg=function(){var a=d.createElement("div");a.innerHTML="\x3csvg/\x3e";return"http://www.w3.org/2000/svg"==(a.firstChild&&a.firstChild.namespaceURI)};a.smil=function(){return!!d.createElementNS&&/SVGAnimate/.test(E.call(
23d.createElementNS("http://www.w3.org/2000/svg","animate")))}; 24a.svgclippaths=function(){return!!d.createElementNS&&/SVGClipPath/.test(E.call(d.createElementNS("http://www.w3.org/2000/svg","clipPath")))};for(var z in a)if(G(a,z)){var A=z.toLowerCase();g[A]=a[z]();w.push((g[A]?"":"no-")+A)}g.input||q();g.addTest=function(a,b){if("object"==typeof a)for(var c in a)G(a,c)&&g.addTest(c,a[c]);else{a=a.toLowerCase();if(g[a]!==k)return g;b="function"==typeof b?b():b;m.className+=" "+(b?"":"no-")+a;g[a]=b}return g};n.cssText="";a=p=null;(function(a,b){function c(){var a= 25t.elements;return"string"==typeof a?a.split(" "):a}function e(a){var b=p[a._html5shiv];b||(b={},q++,a._html5shiv=q,p[q]=b);return b}function d(a,c,d){c||(c=b);if(n)return c.createElement(a);d||(d=e(c));c=d.cache[a]?d.cache[a].cloneNode():l.test(a)?(d.cache[a]=d.createElem(a)).cloneNode():d.createElem(a);return!c.canHaveChildren||k.test(a)||c.tagUrn?c:d.frag.appendChild(c)}function f(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()); 26a.createElement=function(c){return t.shivMethods?d(c,a,b):b.createElem(c)};a.createDocumentFragment=Function("h,f","return function(){var n\x3df.cloneNode(),c\x3dn.createElement;h.shivMethods\x26\x26("+c().join().replace(/[\w\-]+/g,function(a){b.createElem(a);b.frag.createElement(a);return'c("'+a+'")'})+");return n}")(t,b.frag)}function g(a){a||(a=b);var c=e(a);if(t.shivCSS&&!m&&!c.hasCSS){var d=a;var g=d.createElement("p");d=d.getElementsByTagName("head")[0]||d.documentElement;g.innerHTML="x\x3cstyle\x3earticle,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}\x3c/style\x3e"; 27g=d.insertBefore(g.lastChild,d.firstChild);c.hasCSS=!!g}n||f(a,c);return a}var h=a.html5||{},k=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,l=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,m,q=0,p={},n;(function(){try{var a=b.createElement("a");a.innerHTML="\x3cxyz\x3e\x3c/xyz\x3e";m="hidden"in a;var c;if(!(c=1==a.childNodes.length)){b.createElement("a");var d=b.createDocumentFragment();c="undefined"==typeof d.cloneNode|| 28"undefined"==typeof d.createDocumentFragment||"undefined"==typeof d.createElement}n=c}catch(H){n=m=!0}})();var t={elements:h.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:"3.7.0",shivCSS:!1!==h.shivCSS,supportsUnknownElements:n,shivMethods:!1!==h.shivMethods,type:"default",shivDocument:g,createElement:d,createDocumentFragment:function(a,d){a||(a=b); 29if(n)return a.createDocumentFragment();d=d||e(a);a=d.frag.cloneNode();d=0;for(var g=c(),f=g.length;d<f;d++)a.createElement(g[d]);return a}};a.html5=t;g(b)})(this,d);g._version="2.8.3";g._prefixes=v;g._domPrefixes=C;g._cssomPrefixes=B;g.mq=function(a){var b=e.matchMedia||e.msMatchMedia;if(b)return b(a)&&b(a).matches||!1;var c;t("@media "+a+" { #modernizr { position: absolute; } }",function(a){c="absolute"==(e.getComputedStyle?getComputedStyle(a,null):a.currentStyle).position});return c};g.hasEvent= 30F;g.testProp=function(a){return h([a])};g.testAllProps=f;g.testStyles=t;
30g.prefixed=function(a,b,d){return b?f(a,b,d):f(a,"pfx")};m.className=m.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(" js "+w.join(" "));return g}(this,this.document); 31(function(e){var d=e.event,k;var l=d.special.debouncedresize={setup:function(){e(this).on("resize",l.handler)},teardown:function(){e(this).off("resize",l.handler)},handler:function(e,f){var h=this,g=arguments,m=function(){e.type="debouncedresize";d.dispatch.apply(h,g)};k&&clearTimeout(k);f?m():k=setTimeout(m,l.threshold)},threshold:150}})($); 32window.matchMedia=window.matchMedia||function(e,d){var k,l=e.documentElement,h=l.firstElementChild||l.firstChild,f=e.createElement("body"),q=e.createElement("div");q.id="mq-test-1";q.style.cssText="position:absolute;top:-100em";f.style.background="none";f.appendChild(q);return function(d){q.innerHTML='\x26shy;\x3cstyle media\x3d"'+d+'"\x3e #mq-test-1 { width: 42px; }\x3c/style\x3e';l.insertBefore(f,h);k=42===q.offsetWidth;l.removeChild(f);return{matches:k,media:d}}}(document); 33(function(e){e.picturefill=function(){for(var d=e.document.getElementsByTagName("span"),k=0,l=d.length;k<l;k++)if(null!==d[k].getAttribute("data-picture")){for(var h=d[k].getElementsByTagName("span"),f=[],q=0,g=h.length;q<g;q++){var m=h[q].getAttribute("data-media");(!m||e.matchMedia&&e.matchMedia(m).matches)&&f.push(h[q])}h=d[k].getElementsByTagName("img")[0];if(f.length){f=f.pop();if(!h||"NOSCRIPT"===h.parentNode.nodeName)h=e.document.createElement("img"),h.alt=d[k].getAttribute("data-alt");else if(f=== 34h.parentNode)continue;h.src=f.getAttribute("data-src");f.appendChild(h);h.removeAttribute("width");h.removeAttribute("height")}else h&&h.parentNode.removeChild(h)}};e.addEventListener?(e.addEventListener("resize",e.picturefill,!1),e.addEventListener("DOMContentLoaded",function(){e.picturefill();e.removeEventListener("load",e.picturefill,!1)},!1),e.addEventListener("load",e.picturefill,!1)):e.attachEvent&&e.attachEvent("onload",e.picturefill)})(this);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.