express-sweet 1.0.26 → 1.0.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,19 @@
1
1
  # Changelog
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ ## [1.0.27] - 2023/6/12
5
+ ### Changed
6
+ - Request object has been added to the arguments of the beforeRender function in the view configuration (config/view.js).
7
+ express-sweet v1.0.27 or later (current):
8
+ ```js
9
+ beforeRender: (req, res) => {}
10
+ ```
11
+
12
+ express-sweet v1.0.26 or earlier:
13
+ ```js
14
+ beforeRender: res => {}
15
+ ```
16
+
4
17
  ## [1.0.26] - 2023/6/11
5
18
  ### Changed
6
19
  - Update Sequelize from v5 to v6.
@@ -431,4 +444,5 @@ All notable changes to this project will be documented in this file.
431
444
  [1.0.23]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.22...v1.0.23
432
445
  [1.0.24]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.23...v1.0.24
433
446
  [1.0.25]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.24...v1.0.25
434
- [1.0.26]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.25...v1.0.26
447
+ [1.0.26]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.25...v1.0.26
448
+ [1.0.27]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.26...v1.0.27
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("fs"),a=require("path"),express=require("express"),crypto=require("crypto"),passport=require("passport"),passportLocal=require("passport-local"),buffer=require("buffer"),tty=require("tty"),util=require("util"),net=require("net"),url=require("url"),events=require("events"),i=require("os"),o=require("assert"),sequelize=require("sequelize"),AWS=require("aws-sdk");function _interopDefaultLegacy(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var e__default=_interopDefaultLegacy(e),a__default=_interopDefaultLegacy(a),express__default=_interopDefaultLegacy(express),crypto__default=_interopDefaultLegacy(crypto),passport__default=_interopDefaultLegacy(passport),buffer__default=_interopDefaultLegacy(buffer),tty__default=_interopDefaultLegacy(tty),util__default=_interopDefaultLegacy(util),net__default=_interopDefaultLegacy(net),url__default=_interopDefaultLegacy(url),events__default=_interopDefaultLegacy(events),i__default=_interopDefaultLegacy(i),o__default=_interopDefaultLegacy(o),sequelize__default=_interopDefaultLegacy(sequelize),AWS__default=_interopDefaultLegacy(AWS);class Global{static mount(){global.APP_DIR=process.cwd(),process.env.EXPRESS_DEBUG&&console.log("Set global variable APP_DIR")}}function log$2(e){console.log(`[dotenv][DEBUG] ${e}`)}const NEWLINE="\n",RE_INI_KEY_VAL=/^\s*([\w.-]+)\s*=\s*(.*)?\s*$/,RE_NEWLINES=/\\n/g,NEWLINES_MATCH=/\n|\r|\r\n/;function parse$4(e,a){const i=Boolean(a&&a.debug),n={};return e.toString().split(NEWLINES_MATCH).forEach((function(e,a){const t=e.match(RE_INI_KEY_VAL);if(null!=t){const e=t[1];let a=t[2]||"";const i=a.length-1,s='"'===a[0]&&'"'===a[i];"'"===a[0]&&"'"===a[i]||s?(a=a.substring(1,i),s&&(a=a.replace(RE_NEWLINES,NEWLINE))):a=a.trim(),n[e]=a}else i&&log$2(`did not match key and value when parsing line ${a+1}: ${e}`)})),n}function config(e){let a=a__default.default.resolve(process.cwd(),".env"),i="utf8",n=!1;e&&(null!=e.path&&(a=e.path),null!=e.encoding&&(i=e.encoding),null!=e.debug&&(n=!0));try{const e=parse$4(e__default.default.readFileSync(a,{encoding:i}),{debug:n});return Object.keys(e).forEach((function(a){Object.prototype.hasOwnProperty.call(process.env,a)?n&&log$2(`"${a}" is already defined in \`process.env\` and will not be overwritten`):process.env[a]=e[a]})),{parsed:e}}catch(e){return{error:e}}}var config_1=config,parse_1$2=parse$4,main={config:config_1,parse:parse_1$2};class Environment{static mount(){if(global.loadedEnv)return;const e=this.loadOptions();if(!e.env_path)return;const a=main.parse(e__default.default.readFileSync(e.env_path));for(let e in a)process.env[e]=a[e];global.loadedEnv=!0}static loadOptions(){const e={env_path:void 0},a=`${process.cwd()}/config/config`;return e__default.default.existsSync(`${a}.js`)?Object.assign(e,require(a).default||require(a)):e}}function cache_busting(e,a){const i=`${a__default.default.join(process.cwd(),"public")}/${e.replace(/^\//,"")}`;if(!e__default.default.existsSync(i))return e;const n=new Date(e__default.default.statSync(i).mtime).getTime();return`${a}/${e.replace(/^\//,"")}?${n}`}var html=Object.freeze({__proto__:null,cache_busting:cache_busting});function json_stringify(e,a=0){return JSON.stringify(e,null,a)}function json_parse(e){return JSON.parse(e)}var object=Object.freeze({__proto__:null,json_stringify:json_stringify,json_parse:json_parse}),isAsyncFunction=e=>e&&e.constructor&&e.constructor===Object.getPrototypeOf((async function(){})).constructor,isString=e=>"string"==typeof e&&""!==e,isObject=e=>null!=e&&"object"==typeof e&&!1===Array.isArray(e),isArray=e=>"[object Array]"===Object.prototype.toString.call(e),utils={isAsyncFunction:isAsyncFunction,isString:isString,isObject:isObject,isArray:isArray},index$5=Object.freeze({__proto__:null,default:utils});function replace(e,a,i){return e.replace(a,i)}function split(e,a){return utils.isString(e)?(utils.isString(a)||(a=","),e.split(a)):[]}function format_bytes(e,a=0){let i=0,n="Bytes";if(e&&e>0){const t=1024,s=a<0?0:a,o=Math.floor(Math.log(e)/Math.log(t));n=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][o],i=parseFloat((e/Math.pow(t,o)).toFixed(s))}return`${i}${n}`}var string=Object.freeze({__proto__:null,replace:replace,split:split,format_bytes:format_bytes});function eq(e,a){return e===a}function eqw(e,a){return e==a}function neq(e,a){return e!==a}function neqw(e,a){return e!=a}function lt(e,a){return e<a}function lte(e,a){return e<=a}function gt(e,a){return e>a}function gte(e,a){return e>=a}function not(e){return!e}function ifx(e,a,i){return utils.isObject(i)&&"ifx"===i.name&&i.hasOwnProperty("hash")&&(i=""),e?a:i}function empty(e){return"string"==typeof e?e=e.replace(/^[\s ]+|[\s ]+$/g,""):Array.isArray(e)&&0===e.length&&(e=null),!e}function not_empty(e){return"string"==typeof e?e=e.replace(/^[\s ]+|[\s ]+$/g,""):Array.isArray(e)&&0===e.length&&(e=null),!!e}function count(e){return!!Array.isArray(e)&&e.length}function and(...e){utils.isObject(e[e.length-1])&&e.pop();for(let a of e)if(!a)return!1;return!0}function or(...e){utils.isObject(e[e.length-1])&&e.pop();for(let a of e)if(a)return!0;return!1}function coalesce(...e){utils.isObject(e[e.length-1])&&e.pop();for(let a of e)if(a)return a;return e.pop()}function includes(e,a,i=!0){if(!Array.isArray(e)||0===e.length)return!1;for(let n of e)if(i&&n===a||!i&&n==a)return!0;return!1}var comparison=Object.freeze({__proto__:null,eq:eq,eqw:eqw,neq:neq,neqw:neqw,lt:lt,lte:lte,gt:gt,gte:gte,not:not,ifx:ifx,empty:empty,not_empty:not_empty,count:count,and:and,or:or,coalesce:coalesce,includes:includes}),commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function createCommonjsModule(e,a){return e(a={exports:{}},a.exports),a.exports}function getCjsExportFromNamespace(e){return e&&e.default||e}var moment=createCommonjsModule((function(e,a){e.exports=function(){var a,i;function n(){return a.apply(null,arguments)}function t(e){a=e}function s(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function r(e,a){return Object.prototype.hasOwnProperty.call(e,a)}function c(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var a;for(a in e)if(r(e,a))return!1;return!0}function l(e){return void 0===e}function p(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function u(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,a){var i,n=[],t=e.length;for(i=0;i<t;++i)n.push(a(e[i],i));return n}function m(e,a){for(var i in a)r(a,i)&&(e[i]=a[i]);return r(a,"toString")&&(e.toString=a.toString),r(a,"valueOf")&&(e.valueOf=a.valueOf),e}function f(e,a,i,n){return Vi(e,a,i,n,!0).utc()}function h(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function v(e){return null==e._pf&&(e._pf=h()),e._pf}function x(e){if(null==e._isValid){var a=v(e),n=i.call(a.parsedDateParts,(function(e){return null!=e})),t=!isNaN(e._d.getTime())&&a.overflow<0&&!a.empty&&!a.invalidEra&&!a.invalidMonth&&!a.invalidWeekday&&!a.weekdayMismatch&&!a.nullInput&&!a.invalidFormat&&!a.userInvalidated&&(!a.meridiem||a.meridiem&&n);if(e._strict&&(t=t&&0===a.charsLeftOver&&0===a.unusedTokens.length&&void 0===a.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return t;e._isValid=t}return e._isValid}function g(e){var a=f(NaN);return null!=e?m(v(a),e):v(a).userInvalidated=!0,a}i=Array.prototype.some?Array.prototype.some:function(e){var a,i=Object(this),n=i.length>>>0;for(a=0;a<n;a++)if(a in i&&e.call(this,i[a],a,i))return!0;return!1};var b=n.momentProperties=[],y=!1;function _(e,a){var i,n,t,s=b.length;if(l(a._isAMomentObject)||(e._isAMomentObject=a._isAMomentObject),l(a._i)||(e._i=a._i),l(a._f)||(e._f=a._f),l(a._l)||(e._l=a._l),l(a._strict)||(e._strict=a._strict),l(a._tzm)||(e._tzm=a._tzm),l(a._isUTC)||(e._isUTC=a._isUTC),l(a._offset)||(e._offset=a._offset),l(a._pf)||(e._pf=v(a)),l(a._locale)||(e._locale=a._locale),s>0)for(i=0;i<s;i++)l(t=a[n=b[i]])||(e[n]=t);return e}function w(e){_(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,n.updateOffset(this),y=!1)}function k(e){return e instanceof w||null!=e&&null!=e._isAMomentObject}function S(e){!1===n.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function O(e,a){var i=!0;return m((function(){if(null!=n.deprecationHandler&&n.deprecationHandler(null,e),i){var t,s,o,c=[],l=arguments.length;for(s=0;s<l;s++){if(t="","object"==typeof arguments[s]){for(o in t+="\n["+s+"] ",arguments[0])r(arguments[0],o)&&(t+=o+": "+arguments[0][o]+", ");t=t.slice(0,-2)}else t=arguments[s];c.push(t)}S(e+"\nArguments: "+Array.prototype.slice.call(c).join("")+"\n"+(new Error).stack),i=!1}return a.apply(this,arguments)}),a)}var D,M={};function j(e,a){null!=n.deprecationHandler&&n.deprecationHandler(e,a),M[e]||(S(a),M[e]=!0)}function T(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function Y(e){var a,i;for(i in e)r(e,i)&&(T(a=e[i])?this[i]=a:this["_"+i]=a);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function E(e,a){var i,n=m({},e);for(i in a)r(a,i)&&(o(e[i])&&o(a[i])?(n[i]={},m(n[i],e[i]),m(n[i],a[i])):null!=a[i]?n[i]=a[i]:delete n[i]);for(i in e)r(e,i)&&!r(a,i)&&o(e[i])&&(n[i]=m({},n[i]));return n}function N(e){null!=e&&this.set(e)}n.suppressDeprecationWarnings=!1,n.deprecationHandler=null,D=Object.keys?Object.keys:function(e){var a,i=[];for(a in e)r(e,a)&&i.push(a);return i};var C={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function A(e,a,i){var n=this._calendar[e]||this._calendar.sameElse;return T(n)?n.call(a,i):n}function R(e,a,i){var n=""+Math.abs(e),t=a-n.length;return(e>=0?i?"+":"":"-")+Math.pow(10,Math.max(0,t)).toString().substr(1)+n}var P=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,L=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,F={},I={};function U(e,a,i,n){var t=n;"string"==typeof n&&(t=function(){return this[n]()}),e&&(I[e]=t),a&&(I[a[0]]=function(){return R(t.apply(this,arguments),a[1],a[2])}),i&&(I[i]=function(){return this.localeData().ordinal(t.apply(this,arguments),e)})}function z(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function $(e){var a,i,n=e.match(P);for(a=0,i=n.length;a<i;a++)I[n[a]]?n[a]=I[n[a]]:n[a]=z(n[a]);return function(a){var t,s="";for(t=0;t<i;t++)s+=T(n[t])?n[t].call(a,e):n[t];return s}}function W(e,a){return e.isValid()?(a=q(a,e.localeData()),F[a]=F[a]||$(a),F[a](e)):e.localeData().invalidDate()}function q(e,a){var i=5;function n(e){return a.longDateFormat(e)||e}for(L.lastIndex=0;i>=0&&L.test(e);)e=e.replace(L,n),L.lastIndex=0,i-=1;return e}var H={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function G(e){var a=this._longDateFormat[e],i=this._longDateFormat[e.toUpperCase()];return a||!i?a:(this._longDateFormat[e]=i.match(P).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var V="Invalid date";function B(){return this._invalidDate}var Z="%d",J=/\d{1,2}/;function Q(e){return this._ordinal.replace("%d",e)}var K={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function X(e,a,i,n){var t=this._relativeTime[i];return T(t)?t(e,a,i,n):t.replace(/%d/i,e)}function ee(e,a){var i=this._relativeTime[e>0?"future":"past"];return T(i)?i(a):i.replace(/%s/i,a)}var ae={};function ie(e,a){var i=e.toLowerCase();ae[i]=ae[i+"s"]=ae[a]=e}function ne(e){return"string"==typeof e?ae[e]||ae[e.toLowerCase()]:void 0}function te(e){var a,i,n={};for(i in e)r(e,i)&&(a=ne(i))&&(n[a]=e[i]);return n}var se={};function oe(e,a){se[e]=a}function re(e){var a,i=[];for(a in e)r(e,a)&&i.push({unit:a,priority:se[a]});return i.sort((function(e,a){return e.priority-a.priority})),i}function ce(e){return e%4==0&&e%100!=0||e%400==0}function le(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function pe(e){var a=+e,i=0;return 0!==a&&isFinite(a)&&(i=le(a)),i}function ue(e,a){return function(i){return null!=i?(me(this,e,i),n.updateOffset(this,a),this):de(this,e)}}function de(e,a){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+a]():NaN}function me(e,a,i){e.isValid()&&!isNaN(i)&&("FullYear"===a&&ce(e.year())&&1===e.month()&&29===e.date()?(i=pe(i),e._d["set"+(e._isUTC?"UTC":"")+a](i,e.month(),Xe(i,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+a](i))}function fe(e){return T(this[e=ne(e)])?this[e]():this}function he(e,a){if("object"==typeof e){var i,n=re(e=te(e)),t=n.length;for(i=0;i<t;i++)this[n[i].unit](e[n[i].unit])}else if(T(this[e=ne(e)]))return this[e](a);return this}var ve,xe=/\d/,ge=/\d\d/,be=/\d{3}/,ye=/\d{4}/,_e=/[+-]?\d{6}/,we=/\d\d?/,ke=/\d\d\d\d?/,Se=/\d\d\d\d\d\d?/,Oe=/\d{1,3}/,De=/\d{1,4}/,Me=/[+-]?\d{1,6}/,je=/\d+/,Te=/[+-]?\d+/,Ye=/Z|[+-]\d\d:?\d\d/gi,Ee=/Z|[+-]\d\d(?::?\d\d)?/gi,Ne=/[+-]?\d+(\.\d{1,3})?/,Ce=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Ae(e,a,i){ve[e]=T(a)?a:function(e,n){return e&&i?i:a}}function Re(e,a){return r(ve,e)?ve[e](a._strict,a._locale):new RegExp(Pe(e))}function Pe(e){return Le(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,a,i,n,t){return a||i||n||t})))}function Le(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ve={};var Fe={};function Ie(e,a){var i,n,t=a;for("string"==typeof e&&(e=[e]),p(a)&&(t=function(e,i){i[a]=pe(e)}),n=e.length,i=0;i<n;i++)Fe[e[i]]=t}function Ue(e,a){Ie(e,(function(e,i,n,t){n._w=n._w||{},a(e,n._w,n,t)}))}function ze(e,a,i){null!=a&&r(Fe,e)&&Fe[e](a,i._a,i,e)}var $e,We=0,qe=1,He=2,Ge=3,Ve=4,Be=5,Ze=6,Je=7,Qe=8;function Ke(e,a){return(e%a+a)%a}function Xe(e,a){if(isNaN(e)||isNaN(a))return NaN;var i=Ke(a,12);return e+=(a-i)/12,1===i?ce(e)?29:28:31-i%7%2}$e=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var a;for(a=0;a<this.length;++a)if(this[a]===e)return a;return-1},U("M",["MM",2],"Mo",(function(){return this.month()+1})),U("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),U("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),ie("month","M"),oe("month",8),Ae("M",we),Ae("MM",we,ge),Ae("MMM",(function(e,a){return a.monthsShortRegex(e)})),Ae("MMMM",(function(e,a){return a.monthsRegex(e)})),Ie(["M","MM"],(function(e,a){a[qe]=pe(e)-1})),Ie(["MMM","MMMM"],(function(e,a,i,n){var t=i._locale.monthsParse(e,n,i._strict);null!=t?a[qe]=t:v(i).invalidMonth=e}));var ea="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),aa="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ia=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,na=Ce,ta=Ce;function sa(e,a){return e?s(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ia).test(a)?"format":"standalone"][e.month()]:s(this._months)?this._months:this._months.standalone}function oa(e,a){return e?s(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ia.test(a)?"format":"standalone"][e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ra(e,a,i){var n,t,s,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)s=f([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(s,"").toLocaleLowerCase();return i?"MMM"===a?-1!==(t=$e.call(this._shortMonthsParse,o))?t:null:-1!==(t=$e.call(this._longMonthsParse,o))?t:null:"MMM"===a?-1!==(t=$e.call(this._shortMonthsParse,o))||-1!==(t=$e.call(this._longMonthsParse,o))?t:null:-1!==(t=$e.call(this._longMonthsParse,o))||-1!==(t=$e.call(this._shortMonthsParse,o))?t:null}function ca(e,a,i){var n,t,s;if(this._monthsParseExact)return ra.call(this,e,a,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(t=f([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(t,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(t,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(s="^"+this.months(t,"")+"|^"+this.monthsShort(t,""),this._monthsParse[n]=new RegExp(s.replace(".",""),"i")),i&&"MMMM"===a&&this._longMonthsParse[n].test(e))return n;if(i&&"MMM"===a&&this._shortMonthsParse[n].test(e))return n;if(!i&&this._monthsParse[n].test(e))return n}}function la(e,a){var i;if(!e.isValid())return e;if("string"==typeof a)if(/^\d+$/.test(a))a=pe(a);else if(!p(a=e.localeData().monthsParse(a)))return e;return i=Math.min(e.date(),Xe(e.year(),a)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](a,i),e}function pa(e){return null!=e?(la(this,e),n.updateOffset(this,!0),this):de(this,"Month")}function ua(){return Xe(this.year(),this.month())}function da(e){return this._monthsParseExact?(r(this,"_monthsRegex")||fa.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(r(this,"_monthsShortRegex")||(this._monthsShortRegex=na),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function ma(e){return this._monthsParseExact?(r(this,"_monthsRegex")||fa.call(this),e?this._monthsStrictRegex:this._monthsRegex):(r(this,"_monthsRegex")||(this._monthsRegex=ta),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function fa(){function e(e,a){return a.length-e.length}var a,i,n=[],t=[],s=[];for(a=0;a<12;a++)i=f([2e3,a]),n.push(this.monthsShort(i,"")),t.push(this.months(i,"")),s.push(this.months(i,"")),s.push(this.monthsShort(i,""));for(n.sort(e),t.sort(e),s.sort(e),a=0;a<12;a++)n[a]=Le(n[a]),t[a]=Le(t[a]);for(a=0;a<24;a++)s[a]=Le(s[a]);this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+t.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function ha(e){return ce(e)?366:365}U("Y",0,0,(function(){var e=this.year();return e<=9999?R(e,4):"+"+e})),U(0,["YY",2],0,(function(){return this.year()%100})),U(0,["YYYY",4],0,"year"),U(0,["YYYYY",5],0,"year"),U(0,["YYYYYY",6,!0],0,"year"),ie("year","y"),oe("year",1),Ae("Y",Te),Ae("YY",we,ge),Ae("YYYY",De,ye),Ae("YYYYY",Me,_e),Ae("YYYYYY",Me,_e),Ie(["YYYYY","YYYYYY"],We),Ie("YYYY",(function(e,a){a[We]=2===e.length?n.parseTwoDigitYear(e):pe(e)})),Ie("YY",(function(e,a){a[We]=n.parseTwoDigitYear(e)})),Ie("Y",(function(e,a){a[We]=parseInt(e,10)})),n.parseTwoDigitYear=function(e){return pe(e)+(pe(e)>68?1900:2e3)};var va=ue("FullYear",!0);function xa(){return ce(this.year())}function ga(e,a,i,n,t,s,o){var r;return e<100&&e>=0?(r=new Date(e+400,a,i,n,t,s,o),isFinite(r.getFullYear())&&r.setFullYear(e)):r=new Date(e,a,i,n,t,s,o),r}function ba(e){var a,i;return e<100&&e>=0?((i=Array.prototype.slice.call(arguments))[0]=e+400,a=new Date(Date.UTC.apply(null,i)),isFinite(a.getUTCFullYear())&&a.setUTCFullYear(e)):a=new Date(Date.UTC.apply(null,arguments)),a}function ya(e,a,i){var n=7+a-i;return-(7+ba(e,0,n).getUTCDay()-a)%7+n-1}function _a(e,a,i,n,t){var s,o,r=1+7*(a-1)+(7+i-n)%7+ya(e,n,t);return r<=0?o=ha(s=e-1)+r:r>ha(e)?(s=e+1,o=r-ha(e)):(s=e,o=r),{year:s,dayOfYear:o}}function wa(e,a,i){var n,t,s=ya(e.year(),a,i),o=Math.floor((e.dayOfYear()-s-1)/7)+1;return o<1?n=o+ka(t=e.year()-1,a,i):o>ka(e.year(),a,i)?(n=o-ka(e.year(),a,i),t=e.year()+1):(t=e.year(),n=o),{week:n,year:t}}function ka(e,a,i){var n=ya(e,a,i),t=ya(e+1,a,i);return(ha(e)-n+t)/7}function Sa(e){return wa(e,this._week.dow,this._week.doy).week}U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),ie("week","w"),ie("isoWeek","W"),oe("week",5),oe("isoWeek",5),Ae("w",we),Ae("ww",we,ge),Ae("W",we),Ae("WW",we,ge),Ue(["w","ww","W","WW"],(function(e,a,i,n){a[n.substr(0,1)]=pe(e)}));var Oa={dow:0,doy:6};function Da(){return this._week.dow}function Ma(){return this._week.doy}function ja(e){var a=this.localeData().week(this);return null==e?a:this.add(7*(e-a),"d")}function Ta(e){var a=wa(this,1,4).week;return null==e?a:this.add(7*(e-a),"d")}function Ya(e,a){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=a.weekdaysParse(e))?e:null:parseInt(e,10)}function Ea(e,a){return"string"==typeof e?a.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Na(e,a){return e.slice(a,7).concat(e.slice(0,a))}U("d",0,"do","day"),U("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),U("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),U("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),ie("day","d"),ie("weekday","e"),ie("isoWeekday","E"),oe("day",11),oe("weekday",11),oe("isoWeekday",11),Ae("d",we),Ae("e",we),Ae("E",we),Ae("dd",(function(e,a){return a.weekdaysMinRegex(e)})),Ae("ddd",(function(e,a){return a.weekdaysShortRegex(e)})),Ae("dddd",(function(e,a){return a.weekdaysRegex(e)})),Ue(["dd","ddd","dddd"],(function(e,a,i,n){var t=i._locale.weekdaysParse(e,n,i._strict);null!=t?a.d=t:v(i).invalidWeekday=e})),Ue(["d","e","E"],(function(e,a,i,n){a[n]=pe(e)}));var Ca="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Aa="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ra="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Pa=Ce,La=Ce,Fa=Ce;function Ia(e,a){var i=s(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(a)?"format":"standalone"];return!0===e?Na(i,this._week.dow):e?i[e.day()]:i}function Ua(e){return!0===e?Na(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function za(e){return!0===e?Na(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function $a(e,a,i){var n,t,s,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)s=f([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(s,"").toLocaleLowerCase();return i?"dddd"===a?-1!==(t=$e.call(this._weekdaysParse,o))?t:null:"ddd"===a?-1!==(t=$e.call(this._shortWeekdaysParse,o))?t:null:-1!==(t=$e.call(this._minWeekdaysParse,o))?t:null:"dddd"===a?-1!==(t=$e.call(this._weekdaysParse,o))||-1!==(t=$e.call(this._shortWeekdaysParse,o))||-1!==(t=$e.call(this._minWeekdaysParse,o))?t:null:"ddd"===a?-1!==(t=$e.call(this._shortWeekdaysParse,o))||-1!==(t=$e.call(this._weekdaysParse,o))||-1!==(t=$e.call(this._minWeekdaysParse,o))?t:null:-1!==(t=$e.call(this._minWeekdaysParse,o))||-1!==(t=$e.call(this._weekdaysParse,o))||-1!==(t=$e.call(this._shortWeekdaysParse,o))?t:null}function Wa(e,a,i){var n,t,s;if(this._weekdaysParseExact)return $a.call(this,e,a,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(t=f([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(t,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(t,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(t,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(s="^"+this.weekdays(t,"")+"|^"+this.weekdaysShort(t,"")+"|^"+this.weekdaysMin(t,""),this._weekdaysParse[n]=new RegExp(s.replace(".",""),"i")),i&&"dddd"===a&&this._fullWeekdaysParse[n].test(e))return n;if(i&&"ddd"===a&&this._shortWeekdaysParse[n].test(e))return n;if(i&&"dd"===a&&this._minWeekdaysParse[n].test(e))return n;if(!i&&this._weekdaysParse[n].test(e))return n}}function qa(e){if(!this.isValid())return null!=e?this:NaN;var a=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Ya(e,this.localeData()),this.add(e-a,"d")):a}function Ha(e){if(!this.isValid())return null!=e?this:NaN;var a=(this.day()+7-this.localeData()._week.dow)%7;return null==e?a:this.add(e-a,"d")}function Ga(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var a=Ea(e,this.localeData());return this.day(this.day()%7?a:a-7)}return this.day()||7}function Va(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Ja.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(r(this,"_weekdaysRegex")||(this._weekdaysRegex=Pa),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ba(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Ja.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(r(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=La),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Za(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Ja.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(r(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Fa),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ja(){function e(e,a){return a.length-e.length}var a,i,n,t,s,o=[],r=[],c=[],l=[];for(a=0;a<7;a++)i=f([2e3,1]).day(a),n=Le(this.weekdaysMin(i,"")),t=Le(this.weekdaysShort(i,"")),s=Le(this.weekdays(i,"")),o.push(n),r.push(t),c.push(s),l.push(n),l.push(t),l.push(s);o.sort(e),r.sort(e),c.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Qa(){return this.hours()%12||12}function Ka(){return this.hours()||24}function Xa(e,a){U(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),a)}))}function ei(e,a){return a._meridiemParse}function ai(e){return"p"===(e+"").toLowerCase().charAt(0)}U("H",["HH",2],0,"hour"),U("h",["hh",2],0,Qa),U("k",["kk",2],0,Ka),U("hmm",0,0,(function(){return""+Qa.apply(this)+R(this.minutes(),2)})),U("hmmss",0,0,(function(){return""+Qa.apply(this)+R(this.minutes(),2)+R(this.seconds(),2)})),U("Hmm",0,0,(function(){return""+this.hours()+R(this.minutes(),2)})),U("Hmmss",0,0,(function(){return""+this.hours()+R(this.minutes(),2)+R(this.seconds(),2)})),Xa("a",!0),Xa("A",!1),ie("hour","h"),oe("hour",13),Ae("a",ei),Ae("A",ei),Ae("H",we),Ae("h",we),Ae("k",we),Ae("HH",we,ge),Ae("hh",we,ge),Ae("kk",we,ge),Ae("hmm",ke),Ae("hmmss",Se),Ae("Hmm",ke),Ae("Hmmss",Se),Ie(["H","HH"],Ge),Ie(["k","kk"],(function(e,a,i){var n=pe(e);a[Ge]=24===n?0:n})),Ie(["a","A"],(function(e,a,i){i._isPm=i._locale.isPM(e),i._meridiem=e})),Ie(["h","hh"],(function(e,a,i){a[Ge]=pe(e),v(i).bigHour=!0})),Ie("hmm",(function(e,a,i){var n=e.length-2;a[Ge]=pe(e.substr(0,n)),a[Ve]=pe(e.substr(n)),v(i).bigHour=!0})),Ie("hmmss",(function(e,a,i){var n=e.length-4,t=e.length-2;a[Ge]=pe(e.substr(0,n)),a[Ve]=pe(e.substr(n,2)),a[Be]=pe(e.substr(t)),v(i).bigHour=!0})),Ie("Hmm",(function(e,a,i){var n=e.length-2;a[Ge]=pe(e.substr(0,n)),a[Ve]=pe(e.substr(n))})),Ie("Hmmss",(function(e,a,i){var n=e.length-4,t=e.length-2;a[Ge]=pe(e.substr(0,n)),a[Ve]=pe(e.substr(n,2)),a[Be]=pe(e.substr(t))}));var ii=/[ap]\.?m?\.?/i,ni=ue("Hours",!0);function ti(e,a,i){return e>11?i?"pm":"PM":i?"am":"AM"}var si,oi={calendar:C,longDateFormat:H,invalidDate:V,ordinal:Z,dayOfMonthOrdinalParse:J,relativeTime:K,months:ea,monthsShort:aa,week:Oa,weekdays:Ca,weekdaysMin:Ra,weekdaysShort:Aa,meridiemParse:ii},ri={},ci={};function li(e,a){var i,n=Math.min(e.length,a.length);for(i=0;i<n;i+=1)if(e[i]!==a[i])return i;return n}function pi(e){return e?e.toLowerCase().replace("_","-"):e}function ui(e){for(var a,i,n,t,s=0;s<e.length;){for(a=(t=pi(e[s]).split("-")).length,i=(i=pi(e[s+1]))?i.split("-"):null;a>0;){if(n=mi(t.slice(0,a).join("-")))return n;if(i&&i.length>=a&&li(t,i)>=a-1)break;a--}s++}return si}function di(e){return null!=e.match("^[^/\\\\]*$")}function mi(a){var i=null;if(void 0===ri[a]&&e&&e.exports&&di(a))try{i=si._abbr,commonjsRequire("./locale/"+a),fi(i)}catch(e){ri[a]=null}return ri[a]}function fi(e,a){var i;return e&&((i=l(a)?xi(e):hi(e,a))?si=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),si._abbr}function hi(e,a){if(null!==a){var i,n=oi;if(a.abbr=e,null!=ri[e])j("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=ri[e]._config;else if(null!=a.parentLocale)if(null!=ri[a.parentLocale])n=ri[a.parentLocale]._config;else{if(null==(i=mi(a.parentLocale)))return ci[a.parentLocale]||(ci[a.parentLocale]=[]),ci[a.parentLocale].push({name:e,config:a}),null;n=i._config}return ri[e]=new N(E(n,a)),ci[e]&&ci[e].forEach((function(e){hi(e.name,e.config)})),fi(e),ri[e]}return delete ri[e],null}function vi(e,a){if(null!=a){var i,n,t=oi;null!=ri[e]&&null!=ri[e].parentLocale?ri[e].set(E(ri[e]._config,a)):(null!=(n=mi(e))&&(t=n._config),a=E(t,a),null==n&&(a.abbr=e),(i=new N(a)).parentLocale=ri[e],ri[e]=i),fi(e)}else null!=ri[e]&&(null!=ri[e].parentLocale?(ri[e]=ri[e].parentLocale,e===fi()&&fi(e)):null!=ri[e]&&delete ri[e]);return ri[e]}function xi(e){var a;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return si;if(!s(e)){if(a=mi(e))return a;e=[e]}return ui(e)}function gi(){return D(ri)}function bi(e){var a,i=e._a;return i&&-2===v(e).overflow&&(a=i[qe]<0||i[qe]>11?qe:i[He]<1||i[He]>Xe(i[We],i[qe])?He:i[Ge]<0||i[Ge]>24||24===i[Ge]&&(0!==i[Ve]||0!==i[Be]||0!==i[Ze])?Ge:i[Ve]<0||i[Ve]>59?Ve:i[Be]<0||i[Be]>59?Be:i[Ze]<0||i[Ze]>999?Ze:-1,v(e)._overflowDayOfYear&&(a<We||a>He)&&(a=He),v(e)._overflowWeeks&&-1===a&&(a=Je),v(e)._overflowWeekday&&-1===a&&(a=Qe),v(e).overflow=a),e}var yi=/^\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)?)?$/,_i=/^\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)?)?$/,wi=/Z|[+-]\d\d(?::?\d\d)?/,ki=[["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}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Si=[["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/]],Oi=/^\/?Date\((-?\d+)/i,Di=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Mi={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function ji(e){var a,i,n,t,s,o,r=e._i,c=yi.exec(r)||_i.exec(r),l=ki.length,p=Si.length;if(c){for(v(e).iso=!0,a=0,i=l;a<i;a++)if(ki[a][1].exec(c[1])){t=ki[a][0],n=!1!==ki[a][2];break}if(null==t)return void(e._isValid=!1);if(c[3]){for(a=0,i=p;a<i;a++)if(Si[a][1].exec(c[3])){s=(c[2]||" ")+Si[a][0];break}if(null==s)return void(e._isValid=!1)}if(!n&&null!=s)return void(e._isValid=!1);if(c[4]){if(!wi.exec(c[4]))return void(e._isValid=!1);o="Z"}e._f=t+(s||"")+(o||""),Ui(e)}else e._isValid=!1}function Ti(e,a,i,n,t,s){var o=[Yi(e),aa.indexOf(a),parseInt(i,10),parseInt(n,10),parseInt(t,10)];return s&&o.push(parseInt(s,10)),o}function Yi(e){var a=parseInt(e,10);return a<=49?2e3+a:a<=999?1900+a:a}function Ei(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Ni(e,a,i){return!e||Aa.indexOf(e)===new Date(a[0],a[1],a[2]).getDay()||(v(i).weekdayMismatch=!0,i._isValid=!1,!1)}function Ci(e,a,i){if(e)return Mi[e];if(a)return 0;var n=parseInt(i,10),t=n%100;return(n-t)/100*60+t}function Ai(e){var a,i=Di.exec(Ei(e._i));if(i){if(a=Ti(i[4],i[3],i[2],i[5],i[6],i[7]),!Ni(i[1],a,e))return;e._a=a,e._tzm=Ci(i[8],i[9],i[10]),e._d=ba.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),v(e).rfc2822=!0}else e._isValid=!1}function Ri(e){var a=Oi.exec(e._i);null===a?(ji(e),!1===e._isValid&&(delete e._isValid,Ai(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:n.createFromInputFallback(e)))):e._d=new Date(+a[1])}function Pi(e,a,i){return null!=e?e:null!=a?a:i}function Li(e){var a=new Date(n.now());return e._useUTC?[a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()]:[a.getFullYear(),a.getMonth(),a.getDate()]}function Fi(e){var a,i,n,t,s,o=[];if(!e._d){for(n=Li(e),e._w&&null==e._a[He]&&null==e._a[qe]&&Ii(e),null!=e._dayOfYear&&(s=Pi(e._a[We],n[We]),(e._dayOfYear>ha(s)||0===e._dayOfYear)&&(v(e)._overflowDayOfYear=!0),i=ba(s,0,e._dayOfYear),e._a[qe]=i.getUTCMonth(),e._a[He]=i.getUTCDate()),a=0;a<3&&null==e._a[a];++a)e._a[a]=o[a]=n[a];for(;a<7;a++)e._a[a]=o[a]=null==e._a[a]?2===a?1:0:e._a[a];24===e._a[Ge]&&0===e._a[Ve]&&0===e._a[Be]&&0===e._a[Ze]&&(e._nextDay=!0,e._a[Ge]=0),e._d=(e._useUTC?ba:ga).apply(null,o),t=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ge]=24),e._w&&void 0!==e._w.d&&e._w.d!==t&&(v(e).weekdayMismatch=!0)}}function Ii(e){var a,i,n,t,s,o,r,c,l;null!=(a=e._w).GG||null!=a.W||null!=a.E?(s=1,o=4,i=Pi(a.GG,e._a[We],wa(Bi(),1,4).year),n=Pi(a.W,1),((t=Pi(a.E,1))<1||t>7)&&(c=!0)):(s=e._locale._week.dow,o=e._locale._week.doy,l=wa(Bi(),s,o),i=Pi(a.gg,e._a[We],l.year),n=Pi(a.w,l.week),null!=a.d?((t=a.d)<0||t>6)&&(c=!0):null!=a.e?(t=a.e+s,(a.e<0||a.e>6)&&(c=!0)):t=s),n<1||n>ka(i,s,o)?v(e)._overflowWeeks=!0:null!=c?v(e)._overflowWeekday=!0:(r=_a(i,n,t,s,o),e._a[We]=r.year,e._dayOfYear=r.dayOfYear)}function Ui(e){if(e._f!==n.ISO_8601)if(e._f!==n.RFC_2822){e._a=[],v(e).empty=!0;var a,i,t,s,o,r,c,l=""+e._i,p=l.length,u=0;for(c=(t=q(e._f,e._locale).match(P)||[]).length,a=0;a<c;a++)s=t[a],(i=(l.match(Re(s,e))||[])[0])&&((o=l.substr(0,l.indexOf(i))).length>0&&v(e).unusedInput.push(o),l=l.slice(l.indexOf(i)+i.length),u+=i.length),I[s]?(i?v(e).empty=!1:v(e).unusedTokens.push(s),ze(s,i,e)):e._strict&&!i&&v(e).unusedTokens.push(s);v(e).charsLeftOver=p-u,l.length>0&&v(e).unusedInput.push(l),e._a[Ge]<=12&&!0===v(e).bigHour&&e._a[Ge]>0&&(v(e).bigHour=void 0),v(e).parsedDateParts=e._a.slice(0),v(e).meridiem=e._meridiem,e._a[Ge]=zi(e._locale,e._a[Ge],e._meridiem),null!==(r=v(e).era)&&(e._a[We]=e._locale.erasConvertYear(r,e._a[We])),Fi(e),bi(e)}else Ai(e);else ji(e)}function zi(e,a,i){var n;return null==i?a:null!=e.meridiemHour?e.meridiemHour(a,i):null!=e.isPM?((n=e.isPM(i))&&a<12&&(a+=12),n||12!==a||(a=0),a):a}function $i(e){var a,i,n,t,s,o,r=!1,c=e._f.length;if(0===c)return v(e).invalidFormat=!0,void(e._d=new Date(NaN));for(t=0;t<c;t++)s=0,o=!1,a=_({},e),null!=e._useUTC&&(a._useUTC=e._useUTC),a._f=e._f[t],Ui(a),x(a)&&(o=!0),s+=v(a).charsLeftOver,s+=10*v(a).unusedTokens.length,v(a).score=s,r?s<n&&(n=s,i=a):(null==n||s<n||o)&&(n=s,i=a,o&&(r=!0));m(e,i||a)}function Wi(e){if(!e._d){var a=te(e._i),i=void 0===a.day?a.date:a.day;e._a=d([a.year,a.month,i,a.hour,a.minute,a.second,a.millisecond],(function(e){return e&&parseInt(e,10)})),Fi(e)}}function qi(e){var a=new w(bi(Hi(e)));return a._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function Hi(e){var a=e._i,i=e._f;return e._locale=e._locale||xi(e._l),null===a||void 0===i&&""===a?g({nullInput:!0}):("string"==typeof a&&(e._i=a=e._locale.preparse(a)),k(a)?new w(bi(a)):(u(a)?e._d=a:s(i)?$i(e):i?Ui(e):Gi(e),x(e)||(e._d=null),e))}function Gi(e){var a=e._i;l(a)?e._d=new Date(n.now()):u(a)?e._d=new Date(a.valueOf()):"string"==typeof a?Ri(e):s(a)?(e._a=d(a.slice(0),(function(e){return parseInt(e,10)})),Fi(e)):o(a)?Wi(e):p(a)?e._d=new Date(a):n.createFromInputFallback(e)}function Vi(e,a,i,n,t){var r={};return!0!==a&&!1!==a||(n=a,a=void 0),!0!==i&&!1!==i||(n=i,i=void 0),(o(e)&&c(e)||s(e)&&0===e.length)&&(e=void 0),r._isAMomentObject=!0,r._useUTC=r._isUTC=t,r._l=i,r._i=e,r._f=a,r._strict=n,qi(r)}function Bi(e,a,i,n){return Vi(e,a,i,n,!1)}n.createFromInputFallback=O("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. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),n.ISO_8601=function(){},n.RFC_2822=function(){};var Zi=O("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Bi.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:g()})),Ji=O("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Bi.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:g()}));function Qi(e,a){var i,n;if(1===a.length&&s(a[0])&&(a=a[0]),!a.length)return Bi();for(i=a[0],n=1;n<a.length;++n)a[n].isValid()&&!a[n][e](i)||(i=a[n]);return i}function Ki(){return Qi("isBefore",[].slice.call(arguments,0))}function Xi(){return Qi("isAfter",[].slice.call(arguments,0))}var en=function(){return Date.now?Date.now():+new Date},an=["year","quarter","month","week","day","hour","minute","second","millisecond"];function nn(e){var a,i,n=!1,t=an.length;for(a in e)if(r(e,a)&&(-1===$e.call(an,a)||null!=e[a]&&isNaN(e[a])))return!1;for(i=0;i<t;++i)if(e[an[i]]){if(n)return!1;parseFloat(e[an[i]])!==pe(e[an[i]])&&(n=!0)}return!0}function tn(){return this._isValid}function sn(){return jn(NaN)}function on(e){var a=te(e),i=a.year||0,n=a.quarter||0,t=a.month||0,s=a.week||a.isoWeek||0,o=a.day||0,r=a.hour||0,c=a.minute||0,l=a.second||0,p=a.millisecond||0;this._isValid=nn(a),this._milliseconds=+p+1e3*l+6e4*c+1e3*r*60*60,this._days=+o+7*s,this._months=+t+3*n+12*i,this._data={},this._locale=xi(),this._bubble()}function rn(e){return e instanceof on}function cn(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function ln(e,a,i){var n,t=Math.min(e.length,a.length),s=Math.abs(e.length-a.length),o=0;for(n=0;n<t;n++)(i&&e[n]!==a[n]||!i&&pe(e[n])!==pe(a[n]))&&o++;return o+s}function pn(e,a){U(e,0,0,(function(){var e=this.utcOffset(),i="+";return e<0&&(e=-e,i="-"),i+R(~~(e/60),2)+a+R(~~e%60,2)}))}pn("Z",":"),pn("ZZ",""),Ae("Z",Ee),Ae("ZZ",Ee),Ie(["Z","ZZ"],(function(e,a,i){i._useUTC=!0,i._tzm=dn(Ee,e)}));var un=/([\+\-]|\d\d)/gi;function dn(e,a){var i,n,t=(a||"").match(e);return null===t?null:0===(n=60*(i=((t[t.length-1]||[])+"").match(un)||["-",0,0])[1]+pe(i[2]))?0:"+"===i[0]?n:-n}function mn(e,a){var i,t;return a._isUTC?(i=a.clone(),t=(k(e)||u(e)?e.valueOf():Bi(e).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+t),n.updateOffset(i,!1),i):Bi(e).local()}function fn(e){return-Math.round(e._d.getTimezoneOffset())}function hn(e,a,i){var t,s=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=dn(Ee,e)))return this}else Math.abs(e)<16&&!i&&(e*=60);return!this._isUTC&&a&&(t=fn(this)),this._offset=e,this._isUTC=!0,null!=t&&this.add(t,"m"),s!==e&&(!a||this._changeInProgress?Cn(this,jn(e-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?s:fn(this)}function vn(e,a){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,a),this):-this.utcOffset()}function xn(e){return this.utcOffset(0,e)}function gn(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(fn(this),"m")),this}function bn(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=dn(Ye,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function yn(e){return!!this.isValid()&&(e=e?Bi(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function _n(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function wn(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,a={};return _(a,this),(a=Hi(a))._a?(e=a._isUTC?f(a._a):Bi(a._a),this._isDSTShifted=this.isValid()&&ln(a._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function kn(){return!!this.isValid()&&!this._isUTC}function Sn(){return!!this.isValid()&&this._isUTC}function On(){return!!this.isValid()&&this._isUTC&&0===this._offset}n.updateOffset=function(){};var Dn=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Mn=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function jn(e,a){var i,n,t,s=e,o=null;return rn(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:p(e)||!isNaN(+e)?(s={},a?s[a]=+e:s.milliseconds=+e):(o=Dn.exec(e))?(i="-"===o[1]?-1:1,s={y:0,d:pe(o[He])*i,h:pe(o[Ge])*i,m:pe(o[Ve])*i,s:pe(o[Be])*i,ms:pe(cn(1e3*o[Ze]))*i}):(o=Mn.exec(e))?(i="-"===o[1]?-1:1,s={y:Tn(o[2],i),M:Tn(o[3],i),w:Tn(o[4],i),d:Tn(o[5],i),h:Tn(o[6],i),m:Tn(o[7],i),s:Tn(o[8],i)}):null==s?s={}:"object"==typeof s&&("from"in s||"to"in s)&&(t=En(Bi(s.from),Bi(s.to)),(s={}).ms=t.milliseconds,s.M=t.months),n=new on(s),rn(e)&&r(e,"_locale")&&(n._locale=e._locale),rn(e)&&r(e,"_isValid")&&(n._isValid=e._isValid),n}function Tn(e,a){var i=e&&parseFloat(e.replace(",","."));return(isNaN(i)?0:i)*a}function Yn(e,a){var i={};return i.months=a.month()-e.month()+12*(a.year()-e.year()),e.clone().add(i.months,"M").isAfter(a)&&--i.months,i.milliseconds=+a-+e.clone().add(i.months,"M"),i}function En(e,a){var i;return e.isValid()&&a.isValid()?(a=mn(a,e),e.isBefore(a)?i=Yn(e,a):((i=Yn(a,e)).milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}function Nn(e,a){return function(i,n){var t;return null===n||isNaN(+n)||(j(a,"moment()."+a+"(period, number) is deprecated. Please use moment()."+a+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),t=i,i=n,n=t),Cn(this,jn(i,n),e),this}}function Cn(e,a,i,t){var s=a._milliseconds,o=cn(a._days),r=cn(a._months);e.isValid()&&(t=null==t||t,r&&la(e,de(e,"Month")+r*i),o&&me(e,"Date",de(e,"Date")+o*i),s&&e._d.setTime(e._d.valueOf()+s*i),t&&n.updateOffset(e,o||r))}jn.fn=on.prototype,jn.invalid=sn;var An=Nn(1,"add"),Rn=Nn(-1,"subtract");function Pn(e){return"string"==typeof e||e instanceof String}function Ln(e){return k(e)||u(e)||Pn(e)||p(e)||In(e)||Fn(e)||null==e}function Fn(e){var a,i,n=o(e)&&!c(e),t=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],l=s.length;for(a=0;a<l;a+=1)i=s[a],t=t||r(e,i);return n&&t}function In(e){var a=s(e),i=!1;return a&&(i=0===e.filter((function(a){return!p(a)&&Pn(e)})).length),a&&i}function Un(e){var a,i,n=o(e)&&!c(e),t=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(a=0;a<s.length;a+=1)i=s[a],t=t||r(e,i);return n&&t}function zn(e,a){var i=e.diff(a,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"}function $n(e,a){1===arguments.length&&(arguments[0]?Ln(arguments[0])?(e=arguments[0],a=void 0):Un(arguments[0])&&(a=arguments[0],e=void 0):(e=void 0,a=void 0));var i=e||Bi(),t=mn(i,this).startOf("day"),s=n.calendarFormat(this,t)||"sameElse",o=a&&(T(a[s])?a[s].call(this,i):a[s]);return this.format(o||this.localeData().calendar(s,this,Bi(i)))}function Wn(){return new w(this)}function qn(e,a){var i=k(e)?e:Bi(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(a=ne(a)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(a).valueOf())}function Hn(e,a){var i=k(e)?e:Bi(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(a=ne(a)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(a).valueOf()<i.valueOf())}function Gn(e,a,i,n){var t=k(e)?e:Bi(e),s=k(a)?a:Bi(a);return!!(this.isValid()&&t.isValid()&&s.isValid())&&("("===(n=n||"()")[0]?this.isAfter(t,i):!this.isBefore(t,i))&&(")"===n[1]?this.isBefore(s,i):!this.isAfter(s,i))}function Vn(e,a){var i,n=k(e)?e:Bi(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(a=ne(a)||"millisecond")?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(a).valueOf()<=i&&i<=this.clone().endOf(a).valueOf()))}function Bn(e,a){return this.isSame(e,a)||this.isAfter(e,a)}function Zn(e,a){return this.isSame(e,a)||this.isBefore(e,a)}function Jn(e,a,i){var n,t,s;if(!this.isValid())return NaN;if(!(n=mn(e,this)).isValid())return NaN;switch(t=6e4*(n.utcOffset()-this.utcOffset()),a=ne(a)){case"year":s=Qn(this,n)/12;break;case"month":s=Qn(this,n);break;case"quarter":s=Qn(this,n)/3;break;case"second":s=(this-n)/1e3;break;case"minute":s=(this-n)/6e4;break;case"hour":s=(this-n)/36e5;break;case"day":s=(this-n-t)/864e5;break;case"week":s=(this-n-t)/6048e5;break;default:s=this-n}return i?s:le(s)}function Qn(e,a){if(e.date()<a.date())return-Qn(a,e);var i=12*(a.year()-e.year())+(a.month()-e.month()),n=e.clone().add(i,"months");return-(i+(a-n<0?(a-n)/(n-e.clone().add(i-1,"months")):(a-n)/(e.clone().add(i+1,"months")-n)))||0}function Kn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Xn(e){if(!this.isValid())return null;var a=!0!==e,i=a?this.clone().utc():this;return i.year()<0||i.year()>9999?W(i,a?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?a?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",W(i,"Z")):W(i,a?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function et(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,a,i,n,t="moment",s="";return this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",s="Z"),e="["+t+'("]',a=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",n=s+'[")]',this.format(e+a+i+n)}function at(e){e||(e=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var a=W(this,e);return this.localeData().postformat(a)}function it(e,a){return this.isValid()&&(k(e)&&e.isValid()||Bi(e).isValid())?jn({to:this,from:e}).locale(this.locale()).humanize(!a):this.localeData().invalidDate()}function nt(e){return this.from(Bi(),e)}function tt(e,a){return this.isValid()&&(k(e)&&e.isValid()||Bi(e).isValid())?jn({from:this,to:e}).locale(this.locale()).humanize(!a):this.localeData().invalidDate()}function st(e){return this.to(Bi(),e)}function ot(e){var a;return void 0===e?this._locale._abbr:(null!=(a=xi(e))&&(this._locale=a),this)}n.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",n.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var rt=O("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)}));function ct(){return this._locale}var lt=1e3,pt=60*lt,ut=60*pt,dt=3506328*ut;function mt(e,a){return(e%a+a)%a}function ft(e,a,i){return e<100&&e>=0?new Date(e+400,a,i)-dt:new Date(e,a,i).valueOf()}function ht(e,a,i){return e<100&&e>=0?Date.UTC(e+400,a,i)-dt:Date.UTC(e,a,i)}function vt(e){var a,i;if(void 0===(e=ne(e))||"millisecond"===e||!this.isValid())return this;switch(i=this._isUTC?ht:ft,e){case"year":a=i(this.year(),0,1);break;case"quarter":a=i(this.year(),this.month()-this.month()%3,1);break;case"month":a=i(this.year(),this.month(),1);break;case"week":a=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":a=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":a=i(this.year(),this.month(),this.date());break;case"hour":a=this._d.valueOf(),a-=mt(a+(this._isUTC?0:this.utcOffset()*pt),ut);break;case"minute":a=this._d.valueOf(),a-=mt(a,pt);break;case"second":a=this._d.valueOf(),a-=mt(a,lt)}return this._d.setTime(a),n.updateOffset(this,!0),this}function xt(e){var a,i;if(void 0===(e=ne(e))||"millisecond"===e||!this.isValid())return this;switch(i=this._isUTC?ht:ft,e){case"year":a=i(this.year()+1,0,1)-1;break;case"quarter":a=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":a=i(this.year(),this.month()+1,1)-1;break;case"week":a=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":a=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":a=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":a=this._d.valueOf(),a+=ut-mt(a+(this._isUTC?0:this.utcOffset()*pt),ut)-1;break;case"minute":a=this._d.valueOf(),a+=pt-mt(a,pt)-1;break;case"second":a=this._d.valueOf(),a+=lt-mt(a,lt)-1}return this._d.setTime(a),n.updateOffset(this,!0),this}function gt(){return this._d.valueOf()-6e4*(this._offset||0)}function bt(){return Math.floor(this.valueOf()/1e3)}function yt(){return new Date(this.valueOf())}function _t(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function wt(){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 kt(){return this.isValid()?this.toISOString():null}function St(){return x(this)}function Ot(){return m({},v(this))}function Dt(){return v(this).overflow}function Mt(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function jt(e,a){var i,t,s,o=this._eras||xi("en")._eras;for(i=0,t=o.length;i<t;++i)switch("string"==typeof o[i].since&&(s=n(o[i].since).startOf("day"),o[i].since=s.valueOf()),typeof o[i].until){case"undefined":o[i].until=1/0;break;case"string":s=n(o[i].until).startOf("day").valueOf(),o[i].until=s.valueOf()}return o}function Tt(e,a,i){var n,t,s,o,r,c=this.eras();for(e=e.toUpperCase(),n=0,t=c.length;n<t;++n)if(s=c[n].name.toUpperCase(),o=c[n].abbr.toUpperCase(),r=c[n].narrow.toUpperCase(),i)switch(a){case"N":case"NN":case"NNN":if(o===e)return c[n];break;case"NNNN":if(s===e)return c[n];break;case"NNNNN":if(r===e)return c[n]}else if([s,o,r].indexOf(e)>=0)return c[n]}function Yt(e,a){var i=e.since<=e.until?1:-1;return void 0===a?n(e.since).year():n(e.since).year()+(a-e.offset)*i}function Et(){var e,a,i,n=this.localeData().eras();for(e=0,a=n.length;e<a;++e){if(i=this.clone().startOf("day").valueOf(),n[e].since<=i&&i<=n[e].until)return n[e].name;if(n[e].until<=i&&i<=n[e].since)return n[e].name}return""}function Nt(){var e,a,i,n=this.localeData().eras();for(e=0,a=n.length;e<a;++e){if(i=this.clone().startOf("day").valueOf(),n[e].since<=i&&i<=n[e].until)return n[e].narrow;if(n[e].until<=i&&i<=n[e].since)return n[e].narrow}return""}function Ct(){var e,a,i,n=this.localeData().eras();for(e=0,a=n.length;e<a;++e){if(i=this.clone().startOf("day").valueOf(),n[e].since<=i&&i<=n[e].until)return n[e].abbr;if(n[e].until<=i&&i<=n[e].since)return n[e].abbr}return""}function At(){var e,a,i,t,s=this.localeData().eras();for(e=0,a=s.length;e<a;++e)if(i=s[e].since<=s[e].until?1:-1,t=this.clone().startOf("day").valueOf(),s[e].since<=t&&t<=s[e].until||s[e].until<=t&&t<=s[e].since)return(this.year()-n(s[e].since).year())*i+s[e].offset;return this.year()}function Rt(e){return r(this,"_erasNameRegex")||$t.call(this),e?this._erasNameRegex:this._erasRegex}function Pt(e){return r(this,"_erasAbbrRegex")||$t.call(this),e?this._erasAbbrRegex:this._erasRegex}function Lt(e){return r(this,"_erasNarrowRegex")||$t.call(this),e?this._erasNarrowRegex:this._erasRegex}function Ft(e,a){return a.erasAbbrRegex(e)}function It(e,a){return a.erasNameRegex(e)}function Ut(e,a){return a.erasNarrowRegex(e)}function zt(e,a){return a._eraYearOrdinalRegex||je}function $t(){var e,a,i=[],n=[],t=[],s=[],o=this.eras();for(e=0,a=o.length;e<a;++e)n.push(Le(o[e].name)),i.push(Le(o[e].abbr)),t.push(Le(o[e].narrow)),s.push(Le(o[e].name)),s.push(Le(o[e].abbr)),s.push(Le(o[e].narrow));this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+n.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+t.join("|")+")","i")}function Wt(e,a){U(0,[e,e.length],0,a)}function qt(e){return Jt.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Ht(e){return Jt.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Gt(){return ka(this.year(),1,4)}function Vt(){return ka(this.isoWeekYear(),1,4)}function Bt(){var e=this.localeData()._week;return ka(this.year(),e.dow,e.doy)}function Zt(){var e=this.localeData()._week;return ka(this.weekYear(),e.dow,e.doy)}function Jt(e,a,i,n,t){var s;return null==e?wa(this,n,t).year:(a>(s=ka(e,n,t))&&(a=s),Qt.call(this,e,a,i,n,t))}function Qt(e,a,i,n,t){var s=_a(e,a,i,n,t),o=ba(s.year,0,s.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function Kt(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}U("N",0,0,"eraAbbr"),U("NN",0,0,"eraAbbr"),U("NNN",0,0,"eraAbbr"),U("NNNN",0,0,"eraName"),U("NNNNN",0,0,"eraNarrow"),U("y",["y",1],"yo","eraYear"),U("y",["yy",2],0,"eraYear"),U("y",["yyy",3],0,"eraYear"),U("y",["yyyy",4],0,"eraYear"),Ae("N",Ft),Ae("NN",Ft),Ae("NNN",Ft),Ae("NNNN",It),Ae("NNNNN",Ut),Ie(["N","NN","NNN","NNNN","NNNNN"],(function(e,a,i,n){var t=i._locale.erasParse(e,n,i._strict);t?v(i).era=t:v(i).invalidEra=e})),Ae("y",je),Ae("yy",je),Ae("yyy",je),Ae("yyyy",je),Ae("yo",zt),Ie(["y","yy","yyy","yyyy"],We),Ie(["yo"],(function(e,a,i,n){var t;i._locale._eraYearOrdinalRegex&&(t=e.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?a[We]=i._locale.eraYearOrdinalParse(e,t):a[We]=parseInt(e,10)})),U(0,["gg",2],0,(function(){return this.weekYear()%100})),U(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Wt("gggg","weekYear"),Wt("ggggg","weekYear"),Wt("GGGG","isoWeekYear"),Wt("GGGGG","isoWeekYear"),ie("weekYear","gg"),ie("isoWeekYear","GG"),oe("weekYear",1),oe("isoWeekYear",1),Ae("G",Te),Ae("g",Te),Ae("GG",we,ge),Ae("gg",we,ge),Ae("GGGG",De,ye),Ae("gggg",De,ye),Ae("GGGGG",Me,_e),Ae("ggggg",Me,_e),Ue(["gggg","ggggg","GGGG","GGGGG"],(function(e,a,i,n){a[n.substr(0,2)]=pe(e)})),Ue(["gg","GG"],(function(e,a,i,t){a[t]=n.parseTwoDigitYear(e)})),U("Q",0,"Qo","quarter"),ie("quarter","Q"),oe("quarter",7),Ae("Q",xe),Ie("Q",(function(e,a){a[qe]=3*(pe(e)-1)})),U("D",["DD",2],"Do","date"),ie("date","D"),oe("date",9),Ae("D",we),Ae("DD",we,ge),Ae("Do",(function(e,a){return e?a._dayOfMonthOrdinalParse||a._ordinalParse:a._dayOfMonthOrdinalParseLenient})),Ie(["D","DD"],He),Ie("Do",(function(e,a){a[He]=pe(e.match(we)[0])}));var Xt=ue("Date",!0);function es(e){var a=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?a:this.add(e-a,"d")}U("DDD",["DDDD",3],"DDDo","dayOfYear"),ie("dayOfYear","DDD"),oe("dayOfYear",4),Ae("DDD",Oe),Ae("DDDD",be),Ie(["DDD","DDDD"],(function(e,a,i){i._dayOfYear=pe(e)})),U("m",["mm",2],0,"minute"),ie("minute","m"),oe("minute",14),Ae("m",we),Ae("mm",we,ge),Ie(["m","mm"],Ve);var as=ue("Minutes",!1);U("s",["ss",2],0,"second"),ie("second","s"),oe("second",15),Ae("s",we),Ae("ss",we,ge),Ie(["s","ss"],Be);var is,ns,ts=ue("Seconds",!1);for(U("S",0,0,(function(){return~~(this.millisecond()/100)})),U(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),U(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),U(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),U(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),U(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),U(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),ie("millisecond","ms"),oe("millisecond",16),Ae("S",Oe,xe),Ae("SS",Oe,ge),Ae("SSS",Oe,be),is="SSSS";is.length<=9;is+="S")Ae(is,je);function ss(e,a){a[Ze]=pe(1e3*("0."+e))}for(is="S";is.length<=9;is+="S")Ie(is,ss);function os(){return this._isUTC?"UTC":""}function rs(){return this._isUTC?"Coordinated Universal Time":""}ns=ue("Milliseconds",!1),U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var cs=w.prototype;function ls(e){return Bi(1e3*e)}function ps(){return Bi.apply(null,arguments).parseZone()}function us(e){return e}cs.add=An,cs.calendar=$n,cs.clone=Wn,cs.diff=Jn,cs.endOf=xt,cs.format=at,cs.from=it,cs.fromNow=nt,cs.to=tt,cs.toNow=st,cs.get=fe,cs.invalidAt=Dt,cs.isAfter=qn,cs.isBefore=Hn,cs.isBetween=Gn,cs.isSame=Vn,cs.isSameOrAfter=Bn,cs.isSameOrBefore=Zn,cs.isValid=St,cs.lang=rt,cs.locale=ot,cs.localeData=ct,cs.max=Ji,cs.min=Zi,cs.parsingFlags=Ot,cs.set=he,cs.startOf=vt,cs.subtract=Rn,cs.toArray=_t,cs.toObject=wt,cs.toDate=yt,cs.toISOString=Xn,cs.inspect=et,"undefined"!=typeof Symbol&&null!=Symbol.for&&(cs[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),cs.toJSON=kt,cs.toString=Kn,cs.unix=bt,cs.valueOf=gt,cs.creationData=Mt,cs.eraName=Et,cs.eraNarrow=Nt,cs.eraAbbr=Ct,cs.eraYear=At,cs.year=va,cs.isLeapYear=xa,cs.weekYear=qt,cs.isoWeekYear=Ht,cs.quarter=cs.quarters=Kt,cs.month=pa,cs.daysInMonth=ua,cs.week=cs.weeks=ja,cs.isoWeek=cs.isoWeeks=Ta,cs.weeksInYear=Bt,cs.weeksInWeekYear=Zt,cs.isoWeeksInYear=Gt,cs.isoWeeksInISOWeekYear=Vt,cs.date=Xt,cs.day=cs.days=qa,cs.weekday=Ha,cs.isoWeekday=Ga,cs.dayOfYear=es,cs.hour=cs.hours=ni,cs.minute=cs.minutes=as,cs.second=cs.seconds=ts,cs.millisecond=cs.milliseconds=ns,cs.utcOffset=hn,cs.utc=xn,cs.local=gn,cs.parseZone=bn,cs.hasAlignedHourOffset=yn,cs.isDST=_n,cs.isLocal=kn,cs.isUtcOffset=Sn,cs.isUtc=On,cs.isUTC=On,cs.zoneAbbr=os,cs.zoneName=rs,cs.dates=O("dates accessor is deprecated. Use date instead.",Xt),cs.months=O("months accessor is deprecated. Use month instead",pa),cs.years=O("years accessor is deprecated. Use year instead",va),cs.zone=O("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",vn),cs.isDSTShifted=O("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",wn);var ds=N.prototype;function ms(e,a,i,n){var t=xi(),s=f().set(n,a);return t[i](s,e)}function fs(e,a,i){if(p(e)&&(a=e,e=void 0),e=e||"",null!=a)return ms(e,a,i,"month");var n,t=[];for(n=0;n<12;n++)t[n]=ms(e,n,i,"month");return t}function hs(e,a,i,n){"boolean"==typeof e?(p(a)&&(i=a,a=void 0),a=a||""):(i=a=e,e=!1,p(a)&&(i=a,a=void 0),a=a||"");var t,s=xi(),o=e?s._week.dow:0,r=[];if(null!=i)return ms(a,(i+o)%7,n,"day");for(t=0;t<7;t++)r[t]=ms(a,(t+o)%7,n,"day");return r}function vs(e,a){return fs(e,a,"months")}function xs(e,a){return fs(e,a,"monthsShort")}function gs(e,a,i){return hs(e,a,i,"weekdays")}function bs(e,a,i){return hs(e,a,i,"weekdaysShort")}function ys(e,a,i){return hs(e,a,i,"weekdaysMin")}ds.calendar=A,ds.longDateFormat=G,ds.invalidDate=B,ds.ordinal=Q,ds.preparse=us,ds.postformat=us,ds.relativeTime=X,ds.pastFuture=ee,ds.set=Y,ds.eras=jt,ds.erasParse=Tt,ds.erasConvertYear=Yt,ds.erasAbbrRegex=Pt,ds.erasNameRegex=Rt,ds.erasNarrowRegex=Lt,ds.months=sa,ds.monthsShort=oa,ds.monthsParse=ca,ds.monthsRegex=ma,ds.monthsShortRegex=da,ds.week=Sa,ds.firstDayOfYear=Ma,ds.firstDayOfWeek=Da,ds.weekdays=Ia,ds.weekdaysMin=za,ds.weekdaysShort=Ua,ds.weekdaysParse=Wa,ds.weekdaysRegex=Va,ds.weekdaysShortRegex=Ba,ds.weekdaysMinRegex=Za,ds.isPM=ai,ds.meridiem=ti,fi("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var a=e%10;return e+(1===pe(e%100/10)?"th":1===a?"st":2===a?"nd":3===a?"rd":"th")}}),n.lang=O("moment.lang is deprecated. Use moment.locale instead.",fi),n.langData=O("moment.langData is deprecated. Use moment.localeData instead.",xi);var _s=Math.abs;function ws(){var e=this._data;return this._milliseconds=_s(this._milliseconds),this._days=_s(this._days),this._months=_s(this._months),e.milliseconds=_s(e.milliseconds),e.seconds=_s(e.seconds),e.minutes=_s(e.minutes),e.hours=_s(e.hours),e.months=_s(e.months),e.years=_s(e.years),this}function ks(e,a,i,n){var t=jn(a,i);return e._milliseconds+=n*t._milliseconds,e._days+=n*t._days,e._months+=n*t._months,e._bubble()}function Ss(e,a){return ks(this,e,a,1)}function Os(e,a){return ks(this,e,a,-1)}function Ds(e){return e<0?Math.floor(e):Math.ceil(e)}function Ms(){var e,a,i,n,t,s=this._milliseconds,o=this._days,r=this._months,c=this._data;return s>=0&&o>=0&&r>=0||s<=0&&o<=0&&r<=0||(s+=864e5*Ds(Ts(r)+o),o=0,r=0),c.milliseconds=s%1e3,e=le(s/1e3),c.seconds=e%60,a=le(e/60),c.minutes=a%60,i=le(a/60),c.hours=i%24,o+=le(i/24),r+=t=le(js(o)),o-=Ds(Ts(t)),n=le(r/12),r%=12,c.days=o,c.months=r,c.years=n,this}function js(e){return 4800*e/146097}function Ts(e){return 146097*e/4800}function Ys(e){if(!this.isValid())return NaN;var a,i,n=this._milliseconds;if("month"===(e=ne(e))||"quarter"===e||"year"===e)switch(a=this._days+n/864e5,i=this._months+js(a),e){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(a=this._days+Math.round(Ts(this._months)),e){case"week":return a/7+n/6048e5;case"day":return a+n/864e5;case"hour":return 24*a+n/36e5;case"minute":return 1440*a+n/6e4;case"second":return 86400*a+n/1e3;case"millisecond":return Math.floor(864e5*a)+n;default:throw new Error("Unknown unit "+e)}}function Es(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*pe(this._months/12):NaN}function Ns(e){return function(){return this.as(e)}}var Cs=Ns("ms"),As=Ns("s"),Rs=Ns("m"),Ps=Ns("h"),Ls=Ns("d"),Fs=Ns("w"),Is=Ns("M"),Us=Ns("Q"),zs=Ns("y");function $s(){return jn(this)}function Ws(e){return e=ne(e),this.isValid()?this[e+"s"]():NaN}function qs(e){return function(){return this.isValid()?this._data[e]:NaN}}var Hs=qs("milliseconds"),Gs=qs("seconds"),Vs=qs("minutes"),Bs=qs("hours"),Zs=qs("days"),Js=qs("months"),Qs=qs("years");function Ks(){return le(this.days()/7)}var Xs=Math.round,eo={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ao(e,a,i,n,t){return t.relativeTime(a||1,!!i,e,n)}function io(e,a,i,n){var t=jn(e).abs(),s=Xs(t.as("s")),o=Xs(t.as("m")),r=Xs(t.as("h")),c=Xs(t.as("d")),l=Xs(t.as("M")),p=Xs(t.as("w")),u=Xs(t.as("y")),d=s<=i.ss&&["s",s]||s<i.s&&["ss",s]||o<=1&&["m"]||o<i.m&&["mm",o]||r<=1&&["h"]||r<i.h&&["hh",r]||c<=1&&["d"]||c<i.d&&["dd",c];return null!=i.w&&(d=d||p<=1&&["w"]||p<i.w&&["ww",p]),(d=d||l<=1&&["M"]||l<i.M&&["MM",l]||u<=1&&["y"]||["yy",u])[2]=a,d[3]=+e>0,d[4]=n,ao.apply(null,d)}function no(e){return void 0===e?Xs:"function"==typeof e&&(Xs=e,!0)}function to(e,a){return void 0!==eo[e]&&(void 0===a?eo[e]:(eo[e]=a,"s"===e&&(eo.ss=a-1),!0))}function so(e,a){if(!this.isValid())return this.localeData().invalidDate();var i,n,t=!1,s=eo;return"object"==typeof e&&(a=e,e=!1),"boolean"==typeof e&&(t=e),"object"==typeof a&&(s=Object.assign({},eo,a),null!=a.s&&null==a.ss&&(s.ss=a.s-1)),n=io(this,!t,s,i=this.localeData()),t&&(n=i.pastFuture(+this,n)),i.postformat(n)}var oo=Math.abs;function ro(e){return(e>0)-(e<0)||+e}function co(){if(!this.isValid())return this.localeData().invalidDate();var e,a,i,n,t,s,o,r,c=oo(this._milliseconds)/1e3,l=oo(this._days),p=oo(this._months),u=this.asSeconds();return u?(e=le(c/60),a=le(e/60),c%=60,e%=60,i=le(p/12),p%=12,n=c?c.toFixed(3).replace(/\.?0+$/,""):"",t=u<0?"-":"",s=ro(this._months)!==ro(u)?"-":"",o=ro(this._days)!==ro(u)?"-":"",r=ro(this._milliseconds)!==ro(u)?"-":"",t+"P"+(i?s+i+"Y":"")+(p?s+p+"M":"")+(l?o+l+"D":"")+(a||e||c?"T":"")+(a?r+a+"H":"")+(e?r+e+"M":"")+(c?r+n+"S":"")):"P0D"}var lo=on.prototype;return lo.isValid=tn,lo.abs=ws,lo.add=Ss,lo.subtract=Os,lo.as=Ys,lo.asMilliseconds=Cs,lo.asSeconds=As,lo.asMinutes=Rs,lo.asHours=Ps,lo.asDays=Ls,lo.asWeeks=Fs,lo.asMonths=Is,lo.asQuarters=Us,lo.asYears=zs,lo.valueOf=Es,lo._bubble=Ms,lo.clone=$s,lo.get=Ws,lo.milliseconds=Hs,lo.seconds=Gs,lo.minutes=Vs,lo.hours=Bs,lo.days=Zs,lo.weeks=Ks,lo.months=Js,lo.years=Qs,lo.humanize=so,lo.toISOString=co,lo.toString=co,lo.toJSON=co,lo.locale=ot,lo.localeData=ct,lo.toIsoString=O("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",co),lo.lang=rt,U("X",0,0,"unix"),U("x",0,0,"valueOf"),Ae("x",Te),Ae("X",Ne),Ie("X",(function(e,a,i){i._d=new Date(1e3*parseFloat(e))})),Ie("x",(function(e,a,i){i._d=new Date(pe(e))})),
2
2
  //! moment.js
3
- n.version="2.29.4",t(Bi),n.fn=cs,n.min=Ki,n.max=Xi,n.now=en,n.utc=f,n.unix=ls,n.months=vs,n.isDate=u,n.locale=fi,n.invalid=g,n.duration=jn,n.isMoment=k,n.weekdays=gs,n.parseZone=ps,n.localeData=xi,n.isDuration=rn,n.monthsShort=xs,n.weekdaysMin=ys,n.defineLocale=hi,n.updateLocale=vi,n.locales=gi,n.weekdaysShort=bs,n.normalizeUnits=ne,n.relativeTimeRounding=no,n.relativeTimeThreshold=to,n.calendarFormat=zn,n.prototype=cs,n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},n}()}));function format_date(e,a,i){if(e=utils.isString(e)?e:"",utils.isString(i)||utils.isArray(i)){const n=moment(a||new Date);return n.locale(i),n.format(e)}return moment(a||new Date).format(e)}var date=Object.freeze({__proto__:null,format_date:format_date}),helpers=Object.freeze({__proto__:null,html:html,object:object,string:string,comparison:comparison,date:date});class View{static mount(e){const a=this.loadOptions(),i=require("express-hbs");for(let[e,a]of Object.entries(helpers))for(let[e,n]of Object.entries(a))i.registerHelper(e,n);e.engine("hbs",i.express4({partialsDir:a.partials_dir,layoutsDir:a.layouts_dir,defaultLayout:a.default_layout,extname:a.extension})),e.set("view engine","hbs"),e.set("views",a.views_dir),e.use(((e,i,n)=>{a.beforeRender&&a.beforeRender(i),n()}))}static loadOptions(){const e={views_dir:a__default.default.join(process.cwd(),"views"),partials_dir:a__default.default.join(process.cwd(),"views/partials"),layouts_dir:a__default.default.join(process.cwd(),"views/layout"),default_layout:a__default.default.join(process.cwd(),"views/layout/default.hbs"),extension:".hbs",beforeRender:e=>{}},a=`${process.cwd()}/config/view`;return e__default.default.existsSync(`${a}.js`)?Object.assign(e,require(a).default||require(a)):e}}
3
+ n.version="2.29.4",t(Bi),n.fn=cs,n.min=Ki,n.max=Xi,n.now=en,n.utc=f,n.unix=ls,n.months=vs,n.isDate=u,n.locale=fi,n.invalid=g,n.duration=jn,n.isMoment=k,n.weekdays=gs,n.parseZone=ps,n.localeData=xi,n.isDuration=rn,n.monthsShort=xs,n.weekdaysMin=ys,n.defineLocale=hi,n.updateLocale=vi,n.locales=gi,n.weekdaysShort=bs,n.normalizeUnits=ne,n.relativeTimeRounding=no,n.relativeTimeThreshold=to,n.calendarFormat=zn,n.prototype=cs,n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},n}()}));function format_date(e,a,i){if(e=utils.isString(e)?e:"",utils.isString(i)||utils.isArray(i)){const n=moment(a||new Date);return n.locale(i),n.format(e)}return moment(a||new Date).format(e)}var date=Object.freeze({__proto__:null,format_date:format_date}),helpers=Object.freeze({__proto__:null,html:html,object:object,string:string,comparison:comparison,date:date});class View{static mount(e){const a=this.loadOptions(),i=require("express-hbs");for(let[e,a]of Object.entries(helpers))for(let[e,n]of Object.entries(a))i.registerHelper(e,n);e.engine("hbs",i.express4({partialsDir:a.partials_dir,layoutsDir:a.layouts_dir,defaultLayout:a.default_layout,extname:a.extension})),e.set("view engine","hbs"),e.set("views",a.views_dir),e.use(((e,i,n)=>{a.beforeRender&&a.beforeRender(e,i),n()}))}static loadOptions(){const e={views_dir:a__default.default.join(process.cwd(),"views"),partials_dir:a__default.default.join(process.cwd(),"views/partials"),layouts_dir:a__default.default.join(process.cwd(),"views/layout"),default_layout:a__default.default.join(process.cwd(),"views/layout/default.hbs"),extension:".hbs",beforeRender:(e,a)=>{}},a=`${process.cwd()}/config/view`;return e__default.default.existsSync(`${a}.js`)?Object.assign(e,require(a).default||require(a)):e}}
4
4
  /*!
5
5
  * cookie
6
6
  * Copyright(c) 2012-2014 Roman Shtylman
package/dist/build.esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import e from"fs";import a from"path";import express from"express";import crypto from"crypto";import passport from"passport";import{Strategy}from"passport-local";import buffer from"buffer";import tty from"tty";import util from"util";import net from"net";import url from"url";import events from"events";import i from"os";import o from"assert";import sequelize from"sequelize";import AWS from"aws-sdk";class Global{static mount(){global.APP_DIR=process.cwd(),process.env.EXPRESS_DEBUG&&console.log("Set global variable APP_DIR")}}function log$2(e){console.log(`[dotenv][DEBUG] ${e}`)}const NEWLINE="\n",RE_INI_KEY_VAL=/^\s*([\w.-]+)\s*=\s*(.*)?\s*$/,RE_NEWLINES=/\\n/g,NEWLINES_MATCH=/\n|\r|\r\n/;function parse$4(e,a){const i=Boolean(a&&a.debug),n={};return e.toString().split(NEWLINES_MATCH).forEach((function(e,a){const t=e.match(RE_INI_KEY_VAL);if(null!=t){const e=t[1];let a=t[2]||"";const i=a.length-1,s='"'===a[0]&&'"'===a[i];"'"===a[0]&&"'"===a[i]||s?(a=a.substring(1,i),s&&(a=a.replace(RE_NEWLINES,NEWLINE))):a=a.trim(),n[e]=a}else i&&log$2(`did not match key and value when parsing line ${a+1}: ${e}`)})),n}function config(i){let n=a.resolve(process.cwd(),".env"),t="utf8",s=!1;i&&(null!=i.path&&(n=i.path),null!=i.encoding&&(t=i.encoding),null!=i.debug&&(s=!0));try{const a=parse$4(e.readFileSync(n,{encoding:t}),{debug:s});return Object.keys(a).forEach((function(e){Object.prototype.hasOwnProperty.call(process.env,e)?s&&log$2(`"${e}" is already defined in \`process.env\` and will not be overwritten`):process.env[e]=a[e]})),{parsed:a}}catch(e){return{error:e}}}var config_1=config,parse_1$2=parse$4,main={config:config_1,parse:parse_1$2};class Environment{static mount(){if(global.loadedEnv)return;const a=this.loadOptions();if(!a.env_path)return;const i=main.parse(e.readFileSync(a.env_path));for(let e in i)process.env[e]=i[e];global.loadedEnv=!0}static loadOptions(){const a={env_path:void 0},i=`${process.cwd()}/config/config`;return e.existsSync(`${i}.js`)?Object.assign(a,require(i).default||require(i)):a}}function cache_busting(i,n){const t=`${a.join(process.cwd(),"public")}/${i.replace(/^\//,"")}`;if(!e.existsSync(t))return i;const s=new Date(e.statSync(t).mtime).getTime();return`${n}/${i.replace(/^\//,"")}?${s}`}var html=Object.freeze({__proto__:null,cache_busting:cache_busting});function json_stringify(e,a=0){return JSON.stringify(e,null,a)}function json_parse(e){return JSON.parse(e)}var object=Object.freeze({__proto__:null,json_stringify:json_stringify,json_parse:json_parse}),isAsyncFunction=e=>e&&e.constructor&&e.constructor===Object.getPrototypeOf((async function(){})).constructor,isString=e=>"string"==typeof e&&""!==e,isObject=e=>null!=e&&"object"==typeof e&&!1===Array.isArray(e),isArray=e=>"[object Array]"===Object.prototype.toString.call(e),utils={isAsyncFunction:isAsyncFunction,isString:isString,isObject:isObject,isArray:isArray},index$5=Object.freeze({__proto__:null,default:utils});function replace(e,a,i){return e.replace(a,i)}function split(e,a){return utils.isString(e)?(utils.isString(a)||(a=","),e.split(a)):[]}function format_bytes(e,a=0){let i=0,n="Bytes";if(e&&e>0){const t=1024,s=a<0?0:a,o=Math.floor(Math.log(e)/Math.log(t));n=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][o],i=parseFloat((e/Math.pow(t,o)).toFixed(s))}return`${i}${n}`}var string=Object.freeze({__proto__:null,replace:replace,split:split,format_bytes:format_bytes});function eq(e,a){return e===a}function eqw(e,a){return e==a}function neq(e,a){return e!==a}function neqw(e,a){return e!=a}function lt(e,a){return e<a}function lte(e,a){return e<=a}function gt(e,a){return e>a}function gte(e,a){return e>=a}function not(e){return!e}function ifx(e,a,i){return utils.isObject(i)&&"ifx"===i.name&&i.hasOwnProperty("hash")&&(i=""),e?a:i}function empty(e){return"string"==typeof e?e=e.replace(/^[\s ]+|[\s ]+$/g,""):Array.isArray(e)&&0===e.length&&(e=null),!e}function not_empty(e){return"string"==typeof e?e=e.replace(/^[\s ]+|[\s ]+$/g,""):Array.isArray(e)&&0===e.length&&(e=null),!!e}function count(e){return!!Array.isArray(e)&&e.length}function and(...e){utils.isObject(e[e.length-1])&&e.pop();for(let a of e)if(!a)return!1;return!0}function or(...e){utils.isObject(e[e.length-1])&&e.pop();for(let a of e)if(a)return!0;return!1}function coalesce(...e){utils.isObject(e[e.length-1])&&e.pop();for(let a of e)if(a)return a;return e.pop()}function includes(e,a,i=!0){if(!Array.isArray(e)||0===e.length)return!1;for(let n of e)if(i&&n===a||!i&&n==a)return!0;return!1}var comparison=Object.freeze({__proto__:null,eq:eq,eqw:eqw,neq:neq,neqw:neqw,lt:lt,lte:lte,gt:gt,gte:gte,not:not,ifx:ifx,empty:empty,not_empty:not_empty,count:count,and:and,or:or,coalesce:coalesce,includes:includes}),commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function createCommonjsModule(e,a){return e(a={exports:{}},a.exports),a.exports}function getCjsExportFromNamespace(e){return e&&e.default||e}var moment=createCommonjsModule((function(e,a){e.exports=function(){var a,i;function n(){return a.apply(null,arguments)}function t(e){a=e}function s(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function r(e,a){return Object.prototype.hasOwnProperty.call(e,a)}function c(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var a;for(a in e)if(r(e,a))return!1;return!0}function l(e){return void 0===e}function p(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function u(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,a){var i,n=[],t=e.length;for(i=0;i<t;++i)n.push(a(e[i],i));return n}function m(e,a){for(var i in a)r(a,i)&&(e[i]=a[i]);return r(a,"toString")&&(e.toString=a.toString),r(a,"valueOf")&&(e.valueOf=a.valueOf),e}function f(e,a,i,n){return Vi(e,a,i,n,!0).utc()}function h(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function v(e){return null==e._pf&&(e._pf=h()),e._pf}function x(e){if(null==e._isValid){var a=v(e),n=i.call(a.parsedDateParts,(function(e){return null!=e})),t=!isNaN(e._d.getTime())&&a.overflow<0&&!a.empty&&!a.invalidEra&&!a.invalidMonth&&!a.invalidWeekday&&!a.weekdayMismatch&&!a.nullInput&&!a.invalidFormat&&!a.userInvalidated&&(!a.meridiem||a.meridiem&&n);if(e._strict&&(t=t&&0===a.charsLeftOver&&0===a.unusedTokens.length&&void 0===a.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return t;e._isValid=t}return e._isValid}function g(e){var a=f(NaN);return null!=e?m(v(a),e):v(a).userInvalidated=!0,a}i=Array.prototype.some?Array.prototype.some:function(e){var a,i=Object(this),n=i.length>>>0;for(a=0;a<n;a++)if(a in i&&e.call(this,i[a],a,i))return!0;return!1};var b=n.momentProperties=[],y=!1;function _(e,a){var i,n,t,s=b.length;if(l(a._isAMomentObject)||(e._isAMomentObject=a._isAMomentObject),l(a._i)||(e._i=a._i),l(a._f)||(e._f=a._f),l(a._l)||(e._l=a._l),l(a._strict)||(e._strict=a._strict),l(a._tzm)||(e._tzm=a._tzm),l(a._isUTC)||(e._isUTC=a._isUTC),l(a._offset)||(e._offset=a._offset),l(a._pf)||(e._pf=v(a)),l(a._locale)||(e._locale=a._locale),s>0)for(i=0;i<s;i++)l(t=a[n=b[i]])||(e[n]=t);return e}function w(e){_(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,n.updateOffset(this),y=!1)}function k(e){return e instanceof w||null!=e&&null!=e._isAMomentObject}function S(e){!1===n.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function O(e,a){var i=!0;return m((function(){if(null!=n.deprecationHandler&&n.deprecationHandler(null,e),i){var t,s,o,c=[],l=arguments.length;for(s=0;s<l;s++){if(t="","object"==typeof arguments[s]){for(o in t+="\n["+s+"] ",arguments[0])r(arguments[0],o)&&(t+=o+": "+arguments[0][o]+", ");t=t.slice(0,-2)}else t=arguments[s];c.push(t)}S(e+"\nArguments: "+Array.prototype.slice.call(c).join("")+"\n"+(new Error).stack),i=!1}return a.apply(this,arguments)}),a)}var D,M={};function j(e,a){null!=n.deprecationHandler&&n.deprecationHandler(e,a),M[e]||(S(a),M[e]=!0)}function T(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function Y(e){var a,i;for(i in e)r(e,i)&&(T(a=e[i])?this[i]=a:this["_"+i]=a);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function E(e,a){var i,n=m({},e);for(i in a)r(a,i)&&(o(e[i])&&o(a[i])?(n[i]={},m(n[i],e[i]),m(n[i],a[i])):null!=a[i]?n[i]=a[i]:delete n[i]);for(i in e)r(e,i)&&!r(a,i)&&o(e[i])&&(n[i]=m({},n[i]));return n}function N(e){null!=e&&this.set(e)}n.suppressDeprecationWarnings=!1,n.deprecationHandler=null,D=Object.keys?Object.keys:function(e){var a,i=[];for(a in e)r(e,a)&&i.push(a);return i};var C={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function A(e,a,i){var n=this._calendar[e]||this._calendar.sameElse;return T(n)?n.call(a,i):n}function R(e,a,i){var n=""+Math.abs(e),t=a-n.length;return(e>=0?i?"+":"":"-")+Math.pow(10,Math.max(0,t)).toString().substr(1)+n}var P=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,L=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,F={},I={};function U(e,a,i,n){var t=n;"string"==typeof n&&(t=function(){return this[n]()}),e&&(I[e]=t),a&&(I[a[0]]=function(){return R(t.apply(this,arguments),a[1],a[2])}),i&&(I[i]=function(){return this.localeData().ordinal(t.apply(this,arguments),e)})}function z(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function $(e){var a,i,n=e.match(P);for(a=0,i=n.length;a<i;a++)I[n[a]]?n[a]=I[n[a]]:n[a]=z(n[a]);return function(a){var t,s="";for(t=0;t<i;t++)s+=T(n[t])?n[t].call(a,e):n[t];return s}}function W(e,a){return e.isValid()?(a=H(a,e.localeData()),F[a]=F[a]||$(a),F[a](e)):e.localeData().invalidDate()}function H(e,a){var i=5;function n(e){return a.longDateFormat(e)||e}for(L.lastIndex=0;i>=0&&L.test(e);)e=e.replace(L,n),L.lastIndex=0,i-=1;return e}var q={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function G(e){var a=this._longDateFormat[e],i=this._longDateFormat[e.toUpperCase()];return a||!i?a:(this._longDateFormat[e]=i.match(P).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var V="Invalid date";function B(){return this._invalidDate}var Z="%d",J=/\d{1,2}/;function Q(e){return this._ordinal.replace("%d",e)}var K={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function X(e,a,i,n){var t=this._relativeTime[i];return T(t)?t(e,a,i,n):t.replace(/%d/i,e)}function ee(e,a){var i=this._relativeTime[e>0?"future":"past"];return T(i)?i(a):i.replace(/%s/i,a)}var ae={};function ie(e,a){var i=e.toLowerCase();ae[i]=ae[i+"s"]=ae[a]=e}function ne(e){return"string"==typeof e?ae[e]||ae[e.toLowerCase()]:void 0}function te(e){var a,i,n={};for(i in e)r(e,i)&&(a=ne(i))&&(n[a]=e[i]);return n}var se={};function oe(e,a){se[e]=a}function re(e){var a,i=[];for(a in e)r(e,a)&&i.push({unit:a,priority:se[a]});return i.sort((function(e,a){return e.priority-a.priority})),i}function ce(e){return e%4==0&&e%100!=0||e%400==0}function le(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function pe(e){var a=+e,i=0;return 0!==a&&isFinite(a)&&(i=le(a)),i}function ue(e,a){return function(i){return null!=i?(me(this,e,i),n.updateOffset(this,a),this):de(this,e)}}function de(e,a){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+a]():NaN}function me(e,a,i){e.isValid()&&!isNaN(i)&&("FullYear"===a&&ce(e.year())&&1===e.month()&&29===e.date()?(i=pe(i),e._d["set"+(e._isUTC?"UTC":"")+a](i,e.month(),Xe(i,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+a](i))}function fe(e){return T(this[e=ne(e)])?this[e]():this}function he(e,a){if("object"==typeof e){var i,n=re(e=te(e)),t=n.length;for(i=0;i<t;i++)this[n[i].unit](e[n[i].unit])}else if(T(this[e=ne(e)]))return this[e](a);return this}var ve,xe=/\d/,ge=/\d\d/,be=/\d{3}/,ye=/\d{4}/,_e=/[+-]?\d{6}/,we=/\d\d?/,ke=/\d\d\d\d?/,Se=/\d\d\d\d\d\d?/,Oe=/\d{1,3}/,De=/\d{1,4}/,Me=/[+-]?\d{1,6}/,je=/\d+/,Te=/[+-]?\d+/,Ye=/Z|[+-]\d\d:?\d\d/gi,Ee=/Z|[+-]\d\d(?::?\d\d)?/gi,Ne=/[+-]?\d+(\.\d{1,3})?/,Ce=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Ae(e,a,i){ve[e]=T(a)?a:function(e,n){return e&&i?i:a}}function Re(e,a){return r(ve,e)?ve[e](a._strict,a._locale):new RegExp(Pe(e))}function Pe(e){return Le(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,a,i,n,t){return a||i||n||t})))}function Le(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ve={};var Fe={};function Ie(e,a){var i,n,t=a;for("string"==typeof e&&(e=[e]),p(a)&&(t=function(e,i){i[a]=pe(e)}),n=e.length,i=0;i<n;i++)Fe[e[i]]=t}function Ue(e,a){Ie(e,(function(e,i,n,t){n._w=n._w||{},a(e,n._w,n,t)}))}function ze(e,a,i){null!=a&&r(Fe,e)&&Fe[e](a,i._a,i,e)}var $e,We=0,He=1,qe=2,Ge=3,Ve=4,Be=5,Ze=6,Je=7,Qe=8;function Ke(e,a){return(e%a+a)%a}function Xe(e,a){if(isNaN(e)||isNaN(a))return NaN;var i=Ke(a,12);return e+=(a-i)/12,1===i?ce(e)?29:28:31-i%7%2}$e=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var a;for(a=0;a<this.length;++a)if(this[a]===e)return a;return-1},U("M",["MM",2],"Mo",(function(){return this.month()+1})),U("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),U("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),ie("month","M"),oe("month",8),Ae("M",we),Ae("MM",we,ge),Ae("MMM",(function(e,a){return a.monthsShortRegex(e)})),Ae("MMMM",(function(e,a){return a.monthsRegex(e)})),Ie(["M","MM"],(function(e,a){a[He]=pe(e)-1})),Ie(["MMM","MMMM"],(function(e,a,i,n){var t=i._locale.monthsParse(e,n,i._strict);null!=t?a[He]=t:v(i).invalidMonth=e}));var ea="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),aa="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ia=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,na=Ce,ta=Ce;function sa(e,a){return e?s(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ia).test(a)?"format":"standalone"][e.month()]:s(this._months)?this._months:this._months.standalone}function oa(e,a){return e?s(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ia.test(a)?"format":"standalone"][e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ra(e,a,i){var n,t,s,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)s=f([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(s,"").toLocaleLowerCase();return i?"MMM"===a?-1!==(t=$e.call(this._shortMonthsParse,o))?t:null:-1!==(t=$e.call(this._longMonthsParse,o))?t:null:"MMM"===a?-1!==(t=$e.call(this._shortMonthsParse,o))||-1!==(t=$e.call(this._longMonthsParse,o))?t:null:-1!==(t=$e.call(this._longMonthsParse,o))||-1!==(t=$e.call(this._shortMonthsParse,o))?t:null}function ca(e,a,i){var n,t,s;if(this._monthsParseExact)return ra.call(this,e,a,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(t=f([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(t,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(t,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(s="^"+this.months(t,"")+"|^"+this.monthsShort(t,""),this._monthsParse[n]=new RegExp(s.replace(".",""),"i")),i&&"MMMM"===a&&this._longMonthsParse[n].test(e))return n;if(i&&"MMM"===a&&this._shortMonthsParse[n].test(e))return n;if(!i&&this._monthsParse[n].test(e))return n}}function la(e,a){var i;if(!e.isValid())return e;if("string"==typeof a)if(/^\d+$/.test(a))a=pe(a);else if(!p(a=e.localeData().monthsParse(a)))return e;return i=Math.min(e.date(),Xe(e.year(),a)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](a,i),e}function pa(e){return null!=e?(la(this,e),n.updateOffset(this,!0),this):de(this,"Month")}function ua(){return Xe(this.year(),this.month())}function da(e){return this._monthsParseExact?(r(this,"_monthsRegex")||fa.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(r(this,"_monthsShortRegex")||(this._monthsShortRegex=na),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function ma(e){return this._monthsParseExact?(r(this,"_monthsRegex")||fa.call(this),e?this._monthsStrictRegex:this._monthsRegex):(r(this,"_monthsRegex")||(this._monthsRegex=ta),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function fa(){function e(e,a){return a.length-e.length}var a,i,n=[],t=[],s=[];for(a=0;a<12;a++)i=f([2e3,a]),n.push(this.monthsShort(i,"")),t.push(this.months(i,"")),s.push(this.months(i,"")),s.push(this.monthsShort(i,""));for(n.sort(e),t.sort(e),s.sort(e),a=0;a<12;a++)n[a]=Le(n[a]),t[a]=Le(t[a]);for(a=0;a<24;a++)s[a]=Le(s[a]);this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+t.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function ha(e){return ce(e)?366:365}U("Y",0,0,(function(){var e=this.year();return e<=9999?R(e,4):"+"+e})),U(0,["YY",2],0,(function(){return this.year()%100})),U(0,["YYYY",4],0,"year"),U(0,["YYYYY",5],0,"year"),U(0,["YYYYYY",6,!0],0,"year"),ie("year","y"),oe("year",1),Ae("Y",Te),Ae("YY",we,ge),Ae("YYYY",De,ye),Ae("YYYYY",Me,_e),Ae("YYYYYY",Me,_e),Ie(["YYYYY","YYYYYY"],We),Ie("YYYY",(function(e,a){a[We]=2===e.length?n.parseTwoDigitYear(e):pe(e)})),Ie("YY",(function(e,a){a[We]=n.parseTwoDigitYear(e)})),Ie("Y",(function(e,a){a[We]=parseInt(e,10)})),n.parseTwoDigitYear=function(e){return pe(e)+(pe(e)>68?1900:2e3)};var va=ue("FullYear",!0);function xa(){return ce(this.year())}function ga(e,a,i,n,t,s,o){var r;return e<100&&e>=0?(r=new Date(e+400,a,i,n,t,s,o),isFinite(r.getFullYear())&&r.setFullYear(e)):r=new Date(e,a,i,n,t,s,o),r}function ba(e){var a,i;return e<100&&e>=0?((i=Array.prototype.slice.call(arguments))[0]=e+400,a=new Date(Date.UTC.apply(null,i)),isFinite(a.getUTCFullYear())&&a.setUTCFullYear(e)):a=new Date(Date.UTC.apply(null,arguments)),a}function ya(e,a,i){var n=7+a-i;return-(7+ba(e,0,n).getUTCDay()-a)%7+n-1}function _a(e,a,i,n,t){var s,o,r=1+7*(a-1)+(7+i-n)%7+ya(e,n,t);return r<=0?o=ha(s=e-1)+r:r>ha(e)?(s=e+1,o=r-ha(e)):(s=e,o=r),{year:s,dayOfYear:o}}function wa(e,a,i){var n,t,s=ya(e.year(),a,i),o=Math.floor((e.dayOfYear()-s-1)/7)+1;return o<1?n=o+ka(t=e.year()-1,a,i):o>ka(e.year(),a,i)?(n=o-ka(e.year(),a,i),t=e.year()+1):(t=e.year(),n=o),{week:n,year:t}}function ka(e,a,i){var n=ya(e,a,i),t=ya(e+1,a,i);return(ha(e)-n+t)/7}function Sa(e){return wa(e,this._week.dow,this._week.doy).week}U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),ie("week","w"),ie("isoWeek","W"),oe("week",5),oe("isoWeek",5),Ae("w",we),Ae("ww",we,ge),Ae("W",we),Ae("WW",we,ge),Ue(["w","ww","W","WW"],(function(e,a,i,n){a[n.substr(0,1)]=pe(e)}));var Oa={dow:0,doy:6};function Da(){return this._week.dow}function Ma(){return this._week.doy}function ja(e){var a=this.localeData().week(this);return null==e?a:this.add(7*(e-a),"d")}function Ta(e){var a=wa(this,1,4).week;return null==e?a:this.add(7*(e-a),"d")}function Ya(e,a){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=a.weekdaysParse(e))?e:null:parseInt(e,10)}function Ea(e,a){return"string"==typeof e?a.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Na(e,a){return e.slice(a,7).concat(e.slice(0,a))}U("d",0,"do","day"),U("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),U("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),U("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),ie("day","d"),ie("weekday","e"),ie("isoWeekday","E"),oe("day",11),oe("weekday",11),oe("isoWeekday",11),Ae("d",we),Ae("e",we),Ae("E",we),Ae("dd",(function(e,a){return a.weekdaysMinRegex(e)})),Ae("ddd",(function(e,a){return a.weekdaysShortRegex(e)})),Ae("dddd",(function(e,a){return a.weekdaysRegex(e)})),Ue(["dd","ddd","dddd"],(function(e,a,i,n){var t=i._locale.weekdaysParse(e,n,i._strict);null!=t?a.d=t:v(i).invalidWeekday=e})),Ue(["d","e","E"],(function(e,a,i,n){a[n]=pe(e)}));var Ca="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Aa="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ra="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Pa=Ce,La=Ce,Fa=Ce;function Ia(e,a){var i=s(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(a)?"format":"standalone"];return!0===e?Na(i,this._week.dow):e?i[e.day()]:i}function Ua(e){return!0===e?Na(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function za(e){return!0===e?Na(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function $a(e,a,i){var n,t,s,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)s=f([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(s,"").toLocaleLowerCase();return i?"dddd"===a?-1!==(t=$e.call(this._weekdaysParse,o))?t:null:"ddd"===a?-1!==(t=$e.call(this._shortWeekdaysParse,o))?t:null:-1!==(t=$e.call(this._minWeekdaysParse,o))?t:null:"dddd"===a?-1!==(t=$e.call(this._weekdaysParse,o))||-1!==(t=$e.call(this._shortWeekdaysParse,o))||-1!==(t=$e.call(this._minWeekdaysParse,o))?t:null:"ddd"===a?-1!==(t=$e.call(this._shortWeekdaysParse,o))||-1!==(t=$e.call(this._weekdaysParse,o))||-1!==(t=$e.call(this._minWeekdaysParse,o))?t:null:-1!==(t=$e.call(this._minWeekdaysParse,o))||-1!==(t=$e.call(this._weekdaysParse,o))||-1!==(t=$e.call(this._shortWeekdaysParse,o))?t:null}function Wa(e,a,i){var n,t,s;if(this._weekdaysParseExact)return $a.call(this,e,a,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(t=f([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(t,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(t,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(t,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(s="^"+this.weekdays(t,"")+"|^"+this.weekdaysShort(t,"")+"|^"+this.weekdaysMin(t,""),this._weekdaysParse[n]=new RegExp(s.replace(".",""),"i")),i&&"dddd"===a&&this._fullWeekdaysParse[n].test(e))return n;if(i&&"ddd"===a&&this._shortWeekdaysParse[n].test(e))return n;if(i&&"dd"===a&&this._minWeekdaysParse[n].test(e))return n;if(!i&&this._weekdaysParse[n].test(e))return n}}function Ha(e){if(!this.isValid())return null!=e?this:NaN;var a=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Ya(e,this.localeData()),this.add(e-a,"d")):a}function qa(e){if(!this.isValid())return null!=e?this:NaN;var a=(this.day()+7-this.localeData()._week.dow)%7;return null==e?a:this.add(e-a,"d")}function Ga(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var a=Ea(e,this.localeData());return this.day(this.day()%7?a:a-7)}return this.day()||7}function Va(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Ja.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(r(this,"_weekdaysRegex")||(this._weekdaysRegex=Pa),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ba(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Ja.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(r(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=La),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Za(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Ja.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(r(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Fa),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ja(){function e(e,a){return a.length-e.length}var a,i,n,t,s,o=[],r=[],c=[],l=[];for(a=0;a<7;a++)i=f([2e3,1]).day(a),n=Le(this.weekdaysMin(i,"")),t=Le(this.weekdaysShort(i,"")),s=Le(this.weekdays(i,"")),o.push(n),r.push(t),c.push(s),l.push(n),l.push(t),l.push(s);o.sort(e),r.sort(e),c.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Qa(){return this.hours()%12||12}function Ka(){return this.hours()||24}function Xa(e,a){U(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),a)}))}function ei(e,a){return a._meridiemParse}function ai(e){return"p"===(e+"").toLowerCase().charAt(0)}U("H",["HH",2],0,"hour"),U("h",["hh",2],0,Qa),U("k",["kk",2],0,Ka),U("hmm",0,0,(function(){return""+Qa.apply(this)+R(this.minutes(),2)})),U("hmmss",0,0,(function(){return""+Qa.apply(this)+R(this.minutes(),2)+R(this.seconds(),2)})),U("Hmm",0,0,(function(){return""+this.hours()+R(this.minutes(),2)})),U("Hmmss",0,0,(function(){return""+this.hours()+R(this.minutes(),2)+R(this.seconds(),2)})),Xa("a",!0),Xa("A",!1),ie("hour","h"),oe("hour",13),Ae("a",ei),Ae("A",ei),Ae("H",we),Ae("h",we),Ae("k",we),Ae("HH",we,ge),Ae("hh",we,ge),Ae("kk",we,ge),Ae("hmm",ke),Ae("hmmss",Se),Ae("Hmm",ke),Ae("Hmmss",Se),Ie(["H","HH"],Ge),Ie(["k","kk"],(function(e,a,i){var n=pe(e);a[Ge]=24===n?0:n})),Ie(["a","A"],(function(e,a,i){i._isPm=i._locale.isPM(e),i._meridiem=e})),Ie(["h","hh"],(function(e,a,i){a[Ge]=pe(e),v(i).bigHour=!0})),Ie("hmm",(function(e,a,i){var n=e.length-2;a[Ge]=pe(e.substr(0,n)),a[Ve]=pe(e.substr(n)),v(i).bigHour=!0})),Ie("hmmss",(function(e,a,i){var n=e.length-4,t=e.length-2;a[Ge]=pe(e.substr(0,n)),a[Ve]=pe(e.substr(n,2)),a[Be]=pe(e.substr(t)),v(i).bigHour=!0})),Ie("Hmm",(function(e,a,i){var n=e.length-2;a[Ge]=pe(e.substr(0,n)),a[Ve]=pe(e.substr(n))})),Ie("Hmmss",(function(e,a,i){var n=e.length-4,t=e.length-2;a[Ge]=pe(e.substr(0,n)),a[Ve]=pe(e.substr(n,2)),a[Be]=pe(e.substr(t))}));var ii=/[ap]\.?m?\.?/i,ni=ue("Hours",!0);function ti(e,a,i){return e>11?i?"pm":"PM":i?"am":"AM"}var si,oi={calendar:C,longDateFormat:q,invalidDate:V,ordinal:Z,dayOfMonthOrdinalParse:J,relativeTime:K,months:ea,monthsShort:aa,week:Oa,weekdays:Ca,weekdaysMin:Ra,weekdaysShort:Aa,meridiemParse:ii},ri={},ci={};function li(e,a){var i,n=Math.min(e.length,a.length);for(i=0;i<n;i+=1)if(e[i]!==a[i])return i;return n}function pi(e){return e?e.toLowerCase().replace("_","-"):e}function ui(e){for(var a,i,n,t,s=0;s<e.length;){for(a=(t=pi(e[s]).split("-")).length,i=(i=pi(e[s+1]))?i.split("-"):null;a>0;){if(n=mi(t.slice(0,a).join("-")))return n;if(i&&i.length>=a&&li(t,i)>=a-1)break;a--}s++}return si}function di(e){return null!=e.match("^[^/\\\\]*$")}function mi(a){var i=null;if(void 0===ri[a]&&e&&e.exports&&di(a))try{i=si._abbr,commonjsRequire("./locale/"+a),fi(i)}catch(e){ri[a]=null}return ri[a]}function fi(e,a){var i;return e&&((i=l(a)?xi(e):hi(e,a))?si=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),si._abbr}function hi(e,a){if(null!==a){var i,n=oi;if(a.abbr=e,null!=ri[e])j("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=ri[e]._config;else if(null!=a.parentLocale)if(null!=ri[a.parentLocale])n=ri[a.parentLocale]._config;else{if(null==(i=mi(a.parentLocale)))return ci[a.parentLocale]||(ci[a.parentLocale]=[]),ci[a.parentLocale].push({name:e,config:a}),null;n=i._config}return ri[e]=new N(E(n,a)),ci[e]&&ci[e].forEach((function(e){hi(e.name,e.config)})),fi(e),ri[e]}return delete ri[e],null}function vi(e,a){if(null!=a){var i,n,t=oi;null!=ri[e]&&null!=ri[e].parentLocale?ri[e].set(E(ri[e]._config,a)):(null!=(n=mi(e))&&(t=n._config),a=E(t,a),null==n&&(a.abbr=e),(i=new N(a)).parentLocale=ri[e],ri[e]=i),fi(e)}else null!=ri[e]&&(null!=ri[e].parentLocale?(ri[e]=ri[e].parentLocale,e===fi()&&fi(e)):null!=ri[e]&&delete ri[e]);return ri[e]}function xi(e){var a;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return si;if(!s(e)){if(a=mi(e))return a;e=[e]}return ui(e)}function gi(){return D(ri)}function bi(e){var a,i=e._a;return i&&-2===v(e).overflow&&(a=i[He]<0||i[He]>11?He:i[qe]<1||i[qe]>Xe(i[We],i[He])?qe:i[Ge]<0||i[Ge]>24||24===i[Ge]&&(0!==i[Ve]||0!==i[Be]||0!==i[Ze])?Ge:i[Ve]<0||i[Ve]>59?Ve:i[Be]<0||i[Be]>59?Be:i[Ze]<0||i[Ze]>999?Ze:-1,v(e)._overflowDayOfYear&&(a<We||a>qe)&&(a=qe),v(e)._overflowWeeks&&-1===a&&(a=Je),v(e)._overflowWeekday&&-1===a&&(a=Qe),v(e).overflow=a),e}var yi=/^\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)?)?$/,_i=/^\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)?)?$/,wi=/Z|[+-]\d\d(?::?\d\d)?/,ki=[["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}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Si=[["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/]],Oi=/^\/?Date\((-?\d+)/i,Di=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Mi={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function ji(e){var a,i,n,t,s,o,r=e._i,c=yi.exec(r)||_i.exec(r),l=ki.length,p=Si.length;if(c){for(v(e).iso=!0,a=0,i=l;a<i;a++)if(ki[a][1].exec(c[1])){t=ki[a][0],n=!1!==ki[a][2];break}if(null==t)return void(e._isValid=!1);if(c[3]){for(a=0,i=p;a<i;a++)if(Si[a][1].exec(c[3])){s=(c[2]||" ")+Si[a][0];break}if(null==s)return void(e._isValid=!1)}if(!n&&null!=s)return void(e._isValid=!1);if(c[4]){if(!wi.exec(c[4]))return void(e._isValid=!1);o="Z"}e._f=t+(s||"")+(o||""),Ui(e)}else e._isValid=!1}function Ti(e,a,i,n,t,s){var o=[Yi(e),aa.indexOf(a),parseInt(i,10),parseInt(n,10),parseInt(t,10)];return s&&o.push(parseInt(s,10)),o}function Yi(e){var a=parseInt(e,10);return a<=49?2e3+a:a<=999?1900+a:a}function Ei(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Ni(e,a,i){return!e||Aa.indexOf(e)===new Date(a[0],a[1],a[2]).getDay()||(v(i).weekdayMismatch=!0,i._isValid=!1,!1)}function Ci(e,a,i){if(e)return Mi[e];if(a)return 0;var n=parseInt(i,10),t=n%100;return(n-t)/100*60+t}function Ai(e){var a,i=Di.exec(Ei(e._i));if(i){if(a=Ti(i[4],i[3],i[2],i[5],i[6],i[7]),!Ni(i[1],a,e))return;e._a=a,e._tzm=Ci(i[8],i[9],i[10]),e._d=ba.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),v(e).rfc2822=!0}else e._isValid=!1}function Ri(e){var a=Oi.exec(e._i);null===a?(ji(e),!1===e._isValid&&(delete e._isValid,Ai(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:n.createFromInputFallback(e)))):e._d=new Date(+a[1])}function Pi(e,a,i){return null!=e?e:null!=a?a:i}function Li(e){var a=new Date(n.now());return e._useUTC?[a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()]:[a.getFullYear(),a.getMonth(),a.getDate()]}function Fi(e){var a,i,n,t,s,o=[];if(!e._d){for(n=Li(e),e._w&&null==e._a[qe]&&null==e._a[He]&&Ii(e),null!=e._dayOfYear&&(s=Pi(e._a[We],n[We]),(e._dayOfYear>ha(s)||0===e._dayOfYear)&&(v(e)._overflowDayOfYear=!0),i=ba(s,0,e._dayOfYear),e._a[He]=i.getUTCMonth(),e._a[qe]=i.getUTCDate()),a=0;a<3&&null==e._a[a];++a)e._a[a]=o[a]=n[a];for(;a<7;a++)e._a[a]=o[a]=null==e._a[a]?2===a?1:0:e._a[a];24===e._a[Ge]&&0===e._a[Ve]&&0===e._a[Be]&&0===e._a[Ze]&&(e._nextDay=!0,e._a[Ge]=0),e._d=(e._useUTC?ba:ga).apply(null,o),t=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ge]=24),e._w&&void 0!==e._w.d&&e._w.d!==t&&(v(e).weekdayMismatch=!0)}}function Ii(e){var a,i,n,t,s,o,r,c,l;null!=(a=e._w).GG||null!=a.W||null!=a.E?(s=1,o=4,i=Pi(a.GG,e._a[We],wa(Bi(),1,4).year),n=Pi(a.W,1),((t=Pi(a.E,1))<1||t>7)&&(c=!0)):(s=e._locale._week.dow,o=e._locale._week.doy,l=wa(Bi(),s,o),i=Pi(a.gg,e._a[We],l.year),n=Pi(a.w,l.week),null!=a.d?((t=a.d)<0||t>6)&&(c=!0):null!=a.e?(t=a.e+s,(a.e<0||a.e>6)&&(c=!0)):t=s),n<1||n>ka(i,s,o)?v(e)._overflowWeeks=!0:null!=c?v(e)._overflowWeekday=!0:(r=_a(i,n,t,s,o),e._a[We]=r.year,e._dayOfYear=r.dayOfYear)}function Ui(e){if(e._f!==n.ISO_8601)if(e._f!==n.RFC_2822){e._a=[],v(e).empty=!0;var a,i,t,s,o,r,c,l=""+e._i,p=l.length,u=0;for(c=(t=H(e._f,e._locale).match(P)||[]).length,a=0;a<c;a++)s=t[a],(i=(l.match(Re(s,e))||[])[0])&&((o=l.substr(0,l.indexOf(i))).length>0&&v(e).unusedInput.push(o),l=l.slice(l.indexOf(i)+i.length),u+=i.length),I[s]?(i?v(e).empty=!1:v(e).unusedTokens.push(s),ze(s,i,e)):e._strict&&!i&&v(e).unusedTokens.push(s);v(e).charsLeftOver=p-u,l.length>0&&v(e).unusedInput.push(l),e._a[Ge]<=12&&!0===v(e).bigHour&&e._a[Ge]>0&&(v(e).bigHour=void 0),v(e).parsedDateParts=e._a.slice(0),v(e).meridiem=e._meridiem,e._a[Ge]=zi(e._locale,e._a[Ge],e._meridiem),null!==(r=v(e).era)&&(e._a[We]=e._locale.erasConvertYear(r,e._a[We])),Fi(e),bi(e)}else Ai(e);else ji(e)}function zi(e,a,i){var n;return null==i?a:null!=e.meridiemHour?e.meridiemHour(a,i):null!=e.isPM?((n=e.isPM(i))&&a<12&&(a+=12),n||12!==a||(a=0),a):a}function $i(e){var a,i,n,t,s,o,r=!1,c=e._f.length;if(0===c)return v(e).invalidFormat=!0,void(e._d=new Date(NaN));for(t=0;t<c;t++)s=0,o=!1,a=_({},e),null!=e._useUTC&&(a._useUTC=e._useUTC),a._f=e._f[t],Ui(a),x(a)&&(o=!0),s+=v(a).charsLeftOver,s+=10*v(a).unusedTokens.length,v(a).score=s,r?s<n&&(n=s,i=a):(null==n||s<n||o)&&(n=s,i=a,o&&(r=!0));m(e,i||a)}function Wi(e){if(!e._d){var a=te(e._i),i=void 0===a.day?a.date:a.day;e._a=d([a.year,a.month,i,a.hour,a.minute,a.second,a.millisecond],(function(e){return e&&parseInt(e,10)})),Fi(e)}}function Hi(e){var a=new w(bi(qi(e)));return a._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function qi(e){var a=e._i,i=e._f;return e._locale=e._locale||xi(e._l),null===a||void 0===i&&""===a?g({nullInput:!0}):("string"==typeof a&&(e._i=a=e._locale.preparse(a)),k(a)?new w(bi(a)):(u(a)?e._d=a:s(i)?$i(e):i?Ui(e):Gi(e),x(e)||(e._d=null),e))}function Gi(e){var a=e._i;l(a)?e._d=new Date(n.now()):u(a)?e._d=new Date(a.valueOf()):"string"==typeof a?Ri(e):s(a)?(e._a=d(a.slice(0),(function(e){return parseInt(e,10)})),Fi(e)):o(a)?Wi(e):p(a)?e._d=new Date(a):n.createFromInputFallback(e)}function Vi(e,a,i,n,t){var r={};return!0!==a&&!1!==a||(n=a,a=void 0),!0!==i&&!1!==i||(n=i,i=void 0),(o(e)&&c(e)||s(e)&&0===e.length)&&(e=void 0),r._isAMomentObject=!0,r._useUTC=r._isUTC=t,r._l=i,r._i=e,r._f=a,r._strict=n,Hi(r)}function Bi(e,a,i,n){return Vi(e,a,i,n,!1)}n.createFromInputFallback=O("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. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),n.ISO_8601=function(){},n.RFC_2822=function(){};var Zi=O("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Bi.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:g()})),Ji=O("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Bi.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:g()}));function Qi(e,a){var i,n;if(1===a.length&&s(a[0])&&(a=a[0]),!a.length)return Bi();for(i=a[0],n=1;n<a.length;++n)a[n].isValid()&&!a[n][e](i)||(i=a[n]);return i}function Ki(){return Qi("isBefore",[].slice.call(arguments,0))}function Xi(){return Qi("isAfter",[].slice.call(arguments,0))}var en=function(){return Date.now?Date.now():+new Date},an=["year","quarter","month","week","day","hour","minute","second","millisecond"];function nn(e){var a,i,n=!1,t=an.length;for(a in e)if(r(e,a)&&(-1===$e.call(an,a)||null!=e[a]&&isNaN(e[a])))return!1;for(i=0;i<t;++i)if(e[an[i]]){if(n)return!1;parseFloat(e[an[i]])!==pe(e[an[i]])&&(n=!0)}return!0}function tn(){return this._isValid}function sn(){return jn(NaN)}function on(e){var a=te(e),i=a.year||0,n=a.quarter||0,t=a.month||0,s=a.week||a.isoWeek||0,o=a.day||0,r=a.hour||0,c=a.minute||0,l=a.second||0,p=a.millisecond||0;this._isValid=nn(a),this._milliseconds=+p+1e3*l+6e4*c+1e3*r*60*60,this._days=+o+7*s,this._months=+t+3*n+12*i,this._data={},this._locale=xi(),this._bubble()}function rn(e){return e instanceof on}function cn(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function ln(e,a,i){var n,t=Math.min(e.length,a.length),s=Math.abs(e.length-a.length),o=0;for(n=0;n<t;n++)(i&&e[n]!==a[n]||!i&&pe(e[n])!==pe(a[n]))&&o++;return o+s}function pn(e,a){U(e,0,0,(function(){var e=this.utcOffset(),i="+";return e<0&&(e=-e,i="-"),i+R(~~(e/60),2)+a+R(~~e%60,2)}))}pn("Z",":"),pn("ZZ",""),Ae("Z",Ee),Ae("ZZ",Ee),Ie(["Z","ZZ"],(function(e,a,i){i._useUTC=!0,i._tzm=dn(Ee,e)}));var un=/([\+\-]|\d\d)/gi;function dn(e,a){var i,n,t=(a||"").match(e);return null===t?null:0===(n=60*(i=((t[t.length-1]||[])+"").match(un)||["-",0,0])[1]+pe(i[2]))?0:"+"===i[0]?n:-n}function mn(e,a){var i,t;return a._isUTC?(i=a.clone(),t=(k(e)||u(e)?e.valueOf():Bi(e).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+t),n.updateOffset(i,!1),i):Bi(e).local()}function fn(e){return-Math.round(e._d.getTimezoneOffset())}function hn(e,a,i){var t,s=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=dn(Ee,e)))return this}else Math.abs(e)<16&&!i&&(e*=60);return!this._isUTC&&a&&(t=fn(this)),this._offset=e,this._isUTC=!0,null!=t&&this.add(t,"m"),s!==e&&(!a||this._changeInProgress?Cn(this,jn(e-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?s:fn(this)}function vn(e,a){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,a),this):-this.utcOffset()}function xn(e){return this.utcOffset(0,e)}function gn(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(fn(this),"m")),this}function bn(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=dn(Ye,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function yn(e){return!!this.isValid()&&(e=e?Bi(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function _n(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function wn(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,a={};return _(a,this),(a=qi(a))._a?(e=a._isUTC?f(a._a):Bi(a._a),this._isDSTShifted=this.isValid()&&ln(a._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function kn(){return!!this.isValid()&&!this._isUTC}function Sn(){return!!this.isValid()&&this._isUTC}function On(){return!!this.isValid()&&this._isUTC&&0===this._offset}n.updateOffset=function(){};var Dn=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Mn=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function jn(e,a){var i,n,t,s=e,o=null;return rn(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:p(e)||!isNaN(+e)?(s={},a?s[a]=+e:s.milliseconds=+e):(o=Dn.exec(e))?(i="-"===o[1]?-1:1,s={y:0,d:pe(o[qe])*i,h:pe(o[Ge])*i,m:pe(o[Ve])*i,s:pe(o[Be])*i,ms:pe(cn(1e3*o[Ze]))*i}):(o=Mn.exec(e))?(i="-"===o[1]?-1:1,s={y:Tn(o[2],i),M:Tn(o[3],i),w:Tn(o[4],i),d:Tn(o[5],i),h:Tn(o[6],i),m:Tn(o[7],i),s:Tn(o[8],i)}):null==s?s={}:"object"==typeof s&&("from"in s||"to"in s)&&(t=En(Bi(s.from),Bi(s.to)),(s={}).ms=t.milliseconds,s.M=t.months),n=new on(s),rn(e)&&r(e,"_locale")&&(n._locale=e._locale),rn(e)&&r(e,"_isValid")&&(n._isValid=e._isValid),n}function Tn(e,a){var i=e&&parseFloat(e.replace(",","."));return(isNaN(i)?0:i)*a}function Yn(e,a){var i={};return i.months=a.month()-e.month()+12*(a.year()-e.year()),e.clone().add(i.months,"M").isAfter(a)&&--i.months,i.milliseconds=+a-+e.clone().add(i.months,"M"),i}function En(e,a){var i;return e.isValid()&&a.isValid()?(a=mn(a,e),e.isBefore(a)?i=Yn(e,a):((i=Yn(a,e)).milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}function Nn(e,a){return function(i,n){var t;return null===n||isNaN(+n)||(j(a,"moment()."+a+"(period, number) is deprecated. Please use moment()."+a+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),t=i,i=n,n=t),Cn(this,jn(i,n),e),this}}function Cn(e,a,i,t){var s=a._milliseconds,o=cn(a._days),r=cn(a._months);e.isValid()&&(t=null==t||t,r&&la(e,de(e,"Month")+r*i),o&&me(e,"Date",de(e,"Date")+o*i),s&&e._d.setTime(e._d.valueOf()+s*i),t&&n.updateOffset(e,o||r))}jn.fn=on.prototype,jn.invalid=sn;var An=Nn(1,"add"),Rn=Nn(-1,"subtract");function Pn(e){return"string"==typeof e||e instanceof String}function Ln(e){return k(e)||u(e)||Pn(e)||p(e)||In(e)||Fn(e)||null==e}function Fn(e){var a,i,n=o(e)&&!c(e),t=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],l=s.length;for(a=0;a<l;a+=1)i=s[a],t=t||r(e,i);return n&&t}function In(e){var a=s(e),i=!1;return a&&(i=0===e.filter((function(a){return!p(a)&&Pn(e)})).length),a&&i}function Un(e){var a,i,n=o(e)&&!c(e),t=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(a=0;a<s.length;a+=1)i=s[a],t=t||r(e,i);return n&&t}function zn(e,a){var i=e.diff(a,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"}function $n(e,a){1===arguments.length&&(arguments[0]?Ln(arguments[0])?(e=arguments[0],a=void 0):Un(arguments[0])&&(a=arguments[0],e=void 0):(e=void 0,a=void 0));var i=e||Bi(),t=mn(i,this).startOf("day"),s=n.calendarFormat(this,t)||"sameElse",o=a&&(T(a[s])?a[s].call(this,i):a[s]);return this.format(o||this.localeData().calendar(s,this,Bi(i)))}function Wn(){return new w(this)}function Hn(e,a){var i=k(e)?e:Bi(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(a=ne(a)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(a).valueOf())}function qn(e,a){var i=k(e)?e:Bi(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(a=ne(a)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(a).valueOf()<i.valueOf())}function Gn(e,a,i,n){var t=k(e)?e:Bi(e),s=k(a)?a:Bi(a);return!!(this.isValid()&&t.isValid()&&s.isValid())&&("("===(n=n||"()")[0]?this.isAfter(t,i):!this.isBefore(t,i))&&(")"===n[1]?this.isBefore(s,i):!this.isAfter(s,i))}function Vn(e,a){var i,n=k(e)?e:Bi(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(a=ne(a)||"millisecond")?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(a).valueOf()<=i&&i<=this.clone().endOf(a).valueOf()))}function Bn(e,a){return this.isSame(e,a)||this.isAfter(e,a)}function Zn(e,a){return this.isSame(e,a)||this.isBefore(e,a)}function Jn(e,a,i){var n,t,s;if(!this.isValid())return NaN;if(!(n=mn(e,this)).isValid())return NaN;switch(t=6e4*(n.utcOffset()-this.utcOffset()),a=ne(a)){case"year":s=Qn(this,n)/12;break;case"month":s=Qn(this,n);break;case"quarter":s=Qn(this,n)/3;break;case"second":s=(this-n)/1e3;break;case"minute":s=(this-n)/6e4;break;case"hour":s=(this-n)/36e5;break;case"day":s=(this-n-t)/864e5;break;case"week":s=(this-n-t)/6048e5;break;default:s=this-n}return i?s:le(s)}function Qn(e,a){if(e.date()<a.date())return-Qn(a,e);var i=12*(a.year()-e.year())+(a.month()-e.month()),n=e.clone().add(i,"months");return-(i+(a-n<0?(a-n)/(n-e.clone().add(i-1,"months")):(a-n)/(e.clone().add(i+1,"months")-n)))||0}function Kn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Xn(e){if(!this.isValid())return null;var a=!0!==e,i=a?this.clone().utc():this;return i.year()<0||i.year()>9999?W(i,a?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?a?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",W(i,"Z")):W(i,a?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function et(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,a,i,n,t="moment",s="";return this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",s="Z"),e="["+t+'("]',a=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",n=s+'[")]',this.format(e+a+i+n)}function at(e){e||(e=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var a=W(this,e);return this.localeData().postformat(a)}function it(e,a){return this.isValid()&&(k(e)&&e.isValid()||Bi(e).isValid())?jn({to:this,from:e}).locale(this.locale()).humanize(!a):this.localeData().invalidDate()}function nt(e){return this.from(Bi(),e)}function tt(e,a){return this.isValid()&&(k(e)&&e.isValid()||Bi(e).isValid())?jn({from:this,to:e}).locale(this.locale()).humanize(!a):this.localeData().invalidDate()}function st(e){return this.to(Bi(),e)}function ot(e){var a;return void 0===e?this._locale._abbr:(null!=(a=xi(e))&&(this._locale=a),this)}n.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",n.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var rt=O("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)}));function ct(){return this._locale}var lt=1e3,pt=60*lt,ut=60*pt,dt=3506328*ut;function mt(e,a){return(e%a+a)%a}function ft(e,a,i){return e<100&&e>=0?new Date(e+400,a,i)-dt:new Date(e,a,i).valueOf()}function ht(e,a,i){return e<100&&e>=0?Date.UTC(e+400,a,i)-dt:Date.UTC(e,a,i)}function vt(e){var a,i;if(void 0===(e=ne(e))||"millisecond"===e||!this.isValid())return this;switch(i=this._isUTC?ht:ft,e){case"year":a=i(this.year(),0,1);break;case"quarter":a=i(this.year(),this.month()-this.month()%3,1);break;case"month":a=i(this.year(),this.month(),1);break;case"week":a=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":a=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":a=i(this.year(),this.month(),this.date());break;case"hour":a=this._d.valueOf(),a-=mt(a+(this._isUTC?0:this.utcOffset()*pt),ut);break;case"minute":a=this._d.valueOf(),a-=mt(a,pt);break;case"second":a=this._d.valueOf(),a-=mt(a,lt)}return this._d.setTime(a),n.updateOffset(this,!0),this}function xt(e){var a,i;if(void 0===(e=ne(e))||"millisecond"===e||!this.isValid())return this;switch(i=this._isUTC?ht:ft,e){case"year":a=i(this.year()+1,0,1)-1;break;case"quarter":a=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":a=i(this.year(),this.month()+1,1)-1;break;case"week":a=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":a=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":a=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":a=this._d.valueOf(),a+=ut-mt(a+(this._isUTC?0:this.utcOffset()*pt),ut)-1;break;case"minute":a=this._d.valueOf(),a+=pt-mt(a,pt)-1;break;case"second":a=this._d.valueOf(),a+=lt-mt(a,lt)-1}return this._d.setTime(a),n.updateOffset(this,!0),this}function gt(){return this._d.valueOf()-6e4*(this._offset||0)}function bt(){return Math.floor(this.valueOf()/1e3)}function yt(){return new Date(this.valueOf())}function _t(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function wt(){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 kt(){return this.isValid()?this.toISOString():null}function St(){return x(this)}function Ot(){return m({},v(this))}function Dt(){return v(this).overflow}function Mt(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function jt(e,a){var i,t,s,o=this._eras||xi("en")._eras;for(i=0,t=o.length;i<t;++i)switch("string"==typeof o[i].since&&(s=n(o[i].since).startOf("day"),o[i].since=s.valueOf()),typeof o[i].until){case"undefined":o[i].until=1/0;break;case"string":s=n(o[i].until).startOf("day").valueOf(),o[i].until=s.valueOf()}return o}function Tt(e,a,i){var n,t,s,o,r,c=this.eras();for(e=e.toUpperCase(),n=0,t=c.length;n<t;++n)if(s=c[n].name.toUpperCase(),o=c[n].abbr.toUpperCase(),r=c[n].narrow.toUpperCase(),i)switch(a){case"N":case"NN":case"NNN":if(o===e)return c[n];break;case"NNNN":if(s===e)return c[n];break;case"NNNNN":if(r===e)return c[n]}else if([s,o,r].indexOf(e)>=0)return c[n]}function Yt(e,a){var i=e.since<=e.until?1:-1;return void 0===a?n(e.since).year():n(e.since).year()+(a-e.offset)*i}function Et(){var e,a,i,n=this.localeData().eras();for(e=0,a=n.length;e<a;++e){if(i=this.clone().startOf("day").valueOf(),n[e].since<=i&&i<=n[e].until)return n[e].name;if(n[e].until<=i&&i<=n[e].since)return n[e].name}return""}function Nt(){var e,a,i,n=this.localeData().eras();for(e=0,a=n.length;e<a;++e){if(i=this.clone().startOf("day").valueOf(),n[e].since<=i&&i<=n[e].until)return n[e].narrow;if(n[e].until<=i&&i<=n[e].since)return n[e].narrow}return""}function Ct(){var e,a,i,n=this.localeData().eras();for(e=0,a=n.length;e<a;++e){if(i=this.clone().startOf("day").valueOf(),n[e].since<=i&&i<=n[e].until)return n[e].abbr;if(n[e].until<=i&&i<=n[e].since)return n[e].abbr}return""}function At(){var e,a,i,t,s=this.localeData().eras();for(e=0,a=s.length;e<a;++e)if(i=s[e].since<=s[e].until?1:-1,t=this.clone().startOf("day").valueOf(),s[e].since<=t&&t<=s[e].until||s[e].until<=t&&t<=s[e].since)return(this.year()-n(s[e].since).year())*i+s[e].offset;return this.year()}function Rt(e){return r(this,"_erasNameRegex")||$t.call(this),e?this._erasNameRegex:this._erasRegex}function Pt(e){return r(this,"_erasAbbrRegex")||$t.call(this),e?this._erasAbbrRegex:this._erasRegex}function Lt(e){return r(this,"_erasNarrowRegex")||$t.call(this),e?this._erasNarrowRegex:this._erasRegex}function Ft(e,a){return a.erasAbbrRegex(e)}function It(e,a){return a.erasNameRegex(e)}function Ut(e,a){return a.erasNarrowRegex(e)}function zt(e,a){return a._eraYearOrdinalRegex||je}function $t(){var e,a,i=[],n=[],t=[],s=[],o=this.eras();for(e=0,a=o.length;e<a;++e)n.push(Le(o[e].name)),i.push(Le(o[e].abbr)),t.push(Le(o[e].narrow)),s.push(Le(o[e].name)),s.push(Le(o[e].abbr)),s.push(Le(o[e].narrow));this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+n.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+t.join("|")+")","i")}function Wt(e,a){U(0,[e,e.length],0,a)}function Ht(e){return Jt.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function qt(e){return Jt.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Gt(){return ka(this.year(),1,4)}function Vt(){return ka(this.isoWeekYear(),1,4)}function Bt(){var e=this.localeData()._week;return ka(this.year(),e.dow,e.doy)}function Zt(){var e=this.localeData()._week;return ka(this.weekYear(),e.dow,e.doy)}function Jt(e,a,i,n,t){var s;return null==e?wa(this,n,t).year:(a>(s=ka(e,n,t))&&(a=s),Qt.call(this,e,a,i,n,t))}function Qt(e,a,i,n,t){var s=_a(e,a,i,n,t),o=ba(s.year,0,s.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function Kt(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}U("N",0,0,"eraAbbr"),U("NN",0,0,"eraAbbr"),U("NNN",0,0,"eraAbbr"),U("NNNN",0,0,"eraName"),U("NNNNN",0,0,"eraNarrow"),U("y",["y",1],"yo","eraYear"),U("y",["yy",2],0,"eraYear"),U("y",["yyy",3],0,"eraYear"),U("y",["yyyy",4],0,"eraYear"),Ae("N",Ft),Ae("NN",Ft),Ae("NNN",Ft),Ae("NNNN",It),Ae("NNNNN",Ut),Ie(["N","NN","NNN","NNNN","NNNNN"],(function(e,a,i,n){var t=i._locale.erasParse(e,n,i._strict);t?v(i).era=t:v(i).invalidEra=e})),Ae("y",je),Ae("yy",je),Ae("yyy",je),Ae("yyyy",je),Ae("yo",zt),Ie(["y","yy","yyy","yyyy"],We),Ie(["yo"],(function(e,a,i,n){var t;i._locale._eraYearOrdinalRegex&&(t=e.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?a[We]=i._locale.eraYearOrdinalParse(e,t):a[We]=parseInt(e,10)})),U(0,["gg",2],0,(function(){return this.weekYear()%100})),U(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Wt("gggg","weekYear"),Wt("ggggg","weekYear"),Wt("GGGG","isoWeekYear"),Wt("GGGGG","isoWeekYear"),ie("weekYear","gg"),ie("isoWeekYear","GG"),oe("weekYear",1),oe("isoWeekYear",1),Ae("G",Te),Ae("g",Te),Ae("GG",we,ge),Ae("gg",we,ge),Ae("GGGG",De,ye),Ae("gggg",De,ye),Ae("GGGGG",Me,_e),Ae("ggggg",Me,_e),Ue(["gggg","ggggg","GGGG","GGGGG"],(function(e,a,i,n){a[n.substr(0,2)]=pe(e)})),Ue(["gg","GG"],(function(e,a,i,t){a[t]=n.parseTwoDigitYear(e)})),U("Q",0,"Qo","quarter"),ie("quarter","Q"),oe("quarter",7),Ae("Q",xe),Ie("Q",(function(e,a){a[He]=3*(pe(e)-1)})),U("D",["DD",2],"Do","date"),ie("date","D"),oe("date",9),Ae("D",we),Ae("DD",we,ge),Ae("Do",(function(e,a){return e?a._dayOfMonthOrdinalParse||a._ordinalParse:a._dayOfMonthOrdinalParseLenient})),Ie(["D","DD"],qe),Ie("Do",(function(e,a){a[qe]=pe(e.match(we)[0])}));var Xt=ue("Date",!0);function es(e){var a=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?a:this.add(e-a,"d")}U("DDD",["DDDD",3],"DDDo","dayOfYear"),ie("dayOfYear","DDD"),oe("dayOfYear",4),Ae("DDD",Oe),Ae("DDDD",be),Ie(["DDD","DDDD"],(function(e,a,i){i._dayOfYear=pe(e)})),U("m",["mm",2],0,"minute"),ie("minute","m"),oe("minute",14),Ae("m",we),Ae("mm",we,ge),Ie(["m","mm"],Ve);var as=ue("Minutes",!1);U("s",["ss",2],0,"second"),ie("second","s"),oe("second",15),Ae("s",we),Ae("ss",we,ge),Ie(["s","ss"],Be);var is,ns,ts=ue("Seconds",!1);for(U("S",0,0,(function(){return~~(this.millisecond()/100)})),U(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),U(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),U(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),U(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),U(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),U(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),ie("millisecond","ms"),oe("millisecond",16),Ae("S",Oe,xe),Ae("SS",Oe,ge),Ae("SSS",Oe,be),is="SSSS";is.length<=9;is+="S")Ae(is,je);function ss(e,a){a[Ze]=pe(1e3*("0."+e))}for(is="S";is.length<=9;is+="S")Ie(is,ss);function os(){return this._isUTC?"UTC":""}function rs(){return this._isUTC?"Coordinated Universal Time":""}ns=ue("Milliseconds",!1),U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var cs=w.prototype;function ls(e){return Bi(1e3*e)}function ps(){return Bi.apply(null,arguments).parseZone()}function us(e){return e}cs.add=An,cs.calendar=$n,cs.clone=Wn,cs.diff=Jn,cs.endOf=xt,cs.format=at,cs.from=it,cs.fromNow=nt,cs.to=tt,cs.toNow=st,cs.get=fe,cs.invalidAt=Dt,cs.isAfter=Hn,cs.isBefore=qn,cs.isBetween=Gn,cs.isSame=Vn,cs.isSameOrAfter=Bn,cs.isSameOrBefore=Zn,cs.isValid=St,cs.lang=rt,cs.locale=ot,cs.localeData=ct,cs.max=Ji,cs.min=Zi,cs.parsingFlags=Ot,cs.set=he,cs.startOf=vt,cs.subtract=Rn,cs.toArray=_t,cs.toObject=wt,cs.toDate=yt,cs.toISOString=Xn,cs.inspect=et,"undefined"!=typeof Symbol&&null!=Symbol.for&&(cs[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),cs.toJSON=kt,cs.toString=Kn,cs.unix=bt,cs.valueOf=gt,cs.creationData=Mt,cs.eraName=Et,cs.eraNarrow=Nt,cs.eraAbbr=Ct,cs.eraYear=At,cs.year=va,cs.isLeapYear=xa,cs.weekYear=Ht,cs.isoWeekYear=qt,cs.quarter=cs.quarters=Kt,cs.month=pa,cs.daysInMonth=ua,cs.week=cs.weeks=ja,cs.isoWeek=cs.isoWeeks=Ta,cs.weeksInYear=Bt,cs.weeksInWeekYear=Zt,cs.isoWeeksInYear=Gt,cs.isoWeeksInISOWeekYear=Vt,cs.date=Xt,cs.day=cs.days=Ha,cs.weekday=qa,cs.isoWeekday=Ga,cs.dayOfYear=es,cs.hour=cs.hours=ni,cs.minute=cs.minutes=as,cs.second=cs.seconds=ts,cs.millisecond=cs.milliseconds=ns,cs.utcOffset=hn,cs.utc=xn,cs.local=gn,cs.parseZone=bn,cs.hasAlignedHourOffset=yn,cs.isDST=_n,cs.isLocal=kn,cs.isUtcOffset=Sn,cs.isUtc=On,cs.isUTC=On,cs.zoneAbbr=os,cs.zoneName=rs,cs.dates=O("dates accessor is deprecated. Use date instead.",Xt),cs.months=O("months accessor is deprecated. Use month instead",pa),cs.years=O("years accessor is deprecated. Use year instead",va),cs.zone=O("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",vn),cs.isDSTShifted=O("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",wn);var ds=N.prototype;function ms(e,a,i,n){var t=xi(),s=f().set(n,a);return t[i](s,e)}function fs(e,a,i){if(p(e)&&(a=e,e=void 0),e=e||"",null!=a)return ms(e,a,i,"month");var n,t=[];for(n=0;n<12;n++)t[n]=ms(e,n,i,"month");return t}function hs(e,a,i,n){"boolean"==typeof e?(p(a)&&(i=a,a=void 0),a=a||""):(i=a=e,e=!1,p(a)&&(i=a,a=void 0),a=a||"");var t,s=xi(),o=e?s._week.dow:0,r=[];if(null!=i)return ms(a,(i+o)%7,n,"day");for(t=0;t<7;t++)r[t]=ms(a,(t+o)%7,n,"day");return r}function vs(e,a){return fs(e,a,"months")}function xs(e,a){return fs(e,a,"monthsShort")}function gs(e,a,i){return hs(e,a,i,"weekdays")}function bs(e,a,i){return hs(e,a,i,"weekdaysShort")}function ys(e,a,i){return hs(e,a,i,"weekdaysMin")}ds.calendar=A,ds.longDateFormat=G,ds.invalidDate=B,ds.ordinal=Q,ds.preparse=us,ds.postformat=us,ds.relativeTime=X,ds.pastFuture=ee,ds.set=Y,ds.eras=jt,ds.erasParse=Tt,ds.erasConvertYear=Yt,ds.erasAbbrRegex=Pt,ds.erasNameRegex=Rt,ds.erasNarrowRegex=Lt,ds.months=sa,ds.monthsShort=oa,ds.monthsParse=ca,ds.monthsRegex=ma,ds.monthsShortRegex=da,ds.week=Sa,ds.firstDayOfYear=Ma,ds.firstDayOfWeek=Da,ds.weekdays=Ia,ds.weekdaysMin=za,ds.weekdaysShort=Ua,ds.weekdaysParse=Wa,ds.weekdaysRegex=Va,ds.weekdaysShortRegex=Ba,ds.weekdaysMinRegex=Za,ds.isPM=ai,ds.meridiem=ti,fi("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var a=e%10;return e+(1===pe(e%100/10)?"th":1===a?"st":2===a?"nd":3===a?"rd":"th")}}),n.lang=O("moment.lang is deprecated. Use moment.locale instead.",fi),n.langData=O("moment.langData is deprecated. Use moment.localeData instead.",xi);var _s=Math.abs;function ws(){var e=this._data;return this._milliseconds=_s(this._milliseconds),this._days=_s(this._days),this._months=_s(this._months),e.milliseconds=_s(e.milliseconds),e.seconds=_s(e.seconds),e.minutes=_s(e.minutes),e.hours=_s(e.hours),e.months=_s(e.months),e.years=_s(e.years),this}function ks(e,a,i,n){var t=jn(a,i);return e._milliseconds+=n*t._milliseconds,e._days+=n*t._days,e._months+=n*t._months,e._bubble()}function Ss(e,a){return ks(this,e,a,1)}function Os(e,a){return ks(this,e,a,-1)}function Ds(e){return e<0?Math.floor(e):Math.ceil(e)}function Ms(){var e,a,i,n,t,s=this._milliseconds,o=this._days,r=this._months,c=this._data;return s>=0&&o>=0&&r>=0||s<=0&&o<=0&&r<=0||(s+=864e5*Ds(Ts(r)+o),o=0,r=0),c.milliseconds=s%1e3,e=le(s/1e3),c.seconds=e%60,a=le(e/60),c.minutes=a%60,i=le(a/60),c.hours=i%24,o+=le(i/24),r+=t=le(js(o)),o-=Ds(Ts(t)),n=le(r/12),r%=12,c.days=o,c.months=r,c.years=n,this}function js(e){return 4800*e/146097}function Ts(e){return 146097*e/4800}function Ys(e){if(!this.isValid())return NaN;var a,i,n=this._milliseconds;if("month"===(e=ne(e))||"quarter"===e||"year"===e)switch(a=this._days+n/864e5,i=this._months+js(a),e){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(a=this._days+Math.round(Ts(this._months)),e){case"week":return a/7+n/6048e5;case"day":return a+n/864e5;case"hour":return 24*a+n/36e5;case"minute":return 1440*a+n/6e4;case"second":return 86400*a+n/1e3;case"millisecond":return Math.floor(864e5*a)+n;default:throw new Error("Unknown unit "+e)}}function Es(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*pe(this._months/12):NaN}function Ns(e){return function(){return this.as(e)}}var Cs=Ns("ms"),As=Ns("s"),Rs=Ns("m"),Ps=Ns("h"),Ls=Ns("d"),Fs=Ns("w"),Is=Ns("M"),Us=Ns("Q"),zs=Ns("y");function $s(){return jn(this)}function Ws(e){return e=ne(e),this.isValid()?this[e+"s"]():NaN}function Hs(e){return function(){return this.isValid()?this._data[e]:NaN}}var qs=Hs("milliseconds"),Gs=Hs("seconds"),Vs=Hs("minutes"),Bs=Hs("hours"),Zs=Hs("days"),Js=Hs("months"),Qs=Hs("years");function Ks(){return le(this.days()/7)}var Xs=Math.round,eo={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ao(e,a,i,n,t){return t.relativeTime(a||1,!!i,e,n)}function io(e,a,i,n){var t=jn(e).abs(),s=Xs(t.as("s")),o=Xs(t.as("m")),r=Xs(t.as("h")),c=Xs(t.as("d")),l=Xs(t.as("M")),p=Xs(t.as("w")),u=Xs(t.as("y")),d=s<=i.ss&&["s",s]||s<i.s&&["ss",s]||o<=1&&["m"]||o<i.m&&["mm",o]||r<=1&&["h"]||r<i.h&&["hh",r]||c<=1&&["d"]||c<i.d&&["dd",c];return null!=i.w&&(d=d||p<=1&&["w"]||p<i.w&&["ww",p]),(d=d||l<=1&&["M"]||l<i.M&&["MM",l]||u<=1&&["y"]||["yy",u])[2]=a,d[3]=+e>0,d[4]=n,ao.apply(null,d)}function no(e){return void 0===e?Xs:"function"==typeof e&&(Xs=e,!0)}function to(e,a){return void 0!==eo[e]&&(void 0===a?eo[e]:(eo[e]=a,"s"===e&&(eo.ss=a-1),!0))}function so(e,a){if(!this.isValid())return this.localeData().invalidDate();var i,n,t=!1,s=eo;return"object"==typeof e&&(a=e,e=!1),"boolean"==typeof e&&(t=e),"object"==typeof a&&(s=Object.assign({},eo,a),null!=a.s&&null==a.ss&&(s.ss=a.s-1)),n=io(this,!t,s,i=this.localeData()),t&&(n=i.pastFuture(+this,n)),i.postformat(n)}var oo=Math.abs;function ro(e){return(e>0)-(e<0)||+e}function co(){if(!this.isValid())return this.localeData().invalidDate();var e,a,i,n,t,s,o,r,c=oo(this._milliseconds)/1e3,l=oo(this._days),p=oo(this._months),u=this.asSeconds();return u?(e=le(c/60),a=le(e/60),c%=60,e%=60,i=le(p/12),p%=12,n=c?c.toFixed(3).replace(/\.?0+$/,""):"",t=u<0?"-":"",s=ro(this._months)!==ro(u)?"-":"",o=ro(this._days)!==ro(u)?"-":"",r=ro(this._milliseconds)!==ro(u)?"-":"",t+"P"+(i?s+i+"Y":"")+(p?s+p+"M":"")+(l?o+l+"D":"")+(a||e||c?"T":"")+(a?r+a+"H":"")+(e?r+e+"M":"")+(c?r+n+"S":"")):"P0D"}var lo=on.prototype;return lo.isValid=tn,lo.abs=ws,lo.add=Ss,lo.subtract=Os,lo.as=Ys,lo.asMilliseconds=Cs,lo.asSeconds=As,lo.asMinutes=Rs,lo.asHours=Ps,lo.asDays=Ls,lo.asWeeks=Fs,lo.asMonths=Is,lo.asQuarters=Us,lo.asYears=zs,lo.valueOf=Es,lo._bubble=Ms,lo.clone=$s,lo.get=Ws,lo.milliseconds=qs,lo.seconds=Gs,lo.minutes=Vs,lo.hours=Bs,lo.days=Zs,lo.weeks=Ks,lo.months=Js,lo.years=Qs,lo.humanize=so,lo.toISOString=co,lo.toString=co,lo.toJSON=co,lo.locale=ot,lo.localeData=ct,lo.toIsoString=O("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",co),lo.lang=rt,U("X",0,0,"unix"),U("x",0,0,"valueOf"),Ae("x",Te),Ae("X",Ne),Ie("X",(function(e,a,i){i._d=new Date(1e3*parseFloat(e))})),Ie("x",(function(e,a,i){i._d=new Date(pe(e))})),
2
2
  //! moment.js
3
- n.version="2.29.4",t(Bi),n.fn=cs,n.min=Ki,n.max=Xi,n.now=en,n.utc=f,n.unix=ls,n.months=vs,n.isDate=u,n.locale=fi,n.invalid=g,n.duration=jn,n.isMoment=k,n.weekdays=gs,n.parseZone=ps,n.localeData=xi,n.isDuration=rn,n.monthsShort=xs,n.weekdaysMin=ys,n.defineLocale=hi,n.updateLocale=vi,n.locales=gi,n.weekdaysShort=bs,n.normalizeUnits=ne,n.relativeTimeRounding=no,n.relativeTimeThreshold=to,n.calendarFormat=zn,n.prototype=cs,n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},n}()}));function format_date(e,a,i){if(e=utils.isString(e)?e:"",utils.isString(i)||utils.isArray(i)){const n=moment(a||new Date);return n.locale(i),n.format(e)}return moment(a||new Date).format(e)}var date=Object.freeze({__proto__:null,format_date:format_date}),helpers=Object.freeze({__proto__:null,html:html,object:object,string:string,comparison:comparison,date:date});class View{static mount(e){const a=this.loadOptions(),i=require("express-hbs");for(let[e,a]of Object.entries(helpers))for(let[e,n]of Object.entries(a))i.registerHelper(e,n);e.engine("hbs",i.express4({partialsDir:a.partials_dir,layoutsDir:a.layouts_dir,defaultLayout:a.default_layout,extname:a.extension})),e.set("view engine","hbs"),e.set("views",a.views_dir),e.use(((e,i,n)=>{a.beforeRender&&a.beforeRender(i),n()}))}static loadOptions(){const i={views_dir:a.join(process.cwd(),"views"),partials_dir:a.join(process.cwd(),"views/partials"),layouts_dir:a.join(process.cwd(),"views/layout"),default_layout:a.join(process.cwd(),"views/layout/default.hbs"),extension:".hbs",beforeRender:e=>{}},n=`${process.cwd()}/config/view`;return e.existsSync(`${n}.js`)?Object.assign(i,require(n).default||require(n)):i}}
3
+ n.version="2.29.4",t(Bi),n.fn=cs,n.min=Ki,n.max=Xi,n.now=en,n.utc=f,n.unix=ls,n.months=vs,n.isDate=u,n.locale=fi,n.invalid=g,n.duration=jn,n.isMoment=k,n.weekdays=gs,n.parseZone=ps,n.localeData=xi,n.isDuration=rn,n.monthsShort=xs,n.weekdaysMin=ys,n.defineLocale=hi,n.updateLocale=vi,n.locales=gi,n.weekdaysShort=bs,n.normalizeUnits=ne,n.relativeTimeRounding=no,n.relativeTimeThreshold=to,n.calendarFormat=zn,n.prototype=cs,n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},n}()}));function format_date(e,a,i){if(e=utils.isString(e)?e:"",utils.isString(i)||utils.isArray(i)){const n=moment(a||new Date);return n.locale(i),n.format(e)}return moment(a||new Date).format(e)}var date=Object.freeze({__proto__:null,format_date:format_date}),helpers=Object.freeze({__proto__:null,html:html,object:object,string:string,comparison:comparison,date:date});class View{static mount(e){const a=this.loadOptions(),i=require("express-hbs");for(let[e,a]of Object.entries(helpers))for(let[e,n]of Object.entries(a))i.registerHelper(e,n);e.engine("hbs",i.express4({partialsDir:a.partials_dir,layoutsDir:a.layouts_dir,defaultLayout:a.default_layout,extname:a.extension})),e.set("view engine","hbs"),e.set("views",a.views_dir),e.use(((e,i,n)=>{a.beforeRender&&a.beforeRender(e,i),n()}))}static loadOptions(){const i={views_dir:a.join(process.cwd(),"views"),partials_dir:a.join(process.cwd(),"views/partials"),layouts_dir:a.join(process.cwd(),"views/layout"),default_layout:a.join(process.cwd(),"views/layout/default.hbs"),extension:".hbs",beforeRender:(e,a)=>{}},n=`${process.cwd()}/config/view`;return e.existsSync(`${n}.js`)?Object.assign(i,require(n).default||require(n)):i}}
4
4
  /*!
5
5
  * cookie
6
6
  * Copyright(c) 2012-2014 Roman Shtylman
package/docs/index.html CHANGED
@@ -1782,7 +1782,7 @@ module.exports = router;</code></pre>
1782
1782
  <td>Extension for templates and partials files.<br>The default is <code>.hbs</code>.</td>
1783
1783
  </tr>
1784
1784
  <tr>
1785
- <td class="mw-250px"><code>beforeRender: (res: express.Response) =&gt; void</code></td>
1785
+ <td class="mw-250px"><code>beforeRender: (req: express.Request, res: express.Response) =&gt; void</code></td>
1786
1786
  <td>
1787
1787
  Hook function just before the view is rendered.<br>
1788
1788
  For example, you can set your own local variables that can be used within the view.<br>
@@ -1798,13 +1798,13 @@ module.exports = router;</code></pre>
1798
1798
  *
1799
1799
  * @example
1800
1800
  * // The message set here can be referenced in the view as {{message}}.
1801
- * beforeRender: res =&gt; {
1801
+ * beforeRender: (req, res) =&gt; {
1802
1802
  * res.locals.message = &#039;Hello World&#039;;
1803
1803
  * }
1804
1804
  *
1805
1805
  * @type {(res: express.Response) =&gt; void}
1806
1806
  */
1807
- beforeRender: res =&gt; {
1807
+ beforeRender: (req, res) =&gt; {
1808
1808
  res.locals.message = &#039;Hello World&#039;;
1809
1809
  }</code></pre>
1810
1810
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "express-sweet",
3
- "version": "1.0.26",
3
+ "version": "1.0.27",
4
4
  "description": "Express framework extension.",
5
5
  "main": "dist/build.common.js",
6
6
  "module": "dist/build.esm.js",
@@ -34,11 +34,11 @@ export default interface {
34
34
  *
35
35
  * @example
36
36
  * // The message set here can be referenced in the view as {{message}}.
37
- * beforeRender: res => {
37
+ * beforeRender: (req, res) => {
38
38
  * res.locals.message = 'Hello World';
39
39
  * }
40
40
  *
41
41
  * @type {(res: express.Response) => void}
42
42
  */
43
- beforeRender?: (res: express.Response) => void;
43
+ beforeRender?: (req: express.Request, res: express.Response) => void;
44
44
  }