You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 lines
65 KiB

/*!
8 years ago
* Vue.js v2.0.7
* (c) 2014-2016 Evan You
* Released under the MIT License.
*/
8 years ago
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Vue=t()}(this,function(){"use strict";function e(e){return null==e?"":"object"==typeof e?JSON.stringify(e,null,2):String(e)}function t(e){var t=parseFloat(e,10);return t||0===t?t:e}function n(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}function r(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}function i(e,t){return Lr.call(e,t)}function a(e){return"string"==typeof e||"number"==typeof e}function o(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}function s(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function c(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function u(e,t){for(var n in t)e[n]=t[n];return e}function l(e){return null!==e&&"object"==typeof e}function f(e){return Br.call(e)===Fr}function d(e){for(var t={},n=0;n<e.length;n++)e[n]&&u(t,e[n]);return t}function p(){}function v(e){return e.reduce(function(e,t){return e.concat(t.staticKeys||[])},[]).join(",")}function h(e,t){return e==t||!(!l(e)||!l(t))&&JSON.stringify(e)===JSON.stringify(t)}function m(e,t){for(var n=0;n<e.length;n++)if(h(e[n],t))return n;return-1}function g(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function y(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}function _(e){if(!zr.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}function b(e){return/native code/.test(e.toString())}function $(e){ti.target&&ni.push(ti.target),ti.target=e}function w(){ti.target=ni.pop()}function x(){ri.length=0,ii={},ai=oi=!1}function C(){for(oi=!0,ri.sort(function(e,t){return e.id-t.id}),si=0;si<ri.length;si++){var e=ri[si],t=e.id;ii[t]=null,e.run()}Qr&&Ur.devtools&&Qr.emit("flush"),x()}function k(e){var t=e.id;if(null==ii[t]){if(ii[t]=!0,oi){for(var n=ri.length-1;n>=0&&ri[n].id>e.id;)n--;ri.splice(Math.max(n,si)+1,0,e)}else ri.push(e);ai||(ai=!0,Xr(C))}}function A(e){li.clear(),O(e,li)}function O(e,t){var n,r,i=Array.isArray(e);if((i||l(e))&&Object.isExtensible(e)){if(e.__ob__){var a=e.__ob__.dep.id;if(t.has(a))return;t.add(a)}if(i)for(n=e.length;n--;)O(e[n],t);else for(r=Object.keys(e),n=r.length;n--;)O(e[r[n]],t)}}function S(e,t){e.__proto__=t}function T(e,t,n){for(var r=0,i=n.length;r<i;r++){var a=n[r];y(e,a,t[a])}}function E(e){if(l(e)){var t;return i(e,"__ob__")&&e.__ob__ instanceof hi?t=e.__ob__:vi.shouldConvert&&!Ur._isServer&&(Array.isArray(e)||f(e))&&Object.isExtensible(e)&&!e._isVue&&(t=new hi(e)),t}}function j(e,t,n,r){var i=new ti,a=Object.getOwnPropertyDescriptor(e,t);if(!a||a.configurable!==!1){var o=a&&a.get,s=a&&a.set,c=E(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=o?o.call(e):n;return ti.target&&(i.depend(),c&&c.dep.depend(),Array.isArray(t)&&D(t)),t},set:function(t){var r=o?o.call(e):n;t!==r&&(s?s.call(e,t):n=t,c=E(t),i.notify())}})}}function N(e,t,n){if(Array.isArray(e))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(i(e,t))return void(e[t]=n);var r=e.__ob__;if(!(e._isVue||r&&r.vmCount))return r?(j(r.value,t,n),r.dep.notify(),n):void(e[t]=n)}function L(e,t){var n=e.__ob__;e._isVue||n&&n.vmCount||i(e,t)&&(delete e[t],n&&n.dep.notify())}function D(e){for(var t=void 0,n=0,r=e.length;n<r;n++)t=e[n],t&&t.__ob__&&t.__ob__.dep.depend(),Array.isArray(t)&&D(t)}function M(e){e._watchers=[],P(e),I(e),R(e),F(e),H(e)}function P(e){var t=e.$options.props;if(t){var n=e.$options.propsData||{},r=e.$options._propKeys=Object.keys(t),i=!e.$parent;vi.shouldConvert=i;for(var a=function(i){var a=r[i];j(e,a,De(a,t,n,e))},o=0;o<r.length;o++)a(o);vi.shouldConvert=!0}}function I(e){var t=e.$options.data;t=e._data="function"==typeof t?t.call(e):t||{},f(t)||(t={});for(var n=Object.keys(t),r=e.$options.props,a=n.length;a--;)
e.target.composing=!0}function qt(e){e.target.composing=!1,Kt(e.target,"input")}function Kt(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Wt(e){return!e.child||e.data&&e.data.transition?e:Wt(e.child._vnode)}function Zt(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Zt(ee(t.children)):e}function Gt(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var a in i)t[Mr(a)]=i[a].fn;return t}function Yt(e,t){return/\d-keep-alive$/.test(t.tag)?e("keep-alive"):null}function Qt(e){for(;e=e.parent;)if(e.data.transition)return!0}function Xt(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function en(e){e.data.newPos=e.elm.getBoundingClientRect()}function tn(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var a=e.elm.style;a.transform=a.WebkitTransform="translate("+r+"px,"+i+"px)",a.transitionDuration="0s"}}function nn(e,t){var n=document.createElement("div");return n.innerHTML='<div a="'+e+'">',n.innerHTML.indexOf(t)>0}function rn(e){return Na=Na||document.createElement("div"),Na.innerHTML=e,Na.textContent}function an(e,t){return t&&(e=e.replace(Co,"\n")),e.replace(wo,"<").replace(xo,">").replace(ko,"&").replace(Ao,'"')}function on(e,t){function n(t){f+=t,e=e.substring(t)}function r(){var t=e.match(Fa);if(t){var r={tagName:t[1],attrs:[],start:f};n(t[0].length);for(var i,a;!(i=e.match(Ha))&&(a=e.match(Ia));)n(a[0].length),r.attrs.push(a);if(i)return r.unarySlash=i[1],n(i[0].length),r.end=f,r}}function i(e){var n=e.tagName,r=e.unarySlash;u&&("p"===s&&Ui(n)&&a("",s),Hi(n)&&s===n&&a("",n));for(var i=l(n)||"html"===n&&"head"===s||!!r,o=e.attrs.length,f=new Array(o),d=0;d<o;d++){var p=e.attrs[d];qa&&p[0].indexOf('""')===-1&&(""===p[3]&&delete p[3],""===p[4]&&delete p[4],""===p[5]&&delete p[5]);var v=p[3]||p[4]||p[5]||"";f[d]={name:p[1],value:an(v,t.shouldDecodeNewlines)}}i||(c.push({tag:n,attrs:f}),s=n,r=""),t.start&&t.start(n,f,i,e.start,e.end)}function a(e,n,r,i){var a;if(null==r&&(r=f),null==i&&(i=f),n){var o=n.toLowerCase();for(a=c.length-1;a>=0&&c[a].tag.toLowerCase()!==o;a--);}else a=0;if(a>=0){for(var u=c.length-1;u>=a;u--)t.end&&t.end(c[u].tag,r,i);c.length=a,s=a&&c[a-1].tag}else"br"===n.toLowerCase()?t.start&&t.start(n,[],!0,r,i):"p"===n.toLowerCase()&&(t.start&&t.start(n,[],!1,r,i),t.end&&t.end(n,r,i))}for(var o,s,c=[],u=t.expectHTML,l=t.isUnaryTag||Hr,f=0;e;){if(o=e,s&&bo(s,t.sfc,c)){var d=s.toLowerCase(),p=$o[d]||($o[d]=new RegExp("([\\s\\S]*?)(</"+d+"[^>]*>)","i")),v=0,h=e.replace(p,function(e,n,r){return v=r.length,"script"!==d&&"style"!==d&&"noscript"!==d&&(n=n.replace(/<!--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),t.chars&&t.chars(n),""});f+=e.length-h.length,e=h,a("</"+d+">",d,f-v,f)}else{var m=e.indexOf("<");if(0===m){if(Va.test(e)){var g=e.indexOf("-->");if(g>=0){n(g+3);continue}}if(Ja.test(e)){var y=e.indexOf("]>");if(y>=0){n(y+2);continue}}var _=e.match(za);if(_){n(_[0].length);continue}var b=e.match(Ua);if(b){var $=f;n(b[0].length),a(b[0],b[1],$,f);continue}var w=r();if(w){i(w);continue}}var x=void 0,C=void 0,k=void 0;if(m>0){for(C=e.slice(m);!(Ua.test(C)||Fa.test(C)||Va.test(C)||Ja.test(C)||(k=C.indexOf("<",1),k<0));)m+=k,C=e.slice(m);x=e.substring(0,m),n(m)}m<0&&(x=e,e=""),t.chars&&x&&t.chars(x)}if(e===o&&t.chars){t.chars(e);break}}a()}function sn(e){function t(){(o||(o=[])).push(e.slice(d,i).trim()),d=i+1}var n,r,i,a,o,s=!1,c=!1,u=0,l=0,f=0,d=0;for(i=0;i<e.length;i++)if(r=n,n=e.charCodeAt(i),s)39===n&&92!==r&&(s=!s);else if(c)34===n&&92!==r&&(c=!c);else if(124!==n||124===e.charCodeAt(i+1)||124===e.charCodeAt(i-1)||u||l||f)switch(n){case 34:c=!0;break;case 39:s=!0;break;case 40:f++;break;case 41:f--;break;case 91:l++;break;case 93:l--;break;case 123:u++;break;case 125:u--}else void 0===a?(d=i+1,a=e.slice(0,i).trim()):t();if(void 0===a?a=e.slice(0,i).trim():0!==d&&t(),o)for(i=0;i<o.length;i++)a=cn(a,o[i]);return a}function cn(e,t){var n=t.indexOf("(");if(n<0)return'_f("'+t+'")('+e+")";var r=t.slice(0,n),i=t.slice(n+1);return'_f("
Ae.config.mustUseProp=ji,u(Ae.options.directives,Aa),u(Ae.options.components,ja),Ae.prototype.__patch__=Ur._isServer?p:xa,Ae.prototype.$mount=function(e,t){return e=e&&!Ur._isServer?Ge(e):void 0,this._mount(e,t)},setTimeout(function(){Ur.devtools&&Qr&&Qr.emit("init",Ae)},0);var Na,La=!!Jr&&nn("\n","&#10;"),Da=/([^\s"'<>\/=]+)/,Ma=/(?:=)/,Pa=[/"([^"]*)"+/.source,/'([^']*)'+/.source,/([^\s"'=<>`]+)/.source],Ia=new RegExp("^\\s*"+Da.source+"(?:\\s*("+Ma.source+")\\s*(?:"+Pa.join("|")+"))?"),Ra="[a-zA-Z_][\\w\\-\\.]*",Ba="((?:"+Ra+"\\:)?"+Ra+")",Fa=new RegExp("^<"+Ba),Ha=/^\s*(\/?)>/,Ua=new RegExp("^<\\/"+Ba+"[^>]*>"),za=/^<!DOCTYPE [^>]+>/i,Va=/^<!--/,Ja=/^<!\[/,qa=!1;"x".replace(/x(.)?/g,function(e,t){qa=""===t});var Ka,Wa,Za,Ga,Ya,Qa,Xa,eo,to,no,ro,io,ao,oo,so,co,uo,lo,fo,po,vo,ho,mo,go,yo=n("script,style",!0),_o=function(e){return"lang"===e.name&&"html"!==e.value},bo=function(e,t,n){return!!yo(e)||!(!t||"template"!==e||1!==n.length||!n[0].attrs.some(_o))},$o={},wo=/&lt;/g,xo=/&gt;/g,Co=/&#10;/g,ko=/&amp;/g,Ao=/&quot;/g,Oo=/\{\{((?:.|\n)+?)\}\}/g,So=/[-.*+?^${}()|[\]\/\\]/g,To=o(function(e){var t=e[0].replace(So,"\\$&"),n=e[1].replace(So,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")}),Eo=/^v-|^@|^:/,jo=/(.*?)\s+(?:in|of)\s+(.*)/,No=/\(([^,]*),([^,]*)(?:,([^,]*))?\)/,Lo=/^:|^v-bind:/,Do=/^@|^v-on:/,Mo=/:(.*)$/,Po=/\.[^.]+/g,Io=/\u2028|\u2029/g,Ro=o(rn),Bo=/^xmlns:NS\d+/,Fo=/^NS\d+:/,Ho=o(zn),Uo=/^\s*[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['.*?']|\[".*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*\s*$/,zo={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Vo={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:"if($event.target !== $event.currentTarget)return;"},Jo={bind:Qn,cloak:p},qo=(new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),{staticKeys:["staticClass"],transformNode:hr,genData:mr}),Ko={staticKeys:["staticStyle"],transformNode:gr,genData:yr},Wo=[qo,Ko],Zo={model:_r,text:kr,html:Ar},Go=Object.create(null),Yo={isIE:Kr,expectHTML:!0,modules:Wo,staticKeys:v(Wo),directives:Zo,isReservedTag:Ji,isUnaryTag:Fi,mustUseProp:ji,getTagNamespace:We,isPreTag:Vi},Qo=o(function(e){var t=Ge(e);return t&&t.innerHTML}),Xo=Ae.prototype.$mount;return Ae.prototype.$mount=function(e,t){if(e=e&&Ge(e),e===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=Qo(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(r=Er(e));if(r){var i=Sr(r,{warn:Ci,shouldDecodeNewlines:La,delimiters:n.delimiters},this),a=i.render,o=i.staticRenderFns;n.render=a,n.staticRenderFns=o}}return Xo.call(this,e,t)},Ae.compile=Sr,Ae});