diff --git a/.babelrc b/.babelrc deleted file mode 100644 index 27dd1da..0000000 --- a/.babelrc +++ /dev/null @@ -1,12 +0,0 @@ -{ - "presets": [ - ["env", { "modules": false }] - ], - "env": { - "test": { - "presets": [ - ["env", { "targets": { "node": "current" } }] - ] - } - } -} \ No newline at end of file diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 3dce414..0000000 --- a/.editorconfig +++ /dev/null @@ -1,9 +0,0 @@ -root = true - -[*] -charset = utf-8 -indent_style = space -indent_size = 2 -end_of_line = lf -insert_final_newline = true -trim_trailing_whitespace = true \ No newline at end of file diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index 763301f..0000000 --- a/.eslintignore +++ /dev/null @@ -1,2 +0,0 @@ -dist/ -node_modules/ \ No newline at end of file diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 263e16e..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1,17 +0,0 @@ -module.exports = { - root: true, - env: { - node: true, - }, - extends: [ - 'plugin:vue/essential', - 'airbnb-base', - ], - rules: { - 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off', - 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', - }, - parserOptions: { - parser: 'babel-eslint', - }, -}; \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md deleted file mode 100644 index d28d493..0000000 --- a/.github/ISSUE_TEMPLATE.md +++ /dev/null @@ -1,29 +0,0 @@ -## Issue report - -## Current behavior - - -## Input Code - -```js -const your = (code) => here; -``` - -## Expected behavior - - -## Posible solution - - -## Environment -

-Plugin version: X.Y.Z
-
-
-For tooling issue:
-- Node version: XX 
-- Platform: 
-
-Others:
-
-
\ No newline at end of file diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 75b528e..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,32 +0,0 @@ -## PR Checklist -Please check if your PR fulfills the following requirements: - -- [ ] The commit message follows our guidelines: https://github.com/coderdiaz/vue-tiny-pagination/blob/master/CONTRIBUTING.md -- [ ] Tests for the changes have been added (for bug fixes / features). -- [ ] Docs have been added / updated (for bug fixes / features). - -## PR Type -What kind of change does this PR introduce? - - -``` -[ ] Bugfixes -[ ] Feature -[ ] Code style update (formatting, local variables) -[ ] Refactoring (no functional changes, no api changes) -[ ] Build related changes -[ ] CI related changes -[ ] Other... Please describe: -``` - -## What is the current behavior? - - -## What is the new behaviour? - -## Does this PR introduce a breaking change? -``` -[ ] Yes -[ ] No -``` - diff --git a/.gitignore b/.gitignore deleted file mode 100644 index a157bde..0000000 --- a/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ -node_modules/ -dist/ -coverage/ -yarn-error.log -npm-debug.log -.DS_Store - -# Editor directories -.idea -*.suo -*.ntvs* -*.njsproj -*.sln \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index ec297b2..0000000 --- a/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -language: node_js -node_js: - - 8 - - 10 -cache: - yarn: true - directories: node_modules -install: - - yarn -script: - - yarn test:unit \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md deleted file mode 100644 index ae7ef20..0000000 --- a/CONTRIBUTING.md +++ /dev/null @@ -1,48 +0,0 @@ -## Contribute -We would love for you to contribute and help make it even better than it is todat! As a contributor, here are the guidelines we would like you to follow: - -## Development Setup -You will need Node.js version +8.9.0. -1. After clonning the repo, run: -```bash -$ npm i # or yarn install -``` - -### Commonly use NPM scripts -```bash -# build all packages -$ npm run build - -# run full unit-tests suite -$ npm run test:unit - -# run linter -$ npm run lint -``` - -## Found a Bug? -If you find a bug in source code, you can help us by submitting an issue to our GitHub repository. Even better, you can submit a Pull Request with a fix. - -## Missing a Feature? -You can request a new feature by submitting an issue to our GitHub repository. If you would like to implement a new feature, please submit an issue with a proposal for your work first, to be sure that we can use it. Please consider what kind of change it is: -- For a **Major Feature**, first open an issue and outline your proposal so that it can be discussed. This will also allow us to better coordinate our efforts, prevent duplication of work, and help you to craft the change so that it is successfully accepted in the project. For your issue name, please prefix your proposal with `[discussion]`, for example "[discussion]: your feature idea". -- **Small Features** can be crafted and firectly submitted as a Pull Request. - -## Coding Rules -To ensure consistency throughout the source code, keep these rules in mind as you are working: -- All feature or bug fixes **must be tested** by one or more specs (unit-tests). -- We follow [Airbnb JavaScript Style Guide](https://github.com/airbnb/javascript), but wrap all code at **100 characters**. - -## Commit Message Guidelines -We have very precise rules over how our git commit messages can be formatted. This leads to **more readable messages** that are easy to follow when looking through the **project history**. But also, we use git commit messages to **generate the change log**. - -### Type -Must be one of the following: -- **build**: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm). -- **ci**: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs). -- **docs**: Documentation only changes. -- **feature**: A new feature. -- **bugfix**: A bug fix. -- **refactor**: A code change that neither fixes a bug nor adds a feature. -- **style**: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc). -- **test**: Adding missing tests or correcting existing tests. diff --git a/LICENSE b/LICENSE deleted file mode 100644 index adadb79..0000000 --- a/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2018-2019 Javier Diaz Chamorro - -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. \ No newline at end of file diff --git a/README.md b/README.md deleted file mode 100644 index f22b16d..0000000 --- a/README.md +++ /dev/null @@ -1,87 +0,0 @@ -# [Tiny Pagination](https://github.com/coderdiaz/vue-tiny-pagination) · [![NPMVERSION](https://img.shields.io/npm/v/vue-tiny-pagination.svg)](http://npmjs.com/package/vue-tiny-pagination) [![GITHUBSTARS](https://img.shields.io/github/stars/coderdiaz/vue-tiny-pagination.svg)](https://github.com/coderdiaz/vue-tiny-pagination/stargazers) [![BUILD](https://travis-ci.org/coderdiaz/vue-tiny-pagination.svg?branch=master)](https://travis-ci.org/coderdiaz/vue-tiny-pagination) [![DOWNLOADS](https://img.shields.io/npm/dt/vue-tiny-pagination.svg)](https://npmjs.com/package/vue-tiny-pagination) -A Vue component for create a tiny paginate with Flexbox - -## Install/Usage - -```sh -# Install with npm -$ npm i -S vue-tiny-pagination - -# or yarn -$ yarn add vue-tiny-pagination -``` - -```html -
- -
-``` - -You can use **Local Registration**: -```js -import { TinyPagination } from 'vue-tiny-pagination'; -new Vue({ - el: '#app', - data() { - return { - currentTotal: 100, - currentPage: 1, - }; - }, - methods: { - changePage (pagination) { - this.currentPage = pagination.page; - }, - }, - components: { - TinyPagination, - }, -}); -``` - -or **Global Registration**: -```js -import TinyPagination from 'vue-tiny-pagination'; -Vue.use(TinyPagination); - -// or with a custom component name -import { TinyPagination } from 'vue-tiny-pagination'; -Vue.component('custom-name', TinyPagination); -``` - -### Usage in browser - -In browser you can use Unpkg, Jsdelivr, CDN.js, etc. -```sh -# Unpkg -https://unpkg.com/vue-tiny-pagination@latest/dist/vue-tiny-pagination.js - -# JSDelivr -https://cdn.jsdelivr.net/npm/vue-tiny-pagination@latest/dist/vue-tiny-pagination.min.js -``` - -## Documentation - -### Props -|Name|Description|Type|Default|Required| -|---|---|---|---|---| -|total|A number of total items|Number|-|true| -|page|Prop to set a default page|Number|1|false| -|lang|Default language to show (Available: en, es)|String|en|false| -|customClass|Prop to set a custom class.|String|""|false| -|limits|Prop to set a default limits to page sizes.|Array|[10, 15, 20,50,100]|false| -|showLimit|Prop to disable the limit selector|Boolean|true|false| - -### Events -|Event|Description| -|---|---| -|tiny:change-page|Get the current page from pagination `payload: { page: 1 }`| -|tiny:change-limit|Get the current limit from pagination `payload: { limit: 1 }`| - -## Community -All feedback and suggestions are welcome! - -## License -This is a open-source software licensed under the [MIT license](https://raw.githubusercontent.com/coderdiaz/vue-tiny-pagination/master/LICENSE) diff --git a/dist/build.js b/dist/build.js new file mode 100644 index 0000000..3077e07 --- /dev/null +++ b/dist/build.js @@ -0,0 +1,13 @@ +!function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var r={};t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/public/dist/",t(t.s=14)}([function(e,t,r){"use strict";function n(e){return"[object Array]"===C.call(e)}function o(e){return"[object ArrayBuffer]"===C.call(e)}function i(e){return"undefined"!=typeof FormData&&e instanceof FormData}function a(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer}function s(e){return"string"==typeof e}function l(e){return"number"==typeof e}function c(e){return void 0===e}function d(e){return null!==e&&"object"==typeof e}function f(e){return"[object Date]"===C.call(e)}function u(e){return"[object File]"===C.call(e)}function p(e){return"[object Blob]"===C.call(e)}function m(e){return"[object Function]"===C.call(e)}function h(e){return d(e)&&m(e.pipe)}function g(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams}function v(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function b(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)}function y(e,t){if(null!==e&&void 0!==e)if("object"!=typeof e&&(e=[e]),n(e))for(var r=0,o=e.length;r=200&&e<300}};s.headers={common:{Accept:"application/json, text/plain, */*"}},o.forEach(["delete","get","head"],function(e){s.headers[e]={}}),o.forEach(["post","put","patch"],function(e){s.headers[e]=o.merge(a)}),e.exports=s}).call(t,r(3))},function(e,t){function r(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function o(e){if(d===setTimeout)return setTimeout(e,0);if((d===r||!d)&&setTimeout)return d=setTimeout,setTimeout(e,0);try{return d(e,0)}catch(t){try{return d.call(null,e,0)}catch(t){return d.call(this,e,0)}}}function i(e){if(f===clearTimeout)return clearTimeout(e);if((f===n||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function a(){h&&p&&(h=!1,p.length?m=p.concat(m):g=-1,m.length&&s())}function s(){if(!h){var e=o(a);h=!0;for(var t=m.length;t;){for(p=m,m=[];++g1)for(var r=1;rr.parts.length&&(n.parts.length=r.parts.length)}else{for(var a=[],o=0;o1&&(this.currentPage-=1)},onLimitChange:function(){this.currentPage=1}},watch:{currentPage:function(e){this.$emit("tiny:change-page",{page:e})},currentLimit:function(e){this.$emit("tiny:change-limit",{limit:e})}}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(15),o=r(18);new n.a({el:"#app",render:function(e){return e(o.a)}})},function(e,t,r){"use strict";(function(e,r){function n(e){return void 0===e||null===e}function o(e){return void 0!==e&&null!==e}function i(e){return!0===e}function a(e){return!1===e}function s(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function l(e){return null!==e&&"object"==typeof e}function c(e){return"[object Object]"===ni.call(e)}function d(e){return"[object RegExp]"===ni.call(e)}function f(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function u(e){return null==e?"":"object"==typeof e?JSON.stringify(e,null,2):String(e)}function p(e){var t=parseFloat(e);return isNaN(t)?e:t}function m(e,t){for(var r=Object.create(null),n=e.split(","),o=0;o-1)return e.splice(r,1)}}function g(e,t){return ai.call(e,t)}function v(e){var t=Object.create(null);return function(r){return t[r]||(t[r]=e(r))}}function b(e,t){function r(r){var n=arguments.length;return n?n>1?e.apply(t,arguments):e.call(t,r):e.call(t)}return r._length=e.length,r}function y(e,t){t=t||0;for(var r=e.length-t,n=new Array(r);r--;)n[r]=e[r+t];return n}function x(e,t){for(var r in t)e[r]=t[r];return e}function w(e){for(var t={},r=0;r0&&(a=ve(a,(t||"")+"_"+r),ge(a[0])&&ge(c)&&(d[l]=j(c.text+a[0].text),a.shift()),d.push.apply(d,a)):s(a)?ge(c)?d[l]=j(c.text+a):""!==a&&d.push(j(a)):ge(a)&&ge(c)?d[l]=j(c.text+a.text):(i(e._isVList)&&o(a.tag)&&n(a.key)&&o(t)&&(a.key="__vlist"+t+"_"+r+"__"),d.push(a)));return d}function be(e,t){return(e.__esModule||Ii&&"Module"===e[Symbol.toStringTag])&&(e=e.default),l(e)?t.extend(e):e}function ye(e,t,r,n,o){var i=Hi();return i.asyncFactory=e,i.asyncMeta={data:t,context:r,children:n,tag:o},i}function xe(e,t,r){if(i(e.error)&&o(e.errorComp))return e.errorComp;if(o(e.resolved))return e.resolved;if(i(e.loading)&&o(e.loadingComp))return e.loadingComp;if(!o(e.contexts)){var a=e.contexts=[r],s=!0,c=function(){for(var e=0,t=a.length;ema&&ca[r].id>e.id;)r--;ca.splice(r+1,0,e)}else ca.push(e);ua||(ua=!0,ae(Re))}}function He(e,t,r){va.get=function(){return this[t][r]},va.set=function(e){this[t][r]=e},Object.defineProperty(e,r,va)}function qe(e){e._watchers=[];var t=e.$options;t.props&&Ve(e,t.props),t.methods&&We(e,t.methods),t.data?Xe(e):M(e._data={},!0),t.computed&&Ke(e,t.computed),t.watch&&t.watch!==Si&&Ze(e,t.watch)}function Ve(e,t){var r=e.$options.propsData||{},n=e._props={},o=e.$options._propKeys=[],i=!e.$parent;Ji.shouldConvert=i;for(var a in t)!function(i){o.push(i);var a=W(i,t,r,e);R(n,i,a),i in e||He(e,"_props",i)}(a);Ji.shouldConvert=!0}function Xe(e){var t=e.$options.data;t=e._data="function"==typeof t?Je(t,e):t||{},c(t)||(t={});for(var r=Object.keys(t),n=e.$options.props,o=(e.$options.methods,r.length);o--;){var i=r[o];n&&g(n,i)||A(i)||He(e,"_data",i)}M(t,!0)}function Je(e,t){try{return e.call(t,t)}catch(e){return te(e,t,"data()"),{}}}function Ke(e,t){var r=e._computedWatchers=Object.create(null),n=Pi();for(var o in t){var i=t[o],a="function"==typeof i?i:i.get;n||(r[o]=new ga(e,a||_,_,ba)),o in e||Ye(e,o,i)}}function Ye(e,t,r){var n=!Pi();"function"==typeof r?(va.get=n?Ge(t):r,va.set=_):(va.get=r.get?n&&!1!==r.cache?Ge(t):r.get:_,va.set=r.set?r.set:_),Object.defineProperty(e,t,va)}function Ge(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),Di.target&&t.depend(),t.value}}function We(e,t){e.$options.props;for(var r in t)e[r]=null==t[r]?_:b(t[r],e)}function Ze(e,t){for(var r in t){var n=t[r];if(Array.isArray(n))for(var o=0;o=0||r.indexOf(e[o])<0)&&n.push(e[o]);return n}return e}function Ot(e){this._init(e)}function Et(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var r=y(arguments,1);return r.unshift(this),"function"==typeof e.install?e.install.apply(e,r):"function"==typeof e&&e.apply(null,r),t.push(e),this}}function jt(e){e.mixin=function(e){return this.options=Y(this.options,e),this}}function Lt(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var r=this,n=r.cid,o=e._Ctor||(e._Ctor={});if(o[n])return o[n];var i=e.name||r.options.name,a=function(e){this._init(e)};return a.prototype=Object.create(r.prototype),a.prototype.constructor=a,a.cid=t++,a.options=Y(r.options,e),a.super=r,a.options.props&&Pt(a),a.options.computed&&Nt(a),a.extend=r.extend,a.mixin=r.mixin,a.use=r.use,hi.forEach(function(e){a[e]=r[e]}),i&&(a.options.components[i]=a),a.superOptions=r.options,a.extendOptions=e,a.sealedOptions=x({},a.options),o[n]=a,a}}function Pt(e){var t=e.options.props;for(var r in t)He(e.prototype,"_props",r)}function Nt(e){var t=e.options.computed;for(var r in t)Ye(e.prototype,r,t[r])}function It(e){hi.forEach(function(t){e[t]=function(e,r){return r?("component"===t&&c(r)&&(r.name=r.name||e,r=this.options._base.extend(r)),"directive"===t&&"function"==typeof r&&(r={bind:r,update:r}),this.options[t+"s"][e]=r,r):this.options[t+"s"][e]}})}function Mt(e){return e&&(e.Ctor.options.name||e.tag)}function Rt(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!d(e)&&e.test(t)}function Dt(e,t){var r=e.cache,n=e.keys,o=e._vnode;for(var i in r){var a=r[i];if(a){var s=Mt(a.componentOptions);s&&!t(s)&&Ft(r,i,n,o)}}}function Ft(e,t,r,n){var o=e[t];!o||n&&o.tag===n.tag||o.componentInstance.$destroy(),e[t]=null,h(r,t)}function Bt(e){for(var t=e.data,r=e,n=e;o(n.componentInstance);)(n=n.componentInstance._vnode)&&n.data&&(t=Ut(n.data,t));for(;o(r=r.parent);)r&&r.data&&(t=Ut(t,r.data));return Ht(t.staticClass,t.class)}function Ut(e,t){return{staticClass:qt(e.staticClass,t.staticClass),class:o(e.class)?[e.class,t.class]:t.class}}function Ht(e,t){return o(e)||o(t)?qt(e,Vt(t)):""}function qt(e,t){return e?t?e+" "+t:e:t||""}function Vt(e){return Array.isArray(e)?Xt(e):l(e)?Jt(e):"string"==typeof e?e:""}function Xt(e){for(var t,r="",n=0,i=e.length;n-1?Ga[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Ga[e]=/HTMLUnknownElement/.test(t.toString())}function Gt(e){if("string"==typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}function Wt(e,t){var r=document.createElement(e);return"select"!==e?r:(t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&r.setAttribute("multiple","multiple"),r)}function Zt(e,t){return document.createElementNS(Va[e],t)}function Qt(e){return document.createTextNode(e)}function er(e){return document.createComment(e)}function tr(e,t,r){e.insertBefore(t,r)}function rr(e,t){e.removeChild(t)}function nr(e,t){e.appendChild(t)}function or(e){return e.parentNode}function ir(e){return e.nextSibling}function ar(e){return e.tagName}function sr(e,t){e.textContent=t}function lr(e,t,r){e.setAttribute(t,r)}function cr(e,t){var r=e.data.ref;if(r){var n=e.context,o=e.componentInstance||e.elm,i=n.$refs;t?Array.isArray(i[r])?h(i[r],o):i[r]===o&&(i[r]=void 0):e.data.refInFor?Array.isArray(i[r])?i[r].indexOf(o)<0&&i[r].push(o):i[r]=[o]:i[r]=o}}function dr(e,t){return e.key===t.key&&(e.tag===t.tag&&e.isComment===t.isComment&&o(e.data)===o(t.data)&&fr(e,t)||i(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&n(t.asyncFactory.error))}function fr(e,t){if("input"!==e.tag)return!0;var r,n=o(r=e.data)&&o(r=r.attrs)&&r.type,i=o(r=t.data)&&o(r=r.attrs)&&r.type;return n===i||Wa(n)&&Wa(i)}function ur(e,t,r){var n,i,a={};for(n=t;n<=r;++n)i=e[n].key,o(i)&&(a[i]=n);return a}function pr(e,t){(e.data.directives||t.data.directives)&&mr(e,t)}function mr(e,t){var r,n,o,i=e===es,a=t===es,s=hr(e.data.directives,e.context),l=hr(t.data.directives,t.context),c=[],d=[];for(r in l)n=s[r],o=l[r],n?(o.oldValue=n.value,vr(o,"update",t,e),o.def&&o.def.componentUpdated&&d.push(o)):(vr(o,"bind",t,e),o.def&&o.def.inserted&&c.push(o));if(c.length){var f=function(){for(var r=0;r=0&&" "===(g=e.charAt(h));h--);g&&ss.test(g)||(d=!0)}}else void 0===i?(m=o+1,i=e.slice(0,o).trim()):t();if(void 0===i?i=e.slice(0,o).trim():0!==m&&t(),a)for(o=0;o-1?{exp:e.slice(0,Oa),key:'"'+e.slice(Oa+1)+'"'}:{exp:e,key:null};for(za=e,Oa=Ea=ja=0;!Ir();)Sa=Nr(),Mr(Sa)?Dr(Sa):91===Sa&&Rr(Sa);return{exp:e.slice(0,Ea),key:e.slice(Ea+1,ja)}}function Nr(){return za.charCodeAt(++Oa)}function Ir(){return Oa>=Ta}function Mr(e){return 34===e||39===e}function Rr(e){var t=1;for(Ea=Oa;!Ir();)if(e=Nr(),Mr(e))Dr(e);else if(91===e&&t++,93===e&&t--,0===t){ja=Oa;break}}function Dr(e){for(var t=e;!Ir()&&(e=Nr())!==t;);}function Fr(e,t,r){La=r;var n=t.value,o=t.modifiers,i=e.tag,a=e.attrsMap.type;if(e.component)return jr(e,n,o),!1;if("select"===i)Hr(e,n,o);else if("input"===i&&"checkbox"===a)Br(e,n,o);else if("input"===i&&"radio"===a)Ur(e,n,o);else if("input"===i||"textarea"===i)qr(e,n,o);else if(!vi.isReservedTag(i))return jr(e,n,o),!1;return!0}function Br(e,t,r){var n=r&&r.number,o=Or(e,"value")||"null",i=Or(e,"true-value")||"true",a=Or(e,"false-value")||"false";$r(e,"checked","Array.isArray("+t+")?_i("+t+","+o+")>-1"+("true"===i?":("+t+")":":_q("+t+","+i+")")),Sr(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+i+"):("+a+");if(Array.isArray($$a)){var $$v="+(n?"_n("+o+")":o)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+t+"=$$a.concat([$$v]))}else{$$i>-1&&("+t+"=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{"+Lr(t,"$$c")+"}",null,!0)}function Ur(e,t,r){var n=r&&r.number,o=Or(e,"value")||"null";o=n?"_n("+o+")":o,$r(e,"checked","_q("+t+","+o+")"),Sr(e,"change",Lr(t,o),null,!0)}function Hr(e,t,r){var n=r&&r.number,o='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(n?"_n(val)":"val")+"})",i="var $$selectedVal = "+o+";";i=i+" "+Lr(t,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),Sr(e,"change",i,null,!0)}function qr(e,t,r){var n=e.attrsMap.type,o=r||{},i=o.lazy,a=o.number,s=o.trim,l=!i&&"range"!==n,c=i?"change":"range"===n?ls:"input",d="$event.target.value";s&&(d="$event.target.value.trim()"),a&&(d="_n("+d+")");var f=Lr(t,d);l&&(f="if($event.target.composing)return;"+f),$r(e,"value","("+t+")"),Sr(e,c,f,null,!0),(s||a)&&Sr(e,"blur","$forceUpdate()")}function Vr(e){if(o(e[ls])){var t=Ci?"change":"input";e[t]=[].concat(e[ls],e[t]||[]),delete e[ls]}o(e[cs])&&(e.change=[].concat(e[cs],e.change||[]),delete e[cs])}function Xr(e,t,r){var n=Pa;return function o(){null!==e.apply(null,arguments)&&Kr(t,o,r,n)}}function Jr(e,t,r,n,o){t=ie(t),r&&(t=Xr(t,e,n)),Pa.addEventListener(e,t,Oi?{capture:n,passive:o}:n)}function Kr(e,t,r,n){(n||Pa).removeEventListener(e,t._withTask||t,r)}function Yr(e,t){if(!n(e.data.on)||!n(t.data.on)){var r=t.data.on||{},o=e.data.on||{};Pa=t.elm,Vr(r),de(r,o,Jr,Kr,t.context),Pa=void 0}}function Gr(e,t){if(!n(e.data.domProps)||!n(t.data.domProps)){var r,i,a=t.elm,s=e.data.domProps||{},l=t.data.domProps||{};o(l.__ob__)&&(l=t.data.domProps=x({},l));for(r in s)n(l[r])&&(a[r]="");for(r in l){if(i=l[r],"textContent"===r||"innerHTML"===r){if(t.children&&(t.children.length=0),i===s[r])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===r){a._value=i;var c=n(i)?"":String(i);Wr(a,c)&&(a.value=c)}else a[r]=i}}}function Wr(e,t){return!e.composing&&("OPTION"===e.tagName||Zr(e,t)||Qr(e,t))}function Zr(e,t){var r=!0;try{r=document.activeElement!==e}catch(e){}return r&&e.value!==t}function Qr(e,t){var r=e.value,n=e._vModifiers;if(o(n)){if(n.lazy)return!1;if(n.number)return p(r)!==p(t);if(n.trim)return r.trim()!==t.trim()}return r!==t}function en(e){var t=tn(e.style);return e.staticStyle?x(e.staticStyle,t):t}function tn(e){return Array.isArray(e)?w(e):"string"==typeof e?us(e):e}function rn(e,t){var r,n={};if(t)for(var o=e;o.componentInstance;)(o=o.componentInstance._vnode)&&o.data&&(r=en(o.data))&&x(n,r);(r=en(e.data))&&x(n,r);for(var i=e;i=i.parent;)i.data&&(r=en(i.data))&&x(n,r);return n}function nn(e,t){var r=t.data,i=e.data;if(!(n(r.staticStyle)&&n(r.style)&&n(i.staticStyle)&&n(i.style))){var a,s,l=t.elm,c=i.staticStyle,d=i.normalizedStyle||i.style||{},f=c||d,u=tn(t.data.style)||{};t.data.normalizedStyle=o(u.__ob__)?x({},u):u;var p=rn(t,!0);for(s in f)n(p[s])&&hs(l,s,"");for(s in p)(a=p[s])!==f[s]&&hs(l,s,null==a?"":a)}}function on(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(/\s+/).forEach(function(t){return e.classList.add(t)}):e.classList.add(t);else{var r=" "+(e.getAttribute("class")||"")+" ";r.indexOf(" "+t+" ")<0&&e.setAttribute("class",(r+t).trim())}}function an(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(/\s+/).forEach(function(t){return e.classList.remove(t)}):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var r=" "+(e.getAttribute("class")||"")+" ",n=" "+t+" ";r.indexOf(n)>=0;)r=r.replace(n," ");r=r.trim(),r?e.setAttribute("class",r):e.removeAttribute("class")}}function sn(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&x(t,ys(e.name||"v")),x(t,e),t}return"string"==typeof e?ys(e):void 0}}function ln(e){Ts(function(){Ts(e)})}function cn(e,t){var r=e._transitionClasses||(e._transitionClasses=[]);r.indexOf(t)<0&&(r.push(t),on(e,t))}function dn(e,t){e._transitionClasses&&h(e._transitionClasses,t),an(e,t)}function fn(e,t,r){var n=un(e,t),o=n.type,i=n.timeout,a=n.propCount;if(!o)return r();var s=o===ws?Cs:As,l=0,c=function(){e.removeEventListener(s,d),r()},d=function(t){t.target===e&&++l>=a&&c()};setTimeout(function(){l0&&(r=ws,d=a,f=i.length):t===_s?c>0&&(r=_s,d=c,f=l.length):(d=Math.max(a,c),r=d>0?a>c?ws:_s:null,f=r?r===ws?i.length:l.length:0),{type:r,timeout:d,propCount:f,hasTransform:r===ws&&zs.test(n[ks+"Property"])}}function pn(e,t){for(;e.length1}function yn(e,t){!0!==t.data.show&&hn(t)}function xn(e,t,r){wn(e,t,r),(Ci||Ai)&&setTimeout(function(){wn(e,t,r)},0)}function wn(e,t,r){var n=t.value,o=e.multiple;if(!o||Array.isArray(n)){for(var i,a,s=0,l=e.options.length;s-1,a.selected!==i&&(a.selected=i);else if(k(kn(a),n))return void(e.selectedIndex!==s&&(e.selectedIndex=s));o||(e.selectedIndex=-1)}}function _n(e,t){return t.every(function(t){return!k(t,e)})}function kn(e){return"_value"in e?e._value:e.value}function Cn(e){e.target.composing=!0}function $n(e){e.target.composing&&(e.target.composing=!1,An(e.target,"input"))}function An(e,t){var r=document.createEvent("HTMLEvents");r.initEvent(t,!0,!0),e.dispatchEvent(r)}function Tn(e){return!e.componentInstance||e.data&&e.data.transition?e:Tn(e.componentInstance._vnode)}function zn(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?zn(_e(t.children)):e}function Sn(e){var t={},r=e.$options;for(var n in r.propsData)t[n]=e[n];var o=r._parentListeners;for(var i in o)t[li(i)]=o[i];return t}function On(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function En(e){for(;e=e.parent;)if(e.data.transition)return!0}function jn(e,t){return t.key===e.key&&t.tag===e.tag}function Ln(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function Pn(e){e.data.newPos=e.elm.getBoundingClientRect()}function Nn(e){var t=e.data.pos,r=e.data.newPos,n=t.left-r.left,o=t.top-r.top;if(n||o){e.data.moved=!0;var i=e.elm.style;i.transform=i.WebkitTransform="translate("+n+"px,"+o+"px)",i.transitionDuration="0s"}}function In(e,t){var r=t?qs(t):Us;if(r.test(e)){for(var n,o,i,a=[],s=[],l=r.lastIndex=0;n=r.exec(e);){o=n.index,o>l&&(s.push(i=e.slice(l,o)),a.push(JSON.stringify(i)));var c=wr(n[1].trim());a.push("_s("+c+")"),s.push({"@binding":c}),l=o+n[0].length}return l=0&&a[o].lowerCasedTag!==s;o--);else o=0;if(o>=0){for(var l=a.length-1;l>=o;l--)t.end&&t.end(a[l].tag,r,n);a.length=o,i=o&&a[o-1].tag}else"br"===s?t.start&&t.start(e,[],!0,r,n):"p"===s&&(t.start&&t.start(e,[],!1,r,n),t.end&&t.end(e,r,n))}for(var o,i,a=[],s=t.expectHTML,l=t.isUnaryTag||ui,c=t.canBeLeftOpenTag||ui,d=0;e;){if(o=e,i&&bl(i)){var f=0,u=i.toLowerCase(),p=yl[u]||(yl[u]=new RegExp("([\\s\\S]*?)(]*>)","i")),m=e.replace(p,function(e,r,n){return f=n.length,bl(u)||"noscript"===u||(r=r.replace(//g,"$1").replace(//g,"$1")),Cl(u,r)&&(r=r.slice(1)),t.chars&&t.chars(r),""});d+=e.length-m.length,e=m,n(u,d-f,d)}else{var h=e.indexOf("<");if(0===h){if(ol.test(e)){var g=e.indexOf("--\x3e");if(g>=0){t.shouldKeepComment&&t.comment(e.substring(4,g)),r(g+3);continue}}if(il.test(e)){var v=e.indexOf("]>");if(v>=0){r(v+2);continue}}var b=e.match(nl);if(b){r(b[0].length);continue}var y=e.match(rl);if(y){var x=d;r(y[0].length),n(y[1],x,d);continue}var w=function(){var t=e.match(el);if(t){var n={tagName:t[1],attrs:[],start:d};r(t[0].length);for(var o,i;!(o=e.match(tl))&&(i=e.match(Ws));)r(i[0].length),n.attrs.push(i);if(o)return n.unarySlash=o[1],r(o[0].length),n.end=d,n}}();if(w){!function(e){var r=e.tagName,o=e.unarySlash;s&&("p"===i&&Gs(r)&&n(i),c(r)&&i===r&&n(r));for(var d=l(r)||!!o,f=e.attrs.length,u=new Array(f),p=0;p=0){for(k=e.slice(h);!(rl.test(k)||el.test(k)||ol.test(k)||il.test(k)||(C=k.indexOf("<",1))<0);)h+=C,k=e.slice(h);_=e.substring(0,h),r(h)}h<0&&(_=e,e=""),t.chars&&_&&t.chars(_)}if(e===o){t.chars&&t.chars(e);break}}n()}function Hn(e,t,r){return{type:1,tag:e,attrsList:t,attrsMap:lo(t),parent:r,children:[]}}function qn(e,t){function r(e){e.pre&&(s=!1),ul(e.tag)&&(l=!1);for(var r=0;r':'
',vl.innerHTML.indexOf(" ")>0}function ti(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}/*! + * Vue.js v2.5.13 + * (c) 2014-2017 Evan You + * Released under the MIT License. + */ +var ri=Object.freeze({}),ni=Object.prototype.toString,oi=m("slot,component",!0),ii=m("key,ref,slot,slot-scope,is"),ai=Object.prototype.hasOwnProperty,si=/-(\w)/g,li=v(function(e){return e.replace(si,function(e,t){return t?t.toUpperCase():""})}),ci=v(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),di=/\B([A-Z])/g,fi=v(function(e){return e.replace(di,"-$1").toLowerCase()}),ui=function(e,t,r){return!1},pi=function(e){return e},mi="data-server-rendered",hi=["component","directive","filter"],gi=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured"],vi={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:ui,isReservedAttr:ui,isUnknownElement:ui,getTagNamespace:_,parsePlatformTagName:pi,mustUseProp:ui,_lifecycleHooks:gi},bi=/[^\w.$]/,yi="__proto__"in{},xi="undefined"!=typeof window,wi="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,_i=wi&&WXEnvironment.platform.toLowerCase(),ki=xi&&window.navigator.userAgent.toLowerCase(),Ci=ki&&/msie|trident/.test(ki),$i=ki&&ki.indexOf("msie 9.0")>0,Ai=ki&&ki.indexOf("edge/")>0,Ti=ki&&ki.indexOf("android")>0||"android"===_i,zi=ki&&/iphone|ipad|ipod|ios/.test(ki)||"ios"===_i,Si=(ki&&/chrome\/\d+/.test(ki),{}.watch),Oi=!1;if(xi)try{var Ei={};Object.defineProperty(Ei,"passive",{get:function(){Oi=!0}}),window.addEventListener("test-passive",null,Ei)}catch(e){}var ji,Li,Pi=function(){return void 0===ji&&(ji=!xi&&void 0!==e&&"server"===e.process.env.VUE_ENV),ji},Ni=xi&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,Ii="undefined"!=typeof Symbol&&S(Symbol)&&"undefined"!=typeof Reflect&&S(Reflect.ownKeys);Li="undefined"!=typeof Set&&S(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var Mi=_,Ri=0,Di=function(){this.id=Ri++,this.subs=[]};Di.prototype.addSub=function(e){this.subs.push(e)},Di.prototype.removeSub=function(e){h(this.subs,e)},Di.prototype.depend=function(){Di.target&&Di.target.addDep(this)},Di.prototype.notify=function(){for(var e=this.subs.slice(),t=0,r=e.length;t1?y(r):r;for(var n=y(arguments,1),o=0,i=r.length;oparseInt(this.max)&&Ft(l,c[0],c,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}},Aa={KeepAlive:$a};!function(e){var t={};t.get=function(){return vi},Object.defineProperty(e,"config",t),e.util={warn:Mi,extend:x,mergeOptions:Y,defineReactive:R},e.set=D,e.delete=F,e.nextTick=ae,e.options=Object.create(null),hi.forEach(function(t){e.options[t+"s"]=Object.create(null)}),e.options._base=e,x(e.options.components,Aa),Et(e),jt(e),Lt(e),It(e)}(Ot),Object.defineProperty(Ot.prototype,"$isServer",{get:Pi}),Object.defineProperty(Ot.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Ot.version="2.5.13";var Ta,za,Sa,Oa,Ea,ja,La,Pa,Na,Ia=m("style,class"),Ma=m("input,textarea,option,select,progress"),Ra=function(e,t,r){return"value"===r&&Ma(e)&&"button"!==t||"selected"===r&&"option"===e||"checked"===r&&"input"===e||"muted"===r&&"video"===e},Da=m("contenteditable,draggable,spellcheck"),Fa=m("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"),Ba="http://www.w3.org/1999/xlink",Ua=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Ha=function(e){return Ua(e)?e.slice(6,e.length):""},qa=function(e){return null==e||!1===e},Va={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Xa=m("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Ja=m("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Ka=function(e){return"pre"===e},Ya=function(e){return Xa(e)||Ja(e)},Ga=Object.create(null),Wa=m("text,number,password,search,email,tel,url"),Za=Object.freeze({createElement:Wt,createElementNS:Zt,createTextNode:Qt,createComment:er,insertBefore:tr,removeChild:rr,appendChild:nr,parentNode:or,nextSibling:ir,tagName:ar,setTextContent:sr,setAttribute:lr}),Qa={create:function(e,t){cr(t)},update:function(e,t){e.data.ref!==t.data.ref&&(cr(e,!0),cr(t))},destroy:function(e){cr(e,!0)}},es=new Bi("",{},[]),ts=["create","activate","update","remove","destroy"],rs={create:pr,update:pr,destroy:function(e){pr(e,es)}},ns=Object.create(null),os=[Qa,rs],is={create:br,update:br},as={create:xr,update:xr},ss=/[\w).+\-_$\]]/,ls="__r",cs="__c",ds={create:Yr,update:Yr},fs={create:Gr,update:Gr},us=v(function(e){var t={},r=/;(?![^(]*\))/g,n=/:(.+)/;return e.split(r).forEach(function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}),ps=/^--/,ms=/\s*!important$/,hs=function(e,t,r){if(ps.test(t))e.style.setProperty(t,r);else if(ms.test(r))e.style.setProperty(t,r.replace(ms,""),"important");else{var n=vs(t);if(Array.isArray(r))for(var o=0,i=r.length;om?(f=n(r[v+1])?null:r[v+1].elm,b(e,f,r,p,v,i)):p>v&&x(e,t,u,m)}function k(e,t,r,n){for(var i=r;i\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Zs="[a-zA-Z_][\\w\\-\\.]*",Qs="((?:"+Zs+"\\:)?"+Zs+")",el=new RegExp("^<"+Qs),tl=/^\s*(\/?)>/,rl=new RegExp("^<\\/"+Qs+"[^>]*>"),nl=/^]+>/i,ol=/^ ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)\n ? ((formatComponentName(vm[0])) + \"... (\" + (vm[1]) + \" recursive calls)\")\n : formatComponentName(vm))); })\n .join('\\n')\n } else {\n return (\"\\n\\n(found in \" + (formatComponentName(vm)) + \")\")\n }\n };\n}\n\n/* */\n\n\nvar uid = 0;\n\n/**\n * A dep is an observable that can have multiple\n * directives subscribing to it.\n */\nvar Dep = function Dep () {\n this.id = uid++;\n this.subs = [];\n};\n\nDep.prototype.addSub = function addSub (sub) {\n this.subs.push(sub);\n};\n\nDep.prototype.removeSub = function removeSub (sub) {\n remove(this.subs, sub);\n};\n\nDep.prototype.depend = function depend () {\n if (Dep.target) {\n Dep.target.addDep(this);\n }\n};\n\nDep.prototype.notify = function notify () {\n // stabilize the subscriber list first\n var subs = this.subs.slice();\n for (var i = 0, l = subs.length; i < l; i++) {\n subs[i].update();\n }\n};\n\n// the current target watcher being evaluated.\n// this is globally unique because there could be only one\n// watcher being evaluated at any time.\nDep.target = null;\nvar targetStack = [];\n\nfunction pushTarget (_target) {\n if (Dep.target) { targetStack.push(Dep.target); }\n Dep.target = _target;\n}\n\nfunction popTarget () {\n Dep.target = targetStack.pop();\n}\n\n/* */\n\nvar VNode = function VNode (\n tag,\n data,\n children,\n text,\n elm,\n context,\n componentOptions,\n asyncFactory\n) {\n this.tag = tag;\n this.data = data;\n this.children = children;\n this.text = text;\n this.elm = elm;\n this.ns = undefined;\n this.context = context;\n this.fnContext = undefined;\n this.fnOptions = undefined;\n this.fnScopeId = undefined;\n this.key = data && data.key;\n this.componentOptions = componentOptions;\n this.componentInstance = undefined;\n this.parent = undefined;\n this.raw = false;\n this.isStatic = false;\n this.isRootInsert = true;\n this.isComment = false;\n this.isCloned = false;\n this.isOnce = false;\n this.asyncFactory = asyncFactory;\n this.asyncMeta = undefined;\n this.isAsyncPlaceholder = false;\n};\n\nvar prototypeAccessors = { child: { configurable: true } };\n\n// DEPRECATED: alias for componentInstance for backwards compat.\n/* istanbul ignore next */\nprototypeAccessors.child.get = function () {\n return this.componentInstance\n};\n\nObject.defineProperties( VNode.prototype, prototypeAccessors );\n\nvar createEmptyVNode = function (text) {\n if ( text === void 0 ) text = '';\n\n var node = new VNode();\n node.text = text;\n node.isComment = true;\n return node\n};\n\nfunction createTextVNode (val) {\n return new VNode(undefined, undefined, undefined, String(val))\n}\n\n// optimized shallow clone\n// used for static nodes and slot nodes because they may be reused across\n// multiple renders, cloning them avoids errors when DOM manipulations rely\n// on their elm reference.\nfunction cloneVNode (vnode, deep) {\n var componentOptions = vnode.componentOptions;\n var cloned = new VNode(\n vnode.tag,\n vnode.data,\n vnode.children,\n vnode.text,\n vnode.elm,\n vnode.context,\n componentOptions,\n vnode.asyncFactory\n );\n cloned.ns = vnode.ns;\n cloned.isStatic = vnode.isStatic;\n cloned.key = vnode.key;\n cloned.isComment = vnode.isComment;\n cloned.fnContext = vnode.fnContext;\n cloned.fnOptions = vnode.fnOptions;\n cloned.fnScopeId = vnode.fnScopeId;\n cloned.isCloned = true;\n if (deep) {\n if (vnode.children) {\n cloned.children = cloneVNodes(vnode.children, true);\n }\n if (componentOptions && componentOptions.children) {\n componentOptions.children = cloneVNodes(componentOptions.children, true);\n }\n }\n return cloned\n}\n\nfunction cloneVNodes (vnodes, deep) {\n var len = vnodes.length;\n var res = new Array(len);\n for (var i = 0; i < len; i++) {\n res[i] = cloneVNode(vnodes[i], deep);\n }\n return res\n}\n\n/*\n * not type checking this file because flow doesn't play well with\n * dynamically accessing methods on Array prototype\n */\n\nvar arrayProto = Array.prototype;\nvar arrayMethods = Object.create(arrayProto);[\n 'push',\n 'pop',\n 'shift',\n 'unshift',\n 'splice',\n 'sort',\n 'reverse'\n].forEach(function (method) {\n // cache original method\n var original = arrayProto[method];\n def(arrayMethods, method, function mutator () {\n var args = [], len = arguments.length;\n while ( len-- ) args[ len ] = arguments[ len ];\n\n var result = original.apply(this, args);\n var ob = this.__ob__;\n var inserted;\n switch (method) {\n case 'push':\n case 'unshift':\n inserted = args;\n break\n case 'splice':\n inserted = args.slice(2);\n break\n }\n if (inserted) { ob.observeArray(inserted); }\n // notify change\n ob.dep.notify();\n return result\n });\n});\n\n/* */\n\nvar arrayKeys = Object.getOwnPropertyNames(arrayMethods);\n\n/**\n * By default, when a reactive property is set, the new value is\n * also converted to become reactive. However when passing down props,\n * we don't want to force conversion because the value may be a nested value\n * under a frozen data structure. Converting it would defeat the optimization.\n */\nvar observerState = {\n shouldConvert: true\n};\n\n/**\n * Observer class that are attached to each observed\n * object. Once attached, the observer converts target\n * object's property keys into getter/setters that\n * collect dependencies and dispatches updates.\n */\nvar Observer = function Observer (value) {\n this.value = value;\n this.dep = new Dep();\n this.vmCount = 0;\n def(value, '__ob__', this);\n if (Array.isArray(value)) {\n var augment = hasProto\n ? protoAugment\n : copyAugment;\n augment(value, arrayMethods, arrayKeys);\n this.observeArray(value);\n } else {\n this.walk(value);\n }\n};\n\n/**\n * Walk through each property and convert them into\n * getter/setters. This method should only be called when\n * value type is Object.\n */\nObserver.prototype.walk = function walk (obj) {\n var keys = Object.keys(obj);\n for (var i = 0; i < keys.length; i++) {\n defineReactive(obj, keys[i], obj[keys[i]]);\n }\n};\n\n/**\n * Observe a list of Array items.\n */\nObserver.prototype.observeArray = function observeArray (items) {\n for (var i = 0, l = items.length; i < l; i++) {\n observe(items[i]);\n }\n};\n\n// helpers\n\n/**\n * Augment an target Object or Array by intercepting\n * the prototype chain using __proto__\n */\nfunction protoAugment (target, src, keys) {\n /* eslint-disable no-proto */\n target.__proto__ = src;\n /* eslint-enable no-proto */\n}\n\n/**\n * Augment an target Object or Array by defining\n * hidden properties.\n */\n/* istanbul ignore next */\nfunction copyAugment (target, src, keys) {\n for (var i = 0, l = keys.length; i < l; i++) {\n var key = keys[i];\n def(target, key, src[key]);\n }\n}\n\n/**\n * Attempt to create an observer instance for a value,\n * returns the new observer if successfully observed,\n * or the existing observer if the value already has one.\n */\nfunction observe (value, asRootData) {\n if (!isObject(value) || value instanceof VNode) {\n return\n }\n var ob;\n if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {\n ob = value.__ob__;\n } else if (\n observerState.shouldConvert &&\n !isServerRendering() &&\n (Array.isArray(value) || isPlainObject(value)) &&\n Object.isExtensible(value) &&\n !value._isVue\n ) {\n ob = new Observer(value);\n }\n if (asRootData && ob) {\n ob.vmCount++;\n }\n return ob\n}\n\n/**\n * Define a reactive property on an Object.\n */\nfunction defineReactive (\n obj,\n key,\n val,\n customSetter,\n shallow\n) {\n var dep = new Dep();\n\n var property = Object.getOwnPropertyDescriptor(obj, key);\n if (property && property.configurable === false) {\n return\n }\n\n // cater for pre-defined getter/setters\n var getter = property && property.get;\n var setter = property && property.set;\n\n var childOb = !shallow && observe(val);\n Object.defineProperty(obj, key, {\n enumerable: true,\n configurable: true,\n get: function reactiveGetter () {\n var value = getter ? getter.call(obj) : val;\n if (Dep.target) {\n dep.depend();\n if (childOb) {\n childOb.dep.depend();\n if (Array.isArray(value)) {\n dependArray(value);\n }\n }\n }\n return value\n },\n set: function reactiveSetter (newVal) {\n var value = getter ? getter.call(obj) : val;\n /* eslint-disable no-self-compare */\n if (newVal === value || (newVal !== newVal && value !== value)) {\n return\n }\n /* eslint-enable no-self-compare */\n if (false) {\n customSetter();\n }\n if (setter) {\n setter.call(obj, newVal);\n } else {\n val = newVal;\n }\n childOb = !shallow && observe(newVal);\n dep.notify();\n }\n });\n}\n\n/**\n * Set a property on an object. Adds the new property and\n * triggers change notification if the property doesn't\n * already exist.\n */\nfunction set (target, key, val) {\n if (Array.isArray(target) && isValidArrayIndex(key)) {\n target.length = Math.max(target.length, key);\n target.splice(key, 1, val);\n return val\n }\n if (key in target && !(key in Object.prototype)) {\n target[key] = val;\n return val\n }\n var ob = (target).__ob__;\n if (target._isVue || (ob && ob.vmCount)) {\n \"production\" !== 'production' && warn(\n 'Avoid adding reactive properties to a Vue instance or its root $data ' +\n 'at runtime - declare it upfront in the data option.'\n );\n return val\n }\n if (!ob) {\n target[key] = val;\n return val\n }\n defineReactive(ob.value, key, val);\n ob.dep.notify();\n return val\n}\n\n/**\n * Delete a property and trigger change if necessary.\n */\nfunction del (target, key) {\n if (Array.isArray(target) && isValidArrayIndex(key)) {\n target.splice(key, 1);\n return\n }\n var ob = (target).__ob__;\n if (target._isVue || (ob && ob.vmCount)) {\n \"production\" !== 'production' && warn(\n 'Avoid deleting properties on a Vue instance or its root $data ' +\n '- just set it to null.'\n );\n return\n }\n if (!hasOwn(target, key)) {\n return\n }\n delete target[key];\n if (!ob) {\n return\n }\n ob.dep.notify();\n}\n\n/**\n * Collect dependencies on array elements when the array is touched, since\n * we cannot intercept array element access like property getters.\n */\nfunction dependArray (value) {\n for (var e = (void 0), i = 0, l = value.length; i < l; i++) {\n e = value[i];\n e && e.__ob__ && e.__ob__.dep.depend();\n if (Array.isArray(e)) {\n dependArray(e);\n }\n }\n}\n\n/* */\n\n/**\n * Option overwriting strategies are functions that handle\n * how to merge a parent option value and a child option\n * value into the final value.\n */\nvar strats = config.optionMergeStrategies;\n\n/**\n * Options with restrictions\n */\nif (false) {\n strats.el = strats.propsData = function (parent, child, vm, key) {\n if (!vm) {\n warn(\n \"option \\\"\" + key + \"\\\" can only be used during instance \" +\n 'creation with the `new` keyword.'\n );\n }\n return defaultStrat(parent, child)\n };\n}\n\n/**\n * Helper that recursively merges two data objects together.\n */\nfunction mergeData (to, from) {\n if (!from) { return to }\n var key, toVal, fromVal;\n var keys = Object.keys(from);\n for (var i = 0; i < keys.length; i++) {\n key = keys[i];\n toVal = to[key];\n fromVal = from[key];\n if (!hasOwn(to, key)) {\n set(to, key, fromVal);\n } else if (isPlainObject(toVal) && isPlainObject(fromVal)) {\n mergeData(toVal, fromVal);\n }\n }\n return to\n}\n\n/**\n * Data\n */\nfunction mergeDataOrFn (\n parentVal,\n childVal,\n vm\n) {\n if (!vm) {\n // in a Vue.extend merge, both should be functions\n if (!childVal) {\n return parentVal\n }\n if (!parentVal) {\n return childVal\n }\n // when parentVal & childVal are both present,\n // we need to return a function that returns the\n // merged result of both functions... no need to\n // check if parentVal is a function here because\n // it has to be a function to pass previous merges.\n return function mergedDataFn () {\n return mergeData(\n typeof childVal === 'function' ? childVal.call(this, this) : childVal,\n typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal\n )\n }\n } else {\n return function mergedInstanceDataFn () {\n // instance merge\n var instanceData = typeof childVal === 'function'\n ? childVal.call(vm, vm)\n : childVal;\n var defaultData = typeof parentVal === 'function'\n ? parentVal.call(vm, vm)\n : parentVal;\n if (instanceData) {\n return mergeData(instanceData, defaultData)\n } else {\n return defaultData\n }\n }\n }\n}\n\nstrats.data = function (\n parentVal,\n childVal,\n vm\n) {\n if (!vm) {\n if (childVal && typeof childVal !== 'function') {\n \"production\" !== 'production' && warn(\n 'The \"data\" option should be a function ' +\n 'that returns a per-instance value in component ' +\n 'definitions.',\n vm\n );\n\n return parentVal\n }\n return mergeDataOrFn(parentVal, childVal)\n }\n\n return mergeDataOrFn(parentVal, childVal, vm)\n};\n\n/**\n * Hooks and props are merged as arrays.\n */\nfunction mergeHook (\n parentVal,\n childVal\n) {\n return childVal\n ? parentVal\n ? parentVal.concat(childVal)\n : Array.isArray(childVal)\n ? childVal\n : [childVal]\n : parentVal\n}\n\nLIFECYCLE_HOOKS.forEach(function (hook) {\n strats[hook] = mergeHook;\n});\n\n/**\n * Assets\n *\n * When a vm is present (instance creation), we need to do\n * a three-way merge between constructor options, instance\n * options and parent options.\n */\nfunction mergeAssets (\n parentVal,\n childVal,\n vm,\n key\n) {\n var res = Object.create(parentVal || null);\n if (childVal) {\n \"production\" !== 'production' && assertObjectType(key, childVal, vm);\n return extend(res, childVal)\n } else {\n return res\n }\n}\n\nASSET_TYPES.forEach(function (type) {\n strats[type + 's'] = mergeAssets;\n});\n\n/**\n * Watchers.\n *\n * Watchers hashes should not overwrite one\n * another, so we merge them as arrays.\n */\nstrats.watch = function (\n parentVal,\n childVal,\n vm,\n key\n) {\n // work around Firefox's Object.prototype.watch...\n if (parentVal === nativeWatch) { parentVal = undefined; }\n if (childVal === nativeWatch) { childVal = undefined; }\n /* istanbul ignore if */\n if (!childVal) { return Object.create(parentVal || null) }\n if (false) {\n assertObjectType(key, childVal, vm);\n }\n if (!parentVal) { return childVal }\n var ret = {};\n extend(ret, parentVal);\n for (var key$1 in childVal) {\n var parent = ret[key$1];\n var child = childVal[key$1];\n if (parent && !Array.isArray(parent)) {\n parent = [parent];\n }\n ret[key$1] = parent\n ? parent.concat(child)\n : Array.isArray(child) ? child : [child];\n }\n return ret\n};\n\n/**\n * Other object hashes.\n */\nstrats.props =\nstrats.methods =\nstrats.inject =\nstrats.computed = function (\n parentVal,\n childVal,\n vm,\n key\n) {\n if (childVal && \"production\" !== 'production') {\n assertObjectType(key, childVal, vm);\n }\n if (!parentVal) { return childVal }\n var ret = Object.create(null);\n extend(ret, parentVal);\n if (childVal) { extend(ret, childVal); }\n return ret\n};\nstrats.provide = mergeDataOrFn;\n\n/**\n * Default strategy.\n */\nvar defaultStrat = function (parentVal, childVal) {\n return childVal === undefined\n ? parentVal\n : childVal\n};\n\n/**\n * Validate component names\n */\nfunction checkComponents (options) {\n for (var key in options.components) {\n validateComponentName(key);\n }\n}\n\nfunction validateComponentName (name) {\n if (!/^[a-zA-Z][\\w-]*$/.test(name)) {\n warn(\n 'Invalid component name: \"' + name + '\". Component names ' +\n 'can only contain alphanumeric characters and the hyphen, ' +\n 'and must start with a letter.'\n );\n }\n if (isBuiltInTag(name) || config.isReservedTag(name)) {\n warn(\n 'Do not use built-in or reserved HTML elements as component ' +\n 'id: ' + name\n );\n }\n}\n\n/**\n * Ensure all props option syntax are normalized into the\n * Object-based format.\n */\nfunction normalizeProps (options, vm) {\n var props = options.props;\n if (!props) { return }\n var res = {};\n var i, val, name;\n if (Array.isArray(props)) {\n i = props.length;\n while (i--) {\n val = props[i];\n if (typeof val === 'string') {\n name = camelize(val);\n res[name] = { type: null };\n } else if (false) {\n warn('props must be strings when using array syntax.');\n }\n }\n } else if (isPlainObject(props)) {\n for (var key in props) {\n val = props[key];\n name = camelize(key);\n res[name] = isPlainObject(val)\n ? val\n : { type: val };\n }\n } else if (false) {\n warn(\n \"Invalid value for option \\\"props\\\": expected an Array or an Object, \" +\n \"but got \" + (toRawType(props)) + \".\",\n vm\n );\n }\n options.props = res;\n}\n\n/**\n * Normalize all injections into Object-based format\n */\nfunction normalizeInject (options, vm) {\n var inject = options.inject;\n if (!inject) { return }\n var normalized = options.inject = {};\n if (Array.isArray(inject)) {\n for (var i = 0; i < inject.length; i++) {\n normalized[inject[i]] = { from: inject[i] };\n }\n } else if (isPlainObject(inject)) {\n for (var key in inject) {\n var val = inject[key];\n normalized[key] = isPlainObject(val)\n ? extend({ from: key }, val)\n : { from: val };\n }\n } else if (false) {\n warn(\n \"Invalid value for option \\\"inject\\\": expected an Array or an Object, \" +\n \"but got \" + (toRawType(inject)) + \".\",\n vm\n );\n }\n}\n\n/**\n * Normalize raw function directives into object format.\n */\nfunction normalizeDirectives (options) {\n var dirs = options.directives;\n if (dirs) {\n for (var key in dirs) {\n var def = dirs[key];\n if (typeof def === 'function') {\n dirs[key] = { bind: def, update: def };\n }\n }\n }\n}\n\nfunction assertObjectType (name, value, vm) {\n if (!isPlainObject(value)) {\n warn(\n \"Invalid value for option \\\"\" + name + \"\\\": expected an Object, \" +\n \"but got \" + (toRawType(value)) + \".\",\n vm\n );\n }\n}\n\n/**\n * Merge two option objects into a new one.\n * Core utility used in both instantiation and inheritance.\n */\nfunction mergeOptions (\n parent,\n child,\n vm\n) {\n if (false) {\n checkComponents(child);\n }\n\n if (typeof child === 'function') {\n child = child.options;\n }\n\n normalizeProps(child, vm);\n normalizeInject(child, vm);\n normalizeDirectives(child);\n var extendsFrom = child.extends;\n if (extendsFrom) {\n parent = mergeOptions(parent, extendsFrom, vm);\n }\n if (child.mixins) {\n for (var i = 0, l = child.mixins.length; i < l; i++) {\n parent = mergeOptions(parent, child.mixins[i], vm);\n }\n }\n var options = {};\n var key;\n for (key in parent) {\n mergeField(key);\n }\n for (key in child) {\n if (!hasOwn(parent, key)) {\n mergeField(key);\n }\n }\n function mergeField (key) {\n var strat = strats[key] || defaultStrat;\n options[key] = strat(parent[key], child[key], vm, key);\n }\n return options\n}\n\n/**\n * Resolve an asset.\n * This function is used because child instances need access\n * to assets defined in its ancestor chain.\n */\nfunction resolveAsset (\n options,\n type,\n id,\n warnMissing\n) {\n /* istanbul ignore if */\n if (typeof id !== 'string') {\n return\n }\n var assets = options[type];\n // check local registration variations first\n if (hasOwn(assets, id)) { return assets[id] }\n var camelizedId = camelize(id);\n if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }\n var PascalCaseId = capitalize(camelizedId);\n if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }\n // fallback to prototype chain\n var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];\n if (false) {\n warn(\n 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,\n options\n );\n }\n return res\n}\n\n/* */\n\nfunction validateProp (\n key,\n propOptions,\n propsData,\n vm\n) {\n var prop = propOptions[key];\n var absent = !hasOwn(propsData, key);\n var value = propsData[key];\n // handle boolean props\n if (isType(Boolean, prop.type)) {\n if (absent && !hasOwn(prop, 'default')) {\n value = false;\n } else if (!isType(String, prop.type) && (value === '' || value === hyphenate(key))) {\n value = true;\n }\n }\n // check default value\n if (value === undefined) {\n value = getPropDefaultValue(vm, prop, key);\n // since the default value is a fresh copy,\n // make sure to observe it.\n var prevShouldConvert = observerState.shouldConvert;\n observerState.shouldConvert = true;\n observe(value);\n observerState.shouldConvert = prevShouldConvert;\n }\n if (\n false\n ) {\n assertProp(prop, key, value, vm, absent);\n }\n return value\n}\n\n/**\n * Get the default value of a prop.\n */\nfunction getPropDefaultValue (vm, prop, key) {\n // no default, return undefined\n if (!hasOwn(prop, 'default')) {\n return undefined\n }\n var def = prop.default;\n // warn against non-factory defaults for Object & Array\n if (false) {\n warn(\n 'Invalid default value for prop \"' + key + '\": ' +\n 'Props with type Object/Array must use a factory function ' +\n 'to return the default value.',\n vm\n );\n }\n // the raw prop value was also undefined from previous render,\n // return previous default value to avoid unnecessary watcher trigger\n if (vm && vm.$options.propsData &&\n vm.$options.propsData[key] === undefined &&\n vm._props[key] !== undefined\n ) {\n return vm._props[key]\n }\n // call factory function for non-Function types\n // a value is Function if its prototype is function even across different execution context\n return typeof def === 'function' && getType(prop.type) !== 'Function'\n ? def.call(vm)\n : def\n}\n\n/**\n * Assert whether a prop is valid.\n */\nfunction assertProp (\n prop,\n name,\n value,\n vm,\n absent\n) {\n if (prop.required && absent) {\n warn(\n 'Missing required prop: \"' + name + '\"',\n vm\n );\n return\n }\n if (value == null && !prop.required) {\n return\n }\n var type = prop.type;\n var valid = !type || type === true;\n var expectedTypes = [];\n if (type) {\n if (!Array.isArray(type)) {\n type = [type];\n }\n for (var i = 0; i < type.length && !valid; i++) {\n var assertedType = assertType(value, type[i]);\n expectedTypes.push(assertedType.expectedType || '');\n valid = assertedType.valid;\n }\n }\n if (!valid) {\n warn(\n \"Invalid prop: type check failed for prop \\\"\" + name + \"\\\".\" +\n \" Expected \" + (expectedTypes.map(capitalize).join(', ')) +\n \", got \" + (toRawType(value)) + \".\",\n vm\n );\n return\n }\n var validator = prop.validator;\n if (validator) {\n if (!validator(value)) {\n warn(\n 'Invalid prop: custom validator check failed for prop \"' + name + '\".',\n vm\n );\n }\n }\n}\n\nvar simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;\n\nfunction assertType (value, type) {\n var valid;\n var expectedType = getType(type);\n if (simpleCheckRE.test(expectedType)) {\n var t = typeof value;\n valid = t === expectedType.toLowerCase();\n // for primitive wrapper objects\n if (!valid && t === 'object') {\n valid = value instanceof type;\n }\n } else if (expectedType === 'Object') {\n valid = isPlainObject(value);\n } else if (expectedType === 'Array') {\n valid = Array.isArray(value);\n } else {\n valid = value instanceof type;\n }\n return {\n valid: valid,\n expectedType: expectedType\n }\n}\n\n/**\n * Use function string name to check built-in types,\n * because a simple equality check will fail when running\n * across different vms / iframes.\n */\nfunction getType (fn) {\n var match = fn && fn.toString().match(/^\\s*function (\\w+)/);\n return match ? match[1] : ''\n}\n\nfunction isType (type, fn) {\n if (!Array.isArray(fn)) {\n return getType(fn) === getType(type)\n }\n for (var i = 0, len = fn.length; i < len; i++) {\n if (getType(fn[i]) === getType(type)) {\n return true\n }\n }\n /* istanbul ignore next */\n return false\n}\n\n/* */\n\nfunction handleError (err, vm, info) {\n if (vm) {\n var cur = vm;\n while ((cur = cur.$parent)) {\n var hooks = cur.$options.errorCaptured;\n if (hooks) {\n for (var i = 0; i < hooks.length; i++) {\n try {\n var capture = hooks[i].call(cur, err, vm, info) === false;\n if (capture) { return }\n } catch (e) {\n globalHandleError(e, cur, 'errorCaptured hook');\n }\n }\n }\n }\n }\n globalHandleError(err, vm, info);\n}\n\nfunction globalHandleError (err, vm, info) {\n if (config.errorHandler) {\n try {\n return config.errorHandler.call(null, err, vm, info)\n } catch (e) {\n logError(e, null, 'config.errorHandler');\n }\n }\n logError(err, vm, info);\n}\n\nfunction logError (err, vm, info) {\n if (false) {\n warn((\"Error in \" + info + \": \\\"\" + (err.toString()) + \"\\\"\"), vm);\n }\n /* istanbul ignore else */\n if ((inBrowser || inWeex) && typeof console !== 'undefined') {\n console.error(err);\n } else {\n throw err\n }\n}\n\n/* */\n/* globals MessageChannel */\n\nvar callbacks = [];\nvar pending = false;\n\nfunction flushCallbacks () {\n pending = false;\n var copies = callbacks.slice(0);\n callbacks.length = 0;\n for (var i = 0; i < copies.length; i++) {\n copies[i]();\n }\n}\n\n// Here we have async deferring wrappers using both micro and macro tasks.\n// In < 2.4 we used micro tasks everywhere, but there are some scenarios where\n// micro tasks have too high a priority and fires in between supposedly\n// sequential events (e.g. #4521, #6690) or even between bubbling of the same\n// event (#6566). However, using macro tasks everywhere also has subtle problems\n// when state is changed right before repaint (e.g. #6813, out-in transitions).\n// Here we use micro task by default, but expose a way to force macro task when\n// needed (e.g. in event handlers attached by v-on).\nvar microTimerFunc;\nvar macroTimerFunc;\nvar useMacroTask = false;\n\n// Determine (macro) Task defer implementation.\n// Technically setImmediate should be the ideal choice, but it's only available\n// in IE. The only polyfill that consistently queues the callback after all DOM\n// events triggered in the same loop is by using MessageChannel.\n/* istanbul ignore if */\nif (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {\n macroTimerFunc = function () {\n setImmediate(flushCallbacks);\n };\n} else if (typeof MessageChannel !== 'undefined' && (\n isNative(MessageChannel) ||\n // PhantomJS\n MessageChannel.toString() === '[object MessageChannelConstructor]'\n)) {\n var channel = new MessageChannel();\n var port = channel.port2;\n channel.port1.onmessage = flushCallbacks;\n macroTimerFunc = function () {\n port.postMessage(1);\n };\n} else {\n /* istanbul ignore next */\n macroTimerFunc = function () {\n setTimeout(flushCallbacks, 0);\n };\n}\n\n// Determine MicroTask defer implementation.\n/* istanbul ignore next, $flow-disable-line */\nif (typeof Promise !== 'undefined' && isNative(Promise)) {\n var p = Promise.resolve();\n microTimerFunc = function () {\n p.then(flushCallbacks);\n // in problematic UIWebViews, Promise.then doesn't completely break, but\n // it can get stuck in a weird state where callbacks are pushed into the\n // microtask queue but the queue isn't being flushed, until the browser\n // needs to do some other work, e.g. handle a timer. Therefore we can\n // \"force\" the microtask queue to be flushed by adding an empty timer.\n if (isIOS) { setTimeout(noop); }\n };\n} else {\n // fallback to macro\n microTimerFunc = macroTimerFunc;\n}\n\n/**\n * Wrap a function so that if any code inside triggers state change,\n * the changes are queued using a Task instead of a MicroTask.\n */\nfunction withMacroTask (fn) {\n return fn._withTask || (fn._withTask = function () {\n useMacroTask = true;\n var res = fn.apply(null, arguments);\n useMacroTask = false;\n return res\n })\n}\n\nfunction nextTick (cb, ctx) {\n var _resolve;\n callbacks.push(function () {\n if (cb) {\n try {\n cb.call(ctx);\n } catch (e) {\n handleError(e, ctx, 'nextTick');\n }\n } else if (_resolve) {\n _resolve(ctx);\n }\n });\n if (!pending) {\n pending = true;\n if (useMacroTask) {\n macroTimerFunc();\n } else {\n microTimerFunc();\n }\n }\n // $flow-disable-line\n if (!cb && typeof Promise !== 'undefined') {\n return new Promise(function (resolve) {\n _resolve = resolve;\n })\n }\n}\n\n/* */\n\nvar mark;\nvar measure;\n\nif (false) {\n var perf = inBrowser && window.performance;\n /* istanbul ignore if */\n if (\n perf &&\n perf.mark &&\n perf.measure &&\n perf.clearMarks &&\n perf.clearMeasures\n ) {\n mark = function (tag) { return perf.mark(tag); };\n measure = function (name, startTag, endTag) {\n perf.measure(name, startTag, endTag);\n perf.clearMarks(startTag);\n perf.clearMarks(endTag);\n perf.clearMeasures(name);\n };\n }\n}\n\n/* not type checking this file because flow doesn't play well with Proxy */\n\nvar initProxy;\n\nif (false) {\n var allowedGlobals = makeMap(\n 'Infinity,undefined,NaN,isFinite,isNaN,' +\n 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +\n 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +\n 'require' // for Webpack/Browserify\n );\n\n var warnNonPresent = function (target, key) {\n warn(\n \"Property or method \\\"\" + key + \"\\\" is not defined on the instance but \" +\n 'referenced during render. Make sure that this property is reactive, ' +\n 'either in the data option, or for class-based components, by ' +\n 'initializing the property. ' +\n 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',\n target\n );\n };\n\n var hasProxy =\n typeof Proxy !== 'undefined' &&\n Proxy.toString().match(/native code/);\n\n if (hasProxy) {\n var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');\n config.keyCodes = new Proxy(config.keyCodes, {\n set: function set (target, key, value) {\n if (isBuiltInModifier(key)) {\n warn((\"Avoid overwriting built-in modifier in config.keyCodes: .\" + key));\n return false\n } else {\n target[key] = value;\n return true\n }\n }\n });\n }\n\n var hasHandler = {\n has: function has (target, key) {\n var has = key in target;\n var isAllowed = allowedGlobals(key) || key.charAt(0) === '_';\n if (!has && !isAllowed) {\n warnNonPresent(target, key);\n }\n return has || !isAllowed\n }\n };\n\n var getHandler = {\n get: function get (target, key) {\n if (typeof key === 'string' && !(key in target)) {\n warnNonPresent(target, key);\n }\n return target[key]\n }\n };\n\n initProxy = function initProxy (vm) {\n if (hasProxy) {\n // determine which proxy handler to use\n var options = vm.$options;\n var handlers = options.render && options.render._withStripped\n ? getHandler\n : hasHandler;\n vm._renderProxy = new Proxy(vm, handlers);\n } else {\n vm._renderProxy = vm;\n }\n };\n}\n\n/* */\n\nvar seenObjects = new _Set();\n\n/**\n * Recursively traverse an object to evoke all converted\n * getters, so that every nested property inside the object\n * is collected as a \"deep\" dependency.\n */\nfunction traverse (val) {\n _traverse(val, seenObjects);\n seenObjects.clear();\n}\n\nfunction _traverse (val, seen) {\n var i, keys;\n var isA = Array.isArray(val);\n if ((!isA && !isObject(val)) || Object.isFrozen(val)) {\n return\n }\n if (val.__ob__) {\n var depId = val.__ob__.dep.id;\n if (seen.has(depId)) {\n return\n }\n seen.add(depId);\n }\n if (isA) {\n i = val.length;\n while (i--) { _traverse(val[i], seen); }\n } else {\n keys = Object.keys(val);\n i = keys.length;\n while (i--) { _traverse(val[keys[i]], seen); }\n }\n}\n\n/* */\n\nvar normalizeEvent = cached(function (name) {\n var passive = name.charAt(0) === '&';\n name = passive ? name.slice(1) : name;\n var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first\n name = once$$1 ? name.slice(1) : name;\n var capture = name.charAt(0) === '!';\n name = capture ? name.slice(1) : name;\n return {\n name: name,\n once: once$$1,\n capture: capture,\n passive: passive\n }\n});\n\nfunction createFnInvoker (fns) {\n function invoker () {\n var arguments$1 = arguments;\n\n var fns = invoker.fns;\n if (Array.isArray(fns)) {\n var cloned = fns.slice();\n for (var i = 0; i < cloned.length; i++) {\n cloned[i].apply(null, arguments$1);\n }\n } else {\n // return handler return value for single handlers\n return fns.apply(null, arguments)\n }\n }\n invoker.fns = fns;\n return invoker\n}\n\nfunction updateListeners (\n on,\n oldOn,\n add,\n remove$$1,\n vm\n) {\n var name, def, cur, old, event;\n for (name in on) {\n def = cur = on[name];\n old = oldOn[name];\n event = normalizeEvent(name);\n /* istanbul ignore if */\n if (isUndef(cur)) {\n \"production\" !== 'production' && warn(\n \"Invalid handler for event \\\"\" + (event.name) + \"\\\": got \" + String(cur),\n vm\n );\n } else if (isUndef(old)) {\n if (isUndef(cur.fns)) {\n cur = on[name] = createFnInvoker(cur);\n }\n add(event.name, cur, event.once, event.capture, event.passive, event.params);\n } else if (cur !== old) {\n old.fns = cur;\n on[name] = old;\n }\n }\n for (name in oldOn) {\n if (isUndef(on[name])) {\n event = normalizeEvent(name);\n remove$$1(event.name, oldOn[name], event.capture);\n }\n }\n}\n\n/* */\n\nfunction mergeVNodeHook (def, hookKey, hook) {\n if (def instanceof VNode) {\n def = def.data.hook || (def.data.hook = {});\n }\n var invoker;\n var oldHook = def[hookKey];\n\n function wrappedHook () {\n hook.apply(this, arguments);\n // important: remove merged hook to ensure it's called only once\n // and prevent memory leak\n remove(invoker.fns, wrappedHook);\n }\n\n if (isUndef(oldHook)) {\n // no existing hook\n invoker = createFnInvoker([wrappedHook]);\n } else {\n /* istanbul ignore if */\n if (isDef(oldHook.fns) && isTrue(oldHook.merged)) {\n // already a merged invoker\n invoker = oldHook;\n invoker.fns.push(wrappedHook);\n } else {\n // existing plain hook\n invoker = createFnInvoker([oldHook, wrappedHook]);\n }\n }\n\n invoker.merged = true;\n def[hookKey] = invoker;\n}\n\n/* */\n\nfunction extractPropsFromVNodeData (\n data,\n Ctor,\n tag\n) {\n // we are only extracting raw values here.\n // validation and default values are handled in the child\n // component itself.\n var propOptions = Ctor.options.props;\n if (isUndef(propOptions)) {\n return\n }\n var res = {};\n var attrs = data.attrs;\n var props = data.props;\n if (isDef(attrs) || isDef(props)) {\n for (var key in propOptions) {\n var altKey = hyphenate(key);\n if (false) {\n var keyInLowerCase = key.toLowerCase();\n if (\n key !== keyInLowerCase &&\n attrs && hasOwn(attrs, keyInLowerCase)\n ) {\n tip(\n \"Prop \\\"\" + keyInLowerCase + \"\\\" is passed to component \" +\n (formatComponentName(tag || Ctor)) + \", but the declared prop name is\" +\n \" \\\"\" + key + \"\\\". \" +\n \"Note that HTML attributes are case-insensitive and camelCased \" +\n \"props need to use their kebab-case equivalents when using in-DOM \" +\n \"templates. You should probably use \\\"\" + altKey + \"\\\" instead of \\\"\" + key + \"\\\".\"\n );\n }\n }\n checkProp(res, props, key, altKey, true) ||\n checkProp(res, attrs, key, altKey, false);\n }\n }\n return res\n}\n\nfunction checkProp (\n res,\n hash,\n key,\n altKey,\n preserve\n) {\n if (isDef(hash)) {\n if (hasOwn(hash, key)) {\n res[key] = hash[key];\n if (!preserve) {\n delete hash[key];\n }\n return true\n } else if (hasOwn(hash, altKey)) {\n res[key] = hash[altKey];\n if (!preserve) {\n delete hash[altKey];\n }\n return true\n }\n }\n return false\n}\n\n/* */\n\n// The template compiler attempts to minimize the need for normalization by\n// statically analyzing the template at compile time.\n//\n// For plain HTML markup, normalization can be completely skipped because the\n// generated render function is guaranteed to return Array. There are\n// two cases where extra normalization is needed:\n\n// 1. When the children contains components - because a functional component\n// may return an Array instead of a single root. In this case, just a simple\n// normalization is needed - if any child is an Array, we flatten the whole\n// thing with Array.prototype.concat. It is guaranteed to be only 1-level deep\n// because functional components already normalize their own children.\nfunction simpleNormalizeChildren (children) {\n for (var i = 0; i < children.length; i++) {\n if (Array.isArray(children[i])) {\n return Array.prototype.concat.apply([], children)\n }\n }\n return children\n}\n\n// 2. When the children contains constructs that always generated nested Arrays,\n// e.g.