/* Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ /* This is an optimized version of Dojo, built for deployment and not for development. To get sources and documentation, please visit: http://dojotoolkit.org */ //>>built require({cache:{"dojox/dtl/_base":function(){define(["dojo/_base/kernel","dojo/_base/lang","dojox/string/tokenize","dojo/_base/json","dojo/dom","dojo/_base/xhr","dojox/string/Builder","dojo/_base/Deferred"],function(_1,_2,_3,_4,_5,_6,_7,_8){_1.experimental("dojox.dtl");var dd=_2.getObject("dojox.dtl",true);dd._base={};dd.TOKEN_BLOCK=-1;dd.TOKEN_VAR=-2;dd.TOKEN_COMMENT=-3;dd.TOKEN_TEXT=3;dd._Context=_2.extend(function(_9){if(_9){_2._mixin(this,_9);if(_9.get){this._getter=_9.get;delete this.get;}}},{push:function(){var _a=this;var _b=_2.delegate(this);_b.pop=function(){return _a;};return _b;},pop:function(){throw new Error("pop() called on empty Context");},get:function(_c,_d){var n=this._normalize;if(this._getter){var _e=this._getter(_c);if(_e!==undefined){return n(_e);}}if(this[_c]!==undefined){return n(this[_c]);}return _d;},_normalize:function(_f){if(_f instanceof Date){_f.year=_f.getFullYear();_f.month=_f.getMonth()+1;_f.day=_f.getDate();_f.date=_f.year+"-"+("0"+_f.month).slice(-2)+"-"+("0"+_f.day).slice(-2);_f.hour=_f.getHours();_f.minute=_f.getMinutes();_f.second=_f.getSeconds();_f.microsecond=_f.getMilliseconds();}return _f;},update:function(_10){var _11=this.push();if(_10){_2._mixin(this,_10);}return _11;}});var _12=/("(?:[^"\\]*(?:\\.[^"\\]*)*)"|'(?:[^'\\]*(?:\\.[^'\\]*)*)'|[^\s]+)/g;var _13=/\s+/g;var _14=function(_15,_16){_15=_15||_13;if(!(_15 instanceof RegExp)){_15=new RegExp(_15,"g");}if(!_15.global){throw new Error("You must use a globally flagged RegExp with split "+_15);}_15.exec("");var _17,_18=[],_19=0,i=0;while((_17=_15.exec(this))){_18.push(this.slice(_19,_15.lastIndex-_17[0].length));_19=_15.lastIndex;if(_16&&(++i>_16-1)){break;}}_18.push(this.slice(_19));return _18;};dd.Token=function(_1a,_1b){this.token_type=_1a;this.contents=new String(_2.trim(_1b));this.contents.split=_14;this.split=function(){return String.prototype.split.apply(this.contents,arguments);};};dd.Token.prototype.split_contents=function(_1c){var bit,_1d=[],i=0;_1c=_1c||999;while(i++<_1c&&(bit=_12.exec(this.contents))){bit=bit[0];if(bit.charAt(0)=="\""&&bit.slice(-1)=="\""){_1d.push("\""+bit.slice(1,-1).replace("\\\"","\"").replace("\\\\","\\")+"\"");}else{if(bit.charAt(0)=="'"&&bit.slice(-1)=="'"){_1d.push("'"+bit.slice(1,-1).replace("\\'","'").replace("\\\\","\\")+"'");}else{_1d.push(bit);}}}return _1d;};var ddt=dd.text={_get:function(_1e,_1f,_20){var _21=dd.register.get(_1e,_1f.toLowerCase(),_20);if(!_21){if(!_20){throw new Error("No tag found for "+_1f);}return null;}var fn=_21[1];var _22=_21[2];var _23;if(fn.indexOf(":")!=-1){_23=fn.split(":");fn=_23.pop();}var mod=_22;if(/\./.test(_22)){_22=_22.replace(/\./g,"/");}require([_22],function(){});var _24=_2.getObject(mod);return _24[fn||_1f]||_24[_1f+"_"]||_24[fn+"_"];},getTag:function(_25,_26){return ddt._get("tag",_25,_26);},getFilter:function(_27,_28){return ddt._get("filter",_27,_28);},getTemplate:function(_29){return new dd.Template(ddt.getTemplateString(_29));},getTemplateString:function(_2a){return _6._getText(_2a.toString())||"";},_resolveLazy:function(_2b,_2c,_2d){if(_2c){if(_2d){return _2d.fromJson(_6._getText(_2b))||{};}else{return dd.text.getTemplateString(_2b);}}else{return _6.get({handleAs:_2d?"json":"text",url:_2b});}},_resolveTemplateArg:function(arg,_2e){if(ddt._isTemplate(arg)){if(!_2e){var d=new _8();d.callback(arg);return d;}return arg;}return ddt._resolveLazy(arg,_2e);},_isTemplate:function(arg){return (arg===undefined)||(typeof arg=="string"&&(arg.match(/^\s*[<{]/)||arg.indexOf(" ")!=-1));},_resolveContextArg:function(arg,_2f){if(arg.constructor==Object){if(!_2f){var d=new _8;d.callback(arg);return d;}return arg;}return ddt._resolveLazy(arg,_2f,true);},_re:/(?:\{\{\s*(.+?)\s*\}\}|\{%\s*(load\s*)?(.+?)\s*%\})/g,tokenize:function(str){return _3(str,ddt._re,ddt._parseDelims);},_parseDelims:function(_30,_31,tag){if(_30){return [dd.TOKEN_VAR,_30];}else{if(_31){var _32=_2.trim(tag).split(/\s+/g);for(var i=0,_33;_33=_32[i];i++){if(/\./.test(_33)){_33=_33.replace(/\./g,"/");}require([_33]);}}else{return [dd.TOKEN_BLOCK,tag];}}}};dd.Template=_2.extend(function(_34,_35){var str=_35?_34:ddt._resolveTemplateArg(_34,true)||"";var _36=ddt.tokenize(str);var _37=new dd._Parser(_36);this.nodelist=_37.parse();},{update:function(_38,_39){return ddt._resolveContextArg(_39).addCallback(this,function(_3a){var _3b=this.render(new dd._Context(_3a));if(_38.forEach){_38.forEach(function(_3c){_3c.innerHTML=_3b;});}else{_5.byId(_38).innerHTML=_3b;}return this;});},render:function(_3d,_3e){_3e=_3e||this.getBuffer();_3d=_3d||new dd._Context({});return this.nodelist.render(_3d,_3e)+"";},getBuffer:function(){return new _7();}});var _3f=/\{\{\s*(.+?)\s*\}\}/g;dd.quickFilter=function(str){if(!str){return new dd._NodeList();}if(str.indexOf("{%")==-1){return new dd._QuickNodeList(_3(str,_3f,function(_40){return new dd._Filter(_40);}));}};dd._QuickNodeList=_2.extend(function(_41){this.contents=_41;},{render:function(_42,_43){for(var i=0,l=this.contents.length;i/g;var _80=/'/g;var _81=/"/g;dd._base.escape=function(_82){return dd.mark_safe(_82.replace(_7d,"&").replace(_7e,"<").replace(_7f,">").replace(_81,""").replace(_80,"'"));};dd._base.safe=function(_83){if(typeof _83=="string"){_83=new String(_83);}if(typeof _83=="object"){_83.safe=true;}return _83;};dd.mark_safe=dd._base.safe;dd.register.tags("dojox.dtl.tag",{"date":["now"],"logic":["if","for","ifequal","ifnotequal"],"loader":["extends","block","include","load","ssi"],"misc":["comment","debug","filter","firstof","spaceless","templatetag","widthratio","with"],"loop":["cycle","ifchanged","regroup"]});dd.register.filters("dojox.dtl.filter",{"dates":["date","time","timesince","timeuntil"],"htmlstrings":["linebreaks","linebreaksbr","removetags","striptags"],"integers":["add","get_digit"],"lists":["dictsort","dictsortreversed","first","join","length","length_is","random","slice","unordered_list"],"logic":["default","default_if_none","divisibleby","yesno"],"misc":["filesizeformat","pluralize","phone2numeric","pprint"],"strings":["addslashes","capfirst","center","cut","fix_ampersands","floatformat","iriencode","linenumbers","ljust","lower","make_list","rjust","slugify","stringformat","title","truncatewords","truncatewords_html","upper","urlencode","urlize","urlizetrunc","wordcount","wordwrap"]});dd.register.filters("dojox.dtl",{"_base":["escape","safe"]});return dd;});},"dojox/dtl/tag/loader":function(){define(["dojo/_base/lang","../_base","dojo/_base/array","dojo/_base/connect"],function(_84,dd,_85,_86){_84.getObject("dojox.dtl.tag.loader",true);var _87=dd.tag.loader;_87.BlockNode=_84.extend(function(_88,_89){this.name=_88;this.nodelist=_89;},{"super":function(){if(this.parent){var _8a=this.parent.nodelist.dummyRender(this.context,null,true);if(typeof _8a=="string"){_8a=new String(_8a);}_8a.safe=true;return _8a;}return "";},render:function(_8b,_8c){var _8d=this.name;var _8e=this.nodelist;var _8f;if(_8c.blocks){var _90=_8c.blocks[_8d];if(_90){_8f=_90.parent;_8e=_90.nodelist;_90.used=true;}}this.rendered=_8e;_8b=_8b.push();this.context=_8b;this.parent=null;if(_8e!=this.nodelist){this.parent=this;}_8b.block=this;if(_8c.getParent){var _91=_8c.getParent();var _92=_86.connect(_8c,"onSetParent",function(_93,up,_94){if(up&&_94){_8c.setParent(_91);}});}_8c=_8e.render(_8b,_8c,this);_92&&_86.disconnect(_92);_8b=_8b.pop();return _8c;},unrender:function(_95,_96){return this.rendered.unrender(_95,_96);},clone:function(_97){return new this.constructor(this.name,this.nodelist.clone(_97));},toString:function(){return "dojox.dtl.tag.loader.BlockNode";}});_87.ExtendsNode=_84.extend(function(_98,_99,_9a,_9b,key){this.getTemplate=_98;this.nodelist=_99;this.shared=_9a;this.parent=_9b;this.key=key;},{parents:{},getParent:function(_9c){var _9d=this.parent;if(!_9d){var _9e;_9d=this.parent=_9c.get(this.key,false);if(!_9d){throw new Error("extends tag used a variable that did not resolve");}if(typeof _9d=="object"){var url=_9d.url||_9d.templatePath;if(_9d.shared){this.shared=true;}if(url){_9d=this.parent=url.toString();}else{if(_9d.templateString){_9e=_9d.templateString;_9d=this.parent=" ";}else{_9d=this.parent=this.parent.toString();}}}if(_9d&&_9d.indexOf("shared:")===0){this.shared=true;_9d=this.parent=_9d.substring(7,_9d.length);}}if(!_9d){throw new Error("Invalid template name in 'extends' tag.");}if(_9d.render){return _9d;}if(this.parents[_9d]){return this.parents[_9d];}this.parent=this.getTemplate(_9e||dojox.dtl.text.getTemplateString(_9d));if(this.shared){this.parents[_9d]=this.parent;}return this.parent;},render:function(_9f,_a0){var _a1=this.getParent(_9f);_a1.blocks=_a1.blocks||{};_a0.blocks=_a0.blocks||{};for(var i=0,_a2;_a2=this.nodelist.contents[i];i++){if(_a2 instanceof dojox.dtl.tag.loader.BlockNode){var old=_a1.blocks[_a2.name];if(old&&old.nodelist!=_a2.nodelist){_a0=old.nodelist.unrender(_9f,_a0);}_a1.blocks[_a2.name]=_a0.blocks[_a2.name]={shared:this.shared,nodelist:_a2.nodelist,used:false};}}this.rendered=_a1;return _a1.nodelist.render(_9f,_a0,this);},unrender:function(_a3,_a4){return this.rendered.unrender(_a3,_a4,this);},toString:function(){return "dojox.dtl.block.ExtendsNode";}});_87.IncludeNode=_84.extend(function(_a5,_a6,_a7,_a8,_a9){this._path=_a5;this.constant=_a6;this.path=(_a6)?_a5:new dd._Filter(_a5);this.getTemplate=_a7;this.text=_a8;this.parsed=(arguments.length==5)?_a9:true;},{_cache:[{},{}],render:function(_aa,_ab){var _ac=((this.constant)?this.path:this.path.resolve(_aa)).toString();var _ad=Number(this.parsed);var _ae=false;if(_ac!=this.last){_ae=true;if(this.last){_ab=this.unrender(_aa,_ab);}this.last=_ac;}var _af=this._cache[_ad];if(_ad){if(!_af[_ac]){_af[_ac]=dd.text._resolveTemplateArg(_ac,true);}if(_ae){var _b0=this.getTemplate(_af[_ac]);this.rendered=_b0.nodelist;}return this.rendered.render(_aa,_ab,this);}else{if(this.text instanceof dd._TextNode){if(_ae){this.rendered=this.text;this.rendered.set(dd.text._resolveTemplateArg(_ac,true));}return this.rendered.render(_aa,_ab);}else{if(!_af[_ac]){var _b1=[];var div=document.createElement("div");div.innerHTML=dd.text._resolveTemplateArg(_ac,true);var _b2=div.childNodes;while(_b2.length){var _b3=div.removeChild(_b2[0]);_b1.push(_b3);}_af[_ac]=_b1;}if(_ae){this.nodelist=[];var _b4=true;for(var i=0,_b5;_b5=_af[_ac][i];i++){this.nodelist.push(_b5.cloneNode(true));}}for(var i=0,_b6;_b6=this.nodelist[i];i++){_ab=_ab.concat(_b6);}}}return _ab;},unrender:function(_b7,_b8){if(this.rendered){_b8=this.rendered.unrender(_b7,_b8);}if(this.nodelist){for(var i=0,_b9;_b9=this.nodelist[i];i++){_b8=_b8.remove(_b9);}}return _b8;},clone:function(_ba){return new this.constructor(this._path,this.constant,this.getTemplate,this.text.clone(_ba),this.parsed);}});_84.mixin(_87,{block:function(_bb,_bc){var _bd=_bc.contents.split();var _be=_bd[1];_bb._blocks=_bb._blocks||{};_bb._blocks[_be]=_bb._blocks[_be]||[];_bb._blocks[_be].push(_be);var _bf=_bb.parse(["endblock","endblock "+_be]).rtrim();_bb.next_token();return new dojox.dtl.tag.loader.BlockNode(_be,_bf);},extends_:function(_c0,_c1){var _c2=_c1.contents.split();var _c3=false;var _c4=null;var key=null;if(_c2[1].charAt(0)=="\""||_c2[1].charAt(0)=="'"){_c4=_c2[1].substring(1,_c2[1].length-1);}else{key=_c2[1];}if(_c4&&_c4.indexOf("shared:")==0){_c3=true;_c4=_c4.substring(7,_c4.length);}var _c5=_c0.parse();return new dojox.dtl.tag.loader.ExtendsNode(_c0.getTemplate,_c5,_c3,_c4,key);},include:function(_c6,_c7){var _c8=_c7.contents.split();if(_c8.length!=2){throw new Error(_c8[0]+" tag takes one argument: the name of the template to be included");}var _c9=_c8[1];var _ca=false;if((_c9.charAt(0)=="\""||_c9.slice(-1)=="'")&&_c9.charAt(0)==_c9.slice(-1)){_c9=_c9.slice(1,-1);_ca=true;}return new _87.IncludeNode(_c9,_ca,_c6.getTemplate,_c6.create_text_node());},ssi:function(_cb,_cc){var _cd=_cc.contents.split();var _ce=false;if(_cd.length==3){_ce=(_cd.pop()=="parsed");if(!_ce){throw new Error("Second (optional) argument to ssi tag must be 'parsed'");}}var _cf=_87.include(_cb,new dd.Token(_cc.token_type,_cd.join(" ")));_cf.parsed=_ce;return _cf;}});return dojox.dtl.tag.loader;});},"dojo/date":function(){define(["./has","./_base/lang"],function(has,_d0){var _d1={};_d1.getDaysInMonth=function(_d2){var _d3=_d2.getMonth();var _d4=[31,28,31,30,31,30,31,31,30,31,30,31];if(_d3==1&&_d1.isLeapYear(_d2)){return 29;}return _d4[_d3];};_d1.isLeapYear=function(_d5){var _d6=_d5.getFullYear();return !(_d6%400)||(!(_d6%4)&&!!(_d6%100));};_d1.getTimezoneName=function(_d7){var str=_d7.toString();var tz="";var _d8;var pos=str.indexOf("(");if(pos>-1){tz=str.substring(++pos,str.indexOf(")"));}else{var pat=/([A-Z\/]+) \d{4}$/;if((_d8=str.match(pat))){tz=_d8[1];}else{str=_d7.toLocaleString();pat=/ ([A-Z\/]+)$/;if((_d8=str.match(pat))){tz=_d8[1];}}}return (tz=="AM"||tz=="PM")?"":tz;};_d1.compare=function(_d9,_da,_db){_d9=new Date(+_d9);_da=new Date(+(_da||new Date()));if(_db=="date"){_d9.setHours(0,0,0,0);_da.setHours(0,0,0,0);}else{if(_db=="time"){_d9.setFullYear(0,0,0);_da.setFullYear(0,0,0);}}if(_d9>_da){return 1;}if(_d9<_da){return -1;}return 0;};_d1.add=function(_dc,_dd,_de){var sum=new Date(+_dc);var _df=false;var _e0="Date";switch(_dd){case "day":break;case "weekday":var _e1,_e2;var mod=_de%5;if(!mod){_e1=(_de>0)?5:-5;_e2=(_de>0)?((_de-5)/5):((_de+5)/5);}else{_e1=mod;_e2=parseInt(_de/5);}var _e3=_dc.getDay();var adj=0;if(_e3==6&&_de>0){adj=1;}else{if(_e3==0&&_de<0){adj=-1;}}var _e4=_e3+_e1;if(_e4==0||_e4==6){adj=(_de>0)?2:-2;}_de=(7*_e2)+_e1+adj;break;case "year":_e0="FullYear";_df=true;break;case "week":_de*=7;break;case "quarter":_de*=3;case "month":_df=true;_e0="Month";break;default:_e0="UTC"+_dd.charAt(0).toUpperCase()+_dd.substring(1)+"s";}if(_e0){sum["set"+_e0](sum["get"+_e0]()+_de);}if(_df&&(sum.getDate()<_dc.getDate())){sum.setDate(0);}return sum;};_d1.difference=function(_e5,_e6,_e7){_e6=_e6||new Date();_e7=_e7||"day";var _e8=_e6.getFullYear()-_e5.getFullYear();var _e9=1;switch(_e7){case "quarter":var m1=_e5.getMonth();var m2=_e6.getMonth();var q1=Math.floor(m1/3)+1;var q2=Math.floor(m2/3)+1;q2+=(_e8*4);_e9=q2-q1;break;case "weekday":var _ea=Math.round(_d1.difference(_e5,_e6,"day"));var _eb=parseInt(_d1.difference(_e5,_e6,"week"));var mod=_ea%7;if(mod==0){_ea=_eb*5;}else{var adj=0;var _ec=_e5.getDay();var _ed=_e6.getDay();_eb=parseInt(_ea/7);mod=_ea%7;var _ee=new Date(_e5);_ee.setDate(_ee.getDate()+(_eb*7));var _ef=_ee.getDay();if(_ea>0){switch(true){case _ec==6:adj=-1;break;case _ec==0:adj=0;break;case _ed==6:adj=-1;break;case _ed==0:adj=-2;break;case (_ef+mod)>5:adj=-2;}}else{if(_ea<0){switch(true){case _ec==6:adj=0;break;case _ec==0:adj=1;break;case _ed==6:adj=2;break;case _ed==0:adj=1;break;case (_ef+mod)<0:adj=2;}}}_ea+=adj;_ea-=(_eb*2);}_e9=_ea;break;case "year":_e9=_e8;break;case "month":_e9=(_e6.getMonth()-_e5.getMonth())+(_e8*12);break;case "week":_e9=parseInt(_d1.difference(_e5,_e6,"day")/7);break;case "day":_e9/=24;case "hour":_e9/=60;case "minute":_e9/=60;case "second":_e9/=1000;case "millisecond":_e9*=_e6.getTime()-_e5.getTime();}return Math.round(_e9);};1&&_d0.mixin(_d0.getObject("dojo.date",true),_d1);return _d1;});},"dojox/date/php":function(){define(["dojo/_base/kernel","dojo/_base/lang","dojo/date","dojox/string/tokenize"],function(_f0,_f1,_f2,_f3){_f0.getObject("date.php",true,dojox);dojox.date.php.format=function(_f4,_f5){var df=new dojox.date.php.DateFormat(_f5);return df.format(_f4);};dojox.date.php.DateFormat=function(_f6){if(!this.regex){var _f7=[];for(var key in this.constructor.prototype){if(_f0.isString(key)&&key.length==1&&_f0.isFunction(this[key])){_f7.push(key);}}this.constructor.prototype.regex=new RegExp("(?:(\\\\.)|(["+_f7.join("")+"]))","g");}var _f8=[];this.tokens=_f3(_f6,this.regex,function(_f9,_fa,i){if(_fa){_f8.push([i,_fa]);return _fa;}if(_f9){return _f9.charAt(1);}});this.replacements=_f8;};_f0.extend(dojox.date.php.DateFormat,{weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdays_3:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],months_3:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],monthdays:[31,28,31,30,31,30,31,31,30,31,30,31],format:function(_fb){this.date=_fb;for(var i=0,_fc;_fc=this.replacements[i];i++){this.tokens[_fc[0]]=this[_fc[1]]();}return this.tokens.join("");},d:function(){var j=this.j();return (j.length==1)?"0"+j:j;},D:function(){return this.weekdays_3[this.date.getDay()];},j:function(){return this.date.getDate()+"";},l:function(){return this.weekdays[this.date.getDay()];},N:function(){var w=this.w();return (!w)?7:w;},S:function(){switch(this.date.getDate()){case 11:case 12:case 13:return "th";case 1:case 21:case 31:return "st";case 2:case 22:return "nd";case 3:case 23:return "rd";default:return "th";}},w:function(){return this.date.getDay()+"";},z:function(){var _fd=this.date.getTime()-new Date(this.date.getFullYear(),0,1).getTime();return Math.floor(_fd/86400000)+"";},W:function(){var _fe;var _ff=new Date(this.date.getFullYear(),0,1).getDay()+1;var w=this.date.getDay()+1;var z=parseInt(this.z());if(z<=(8-_ff)&&_ff>4){var _100=new Date(this.date.getFullYear()-1,this.date.getMonth(),this.date.getDate());if(_ff==5||(_ff==6&&_f2.isLeapYear(_100))){_fe=53;}else{_fe=52;}}else{var i;if(Boolean(this.L())){i=366;}else{i=365;}if((i-z)<(4-w)){_fe=1;}else{var j=z+(7-w)+(_ff-1);_fe=Math.ceil(j/7);if(_ff>4){--_fe;}}}return _fe;},F:function(){return this.months[this.date.getMonth()];},m:function(){var n=this.n();return (n.length==1)?"0"+n:n;},M:function(){return this.months_3[this.date.getMonth()];},n:function(){return this.date.getMonth()+1+"";},t:function(){return (Boolean(this.L())&&this.date.getMonth()==1)?29:this.monthdays[this.getMonth()];},L:function(){return (_f2.isLeapYear(this.date))?"1":"0";},o:function(){},Y:function(){return this.date.getFullYear()+"";},y:function(){return this.Y().slice(-2);},a:function(){return this.date.getHours()>=12?"pm":"am";},b:function(){return this.a().toUpperCase();},B:function(){var off=this.date.getTimezoneOffset()+60;var secs=(this.date.getHours()*3600)+(this.date.getMinutes()*60)+this.getSeconds()+(off*60);var beat=Math.abs(Math.floor(secs/86.4)%1000)+"";while(beat.length<2){beat="0"+beat;}return beat;},g:function(){return (this.date.getHours()%12||12)+"";},G:function(){return this.date.getHours()+"";},h:function(){var g=this.g();return (g.length==1)?"0"+g:g;},H:function(){var G=this.G();return (G.length==1)?"0"+G:G;},i:function(){var mins=this.date.getMinutes()+"";return (mins.length==1)?"0"+mins:mins;},s:function(){var secs=this.date.getSeconds()+"";return (secs.length==1)?"0"+secs:secs;},e:function(){return _f2.getTimezoneName(this.date);},I:function(){},O:function(){var off=Math.abs(this.date.getTimezoneOffset());var _101=Math.floor(off/60)+"";var mins=(off%60)+"";if(_101.length==1){_101="0"+_101;}if(mins.length==1){_101="0"+mins;}return ((this.date.getTimezoneOffset()<0)?"+":"-")+_101+mins;},P:function(){var O=this.O();return O.substring(0,2)+":"+O.substring(2,4);},T:function(){return this.e().substring(0,3);},Z:function(){return this.date.getTimezoneOffset()*-60;},c:function(){return this.Y()+"-"+this.m()+"-"+this.d()+"T"+this.h()+":"+this.i()+":"+this.s()+this.P();},r:function(){return this.D()+", "+this.d()+" "+this.M()+" "+this.Y()+" "+this.H()+":"+this.i()+":"+this.s()+" "+this.O();},U:function(){return Math.floor(this.date.getTime()/1000);}});return dojox.date.php;});},"dojox/dtl/ext-dojo/NodeList":function(){define(["dojo/_base/lang","dojo/query","../_base"],function(lang,_102,dd){var nl=lang.getObject("dojox.dtl.ext-dojo.NodeList",true);var _103=_102.NodeList;lang.extend(_103,{dtl:function(_104,_105){var d=dd,self=this;var _106=function(_107,_108){var _109=_107.render(new d._Context(_108));self.forEach(function(node){node.innerHTML=_109;});};d.text._resolveTemplateArg(_104).addCallback(function(_10a){_104=new d.Template(_10a);d.text._resolveContextArg(_105).addCallback(function(_10b){_106(_104,_10b);});});return this;}});return _103;});},"dojox/dtl/utils/date":function(){define(["dojo/_base/lang","dojox/date/php","../_base"],function(lang,ddp,dd){lang.getObject("dojox.dtl.utils.date",true);dd.utils.date.DateFormat=ddp.DateFormat;lang.extend(dd.utils.date.DateFormat,ddp.DateFormat.prototype,{f:function(){return (!this.date.getMinutes())?this.g():this.g()+":"+this.i();},N:function(){return dojox.dtl.utils.date._months_ap[this.date.getMonth()];},P:function(){if(!this.date.getMinutes()&&!this.date.getHours()){return "midnight";}if(!this.date.getMinutes()&&this.date.getHours()==12){return "noon";}return this.f()+" "+this.a();}});lang.mixin(dojox.dtl.utils.date,{format:function(date,_10c){var df=new dojox.dtl.utils.date.DateFormat(_10c);return df.format(date);},timesince:function(d,now){if(!(d instanceof Date)){d=new Date(d.year,d.month,d.day);}if(!now){now=new Date();}var _10d=Math.abs(now.getTime()-d.getTime());for(var i=0,_10e;_10e=dojox.dtl.utils.date._chunks[i];i++){var _10f=Math.floor(_10d/_10e[0]);if(_10f){break;}}return _10f+" "+_10e[1](_10f);},_chunks:[[60*60*24*365*1000,function(n){return (n==1)?"year":"years";}],[60*60*24*30*1000,function(n){return (n==1)?"month":"months";}],[60*60*24*7*1000,function(n){return (n==1)?"week":"weeks";}],[60*60*24*1000,function(n){return (n==1)?"day":"days";}],[60*60*1000,function(n){return (n==1)?"hour":"hours";}],[60*1000,function(n){return (n==1)?"minute":"minutes";}]],_months_ap:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."]});return dojox.dtl.utils.date;});},"dojox/dtl/tag/loop":function(){define(["dojo/_base/lang","dojo/_base/array","dojo/_base/json","../_base","dojox/string/tokenize"],function(lang,_110,json,dd,_111){lang.getObject("dojox.dtl.tag.loop",true);var ddtl=dd.tag.loop;ddtl.CycleNode=lang.extend(function(_112,name,text,_113){this.cyclevars=_112;this.name=name;this.contents=text;this.shared=_113||{counter:-1,map:{}};},{render:function(_114,_115){if(_114.forloop&&!_114.forloop.counter0){this.shared.counter=-1;}++this.shared.counter;var _116=this.cyclevars[this.shared.counter%this.cyclevars.length];var map=this.shared.map;if(!map[_116]){map[_116]=new dd._Filter(_116);}_116=map[_116].resolve(_114,_115);if(this.name){_114[this.name]=_116;}this.contents.set(_116);return this.contents.render(_114,_115);},unrender:function(_117,_118){return this.contents.unrender(_117,_118);},clone:function(_119){return new this.constructor(this.cyclevars,this.name,this.contents.clone(_119),this.shared);}});ddtl.IfChangedNode=lang.extend(function(_11a,vars,_11b){this.nodes=_11a;this._vars=vars;this.shared=_11b||{last:null,counter:0};this.vars=_110.map(vars,function(item){return new dojox.dtl._Filter(item);});},{render:function(_11c,_11d){if(_11c.forloop){if(_11c.forloop.counter<=this.shared.counter){this.shared.last=null;}this.shared.counter=_11c.forloop.counter;}var _11e;if(this.vars.length){_11e=json.toJson(_110.map(this.vars,function(item){return item.resolve(_11c);}));}else{_11e=this.nodes.dummyRender(_11c,_11d);}if(_11e!=this.shared.last){var _11f=(this.shared.last===null);this.shared.last=_11e;_11c=_11c.push();_11c.ifchanged={firstloop:_11f};_11d=this.nodes.render(_11c,_11d);_11c=_11c.pop();}else{_11d=this.nodes.unrender(_11c,_11d);}return _11d;},unrender:function(_120,_121){return this.nodes.unrender(_120,_121);},clone:function(_122){return new this.constructor(this.nodes.clone(_122),this._vars,this.shared);}});ddtl.RegroupNode=lang.extend(function(_123,key,_124){this._expression=_123;this.expression=new dd._Filter(_123);this.key=key;this.alias=_124;},{_push:function(_125,_126,_127){if(_127.length){_125.push({grouper:_126,list:_127});}},render:function(_128,_129){_128[this.alias]=[];var list=this.expression.resolve(_128);if(list){var last=null;var _12a=[];for(var i=0;i4&&args[args.length-2]=="as"){var name=args[args.length-1];var node=new ddtl.CycleNode(args.slice(1,args.length-2),name,_12f.create_text_node());if(!_12f._namedCycleNodes){_12f._namedCycleNodes={};}_12f._namedCycleNodes[name]=node;}else{node=new ddtl.CycleNode(args.slice(1),null,_12f.create_text_node());}return node;},ifchanged:function(_131,_132){var _133=_132.contents.split();var _134=_131.parse(["endifchanged"]);_131.delete_first_token();return new ddtl.IfChangedNode(_134,_133.slice(1));},regroup:function(_135,_136){var _137=_111(_136.contents,/(\s+)/g,function(_138){return _138;});if(_137.length<11||_137[_137.length-3]!="as"||_137[_137.length-7]!="by"){throw new Error("Expected the format: regroup list by key as newList");}var _139=_137.slice(2,-8).join("");var key=_137[_137.length-5];var _13a=_137[_137.length-1];return new ddtl.RegroupNode(_139,key,_13a);}});return dojox.dtl.tag.loop;});},"dojox/string/Builder":function(){define(["dojo/_base/lang"],function(lang){lang.getObject("string",true,dojox).Builder=function(str){var b="";this.length=0;this.append=function(s){if(arguments.length>1){var tmp="",l=arguments.length;switch(l){case 9:tmp=""+arguments[8]+tmp;case 8:tmp=""+arguments[7]+tmp;case 7:tmp=""+arguments[6]+tmp;case 6:tmp=""+arguments[5]+tmp;case 5:tmp=""+arguments[4]+tmp;case 4:tmp=""+arguments[3]+tmp;case 3:tmp=""+arguments[2]+tmp;case 2:b+=""+arguments[0]+arguments[1]+tmp;break;default:var i=0;while(i\s+<"));_161=this.contents.render(_160,_161);}return _161;},unrender:function(_164,_165){return this.nodelist.unrender(_164,_165);},clone:function(_166){return new this.constructor(this.nodelist.clone(_166),this.contents.clone(_166));},_isEmpty:function(node){return (node.nodeType==3&&!node.data.match(/[^\s\n]/));},_watch:function(node){if(this._isEmpty(node)){var _167=false;if(node.parentNode.firstChild==node){node.parentNode.removeChild(node);}}else{var _168=node.parentNode.childNodes;if(node.nodeType==1&&_168.length>2){for(var i=2,_169;_169=_168[i];i++){if(_168[i-2].nodeType==1&&this._isEmpty(_168[i-1])){node.parentNode.removeChild(_168[i-1]);return;}}}}},_watchParent:function(node){var _16a=node.childNodes;if(_16a.length){while(node.childNodes.length){var last=node.childNodes[node.childNodes.length-1];if(!this._isEmpty(last)){return;}node.removeChild(last);}}}});ddtm.TemplateTagNode=lang.extend(function(tag,text){this.tag=tag;this.contents=text;},{mapping:{openblock:"{%",closeblock:"%}",openvariable:"{{",closevariable:"}}",openbrace:"{",closebrace:"}",opencomment:"{#",closecomment:"#}"},render:function(_16b,_16c){this.contents.set(this.mapping[this.tag]);return this.contents.render(_16b,_16c);},unrender:function(_16d,_16e){return this.contents.unrender(_16d,_16e);},clone:function(_16f){return new this.constructor(this.tag,this.contents.clone(_16f));}});ddtm.WidthRatioNode=lang.extend(function(_170,max,_171,text){this.current=new dd._Filter(_170);this.max=new dd._Filter(max);this.width=_171;this.contents=text;},{render:function(_172,_173){var _174=+this.current.resolve(_172);var max=+this.max.resolve(_172);if(typeof _174!="number"||typeof max!="number"||!max){this.contents.set("");}else{this.contents.set(""+Math.round((_174/max)*this.width));}return this.contents.render(_172,_173);},unrender:function(_175,_176){return this.contents.unrender(_175,_176);},clone:function(_177){return new this.constructor(this.current.getExpression(),this.max.getExpression(),this.width,this.contents.clone(_177));}});ddtm.WithNode=lang.extend(function(_178,_179,_17a){this.target=new dd._Filter(_178);this.alias=_179;this.nodelist=_17a;},{render:function(_17b,_17c){var _17d=this.target.resolve(_17b);_17b=_17b.push();_17b[this.alias]=_17d;_17c=this.nodelist.render(_17b,_17c);_17b=_17b.pop();return _17c;},unrender:function(_17e,_17f){return _17f;},clone:function(_180){return new this.constructor(this.target.getExpression(),this.alias,this.nodelist.clone(_180));}});lang.mixin(ddtm,{comment:function(_181,_182){_181.skip_past("endcomment");return dd._noOpNode;},debug:function(_183,_184){return new ddtm.DebugNode(_183.create_text_node());},filter:function(_185,_186){var rest=_186.contents.split(null,1)[1];var _187=_185.create_variable_node("var|"+rest);var _188=_185.parse(["endfilter"]);_185.next_token();return new ddtm.FilterNode(_187,_188);},firstof:function(_189,_18a){var _18b=_18a.split_contents().slice(1);if(!_18b.length){throw new Error("'firstof' statement requires at least one argument");}return new ddtm.FirstOfNode(_18b,_189.create_text_node());},spaceless:function(_18c,_18d){var _18e=_18c.parse(["endspaceless"]);_18c.delete_first_token();return new ddtm.SpacelessNode(_18e,_18c.create_text_node());},templatetag:function(_18f,_190){var _191=_190.contents.split();if(_191.length!=2){throw new Error("'templatetag' statement takes one argument");}var tag=_191[1];var _192=ddtm.TemplateTagNode.prototype.mapping;if(!_192[tag]){var keys=[];for(var key in _192){keys.push(key);}throw new Error("Invalid templatetag argument: '"+tag+"'. Must be one of: "+keys.join(", "));}return new ddtm.TemplateTagNode(tag,_18f.create_text_node());},widthratio:function(_193,_194){var _195=_194.contents.split();if(_195.length!=4){throw new Error("widthratio takes three arguments");}var _196=+_195[3];if(typeof _196!="number"){throw new Error("widthratio final argument must be an integer");}return new ddtm.WidthRatioNode(_195[1],_195[2],_196,_193.create_text_node());},with_:function(_197,_198){var _199=_198.split_contents();if(_199.length!=4||_199[2]!="as"){throw new Error("do_width expected format as 'with value as name'");}var _19a=_197.parse(["endwith"]);_197.next_token();return new ddtm.WithNode(_199[1],_199[3],_19a);}});return dojox.dtl.tag.misc;});},"dojox/dtl/Context":function(){define(["dojo/_base/lang","./_base"],function(lang,dd){dd.Context=lang.extend(function(dict){this._this={};dd._Context.call(this,dict);},dd._Context.prototype,{getKeys:function(){var keys=[];for(var key in this){if(this.hasOwnProperty(key)&&key!="_this"){keys.push(key);}}return keys;},extend:function(obj){return lang.delegate(this,obj);},filter:function(_19b){var _19c=new dd.Context();var keys=[];var i,arg;if(_19b instanceof dd.Context){keys=_19b.getKeys();}else{if(typeof _19b=="object"){for(var key in _19b){keys.push(key);}}else{for(i=0;arg=arguments[i];i++){if(typeof arg=="string"){keys.push(arg);}}}}for(i=0,key;key=keys[i];i++){_19c[key]=this[key];}return _19c;},setThis:function(_19d){this._this=_19d;},getThis:function(){return this._this;},hasKey:function(key){if(this._getter){var got=this._getter(key);if(typeof got!="undefined"){return true;}}if(typeof this[key]!="undefined"){return true;}return false;}});return dd.Context;});},"dojox/dtl/tag/logic":function(){define(["dojo/_base/lang","../_base"],function(lang,dd){lang.getObject("dojox.dtl.tag.logic",true);var ddt=dd.text;var ddtl=dd.tag.logic;ddtl.IfNode=lang.extend(function(_19e,_19f,_1a0,type){this.bools=_19e;this.trues=_19f;this.falses=_1a0;this.type=type;},{render:function(_1a1,_1a2){var i,bool,_1a3,_1a4,_1a5;if(this.type=="or"){for(i=0;bool=this.bools[i];i++){_1a3=bool[0];_1a4=bool[1];_1a5=_1a4.resolve(_1a1);if((_1a5&&!_1a3)||(_1a3&&!_1a5)){if(this.falses){_1a2=this.falses.unrender(_1a1,_1a2);}return (this.trues)?this.trues.render(_1a1,_1a2,this):_1a2;}}if(this.trues){_1a2=this.trues.unrender(_1a1,_1a2);}return (this.falses)?this.falses.render(_1a1,_1a2,this):_1a2;}else{for(i=0;bool=this.bools[i];i++){_1a3=bool[0];_1a4=bool[1];_1a5=_1a4.resolve(_1a1);if(_1a5==_1a3){if(this.trues){_1a2=this.trues.unrender(_1a1,_1a2);}return (this.falses)?this.falses.render(_1a1,_1a2,this):_1a2;}}if(this.falses){_1a2=this.falses.unrender(_1a1,_1a2);}return (this.trues)?this.trues.render(_1a1,_1a2,this):_1a2;}return _1a2;},unrender:function(_1a6,_1a7){_1a7=(this.trues)?this.trues.unrender(_1a6,_1a7):_1a7;_1a7=(this.falses)?this.falses.unrender(_1a6,_1a7):_1a7;return _1a7;},clone:function(_1a8){var _1a9=(this.trues)?this.trues.clone(_1a8):null;var _1aa=(this.falses)?this.falses.clone(_1a8):null;return new this.constructor(this.bools,_1a9,_1aa,this.type);}});ddtl.IfEqualNode=lang.extend(function(var1,var2,_1ab,_1ac,_1ad){this.var1=new dd._Filter(var1);this.var2=new dd._Filter(var2);this.trues=_1ab;this.falses=_1ac;this.negate=_1ad;},{render:function(_1ae,_1af){var var1=this.var1.resolve(_1ae);var var2=this.var2.resolve(_1ae);var1=(typeof var1!="undefined")?var1:"";var2=(typeof var1!="undefined")?var2:"";if((this.negate&&var1!=var2)||(!this.negate&&var1==var2)){if(this.falses){_1af=this.falses.unrender(_1ae,_1af,this);}return (this.trues)?this.trues.render(_1ae,_1af,this):_1af;}if(this.trues){_1af=this.trues.unrender(_1ae,_1af,this);}return (this.falses)?this.falses.render(_1ae,_1af,this):_1af;},unrender:function(_1b0,_1b1){return ddtl.IfNode.prototype.unrender.call(this,_1b0,_1b1);},clone:function(_1b2){var _1b3=this.trues?this.trues.clone(_1b2):null;var _1b4=this.falses?this.falses.clone(_1b2):null;return new this.constructor(this.var1.getExpression(),this.var2.getExpression(),_1b3,_1b4,this.negate);}});ddtl.ForNode=lang.extend(function(_1b5,loop,_1b6,_1b7){this.assign=_1b5;this.loop=new dd._Filter(loop);this.reversed=_1b6;this.nodelist=_1b7;this.pool=[];},{render:function(_1b8,_1b9){var i,j,k;var _1ba=false;var _1bb=this.assign;for(k=0;k<_1bb.length;k++){if(typeof _1b8[_1bb[k]]!="undefined"){_1ba=true;_1b8=_1b8.push();break;}}if(!_1ba&&_1b8.forloop){_1ba=true;_1b8=_1b8.push();}var _1bc=this.loop.resolve(_1b8)||[];for(i=_1bc.length;i1&&lang.isArrayLike(item)){if(!_1ba){_1ba=true;_1b8=_1b8.push();}var _1c0={};for(k=0;kthis.pool.length){this.pool.push(this.nodelist.clone(_1b9));}_1b9=this.pool[j++].render(_1b8,_1b9,this);}delete _1b8.forloop;if(_1ba){_1b8=_1b8.pop();}else{for(k=0;k<_1bb.length;k++){delete _1b8[_1bb[k]];}}return _1b9;},unrender:function(_1c1,_1c2){for(var i=0,pool;pool=this.pool[i];i++){_1c2=pool.unrender(_1c1,_1c2);}return _1c2;},clone:function(_1c3){return new this.constructor(this.assign,this.loop.getExpression(),this.reversed,this.nodelist.clone(_1c3));}});lang.mixin(ddtl,{if_:function(_1c4,_1c5){var i,part,type,_1c6=[],_1c7=_1c5.contents.split();_1c7.shift();_1c5=_1c7.join(" ");_1c7=_1c5.split(" and ");if(_1c7.length==1){type="or";_1c7=_1c5.split(" or ");}else{type="and";for(i=0;i<_1c7.length;i++){if(_1c7[i].indexOf(" or ")!=-1){throw new Error("'if' tags can't mix 'and' and 'or'");}}}for(i=0;part=_1c7[i];i++){var not=false;if(part.indexOf("not ")==0){part=part.slice(4);not=true;}_1c6.push([not,new dd._Filter(part)]);}var _1c8=_1c4.parse(["else","endif"]);var _1c9=false;var _1c5=_1c4.next_token();if(_1c5.contents=="else"){_1c9=_1c4.parse(["endif"]);_1c4.next_token();}return new ddtl.IfNode(_1c6,_1c8,_1c9,type);},_ifequal:function(_1ca,_1cb,_1cc){var _1cd=_1cb.split_contents();if(_1cd.length!=3){throw new Error(_1cd[0]+" takes two arguments");}var end="end"+_1cd[0];var _1ce=_1ca.parse(["else",end]);var _1cf=false;var _1cb=_1ca.next_token();if(_1cb.contents=="else"){_1cf=_1ca.parse([end]);_1ca.next_token();}return new ddtl.IfEqualNode(_1cd[1],_1cd[2],_1ce,_1cf,_1cc);},ifequal:function(_1d0,_1d1){return ddtl._ifequal(_1d0,_1d1);},ifnotequal:function(_1d2,_1d3){return ddtl._ifequal(_1d2,_1d3,true);},for_:function(_1d4,_1d5){var _1d6=_1d5.contents.split();if(_1d6.length<4){throw new Error("'for' statements should have at least four words: "+_1d5.contents);}var _1d7=_1d6[_1d6.length-1]=="reversed";var _1d8=(_1d7)?-3:-2;if(_1d6[_1d6.length+_1d8]!="in"){throw new Error("'for' tag received an invalid argument: "+_1d5.contents);}var _1d9=_1d6.slice(1,_1d8).join(" ").split(/ *, */);for(var i=0;i<_1d9.length;i++){if(!_1d9[i]||_1d9[i].indexOf(" ")!=-1){throw new Error("'for' tag received an invalid argument: "+_1d5.contents);}}var _1da=_1d4.parse(["endfor"]);_1d4.next_token();return new ddtl.ForNode(_1d9,_1d6[_1d6.length+_1d8+1],_1d7,_1da);}});return dojox.dtl.tag.logic;});},"dojox/dtl/tag/date":function(){define(["dojo/_base/lang","../_base","../utils/date"],function(lang,dd,ddud){lang.getObject("dojox.dtl.tag.date",true);dojox.dtl.tag.date.NowNode=function(_1db,node){this._format=_1db;this.format=new ddud.DateFormat(_1db);this.contents=node;};lang.extend(dd.tag.date.NowNode,{render:function(_1dc,_1dd){this.contents.set(this.format.format(new Date()));return this.contents.render(_1dc,_1dd);},unrender:function(_1de,_1df){return this.contents.unrender(_1de,_1df);},clone:function(_1e0){return new this.constructor(this._format,this.contents.clone(_1e0));}});dojox.dtl.tag.date.now=function(_1e1,_1e2){var _1e3=_1e2.split_contents();if(_1e3.length!=2){throw new Error("'now' statement takes one argument");}return new dojox.dtl.tag.date.NowNode(_1e3[1].slice(1,-1),_1e1.create_text_node());};return dojox.dtl.tag.date;});}}});define("dojox/dtl",["./dtl/_base"],function(_1e4){return _1e4;});