UNPKG

apisearch-events-ui

Version:

Javascript User Interface to visualize all events data.

1 lines 603 kB
(function(e,t){'object'==typeof exports&&'object'==typeof module?module.exports=t():'function'==typeof define&&define.amd?define([],t):'object'==typeof exports?exports.apisearchEventsUI=t():e.apisearchEventsUI=t()})('undefined'==typeof self?this:self,function(){var e=Math.SQRT2,t=Number.POSITIVE_INFINITY,n=Math.sin,d=Math.cos,o=Math.sqrt,r=Math.PI,s=Math.atan2,a=Math.round,m=Math.pow,u=Math.max,l=Math.abs,p=Math.min,y=Math.floor,h=Math.ceil;return function(e){function t(n){if(a[n])return a[n].exports;var d=a[n]={i:n,l:!1,exports:{}};return e[n].call(d.exports,d,d.exports,t),d.l=!0,d.exports}var a={};return t.m=e,t.c=a,t.d=function(e,a,n){t.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var a=e&&e.__esModule?function(){return e['default']}:function(){return e};return t.d(a,'a',a),a},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p='',t(t.s=180)}([function(e,t,n){(function(e){var t;(function(t,a){e.exports=a()})(this,function(){'use strict';function t(){return Et.apply(null,arguments)}function d(e){return e instanceof Array||'[object Array]'===Object.prototype.toString.call(e)}function o(e){return null!=e&&'[object Object]'===Object.prototype.toString.call(e)}function s(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function r(e){return void 0===e}function c(e){return'number'==typeof e||'[object Number]'===Object.prototype.toString.call(e)}function i(e){return e instanceof Date||'[object Date]'===Object.prototype.toString.call(e)}function g(e,t){var a=[],n;for(n=0;n<e.length;++n)a.push(t(e[n],n));return a}function f(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function M(e,t){for(var a in t)f(t,a)&&(e[a]=t[a]);return f(t,'toString')&&(e.toString=t.toString),f(t,'valueOf')&&(e.valueOf=t.valueOf),e}function L(e,t,a,n){return Ke(e,t,a,n,!0).utc()}function b(){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 k(e){return null==e._pf&&(e._pf=b()),e._pf}function Y(e){if(null==e._isValid){var t=k(e),a=Ct.call(t.parsedDateParts,function(e){return null!=e}),n=!isNaN(e._d.getTime())&&0>t.overflow&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&a);if(e._strict&&(n=n&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null==Object.isFrozen||!Object.isFrozen(e))e._isValid=n;else return n}return e._isValid}function D(e){var t=L(NaN);return null==e?k(t).userInvalidated=!0:M(k(t),e),t}function x(e,t){var a,n,d;if(r(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),r(t._i)||(e._i=t._i),r(t._f)||(e._f=t._f),r(t._l)||(e._l=t._l),r(t._strict)||(e._strict=t._strict),r(t._tzm)||(e._tzm=t._tzm),r(t._isUTC)||(e._isUTC=t._isUTC),r(t._offset)||(e._offset=t._offset),r(t._pf)||(e._pf=k(t)),r(t._locale)||(e._locale=t._locale),0<Ft.length)for(a=0;a<Ft.length;a++)n=Ft[a],d=t[n],r(d)||(e[n]=d);return e}function _(e){x(this,e),this._d=new Date(null==e._d?NaN:e._d.getTime()),this.isValid()||(this._d=new Date(NaN)),!1==Wt&&(Wt=!0,t.updateOffset(this),Wt=!1)}function T(e){return e instanceof _||null!=e&&null!=e._isAMomentObject}function v(e){return 0>e?h(e)||0:y(e)}function w(e){var t=+e,a=0;return 0!=t&&isFinite(t)&&(a=v(t)),a}function S(e,t,a){var n=p(e.length,t.length),d=l(e.length-t.length),o=0,s;for(s=0;s<n;s++)(a&&e[s]!==t[s]||!a&&w(e[s])!==w(t[s]))&&o++;return o+d}function H(e){!1===t.suppressDeprecationWarnings&&'undefined'!=typeof console&&console.warn&&console.warn('Deprecation warning: '+e)}function P(e,a){var n=!0;return M(function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,e),n){for(var d=[],o=0,s;o<arguments.length;o++){if(s='','object'==typeof arguments[o]){for(var i in s+='\n['+o+'] ',arguments[0])s+=i+': '+arguments[0][i]+', ';s=s.slice(0,-2)}else s=arguments[o];d.push(s)}H(e+'\nArguments: '+Array.prototype.slice.call(d).join('')+'\n'+new Error().stack),n=!1}return a.apply(this,arguments)},a)}function j(e,a){null!=t.deprecationHandler&&t.deprecationHandler(e,a),It[e]||(H(a),It[e]=!0)}function O(e){return e instanceof Function||'[object Function]'===Object.prototype.toString.call(e)}function A(e,t){var a=M({},e),n;for(n in t)f(t,n)&&(o(e[n])&&o(t[n])?(a[n]={},M(a[n],e[n]),M(a[n],t[n])):null==t[n]?delete a[n]:a[n]=t[n]);for(n in e)f(e,n)&&!f(t,n)&&o(e[n])&&(a[n]=M({},a[n]));return a}function E(e){null!=e&&this.set(e)}function C(e,t){var a=e.toLowerCase();Bt[a]=Bt[a+'s']=Bt[t]=e}function F(e){return'string'==typeof e?Bt[e]||Bt[e.toLowerCase()]:void 0}function W(e){var t={},a,n;for(n in e)f(e,n)&&(a=F(n),a&&(t[a]=e[n]));return t}function I(e,t){Nt[e]=t}function R(e){var t=[];for(var a in e)t.push({unit:a,priority:Nt[a]});return t.sort(function(e,t){return e.priority-t.priority}),t}function z(e,t,a){var n=''+l(e),d=t-n.length;return(0<=e?a?'+':'':'-')+m(10,u(0,d)).toString().substr(1)+n}function B(e,t,a,n){var d=n;'string'==typeof n&&(d=function(){return this[n]()}),e&&(Gt[e]=d),t&&(Gt[t[0]]=function(){return z(d.apply(this,arguments),t[1],t[2])}),a&&(Gt[a]=function(){return this.localeData().ordinal(d.apply(this,arguments),e)})}function N(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,''):e.replace(/\\/g,'')}function U(e){var t=e.match(Ut),a,n;for(a=0,n=t.length;a<n;a++)t[a]=Gt[t[a]]?Gt[t[a]]:N(t[a]);return function(a){var d='',o;for(o=0;o<n;o++)d+=O(t[o])?t[o].call(a,e):t[o];return d}}function V(e,t){return e.isValid()?(t=J(t,e.localeData()),Jt[t]=Jt[t]||U(t),Jt[t](e)):e.localeData().invalidDate()}function J(e,t){function a(e){return t.longDateFormat(e)||e}var n=5;for(Vt.lastIndex=0;0<=n&&Vt.test(e);)e=e.replace(Vt,a),Vt.lastIndex=0,n-=1;return e}function G(e,t,a){ua[e]=O(t)?t:function(e){return e&&a?a:t}}function q(e,t){return f(ua,e)?ua[e](t._strict,t._locale):new RegExp(Q(e))}function Q(e){return K(e.replace('\\','').replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,a,n,d){return t||a||n||d}))}function K(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,'\\$&')}function Z(e,t){var a=t,n;for('string'==typeof e&&(e=[e]),c(t)&&(a=function(e,a){a[t]=w(e)}),n=0;n<e.length;n++)ha[e[n]]=a}function X(e,t){Z(e,function(e,a,n,d){n._w=n._w||{},t(e,n._w,n,d)})}function $(e,t,a){null!=t&&f(ha,e)&&ha[e](t,a._a,a,e)}function ee(e){return te(e)?366:365}function te(e){return 0==e%4&&0!=e%100||0==e%400}function ae(e,a){return function(n){return null==n?ne(this,e):(de(this,e,n),t.updateOffset(this,a),this)}}function ne(e,t){return e.isValid()?e._d['get'+(e._isUTC?'UTC':'')+t]():NaN}function de(e,t,a){e.isValid()&&!isNaN(a)&&('FullYear'===t&&te(e.year())&&1===e.month()&&29===e.date()?e._d['set'+(e._isUTC?'UTC':'')+t](a,e.month(),se(a,e.month())):e._d['set'+(e._isUTC?'UTC':'')+t](a))}function oe(e,t){return(e%t+t)%t}function se(e,t){if(isNaN(e)||isNaN(t))return NaN;var a=oe(t,12);return e+=(t-a)/12,1===a?te(e)?29:28:31-a%7%2}function ie(e,t,a){var n=e.toLocaleLowerCase(),d,o,s;if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],d=0;12>d;++d)s=L([2e3,d]),this._shortMonthsParse[d]=this.monthsShort(s,'').toLocaleLowerCase(),this._longMonthsParse[d]=this.months(s,'').toLocaleLowerCase();return a?'MMM'===t?(o=Da.call(this._shortMonthsParse,n),-1===o?null:o):(o=Da.call(this._longMonthsParse,n),-1===o?null:o):'MMM'===t?(o=Da.call(this._shortMonthsParse,n),-1!==o)?o:(o=Da.call(this._longMonthsParse,n),-1===o?null:o):(o=Da.call(this._longMonthsParse,n),-1!==o)?o:(o=Da.call(this._shortMonthsParse,n),-1===o?null:o)}function re(e,t){var a;if(!e.isValid())return e;if('string'==typeof t)if(/^\d+$/.test(t))t=w(t);else if(t=e.localeData().monthsParse(t),!c(t))return e;return a=p(e.date(),se(e.year(),t)),e._d['set'+(e._isUTC?'UTC':'')+'Month'](t,a),e}function le(e){return null==e?ne(this,'Month'):(re(this,e),t.updateOffset(this,!0),this)}function me(){function e(e,t){return t.length-e.length}var t=[],a=[],n=[],d,o;for(d=0;12>d;d++)o=L([2e3,d]),t.push(this.monthsShort(o,'')),a.push(this.months(o,'')),n.push(this.months(o,'')),n.push(this.monthsShort(o,''));for(t.sort(e),a.sort(e),n.sort(e),d=0;12>d;d++)t[d]=K(t[d]),a[d]=K(a[d]);for(d=0;24>d;d++)n[d]=K(n[d]);this._monthsRegex=new RegExp('^('+n.join('|')+')','i'),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp('^('+a.join('|')+')','i'),this._monthsShortStrictRegex=new RegExp('^('+t.join('|')+')','i')}function ue(e,t,a,n,d,o,s){var i=new Date(e,t,a,n,d,o,s);return 100>e&&0<=e&&isFinite(i.getFullYear())&&i.setFullYear(e),i}function he(e){var t=new Date(Date.UTC.apply(null,arguments));return 100>e&&0<=e&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function ce(e,t,a){var n=7+t-a,d=(7+he(e,0,n).getUTCDay()-t)%7;return-d+n-1}function pe(e,t,a,n,d){var o=ce(e,n,d),s=1+7*(t-1)+(7+a-n)%7+o,i,r;return 0>=s?(i=e-1,r=ee(i)+s):s>ee(e)?(i=e+1,r=s-ee(e)):(i=e,r=s),{year:i,dayOfYear:r}}function ye(e,t,a){var n=ce(e.year(),t,a),d=y((e.dayOfYear()-n-1)/7)+1,o,s;return 1>d?(s=e.year()-1,o=d+ge(s,t,a)):d>ge(e.year(),t,a)?(o=d-ge(e.year(),t,a),s=e.year()+1):(s=e.year(),o=d),{week:o,year:s}}function ge(e,t,a){var n=ce(e,t,a),d=ce(e+1,t,a);return(ee(e)-n+d)/7}function fe(e,t){return'string'==typeof e?isNaN(e)?(e=t.weekdaysParse(e),'number'==typeof e?e:null):parseInt(e,10):e}function Me(e,t){return'string'==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Le(e,t,a){var n=e.toLocaleLowerCase(),d,o,s;if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],d=0;7>d;++d)s=L([2000,1]).day(d),this._minWeekdaysParse[d]=this.weekdaysMin(s,'').toLocaleLowerCase(),this._shortWeekdaysParse[d]=this.weekdaysShort(s,'').toLocaleLowerCase(),this._weekdaysParse[d]=this.weekdays(s,'').toLocaleLowerCase();return a?'dddd'===t?(o=Da.call(this._weekdaysParse,n),-1===o?null:o):'ddd'===t?(o=Da.call(this._shortWeekdaysParse,n),-1===o?null:o):(o=Da.call(this._minWeekdaysParse,n),-1===o?null:o):'dddd'===t?(o=Da.call(this._weekdaysParse,n),-1!==o)?o:(o=Da.call(this._shortWeekdaysParse,n),-1!==o)?o:(o=Da.call(this._minWeekdaysParse,n),-1===o?null:o):'ddd'===t?(o=Da.call(this._shortWeekdaysParse,n),-1!==o)?o:(o=Da.call(this._weekdaysParse,n),-1!==o)?o:(o=Da.call(this._minWeekdaysParse,n),-1===o?null:o):(o=Da.call(this._minWeekdaysParse,n),-1!==o)?o:(o=Da.call(this._weekdaysParse,n),-1!==o)?o:(o=Da.call(this._shortWeekdaysParse,n),-1===o?null:o)}function be(){function e(e,t){return t.length-e.length}var t=[],a=[],n=[],d=[],o,s,i,r,l;for(o=0;7>o;o++)s=L([2000,1]).day(o),i=this.weekdaysMin(s,''),r=this.weekdaysShort(s,''),l=this.weekdays(s,''),t.push(i),a.push(r),n.push(l),d.push(i),d.push(r),d.push(l);for(t.sort(e),a.sort(e),n.sort(e),d.sort(e),o=0;7>o;o++)a[o]=K(a[o]),n[o]=K(n[o]),d[o]=K(d[o]);this._weekdaysRegex=new RegExp('^('+d.join('|')+')','i'),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp('^('+n.join('|')+')','i'),this._weekdaysShortStrictRegex=new RegExp('^('+a.join('|')+')','i'),this._weekdaysMinStrictRegex=new RegExp('^('+t.join('|')+')','i')}function ke(){return this.hours()%12||12}function Ye(e,t){B(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function De(e,t){return t._meridiemParse}function xe(e){return e?e.toLowerCase().replace('_','-'):e}function _e(e){for(var t=0,a,n,d,o;t<e.length;){for(o=xe(e[t]).split('-'),a=o.length,n=xe(e[t+1]),n=n?n.split('-'):null;0<a;){if(d=Te(o.slice(0,a).join('-')),d)return d;if(n&&n.length>=a&&S(o,n,!0)>=a-1)break;a--}t++}return null}function Te(t){var a=null;if(!Ha[t]&&'undefined'!=typeof e&&e&&e.exports)try{a=Ra._abbr;n(205)('./'+t),ve(a)}catch(t){}return Ha[t]}function ve(e,t){var a;return e&&(a=r(t)?Se(e):we(e,t),a&&(Ra=a)),Ra._abbr}function we(e,t){if(null!==t){var a=Sa;if(t.abbr=e,null!=Ha[e])j('defineLocaleOverride','use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info.'),a=Ha[e]._config;else if(null!=t.parentLocale)if(null!=Ha[t.parentLocale])a=Ha[t.parentLocale]._config;else return Pa[t.parentLocale]||(Pa[t.parentLocale]=[]),Pa[t.parentLocale].push({name:e,config:t}),null;return Ha[e]=new E(A(a,t)),Pa[e]&&Pa[e].forEach(function(e){we(e.name,e.config)}),ve(e),Ha[e]}return delete Ha[e],null}function Se(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ra;if(!d(e)){if(t=Te(e),t)return t;e=[e]}return _e(e)}function He(e){var t=e._a,a;return t&&-2===k(e).overflow&&(a=0>t[pa]||11<t[pa]?pa:1>t[ya]||t[ya]>se(t[ca],t[pa])?ya:0>t[ga]||24<t[ga]||24===t[ga]&&(0!==t[fa]||0!==t[Ma]||0!==t[La])?ga:0>t[fa]||59<t[fa]?fa:0>t[Ma]||59<t[Ma]?Ma:0>t[La]||999<t[La]?La:-1,k(e)._overflowDayOfYear&&(a<ca||a>ya)&&(a=ya),k(e)._overflowWeeks&&-1===a&&(a=ba),k(e)._overflowWeekday&&-1===a&&(a=ka),k(e).overflow=a),e}function Pe(e,t,a){return null==e?null==t?a:t:e}function je(e){var a=new Date(t.now());return e._useUTC?[a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()]:[a.getFullYear(),a.getMonth(),a.getDate()]}function Oe(e){var t=[],a,n,d,o,s;if(!e._d){for(d=je(e),e._w&&null==e._a[ya]&&null==e._a[pa]&&Ae(e),null!=e._dayOfYear&&(s=Pe(e._a[ca],d[ca]),(e._dayOfYear>ee(s)||0===e._dayOfYear)&&(k(e)._overflowDayOfYear=!0),n=he(s,0,e._dayOfYear),e._a[pa]=n.getUTCMonth(),e._a[ya]=n.getUTCDate()),a=0;3>a&&null==e._a[a];++a)e._a[a]=t[a]=d[a];for(;7>a;a++)e._a[a]=t[a]=null==e._a[a]?2===a?1:0:e._a[a];24===e._a[ga]&&0===e._a[fa]&&0===e._a[Ma]&&0===e._a[La]&&(e._nextDay=!0,e._a[ga]=0),e._d=(e._useUTC?he:ue).apply(null,t),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ga]=24),e._w&&'undefined'!=typeof e._w.d&&e._w.d!==o&&(k(e).weekdayMismatch=!0)}}function Ae(e){var t,a,n,d,o,s,i,r;if(t=e._w,null!=t.GG||null!=t.W||null!=t.E)o=1,s=4,a=Pe(t.GG,e._a[ca],ye(Ze(),1,4).year),n=Pe(t.W,1),d=Pe(t.E,1),(1>d||7<d)&&(r=!0);else{o=e._locale._week.dow,s=e._locale._week.doy;var l=ye(Ze(),o,s);a=Pe(t.gg,e._a[ca],l.year),n=Pe(t.w,l.week),null==t.d?null==t.e?d=o:(d=t.e+o,(0>t.e||6<t.e)&&(r=!0)):(d=t.d,(0>d||6<d)&&(r=!0))}1>n||n>ge(a,o,s)?k(e)._overflowWeeks=!0:null==r?(i=pe(a,n,d,o,s),e._a[ca]=i.year,e._dayOfYear=i.dayOfYear):k(e)._overflowWeekday=!0}function Ee(e){var t=e._i,a=ja.exec(t)||Oa.exec(t),n,d,o,s,i,r;if(a){for(k(e).iso=!0,n=0,d=Ea.length;n<d;n++)if(Ea[n][1].exec(a[1])){s=Ea[n][0],o=!1!==Ea[n][2];break}if(null==s)return void(e._isValid=!1);if(a[3]){for(n=0,d=Ca.length;n<d;n++)if(Ca[n][1].exec(a[3])){i=(a[2]||' ')+Ca[n][0];break}if(null==i)return void(e._isValid=!1)}if(!o&&null!=i)return void(e._isValid=!1);if(a[4])if(Aa.exec(a[4]))r='Z';else return void(e._isValid=!1);e._f=s+(i||'')+(r||''),Ne(e)}else e._isValid=!1}function Ce(e,t,a,n,d,o){var s=[Fe(e),_a.indexOf(t),parseInt(a,10),parseInt(n,10),parseInt(d,10)];return o&&s.push(parseInt(o,10)),s}function Fe(e){var t=parseInt(e,10);return 49>=t?2e3+t:999>=t?1900+t:t}function We(e){return e.replace(/\([^)]*\)|[\n\t]/g,' ').replace(/(\s\s+)/g,' ').trim()}function Ie(e,t,a){if(e){var n=Ta.indexOf(e),d=new Date(t[0],t[1],t[2]).getDay();if(n!==d)return k(a).weekdayMismatch=!0,a._isValid=!1,!1}return!0}function Re(e,t,a){if(e)return Ia[e];if(t)return 0;var n=parseInt(a,10),d=n%100;return 60*((n-d)/100)+d}function ze(e){var t=Wa.exec(We(e._i));if(t){var a=Ce(t[4],t[3],t[2],t[5],t[6],t[7]);if(!Ie(t[1],a,e))return;e._a=a,e._tzm=Re(t[8],t[9],t[10]),e._d=he.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),k(e).rfc2822=!0}else e._isValid=!1}function Be(e){var a=Fa.exec(e._i);if(null!==a)return void(e._d=new Date(+a[1]));if(Ee(e),!1===e._isValid)delete e._isValid;else return;if(ze(e),!1===e._isValid)delete e._isValid;else return;t.createFromInputFallback(e)}function Ne(e){if(e._f===t.ISO_8601)return void Ee(e);if(e._f===t.RFC_2822)return void ze(e);e._a=[],k(e).empty=!0;var a=''+e._i,n=a.length,d=0,o,s,i,r,l;for(i=J(e._f,e._locale).match(Ut)||[],o=0;o<i.length;o++)r=i[o],s=(a.match(q(r,e))||[])[0],s&&(l=a.substr(0,a.indexOf(s)),0<l.length&&k(e).unusedInput.push(l),a=a.slice(a.indexOf(s)+s.length),d+=s.length),Gt[r]?(s?k(e).empty=!1:k(e).unusedTokens.push(r),$(r,s,e)):e._strict&&!s&&k(e).unusedTokens.push(r);k(e).charsLeftOver=n-d,0<a.length&&k(e).unusedInput.push(a),12>=e._a[ga]&&!0===k(e).bigHour&&0<e._a[ga]&&(k(e).bigHour=void 0),k(e).parsedDateParts=e._a.slice(0),k(e).meridiem=e._meridiem,e._a[ga]=Ue(e._locale,e._a[ga],e._meridiem),Oe(e),He(e)}function Ue(e,t,a){var n;return null==a?t:null==e.meridiemHour?null==e.isPM?t:(n=e.isPM(a),n&&12>t&&(t+=12),n||12!==t||(t=0),t):e.meridiemHour(t,a)}function Ve(e){var t,a,n,d,o;if(0===e._f.length)return k(e).invalidFormat=!0,void(e._d=new Date(NaN));for(d=0;d<e._f.length;d++)(o=0,t=x({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[d],Ne(t),!!Y(t))&&(o+=k(t).charsLeftOver,o+=10*k(t).unusedTokens.length,k(t).score=o,(null==n||o<n)&&(n=o,a=t));M(e,a||t)}function Je(e){if(!e._d){var t=W(e._i);e._a=g([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),Oe(e)}}function Ge(e){var t=new _(He(qe(e)));return t._nextDay&&(t.add(1,'d'),t._nextDay=void 0),t}function qe(e){var t=e._i,a=e._f;return(e._locale=e._locale||Se(e._l),null===t||void 0===a&&''===t)?D({nullInput:!0}):('string'==typeof t&&(e._i=t=e._locale.preparse(t)),T(t))?new _(He(t)):(i(t)?e._d=t:d(a)?Ve(e):a?Ne(e):Qe(e),Y(e)||(e._d=null),e)}function Qe(e){var a=e._i;r(a)?e._d=new Date(t.now()):i(a)?e._d=new Date(a.valueOf()):'string'==typeof a?Be(e):d(a)?(e._a=g(a.slice(0),function(e){return parseInt(e,10)}),Oe(e)):o(a)?Je(e):c(a)?e._d=new Date(a):t.createFromInputFallback(e)}function Ke(e,t,a,n,i){var r={};return(!0===a||!1===a)&&(n=a,a=void 0),(o(e)&&s(e)||d(e)&&0===e.length)&&(e=void 0),r._isAMomentObject=!0,r._useUTC=r._isUTC=i,r._l=a,r._i=e,r._f=t,r._strict=n,Ge(r)}function Ze(e,t,a,n){return Ke(e,t,a,n,!1)}function Xe(e,t){var a,n;if(1===t.length&&d(t[0])&&(t=t[0]),!t.length)return Ze();for(a=t[0],n=1;n<t.length;++n)(!t[n].isValid()||t[n][e](a))&&(a=t[n]);return a}function $e(e){for(var t in e)if(-1===Da.call(Na,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var a=!1,n=0;n<Na.length;++n)if(e[Na[n]]){if(a)return!1;parseFloat(e[Na[n]])!==w(e[Na[n]])&&(a=!0)}return!0}function et(e){var t=W(e),a=t.year||0,n=t.quarter||0,d=t.month||0,o=t.week||0,s=t.day||0,i=t.hour||0,r=t.minute||0,l=t.second||0,m=t.millisecond||0;this._isValid=$e(t),this._milliseconds=+m+1e3*l+6e4*r+60*(60*(1e3*i)),this._days=+s+7*o,this._months=+d+3*n+12*a,this._data={},this._locale=Se(),this._bubble()}function tt(e){return e instanceof et}function at(e){return 0>e?-1*a(-1*e):a(e)}function nt(e,t){B(e,0,0,function(){var e=this.utcOffset(),a='+';return 0>e&&(e=-e,a='-'),a+z(~~(e/60),2)+t+z(~~e%60,2)})}function dt(e,t){var a=(t||'').match(e);if(null===a)return null;var n=a[a.length-1]||[],d=(n+'').match(Ua)||['-',0,0],o=+(60*d[1])+w(d[2]);return 0===o?0:'+'===d[0]?o:-o}function ot(e,a){var n,d;return a._isUTC?(n=a.clone(),d=(T(e)||i(e)?e.valueOf():Ze(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+d),t.updateOffset(n,!1),n):Ze(e).local()}function st(e){return 15*-a(e._d.getTimezoneOffset()/15)}function it(){return!!this.isValid()&&this._isUTC&&0===this._offset}function rt(e,t){var a=e,n=null,d,o,s;return tt(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:c(e)?(a={},t?a[t]=e:a.milliseconds=e):(n=Va.exec(e))?(d='-'===n[1]?-1:1,a={y:0,d:w(n[ya])*d,h:w(n[ga])*d,m:w(n[fa])*d,s:w(n[Ma])*d,ms:w(at(1e3*n[La]))*d}):(n=Ja.exec(e))?(d='-'===n[1]?-1:'+'===n[1]?1:1,a={y:lt(n[2],d),M:lt(n[3],d),w:lt(n[4],d),d:lt(n[5],d),h:lt(n[6],d),m:lt(n[7],d),s:lt(n[8],d)}):null==a?a={}:'object'==typeof a&&('from'in a||'to'in a)&&(s=ut(Ze(a.from),Ze(a.to)),a={},a.ms=s.milliseconds,a.M=s.months),o=new et(a),tt(e)&&f(e,'_locale')&&(o._locale=e._locale),o}function lt(e,t){var a=e&&parseFloat(e.replace(',','.'));return(isNaN(a)?0:a)*t}function mt(e,t){var a={milliseconds:0,months:0};return a.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(a.months,'M').isAfter(t)&&--a.months,a.milliseconds=+t-+e.clone().add(a.months,'M'),a}function ut(e,t){var a;return e.isValid()&&t.isValid()?(t=ot(t,e),e.isBefore(t)?a=mt(e,t):(a=mt(t,e),a.milliseconds=-a.milliseconds,a.months=-a.months),a):{milliseconds:0,months:0}}function ht(e,t){return function(a,n){var d,o;return null===n||isNaN(+n)||(j(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=a,a=n,n=o),a='string'==typeof a?+a:a,d=rt(a,n),ct(this,d,e),this}}function ct(e,a,n,d){var o=a._milliseconds,s=at(a._days),i=at(a._months);e.isValid()&&(d=null==d||d,i&&re(e,ne(e,'Month')+i*n),s&&de(e,'Date',ne(e,'Date')+s*n),o&&e._d.setTime(e._d.valueOf()+o*n),d&&t.updateOffset(e,s||i))}function pt(e,t){var a=12*(t.year()-e.year())+(t.month()-e.month()),n=e.clone().add(a,'months'),d,o;return 0>t-n?(d=e.clone().add(a-1,'months'),o=(t-n)/(n-d)):(d=e.clone().add(a+1,'months'),o=(t-n)/(d-n)),-(a+o)||0}function yt(e){var t;return void 0===e?this._locale._abbr:(t=Se(e),null!=t&&(this._locale=t),this)}function gt(){return this._locale}function ft(e,t){B(0,[e,e.length],0,t)}function Mt(e,t,a,n,d){var o;return null==e?ye(this,n,d).year:(o=ge(e,n,d),t>o&&(t=o),Lt.call(this,e,t,a,n,d))}function Lt(e,t,a,n,d){var o=pe(e,t,a,n,d),s=he(o.year,0,o.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}function bt(e,t){t[La]=w(1e3*('0.'+e))}function kt(e){return e}function Yt(e,t,a,n){var d=Se(),o=L().set(n,t);return d[a](o,e)}function Dt(e,t,a){if(c(e)&&(t=e,e=void 0),e=e||'',null!=t)return Yt(e,t,a,'month');var n=[],d;for(d=0;12>d;d++)n[d]=Yt(e,d,a,'month');return n}function xt(e,t,a,n){'boolean'==typeof e?(c(t)&&(a=t,t=void 0),t=t||''):(t=e,a=t,e=!1,c(t)&&(a=t,t=void 0),t=t||'');var d=Se(),o=e?d._week.dow:0;if(null!=a)return Yt(t,(a+o)%7,n,'day');var s=[],r;for(r=0;7>r;r++)s[r]=Yt(t,(r+o)%7,n,'day');return s}function _t(e,t,a,n){var d=rt(t,a);return e._milliseconds+=n*d._milliseconds,e._days+=n*d._days,e._months+=n*d._months,e._bubble()}function Tt(e){return 0>e?y(e):h(e)}function vt(e){return 4800*e/146097}function wt(e){return 146097*e/4800}function St(e){return function(){return this.as(e)}}function Ht(e){return function(){return this.isValid()?this._data[e]:NaN}}function Pt(e,t,a,n,d){return d.relativeTime(t||1,!!a,e,n)}function jt(e,t,n){var d=rt(e).abs(),o=bn(d.as('s')),s=bn(d.as('m')),i=bn(d.as('h')),r=bn(d.as('d')),l=bn(d.as('M')),m=bn(d.as('y')),u=o<=kn.ss&&['s',o]||o<kn.s&&['ss',o]||1>=s&&['m']||s<kn.m&&['mm',s]||1>=i&&['h']||i<kn.h&&['hh',i]||1>=r&&['d']||r<kn.d&&['dd',r]||1>=l&&['M']||l<kn.M&&['MM',l]||1>=m&&['y']||['yy',m];return u[2]=t,u[3]=0<+e,u[4]=n,Pt.apply(null,u)}function Ot(e){return(0<e)-(0>e)||+e}function At(){if(!this.isValid())return this.localeData().invalidDate();var e=Yn(this._milliseconds)/1e3,t=Yn(this._days),a=Yn(this._months),n,d,o;n=v(e/60),d=v(n/60),e%=60,n%=60,o=v(a/12),a%=12;var i=o,r=a,l=t,u=d,h=n,m=e?e.toFixed(3).replace(/\.?0+$/,''):'',s=this.asSeconds();if(!s)return'P0D';var c=0>s?'-':'',p=Ot(this._months)===Ot(s)?'':'-',y=Ot(this._days)===Ot(s)?'':'-',g=Ot(this._milliseconds)===Ot(s)?'':'-';return c+'P'+(i?p+i+'Y':'')+(r?p+r+'M':'')+(l?y+l+'D':'')+(u||h||m?'T':'')+(u?g+u+'H':'')+(h?g+h+'M':'')+(m?g+m+'S':'')}var Et,Ct;Ct=Array.prototype.some?Array.prototype.some:function(e){for(var a=Object(this),t=a.length>>>0,n=0;n<t;n++)if(n in a&&e.call(this,a[n],n,a))return!0;return!1};var Ft=t.momentProperties=[],Wt=!1,It={};t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;var Rt=Object.keys?Object.keys:function(e){var t=[],a;for(a in e)f(e,a)&&t.push(a);return t};var zt=/\d{1,2}/,Bt={},Nt={},Ut=/(\[[^\[]*\])|(\\)?([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,Vt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Jt={},Gt={},qt=/\d/,Qt=/\d\d/,Kt=/\d{3}/,Zt=/\d{4}/,Xt=/[+-]?\d{6}/,$t=/\d\d?/,ea=/\d\d\d\d?/,ta=/\d\d\d\d\d\d?/,aa=/\d{1,3}/,na=/\d{1,4}/,da=/[+-]?\d{1,6}/,oa=/\d+/,sa=/[+-]?\d+/,ia=/Z|[+-]\d\d:?\d\d/gi,ra=/Z|[+-]\d\d(?::?\d\d)?/gi,la=/[+-]?\d+(\.\d{1,3})?/,ma=/[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,ua={},ha={},ca=0,pa=1,ya=2,ga=3,fa=4,Ma=5,La=6,ba=7,ka=8;B('Y',0,0,function(){var e=this.year();return 9999>=e?''+e:'+'+e}),B(0,['YY',2],0,function(){return this.year()%100}),B(0,['YYYY',4],0,'year'),B(0,['YYYYY',5],0,'year'),B(0,['YYYYYY',6,!0],0,'year'),C('year','y'),I('year',1),G('Y',sa),G('YY',$t,Qt),G('YYYY',na,Zt),G('YYYYY',da,Xt),G('YYYYYY',da,Xt),Z(['YYYYY','YYYYYY'],ca),Z('YYYY',function(e,a){a[ca]=2===e.length?t.parseTwoDigitYear(e):w(e)}),Z('YY',function(e,a){a[ca]=t.parseTwoDigitYear(e)}),Z('Y',function(e,t){t[ca]=parseInt(e,10)}),t.parseTwoDigitYear=function(e){return w(e)+(68<w(e)?1900:2e3)};var Ya=ae('FullYear',!0),Da;Da=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},B('M',['MM',2],'Mo',function(){return this.month()+1}),B('MMM',0,0,function(e){return this.localeData().monthsShort(this,e)}),B('MMMM',0,0,function(e){return this.localeData().months(this,e)}),C('month','M'),I('month',8),G('M',$t),G('MM',$t,Qt),G('MMM',function(e,t){return t.monthsShortRegex(e)}),G('MMMM',function(e,t){return t.monthsRegex(e)}),Z(['M','MM'],function(e,t){t[pa]=w(e)-1}),Z(['MMM','MMMM'],function(e,t,a,n){var d=a._locale.monthsParse(e,n,a._strict);null==d?k(a).invalidMonth=e:t[pa]=d});var xa=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,_a=['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'];B('w',['ww',2],'wo','week'),B('W',['WW',2],'Wo','isoWeek'),C('week','w'),C('isoWeek','W'),I('week',5),I('isoWeek',5),G('w',$t),G('ww',$t,Qt),G('W',$t),G('WW',$t,Qt),X(['w','ww','W','WW'],function(e,t,a,n){t[n.substr(0,1)]=w(e)});B('d',0,'do','day'),B('dd',0,0,function(e){return this.localeData().weekdaysMin(this,e)}),B('ddd',0,0,function(e){return this.localeData().weekdaysShort(this,e)}),B('dddd',0,0,function(e){return this.localeData().weekdays(this,e)}),B('e',0,0,'weekday'),B('E',0,0,'isoWeekday'),C('day','d'),C('weekday','e'),C('isoWeekday','E'),I('day',11),I('weekday',11),I('isoWeekday',11),G('d',$t),G('e',$t),G('E',$t),G('dd',function(e,t){return t.weekdaysMinRegex(e)}),G('ddd',function(e,t){return t.weekdaysShortRegex(e)}),G('dddd',function(e,t){return t.weekdaysRegex(e)}),X(['dd','ddd','dddd'],function(e,t,a,n){var d=a._locale.weekdaysParse(e,n,a._strict);null==d?k(a).invalidWeekday=e:t.d=d}),X(['d','e','E'],function(e,t,a,n){t[n]=w(e)});var Ta=['Sun','Mon','Tue','Wed','Thu','Fri','Sat'];B('H',['HH',2],0,'hour'),B('h',['hh',2],0,ke),B('k',['kk',2],0,function(){return this.hours()||24}),B('hmm',0,0,function(){return''+ke.apply(this)+z(this.minutes(),2)}),B('hmmss',0,0,function(){return''+ke.apply(this)+z(this.minutes(),2)+z(this.seconds(),2)}),B('Hmm',0,0,function(){return''+this.hours()+z(this.minutes(),2)}),B('Hmmss',0,0,function(){return''+this.hours()+z(this.minutes(),2)+z(this.seconds(),2)}),Ye('a',!0),Ye('A',!1),C('hour','h'),I('hour',13),G('a',De),G('A',De),G('H',$t),G('h',$t),G('k',$t),G('HH',$t,Qt),G('hh',$t,Qt),G('kk',$t,Qt),G('hmm',ea),G('hmmss',ta),G('Hmm',ea),G('Hmmss',ta),Z(['H','HH'],ga),Z(['k','kk'],function(e,t){var a=w(e);t[ga]=24===a?0:a}),Z(['a','A'],function(e,t,a){a._isPm=a._locale.isPM(e),a._meridiem=e}),Z(['h','hh'],function(e,t,a){t[ga]=w(e),k(a).bigHour=!0}),Z('hmm',function(e,t,a){var n=e.length-2;t[ga]=w(e.substr(0,n)),t[fa]=w(e.substr(n)),k(a).bigHour=!0}),Z('hmmss',function(e,t,a){var n=e.length-4,d=e.length-2;t[ga]=w(e.substr(0,n)),t[fa]=w(e.substr(n,2)),t[Ma]=w(e.substr(d)),k(a).bigHour=!0}),Z('Hmm',function(e,t){var a=e.length-2;t[ga]=w(e.substr(0,a)),t[fa]=w(e.substr(a))}),Z('Hmmss',function(e,t){var a=e.length-4,n=e.length-2;t[ga]=w(e.substr(0,a)),t[fa]=w(e.substr(a,2)),t[Ma]=w(e.substr(n))});var va=/[ap]\.?m?\.?/i,wa=ae('Hours',!0),Sa={calendar:{sameDay:'[Today at] LT',nextDay:'[Tomorrow at] LT',nextWeek:'dddd [at] LT',lastDay:'[Yesterday at] LT',lastWeek:'[Last] dddd [at] LT',sameElse:'L'},longDateFormat:{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'},invalidDate:'Invalid date',ordinal:'%d',dayOfMonthOrdinalParse:zt,relativeTime:{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'},months:['January','February','March','April','May','June','July','August','September','October','November','December'],monthsShort:_a,week:{dow:0,doy:6},weekdays:['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'],weekdaysMin:['Su','Mo','Tu','We','Th','Fr','Sa'],weekdaysShort:Ta,meridiemParse:va},Ha={},Pa={},ja=/^\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)?)?$/,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)?)?$/,Aa=/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}/]],Ca=[['HH:mm:ss.SSSS',/\d\d:\d\d:\d\d\.\d+/],['HH:mm:ss,SSSS',/\d\d:\d\d:\d\d,\d+/],['HH:mm:ss',/\d\d:\d\d:\d\d/],['HH:mm',/\d\d:\d\d/],['HHmmss.SSSS',/\d\d\d\d\d\d\.\d+/],['HHmmss,SSSS',/\d\d\d\d\d\d,\d+/],['HHmmss',/\d\d\d\d\d\d/],['HHmm',/\d\d\d\d/],['HH',/\d\d/]],Fa=/^\/?Date\((\-?\d+)/i,Wa=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{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}))$/,Ia={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480},Ra;t.createFromInputFallback=P('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 za=P('moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/',function(){var e=Ze.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:D()}),Ba=P('moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/',function(){var e=Ze.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:D()}),Na=['year','quarter','month','week','day','hour','minute','second','millisecond'];nt('Z',':'),nt('ZZ',''),G('Z',ra),G('ZZ',ra),Z(['Z','ZZ'],function(e,t,a){a._useUTC=!0,a._tzm=dt(ra,e)});var Ua=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var Va=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Ja=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;rt.fn=et.prototype,rt.invalid=function(){return rt(NaN)};var Ga=ht(1,'add'),qa=ht(-1,'subtract');t.defaultFormat='YYYY-MM-DDTHH:mm:ssZ',t.defaultFormatUtc='YYYY-MM-DDTHH:mm:ss[Z]';var Qa=P('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)});B(0,['gg',2],0,function(){return this.weekYear()%100}),B(0,['GG',2],0,function(){return this.isoWeekYear()%100}),ft('gggg','weekYear'),ft('ggggg','weekYear'),ft('GGGG','isoWeekYear'),ft('GGGGG','isoWeekYear'),C('weekYear','gg'),C('isoWeekYear','GG'),I('weekYear',1),I('isoWeekYear',1),G('G',sa),G('g',sa),G('GG',$t,Qt),G('gg',$t,Qt),G('GGGG',na,Zt),G('gggg',na,Zt),G('GGGGG',da,Xt),G('ggggg',da,Xt),X(['gggg','ggggg','GGGG','GGGGG'],function(e,t,a,n){t[n.substr(0,2)]=w(e)}),X(['gg','GG'],function(e,a,n,d){a[d]=t.parseTwoDigitYear(e)}),B('Q',0,'Qo','quarter'),C('quarter','Q'),I('quarter',7),G('Q',qt),Z('Q',function(e,t){t[pa]=3*(w(e)-1)}),B('D',['DD',2],'Do','date'),C('date','D'),I('date',9),G('D',$t),G('DD',$t,Qt),G('Do',function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),Z(['D','DD'],ya),Z('Do',function(e,t){t[ya]=w(e.match($t)[0])});var Ka=ae('Date',!0);B('DDD',['DDDD',3],'DDDo','dayOfYear'),C('dayOfYear','DDD'),I('dayOfYear',4),G('DDD',aa),G('DDDD',Kt),Z(['DDD','DDDD'],function(e,t,a){a._dayOfYear=w(e)}),B('m',['mm',2],0,'minute'),C('minute','m'),I('minute',14),G('m',$t),G('mm',$t,Qt),Z(['m','mm'],fa);var Za=ae('Minutes',!1);B('s',['ss',2],0,'second'),C('second','s'),I('second',15),G('s',$t),G('ss',$t,Qt),Z(['s','ss'],Ma);var Xa=ae('Seconds',!1);B('S',0,0,function(){return~~(this.millisecond()/100)}),B(0,['SS',2],0,function(){return~~(this.millisecond()/10)}),B(0,['SSS',3],0,'millisecond'),B(0,['SSSS',4],0,function(){return 10*this.millisecond()}),B(0,['SSSSS',5],0,function(){return 100*this.millisecond()}),B(0,['SSSSSS',6],0,function(){return 1e3*this.millisecond()}),B(0,['SSSSSSS',7],0,function(){return 1e4*this.millisecond()}),B(0,['SSSSSSSS',8],0,function(){return 1e5*this.millisecond()}),B(0,['SSSSSSSSS',9],0,function(){return 1e6*this.millisecond()}),C('millisecond','ms'),I('millisecond',16),G('S',aa,qt),G('SS',aa,Qt),G('SSS',aa,Kt);var $a;for($a='SSSS';9>=$a.length;$a+='S')G($a,oa);for($a='S';9>=$a.length;$a+='S')Z($a,bt);var en=ae('Milliseconds',!1);B('z',0,0,'zoneAbbr'),B('zz',0,0,'zoneName');var tn=_.prototype;tn.add=Ga,tn.calendar=function(e,a){var n=e||Ze(),d=ot(n,this).startOf('day'),o=t.calendarFormat(this,d)||'sameElse',s=a&&(O(a[o])?a[o].call(this,n):a[o]);return this.format(s||this.localeData().calendar(o,this,Ze(n)))},tn.clone=function(){return new _(this)},tn.diff=function(e,t,a){var n,d,o;return this.isValid()?(n=ot(e,this),!n.isValid())?NaN:(d=6e4*(n.utcOffset()-this.utcOffset()),t=F(t),(o='year'===t?pt(this,n)/12:'month'===t?pt(this,n):'quarter'===t?pt(this,n)/3:'second'===t?(this-n)/1e3:'minute'===t?(this-n)/6e4:'hour'===t?(this-n)/36e5:'day'===t?(this-n-d)/864e5:'week'===t?(this-n-d)/6048e5:this-n,a?o:v(o))):NaN},tn.endOf=function(e){return(e=F(e),void 0===e||'millisecond'===e)?this:('date'===e&&(e='day'),this.startOf(e).add(1,'isoWeek'===e?'week':e).subtract(1,'ms'))},tn.format=function(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var a=V(this,e);return this.localeData().postformat(a)},tn.from=function(e,t){return this.isValid()&&(T(e)&&e.isValid()||Ze(e).isValid())?rt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},tn.fromNow=function(e){return this.from(Ze(),e)},tn.to=function(e,t){return this.isValid()&&(T(e)&&e.isValid()||Ze(e).isValid())?rt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},tn.toNow=function(e){return this.to(Ze(),e)},tn.get=function(e){return e=F(e),O(this[e])?this[e]():this},tn.invalidAt=function(){return k(this).overflow},tn.isAfter=function(e,t){var a=T(e)?e:Ze(e);return this.isValid()&&a.isValid()&&(t=F(r(t)?'millisecond':t),'millisecond'===t?this.valueOf()>a.valueOf():a.valueOf()<this.clone().startOf(t).valueOf())},tn.isBefore=function(e,t){var a=T(e)?e:Ze(e);return this.isValid()&&a.isValid()&&(t=F(r(t)?'millisecond':t),'millisecond'===t?this.valueOf()<a.valueOf():this.clone().endOf(t).valueOf()<a.valueOf())},tn.isBetween=function(e,t,a,n){return n=n||'()',('('===n[0]?this.isAfter(e,a):!this.isBefore(e,a))&&(')'===n[1]?this.isBefore(t,a):!this.isAfter(t,a))},tn.isSame=function(e,t){var a=T(e)?e:Ze(e),n;return this.isValid()&&a.isValid()&&(t=F(t||'millisecond'),'millisecond'===t?this.valueOf()===a.valueOf():(n=a.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},tn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},tn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},tn.isValid=function(){return Y(this)},tn.lang=Qa,tn.locale=yt,tn.localeData=gt,tn.max=Ba,tn.min=za,tn.parsingFlags=function(){return M({},k(this))},tn.set=function(e,t){if('object'==typeof e){e=W(e);for(var a=R(e),n=0;n<a.length;n++)this[a[n].unit](e[a[n].unit])}else if(e=F(e),O(this[e]))return this[e](t);return this},tn.startOf=function(e){switch(e=F(e),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*y(this.month()/3)),this},tn.subtract=qa,tn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},tn.toObject=function(){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()}},tn.toDate=function(){return new Date(this.valueOf())},tn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,a=t?this.clone().utc():this;return 0>a.year()||9999<a.year()?V(a,t?'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]':'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ'):O(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this._d.valueOf()).toISOString().replace('Z',V(a,'Z')):V(a,t?'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]':'YYYY-MM-DD[T]HH:mm:ss.SSSZ')},tn.inspect=function(){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 a='['+e+'("]',n=0<=this.year()&&9999>=this.year()?'YYYY':'YYYYYY',d=t+'[")]';return this.format(a+n+'-MM-DD[T]HH:mm:ss.SSS'+d)},tn.toJSON=function(){return this.isValid()?this.toISOString():null},tn.toString=function(){return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ')},tn.unix=function(){return y(this.valueOf()/1e3)},tn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},tn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},tn.year=Ya,tn.isLeapYear=function(){return te(this.year())},tn.weekYear=function(e){return Mt.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},tn.isoWeekYear=function(e){return Mt.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},tn.quarter=tn.quarters=function(e){return null==e?h((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},tn.month=le,tn.daysInMonth=function(){return se(this.year(),this.month())},tn.week=tn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),'d')},tn.isoWeek=tn.isoWeeks=function(e){var t=ye(this,1,4).week;return null==e?t:this.add(7*(e-t),'d')},tn.weeksInYear=function(){var e=this.localeData()._week;return ge(this.year(),e.dow,e.doy)},tn.isoWeeksInYear=function(){return ge(this.year(),1,4)},tn.date=Ka,tn.day=tn.days=function(e){if(!this.isValid())return null==e?NaN:this;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null==e?t:(e=fe(e,this.localeData()),this.add(e-t,'d'))},tn.weekday=function(e){if(!this.isValid())return null==e?NaN:this;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,'d')},tn.isoWeekday=function(e){if(!this.isValid())return null==e?NaN:this;if(null!=e){var t=Me(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},tn.dayOfYear=function(e){var t=a((this.clone().startOf('day')-this.clone().startOf('year'))/864e5)+1;return null==e?t:this.add(e-t,'d')},tn.hour=tn.hours=wa,tn.minute=tn.minutes=Za,tn.second=tn.seconds=Xa,tn.millisecond=tn.milliseconds=en,tn.utcOffset=function(e,a,n){var d=this._offset||0,o;if(!this.isValid())return null==e?NaN:this;if(null!=e){if('string'!=typeof e)16>l(e)&&!n&&(e*=60);else if(e=dt(ra,e),null===e)return this;return!this._isUTC&&a&&(o=st(this)),this._offset=e,this._isUTC=!0,null!=o&&this.add(o,'m'),d!==e&&(!a||this._changeInProgress?ct(this,rt(e-d,'m'),1,!1):!this._changeInProgress&&(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?d:st(this)},tn.utc=function(e){return this.utcOffset(0,e)},tn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(st(this),'m')),this},tn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if('string'==typeof this._i){var e=dt(ia,this._i);null==e?this.utcOffset(0,!0):this.utcOffset(e)}return this},tn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Ze(e).utcOffset():0,0==(this.utcOffset()-e)%60)},tn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},tn.isLocal=function(){return!!this.isValid()&&!this._isUTC},tn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},tn.isUtc=it,tn.isUTC=it,tn.zoneAbbr=function(){return this._isUTC?'UTC':''},tn.zoneName=function(){return this._isUTC?'Coordinated Universal Time':''},tn.dates=P('dates accessor is deprecated. Use date instead.',Ka),tn.months=P('months accessor is deprecated. Use month instead',le),tn.years=P('years accessor is deprecated. Use year instead',Ya),tn.zone=P('moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/',function(e,t){return null==e?-this.utcOffset():('string'!=typeof e&&(e=-e),this.utcOffset(e,t),this)}),tn.isDSTShifted=P('isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information',function(){if(!r(this._isDSTShifted))return this._isDSTShifted;var e={};if(x(e,this),e=qe(e),e._a){var t=e._isUTC?L(e._a):Ze(e._a);this._isDSTShifted=this.isValid()&&0<S(e._a,t.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted});var an=E.prototype;an.calendar=function(e,t,a){var n=this._calendar[e]||this._calendar.sameElse;return O(n)?n.call(t,a):n},an.longDateFormat=function(e){var t=this._longDateFormat[e],a=this._longDateFormat[e.toUpperCase()];return t||!a?t:(this._longDateFormat[e]=a.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},an.invalidDate=function(){return this._invalidDate},an.ordinal=function(e){return this._ordinal.replace('%d',e)},an.preparse=kt,an.postformat=kt,an.relativeTime=function(e,t,a,n){var d=this._relativeTime[a];return O(d)?d(e,t,a,n):d.replace(/%d/i,e)},an.pastFuture=function(e,t){var a=this._relativeTime[0<e?'future':'past'];return O(a)?a(t):a.replace(/%s/i,t)},an.set=function(e){var t,a;for(a in e)t=e[a],O(t)?this[a]=t:this['_'+a]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+'|'+/\d{1,2}/.source)},an.months=function(e,t){return e?d(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||xa).test(t)?'format':'standalone'][e.month()]:d(this._months)?this._months:this._months.standalone},an.monthsShort=function(e,t){return e?d(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[xa.test(t)?'format':'standalone'][e.month()]:d(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},an.monthsParse=function(e,t,a){var n,d,o;if(this._monthsParseExact)return ie.call(this,e,t,a);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;12>n;n++){if(d=L([2e3,n]),a&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp('^'+this.months(d,'').replace('.','')+'$','i'),this._shortMonthsParse[n]=new RegExp('^'+this.monthsShort(d,'').replace('.','')+'$','i')),a||this._monthsParse[n]||(o='^'+this.months(d,'')+'|^'+this.monthsShort(d,''),this._monthsParse[n]=new RegExp(o.replace('.',''),'i')),a&&'MMMM'===t&&this._longMonthsParse[n].test(e))return n;if(a&&'MMM'===t&&this._shortMonthsParse[n].test(e))return n;if(!a&&this._monthsParse[n].test(e))return n}},an.monthsRegex=function(e){return this._monthsParseExact?(f(this,'_monthsRegex')||me.call(this),e?this._monthsStrictRegex:this._monthsRegex):(f(this,'_monthsRegex')||(this._monthsRegex=ma),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},an.monthsShortRegex=function(e){return this._monthsParseExact?(f(this,'_monthsRegex')||me.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(f(this,'_monthsShortRegex')||(this._monthsShortRegex=ma),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},an.week=function(e){return ye(e,this._week.dow,this._week.doy).week},an.firstDayOfYear=function(){return this._week.doy},an.firstDayOfWeek=function(){return this._week.dow},an.weekdays=function(e,t){return e?d(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?'format':'standalone'][e.day()]:d(this._weekdays)?this._weekdays:this._weekdays.standalone},an.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},an.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},an.weekdaysParse=function(e,t,a){var n,d,o;if(this._weekdaysParseExact)return Le.call(this,e,t,a);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;7>n;n++){if(d=L([2000,1]).day(n),a&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp('^'+this.weekdays(d,'').replace('.','.?')+'$','i'),this._shortWeekdaysParse[n]=new RegExp('^'+this.weekdaysShort(d,'').replace('.','.?')+'$','i'),this._minWeekdaysParse[n]=new RegExp('^'+this.weekdaysMin(d,'').replace('.','.?')+'$','i')),this._weekdaysParse[n]||(o='^'+this.weekdays(d,'')+'|^'+this.weekdaysShort(d,'')+'|^'+this.weekdaysMin(d,''),this._weekdaysParse[n]=new RegExp(o.replace('.',''),'i')),a&&'dddd'===t&&this._fullWeekdaysParse[n].test(e))return n;if(a&&'ddd'===t&&this._shortWeekdaysParse[n].test(e))return n;if(a&&'dd'===t&&this._minWeekdaysParse[n].test(e))return n;if(!a&&this._weekdaysParse[n].test(e))return n}},an.weekdaysRegex=function(e){return this._weekdaysParseExact?(f(this,'_weekdaysRegex')||be.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(f(this,'_weekdaysRegex')||(this._weekdaysRegex=ma),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},an.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(f(this,'_weekdaysRegex')||be.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(f(this,'_weekdaysShortRegex')||(this._weekdaysShortRegex=ma),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},an.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(f(this,'_weekdaysRegex')||be.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(f(this,'_weekdaysMinRegex')||(this._weekdaysMinRegex=ma),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},an.isPM=function(e){return'p'===(e+'').toLowerCase().charAt(0)},an.meridiem=function(e,t,a){return 11<e?a?'pm':'PM':a?'am':'AM'},ve('en',{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,a=1===w(e%100/10)?'th':1==t?'st':2==t?'nd':3==t?'rd':'th';return e+a}}),t.lang=P('moment.lang is deprecated. Use moment.locale instead.',ve),t.langData=P('moment.langData is deprecated. Use moment.localeData instead.',Se);var nn=l,dn=St('ms'),on=St('s'),sn=St('m'),rn=St('h'),ln=St('d'),mn=St('w'),un=St('M'),hn=St('y'),cn=Ht('milliseconds'),pn=Ht('seconds'),yn=Ht('minutes'),gn=Ht('hours'),fn=Ht('days'),Mn=Ht('months'),Ln=Ht('years'),bn=a,kn={ss:44,s:45,m:45,h:22,d:26,M:11},Yn=l,Dn=et.prototype;return Dn.isValid=function(){return this._isValid},Dn.abs=function(){var e=this._data;return this._milliseconds=nn(this._milliseconds),this._days=nn(this._days),this._months=nn(this._months),e.milliseconds=nn(e.milliseconds),e.seconds=nn(e.seconds),e.minutes=nn(e.minutes),e.hours=nn(e.hours),e.months=nn(e.months),e.years=nn(e.years),this},Dn.add=function(e,t){return _t(this,e,t,1)},Dn.subtract=function(e,t){return _t(this,e,t,-1)},Dn.as=function(e){if(!this.isValid())return NaN;var t=this._milliseconds,n,d;if(e=F(e),'month'===e||'year'===e)return n=this._days+t/864e5,d=this._months+vt(n),'month'===e?d:d/12;switch(n=this._days+a(wt(this._months)),e){case'week':return n/7+t/6048e5;case'day':return n+t/864e5;case'hour':return 24*n+t/36e5;case'minute':return 1440*n+t/6e4;case'second':return 86400*n+t/1e3;case'millisecond':return y(864e5*n)+t;default:throw new Error('Unknown unit '+e);}},Dn.asMilliseconds=dn,Dn.asSeconds=on,Dn.asMinutes=sn,Dn.asHours=rn,Dn.asDays=ln,Dn.asWeeks=mn,Dn.asMonths=un,Dn.asYears=hn,Dn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+2592e6*(this._months%12)+31536e6*w(this._months/12):NaN},Dn._bubble=function(){var e=this._milliseconds,t=this._days,a=this._months,n=this._data,d,o,s,i,r;return 0<=e&&0<=t&&0<=a||0>=e&&0>=t&&0>=a||(e+=864e5*Tt(wt(a)+t),t=0,a=0),n.milliseconds=e%1e3,d=v(e/1e3),n.seconds=d%60,o=v(d/60),n.minutes=o%60,s=v(o/60),n.hours=s%24,t+=v(s/24),r=v(vt(t)),a+=r,t-=Tt(wt(r)),i=v(a/12),a%=12,n.days=t,n.months=