ng2-bootstrap
Version:
Native Angular Bootstrap Components
2 lines • 407 kB
JavaScript
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@angular/core"),require("@angular/common"),require("@angular/forms"),require("rxjs/Observable"),require("rxjs/Subject"),require("rxjs/add/observable/from"),require("rxjs/add/operator/debounceTime"),require("rxjs/add/operator/filter"),require("rxjs/add/operator/first"),require("rxjs/add/operator/map"),require("rxjs/add/operator/mergeMap"),require("rxjs/add/operator/toArray")):"function"==typeof define&&define.amd?define(["@angular/core","@angular/common","@angular/forms","rxjs/Observable","rxjs/Subject","rxjs/add/observable/from","rxjs/add/operator/debounceTime","rxjs/add/operator/filter","rxjs/add/operator/first","rxjs/add/operator/map","rxjs/add/operator/mergeMap","rxjs/add/operator/toArray"],t):"object"==typeof exports?exports["ng2-bootstrap.umd.min"]=t(require("@angular/core"),require("@angular/common"),require("@angular/forms"),require("rxjs/Observable"),require("rxjs/Subject"),require("rxjs/add/observable/from"),require("rxjs/add/operator/debounceTime"),require("rxjs/add/operator/filter"),require("rxjs/add/operator/first"),require("rxjs/add/operator/map"),require("rxjs/add/operator/mergeMap"),require("rxjs/add/operator/toArray")):e["ng2-bootstrap.umd.min"]=t(e["@angular/core"],e["@angular/common"],e["@angular/forms"],e["rxjs/Observable"],e["rxjs/Subject"],e["rxjs/add/observable/from"],e["rxjs/add/operator/debounceTime"],e["rxjs/add/operator/filter"],e["rxjs/add/operator/first"],e["rxjs/add/operator/map"],e["rxjs/add/operator/mergeMap"],e["rxjs/add/operator/toArray"])}(this,function(e,t,n,i,a,r,o,s,d,u,l,c){return function(e){function t(i){if(n[i])return n[i].exports;var a=n[i]={i:i,l:!1,exports:{}};return e[i].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=227)}([function(e,t,n){(function(e){!function(t,n){e.exports=n()}(this,function(){"use strict";function t(){return yi.apply(null,arguments)}function i(e){yi=e}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function r(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function o(e){var t;for(t in e)return!1;return!0}function s(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function u(e,t){var n,i=[];for(n=0;n<e.length;++n)i.push(t(e[n],n));return i}function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c(e,t){for(var n in t)l(t,n)&&(e[n]=t[n]);return l(t,"toString")&&(e.toString=t.toString),l(t,"valueOf")&&(e.valueOf=t.valueOf),e}function _(e,t,n,i){return Mt(e,t,n,i,!0).utc()}function m(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null}}function h(e){return null==e._pf&&(e._pf=m()),e._pf}function p(e){if(null==e._isValid){var t=h(e),n=Mi.call(t.parsedDateParts,function(e){return null!=e}),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function f(e){var t=_(NaN);return null!=e?c(h(t),e):h(t).userInvalidated=!0,t}function y(e){return void 0===e}function g(e,t){var n,i,a;if(y(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),y(t._i)||(e._i=t._i),y(t._f)||(e._f=t._f),y(t._l)||(e._l=t._l),y(t._strict)||(e._strict=t._strict),y(t._tzm)||(e._tzm=t._tzm),y(t._isUTC)||(e._isUTC=t._isUTC),y(t._offset)||(e._offset=t._offset),y(t._pf)||(e._pf=h(t)),y(t._locale)||(e._locale=t._locale),vi.length>0)for(n in vi)i=vi[n],a=t[i],y(a)||(e[i]=a);return e}function M(e){g(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Li===!1&&(Li=!0,t.updateOffset(this),Li=!1)}function v(e){return e instanceof M||null!=e&&null!=e._isAMomentObject}function L(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Y(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=L(t)),n}function D(e,t,n){var i,a=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),o=0;for(i=0;i<a;i++)(n&&e[i]!==t[i]||!n&&Y(e[i])!==Y(t[i]))&&o++;return o+r}function b(e){t.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function k(e,n){var i=!0;return c(function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,e),i){for(var a,r=[],o=0;o<arguments.length;o++){if(a="","object"==typeof arguments[o]){a+="\n["+o+"] ";for(var s in arguments[0])a+=s+": "+arguments[0][s]+", ";a=a.slice(0,-2)}else a=arguments[o];r.push(a)}b(e+"\nArguments: "+Array.prototype.slice.call(r).join("")+"\n"+(new Error).stack),i=!1}return n.apply(this,arguments)},n)}function w(e,n){null!=t.deprecationHandler&&t.deprecationHandler(e,n),Yi[e]||(b(n),Yi[e]=!0)}function T(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function S(e){var t,n;for(n in e)t=e[n],T(t)?this[n]=t:this["_"+n]=t;this._config=e,this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function j(e,t){var n,i=c({},e);for(n in t)l(t,n)&&(r(e[n])&&r(t[n])?(i[n]={},c(i[n],e[n]),c(i[n],t[n])):null!=t[n]?i[n]=t[n]:delete i[n]);for(n in e)l(e,n)&&!l(t,n)&&r(e[n])&&(i[n]=c({},i[n]));return i}function P(e){null!=e&&this.set(e)}function H(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return T(i)?i.call(t,n):i}function O(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])}function x(){return this._invalidDate}function C(e){return this._ordinal.replace("%d",e)}function E(e,t,n,i){var a=this._relativeTime[n];return T(a)?a(e,t,n,i):a.replace(/%d/i,e)}function R(e,t){var n=this._relativeTime[e>0?"future":"past"];return T(n)?n(t):n.replace(/%s/i,t)}function A(e,t){var n=e.toLowerCase();Oi[n]=Oi[n+"s"]=Oi[t]=e}function I(e){return"string"==typeof e?Oi[e]||Oi[e.toLowerCase()]:void 0}function W(e){var t,n,i={};for(n in e)l(e,n)&&(t=I(n),t&&(i[t]=e[n]));return i}function F(e,t){xi[e]=t}function z(e){var t=[];for(var n in e)t.push({unit:n,priority:xi[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function N(e,n){return function(i){return null!=i?(U(this,e,i),t.updateOffset(this,n),this):B(this,e)}}function B(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function U(e,t,n){e.isValid()&&e._d["set"+(e._isUTC?"UTC":"")+t](n)}function V(e){return e=I(e),T(this[e])?this[e]():this}function J(e,t){if("object"==typeof e){e=W(e);for(var n=z(e),i=0;i<n.length;i++)this[n[i].unit](e[n[i].unit])}else if(e=I(e),T(this[e]))return this[e](t);return this}function G(e,t,n){var i=""+Math.abs(e),a=t-i.length,r=e>=0;return(r?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+i}function $(e,t,n,i){var a=i;"string"==typeof i&&(a=function(){return this[i]()}),e&&(Ai[e]=a),t&&(Ai[t[0]]=function(){return G(a.apply(this,arguments),t[1],t[2])}),n&&(Ai[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function q(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Z(e){var t,n,i=e.match(Ci);for(t=0,n=i.length;t<n;t++)Ai[i[t]]?i[t]=Ai[i[t]]:i[t]=q(i[t]);return function(t){var a,r="";for(a=0;a<n;a++)r+=i[a]instanceof Function?i[a].call(t,e):i[a];return r}}function K(e,t){return e.isValid()?(t=Q(t,e.localeData()),Ri[t]=Ri[t]||Z(t),Ri[t](e)):e.localeData().invalidDate()}function Q(e,t){function n(e){return t.longDateFormat(e)||e}var i=5;for(Ei.lastIndex=0;i>=0&&Ei.test(e);)e=e.replace(Ei,n),Ei.lastIndex=0,i-=1;return e}function X(e,t,n){ta[e]=T(t)?t:function(e,i){return e&&n?n:t}}function ee(e,t){return l(ta,e)?ta[e](t._strict,t._locale):new RegExp(te(e))}function te(e){return ne(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,i,a){return t||n||i||a}))}function ne(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ie(e,t){var n,i=t;for("string"==typeof e&&(e=[e]),s(t)&&(i=function(e,n){n[t]=Y(e)}),n=0;n<e.length;n++)na[e[n]]=i}function ae(e,t){ie(e,function(e,n,i,a){i._w=i._w||{},t(e,i._w,i,a)})}function re(e,t,n){null!=t&&l(na,e)&&na[e](t,n._a,n,e)}function oe(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}function se(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ma).test(t)?"format":"standalone"][e.month()]:this._months}function de(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ma.test(t)?"format":"standalone"][e.month()]:this._monthsShort}function ue(e,t,n){var i,a,r,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)r=_([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===t?(a=_a.call(this._shortMonthsParse,o),a!==-1?a:null):(a=_a.call(this._longMonthsParse,o),a!==-1?a:null):"MMM"===t?(a=_a.call(this._shortMonthsParse,o),a!==-1?a:(a=_a.call(this._longMonthsParse,o),a!==-1?a:null)):(a=_a.call(this._longMonthsParse,o),a!==-1?a:(a=_a.call(this._shortMonthsParse,o),a!==-1?a:null))}function le(e,t,n){var i,a,r;if(this._monthsParseExact)return ue.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(a=_([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(r="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[i]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}}function ce(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=Y(t);else if(t=e.localeData().monthsParse(t),!s(t))return e;return n=Math.min(e.date(),oe(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function _e(e){return null!=e?(ce(this,e),t.updateOffset(this,!0),this):B(this,"Month")}function me(){return oe(this.year(),this.month())}function he(e){return this._monthsParseExact?(l(this,"_monthsRegex")||fe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=fa),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function pe(e){return this._monthsParseExact?(l(this,"_monthsRegex")||fe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=ya),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function fe(){function e(e,t){return t.length-e.length}var t,n,i=[],a=[],r=[];for(t=0;t<12;t++)n=_([2e3,t]),i.push(this.monthsShort(n,"")),a.push(this.months(n,"")),r.push(this.months(n,"")),r.push(this.monthsShort(n,""));for(i.sort(e),a.sort(e),r.sort(e),t=0;t<12;t++)i[t]=ne(i[t]),a[t]=ne(a[t]);for(t=0;t<24;t++)r[t]=ne(r[t]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function ye(e){return ge(e)?366:365}function ge(e){return e%4===0&&e%100!==0||e%400===0}function Me(){return ge(this.year())}function ve(e,t,n,i,a,r,o){var s=new Date(e,t,n,i,a,r,o);return e<100&&e>=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}function Le(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function Ye(e,t,n){var i=7+t-n,a=(7+Le(e,0,i).getUTCDay()-t)%7;return-a+i-1}function De(e,t,n,i,a){var r,o,s=(7+n-i)%7,d=Ye(e,i,a),u=1+7*(t-1)+s+d;return u<=0?(r=e-1,o=ye(r)+u):u>ye(e)?(r=e+1,o=u-ye(e)):(r=e,o=u),{year:r,dayOfYear:o}}function be(e,t,n){var i,a,r=Ye(e.year(),t,n),o=Math.floor((e.dayOfYear()-r-1)/7)+1;return o<1?(a=e.year()-1,i=o+ke(a,t,n)):o>ke(e.year(),t,n)?(i=o-ke(e.year(),t,n),a=e.year()+1):(a=e.year(),i=o),{week:i,year:a}}function ke(e,t,n){var i=Ye(e,t,n),a=Ye(e+1,t,n);return(ye(e)-i+a)/7}function we(e){return be(e,this._week.dow,this._week.doy).week}function Te(){return this._week.dow}function Se(){return this._week.doy}function je(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Pe(e){var t=be(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function He(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function Oe(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function xe(e,t){return e?a(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:this._weekdays}function Ce(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ee(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Re(e,t,n){var i,a,r,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)r=_([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?(a=_a.call(this._weekdaysParse,o),a!==-1?a:null):"ddd"===t?(a=_a.call(this._shortWeekdaysParse,o),a!==-1?a:null):(a=_a.call(this._minWeekdaysParse,o),a!==-1?a:null):"dddd"===t?(a=_a.call(this._weekdaysParse,o),a!==-1?a:(a=_a.call(this._shortWeekdaysParse,o),a!==-1?a:(a=_a.call(this._minWeekdaysParse,o),a!==-1?a:null))):"ddd"===t?(a=_a.call(this._shortWeekdaysParse,o),a!==-1?a:(a=_a.call(this._weekdaysParse,o),a!==-1?a:(a=_a.call(this._minWeekdaysParse,o),a!==-1?a:null))):(a=_a.call(this._minWeekdaysParse,o),a!==-1?a:(a=_a.call(this._weekdaysParse,o),a!==-1?a:(a=_a.call(this._shortWeekdaysParse,o),a!==-1?a:null)))}function Ae(e,t,n){var i,a,r;if(this._weekdaysParseExact)return Re.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(a=_([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(a,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(a,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(a,"").replace(".",".?")+"$","i")),this._weekdaysParse[i]||(r="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[i]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}}function Ie(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=He(e,this.localeData()),this.add(e-t,"d")):t}function We(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Fe(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Oe(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function ze(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Ue.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=Da),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ne(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Ue.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ba),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Be(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Ue.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ka),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ue(){function e(e,t){return t.length-e.length}var t,n,i,a,r,o=[],s=[],d=[],u=[];for(t=0;t<7;t++)n=_([2e3,1]).day(t),i=this.weekdaysMin(n,""),a=this.weekdaysShort(n,""),r=this.weekdays(n,""),o.push(i),s.push(a),d.push(r),u.push(i),u.push(a),u.push(r);for(o.sort(e),s.sort(e),d.sort(e),u.sort(e),t=0;t<7;t++)s[t]=ne(s[t]),d[t]=ne(d[t]),u[t]=ne(u[t]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Ve(){return this.hours()%12||12}function Je(){return this.hours()||24}function Ge(e,t){$(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function $e(e,t){return t._meridiemParse}function qe(e){return"p"===(e+"").toLowerCase().charAt(0)}function Ze(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function Ke(e){return e?e.toLowerCase().replace("_","-"):e}function Qe(e){for(var t,n,i,a,r=0;r<e.length;){for(a=Ke(e[r]).split("-"),t=a.length,n=Ke(e[r+1]),n=n?n.split("-"):null;t>0;){if(i=Xe(a.slice(0,t).join("-")))return i;if(n&&n.length>=t&&D(a,n,!0)>=t-1)break;t--}r++}return null}function Xe(t){var i=null;if(!Pa[t]&&"undefined"!=typeof e&&e&&e.exports)try{i=wa._abbr,n(216)("./"+t),et(i)}catch(e){}return Pa[t]}function et(e,t){var n;return e&&(n=y(t)?it(e):tt(e,t),n&&(wa=n)),wa._abbr}function tt(e,t){if(null!==t){var n=ja;if(t.abbr=e,null!=Pa[e])w("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=Pa[e]._config;else if(null!=t.parentLocale){if(null==Pa[t.parentLocale])return Ha[t.parentLocale]||(Ha[t.parentLocale]=[]),Ha[t.parentLocale].push({name:e,config:t}),null;n=Pa[t.parentLocale]._config}return Pa[e]=new P(j(n,t)),Ha[e]&&Ha[e].forEach(function(e){tt(e.name,e.config)}),et(e),Pa[e]}return delete Pa[e],null}function nt(e,t){if(null!=t){var n,i=ja;null!=Pa[e]&&(i=Pa[e]._config),t=j(i,t),n=new P(t),n.parentLocale=Pa[e],Pa[e]=n,et(e)}else null!=Pa[e]&&(null!=Pa[e].parentLocale?Pa[e]=Pa[e].parentLocale:null!=Pa[e]&&delete Pa[e]);return Pa[e]}function it(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return wa;if(!a(e)){if(t=Xe(e))return t;e=[e]}return Qe(e)}function at(){return ki(Pa)}function rt(e){var t,n=e._a;return n&&h(e).overflow===-2&&(t=n[aa]<0||n[aa]>11?aa:n[ra]<1||n[ra]>oe(n[ia],n[aa])?ra:n[oa]<0||n[oa]>24||24===n[oa]&&(0!==n[sa]||0!==n[da]||0!==n[ua])?oa:n[sa]<0||n[sa]>59?sa:n[da]<0||n[da]>59?da:n[ua]<0||n[ua]>999?ua:-1,h(e)._overflowDayOfYear&&(t<ia||t>ra)&&(t=ra),h(e)._overflowWeeks&&t===-1&&(t=la),h(e)._overflowWeekday&&t===-1&&(t=ca),h(e).overflow=t),e}function ot(e){var t,n,i,a,r,o,s=e._i,d=Oa.exec(s)||xa.exec(s);if(d){for(h(e).iso=!0,t=0,n=Ea.length;t<n;t++)if(Ea[t][1].exec(d[1])){a=Ea[t][0],i=Ea[t][2]!==!1;break}if(null==a)return void(e._isValid=!1);if(d[3]){for(t=0,n=Ra.length;t<n;t++)if(Ra[t][1].exec(d[3])){r=(d[2]||" ")+Ra[t][0];break}if(null==r)return void(e._isValid=!1)}if(!i&&null!=r)return void(e._isValid=!1);if(d[4]){if(!Ca.exec(d[4]))return void(e._isValid=!1);o="Z"}e._f=a+(r||"")+(o||""),_t(e)}else e._isValid=!1}function st(e){var n=Aa.exec(e._i);return null!==n?void(e._d=new Date(+n[1])):(ot(e),void(e._isValid===!1&&(delete e._isValid,t.createFromInputFallback(e))))}function dt(e,t,n){return null!=e?e:null!=t?t:n}function ut(e){var n=new Date(t.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function lt(e){var t,n,i,a,r=[];if(!e._d){for(i=ut(e),e._w&&null==e._a[ra]&&null==e._a[aa]&&ct(e),e._dayOfYear&&(a=dt(e._a[ia],i[ia]),e._dayOfYear>ye(a)&&(h(e)._overflowDayOfYear=!0),n=Le(a,0,e._dayOfYear),e._a[aa]=n.getUTCMonth(),e._a[ra]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=r[t]=i[t];for(;t<7;t++)e._a[t]=r[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[oa]&&0===e._a[sa]&&0===e._a[da]&&0===e._a[ua]&&(e._nextDay=!0,e._a[oa]=0),e._d=(e._useUTC?Le:ve).apply(null,r),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[oa]=24)}}function ct(e){var t,n,i,a,r,o,s,d;if(t=e._w,null!=t.GG||null!=t.W||null!=t.E)r=1,o=4,n=dt(t.GG,e._a[ia],be(vt(),1,4).year),i=dt(t.W,1),a=dt(t.E,1),(a<1||a>7)&&(d=!0);else{r=e._locale._week.dow,o=e._locale._week.doy;var u=be(vt(),r,o);n=dt(t.gg,e._a[ia],u.year),i=dt(t.w,u.week),null!=t.d?(a=t.d,(a<0||a>6)&&(d=!0)):null!=t.e?(a=t.e+r,(t.e<0||t.e>6)&&(d=!0)):a=r}i<1||i>ke(n,r,o)?h(e)._overflowWeeks=!0:null!=d?h(e)._overflowWeekday=!0:(s=De(n,i,a,r,o),e._a[ia]=s.year,e._dayOfYear=s.dayOfYear)}function _t(e){if(e._f===t.ISO_8601)return void ot(e);e._a=[],h(e).empty=!0;var n,i,a,r,o,s=""+e._i,d=s.length,u=0;for(a=Q(e._f,e._locale).match(Ci)||[],n=0;n<a.length;n++)r=a[n],i=(s.match(ee(r,e))||[])[0],i&&(o=s.substr(0,s.indexOf(i)),o.length>0&&h(e).unusedInput.push(o),s=s.slice(s.indexOf(i)+i.length),u+=i.length),Ai[r]?(i?h(e).empty=!1:h(e).unusedTokens.push(r),re(r,i,e)):e._strict&&!i&&h(e).unusedTokens.push(r);h(e).charsLeftOver=d-u,s.length>0&&h(e).unusedInput.push(s),e._a[oa]<=12&&h(e).bigHour===!0&&e._a[oa]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[oa]=mt(e._locale,e._a[oa],e._meridiem),lt(e),rt(e)}function mt(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(i=e.isPM(n),i&&t<12&&(t+=12),i||12!==t||(t=0),t):t}function ht(e){var t,n,i,a,r;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(a=0;a<e._f.length;a++)r=0,t=g({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[a],_t(t),p(t)&&(r+=h(t).charsLeftOver,r+=10*h(t).unusedTokens.length,h(t).score=r,(null==i||r<i)&&(i=r,n=t));c(e,n||t)}function pt(e){if(!e._d){var t=W(e._i);e._a=u([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),lt(e)}}function ft(e){var t=new M(rt(yt(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function yt(e){var t=e._i,n=e._f;return e._locale=e._locale||it(e._l),null===t||void 0===n&&""===t?f({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),v(t)?new M(rt(t)):(d(t)?e._d=t:a(n)?ht(e):n?_t(e):gt(e),p(e)||(e._d=null),e))}function gt(e){var n=e._i;void 0===n?e._d=new Date(t.now()):d(n)?e._d=new Date(n.valueOf()):"string"==typeof n?st(e):a(n)?(e._a=u(n.slice(0),function(e){return parseInt(e,10)}),lt(e)):"object"==typeof n?pt(e):s(n)?e._d=new Date(n):t.createFromInputFallback(e)}function Mt(e,t,n,i,s){var d={};return n!==!0&&n!==!1||(i=n,n=void 0),(r(e)&&o(e)||a(e)&&0===e.length)&&(e=void 0),d._isAMomentObject=!0,d._useUTC=d._isUTC=s,d._l=n,d._i=e,d._f=t,d._strict=i,ft(d)}function vt(e,t,n,i){return Mt(e,t,n,i,!1)}function Lt(e,t){var n,i;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return vt();for(n=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][e](n)||(n=t[i]);return n}function Yt(){var e=[].slice.call(arguments,0);return Lt("isBefore",e)}function Dt(){var e=[].slice.call(arguments,0);return Lt("isAfter",e)}function bt(e){var t=W(e),n=t.year||0,i=t.quarter||0,a=t.month||0,r=t.week||0,o=t.day||0,s=t.hour||0,d=t.minute||0,u=t.second||0,l=t.millisecond||0;this._milliseconds=+l+1e3*u+6e4*d+1e3*s*60*60,this._days=+o+7*r,this._months=+a+3*i+12*n,this._data={},this._locale=it(),this._bubble()}function kt(e){return e instanceof bt}function wt(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Tt(e,t){$(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+G(~~(e/60),2)+t+G(~~e%60,2)})}function St(e,t){var n=(t||"").match(e);if(null===n)return null;var i=n[n.length-1]||[],a=(i+"").match(za)||["-",0,0],r=+(60*a[1])+Y(a[2]);return 0===r?0:"+"===a[0]?r:-r}function jt(e,n){var i,a;return n._isUTC?(i=n.clone(),a=(v(e)||d(e)?e.valueOf():vt(e).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+a),t.updateOffset(i,!1),i):vt(e).local()}function Pt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Ht(e,n){var i,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(e=St(Qi,e),null===e)return this}else Math.abs(e)<16&&(e*=60);return!this._isUTC&&n&&(i=Pt(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),a!==e&&(!n||this._changeInProgress?Gt(this,Nt(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:Pt(this)}function Ot(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function xt(e){return this.utcOffset(0,e)}function Ct(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Pt(this),"m")),this}function Et(){if(null!=this._tzm)this.utcOffset(this._tzm);else if("string"==typeof this._i){var e=St(Ki,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Rt(e){return!!this.isValid()&&(e=e?vt(e).utcOffset():0,(this.utcOffset()-e)%60===0)}function At(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function It(){if(!y(this._isDSTShifted))return this._isDSTShifted;var e={};if(g(e,this),e=yt(e),e._a){var t=e._isUTC?_(e._a):vt(e._a);this._isDSTShifted=this.isValid()&&D(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Wt(){return!!this.isValid()&&!this._isUTC}function Ft(){return!!this.isValid()&&this._isUTC}function zt(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Nt(e,t){var n,i,a,r=e,o=null;return kt(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:s(e)?(r={},t?r[t]=e:r.milliseconds=e):(o=Na.exec(e))?(n="-"===o[1]?-1:1,r={y:0,d:Y(o[ra])*n,h:Y(o[oa])*n,m:Y(o[sa])*n,s:Y(o[da])*n,ms:Y(wt(1e3*o[ua]))*n}):(o=Ba.exec(e))?(n="-"===o[1]?-1:1,r={y:Bt(o[2],n),M:Bt(o[3],n),w:Bt(o[4],n),d:Bt(o[5],n),h:Bt(o[6],n),m:Bt(o[7],n),s:Bt(o[8],n)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(a=Vt(vt(r.from),vt(r.to)),r={},r.ms=a.milliseconds,r.M=a.months),i=new bt(r),kt(e)&&l(e,"_locale")&&(i._locale=e._locale),i}function Bt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Ut(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Vt(e,t){var n;return e.isValid()&&t.isValid()?(t=jt(t,e),e.isBefore(t)?n=Ut(e,t):(n=Ut(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Jt(e,t){return function(n,i){var a,r;return null===i||isNaN(+i)||(w(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=i,i=r),n="string"==typeof n?+n:n,a=Nt(n,i),Gt(this,a,e),this}}function Gt(e,n,i,a){var r=n._milliseconds,o=wt(n._days),s=wt(n._months);e.isValid()&&(a=null==a||a,r&&e._d.setTime(e._d.valueOf()+r*i),o&&U(e,"Date",B(e,"Date")+o*i),s&&ce(e,B(e,"Month")+s*i),a&&t.updateOffset(e,o||s))}function $t(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function qt(e,n){var i=e||vt(),a=jt(i,this).startOf("day"),r=t.calendarFormat(this,a)||"sameElse",o=n&&(T(n[r])?n[r].call(this,i):n[r]);return this.format(o||this.localeData().calendar(r,this,vt(i)))}function Zt(){return new M(this)}function Kt(e,t){var n=v(e)?e:vt(e);return!(!this.isValid()||!n.isValid())&&(t=I(y(t)?"millisecond":t),"millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Qt(e,t){var n=v(e)?e:vt(e);return!(!this.isValid()||!n.isValid())&&(t=I(y(t)?"millisecond":t),"millisecond"===t?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function Xt(e,t,n,i){return i=i||"()",("("===i[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===i[1]?this.isBefore(t,n):!this.isAfter(t,n))}function en(e,t){var n,i=v(e)?e:vt(e);return!(!this.isValid()||!i.isValid())&&(t=I(t||"millisecond"),"millisecond"===t?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function tn(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function nn(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function an(e,t,n){var i,a,r,o;return this.isValid()?(i=jt(e,this),i.isValid()?(a=6e4*(i.utcOffset()-this.utcOffset()),t=I(t),"year"===t||"month"===t||"quarter"===t?(o=rn(this,i),"quarter"===t?o/=3:"year"===t&&(o/=12)):(r=this-i,o="second"===t?r/1e3:"minute"===t?r/6e4:"hour"===t?r/36e5:"day"===t?(r-a)/864e5:"week"===t?(r-a)/6048e5:r),n?o:L(o)):NaN):NaN}function rn(e,t){var n,i,a=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(a,"months");return t-r<0?(n=e.clone().add(a-1,"months"),i=(t-r)/(r-n)):(n=e.clone().add(a+1,"months"),i=(t-r)/(n-r)),-(a+i)||0}function on(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function sn(){var e=this.clone().utc();return 0<e.year()&&e.year()<=9999?T(Date.prototype.toISOString)?this.toDate().toISOString():K(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):K(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function dn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',i=0<this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",r=t+'[")]';return this.format(n+i+a+r)}function un(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var n=K(this,e);return this.localeData().postformat(n)}function ln(e,t){return this.isValid()&&(v(e)&&e.isValid()||vt(e).isValid())?Nt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function cn(e){return this.from(vt(),e)}function _n(e,t){return this.isValid()&&(v(e)&&e.isValid()||vt(e).isValid())?Nt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function mn(e){return this.to(vt(),e)}function hn(e){var t;return void 0===e?this._locale._abbr:(t=it(e),null!=t&&(this._locale=t),this)}function pn(){return this._locale}function fn(e){switch(e=I(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this}function yn(e){return e=I(e),void 0===e||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))}function gn(){
return this._d.valueOf()-6e4*(this._offset||0)}function Mn(){return Math.floor(this.valueOf()/1e3)}function vn(){return new Date(this.valueOf())}function Ln(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Yn(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Dn(){return this.isValid()?this.toISOString():null}function bn(){return p(this)}function kn(){return c({},h(this))}function wn(){return h(this).overflow}function Tn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Sn(e,t){$(0,[e,e.length],0,t)}function jn(e){return xn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Pn(e){return xn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Hn(){return ke(this.year(),1,4)}function On(){var e=this.localeData()._week;return ke(this.year(),e.dow,e.doy)}function xn(e,t,n,i,a){var r;return null==e?be(this,i,a).year:(r=ke(e,i,a),t>r&&(t=r),Cn.call(this,e,t,n,i,a))}function Cn(e,t,n,i,a){var r=De(e,t,n,i,a),o=Le(r.year,0,r.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function En(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function Rn(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function An(e,t){t[ua]=Y(1e3*("0."+e))}function In(){return this._isUTC?"UTC":""}function Wn(){return this._isUTC?"Coordinated Universal Time":""}function Fn(e){return vt(1e3*e)}function zn(){return vt.apply(null,arguments).parseZone()}function Nn(e){return e}function Bn(e,t,n,i){var a=it(),r=_().set(i,t);return a[n](r,e)}function Un(e,t,n){if(s(e)&&(t=e,e=void 0),e=e||"",null!=t)return Bn(e,t,n,"month");var i,a=[];for(i=0;i<12;i++)a[i]=Bn(e,i,n,"month");return a}function Vn(e,t,n,i){"boolean"==typeof e?(s(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,s(t)&&(n=t,t=void 0),t=t||"");var a=it(),r=e?a._week.dow:0;if(null!=n)return Bn(t,(n+r)%7,i,"day");var o,d=[];for(o=0;o<7;o++)d[o]=Bn(t,(o+r)%7,i,"day");return d}function Jn(e,t){return Un(e,t,"months")}function Gn(e,t){return Un(e,t,"monthsShort")}function $n(e,t,n){return Vn(e,t,n,"weekdays")}function qn(e,t,n){return Vn(e,t,n,"weekdaysShort")}function Zn(e,t,n){return Vn(e,t,n,"weekdaysMin")}function Kn(){var e=this._data;return this._milliseconds=er(this._milliseconds),this._days=er(this._days),this._months=er(this._months),e.milliseconds=er(e.milliseconds),e.seconds=er(e.seconds),e.minutes=er(e.minutes),e.hours=er(e.hours),e.months=er(e.months),e.years=er(e.years),this}function Qn(e,t,n,i){var a=Nt(t,n);return e._milliseconds+=i*a._milliseconds,e._days+=i*a._days,e._months+=i*a._months,e._bubble()}function Xn(e,t){return Qn(this,e,t,1)}function ei(e,t){return Qn(this,e,t,-1)}function ti(e){return e<0?Math.floor(e):Math.ceil(e)}function ni(){var e,t,n,i,a,r=this._milliseconds,o=this._days,s=this._months,d=this._data;return r>=0&&o>=0&&s>=0||r<=0&&o<=0&&s<=0||(r+=864e5*ti(ai(s)+o),o=0,s=0),d.milliseconds=r%1e3,e=L(r/1e3),d.seconds=e%60,t=L(e/60),d.minutes=t%60,n=L(t/60),d.hours=n%24,o+=L(n/24),a=L(ii(o)),s+=a,o-=ti(ai(a)),i=L(s/12),s%=12,d.days=o,d.months=s,d.years=i,this}function ii(e){return 4800*e/146097}function ai(e){return 146097*e/4800}function ri(e){var t,n,i=this._milliseconds;if(e=I(e),"month"===e||"year"===e)return t=this._days+i/864e5,n=this._months+ii(t),"month"===e?n:n/12;switch(t=this._days+Math.round(ai(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}}function oi(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*Y(this._months/12)}function si(e){return function(){return this.as(e)}}function di(e){return e=I(e),this[e+"s"]()}function ui(e){return function(){return this._data[e]}}function li(){return L(this.days()/7)}function ci(e,t,n,i,a){return a.relativeTime(t||1,!!n,e,i)}function _i(e,t,n){var i=Nt(e).abs(),a=fr(i.as("s")),r=fr(i.as("m")),o=fr(i.as("h")),s=fr(i.as("d")),d=fr(i.as("M")),u=fr(i.as("y")),l=a<yr.s&&["s",a]||r<=1&&["m"]||r<yr.m&&["mm",r]||o<=1&&["h"]||o<yr.h&&["hh",o]||s<=1&&["d"]||s<yr.d&&["dd",s]||d<=1&&["M"]||d<yr.M&&["MM",d]||u<=1&&["y"]||["yy",u];return l[2]=t,l[3]=+e>0,l[4]=n,ci.apply(null,l)}function mi(e){return void 0===e?fr:"function"==typeof e&&(fr=e,!0)}function hi(e,t){return void 0!==yr[e]&&(void 0===t?yr[e]:(yr[e]=t,!0))}function pi(e){var t=this.localeData(),n=_i(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function fi(){var e,t,n,i=gr(this._milliseconds)/1e3,a=gr(this._days),r=gr(this._months);e=L(i/60),t=L(e/60),i%=60,e%=60,n=L(r/12),r%=12;var o=n,s=r,d=a,u=t,l=e,c=i,_=this.asSeconds();return _?(_<0?"-":"")+"P"+(o?o+"Y":"")+(s?s+"M":"")+(d?d+"D":"")+(u||l||c?"T":"")+(u?u+"H":"")+(l?l+"M":"")+(c?c+"S":""):"P0D"}var yi,gi;gi=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,i=0;i<n;i++)if(i in t&&e.call(this,t[i],i,t))return!0;return!1};var Mi=gi,vi=t.momentProperties=[],Li=!1,Yi={};t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;var Di;Di=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)l(e,t)&&n.push(t);return n};var bi,ki=Di,wi={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Ti={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"},Si="Invalid date",ji="%d",Pi=/\d{1,2}/,Hi={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"},Oi={},xi={},Ci=/(\[[^\[]*\])|(\\)?([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?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Ei=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Ri={},Ai={},Ii=/\d/,Wi=/\d\d/,Fi=/\d{3}/,zi=/\d{4}/,Ni=/[+-]?\d{6}/,Bi=/\d\d?/,Ui=/\d\d\d\d?/,Vi=/\d\d\d\d\d\d?/,Ji=/\d{1,3}/,Gi=/\d{1,4}/,$i=/[+-]?\d{1,6}/,qi=/\d+/,Zi=/[+-]?\d+/,Ki=/Z|[+-]\d\d:?\d\d/gi,Qi=/Z|[+-]\d\d(?::?\d\d)?/gi,Xi=/[+-]?\d+(\.\d{1,3})?/,ea=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,ta={},na={},ia=0,aa=1,ra=2,oa=3,sa=4,da=5,ua=6,la=7,ca=8;bi=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};var _a=bi;$("M",["MM",2],"Mo",function(){return this.month()+1}),$("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),$("MMMM",0,0,function(e){return this.localeData().months(this,e)}),A("month","M"),F("month",8),X("M",Bi),X("MM",Bi,Wi),X("MMM",function(e,t){return t.monthsShortRegex(e)}),X("MMMM",function(e,t){return t.monthsRegex(e)}),ie(["M","MM"],function(e,t){t[aa]=Y(e)-1}),ie(["MMM","MMMM"],function(e,t,n,i){var a=n._locale.monthsParse(e,i,n._strict);null!=a?t[aa]=a:h(n).invalidMonth=e});var ma=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ha="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),pa="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),fa=ea,ya=ea;$("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),$(0,["YY",2],0,function(){return this.year()%100}),$(0,["YYYY",4],0,"year"),$(0,["YYYYY",5],0,"year"),$(0,["YYYYYY",6,!0],0,"year"),A("year","y"),F("year",1),X("Y",Zi),X("YY",Bi,Wi),X("YYYY",Gi,zi),X("YYYYY",$i,Ni),X("YYYYYY",$i,Ni),ie(["YYYYY","YYYYYY"],ia),ie("YYYY",function(e,n){n[ia]=2===e.length?t.parseTwoDigitYear(e):Y(e)}),ie("YY",function(e,n){n[ia]=t.parseTwoDigitYear(e)}),ie("Y",function(e,t){t[ia]=parseInt(e,10)}),t.parseTwoDigitYear=function(e){return Y(e)+(Y(e)>68?1900:2e3)};var ga=N("FullYear",!0);$("w",["ww",2],"wo","week"),$("W",["WW",2],"Wo","isoWeek"),A("week","w"),A("isoWeek","W"),F("week",5),F("isoWeek",5),X("w",Bi),X("ww",Bi,Wi),X("W",Bi),X("WW",Bi,Wi),ae(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=Y(e)});var Ma={dow:0,doy:6};$("d",0,"do","day"),$("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),$("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),$("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),$("e",0,0,"weekday"),$("E",0,0,"isoWeekday"),A("day","d"),A("weekday","e"),A("isoWeekday","E"),F("day",11),F("weekday",11),F("isoWeekday",11),X("d",Bi),X("e",Bi),X("E",Bi),X("dd",function(e,t){return t.weekdaysMinRegex(e)}),X("ddd",function(e,t){return t.weekdaysShortRegex(e)}),X("dddd",function(e,t){return t.weekdaysRegex(e)}),ae(["dd","ddd","dddd"],function(e,t,n,i){var a=n._locale.weekdaysParse(e,i,n._strict);null!=a?t.d=a:h(n).invalidWeekday=e}),ae(["d","e","E"],function(e,t,n,i){t[i]=Y(e)});var va="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),La="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ya="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Da=ea,ba=ea,ka=ea;$("H",["HH",2],0,"hour"),$("h",["hh",2],0,Ve),$("k",["kk",2],0,Je),$("hmm",0,0,function(){return""+Ve.apply(this)+G(this.minutes(),2)}),$("hmmss",0,0,function(){return""+Ve.apply(this)+G(this.minutes(),2)+G(this.seconds(),2)}),$("Hmm",0,0,function(){return""+this.hours()+G(this.minutes(),2)}),$("Hmmss",0,0,function(){return""+this.hours()+G(this.minutes(),2)+G(this.seconds(),2)}),Ge("a",!0),Ge("A",!1),A("hour","h"),F("hour",13),X("a",$e),X("A",$e),X("H",Bi),X("h",Bi),X("HH",Bi,Wi),X("hh",Bi,Wi),X("hmm",Ui),X("hmmss",Vi),X("Hmm",Ui),X("Hmmss",Vi),ie(["H","HH"],oa),ie(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ie(["h","hh"],function(e,t,n){t[oa]=Y(e),h(n).bigHour=!0}),ie("hmm",function(e,t,n){var i=e.length-2;t[oa]=Y(e.substr(0,i)),t[sa]=Y(e.substr(i)),h(n).bigHour=!0}),ie("hmmss",function(e,t,n){var i=e.length-4,a=e.length-2;t[oa]=Y(e.substr(0,i)),t[sa]=Y(e.substr(i,2)),t[da]=Y(e.substr(a)),h(n).bigHour=!0}),ie("Hmm",function(e,t,n){var i=e.length-2;t[oa]=Y(e.substr(0,i)),t[sa]=Y(e.substr(i))}),ie("Hmmss",function(e,t,n){var i=e.length-4,a=e.length-2;t[oa]=Y(e.substr(0,i)),t[sa]=Y(e.substr(i,2)),t[da]=Y(e.substr(a))});var wa,Ta=/[ap]\.?m?\.?/i,Sa=N("Hours",!0),ja={calendar:wi,longDateFormat:Ti,invalidDate:Si,ordinal:ji,ordinalParse:Pi,relativeTime:Hi,months:ha,monthsShort:pa,week:Ma,weekdays:va,weekdaysMin:Ya,weekdaysShort:La,meridiemParse:Ta},Pa={},Ha={},Oa=/^\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)?)?$/,xa=/^\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)?)?$/,Ca=/Z|[+-]\d\d(?::?\d\d)?/,Ea=[["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}/]],Ra=[["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/]],Aa=/^\/?Date\((\-?\d+)/i;t.createFromInputFallback=k("value provided is not in a recognized ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),t.ISO_8601=function(){};var Ia=k("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=vt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:f()}),Wa=k("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=vt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:f()}),Fa=function(){return Date.now?Date.now():+new Date};Tt("Z",":"),Tt("ZZ",""),X("Z",Qi),X("ZZ",Qi),ie(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=St(Qi,e)});var za=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var Na=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Ba=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;Nt.fn=bt.prototype;var Ua=Jt(1,"add"),Va=Jt(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Ja=k("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)});$(0,["gg",2],0,function(){return this.weekYear()%100}),$(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Sn("gggg","weekYear"),Sn("ggggg","weekYear"),Sn("GGGG","isoWeekYear"),Sn("GGGGG","isoWeekYear"),A("weekYear","gg"),A("isoWeekYear","GG"),F("weekYear",1),F("isoWeekYear",1),X("G",Zi),X("g",Zi),X("GG",Bi,Wi),X("gg",Bi,Wi),X("GGGG",Gi,zi),X("gggg",Gi,zi),X("GGGGG",$i,Ni),X("ggggg",$i,Ni),ae(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){t[i.substr(0,2)]=Y(e)}),ae(["gg","GG"],function(e,n,i,a){n[a]=t.parseTwoDigitYear(e)}),$("Q",0,"Qo","quarter"),A("quarter","Q"),F("quarter",7),X("Q",Ii),ie("Q",function(e,t){t[aa]=3*(Y(e)-1)}),$("D",["DD",2],"Do","date"),A("date","D"),F("date",9),X("D",Bi),X("DD",Bi,Wi),X("Do",function(e,t){return e?t._ordinalParse:t._ordinalParseLenient}),ie(["D","DD"],ra),ie("Do",function(e,t){t[ra]=Y(e.match(Bi)[0],10)});var Ga=N("Date",!0);$("DDD",["DDDD",3],"DDDo","dayOfYear"),A("dayOfYear","DDD"),F("dayOfYear",4),X("DDD",Ji),X("DDDD",Fi),ie(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Y(e)}),$("m",["mm",2],0,"minute"),A("minute","m"),F("minute",14),X("m",Bi),X("mm",Bi,Wi),ie(["m","mm"],sa);var $a=N("Minutes",!1);$("s",["ss",2],0,"second"),A("second","s"),F("second",15),X("s",Bi),X("ss",Bi,Wi),ie(["s","ss"],da);var qa=N("Seconds",!1);$("S",0,0,function(){return~~(this.millisecond()/100)}),$(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),$(0,["SSS",3],0,"millisecond"),$(0,["SSSS",4],0,function(){return 10*this.millisecond()}),$(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),$(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),$(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),$(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),$(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),A("millisecond","ms"),F("millisecond",16),X("S",Ji,Ii),X("SS",Ji,Wi),X("SSS",Ji,Fi);var Za;for(Za="SSSS";Za.length<=9;Za+="S")X(Za,qi);for(Za="S";Za.length<=9;Za+="S")ie(Za,An);var Ka=N("Milliseconds",!1);$("z",0,0,"zoneAbbr"),$("zz",0,0,"zoneName");var Qa=M.prototype;Qa.add=Ua,Qa.calendar=qt,Qa.clone=Zt,Qa.diff=an,Qa.endOf=yn,Qa.format=un,Qa.from=ln,Qa.fromNow=cn,Qa.to=_n,Qa.toNow=mn,Qa.get=V,Qa.invalidAt=wn,Qa.isAfter=Kt,Qa.isBefore=Qt,Qa.isBetween=Xt,Qa.isSame=en,Qa.isSameOrAfter=tn,Qa.isSameOrBefore=nn,Qa.isValid=bn,Qa.lang=Ja,Qa.locale=hn,Qa.localeData=pn,Qa.max=Wa,Qa.min=Ia,Qa.parsingFlags=kn,Qa.set=J,Qa.startOf=fn,Qa.subtract=Va,Qa.toArray=Ln,Qa.toObject=Yn,Qa.toDate=vn,Qa.toISOString=sn,Qa.inspect=dn,Qa.toJSON=Dn,Qa.toString=on,Qa.unix=Mn,Qa.valueOf=gn,Qa.creationData=Tn,Qa.year=ga,Qa.isLeapYear=Me,Qa.weekYear=jn,Qa.isoWeekYear=Pn,Qa.quarter=Qa.quarters=En,Qa.month=_e,Qa.daysInMonth=me,Qa.week=Qa.weeks=je,Qa.isoWeek=Qa.isoWeeks=Pe,Qa.weeksInYear=On,Qa.isoWeeksInYear=Hn,Qa.date=Ga,Qa.day=Qa.days=Ie,Qa.weekday=We,Qa.isoWeekday=Fe,Qa.dayOfYear=Rn,Qa.hour=Qa.hours=Sa,Qa.minute=Qa.minutes=$a,Qa.second=Qa.seconds=qa,Qa.millisecond=Qa.milliseconds=Ka,Qa.utcOffset=Ht,Qa.utc=xt,Qa.local=Ct,Qa.parseZone=Et,Qa.hasAlignedHourOffset=Rt,Qa.isDST=At,Qa.isLocal=Wt,Qa.isUtcOffset=Ft,Qa.isUtc=zt,Qa.isUTC=zt,Qa.zoneAbbr=In,Qa.zoneName=Wn,Qa.dates=k("dates accessor is deprecated. Use date instead.",Ga),Qa.months=k("months accessor is deprecated. Use month instead",_e),Qa.years=k("years accessor is deprecated. Use year instead",ga),Qa.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Ot),Qa.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",It);var Xa=P.prototype;Xa.calendar=H,Xa.longDateFormat=O,Xa.invalidDate=x,Xa.ordinal=C,Xa.preparse=Nn,Xa.postformat=Nn,Xa.relativeTime=E,Xa.pastFuture=R,Xa.set=S,Xa.months=se,Xa.monthsShort=de,Xa.monthsParse=le,Xa.monthsRegex=pe,Xa.monthsShortRegex=he,Xa.week=we,Xa.firstDayOfYear=Se,Xa.firstDayOfWeek=Te,Xa.weekdays=xe,Xa.weekdaysMin=Ee,Xa.weekdaysShort=Ce,Xa.weekdaysParse=Ae,Xa.weekdaysRegex=ze,Xa.weekdaysShortRegex=Ne,Xa.weekdaysMinRegex=Be,Xa.isPM=qe,Xa.meridiem=Ze,et("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===Y(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),t.lang=k("moment.lang is deprecated. Use moment.locale instead.",et),t.langData=k("moment.langData is deprecated. Use moment.localeData instead.",it);var er=Math.abs,tr=si("ms"),nr=si("s"),ir=si("m"),ar=si("h"),rr=si("d"),or=si("w"),sr=si("M"),dr=si("y"),ur=ui("milliseconds"),lr=ui("seconds"),cr=ui("minutes"),_r=ui("hours"),mr=ui("days"),hr=ui("months"),pr=ui("years"),fr=Math.round,yr={s:45,m:45,h:22,d:26,M:11},gr=Math.abs,Mr=bt.prototype;return Mr.abs=Kn,Mr.add=Xn,