Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

celia

Package Overview
Dependencies
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

celia - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

isWindow.js

3

_internal/_dom/_checkDom.js
import forEach from '../_array/_forEach';
import forSlice from '../_array/_forSlice';
import isWindow from '../../isWindow';

@@ -23,3 +24,3 @@ export function firstNode(dom) {

if (dom) {
if (dom.length) {
if (dom.length && !isWindow(dom)) {
forEach(dom, callback);

@@ -26,0 +27,0 @@ } else {

/*!
* celia.js v4.0.0
* celia.js v4.0.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v4.0.0
* celia.js v4.0.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v4.0.0
* celia.js v4.0.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v4.0.0
* celia.js v4.0.1
* (c) 2018-2019 Jesse Feng

@@ -910,2 +910,6 @@ * Released under the MIT License.

function isWindow (elem) {
return elem && elem === elem.window;
}
function map$2 (elems, callback, context) {

@@ -1069,2 +1073,3 @@ return map(each, elems, callback, context);

isUndefined: isUndefined,
isWindow: isWindow,
map: map$2,

@@ -1071,0 +1076,0 @@ number: number,

/*!
* celia.js v4.0.0
* celia.js v4.0.1
* (c) 2018-2019 Jesse Feng

@@ -908,2 +908,6 @@ * Released under the MIT License.

function isWindow (elem) {
return elem && elem === elem.window;
}
function map$2 (elems, callback, context) {

@@ -1067,2 +1071,3 @@ return map(each, elems, callback, context);

isUndefined: isUndefined,
isWindow: isWindow,
map: map$2,

@@ -1069,0 +1074,0 @@ number: number,

/*!
* celia.js v4.0.0
* celia.js v4.0.1
* (c) 2018-2019 Jesse Feng

@@ -914,2 +914,6 @@ * Released under the MIT License.

function isWindow (elem) {
return elem && elem === elem.window;
}
function map$2 (elems, callback, context) {

@@ -1073,2 +1077,3 @@ return map(each, elems, callback, context);

isUndefined: isUndefined,
isWindow: isWindow,
map: map$2,

@@ -1075,0 +1080,0 @@ number: number,

/*!
* celia.js v4.0.0
* celia.js v4.0.1
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
var e,n;e=this,n=function(){"use strict";function o(e,n){return e[e.length]=n,e}function c(e,n){return n?e.bind(n):e}function a(e,n,t,r,u){for(var i=c(r,u),a=n,o=void 0;!1!==o&&a<t;a++)o=i(e[a],a,e)}function s(e,n,t){a(e,0,e.length,n,t)}function d(e){return null==e}function f(e){return"function"==typeof e}function r(e){return"number"==typeof e}function u(e){return!d(e)&&r(e.length)&&!f(e)}var i=Array.isArray;function l(e){for(var n=[],t=arguments.length-1;0<t--;)n[t]=arguments[t+1];if(e){var r=function(n,e){var t=n.length;return s(e,function(e){u(e)?s(e,function(e){n[t++]=e}):o(n,e)}),t}(e,n);i(e)||(e.length=r)}return e}function m(e,n,t){return e&&s(e,n,t)}function v(e,n){return e<0?function(e,n){return n<=e?e:n}(0,n+e):e}var h=Array.isArray;function t(e,n,t){return h(e)?e.indexOf(n,t):u(e)?function(e,n,t){for(var r=e.length,u=t?v(t,r):0;u<r;u++)if(u in e&&e[u]===n)return u;return-1}(e,n,t):-1}function g(e){return"string"==typeof e}var p=Array.prototype.push;function y(e,n,t,r){var u=[],i=c(t,r);return e(n,function(e,n){d(e=i(e,n))||o(u,e)}),u}function b(e,n){return e.splice(n,1)[0]||null}var M=Array.isArray;var Y=Array.isArray;var e={append:function(e,n){if(e)return o(e,n),n},combine:l,forEach:m,forSlice:function(e,n,t,r,u){e&&function(e,n,t,r,u){var i=e.length;t=f(t)?(u=r,r=t,i):v(t,i),a(e,n=v(n,i),t,r,u)}(e,n,t,r,u)},grep:function(e,t,r){var u=[];return r=!!r,m(e,function(e,n){!t(e,n)===r&&o(u,e)}),u},includes:function(e,n){return-1!==t(e,n)},indexOf:t,makeArray:function(e,n){var t=n||[];return e&&(u(Object(e))?l(t,g(e)?[e]:e):t.push?t.push(e):p.call(t,e)),t},map:function(e,n,t){return y(m,e,n,t)},remove:function(e,n){return e&&M(e)?function(e,n){var t=e.indexOf(n);return-1<t?b(e,t):null}(e,n):null},removeAt:function(e,n){return e&&Y(e)?b(e,n):null},toArray:function(e){return e&&[].concat(e)}},n=/-([a-z])/g;function S(e){return!d(e)&&"object"==typeof e}function D(e,n,t){var r=c(n,t);for(var u in e)if(e.hasOwnProperty(u)&&!1===r(e[u],u,e))break}function H(e,n){return n?new Date(Date.UTC(e[0],e[1]||0,d(e[2])?1:e[2],e[3]||0,e[4]||0,e[5]||0,e[6]||0)):new Date(e[0],e[1]||0,d(e[2])?1:e[2],e[3]||0,e[4]||0,e[5]||0,e[6]||0)}var A=Date.prototype;A.setDay||(A.setDay=function(e){var n=this.getDay();e!==n&&this.setTime(+this+864e5*(e-n))});var w={},O={};function k(e,n){return w[e]||n}function x(e,n,t){var r=e.slice(0,-1);w[n]=w[e]=w[r]=n,O[n]=function(e,n){return d(n)?e["get"+t]():(e["set"+t](n),e)}}x("years","Y","FullYear"),x("months","M","Month"),x("dates","D","Date"),x("days","d","Day"),x("hours","h","Hours"),x("minutes","m","Minutes"),x("seconds","s","Seconds"),x("milliseconds","ms","Milliseconds"),x("times","t","Time");var j={Y:0,M:1,d:2,h:3,m:4,s:5,ms:6};function T(e){return e=k(e,"ms"),j[e]}function C(e,n,t){var r=[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()];if(S(n))D(n,function(e,n){var t=T(n);r[t]+=e});else{var u=T(t);r[u]+=n}return e.setTime(+H(r)),e}function F(e){return new Date(+e)}function I(e){var n=e.getFullYear();return n%4==0&&n%100!=0||n%400==0}var Z=[31,28,31,30,31,30,31,31,30,31,30,31],U=[31,29,31,30,31,30,31,31,30,31,30,31];function N(e){return I(e)?U:Z}function B(e,n,t){for(var r=c(n,t),u=0,i=void 0;!1!==i&&u<e;u++)i=r(u,u,u)}function E(e){return void 0===e}var z=/^\/?Date\((-?\d+)/i,L=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)\s*([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,R=[["YYYY-MM-DD",/(\d{4})-(\d\d)-(\d\d)/],["YYYY-MM",/(\d{4})-(\d\d)/,!1],["YYYYMMDD",/(\d{4})(\d\d)(\d\d)/],["YYYYMM",/(\d{4})(\d\d)/,!1],["YYYY",/\d{4}/,!1]],W=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)\s*([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,P=/\[.*?\]|Y{2,4}|y{2,4}|M{1,2}|D{1,2}|d{1,2}|H{1,2}|h{1,2}|m{1,2}|s{1,2}|SSS|Z{1,2}/g,$=[["HH:mm:ss.SSSS",/(\d\d):(\d\d):(\d\d)\.(\d+)/],["HH:mm:ss,SSSS",/(\d\d):(\d\d):(\d\d),(\d+)/],["HH:mm:ss",/(\d\d):(\d\d):(\d\d)/],["HH:mm",/(\d\d):(\d\d)/],["HHmmss.SSSS",/(\d\d)(\d\d)(\d\d)\.(\d+)/],["HHmmss,SSSS",/(\d\d)(\d\d)(\d\d),(\d+)/],["HHmmss",/(\d\d)(\d\d)(\d\d)/],["HHmm",/(\d\d)(\d\d)/],["HH",/\d\d/]],V=/(Z)|[+-](\d\d)(?::?(\d\d))?/,q=(new Date).getTimezoneOffset(),_=Object.prototype.toString;function G(e){return _.call(e)}function J(e){return"[object Date]"===G(e)}function K(e,n,t){if(!g(e))return H(e,!0===n);if(g(n))return H(function(t,r){var e,n=r.length,u=[],i=!1;if(B(n,function(e){var n=t.charAt(e);switch(r.charAt(e)){case"Y":case"y":u[0]=(u[0]||"")+n;break;case"M":u[1]=(u[1]||"")+n;break;case"D":case"d":u[2]=(u[2]||"")+n;break;case"H":case"h":u[3]=(u[3]||"")+n;break;case"m":u[4]=(u[4]||"")+n;break;case"s":u[5]=(u[5]||"")+n;break;case"S":u[6]=(u[6]||"")+n;break;case"Z":i=!0}}),u=u.map(function(e){return parseInt(e,10)}),i)if(e=V.exec(t.slice(-1<r.indexOf("ZZ")?-5:-6))){var a=q;if(!e[1]){var o="+"===e[0].charAt(0)?1:-1;u[3]-=e[2]*o,u[4]-=(e[3]||0)*o}u[4]-=a}else u.isUTC=i&-1<t.indexOf("Z");return d(u[1])||(u[1]-=1),u}(e,n),t);var r=function(e){var t,r,u=[],i=W.exec(e)||L.exec(e);if(i){if(s(R,function(e,n){if(r=e[1].exec(i[1]))return B(3,function(e){u[e]=parseInt(r[e+1]||1,10)}),u[1]-=1,t=!1!==e[2],!1}),e.indexOf(u[0]))return e;if(r=null,i[3]&&s($,function(e){if(r=e[1].exec(i[3]))return u=u.concat(r.slice(1).map(function(e){return parseInt(e,10)})),!1}),!t&&r)return u;if(r=null,i[4]){r=V.exec(i[4]);var n=q;r[1]||(u[3]-=r[2],u[4]-=r[3]||0),u[4]-=n}return u}return 4===e.length&&R[4][1].test(e)?((u=[parseInt(e,10),0,1]).isUTC=!0,u):e}(e);if(r!==e)return H(r,r.isUTC||!0===n);var u=z.exec(e);return new Date(null!==u?+u[1]:e)}function Q(e,n,t){return e=d(e)?new Date:e.length?K(e,n,t):r(e)?new Date(e):J(e)?new Date(+e):e._i&&e.isValid()?new Date(+e):new Date}function X(e,n){var t=12*(n.getFullYear()-e.getFullYear())+(n.getMonth()-e.getMonth()),r=C(F(e),t,"months");return-(t+(n<r?(n-r)/(r-C(F(e),t-1,"months")):(n-r)/(C(F(e),1+t,"months")-r)))||0}function ee(e,n){switch(n=k(n)){case"Y":e.setMonth(0);case"M":e.setDate(1);case"D":case"d":e.setHours(0);case"h":e.setMinutes(0);case"m":e.setSeconds(0);case"s":e.setMilliseconds(0)}return e}function ne(e,n){return"ms"===(n=k(n,"ms"))||(ee(e,n),C(e,1,n),C(e,-1,"ms")),e}function te(e,n){return void 0===n&&(n=2),("000000"+e).slice(-n)}function re(e,n){var t;return e<0?(t="+",e=Math.abs(e)):t="-",""+t+te(Math.floor(e/60))+(n?"":":")+te(Math.floor(e%60))}function ue(e){return 12<(e=e||24)?e-12:e}function ie(e,n,t,r){if(n=Q(n),"ms"===(t=k(t,"ms")))switch(r){case"before":return+e<+n;case"after":return+n<+e;default:return+e==+n}else{var u=+n;switch(r){case"before":return+ne(F(e),t)<u;case"after":return+ee(F(e),t)>u;default:return+ee(F(e),t)<=u&&u<=+ne(F(e),t)}}}function ae(e,n,t){return ie(e,n,t,"after")}function oe(e,n,t){return ie(e,n,t,"before")}var ce={add:C,clone:F,dayOfYear:function(e,n){var t=N(e),r=e.getMonth(),u=0;return B(r,function(e){u+=t[e]}),u+=e.getDate(),E(n)?u:(e.setTime(+e+864e5*(n-u)),e)},daysInMonth:function(e){return N(e)[e.getMonth()]},diff:function(e,n,t,r){var u;switch(n=Q(n),t=k(t)){case"Y":u=X(e,n)/12;break;case"M":u=X(e,n);break;case"s":u=(e-n)/1e3;break;case"m":u=(e-n)/6e4;break;case"h":u=(e-n)/36e5;break;case"d":u=(e-n)/864e5;break;default:u=e-n}return r?u:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)}(u)},endOf:ne,format:function(n,e){return e&&"UTC"!==e?e.replace(P,function(e){switch(e){case"YY":return String(n.getFullYear()).slice(-2);case"YYYY":case"yyyy":return n.getFullYear();case"M":return n.getMonth()+1;case"MM":return te(n.getMonth()+1);case"D":case"d":return n.getDate();case"DD":case"dd":return te(n.getDate());case"H":return n.getHours();case"HH":return te(n.getHours());case"h":return ue(n.getHours());case"hh":return te(ue(n.getHours()));case"m":return n.getMinutes();case"mm":return te(n.getMinutes());case"s":return n.getSeconds();case"ss":return te(n.getSeconds());case"SSS":return te(n.getMilliseconds(),3);case"Z":return re(q);case"ZZ":return re(q,!0);default:return e}}):n.toISOString()},get:function(e,n){return n=k(n,"t"),O[n](e)},isAfter:ae,isBefore:oe,isBetween:function(e,n,t,r,u){return("("===(u=u||"()").charAt(0)?ae(e,n,r):!oe(e,n,r))&&(")"===u.charAt(1)?oe(e,t,r):!ae(e,t,r))},isLeapYear:I,isSame:function(e,n,t){return ie(e,n,t)},isSameOrAfter:function(e,n,t){return!oe(e,n,t)},isSameOrBefore:function(e,n,t){return!ae(e,n,t)},isValid:function(e){return"Invalid Date"!==e.toString()},parse:Q,set:function(e,n,t){return(n=k(n))&&O[n](e,t),e},startOf:ee,subtract:function(e,n,t){return C(e,-n,t)}};function se(e,n,t){e&&(u(e)?s(e,n,t):r(e)?B(e,n,t):D(e,n,t))}function de(e,n,t){return e&&B(e,n,t)}var fe={forNumber:de,map:function(e,n,t){return y(de,e,n,t)}};function le(e,n,t){return S(e)&&D(e,n,t)}var me={forIn:function(e,n,t){return S(e)&&function(e,n,t){var r=c(n,t);for(var u in e)if(!1===r(e[u],u,e))break}(e,n,t)},forOwn:le,map:function(e,n,t){return y(le,e,n,t)}};function ve(e){return decodeURIComponent(e.replace(/\+/g," "))}var he=Array.isArray;var ge={parse:function(e,n,i){void 0===n&&(n="&"),void 0===i&&(i="=");var a={};return g(e)&&e.split(n).forEach(function(e){var n=e.split(i),t=n[0],r=n[1],u=a[t];E(u)?a[t]=ve(r):he(u)?o(u,ve(r)):a[t]=[u,ve(r)]}),a},prefix:function(e,n){return e?(n||"?")+e:e},stringify:function(e,n,t){void 0===n&&(n="&"),void 0===t&&(t="=");var r=[];return le(e,function(e,n){e||!d(e)&&!isNaN(e)||(e=""),o(r,encodeURIComponent(n)+t+encodeURIComponent(e))}),r.length?r.join(n):""}};var pe={};"Boolean,Number,String,Function,Array,Date,RegExp,Object,Error,Symbol".split(",").forEach(function(e){pe["[object "+e+"]"]=e.toLowerCase()});var ye={isAbsolute:function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)},join:function(e){var n=arguments,t=n.length;d(e)?1<t&&(e=""):e=e.replace(/\/+$/,"");var r="";return a(n,1,t,function(e){r+="/",r+=e||""}),r&&(e+=r.replace(/\/+/g,"/")),e}};return{array:e,camelCase:function(e){return e.replace(n,function(e,n){return n.toUpperCase()})},date:ce,each:se,isArrayLike:u,isAsyncFunction:function(e){return"[object AsyncFunction]"===G(e)},isBoolean:function(e){return"boolean"==typeof e},isDate:J,isFunction:f,isNil:d,isNumber:r,isObject:S,isPromiseLike:function(e){return!!e&&f(e.then)},isString:g,isUndefined:E,map:function(e,n,t){return y(se,e,n,t)},number:fe,object:me,qs:ge,sleep:function(n){return new Promise(function(e){setTimeout(e,n)})},type:function(e){return d(e)?e+"":S(e)||f(e)?pe[G(e)]||"object":typeof e},url:ye}},"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e=e||self).celia=n();
var e,n;e=this,n=function(){"use strict";function o(e,n){return e[e.length]=n,e}function c(e,n){return n?e.bind(n):e}function a(e,n,t,r,u){for(var i=c(r,u),a=n,o=void 0;!1!==o&&a<t;a++)o=i(e[a],a,e)}function s(e,n,t){a(e,0,e.length,n,t)}function d(e){return null==e}function f(e){return"function"==typeof e}function r(e){return"number"==typeof e}function u(e){return!d(e)&&r(e.length)&&!f(e)}var i=Array.isArray;function l(e){for(var n=[],t=arguments.length-1;0<t--;)n[t]=arguments[t+1];if(e){var r=function(n,e){var t=n.length;return s(e,function(e){u(e)?s(e,function(e){n[t++]=e}):o(n,e)}),t}(e,n);i(e)||(e.length=r)}return e}function m(e,n,t){return e&&s(e,n,t)}function v(e,n){return e<0?function(e,n){return n<=e?e:n}(0,n+e):e}var h=Array.isArray;function t(e,n,t){return h(e)?e.indexOf(n,t):u(e)?function(e,n,t){for(var r=e.length,u=t?v(t,r):0;u<r;u++)if(u in e&&e[u]===n)return u;return-1}(e,n,t):-1}function g(e){return"string"==typeof e}var p=Array.prototype.push;function y(e,n,t,r){var u=[],i=c(t,r);return e(n,function(e,n){d(e=i(e,n))||o(u,e)}),u}function b(e,n){return e.splice(n,1)[0]||null}var M=Array.isArray;var Y=Array.isArray;var e={append:function(e,n){if(e)return o(e,n),n},combine:l,forEach:m,forSlice:function(e,n,t,r,u){e&&function(e,n,t,r,u){var i=e.length;t=f(t)?(u=r,r=t,i):v(t,i),a(e,n=v(n,i),t,r,u)}(e,n,t,r,u)},grep:function(e,t,r){var u=[];return r=!!r,m(e,function(e,n){!t(e,n)===r&&o(u,e)}),u},includes:function(e,n){return-1!==t(e,n)},indexOf:t,makeArray:function(e,n){var t=n||[];return e&&(u(Object(e))?l(t,g(e)?[e]:e):t.push?t.push(e):p.call(t,e)),t},map:function(e,n,t){return y(m,e,n,t)},remove:function(e,n){return e&&M(e)?function(e,n){var t=e.indexOf(n);return-1<t?b(e,t):null}(e,n):null},removeAt:function(e,n){return e&&Y(e)?b(e,n):null},toArray:function(e){return e&&[].concat(e)}},n=/-([a-z])/g;function S(e){return!d(e)&&"object"==typeof e}function D(e,n,t){var r=c(n,t);for(var u in e)if(e.hasOwnProperty(u)&&!1===r(e[u],u,e))break}function H(e,n){return n?new Date(Date.UTC(e[0],e[1]||0,d(e[2])?1:e[2],e[3]||0,e[4]||0,e[5]||0,e[6]||0)):new Date(e[0],e[1]||0,d(e[2])?1:e[2],e[3]||0,e[4]||0,e[5]||0,e[6]||0)}var A=Date.prototype;A.setDay||(A.setDay=function(e){var n=this.getDay();e!==n&&this.setTime(+this+864e5*(e-n))});var w={},O={};function k(e,n){return w[e]||n}function x(e,n,t){var r=e.slice(0,-1);w[n]=w[e]=w[r]=n,O[n]=function(e,n){return d(n)?e["get"+t]():(e["set"+t](n),e)}}x("years","Y","FullYear"),x("months","M","Month"),x("dates","D","Date"),x("days","d","Day"),x("hours","h","Hours"),x("minutes","m","Minutes"),x("seconds","s","Seconds"),x("milliseconds","ms","Milliseconds"),x("times","t","Time");var j={Y:0,M:1,d:2,h:3,m:4,s:5,ms:6};function T(e){return e=k(e,"ms"),j[e]}function C(e,n,t){var r=[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()];if(S(n))D(n,function(e,n){var t=T(n);r[t]+=e});else{var u=T(t);r[u]+=n}return e.setTime(+H(r)),e}function F(e){return new Date(+e)}function I(e){var n=e.getFullYear();return n%4==0&&n%100!=0||n%400==0}var Z=[31,28,31,30,31,30,31,31,30,31,30,31],U=[31,29,31,30,31,30,31,31,30,31,30,31];function N(e){return I(e)?U:Z}function B(e,n,t){for(var r=c(n,t),u=0,i=void 0;!1!==i&&u<e;u++)i=r(u,u,u)}function E(e){return void 0===e}var W=/^\/?Date\((-?\d+)/i,z=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)\s*([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,L=[["YYYY-MM-DD",/(\d{4})-(\d\d)-(\d\d)/],["YYYY-MM",/(\d{4})-(\d\d)/,!1],["YYYYMMDD",/(\d{4})(\d\d)(\d\d)/],["YYYYMM",/(\d{4})(\d\d)/,!1],["YYYY",/\d{4}/,!1]],R=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)\s*([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,P=/\[.*?\]|Y{2,4}|y{2,4}|M{1,2}|D{1,2}|d{1,2}|H{1,2}|h{1,2}|m{1,2}|s{1,2}|SSS|Z{1,2}/g,$=[["HH:mm:ss.SSSS",/(\d\d):(\d\d):(\d\d)\.(\d+)/],["HH:mm:ss,SSSS",/(\d\d):(\d\d):(\d\d),(\d+)/],["HH:mm:ss",/(\d\d):(\d\d):(\d\d)/],["HH:mm",/(\d\d):(\d\d)/],["HHmmss.SSSS",/(\d\d)(\d\d)(\d\d)\.(\d+)/],["HHmmss,SSSS",/(\d\d)(\d\d)(\d\d),(\d+)/],["HHmmss",/(\d\d)(\d\d)(\d\d)/],["HHmm",/(\d\d)(\d\d)/],["HH",/\d\d/]],V=/(Z)|[+-](\d\d)(?::?(\d\d))?/,q=(new Date).getTimezoneOffset(),_=Object.prototype.toString;function G(e){return _.call(e)}function J(e){return"[object Date]"===G(e)}function K(e,n,t){if(!g(e))return H(e,!0===n);if(g(n))return H(function(t,r){var e,n=r.length,u=[],i=!1;if(B(n,function(e){var n=t.charAt(e);switch(r.charAt(e)){case"Y":case"y":u[0]=(u[0]||"")+n;break;case"M":u[1]=(u[1]||"")+n;break;case"D":case"d":u[2]=(u[2]||"")+n;break;case"H":case"h":u[3]=(u[3]||"")+n;break;case"m":u[4]=(u[4]||"")+n;break;case"s":u[5]=(u[5]||"")+n;break;case"S":u[6]=(u[6]||"")+n;break;case"Z":i=!0}}),u=u.map(function(e){return parseInt(e,10)}),i)if(e=V.exec(t.slice(-1<r.indexOf("ZZ")?-5:-6))){var a=q;if(!e[1]){var o="+"===e[0].charAt(0)?1:-1;u[3]-=e[2]*o,u[4]-=(e[3]||0)*o}u[4]-=a}else u.isUTC=i&-1<t.indexOf("Z");return d(u[1])||(u[1]-=1),u}(e,n),t);var r=function(e){var t,r,u=[],i=R.exec(e)||z.exec(e);if(i){if(s(L,function(e,n){if(r=e[1].exec(i[1]))return B(3,function(e){u[e]=parseInt(r[e+1]||1,10)}),u[1]-=1,t=!1!==e[2],!1}),e.indexOf(u[0]))return e;if(r=null,i[3]&&s($,function(e){if(r=e[1].exec(i[3]))return u=u.concat(r.slice(1).map(function(e){return parseInt(e,10)})),!1}),!t&&r)return u;if(r=null,i[4]){r=V.exec(i[4]);var n=q;r[1]||(u[3]-=r[2],u[4]-=r[3]||0),u[4]-=n}return u}return 4===e.length&&L[4][1].test(e)?((u=[parseInt(e,10),0,1]).isUTC=!0,u):e}(e);if(r!==e)return H(r,r.isUTC||!0===n);var u=W.exec(e);return new Date(null!==u?+u[1]:e)}function Q(e,n,t){return e=d(e)?new Date:e.length?K(e,n,t):r(e)?new Date(e):J(e)?new Date(+e):e._i&&e.isValid()?new Date(+e):new Date}function X(e,n){var t=12*(n.getFullYear()-e.getFullYear())+(n.getMonth()-e.getMonth()),r=C(F(e),t,"months");return-(t+(n<r?(n-r)/(r-C(F(e),t-1,"months")):(n-r)/(C(F(e),1+t,"months")-r)))||0}function ee(e,n){switch(n=k(n)){case"Y":e.setMonth(0);case"M":e.setDate(1);case"D":case"d":e.setHours(0);case"h":e.setMinutes(0);case"m":e.setSeconds(0);case"s":e.setMilliseconds(0)}return e}function ne(e,n){return"ms"===(n=k(n,"ms"))||(ee(e,n),C(e,1,n),C(e,-1,"ms")),e}function te(e,n){return void 0===n&&(n=2),("000000"+e).slice(-n)}function re(e,n){var t;return e<0?(t="+",e=Math.abs(e)):t="-",""+t+te(Math.floor(e/60))+(n?"":":")+te(Math.floor(e%60))}function ue(e){return 12<(e=e||24)?e-12:e}function ie(e,n,t,r){if(n=Q(n),"ms"===(t=k(t,"ms")))switch(r){case"before":return+e<+n;case"after":return+n<+e;default:return+e==+n}else{var u=+n;switch(r){case"before":return+ne(F(e),t)<u;case"after":return+ee(F(e),t)>u;default:return+ee(F(e),t)<=u&&u<=+ne(F(e),t)}}}function ae(e,n,t){return ie(e,n,t,"after")}function oe(e,n,t){return ie(e,n,t,"before")}var ce={add:C,clone:F,dayOfYear:function(e,n){var t=N(e),r=e.getMonth(),u=0;return B(r,function(e){u+=t[e]}),u+=e.getDate(),E(n)?u:(e.setTime(+e+864e5*(n-u)),e)},daysInMonth:function(e){return N(e)[e.getMonth()]},diff:function(e,n,t,r){var u;switch(n=Q(n),t=k(t)){case"Y":u=X(e,n)/12;break;case"M":u=X(e,n);break;case"s":u=(e-n)/1e3;break;case"m":u=(e-n)/6e4;break;case"h":u=(e-n)/36e5;break;case"d":u=(e-n)/864e5;break;default:u=e-n}return r?u:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)}(u)},endOf:ne,format:function(n,e){return e&&"UTC"!==e?e.replace(P,function(e){switch(e){case"YY":return String(n.getFullYear()).slice(-2);case"YYYY":case"yyyy":return n.getFullYear();case"M":return n.getMonth()+1;case"MM":return te(n.getMonth()+1);case"D":case"d":return n.getDate();case"DD":case"dd":return te(n.getDate());case"H":return n.getHours();case"HH":return te(n.getHours());case"h":return ue(n.getHours());case"hh":return te(ue(n.getHours()));case"m":return n.getMinutes();case"mm":return te(n.getMinutes());case"s":return n.getSeconds();case"ss":return te(n.getSeconds());case"SSS":return te(n.getMilliseconds(),3);case"Z":return re(q);case"ZZ":return re(q,!0);default:return e}}):n.toISOString()},get:function(e,n){return n=k(n,"t"),O[n](e)},isAfter:ae,isBefore:oe,isBetween:function(e,n,t,r,u){return("("===(u=u||"()").charAt(0)?ae(e,n,r):!oe(e,n,r))&&(")"===u.charAt(1)?oe(e,t,r):!ae(e,t,r))},isLeapYear:I,isSame:function(e,n,t){return ie(e,n,t)},isSameOrAfter:function(e,n,t){return!oe(e,n,t)},isSameOrBefore:function(e,n,t){return!ae(e,n,t)},isValid:function(e){return"Invalid Date"!==e.toString()},parse:Q,set:function(e,n,t){return(n=k(n))&&O[n](e,t),e},startOf:ee,subtract:function(e,n,t){return C(e,-n,t)}};function se(e,n,t){e&&(u(e)?s(e,n,t):r(e)?B(e,n,t):D(e,n,t))}function de(e,n,t){return e&&B(e,n,t)}var fe={forNumber:de,map:function(e,n,t){return y(de,e,n,t)}};function le(e,n,t){return S(e)&&D(e,n,t)}var me={forIn:function(e,n,t){return S(e)&&function(e,n,t){var r=c(n,t);for(var u in e)if(!1===r(e[u],u,e))break}(e,n,t)},forOwn:le,map:function(e,n,t){return y(le,e,n,t)}};function ve(e){return decodeURIComponent(e.replace(/\+/g," "))}var he=Array.isArray;var ge={parse:function(e,n,i){void 0===n&&(n="&"),void 0===i&&(i="=");var a={};return g(e)&&e.split(n).forEach(function(e){var n=e.split(i),t=n[0],r=n[1],u=a[t];E(u)?a[t]=ve(r):he(u)?o(u,ve(r)):a[t]=[u,ve(r)]}),a},prefix:function(e,n){return e?(n||"?")+e:e},stringify:function(e,n,t){void 0===n&&(n="&"),void 0===t&&(t="=");var r=[];return le(e,function(e,n){e||!d(e)&&!isNaN(e)||(e=""),o(r,encodeURIComponent(n)+t+encodeURIComponent(e))}),r.length?r.join(n):""}};var pe={};"Boolean,Number,String,Function,Array,Date,RegExp,Object,Error,Symbol".split(",").forEach(function(e){pe["[object "+e+"]"]=e.toLowerCase()});var ye={isAbsolute:function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)},join:function(e){var n=arguments,t=n.length;d(e)?1<t&&(e=""):e=e.replace(/\/+$/,"");var r="";return a(n,1,t,function(e){r+="/",r+=e||""}),r&&(e+=r.replace(/\/+/g,"/")),e}};return{array:e,camelCase:function(e){return e.replace(n,function(e,n){return n.toUpperCase()})},date:ce,each:se,isArrayLike:u,isAsyncFunction:function(e){return"[object AsyncFunction]"===G(e)},isBoolean:function(e){return"boolean"==typeof e},isDate:J,isFunction:f,isNil:d,isNumber:r,isObject:S,isPromiseLike:function(e){return!!e&&f(e.then)},isString:g,isUndefined:E,isWindow:function(e){return e&&e===e.window},map:function(e,n,t){return y(se,e,n,t)},number:fe,object:me,qs:ge,sleep:function(n){return new Promise(function(e){setTimeout(e,n)})},type:function(e){return d(e)?e+"":S(e)||f(e)?pe[G(e)]||"object":typeof e},url:ye}},"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e=e||self).celia=n();
/*!
* celia.js v4.0.0
* celia.js v4.0.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v4.0.0
* celia.js v4.0.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v4.0.0
* celia.js v4.0.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v4.0.0
* celia.js v4.0.1
* (c) 2018-2019 Jesse Feng

@@ -144,2 +144,6 @@ * Released under the MIT License.

function isWindow (elem) {
return elem && elem === elem.window;
}
function firstNode(dom) {

@@ -164,3 +168,3 @@ return dom && (dom.length > -1 ? dom[0] : dom);

if (dom) {
if (dom.length) {
if (dom.length && !isWindow(dom)) {
forEach(dom, callback);

@@ -167,0 +171,0 @@ } else {

/*!
* celia.js v4.0.0
* celia.js v4.0.1
* (c) 2018-2019 Jesse Feng

@@ -148,2 +148,6 @@ * Released under the MIT License.

function isWindow (elem) {
return elem && elem === elem.window;
}
function firstNode(dom) {

@@ -168,3 +172,3 @@ return dom && (dom.length > -1 ? dom[0] : dom);

if (dom) {
if (dom.length) {
if (dom.length && !isWindow(dom)) {
forEach(dom, callback);

@@ -171,0 +175,0 @@ } else {

/*!
* celia.js v4.0.0
* celia.js v4.0.1
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
var n,e;n=this,e=function(){"use strict";var o=/^\s*<(\w+|!)[^>]*>/,u=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,e=/[^\x20\t\r\n\f]+/g;function i(n){return"string"==typeof n}function f(n){return Array.isArray(n)?n:i(n)&&n.match(e)||[]}function a(n,e){return n[n.length]=e,n}var n=document.body,t="classList"in n,c={addClass:function(e,n){n.forEach(function(n){e.classList.add(n)})},removeClass:function(e,n){n.forEach(function(n){e.classList.remove(n)})},append:function(n,e){n.appendChild(e)},prepend:function(n,e){n.insertBefore(e,n.firstChild)},after:function(n,e){var t=n.parentNode;t&&t.insertBefore(e,n.nextSibling)},before:function(n,e){var t=n.parentNode;t&&t.insertBefore(e,n)},firstElementChild:"firstElementChild"in n?function(n){return n.firstElementChild}:function(n){var e=n.firstChild;return e&&1===e.nodeType?e:null}};function l(n,e){return e?n.bind(e):n}function d(n,e,t,r,i){for(var o=l(r,i),u=e,f=void 0;!1!==f&&u<t;u++)f=o(n[u],u,n)}function s(n,e,t){d(n,0,n.length,e,t)}function v(n){return n&&(-1<n.length?n[0]:n)}function p(n,e,t){var r,i=n.length;return t(i?(d(n,0,r=i-1,e),n[r]):n),n}function m(n,e){return n&&(n.length?s(n,e):e(n)),n}function h(n,e,t){var r=l(e,t);for(var i in n)if(n.hasOwnProperty(i)&&!1===r(n[i],i,n))break}function g(n){return null==n}function y(n){return!g(n)&&"object"==typeof n}function b(n,e){var t=[],r=e||function(n){a(t,n)};return s(n.childNodes,function(n,e){1===n.nodeType&&r(n,1,e)}),t}["prepend","after","before"].forEach(function(t){t in n&&(c[t]=function(n,e){return n[t](e)})}),t||(c.addClass=function(n,e){var t=f(n.className),r=t.slice(0);e.forEach(function(n){-1===r.indexOf(n)&&a(r,n)}),(t=t.join(" "))!==(r=r.join(" "))&&(n.className=r)},c.removeClass=function(n,e){var t=f(n.className),r=t.slice(0);e.forEach(function(n){var e=r.indexOf(n);-1<e&&r.splice(e,1)}),(t=t.join(" "))!==(r=r.join(" "))&&(n.className=r)});var r={for:"htmlFor",class:"className"};["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"].forEach(function(n){r[n.toLowerCase()]=n});var C=document.createElement("div"),E=["Webkit","Moz","ms"],x=C.style;var w={nextElementSibling:"nextSibling",previousElementSibling:"previousSibling"};function N(n,e,t){var r=n.match(u);if(r){var i=document.createElement(r[1]);!function(n,e,t){y(n)&&h(n,e,t)}(e,function(n,e){i.setAttribute(e,n)}),t(i)}else o.test(n)?(C.innerHTML=n,b(C,t)):t(document.createTextNode(n))}function P(n){return"function"==typeof n}var S=Array.isArray;function A(n,e){var t=document.createDocumentFragment(),r=function(n){1===n.nodeType?t.appendChild(n):!i(n)&&function(n){return!g(n)&&function(n){return"number"==typeof n}(n.length)&&!P(n)}(n)?s(n,function(n){t.appendChild(n)}):N(n,e,function(n){t.appendChild(n)})};return S(n)?s(n,r):r(n),t}function D(n,e,t){if(n){var r=A(e);t=c[t],p(n,function(n){return t(n,r.cloneNode(!0))},function(n){return t(n,r)})}return n}function L(n){for(var e=[],t=arguments.length-1;0<t--;)e[t]=arguments[t+1];return D(n,e,"append")}function T(n){return void 0===n}function j(n,e,t){var r=[];return m(n,function(n){t(n,e,function(n){a(r,n)})}),r}var O=/-([a-z])/g;var B={};function M(n,e,t){var r=n.style;if(e=B[e]||(B[e]=function(n){if(n in x)return n;for(var e=n[0].toUpperCase()+n.slice(1),t=E.length;t--;)if((n=E[t]+e)in x)return n}(e)||e),g(t))return r[e];r[e]=t}function V(n,e,t){var r="";return(t=t||function(n){var e=n.ownerDocument.defaultView;return e&&e.opener||(e=window),e.getComputedStyle(n)}(n))&&(r=t.getPropertyValue(e)||t[e]),r}var k=1,H="expando9527",z={};function F(n,e,t){var r=n[H],i=z[r||-1];if(T(t))return i&&i[e];i||(n[H]=r=++k,i=z[r]={}),i[e]=t}function U(n){m(n,function(n){if(1===n.nodeType)if("textContent"in n)n.textContent="";else for(var e;e=n.firstChild;)n.removeChild(e)})}function I(n,r){return m(n,function(n){var e=n.style.display||"",t=F(n,"display");(T(t)&&(F(n,"display",e),t=e),r)?e?"none"===e&&(n.style.display="none"===t?"":t):"none"===V(n,"display")&&(n.style.display="block"):n.style.display="none"}),n}function W(n,e,t){var r=n[e];if(r)t(r);else{for(e=w[e];(n=n[e])&&1!==n.nodeType;);n&&t(n)}}function $(n,e,t){if(e in n)for(;n=n[e];)t(n);else for(e=w[e];(n=n[e])&&1===n.nodeType;)t(n)}function q(n,e,t){return n&&s(n,e,t)}var G=Array.isArray;var J=window.removeEventListener?function(n,e,t){n.removeEventListener(e,t,!1)}:function(n,e,t){n.detachEvent("on"+e,t)};var K=window.addEventListener?function(n,e,t){n.addEventListener(e,t,!1)}:function(n,e,t){n.attachEvent("on"+e,t)};function Q(n,e,t){return T(t)?function(n,e){return(n=v(n))&&n[e]}(n,e):function(n,e,t){return e=r[e]||e,m(n,function(n){n[e]=t}),n}(n,e,t)}return{addClass:function(n,e){var t=f(e),r=c.addClass;return m(n,function(n){r(n,t)}),n},after:function(n){for(var e=[],t=arguments.length-1;0<t--;)e[t]=arguments[t+1];return D(n,e,"after")},append:L,attr:function(n,e,t){return T(t)?function(n,e){return(n=v(n))&&n.getAttribute(e)}(n,e):function(n,e,t){return m(n,function(n){n.setAttribute(e,t)}),n}(n,e,t)},before:function(n){for(var e=[],t=arguments.length-1;0<t--;)e[t]=arguments[t+1];return D(n,e,"before")},children:function(n){return j(n,"",function(n,e,t){b(n,t)})},createElement:function(n,e,t){if(P(e)&&(t=e,e=null),P(t))return N(n,e,t);var r=[];return N(n,e,function(n){a(r,n)}),r},css:function(n,e,t){return e=function(n){return n.replace(O,function(n,e){return e.toUpperCase()})}(e),T(t)?function(n,e){return(n=v(n))?V(n,e):""}(n,e):function(n,e,t){return m(n,function(n){M(n,e,t)}),n}(n,e,t)},data:function(e,r,t){if(y(r))return m(e,function(n){var t=F(n,"data");t||F(e,"data",t={}),h(r,function(n,e){t[e]=n})}),e;if(g(r))return(e=v(e))&&F(e,"data");if(T(t)){var n=F(e,"data");return n&&n[r]}return m(e,function(n){var e=F(n,"data");e||F(n,"data",e={}),e[r]=t}),e},empty:U,hasClass:function(n,e){var t=!1,r=f(e);return m(n,function(n){if(function(n,e){var t=!1,r=f(n.className);return s(e,function(n){if(-1<r.indexOf(n))return!(t=!0)}),t}(n,r))return!(t=!0)}),t},hide:function(n){return I(n)},html:function(n,e){return g(e)?(n=v(n))&&n.innerHTML:(m(n,1===e.nodeType?function(n){U(n),L(n,e)}:function(n){n.innerHTML=String(e)}),n)},next:function(n){return j(n,"nextElementSibling",W)},nextAll:function(n){return j(n,"nextElementSibling",$)},off:function(n,e,i){return m(n,function(t){var r=F(t,"events");F(t,"handle")&&(T(e)?q(r,function(n,e){J(t,e,n),delete r[e]}):q(e.split(" "),function(n){T(i)?(J(t,n,r[n]),delete r[n]):function(n,e){n&&G(n)&&function(n,e){var t=n.indexOf(e);-1<t&&function(n,e){n.splice(e,1)[0]}(n,t)}(n,e)}(r[n],i)}))}),n},on:function(n,e,o){return m(n,function(t){var r=F(t,"events"),i=F(t,"handle");r||F(t,"events",r={}),i||F(t,"handle",i=function(t,r){var n=function(e){if(e.preventDefault||(e.preventDefault=function(){e.returnValue=!1}),e.stopPropagation||(e.stopPropagation=function(){e.cancelBubble=!0}),e.target||(e.target=e.srcElement||document),T(e.defaultPrevented)){var n=e.preventDefault;n=n.bind(e),e.preventDefault=function(){e.defaultPrevented=!0,n()},e.defaultPrevented=!1}e.isDefaultPrevented=function(){return e.defaultPrevented||!1===e.returnValue},q(r[e.type],function(n){return n.call(t,e)});try{delete e.preventDefault,delete e.stopPropagation,delete e.isDefaultPrevented}catch(n){e.preventDefault=null,e.stopPropagation=null,e.isDefaultPrevented=null}};return n.elem=t,n}(t,r)),e.split(" ").forEach(function(n){var e=r[n];e||(K(t,n,i),e=r[n]=[]),e[e.length]=o})}),n},parent:function(n){return j(n,"",function(n,e,t){var r=n.parentNode;r&&t(r)})},prepend:function(n){for(var e=[],t=arguments.length-1;0<t--;)e[t]=arguments[t+1];return D(n,e,"prepend")},prev:function(n){return j(n,"previousElementSibling",W)},prevAll:function(n){return j(n,"previousElementSibling",$)},prop:Q,remove:function(n){return m(n,function(n){var e=n.parentNode;e&&e.removeChild(n)}),n},removeAttr:function(n,e){var t=f(e);return m(n,function(e){t.forEach(function(n){e.removeAttribute(n)})}),n},removeClass:function(n,e){if(1===arguments.length)return Q(n,"className","");var t=f(e),r=c.removeClass;return m(n,function(n){r(n,t)}),n},removeData:function(n){for(var t=[],e=arguments.length-1;0<e--;)t[e]=arguments[e+1];var r=t[0]?function(n){var e=F(n,"data");e&&s(t,function(n){delete e[n]})}:function(){F(n,"data",{})};return m(n,r),n},removeProp:function(n,e){return m(n,function(n){delete n[r[e]||e]}),n},show:function(n){return I(n,!0)},wrap:function(n,e){if(e){e=A(e);var r=c.firstElementChild,i=c.before,t=function(n,e){var t;for(i(n,e),e=n.previousSibling;t=r(e);)e=t;e.appendChild(n)};p(n,function(n){return t(n,e.cloneNode(!0))},function(n){return t(n,e)})}return n}}},"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(n=n||self).celia=e();
var n,e;n=this,e=function(){"use strict";var o=/^\s*<(\w+|!)[^>]*>/,u=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,e=/[^\x20\t\r\n\f]+/g;function i(n){return"string"==typeof n}function f(n){return Array.isArray(n)?n:i(n)&&n.match(e)||[]}function a(n,e){return n[n.length]=e,n}var n=document.body,t="classList"in n,c={addClass:function(e,n){n.forEach(function(n){e.classList.add(n)})},removeClass:function(e,n){n.forEach(function(n){e.classList.remove(n)})},append:function(n,e){n.appendChild(e)},prepend:function(n,e){n.insertBefore(e,n.firstChild)},after:function(n,e){var t=n.parentNode;t&&t.insertBefore(e,n.nextSibling)},before:function(n,e){var t=n.parentNode;t&&t.insertBefore(e,n)},firstElementChild:"firstElementChild"in n?function(n){return n.firstElementChild}:function(n){var e=n.firstChild;return e&&1===e.nodeType?e:null}};function l(n,e){return e?n.bind(e):n}function d(n,e,t,r,i){for(var o=l(r,i),u=e,f=void 0;!1!==f&&u<t;u++)f=o(n[u],u,n)}function s(n,e,t){d(n,0,n.length,e,t)}function v(n){return n&&(-1<n.length?n[0]:n)}function p(n,e,t){var r,i=n.length;return t(i?(d(n,0,r=i-1,e),n[r]):n),n}function m(n,e){return n&&(n.length&&!function(n){return n&&n===n.window}(n)?s(n,e):e(n)),n}function h(n,e,t){var r=l(e,t);for(var i in n)if(n.hasOwnProperty(i)&&!1===r(n[i],i,n))break}function g(n){return null==n}function y(n){return!g(n)&&"object"==typeof n}function b(n,e){var t=[],r=e||function(n){a(t,n)};return s(n.childNodes,function(n,e){1===n.nodeType&&r(n,1,e)}),t}["prepend","after","before"].forEach(function(t){t in n&&(c[t]=function(n,e){return n[t](e)})}),t||(c.addClass=function(n,e){var t=f(n.className),r=t.slice(0);e.forEach(function(n){-1===r.indexOf(n)&&a(r,n)}),(t=t.join(" "))!==(r=r.join(" "))&&(n.className=r)},c.removeClass=function(n,e){var t=f(n.className),r=t.slice(0);e.forEach(function(n){var e=r.indexOf(n);-1<e&&r.splice(e,1)}),(t=t.join(" "))!==(r=r.join(" "))&&(n.className=r)});var r={for:"htmlFor",class:"className"};["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"].forEach(function(n){r[n.toLowerCase()]=n});var C=document.createElement("div"),E=["Webkit","Moz","ms"],x=C.style;var w={nextElementSibling:"nextSibling",previousElementSibling:"previousSibling"};function N(n,e,t){var r=n.match(u);if(r){var i=document.createElement(r[1]);!function(n,e,t){y(n)&&h(n,e,t)}(e,function(n,e){i.setAttribute(e,n)}),t(i)}else o.test(n)?(C.innerHTML=n,b(C,t)):t(document.createTextNode(n))}function P(n){return"function"==typeof n}var S=Array.isArray;function A(n,e){var t=document.createDocumentFragment(),r=function(n){1===n.nodeType?t.appendChild(n):!i(n)&&function(n){return!g(n)&&function(n){return"number"==typeof n}(n.length)&&!P(n)}(n)?s(n,function(n){t.appendChild(n)}):N(n,e,function(n){t.appendChild(n)})};return S(n)?s(n,r):r(n),t}function D(n,e,t){if(n){var r=A(e);t=c[t],p(n,function(n){return t(n,r.cloneNode(!0))},function(n){return t(n,r)})}return n}function L(n){for(var e=[],t=arguments.length-1;0<t--;)e[t]=arguments[t+1];return D(n,e,"append")}function T(n){return void 0===n}function j(n,e,t){var r=[];return m(n,function(n){t(n,e,function(n){a(r,n)})}),r}var O=/-([a-z])/g;var B={};function M(n,e,t){var r=n.style;if(e=B[e]||(B[e]=function(n){if(n in x)return n;for(var e=n[0].toUpperCase()+n.slice(1),t=E.length;t--;)if((n=E[t]+e)in x)return n}(e)||e),g(t))return r[e];r[e]=t}function V(n,e,t){var r="";return(t=t||function(n){var e=n.ownerDocument.defaultView;return e&&e.opener||(e=window),e.getComputedStyle(n)}(n))&&(r=t.getPropertyValue(e)||t[e]),r}var k=1,H="expando9527",z={};function F(n,e,t){var r=n[H],i=z[r||-1];if(T(t))return i&&i[e];i||(n[H]=r=++k,i=z[r]={}),i[e]=t}function U(n){m(n,function(n){if(1===n.nodeType)if("textContent"in n)n.textContent="";else for(var e;e=n.firstChild;)n.removeChild(e)})}function I(n,r){return m(n,function(n){var e=n.style.display||"",t=F(n,"display");(T(t)&&(F(n,"display",e),t=e),r)?e?"none"===e&&(n.style.display="none"===t?"":t):"none"===V(n,"display")&&(n.style.display="block"):n.style.display="none"}),n}function W(n,e,t){var r=n[e];if(r)t(r);else{for(e=w[e];(n=n[e])&&1!==n.nodeType;);n&&t(n)}}function $(n,e,t){if(e in n)for(;n=n[e];)t(n);else for(e=w[e];(n=n[e])&&1===n.nodeType;)t(n)}function q(n,e,t){return n&&s(n,e,t)}var G=Array.isArray;var J=window.removeEventListener?function(n,e,t){n.removeEventListener(e,t,!1)}:function(n,e,t){n.detachEvent("on"+e,t)};var K=window.addEventListener?function(n,e,t){n.addEventListener(e,t,!1)}:function(n,e,t){n.attachEvent("on"+e,t)};function Q(n,e,t){return T(t)?function(n,e){return(n=v(n))&&n[e]}(n,e):function(n,e,t){return e=r[e]||e,m(n,function(n){n[e]=t}),n}(n,e,t)}return{addClass:function(n,e){var t=f(e),r=c.addClass;return m(n,function(n){r(n,t)}),n},after:function(n){for(var e=[],t=arguments.length-1;0<t--;)e[t]=arguments[t+1];return D(n,e,"after")},append:L,attr:function(n,e,t){return T(t)?function(n,e){return(n=v(n))&&n.getAttribute(e)}(n,e):function(n,e,t){return m(n,function(n){n.setAttribute(e,t)}),n}(n,e,t)},before:function(n){for(var e=[],t=arguments.length-1;0<t--;)e[t]=arguments[t+1];return D(n,e,"before")},children:function(n){return j(n,"",function(n,e,t){b(n,t)})},createElement:function(n,e,t){if(P(e)&&(t=e,e=null),P(t))return N(n,e,t);var r=[];return N(n,e,function(n){a(r,n)}),r},css:function(n,e,t){return e=function(n){return n.replace(O,function(n,e){return e.toUpperCase()})}(e),T(t)?function(n,e){return(n=v(n))?V(n,e):""}(n,e):function(n,e,t){return m(n,function(n){M(n,e,t)}),n}(n,e,t)},data:function(e,r,t){if(y(r))return m(e,function(n){var t=F(n,"data");t||F(e,"data",t={}),h(r,function(n,e){t[e]=n})}),e;if(g(r))return(e=v(e))&&F(e,"data");if(T(t)){var n=F(e,"data");return n&&n[r]}return m(e,function(n){var e=F(n,"data");e||F(n,"data",e={}),e[r]=t}),e},empty:U,hasClass:function(n,e){var t=!1,r=f(e);return m(n,function(n){if(function(n,e){var t=!1,r=f(n.className);return s(e,function(n){if(-1<r.indexOf(n))return!(t=!0)}),t}(n,r))return!(t=!0)}),t},hide:function(n){return I(n)},html:function(n,e){return g(e)?(n=v(n))&&n.innerHTML:(m(n,1===e.nodeType?function(n){U(n),L(n,e)}:function(n){n.innerHTML=String(e)}),n)},next:function(n){return j(n,"nextElementSibling",W)},nextAll:function(n){return j(n,"nextElementSibling",$)},off:function(n,e,i){return m(n,function(t){var r=F(t,"events");F(t,"handle")&&(T(e)?q(r,function(n,e){J(t,e,n),delete r[e]}):q(e.split(" "),function(n){T(i)?(J(t,n,r[n]),delete r[n]):function(n,e){n&&G(n)&&function(n,e){var t=n.indexOf(e);-1<t&&function(n,e){n.splice(e,1)[0]}(n,t)}(n,e)}(r[n],i)}))}),n},on:function(n,e,o){return m(n,function(t){var r=F(t,"events"),i=F(t,"handle");r||F(t,"events",r={}),i||F(t,"handle",i=function(t,r){var n=function(e){if(e.preventDefault||(e.preventDefault=function(){e.returnValue=!1}),e.stopPropagation||(e.stopPropagation=function(){e.cancelBubble=!0}),e.target||(e.target=e.srcElement||document),T(e.defaultPrevented)){var n=e.preventDefault;n=n.bind(e),e.preventDefault=function(){e.defaultPrevented=!0,n()},e.defaultPrevented=!1}e.isDefaultPrevented=function(){return e.defaultPrevented||!1===e.returnValue},q(r[e.type],function(n){return n.call(t,e)});try{delete e.preventDefault,delete e.stopPropagation,delete e.isDefaultPrevented}catch(n){e.preventDefault=null,e.stopPropagation=null,e.isDefaultPrevented=null}};return n.elem=t,n}(t,r)),e.split(" ").forEach(function(n){var e=r[n];e||(K(t,n,i),e=r[n]=[]),e[e.length]=o})}),n},parent:function(n){return j(n,"",function(n,e,t){var r=n.parentNode;r&&t(r)})},prepend:function(n){for(var e=[],t=arguments.length-1;0<t--;)e[t]=arguments[t+1];return D(n,e,"prepend")},prev:function(n){return j(n,"previousElementSibling",W)},prevAll:function(n){return j(n,"previousElementSibling",$)},prop:Q,remove:function(n){return m(n,function(n){var e=n.parentNode;e&&e.removeChild(n)}),n},removeAttr:function(n,e){var t=f(e);return m(n,function(e){t.forEach(function(n){e.removeAttribute(n)})}),n},removeClass:function(n,e){if(1===arguments.length)return Q(n,"className","");var t=f(e),r=c.removeClass;return m(n,function(n){r(n,t)}),n},removeData:function(n){for(var t=[],e=arguments.length-1;0<e--;)t[e]=arguments[e+1];var r=t[0]?function(n){var e=F(n,"data");e&&s(t,function(n){delete e[n]})}:function(){F(n,"data",{})};return m(n,r),n},removeProp:function(n,e){return m(n,function(n){delete n[r[e]||e]}),n},show:function(n){return I(n,!0)},wrap:function(n,e){if(e){e=A(e);var r=c.firstElementChild,i=c.before,t=function(n,e){var t;for(i(n,e),e=n.previousSibling;t=r(e);)e=t;e.appendChild(n)};p(n,function(n){return t(n,e.cloneNode(!0))},function(n){return t(n,e)})}return n}}},"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(n=n||self).celia=e();
/*!
* celia.js v4.0.0
* celia.js v4.0.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v4.0.0
* celia.js v4.0.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v4.0.0
* celia.js v4.0.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v4.0.0
* celia.js v4.0.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v4.0.0
* celia.js v4.0.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v4.0.0
* celia.js v4.0.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v4.0.0
* celia.js v4.0.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v4.0.0
* celia.js v4.0.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v4.0.0
* celia.js v4.0.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v4.0.0
* celia.js v4.0.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v4.0.0
* celia.js v4.0.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v4.0.0
* celia.js v4.0.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

@@ -16,2 +16,3 @@ import array from './array.js';

import isUndefined from './isUndefined.js';
import isWindow from './isWindow.js';
import map from './map.js';

@@ -40,2 +41,3 @@ import number from './number.js';

isUndefined,
isWindow,
map,

@@ -42,0 +44,0 @@ number,

{
"name": "celia",
"version": "4.0.0",
"version": "4.0.1",
"description": "A modern JavaScript utility library delivering modularity, performance, & extras.",

@@ -5,0 +5,0 @@ "main": "./dist/celia.c.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc