From 0724a71af3bb469506fe085d79371f064a900228 Mon Sep 17 00:00:00 2001 From: liuyichang Date: Mon, 23 Jul 2018 17:00:38 +0800 Subject: [PATCH] initial commit component --- .eslintrc.js | 10 +- .gitignore | 3 +- .prettierrc.js | 4 + LICENSE | 21 + README.md | 100 ++ babel.config.js | 4 +- dist/vue-highlight-words.common.js | 1378 ++++++++++++++++++++++ dist/vue-highlight-words.common.js.map | 1 + dist/vue-highlight-words.umd.js | 1388 +++++++++++++++++++++++ dist/vue-highlight-words.umd.js.map | 1 + dist/vue-highlight-words.umd.min.js | 2 + dist/vue-highlight-words.umd.min.js.map | 1 + package-lock.json | 182 ++- package.json | 35 +- src/App.vue | 60 +- src/components/HelloWorld.vue | 57 - src/components/HighlightWords.js | 108 ++ src/main.js | 8 +- vue.config.js | 8 + 19 files changed, 3289 insertions(+), 82 deletions(-) create mode 100644 .prettierrc.js create mode 100644 LICENSE create mode 100644 README.md create mode 100644 dist/vue-highlight-words.common.js create mode 100644 dist/vue-highlight-words.common.js.map create mode 100644 dist/vue-highlight-words.umd.js create mode 100644 dist/vue-highlight-words.umd.js.map create mode 100644 dist/vue-highlight-words.umd.min.js create mode 100644 dist/vue-highlight-words.umd.min.js.map delete mode 100644 src/components/HelloWorld.vue create mode 100644 src/components/HighlightWords.js create mode 100644 vue.config.js diff --git a/.eslintrc.js b/.eslintrc.js index 7fbb299..3dcb4ce 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -3,15 +3,13 @@ module.exports = { env: { node: true }, - 'extends': [ - 'plugin:vue/essential', - '@vue/prettier' - ], + extends: ['plugin:vue/essential', '@vue/prettier'], rules: { 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off', - 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off' + 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', + quotes: ['error', 'single'] }, parserOptions: { parser: 'babel-eslint' } -} \ No newline at end of file +} diff --git a/.gitignore b/.gitignore index 185e663..056eeae 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ .DS_Store node_modules -/dist +/dist/demo.html +/demo # local env files .env.local diff --git a/.prettierrc.js b/.prettierrc.js new file mode 100644 index 0000000..55bfa8f --- /dev/null +++ b/.prettierrc.js @@ -0,0 +1,4 @@ +module.exports = { + singleQuote: true, + semi: false +}; diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..1e3483e --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2018 Yichang Liu + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..e5507cf --- /dev/null +++ b/README.md @@ -0,0 +1,100 @@ +# vue-highlight-words + +> A simple port from [`react-highlight-words`](https://github.com/bvaughn/react-highlight-words) +> +> Vue component to highlight words within a larger body of text. + +## Usage + +To use it, just provide it with an array of search terms and a body of text to highlight. + +```html + + + +``` + +And the `Highlighter` will mark all occurrences of search terms within the text: + +screen shot 2015-12-19 at 8 23 43 am + +## Props + +| Property | Type | Required? | Description | +| :------------------- | :------------ | :-------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| activeClassName | String | | The class name to be applied to an active match. Use along with `activeIndex` | +| activeIndex | String | | Specify the match index that should be actively highlighted. Use along with `activeClassName` | +| activeStyle | Object | | The inline style to be applied to an active match. Use along with `activeIndex` | +| autoEscape | Boolean | | Escape characters in `searchWords` which are meaningful in regular expressions | +| className | String | | CSS class name applied to the outer/wrapper `` | +| caseSensitive | Boolean | | Search should be case sensitive; defaults to `false` | +| findChunks | Function | | Use a custom function to search for matching chunks. This makes it possible to use arbitrary logic when looking for matches. See the default `findChunks` function in [highlight-words-core](https://github.com/bvaughn/highlight-words-core) for signature. Have a look at the [custom findChunks example](https://codesandbox.io/s/k20x3ox31o) on how to use it. | +| highlightClassName | String | | CSS class name applied to highlighted text | +| highlightStyle | Object | | Inline styles applied to highlighted text | +| highlightTag | Node | | Type of tag to wrap around highlighted matches; defaults to `mark` but can also be a React element (class or functional) | +| sanitize | Function | | Process each search word and text to highlight before comparing (eg remove accents); signature `(text: string): string` | +| searchWords | Array | ✓ | Array of search words. The search terms are treated as RegExps unless `autoEscape` is set. | +| textToHighlight | String | ✓ | Text to highlight matches in | +| unhighlightClassName | String | | CSS class name applied to unhighlighted text | +| unhighlightStyle | Object | | Inline styles applied to unhighlighted text | + + +## Installation + +``` +npm i --save react-highlight-words +``` + +## Project setup + +``` +npm install +``` + +### Compiles and hot-reloads for development + +``` +npm run serve +``` + +### Compiles and minifies for production + +``` +npm run build +``` + +### Lints and fixes files + +``` +npm run lint +``` + +## License +MIT License - fork, modify and use however you want. diff --git a/babel.config.js b/babel.config.js index 3ecebf1..df15158 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,3 +1,3 @@ module.exports = { - presets: ["@vue/app"] -}; + presets: ['@vue/app'] +} diff --git a/dist/vue-highlight-words.common.js b/dist/vue-highlight-words.common.js new file mode 100644 index 0000000..ec71ce9 --- /dev/null +++ b/dist/vue-highlight-words.common.js @@ -0,0 +1,1378 @@ +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 = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "+xUi"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "+rLv": +/***/ (function(module, exports, __webpack_require__) { + +var document = __webpack_require__("dyZX").document; +module.exports = document && document.documentElement; + + +/***/ }), + +/***/ "+xUi": +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); + +// EXTERNAL MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js +var setPublicPath = __webpack_require__("HrLf"); + +// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.object.assign.js +var es6_object_assign = __webpack_require__("91GP"); + +// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.number.constructor.js +var es6_number_constructor = __webpack_require__("xfY5"); + +// EXTERNAL MODULE: ./node_modules/highlight-words-core/dist/index.js +var dist = __webpack_require__("5V/u"); + +// CONCATENATED MODULE: ./src/components/HighlightWords.js + + + +/* harmony default export */ var HighlightWords = ({ + functional: true, + props: { + activeClassName: String, + activeIndex: Number, + activeStyle: Object, + autoEscape: Boolean, + className: String, + findChunks: Function, + highlightClassName: String, + highlightStyle: Object, + highlightTag: [Node, Function, String], + sanitize: Function, + searchWords: { + type: Array, + // Array + validator: function validator(value) { + return value.every(function (word) { + return typeof word === 'string'; + }); + }, + required: true + }, + textToHighlight: { + type: String, + required: true + }, + unhighlightClassName: String, + unhighlightStyle: Object + }, + render: function render(h, context) { + var _context$props = context.props, + _context$props$active = _context$props.activeClassName, + activeClassName = _context$props$active === void 0 ? '' : _context$props$active, + _context$props$active2 = _context$props.activeIndex, + activeIndex = _context$props$active2 === void 0 ? -1 : _context$props$active2, + activeStyle = _context$props.activeStyle, + autoEscape = _context$props.autoEscape, + _context$props$caseSe = _context$props.caseSensitive, + caseSensitive = _context$props$caseSe === void 0 ? false : _context$props$caseSe, + className = _context$props.className, + findChunks = _context$props.findChunks, + _context$props$highli = _context$props.highlightClassName, + highlightClassName = _context$props$highli === void 0 ? '' : _context$props$highli, + _context$props$highli2 = _context$props.highlightStyle, + highlightStyle = _context$props$highli2 === void 0 ? {} : _context$props$highli2, + _context$props$highli3 = _context$props.highlightTag, + highlightTag = _context$props$highli3 === void 0 ? 'mark' : _context$props$highli3, + sanitize = _context$props.sanitize, + searchWords = _context$props.searchWords, + textToHighlight = _context$props.textToHighlight, + _context$props$unhigh = _context$props.unhighlightClassName, + unhighlightClassName = _context$props$unhigh === void 0 ? '' : _context$props$unhigh, + unhighlightStyle = _context$props.unhighlightStyle; + var chunks = Object(dist["findAll"])({ + autoEscape: autoEscape, + caseSensitive: caseSensitive, + findChunks: findChunks, + sanitize: sanitize, + searchWords: searchWords, + textToHighlight: textToHighlight + }); + var HighlightTag = highlightTag; + var highlightCount = -1; + var highlightClassNames = ''; + var highlightStyles; + return h("span", { + attrs: { + className: className + } + }, [chunks.map(function (chunk, index) { + var text = textToHighlight.substr(chunk.start, chunk.end - chunk.start); + + if (chunk.highlight) { + highlightCount++; + var isActive = highlightCount === +activeIndex; + highlightClassNames = "".concat(highlightClassName, " ").concat(isActive ? activeClassName : ''); + highlightStyles = isActive === true && activeStyle != null ? Object.assign({}, highlightStyle, activeStyle) : highlightStyle; + return h(HighlightTag, { + "class": highlightClassNames, + key: index, + style: highlightStyles + }, [text]); + } else { + return h("span", { + attrs: { + className: unhighlightClassName + }, + key: index, + style: unhighlightStyle + }, [text]); + } + })]); + } +}); +// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js + + +/* harmony default export */ var entry_lib = __webpack_exports__["default"] = (HighlightWords); + + + +/***/ }), + +/***/ "/e88": +/***/ (function(module, exports) { + +module.exports = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' + + '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF'; + + +/***/ }), + +/***/ "0/R4": +/***/ (function(module, exports) { + +module.exports = function (it) { + return typeof it === 'object' ? it !== null : typeof it === 'function'; +}; + + +/***/ }), + +/***/ "2OiF": +/***/ (function(module, exports) { + +module.exports = function (it) { + if (typeof it != 'function') throw TypeError(it + ' is not a function!'); + return it; +}; + + +/***/ }), + +/***/ "4R4u": +/***/ (function(module, exports) { + +// IE 8- don't enum bug keys +module.exports = ( + 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf' +).split(','); + + +/***/ }), + +/***/ "5V/u": +/***/ (function(module, exports) { + +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] = { +/******/ exports: {}, +/******/ id: moduleId, +/******/ loaded: false +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.loaded = 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; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(0); +/******/ }) +/************************************************************************/ +/******/ ([ +/* 0 */ +/***/ (function(module, exports, __webpack_require__) { + + module.exports = __webpack_require__(1); + + +/***/ }), +/* 1 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + + var _utils = __webpack_require__(2); + + Object.defineProperty(exports, 'combineChunks', { + enumerable: true, + get: function get() { + return _utils.combineChunks; + } + }); + Object.defineProperty(exports, 'fillInChunks', { + enumerable: true, + get: function get() { + return _utils.fillInChunks; + } + }); + Object.defineProperty(exports, 'findAll', { + enumerable: true, + get: function get() { + return _utils.findAll; + } + }); + Object.defineProperty(exports, 'findChunks', { + enumerable: true, + get: function get() { + return _utils.findChunks; + } + }); + +/***/ }), +/* 2 */ +/***/ (function(module, exports) { + + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + /** + * Creates an array of chunk objects representing both higlightable and non highlightable pieces of text that match each search word. + * @return Array of "chunks" (where a Chunk is { start:number, end:number, highlight:boolean }) + */ + var findAll = exports.findAll = function findAll(_ref) { + var autoEscape = _ref.autoEscape, + _ref$caseSensitive = _ref.caseSensitive, + caseSensitive = _ref$caseSensitive === undefined ? false : _ref$caseSensitive, + _ref$findChunks = _ref.findChunks, + findChunks = _ref$findChunks === undefined ? defaultFindChunks : _ref$findChunks, + sanitize = _ref.sanitize, + searchWords = _ref.searchWords, + textToHighlight = _ref.textToHighlight; + return fillInChunks({ + chunksToHighlight: combineChunks({ + chunks: findChunks({ + autoEscape: autoEscape, + caseSensitive: caseSensitive, + sanitize: sanitize, + searchWords: searchWords, + textToHighlight: textToHighlight + }) + }), + totalLength: textToHighlight ? textToHighlight.length : 0 + }); + }; + + /** + * Takes an array of {start:number, end:number} objects and combines chunks that overlap into single chunks. + * @return {start:number, end:number}[] + */ + var combineChunks = exports.combineChunks = function combineChunks(_ref2) { + var chunks = _ref2.chunks; + + chunks = chunks.sort(function (first, second) { + return first.start - second.start; + }).reduce(function (processedChunks, nextChunk) { + // First chunk just goes straight in the array... + if (processedChunks.length === 0) { + return [nextChunk]; + } else { + // ... subsequent chunks get checked to see if they overlap... + var prevChunk = processedChunks.pop(); + if (nextChunk.start <= prevChunk.end) { + // It may be the case that prevChunk completely surrounds nextChunk, so take the + // largest of the end indeces. + var endIndex = Math.max(prevChunk.end, nextChunk.end); + processedChunks.push({ start: prevChunk.start, end: endIndex }); + } else { + processedChunks.push(prevChunk, nextChunk); + } + return processedChunks; + } + }, []); + + return chunks; + }; + + /** + * Examine text for any matches. + * If we find matches, add them to the returned array as a "chunk" object ({start:number, end:number}). + * @return {start:number, end:number}[] + */ + var defaultFindChunks = function defaultFindChunks(_ref3) { + var autoEscape = _ref3.autoEscape, + caseSensitive = _ref3.caseSensitive, + _ref3$sanitize = _ref3.sanitize, + sanitize = _ref3$sanitize === undefined ? identity : _ref3$sanitize, + searchWords = _ref3.searchWords, + textToHighlight = _ref3.textToHighlight; + + textToHighlight = sanitize(textToHighlight); + + return searchWords.filter(function (searchWord) { + return searchWord; + }) // Remove empty words + .reduce(function (chunks, searchWord) { + searchWord = sanitize(searchWord); + + if (autoEscape) { + searchWord = escapeRegExpFn(searchWord); + } + + var regex = new RegExp(searchWord, caseSensitive ? 'g' : 'gi'); + + var match = void 0; + while (match = regex.exec(textToHighlight)) { + var start = match.index; + var end = regex.lastIndex; + // We do not return zero-length matches + if (end > start) { + chunks.push({ start: start, end: end }); + } + + // Prevent browsers like Firefox from getting stuck in an infinite loop + // See http://www.regexguru.com/2008/04/watch-out-for-zero-length-matches/ + if (match.index == regex.lastIndex) { + regex.lastIndex++; + } + } + + return chunks; + }, []); + }; + // Allow the findChunks to be overridden in findAll, + // but for backwards compatibility we export as the old name + exports.findChunks = defaultFindChunks; + + /** + * Given a set of chunks to highlight, create an additional set of chunks + * to represent the bits of text between the highlighted text. + * @param chunksToHighlight {start:number, end:number}[] + * @param totalLength number + * @return {start:number, end:number, highlight:boolean}[] + */ + + var fillInChunks = exports.fillInChunks = function fillInChunks(_ref4) { + var chunksToHighlight = _ref4.chunksToHighlight, + totalLength = _ref4.totalLength; + + var allChunks = []; + var append = function append(start, end, highlight) { + if (end - start > 0) { + allChunks.push({ + start: start, + end: end, + highlight: highlight + }); + } + }; + + if (chunksToHighlight.length === 0) { + append(0, totalLength, false); + } else { + var lastIndex = 0; + chunksToHighlight.forEach(function (chunk) { + append(lastIndex, chunk.start, false); + append(chunk.start, chunk.end, true); + lastIndex = chunk.end; + }); + append(lastIndex, totalLength, false); + } + return allChunks; + }; + + function identity(value) { + return value; + } + + function escapeRegExpFn(str) { + return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&'); + } + +/***/ }) +/******/ ]); +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ "91GP": +/***/ (function(module, exports, __webpack_require__) { + +// 19.1.3.1 Object.assign(target, source) +var $export = __webpack_require__("XKFU"); + +$export($export.S + $export.F, 'Object', { assign: __webpack_require__("czNK") }); + + +/***/ }), + +/***/ "DVgA": +/***/ (function(module, exports, __webpack_require__) { + +// 19.1.2.14 / 15.2.3.14 Object.keys(O) +var $keys = __webpack_require__("zhAb"); +var enumBugKeys = __webpack_require__("4R4u"); + +module.exports = Object.keys || function keys(O) { + return $keys(O, enumBugKeys); +}; + + +/***/ }), + +/***/ "EemH": +/***/ (function(module, exports, __webpack_require__) { + +var pIE = __webpack_require__("UqcF"); +var createDesc = __webpack_require__("RjD/"); +var toIObject = __webpack_require__("aCFj"); +var toPrimitive = __webpack_require__("apmT"); +var has = __webpack_require__("aagx"); +var IE8_DOM_DEFINE = __webpack_require__("xpql"); +var gOPD = Object.getOwnPropertyDescriptor; + +exports.f = __webpack_require__("nh4g") ? gOPD : function getOwnPropertyDescriptor(O, P) { + O = toIObject(O); + P = toPrimitive(P, true); + if (IE8_DOM_DEFINE) try { + return gOPD(O, P); + } catch (e) { /* empty */ } + if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]); +}; + + +/***/ }), + +/***/ "FJW5": +/***/ (function(module, exports, __webpack_require__) { + +var dP = __webpack_require__("hswa"); +var anObject = __webpack_require__("y3w9"); +var getKeys = __webpack_require__("DVgA"); + +module.exports = __webpack_require__("nh4g") ? Object.defineProperties : function defineProperties(O, Properties) { + anObject(O); + var keys = getKeys(Properties); + var length = keys.length; + var i = 0; + var P; + while (length > i) dP.f(O, P = keys[i++], Properties[P]); + return O; +}; + + +/***/ }), + +/***/ "HrLf": +/***/ (function(module, exports, __webpack_require__) { + +// This file is imported into lib/wc client bundles. + +if (typeof window !== 'undefined') { + var i + if ((i = window.document.currentScript) && (i = i.src.match(/(.+\/)[^/]+\.js$/))) { + __webpack_require__.p = i[1] // eslint-disable-line + } +} + + +/***/ }), + +/***/ "Iw71": +/***/ (function(module, exports, __webpack_require__) { + +var isObject = __webpack_require__("0/R4"); +var document = __webpack_require__("dyZX").document; +// typeof document.createElement is 'object' in old IE +var is = isObject(document) && isObject(document.createElement); +module.exports = function (it) { + return is ? document.createElement(it) : {}; +}; + + +/***/ }), + +/***/ "JiEa": +/***/ (function(module, exports) { + +exports.f = Object.getOwnPropertySymbols; + + +/***/ }), + +/***/ "KroJ": +/***/ (function(module, exports, __webpack_require__) { + +var global = __webpack_require__("dyZX"); +var hide = __webpack_require__("Mukb"); +var has = __webpack_require__("aagx"); +var SRC = __webpack_require__("ylqs")('src'); +var TO_STRING = 'toString'; +var $toString = Function[TO_STRING]; +var TPL = ('' + $toString).split(TO_STRING); + +__webpack_require__("g3g5").inspectSource = function (it) { + return $toString.call(it); +}; + +(module.exports = function (O, key, val, safe) { + var isFunction = typeof val == 'function'; + if (isFunction) has(val, 'name') || hide(val, 'name', key); + if (O[key] === val) return; + if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key))); + if (O === global) { + O[key] = val; + } else if (!safe) { + delete O[key]; + hide(O, key, val); + } else if (O[key]) { + O[key] = val; + } else { + hide(O, key, val); + } +// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative +})(Function.prototype, TO_STRING, function toString() { + return typeof this == 'function' && this[SRC] || $toString.call(this); +}); + + +/***/ }), + +/***/ "Kuth": +/***/ (function(module, exports, __webpack_require__) { + +// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) +var anObject = __webpack_require__("y3w9"); +var dPs = __webpack_require__("FJW5"); +var enumBugKeys = __webpack_require__("4R4u"); +var IE_PROTO = __webpack_require__("YTvA")('IE_PROTO'); +var Empty = function () { /* empty */ }; +var PROTOTYPE = 'prototype'; + +// Create object with fake `null` prototype: use iframe Object with cleared prototype +var createDict = function () { + // Thrash, waste and sodomy: IE GC bug + var iframe = __webpack_require__("Iw71")('iframe'); + var i = enumBugKeys.length; + var lt = '<'; + var gt = '>'; + var iframeDocument; + iframe.style.display = 'none'; + __webpack_require__("+rLv").appendChild(iframe); + iframe.src = 'javascript:'; // eslint-disable-line no-script-url + // createDict = iframe.contentWindow.Object; + // html.removeChild(iframe); + iframeDocument = iframe.contentWindow.document; + iframeDocument.open(); + iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt); + iframeDocument.close(); + createDict = iframeDocument.F; + while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]]; + return createDict(); +}; + +module.exports = Object.create || function create(O, Properties) { + var result; + if (O !== null) { + Empty[PROTOTYPE] = anObject(O); + result = new Empty(); + Empty[PROTOTYPE] = null; + // add "__proto__" for Object.getPrototypeOf polyfill + result[IE_PROTO] = O; + } else result = createDict(); + return Properties === undefined ? result : dPs(result, Properties); +}; + + +/***/ }), + +/***/ "LQAc": +/***/ (function(module, exports) { + +module.exports = false; + + +/***/ }), + +/***/ "LZWt": +/***/ (function(module, exports) { + +var toString = {}.toString; + +module.exports = function (it) { + return toString.call(it).slice(8, -1); +}; + + +/***/ }), + +/***/ "Mukb": +/***/ (function(module, exports, __webpack_require__) { + +var dP = __webpack_require__("hswa"); +var createDesc = __webpack_require__("RjD/"); +module.exports = __webpack_require__("nh4g") ? function (object, key, value) { + return dP.f(object, key, createDesc(1, value)); +} : function (object, key, value) { + object[key] = value; + return object; +}; + + +/***/ }), + +/***/ "RYi7": +/***/ (function(module, exports) { + +// 7.1.4 ToInteger +var ceil = Math.ceil; +var floor = Math.floor; +module.exports = function (it) { + return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); +}; + + +/***/ }), + +/***/ "RjD/": +/***/ (function(module, exports) { + +module.exports = function (bitmap, value) { + return { + enumerable: !(bitmap & 1), + configurable: !(bitmap & 2), + writable: !(bitmap & 4), + value: value + }; +}; + + +/***/ }), + +/***/ "S/j/": +/***/ (function(module, exports, __webpack_require__) { + +// 7.1.13 ToObject(argument) +var defined = __webpack_require__("vhPU"); +module.exports = function (it) { + return Object(defined(it)); +}; + + +/***/ }), + +/***/ "UqcF": +/***/ (function(module, exports) { + +exports.f = {}.propertyIsEnumerable; + + +/***/ }), + +/***/ "VTer": +/***/ (function(module, exports, __webpack_require__) { + +var core = __webpack_require__("g3g5"); +var global = __webpack_require__("dyZX"); +var SHARED = '__core-js_shared__'; +var store = global[SHARED] || (global[SHARED] = {}); + +(module.exports = function (key, value) { + return store[key] || (store[key] = value !== undefined ? value : {}); +})('versions', []).push({ + version: core.version, + mode: __webpack_require__("LQAc") ? 'pure' : 'global', + copyright: '© 2018 Denis Pushkarev (zloirock.ru)' +}); + + +/***/ }), + +/***/ "XKFU": +/***/ (function(module, exports, __webpack_require__) { + +var global = __webpack_require__("dyZX"); +var core = __webpack_require__("g3g5"); +var hide = __webpack_require__("Mukb"); +var redefine = __webpack_require__("KroJ"); +var ctx = __webpack_require__("m0Pp"); +var PROTOTYPE = 'prototype'; + +var $export = function (type, name, source) { + var IS_FORCED = type & $export.F; + var IS_GLOBAL = type & $export.G; + var IS_STATIC = type & $export.S; + var IS_PROTO = type & $export.P; + var IS_BIND = type & $export.B; + var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE]; + var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); + var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {}); + var key, own, out, exp; + if (IS_GLOBAL) source = name; + for (key in source) { + // contains in native + own = !IS_FORCED && target && target[key] !== undefined; + // export native or passed + out = (own ? target : source)[key]; + // bind timers to global for call from export context + exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; + // extend global + if (target) redefine(target, key, out, type & $export.U); + // export + if (exports[key] != out) hide(exports, key, exp); + if (IS_PROTO && expProto[key] != out) expProto[key] = out; + } +}; +global.core = core; +// type bitmap +$export.F = 1; // forced +$export.G = 2; // global +$export.S = 4; // static +$export.P = 8; // proto +$export.B = 16; // bind +$export.W = 32; // wrap +$export.U = 64; // safe +$export.R = 128; // real proto method for `library` +module.exports = $export; + + +/***/ }), + +/***/ "Xbzi": +/***/ (function(module, exports, __webpack_require__) { + +var isObject = __webpack_require__("0/R4"); +var setPrototypeOf = __webpack_require__("i5dc").set; +module.exports = function (that, target, C) { + var S = target.constructor; + var P; + if (S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf) { + setPrototypeOf(that, P); + } return that; +}; + + +/***/ }), + +/***/ "YTvA": +/***/ (function(module, exports, __webpack_require__) { + +var shared = __webpack_require__("VTer")('keys'); +var uid = __webpack_require__("ylqs"); +module.exports = function (key) { + return shared[key] || (shared[key] = uid(key)); +}; + + +/***/ }), + +/***/ "Ymqv": +/***/ (function(module, exports, __webpack_require__) { + +// fallback for non-array-like ES3 and non-enumerable old V8 strings +var cof = __webpack_require__("LZWt"); +// eslint-disable-next-line no-prototype-builtins +module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) { + return cof(it) == 'String' ? it.split('') : Object(it); +}; + + +/***/ }), + +/***/ "aCFj": +/***/ (function(module, exports, __webpack_require__) { + +// to indexed object, toObject with fallback for non-array-like ES3 strings +var IObject = __webpack_require__("Ymqv"); +var defined = __webpack_require__("vhPU"); +module.exports = function (it) { + return IObject(defined(it)); +}; + + +/***/ }), + +/***/ "aagx": +/***/ (function(module, exports) { + +var hasOwnProperty = {}.hasOwnProperty; +module.exports = function (it, key) { + return hasOwnProperty.call(it, key); +}; + + +/***/ }), + +/***/ "apmT": +/***/ (function(module, exports, __webpack_require__) { + +// 7.1.1 ToPrimitive(input [, PreferredType]) +var isObject = __webpack_require__("0/R4"); +// instead of the ES6 spec version, we didn't implement @@toPrimitive case +// and the second argument - flag - preferred type is a string +module.exports = function (it, S) { + if (!isObject(it)) return it; + var fn, val; + if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; + if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val; + if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; + throw TypeError("Can't convert object to primitive value"); +}; + + +/***/ }), + +/***/ "czNK": +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +// 19.1.2.1 Object.assign(target, source, ...) +var getKeys = __webpack_require__("DVgA"); +var gOPS = __webpack_require__("JiEa"); +var pIE = __webpack_require__("UqcF"); +var toObject = __webpack_require__("S/j/"); +var IObject = __webpack_require__("Ymqv"); +var $assign = Object.assign; + +// should work with symbols and should have deterministic property order (V8 bug) +module.exports = !$assign || __webpack_require__("eeVq")(function () { + var A = {}; + var B = {}; + // eslint-disable-next-line no-undef + var S = Symbol(); + var K = 'abcdefghijklmnopqrst'; + A[S] = 7; + K.split('').forEach(function (k) { B[k] = k; }); + return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K; +}) ? function assign(target, source) { // eslint-disable-line no-unused-vars + var T = toObject(target); + var aLen = arguments.length; + var index = 1; + var getSymbols = gOPS.f; + var isEnum = pIE.f; + while (aLen > index) { + var S = IObject(arguments[index++]); + var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S); + var length = keys.length; + var j = 0; + var key; + while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key]; + } return T; +} : $assign; + + +/***/ }), + +/***/ "d/Gc": +/***/ (function(module, exports, __webpack_require__) { + +var toInteger = __webpack_require__("RYi7"); +var max = Math.max; +var min = Math.min; +module.exports = function (index, length) { + index = toInteger(index); + return index < 0 ? max(index + length, 0) : min(index, length); +}; + + +/***/ }), + +/***/ "dyZX": +/***/ (function(module, exports) { + +// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 +var global = module.exports = typeof window != 'undefined' && window.Math == Math + ? window : typeof self != 'undefined' && self.Math == Math ? self + // eslint-disable-next-line no-new-func + : Function('return this')(); +if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef + + +/***/ }), + +/***/ "eeVq": +/***/ (function(module, exports) { + +module.exports = function (exec) { + try { + return !!exec(); + } catch (e) { + return true; + } +}; + + +/***/ }), + +/***/ "g3g5": +/***/ (function(module, exports) { + +var core = module.exports = { version: '2.5.7' }; +if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef + + +/***/ }), + +/***/ "hswa": +/***/ (function(module, exports, __webpack_require__) { + +var anObject = __webpack_require__("y3w9"); +var IE8_DOM_DEFINE = __webpack_require__("xpql"); +var toPrimitive = __webpack_require__("apmT"); +var dP = Object.defineProperty; + +exports.f = __webpack_require__("nh4g") ? Object.defineProperty : function defineProperty(O, P, Attributes) { + anObject(O); + P = toPrimitive(P, true); + anObject(Attributes); + if (IE8_DOM_DEFINE) try { + return dP(O, P, Attributes); + } catch (e) { /* empty */ } + if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!'); + if ('value' in Attributes) O[P] = Attributes.value; + return O; +}; + + +/***/ }), + +/***/ "i5dc": +/***/ (function(module, exports, __webpack_require__) { + +// Works with __proto__ only. Old v8 can't work with null proto objects. +/* eslint-disable no-proto */ +var isObject = __webpack_require__("0/R4"); +var anObject = __webpack_require__("y3w9"); +var check = function (O, proto) { + anObject(O); + if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!"); +}; +module.exports = { + set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line + function (test, buggy, set) { + try { + set = __webpack_require__("m0Pp")(Function.call, __webpack_require__("EemH").f(Object.prototype, '__proto__').set, 2); + set(test, []); + buggy = !(test instanceof Array); + } catch (e) { buggy = true; } + return function setPrototypeOf(O, proto) { + check(O, proto); + if (buggy) O.__proto__ = proto; + else set(O, proto); + return O; + }; + }({}, false) : undefined), + check: check +}; + + +/***/ }), + +/***/ "kJMx": +/***/ (function(module, exports, __webpack_require__) { + +// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O) +var $keys = __webpack_require__("zhAb"); +var hiddenKeys = __webpack_require__("4R4u").concat('length', 'prototype'); + +exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { + return $keys(O, hiddenKeys); +}; + + +/***/ }), + +/***/ "m0Pp": +/***/ (function(module, exports, __webpack_require__) { + +// optional / simple context binding +var aFunction = __webpack_require__("2OiF"); +module.exports = function (fn, that, length) { + aFunction(fn); + if (that === undefined) return fn; + switch (length) { + case 1: return function (a) { + return fn.call(that, a); + }; + case 2: return function (a, b) { + return fn.call(that, a, b); + }; + case 3: return function (a, b, c) { + return fn.call(that, a, b, c); + }; + } + return function (/* ...args */) { + return fn.apply(that, arguments); + }; +}; + + +/***/ }), + +/***/ "ne8i": +/***/ (function(module, exports, __webpack_require__) { + +// 7.1.15 ToLength +var toInteger = __webpack_require__("RYi7"); +var min = Math.min; +module.exports = function (it) { + return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 +}; + + +/***/ }), + +/***/ "nh4g": +/***/ (function(module, exports, __webpack_require__) { + +// Thank's IE8 for his funny defineProperty +module.exports = !__webpack_require__("eeVq")(function () { + return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; +}); + + +/***/ }), + +/***/ "qncB": +/***/ (function(module, exports, __webpack_require__) { + +var $export = __webpack_require__("XKFU"); +var defined = __webpack_require__("vhPU"); +var fails = __webpack_require__("eeVq"); +var spaces = __webpack_require__("/e88"); +var space = '[' + spaces + ']'; +var non = '\u200b\u0085'; +var ltrim = RegExp('^' + space + space + '*'); +var rtrim = RegExp(space + space + '*$'); + +var exporter = function (KEY, exec, ALIAS) { + var exp = {}; + var FORCE = fails(function () { + return !!spaces[KEY]() || non[KEY]() != non; + }); + var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY]; + if (ALIAS) exp[ALIAS] = fn; + $export($export.P + $export.F * FORCE, 'String', exp); +}; + +// 1 -> String#trimLeft +// 2 -> String#trimRight +// 3 -> String#trim +var trim = exporter.trim = function (string, TYPE) { + string = String(defined(string)); + if (TYPE & 1) string = string.replace(ltrim, ''); + if (TYPE & 2) string = string.replace(rtrim, ''); + return string; +}; + +module.exports = exporter; + + +/***/ }), + +/***/ "vhPU": +/***/ (function(module, exports) { + +// 7.2.1 RequireObjectCoercible(argument) +module.exports = function (it) { + if (it == undefined) throw TypeError("Can't call method on " + it); + return it; +}; + + +/***/ }), + +/***/ "w2a5": +/***/ (function(module, exports, __webpack_require__) { + +// false -> Array#indexOf +// true -> Array#includes +var toIObject = __webpack_require__("aCFj"); +var toLength = __webpack_require__("ne8i"); +var toAbsoluteIndex = __webpack_require__("d/Gc"); +module.exports = function (IS_INCLUDES) { + return function ($this, el, fromIndex) { + var O = toIObject($this); + var length = toLength(O.length); + var index = toAbsoluteIndex(fromIndex, length); + var value; + // Array#includes uses SameValueZero equality algorithm + // eslint-disable-next-line no-self-compare + if (IS_INCLUDES && el != el) while (length > index) { + value = O[index++]; + // eslint-disable-next-line no-self-compare + if (value != value) return true; + // Array#indexOf ignores holes, Array#includes - not + } else for (;length > index; index++) if (IS_INCLUDES || index in O) { + if (O[index] === el) return IS_INCLUDES || index || 0; + } return !IS_INCLUDES && -1; + }; +}; + + +/***/ }), + +/***/ "xfY5": +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var global = __webpack_require__("dyZX"); +var has = __webpack_require__("aagx"); +var cof = __webpack_require__("LZWt"); +var inheritIfRequired = __webpack_require__("Xbzi"); +var toPrimitive = __webpack_require__("apmT"); +var fails = __webpack_require__("eeVq"); +var gOPN = __webpack_require__("kJMx").f; +var gOPD = __webpack_require__("EemH").f; +var dP = __webpack_require__("hswa").f; +var $trim = __webpack_require__("qncB").trim; +var NUMBER = 'Number'; +var $Number = global[NUMBER]; +var Base = $Number; +var proto = $Number.prototype; +// Opera ~12 has broken Object#toString +var BROKEN_COF = cof(__webpack_require__("Kuth")(proto)) == NUMBER; +var TRIM = 'trim' in String.prototype; + +// 7.1.3 ToNumber(argument) +var toNumber = function (argument) { + var it = toPrimitive(argument, false); + if (typeof it == 'string' && it.length > 2) { + it = TRIM ? it.trim() : $trim(it, 3); + var first = it.charCodeAt(0); + var third, radix, maxCode; + if (first === 43 || first === 45) { + third = it.charCodeAt(2); + if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix + } else if (first === 48) { + switch (it.charCodeAt(1)) { + case 66: case 98: radix = 2; maxCode = 49; break; // fast equal /^0b[01]+$/i + case 79: case 111: radix = 8; maxCode = 55; break; // fast equal /^0o[0-7]+$/i + default: return +it; + } + for (var digits = it.slice(2), i = 0, l = digits.length, code; i < l; i++) { + code = digits.charCodeAt(i); + // parseInt parses a string to a first unavailable symbol + // but ToNumber should return NaN if a string contains unavailable symbols + if (code < 48 || code > maxCode) return NaN; + } return parseInt(digits, radix); + } + } return +it; +}; + +if (!$Number(' 0o1') || !$Number('0b1') || $Number('+0x1')) { + $Number = function Number(value) { + var it = arguments.length < 1 ? 0 : value; + var that = this; + return that instanceof $Number + // check on 1..constructor(foo) case + && (BROKEN_COF ? fails(function () { proto.valueOf.call(that); }) : cof(that) != NUMBER) + ? inheritIfRequired(new Base(toNumber(it)), that, $Number) : toNumber(it); + }; + for (var keys = __webpack_require__("nh4g") ? gOPN(Base) : ( + // ES3: + 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' + + // ES6 (in case, if modules with ES6 Number statics required before): + 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' + + 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger' + ).split(','), j = 0, key; keys.length > j; j++) { + if (has(Base, key = keys[j]) && !has($Number, key)) { + dP($Number, key, gOPD(Base, key)); + } + } + $Number.prototype = proto; + proto.constructor = $Number; + __webpack_require__("KroJ")(global, NUMBER, $Number); +} + + +/***/ }), + +/***/ "xpql": +/***/ (function(module, exports, __webpack_require__) { + +module.exports = !__webpack_require__("nh4g") && !__webpack_require__("eeVq")(function () { + return Object.defineProperty(__webpack_require__("Iw71")('div'), 'a', { get: function () { return 7; } }).a != 7; +}); + + +/***/ }), + +/***/ "y3w9": +/***/ (function(module, exports, __webpack_require__) { + +var isObject = __webpack_require__("0/R4"); +module.exports = function (it) { + if (!isObject(it)) throw TypeError(it + ' is not an object!'); + return it; +}; + + +/***/ }), + +/***/ "ylqs": +/***/ (function(module, exports) { + +var id = 0; +var px = Math.random(); +module.exports = function (key) { + return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); +}; + + +/***/ }), + +/***/ "zhAb": +/***/ (function(module, exports, __webpack_require__) { + +var has = __webpack_require__("aagx"); +var toIObject = __webpack_require__("aCFj"); +var arrayIndexOf = __webpack_require__("w2a5")(false); +var IE_PROTO = __webpack_require__("YTvA")('IE_PROTO'); + +module.exports = function (object, names) { + var O = toIObject(object); + var i = 0; + var result = []; + var key; + for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key); + // Don't enum bug & hidden keys + while (names.length > i) if (has(O, key = names[i++])) { + ~arrayIndexOf(result, key) || result.push(key); + } + return result; +}; + + +/***/ }) + +/******/ })["default"]; +//# sourceMappingURL=vue-highlight-words.common.js.map \ No newline at end of file diff --git a/dist/vue-highlight-words.common.js.map b/dist/vue-highlight-words.common.js.map new file mode 100644 index 0000000..76a9636 --- /dev/null +++ b/dist/vue-highlight-words.common.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack://vue-highlight-words/webpack/bootstrap","webpack://vue-highlight-words/./node_modules/core-js/modules/_html.js","webpack://vue-highlight-words/./src/components/HighlightWords.js","webpack://vue-highlight-words/./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_string-ws.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_is-object.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_a-function.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_enum-bug-keys.js","webpack://vue-highlight-words/./node_modules/highlight-words-core/dist/index.js","webpack://vue-highlight-words/./node_modules/core-js/modules/es6.object.assign.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_object-keys.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_object-gopd.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_object-dps.js","webpack://vue-highlight-words/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_dom-create.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_object-gops.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_redefine.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_object-create.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_library.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_cof.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_hide.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_to-integer.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_property-desc.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_to-object.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_object-pie.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_shared.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_export.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_inherit-if-required.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_shared-key.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_iobject.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_to-iobject.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_has.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_to-primitive.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_object-assign.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_to-absolute-index.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_global.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_fails.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_core.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_object-dp.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_set-proto.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_object-gopn.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_ctx.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_to-length.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_descriptors.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_string-trim.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_defined.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_array-includes.js","webpack://vue-highlight-words/./node_modules/core-js/modules/es6.number.constructor.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_ie8-dom-define.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_an-object.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_uid.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_object-keys-internal.js"],"names":["functional","props","activeClassName","String","activeIndex","Number","activeStyle","Object","autoEscape","Boolean","className","findChunks","Function","highlightClassName","highlightStyle","highlightTag","Node","sanitize","searchWords","type","Array","validator","value","every","word","required","textToHighlight","unhighlightClassName","unhighlightStyle","render","h","context","caseSensitive","chunks","findAll","HighlightTag","highlightCount","highlightClassNames","highlightStyles","map","chunk","index","text","substr","start","end","high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WAAWX,mBAAmB,CAAChC,WAArC;AAEAiC,wCAAyBxB,kBAAzB,cACEkC,WAAW7C,eAAX,GAA6B,EAD/B;AAGAoC,0BACES,aAAa,IAAb,IAAqBzC,eAAe,IAApC,GACIC,OAAOyC,MAAP,CAAc,EAAd,EAAkBlC,cAAlB,EAAkCR,WAAlC,CADJ,GAEIQ,cAHN;AAKA,eACE,EAAC,YAAD;AACE,mBAAOuB,mBADT;AAEE,eAAKI,KAFP;AAGE,iBAAOH;AAHT,YAKGI,IALH,EADF;AASD,OAtBD,MAsBO;AACL,eACE;AAAA;AACE,uBAAWf;AADb;AAEE,eAAKc,KAFP;AAGE,iBAAOb;AAHT,YAKGc,IALH,EADF;AASD;AACF,KAvCA,CADH,EADF;AA4CD;AAxGY,CAAf,E;;ACFA;AACA;+EACA;AACA;;;;;;;;ACHA;AACA;;;;;;;;ACDA;AACA;AACA;;;;;;;;ACFA;AACA;AACA;AACA;;;;;;;;ACHA;AACA;AACA;AACA;;;;;;;;ACHA;AACA,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;;;AAGA,OAAO;AACP;AACA;;AAEA;;AAEA;AACA;AACA,EAAE;;AAEF;;AAEA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA,EAAE;;AAEF,OAAO;AACP;AACA;;AAEA;;AAEA;AACA;AACA,EAAE;AACF;AACA;AACA,iDAAiD,8CAA8C;AAC/F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR,MAAM;AACN;AACA,IAAI;AACJ;;AAEA;AACA,uBAAuB,yBAAyB;AAChD,aAAa,yBAAyB;AACtC;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,wCAAwC;AACvE,QAAQ;AACR;AACA;AACA;AACA;AACA,IAAI;;AAEJ;AACA;;AAEA;AACA;AACA,6EAA6E,yBAAyB;AACtG,aAAa,yBAAyB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,yBAAyB;AAC/C;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,8BAA8B,yBAAyB;AACvD;AACA,aAAa,4CAA4C;AACzD;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,kCAAkC,EAAE;AACpC;;AAEA,OAAO;AACP;AACA,iC;;;;;;;AC3PA;AACA;;AAEA,0CAA0C,sCAAsC;;;;;;;;ACHhF;AACA;AACA;;AAEA;AACA;AACA;;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG,YAAY;AACf;AACA;;;;;;;;ACfA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACZA;;AAEA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACNA;;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA;AACA,CAAC;AACD;AACA,CAAC;;;;;;;;AC9BD;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;;;;;;;ACxCA;;;;;;;;ACAA,iBAAiB;;AAEjB;AACA;AACA;;;;;;;;ACJA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;;;;;;;;ACPA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACPA;AACA;AACA;AACA;AACA;;;;;;;;ACJA,cAAc;;;;;;;;ACAd;AACA;AACA;AACA,kDAAkD;;AAElD;AACA,qEAAqE;AACrE,CAAC;AACD;AACA;AACA;AACA,CAAC;;;;;;;;ACXD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,kFAAkF,uBAAuB;AACzG,iEAAiE;AACjE,+DAA+D;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,eAAe;AACf,eAAe;AACf,eAAe;AACf,gBAAgB;AAChB;;;;;;;;AC1CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;;;;;;;ACRA;AACA;AACA;AACA;AACA;;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACLA,uBAAuB;AACvB;AACA;AACA;;;;;;;;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,UAAU,EAAE;AAChD,mBAAmB,sCAAsC;AACzD,CAAC,qCAAqC;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,CAAC;;;;;;;;ACjCD;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA,yCAAyC;;;;;;;;ACLzC;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;;;;;;;ACNA,6BAA6B;AAC7B,uCAAuC;;;;;;;;ACDvC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG,YAAY;AACf;AACA;AACA;AACA;;;;;;;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAkD;AAClD;AACA;AACA;AACA;AACA;AACA,OAAO,YAAY,cAAc;AACjC;AACA;AACA;AACA;AACA;AACA;AACA,KAAK,GAAG;AACR;AACA;;;;;;;;ACxBA;AACA;AACA;;AAEA;AACA;AACA;;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACnBA;AACA;AACA;AACA;AACA,2DAA2D;AAC3D;;;;;;;;ACLA;AACA;AACA,iCAAiC,QAAQ,mBAAmB,UAAU,EAAE,EAAE;AAC1E,CAAC;;;;;;;;ACHD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC7BA;AACA;AACA;AACA;AACA;;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK,YAAY,eAAe;AAChC;AACA,KAAK;AACL;AACA;;;;;;;;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD;AACpD,KAAK;AACL;AACA,oCAAoC,cAAc,OAAO;AACzD,qCAAqC,cAAc,OAAO;AAC1D;AACA;AACA,oEAAoE,OAAO;AAC3E;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C,0BAA0B,EAAE;AACtE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,iBAAiB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACpEA;AACA,yEAAsE,mBAAmB,UAAU,EAAE,EAAE;AACvG,CAAC;;;;;;;;ACFD;AACA;AACA;AACA;AACA;;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;;ACJA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"vue-highlight-words.common.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"+xUi\");\n","var document = require('./_global').document;\nmodule.exports = document && document.documentElement;\n","import { findAll } from 'highlight-words-core'\n\nexport default {\n functional: true,\n props: {\n activeClassName: String,\n activeIndex: Number,\n activeStyle: Object,\n autoEscape: Boolean,\n className: String,\n findChunks: Function,\n highlightClassName: String,\n highlightStyle: Object,\n highlightTag: [Node, Function, String],\n sanitize: Function,\n searchWords: {\n type: Array, // Array\n validator(value) {\n return value.every(word => typeof word === 'string')\n },\n required: true\n },\n textToHighlight: {\n type: String,\n required: true\n },\n unhighlightClassName: String,\n unhighlightStyle: Object\n },\n render(h, context) {\n const {\n activeClassName = '',\n activeIndex = -1,\n activeStyle,\n autoEscape,\n caseSensitive = false,\n className,\n findChunks,\n highlightClassName = '',\n highlightStyle = {},\n highlightTag = 'mark',\n sanitize,\n searchWords,\n textToHighlight,\n unhighlightClassName = '',\n unhighlightStyle\n } = context.props\n\n const chunks = findAll({\n autoEscape,\n caseSensitive,\n findChunks,\n sanitize,\n searchWords,\n textToHighlight\n })\n\n const HighlightTag = highlightTag\n let highlightCount = -1\n let highlightClassNames = ''\n let highlightStyles\n\n return (\n \n {chunks.map((chunk, index) => {\n const text = textToHighlight.substr(\n chunk.start,\n chunk.end - chunk.start\n )\n\n if (chunk.highlight) {\n highlightCount++\n\n const isActive = highlightCount === +activeIndex\n\n highlightClassNames = `${highlightClassName} ${\n isActive ? activeClassName : ''\n }`\n highlightStyles =\n isActive === true && activeStyle != null\n ? Object.assign({}, highlightStyle, activeStyle)\n : highlightStyle\n\n return (\n \n {text}\n \n )\n } else {\n return (\n \n {text}\n \n )\n }\n })}\n \n )\n }\n}\n","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n","module.exports = '\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003' +\n '\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF';\n","module.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n","module.exports = function (it) {\n if (typeof it != 'function') throw TypeError(it + ' is not a function!');\n return it;\n};\n","// IE 8- don't enum bug keys\nmodule.exports = (\n 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'\n).split(',');\n","module.exports =\n/******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId])\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\texports: {},\n/******/ \t\t\tid: moduleId,\n/******/ \t\t\tloaded: false\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.loaded = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(0);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\tmodule.exports = __webpack_require__(1);\n\n\n/***/ }),\n/* 1 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _utils = __webpack_require__(2);\n\t\n\tObject.defineProperty(exports, 'combineChunks', {\n\t enumerable: true,\n\t get: function get() {\n\t return _utils.combineChunks;\n\t }\n\t});\n\tObject.defineProperty(exports, 'fillInChunks', {\n\t enumerable: true,\n\t get: function get() {\n\t return _utils.fillInChunks;\n\t }\n\t});\n\tObject.defineProperty(exports, 'findAll', {\n\t enumerable: true,\n\t get: function get() {\n\t return _utils.findAll;\n\t }\n\t});\n\tObject.defineProperty(exports, 'findChunks', {\n\t enumerable: true,\n\t get: function get() {\n\t return _utils.findChunks;\n\t }\n\t});\n\n/***/ }),\n/* 2 */\n/***/ (function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t/**\n\t * Creates an array of chunk objects representing both higlightable and non highlightable pieces of text that match each search word.\n\t * @return Array of \"chunks\" (where a Chunk is { start:number, end:number, highlight:boolean })\n\t */\n\tvar findAll = exports.findAll = function findAll(_ref) {\n\t var autoEscape = _ref.autoEscape,\n\t _ref$caseSensitive = _ref.caseSensitive,\n\t caseSensitive = _ref$caseSensitive === undefined ? false : _ref$caseSensitive,\n\t _ref$findChunks = _ref.findChunks,\n\t findChunks = _ref$findChunks === undefined ? defaultFindChunks : _ref$findChunks,\n\t sanitize = _ref.sanitize,\n\t searchWords = _ref.searchWords,\n\t textToHighlight = _ref.textToHighlight;\n\t return fillInChunks({\n\t chunksToHighlight: combineChunks({\n\t chunks: findChunks({\n\t autoEscape: autoEscape,\n\t caseSensitive: caseSensitive,\n\t sanitize: sanitize,\n\t searchWords: searchWords,\n\t textToHighlight: textToHighlight\n\t })\n\t }),\n\t totalLength: textToHighlight ? textToHighlight.length : 0\n\t });\n\t};\n\t\n\t/**\n\t * Takes an array of {start:number, end:number} objects and combines chunks that overlap into single chunks.\n\t * @return {start:number, end:number}[]\n\t */\n\tvar combineChunks = exports.combineChunks = function combineChunks(_ref2) {\n\t var chunks = _ref2.chunks;\n\t\n\t chunks = chunks.sort(function (first, second) {\n\t return first.start - second.start;\n\t }).reduce(function (processedChunks, nextChunk) {\n\t // First chunk just goes straight in the array...\n\t if (processedChunks.length === 0) {\n\t return [nextChunk];\n\t } else {\n\t // ... subsequent chunks get checked to see if they overlap...\n\t var prevChunk = processedChunks.pop();\n\t if (nextChunk.start <= prevChunk.end) {\n\t // It may be the case that prevChunk completely surrounds nextChunk, so take the\n\t // largest of the end indeces.\n\t var endIndex = Math.max(prevChunk.end, nextChunk.end);\n\t processedChunks.push({ start: prevChunk.start, end: endIndex });\n\t } else {\n\t processedChunks.push(prevChunk, nextChunk);\n\t }\n\t return processedChunks;\n\t }\n\t }, []);\n\t\n\t return chunks;\n\t};\n\t\n\t/**\n\t * Examine text for any matches.\n\t * If we find matches, add them to the returned array as a \"chunk\" object ({start:number, end:number}).\n\t * @return {start:number, end:number}[]\n\t */\n\tvar defaultFindChunks = function defaultFindChunks(_ref3) {\n\t var autoEscape = _ref3.autoEscape,\n\t caseSensitive = _ref3.caseSensitive,\n\t _ref3$sanitize = _ref3.sanitize,\n\t sanitize = _ref3$sanitize === undefined ? identity : _ref3$sanitize,\n\t searchWords = _ref3.searchWords,\n\t textToHighlight = _ref3.textToHighlight;\n\t\n\t textToHighlight = sanitize(textToHighlight);\n\t\n\t return searchWords.filter(function (searchWord) {\n\t return searchWord;\n\t }) // Remove empty words\n\t .reduce(function (chunks, searchWord) {\n\t searchWord = sanitize(searchWord);\n\t\n\t if (autoEscape) {\n\t searchWord = escapeRegExpFn(searchWord);\n\t }\n\t\n\t var regex = new RegExp(searchWord, caseSensitive ? 'g' : 'gi');\n\t\n\t var match = void 0;\n\t while (match = regex.exec(textToHighlight)) {\n\t var start = match.index;\n\t var end = regex.lastIndex;\n\t // We do not return zero-length matches\n\t if (end > start) {\n\t chunks.push({ start: start, end: end });\n\t }\n\t\n\t // Prevent browsers like Firefox from getting stuck in an infinite loop\n\t // See http://www.regexguru.com/2008/04/watch-out-for-zero-length-matches/\n\t if (match.index == regex.lastIndex) {\n\t regex.lastIndex++;\n\t }\n\t }\n\t\n\t return chunks;\n\t }, []);\n\t};\n\t// Allow the findChunks to be overridden in findAll,\n\t// but for backwards compatibility we export as the old name\n\texports.findChunks = defaultFindChunks;\n\t\n\t/**\n\t * Given a set of chunks to highlight, create an additional set of chunks\n\t * to represent the bits of text between the highlighted text.\n\t * @param chunksToHighlight {start:number, end:number}[]\n\t * @param totalLength number\n\t * @return {start:number, end:number, highlight:boolean}[]\n\t */\n\t\n\tvar fillInChunks = exports.fillInChunks = function fillInChunks(_ref4) {\n\t var chunksToHighlight = _ref4.chunksToHighlight,\n\t totalLength = _ref4.totalLength;\n\t\n\t var allChunks = [];\n\t var append = function append(start, end, highlight) {\n\t if (end - start > 0) {\n\t allChunks.push({\n\t start: start,\n\t end: end,\n\t highlight: highlight\n\t });\n\t }\n\t };\n\t\n\t if (chunksToHighlight.length === 0) {\n\t append(0, totalLength, false);\n\t } else {\n\t var lastIndex = 0;\n\t chunksToHighlight.forEach(function (chunk) {\n\t append(lastIndex, chunk.start, false);\n\t append(chunk.start, chunk.end, true);\n\t lastIndex = chunk.end;\n\t });\n\t append(lastIndex, totalLength, false);\n\t }\n\t return allChunks;\n\t};\n\t\n\tfunction identity(value) {\n\t return value;\n\t}\n\t\n\tfunction escapeRegExpFn(str) {\n\t return str.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g, '\\\\$&');\n\t}\n\n/***/ })\n/******/ ]);\n//# sourceMappingURL=index.js.map","// 19.1.3.1 Object.assign(target, source)\nvar $export = require('./_export');\n\n$export($export.S + $export.F, 'Object', { assign: require('./_object-assign') });\n","// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys = require('./_object-keys-internal');\nvar enumBugKeys = require('./_enum-bug-keys');\n\nmodule.exports = Object.keys || function keys(O) {\n return $keys(O, enumBugKeys);\n};\n","var pIE = require('./_object-pie');\nvar createDesc = require('./_property-desc');\nvar toIObject = require('./_to-iobject');\nvar toPrimitive = require('./_to-primitive');\nvar has = require('./_has');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar gOPD = Object.getOwnPropertyDescriptor;\n\nexports.f = require('./_descriptors') ? gOPD : function getOwnPropertyDescriptor(O, P) {\n O = toIObject(O);\n P = toPrimitive(P, true);\n if (IE8_DOM_DEFINE) try {\n return gOPD(O, P);\n } catch (e) { /* empty */ }\n if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);\n};\n","var dP = require('./_object-dp');\nvar anObject = require('./_an-object');\nvar getKeys = require('./_object-keys');\n\nmodule.exports = require('./_descriptors') ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = getKeys(Properties);\n var length = keys.length;\n var i = 0;\n var P;\n while (length > i) dP.f(O, P = keys[i++], Properties[P]);\n return O;\n};\n","// This file is imported into lib/wc client bundles.\n\nif (typeof window !== 'undefined') {\n var i\n if ((i = window.document.currentScript) && (i = i.src.match(/(.+\\/)[^/]+\\.js$/))) {\n __webpack_public_path__ = i[1] // eslint-disable-line\n }\n}\n","var isObject = require('./_is-object');\nvar document = require('./_global').document;\n// typeof document.createElement is 'object' in old IE\nvar is = isObject(document) && isObject(document.createElement);\nmodule.exports = function (it) {\n return is ? document.createElement(it) : {};\n};\n","exports.f = Object.getOwnPropertySymbols;\n","var global = require('./_global');\nvar hide = require('./_hide');\nvar has = require('./_has');\nvar SRC = require('./_uid')('src');\nvar TO_STRING = 'toString';\nvar $toString = Function[TO_STRING];\nvar TPL = ('' + $toString).split(TO_STRING);\n\nrequire('./_core').inspectSource = function (it) {\n return $toString.call(it);\n};\n\n(module.exports = function (O, key, val, safe) {\n var isFunction = typeof val == 'function';\n if (isFunction) has(val, 'name') || hide(val, 'name', key);\n if (O[key] === val) return;\n if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));\n if (O === global) {\n O[key] = val;\n } else if (!safe) {\n delete O[key];\n hide(O, key, val);\n } else if (O[key]) {\n O[key] = val;\n } else {\n hide(O, key, val);\n }\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype, TO_STRING, function toString() {\n return typeof this == 'function' && this[SRC] || $toString.call(this);\n});\n","// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\nvar anObject = require('./_an-object');\nvar dPs = require('./_object-dps');\nvar enumBugKeys = require('./_enum-bug-keys');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar Empty = function () { /* empty */ };\nvar PROTOTYPE = 'prototype';\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = require('./_dom-create')('iframe');\n var i = enumBugKeys.length;\n var lt = '<';\n var gt = '>';\n var iframeDocument;\n iframe.style.display = 'none';\n require('./_html').appendChild(iframe);\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n // createDict = iframe.contentWindow.Object;\n // html.removeChild(iframe);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);\n iframeDocument.close();\n createDict = iframeDocument.F;\n while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];\n return createDict();\n};\n\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n Empty[PROTOTYPE] = anObject(O);\n result = new Empty();\n Empty[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = createDict();\n return Properties === undefined ? result : dPs(result, Properties);\n};\n","module.exports = false;\n","var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n","var dP = require('./_object-dp');\nvar createDesc = require('./_property-desc');\nmodule.exports = require('./_descriptors') ? function (object, key, value) {\n return dP.f(object, key, createDesc(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","// 7.1.4 ToInteger\nvar ceil = Math.ceil;\nvar floor = Math.floor;\nmodule.exports = function (it) {\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","// 7.1.13 ToObject(argument)\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return Object(defined(it));\n};\n","exports.f = {}.propertyIsEnumerable;\n","var core = require('./_core');\nvar global = require('./_global');\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || (global[SHARED] = {});\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: core.version,\n mode: require('./_library') ? 'pure' : 'global',\n copyright: '© 2018 Denis Pushkarev (zloirock.ru)'\n});\n","var global = require('./_global');\nvar core = require('./_core');\nvar hide = require('./_hide');\nvar redefine = require('./_redefine');\nvar ctx = require('./_ctx');\nvar PROTOTYPE = 'prototype';\n\nvar $export = function (type, name, source) {\n var IS_FORCED = type & $export.F;\n var IS_GLOBAL = type & $export.G;\n var IS_STATIC = type & $export.S;\n var IS_PROTO = type & $export.P;\n var IS_BIND = type & $export.B;\n var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];\n var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});\n var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});\n var key, own, out, exp;\n if (IS_GLOBAL) source = name;\n for (key in source) {\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n // export native or passed\n out = (own ? target : source)[key];\n // bind timers to global for call from export context\n exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n // extend global\n if (target) redefine(target, key, out, type & $export.U);\n // export\n if (exports[key] != out) hide(exports, key, exp);\n if (IS_PROTO && expProto[key] != out) expProto[key] = out;\n }\n};\nglobal.core = core;\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library`\nmodule.exports = $export;\n","var isObject = require('./_is-object');\nvar setPrototypeOf = require('./_set-proto').set;\nmodule.exports = function (that, target, C) {\n var S = target.constructor;\n var P;\n if (S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf) {\n setPrototypeOf(that, P);\n } return that;\n};\n","var shared = require('./_shared')('keys');\nvar uid = require('./_uid');\nmodule.exports = function (key) {\n return shared[key] || (shared[key] = uid(key));\n};\n","// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = require('./_cof');\n// eslint-disable-next-line no-prototype-builtins\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n","// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = require('./_iobject');\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return IObject(defined(it));\n};\n","var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n","// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject = require('./_is-object');\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (it, S) {\n if (!isObject(it)) return it;\n var fn, val;\n if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;\n if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n","'use strict';\n// 19.1.2.1 Object.assign(target, source, ...)\nvar getKeys = require('./_object-keys');\nvar gOPS = require('./_object-gops');\nvar pIE = require('./_object-pie');\nvar toObject = require('./_to-object');\nvar IObject = require('./_iobject');\nvar $assign = Object.assign;\n\n// should work with symbols and should have deterministic property order (V8 bug)\nmodule.exports = !$assign || require('./_fails')(function () {\n var A = {};\n var B = {};\n // eslint-disable-next-line no-undef\n var S = Symbol();\n var K = 'abcdefghijklmnopqrst';\n A[S] = 7;\n K.split('').forEach(function (k) { B[k] = k; });\n return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;\n}) ? function assign(target, source) { // eslint-disable-line no-unused-vars\n var T = toObject(target);\n var aLen = arguments.length;\n var index = 1;\n var getSymbols = gOPS.f;\n var isEnum = pIE.f;\n while (aLen > index) {\n var S = IObject(arguments[index++]);\n var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);\n var length = keys.length;\n var j = 0;\n var key;\n while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key];\n } return T;\n} : $assign;\n","var toInteger = require('./_to-integer');\nvar max = Math.max;\nvar min = Math.min;\nmodule.exports = function (index, length) {\n index = toInteger(index);\n return index < 0 ? max(index + length, 0) : min(index, length);\n};\n","// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self\n // eslint-disable-next-line no-new-func\n : Function('return this')();\nif (typeof __g == 'number') __g = global; // eslint-disable-line no-undef\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\n};\n","var core = module.exports = { version: '2.5.7' };\nif (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n","var anObject = require('./_an-object');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar toPrimitive = require('./_to-primitive');\nvar dP = Object.defineProperty;\n\nexports.f = require('./_descriptors') ? Object.defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return dP(O, P, Attributes);\n } catch (e) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","// Works with __proto__ only. Old v8 can't work with null proto objects.\n/* eslint-disable no-proto */\nvar isObject = require('./_is-object');\nvar anObject = require('./_an-object');\nvar check = function (O, proto) {\n anObject(O);\n if (!isObject(proto) && proto !== null) throw TypeError(proto + \": can't set as prototype!\");\n};\nmodule.exports = {\n set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line\n function (test, buggy, set) {\n try {\n set = require('./_ctx')(Function.call, require('./_object-gopd').f(Object.prototype, '__proto__').set, 2);\n set(test, []);\n buggy = !(test instanceof Array);\n } catch (e) { buggy = true; }\n return function setPrototypeOf(O, proto) {\n check(O, proto);\n if (buggy) O.__proto__ = proto;\n else set(O, proto);\n return O;\n };\n }({}, false) : undefined),\n check: check\n};\n","// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)\nvar $keys = require('./_object-keys-internal');\nvar hiddenKeys = require('./_enum-bug-keys').concat('length', 'prototype');\n\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return $keys(O, hiddenKeys);\n};\n","// optional / simple context binding\nvar aFunction = require('./_a-function');\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","// 7.1.15 ToLength\nvar toInteger = require('./_to-integer');\nvar min = Math.min;\nmodule.exports = function (it) {\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n","// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./_fails')(function () {\n return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;\n});\n","var $export = require('./_export');\nvar defined = require('./_defined');\nvar fails = require('./_fails');\nvar spaces = require('./_string-ws');\nvar space = '[' + spaces + ']';\nvar non = '\\u200b\\u0085';\nvar ltrim = RegExp('^' + space + space + '*');\nvar rtrim = RegExp(space + space + '*$');\n\nvar exporter = function (KEY, exec, ALIAS) {\n var exp = {};\n var FORCE = fails(function () {\n return !!spaces[KEY]() || non[KEY]() != non;\n });\n var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY];\n if (ALIAS) exp[ALIAS] = fn;\n $export($export.P + $export.F * FORCE, 'String', exp);\n};\n\n// 1 -> String#trimLeft\n// 2 -> String#trimRight\n// 3 -> String#trim\nvar trim = exporter.trim = function (string, TYPE) {\n string = String(defined(string));\n if (TYPE & 1) string = string.replace(ltrim, '');\n if (TYPE & 2) string = string.replace(rtrim, '');\n return string;\n};\n\nmodule.exports = exporter;\n","// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n","// false -> Array#indexOf\n// true -> Array#includes\nvar toIObject = require('./_to-iobject');\nvar toLength = require('./_to-length');\nvar toAbsoluteIndex = require('./_to-absolute-index');\nmodule.exports = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) if (IS_INCLUDES || index in O) {\n if (O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n","'use strict';\nvar global = require('./_global');\nvar has = require('./_has');\nvar cof = require('./_cof');\nvar inheritIfRequired = require('./_inherit-if-required');\nvar toPrimitive = require('./_to-primitive');\nvar fails = require('./_fails');\nvar gOPN = require('./_object-gopn').f;\nvar gOPD = require('./_object-gopd').f;\nvar dP = require('./_object-dp').f;\nvar $trim = require('./_string-trim').trim;\nvar NUMBER = 'Number';\nvar $Number = global[NUMBER];\nvar Base = $Number;\nvar proto = $Number.prototype;\n// Opera ~12 has broken Object#toString\nvar BROKEN_COF = cof(require('./_object-create')(proto)) == NUMBER;\nvar TRIM = 'trim' in String.prototype;\n\n// 7.1.3 ToNumber(argument)\nvar toNumber = function (argument) {\n var it = toPrimitive(argument, false);\n if (typeof it == 'string' && it.length > 2) {\n it = TRIM ? it.trim() : $trim(it, 3);\n var first = it.charCodeAt(0);\n var third, radix, maxCode;\n if (first === 43 || first === 45) {\n third = it.charCodeAt(2);\n if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix\n } else if (first === 48) {\n switch (it.charCodeAt(1)) {\n case 66: case 98: radix = 2; maxCode = 49; break; // fast equal /^0b[01]+$/i\n case 79: case 111: radix = 8; maxCode = 55; break; // fast equal /^0o[0-7]+$/i\n default: return +it;\n }\n for (var digits = it.slice(2), i = 0, l = digits.length, code; i < l; i++) {\n code = digits.charCodeAt(i);\n // parseInt parses a string to a first unavailable symbol\n // but ToNumber should return NaN if a string contains unavailable symbols\n if (code < 48 || code > maxCode) return NaN;\n } return parseInt(digits, radix);\n }\n } return +it;\n};\n\nif (!$Number(' 0o1') || !$Number('0b1') || $Number('+0x1')) {\n $Number = function Number(value) {\n var it = arguments.length < 1 ? 0 : value;\n var that = this;\n return that instanceof $Number\n // check on 1..constructor(foo) case\n && (BROKEN_COF ? fails(function () { proto.valueOf.call(that); }) : cof(that) != NUMBER)\n ? inheritIfRequired(new Base(toNumber(it)), that, $Number) : toNumber(it);\n };\n for (var keys = require('./_descriptors') ? gOPN(Base) : (\n // ES3:\n 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +\n // ES6 (in case, if modules with ES6 Number statics required before):\n 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' +\n 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger'\n ).split(','), j = 0, key; keys.length > j; j++) {\n if (has(Base, key = keys[j]) && !has($Number, key)) {\n dP($Number, key, gOPD(Base, key));\n }\n }\n $Number.prototype = proto;\n proto.constructor = $Number;\n require('./_redefine')(global, NUMBER, $Number);\n}\n","module.exports = !require('./_descriptors') && !require('./_fails')(function () {\n return Object.defineProperty(require('./_dom-create')('div'), 'a', { get: function () { return 7; } }).a != 7;\n});\n","var isObject = require('./_is-object');\nmodule.exports = function (it) {\n if (!isObject(it)) throw TypeError(it + ' is not an object!');\n return it;\n};\n","var id = 0;\nvar px = Math.random();\nmodule.exports = function (key) {\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n","var has = require('./_has');\nvar toIObject = require('./_to-iobject');\nvar arrayIndexOf = require('./_array-includes')(false);\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\n\nmodule.exports = function (object, names) {\n var O = toIObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~arrayIndexOf(result, key) || result.push(key);\n }\n return result;\n};\n"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/vue-highlight-words.umd.js b/dist/vue-highlight-words.umd.js new file mode 100644 index 0000000..eec510e --- /dev/null +++ b/dist/vue-highlight-words.umd.js @@ -0,0 +1,1388 @@ +(function webpackUniversalModuleDefinition(root, factory) { + if(typeof exports === 'object' && typeof module === 'object') + module.exports = factory(); + else if(typeof define === 'function' && define.amd) + define([], factory); + else if(typeof exports === 'object') + exports["vue-highlight-words"] = factory(); + else + root["vue-highlight-words"] = factory(); +})(typeof self !== 'undefined' ? self : this, function() { +return /******/ (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 = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "+xUi"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "+rLv": +/***/ (function(module, exports, __webpack_require__) { + +var document = __webpack_require__("dyZX").document; +module.exports = document && document.documentElement; + + +/***/ }), + +/***/ "+xUi": +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); + +// EXTERNAL MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js +var setPublicPath = __webpack_require__("HrLf"); + +// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.object.assign.js +var es6_object_assign = __webpack_require__("91GP"); + +// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.number.constructor.js +var es6_number_constructor = __webpack_require__("xfY5"); + +// EXTERNAL MODULE: ./node_modules/highlight-words-core/dist/index.js +var dist = __webpack_require__("5V/u"); + +// CONCATENATED MODULE: ./src/components/HighlightWords.js + + + +/* harmony default export */ var HighlightWords = ({ + functional: true, + props: { + activeClassName: String, + activeIndex: Number, + activeStyle: Object, + autoEscape: Boolean, + className: String, + findChunks: Function, + highlightClassName: String, + highlightStyle: Object, + highlightTag: [Node, Function, String], + sanitize: Function, + searchWords: { + type: Array, + // Array + validator: function validator(value) { + return value.every(function (word) { + return typeof word === 'string'; + }); + }, + required: true + }, + textToHighlight: { + type: String, + required: true + }, + unhighlightClassName: String, + unhighlightStyle: Object + }, + render: function render(h, context) { + var _context$props = context.props, + _context$props$active = _context$props.activeClassName, + activeClassName = _context$props$active === void 0 ? '' : _context$props$active, + _context$props$active2 = _context$props.activeIndex, + activeIndex = _context$props$active2 === void 0 ? -1 : _context$props$active2, + activeStyle = _context$props.activeStyle, + autoEscape = _context$props.autoEscape, + _context$props$caseSe = _context$props.caseSensitive, + caseSensitive = _context$props$caseSe === void 0 ? false : _context$props$caseSe, + className = _context$props.className, + findChunks = _context$props.findChunks, + _context$props$highli = _context$props.highlightClassName, + highlightClassName = _context$props$highli === void 0 ? '' : _context$props$highli, + _context$props$highli2 = _context$props.highlightStyle, + highlightStyle = _context$props$highli2 === void 0 ? {} : _context$props$highli2, + _context$props$highli3 = _context$props.highlightTag, + highlightTag = _context$props$highli3 === void 0 ? 'mark' : _context$props$highli3, + sanitize = _context$props.sanitize, + searchWords = _context$props.searchWords, + textToHighlight = _context$props.textToHighlight, + _context$props$unhigh = _context$props.unhighlightClassName, + unhighlightClassName = _context$props$unhigh === void 0 ? '' : _context$props$unhigh, + unhighlightStyle = _context$props.unhighlightStyle; + var chunks = Object(dist["findAll"])({ + autoEscape: autoEscape, + caseSensitive: caseSensitive, + findChunks: findChunks, + sanitize: sanitize, + searchWords: searchWords, + textToHighlight: textToHighlight + }); + var HighlightTag = highlightTag; + var highlightCount = -1; + var highlightClassNames = ''; + var highlightStyles; + return h("span", { + attrs: { + className: className + } + }, [chunks.map(function (chunk, index) { + var text = textToHighlight.substr(chunk.start, chunk.end - chunk.start); + + if (chunk.highlight) { + highlightCount++; + var isActive = highlightCount === +activeIndex; + highlightClassNames = "".concat(highlightClassName, " ").concat(isActive ? activeClassName : ''); + highlightStyles = isActive === true && activeStyle != null ? Object.assign({}, highlightStyle, activeStyle) : highlightStyle; + return h(HighlightTag, { + "class": highlightClassNames, + key: index, + style: highlightStyles + }, [text]); + } else { + return h("span", { + attrs: { + className: unhighlightClassName + }, + key: index, + style: unhighlightStyle + }, [text]); + } + })]); + } +}); +// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js + + +/* harmony default export */ var entry_lib = __webpack_exports__["default"] = (HighlightWords); + + + +/***/ }), + +/***/ "/e88": +/***/ (function(module, exports) { + +module.exports = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' + + '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF'; + + +/***/ }), + +/***/ "0/R4": +/***/ (function(module, exports) { + +module.exports = function (it) { + return typeof it === 'object' ? it !== null : typeof it === 'function'; +}; + + +/***/ }), + +/***/ "2OiF": +/***/ (function(module, exports) { + +module.exports = function (it) { + if (typeof it != 'function') throw TypeError(it + ' is not a function!'); + return it; +}; + + +/***/ }), + +/***/ "4R4u": +/***/ (function(module, exports) { + +// IE 8- don't enum bug keys +module.exports = ( + 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf' +).split(','); + + +/***/ }), + +/***/ "5V/u": +/***/ (function(module, exports) { + +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] = { +/******/ exports: {}, +/******/ id: moduleId, +/******/ loaded: false +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.loaded = 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; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(0); +/******/ }) +/************************************************************************/ +/******/ ([ +/* 0 */ +/***/ (function(module, exports, __webpack_require__) { + + module.exports = __webpack_require__(1); + + +/***/ }), +/* 1 */ +/***/ (function(module, exports, __webpack_require__) { + + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + + var _utils = __webpack_require__(2); + + Object.defineProperty(exports, 'combineChunks', { + enumerable: true, + get: function get() { + return _utils.combineChunks; + } + }); + Object.defineProperty(exports, 'fillInChunks', { + enumerable: true, + get: function get() { + return _utils.fillInChunks; + } + }); + Object.defineProperty(exports, 'findAll', { + enumerable: true, + get: function get() { + return _utils.findAll; + } + }); + Object.defineProperty(exports, 'findChunks', { + enumerable: true, + get: function get() { + return _utils.findChunks; + } + }); + +/***/ }), +/* 2 */ +/***/ (function(module, exports) { + + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + /** + * Creates an array of chunk objects representing both higlightable and non highlightable pieces of text that match each search word. + * @return Array of "chunks" (where a Chunk is { start:number, end:number, highlight:boolean }) + */ + var findAll = exports.findAll = function findAll(_ref) { + var autoEscape = _ref.autoEscape, + _ref$caseSensitive = _ref.caseSensitive, + caseSensitive = _ref$caseSensitive === undefined ? false : _ref$caseSensitive, + _ref$findChunks = _ref.findChunks, + findChunks = _ref$findChunks === undefined ? defaultFindChunks : _ref$findChunks, + sanitize = _ref.sanitize, + searchWords = _ref.searchWords, + textToHighlight = _ref.textToHighlight; + return fillInChunks({ + chunksToHighlight: combineChunks({ + chunks: findChunks({ + autoEscape: autoEscape, + caseSensitive: caseSensitive, + sanitize: sanitize, + searchWords: searchWords, + textToHighlight: textToHighlight + }) + }), + totalLength: textToHighlight ? textToHighlight.length : 0 + }); + }; + + /** + * Takes an array of {start:number, end:number} objects and combines chunks that overlap into single chunks. + * @return {start:number, end:number}[] + */ + var combineChunks = exports.combineChunks = function combineChunks(_ref2) { + var chunks = _ref2.chunks; + + chunks = chunks.sort(function (first, second) { + return first.start - second.start; + }).reduce(function (processedChunks, nextChunk) { + // First chunk just goes straight in the array... + if (processedChunks.length === 0) { + return [nextChunk]; + } else { + // ... subsequent chunks get checked to see if they overlap... + var prevChunk = processedChunks.pop(); + if (nextChunk.start <= prevChunk.end) { + // It may be the case that prevChunk completely surrounds nextChunk, so take the + // largest of the end indeces. + var endIndex = Math.max(prevChunk.end, nextChunk.end); + processedChunks.push({ start: prevChunk.start, end: endIndex }); + } else { + processedChunks.push(prevChunk, nextChunk); + } + return processedChunks; + } + }, []); + + return chunks; + }; + + /** + * Examine text for any matches. + * If we find matches, add them to the returned array as a "chunk" object ({start:number, end:number}). + * @return {start:number, end:number}[] + */ + var defaultFindChunks = function defaultFindChunks(_ref3) { + var autoEscape = _ref3.autoEscape, + caseSensitive = _ref3.caseSensitive, + _ref3$sanitize = _ref3.sanitize, + sanitize = _ref3$sanitize === undefined ? identity : _ref3$sanitize, + searchWords = _ref3.searchWords, + textToHighlight = _ref3.textToHighlight; + + textToHighlight = sanitize(textToHighlight); + + return searchWords.filter(function (searchWord) { + return searchWord; + }) // Remove empty words + .reduce(function (chunks, searchWord) { + searchWord = sanitize(searchWord); + + if (autoEscape) { + searchWord = escapeRegExpFn(searchWord); + } + + var regex = new RegExp(searchWord, caseSensitive ? 'g' : 'gi'); + + var match = void 0; + while (match = regex.exec(textToHighlight)) { + var start = match.index; + var end = regex.lastIndex; + // We do not return zero-length matches + if (end > start) { + chunks.push({ start: start, end: end }); + } + + // Prevent browsers like Firefox from getting stuck in an infinite loop + // See http://www.regexguru.com/2008/04/watch-out-for-zero-length-matches/ + if (match.index == regex.lastIndex) { + regex.lastIndex++; + } + } + + return chunks; + }, []); + }; + // Allow the findChunks to be overridden in findAll, + // but for backwards compatibility we export as the old name + exports.findChunks = defaultFindChunks; + + /** + * Given a set of chunks to highlight, create an additional set of chunks + * to represent the bits of text between the highlighted text. + * @param chunksToHighlight {start:number, end:number}[] + * @param totalLength number + * @return {start:number, end:number, highlight:boolean}[] + */ + + var fillInChunks = exports.fillInChunks = function fillInChunks(_ref4) { + var chunksToHighlight = _ref4.chunksToHighlight, + totalLength = _ref4.totalLength; + + var allChunks = []; + var append = function append(start, end, highlight) { + if (end - start > 0) { + allChunks.push({ + start: start, + end: end, + highlight: highlight + }); + } + }; + + if (chunksToHighlight.length === 0) { + append(0, totalLength, false); + } else { + var lastIndex = 0; + chunksToHighlight.forEach(function (chunk) { + append(lastIndex, chunk.start, false); + append(chunk.start, chunk.end, true); + lastIndex = chunk.end; + }); + append(lastIndex, totalLength, false); + } + return allChunks; + }; + + function identity(value) { + return value; + } + + function escapeRegExpFn(str) { + return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&'); + } + +/***/ }) +/******/ ]); +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ "91GP": +/***/ (function(module, exports, __webpack_require__) { + +// 19.1.3.1 Object.assign(target, source) +var $export = __webpack_require__("XKFU"); + +$export($export.S + $export.F, 'Object', { assign: __webpack_require__("czNK") }); + + +/***/ }), + +/***/ "DVgA": +/***/ (function(module, exports, __webpack_require__) { + +// 19.1.2.14 / 15.2.3.14 Object.keys(O) +var $keys = __webpack_require__("zhAb"); +var enumBugKeys = __webpack_require__("4R4u"); + +module.exports = Object.keys || function keys(O) { + return $keys(O, enumBugKeys); +}; + + +/***/ }), + +/***/ "EemH": +/***/ (function(module, exports, __webpack_require__) { + +var pIE = __webpack_require__("UqcF"); +var createDesc = __webpack_require__("RjD/"); +var toIObject = __webpack_require__("aCFj"); +var toPrimitive = __webpack_require__("apmT"); +var has = __webpack_require__("aagx"); +var IE8_DOM_DEFINE = __webpack_require__("xpql"); +var gOPD = Object.getOwnPropertyDescriptor; + +exports.f = __webpack_require__("nh4g") ? gOPD : function getOwnPropertyDescriptor(O, P) { + O = toIObject(O); + P = toPrimitive(P, true); + if (IE8_DOM_DEFINE) try { + return gOPD(O, P); + } catch (e) { /* empty */ } + if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]); +}; + + +/***/ }), + +/***/ "FJW5": +/***/ (function(module, exports, __webpack_require__) { + +var dP = __webpack_require__("hswa"); +var anObject = __webpack_require__("y3w9"); +var getKeys = __webpack_require__("DVgA"); + +module.exports = __webpack_require__("nh4g") ? Object.defineProperties : function defineProperties(O, Properties) { + anObject(O); + var keys = getKeys(Properties); + var length = keys.length; + var i = 0; + var P; + while (length > i) dP.f(O, P = keys[i++], Properties[P]); + return O; +}; + + +/***/ }), + +/***/ "HrLf": +/***/ (function(module, exports, __webpack_require__) { + +// This file is imported into lib/wc client bundles. + +if (typeof window !== 'undefined') { + var i + if ((i = window.document.currentScript) && (i = i.src.match(/(.+\/)[^/]+\.js$/))) { + __webpack_require__.p = i[1] // eslint-disable-line + } +} + + +/***/ }), + +/***/ "Iw71": +/***/ (function(module, exports, __webpack_require__) { + +var isObject = __webpack_require__("0/R4"); +var document = __webpack_require__("dyZX").document; +// typeof document.createElement is 'object' in old IE +var is = isObject(document) && isObject(document.createElement); +module.exports = function (it) { + return is ? document.createElement(it) : {}; +}; + + +/***/ }), + +/***/ "JiEa": +/***/ (function(module, exports) { + +exports.f = Object.getOwnPropertySymbols; + + +/***/ }), + +/***/ "KroJ": +/***/ (function(module, exports, __webpack_require__) { + +var global = __webpack_require__("dyZX"); +var hide = __webpack_require__("Mukb"); +var has = __webpack_require__("aagx"); +var SRC = __webpack_require__("ylqs")('src'); +var TO_STRING = 'toString'; +var $toString = Function[TO_STRING]; +var TPL = ('' + $toString).split(TO_STRING); + +__webpack_require__("g3g5").inspectSource = function (it) { + return $toString.call(it); +}; + +(module.exports = function (O, key, val, safe) { + var isFunction = typeof val == 'function'; + if (isFunction) has(val, 'name') || hide(val, 'name', key); + if (O[key] === val) return; + if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key))); + if (O === global) { + O[key] = val; + } else if (!safe) { + delete O[key]; + hide(O, key, val); + } else if (O[key]) { + O[key] = val; + } else { + hide(O, key, val); + } +// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative +})(Function.prototype, TO_STRING, function toString() { + return typeof this == 'function' && this[SRC] || $toString.call(this); +}); + + +/***/ }), + +/***/ "Kuth": +/***/ (function(module, exports, __webpack_require__) { + +// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) +var anObject = __webpack_require__("y3w9"); +var dPs = __webpack_require__("FJW5"); +var enumBugKeys = __webpack_require__("4R4u"); +var IE_PROTO = __webpack_require__("YTvA")('IE_PROTO'); +var Empty = function () { /* empty */ }; +var PROTOTYPE = 'prototype'; + +// Create object with fake `null` prototype: use iframe Object with cleared prototype +var createDict = function () { + // Thrash, waste and sodomy: IE GC bug + var iframe = __webpack_require__("Iw71")('iframe'); + var i = enumBugKeys.length; + var lt = '<'; + var gt = '>'; + var iframeDocument; + iframe.style.display = 'none'; + __webpack_require__("+rLv").appendChild(iframe); + iframe.src = 'javascript:'; // eslint-disable-line no-script-url + // createDict = iframe.contentWindow.Object; + // html.removeChild(iframe); + iframeDocument = iframe.contentWindow.document; + iframeDocument.open(); + iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt); + iframeDocument.close(); + createDict = iframeDocument.F; + while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]]; + return createDict(); +}; + +module.exports = Object.create || function create(O, Properties) { + var result; + if (O !== null) { + Empty[PROTOTYPE] = anObject(O); + result = new Empty(); + Empty[PROTOTYPE] = null; + // add "__proto__" for Object.getPrototypeOf polyfill + result[IE_PROTO] = O; + } else result = createDict(); + return Properties === undefined ? result : dPs(result, Properties); +}; + + +/***/ }), + +/***/ "LQAc": +/***/ (function(module, exports) { + +module.exports = false; + + +/***/ }), + +/***/ "LZWt": +/***/ (function(module, exports) { + +var toString = {}.toString; + +module.exports = function (it) { + return toString.call(it).slice(8, -1); +}; + + +/***/ }), + +/***/ "Mukb": +/***/ (function(module, exports, __webpack_require__) { + +var dP = __webpack_require__("hswa"); +var createDesc = __webpack_require__("RjD/"); +module.exports = __webpack_require__("nh4g") ? function (object, key, value) { + return dP.f(object, key, createDesc(1, value)); +} : function (object, key, value) { + object[key] = value; + return object; +}; + + +/***/ }), + +/***/ "RYi7": +/***/ (function(module, exports) { + +// 7.1.4 ToInteger +var ceil = Math.ceil; +var floor = Math.floor; +module.exports = function (it) { + return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); +}; + + +/***/ }), + +/***/ "RjD/": +/***/ (function(module, exports) { + +module.exports = function (bitmap, value) { + return { + enumerable: !(bitmap & 1), + configurable: !(bitmap & 2), + writable: !(bitmap & 4), + value: value + }; +}; + + +/***/ }), + +/***/ "S/j/": +/***/ (function(module, exports, __webpack_require__) { + +// 7.1.13 ToObject(argument) +var defined = __webpack_require__("vhPU"); +module.exports = function (it) { + return Object(defined(it)); +}; + + +/***/ }), + +/***/ "UqcF": +/***/ (function(module, exports) { + +exports.f = {}.propertyIsEnumerable; + + +/***/ }), + +/***/ "VTer": +/***/ (function(module, exports, __webpack_require__) { + +var core = __webpack_require__("g3g5"); +var global = __webpack_require__("dyZX"); +var SHARED = '__core-js_shared__'; +var store = global[SHARED] || (global[SHARED] = {}); + +(module.exports = function (key, value) { + return store[key] || (store[key] = value !== undefined ? value : {}); +})('versions', []).push({ + version: core.version, + mode: __webpack_require__("LQAc") ? 'pure' : 'global', + copyright: '© 2018 Denis Pushkarev (zloirock.ru)' +}); + + +/***/ }), + +/***/ "XKFU": +/***/ (function(module, exports, __webpack_require__) { + +var global = __webpack_require__("dyZX"); +var core = __webpack_require__("g3g5"); +var hide = __webpack_require__("Mukb"); +var redefine = __webpack_require__("KroJ"); +var ctx = __webpack_require__("m0Pp"); +var PROTOTYPE = 'prototype'; + +var $export = function (type, name, source) { + var IS_FORCED = type & $export.F; + var IS_GLOBAL = type & $export.G; + var IS_STATIC = type & $export.S; + var IS_PROTO = type & $export.P; + var IS_BIND = type & $export.B; + var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE]; + var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); + var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {}); + var key, own, out, exp; + if (IS_GLOBAL) source = name; + for (key in source) { + // contains in native + own = !IS_FORCED && target && target[key] !== undefined; + // export native or passed + out = (own ? target : source)[key]; + // bind timers to global for call from export context + exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; + // extend global + if (target) redefine(target, key, out, type & $export.U); + // export + if (exports[key] != out) hide(exports, key, exp); + if (IS_PROTO && expProto[key] != out) expProto[key] = out; + } +}; +global.core = core; +// type bitmap +$export.F = 1; // forced +$export.G = 2; // global +$export.S = 4; // static +$export.P = 8; // proto +$export.B = 16; // bind +$export.W = 32; // wrap +$export.U = 64; // safe +$export.R = 128; // real proto method for `library` +module.exports = $export; + + +/***/ }), + +/***/ "Xbzi": +/***/ (function(module, exports, __webpack_require__) { + +var isObject = __webpack_require__("0/R4"); +var setPrototypeOf = __webpack_require__("i5dc").set; +module.exports = function (that, target, C) { + var S = target.constructor; + var P; + if (S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf) { + setPrototypeOf(that, P); + } return that; +}; + + +/***/ }), + +/***/ "YTvA": +/***/ (function(module, exports, __webpack_require__) { + +var shared = __webpack_require__("VTer")('keys'); +var uid = __webpack_require__("ylqs"); +module.exports = function (key) { + return shared[key] || (shared[key] = uid(key)); +}; + + +/***/ }), + +/***/ "Ymqv": +/***/ (function(module, exports, __webpack_require__) { + +// fallback for non-array-like ES3 and non-enumerable old V8 strings +var cof = __webpack_require__("LZWt"); +// eslint-disable-next-line no-prototype-builtins +module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) { + return cof(it) == 'String' ? it.split('') : Object(it); +}; + + +/***/ }), + +/***/ "aCFj": +/***/ (function(module, exports, __webpack_require__) { + +// to indexed object, toObject with fallback for non-array-like ES3 strings +var IObject = __webpack_require__("Ymqv"); +var defined = __webpack_require__("vhPU"); +module.exports = function (it) { + return IObject(defined(it)); +}; + + +/***/ }), + +/***/ "aagx": +/***/ (function(module, exports) { + +var hasOwnProperty = {}.hasOwnProperty; +module.exports = function (it, key) { + return hasOwnProperty.call(it, key); +}; + + +/***/ }), + +/***/ "apmT": +/***/ (function(module, exports, __webpack_require__) { + +// 7.1.1 ToPrimitive(input [, PreferredType]) +var isObject = __webpack_require__("0/R4"); +// instead of the ES6 spec version, we didn't implement @@toPrimitive case +// and the second argument - flag - preferred type is a string +module.exports = function (it, S) { + if (!isObject(it)) return it; + var fn, val; + if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; + if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val; + if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; + throw TypeError("Can't convert object to primitive value"); +}; + + +/***/ }), + +/***/ "czNK": +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +// 19.1.2.1 Object.assign(target, source, ...) +var getKeys = __webpack_require__("DVgA"); +var gOPS = __webpack_require__("JiEa"); +var pIE = __webpack_require__("UqcF"); +var toObject = __webpack_require__("S/j/"); +var IObject = __webpack_require__("Ymqv"); +var $assign = Object.assign; + +// should work with symbols and should have deterministic property order (V8 bug) +module.exports = !$assign || __webpack_require__("eeVq")(function () { + var A = {}; + var B = {}; + // eslint-disable-next-line no-undef + var S = Symbol(); + var K = 'abcdefghijklmnopqrst'; + A[S] = 7; + K.split('').forEach(function (k) { B[k] = k; }); + return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K; +}) ? function assign(target, source) { // eslint-disable-line no-unused-vars + var T = toObject(target); + var aLen = arguments.length; + var index = 1; + var getSymbols = gOPS.f; + var isEnum = pIE.f; + while (aLen > index) { + var S = IObject(arguments[index++]); + var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S); + var length = keys.length; + var j = 0; + var key; + while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key]; + } return T; +} : $assign; + + +/***/ }), + +/***/ "d/Gc": +/***/ (function(module, exports, __webpack_require__) { + +var toInteger = __webpack_require__("RYi7"); +var max = Math.max; +var min = Math.min; +module.exports = function (index, length) { + index = toInteger(index); + return index < 0 ? max(index + length, 0) : min(index, length); +}; + + +/***/ }), + +/***/ "dyZX": +/***/ (function(module, exports) { + +// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 +var global = module.exports = typeof window != 'undefined' && window.Math == Math + ? window : typeof self != 'undefined' && self.Math == Math ? self + // eslint-disable-next-line no-new-func + : Function('return this')(); +if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef + + +/***/ }), + +/***/ "eeVq": +/***/ (function(module, exports) { + +module.exports = function (exec) { + try { + return !!exec(); + } catch (e) { + return true; + } +}; + + +/***/ }), + +/***/ "g3g5": +/***/ (function(module, exports) { + +var core = module.exports = { version: '2.5.7' }; +if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef + + +/***/ }), + +/***/ "hswa": +/***/ (function(module, exports, __webpack_require__) { + +var anObject = __webpack_require__("y3w9"); +var IE8_DOM_DEFINE = __webpack_require__("xpql"); +var toPrimitive = __webpack_require__("apmT"); +var dP = Object.defineProperty; + +exports.f = __webpack_require__("nh4g") ? Object.defineProperty : function defineProperty(O, P, Attributes) { + anObject(O); + P = toPrimitive(P, true); + anObject(Attributes); + if (IE8_DOM_DEFINE) try { + return dP(O, P, Attributes); + } catch (e) { /* empty */ } + if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!'); + if ('value' in Attributes) O[P] = Attributes.value; + return O; +}; + + +/***/ }), + +/***/ "i5dc": +/***/ (function(module, exports, __webpack_require__) { + +// Works with __proto__ only. Old v8 can't work with null proto objects. +/* eslint-disable no-proto */ +var isObject = __webpack_require__("0/R4"); +var anObject = __webpack_require__("y3w9"); +var check = function (O, proto) { + anObject(O); + if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!"); +}; +module.exports = { + set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line + function (test, buggy, set) { + try { + set = __webpack_require__("m0Pp")(Function.call, __webpack_require__("EemH").f(Object.prototype, '__proto__').set, 2); + set(test, []); + buggy = !(test instanceof Array); + } catch (e) { buggy = true; } + return function setPrototypeOf(O, proto) { + check(O, proto); + if (buggy) O.__proto__ = proto; + else set(O, proto); + return O; + }; + }({}, false) : undefined), + check: check +}; + + +/***/ }), + +/***/ "kJMx": +/***/ (function(module, exports, __webpack_require__) { + +// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O) +var $keys = __webpack_require__("zhAb"); +var hiddenKeys = __webpack_require__("4R4u").concat('length', 'prototype'); + +exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { + return $keys(O, hiddenKeys); +}; + + +/***/ }), + +/***/ "m0Pp": +/***/ (function(module, exports, __webpack_require__) { + +// optional / simple context binding +var aFunction = __webpack_require__("2OiF"); +module.exports = function (fn, that, length) { + aFunction(fn); + if (that === undefined) return fn; + switch (length) { + case 1: return function (a) { + return fn.call(that, a); + }; + case 2: return function (a, b) { + return fn.call(that, a, b); + }; + case 3: return function (a, b, c) { + return fn.call(that, a, b, c); + }; + } + return function (/* ...args */) { + return fn.apply(that, arguments); + }; +}; + + +/***/ }), + +/***/ "ne8i": +/***/ (function(module, exports, __webpack_require__) { + +// 7.1.15 ToLength +var toInteger = __webpack_require__("RYi7"); +var min = Math.min; +module.exports = function (it) { + return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 +}; + + +/***/ }), + +/***/ "nh4g": +/***/ (function(module, exports, __webpack_require__) { + +// Thank's IE8 for his funny defineProperty +module.exports = !__webpack_require__("eeVq")(function () { + return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; +}); + + +/***/ }), + +/***/ "qncB": +/***/ (function(module, exports, __webpack_require__) { + +var $export = __webpack_require__("XKFU"); +var defined = __webpack_require__("vhPU"); +var fails = __webpack_require__("eeVq"); +var spaces = __webpack_require__("/e88"); +var space = '[' + spaces + ']'; +var non = '\u200b\u0085'; +var ltrim = RegExp('^' + space + space + '*'); +var rtrim = RegExp(space + space + '*$'); + +var exporter = function (KEY, exec, ALIAS) { + var exp = {}; + var FORCE = fails(function () { + return !!spaces[KEY]() || non[KEY]() != non; + }); + var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY]; + if (ALIAS) exp[ALIAS] = fn; + $export($export.P + $export.F * FORCE, 'String', exp); +}; + +// 1 -> String#trimLeft +// 2 -> String#trimRight +// 3 -> String#trim +var trim = exporter.trim = function (string, TYPE) { + string = String(defined(string)); + if (TYPE & 1) string = string.replace(ltrim, ''); + if (TYPE & 2) string = string.replace(rtrim, ''); + return string; +}; + +module.exports = exporter; + + +/***/ }), + +/***/ "vhPU": +/***/ (function(module, exports) { + +// 7.2.1 RequireObjectCoercible(argument) +module.exports = function (it) { + if (it == undefined) throw TypeError("Can't call method on " + it); + return it; +}; + + +/***/ }), + +/***/ "w2a5": +/***/ (function(module, exports, __webpack_require__) { + +// false -> Array#indexOf +// true -> Array#includes +var toIObject = __webpack_require__("aCFj"); +var toLength = __webpack_require__("ne8i"); +var toAbsoluteIndex = __webpack_require__("d/Gc"); +module.exports = function (IS_INCLUDES) { + return function ($this, el, fromIndex) { + var O = toIObject($this); + var length = toLength(O.length); + var index = toAbsoluteIndex(fromIndex, length); + var value; + // Array#includes uses SameValueZero equality algorithm + // eslint-disable-next-line no-self-compare + if (IS_INCLUDES && el != el) while (length > index) { + value = O[index++]; + // eslint-disable-next-line no-self-compare + if (value != value) return true; + // Array#indexOf ignores holes, Array#includes - not + } else for (;length > index; index++) if (IS_INCLUDES || index in O) { + if (O[index] === el) return IS_INCLUDES || index || 0; + } return !IS_INCLUDES && -1; + }; +}; + + +/***/ }), + +/***/ "xfY5": +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var global = __webpack_require__("dyZX"); +var has = __webpack_require__("aagx"); +var cof = __webpack_require__("LZWt"); +var inheritIfRequired = __webpack_require__("Xbzi"); +var toPrimitive = __webpack_require__("apmT"); +var fails = __webpack_require__("eeVq"); +var gOPN = __webpack_require__("kJMx").f; +var gOPD = __webpack_require__("EemH").f; +var dP = __webpack_require__("hswa").f; +var $trim = __webpack_require__("qncB").trim; +var NUMBER = 'Number'; +var $Number = global[NUMBER]; +var Base = $Number; +var proto = $Number.prototype; +// Opera ~12 has broken Object#toString +var BROKEN_COF = cof(__webpack_require__("Kuth")(proto)) == NUMBER; +var TRIM = 'trim' in String.prototype; + +// 7.1.3 ToNumber(argument) +var toNumber = function (argument) { + var it = toPrimitive(argument, false); + if (typeof it == 'string' && it.length > 2) { + it = TRIM ? it.trim() : $trim(it, 3); + var first = it.charCodeAt(0); + var third, radix, maxCode; + if (first === 43 || first === 45) { + third = it.charCodeAt(2); + if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix + } else if (first === 48) { + switch (it.charCodeAt(1)) { + case 66: case 98: radix = 2; maxCode = 49; break; // fast equal /^0b[01]+$/i + case 79: case 111: radix = 8; maxCode = 55; break; // fast equal /^0o[0-7]+$/i + default: return +it; + } + for (var digits = it.slice(2), i = 0, l = digits.length, code; i < l; i++) { + code = digits.charCodeAt(i); + // parseInt parses a string to a first unavailable symbol + // but ToNumber should return NaN if a string contains unavailable symbols + if (code < 48 || code > maxCode) return NaN; + } return parseInt(digits, radix); + } + } return +it; +}; + +if (!$Number(' 0o1') || !$Number('0b1') || $Number('+0x1')) { + $Number = function Number(value) { + var it = arguments.length < 1 ? 0 : value; + var that = this; + return that instanceof $Number + // check on 1..constructor(foo) case + && (BROKEN_COF ? fails(function () { proto.valueOf.call(that); }) : cof(that) != NUMBER) + ? inheritIfRequired(new Base(toNumber(it)), that, $Number) : toNumber(it); + }; + for (var keys = __webpack_require__("nh4g") ? gOPN(Base) : ( + // ES3: + 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' + + // ES6 (in case, if modules with ES6 Number statics required before): + 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' + + 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger' + ).split(','), j = 0, key; keys.length > j; j++) { + if (has(Base, key = keys[j]) && !has($Number, key)) { + dP($Number, key, gOPD(Base, key)); + } + } + $Number.prototype = proto; + proto.constructor = $Number; + __webpack_require__("KroJ")(global, NUMBER, $Number); +} + + +/***/ }), + +/***/ "xpql": +/***/ (function(module, exports, __webpack_require__) { + +module.exports = !__webpack_require__("nh4g") && !__webpack_require__("eeVq")(function () { + return Object.defineProperty(__webpack_require__("Iw71")('div'), 'a', { get: function () { return 7; } }).a != 7; +}); + + +/***/ }), + +/***/ "y3w9": +/***/ (function(module, exports, __webpack_require__) { + +var isObject = __webpack_require__("0/R4"); +module.exports = function (it) { + if (!isObject(it)) throw TypeError(it + ' is not an object!'); + return it; +}; + + +/***/ }), + +/***/ "ylqs": +/***/ (function(module, exports) { + +var id = 0; +var px = Math.random(); +module.exports = function (key) { + return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); +}; + + +/***/ }), + +/***/ "zhAb": +/***/ (function(module, exports, __webpack_require__) { + +var has = __webpack_require__("aagx"); +var toIObject = __webpack_require__("aCFj"); +var arrayIndexOf = __webpack_require__("w2a5")(false); +var IE_PROTO = __webpack_require__("YTvA")('IE_PROTO'); + +module.exports = function (object, names) { + var O = toIObject(object); + var i = 0; + var result = []; + var key; + for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key); + // Don't enum bug & hidden keys + while (names.length > i) if (has(O, key = names[i++])) { + ~arrayIndexOf(result, key) || result.push(key); + } + return result; +}; + + +/***/ }) + +/******/ })["default"]; +}); +//# sourceMappingURL=vue-highlight-words.umd.js.map \ No newline at end of file diff --git a/dist/vue-highlight-words.umd.js.map b/dist/vue-highlight-words.umd.js.map new file mode 100644 index 0000000..bc36d32 --- /dev/null +++ b/dist/vue-highlight-words.umd.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack://vue-highlight-words/webpack/universalModuleDefinition","webpack://vue-highlight-words/webpack/bootstrap","webpack://vue-highlight-words/./node_modules/core-js/modules/_html.js","webpack://vue-highlight-words/./src/components/HighlightWords.js","webpack://vue-highlight-words/./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_string-ws.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_is-object.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_a-function.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_enum-bug-keys.js","webpack://vue-highlight-words/./node_modules/highlight-words-core/dist/index.js","webpack://vue-highlight-words/./node_modules/core-js/modules/es6.object.assign.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_object-keys.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_object-gopd.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_object-dps.js","webpack://vue-highlight-words/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_dom-create.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_object-gops.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_redefine.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_object-create.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_library.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_cof.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_hide.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_to-integer.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_property-desc.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_to-object.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_object-pie.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_shared.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_export.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_inherit-if-required.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_shared-key.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_iobject.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_to-iobject.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_has.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_to-primitive.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_object-assign.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_to-absolute-index.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_global.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_fails.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_core.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_object-dp.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_set-proto.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_object-gopn.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_ctx.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_to-length.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_descriptors.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_string-trim.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_defined.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_array-includes.js","webpack://vue-highlight-words/./node_modules/core-js/modules/es6.number.constructor.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_ie8-dom-define.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_an-object.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_uid.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_object-keys-internal.js"],"names":["functional","props","activeClassName","String","activeIndex","Number","activeStyle","Object","autoEscape","Boolean","className","findChunks","Function","highlightClassName","highlightStyle","highlightTag","Node","sanitize","searchWords","type","Array","validator","value","every","word","required","textToHighlight","unhighlightClassName","unhighlightStyle","render","h","context","caseSensitive","chunks","findAll","HighlightTag","highlightCount","highlightClassNames","highlightStyles","map","chunk","index","text","substr","start","end","highlight","isActive","assign"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;ACVA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AAC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7C,eAAX,GAA6B,EAD/B;AAGAoC,0BACES,aAAa,IAAb,IAAqBzC,eAAe,IAApC,GACIC,OAAOyC,MAAP,CAAc,EAAd,EAAkBlC,cAAlB,EAAkCR,WAAlC,CADJ,GAEIQ,cAHN;AAKA,eACE,EAAC,YAAD;AACE,mBAAOuB,mBADT;AAEE,eAAKI,KAFP;AAGE,iBAAOH;AAHT,YAKGI,IALH,EADF;AASD,OAtBD,MAsBO;AACL,eACE;AAAA;AACE,uBAAWf;AADb;AAEE,eAAKc,KAFP;AAGE,iBAAOb;AAHT,YAKGc,IALH,EADF;AASD;AACF,KAvCA,CADH,EADF;AA4CD;AAxGY,CAAf,E;;ACFA;AACA;+EACA;AACA;;;;;;;;ACHA;AACA;;;;;;;;ACDA;AACA;AACA;;;;;;;;ACFA;AACA;AACA;AACA;;;;;;;;ACHA;AACA;AACA;AACA;;;;;;;;ACHA;AACA,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;;;AAGA,OAAO;AACP;AACA;;AAEA;;AAEA;AACA;AACA,EAAE;;AAEF;;AAEA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA,EAAE;;AAEF,OAAO;AACP;AACA;;AAEA;;AAEA;AACA;AACA,EAAE;AACF;AACA;AACA,iDAAiD,8CAA8C;AAC/F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR,MAAM;AACN;AACA,IAAI;AACJ;;AAEA;AACA,uBAAuB,yBAAyB;AAChD,aAAa,yBAAyB;AACtC;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,wCAAwC;AACvE,QAAQ;AACR;AACA;AACA;AACA;AACA,IAAI;;AAEJ;AACA;;AAEA;AACA;AACA,6EAA6E,yBAAyB;AACtG,aAAa,yBAAyB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,yBAAyB;AAC/C;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,8BAA8B,yBAAyB;AACvD;AACA,aAAa,4CAA4C;AACzD;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,kCAAkC,EAAE;AACpC;;AAEA,OAAO;AACP;AACA,iC;;;;;;;AC3PA;AACA;;AAEA,0CAA0C,sCAAsC;;;;;;;;ACHhF;AACA;AACA;;AAEA;AACA;AACA;;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG,YAAY;AACf;AACA;;;;;;;;ACfA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACZA;;AAEA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACNA;;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA;AACA,CAAC;AACD;AACA,CAAC;;;;;;;;AC9BD;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;;;;;;;ACxCA;;;;;;;;ACAA,iBAAiB;;AAEjB;AACA;AACA;;;;;;;;ACJA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;;;;;;;;ACPA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACPA;AACA;AACA;AACA;AACA;;;;;;;;ACJA,cAAc;;;;;;;;ACAd;AACA;AACA;AACA,kDAAkD;;AAElD;AACA,qEAAqE;AACrE,CAAC;AACD;AACA;AACA;AACA,CAAC;;;;;;;;ACXD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,kFAAkF,uBAAuB;AACzG,iEAAiE;AACjE,+DAA+D;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,eAAe;AACf,eAAe;AACf,eAAe;AACf,gBAAgB;AAChB;;;;;;;;AC1CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;;;;;;;ACRA;AACA;AACA;AACA;AACA;;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACLA,uBAAuB;AACvB;AACA;AACA;;;;;;;;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,UAAU,EAAE;AAChD,mBAAmB,sCAAsC;AACzD,CAAC,qCAAqC;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,CAAC;;;;;;;;ACjCD;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA,yCAAyC;;;;;;;;ACLzC;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;;;;;;;ACNA,6BAA6B;AAC7B,uCAAuC;;;;;;;;ACDvC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG,YAAY;AACf;AACA;AACA;AACA;;;;;;;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAkD;AAClD;AACA;AACA;AACA;AACA;AACA,OAAO,YAAY,cAAc;AACjC;AACA;AACA;AACA;AACA;AACA;AACA,KAAK,GAAG;AACR;AACA;;;;;;;;ACxBA;AACA;AACA;;AAEA;AACA;AACA;;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACnBA;AACA;AACA;AACA;AACA,2DAA2D;AAC3D;;;;;;;;ACLA;AACA;AACA,iCAAiC,QAAQ,mBAAmB,UAAU,EAAE,EAAE;AAC1E,CAAC;;;;;;;;ACHD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC7BA;AACA;AACA;AACA;AACA;;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK,YAAY,eAAe;AAChC;AACA,KAAK;AACL;AACA;;;;;;;;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD;AACpD,KAAK;AACL;AACA,oCAAoC,cAAc,OAAO;AACzD,qCAAqC,cAAc,OAAO;AAC1D;AACA;AACA,oEAAoE,OAAO;AAC3E;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C,0BAA0B,EAAE;AACtE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,iBAAiB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACpEA;AACA,yEAAsE,mBAAmB,UAAU,EAAE,EAAE;AACvG,CAAC;;;;;;;;ACFD;AACA;AACA;AACA;AACA;;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;;ACJA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"vue-highlight-words.umd.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"vue-highlight-words\"] = factory();\n\telse\n\t\troot[\"vue-highlight-words\"] = factory();\n})(typeof self !== 'undefined' ? self : this, function() {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"+xUi\");\n","var document = require('./_global').document;\nmodule.exports = document && document.documentElement;\n","import { findAll } from 'highlight-words-core'\n\nexport default {\n functional: true,\n props: {\n activeClassName: String,\n activeIndex: Number,\n activeStyle: Object,\n autoEscape: Boolean,\n className: String,\n findChunks: Function,\n highlightClassName: String,\n highlightStyle: Object,\n highlightTag: [Node, Function, String],\n sanitize: Function,\n searchWords: {\n type: Array, // Array\n validator(value) {\n return value.every(word => typeof word === 'string')\n },\n required: true\n },\n textToHighlight: {\n type: String,\n required: true\n },\n unhighlightClassName: String,\n unhighlightStyle: Object\n },\n render(h, context) {\n const {\n activeClassName = '',\n activeIndex = -1,\n activeStyle,\n autoEscape,\n caseSensitive = false,\n className,\n findChunks,\n highlightClassName = '',\n highlightStyle = {},\n highlightTag = 'mark',\n sanitize,\n searchWords,\n textToHighlight,\n unhighlightClassName = '',\n unhighlightStyle\n } = context.props\n\n const chunks = findAll({\n autoEscape,\n caseSensitive,\n findChunks,\n sanitize,\n searchWords,\n textToHighlight\n })\n\n const HighlightTag = highlightTag\n let highlightCount = -1\n let highlightClassNames = ''\n let highlightStyles\n\n return (\n \n {chunks.map((chunk, index) => {\n const text = textToHighlight.substr(\n chunk.start,\n chunk.end - chunk.start\n )\n\n if (chunk.highlight) {\n highlightCount++\n\n const isActive = highlightCount === +activeIndex\n\n highlightClassNames = `${highlightClassName} ${\n isActive ? activeClassName : ''\n }`\n highlightStyles =\n isActive === true && activeStyle != null\n ? Object.assign({}, highlightStyle, activeStyle)\n : highlightStyle\n\n return (\n \n {text}\n \n )\n } else {\n return (\n \n {text}\n \n )\n }\n })}\n \n )\n }\n}\n","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n","module.exports = '\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003' +\n '\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF';\n","module.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n","module.exports = function (it) {\n if (typeof it != 'function') throw TypeError(it + ' is not a function!');\n return it;\n};\n","// IE 8- don't enum bug keys\nmodule.exports = (\n 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'\n).split(',');\n","module.exports =\n/******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId])\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\texports: {},\n/******/ \t\t\tid: moduleId,\n/******/ \t\t\tloaded: false\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.loaded = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(0);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\tmodule.exports = __webpack_require__(1);\n\n\n/***/ }),\n/* 1 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _utils = __webpack_require__(2);\n\t\n\tObject.defineProperty(exports, 'combineChunks', {\n\t enumerable: true,\n\t get: function get() {\n\t return _utils.combineChunks;\n\t }\n\t});\n\tObject.defineProperty(exports, 'fillInChunks', {\n\t enumerable: true,\n\t get: function get() {\n\t return _utils.fillInChunks;\n\t }\n\t});\n\tObject.defineProperty(exports, 'findAll', {\n\t enumerable: true,\n\t get: function get() {\n\t return _utils.findAll;\n\t }\n\t});\n\tObject.defineProperty(exports, 'findChunks', {\n\t enumerable: true,\n\t get: function get() {\n\t return _utils.findChunks;\n\t }\n\t});\n\n/***/ }),\n/* 2 */\n/***/ (function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t/**\n\t * Creates an array of chunk objects representing both higlightable and non highlightable pieces of text that match each search word.\n\t * @return Array of \"chunks\" (where a Chunk is { start:number, end:number, highlight:boolean })\n\t */\n\tvar findAll = exports.findAll = function findAll(_ref) {\n\t var autoEscape = _ref.autoEscape,\n\t _ref$caseSensitive = _ref.caseSensitive,\n\t caseSensitive = _ref$caseSensitive === undefined ? false : _ref$caseSensitive,\n\t _ref$findChunks = _ref.findChunks,\n\t findChunks = _ref$findChunks === undefined ? defaultFindChunks : _ref$findChunks,\n\t sanitize = _ref.sanitize,\n\t searchWords = _ref.searchWords,\n\t textToHighlight = _ref.textToHighlight;\n\t return fillInChunks({\n\t chunksToHighlight: combineChunks({\n\t chunks: findChunks({\n\t autoEscape: autoEscape,\n\t caseSensitive: caseSensitive,\n\t sanitize: sanitize,\n\t searchWords: searchWords,\n\t textToHighlight: textToHighlight\n\t })\n\t }),\n\t totalLength: textToHighlight ? textToHighlight.length : 0\n\t });\n\t};\n\t\n\t/**\n\t * Takes an array of {start:number, end:number} objects and combines chunks that overlap into single chunks.\n\t * @return {start:number, end:number}[]\n\t */\n\tvar combineChunks = exports.combineChunks = function combineChunks(_ref2) {\n\t var chunks = _ref2.chunks;\n\t\n\t chunks = chunks.sort(function (first, second) {\n\t return first.start - second.start;\n\t }).reduce(function (processedChunks, nextChunk) {\n\t // First chunk just goes straight in the array...\n\t if (processedChunks.length === 0) {\n\t return [nextChunk];\n\t } else {\n\t // ... subsequent chunks get checked to see if they overlap...\n\t var prevChunk = processedChunks.pop();\n\t if (nextChunk.start <= prevChunk.end) {\n\t // It may be the case that prevChunk completely surrounds nextChunk, so take the\n\t // largest of the end indeces.\n\t var endIndex = Math.max(prevChunk.end, nextChunk.end);\n\t processedChunks.push({ start: prevChunk.start, end: endIndex });\n\t } else {\n\t processedChunks.push(prevChunk, nextChunk);\n\t }\n\t return processedChunks;\n\t }\n\t }, []);\n\t\n\t return chunks;\n\t};\n\t\n\t/**\n\t * Examine text for any matches.\n\t * If we find matches, add them to the returned array as a \"chunk\" object ({start:number, end:number}).\n\t * @return {start:number, end:number}[]\n\t */\n\tvar defaultFindChunks = function defaultFindChunks(_ref3) {\n\t var autoEscape = _ref3.autoEscape,\n\t caseSensitive = _ref3.caseSensitive,\n\t _ref3$sanitize = _ref3.sanitize,\n\t sanitize = _ref3$sanitize === undefined ? identity : _ref3$sanitize,\n\t searchWords = _ref3.searchWords,\n\t textToHighlight = _ref3.textToHighlight;\n\t\n\t textToHighlight = sanitize(textToHighlight);\n\t\n\t return searchWords.filter(function (searchWord) {\n\t return searchWord;\n\t }) // Remove empty words\n\t .reduce(function (chunks, searchWord) {\n\t searchWord = sanitize(searchWord);\n\t\n\t if (autoEscape) {\n\t searchWord = escapeRegExpFn(searchWord);\n\t }\n\t\n\t var regex = new RegExp(searchWord, caseSensitive ? 'g' : 'gi');\n\t\n\t var match = void 0;\n\t while (match = regex.exec(textToHighlight)) {\n\t var start = match.index;\n\t var end = regex.lastIndex;\n\t // We do not return zero-length matches\n\t if (end > start) {\n\t chunks.push({ start: start, end: end });\n\t }\n\t\n\t // Prevent browsers like Firefox from getting stuck in an infinite loop\n\t // See http://www.regexguru.com/2008/04/watch-out-for-zero-length-matches/\n\t if (match.index == regex.lastIndex) {\n\t regex.lastIndex++;\n\t }\n\t }\n\t\n\t return chunks;\n\t }, []);\n\t};\n\t// Allow the findChunks to be overridden in findAll,\n\t// but for backwards compatibility we export as the old name\n\texports.findChunks = defaultFindChunks;\n\t\n\t/**\n\t * Given a set of chunks to highlight, create an additional set of chunks\n\t * to represent the bits of text between the highlighted text.\n\t * @param chunksToHighlight {start:number, end:number}[]\n\t * @param totalLength number\n\t * @return {start:number, end:number, highlight:boolean}[]\n\t */\n\t\n\tvar fillInChunks = exports.fillInChunks = function fillInChunks(_ref4) {\n\t var chunksToHighlight = _ref4.chunksToHighlight,\n\t totalLength = _ref4.totalLength;\n\t\n\t var allChunks = [];\n\t var append = function append(start, end, highlight) {\n\t if (end - start > 0) {\n\t allChunks.push({\n\t start: start,\n\t end: end,\n\t highlight: highlight\n\t });\n\t }\n\t };\n\t\n\t if (chunksToHighlight.length === 0) {\n\t append(0, totalLength, false);\n\t } else {\n\t var lastIndex = 0;\n\t chunksToHighlight.forEach(function (chunk) {\n\t append(lastIndex, chunk.start, false);\n\t append(chunk.start, chunk.end, true);\n\t lastIndex = chunk.end;\n\t });\n\t append(lastIndex, totalLength, false);\n\t }\n\t return allChunks;\n\t};\n\t\n\tfunction identity(value) {\n\t return value;\n\t}\n\t\n\tfunction escapeRegExpFn(str) {\n\t return str.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g, '\\\\$&');\n\t}\n\n/***/ })\n/******/ ]);\n//# sourceMappingURL=index.js.map","// 19.1.3.1 Object.assign(target, source)\nvar $export = require('./_export');\n\n$export($export.S + $export.F, 'Object', { assign: require('./_object-assign') });\n","// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys = require('./_object-keys-internal');\nvar enumBugKeys = require('./_enum-bug-keys');\n\nmodule.exports = Object.keys || function keys(O) {\n return $keys(O, enumBugKeys);\n};\n","var pIE = require('./_object-pie');\nvar createDesc = require('./_property-desc');\nvar toIObject = require('./_to-iobject');\nvar toPrimitive = require('./_to-primitive');\nvar has = require('./_has');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar gOPD = Object.getOwnPropertyDescriptor;\n\nexports.f = require('./_descriptors') ? gOPD : function getOwnPropertyDescriptor(O, P) {\n O = toIObject(O);\n P = toPrimitive(P, true);\n if (IE8_DOM_DEFINE) try {\n return gOPD(O, P);\n } catch (e) { /* empty */ }\n if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);\n};\n","var dP = require('./_object-dp');\nvar anObject = require('./_an-object');\nvar getKeys = require('./_object-keys');\n\nmodule.exports = require('./_descriptors') ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = getKeys(Properties);\n var length = keys.length;\n var i = 0;\n var P;\n while (length > i) dP.f(O, P = keys[i++], Properties[P]);\n return O;\n};\n","// This file is imported into lib/wc client bundles.\n\nif (typeof window !== 'undefined') {\n var i\n if ((i = window.document.currentScript) && (i = i.src.match(/(.+\\/)[^/]+\\.js$/))) {\n __webpack_public_path__ = i[1] // eslint-disable-line\n }\n}\n","var isObject = require('./_is-object');\nvar document = require('./_global').document;\n// typeof document.createElement is 'object' in old IE\nvar is = isObject(document) && isObject(document.createElement);\nmodule.exports = function (it) {\n return is ? document.createElement(it) : {};\n};\n","exports.f = Object.getOwnPropertySymbols;\n","var global = require('./_global');\nvar hide = require('./_hide');\nvar has = require('./_has');\nvar SRC = require('./_uid')('src');\nvar TO_STRING = 'toString';\nvar $toString = Function[TO_STRING];\nvar TPL = ('' + $toString).split(TO_STRING);\n\nrequire('./_core').inspectSource = function (it) {\n return $toString.call(it);\n};\n\n(module.exports = function (O, key, val, safe) {\n var isFunction = typeof val == 'function';\n if (isFunction) has(val, 'name') || hide(val, 'name', key);\n if (O[key] === val) return;\n if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));\n if (O === global) {\n O[key] = val;\n } else if (!safe) {\n delete O[key];\n hide(O, key, val);\n } else if (O[key]) {\n O[key] = val;\n } else {\n hide(O, key, val);\n }\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype, TO_STRING, function toString() {\n return typeof this == 'function' && this[SRC] || $toString.call(this);\n});\n","// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\nvar anObject = require('./_an-object');\nvar dPs = require('./_object-dps');\nvar enumBugKeys = require('./_enum-bug-keys');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar Empty = function () { /* empty */ };\nvar PROTOTYPE = 'prototype';\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = require('./_dom-create')('iframe');\n var i = enumBugKeys.length;\n var lt = '<';\n var gt = '>';\n var iframeDocument;\n iframe.style.display = 'none';\n require('./_html').appendChild(iframe);\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n // createDict = iframe.contentWindow.Object;\n // html.removeChild(iframe);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);\n iframeDocument.close();\n createDict = iframeDocument.F;\n while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];\n return createDict();\n};\n\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n Empty[PROTOTYPE] = anObject(O);\n result = new Empty();\n Empty[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = createDict();\n return Properties === undefined ? result : dPs(result, Properties);\n};\n","module.exports = false;\n","var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n","var dP = require('./_object-dp');\nvar createDesc = require('./_property-desc');\nmodule.exports = require('./_descriptors') ? function (object, key, value) {\n return dP.f(object, key, createDesc(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","// 7.1.4 ToInteger\nvar ceil = Math.ceil;\nvar floor = Math.floor;\nmodule.exports = function (it) {\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","// 7.1.13 ToObject(argument)\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return Object(defined(it));\n};\n","exports.f = {}.propertyIsEnumerable;\n","var core = require('./_core');\nvar global = require('./_global');\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || (global[SHARED] = {});\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: core.version,\n mode: require('./_library') ? 'pure' : 'global',\n copyright: '© 2018 Denis Pushkarev (zloirock.ru)'\n});\n","var global = require('./_global');\nvar core = require('./_core');\nvar hide = require('./_hide');\nvar redefine = require('./_redefine');\nvar ctx = require('./_ctx');\nvar PROTOTYPE = 'prototype';\n\nvar $export = function (type, name, source) {\n var IS_FORCED = type & $export.F;\n var IS_GLOBAL = type & $export.G;\n var IS_STATIC = type & $export.S;\n var IS_PROTO = type & $export.P;\n var IS_BIND = type & $export.B;\n var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];\n var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});\n var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});\n var key, own, out, exp;\n if (IS_GLOBAL) source = name;\n for (key in source) {\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n // export native or passed\n out = (own ? target : source)[key];\n // bind timers to global for call from export context\n exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n // extend global\n if (target) redefine(target, key, out, type & $export.U);\n // export\n if (exports[key] != out) hide(exports, key, exp);\n if (IS_PROTO && expProto[key] != out) expProto[key] = out;\n }\n};\nglobal.core = core;\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library`\nmodule.exports = $export;\n","var isObject = require('./_is-object');\nvar setPrototypeOf = require('./_set-proto').set;\nmodule.exports = function (that, target, C) {\n var S = target.constructor;\n var P;\n if (S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf) {\n setPrototypeOf(that, P);\n } return that;\n};\n","var shared = require('./_shared')('keys');\nvar uid = require('./_uid');\nmodule.exports = function (key) {\n return shared[key] || (shared[key] = uid(key));\n};\n","// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = require('./_cof');\n// eslint-disable-next-line no-prototype-builtins\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n","// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = require('./_iobject');\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return IObject(defined(it));\n};\n","var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n","// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject = require('./_is-object');\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (it, S) {\n if (!isObject(it)) return it;\n var fn, val;\n if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;\n if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n","'use strict';\n// 19.1.2.1 Object.assign(target, source, ...)\nvar getKeys = require('./_object-keys');\nvar gOPS = require('./_object-gops');\nvar pIE = require('./_object-pie');\nvar toObject = require('./_to-object');\nvar IObject = require('./_iobject');\nvar $assign = Object.assign;\n\n// should work with symbols and should have deterministic property order (V8 bug)\nmodule.exports = !$assign || require('./_fails')(function () {\n var A = {};\n var B = {};\n // eslint-disable-next-line no-undef\n var S = Symbol();\n var K = 'abcdefghijklmnopqrst';\n A[S] = 7;\n K.split('').forEach(function (k) { B[k] = k; });\n return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;\n}) ? function assign(target, source) { // eslint-disable-line no-unused-vars\n var T = toObject(target);\n var aLen = arguments.length;\n var index = 1;\n var getSymbols = gOPS.f;\n var isEnum = pIE.f;\n while (aLen > index) {\n var S = IObject(arguments[index++]);\n var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);\n var length = keys.length;\n var j = 0;\n var key;\n while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key];\n } return T;\n} : $assign;\n","var toInteger = require('./_to-integer');\nvar max = Math.max;\nvar min = Math.min;\nmodule.exports = function (index, length) {\n index = toInteger(index);\n return index < 0 ? max(index + length, 0) : min(index, length);\n};\n","// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self\n // eslint-disable-next-line no-new-func\n : Function('return this')();\nif (typeof __g == 'number') __g = global; // eslint-disable-line no-undef\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\n};\n","var core = module.exports = { version: '2.5.7' };\nif (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n","var anObject = require('./_an-object');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar toPrimitive = require('./_to-primitive');\nvar dP = Object.defineProperty;\n\nexports.f = require('./_descriptors') ? Object.defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return dP(O, P, Attributes);\n } catch (e) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","// Works with __proto__ only. Old v8 can't work with null proto objects.\n/* eslint-disable no-proto */\nvar isObject = require('./_is-object');\nvar anObject = require('./_an-object');\nvar check = function (O, proto) {\n anObject(O);\n if (!isObject(proto) && proto !== null) throw TypeError(proto + \": can't set as prototype!\");\n};\nmodule.exports = {\n set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line\n function (test, buggy, set) {\n try {\n set = require('./_ctx')(Function.call, require('./_object-gopd').f(Object.prototype, '__proto__').set, 2);\n set(test, []);\n buggy = !(test instanceof Array);\n } catch (e) { buggy = true; }\n return function setPrototypeOf(O, proto) {\n check(O, proto);\n if (buggy) O.__proto__ = proto;\n else set(O, proto);\n return O;\n };\n }({}, false) : undefined),\n check: check\n};\n","// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)\nvar $keys = require('./_object-keys-internal');\nvar hiddenKeys = require('./_enum-bug-keys').concat('length', 'prototype');\n\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return $keys(O, hiddenKeys);\n};\n","// optional / simple context binding\nvar aFunction = require('./_a-function');\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","// 7.1.15 ToLength\nvar toInteger = require('./_to-integer');\nvar min = Math.min;\nmodule.exports = function (it) {\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n","// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./_fails')(function () {\n return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;\n});\n","var $export = require('./_export');\nvar defined = require('./_defined');\nvar fails = require('./_fails');\nvar spaces = require('./_string-ws');\nvar space = '[' + spaces + ']';\nvar non = '\\u200b\\u0085';\nvar ltrim = RegExp('^' + space + space + '*');\nvar rtrim = RegExp(space + space + '*$');\n\nvar exporter = function (KEY, exec, ALIAS) {\n var exp = {};\n var FORCE = fails(function () {\n return !!spaces[KEY]() || non[KEY]() != non;\n });\n var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY];\n if (ALIAS) exp[ALIAS] = fn;\n $export($export.P + $export.F * FORCE, 'String', exp);\n};\n\n// 1 -> String#trimLeft\n// 2 -> String#trimRight\n// 3 -> String#trim\nvar trim = exporter.trim = function (string, TYPE) {\n string = String(defined(string));\n if (TYPE & 1) string = string.replace(ltrim, '');\n if (TYPE & 2) string = string.replace(rtrim, '');\n return string;\n};\n\nmodule.exports = exporter;\n","// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n","// false -> Array#indexOf\n// true -> Array#includes\nvar toIObject = require('./_to-iobject');\nvar toLength = require('./_to-length');\nvar toAbsoluteIndex = require('./_to-absolute-index');\nmodule.exports = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) if (IS_INCLUDES || index in O) {\n if (O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n","'use strict';\nvar global = require('./_global');\nvar has = require('./_has');\nvar cof = require('./_cof');\nvar inheritIfRequired = require('./_inherit-if-required');\nvar toPrimitive = require('./_to-primitive');\nvar fails = require('./_fails');\nvar gOPN = require('./_object-gopn').f;\nvar gOPD = require('./_object-gopd').f;\nvar dP = require('./_object-dp').f;\nvar $trim = require('./_string-trim').trim;\nvar NUMBER = 'Number';\nvar $Number = global[NUMBER];\nvar Base = $Number;\nvar proto = $Number.prototype;\n// Opera ~12 has broken Object#toString\nvar BROKEN_COF = cof(require('./_object-create')(proto)) == NUMBER;\nvar TRIM = 'trim' in String.prototype;\n\n// 7.1.3 ToNumber(argument)\nvar toNumber = function (argument) {\n var it = toPrimitive(argument, false);\n if (typeof it == 'string' && it.length > 2) {\n it = TRIM ? it.trim() : $trim(it, 3);\n var first = it.charCodeAt(0);\n var third, radix, maxCode;\n if (first === 43 || first === 45) {\n third = it.charCodeAt(2);\n if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix\n } else if (first === 48) {\n switch (it.charCodeAt(1)) {\n case 66: case 98: radix = 2; maxCode = 49; break; // fast equal /^0b[01]+$/i\n case 79: case 111: radix = 8; maxCode = 55; break; // fast equal /^0o[0-7]+$/i\n default: return +it;\n }\n for (var digits = it.slice(2), i = 0, l = digits.length, code; i < l; i++) {\n code = digits.charCodeAt(i);\n // parseInt parses a string to a first unavailable symbol\n // but ToNumber should return NaN if a string contains unavailable symbols\n if (code < 48 || code > maxCode) return NaN;\n } return parseInt(digits, radix);\n }\n } return +it;\n};\n\nif (!$Number(' 0o1') || !$Number('0b1') || $Number('+0x1')) {\n $Number = function Number(value) {\n var it = arguments.length < 1 ? 0 : value;\n var that = this;\n return that instanceof $Number\n // check on 1..constructor(foo) case\n && (BROKEN_COF ? fails(function () { proto.valueOf.call(that); }) : cof(that) != NUMBER)\n ? inheritIfRequired(new Base(toNumber(it)), that, $Number) : toNumber(it);\n };\n for (var keys = require('./_descriptors') ? gOPN(Base) : (\n // ES3:\n 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +\n // ES6 (in case, if modules with ES6 Number statics required before):\n 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' +\n 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger'\n ).split(','), j = 0, key; keys.length > j; j++) {\n if (has(Base, key = keys[j]) && !has($Number, key)) {\n dP($Number, key, gOPD(Base, key));\n }\n }\n $Number.prototype = proto;\n proto.constructor = $Number;\n require('./_redefine')(global, NUMBER, $Number);\n}\n","module.exports = !require('./_descriptors') && !require('./_fails')(function () {\n return Object.defineProperty(require('./_dom-create')('div'), 'a', { get: function () { return 7; } }).a != 7;\n});\n","var isObject = require('./_is-object');\nmodule.exports = function (it) {\n if (!isObject(it)) throw TypeError(it + ' is not an object!');\n return it;\n};\n","var id = 0;\nvar px = Math.random();\nmodule.exports = function (key) {\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n","var has = require('./_has');\nvar toIObject = require('./_to-iobject');\nvar arrayIndexOf = require('./_array-includes')(false);\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\n\nmodule.exports = function (object, names) {\n var O = toIObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~arrayIndexOf(result, key) || result.push(key);\n }\n return result;\n};\n"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/vue-highlight-words.umd.min.js b/dist/vue-highlight-words.umd.min.js new file mode 100644 index 0000000..21318d2 --- /dev/null +++ b/dist/vue-highlight-words.umd.min.js @@ -0,0 +1,2 @@ +(function(t,n){"object"===typeof exports&&"object"===typeof module?module.exports=n():"function"===typeof define&&define.amd?define([],n):"object"===typeof exports?exports["vue-highlight-words"]=n():t["vue-highlight-words"]=n()})("undefined"!==typeof self?self:this,function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t["default"]}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s="+xUi")}({"+rLv":function(t,n,e){var r=e("dyZX").document;t.exports=r&&r.documentElement},"+xUi":function(t,n,e){"use strict";e.r(n);e("HrLf"),e("91GP"),e("xfY5");var r=e("5V/u"),o={functional:!0,props:{activeClassName:String,activeIndex:Number,activeStyle:Object,autoEscape:Boolean,className:String,findChunks:Function,highlightClassName:String,highlightStyle:Object,highlightTag:[Node,Function,String],sanitize:Function,searchWords:{type:Array,validator:function(t){return t.every(function(t){return"string"===typeof t})},required:!0},textToHighlight:{type:String,required:!0},unhighlightClassName:String,unhighlightStyle:Object},render:function(t,n){var e,o=n.props,i=o.activeClassName,u=void 0===i?"":i,c=o.activeIndex,a=void 0===c?-1:c,f=o.activeStyle,s=o.autoEscape,l=o.caseSensitive,p=void 0!==l&&l,h=o.className,d=o.findChunks,v=o.highlightClassName,g=void 0===v?"":v,y=o.highlightStyle,x=void 0===y?{}:y,b=o.highlightTag,m=void 0===b?"mark":b,j=o.sanitize,O=o.searchWords,w=o.textToHighlight,S=o.unhighlightClassName,_=void 0===S?"":S,E=o.unhighlightStyle,P=Object(r["findAll"])({autoEscape:s,caseSensitive:p,findChunks:d,sanitize:j,searchWords:O,textToHighlight:w}),N=m,I=-1,T="";return t("span",{attrs:{className:h}},[P.map(function(n,r){var o=w.substr(n.start,n.end-n.start);if(n.highlight){I++;var i=I===+a;return T="".concat(g," ").concat(i?u:""),e=!0===i&&null!=f?Object.assign({},x,f):x,t(N,{class:T,key:r,style:e},[o])}return t("span",{attrs:{className:_},key:r,style:E},[o])})])}};n["default"]=o},"/e88":function(t,n){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},"0/R4":function(t,n){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},"2OiF":function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},"4R4u":function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"5V/u":function(t,n){t.exports=function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}return e.m=t,e.c=n,e.p="",e(0)}([function(t,n,e){t.exports=e(1)},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e(2);Object.defineProperty(n,"combineChunks",{enumerable:!0,get:function(){return r.combineChunks}}),Object.defineProperty(n,"fillInChunks",{enumerable:!0,get:function(){return r.fillInChunks}}),Object.defineProperty(n,"findAll",{enumerable:!0,get:function(){return r.findAll}}),Object.defineProperty(n,"findChunks",{enumerable:!0,get:function(){return r.findChunks}})},function(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.findAll=function(t){var n=t.autoEscape,i=t.caseSensitive,u=void 0!==i&&i,c=t.findChunks,a=void 0===c?r:c,f=t.sanitize,s=t.searchWords,l=t.textToHighlight;return o({chunksToHighlight:e({chunks:a({autoEscape:n,caseSensitive:u,sanitize:f,searchWords:s,textToHighlight:l})}),totalLength:l?l.length:0})};var e=n.combineChunks=function(t){var n=t.chunks;return n=n.sort(function(t,n){return t.start-n.start}).reduce(function(t,n){if(0===t.length)return[n];var e=t.pop();if(n.start<=e.end){var r=Math.max(e.end,n.end);t.push({start:e.start,end:r})}else t.push(e,n);return t},[]),n},r=function(t){var n=t.autoEscape,e=t.caseSensitive,r=t.sanitize,o=void 0===r?i:r,c=t.searchWords,a=t.textToHighlight;return a=o(a),c.filter(function(t){return t}).reduce(function(t,r){r=o(r),n&&(r=u(r));var i=new RegExp(r,e?"g":"gi"),c=void 0;while(c=i.exec(a)){var f=c.index,s=i.lastIndex;s>f&&t.push({start:f,end:s}),c.index==i.lastIndex&&i.lastIndex++}return t},[])};n.findChunks=r;var o=n.fillInChunks=function(t){var n=t.chunksToHighlight,e=t.totalLength,r=[],o=function(t,n,e){n-t>0&&r.push({start:t,end:n,highlight:e})};if(0===n.length)o(0,e,!1);else{var i=0;n.forEach(function(t){o(i,t.start,!1),o(t.start,t.end,!0),i=t.end}),o(i,e,!1)}return r};function i(t){return t}function u(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}}])},"91GP":function(t,n,e){var r=e("XKFU");r(r.S+r.F,"Object",{assign:e("czNK")})},DVgA:function(t,n,e){var r=e("zhAb"),o=e("4R4u");t.exports=Object.keys||function(t){return r(t,o)}},EemH:function(t,n,e){var r=e("UqcF"),o=e("RjD/"),i=e("aCFj"),u=e("apmT"),c=e("aagx"),a=e("xpql"),f=Object.getOwnPropertyDescriptor;n.f=e("nh4g")?f:function(t,n){if(t=i(t),n=u(n,!0),a)try{return f(t,n)}catch(t){}if(c(t,n))return o(!r.f.call(t,n),t[n])}},FJW5:function(t,n,e){var r=e("hswa"),o=e("y3w9"),i=e("DVgA");t.exports=e("nh4g")?Object.defineProperties:function(t,n){o(t);var e,u=i(n),c=u.length,a=0;while(c>a)r.f(t,e=u[a++],n[e]);return t}},HrLf:function(t,n,e){var r;"undefined"!==typeof window&&((r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js$/))&&(e.p=r[1]))},Iw71:function(t,n,e){var r=e("0/R4"),o=e("dyZX").document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},JiEa:function(t,n){n.f=Object.getOwnPropertySymbols},KroJ:function(t,n,e){var r=e("dyZX"),o=e("Mukb"),i=e("aagx"),u=e("ylqs")("src"),c="toString",a=Function[c],f=(""+a).split(c);e("g3g5").inspectSource=function(t){return a.call(t)},(t.exports=function(t,n,e,c){var a="function"==typeof e;a&&(i(e,"name")||o(e,"name",n)),t[n]!==e&&(a&&(i(e,u)||o(e,u,t[n]?""+t[n]:f.join(String(n)))),t===r?t[n]=e:c?t[n]?t[n]=e:o(t,n,e):(delete t[n],o(t,n,e)))})(Function.prototype,c,function(){return"function"==typeof this&&this[u]||a.call(this)})},Kuth:function(t,n,e){var r=e("y3w9"),o=e("FJW5"),i=e("4R4u"),u=e("YTvA")("IE_PROTO"),c=function(){},a="prototype",f=function(){var t,n=e("Iw71")("iframe"),r=i.length,o="<",u=">";n.style.display="none",e("+rLv").appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write(o+"script"+u+"document.F=Object"+o+"/script"+u),t.close(),f=t.F;while(r--)delete f[a][i[r]];return f()};t.exports=Object.create||function(t,n){var e;return null!==t?(c[a]=r(t),e=new c,c[a]=null,e[u]=t):e=f(),void 0===n?e:o(e,n)}},LQAc:function(t,n){t.exports=!1},LZWt:function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},Mukb:function(t,n,e){var r=e("hswa"),o=e("RjD/");t.exports=e("nh4g")?function(t,n,e){return r.f(t,n,o(1,e))}:function(t,n,e){return t[n]=e,t}},RYi7:function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},"RjD/":function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},"S/j/":function(t,n,e){var r=e("vhPU");t.exports=function(t){return Object(r(t))}},UqcF:function(t,n){n.f={}.propertyIsEnumerable},VTer:function(t,n,e){var r=e("g3g5"),o=e("dyZX"),i="__core-js_shared__",u=o[i]||(o[i]={});(t.exports=function(t,n){return u[t]||(u[t]=void 0!==n?n:{})})("versions",[]).push({version:r.version,mode:e("LQAc")?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},XKFU:function(t,n,e){var r=e("dyZX"),o=e("g3g5"),i=e("Mukb"),u=e("KroJ"),c=e("m0Pp"),a="prototype",f=function(t,n,e){var s,l,p,h,d=t&f.F,v=t&f.G,g=t&f.S,y=t&f.P,x=t&f.B,b=v?r:g?r[n]||(r[n]={}):(r[n]||{})[a],m=v?o:o[n]||(o[n]={}),j=m[a]||(m[a]={});for(s in v&&(e=n),e)l=!d&&b&&void 0!==b[s],p=(l?b:e)[s],h=x&&l?c(p,r):y&&"function"==typeof p?c(Function.call,p):p,b&&u(b,s,p,t&f.U),m[s]!=p&&i(m,s,h),y&&j[s]!=p&&(j[s]=p)};r.core=o,f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,t.exports=f},Xbzi:function(t,n,e){var r=e("0/R4"),o=e("i5dc").set;t.exports=function(t,n,e){var i,u=n.constructor;return u!==e&&"function"==typeof u&&(i=u.prototype)!==e.prototype&&r(i)&&o&&o(t,i),t}},YTvA:function(t,n,e){var r=e("VTer")("keys"),o=e("ylqs");t.exports=function(t){return r[t]||(r[t]=o(t))}},Ymqv:function(t,n,e){var r=e("LZWt");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},aCFj:function(t,n,e){var r=e("Ymqv"),o=e("vhPU");t.exports=function(t){return r(o(t))}},aagx:function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},apmT:function(t,n,e){var r=e("0/R4");t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},czNK:function(t,n,e){"use strict";var r=e("DVgA"),o=e("JiEa"),i=e("UqcF"),u=e("S/j/"),c=e("Ymqv"),a=Object.assign;t.exports=!a||e("eeVq")(function(){var t={},n={},e=Symbol(),r="abcdefghijklmnopqrst";return t[e]=7,r.split("").forEach(function(t){n[t]=t}),7!=a({},t)[e]||Object.keys(a({},n)).join("")!=r})?function(t,n){var e=u(t),a=arguments.length,f=1,s=o.f,l=i.f;while(a>f){var p,h=c(arguments[f++]),d=s?r(h).concat(s(h)):r(h),v=d.length,g=0;while(v>g)l.call(h,p=d[g++])&&(e[p]=h[p])}return e}:a},"d/Gc":function(t,n,e){var r=e("RYi7"),o=Math.max,i=Math.min;t.exports=function(t,n){return t=r(t),t<0?o(t+n,0):i(t,n)}},dyZX:function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},eeVq:function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},g3g5:function(t,n){var e=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=e)},hswa:function(t,n,e){var r=e("y3w9"),o=e("xpql"),i=e("apmT"),u=Object.defineProperty;n.f=e("nh4g")?Object.defineProperty:function(t,n,e){if(r(t),n=i(n,!0),r(e),o)try{return u(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},i5dc:function(t,n,e){var r=e("0/R4"),o=e("y3w9"),i=function(t,n){if(o(t),!r(n)&&null!==n)throw TypeError(n+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,r){try{r=e("m0Pp")(Function.call,e("EemH").f(Object.prototype,"__proto__").set,2),r(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,e){return i(t,e),n?t.__proto__=e:r(t,e),t}}({},!1):void 0),check:i}},kJMx:function(t,n,e){var r=e("zhAb"),o=e("4R4u").concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},m0Pp:function(t,n,e){var r=e("2OiF");t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}}},ne8i:function(t,n,e){var r=e("RYi7"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},nh4g:function(t,n,e){t.exports=!e("eeVq")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},qncB:function(t,n,e){var r=e("XKFU"),o=e("vhPU"),i=e("eeVq"),u=e("/e88"),c="["+u+"]",a="​…",f=RegExp("^"+c+c+"*"),s=RegExp(c+c+"*$"),l=function(t,n,e){var o={},c=i(function(){return!!u[t]()||a[t]()!=a}),f=o[t]=c?n(p):u[t];e&&(o[e]=f),r(r.P+r.F*c,"String",o)},p=l.trim=function(t,n){return t=String(o(t)),1&n&&(t=t.replace(f,"")),2&n&&(t=t.replace(s,"")),t};t.exports=l},vhPU:function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},w2a5:function(t,n,e){var r=e("aCFj"),o=e("ne8i"),i=e("d/Gc");t.exports=function(t){return function(n,e,u){var c,a=r(n),f=o(a.length),s=i(u,f);if(t&&e!=e){while(f>s)if(c=a[s++],c!=c)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===e)return t||s||0;return!t&&-1}}},xfY5:function(t,n,e){"use strict";var r=e("dyZX"),o=e("aagx"),i=e("LZWt"),u=e("Xbzi"),c=e("apmT"),a=e("eeVq"),f=e("kJMx").f,s=e("EemH").f,l=e("hswa").f,p=e("qncB").trim,h="Number",d=r[h],v=d,g=d.prototype,y=i(e("Kuth")(g))==h,x="trim"in String.prototype,b=function(t){var n=c(t,!1);if("string"==typeof n&&n.length>2){n=x?n.trim():p(n,3);var e,r,o,i=n.charCodeAt(0);if(43===i||45===i){if(e=n.charCodeAt(2),88===e||120===e)return NaN}else if(48===i){switch(n.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+n}for(var u,a=n.slice(2),f=0,s=a.length;fo)return NaN;return parseInt(a,r)}}return+n};if(!d(" 0o1")||!d("0b1")||d("+0x1")){d=function(t){var n=arguments.length<1?0:t,e=this;return e instanceof d&&(y?a(function(){g.valueOf.call(e)}):i(e)!=h)?u(new v(b(n)),e,d):b(n)};for(var m,j=e("nh4g")?f(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),O=0;j.length>O;O++)o(v,m=j[O])&&!o(d,m)&&l(d,m,s(v,m));d.prototype=g,g.constructor=d,e("KroJ")(r,h,d)}},xpql:function(t,n,e){t.exports=!e("nh4g")&&!e("eeVq")(function(){return 7!=Object.defineProperty(e("Iw71")("div"),"a",{get:function(){return 7}}).a})},y3w9:function(t,n,e){var r=e("0/R4");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},ylqs:function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},zhAb:function(t,n,e){var r=e("aagx"),o=e("aCFj"),i=e("w2a5")(!1),u=e("YTvA")("IE_PROTO");t.exports=function(t,n){var e,c=o(t),a=0,f=[];for(e in c)e!=u&&r(c,e)&&f.push(e);while(n.length>a)r(c,e=n[a++])&&(~i(f,e)||f.push(e));return f}}})["default"]}); +//# sourceMappingURL=vue-highlight-words.umd.min.js.map \ No newline at end of file diff --git a/dist/vue-highlight-words.umd.min.js.map b/dist/vue-highlight-words.umd.min.js.map new file mode 100644 index 0000000..89e920e --- /dev/null +++ b/dist/vue-highlight-words.umd.min.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack://vue-highlight-words/webpack/universalModuleDefinition","webpack://vue-highlight-words/webpack/bootstrap","webpack://vue-highlight-words/./node_modules/core-js/modules/_html.js","webpack://vue-highlight-words/./src/components/HighlightWords.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_string-ws.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_is-object.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_a-function.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_enum-bug-keys.js","webpack://vue-highlight-words/./node_modules/highlight-words-core/dist/index.js","webpack://vue-highlight-words/./node_modules/core-js/modules/es6.object.assign.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_object-keys.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_object-gopd.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_object-dps.js","webpack://vue-highlight-words/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_dom-create.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_object-gops.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_redefine.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_object-create.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_library.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_cof.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_hide.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_to-integer.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_property-desc.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_to-object.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_object-pie.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_shared.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_export.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_inherit-if-required.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_shared-key.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_iobject.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_to-iobject.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_has.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_to-primitive.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_object-assign.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_to-absolute-index.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_global.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_fails.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_core.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_object-dp.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_set-proto.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_object-gopn.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_ctx.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_to-length.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_descriptors.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_string-trim.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_defined.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_array-includes.js","webpack://vue-highlight-words/./node_modules/core-js/modules/es6.number.constructor.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_ie8-dom-define.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_an-object.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_uid.js","webpack://vue-highlight-words/./node_modules/core-js/modules/_object-keys-internal.js"],"names":["root","factory","exports","module","define","amd","self","this","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","document","documentElement","HighlightWords","functional","props","activeClassName","String","activeIndex","Number","activeStyle","autoEscape","Boolean","className","findChunks","Function","highlightClassName","highlightStyle","highlightTag","Node","sanitize","searchWords","type","Array","validator","every","word","required","textToHighlight","unhighlightClassName","unhighlightStyle","render","h","context","highlightStyles","_context$props","_context$props$active","_context$props$active2","_context$props$caseSe","caseSensitive","_context$props$highli","_context$props$highli2","_context$props$highli3","_context$props$unhigh","chunks","dist","HighlightTag","highlightCount","highlightClassNames","attrs","map","chunk","index","text","substr","start","end","highlight","isActive","concat","assign","class","style","it","TypeError","split","id","loaded","_utils","combineChunks","fillInChunks","findAll","_ref","_ref$caseSensitive","undefined","_ref$findChunks","defaultFindChunks","chunksToHighlight","totalLength","length","_ref2","sort","first","second","reduce","processedChunks","nextChunk","prevChunk","pop","endIndex","Math","max","push","_ref3","_ref3$sanitize","identity","filter","searchWord","escapeRegExpFn","regex","RegExp","match","exec","lastIndex","_ref4","allChunks","append","forEach","str","replace","$export","S","F","$keys","enumBugKeys","keys","O","pIE","createDesc","toIObject","toPrimitive","has","IE8_DOM_DEFINE","gOPD","getOwnPropertyDescriptor","f","P","e","dP","anObject","getKeys","defineProperties","Properties","window","currentScript","src","isObject","is","createElement","getOwnPropertySymbols","global","hide","SRC","TO_STRING","$toString","TPL","inspectSource","val","safe","isFunction","join","dPs","IE_PROTO","Empty","PROTOTYPE","createDict","iframeDocument","iframe","lt","gt","display","appendChild","contentWindow","open","write","close","result","toString","slice","ceil","floor","isNaN","bitmap","configurable","writable","defined","propertyIsEnumerable","core","SHARED","store","version","copyright","redefine","ctx","source","own","out","exp","IS_FORCED","IS_GLOBAL","G","IS_STATIC","IS_PROTO","IS_BIND","B","target","expProto","U","W","R","setPrototypeOf","set","that","C","constructor","shared","uid","cof","IObject","fn","valueOf","gOPS","toObject","$assign","A","K","k","T","aLen","arguments","getSymbols","isEnum","j","toInteger","min","__g","__e","Attributes","check","proto","test","buggy","__proto__","hiddenKeys","getOwnPropertyNames","aFunction","a","b","apply","fails","spaces","space","non","ltrim","rtrim","exporter","KEY","ALIAS","FORCE","trim","string","TYPE","toLength","toAbsoluteIndex","IS_INCLUDES","$this","el","fromIndex","inheritIfRequired","gOPN","$trim","NUMBER","$Number","Base","BROKEN_COF","TRIM","toNumber","argument","third","radix","maxCode","charCodeAt","NaN","code","digits","parseInt","px","random","arrayIndexOf","names"],"mappings":"CAAA,SAAAA,EAAAC,GACA,kBAAAC,SAAA,kBAAAC,OACAA,OAAAD,QAAAD,IACA,oBAAAG,eAAAC,IACAD,UAAAH,GACA,kBAAAC,QACAA,QAAA,uBAAAD,IAEAD,EAAA,uBAAAC,KARA,CASC,qBAAAK,UAAAC,KAAA,WACD,mBCTA,IAAAC,KAGA,SAAAC,EAAAC,GAGA,GAAAF,EAAAE,GACA,OAAAF,EAAAE,GAAAR,QAGA,IAAAC,EAAAK,EAAAE,IACAC,EAAAD,EACAE,GAAA,EACAV,YAUA,OANAW,EAAAH,GAAAI,KAAAX,EAAAD,QAAAC,IAAAD,QAAAO,GAGAN,EAAAS,GAAA,EAGAT,EAAAD,QA0DA,OArDAO,EAAAM,EAAAF,EAGAJ,EAAAO,EAAAR,EAGAC,EAAAQ,EAAA,SAAAf,EAAAgB,EAAAC,GACAV,EAAAW,EAAAlB,EAAAgB,IACAG,OAAAC,eAAApB,EAAAgB,GAA0CK,YAAA,EAAAC,IAAAL,KAK1CV,EAAAgB,EAAA,SAAAvB,GACA,qBAAAwB,eAAAC,aACAN,OAAAC,eAAApB,EAAAwB,OAAAC,aAAwDC,MAAA,WAExDP,OAAAC,eAAApB,EAAA,cAAiD0B,OAAA,KAQjDnB,EAAAoB,EAAA,SAAAD,EAAAE,GAEA,GADA,EAAAA,IAAAF,EAAAnB,EAAAmB,IACA,EAAAE,EAAA,OAAAF,EACA,KAAAE,GAAA,kBAAAF,QAAAG,WAAA,OAAAH,EACA,IAAAI,EAAAX,OAAAY,OAAA,MAGA,GAFAxB,EAAAgB,EAAAO,GACAX,OAAAC,eAAAU,EAAA,WAAyCT,YAAA,EAAAK,UACzC,EAAAE,GAAA,iBAAAF,EAAA,QA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AA9Q,EAAAmI,EAAA4I,EAAA/Q,IAGA8Q,EAAAzQ,UAAAwO,EACAA,EAAAzB,YAAA0D,EACAvS,EAAA,OAAAA,CAAA6K,EAAAyH,EAAAC,0BCnEA7S,EAAAD,SAAAO,EAAA,UAAAA,EAAA,OAAAA,CAAA,WACA,OAAuG,GAAvGY,OAAAC,eAAAb,EAAA,OAAAA,CAAA,YAAsEe,IAAA,WAAmB,YAAc8P,0BCDvG,IAAApG,EAAAzK,EAAA,QACAN,EAAAD,QAAA,SAAAuG,GACA,IAAAyE,EAAAzE,GAAA,MAAAC,UAAAD,EAAA,sBACA,OAAAA,uBCHA,IAAAG,EAAA,EACAkN,EAAA1L,KAAA2L,SACA5T,EAAAD,QAAA,SAAAgC,GACA,gBAAAmE,YAAAe,IAAAlF,EAAA,GAAAA,EAAA,QAAA0E,EAAAkN,GAAA7G,SAAA,4BCHA,IAAA9C,EAAA1J,EAAA,QACAwJ,EAAAxJ,EAAA,QACAuT,EAAAvT,EAAA,OAAAA,EAAA,GACAyL,EAAAzL,EAAA,OAAAA,CAAA,YAEAN,EAAAD,QAAA,SAAAmC,EAAA4R,GACA,IAGA/R,EAHA4H,EAAAG,EAAA5H,GACA1B,EAAA,EACAqM,KAEA,IAAA9K,KAAA4H,EAAA5H,GAAAgK,GAAA/B,EAAAL,EAAA5H,IAAA8K,EAAA1E,KAAApG,GAEA,MAAA+R,EAAAxM,OAAA9G,EAAAwJ,EAAAL,EAAA5H,EAAA+R,EAAAtT,SACAqT,EAAAhH,EAAA9K,IAAA8K,EAAA1E,KAAApG,IAEA,OAAA8K","file":"vue-highlight-words.umd.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"vue-highlight-words\"] = factory();\n\telse\n\t\troot[\"vue-highlight-words\"] = factory();\n})(typeof self !== 'undefined' ? self : this, function() {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"+xUi\");\n","var document = require('./_global').document;\nmodule.exports = document && document.documentElement;\n","import { findAll } from 'highlight-words-core'\n\nexport default {\n functional: true,\n props: {\n activeClassName: String,\n activeIndex: Number,\n activeStyle: Object,\n autoEscape: Boolean,\n className: String,\n findChunks: Function,\n highlightClassName: String,\n highlightStyle: Object,\n highlightTag: [Node, Function, String],\n sanitize: Function,\n searchWords: {\n type: Array, // Array\n validator(value) {\n return value.every(word => typeof word === 'string')\n },\n required: true\n },\n textToHighlight: {\n type: String,\n required: true\n },\n unhighlightClassName: String,\n unhighlightStyle: Object\n },\n render(h, context) {\n const {\n activeClassName = '',\n activeIndex = -1,\n activeStyle,\n autoEscape,\n caseSensitive = false,\n className,\n findChunks,\n highlightClassName = '',\n highlightStyle = {},\n highlightTag = 'mark',\n sanitize,\n searchWords,\n textToHighlight,\n unhighlightClassName = '',\n unhighlightStyle\n } = context.props\n\n const chunks = findAll({\n autoEscape,\n caseSensitive,\n findChunks,\n sanitize,\n searchWords,\n textToHighlight\n })\n\n const HighlightTag = highlightTag\n let highlightCount = -1\n let highlightClassNames = ''\n let highlightStyles\n\n return (\n \n {chunks.map((chunk, index) => {\n const text = textToHighlight.substr(\n chunk.start,\n chunk.end - chunk.start\n )\n\n if (chunk.highlight) {\n highlightCount++\n\n const isActive = highlightCount === +activeIndex\n\n highlightClassNames = `${highlightClassName} ${\n isActive ? activeClassName : ''\n }`\n highlightStyles =\n isActive === true && activeStyle != null\n ? Object.assign({}, highlightStyle, activeStyle)\n : highlightStyle\n\n return (\n \n {text}\n \n )\n } else {\n return (\n \n {text}\n \n )\n }\n })}\n \n )\n }\n}\n","module.exports = '\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003' +\n '\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF';\n","module.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n","module.exports = function (it) {\n if (typeof it != 'function') throw TypeError(it + ' is not a function!');\n return it;\n};\n","// IE 8- don't enum bug keys\nmodule.exports = (\n 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'\n).split(',');\n","module.exports =\n/******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId])\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\texports: {},\n/******/ \t\t\tid: moduleId,\n/******/ \t\t\tloaded: false\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.loaded = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(0);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\tmodule.exports = __webpack_require__(1);\n\n\n/***/ }),\n/* 1 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _utils = __webpack_require__(2);\n\t\n\tObject.defineProperty(exports, 'combineChunks', {\n\t enumerable: true,\n\t get: function get() {\n\t return _utils.combineChunks;\n\t }\n\t});\n\tObject.defineProperty(exports, 'fillInChunks', {\n\t enumerable: true,\n\t get: function get() {\n\t return _utils.fillInChunks;\n\t }\n\t});\n\tObject.defineProperty(exports, 'findAll', {\n\t enumerable: true,\n\t get: function get() {\n\t return _utils.findAll;\n\t }\n\t});\n\tObject.defineProperty(exports, 'findChunks', {\n\t enumerable: true,\n\t get: function get() {\n\t return _utils.findChunks;\n\t }\n\t});\n\n/***/ }),\n/* 2 */\n/***/ (function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t/**\n\t * Creates an array of chunk objects representing both higlightable and non highlightable pieces of text that match each search word.\n\t * @return Array of \"chunks\" (where a Chunk is { start:number, end:number, highlight:boolean })\n\t */\n\tvar findAll = exports.findAll = function findAll(_ref) {\n\t var autoEscape = _ref.autoEscape,\n\t _ref$caseSensitive = _ref.caseSensitive,\n\t caseSensitive = _ref$caseSensitive === undefined ? false : _ref$caseSensitive,\n\t _ref$findChunks = _ref.findChunks,\n\t findChunks = _ref$findChunks === undefined ? defaultFindChunks : _ref$findChunks,\n\t sanitize = _ref.sanitize,\n\t searchWords = _ref.searchWords,\n\t textToHighlight = _ref.textToHighlight;\n\t return fillInChunks({\n\t chunksToHighlight: combineChunks({\n\t chunks: findChunks({\n\t autoEscape: autoEscape,\n\t caseSensitive: caseSensitive,\n\t sanitize: sanitize,\n\t searchWords: searchWords,\n\t textToHighlight: textToHighlight\n\t })\n\t }),\n\t totalLength: textToHighlight ? textToHighlight.length : 0\n\t });\n\t};\n\t\n\t/**\n\t * Takes an array of {start:number, end:number} objects and combines chunks that overlap into single chunks.\n\t * @return {start:number, end:number}[]\n\t */\n\tvar combineChunks = exports.combineChunks = function combineChunks(_ref2) {\n\t var chunks = _ref2.chunks;\n\t\n\t chunks = chunks.sort(function (first, second) {\n\t return first.start - second.start;\n\t }).reduce(function (processedChunks, nextChunk) {\n\t // First chunk just goes straight in the array...\n\t if (processedChunks.length === 0) {\n\t return [nextChunk];\n\t } else {\n\t // ... subsequent chunks get checked to see if they overlap...\n\t var prevChunk = processedChunks.pop();\n\t if (nextChunk.start <= prevChunk.end) {\n\t // It may be the case that prevChunk completely surrounds nextChunk, so take the\n\t // largest of the end indeces.\n\t var endIndex = Math.max(prevChunk.end, nextChunk.end);\n\t processedChunks.push({ start: prevChunk.start, end: endIndex });\n\t } else {\n\t processedChunks.push(prevChunk, nextChunk);\n\t }\n\t return processedChunks;\n\t }\n\t }, []);\n\t\n\t return chunks;\n\t};\n\t\n\t/**\n\t * Examine text for any matches.\n\t * If we find matches, add them to the returned array as a \"chunk\" object ({start:number, end:number}).\n\t * @return {start:number, end:number}[]\n\t */\n\tvar defaultFindChunks = function defaultFindChunks(_ref3) {\n\t var autoEscape = _ref3.autoEscape,\n\t caseSensitive = _ref3.caseSensitive,\n\t _ref3$sanitize = _ref3.sanitize,\n\t sanitize = _ref3$sanitize === undefined ? identity : _ref3$sanitize,\n\t searchWords = _ref3.searchWords,\n\t textToHighlight = _ref3.textToHighlight;\n\t\n\t textToHighlight = sanitize(textToHighlight);\n\t\n\t return searchWords.filter(function (searchWord) {\n\t return searchWord;\n\t }) // Remove empty words\n\t .reduce(function (chunks, searchWord) {\n\t searchWord = sanitize(searchWord);\n\t\n\t if (autoEscape) {\n\t searchWord = escapeRegExpFn(searchWord);\n\t }\n\t\n\t var regex = new RegExp(searchWord, caseSensitive ? 'g' : 'gi');\n\t\n\t var match = void 0;\n\t while (match = regex.exec(textToHighlight)) {\n\t var start = match.index;\n\t var end = regex.lastIndex;\n\t // We do not return zero-length matches\n\t if (end > start) {\n\t chunks.push({ start: start, end: end });\n\t }\n\t\n\t // Prevent browsers like Firefox from getting stuck in an infinite loop\n\t // See http://www.regexguru.com/2008/04/watch-out-for-zero-length-matches/\n\t if (match.index == regex.lastIndex) {\n\t regex.lastIndex++;\n\t }\n\t }\n\t\n\t return chunks;\n\t }, []);\n\t};\n\t// Allow the findChunks to be overridden in findAll,\n\t// but for backwards compatibility we export as the old name\n\texports.findChunks = defaultFindChunks;\n\t\n\t/**\n\t * Given a set of chunks to highlight, create an additional set of chunks\n\t * to represent the bits of text between the highlighted text.\n\t * @param chunksToHighlight {start:number, end:number}[]\n\t * @param totalLength number\n\t * @return {start:number, end:number, highlight:boolean}[]\n\t */\n\t\n\tvar fillInChunks = exports.fillInChunks = function fillInChunks(_ref4) {\n\t var chunksToHighlight = _ref4.chunksToHighlight,\n\t totalLength = _ref4.totalLength;\n\t\n\t var allChunks = [];\n\t var append = function append(start, end, highlight) {\n\t if (end - start > 0) {\n\t allChunks.push({\n\t start: start,\n\t end: end,\n\t highlight: highlight\n\t });\n\t }\n\t };\n\t\n\t if (chunksToHighlight.length === 0) {\n\t append(0, totalLength, false);\n\t } else {\n\t var lastIndex = 0;\n\t chunksToHighlight.forEach(function (chunk) {\n\t append(lastIndex, chunk.start, false);\n\t append(chunk.start, chunk.end, true);\n\t lastIndex = chunk.end;\n\t });\n\t append(lastIndex, totalLength, false);\n\t }\n\t return allChunks;\n\t};\n\t\n\tfunction identity(value) {\n\t return value;\n\t}\n\t\n\tfunction escapeRegExpFn(str) {\n\t return str.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g, '\\\\$&');\n\t}\n\n/***/ })\n/******/ ]);\n//# sourceMappingURL=index.js.map","// 19.1.3.1 Object.assign(target, source)\nvar $export = require('./_export');\n\n$export($export.S + $export.F, 'Object', { assign: require('./_object-assign') });\n","// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys = require('./_object-keys-internal');\nvar enumBugKeys = require('./_enum-bug-keys');\n\nmodule.exports = Object.keys || function keys(O) {\n return $keys(O, enumBugKeys);\n};\n","var pIE = require('./_object-pie');\nvar createDesc = require('./_property-desc');\nvar toIObject = require('./_to-iobject');\nvar toPrimitive = require('./_to-primitive');\nvar has = require('./_has');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar gOPD = Object.getOwnPropertyDescriptor;\n\nexports.f = require('./_descriptors') ? gOPD : function getOwnPropertyDescriptor(O, P) {\n O = toIObject(O);\n P = toPrimitive(P, true);\n if (IE8_DOM_DEFINE) try {\n return gOPD(O, P);\n } catch (e) { /* empty */ }\n if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);\n};\n","var dP = require('./_object-dp');\nvar anObject = require('./_an-object');\nvar getKeys = require('./_object-keys');\n\nmodule.exports = require('./_descriptors') ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = getKeys(Properties);\n var length = keys.length;\n var i = 0;\n var P;\n while (length > i) dP.f(O, P = keys[i++], Properties[P]);\n return O;\n};\n","// This file is imported into lib/wc client bundles.\n\nif (typeof window !== 'undefined') {\n var i\n if ((i = window.document.currentScript) && (i = i.src.match(/(.+\\/)[^/]+\\.js$/))) {\n __webpack_public_path__ = i[1] // eslint-disable-line\n }\n}\n","var isObject = require('./_is-object');\nvar document = require('./_global').document;\n// typeof document.createElement is 'object' in old IE\nvar is = isObject(document) && isObject(document.createElement);\nmodule.exports = function (it) {\n return is ? document.createElement(it) : {};\n};\n","exports.f = Object.getOwnPropertySymbols;\n","var global = require('./_global');\nvar hide = require('./_hide');\nvar has = require('./_has');\nvar SRC = require('./_uid')('src');\nvar TO_STRING = 'toString';\nvar $toString = Function[TO_STRING];\nvar TPL = ('' + $toString).split(TO_STRING);\n\nrequire('./_core').inspectSource = function (it) {\n return $toString.call(it);\n};\n\n(module.exports = function (O, key, val, safe) {\n var isFunction = typeof val == 'function';\n if (isFunction) has(val, 'name') || hide(val, 'name', key);\n if (O[key] === val) return;\n if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));\n if (O === global) {\n O[key] = val;\n } else if (!safe) {\n delete O[key];\n hide(O, key, val);\n } else if (O[key]) {\n O[key] = val;\n } else {\n hide(O, key, val);\n }\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype, TO_STRING, function toString() {\n return typeof this == 'function' && this[SRC] || $toString.call(this);\n});\n","// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\nvar anObject = require('./_an-object');\nvar dPs = require('./_object-dps');\nvar enumBugKeys = require('./_enum-bug-keys');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar Empty = function () { /* empty */ };\nvar PROTOTYPE = 'prototype';\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = require('./_dom-create')('iframe');\n var i = enumBugKeys.length;\n var lt = '<';\n var gt = '>';\n var iframeDocument;\n iframe.style.display = 'none';\n require('./_html').appendChild(iframe);\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n // createDict = iframe.contentWindow.Object;\n // html.removeChild(iframe);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);\n iframeDocument.close();\n createDict = iframeDocument.F;\n while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];\n return createDict();\n};\n\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n Empty[PROTOTYPE] = anObject(O);\n result = new Empty();\n Empty[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = createDict();\n return Properties === undefined ? result : dPs(result, Properties);\n};\n","module.exports = false;\n","var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n","var dP = require('./_object-dp');\nvar createDesc = require('./_property-desc');\nmodule.exports = require('./_descriptors') ? function (object, key, value) {\n return dP.f(object, key, createDesc(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","// 7.1.4 ToInteger\nvar ceil = Math.ceil;\nvar floor = Math.floor;\nmodule.exports = function (it) {\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","// 7.1.13 ToObject(argument)\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return Object(defined(it));\n};\n","exports.f = {}.propertyIsEnumerable;\n","var core = require('./_core');\nvar global = require('./_global');\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || (global[SHARED] = {});\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: core.version,\n mode: require('./_library') ? 'pure' : 'global',\n copyright: '© 2018 Denis Pushkarev (zloirock.ru)'\n});\n","var global = require('./_global');\nvar core = require('./_core');\nvar hide = require('./_hide');\nvar redefine = require('./_redefine');\nvar ctx = require('./_ctx');\nvar PROTOTYPE = 'prototype';\n\nvar $export = function (type, name, source) {\n var IS_FORCED = type & $export.F;\n var IS_GLOBAL = type & $export.G;\n var IS_STATIC = type & $export.S;\n var IS_PROTO = type & $export.P;\n var IS_BIND = type & $export.B;\n var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];\n var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});\n var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});\n var key, own, out, exp;\n if (IS_GLOBAL) source = name;\n for (key in source) {\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n // export native or passed\n out = (own ? target : source)[key];\n // bind timers to global for call from export context\n exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n // extend global\n if (target) redefine(target, key, out, type & $export.U);\n // export\n if (exports[key] != out) hide(exports, key, exp);\n if (IS_PROTO && expProto[key] != out) expProto[key] = out;\n }\n};\nglobal.core = core;\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library`\nmodule.exports = $export;\n","var isObject = require('./_is-object');\nvar setPrototypeOf = require('./_set-proto').set;\nmodule.exports = function (that, target, C) {\n var S = target.constructor;\n var P;\n if (S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf) {\n setPrototypeOf(that, P);\n } return that;\n};\n","var shared = require('./_shared')('keys');\nvar uid = require('./_uid');\nmodule.exports = function (key) {\n return shared[key] || (shared[key] = uid(key));\n};\n","// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = require('./_cof');\n// eslint-disable-next-line no-prototype-builtins\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n","// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = require('./_iobject');\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return IObject(defined(it));\n};\n","var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n","// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject = require('./_is-object');\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (it, S) {\n if (!isObject(it)) return it;\n var fn, val;\n if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;\n if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n","'use strict';\n// 19.1.2.1 Object.assign(target, source, ...)\nvar getKeys = require('./_object-keys');\nvar gOPS = require('./_object-gops');\nvar pIE = require('./_object-pie');\nvar toObject = require('./_to-object');\nvar IObject = require('./_iobject');\nvar $assign = Object.assign;\n\n// should work with symbols and should have deterministic property order (V8 bug)\nmodule.exports = !$assign || require('./_fails')(function () {\n var A = {};\n var B = {};\n // eslint-disable-next-line no-undef\n var S = Symbol();\n var K = 'abcdefghijklmnopqrst';\n A[S] = 7;\n K.split('').forEach(function (k) { B[k] = k; });\n return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;\n}) ? function assign(target, source) { // eslint-disable-line no-unused-vars\n var T = toObject(target);\n var aLen = arguments.length;\n var index = 1;\n var getSymbols = gOPS.f;\n var isEnum = pIE.f;\n while (aLen > index) {\n var S = IObject(arguments[index++]);\n var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);\n var length = keys.length;\n var j = 0;\n var key;\n while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key];\n } return T;\n} : $assign;\n","var toInteger = require('./_to-integer');\nvar max = Math.max;\nvar min = Math.min;\nmodule.exports = function (index, length) {\n index = toInteger(index);\n return index < 0 ? max(index + length, 0) : min(index, length);\n};\n","// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self\n // eslint-disable-next-line no-new-func\n : Function('return this')();\nif (typeof __g == 'number') __g = global; // eslint-disable-line no-undef\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\n};\n","var core = module.exports = { version: '2.5.7' };\nif (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n","var anObject = require('./_an-object');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar toPrimitive = require('./_to-primitive');\nvar dP = Object.defineProperty;\n\nexports.f = require('./_descriptors') ? Object.defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return dP(O, P, Attributes);\n } catch (e) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","// Works with __proto__ only. Old v8 can't work with null proto objects.\n/* eslint-disable no-proto */\nvar isObject = require('./_is-object');\nvar anObject = require('./_an-object');\nvar check = function (O, proto) {\n anObject(O);\n if (!isObject(proto) && proto !== null) throw TypeError(proto + \": can't set as prototype!\");\n};\nmodule.exports = {\n set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line\n function (test, buggy, set) {\n try {\n set = require('./_ctx')(Function.call, require('./_object-gopd').f(Object.prototype, '__proto__').set, 2);\n set(test, []);\n buggy = !(test instanceof Array);\n } catch (e) { buggy = true; }\n return function setPrototypeOf(O, proto) {\n check(O, proto);\n if (buggy) O.__proto__ = proto;\n else set(O, proto);\n return O;\n };\n }({}, false) : undefined),\n check: check\n};\n","// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)\nvar $keys = require('./_object-keys-internal');\nvar hiddenKeys = require('./_enum-bug-keys').concat('length', 'prototype');\n\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return $keys(O, hiddenKeys);\n};\n","// optional / simple context binding\nvar aFunction = require('./_a-function');\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","// 7.1.15 ToLength\nvar toInteger = require('./_to-integer');\nvar min = Math.min;\nmodule.exports = function (it) {\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n","// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./_fails')(function () {\n return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;\n});\n","var $export = require('./_export');\nvar defined = require('./_defined');\nvar fails = require('./_fails');\nvar spaces = require('./_string-ws');\nvar space = '[' + spaces + ']';\nvar non = '\\u200b\\u0085';\nvar ltrim = RegExp('^' + space + space + '*');\nvar rtrim = RegExp(space + space + '*$');\n\nvar exporter = function (KEY, exec, ALIAS) {\n var exp = {};\n var FORCE = fails(function () {\n return !!spaces[KEY]() || non[KEY]() != non;\n });\n var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY];\n if (ALIAS) exp[ALIAS] = fn;\n $export($export.P + $export.F * FORCE, 'String', exp);\n};\n\n// 1 -> String#trimLeft\n// 2 -> String#trimRight\n// 3 -> String#trim\nvar trim = exporter.trim = function (string, TYPE) {\n string = String(defined(string));\n if (TYPE & 1) string = string.replace(ltrim, '');\n if (TYPE & 2) string = string.replace(rtrim, '');\n return string;\n};\n\nmodule.exports = exporter;\n","// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n","// false -> Array#indexOf\n// true -> Array#includes\nvar toIObject = require('./_to-iobject');\nvar toLength = require('./_to-length');\nvar toAbsoluteIndex = require('./_to-absolute-index');\nmodule.exports = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) if (IS_INCLUDES || index in O) {\n if (O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n","'use strict';\nvar global = require('./_global');\nvar has = require('./_has');\nvar cof = require('./_cof');\nvar inheritIfRequired = require('./_inherit-if-required');\nvar toPrimitive = require('./_to-primitive');\nvar fails = require('./_fails');\nvar gOPN = require('./_object-gopn').f;\nvar gOPD = require('./_object-gopd').f;\nvar dP = require('./_object-dp').f;\nvar $trim = require('./_string-trim').trim;\nvar NUMBER = 'Number';\nvar $Number = global[NUMBER];\nvar Base = $Number;\nvar proto = $Number.prototype;\n// Opera ~12 has broken Object#toString\nvar BROKEN_COF = cof(require('./_object-create')(proto)) == NUMBER;\nvar TRIM = 'trim' in String.prototype;\n\n// 7.1.3 ToNumber(argument)\nvar toNumber = function (argument) {\n var it = toPrimitive(argument, false);\n if (typeof it == 'string' && it.length > 2) {\n it = TRIM ? it.trim() : $trim(it, 3);\n var first = it.charCodeAt(0);\n var third, radix, maxCode;\n if (first === 43 || first === 45) {\n third = it.charCodeAt(2);\n if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix\n } else if (first === 48) {\n switch (it.charCodeAt(1)) {\n case 66: case 98: radix = 2; maxCode = 49; break; // fast equal /^0b[01]+$/i\n case 79: case 111: radix = 8; maxCode = 55; break; // fast equal /^0o[0-7]+$/i\n default: return +it;\n }\n for (var digits = it.slice(2), i = 0, l = digits.length, code; i < l; i++) {\n code = digits.charCodeAt(i);\n // parseInt parses a string to a first unavailable symbol\n // but ToNumber should return NaN if a string contains unavailable symbols\n if (code < 48 || code > maxCode) return NaN;\n } return parseInt(digits, radix);\n }\n } return +it;\n};\n\nif (!$Number(' 0o1') || !$Number('0b1') || $Number('+0x1')) {\n $Number = function Number(value) {\n var it = arguments.length < 1 ? 0 : value;\n var that = this;\n return that instanceof $Number\n // check on 1..constructor(foo) case\n && (BROKEN_COF ? fails(function () { proto.valueOf.call(that); }) : cof(that) != NUMBER)\n ? inheritIfRequired(new Base(toNumber(it)), that, $Number) : toNumber(it);\n };\n for (var keys = require('./_descriptors') ? gOPN(Base) : (\n // ES3:\n 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +\n // ES6 (in case, if modules with ES6 Number statics required before):\n 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' +\n 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger'\n ).split(','), j = 0, key; keys.length > j; j++) {\n if (has(Base, key = keys[j]) && !has($Number, key)) {\n dP($Number, key, gOPD(Base, key));\n }\n }\n $Number.prototype = proto;\n proto.constructor = $Number;\n require('./_redefine')(global, NUMBER, $Number);\n}\n","module.exports = !require('./_descriptors') && !require('./_fails')(function () {\n return Object.defineProperty(require('./_dom-create')('div'), 'a', { get: function () { return 7; } }).a != 7;\n});\n","var isObject = require('./_is-object');\nmodule.exports = function (it) {\n if (!isObject(it)) throw TypeError(it + ' is not an object!');\n return it;\n};\n","var id = 0;\nvar px = Math.random();\nmodule.exports = function (key) {\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n","var has = require('./_has');\nvar toIObject = require('./_to-iobject');\nvar arrayIndexOf = require('./_array-includes')(false);\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\n\nmodule.exports = function (object, names) {\n var O = toIObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~arrayIndexOf(result, key) || result.push(key);\n }\n return result;\n};\n"],"sourceRoot":""} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 00ef0fe..1829394 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4913,6 +4913,33 @@ "integrity": "sha1-wcS5vuPglyXdsQa3XB4wH+LxiyY=", "dev": true }, + "filename-reserved-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/filename-reserved-regex/-/filename-reserved-regex-1.0.0.tgz", + "integrity": "sha1-5hz4BfDeHJhFZ9A4bcXfUO5a9+Q=", + "dev": true + }, + "filenamify": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/filenamify/-/filenamify-1.2.1.tgz", + "integrity": "sha1-qfL/0RxQO+0wABUCknI3jx8TZaU=", + "dev": true, + "requires": { + "filename-reserved-regex": "^1.0.0", + "strip-outer": "^1.0.0", + "trim-repeated": "^1.0.0" + } + }, + "filenamify-url": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/filenamify-url/-/filenamify-url-1.0.0.tgz", + "integrity": "sha1-syvYExnvWGO3MHi+1Q9GpPeXX1A=", + "dev": true, + "requires": { + "filenamify": "^1.0.0", + "humanize-url": "^1.0.0" + } + }, "filesize": { "version": "3.6.1", "resolved": "http://registry.npm.taobao.org/filesize/download/filesize-3.6.1.tgz", @@ -5740,6 +5767,68 @@ "assert-plus": "^1.0.0" } }, + "gh-pages": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gh-pages/-/gh-pages-1.2.0.tgz", + "integrity": "sha512-cGLYAvxtlQ1iTwAS4g7FreZPXoE/g62Fsxln2mmR19mgs4zZI+XJ+wVVUhBFCF/0+Nmvbq+abyTWue1m1BSnmg==", + "dev": true, + "requires": { + "async": "2.6.1", + "commander": "2.15.1", + "filenamify-url": "^1.0.0", + "fs-extra": "^5.0.0", + "globby": "^6.1.0", + "graceful-fs": "4.1.11", + "rimraf": "^2.6.2" + }, + "dependencies": { + "async": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/async/-/async-2.6.1.tgz", + "integrity": "sha512-fNEiL2+AZt6AlAw/29Cr0UDe4sRAHCpEHh54WMz+Bb7QfNcFw4h3loofyJpLeQs4Yx7yuqu/2dLgM5hKOs6HlQ==", + "dev": true, + "requires": { + "lodash": "^4.17.10" + } + }, + "commander": { + "version": "2.15.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.15.1.tgz", + "integrity": "sha512-VlfT9F3V0v+jr4yxPc5gg9s62/fIVWsd2Bk2iD435um1NlGMYdVCq+MjcXnhYq2icNOizHr1kK+5TI6H0Hy0ag==", + "dev": true + }, + "fs-extra": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-5.0.0.tgz", + "integrity": "sha512-66Pm4RYbjzdyeuqudYqhFiNBbCIuI9kgRqLPSHIlXHidW8NIQtVdkM1yeZ4lXwuhbTETv3EUGMNHAAw6hiundQ==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + } + }, + "globby": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-6.1.0.tgz", + "integrity": "sha1-9abXDoOV4hyFj7BInWTfAkJNUGw=", + "dev": true, + "requires": { + "array-union": "^1.0.1", + "glob": "^7.0.3", + "object-assign": "^4.0.1", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0" + } + }, + "pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", + "dev": true + } + } + }, "glob": { "version": "7.1.2", "resolved": "http://registry.npm.taobao.org/glob/download/glob-7.1.2.tgz", @@ -5981,6 +6070,11 @@ "integrity": "sha1-TAb8y0YC/iYCs8k9+C1+fb8aio4=", "dev": true }, + "highlight-words-core": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/highlight-words-core/-/highlight-words-core-1.2.0.tgz", + "integrity": "sha512-nu5bMsWIgpsrlXEMNKSvbJMeUPhFxCOVT28DnI8UCVfhm3e98LC8oeyMNrc7E18+QQ4l/PvbeN7ojyN4XsmBdA==" + }, "hmac-drbg": { "version": "1.0.1", "resolved": "http://registry.npm.taobao.org/hmac-drbg/download/hmac-drbg-1.0.1.tgz", @@ -6495,6 +6589,30 @@ "integrity": "sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM=", "dev": true }, + "humanize-url": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/humanize-url/-/humanize-url-1.0.1.tgz", + "integrity": "sha1-9KuZ4NKIF0yk4eUEB8VfuuRk7/8=", + "dev": true, + "requires": { + "normalize-url": "^1.0.0", + "strip-url-auth": "^1.0.0" + }, + "dependencies": { + "normalize-url": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-1.9.1.tgz", + "integrity": "sha1-LMDWazHqIwNkWENuNiDYWVTGbDw=", + "dev": true, + "requires": { + "object-assign": "^4.0.1", + "prepend-http": "^1.0.0", + "query-string": "^4.1.0", + "sort-keys": "^1.0.0" + } + } + } + }, "iconv-lite": { "version": "0.4.23", "resolved": "http://registry.npm.taobao.org/iconv-lite/download/iconv-lite-0.4.23.tgz", @@ -6878,6 +6996,12 @@ "path-is-inside": "^1.0.1" } }, + "is-plain-obj": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", + "integrity": "sha1-caUMhCnfync8kqOQpKA7OfzVHT4=", + "dev": true + }, "is-plain-object": { "version": "2.0.4", "resolved": "http://registry.npm.taobao.org/is-plain-object/download/is-plain-object-2.0.4.tgz", @@ -8957,6 +9081,12 @@ "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=", "dev": true }, + "prepend-http": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-1.0.4.tgz", + "integrity": "sha1-1PRWKwzjaW5BrFLQ4ALlemNdxtw=", + "dev": true + }, "preserve": { "version": "0.2.0", "resolved": "http://registry.npm.taobao.org/preserve/download/preserve-0.2.0.tgz", @@ -9083,6 +9213,16 @@ "integrity": "sha1-yzroBuh0BERYTvFUzo7pjUA/PjY=", "dev": true }, + "query-string": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/query-string/-/query-string-4.3.4.tgz", + "integrity": "sha1-u7aTucqRXCMlFbIosaArYJBD2+s=", + "dev": true, + "requires": { + "object-assign": "^4.1.0", + "strict-uri-encode": "^1.0.0" + } + }, "querystring": { "version": "0.2.0", "resolved": "http://registry.npm.taobao.org/querystring/download/querystring-0.2.0.tgz", @@ -10140,6 +10280,15 @@ } } }, + "sort-keys": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/sort-keys/-/sort-keys-1.1.2.tgz", + "integrity": "sha1-RBttTTRnmPG05J6JIK37oOVD+a0=", + "dev": true, + "requires": { + "is-plain-obj": "^1.0.0" + } + }, "source-list-map": { "version": "2.0.0", "resolved": "http://registry.npm.taobao.org/source-list-map/download/source-list-map-2.0.0.tgz", @@ -10379,6 +10528,12 @@ "integrity": "sha1-1cdSgl5TZ+eG944Y5EXqIjoVWVI=", "dev": true }, + "strict-uri-encode": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/strict-uri-encode/-/strict-uri-encode-1.1.0.tgz", + "integrity": "sha1-J5siXfHVgrH1TmWt3UNS4Y+qBxM=", + "dev": true + }, "string-width": { "version": "2.1.1", "resolved": "http://registry.npm.taobao.org/string-width/download/string-width-2.1.1.tgz", @@ -10459,6 +10614,21 @@ "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", "dev": true }, + "strip-outer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/strip-outer/-/strip-outer-1.0.1.tgz", + "integrity": "sha512-k55yxKHwaXnpYGsOzg4Vl8+tDrWylxDEpknGjhTiZB8dFRU5rTo9CAzeycivxV3s+zlTKwrs6WxMxR95n26kwg==", + "dev": true, + "requires": { + "escape-string-regexp": "^1.0.2" + } + }, + "strip-url-auth": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/strip-url-auth/-/strip-url-auth-1.0.1.tgz", + "integrity": "sha1-IrD6OkE4WzO+PzMVUbu4N/oM164=", + "dev": true + }, "stylehacks": { "version": "4.0.0", "resolved": "http://registry.npm.taobao.org/stylehacks/download/stylehacks-4.0.0.tgz", @@ -10723,6 +10893,15 @@ "integrity": "sha1-WIeWa7WCpFA6QetST301ARgVphM=", "dev": true }, + "trim-repeated": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/trim-repeated/-/trim-repeated-1.0.0.tgz", + "integrity": "sha1-42RqLqTokTEr9+rObPsFOAvAHCE=", + "dev": true, + "requires": { + "escape-string-regexp": "^1.0.2" + } + }, "trim-right": { "version": "1.0.1", "resolved": "http://registry.npm.taobao.org/trim-right/download/trim-right-1.0.1.tgz", @@ -11169,7 +11348,8 @@ "vue": { "version": "2.5.16", "resolved": "http://registry.npm.taobao.org/vue/download/vue-2.5.16.tgz", - "integrity": "sha1-B+23XoQSqu7YceuvqZ9GclhKAIU=" + "integrity": "sha1-B+23XoQSqu7YceuvqZ9GclhKAIU=", + "dev": true }, "vue-eslint-parser": { "version": "2.0.3", diff --git a/package.json b/package.json index feb5ba2..02df000 100644 --- a/package.json +++ b/package.json @@ -1,20 +1,47 @@ { "name": "vue-highlight-words", "version": "0.1.0", - "private": true, + "description": "Vue component to highlight words within a larger body of text", + "sideEffects": false, + "main": "dist/vue-hightlight-words.common.js", + "files": [ + "dist" + ], "scripts": { "serve": "vue-cli-service serve", - "build": "vue-cli-service build", - "lint": "vue-cli-service lint" + "build": "npm run build:demo && npm run build:dist", + "build:demo": "vue-cli-service build --dest demo", + "build:dist": "vue-cli-service build --target lib src/components/HighlightWords.js", + "lint": "vue-cli-service lint", + "deploy": "gh-pages -d demo", + "prebuild": "npm run lint", + "postpublish": "npm run deploy", + "prepublish": "npm run build" }, + "repository": { + "type": "git", + "url": "git+https://github.com/Astray-git/vue-highlight-words.git" + }, + "keywords": [ + "vue", + "highlight" + ], + "author": "Yichang Liu", + "license": "MIT", + "homepage": "https://github.com/Astray-git/vue-highlight-words#readme", "dependencies": { - "vue": "^2.5.16" + "highlight-words-core": "^1.2.0" }, "devDependencies": { "@vue/cli-plugin-babel": "^3.0.0-rc.5", "@vue/cli-plugin-eslint": "^3.0.0-rc.5", "@vue/cli-service": "^3.0.0-rc.5", "@vue/eslint-config-prettier": "^3.0.0-rc.5", + "gh-pages": "^1.2.0", + "vue": "^2.5.16", "vue-template-compiler": "^2.5.16" + }, + "peerDependencies": { + "vue": "^2.3.0" } } diff --git a/src/App.vue b/src/App.vue index 6493a4e..c1dc72d 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,28 +1,74 @@ diff --git a/src/components/HelloWorld.vue b/src/components/HelloWorld.vue deleted file mode 100644 index 6078645..0000000 --- a/src/components/HelloWorld.vue +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - diff --git a/src/components/HighlightWords.js b/src/components/HighlightWords.js new file mode 100644 index 0000000..43262f3 --- /dev/null +++ b/src/components/HighlightWords.js @@ -0,0 +1,108 @@ +import { findAll } from 'highlight-words-core' + +export default { + functional: true, + props: { + activeClassName: String, + activeIndex: Number, + activeStyle: Object, + autoEscape: Boolean, + className: String, + findChunks: Function, + highlightClassName: String, + highlightStyle: Object, + highlightTag: [Node, Function, String], + sanitize: Function, + searchWords: { + type: Array, // Array + validator(value) { + return value.every(word => typeof word === 'string') + }, + required: true + }, + textToHighlight: { + type: String, + required: true + }, + unhighlightClassName: String, + unhighlightStyle: Object + }, + render(h, context) { + const { + activeClassName = '', + activeIndex = -1, + activeStyle, + autoEscape, + caseSensitive = false, + className, + findChunks, + highlightClassName = '', + highlightStyle = {}, + highlightTag = 'mark', + sanitize, + searchWords, + textToHighlight, + unhighlightClassName = '', + unhighlightStyle + } = context.props + + const chunks = findAll({ + autoEscape, + caseSensitive, + findChunks, + sanitize, + searchWords, + textToHighlight + }) + + const HighlightTag = highlightTag + let highlightCount = -1 + let highlightClassNames = '' + let highlightStyles + + return ( + + {chunks.map((chunk, index) => { + const text = textToHighlight.substr( + chunk.start, + chunk.end - chunk.start + ) + + if (chunk.highlight) { + highlightCount++ + + const isActive = highlightCount === +activeIndex + + highlightClassNames = `${highlightClassName} ${ + isActive ? activeClassName : '' + }` + highlightStyles = + isActive === true && activeStyle != null + ? Object.assign({}, highlightStyle, activeStyle) + : highlightStyle + + return ( + + {text} + + ) + } else { + return ( + + {text} + + ) + } + })} + + ) + } +} diff --git a/src/main.js b/src/main.js index a3fd06b..fca74cf 100644 --- a/src/main.js +++ b/src/main.js @@ -1,8 +1,8 @@ -import Vue from "vue"; -import App from "./App.vue"; +import Vue from 'vue' +import App from './App.vue' -Vue.config.productionTip = false; +Vue.config.productionTip = false new Vue({ render: h => h(App) -}).$mount("#app"); +}).$mount('#app') diff --git a/vue.config.js b/vue.config.js new file mode 100644 index 0000000..a4673e0 --- /dev/null +++ b/vue.config.js @@ -0,0 +1,8 @@ +module.exports = { + // https://cli.vuejs.org/guide/build-targets.html#vue-vs-js-ts-entry-files + configureWebpack: { + output: { + libraryExport: 'default' + } + } +}