!function(n,t,i){function rt(n){var t=o.className,i=r._config.classPrefix||"",u;(v&&(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),v?o.className.baseVal=t:o.className=t)}function h(n,t){return typeof n===t}function lt(){var i,n,u,f,e,s,t,o;for(o in a)if(a.hasOwnProperty(o)){if(i=[],n=a[o],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=h(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),ot.push((f?"":"no-")+t.join("-"))}}function f(){return"function"!=typeof t.createElement?t.createElement(arguments[0]):v?t.createElementNS.call(t,"http://www.w3.org/2000/svg",arguments[0]):t.createElement.apply(t,arguments)}function ut(n){return n.replace(/([a-z])-([a-z])/g,function(n,t,i){return t+i.toUpperCase()}).replace(/^-/,"")}function at(){var n=t.body;return n||(n=f(v?"svg":"body"),n.fake=!0),n}function ft(n,i,r,u){var s,a,c,v,l="modernizr",h=f("div"),e=at();if(parseInt(r,10))for(;r--;)c=f("div"),c.id=u?u[r]:l+(r+1),h.appendChild(c);return s=f("style"),s.type="text/css",s.id="s"+l,(e.fake?e:h).appendChild(s),e.appendChild(h),s.styleSheet?s.styleSheet.cssText=n:s.appendChild(t.createTextNode(n)),h.id=l,e.fake&&(e.style.background="",e.style.overflow="hidden",v=o.style.overflow,o.style.overflow="hidden",o.appendChild(e)),a=i(h,n),e.fake?(e.parentNode.removeChild(e),o.style.overflow=v,o.offsetHeight):h.parentNode.removeChild(h),!!a}function l(n,t){var u,i,f;if("object"==typeof n)for(u in n)ct(n,u)&&l(u,n[u]);else{if(n=n.toLowerCase(),i=n.split("."),f=r[i[0]],2==i.length&&(f=f[i[1]]),"undefined"!=typeof f)return r;t="function"==typeof t?t():t;1==i.length?r[i[0]]=t:(!r[i[0]]||r[i[0]]instanceof Boolean||(r[i[0]]=new Boolean(r[i[0]])),r[i[0]][i[1]]=t);rt([(t&&0!=t?"":"no-")+i.join("-")]);r._trigger(n,t)}return r}function vt(n,t){return!!~(""+n).indexOf(t)}function yt(n,t){return function(){return n.apply(t,arguments)}}function pt(n,t,i){var r,u;for(u in n)if(n[u]in t)return i===!1?n[u]:(r=t[n[u]],h(r,"function")?yt(r,i||t):r);return!1}function et(n){return n.replace(/([A-Z])/g,function(n,t){return"-"+t.toLowerCase()}).replace(/^ms-/,"-ms-")}function wt(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 bt(t,r){var f=t.length,u;if("CSS"in n&&"supports"in n.CSS){for(;f--;)if(n.CSS.supports(et(t[f]),r))return!0;return!1}if("CSSSupportsRule"in n){for(u=[];f--;)u.push("("+et(t[f])+":"+r+")");return u=u.join(" or "),ft("@supports ("+u+") { #modernizr { position: absolute; } }",function(n){return"absolute"==wt(n,null,"position")})}return i}function kt(n,t,r,u){function c(){v&&(delete s.style,delete s.modElem)}var l,v,o,y,e,p,a;if((u=h(u,"undefined")?!1:u,!h(r,"undefined"))&&(l=bt(n,r),!h(l,"undefined")))return l;for(a=["modernizr","tspan","samp"];!s.style&&a.length;)v=!0,s.modElem=f(a.shift()),s.style=s.modElem.style;for(y=n.length,o=0;y>o;o++)if(e=n[o],p=s.style[e],vt(e,"-")&&(e=ut(e)),s.style[e]!==i){if(u||h(r,"undefined"))return c(),"pfx"==t?e:!0;try{s.style[e]=r}catch(w){}if(s.style[e]!=p)return c(),"pfx"==t?e:!0}return c(),!1}function y(n,t,i,r,u){var f=n.charAt(0).toUpperCase()+n.slice(1),e=(n+" "+d.join(f+" ")+f).split(" ");return h(t,"string")||h(t,"undefined")?kt(e,t,r,u):(e=(n+" "+nt.join(f+" ")+f).split(" "),pt(e,t,i))}function e(n,t,r){return y(n,i,i,t,r)}var ot=[],a=[],u={_version:"3.6.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){a.push({name:n,fn:t,options:i})},addAsyncTest:function(n){a.push({name:null,fn:n})}},r=function(){},c,st,ht,o,v,w,b,ct,k,d,g,nt,tt,s,it,p;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}),c=u._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""],u._prefixes=c,st=("CSS"in n)&&("supports"in n.CSS),ht=("supportsCSS"in n),r.addTest("supports",st||ht),o=t.documentElement,v="svg"===o.nodeName.toLowerCase(),r.addTest("canvas",function(){var n=f("canvas");return!(!n.getContext||!n.getContext("2d"))}),r.addTest("cssgradients",function(){for(var o,i,u,e="background-image:",t="",n=0,s=c.length-1;s>n;n++)u=0===n?"to ":"",t+=e+c[n]+"linear-gradient("+u+"left top, #9f9, white);";return r._config.usePrefixes&&(t+=e+"-webkit-gradient(linear,left top,right bottom,from(#9f9),to(white));"),o=f("a"),i=o.style,i.cssText=t,(""+i.backgroundImage).indexOf("gradient")>-1}),r.addTest("opacity",function(){var n=f("a").style;return n.cssText=c.join("opacity:.55;"),/^0.55$/.test(n.opacity)}),r.addTest("rgba",function(){var n=f("a").style;return n.cssText="background-color:rgba(150,255,150,.5)",(""+n.backgroundColor).indexOf("rgba")>-1}),r.addTest("preserve3d",function(){var t,i,u=n.CSS,r=!1;return u&&u.supports&&u.supports("(transform-style: preserve-3d)")?!0:(t=f("a"),i=f("a"),t.style.cssText="display: block; transform-style: preserve-3d; transform-origin: right; transform: rotateY(40deg);",i.style.cssText="display: block; width: 9px; height: 1px; background: #000; transform-origin: right; transform: rotateY(40deg);",t.appendChild(i),o.appendChild(t),r=i.getBoundingClientRect(),o.removeChild(t),r=r.width&&r.width<4)}),r.addTest("srcset","srcset"in f("img")),w=function(){function n(n,t){var u;return n?(t&&"string"!=typeof t||(t=f(t||"div")),n="on"+n,u=n in t,!u&&r&&(t.setAttribute||(t=f("div")),t.setAttribute(n,""),u="function"==typeof t[n],t[n]!==i&&(t[n]=i),t.removeAttribute(n)),u):!1}var r=!("onblur"in t.documentElement);return n}(),u.hasEvent=w,b=u.testStyles=ft,r.addTest("touchevents",function(){var i,r;return"ontouchstart"in n||n.DocumentTouch&&t instanceof DocumentTouch?i=!0:(r=["@media (",c.join("touch-enabled),("),"heartz",")","{#modernizr{top:9px;position:absolute}}"].join(""),b(r,function(n){i=9===n.offsetTop})),i}),b("#modernizr div {width:100px} #modernizr :last-child{width:200px;display:block}",function(n){r.addTest("lastchild",n.lastChild.offsetWidth>n.firstChild.offsetWidth)},2),!function(){var n={}.hasOwnProperty;ct=h(n,"undefined")||h(n.call,"undefined")?function(n,t){return t in n&&h(n.constructor.prototype[t],"undefined")}:function(t,i){return n.call(t,i)}}(),u._l={},u.on=function(n,t){this._l[n]||(this._l[n]=[]);this._l[n].push(t);r.hasOwnProperty(n)&&setTimeout(function(){r._trigger(n,r[n])},0)},u._trigger=function(n,t){if(this._l[n]){var i=this._l[n];setTimeout(function(){for(var r,n=0;n<i.length;n++)(r=i[n])(t)},0);delete this._l[n]}},r._q.push(function(){u.addTest=l}),r.addAsyncTest(function(){function t(){var n=new Image,t;for(n.onerror=function(){l("datauri",!0);r.datauri=new Boolean(!0);r.datauri.over32kb=!1},n.onload=function(){l("datauri",!0);r.datauri=new Boolean(!0);r.datauri.over32kb=1==n.width&&1==n.height},t="R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==";t.length<33e3;)t="\r\n"+t;n.src="data:image/gif;base64,"+t}-1!==navigator.userAgent.indexOf("MSIE 7.")&&setTimeout(function(){l("datauri",!1)},10);var n=new Image;n.onerror=function(){l("datauri",!1)};n.onload=function(){1==n.width&&1==n.height?t():l("datauri",!1)};n.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw=="}),k="Moz O ms Webkit",d=u._config.usePrefixes?k.split(" "):[],u._cssomPrefixes=d,g=function(t){var u,s=c.length,f=n.CSSRule,r,e,o;if("undefined"==typeof f)return i;if(!t)return!1;if(t=t.replace(/^@/,""),u=t.replace(/-/g,"_").toUpperCase()+"_RULE",u in f)return"@"+t;for(r=0;s>r;r++)if(e=c[r],o=e.toUpperCase()+"_"+u,o in f)return"@-"+e.toLowerCase()+"-"+t;return!1},u.atRule=g,nt=u._config.usePrefixes?k.toLowerCase().split(" "):[],u._domPrefixes=nt,tt={elem:f("modernizr")},r._q.push(function(){delete tt.elem}),s={style:tt.elem.style},r._q.unshift(function(){delete s.style}),u.testAllProps=y,u.testAllProps=e,r.addTest("cssanimations",e("animationName","a",!0)),r.addTest("backgroundsize",e("backgroundSize","100%",!0)),r.addTest("borderradius",e("borderRadius","0px",!0)),r.addTest("boxshadow",e("boxShadow","1px 1px",!0)),r.addTest("boxsizing",e("boxSizing","border-box",!0)&&(t.documentMode===i||t.documentMode>7)),r.addTest("flexbox",e("flexBasis","1px",!0)),r.addTest("flexboxlegacy",e("boxDirection","reverse",!0)),r.addTest("flexboxtweener",e("flexAlign","end",!0)),r.addTest("flexwrap",e("flexWrap","wrap",!0)),r.addTest("csstransforms",function(){return-1===navigator.userAgent.indexOf("Android 2.")&&e("transform","scale(1)",!0)}),r.addTest("csstransforms3d",function(){return!!e("perspective","1px",!0)}),r.addTest("csstransitions",e("transition","all",!0)),it=u.prefixed=function(n,t,i){return 0===n.indexOf("@")?g(n):(-1!=n.indexOf("-")&&(n=ut(n)),t?y(n,t,i):y(n,"pfx"))},r.addTest("forcetouch",function(){return w(it("mouseforcewillbegin",n,!1),n)?MouseEvent.WEBKIT_FORCE_AT_MOUSE_DOWN&&MouseEvent.WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN:!1}),r.addTest("objectfit",!!it("objectFit"),{aliases:["object-fit"]}),r.addTest("csspointerevents",function(){var n=f("a").style;return n.cssText="pointer-events:auto","auto"===n.pointerEvents}),lt(),rt(ot),delete u.addTest,delete u.addAsyncTest,p=0;p<r._q.length;p++)r._q[p]();n.Modernizr=r}(window,document),function(){var n,s,i,r,t,u,e,f,o,h;s=window.device;n={};window.device=n;r=window.document.documentElement;h=window.navigator.userAgent.toLowerCase();n.ios=function(){return n.iphone()||n.ipod()||n.ipad()};n.iphone=function(){return!n.windows()&&t("iphone")};n.ipod=function(){return t("ipod")};n.ipad=function(){return t("ipad")};n.android=function(){return!n.windows()&&t("android")};n.androidPhone=function(){return n.android()&&t("mobile")};n.androidTablet=function(){return n.android()&&!t("mobile")};n.blackberry=function(){return t("blackberry")||t("bb10")||t("rim")};n.blackberryPhone=function(){return n.blackberry()&&!t("tablet")};n.blackberryTablet=function(){return n.blackberry()&&t("tablet")};n.windows=function(){return t("windows")};n.windowsPhone=function(){return n.windows()&&t("phone")};n.windowsTablet=function(){return n.windows()&&t("touch")&&!n.windowsPhone()};n.fxos=function(){return(t("(mobile;")||t("(tablet;"))&&t("; rv:")};n.fxosPhone=function(){return n.fxos()&&t("mobile")};n.fxosTablet=function(){return n.fxos()&&t("tablet")};n.meego=function(){return t("meego")};n.cordova=function(){return window.cordova&&"file:"===location.protocol};n.nodeWebkit=function(){return"object"==typeof window.process};n.mobile=function(){return n.androidPhone()||n.iphone()||n.ipod()||n.windowsPhone()||n.blackberryPhone()||n.fxosPhone()||n.meego()};n.tablet=function(){return n.ipad()||n.androidTablet()||n.blackberryTablet()||n.windowsTablet()||n.fxosTablet()};n.desktop=function(){return!n.tablet()&&!n.mobile()};n.television=function(){var n;for(television=["googletv","viera","smarttv","internet.tv","netcast","nettv","appletv","boxee","kylo","roku","dlnadoc","roku","pov_tv","hbbtv","ce-html"],n=0;n<television.length;){if(t(television[n]))return!0;n++}return!1};n.portrait=function(){return window.innerHeight/window.innerWidth>1};n.landscape=function(){return window.innerHeight/window.innerWidth<1};n.noConflict=function(){return window.device=s,this};t=function(n){return-1!==h.indexOf(n)};e=function(n){var t;return t=new RegExp(n,"i"),r.className.match(t)};i=function(n){var t=null;e(n)||(t=r.className.replace(/^\s+|\s+$/g,""),r.className=t+" "+n)};o=function(n){e(n)&&(r.className=r.className.replace(" "+n,""))};n.ios()?n.ipad()?i("ios ipad tablet"):n.iphone()?i("ios iphone mobile"):n.ipod()&&i("ios ipod mobile"):n.android()?i(n.androidTablet()?"android tablet":"android mobile"):n.blackberry()?i(n.blackberryTablet()?"blackberry tablet":"blackberry mobile"):n.windows()?i(n.windowsTablet()?"windows tablet":n.windowsPhone()?"windows mobile":"desktop"):n.fxos()?i(n.fxosTablet()?"fxos tablet":"fxos mobile"):n.meego()?i("meego mobile"):n.nodeWebkit()?i("node-webkit"):n.television()?i("television"):n.desktop()&&i("desktop");n.cordova()&&i("cordova");u=function(){n.landscape()?(o("portrait"),i("landscape")):(o("landscape"),i("portrait"))};f=Object.prototype.hasOwnProperty.call(window,"onorientationchange")?"orientationchange":"resize";window.addEventListener?window.addEventListener(f,u,!1):window.attachEvent?window.attachEvent(f,u):window[f]=u;u();"function"==typeof define&&"object"==typeof define.amd&&define.amd?define(function(){return n}):"undefined"!=typeof module&&module.exports?module.exports=n:window.device=n}.call(this)