From 590a7ee55b655f166ecdf8e7a5e22dab7a9e6dd7 Mon Sep 17 00:00:00 2001 From: Evan You Date: Tue, 24 Dec 2013 16:58:33 -0500 Subject: [PATCH] Release-v0.7.1 --- bower.json | 2 +- component.json | 2 +- dist/vue.js | 166 +++++++++++++++++++++++++++++++++-------------- dist/vue.min.js | 4 +- package.json | 2 +- tasks/release.js | 2 +- 6 files changed, 124 insertions(+), 54 deletions(-) diff --git a/bower.json b/bower.json index 636e387e1c8..30d7637a97b 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "vue", - "version": "0.7.0", + "version": "0.7.1", "main": "dist/vue.js", "ignore": [ ".*", diff --git a/component.json b/component.json index 3005f98ec6a..c9a6d883199 100644 --- a/component.json +++ b/component.json @@ -1,6 +1,6 @@ { "name": "vue", - "version": "0.7.0", + "version": "0.7.1", "main": "src/main.js", "description": "Data-driven View Models", "keywords": ["mvvm", "framework", "data binding"], diff --git a/dist/vue.js b/dist/vue.js index a9313733178..ece66c1fbd6 100644 --- a/dist/vue.js +++ b/dist/vue.js @@ -377,10 +377,15 @@ var config = require('./config'), /** * Set config options */ -ViewModel.config = function (opts) { - if (opts) { +ViewModel.config = function (opts, val) { + if (typeof opts === 'string') { + if (val === undefined) { + return config[opts] + } else { + config[opts] = val + } + } else { utils.extend(config, opts) - if (opts.prefix) updatePrefix() } return this } @@ -521,29 +526,6 @@ function mergeHook (fn, parentFn) { } } -/** - * Update prefix for some special directives - * that are used in compilation. - */ -var specialAttributes = [ - 'pre', - 'text', - 'repeat', - 'partial', - 'component', - 'component-id', - 'transition' -] - -function updatePrefix () { - specialAttributes.forEach(setPrefix) -} - -function setPrefix (attr) { - config.attrs[attr] = config.prefix + '-' + attr -} - -updatePrefix() module.exports = ViewModel }); require.register("vue/src/emitter.js", function(exports, require, module){ @@ -569,16 +551,42 @@ try { module.exports = Emitter }); require.register("vue/src/config.js", function(exports, require, module){ -module.exports = { +var prefix = 'v', + specialAttributes = [ + 'pre', + 'text', + 'repeat', + 'partial', + 'component', + 'component-id', + 'transition' + ], + config = module.exports = { + + async : true, + debug : false, + silent : false, + enterClass : 'v-enter', + leaveClass : 'v-leave', + attrs : {}, + + get prefix () { + return prefix + }, + set prefix (val) { + prefix = val + updatePrefix() + } + + } - prefix : 'v', - debug : false, - silent : false, - enterClass : 'v-enter', - leaveClass : 'v-leave', - attrs : {} - +function updatePrefix () { + specialAttributes.forEach(function (attr) { + config.attrs[attr] = prefix + '-' + attr + }) } + +updatePrefix() }); require.register("vue/src/utils.js", function(exports, require, module){ var config = require('./config'), @@ -588,10 +596,13 @@ var config = require('./config'), console = window.console, ViewModel // late def -var defer = - window.webkitRequestAnimationFrame || - window.requestAnimationFrame || - window.setTimeout +// PhantomJS doesn't support rAF, yet it has the global +// variable exposed. Use setTimeout so tests can work. +var defer = navigator.userAgent.indexOf('PhantomJS') > -1 + ? window.setTimeout + : (window.webkitRequestAnimationFrame || + window.requestAnimationFrame || + window.setTimeout) /** * Create a prototype-less object @@ -771,7 +782,7 @@ var utils = module.exports = { }, /** - * Defer DOM updates + * used to defer batch updates */ nextTick: function (cb) { defer(cb, 0) @@ -1586,6 +1597,9 @@ function getTargetVM (vm, path) { module.exports = ViewModel }); require.register("vue/src/binding.js", function(exports, require, module){ +var batcher = require('./batcher'), + id = 0 + /** * Binding class. * @@ -1594,6 +1608,7 @@ require.register("vue/src/binding.js", function(exports, require, module){ * and multiple computed property dependents */ function Binding (compiler, key, isExp, isFn) { + this.id = id++ this.value = undefined this.isExp = !!isExp this.isFn = isFn @@ -1603,6 +1618,7 @@ function Binding (compiler, key, isExp, isFn) { this.instances = [] this.subs = [] this.deps = [] + this.unbound = false } var BindingProto = Binding.prototype @@ -1612,9 +1628,13 @@ var BindingProto = Binding.prototype */ BindingProto.update = function (value) { this.value = value + batcher.queue(this, 'update') +} + +BindingProto._update = function () { var i = this.instances.length while (i--) { - this.instances[i].update(value) + this.instances[i].update(this.value) } this.pub() } @@ -1624,6 +1644,10 @@ BindingProto.update = function (value) { * Force all instances to re-evaluate themselves */ BindingProto.refresh = function () { + batcher.queue(this, 'refresh') +} + +BindingProto._refresh = function () { var i = this.instances.length while (i--) { this.instances[i].refresh() @@ -1646,6 +1670,11 @@ BindingProto.pub = function () { * Unbind the binding, remove itself from all of its dependencies */ BindingProto.unbind = function () { + // Indicate this has been unbound. + // It's possible this binding will be in + // the batcher's flush queue when its owner + // compiler has already been destroyed. + this.unbound = true var i = this.instances.length while (i--) { this.instances[i].unbind() @@ -2668,6 +2697,48 @@ function sniffTransitionEndEvent () { } } }); +require.register("vue/src/batcher.js", function(exports, require, module){ +var config = require('./config'), + utils = require('./utils'), + queue, has, waiting + +reset() + +exports.queue = function (binding, method) { + if (!config.async) { + binding['_' + method]() + return + } + if (!has[binding.id]) { + queue.push({ + binding: binding, + method: method + }) + has[binding.id] = true + if (!waiting) { + waiting = true + utils.nextTick(flush) + } + } +} + +function flush () { + for (var i = 0; i < queue.length; i++) { + var task = queue[i], + b = task.binding + if (b.unbound) continue + b['_' + task.method]() + has[b.id] = false + } + reset() +} + +function reset () { + queue = [] + has = utils.hash() + waiting = false +} +}); require.register("vue/src/directives/index.js", function(exports, require, module){ var utils = require('../utils'), transition = require('../transition') @@ -3143,15 +3214,14 @@ module.exports = { try { cursorPos = el.selectionStart } catch (e) {} - // `input` event has weird updating issue with - // International (e.g. Chinese) input methods, - // have to use a Timeout to hack around it... - setTimeout(function () { - self.vm.$set(self.key, el[attr]) + self.vm.$set(self.key, el[attr]) + // since updates are async + // we need to reset cursor position async too + utils.nextTick(function () { if (cursorPos !== undefined) { el.setSelectionRange(cursorPos, cursorPos) } - }, 0) + }) } : function () { // no filters, don't let it trigger update() @@ -3166,9 +3236,9 @@ module.exports = { if (isIE9) { self.onCut = function () { // cut event fires before the value actually changes - setTimeout(function () { + utils.nextTick(function () { self.set() - }, 0) + }) } self.onDel = function (e) { if (e.keyCode === 46 || e.keyCode === 8) { diff --git a/dist/vue.min.js b/dist/vue.min.js index c74ebe1ba51..7dc7dcbd149 100644 --- a/dist/vue.min.js +++ b/dist/vue.min.js @@ -1,6 +1,6 @@ /* - VueJS v0.7.0 + VueJS v0.7.1 (c) 2013 Evan You License: MIT */ -!function(){function a(b,c,d){var e=a.resolve(b);if(null==e){d=d||b,c=c||"root";var f=new Error('Failed to require "'+d+'" from "'+c+'"');throw f.path=d,f.parent=c,f.require=!0,f}var g=a.modules[e];if(!g._resolving&&!g.exports){var h={};h.exports={},h.client=h.component=!0,g._resolving=!0,g.call(this,h.exports,a.relative(e),h),delete g._resolving,g.exports=h.exports}return g.exports}a.modules={},a.aliases={},a.resolve=function(b){"/"===b.charAt(0)&&(b=b.slice(1));for(var c=[b,b+".js",b+".json",b+"/index.js",b+"/index.json"],d=0;dd;++d)c[d].apply(this,b)}return this},d.prototype.listeners=function(a){return this._callbacks=this._callbacks||{},this._callbacks[a]||[]},d.prototype.hasListeners=function(a){return!!this.listeners(a).length}}),a.register("vue/src/main.js",function(a,b,c){function d(a){var b=this;a=e(a,b.options,!0),m.processOptions(a);var c=function(c,d){d||(c=e(c,a,!0)),b.call(this,c,!0)},f=c.prototype=Object.create(b.prototype);m.defProtected(f,"constructor",c);var g=a.methods;if(g)for(var h in g)h in j.prototype||"function"!=typeof g[h]||(f[h]=g[h]);return c.extend=d,c.super=b,c.options=a,c}function e(a,b,c){if(a=a||m.hash(),!b)return a;for(var d in b)if("el"!==d&&"methods"!==d){var g=a[d],h=b[d],i=m.typeOf(g);c&&"Function"===i&&h?a[d]=f(g,h):c&&"Object"===i?e(g,h):void 0===g&&(a[d]=h)}return a}function f(a,b){return function(c){b.call(this,c),a.call(this,c)}}function g(){n.forEach(h)}function h(a){i.attrs[a]=i.prefix+"-"+a}var i=b("./config"),j=b("./viewmodel"),k=b("./directives"),l=b("./filters"),m=b("./utils");j.config=function(a){return a&&(m.extend(i,a),a.prefix&&g()),this},j.directive=function(a,b){return b?(k[a]=b,this):k[a]},j.filter=function(a,b){return b?(l[a]=b,this):l[a]},j.component=function(a,b){return b?(m.components[a]=m.toConstructor(b),this):m.components[a]},j.partial=function(a,b){return b?(m.partials[a]=m.toFragment(b),this):m.partials[a]},j.transition=function(a,b){return b?(m.transitions[a]=b,this):m.transitions[a]},j.extend=d;var n=["pre","text","repeat","partial","component","component-id","transition"];g(),c.exports=j}),a.register("vue/src/emitter.js",function(a,b,c){var d,e="emitter";try{d=b(e)}catch(f){d=b("events").EventEmitter,d.prototype.off=function(){var a=arguments.length>1?this.removeListener:this.removeAllListeners;return a.apply(this,arguments)}}c.exports=d}),a.register("vue/src/config.js",function(a,b,c){c.exports={prefix:"v",debug:!1,silent:!1,enterClass:"v-enter",leaveClass:"v-leave",attrs:{}}}),a.register("vue/src/utils.js",function(a,b,c){function d(){return Object.create(null)}var e,f=b("./config"),g=f.attrs,h=Object.prototype.toString,i=Array.prototype.join,j=window.console,k=window.webkitRequestAnimationFrame||window.requestAnimationFrame||window.setTimeout,l=c.exports={hash:d,components:d(),partials:d(),transitions:d(),attr:function(a,b,c){var d=g[b],e=a.getAttribute(d);return c||null===e||a.removeAttribute(d),e},defProtected:function(a,b,c,d,e){a.hasOwnProperty(b)||Object.defineProperty(a,b,{value:c,enumerable:!!d,configurable:!!e})},typeOf:function(a){return h.call(a).slice(8,-1)},bind:function(a,b){return function(c){return a.call(b,c)}},toText:function(a){return"string"==typeof a||"boolean"==typeof a||"number"==typeof a&&a==a?a:""},extend:function(a,b,c){for(var d in b)c&&a[d]||(a[d]=b[d])},unique:function(a){for(var b,c=l.hash(),d=a.length,e=[];d--;)b=a[d],c[b]||(c[b]=1,e.push(b));return e},toFragment:function(a){if("string"!=typeof a)return a;if("#"===a.charAt(0)){var b=document.getElementById(a.slice(1));if(!b)return;a=b.innerHTML}var c,d=document.createElement("div"),e=document.createDocumentFragment();for(d.innerHTML=a.trim();c=d.firstChild;)e.appendChild(c);return e},toConstructor:function(a){return e=e||b("./viewmodel"),"Object"===l.typeOf(a)?e.extend(a):"function"==typeof a?a:null},processOptions:function(a){var b,c=a.components,d=a.partials,e=a.template;if(c)for(b in c)c[b]=l.toConstructor(c[b]);if(d)for(b in d)d[b]=l.toFragment(d[b]);e&&(a.template=l.toFragment(e))},log:function(){f.debug&&j&&j.log(i.call(arguments," "))},warn:function(){!f.silent&&j&&j.warn(i.call(arguments," "))},nextTick:function(a){k(a,0)}}}),a.register("vue/src/compiler.js",function(a,b,c){function d(a,b){var c=this;c.init=!0,b=c.options=b||r(),i.processOptions(b);var d=c.data=b.data||{};s(a,d,!0),s(a,b.methods,!0),s(c,b.compilerOptions);var h=c.setupElement(b);q("\nnew VM instance:",h.tagName,"\n"),c.vm=a,c.dirs=[],c.exps=[],c.computed=[],c.childCompilers=[],c.emitter=new f;var j=c.parentCompiler;c.bindings=j?Object.create(j.bindings):r(),c.rootCompiler=j?e(j):c,t(a,"$",r()),t(a,"$el",h),t(a,"$compiler",c),t(a,"$root",c.rootCompiler.vm);var k=i.attr(h,"component-id");j&&(j.childCompilers.push(c),t(a,"$parent",j.vm),k&&(c.childId=k,j.vm.$[k]=a)),c.setupObserver(),c.execHook("beforeCompile","created"),s(d,a),g.observe(d,"",c.observer),c.repeat&&(t(d,"$index",c.repeatIndex,!1,!0),c.createBinding("$index")),Object.defineProperty(a,"$data",{enumerable:!1,get:function(){return c.data},set:function(a){var b=c.data;g.unobserve(b,"",c.observer),c.data=a,g.copyPaths(a,b),g.observe(a,"",c.observer)}}),c.compile(h,!0),c.computed.length&&m.parse(c.computed),c.init=!1,c.execHook("afterCompile","ready")}function e(a){for(;a.parentCompiler;)a=a.parentCompiler;return a}var f=b("./emitter"),g=b("./observer"),h=b("./config"),i=b("./utils"),j=b("./binding"),k=b("./directive"),l=b("./text-parser"),m=b("./deps-parser"),n=b("./exp-parser"),o=m.observer,p=Array.prototype.slice,q=i.log,r=i.hash,s=i.extend,t=i.defProtected,u=Object.prototype.hasOwnProperty,v=d.prototype;v.setupElement=function(a){var b=this.el="string"==typeof a.el?document.querySelector(a.el):a.el||document.createElement(a.tagName||"div"),c=a.template;if(c)if(a.replace&&1===c.childNodes.length){var d=c.childNodes[0].cloneNode(!0);b.parentNode&&(b.parentNode.insertBefore(d,b),b.parentNode.removeChild(b)),b=d}else b.innerHTML="",b.appendChild(c.cloneNode(!0));a.id&&(b.id=a.id),a.className&&(b.className=a.className);var e=a.attributes;if(e)for(var f in e)b.setAttribute(f,e[f]);return b},v.setupObserver=function(){function a(a){u.call(c,a)||b.createBinding(a)}var b=this,c=b.bindings,d=b.observer=new f;d.proxies=r(),d.on("get",function(b){a(b),o.emit("get",c[b])}).on("set",function(b,e){d.emit("change:"+b,e),a(b),c[b].update(e)}).on("mutate",function(b,e,f){d.emit("change:"+b,e,f),a(b),c[b].pub()})},v.compile=function(a,b){var c=this,d=a.nodeType,e=a.tagName;if(1===d&&"SCRIPT"!==e){if(null!==i.attr(a,"pre"))return;var f,g,j,l;if(f=i.attr(a,"repeat"))l=k.parse(h.attrs.repeat,f,c,a),l&&c.bindDirective(l);else if(!b&&(g=i.attr(a,"component")))l=k.parse(h.attrs.component,g,c,a),l&&(-1===g.indexOf(":")&&(l.isSimple=!0,l.arg=l.key),c.bindDirective(l));else{if(a.vue_trans=i.attr(a,"transition"),j=i.attr(a,"partial")){var m=c.getOption("partials",j);m&&(a.innerHTML="",a.appendChild(m.cloneNode(!0)))}c.compileNode(a)}}else 3===d&&c.compileTextNode(a)},v.compileNode=function(a){var b,c,d=a.attributes;if(d&&d.length){var e,f,g,h;for(b=d.length;b--;){for(e=d[b],f=!1,g=k.split(e.value),c=g.length;c--;){h=g[c];var i=k.parse(e.name,h,this,a);i&&(f=!0,this.bindDirective(i))}f&&a.removeAttribute(e.name)}}if(a.childNodes.length){var j=p.call(a.childNodes);for(b=0,c=j.length;c>b;b++)this.compile(j[b])}},v.compileTextNode=function(a){var b=l.parse(a.nodeValue);if(b){for(var c,d,e,f=h.attrs.text,g=0,i=b.length;i>g;g++){if(d=b[g],d.key)if(">"===d.key.charAt(0)){var j=d.key.slice(1).trim(),m=this.getOption("partials",j);m&&(c=m.cloneNode(!0),this.compileNode(c))}else c=document.createTextNode(""),e=k.parse(f,d.key,this,c),e&&this.bindDirective(e);else c=document.createTextNode(d);a.parentNode.insertBefore(c,a)}a.parentNode.removeChild(a)}},v.bindDirective=function(a){if(this.dirs.push(a),a.isSimple)return a.bind&&a.bind(),void 0;var b,c=this,d=a.key,e=d.split(".")[0];b=a.isExp?c.createBinding(d,!0,a.isFn):u.call(c.data,e)||u.call(c.vm,e)?u.call(c.bindings,d)?c.bindings[d]:c.createBinding(d):c.bindings[d]||c.rootCompiler.createBinding(d),b.instances.push(a),a.binding=b,a.bind&&a.bind();var f=b.value;void 0!==f&&(b.isComputed?a.refresh(f):a.update(f,!0))},v.createBinding=function(a,b,c){var d=this,e=d.bindings,f=new j(d,a,b,c);if(b){var h=n.parse(a,d);h&&(q(" created expression binding: "+a),f.value=c?h:{$get:h},d.markComputed(f),d.exps.push(f))}else if(q(" created binding: "+a),e[a]=f,f.root)d.define(a,f);else{g.ensurePath(d.data,a);var i=a.slice(0,a.lastIndexOf("."));u.call(e,i)||d.createBinding(i)}return f},v.define=function(a,b){q(" defined root binding: "+a);var c=this,d=c.data,e=c.vm,f=b.value=d[a];"Object"===i.typeOf(f)&&f.$get&&c.markComputed(b),a in d||(d[a]=void 0),d.__observer__&&g.convert(d,a),Object.defineProperty(e,a,{get:b.isComputed?function(){return c.data[a].$get()}:function(){return c.data[a]},set:b.isComputed?function(b){c.data[a].$set&&c.data[a].$set(b)}:function(b){c.data[a]=b}})},v.markComputed=function(a){var b=a.value,c=this.vm;a.isComputed=!0,a.isFn?a.value=i.bind(b,c):(b.$get=i.bind(b.$get,c),b.$set&&(b.$set=i.bind(b.$set,c))),this.computed.push(a)},v.getOption=function(a,b){var c=this.options,d=this.parentCompiler;return c[a]&&c[a][b]||(d?d.getOption(a,b):i[a]&&i[a][b])},v.execHook=function(a,b){var c=this.options,d=c[a]||c[b];d&&d.call(this.vm,c)},v.destroy=function(){var a,b,c,d,e,f=this,h=f.vm,i=f.el,j=f.dirs,k=f.exps,l=f.bindings;for(f.execHook("beforeDestroy"),f.observer.off(),f.emitter.off(),a=j.length;a--;)c=j[a],c.isSimple||c.binding.compiler===f||(d=c.binding.instances,d&&d.splice(d.indexOf(c),1)),c.unbind();for(a=k.length;a--;)k[a].unbind();for(b in l)u.call(l,b)&&(e=l[b],e.root&&g.unobserve(e.value,e.key,f.observer),e.unbind());var m=f.parentCompiler,n=f.childId;m&&(m.childCompilers.splice(m.childCompilers.indexOf(f),1),n&&delete m.vm.$[n]),i===document.body?i.innerHTML="":h.$remove(),f.execHook("afterDestroy")},c.exports=d}),a.register("vue/src/viewmodel.js",function(a,b,c){function d(a){new g(this,a)}function e(a){return"string"==typeof a?document.querySelector(a):a}function f(a,b){var c=b[0],d=a.$compiler.bindings[c];return d?d.compiler.vm:null}var g=b("./compiler"),h=b("./utils"),i=b("./transition"),j=h.defProtected,k=h.nextTick,l=d.prototype;j(l,"$set",function(a,b){var c=a.split("."),d=f(this,c);if(d){for(var e=0,g=c.length-1;g>e;e++)d=d[c[e]];d[c[e]]=b}}),j(l,"$watch",function(a,b){this.$compiler.observer.on("change:"+a,b)}),j(l,"$unwatch",function(a,b){var c=["change:"+a],d=this.$compiler.observer;b&&c.push(b),d.off.apply(d,c)}),j(l,"$destroy",function(){this.$compiler.destroy()}),j(l,"$broadcast",function(){for(var a,b=this.$compiler.childCompilers,c=b.length;c--;)a=b[c],a.emitter.emit.apply(a.emitter,arguments),a.vm.$broadcast.apply(a.vm,arguments)}),j(l,"$emit",function(){var a=this.$compiler,b=a.emitter,c=a.parentCompiler;b.emit.apply(b,arguments),c&&c.vm.$emit.apply(c.vm,arguments)}),["on","off","once"].forEach(function(a){j(l,"$"+a,function(){var b=this.$compiler.emitter;b[a].apply(b,arguments)})}),j(l,"$appendTo",function(a,b){a=e(a);var c=this.$el;i(c,1,function(){a.appendChild(c),b&&k(b)},this.$compiler)}),j(l,"$remove",function(a){var b=this.$el,c=b.parentNode;c&&i(b,-1,function(){c.removeChild(b),a&&k(a)},this.$compiler)}),j(l,"$before",function(a,b){a=e(a);var c=this.$el,d=a.parentNode;d&&i(c,1,function(){d.insertBefore(c,a),b&&k(b)},this.$compiler)}),j(l,"$after",function(a,b){a=e(a);var c=this.$el,d=a.parentNode,f=a.nextSibling;d&&i(c,1,function(){f?d.insertBefore(c,f):d.appendChild(c),b&&k(b)},this.$compiler)}),c.exports=d}),a.register("vue/src/binding.js",function(a,b,c){function d(a,b,c,d){this.value=void 0,this.isExp=!!c,this.isFn=d,this.root=!this.isExp&&-1===b.indexOf("."),this.compiler=a,this.key=b,this.instances=[],this.subs=[],this.deps=[]}var e=d.prototype;e.update=function(a){this.value=a;for(var b=this.instances.length;b--;)this.instances[b].update(a);this.pub()},e.refresh=function(){for(var a=this.instances.length;a--;)this.instances[a].refresh();this.pub()},e.pub=function(){for(var a=this.subs.length;a--;)this.subs[a].refresh()},e.unbind=function(){for(var a=this.instances.length;a--;)this.instances[a].unbind();a=this.deps.length;for(var b;a--;)b=this.deps[a].subs,b.splice(b.indexOf(this),1)},c.exports=d}),a.register("vue/src/observer.js",function(a,b,c){function d(a){for(var b in a)f(a,b)}function e(a,b){var c=a.__observer__;if(c||(c=new n,r(a,"__observer__",c)),c.path=b,w)a.__proto__=x;else for(var d in x)r(a,d,x[d])}function f(a,b){var c=b.charAt(0);if("$"!==c&&"_"!==c||"$index"===b){var d=a.__observer__,e=a[b],f=d.values;f[b]=e,d.emit("set",b,e),Object.defineProperty(a,b,{get:function(){var a=f[b];return p.active&&q(a)!==t&&d.emit("get",b),a},set:function(a){var c=f[b];l(c,b,d),f[b]=a,i(a,c),d.emit("set",b,a),k(a,b,d)}}),k(e,b,d)}}function g(a){m=m||b("./viewmodel");var c=q(a);return!(c!==t&&c!==u||a instanceof m)}function h(a){var b=q(a),c=a&&a.__observer__;if(b===u)c.emit("set","length",a.length);else if(b===t){var d,e;for(d in a)e=a[d],c.emit("set",d,e),h(e)}}function i(a,b){if(q(b)===t&&q(a)===t){var c,d,e,f;for(c in b)c in a||(e=b[c],d=q(e),d===t?(f=a[c]={},i(f,e)):a[c]=d===u?[]:void 0)}}function j(a,b){for(var c,d=b.split("."),e=0,g=d.length-1;g>e;e++)c=d[e],a[c]||(a[c]={},a.__observer__&&f(a,c)),a=a[c];q(a)===t&&(c=d[e],c in a||(a[c]=void 0,a.__observer__&&f(a,c)))}function k(a,b,c){if(g(a)){var f,i=b?b+".":"",j=!!a.__observer__;j||r(a,"__observer__",new n),f=a.__observer__,f.values=f.values||o.hash(),c.proxies=c.proxies||{};var k=c.proxies[i]={get:function(a){c.emit("get",i+a)},set:function(a,b){c.emit("set",i+a,b)},mutate:function(a,d,e){var f=a?i+a:b;c.emit("mutate",f,d,e);var g=e.method;"sort"!==g&&"reverse"!==g&&c.emit("set",f+".length",d.length)}};if(f.on("get",k.get).on("set",k.set).on("mutate",k.mutate),j)h(a);else{var l=q(a);l===t?d(a):l===u&&e(a)}}}function l(a,b,c){if(a&&a.__observer__){b=b?b+".":"";var d=c.proxies[b];d&&(a.__observer__.off("get",d.get).off("set",d.set).off("mutate",d.mutate),c.proxies[b]=null)}}var m,n=b("./emitter"),o=b("./utils"),p=b("./deps-parser").observer,q=o.typeOf,r=o.defProtected,s=Array.prototype.slice,t="Object",u="Array",v=["push","pop","shift","unshift","splice","sort","reverse"],w={}.__proto__,x=Object.create(Array.prototype);v.forEach(function(a){r(x,a,function(){var b=Array.prototype[a].apply(this,arguments);return this.__observer__.emit("mutate",this.__observer__.path,this,{method:a,args:s.call(arguments),result:b}),b},!w)});var y={remove:function(a){if("function"==typeof a){for(var b=this.length,c=[];b--;)a(this[b])&&c.push(this.splice(b,1)[0]);return c.reverse()}return"number"!=typeof a&&(a=this.indexOf(a)),a>-1?this.splice(a,1)[0]:void 0},replace:function(a,b){if("function"==typeof a){for(var c,d=this.length,e=[];d--;)c=a(this[d]),void 0!==c&&e.push(this.splice(d,1,c)[0]);return e.reverse()}return"number"!=typeof a&&(a=this.indexOf(a)),a>-1?this.splice(a,1,b)[0]:void 0}};for(var z in y)r(x,z,y[z],!w);c.exports={observe:k,unobserve:l,ensurePath:j,convert:f,copyPaths:i,watchArray:e}}),a.register("vue/src/directive.js",function(a,b,c){function d(a,b,c,d,g){this.compiler=d,this.vm=d.vm,this.el=g;var h=""===b;if("function"==typeof a)this[h?"bind":"_update"]=a;else for(var i in a)"unbind"===i||"update"===i?this["_"+i]=a[i]:this[i]=a[i];if(h)return this.isSimple=!0,void 0;this.expression=b.trim(),this.rawKey=c,e(this,c),this.isExp=!q.test(this.key)||p.test(this.key);var j=this.expression.slice(c.length).match(n);if(j){this.filters=[];for(var k,l=0,m=j.length;m>l;l++)k=f(j[l],this.compiler),k&&this.filters.push(k);this.filters.length||(this.filters=null)}else this.filters=null}function e(a,b){var c=b;if(b.indexOf(":")>-1){var d=b.match(m);c=d?d[2].trim():c,a.arg=d?d[1].trim():null}a.key=c}function f(a,b){var c=a.slice(1).match(o);if(c){c=c.map(function(a){return a.replace(/'/g,"").trim()});var d=c[0],e=b.getOption("filters",d)||j[d];return e?{name:d,apply:e,args:c.length>1?c.slice(1):null}:(h.warn("Unknown filter: "+d),void 0)}}var g=b("./config"),h=b("./utils"),i=b("./directives"),j=b("./filters"),k=/(?:['"](?:\\.|[^'"])*['"]|\((?:\\.|[^\)])*\)|\\.|[^,])+/g,l=/^(?:['"](?:\\.|[^'"])*['"]|\\.|[^\|]|\|\|)+/,m=/^([\w- ]+):(.+)$/,n=/\|[^\|]+/g,o=/[^\s']+|'[^']+'/g,p=/^\$(parent|root)\./,q=/^[\w\.\$]+$/,r=d.prototype;r.update=function(a,b){(b||a!==this.value)&&(this.value=a,this.apply(a))},r.refresh=function(a){if(a&&(this.value=a),this.isFn)a=this.value;else{if(a=this.value.$get(),void 0!==a&&a===this.computedValue)return;this.computedValue=a}this.apply(a)},r.apply=function(a){this._update(this.filters?this.applyFilters(a):a)},r.applyFilters=function(a){for(var b,c=a,d=0,e=this.filters.length;e>d;d++)b=this.filters[d],c=b.apply.call(this.vm,c,b.args);return c},r.unbind=function(a){this.el&&(this._unbind&&this._unbind(a),a||(this.vm=this.el=this.binding=this.compiler=null))},d.split=function(a){return a.indexOf(",")>-1?a.match(k)||[""]:[a]},d.parse=function(a,b,c,e){var f=g.prefix+"-";if(0===a.indexOf(f)){a=a.slice(f.length);var j=c.getOption("directives",a)||i[a];if(!j)return h.warn("unknown directive: "+a);var k;if(b.indexOf("|")>-1){var m=b.match(l);m&&(k=m[0].trim())}else k=b.trim();return k||""===b?new d(j,b,k,c,e):h.warn("invalid directive expression: "+b)}},c.exports=d}),a.register("vue/src/exp-parser.js",function(a,b,c){function d(a){return a=a.replace(l,"").replace(m,",").replace(k,"").replace(n,"").replace(o,""),a?a.split(/,+/):[]}function e(a,b){for(var c="",d=b.vm,e=a.indexOf("."),f=e>-1?a.slice(0,e):a;;){if(i.call(d.$data,f)||i.call(d,f))break;if(!d.$parent)break;d=d.$parent,c+="$parent."}return b=d.$compiler,i.call(b.bindings,a)||"$"===a.charAt(0)||b.createBinding(a),c}function f(a,b){var c;try{c=new Function(a)}catch(d){h.warn("Invalid expression: "+b)}return c}function g(a){return"$"===a.charAt(0)?"\\"+a:a}var h=b("./utils"),i=Object.prototype.hasOwnProperty,j="break,case,catch,continue,debugger,default,delete,do,else,false,finally,for,function,if,in,instanceof,new,null,return,switch,this,throw,true,try,typeof,var,void,while,with,undefined,abstract,boolean,byte,char,class,const,double,enum,export,extends,final,float,goto,implements,import,int,interface,long,native,package,private,protected,public,short,static,super,synchronized,throws,transient,volatile,arguments,let,yield,Math",k=new RegExp(["\\b"+j.replace(/,/g,"\\b|\\b")+"\\b"].join("|"),"g"),l=/\/\*(?:.|\n)*?\*\/|\/\/[^\n]*\n|\/\/[^\n]*$|'[^']*'|"[^"]*"|[\s\t\n]*\.[\s\t\n]*[$\w\.]+/g,m=/[^\w$]+/g,n=/\b\d[^,]*/g,o=/^,+|,+$/g;c.exports={parse:function(a,b){var c=d(a);if(!c.length)return f("return "+a,a);c=h.unique(c);var i="",j=new RegExp("[^$\\w\\.]("+c.map(g).join("|")+")[$\\w\\.]*\\b","g"),k=("return "+a).replace(j,function(a){var c=a.charAt(0);a=a.slice(1);var d="this."+e(a,b)+a;return i+=d+";",c+d});return k=i+k,f(k,a)}}}),a.register("vue/src/text-parser.js",function(a,b,c){var d=/\{\{(.+?)\}\}/;c.exports={parse:function(a){if(!d.test(a))return null;for(var b,c,e=[];b=a.match(d);)c=b.index,c>0&&e.push(a.slice(0,c)),e.push({key:b[1].trim()}),a=a.slice(c+b[0].length);return a.length&&e.push(a),e}}}),a.register("vue/src/deps-parser.js",function(a,b,c){function d(a){if(!a.isFn){f.log("\n─ "+a.key);var b=f.hash();g.on("get",function(c){var d=b[c.key];d&&d.compiler===c.compiler||(b[c.key]=c,f.log(" └─ "+c.key),a.deps.push(c),c.subs.push(a))}),a.value.$get(),g.off("get")}}var e=b("./emitter"),f=b("./utils"),g=new e;c.exports={observer:g,parse:function(a){f.log("\nparsing dependencies..."),g.active=!0,a.forEach(d),g.active=!1,f.log("\ndone.")}}}),a.register("vue/src/filters.js",function(a,b,c){var d={enter:13,tab:9,"delete":46,up:38,left:37,right:39,down:40,esc:27};c.exports={capitalize:function(a){return a||0===a?(a=a.toString(),a.charAt(0).toUpperCase()+a.slice(1)):""},uppercase:function(a){return a||0===a?a.toString().toUpperCase():""},lowercase:function(a){return a||0===a?a.toString().toLowerCase():""},currency:function(a,b){if(!a&&0!==a)return"";var c=b&&b[0]||"$",d=Math.floor(a).toString(),e=d.length%3,f=e>0?d.slice(0,e)+(d.length>3?",":""):"",g="."+a.toFixed(2).slice(-2);return c+f+d.slice(e).replace(/(\d{3})(?=\d)/g,"$1,")+g},pluralize:function(a,b){return b.length>1?b[a-1]||b[b.length-1]:b[a-1]||b[0]+"s"},key:function(a,b){if(a){var c=d[b[0]];return c||(c=parseInt(b[0],10)),function(b){b.keyCode===c&&a.call(this,b)}}}}}),a.register("vue/src/transition.js",function(a,b,c){function d(a,b,c){if(!g)return c(),k.CSS_SKIP;var d=a.classList,e=a.vue_trans_cb;if(b>0){e&&(a.removeEventListener(g,e),a.vue_trans_cb=null),d.add(i),c();{a.clientHeight}return d.remove(i),k.CSS_E}d.add(j);var f=function(b){b.target===a&&(a.removeEventListener(g,f),a.vue_trans_cb=null,c(),d.remove(j))};return a.addEventListener(g,f),a.vue_trans_cb=f,k.CSS_L}function e(a,b,c,d,e){var f=e.getOption("transitions",d);if(!f)return c(),k.JS_SKIP;var g=f.enter,h=f.leave;return b>0?"function"!=typeof g?(c(),k.JS_SKIP_E):(g(a,c),k.JS_E):"function"!=typeof h?(c(),k.JS_SKIP_L):(h(a,c),k.JS_L)}function f(){var a=document.createElement("vue"),b="transitionend",c={transition:b,mozTransition:b,webkitTransition:"webkitTransitionEnd"};for(var d in c)if(void 0!==a.style[d])return c[d]}var g=f(),h=b("./config"),i=h.enterClass,j=h.leaveClass,k={CSS_E:1,CSS_L:2,JS_E:3,JS_L:4,CSS_SKIP:-1,JS_SKIP:-2,JS_SKIP_E:-3,JS_SKIP_L:-4,INIT:-5,SKIP:-6},l=c.exports=function(a,b,c,f){var g=function(){c(),f.execHook(b>0?"enteredView":"leftView")};if(f.init)return g(),k.INIT;var h=a.vue_trans;return h?e(a,b,g,h,f):""===h?d(a,b,g):(g(),k.SKIP)};l.codes=k}),a.register("vue/src/directives/index.js",function(a,b,c){function d(a){return"-"===a.charAt(0)&&(a=a.slice(1)),a.replace(g,function(a,b){return b.toUpperCase()})}var e=b("../utils"),f=b("../transition");c.exports={on:b("./on"),repeat:b("./repeat"),model:b("./model"),"if":b("./if"),component:b("./component"),attr:function(a){this.el.setAttribute(this.arg,a)},text:function(a){this.el.textContent=e.toText(a)},html:function(a){this.el.innerHTML=e.toText(a)},visible:function(a){this.el.style.visibility=a?"":"hidden"},show:function(a){var b=this.el,c=a?"":"none",d=function(){b.style.display=c};f(b,a?1:-1,d,this.compiler)},"class":function(a){this.arg?this.el.classList[a?"add":"remove"](this.arg):(this.lastVal&&this.el.classList.remove(this.lastVal),a&&(this.el.classList.add(a),this.lastVal=a))},style:{bind:function(){this.arg=d(this.arg)},update:function(a){this.el.style[this.arg]=a}}};var g=/-(.)/g}),a.register("vue/src/directives/if.js",function(a,b,c){var d=b("../config"),e=b("../transition");c.exports={bind:function(){this.parent=this.el.parentNode,this.ref=document.createComment(d.prefix+"-if-"+this.key),this.el.vue_ref=this.ref},update:function(a){function b(){if(d.parentNode){var a=d.nextSibling;a?f.insertBefore(g,a):f.appendChild(g),f.removeChild(d)}}function c(){d.parentNode||(f.insertBefore(d,g),f.removeChild(g))}var d=this.el;if(!this.parent){if(!d.parentNode)return;this.parent=d.parentNode}var f=this.parent,g=this.ref,h=this.compiler;a?e(d,1,c,h):e(d,-1,b,h)},unbind:function(){this.el.vue_ref=null}}}),a.register("vue/src/directives/repeat.js",function(a,b,c){var d,e=b("../observer"),f=b("../emitter"),g=b("../utils"),h=b("../config"),i=b("../transition"),j={push:function(a){var b,c=a.args.length,d=this.collection.length-c;for(b=0;c>b;b++)this.buildItem(a.args[b],d+b)},pop:function(){var a=this.vms.pop();a&&a.$destroy()},unshift:function(a){var b,c=a.args.length;for(b=0;c>b;b++)this.buildItem(a.args[b],b)},shift:function(){var a=this.vms.shift();a&&a.$destroy()},splice:function(a){var b,c,d=a.args[0],e=a.args[1],f=a.args.length-2,g=this.vms.splice(d,e);for(b=0,c=g.length;c>b;b++)g[b].$destroy();for(b=0;f>b;b++)this.buildItem(a.args[b+2],d+b)},sort:function(){var a,b,c,d,e=this.vms,f=this.collection,g=f.length,h=new Array(g);for(a=0;g>a;a++)for(d=f[a],b=0;g>b;b++)if(c=e[b],c.$data===d){h[a]=c;break}for(a=0;g>a;a++)this.container.insertBefore(h[a].$el,this.ref);this.vms=h},reverse:function(){var a=this.vms;a.reverse();for(var b=0,c=a.length;c>b;b++)this.container.insertBefore(a[b].$el,this.ref)}};c.exports={bind:function(){var a=this,c=a.el,e=a.container=c.parentNode;d=d||b("../viewmodel");var f=g.attr(c,"component");a.ChildVM=a.compiler.getOption("components",f)||d,a.hasTrans=c.hasAttribute(h.attrs.transition),a.ref=document.createComment(h.prefix+"-repeat-"+a.arg),e.insertBefore(a.ref,c),e.removeChild(c),a.initiated=!1,a.collection=null,a.vms=null,a.mutationListener=function(b,c,d){var e=d.method;j[e].call(a,d),"push"!==e&&"pop"!==e&&a.updateIndexes()}},update:function(a){if(this.unbind(!0),this.container.vue_dHandlers=g.hash(),this.initiated||a&&a.length||(this.buildItem(),this.initiated=!0),a=this.collection=a||[],this.vms=[],a.__observer__||e.watchArray(a,null,new f),a.__observer__.on("mutate",this.mutationListener),a.length)for(var b=0,c=a.length;c>b;b++)this.buildItem(a[b],b)},buildItem:function(a,b){var c,d,e=this.el.cloneNode(!0),f=this.container;a&&(c=this.vms.length>b?this.vms[b].$el:this.ref,c.parentNode||(c=c.vue_ref),e.vue_trans=g.attr(e,"transition",!0),i(e,1,function(){f.insertBefore(e,c)},this.compiler)),d=new this.ChildVM({el:e,data:a,compilerOptions:{repeat:!0,repeatIndex:b,repeatCollection:this.collection,parentCompiler:this.compiler,delegator:f}}),a?this.vms.splice(b,0,d):d.$destroy()},updateIndexes:function(){for(var a=this.vms.length;a--;)this.vms[a].$data.$index=a},unbind:function(){if(this.collection){this.collection.__observer__.off("mutate",this.mutationListener);for(var a=this.vms.length;a--;)this.vms[a].$destroy()}var b=this.container,c=b.vue_dHandlers;for(var d in c)b.removeEventListener(c[d].event,c[d]);b.vue_dHandlers=null}}}),a.register("vue/src/directives/on.js",function(a,b,c){function d(a,b,c){for(;a&&a!==b;){if(a[c])return a;a=a.parentNode}}var e=b("../utils");c.exports={isFn:!0,bind:function(){this.compiler.repeat&&(this.el[this.expression]=!0,this.el.vue_viewmodel=this.vm)},update:function(a){if(this.unbind(!0),"function"!=typeof a)return e.warn('Directive "on" expects a function value.');var b=this.compiler,c=this.arg,f=this.binding.compiler.vm;if(b.repeat&&!this.vm.constructor.super&&"blur"!==c&&"focus"!==c){var g=b.delegator,h=this.expression,i=g.vue_dHandlers[h];if(i)return;i=g.vue_dHandlers[h]=function(b){var c=d(b.target,g,h);c&&(b.el=c,b.targetVM=c.vue_viewmodel,a.call(f,b))},i.event=c,g.addEventListener(c,i)}else{var j=this.vm;this.handler=function(b){b.el=b.currentTarget,b.targetVM=j,a.call(f,b)},this.el.addEventListener(c,this.handler)}},unbind:function(a){this.el.removeEventListener(this.arg,this.handler),this.handler=null,a||(this.el.vue_viewmodel=null)}}}),a.register("vue/src/directives/model.js",function(a,b,c){var d=b("../utils"),e=navigator.userAgent.indexOf("MSIE 9.0")>0;c.exports={bind:function(){var a=this,b=a.el,c=b.type,d=b.tagName;a.lock=!1,a.event=a.compiler.options.lazy||"SELECT"===d||"checkbox"===c||"radio"===c?"change":"input";var f=a.attr="checkbox"===c?"checked":"INPUT"===d||"SELECT"===d||"TEXTAREA"===d?"value":"innerHTML";a.set=a.filters?function(){var c;try{c=b.selectionStart}catch(d){}setTimeout(function(){a.vm.$set(a.key,b[f]),void 0!==c&&b.setSelectionRange(c,c)},0)}:function(){a.lock=!0,a.vm.$set(a.key,b[f]),a.lock=!1},b.addEventListener(a.event,a.set),e&&(a.onCut=function(){setTimeout(function(){a.set()},0)},a.onDel=function(b){(46===b.keyCode||8===b.keyCode)&&a.set()},b.addEventListener("cut",a.onCut),b.addEventListener("keyup",a.onDel))},update:function(a){if(!this.lock){var b=this,c=b.el;if("SELECT"===c.tagName){for(var e=c.options,f=e.length,g=-1;f--;)if(e[f].value==a){g=f;break}e.selectedIndex=g}else"radio"===c.type?c.checked=a==c.value:"checkbox"===c.type?c.checked=!!a:c[b.attr]=d.toText(a)}},unbind:function(){this.el.removeEventListener(this.event,this.set),e&&(this.el.removeEventListener("cut",this.onCut),this.el.removeEventListener("keyup",this.onDel))}}}),a.register("vue/src/directives/component.js",function(a,b,c){var d=b("../utils");c.exports={bind:function(){this.isSimple&&this.build()},update:function(a){this.component?this.component.$data=a:this.build(a)},build:function(a){var b=this.compiler.getOption("components",this.arg);b||d.warn("unknown component: "+this.arg);var c={el:this.el,data:a,compilerOptions:{parentCompiler:this.compiler}};this.component=new b(c)},unbind:function(){this.component.$destroy()}}}),a.alias("component-emitter/index.js","vue/deps/emitter/index.js"),a.alias("component-emitter/index.js","emitter/index.js"),a.alias("vue/src/main.js","vue/index.js"),"object"==typeof exports?module.exports=a("vue"):"function"==typeof define&&define.amd?define(function(){return a("vue")}):this.Vue=a("vue")}(); \ No newline at end of file +!function(){function a(b,c,d){var e=a.resolve(b);if(null==e){d=d||b,c=c||"root";var f=new Error('Failed to require "'+d+'" from "'+c+'"');throw f.path=d,f.parent=c,f.require=!0,f}var g=a.modules[e];if(!g._resolving&&!g.exports){var h={};h.exports={},h.client=h.component=!0,g._resolving=!0,g.call(this,h.exports,a.relative(e),h),delete g._resolving,g.exports=h.exports}return g.exports}a.modules={},a.aliases={},a.resolve=function(b){"/"===b.charAt(0)&&(b=b.slice(1));for(var c=[b,b+".js",b+".json",b+"/index.js",b+"/index.json"],d=0;dd;++d)c[d].apply(this,b)}return this},d.prototype.listeners=function(a){return this._callbacks=this._callbacks||{},this._callbacks[a]||[]},d.prototype.hasListeners=function(a){return!!this.listeners(a).length}}),a.register("vue/src/main.js",function(a,b,c){function d(a){var b=this;a=e(a,b.options,!0),k.processOptions(a);var c=function(c,d){d||(c=e(c,a,!0)),b.call(this,c,!0)},f=c.prototype=Object.create(b.prototype);k.defProtected(f,"constructor",c);var g=a.methods;if(g)for(var i in g)i in h.prototype||"function"!=typeof g[i]||(f[i]=g[i]);return c.extend=d,c.super=b,c.options=a,c}function e(a,b,c){if(a=a||k.hash(),!b)return a;for(var d in b)if("el"!==d&&"methods"!==d){var g=a[d],h=b[d],i=k.typeOf(g);c&&"Function"===i&&h?a[d]=f(g,h):c&&"Object"===i?e(g,h):void 0===g&&(a[d]=h)}return a}function f(a,b){return function(c){b.call(this,c),a.call(this,c)}}var g=b("./config"),h=b("./viewmodel"),i=b("./directives"),j=b("./filters"),k=b("./utils");h.config=function(a,b){if("string"==typeof a){if(void 0===b)return g[a];g[a]=b}else k.extend(g,a);return this},h.directive=function(a,b){return b?(i[a]=b,this):i[a]},h.filter=function(a,b){return b?(j[a]=b,this):j[a]},h.component=function(a,b){return b?(k.components[a]=k.toConstructor(b),this):k.components[a]},h.partial=function(a,b){return b?(k.partials[a]=k.toFragment(b),this):k.partials[a]},h.transition=function(a,b){return b?(k.transitions[a]=b,this):k.transitions[a]},h.extend=d,c.exports=h}),a.register("vue/src/emitter.js",function(a,b,c){var d,e="emitter";try{d=b(e)}catch(f){d=b("events").EventEmitter,d.prototype.off=function(){var a=arguments.length>1?this.removeListener:this.removeAllListeners;return a.apply(this,arguments)}}c.exports=d}),a.register("vue/src/config.js",function(a,b,c){function d(){f.forEach(function(a){g.attrs[a]=e+"-"+a})}var e="v",f=["pre","text","repeat","partial","component","component-id","transition"],g=c.exports={async:!0,debug:!1,silent:!1,enterClass:"v-enter",leaveClass:"v-leave",attrs:{},get prefix(){return e},set prefix(a){e=a,d()}};d()}),a.register("vue/src/utils.js",function(a,b,c){function d(){return Object.create(null)}var e,f=b("./config"),g=f.attrs,h=Object.prototype.toString,i=Array.prototype.join,j=window.console,k=navigator.userAgent.indexOf("PhantomJS")>-1?window.setTimeout:window.webkitRequestAnimationFrame||window.requestAnimationFrame||window.setTimeout,l=c.exports={hash:d,components:d(),partials:d(),transitions:d(),attr:function(a,b,c){var d=g[b],e=a.getAttribute(d);return c||null===e||a.removeAttribute(d),e},defProtected:function(a,b,c,d,e){a.hasOwnProperty(b)||Object.defineProperty(a,b,{value:c,enumerable:!!d,configurable:!!e})},typeOf:function(a){return h.call(a).slice(8,-1)},bind:function(a,b){return function(c){return a.call(b,c)}},toText:function(a){return"string"==typeof a||"boolean"==typeof a||"number"==typeof a&&a==a?a:""},extend:function(a,b,c){for(var d in b)c&&a[d]||(a[d]=b[d])},unique:function(a){for(var b,c=l.hash(),d=a.length,e=[];d--;)b=a[d],c[b]||(c[b]=1,e.push(b));return e},toFragment:function(a){if("string"!=typeof a)return a;if("#"===a.charAt(0)){var b=document.getElementById(a.slice(1));if(!b)return;a=b.innerHTML}var c,d=document.createElement("div"),e=document.createDocumentFragment();for(d.innerHTML=a.trim();c=d.firstChild;)e.appendChild(c);return e},toConstructor:function(a){return e=e||b("./viewmodel"),"Object"===l.typeOf(a)?e.extend(a):"function"==typeof a?a:null},processOptions:function(a){var b,c=a.components,d=a.partials,e=a.template;if(c)for(b in c)c[b]=l.toConstructor(c[b]);if(d)for(b in d)d[b]=l.toFragment(d[b]);e&&(a.template=l.toFragment(e))},log:function(){f.debug&&j&&j.log(i.call(arguments," "))},warn:function(){!f.silent&&j&&j.warn(i.call(arguments," "))},nextTick:function(a){k(a,0)}}}),a.register("vue/src/compiler.js",function(a,b,c){function d(a,b){var c=this;c.init=!0,b=c.options=b||r(),i.processOptions(b);var d=c.data=b.data||{};s(a,d,!0),s(a,b.methods,!0),s(c,b.compilerOptions);var h=c.setupElement(b);q("\nnew VM instance:",h.tagName,"\n"),c.vm=a,c.dirs=[],c.exps=[],c.computed=[],c.childCompilers=[],c.emitter=new f;var j=c.parentCompiler;c.bindings=j?Object.create(j.bindings):r(),c.rootCompiler=j?e(j):c,t(a,"$",r()),t(a,"$el",h),t(a,"$compiler",c),t(a,"$root",c.rootCompiler.vm);var k=i.attr(h,"component-id");j&&(j.childCompilers.push(c),t(a,"$parent",j.vm),k&&(c.childId=k,j.vm.$[k]=a)),c.setupObserver(),c.execHook("beforeCompile","created"),s(d,a),g.observe(d,"",c.observer),c.repeat&&(t(d,"$index",c.repeatIndex,!1,!0),c.createBinding("$index")),Object.defineProperty(a,"$data",{enumerable:!1,get:function(){return c.data},set:function(a){var b=c.data;g.unobserve(b,"",c.observer),c.data=a,g.copyPaths(a,b),g.observe(a,"",c.observer)}}),c.compile(h,!0),c.computed.length&&m.parse(c.computed),c.init=!1,c.execHook("afterCompile","ready")}function e(a){for(;a.parentCompiler;)a=a.parentCompiler;return a}var f=b("./emitter"),g=b("./observer"),h=b("./config"),i=b("./utils"),j=b("./binding"),k=b("./directive"),l=b("./text-parser"),m=b("./deps-parser"),n=b("./exp-parser"),o=m.observer,p=Array.prototype.slice,q=i.log,r=i.hash,s=i.extend,t=i.defProtected,u=Object.prototype.hasOwnProperty,v=d.prototype;v.setupElement=function(a){var b=this.el="string"==typeof a.el?document.querySelector(a.el):a.el||document.createElement(a.tagName||"div"),c=a.template;if(c)if(a.replace&&1===c.childNodes.length){var d=c.childNodes[0].cloneNode(!0);b.parentNode&&(b.parentNode.insertBefore(d,b),b.parentNode.removeChild(b)),b=d}else b.innerHTML="",b.appendChild(c.cloneNode(!0));a.id&&(b.id=a.id),a.className&&(b.className=a.className);var e=a.attributes;if(e)for(var f in e)b.setAttribute(f,e[f]);return b},v.setupObserver=function(){function a(a){u.call(c,a)||b.createBinding(a)}var b=this,c=b.bindings,d=b.observer=new f;d.proxies=r(),d.on("get",function(b){a(b),o.emit("get",c[b])}).on("set",function(b,e){d.emit("change:"+b,e),a(b),c[b].update(e)}).on("mutate",function(b,e,f){d.emit("change:"+b,e,f),a(b),c[b].pub()})},v.compile=function(a,b){var c=this,d=a.nodeType,e=a.tagName;if(1===d&&"SCRIPT"!==e){if(null!==i.attr(a,"pre"))return;var f,g,j,l;if(f=i.attr(a,"repeat"))l=k.parse(h.attrs.repeat,f,c,a),l&&c.bindDirective(l);else if(!b&&(g=i.attr(a,"component")))l=k.parse(h.attrs.component,g,c,a),l&&(-1===g.indexOf(":")&&(l.isSimple=!0,l.arg=l.key),c.bindDirective(l));else{if(a.vue_trans=i.attr(a,"transition"),j=i.attr(a,"partial")){var m=c.getOption("partials",j);m&&(a.innerHTML="",a.appendChild(m.cloneNode(!0)))}c.compileNode(a)}}else 3===d&&c.compileTextNode(a)},v.compileNode=function(a){var b,c,d=a.attributes;if(d&&d.length){var e,f,g,h;for(b=d.length;b--;){for(e=d[b],f=!1,g=k.split(e.value),c=g.length;c--;){h=g[c];var i=k.parse(e.name,h,this,a);i&&(f=!0,this.bindDirective(i))}f&&a.removeAttribute(e.name)}}if(a.childNodes.length){var j=p.call(a.childNodes);for(b=0,c=j.length;c>b;b++)this.compile(j[b])}},v.compileTextNode=function(a){var b=l.parse(a.nodeValue);if(b){for(var c,d,e,f=h.attrs.text,g=0,i=b.length;i>g;g++){if(d=b[g],d.key)if(">"===d.key.charAt(0)){var j=d.key.slice(1).trim(),m=this.getOption("partials",j);m&&(c=m.cloneNode(!0),this.compileNode(c))}else c=document.createTextNode(""),e=k.parse(f,d.key,this,c),e&&this.bindDirective(e);else c=document.createTextNode(d);a.parentNode.insertBefore(c,a)}a.parentNode.removeChild(a)}},v.bindDirective=function(a){if(this.dirs.push(a),a.isSimple)return a.bind&&a.bind(),void 0;var b,c=this,d=a.key,e=d.split(".")[0];b=a.isExp?c.createBinding(d,!0,a.isFn):u.call(c.data,e)||u.call(c.vm,e)?u.call(c.bindings,d)?c.bindings[d]:c.createBinding(d):c.bindings[d]||c.rootCompiler.createBinding(d),b.instances.push(a),a.binding=b,a.bind&&a.bind();var f=b.value;void 0!==f&&(b.isComputed?a.refresh(f):a.update(f,!0))},v.createBinding=function(a,b,c){var d=this,e=d.bindings,f=new j(d,a,b,c);if(b){var h=n.parse(a,d);h&&(q(" created expression binding: "+a),f.value=c?h:{$get:h},d.markComputed(f),d.exps.push(f))}else if(q(" created binding: "+a),e[a]=f,f.root)d.define(a,f);else{g.ensurePath(d.data,a);var i=a.slice(0,a.lastIndexOf("."));u.call(e,i)||d.createBinding(i)}return f},v.define=function(a,b){q(" defined root binding: "+a);var c=this,d=c.data,e=c.vm,f=b.value=d[a];"Object"===i.typeOf(f)&&f.$get&&c.markComputed(b),a in d||(d[a]=void 0),d.__observer__&&g.convert(d,a),Object.defineProperty(e,a,{get:b.isComputed?function(){return c.data[a].$get()}:function(){return c.data[a]},set:b.isComputed?function(b){c.data[a].$set&&c.data[a].$set(b)}:function(b){c.data[a]=b}})},v.markComputed=function(a){var b=a.value,c=this.vm;a.isComputed=!0,a.isFn?a.value=i.bind(b,c):(b.$get=i.bind(b.$get,c),b.$set&&(b.$set=i.bind(b.$set,c))),this.computed.push(a)},v.getOption=function(a,b){var c=this.options,d=this.parentCompiler;return c[a]&&c[a][b]||(d?d.getOption(a,b):i[a]&&i[a][b])},v.execHook=function(a,b){var c=this.options,d=c[a]||c[b];d&&d.call(this.vm,c)},v.destroy=function(){var a,b,c,d,e,f=this,h=f.vm,i=f.el,j=f.dirs,k=f.exps,l=f.bindings;for(f.execHook("beforeDestroy"),f.observer.off(),f.emitter.off(),a=j.length;a--;)c=j[a],c.isSimple||c.binding.compiler===f||(d=c.binding.instances,d&&d.splice(d.indexOf(c),1)),c.unbind();for(a=k.length;a--;)k[a].unbind();for(b in l)u.call(l,b)&&(e=l[b],e.root&&g.unobserve(e.value,e.key,f.observer),e.unbind());var m=f.parentCompiler,n=f.childId;m&&(m.childCompilers.splice(m.childCompilers.indexOf(f),1),n&&delete m.vm.$[n]),i===document.body?i.innerHTML="":h.$remove(),f.execHook("afterDestroy")},c.exports=d}),a.register("vue/src/viewmodel.js",function(a,b,c){function d(a){new g(this,a)}function e(a){return"string"==typeof a?document.querySelector(a):a}function f(a,b){var c=b[0],d=a.$compiler.bindings[c];return d?d.compiler.vm:null}var g=b("./compiler"),h=b("./utils"),i=b("./transition"),j=h.defProtected,k=h.nextTick,l=d.prototype;j(l,"$set",function(a,b){var c=a.split("."),d=f(this,c);if(d){for(var e=0,g=c.length-1;g>e;e++)d=d[c[e]];d[c[e]]=b}}),j(l,"$watch",function(a,b){this.$compiler.observer.on("change:"+a,b)}),j(l,"$unwatch",function(a,b){var c=["change:"+a],d=this.$compiler.observer;b&&c.push(b),d.off.apply(d,c)}),j(l,"$destroy",function(){this.$compiler.destroy()}),j(l,"$broadcast",function(){for(var a,b=this.$compiler.childCompilers,c=b.length;c--;)a=b[c],a.emitter.emit.apply(a.emitter,arguments),a.vm.$broadcast.apply(a.vm,arguments)}),j(l,"$emit",function(){var a=this.$compiler,b=a.emitter,c=a.parentCompiler;b.emit.apply(b,arguments),c&&c.vm.$emit.apply(c.vm,arguments)}),["on","off","once"].forEach(function(a){j(l,"$"+a,function(){var b=this.$compiler.emitter;b[a].apply(b,arguments)})}),j(l,"$appendTo",function(a,b){a=e(a);var c=this.$el;i(c,1,function(){a.appendChild(c),b&&k(b)},this.$compiler)}),j(l,"$remove",function(a){var b=this.$el,c=b.parentNode;c&&i(b,-1,function(){c.removeChild(b),a&&k(a)},this.$compiler)}),j(l,"$before",function(a,b){a=e(a);var c=this.$el,d=a.parentNode;d&&i(c,1,function(){d.insertBefore(c,a),b&&k(b)},this.$compiler)}),j(l,"$after",function(a,b){a=e(a);var c=this.$el,d=a.parentNode,f=a.nextSibling;d&&i(c,1,function(){f?d.insertBefore(c,f):d.appendChild(c),b&&k(b)},this.$compiler)}),c.exports=d}),a.register("vue/src/binding.js",function(a,b,c){function d(a,b,c,d){this.id=f++,this.value=void 0,this.isExp=!!c,this.isFn=d,this.root=!this.isExp&&-1===b.indexOf("."),this.compiler=a,this.key=b,this.instances=[],this.subs=[],this.deps=[],this.unbound=!1}var e=b("./batcher"),f=0,g=d.prototype;g.update=function(a){this.value=a,e.queue(this,"update")},g._update=function(){for(var a=this.instances.length;a--;)this.instances[a].update(this.value);this.pub()},g.refresh=function(){e.queue(this,"refresh")},g._refresh=function(){for(var a=this.instances.length;a--;)this.instances[a].refresh();this.pub()},g.pub=function(){for(var a=this.subs.length;a--;)this.subs[a].refresh()},g.unbind=function(){this.unbound=!0;for(var a=this.instances.length;a--;)this.instances[a].unbind();a=this.deps.length;for(var b;a--;)b=this.deps[a].subs,b.splice(b.indexOf(this),1)},c.exports=d}),a.register("vue/src/observer.js",function(a,b,c){function d(a){for(var b in a)f(a,b)}function e(a,b){var c=a.__observer__;if(c||(c=new n,r(a,"__observer__",c)),c.path=b,w)a.__proto__=x;else for(var d in x)r(a,d,x[d])}function f(a,b){var c=b.charAt(0);if("$"!==c&&"_"!==c||"$index"===b){var d=a.__observer__,e=a[b],f=d.values;f[b]=e,d.emit("set",b,e),Object.defineProperty(a,b,{get:function(){var a=f[b];return p.active&&q(a)!==t&&d.emit("get",b),a},set:function(a){var c=f[b];l(c,b,d),f[b]=a,i(a,c),d.emit("set",b,a),k(a,b,d)}}),k(e,b,d)}}function g(a){m=m||b("./viewmodel");var c=q(a);return!(c!==t&&c!==u||a instanceof m)}function h(a){var b=q(a),c=a&&a.__observer__;if(b===u)c.emit("set","length",a.length);else if(b===t){var d,e;for(d in a)e=a[d],c.emit("set",d,e),h(e)}}function i(a,b){if(q(b)===t&&q(a)===t){var c,d,e,f;for(c in b)c in a||(e=b[c],d=q(e),d===t?(f=a[c]={},i(f,e)):a[c]=d===u?[]:void 0)}}function j(a,b){for(var c,d=b.split("."),e=0,g=d.length-1;g>e;e++)c=d[e],a[c]||(a[c]={},a.__observer__&&f(a,c)),a=a[c];q(a)===t&&(c=d[e],c in a||(a[c]=void 0,a.__observer__&&f(a,c)))}function k(a,b,c){if(g(a)){var f,i=b?b+".":"",j=!!a.__observer__;j||r(a,"__observer__",new n),f=a.__observer__,f.values=f.values||o.hash(),c.proxies=c.proxies||{};var k=c.proxies[i]={get:function(a){c.emit("get",i+a)},set:function(a,b){c.emit("set",i+a,b)},mutate:function(a,d,e){var f=a?i+a:b;c.emit("mutate",f,d,e);var g=e.method;"sort"!==g&&"reverse"!==g&&c.emit("set",f+".length",d.length)}};if(f.on("get",k.get).on("set",k.set).on("mutate",k.mutate),j)h(a);else{var l=q(a);l===t?d(a):l===u&&e(a)}}}function l(a,b,c){if(a&&a.__observer__){b=b?b+".":"";var d=c.proxies[b];d&&(a.__observer__.off("get",d.get).off("set",d.set).off("mutate",d.mutate),c.proxies[b]=null)}}var m,n=b("./emitter"),o=b("./utils"),p=b("./deps-parser").observer,q=o.typeOf,r=o.defProtected,s=Array.prototype.slice,t="Object",u="Array",v=["push","pop","shift","unshift","splice","sort","reverse"],w={}.__proto__,x=Object.create(Array.prototype);v.forEach(function(a){r(x,a,function(){var b=Array.prototype[a].apply(this,arguments);return this.__observer__.emit("mutate",this.__observer__.path,this,{method:a,args:s.call(arguments),result:b}),b},!w)});var y={remove:function(a){if("function"==typeof a){for(var b=this.length,c=[];b--;)a(this[b])&&c.push(this.splice(b,1)[0]);return c.reverse()}return"number"!=typeof a&&(a=this.indexOf(a)),a>-1?this.splice(a,1)[0]:void 0},replace:function(a,b){if("function"==typeof a){for(var c,d=this.length,e=[];d--;)c=a(this[d]),void 0!==c&&e.push(this.splice(d,1,c)[0]);return e.reverse()}return"number"!=typeof a&&(a=this.indexOf(a)),a>-1?this.splice(a,1,b)[0]:void 0}};for(var z in y)r(x,z,y[z],!w);c.exports={observe:k,unobserve:l,ensurePath:j,convert:f,copyPaths:i,watchArray:e}}),a.register("vue/src/directive.js",function(a,b,c){function d(a,b,c,d,g){this.compiler=d,this.vm=d.vm,this.el=g;var h=""===b;if("function"==typeof a)this[h?"bind":"_update"]=a;else for(var i in a)"unbind"===i||"update"===i?this["_"+i]=a[i]:this[i]=a[i];if(h)return this.isSimple=!0,void 0;this.expression=b.trim(),this.rawKey=c,e(this,c),this.isExp=!q.test(this.key)||p.test(this.key);var j=this.expression.slice(c.length).match(n);if(j){this.filters=[];for(var k,l=0,m=j.length;m>l;l++)k=f(j[l],this.compiler),k&&this.filters.push(k);this.filters.length||(this.filters=null)}else this.filters=null}function e(a,b){var c=b;if(b.indexOf(":")>-1){var d=b.match(m);c=d?d[2].trim():c,a.arg=d?d[1].trim():null}a.key=c}function f(a,b){var c=a.slice(1).match(o);if(c){c=c.map(function(a){return a.replace(/'/g,"").trim()});var d=c[0],e=b.getOption("filters",d)||j[d];return e?{name:d,apply:e,args:c.length>1?c.slice(1):null}:(h.warn("Unknown filter: "+d),void 0)}}var g=b("./config"),h=b("./utils"),i=b("./directives"),j=b("./filters"),k=/(?:['"](?:\\.|[^'"])*['"]|\((?:\\.|[^\)])*\)|\\.|[^,])+/g,l=/^(?:['"](?:\\.|[^'"])*['"]|\\.|[^\|]|\|\|)+/,m=/^([\w- ]+):(.+)$/,n=/\|[^\|]+/g,o=/[^\s']+|'[^']+'/g,p=/^\$(parent|root)\./,q=/^[\w\.\$]+$/,r=d.prototype;r.update=function(a,b){(b||a!==this.value)&&(this.value=a,this.apply(a))},r.refresh=function(a){if(a&&(this.value=a),this.isFn)a=this.value;else{if(a=this.value.$get(),void 0!==a&&a===this.computedValue)return;this.computedValue=a}this.apply(a)},r.apply=function(a){this._update(this.filters?this.applyFilters(a):a)},r.applyFilters=function(a){for(var b,c=a,d=0,e=this.filters.length;e>d;d++)b=this.filters[d],c=b.apply.call(this.vm,c,b.args);return c},r.unbind=function(a){this.el&&(this._unbind&&this._unbind(a),a||(this.vm=this.el=this.binding=this.compiler=null))},d.split=function(a){return a.indexOf(",")>-1?a.match(k)||[""]:[a]},d.parse=function(a,b,c,e){var f=g.prefix+"-";if(0===a.indexOf(f)){a=a.slice(f.length);var j=c.getOption("directives",a)||i[a];if(!j)return h.warn("unknown directive: "+a);var k;if(b.indexOf("|")>-1){var m=b.match(l);m&&(k=m[0].trim())}else k=b.trim();return k||""===b?new d(j,b,k,c,e):h.warn("invalid directive expression: "+b)}},c.exports=d}),a.register("vue/src/exp-parser.js",function(a,b,c){function d(a){return a=a.replace(l,"").replace(m,",").replace(k,"").replace(n,"").replace(o,""),a?a.split(/,+/):[]}function e(a,b){for(var c="",d=b.vm,e=a.indexOf("."),f=e>-1?a.slice(0,e):a;;){if(i.call(d.$data,f)||i.call(d,f))break;if(!d.$parent)break;d=d.$parent,c+="$parent."}return b=d.$compiler,i.call(b.bindings,a)||"$"===a.charAt(0)||b.createBinding(a),c}function f(a,b){var c;try{c=new Function(a)}catch(d){h.warn("Invalid expression: "+b)}return c}function g(a){return"$"===a.charAt(0)?"\\"+a:a}var h=b("./utils"),i=Object.prototype.hasOwnProperty,j="break,case,catch,continue,debugger,default,delete,do,else,false,finally,for,function,if,in,instanceof,new,null,return,switch,this,throw,true,try,typeof,var,void,while,with,undefined,abstract,boolean,byte,char,class,const,double,enum,export,extends,final,float,goto,implements,import,int,interface,long,native,package,private,protected,public,short,static,super,synchronized,throws,transient,volatile,arguments,let,yield,Math",k=new RegExp(["\\b"+j.replace(/,/g,"\\b|\\b")+"\\b"].join("|"),"g"),l=/\/\*(?:.|\n)*?\*\/|\/\/[^\n]*\n|\/\/[^\n]*$|'[^']*'|"[^"]*"|[\s\t\n]*\.[\s\t\n]*[$\w\.]+/g,m=/[^\w$]+/g,n=/\b\d[^,]*/g,o=/^,+|,+$/g;c.exports={parse:function(a,b){var c=d(a);if(!c.length)return f("return "+a,a);c=h.unique(c);var i="",j=new RegExp("[^$\\w\\.]("+c.map(g).join("|")+")[$\\w\\.]*\\b","g"),k=("return "+a).replace(j,function(a){var c=a.charAt(0);a=a.slice(1);var d="this."+e(a,b)+a;return i+=d+";",c+d});return k=i+k,f(k,a)}}}),a.register("vue/src/text-parser.js",function(a,b,c){var d=/\{\{(.+?)\}\}/;c.exports={parse:function(a){if(!d.test(a))return null;for(var b,c,e=[];b=a.match(d);)c=b.index,c>0&&e.push(a.slice(0,c)),e.push({key:b[1].trim()}),a=a.slice(c+b[0].length);return a.length&&e.push(a),e}}}),a.register("vue/src/deps-parser.js",function(a,b,c){function d(a){if(!a.isFn){f.log("\n─ "+a.key);var b=f.hash();g.on("get",function(c){var d=b[c.key];d&&d.compiler===c.compiler||(b[c.key]=c,f.log(" └─ "+c.key),a.deps.push(c),c.subs.push(a))}),a.value.$get(),g.off("get")}}var e=b("./emitter"),f=b("./utils"),g=new e;c.exports={observer:g,parse:function(a){f.log("\nparsing dependencies..."),g.active=!0,a.forEach(d),g.active=!1,f.log("\ndone.")}}}),a.register("vue/src/filters.js",function(a,b,c){var d={enter:13,tab:9,"delete":46,up:38,left:37,right:39,down:40,esc:27};c.exports={capitalize:function(a){return a||0===a?(a=a.toString(),a.charAt(0).toUpperCase()+a.slice(1)):""},uppercase:function(a){return a||0===a?a.toString().toUpperCase():""},lowercase:function(a){return a||0===a?a.toString().toLowerCase():""},currency:function(a,b){if(!a&&0!==a)return"";var c=b&&b[0]||"$",d=Math.floor(a).toString(),e=d.length%3,f=e>0?d.slice(0,e)+(d.length>3?",":""):"",g="."+a.toFixed(2).slice(-2);return c+f+d.slice(e).replace(/(\d{3})(?=\d)/g,"$1,")+g},pluralize:function(a,b){return b.length>1?b[a-1]||b[b.length-1]:b[a-1]||b[0]+"s"},key:function(a,b){if(a){var c=d[b[0]];return c||(c=parseInt(b[0],10)),function(b){b.keyCode===c&&a.call(this,b)}}}}}),a.register("vue/src/transition.js",function(a,b,c){function d(a,b,c){if(!g)return c(),k.CSS_SKIP;var d=a.classList,e=a.vue_trans_cb;if(b>0){e&&(a.removeEventListener(g,e),a.vue_trans_cb=null),d.add(i),c();{a.clientHeight}return d.remove(i),k.CSS_E}d.add(j);var f=function(b){b.target===a&&(a.removeEventListener(g,f),a.vue_trans_cb=null,c(),d.remove(j))};return a.addEventListener(g,f),a.vue_trans_cb=f,k.CSS_L}function e(a,b,c,d,e){var f=e.getOption("transitions",d);if(!f)return c(),k.JS_SKIP;var g=f.enter,h=f.leave;return b>0?"function"!=typeof g?(c(),k.JS_SKIP_E):(g(a,c),k.JS_E):"function"!=typeof h?(c(),k.JS_SKIP_L):(h(a,c),k.JS_L)}function f(){var a=document.createElement("vue"),b="transitionend",c={transition:b,mozTransition:b,webkitTransition:"webkitTransitionEnd"};for(var d in c)if(void 0!==a.style[d])return c[d]}var g=f(),h=b("./config"),i=h.enterClass,j=h.leaveClass,k={CSS_E:1,CSS_L:2,JS_E:3,JS_L:4,CSS_SKIP:-1,JS_SKIP:-2,JS_SKIP_E:-3,JS_SKIP_L:-4,INIT:-5,SKIP:-6},l=c.exports=function(a,b,c,f){var g=function(){c(),f.execHook(b>0?"enteredView":"leftView")};if(f.init)return g(),k.INIT;var h=a.vue_trans;return h?e(a,b,g,h,f):""===h?d(a,b,g):(g(),k.SKIP)};l.codes=k}),a.register("vue/src/batcher.js",function(a,b){function c(){for(var a=0;ab;b++)this.buildItem(a.args[b],d+b)},pop:function(){var a=this.vms.pop();a&&a.$destroy()},unshift:function(a){var b,c=a.args.length;for(b=0;c>b;b++)this.buildItem(a.args[b],b)},shift:function(){var a=this.vms.shift();a&&a.$destroy()},splice:function(a){var b,c,d=a.args[0],e=a.args[1],f=a.args.length-2,g=this.vms.splice(d,e);for(b=0,c=g.length;c>b;b++)g[b].$destroy();for(b=0;f>b;b++)this.buildItem(a.args[b+2],d+b)},sort:function(){var a,b,c,d,e=this.vms,f=this.collection,g=f.length,h=new Array(g);for(a=0;g>a;a++)for(d=f[a],b=0;g>b;b++)if(c=e[b],c.$data===d){h[a]=c;break}for(a=0;g>a;a++)this.container.insertBefore(h[a].$el,this.ref);this.vms=h},reverse:function(){var a=this.vms;a.reverse();for(var b=0,c=a.length;c>b;b++)this.container.insertBefore(a[b].$el,this.ref)}};c.exports={bind:function(){var a=this,c=a.el,e=a.container=c.parentNode;d=d||b("../viewmodel");var f=g.attr(c,"component");a.ChildVM=a.compiler.getOption("components",f)||d,a.hasTrans=c.hasAttribute(h.attrs.transition),a.ref=document.createComment(h.prefix+"-repeat-"+a.arg),e.insertBefore(a.ref,c),e.removeChild(c),a.initiated=!1,a.collection=null,a.vms=null,a.mutationListener=function(b,c,d){var e=d.method;j[e].call(a,d),"push"!==e&&"pop"!==e&&a.updateIndexes()}},update:function(a){if(this.unbind(!0),this.container.vue_dHandlers=g.hash(),this.initiated||a&&a.length||(this.buildItem(),this.initiated=!0),a=this.collection=a||[],this.vms=[],a.__observer__||e.watchArray(a,null,new f),a.__observer__.on("mutate",this.mutationListener),a.length)for(var b=0,c=a.length;c>b;b++)this.buildItem(a[b],b)},buildItem:function(a,b){var c,d,e=this.el.cloneNode(!0),f=this.container;a&&(c=this.vms.length>b?this.vms[b].$el:this.ref,c.parentNode||(c=c.vue_ref),e.vue_trans=g.attr(e,"transition",!0),i(e,1,function(){f.insertBefore(e,c)},this.compiler)),d=new this.ChildVM({el:e,data:a,compilerOptions:{repeat:!0,repeatIndex:b,repeatCollection:this.collection,parentCompiler:this.compiler,delegator:f}}),a?this.vms.splice(b,0,d):d.$destroy()},updateIndexes:function(){for(var a=this.vms.length;a--;)this.vms[a].$data.$index=a},unbind:function(){if(this.collection){this.collection.__observer__.off("mutate",this.mutationListener);for(var a=this.vms.length;a--;)this.vms[a].$destroy()}var b=this.container,c=b.vue_dHandlers;for(var d in c)b.removeEventListener(c[d].event,c[d]);b.vue_dHandlers=null}}}),a.register("vue/src/directives/on.js",function(a,b,c){function d(a,b,c){for(;a&&a!==b;){if(a[c])return a;a=a.parentNode}}var e=b("../utils");c.exports={isFn:!0,bind:function(){this.compiler.repeat&&(this.el[this.expression]=!0,this.el.vue_viewmodel=this.vm)},update:function(a){if(this.unbind(!0),"function"!=typeof a)return e.warn('Directive "on" expects a function value.');var b=this.compiler,c=this.arg,f=this.binding.compiler.vm;if(b.repeat&&!this.vm.constructor.super&&"blur"!==c&&"focus"!==c){var g=b.delegator,h=this.expression,i=g.vue_dHandlers[h];if(i)return;i=g.vue_dHandlers[h]=function(b){var c=d(b.target,g,h);c&&(b.el=c,b.targetVM=c.vue_viewmodel,a.call(f,b))},i.event=c,g.addEventListener(c,i)}else{var j=this.vm;this.handler=function(b){b.el=b.currentTarget,b.targetVM=j,a.call(f,b)},this.el.addEventListener(c,this.handler)}},unbind:function(a){this.el.removeEventListener(this.arg,this.handler),this.handler=null,a||(this.el.vue_viewmodel=null)}}}),a.register("vue/src/directives/model.js",function(a,b,c){var d=b("../utils"),e=navigator.userAgent.indexOf("MSIE 9.0")>0;c.exports={bind:function(){var a=this,b=a.el,c=b.type,f=b.tagName;a.lock=!1,a.event=a.compiler.options.lazy||"SELECT"===f||"checkbox"===c||"radio"===c?"change":"input";var g=a.attr="checkbox"===c?"checked":"INPUT"===f||"SELECT"===f||"TEXTAREA"===f?"value":"innerHTML";a.set=a.filters?function(){var c;try{c=b.selectionStart}catch(e){}a.vm.$set(a.key,b[g]),d.nextTick(function(){void 0!==c&&b.setSelectionRange(c,c)})}:function(){a.lock=!0,a.vm.$set(a.key,b[g]),a.lock=!1},b.addEventListener(a.event,a.set),e&&(a.onCut=function(){d.nextTick(function(){a.set()})},a.onDel=function(b){(46===b.keyCode||8===b.keyCode)&&a.set()},b.addEventListener("cut",a.onCut),b.addEventListener("keyup",a.onDel))},update:function(a){if(!this.lock){var b=this,c=b.el;if("SELECT"===c.tagName){for(var e=c.options,f=e.length,g=-1;f--;)if(e[f].value==a){g=f;break}e.selectedIndex=g}else"radio"===c.type?c.checked=a==c.value:"checkbox"===c.type?c.checked=!!a:c[b.attr]=d.toText(a)}},unbind:function(){this.el.removeEventListener(this.event,this.set),e&&(this.el.removeEventListener("cut",this.onCut),this.el.removeEventListener("keyup",this.onDel))}}}),a.register("vue/src/directives/component.js",function(a,b,c){var d=b("../utils");c.exports={bind:function(){this.isSimple&&this.build()},update:function(a){this.component?this.component.$data=a:this.build(a)},build:function(a){var b=this.compiler.getOption("components",this.arg);b||d.warn("unknown component: "+this.arg);var c={el:this.el,data:a,compilerOptions:{parentCompiler:this.compiler}};this.component=new b(c)},unbind:function(){this.component.$destroy()}}}),a.alias("component-emitter/index.js","vue/deps/emitter/index.js"),a.alias("component-emitter/index.js","emitter/index.js"),a.alias("vue/src/main.js","vue/index.js"),"object"==typeof exports?module.exports=a("vue"):"function"==typeof define&&define.amd?define(function(){return a("vue")}):this.Vue=a("vue")}(); \ No newline at end of file diff --git a/package.json b/package.json index 0df1b0505ee..89c8fab6dfe 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue", - "version": "0.7.0", + "version": "0.7.1", "author": { "name": "Evan You", "email": "yyx990803@gmail.com", diff --git a/tasks/release.js b/tasks/release.js index 084f5dc02b4..933a9223ef2 100644 --- a/tasks/release.js +++ b/tasks/release.js @@ -27,7 +27,7 @@ module.exports = function (grunt) { grunt.registerTask('release', function (version) { var done = this.async(), - current = grunt.config('pkg.version'), + current = grunt.config('version'), next = semver.inc(current, version || 'patch') || version if (!semver.valid(next)) {