diff --git a/.all-contributorsrc b/.all-contributorsrc index 5e98bc5..cbf5283 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -72,6 +72,15 @@ "code", "test" ] + }, + { + "login": "tmazeika", + "name": "TJ Mazeika", + "avatar_url": "https://avatars1.githubusercontent.com/u/5958957?v=4", + "profile": "https://mazeika.me", + "contributions": [ + "code" + ] } ] } diff --git a/README.md b/README.md index 2b65146..a597002 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ [![MIT License][license-badge]][LICENSE] [![gzip size][size-badge]](https://unpkg.com/vue-autosuggest@latest) -[![All Contributors](https://img.shields.io/badge/all_contributors-6-orange.svg?style=flat-square)](#contributors) +[![All Contributors](https://img.shields.io/badge/all_contributors-7-orange.svg?style=flat-square)](#contributors) [![PRs Welcome][prs-badge]][prs] [![Code of Conduct][coc-badge]][coc] @@ -445,8 +445,8 @@ For IE11 and below, some functionality may not work. For example, you will have Thanks goes to these people ([emoji key][emojis]): -| [
Darren Jennings](https://darrenjennings.github.io)
[💻](https://github.com/darrenjennings/vue-autosuggest/commits?author=darrenjennings "Code") [📖](https://github.com/darrenjennings/vue-autosuggest/commits?author=darrenjennings "Documentation") [🚇](#infra-darrenjennings "Infrastructure (Hosting, Build-Tools, etc)") [⚠️](https://github.com/darrenjennings/vue-autosuggest/commits?author=darrenjennings "Tests") [🎨](#design-darrenjennings "Design") [💡](#example-darrenjennings "Examples") | [
Evgeniy Kulish](https://github.com/ekulish)
[💻](https://github.com/darrenjennings/vue-autosuggest/commits?author=ekulish "Code") [🎨](#design-ekulish "Design") [💡](#example-ekulish "Examples") [⚠️](https://github.com/darrenjennings/vue-autosuggest/commits?author=ekulish "Tests") | [
Scott Smith](https://github.com/scottadamsmith)
[🐛](https://github.com/darrenjennings/vue-autosuggest/issues?q=author%3Ascottadamsmith "Bug reports") [💻](https://github.com/darrenjennings/vue-autosuggest/commits?author=scottadamsmith "Code") [⚠️](https://github.com/darrenjennings/vue-autosuggest/commits?author=scottadamsmith "Tests") | [
Fernando Machuca](https://github.com/chuca)
[🎨](#design-chuca "Design") | [
BerniML](https://github.com/BerniML)
[💻](https://github.com/darrenjennings/vue-autosuggest/commits?author=BerniML "Code") [⚠️](https://github.com/darrenjennings/vue-autosuggest/commits?author=BerniML "Tests") | [
Kristoffer Nordström](https://github.com/42tte)
[💻](https://github.com/darrenjennings/vue-autosuggest/commits?author=42tte "Code") [⚠️](https://github.com/darrenjennings/vue-autosuggest/commits?author=42tte "Tests") | -| :---: | :---: | :---: | :---: | :---: | :---: | +| [
Darren Jennings](https://darrenjennings.github.io)
[💻](https://github.com/darrenjennings/vue-autosuggest/commits?author=darrenjennings "Code") [📖](https://github.com/darrenjennings/vue-autosuggest/commits?author=darrenjennings "Documentation") [🚇](#infra-darrenjennings "Infrastructure (Hosting, Build-Tools, etc)") [⚠️](https://github.com/darrenjennings/vue-autosuggest/commits?author=darrenjennings "Tests") [🎨](#design-darrenjennings "Design") [💡](#example-darrenjennings "Examples") | [
Evgeniy Kulish](https://github.com/ekulish)
[💻](https://github.com/darrenjennings/vue-autosuggest/commits?author=ekulish "Code") [🎨](#design-ekulish "Design") [💡](#example-ekulish "Examples") [⚠️](https://github.com/darrenjennings/vue-autosuggest/commits?author=ekulish "Tests") | [
Scott Smith](https://github.com/scottadamsmith)
[🐛](https://github.com/darrenjennings/vue-autosuggest/issues?q=author%3Ascottadamsmith "Bug reports") [💻](https://github.com/darrenjennings/vue-autosuggest/commits?author=scottadamsmith "Code") [⚠️](https://github.com/darrenjennings/vue-autosuggest/commits?author=scottadamsmith "Tests") | [
Fernando Machuca](https://github.com/chuca)
[🎨](#design-chuca "Design") | [
BerniML](https://github.com/BerniML)
[💻](https://github.com/darrenjennings/vue-autosuggest/commits?author=BerniML "Code") [⚠️](https://github.com/darrenjennings/vue-autosuggest/commits?author=BerniML "Tests") | [
Kristoffer Nordström](https://github.com/42tte)
[💻](https://github.com/darrenjennings/vue-autosuggest/commits?author=42tte "Code") [⚠️](https://github.com/darrenjennings/vue-autosuggest/commits?author=42tte "Tests") | [
TJ Mazeika](https://mazeika.me)
[💻](https://github.com/darrenjennings/vue-autosuggest/commits?author=tmazeika "Code") | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | Thanks to [@chuca](https://github.com/chuca) for the logo design. diff --git a/__tests__/autosuggest.test.js b/__tests__/autosuggest.test.js index 074c3a4..d984d40 100644 --- a/__tests__/autosuggest.test.js +++ b/__tests__/autosuggest.test.js @@ -716,8 +716,8 @@ describe("Autosuggest", () => { }); wrapper.destroy() - expect(AEL).toHaveBeenCalledTimes(2) - expect(REL).toHaveBeenCalledTimes(2) + expect(AEL).toHaveBeenCalledTimes(3) + expect(REL).toHaveBeenCalledTimes(3) }); it("can modify input type attribute", async () => { diff --git a/docs/build/app.js b/docs/build/app.js index f99375d..475a818 100644 --- a/docs/build/app.js +++ b/docs/build/app.js @@ -3,4 +3,4 @@ * Vue.js v2.5.18 * (c) 2014-2018 Evan You * Released under the MIT License. - */var r;r=function(){"use strict";var t=Object.freeze({});function r(t){return null==t}function n(t){return null!=t}function a(t){return!0===t}function o(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function l(t){return null!==t&&"object"==typeof t}var c=Object.prototype.toString;function s(t){return c.call(t).slice(8,-1)}function u(t){return"[object Object]"===c.call(t)}function m(t){return"[object RegExp]"===c.call(t)}function f(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function p(t){return null==t?"":"object"==typeof t?JSON.stringify(t,null,2):String(t)}function d(t){var e=parseFloat(t);return isNaN(e)?t:e}function h(t,e){for(var i=Object.create(null),r=t.split(","),n=0;n-1)return t.splice(i,1)}}var g=Object.prototype.hasOwnProperty;function b(t,e){return g.call(t,e)}function y(t){var e=Object.create(null);return function(i){return e[i]||(e[i]=t(i))}}var _=/-(\w)/g,N=y(function(t){return t.replace(_,function(t,e){return e?e.toUpperCase():""})}),R=y(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),U=/\B([A-Z])/g,H=y(function(t){return t.replace(U,"-$1").toLowerCase()}),A=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function i(i){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,i):t.call(e)}return i._length=t.length,i};function C(t,e){e=e||0;for(var i=t.length-e,r=new Array(i);i--;)r[i]=t[i+e];return r}function B(t,e){for(var i in e)t[i]=e[i];return t}function x(t){for(var e={},i=0;i0,Z=J&&J.indexOf("edge/")>0,Q=(J&&J.indexOf("android"),J&&/iphone|ipad|ipod|ios/.test(J)||"ios"===K),tt=J&&/chrome\/\d+/.test(J)&&!Z,et={}.watch,it=!1;if(q)try{var rt={};Object.defineProperty(rt,"passive",{get:function(){it=!0}}),window.addEventListener("test-passive",null,rt)}catch(t){}var nt=function(){return void 0===j&&(j=!q&&!W&&void 0!==e&&(e.process&&"server"===e.process.env.VUE_ENV)),j},at=q&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ot(t){return"function"==typeof t&&/native code/.test(t.toString())}var lt,ct="undefined"!=typeof Symbol&&ot(Symbol)&&"undefined"!=typeof Reflect&&ot(Reflect.ownKeys);lt="undefined"!=typeof Set&&ot(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var st=I,ut=I,mt=I,ft=I,pt="undefined"!=typeof console,dt=/(?:^|[-_])(\w)/g;st=function(t,e){var i=e?mt(e):"";P.warnHandler?P.warnHandler.call(null,t,e,i):pt&&!P.silent&&console.error("[Vue warn]: "+t+i)},ut=function(t,e){pt&&!P.silent&&console.warn("[Vue tip]: "+t+(e?mt(e):""))},ft=function(t,e){if(t.$root===t)return"";var i="function"==typeof t&&null!=t.cid?t.options:t._isVue?t.$options||t.constructor.options:t||{},r=i.name||i._componentTag,n=i.__file;if(!r&&n){var a=n.match(/([^\/\\]+)\.vue$/);r=a&&a[1]}return(r?"<"+r.replace(dt,function(t){return t.toUpperCase()}).replace(/[-_]/g,"")+">":"")+(n&&!1!==e?" at "+n:"")},mt=function(t){if(t._isVue&&t.$parent){for(var e=[],i=0;t;){if(e.length>0){var r=e[e.length-1];if(r.constructor===t.constructor){i++,t=t.$parent;continue}i>0&&(e[e.length-1]=[r,i],i=0)}e.push(t),t=t.$parent}return"\n\nfound in\n\n"+e.map(function(t,e){return""+(0===e?"---\x3e ":function(t,e){for(var i="";e;)e%2==1&&(i+=t),e>1&&(t+=t),e>>=1;return i}(" ",5+2*e))+(Array.isArray(t)?ft(t[0])+"... ("+t[1]+" recursive calls)":ft(t))}).join("\n")}return"\n\n(found in "+ft(t)+")"};var ht=0,wt=function(){this.id=ht++,this.subs=[]};wt.prototype.addSub=function(t){this.subs.push(t)},wt.prototype.removeSub=function(t){v(this.subs,t)},wt.prototype.depend=function(){wt.target&&wt.target.addDep(this)},wt.prototype.notify=function(){var t=this.subs.slice();P.async||t.sort(function(t,e){return t.id-e.id});for(var e=0,i=t.length;e-1)if(a&&!b(n,"default"))o=!1;else if(""===o||o===H(t)){var u=Yt(String,n.type);(u<0||c0&&(Te((s=t(s,(i||"")+"_"+c))[0])&&Te(m)&&(l[u]=Nt(m.text+s[0].text),s.shift()),l.push.apply(l,s)):o(s)?Te(m)?l[u]=Nt(m.text+s):""!==s&&l.push(Nt(s)):Te(s)&&Te(m)?l[u]=Nt(m.text+s.text):(a(e._isVList)&&n(s.tag)&&r(s.key)&&n(i)&&(s.key="__vlist"+i+"_"+c+"__"),l.push(s)));return l}(t):void 0}function Te(t){return n(t)&&n(t.text)&&!1===t.isComment}function Se(t,e){return(t.__esModule||ct&&"Module"===t[Symbol.toStringTag])&&(t=t.default),l(t)?e.extend(t):t}function Ee(t){return t.isComment&&t.asyncFactory}function Oe(t){if(Array.isArray(t))for(var e=0;eJe)){st("You may have an infinite update loop "+(t.user?'in watcher with expression "'+t.expression+'"':"in a component render function."),t.vm);break}var i=Xe.slice(),r=Ye.slice();ii=Ye.length=Xe.length=0,Ze={},Qe={},ti=ei=!1,function(t){for(var e=0;eii&&Ye[i].id>t.id;)i--;Ye.splice(i+1,0,t)}else Ye.push(t);if(!ti){if(ti=!0,!P.async)return void ri();pe(ri)}}}(this)},ai.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||l(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){Qt(t,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},ai.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},ai.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},ai.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||v(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var oi={enumerable:!0,configurable:!0,get:I,set:I};function li(t,e,i){oi.get=function(){return this[e][i]},oi.set=function(t){this[e][i]=t},Object.defineProperty(t,i,oi)}function ci(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var i=t.$options.propsData||{},r=t._props={},n=t.$options._propKeys=[],a=!t.$parent;a||Bt(!1);var o=function(o){n.push(o);var l=zt(o,e,i,t),c=H(o);(k(c)||P.isReservedAttr(c))&&st('"'+c+'" is a reserved attribute and cannot be used as component prop.',t),Tt(r,o,l,function(){a||Ve||st("Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: \""+o+'"',t)}),o in t||li(t,"_props",o)};for(var l in e)o(l);Bt(!0)}(t,e.props),e.methods&&function(t,e){var i=t.$options.props;for(var r in e)"function"!=typeof e[r]&&st('Method "'+r+'" has type "'+typeof e[r]+'" in the component definition. Did you reference the function correctly?',t),i&&b(i,r)&&st('Method "'+r+'" has already been defined as a prop.',t),r in t&&G(r)&&st('Method "'+r+'" conflicts with an existing Vue instance method. Avoid defining component methods that start with _ or $.'),t[r]="function"!=typeof e[r]?I:A(e[r],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;u(e=t._data="function"==typeof e?function(t,e){vt();try{return t.call(e,e)}catch(t){return Qt(t,e,"data()"),{}}finally{gt()}}(e,t):e||{})||(e={},st("data functions should return an object:\nhttps://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function",t));var i=Object.keys(e),r=t.$options.props,n=t.$options.methods,a=i.length;for(;a--;){var o=i[a];n&&b(n,o)&&st('Method "'+o+'" has already been defined as a data property.',t),r&&b(r,o)?st('The data property "'+o+'" is already declared as a prop. Use prop default value instead.',t):G(o)||li(t,"_data",o)}It(e,!0)}(t):It(t._data={},!0),e.computed&&function(t,e){var i=t._computedWatchers=Object.create(null),r=nt();for(var n in e){var a=e[n],o="function"==typeof a?a:a.get;null==o&&st('Getter is missing for computed property "'+n+'".',t),r||(i[n]=new ai(t,o||I,I,si)),n in t?n in t.$data?st('The computed property "'+n+'" is already defined in data.',t):t.$options.props&&n in t.$options.props&&st('The computed property "'+n+'" is already defined as a prop.',t):ui(t,n,a)}}(t,e.computed),e.watch&&e.watch!==et&&function(t,e){for(var i in e){var r=e[i];if(Array.isArray(r))for(var n=0;n=0||i.indexOf(t[n])<0)&&r.push(t[n]);return r}return t}function Pi(t){this instanceof Pi||st("Vue is a constructor and should be called with the `new` keyword"),this._init(t)}function Gi(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var i=this,r=i.cid,n=t._Ctor||(t._Ctor={});if(n[r])return n[r];var a=t.name||i.options.name;a&&Gt(a);var o=function(t){this._init(t)};return(o.prototype=Object.create(i.prototype)).constructor=o,o.cid=e++,o.options=jt(i.options,t),o.super=i,o.options.props&&function(t){var e=t.options.props;for(var i in e)li(t.prototype,"_props",i)}(o),o.options.computed&&function(t){var e=t.options.computed;for(var i in e)ui(t.prototype,i,e[i])}(o),o.extend=i.extend,o.mixin=i.mixin,o.use=i.use,D.forEach(function(t){o[t]=i[t]}),a&&(o.options.components[a]=o),o.superOptions=i.options,o.extendOptions=t,o.sealedOptions=B({},o.options),n[r]=o,o}}function Li(t){return t&&(t.Ctor.options.name||t.tag)}function ji(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!m(t)&&t.test(e)}function Vi(t,e){var i=t.cache,r=t.keys,n=t._vnode;for(var a in i){var o=i[a];if(o){var l=Li(o.componentOptions);l&&!e(l)&&zi(i,a,r,n)}}}function zi(t,e,i,r){var n=t[e];!n||r&&n.tag===r.tag||n.componentInstance.$destroy(),t[e]=null,v(i,e)}!function(e){e.prototype._init=function(e){var i,r,n=this;n._uid=Mi++,P.performance&&le&&(i="vue-perf-start:"+n._uid,r="vue-perf-end:"+n._uid,le(i)),n._isVue=!0,e&&e._isComponent?function(t,e){var i=t.$options=Object.create(t.constructor.options),r=e._parentVnode;i.parent=e.parent,i._parentVnode=r;var n=r.componentOptions;i.propsData=n.propsData,i._parentListeners=n.listeners,i._renderChildren=n.children,i._componentTag=n.tag,e.render&&(i.render=e.render,i.staticRenderFns=e.staticRenderFns)}(n,e):n.$options=jt(Di(n.constructor),e||{},n),de(n),n._self=n,function(t){var e=t.$options,i=e.parent;if(i&&!e.abstract){for(;i.$options.abstract&&i.$parent;)i=i.$parent;i.$children.push(t)}t.$parent=i,t.$root=i?i.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(n),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&Fe(t,e)}(n),function(e){e._vnode=null,e._staticTrees=null;var i=e.$options,r=e.$vnode=i._parentVnode,n=r&&r.context;e.$slots=Pe(i._renderChildren,n),e.$scopedSlots=t,e._c=function(t,i,r,n){return $i(e,t,i,r,n,!1)},e.$createElement=function(t,i,r,n){return $i(e,t,i,r,n,!0)};var a=r&&r.data;Tt(e,"$attrs",a&&a.attrs||t,function(){!Ve&&st("$attrs is readonly.",e)},!0),Tt(e,"$listeners",i._parentListeners||t,function(){!Ve&&st("$listeners is readonly.",e)},!0)}(n),Ke(n,"beforeCreate"),function(t){var e=di(t.$options.inject,t);e&&(Bt(!1),Object.keys(e).forEach(function(i){Tt(t,i,e[i],function(){st('Avoid mutating an injected value directly since the changes will be overwritten whenever the provided component re-renders. injection being mutated: "'+i+'"',t)})}),Bt(!0))}(n),ci(n),function(t){var e=t.$options.provide;e&&(t._provided="function"==typeof e?e.call(t):e)}(n),Ke(n,"created"),P.performance&&le&&(n._name=ft(n,!1),le(r),ce("vue "+n._name+" init",i,r)),n.$options.el&&n.$mount(n.$options.el)}}(Pi),function(t){var e={get:function(){return this._data}},i={get:function(){return this._props}};e.set=function(){st("Avoid replacing instance root $data. Use nested data properties instead.",this)},i.set=function(){st("$props is readonly.",this)},Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",i),t.prototype.$set=St,t.prototype.$delete=Et,t.prototype.$watch=function(t,e,i){if(u(e))return pi(this,t,e,i);(i=i||{}).user=!0;var r=new ai(this,t,e,i);if(i.immediate)try{e.call(this,r.value)}catch(t){Qt(t,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}(Pi),function(t){var e=/^hook:/;t.prototype.$on=function(t,i){var r=this;if(Array.isArray(t))for(var n=0,a=t.length;n1?C(r):r;for(var n=C(arguments,1),a=0,o=r.length;aparseInt(this.max)&&zi(o,l[0],l,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){var e={get:function(){return P},set:function(){st("Do not replace the Vue.config object, set individual fields instead.")}};Object.defineProperty(t,"config",e),t.util={warn:st,extend:B,mergeOptions:jt,defineReactive:Tt},t.set=St,t.delete=Et,t.nextTick=pe,t.options=Object.create(null),D.forEach(function(e){t.options[e+"s"]=Object.create(null)}),t.options._base=t,B(t.options.components,Wi),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var i=C(arguments,1);return i.unshift(this),"function"==typeof t.install?t.install.apply(t,i):"function"==typeof t&&t.apply(null,i),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=jt(this.options,t),this}}(t),Gi(t),function(t){D.forEach(function(e){t[e]=function(t,i){return i?("component"===e&&Gt(t),"component"===e&&u(i)&&(i.name=i.name||t,i=this.options._base.extend(i)),"directive"===e&&"function"==typeof i&&(i={bind:i,update:i}),this.options[e+"s"][t]=i,i):this.options[e+"s"][t]}})}(t)}(Pi),Object.defineProperty(Pi.prototype,"$isServer",{get:nt}),Object.defineProperty(Pi.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Pi,"FunctionalRenderContext",{value:Ai}),Pi.version="2.5.18";var Ki=h("style,class"),Ji=h("input,textarea,option,select,progress"),Yi=function(t,e,i){return"value"===i&&Ji(t)&&"button"!==e||"selected"===i&&"option"===t||"checked"===i&&"input"===t||"muted"===i&&"video"===t},Xi=h("contenteditable,draggable,spellcheck"),Zi=h("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Qi="http://www.w3.org/1999/xlink",tr=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},er=function(t){return tr(t)?t.slice(6,t.length):""},ir=function(t){return null==t||!1===t};function rr(t){for(var e=t.data,i=t,r=t;n(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(e=nr(r.data,e));for(;n(i=i.parent);)i&&i.data&&(e=nr(e,i.data));return function(t,e){if(n(t)||n(e))return ar(t,or(e));return""}(e.staticClass,e.class)}function nr(t,e){return{staticClass:ar(t.staticClass,e.staticClass),class:n(t.class)?[t.class,e.class]:e.class}}function ar(t,e){return t?e?t+" "+e:t:e||""}function or(t){return Array.isArray(t)?function(t){for(var e,i="",r=0,a=t.length;r-1?Tr(t,e,i):Zi(e)?ir(i)?t.removeAttribute(e):(i="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,i)):Xi(e)?t.setAttribute(e,ir(i)||"false"===i?"false":"true"):tr(e)?ir(i)?t.removeAttributeNS(Qi,er(e)):t.setAttributeNS(Qi,e,i):Tr(t,e,i)}function Tr(t,e,i){if(ir(i))t.removeAttribute(e);else{if(Y&&!X&&("TEXTAREA"===t.tagName||"INPUT"===t.tagName)&&"placeholder"===e&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,i)}}var Sr={create:xr,update:xr};function Er(t,e){var i=e.elm,a=e.data,o=t.data;if(!(r(a.staticClass)&&r(a.class)&&(r(o)||r(o.staticClass)&&r(o.class)))){var l=rr(e),c=i._transitionClasses;n(c)&&(l=ar(l,or(c))),l!==i._prevClass&&(i.setAttribute("class",l),i._prevClass=l)}}var Or,$r,Mr,Dr,Fr,Pr,Gr,Lr={create:Er,update:Er},jr=/[\w).+\-_$\]]/;function Vr(t){var e,i,r,n,a,o=!1,l=!1,c=!1,s=!1,u=0,m=0,f=0,p=0;for(r=0;r=0&&" "===(h=t.charAt(d));d--);h&&jr.test(h)||(s=!0)}}else void 0===n?(p=r+1,n=t.slice(0,r).trim()):w();function w(){(a||(a=[])).push(t.slice(p,r).trim()),p=r+1}if(void 0===n?n=t.slice(0,r).trim():0!==p&&w(),a)for(r=0;r-1?{exp:t.slice(0,Dr),key:'"'+t.slice(Dr+1)+'"'}:{exp:t,key:null};$r=t,Dr=Fr=Pr=0;for(;!an();)on(Mr=nn())?cn(Mr):91===Mr&&ln(Mr);return{exp:t.slice(0,Fr),key:t.slice(Fr+1,Pr)}}(t);return null===i.key?t+"="+e:"$set("+i.exp+", "+i.key+", "+e+")"}function nn(){return $r.charCodeAt(++Dr)}function an(){return Dr>=Or}function on(t){return 34===t||39===t}function ln(t){var e=1;for(Fr=Dr;!an();)if(on(t=nn()))cn(t);else if(91===t&&e++,93===t&&e--,0===e){Pr=Dr;break}}function cn(t){for(var e=t;!an()&&(t=nn())!==e;);}var sn,un="__r",mn="__c";function fn(t,e,i){var r=sn;return function n(){null!==e.apply(null,arguments)&&dn(t,n,i,r)}}function pn(t,e,i,r){var n;e=(n=e)._withTask||(n._withTask=function(){se=!0;try{return n.apply(null,arguments)}finally{se=!1}}),sn.addEventListener(t,e,it?{capture:i,passive:r}:i)}function dn(t,e,i,r){(r||sn).removeEventListener(t,e._withTask||e,i)}function hn(t,e){if(!r(t.data.on)||!r(e.data.on)){var i=e.data.on||{},a=t.data.on||{};sn=e.elm,function(t){if(n(t[un])){var e=Y?"change":"input";t[e]=[].concat(t[un],t[e]||[]),delete t[un]}n(t[mn])&&(t.change=[].concat(t[mn],t.change||[]),delete t[mn])}(i),Ce(i,a,pn,dn,fn,e.context),sn=void 0}}var wn={create:hn,update:hn};function kn(t,e){if(!r(t.data.domProps)||!r(e.data.domProps)){var i,a,o=e.elm,l=t.data.domProps||{},c=e.data.domProps||{};for(i in n(c.__ob__)&&(c=e.data.domProps=B({},c)),l)r(c[i])&&(o[i]="");for(i in c){if(a=c[i],"textContent"===i||"innerHTML"===i){if(e.children&&(e.children.length=0),a===l[i])continue;1===o.childNodes.length&&o.removeChild(o.childNodes[0])}if("value"===i){o._value=a;var s=r(a)?"":String(a);vn(o,s)&&(o.value=s)}else o[i]=a}}}function vn(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var i=!0;try{i=document.activeElement!==t}catch(t){}return i&&t.value!==e}(t,e)||function(t,e){var i=t.value,r=t._vModifiers;if(n(r)){if(r.lazy)return!1;if(r.number)return d(i)!==d(e);if(r.trim)return i.trim()!==e.trim()}return i!==e}(t,e))}var gn={create:kn,update:kn},bn=y(function(t){var e={},i=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach(function(t){if(t){var r=t.split(i);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e});function yn(t){var e=_n(t.style);return t.staticStyle?B(t.staticStyle,e):e}function _n(t){return Array.isArray(t)?x(t):"string"==typeof t?bn(t):t}var Nn,Rn=/^--/,Un=/\s*!important$/,Hn=function(t,e,i){if(Rn.test(e))t.style.setProperty(e,i);else if(Un.test(i))t.style.setProperty(e,i.replace(Un,""),"important");else{var r=Cn(e);if(Array.isArray(i))for(var n=0,a=i.length;n-1?e.split(In).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var i=" "+(t.getAttribute("class")||"")+" ";i.indexOf(" "+e+" ")<0&&t.setAttribute("class",(i+e).trim())}}function Sn(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(In).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var i=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";i.indexOf(r)>=0;)i=i.replace(r," ");(i=i.trim())?t.setAttribute("class",i):t.removeAttribute("class")}}function En(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&B(e,On(t.name||"v")),B(e,t),e}return"string"==typeof t?On(t):void 0}}var On=y(function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}}),$n=q&&!X,Mn="transition",Dn="animation",Fn="transition",Pn="transitionend",Gn="animation",Ln="animationend";$n&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Fn="WebkitTransition",Pn="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Gn="WebkitAnimation",Ln="webkitAnimationEnd"));var jn=q?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Vn(t){jn(function(){jn(t)})}function zn(t,e){var i=t._transitionClasses||(t._transitionClasses=[]);i.indexOf(e)<0&&(i.push(e),Tn(t,e))}function qn(t,e){t._transitionClasses&&v(t._transitionClasses,e),Sn(t,e)}function Wn(t,e,i){var r=Jn(t,e),n=r.type,a=r.timeout,o=r.propCount;if(!n)return i();var l=n===Mn?Pn:Ln,c=0,s=function(){t.removeEventListener(l,u),i()},u=function(e){e.target===t&&++c>=o&&s()};setTimeout(function(){c0&&(i=Mn,u=o,m=a.length):e===Dn?s>0&&(i=Dn,u=s,m=c.length):m=(i=(u=Math.max(o,s))>0?o>s?Mn:Dn:null)?i===Mn?a.length:c.length:0,{type:i,timeout:u,propCount:m,hasTransform:i===Mn&&Kn.test(r[Fn+"Property"])}}function Yn(t,e){for(;t.length explicit "+e+" duration is not a valid number - got "+JSON.stringify(t)+".",i.context):isNaN(t)&&st(" explicit "+e+" duration is NaN - the duration expression might be incorrect.",i.context)}function ea(t){return"number"==typeof t&&!isNaN(t)}function ia(t){if(r(t))return!1;var e=t.fns;return n(e)?ia(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function ra(t,e){!0!==e.data.show&&Zn(e)}var na=function(t){var e,i,l={},c=t.modules,s=t.nodeOps;for(e=0;e - did you register the component correctly? For recursive components, make sure to provide the "name" option.',t.context),t.elm=t.ns?s.createElementNS(t.ns,h):s.createElement(h,t),y(t),v(t,d,e),n(m)&&b(t,e),k(i,t.elm,r),m&&m.pre&&p--):a(t.isComment)?(t.elm=s.createComment(t.text),k(i,t.elm,r)):(t.elm=s.createTextNode(t.text),k(i,t.elm,r))}}function w(t,e){n(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,g(t)?(b(t,e),y(t)):(kr(t),e.push(t))}function k(t,e,i){n(t)&&(n(i)?s.parentNode(i)===t&&s.insertBefore(t,e,i):s.appendChild(t,e))}function v(t,e,i){if(Array.isArray(e)){H(e);for(var r=0;rp?_(t,r(i[k+1])?null:i[k+1].elm,i,f,k,a):f>k&&R(0,e,m,p)}(m,h,w,i,u):n(w)?(H(w),n(t.text)&&s.setTextContent(m,""),_(m,null,w,0,w.length-1,i)):n(h)?R(0,h,0,h.length-1):n(t.text)&&s.setTextContent(m,""):t.text!==e.text&&s.setTextContent(m,e.text),n(p)&&n(f=p.hook)&&n(f=f.postpatch)&&f(t,e)}}}function B(t,e,i){if(a(i)&&n(t.parent))t.parent.data.pendingInsert=e;else for(var r=0;r, or missing . Bailing hydration and performing full client-side render.")}c=t,t=new bt(s.tagName(c).toLowerCase(),{},[],void 0,c)}var p=t.elm,h=s.parentNode(p);if(d(e,m,p._leaveCb?null:h,s.nextSibling(p)),n(e.parent))for(var w=e.parent,k=g(e);w;){for(var v=0;v-1,o.selected!==a&&(o.selected=a);else if(E(sa(o),r))return void(t.selectedIndex!==l&&(t.selectedIndex=l));n||(t.selectedIndex=-1)}else st('