Skip to content

Instantly share code, notes, and snippets.

@michaelowens
Last active August 29, 2015 14:27
Show Gist options
  • Save michaelowens/d1ea0955028b6263634c to your computer and use it in GitHub Desktop.
Save michaelowens/d1ea0955028b6263634c to your computer and use it in GitHub Desktop.
requirebin sketch
// require() some stuff from npm (like you were using browserify)
// and then hit Run Code to run it on the right
var Vue = require('vue');
// e.g. logged-in.js
var loggedIn /*module.exports*/ = function (user) {
// check if user is logged in
return true;
}
// e.g. app.js
new Vue({
el: '#app',
methods: {
loggedIn: loggedIn /* require('./logged-in.js') */
}
});
// e.g. admin.js
new Vue({
el: '#admin',
methods: {
loggedIn: loggedIn /* require('./logged-in.js') */
}
});
require=function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}({1:[function(require,module,exports){var process=module.exports={};process.nextTick=function(){var canSetImmediate=typeof window!=="undefined"&&window.setImmediate;var canMutationObserver=typeof window!=="undefined"&&window.MutationObserver;var canPost=typeof window!=="undefined"&&window.postMessage&&window.addEventListener;if(canSetImmediate){return function(f){return window.setImmediate(f)}}var queue=[];if(canMutationObserver){var hiddenDiv=document.createElement("div");var observer=new MutationObserver(function(){var queueList=queue.slice();queue.length=0;queueList.forEach(function(fn){fn()})});observer.observe(hiddenDiv,{attributes:true});return function nextTick(fn){if(!queue.length){hiddenDiv.setAttribute("yes","no")}queue.push(fn)}}if(canPost){window.addEventListener("message",function(ev){var source=ev.source;if((source===window||source===null)&&ev.data==="process-tick"){ev.stopPropagation();if(queue.length>0){var fn=queue.shift();fn()}}},true);return function nextTick(fn){queue.push(fn);window.postMessage("process-tick","*")}}return function nextTick(fn){setTimeout(fn,0)}}();process.title="browser";process.browser=true;process.env={};process.argv=[];function noop(){}process.on=noop;process.addListener=noop;process.once=noop;process.off=noop;process.removeListener=noop;process.removeAllListeners=noop;process.emit=noop;process.binding=function(name){throw new Error("process.binding is not supported")};process.cwd=function(){return"/"};process.chdir=function(dir){throw new Error("process.chdir is not supported")}},{}],2:[function(require,module,exports){var _=require("../util");exports.$addChild=function(opts,BaseCtor){BaseCtor=BaseCtor||_.Vue;opts=opts||{};var parent=this;var ChildVue;var inherit=opts.inherit!==undefined?opts.inherit:BaseCtor.options.inherit;if(inherit){var ctors=parent._childCtors;ChildVue=ctors[BaseCtor.cid];if(!ChildVue){var optionName=BaseCtor.options.name;var className=optionName?_.classify(optionName):"VueComponent";ChildVue=new Function("return function "+className+" (options) {"+"this.constructor = "+className+";"+"this._init(options) }")();ChildVue.options=BaseCtor.options;ChildVue.linker=BaseCtor.linker;ChildVue.prototype=opts._context||this;ctors[BaseCtor.cid]=ChildVue}}else{ChildVue=BaseCtor}opts._parent=parent;opts._root=parent.$root;var child=new ChildVue(opts);return child}},{"../util":63}],3:[function(require,module,exports){var Watcher=require("../watcher");var Path=require("../parsers/path");var textParser=require("../parsers/text");var dirParser=require("../parsers/directive");var expParser=require("../parsers/expression");var filterRE=/[^|]\|[^|]/;exports.$get=function(exp){var res=expParser.parse(exp);if(res){try{return res.get.call(this,this)}catch(e){}}};exports.$set=function(exp,val){var res=expParser.parse(exp,true);if(res&&res.set){res.set.call(this,this,val)}};exports.$add=function(key,val){this._data.$add(key,val)};exports.$delete=function(key){this._data.$delete(key)};exports.$watch=function(exp,cb,options){var vm=this;var wrappedCb=function(val,oldVal){cb.call(vm,val,oldVal)};var watcher=new Watcher(vm,exp,wrappedCb,{deep:options&&options.deep,user:!options||options.user!==false});if(options&&options.immediate){wrappedCb(watcher.value)}return function unwatchFn(){watcher.teardown()}};exports.$eval=function(text){if(filterRE.test(text)){var dir=dirParser.parse(text)[0];var val=this.$get(dir.expression);return dir.filters?this._applyFilters(val,null,dir.filters):val}else{return this.$get(text)}};exports.$interpolate=function(text){var tokens=textParser.parse(text);var vm=this;if(tokens){return tokens.length===1?vm.$eval(tokens[0].value):tokens.map(function(token){return token.tag?vm.$eval(token.value):token.value}).join("")}else{return text}};exports.$log=function(path){var data=path?Path.get(this._data,path):this._data;if(data){data=JSON.parse(JSON.stringify(data))}console.log(data)}},{"../parsers/directive":51,"../parsers/expression":52,"../parsers/path":53,"../parsers/text":55,"../watcher":66}],4:[function(require,module,exports){var _=require("../util");var transition=require("../transition");exports.$nextTick=function(fn){_.nextTick(fn,this)};exports.$appendTo=function(target,cb,withTransition){return insert(this,target,cb,withTransition,append,transition.append)};exports.$prependTo=function(target,cb,withTransition){target=query(target);if(target.hasChildNodes()){this.$before(target.firstChild,cb,withTransition)}else{this.$appendTo(target,cb,withTransition)}return this};exports.$before=function(target,cb,withTransition){return insert(this,target,cb,withTransition,before,transition.before)};exports.$after=function(target,cb,withTransition){target=query(target);if(target.nextSibling){this.$before(target.nextSibling,cb,withTransition)}else{this.$appendTo(target.parentNode,cb,withTransition)}return this};exports.$remove=function(cb,withTransition){if(!this.$el.parentNode){return cb&&cb()}var inDoc=this._isAttached&&_.inDoc(this.$el);if(!inDoc)withTransition=false;var op;var self=this;var realCb=function(){if(inDoc)self._callHook("detached");if(cb)cb()};if(this._isFragment&&!this._blockFragment.hasChildNodes()){op=withTransition===false?append:transition.removeThenAppend;blockOp(this,this._blockFragment,op,realCb)}else{op=withTransition===false?remove:transition.remove;op(this.$el,this,realCb)}return this};function insert(vm,target,cb,withTransition,op1,op2){target=query(target);var targetIsDetached=!_.inDoc(target);var op=withTransition===false||targetIsDetached?op1:op2;var shouldCallHook=!targetIsDetached&&!vm._isAttached&&!_.inDoc(vm.$el);if(vm._isFragment){blockOp(vm,target,op,cb)}else{op(vm.$el,target,vm,cb)}if(shouldCallHook){vm._callHook("attached")}return vm}function blockOp(vm,target,op,cb){var current=vm._fragmentStart;var end=vm._fragmentEnd;var next;while(next!==end){next=current.nextSibling;op(current,target,vm);current=next}op(end,target,vm,cb)}function query(el){return typeof el==="string"?document.querySelector(el):el}function append(el,target,vm,cb){target.appendChild(el);if(cb)cb()}function before(el,target,vm,cb){_.before(el,target);if(cb)cb()}function remove(el,vm,cb){_.remove(el);if(cb)cb()}},{"../transition":56,"../util":63}],5:[function(require,module,exports){var _=require("../util");exports.$on=function(event,fn){(this._events[event]||(this._events[event]=[])).push(fn);modifyListenerCount(this,event,1);return this};exports.$once=function(event,fn){var self=this;function on(){self.$off(event,on);fn.apply(this,arguments)}on.fn=fn;this.$on(event,on);return this};exports.$off=function(event,fn){var cbs;if(!arguments.length){if(this.$parent){for(event in this._events){cbs=this._events[event];if(cbs){modifyListenerCount(this,event,-cbs.length)}}}this._events={};return this}cbs=this._events[event];if(!cbs){return this}if(arguments.length===1){modifyListenerCount(this,event,-cbs.length);this._events[event]=null;return this}var cb;var i=cbs.length;while(i--){cb=cbs[i];if(cb===fn||cb.fn===fn){modifyListenerCount(this,event,-1);cbs.splice(i,1);break}}return this};exports.$emit=function(event){this._eventCancelled=false;var cbs=this._events[event];if(cbs){var i=arguments.length-1;var args=new Array(i);while(i--){args[i]=arguments[i+1]}i=0;cbs=cbs.length>1?_.toArray(cbs):cbs;for(var l=cbs.length;i<l;i++){if(cbs[i].apply(this,args)===false){this._eventCancelled=true}}}return this};exports.$broadcast=function(event){if(!this._eventsCount[event])return;var children=this.$children;for(var i=0,l=children.length;i<l;i++){var child=children[i];child.$emit.apply(child,arguments);if(!child._eventCancelled){child.$broadcast.apply(child,arguments)}}return this};exports.$dispatch=function(){var parent=this.$parent;while(parent){parent.$emit.apply(parent,arguments);parent=parent._eventCancelled?null:parent.$parent}return this};var hookRE=/^hook:/;function modifyListenerCount(vm,event,count){var parent=vm.$parent;if(!parent||!count||hookRE.test(event))return;while(parent){parent._eventsCount[event]=(parent._eventsCount[event]||0)+count;parent=parent.$parent}}},{"../util":63}],6:[function(require,module,exports){var _=require("../util");var config=require("../config");exports.util=_;exports.config=config;exports.nextTick=_.nextTick;exports.compiler=require("../compiler");exports.parsers={path:require("../parsers/path"),text:require("../parsers/text"),template:require("../parsers/template"),directive:require("../parsers/directive"),expression:require("../parsers/expression")};exports.cid=0;var cid=1;exports.extend=function(extendOptions){extendOptions=extendOptions||{};var Super=this;var Sub=createClass(extendOptions.name||Super.options.name||"VueComponent");Sub.prototype=Object.create(Super.prototype);Sub.prototype.constructor=Sub;Sub.cid=cid++;Sub.options=_.mergeOptions(Super.options,extendOptions);Sub["super"]=Super;Sub.extend=Super.extend;config._assetTypes.forEach(function(type){Sub[type]=Super[type]});return Sub};function createClass(name){return new Function("return function "+_.classify(name)+" (options) { this._init(options) }")()}exports.use=function(plugin){var args=_.toArray(arguments,1);args.unshift(this);if(typeof plugin.install==="function"){plugin.install.apply(plugin,args)}else{plugin.apply(null,args)}return this};config._assetTypes.forEach(function(type){exports[type]=function(id,definition){if(!definition){return this.options[type+"s"][id]}else{if(type==="component"&&_.isPlainObject(definition)){definition.name=id;definition=_.Vue.extend(definition)}this.options[type+"s"][id]=definition}}})},{"../compiler":12,"../config":14,"../parsers/directive":51,"../parsers/expression":52,"../parsers/path":53,"../parsers/template":54,"../parsers/text":55,"../util":63}],7:[function(require,module,exports){(function(process){var _=require("../util");var compiler=require("../compiler");exports.$mount=function(el){if(this._isCompiled){process.env.NODE_ENV!=="production"&&_.warn("$mount() should be called only once.");return}el=_.query(el);if(!el){el=document.createElement("div")}this._compile(el);this._isCompiled=true;this._callHook("compiled");this._initDOMHooks();if(_.inDoc(this.$el)){this._callHook("attached");ready.call(this)}else{this.$once("hook:attached",ready)}return this};function ready(){this._isAttached=true;this._isReady=true;this._callHook("ready")}exports.$destroy=function(remove,deferCleanup){this._destroy(remove,deferCleanup)};exports.$compile=function(el,host){return compiler.compile(el,this.$options,true,host)(this,el)}}).call(this,require("_process"))},{"../compiler":12,"../util":63,_process:1}],8:[function(require,module,exports){(function(process){var _=require("./util");var config=require("./config");var queue=[];var userQueue=[];var has={};var circular={};var waiting=false;var internalQueueDepleted=false;function reset(){queue=[];userQueue=[];has={};circular={};waiting=internalQueueDepleted=false}function flush(){run(queue);internalQueueDepleted=true;run(userQueue);reset()}function run(queue){for(var i=0;i<queue.length;i++){var watcher=queue[i];var id=watcher.id;has[id]=null;watcher.run();if(process.env.NODE_ENV!=="production"&&has[id]!=null){circular[id]=(circular[id]||0)+1;if(circular[id]>config._maxUpdateCount){queue.splice(has[id],1);_.warn("You may have an infinite update loop for watcher "+"with expression: "+watcher.expression)}}}}exports.push=function(watcher){var id=watcher.id;if(has[id]==null){if(internalQueueDepleted&&!watcher.user){watcher.run();return}var q=watcher.user?userQueue:queue;has[id]=q.length;q.push(watcher);if(!waiting){waiting=true;_.nextTick(flush)}}}}).call(this,require("_process"))},{"./config":14,"./util":63,_process:1}],9:[function(require,module,exports){function Cache(limit){this.size=0;this.limit=limit;this.head=this.tail=undefined;this._keymap=Object.create(null)}var p=Cache.prototype;p.put=function(key,value){var entry={key:key,value:value};this._keymap[key]=entry;if(this.tail){this.tail.newer=entry;entry.older=this.tail}else{this.head=entry}this.tail=entry;if(this.size===this.limit){return this.shift()}else{this.size++}};p.shift=function(){var entry=this.head;if(entry){this.head=this.head.newer;this.head.older=undefined;entry.newer=entry.older=undefined;this._keymap[entry.key]=undefined}return entry};p.get=function(key,returnEntry){var entry=this._keymap[key];if(entry===undefined)return;if(entry===this.tail){return returnEntry?entry:entry.value}if(entry.newer){if(entry===this.head){this.head=entry.newer}entry.newer.older=entry.older}if(entry.older){entry.older.newer=entry.newer}entry.newer=undefined;entry.older=this.tail;if(this.tail){this.tail.newer=entry}this.tail=entry;return returnEntry?entry:entry.value};module.exports=Cache},{}],10:[function(require,module,exports){(function(process){var _=require("../util");var textParser=require("../parsers/text");var propDef=require("../directives/prop");var propBindingModes=require("../config")._propBindingModes;var identRE=require("../parsers/path").identRE;var dataAttrRE=/^data-/;var settablePathRE=/^[A-Za-z_$][\w$]*(\.[A-Za-z_$][\w$]*|\[[^\[\]]+\])*$/;var literalValueRE=/^(true|false)$|^\d.*/;module.exports=function compileProps(el,propOptions){var props=[];var i=propOptions.length;var options,name,attr,value,path,prop,literal,single;while(i--){options=propOptions[i];name=options.name;path=_.camelize(name.replace(dataAttrRE,""));if(!identRE.test(path)){process.env.NODE_ENV!=="production"&&_.warn('Invalid prop key: "'+name+'". Prop keys '+"must be valid identifiers.");continue}attr=_.hyphenate(name);value=el.getAttribute(attr);if(value===null){attr="data-"+attr;value=el.getAttribute(attr)}prop={name:name,raw:value,path:path,options:options,mode:propBindingModes.ONE_WAY};if(value!==null){el.removeAttribute(attr);var tokens=textParser.parse(value);if(tokens){prop.dynamic=true;prop.parentPath=textParser.tokensToExp(tokens);single=tokens.length===1;literal=literalValueRE.test(prop.parentPath);if(literal||single&&tokens[0].oneTime){prop.mode=propBindingModes.ONE_TIME}else if(!literal&&(single&&tokens[0].twoWay)){if(settablePathRE.test(prop.parentPath)){prop.mode=propBindingModes.TWO_WAY}else{process.env.NODE_ENV!=="production"&&_.warn("Cannot bind two-way prop with non-settable "+"parent path: "+prop.parentPath)}}if(process.env.NODE_ENV!=="production"&&options.twoWay&&prop.mode!==propBindingModes.TWO_WAY){_.warn('Prop "'+name+'" expects a two-way binding type.')}}}else if(options&&options.required){process.env.NODE_ENV!=="production"&&_.warn("Missing required prop: "+name)}props.push(prop)}return makePropsLinkFn(props)};function makePropsLinkFn(props){return function propsLinkFn(vm,el){vm._props={};var i=props.length;var prop,path,options,value;while(i--){prop=props[i];path=prop.path;vm._props[path]=prop;options=prop.options;if(prop.raw===null){_.initProp(vm,prop,getDefault(options))}else if(prop.dynamic){if(vm._context){if(prop.mode===propBindingModes.ONE_TIME){value=vm._context.$get(prop.parentPath);_.initProp(vm,prop,value)}else{vm._bindDir("prop",el,prop,propDef)}}else{process.env.NODE_ENV!=="production"&&_.warn("Cannot bind dynamic prop on a root instance"+" with no parent: "+prop.name+'="'+prop.raw+'"')}}else{var raw=prop.raw;value=options.type===Boolean&&raw===""?true:raw.trim()?_.toBoolean(_.toNumber(raw)):raw;_.initProp(vm,prop,value)}}}}function getDefault(options){if(!options.hasOwnProperty("default")){return options.type===Boolean?false:undefined}var def=options.default;if(_.isObject(def)){process.env.NODE_ENV!=="production"&&_.warn("Object/Array as default prop values will be shared "+"across multiple instances. Use a factory function "+"to return the default value instead.")}return typeof def==="function"&&options.type!==Function?def():def}}).call(this,require("_process"))},{"../config":14,"../directives/prop":30,"../parsers/path":53,"../parsers/text":55,"../util":63,_process:1}],11:[function(require,module,exports){(function(process){var _=require("../util");var compileProps=require("./compile-props");var config=require("../config");var textParser=require("../parsers/text");var dirParser=require("../parsers/directive");var templateParser=require("../parsers/template");var resolveAsset=_.resolveAsset;var componentDef=require("../directives/component");var terminalDirectives=["repeat","if"];exports.compile=function(el,options,partial,host){var nodeLinkFn=partial||!options._asComponent?compileNode(el,options):null;var childLinkFn=!(nodeLinkFn&&nodeLinkFn.terminal)&&el.tagName!=="SCRIPT"&&el.hasChildNodes()?compileNodeList(el.childNodes,options):null;return function compositeLinkFn(vm,el){var childNodes=_.toArray(el.childNodes);var dirs=linkAndCapture(function(){if(nodeLinkFn)nodeLinkFn(vm,el,host);if(childLinkFn)childLinkFn(vm,childNodes,host)},vm);return makeUnlinkFn(vm,dirs)}};function linkAndCapture(linker,vm){var originalDirCount=vm._directives.length;linker();return vm._directives.slice(originalDirCount)}function makeUnlinkFn(vm,dirs,context,contextDirs){return function unlink(destroying){teardownDirs(vm,dirs,destroying);if(context&&contextDirs){teardownDirs(context,contextDirs)}}}function teardownDirs(vm,dirs,destroying){var i=dirs.length;while(i--){dirs[i]._teardown();if(!destroying){vm._directives.$remove(dirs[i])}}}exports.compileAndLinkProps=function(vm,el,props){var propsLinkFn=compileProps(el,props);var propDirs=linkAndCapture(function(){propsLinkFn(vm,null)},vm);return makeUnlinkFn(vm,propDirs)};exports.compileAndLinkRoot=function(vm,el,options){var containerAttrs=options._containerAttrs;var replacerAttrs=options._replacerAttrs;var contextLinkFn,replacerLinkFn;if(el.nodeType!==11){if(options._asComponent){if(containerAttrs){contextLinkFn=compileDirectives(containerAttrs,options)}if(replacerAttrs){replacerLinkFn=compileDirectives(replacerAttrs,options)}}else{replacerLinkFn=compileDirectives(el.attributes,options)}}var context=vm._context;var contextDirs;if(context&&contextLinkFn){contextDirs=linkAndCapture(function(){contextLinkFn(context,el)},context)}var selfDirs=linkAndCapture(function(){if(replacerLinkFn)replacerLinkFn(vm,el)},vm);return makeUnlinkFn(vm,selfDirs,context,contextDirs)};function compileNode(node,options){var type=node.nodeType;if(type===1&&node.tagName!=="SCRIPT"){return compileElement(node,options)}else if(type===3&&config.interpolate&&node.data.trim()){return compileTextNode(node,options)}else{return null}}function compileElement(el,options){var linkFn;var hasAttrs=el.hasAttributes();if(hasAttrs){linkFn=checkTerminalDirectives(el,options)}if(!linkFn){linkFn=checkElementDirectives(el,options)}if(!linkFn){linkFn=checkComponent(el,options)}if(!linkFn&&hasAttrs){linkFn=compileDirectives(el.attributes,options)}if(el.tagName==="TEXTAREA"){var realLinkFn=linkFn;linkFn=function(vm,el){el.value=vm.$interpolate(el.value);if(realLinkFn)realLinkFn(vm,el)};linkFn.terminal=true}return linkFn}function compileTextNode(node,options){var tokens=textParser.parse(node.data);if(!tokens){return null}var frag=document.createDocumentFragment();var el,token;for(var i=0,l=tokens.length;i<l;i++){token=tokens[i];el=token.tag?processTextToken(token,options):document.createTextNode(token.value);frag.appendChild(el)}return makeTextNodeLinkFn(tokens,frag,options)}function processTextToken(token,options){var el;if(token.oneTime){el=document.createTextNode(token.value)}else{if(token.html){el=document.createComment("v-html");setTokenType("html")}else{el=document.createTextNode(" ");setTokenType("text")}}function setTokenType(type){token.type=type;token.def=resolveAsset(options,"directives",type);token.descriptor=dirParser.parse(token.value)[0]}return el}function makeTextNodeLinkFn(tokens,frag){return function textNodeLinkFn(vm,el){var fragClone=frag.cloneNode(true);var childNodes=_.toArray(fragClone.childNodes);var token,value,node;for(var i=0,l=tokens.length;i<l;i++){token=tokens[i];value=token.value;if(token.tag){node=childNodes[i];if(token.oneTime){value=vm.$eval(value);if(token.html){_.replace(node,templateParser.parse(value,true))}else{node.data=value}}else{vm._bindDir(token.type,node,token.descriptor,token.def)}}}_.replace(el,fragClone)}}function compileNodeList(nodeList,options){var linkFns=[];var nodeLinkFn,childLinkFn,node;for(var i=0,l=nodeList.length;i<l;i++){node=nodeList[i];nodeLinkFn=compileNode(node,options);childLinkFn=!(nodeLinkFn&&nodeLinkFn.terminal)&&node.tagName!=="SCRIPT"&&node.hasChildNodes()?compileNodeList(node.childNodes,options):null;linkFns.push(nodeLinkFn,childLinkFn)}return linkFns.length?makeChildLinkFn(linkFns):null}function makeChildLinkFn(linkFns){return function childLinkFn(vm,nodes,host){var node,nodeLinkFn,childrenLinkFn;for(var i=0,n=0,l=linkFns.length;i<l;n++){node=nodes[n];nodeLinkFn=linkFns[i++];childrenLinkFn=linkFns[i++];var childNodes=_.toArray(node.childNodes);if(nodeLinkFn){nodeLinkFn(vm,node,host)}if(childrenLinkFn){childrenLinkFn(vm,childNodes,host)}}}}function checkElementDirectives(el,options){var tag=el.tagName.toLowerCase();if(_.commonTagRE.test(tag))return;var def=resolveAsset(options,"elementDirectives",tag);if(def){return makeTerminalNodeLinkFn(el,tag,"",options,def)}}function checkComponent(el,options,hasAttrs){var componentId=_.checkComponent(el,options,hasAttrs);if(componentId){var componentLinkFn=function(vm,el,host){vm._bindDir("component",el,{expression:componentId},componentDef,host)};componentLinkFn.terminal=true;return componentLinkFn}}function checkTerminalDirectives(el,options){if(_.attr(el,"pre")!==null){return skip}var value,dirName;for(var i=0,l=terminalDirectives.length;i<l;i++){dirName=terminalDirectives[i];if((value=_.attr(el,dirName))!==null){return makeTerminalNodeLinkFn(el,dirName,value,options)}}}function skip(){}skip.terminal=true;function makeTerminalNodeLinkFn(el,dirName,value,options,def){var descriptor=dirParser.parse(value)[0];def=def||options.directives[dirName];var fn=function terminalNodeLinkFn(vm,el,host){vm._bindDir(dirName,el,descriptor,def,host)};fn.terminal=true;return fn}function compileDirectives(attrs,options){var i=attrs.length;var dirs=[];var attr,name,value,dir,dirName,dirDef;while(i--){attr=attrs[i];name=attr.name;value=attr.value;if(name.indexOf(config.prefix)===0){dirName=name.slice(config.prefix.length);dirDef=resolveAsset(options,"directives",dirName);if(process.env.NODE_ENV!=="production"){_.assertAsset(dirDef,"directive",dirName)}if(dirDef){dirs.push({name:dirName,descriptors:dirParser.parse(value),def:dirDef})}}else if(config.interpolate){dir=collectAttrDirective(name,value,options);if(dir){dirs.push(dir)}}}if(dirs.length){dirs.sort(directiveComparator);return makeNodeLinkFn(dirs)}}function makeNodeLinkFn(directives){return function nodeLinkFn(vm,el,host){var i=directives.length;var dir,j,k;while(i--){dir=directives[i];if(dir._link){dir._link(vm,el)}else{k=dir.descriptors.length;for(j=0;j<k;j++){vm._bindDir(dir.name,el,dir.descriptors[j],dir.def,host)}}}}}function collectAttrDirective(name,value,options){var tokens=textParser.parse(value);var isClass=name==="class";if(tokens){var dirName=isClass?"class":"attr";var def=options.directives[dirName];var i=tokens.length;var allOneTime=true;while(i--){var token=tokens[i];if(token.tag&&!token.oneTime){allOneTime=false}}return{def:def,_link:allOneTime?function(vm,el){el.setAttribute(name,vm.$interpolate(value))}:function(vm,el){var exp=textParser.tokensToExp(tokens,vm);var desc=isClass?dirParser.parse(exp)[0]:dirParser.parse(name+":"+exp)[0];if(isClass){desc._rawClass=value}vm._bindDir(dirName,el,desc,def)}}}}function directiveComparator(a,b){a=a.def.priority||0;b=b.def.priority||0;return a>b?1:-1}}).call(this,require("_process"))},{"../config":14,"../directives/component":19,"../parsers/directive":51,"../parsers/template":54,"../parsers/text":55,"../util":63,"./compile-props":10,_process:1}],12:[function(require,module,exports){var _=require("../util");_.extend(exports,require("./compile"));_.extend(exports,require("./transclude"))},{"../util":63,"./compile":11,"./transclude":13}],13:[function(require,module,exports){(function(process){var _=require("../util");var config=require("../config");var templateParser=require("../parsers/template");exports.transclude=function(el,options){if(options){options._containerAttrs=extractAttrs(el)}if(_.isTemplate(el)){el=templateParser.parse(el)}if(options){if(options._asComponent&&!options.template){options.template="<content></content>"}if(options.template){options._content=_.extractContent(el);el=transcludeTemplate(el,options)}}if(el instanceof DocumentFragment){_.prepend(_.createAnchor("v-start",true),el);el.appendChild(_.createAnchor("v-end",true))}return el};function transcludeTemplate(el,options){var template=options.template;var frag=templateParser.parse(template,true);if(frag){var replacer=frag.firstChild;var tag=replacer.tagName&&replacer.tagName.toLowerCase();if(options.replace){if(el===document.body){process.env.NODE_ENV!=="production"&&_.warn("You are mounting an instance with a template to "+"<body>. This will replace <body> entirely. You "+"should probably use `replace: false` here.")}if(frag.childNodes.length>1||replacer.nodeType!==1||tag==="component"||_.resolveAsset(options,"components",tag)||replacer.hasAttribute(config.prefix+"component")||_.resolveAsset(options,"elementDirectives",tag)||replacer.hasAttribute(config.prefix+"repeat")){return frag}else{options._replacerAttrs=extractAttrs(replacer);mergeAttrs(el,replacer);return replacer}}else{el.appendChild(frag);return el}}else{process.env.NODE_ENV!=="production"&&_.warn("Invalid template option: "+template)}}function extractAttrs(el){if(el.nodeType===1&&el.hasAttributes()){return _.toArray(el.attributes)}}function mergeAttrs(from,to){var attrs=from.attributes;var i=attrs.length;var name,value;while(i--){name=attrs[i].name;value=attrs[i].value;if(!to.hasAttribute(name)){to.setAttribute(name,value)}else if(name==="class"){value=to.getAttribute(name)+" "+value;to.setAttribute(name,value)}}}}).call(this,require("_process"))},{"../config":14,"../parsers/template":54,"../util":63,_process:1}],14:[function(require,module,exports){module.exports={prefix:"v-",debug:false,strict:false,silent:false,proto:true,interpolate:true,async:true,warnExpressionErrors:true,_delimitersChanged:true,_assetTypes:["component","directive","elementDirective","filter","transition","partial"],_propBindingModes:{ONE_WAY:0,TWO_WAY:1,ONE_TIME:2},_maxUpdateCount:100};var delimiters=["{{","}}"];Object.defineProperty(module.exports,"delimiters",{get:function(){return delimiters},set:function(val){delimiters=val;this._delimitersChanged=true}})},{}],15:[function(require,module,exports){var _=require("./util");var config=require("./config");var Watcher=require("./watcher");var textParser=require("./parsers/text");var expParser=require("./parsers/expression");function Directive(name,el,vm,descriptor,def,host){this.name=name;this.el=el;this.vm=vm;this.raw=descriptor.raw;this.expression=descriptor.expression;this.arg=descriptor.arg;this.filters=descriptor.filters;this._descriptor=descriptor;this._host=host;this._locked=false;this._bound=false;this._bind(def)}var p=Directive.prototype;p._bind=function(def){if((this.name!=="cloak"||this.vm._isCompiled)&&this.el&&this.el.removeAttribute){this.el.removeAttribute(config.prefix+this.name)}if(typeof def==="function"){this.update=def}else{_.extend(this,def)}this._watcherExp=this.expression;this._checkDynamicLiteral();if(this.bind){this.bind()}if(this._watcherExp&&(this.update||this.twoWay)&&(!this.isLiteral||this._isDynamicLiteral)&&!this._checkStatement()){var dir=this;var update=this._update=this.update?function(val,oldVal){if(!dir._locked){dir.update(val,oldVal)}}:function(){};var preProcess=this._preProcess?_.bind(this._preProcess,this):null;var watcher=this._watcher=new Watcher(this.vm,this._watcherExp,update,{filters:this.filters,twoWay:this.twoWay,deep:this.deep,preProcess:preProcess});if(this._initValue!=null){watcher.set(this._initValue)}else if(this.update){this.update(watcher.value)}}this._bound=true};p._checkDynamicLiteral=function(){var expression=this.expression;if(expression&&this.isLiteral){var tokens=textParser.parse(expression);if(tokens){var exp=textParser.tokensToExp(tokens);this.expression=this.vm.$get(exp);this._watcherExp=exp;this._isDynamicLiteral=true}}};p._checkStatement=function(){var expression=this.expression;if(expression&&this.acceptStatement&&!expParser.isSimplePath(expression)){var fn=expParser.parse(expression).get;var vm=this.vm;var handler=function(){fn.call(vm,vm)};if(this.filters){handler=vm._applyFilters(handler,null,this.filters)}this.update(handler);return true}};p._checkParam=function(name){var param=this.el.getAttribute(name);if(param!==null){this.el.removeAttribute(name);param=this.vm.$interpolate(param)}return param};p._teardown=function(){if(this._bound){this._bound=false;if(this.unbind){this.unbind()}if(this._watcher){this._watcher.teardown()}this.vm=this.el=this._watcher=null}};p.set=function(value){if(this.twoWay){this._withLock(function(){this._watcher.set(value)})}};p._withLock=function(fn){var self=this;self._locked=true;fn.call(self);_.nextTick(function(){self._locked=false})};module.exports=Directive},{"./config":14,"./parsers/expression":52,"./parsers/text":55,"./util":63,"./watcher":66}],16:[function(require,module,exports){var xlinkNS="http://www.w3.org/1999/xlink";var xlinkRE=/^xlink:/;module.exports={priority:850,update:function(value){if(this.arg){this.setAttr(this.arg,value)}else if(typeof value==="object"){this.objectHandler(value)}},objectHandler:function(value){var cache=this.cache||(this.cache={});var attr,val;for(attr in cache){if(!(attr in value)){this.setAttr(attr,null);delete cache[attr]}}for(attr in value){val=value[attr];if(val!==cache[attr]){cache[attr]=val;this.setAttr(attr,val)}}},setAttr:function(attr,value){if(value!=null&&value!==false){if(xlinkRE.test(attr)){this.el.setAttributeNS(xlinkNS,attr,value)}else{this.el.setAttribute(attr,value)}}else{this.el.removeAttribute(attr)}if(attr==="value"&&"value"in this.el){this.el.value=value}}}},{}],17:[function(require,module,exports){var _=require("../util");var addClass=_.addClass;var removeClass=_.removeClass;module.exports={bind:function(){var raw=this._descriptor._rawClass;if(raw){this.prevKeys=raw.trim().split(/\s+/)}},update:function(value){if(this.arg){if(value){addClass(this.el,this.arg)}else{removeClass(this.el,this.arg)}}else{if(value&&typeof value==="string"){this.handleObject(stringToObject(value))}else if(_.isPlainObject(value)){this.handleObject(value)}else{this.cleanup()}}},handleObject:function(value){this.cleanup(value);var keys=this.prevKeys=Object.keys(value);for(var i=0,l=keys.length;i<l;i++){var key=keys[i];if(value[key]){addClass(this.el,key)}else{removeClass(this.el,key)}}},cleanup:function(value){if(this.prevKeys){var i=this.prevKeys.length;while(i--){var key=this.prevKeys[i];if(!value||!value.hasOwnProperty(key)){removeClass(this.el,key)}}}}};function stringToObject(value){var res={};var keys=value.trim().split(/\s+/);var i=keys.length;while(i--){res[keys[i]]=true}return res}},{"../util":63}],18:[function(require,module,exports){var config=require("../config");module.exports={bind:function(){var el=this.el;this.vm.$once("hook:compiled",function(){el.removeAttribute(config.prefix+"cloak")})}}},{"../config":14}],19:[function(require,module,exports){(function(process){var _=require("../util");var config=require("../config");var templateParser=require("../parsers/template");module.exports={isLiteral:true,bind:function(){if(!this.el.__vue__){this.anchor=_.createAnchor("v-component");_.replace(this.el,this.anchor);
this.keepAlive=this._checkParam("keep-alive")!=null;this.readyEvent=this._checkParam("wait-for");this.refID=this._checkParam(config.prefix+"ref");if(this.keepAlive){this.cache={}}if(this._checkParam("inline-template")!==null){this.template=_.extractContent(this.el,true)}this._pendingCb=this.componentID=this.Component=null;if(!this._isDynamicLiteral){this.resolveComponent(this.expression,_.bind(this.initStatic,this))}else{this.transMode=this._checkParam("transition-mode")}}else{process.env.NODE_ENV!=="production"&&_.warn('cannot mount component "'+this.expression+'" '+"on already mounted element: "+this.el)}},initStatic:function(){var child=this.build();var anchor=this.anchor;this.setCurrent(child);if(!this.readyEvent){child.$before(anchor)}else{child.$once(this.readyEvent,function(){child.$before(anchor)})}},update:function(value){this.setComponent(value)},setComponent:function(value,data,afterBuild,afterTransition){this.invalidatePending();if(!value){this.unbuild(true);this.remove(this.childVM,afterTransition);this.unsetCurrent()}else{this.resolveComponent(value,_.bind(function(){this.unbuild(true);var newComponent=this.build(data);if(afterBuild)afterBuild(newComponent);var self=this;if(this.readyEvent){newComponent.$once(this.readyEvent,function(){self.transition(newComponent,afterTransition)})}else{this.transition(newComponent,afterTransition)}},this))}},resolveComponent:function(id,cb){var self=this;this._pendingCb=_.cancellable(function(component){self.componentID=id;self.Component=component;cb()});this.vm._resolveComponent(id,this._pendingCb)},invalidatePending:function(){if(this._pendingCb){this._pendingCb.cancel();this._pendingCb=null}},build:function(data){if(this.keepAlive){var cached=this.cache[this.componentID];if(cached){return cached}}if(this.Component){var parent=this._host||this.vm;var el=templateParser.clone(this.el);var child=parent.$addChild({el:el,data:data,template:this.template,_linkerCachable:!this.template,_asComponent:true,_isRouterView:this._isRouterView,_context:this.vm},this.Component);if(this.keepAlive){this.cache[this.componentID]=child}return child}},unbuild:function(defer){var child=this.childVM;if(!child||this.keepAlive){return}child.$destroy(false,defer)},remove:function(child,cb){var keepAlive=this.keepAlive;if(child){child.$remove(function(){if(!keepAlive)child._cleanup();if(cb)cb()})}else if(cb){cb()}},transition:function(target,cb){var self=this;var current=this.childVM;this.unsetCurrent();this.setCurrent(target);switch(self.transMode){case"in-out":target.$before(self.anchor,function(){self.remove(current,cb)});break;case"out-in":self.remove(current,function(){if(!target._isDestroyed){target.$before(self.anchor,cb)}});break;default:self.remove(current);target.$before(self.anchor,cb)}},setCurrent:function(child){this.childVM=child;var refID=child._refID||this.refID;if(refID){this.vm.$[refID]=child}},unsetCurrent:function(){var child=this.childVM;this.childVM=null;var refID=child&&child._refID||this.refID;if(refID){this.vm.$[refID]=null}},unbind:function(){this.invalidatePending();this.unbuild();this.unsetCurrent();if(this.cache){for(var key in this.cache){this.cache[key].$destroy()}this.cache=null}}}}).call(this,require("_process"))},{"../config":14,"../parsers/template":54,"../util":63,_process:1}],20:[function(require,module,exports){module.exports={isLiteral:true,bind:function(){this.vm.$$[this.expression]=this.el},unbind:function(){delete this.vm.$$[this.expression]}}},{}],21:[function(require,module,exports){var _=require("../util");var templateParser=require("../parsers/template");module.exports={bind:function(){if(this.el.nodeType===8){this.nodes=[];this.anchor=_.createAnchor("v-html");_.replace(this.el,this.anchor)}},update:function(value){value=_.toString(value);if(this.nodes){this.swap(value)}else{this.el.innerHTML=value}},swap:function(value){var i=this.nodes.length;while(i--){_.remove(this.nodes[i])}var frag=templateParser.parse(value,true,true);this.nodes=_.toArray(frag.childNodes);_.before(frag,this.anchor)}}},{"../parsers/template":54,"../util":63}],22:[function(require,module,exports){(function(process){var _=require("../util");var compiler=require("../compiler");var templateParser=require("../parsers/template");var transition=require("../transition");var Cache=require("../cache");var cache=new Cache(1e3);module.exports={bind:function(){var el=this.el;if(!el.__vue__){this.start=_.createAnchor("v-if-start");this.end=_.createAnchor("v-if-end");_.replace(el,this.end);_.before(this.start,this.end);if(_.isTemplate(el)){this.template=templateParser.parse(el,true)}else{this.template=document.createDocumentFragment();this.template.appendChild(templateParser.clone(el))}var cacheId=(this.vm.constructor.cid||"")+el.outerHTML;this.linker=cache.get(cacheId);if(!this.linker){this.linker=compiler.compile(this.template,this.vm.$options,true,this._host);cache.put(cacheId,this.linker)}}else{process.env.NODE_ENV!=="production"&&_.warn('v-if="'+this.expression+'" cannot be '+"used on an instance root element.");this.invalid=true}},update:function(value){if(this.invalid)return;if(value){if(!this.unlink){this.link(templateParser.clone(this.template),this.linker)}}else{this.teardown()}},link:function(frag,linker){var vm=this.vm;this.unlink=linker(vm,frag);transition.blockAppend(frag,this.end,vm);if(_.inDoc(vm.$el)){var children=this.getContainedComponents();if(children)children.forEach(callAttach)}},teardown:function(){if(!this.unlink)return;var children;if(_.inDoc(this.vm.$el)){children=this.getContainedComponents()}transition.blockRemove(this.start,this.end,this.vm);if(children)children.forEach(callDetach);this.unlink();this.unlink=null},getContainedComponents:function(){var vm=this.vm;var start=this.start.nextSibling;var end=this.end;function contains(c){var cur=start;var next;while(next!==end){next=cur.nextSibling;if(cur===c.$el||cur.contains&&cur.contains(c.$el)){return true}cur=next}return false}return vm.$children.length&&vm.$children.filter(contains)},unbind:function(){if(this.unlink)this.unlink()}};function callAttach(child){if(!child._isAttached){child._callHook("attached")}}function callDetach(child){if(child._isAttached){child._callHook("detached")}}}).call(this,require("_process"))},{"../cache":9,"../compiler":12,"../parsers/template":54,"../transition":56,"../util":63,_process:1}],23:[function(require,module,exports){exports.text=require("./text");exports.html=require("./html");exports.attr=require("./attr");exports.show=require("./show");exports["class"]=require("./class");exports.el=require("./el");exports.ref=require("./ref");exports.cloak=require("./cloak");exports.style=require("./style");exports.transition=require("./transition");exports.on=require("./on");exports.model=require("./model");exports.repeat=require("./repeat");exports["if"]=require("./if");exports._component=require("./component");exports._prop=require("./prop")},{"./attr":16,"./class":17,"./cloak":18,"./component":19,"./el":20,"./html":21,"./if":22,"./model":25,"./on":29,"./prop":30,"./ref":31,"./repeat":32,"./show":33,"./style":34,"./text":35,"./transition":36}],24:[function(require,module,exports){var _=require("../../util");module.exports={bind:function(){var self=this;var el=this.el;this.listener=function(){self.set(el.checked)};_.on(el,"change",this.listener);if(el.checked){this._initValue=el.checked}},update:function(value){this.el.checked=!!value},unbind:function(){_.off(this.el,"change",this.listener)}}},{"../../util":63}],25:[function(require,module,exports){(function(process){var _=require("../../util");var handlers={text:require("./text"),radio:require("./radio"),select:require("./select"),checkbox:require("./checkbox")};module.exports={priority:800,twoWay:true,handlers:handlers,bind:function(){this.checkFilters();if(this.hasRead&&!this.hasWrite){process.env.NODE_ENV!=="production"&&_.warn("It seems you are using a read-only filter with "+"v-model. You might want to use a two-way filter "+"to ensure correct behavior.")}var el=this.el;var tag=el.tagName;var handler;if(tag==="INPUT"){handler=handlers[el.type]||handlers.text}else if(tag==="SELECT"){handler=handlers.select}else if(tag==="TEXTAREA"){handler=handlers.text}else{process.env.NODE_ENV!=="production"&&_.warn("v-model does not support element type: "+tag);return}handler.bind.call(this);this.update=handler.update;this.unbind=handler.unbind},checkFilters:function(){var filters=this.filters;if(!filters)return;var i=filters.length;while(i--){var filter=_.resolveAsset(this.vm.$options,"filters",filters[i].name);if(typeof filter==="function"||filter.read){this.hasRead=true}if(filter.write){this.hasWrite=true}}}}}).call(this,require("_process"))},{"../../util":63,"./checkbox":24,"./radio":26,"./select":27,"./text":28,_process:1}],26:[function(require,module,exports){var _=require("../../util");module.exports={bind:function(){var self=this;var el=this.el;this.listener=function(){self.set(el.value)};_.on(el,"change",this.listener);if(el.checked){this._initValue=el.value}},update:function(value){this.el.checked=value==this.el.value},unbind:function(){_.off(this.el,"change",this.listener)}}},{"../../util":63}],27:[function(require,module,exports){(function(process){var _=require("../../util");var Watcher=require("../../watcher");var dirParser=require("../../parsers/directive");module.exports={bind:function(){var self=this;var el=this.el;this.forceUpdate=function(){if(self._watcher){self.update(self._watcher.get())}};var optionsParam=this._checkParam("options");if(optionsParam){initOptions.call(this,optionsParam)}this.number=this._checkParam("number")!=null;this.multiple=el.hasAttribute("multiple");this.listener=function(){var value=self.multiple?getMultiValue(el):el.value;value=self.number?_.isArray(value)?value.map(_.toNumber):_.toNumber(value):value;self.set(value)};_.on(el,"change",this.listener);checkInitialValue.call(this);this.vm.$on("hook:attached",this.forceUpdate)},update:function(value){var el=this.el;el.selectedIndex=-1;var multi=this.multiple&&_.isArray(value);var options=el.options;var i=options.length;var option;while(i--){option=options[i];option.selected=multi?indexOf(value,option.value)>-1:value==option.value}},unbind:function(){_.off(this.el,"change",this.listener);this.vm.$off("hook:attached",this.forceUpdate);if(this.optionWatcher){this.optionWatcher.teardown()}}};function initOptions(expression){var self=this;var descriptor=dirParser.parse(expression)[0];function optionUpdateWatcher(value){if(_.isArray(value)){self.el.innerHTML="";buildOptions(self.el,value);self.forceUpdate()}else{process.env.NODE_ENV!=="production"&&_.warn("Invalid options value for v-model: "+value)}}this.optionWatcher=new Watcher(this.vm,descriptor.expression,optionUpdateWatcher,{deep:true,filters:descriptor.filters});optionUpdateWatcher(this.optionWatcher.value)}function buildOptions(parent,options){var op,el;for(var i=0,l=options.length;i<l;i++){op=options[i];if(!op.options){el=document.createElement("option");if(typeof op==="string"){el.text=el.value=op}else{if(op.value!=null){el.value=op.value}el.text=op.text||op.value||"";if(op.disabled){el.disabled=true}}}else{el=document.createElement("optgroup");el.label=op.label;buildOptions(el,op.options)}parent.appendChild(el)}}function checkInitialValue(){var initValue;var options=this.el.options;for(var i=0,l=options.length;i<l;i++){if(options[i].hasAttribute("selected")){if(this.multiple){(initValue||(initValue=[])).push(options[i].value)}else{initValue=options[i].value}}}if(typeof initValue!=="undefined"){this._initValue=this.number?_.toNumber(initValue):initValue}}function getMultiValue(el){return Array.prototype.filter.call(el.options,filterSelected).map(getOptionValue)}function filterSelected(op){return op.selected}function getOptionValue(op){return op.value||op.text}function indexOf(arr,val){var i=arr.length;while(i--){if(arr[i]==val)return i}return-1}}).call(this,require("_process"))},{"../../parsers/directive":51,"../../util":63,"../../watcher":66,_process:1}],28:[function(require,module,exports){var _=require("../../util");module.exports={bind:function(){var self=this;var el=this.el;var lazy=this._checkParam("lazy")!=null;var number=this._checkParam("number")!=null;var debounce=parseInt(this._checkParam("debounce"),10);var composing=false;if(!_.isAndroid){this.onComposeStart=function(){composing=true};this.onComposeEnd=function(){composing=false;self.listener()};_.on(el,"compositionstart",this.onComposeStart);_.on(el,"compositionend",this.onComposeEnd)}function syncToModel(){var val=number?_.toNumber(el.value):el.value;self.set(val)}if(this.hasRead||el.type==="range"){this.listener=function(){if(composing)return;var charsOffset;try{charsOffset=el.value.length-el.selectionStart}catch(e){}if(charsOffset<0){return}syncToModel();_.nextTick(function(){var newVal=self._watcher.value;self.update(newVal);if(charsOffset!=null){var cursorPos=_.toString(newVal).length-charsOffset;el.setSelectionRange(cursorPos,cursorPos)}})}}else{this.listener=function(){if(composing)return;syncToModel()}}if(debounce){this.listener=_.debounce(this.listener,debounce)}this.event=lazy?"change":"input";this.hasjQuery=typeof jQuery==="function";if(this.hasjQuery){jQuery(el).on(this.event,this.listener)}else{_.on(el,this.event,this.listener)}if(!lazy&&_.isIE9){this.onCut=function(){_.nextTick(self.listener)};this.onDel=function(e){if(e.keyCode===46||e.keyCode===8){self.listener()}};_.on(el,"cut",this.onCut);_.on(el,"keyup",this.onDel)}if(el.hasAttribute("value")||el.tagName==="TEXTAREA"&&el.value.trim()){this._initValue=number?_.toNumber(el.value):el.value}},update:function(value){this.el.value=_.toString(value)},unbind:function(){var el=this.el;if(this.hasjQuery){jQuery(el).off(this.event,this.listener)}else{_.off(el,this.event,this.listener)}if(this.onComposeStart){_.off(el,"compositionstart",this.onComposeStart);_.off(el,"compositionend",this.onComposeEnd)}if(this.onCut){_.off(el,"cut",this.onCut);_.off(el,"keyup",this.onDel)}}}},{"../../util":63}],29:[function(require,module,exports){(function(process){var _=require("../util");module.exports={acceptStatement:true,priority:700,bind:function(){if(this.el.tagName==="IFRAME"&&this.arg!=="load"){var self=this;this.iframeBind=function(){_.on(self.el.contentWindow,self.arg,self.handler)};_.on(this.el,"load",this.iframeBind)}},update:function(handler){if(typeof handler!=="function"){process.env.NODE_ENV!=="production"&&_.warn('Directive v-on="'+this.arg+": "+this.expression+'" expects a function value, '+"got "+handler);return}this.reset();var vm=this.vm;this.handler=function(e){e.targetVM=vm;vm.$event=e;var res=handler(e);vm.$event=null;return res};if(this.iframeBind){this.iframeBind()}else{_.on(this.el,this.arg,this.handler)}},reset:function(){var el=this.iframeBind?this.el.contentWindow:this.el;if(this.handler){_.off(el,this.arg,this.handler)}},unbind:function(){this.reset();_.off(this.el,"load",this.iframeBind)}}}).call(this,require("_process"))},{"../util":63,_process:1}],30:[function(require,module,exports){var _=require("../util");var Watcher=require("../watcher");var bindingModes=require("../config")._propBindingModes;module.exports={bind:function(){var child=this.vm;var parent=child._context;var prop=this._descriptor;var childKey=prop.path;var parentKey=prop.parentPath;this.parentWatcher=new Watcher(parent,parentKey,function(val){if(_.assertProp(prop,val)){child[childKey]=val}});var value=this.parentWatcher.value;if(childKey==="$data"){child._data=value}else{_.initProp(child,prop,value)}if(prop.mode===bindingModes.TWO_WAY){var self=this;child.$once("hook:created",function(){self.childWatcher=new Watcher(child,childKey,function(val){parent.$set(parentKey,val)})})}},unbind:function(){this.parentWatcher.teardown();if(this.childWatcher){this.childWatcher.teardown()}}}},{"../config":14,"../util":63,"../watcher":66}],31:[function(require,module,exports){(function(process){var _=require("../util");module.exports={isLiteral:true,bind:function(){var vm=this.el.__vue__;if(!vm){process.env.NODE_ENV!=="production"&&_.warn("v-ref should only be used on a component root element.");return}vm._refID=this.expression}}}).call(this,require("_process"))},{"../util":63,_process:1}],32:[function(require,module,exports){(function(process){var _=require("../util");var config=require("../config");var isObject=_.isObject;var isPlainObject=_.isPlainObject;var textParser=require("../parsers/text");var expParser=require("../parsers/expression");var templateParser=require("../parsers/template");var compiler=require("../compiler");var uid=0;var UNRESOLVED=0;var PENDING=1;var RESOLVED=2;var ABORTED=3;module.exports={bind:function(){var inMatch=this.expression.match(/(.*) in (.*)/);if(inMatch){this.arg=inMatch[1];this._watcherExp=inMatch[2]}this.id="__v_repeat_"+ ++uid;this.start=_.createAnchor("v-repeat-start");this.end=_.createAnchor("v-repeat-end");_.replace(this.el,this.end);_.before(this.start,this.end);this.template=_.isTemplate(this.el)?templateParser.parse(this.el,true):this.el;this.idKey=this._checkParam("track-by");var stagger=+this._checkParam("stagger");this.enterStagger=+this._checkParam("enter-stagger")||stagger;this.leaveStagger=+this._checkParam("leave-stagger")||stagger;this.refID=this._checkParam(config.prefix+"ref");this.elID=this._checkParam(config.prefix+"el");this.checkIf();this.checkComponent();this.cache=Object.create(null);if(process.env.NODE_ENV!=="production"&&this.el.tagName==="OPTION"){_.warn("Don't use v-repeat for v-model options; "+"use the `options` param instead: "+"http://vuejs.org/guide/forms.html#Dynamic_Select_Options")}},checkIf:function(){if(_.attr(this.el,"if")!==null){process.env.NODE_ENV!=="production"&&_.warn("Don't use v-if with v-repeat. "+'Use v-show or the "filterBy" filter instead.')}},checkComponent:function(){this.componentState=UNRESOLVED;var options=this.vm.$options;var id=_.checkComponent(this.el,options);if(!id){this.Component=_.Vue;this.inline=true;this.template=compiler.transclude(this.template);var copy=_.extend({},options);copy._asComponent=false;this._linkFn=compiler.compile(this.template,copy)}else{this.Component=null;this.asComponent=true;if(this._checkParam("inline-template")!==null){this.inlineTemplate=_.extractContent(this.el,true)}var tokens=textParser.parse(id);if(tokens){var componentExp=textParser.tokensToExp(tokens);this.componentGetter=expParser.parse(componentExp).get}else{this.componentId=id;this.pendingData=null}}},resolveComponent:function(){this.componentState=PENDING;this.vm._resolveComponent(this.componentId,_.bind(function(Component){if(this.componentState===ABORTED){return}this.Component=Component;this.componentState=RESOLVED;this.realUpdate(this.pendingData);this.pendingData=null},this))},resolveDynamicComponent:function(data,meta){var context=Object.create(this.vm);var key;for(key in data){_.define(context,key,data[key])}for(key in meta){_.define(context,key,meta[key])}var id=this.componentGetter.call(context,context);var Component=_.resolveAsset(this.vm.$options,"components",id);if(process.env.NODE_ENV!=="production"){_.assertAsset(Component,"component",id)}if(!Component.options){process.env.NODE_ENV!=="production"&&_.warn("Async resolution is not supported for v-repeat "+"+ dynamic component. (component: "+id+")");return _.Vue}return Component},update:function(data){if(this.componentId){var state=this.componentState;if(state===UNRESOLVED){this.pendingData=data;this.resolveComponent()}else if(state===PENDING){this.pendingData=data}else if(state===RESOLVED){this.realUpdate(data)}}else{this.realUpdate(data)}},realUpdate:function(data){this.vms=this.diff(data,this.vms);if(this.refID){this.vm.$[this.refID]=this.converted?toRefObject(this.vms):this.vms}if(this.elID){this.vm.$$[this.elID]=this.vms.map(function(vm){return vm.$el})}},diff:function(data,oldVms){var idKey=this.idKey;var converted=this.converted;var start=this.start;var end=this.end;var inDoc=_.inDoc(start);var alias=this.arg;var init=!oldVms;var vms=new Array(data.length);var obj,raw,vm,i,l,primitive;for(i=0,l=data.length;i<l;i++){obj=data[i];raw=converted?obj.$value:obj;primitive=!isObject(raw);vm=!init&&this.getVm(raw,i,converted?obj.$key:null);if(vm){vm._reused=true;vm.$index=i;if(idKey||converted||primitive){if(alias){vm[alias]=raw}else if(_.isPlainObject(raw)){vm.$data=raw}else{vm.$value=raw}}}else{vm=this.build(obj,i,true);vm._reused=false}vms[i]=vm;if(init){vm.$before(end)}}if(init){return vms}var removalIndex=0;var totalRemoved=oldVms.length-vms.length;for(i=0,l=oldVms.length;i<l;i++){vm=oldVms[i];if(!vm._reused){this.uncacheVm(vm);vm.$destroy(false,true);this.remove(vm,removalIndex++,totalRemoved,inDoc)}}var targetPrev,prevEl,currentPrev;var insertionIndex=0;for(i=0,l=vms.length;i<l;i++){vm=vms[i];targetPrev=vms[i-1];prevEl=targetPrev?targetPrev._staggerCb?targetPrev._staggerAnchor:targetPrev._fragmentEnd||targetPrev.$el:start;if(vm._reused&&!vm._staggerCb){currentPrev=findPrevVm(vm,start,this.id);if(currentPrev!==targetPrev){this.move(vm,prevEl)}}else{this.insert(vm,insertionIndex++,prevEl,inDoc)}vm._reused=false}return vms},build:function(data,index,needCache){var meta={$index:index};if(this.converted){meta.$key=data.$key}var raw=this.converted?data.$value:data;var alias=this.arg;if(alias){data={};data[alias]=raw}else if(!isPlainObject(raw)){data={};meta.$value=raw}else{data=raw}var Component=this.Component||this.resolveDynamicComponent(data,meta);var parent=this._host||this.vm;var vm=parent.$addChild({el:templateParser.clone(this.template),data:data,inherit:this.inline,template:this.inlineTemplate,_meta:meta,_repeat:this.inline,_asComponent:this.asComponent,_linkerCachable:!this.inlineTemplate&&Component!==_.Vue,_linkFn:this._linkFn,_repeatId:this.id,_context:this.vm},Component);if(needCache){this.cacheVm(raw,vm,index,this.converted?meta.$key:null)}var dir=this;if(this.rawType==="object"&&isPrimitive(raw)){vm.$watch(alias||"$value",function(val){if(dir.filters){process.env.NODE_ENV!=="production"&&_.warn("You seem to be mutating the $value reference of "+"a v-repeat instance (likely through v-model) "+"and filtering the v-repeat at the same time. "+"This will not work properly with an Array of "+"primitive values. Please use an Array of "+"Objects instead.")}dir._withLock(function(){if(dir.converted){dir.rawValue[vm.$key]=val}else{dir.rawValue.$set(vm.$index,val)}})})}return vm},unbind:function(){this.componentState=ABORTED;if(this.refID){this.vm.$[this.refID]=null}if(this.vms){var i=this.vms.length;var vm;while(i--){vm=this.vms[i];this.uncacheVm(vm);vm.$destroy()}}},cacheVm:function(data,vm,index,key){var idKey=this.idKey;var cache=this.cache;var primitive=!isObject(data);var id;if(key||idKey||primitive){id=idKey?idKey==="$index"?index:data[idKey]:key||index;if(!cache[id]){cache[id]=vm}else if(!primitive&&idKey!=="$index"){process.env.NODE_ENV!=="production"&&_.warn("Duplicate track-by key in v-repeat: "+id)}}else{id=this.id;if(data.hasOwnProperty(id)){if(data[id]===null){data[id]=vm}else{process.env.NODE_ENV!=="production"&&_.warn("Duplicate objects are not supported in v-repeat "+"when using components or transitions.")}}else{_.define(data,id,vm)}}vm._raw=data},getVm:function(data,index,key){var idKey=this.idKey;var primitive=!isObject(data);if(key||idKey||primitive){var id=idKey?idKey==="$index"?index:data[idKey]:key||index;return this.cache[id]}else{return data[this.id]}},uncacheVm:function(vm){var data=vm._raw;var idKey=this.idKey;var index=vm.$index;var key=vm.hasOwnProperty("$key")&&vm.$key;var primitive=!isObject(data);if(idKey||key||primitive){var id=idKey?idKey==="$index"?index:data[idKey]:key||index;this.cache[id]=null}else{data[this.id]=null;vm._raw=null}},insert:function(vm,index,prevEl,inDoc){if(vm._staggerCb){vm._staggerCb.cancel();vm._staggerCb=null}var staggerAmount=this.getStagger(vm,index,null,"enter");if(inDoc&&staggerAmount){var anchor=vm._staggerAnchor;if(!anchor){anchor=vm._staggerAnchor=_.createAnchor("stagger-anchor");anchor.__vue__=vm}_.after(anchor,prevEl);var op=vm._staggerCb=_.cancellable(function(){vm._staggerCb=null;vm.$before(anchor);_.remove(anchor)});setTimeout(op,staggerAmount)}else{vm.$after(prevEl)}},move:function(vm,prevEl){vm.$after(prevEl,null,false)},remove:function(vm,index,total,inDoc){if(vm._staggerCb){vm._staggerCb.cancel();vm._staggerCb=null;return}var staggerAmount=this.getStagger(vm,index,total,"leave");if(inDoc&&staggerAmount){var op=vm._staggerCb=_.cancellable(function(){vm._staggerCb=null;remove()});setTimeout(op,staggerAmount)}else{remove()}function remove(){vm.$remove(function(){vm._cleanup()})}},getStagger:function(vm,index,total,type){type=type+"Stagger";var transition=vm.$el.__v_trans;var hooks=transition&&transition.hooks;var hook=hooks&&(hooks[type]||hooks.stagger);return hook?hook.call(vm,index,total):index*this[type]},_preProcess:function(value){this.rawValue=value;var type=this.rawType=typeof value;if(!isPlainObject(value)){this.converted=false;if(type==="number"){value=range(value)}else if(type==="string"){value=_.toArray(value)}return value||[]}else{var keys=Object.keys(value);var i=keys.length;var res=new Array(i);var key;while(i--){key=keys[i];res[i]={$key:key,$value:value[key]}}this.converted=true;return res}}};function findPrevVm(vm,anchor,id){var el=vm.$el.previousSibling;if(!el)return;while((!el.__vue__||el.__vue__.$options._repeatId!==id)&&el!==anchor){el=el.previousSibling}return el.__vue__}function range(n){var i=-1;var ret=new Array(n);while(++i<n){ret[i]=i}return ret}function toRefObject(vms){var ref={};for(var i=0,l=vms.length;i<l;i++){ref[vms[i].$key]=vms[i]}return ref}function isPrimitive(value){var type=typeof value;return value==null||type==="string"||type==="number"||type==="boolean"}}).call(this,require("_process"))},{"../compiler":12,"../config":14,"../parsers/expression":52,"../parsers/template":54,"../parsers/text":55,"../util":63,_process:1}],33:[function(require,module,exports){var transition=require("../transition");module.exports=function(value){var el=this.el;transition.apply(el,value?1:-1,function(){el.style.display=value?"":"none"},this.vm)}},{"../transition":56}],34:[function(require,module,exports){var _=require("../util");var prefixes=["-webkit-","-moz-","-ms-"];var camelPrefixes=["Webkit","Moz","ms"];var importantRE=/!important;?$/;var camelRE=/([a-z])([A-Z])/g;var testEl=null;var propCache={};module.exports={deep:true,update:function(value){if(this.arg){this.setProp(this.arg,value)}else{if(typeof value==="object"){this.objectHandler(value)}else{this.el.style.cssText=value}}},objectHandler:function(value){var cache=this.cache||(this.cache={});var prop,val;for(prop in cache){if(!(prop in value)){this.setProp(prop,null);delete cache[prop]}}for(prop in value){val=value[prop];if(val!==cache[prop]){cache[prop]=val;this.setProp(prop,val)}}},setProp:function(prop,value){prop=normalize(prop);if(!prop)return;if(value!=null)value+="";if(value){var isImportant=importantRE.test(value)?"important":"";if(isImportant){value=value.replace(importantRE,"").trim()}this.el.style.setProperty(prop,value,isImportant)}else{this.el.style.removeProperty(prop)}}};function normalize(prop){if(propCache[prop]){return propCache[prop]}var res=prefix(prop);propCache[prop]=propCache[res]=res;return res}function prefix(prop){prop=prop.replace(camelRE,"$1-$2").toLowerCase();var camel=_.camelize(prop);var upper=camel.charAt(0).toUpperCase()+camel.slice(1);if(!testEl){testEl=document.createElement("div")}if(camel in testEl.style){return prop}var i=prefixes.length;var prefixed;while(i--){prefixed=camelPrefixes[i]+upper;if(prefixed in testEl.style){return prefixes[i]+prop}}}},{"../util":63}],35:[function(require,module,exports){var _=require("../util");module.exports={bind:function(){this.attr=this.el.nodeType===3?"data":"textContent"},update:function(value){this.el[this.attr]=_.toString(value)}}},{"../util":63}],36:[function(require,module,exports){var _=require("../util");var Transition=require("../transition/transition");module.exports={priority:1e3,isLiteral:true,bind:function(){if(!this._isDynamicLiteral){this.update(this.expression)}},update:function(id,oldId){var el=this.el;var vm=this.el.__vue__||this.vm;var hooks=_.resolveAsset(vm.$options,"transitions",id);id=id||"v";el.__v_trans=new Transition(el,id,hooks,vm);if(oldId){_.removeClass(el,oldId+"-transition")}_.addClass(el,id+"-transition")}}},{"../transition/transition":58,"../util":63}],37:[function(require,module,exports){var _=require("../util");var clone=require("../parsers/template").clone;module.exports={bind:function(){var vm=this.vm;var host=vm;while(host.$options._repeat){host=host.$parent}var raw=host.$options._content;var content;if(!raw){this.fallback();return}var context=host._context;var selector=this._checkParam("select");if(!selector){var self=this;var compileDefaultContent=function(){self.compile(extractFragment(raw.childNodes,raw,true),context,vm)};if(!host._isCompiled){host.$once("hook:compiled",compileDefaultContent)}else{compileDefaultContent()}}else{var nodes=raw.querySelectorAll(selector);if(nodes.length){content=extractFragment(nodes,raw);if(content.hasChildNodes()){this.compile(content,context,vm)}else{this.fallback()}}else{this.fallback()}}},fallback:function(){this.compile(_.extractContent(this.el,true),this.vm)},compile:function(content,context,host){if(content&&context){this.unlink=context.$compile(content,host)}if(content){_.replace(this.el,content)}else{_.remove(this.el)}},unbind:function(){if(this.unlink){this.unlink()}}};function extractFragment(nodes,parent,main){var frag=document.createDocumentFragment();for(var i=0,l=nodes.length;i<l;i++){var node=nodes[i];if(main&&!node.__v_selected){frag.appendChild(clone(node))}else if(!main&&node.parentNode===parent){node.__v_selected=true;frag.appendChild(clone(node))}}return frag}},{"../parsers/template":54,"../util":63}],38:[function(require,module,exports){exports.content=require("./content");exports.partial=require("./partial")},{"./content":37,"./partial":39}],39:[function(require,module,exports){(function(process){var _=require("../util");var templateParser=require("../parsers/template");var textParser=require("../parsers/text");var compiler=require("../compiler");var Cache=require("../cache");var cache=new Cache(1e3);var vIf=require("../directives/if");module.exports={link:vIf.link,teardown:vIf.teardown,getContainedComponents:vIf.getContainedComponents,bind:function(){var el=this.el;this.start=_.createAnchor("v-partial-start");this.end=_.createAnchor("v-partial-end");_.replace(el,this.end);_.before(this.start,this.end);var id=el.getAttribute("name");var tokens=textParser.parse(id);if(tokens){this.setupDynamic(tokens)}else{this.insert(id)}},setupDynamic:function(tokens){var self=this;var exp=textParser.tokensToExp(tokens);this.unwatch=this.vm.$watch(exp,function(value){self.teardown();self.insert(value)},{immediate:true,user:false})},insert:function(id){var partial=_.resolveAsset(this.vm.$options,"partials",id);if(process.env.NODE_ENV!=="production"){_.assertAsset(partial,"partial",id)}if(partial){var frag=templateParser.parse(partial,true);var cacheId=(this.vm.constructor.cid||"")+partial;var linker=this.compile(frag,cacheId);this.link(frag,linker)}},compile:function(frag,cacheId){var hit=cache.get(cacheId);if(hit)return hit;var linker=compiler.compile(frag,this.vm.$options,true);cache.put(cacheId,linker);return linker},unbind:function(){if(this.unlink)this.unlink();if(this.unwatch)this.unwatch()}}}).call(this,require("_process"))},{"../cache":9,"../compiler":12,"../directives/if":22,"../parsers/template":54,"../parsers/text":55,"../util":63,_process:1}],40:[function(require,module,exports){var _=require("../util");var Path=require("../parsers/path");exports.filterBy=function(arr,search,delimiter,dataKey){if(delimiter&&delimiter!=="in"){dataKey=delimiter}if(search==null){return arr}search=(""+search).toLowerCase();return arr.filter(function(item){return dataKey?contains(Path.get(item,dataKey),search):contains(item,search)})};exports.orderBy=function(arr,sortKey,reverse){
if(!sortKey){return arr}var order=1;if(arguments.length>2){if(reverse==="-1"){order=-1}else{order=reverse?-1:1}}return arr.slice().sort(function(a,b){if(sortKey!=="$key"&&sortKey!=="$value"){if(a&&"$value"in a)a=a.$value;if(b&&"$value"in b)b=b.$value}a=_.isObject(a)?Path.get(a,sortKey):a;b=_.isObject(b)?Path.get(b,sortKey):b;return a===b?0:a>b?order:-order})};function contains(val,search){if(_.isPlainObject(val)){for(var key in val){if(contains(val[key],search)){return true}}}else if(_.isArray(val)){var i=val.length;while(i--){if(contains(val[i],search)){return true}}}else if(val!=null){return val.toString().toLowerCase().indexOf(search)>-1}}},{"../parsers/path":53,"../util":63}],41:[function(require,module,exports){var _=require("../util");exports.json={read:function(value,indent){return typeof value==="string"?value:JSON.stringify(value,null,Number(indent)||2)},write:function(value){try{return JSON.parse(value)}catch(e){return value}}};exports.capitalize=function(value){if(!value&&value!==0)return"";value=value.toString();return value.charAt(0).toUpperCase()+value.slice(1)};exports.uppercase=function(value){return value||value===0?value.toString().toUpperCase():""};exports.lowercase=function(value){return value||value===0?value.toString().toLowerCase():""};var digitsRE=/(\d{3})(?=\d)/g;exports.currency=function(value,currency){value=parseFloat(value);if(!isFinite(value)||!value&&value!==0)return"";currency=currency||"$";var stringified=Math.abs(value).toFixed(2);var _int=stringified.slice(0,-3);var i=_int.length%3;var head=i>0?_int.slice(0,i)+(_int.length>3?",":""):"";var _float=stringified.slice(-3);var sign=value<0?"-":"";return currency+sign+head+_int.slice(i).replace(digitsRE,"$1,")+_float};exports.pluralize=function(value){var args=_.toArray(arguments,1);return args.length>1?args[value%10-1]||args[args.length-1]:args[0]+(value===1?"":"s")};var keyCodes={esc:27,tab:9,enter:13,"delete":46,up:38,left:37,right:39,down:40};exports.key=function(handler,key){if(!handler)return;var code=keyCodes[key];if(!code){code=parseInt(key,10)}return function(e){if(e.keyCode===code){return handler.call(this,e)}}};exports.key.keyCodes=keyCodes;_.extend(exports,require("./array-filters"))},{"../util":63,"./array-filters":40}],42:[function(require,module,exports){var _=require("../util");var Directive=require("../directive");var compiler=require("../compiler");exports._compile=function(el){var options=this.$options;var host=this._host;if(options._linkFn){this._initElement(el);this._unlinkFn=options._linkFn(this,el,host)}else{var original=el;el=compiler.transclude(el,options);this._initElement(el);var rootUnlinkFn=compiler.compileAndLinkRoot(this,el,options);var linker;var ctor=this.constructor;if(options._linkerCachable){linker=ctor.linker;if(!linker){linker=ctor.linker=compiler.compile(el,options)}}var contentUnlinkFn=linker?linker(this,el):compiler.compile(el,options)(this,el,host);this._unlinkFn=function(){rootUnlinkFn();contentUnlinkFn(true)};if(options.replace){_.replace(original,el)}}return el};exports._initElement=function(el){if(el instanceof DocumentFragment){this._isFragment=true;this.$el=this._fragmentStart=el.firstChild;this._fragmentEnd=el.lastChild;if(this._fragmentStart.nodeType===3){this._fragmentStart.data=this._fragmentEnd.data=""}this._blockFragment=el}else{this.$el=el}this.$el.__vue__=this;this._callHook("beforeCompile")};exports._bindDir=function(name,node,desc,def,host){this._directives.push(new Directive(name,node,this,desc,def,host))};exports._destroy=function(remove,deferCleanup){if(this._isBeingDestroyed){return}this._callHook("beforeDestroy");this._isBeingDestroyed=true;var i;var parent=this.$parent;if(parent&&!parent._isBeingDestroyed){parent.$children.$remove(this)}i=this.$children.length;while(i--){this.$children[i].$destroy()}if(this._propsUnlinkFn){this._propsUnlinkFn()}if(this._unlinkFn){this._unlinkFn()}i=this._watchers.length;while(i--){this._watchers[i].teardown()}if(this.$el){this.$el.__vue__=null}var self=this;if(remove&&this.$el){this.$remove(function(){self._cleanup()})}else if(!deferCleanup){this._cleanup()}};exports._cleanup=function(){if(this._data.__ob__){this._data.__ob__.removeVm(this)}this.$el=this.$parent=this.$root=this.$children=this._watchers=this._directives=null;this._isDestroyed=true;this._callHook("destroyed");this.$off()}},{"../compiler":12,"../directive":15,"../util":63}],43:[function(require,module,exports){(function(process){var _=require("../util");var inDoc=_.inDoc;exports._initEvents=function(){var options=this.$options;registerCallbacks(this,"$on",options.events);registerCallbacks(this,"$watch",options.watch)};function registerCallbacks(vm,action,hash){if(!hash)return;var handlers,key,i,j;for(key in hash){handlers=hash[key];if(_.isArray(handlers)){for(i=0,j=handlers.length;i<j;i++){register(vm,action,key,handlers[i])}}else{register(vm,action,key,handlers)}}}function register(vm,action,key,handler,options){var type=typeof handler;if(type==="function"){vm[action](key,handler,options)}else if(type==="string"){var methods=vm.$options.methods;var method=methods&&methods[handler];if(method){vm[action](key,method,options)}else{process.env.NODE_ENV!=="production"&&_.warn('Unknown method: "'+handler+'" when '+"registering callback for "+action+': "'+key+'".')}}else if(handler&&type==="object"){register(vm,action,key,handler.handler,handler)}}exports._initDOMHooks=function(){this.$on("hook:attached",onAttached);this.$on("hook:detached",onDetached)};function onAttached(){if(!this._isAttached){this._isAttached=true;this.$children.forEach(callAttach)}}function callAttach(child){if(!child._isAttached&&inDoc(child.$el)){child._callHook("attached")}}function onDetached(){if(this._isAttached){this._isAttached=false;this.$children.forEach(callDetach)}}function callDetach(child){if(child._isAttached&&!inDoc(child.$el)){child._callHook("detached")}}exports._callHook=function(hook){var handlers=this.$options[hook];if(handlers){for(var i=0,j=handlers.length;i<j;i++){handlers[i].call(this)}}this.$emit("hook:"+hook)}}).call(this,require("_process"))},{"../util":63,_process:1}],44:[function(require,module,exports){var mergeOptions=require("../util").mergeOptions;exports._init=function(options){options=options||{};this.$el=null;this.$parent=options._parent;this.$root=options._root||this;this.$children=[];this.$={};this.$$={};this._watchers=[];this._directives=[];this._childCtors={};this._isVue=true;this._events={};this._eventsCount={};this._eventCancelled=false;this._isFragment=false;this._fragmentStart=this._fragmentEnd=null;this._isCompiled=this._isDestroyed=this._isReady=this._isAttached=this._isBeingDestroyed=false;this._unlinkFn=null;this._context=options._context||options._parent;if(this.$parent){this.$parent.$children.push(this)}this._reused=false;this._staggerOp=null;options=this.$options=mergeOptions(this.constructor.options,options,this);this._data={};this._initScope();this._initEvents();this._callHook("created");if(options.el){this.$mount(options.el)}}},{"../util":63}],45:[function(require,module,exports){(function(process){var _=require("../util");exports._applyFilters=function(value,oldValue,filters,write){var filter,fn,args,arg,offset,i,l,j,k;for(i=0,l=filters.length;i<l;i++){filter=filters[i];fn=_.resolveAsset(this.$options,"filters",filter.name);if(process.env.NODE_ENV!=="production"){_.assertAsset(fn,"filter",filter.name)}if(!fn)continue;fn=write?fn.write:fn.read||fn;if(typeof fn!=="function")continue;args=write?[value,oldValue]:[value];offset=write?2:1;if(filter.args){for(j=0,k=filter.args.length;j<k;j++){arg=filter.args[j];args[j+offset]=arg.dynamic?this.$get(arg.value):arg.value}}value=fn.apply(this,args)}return value};exports._resolveComponent=function(id,cb){var factory=_.resolveAsset(this.$options,"components",id);if(process.env.NODE_ENV!=="production"){_.assertAsset(factory,"component",id)}if(!factory){return}if(!factory.options){if(factory.resolved){cb(factory.resolved)}else if(factory.requested){factory.pendingCallbacks.push(cb)}else{factory.requested=true;var cbs=factory.pendingCallbacks=[cb];factory(function resolve(res){if(_.isPlainObject(res)){res=_.Vue.extend(res)}factory.resolved=res;for(var i=0,l=cbs.length;i<l;i++){cbs[i](res)}},function reject(reason){process.env.NODE_ENV!=="production"&&_.warn("Failed to resolve async component: "+id+". "+(reason?"\nReason: "+reason:""))})}}else{cb(factory)}}}).call(this,require("_process"))},{"../util":63,_process:1}],46:[function(require,module,exports){(function(process){var _=require("../util");var compiler=require("../compiler");var Observer=require("../observer");var Dep=require("../observer/dep");var Watcher=require("../watcher");exports._initScope=function(){this._initProps();this._initMeta();this._initMethods();this._initData();this._initComputed()};exports._initProps=function(){var options=this.$options;var el=options.el;var props=options.props;if(props&&!el){process.env.NODE_ENV!=="production"&&_.warn("Props will not be compiled if no `el` option is "+"provided at instantiation.")}el=options.el=_.query(el);this._propsUnlinkFn=el&&props?compiler.compileAndLinkProps(this,el,props):null};exports._initData=function(){var propsData=this._data;var optionsDataFn=this.$options.data;var optionsData=optionsDataFn&&optionsDataFn();if(optionsData){this._data=optionsData;for(var prop in propsData){if(this._props[prop].raw!==null||!optionsData.hasOwnProperty(prop)){optionsData.$set(prop,propsData[prop])}}}var data=this._data;var keys=Object.keys(data);var i,key;i=keys.length;while(i--){key=keys[i];if(!_.isReserved(key)){this._proxy(key)}}Observer.create(data,this)};exports._setData=function(newData){newData=newData||{};var oldData=this._data;this._data=newData;var keys,key,i;var props=this.$options.props;if(props){i=props.length;while(i--){key=props[i].name;if(key!=="$data"&&!newData.hasOwnProperty(key)){newData.$set(key,oldData[key])}}}keys=Object.keys(oldData);i=keys.length;while(i--){key=keys[i];if(!_.isReserved(key)&&!(key in newData)){this._unproxy(key)}}keys=Object.keys(newData);i=keys.length;while(i--){key=keys[i];if(!this.hasOwnProperty(key)&&!_.isReserved(key)){this._proxy(key)}}oldData.__ob__.removeVm(this);Observer.create(newData,this);this._digest()};exports._proxy=function(key){var self=this;Object.defineProperty(self,key,{configurable:true,enumerable:true,get:function proxyGetter(){return self._data[key]},set:function proxySetter(val){self._data[key]=val}})};exports._unproxy=function(key){delete this[key]};exports._digest=function(){var i=this._watchers.length;while(i--){this._watchers[i].update(true)}var children=this.$children;i=children.length;while(i--){var child=children[i];if(child.$options.inherit){child._digest()}}};function noop(){}exports._initComputed=function(){var computed=this.$options.computed;if(computed){for(var key in computed){var userDef=computed[key];var def={enumerable:true,configurable:true};if(typeof userDef==="function"){def.get=makeComputedGetter(userDef,this);def.set=noop}else{def.get=userDef.get?makeComputedGetter(userDef.get,this):noop;def.set=userDef.set?_.bind(userDef.set,this):noop}Object.defineProperty(this,key,def)}}};function makeComputedGetter(getter,owner){var watcher=new Watcher(owner,getter,null,{lazy:true});return function computedGetter(){if(watcher.dirty){watcher.evaluate()}if(Dep.target){watcher.depend()}return watcher.value}}exports._initMethods=function(){var methods=this.$options.methods;if(methods){for(var key in methods){this[key]=_.bind(methods[key],this)}}};exports._initMeta=function(){var metas=this.$options._meta;if(metas){for(var key in metas){this._defineMeta(key,metas[key])}}};exports._defineMeta=function(key,value){var dep=new Dep;Object.defineProperty(this,key,{enumerable:true,configurable:true,get:function metaGetter(){if(Dep.target){dep.depend()}return value},set:function metaSetter(val){if(val!==value){value=val;dep.notify()}}})}}).call(this,require("_process"))},{"../compiler":12,"../observer":49,"../observer/dep":48,"../util":63,"../watcher":66,_process:1}],47:[function(require,module,exports){var _=require("../util");var arrayProto=Array.prototype;var arrayMethods=Object.create(arrayProto);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(method){var original=arrayProto[method];_.define(arrayMethods,method,function mutator(){var i=arguments.length;var args=new Array(i);while(i--){args[i]=arguments[i]}var result=original.apply(this,args);var ob=this.__ob__;var inserted;switch(method){case"push":inserted=args;break;case"unshift":inserted=args;break;case"splice":inserted=args.slice(2);break}if(inserted)ob.observeArray(inserted);ob.dep.notify();return result})});_.define(arrayProto,"$set",function $set(index,val){if(index>=this.length){this.length=index+1}return this.splice(index,1,val)[0]});_.define(arrayProto,"$remove",function $remove(index){if(!this.length)return;if(typeof index!=="number"){index=_.indexOf(this,index)}if(index>-1){return this.splice(index,1)}});module.exports=arrayMethods},{"../util":63}],48:[function(require,module,exports){var _=require("../util");function Dep(){this.subs=[]}Dep.target=null;var p=Dep.prototype;p.addSub=function(sub){this.subs.push(sub)};p.removeSub=function(sub){this.subs.$remove(sub)};p.depend=function(){Dep.target.addDep(this)};p.notify=function(){var subs=_.toArray(this.subs);for(var i=0,l=subs.length;i<l;i++){subs[i].update()}};module.exports=Dep},{"../util":63}],49:[function(require,module,exports){var _=require("../util");var config=require("../config");var Dep=require("./dep");var arrayMethods=require("./array");var arrayKeys=Object.getOwnPropertyNames(arrayMethods);require("./object");function Observer(value){this.value=value;this.dep=new Dep;_.define(value,"__ob__",this);if(_.isArray(value)){var augment=config.proto&&_.hasProto?protoAugment:copyAugment;augment(value,arrayMethods,arrayKeys);this.observeArray(value)}else{this.walk(value)}}Observer.create=function(value,vm){var ob;if(value&&value.hasOwnProperty("__ob__")&&value.__ob__ instanceof Observer){ob=value.__ob__}else if(_.isObject(value)&&!Object.isFrozen(value)&&!value._isVue){ob=new Observer(value)}if(ob&&vm){ob.addVm(vm)}return ob};var p=Observer.prototype;p.walk=function(obj){var keys=Object.keys(obj);var i=keys.length;var key,prefix;while(i--){key=keys[i];prefix=key.charCodeAt(0);if(prefix!==36&&prefix!==95){this.convert(key,obj[key])}}};p.observe=function(val){return Observer.create(val)};p.observeArray=function(items){var i=items.length;while(i--){this.observe(items[i])}};p.convert=function(key,val){var ob=this;var childOb=ob.observe(val);var dep=new Dep;Object.defineProperty(ob.value,key,{enumerable:true,configurable:true,get:function(){if(Dep.target){dep.depend();if(childOb){childOb.dep.depend()}if(_.isArray(val)){for(var e,i=0,l=val.length;i<l;i++){e=val[i];e&&e.__ob__&&e.__ob__.dep.depend()}}}return val},set:function(newVal){if(newVal===val)return;val=newVal;childOb=ob.observe(newVal);dep.notify()}})};p.addVm=function(vm){(this.vms||(this.vms=[])).push(vm)};p.removeVm=function(vm){this.vms.$remove(vm)};function protoAugment(target,src){target.__proto__=src}function copyAugment(target,src,keys){var i=keys.length;var key;while(i--){key=keys[i];_.define(target,key,src[key])}}module.exports=Observer},{"../config":14,"../util":63,"./array":47,"./dep":48,"./object":50}],50:[function(require,module,exports){var _=require("../util");var objProto=Object.prototype;_.define(objProto,"$add",function $add(key,val){if(this.hasOwnProperty(key))return;var ob=this.__ob__;if(!ob||_.isReserved(key)){this[key]=val;return}ob.convert(key,val);ob.dep.notify();if(ob.vms){var i=ob.vms.length;while(i--){var vm=ob.vms[i];vm._proxy(key);vm._digest()}}});_.define(objProto,"$set",function $set(key,val){this.$add(key,val);this[key]=val});_.define(objProto,"$delete",function $delete(key){if(!this.hasOwnProperty(key))return;delete this[key];var ob=this.__ob__;if(!ob||_.isReserved(key)){return}ob.dep.notify();if(ob.vms){var i=ob.vms.length;while(i--){var vm=ob.vms[i];vm._unproxy(key);vm._digest()}}})},{"../util":63}],51:[function(require,module,exports){var _=require("../util");var Cache=require("../cache");var cache=new Cache(1e3);var argRE=/^[^\{\?]+$|^'[^']*'$|^"[^"]*"$/;var filterTokenRE=/[^\s'"]+|'[^']+'|"[^"]+"/g;var reservedArgRE=/^in$|^-?\d+/;var str;var c,i,l;var inSingle;var inDouble;var curly;var square;var paren;var begin;var argIndex;var dirs;var dir;var lastFilterIndex;var arg;function pushDir(){dir.raw=str.slice(begin,i).trim();if(dir.expression===undefined){dir.expression=str.slice(argIndex,i).trim()}else if(lastFilterIndex!==begin){pushFilter()}if(i===0||dir.expression){dirs.push(dir)}}function pushFilter(){var exp=str.slice(lastFilterIndex,i).trim();var filter;if(exp){filter={};var tokens=exp.match(filterTokenRE);filter.name=tokens[0];if(tokens.length>1){filter.args=tokens.slice(1).map(processFilterArg)}}if(filter){(dir.filters=dir.filters||[]).push(filter)}lastFilterIndex=i+1}function processFilterArg(arg){var stripped=reservedArgRE.test(arg)?arg:_.stripQuotes(arg);return{value:stripped||arg,dynamic:!stripped}}exports.parse=function(s){var hit=cache.get(s);if(hit){return hit}str=s;inSingle=inDouble=false;curly=square=paren=begin=argIndex=0;lastFilterIndex=0;dirs=[];dir={};arg=null;for(i=0,l=str.length;i<l;i++){c=str.charCodeAt(i);if(inSingle){if(c===39)inSingle=!inSingle}else if(inDouble){if(c===34)inDouble=!inDouble}else if(c===44&&!paren&&!curly&&!square){pushDir();dir={};begin=argIndex=lastFilterIndex=i+1}else if(c===58&&!dir.expression&&!dir.arg){arg=str.slice(begin,i).trim();if(argRE.test(arg)){argIndex=i+1;dir.arg=_.stripQuotes(arg)||arg}}else if(c===124&&str.charCodeAt(i+1)!==124&&str.charCodeAt(i-1)!==124){if(dir.expression===undefined){lastFilterIndex=i+1;dir.expression=str.slice(argIndex,i).trim()}else{pushFilter()}}else{switch(c){case 34:inDouble=true;break;case 39:inSingle=true;break;case 40:paren++;break;case 41:paren--;break;case 91:square++;break;case 93:square--;break;case 123:curly++;break;case 125:curly--;break}}}if(i===0||begin!==i){pushDir()}cache.put(s,dirs);return dirs}},{"../cache":9,"../util":63}],52:[function(require,module,exports){(function(process){var _=require("../util");var Path=require("./path");var Cache=require("../cache");var expressionCache=new Cache(1e3);var allowedKeywords="Math,Date,this,true,false,null,undefined,Infinity,NaN,"+"isNaN,isFinite,decodeURI,decodeURIComponent,encodeURI,"+"encodeURIComponent,parseInt,parseFloat";var allowedKeywordsRE=new RegExp("^("+allowedKeywords.replace(/,/g,"\\b|")+"\\b)");var improperKeywords="break,case,class,catch,const,continue,debugger,default,"+"delete,do,else,export,extends,finally,for,function,if,"+"import,in,instanceof,let,return,super,switch,throw,try,"+"var,while,with,yield,enum,await,implements,package,"+"proctected,static,interface,private,public";var improperKeywordsRE=new RegExp("^("+improperKeywords.replace(/,/g,"\\b|")+"\\b)");var wsRE=/\s/g;var newlineRE=/\n/g;var saveRE=/[\{,]\s*[\w\$_]+\s*:|('[^']*'|"[^"]*")|new |typeof |void /g;var restoreRE=/"(\d+)"/g;var pathTestRE=/^[A-Za-z_$][\w$]*(\.[A-Za-z_$][\w$]*|\['.*?'\]|\[".*?"\]|\[\d+\]|\[[A-Za-z_$][\w$]*\])*$/;var pathReplaceRE=/[^\w$\.]([A-Za-z_$][\w$]*(\.[A-Za-z_$][\w$]*|\['.*?'\]|\[".*?"\])*)/g;var booleanLiteralRE=/^(true|false)$/;var saved=[];function save(str,isString){var i=saved.length;saved[i]=isString?str.replace(newlineRE,"\\n"):str;return'"'+i+'"'}function rewrite(raw){var c=raw.charAt(0);var path=raw.slice(1);if(allowedKeywordsRE.test(path)){return raw}else{path=path.indexOf('"')>-1?path.replace(restoreRE,restore):path;return c+"scope."+path}}function restore(str,i){return saved[i]}function compileExpFns(exp,needSet){if(improperKeywordsRE.test(exp)){process.env.NODE_ENV!=="production"&&_.warn("Avoid using reserved keywords in expression: "+exp)}saved.length=0;var body=exp.replace(saveRE,save).replace(wsRE,"");body=(" "+body).replace(pathReplaceRE,rewrite).replace(restoreRE,restore);var getter=makeGetter(body);if(getter){return{get:getter,body:body,set:needSet?makeSetter(body):null}}}function compilePathFns(exp){var getter,path;if(exp.indexOf("[")<0){path=exp.split(".");path.raw=exp;getter=Path.compileGetter(path)}else{path=Path.parse(exp);getter=path.get}return{get:getter,set:function(obj,val){Path.set(obj,path,val)}}}function makeGetter(body){try{return new Function("scope","return "+body+";")}catch(e){process.env.NODE_ENV!=="production"&&_.warn("Invalid expression. "+"Generated function body: "+body)}}function makeSetter(body){try{return new Function("scope","value",body+"=value;")}catch(e){process.env.NODE_ENV!=="production"&&_.warn("Invalid setter function body: "+body)}}function checkSetter(hit){if(!hit.set){hit.set=makeSetter(hit.body)}}exports.parse=function(exp,needSet){exp=exp.trim();var hit=expressionCache.get(exp);if(hit){if(needSet){checkSetter(hit)}return hit}var res=exports.isSimplePath(exp)?compilePathFns(exp):compileExpFns(exp,needSet);expressionCache.put(exp,res);return res};exports.isSimplePath=function(exp){return pathTestRE.test(exp)&&!booleanLiteralRE.test(exp)&&exp.slice(0,5)!=="Math."}}).call(this,require("_process"))},{"../cache":9,"../util":63,"./path":53,_process:1}],53:[function(require,module,exports){(function(process){var _=require("../util");var Cache=require("../cache");var pathCache=new Cache(1e3);var identRE=exports.identRE=/^[$_a-zA-Z]+[\w$]*$/;var APPEND=0;var PUSH=1;var BEFORE_PATH=0;var IN_PATH=1;var BEFORE_IDENT=2;var IN_IDENT=3;var BEFORE_ELEMENT=4;var AFTER_ZERO=5;var IN_INDEX=6;var IN_SINGLE_QUOTE=7;var IN_DOUBLE_QUOTE=8;var IN_SUB_PATH=9;var AFTER_ELEMENT=10;var AFTER_PATH=11;var ERROR=12;var pathStateMachine=[];pathStateMachine[BEFORE_PATH]={ws:[BEFORE_PATH],ident:[IN_IDENT,APPEND],"[":[BEFORE_ELEMENT],eof:[AFTER_PATH]};pathStateMachine[IN_PATH]={ws:[IN_PATH],".":[BEFORE_IDENT],"[":[BEFORE_ELEMENT],eof:[AFTER_PATH]};pathStateMachine[BEFORE_IDENT]={ws:[BEFORE_IDENT],ident:[IN_IDENT,APPEND]};pathStateMachine[IN_IDENT]={ident:[IN_IDENT,APPEND],0:[IN_IDENT,APPEND],number:[IN_IDENT,APPEND],ws:[IN_PATH,PUSH],".":[BEFORE_IDENT,PUSH],"[":[BEFORE_ELEMENT,PUSH],eof:[AFTER_PATH,PUSH]};pathStateMachine[BEFORE_ELEMENT]={ws:[BEFORE_ELEMENT],0:[AFTER_ZERO,APPEND],number:[IN_INDEX,APPEND],"'":[IN_SINGLE_QUOTE,APPEND,""],'"':[IN_DOUBLE_QUOTE,APPEND,""],ident:[IN_SUB_PATH,APPEND,"*"]};pathStateMachine[AFTER_ZERO]={ws:[AFTER_ELEMENT,PUSH],"]":[IN_PATH,PUSH]};pathStateMachine[IN_INDEX]={0:[IN_INDEX,APPEND],number:[IN_INDEX,APPEND],ws:[AFTER_ELEMENT],"]":[IN_PATH,PUSH]};pathStateMachine[IN_SINGLE_QUOTE]={"'":[AFTER_ELEMENT],eof:ERROR,"else":[IN_SINGLE_QUOTE,APPEND]};pathStateMachine[IN_DOUBLE_QUOTE]={'"':[AFTER_ELEMENT],eof:ERROR,"else":[IN_DOUBLE_QUOTE,APPEND]};pathStateMachine[IN_SUB_PATH]={ident:[IN_SUB_PATH,APPEND],0:[IN_SUB_PATH,APPEND],number:[IN_SUB_PATH,APPEND],ws:[AFTER_ELEMENT],"]":[IN_PATH,PUSH]};pathStateMachine[AFTER_ELEMENT]={ws:[AFTER_ELEMENT],"]":[IN_PATH,PUSH]};function getPathCharType(ch){if(ch===undefined){return"eof"}var code=ch.charCodeAt(0);switch(code){case 91:case 93:case 46:case 34:case 39:case 48:return ch;case 95:case 36:return"ident";case 32:case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}if(code>=97&&code<=122||code>=65&&code<=90){return"ident"}if(code>=49&&code<=57){return"number"}return"else"}function parsePath(path){var keys=[];var index=-1;var mode=BEFORE_PATH;var c,newChar,key,type,transition,action,typeMap;var actions=[];actions[PUSH]=function(){if(key===undefined){return}keys.push(key);key=undefined};actions[APPEND]=function(){if(key===undefined){key=newChar}else{key+=newChar}};function maybeUnescapeQuote(){var nextChar=path[index+1];if(mode===IN_SINGLE_QUOTE&&nextChar==="'"||mode===IN_DOUBLE_QUOTE&&nextChar==='"'){index++;newChar=nextChar;actions[APPEND]();return true}}while(mode!=null){index++;c=path[index];if(c==="\\"&&maybeUnescapeQuote()){continue}type=getPathCharType(c);typeMap=pathStateMachine[mode];transition=typeMap[type]||typeMap["else"]||ERROR;if(transition===ERROR){return}mode=transition[0];action=actions[transition[1]];if(action){newChar=transition[2];newChar=newChar===undefined?c:newChar==="*"?newChar+c:newChar;action()}if(mode===AFTER_PATH){keys.raw=path;return keys}}}function formatAccessor(key){if(identRE.test(key)){return"."+key}else if(+key===key>>>0){return"["+key+"]"}else if(key.charAt(0)==="*"){return"[o"+formatAccessor(key.slice(1))+"]"}else{return'["'+key.replace(/"/g,'\\"')+'"]'}}exports.compileGetter=function(path){var body="return o"+path.map(formatAccessor).join("");return new Function("o",body)};exports.parse=function(path){var hit=pathCache.get(path);if(!hit){hit=parsePath(path);if(hit){hit.get=exports.compileGetter(hit);pathCache.put(path,hit)}}return hit};exports.get=function(obj,path){path=exports.parse(path);if(path){return path.get(obj)}};exports.set=function(obj,path,val){var original=obj;if(typeof path==="string"){path=exports.parse(path)}if(!path||!_.isObject(obj)){return false}var last,key;for(var i=0,l=path.length;i<l;i++){last=obj;key=path[i];if(key.charAt(0)==="*"){key=original[key.slice(1)]}if(i<l-1){obj=obj[key];if(!_.isObject(obj)){warnNonExistent(path);obj={};last.$add(key,obj)}}else{if(_.isArray(obj)){obj.$set(key,val)}else if(key in obj){obj[key]=val}else{warnNonExistent(path);obj.$add(key,val)}}}return true};function warnNonExistent(path){process.env.NODE_ENV!=="production"&&_.warn('You are setting a non-existent path "'+path.raw+'" '+"on a vm instance. Consider pre-initializing the property "+'with the "data" option for more reliable reactivity '+"and better performance.")}}).call(this,require("_process"))},{"../cache":9,"../util":63,_process:1}],54:[function(require,module,exports){var _=require("../util");var Cache=require("../cache");var templateCache=new Cache(1e3);var idSelectorCache=new Cache(1e3);var map={_default:[0,"",""],legend:[1,"<fieldset>","</fieldset>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]};map.td=map.th=[3,"<table><tbody><tr>","</tr></tbody></table>"];map.option=map.optgroup=[1,'<select multiple="multiple">',"</select>"];map.thead=map.tbody=map.colgroup=map.caption=map.tfoot=[1,"<table>","</table>"];map.g=map.defs=map.symbol=map.use=map.image=map.text=map.circle=map.ellipse=map.line=map.path=map.polygon=map.polyline=map.rect=[1,"<svg "+'xmlns="http://www.w3.org/2000/svg" '+'xmlns:xlink="http://www.w3.org/1999/xlink" '+'xmlns:ev="http://www.w3.org/2001/xml-events"'+'version="1.1">',"</svg>"];var tagRE=/<([\w:]+)/;var entityRE=/&\w+;/;function stringToFragment(templateString){var hit=templateCache.get(templateString);if(hit){return hit}var frag=document.createDocumentFragment();var tagMatch=templateString.match(tagRE);var entityMatch=entityRE.test(templateString);if(!tagMatch&&!entityMatch){frag.appendChild(document.createTextNode(templateString))}else{var tag=tagMatch&&tagMatch[1];var wrap=map[tag]||map._default;var depth=wrap[0];var prefix=wrap[1];var suffix=wrap[2];var node=document.createElement("div");node.innerHTML=prefix+templateString.trim()+suffix;while(depth--){node=node.lastChild}var child;while(child=node.firstChild){frag.appendChild(child)}}templateCache.put(templateString,frag);return frag}function nodeToFragment(node){if(_.isTemplate(node)&&node.content instanceof DocumentFragment){return node.content}if(node.tagName==="SCRIPT"){return stringToFragment(node.textContent)}var clone=exports.clone(node);var frag=document.createDocumentFragment();var child;while(child=clone.firstChild){frag.appendChild(child)}return frag}var hasBrokenTemplate=_.inBrowser?function(){var a=document.createElement("div");a.innerHTML="<template>1</template>";return!a.cloneNode(true).firstChild.innerHTML}():false;var hasTextareaCloneBug=_.inBrowser?function(){var t=document.createElement("textarea");t.placeholder="t";return t.cloneNode(true).value==="t"}():false;exports.clone=function(node){var res=node.cloneNode(true);if(!node.querySelectorAll){return res}var i,original,cloned;if(hasBrokenTemplate){original=node.querySelectorAll("template");if(original.length){cloned=res.querySelectorAll("template");i=cloned.length;while(i--){cloned[i].parentNode.replaceChild(exports.clone(original[i]),cloned[i])}}}if(hasTextareaCloneBug){if(node.tagName==="TEXTAREA"){res.value=node.value}else{original=node.querySelectorAll("textarea");if(original.length){cloned=res.querySelectorAll("textarea");i=cloned.length;while(i--){cloned[i].value=original[i].value}}}}return res};exports.parse=function(template,clone,noSelector){var node,frag;if(template instanceof DocumentFragment){return clone?exports.clone(template):template}if(typeof template==="string"){if(!noSelector&&template.charAt(0)==="#"){frag=idSelectorCache.get(template);if(!frag){node=document.getElementById(template.slice(1));if(node){frag=nodeToFragment(node);idSelectorCache.put(template,frag)}}}else{frag=stringToFragment(template)}}else if(template.nodeType){frag=nodeToFragment(template)}return frag&&clone?exports.clone(frag):frag}},{"../cache":9,"../util":63}],55:[function(require,module,exports){var Cache=require("../cache");var config=require("../config");var dirParser=require("./directive");var regexEscapeRE=/[-.*+?^${}()|[\]\/\\]/g;var cache,tagRE,htmlRE,firstChar,lastChar;function escapeRegex(str){return str.replace(regexEscapeRE,"\\$&")}function compileRegex(){config._delimitersChanged=false;var open=config.delimiters[0];var close=config.delimiters[1];firstChar=open.charAt(0);lastChar=close.charAt(close.length-1);var firstCharRE=escapeRegex(firstChar);var lastCharRE=escapeRegex(lastChar);var openRE=escapeRegex(open);var closeRE=escapeRegex(close);tagRE=new RegExp(firstCharRE+"?"+openRE+"(.+?)"+closeRE+lastCharRE+"?","g");htmlRE=new RegExp("^"+firstCharRE+openRE+".*"+closeRE+lastCharRE+"$");cache=new Cache(1e3)}exports.parse=function(text){if(config._delimitersChanged){compileRegex()}var hit=cache.get(text);if(hit){return hit}text=text.replace(/\n/g,"");if(!tagRE.test(text)){return null}var tokens=[];var lastIndex=tagRE.lastIndex=0;var match,index,value,first,oneTime,twoWay;while(match=tagRE.exec(text)){index=match.index;if(index>lastIndex){tokens.push({value:text.slice(lastIndex,index)})}first=match[1].charCodeAt(0);oneTime=first===42;twoWay=first===64;value=oneTime||twoWay?match[1].slice(1):match[1];tokens.push({tag:true,value:value.trim(),html:htmlRE.test(match[0]),oneTime:oneTime,twoWay:twoWay});lastIndex=index+match[0].length}if(lastIndex<text.length){tokens.push({value:text.slice(lastIndex)})}cache.put(text,tokens);return tokens};exports.tokensToExp=function(tokens,vm){return tokens.length>1?tokens.map(function(token){return formatToken(token,vm)}).join("+"):formatToken(tokens[0],vm,true)};function formatToken(token,vm,single){return token.tag?vm&&token.oneTime?'"'+vm.$eval(token.value)+'"':inlineFilters(token.value,single):'"'+token.value+'"'}var filterRE=/[^|]\|[^|]/;function inlineFilters(exp,single){if(!filterRE.test(exp)){return single?exp:"("+exp+")"}else{var dir=dirParser.parse(exp)[0];if(!dir.filters){return"("+exp+")"}else{return"this._applyFilters("+dir.expression+",null,"+JSON.stringify(dir.filters)+",false)"}}}},{"../cache":9,"../config":14,"./directive":51}],56:[function(require,module,exports){var _=require("../util");exports.append=function(el,target,vm,cb){apply(el,1,function(){target.appendChild(el)},vm,cb)};exports.before=function(el,target,vm,cb){apply(el,1,function(){_.before(el,target)},vm,cb)};exports.remove=function(el,vm,cb){apply(el,-1,function(){_.remove(el)},vm,cb)};exports.removeThenAppend=function(el,target,vm,cb){apply(el,-1,function(){target.appendChild(el)},vm,cb)};exports.blockAppend=function(block,target,vm){var nodes=_.toArray(block.childNodes);for(var i=0,l=nodes.length;i<l;i++){exports.before(nodes[i],target,vm)}};exports.blockRemove=function(start,end,vm){var node=start.nextSibling;var next;while(node!==end){next=node.nextSibling;exports.remove(node,vm);
node=next}};var apply=exports.apply=function(el,direction,op,vm,cb){var transition=el.__v_trans;if(!transition||!transition.hooks&&!_.transitionEndEvent||!vm._isCompiled||vm.$parent&&!vm.$parent._isCompiled){op();if(cb)cb();return}var action=direction>0?"enter":"leave";transition[action](op,cb)}},{"../util":63}],57:[function(require,module,exports){var _=require("../util");var queue=[];var queued=false;exports.push=function(job){queue.push(job);if(!queued){queued=true;_.nextTick(flush)}};function flush(){var f=document.documentElement.offsetHeight;for(var i=0;i<queue.length;i++){queue[i]()}queue=[];queued=false;return f}},{"../util":63}],58:[function(require,module,exports){var _=require("../util");var queue=require("./queue");var addClass=_.addClass;var removeClass=_.removeClass;var transitionEndEvent=_.transitionEndEvent;var animationEndEvent=_.animationEndEvent;var transDurationProp=_.transitionProp+"Duration";var animDurationProp=_.animationProp+"Duration";var TYPE_TRANSITION=1;var TYPE_ANIMATION=2;function Transition(el,id,hooks,vm){this.el=el;this.enterClass=id+"-enter";this.leaveClass=id+"-leave";this.hooks=hooks;this.vm=vm;this.pendingCssEvent=this.pendingCssCb=this.cancel=this.pendingJsCb=this.op=this.cb=null;this.typeCache={};var self=this;["enterNextTick","enterDone","leaveNextTick","leaveDone"].forEach(function(m){self[m]=_.bind(self[m],self)})}var p=Transition.prototype;p.enter=function(op,cb){this.cancelPending();this.callHook("beforeEnter");this.cb=cb;addClass(this.el,this.enterClass);op();this.callHookWithCb("enter");this.cancel=this.hooks&&this.hooks.enterCancelled;queue.push(this.enterNextTick)};p.enterNextTick=function(){var type=this.getCssTransitionType(this.enterClass);var enterDone=this.enterDone;if(type===TYPE_TRANSITION){removeClass(this.el,this.enterClass);this.setupCssCb(transitionEndEvent,enterDone)}else if(type===TYPE_ANIMATION){this.setupCssCb(animationEndEvent,enterDone)}else if(!this.pendingJsCb){enterDone()}};p.enterDone=function(){this.cancel=this.pendingJsCb=null;removeClass(this.el,this.enterClass);this.callHook("afterEnter");if(this.cb)this.cb()};p.leave=function(op,cb){this.cancelPending();this.callHook("beforeLeave");this.op=op;this.cb=cb;addClass(this.el,this.leaveClass);this.callHookWithCb("leave");this.cancel=this.hooks&&this.hooks.leaveCancelled;if(!this.pendingJsCb){queue.push(this.leaveNextTick)}};p.leaveNextTick=function(){var type=this.getCssTransitionType(this.leaveClass);if(type){var event=type===TYPE_TRANSITION?transitionEndEvent:animationEndEvent;this.setupCssCb(event,this.leaveDone)}else{this.leaveDone()}};p.leaveDone=function(){this.cancel=this.pendingJsCb=null;this.op();removeClass(this.el,this.leaveClass);this.callHook("afterLeave");if(this.cb)this.cb()};p.cancelPending=function(){this.op=this.cb=null;var hasPending=false;if(this.pendingCssCb){hasPending=true;_.off(this.el,this.pendingCssEvent,this.pendingCssCb);this.pendingCssEvent=this.pendingCssCb=null}if(this.pendingJsCb){hasPending=true;this.pendingJsCb.cancel();this.pendingJsCb=null}if(hasPending){removeClass(this.el,this.enterClass);removeClass(this.el,this.leaveClass)}if(this.cancel){this.cancel.call(this.vm,this.el);this.cancel=null}};p.callHook=function(type){if(this.hooks&&this.hooks[type]){this.hooks[type].call(this.vm,this.el)}};p.callHookWithCb=function(type){var hook=this.hooks&&this.hooks[type];if(hook){if(hook.length>1){this.pendingJsCb=_.cancellable(this[type+"Done"])}hook.call(this.vm,this.el,this.pendingJsCb)}};p.getCssTransitionType=function(className){if(!transitionEndEvent||document.hidden||this.hooks&&this.hooks.css===false){return}var type=this.typeCache[className];if(type)return type;var inlineStyles=this.el.style;var computedStyles=window.getComputedStyle(this.el);var transDuration=inlineStyles[transDurationProp]||computedStyles[transDurationProp];if(transDuration&&transDuration!=="0s"){type=TYPE_TRANSITION}else{var animDuration=inlineStyles[animDurationProp]||computedStyles[animDurationProp];if(animDuration&&animDuration!=="0s"){type=TYPE_ANIMATION}}if(type){this.typeCache[className]=type}return type};p.setupCssCb=function(event,cb){this.pendingCssEvent=event;var self=this;var el=this.el;var onEnd=this.pendingCssCb=function(e){if(e.target===el){_.off(el,event,onEnd);self.pendingCssEvent=self.pendingCssCb=null;if(!self.pendingJsCb&&cb){cb()}}};_.on(el,event,onEnd)};module.exports=Transition},{"../util":63,"./queue":57}],59:[function(require,module,exports){(function(process){var _=require("./index");exports.commonTagRE=/^(div|p|span|img|a|br|ul|ol|li|h1|h2|h3|h4|h5|code|pre)$/;exports.checkComponent=function(el,options){var tag=el.tagName.toLowerCase();if(tag==="component"){var exp=el.getAttribute("is");el.removeAttribute("is");return exp}else if(!exports.commonTagRE.test(tag)&&_.resolveAsset(options,"components",tag)){return tag}else if(tag=_.attr(el,"component")){return tag}};exports.initProp=function(vm,prop,value){if(exports.assertProp(prop,value)){var key=prop.path;if(key in vm){_.define(vm,key,value,true)}else{vm[key]=value}vm._data[key]=value}};exports.assertProp=function(prop,value){if(prop.raw===null&&!prop.required){return true}var options=prop.options;var type=options.type;var valid=true;var expectedType;if(type){if(type===String){expectedType="string";valid=typeof value===expectedType}else if(type===Number){expectedType="number";valid=typeof value==="number"}else if(type===Boolean){expectedType="boolean";valid=typeof value==="boolean"}else if(type===Function){expectedType="function";valid=typeof value==="function"}else if(type===Object){expectedType="object";valid=_.isPlainObject(value)}else if(type===Array){expectedType="array";valid=_.isArray(value)}else{valid=value instanceof type}}if(!valid){process.env.NODE_ENV!=="production"&&_.warn("Invalid prop: type check failed for "+prop.path+'="'+prop.raw+'".'+" Expected "+formatType(expectedType)+", got "+formatValue(value)+".");return false}var validator=options.validator;if(validator){if(!validator.call(null,value)){process.env.NODE_ENV!=="production"&&_.warn("Invalid prop: custom validator check failed for "+prop.path+'="'+prop.raw+'"');return false}}return true};function formatType(val){return val?val.charAt(0).toUpperCase()+val.slice(1):"custom type"}function formatValue(val){return Object.prototype.toString.call(val).slice(8,-1)}}).call(this,require("_process"))},{"./index":63,_process:1}],60:[function(require,module,exports){(function(process){if(process.env.NODE_ENV!=="production"){var config=require("../config");var hasConsole=typeof console!=="undefined";exports.log=function(msg){if(hasConsole&&config.debug){console.log("[Vue info]: "+msg)}};exports.warn=function(msg,e){if(hasConsole&&(!config.silent||config.debug)){console.warn("[Vue warn]: "+msg);if(config.debug){console.warn((e||new Error("Warning Stack Trace")).stack)}}};exports.assertAsset=function(val,type,id){if(type==="directive"){if(id==="with"){exports.warn("v-with has been deprecated in ^0.12.0. "+"Use props instead.");return}if(id==="events"){exports.warn("v-events has been deprecated in ^0.12.0. "+"Pass down methods as callback props instead.");return}}if(!val){exports.warn("Failed to resolve "+type+": "+id)}}}}).call(this,require("_process"))},{"../config":14,_process:1}],61:[function(require,module,exports){(function(process){var _=require("./index");var config=require("../config");exports.query=function(el){if(typeof el==="string"){var selector=el;el=document.querySelector(el);if(!el){process.env.NODE_ENV!=="production"&&_.warn("Cannot find element: "+selector)}}return el};exports.inDoc=function(node){var doc=document.documentElement;var parent=node&&node.parentNode;return doc===node||doc===parent||!!(parent&&parent.nodeType===1&&doc.contains(parent))};exports.attr=function(node,attr){attr=config.prefix+attr;var val=node.getAttribute(attr);if(val!==null){node.removeAttribute(attr)}return val};exports.before=function(el,target){target.parentNode.insertBefore(el,target)};exports.after=function(el,target){if(target.nextSibling){exports.before(el,target.nextSibling)}else{target.parentNode.appendChild(el)}};exports.remove=function(el){el.parentNode.removeChild(el)};exports.prepend=function(el,target){if(target.firstChild){exports.before(el,target.firstChild)}else{target.appendChild(el)}};exports.replace=function(target,el){var parent=target.parentNode;if(parent){parent.replaceChild(el,target)}};exports.on=function(el,event,cb){el.addEventListener(event,cb)};exports.off=function(el,event,cb){el.removeEventListener(event,cb)};exports.addClass=function(el,cls){if(el.classList){el.classList.add(cls)}else{var cur=" "+(el.getAttribute("class")||"")+" ";if(cur.indexOf(" "+cls+" ")<0){el.setAttribute("class",(cur+cls).trim())}}};exports.removeClass=function(el,cls){if(el.classList){el.classList.remove(cls)}else{var cur=" "+(el.getAttribute("class")||"")+" ";var tar=" "+cls+" ";while(cur.indexOf(tar)>=0){cur=cur.replace(tar," ")}el.setAttribute("class",cur.trim())}};exports.extractContent=function(el,asFragment){var child;var rawContent;if(exports.isTemplate(el)&&el.content instanceof DocumentFragment){el=el.content}if(el.hasChildNodes()){trim(el,el.firstChild);trim(el,el.lastChild);rawContent=asFragment?document.createDocumentFragment():document.createElement("div");while(child=el.firstChild){rawContent.appendChild(child)}}return rawContent};function trim(content,node){if(node&&node.nodeType===3&&!node.data.trim()){content.removeChild(node)}}exports.isTemplate=function(el){return el.tagName&&el.tagName.toLowerCase()==="template"};exports.createAnchor=function(content,persist){return config.debug?document.createComment(content):document.createTextNode(persist?" ":"")}}).call(this,require("_process"))},{"../config":14,"./index":63,_process:1}],62:[function(require,module,exports){exports.hasProto="__proto__"in{};var inBrowser=exports.inBrowser=typeof window!=="undefined"&&Object.prototype.toString.call(window)!=="[object Object]";exports.isIE9=inBrowser&&navigator.userAgent.toLowerCase().indexOf("msie 9.0")>0;exports.isAndroid=inBrowser&&navigator.userAgent.toLowerCase().indexOf("android")>0;if(inBrowser&&!exports.isIE9){var isWebkitTrans=window.ontransitionend===undefined&&window.onwebkittransitionend!==undefined;var isWebkitAnim=window.onanimationend===undefined&&window.onwebkitanimationend!==undefined;exports.transitionProp=isWebkitTrans?"WebkitTransition":"transition";exports.transitionEndEvent=isWebkitTrans?"webkitTransitionEnd":"transitionend";exports.animationProp=isWebkitAnim?"WebkitAnimation":"animation";exports.animationEndEvent=isWebkitAnim?"webkitAnimationEnd":"animationend"}exports.nextTick=function(){var callbacks=[];var pending=false;var timerFunc;function handle(){pending=false;var copies=callbacks.slice(0);callbacks=[];for(var i=0;i<copies.length;i++){copies[i]()}}if(typeof MutationObserver!=="undefined"){var counter=1;var observer=new MutationObserver(handle);var textNode=document.createTextNode(counter);observer.observe(textNode,{characterData:true});timerFunc=function(){counter=(counter+1)%2;textNode.data=counter}}else{timerFunc=setTimeout}return function(cb,ctx){var func=ctx?function(){cb.call(ctx)}:cb;callbacks.push(func);if(pending)return;pending=true;timerFunc(handle,0)}}()},{}],63:[function(require,module,exports){var lang=require("./lang");var extend=lang.extend;extend(exports,lang);extend(exports,require("./env"));extend(exports,require("./dom"));extend(exports,require("./options"));extend(exports,require("./component"));extend(exports,require("./debug"))},{"./component":59,"./debug":60,"./dom":61,"./env":62,"./lang":64,"./options":65}],64:[function(require,module,exports){exports.isReserved=function(str){var c=(str+"").charCodeAt(0);return c===36||c===95};exports.toString=function(value){return value==null?"":value.toString()};exports.toNumber=function(value){if(typeof value!=="string"){return value}else{var parsed=Number(value);return isNaN(parsed)?value:parsed}};exports.toBoolean=function(value){return value==="true"?true:value==="false"?false:value};exports.stripQuotes=function(str){var a=str.charCodeAt(0);var b=str.charCodeAt(str.length-1);return a===b&&(a===34||a===39)?str.slice(1,-1):false};exports.camelize=function(str){return str.replace(/-(\w)/g,toUpper)};function toUpper(_,c){return c?c.toUpperCase():""}exports.hyphenate=function(str){return str.replace(/([a-z\d])([A-Z])/g,"$1-$2").toLowerCase()};var classifyRE=/(?:^|[-_\/])(\w)/g;exports.classify=function(str){return str.replace(classifyRE,toUpper)};exports.bind=function(fn,ctx){return function(a){var l=arguments.length;return l?l>1?fn.apply(ctx,arguments):fn.call(ctx,a):fn.call(ctx)}};exports.toArray=function(list,start){start=start||0;var i=list.length-start;var ret=new Array(i);while(i--){ret[i]=list[i+start]}return ret};exports.extend=function(to,from){for(var key in from){to[key]=from[key]}return to};exports.isObject=function(obj){return obj!==null&&typeof obj==="object"};var toString=Object.prototype.toString;exports.isPlainObject=function(obj){return toString.call(obj)==="[object Object]"};exports.isArray=Array.isArray;exports.define=function(obj,key,val,enumerable){Object.defineProperty(obj,key,{value:val,enumerable:!!enumerable,writable:true,configurable:true})};exports.debounce=function(func,wait){var timeout,args,context,timestamp,result;var later=function(){var last=Date.now()-timestamp;if(last<wait&&last>=0){timeout=setTimeout(later,wait-last)}else{timeout=null;result=func.apply(context,args);if(!timeout)context=args=null}};return function(){context=this;args=arguments;timestamp=Date.now();if(!timeout){timeout=setTimeout(later,wait)}return result}};exports.indexOf=function(arr,obj){for(var i=0,l=arr.length;i<l;i++){if(arr[i]===obj)return i}return-1};exports.cancellable=function(fn){var cb=function(){if(!cb.cancelled){return fn.apply(this,arguments)}};cb.cancel=function(){cb.cancelled=true};return cb}},{}],65:[function(require,module,exports){(function(process){var _=require("./index");var config=require("../config");var extend=_.extend;var strats=Object.create(null);function mergeData(to,from){var key,toVal,fromVal;for(key in from){toVal=to[key];fromVal=from[key];if(!to.hasOwnProperty(key)){to.$add(key,fromVal)}else if(_.isObject(toVal)&&_.isObject(fromVal)){mergeData(toVal,fromVal)}}return to}strats.data=function(parentVal,childVal,vm){if(!vm){if(!childVal){return parentVal}if(typeof childVal!=="function"){process.env.NODE_ENV!=="production"&&_.warn('The "data" option should be a function '+"that returns a per-instance value in component "+"definitions.");return parentVal}if(!parentVal){return childVal}return function mergedDataFn(){return mergeData(childVal.call(this),parentVal.call(this))}}else if(parentVal||childVal){return function mergedInstanceDataFn(){var instanceData=typeof childVal==="function"?childVal.call(vm):childVal;var defaultData=typeof parentVal==="function"?parentVal.call(vm):undefined;if(instanceData){return mergeData(instanceData,defaultData)}else{return defaultData}}}};strats.el=function(parentVal,childVal,vm){if(!vm&&childVal&&typeof childVal!=="function"){process.env.NODE_ENV!=="production"&&_.warn('The "el" option should be a function '+"that returns a per-instance value in component "+"definitions.");return}var ret=childVal||parentVal;return vm&&typeof ret==="function"?ret.call(vm):ret};strats.created=strats.ready=strats.attached=strats.detached=strats.beforeCompile=strats.compiled=strats.beforeDestroy=strats.destroyed=strats.props=function(parentVal,childVal){return childVal?parentVal?parentVal.concat(childVal):_.isArray(childVal)?childVal:[childVal]:parentVal};strats.paramAttributes=function(){process.env.NODE_ENV!=="production"&&_.warn('"paramAttributes" option has been deprecated in 0.12. '+'Use "props" instead.')};function mergeAssets(parentVal,childVal){var res=Object.create(parentVal);return childVal?extend(res,guardArrayAssets(childVal)):res}config._assetTypes.forEach(function(type){strats[type+"s"]=mergeAssets});strats.watch=strats.events=function(parentVal,childVal){if(!childVal)return parentVal;if(!parentVal)return childVal;var ret={};extend(ret,parentVal);for(var key in childVal){var parent=ret[key];var child=childVal[key];if(parent&&!_.isArray(parent)){parent=[parent]}ret[key]=parent?parent.concat(child):[child]}return ret};strats.methods=strats.computed=function(parentVal,childVal){if(!childVal)return parentVal;if(!parentVal)return childVal;var ret=Object.create(parentVal);extend(ret,childVal);return ret};var defaultStrat=function(parentVal,childVal){return childVal===undefined?parentVal:childVal};function guardComponents(options){if(options.components){var components=options.components=guardArrayAssets(options.components);var def;var ids=Object.keys(components);for(var i=0,l=ids.length;i<l;i++){var key=ids[i];if(_.commonTagRE.test(key)){process.env.NODE_ENV!=="production"&&_.warn("Do not use built-in HTML elements as component "+"id: "+key);continue}def=components[key];if(_.isPlainObject(def)){def.id=def.id||key;components[key]=def._Ctor||(def._Ctor=_.Vue.extend(def))}}}}function guardProps(options){var props=options.props;if(_.isPlainObject(props)){options.props=Object.keys(props).map(function(key){var val=props[key];if(!_.isPlainObject(val)){val={type:val}}val.name=key;return val})}else if(_.isArray(props)){options.props=props.map(function(prop){return typeof prop==="string"?{name:prop}:prop})}}function guardArrayAssets(assets){if(_.isArray(assets)){var res={};var i=assets.length;var asset;while(i--){asset=assets[i];var id=asset.id||asset.options&&asset.options.id;if(!id){process.env.NODE_ENV!=="production"&&_.warn("Array-syntax assets must provide an id field.")}else{res[id]=asset}}return res}return assets}exports.mergeOptions=function merge(parent,child,vm){guardComponents(child);guardProps(child);var options={};var key;if(child.mixins){for(var i=0,l=child.mixins.length;i<l;i++){parent=merge(parent,child.mixins[i],vm)}}for(key in parent){mergeField(key)}for(key in child){if(!parent.hasOwnProperty(key)){mergeField(key)}}function mergeField(key){var strat=strats[key]||defaultStrat;options[key]=strat(parent[key],child[key],vm,key)}return options};exports.resolveAsset=function resolve(options,type,id){var camelizedId=_.camelize(id);var asset=options[type][id]||options[type][camelizedId];while(!asset&&options._parent&&(!config.strict||options._repeat)){options=options._parent.$options;asset=options[type][id]||options[type][camelizedId]}return asset}}).call(this,require("_process"))},{"../config":14,"./index":63,_process:1}],66:[function(require,module,exports){(function(process){var _=require("./util");var config=require("./config");var Dep=require("./observer/dep");var expParser=require("./parsers/expression");var batcher=require("./batcher");var uid=0;function Watcher(vm,expOrFn,cb,options){var isFn=typeof expOrFn==="function";this.vm=vm;vm._watchers.push(this);this.expression=isFn?expOrFn.toString():expOrFn;this.cb=cb;this.id=++uid;this.active=true;options=options||{};this.deep=!!options.deep;this.user=!!options.user;this.twoWay=!!options.twoWay;this.lazy=!!options.lazy;this.dirty=this.lazy;this.filters=options.filters;this.preProcess=options.preProcess;this.deps=[];this.newDeps=null;if(isFn){this.getter=expOrFn;this.setter=undefined}else{var res=expParser.parse(expOrFn,options.twoWay);this.getter=res.get;this.setter=res.set}this.value=this.lazy?undefined:this.get();this.queued=this.shallow=false}var p=Watcher.prototype;p.addDep=function(dep){var newDeps=this.newDeps;var old=this.deps;if(_.indexOf(newDeps,dep)<0){newDeps.push(dep);var i=_.indexOf(old,dep);if(i<0){dep.addSub(this)}else{old[i]=null}}};p.get=function(){this.beforeGet();var vm=this.vm;var value;try{value=this.getter.call(vm,vm)}catch(e){if(process.env.NODE_ENV!=="production"&&config.warnExpressionErrors){_.warn('Error when evaluating expression "'+this.expression+'". '+(config.debug?"":"Turn on debug mode to see stack trace."),e)}}if(this.deep){traverse(value)}if(this.preProcess){value=this.preProcess(value)}if(this.filters){value=vm._applyFilters(value,null,this.filters,false)}this.afterGet();return value};p.set=function(value){var vm=this.vm;if(this.filters){value=vm._applyFilters(value,this.value,this.filters,true)}try{this.setter.call(vm,vm,value)}catch(e){if(process.env.NODE_ENV!=="production"&&config.warnExpressionErrors){_.warn('Error when evaluating setter "'+this.expression+'"',e)}}};p.beforeGet=function(){Dep.target=this;this.newDeps=[]};p.afterGet=function(){Dep.target=null;var i=this.deps.length;while(i--){var dep=this.deps[i];if(dep){dep.removeSub(this)}}this.deps=this.newDeps;this.newDeps=null};p.update=function(shallow){if(this.lazy){this.dirty=true}else if(!config.async){this.run()}else{this.shallow=this.queued?shallow?this.shallow:false:!!shallow;this.queued=true;batcher.push(this)}};p.run=function(){if(this.active){var value=this.get();if(value!==this.value||(_.isArray(value)||this.deep)&&!this.shallow){var oldValue=this.value;this.value=value;this.cb(value,oldValue)}this.queued=this.shallow=false}};p.evaluate=function(){var current=Dep.target;this.value=this.get();this.dirty=false;Dep.target=current};p.depend=function(){var i=this.deps.length;while(i--){this.deps[i].depend()}};p.teardown=function(){if(this.active){if(!this.vm._isBeingDestroyed){this.vm._watchers.$remove(this)}var i=this.deps.length;while(i--){this.deps[i].removeSub(this)}this.active=false;this.vm=this.cb=this.value=null}};function traverse(obj){var key,val,i;for(key in obj){val=obj[key];if(_.isArray(val)){i=val.length;while(i--)traverse(val[i])}else if(_.isObject(val)){traverse(val)}}}module.exports=Watcher}).call(this,require("_process"))},{"./batcher":8,"./config":14,"./observer/dep":48,"./parsers/expression":52,"./util":63,_process:1}],vue:[function(require,module,exports){var _=require("./util");var extend=_.extend;function Vue(options){this._init(options)}extend(Vue,require("./api/global"));Vue.options={replace:true,directives:require("./directives"),elementDirectives:require("./element-directives"),filters:require("./filters"),transitions:{},components:{},partials:{}};var p=Vue.prototype;Object.defineProperty(p,"$data",{get:function(){return this._data},set:function(newData){if(newData!==this._data){this._setData(newData)}}});extend(p,require("./instance/init"));extend(p,require("./instance/events"));extend(p,require("./instance/scope"));extend(p,require("./instance/compile"));extend(p,require("./instance/misc"));extend(p,require("./api/data"));extend(p,require("./api/dom"));extend(p,require("./api/events"));extend(p,require("./api/child"));extend(p,require("./api/lifecycle"));module.exports=_.Vue=Vue},{"./api/child":2,"./api/data":3,"./api/dom":4,"./api/events":5,"./api/global":6,"./api/lifecycle":7,"./directives":23,"./element-directives":38,"./filters":41,"./instance/compile":42,"./instance/events":43,"./instance/init":44,"./instance/misc":45,"./instance/scope":46,"./util":63}]},{},[]);var Vue=require("vue");var loggedIn=function(user){return true};new Vue({el:"#app",methods:{loggedIn:loggedIn}});new Vue({el:"#admin",methods:{loggedIn:loggedIn}});
{
"name": "requirebin-sketch",
"version": "1.0.0",
"dependencies": {
"vue": "0.12.9"
}
}
<!-- contents of this file will be placed inside the <body> -->
<div id="app" v-cloak>
Main app, logged in? {{ loggedIn("Username") }}
</div>
<hr>
<div id="admin" v-cloak>
Admin app, logged in? {{ loggedIn("Username") }}
</div>
<!-- contents of this file will be placed inside the <head> -->
<style>
[v-cloak] {
display: none;
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment