//>>built define("dojo/_base/kernel dojo/_base/lang dojox/string/tokenize dojo/_base/json dojo/dom dojo/_base/xhr dojox/string/Builder dojo/_base/Deferred".split(" "),function(q,f,m,D,r,n,t,p){q.experimental("dojox.dtl");var d=f.getObject("dojox.dtl",!0);d._base={};d.TOKEN_BLOCK=-1;d.TOKEN_VAR=-2;d.TOKEN_COMMENT=-3;d.TOKEN_TEXT=3;d._Context=f.extend(function(a){a&&(f._mixin(this,a),a.get&&(this._getter=a.get,delete this.get))},{push:function(){var a=this,b=f.delegate(this);b.pop=function(){return a};return b}, pop:function(){throw Error("pop() called on empty Context");},get:function(a,b){var c=this._normalize;if(this._getter){var e=this._getter(a);if(void 0!==e)return c(e)}return void 0!==this[a]?c(this[a]):b},_normalize:function(a){a instanceof Date&&(a.year=a.getFullYear(),a.month=a.getMonth()+1,a.day=a.getDate(),a.date=a.year+"-"+("0"+a.month).slice(-2)+"-"+("0"+a.day).slice(-2),a.hour=a.getHours(),a.minute=a.getMinutes(),a.second=a.getSeconds(),a.microsecond=a.getMilliseconds());return a},update:function(a){var b= this.push();a&&f._mixin(this,a);return b}});var u=/("(?:[^"\\]*(?:\\.[^"\\]*)*)"|'(?:[^'\\]*(?:\\.[^'\\]*)*)'|[^\s]+)/g,v=/\s+/g,w=function(a,b){a=a||v;a instanceof RegExp||(a=new RegExp(a,"g"));if(!a.global)throw Error("You must use a globally flagged RegExp with split "+a);a.exec("");for(var c,e=[],d=0,f=0;(c=a.exec(this))&&!(e.push(this.slice(d,a.lastIndex-c[0].length)),d=a.lastIndex,b&&++f>b-1););e.push(this.slice(d));return e};d.Token=function(a,b){this.token_type=a;this.contents=new String(f.trim(b)); this.contents.split=w;this.split=function(){return String.prototype.split.apply(this.contents,arguments)}};d.Token.prototype.split_contents=function(a){var b,c=[],e=0;for(a=a||999;e++/g,B=/'/g,C=/"/g;d._base.escape=function(a){return d.mark_safe(a.replace(y,"\x26amp;").replace(z,"\x26lt;").replace(A,"\x26gt;").replace(C,"\x26quot;").replace(B,"\x26#39;"))};d._base.safe= function(a){"string"==typeof a&&(a=new String(a));"object"==typeof a&&(a.safe=!0);return a};d.mark_safe=d._base.safe;d.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".split(" "),loop:["cycle","ifchanged","regroup"]});d.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".split(" "),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".split(" ")}); d.register.filters("dojox.dtl",{_base:["escape","safe"]});return d});