smartfridge.ml/metro/metro.js

9 lines
565 KiB
JavaScript
Raw Normal View History

2021-06-19 21:21:04 +00:00
/*
* Metro 4 Components Library v4.4.3 (https://metroui.org.ua)
* Copyright 2012-2020 Sergey Pimenov
* Built at 27/12/2020 15:34:21
* Licensed under MIT
*/
!function(e,u){"use strict";var t,i,s,n,a,o,r,l,c,d,h,p,f,m,v,g=["opacity","zIndex"];function C(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}function x(e){return e===u||null===e}function w(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}function b(e){return!(!e||"[object Object]"!==Object.prototype.toString.call(e))&&(!(e=e.prototype!==u)||e.constructor&&"function"==typeof e.constructor)}function y(e){for(var t in e)if(D(e,t))return!1;return!0}function _(e){return e instanceof Object&&"length"in e}function S(e,t){return t=t||" ",e.split(t).map(function(e){return(""+e).trim()}).filter(function(e){return""!==e})}function T(e,t){return t=t||[0,""],e=String(e),t[0]=parseFloat(e),t[1]=e.match(/[\d.\-+]*\s*(.*)/)[1]||"",t}function k(e,t){e=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e);return void 0!==e[1]?e[1]:t}function E(e,t,n){t=w(t),-1<["scrollLeft","scrollTop"].indexOf(t)?e[t]=parseInt(n):e.style[t]=isNaN(n)||-1<g.indexOf(""+t)?n:n+"px"}function I(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}function A(e,t,n){var i;return x(n)&&1===e.nodeType&&(i="data-"+t.replace(/[A-Z]/g,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))?(n=function(t){try{return JSON.parse(t)}catch(e){return t}}(n),ee.set(e,t,n)):n=u),n}function M(e){return"string"!=typeof e?u:e.replace(/-/g,"").toLowerCase()}function D(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function O(e){e=e||window.location.hostname;return"localhost"===e||"127.0.0.1"===e||"[::1]"===e||""===e||null!==e.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/)}function P(e){delete s[e]}function N(e){if(n)setTimeout(N,0,e);else{var t=s[e];if(t){n=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(u,n)}}(t)}finally{P(e),n=!1}}}}function L(e){return"[object Array]"===Object.prototype.toString.call(e)}function R(){for(var e=0;e<m.length;e++)m[e][0](m[e][1]);v=!(m=[])}function B(e,t){m.push([e,t]),v||(v=!0,f(R,0))}function V(e,t){function n(e){j(t,e)}try{e(function(e){F(t,e)},n)}catch(e){n(e)}}function H(t){var e=t.owner,n=e.state_,i=e.data_,s=t[n],t=t.then;if("function"==typeof s){n=d;try{i=s(i)}catch(e){j(t,e)}}z(t,i)||(n===d&&F(t,i),n===h&&j(t,i))}function z(t,n){var i;try{if(t===n)throw new TypeError("A promises callback cannot return that same promise.");if(n&&("function"==typeof n||"object"==typeof n)){var e=n.then;if("function"==typeof e)return e.call(n,function(e){i||(i=!0,(n!==e?F:U)(t,e))},function(e){i||(i=!0,j(t,e))}),1}}catch(e){return i||j(t,e),1}}function F(e,t){e!==t&&z(e,t)||U(e,t)}function U(e,t){e.state_===l&&(e.state_=c,e.data_=t,B(W,e))}function j(e,t){e.state_===l&&(e.state_=c,e.data_=t,B(G,e))}function q(e){var t=e.then_;e.then_=u;for(var n=0;n<t.length;n++)H(t[n])}function W(e){e.state_=d,q(e)}function G(e){e.state_=h,q(e)}function Y(e){if("function"!=typeof e)throw new TypeError("Promise constructor takes a function argument");if(!(this instanceof Y))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this.then_=[],V(e,this)}(t="undefined"==typeof self?void 0===e?window:e:self).setImmediate||(i=1,n=!(s={}),K=(K=Object.getPrototypeOf&&Object.getPrototypeOf(t))&&K.setTimeout?K:t,a="[object process]"==={}.toString.call(t.process)?function(e){t.process.nextTick(function(){N(e)})}:t.MessageChannel?((r=new MessageChannel).port1.onmessage=function(e){N(e.data)},function(e){r.port2.postMessage(e)}):(o="setImmediate$"+Math.random()+"$",t.addEventListener("message",function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(o)&&N(+e.data.slice(o.length))},!1),function(e){t.postMessage(o+e,"*")}),K.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];return s[i]={callback:e,args:t},a(i),i++},K.clearImmediate=
//# sourceMappingURL=metro.min.js.map