kingdot
Version:
A UI Components Library For Vue
1,576 lines (1,397 loc) • 131 kB
JavaScript
module.exports =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ }
/******/ };
/******/
/******/ // define __esModule on exports
/******/ __webpack_require__.r = function(exports) {
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ }
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/
/******/ // create a fake namespace object
/******/ // mode & 1: value is a module id, require it
/******/ // mode & 2: merge all properties of value into the ns
/******/ // mode & 4: return value when already ns object
/******/ // mode & 8|1: behave like require
/******/ __webpack_require__.t = function(value, mode) {
/******/ if(mode & 1) value = __webpack_require__(value);
/******/ if(mode & 8) return value;
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ var ns = Object.create(null);
/******/ __webpack_require__.r(ns);
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ return ns;
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function getDefault() { return module['default']; } :
/******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "/dist/";
/******/
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 233);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
/* globals __VUE_SSR_CONTEXT__ */
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
// This module is a runtime utility for cleaner component module output and will
// be included in the final webpack user bundle.
function normalizeComponent (
scriptExports,
render,
staticRenderFns,
functionalTemplate,
injectStyles,
scopeId,
moduleIdentifier, /* server only */
shadowMode /* vue-cli only */
) {
// Vue.extend constructor export interop
var options = typeof scriptExports === 'function'
? scriptExports.options
: scriptExports
// render functions
if (render) {
options.render = render
options.staticRenderFns = staticRenderFns
options._compiled = true
}
// functional template
if (functionalTemplate) {
options.functional = true
}
// scopedId
if (scopeId) {
options._scopeId = 'data-v-' + scopeId
}
var hook
if (moduleIdentifier) { // server build
hook = function (context) {
// 2.3 injection
context =
context || // cached call
(this.$vnode && this.$vnode.ssrContext) || // stateful
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
// 2.2 with runInNewContext: true
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
context = __VUE_SSR_CONTEXT__
}
// inject component styles
if (injectStyles) {
injectStyles.call(this, context)
}
// register component module identifier for async chunk inferrence
if (context && context._registeredComponents) {
context._registeredComponents.add(moduleIdentifier)
}
}
// used by ssr in case component is cached and beforeCreate
// never gets called
options._ssrRegister = hook
} else if (injectStyles) {
hook = shadowMode
? function () {
injectStyles.call(
this,
(options.functional ? this.parent : this).$root.$options.shadowRoot
)
}
: injectStyles
}
if (hook) {
if (options.functional) {
// for template-only hot-reload because in that case the render fn doesn't
// go through the normalizer
options._injectStyles = hook
// register for functional component in vue file
var originalRender = options.render
options.render = function renderWithStyleInjection (h, context) {
hook.call(context)
return originalRender(h, context)
}
} else {
// inject component registration as beforeCreate hook
var existing = options.beforeCreate
options.beforeCreate = existing
? [].concat(existing, hook)
: [hook]
}
}
return {
exports: scriptExports,
options: options
}
}
/***/ }),
/* 1 */
/***/ (function(module, exports, __webpack_require__) {
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
!function (t, e) {
"object" == ( false ? undefined : _typeof(exports)) && "undefined" != typeof module ? module.exports = e() : true ? !(__WEBPACK_AMD_DEFINE_FACTORY__ = (e),
__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
(__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :
__WEBPACK_AMD_DEFINE_FACTORY__),
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
}(this, function () {
"use strict";
var t = "millisecond",
e = "second",
n = "minute",
r = "hour",
i = "day",
s = "week",
u = "month",
a = "quarter",
o = "year",
f = "date",
h = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d+)?$/,
c = /\[([^\]]+)]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,
d = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_") },
$ = function $(t, e, n) {
var r = String(t);return !r || r.length >= e ? t : "" + Array(e + 1 - r.length).join(n) + t;
},
l = { s: $, z: function z(t) {
var e = -t.utcOffset(),
n = Math.abs(e),
r = Math.floor(n / 60),
i = n % 60;return (e <= 0 ? "+" : "-") + $(r, 2, "0") + ":" + $(i, 2, "0");
}, m: function t(e, n) {
if (e.date() < n.date()) return -t(n, e);var r = 12 * (n.year() - e.year()) + (n.month() - e.month()),
i = e.clone().add(r, u),
s = n - i < 0,
a = e.clone().add(r + (s ? -1 : 1), u);return +(-(r + (n - i) / (s ? i - a : a - i)) || 0);
}, a: function a(t) {
return t < 0 ? Math.ceil(t) || 0 : Math.floor(t);
}, p: function p(h) {
return { M: u, y: o, w: s, d: i, D: f, h: r, m: n, s: e, ms: t, Q: a }[h] || String(h || "").toLowerCase().replace(/s$/, "");
}, u: function u(t) {
return void 0 === t;
} },
y = "en",
M = {};M[y] = d;var m = function m(t) {
return t instanceof S;
},
D = function D(t, e, n) {
var r;if (!t) return y;if ("string" == typeof t) M[t] && (r = t), e && (M[t] = e, r = t);else {
var i = t.name;M[i] = t, r = i;
}return !n && r && (y = r), r || !n && y;
},
v = function v(t, e) {
if (m(t)) return t.clone();var n = "object" == (typeof e === "undefined" ? "undefined" : _typeof(e)) ? e : {};return n.date = t, n.args = arguments, new S(n);
},
g = l;g.l = D, g.i = m, g.w = function (t, e) {
return v(t, { locale: e.$L, utc: e.$u, x: e.$x, $offset: e.$offset });
};var S = function () {
function d(t) {
this.$L = this.$L || D(t.locale, null, !0), this.parse(t);
}var $ = d.prototype;return $.parse = function (t) {
this.$d = function (t) {
var e = t.date,
n = t.utc;if (null === e) return new Date(NaN);if (g.u(e)) return new Date();if (e instanceof Date) return new Date(e);if ("string" == typeof e && !/Z$/i.test(e)) {
var r = e.match(h);if (r) {
var i = r[2] - 1 || 0,
s = (r[7] || "0").substring(0, 3);return n ? new Date(Date.UTC(r[1], i, r[3] || 1, r[4] || 0, r[5] || 0, r[6] || 0, s)) : new Date(r[1], i, r[3] || 1, r[4] || 0, r[5] || 0, r[6] || 0, s);
}
}return new Date(e);
}(t), this.$x = t.x || {}, this.init();
}, $.init = function () {
var t = this.$d;this.$y = t.getFullYear(), this.$M = t.getMonth(), this.$D = t.getDate(), this.$W = t.getDay(), this.$H = t.getHours(), this.$m = t.getMinutes(), this.$s = t.getSeconds(), this.$ms = t.getMilliseconds();
}, $.$utils = function () {
return g;
}, $.isValid = function () {
return !("Invalid Date" === this.$d.toString());
}, $.isSame = function (t, e) {
var n = v(t);return this.startOf(e) <= n && n <= this.endOf(e);
}, $.isAfter = function (t, e) {
return v(t) < this.startOf(e);
}, $.isBefore = function (t, e) {
return this.endOf(e) < v(t);
}, $.$g = function (t, e, n) {
return g.u(t) ? this[e] : this.set(n, t);
}, $.unix = function () {
return Math.floor(this.valueOf() / 1e3);
}, $.valueOf = function () {
return this.$d.getTime();
}, $.startOf = function (t, a) {
var h = this,
c = !!g.u(a) || a,
d = g.p(t),
$ = function $(t, e) {
var n = g.w(h.$u ? Date.UTC(h.$y, e, t) : new Date(h.$y, e, t), h);return c ? n : n.endOf(i);
},
l = function l(t, e) {
return g.w(h.toDate()[t].apply(h.toDate("s"), (c ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e)), h);
},
y = this.$W,
M = this.$M,
m = this.$D,
D = "set" + (this.$u ? "UTC" : "");switch (d) {case o:
return c ? $(1, 0) : $(31, 11);case u:
return c ? $(1, M) : $(0, M + 1);case s:
var v = this.$locale().weekStart || 0,
S = (y < v ? y + 7 : y) - v;return $(c ? m - S : m + (6 - S), M);case i:case f:
return l(D + "Hours", 0);case r:
return l(D + "Minutes", 1);case n:
return l(D + "Seconds", 2);case e:
return l(D + "Milliseconds", 3);default:
return this.clone();}
}, $.endOf = function (t) {
return this.startOf(t, !1);
}, $.$set = function (s, a) {
var h,
c = g.p(s),
d = "set" + (this.$u ? "UTC" : ""),
$ = (h = {}, h[i] = d + "Date", h[f] = d + "Date", h[u] = d + "Month", h[o] = d + "FullYear", h[r] = d + "Hours", h[n] = d + "Minutes", h[e] = d + "Seconds", h[t] = d + "Milliseconds", h)[c],
l = c === i ? this.$D + (a - this.$W) : a;if (c === u || c === o) {
var y = this.clone().set(f, 1);y.$d[$](l), y.init(), this.$d = y.set(f, Math.min(this.$D, y.daysInMonth())).$d;
} else $ && this.$d[$](l);return this.init(), this;
}, $.set = function (t, e) {
return this.clone().$set(t, e);
}, $.get = function (t) {
return this[g.p(t)]();
}, $.add = function (t, a) {
var f,
h = this;t = Number(t);var c = g.p(a),
d = function d(e) {
var n = v(h);return g.w(n.date(n.date() + Math.round(e * t)), h);
};if (c === u) return this.set(u, this.$M + t);if (c === o) return this.set(o, this.$y + t);if (c === i) return d(1);if (c === s) return d(7);var $ = (f = {}, f[n] = 6e4, f[r] = 36e5, f[e] = 1e3, f)[c] || 1,
l = this.$d.getTime() + t * $;return g.w(l, this);
}, $.subtract = function (t, e) {
return this.add(-1 * t, e);
}, $.format = function (t) {
var e = this;if (!this.isValid()) return "Invalid Date";var n = t || "YYYY-MM-DDTHH:mm:ssZ",
r = g.z(this),
i = this.$locale(),
s = this.$H,
u = this.$m,
a = this.$M,
o = i.weekdays,
f = i.months,
h = function h(t, r, i, s) {
return t && (t[r] || t(e, n)) || i[r].substr(0, s);
},
d = function d(t) {
return g.s(s % 12 || 12, t, "0");
},
$ = i.meridiem || function (t, e, n) {
var r = t < 12 ? "AM" : "PM";return n ? r.toLowerCase() : r;
},
l = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: a + 1, MM: g.s(a + 1, 2, "0"), MMM: h(i.monthsShort, a, f, 3), MMMM: h(f, a), D: this.$D, DD: g.s(this.$D, 2, "0"), d: String(this.$W), dd: h(i.weekdaysMin, this.$W, o, 2), ddd: h(i.weekdaysShort, this.$W, o, 3), dddd: o[this.$W], H: String(s), HH: g.s(s, 2, "0"), h: d(1), hh: d(2), a: $(s, u, !0), A: $(s, u, !1), m: String(u), mm: g.s(u, 2, "0"), s: String(this.$s), ss: g.s(this.$s, 2, "0"), SSS: g.s(this.$ms, 3, "0"), Z: r };return n.replace(c, function (t, e) {
return e || l[t] || r.replace(":", "");
});
}, $.utcOffset = function () {
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
}, $.diff = function (t, f, h) {
var c,
d = g.p(f),
$ = v(t),
l = 6e4 * ($.utcOffset() - this.utcOffset()),
y = this - $,
M = g.m(this, $);return M = (c = {}, c[o] = M / 12, c[u] = M, c[a] = M / 3, c[s] = (y - l) / 6048e5, c[i] = (y - l) / 864e5, c[r] = y / 36e5, c[n] = y / 6e4, c[e] = y / 1e3, c)[d] || y, h ? M : g.a(M);
}, $.daysInMonth = function () {
return this.endOf(u).$D;
}, $.$locale = function () {
return M[this.$L];
}, $.locale = function (t, e) {
if (!t) return this.$L;var n = this.clone(),
r = D(t, e, !0);return r && (n.$L = r), n;
}, $.clone = function () {
return g.w(this.$d, this);
}, $.toDate = function () {
return new Date(this.valueOf());
}, $.toJSON = function () {
return this.isValid() ? this.toISOString() : null;
}, $.toISOString = function () {
return this.$d.toISOString();
}, $.toString = function () {
return this.$d.toUTCString();
}, d;
}(),
p = S.prototype;return v.prototype = p, [["$ms", t], ["$s", e], ["$m", n], ["$H", r], ["$W", i], ["$M", u], ["$y", o], ["$D", f]].forEach(function (t) {
p[t[1]] = function (e) {
return this.$g(e, t[0], t[1]);
};
}), v.extend = function (t, e) {
return t(e, S, v), v;
}, v.locale = D, v.isDayjs = m, v.unix = function (t) {
return v(1e3 * t);
}, v.en = M[y], v.Ls = M, v;
});
/***/ }),
/* 2 */,
/* 3 */,
/* 4 */,
/* 5 */,
/* 6 */,
/* 7 */,
/* 8 */,
/* 9 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return strPad; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return parseTime; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return stringTime; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getDateString; });
/* unused harmony export getTimeString */
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
function strPad(str, length, pad) {
str = str.toString();
pad = pad === undefined ? '0' : pad;
var l = str.length;
if (l < length) {
str = new Array(length - l + 1).join(pad) + str;
}
return str;
}
// 可接受 数组 或 时间字符串 "01:00:00" 输出以秒为单位的时间 number 值
function parseTime(time) {
var h = 0;
var m = 0;
var s = 0;
if (typeof time === 'string') {
var _time$split$map = time.split(':').map(function (i) {
return Number(i);
});
var _time$split$map2 = _slicedToArray(_time$split$map, 3);
var _time$split$map2$ = _time$split$map2[0];
h = _time$split$map2$ === undefined ? 0 : _time$split$map2$;
var _time$split$map2$2 = _time$split$map2[1];
m = _time$split$map2$2 === undefined ? 0 : _time$split$map2$2;
var _time$split$map2$3 = _time$split$map2[2];
s = _time$split$map2$3 === undefined ? 0 : _time$split$map2$3;
} else if (Array.isArray(time)) {
var _time$map = time.map(function (i) {
return Number(i);
});
var _time$map2 = _slicedToArray(_time$map, 3);
var _time$map2$ = _time$map2[0];
h = _time$map2$ === undefined ? 0 : _time$map2$;
var _time$map2$2 = _time$map2[1];
m = _time$map2$2 === undefined ? 0 : _time$map2$2;
var _time$map2$3 = _time$map2[2];
s = _time$map2$3 === undefined ? 0 : _time$map2$3;
}
return (h * 60 + m) * 60 + s;
}
// 可接受 时间戳, 不规整时间字符串 "1:1:00", 输出规整时间字符串"01:01:00"
function stringTime(time) {
var accuracy = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'second';
var h = 0;
var m = 0;
var s = 0;
if (typeof time === 'number') {
h = Math.floor(time / 3600);
m = Math.floor(time % 3600 / 60);
s = time % 60;
} else if (typeof time === 'string') {
var _time$split$map3 = time.split(':').map(function (i) {
return Number(i);
});
var _time$split$map4 = _slicedToArray(_time$split$map3, 3);
var _time$split$map4$ = _time$split$map4[0];
h = _time$split$map4$ === undefined ? 0 : _time$split$map4$;
var _time$split$map4$2 = _time$split$map4[1];
m = _time$split$map4$2 === undefined ? 0 : _time$split$map4$2;
var _time$split$map4$3 = _time$split$map4[2];
s = _time$split$map4$3 === undefined ? 0 : _time$split$map4$3;
} else {
return new Error('stringTime 传入参数格式错误. ');
}
if (accuracy === 'minute') {
return strPad(h, 2) + ':' + strPad(m, 2);
} else {
return strPad(h, 2) + ':' + strPad(m, 2) + ':' + strPad(s, 2);
}
}
function getDateString(date, type) {
var year = '' + date.getFullYear();
if (type === 'year') {
return year;
}
var month = year + '-' + strPad(date.getMonth() + 1, 2);
if (type === 'month') {
return month;
}
var _date = month + '-' + strPad(date.getDate(), 2);
if (type !== 'datetime') {
return _date;
}
return _date + ' ' + getTimeString(date);
}
function getTimeString(date) {
return [strPad(date.getHours(), 2), strPad(date.getMinutes(), 2), strPad(date.getSeconds(), 2)].join(':');
}
/***/ }),
/* 10 */,
/* 11 */,
/* 12 */,
/* 13 */
/***/ (function(module, exports, __webpack_require__) {
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var freeGlobal = __webpack_require__(67);
/** Detect free variable `self`. */
var freeSelf = (typeof self === 'undefined' ? 'undefined' : _typeof(self)) == 'object' && self && self.Object === Object && self;
/** Used as a reference to the global object. */
var root = freeGlobal || freeSelf || Function('return this')();
module.exports = root;
/***/ }),
/* 14 */,
/* 15 */,
/* 16 */,
/* 17 */
/***/ (function(module, exports, __webpack_require__) {
var baseIsNative = __webpack_require__(111),
getValue = __webpack_require__(117);
/**
* Gets the native function at `key` of `object`.
*
* @private
* @param {Object} object The object to query.
* @param {string} key The key of the method to get.
* @returns {*} Returns the function if it's native, else `undefined`.
*/
function getNative(object, key) {
var value = getValue(object, key);
return baseIsNative(value) ? value : undefined;
}
module.exports = getNative;
/***/ }),
/* 18 */,
/* 19 */,
/* 20 */,
/* 21 */,
/* 22 */,
/* 23 */,
/* 24 */,
/* 25 */,
/* 26 */,
/* 27 */,
/* 28 */
/***/ (function(module, exports, __webpack_require__) {
var listCacheClear = __webpack_require__(101),
listCacheDelete = __webpack_require__(102),
listCacheGet = __webpack_require__(103),
listCacheHas = __webpack_require__(104),
listCacheSet = __webpack_require__(105);
/**
* Creates an list cache object.
*
* @private
* @constructor
* @param {Array} [entries] The key-value pairs to cache.
*/
function ListCache(entries) {
var index = -1,
length = entries == null ? 0 : entries.length;
this.clear();
while (++index < length) {
var entry = entries[index];
this.set(entry[0], entry[1]);
}
}
// Add methods to `ListCache`.
ListCache.prototype.clear = listCacheClear;
ListCache.prototype['delete'] = listCacheDelete;
ListCache.prototype.get = listCacheGet;
ListCache.prototype.has = listCacheHas;
ListCache.prototype.set = listCacheSet;
module.exports = ListCache;
/***/ }),
/* 29 */
/***/ (function(module, exports, __webpack_require__) {
var eq = __webpack_require__(65);
/**
* Gets the index at which the `key` is found in `array` of key-value pairs.
*
* @private
* @param {Array} array The array to inspect.
* @param {*} key The key to search for.
* @returns {number} Returns the index of the matched value, else `-1`.
*/
function assocIndexOf(array, key) {
var length = array.length;
while (length--) {
if (eq(array[length][0], key)) {
return length;
}
}
return -1;
}
module.exports = assocIndexOf;
/***/ }),
/* 30 */
/***/ (function(module, exports, __webpack_require__) {
var _Symbol = __webpack_require__(47),
getRawTag = __webpack_require__(113),
objectToString = __webpack_require__(114);
/** `Object#toString` result references. */
var nullTag = '[object Null]',
undefinedTag = '[object Undefined]';
/** Built-in value references. */
var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
/**
* The base implementation of `getTag` without fallbacks for buggy environments.
*
* @private
* @param {*} value The value to query.
* @returns {string} Returns the `toStringTag`.
*/
function baseGetTag(value) {
if (value == null) {
return value === undefined ? undefinedTag : nullTag;
}
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
}
module.exports = baseGetTag;
/***/ }),
/* 31 */
/***/ (function(module, exports, __webpack_require__) {
var getNative = __webpack_require__(17);
/* Built-in method references that are verified to be native. */
var nativeCreate = getNative(Object, 'create');
module.exports = nativeCreate;
/***/ }),
/* 32 */
/***/ (function(module, exports, __webpack_require__) {
var isKeyable = __webpack_require__(126);
/**
* Gets the data for `map`.
*
* @private
* @param {Object} map The map to query.
* @param {string} key The reference key.
* @returns {*} Returns the map data.
*/
function getMapData(map, key) {
var data = map.__data__;
return isKeyable(key) ? data[typeof key == 'string' ? 'string' : 'hash'] : data.map;
}
module.exports = getMapData;
/***/ }),
/* 33 */
/***/ (function(module, exports) {
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
/**
* Checks if `value` is object-like. A value is object-like if it's not `null`
* and has a `typeof` result of "object".
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
* @example
*
* _.isObjectLike({});
* // => true
*
* _.isObjectLike([1, 2, 3]);
* // => true
*
* _.isObjectLike(_.noop);
* // => false
*
* _.isObjectLike(null);
* // => false
*/
function isObjectLike(value) {
return value != null && (typeof value === 'undefined' ? 'undefined' : _typeof(value)) == 'object';
}
module.exports = isObjectLike;
/***/ }),
/* 34 */,
/* 35 */,
/* 36 */,
/* 37 */,
/* 38 */,
/* 39 */,
/* 40 */,
/* 41 */,
/* 42 */,
/* 43 */,
/* 44 */,
/* 45 */,
/* 46 */
/***/ (function(module, exports, __webpack_require__) {
var getNative = __webpack_require__(17),
root = __webpack_require__(13);
/* Built-in method references that are verified to be native. */
var Map = getNative(root, 'Map');
module.exports = Map;
/***/ }),
/* 47 */
/***/ (function(module, exports, __webpack_require__) {
var root = __webpack_require__(13);
/** Built-in value references. */
var _Symbol = root.Symbol;
module.exports = _Symbol;
/***/ }),
/* 48 */
/***/ (function(module, exports) {
/**
* Checks if `value` is classified as an `Array` object.
*
* @static
* @memberOf _
* @since 0.1.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is an array, else `false`.
* @example
*
* _.isArray([1, 2, 3]);
* // => true
*
* _.isArray(document.body.children);
* // => false
*
* _.isArray('abc');
* // => false
*
* _.isArray(_.noop);
* // => false
*/
var isArray = Array.isArray;
module.exports = isArray;
/***/ }),
/* 49 */,
/* 50 */,
/* 51 */,
/* 52 */,
/* 53 */,
/* 54 */,
/* 55 */,
/* 56 */,
/* 57 */,
/* 58 */,
/* 59 */,
/* 60 */,
/* 61 */,
/* 62 */,
/* 63 */,
/* 64 */,
/* 65 */
/***/ (function(module, exports) {
/**
* Performs a
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
* comparison between two values to determine if they are equivalent.
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to compare.
* @param {*} other The other value to compare.
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
* @example
*
* var object = { 'a': 1 };
* var other = { 'a': 1 };
*
* _.eq(object, object);
* // => true
*
* _.eq(object, other);
* // => false
*
* _.eq('a', 'a');
* // => true
*
* _.eq('a', Object('a'));
* // => false
*
* _.eq(NaN, NaN);
* // => true
*/
function eq(value, other) {
return value === other || value !== value && other !== other;
}
module.exports = eq;
/***/ }),
/* 66 */
/***/ (function(module, exports, __webpack_require__) {
var baseGetTag = __webpack_require__(30),
isObject = __webpack_require__(68);
/** `Object#toString` result references. */
var asyncTag = '[object AsyncFunction]',
funcTag = '[object Function]',
genTag = '[object GeneratorFunction]',
proxyTag = '[object Proxy]';
/**
* Checks if `value` is classified as a `Function` object.
*
* @static
* @memberOf _
* @since 0.1.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a function, else `false`.
* @example
*
* _.isFunction(_);
* // => true
*
* _.isFunction(/abc/);
* // => false
*/
function isFunction(value) {
if (!isObject(value)) {
return false;
}
// The use of `Object#toString` avoids issues with the `typeof` operator
// in Safari 9 which returns 'object' for typed arrays and other constructors.
var tag = baseGetTag(value);
return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
}
module.exports = isFunction;
/***/ }),
/* 67 */
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(global) {var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
/** Detect free variable `global` from Node.js. */
var freeGlobal = (typeof global === 'undefined' ? 'undefined' : _typeof(global)) == 'object' && global && global.Object === Object && global;
module.exports = freeGlobal;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(112)))
/***/ }),
/* 68 */
/***/ (function(module, exports) {
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
/**
* Checks if `value` is the
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
*
* @static
* @memberOf _
* @since 0.1.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
* @example
*
* _.isObject({});
* // => true
*
* _.isObject([1, 2, 3]);
* // => true
*
* _.isObject(_.noop);
* // => true
*
* _.isObject(null);
* // => false
*/
function isObject(value) {
var type = typeof value === 'undefined' ? 'undefined' : _typeof(value);
return value != null && (type == 'object' || type == 'function');
}
module.exports = isObject;
/***/ }),
/* 69 */
/***/ (function(module, exports) {
/** Used for built-in method references. */
var funcProto = Function.prototype;
/** Used to resolve the decompiled source of functions. */
var funcToString = funcProto.toString;
/**
* Converts `func` to its source code.
*
* @private
* @param {Function} func The function to convert.
* @returns {string} Returns the source code.
*/
function toSource(func) {
if (func != null) {
try {
return funcToString.call(func);
} catch (e) {}
try {
return func + '';
} catch (e) {}
}
return '';
}
module.exports = toSource;
/***/ }),
/* 70 */
/***/ (function(module, exports, __webpack_require__) {
var mapCacheClear = __webpack_require__(118),
mapCacheDelete = __webpack_require__(125),
mapCacheGet = __webpack_require__(127),
mapCacheHas = __webpack_require__(128),
mapCacheSet = __webpack_require__(129);
/**
* Creates a map cache object to store key-value pairs.
*
* @private
* @constructor
* @param {Array} [entries] The key-value pairs to cache.
*/
function MapCache(entries) {
var index = -1,
length = entries == null ? 0 : entries.length;
this.clear();
while (++index < length) {
var entry = entries[index];
this.set(entry[0], entry[1]);
}
}
// Add methods to `MapCache`.
MapCache.prototype.clear = mapCacheClear;
MapCache.prototype['delete'] = mapCacheDelete;
MapCache.prototype.get = mapCacheGet;
MapCache.prototype.has = mapCacheHas;
MapCache.prototype.set = mapCacheSet;
module.exports = MapCache;
/***/ }),
/* 71 */
/***/ (function(module, exports, __webpack_require__) {
var SetCache = __webpack_require__(130),
arraySome = __webpack_require__(133),
cacheHas = __webpack_require__(134);
/** Used to compose bitmasks for value comparisons. */
var COMPARE_PARTIAL_FLAG = 1,
COMPARE_UNORDERED_FLAG = 2;
/**
* A specialized version of `baseIsEqualDeep` for arrays with support for
* partial deep comparisons.
*
* @private
* @param {Array} array The array to compare.
* @param {Array} other The other array to compare.
* @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
* @param {Function} customizer The function to customize comparisons.
* @param {Function} equalFunc The function to determine equivalents of values.
* @param {Object} stack Tracks traversed `array` and `other` objects.
* @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
*/
function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
arrLength = array.length,
othLength = other.length;
if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
return false;
}
// Assume cyclic values are equal.
var stacked = stack.get(array);
if (stacked && stack.get(other)) {
return stacked == other;
}
var index = -1,
result = true,
seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache() : undefined;
stack.set(array, other);
stack.set(other, array);
// Ignore non-index properties.
while (++index < arrLength) {
var arrValue = array[index],
othValue = other[index];
if (customizer) {
var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack);
}
if (compared !== undefined) {
if (compared) {
continue;
}
result = false;
break;
}
// Recursively compare arrays (susceptible to call stack limits).
if (seen) {
if (!arraySome(other, function (othValue, othIndex) {
if (!cacheHas(seen, othIndex) && (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
return seen.push(othIndex);
}
})) {
result = false;
break;
}
} else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
result = false;
break;
}
}
stack['delete'](array);
stack['delete'](other);
return result;
}
module.exports = equalArrays;
/***/ }),
/* 72 */
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(module) {var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var root = __webpack_require__(13),
stubFalse = __webpack_require__(151);
/** Detect free variable `exports`. */
var freeExports = ( false ? undefined : _typeof(exports)) == 'object' && exports && !exports.nodeType && exports;
/** Detect free variable `module`. */
var freeModule = freeExports && ( false ? undefined : _typeof(module)) == 'object' && module && !module.nodeType && module;
/** Detect the popular CommonJS extension `module.exports`. */
var moduleExports = freeModule && freeModule.exports === freeExports;
/** Built-in value references. */
var Buffer = moduleExports ? root.Buffer : undefined;
/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
/**
* Checks if `value` is a buffer.
*
* @static
* @memberOf _
* @since 4.3.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
* @example
*
* _.isBuffer(new Buffer(2));
* // => true
*
* _.isBuffer(new Uint8Array(2));
* // => false
*/
var isBuffer = nativeIsBuffer || stubFalse;
module.exports = isBuffer;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(73)(module)))
/***/ }),
/* 73 */
/***/ (function(module, exports) {
module.exports = function (module) {
if (!module.webpackPolyfill) {
module.deprecate = function () {};
module.paths = [];
// module.parent = undefined by default
if (!module.children) module.children = [];
Object.defineProperty(module, "loaded", {
enumerable: true,
get: function get() {
return module.l;
}
});
Object.defineProperty(module, "id", {
enumerable: true,
get: function get() {
return module.i;
}
});
module.webpackPolyfill = 1;
}
return module;
};
/***/ }),
/* 74 */
/***/ (function(module, exports, __webpack_require__) {
var baseIsTypedArray = __webpack_require__(153),
baseUnary = __webpack_require__(154),
nodeUtil = __webpack_require__(155);
/* Node.js helper references. */
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
/**
* Checks if `value` is classified as a typed array.
*
* @static
* @memberOf _
* @since 3.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
* @example
*
* _.isTypedArray(new Uint8Array);
* // => true
*
* _.isTypedArray([]);
* // => false
*/
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
module.exports = isTypedArray;
/***/ }),
/* 75 */
/***/ (function(module, exports) {
/** Used as references for various `Number` constants. */
var MAX_SAFE_INTEGER = 9007199254740991;
/**
* Checks if `value` is a valid array-like length.
*
* **Note:** This method is loosely based on
* [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
* @example
*
* _.isLength(3);
* // => true
*
* _.isLength(Number.MIN_VALUE);
* // => false
*
* _.isLength(Infinity);
* // => false
*
* _.isLength('3');
* // => false
*/
function isLength(value) {
return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
}
module.exports = isLength;
/***/ }),
/* 76 */,
/* 77 */,
/* 78 */,
/* 79 */,
/* 80 */,
/* 81 */,
/* 82 */,
/* 83 */,
/* 84 */,
/* 85 */,
/* 86 */,
/* 87 */
/***/ (function(module, exports, __webpack_require__) {
var baseIsEqual = __webpack_require__(98);
/**
* Performs a deep comparison between two values to determine if they are
* equivalent.
*
* **Note:** This method supports comparing arrays, array buffers, booleans,
* date objects, error objects, maps, numbers, `Object` objects, regexes,
* sets, strings, symbols, and typed arrays. `Object` objects are compared
* by their own, not inherited, enumerable properties. Functions and DOM
* nodes are compared by strict equality, i.e. `===`.
*
* @static
* @memberOf _
* @since 0.1.0
* @category Lang
* @param {*} value The value to compare.
* @param {*} other The other value to compare.
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
* @example
*
* var object = { 'a': 1 };
* var other = { 'a': 1 };
*
* _.isEqual(object, other);
* // => true
*
* object === other;
* // => false
*/
function isEqual(value, other) {
return baseIsEqual(value, other);
}
module.exports = isEqual;
/***/ }),
/* 88 */,
/* 89 */,
/* 90 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./components/TimePicker/Time.vue?vue&type=template&id=732a2d67&
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"kd-time-panel"},_vm._l((_vm.data),function(item,index){return _c('div',{key:index,staticClass:"column"},[_c('kd-scroll-select',{ref:"ScrollSelect",refInFor:true,attrs:{"data":item,"disable":_vm.getScrollDisable(index),"disabled":_vm.scrollDisabled[index]},model:{value:(_vm.timeValue[index]),callback:function ($$v) {_vm.$set(_vm.timeValue, index, $$v)},expression:"timeValue[index]"}})],1)}),0)}
var staticRenderFns = []
// CONCATENATED MODULE: ./components/TimePicker/Time.vue?vue&type=template&id=732a2d67&
// EXTERNAL MODULE: ./components/TimePicker/utils.js
var utils = __webpack_require__(9);
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./components/TimePicker/Time.vue?vue&type=script&lang=js&
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ var Timevue_type_script_lang_js_ = ({
props: {
value: {
type: [String, Array]
},
min: {
type: [String, Date]
},
max: {
type: [String, Date]
},
step: {
type: [String, Number]
},
date: { // date-time 模式, 需要传入 date 信息
type: [String, Date]
},
disabled: { // 管理scrollSelect组件禁用状态
type: Array,
default: function _default() {
return [];
}
},
disabledList: { // 指定禁用的时间. 可以是列表, 也可以是函数
type: [Array, Function],
default: function _default() {
return [];
}
},
accuracy: {
type: String,
default: function _default() {
return 'secend';
}
}
// count: {
// type: Number
// }
},
data: function data() {
return {
timeValue: [], // 设定 time 面板被框选的默认值
disabledItems: this.disabled || [false, false, false],
baseDate: '',
maxTime: this.max, // 完整的时间日期字符串, 或者 "00:00:00"
minTime: this.min
};
},
computed: {
data: function data() {
return Array.apply(null, { length: this.accuracy === 'minute' ? 2 : 3 }).map(function (item, index) {
var length = index === 0 ? 24 : 60;
return Array(length).fill(0).map(function (x, i) {
return Object(utils["c" /* strPad */])(i, 2);
});
});
},
// stepData() {
// if (!this.step) return [];
// const step = this.parseTime(this.step || '00:30:00');
// const max = this.parseTime(this.maxTime || '23:59:59');
// const min = this.parseTime(this.minTime || '00:00:00');
// const data = [];
// for (let i = min; i <= max; i += step) {
// data.push(this.stringTime(i));
// }
// return data;
// },
scrollDisabled: function scrollDisabled() {
return this.disabledItems;
}
},
watch: {
value: {
immediate: true,
handler: function handler(v) {
// if (!v) {
// this.timeValue = [];
// return;
// }
if (Array.isArray(v)) {
this.timeValue = v; // 给 innerValue 赋值
} else if (!!v && typeof v === 'string') {
this.timeValue = (v || '00:00:00').split(':');
}
}
},
disabled: {
immediate: true,
handler: function handler(v) {
this.disabledItems = v || [false, false, false];
}
},
date: {
immediate: true,
handler: function handler(v) {
this.baseDate = Object(utils["a" /* getDateString */])(v ? new Date(v) : new Date(), 'date');
}
},
max: {
immediate: true,
handler: function handler(v) {
this.maxTime = v;
}
},
min: { // 00:00:00
immediate: true,
handler: function handler(v) {
this.minTime = v;
}
},
timeValue: function timeValue(value, oldValue) {
// timeValue 是数组, oldValue 和value 一样
// oldValue = oldValue && oldValue.join(':');
value = value.join(':');
value = Object(utils["d" /* stringTime */])(value, this.accuracy);
if (this.value !== value) {
// 防止多次change
this.$emit('input', value); // 传递给上层的 触发 value 变化. 上层 value 是字符串
this.$emit('change', value);
}
}
},
created: function created() {},
methods: {
// parseTime(time) {
// let [h = 0, m = 0, s = 0] = time.split(':').map(i => +i);
// return (h * 60 + m) * 60 + s;
// },
// stringTime(time) {
// let h = Math.floor(time / 3600);
// let m = Math.floor((time % 3600) / 60);
// let s = time % 60;
// return `${strPad(h, 2)}:${strPad(m, 2)}:${strPad(s, 2)}`;
// },
getScrollDisable: function getScrollDisable(index) {
var _this = this;
return function (value) {
var time = [].concat(_toConsumableArray(_this.timeValue)).map(function (item, i) {
if (_this.$refs.ScrollSelect && _this.$refs.ScrollSelect[i]) {
return _this.$refs.ScrollSelect[i].currentValue;
}
return item;
});
// this.minTime 09:00:00, 或者 mintime 是完整的时间字符串, 并且给date
// baseDate: 给了 this.date , 一致. 没给this.date 今天
var min = _this.date ? _this.minTime : _this.baseDate + ' ' + _this.minTime;
var max = _this.date ? _this.maxTime : _this.baseDate + ' ' + _this.maxTime;
var disable = false;
time[index] = value;
var timeStr = time.join(':');
time = new Date(_this.baseDate + ' ' + timeStr);
if (_this.minTime && _this.maxTime) {
disable = time < new Date('' + min) || time > new Date('' + max);
} else if (_this.minTime) {
disable = time < new Date('' + min);
} else if (_this.maxTime) {
disable = time > new Date('' + max);
}
if (_this.disabledList) {
if (Array.isArray(_this.disabledList)) {
disable = disable || _this.disabledList.includes(timeStr); // string 格式的时间
}
if (typeof _this.disabledList === 'function') {
disable = disable || _this.disabledList(timeStr);
}
}
return disable;
};
}
}
});
// CONCATENATED MODULE: ./components/TimePicker/Time.vue?vue&type=script&lang=js&
/* harmony default export */ var TimePicker_Timevue_type_script_lang_js_ = (Timevue_type_script_lang_js_);
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(0);
// CONCATENATED MODULE: ./components/TimePicker/Time.vue
/* normalize component */
var component = Object(componentNormalizer["a" /* default */])(
TimePicker_Timevue_type_script_lang_js_,
render,
staticRenderFns,
false,
null,
null,
null
)
/* harmony default export */ var Time = __webpack_exports__["a"] = (component.exports);
/***/ }),
/* 91 */,
/* 92 */,
/* 93 */,
/* 94 */,
/* 95 */,
/* 96 */,
/* 97 */,
/* 98 */
/***/ (function(module, exports, __webpack_require__) {
var baseIsEqualDeep = __webpack_require__(99),
isObjectLike = __webpack_require__(33);
/**
* The base implementation of `_.isEqual` which supports partial comparisons
* and tracks traversed objects.
*
* @private
* @param {*} value The value to compare.
* @param {*} other The other value to compare.
* @param {boolean} bitmask The bitmask flags.
* 1 - Unordered comparison
* 2 - Partial comparison
* @param {Function} [customizer] The function to customize comparisons.
* @param {Object} [stack] Tracks traversed `value` and `other` objects.
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
*/
function baseIsEqual(value, other, bitmask, customizer, stack) {
if (value === other) {