├── .gitignore ├── README.md ├── dtsm.json ├── package.json ├── public ├── bundle.js └── index.html ├── src ├── app.html ├── app.ts ├── components │ ├── home │ │ ├── home.html │ │ └── home.ts │ ├── links │ │ ├── links.html │ │ └── links.ts │ ├── modal │ │ ├── modal.html │ │ └── modal.ts │ ├── navbar │ │ ├── navbar.html │ │ └── navbar.ts │ └── settings │ │ ├── settings.html │ │ └── settings.ts ├── constants.ts ├── index.ts └── route-config.ts ├── tsconfig.json └── webpack.config.js /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | /typings 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Vue.jsとTypeScriptのサンプル 2 | ## License 3 | [MIT](http://opensource.org/licenses/mit-license.php) 4 | -------------------------------------------------------------------------------- /dtsm.json: -------------------------------------------------------------------------------- 1 | { 2 | "repos": [ 3 | { 4 | "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", 5 | "ref": "master" 6 | } 7 | ], 8 | "path": "typings", 9 | "bundle": "typings/bundle.d.ts", 10 | "link": { 11 | "npm": { 12 | "include": true 13 | } 14 | }, 15 | "dependencies": { 16 | "node/node.d.ts": { 17 | "ref": "78d36dd49b6b55b9fdfe61776a12bf05c8b07777" 18 | }, 19 | "jquery/jquery.d.ts": { 20 | "ref": "78d36dd49b6b55b9fdfe61776a12bf05c8b07777" 21 | }, 22 | "bootstrap/bootstrap.d.ts": { 23 | "ref": "78d36dd49b6b55b9fdfe61776a12bf05c8b07777" 24 | }, 25 | "vue/vue.d.ts": { 26 | "ref": "b14601af3fb2ad72d5048e94188a569a1838fb9c" 27 | }, 28 | "vue-router/vue-router.d.ts": { 29 | "ref": "b14601af3fb2ad72d5048e94188a569a1838fb9c" 30 | } 31 | } 32 | } -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "vue-typescript-example", 3 | "private": true, 4 | "version": "1.0.0", 5 | "description": "", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "keywords": [], 10 | "author": "", 11 | "license": "MIT", 12 | "dependencies": { 13 | "vue": "^1.0.10", 14 | "vue-class-component": "^3.2.0", 15 | "vue-router": "^0.7.7" 16 | }, 17 | "devDependencies": { 18 | "html-loader": "^0.3.0", 19 | "jasmine": "^2.3.2", 20 | "karma": "^0.13.15", 21 | "karma-chrome-launcher": "^0.2.1", 22 | "karma-jasmine": "^0.3.6", 23 | "ts-loader": "^0.7.1", 24 | "typescript": "^1.8.9", 25 | "webpack": "^1.12.6" 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /public/bundle.js: -------------------------------------------------------------------------------- 1 | !function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";var i=n(1),r=n(2),o=n(3),s=n(8);i.use(r);var a=new r;s.configureRouter(a),a.start(o.App,"#app")},function(t,e,n){(function(e){/*! 2 | * Vue.js v1.0.18 3 | * (c) 2016 Evan You 4 | * Released under the MIT License. 5 | */ 6 | "use strict";function n(t,e,i){if(r(t,e))return void(t[e]=i);if(t._isVue)return void n(t._data,e,i);var o=t.__ob__;if(!o)return void(t[e]=i);if(o.convert(e,i),o.dep.notify(),o.vms)for(var s=o.vms.length;s--;){var a=o.vms[s];a._proxy(e),a._digest()}return i}function i(t,e){if(r(t,e)){delete t[e];var n=t.__ob__;if(n&&(n.dep.notify(),n.vms))for(var i=n.vms.length;i--;){var o=n.vms[i];o._unproxy(e),o._digest()}}}function r(t,e){return $n.call(t,e)}function o(t){return kn.test(t)}function s(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function a(t){return null==t?"":t.toString()}function h(t){if("string"!=typeof t)return t;var e=Number(t);return isNaN(e)?t:e}function c(t){return"true"===t?!0:"false"===t?!1:t}function l(t){var e=t.charCodeAt(0),n=t.charCodeAt(t.length-1);return e!==n||34!==e&&39!==e?t:t.slice(1,-1)}function u(t){return t.replace(xn,f)}function f(t,e){return e?e.toUpperCase():""}function p(t){return t.replace(An,"$1-$2").toLowerCase()}function d(t){return t.replace(On,f)}function v(t,e){return function(n){var i=arguments.length;return i?i>1?t.apply(e,arguments):t.call(e,n):t.call(e)}}function m(t,e){e=e||0;for(var n=t.length-e,i=new Array(n);n--;)i[n]=t[n+e];return i}function g(t,e){for(var n=Object.keys(e),i=n.length;i--;)t[n[i]]=e[n[i]];return t}function y(t){return null!==t&&"object"==typeof t}function _(t){return Rn.call(t)===jn}function b(t,e,n,i){Object.defineProperty(t,e,{value:n,enumerable:!!i,writable:!0,configurable:!0})}function w(t,e){var n,i,r,o,s,a=function h(){var a=Date.now()-o;e>a&&a>=0?n=setTimeout(h,e-a):(n=null,s=t.apply(r,i),n||(r=i=null))};return function(){return r=this,i=arguments,o=Date.now(),n||(n=setTimeout(a,e)),s}}function C(t,e){for(var n=t.length;n--;)if(t[n]===e)return n;return-1}function $(t){var e=function n(){return n.cancelled?void 0:t.apply(this,arguments)};return e.cancel=function(){e.cancelled=!0},e}function k(t,e){return t==e||(y(t)&&y(e)?JSON.stringify(t)===JSON.stringify(e):!1)}function x(t){this.size=0,this.limit=t,this.head=this.tail=void 0,this._keymap=Object.create(null)}function A(){var t,e=Un.slice(Yn,Kn).trim();if(e){t={};var n=e.match(ri);t.name=n[0],n.length>1&&(t.args=n.slice(1).map(O))}t&&(qn.filters=qn.filters||[]).push(t),Yn=Kn+1}function O(t){if(oi.test(t))return{value:h(t),dynamic:!1};var e=l(t),n=e===t;return{value:n?t:e,dynamic:n}}function R(t){var e=ii.get(t);if(e)return e;for(Un=t,Xn=Zn=!1,ti=ei=ni=0,Yn=0,qn={},Kn=0,Gn=Un.length;Gn>Kn;Kn++)if(Jn=Qn,Qn=Un.charCodeAt(Kn),Xn)39===Qn&&92!==Jn&&(Xn=!Xn);else if(Zn)34===Qn&&92!==Jn&&(Zn=!Zn);else if(124===Qn&&124!==Un.charCodeAt(Kn+1)&&124!==Un.charCodeAt(Kn-1))null==qn.expression?(Yn=Kn+1,qn.expression=Un.slice(0,Kn).trim()):A();else switch(Qn){case 34:Zn=!0;break;case 39:Xn=!0;break;case 40:ni++;break;case 41:ni--;break;case 91:ei++;break;case 93:ei--;break;case 123:ti++;break;case 125:ti--}return null==qn.expression?qn.expression=Un.slice(0,Kn).trim():0!==Yn&&A(),ii.put(t,qn),qn}function j(t){return t.replace(ai,"\\$&")}function T(){var t=j(vi.delimiters[0]),e=j(vi.delimiters[1]),n=j(vi.unsafeDelimiters[0]),i=j(vi.unsafeDelimiters[1]);ci=new RegExp(n+"(.+?)"+i+"|"+t+"(.+?)"+e,"g"),li=new RegExp("^"+n+".*"+i+"$"),hi=new x(1e3)}function E(t){hi||T();var e=hi.get(t);if(e)return e;if(t=t.replace(/\n/g,""),!ci.test(t))return null;for(var n,i,r,o,s,a,h=[],c=ci.lastIndex=0;n=ci.exec(t);)i=n.index,i>c&&h.push({value:t.slice(c,i)}),r=li.test(n[0]),o=r?n[1]:n[2],s=o.charCodeAt(0),a=42===s,o=a?o.slice(1):o,h.push({tag:!0,value:o.trim(),html:r,oneTime:a}),c=i+n[0].length;return c1?t.map(function(t){return S(t,e)}).join("+"):S(t[0],e,!0)}function S(t,e,n){return t.tag?t.oneTime&&e?'"'+e.$eval(t.value)+'"':P(t.value,n):'"'+t.value+'"'}function P(t,e){if(ui.test(t)){var n=R(t);return n.filters?"this._applyFilters("+n.expression+",null,"+JSON.stringify(n.filters)+",false)":"("+t+")"}return e?t:"("+t+")"}function D(t,e,n,i){H(t,1,function(){e.appendChild(t)},n,i)}function F(t,e,n,i){H(t,1,function(){W(t,e)},n,i)}function V(t,e,n){H(t,-1,function(){q(t)},e,n)}function H(t,e,n,i,r){var o=t.__v_trans;if(!o||!o.hooks&&!Hn||!i._isCompiled||i.$parent&&!i.$parent._isCompiled)return n(),void(r&&r());var s=e>0?"enter":"leave";o[s](n,r)}function M(t){if("string"==typeof t){t=document.querySelector(t)}return t}function L(t){var e=document.documentElement,n=t&&t.parentNode;return e===t||e===n||!(!n||1!==n.nodeType||!e.contains(n))}function I(t,e){var n=t.getAttribute(e);return null!==n&&t.removeAttribute(e),n}function B(t,e){var n=I(t,":"+e);return null===n&&(n=I(t,"v-bind:"+e)),n}function z(t,e){return t.hasAttribute(e)||t.hasAttribute(":"+e)||t.hasAttribute("v-bind:"+e)}function W(t,e){e.parentNode.insertBefore(t,e)}function U(t,e){e.nextSibling?W(t,e.nextSibling):e.parentNode.appendChild(t)}function q(t){t.parentNode.removeChild(t)}function Q(t,e){e.firstChild?W(t,e.firstChild):e.appendChild(t)}function J(t,e){var n=t.parentNode;n&&n.replaceChild(e,t)}function K(t,e,n,i){t.addEventListener(e,n,i)}function G(t,e,n){t.removeEventListener(e,n)}function Y(t,e){Dn&&!/svg$/.test(t.namespaceURI)?t.className=e:t.setAttribute("class",e)}function X(t,e){if(t.classList)t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&Y(t,(n+e).trim())}}function Z(t,e){if(t.classList)t.classList.remove(e);else{for(var n=" "+(t.getAttribute("class")||"")+" ",i=" "+e+" ";n.indexOf(i)>=0;)n=n.replace(i," ");Y(t,n.trim())}t.className||t.removeAttribute("class")}function tt(t,e){var n,i;if(it(t)&&ht(t.content)&&(t=t.content),t.hasChildNodes())for(et(t),i=e?document.createDocumentFragment():document.createElement("div");n=t.firstChild;)i.appendChild(n);return i}function et(t){for(var e;e=t.firstChild,nt(e);)t.removeChild(e);for(;e=t.lastChild,nt(e);)t.removeChild(e)}function nt(t){return t&&(3===t.nodeType&&!t.data.trim()||8===t.nodeType)}function it(t){return t.tagName&&"template"===t.tagName.toLowerCase()}function rt(t,e){var n=vi.debug?document.createComment(t):document.createTextNode(e?" ":"");return n.__v_anchor=!0,n}function ot(t){if(t.hasAttributes())for(var e=t.attributes,n=0,i=e.length;i>n;n++){var r=e[n].name;if(yi.test(r))return u(r.replace(yi,""))}}function st(t,e,n){for(var i;t!==e;)i=t.nextSibling,n(t),t=i;n(e)}function at(t,e,n,i,r){function o(){if(a++,s&&a>=h.length){for(var t=0;ti;i++){var o=n[i];b(t,o,e[o])}}function dt(t,e){if(t&&"object"==typeof t){var n;return r(t,"__ob__")&&t.__ob__ instanceof ut?n=t.__ob__:(Tn(t)||_(t))&&Object.isExtensible(t)&&!t._isVue&&(n=new ut(t)),n&&e&&n.addVm(e),n}}function vt(t,e,n,i){var r=new lt,o=Object.getOwnPropertyDescriptor(t,e);if(!o||o.configurable!==!1){var s=o&&o.get,a=o&&o.set,h=i?y(n)&&n.__ob__:dt(n);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=s?s.call(t):n;if(lt.target&&(r.depend(),h&&h.dep.depend(),Tn(e)))for(var i,o=0,a=e.length;a>o;o++)i=e[o],i&&i.__ob__&&i.__ob__.dep.depend();return e},set:function(e){var o=s?s.call(t):n;e!==o&&(a?a.call(t,e):n=e,h=i?y(e)&&e.__ob__:dt(e),r.notify())}})}}function mt(t,e){var n=t.tagName.toLowerCase(),i=t.hasAttributes();if($i.test(n)||ki.test(n)){if(i)return gt(t)}else{if(Rt(e,"components",n))return{id:n};var r=i&>(t);if(r)return r}}function gt(t){var e=I(t,"is");return null!=e?{id:e}:(e=B(t,"is"),null!=e?{id:e,dynamic:!0}:void 0)}function yt(t,e,n){var i=e.path;n=wt(e,n),void 0===n&&(n=_t(t,e.options)),bt(e,n)&&vt(t,i,n,!0)}function _t(t,e){if(!r(e,"default"))return e.type===Boolean?!1:void 0;var n=e["default"];return y(n),"function"==typeof n&&e.type!==Function?n.call(t):n}function bt(t,e){if(!t.options.required&&(null===t.raw||null==e))return!0;var n,i=t.options,r=i.type,o=!0;if(r&&(r===String?(n="string",o=typeof e===n):r===Number?(n="number",o="number"==typeof e):r===Boolean?(n="boolean",o="boolean"==typeof e):r===Function?(n="function",o="function"==typeof e):r===Object?(n="object",o=_(e)):r===Array?(n="array",o=Tn(e)):o=e instanceof r),!o)return!1;var s=i.validator;return!s||s(e)}function wt(t,e){var n=t.options.coerce;return n?n(e):e}function Ct(t,e){var i,o,s;for(i in e)o=t[i],s=e[i],r(t,i)?y(o)&&y(s)&&Ct(o,s):n(t,i,s);return t}function $t(t,e){var n=Object.create(t);return e?g(n,At(e)):n}function kt(t){if(t.components)for(var e,n=t.components=At(t.components),i=Object.keys(n),r=0,o=i.length;o>r;r++){var s=i[r];$i.test(s)||ki.test(s)||(e=n[s],_(e)&&(n[s]=gn.extend(e)))}}function xt(t){var e,n,i=t.props;if(Tn(i))for(t.props={},e=i.length;e--;)n=i[e],"string"==typeof n?t.props[n]=null:n.name&&(t.props[n.name]=n);else if(_(i)){var r=Object.keys(i);for(e=r.length;e--;)n=i[r[e]],"function"==typeof n&&(i[r[e]]={type:n})}}function At(t){if(Tn(t)){for(var e,n={},i=t.length;i--;){e=t[i];var r="function"==typeof e?e.options&&e.options.name||e.id:e.name||e.id;r&&(n[r]=e)}return n}return t}function Ot(t,e,n){function i(i){var r=xi[i]||Ai;s[i]=r(t[i],e[i],n,i)}kt(e),xt(e);var o,s={};if(e.mixins)for(var a=0,h=e.mixins.length;h>a;a++)t=Ot(t,e.mixins[a],n);for(o in t)i(o);for(o in e)r(t,o)||i(o);return s}function Rt(t,e,n){if("string"==typeof n){var i,r=t[e];return r[n]||r[i=u(n)]||r[i.charAt(0).toUpperCase()+i.slice(1)]}}function jt(t,e,n){}function Tt(t){t.prototype._init=function(t){t=t||{},this.$el=null,this.$parent=t.parent,this.$root=this.$parent?this.$parent.$root:this,this.$children=[],this.$refs={},this.$els={},this._watchers=[],this._directives=[],this._uid=Ri++,this._isVue=!0,this._events={},this._eventsCount={},this._isFragment=!1,this._fragment=this._fragmentStart=this._fragmentEnd=null,this._isCompiled=this._isDestroyed=this._isReady=this._isAttached=this._isBeingDestroyed=this._vForRemoving=!1,this._unlinkFn=null,this._context=t._context||this.$parent,this._scope=t._scope,this._frag=t._frag,this._frag&&this._frag.children.push(this),this.$parent&&this.$parent.$children.push(this),t=this.$options=Ot(this.constructor.options,t,this),this._updateRef(),this._data={},this._runtimeData=t.data,this._callHook("init"),this._initState(),this._initEvents(),this._callHook("created"),t.el&&this.$mount(t.el)}}function Et(t){if(void 0===t)return"eof";var e=t.charCodeAt(0);switch(e){case 91:case 93:case 46:case 34:case 39:case 48:return t;case 95:case 36:return"ident";case 32:case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return e>=97&&122>=e||e>=65&&90>=e?"ident":e>=49&&57>=e?"number":"else"}function Nt(t){var e=t.trim();return"0"===t.charAt(0)&&isNaN(t)?!1:o(e)?l(e):"*"+e}function St(t){function e(){var e=t[l+1];return u===Mi&&"'"===e||u===Li&&'"'===e?(l++,i="\\"+e,p[Ti](),!0):void 0}var n,i,r,o,s,a,h,c=[],l=-1,u=Pi,f=0,p=[];for(p[Ei]=function(){void 0!==r&&(c.push(r),r=void 0)},p[Ti]=function(){void 0===r?r=i:r+=i},p[Ni]=function(){p[Ti](),f++},p[Si]=function(){if(f>0)f--,u=Hi,p[Ti]();else{if(f=0,r=Nt(r),r===!1)return!1;p[Ei]()}};null!=u;)if(l++,n=t[l],"\\"!==n||!e()){if(o=Et(n),h=zi[u],s=h[o]||h["else"]||Bi,s===Bi)return;if(u=s[0],a=p[s[1]],a&&(i=s[2],i=void 0===i?n:i,a()===!1))return;if(u===Ii)return c.raw=t,c}}function Pt(t){var e=ji.get(t);return e||(e=St(t),e&&ji.put(t,e)),e}function Dt(t,e){return zt(e).get(t)}function Ft(t,e,i){var r=t;if("string"==typeof e&&(e=St(e)),!e||!y(t))return!1;for(var o,s,a=0,h=e.length;h>a;a++)o=t,s=e[a],"*"===s.charAt(0)&&(s=zt(s.slice(1)).get.call(r,r)),h-1>a?(t=t[s],y(t)||(t={},n(o,s,t))):Tn(t)?t.$set(s,i):s in t?t[s]=i:n(t,s,i);return!0}function Vt(t,e){var n=rr.length;return rr[n]=e?t.replace(Xi,"\\n"):t,'"'+n+'"'}function Ht(t){var e=t.charAt(0),n=t.slice(1);return Ji.test(n)?t:(n=n.indexOf('"')>-1?n.replace(tr,Mt):n,e+"scope."+n)}function Mt(t,e){return rr[e]}function Lt(t){Gi.test(t),rr.length=0;var e=t.replace(Zi,Vt).replace(Yi,"");return e=(" "+e).replace(nr,Ht).replace(tr,Mt),It(e)}function It(t){try{return new Function("scope","return "+t+";")}catch(e){}}function Bt(t){var e=Pt(t);return e?function(t,n){Ft(t,e,n)}:void 0}function zt(t,e){t=t.trim();var n=qi.get(t);if(n)return e&&!n.set&&(n.set=Bt(n.exp)),n;var i={exp:t};return i.get=Wt(t)&&t.indexOf("[")<0?It("scope."+t):Lt(t),e&&(i.set=Bt(t)),qi.put(t,i),i}function Wt(t){return er.test(t)&&!ir.test(t)&&"Math."!==t.slice(0,5)}function Ut(){sr=[],ar=[],hr={},cr={},lr=ur=!1}function qt(){Qt(sr),ur=!0,Qt(ar),Sn&&vi.devtools&&Sn.emit("flush"),Ut()}function Qt(t){for(Wi=0;Wi0){var s=o+(i?e:ct(e));r=$r.get(s),r||(r=Te(n,t.$options,!0),$r.put(s,r))}else r=Te(n,t.$options,!0);this.linker=r}function le(t,e,n){var i=t.node.previousSibling;if(i){for(t=i.__v_frag;!(t&&t.forId===n&&t.inserted||i===e);){if(i=i.previousSibling,!i)return;t=i.__v_frag}return t}}function ue(t){var e=t.node;if(t.end)for(;!e.__vue__&&e!==t.end&&e.nextSibling;)e=e.nextSibling;return e.__vue__}function fe(t){for(var e=-1,n=new Array(Math.floor(t));++ea;a++)if(i=t.options[a],o=n?i.hasAttribute("selected"):i.selected){if(r=i.hasOwnProperty("_value")?i._value:i.value,!e)return r;s.push(r)}return s}function de(t,e){for(var n=t.length;n--;)if(k(t[n],e))return n;return-1}function ve(t,e){var n=e.map(function(t){var e=t.charCodeAt(0);return e>47&&58>e?parseInt(t,10):1===t.length&&(e=t.toUpperCase().charCodeAt(0),e>64&&91>e)?e:Wr[t]});return n=[].concat.apply([],n),function(e){return n.indexOf(e.keyCode)>-1?t.call(this,e):void 0}}function me(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function ge(t){return function(e){return e.preventDefault(),t.call(this,e)}}function ye(t){return function(e){return e.target===e.currentTarget?t.call(this,e):void 0}}function _e(t){if(Kr[t])return Kr[t];var e=be(t);return Kr[t]=Kr[e]=e,e}function be(t){t=p(t);var e=u(t),n=e.charAt(0).toUpperCase()+e.slice(1);Gr||(Gr=document.createElement("div"));for(var i,r=qr.length;r--;)if(i=Qr[r]+n,i in Gr.style)return qr[r]+t;return e in Gr.style?t:void 0}function we(t){for(var e={},n=t.trim().split(/\s+/),i=n.length;i--;)e[n[i]]=!0;return e}function Ce(t,e){return Tn(t)?t.indexOf(e)>-1:r(t,e)}function $e(t,e,n){function i(){++o>=r?n():t[o].call(e,i)}var r=t.length,o=0;t[0].call(e,i)}function ke(t){po.push(t),vo||(vo=!0,zn(xe))}function xe(){for(var t=document.documentElement.offsetHeight,e=0;er;r++)i[r]._bind();return i}function Ne(t,e){return t=t.descriptor.def.priority||No,e=e.descriptor.def.priority||No,t>e?-1:t===e?0:1}function Se(t,e,n,i){function r(r){Pe(t,e,r),n&&i&&Pe(n,i)}return r.dirs=e,r}function Pe(t,e,n){for(var i=e.length;i--;)e[i]._teardown()}function De(t,e,n,i){var r=Re(e,n),o=Ee(function(){r(t,i)},t);return Se(t,o)}function Fe(t,e,n){var i,r,o=e._containerAttrs,s=e._replacerAttrs;if(11!==t.nodeType)e._asComponent?(o&&n&&(i=Ge(o,n)),s&&(r=Ge(s,e))):r=Ge(t.attributes,e);else;return e._containerAttrs=e._replacerAttrs=null,function(t,e,n){var o,s=t._context;s&&i&&(o=Ee(function(){i(s,e,null,n)},s));var a=Ee(function(){r&&r(t,e)},t);return Se(t,a,s,o)}}function Ve(t,e){var n=t.nodeType;return 1===n&&"SCRIPT"!==t.tagName?He(t,e):3===n&&t.data.trim()?Me(t,e):null}function He(t,e){if("TEXTAREA"===t.tagName){var n=E(t.value);n&&(t.setAttribute(":value",N(n)),t.value="")}var i,r=t.hasAttributes();return r&&(i=Qe(t,e)),i||(i=Ue(t,e)),i||(i=qe(t,e)),!i&&r&&(i=Ge(t.attributes,e)),i}function Me(t,e){if(t._skip)return Le;var n=E(t.wholeText);if(!n)return null;for(var i=t.nextSibling;i&&3===i.nodeType;)i._skip=!0,i=i.nextSibling;for(var r,o,s=document.createDocumentFragment(),a=0,h=n.length;h>a;a++)o=n[a],r=o.tag?Ie(o,e):document.createTextNode(o.value),s.appendChild(r);return Be(n,s,e)}function Le(t,e){q(e)}function Ie(t,e){function n(e){if(!t.descriptor){var n=R(t.value);t.descriptor={name:e,def:ho[e],expression:n.expression,filters:n.filters}}}var i;return t.oneTime?i=document.createTextNode(t.value):t.html?(i=document.createComment("v-html"),n("html")):(i=document.createTextNode(" "),n("text")),i}function Be(t,e){return function(n,i,r,o){for(var s,a,h,c=e.cloneNode(!0),l=m(c.childNodes),u=0,f=t.length;f>u;u++)s=t[u],a=s.value,s.tag&&(h=l[u],s.oneTime?(a=(o||n).$eval(a),s.html?J(h,ee(a,!0)):h.data=a):n._bindDir(s.descriptor,h,r,o));J(i,c)}}function ze(t,e){for(var n,i,r,o=[],s=0,a=t.length;a>s;s++)r=t[s],n=Ve(r,e),i=n&&n.terminal||"SCRIPT"===r.tagName||!r.hasChildNodes()?null:ze(r.childNodes,e),o.push(n,i);return o.length?We(o):null}function We(t){return function(e,n,i,r,o){for(var s,a,h,c=0,l=0,u=t.length;u>c;l++){s=n[l],a=t[c++],h=t[c++];var f=m(s.childNodes);a&&a(e,s,i,r,o),h&&h(e,f,i,r,o)}}}function Ue(t,e){var n=t.tagName.toLowerCase();if(!$i.test(n)){var i=Rt(e,"elementDirectives",n);return i?Ke(t,n,"",e,i):void 0}}function qe(t,e){var n=mt(t,e);if(n){var i=ot(t),r={name:"component",ref:i,expression:n.id,def:Co.component,modifiers:{literal:!n.dynamic}},o=function(t,e,n,o,s){i&&vt((o||t).$refs,i,null),t._bindDir(r,e,n,o,s)};return o.terminal=!0,o}}function Qe(t,e){if(null!==I(t,"v-pre"))return Je;if(t.hasAttribute("v-else")){var n=t.previousElementSibling;if(n&&n.hasAttribute("v-if"))return Je}for(var i,r,o=0,s=Eo.length;s>o;o++)if(r=Eo[o],i=t.getAttribute("v-"+r),null!=i)return Ke(t,r,i,e)}function Je(){}function Ke(t,e,n,i,r){var o=R(n),s={name:e,expression:o.expression,filters:o.filters,raw:n,def:r||Rt(i,"directives",e)};"for"!==e&&"router-view"!==e||(s.ref=ot(t));var a=function(t,e,n,i,r){s.ref&&vt((i||t).$refs,s.ref,null),t._bindDir(s,e,n,i,r)};return a.terminal=!0,a}function Ge(t,e){function n(t,e,n){var i=n&&Ze(n),r=!i&&R(o);v.push({name:t,attr:s,raw:a,def:e,arg:c,modifiers:l,expression:r&&r.expression,filters:r&&r.filters,interp:n,hasOneTime:i})}for(var i,r,o,s,a,h,c,l,u,f,p,d=t.length,v=[];d--;)if(i=t[d],r=s=i.name,o=a=i.value,f=E(o),c=null,l=Ye(r),r=r.replace(jo,""),f)o=N(f),c=r,n("bind",ho.bind,f);else if(To.test(r))l.literal=!Ao.test(r),n("transition",Co.transition);else if(Oo.test(r))c=r.replace(Oo,""),n("on",ho.on);else if(Ao.test(r))h=r.replace(Ao,""),"style"===h||"class"===h?n(h,Co[h]):(c=h,n("bind",ho.bind));else if(p=r.match(Ro)){if(h=p[1],c=p[2],"else"===h)continue;u=Rt(e,"directives",h),u&&n(h,u)}return v.length?Xe(v):void 0}function Ye(t){var e=Object.create(null),n=t.match(jo);if(n)for(var i=n.length;i--;)e[n[i].slice(1)]=!0;return e}function Xe(t){return function(e,n,i,r,o){for(var s=t.length;s--;)e._bindDir(t[s],n,i,r,o)}}function Ze(t){for(var e=t.length;e--;)if(t[e].oneTime)return!0}function tn(t,e){return e&&(e._containerAttrs=nn(t)),it(t)&&(t=ee(t)),e&&(e._asComponent&&!e.template&&(e.template=""),e.template&&(e._content=tt(t),t=en(t,e))),ht(t)&&(Q(rt("v-start",!0),t),t.appendChild(rt("v-end",!0))),t}function en(t,e){var n=e.template,i=ee(n,!0);if(i){var r=i.firstChild,o=r.tagName&&r.tagName.toLowerCase();return e.replace?(t===document.body,i.childNodes.length>1||1!==r.nodeType||"component"===o||Rt(e,"components",o)||z(r,"is")||Rt(e,"elementDirectives",o)||r.hasAttribute("v-for")||r.hasAttribute("v-if")?i:(e._replacerAttrs=nn(r),rn(t,r),r)):(t.appendChild(i),t)}}function nn(t){return 1===t.nodeType&&t.hasAttributes()?m(t.attributes):void 0}function rn(t,e){for(var n,i,r=t.attributes,o=r.length;o--;)n=r[o].name,i=r[o].value,e.hasAttribute(n)||So.test(n)?"class"!==n||E(i)||i.trim().split(/\s+/).forEach(function(t){X(e,t)}):e.setAttribute(n,i)}function on(t,e){if(e){for(var n,i,r=t._slotContents=Object.create(null),o=0,s=e.children.length;s>o;o++)n=e.children[o],(i=n.getAttribute("slot"))&&(r[i]||(r[i]=[])).push(n);for(i in r)r[i]=sn(r[i],e);e.hasChildNodes()&&(r["default"]=sn(e.childNodes,e))}}function sn(t,e){var n=document.createDocumentFragment();t=m(t);for(var i=0,r=t.length;r>i;i++){var o=t[i];!it(o)||o.hasAttribute("v-if")||o.hasAttribute("v-for")||(e.removeChild(o),o=ee(o)),n.appendChild(o)}return n}function an(t){function e(){}function n(t,e){var n=new Kt(e,t,null,{lazy:!0});return function(){return n.dirty&&n.evaluate(),lt.target&&n.depend(),n.value}}Object.defineProperty(t.prototype,"$data",{get:function(){return this._data},set:function(t){t!==this._data&&this._setData(t)}}),t.prototype._initState=function(){this._initProps(),this._initMeta(),this._initMethods(),this._initData(),this._initComputed()},t.prototype._initProps=function(){var t=this.$options,e=t.el,n=t.props;e=t.el=M(e),this._propsUnlinkFn=e&&1===e.nodeType&&n?De(this,e,n,this._scope):null},t.prototype._initData=function(){var t,e,n=this.$options.data,i=this._data=n?n():{},o=this._props,s=this._runtimeData?"function"==typeof this._runtimeData?this._runtimeData():this._runtimeData:null,a=Object.keys(i);for(t=a.length;t--;)e=a[t],(!o||!r(o,e)||s&&r(s,e)&&null===o[e].raw)&&this._proxy(e);dt(i,this)},t.prototype._setData=function(t){t=t||{};var e=this._data;this._data=t;var n,i,o;for(n=Object.keys(e),o=n.length;o--;)i=n[o],i in t||this._unproxy(i);for(n=Object.keys(t),o=n.length;o--;)i=n[o],r(this,i)||this._proxy(i);e.__ob__.removeVm(this),dt(t,this),this._digest()},t.prototype._proxy=function(t){if(!s(t)){var e=this;Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return e._data[t]},set:function(n){e._data[t]=n}})}},t.prototype._unproxy=function(t){s(t)||delete this[t]},t.prototype._digest=function(){for(var t=0,e=this._watchers.length;e>t;t++)this._watchers[t].update(!0)},t.prototype._initComputed=function(){var t=this.$options.computed;if(t)for(var i in t){var r=t[i],o={enumerable:!0,configurable:!0};"function"==typeof r?(o.get=n(r,this),o.set=e):(o.get=r.get?r.cache!==!1?n(r.get,this):v(r.get,this):e,o.set=r.set?v(r.set,this):e),Object.defineProperty(this,i,o)}},t.prototype._initMethods=function(){var t=this.$options.methods;if(t)for(var e in t)this[e]=v(t[e],this)},t.prototype._initMeta=function(){var t=this.$options._meta;if(t)for(var e in t)vt(this,e,t[e])}}function hn(t){function e(t,e){for(var n,i,r=e.attributes,o=0,s=r.length;s>o;o++)n=r[o].name,Do.test(n)&&(n=n.replace(Do,""),i=(t._scope||t._context).$eval(r[o].value,!0),"function"==typeof i&&(i._fromParent=!0,t.$on(n.replace(Do),i)))}function n(t,e,n){if(n){var r,o,s,a;for(o in n)if(r=n[o],Tn(r))for(s=0,a=r.length;a>s;s++)i(t,e,o,r[s]);else i(t,e,o,r)}}function i(t,e,n,r,o){var s=typeof r;if("function"===s)t[e](n,r,o);else if("string"===s){var a=t.$options.methods,h=a&&a[r];h&&t[e](n,h,o)}else r&&"object"===s&&i(t,e,n,r.handler,r)}function r(){this._isAttached||(this._isAttached=!0,this.$children.forEach(o))}function o(t){!t._isAttached&&L(t.$el)&&t._callHook("attached")}function s(){this._isAttached&&(this._isAttached=!1,this.$children.forEach(a))}function a(t){t._isAttached&&!L(t.$el)&&t._callHook("detached")}t.prototype._initEvents=function(){var t=this.$options;t._asComponent&&e(this,t.el),n(this,"$on",t.events),n(this,"$watch",t.watch)},t.prototype._initDOMHooks=function(){this.$on("hook:attached",r),this.$on("hook:detached",s)},t.prototype._callHook=function(t){this.$emit("pre-hook:"+t);var e=this.$options[t];if(e)for(var n=0,i=e.length;i>n;n++)e[n].call(this);this.$emit("hook:"+t)}}function cn(){}function ln(t,e,n,i,r,o){this.vm=e,this.el=n,this.descriptor=t,this.name=t.name,this.expression=t.expression,this.arg=t.arg,this.modifiers=t.modifiers,this.filters=t.filters,this.literal=this.modifiers&&this.modifiers.literal,this._locked=!1,this._bound=!1,this._listeners=null,this._host=i,this._scope=r,this._frag=o}function un(t){t.prototype._updateRef=function(t){var e=this.$options._ref;if(e){var n=(this._scope||this._context).$refs;t?n[e]===this&&(n[e]=null):n[e]=this}},t.prototype._compile=function(t){var e=this.$options,n=t;if(t=tn(t,e),this._initElement(t),1!==t.nodeType||null===I(t,"v-pre")){var i=this._context&&this._context.$options,r=Fe(t,e,i);on(this,e._content);var o,s=this.constructor;e._linkerCachable&&(o=s.linker,o||(o=s.linker=Te(t,e)));var a=r(this,t,this._scope),h=o?o(this,t):Te(t,e)(this,t);this._unlinkFn=function(){a(),h(!0)},e.replace&&J(n,t),this._isCompiled=!0,this._callHook("compiled")}},t.prototype._initElement=function(t){ht(t)?(this._isFragment=!0,this.$el=this._fragmentStart=t.firstChild,this._fragmentEnd=t.lastChild,3===this._fragmentStart.nodeType&&(this._fragmentStart.data=this._fragmentEnd.data=""),this._fragment=t):this.$el=t,this.$el.__vue__=this,this._callHook("beforeCompile")},t.prototype._bindDir=function(t,e,n,i,r){this._directives.push(new ln(t,this,e,n,i,r))},t.prototype._destroy=function(t,e){if(this._isBeingDestroyed)return void(e||this._cleanup());var n,i,r=this,o=function(){!n||i||e||r._cleanup()};t&&this.$el&&(i=!0,this.$remove(function(){i=!1,o()})),this._callHook("beforeDestroy"),this._isBeingDestroyed=!0;var s,a=this.$parent;for(a&&!a._isBeingDestroyed&&(a.$children.$remove(this),this._updateRef(!0)),s=this.$children.length;s--;)this.$children[s].$destroy();for(this._propsUnlinkFn&&this._propsUnlinkFn(),this._unlinkFn&&this._unlinkFn(),s=this._watchers.length;s--;)this._watchers[s].teardown();this.$el&&(this.$el.__vue__=null),n=!0,o()},t.prototype._cleanup=function(){this._isDestroyed||(this._frag&&this._frag.children.$remove(this),this._data.__ob__&&this._data.__ob__.removeVm(this),this.$el=this.$parent=this.$root=this.$children=this._watchers=this._context=this._scope=this._directives=null,this._isDestroyed=!0,this._callHook("destroyed"),this.$off())}}function fn(t){t.prototype._applyFilters=function(t,e,n,i){var r,o,s,a,h,c,l,u,f;for(c=0,l=n.length;l>c;c++)if(r=n[c],o=Rt(this.$options,"filters",r.name),o&&(o=i?o.write:o.read||o,"function"==typeof o)){if(s=i?[t,e]:[t],h=i?2:1,r.args)for(u=0,f=r.args.length;f>u;u++)a=r.args[u],s[u+h]=a.dynamic?this.$get(a.value):a.value;t=o.apply(this,s)}return t},t.prototype._resolveComponent=function(e,n){var i=Rt(this.$options,"components",e);if(i)if(i.options)n(i);else if(i.resolved)n(i.resolved);else if(i.requested)i.pendingCallbacks.push(n);else{i.requested=!0;var r=i.pendingCallbacks=[n];i.call(this,function(e){_(e)&&(e=t.extend(e)),i.resolved=e;for(var n=0,o=r.length;o>n;n++)r[n](e)},function(t){})}}}function pn(t){function e(t){return JSON.parse(JSON.stringify(t))}t.prototype.$get=function(t,e){var n=zt(t);if(n){if(e&&!Wt(t)){var i=this;return function(){i.$arguments=m(arguments);var t=n.get.call(i,i);return i.$arguments=null, 7 | t}}try{return n.get.call(this,this)}catch(r){}}},t.prototype.$set=function(t,e){var n=zt(t,!0);n&&n.set&&n.set.call(this,this,e)},t.prototype.$delete=function(t){i(this._data,t)},t.prototype.$watch=function(t,e,n){var i,r=this;"string"==typeof t&&(i=R(t),t=i.expression);var o=new Kt(r,t,e,{deep:n&&n.deep,sync:n&&n.sync,filters:i&&i.filters,user:!n||n.user!==!1});return n&&n.immediate&&e.call(r,o.value),function(){o.teardown()}},t.prototype.$eval=function(t,e){if(Fo.test(t)){var n=R(t),i=this.$get(n.expression,e);return n.filters?this._applyFilters(i,null,n.filters):i}return this.$get(t,e)},t.prototype.$interpolate=function(t){var e=E(t),n=this;return e?1===e.length?n.$eval(e[0].value)+"":e.map(function(t){return t.tag?n.$eval(t.value):t.value}).join(""):t},t.prototype.$log=function(t){var n=t?Dt(this._data,t):this._data;if(n&&(n=e(n)),!t){var i;for(i in this.$options.computed)n[i]=e(this[i]);if(this._props)for(i in this._props)n[i]=e(this[i])}console.log(n)}}function dn(t){function e(t,e,i,r,o,s){e=n(e);var a=!L(e),h=r===!1||a?o:s,c=!a&&!t._isAttached&&!L(t.$el);return t._isFragment?(st(t._fragmentStart,t._fragmentEnd,function(n){h(n,e,t)}),i&&i()):h(t.$el,e,t,i),c&&t._callHook("attached"),t}function n(t){return"string"==typeof t?document.querySelector(t):t}function i(t,e,n,i){e.appendChild(t),i&&i()}function r(t,e,n,i){W(t,e),i&&i()}function o(t,e,n){q(t),n&&n()}t.prototype.$nextTick=function(t){zn(t,this)},t.prototype.$appendTo=function(t,n,r){return e(this,t,n,r,i,D)},t.prototype.$prependTo=function(t,e,i){return t=n(t),t.hasChildNodes()?this.$before(t.firstChild,e,i):this.$appendTo(t,e,i),this},t.prototype.$before=function(t,n,i){return e(this,t,n,i,r,F)},t.prototype.$after=function(t,e,i){return t=n(t),t.nextSibling?this.$before(t.nextSibling,e,i):this.$appendTo(t.parentNode,e,i),this},t.prototype.$remove=function(t,e){if(!this.$el.parentNode)return t&&t();var n=this._isAttached&&L(this.$el);n||(e=!1);var i=this,r=function(){n&&i._callHook("detached"),t&&t()};if(this._isFragment)at(this._fragmentStart,this._fragmentEnd,this,this._fragment,r);else{var s=e===!1?o:V;s(this.$el,this,r)}return this}}function vn(t){function e(t,e,i){var r=t.$parent;if(r&&i&&!n.test(e))for(;r;)r._eventsCount[e]=(r._eventsCount[e]||0)+i,r=r.$parent}t.prototype.$on=function(t,n){return(this._events[t]||(this._events[t]=[])).push(n),e(this,t,1),this},t.prototype.$once=function(t,e){function n(){i.$off(t,n),e.apply(this,arguments)}var i=this;return n.fn=e,this.$on(t,n),this},t.prototype.$off=function(t,n){var i;if(!arguments.length){if(this.$parent)for(t in this._events)i=this._events[t],i&&e(this,t,-i.length);return this._events={},this}if(i=this._events[t],!i)return this;if(1===arguments.length)return e(this,t,-i.length),this._events[t]=null,this;for(var r,o=i.length;o--;)if(r=i[o],r===n||r.fn===n){e(this,t,-1),i.splice(o,1);break}return this},t.prototype.$emit=function(t){var e="string"==typeof t;t=e?t:t.name;var n=this._events[t],i=e||!n;if(n){n=n.length>1?m(n):n;var r=e&&n.some(function(t){return t._fromParent});r&&(i=!1);for(var o=m(arguments,1),s=0,a=n.length;a>s;s++){var h=n[s],c=h.apply(this,o);c!==!0||r&&!h._fromParent||(i=!0)}}return i},t.prototype.$broadcast=function(t){var e="string"==typeof t;if(t=e?t:t.name,this._eventsCount[t]){var n=this.$children,i=m(arguments);e&&(i[0]={name:t,source:this});for(var r=0,o=n.length;o>r;r++){var s=n[r],a=s.$emit.apply(s,i);a&&s.$broadcast.apply(s,i)}return this}},t.prototype.$dispatch=function(t){var e=this.$emit.apply(this,arguments);if(e){var n=this.$parent,i=m(arguments);for(i[0]={name:t,source:this};n;)e=n.$emit.apply(n,i),n=e?n.$parent:null;return this}};var n=/^hook:/}function mn(t){function e(){this._isAttached=!0,this._isReady=!0,this._callHook("ready")}t.prototype.$mount=function(t){return this._isCompiled?void 0:(t=M(t),t||(t=document.createElement("div")),this._compile(t),this._initDOMHooks(),L(this.$el)?(this._callHook("attached"),e.call(this)):this.$once("hook:attached",e),this)},t.prototype.$destroy=function(t,e){this._destroy(t,e)},t.prototype.$compile=function(t,e,n,i){return Te(t,this.$options,!0)(this,t,e,n,i)}}function gn(t){this._init(t)}function yn(t,e,n){return n=n?parseInt(n,10):0,e=h(e),"number"==typeof e?t.slice(n,n+e):t}function _n(t,e,n){if(t=Lo(t),null==e)return t;if("function"==typeof e)return t.filter(e);e=(""+e).toLowerCase();for(var i,r,o,s,a="in"===n?3:2,h=m(arguments,a).reduce(function(t,e){return t.concat(e)},[]),c=[],l=0,u=t.length;u>l;l++)if(i=t[l],o=i&&i.$value||i,s=h.length){for(;s--;)if(r=h[s],"$key"===r&&wn(i.$key,e)||wn(Dt(o,r),e)){c.push(i);break}}else wn(i,e)&&c.push(i);return c}function bn(t,e,n){if(t=Lo(t),!e)return t;var i=n&&0>n?-1:1;return t.slice().sort(function(t,n){return"$key"!==e&&(y(t)&&"$value"in t&&(t=t.$value),y(n)&&"$value"in n&&(n=n.$value)),t=y(t)?Dt(t,e):t,n=y(n)?Dt(n,e):n,t===n?0:t>n?i:-i})}function wn(t,e){var n;if(_(t)){var i=Object.keys(t);for(n=i.length;n--;)if(wn(t[i[n]],e))return!0}else if(Tn(t)){for(n=t.length;n--;)if(wn(t[n],e))return!0}else if(null!=t)return t.toString().toLowerCase().indexOf(e)>-1}function Cn(t){function e(t){return new Function("return function "+d(t)+" (options) { this._init(options) }")()}t.options={directives:ho,elementDirectives:Mo,filters:Bo,transitions:{},components:{},partials:{},replace:!0},t.util=Oi,t.config=vi,t.set=n,t["delete"]=i,t.nextTick=zn,t.compiler=Po,t.FragmentFactory=ce,t.internalDirectives=Co,t.parsers={path:Ui,text:fi,template:wr,directive:si,expression:or},t.cid=0;var r=1;t.extend=function(t){t=t||{};var n=this,i=0===n.cid;if(i&&t._Ctor)return t._Ctor;var o=t.name||n.options.name,s=e(o||"VueComponent");return s.prototype=Object.create(n.prototype),s.prototype.constructor=s,s.cid=r++,s.options=Ot(n.options,t),s["super"]=n,s.extend=n.extend,vi._assetTypes.forEach(function(t){s[t]=n[t]}),o&&(s.options.components[o]=s),i&&(t._Ctor=s),s},t.use=function(t){if(!t.installed){var e=m(arguments,1);return e.unshift(this),"function"==typeof t.install?t.install.apply(t,e):t.apply(null,e),t.installed=!0,this}},t.mixin=function(e){t.options=Ot(t.options,e)},vi._assetTypes.forEach(function(e){t[e]=function(n,i){return i?("component"===e&&_(i)&&(i.name=n,i=t.extend(i)),this.options[e+"s"][n]=i,i):this.options[e+"s"][n]}}),g(t.transition,gi)}var $n=Object.prototype.hasOwnProperty,kn=/^\s?(true|false|-?[\d\.]+|'[^']*'|"[^"]*")\s?$/,xn=/-(\w)/g,An=/([a-z\d])([A-Z])/g,On=/(?:^|[-_\/])(\w)/g,Rn=Object.prototype.toString,jn="[object Object]",Tn=Array.isArray,En="__proto__"in{},Nn="undefined"!=typeof window&&"[object Object]"!==Object.prototype.toString.call(window),Sn=Nn&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,Pn=Nn&&window.navigator.userAgent.toLowerCase(),Dn=Pn&&Pn.indexOf("msie 9.0")>0,Fn=Pn&&Pn.indexOf("android")>0,Vn=void 0,Hn=void 0,Mn=void 0,Ln=void 0;if(Nn&&!Dn){var In=void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend,Bn=void 0===window.onanimationend&&void 0!==window.onwebkitanimationend;Vn=In?"WebkitTransition":"transition",Hn=In?"webkitTransitionEnd":"transitionend",Mn=Bn?"WebkitAnimation":"animation",Ln=Bn?"webkitAnimationEnd":"animationend"}var zn=function(){function t(){r=!1;var t=i.slice(0);i=[];for(var e=0;ee;e++)t[e].update()};var bi=Array.prototype,wi=Object.create(bi);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(t){var e=bi[t];b(wi,t,function(){for(var n=arguments.length,i=new Array(n);n--;)i[n]=arguments[n];var r,o=e.apply(this,i),s=this.__ob__;switch(t){case"push":r=i;break;case"unshift":r=i;break;case"splice":r=i.slice(2)}return r&&s.observeArray(r),s.dep.notify(),o})}),b(bi,"$set",function(t,e){return t>=this.length&&(this.length=Number(t)+1),this.splice(t,1,e)[0]}),b(bi,"$remove",function(t){if(this.length){var e=C(this,t);return e>-1?this.splice(e,1):void 0}});var Ci=Object.getOwnPropertyNames(wi);ut.prototype.walk=function(t){for(var e=Object.keys(t),n=0,i=e.length;i>n;n++)this.convert(e[n],t[e[n]])},ut.prototype.observeArray=function(t){for(var e=0,n=t.length;n>e;e++)dt(t[e])},ut.prototype.convert=function(t,e){vt(this.value,t,e)},ut.prototype.addVm=function(t){(this.vms||(this.vms=[])).push(t)},ut.prototype.removeVm=function(t){this.vms.$remove(t)};var $i=/^(div|p|span|img|a|b|i|br|ul|ol|li|h1|h2|h3|h4|h5|h6|code|pre|table|th|td|tr|form|label|input|select|option|nav|article|section|header|footer)$/i,ki=/^(slot|partial|component)$/i,xi=vi.optionMergeStrategies=Object.create(null);xi.data=function(t,e,n){return n?t||e?function(){var i="function"==typeof e?e.call(n):e,r="function"==typeof t?t.call(n):void 0;return i?Ct(i,r):r}:void 0:e?"function"!=typeof e?t:t?function(){return Ct(e.call(this),t.call(this))}:e:t},xi.el=function(t,e,n){if(n||!e||"function"==typeof e){var i=e||t;return n&&"function"==typeof i?i.call(n):i}},xi.init=xi.created=xi.ready=xi.attached=xi.detached=xi.beforeCompile=xi.compiled=xi.beforeDestroy=xi.destroyed=xi.activate=function(t,e){return e?t?t.concat(e):Tn(e)?e:[e]:t},xi.paramAttributes=function(){},vi._assetTypes.forEach(function(t){xi[t+"s"]=$t}),xi.watch=xi.events=function(t,e){if(!e)return t;if(!t)return e;var n={};g(n,t);for(var i in e){var r=n[i],o=e[i];r&&!Tn(r)&&(r=[r]),n[i]=r?r.concat(o):[o]}return n},xi.props=xi.methods=xi.computed=function(t,e){if(!e)return t;if(!t)return e;var n=Object.create(null);return g(n,t),g(n,e),n};var Ai=function(t,e){return void 0===e?t:e},Oi=Object.freeze({defineReactive:vt,set:n,del:i,hasOwn:r,isLiteral:o,isReserved:s,_toString:a,toNumber:h,toBoolean:c,stripQuotes:l,camelize:u,hyphenate:p,classify:d,bind:v,toArray:m,extend:g,isObject:y,isPlainObject:_,def:b,debounce:w,indexOf:C,cancellable:$,looseEqual:k,isArray:Tn,hasProto:En,inBrowser:Nn,devtools:Sn,isIE9:Dn,isAndroid:Fn,get transitionProp(){return Vn},get transitionEndEvent(){return Hn},get animationProp(){return Mn},get animationEndEvent(){return Ln},nextTick:zn,query:M,inDoc:L,getAttr:I,getBindAttr:B,hasBindAttr:z,before:W,after:U,remove:q,prepend:Q,replace:J,on:K,off:G,setClass:Y,addClass:X,removeClass:Z,extractContent:tt,trimNode:et,isTemplate:it,createAnchor:rt,findRef:ot,mapNodeRange:st,removeNodeRange:at,isFragment:ht,getOuterHTML:ct,mergeOptions:Ot,resolveAsset:Rt,assertAsset:jt,checkComponentAttr:mt,initProp:yt,assertProp:bt,coerceProp:wt,commonTagRE:$i,reservedTagRE:ki,get warn(){return mi}}),Ri=0,ji=new x(1e3),Ti=0,Ei=1,Ni=2,Si=3,Pi=0,Di=1,Fi=2,Vi=3,Hi=4,Mi=5,Li=6,Ii=7,Bi=8,zi=[];zi[Pi]={ws:[Pi],ident:[Vi,Ti],"[":[Hi],eof:[Ii]},zi[Di]={ws:[Di],".":[Fi],"[":[Hi],eof:[Ii]},zi[Fi]={ws:[Fi],ident:[Vi,Ti]},zi[Vi]={ident:[Vi,Ti],0:[Vi,Ti],number:[Vi,Ti],ws:[Di,Ei],".":[Fi,Ei],"[":[Hi,Ei],eof:[Ii,Ei]},zi[Hi]={"'":[Mi,Ti],'"':[Li,Ti],"[":[Hi,Ni],"]":[Di,Si],eof:Bi,"else":[Hi,Ti]},zi[Mi]={"'":[Hi,Ti],eof:Bi,"else":[Mi,Ti]},zi[Li]={'"':[Hi,Ti],eof:Bi,"else":[Li,Ti]};var Wi,Ui=Object.freeze({parsePath:Pt,getPath:Dt,setPath:Ft}),qi=new x(1e3),Qi="Math,Date,this,true,false,null,undefined,Infinity,NaN,isNaN,isFinite,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,parseInt,parseFloat",Ji=new RegExp("^("+Qi.replace(/,/g,"\\b|")+"\\b)"),Ki="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,protected,static,interface,private,public",Gi=new RegExp("^("+Ki.replace(/,/g,"\\b|")+"\\b)"),Yi=/\s/g,Xi=/\n/g,Zi=/[\{,]\s*[\w\$_]+\s*:|('(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`)|new |typeof |void /g,tr=/"(\d+)"/g,er=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['.*?'\]|\[".*?"\]|\[\d+\]|\[[A-Za-z_$][\w$]*\])*$/,nr=/[^\w$\.](?:[A-Za-z_$][\w$]*)/g,ir=/^(?:true|false)$/,rr=[],or=Object.freeze({parseExpression:zt,isSimplePath:Wt}),sr=[],ar=[],hr={},cr={},lr=!1,ur=!1,fr=0;Kt.prototype.get=function(){this.beforeGet();var t,e=this.scope||this.vm;try{t=this.getter.call(e,e)}catch(n){}return this.deep&&Gt(t),this.preProcess&&(t=this.preProcess(t)),this.filters&&(t=e._applyFilters(t,null,this.filters,!1)),this.postProcess&&(t=this.postProcess(t)),this.afterGet(),t},Kt.prototype.set=function(t){var e=this.scope||this.vm;this.filters&&(t=e._applyFilters(t,this.value,this.filters,!0));try{this.setter.call(e,e,t)}catch(n){}var i=e.$forContext;if(i&&i.alias===this.expression){if(i.filters)return;i._withLock(function(){e.$key?i.rawValue[e.$key]=t:i.rawValue.$set(e.$index,t)})}},Kt.prototype.beforeGet=function(){lt.target=this,this.newDepIds=Object.create(null),this.newDeps.length=0},Kt.prototype.addDep=function(t){var e=t.id;this.newDepIds[e]||(this.newDepIds[e]=!0,this.newDeps.push(t),this.depIds[e]||t.addSub(this))},Kt.prototype.afterGet=function(){lt.target=null;for(var t=this.deps.length;t--;){var e=this.deps[t];this.newDepIds[e.id]||e.removeSub(this)}this.depIds=this.newDepIds;var n=this.deps;this.deps=this.newDeps,this.newDeps=n},Kt.prototype.update=function(t){this.lazy?this.dirty=!0:this.sync||!vi.async?this.run():(this.shallow=this.queued?t?this.shallow:!1:!!t,this.queued=!0,Jt(this))},Kt.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||(y(t)||this.deep)&&!this.shallow){var e=this.value;this.value=t;this.prevError;this.cb.call(this.vm,t,e)}this.queued=this.shallow=!1}},Kt.prototype.evaluate=function(){var t=lt.target;this.value=this.get(),this.dirty=!1,lt.target=t},Kt.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},Kt.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||this.vm._vForRemoving||this.vm._watchers.$remove(this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1,this.vm=this.cb=this.value=null}};var pr={bind:function(){this.attr=3===this.el.nodeType?"data":"textContent"},update:function(t){this.el[this.attr]=a(t)}},dr=new x(1e3),vr=new x(1e3),mr={efault:[0,"",""],legend:[1,"
","
"],tr:[2,"","
"],col:[2,"","
"]};mr.td=mr.th=[3,"","
"],mr.option=mr.optgroup=[1,'"],mr.thead=mr.tbody=mr.colgroup=mr.caption=mr.tfoot=[1,"","
"],mr.g=mr.defs=mr.symbol=mr.use=mr.image=mr.text=mr.circle=mr.ellipse=mr.line=mr.path=mr.polygon=mr.polyline=mr.rect=[1,'',""];var gr=/<([\w:-]+)/,yr=/&#?\w+?;/,_r=function(){if(Nn){var t=document.createElement("div");return t.innerHTML="",!t.cloneNode(!0).firstChild.innerHTML}return!1}(),br=function(){if(Nn){var t=document.createElement("textarea");return t.placeholder="t","t"===t.cloneNode(!0).value}return!1}(),wr=Object.freeze({cloneNode:te,parseTemplate:ee}),Cr={bind:function(){8===this.el.nodeType&&(this.nodes=[],this.anchor=rt("v-html"),J(this.el,this.anchor))},update:function(t){t=a(t),this.nodes?this.swap(t):this.el.innerHTML=t},swap:function(t){for(var e=this.nodes.length;e--;)q(this.nodes[e]);var n=ee(t,!0,!0);this.nodes=m(n.childNodes),W(n,this.anchor)}};ne.prototype.callHook=function(t){var e,n;for(e=0,n=this.childFrags.length;n>e;e++)this.childFrags[e].callHook(t);for(e=0,n=this.children.length;n>e;e++)t(this.children[e])},ne.prototype.beforeRemove=function(){var t,e;for(t=0,e=this.childFrags.length;e>t;t++)this.childFrags[t].beforeRemove(!1);for(t=0,e=this.children.length;e>t;t++)this.children[t].$destroy(!1,!0);var n=this.unlink.dirs;for(t=0,e=n.length;e>t;t++)n[t]._watcher&&n[t]._watcher.teardown()},ne.prototype.destroy=function(){this.parentFrag&&this.parentFrag.childFrags.$remove(this),this.node.__v_frag=null,this.unlink()};var $r=new x(5e3);ce.prototype.create=function(t,e,n){var i=te(this.template);return new ne(this.linker,this.vm,i,t,e,n)};var kr=700,xr=800,Ar=850,Or=1100,Rr=1500,jr=1500,Tr=1750,Er=2e3,Nr=2e3,Sr=2100,Pr=0,Dr={priority:Er,params:["track-by","stagger","enter-stagger","leave-stagger"],bind:function(){var t=this.expression.match(/(.*) (?:in|of) (.*)/);if(t){var e=t[1].match(/\((.*),(.*)\)/);e?(this.iterator=e[1].trim(),this.alias=e[2].trim()):this.alias=t[1].trim(),this.expression=t[2]}if(this.alias){this.id="__v-for__"+ ++Pr;var n=this.el.tagName;this.isOption=("OPTION"===n||"OPTGROUP"===n)&&"SELECT"===this.el.parentNode.tagName,this.start=rt("v-for-start"),this.end=rt("v-for-end"),J(this.el,this.end),W(this.start,this.end),this.cache=Object.create(null),this.factory=new ce(this.vm,this.el)}},update:function(t){this.diff(t),this.updateRef(),this.updateModel()},diff:function(t){var e,n,i,o,s,a,h=t[0],c=this.fromObject=y(h)&&r(h,"$key")&&r(h,"$value"),l=this.params.trackBy,u=this.frags,f=this.frags=new Array(t.length),p=this.alias,d=this.iterator,v=this.start,m=this.end,g=L(v),_=!u;for(e=0,n=t.length;n>e;e++)h=t[e],o=c?h.$key:null,s=c?h.$value:h,a=!y(s),i=!_&&this.getCachedFrag(s,e,o),i?(i.reused=!0,i.scope.$index=e,o&&(i.scope.$key=o),d&&(i.scope[d]=null!==o?o:e),(l||c||a)&&(i.scope[p]=s)):(i=this.create(s,p,e,o),i.fresh=!_),f[e]=i,_&&i.before(m);if(!_){var b=0,w=u.length-f.length;for(this.vm._vForRemoving=!0,e=0,n=u.length;n>e;e++)i=u[e],i.reused||(this.deleteCachedFrag(i),this.remove(i,b++,w,g));this.vm._vForRemoving=!1,b&&(this.vm._watchers=this.vm._watchers.filter(function(t){return t.active}));var C,$,k,x=0;for(e=0,n=f.length;n>e;e++)i=f[e],C=f[e-1],$=C?C.staggerCb?C.staggerAnchor:C.end||C.node:v,i.reused&&!i.staggerCb?(k=le(i,v,this.id),k===C||k&&le(k,v,this.id)===C||this.move(i,$)):this.insert(i,x++,$,g),i.reused=i.fresh=!1}},create:function(t,e,n,i){var r=this._host,o=this._scope||this.vm,s=Object.create(o);s.$refs=Object.create(o.$refs),s.$els=Object.create(o.$els),s.$parent=o,s.$forContext=this,vt(s,e,t,!0),vt(s,"$index",n),i?vt(s,"$key",i):s.$key&&b(s,"$key",null),this.iterator&&vt(s,this.iterator,null!==i?i:n);var a=this.factory.create(r,s,this._frag);return a.forId=this.id,this.cacheFrag(t,a,n,i),a},updateRef:function(){var t=this.descriptor.ref;if(t){var e,n=(this._scope||this.vm).$refs;this.fromObject?(e={},this.frags.forEach(function(t){e[t.scope.$key]=ue(t)})):e=this.frags.map(ue),n[t]=e}},updateModel:function(){if(this.isOption){var t=this.start.parentNode,e=t&&t.__v_model;e&&e.forceUpdate()}},insert:function(t,e,n,i){t.staggerCb&&(t.staggerCb.cancel(),t.staggerCb=null);var r=this.getStagger(t,e,null,"enter");if(i&&r){var o=t.staggerAnchor;o||(o=t.staggerAnchor=rt("stagger-anchor"),o.__v_frag=t),U(o,n);var s=t.staggerCb=$(function(){t.staggerCb=null,t.before(o),q(o)});setTimeout(s,r)}else t.before(n.nextSibling)},remove:function(t,e,n,i){if(t.staggerCb)return t.staggerCb.cancel(),void(t.staggerCb=null);var r=this.getStagger(t,e,n,"leave");if(i&&r){var o=t.staggerCb=$(function(){t.staggerCb=null,t.remove()});setTimeout(o,r)}else t.remove()},move:function(t,e){e.nextSibling||this.end.parentNode.appendChild(this.end),t.before(e.nextSibling,!1)},cacheFrag:function(t,e,n,i){var o,s=this.params.trackBy,a=this.cache,h=!y(t);i||s||h?(o=s?"$index"===s?n:t[s]:i||t,a[o]||(a[o]=e)):(o=this.id,r(t,o)?null===t[o]&&(t[o]=e):b(t,o,e)),e.raw=t},getCachedFrag:function(t,e,n){var i,r=this.params.trackBy,o=!y(t);if(n||r||o){var s=r?"$index"===r?e:t[r]:n||t;i=this.cache[s]}else i=t[this.id];return i&&(i.reused||i.fresh),i},deleteCachedFrag:function(t){var e=t.raw,n=this.params.trackBy,i=t.scope,o=i.$index,s=r(i,"$key")&&i.$key,a=!y(e);if(n||s||a){var h=n?"$index"===n?o:e[n]:s||e;this.cache[h]=null}else e[this.id]=null,t.raw=null},getStagger:function(t,e,n,i){i+="Stagger";var r=t.node.__v_trans,o=r&&r.hooks,s=o&&(o[i]||o.stagger);return s?s.call(t,e,n):e*parseInt(this.params[i]||this.params.stagger,10)},_preProcess:function(t){return this.rawValue=t,t},_postProcess:function(t){if(Tn(t))return t;if(_(t)){for(var e,n=Object.keys(t),i=n.length,r=new Array(i);i--;)e=n[i],r[i]={$key:e,$value:t[e]};return r}return"number"!=typeof t||isNaN(t)||(t=fe(t)),t||[]},unbind:function(){if(this.descriptor.ref&&((this._scope||this.vm).$refs[this.descriptor.ref]=null),this.frags)for(var t,e=this.frags.length;e--;)t=this.frags[e],this.deleteCachedFrag(t),t.destroy()}},Fr={priority:Nr,bind:function(){var t=this.el;if(t.__vue__)this.invalid=!0;else{var e=t.nextElementSibling;e&&null!==I(e,"v-else")&&(q(e),this.elseEl=e),this.anchor=rt("v-if"),J(t,this.anchor)}},update:function(t){this.invalid||(t?this.frag||this.insert():this.remove())},insert:function(){this.elseFrag&&(this.elseFrag.remove(),this.elseFrag=null),this.factory||(this.factory=new ce(this.vm,this.el)),this.frag=this.factory.create(this._host,this._scope,this._frag),this.frag.before(this.anchor)},remove:function(){this.frag&&(this.frag.remove(),this.frag=null),this.elseEl&&!this.elseFrag&&(this.elseFactory||(this.elseFactory=new ce(this.elseEl._context||this.vm,this.elseEl)),this.elseFrag=this.elseFactory.create(this._host,this._scope,this._frag),this.elseFrag.before(this.anchor))},unbind:function(){this.frag&&this.frag.destroy(),this.elseFrag&&this.elseFrag.destroy()}},Vr={bind:function(){var t=this.el.nextElementSibling;t&&null!==I(t,"v-else")&&(this.elseEl=t)},update:function(t){this.apply(this.el,t),this.elseEl&&this.apply(this.elseEl,!t)},apply:function(t,e){function n(){t.style.display=e?"":"none"}L(t)?H(t,e?1:-1,n,this.vm):n()}},Hr={bind:function(){var t=this,e=this.el,n="range"===e.type,i=this.params.lazy,r=this.params.number,o=this.params.debounce,s=!1;if(Fn||n||(this.on("compositionstart",function(){s=!0}),this.on("compositionend",function(){s=!1,i||t.listener()})),this.focused=!1,n||i||(this.on("focus",function(){t.focused=!0}),this.on("blur",function(){t.focused=!1,t._frag&&!t._frag.inserted||t.rawListener()})),this.listener=this.rawListener=function(){if(!s&&t._bound){var i=r||n?h(e.value):e.value;t.set(i),zn(function(){t._bound&&!t.focused&&t.update(t._watcher.value)})}},o&&(this.listener=w(this.listener,o)),this.hasjQuery="function"==typeof jQuery,this.hasjQuery){var a=jQuery.fn.on?"on":"bind";jQuery(e)[a]("change",this.rawListener),i||jQuery(e)[a]("input",this.listener)}else this.on("change",this.rawListener),i||this.on("input",this.listener);!i&&Dn&&(this.on("cut",function(){zn(t.listener)}),this.on("keyup",function(e){46!==e.keyCode&&8!==e.keyCode||t.listener()})),(e.hasAttribute("value")||"TEXTAREA"===e.tagName&&e.value.trim())&&(this.afterBind=this.listener)},update:function(t){this.el.value=a(t)},unbind:function(){var t=this.el;if(this.hasjQuery){var e=jQuery.fn.off?"off":"unbind";jQuery(t)[e]("change",this.listener),jQuery(t)[e]("input",this.listener)}}},Mr={bind:function(){var t=this,e=this.el;this.getValue=function(){if(e.hasOwnProperty("_value"))return e._value;var n=e.value;return t.params.number&&(n=h(n)),n},this.listener=function(){t.set(t.getValue())},this.on("change",this.listener),e.hasAttribute("checked")&&(this.afterBind=this.listener)},update:function(t){this.el.checked=k(t,this.getValue())}},Lr={bind:function(){var t=this,e=this.el;this.forceUpdate=function(){t._watcher&&t.update(t._watcher.get())};var n=this.multiple=e.hasAttribute("multiple");this.listener=function(){var i=pe(e,n);i=t.params.number?Tn(i)?i.map(h):h(i):i,t.set(i)},this.on("change",this.listener);var i=pe(e,n,!0);(n&&i.length||!n&&null!==i)&&(this.afterBind=this.listener),this.vm.$on("hook:attached",this.forceUpdate)},update:function(t){var e=this.el;e.selectedIndex=-1;for(var n,i,r=this.multiple&&Tn(t),o=e.options,s=o.length;s--;)n=o[s],i=n.hasOwnProperty("_value")?n._value:n.value,n.selected=r?de(t,i)>-1:k(t,i)},unbind:function(){this.vm.$off("hook:attached",this.forceUpdate)}},Ir={bind:function(){function t(){var t=n.checked;return t&&n.hasOwnProperty("_trueValue")?n._trueValue:!t&&n.hasOwnProperty("_falseValue")?n._falseValue:t}var e=this,n=this.el;this.getValue=function(){return n.hasOwnProperty("_value")?n._value:e.params.number?h(n.value):n.value},this.listener=function(){var i=e._watcher.value;if(Tn(i)){var r=e.getValue();n.checked?C(i,r)<0&&i.push(r):i.$remove(r)}else e.set(t())},this.on("change",this.listener),n.hasAttribute("checked")&&(this.afterBind=this.listener)},update:function(t){var e=this.el;Tn(t)?e.checked=C(t,this.getValue())>-1:e.hasOwnProperty("_trueValue")?e.checked=k(t,e._trueValue):e.checked=!!t}},Br={text:Hr,radio:Mr,select:Lr,checkbox:Ir},zr={priority:xr,twoWay:!0,handlers:Br,params:["lazy","number","debounce"],bind:function(){this.checkFilters(),this.hasRead&&!this.hasWrite;var t,e=this.el,n=e.tagName;if("INPUT"===n)t=Br[e.type]||Br.text;else if("SELECT"===n)t=Br.select;else{if("TEXTAREA"!==n)return;t=Br.text}e.__v_model=this,t.bind.call(this),this.update=t.update,this._unbind=t.unbind},checkFilters:function(){var t=this.filters;if(t)for(var e=t.length;e--;){var n=Rt(this.vm.$options,"filters",t[e].name);("function"==typeof n||n.read)&&(this.hasRead=!0),n.write&&(this.hasWrite=!0)}},unbind:function(){this.el.__v_model=null,this._unbind&&this._unbind()}},Wr={esc:27,tab:9,enter:13,space:32,"delete":[8,46],up:38,left:37,right:39,down:40},Ur={priority:kr,acceptStatement:!0,keyCodes:Wr,bind:function(){if("IFRAME"===this.el.tagName&&"load"!==this.arg){var t=this;this.iframeBind=function(){K(t.el.contentWindow,t.arg,t.handler,t.modifiers.capture)},this.on("load",this.iframeBind)}},update:function(t){if(this.descriptor.raw||(t=function(){}),"function"==typeof t){this.modifiers.stop&&(t=me(t)),this.modifiers.prevent&&(t=ge(t)),this.modifiers.self&&(t=ye(t));var e=Object.keys(this.modifiers).filter(function(t){return"stop"!==t&&"prevent"!==t&&"self"!==t});e.length&&(t=ve(t,e)),this.reset(),this.handler=t,this.iframeBind?this.iframeBind():K(this.el,this.arg,this.handler,this.modifiers.capture)}},reset:function(){var t=this.iframeBind?this.el.contentWindow:this.el;this.handler&&G(t,this.arg,this.handler)},unbind:function(){this.reset()}},qr=["-webkit-","-moz-","-ms-"],Qr=["Webkit","Moz","ms"],Jr=/!important;?$/,Kr=Object.create(null),Gr=null,Yr={deep:!0,update:function(t){"string"==typeof t?this.el.style.cssText=t:Tn(t)?this.handleObject(t.reduce(g,{})):this.handleObject(t||{})},handleObject:function(t){var e,n,i=this.cache||(this.cache={});for(e in i)e in t||(this.handleSingle(e,null),delete i[e]);for(e in t)n=t[e],n!==i[e]&&(i[e]=n,this.handleSingle(e,n))},handleSingle:function(t,e){if(t=_e(t))if(null!=e&&(e+=""),e){var n=Jr.test(e)?"important":"";n&&(e=e.replace(Jr,"").trim()),this.el.style.setProperty(t,e,n)}else this.el.style.removeProperty(t)}},Xr="http://www.w3.org/1999/xlink",Zr=/^xlink:/,to=/^v-|^:|^@|^(?:is|transition|transition-mode|debounce|track-by|stagger|enter-stagger|leave-stagger)$/,eo=/^(?:value|checked|selected|muted)$/,no=/^(?:draggable|contenteditable|spellcheck)$/,io={value:"_value","true-value":"_trueValue","false-value":"_falseValue"},ro={priority:Ar,bind:function(){var t=this.arg,e=this.el.tagName;t||(this.deep=!0);var n=this.descriptor,i=n.interp;if(i){n.hasOneTime&&(this.expression=N(i,this._scope||this.vm)),(to.test(t)||"name"===t&&("PARTIAL"===e||"SLOT"===e))&&(this.el.removeAttribute(t),this.invalid=!0)}},update:function(t){if(!this.invalid){var e=this.arg;this.arg?this.handleSingle(e,t):this.handleObject(t||{})}},handleObject:Yr.handleObject,handleSingle:function(t,e){var n=this.el,i=this.descriptor.interp;this.modifiers.camel&&(t=u(t)),!i&&eo.test(t)&&t in n&&(n[t]="value"===t&&null==e?"":e);var r=io[t];if(!i&&r){n[r]=e;var o=n.__v_model;o&&o.listener()}return"value"===t&&"TEXTAREA"===n.tagName?void n.removeAttribute(t):void(no.test(t)?n.setAttribute(t,e?"true":"false"):null!=e&&e!==!1?"class"===t?(n.__v_trans&&(e+=" "+n.__v_trans.id+"-transition"),Y(n,e)):Zr.test(t)?n.setAttributeNS(Xr,t,e===!0?"":e):n.setAttribute(t,e===!0?"":e):n.removeAttribute(t))}},oo={priority:Rr,bind:function(){if(this.arg){var t=this.id=u(this.arg),e=(this._scope||this.vm).$els;r(e,t)?e[t]=this.el:vt(e,t,this.el)}},unbind:function(){var t=(this._scope||this.vm).$els;t[this.id]===this.el&&(t[this.id]=null)}},so={bind:function(){}},ao={bind:function(){var t=this.el;this.vm.$once("pre-hook:compiled",function(){t.removeAttribute("v-cloak")})}},ho={text:pr,html:Cr,"for":Dr,"if":Fr,show:Vr,model:zr,on:Ur,bind:ro,el:oo,ref:so,cloak:ao},co={deep:!0,update:function(t){t&&"string"==typeof t?this.handleObject(we(t)):_(t)?this.handleObject(t):Tn(t)?this.handleArray(t):this.cleanup()},handleObject:function(t){this.cleanup(t);for(var e=this.prevKeys=Object.keys(t),n=0,i=e.length;i>n;n++){var r=e[n];t[r]?X(this.el,r):Z(this.el,r)}},handleArray:function(t){this.cleanup(t);for(var e=0,n=t.length;n>e;e++)t[e]&&X(this.el,t[e]);this.prevKeys=t.slice()},cleanup:function(t){if(this.prevKeys)for(var e=this.prevKeys.length;e--;){var n=this.prevKeys[e];!n||t&&Ce(t,n)||Z(this.el,n)}}},lo={priority:jr,params:["keep-alive","transition-mode","inline-template"],bind:function(){this.el.__vue__||(this.keepAlive=this.params.keepAlive,this.keepAlive&&(this.cache={}),this.params.inlineTemplate&&(this.inlineTemplate=tt(this.el,!0)),this.pendingComponentCb=this.Component=null,this.pendingRemovals=0,this.pendingRemovalCb=null,this.anchor=rt("v-component"),J(this.el,this.anchor),this.el.removeAttribute("is"),this.descriptor.ref&&this.el.removeAttribute("v-ref:"+p(this.descriptor.ref)),this.literal&&this.setComponent(this.expression))},update:function(t){this.literal||this.setComponent(t)},setComponent:function(t,e){if(this.invalidatePending(),t){var n=this;this.resolveComponent(t,function(){n.mountComponent(e)})}else this.unbuild(!0),this.remove(this.childVM,e),this.childVM=null},resolveComponent:function(t,e){var n=this;this.pendingComponentCb=$(function(i){n.ComponentName=i.options.name||t,n.Component=i,e()}),this.vm._resolveComponent(t,this.pendingComponentCb)},mountComponent:function(t){this.unbuild(!0);var e=this,n=this.Component.options.activate,i=this.getCached(),r=this.build(); 8 | n&&!i?(this.waitingFor=r,$e(n,r,function(){e.waitingFor===r&&(e.waitingFor=null,e.transition(r,t))})):(i&&r._updateRef(),this.transition(r,t))},invalidatePending:function(){this.pendingComponentCb&&(this.pendingComponentCb.cancel(),this.pendingComponentCb=null)},build:function(t){var e=this.getCached();if(e)return e;if(this.Component){var n={name:this.ComponentName,el:te(this.el),template:this.inlineTemplate,parent:this._host||this.vm,_linkerCachable:!this.inlineTemplate,_ref:this.descriptor.ref,_asComponent:!0,_isRouterView:this._isRouterView,_context:this.vm,_scope:this._scope,_frag:this._frag};t&&g(n,t);var i=new this.Component(n);return this.keepAlive&&(this.cache[this.Component.cid]=i),i}},getCached:function(){return this.keepAlive&&this.cache[this.Component.cid]},unbuild:function(t){this.waitingFor&&(this.waitingFor.$destroy(),this.waitingFor=null);var e=this.childVM;return!e||this.keepAlive?void(e&&(e._inactive=!0,e._updateRef(!0))):void e.$destroy(!1,t)},remove:function(t,e){var n=this.keepAlive;if(t){this.pendingRemovals++,this.pendingRemovalCb=e;var i=this;t.$remove(function(){i.pendingRemovals--,n||t._cleanup(),!i.pendingRemovals&&i.pendingRemovalCb&&(i.pendingRemovalCb(),i.pendingRemovalCb=null)})}else e&&e()},transition:function(t,e){var n=this,i=this.childVM;switch(i&&(i._inactive=!0),t._inactive=!1,this.childVM=t,n.params.transitionMode){case"in-out":t.$before(n.anchor,function(){n.remove(i,e)});break;case"out-in":n.remove(i,function(){t.$before(n.anchor,e)});break;default:n.remove(i),t.$before(n.anchor,e)}},unbind:function(){if(this.invalidatePending(),this.unbuild(),this.cache){for(var t in this.cache)this.cache[t].$destroy();this.cache=null}}},uo=vi._propBindingModes,fo={bind:function(){var t=this.vm,e=t._context,n=this.descriptor.prop,i=n.path,r=n.parentPath,o=n.mode===uo.TWO_WAY,s=this.parentWatcher=new Kt(e,r,function(e){e=wt(n,e),bt(n,e)&&(t[i]=e)},{twoWay:o,filters:n.filters,scope:this._scope});if(yt(t,n,s.value),o){var a=this;t.$once("pre-hook:created",function(){a.childWatcher=new Kt(t,i,function(t){s.set(t)},{sync:!0})})}},unbind:function(){this.parentWatcher.teardown(),this.childWatcher&&this.childWatcher.teardown()}},po=[],vo=!1,mo="transition",go="animation",yo=Vn+"Duration",_o=Mn+"Duration",bo=Ae.prototype;bo.enter=function(t,e){this.cancelPending(),this.callHook("beforeEnter"),this.cb=e,X(this.el,this.enterClass),t(),this.entered=!1,this.callHookWithCb("enter"),this.entered||(this.cancel=this.hooks&&this.hooks.enterCancelled,ke(this.enterNextTick))},bo.enterNextTick=function(){this.justEntered=!0;var t=this;setTimeout(function(){t.justEntered=!1},17);var e=this.enterDone,n=this.getCssTransitionType(this.enterClass);this.pendingJsCb?n===mo&&Z(this.el,this.enterClass):n===mo?(Z(this.el,this.enterClass),this.setupCssCb(Hn,e)):n===go?this.setupCssCb(Ln,e):e()},bo.enterDone=function(){this.entered=!0,this.cancel=this.pendingJsCb=null,Z(this.el,this.enterClass),this.callHook("afterEnter"),this.cb&&this.cb()},bo.leave=function(t,e){this.cancelPending(),this.callHook("beforeLeave"),this.op=t,this.cb=e,X(this.el,this.leaveClass),this.left=!1,this.callHookWithCb("leave"),this.left||(this.cancel=this.hooks&&this.hooks.leaveCancelled,this.op&&!this.pendingJsCb&&(this.justEntered?this.leaveDone():ke(this.leaveNextTick)))},bo.leaveNextTick=function(){var t=this.getCssTransitionType(this.leaveClass);if(t){var e=t===mo?Hn:Ln;this.setupCssCb(e,this.leaveDone)}else this.leaveDone()},bo.leaveDone=function(){this.left=!0,this.cancel=this.pendingJsCb=null,this.op(),Z(this.el,this.leaveClass),this.callHook("afterLeave"),this.cb&&this.cb(),this.op=null},bo.cancelPending=function(){this.op=this.cb=null;var t=!1;this.pendingCssCb&&(t=!0,G(this.el,this.pendingCssEvent,this.pendingCssCb),this.pendingCssEvent=this.pendingCssCb=null),this.pendingJsCb&&(t=!0,this.pendingJsCb.cancel(),this.pendingJsCb=null),t&&(Z(this.el,this.enterClass),Z(this.el,this.leaveClass)),this.cancel&&(this.cancel.call(this.vm,this.el),this.cancel=null)},bo.callHook=function(t){this.hooks&&this.hooks[t]&&this.hooks[t].call(this.vm,this.el)},bo.callHookWithCb=function(t){var e=this.hooks&&this.hooks[t];e&&(e.length>1&&(this.pendingJsCb=$(this[t+"Done"])),e.call(this.vm,this.el,this.pendingJsCb))},bo.getCssTransitionType=function(t){if(!(!Hn||document.hidden||this.hooks&&this.hooks.css===!1||Oe(this.el))){var e=this.type||this.typeCache[t];if(e)return e;var n=this.el.style,i=window.getComputedStyle(this.el),r=n[yo]||i[yo];if(r&&"0s"!==r)e=mo;else{var o=n[_o]||i[_o];o&&"0s"!==o&&(e=go)}return e&&(this.typeCache[t]=e),e}},bo.setupCssCb=function(t,e){this.pendingCssEvent=t;var n=this,i=this.el,r=this.pendingCssCb=function(o){o.target===i&&(G(i,t,r),n.pendingCssEvent=n.pendingCssCb=null,!n.pendingJsCb&&e&&e())};K(i,t,r)};var wo={priority:Or,update:function(t,e){var n=this.el,i=Rt(this.vm.$options,"transitions",t);t=t||"v",n.__v_trans=new Ae(n,t,i,this.vm),e&&Z(n,e+"-transition"),X(n,t+"-transition")}},Co={style:Yr,"class":co,component:lo,prop:fo,transition:wo},$o=vi._propBindingModes,ko={},xo=/^[$_a-zA-Z]+[\w$]*$/,Ao=/^v-bind:|^:/,Oo=/^v-on:|^@/,Ro=/^v-([^:]+)(?:$|:(.*)$)/,jo=/\.[^\.]+/g,To=/^(v-bind:|:)?transition$/,Eo=["for","if"],No=1e3;Je.terminal=!0;var So=/[^\w\-:\.]/,Po=Object.freeze({compile:Te,compileAndLinkProps:De,compileRoot:Fe,terminalDirectives:Eo,transclude:tn,resolveSlots:on}),Do=/^v-on:|^@/;ln.prototype._bind=function(){var t=this.name,e=this.descriptor;if(("cloak"!==t||this.vm._isCompiled)&&this.el&&this.el.removeAttribute){var n=e.attr||"v-"+t;this.el.removeAttribute(n)}var i=e.def;if("function"==typeof i?this.update=i:g(this,i),this._setupParams(),this.bind&&this.bind(),this._bound=!0,this.literal)this.update&&this.update(e.raw);else if((this.expression||this.modifiers)&&(this.update||this.twoWay)&&!this._checkStatement()){var r=this;this.update?this._update=function(t,e){r._locked||r.update(t,e)}:this._update=cn;var o=this._preProcess?v(this._preProcess,this):null,s=this._postProcess?v(this._postProcess,this):null,a=this._watcher=new Kt(this.vm,this.expression,this._update,{filters:this.filters,twoWay:this.twoWay,deep:this.deep,preProcess:o,postProcess:s,scope:this._scope});this.afterBind?this.afterBind():this.update&&this.update(a.value)}},ln.prototype._setupParams=function(){if(this.params){var t=this.params;this.params=Object.create(null);for(var e,n,i,r=t.length;r--;)e=t[r],i=u(e),n=B(this.el,e),null!=n?this._setupParamWatcher(i,n):(n=I(this.el,e),null!=n&&(this.params[i]=""===n?!0:n))}},ln.prototype._setupParamWatcher=function(t,e){var n=this,i=!1,r=(this._scope||this.vm).$watch(e,function(e,r){if(n.params[t]=e,i){var o=n.paramWatchers&&n.paramWatchers[t];o&&o.call(n,e,r)}else i=!0},{immediate:!0,user:!1});(this._paramUnwatchFns||(this._paramUnwatchFns=[])).push(r)},ln.prototype._checkStatement=function(){var t=this.expression;if(t&&this.acceptStatement&&!Wt(t)){var e=zt(t).get,n=this._scope||this.vm,i=function(t){n.$event=t,e.call(n,n),n.$event=null};return this.filters&&(i=n._applyFilters(i,null,this.filters)),this.update(i),!0}},ln.prototype.set=function(t){this.twoWay&&this._withLock(function(){this._watcher.set(t)})},ln.prototype._withLock=function(t){var e=this;e._locked=!0,t.call(e),zn(function(){e._locked=!1})},ln.prototype.on=function(t,e,n){K(this.el,t,e,n),(this._listeners||(this._listeners=[])).push([t,e])},ln.prototype._teardown=function(){if(this._bound){this._bound=!1,this.unbind&&this.unbind(),this._watcher&&this._watcher.teardown();var t,e=this._listeners;if(e)for(t=e.length;t--;)G(this.el,e[t][0],e[t][1]);var n=this._paramUnwatchFns;if(n)for(t=n.length;t--;)n[t]();this.vm=this.el=this._watcher=this._listeners=null}};var Fo=/[^|]\|[^|]/;Tt(gn),an(gn),hn(gn),un(gn),fn(gn),pn(gn),dn(gn),vn(gn),mn(gn);var Vo={priority:Sr,params:["name"],bind:function(){var t=this.params.name||"default",e=this.vm._slotContents&&this.vm._slotContents[t];e&&e.hasChildNodes()?this.compile(e.cloneNode(!0),this.vm._context,this.vm):this.fallback()},compile:function(t,e,n){if(t&&e){if(this.el.hasChildNodes()&&1===t.childNodes.length&&1===t.childNodes[0].nodeType&&t.childNodes[0].hasAttribute("v-if")){var i=document.createElement("template");i.setAttribute("v-else",""),i.innerHTML=this.el.innerHTML,i._context=this.vm,t.appendChild(i)}var r=n?n._scope:this._scope;this.unlink=e.$compile(t,n,r,this._frag)}t?J(this.el,t):q(this.el)},fallback:function(){this.compile(tt(this.el,!0),this.vm)},unbind:function(){this.unlink&&this.unlink()}},Ho={priority:Tr,params:["name"],paramWatchers:{name:function(t){Fr.remove.call(this),t&&this.insert(t)}},bind:function(){this.anchor=rt("v-partial"),J(this.el,this.anchor),this.insert(this.params.name)},insert:function(t){var e=Rt(this.vm.$options,"partials",t);e&&(this.factory=new ce(this.vm,e),Fr.insert.call(this))},unbind:function(){this.frag&&this.frag.destroy()}},Mo={slot:Vo,partial:Ho},Lo=Dr._postProcess,Io=/(\d{3})(?=\d)/g,Bo={orderBy:bn,filterBy:_n,limitBy:yn,json:{read:function(t,e){return"string"==typeof t?t:JSON.stringify(t,null,Number(e)||2)},write:function(t){try{return JSON.parse(t)}catch(e){return t}}},capitalize:function(t){return t||0===t?(t=t.toString(),t.charAt(0).toUpperCase()+t.slice(1)):""},uppercase:function(t){return t||0===t?t.toString().toUpperCase():""},lowercase:function(t){return t||0===t?t.toString().toLowerCase():""},currency:function(t,e){if(t=parseFloat(t),!isFinite(t)||!t&&0!==t)return"";e=null!=e?e:"$";var n=Math.abs(t).toFixed(2),i=n.slice(0,-3),r=i.length%3,o=r>0?i.slice(0,r)+(i.length>3?",":""):"",s=n.slice(-3),a=0>t?"-":"";return a+e+o+i.slice(r).replace(Io,"$1,")+s},pluralize:function(t){var e=m(arguments,1);return e.length>1?e[t%10-1]||e[e.length-1]:e[0]+(1===t?"":"s")},debounce:function(t,e){return t?(e||(e=300),w(t,e)):void 0}};Cn(gn),gn.version="1.0.18",vi.devtools&&Sn&&Sn.emit("init",gn),t.exports=gn}).call(e,function(){return this}())},function(t,e,n){/*! 9 | * vue-router v0.7.11 10 | * (c) 2016 Evan You 11 | * Released under the MIT License. 12 | */ 13 | !function(e,n){t.exports=n()}(this,function(){"use strict";function t(t,e,n){this.path=t,this.matcher=e,this.delegate=n}function e(t){this.routes={},this.children={},this.target=t}function n(e,i,r){return function(o,s){var a=e+o;return s?void s(n(a,i,r)):new t(e+o,i,r)}}function i(t,e,n){for(var i=0,r=0,o=t.length;o>r;r++)i+=t[r].path.length;e=e.substr(i);var s={path:e,handler:n};t.push(s)}function r(t,e,n,o){var s=e.routes;for(var a in s)if(s.hasOwnProperty(a)){var h=t.slice();i(h,a,s[a]),e.children[a]?r(h,e.children[a],n,o):n.call(o,h)}}function o(t,i){var o=new e;t(n("",o,this.delegate)),r([],o,function(t){i?i(this,t):this.add(t)},this)}function s(t){return"[object Array]"===Object.prototype.toString.call(t)}function a(t){this.string=t}function h(t){this.name=t}function c(t){this.name=t}function l(){}function u(t,e,n){"/"===t.charAt(0)&&(t=t.substr(1));var i=t.split("/"),r=[];n.val="";for(var o=0,s=i.length;s>o;o++){var u,f=i[o];(u=f.match(/^:([^\/]+)$/))?(r.push(new h(u[1])),e.push(u[1]),n.val+="3"):(u=f.match(/^\*([^\/]+)$/))?(r.push(new c(u[1])),n.val+="2",e.push(u[1])):""===f?(r.push(new l),n.val+="1"):(r.push(new a(f)),n.val+="4")}return n.val=+n.val,r}function f(t){this.charSpec=t,this.nextStates=[]}function p(t){return t.sort(function(t,e){return e.specificity.val-t.specificity.val})}function d(t,e){for(var n=[],i=0,r=t.length;r>i;i++){var o=t[i];n=n.concat(o.match(e))}return n}function v(t){this.queryParams=t||{}}function m(t,e,n){for(var i=t.handlers,r=t.regex,o=e.match(r),s=1,a=new v(n),h=0,c=i.length;c>h;h++){for(var l=i[h],u=l.names,f={},p=0,d=u.length;d>p;p++)f[u[p]]=o[s++];a.push({handler:l.handler,params:f,isDynamic:!!u.length})}return a}function g(t,e){return e.eachChar(function(e){t=t.put(e)}),t}function y(t){return t=t.replace(/\+/gm,"%20"),decodeURIComponent(t)}function _(t){window.console&&(console.warn("[vue-router] "+t),q.Vue&&!q.Vue.config.debug||console.warn(new Error("warning stack trace:").stack))}function b(t,e,n){var i=t.match(/(\?.*)$/);if(i&&(i=i[1],t=t.slice(0,-i.length)),"?"===e.charAt(0))return t+e;var r=t.split("/");n&&r[r.length-1]||r.pop();for(var o=e.replace(/^\//,"").split("/"),s=0;s can only be used inside a router-enabled app.");this._isDynamicLiteral=!0,n.bind.call(this);for(var e=void 0,i=this.vm;i;){if(i._routerView){e=i._routerView;break}i=i.$parent}if(e)this.parentView=e,e.childView=this;else{var r=t.router;r._rootView=this}var o=t.router._currentTransition;if(!e&&o.done||e&&e.activated){var s=e?e.depth+1:0;j(this,o,s)}},unbind:function(){this.parentView&&(this.parentView.childView=null),n.unbind.call(this)}}),t.elementDirective("router-view",i)}function H(t){function e(t){return t.protocol===location.protocol&&t.hostname===location.hostname&&t.port===location.port}var n=t.util,i=n.bind,r=n.isObject,o=n.addClass,s=n.removeClass;t.directive("link-active",{priority:1001,bind:function(){this.el.__v_link_active=!0}}),t.directive("link",{priority:1e3,bind:function(){var t=this.vm;if(!t.$route)return void _("v-link can only be used inside a router-enabled app.");this.router=t.$route.router,this.unwatch=t.$watch("$route",i(this.onRouteUpdate,this)),this.activeEl=this.el;for(var e=this.el.parentNode;e;){if(e.__v_link_active){this.activeEl=e;break}e=e.parentNode}"A"===this.el.tagName&&"_blank"===this.el.getAttribute("target")||(this.handler=i(this.onClick,this),this.el.addEventListener("click",this.handler))},update:function(t){this.target=t,r(t)&&(this.append=t.append,this.exact=t.exact,this.prevActiveClass=this.activeClass,this.activeClass=t.activeClass),this.onRouteUpdate(this.vm.$route)},onClick:function(t){if(!(t.metaKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||0!==t.button)){var n=this.target;if(n)t.preventDefault(),this.router.go(n);else{for(var i=t.target;"A"!==i.tagName&&i!==this.el;)i=i.parentNode;"A"===i.tagName&&e(i)&&(t.preventDefault(),this.router.go({path:i.pathname,replace:n&&n.replace,append:n&&n.append}))}}},onRouteUpdate:function(t){var e=this.router._stringifyPath(this.target);this.path!==e&&(this.path=e,this.updateActiveMatch(),this.updateHref()),this.updateClasses(t.path)},updateActiveMatch:function(){this.activeRE=this.path&&!this.exact?new RegExp("^"+this.path.replace(/\/$/,"").replace(it,"").replace(nt,"\\$&")+"(\\/|$)"):null},updateHref:function(){if("A"===this.el.tagName){var t=this.path,e=this.router,n="/"===t.charAt(0),i=t&&("hash"===e.mode||n)?e.history.formatPath(t,this.append):t;i?this.el.href=i:this.el.removeAttribute("href")}},updateClasses:function(t){var e=this.activeEl,n=this.activeClass||this.router._linkActiveClass;this.prevActiveClass!==n&&s(e,this.prevActiveClass);var i=this.path.replace(it,"");t=t.replace(it,""),this.exact?i===t||"/"!==i.charAt(i.length-1)&&i===t.replace(et,"")?o(e,n):s(e,n):this.activeRE&&this.activeRE.test(t)?o(e,n):s(e,n)},unbind:function(){this.el.removeEventListener("click",this.handler),this.unwatch&&this.unwatch()}})}function M(t,e){var n=e.component;ot.util.isPlainObject(n)&&(n=e.component=ot.extend(n)),"function"!=typeof n&&(e.component=null,_('invalid component for route "'+t+'".'))}var L={};L.classCallCheck=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.prototype={to:function(t,e){var n=this.delegate;if(n&&n.willAddRoute&&(t=n.willAddRoute(this.matcher.target,t)),this.matcher.add(this.path,t),e){if(0===e.length)throw new Error("You must have an argument in the function passed to `to`");this.matcher.addChild(this.path,t,e,this.delegate)}return this}},e.prototype={add:function(t,e){this.routes[t]=e},addChild:function(t,i,r,o){var s=new e(i);this.children[t]=s;var a=n(t,s,o);o&&o.contextEntered&&o.contextEntered(i,a),r(a)}};var I=["/",".","*","+","?","|","(",")","[","]","{","}","\\"],B=new RegExp("(\\"+I.join("|\\")+")","g");a.prototype={eachChar:function(t){for(var e,n=this.string,i=0,r=n.length;r>i;i++)e=n.charAt(i),t({validChars:e})},regex:function(){return this.string.replace(B,"\\$1")},generate:function(){return this.string}},h.prototype={eachChar:function(t){t({invalidChars:"/",repeat:!0})},regex:function(){return"([^/]+)"},generate:function(t){var e=t[this.name];return null==e?":"+this.name:e}},c.prototype={eachChar:function(t){t({invalidChars:"",repeat:!0})},regex:function(){return"(.+)"},generate:function(t){var e=t[this.name];return null==e?":"+this.name:e}},l.prototype={eachChar:function(){},regex:function(){return""},generate:function(){return""}},f.prototype={get:function(t){for(var e=this.nextStates,n=0,i=e.length;i>n;n++){var r=e[n],o=r.charSpec.validChars===t.validChars;if(o=o&&r.charSpec.invalidChars===t.invalidChars)return r}},put:function(t){var e;return(e=this.get(t))?e:(e=new f(t),this.nextStates.push(e),t.repeat&&e.nextStates.push(e),e)},match:function(t){for(var e,n,i,r=this.nextStates,o=[],s=0,a=r.length;a>s;s++)e=r[s],n=e.charSpec,"undefined"!=typeof(i=n.validChars)?-1!==i.indexOf(t)&&o.push(e):"undefined"!=typeof(i=n.invalidChars)&&-1===i.indexOf(t)&&o.push(e);return o}};var z=Object.create||function(t){function e(){}return e.prototype=t,new e};v.prototype=z({splice:Array.prototype.splice,slice:Array.prototype.slice,push:Array.prototype.push,length:0,queryParams:null});var W=function(){this.rootState=new f,this.names={}};W.prototype={add:function(t,e){for(var n,i=this.rootState,r="^",o={},s=[],a=[],h=!0,c=0,f=t.length;f>c;c++){var p=t[c],d=[],v=u(p.path,d,o);a=a.concat(v);for(var m=0,y=v.length;y>m;m++){var _=v[m];_ instanceof l||(h=!1,i=i.put({validChars:"/"}),r+="/",i=g(i,_),r+=_.regex())}var b={handler:p.handler,names:d};s.push(b)}h&&(i=i.put({validChars:"/"}),r+="/"),i.handlers=s,i.regex=new RegExp(r+"$"),i.specificity=o,(n=e&&e.as)&&(this.names[n]={segments:a,handlers:s})},handlersFor:function(t){var e=this.names[t],n=[];if(!e)throw new Error("There is no route named "+t);for(var i=0,r=e.handlers.length;r>i;i++)n.push(e.handlers[i]);return n},hasRoute:function(t){return!!this.names[t]},generate:function(t,e){var n=this.names[t],i="";if(!n)throw new Error("There is no route named "+t);for(var r=n.segments,o=0,s=r.length;s>o;o++){var a=r[o];a instanceof l||(i+="/",i+=a.generate(e))}return"/"!==i.charAt(0)&&(i="/"+i),e&&e.queryParams&&(i+=this.generateQueryString(e.queryParams)),i},generateQueryString:function(t){var e=[],n=[];for(var i in t)t.hasOwnProperty(i)&&n.push(i);n.sort();for(var r=0,o=n.length;o>r;r++){i=n[r];var a=t[i];if(null!=a){var h=encodeURIComponent(i);if(s(a))for(var c=0,l=a.length;l>c;c++){var u=i+"[]="+encodeURIComponent(a[c]);e.push(u)}else h+="="+encodeURIComponent(a),e.push(h)}}return 0===e.length?"":"?"+e.join("&")},parseQueryString:function(t){for(var e=t.split("&"),n={},i=0;i2&&"[]"===s.slice(a-2)&&(h=!0,s=s.slice(0,a-2),n[s]||(n[s]=[])),r=o[1]?y(o[1]):""),h?n[s].push(r):n[s]=r}return n},recognize:function(t){var e,n,i,r,o=[this.rootState],s={},a=!1;if(r=t.indexOf("?"),-1!==r){var h=t.substr(r+1,t.length);t=t.substr(0,r),s=this.parseQueryString(h)}for(t=decodeURI(t),"/"!==t.charAt(0)&&(t="/"+t),e=t.length,e>1&&"/"===t.charAt(e-1)&&(t=t.substr(0,e-1),a=!0),n=0,i=t.length;i>n&&(o=d(o,t.charAt(n)),o.length);n++);var c=[];for(n=0,i=o.length;i>n;n++)o[n].handlers&&c.push(o[n]);o=p(c);var l=c[0];return l&&l.handlers?(a&&"(.+)$"===l.regex.source.slice(-5)&&(t+="/"),m(l,t,s)):void 0}},W.prototype.map=o,W.VERSION="0.1.9";var U=W.prototype.generateQueryString,q={},Q=void 0,J=/#.*$/,K=function(){function t(e){var n=e.root,i=e.onChange;L.classCallCheck(this,t),n?("/"!==n.charAt(0)&&(n="/"+n),this.root=n.replace(/\/$/,""),this.rootRE=new RegExp("^\\"+this.root)):this.root=null,this.onChange=i;var r=document.querySelector("base");this.base=r&&r.getAttribute("href")}return t.prototype.start=function(){var t=this;this.listener=function(e){var n=decodeURI(location.pathname+location.search);t.root&&(n=n.replace(t.rootRE,"")),t.onChange(n,e&&e.state,location.hash)},window.addEventListener("popstate",this.listener),this.listener()},t.prototype.stop=function(){window.removeEventListener("popstate",this.listener)},t.prototype.go=function(t,e,n){var i=this.formatPath(t,n);e?history.replaceState({},"",i):(history.replaceState({pos:{x:window.pageXOffset,y:window.pageYOffset}},"",location.href),history.pushState({},"",i));var r=t.match(J),o=r&&r[0];t=i.replace(J,"").replace(this.rootRE,""),this.onChange(t,null,o)},t.prototype.formatPath=function(t,e){return"/"===t.charAt(0)?this.root?this.root+"/"+t.replace(/^\//,""):t:b(this.base||location.pathname,t,e)},t}(),G=function(){function t(e){var n=e.hashbang,i=e.onChange;L.classCallCheck(this,t),this.hashbang=n,this.onChange=i}return t.prototype.start=function(){var t=this;this.listener=function(){var e=location.hash,n=e.replace(/^#!?/,"");"/"!==n.charAt(0)&&(n="/"+n);var i=t.formatPath(n);if(i!==e)return void location.replace(i);var r=location.search&&e.indexOf("?")>-1?"&"+location.search.slice(1):location.search;t.onChange(decodeURI(e.replace(/^#!?/,"")+r))},window.addEventListener("hashchange",this.listener),this.listener()},t.prototype.stop=function(){window.removeEventListener("hashchange",this.listener)},t.prototype.go=function(t,e,n){t=this.formatPath(t,n),e?location.replace(t):location.hash=t},t.prototype.formatPath=function(t,e){var n="/"===t.charAt(0),i="#"+(this.hashbang?"!":"");return n?i+t:i+b(location.hash.replace(/^#!?/,""),t,e)},t}(),Y=function(){function t(e){var n=e.onChange;L.classCallCheck(this,t),this.onChange=n,this.currentPath="/"}return t.prototype.start=function(){this.onChange("/")},t.prototype.stop=function(){},t.prototype.go=function(t,e,n){t=this.currentPath=this.formatPath(t,n),this.onChange(t)},t.prototype.formatPath=function(t,e){return"/"===t.charAt(0)?t:b(this.currentPath,t,e)},t}(),X=function(){function t(e,n,i){L.classCallCheck(this,t),this.router=e,this.to=n,this.from=i,this.next=null,this.aborted=!1,this.done=!1}return t.prototype.abort=function(){if(!this.aborted){this.aborted=!0;var t=!this.from.path&&"/"===this.to.path;t||this.router.replace(this.from.path||"/")}},t.prototype.redirect=function(t){this.aborted||(this.aborted=!0,"string"==typeof t?t=k(t,this.to.params,this.to.query):(t.params=t.params||this.to.params,t.query=t.query||this.to.query),this.router.replace(t))},t.prototype.start=function(t){for(var e=this,n=[],i=this.router._rootView;i;)n.unshift(i),i=i.childView;var r=n.slice().reverse(),o=this.activateQueue=D(this.to.matched).map(function(t){return t.handler}),s=void 0,a=void 0;for(s=0;s0&&(a=r.slice(0,s),n=r.slice(s).reverse(),o=o.slice(s)),e.runQueue(n,A,function(){e.runQueue(o,O,function(){e.runQueue(n,R,function(){if(e.router._onTransitionValidated(e),a&&a.forEach(function(t){return T(t,e)}),n.length){var i=n[n.length-1],r=a?a.length:0;j(i,e,r,t)}else t()})})})},t.prototype.runQueue=function(t,e,n){function i(o){o>=t.length?n():e(t[o],r,function(){i(o+1)})}var r=this;i(0)},t.prototype.callHook=function(t,e,n){var i=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],r=i.expectBoolean,o=void 0===r?!1:r,s=i.postActivate,a=void 0===s?!1:s,h=i.processData,c=i.cleanup,l=this,u=!1,f=function(){c&&c(),l.abort()},p=function(t){if(a?v():f(),t&&!l.router._suppress)throw _("Uncaught error during transition: "),t instanceof Error?t:new Error(t)},d=function(t){try{p(t)}catch(e){setTimeout(function(){throw e},0)}},v=function(){return u?void _("transition.next() should be called only once."):(u=!0,l.aborted?void(c&&c()):void(n&&n()))},m=function(e){"boolean"==typeof e?e?v():f():w(e)?e.then(function(t){t?v():f()},d):t.length||v()},g=function(t){var e=void 0;try{e=h(t)}catch(n){return p(n)}w(e)?e.then(v,d):v()},y={to:l.to,from:l.from,abort:f,next:h?g:v,redirect:function(){l.redirect.apply(l,arguments)}},b=void 0;try{b=t.call(e,y)}catch(C){return p(C)}o?m(b):w(b)?h?b.then(g,d):b.then(v,d):h&&P(b)?g(b):t.length||v()},t.prototype.callHooks=function(t,e,n,i){var r=this;Array.isArray(t)?this.runQueue(t,function(t,n,o){r.aborted||r.callHook(t,e,o,i)},n):this.callHook(t,e,n,i)},t}(),Z=/^(component|subRoutes)$/,tt=function at(t,e){var n=this;L.classCallCheck(this,at);var i=e._recognizer.recognize(t);i&&([].forEach.call(i,function(t){for(var e in t.handler)Z.test(e)||(n[e]=t.handler[e])}),this.query=i.queryParams,this.params=[].reduce.call(i,function(t,e){if(e.params)for(var n in e.params)t[n]=e.params[n];return t},{})),this.path=t,this.router=e,this.matched=i||e._notFoundHandler,Object.freeze(this)},et=/\/$/,nt=/[-.*+?^${}()|[\]\/\\]/g,it=/\?.*$/,rt={"abstract":Y,hash:G,html5:K},ot=void 0,st=function(){function t(){var e=this,n=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],i=n.hashbang,r=void 0===i?!0:i,o=n["abstract"],s=void 0===o?!1:o,a=n.history,h=void 0===a?!1:a,c=n.saveScrollPosition,l=void 0===c?!1:c,u=n.transitionOnLoad,f=void 0===u?!1:u,p=n.suppressTransitionError,d=void 0===p?!1:p,v=n.root,m=void 0===v?null:v,g=n.linkActiveClass,y=void 0===g?"v-link-active":g;if(L.classCallCheck(this,t),!t.installed)throw new Error("Please install the Router with Vue.use() before creating an instance.");this.app=null,this._children=[],this._recognizer=new W,this._guardRecognizer=new W,this._started=!1,this._startCb=null,this._currentRoute={},this._currentTransition=null,this._previousTransition=null,this._notFoundHandler=null,this._notFoundRedirect=null,this._beforeEachHooks=[],this._afterEachHooks=[],this._rendered=!1,this._transitionOnLoad=f,this._root=m,this._abstract=s,this._hashbang=r;var _="undefined"!=typeof window&&window.history&&window.history.pushState;this._history=h&&_,this._historyFallback=h&&!_;var b=ot.util.inBrowser;this.mode=!b||this._abstract?"abstract":this._history?"html5":"hash";var w=rt[this.mode];this.history=new w({root:m,hashbang:this._hashbang,onChange:function(t,n,i){e._match(t,n,i)}}),this._saveScrollPosition=l,this._linkActiveClass=y,this._suppress=d}return t.prototype.map=function(t){for(var e in t)this.on(e,t[e]);return this},t.prototype.on=function(t,e){return"*"===t?this._notFound(e):this._addRoute(t,e,[]),this},t.prototype.redirect=function(t){for(var e in t)this._addRedirect(e,t[e]);return this},t.prototype.alias=function(t){for(var e in t)this._addAlias(e,t[e]);return this},t.prototype.beforeEach=function(t){return this._beforeEachHooks.push(t),this},t.prototype.afterEach=function(t){return this._afterEachHooks.push(t),this},t.prototype.go=function(t){var e=!1,n=!1;ot.util.isObject(t)&&(e=t.replace,n=t.append),t=this._stringifyPath(t),t&&this.history.go(t,e,n)},t.prototype.replace=function(t){"string"==typeof t&&(t={path:t}),t.replace=!0,this.go(t)},t.prototype.start=function(t,e,n){if(this._started)return void _("already started.");if(this._started=!0,this._startCb=n,!this.app){if(!t||!e)throw new Error("Must start vue-router with a component and a root container.");if(t instanceof ot)throw new Error("Must start vue-router with a component, not a Vue instance.");this._appContainer=e;var i=this._appConstructor="function"==typeof t?t:ot.extend(t);i.options.name=i.options.name||"RouterApp"}if(this._historyFallback){var r=window.location,o=new K({root:this._root}),s=o.root?r.pathname.replace(o.rootRE,""):r.pathname;if(s&&"/"!==s)return void r.assign((o.root||"")+"/"+this.history.formatPath(s)+r.search)}this.history.start()},t.prototype.stop=function(){this.history.stop(),this._started=!1},t.prototype._addRoute=function(t,e,n){if(M(t,e),e.path=t,e.fullPath=(n.reduce(function(t,e){return t+e.path},"")+t).replace("//","/"),n.push({path:t,handler:e}),this._recognizer.add(n,{as:e.name}),e.subRoutes)for(var i in e.subRoutes)this._addRoute(i,e.subRoutes[i],n.slice())},t.prototype._notFound=function(t){M("*",t),this._notFoundHandler=[{handler:t}]},t.prototype._addRedirect=function(t,e){"*"===t?this._notFoundRedirect=e:this._addGuard(t,e,this.replace)},t.prototype._addAlias=function(t,e){this._addGuard(t,e,this._match)},t.prototype._addGuard=function(t,e,n){var i=this;this._guardRecognizer.add([{path:t,handler:function(t,r){var o=k(e,t.params,r);n.call(i,o)}}])},t.prototype._checkGuard=function(t){var e=this._guardRecognizer.recognize(t);return e?(e[0].handler(e[0],e.queryParams),!0):this._notFoundRedirect&&(e=this._recognizer.recognize(t),!e)?(this.replace(this._notFoundRedirect),!0):void 0},t.prototype._match=function(t,e,n){var i=this;if(!this._checkGuard(t)){var r=this._currentRoute,o=this._currentTransition;if(o){if(o.to.path===t)return;if(r.path===t)return o.aborted=!0,void(this._currentTransition=this._prevTransition);o.aborted=!0}var s=new tt(t,this),a=new X(this,s,r);this._prevTransition=o,this._currentTransition=a,this.app||!function(){var t=i;i.app=new i._appConstructor({el:i._appContainer,created:function(){this.$router=t},_meta:{$route:s}})}();var h=this._beforeEachHooks,c=function(){a.start(function(){i._postTransition(s,e,n)})};h.length?a.runQueue(h,function(t,e,n){a===i._currentTransition&&a.callHook(t,null,n,{expectBoolean:!0})},c):c(),!this._rendered&&this._startCb&&this._startCb.call(null),this._rendered=!0}},t.prototype._onTransitionValidated=function(t){var e=this._currentRoute=t.to;this.app.$route!==e&&(this.app.$route=e,this._children.forEach(function(t){t.$route=e})),this._afterEachHooks.length&&this._afterEachHooks.forEach(function(e){return e.call(null,{to:t.to,from:t.from})}),this._currentTransition.done=!0},t.prototype._postTransition=function(t,e,n){var i=e&&e.pos;i&&this._saveScrollPosition?ot.nextTick(function(){window.scrollTo(i.x,i.y)}):n&&ot.nextTick(function(){var t=document.getElementById(n.slice(1));t&&window.scrollTo(window.scrollX,t.offsetTop)})},t.prototype._stringifyPath=function(t){var e="";if(t&&"object"==typeof t){if(t.name){var n=ot.util.extend,i=this._currentTransition&&this._currentTransition.to.params,r=t.params||{},o=i?n(n({},i),r):r;t.query&&(o.queryParams=t.query),e=this._recognizer.generate(t.name,o)}else if(t.path&&(e=t.path,t.query)){var s=this._recognizer.generateQueryString(t.query);e+=e.indexOf("?")>-1?"&"+s.slice(1):s}}else e=t?t+"":"";return encodeURI(e)},t}();return st.installed=!1,st.install=function(t){return st.installed?void _("already installed."):(ot=t,F(ot),V(ot),H(ot),q.Vue=ot,void(st.installed=!0))},"undefined"!=typeof window&&window.Vue&&window.Vue.use(st),st})},function(t,e,n){"use strict";var i=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=3>o?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(3>o?r(s):o>3?r(e,n,s):r(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},r=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=n(4),s=n(5),a=function(){function t(){}return t.prototype.data=function(){return{active:""}},t=i([o["default"]({template:n(7),components:{Navbar:s.Navbar}}),r("design:paramtypes",[])],t)}();e.App=a},function(t,e,n){function i(t,e){e||(e={}),e.name=e.name||t.name;var n=t.prototype;Object.getOwnPropertyNames(n).forEach(function(t){if("constructor"!==t){if(s.indexOf(t)>-1)return void(e[t]=n[t]);var i=Object.getOwnPropertyDescriptor(n,t);"function"==typeof i.value?(e.methods||(e.methods={}))[t]=i.value:(i.get||i.set)&&((e.computed||(e.computed={}))[t]={get:i.get,set:i.set})}});var i=Object.getPrototypeOf(t.prototype),r=i instanceof o?i.constructor:o;return r.extend(e)}function r(t){return"function"==typeof t?i(t):function(e){return i(e,t)}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),s=["data","el","init","created","ready","beforeCompile","compiled","beforeDestroy","destroyed","attached","detached","activate"];e["default"]=r},function(t,e,n){"use strict";var i=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=3>o?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(3>o?r(s):o>3?r(e,n,s):r(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},r=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=n(4),s=function(){function t(){}return t=i([o["default"]({template:n(6),props:{active:{type:String,"default":""}}}),r("design:paramtypes",[])],t)}();e.Navbar=s},function(t,e){t.exports='\n'},function(t,e){t.exports='
\n \n
\n \n
\n
\n'},function(t,e,n){"use strict";function i(t){t.map({"/":{component:r.Home,name:"home"},"/links":{component:o.Links,name:"links"},"/settings":{component:s.Settings,name:"settings"}}),t.afterEach(function(e){t.app.active=e.to.path.split("/")[1]})}var r=n(9),o=n(14),s=n(16);e.configureRouter=i},function(t,e,n){"use strict";var i=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=3>o?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(3>o?r(s):o>3?r(e,n,s):r(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},r=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=n(4),s=n(10),a=n(12),h=function(){function t(){}return t.prototype.data=function(){return{year:2015,month:12,date:4,message:"",messages:[],isOpen:!1}},Object.defineProperty(t.prototype,"today",{get:function(){return this.year+"/"+this.month+"/"+this.date},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isToday",{get:function(){return 12===this.month&&4===this.date},enumerable:!0,configurable:!0}),t.prototype.open=function(){this.message="",this.isOpen=!0},t.prototype.close=function(){this.isOpen=!1},t.prototype.save=function(){var t=new Date;this.messages.push({date:t.getHours()+"時"+t.getMinutes()+"分"+t.getSeconds()+"秒",text:this.message}),this.store(),this.close()},t.prototype.store=function(){var t=this;setTimeout(function(){localStorage.setItem(a.storageKey,JSON.stringify(t.messages))},0)},t.prototype.remove=function(t){this.messages.$remove(t),this.store()},t=i([o["default"]({template:n(13),components:{Modal:s.Modal},route:{data:function(t){var e=new Date,n=JSON.parse(localStorage.getItem(a.storageKey))||[];t.next({year:e.getFullYear(),month:e.getMonth()+1,date:e.getDate(),messages:n})}}}),r("design:paramtypes",[])],t)}();e.Home=h},function(t,e,n){"use strict";var i=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=3>o?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(3>o?r(s):o>3?r(e,n,s):r(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},r=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=n(4),s=function(){function t(){}return t.prototype.onChange=function(t){$(this.$els.modal).modal(t?"show":"hide")},t.prototype.close=function(){this.isOpen=!1},t=i([o["default"]({template:n(11),props:{isOpen:{type:Boolean,"default":!1},title:{type:String,"default":""}},watch:{isOpen:"onChange"}}),r("design:paramtypes",[])],t)}();e.Modal=s},function(t,e){t.exports='\n'},function(t,e){"use strict";e.storageKey="vue-typescript-example"},function(t,e){t.exports='
\n
\n

Happy Birthday!!

\n

12月4日は惣流・アスカ・ラングレーの誕生日です。

\n
\n

今日は{{today}}ですがメッセージを書いてみましょう

\n

\n \n

\n
\n\n

これまでに寄せられたメッセージ

\n \n \n \n \n \n \n \n \n \n \n \n
日時メッセージ削除
\n\n \n
\n \n \n
\n
\n \n \n
\n
\n
\n'},function(t,e,n){"use strict";var i=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=3>o?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(3>o?r(s):o>3?r(e,n,s):r(e,n))||s); 14 | return o>3&&s&&Object.defineProperty(e,n,s),s},r=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=n(4),s=function(){function t(){}return t.prototype.data=function(){return{links:[{title:"vue.js",url:"http://vuejs.org"},{title:"Welcome to TypeScript",url:"http://www.typescriptlang.org"},{title:"Vue.js Advent Calendar 2015 - Qiita",url:"http://qiita.com/advent-calendar/2015/vue"},{title:"エヴァンゲリオン 公式サイト",url:"http://www.evangelion.co.jp"},{title:"新世紀エヴァンゲリオン - Wikipedia",url:"https://ja.wikipedia.org/wiki/新世紀エヴァンゲリオン"}]}},t=i([o["default"]({template:n(15)}),r("design:paramtypes",[])],t)}();e.Links=s},function(t,e){t.exports='
\n \n \n \n \n \n \n \n \n \n \n \n
リンク
\n
\n'},function(t,e,n){"use strict";var i=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=3>o?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(3>o?r(s):o>3?r(e,n,s):r(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},r=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=n(4),s=n(12),a=function(){function t(){}return t.prototype.data=function(){return{status:!1}},t.prototype.remove=function(){localStorage.removeItem(s.storageKey),this.status=!0},t=i([o["default"]({template:n(17),route:{data:function(t){t.next({status:!1})}}}),r("design:paramtypes",[])],t)}();e.Settings=a},function(t,e){t.exports='
\n

設定

\n
\n \n
\n
削除しました
\n
\n'}]); -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Vue.jsとTypeScriptのサンプル 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/app.html: -------------------------------------------------------------------------------- 1 |
2 | 3 |
4 | 5 |
6 |
7 | -------------------------------------------------------------------------------- /src/app.ts: -------------------------------------------------------------------------------- 1 | "use strict" 2 | import Component from 'vue-class-component'; 3 | import {Navbar} from './components/navbar/navbar'; 4 | 5 | export interface App extends vuejs.Vue { } 6 | 7 | @Component({ 8 | template: require('./app.html'), 9 | components: { Navbar } 10 | }) 11 | export class App { 12 | active: string; 13 | 14 | data() { 15 | return { 16 | active: "" 17 | }; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/components/home/home.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |

Happy Birthday!!

4 |

12月4日は惣流・アスカ・ラングレーの誕生日です。

5 |
6 |

今日は{{today}}ですがメッセージを書いてみましょう

7 |

8 | 9 |

10 |
11 | 12 |

これまでに寄せられたメッセージ

13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 |
日時メッセージ削除
25 | 26 | 27 |
28 | 29 | 30 |
31 |
32 | 33 | 34 |
35 |
36 |
37 | -------------------------------------------------------------------------------- /src/components/home/home.ts: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | import Component from 'vue-class-component'; 3 | import {Modal} from '../modal/modal'; 4 | import { storageKey } from '../../constants'; 5 | 6 | export interface Home extends vuejs.Vue { } 7 | 8 | @Component({ 9 | template: require('./home.html'), 10 | components: { Modal }, 11 | route: { 12 | data(transition: vuejs.Transition) { 13 | const date = new Date() 14 | const messages: any[] = JSON.parse(localStorage.getItem(storageKey)) || [] 15 | transition.next({ 16 | year: date.getFullYear(), 17 | month: date.getMonth() + 1, 18 | date: date.getDate(), 19 | messages: messages 20 | }) 21 | } 22 | } 23 | }) 24 | export class Home { 25 | 26 | year: number; 27 | month: number; 28 | date: number; 29 | message: string; 30 | messages: { date: string; text: string }[]; 31 | isOpen: boolean; 32 | 33 | data(): any { 34 | return { 35 | year: 2015, 36 | month: 12, 37 | date: 4, 38 | message: "", 39 | messages: [], 40 | isOpen: false 41 | }; 42 | } 43 | 44 | get today(): string { 45 | return `${this.year}/${this.month}/${this.date}`; 46 | } 47 | 48 | get isToday(): boolean { 49 | return this.month === 12 && this.date === 4; 50 | } 51 | 52 | open() { 53 | this.message = ""; 54 | this.isOpen = true; 55 | } 56 | 57 | close() { 58 | this.isOpen = false; 59 | } 60 | 61 | save() { 62 | const date = new Date(); 63 | this.messages.push({ 64 | date: `${date.getHours()}時${date.getMinutes()}分${date.getSeconds()}秒`, 65 | text: this.message 66 | }); 67 | this.store(); 68 | this.close(); 69 | } 70 | 71 | store() { 72 | setTimeout(() => { 73 | localStorage.setItem(storageKey, JSON.stringify(this.messages)); 74 | }, 0); 75 | } 76 | 77 | remove(item: { date: string, text: string }) { 78 | this.messages.$remove(item); 79 | this.store(); 80 | } 81 | } 82 | -------------------------------------------------------------------------------- /src/components/links/links.html: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 |
リンク
14 |
15 | -------------------------------------------------------------------------------- /src/components/links/links.ts: -------------------------------------------------------------------------------- 1 | "use strict" 2 | import Component from 'vue-class-component'; 3 | 4 | export interface Links extends vuejs.Vue { } 5 | 6 | @Component({ 7 | template: require('./links.html') 8 | }) 9 | export class Links { 10 | 11 | links: { title: string; url: string }[]; 12 | 13 | data(): any { 14 | return { 15 | links: [ 16 | { title: "vue.js", url: "http://vuejs.org" }, 17 | { title: "Welcome to TypeScript", url: "http://www.typescriptlang.org" }, 18 | { title: "Vue.js Advent Calendar 2015 - Qiita", url: "http://qiita.com/advent-calendar/2015/vue" }, 19 | { title: "エヴァンゲリオン 公式サイト", url: "http://www.evangelion.co.jp" }, 20 | { title: "新世紀エヴァンゲリオン - Wikipedia", url: "https://ja.wikipedia.org/wiki/新世紀エヴァンゲリオン" } 21 | ] 22 | }; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/components/modal/modal.html: -------------------------------------------------------------------------------- 1 | 22 | -------------------------------------------------------------------------------- /src/components/modal/modal.ts: -------------------------------------------------------------------------------- 1 | "use strict" 2 | import Component from 'vue-class-component'; 3 | 4 | export interface Modal extends vuejs.Vue { } 5 | 6 | @Component({ 7 | template: require('./modal.html'), 8 | props: { 9 | isOpen: { 10 | type: Boolean, 11 | default: false 12 | }, 13 | title: { 14 | type: String, 15 | default: "" 16 | } 17 | }, 18 | watch: { 19 | isOpen: 'onChange' 20 | } 21 | }) 22 | export class Modal { 23 | 24 | isOpen: boolean 25 | 26 | title: string 27 | 28 | $els: { 29 | modal: HTMLElement 30 | } 31 | 32 | onChange(value: boolean) { 33 | $(this.$els.modal).modal(value ? 'show' : 'hide'); 34 | } 35 | 36 | close() { 37 | this.isOpen = false; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/components/navbar/navbar.html: -------------------------------------------------------------------------------- 1 | 14 | -------------------------------------------------------------------------------- /src/components/navbar/navbar.ts: -------------------------------------------------------------------------------- 1 | "use strict" 2 | import Component from 'vue-class-component'; 3 | 4 | export interface Navbar extends vuejs.Vue { } 5 | 6 | @Component({ 7 | template: require('./navbar.html'), 8 | props: { 9 | active: { 10 | type: String, 11 | default: "" 12 | } 13 | } 14 | }) 15 | export class Navbar { 16 | 17 | public active: string 18 | 19 | } 20 | -------------------------------------------------------------------------------- /src/components/settings/settings.html: -------------------------------------------------------------------------------- 1 |
2 |

設定

3 |
4 | 5 |
6 |
削除しました
7 |
8 | -------------------------------------------------------------------------------- /src/components/settings/settings.ts: -------------------------------------------------------------------------------- 1 | "use strict" 2 | import Component from 'vue-class-component'; 3 | import { storageKey } from '../../constants'; 4 | 5 | export interface Settings extends vuejs.Vue { } 6 | 7 | @Component({ 8 | template: require('./settings.html'), 9 | route: { 10 | data(transition: vuejs.Transition) { 11 | transition.next({ 12 | status: false 13 | }); 14 | } 15 | } 16 | }) 17 | export class Settings { 18 | 19 | status: boolean; 20 | 21 | data() { 22 | return { 23 | status: false 24 | }; 25 | } 26 | 27 | remove() { 28 | localStorage.removeItem(storageKey); 29 | this.status = true; 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /src/constants.ts: -------------------------------------------------------------------------------- 1 | export const storageKey = "vue-typescript-example"; 2 | -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- 1 | "use strict" 2 | import Vue = require('vue'); 3 | import VueRouter = require('vue-router'); 4 | import {App} from './app'; 5 | import { configureRouter } from './route-config'; 6 | 7 | Vue.use(VueRouter); 8 | 9 | const router = new VueRouter(); 10 | configureRouter(router); 11 | 12 | router.start(App, '#app'); 13 | -------------------------------------------------------------------------------- /src/route-config.ts: -------------------------------------------------------------------------------- 1 | "use strict" 2 | import {App} from './app'; 3 | import {Home} from './components/home/home'; 4 | import {Links} from './components/links/links'; 5 | import {Settings} from './components/settings/settings'; 6 | 7 | export function configureRouter(router: vuejs.Router) { 8 | router.map({ 9 | '/': { 10 | component: Home, 11 | name: 'home' 12 | }, 13 | '/links': { 14 | component: Links, 15 | name: 'links' 16 | }, 17 | '/settings': { 18 | component: Settings, 19 | name: 'settings' 20 | } 21 | }); 22 | 23 | router.afterEach((transition) => { 24 | router.app.active = transition.to.path.split("/")[1]; 25 | }); 26 | } 27 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "es5", 4 | "module": "commonjs", 5 | "moduleResolution": "node", 6 | "isolatedModules": false, 7 | "jsx": "react", 8 | "experimentalDecorators": true, 9 | "emitDecoratorMetadata": true, 10 | "declaration": false, 11 | "noImplicitAny": true, 12 | "removeComments": true, 13 | "noLib": false, 14 | "preserveConstEnums": true, 15 | "suppressImplicitAnyIndexErrors": true 16 | }, 17 | "exclude": [ 18 | "node_modules" 19 | ] 20 | } 21 | -------------------------------------------------------------------------------- /webpack.config.js: -------------------------------------------------------------------------------- 1 | "use strict" 2 | var webpack = require('webpack') 3 | 4 | module.exports = { 5 | entry: "./src/index.ts", 6 | output: { 7 | filename: "bundle.js", 8 | path: "./public" 9 | }, 10 | module: { 11 | loaders: [ 12 | { test: /\.tsx?$/, loader: "ts-loader" }, 13 | { test: /\.html$/, loader: "html-loader?minimize=false" } 14 | ] 15 | }, 16 | resolve: { 17 | extensions: ["", ".ts", ".tsx", ".js"] 18 | }, 19 | plugins: [ 20 | new webpack.DefinePlugin({ 21 | 'process.env': { 22 | NODE_ENV: '"production"' 23 | } 24 | }), 25 | new webpack.optimize.UglifyJsPlugin({ 26 | compress: { 27 | warnings: false 28 | } 29 | }) 30 | ] 31 | } 32 | --------------------------------------------------------------------------------