mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-08 18:02:24 +00:00
14 lines
77 KiB
JavaScript
14 lines
77 KiB
JavaScript
|
!function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n=window.webpackJsonp;window.webpackJsonp=function(r,i,a){for(var s,u,c,l=0,f=[];l<r.length;l++)u=r[l],o[u]&&f.push(o[u][0]),o[u]=0;for(s in i)Object.prototype.hasOwnProperty.call(i,s)&&(t[s]=i[s]);for(n&&n(r,i,a);f.length;)f.shift()();if(a)for(l=0;l<a.length;l++)c=e(e.s=a[l]);return c};var r={},o={3:0};return e.e=function(t){function n(){i.onerror=i.onload=null,clearTimeout(a);var e=o[t];0!==e&&(e&&e[1](new Error("Loading chunk "+t+" failed.")),o[t]=void 0)}if(0===o[t])return Promise.resolve();if(o[t])return o[t][2];var r=document.getElementsByTagName("head")[0],i=document.createElement("script");i.type="text/javascript",i.charset="utf-8",i.async=!0,i.timeout=12e4,i.src=e.p+""+t+".nuxt.bundle.js";var a=setTimeout(n,12e4);i.onerror=i.onload=n,r.appendChild(i);var s=new Promise(function(e,n){o[t]=[e,n]});return o[t][2]=s},e.m=t,e.c=r,e.i=function(t){return t},e.d=function(t,e,n){Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/_nuxt/",e.oe=function(t){throw console.error(t),t},e(e.s=23)}([function(t,e,n){"use strict";(function(e){function n(t){return null==t?"":"object"==typeof t?JSON.stringify(t,null,2):String(t)}function r(t){var e=parseFloat(t,10);return e||0===e?e:t}function o(t,e){for(var n=Object.create(null),r=t.split(","),o=0;o<r.length;o++)n[r[o]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}function i(t,e){if(t.length){var n=t.indexOf(e);if(n>-1)return t.splice(n,1)}}function a(t,e){return rn.call(t,e)}function s(t){return"string"==typeof t||"number"==typeof t}function u(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}function c(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function l(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function f(t,e){for(var n in e)t[n]=e[n];return t}function p(t){return null!==t&&"object"==typeof t}function d(t){return ln.call(t)===fn}function h(t){for(var e={},n=0;n<t.length;n++)t[n]&&f(e,t[n]);return e}function v(){}function m(t){return t.reduce(function(t,e){return t.concat(e.staticKeys||[])},[]).join(",")}function y(t,e){return t==e||!(!p(t)||!p(e))&&JSON.stringify(t)===JSON.stringify(e)}function g(t,e){for(var n=0;n<t.length;n++)if(y(t[n],e))return n;return-1}function _(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function b(t,e,n,r){Object.defineProperty(t,e,{value:n,enumerable:!!r,writable:!0,configurable:!0})}function w(t){if(!hn.test(t)){var e=t.split(".");return function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}function x(t){return/native code/.test(t.toString())}function k(t){Cn.target&&$n.push(Cn.target),Cn.target=t}function O(){Cn.target=$n.pop()}function A(){jn.length=0,Tn={},En=Sn=!1}function C(){for(Sn=!0,jn.sort(function(t,e){return t.id-e.id}),Pn=0;Pn<jn.length;Pn++){var t=jn[Pn],e=t.id;Tn[e]=null,t.run()}kn&&dn.devtools&&kn.emit("flush"),A()}function $(t){var e=t.id;if(null==Tn[e]){if(Tn[e]=!0,Sn){for(var n=jn.length-1;n>=0&&jn[n].id>t.id;)n--;jn.splice(Math.max(n,Pn)+1,0,t)}else jn.push(t);En||(En=!0,On(C))}}function j(t){Dn.clear(),T(t,Dn)}function T(t,e){var n,r,o=Array.isArray(t);if((o||p(t))&&Object.isExtensible(t)){if(t.__ob__){var i=t.__ob__.dep.id;if(e.has(i))return;e.add(i)}if(o)for(n=t.length;n--;)T(t[n],e);else for(r=Object.keys(t),n=r.length;n--;)T(t[r[n]],e)}}function E(t,e){t.__proto__=e}function S(t,e,n){for(var r=0,o=n.length;r<o;r++){var i=n[r];b(t,i,e[i])}}function P(t){if(p(t)){var e;return a(t,"__ob__")&&t.__ob__ instanceof qn?e=t.__ob__:Un.shouldConvert&&!dn._isServer&&(Array.isArray(t)||d(t))&&Object.isExtensible(t)&&!t._isVue&&(e=new qn(t)),e}}function L(t,e,n,r){var o=new Cn,i=Object.getOwnPro
|
||
|
r.parentNode&&r.parentNode._pending&&(r.parentNode._pending[t.key]=null),h&&Pe(r,u),m.cancelled?(h&&Pe(r,s),p&&p(r)):(e(),f&&f(r)),r._leaveCb=null});d?d(n):n()}}function Ue(t){if(t){if("object"==typeof t){var e={};return t.css!==!1&&f(e,Ur(t.name||"v")),f(e,t),e}return"string"==typeof t?Ur(t):void 0}}function qe(t){var e=!1;return function(){e||(e=!0,t())}}function Be(t,e,n){var r=e.value,o=t.multiple;if(!o||Array.isArray(r)){for(var i,a,s=0,u=t.options.length;s<u;s++)if(a=t.options[s],o)i=g(r,Fe(a))>-1,a.selected!==i&&(a.selected=i);else if(y(Fe(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));o||(t.selectedIndex=-1)}}function Ve(t,e){for(var n=0,r=e.length;n<r;n++)if(y(Fe(e[n]),t))return!1;return!0}function Fe(t){return"_value"in t?t._value:t.value}function ze(t){t.target.composing=!0}function He(t){t.target.composing=!1,Je(t.target,"input")}function Je(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function Ke(t){return!t.child||t.data&&t.data.transition?t:Ke(t.child._vnode)}function We(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?We(nt(e.children)):t}function Ye(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var o=n._parentListeners;for(var i in o)e[an(i)]=o[i].fn;return e}function Ge(t,e){return/\d-keep-alive$/.test(e.tag)?t("keep-alive"):null}function Xe(t){for(;t=t.parent;)if(t.data.transition)return!0}function Ze(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function Qe(t){t.data.newPos=t.elm.getBoundingClientRect()}function tn(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,o=e.top-n.top;if(r||o){t.data.moved=!0;var i=t.elm.style;i.transform=i.WebkitTransform="translate("+r+"px,"+o+"px)",i.transitionDuration="0s"}}var en,nn=o("slot,component",!0),rn=Object.prototype.hasOwnProperty,on=/-(\w)/g,an=u(function(t){return t.replace(on,function(t,e){return e?e.toUpperCase():""})}),sn=u(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),un=/([^-])([A-Z])/g,cn=u(function(t){return t.replace(un,"$1-$2").replace(un,"$1-$2").toLowerCase()}),ln=Object.prototype.toString,fn="[object Object]",pn=function(){return!1},dn={optionMergeStrategies:Object.create(null),silent:!1,devtools:!1,errorHandler:null,ignoredElements:null,keyCodes:Object.create(null),isReservedTag:pn,isUnknownElement:pn,getTagNamespace:v,mustUseProp:pn,_assetTypes:["component","directive","filter"],_lifecycleHooks:["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated"],_maxUpdateCount:100,_isServer:"server"===e.env.VUE_ENV},hn=/[^\w.$]/,vn="__proto__"in{},mn="undefined"!=typeof window&&"[object Object]"!==Object.prototype.toString.call(window),yn=mn&&window.navigator.userAgent.toLowerCase(),gn=yn&&/msie|trident/.test(yn),_n=yn&&yn.indexOf("msie 9.0")>0,bn=yn&&yn.indexOf("edge/")>0,wn=yn&&yn.indexOf("android")>0,xn=yn&&/iphone|ipad|ipod|ios/.test(yn),kn=mn&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,On=function(){function t(){r=!1;var t=n.slice(0);n.length=0;for(var e=0;e<t.length;e++)t[e]()}var e,n=[],r=!1;if("undefined"!=typeof Promise&&x(Promise)){var o=Promise.resolve();e=function(){o.then(t),xn&&setTimeout(v)}}else if("undefined"==typeof MutationObserver||!x(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())e=function(){setTimeout(t,0)};else{var i=1,a=new MutationObserver(t),s=document.createTextNode(String(i));a.observe(s,{characterData:!0}),e=function(){i=(i+1)%2,s.data=String(i)}}return function(t,o){var i=o?function(){t.call(o)}:t;n.push(i),r||(r=!0,e())}}();en="undefined"!=typeof Set&&x(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return void 0!==this.set[t]},t.prototype.add=function(t){this.set[t]=1},t.prototype.clear=function(){this.set=Object.create(null)},t}();var An=0,Cn=function(){this.id=An++,this.subs=[]};Cn.prototype.addSub=function(t){this.subs.push(t)},Cn.prototype.removeSub=function(t){i(this.subs,t)},Cn.prototype.depend=function(){Cn.target&&Cn.target.addDep(this)},Cn.pro
|
||
|
* @overview es6-promise - a tiny implementation of Promises/A+.
|
||
|
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
|
||
|
* @license Licensed under MIT license
|
||
|
* See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
|
||
|
* @version 4.0.5
|
||
|
*/
|
||
|
!function(e,n){t.exports=n()}(this,function(){"use strict";function t(t){return"function"==typeof t||"object"==typeof t&&null!==t}function o(t){return"function"==typeof t}function i(t){Y=t}function a(t){G=t}function s(){return function(){return e.nextTick(p)}}function u(){return"undefined"!=typeof W?function(){W(p)}:f()}function c(){var t=0,e=new Q(p),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}function l(){var t=new MessageChannel;return t.port1.onmessage=p,function(){return t.port2.postMessage(0)}}function f(){var t=setTimeout;return function(){return t(p,1)}}function p(){for(var t=0;t<K;t+=2){var e=nt[t],n=nt[t+1];e(n),nt[t]=void 0,nt[t+1]=void 0}K=0}function d(){try{var t=n(21);return W=t.runOnLoop||t.runOnContext,u()}catch(t){return f()}}function h(t,e){var n=arguments,r=this,o=new this.constructor(m);void 0===o[ot]&&D(o);var i=r._state;return i?!function(){var t=n[i-1];G(function(){return P(i,o,t,r._result)})}():j(r,o,t,e),o}function v(t){var e=this;if(t&&"object"==typeof t&&t.constructor===e)return t;var n=new e(m);return O(n,t),n}function m(){}function y(){return new TypeError("You cannot resolve a promise with itself")}function g(){return new TypeError("A promises callback cannot return that same promise.")}function _(t){try{return t.then}catch(t){return ut.error=t,ut}}function b(t,e,n,r){try{t.call(e,n,r)}catch(t){return t}}function w(t,e,n){G(function(t){var r=!1,o=b(n,e,function(n){r||(r=!0,e!==n?O(t,n):C(t,n))},function(e){r||(r=!0,$(t,e))},"Settle: "+(t._label||" unknown promise"));!r&&o&&(r=!0,$(t,o))},t)}function x(t,e){e._state===at?C(t,e._result):e._state===st?$(t,e._result):j(e,void 0,function(e){return O(t,e)},function(e){return $(t,e)})}function k(t,e,n){e.constructor===t.constructor&&n===h&&e.constructor.resolve===v?x(t,e):n===ut?$(t,ut.error):void 0===n?C(t,e):o(n)?w(t,e,n):C(t,e)}function O(e,n){e===n?$(e,y()):t(n)?k(e,n,_(n)):C(e,n)}function A(t){t._onerror&&t._onerror(t._result),T(t)}function C(t,e){t._state===it&&(t._result=e,t._state=at,0!==t._subscribers.length&&G(T,t))}function $(t,e){t._state===it&&(t._state=st,t._result=e,G(A,t))}function j(t,e,n,r){var o=t._subscribers,i=o.length;t._onerror=null,o[i]=e,o[i+at]=n,o[i+st]=r,0===i&&t._state&&G(T,t)}function T(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r=void 0,o=void 0,i=t._result,a=0;a<e.length;a+=3)r=e[a],o=e[a+n],r?P(n,r,o,i):o(i);t._subscribers.length=0}}function E(){this.error=null}function S(t,e){try{return t(e)}catch(t){return ct.error=t,ct}}function P(t,e,n,r){var i=o(n),a=void 0,s=void 0,u=void 0,c=void 0;if(i){if(a=S(n,r),a===ct?(c=!0,s=a.error,a=null):u=!0,e===a)return void $(e,g())}else a=r,u=!0;e._state!==it||(i&&u?O(e,a):c?$(e,s):t===at?C(e,a):t===st&&$(e,a))}function L(t,e){try{e(function(e){O(t,e)},function(e){$(t,e)})}catch(e){$(t,e)}}function M(){return lt++}function D(t){t[ot]=lt++,t._state=void 0,t._result=void 0,t._subscribers=[]}function R(t,e){this._instanceConstructor=t,this.promise=new t(m),this.promise[ot]||D(this.promise),J(e)?(this._input=e,this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?C(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&C(this.promise,this._result))):$(this.promise,N())}function N(){return new Error("Array Methods must be provided an Array")}function I(t){return new R(this,t).promise}function U(t){var e=this;return new e(J(t)?function(n,r){for(var o=t.length,i=0;i<o;i++)e.resolve(t[i]).then(n,r)}:function(t,e){return e(new TypeError("You must pass an array to race."))})}function q(t){var e=this,n=new e(m);return $(n,t),n}function B(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function V(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function F(t){this[ot]=M(),this._result=this._state=void 0,this._subscribers=[],m!==t&&("function"!=typeof t&&B(),this instanceof F?L(this,t):V())}f
|
||
|
* vue-router v2.0.1
|
||
|
* (c) 2016 Evan You
|
||
|
* @license MIT
|
||
|
*/
|
||
|
!function(e,n){t.exports=n()}(this,function(){"use strict";function t(t,e,n){if("/"===t.charAt(0))return t;if("?"===t.charAt(0)||"#"===t.charAt(0))return e+t;var r=e.split("/");n&&r[r.length-1]||r.pop();for(var o=t.replace(/^\//,"").split("/"),i=0;i<o.length;i++){var a=o[i];"."!==a&&(".."===a?r.pop():r.push(a))}return""!==r[0]&&r.unshift(""),r.join("/")}function e(t){var e="",n="",r=t.indexOf("#");r>=0&&(e=t.slice(r),t=t.slice(0,r));var o=t.indexOf("?");return o>=0&&(n=t.slice(o+1),t=t.slice(0,o)),{path:t,query:n,hash:e}}function n(t){return t.replace(/\/\//g,"/")}function r(t,e){if(!t)throw new Error("[vue-router] "+e)}function o(t,e){t||"undefined"!=typeof console&&console.warn("[vue-router] "+e)}function i(t,e){if(void 0===e&&(e={}),t){var n;try{n=a(t)}catch(t){o(!1,t.message),n={}}for(var r in e)n[r]=e[r];return n}return e}function a(t){var e=Object.create(null);return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach(function(t){var n=t.replace(/\+/g," ").split("="),r=ut(n.shift()),o=n.length>0?ut(n.join("=")):null;void 0===e[r]?e[r]=o:Array.isArray(e[r])?e[r].push(o):e[r]=[e[r],o]}),e):e}function s(t){var e=t?Object.keys(t).sort().map(function(e){var n=t[e];if(void 0===n)return"";if(null===n)return st(e);if(Array.isArray(n)){var r=[];return n.slice().forEach(function(t){void 0!==t&&(null===t?r.push(st(e)):r.push(st(e)+"="+st(t)))}),r.join("&")}return st(e)+"="+st(n)}).filter(function(t){return t.length>0}).join("&"):null;return e?"?"+e:""}function u(t,e,n){var r={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:e.query||{},params:e.params||{},fullPath:l(e),matched:t?c(t):[]};return n&&(r.redirectedFrom=l(n)),Object.freeze(r)}function c(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function l(t){var e=t.path,n=t.query;void 0===n&&(n={});var r=t.hash;return void 0===r&&(r=""),(e||"/")+s(n)+r}function f(t,e){return e===ct?t===e:!!e&&(t.path&&e.path?t.path.replace(lt,"")===e.path.replace(lt,"")&&t.hash===e.hash&&p(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&p(t.query,e.query)&&p(t.params,e.params)))}function p(t,e){void 0===t&&(t={}),void 0===e&&(e={});var n=Object.keys(t),r=Object.keys(e);return n.length===r.length&&n.every(function(n){return String(t[n])===String(e[n])})}function d(t,e){return 0===t.path.indexOf(e.path)&&(!e.hash||t.hash===e.hash)&&h(t.query,e.query)}function h(t,e){for(var n in e)if(!(n in t))return!1;return!0}function v(n,r,o){var a="string"==typeof n?{path:n}:n;if(a.name||a._normalized)return a;var s=e(a.path||""),u=r&&r.path||"/",c=s.path?t(s.path,u,o):r&&r.path||"/",l=i(s.query,a.query),f=a.hash||s.hash;return f&&"#"!==f.charAt(0)&&(f="#"+f),{_normalized:!0,path:c,query:l,hash:f}}function m(t){if(t)for(var e,n=0;n<t.length;n++){if(e=t[n],"a"===e.tag)return e;if(e.children&&(e=m(e.children)))return e}}function y(t){y.installed||(y.installed=!0,Object.defineProperty(t.prototype,"$router",{get:function(){return this.$root._router}}),Object.defineProperty(t.prototype,"$route",{get:function(){return this.$root._route}}),t.mixin({beforeCreate:function(){this.$options.router&&(this._router=this.$options.router,this._router.init(this),t.util.defineReactive(this,"_route",this._router.history.current))}}),t.component("router-view",at),t.component("router-link",pt))}function g(t){for(var e,n=[],r=0,o=0,i="";null!=(e=bt.exec(t));){var a=e[0],s=e[1],u=e.index;if(i+=t.slice(o,u),o=u+a.length,s)i+=s[1];else{var c=t[o],l=e[2],f=e[3],p=e[4],d=e[5],h=e[6],v=e[7];i&&(n.push(i),i="");var m=null!=l&&null!=c&&c!==l,y="+"===h||"*"===h,g="?"===h||"*"===h,_=e[2]||"/",b=p||d||(v?".*":"[^"+_+"]+?");n.push({name:f||r++,prefix:l||"",delimiter:_,optional:g,repeat:y,partial:m,asterisk:!!v,pattern:O(b)})}}return o<t.length&&(i+=t.substr(o)),i&&n.push(i),n}function _(t){return x(g(t))}function b(t){return encodeURI(t).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function w(t){return encodeURI(t).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function x(t){for(var e=new Array(t.l
|