text: /*!
    * vue-highlight v1.0.3
    * (c) 2020 André Bunse (aburai)
    * @license MIT
    */
  /*!
    * vue-highlight v1.0.3
    * (c) 2020 André Bunse (aburai)
    * @license MIT
    */
  const e={wordsOnly:!1,caseSensitive:!1,notGlobal:!0,defaultSelector:"div",nodeName:"span",className:"v-highlight",classNameStopWord:"v-highlight v-highlight--stopword",ignore:"v-highlight--ignore",splitter:[",","/"],debug:!1},t=new RegExp(/"([^"\\]*(\\.[^"\\]*)*)"/),i=new RegExp(/^\\\+/),l=new RegExp(/[\-\[\]{}()*+?.,\\^$|#\s]/g),s={parseFilter(t,i){console.assert(t,"no term for parseFilter!"),(i=i||{}).splitter=i.splitter||e.splitter;let s=[];return"string"==typeof t&&i.splitter.forEach(e=>{-1!==t.indexOf(e)&&(s=s.concat(t.split(e)))}),s.length||s.push(t),s=s.filter(e=>""!==e.trim()),s.map(e=>e.trim().replace(l,"\\$&"))},rexText(e,l){let r=s.parseFilter(e,l);if(!r||0===r.length)return;if(l=l||{},r=r.filter(e=>{const t=i.test(e);return void 0===l.stopwords||(l.stopwords?t:!t)}),r=r.map(e=>e.replace(i,"")).filter(e=>!!e.trim()),!r||0===r.length)return;let n=l.caseSensitive?"":"i";l.notGlobal||(n+="g"),l.wordsOnly||(r=r.map(e=>(t.test(e)&&(e=e.replace(/"/g,"\\s\\b")),e)));let o="("+r.join("|")+")";return l.wordsOnly&&(o="\\s\\b"+o+"\\b\\s"),new RegExp(o,n)},highlight(e,t,i){i=i||{};const{nodeName:l,className:r,classNameStopWord:n,ignore:o}=i;i.stopwords=!1;const h=s.rexText(e,i);h&&s._highlight(t,h,l,r,o),i.stopwords=!0;const a=s.rexText(e,i);a&&s._highlight(t,a,l,n,o)},_highlight(e,t,i,l,r){if(i=i||"span",l=l||"highlight",3===e.nodeType){let s;for(;null!==(s=t.exec(e.data))&&s[0].length;){const t=document.createElement(i);t.className=l;const r=e.splitText(s.index);e=r.splitText(s[0].length);const n=r.cloneNode(!0);t.appendChild(n),r.parentNode.replaceChild(t,r)}return 1}if(1===e.nodeType&&e.childNodes&&!/(script|style)/i.test(e.tagName)&&(e.tagName!==i.toUpperCase()||e.className!==l)&&!e.classList.contains(r)){const n=e.childNodes.length;for(let o=0;o<n;o++)o+=s._highlight(e.childNodes[o],t,i,l,r)}return 0},unhighlight(e,t){if(!e||!t)return;const i=e.querySelectorAll("."+t);if(!i)return;const l=i.length;for(let e=0;e<l;e++){const t=i[e],l=t.parentNode;l.replaceChild(t.firstChild,t),l.normalize()}}};let r;class n{init(e){}}n.install=function t(i,l){if(t.installed&&r===i)return;t.installed=!0,r=i;const n=Object.assign({},e,l);i.prototype.$highlight=function(e,t,i){const l=Object.assign({},n,i);t=t||l.defaultSelector,e=(e||"").trim(),this.$nextTick(()=>{if(s.unhighlight(this.$el,l.className),!e)return;const i=this.$el.querySelectorAll(t);if(!i)return;const r=i.length;for(let t=0;t<r;t++)s.highlight(e,i[t],l)})},i.prototype.$highlight.parse=s.parseFilter,i.prototype.$highlight.rex=s.rexText},n.version="1.0.3",window&&window.Vue&&window.Vue.use(n);export default n;