UNPKG

@kelvininc/ui-components

Version:
1 lines 1.19 kB
import{o as r,a as e,S as t,b as a,c as n,d as o,i as s}from"./p-CiDQ1Z66.js";import{g as c,t as i,M as f,i as u}from"./p-DfPM2t43.js";import{r as b,b as j}from"./p-Dkd2PDJ-.js";var p=c(b,"WeakMap"),v=r(Object.keys,Object),m=Object.prototype.hasOwnProperty;function w(r){if(!e(r))return v(r);var t=[];for(var a in Object(r))m.call(r,a)&&"constructor"!=a&&t.push(a);return t}var D=c(b,"DataView"),M=c(b,"Promise"),O="[object Map]",P="[object Promise]",d="[object Set]",g="[object WeakMap]",k="[object DataView]",y=i(D),S=i(f),l=i(M),V=i(t),W=i(p),h=j;(D&&h(new D(new ArrayBuffer(1)))!=k||f&&h(new f)!=O||M&&h(M.resolve())!=P||t&&h(new t)!=d||p&&h(new p)!=g)&&(h=function(r){var e=j(r),t="[object Object]"==e?r.constructor:void 0,a=t?i(t):"";if(a)switch(a){case y:return k;case S:return O;case l:return P;case V:return d;case W:return g}return e});var x=Object.prototype.hasOwnProperty;function A(r){if(null==r)return!0;if(a(r)&&(u(r)||"string"==typeof r||"function"==typeof r.splice||n(r)||o(r)||s(r)))return!r.length;var t=h(r);if("[object Map]"==t||"[object Set]"==t)return!r.size;if(e(r))return!w(r).length;for(var c in r)if(x.call(r,c))return!1;return!0}export{w as b,h as g,A as i}