!function(n,t,i){function o(n,t){return typeof n===t}function it(){var i,n,u,f,e,s,t;for(var c in h)if(h.hasOwnProperty(c)){if(i=[],n=h[c],n.name&&(i.push(n.name.toLowerCase()),n.options&&n.options.aliases&&n.options.aliases.length))for(u=0;u<n.options.aliases.length;u++)i.push(n.options.aliases[u].toLowerCase());for(f=o(n.fn,"function")?n.fn():n.fn,e=0;e<i.length;e++)s=i[e],t=s.split("."),1===t.length?r[t[0]]=f:(!r[t[0]]||r[t[0]]instanceof Boolean||(r[t[0]]=new Boolean(r[t[0]])),r[t[0]][t[1]]=f),nt.push((f?"":"no-")+t.join("-"))}}function rt(n){var t=e.className,i=r._config.classPrefix||"",u;(c&&(t=t.baseVal),r._config.enableJSClass)&&(u=new RegExp("(^|\\s)"+i+"no-js(\\s|$)"),t=t.replace(u,"$1"+i+"js$2"));r._config.enableClasses&&(t+=" "+i+n.join(" "+i),c?e.className.baseVal=t:e.className=t)}function s(){return"function"!=typeof t.createElement?t.createElement(arguments[0]):c?t.createElementNS.call(t,"http://www.w3.org/2000/svg",arguments[0]):t.createElement.apply(t,arguments)}function ut(){var n=t.body;return n||(n=s(c?"svg":"body"),n.fake=!0),n}function b(n,i,r,u){var o,a,c,v,l="modernizr",h=s("div"),f=ut();if(parseInt(r,10))for(;r--;)c=s("div"),c.id=u?u[r]:l+(r+1),h.appendChild(c);return o=s("style"),o.type="text/css",o.id="s"+l,(f.fake?f:h).appendChild(o),f.appendChild(h),o.styleSheet?o.styleSheet.cssText=n:o.appendChild(t.createTextNode(n)),h.id=l,f.fake&&(f.style.background="",f.style.overflow="hidden",v=e.style.overflow,e.style.overflow="hidden",e.appendChild(f)),a=i(h,n),f.fake?(f.parentNode.removeChild(f),e.style.overflow=v,e.offsetHeight):h.parentNode.removeChild(h),!!a}function ft(n,t){return!!~(""+n).indexOf(t)}function et(n){return n.replace(/([a-z])-([a-z])/g,function(n,t,i){return t+i.toUpperCase()}).replace(/^-/,"")}function ot(n,t){return function(){return n.apply(t,arguments)}}function st(n,t,i){var r;for(var u in n)if(n[u]in t)return i===!1?n[u]:(r=t[n[u]],o(r,"function")?ot(r,i||t):r);return!1}function k(n){return n.replace(/([A-Z])/g,function(n,t){return"-"+t.toLowerCase()}).replace(/^ms-/,"-ms-")}function ht(t,i,r){var u,f,e;return"getComputedStyle"in n?(u=getComputedStyle.call(n,t,i),f=n.console,null!==u?r&&(u=u.getPropertyValue(r)):f&&(e=f.error?"error":"log",f[e].call(f,"getComputedStyle returning null, its possible modernizr test results are inaccurate"))):u=!i&&t.currentStyle&&t.currentStyle[r],u}function ct(t,r){var f=t.length,u;if("CSS"in n&&"supports"in n.CSS){for(;f--;)if(n.CSS.supports(k(t[f]),r))return!0;return!1}if("CSSSupportsRule"in n){for(u=[];f--;)u.push("("+k(t[f])+":"+r+")");return u=u.join(" or "),b("@supports ("+u+") { #modernizr { position: absolute; } }",function(n){return"absolute"==ht(n,null,"position")})}return i}function lt(n,t,r,u){function c(){v&&(delete f.style,delete f.modElem)}var l,v,h,y,e,p,a;if((u=o(u,"undefined")?!1:u,!o(r,"undefined"))&&(l=ct(n,r),!o(l,"undefined")))return l;for(a=["modernizr","tspan","samp"];!f.style&&a.length;)v=!0,f.modElem=s(a.shift()),f.style=f.modElem.style;for(y=n.length,h=0;y>h;h++)if(e=n[h],p=f.style[e],ft(e,"-")&&(e=et(e)),f.style[e]!==i){if(u||o(r,"undefined"))return c(),"pfx"==t?e:!0;try{f.style[e]=r}catch(w){}if(f.style[e]!=p)return c(),"pfx"==t?e:!0}return c(),!1}function d(n,t,i,r,u){var f=n.charAt(0).toUpperCase()+n.slice(1),e=(n+" "+y.join(f+" ")+f).split(" ");return o(t,"string")||o(t,"undefined")?lt(e,t,r,u):(e=(n+" "+p.join(f+" ")+f).split(" "),st(e,t,i))}function g(n,t,r){return d(n,i,i,t,r)}var nt=[],h=[],u={_version:"3.5.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(n,t){var i=this;setTimeout(function(){t(i[n])},0)},addTest:function(n,t,i){h.push({name:n,fn:t,options:i})},addAsyncTest:function(n){h.push({name:null,fn:n})}},r=function(){},e,c,a,tt,v,y,p,w,f,l;for(r.prototype=u,r=new r,r.addTest("history",function(){var t=navigator.userAgent;return-1===t.indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone")||"file:"===location.protocol?n.history&&"pushState"in n.history:!1}),r.addTest("svg",!!t.createElementNS&&!!t.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect),e=t.documentElement,c="svg"===e.nodeName.toLowerCase(),r.addTest("canvas",function(){var n=s("canvas");return!(!n.getContext||!n.getContext("2d"))}),r.addTest("webgl",function(){var t=s("canvas"),i="probablySupportsContext"in t?"probablySupportsContext":"supportsContext";return i in t?t[i]("webgl")||t[i]("experimental-webgl"):"WebGLRenderingContext"in n}),a=u._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""],u._prefixes=a,tt=u.testStyles=b,r.addTest("touchevents",function(){var i,r;return"ontouchstart"in n||n.DocumentTouch&&t instanceof DocumentTouch?i=!0:(r=["@media (",a.join("touch-enabled),("),"heartz",")","{#modernizr{top:9px;position:absolute}}"].join(""),tt(r,function(n){i=9===n.offsetTop})),i}),v="Moz O ms Webkit",y=u._config.usePrefixes?v.split(" "):[],u._cssomPrefixes=y,p=u._config.usePrefixes?v.toLowerCase().split(" "):[],u._domPrefixes=p,w={elem:s("modernizr")},r._q.push(function(){delete w.elem}),f={style:w.elem.style},r._q.unshift(function(){delete f.style}),u.testAllProps=d,u.testAllProps=g,r.addTest("flexbox",g("flexBasis","1px",!0)),it(),rt(nt),delete u.addTest,delete u.addAsyncTest,l=0;l<r._q.length;l++)r._q[l]();n.Modernizr=r}(window,document)