angular-formio
Version:
The Form.io dynamic form and data management system for Angular.
8 lines • 833 kB
JavaScript
/**
* angular-formio - The Form.io dynamic form and data management system for Angular.
* @version v1.13.0
* @author Travis Tidwell
* @link https://github.com/formio/angular-formio#readme
* @license MIT
*/
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@angular/core"),require("rxjs/Observable"),require("@angular/common")):"function"==typeof define&&define.amd?define(["@angular/core","rxjs/Observable","@angular/common"],t):"object"==typeof exports?exports["angular-formio"]=t(require("@angular/core"),require("rxjs/Observable"),require("@angular/common")):e["angular-formio"]=t(e.ng.core,e.Rx,e.ng.common)}("undefined"!=typeof self?self:this,function(__WEBPACK_EXTERNAL_MODULE_9__,__WEBPACK_EXTERNAL_MODULE_149__,__WEBPACK_EXTERNAL_MODULE_210__){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},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=148)}([function(e,t,n){(function(e){!function(t,n){e.exports=n()}(0,function(){"use strict";function t(){return Or.apply(null,arguments)}function r(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function o(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}function a(e){return void 0===e}function s(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function u(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function l(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function c(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function d(e,t){for(var n in t)c(t,n)&&(e[n]=t[n]);return c(t,"toString")&&(e.toString=t.toString),c(t,"valueOf")&&(e.valueOf=t.valueOf),e}function h(e,t,n,r){return Yt(e,t,n,r,!0).utc()}function f(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function p(e){return null==e._pf&&(e._pf=f()),e._pf}function m(e){if(null==e._isValid){var t=p(e),n=Sr.call(t.parsedDateParts,function(e){return null!=e}),r=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return r;e._isValid=r}return e._isValid}function _(e){var t=h(NaN);return null!=e?d(p(t),e):p(t).userInvalidated=!0,t}function y(e,t){var n,r,i;if(a(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),a(t._i)||(e._i=t._i),a(t._f)||(e._f=t._f),a(t._l)||(e._l=t._l),a(t._strict)||(e._strict=t._strict),a(t._tzm)||(e._tzm=t._tzm),a(t._isUTC)||(e._isUTC=t._isUTC),a(t._offset)||(e._offset=t._offset),a(t._pf)||(e._pf=p(t)),a(t._locale)||(e._locale=t._locale),jr.length>0)for(n=0;n<jr.length;n++)r=jr[n],i=t[r],a(i)||(e[r]=i);return e}function v(e){y(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===xr&&(xr=!0,t.updateOffset(this),xr=!1)}function g(e){return e instanceof v||null!=e&&null!=e._isAMomentObject}function b(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function M(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=b(t)),n}function w(e,t,n){var r,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&M(e[r])!==M(t[r]))&&a++;return a+o}function k(e){!1===t.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function L(e,n){var r=!0;return d(function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,e),r){for(var i,o=[],a=0;a<arguments.length;a++){if(i="","object"==typeof arguments[a]){i+="\n["+a+"] ";for(var s in arguments[0])i+=s+": "+arguments[0][s]+", ";i=i.slice(0,-2)}else i=arguments[a];o.push(i)}k(e+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),r=!1}return n.apply(this,arguments)},n)}function Y(e,n){null!=t.deprecationHandler&&t.deprecationHandler(e,n),Cr[e]||(k(n),Cr[e]=!0)}function D(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function T(e){var t,n;for(n in e)t=e[n],D(t)?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function O(e,t){var n,r=d({},e);for(n in t)c(t,n)&&(i(e[n])&&i(t[n])?(r[n]={},d(r[n],e[n]),d(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)c(e,n)&&!c(t,n)&&i(e[n])&&(r[n]=d({},r[n]));return r}function S(e){null!=e&&this.set(e)}function j(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return D(r)?r.call(t,n):r}function x(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 C(){return this._invalidDate}function E(e){return this._ordinal.replace("%d",e)}function P(e,t,n,r){var i=this._relativeTime[n];return D(i)?i(e,t,n,r):i.replace(/%d/i,e)}function H(e,t){var n=this._relativeTime[e>0?"future":"past"];return D(n)?n(t):n.replace(/%s/i,t)}function A(e,t){var n=e.toLowerCase();Fr[n]=Fr[n+"s"]=Fr[t]=e}function I(e){return"string"==typeof e?Fr[e]||Fr[e.toLowerCase()]:void 0}function F(e){var t,n,r={};for(n in e)c(e,n)&&(t=I(n))&&(r[t]=e[n]);return r}function R(e,t){Rr[e]=t}function N(e){var t=[];for(var n in e)t.push({unit:n,priority:Rr[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function W(e,t,n){var r=""+Math.abs(e),i=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}function z(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(Vr[e]=i),t&&(Vr[t[0]]=function(){return W(i.apply(this,arguments),t[1],t[2])}),n&&(Vr[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function V(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function U(e){var t,n,r=e.match(Nr);for(t=0,n=r.length;t<n;t++)Vr[r[t]]?r[t]=Vr[r[t]]:r[t]=V(r[t]);return function(t){var i,o="";for(i=0;i<n;i++)o+=D(r[i])?r[i].call(t,e):r[i];return o}}function B(e,t){return e.isValid()?(t=q(t,e.localeData()),zr[t]=zr[t]||U(t),zr[t](e)):e.localeData().invalidDate()}function q(e,t){function n(e){return t.longDateFormat(e)||e}var r=5;for(Wr.lastIndex=0;r>=0&&Wr.test(e);)e=e.replace(Wr,n),Wr.lastIndex=0,r-=1;return e}function J(e,t,n){si[e]=D(t)?t:function(e,r){return e&&n?n:t}}function G(e,t){return c(si,e)?si[e](t._strict,t._locale):new RegExp(K(e))}function K(e){return Z(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i}))}function Z(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function X(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),s(t)&&(r=function(e,n){n[t]=M(e)}),n=0;n<e.length;n++)ui[e[n]]=r}function $(e,t){X(e,function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)})}function Q(e,t,n){null!=t&&c(ui,e)&&ui[e](t,n._a,n,e)}function ee(e){return te(e)?366:365}function te(e){return e%4==0&&e%100!=0||e%400==0}function ne(){return te(this.year())}function re(e,n){return function(r){return null!=r?(oe(this,e,r),t.updateOffset(this,n),this):ie(this,e)}}function ie(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function oe(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&te(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),le(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function ae(e){return e=I(e),D(this[e])?this[e]():this}function se(e,t){if("object"==typeof e){e=F(e);for(var n=N(e),r=0;r<n.length;r++)this[n[r].unit](e[n[r].unit])}else if(e=I(e),D(this[e]))return this[e](t);return this}function ue(e,t){return(e%t+t)%t}function le(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=ue(t,12);return e+=(t-n)/12,1===n?te(e)?29:28:31-n%7%2}function ce(e,t){return e?r(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||bi).test(t)?"format":"standalone"][e.month()]:r(this._months)?this._months:this._months.standalone}function de(e,t){return e?r(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[bi.test(t)?"format":"standalone"][e.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function he(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=h([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?(i=vi.call(this._shortMonthsParse,a),-1!==i?i:null):(i=vi.call(this._longMonthsParse,a),-1!==i?i:null):"MMM"===t?-1!==(i=vi.call(this._shortMonthsParse,a))?i:(i=vi.call(this._longMonthsParse,a),-1!==i?i:null):-1!==(i=vi.call(this._longMonthsParse,a))?i:(i=vi.call(this._shortMonthsParse,a),-1!==i?i:null)}function fe(e,t,n){var r,i,o;if(this._monthsParseExact)return he.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=h([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function pe(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=M(t);else if(t=e.localeData().monthsParse(t),!s(t))return e;return n=Math.min(e.date(),le(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function me(e){return null!=e?(pe(this,e),t.updateOffset(this,!0),this):ie(this,"Month")}function _e(){return le(this.year(),this.month())}function ye(e){return this._monthsParseExact?(c(this,"_monthsRegex")||ge.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(c(this,"_monthsShortRegex")||(this._monthsShortRegex=ki),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function ve(e){return this._monthsParseExact?(c(this,"_monthsRegex")||ge.call(this),e?this._monthsStrictRegex:this._monthsRegex):(c(this,"_monthsRegex")||(this._monthsRegex=Li),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function ge(){function e(e,t){return t.length-e.length}var t,n,r=[],i=[],o=[];for(t=0;t<12;t++)n=h([2e3,t]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(r.sort(e),i.sort(e),o.sort(e),t=0;t<12;t++)r[t]=Z(r[t]),i[t]=Z(i[t]);for(t=0;t<24;t++)o[t]=Z(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function be(e,t,n,r,i,o,a){var s=new Date(e,t,n,r,i,o,a);return e<100&&e>=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}function Me(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function we(e,t,n){var r=7+t-n;return-(7+Me(e,0,r).getUTCDay()-t)%7+r-1}function ke(e,t,n,r,i){var o,a,s=(7+n-r)%7,u=we(e,r,i),l=1+7*(t-1)+s+u;return l<=0?(o=e-1,a=ee(o)+l):l>ee(e)?(o=e+1,a=l-ee(e)):(o=e,a=l),{year:o,dayOfYear:a}}function Le(e,t,n){var r,i,o=we(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?(i=e.year()-1,r=a+Ye(i,t,n)):a>Ye(e.year(),t,n)?(r=a-Ye(e.year(),t,n),i=e.year()+1):(i=e.year(),r=a),{week:r,year:i}}function Ye(e,t,n){var r=we(e,t,n),i=we(e+1,t,n);return(ee(e)-r+i)/7}function De(e){return Le(e,this._week.dow,this._week.doy).week}function Te(){return this._week.dow}function Oe(){return this._week.doy}function Se(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function je(e){var t=Le(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function xe(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function Ce(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Ee(e,t){return e?r(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:r(this._weekdays)?this._weekdays:this._weekdays.standalone}function Pe(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort}function He(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ae(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=h([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?(i=vi.call(this._weekdaysParse,a),-1!==i?i:null):"ddd"===t?(i=vi.call(this._shortWeekdaysParse,a),-1!==i?i:null):(i=vi.call(this._minWeekdaysParse,a),-1!==i?i:null):"dddd"===t?-1!==(i=vi.call(this._weekdaysParse,a))?i:-1!==(i=vi.call(this._shortWeekdaysParse,a))?i:(i=vi.call(this._minWeekdaysParse,a),-1!==i?i:null):"ddd"===t?-1!==(i=vi.call(this._shortWeekdaysParse,a))?i:-1!==(i=vi.call(this._weekdaysParse,a))?i:(i=vi.call(this._minWeekdaysParse,a),-1!==i?i:null):-1!==(i=vi.call(this._minWeekdaysParse,a))?i:-1!==(i=vi.call(this._weekdaysParse,a))?i:(i=vi.call(this._shortWeekdaysParse,a),-1!==i?i:null)}function Ie(e,t,n){var r,i,o;if(this._weekdaysParseExact)return Ae.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=h([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Fe(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=xe(e,this.localeData()),this.add(e-t,"d")):t}function Re(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 Ne(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Ce(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function We(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Ue.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=Si),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function ze(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Ue.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ji),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ve(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Ue.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=xi),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ue(){function e(e,t){return t.length-e.length}var t,n,r,i,o,a=[],s=[],u=[],l=[];for(t=0;t<7;t++)n=h([2e3,1]).day(t),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),o=this.weekdays(n,""),a.push(r),s.push(i),u.push(o),l.push(r),l.push(i),l.push(o);for(a.sort(e),s.sort(e),u.sort(e),l.sort(e),t=0;t<7;t++)s[t]=Z(s[t]),u[t]=Z(u[t]),l[t]=Z(l[t]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Be(){return this.hours()%12||12}function qe(){return this.hours()||24}function Je(e,t){z(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Ge(e,t){return t._meridiemParse}function Ke(e){return"p"===(e+"").toLowerCase().charAt(0)}function Ze(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function Xe(e){return e?e.toLowerCase().replace("_","-"):e}function $e(e){for(var t,n,r,i,o=0;o<e.length;){for(i=Xe(e[o]).split("-"),t=i.length,n=Xe(e[o+1]),n=n?n.split("-"):null;t>0;){if(r=Qe(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&w(i,n,!0)>=t-1)break;t--}o++}return null}function Qe(t){var r=null;if(!Ai[t]&&void 0!==e&&e&&e.exports)try{r=Ci._abbr;n(163)("./"+t),et(r)}catch(e){}return Ai[t]}function et(e,t){var n;return e&&(n=a(t)?rt(e):tt(e,t))&&(Ci=n),Ci._abbr}function tt(e,t){if(null!==t){var n=Hi;if(t.abbr=e,null!=Ai[e])Y("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=Ai[e]._config;else if(null!=t.parentLocale){if(null==Ai[t.parentLocale])return Ii[t.parentLocale]||(Ii[t.parentLocale]=[]),Ii[t.parentLocale].push({name:e,config:t}),null;n=Ai[t.parentLocale]._config}return Ai[e]=new S(O(n,t)),Ii[e]&&Ii[e].forEach(function(e){tt(e.name,e.config)}),et(e),Ai[e]}return delete Ai[e],null}function nt(e,t){if(null!=t){var n,r,i=Hi;r=Qe(e),null!=r&&(i=r._config),t=O(i,t),n=new S(t),n.parentLocale=Ai[e],Ai[e]=n,et(e)}else null!=Ai[e]&&(null!=Ai[e].parentLocale?Ai[e]=Ai[e].parentLocale:null!=Ai[e]&&delete Ai[e]);return Ai[e]}function rt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ci;if(!r(e)){if(t=Qe(e))return t;e=[e]}return $e(e)}function it(){return Er(Ai)}function ot(e){var t,n=e._a;return n&&-2===p(e).overflow&&(t=n[ci]<0||n[ci]>11?ci:n[di]<1||n[di]>le(n[li],n[ci])?di:n[hi]<0||n[hi]>24||24===n[hi]&&(0!==n[fi]||0!==n[pi]||0!==n[mi])?hi:n[fi]<0||n[fi]>59?fi:n[pi]<0||n[pi]>59?pi:n[mi]<0||n[mi]>999?mi:-1,p(e)._overflowDayOfYear&&(t<li||t>di)&&(t=di),p(e)._overflowWeeks&&-1===t&&(t=_i),p(e)._overflowWeekday&&-1===t&&(t=yi),p(e).overflow=t),e}function at(e,t,n){return null!=e?e:null!=t?t:n}function st(e){var n=new Date(t.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function ut(e){var t,n,r,i,o,a=[];if(!e._d){for(r=st(e),e._w&&null==e._a[di]&&null==e._a[ci]&<(e),null!=e._dayOfYear&&(o=at(e._a[li],r[li]),(e._dayOfYear>ee(o)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),n=Me(o,0,e._dayOfYear),e._a[ci]=n.getUTCMonth(),e._a[di]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=r[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[hi]&&0===e._a[fi]&&0===e._a[pi]&&0===e._a[mi]&&(e._nextDay=!0,e._a[hi]=0),e._d=(e._useUTC?Me:be).apply(null,a),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[hi]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(p(e).weekdayMismatch=!0)}}function lt(e){var t,n,r,i,o,a,s,u;if(t=e._w,null!=t.GG||null!=t.W||null!=t.E)o=1,a=4,n=at(t.GG,e._a[li],Le(Dt(),1,4).year),r=at(t.W,1),((i=at(t.E,1))<1||i>7)&&(u=!0);else{o=e._locale._week.dow,a=e._locale._week.doy;var l=Le(Dt(),o,a);n=at(t.gg,e._a[li],l.year),r=at(t.w,l.week),null!=t.d?((i=t.d)<0||i>6)&&(u=!0):null!=t.e?(i=t.e+o,(t.e<0||t.e>6)&&(u=!0)):i=o}r<1||r>Ye(n,o,a)?p(e)._overflowWeeks=!0:null!=u?p(e)._overflowWeekday=!0:(s=ke(n,r,i,o,a),e._a[li]=s.year,e._dayOfYear=s.dayOfYear)}function ct(e){var t,n,r,i,o,a,s=e._i,u=Fi.exec(s)||Ri.exec(s);if(u){for(p(e).iso=!0,t=0,n=Wi.length;t<n;t++)if(Wi[t][1].exec(u[1])){i=Wi[t][0],r=!1!==Wi[t][2];break}if(null==i)return void(e._isValid=!1);if(u[3]){for(t=0,n=zi.length;t<n;t++)if(zi[t][1].exec(u[3])){o=(u[2]||" ")+zi[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(u[4]){if(!Ni.exec(u[4]))return void(e._isValid=!1);a="Z"}e._f=i+(o||"")+(a||""),vt(e)}else e._isValid=!1}function dt(e,t,n,r,i,o){var a=[ht(e),wi.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&a.push(parseInt(o,10)),a}function ht(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function ft(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}function pt(e,t,n){if(e){if(Ti.indexOf(e)!==new Date(t[0],t[1],t[2]).getDay())return p(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function mt(e,t,n){if(e)return Bi[e];if(t)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}function _t(e){var t=Ui.exec(ft(e._i));if(t){var n=dt(t[4],t[3],t[2],t[5],t[6],t[7]);if(!pt(t[1],n,e))return;e._a=n,e._tzm=mt(t[8],t[9],t[10]),e._d=Me.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),p(e).rfc2822=!0}else e._isValid=!1}function yt(e){var n=Vi.exec(e._i);if(null!==n)return void(e._d=new Date(+n[1]));ct(e),!1===e._isValid&&(delete e._isValid,_t(e),!1===e._isValid&&(delete e._isValid,t.createFromInputFallback(e)))}function vt(e){if(e._f===t.ISO_8601)return void ct(e);if(e._f===t.RFC_2822)return void _t(e);e._a=[],p(e).empty=!0;var n,r,i,o,a,s=""+e._i,u=s.length,l=0;for(i=q(e._f,e._locale).match(Nr)||[],n=0;n<i.length;n++)o=i[n],r=(s.match(G(o,e))||[])[0],r&&(a=s.substr(0,s.indexOf(r)),a.length>0&&p(e).unusedInput.push(a),s=s.slice(s.indexOf(r)+r.length),l+=r.length),Vr[o]?(r?p(e).empty=!1:p(e).unusedTokens.push(o),Q(o,r,e)):e._strict&&!r&&p(e).unusedTokens.push(o);p(e).charsLeftOver=u-l,s.length>0&&p(e).unusedInput.push(s),e._a[hi]<=12&&!0===p(e).bigHour&&e._a[hi]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[hi]=gt(e._locale,e._a[hi],e._meridiem),ut(e),ot(e)}function gt(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(r=e.isPM(n),r&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function bt(e){var t,n,r,i,o;if(0===e._f.length)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<e._f.length;i++)o=0,t=y({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],vt(t),m(t)&&(o+=p(t).charsLeftOver,o+=10*p(t).unusedTokens.length,p(t).score=o,(null==r||o<r)&&(r=o,n=t));d(e,n||t)}function Mt(e){if(!e._d){var t=F(e._i);e._a=l([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),ut(e)}}function wt(e){var t=new v(ot(kt(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function kt(e){var t=e._i,n=e._f;return e._locale=e._locale||rt(e._l),null===t||void 0===n&&""===t?_({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),g(t)?new v(ot(t)):(u(t)?e._d=t:r(n)?bt(e):n?vt(e):Lt(e),m(e)||(e._d=null),e))}function Lt(e){var n=e._i;a(n)?e._d=new Date(t.now()):u(n)?e._d=new Date(n.valueOf()):"string"==typeof n?yt(e):r(n)?(e._a=l(n.slice(0),function(e){return parseInt(e,10)}),ut(e)):i(n)?Mt(e):s(n)?e._d=new Date(n):t.createFromInputFallback(e)}function Yt(e,t,n,a,s){var u={};return!0!==n&&!1!==n||(a=n,n=void 0),(i(e)&&o(e)||r(e)&&0===e.length)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=s,u._l=n,u._i=e,u._f=t,u._strict=a,wt(u)}function Dt(e,t,n,r){return Yt(e,t,n,r,!1)}function Tt(e,t){var n,i;if(1===t.length&&r(t[0])&&(t=t[0]),!t.length)return Dt();for(n=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][e](n)||(n=t[i]);return n}function Ot(){return Tt("isBefore",[].slice.call(arguments,0))}function St(){return Tt("isAfter",[].slice.call(arguments,0))}function jt(e){for(var t in e)if(-1===vi.call(Ki,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,r=0;r<Ki.length;++r)if(e[Ki[r]]){if(n)return!1;parseFloat(e[Ki[r]])!==M(e[Ki[r]])&&(n=!0)}return!0}function xt(){return this._isValid}function Ct(){return Xt(NaN)}function Et(e){var t=F(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||0,a=t.day||0,s=t.hour||0,u=t.minute||0,l=t.second||0,c=t.millisecond||0;this._isValid=jt(t),this._milliseconds=+c+1e3*l+6e4*u+1e3*s*60*60,this._days=+a+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=rt(),this._bubble()}function Pt(e){return e instanceof Et}function Ht(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function At(e,t){z(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+W(~~(e/60),2)+t+W(~~e%60,2)})}function It(e,t){var n=(t||"").match(e);if(null===n)return null;var r=n[n.length-1]||[],i=(r+"").match(Zi)||["-",0,0],o=60*i[1]+M(i[2]);return 0===o?0:"+"===i[0]?o:-o}function Ft(e,n){var r,i;return n._isUTC?(r=n.clone(),i=(g(e)||u(e)?e.valueOf():Dt(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+i),t.updateOffset(r,!1),r):Dt(e).local()}function Rt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Nt(e,n,r){var i,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=It(ii,e)))return this}else Math.abs(e)<16&&!r&&(e*=60);return!this._isUTC&&n&&(i=Rt(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),o!==e&&(!n||this._changeInProgress?nn(this,Xt(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Rt(this)}function Wt(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function zt(e){return this.utcOffset(0,e)}function Vt(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Rt(this),"m")),this}function Ut(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=It(ri,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Bt(e){return!!this.isValid()&&(e=e?Dt(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function qt(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Jt(){if(!a(this._isDSTShifted))return this._isDSTShifted;var e={};if(y(e,this),e=kt(e),e._a){var t=e._isUTC?h(e._a):Dt(e._a);this._isDSTShifted=this.isValid()&&w(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Gt(){return!!this.isValid()&&!this._isUTC}function Kt(){return!!this.isValid()&&this._isUTC}function Zt(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Xt(e,t){var n,r,i,o=e,a=null;return Pt(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:s(e)?(o={},t?o[t]=e:o.milliseconds=e):(a=Xi.exec(e))?(n="-"===a[1]?-1:1,o={y:0,d:M(a[di])*n,h:M(a[hi])*n,m:M(a[fi])*n,s:M(a[pi])*n,ms:M(Ht(1e3*a[mi]))*n}):(a=$i.exec(e))?(n="-"===a[1]?-1:(a[1],1),o={y:$t(a[2],n),M:$t(a[3],n),w:$t(a[4],n),d:$t(a[5],n),h:$t(a[6],n),m:$t(a[7],n),s:$t(a[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(i=en(Dt(o.from),Dt(o.to)),o={},o.ms=i.milliseconds,o.M=i.months),r=new Et(o),Pt(e)&&c(e,"_locale")&&(r._locale=e._locale),r}function $t(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Qt(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 en(e,t){var n;return e.isValid()&&t.isValid()?(t=Ft(t,e),e.isBefore(t)?n=Qt(e,t):(n=Qt(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function tn(e,t){return function(n,r){var i,o;return null===r||isNaN(+r)||(Y(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."),o=n,n=r,r=o),n="string"==typeof n?+n:n,i=Xt(n,r),nn(this,i,e),this}}function nn(e,n,r,i){var o=n._milliseconds,a=Ht(n._days),s=Ht(n._months);e.isValid()&&(i=null==i||i,s&&pe(e,ie(e,"Month")+s*r),a&&oe(e,"Date",ie(e,"Date")+a*r),o&&e._d.setTime(e._d.valueOf()+o*r),i&&t.updateOffset(e,a||s))}function rn(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 on(e,n){var r=e||Dt(),i=Ft(r,this).startOf("day"),o=t.calendarFormat(this,i)||"sameElse",a=n&&(D(n[o])?n[o].call(this,r):n[o]);return this.format(a||this.localeData().calendar(o,this,Dt(r)))}function an(){return new v(this)}function sn(e,t){var n=g(e)?e:Dt(e);return!(!this.isValid()||!n.isValid())&&(t=I(a(t)?"millisecond":t),"millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function un(e,t){var n=g(e)?e:Dt(e);return!(!this.isValid()||!n.isValid())&&(t=I(a(t)?"millisecond":t),"millisecond"===t?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function ln(e,t,n,r){return r=r||"()",("("===r[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===r[1]?this.isBefore(t,n):!this.isAfter(t,n))}function cn(e,t){var n,r=g(e)?e:Dt(e);return!(!this.isValid()||!r.isValid())&&(t=I(t||"millisecond"),"millisecond"===t?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function dn(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function hn(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function fn(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(r=Ft(e,this),!r.isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=I(t)){case"year":o=pn(this,r)/12;break;case"month":o=pn(this,r);break;case"quarter":o=pn(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:b(o)}function pn(e,t){var n,r,i=12*(t.year()-e.year())+(t.month()-e.month()),o=e.clone().add(i,"months");return t-o<0?(n=e.clone().add(i-1,"months"),r=(t-o)/(o-n)):(n=e.clone().add(i+1,"months"),r=(t-o)/(n-o)),-(i+r)||0}function mn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function _n(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?B(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):D(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this._d.valueOf()).toISOString().replace("Z",B(n,"Z")):B(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function yn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+i)}function vn(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var n=B(this,e);return this.localeData().postformat(n)}function gn(e,t){return this.isValid()&&(g(e)&&e.isValid()||Dt(e).isValid())?Xt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function bn(e){return this.from(Dt(),e)}function Mn(e,t){return this.isValid()&&(g(e)&&e.isValid()||Dt(e).isValid())?Xt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function wn(e){return this.to(Dt(),e)}function kn(e){var t;return void 0===e?this._locale._abbr:(t=rt(e),null!=t&&(this._locale=t),this)}function Ln(){return this._locale}function Yn(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 Dn(e){return void 0===(e=I(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))}function Tn(){return this._d.valueOf()-6e4*(this._offset||0)}function On(){return Math.floor(this.valueOf()/1e3)}function Sn(){return new Date(this.valueOf())}function jn(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function xn(){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 Cn(){return this.isValid()?this.toISOString():null}function En(){return m(this)}function Pn(){return d({},p(this))}function Hn(){return p(this).overflow}function An(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function In(e,t){z(0,[e,e.length],0,t)}function Fn(e){return zn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Rn(e){return zn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Nn(){return Ye(this.year(),1,4)}function Wn(){var e=this.localeData()._week;return Ye(this.year(),e.dow,e.doy)}function zn(e,t,n,r,i){var o;return null==e?Le(this,r,i).year:(o=Ye(e,r,i),t>o&&(t=o),Vn.call(this,e,t,n,r,i))}function Vn(e,t,n,r,i){var o=ke(e,t,n,r,i),a=Me(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Un(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function Bn(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 qn(e,t){t[mi]=M(1e3*("0."+e))}function Jn(){return this._isUTC?"UTC":""}function Gn(){return this._isUTC?"Coordinated Universal Time":""}function Kn(e){return Dt(1e3*e)}function Zn(){return Dt.apply(null,arguments).parseZone()}function Xn(e){return e}function $n(e,t,n,r){var i=rt(),o=h().set(r,t);return i[n](o,e)}function Qn(e,t,n){if(s(e)&&(t=e,e=void 0),e=e||"",null!=t)return $n(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=$n(e,r,n,"month");return i}function er(e,t,n,r){"boolean"==typeof e?(s(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,s(t)&&(n=t,t=void 0),t=t||"");var i=rt(),o=e?i._week.dow:0;if(null!=n)return $n(t,(n+o)%7,r,"day");var a,u=[];for(a=0;a<7;a++)u[a]=$n(t,(a+o)%7,r,"day");return u}function tr(e,t){return Qn(e,t,"months")}function nr(e,t){return Qn(e,t,"monthsShort")}function rr(e,t,n){return er(e,t,n,"weekdays")}function ir(e,t,n){return er(e,t,n,"weekdaysShort")}function or(e,t,n){return er(e,t,n,"weekdaysMin")}function ar(){var e=this._data;return this._milliseconds=lo(this._milliseconds),this._days=lo(this._days),this._months=lo(this._months),e.milliseconds=lo(e.milliseconds),e.seconds=lo(e.seconds),e.minutes=lo(e.minutes),e.hours=lo(e.hours),e.months=lo(e.months),e.years=lo(e.years),this}function sr(e,t,n,r){var i=Xt(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function ur(e,t){return sr(this,e,t,1)}function lr(e,t){return sr(this,e,t,-1)}function cr(e){return e<0?Math.floor(e):Math.ceil(e)}function dr(){var e,t,n,r,i,o=this._milliseconds,a=this._days,s=this._months,u=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*cr(fr(s)+a),a=0,s=0),u.milliseconds=o%1e3,e=b(o/1e3),u.seconds=e%60,t=b(e/60),u.minutes=t%60,n=b(t/60),u.hours=n%24,a+=b(n/24),i=b(hr(a)),s+=i,a-=cr(fr(i)),r=b(s/12),s%=12,u.days=a,u.months=s,u.years=r,this}function hr(e){return 4800*e/146097}function fr(e){return 146097*e/4800}function pr(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=I(e))||"year"===e)return t=this._days+r/864e5,n=this._months+hr(t),"month"===e?n:n/12;switch(t=this._days+Math.round(fr(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function mr(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*M(this._months/12):NaN}function _r(e){return function(){return this.as(e)}}function yr(){return Xt(this)}function vr(e){return e=I(e),this.isValid()?this[e+"s"]():NaN}function gr(e){return function(){return this.isValid()?this._data[e]:NaN}}function br(){return b(this.days()/7)}function Mr(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function wr(e,t,n){var r=Xt(e).abs(),i=Do(r.as("s")),o=Do(r.as("m")),a=Do(r.as("h")),s=Do(r.as("d")),u=Do(r.as("M")),l=Do(r.as("y")),c=i<=To.ss&&["s",i]||i<To.s&&["ss",i]||o<=1&&["m"]||o<To.m&&["mm",o]||a<=1&&["h"]||a<To.h&&["hh",a]||s<=1&&["d"]||s<To.d&&["dd",s]||u<=1&&["M"]||u<To.M&&["MM",u]||l<=1&&["y"]||["yy",l];return c[2]=t,c[3]=+e>0,c[4]=n,Mr.apply(null,c)}function kr(e){return void 0===e?Do:"function"==typeof e&&(Do=e,!0)}function Lr(e,t){return void 0!==To[e]&&(void 0===t?To[e]:(To[e]=t,"s"===e&&(To.ss=t-1),!0))}function Yr(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=wr(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function Dr(e){return(e>0)-(e<0)||+e}function Tr(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r=Oo(this._milliseconds)/1e3,i=Oo(this._days),o=Oo(this._months);e=b(r/60),t=b(e/60),r%=60,e%=60,n=b(o/12),o%=12;var a=n,s=o,u=i,l=t,c=e,d=r?r.toFixed(3).replace(/\.?0+$/,""):"",h=this.asSeconds();if(!h)return"P0D";var f=h<0?"-":"",p=Dr(this._months)!==Dr(h)?"-":"",m=Dr(this._days)!==Dr(h)?"-":"",_=Dr(this._milliseconds)!==Dr(h)?"-":"";return f+"P"+(a?p+a+"Y":"")+(s?p+s+"M":"")+(u?m+u+"D":"")+(l||c||d?"T":"")+(l?_+l+"H":"")+(c?_+c+"M":"")+(d?_+d+"S":"")}var Or,Sr;Sr=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};var jr=t.momentProperties=[],xr=!1,Cr={};t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;var Er;Er=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)c(e,t)&&n.push(t);return n};var Pr={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Hr={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"},Ar=/\d{1,2}/,Ir={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},Fr={},Rr={},Nr=/(\[[^\[]*\])|(\\)?([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,Wr=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,zr={},Vr={},Ur=/\d/,Br=/\d\d/,qr=/\d{3}/,Jr=/\d{4}/,Gr=/[+-]?\d{6}/,Kr=/\d\d?/,Zr=/\d\d\d\d?/,Xr=/\d\d\d\d\d\d?/,$r=/\d{1,3}/,Qr=/\d{1,4}/,ei=/[+-]?\d{1,6}/,ti=/\d+/,ni=/[+-]?\d+/,ri=/Z|[+-]\d\d:?\d\d/gi,ii=/Z|[+-]\d\d(?::?\d\d)?/gi,oi=/[+-]?\d+(\.\d{1,3})?/,ai=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,si={},ui={},li=0,ci=1,di=2,hi=3,fi=4,pi=5,mi=6,_i=7,yi=8;z("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),z(0,["YY",2],0,function(){return this.year()%100}),z(0,["YYYY",4],0,"year"),z(0,["YYYYY",5],0,"year"),z(0,["YYYYYY",6,!0],0,"year"),A("year","y"),R("year",1),J("Y",ni),J("YY",Kr,Br),J("YYYY",Qr,Jr),J("YYYYY",ei,Gr),J("YYYYYY",ei,Gr),X(["YYYYY","YYYYYY"],li),X("YYYY",function(e,n){n[li]=2===e.length?t.parseTwoDigitYear(e):M(e)}),X("YY",function(e,n){n[li]=t.parseTwoDigitYear(e)}),X("Y",function(e,t){t[li]=parseInt(e,10)}),t.parseTwoDigitYear=function(e){return M(e)+(M(e)>68?1900:2e3)};var vi,gi=re("FullYear",!0);vi=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},z("M",["MM",2],"Mo",function(){return this.month()+1}),z("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),z("MMMM",0,0,function(e){return this.localeData().months(this,e)}),A("month","M"),R("month",8),J("M",Kr),J("MM",Kr,Br),J("MMM",function(e,t){return t.monthsShortRegex(e)}),J("MMMM",function(e,t){return t.monthsRegex(e)}),X(["M","MM"],function(e,t){t[ci]=M(e)-1}),X(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[ci]=i:p(n).invalidMonth=e});var bi=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Mi="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),wi="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ki=ai,Li=ai;z("w",["ww",2],"wo","week"),z("W",["WW",2],"Wo","isoWeek"),A("week","w"),A("isoWeek","W"),R("week",5),R("isoWeek",5),J("w",Kr),J("ww",Kr,Br),J("W",Kr),J("WW",Kr,Br),$(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=M(e)});var Yi={dow:0,doy:6};z("d",0,"do","day"),z("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),z("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),z("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),z("e",0,0,"weekday"),z("E",0,0,"isoWeekday"),A("day","d"),A("weekday","e"),A("isoWeekday","E"),R("day",11),R("weekday",11),R("isoWeekday",11),J("d",Kr),J("e",Kr),J("E",Kr),J("dd",function(e,t){return t.weekdaysMinRegex(e)}),J("ddd",function(e,t){return t.weekdaysShortRegex(e)}),J("dddd",function(e,t){return t.weekdaysRegex(e)}),$(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:p(n).invalidWeekday=e}),$(["d","e","E"],function(e,t,n,r){t[r]=M(e)});var Di="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ti="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Oi="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Si=ai,ji=ai,xi=ai;z("H",["HH",2],0,"hour"),z("h",["hh",2],0,Be),z("k",["kk",2],0,qe),z("hmm",0,0,function(){return""+Be.apply(this)+W(this.minutes(),2)}),z("hmmss",0,0,function(){return""+Be.apply(this)+W(this.minutes(),2)+W(this.seconds(),2)}),z("Hmm",0,0,function(){return""+this.hours()+W(this.minutes(),2)}),z("Hmmss",0,0,function(){return""+this.hours()+W(this.minutes(),2)+W(this.seconds(),2)}),Je("a",!0),Je("A",!1),A("hour","h"),R("hour",13),J("a",Ge),J("A",Ge),J("H",Kr),J("h",Kr),J("k",Kr),J("HH",Kr,Br),J("hh",Kr,Br),J("kk",Kr,Br),J("hmm",Zr),J("hmmss",Xr),J("Hmm",Zr),J("Hmmss",Xr),X(["H","HH"],hi),X(["k","kk"],function(e,t,n){var r=M(e);t[hi]=24===r?0:r}),X(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),X(["h","hh"],function(e,t,n){t[hi]=M(e),p(n).bigHour=!0}),X("hmm",function(e,t,n){var r=e.length-2;t[hi]=M(e.substr(0,r)),t[fi]=M(e.substr(r)),p(n).bigHour=!0}),X("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[hi]=M(e.substr(0,r)),t[fi]=M(e.substr(r,2)),t[pi]=M(e.substr(i)),p(n).bigHour=!0}),X("Hmm",function(e,t,n){var r=e.length-2;t[hi]=M(e.substr(0,r)),t[fi]=M(e.substr(r))}),X("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[hi]=M(e.substr(0,r)),t[fi]=M(e.substr(r,2)),t[pi]=M(e.substr(i))});var Ci,Ei=/[ap]\.?m?\.?/i,Pi=re("Hours",!0),Hi={calendar:Pr,longDateFormat:Hr,invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:Ar,relativeTime:Ir,months:Mi,monthsShort:wi,week:Yi,weekdays:Di,weekdaysMin:Oi,weekdaysShort:Ti,meridiemParse:Ei},Ai={},Ii={},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)?)?$/,Ri=/^\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)?)?$/,Ni=/Z|[+-]\d\d(?::?\d\d)?/,Wi=[["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}/]],zi=[["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/]],Vi=/^\/?Date\((\-?\d+)/i,Ui=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Bi={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};t.createFromInputFallback=L("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),t.ISO_8601=function(){},t.RFC_2822=function(){};var qi=L("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Dt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:_()}),Ji=L("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Dt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:_()}),Gi=function(){return Date.now?Date.now():+new Date},Ki=["year","quarter","month","week","day","hour","minute","second","millisecond"];At("Z",":"),At("ZZ",""),J("Z",ii),J("ZZ",ii),X(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=It(ii,e)});var Zi=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var Xi=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\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)?)?$/;Xt.fn=Et.prototype,Xt.invalid=Ct;var Qi=tn(1,"add"),eo=tn(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var to=L("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)});z(0,["gg",2],0,function(){return this.weekYear()%100}),z(0,["GG",2],0,function(){return this.isoWeekYear()%100}),In("gggg","weekYear"),In("ggggg","weekYear"),In("GGGG","isoWeekYear"),In("GGGGG","isoWeekYear"),A("weekYear","gg"),A("isoWeekYear","GG"),R("weekYear",1),R("isoWeekYear",1),J("G",ni),J("g",ni),J("GG",Kr,Br),J("gg",Kr,Br),J("GGGG",Qr,Jr),J("gggg",Qr,Jr),J("GGGGG",ei,Gr),J("ggggg",ei,Gr),$(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=M(e)}),$(["gg","GG"],function(e,n,r,i){n[i]=t.parseTwoDigitYear(e)}),z("Q",0,"Qo","quarter"),A("quarter","Q"),R("quarter",7),J("Q",Ur),X("Q",function(e,t){t[ci]=3*(M(e)-1)}),z("D",["DD",2],"Do","date"),A("date","D"),R("date",9),J("D",Kr),J("DD",Kr,Br),J("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),X(["D","DD"],di),X("Do",function(e,t){t[di]=M(e.match(Kr)[0])});var no=re("Date",!0);z("DDD",["DDDD",3],"DDDo","dayOfYear"),A("dayOfYear","DDD"),R("dayOfYear",4),J("DDD",$r),J("DDDD",qr),X(["DDD","DDDD"],function(e,t,n){n._dayOfYear=M(e)}),z("m",["mm",2],0,"minute"),A("minute","m"),R("minute",14),J("m",Kr),J("mm",Kr,Br),X(["m","mm"],fi);var ro=re("Minutes",!1);z("s",["ss",2],0,"second"),A("second","s"),R("second",15),J("s",Kr),J("ss",Kr,Br),X(["s","ss"],pi);var io=re("Seconds",!1);z("S",0,0,function(){return~~(this.millisecond()/100)}),z(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),z(0,["SSS",3],0,"millisecond"),z(0,["SSSS",4],0,function(){return 10*this.millisecond()}),z(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),z(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),z(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),z(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),z(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),A("millisecond","ms"),R("millisecond",16),J("S",$r,Ur),J("SS",$r,Br),J("SSS",$r,qr);var oo;for(oo="SSSS";oo.length<=9;oo+="S")J(oo,ti);for(oo="S";oo.length<=9;oo+="S")X(oo,qn);var ao=re("Milliseconds",!1);z("z",0,0,"zoneAbbr"),z("zz",0,0,"zoneName");var so=v.prototype;so.add=Qi,so.calendar=on,so.clone=an,so.diff=fn,so.endOf=Dn,so.format=vn,so.from=gn,so.fromNow=bn,so.to=Mn,so.toNow=wn,so.get=ae,so.invalidAt=Hn,so.isAfter=sn,so.isBefore=un,so.isBetween=ln,so.isSame=cn,so.isSameOrAfter=dn,so.isSameOrBefore=hn,so.isValid=En,so.lang=to,so.locale=kn,so.localeData=Ln,so.max=Ji,so.min=qi,so.parsingFlags=Pn,so.set=se,so.startOf=Yn,so.subtract=eo,so.toArray=jn,so.toObject=xn,so.toDate=Sn,so