jahresbericht2017/assets/js/compat/modernizr.js

1 line
11 KiB
JavaScript
Raw Normal View History

2024-01-12 13:52:51 +00:00
!function(e,t,n){function o(e,t){return typeof e===t}function i(e){return e.replace(/([a-z])-([a-z])/g,function(e,t,n){return t+n.toUpperCase()}).replace(/^-/,"")}function r(e){return e.replace(/([A-Z])/g,function(e,t){return"-"+t.toLowerCase()}).replace(/^ms-/,"-ms-")}function a(t,n,o){var i;if("getComputedStyle"in e){i=getComputedStyle.call(e,t,n);var r=e.console;if(null!==i)o&&(i=i.getPropertyValue(o));else if(r){var a=r.error?"error":"log";r[a].call(r,"getComputedStyle returning null, its possible modernizr test results are inaccurate")}}else i=!n&&t.currentStyle&&t.currentStyle[o];return i}function s(e,t){return e-1===t||e===t||e+1===t}function l(e){var t=E.className,n=b._config.classPrefix||"";if($&&(t=t.baseVal),b._config.enableJSClass){var o=new RegExp("(^|\\s)"+n+"no-js(\\s|$)");t=t.replace(o,"$1"+n+"js$2")}b._config.enableClasses&&(t+=" "+n+e.join(" "+n),$?E.className.baseVal=t:E.className=t)}function u(e,t){if("object"==typeof e)for(var n in e)z(e,n)&&u(n,e[n]);else{e=e.toLowerCase();var o=e.split("."),i=b[o[0]];if(2==o.length&&(i=i[o[1]]),void 0!==i)return b;t="function"==typeof t?t():t,1==o.length?b[o[0]]=t:(!b[o[0]]||b[o[0]]instanceof Boolean||(b[o[0]]=new Boolean(b[o[0]])),b[o[0]][o[1]]=t),l([(t&&0!=t?"":"no-")+o.join("-")]),b._trigger(e,t)}return b}function c(){return"function"!=typeof t.createElement?t.createElement(arguments[0]):$?t.createElementNS.call(t,"http://www.w3.org/2000/svg",arguments[0]):t.createElement.apply(t,arguments)}function d(){var e=t.body;return e||(e=c($?"svg":"body"),e.fake=!0),e}function f(e,n,o,i){var r,a,s,l,u="modernizr",f=c("div"),p=d();if(parseInt(o,10))for(;o--;)s=c("div"),s.id=i?i[o]:u+(o+1),f.appendChild(s);return r=c("style"),r.type="text/css",r.id="s"+u,(p.fake?p:f).appendChild(r),p.appendChild(f),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(t.createTextNode(e)),f.id=u,p.fake&&(p.style.background="",p.style.overflow="hidden",l=E.style.overflow,E.style.overflow="hidden",E.appendChild(p)),a=n(f,e),p.fake?(p.parentNode.removeChild(p),E.style.overflow=l,E.offsetHeight):f.parentNode.removeChild(f),!!a}function p(e,t){return!!~(""+e).indexOf(t)}function h(t,o){var i=t.length;if("CSS"in e&&"supports"in e.CSS){for(;i--;)if(e.CSS.supports(r(t[i]),o))return!0;return!1}if("CSSSupportsRule"in e){for(var s=[];i--;)s.push("("+r(t[i])+":"+o+")");return s=s.join(" or "),f("@supports ("+s+") { #modernizr { position: absolute; } }",function(e){return"absolute"==a(e,null,"position")})}return n}function v(e,t){return function(){return e.apply(t,arguments)}}function m(e,t,n){var i;for(var r in e)if(e[r]in t)return n===!1?e[r]:(i=t[e[r]],o(i,"function")?v(i,n||t):i);return!1}function y(e,t,r,a){function s(){u&&(delete V.style,delete V.modElem)}if(a=!o(a,"undefined")&&a,!o(r,"undefined")){var l=h(e,r);if(!o(l,"undefined"))return l}for(var u,d,f,v,m,y=["modernizr","tspan","samp"];!V.style&&y.length;)u=!0,V.modElem=c(y.shift()),V.style=V.modElem.style;for(f=e.length,d=0;d<f;d++)if(v=e[d],m=V.style[v],p(v,"-")&&(v=i(v)),V.style[v]!==n){if(a||o(r,"undefined"))return s(),"pfx"!=t||v;try{V.style[v]=r}catch(e){}if(V.style[v]!=m)return s(),"pfx"!=t||v}return s(),!1}function g(e,t,n,i,r){var a=e.charAt(0).toUpperCase()+e.slice(1),s=(e+" "+k.join(a+" ")+a).split(" ");return o(t,"string")||o(t,"undefined")?y(s,t,i,r):(s=(e+" "+_.join(a+" ")+a).split(" "),m(s,t,n))}function w(e,t,o){return g(e,n,n,t,o)}var x=[],T={_version:"3.5.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,t){var n=this;setTimeout(function(){t(n[e])},0)},addTest:function(e,t,n){x.push({name:e,fn:t,options:n})},addAsyncTest:function(e){x.push({name:null,fn:e})}},b=function(){};b.prototype=T,b=new b,b.addTest("geolocation","geolocation"in navigator),b.addTest("history",function(){var t=navigator.userAgent;return(t.indexOf("Android 2.")===-1&&t.indexOf("Android 4.0")===-1||t.indexOf("Mobile Safari")===-1||t.indexOf("Chrome")!==-1||t.indexOf("Windows Phone")!==-1||"file:"===location.protocol)&&(e.history&&"pushState"in e.history)}),b.addTest("webaudio",function(){var t="webkitAudioContex