x
'; - return div.childNodes[1]; -} - -function notIgnored(ignored) { - if (ignored.length < 1) { - return function () { - return true; - }; - } - - return function (selector) { - return ignored.indexOf(selector) === -1; - }; -} - -function hasLength(input) { - return input.length > 0; -} - -function trim(str) { - return str.replace(/^\s+|\s+$/g, ''); -} - -function flatten(input) { - return [].concat.apply([], input); -} - -function isObject(input) { - return Object.prototype.toString.call(input) === '[object Object]'; -} - -function isArray(input) { - return Object.prototype.toString.call(input) === '[object Array]'; -} - -/***/ }), - -/***/ "./node_modules/fuse.js/dist/fuse.basic.esm.min.js": -/*!*********************************************************!*\ - !*** ./node_modules/fuse.js/dist/fuse.basic.esm.min.js ***! - \*********************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } - -function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } - -function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } - -function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } - -function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - -function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * Fuse.js v6.3.1 - Lightweight fuzzy-search (http://fusejs.io) - * - * Copyright (c) 2020 Kiro Risk (http://kiro.me) - * All Rights Reserved. Apache Software License 2.0 - * - * http://www.apache.org/licenses/LICENSE-2.0 - */ -function t(t) { - return Array.isArray ? Array.isArray(t) : "[object Array]" === Object.prototype.toString.call(t); -} - -function e(t) { - return "string" == typeof t; -} - -function n(t) { - return "number" == typeof t; -} - -function s(t) { - return null != t; -} - -function i(t) { - return !t.trim().length; -} - -var r = Object.prototype.hasOwnProperty; - -var o = -/*#__PURE__*/ -function () { - function o(t) { - var _this = this; - - _classCallCheck(this, o); - - this._keys = [], this._keyMap = {}; - var e = 0; - t.forEach(function (t) { - var n = c(t); - e += n.weight, _this._keys.push(n), _this._keyMap[n.id] = n, e += n.weight; - }), this._keys.forEach(function (t) { - t.weight /= e; - }); - } - - _createClass(o, [{ - key: "get", - value: function get(t) { - return this._keyMap[t]; - } - }, { - key: "keys", - value: function keys() { - return this._keys; - } - }, { - key: "toJSON", - value: function toJSON() { - return JSON.stringify(this._keys); - } - }]); - - return o; -}(); - -function c(n) { - var s = null, - i = null, - o = null, - c = 1; - if (e(n) || t(n)) o = n, s = h(n), i = a(n);else { - if (!r.call(n, "name")) throw new Error(function (t) { - return "Missing ".concat(t, " property in key"); - }("name")); - var _t = n.name; - if (o = _t, r.call(n, "weight") && (c = n.weight, c <= 0)) throw new Error(function (t) { - return "Property 'weight' in key '".concat(t, "' must be a positive integer"); - }(_t)); - s = h(_t), i = a(_t); - } - return { - path: s, - id: i, - weight: c, - src: o - }; -} - -function h(e) { - return t(e) ? e : e.split("."); -} - -function a(e) { - return t(e) ? e.join(".") : e; -} - -var l = _objectSpread({ - isCaseSensitive: !1, - includeScore: !1, - keys: [], - shouldSort: !0, - sortFn: function sortFn(t, e) { - return t.score === e.score ? t.idx < e.idx ? -1 : 1 : t.score < e.score ? -1 : 1; - }, - includeMatches: !1, - findAllMatches: !1, - minMatchCharLength: 1, - location: 0, - threshold: .6, - distance: 100 -}, { - useExtendedSearch: !1, - getFn: function getFn(i, r) { - var o = [], - c = !1; - - var h = function h(i, r, a) { - if (r[a]) { - var _l = i[r[a]]; - if (!s(_l)) return; - if (a === r.length - 1 && (e(_l) || n(_l))) o.push(function (t) { - return null == t ? "" : function (t) { - if ("string" == typeof t) return t; - var e = t + ""; - return "0" == e && 1 / t == -1 / 0 ? "-0" : e; - }(t); - }(_l));else if (t(_l)) { - c = !0; - - for (var _t2 = 0, _e = _l.length; _t2 < _e; _t2 += 1) { - h(_l[_t2], r, a + 1); - } - } else r.length && h(_l, r, a + 1); - } else o.push(i); - }; - - return h(i, e(r) ? r.split(".") : r, 0), c ? o : o[0]; - }, - ignoreLocation: !1, - ignoreFieldNorm: !1 -}); - -var d = /[^ ]+/g; - -var u = -/*#__PURE__*/ -function () { - function u() { - var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, - _ref$getFn = _ref.getFn, - t = _ref$getFn === void 0 ? l.getFn : _ref$getFn; - - _classCallCheck(this, u); - - this.norm = function () { - var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 3; - var e = new Map(); - return { - get: function get(n) { - var s = n.match(d).length; - if (e.has(s)) return e.get(s); - var i = parseFloat((1 / Math.sqrt(s)).toFixed(t)); - return e.set(s, i), i; - }, - clear: function clear() { - e.clear(); - } - }; - }(3), this.getFn = t, this.isCreated = !1, this.setIndexRecords(); - } - - _createClass(u, [{ - key: "setSources", - value: function setSources() { - var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; - this.docs = t; - } - }, { - key: "setIndexRecords", - value: function setIndexRecords() { - var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; - this.records = t; - } - }, { - key: "setKeys", - value: function setKeys() { - var _this2 = this; - - var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; - this.keys = t, this._keysMap = {}, t.forEach(function (t, e) { - _this2._keysMap[t.id] = e; - }); - } - }, { - key: "create", - value: function create() { - var _this3 = this; - - !this.isCreated && this.docs.length && (this.isCreated = !0, e(this.docs[0]) ? this.docs.forEach(function (t, e) { - _this3._addString(t, e); - }) : this.docs.forEach(function (t, e) { - _this3._addObject(t, e); - }), this.norm.clear()); - } - }, { - key: "add", - value: function add(t) { - var n = this.size(); - e(t) ? this._addString(t, n) : this._addObject(t, n); - } - }, { - key: "removeAt", - value: function removeAt(t) { - this.records.splice(t, 1); - - for (var _e2 = t, _n = this.size(); _e2 < _n; _e2 += 1) { - this.records[_e2].i -= 1; - } - } - }, { - key: "getValueForItemAtKeyId", - value: function getValueForItemAtKeyId(t, e) { - return t[this._keysMap[e]]; - } - }, { - key: "size", - value: function size() { - return this.records.length; - } - }, { - key: "_addString", - value: function _addString(t, e) { - if (!s(t) || i(t)) return; - var n = { - v: t, - i: e, - n: this.norm.get(t) - }; - this.records.push(n); - } - }, { - key: "_addObject", - value: function _addObject(n, r) { - var _this4 = this; - - var o = { - i: r, - $: {} - }; - this.keys.forEach(function (r, c) { - var h = _this4.getFn(n, r.path); - - if (s(h)) if (t(h)) { - (function () { - var n = []; - var r = [{ - nestedArrIndex: -1, - value: h - }]; - - for (; r.length;) { - var _r$pop = r.pop(), - _o = _r$pop.nestedArrIndex, - _c = _r$pop.value; - - if (s(_c)) if (e(_c) && !i(_c)) { - var _t3 = { - v: _c, - i: _o, - n: _this4.norm.get(_c) - }; - n.push(_t3); - } else t(_c) && _c.forEach(function (t, e) { - r.push({ - nestedArrIndex: e, - value: t - }); - }); - } - - o.$[c] = n; - })(); - } else if (!i(h)) { - var _t4 = { - v: h, - n: _this4.norm.get(h) - }; - o.$[c] = _t4; - } - }), this.records.push(o); - } - }, { - key: "toJSON", - value: function toJSON() { - return { - keys: this.keys, - records: this.records - }; - } - }]); - - return u; -}(); - -function f(t, e) { - var _ref2 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, - _ref2$getFn = _ref2.getFn, - n = _ref2$getFn === void 0 ? l.getFn : _ref2$getFn; - - var s = new u({ - getFn: n - }); - return s.setKeys(t.map(c)), s.setSources(e), s.create(), s; -} - -function g(t, e) { - var n = t.matches; - e.matches = [], s(n) && n.forEach(function (t) { - if (!s(t.indices) || !t.indices.length) return; - var n = t.indices, - i = t.value; - var r = { - indices: n, - value: i - }; - t.key && (r.key = t.key.src), t.idx > -1 && (r.refIndex = t.idx), e.matches.push(r); - }); -} - -function p(t, e) { - e.score = t.score; -} - -function m(t) { - var _ref3 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, - _ref3$errors = _ref3.errors, - e = _ref3$errors === void 0 ? 0 : _ref3$errors, - _ref3$currentLocation = _ref3.currentLocation, - n = _ref3$currentLocation === void 0 ? 0 : _ref3$currentLocation, - _ref3$expectedLocatio = _ref3.expectedLocation, - s = _ref3$expectedLocatio === void 0 ? 0 : _ref3$expectedLocatio, - _ref3$distance = _ref3.distance, - i = _ref3$distance === void 0 ? l.distance : _ref3$distance, - _ref3$ignoreLocation = _ref3.ignoreLocation, - r = _ref3$ignoreLocation === void 0 ? l.ignoreLocation : _ref3$ignoreLocation; - - var o = e / t.length; - if (r) return o; - var c = Math.abs(s - n); - return i ? o + c / i : c ? 1 : o; -} - -function y(t, e, n) { - var _ref4 = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}, - _ref4$location = _ref4.location, - s = _ref4$location === void 0 ? l.location : _ref4$location, - _ref4$distance = _ref4.distance, - i = _ref4$distance === void 0 ? l.distance : _ref4$distance, - _ref4$threshold = _ref4.threshold, - r = _ref4$threshold === void 0 ? l.threshold : _ref4$threshold, - _ref4$findAllMatches = _ref4.findAllMatches, - o = _ref4$findAllMatches === void 0 ? l.findAllMatches : _ref4$findAllMatches, - _ref4$minMatchCharLen = _ref4.minMatchCharLength, - c = _ref4$minMatchCharLen === void 0 ? l.minMatchCharLength : _ref4$minMatchCharLen, - _ref4$includeMatches = _ref4.includeMatches, - h = _ref4$includeMatches === void 0 ? l.includeMatches : _ref4$includeMatches, - _ref4$ignoreLocation = _ref4.ignoreLocation, - a = _ref4$ignoreLocation === void 0 ? l.ignoreLocation : _ref4$ignoreLocation; - - if (e.length > 32) throw new Error("Pattern length exceeds max of ".concat(32, ".")); - var d = e.length, - u = t.length, - f = Math.max(0, Math.min(s, u)); - var g = r, - p = f; - var y = c > 1 || h, - M = y ? Array(u) : []; - var x; - - for (; (x = t.indexOf(e, p)) > -1;) { - var _t5 = m(e, { - currentLocation: x, - expectedLocation: f, - distance: i, - ignoreLocation: a - }); - - if (g = Math.min(_t5, g), p = x + d, y) { - var _t6 = 0; - - for (; _t6 < d;) { - M[x + _t6] = 1, _t6 += 1; - } - } - } - - p = -1; - var L = [], - _ = 1, - k = d + u; - var v = 1 << d - 1; - - for (var _s = 0; _s < d; _s += 1) { - var _r = 0, - _c2 = k; - - for (; _r < _c2;) { - m(e, { - errors: _s, - currentLocation: f + _c2, - expectedLocation: f, - distance: i, - ignoreLocation: a - }) <= g ? _r = _c2 : k = _c2, _c2 = Math.floor((k - _r) / 2 + _r); - } - - k = _c2; - - var _h = Math.max(1, f - _c2 + 1), - _l2 = o ? u : Math.min(f + _c2, u) + d, - _x = Array(_l2 + 2); - - _x[_l2 + 1] = (1 << _s) - 1; - - for (var _r2 = _l2; _r2 >= _h; _r2 -= 1) { - var _o2 = _r2 - 1, - _c3 = n[t.charAt(_o2)]; - - if (y && (M[_o2] = +!!_c3), _x[_r2] = (_x[_r2 + 1] << 1 | 1) & _c3, _s && (_x[_r2] |= (L[_r2 + 1] | L[_r2]) << 1 | 1 | L[_r2 + 1]), _x[_r2] & v && (_ = m(e, { - errors: _s, - currentLocation: _o2, - expectedLocation: f, - distance: i, - ignoreLocation: a - }), _ <= g)) { - if (g = _, p = _o2, p <= f) break; - _h = Math.max(1, 2 * f - p); - } - } - - if (m(e, { - errors: _s + 1, - currentLocation: f, - expectedLocation: f, - distance: i, - ignoreLocation: a - }) > g) break; - L = _x; - } - - var w = { - isMatch: p >= 0, - score: Math.max(.001, _) - }; - - if (y) { - var _t7 = function () { - var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; - var e = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : l.minMatchCharLength; - var n = [], - s = -1, - i = -1, - r = 0; - - for (var _o3 = t.length; r < _o3; r += 1) { - var _o4 = t[r]; - _o4 && -1 === s ? s = r : _o4 || -1 === s || (i = r - 1, i - s + 1 >= e && n.push([s, i]), s = -1); - } - - return t[r - 1] && r - s >= e && n.push([s, r - 1]), n; - }(M, c); - - _t7.length ? h && (w.indices = _t7) : w.isMatch = !1; - } - - return w; -} - -function M(t) { - var e = {}; - - for (var _n2 = 0, _s2 = t.length; _n2 < _s2; _n2 += 1) { - var _i = t.charAt(_n2); - - e[_i] = (e[_i] || 0) | 1 << _s2 - _n2 - 1; - } - - return e; -} - -var x = -/*#__PURE__*/ -function () { - function x(t) { - var _this5 = this; - - var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, - _ref5$location = _ref5.location, - e = _ref5$location === void 0 ? l.location : _ref5$location, - _ref5$threshold = _ref5.threshold, - n = _ref5$threshold === void 0 ? l.threshold : _ref5$threshold, - _ref5$distance = _ref5.distance, - s = _ref5$distance === void 0 ? l.distance : _ref5$distance, - _ref5$includeMatches = _ref5.includeMatches, - i = _ref5$includeMatches === void 0 ? l.includeMatches : _ref5$includeMatches, - _ref5$findAllMatches = _ref5.findAllMatches, - r = _ref5$findAllMatches === void 0 ? l.findAllMatches : _ref5$findAllMatches, - _ref5$minMatchCharLen = _ref5.minMatchCharLength, - o = _ref5$minMatchCharLen === void 0 ? l.minMatchCharLength : _ref5$minMatchCharLen, - _ref5$isCaseSensitive = _ref5.isCaseSensitive, - c = _ref5$isCaseSensitive === void 0 ? l.isCaseSensitive : _ref5$isCaseSensitive, - _ref5$ignoreLocation = _ref5.ignoreLocation, - h = _ref5$ignoreLocation === void 0 ? l.ignoreLocation : _ref5$ignoreLocation; - - _classCallCheck(this, x); - - if (this.options = { - location: e, - threshold: n, - distance: s, - includeMatches: i, - findAllMatches: r, - minMatchCharLength: o, - isCaseSensitive: c, - ignoreLocation: h - }, this.pattern = c ? t : t.toLowerCase(), this.chunks = [], !this.pattern.length) return; - - var a = function a(t, e) { - _this5.chunks.push({ - pattern: t, - alphabet: M(t), - startIndex: e - }); - }, - d = this.pattern.length; - - if (d > 32) { - var _t8 = 0; - - var _e3 = d % 32, - _n3 = d - _e3; - - for (; _t8 < _n3;) { - a(this.pattern.substr(_t8, 32), _t8), _t8 += 32; - } - - if (_e3) { - var _t9 = d - 32; - - a(this.pattern.substr(_t9), _t9); - } - } else a(this.pattern, 0); - } - - _createClass(x, [{ - key: "searchIn", - value: function searchIn(t) { - var _this$options = this.options, - e = _this$options.isCaseSensitive, - n = _this$options.includeMatches; - - if (e || (t = t.toLowerCase()), this.pattern === t) { - var _e4 = { - isMatch: !0, - score: 0 - }; - return n && (_e4.indices = [[0, t.length - 1]]), _e4; - } - - var _this$options2 = this.options, - s = _this$options2.location, - i = _this$options2.distance, - r = _this$options2.threshold, - o = _this$options2.findAllMatches, - c = _this$options2.minMatchCharLength, - h = _this$options2.ignoreLocation; - var a = [], - l = 0, - d = !1; - this.chunks.forEach(function (_ref6) { - var e = _ref6.pattern, - u = _ref6.alphabet, - f = _ref6.startIndex; - - var _y = y(t, e, u, { - location: s + f, - distance: i, - threshold: r, - findAllMatches: o, - minMatchCharLength: c, - includeMatches: n, - ignoreLocation: h - }), - g = _y.isMatch, - p = _y.score, - m = _y.indices; - - g && (d = !0), l += p, g && m && (a = [].concat(_toConsumableArray(a), _toConsumableArray(m))); - }); - var u = { - isMatch: d, - score: d ? l / this.chunks.length : 1 - }; - return d && n && (u.indices = a), u; - } - }]); - - return x; -}(); - -var L = []; - -function _(t, e) { - for (var _n4 = 0, _s3 = L.length; _n4 < _s3; _n4 += 1) { - var _s4 = L[_n4]; - if (_s4.condition(t, e)) return new _s4(t, e); - } - - return new x(t, e); -} - -var k = -/*#__PURE__*/ -function () { - function k(t) { - var e = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - var n = arguments.length > 2 ? arguments[2] : undefined; - - _classCallCheck(this, k); - - if (this.options = _objectSpread({}, l, {}, e), this.options.useExtendedSearch) throw new Error("Extended search is not available"); - this._keyStore = new o(this.options.keys), this.setCollection(t, n); - } - - _createClass(k, [{ - key: "setCollection", - value: function setCollection(t, e) { - if (this._docs = t, e && !(e instanceof u)) throw new Error("Incorrect 'index' type"); - this._myIndex = e || f(this.options.keys, this._docs, { - getFn: this.options.getFn - }); - } - }, { - key: "add", - value: function add(t) { - s(t) && (this._docs.push(t), this._myIndex.add(t)); - } - }, { - key: "remove", - value: function remove() { - var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : function () { - return !1; - }; - var e = []; - - for (var _n5 = 0, _s5 = this._docs.length; _n5 < _s5; _n5 += 1) { - var _s6 = this._docs[_n5]; - t(_s6, _n5) && (this.removeAt(_n5), _n5 -= 1, e.push(_s6)); - } - - return e; - } - }, { - key: "removeAt", - value: function removeAt(t) { - this._docs.splice(t, 1), this._myIndex.removeAt(t); - } - }, { - key: "getIndex", - value: function getIndex() { - return this._myIndex; - } - }, { - key: "search", - value: function search(t) { - var _ref7 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, - _ref7$limit = _ref7.limit, - s = _ref7$limit === void 0 ? -1 : _ref7$limit; - - var _this$options3 = this.options, - i = _this$options3.includeMatches, - r = _this$options3.includeScore, - o = _this$options3.shouldSort, - c = _this$options3.sortFn, - h = _this$options3.ignoreFieldNorm; - var a = e(t) ? e(this._docs[0]) ? this._searchStringList(t) : this._searchObjectList(t) : this._searchLogical(t); - return function (t, e, _ref8) { - var _ref8$ignoreFieldNorm = _ref8.ignoreFieldNorm, - n = _ref8$ignoreFieldNorm === void 0 ? l.ignoreFieldNorm : _ref8$ignoreFieldNorm; - t.forEach(function (t) { - var e = 1; - t.matches.forEach(function (_ref9) { - var t = _ref9.key, - s = _ref9.norm, - i = _ref9.score; - var r = t ? t.weight : null; - e *= Math.pow(0 === i && r ? Number.EPSILON : i, (r || 1) * (n ? 1 : s)); - }), t.score = e; - }); - }(a, this._keyStore, { - ignoreFieldNorm: h - }), o && a.sort(c), n(s) && s > -1 && (a = a.slice(0, s)), function (t, e) { - var _ref10 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, - _ref10$includeMatches = _ref10.includeMatches, - n = _ref10$includeMatches === void 0 ? l.includeMatches : _ref10$includeMatches, - _ref10$includeScore = _ref10.includeScore, - s = _ref10$includeScore === void 0 ? l.includeScore : _ref10$includeScore; - - var i = []; - n && i.push(g); - s && i.push(p); - return t.map(function (t) { - var n = t.idx, - s = { - item: e[n], - refIndex: n - }; - return i.length && i.forEach(function (e) { - e(t, s); - }), s; - }); - }(a, this._docs, { - includeMatches: i, - includeScore: r - }); - } - }, { - key: "_searchStringList", - value: function _searchStringList(t) { - var e = _(t, this.options), - n = this._myIndex.records, - i = []; - - return n.forEach(function (_ref11) { - var t = _ref11.v, - n = _ref11.i, - r = _ref11.n; - if (!s(t)) return; - - var _e$searchIn = e.searchIn(t), - o = _e$searchIn.isMatch, - c = _e$searchIn.score, - h = _e$searchIn.indices; - - o && i.push({ - item: t, - idx: n, - matches: [{ - score: c, - value: t, - norm: r, - indices: h - }] - }); - }), i; - } - }, { - key: "_searchLogical", - value: function _searchLogical(t) { - throw new Error("Logical search is not available"); - } - }, { - key: "_searchObjectList", - value: function _searchObjectList(t) { - var _this6 = this; - - var e = _(t, this.options), - _this$_myIndex = this._myIndex, - n = _this$_myIndex.keys, - i = _this$_myIndex.records, - r = []; - - return i.forEach(function (_ref12) { - var t = _ref12.$, - i = _ref12.i; - if (!s(t)) return; - var o = []; - n.forEach(function (n, s) { - o.push.apply(o, _toConsumableArray(_this6._findMatches({ - key: n, - value: t[s], - searcher: e - }))); - }), o.length && r.push({ - idx: i, - item: t, - matches: o - }); - }), r; - } - }, { - key: "_findMatches", - value: function _findMatches(_ref13) { - var e = _ref13.key, - n = _ref13.value, - i = _ref13.searcher; - if (!s(n)) return []; - var r = []; - if (t(n)) n.forEach(function (_ref14) { - var t = _ref14.v, - n = _ref14.i, - o = _ref14.n; - if (!s(t)) return; - - var _i$searchIn = i.searchIn(t), - c = _i$searchIn.isMatch, - h = _i$searchIn.score, - a = _i$searchIn.indices; - - c && r.push({ - score: h, - key: e, - value: t, - idx: n, - norm: o, - indices: a - }); - });else { - var _t10 = n.v, - _s7 = n.n, - _i$searchIn2 = i.searchIn(_t10), - _o5 = _i$searchIn2.isMatch, - _c4 = _i$searchIn2.score, - _h2 = _i$searchIn2.indices; - - _o5 && r.push({ - score: _c4, - key: e, - value: _t10, - norm: _s7, - indices: _h2 - }); - } - return r; - } - }]); - - return k; -}(); - -k.version = "6.3.1", k.createIndex = f, k.parseIndex = function (t) { - var _ref15 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, - _ref15$getFn = _ref15.getFn, - e = _ref15$getFn === void 0 ? l.getFn : _ref15$getFn; - - var n = t.keys, - s = t.records, - i = new u({ - getFn: e - }); - return i.setKeys(n), i.setIndexRecords(s), i; -}, k.config = l; -/* harmony default export */ __webpack_exports__["default"] = (k); - -/***/ }), - -/***/ "./node_modules/headroom.js/dist/headroom.js": -/*!***************************************************!*\ - !*** ./node_modules/headroom.js/dist/headroom.js ***! - \***************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - -/*! - * headroom.js v0.10.3 - Give your page some headroom. Hide your header until you need it - * Copyright (c) 2019 Nick Williams - http://wicky.nillia.ms/headroom.js - * License: MIT - */ -(function (global, factory) { - ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' ? module.exports = factory() : true ? !(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory), - __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'; - - function isBrowser() { - return typeof window !== "undefined"; - } - /** - * Used to detect browser support for adding an event listener with options - * Credit: https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener - */ - - - function passiveEventsSupported() { - var supported = false; - - try { - var options = { - // eslint-disable-next-line getter-return - get passive() { - supported = true; - } - - }; - window.addEventListener("test", options, options); - window.removeEventListener("test", options, options); - } catch (err) { - supported = false; - } - - return supported; - } - - function isSupported() { - return !!(isBrowser() && function () {}.bind && "classList" in document.documentElement && Object.assign && Object.keys && requestAnimationFrame); - } - - function isDocument(obj) { - return obj.nodeType === 9; // Node.DOCUMENT_NODE === 9 - } - - function isWindow(obj) { - // `obj === window` or `obj instanceof Window` is not sufficient, - // as the obj may be the window of an iframe. - return obj && obj.document && isDocument(obj.document); - } - - function windowScroller(win) { - var doc = win.document; - var body = doc.body; - var html = doc.documentElement; - return { - /** - * @see http://james.padolsey.com/javascript/get-document-height-cross-browser/ - * @return {Number} the scroll height of the document in pixels - */ - scrollHeight: function scrollHeight() { - return Math.max(body.scrollHeight, html.scrollHeight, body.offsetHeight, html.offsetHeight, body.clientHeight, html.clientHeight); - }, - - /** - * @see http://andylangton.co.uk/blog/development/get-viewport-size-width-and-height-javascript - * @return {Number} the height of the viewport in pixels - */ - height: function height() { - return win.innerHeight || html.clientHeight || body.clientHeight; - }, - - /** - * Gets the Y scroll position - * @return {Number} pixels the page has scrolled along the Y-axis - */ - scrollY: function scrollY() { - if (win.pageYOffset !== undefined) { - return win.pageYOffset; - } - - return (html || body.parentNode || body).scrollTop; - } - }; - } - - function elementScroller(element) { - return { - /** - * @return {Number} the scroll height of the element in pixels - */ - scrollHeight: function scrollHeight() { - return Math.max(element.scrollHeight, element.offsetHeight, element.clientHeight); - }, - - /** - * @return {Number} the height of the element in pixels - */ - height: function height() { - return Math.max(element.offsetHeight, element.clientHeight); - }, - - /** - * Gets the Y scroll position - * @return {Number} pixels the element has scrolled along the Y-axis - */ - scrollY: function scrollY() { - return element.scrollTop; - } - }; - } - - function createScroller(element) { - return isWindow(element) ? windowScroller(element) : elementScroller(element); - } - /** - * @param element EventTarget - */ - - - function trackScroll(element, options, callback) { - var isPassiveSupported = passiveEventsSupported(); - var rafId; - var scrolled = false; - var scroller = createScroller(element); - var lastScrollY = scroller.scrollY(); - var details = {}; - - function update() { - var scrollY = Math.round(scroller.scrollY()); - var height = scroller.height(); - var scrollHeight = scroller.scrollHeight(); // reuse object for less memory churn - - details.scrollY = scrollY; - details.lastScrollY = lastScrollY; - details.direction = scrollY > lastScrollY ? "down" : "up"; - details.distance = Math.abs(scrollY - lastScrollY); - details.isOutOfBounds = scrollY < 0 || scrollY + height > scrollHeight; - details.top = scrollY <= options.offset; - details.bottom = scrollY + height >= scrollHeight; - details.toleranceExceeded = details.distance > options.tolerance[details.direction]; - callback(details); - lastScrollY = scrollY; - scrolled = false; - } - - function handleScroll() { - if (!scrolled) { - scrolled = true; - rafId = requestAnimationFrame(update); - } - } - - var eventOptions = isPassiveSupported ? { - passive: true, - capture: false - } : false; - element.addEventListener("scroll", handleScroll, eventOptions); - return { - destroy: function destroy() { - cancelAnimationFrame(rafId); - element.removeEventListener("scroll", handleScroll, eventOptions); - } - }; - } - - function normalizeTolerance(t) { - return t === Object(t) ? t : { - down: t, - up: t - }; - } - /** - * UI enhancement for fixed headers. - * Hides header when scrolling down - * Shows header when scrolling up - * @constructor - * @param {DOMElement} elem the header element - * @param {Object} options options for the widget - */ - - - function Headroom(elem, options) { - options = options || {}; - Object.assign(this, Headroom.options, options); - this.classes = Object.assign({}, Headroom.options.classes, options.classes); - this.elem = elem; - this.tolerance = normalizeTolerance(this.tolerance); - this.initialised = false; - this.frozen = false; - } - - Headroom.prototype = { - constructor: Headroom, - - /** - * Start listening to scrolling - * @public - */ - init: function init() { - if (Headroom.cutsTheMustard && !this.initialised) { - this.addClass("initial"); - this.initialised = true; // defer event registration to handle browser - // potentially restoring previous scroll position - - setTimeout(function (self) { - self.scrollTracker = trackScroll(self.scroller, { - offset: self.offset, - tolerance: self.tolerance - }, self.update.bind(self)); - }, 100, this); - } - - return this; - }, - - /** - * Destroy the widget, clearing up after itself - * @public - */ - destroy: function destroy() { - this.initialised = false; - Object.keys(this.classes).forEach(this.removeClass, this); - this.scrollTracker.destroy(); - }, - - /** - * Unpin the element - * @public - */ - unpin: function unpin() { - if (this.hasClass("pinned") || !this.hasClass("unpinned")) { - this.addClass("unpinned"); - this.removeClass("pinned"); - - if (this.onUnpin) { - this.onUnpin.call(this); - } - } - }, - - /** - * Pin the element - * @public - */ - pin: function pin() { - if (this.hasClass("unpinned")) { - this.addClass("pinned"); - this.removeClass("unpinned"); - - if (this.onPin) { - this.onPin.call(this); - } - } - }, - - /** - * Freezes the current state of the widget - * @public - */ - freeze: function freeze() { - this.frozen = true; - this.addClass("frozen"); - }, - - /** - * Re-enables the default behaviour of the widget - * @public - */ - unfreeze: function unfreeze() { - this.frozen = false; - this.removeClass("frozen"); - }, - top: function top() { - if (!this.hasClass("top")) { - this.addClass("top"); - this.removeClass("notTop"); - - if (this.onTop) { - this.onTop.call(this); - } - } - }, - notTop: function notTop() { - if (!this.hasClass("notTop")) { - this.addClass("notTop"); - this.removeClass("top"); - - if (this.onNotTop) { - this.onNotTop.call(this); - } - } - }, - bottom: function bottom() { - if (!this.hasClass("bottom")) { - this.addClass("bottom"); - this.removeClass("notBottom"); - - if (this.onBottom) { - this.onBottom.call(this); - } - } - }, - notBottom: function notBottom() { - if (!this.hasClass("notBottom")) { - this.addClass("notBottom"); - this.removeClass("bottom"); - - if (this.onNotBottom) { - this.onNotBottom.call(this); - } - } - }, - shouldUnpin: function shouldUnpin(details) { - var scrollingDown = details.direction === "down"; - return scrollingDown && !details.top && details.toleranceExceeded; - }, - shouldPin: function shouldPin(details) { - var scrollingUp = details.direction === "up"; - return scrollingUp && details.toleranceExceeded || details.top; - }, - addClass: function addClass(className) { - this.elem.classList.add(this.classes[className]); - }, - removeClass: function removeClass(className) { - this.elem.classList.remove(this.classes[className]); - }, - hasClass: function hasClass(className) { - return this.elem.classList.contains(this.classes[className]); - }, - update: function update(details) { - if (details.isOutOfBounds) { - // Ignore bouncy scrolling in OSX - return; - } - - if (this.frozen === true) { - return; - } - - if (details.top) { - this.top(); - } else { - this.notTop(); - } - - if (details.bottom) { - this.bottom(); - } else { - this.notBottom(); - } - - if (this.shouldUnpin(details)) { - this.unpin(); - } else if (this.shouldPin(details)) { - this.pin(); - } - } - }; - /** - * Default options - * @type {Object} - */ - - Headroom.options = { - tolerance: { - up: 0, - down: 0 - }, - offset: 0, - scroller: isBrowser() ? window : null, - classes: { - frozen: "headroom--frozen", - pinned: "headroom--pinned", - unpinned: "headroom--unpinned", - top: "headroom--top", - notTop: "headroom--not-top", - bottom: "headroom--bottom", - notBottom: "headroom--not-bottom", - initial: "headroom" - } - }; - Headroom.cutsTheMustard = isSupported(); - return Headroom; -}); - -/***/ }), - -/***/ "./node_modules/jquery/dist/jquery.js": -/*!********************************************!*\ - !*** ./node_modules/jquery/dist/jquery.js ***! - \********************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -/* WEBPACK VAR INJECTION */(function(module) {var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - -/*! - * jQuery JavaScript Library v3.4.1 + * jQuery JavaScript Library v3.6.0 * https://jquery.com/ * * Includes Sizzle.js * https://sizzlejs.com/ * - * Copyright JS Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license * https://jquery.org/license * - * Date: 2019-05-01T21:04Z - */ -(function (global, factory) { - "use strict"; - - if (( false ? undefined : _typeof(module)) === "object" && _typeof(module.exports) === "object") { - // For CommonJS and CommonJS-like environments where a proper `window` - // is present, execute the factory and get jQuery. - // For environments that do not have a `window` with a `document` - // (such as Node.js), expose a factory as module.exports. - // This accentuates the need for the creation of a real `window`. - // e.g. var jQuery = require("jquery")(window); - // See ticket #14549 for more info. - module.exports = global.document ? factory(global, true) : function (w) { - if (!w.document) { - throw new Error("jQuery requires a window with a document"); - } - - return factory(w); - }; - } else { - factory(global); - } // Pass this if window is not defined yet - -})(typeof window !== "undefined" ? window : this, function (window, noGlobal) { - // Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1 - // throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode - // arguments.callee.caller (trac-13335). But as of jQuery 3.0 (2016), strict mode should be common - // enough that all such attempts are guarded in a try block. - "use strict"; - - var arr = []; - var document = window.document; - var getProto = Object.getPrototypeOf; - var _slice = arr.slice; - var concat = arr.concat; - var push = arr.push; - var indexOf = arr.indexOf; - var class2type = {}; - var toString = class2type.toString; - var hasOwn = class2type.hasOwnProperty; - var fnToString = hasOwn.toString; - var ObjectFunctionString = fnToString.call(Object); - var support = {}; - - var isFunction = function isFunction(obj) { - // Support: Chrome <=57, Firefox <=52 - // In some browsers, typeof returns "function" for HTML