mkdocs-material/material/assets/javascripts/modernizr-5b0c41c2b5.js
2017-02-10 16:43:32 +01:00

1 line
5.4 KiB
JavaScript

!function(e,n,t){function r(e,n){return typeof e===n}function o(){var e,n,t,o,s,i,f;for(var a in w)if(w.hasOwnProperty(a)){if(e=[],n=w[a],n.name&&(e.push(n.name.toLowerCase()),n.options&&n.options.aliases&&n.options.aliases.length))for(t=0;t<n.options.aliases.length;t++)e.push(n.options.aliases[t].toLowerCase());for(o=r(n.fn,"function")?n.fn():n.fn,s=0;s<e.length;s++)i=e[s],f=i.split("."),1===f.length?C[f[0]]=o:(!C[f[0]]||C[f[0]]instanceof Boolean||(C[f[0]]=new Boolean(C[f[0]])),C[f[0]][f[1]]=o),S.push((o?"":"no-")+f.join("-"))}}function s(e){var n=b.className,t=C._config.classPrefix||"";if(P&&(n=n.baseVal),C._config.enableJSClass){var r=new RegExp("(^|\\s)"+t+"no-js(\\s|$)");n=n.replace(r,"$1"+t+"js$2")}C._config.enableClasses&&(n+=" "+t+e.join(" "+t),P?b.className.baseVal=n:b.className=n)}function i(e,n){if("object"==typeof e)for(var t in e)x(e,t)&&i(t,e[t]);else{e=e.toLowerCase();var r=e.split("."),o=C[r[0]];if(2==r.length&&(o=o[r[1]]),"undefined"!=typeof o)return C;n="function"==typeof n?n():n,1==r.length?C[r[0]]=n:(!C[r[0]]||C[r[0]]instanceof Boolean||(C[r[0]]=new Boolean(C[r[0]])),C[r[0]][r[1]]=n),s([(n&&0!=n?"":"no-")+r.join("-")]),C._trigger(e,n)}return C}function f(){return"function"!=typeof n.createElement?n.createElement(arguments[0]):P?n.createElementNS.call(n,"http://www.w3.org/2000/svg",arguments[0]):n.createElement.apply(n,arguments)}function a(e,n){return!!~(""+e).indexOf(n)}function l(){var e=n.body;return e||(e=f(P?"svg":"body"),e.fake=!0),e}function u(e,t,r,o){var s,i,a,u,p="modernizr",c=f("div"),d=l();if(parseInt(r,10))for(;r--;)a=f("div"),a.id=o?o[r]:p+(r+1),c.appendChild(a);return s=f("style"),s.type="text/css",s.id="s"+p,(d.fake?d:c).appendChild(s),d.appendChild(c),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(n.createTextNode(e)),c.id=p,d.fake&&(d.style.background="",d.style.overflow="hidden",u=b.style.overflow,b.style.overflow="hidden",b.appendChild(d)),i=t(c,e),d.fake?(d.parentNode.removeChild(d),b.style.overflow=u,b.offsetHeight):c.parentNode.removeChild(c),!!i}function p(e){return e.replace(/([A-Z])/g,function(e,n){return"-"+n.toLowerCase()}).replace(/^ms-/,"-ms-")}function c(n,r){var o=n.length;if("CSS"in e&&"supports"in e.CSS){for(;o--;)if(e.CSS.supports(p(n[o]),r))return!0;return!1}if("CSSSupportsRule"in e){for(var s=[];o--;)s.push("("+p(n[o])+":"+r+")");return s=s.join(" or "),u("@supports ("+s+") { #modernizr { position: absolute; } }",function(e){return"absolute"==getComputedStyle(e,null).position})}return t}function d(e){return e.replace(/([a-z])-([a-z])/g,function(e,n,t){return n+t.toUpperCase()}).replace(/^-/,"")}function h(e,n,o,s){function i(){u&&(delete E.style,delete E.modElem)}if(s=!r(s,"undefined")&&s,!r(o,"undefined")){var l=c(e,o);if(!r(l,"undefined"))return l}for(var u,p,h,m,v,y=["modernizr","tspan"];!E.style;)u=!0,E.modElem=f(y.shift()),E.style=E.modElem.style;for(h=e.length,p=0;p<h;p++)if(m=e[p],v=E.style[m],a(m,"-")&&(m=d(m)),E.style[m]!==t){if(s||r(o,"undefined"))return i(),"pfx"!=n||m;try{E.style[m]=o}catch(e){}if(E.style[m]!=v)return i(),"pfx"!=n||m}return i(),!1}function m(e,n){return function(){return e.apply(n,arguments)}}function v(e,n,t){var o;for(var s in e)if(e[s]in n)return t===!1?e[s]:(o=n[e[s]],r(o,"function")?m(o,t||n):o);return!1}function y(e,n,t,o,s){var i=e.charAt(0).toUpperCase()+e.slice(1),f=(e+" "+j.join(i+" ")+i).split(" ");return r(n,"string")||r(n,"undefined")?h(f,n,o,s):(f=(e+" "+N.join(i+" ")+i).split(" "),v(f,n,t))}function g(e,n,r){return y(e,t,t,n,r)}var w=[],_={_version:"3.3.1",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,n){var t=this;setTimeout(function(){n(t[e])},0)},addTest:function(e,n,t){w.push({name:e,fn:n,options:t})},addAsyncTest:function(e){w.push({name:null,fn:e})}},C=function(){};C.prototype=_,C=new C;var x,S=[],b=n.documentElement,P="svg"===b.nodeName.toLowerCase();!function(){var e={}.hasOwnProperty;x=r(e,"undefined")||r(e.call,"undefined")?function(e,n){return n in e&&r(e.constructor.prototype[n],"undefined")}:function(n,t){return e.call(n,t)}}(),_._l={},_.on=function(e,n){this._l[e]||(this._l[e]=[]),this._l[e].push(n),C.hasOwnProperty(e)&&setTimeout(function(){C._trigger(e,C[e])},0)},_._trigger=function(e,n){if(this._l[e]){var t=this._l[e];setTimeout(function(){var e,r;for(e=0;e<t.length;e++)(r=t[e])(n)},0),delete this._l[e]}},C._q.push(function(){_.addTest=i});var T=_._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):[];_._prefixes=T,C.addTest("csscalc",function(){var e="width:",n="calc(10px);",t=f("a");return t.style.cssText=e+T.join(n+e),!!t.style.length});var z="Moz O ms Webkit",j=_._config.usePrefixes?z.split(" "):[];_._cssomPrefixes=j;var k={elem:f("modernizr")};C._q.push(function(){delete k.elem});var E={style:k.elem.style};C._q.unshift(function(){delete E.style});var N=_._config.usePrefixes?z.toLowerCase().split(" "):[];_._domPrefixes=N,_.testAllProps=y,_.testAllProps=g;var q=_.testStyles=u,A="CSS"in e&&"supports"in e.CSS,L="supportsCSS"in e;C.addTest("supports",A||L),C.addTest("csstransforms3d",function(){var e=!!g("perspective","1px",!0),n=C._config.usePrefixes;if(e&&(!n||"webkitPerspective"in b.style)){var t,r="#modernizr{width:0;height:0}";C.supports?t="@supports (perspective: 1px)":(t="@media (transform-3d)",n&&(t+=",(-webkit-transform-3d)")),t+="{#modernizr{width:7px;height:18px;margin:0;padding:0;border:0}}",q(r+t,function(n){e=7===n.offsetWidth&&18===n.offsetHeight})}return e}),o(),s(S),delete _.addTest,delete _.addAsyncTest;for(var O=0;O<C._q.length;O++)C._q[O]();e.Modernizr=C}(window,document);