mirror of
https://gitee.com/vuejs/vue.git
synced 2024-12-02 12:07:39 +08:00
7 lines
46 KiB
JavaScript
7 lines
46 KiB
JavaScript
/*!
|
|
* Vue.js v2.0.4
|
|
* (c) 2014-2016 Evan You
|
|
* Released under the MIT License.
|
|
*/
|
|
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Vue=e()}(this,function(){"use strict";function t(t){return null==t?"":"object"==typeof t?JSON.stringify(t,null,2):String(t)}function e(t){var e=parseFloat(t,10);return e||0===e?e:t}function n(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}function r(t,e){if(t.length){var n=t.indexOf(e);if(n>-1)return t.splice(n,1)}}function i(t,e){return nn.call(t,e)}function o(t){return"string"==typeof t||"number"==typeof t}function a(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}function s(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function c(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function u(t,e){for(var n in e)t[n]=e[n];return t}function l(t){return null!==t&&"object"==typeof t}function f(t){return un.call(t)===ln}function d(t){for(var e={},n=0;n<t.length;n++)t[n]&&u(e,t[n]);return e}function p(){}function v(t){return t.reduce(function(t,e){return t.concat(e.staticKeys||[])},[]).join(",")}function h(t,e){return t==e||!(!l(t)||!l(e))&&JSON.stringify(t)===JSON.stringify(e)}function m(t,e){for(var n=0;n<t.length;n++)if(h(t[n],e))return n;return-1}function _(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function y(t,e,n,r){Object.defineProperty(t,e,{value:n,enumerable:!!r,writable:!0,configurable:!0})}function g(t){if(!pn.test(t)){var e=t.split(".");return function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}function b(t){return/native code/.test(t.toString())}function C(t){kn.target&&xn.push(kn.target),kn.target=t}function w(){kn.target=xn.pop()}function $(){On.length=0,Sn={},jn=Tn=!1}function A(){for(Tn=!0,On.sort(function(t,e){return t.id-e.id}),En=0;En<On.length;En++){var t=On[En],e=t.id;Sn[e]=null,t.run()}wn&&dn.devtools&&wn.emit("flush"),$()}function k(t){var e=t.id;if(null==Sn[e]){if(Sn[e]=!0,Tn){for(var n=On.length-1;n>=0&&On[n].id>t.id;)n--;On.splice(Math.max(n,En)+1,0,t)}else On.push(t);jn||(jn=!0,$n(A))}}function x(t){Nn.clear(),O(t,Nn)}function O(t,e){var n,r,i=Array.isArray(t);if((i||l(t))&&Object.isExtensible(t)){if(t.__ob__){var o=t.__ob__.dep.id;if(e.has(o))return;e.add(o)}if(i)for(n=t.length;n--;)O(t[n],e);else for(r=Object.keys(t),n=r.length;n--;)O(t[r[n]],e)}}function S(t,e){t.__proto__=e}function j(t,e,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];y(t,o,e[o])}}function T(t){if(l(t)){var e;return i(t,"__ob__")&&t.__ob__ instanceof Un?e=t.__ob__:Bn.shouldConvert&&!dn._isServer&&(Array.isArray(t)||f(t))&&Object.isExtensible(t)&&!t._isVue&&(e=new Un(t)),e}}function E(t,e,n,r){var i=new kn,o=Object.getOwnPropertyDescriptor(t,e);if(!o||o.configurable!==!1){var a=o&&o.get,s=o&&o.set,c=T(n);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=a?a.call(t):n;return kn.target&&(i.depend(),c&&c.dep.depend(),Array.isArray(e)&&N(e)),e},set:function(e){var r=a?a.call(t):n;e!==r&&(s?s.call(t,e):n=e,c=T(e),i.notify())}})}}function D(t,e,n){if(Array.isArray(t))return t.length=Math.max(t.length,e),t.splice(e,1,n),n;if(i(t,e))return void(t[e]=n);var r=t.__ob__;if(!(t._isVue||r&&r.vmCount))return r?(E(r.value,e,n),r.dep.notify(),n):void(t[e]=n)}function L(t,e){var n=t.__ob__;t._isVue||n&&n.vmCount||i(t,e)&&(delete t[e],n&&n.dep.notify())}function N(t){for(var e=void 0,n=0,r=t.length;n<r;n++)e=t[n],e&&e.__ob__&&e.__ob__.dep.depend(),Array.isArray(e)&&N(e)}function P(t){t._watchers=[],M(t),I(t),B(t),R(t),V(t)}function M(t){var e=t.$options.props;if(e){var n=t.$options.propsData||{},r=t.$options._propKeys=Object.keys(e),i=!t.$parent;Bn.shouldConvert=i;for(var o=function(i){var o=r[i];E(t,o,Pt(o,e,n,t))},a=0;a<r.length;a++)o(a);Bn.shouldConvert=!0}}function I(t){var e=t.$options.data;e=t._data="function"==typeof e?e.call(t):e||{},f(e)||(e={});for(var n=Object.keys(e),r=t.$options.props,o=n.length;o--;)r&&i(r,n[o])||z(t,n[o]);T(e),e.__ob__&&e.__ob__.vmCount++}function B(t){var e=t.$options.computed;if(e)for(var n in e){var r=e[n];"function"==typeof r?(Rn.get=U(r,t),Rn.set=p):(Rn.get=r.get?r.cache!==!1?U(r.get,t):s(r.get,t):p,Rn.set=r.set?s(r.set,t):p),Object.defineProperty(t,n,Rn)}}function U(t,e){var n=new Ln(e,t,p,{lazy:!0});return function(){return n.dirty&&n.evaluate(),kn.target&&n.depend(),n.value}}function R(t){var e=t.$options.methods;if(e)for(var n in e)t[n]=null==e[n]?p:s(e[n],t)}function V(t){var e=t.$options.watch;if(e)for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)F(t,n,r[i]);else F(t,n,r)}}function F(t,e,n){var r;f(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=t[n]),t.$watch(e,n,r)}function H(t){var e={};e.get=function(){return this._data},Object.defineProperty(t.prototype,"$data",e),t.prototype.$set=D,t.prototype.$delete=L,t.prototype.$watch=function(t,e,n){var r=this;n=n||{},n.user=!0;var i=new Ln(r,t,e,n);return n.immediate&&e.call(r,i.value),function(){i.teardown()}}}function z(t,e){_(e)||Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){return t._data[e]},set:function(n){t._data[e]=n}})}function q(t){var e=new Vn(t.tag,t.data,t.children,t.text,t.elm,t.ns,t.context,t.componentOptions);return e.isStatic=t.isStatic,e.key=t.key,e.isCloned=!0,e}function K(t){for(var e=new Array(t.length),n=0;n<t.length;n++)e[n]=q(t[n]);return e}function W(t,e,n,r){r+=e;var i=t.__injected||(t.__injected={});if(!i[r]){i[r]=!0;var o=t[e];o?t[e]=function(){o.apply(this,arguments),n.apply(this,arguments)}:t[e]=n}}function J(t,e,n,r,i){var o,a,s,c,u,l;for(o in t)if(a=t[o],s=e[o],a)if(s){if(a!==s)if(Array.isArray(s)){s.length=a.length;for(var f=0;f<s.length;f++)s[f]=a[f];t[o]=s}else s.fn=a,t[o]=s}else l="!"===o.charAt(0),u=l?o.slice(1):o,Array.isArray(a)?n(u,a.invoker=G(a),l):(a.invoker||(c=a,a=t[o]={},a.fn=c,a.invoker=Z(a)),n(u,a.invoker,l));else;for(o in e)t[o]||(u="!"===o.charAt(0)?o.slice(1):o,r(u,e[o].invoker))}function G(t){return function(e){for(var n=arguments,r=1===arguments.length,i=0;i<t.length;i++)r?t[i](e):t[i].apply(null,n)}}function Z(t){return function(e){var n=1===arguments.length;n?t.fn(e):t.fn.apply(null,arguments)}}function Q(t,e,n){if(o(t))return[X(t)];if(Array.isArray(t)){for(var r=[],i=0,a=t.length;i<a;i++){var s=t[i],c=r[r.length-1];Array.isArray(s)?r.push.apply(r,Q(s,e,(n||"")+"_"+i)):o(s)?c&&c.text?c.text+=String(s):""!==s&&r.push(X(s)):s instanceof Vn&&(s.text&&c&&c.text?c.text+=s.text:(e&&Y(s,e),s.tag&&null==s.key&&null!=n&&(s.key="__vlist"+n+"_"+i+"__"),r.push(s)))}return r}}function X(t){return new Vn(void 0,void 0,void 0,String(t))}function Y(t,e){if(t.tag&&!t.ns&&(t.ns=e,t.children))for(var n=0,r=t.children.length;n<r;n++)Y(t.children[n],e)}function tt(t){return t&&t.filter(function(t){return t&&t.componentOptions})[0]}function et(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}function nt(t){t.prototype._mount=function(t,e){var n=this;return n.$el=t,n.$options.render||(n.$options.render=Fn),rt(n,"beforeMount"),n._watcher=new Ln(n,function(){n._update(n._render(),e)},p),e=!1,null==n.$vnode&&(n._isMounted=!0,rt(n,"mounted")),n},t.prototype._update=function(t,e){var n=this;n._isMounted&&rt(n,"beforeUpdate");var r=n.$el,i=Hn;Hn=n;var o=n._vnode;n._vnode=t,o?n.$el=n.__patch__(o,t):n.$el=n.__patch__(n.$el,t,e),Hn=i,r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el),n._isMounted&&rt(n,"updated")},t.prototype._updateFromParent=function(t,e,n,r){var i=this,o=!(!i.$options._renderChildren&&!r);if(i.$options._parentVnode=n,i.$options._renderChildren=r,t&&i.$options.props){Bn.shouldConvert=!1;for(var a=i.$options._propKeys||[],s=0;s<a.length;s++){var c=a[s];i[c]=Pt(c,i.$options.props,t,i)}Bn.shouldConvert=!0}if(e){var u=i.$options._parentListeners;i.$options._parentListeners=e,i._updateListeners(e,u)}o&&(i.$slots=bt(r,i._renderContext),i.$forceUpdate())},t.prototype.$forceUpdate=function(){var t=this;t._watcher&&t._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){rt(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||r(e.$children,t),t._watcher&&t._watcher.teardown();for(var n=t._watchers.length;n--;)t._watchers[n].teardown();t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,rt(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null),t.__patch__(t._vnode,null)}}}function rt(t,e){var n=t.$options[e];if(n)for(var r=0,i=n.length;r<i;r++)n[r].call(t);t.$emit("hook:"+e)}function it(t,e,n,r,i){if(t&&(l(t)&&(t=xt.extend(t)),"function"==typeof t)){if(kt(t),!t.cid)if(t.resolved)t=t.resolved;else if(t=ft(t,function(){n.$forceUpdate()}),!t)return;e=e||{};var o=dt(e,t);if(t.options.functional)return ot(t,o,e,n,r);var a=e.on;e.on=e.nativeOn,t.options.abstract&&(e={}),vt(e);var s=t.options.name||i,c=new Vn("vue-component-"+t.cid+(s?"-"+s:""),e,void 0,void 0,void 0,void 0,n,{Ctor:t,propsData:o,listeners:a,tag:i,children:r});return c}}function ot(t,e,n,r,i){var o={},a=t.options.props;if(a)for(var c in a)o[c]=Pt(c,a,e);var u=t.options.render.call(null,s(mt,{_self:Object.create(r)}),{props:o,data:n,parent:r,children:Q(i),slots:function(){return bt(i,r)}});return u instanceof Vn&&(u.functionalContext=r,n.slot&&((u.data||(u.data={})).slot=n.slot)),u}function at(t,e){var n=t.componentOptions,r={_isComponent:!0,parent:e,propsData:n.propsData,_componentTag:n.tag,_parentVnode:t,_parentListeners:n.listeners,_renderChildren:n.children},i=t.data.inlineTemplate;return i&&(r.render=i.render,r.staticRenderFns=i.staticRenderFns),new n.Ctor(r)}function st(t,e){if(!t.child||t.child._isDestroyed){var n=t.child=at(t,Hn);n.$mount(e?t.elm:void 0,e)}}function ct(t,e){var n=e.componentOptions,r=e.child=t.child;r._updateFromParent(n.propsData,n.listeners,e,n.children)}function ut(t){t.child._isMounted||(t.child._isMounted=!0,rt(t.child,"mounted")),t.data.keepAlive&&(t.child._inactive=!1,rt(t.child,"activated"))}function lt(t){t.child._isDestroyed||(t.data.keepAlive?(t.child._inactive=!0,rt(t.child,"deactivated")):t.child.$destroy())}function ft(t,e){if(!t.requested){t.requested=!0;var n=t.pendingCallbacks=[e],r=!0,i=function(e){if(l(e)&&(e=xt.extend(e)),t.resolved=e,!r)for(var i=0,o=n.length;i<o;i++)n[i](e)},o=function(t){},a=t(i,o);return a&&"function"==typeof a.then&&!t.resolved&&a.then(i,o),r=!1,t.resolved}t.pendingCallbacks.push(e)}function dt(t,e){var n=e.options.props;if(n){var r={},i=t.attrs,o=t.props,a=t.domProps;if(i||o||a)for(var s in n){var c=cn(s);pt(r,o,s,c,!0)||pt(r,i,s,c)||pt(r,a,s,c)}return r}}function pt(t,e,n,r,o){if(e){if(i(e,n))return t[n]=e[n],o||delete e[n],!0;if(i(e,r))return t[n]=e[r],o||delete e[r],!0}return!1}function vt(t){t.hook||(t.hook={});for(var e=0;e<qn.length;e++){var n=qn[e],r=t.hook[n],i=zn[n];t.hook[n]=r?ht(i,r):i}}function ht(t,e){return function(n,r){t(n,r),e(n,r)}}function mt(t,e,n){return e&&(Array.isArray(e)||"object"!=typeof e)&&(n=e,e=void 0),_t(this._self,t,e,n)}function _t(t,e,n,r){if(!n||!n.__ob__){if(!e)return Fn();if("string"==typeof e){var i,o=dn.getTagNamespace(e);return dn.isReservedTag(e)?new Vn(e,n,Q(r,o),void 0,void 0,o,t):(i=Nt(t.$options,"components",e))?it(i,n,t,r,e):new Vn(e,n,Q(r,o),void 0,void 0,o,t)}return it(e,n,t,r)}}function yt(t){t.$vnode=null,t._vnode=null,t._staticTrees=null,t._renderContext=t.$options._parentVnode&&t.$options._parentVnode.context,t.$slots=bt(t.$options._renderChildren,t._renderContext),t.$createElement=s(mt,t),t.$options.el&&t.$mount(t.$options.el)}function gt(n){function r(t,e,n){if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]&&"string"!=typeof t[r]&&i(t[r],e+"_"+r,n);else i(t,e,n)}function i(t,e,n){t.isStatic=!0,t.key=e,t.isOnce=n}n.prototype.$nextTick=function(t){$n(t,this)},n.prototype._render=function(){var t=this,e=t.$options,n=e.render,r=e.staticRenderFns,i=e._parentVnode;if(t._isMounted)for(var o in t.$slots)t.$slots[o]=K(t.$slots[o]);r&&!t._staticTrees&&(t._staticTrees=[]),t.$vnode=i;var a;try{a=n.call(t._renderProxy,t.$createElement)}catch(e){if(dn.errorHandler)dn.errorHandler.call(null,e,t);else{if(dn._isServer)throw e;setTimeout(function(){throw e},0)}a=t._vnode}return a instanceof Vn||(a=Fn()),a.parent=i,a},n.prototype._h=mt,n.prototype._s=t,n.prototype._n=e,n.prototype._e=Fn,n.prototype._q=h,n.prototype._i=m,n.prototype._m=function(t,e){var n=this._staticTrees[t];return n&&!e?Array.isArray(n)?K(n):q(n):(n=this._staticTrees[t]=this.$options.staticRenderFns[t].call(this._renderProxy),r(n,"__static__"+t,!1),n)},n.prototype._o=function(t,e,n){return r(t,"__once__"+e+(n?"_"+n:""),!0),t};var o=function(t){return t};n.prototype._f=function(t){return Nt(this.$options,"filters",t,!0)||o},n.prototype._l=function(t,e){var n,r,i,o,a;if(Array.isArray(t))for(n=new Array(t.length),r=0,i=t.length;r<i;r++)n[r]=e(t[r],r);else if("number"==typeof t)for(n=new Array(t),r=0;r<t;r++)n[r]=e(r+1,r);else if(l(t))for(o=Object.keys(t),n=new Array(o.length),r=0,i=o.length;r<i;r++)a=o[r],n[r]=e(t[a],a,r);return n},n.prototype._t=function(t,e){var n=this.$slots[t];return n||e},n.prototype._b=function(t,e,n){if(e)if(l(e)){Array.isArray(e)&&(e=d(e));for(var r in e)if("class"===r||"style"===r)t[r]=e[r];else{var i=n||dn.mustUseProp(r)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={});i[r]=e[r]}}else;return t},n.prototype._k=function(t){return dn.keyCodes[t]}}function bt(t,e){var n={};if(!t)return n;for(var r,i,o=Q(t)||[],a=[],s=0,c=o.length;s<c;s++)if(i=o[s],(i.context===e||i.functionalContext===e)&&i.data&&(r=i.data.slot)){var u=n[r]||(n[r]=[]);"template"===i.tag?u.push.apply(u,i.children):u.push(i)}else a.push(i);return a.length&&(1!==a.length||" "!==a[0].text&&!a[0].isComment)&&(n.default=a),n}function Ct(t){t._events=Object.create(null);var e=t.$options._parentListeners,n=s(t.$on,t),r=s(t.$off,t);t._updateListeners=function(e,i){J(e,i||{},n,r,t)},e&&t._updateListeners(e)}function wt(t){t.prototype.$on=function(t,e){var n=this;return(n._events[t]||(n._events[t]=[])).push(e),n},t.prototype.$once=function(t,e){function n(){r.$off(t,n),e.apply(r,arguments)}var r=this;return n.fn=e,r.$on(t,n),r},t.prototype.$off=function(t,e){var n=this;if(!arguments.length)return n._events=Object.create(null),n;var r=n._events[t];if(!r)return n;if(1===arguments.length)return n._events[t]=null,n;for(var i,o=r.length;o--;)if(i=r[o],i===e||i.fn===e){r.splice(o,1);break}return n},t.prototype.$emit=function(t){var e=this,n=e._events[t];if(n){n=n.length>1?c(n):n;for(var r=c(arguments,1),i=0,o=n.length;i<o;i++)n[i].apply(e,r)}return e}}function $t(t){t.prototype._init=function(t){var e=this;e._uid=Kn++,e._isVue=!0,t&&t._isComponent?At(e,t):e.$options=Lt(kt(e.constructor),t||{},e),e._renderProxy=e,e._self=e,et(e),Ct(e),rt(e,"beforeCreate"),P(e),rt(e,"created"),yt(e)}}function At(t,e){var n=t.$options=Object.create(t.constructor.options);n.parent=e.parent,n.propsData=e.propsData,n._parentVnode=e._parentVnode,n._parentListeners=e._parentListeners,n._renderChildren=e._renderChildren,n._componentTag=e._componentTag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}function kt(t){var e=t.options;if(t.super){var n=t.super.options,r=t.superOptions,i=t.extendOptions;n!==r&&(t.superOptions=n,i.render=e.render,i.staticRenderFns=e.staticRenderFns,e=t.options=Lt(n,i),e.name&&(e.components[e.name]=t))}return e}function xt(t){this._init(t)}function Ot(t,e){var n,r,o;for(n in e)r=t[n],o=e[n],i(t,n)?l(r)&&l(o)&&Ot(r,o):D(t,n,o);return t}function St(t,e){return e?t?t.concat(e):Array.isArray(e)?e:[e]:t}function jt(t,e){var n=Object.create(t||null);return e?u(n,e):n}function Tt(t){if(t.components){var e,n=t.components,r=t.components={};for(var i in n){var o=i.toLowerCase();en(o)||dn.isReservedTag(o)||(e=n[i],r[i]=f(e)?xt.extend(e):e)}}}function Et(t){var e=t.props;if(e){var n,r,i,o={};if(Array.isArray(e))for(n=e.length;n--;)r=e[n],"string"==typeof r&&(i=on(r),o[i]={type:null});else if(f(e))for(var a in e)r=e[a],i=on(a),o[i]=f(r)?r:{type:r};t.props=o}}function Dt(t){var e=t.directives;if(e)for(var n in e){var r=e[n];"function"==typeof r&&(e[n]={bind:r,update:r})}}function Lt(t,e,n){function r(r){var i=Gn[r]||Zn;l[r]=i(t[r],e[r],n,r)}Tt(e),Et(e),Dt(e);var o=e.extends;if(o&&(t="function"==typeof o?Lt(t,o.options,n):Lt(t,o,n)),e.mixins)for(var a=0,s=e.mixins.length;a<s;a++){var c=e.mixins[a];c.prototype instanceof xt&&(c=c.options),t=Lt(t,c,n)}var u,l={};for(u in t)r(u);for(u in e)i(t,u)||r(u);return l}function Nt(t,e,n,r){if("string"==typeof n){var i=t[e],o=i[n]||i[on(n)]||i[an(on(n))];return o}}function Pt(t,e,n,r){var o=e[t],a=!i(n,t),s=n[t];if(Bt(o.type)&&(a&&!i(o,"default")?s=!1:""!==s&&s!==cn(t)||(s=!0)),void 0===s){s=Mt(r,o,t);var c=Bn.shouldConvert;Bn.shouldConvert=!0,T(s),Bn.shouldConvert=c}return s}function Mt(t,e,n){if(i(e,"default")){var r=e.default;return l(r),"function"==typeof r&&e.type!==Function?r.call(t):r}}function It(t){var e=t&&t.toString().match(/^\s*function (\w+)/);return e&&e[1]}function Bt(t){if(!Array.isArray(t))return"Boolean"===It(t);for(var e=0,n=t.length;e<n;e++)if("Boolean"===It(t[e]))return!0;return!1}function Ut(t){t.use=function(t){if(!t.installed){var e=c(arguments,1);return e.unshift(this),"function"==typeof t.install?t.install.apply(t,e):t.apply(null,e),t.installed=!0,this}}}function Rt(t){t.mixin=function(e){t.options=Lt(t.options,e)}}function Vt(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=0===n.cid;if(r&&t._Ctor)return t._Ctor;var i=t.name||n.options.name,o=function(t){this._init(t)};return o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.cid=e++,o.options=Lt(n.options,t),o.super=n,o.extend=n.extend,dn._assetTypes.forEach(function(t){o[t]=n[t]}),i&&(o.options.components[i]=o),o.superOptions=n.options,o.extendOptions=t,r&&(t._Ctor=o),o}}function Ft(t){dn._assetTypes.forEach(function(e){t[e]=function(n,r){return r?("component"===e&&f(r)&&(r.name=r.name||n,r=t.extend(r)),"directive"===e&&"function"==typeof r&&(r={bind:r,update:r}),this.options[e+"s"][n]=r,r):this.options[e+"s"][n]}})}function Ht(t){var e={};e.get=function(){return dn},Object.defineProperty(t,"config",e),t.util=Qn,t.set=D,t.delete=L,t.nextTick=$n,t.options=Object.create(null),dn._assetTypes.forEach(function(e){t.options[e+"s"]=Object.create(null)}),u(t.options.components,Yn),Ut(t),Rt(t),Vt(t),Ft(t)}function zt(t){for(var e=t.data,n=t,r=t;r.child;)r=r.child._vnode,r.data&&(e=qt(r.data,e));for(;n=n.parent;)n.data&&(e=qt(e,n.data));return Kt(e)}function qt(t,e){return{staticClass:Wt(t.staticClass,e.staticClass),class:t.class?[t.class,e.class]:e.class}}function Kt(t){var e=t.class,n=t.staticClass;return n||e?Wt(n,Jt(e)):""}function Wt(t,e){return t?e?t+" "+e:t:e||""}function Jt(t){var e="";if(!t)return e;if("string"==typeof t)return t;if(Array.isArray(t)){for(var n,r=0,i=t.length;r<i;r++)t[r]&&(n=Jt(t[r]))&&(e+=n+" ");return e.slice(0,-1)}if(l(t)){for(var o in t)t[o]&&(e+=o+" ");return e.slice(0,-1)}return e}function Gt(t){return lr(t)?"svg":"math"===t?"math":void 0}function Zt(t){if(!hn)return!0;if(fr(t))return!1;if(t=t.toLowerCase(),null!=dr[t])return dr[t];var e=document.createElement(t);return t.indexOf("-")>-1?dr[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:dr[t]=/HTMLUnknownElement/.test(e.toString())}function Qt(t){if("string"==typeof t){if(t=document.querySelector(t),!t)return document.createElement("div")}return t}function Xt(t,e){var n=document.createElement(t);return"select"!==t?n:(e.data&&e.data.attrs&&"multiple"in e.data.attrs&&n.setAttribute("multiple","multiple"),n)}function Yt(t,e){return document.createElementNS(cr[t],e)}function te(t){return document.createTextNode(t)}function ee(t){return document.createComment(t)}function ne(t,e,n){t.insertBefore(e,n)}function re(t,e){t.removeChild(e)}function ie(t,e){t.appendChild(e)}function oe(t){return t.parentNode}function ae(t){return t.nextSibling}function se(t){return t.tagName}function ce(t,e){t.textContent=e}function ue(t){return t.childNodes}function le(t,e,n){t.setAttribute(e,n)}function fe(t,e){var n=t.data.ref;if(n){var i=t.context,o=t.child||t.elm,a=i.$refs;e?Array.isArray(a[n])?r(a[n],o):a[n]===o&&(a[n]=void 0):t.data.refInFor?Array.isArray(a[n])?a[n].push(o):a[n]=[o]:a[n]=o}}function de(t){return null==t}function pe(t){return null!=t}function ve(t,e){return t.key===e.key&&t.tag===e.tag&&t.isComment===e.isComment&&!t.data==!e.data}function he(t,e,n){var r,i,o={};for(r=e;r<=n;++r)i=t[r].key,pe(i)&&(o[i]=r);return o}function me(t){function e(t){return new Vn($.tagName(t).toLowerCase(),{},[],void 0,t)}function n(t,e){function n(){0===--n.listeners&&r(t)}return n.listeners=e,n}function r(t){var e=$.parentNode(t);e&&$.removeChild(e,t)}function i(t,e,n){var r,i=t.data;if(t.isRootInsert=!n,pe(i)&&(pe(r=i.hook)&&pe(r=r.init)&&r(t),pe(r=t.child)))return u(t,e),t.elm;var o=t.children,s=t.tag;return pe(s)?(t.elm=t.ns?$.createElementNS(t.ns,s):$.createElement(s,t),l(t),a(t,o,e),pe(i)&&c(t,e)):t.isComment?t.elm=$.createComment(t.text):t.elm=$.createTextNode(t.text),t.elm}function a(t,e,n){if(Array.isArray(e))for(var r=0;r<e.length;++r)$.appendChild(t.elm,i(e[r],n,!0));else o(t.text)&&$.appendChild(t.elm,$.createTextNode(t.text))}function s(t){for(;t.child;)t=t.child._vnode;return pe(t.tag)}function c(t,e){for(var n=0;n<C.create.length;++n)C.create[n](hr,t);g=t.data.hook,pe(g)&&(g.create&&g.create(hr,t),g.insert&&e.push(t))}function u(t,e){t.data.pendingInsert&&e.push.apply(e,t.data.pendingInsert),t.elm=t.child.$el,s(t)?(c(t,e),l(t)):(fe(t),e.push(t))}function l(t){var e;pe(e=t.context)&&pe(e=e.$options._scopeId)&&$.setAttribute(t.elm,e,""),pe(e=Hn)&&e!==t.context&&pe(e=e.$options._scopeId)&&$.setAttribute(t.elm,e,"")}function f(t,e,n,r,o,a){for(;r<=o;++r)$.insertBefore(t,i(n[r],a),e)}function d(t){var e,n,r=t.data;if(pe(r))for(pe(e=r.hook)&&pe(e=e.destroy)&&e(t),e=0;e<C.destroy.length;++e)C.destroy[e](t);if(pe(e=t.children))for(n=0;n<t.children.length;++n)d(t.children[n])}function p(t,e,n,r){for(;n<=r;++n){var i=e[n];pe(i)&&(pe(i.tag)?(v(i),d(i)):$.removeChild(t,i.elm))}}function v(t,e){if(e||pe(t.data)){var i=C.remove.length+1;for(e?e.listeners+=i:e=n(t.elm,i),pe(g=t.child)&&pe(g=g._vnode)&&pe(g.data)&&v(g,e),g=0;g<C.remove.length;++g)C.remove[g](t,e);pe(g=t.data.hook)&&pe(g=g.remove)?g(t,e):e()}else r(t.elm)}function h(t,e,n,r,o){for(var a,s,c,u,l=0,d=0,v=e.length-1,h=e[0],_=e[v],y=n.length-1,g=n[0],b=n[y],C=!o;l<=v&&d<=y;)de(h)?h=e[++l]:de(_)?_=e[--v]:ve(h,g)?(m(h,g,r),h=e[++l],g=n[++d]):ve(_,b)?(m(_,b,r),_=e[--v],b=n[--y]):ve(h,b)?(m(h,b,r),C&&$.insertBefore(t,h.elm,$.nextSibling(_.elm)),h=e[++l],b=n[--y]):ve(_,g)?(m(_,g,r),C&&$.insertBefore(t,_.elm,h.elm),_=e[--v],g=n[++d]):(de(a)&&(a=he(e,l,v)),s=pe(g.key)?a[g.key]:null,de(s)?($.insertBefore(t,i(g,r),h.elm),g=n[++d]):(c=e[s],c.tag!==g.tag?($.insertBefore(t,i(g,r),h.elm),g=n[++d]):(m(c,g,r),e[s]=void 0,C&&$.insertBefore(t,g.elm,h.elm),g=n[++d])));l>v?(u=de(n[y+1])?null:n[y+1].elm,f(t,u,n,d,y,r)):d>y&&p(t,e,l,v)}function m(t,e,n,r){if(t!==e){if(e.isStatic&&t.isStatic&&e.key===t.key&&(e.isCloned||e.isOnce))return void(e.elm=t.elm);var i,o=e.data,a=pe(o);a&&pe(i=o.hook)&&pe(i=i.prepatch)&&i(t,e);var c=e.elm=t.elm,u=t.children,l=e.children;if(a&&s(e)){for(i=0;i<C.update.length;++i)C.update[i](t,e);pe(i=o.hook)&&pe(i=i.update)&&i(t,e)}de(e.text)?pe(u)&&pe(l)?u!==l&&h(c,u,l,n,r):pe(l)?(pe(t.text)&&$.setTextContent(c,""),f(c,null,l,0,l.length-1,n)):pe(u)?p(c,u,0,u.length-1):pe(t.text)&&$.setTextContent(c,""):t.text!==e.text&&$.setTextContent(c,e.text),a&&pe(i=o.hook)&&pe(i=i.postpatch)&&i(t,e)}}function _(t,e,n){if(n&&t.parent)t.parent.data.pendingInsert=e;else for(var r=0;r<e.length;++r)e[r].data.hook.insert(e[r])}function y(t,e,n){e.elm=t;var r=e.tag,i=e.data,o=e.children;if(pe(i)&&(pe(g=i.hook)&&pe(g=g.init)&&g(e,!0),pe(g=e.child)))return u(e,n),!0;if(pe(r)){if(pe(o)){var s=$.childNodes(t);if(s.length){var l=!0;if(s.length!==o.length)l=!1;else for(var f=0;f<o.length;f++)if(!y(s[f],o[f],n)){l=!1;break}if(!l)return!1}else a(e,o,n)}pe(i)&&c(e,n)}return!0}var g,b,C={},w=t.modules,$=t.nodeOps;for(g=0;g<mr.length;++g)for(C[mr[g]]=[],b=0;b<w.length;++b)void 0!==w[b][mr[g]]&&C[mr[g]].push(w[b][mr[g]]);return function(t,n,r,o){if(!n)return void(t&&d(t));var a,c,u=!1,l=[];if(t){var f=pe(t.nodeType);if(!f&&ve(t,n))m(t,n,l,o);else{if(f){if(1===t.nodeType&&t.hasAttribute("server-rendered")&&(t.removeAttribute("server-rendered"),r=!0),r&&y(t,n,l))return _(n,l,!0),t;t=e(t)}if(a=t.elm,c=$.parentNode(a),i(n,l),n.parent&&(n.parent.elm=n.elm,s(n)))for(var v=0;v<C.create.length;++v)C.create[v](hr,n.parent);null!==c?($.insertBefore(c,n.elm,$.nextSibling(a)),p(c,[t],0,0)):pe(t.tag)&&d(t)}}else u=!0,i(n,l);return _(n,l,u),n.elm}}function _e(t,e){if(t.data.directives||e.data.directives){var n,r,i,o=t===hr,a=ye(t.data.directives,t.context),s=ye(e.data.directives,e.context),c=[],u=[];for(n in s)r=a[n],i=s[n],r?(i.oldValue=r.value,be(i,"update",e,t),i.def&&i.def.componentUpdated&&u.push(i)):(be(i,"bind",e,t),i.def&&i.def.inserted&&c.push(i));if(c.length){var l=function(){c.forEach(function(n){be(n,"inserted",e,t)})};o?W(e.data.hook||(e.data.hook={}),"insert",l,"dir-insert"):l()}if(u.length&&W(e.data.hook||(e.data.hook={}),"postpatch",function(){u.forEach(function(n){be(n,"componentUpdated",e,t)})},"dir-postpatch"),!o)for(n in a)s[n]||be(a[n],"unbind",t)}}function ye(t,e){var n=Object.create(null);if(!t)return n;var r,i;for(r=0;r<t.length;r++)i=t[r],i.modifiers||(i.modifiers=yr),n[ge(i)]=i,i.def=Nt(e.$options,"directives",i.name,!0);return n}function ge(t){return t.rawName||t.name+"."+Object.keys(t.modifiers||{}).join(".")}function be(t,e,n,r){var i=t.def&&t.def[e];i&&i(n.elm,t,n,r)}function Ce(t,e){if(t.data.attrs||e.data.attrs){var n,r,i,o=e.elm,a=t.data.attrs||{},s=e.data.attrs||{};s.__ob__&&(s=e.data.attrs=u({},s));for(n in s)r=s[n],i=a[n],i!==r&&we(o,n,r);for(n in a)null==s[n]&&(or(n)?o.removeAttributeNS(ir,ar(n)):nr(n)||o.removeAttribute(n))}}function we(t,e,n){rr(e)?sr(n)?t.removeAttribute(e):t.setAttribute(e,e):nr(e)?t.setAttribute(e,sr(n)||"false"===n?"false":"true"):or(e)?sr(n)?t.removeAttributeNS(ir,ar(e)):t.setAttributeNS(ir,e,n):sr(n)?t.removeAttribute(e):t.setAttribute(e,n)}function $e(t,e){var n=e.elm,r=e.data,i=t.data;if(r.staticClass||r.class||i&&(i.staticClass||i.class)){var o=zt(e),a=n._transitionClasses;a&&(o=Wt(o,Jt(a))),o!==n._prevClass&&(n.setAttribute("class",o),n._prevClass=o)}}function Ae(t,e){if(t.data.on||e.data.on){var n=e.data.on||{},r=t.data.on||{},i=e.elm._v_add||(e.elm._v_add=function(t,n,r){e.elm.addEventListener(t,n,r)}),o=e.elm._v_remove||(e.elm._v_remove=function(t,n){e.elm.removeEventListener(t,n)});J(n,r,i,o,e.context)}}function ke(t,e){if(t.data.domProps||e.data.domProps){var n,r,i=e.elm,o=t.data.domProps||{},a=e.data.domProps||{};a.__ob__&&(a=e.data.domProps=u({},a));for(n in o)null==a[n]&&(i[n]="");for(n in a)if("textContent"!==n&&"innerHTML"!==n||!e.children||(e.children.length=0),r=a[n],"value"===n){i._value=r;var s=null==r?"":String(r);i.value===s||i.composing||(i.value=s)}else i[n]=r}}function xe(t,e){if(t.data&&t.data.style||e.data.style){var n,r,i=e.elm,o=t.data.style||{},a=e.data.style||{};if("string"==typeof a)return void(i.style.cssText=a);var s=a.__ob__;Array.isArray(a)&&(a=e.data.style=d(a)),s&&(a=e.data.style=u({},a));for(r in o)null==a[r]&&kr(i,r,"");for(r in a)n=a[r],n!==o[r]&&kr(i,r,null==n?"":n)}}function Oe(t,e){if(e&&e.trim())if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var n=" "+t.getAttribute("class")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function Se(t,e){if(e&&e.trim())if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e);else{for(var n=" "+t.getAttribute("class")+" ",r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");t.setAttribute("class",n.trim())}}function je(t){Mr(function(){Mr(t)})}function Te(t,e){(t._transitionClasses||(t._transitionClasses=[])).push(e),Oe(t,e)}function Ee(t,e){t._transitionClasses&&r(t._transitionClasses,e),Se(t,e)}function De(t,e,n){var r=Le(t,e),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===Tr?Lr:Pr,c=0,u=function(){t.removeEventListener(s,l),n()},l=function(e){e.target===t&&++c>=a&&u()};setTimeout(function(){c<a&&u()},o+1),t.addEventListener(s,l)}function Le(t,e){var n,r=window.getComputedStyle(t),i=r[Dr+"Delay"].split(", "),o=r[Dr+"Duration"].split(", "),a=Ne(i,o),s=r[Nr+"Delay"].split(", "),c=r[Nr+"Duration"].split(", "),u=Ne(s,c),l=0,f=0;e===Tr?a>0&&(n=Tr,l=a,f=o.length):e===Er?u>0&&(n=Er,l=u,f=c.length):(l=Math.max(a,u),n=l>0?a>u?Tr:Er:null,f=n?n===Tr?o.length:c.length:0);var d=n===Tr&&Ir.test(r[Dr+"Property"]);return{type:n,timeout:l,propCount:f,hasTransform:d}}function Ne(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max.apply(null,e.map(function(e,n){return Pe(e)+Pe(t[n])}))}function Pe(t){return 1e3*Number(t.slice(0,-1))}function Me(t){var e=t.elm;e._leaveCb&&(e._leaveCb.cancelled=!0,e._leaveCb());var n=Be(t.data.transition);if(n&&!e._enterCb&&1===e.nodeType){var r=n.css,i=n.type,o=n.enterClass,a=n.enterActiveClass,s=n.appearClass,c=n.appearActiveClass,u=n.beforeEnter,l=n.enter,f=n.afterEnter,d=n.enterCancelled,p=n.beforeAppear,v=n.appear,h=n.afterAppear,m=n.appearCancelled,_=Hn.$vnode,y=_&&_.parent?_.parent.context:Hn,g=!y._isMounted||!t.isRootInsert;if(!g||v||""===v){var b=g?s:o,C=g?c:a,w=g?p||u:u,$=g&&"function"==typeof v?v:l,A=g?h||f:f,k=g?m||d:d,x=r!==!1&&!yn,O=$&&($._length||$.length)>1,S=e._enterCb=Ue(function(){x&&Ee(e,C),S.cancelled?(x&&Ee(e,b),k&&k(e)):A&&A(e),e._enterCb=null});t.data.show||W(t.data.hook||(t.data.hook={}),"insert",function(){var n=e.parentNode,r=n&&n._pending&&n._pending[t.key];r&&r.tag===t.tag&&r.elm._leaveCb&&r.elm._leaveCb(),$&&$(e,S)},"transition-insert"),w&&w(e),x&&(Te(e,b),Te(e,C),je(function(){Ee(e,b),S.cancelled||O||De(e,i,S)})),t.data.show&&$&&$(e,S),x||O||S()}}}function Ie(t,e){function n(){m.cancelled||(t.data.show||((r.parentNode._pending||(r.parentNode._pending={}))[t.key]=t),u&&u(r),v&&(Te(r,s),Te(r,c),je(function(){Ee(r,s),m.cancelled||h||De(r,a,m)})),l&&l(r,m),v||h||m())}var r=t.elm;r._enterCb&&(r._enterCb.cancelled=!0,r._enterCb());var i=Be(t.data.transition);if(!i)return e();if(!r._leaveCb&&1===r.nodeType){var o=i.css,a=i.type,s=i.leaveClass,c=i.leaveActiveClass,u=i.beforeLeave,l=i.leave,f=i.afterLeave,d=i.leaveCancelled,p=i.delayLeave,v=o!==!1&&!yn,h=l&&(l._length||l.length)>1,m=r._leaveCb=Ue(function(){r.parentNode&&r.parentNode._pending&&(r.parentNode._pending[t.key]=null),v&&Ee(r,c),m.cancelled?(v&&Ee(r,s),d&&d(r)):(e(),f&&f(r)),r._leaveCb=null});p?p(n):n()}}function Be(t){if(t){if("object"==typeof t){var e={};return t.css!==!1&&u(e,Br(t.name||"v")),u(e,t),e}return"string"==typeof t?Br(t):void 0}}function Ue(t){var e=!1;return function(){e||(e=!0,t())}}function Re(t,e,n){var r=e.value,i=t.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,c=t.options.length;s<c;s++)if(a=t.options[s],i)o=m(r,Fe(a))>-1,a.selected!==o&&(a.selected=o);else if(h(Fe(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}}function Ve(t,e){for(var n=0,r=e.length;n<r;n++)if(h(Fe(e[n]),t))return!1;return!0}function Fe(t){return"_value"in t?t._value:t.value}function He(t){t.target.composing=!0}function ze(t){t.target.composing=!1,qe(t.target,"input")}function qe(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function Ke(t){return!t.child||t.data&&t.data.transition?t:Ke(t.child._vnode)}function We(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?We(tt(e.children)):t}function Je(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];
|
|
var i=n._parentListeners;for(var o in i)e[on(o)]=i[o].fn;return e}function Ge(t,e){return/\d-keep-alive$/.test(e.tag)?t("keep-alive"):null}function Ze(t){for(;t=t.parent;)if(t.data.transition)return!0}function Qe(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function Xe(t){t.data.newPos=t.elm.getBoundingClientRect()}function Ye(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,i=e.top-n.top;if(r||i){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}var tn,en=n("slot,component",!0),nn=Object.prototype.hasOwnProperty,rn=/-(\w)/g,on=a(function(t){return t.replace(rn,function(t,e){return e?e.toUpperCase():""})}),an=a(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),sn=/([^-])([A-Z])/g,cn=a(function(t){return t.replace(sn,"$1-$2").replace(sn,"$1-$2").toLowerCase()}),un=Object.prototype.toString,ln="[object Object]",fn=function(){return!1},dn={optionMergeStrategies:Object.create(null),silent:!1,devtools:!1,errorHandler:null,ignoredElements:null,keyCodes:Object.create(null),isReservedTag:fn,isUnknownElement:fn,getTagNamespace:p,mustUseProp:fn,_assetTypes:["component","directive","filter"],_lifecycleHooks:["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated"],_maxUpdateCount:100,_isServer:!1},pn=/[^\w.$]/,vn="__proto__"in{},hn="undefined"!=typeof window&&"[object Object]"!==Object.prototype.toString.call(window),mn=hn&&window.navigator.userAgent.toLowerCase(),_n=mn&&/msie|trident/.test(mn),yn=mn&&mn.indexOf("msie 9.0")>0,gn=mn&&mn.indexOf("edge/")>0,bn=mn&&mn.indexOf("android")>0,Cn=mn&&/iphone|ipad|ipod|ios/.test(mn),wn=hn&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,$n=function(){function t(){r=!1;var t=n.slice(0);n.length=0;for(var e=0;e<t.length;e++)t[e]()}var e,n=[],r=!1;if("undefined"!=typeof Promise&&b(Promise)){var i=Promise.resolve();e=function(){i.then(t),Cn&&setTimeout(p)}}else if("undefined"==typeof MutationObserver||!b(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())e=function(){setTimeout(t,0)};else{var o=1,a=new MutationObserver(t),s=document.createTextNode(String(o));a.observe(s,{characterData:!0}),e=function(){o=(o+1)%2,s.data=String(o)}}return function(t,i){var o=i?function(){t.call(i)}:t;n.push(o),r||(r=!0,e())}}();tn="undefined"!=typeof Set&&b(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return void 0!==this.set[t]},t.prototype.add=function(t){this.set[t]=1},t.prototype.clear=function(){this.set=Object.create(null)},t}();var An=0,kn=function(){this.id=An++,this.subs=[]};kn.prototype.addSub=function(t){this.subs.push(t)},kn.prototype.removeSub=function(t){r(this.subs,t)},kn.prototype.depend=function(){kn.target&&kn.target.addDep(this)},kn.prototype.notify=function(){for(var t=this.subs.slice(),e=0,n=t.length;e<n;e++)t[e].update()},kn.target=null;var xn=[],On=[],Sn={},jn=!1,Tn=!1,En=0,Dn=0,Ln=function(t,e,n,r){void 0===r&&(r={}),this.vm=t,t._watchers.push(this),this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.expression=e.toString(),this.cb=n,this.id=++Dn,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new tn,this.newDepIds=new tn,"function"==typeof e?this.getter=e:(this.getter=g(e),this.getter||(this.getter=function(){})),this.value=this.lazy?void 0:this.get()};Ln.prototype.get=function(){C(this);var t=this.getter.call(this.vm,this.vm);return this.deep&&x(t),w(),this.cleanupDeps(),t},Ln.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},Ln.prototype.cleanupDeps=function(){for(var t=this,e=this.deps.length;e--;){var n=t.deps[e];t.newDepIds.has(n.id)||n.removeSub(t)}var r=this.depIds;this.depIds=this.newDepIds,this.newDepIds=r,this.newDepIds.clear(),r=this.deps,this.deps=this.newDeps,this.newDeps=r,this.newDeps.length=0},Ln.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():k(this)},Ln.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){if(!dn.errorHandler)throw t;dn.errorHandler.call(null,t,this.vm)}else this.cb.call(this.vm,t,e)}}},Ln.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Ln.prototype.depend=function(){for(var t=this,e=this.deps.length;e--;)t.deps[e].depend()},Ln.prototype.teardown=function(){var t=this;if(this.active){this.vm._isBeingDestroyed||this.vm._vForRemoving||r(this.vm._watchers,this);for(var e=this.deps.length;e--;)t.deps[e].removeSub(t);this.active=!1}};var Nn=new tn,Pn=Array.prototype,Mn=Object.create(Pn);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(t){var e=Pn[t];y(Mn,t,function(){for(var n=arguments,r=arguments.length,i=new Array(r);r--;)i[r]=n[r];var o,a=e.apply(this,i),s=this.__ob__;switch(t){case"push":o=i;break;case"unshift":o=i;break;case"splice":o=i.slice(2)}return o&&s.observeArray(o),s.dep.notify(),a})});var In=Object.getOwnPropertyNames(Mn),Bn={shouldConvert:!0,isSettingProps:!1},Un=function(t){if(this.value=t,this.dep=new kn,this.vmCount=0,y(t,"__ob__",this),Array.isArray(t)){var e=vn?S:j;e(t,Mn,In),this.observeArray(t)}else this.walk(t)};Un.prototype.walk=function(t){for(var e=Object.keys(t),n=0;n<e.length;n++)E(t,e[n],t[e[n]])},Un.prototype.observeArray=function(t){for(var e=0,n=t.length;e<n;e++)T(t[e])};var Rn={enumerable:!0,configurable:!0,get:p,set:p},Vn=function(t,e,n,r,i,o,a,s){this.tag=t,this.data=e,this.children=n,this.text=r,this.elm=i,this.ns=o,this.context=a,this.functionalContext=void 0,this.key=e&&e.key,this.componentOptions=s,this.child=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1},Fn=function(){var t=new Vn;return t.text="",t.isComment=!0,t},Hn=null,zn={init:st,prepatch:ct,insert:ut,destroy:lt},qn=Object.keys(zn),Kn=0;$t(xt),H(xt),wt(xt),nt(xt),gt(xt);var Wn,Jn=p,Gn=dn.optionMergeStrategies;Gn.data=function(t,e,n){return n?t||e?function(){var r="function"==typeof e?e.call(n):e,i="function"==typeof t?t.call(n):void 0;return r?Ot(r,i):i}:void 0:e?"function"!=typeof e?t:t?function(){return Ot(e.call(this),t.call(this))}:e:t},dn._lifecycleHooks.forEach(function(t){Gn[t]=St}),dn._assetTypes.forEach(function(t){Gn[t+"s"]=jt}),Gn.watch=function(t,e){if(!e)return t;if(!t)return e;var n={};u(n,t);for(var r in e){var i=n[r],o=e[r];i&&!Array.isArray(i)&&(i=[i]),n[r]=i?i.concat(o):[o]}return n},Gn.props=Gn.methods=Gn.computed=function(t,e){if(!e)return t;if(!t)return e;var n=Object.create(null);return u(n,t),u(n,e),n};var Zn=function(t,e){return void 0===e?t:e},Qn=Object.freeze({defineReactive:E,_toString:t,toNumber:e,makeMap:n,isBuiltInTag:en,remove:r,hasOwn:i,isPrimitive:o,cached:a,camelize:on,capitalize:an,hyphenate:cn,bind:s,toArray:c,extend:u,isObject:l,isPlainObject:f,toObject:d,noop:p,no:fn,genStaticKeys:v,looseEqual:h,looseIndexOf:m,isReserved:_,def:y,parsePath:g,hasProto:vn,inBrowser:hn,UA:mn,isIE:_n,isIE9:yn,isEdge:gn,isAndroid:bn,isIOS:Cn,devtools:wn,nextTick:$n,get _Set(){return tn},mergeOptions:Lt,resolveAsset:Nt,warn:Jn,formatComponentName:Wn,validateProp:Pt}),Xn={name:"keep-alive",abstract:!0,created:function(){this.cache=Object.create(null)},render:function(){var t=tt(this.$slots.default);if(t&&t.componentOptions){var e=t.componentOptions,n=null==t.key?e.Ctor.cid+"::"+e.tag:t.key;this.cache[n]?t.child=this.cache[n].child:this.cache[n]=t,t.data.keepAlive=!0}return t},destroyed:function(){var t=this;for(var e in this.cache){var n=t.cache[e];rt(n.child,"deactivated"),n.child.$destroy()}}},Yn={KeepAlive:Xn};Ht(xt),Object.defineProperty(xt.prototype,"$isServer",{get:function(){return dn._isServer}}),xt.version="2.0.4";var tr,er=n("value,selected,checked,muted"),nr=n("contenteditable,draggable,spellcheck"),rr=n("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"),ir="http://www.w3.org/1999/xlink",or=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},ar=function(t){return or(t)?t.slice(6,t.length):""},sr=function(t){return null==t||t===!1},cr={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},ur=n("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,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"),lr=n("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font,font-face,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),fr=function(t){return ur(t)||lr(t)},dr=Object.create(null),pr=Object.freeze({createElement:Xt,createElementNS:Yt,createTextNode:te,createComment:ee,insertBefore:ne,removeChild:re,appendChild:ie,parentNode:oe,nextSibling:ae,tagName:se,setTextContent:ce,childNodes:ue,setAttribute:le}),vr={create:function(t,e){fe(e)},update:function(t,e){t.data.ref!==e.data.ref&&(fe(t,!0),fe(e))},destroy:function(t){fe(t,!0)}},hr=new Vn("",{},[]),mr=["create","update","remove","destroy"],_r={create:_e,update:_e,destroy:function(t){_e(t,hr)}},yr=Object.create(null),gr=[vr,_r],br={create:Ce,update:Ce},Cr={create:$e,update:$e},wr={create:Ae,update:Ae},$r={create:ke,update:ke},Ar=/^--/,kr=function(t,e,n){Ar.test(e)?t.style.setProperty(e,n):t.style[Or(e)]=n},xr=["Webkit","Moz","ms"],Or=a(function(t){if(tr=tr||document.createElement("div"),t=on(t),"filter"!==t&&t in tr.style)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<xr.length;n++){var r=xr[n]+e;if(r in tr.style)return r}}),Sr={create:xe,update:xe},jr=hn&&!yn,Tr="transition",Er="animation",Dr="transition",Lr="transitionend",Nr="animation",Pr="animationend";jr&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Dr="WebkitTransition",Lr="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Nr="WebkitAnimation",Pr="webkitAnimationEnd"));var Mr=hn&&window.requestAnimationFrame||setTimeout,Ir=/\b(transform|all)(,|$)/,Br=a(function(t){return{enterClass:t+"-enter",leaveClass:t+"-leave",appearClass:t+"-enter",enterActiveClass:t+"-enter-active",leaveActiveClass:t+"-leave-active",appearActiveClass:t+"-enter-active"}}),Ur=hn?{create:function(t,e){e.data.show||Me(e)},remove:function(t,e){t.data.show?e():Ie(t,e)}}:{},Rr=[br,Cr,wr,$r,Sr,Ur],Vr=Rr.concat(gr),Fr=me({nodeOps:pr,modules:Vr});yn&&document.addEventListener("selectionchange",function(){var t=document.activeElement;t&&t.vmodel&&qe(t,"input")});var Hr={inserted:function(t,e,n){if("select"===n.tag){var r=function(){Re(t,e,n.context)};r(),(_n||gn)&&setTimeout(r,0)}else"textarea"!==n.tag&&"text"!==t.type||e.modifiers.lazy||(bn||(t.addEventListener("compositionstart",He),t.addEventListener("compositionend",ze)),yn&&(t.vmodel=!0))},componentUpdated:function(t,e,n){if("select"===n.tag){Re(t,e,n.context);var r=t.multiple?e.value.some(function(e){return Ve(e,t.options)}):e.value!==e.oldValue&&Ve(e.value,t.options);r&&qe(t,"change")}}},zr={bind:function(t,e,n){var r=e.value;n=Ke(n);var i=n.data&&n.data.transition;r&&i&&!yn&&Me(n);var o="none"===t.style.display?"":t.style.display;t.style.display=r?o:"none",t.__vOriginalDisplay=o},update:function(t,e,n){var r=e.value,i=e.oldValue;if(r!==i){n=Ke(n);var o=n.data&&n.data.transition;o&&!yn?r?(Me(n),t.style.display=t.__vOriginalDisplay):Ie(n,function(){t.style.display="none"}):t.style.display=r?t.__vOriginalDisplay:"none"}}},qr={model:Hr,show:zr},Kr={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String},Wr={name:"transition",props:Kr,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(function(t){return t.tag}),n.length)){var r=this.mode,i=n[0];if(Ze(this.$vnode))return i;var o=We(i);if(!o)return i;if(this._leaving)return Ge(t,i);var a=o.key=null==o.key||o.isStatic?"__v"+(o.tag+this._uid)+"__":o.key,s=(o.data||(o.data={})).transition=Je(this),c=this._vnode,l=We(c);if(o.data.directives&&o.data.directives.some(function(t){return"show"===t.name})&&(o.data.show=!0),l&&l.data&&l.key!==a){var f=l.data.transition=u({},s);if("out-in"===r)return this._leaving=!0,W(f,"afterLeave",function(){e._leaving=!1,e.$forceUpdate()},a),Ge(t,i);if("in-out"===r){var d,p=function(){d()};W(s,"afterEnter",p,a),W(s,"enterCancelled",p,a),W(f,"delayLeave",function(t){d=t},a)}}return i}}},Jr=u({tag:String,moveClass:String},Kr);delete Jr.mode;var Gr={props:Jr,render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=Je(this),s=0;s<i.length;s++){var c=i[s];c.tag&&null!=c.key&&0!==String(c.key).indexOf("__vlist")&&(o.push(c),n[c.key]=c,(c.data||(c.data={})).transition=a)}if(r){for(var u=[],l=[],f=0;f<r.length;f++){var d=r[f];d.data.transition=a,d.data.pos=d.elm.getBoundingClientRect(),n[d.key]?u.push(d):l.push(d)}this.kept=t(e,null,u),this.removed=l}return t(e,null,o)},beforeUpdate:function(){this.__patch__(this._vnode,this.kept,!1,!0),this._vnode=this.kept},updated:function(){var t=this.prevChildren,e=this.moveClass||this.name+"-move";if(t.length&&this.hasMove(t[0].elm,e)){t.forEach(Qe),t.forEach(Xe),t.forEach(Ye);document.body.offsetHeight;t.forEach(function(t){if(t.data.moved){var n=t.elm,r=n.style;Te(n,e),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(Lr,n._moveCb=function t(r){r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(Lr,t),n._moveCb=null,Ee(n,e))})}})}},methods:{hasMove:function(t,e){if(!jr)return!1;if(null!=this._hasMove)return this._hasMove;Te(t,e);var n=Le(t);return Ee(t,e),this._hasMove=n.hasTransform}}},Zr={Transition:Wr,TransitionGroup:Gr};return xt.config.isUnknownElement=Zt,xt.config.isReservedTag=fr,xt.config.getTagNamespace=Gt,xt.config.mustUseProp=er,u(xt.options.directives,qr),u(xt.options.components,Zr),xt.prototype.__patch__=dn._isServer?p:Fr,xt.prototype.$mount=function(t,e){return t=t&&!dn._isServer?Qt(t):void 0,this._mount(t,e)},setTimeout(function(){dn.devtools&&wn&&wn.emit("init",xt)},0),xt}); |