kaiho/public/js/uikit.min.js

3 lines
127 KiB
JavaScript
Raw Normal View History

2018-07-15 13:46:05 +00:00
/*! UIkit 3.0.0-rc.9 | http://www.getuikit.com | (c) 2014 - 2017 YOOtheme | MIT License */
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define("uikit",e):t.UIkit=e()}(this,function(){"use strict";function p(i,n){return function(t){var e=arguments.length;return e?1<e?i.apply(n,arguments):i.call(n,t):i.call(n)}}var i=Object.prototype.hasOwnProperty;function h(t,e){return i.call(t,e)}var e={},n=/([a-z\d])([A-Z])/g;function m(t){return t in e||(e[t]=t.replace(n,"$1-$2").toLowerCase()),e[t]}var r=/-(\w)/g;function g(t){return t.replace(r,o)}function o(t,e){return e?e.toUpperCase():""}function s(t){return t.length?o(0,t.charAt(0))+t.slice(1):""}var t=String.prototype,a=t.startsWith||function(t){return 0===this.lastIndexOf(t,0)};function v(t,e){return a.call(t,e)}var l=t.endsWith||function(t){return this.substr(-t.length)===t};function c(t,e){return l.call(t,e)}var u=function(t){return~this.indexOf(t)},d=t.includes||u,f=Array.prototype.includes||u;function b(t,e){return t&&(_(t)?d:f).call(t,e)}var w=Array.isArray;function y(t){return"function"==typeof t}function x(t){return null!==t&&"object"==typeof t}function k(t){return x(t)&&Object.getPrototypeOf(t)===Object.prototype}function $(t){return x(t)&&t===t.window}function I(t){return x(t)&&9===t.nodeType}function S(t){return x(t)&&!!t.jquery}function T(t){return t instanceof Node||x(t)&&1===t.nodeType}function E(t){return t instanceof NodeList||t instanceof HTMLCollection}function C(t){return"boolean"==typeof t}function _(t){return"string"==typeof t}function A(t){return"number"==typeof t}function N(t){return A(t)||_(t)&&!isNaN(t-parseFloat(t))}function O(t){return void 0===t}function M(t){return C(t)?t:"true"===t||"1"===t||""===t||"false"!==t&&"0"!==t&&t}function D(t){var e=Number(t);return!isNaN(e)&&e}function B(t){return parseFloat(t)||0}function z(t){return T(t)||$(t)||I(t)?t:E(t)||S(t)?t[0]:w(t)?z(t[0]):null}var P=Array.prototype;function H(t){return T(t)?[t]:E(t)?P.slice.call(t):w(t)?t.map(z).filter(Boolean):S(t)?t.toArray():[]}function W(t){return w(t)?t:_(t)?t.split(/,(?![^(]*\))/).map(function(t){return N(t)?D(t):M(t.trim())}):[t]}function L(t){return t?c(t,"ms")?B(t):1e3*B(t):0}function j(t,e,i){return t.replace(new RegExp(e+"|"+i,"mg"),function(t){return t===e?i:e})}var F=Object.assign||function(t){for(var e=[],i=arguments.length-1;0<i--;)e[i]=arguments[i+1];t=Object(t);for(var n=0;n<e.length;n++){var r=e[n];if(null!==r)for(var o in r)h(r,o)&&(t[o]=r[o])}return t};function V(t,e){for(var i in t)e.call(t[i],t[i],i)}function Y(t,i){return t.sort(function(t,e){return t[i]>e[i]?1:e[i]>t[i]?-1:0})}function R(t,e,i){return void 0===e&&(e=0),void 0===i&&(i=1),Math.min(Math.max(t,e),i)}function q(){}function U(t,e){return t.left<=e.right&&e.left<=t.right&&t.top<=e.bottom&&e.top<=t.bottom}function X(t,e){return U({top:t.y,bottom:t.y,left:t.x,right:t.x},e)}var J={ratio:function(t,e,i){var n,r="width"===e?"height":"width";return(n={})[r]=t[e]?Math.round(i*t[r]/t[e]):t[r],n[e]=i,n},contain:function(i,n){var r=this;return V(i=F({},i),function(t,e){return i=i[e]>n[e]?r.ratio(i,e,n[e]):i}),i},cover:function(i,n){var r=this;return V(i=this.contain(i,n),function(t,e){return i=i[e]<n[e]?r.ratio(i,e,n[e]):i}),i}};function K(t,e,i){if(x(e))for(var n in e)K(t,n,e[n]);else{if(O(i))return(t=z(t))&&t.getAttribute(e);H(t).forEach(function(t){y(i)&&(i=i.call(t,K(t,e))),null===i?Z(t,e):t.setAttribute(e,i)})}}function G(t,e){return H(t).some(function(t){return t.hasAttribute(e)})}function Z(t,e){t=H(t),e.split(" ").forEach(function(e){return t.forEach(function(t){return t.removeAttribute(e)})})}function Q(t,e,i,n){K(t,e,function(t){return t?t.replace(i,n):t})}function tt(t,e){for(var i=0,n=[e,"data-"+e];i<n.length;i++)if(G(t,n[i]))return K(t,n[i])}function et(t,e){return z(t)||nt(t,lt(t)?e:document)}function it(t,e){var i=H(t);return i.length&&i||rt(t,lt(t)?e:document)}function nt(t,e){return z(ot(t,e,"querySelector"))}function rt(t,e){return H(ot(t,e,"querySelectorAll"))}function ot(t,s,e){if(void 0===s&&(s=document),!t||!_(t))return null;var a;lt(t=t.replace(at,"$1 *"))&&(a=[],t=t.split(",").map(function(