From 4ec821e7a0cb80f319d8969ffe75114683a01cf3 Mon Sep 17 00:00:00 2001 From: "greenkeeper[bot]" Date: Fri, 9 Mar 2018 10:48:18 +0000 Subject: [PATCH 1/4] chore(package): update dependencies --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index aeb6bc6..943fd93 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "ts-jest": "^22.4.0", "tslint": "^5.9.1", "tsutils": "^2.22.0", - "typedoc": "^0.10.0" + "typedoc": "^0.11.1" }, "dependencies": { "lodash": "^4.17.5", From 3646355d544f3cc27bcd02e0f2dfe78d61316d70 Mon Sep 17 00:00:00 2001 From: Patrick Lienau Date: Tue, 27 Mar 2018 02:48:27 -0500 Subject: [PATCH 2/4] docs: add link to source docs in `README.md` (see #56) (#57) --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index b809e59..861029a 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,8 @@ After you install the package via: [![NPM](https://nodei.co/npm/typescript-parser.png?downloads=true&stars=true)](https://nodei.co/npm/typescript-parser/) +### [View Source Docs](https://buehler.github.io/node-typescript-parser/) + You can use the parser with: ```typescript From 7ab7198fc37f33c3cb7a9c62263bb7ec569a1cee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonatan=20M=C3=A4nnchen?= Date: Wed, 4 Apr 2018 13:03:22 +0200 Subject: [PATCH 3/4] feat(parser): Use iterative BTree Walker --- src/TypescriptParser.ts | 103 +++++++++++------- src/node-parser/traverse-ast.ts | 13 +++ test/TypescriptParser.spec.ts | 10 ++ .../typescript-parser/webpack-bundle.js | 32 ++++++ 4 files changed, 118 insertions(+), 40 deletions(-) create mode 100644 src/node-parser/traverse-ast.ts create mode 100644 test/_workspace/typescript-parser/webpack-bundle.js diff --git a/src/TypescriptParser.ts b/src/TypescriptParser.ts index 05c4282..7198814 100644 --- a/src/TypescriptParser.ts +++ b/src/TypescriptParser.ts @@ -5,6 +5,7 @@ import { EnumDeclaration, ExportAssignment, ExportDeclaration, + forEachChild, FunctionDeclaration, Identifier, ImportDeclaration, @@ -29,6 +30,7 @@ import { parseIdentifier } from './node-parser/identifier-parser'; import { parseImport } from './node-parser/import-parser'; import { parseInterface } from './node-parser/interface-parser'; import { parseModule } from './node-parser/module-parser'; +import { traverseAst } from './node-parser/traverse-ast'; import { parseTypeAlias } from './node-parser/type-alias-parser'; import { parseVariable } from './node-parser/variable-parser'; import { File } from './resources/File'; @@ -140,6 +142,7 @@ export class TypescriptParser { return file; } + /** * Recursive function that runs through the AST of a source and parses the nodes. * Creates the class / function / etc declarations and instanciates a new module / namespace @@ -151,46 +154,66 @@ export class TypescriptParser { * * @memberof TsResourceParser */ - private parse(resource: Resource, node: Node): void { - for (const child of node.getChildren()) { - switch (child.kind) { - case SyntaxKind.ImportDeclaration: - case SyntaxKind.ImportEqualsDeclaration: - parseImport(resource, child); - break; - case SyntaxKind.ExportDeclaration: - case SyntaxKind.ExportAssignment: - parseExport(resource, child); - break; - case SyntaxKind.EnumDeclaration: - parseEnum(resource, child); - break; - case SyntaxKind.TypeAliasDeclaration: - parseTypeAlias(resource, child); - break; - case SyntaxKind.FunctionDeclaration: - parseFunction(resource, child); - continue; - case SyntaxKind.VariableStatement: - parseVariable(resource, child); - break; - case SyntaxKind.InterfaceDeclaration: - parseInterface(resource, child); - break; - case SyntaxKind.ClassDeclaration: - parseClass(resource, child); - continue; - case SyntaxKind.Identifier: - parseIdentifier(resource, child); - break; - case SyntaxKind.ModuleDeclaration: - const newResource = parseModule(resource, child); - this.parse(newResource, child); - continue; - default: - break; - } - this.parse(resource, child); + private parse(resource: Resource, root: Node): void { + const modules = [{ moduleRoot: root, moduleResource: resource }]; + + for (let iter = modules.shift(); iter !== undefined; iter = modules.shift()) { + const { moduleRoot, moduleResource } = iter; + + traverseAst( + moduleRoot, + (node) => { + switch (node.kind) { + case SyntaxKind.ImportDeclaration: + case SyntaxKind.ImportEqualsDeclaration: + parseImport(moduleResource, node); + break; + case SyntaxKind.ExportDeclaration: + case SyntaxKind.ExportAssignment: + parseExport(moduleResource, node); + break; + case SyntaxKind.EnumDeclaration: + parseEnum(moduleResource, node); + break; + case SyntaxKind.TypeAliasDeclaration: + parseTypeAlias(moduleResource, node); + break; + case SyntaxKind.FunctionDeclaration: + parseFunction(moduleResource, node); + break; + case SyntaxKind.VariableStatement: + parseVariable(moduleResource, node); + break; + case SyntaxKind.InterfaceDeclaration: + parseInterface(moduleResource, node); + break; + case SyntaxKind.ClassDeclaration: + parseClass(moduleResource, node); + break; + case SyntaxKind.Identifier: + parseIdentifier(moduleResource, node); + break; + case SyntaxKind.ModuleDeclaration: + modules.push({ + moduleRoot: node, + moduleResource: parseModule(moduleResource, node), + }); + break; + default: + break; + } + }, + (node) => { + switch (node.kind) { + case SyntaxKind.ClassDeclaration: + case SyntaxKind.ModuleDeclaration: + case SyntaxKind.FunctionDeclaration: + return true; + default: + return false; + } + }, + ); } } } diff --git a/src/node-parser/traverse-ast.ts b/src/node-parser/traverse-ast.ts new file mode 100644 index 0000000..44710c7 --- /dev/null +++ b/src/node-parser/traverse-ast.ts @@ -0,0 +1,13 @@ +export function traverseAst(root: Node, visit: (node: Node) => void, skipContents?: (node: Node) => boolean): void { + const stack = root.getChildren(); + + for (let node = stack.shift(); node !== undefined; node = stack.shift()) { + visit(node); + + if (skipContents && skipContents(node)) { + continue; + } + + stack.unshift(...node.getChildren()); + } +} diff --git a/test/TypescriptParser.spec.ts b/test/TypescriptParser.spec.ts index 4d29f28..7234867 100644 --- a/test/TypescriptParser.spec.ts +++ b/test/TypescriptParser.spec.ts @@ -785,4 +785,14 @@ describe('TypescriptParser', () => { }); + describe('Parses Webpack Bundle', () => { + + const file = getWorkspaceFile('typescript-parser/webpack-bundle.js'); + + it('should parse the whole webpack bundle', async () => { + await parser.parseFile(file, rootPath); + }); + + }); + }); diff --git a/test/_workspace/typescript-parser/webpack-bundle.js b/test/_workspace/typescript-parser/webpack-bundle.js new file mode 100644 index 0000000..9403031 --- /dev/null +++ b/test/_workspace/typescript-parser/webpack-bundle.js @@ -0,0 +1,32 @@ +!function(e){function t(n){if(r[n])return r[n].exports;var a=r[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var n=window.webpackJsonp;window.webpackJsonp=function(r,i,o){for(var s,u,d,c=0,l=[];c0)for(n=0;n0?"future":"past"];return D(n)?n(t):n.replace(/%s/i,t)}function $(e,t){var n=e.toLowerCase();Ar[n]=Ar[n+"s"]=Ar[t]=e}function C(e){return"string"==typeof e?Ar[e]||Ar[e.toLowerCase()]:void 0}function F(e){var t,n,r={};for(n in e)c(e,n)&&(t=C(n))&&(r[t]=e[n]);return r}function W(e,t){Er[e]=t}function I(e){var t=[];for(var n in e)t.push({unit:n,priority:Er[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function R(e,n){return function(r){return null!=r?(z(this,e,r),t.updateOffset(this,n),this):N(this,e)}}function N(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function z(e,t,n){e.isValid()&&e._d["set"+(e._isUTC?"UTC":"")+t](n)}function J(e){return e=C(e),D(this[e])?this[e]():this}function U(e,t){if("object"==typeof e){e=F(e);for(var n=I(e),r=0;r=0?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}function G(e,t,n,r){var a=r;"string"==typeof r&&(a=function(){return this[r]()}),e&&(Fr[e]=a),t&&(Fr[t[0]]=function(){return V(a.apply(this,arguments),t[1],t[2])}),n&&(Fr[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function q(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function B(e){var t,n,r=e.match(Pr);for(t=0,n=r.length;t=0&&$r.test(e);)e=e.replace($r,n),$r.lastIndex=0,r-=1;return e}function Q(e,t,n){na[e]=D(t)?t:function(e,r){return e&&n?n:t}}function X(e,t){return c(na,e)?na[e](t._strict,t._locale):new RegExp(ee(e))}function ee(e){return te(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,a){return t||n||r||a}))}function te(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ne(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),s(t)&&(r=function(e,n){n[t]=L(e)}),n=0;n=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}function ge(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function Le(e,t,n){var r=7+t-n;return-(7+ge(e,0,r).getUTCDay()-t)%7+r-1}function Ye(e,t,n,r,a){var i,o,s=(7+n-r)%7,u=Le(e,r,a),d=1+7*(t-1)+s+u;return d<=0?(i=e-1,o=pe(i)+d):d>pe(e)?(i=e+1,o=d-pe(e)):(i=e,o=d),{year:i,dayOfYear:o}}function ke(e,t,n){var r,a,i=Le(e.year(),t,n),o=Math.floor((e.dayOfYear()-i-1)/7)+1;return o<1?(a=e.year()-1,r=o+be(a,t,n)):o>be(e.year(),t,n)?(r=o-be(e.year(),t,n),a=e.year()+1):(a=e.year(),r=o),{week:r,year:a}}function be(e,t,n){var r=Le(e,t,n),a=Le(e+1,t,n);return(pe(e)-r+a)/7}function we(e){return ke(e,this._week.dow,this._week.doy).week}function De(){return this._week.dow}function Te(){return this._week.doy}function Se(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function je(e){var t=ke(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function xe(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function He(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Oe(e,t){return e?r(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:r(this._weekdays)?this._weekdays:this._weekdays.standalone}function Ae(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ee(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Pe(e,t,n){var r,a,i,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=_([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?(a=fa.call(this._weekdaysParse,o),-1!==a?a:null):"ddd"===t?(a=fa.call(this._shortWeekdaysParse,o),-1!==a?a:null):(a=fa.call(this._minWeekdaysParse,o),-1!==a?a:null):"dddd"===t?-1!==(a=fa.call(this._weekdaysParse,o))?a:-1!==(a=fa.call(this._shortWeekdaysParse,o))?a:(a=fa.call(this._minWeekdaysParse,o),-1!==a?a:null):"ddd"===t?-1!==(a=fa.call(this._shortWeekdaysParse,o))?a:-1!==(a=fa.call(this._weekdaysParse,o))?a:(a=fa.call(this._minWeekdaysParse,o),-1!==a?a:null):-1!==(a=fa.call(this._minWeekdaysParse,o))?a:-1!==(a=fa.call(this._weekdaysParse,o))?a:(a=fa.call(this._shortWeekdaysParse,o),-1!==a?a:null)}function $e(e,t,n){var r,a,i;if(this._weekdaysParseExact)return Pe.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=_([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Ce(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=xe(e,this.localeData()),this.add(e-t,"d")):t}function Fe(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function We(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=He(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Ie(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||ze.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=ba),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Re(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||ze.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=wa),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ne(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||ze.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Da),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ze(){function e(e,t){return t.length-e.length}var t,n,r,a,i,o=[],s=[],u=[],d=[];for(t=0;t<7;t++)n=_([2e3,1]).day(t),r=this.weekdaysMin(n,""),a=this.weekdaysShort(n,""),i=this.weekdays(n,""),o.push(r),s.push(a),u.push(i),d.push(r),d.push(a),d.push(i);for(o.sort(e),s.sort(e),u.sort(e),d.sort(e),t=0;t<7;t++)s[t]=te(s[t]),u[t]=te(u[t]),d[t]=te(d[t]);this._weekdaysRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Je(){return this.hours()%12||12}function Ue(){return this.hours()||24}function Ve(e,t){G(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Ge(e,t){return t._meridiemParse}function qe(e){return"p"===(e+"").toLowerCase().charAt(0)}function Be(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function Ke(e){return e?e.toLowerCase().replace("_","-"):e}function Ze(e){for(var t,n,r,a,i=0;i0;){if(r=Qe(a.slice(0,t).join("-")))return r;if(n&&n.length>=t&&Y(a,n,!0)>=t-1)break;t--}i++}return null}function Qe(t){var r=null;if(!Ha[t]&&void 0!==e&&e&&e.exports)try{r=Ta._abbr,n(597)("./"+t),Xe(r)}catch(e){}return Ha[t]}function Xe(e,t){var n;return e&&(n=o(t)?nt(e):et(e,t))&&(Ta=n),Ta._abbr}function et(e,t){if(null!==t){var n=xa;if(t.abbr=e,null!=Ha[e])w("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=Ha[e]._config;else if(null!=t.parentLocale){if(null==Ha[t.parentLocale])return Oa[t.parentLocale]||(Oa[t.parentLocale]=[]),Oa[t.parentLocale].push({name:e,config:t}),null;n=Ha[t.parentLocale]._config}return Ha[e]=new j(S(n,t)),Oa[e]&&Oa[e].forEach(function(e){et(e.name,e.config)}),Xe(e),Ha[e]}return delete Ha[e],null}function tt(e,t){if(null!=t){var n,r=xa;null!=Ha[e]&&(r=Ha[e]._config),t=S(r,t),n=new j(t),n.parentLocale=Ha[e],Ha[e]=n,Xe(e)}else null!=Ha[e]&&(null!=Ha[e].parentLocale?Ha[e]=Ha[e].parentLocale:null!=Ha[e]&&delete Ha[e]);return Ha[e]}function nt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ta;if(!r(e)){if(t=Qe(e))return t;e=[e]}return Ze(e)}function rt(){return Sr(Ha)}function at(e){var t,n=e._a;return n&&-2===m(e).overflow&&(t=n[ia]<0||n[ia]>11?ia:n[oa]<1||n[oa]>ie(n[aa],n[ia])?oa:n[sa]<0||n[sa]>24||24===n[sa]&&(0!==n[ua]||0!==n[da]||0!==n[ca])?sa:n[ua]<0||n[ua]>59?ua:n[da]<0||n[da]>59?da:n[ca]<0||n[ca]>999?ca:-1,m(e)._overflowDayOfYear&&(toa)&&(t=oa),m(e)._overflowWeeks&&-1===t&&(t=la),m(e)._overflowWeekday&&-1===t&&(t=_a),m(e).overflow=t),e}function it(e){var t,n,r,a,i,o,s=e._i,u=Aa.exec(s)||Ea.exec(s);if(u){for(m(e).iso=!0,t=0,n=$a.length;t10?"YYYY ":"YY "),i="HH:mm"+(n[4]?":ss":""),n[1]){var l=new Date(n[2]),_=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][l.getDay()];if(n[1].substr(0,3)!==_)return m(e).weekdayMismatch=!0,void(e._isValid=!1)}switch(n[5].length){case 2:0===u?s=" +0000":(u=c.indexOf(n[5][1].toUpperCase())-12,s=(u<0?" -":" +")+(""+u).replace(/^-?/,"0").match(/..$/)[0]+"00");break;case 4:s=d[n[5]];break;default:s=d[" GMT"]}n[5]=s,e._i=n.splice(1).join(""),o=" ZZ",e._f=r+a+i+o,_t(e),m(e).rfc2822=!0}else e._isValid=!1}function st(e){var n=Fa.exec(e._i);if(null!==n)return void(e._d=new Date(+n[1]));it(e),!1===e._isValid&&(delete e._isValid,ot(e),!1===e._isValid&&(delete e._isValid,t.createFromInputFallback(e)))}function ut(e,t,n){return null!=e?e:null!=t?t:n}function dt(e){var n=new Date(t.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function ct(e){var t,n,r,a,i=[];if(!e._d){for(r=dt(e),e._w&&null==e._a[oa]&&null==e._a[ia]&<(e),null!=e._dayOfYear&&(a=ut(e._a[aa],r[aa]),(e._dayOfYear>pe(a)||0===e._dayOfYear)&&(m(e)._overflowDayOfYear=!0),n=ge(a,0,e._dayOfYear),e._a[ia]=n.getUTCMonth(),e._a[oa]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=i[t]=r[t];for(;t<7;t++)e._a[t]=i[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[sa]&&0===e._a[ua]&&0===e._a[da]&&0===e._a[ca]&&(e._nextDay=!0,e._a[sa]=0),e._d=(e._useUTC?ge:Me).apply(null,i),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[sa]=24)}}function lt(e){var t,n,r,a,i,o,s,u;if(t=e._w,null!=t.GG||null!=t.W||null!=t.E)i=1,o=4,n=ut(t.GG,e._a[aa],ke(gt(),1,4).year),r=ut(t.W,1),((a=ut(t.E,1))<1||a>7)&&(u=!0);else{i=e._locale._week.dow,o=e._locale._week.doy;var d=ke(gt(),i,o);n=ut(t.gg,e._a[aa],d.year),r=ut(t.w,d.week),null!=t.d?((a=t.d)<0||a>6)&&(u=!0):null!=t.e?(a=t.e+i,(t.e<0||t.e>6)&&(u=!0)):a=i}r<1||r>be(n,i,o)?m(e)._overflowWeeks=!0:null!=u?m(e)._overflowWeekday=!0:(s=Ye(n,r,a,i,o),e._a[aa]=s.year,e._dayOfYear=s.dayOfYear)}function _t(e){if(e._f===t.ISO_8601)return void it(e);if(e._f===t.RFC_2822)return void ot(e);e._a=[],m(e).empty=!0;var n,r,a,i,o,s=""+e._i,u=s.length,d=0;for(a=Z(e._f,e._locale).match(Pr)||[],n=0;n0&&m(e).unusedInput.push(o),s=s.slice(s.indexOf(r)+r.length),d+=r.length),Fr[i]?(r?m(e).empty=!1:m(e).unusedTokens.push(i),ae(i,r,e)):e._strict&&!r&&m(e).unusedTokens.push(i);m(e).charsLeftOver=u-d,s.length>0&&m(e).unusedInput.push(s),e._a[sa]<=12&&!0===m(e).bigHour&&e._a[sa]>0&&(m(e).bigHour=void 0),m(e).parsedDateParts=e._a.slice(0),m(e).meridiem=e._meridiem,e._a[sa]=ft(e._locale,e._a[sa],e._meridiem),ct(e),at(e)}function ft(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(r=e.isPM(n),r&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function mt(e){var t,n,r,a,i;if(0===e._f.length)return m(e).invalidFormat=!0,void(e._d=new Date(NaN));for(a=0;athis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Rt(){if(!o(this._isDSTShifted))return this._isDSTShifted;var e={};if(y(e,this),e=yt(e),e._a){var t=e._isUTC?_(e._a):gt(e._a);this._isDSTShifted=this.isValid()&&Y(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Nt(){return!!this.isValid()&&!this._isUTC}function zt(){return!!this.isValid()&&this._isUTC}function Jt(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Ut(e,t){var n,r,a,i=e,o=null;return St(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:s(e)?(i={},t?i[t]=e:i.milliseconds=e):(o=Ua.exec(e))?(n="-"===o[1]?-1:1,i={y:0,d:L(o[oa])*n,h:L(o[sa])*n,m:L(o[ua])*n,s:L(o[da])*n,ms:L(jt(1e3*o[ca]))*n}):(o=Va.exec(e))?(n="-"===o[1]?-1:1,i={y:Vt(o[2],n),M:Vt(o[3],n),w:Vt(o[4],n),d:Vt(o[5],n),h:Vt(o[6],n),m:Vt(o[7],n),s:Vt(o[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(a=qt(gt(i.from),gt(i.to)),i={},i.ms=a.milliseconds,i.M=a.months),r=new Tt(i),St(e)&&c(e,"_locale")&&(r._locale=e._locale),r}function Vt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Gt(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function qt(e,t){var n;return e.isValid()&&t.isValid()?(t=Ot(t,e),e.isBefore(t)?n=Gt(e,t):(n=Gt(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Bt(e,t){return function(n,r){var a,i;return null===r||isNaN(+r)||(w(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),n="string"==typeof n?+n:n,a=Ut(n,r),Kt(this,a,e),this}}function Kt(e,n,r,a){var i=n._milliseconds,o=jt(n._days),s=jt(n._months);e.isValid()&&(a=null==a||a,i&&e._d.setTime(e._d.valueOf()+i*r),o&&z(e,"Date",N(e,"Date")+o*r),s&&ce(e,N(e,"Month")+s*r),a&&t.updateOffset(e,o||s))}function Zt(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Qt(e,n){var r=e||gt(),a=Ot(r,this).startOf("day"),i=t.calendarFormat(this,a)||"sameElse",o=n&&(D(n[i])?n[i].call(this,r):n[i]);return this.format(o||this.localeData().calendar(i,this,gt(r)))}function Xt(){return new v(this)}function en(e,t){var n=M(e)?e:gt(e);return!(!this.isValid()||!n.isValid())&&(t=C(o(t)?"millisecond":t),"millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()9999?K(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):D(Date.prototype.toISOString)?this.toDate().toISOString():K(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function ln(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+a)}function _n(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var n=K(this,e);return this.localeData().postformat(n)}function fn(e,t){return this.isValid()&&(M(e)&&e.isValid()||gt(e).isValid())?Ut({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function mn(e){return this.from(gt(),e)}function hn(e,t){return this.isValid()&&(M(e)&&e.isValid()||gt(e).isValid())?Ut({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function pn(e){return this.to(gt(),e)}function yn(e){var t;return void 0===e?this._locale._abbr:(t=nt(e),null!=t&&(this._locale=t),this)}function vn(){return this._locale}function Mn(e){switch(e=C(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this}function gn(e){return void 0===(e=C(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))}function Ln(){return this._d.valueOf()-6e4*(this._offset||0)}function Yn(){return Math.floor(this.valueOf()/1e3)}function kn(){return new Date(this.valueOf())}function bn(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function wn(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Dn(){return this.isValid()?this.toISOString():null}function Tn(){return h(this)}function Sn(){return l({},m(this))}function jn(){return m(this).overflow}function xn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Hn(e,t){G(0,[e,e.length],0,t)}function On(e){return $n.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function An(e){return $n.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function En(){return be(this.year(),1,4)}function Pn(){var e=this.localeData()._week;return be(this.year(),e.dow,e.doy)}function $n(e,t,n,r,a){var i;return null==e?ke(this,r,a).year:(i=be(e,r,a),t>i&&(t=i),Cn.call(this,e,t,n,r,a))}function Cn(e,t,n,r,a){var i=Ye(e,t,n,r,a),o=ge(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function Fn(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function Wn(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function In(e,t){t[ca]=L(1e3*("0."+e))}function Rn(){return this._isUTC?"UTC":""}function Nn(){return this._isUTC?"Coordinated Universal Time":""}function zn(e){return gt(1e3*e)}function Jn(){return gt.apply(null,arguments).parseZone()}function Un(e){return e}function Vn(e,t,n,r){var a=nt(),i=_().set(r,t);return a[n](i,e)}function Gn(e,t,n){if(s(e)&&(t=e,e=void 0),e=e||"",null!=t)return Vn(e,t,n,"month");var r,a=[];for(r=0;r<12;r++)a[r]=Vn(e,r,n,"month");return a}function qn(e,t,n,r){"boolean"==typeof e?(s(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,s(t)&&(n=t,t=void 0),t=t||"");var a=nt(),i=e?a._week.dow:0;if(null!=n)return Vn(t,(n+i)%7,r,"day");var o,u=[];for(o=0;o<7;o++)u[o]=Vn(t,(o+i)%7,r,"day");return u}function Bn(e,t){return Gn(e,t,"months")}function Kn(e,t){return Gn(e,t,"monthsShort")}function Zn(e,t,n){return qn(e,t,n,"weekdays")}function Qn(e,t,n){return qn(e,t,n,"weekdaysShort")}function Xn(e,t,n){return qn(e,t,n,"weekdaysMin")}function er(){var e=this._data;return this._milliseconds=ri(this._milliseconds),this._days=ri(this._days),this._months=ri(this._months),e.milliseconds=ri(e.milliseconds),e.seconds=ri(e.seconds),e.minutes=ri(e.minutes),e.hours=ri(e.hours),e.months=ri(e.months),e.years=ri(e.years),this}function tr(e,t,n,r){var a=Ut(t,n);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function nr(e,t){return tr(this,e,t,1)}function rr(e,t){return tr(this,e,t,-1)}function ar(e){return e<0?Math.floor(e):Math.ceil(e)}function ir(){var e,t,n,r,a,i=this._milliseconds,o=this._days,s=this._months,u=this._data;return i>=0&&o>=0&&s>=0||i<=0&&o<=0&&s<=0||(i+=864e5*ar(sr(s)+o),o=0,s=0),u.milliseconds=i%1e3,e=g(i/1e3),u.seconds=e%60,t=g(e/60),u.minutes=t%60,n=g(t/60),u.hours=n%24,o+=g(n/24),a=g(or(o)),s+=a,o-=ar(sr(a)),r=g(s/12),s%=12,u.days=o,u.months=s,u.years=r,this}function or(e){return 4800*e/146097}function sr(e){return 146097*e/4800}function ur(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=C(e))||"year"===e)return t=this._days+r/864e5,n=this._months+or(t),"month"===e?n:n/12;switch(t=this._days+Math.round(sr(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function dr(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*L(this._months/12):NaN}function cr(e){return function(){return this.as(e)}}function lr(e){return e=C(e),this.isValid()?this[e+"s"]():NaN}function _r(e){return function(){return this.isValid()?this._data[e]:NaN}}function fr(){return g(this.days()/7)}function mr(e,t,n,r,a){return a.relativeTime(t||1,!!n,e,r)}function hr(e,t,n){var r=Ut(e).abs(),a=Mi(r.as("s")),i=Mi(r.as("m")),o=Mi(r.as("h")),s=Mi(r.as("d")),u=Mi(r.as("M")),d=Mi(r.as("y")),c=a<=gi.ss&&["s",a]||a0,c[4]=n,mr.apply(null,c)}function pr(e){return void 0===e?Mi:"function"==typeof e&&(Mi=e,!0)}function yr(e,t){return void 0!==gi[e]&&(void 0===t?gi[e]:(gi[e]=t,"s"===e&&(gi.ss=t-1),!0))}function vr(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=hr(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function Mr(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r=Li(this._milliseconds)/1e3,a=Li(this._days),i=Li(this._months);e=g(r/60),t=g(e/60),r%=60,e%=60,n=g(i/12),i%=12;var o=n,s=i,u=a,d=t,c=e,l=r,_=this.asSeconds();return _?(_<0?"-":"")+"P"+(o?o+"Y":"")+(s?s+"M":"")+(u?u+"D":"")+(d||c||l?"T":"")+(d?d+"H":"")+(c?c+"M":"")+(l?l+"S":""):"P0D"}var gr,Lr;Lr=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,r=0;r68?1900:2e3)};var Ma=R("FullYear",!0);G("w",["ww",2],"wo","week"),G("W",["WW",2],"Wo","isoWeek"),$("week","w"),$("isoWeek","W"),W("week",5),W("isoWeek",5),Q("w",Jr),Q("ww",Jr,Ir),Q("W",Jr),Q("WW",Jr,Ir),re(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=L(e)});var ga={dow:0,doy:6};G("d",0,"do","day"),G("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),G("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),G("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),G("e",0,0,"weekday"),G("E",0,0,"isoWeekday"),$("day","d"),$("weekday","e"),$("isoWeekday","E"),W("day",11),W("weekday",11),W("isoWeekday",11),Q("d",Jr),Q("e",Jr),Q("E",Jr),Q("dd",function(e,t){return t.weekdaysMinRegex(e)}),Q("ddd",function(e,t){return t.weekdaysShortRegex(e)}),Q("dddd",function(e,t){return t.weekdaysRegex(e)}),re(["dd","ddd","dddd"],function(e,t,n,r){var a=n._locale.weekdaysParse(e,r,n._strict);null!=a?t.d=a:m(n).invalidWeekday=e}),re(["d","e","E"],function(e,t,n,r){t[r]=L(e)});var La="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ya="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ka="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ba=ta,wa=ta,Da=ta;G("H",["HH",2],0,"hour"),G("h",["hh",2],0,Je),G("k",["kk",2],0,Ue),G("hmm",0,0,function(){return""+Je.apply(this)+V(this.minutes(),2)}),G("hmmss",0,0,function(){return""+Je.apply(this)+V(this.minutes(),2)+V(this.seconds(),2)}),G("Hmm",0,0,function(){return""+this.hours()+V(this.minutes(),2)}),G("Hmmss",0,0,function(){return""+this.hours()+V(this.minutes(),2)+V(this.seconds(),2)}),Ve("a",!0),Ve("A",!1),$("hour","h"),W("hour",13),Q("a",Ge),Q("A",Ge),Q("H",Jr),Q("h",Jr),Q("k",Jr),Q("HH",Jr,Ir),Q("hh",Jr,Ir),Q("kk",Jr,Ir),Q("hmm",Ur),Q("hmmss",Vr),Q("Hmm",Ur),Q("Hmmss",Vr),ne(["H","HH"],sa),ne(["k","kk"],function(e,t,n){var r=L(e);t[sa]=24===r?0:r}),ne(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ne(["h","hh"],function(e,t,n){t[sa]=L(e),m(n).bigHour=!0}),ne("hmm",function(e,t,n){var r=e.length-2;t[sa]=L(e.substr(0,r)),t[ua]=L(e.substr(r)),m(n).bigHour=!0}),ne("hmmss",function(e,t,n){var r=e.length-4,a=e.length-2;t[sa]=L(e.substr(0,r)),t[ua]=L(e.substr(r,2)),t[da]=L(e.substr(a)),m(n).bigHour=!0}),ne("Hmm",function(e,t,n){var r=e.length-2;t[sa]=L(e.substr(0,r)),t[ua]=L(e.substr(r))}),ne("Hmmss",function(e,t,n){var r=e.length-4,a=e.length-2;t[sa]=L(e.substr(0,r)),t[ua]=L(e.substr(r,2)),t[da]=L(e.substr(a))});var Ta,Sa=/[ap]\.?m?\.?/i,ja=R("Hours",!0),xa={calendar:jr,longDateFormat:xr,invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:Hr,relativeTime:Or,months:ha,monthsShort:pa,week:ga,weekdays:La,weekdaysMin:ka,weekdaysShort:Ya,meridiemParse:Sa},Ha={},Oa={},Aa=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ea=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Pa=/Z|[+-]\d\d(?::?\d\d)?/,$a=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Ca=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Fa=/^\/?Date\((\-?\d+)/i,Wa=/^((?:Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d?\d\s(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(?:\d\d)?\d\d\s)(\d\d:\d\d)(\:\d\d)?(\s(?:UT|GMT|[ECMP][SD]T|[A-IK-Za-ik-z]|[+-]\d{4}))$/;t.createFromInputFallback=b("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),t.ISO_8601=function(){},t.RFC_2822=function(){};var Ia=b("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=gt.apply(null,arguments);return this.isValid()&&e.isValid()?ethis?this:e:p()}),Na=function(){return Date.now?Date.now():+new Date},za=["year","quarter","month","week","day","hour","minute","second","millisecond"];xt("Z",":"),xt("ZZ",""),Q("Z",Xr),Q("ZZ",Xr),ne(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Ht(Xr,e)});var Ja=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var Ua=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Va=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;Ut.fn=Tt.prototype,Ut.invalid=Dt;var Ga=Bt(1,"add"),qa=Bt(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Ba=b("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});G(0,["gg",2],0,function(){return this.weekYear()%100}),G(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Hn("gggg","weekYear"),Hn("ggggg","weekYear"),Hn("GGGG","isoWeekYear"),Hn("GGGGG","isoWeekYear"),$("weekYear","gg"),$("isoWeekYear","GG"),W("weekYear",1),W("isoWeekYear",1),Q("G",Zr),Q("g",Zr),Q("GG",Jr,Ir),Q("gg",Jr,Ir),Q("GGGG",qr,Nr),Q("gggg",qr,Nr),Q("GGGGG",Br,zr),Q("ggggg",Br,zr),re(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=L(e)}),re(["gg","GG"],function(e,n,r,a){n[a]=t.parseTwoDigitYear(e)}),G("Q",0,"Qo","quarter"),$("quarter","Q"),W("quarter",7),Q("Q",Wr),ne("Q",function(e,t){t[ia]=3*(L(e)-1)}),G("D",["DD",2],"Do","date"),$("date","D"),W("date",9),Q("D",Jr),Q("DD",Jr,Ir),Q("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),ne(["D","DD"],oa),ne("Do",function(e,t){t[oa]=L(e.match(Jr)[0],10)});var Ka=R("Date",!0);G("DDD",["DDDD",3],"DDDo","dayOfYear"),$("dayOfYear","DDD"),W("dayOfYear",4),Q("DDD",Gr),Q("DDDD",Rr),ne(["DDD","DDDD"],function(e,t,n){n._dayOfYear=L(e)}),G("m",["mm",2],0,"minute"),$("minute","m"),W("minute",14),Q("m",Jr),Q("mm",Jr,Ir),ne(["m","mm"],ua);var Za=R("Minutes",!1);G("s",["ss",2],0,"second"),$("second","s"),W("second",15),Q("s",Jr),Q("ss",Jr,Ir),ne(["s","ss"],da);var Qa=R("Seconds",!1);G("S",0,0,function(){return~~(this.millisecond()/100)}),G(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),G(0,["SSS",3],0,"millisecond"),G(0,["SSSS",4],0,function(){return 10*this.millisecond()}),G(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),G(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),G(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),G(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),G(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),$("millisecond","ms"),W("millisecond",16),Q("S",Gr,Wr),Q("SS",Gr,Ir),Q("SSS",Gr,Rr);var Xa;for(Xa="SSSS";Xa.length<=9;Xa+="S")Q(Xa,Kr);for(Xa="S";Xa.length<=9;Xa+="S")ne(Xa,In);var ei=R("Milliseconds",!1);G("z",0,0,"zoneAbbr"),G("zz",0,0,"zoneName");var ti=v.prototype;ti.add=Ga,ti.calendar=Qt,ti.clone=Xt,ti.diff=sn,ti.endOf=gn,ti.format=_n,ti.from=fn,ti.fromNow=mn,ti.to=hn,ti.toNow=pn,ti.get=J,ti.invalidAt=jn,ti.isAfter=en,ti.isBefore=tn,ti.isBetween=nn,ti.isSame=rn,ti.isSameOrAfter=an,ti.isSameOrBefore=on,ti.isValid=Tn,ti.lang=Ba,ti.locale=yn,ti.localeData=vn,ti.max=Ra,ti.min=Ia,ti.parsingFlags=Sn,ti.set=U,ti.startOf=Mn,ti.subtract=qa,ti.toArray=bn,ti.toObject=wn,ti.toDate=kn,ti.toISOString=cn,ti.inspect=ln,ti.toJSON=Dn,ti.toString=dn,ti.unix=Yn,ti.valueOf=Ln,ti.creationData=xn,ti.year=Ma,ti.isLeapYear=ve,ti.weekYear=On,ti.isoWeekYear=An,ti.quarter=ti.quarters=Fn,ti.month=le,ti.daysInMonth=_e,ti.week=ti.weeks=Se,ti.isoWeek=ti.isoWeeks=je,ti.weeksInYear=Pn,ti.isoWeeksInYear=En,ti.date=Ka,ti.day=ti.days=Ce,ti.weekday=Fe,ti.isoWeekday=We,ti.dayOfYear=Wn,ti.hour=ti.hours=ja,ti.minute=ti.minutes=Za,ti.second=ti.seconds=Qa,ti.millisecond=ti.milliseconds=ei,ti.utcOffset=Et,ti.utc=$t,ti.local=Ct,ti.parseZone=Ft,ti.hasAlignedHourOffset=Wt,ti.isDST=It,ti.isLocal=Nt,ti.isUtcOffset=zt,ti.isUtc=Jt,ti.isUTC=Jt,ti.zoneAbbr=Rn,ti.zoneName=Nn,ti.dates=b("dates accessor is deprecated. Use date instead.",Ka),ti.months=b("months accessor is deprecated. Use month instead",le),ti.years=b("years accessor is deprecated. Use year instead",Ma),ti.zone=b("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Pt),ti.isDSTShifted=b("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Rt);var ni=j.prototype;ni.calendar=x,ni.longDateFormat=H,ni.invalidDate=O,ni.ordinal=A,ni.preparse=Un,ni.postformat=Un,ni.relativeTime=E,ni.pastFuture=P,ni.set=T,ni.months=oe,ni.monthsShort=se,ni.monthsParse=de,ni.monthsRegex=me,ni.monthsShortRegex=fe,ni.week=we,ni.firstDayOfYear=Te,ni.firstDayOfWeek=De,ni.weekdays=Oe,ni.weekdaysMin=Ee,ni.weekdaysShort=Ae,ni.weekdaysParse=$e,ni.weekdaysRegex=Ie,ni.weekdaysShortRegex=Re,ni.weekdaysMinRegex=Ne,ni.isPM=qe,ni.meridiem=Be,Xe("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===L(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),t.lang=b("moment.lang is deprecated. Use moment.locale instead.",Xe),t.langData=b("moment.langData is deprecated. Use moment.localeData instead.",nt);var ri=Math.abs,ai=cr("ms"),ii=cr("s"),oi=cr("m"),si=cr("h"),ui=cr("d"),di=cr("w"),ci=cr("M"),li=cr("y"),_i=_r("milliseconds"),fi=_r("seconds"),mi=_r("minutes"),hi=_r("hours"),pi=_r("days"),yi=_r("months"),vi=_r("years"),Mi=Math.round,gi={ss:44,s:45,m:45,h:22,d:26,M:11},Li=Math.abs,Yi=Tt.prototype;return Yi.isValid=wt,Yi.abs=er,Yi.add=nr,Yi.subtract=rr,Yi.as=ur,Yi.asMilliseconds=ai,Yi.asSeconds=ii,Yi.asMinutes=oi,Yi.asHours=si,Yi.asDays=ui,Yi.asWeeks=di,Yi.asMonths=ci,Yi.asYears=li,Yi.valueOf=dr,Yi._bubble=ir,Yi.get=lr,Yi.milliseconds=_i,Yi.seconds=fi,Yi.minutes=mi,Yi.hours=hi,Yi.days=pi,Yi.weeks=fr,Yi.months=yi,Yi.years=vi,Yi.humanize=vr,Yi.toISOString=Mr,Yi.toString=Mr,Yi.toJSON=Mr,Yi.locale=yn,Yi.localeData=vn,Yi.toIsoString=b("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Mr),Yi.lang=Ba,G("X",0,0,"unix"),G("x",0,0,"valueOf"),Q("x",Zr),Q("X",ea),ne("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),ne("x",function(e,t,n){n._d=new Date(L(e))}),t.version="2.18.1",function(e){gr=e}(gt),t.fn=ti,t.min=Yt,t.max=kt,t.now=Na,t.utc=_,t.unix=zn,t.months=Bn,t.isDate=u,t.locale=Xe,t.invalid=p,t.duration=Ut,t.isMoment=M,t.weekdays=Zn,t.parseZone=Jn,t.localeData=nt,t.isDuration=St,t.monthsShort=Kn,t.weekdaysMin=Xn,t.defineLocale=et,t.updateLocale=tt,t.locales=rt,t.weekdaysShort=Qn,t.normalizeUnits=C,t.relativeTimeRounding=pr,t.relativeTimeThreshold=yr,t.calendarFormat=Zt,t.prototype=ti,t})}).call(t,n(71)(e))},,,,,,,,,function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},,,,,,,,,,,function(e,t,n){(function(t){/*! + * Vue.js v2.4.2 + * (c) 2014-2017 Evan You + * Released under the MIT License. + */ +!function(t,n){e.exports=n()}(0,function(){"use strict";function e(e){return void 0===e||null===e}function n(e){return void 0!==e&&null!==e}function r(e){return!0===e}function a(e){return!1===e}function i(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e}function o(e){return null!==e&&"object"==typeof e}function s(e){return"[object Object]"===fa.call(e)}function u(e){return"[object RegExp]"===fa.call(e)}function d(e){var t=parseFloat(e);return t>=0&&Math.floor(t)===t&&isFinite(e)}function c(e){return null==e?"":"object"==typeof e?JSON.stringify(e,null,2):String(e)}function l(e){var t=parseFloat(e);return isNaN(t)?e:t}function _(e,t){for(var n=Object.create(null),r=e.split(","),a=0;a-1)return e.splice(n,1)}}function m(e,t){return pa.call(e,t)}function h(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}function p(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function y(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function v(e,t){for(var n in t)e[n]=t[n];return e}function M(e){for(var t={},n=0;npi&&li[n].id>e.id;)n--;li.splice(n+1,0,e)}else li.push(e);mi||(mi=!0,qa(Se))}}function Ae(e){Mi.clear(),Ee(e,Mi)}function Ee(e,t){var n,r,a=Array.isArray(e);if((a||o(e))&&Object.isExtensible(e)){if(e.__ob__){var i=e.__ob__.dep.id;if(t.has(i))return;t.add(i)}if(a)for(n=e.length;n--;)Ee(e[n],t);else for(n=(r=Object.keys(e)).length;n--;)Ee(e[r[n]],t)}}function Pe(e,t,n){gi.get=function(){return this[t][n]},gi.set=function(e){this[t][n]=e},Object.defineProperty(e,n,gi)}function $e(e){e._watchers=[];var t=e.$options;t.props&&Ce(e,t.props),t.methods&&ze(e,t.methods),t.data?Fe(e):A(e._data={},!0),t.computed&&Ie(e,t.computed),t.watch&&t.watch!==Ia&&Je(e,t.watch)}function Ce(e,t){var n=e.$options.propsData||{},r=e._props={},a=e.$options._propKeys=[],i=!e.$parent;ti.shouldConvert=i;for(var o in t)!function(i){a.push(i);var o=G(i,t,n,e);E(r,i,o),i in e||Pe(e,"_props",i)}(o);ti.shouldConvert=!0}function Fe(e){var t=e.$options.data;s(t=e._data="function"==typeof t?We(t,e):t||{})||(t={});for(var n=Object.keys(t),r=e.$options.props,a=(e.$options.methods,n.length);a--;){var i=n[a];r&&m(r,i)||b(i)||Pe(e,"_data",i)}A(t,!0)}function We(e,t){try{return e.call(t)}catch(e){return T(e,t,"data()"),{}}}function Ie(e,t){var n=e._computedWatchers=Object.create(null);for(var r in t){var a=t[r],i="function"==typeof a?a:a.get;n[r]=new vi(e,i||g,g,Li),r in e||Re(e,r,a)}}function Re(e,t,n){"function"==typeof n?(gi.get=Ne(t),gi.set=g):(gi.get=n.get?!1!==n.cache?Ne(t):n.get:g,gi.set=n.set?n.set:g),Object.defineProperty(e,t,gi)}function Ne(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),Ka.target&&t.depend(),t.value}}function ze(e,t){e.$options.props;for(var n in t)e[n]=null==t[n]?g:p(t[n],e)}function Je(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var a=0;a=0||n.indexOf(e[a])<0)&&r.push(e[a]);return r}return e}function gt(e){this._init(e)}function Lt(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=y(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}function Yt(e){e.mixin=function(e){return this.options=U(this.options,e),this}}function kt(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,a=e._Ctor||(e._Ctor={});if(a[r])return a[r];var i=e.name||n.options.name,o=function(e){this._init(e)};return o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.cid=t++,o.options=U(n.options,e),o.super=n,o.options.props&&bt(o),o.options.computed&&wt(o),o.extend=n.extend,o.mixin=n.mixin,o.use=n.use,wa.forEach(function(e){o[e]=n[e]}),i&&(o.options.components[i]=o),o.superOptions=n.options,o.extendOptions=e,o.sealedOptions=v({},o.options),a[r]=o,o}}function bt(e){var t=e.options.props;for(var n in t)Pe(e.prototype,"_props",n)}function wt(e){var t=e.options.computed;for(var n in t)Re(e.prototype,n,t[n])}function Dt(e){wa.forEach(function(t){e[t]=function(e,n){return n?("component"===t&&s(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}})}function Tt(e){return e&&(e.Ctor.options.name||e.tag)}function St(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!u(e)&&e.test(t)}function jt(e,t,n){for(var r in e){var a=e[r];if(a){var i=Tt(a.componentOptions);i&&!n(i)&&(a!==t&&xt(a),e[r]=null)}}}function xt(e){e&&e.componentInstance.$destroy()}function Ht(e){for(var t=e.data,r=e,a=e;n(a.componentInstance);)(a=a.componentInstance._vnode).data&&(t=Ot(a.data,t));for(;n(r=r.parent);)r.data&&(t=Ot(t,r.data));return At(t.staticClass,t.class)}function Ot(e,t){return{staticClass:Et(e.staticClass,t.staticClass),class:n(e.class)?[e.class,t.class]:t.class}}function At(e,t){return n(e)||n(t)?Et(e,Pt(t)):""}function Et(e,t){return e?t?e+" "+t:e:t||""}function Pt(e){return Array.isArray(e)?$t(e):o(e)?Ct(e):"string"==typeof e?e:""}function $t(e){for(var t,r="",a=0,i=e.length;a=0&&" "===(p=e.charAt(h));h--);p&&so.test(p)||(c=!0)}}else void 0===i?(m=a+1,i=e.slice(0,a).trim()):t();if(void 0===i?i=e.slice(0,a).trim():0!==m&&t(),o)for(a=0;a=ji}function mn(e){return 34===e||39===e}function hn(e){var t=1;for(Ai=Oi;!fn();)if(e=_n(),mn(e))pn(e);else if(91===e&&t++,93===e&&t--,0===t){Ei=Oi;break}}function pn(e){for(var t=e;!fn()&&(e=_n())!==t;);}function yn(e,t,n){var r=n&&n.number,a=sn(e,"value")||"null",i=sn(e,"true-value")||"true",o=sn(e,"false-value")||"false";nn(e,"checked","Array.isArray("+t+")?_i("+t+","+a+")>-1"+("true"===i?":("+t+")":":_q("+t+","+i+")")),on(e,co,"var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+i+"):("+o+");if(Array.isArray($$a)){var $$v="+(r?"_n("+a+")":a)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+t+"=$$a.concat($$v))}else{$$i>-1&&("+t+"=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{"+cn(t,"$$c")+"}",null,!0)}function vn(e,t,n){var r=n&&n.number,a=sn(e,"value")||"null";nn(e,"checked","_q("+t+","+(a=r?"_n("+a+")":a)+")"),on(e,co,cn(t,a),null,!0)}function Mn(e,t,n){var r='var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(n&&n.number?"_n(val)":"val")+"});";on(e,"change",r=r+" "+cn(t,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),null,!0)}function gn(e,t,n){var r=e.attrsMap.type,a=n||{},i=a.lazy,o=a.number,s=a.trim,u=!i&&"range"!==r,d=i?"change":"range"===r?uo:"input",c="$event.target.value";s&&(c="$event.target.value.trim()"),o&&(c="_n("+c+")");var l=cn(t,c);u&&(l="if($event.target.composing)return;"+l),nn(e,"value","("+t+")"),on(e,d,l,null,!0),(s||o)&&on(e,"blur","$forceUpdate()")}function Ln(e){var t;n(e[uo])&&(e[t=Ea?"change":"input"]=[].concat(e[uo],e[t]||[]),delete e[uo]),n(e[co])&&(e[t=Wa?"click":"change"]=[].concat(e[co],e[t]||[]),delete e[co])}function Yn(e,t,n,r,a){if(n){var i=t,o=$i;t=function(n){null!==(1===arguments.length?i(n):i.apply(null,arguments))&&kn(e,t,r,o)}}$i.addEventListener(e,t,Ra?{capture:r,passive:a}:r)}function kn(e,t,n,r){(r||$i).removeEventListener(e,t,n)}function bn(t,n){if(!e(t.data.on)||!e(n.data.on)){var r=n.data.on||{},a=t.data.on||{};$i=n.elm,Ln(r),te(r,a,Yn,kn,n.context)}}function wn(t,r){if(!e(t.data.domProps)||!e(r.data.domProps)){var a,i,o=r.elm,s=t.data.domProps||{},u=r.data.domProps||{};n(u.__ob__)&&(u=r.data.domProps=v({},u));for(a in s)e(u[a])&&(o[a]="");for(a in u)if(i=u[a],"textContent"!==a&&"innerHTML"!==a||(r.children&&(r.children.length=0),i!==s[a]))if("value"===a){o._value=i;var d=e(i)?"":String(i);Dn(o,r,d)&&(o.value=d)}else o[a]=i}}function Dn(e,t,n){return!e.composing&&("option"===t.tag||Tn(e,n)||Sn(e,n))}function Tn(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}function Sn(e,t){var r=e.value,a=e._vModifiers;return n(a)&&a.number?l(r)!==l(t):n(a)&&a.trim?r.trim()!==t.trim():r!==t}function jn(e){var t=xn(e.style);return e.staticStyle?v(e.staticStyle,t):t}function xn(e){return Array.isArray(e)?M(e):"string"==typeof e?fo(e):e}function Hn(e,t){var n,r={};if(t)for(var a=e;a.componentInstance;)(a=a.componentInstance._vnode).data&&(n=jn(a.data))&&v(r,n);(n=jn(e.data))&&v(r,n);for(var i=e;i=i.parent;)i.data&&(n=jn(i.data))&&v(r,n);return r}function On(t,r){var a=r.data,i=t.data;if(!(e(a.staticStyle)&&e(a.style)&&e(i.staticStyle)&&e(i.style))){var o,s,u=r.elm,d=i.staticStyle,c=i.normalizedStyle||i.style||{},l=d||c,_=xn(r.data.style)||{};r.data.normalizedStyle=n(_.__ob__)?v({},_):_;var f=Hn(r,!0);for(s in l)e(f[s])&&po(u,s,"");for(s in f)(o=f[s])!==l[s]&&po(u,s,null==o?"":o)}}function An(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(/\s+/).forEach(function(t){return e.classList.add(t)}):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function En(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(/\s+/).forEach(function(t){return e.classList.remove(t)}):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function Pn(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&v(t,go(e.name||"v")),v(t,e),t}return"string"==typeof e?go(e):void 0}}function $n(e){So(function(){So(e)})}function Cn(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),An(e,t))}function Fn(e,t){e._transitionClasses&&f(e._transitionClasses,t),En(e,t)}function Wn(e,t,n){var r=In(e,t),a=r.type,i=r.timeout,o=r.propCount;if(!a)return n();var s=a===Yo?wo:To,u=0,d=function(){e.removeEventListener(s,c),n()},c=function(t){t.target===e&&++u>=o&&d()};setTimeout(function(){u0&&(n=Yo,c=o,l=i.length):t===ko?d>0&&(n=ko,c=d,l=u.length):l=(n=(c=Math.max(o,d))>0?o>d?Yo:ko:null)?n===Yo?i.length:u.length:0,{type:n,timeout:c,propCount:l,hasTransform:n===Yo&&jo.test(r[bo+"Property"])}}function Rn(e,t){for(;e.length1}function Gn(e,t){!0!==t.data.show&&zn(t)}function qn(e,t,n){var r=t.value,a=e.multiple;if(!a||Array.isArray(r)){for(var i,o,s=0,u=e.options.length;s-1,o.selected!==i&&(o.selected=i);else if(L(Bn(o),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));a||(e.selectedIndex=-1)}}function Bn(e){return"_value"in e?e._value:e.value}function Kn(e){e.target.composing=!0}function Zn(e){e.target.composing&&(e.target.composing=!1,Qn(e.target,"input"))}function Qn(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Xn(e){return!e.componentInstance||e.data&&e.data.transition?e:Xn(e.componentInstance._vnode)}function er(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?er(_e(t.children)):e}function tr(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var a=n._parentListeners;for(var i in a)t[va(i)]=a[i];return t}function nr(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function rr(e){for(;e=e.parent;)if(e.data.transition)return!0}function ar(e,t){return t.key===e.key&&t.tag===e.tag}function ir(e){return e.isComment&&e.asyncFactory}function or(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function sr(e){e.data.newPos=e.elm.getBoundingClientRect()}function ur(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,a=t.top-n.top;if(r||a){e.data.moved=!0;var i=e.elm.style;i.transform=i.WebkitTransform="translate("+r+"px,"+a+"px)",i.transitionDuration="0s"}}function dr(e,t){var n=t?Ro(t):Wo;if(n.test(e)){for(var r,a,i=[],o=n.lastIndex=0;r=n.exec(e);){(a=r.index)>o&&i.push(JSON.stringify(e.slice(o,a)));var s=Qt(r[1].trim());i.push("_s("+s+")"),o=a+r[0].length}return o=0&&o[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var u=o.length-1;u>=a;u--)t.end&&t.end(o[u].tag,n,r);o.length=a,i=a&&o[a-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,r):"p"===s&&(t.start&&t.start(e,[],!1,n,r),t.end&&t.end(e,n,r))}for(var a,i,o=[],s=t.expectHTML,u=t.isUnaryTag||Ya,d=t.canBeLeftOpenTag||Ya,c=0;e;){if(a=e,i&&vs(i)){var l=0,_=i.toLowerCase(),f=Ms[_]||(Ms[_]=new RegExp("([\\s\\S]*?)(]*>)","i")),m=e.replace(f,function(e,n,r){return l=r.length,vs(_)||"noscript"===_||(n=n.replace(//g,"$1").replace(//g,"$1")),bs(_,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""});c+=e.length-m.length,e=m,r(_,c-l,c)}else{var h=e.indexOf("<");if(0===h){if(is.test(e)){var p=e.indexOf("--\x3e");if(p>=0){t.shouldKeepComment&&t.comment(e.substring(4,p)),n(p+3);continue}}if(os.test(e)){var y=e.indexOf("]>");if(y>=0){n(y+2);continue}}var v=e.match(as);if(v){n(v[0].length);continue}var M=e.match(rs);if(M){var g=c;n(M[0].length),r(M[1],g,c);continue}var L=function(){var t=e.match(ts);if(t){var r={tagName:t[1],attrs:[],start:c};n(t[0].length);for(var a,i;!(a=e.match(ns))&&(i=e.match(Qo));)n(i[0].length),r.attrs.push(i);if(a)return r.unarySlash=a[1],n(a[0].length),r.end=c,r}}();if(L){!function(e){var n=e.tagName,a=e.unarySlash;s&&("p"===i&&Vo(n)&&r(i),d(n)&&i===n&&r(n));for(var c=u(n)||!!a,l=e.attrs.length,_=new Array(l),f=0;f=0){for(k=e.slice(h);!(rs.test(k)||ts.test(k)||is.test(k)||os.test(k)||(b=k.indexOf("<",1))<0);)h+=b,k=e.slice(h);Y=e.substring(0,h),n(h)}h<0&&(Y=e,e=""),t.chars&&Y&&t.chars(Y)}if(e===a){t.chars&&t.chars(e);break}}r()}function _r(e,t){function n(e){e.pre&&(s=!1),fs(e.tag)&&(u=!1)}us=t.warn||en,fs=t.isPreTag||Ya,ms=t.mustUseProp||Ya,hs=t.getTagNamespace||Ya,cs=tn(t.modules,"transformNode"),ls=tn(t.modules,"preTransformNode"),_s=tn(t.modules,"postTransformNode"),ds=t.delimiters;var r,a,i=[],o=!1!==t.preserveWhitespace,s=!1,u=!1;return lr(e,{warn:us,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldKeepComment:t.comments,start:function(e,o,d){var c=a&&a.ns||hs(e);Ea&&"svg"===c&&(o=Hr(o));var l={type:1,tag:e,attrsList:o,attrsMap:Sr(o),parent:a,children:[]};c&&(l.ns=c),xr(l)&&!Ua()&&(l.forbidden=!0);for(var _=0;_0,$a=Aa&&Aa.indexOf("edge/")>0,Ca=Aa&&Aa.indexOf("android")>0,Fa=Aa&&/iphone|ipad|ipod|ios/.test(Aa),Wa=Aa&&/chrome\/\d+/.test(Aa)&&!$a,Ia={}.watch,Ra=!1;if(Oa)try{var Na={};Object.defineProperty(Na,"passive",{get:function(){Ra=!0}}),window.addEventListener("test-passive",null,Na)}catch(e){}var za,Ja,Ua=function(){return void 0===za&&(za=!Oa&&void 0!==t&&"server"===t.process.env.VUE_ENV),za},Va=Oa&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,Ga="undefined"!=typeof Symbol&&S(Symbol)&&"undefined"!=typeof Reflect&&S(Reflect.ownKeys),qa=function(){function e(){r=!1;var e=n.slice(0);n.length=0;for(var t=0;t1?y(n):n;for(var r=y(arguments,1),a=0,i=n.length;a1&&(t[n[0].trim()]=n[1].trim())}}),t}),mo=/^--/,ho=/\s*!important$/,po=function(e,t,n){if(mo.test(t))e.style.setProperty(t,n);else if(ho.test(n))e.style.setProperty(t,n.replace(ho,""),"important");else{var r=vo(t);if(Array.isArray(n))for(var a=0,i=n.length;af?v(t,e(a[p+1])?null:a[p+1].elm,a,_,p,i):_>p&&g(t,r,l,f)}function k(t,a,i,o){if(t!==a){var s=a.elm=t.elm;if(r(t.isAsyncPlaceholder))n(a.asyncFactory.resolved)?w(t.elm,a,i):a.isAsyncPlaceholder=!0;else if(r(a.isStatic)&&r(t.isStatic)&&a.key===t.key&&(r(a.isCloned)||r(a.isOnce)))a.componentInstance=t.componentInstance;else{var u,d=a.data;n(d)&&n(u=d.hook)&&n(u=u.prepatch)&&u(t,a);var c=t.children,l=a.children;if(n(d)&&h(a)){for(u=0;u-1?Zi[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Zi[e]=/HTMLUnknownElement/.test(t.toString())},v(gt.options.directives,Oo),v(gt.options.components,$o),gt.prototype.__patch__=Oa?xo:g,gt.prototype.$mount=function(e,t){return e=e&&Oa?Wt(e):void 0,Le(this,e,t)},setTimeout(function(){Ta.devtools&&Va&&Va.emit("init",gt)},0);var Co,Fo=!!Oa&&function(e,t){var n=document.createElement("div");return n.innerHTML='
',n.innerHTML.indexOf(" ")>0}(),Wo=/\{\{((?:.|\n)+?)\}\}/g,Io=/[-.*+?^${}()|[\]\/\\]/g,Ro=h(function(e){var t=e[0].replace(Io,"\\$&"),n=e[1].replace(Io,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")}),No=[{staticKeys:["staticClass"],transformNode:function(e,t){t.warn;var n=un(e,"class");n&&(e.staticClass=JSON.stringify(n));var r=sn(e,"class",!1);r&&(e.classBinding=r)},genData:function(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}},{staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;var n=un(e,"style");n&&(e.staticStyle=JSON.stringify(fo(n)));var r=sn(e,"style",!1);r&&(e.styleBinding=r)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}}],zo={model:function(e,t,n){Pi=n;var r=t.value,a=t.modifiers,i=e.tag,o=e.attrsMap.type;if(e.component)return dn(e,r,a),!1;if("select"===i)Mn(e,r,a);else if("input"===i&&"checkbox"===o)yn(e,r,a);else if("input"===i&&"radio"===o)vn(e,r,a);else if("input"===i||"textarea"===i)gn(e,r,a);else if(!Ta.isReservedTag(i))return dn(e,r,a),!1;return!0},text:function(e,t){t.value&&nn(e,"textContent","_s("+t.value+")")},html:function(e,t){t.value&&nn(e,"innerHTML","_s("+t.value+")")}},Jo=_("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),Uo=_("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),Vo=_("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),Go={expectHTML:!0,modules:No,directives:zo,isPreTag:function(e){return"pre"===e},isUnaryTag:Jo,mustUseProp:Ii,canBeLeftOpenTag:Uo,isReservedTag:Ki,getTagNamespace:Ft,staticKeys:function(e){return e.reduce(function(e,t){return e.concat(t.staticKeys||[])},[]).join(",")}(No)},qo={decode:function(e){return Co=Co||document.createElement("div"),Co.innerHTML=e,Co.textContent}},Bo=/([^\s"'<>\/=]+)/,Ko=/(?:=)/,Zo=[/"([^"]*)"+/.source,/'([^']*)'+/.source,/([^\s"'=<>`]+)/.source],Qo=new RegExp("^\\s*"+Bo.source+"(?:\\s*("+Ko.source+")\\s*(?:"+Zo.join("|")+"))?"),Xo="[a-zA-Z_][\\w\\-\\.]*",es="((?:"+Xo+"\\:)?"+Xo+")",ts=new RegExp("^<"+es),ns=/^\s*(\/?)>/,rs=new RegExp("^<\\/"+es+"[^>]*>"),as=/^]+>/i,is=/^