//>>built
define("dojox/date/posix",["dojo/_base/kernel","dojo/date","dojo/date/locale","dojo/string","dojo/cldr/supplemental"],function(w,r,k,x,u){var h=w.getObject("date.posix",!0,dojox);h.strftime=function(a,b,c){for(var d=null,e=function(l,y){return x.pad(l,y||2,d||"0")},z=k._getGregorianBundle(c),f=function(l){switch(l){case "a":return k.getNames("days","abbr","format",c)[a.getDay()];case "A":return k.getNames("days","wide","format",c)[a.getDay()];case "b":case "h":return k.getNames("months","abbr","format",
c)[a.getMonth()];case "B":return k.getNames("months","wide","format",c)[a.getMonth()];case "c":return k.format(a,{formatLength:"full",locale:c});case "C":return e(Math.floor(a.getFullYear()/100));case "d":return e(a.getDate());case "D":return f("m")+"/"+f("d")+"/"+f("y");case "e":return null==d&&(d=" "),e(a.getDate());case "f":return null==d&&(d=" "),e(a.getMonth()+1);case "F":return f("Y")+"-"+f("m")+"-"+f("d");case "H":return e(a.getHours());case "I":return e(a.getHours()%12||12);case "j":return e(k._getDayOfYear(a),
3);case "k":return null==d&&(d=" "),e(a.getHours());case "l":return null==d&&(d=" "),e(a.getHours()%12||12);case "m":return e(a.getMonth()+1);case "M":return e(a.getMinutes());case "n":return"\n";case "p":return z["dayPeriods-format-wide-"+(12>a.getHours()?"am":"pm")];case "r":return f("I")+":"+f("M")+":"+f("S")+" "+f("p");case "R":return f("H")+":"+f("M");case "S":return e(a.getSeconds());case "t":return"\t";case "T":return f("H")+":"+f("M")+":"+f("S");case "u":return String(a.getDay()||7);case "U":return e(k._getWeekOfYear(a));
case "V":return e(h.getIsoWeekOfYear(a));case "W":return e(k._getWeekOfYear(a,1));case "w":return String(a.getDay());case "x":return k.format(a,{selector:"date",formatLength:"full",locale:c});case "X":return k.format(a,{selector:"time",formatLength:"full",locale:c});case "y":return e(a.getFullYear()%100);case "Y":return String(a.getFullYear());case "z":return l=a.getTimezoneOffset(),(0<l?"-":"+")+e(Math.floor(Math.abs(l)/60))+":"+e(Math.abs(l)%60);case "Z":return r.getTimezoneName(a);case "%":return"%"}},
t="",g=0,n=0,m=null;-1!=(n=b.indexOf("%",g));){t+=b.substring(g,n++);switch(b.charAt(n++)){case "_":d=" ";break;case "-":d="";break;case "0":d="0";break;case "^":m="upper";break;case "*":m="lower";break;case "#":m="swap";break;default:d=null,n--}g=f(b.charAt(n++));switch(m){case "upper":g=g.toUpperCase();break;case "lower":g=g.toLowerCase();break;case "swap":m=g.toLowerCase();for(var v="",p="",q=0;q<g.length;q++)p=g.charAt(q),v+=p==m.charAt(q)?p.toUpperCase():p.toLowerCase();g=v}m=null;t+=g;g=n}return t+=
b.substring(g)};h.getStartOfWeek=function(a,b){isNaN(b)&&(b=u.getFirstDayOfWeek?u.getFirstDayOfWeek():0);var c=b;c=a.getDay()>=b?c-a.getDay():c-(7-a.getDay());var d=new Date(a);d.setHours(0,0,0,0);return r.add(d,"day",c)};h.setIsoWeekOfYear=function(a,b){if(!b)return a;var c=h.getIsoWeekOfYear(a),d=b-c;0>b&&(d=h.getIsoWeeksInYear(a)+b+1-c);return r.add(a,"week",d)};h.getIsoWeekOfYear=function(a){var b=h.getStartOfWeek(a,1);a=new Date(a.getFullYear(),0,4);a=h.getStartOfWeek(a,1);a=b.getTime()-a.getTime();
return 0>a?h.getIsoWeeksInYear(b):Math.ceil(a/6048E5)+1};h.getIsoWeeksInYear=function(a){function b(c){return c+Math.floor(c/4)-Math.floor(c/100)+Math.floor(c/400)}a=a.getFullYear();return 4==b(a)%7||3==b(a-1)%7?53:52};return h});