// jQuery.documentSize, v1.2.5 // Copyright (c) 2015-2018 Michael Heim, Zeilenwechsel.de // Distributed under MIT license // http://github.com/hashchange/jquery.documentsize !function(e,t){"use strict";"object"==typeof exports?module.exports=t(require("jquery")):"function"==typeof define&&define.amd&&define(["jquery"],t)}(0,function(e){"use strict";return function(e){var t,o,r,u,n,i,a=!!window.getComputedStyle;function d(e,t){var o,n,i,r,d,l=t.window,u=0!==w(),c=t.useLayoutViewport&&"Width"===e,a=u||!p()||c,m=a?l.document.documentElement["client"+e]:h(e,l);return t.useLayoutViewport&&!a&&(n=m,i=f(l,{asRange:!0}),m=Math.round(n*i.calculated),b()||(o=l.document.documentElement.clientHeight,r=(n-1)*i.min,d=(n+1)*i.max,(m<=o+3&&o-3<=m||r<=o&&o<=d&&d'),e}(),r=i&&i.contentDocument||document,d=r.body,l=r!==document;(t=r.createElement("div")).style.cssText="width: 1px; height: 1px; position: relative; top: 0px; left: 32000px;",l||(e=function(){var e,t,o=document.documentElement,n=document.body,i=a?window.getComputedStyle(o,null):o.currentStyle,r=a?window.getComputedStyle(n,null):n.currentStyle,d=(i.overflowX||i.overflow||"visible").toLowerCase(),l="hidden"!==(r.overflowX||r.overflow||"visible").toLowerCase(),u="visible"===d,c={documentElement:{modified:u},body:{modified:l}};u&&(e=o.style,c.documentElement.styleOverflowX=e.overflowX,e.overflowX="auto");l&&(t=n.style,c.body.styleOverflowX=t.overflowX,t.overflowX="hidden");return c}()),o=d.scrollWidth,d.appendChild(t),n=o!==d.scrollWidth,d.removeChild(t),l||function(e){e.documentElement.modified&&(document.documentElement.style.overflowX=e.documentElement.styleOverflowX);e.body.modified&&(document.body.style.overflowX=e.body.styleOverflowX)}(e),u=n?"documentElement":"body",i&&document.body.removeChild(i)}function v(e,t){var o=t.documentElement;return Math.max(o.body["scroll"+e],t["scroll"+e],o.body["offset"+e],t["offset"+e],t["client"+e])}function y(e){return h("Width",e)}function h(e,t){var o,n,i=(t||window).visualViewport?(t||window).visualViewport[e.toLowerCase()]:(t||window)["inner"+e];return i&&(o=i,r||((n=o)!==+n||n===(0|n))||(r=!0)),i}function b(){return!!r}function x(e){return null!=e&&e.window==e}function g(e){return"string"==typeof e||e&&"object"==typeof e&&"[object String]"===Object.prototype.toString.call(e)||!1}function E(){var e;return void 0===n&&(n=!1,e=navigator&&navigator.userAgent,navigator&&"Microsoft Internet Explorer"===navigator.appName&&e&&null!=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})").exec(e)&&(n=parseFloat(RegExp.$1))),n}if(e.documentWidth=function(t){var o;t||(t=document);try{void 0===u&&s(),o=t[u].scrollWidth}catch(e){o=v("Width",t)}return o},e.documentHeight=function(t){var o;t||(t=document);try{void 0===u&&s(),o=t[u].scrollHeight}catch(e){o=v("Height",t)}return o},e.windowWidth=function(e,t){return d("Width",l(arguments))},e.windowHeight=function(e,t){return d("Height",l(arguments))},e.pinchZoomFactor=function(e){return f(e)},e.scrollbarWidth=w,"function"==typeof e&&!((i=E())&&i<8)&&9!==E())try{e(function(){void 0===u&&s(),w()})}catch(e){}}("undefined"!=typeof jQuery?jQuery:"undefined"!=typeof Zepto?Zepto:e),e}); //# sourceMappingURL=jquery.documentsize.min.js.map