!function(root,name,make){if(typeof module!='undefined'&&module.exports)module.exports=make();else root[name]=make()}(this,'actual',function(){function actual(feature,unit,init,step){var up,gte,lte,curr,mq=actual.mq;unit=typeof unit=='string'?unit:'';init=0<init?(unit?+init:init>>0):1;step=0<step?+step:0>step?-step:'px'==unit?256:unit?32:1;for(feature+=':',unit+=')',curr=init;step&&0<=curr;curr+=step){lte=mq('(min-'+feature+curr+unit);gte=mq('(max-'+feature+curr+unit);if(lte&&gte)return mq('('+feature+(curr>>0)+unit)?curr>>0:curr;if(null==up)step=(up=!gte)?lte&&step:-step;else if(gte?up:!up)up=!up,step=-step/2}
return 0}
function as(unit){return function(feature){return actual(feature,unit)}}
var media='matchMedia',win=typeof window!='undefined'&&window;actual.actual=actual;actual.as=as;actual.is=actual.mq=win[media]||win[media='msMatchMedia']?function(q){return!!win[media](q).matches}:function(){return!1};return actual});