varDateFormatter;!function(){"use strict";varD,s,n,a,r;D=function(e,t){return"string"==typeofe&&"string"==typeoft&&e.toLowerCase()===t.toLowerCase()},s=function(e,t,a){varr=a||"0",n=e.toString();returnn.length<t?s(r+n,t):n},n=function(e){vart,a;for(e=e||{},t=1;t<arguments.length;t++)if(a=arguments[t])for(varrina)a.hasOwnProperty(r)&&("object"==typeofa[r]?n(e[r],a[r]):e[r]=a[r]);returne},a=function(e,t){for(vara=0;a<t.length;a++)if(t[a].toLowerCase()===e.toLowerCase())returna;return-1},r={dateSettings:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],meridiem:["AM","PM"],ordinal:function(e){vart=e%10,a={1:"st",2:"nd",3:"rd"};return1!==Math.floor(e%100/10)&&a[t]?a[t]:"th"}},separators:/[ \-+\/\.T:@]/g,validParts:/[dDjlNSwzWFmMntLoYyaABgGhHisueTIOPZcrU]/g,intParts:/[djwNzmnyYhHgGis]/g,tzParts:/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,tzClip:/[^-+\dA-Z]/g},(DateFormatter=function(e){vart=this,a=n(r,e);t.dateSettings=a.dateSettings,t.separators=a.separators,t.validParts=a.validParts,t.intParts=a.intParts,t.tzParts=a.tzParts,t.tzClip=a.tzClip}).prototype={constructor:DateFormatter,getMonth:function(e){vart;return0===(t=a(e,this.dateSettings.monthsShort)+1)&&(t=a(e,this.dateSettings.months)+1),t},parseDate:function(e,t){vara,r,n,o,i,s,u,d,l,f,c=this,m=!1,h=!1,g=c.dateSettings,p={date:null,year:null,month:null,day:null,hour:0,min:0,sec:0};if(!e)returnnull;if(einstanceofDate)returne;if("U"===t)return(n=parseInt(e))?newDate(1e3*n):e;switch(typeofe){case"number":returnnewDate(e);case"string":break;default:returnnull}if(!(a=t.match(c.validParts))||0===a.length)thrownewError("Invalid date format definition.");for(r=e.replace(c.separators,"\0").split("\0"),n=0;n<r.length;n++)switch(o=r[n],i=parseInt(o),a[n]){case"y":case"Y":if(!i)returnnull;l=o.length,p.year=2===l?parseInt((i<70?"20":"19")+o):i,m=!0;break;case"m":case"n":case"M":case"F":if(isNaN(i)){if(!(0<(s=c.getMonth(o))))returnnull;p.month=s}else{if(!(1<=i&&i<=12))returnnull;p.month=i}m=!0;break;case"d":case"j":if(!(1<=i&&i<=31))returnnull;p.day=i,m=!0;break;case"g":case"h":if(f=r[u=-1<a.indexOf("a")?a.indexOf("a"):-1<a.indexOf("A")?a.indexOf("A"):-1],-1<u)d=D(f,g.meridiem[0])?0:D(f,g.meridiem[1])?12:-1,1<=i&&i<=12&&-1<d?p.hour=i+d-1:0<=i&&i<=23&&(p.hour=i);else{if(!(0<=i&&i<=23))returnnull;p.hour=i}h=!0;break;case"G":case"H":if(!(0<=i&&i<=23))returnnull;p.hour=i,h=!0;break;case"i":if(!(0<=i&&i<=59))returnnull;p.min=i,h=!0;break;case"s":if(!(0<=i&&i<=59))returnnull;p.sec=i,h=!0}if(!0===m&&p.year&&p.month&&p.day)p.date=newDate(p.year,p.month-1,p.day,p.hour,p.min,p.sec,0);else{if(!0!==h)returnnull;p.date=newDate(0,0,0,p.hour,p.min,p.sec,0)}returnp.date},guessDate:function(e,t){if("string"!=typeofe)returne;vara,r,n,o,i,s,u=e.replace(this.separators,"\0").split("\0"),d=t.match(this.validParts),l=newDate,f=0;if(!/^[djmn]/g.test(d[0]))returne;for(n=0;n<u.length;n++){if(f=2,i=u[n],s=parseInt(i.substr(0,2)),isNaN(s))returnnull;switch(n){case0:"m"===d[0]||"n"===d[0]?l.setMonth(s-1):l.setDate(s);break;case1:"m"===d[0]||"n"===d[0]?l.setDate(s):l.setMonth(s-1);break;case2:if(r=l.getFullYear(),f=(a=i.length)<4?a:4,!(r=parseInt(a<4?r.toString().substr(0,4-a)+i:i.substr(0,4))))returnnull;l.setFullYear(r);break;case3:l.setHours(s);break;case4:l.setMinutes(s);break;case5:l.setSeconds(s)}0<(o=i.substr(f)).length&&u.splice(n+1,0,o)}returnl},parseFormat:function(e,r){vara,t=this,n=t.dateSettings,o=/\\?(.?)/gi,i=function(e,t){returna[e]?a[e]():t};returna={d:function(){returns(a.j(),2)},D:function(){returnn.daysShort[a.w()]},j:function(){returnr.getDate()},l:function(){returnn.days[a.w()]},N:function(){returna.w()||7},w:function(){returnr.getDay()},z:function(){v