Added minified files from gitignore
parent
dd46750900
commit
d2bf407314
|
@ -5,6 +5,9 @@ node_modules
|
|||
config/env*
|
||||
!config/env-sample.js
|
||||
|
||||
# Minified static files (can be built with `npm run minify`)
|
||||
static/**/*.min.*
|
||||
|
||||
# Ignore docs files
|
||||
_gh_pages
|
||||
_site
|
||||
|
|
131
account.html
131
account.html
|
@ -1,131 +0,0 @@
|
|||
{% extends '../../base.html' %}
|
||||
|
||||
{% block head %}
|
||||
{{super()}}
|
||||
<link rel="stylesheet" type="text/css" href="/files/styles/form.css">
|
||||
{% endblock %}
|
||||
|
||||
{% block main %}
|
||||
|
||||
<h1>Account Settings</h1>
|
||||
|
||||
<form role="form" method="post">
|
||||
|
||||
<p>These are standard account settings. This information will not be published anywhere. You will never be sent spam, marketing emails, or newsletters. Your email will only be used for important information, updates to terms of service, and password recovery. </p>
|
||||
|
||||
<div id='standard' class='group flex'>
|
||||
<style>
|
||||
#standard > div {
|
||||
display: flex;
|
||||
width: 45%;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div id='name'>
|
||||
<label for="name">Name:</label>
|
||||
<input name="name" type="text" value="{{user.name}}" placeholder="Enter your name" maxlength="160">
|
||||
</div>
|
||||
|
||||
<div id='email'>
|
||||
<label for="email">Email:</label>
|
||||
<input name="email" type="email" value="{{user.email}}" maxlength="200">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<p>Click save to save your name/email as entered above. If you change your email, an email will be sent to both the old address and the new address to confirm the change. To change your password, click "Change password". You will be sent an email with a link to a page where you can reset your password. These precautions are for security and to prevent mistakes. </p>
|
||||
|
||||
<div id='buttons' class='group flex' style="margin-bottom:10vh">
|
||||
<style>
|
||||
#buttons > .btn {
|
||||
width: 45%;
|
||||
}
|
||||
</style>
|
||||
<!--TODO: Disable buttons after clicking and show loading icon -->
|
||||
<input class='main btn' type="submit" value="Save settings">
|
||||
<a class='btn' href="/account/password">Change password</a>
|
||||
</div>
|
||||
|
||||
<p>You can connect to social network accounts for faster login. This information is <i>only</i> used for logging in. On some authorization screens, you will be told that Trackmap will be granted access to profile information and will be able to post to your profile. Only your account ID, which is needed for login, will be saved in our database. Trackmap will <i>never</i> post to your profile or sell information about you. For more information, see our <a href="/privacy">privacy policy</a>. </p>
|
||||
|
||||
<div id='social-connect' class='flex' style="margin-bottom:10vh">
|
||||
<style>
|
||||
|
||||
#social-connect {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
#social-connect > .btn {
|
||||
text-align: center;
|
||||
margin-left: 1vw;
|
||||
margin-right: 1vw;
|
||||
flex-grow: 1;
|
||||
flex-basis: 0;
|
||||
font-size: .9em;
|
||||
}
|
||||
#social-connect > .btn:hover {
|
||||
color: #fff;
|
||||
}
|
||||
#social-connect > .btn .fa {
|
||||
font-size: 1.1em;
|
||||
margin-left: 0;
|
||||
margin-right: 5%;
|
||||
}
|
||||
|
||||
/* Connected social button styles */
|
||||
#social-connect > .btn.gp.connected {
|
||||
border: 2px solid rgb(206,77,57);
|
||||
}
|
||||
#social-connect > .btn.fb.connected {
|
||||
border: 2px solid rgb(48,88,145);
|
||||
}
|
||||
#social-connect > .btn.tw.connected {
|
||||
border: 2px solid rgb(44,168,210);
|
||||
}
|
||||
|
||||
/* Unconnected social button styles */
|
||||
#social-connect > .btn.gp:not(.connected) {
|
||||
background: rgb(206,77,57);
|
||||
}
|
||||
#social-connect > .btn.gp:not(.connected):hover {
|
||||
background: rgb(251,122,102);
|
||||
}
|
||||
#social-connect > .btn.fb:not(.connected) {
|
||||
background: rgb(48,88,145);
|
||||
}
|
||||
#social-connect > .btn.fb:not(.connected):hover {
|
||||
background: rgb(93,133,190);
|
||||
}
|
||||
#social-connect > .btn.tw:not(.connected) {
|
||||
background: rgb(44,168,210);
|
||||
}
|
||||
#social-connect > .btn.tw:not(.connected):hover {
|
||||
background: rgb(89,213,255);
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<a href="/login/google" class='btn gp{% if user.auth.google %} connected{% endif %}'>
|
||||
<i class="fa fa-google-plus"></i>
|
||||
{% if user.auth.google %}Disconnect{% else %}Connect{% endif %} Google
|
||||
</a>
|
||||
<a href="/login/facebook" class='btn fb{% if user.auth.facebook %} connected{% endif %}'>
|
||||
<i class="fa fa-facebook"></i>
|
||||
{% if user.auth.facebook %}Disconnect{% else %}Connect{% endif %} Facebook
|
||||
</a>
|
||||
<a href="/login/twitter" class='btn tw{% if user.auth.twitter %} connected{% endif %}'>
|
||||
<i class="fa fa-twitter"></i>
|
||||
{% if user.auth.twitter %}Disconnect{% else %}Connect{% endif %} Twitter
|
||||
</a>
|
||||
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
<p>If you're satisfied with your settings, you can create and edit maps on the <a href="/maps">maps page</a>. </p>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block javascript %}
|
||||
{{super()}}
|
||||
<script src="/files/scripts/validator.min.js"></script>
|
||||
{% endblock %}
|
File diff suppressed because one or more lines are too long
|
@ -1,210 +0,0 @@
|
|||
//! moment.js
|
||||
//! version : 2.12.0
|
||||
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
||||
//! license : MIT
|
||||
//! momentjs.com
|
||||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.moment=e()}(this,function(){"use strict"
|
||||
function t(){return Qn.apply(null,arguments)}function e(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function n(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function i(t,e){var n,i=[]
|
||||
for(n=0;n<t.length;++n)i.push(e(t[n],n))
|
||||
return i}function s(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function r(t,e){for(var n in e)s(e,n)&&(t[n]=e[n])
|
||||
return s(e,"toString")&&(t.toString=e.toString),s(e,"valueOf")&&(t.valueOf=e.valueOf),t}function a(t,e,n,i){return Pt(t,e,n,i,!0).utc()}function o(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function u(t){return null==t._pf&&(t._pf=o()),t._pf}function d(t){if(null==t._isValid){var e=u(t)
|
||||
t._isValid=!(isNaN(t._d.getTime())||!(e.overflow<0)||e.empty||e.invalidMonth||e.invalidWeekday||e.nullInput||e.invalidFormat||e.userInvalidated),t._strict&&(t._isValid=t._isValid&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour)}return t._isValid}function l(t){var e=a(NaN)
|
||||
return null!=t?r(u(e),t):u(e).userInvalidated=!0,e}function h(t){return void 0===t}function c(t,e){var n,i,s
|
||||
if(h(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),h(e._i)||(t._i=e._i),h(e._f)||(t._f=e._f),h(e._l)||(t._l=e._l),h(e._strict)||(t._strict=e._strict),h(e._tzm)||(t._tzm=e._tzm),h(e._isUTC)||(t._isUTC=e._isUTC),h(e._offset)||(t._offset=e._offset),h(e._pf)||(t._pf=u(e)),h(e._locale)||(t._locale=e._locale),Xn.length>0)for(n in Xn)i=Xn[n],s=e[i],h(s)||(t[i]=s)
|
||||
return t}function f(e){c(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),!1===Kn&&(Kn=!0,t.updateOffset(this),Kn=!1)}function m(t){return t instanceof f||null!=t&&null!=t._isAMomentObject}function _(t){return 0>t?Math.ceil(t):Math.floor(t)}function y(t){var e=+t,n=0
|
||||
return 0!==e&&isFinite(e)&&(n=_(e)),n}function g(t,e,n){var i,s=Math.min(t.length,e.length),r=Math.abs(t.length-e.length),a=0
|
||||
for(i=0;s>i;i++)(n&&t[i]!==e[i]||!n&&y(t[i])!==y(e[i]))&&a++
|
||||
return a+r}function p(e){!1===t.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function v(t,e){var n=!0
|
||||
return r(function(){return n&&(p(t+"\nArguments: "+Array.prototype.slice.call(arguments).join(", ")+"\n"+(new Error).stack),n=!1),e.apply(this,arguments)},e)}function D(t,e){ti[t]||(p(e),ti[t]=!0)}function M(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function S(t){return"[object Object]"===Object.prototype.toString.call(t)}function Y(t){var e,n
|
||||
for(n in t)e=t[n],M(e)?this[n]=e:this["_"+n]=e
|
||||
this._config=t,this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function w(t,e){var n,i=r({},t)
|
||||
for(n in e)s(e,n)&&(S(t[n])&&S(e[n])?(i[n]={},r(i[n],t[n]),r(i[n],e[n])):null!=e[n]?i[n]=e[n]:delete i[n])
|
||||
return i}function k(t){null!=t&&this.set(t)}function T(t){return t?t.toLowerCase().replace("_","-"):t}function b(t){for(var e,n,i,s,r=0;r<t.length;){for(s=T(t[r]).split("-"),e=s.length,n=T(t[r+1]),n=n?n.split("-"):null;e>0;){if(i=O(s.slice(0,e).join("-")))return i
|
||||
if(n&&n.length>=e&&g(s,n,!0)>=e-1)break
|
||||
e--}r++}return null}function O(t){var e=null
|
||||
if(!ni[t]&&"undefined"!=typeof module&&module&&module.exports)try{e=ei._abbr,require("./locale/"+t),W(e)}catch(t){}return ni[t]}function W(t,e){var n
|
||||
return t&&(n=h(e)?G(t):x(t,e))&&(ei=n),ei._abbr}function x(t,e){return null!==e?(e.abbr=t,null!=ni[t]?(D("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale"),e=w(ni[t]._config,e)):null!=e.parentLocale&&(null!=ni[e.parentLocale]?e=w(ni[e.parentLocale]._config,e):D("parentLocaleUndefined","specified parentLocale is not defined yet")),ni[t]=new k(e),W(t),ni[t]):(delete ni[t],null)}function U(t,e){if(null!=e){var n
|
||||
null!=ni[t]&&(e=w(ni[t]._config,e)),n=new k(e),n.parentLocale=ni[t],ni[t]=n,W(t)}else null!=ni[t]&&(null!=ni[t].parentLocale?ni[t]=ni[t].parentLocale:null!=ni[t]&&delete ni[t])
|
||||
return ni[t]}function G(t){var n
|
||||
if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return ei
|
||||
if(!e(t)){if(n=O(t))return n
|
||||
t=[t]}return b(t)}function P(){return Object.keys(ni)}function C(t,e){var n=t.toLowerCase()
|
||||
ii[n]=ii[n+"s"]=ii[e]=t}function F(t){return"string"==typeof t?ii[t]||ii[t.toLowerCase()]:void 0}function H(t){var e,n,i={}
|
||||
for(n in t)s(t,n)&&(e=F(n))&&(i[e]=t[n])
|
||||
return i}function L(e,n){return function(i){return null!=i?(N(this,e,i),t.updateOffset(this,n),this):V(this,e)}}function V(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function N(t,e,n){t.isValid()&&t._d["set"+(t._isUTC?"UTC":"")+e](n)}function I(t,e){var n
|
||||
if("object"==typeof t)for(n in t)this.set(n,t[n])
|
||||
else if(t=F(t),M(this[t]))return this[t](e)
|
||||
return this}function A(t,e,n){var i=""+Math.abs(t),s=e-i.length
|
||||
return(t>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+i}function R(t,e,n,i){var s=i
|
||||
"string"==typeof i&&(s=function(){return this[i]()}),t&&(oi[t]=s),e&&(oi[e[0]]=function(){return A(s.apply(this,arguments),e[1],e[2])}),n&&(oi[n]=function(){return this.localeData().ordinal(s.apply(this,arguments),t)})}function E(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function j(t){var e,n,i=t.match(si)
|
||||
for(e=0,n=i.length;n>e;e++)oi[i[e]]?i[e]=oi[i[e]]:i[e]=E(i[e])
|
||||
return function(s){var r=""
|
||||
for(e=0;n>e;e++)r+=i[e]instanceof Function?i[e].call(s,t):i[e]
|
||||
return r}}function z(t,e){return t.isValid()?(e=Z(e,t.localeData()),ai[e]=ai[e]||j(e),ai[e](t)):t.localeData().invalidDate()}function Z(t,e){function n(t){return e.longDateFormat(t)||t}var i=5
|
||||
for(ri.lastIndex=0;i>=0&&ri.test(t);)t=t.replace(ri,n),ri.lastIndex=0,i-=1
|
||||
return t}function $(t,e,n){Mi[t]=M(e)?e:function(t,i){return t&&n?n:e}}function q(t,e){return s(Mi,t)?Mi[t](e._strict,e._locale):new RegExp(J(t))}function J(t){return B(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,i,s){return e||n||i||s}))}function B(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Q(t,e){var n,i=e
|
||||
for("string"==typeof t&&(t=[t]),"number"==typeof e&&(i=function(t,n){n[e]=y(t)}),n=0;n<t.length;n++)Si[t[n]]=i}function X(t,e){Q(t,function(t,n,i,s){i._w=i._w||{},e(t,i._w,i,s)})}function K(t,e,n){null!=e&&s(Si,t)&&Si[t](e,n._a,n,t)}function tt(t,e){return new Date(Date.UTC(t,e+1,0)).getUTCDate()}function et(t,n){return e(this._months)?this._months[t.month()]:this._months[Gi.test(n)?"format":"standalone"][t.month()]}function nt(t,n){return e(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Gi.test(n)?"format":"standalone"][t.month()]}function it(t,e,n){var i,s,r
|
||||
for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;12>i;i++){if(s=a([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(r="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[i]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i
|
||||
if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i
|
||||
if(!n&&this._monthsParse[i].test(t))return i}}function st(t,e){var n
|
||||
if(!t.isValid())return t
|
||||
if("string"==typeof e)if(/^\d+$/.test(e))e=y(e)
|
||||
else if("number"!=typeof(e=t.localeData().monthsParse(e)))return t
|
||||
return n=Math.min(t.date(),tt(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function rt(e){return null!=e?(st(this,e),t.updateOffset(this,!0),this):V(this,"Month")}function at(){return tt(this.year(),this.month())}function ot(t){return this._monthsParseExact?(s(this,"_monthsRegex")||dt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex}function ut(t){return this._monthsParseExact?(s(this,"_monthsRegex")||dt.call(this),t?this._monthsStrictRegex:this._monthsRegex):this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex}function dt(){function t(t,e){return e.length-t.length}var e,n,i=[],s=[],r=[]
|
||||
for(e=0;12>e;e++)n=a([2e3,e]),i.push(this.monthsShort(n,"")),s.push(this.months(n,"")),r.push(this.months(n,"")),r.push(this.monthsShort(n,""))
|
||||
for(i.sort(t),s.sort(t),r.sort(t),e=0;12>e;e++)i[e]=B(i[e]),s[e]=B(s[e]),r[e]=B(r[e])
|
||||
this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")$","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")$","i")}function lt(t){var e,n=t._a
|
||||
return n&&-2===u(t).overflow&&(e=n[wi]<0||n[wi]>11?wi:n[ki]<1||n[ki]>tt(n[Yi],n[wi])?ki:n[Ti]<0||n[Ti]>24||24===n[Ti]&&(0!==n[bi]||0!==n[Oi]||0!==n[Wi])?Ti:n[bi]<0||n[bi]>59?bi:n[Oi]<0||n[Oi]>59?Oi:n[Wi]<0||n[Wi]>999?Wi:-1,u(t)._overflowDayOfYear&&(Yi>e||e>ki)&&(e=ki),u(t)._overflowWeeks&&-1===e&&(e=xi),u(t)._overflowWeekday&&-1===e&&(e=Ui),u(t).overflow=e),t}function ht(t){var e,n,i,s,r,a,o=t._i,d=Fi.exec(o)||Hi.exec(o)
|
||||
if(d){for(u(t).iso=!0,e=0,n=Vi.length;n>e;e++)if(Vi[e][1].exec(d[1])){s=Vi[e][0],i=!1!==Vi[e][2]
|
||||
break}if(null==s)return void(t._isValid=!1)
|
||||
if(d[3]){for(e=0,n=Ni.length;n>e;e++)if(Ni[e][1].exec(d[3])){r=(d[2]||" ")+Ni[e][0]
|
||||
break}if(null==r)return void(t._isValid=!1)}if(!i&&null!=r)return void(t._isValid=!1)
|
||||
if(d[4]){if(!Li.exec(d[4]))return void(t._isValid=!1)
|
||||
a="Z"}t._f=s+(r||"")+(a||""),Tt(t)}else t._isValid=!1}function ct(e){var n=Ii.exec(e._i)
|
||||
return null!==n?void(e._d=new Date(+n[1])):(ht(e),void(!1===e._isValid&&(delete e._isValid,t.createFromInputFallback(e))))}function ft(t,e,n,i,s,r,a){var o=new Date(t,e,n,i,s,r,a)
|
||||
return 100>t&&t>=0&&isFinite(o.getFullYear())&&o.setFullYear(t),o}function mt(t){var e=new Date(Date.UTC.apply(null,arguments))
|
||||
return 100>t&&t>=0&&isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t),e}function _t(t){return yt(t)?366:365}function yt(t){return t%4==0&&t%100!=0||t%400==0}function gt(){return yt(this.year())}function pt(t,e,n){var i=7+e-n
|
||||
return-(7+mt(t,0,i).getUTCDay()-e)%7+i-1}function vt(t,e,n,i,s){var r,a,o=(7+n-i)%7,u=pt(t,i,s),d=1+7*(e-1)+o+u
|
||||
return 0>=d?(r=t-1,a=_t(r)+d):d>_t(t)?(r=t+1,a=d-_t(t)):(r=t,a=d),{year:r,dayOfYear:a}}function Dt(t,e,n){var i,s,r=pt(t.year(),e,n),a=Math.floor((t.dayOfYear()-r-1)/7)+1
|
||||
return 1>a?(s=t.year()-1,i=a+Mt(s,e,n)):a>Mt(t.year(),e,n)?(i=a-Mt(t.year(),e,n),s=t.year()+1):(s=t.year(),i=a),{week:i,year:s}}function Mt(t,e,n){var i=pt(t,e,n),s=pt(t+1,e,n)
|
||||
return(_t(t)-i+s)/7}function St(t,e,n){return null!=t?t:null!=e?e:n}function Yt(e){var n=new Date(t.now())
|
||||
return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function wt(t){var e,n,i,s,r=[]
|
||||
if(!t._d){for(i=Yt(t),t._w&&null==t._a[ki]&&null==t._a[wi]&&kt(t),t._dayOfYear&&(s=St(t._a[Yi],i[Yi]),t._dayOfYear>_t(s)&&(u(t)._overflowDayOfYear=!0),n=mt(s,0,t._dayOfYear),t._a[wi]=n.getUTCMonth(),t._a[ki]=n.getUTCDate()),e=0;3>e&&null==t._a[e];++e)t._a[e]=r[e]=i[e]
|
||||
for(;7>e;e++)t._a[e]=r[e]=null==t._a[e]?2===e?1:0:t._a[e]
|
||||
24===t._a[Ti]&&0===t._a[bi]&&0===t._a[Oi]&&0===t._a[Wi]&&(t._nextDay=!0,t._a[Ti]=0),t._d=(t._useUTC?mt:ft).apply(null,r),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Ti]=24)}}function kt(t){var e,n,i,s,r,a,o,d
|
||||
e=t._w,null!=e.GG||null!=e.W||null!=e.E?(r=1,a=4,n=St(e.GG,t._a[Yi],Dt(Ct(),1,4).year),i=St(e.W,1),(1>(s=St(e.E,1))||s>7)&&(d=!0)):(r=t._locale._week.dow,a=t._locale._week.doy,n=St(e.gg,t._a[Yi],Dt(Ct(),r,a).year),i=St(e.w,1),null!=e.d?(0>(s=e.d)||s>6)&&(d=!0):null!=e.e?(s=e.e+r,(e.e<0||e.e>6)&&(d=!0)):s=r),1>i||i>Mt(n,r,a)?u(t)._overflowWeeks=!0:null!=d?u(t)._overflowWeekday=!0:(o=vt(n,i,s,r,a),t._a[Yi]=o.year,t._dayOfYear=o.dayOfYear)}function Tt(e){if(e._f===t.ISO_8601)return void ht(e)
|
||||
e._a=[],u(e).empty=!0
|
||||
var n,i,s,r,a,o=""+e._i,d=o.length,l=0
|
||||
for(s=Z(e._f,e._locale).match(si)||[],n=0;n<s.length;n++)r=s[n],i=(o.match(q(r,e))||[])[0],i&&(a=o.substr(0,o.indexOf(i)),a.length>0&&u(e).unusedInput.push(a),o=o.slice(o.indexOf(i)+i.length),l+=i.length),oi[r]?(i?u(e).empty=!1:u(e).unusedTokens.push(r),K(r,i,e)):e._strict&&!i&&u(e).unusedTokens.push(r)
|
||||
u(e).charsLeftOver=d-l,o.length>0&&u(e).unusedInput.push(o),!0===u(e).bigHour&&e._a[Ti]<=12&&e._a[Ti]>0&&(u(e).bigHour=void 0),e._a[Ti]=bt(e._locale,e._a[Ti],e._meridiem),wt(e),lt(e)}function bt(t,e,n){var i
|
||||
return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?(i=t.isPM(n),i&&12>e&&(e+=12),i||12!==e||(e=0),e):e}function Ot(t){var e,n,i,s,a
|
||||
if(0===t._f.length)return u(t).invalidFormat=!0,void(t._d=new Date(NaN))
|
||||
for(s=0;s<t._f.length;s++)a=0,e=c({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[s],Tt(e),d(e)&&(a+=u(e).charsLeftOver,a+=10*u(e).unusedTokens.length,u(e).score=a,(null==i||i>a)&&(i=a,n=e))
|
||||
r(t,n||e)}function Wt(t){if(!t._d){var e=H(t._i)
|
||||
t._a=i([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),wt(t)}}function xt(t){var e=new f(lt(Ut(t)))
|
||||
return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function Ut(t){var i=t._i,s=t._f
|
||||
return t._locale=t._locale||G(t._l),null===i||void 0===s&&""===i?l({nullInput:!0}):("string"==typeof i&&(t._i=i=t._locale.preparse(i)),m(i)?new f(lt(i)):(e(s)?Ot(t):s?Tt(t):n(i)?t._d=i:Gt(t),d(t)||(t._d=null),t))}function Gt(s){var r=s._i
|
||||
void 0===r?s._d=new Date(t.now()):n(r)?s._d=new Date(+r):"string"==typeof r?ct(s):e(r)?(s._a=i(r.slice(0),function(t){return parseInt(t,10)}),wt(s)):"object"==typeof r?Wt(s):"number"==typeof r?s._d=new Date(r):t.createFromInputFallback(s)}function Pt(t,e,n,i,s){var r={}
|
||||
return"boolean"==typeof n&&(i=n,n=void 0),r._isAMomentObject=!0,r._useUTC=r._isUTC=s,r._l=n,r._i=t,r._f=e,r._strict=i,xt(r)}function Ct(t,e,n,i){return Pt(t,e,n,i,!1)}function Ft(t,n){var i,s
|
||||
if(1===n.length&&e(n[0])&&(n=n[0]),!n.length)return Ct()
|
||||
for(i=n[0],s=1;s<n.length;++s)(!n[s].isValid()||n[s][t](i))&&(i=n[s])
|
||||
return i}function Ht(){return Ft("isBefore",[].slice.call(arguments,0))}function Lt(){return Ft("isAfter",[].slice.call(arguments,0))}function Vt(t){var e=H(t),n=e.year||0,i=e.quarter||0,s=e.month||0,r=e.week||0,a=e.day||0,o=e.hour||0,u=e.minute||0,d=e.second||0,l=e.millisecond||0
|
||||
this._milliseconds=+l+1e3*d+6e4*u+36e5*o,this._days=+a+7*r,this._months=+s+3*i+12*n,this._data={},this._locale=G(),this._bubble()}function Nt(t){return t instanceof Vt}function It(t,e){R(t,0,0,function(){var t=this.utcOffset(),n="+"
|
||||
return 0>t&&(t=-t,n="-"),n+A(~~(t/60),2)+e+A(~~t%60,2)})}function At(t,e){var n=(e||"").match(t)||[],i=n[n.length-1]||[],s=(i+"").match(zi)||["-",0,0],r=60*s[1]+y(s[2])
|
||||
return"+"===s[0]?r:-r}function Rt(e,i){var s,r
|
||||
return i._isUTC?(s=i.clone(),r=(m(e)||n(e)?+e:+Ct(e))-+s,s._d.setTime(+s._d+r),t.updateOffset(s,!1),s):Ct(e).local()}function Et(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function jt(e,n){var i,s=this._offset||0
|
||||
return this.isValid()?null!=e?("string"==typeof e?e=At(vi,e):Math.abs(e)<16&&(e*=60),!this._isUTC&&n&&(i=Et(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),s!==e&&(!n||this._changeInProgress?oe(this,ee(e-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?s:Et(this):null!=e?this:NaN}function zt(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function Zt(t){return this.utcOffset(0,t)}function $t(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Et(this),"m")),this}function qt(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(At(pi,this._i)),this}function Jt(t){return!!this.isValid()&&(t=t?Ct(t).utcOffset():0,(this.utcOffset()-t)%60==0)}function Bt(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Qt(){if(!h(this._isDSTShifted))return this._isDSTShifted
|
||||
var t={}
|
||||
if(c(t,this),t=Ut(t),t._a){var e=t._isUTC?a(t._a):Ct(t._a)
|
||||
this._isDSTShifted=this.isValid()&&g(t._a,e.toArray())>0}else this._isDSTShifted=!1
|
||||
return this._isDSTShifted}function Xt(){return!!this.isValid()&&!this._isUTC}function Kt(){return!!this.isValid()&&this._isUTC}function te(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function ee(t,e){var n,i,r,a=t,o=null
|
||||
return Nt(t)?a={ms:t._milliseconds,d:t._days,M:t._months}:"number"==typeof t?(a={},e?a[e]=t:a.milliseconds=t):(o=Zi.exec(t))?(n="-"===o[1]?-1:1,a={y:0,d:y(o[ki])*n,h:y(o[Ti])*n,m:y(o[bi])*n,s:y(o[Oi])*n,ms:y(o[Wi])*n}):(o=$i.exec(t))?(n="-"===o[1]?-1:1,a={y:ne(o[2],n),M:ne(o[3],n),w:ne(o[4],n),d:ne(o[5],n),h:ne(o[6],n),m:ne(o[7],n),s:ne(o[8],n)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(r=se(Ct(a.from),Ct(a.to)),a={},a.ms=r.milliseconds,a.M=r.months),i=new Vt(a),Nt(t)&&s(t,"_locale")&&(i._locale=t._locale),i}function ne(t,e){var n=t&&parseFloat(t.replace(",","."))
|
||||
return(isNaN(n)?0:n)*e}function ie(t,e){var n={milliseconds:0,months:0}
|
||||
return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function se(t,e){var n
|
||||
return t.isValid()&&e.isValid()?(e=Rt(e,t),t.isBefore(e)?n=ie(t,e):(n=ie(e,t),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function re(t){return 0>t?-1*Math.round(-1*t):Math.round(t)}function ae(t,e){return function(n,i){var s,r
|
||||
return null===i||isNaN(+i)||(D(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period)."),r=n,n=i,i=r),n="string"==typeof n?+n:n,s=ee(n,i),oe(this,s,t),this}}function oe(e,n,i,s){var r=n._milliseconds,a=re(n._days),o=re(n._months)
|
||||
e.isValid()&&(s=null==s||s,r&&e._d.setTime(+e._d+r*i),a&&N(e,"Date",V(e,"Date")+a*i),o&&st(e,V(e,"Month")+o*i),s&&t.updateOffset(e,a||o))}function ue(t,e){var n=t||Ct(),i=Rt(n,this).startOf("day"),s=this.diff(i,"days",!0),r=-6>s?"sameElse":-1>s?"lastWeek":0>s?"lastDay":1>s?"sameDay":2>s?"nextDay":7>s?"nextWeek":"sameElse",a=e&&(M(e[r])?e[r]():e[r])
|
||||
return this.format(a||this.localeData().calendar(r,this,Ct(n)))}function de(){return new f(this)}function le(t,e){var n=m(t)?t:Ct(t)
|
||||
return!(!this.isValid()||!n.isValid())&&(e=F(h(e)?"millisecond":e),"millisecond"===e?+this>+n:+n<+this.clone().startOf(e))}function he(t,e){var n=m(t)?t:Ct(t)
|
||||
return!(!this.isValid()||!n.isValid())&&(e=F(h(e)?"millisecond":e),"millisecond"===e?+n>+this:+this.clone().endOf(e)<+n)}function ce(t,e,n){return this.isAfter(t,n)&&this.isBefore(e,n)}function fe(t,e){var n,i=m(t)?t:Ct(t)
|
||||
return!(!this.isValid()||!i.isValid())&&(e=F(e||"millisecond"),"millisecond"===e?+this==+i:(n=+i,+this.clone().startOf(e)<=n&&n<=+this.clone().endOf(e)))}function me(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function _e(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function ye(t,e,n){var i,s,r,a
|
||||
return this.isValid()?(i=Rt(t,this),i.isValid()?(s=6e4*(i.utcOffset()-this.utcOffset()),e=F(e),"year"===e||"month"===e||"quarter"===e?(a=ge(this,i),"quarter"===e?a/=3:"year"===e&&(a/=12)):(r=this-i,a="second"===e?r/1e3:"minute"===e?r/6e4:"hour"===e?r/36e5:"day"===e?(r-s)/864e5:"week"===e?(r-s)/6048e5:r),n?a:_(a)):NaN):NaN}function ge(t,e){var n,i,s=12*(e.year()-t.year())+(e.month()-t.month()),r=t.clone().add(s,"months")
|
||||
return 0>e-r?(n=t.clone().add(s-1,"months"),i=(e-r)/(r-n)):(n=t.clone().add(s+1,"months"),i=(e-r)/(n-r)),-(s+i)}function pe(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ve(){var t=this.clone().utc()
|
||||
return 0<t.year()&&t.year()<=9999?M(Date.prototype.toISOString)?this.toDate().toISOString():z(t,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):z(t,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function De(e){var n=z(this,e||t.defaultFormat)
|
||||
return this.localeData().postformat(n)}function Me(t,e){return this.isValid()&&(m(t)&&t.isValid()||Ct(t).isValid())?ee({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function Se(t){return this.from(Ct(),t)}function Ye(t,e){return this.isValid()&&(m(t)&&t.isValid()||Ct(t).isValid())?ee({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function we(t){return this.to(Ct(),t)}function ke(t){var e
|
||||
return void 0===t?this._locale._abbr:(e=G(t),null!=e&&(this._locale=e),this)}function Te(){return this._locale}function be(t){switch(t=F(t)){case"year":this.month(0)
|
||||
case"quarter":case"month":this.date(1)
|
||||
case"week":case"isoWeek":case"day":this.hours(0)
|
||||
case"hour":this.minutes(0)
|
||||
case"minute":this.seconds(0)
|
||||
case"second":this.milliseconds(0)}return"week"===t&&this.weekday(0),"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this}function Oe(t){return t=F(t),void 0===t||"millisecond"===t?this:this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms")}function We(){return+this._d-6e4*(this._offset||0)}function xe(){return Math.floor(+this/1e3)}function Ue(){return this._offset?new Date(+this):this._d}function Ge(){var t=this
|
||||
return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function Pe(){var t=this
|
||||
return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function Ce(){return this.isValid()?this.toISOString():null}function Fe(){return d(this)}function He(){return r({},u(this))}function Le(){return u(this).overflow}function Ve(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Ne(t,e){R(0,[t,t.length],0,e)}function Ie(t){return je.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Ae(t){return je.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function Re(){return Mt(this.year(),1,4)}function Ee(){var t=this.localeData()._week
|
||||
return Mt(this.year(),t.dow,t.doy)}function je(t,e,n,i,s){var r
|
||||
return null==t?Dt(this,i,s).year:(r=Mt(t,i,s),e>r&&(e=r),ze.call(this,t,e,n,i,s))}function ze(t,e,n,i,s){var r=vt(t,e,n,i,s),a=mt(r.year,0,r.dayOfYear)
|
||||
return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Ze(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}function $e(t){return Dt(t,this._week.dow,this._week.doy).week}function qe(){return this._week.dow}function Je(){return this._week.doy}function Be(t){var e=this.localeData().week(this)
|
||||
return null==t?e:this.add(7*(t-e),"d")}function Qe(t){var e=Dt(this,1,4).week
|
||||
return null==t?e:this.add(7*(t-e),"d")}function Xe(t,e){return"string"!=typeof t?t:isNaN(t)?(t=e.weekdaysParse(t),"number"==typeof t?t:null):parseInt(t,10)}function Ke(t,n){return e(this._weekdays)?this._weekdays[t.day()]:this._weekdays[this._weekdays.isFormat.test(n)?"format":"standalone"][t.day()]}function tn(t){return this._weekdaysShort[t.day()]}function en(t){return this._weekdaysMin[t.day()]}function nn(t,e,n){var i,s,r
|
||||
for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;7>i;i++){if(s=Ct([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(s,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(s,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(s,"").replace(".",".?")+"$","i")),this._weekdaysParse[i]||(r="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[i]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i
|
||||
if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i
|
||||
if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i
|
||||
if(!n&&this._weekdaysParse[i].test(t))return i}}function sn(t){if(!this.isValid())return null!=t?this:NaN
|
||||
var e=this._isUTC?this._d.getUTCDay():this._d.getDay()
|
||||
return null!=t?(t=Xe(t,this.localeData()),this.add(t-e,"d")):e}function rn(t){if(!this.isValid())return null!=t?this:NaN
|
||||
var e=(this.day()+7-this.localeData()._week.dow)%7
|
||||
return null==t?e:this.add(t-e,"d")}function an(t){return this.isValid()?null==t?this.day()||7:this.day(this.day()%7?t:t-7):null!=t?this:NaN}function on(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1
|
||||
return null==t?e:this.add(t-e,"d")}function un(){return this.hours()%12||12}function dn(t,e){R(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function ln(t,e){return e._meridiemParse}function hn(t){return"p"===(t+"").toLowerCase().charAt(0)}function cn(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}function fn(t,e){e[Wi]=y(1e3*("0."+t))}function mn(){return this._isUTC?"UTC":""}function _n(){return this._isUTC?"Coordinated Universal Time":""}function yn(t){return Ct(1e3*t)}function gn(){return Ct.apply(null,arguments).parseZone()}function pn(t,e,n){var i=this._calendar[t]
|
||||
return M(i)?i.call(e,n):i}function vn(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()]
|
||||
return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])}function Dn(){return this._invalidDate}function Mn(t){return this._ordinal.replace("%d",t)}function Sn(t){return t}function Yn(t,e,n,i){var s=this._relativeTime[n]
|
||||
return M(s)?s(t,e,n,i):s.replace(/%d/i,t)}function wn(t,e){var n=this._relativeTime[t>0?"future":"past"]
|
||||
return M(n)?n(e):n.replace(/%s/i,e)}function kn(t,e,n,i){var s=G(),r=a().set(i,e)
|
||||
return s[n](r,t)}function Tn(t,e,n,i,s){if("number"==typeof t&&(e=t,t=void 0),t=t||"",null!=e)return kn(t,e,n,s)
|
||||
var r,a=[]
|
||||
for(r=0;i>r;r++)a[r]=kn(t,r,n,s)
|
||||
return a}function bn(t,e){return Tn(t,e,"months",12,"month")}function On(t,e){return Tn(t,e,"monthsShort",12,"month")}function Wn(t,e){return Tn(t,e,"weekdays",7,"day")}function xn(t,e){return Tn(t,e,"weekdaysShort",7,"day")}function Un(t,e){return Tn(t,e,"weekdaysMin",7,"day")}function Gn(){var t=this._data
|
||||
return this._milliseconds=fs(this._milliseconds),this._days=fs(this._days),this._months=fs(this._months),t.milliseconds=fs(t.milliseconds),t.seconds=fs(t.seconds),t.minutes=fs(t.minutes),t.hours=fs(t.hours),t.months=fs(t.months),t.years=fs(t.years),this}function Pn(t,e,n,i){var s=ee(e,n)
|
||||
return t._milliseconds+=i*s._milliseconds,t._days+=i*s._days,t._months+=i*s._months,t._bubble()}function Cn(t,e){return Pn(this,t,e,1)}function Fn(t,e){return Pn(this,t,e,-1)}function Hn(t){return 0>t?Math.floor(t):Math.ceil(t)}function Ln(){var t,e,n,i,s,r=this._milliseconds,a=this._days,o=this._months,u=this._data
|
||||
return r>=0&&a>=0&&o>=0||0>=r&&0>=a&&0>=o||(r+=864e5*Hn(Nn(o)+a),a=0,o=0),u.milliseconds=r%1e3,t=_(r/1e3),u.seconds=t%60,e=_(t/60),u.minutes=e%60,n=_(e/60),u.hours=n%24,a+=_(n/24),s=_(Vn(a)),o+=s,a-=Hn(Nn(s)),i=_(o/12),o%=12,u.days=a,u.months=o,u.years=i,this}function Vn(t){return 4800*t/146097}function Nn(t){return 146097*t/4800}function In(t){var e,n,i=this._milliseconds
|
||||
if("month"===(t=F(t))||"year"===t)return e=this._days+i/864e5,n=this._months+Vn(e),"month"===t?n:n/12
|
||||
switch(e=this._days+Math.round(Nn(this._months)),t){case"week":return e/7+i/6048e5
|
||||
case"day":return e+i/864e5
|
||||
case"hour":return 24*e+i/36e5
|
||||
case"minute":return 1440*e+i/6e4
|
||||
case"second":return 86400*e+i/1e3
|
||||
case"millisecond":return Math.floor(864e5*e)+i
|
||||
default:throw new Error("Unknown unit "+t)}}function An(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*y(this._months/12)}function Rn(t){return function(){return this.as(t)}}function En(t){return t=F(t),this[t+"s"]()}function jn(t){return function(){return this._data[t]}}function zn(){return _(this.days()/7)}function Zn(t,e,n,i,s){return s.relativeTime(e||1,!!n,t,i)}function $n(t,e,n){var i=ee(t).abs(),s=Ws(i.as("s")),r=Ws(i.as("m")),a=Ws(i.as("h")),o=Ws(i.as("d")),u=Ws(i.as("M")),d=Ws(i.as("y")),l=s<xs.s&&["s",s]||1>=r&&["m"]||r<xs.m&&["mm",r]||1>=a&&["h"]||a<xs.h&&["hh",a]||1>=o&&["d"]||o<xs.d&&["dd",o]||1>=u&&["M"]||u<xs.M&&["MM",u]||1>=d&&["y"]||["yy",d]
|
||||
return l[2]=e,l[3]=+t>0,l[4]=n,Zn.apply(null,l)}function qn(t,e){return void 0!==xs[t]&&(void 0===e?xs[t]:(xs[t]=e,!0))}function Jn(t){var e=this.localeData(),n=$n(this,!t,e)
|
||||
return t&&(n=e.pastFuture(+this,n)),e.postformat(n)}function Bn(){var t,e,n,i=Us(this._milliseconds)/1e3,s=Us(this._days),r=Us(this._months)
|
||||
t=_(i/60),e=_(t/60),i%=60,t%=60,n=_(r/12),r%=12
|
||||
var a=n,o=r,u=s,d=e,l=t,h=i,c=this.asSeconds()
|
||||
return c?(0>c?"-":"")+"P"+(a?a+"Y":"")+(o?o+"M":"")+(u?u+"D":"")+(d||l||h?"T":"")+(d?d+"H":"")+(l?l+"M":"")+(h?h+"S":""):"P0D"}var Qn,Xn=t.momentProperties=[],Kn=!1,ti={}
|
||||
t.suppressDeprecationWarnings=!1
|
||||
var ei,ni={},ii={},si=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ri=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ai={},oi={},ui=/\d\d/,di=/\d{4}/,li=/[+-]?\d{6}/,hi=/\d\d?/,ci=/\d\d\d\d?/,fi=/\d\d\d\d\d\d?/,mi=/\d{1,3}/,_i=/\d{1,4}/,yi=/[+-]?\d{1,6}/,gi=/[+-]?\d+/,pi=/Z|[+-]\d\d:?\d\d/gi,vi=/Z|[+-]\d\d(?::?\d\d)?/gi,Di=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Mi={},Si={},Yi=0,wi=1,ki=2,Ti=3,bi=4,Oi=5,Wi=6,xi=7,Ui=8
|
||||
R("M",["MM",2],"Mo",function(){return this.month()+1}),R("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),R("MMMM",0,0,function(t){return this.localeData().months(this,t)}),C("month","M"),$("M",hi),$("MM",hi,ui),$("MMM",function(t,e){return e.monthsShortRegex(t)}),$("MMMM",function(t,e){return e.monthsRegex(t)}),Q(["M","MM"],function(t,e){e[wi]=y(t)-1}),Q(["MMM","MMMM"],function(t,e,n,i){var s=n._locale.monthsParse(t,i,n._strict)
|
||||
null!=s?e[wi]=s:u(n).invalidMonth=t})
|
||||
var Gi=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/,Pi="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ci="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Fi=/^\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)?)?/,Hi=/^\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)?)?/,Li=/Z|[+-]\d\d(?::?\d\d)?/,Vi=[["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}/]],Ni=[["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/]],Ii=/^\/?Date\((\-?\d+)/i
|
||||
t.createFromInputFallback=v("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),R("Y",0,0,function(){var t=this.year()
|
||||
return 9999>=t?""+t:"+"+t}),R(0,["YY",2],0,function(){return this.year()%100}),R(0,["YYYY",4],0,"year"),R(0,["YYYYY",5],0,"year"),R(0,["YYYYYY",6,!0],0,"year"),C("year","y"),$("Y",gi),$("YY",hi,ui),$("YYYY",_i,di),$("YYYYY",yi,li),$("YYYYYY",yi,li),Q(["YYYYY","YYYYYY"],Yi),Q("YYYY",function(e,n){n[Yi]=2===e.length?t.parseTwoDigitYear(e):y(e)}),Q("YY",function(e,n){n[Yi]=t.parseTwoDigitYear(e)}),Q("Y",function(t,e){e[Yi]=parseInt(t,10)}),t.parseTwoDigitYear=function(t){return y(t)+(y(t)>68?1900:2e3)}
|
||||
var Ai=L("FullYear",!1)
|
||||
t.ISO_8601=function(){}
|
||||
var Ri=v("moment().min is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(){var t=Ct.apply(null,arguments)
|
||||
return this.isValid()&&t.isValid()?this>t?this:t:l()}),Ei=v("moment().max is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(){var t=Ct.apply(null,arguments)
|
||||
return this.isValid()&&t.isValid()?t>this?this:t:l()}),ji=function(){return Date.now?Date.now():+new Date}
|
||||
It("Z",":"),It("ZZ",""),$("Z",vi),$("ZZ",vi),Q(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=At(vi,t)})
|
||||
var zi=/([\+\-]|\d\d)/gi
|
||||
t.updateOffset=function(){}
|
||||
var Zi=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?\d*)?$/,$i=/^(-)?P(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)W)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?$/
|
||||
ee.fn=Vt.prototype
|
||||
var qi=ae(1,"add"),Ji=ae(-1,"subtract")
|
||||
t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ"
|
||||
var Bi=v("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)})
|
||||
R(0,["gg",2],0,function(){return this.weekYear()%100}),R(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Ne("gggg","weekYear"),Ne("ggggg","weekYear"),Ne("GGGG","isoWeekYear"),Ne("GGGGG","isoWeekYear"),C("weekYear","gg"),C("isoWeekYear","GG"),$("G",gi),$("g",gi),$("GG",hi,ui),$("gg",hi,ui),$("GGGG",_i,di),$("gggg",_i,di),$("GGGGG",yi,li),$("ggggg",yi,li),X(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,i){e[i.substr(0,2)]=y(t)}),X(["gg","GG"],function(e,n,i,s){n[s]=t.parseTwoDigitYear(e)}),R("Q",0,"Qo","quarter"),C("quarter","Q"),$("Q",/\d/),Q("Q",function(t,e){e[wi]=3*(y(t)-1)}),R("w",["ww",2],"wo","week"),R("W",["WW",2],"Wo","isoWeek"),C("week","w"),C("isoWeek","W"),$("w",hi),$("ww",hi,ui),$("W",hi),$("WW",hi,ui),X(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=y(t)})
|
||||
var Qi={dow:0,doy:6}
|
||||
R("D",["DD",2],"Do","date"),C("date","D"),$("D",hi),$("DD",hi,ui),$("Do",function(t,e){return t?e._ordinalParse:e._ordinalParseLenient}),Q(["D","DD"],ki),Q("Do",function(t,e){e[ki]=y(t.match(hi)[0],10)})
|
||||
var Xi=L("Date",!0)
|
||||
R("d",0,"do","day"),R("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),R("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),R("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),R("e",0,0,"weekday"),R("E",0,0,"isoWeekday"),C("day","d"),C("weekday","e"),C("isoWeekday","E"),$("d",hi),$("e",hi),$("E",hi),$("dd",Di),$("ddd",Di),$("dddd",Di),X(["dd","ddd","dddd"],function(t,e,n,i){var s=n._locale.weekdaysParse(t,i,n._strict)
|
||||
null!=s?e.d=s:u(n).invalidWeekday=t}),X(["d","e","E"],function(t,e,n,i){e[i]=y(t)})
|
||||
var Ki="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ts="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),es="Su_Mo_Tu_We_Th_Fr_Sa".split("_")
|
||||
R("DDD",["DDDD",3],"DDDo","dayOfYear"),C("dayOfYear","DDD"),$("DDD",mi),$("DDDD",/\d{3}/),Q(["DDD","DDDD"],function(t,e,n){n._dayOfYear=y(t)}),R("H",["HH",2],0,"hour"),R("h",["hh",2],0,un),R("hmm",0,0,function(){return""+un.apply(this)+A(this.minutes(),2)}),R("hmmss",0,0,function(){return""+un.apply(this)+A(this.minutes(),2)+A(this.seconds(),2)}),R("Hmm",0,0,function(){return""+this.hours()+A(this.minutes(),2)}),R("Hmmss",0,0,function(){return""+this.hours()+A(this.minutes(),2)+A(this.seconds(),2)}),dn("a",!0),dn("A",!1),C("hour","h"),$("a",ln),$("A",ln),$("H",hi),$("h",hi),$("HH",hi,ui),$("hh",hi,ui),$("hmm",ci),$("hmmss",fi),$("Hmm",ci),$("Hmmss",fi),Q(["H","HH"],Ti),Q(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),Q(["h","hh"],function(t,e,n){e[Ti]=y(t),u(n).bigHour=!0}),Q("hmm",function(t,e,n){var i=t.length-2
|
||||
e[Ti]=y(t.substr(0,i)),e[bi]=y(t.substr(i)),u(n).bigHour=!0}),Q("hmmss",function(t,e,n){var i=t.length-4,s=t.length-2
|
||||
e[Ti]=y(t.substr(0,i)),e[bi]=y(t.substr(i,2)),e[Oi]=y(t.substr(s)),u(n).bigHour=!0}),Q("Hmm",function(t,e,n){var i=t.length-2
|
||||
e[Ti]=y(t.substr(0,i)),e[bi]=y(t.substr(i))}),Q("Hmmss",function(t,e,n){var i=t.length-4,s=t.length-2
|
||||
e[Ti]=y(t.substr(0,i)),e[bi]=y(t.substr(i,2)),e[Oi]=y(t.substr(s))})
|
||||
var ns=L("Hours",!0)
|
||||
R("m",["mm",2],0,"minute"),C("minute","m"),$("m",hi),$("mm",hi,ui),Q(["m","mm"],bi)
|
||||
var is=L("Minutes",!1)
|
||||
R("s",["ss",2],0,"second"),C("second","s"),$("s",hi),$("ss",hi,ui),Q(["s","ss"],Oi)
|
||||
var ss=L("Seconds",!1)
|
||||
R("S",0,0,function(){return~~(this.millisecond()/100)}),R(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),R(0,["SSS",3],0,"millisecond"),R(0,["SSSS",4],0,function(){return 10*this.millisecond()}),R(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),R(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),R(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),R(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),R(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),C("millisecond","ms"),$("S",mi,/\d/),$("SS",mi,ui),$("SSS",mi,/\d{3}/)
|
||||
var rs
|
||||
for(rs="SSSS";rs.length<=9;rs+="S")$(rs,/\d+/)
|
||||
for(rs="S";rs.length<=9;rs+="S")Q(rs,fn)
|
||||
var as=L("Milliseconds",!1)
|
||||
R("z",0,0,"zoneAbbr"),R("zz",0,0,"zoneName")
|
||||
var os=f.prototype
|
||||
os.add=qi,os.calendar=ue,os.clone=de,os.diff=ye,os.endOf=Oe,os.format=De,os.from=Me,os.fromNow=Se,os.to=Ye,os.toNow=we,os.get=I,os.invalidAt=Le,os.isAfter=le,os.isBefore=he,os.isBetween=ce,os.isSame=fe,os.isSameOrAfter=me,os.isSameOrBefore=_e,os.isValid=Fe,os.lang=Bi,os.locale=ke,os.localeData=Te,os.max=Ei,os.min=Ri,os.parsingFlags=He,os.set=I,os.startOf=be,os.subtract=Ji,os.toArray=Ge,os.toObject=Pe,os.toDate=Ue,os.toISOString=ve,os.toJSON=Ce,os.toString=pe,os.unix=xe,os.valueOf=We,os.creationData=Ve,os.year=Ai,os.isLeapYear=gt,os.weekYear=Ie,os.isoWeekYear=Ae,os.quarter=os.quarters=Ze,os.month=rt,os.daysInMonth=at,os.week=os.weeks=Be,os.isoWeek=os.isoWeeks=Qe,os.weeksInYear=Ee,os.isoWeeksInYear=Re,os.date=Xi,os.day=os.days=sn,os.weekday=rn,os.isoWeekday=an,os.dayOfYear=on,os.hour=os.hours=ns,os.minute=os.minutes=is,os.second=os.seconds=ss,os.millisecond=os.milliseconds=as,os.utcOffset=jt,os.utc=Zt,os.local=$t,os.parseZone=qt,os.hasAlignedHourOffset=Jt,os.isDST=Bt,os.isDSTShifted=Qt,os.isLocal=Xt,os.isUtcOffset=Kt,os.isUtc=te,os.isUTC=te,os.zoneAbbr=mn,os.zoneName=_n,os.dates=v("dates accessor is deprecated. Use date instead.",Xi),os.months=v("months accessor is deprecated. Use month instead",rt),os.years=v("years accessor is deprecated. Use year instead",Ai),os.zone=v("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",zt)
|
||||
var us=os,ds={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},ls={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"},hs={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},cs=k.prototype
|
||||
cs._calendar=ds,cs.calendar=pn,cs._longDateFormat=ls,cs.longDateFormat=vn,cs._invalidDate="Invalid date",cs.invalidDate=Dn,cs._ordinal="%d",cs.ordinal=Mn,cs._ordinalParse=/\d{1,2}/,cs.preparse=Sn,cs.postformat=Sn,cs._relativeTime=hs,cs.relativeTime=Yn,cs.pastFuture=wn,cs.set=Y,cs.months=et,cs._months=Pi,cs.monthsShort=nt,cs._monthsShort=Ci,cs.monthsParse=it,cs._monthsRegex=Di,cs.monthsRegex=ut,cs._monthsShortRegex=Di,cs.monthsShortRegex=ot,cs.week=$e,cs._week=Qi,cs.firstDayOfYear=Je,cs.firstDayOfWeek=qe,cs.weekdays=Ke,cs._weekdays=Ki,cs.weekdaysMin=en,cs._weekdaysMin=es,cs.weekdaysShort=tn,cs._weekdaysShort=ts,cs.weekdaysParse=nn,cs.isPM=hn,cs._meridiemParse=/[ap]\.?m?\.?/i,cs.meridiem=cn,W("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10
|
||||
return t+(1===y(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),t.lang=v("moment.lang is deprecated. Use moment.locale instead.",W),t.langData=v("moment.langData is deprecated. Use moment.localeData instead.",G)
|
||||
var fs=Math.abs,ms=Rn("ms"),_s=Rn("s"),ys=Rn("m"),gs=Rn("h"),ps=Rn("d"),vs=Rn("w"),Ds=Rn("M"),Ms=Rn("y"),Ss=jn("milliseconds"),Ys=jn("seconds"),ws=jn("minutes"),ks=jn("hours"),Ts=jn("days"),bs=jn("months"),Os=jn("years"),Ws=Math.round,xs={s:45,m:45,h:22,d:26,M:11},Us=Math.abs,Gs=Vt.prototype
|
||||
return Gs.abs=Gn,Gs.add=Cn,Gs.subtract=Fn,Gs.as=In,Gs.asMilliseconds=ms,Gs.asSeconds=_s,Gs.asMinutes=ys,Gs.asHours=gs,Gs.asDays=ps,Gs.asWeeks=vs,Gs.asMonths=Ds,Gs.asYears=Ms,Gs.valueOf=An,Gs._bubble=Ln,Gs.get=En,Gs.milliseconds=Ss,Gs.seconds=Ys,Gs.minutes=ws,Gs.hours=ks,Gs.days=Ts,Gs.weeks=zn,Gs.months=bs,Gs.years=Os,Gs.humanize=Jn,Gs.toISOString=Bn,Gs.toString=Bn,Gs.toJSON=Bn,Gs.locale=ke,Gs.localeData=Te,Gs.toIsoString=v("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Bn),Gs.lang=Bi,R("X",0,0,"unix"),R("x",0,0,"valueOf"),$("x",gi),$("X",/[+-]?\d+(\.\d{1,3})?/),Q("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),Q("x",function(t,e,n){n._d=new Date(y(t))}),t.version="2.12.0",function(t){Qn=t}(Ct),t.fn=us,t.min=Ht,t.max=Lt,t.now=ji,t.utc=a,t.unix=yn,t.months=bn,t.isDate=n,t.locale=W,t.invalid=l,t.duration=ee,t.isMoment=m,t.weekdays=Wn,t.parseZone=gn,t.localeData=G,t.isDuration=Nt,t.monthsShort=On,t.weekdaysMin=Un,t.defineLocale=x,t.updateLocale=U,t.locales=P,t.weekdaysShort=xn,t.normalizeUnits=F,t.relativeTimeThreshold=qn,t.prototype=us,t})
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue