varDateFormatter;!function(){"use strict";vare,t,a,r,n,o,i;o=864e5,i=3600,e=function(e,t){return"string"==typeofe&&"string"==typeoft&&e.toLowerCase()===t.toLowerCase()},t=function(e,a,r){varn=r||"0",o=e.toString();returno.length<a?t(n+o,a):o},a=function(e){vart,r;for(e=e||{},t=1;t<arguments.length;t++)if(r=arguments[t])for(varninr)r.hasOwnProperty(n)&&("object"==typeofr[n]?a(e[n],r[n]):e[n]=r[n]);returne},r=function(e,t){for(vara=0;a<t.length;a++)if(t[a].toLowerCase()===e.toLowerCase())returna;return-1},n={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,r=a(n,e);t.dateSettings=r.dateSettings,t.separators=r.separators,t.validParts=r.validParts,t.intParts=r.intParts,t.tzParts=r.tzParts,t.tzClip=r.tzClip}).prototype={constructor:DateFormatter,getMonth:function(e){vart,a=this;return0===(t=r(e,a.dateSettings.monthsShort)+1)&&(t=r(e,a.dateSettings.months)+1),t},parseDate:function(t,a){varr,n,o,i,s,u,d,l,f,c,m=this,h=!1,g=!1,p=m.dateSettings,D={date:null,year:null,month:null,day:null,hour:0,min:0,sec:0};if(!t)returnnull;if(tinstanceofDate)returnt;if("U"===a)return(o=parseInt(t))?newDate(1e3*o):t;switch(typeoft){case"number":returnnewDate(t);case"string":break;default:returnnull}if(!(r=a.match(m.validParts))||0===r.length)thrownewError("Invalid date format definition.");for(n=t.replace(m.separators,"\0").split("\0"),o=0;o<n.length;o++)switch(i=n[o],s=parseInt(i),r[o]){case"y":case"Y":if(!s)returnnull;f=i.length,D.year=2===f?parseInt((70>s?"20":"19")+i):s,h=!0;break;case"m":case"n":case"M":case"F":if(isNaN(s)){if(!((u=m.getMonth(i))>0))returnnull;D.month=u}else{if(!(s>=1&&12>=s))returnnull;D.month=s}h=!0;break;case"d":case"j":if(!(s>=1&&31>=s))returnnull;D.day=s,h=!0;break;case"g":case"h":if(d=r.indexOf("a")>-1?r.indexOf("a"):r.indexOf("A")>-1?r.indexOf("A"):-1,c=n[d],d>-1)l=e(c,p.meridiem[0])?0:e(c,p.meridiem[1])?12:-1,s>=1&&12>=s&&l>-1?D.hour=s+l-1:s>=0&&23>=s&&(D.hour=s);else{if(!(s>=0&&23>=s))returnnull;D.hour=s}g=!0;break;case"G":case"H":if(!(s>=0&&23>=s))returnnull;D.hour=s,g=!0;break;case"i":if(!(s>=0&&59>=s))returnnull;D.min=s,g=!0;break;case"s":if(!(s>=0&&59>=s))returnnull;D.sec=s,g=!0}if(!0===h&&D.year&&D.month&&D.day)D.date=newDate(D.year,D.month-1,D.day,D.hour,D.min,D.sec,0);else{if(!0!==g)returnnull;D.date=newDate(0,0,0,D.hour,D.min,D.sec,0)}returnD.date},guessDate:function(e,t){if("string"!=typeofe)returne;vara,r,n,o,i,s,u=this,d=e.replace(u.separators,"\0").split("\0"),l=/^[djmn]/g,f=t.match(u.validParts),c=newDate,m=0;if(!l.test(f[0]))returne;for(n=0;n<d.length;n++){if(m=2,i=d[n],s=parseInt(i.substr(0,2)),isNaN(s))returnnull;switch(n){case0:"m"===f[0]||"n"===f[0]?c.setMonth(s-1):c.setDate(s);break;case1:"m"===f[0]||"n"===f[0]?c.setDate(s):c.setMonth(s-1);break;case2:if(r=c.getFullYear(),a=i.length,m=4>a?a:4,!(r=parseInt(4>a?r.toString().substr(0,4-a)+i:i.substr(0,4))))returnnull;c.setFullYear(r);break;case3:c.setHours(s);break;case4:c.setMinutes(s);break;case5:c.setSeconds(s)}(o=i.substr(m)).length>0&&d.splice(n+1,0,o)}returnc},parseFormat:function(e,a){varr,n=this,s=n.dateSettings,u=/\\?(.?)/gi,d=function(e,t){returnr[e]?r[e]():t};returnr={d:function(){returnt(r.j(),2)},D:function(){returns.daysShort[r.w()]},j:function(){returna.getDate()},l:function(){returns.days[r.w()]},N:function(){returnr.w()||7},w:function(){return