/*
	Copyright (c) 2004-2012, 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
(function(b,k){var g,m,l=function(){},n=function(a){for(var c in a)return 0;return 1},o={}.toString,i=function(a){return"[object Function]"==o.call(a)},h=function(a){return"[object String]"==o.call(a)},a=function(a){return"[object Array]"==o.call(a)},e=function(a,c){if(a)for(var b=0;b<a.length;)c(a[b++])},c=function(a,c){for(var b in c)a[b]=c[b];return a},d=function(a,b){return c(Error(a),{src:"dojoLoader",info:b})},j=1,p=function(){return"_"+j++},f=function(a,c,b){return Ha(a,c,b,0,f)},q=this,r=
q.document,v=r&&r.createElement("DiV"),u=f.has=function(a){return i(z[a])?z[a]=z[a](q,r,v):z[a]},z=u.cache=k.hasCache;u.add=function(a,c,b,d){(void 0===z[a]||d)&&(z[a]=c);return b&&u(a)};for(var w in b.has)u.add(w,b.has[w],0,1);var s=0,t=[],G=0,I=l,J=l,H;f.isXdUrl=l;f.initSyncLoader=function(a,c,b){G||(G=a,I=c,J=b);return{sync:"sync",requested:1,arrived:2,nonmodule:3,executing:4,executed:5,syncExecStack:t,modules:x,execQ:N,getModule:R,injectModule:la,setArrived:Y,signal:E,finishExec:aa,execModule:ba,
dojoRequirePlugin:G,getLegacyMode:function(){return s},guardCheckComplete:ca}};var O=location.protocol,V=location.host;f.isXdUrl=function(a){if(/^\./.test(a))return!1;return/^\/\//.test(a)?!0:(a=a.match(/^([^\/\:]+\:)\/+([^\/]+)/))&&(a[1]!=O||V&&a[2]!=V)};u.add("dojo-force-activex-xhr",!r.addEventListener&&"file:"==window.location.protocol);u.add("native-xhr","undefined"!=typeof XMLHttpRequest);if(u("native-xhr")&&!u("dojo-force-activex-xhr"))H=function(){return new XMLHttpRequest};else{var y=["Msxml2.XMLHTTP",
"Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],B;for(g=0;3>g;)try{if(B=y[g++],new ActiveXObject(B))break}catch(L){}H=function(){return new ActiveXObject(B)}}f.getXhr=H;u.add("dojo-gettext-api",1);f.getText=function(a,c,b){var f=H();f.open("GET",ma(a),!1);f.send(null);if(200==f.status||!location.host&&!f.status)b&&b(f.responseText,c);else throw d("xhrFailed",f.status);return f.responseText};var D=new Function("return eval(arguments[0]);");f.eval=function(a,c){return D(a+"\r\n////@ sourceURL="+c)};var F=
{},E=f.signal=function(c,b){var d=F[c];e(d&&d.slice(0),function(c){c.apply(null,a(b)?b:[b])})},da=f.on=function(a,c){var b=F[a]||(F[a]=[]);b.push(c);return{remove:function(){for(var a=0;a<b.length;a++)if(b[a]===c){b.splice(a,1);break}}}},Q=[],W={},M=[],C={},S=f.map={},A=[],x={},ea="",K={},Z={},T={},na=function(a){var c,b,d,f;for(c in Z)b=Z[c],(d=c.match(/^url\:(.+)/))?K["url:"+Ia(d[1],a)]=b:"*now"==c?f=b:"*noref"!=c&&(d=fa(c,a),K[d.mid]=K["url:"+d.url]=b);f&&f(xa(a));Z={}},Ja=function(a){return a.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,
function(a){return"\\"+a})},ya=function(a,c){c.splice(0,c.length);for(var b in a)c.push([b,a[b],RegExp("^"+Ja(b)+"(/|$)"),b.length]);c.sort(function(a,c){return c[3]-a[3]});return c},Ka=function(a){var b=a.name;b||(b=a,a={name:b});a=c({main:"main"},a);a.location=a.location?a.location:b;if(a.packageMap)S[b]=a.packageMap;if(!a.main.indexOf("./"))a.main=a.main.substring(2);C[b]=a},La=[],ga=function(a,b,d){for(var j in a){if("waitSeconds"==j)f.waitms=1E3*(a[j]||0);"cacheBust"==j&&(ea=a[j]?h(a[j])?a[j]:
(new Date).getTime()+"":"");if("baseUrl"==j||"combo"==j)f[j]=a[j];if("async"==j){var i=a[j];f.legacyMode=s=h(i)&&/sync|legacyAsync/.test(i)?i:!i?"sync":!1;f.async=!s}a[j]!==z&&(f.rawConfig[j]=a[j],"has"!=j&&u.add("config-"+j,a[j],0,b))}if(!f.baseUrl)f.baseUrl="./";/\/$/.test(f.baseUrl)||(f.baseUrl+="/");for(j in a.has)u.add(j,a.has[j],0,b);e(a.packages,Ka);for(m in a.packagePaths)e(a.packagePaths[m],function(a){var b=m+"/"+a;h(a)&&(a={name:a});a.location=b;Ka(a)});ya(c(S,a.map),A);e(A,function(a){a[1]=
ya(a[1],[]);if("*"==a[0])A.star=a});ya(c(W,a.paths),M);e(a.aliases,function(a){h(a[0])&&(a[0]=RegExp("^"+Ja(a[0])+"$"));Q.push(a)});if(b)La.push({config:a.config});else for(j in a.config)b=R(j,d),b.config=c(b.config||{},a.config[j]);if(a.cache)na(),Z=a.cache,a.cache["*noref"]&&na();E("config",[a,f.rawConfig])};u("dojo-cdn");var Ma=r.getElementsByTagName("script");g=0;for(var oa,X,pa,ha;g<Ma.length;)if(oa=Ma[g++],(pa=oa.getAttribute("src"))&&(ha=pa.match(/(((.*)\/)|^)dojo\.js(\W|$)/i))){X=ha[3]||"";
k.baseUrl=k.baseUrl||X;(pa=oa.getAttribute("data-dojo-config")||oa.getAttribute("djConfig"))&&(T=f.eval("({ "+pa+" })","data-dojo-config"));break}f.rawConfig={};ga(k,1);if(u("dojo-cdn"))(C.dojo.location=X)&&(X+="/"),C.dijit.location=X+"../dijit/",C.dojox.location=X+"../dojox/";ga(b,1);ga(T,1);var ia=function(a){ca(function(){e(a.deps,la)})},Ha=function(b,e,j,i,n){var q;if(h(b)){if((q=R(b,i,!0))&&q.executed)return q.result;throw d("undefinedModule",b);}a(b)||(ga(b,0,i),b=e,e=j);if(a(b))if(b.length){for(var j=
"require*"+p(),v,g=[],o=0;o<b.length;)v=b[o++],g.push(R(v,i));q=c(qa("",j,0,""),{injected:2,deps:g,def:e||l,require:i?i.require:f,gc:1});x[q.mid]=q;ia(q);var m=ja&&"sync"!=s;ca(function(){ba(q,m)});q.executed||N.push(q);$()}else e&&e();return n},xa=function(a){if(!a)return f;var b=a.require;if(!b)b=function(c,d,f){return Ha(c,d,f,a,b)},a.require=c(b,f),b.module=a,b.toUrl=function(b){return Ia(b,a)},b.toAbsMid=function(b){return za(b,a)},b.syncLoadNls=function(b){var b=fa(b,a),c=x[b.mid];if(!c||!c.executed)if(U=
K[b.mid]||K["url:"+b.url])ra(U),c=x[b.mid];return c&&c.executed&&c.result};return b},N=[],sa=[],P={},Ya=function(a){a.injected=1;P[a.mid]=1;a.url&&(P[a.url]=a.pack||1);Na()},Y=function(a){a.injected=2;delete P[a.mid];a.url&&delete P[a.url];n(P)&&(ta(),"xd"==s&&(s="sync"))},Za=f.idle=function(){return!sa.length&&n(P)&&!N.length&&!ja},Aa=function(a,b){if(b)for(var c=0;c<b.length;c++)if(b[c][2].test(a))return b[c];return 0},Oa=function(a){for(var b=[],c,d,a=a.replace(/\\/g,"/").split("/");a.length;)c=
a.shift(),".."==c&&b.length&&".."!=d?(b.pop(),d=b[b.length-1]):"."!=c&&b.push(d=c);return b.join("/")},qa=function(a,b,c,d){var e=f.isXdUrl(d);return{pid:a,mid:b,pack:c,url:d,executed:0,def:0,isXd:e,isAmd:!!(e||C[a]&&C[a].isAmd)}},Pa=function(a,b,c,f,j,h,p,n){var q,v,g,o;o=/^\./.test(a);if(/(^\/)|(\:)|(\.js$)/.test(a)||o&&!b)return qa(0,a,0,a);a=Oa(o?b.mid+"/../"+a:a);if(/^\./.test(a))throw d("irrationalPath",a);b&&(g=Aa(b.mid,h));(g=(g=g||h.star)&&Aa(a,g[1]))&&(a=g[1]+a.substring(g[3]));b=(ha=a.match(/^([^\/]+)(\/(.+))?$/))?
ha[1]:"";(q=c[b])?a=b+"/"+(v=ha[3]||q.main):b="";var l=0;e(Q,function(b){var c=a.match(b[0]);c&&0<c.length&&(l=i(b[1])?a.replace(b[0],b[1]):b[1])});if(l)return Pa(l,0,c,f,j,h,p,n);if(c=f[a])return n?qa(c.pid,c.mid,c.pack,c.url):f[a];f=(g=Aa(a,p))?g[1]+a.substring(g[3]):b?q.location+"/"+v:u("config-tlmSiblingOfDojo")?"../"+a:a;/(^\/)|(\:)/.test(f)||(f=j+f);return qa(b,a,q,Oa(f+".js"))},fa=function(a,b){return Pa(a,b,C,x,f.baseUrl,A,M)},Qa=function(a,b,c){return a.normalize?a.normalize(b,function(a){return za(a,
c)}):za(b,c)},Ra=0,R=function(a,b,c){var d,f;(d=a.match(/^(.+?)\!(.*)$/))?(f=R(d[1],b,c),"sync"==s&&!f.executed&&(la(f),2===f.injected&&!f.executed&&ca(function(){ba(f)}),f.executed?ua(f):N.unshift(f)),5===f.executed&&!f.load&&ua(f),f.load?(d=Qa(f,d[2],b),a=f.mid+"!"+(f.dynamic?++Ra+"!":"")+d):(d=d[2],a=f.mid+"!"+ ++Ra+"!waitingForPlugin"),a={plugin:f,mid:a,req:xa(b),prid:d}):a=fa(a,b);return x[a.mid]||!c&&(x[a.mid]=a)},za=f.toAbsMid=function(a,b){return fa(a,b).mid},Ia=f.toUrl=function(a,b){var c=
fa(a+"/x",b),d=c.url;return ma(0===c.pid?a:d.substring(0,d.length-5))},Sa={injected:2,executed:5,def:3,result:3},Ba=function(a){return x[a]=c({mid:a},Sa)},$a=Ba("require"),ab=Ba("exports"),bb=Ba("module"),va={},Ca=0,ua=function(a){var b=a.result;a.dynamic=b.dynamic;a.normalize=b.normalize;a.load=b.load;return a},cb=function(a){var b={};e(a.loadQ,function(d){var f=Qa(a,d.prid,d.req.module),e=a.dynamic?d.mid.replace(/waitingForPlugin$/,f):a.mid+"!"+f,f=c(c({},d),{mid:e,prid:f,injected:0});x[e]||Ta(x[e]=
f);b[d.mid]=x[e];Y(d);delete x[d.mid]});a.loadQ=0;var d=function(a){for(var c=a.deps||[],d=0;d<c.length;d++)(a=b[c[d].mid])&&(c[d]=a)},f;for(f in x)d(x[f]);e(N,d)},aa=function(a){f.trace("loader-finish-exec",[a.mid]);a.executed=5;a.defOrder=Ca++;e(a.provides,function(a){a()});a.loadQ&&(ua(a),cb(a));for(g=0;g<N.length;)N[g]===a?N.splice(g,1):g++;/^require\*/.test(a.mid)&&delete x[a.mid]},db=[],ba=function(a,b){if(4===a.executed)return f.trace("loader-circular-dependency",[db.concat(a.mid).join("->")]),
!a.def||b?va:a.cjs&&a.cjs.exports;if(!a.executed){if(!a.def)return va;var c=a.mid,e=a.deps||[],j,h=[],p=0;for(a.executed=4;p<e.length;){j=e[p++];j=j===$a?xa(a):j===ab?a.cjs.exports:j===bb?a.cjs:ba(j,b);if(j===va)return a.executed=0,f.trace("loader-exec-module",["abort",c]),va;h.push(j)}f.trace("loader-run-factory",[a.mid]);var c=a.def,n;t.unshift(a);if(u("config-dojo-loader-catches"))try{n=i(c)?c.apply(null,h):c}catch(q){E("error",a.result=d("factoryThrew",[a,q]))}else n=i(c)?c.apply(null,h):c;a.result=
void 0===n&&a.cjs?a.cjs.exports:n;t.shift(a);aa(a)}return a.result},ja=0,ca=function(a){try{ja++,a()}finally{ja--}Za()&&E("idle",[])},$=function(){ja||ca(function(){I();for(var a,b,c=0;c<N.length;)a=Ca,b=N[c],ba(b),a!=Ca?(I(),c=0):c++})};void 0===u("dojo-loader-eval-hint-url")&&u.add("dojo-loader-eval-hint-url",1);var ma=function(a){a+="";return a+(ea?(/\?/.test(a)?"&":"?")+ea:"")},Ta=function(a){var b=a.plugin;5===b.executed&&!b.load&&ua(b);var c=function(b){a.result=b;Y(a);aa(a);$()};b.load?b.load(a.prid,
a.req,c):b.loadQ?b.loadQ.push(a):(b.loadQ=[a],N.unshift(b),la(b))},U=0,ka=0,Da=0,ra=function(a,b){u("config-stripStrict")&&(a=a.replace(/"use strict"/g,""));Da=1;if(u("config-dojo-loader-catches"))try{a===U?U.call(null):f.eval(a,u("dojo-loader-eval-hint-url")?b.url:b.mid)}catch(c){E("error",d("evalModuleThrew",b))}else a===U?U.call(null):f.eval(a,u("dojo-loader-eval-hint-url")?b.url:b.mid);Da=0},la=function(a){var b=a.mid,j=a.url;if(!a.executed&&!a.injected&&!(P[b]||a.url&&(a.pack&&P[a.url]===a.pack||
1==P[a.url])))if(Ya(a),a.plugin)Ta(a);else{var h=function(){Ua(a);2!==a.injected&&(Y(a),c(a,Sa),f.trace("loader-define-nonmodule",[a.url]));s?!t.length&&$():$()};if(U=K[b]||K["url:"+a.url])f.trace("loader-inject",["cache",a.mid,j]),ra(U,a),h();else{if(s)if(a.isXd)"sync"==s&&(s="xd");else if(!(a.isAmd&&"sync"!=s)){var i=function(c){if("sync"==s){t.unshift(a);ra(c,a);t.shift();Ua(a);a.cjs||(Y(a),aa(a));if(a.finish){var c=b+"*finish",d=a.finish;delete a.finish;Ea(c,["dojo",("dojo/require!"+d.join(",")).replace(/\./g,
"/")],function(a){e(d,function(b){a.require(b)})});N.unshift(R(c))}h()}else(c=J(a,c))?(ra(c,a),h()):(ka=a,f.injectUrl(ma(j),h,a),ka=0)};f.trace("loader-inject",["xhr",a.mid,j,"sync"!=s]);if(u("config-dojo-loader-catches"))try{f.getText(j,"sync"!=s,i)}catch(p){E("error",d("xhrInjectFailed",[a,p]))}else f.getText(j,"sync"!=s,i);return}f.trace("loader-inject",["script",a.mid,j]);ka=a;f.injectUrl(ma(j),h,a);ka=0}}},Fa=function(a,b,e){f.trace("loader-define-module",[a.mid,b]);var j=a.mid;if(2===a.injected)return E("error",
d("multipleDefine",a)),a;c(a,{deps:b,def:e,cjs:{id:a.mid,uri:a.url,exports:a.result={},setExports:function(b){a.cjs.exports=b},config:function(){return a.config}}});for(var h=0;h<b.length;h++)b[h]=R(b[h],a);s&&!P[j]&&(ia(a),N.push(a),$());Y(a);if(!i(e)&&!b.length)a.result=e,aa(a);return a},Ua=function(a,b){for(var c=[],d,f;sa.length;)f=sa.shift(),b&&(f[0]=b.shift()),d=f[0]&&R(f[0])||a,c.push([d,f[1],f[2]]);na(a);e(c,function(a){ia(Fa.apply(null,a))})},wa=0,ta=l,Na=l;ta=function(){wa&&clearTimeout(wa);
wa=0};Na=function(){ta();f.waitms&&(wa=window.setTimeout(function(){ta();E("error",d("timeout",P))},f.waitms))};u.add("ie-event-behavior",!!r.attachEvent&&("undefined"===typeof opera||"[object Opera]"!=opera.toString()));var Ga=function(a,b,c,d){if(u("ie-event-behavior"))return a.attachEvent(c,d),function(){a.detachEvent(c,d)};a.addEventListener(b,d,!1);return function(){a.removeEventListener(b,d,!1)}},eb=Ga(window,"load","onload",function(){f.pageLoaded=1;"complete"!=r.readyState&&(r.readyState=
"complete");eb()}),Va=r.getElementsByTagName("script")[0],fb=Va.parentNode;f.injectUrl=function(a,b,c){var c=c.node=r.createElement("script"),f=Ga(c,"load","onreadystatechange",function(a){var a=a||window.event,c=a.target||a.srcElement;if("load"===a.type||/complete|loaded/.test(c.readyState))f(),e(),b&&b()}),e=Ga(c,"error","onerror",function(b){f();e();E("error",d("scriptError",[a,b]))});c.type="text/javascript";c.charset="utf-8";c.src=a;fb.insertBefore(c,Va);return c};f.log=function(){try{for(var a=
0;a<arguments.length;a++);}catch(b){}};f.trace=l;var Ea=function(a,b,c){var e=arguments.length,j=["require","exports","module"],p=[0,a,b];1==e?p=[0,i(a)?j:[],a]:2==e&&h(a)?p=[a,i(b)?j:[],b]:3==e&&(p=[a,b,c]);f.trace("loader-define",p.slice(0,2));if((e=p[0]&&R(p[0]))&&!P[e.mid])ia(Fa(e,p[1],p[2]));else if(!u("ie-event-behavior")||Da)sa.push(p);else{e=e||ka;if(!e)for(a in P)if((j=x[a])&&j.node&&"interactive"===j.node.readyState){e=j;break}e?(na(e),ia(Fa(e,p[1],p[2]))):E("error",d("ieDefineFailed",p[0]));
$()}};Ea.amd={vendor:"dojotoolkit.org"};c(c(f,k.loaderPatch),b.loaderPatch);da("error",function(a){try{if(console.error(a),a instanceof Error)for(var b in a);}catch(c){}});c(f,{uid:p,cache:K,packs:C});if(q.define)E("error",d("defineAlreadyDefined",0));else{q.define=Ea;q.require=f;e(La,function(a){ga(a)});var Wa=T.deps||b.deps||k.deps,Xa=T.callback||b.callback||k.callback;f.boot=Wa||Xa?[Wa||[],Xa]:0}})(this.dojoConfig||this.djConfig||this.require||{},{async:"legacyAsync",hasCache:{"config-selectorEngine":"acme",
"config-tlmSiblingOfDojo":1,"dojo-built":1,"dojo-cdn":1,"dojo-loader":1,dom:1,"host-browser":1},packages:[{location:"../dijit",name:"dijit"},{location:"../dojox",name:"dojox"},{location:".",name:"dojo"}]});
require({cache:{"dojo/_base/fx":function(){define("dojo/_base/fx","./kernel,./config,./lang,../Evented,./Color,./connect,./sniff,../dom,../dom-style".split(","),function(b,k,g,m,l,n,o,i,h){var a=g.mixin,e={},c=e._Line=function(a,b){this.start=a;this.end=b};c.prototype.getValue=function(a){return(this.end-this.start)*a+this.start};var d=e.Animation=function(b){a(this,b);if(g.isArray(this.curve))this.curve=new c(this.curve[0],this.curve[1])};d.prototype=new m;g.extend(d,{duration:350,repeat:0,rate:20,
_percent:0,_startRepeatCount:0,_getStep:function(){var a=this._percent,b=this.easing;return b?b(a):a},_fire:function(a,b){var c=b||[];if(this[a])if(k.debugAtAllCosts)this[a].apply(this,c);else try{this[a].apply(this,c)}catch(d){console.error("exception in animation handler for:",a),console.error(d)}return this},play:function(a,b){this._delayTimer&&this._clearTimer();if(b)this._stopTimer(),this._active=this._paused=!1,this._percent=0;else if(this._active&&!this._paused)return this;this._fire("beforeBegin",
[this.node]);var c=a||this.delay,d=g.hitch(this,"_play",b);if(0<c)return this._delayTimer=setTimeout(d,c),this;d();return this},_play:function(){this._delayTimer&&this._clearTimer();this._startTime=(new Date).valueOf();this._paused&&(this._startTime-=this.duration*this._percent);this._active=!0;this._paused=!1;var a=this.curve.getValue(this._getStep());if(!this._percent){if(!this._startRepeatCount)this._startRepeatCount=this.repeat;this._fire("onBegin",[a])}this._fire("onPlay",[a]);this._cycle();
return this},pause:function(){this._delayTimer&&this._clearTimer();this._stopTimer();if(!this._active)return this;this._paused=!0;this._fire("onPause",[this.curve.getValue(this._getStep())]);return this},gotoPercent:function(a,b){this._stopTimer();this._active=this._paused=!0;this._percent=a;b&&this.play();return this},stop:function(a){this._delayTimer&&this._clearTimer();if(!this._timer)return this;this._stopTimer();if(a)this._percent=1;this._fire("onStop",[this.curve.getValue(this._getStep())]);
this._active=this._paused=!1;return this},status:function(){return this._active?this._paused?"paused":"playing":"stopped"},_cycle:function(){if(this._active){var a=(new Date).valueOf(),a=0===this.duration?1:(a-this._startTime)/this.duration;1<=a&&(a=1);this._percent=a;this.easing&&(a=this.easing(a));this._fire("onAnimate",[this.curve.getValue(a)]);if(1>this._percent)this._startTimer();else{this._active=!1;if(0<this.repeat)this.repeat--,this.play(null,!0);else if(-1==this.repeat)this.play(null,!0);
else if(this._startRepeatCount)this.repeat=this._startRepeatCount,this._startRepeatCount=0;this._percent=0;this._fire("onEnd",[this.node]);!this.repeat&&this._stopTimer()}}return this},_clearTimer:function(){clearTimeout(this._delayTimer);delete this._delayTimer}});var j=0,p=null,f={run:function(){}};g.extend(d,{_startTimer:function(){if(!this._timer)this._timer=n.connect(f,"run",this,"_cycle"),j++;p||(p=setInterval(g.hitch(f,"run"),this.rate))},_stopTimer:function(){if(this._timer)n.disconnect(this._timer),
this._timer=null,j--;0>=j&&(clearInterval(p),p=null,j=0)}});var q=o("ie")?function(a){var b=a.style;if(!b.width.length&&"auto"==h.get(a,"width"))b.width="auto"}:function(){};e._fade=function(b){b.node=i.byId(b.node);var c=a({properties:{}},b),b=c.properties.opacity={};b.start=!("start"in c)?function(){return+h.get(c.node,"opacity")||0}:c.start;b.end=c.end;b=e.animateProperty(c);n.connect(b,"beforeBegin",g.partial(q,c.node));return b};e.fadeIn=function(b){return e._fade(a({end:1},b))};e.fadeOut=function(b){return e._fade(a({end:0},
b))};e._defaultEasing=function(a){return 0.5+Math.sin((a+1.5)*Math.PI)/2};var r=function(a){this._properties=a;for(var b in a){var c=a[b];if(c.start instanceof l)c.tempColor=new l}};r.prototype.getValue=function(a){var b={},c;for(c in this._properties){var d=this._properties[c],f=d.start;f instanceof l?b[c]=l.blendColors(f,d.end,a,d.tempColor).toCss():g.isArray(f)||(b[c]=(d.end-f)*a+f+("opacity"!=c?d.units||"px":0))}return b};e.animateProperty=function(c){var f=c.node=i.byId(c.node);if(!c.easing)c.easing=
b._defaultEasing;c=new d(c);n.connect(c,"beforeBegin",c,function(){var b={},c;for(c in this.properties){if("width"==c||"height"==c)this.node.display="block";var d=this.properties[c];g.isFunction(d)&&(d=d(f));d=b[c]=a({},g.isObject(d)?d:{end:d});if(g.isFunction(d.start))d.start=d.start(f);if(g.isFunction(d.end))d.end=d.end(f);var e=0<=c.toLowerCase().indexOf("color"),j=function(a,b){var c={height:a.offsetHeight,width:a.offsetWidth}[b];if(void 0!==c)return c;c=h.get(a,b);return"opacity"==b?+c:e?c:parseFloat(c)};
if("end"in d){if(!("start"in d))d.start=j(f,c)}else d.end=j(f,c);e?(d.start=new l(d.start),d.end=new l(d.end)):d.start="opacity"==c?+d.start:parseFloat(d.start)}this.curve=new r(b)});n.connect(c,"onAnimate",g.hitch(h,"set",c.node));return c};e.anim=function(a,b,c,f,j,h){return e.animateProperty({node:a,duration:c||d.prototype.duration,properties:b,easing:f,onEnd:j}).play(h||0)};a(b,e);b._Animation=d;return e})},"dojo/dom-form":function(){define(["./_base/lang","./dom","./io-query","./json"],function(b,
k,g,m){var l={fieldToObject:function(b){var g=null;if(b=k.byId(b)){var i=b.name,h=(b.type||"").toLowerCase();if(i&&h&&!b.disabled)if("radio"==h||"checkbox"==h){if(b.checked)g=b.value}else if(b.multiple){g=[];for(b=[b.firstChild];b.length;)for(i=b.pop();i;i=i.nextSibling)if(1==i.nodeType&&"option"==i.tagName.toLowerCase())i.selected&&g.push(i.value);else{i.nextSibling&&b.push(i.nextSibling);i.firstChild&&b.push(i.firstChild);break}}else g=b.value}return g},toObject:function(n){for(var g={},n=k.byId(n).elements,
i=0,h=n.length;i<h;++i){var a=n[i],e=a.name,c=(a.type||"").toLowerCase();if(e&&c&&0>"file|submit|image|reset|button".indexOf(c)&&!a.disabled){var d=g,j=e,a=l.fieldToObject(a);if(null!==a){var p=d[j];"string"==typeof p?d[j]=[p,a]:b.isArray(p)?p.push(a):d[j]=a}if("image"==c)g[e+".x"]=g[e+".y"]=g[e].x=g[e].y=0}}return g},toQuery:function(b){return g.objectToQuery(l.toObject(b))},toJson:function(b,g){return m.stringify(l.toObject(b),null,g?4:0)}};return l})},"dojo/i18n":function(){define("./_base/kernel,require,./has,./_base/array,./_base/config,./_base/lang,./_base/xhr,./json,module".split(","),
function(b,k,g,m,l,n,o,i,h){g.add("dojo-preload-i18n-Api",1);var a=b.i18n={},e=/(^.*(^|\/)nls)(\/|$)([^\/]*)\/?([^\/]*)/,c=function(a,b,c,d){for(var f=[c+d],b=b.split("-"),e="",j=0;j<b.length;j++)e+=(e?"-":"")+b[j],(!a||a[e])&&f.push(c+e+"/"+d);return f},d={},j=function(a,c,d){d=d?d.toLowerCase():b.locale;a=a.replace(/\./g,"/");c=c.replace(/\./g,"/");return/root/i.test(d)?a+"/nls/"+c:a+"/nls/"+d+"/"+c};b.getL10nName=function(a,b,c){return h.id+"!"+j(a,b,c)};var p=function(a,b,f,e,j,h){a([b],function(p){var i=
n.clone(p.root),q=c(!p._v1x&&p,j,f,e);a(q,function(){for(var a=1;a<q.length;a++)i=n.mixin(n.clone(i),arguments[a]);d[b+"/"+j]=i;h()})})},f=function(a){var b=l.extraLocale||[],b=n.isArray(b)?b:[b];b.push(a);return b},q=function(a,c,j){if(g("dojo-preload-i18n-Api")){var h=a.split("*"),q="preload"==h[1];q&&(d[a]||(d[a]=1,w(h[2],i.parse(h[3]),1,c)),j(1));if(!(h=q))u&&z.push([a,c,j]),h=u;if(h)return}var a=e.exec(a),l=a[1]+"/",o=a[5]||a[4],k=l+o,h=(a=a[5]&&a[4])||b.locale,r=k+"/"+h,a=a?[h]:f(h),v=a.length,
t=function(){--v||j(n.delegate(d[r]))};m.forEach(a,function(a){var b=k+"/"+a;g("dojo-preload-i18n-Api")&&s(b);d[b]?t():p(c,k,l,o,a,t)})};if(g("dojo-unit-tests"))var r=a.unitTests=[];g("dojo-preload-i18n-Api");var v=a.normalizeLocale=function(a){a=a?a.toLowerCase():b.locale;return"root"==a?"ROOT":a},u=0,z=[],w=a._preloadLocalizations=function(a,c,f,e){function j(a,b){e.isXdUrl(k.toUrl(a+".js"))||f?e([a],b):I([a],b,e)}function h(a,b){for(var c=a.split("-");c.length;){if(b(c.join("-")))return;c.pop()}b("ROOT")}
function p(b){b=v(b);h(b,function(b){if(0<=m.indexOf(c,b)){var f=a.replace(/\./g,"/")+"_"+b;u++;j(f,function(a){for(var c in a)d[k.toAbsMid(c)+"/"+b]=a[c];for(--u;!u&&z.length;)q.apply(null,z.shift())});return!0}return!1})}e=e||k;p();m.forEach(b.config.extraLocale,p)},s=function(){},t={},G=new Function("__bundle","__checkForLegacyModules","__mid","__amdValue","var define = function(mid, factory){define.called = 1; __amdValue.result = factory || mid;},\t   require = function(){define.called = 1;};try{define.called = 0;eval(__bundle);if(define.called==1)return __amdValue;if((__checkForLegacyModules = __checkForLegacyModules(__mid)))return __checkForLegacyModules;}catch(e){}try{return eval('('+__bundle+')');}catch(e){return e;}"),
I=function(a,b,c){var f=[];m.forEach(a,function(a){function b(c){c=G(c,s,a,t);c===t?f.push(d[e]=t.result):(c instanceof Error&&(console.error("failed to evaluate i18n bundle; url="+e,c),c={}),f.push(d[e]=/nls\/[^\/]+\/[^\/]+$/.test(e)?c:{root:c,_v1x:1}))}var e=c.toUrl(a+".js");if(d[e])f.push(d[e]);else{var j=c.syncLoadNls(a);if(j)f.push(j);else if(o)o.get({url:e,sync:!0,load:b,error:function(){f.push(d[e]={})}});else try{c.getText(e,!0,b)}catch(h){f.push(d[e]={})}}});b&&b.apply(null,f)},s=function(a){for(var c,
f=a.split("/"),e=b.global[f[0]],j=1;e&&j<f.length-1;e=e[f[j++]]);e&&((c=e[f[j]])||(c=e[f[j].replace(/-/g,"_")]),c&&(d[a]=c));return c};a.getLocalization=function(a,b,c){var d,a=j(a,b,c);q(a,!k.isXdUrl(k.toUrl(a+".js"))?function(a,b){I(a,b,k)}:k,function(a){d=a});return d};g("dojo-unit-tests")&&r.push(function(a){a.register("tests.i18n.unit",function(a){var b;b=G("{prop:1}",s,"nonsense",t);a.is({prop:1},b);a.is(void 0,b[1]);b=G("({prop:1})",s,"nonsense",t);a.is({prop:1},b);a.is(void 0,b[1]);b=G("{'prop-x':1}",
s,"nonsense",t);a.is({"prop-x":1},b);a.is(void 0,b[1]);b=G("({'prop-x':1})",s,"nonsense",t);a.is({"prop-x":1},b);a.is(void 0,b[1]);b=G("define({'prop-x':1})",s,"nonsense",t);a.is(t,b);a.is({"prop-x":1},t.result);b=G("define('some/module', {'prop-x':1})",s,"nonsense",t);a.is(t,b);a.is({"prop-x":1},t.result);b=G("this is total nonsense and should throw an error",s,"nonsense",t);a.is(b instanceof Error,!0)})});return n.mixin(a,{dynamic:!0,normalize:function(a,b){return/^\./.test(a)?b(a):a},load:q,cache:d})})},
"dojo/promise/tracer":function(){define("dojo/promise/tracer",["../_base/lang","./Promise","../Evented"],function(b,k,g){function m(b){setTimeout(function(){n.apply(l,b)},0)}var l=new g,n=l.emit;l.emit=null;k.prototype.trace=function(){var g=b._toArray(arguments);this.then(function(b){m(["resolved",b].concat(g))},function(b){m(["rejected",b].concat(g))},function(b){m(["progress",b].concat(g))});return this};k.prototype.traceRejected=function(){var g=b._toArray(arguments);this.otherwise(function(b){m(["rejected",
b].concat(g))});return this};return l})},"dojo/errors/RequestError":function(){define("dojo/errors/RequestError",["./create"],function(b){return b("RequestError",function(b,g){this.response=g})})},"dojo/_base/html":function(){define("./kernel,../dom,../dom-style,../dom-attr,../dom-prop,../dom-class,../dom-construct,../dom-geometry".split(","),function(b,k,g,m,l,n,o,i){b.byId=k.byId;b.isDescendant=k.isDescendant;b.setSelectable=k.setSelectable;b.getAttr=m.get;b.setAttr=m.set;b.hasAttr=m.has;b.removeAttr=
m.remove;b.getNodeProp=m.getNodeProp;b.attr=function(b,a,e){return 2==arguments.length?m["string"==typeof a?"get":"set"](b,a):m.set(b,a,e)};b.hasClass=n.contains;b.addClass=n.add;b.removeClass=n.remove;b.toggleClass=n.toggle;b.replaceClass=n.replace;b._toDom=b.toDom=o.toDom;b.place=o.place;b.create=o.create;b.empty=function(b){o.empty(b)};b._destroyElement=b.destroy=function(b){o.destroy(b)};b._getPadExtents=b.getPadExtents=i.getPadExtents;b._getBorderExtents=b.getBorderExtents=i.getBorderExtents;
b._getPadBorderExtents=b.getPadBorderExtents=i.getPadBorderExtents;b._getMarginExtents=b.getMarginExtents=i.getMarginExtents;b._getMarginSize=b.getMarginSize=i.getMarginSize;b._getMarginBox=b.getMarginBox=i.getMarginBox;b.setMarginBox=i.setMarginBox;b._getContentBox=b.getContentBox=i.getContentBox;b.setContentSize=i.setContentSize;b._isBodyLtr=b.isBodyLtr=i.isBodyLtr;b._docScroll=b.docScroll=i.docScroll;b._getIeDocumentElementOffset=b.getIeDocumentElementOffset=i.getIeDocumentElementOffset;b._fixIeBiDiScrollLeft=
b.fixIeBiDiScrollLeft=i.fixIeBiDiScrollLeft;b.position=i.position;b.marginBox=function(b,a){return a?i.setMarginBox(b,a):i.getMarginBox(b)};b.contentBox=function(b,a){return a?i.setContentSize(b,a):i.getContentBox(b)};b.coords=function(h,a){b.deprecated("dojo.coords()","Use dojo.position() or dojo.marginBox().");var h=k.byId(h),e=g.getComputedStyle(h),e=i.getMarginBox(h,e),c=i.position(h,a);e.x=c.x;e.y=c.y;return e};b.getProp=l.get;b.setProp=l.set;b.prop=function(b,a,e){return 2==arguments.length?
l["string"==typeof a?"get":"set"](b,a):l.set(b,a,e)};b.getStyle=g.get;b.setStyle=g.set;b.getComputedStyle=g.getComputedStyle;b.__toPixelValue=b.toPixelValue=g.toPixelValue;b.style=function(b,a,e){switch(arguments.length){case 1:return g.get(b);case 2:return g["string"==typeof a?"get":"set"](b,a)}return g.set(b,a,e)};return b})},"dojo/_base/kernel":function(){define(["../has","./config","require","module"],function(b,k,g,m){var l,n={},o={},i={config:k,global:this,dijit:n,dojox:o},n={dojo:["dojo",i],
dijit:["dijit",n],dojox:["dojox",o]},m=g.map&&g.map[m.id.match(/[^\/]+/)[0]];for(l in m)n[l]?n[l][0]=m[l]:n[l]=[m[l],{}];for(l in n)m=n[l],m[1]._scopeName=m[0],k.noGlobals||(this[m[0]]=m[1]);i.scopeMap=n;i.baseUrl=i.config.baseUrl=g.baseUrl;i.isAsync=g.async;i.locale=k.locale;m="$Rev: 585eba5 $".match(/\d+/);i.version={major:1,minor:8,patch:5,flag:"",revision:m?+m[0]:NaN,toString:function(){var a=i.version;return a.major+"."+a.minor+"."+a.patch+a.flag+" ("+a.revision+")"}};Function("d","d.eval = function(){return d.global.eval ? d.global.eval(arguments[0]) : eval(arguments[0]);}")(i);
i.exit=function(){};"undefined"!=typeof console||(console={});for(var n="assert,count,debug,dir,dirxml,error,group,groupEnd,info,profile,profileEnd,time,timeEnd,trace,warn,log".split(","),h,m=0;h=n[m++];)console[h]||function(){var a=h+"";console[a]="log"in console?function(){var b=Array.apply({},arguments);b.unshift(a+":");console.log(b.join(" "))}:function(){};console[a]._fake=!0}();b.add("dojo-debug-messages",!!k.isDebug);i.deprecated=i.experimental=function(){};if(b("dojo-debug-messages"))i.deprecated=
function(a,b,c){a="DEPRECATED: "+a;b&&(a+=" "+b);c&&(a+=" -- will be removed in version: "+c);console.warn(a)},i.experimental=function(a,b){var c="EXPERIMENTAL: "+a+" -- APIs subject to change without notice.";b&&(c+=" "+b);console.warn(c)};if(k.modulePaths){i.deprecated("dojo.modulePaths","use paths configuration");b={};for(l in k.modulePaths)b[l.replace(/\./g,"/")]=k.modulePaths[l];g({paths:b})}i.moduleUrl=function(a,b){i.deprecated("dojo.moduleUrl()","use require.toUrl","2.0");var c=null;a&&(c=
g.toUrl(a.replace(/\./g,"/")+(b?"/"+b:"")+"/*.*").replace(/\/\*\.\*/,"")+(b?"":"/"));return c};i._hasResource={};return i})},"dojo/io-query":function(){define(["./_base/lang"],function(b){var k={};return{objectToQuery:function(g){var m=encodeURIComponent,l=[],n;for(n in g){var o=g[n];if(o!=k[n]){var i=m(n)+"=";if(b.isArray(o))for(var h=0,a=o.length;h<a;++h)l.push(i+m(o[h]));else l.push(i+m(o))}}return l.join("&")},queryToObject:function(g){for(var k=decodeURIComponent,g=g.split("&"),l={},n,o,i=0,
h=g.length;i<h;++i)if(o=g[i],o.length){var a=o.indexOf("=");0>a?(n=k(o),o=""):(n=k(o.slice(0,a)),o=k(o.slice(a+1)));"string"==typeof l[n]&&(l[n]=[l[n]]);b.isArray(l[n])?l[n].push(o):l[n]=o}return l}}})},"dojo/_base/Deferred":function(){define("./kernel,../Deferred,../promise/Promise,../errors/CancelError,../has,./lang,../when".split(","),function(b,k,g,m,l,n,o){var i=function(){},h=Object.freeze||function(){},a=b.Deferred=function(b){function c(a){if(p)throw Error("This deferred has already been resolved");
j=a;p=!0;d()}function d(){for(var a;!a&&o;){var b=o;o=o.next;if(a=b.progress==i)p=!1;var c=f?b.error:b.resolved;l("config-useDeferredInstrumentation")&&f&&k.instrumentRejected&&k.instrumentRejected(j,!!c);if(c)try{var d=c(j);d&&"function"===typeof d.then?d.then(n.hitch(b.deferred,"resolve"),n.hitch(b.deferred,"reject"),n.hitch(b.deferred,"progress")):(c=a&&void 0===d,a&&!c&&(f=d instanceof Error),b.deferred[c&&f?"reject":"resolve"](c?j:d))}catch(e){b.deferred.reject(e)}else f?b.deferred.reject(j):
b.deferred.resolve(j)}}var j,p,f,q,o,v=this.promise=new g;this.resolve=this.callback=function(a){this.fired=0;this.results=[a,null];c(a)};this.reject=this.errback=function(a){f=!0;this.fired=1;l("config-useDeferredInstrumentation")&&k.instrumentRejected&&k.instrumentRejected(a,!!o);c(a);this.results=[null,a]};this.progress=function(a){for(var b=o;b;){var c=b.progress;c&&c(a);b=b.next}};this.addCallbacks=function(a,b){this.then(a,b,i);return this};v.then=this.then=function(b,c,f){var e=f==i?this:new a(v.cancel),
b={resolved:b,error:c,progress:f,deferred:e};o?q=q.next=b:o=q=b;p&&d();return e.promise};var u=this;v.cancel=this.cancel=function(){if(!p){var a=b&&b(u);if(!p)a instanceof Error||(a=new m(a)),a.log=!1,u.reject(a)}};h(v)};n.extend(a,{addCallback:function(a){return this.addCallbacks(n.hitch.apply(b,arguments))},addErrback:function(a){return this.addCallbacks(null,n.hitch.apply(b,arguments))},addBoth:function(a){var c=n.hitch.apply(b,arguments);return this.addCallbacks(c,c)},fired:-1});a.when=b.when=
o;return a})},"dojo/NodeList-dom":function(){define("./_base/kernel,./query,./_base/array,./_base/lang,./dom-class,./dom-construct,./dom-geometry,./dom-attr,./dom-style".split(","),function(b,k,g,m,l,n,o,i,h){function a(a){return function(b,c,d){return 2==arguments.length?a["string"==typeof c?"get":"set"](b,c):a.set(b,c,d)}}var e=function(a){return 1==a.length&&"string"==typeof a[0]},c=function(a){var b=a.parentNode;b&&b.removeChild(a)},d=k.NodeList,j=d._adaptWithCondition,p=d._adaptAsForEach,f=d._adaptAsMap;
m.extend(d,{_normalize:function(a,c){var d=!0===a.parse;if("string"==typeof a.template)var f=a.templateFunc||b.string&&b.string.substitute,a=f?f(a.template,a):a;f=typeof a;"string"==f||"number"==f?(a=n.toDom(a,c&&c.ownerDocument),a=11==a.nodeType?m._toArray(a.childNodes):[a]):m.isArrayLike(a)?m.isArray(a)||(a=m._toArray(a)):a=[a];if(d)a._runParse=!0;return a},_cloneNode:function(a){return a.cloneNode(!0)},_place:function(a,c,d,f){if(!(1!=c.nodeType&&"only"==d))for(var e,j=a.length,h=j-1;0<=h;h--){var p=
f?this._cloneNode(a[h]):a[h];if(a._runParse&&b.parser&&b.parser.parse){e||(e=c.ownerDocument.createElement("div"));e.appendChild(p);b.parser.parse(e);for(p=e.firstChild;e.firstChild;)e.removeChild(e.firstChild)}h==j-1?n.place(p,c,d):c.parentNode.insertBefore(p,c);c=p}},position:f(o.position),attr:j(a(i),e),style:j(a(h),e),addClass:p(l.add),removeClass:p(l.remove),toggleClass:p(l.toggle),replaceClass:p(l.replace),empty:p(n.empty),removeAttr:p(i.remove),marginBox:f(o.getMarginBox),place:function(a,
b){var c=k(a)[0];return this.forEach(function(a){n.place(a,c,b)})},orphan:function(a){return(a?k._filterResult(this,a):this).forEach(c)},adopt:function(a,b){return k(a).place(this[0],b)._stash(this)},query:function(a){if(!a)return this;var b=new d;this.map(function(c){k(a,c).forEach(function(a){void 0!==a&&b.push(a)})});return b._stash(this)},filter:function(a){var b=arguments,c=this,d=0;if("string"==typeof a){c=k._filterResult(this,b[0]);if(1==b.length)return c._stash(this);d=1}return this._wrap(g.filter(c,
b[d],b[d+1]),this)},addContent:function(a,b){for(var a=this._normalize(a,this[0]),c=0,d;d=this[c];c++)this._place(a,d,b,0<c);return this}});return d})},"dojo/query":function(){define("./_base/kernel,./has,./dom,./on,./_base/array,./_base/lang,./selector/_loader,./selector/_loader!default".split(","),function(b,k,g,m,l,n,o,i){function h(a,b){var c=function(c,d){if("string"==typeof d&&(d=g.byId(d),!d))return new b([]);var f="string"==typeof c?a(c,d):c?c.orphan?c:[c]:[];return f.orphan?f:new b(f)};c.matches=
a.match||function(a,b,d){return 0<c.filter([a],b,d).length};c.filter=a.filter||function(a,b,d){return c(b,d).filter(function(b){return-1<l.indexOf(a,b)})};if("function"!=typeof a)var d=a.search,a=function(a,b){return d(b||document,a)};return c}k.add("array-extensible",function(){return 1==n.delegate([],{length:1}).length&&!k("bug-for-in-skips-shadowed")});var a=Array.prototype,e=a.slice,c=a.concat,d=l.forEach,j=function(a,c,d){c=[0].concat(e.call(c,0));d=d||b.global;return function(b){c[0]=b;return a.apply(d,
c)}},p=function(a){var b=this instanceof f&&k("array-extensible");"number"==typeof a&&(a=Array(a));var c=a&&"length"in a?a:arguments;if(b||!c.sort){for(var d=b?this:[],e=d.length=c.length,j=0;j<e;j++)d[j]=c[j];if(b)return d;c=d}n._mixin(c,q);c._NodeListCtor=function(a){return f(a)};return c},f=p,q=f.prototype=k("array-extensible")?[]:{};f._wrap=q._wrap=function(a,b,c){a=new (c||this._NodeListCtor||f)(a);return b?a._stash(b):a};f._adaptAsMap=function(a,b){return function(){return this.map(j(a,arguments,
b))}};f._adaptAsForEach=function(a,b){return function(){this.forEach(j(a,arguments,b));return this}};f._adaptAsFilter=function(a,b){return function(){return this.filter(j(a,arguments,b))}};f._adaptWithCondition=function(a,c,d){return function(){var f=arguments,e=j(a,f,d);if(c.call(d||b.global,f))return this.map(e);this.forEach(e);return this}};d(["slice","splice"],function(b){var c=a[b];q[b]=function(){return this._wrap(c.apply(this,arguments),"slice"==b?this:null)}});d(["indexOf","lastIndexOf","every",
"some"],function(a){var c=l[a];q[a]=function(){return c.apply(b,[this].concat(e.call(arguments,0)))}});n.extend(p,{constructor:f,_NodeListCtor:f,toString:function(){return this.join(",")},_stash:function(a){this._parent=a;return this},on:function(a,b){var c=this.map(function(c){return m(c,a,b)});c.remove=function(){for(var a=0;a<c.length;a++)c[a].remove()};return c},end:function(){return this._parent?this._parent:new this._NodeListCtor(0)},concat:function(a){var b=e.call(this,0),d=l.map(arguments,
function(a){return e.call(a,0)});return this._wrap(c.apply(b,d),this)},map:function(a,b){return this._wrap(l.map(this,a,b),this)},forEach:function(a,b){d(this,a,b);return this},filter:function(a){var b=arguments,c=this,d=0;if("string"==typeof a){c=r._filterResult(this,b[0]);if(1==b.length)return c._stash(this);d=1}return this._wrap(l.filter(c,b[d],b[d+1]),this)},instantiate:function(a,b){var c=n.isFunction(a)?a:n.getObject(a),b=b||{};return this.forEach(function(a){new c(b,a)})},at:function(){var a=
new this._NodeListCtor(0);d(arguments,function(b){0>b&&(b=this.length+b);this[b]&&a.push(this[b])},this);return a._stash(this)}});var r=h(i,p);b.query=h(i,function(a){return p(a)});r.load=function(a,b,c){o.load(a,b,function(a){c(h(a,p))})};b._filterQueryResult=r._filterResult=function(a,b,c){return new p(r.filter(a,b,c))};b.NodeList=r.NodeList=p;return r})},"dojo/has":function(){define(["require","module"],function(b){var k=b.has||function(){};k.add("dom-addeventlistener",!!document.addEventListener);
k.add("touch","ontouchstart"in document||0<window.navigator.msMaxTouchPoints);k.add("device-width",screen.availWidth||innerWidth);b=document.createElement("form");k.add("dom-attributes-explicit",0==b.attributes.length);k.add("dom-attributes-specified-flag",0<b.attributes.length&&40>b.attributes.length);k.clearElement=function(b){b.innerHTML="";return b};k.normalize=function(b,m){var l=b.match(/[\?:]|[^:\?]*/g),n=0,o=function(b){var h=l[n++];if(":"==h)return 0;if("?"==l[n++]){if(!b&&k(h))return o();
o(!0);return o(b)}return h||0};return(b=o())&&m(b)};k.load=function(b,k,l){b?k([b],l):l()};return k})},"dojo/_base/loader":function(){define("./kernel,../has,require,module,./json,./lang,./array".split(","),function(b,k,g,m,l,n,o){var i=function(a){return a.replace(/\./g,"/")},h=/\/\/>>built/,a=[],e=[],c=function(b,c,f){a.push(f);o.forEach(b.split(","),function(a){a=O(a,c.module);e.push(a);V(a)});d()},d=function(){var b,c;for(c in J){b=J[c];if(void 0===b.noReqPluginCheck)b.noReqPluginCheck=/loadInit\!/.test(c)||
/require\!/.test(c)?1:0;if(!b.executed&&!b.noReqPluginCheck&&b.injected==z)return}E(function(){var b=a;a=[];o.forEach(b,function(a){a(1)})})},j=function(a,c,d){var f=/\(|\)/g,e=1;for(f.lastIndex=c;(c=f.exec(a))&&!(e=")"==c[0]?e-1:e+1,0==e););if(0!=e)throw"unmatched paren around character "+f.lastIndex+" in: "+a;return[b.trim(a.substring(d,f.lastIndex))+";\n",f.lastIndex]},p=/(\/\*([\s\S]*?)\*\/|\/\/(.*)$)/mg,f=/(^|\s)dojo\.(loadInit|require|provide|requireLocalization|requireIf|requireAfterIf|platformRequire)\s*\(/mg,
q=/(^|\s)(require|define)\s*\(/m,r=function(a,b){var c,d,e,h=[],i=[];c=[];for(b=b||a.replace(p,function(a){f.lastIndex=q.lastIndex=0;return f.test(a)||q.test(a)?"":a});c=f.exec(b);)d=f.lastIndex,e=d-c[0].length,d=j(b,d,e),"loadInit"==c[2]?h.push(d[0]):i.push(d[0]),f.lastIndex=d[1];c=h.concat(i);return c.length||!q.test(b)?[a.replace(/(^|\s)dojo\.loadInit\s*\(/g,"\n0 && dojo.loadInit("),c.join(""),c]:0},v=g.initSyncLoader(c,d,function(a,c){var d,f,e=[],j=[];if(h.test(c)||!(d=r(c)))return 0;f=a.mid+
"-*loadInit";for(var p in O("dojo",a).result.scopeMap)e.push(p),j.push('"'+p+'"');return"// xdomain rewrite of "+a.mid+"\ndefine('"+f+"',{\n\tnames:"+b.toJson(e)+",\n\tdef:function("+e.join(",")+"){"+d[1]+"}});\n\ndefine("+b.toJson(e.concat(["dojo/loadInit!"+f]))+", function("+e.join(",")+"){\n"+d[0]+"});"}),u=v.sync,z=v.requested,w=v.arrived,s=v.nonmodule,t=v.executing,G=v.executed,I=v.syncExecStack,J=v.modules,H=v.execQ,O=v.getModule,V=v.injectModule,y=v.setArrived,B=v.signal,L=v.finishExec,D=v.execModule,
F=v.getLegacyMode,E=v.guardCheckComplete,c=v.dojoRequirePlugin;b.provide=function(a){var b=I[0],c=n.mixin(O(i(a),g.module),{executed:t,result:n.getObject(a,!0)});y(c);if(b)(b.provides||(b.provides=[])).push(function(){c.result=n.getObject(a);delete c.provides;c.executed!==G&&L(c)});return c.result};k.add("config-publishRequireResult",1,0,0);b.require=function(a,b){var c=function(a,b){var c=O(i(a),g.module);if(I.length&&I[0].finish)I[0].finish.push(a);else{if(c.executed)return c.result;b&&(c.result=
s);var d=F();V(c);d=F();c.executed!==G&&c.injected===w&&v.guardCheckComplete(function(){D(c)});if(c.executed)return c.result;d==u?c.cjs?H.unshift(c):I.length&&(I[0].finish=[a]):H.push(c)}}(a,b);k("config-publishRequireResult")&&!n.exists(a)&&void 0!==c&&n.setObject(a,c);return c};b.loadInit=function(a){a()};b.registerModulePath=function(a,b){var c={};c[a.replace(/\./g,"/")]=b;g({paths:c})};b.platformRequire=function(a){for(var a=(a.common||[]).concat(a[b._name]||a["default"]||[]),c;a.length;)n.isArray(c=
a.shift())?b.require.apply(b,c):b.require(c)};b.requireIf=b.requireAfterIf=function(a,c,d){a&&b.require(c,d)};b.requireLocalization=function(a,b,c){g(["../i18n"],function(d){d.getLocalization(a,b,c)})};return{extractLegacyApiApplications:r,require:c,loadInit:function(a,d,f){d([a],function(a){d(a.names,function(){for(var e="",j=[],h=0;h<arguments.length;h++)e+="var "+a.names[h]+"= arguments["+h+"]; ",j.push(arguments[h]);eval(e);var p=d.module,n=[],g,e={provide:function(a){a=i(a);a=O(a,p);a!==p&&y(a)},
require:function(a,b){a=i(a);b&&(O(a,p).result=s);n.push(a)},requireLocalization:function(a,c,d){g||(g=["dojo/i18n"]);d=(d||b.locale).toLowerCase();a=i(a)+"/nls/"+(/root/i.test(d)?"":d+"/")+i(c);O(a,p).isXd&&g.push("dojo/i18n!"+a)},loadInit:function(a){a()}},h={},l;try{for(l in e)h[l]=b[l],b[l]=e[l];a.def.apply(null,j)}catch(o){B("error",[{src:m.id,id:"failedDojoLoadInit"},o])}finally{for(l in e)b[l]=h[l]}g&&(n=n.concat(g));n.length?c(n.join(","),d,f):f()})})}}})},"dojo/json":function(){define(["./has"],
function(b){var k="undefined"!=typeof JSON;b.add("json-parse",k);b.add("json-stringify",k&&'{"a":1}'==JSON.stringify({a:0},function(b,g){return g||1}));if(b("json-stringify"))return JSON;var g=function(b){return('"'+b.replace(/(["\\])/g,"\\$1")+'"').replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r")};return{parse:b("json-parse")?JSON.parse:function(b,g){if(g&&!/^([\s\[\{]*(?:"(?:\\.|[^"])+"|-?\d[\d\.]*(?:[Ee][+-]?\d+)?|null|true|false|)[\s\]\}]*(?:,|:|$))+$/.test(b))throw new SyntaxError("Invalid characters in JSON");
return eval("("+b+")")},stringify:function(b,l,n){function o(b,a,e){l&&(b=l(e,b));var c;c=typeof b;if("number"==c)return isFinite(b)?b+"":"null";if("boolean"==c)return b+"";if(null===b)return"null";if("string"==typeof b)return g(b);if("function"==c||"undefined"==c)return i;if("function"==typeof b.toJSON)return o(b.toJSON(e),a,e);if(b instanceof Date)return'"{FullYear}-{Month+}-{Date}T{Hours}:{Minutes}:{Seconds}Z"'.replace(/\{(\w+)(\+)?\}/g,function(a,c,d){a=b["getUTC"+c]()+(d?1:0);return 10>a?"0"+
a:a});if(b.valueOf()!==b)return o(b.valueOf(),a,e);var d=n?a+n:"",j=n?" ":"",p=n?"\n":"";if(b instanceof Array){for(var j=b.length,f=[],e=0;e<j;e++)c=o(b[e],d,e),"string"!=typeof c&&(c="null"),f.push(p+d+c);return"["+f.join(",")+p+a+"]"}f=[];for(e in b){var q;if(b.hasOwnProperty(e)){if("number"==typeof e)q='"'+e+'"';else if("string"==typeof e)q=g(e);else continue;c=o(b[e],d,e);"string"==typeof c&&f.push(p+d+q+":"+j+c)}}return"{"+f.join(",")+p+a+"}"}var i;"string"==typeof l&&(n=l,l=null);return o(b,
"","")}}})},"dojo/_base/declare":function(){define("dojo/_base/declare",["./kernel","../has","./lang"],function(b,k,g){function m(a,b){throw Error("declare"+(b?" "+b:"")+": "+a);}function l(a,b,c){var d,f,e,j,p,h,i,g=this._inherited=this._inherited||{};"string"==typeof a&&(d=a,a=b,b=c);c=0;j=a.callee;(d=d||j.nom)||m("can't deduce a name to call inherited()",this.declaredClass);p=this.constructor._meta;e=p.bases;i=g.p;if(d!=t){if(g.c!==j&&(i=0,h=e[0],p=h._meta,p.hidden[d]!==j)){(f=p.chains)&&"string"==
typeof f[d]&&m("calling chained method with inherited: "+d,this.declaredClass);do if(p=h._meta,f=h.prototype,p&&(f[d]===j&&f.hasOwnProperty(d)||p.hidden[d]===j))break;while(h=e[++i]);i=h?i:-1}if(h=e[++i])if(f=h.prototype,h._meta&&f.hasOwnProperty(d))c=f[d];else{j=u[d];do if(f=h.prototype,(c=f[d])&&(h._meta?f.hasOwnProperty(d):c!==j))break;while(h=e[++i])}c=h&&c||u[d]}else{if(g.c!==j&&(i=0,(p=e[0]._meta)&&p.ctor!==j)){f=p.chains;for((!f||"manual"!==f.constructor)&&m("calling chained constructor with inherited",
this.declaredClass);(h=e[++i])&&!((p=h._meta)&&p.ctor===j););i=h?i:-1}for(;(h=e[++i])&&!(c=(p=h._meta)?p.ctor:h););c=h&&c}g.c=c;g.p=i;if(c)return!0===b?c:c.apply(this,b||a)}function n(a,b){return"string"==typeof a?this.__inherited(a,b,!0):this.__inherited(a,!0)}function o(a,b,c){var d=this.getInherited(a,b);if(d)return d.apply(this,c||b||a)}function i(a){for(var b=this.constructor._meta.bases,c=0,d=b.length;c<d;++c)if(b[c]===a)return!0;return this instanceof a}function h(a,b){for(var c in b)c!=t&&
b.hasOwnProperty(c)&&(a[c]=b[c]);if(k("bug-for-in-skips-shadowed"))for(var d=g._extraNames,f=d.length;f;)c=d[--f],c!=t&&b.hasOwnProperty(c)&&(a[c]=b[c])}function a(a){r.safeMixin(this.prototype,a);return this}function e(a){return r([this].concat(a))}function c(a,b){return function(){var x;var c=arguments,d=c,f=c[0],e,j;j=a.length;var p;if(!(this instanceof c.callee))return q(c);if(b&&(f&&f.preamble||this.preamble)){p=Array(a.length);p[0]=c;for(e=0;;){if(f=c[0])(f=f.preamble)&&(c=f.apply(this,c)||
c);f=a[e].prototype;(f=f.hasOwnProperty("preamble")&&f.preamble)&&(c=f.apply(this,c)||c);if(++e==j)break;p[e]=c}}for(e=j-1;0<=e;--e)f=a[e],(x=(j=f._meta)?j.ctor:f,f=x)&&f.apply(this,p?p[e]:c);(f=this.postscript)&&f.apply(this,d)}}function d(a,b){return function(){var c=arguments,d=c,f=c[0];if(!(this instanceof c.callee))return q(c);if(b){if(f)(f=f.preamble)&&(d=f.apply(this,d)||d);(f=this.preamble)&&f.apply(this,d)}a&&a.apply(this,c);(f=this.postscript)&&f.apply(this,c)}}function j(a){return function(){var x;
var b=arguments,c=0,d,f;if(!(this instanceof b.callee))return q(b);for(;d=a[c];++c)if(x=(f=d._meta)?f.ctor:d,d=x){d.apply(this,b);break}(d=this.postscript)&&d.apply(this,b)}}function p(a,b,c){return function(){var d,f,e=0,j=1;c&&(e=b.length-1,j=-1);for(;d=b[e];e+=j)f=d._meta,(d=(f?f.hidden:d.prototype)[a])&&d.apply(this,arguments)}}function f(a){w.prototype=a.prototype;a=new w;w.prototype=null;return a}function q(a){var b=a.callee,c=f(b);b.apply(c,a);return c}function r(b,o,q){"string"!=typeof b&&
(q=o,o=b,b="");var q=q||{},k,w,y,B,L,D,F,E=1,da=o;if("[object Array]"==z.call(o)){E=b;y=[];B=[{cls:0,refs:[]}];D={};for(var Q=1,W=o.length,M=0,C,S,A,x;M<W;++M){(C=o[M])?"[object Function]"!=z.call(C)&&m("mixin #"+M+" is not a callable constructor.",E):m("mixin #"+M+" is unknown. Did you use dojo.require to pull it in?",E);S=C._meta?C._meta.bases:[C];A=0;for(C=S.length-1;0<=C;--C){x=S[C].prototype;if(!x.hasOwnProperty("declaredClass"))x.declaredClass="uniqName_"+s++;x=x.declaredClass;D.hasOwnProperty(x)||
(D[x]={count:0,refs:[],cls:S[C]},++Q);x=D[x];A&&A!==x&&(x.refs.push(A),++A.count);A=x}++A.count;B[0].refs.push(A)}for(;B.length;){A=B.pop();y.push(A.cls);for(--Q;w=A.refs,1==w.length;){A=w[0];if(!A||--A.count){A=0;break}y.push(A.cls);--Q}if(A)for(M=0,W=w.length;M<W;++M)A=w[M],--A.count||B.push(A)}Q&&m("can't build consistent linearization",E);C=o[0];y[0]=C?C._meta&&C===y[y.length-C._meta.bases.length]?C._meta.bases.length:1:0;D=y;y=D[0];E=D.length-y;o=D[E]}else D=[0],o?"[object Function]"==z.call(o)?
(y=o._meta,D=D.concat(y?y.bases:o)):m("base class is not a callable constructor.",b):null!==o&&m("unknown base class. Did you use dojo.require to pull it in?",b);if(o)for(w=E-1;;--w){k=f(o);if(!w)break;y=D[w];(y._meta?h:v)(k,y.prototype);B=new Function;B.superclass=o;B.prototype=k;o=k.constructor=B}else k={};r.safeMixin(k,q);y=q.constructor;if(y!==u.constructor)y.nom=t,k.constructor=y;for(w=E-1;w;--w)(y=D[w]._meta)&&y.chains&&(F=v(F||{},y.chains));k["-chains-"]&&(F=v(F||{},k["-chains-"]));y=!F||!F.hasOwnProperty(t);
D[0]=B=F&&"manual"===F.constructor?j(D):1==D.length?d(q.constructor,y):c(D,y);B._meta={bases:D,hidden:q,chains:F,parents:da,ctor:q.constructor};B.superclass=o&&o.prototype;B.extend=a;B.createSubclass=e;B.prototype=k;k.constructor=B;k.getInherited=n;k.isInstanceOf=i;k.inherited=G;k.__inherited=l;if(b)k.declaredClass=b,g.setObject(b,B);if(F)for(L in F)if(k[L]&&"string"==typeof F[L]&&L!=t)y=k[L]=p(L,D,"after"===F[L]),y.nom=L;return B}var v=g.mixin,u=Object.prototype,z=u.toString,w=new Function,s=0,t=
"constructor",G=b.config.isDebug?o:l;b.safeMixin=r.safeMixin=function(a,b){var c,d;for(c in b)if(d=b[c],(d!==u[c]||!(c in u))&&c!=t){if("[object Function]"==z.call(d))d.nom=c;a[c]=d}if(k("bug-for-in-skips-shadowed"))for(var f=g._extraNames,e=f.length;e;)if(c=f[--e],d=b[c],(d!==u[c]||!(c in u))&&c!=t){if("[object Function]"==z.call(d))d.nom=c;a[c]=d}return a};return b.declare=r})},"dojo/dom":function(){define(["./sniff","./_base/window"],function(b,k){if(7>=b("ie"))try{document.execCommand("BackgroundImageCache",
!1,!0)}catch(g){}var m={};m.byId=b("ie")?function(b,g){if("string"!=typeof b)return b;var i=g||k.doc,h=b&&i.getElementById(b);if(h&&(h.attributes.id.value==b||h.id==b))return h;i=i.all[b];if(!i||i.nodeName)i=[i];for(var a=0;h=i[a++];)if(h.attributes&&h.attributes.id&&h.attributes.id.value==b||h.id==b)return h}:function(b,g){return("string"==typeof b?(g||k.doc).getElementById(b):b)||null};m.isDescendant=function(b,g){try{b=m.byId(b);for(g=m.byId(g);b;){if(b==g)return!0;b=b.parentNode}}catch(i){}return!1};
b.add("css-user-select",function(b,g,i){if(!i)return!1;var b=i.style,g=["Khtml","O","ms","Moz","Webkit"],i=g.length,h="userSelect";do if("undefined"!==typeof b[h])return h;while(i--&&(h=g[i]+"UserSelect"));return!1});var l=b("css-user-select");m.setSelectable=l?function(b,g){m.byId(b).style[l]=g?"":"none"}:function(b,g){var b=m.byId(b),i=b.getElementsByTagName("*"),h=i.length;if(g)for(b.removeAttribute("unselectable");h--;)i[h].removeAttribute("unselectable");else for(b.setAttribute("unselectable",
"on");h--;)i[h].setAttribute("unselectable","on")};return m})},"dojo/_base/browser":function(){require.has&&require.has.add("config-selectorEngine","acme");define("../ready,./kernel,./connect,./unload,./window,./event,./html,./NodeList,../query,./xhr,./fx".split(","),function(b){return b})},"dojo/selector/acme":function(){define(["../dom","../sniff","../_base/array","../_base/lang","../_base/window"],function(b,k,g,m,l){var n=m.trim,o=g.forEach,i="BackCompat"==l.doc.compatMode,h=!1,a=function(){return!0},
e=function(a){for(var a=0<=">~+".indexOf(a.slice(-1))?a+" * ":a+" ",b=function(b,c){return n(a.slice(b,c))},c=[],d=-1,f=-1,e=-1,j=-1,p=-1,i=-1,g=-1,l,o="",k="",q,m=0,r=a.length,t=null,s=null,v=function(){if(0<=i)t.id=b(i,m).replace(/\\/g,""),i=-1;if(0<=g){var a=g==m?null:b(g,m);t[0>">~+".indexOf(a)?"tag":"oper"]=a;g=-1}0<=p&&(t.classes.push(b(p+1,m).replace(/\\/g,"")),p=-1)};o=k,k=a.charAt(m),m<r;m++)if("\\"!=o)if(t||(q=m,t={query:null,pseudos:[],attrs:[],classes:[],tag:null,oper:null,id:null,getTag:function(){return h?
this.otag:this.tag}},g=m),l)k==l&&(l=null);else if("'"==k||'"'==k)l=k;else if(0<=d)if("]"==k){s.attr?s.matchFor=b(e||d+1,m):s.attr=b(d+1,m);if((d=s.matchFor)&&('"'==d.charAt(0)||"'"==d.charAt(0)))s.matchFor=d.slice(1,-1);if(s.matchFor)s.matchFor=s.matchFor.replace(/\\/g,"");t.attrs.push(s);s=null;d=e=-1}else{if("="==k)e=0<="|~^$*".indexOf(o)?o:"",s.type=e+k,s.attr=b(d+1,m-e.length),e=m+1}else if(0<=f){if(")"==k){if(0<=j)s.value=b(f+1,m);j=f=-1}}else if("#"==k)v(),i=m+1;else if("."==k)v(),p=m;else if(":"==
k)v(),j=m;else if("["==k)v(),d=m,s={};else if("("==k)0<=j&&(s={name:b(j+1,m),value:null},t.pseudos.push(s)),f=m;else if(" "==k&&o!=k){v();0<=j&&t.pseudos.push({name:b(j+1,m)});t.loops=t.pseudos.length||t.attrs.length||t.classes.length;t.oquery=t.query=b(q,m);t.otag=t.tag=t.oper?null:t.tag||"*";if(t.tag)t.tag=t.tag.toUpperCase();if(c.length&&c[c.length-1].oper)t.infixOper=c.pop(),t.query=t.infixOper.query+" "+t.query;c.push(t);t=null}return c},c=function(a,b){return!a?b:!b?a:function(){return a.apply(window,
arguments)&&b.apply(window,arguments)}},d=function(a,b){var c=b||[];a&&c.push(a);return c},j=function(a){return 1==a.nodeType},p=function(a,b){return!a?"":"class"==b?a.className||"":"for"==b?a.htmlFor||"":"style"==b?a.style.cssText||"":(h?a.getAttribute(b):a.getAttribute(b,2))||""},f={"*=":function(a,b){return function(c){return 0<=p(c,a).indexOf(b)}},"^=":function(a,b){return function(c){return 0==p(c,a).indexOf(b)}},"$=":function(a,b){return function(c){var c=" "+p(c,a),d=c.lastIndexOf(b);return-1<
d&&d==c.length-b.length}},"~=":function(a,b){var c=" "+b+" ";return function(b){return 0<=(" "+p(b,a)+" ").indexOf(c)}},"|=":function(a,b){var c=b+"-";return function(d){d=p(d,a);return d==b||0==d.indexOf(c)}},"=":function(a,b){return function(c){return p(c,a)==b}}},q="undefined"==typeof l.doc.firstChild.nextElementSibling,r=!q?"nextElementSibling":"nextSibling",v=!q?"previousElementSibling":"previousSibling",u=q?j:a,z=function(a){for(;a=a[v];)if(u(a))return!1;return!0},w=function(a){for(;a=a[r];)if(u(a))return!1;
return!0},s=function(a){var b=a.parentNode,b=7!=b.nodeType?b:b.nextSibling,c=0,d=b.children||b.childNodes,f=a._i||a.getAttribute("_i")||-1,e=b._l||("undefined"!==typeof b.getAttribute?b.getAttribute("_l"):-1);if(!d)return-1;d=d.length;if(e==d&&0<=f&&0<=e)return f;k("ie")&&"undefined"!==typeof b.setAttribute?b.setAttribute("_l",d):b._l=d;f=-1;for(b=b.firstElementChild||b.firstChild;b;b=b[r])if(u(b))k("ie")?b.setAttribute("_i",++c):b._i=++c,a===b&&(f=c);return f},t=function(a){return!(s(a)%2)},G=function(a){return s(a)%
2},I={checked:function(){return function(a){return!!("checked"in a?a.checked:a.selected)}},disabled:function(){return function(a){return a.disabled}},enabled:function(){return function(a){return!a.disabled}},"first-child":function(){return z},"last-child":function(){return w},"only-child":function(){return function(a){return z(a)&&w(a)}},empty:function(){return function(a){for(var b=a.childNodes,a=a.childNodes.length-1;0<=a;a--){var c=b[a].nodeType;if(1===c||3==c)return!1}return!0}},contains:function(a,
b){var c=b.charAt(0);if('"'==c||"'"==c)b=b.slice(1,-1);return function(a){return 0<=a.innerHTML.indexOf(b)}},not:function(a,b){var c=e(b)[0],d={el:1};if("*"!=c.tag)d.tag=1;if(!c.classes.length)d.classes=1;var f=H(c,d);return function(a){return!f(a)}},"nth-child":function(a,b){var c=parseInt;if("odd"==b)return G;if("even"==b)return t;if(-1!=b.indexOf("n")){var d=b.split("n",2),f=d[0]?"-"==d[0]?-1:c(d[0]):1,e=d[1]?c(d[1]):0,j=0,p=-1;0<f?0>e?e=e%f&&f+e%f:0<e&&(e>=f&&(j=e-e%f),e%=f):0>f&&(f*=-1,0<e&&
(p=e,e%=f));if(0<f)return function(a){a=s(a);return a>=j&&(0>p||a<=p)&&a%f==e};b=e}var h=c(b);return function(a){return s(a)==h}}},J=9>k("ie")||9==k("ie")&&k("quirks")?function(a){var b=a.toLowerCase();"class"==b&&(a="className");return function(c){return h?c.getAttribute(a):c[a]||c[b]}}:function(a){return function(b){return b&&b.getAttribute&&b.hasAttribute(a)}},H=function(b,d){if(!b)return a;var d=d||{},e=null;"el"in d||(e=c(e,j));"tag"in d||"*"!=b.tag&&(e=c(e,function(a){return a&&(h?a.tagName:
a.tagName.toUpperCase())==b.getTag()}));"classes"in d||o(b.classes,function(a,b){var d=RegExp("(?:^|\\s)"+a+"(?:\\s|$)");e=c(e,function(a){return d.test(a.className)});e.count=b});"pseudos"in d||o(b.pseudos,function(a){var b=a.name;I[b]&&(e=c(e,I[b](b,a.value)))});"attrs"in d||o(b.attrs,function(a){var b,d=a.attr;a.type&&f[a.type]?b=f[a.type](d,a.matchFor):d.length&&(b=J(d));b&&(e=c(e,b))});"id"in d||b.id&&(e=c(e,function(a){return!!a&&a.id==b.id}));e||"default"in d||(e=a);return e},O=function(a){return function(b,
c,d){for(;b=b[r];)if(!q||j(b)){(!d||K(b,d))&&a(b)&&c.push(b);break}return c}},V=function(a){return function(b,c,d){for(b=b[r];b;){if(u(b)){if(d&&!K(b,d))break;a(b)&&c.push(b)}b=b[r]}return c}},y=function(b){b=b||a;return function(a,c,d){for(var f=0,e=a.children||a.childNodes;a=e[f++];)u(a)&&(!d||K(a,d))&&b(a,f)&&c.push(a);return c}},B={},L=function(c){var f=B[c.query];if(f)return f;var e=c.infixOper,e=e?e.oper:"",j=H(c,{el:1}),p="*"==c.tag,h=l.doc.getElementsByClassName;if(e){h={el:1};if(p)h.tag=
1;j=H(c,h);"+"==e?f=O(j):"~"==e?f=V(j):">"==e&&(f=y(j))}else if(c.id)j=!c.loops&&p?a:H(c,{el:1,id:1}),f=function(a,f){var e=b.byId(c.id,a.ownerDocument||a);if(e&&j(e)){if(9==a.nodeType)return d(e,f);for(var p=e.parentNode;p&&!(p==a);)p=p.parentNode;if(p)return d(e,f)}};else if(h&&/\{\s*\[native code\]\s*\}/.test(""+h)&&c.classes.length&&!i)var j=H(c,{el:1,classes:1,id:1}),g=c.classes.join(" "),f=function(a,b,c){for(var b=d(0,b),f,e=0,p=a.getElementsByClassName(g);f=p[e++];)j(f,a)&&K(f,c)&&b.push(f);
return b};else!p&&!c.loops?f=function(a,b,f){for(var b=d(0,b),e=0,j=c.getTag(),j=j?a.getElementsByTagName(j):[];a=j[e++];)K(a,f)&&b.push(a);return b}:(j=H(c,{el:1,tag:1,id:1}),f=function(a,b,f){for(var b=d(0,b),e,p=0,h=(e=c.getTag())?a.getElementsByTagName(e):[];e=h[p++];)j(e,a)&&K(e,f)&&b.push(e);return b});return B[c.query]=f},D={},F={},E=function(a){var b=e(n(a));if(1==b.length){var c=L(b[0]);return function(a){if(a=c(a,[]))a.nozip=!0;return a}}return function(a){for(var a=d(a),c,f,e=b.length,
j,p,h=0;h<e;h++){p=[];c=b[h];f=a.length-1;if(0<f)j={},p.nozip=!0;f=L(c);for(var i=0;c=a[i];i++)f(c,p,j);if(!p.length)break;a=p}return p}},da=k("ie")?"commentStrip":"nozip",Q=!!l.doc.querySelectorAll,W=/\\[>~+]|n\+\d|([^ \\])?([>~+])([^ =])?/g,M=function(a,b,c,d){return c?(b?b+" ":"")+c+(d?" "+d:""):a},C=/([^[]*)([^\]]*])?/g,S=function(a,b,c){return b.replace(W,M)+(c||"")},A=function(a,b){a=a.replace(C,S);if(Q){var c=F[a];if(c&&!b)return c}if(c=D[a])return c;var c=a.charAt(0),d=-1==a.indexOf(" ");
0<=a.indexOf("#")&&d&&(b=!0);if(Q&&!b&&-1==">~+".indexOf(c)&&(!k("ie")||-1==a.indexOf(":"))&&!(i&&0<=a.indexOf("."))&&-1==a.indexOf(":contains")&&-1==a.indexOf(":checked")&&-1==a.indexOf("|=")){var f=0<=">~+".indexOf(a.charAt(a.length-1))?a+" *":a;return F[a]=function(b){try{if(!(9==b.nodeType||d))throw"";var c=b.querySelectorAll(f);c[da]=!0;return c}catch(e){return A(a,!0)(b)}}}var e=a.match(/([^\s,](?:"(?:\\.|[^"])+"|'(?:\\.|[^'])+'|[^,])*)/g);return D[a]=2>e.length?E(a):function(a){for(var b=0,
c=[],d;d=e[b++];)c=c.concat(E(d)(a));return c}},x=0,ea=k("ie")?function(a){return h?a.getAttribute("_uid")||a.setAttribute("_uid",++x)||x:a.uniqueID}:function(a){return a._uid||(a._uid=++x)},K=function(a,b){if(!b)return 1;var c=ea(a);return!b[c]?b[c]=1:0},Z=function(a){if(a&&a.nozip)return a;var b=[];if(!a||!a.length)return b;a[0]&&b.push(a[0]);if(2>a.length)return b;x++;var c,d;if(k("ie")&&h){var f=x+"";a[0].setAttribute("_zipIdx",f);for(c=1;d=a[c];c++)a[c].getAttribute("_zipIdx")!=f&&b.push(d),
d.setAttribute("_zipIdx",f)}else if(k("ie")&&a.commentStrip)try{for(c=1;d=a[c];c++)j(d)&&b.push(d)}catch(e){}else{a[0]&&(a[0]._zipIdx=x);for(c=1;d=a[c];c++)a[c]._zipIdx!=x&&b.push(d),d._zipIdx=x}return b},T=function(a,b){b=b||l.doc;h="div"===(b.ownerDocument||b).createElement("div").tagName;var c=A(a)(b);return c&&c.nozip?c:Z(c)};T.filter=function(a,c,d){for(var f=[],j=e(c),j=1==j.length&&!/[^\w#\.]/.test(c)?H(j[0]):function(a){return-1!=g.indexOf(T(c,b.byId(d)),a)},p=0,h;h=a[p];p++)j(h)&&f.push(h);
return f};return T})},"dojo/errors/RequestTimeoutError":function(){define(["./create","./RequestError"],function(b,k){return b("RequestTimeoutError",null,k,{dojoType:"timeout"})})},"dojo/dom-style":function(){define("dojo/dom-style",["./sniff","./dom"],function(b,k){function g(c,d,f){d=d.toLowerCase();if(b("ie")){if("auto"==f){if("height"==d)return c.offsetHeight;if("width"==d)return c.offsetWidth}if("fontweight"==d)switch(f){case 700:return"bold";default:return"normal"}}d in a||(a[d]=e.test(d));
return a[d]?n(c,f):f}var m,l={};m=b("webkit")?function(a){var b;if(1==a.nodeType){var c=a.ownerDocument.defaultView;b=c.getComputedStyle(a,null);if(!b&&a.style)a.style.display="",b=c.getComputedStyle(a,null)}return b||{}}:b("ie")&&(9>b("ie")||b("quirks"))?function(a){return 1==a.nodeType&&a.currentStyle?a.currentStyle:{}}:function(a){return 1==a.nodeType?a.ownerDocument.defaultView.getComputedStyle(a,null):{}};l.getComputedStyle=m;var n;n=b("ie")?function(a,b){if(!b)return 0;if("medium"==b)return 4;
if(b.slice&&"px"==b.slice(-2))return parseFloat(b);var c=a.style,d=a.runtimeStyle,e=c.left,h=d.left;d.left=a.currentStyle.left;try{c.left=b,b=c.pixelLeft}catch(i){b=0}c.left=e;d.left=h;return b}:function(a,b){return parseFloat(b)||0};l.toPixelValue=n;var o=function(a,b){try{return a.filters.item("DXImageTransform.Microsoft.Alpha")}catch(c){return b?{}:null}},i=9>b("ie")||10>b("ie")&&b("quirks")?function(a){try{return o(a).Opacity/100}catch(b){return 1}}:function(a){return m(a).opacity},h=9>b("ie")||
10>b("ie")&&b("quirks")?function(a,b){var c=100*b,d=1==b;a.style.zoom=d?"":1;if(o(a))o(a,1).Opacity=c;else{if(d)return b;a.style.filter+=" progid:DXImageTransform.Microsoft.Alpha(Opacity="+c+")"}o(a,1).Enabled=!d;if("tr"==a.tagName.toLowerCase())for(c=a.firstChild;c;c=c.nextSibling)"td"==c.tagName.toLowerCase()&&h(c,b);return b}:function(a,b){return a.style.opacity=b},a={left:!0,top:!0},e=/margin|padding|width|height|max|min|offset/,c=b("ie")?"styleFloat":"cssFloat",d={cssFloat:c,styleFloat:c,"float":c};
l.get=function(a,b){var c=k.byId(a),e=arguments.length;if(2==e&&"opacity"==b)return i(c);var b=d[b]||b,h=l.getComputedStyle(c);return 1==e?h:g(c,b,h[b]||c.style[b])};l.set=function(a,b,c){var e=k.byId(a),i=arguments.length,g="opacity"==b,b=d[b]||b;if(3==i)return g?h(e,c):e.style[b]=c;for(var o in b)l.set(a,o,b[o]);return l.getComputedStyle(e)};return l})},"dojo/dom-geometry":function(){define("dojo/dom-geometry",["./sniff","./_base/window","./dom","./dom-style"],function(b,k,g,m){function l(a,b,c,
d,j,h){h=h||"px";a=a.style;if(!isNaN(b))a.left=b+h;if(!isNaN(c))a.top=c+h;if(0<=d)a.width=d+h;if(0<=j)a.height=j+h}function n(a){return"button"==a.tagName.toLowerCase()||"input"==a.tagName.toLowerCase()&&"button"==(a.getAttribute("type")||"").toLowerCase()}function o(a){return"border-box"==i.boxModel||"table"==a.tagName.toLowerCase()||n(a)}var i={boxModel:"content-box"};if(b("ie"))i.boxModel="BackCompat"==document.compatMode?"border-box":"content-box";i.getPadExtents=function(a,b){var a=g.byId(a),
c=b||m.getComputedStyle(a),d=m.toPixelValue,j=d(a,c.paddingLeft),h=d(a,c.paddingTop),f=d(a,c.paddingRight),c=d(a,c.paddingBottom);return{l:j,t:h,r:f,b:c,w:j+f,h:h+c}};i.getBorderExtents=function(a,b){var a=g.byId(a),c=m.toPixelValue,d=b||m.getComputedStyle(a),j="none"!=d.borderLeftStyle?c(a,d.borderLeftWidth):0,h="none"!=d.borderTopStyle?c(a,d.borderTopWidth):0,f="none"!=d.borderRightStyle?c(a,d.borderRightWidth):0,c="none"!=d.borderBottomStyle?c(a,d.borderBottomWidth):0;return{l:j,t:h,r:f,b:c,w:j+
f,h:h+c}};i.getPadBorderExtents=function(a,b){var a=g.byId(a),c=b||m.getComputedStyle(a),d=i.getPadExtents(a,c),c=i.getBorderExtents(a,c);return{l:d.l+c.l,t:d.t+c.t,r:d.r+c.r,b:d.b+c.b,w:d.w+c.w,h:d.h+c.h}};i.getMarginExtents=function(a,b){var a=g.byId(a),c=b||m.getComputedStyle(a),d=m.toPixelValue,j=d(a,c.marginLeft),h=d(a,c.marginTop),f=d(a,c.marginRight),c=d(a,c.marginBottom);return{l:j,t:h,r:f,b:c,w:j+f,h:h+c}};i.getMarginBox=function(a,e){var a=g.byId(a),c=e||m.getComputedStyle(a),d=i.getMarginExtents(a,
c),j=a.offsetLeft-d.l,h=a.offsetTop-d.t,f=a.parentNode,k=m.toPixelValue;if(b("mozilla")){var l=parseFloat(c.left),c=parseFloat(c.top);!isNaN(l)&&!isNaN(c)?(j=l,h=c):f&&f.style&&(f=m.getComputedStyle(f),"visible"!=f.overflow&&(j+="none"!=f.borderLeftStyle?k(a,f.borderLeftWidth):0,h+="none"!=f.borderTopStyle?k(a,f.borderTopWidth):0))}else if((b("opera")||8==b("ie")&&!b("quirks"))&&f)f=m.getComputedStyle(f),j-="none"!=f.borderLeftStyle?k(a,f.borderLeftWidth):0,h-="none"!=f.borderTopStyle?k(a,f.borderTopWidth):
0;return{l:j,t:h,w:a.offsetWidth+d.w,h:a.offsetHeight+d.h}};i.getContentBox=function(a,e){var a=g.byId(a),c=e||m.getComputedStyle(a),d=a.clientWidth,j=i.getPadExtents(a,c),h=i.getBorderExtents(a,c);d?(c=a.clientHeight,h.w=h.h=0):(d=a.offsetWidth,c=a.offsetHeight);b("opera")&&(j.l+=h.l,j.t+=h.t);return{l:j.l,t:j.t,w:d-j.w-h.w,h:c-j.h-h.h}};i.setContentSize=function(a,b,c){var a=g.byId(a),d=b.w,b=b.h;o(a)&&(c=i.getPadBorderExtents(a,c),0<=d&&(d+=c.w),0<=b&&(b+=c.h));l(a,NaN,NaN,d,b)};var h={l:0,t:0,
w:0,h:0};i.setMarginBox=function(a,e,c){var a=g.byId(a),d=c||m.getComputedStyle(a),c=e.w,j=e.h,p=o(a)?h:i.getPadBorderExtents(a,d),d=i.getMarginExtents(a,d);if(b("webkit")&&n(a)){var f=a.style;if(0<=c&&!f.width)f.width="4px";if(0<=j&&!f.height)f.height="4px"}0<=c&&(c=Math.max(c-p.w-d.w,0));0<=j&&(j=Math.max(j-p.h-d.h,0));l(a,e.l,e.t,c,j)};i.isBodyLtr=function(a){a=a||k.doc;return"ltr"==(k.body(a).dir||a.documentElement.dir||"ltr").toLowerCase()};i.docScroll=function(a){var a=a||k.doc,e=k.doc.parentWindow||
k.doc.defaultView;return"pageXOffset"in e?{x:e.pageXOffset,y:e.pageYOffset}:(e=b("quirks")?k.body(a):a.documentElement)&&{x:i.fixIeBiDiScrollLeft(e.scrollLeft||0,a),y:e.scrollTop||0}};if(b("ie"))i.getIeDocumentElementOffset=function(a){a=a||k.doc;a=a.documentElement;if(8>b("ie")){var e=a.getBoundingClientRect(),c=e.left,e=e.top;7>b("ie")&&(c+=a.clientLeft,e+=a.clientTop);return{x:0>c?0:c,y:0>e?0:e}}return{x:0,y:0}};i.fixIeBiDiScrollLeft=function(a,e){var e=e||k.doc,c=b("ie");if(c&&!i.isBodyLtr(e)){var d=
b("quirks"),j=d?k.body(e):e.documentElement,h=k.global;6==c&&!d&&h.frameElement&&j.scrollHeight>j.clientHeight&&(a+=j.clientLeft);return 8>c||d?a+j.clientWidth-j.scrollWidth:-a}return a};i.position=function(a,e){var a=g.byId(a),c=k.body(a.ownerDocument),d=a.getBoundingClientRect(),d={x:d.left,y:d.top,w:d.right-d.left,h:d.bottom-d.top};if(9>b("ie")){var j=i.getIeDocumentElementOffset(a.ownerDocument);d.x-=j.x+(b("quirks")?c.clientLeft+c.offsetLeft:0);d.y-=j.y+(b("quirks")?c.clientTop+c.offsetTop:0)}e&&
(c=i.docScroll(a.ownerDocument),d.x+=c.x,d.y+=c.y);return d};i.getMarginSize=function(a,b){var a=g.byId(a),c=i.getMarginExtents(a,b||m.getComputedStyle(a)),d=a.getBoundingClientRect();return{w:d.right-d.left+c.w,h:d.bottom-d.top+c.h}};i.normalizeEvent=function(a){if(!("layerX"in a))a.layerX=a.offsetX,a.layerY=a.offsetY;if(!b("dom-addeventlistener")){var e=a.target,e=e&&e.ownerDocument||document,c=b("quirks")?e.body:e.documentElement,d=i.getIeDocumentElementOffset(e);a.pageX=a.clientX+i.fixIeBiDiScrollLeft(c.scrollLeft||
0,e)-d.x;a.pageY=a.clientY+(c.scrollTop||0)-d.y}};return i})},"dojo/dom-prop":function(){define("exports,./_base/kernel,./sniff,./_base/lang,./dom,./dom-style,./dom-construct,./_base/connect".split(","),function(b,k,g,m,l,n,o,i){var h={},a=0,e=k._scopeName+"attrid";b.names={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",valuetype:"valueType"};b.get=function(a,d){var a=l.byId(a),e=d.toLowerCase();return a[b.names[e]||
d]};b.set=function(c,d,j){c=l.byId(c);if(2==arguments.length&&"string"!=typeof d){for(var p in d)b.set(c,p,d[p]);return c}p=d.toLowerCase();p=b.names[p]||d;if("style"==p&&"string"!=typeof j)return n.set(c,j),c;if("innerHTML"==p)return g("ie")&&c.tagName.toLowerCase()in{col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1}?(o.empty(c),c.appendChild(o.toDom(j,c.ownerDocument))):c[p]=j,c;if(m.isFunction(j)){var f=c[e];f||(f=a++,c[e]=f);h[f]||(h[f]={});var k=h[f][p];if(k)i.disconnect(k);else try{delete c[p]}catch(r){}j?
h[f][p]=i.connect(c,p,j):c[p]=null;return c}c[p]=j;return c}})},"dojo/when":function(){define(["./Deferred","./promise/Promise"],function(b,k){return function(g,m,l,n){var o=g&&"function"===typeof g.then,i=o&&g instanceof k;if(o){if(!i)o=new b(g.cancel),g.then(o.resolve,o.reject,o.progress),g=o.promise}else return 1<arguments.length?m?m(g):g:(new b).resolve(g);return m||l||n?g.then(m,l,n):g}})},"dojo/dom-attr":function(){define("exports,./sniff,./_base/lang,./dom,./dom-style,./dom-prop".split(","),
function(b,k,g,m,l,n){function o(a,b){var c=a.getAttributeNode&&a.getAttributeNode(b);return c&&c.specified}var i={innerHTML:1,className:1,htmlFor:k("ie"),value:1},h={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"};b.has=function(a,b){var c=b.toLowerCase();return i[n.names[c]||b]||o(m.byId(a),h[c]||b)};b.get=function(a,b){var a=m.byId(a),c=b.toLowerCase(),d=n.names[c]||b,j=a[d];if(i[d]&&"undefined"!=typeof j||"href"!=d&&("boolean"==typeof j||g.isFunction(j)))return j;c=h[c]||
b;return o(a,c)?a.getAttribute(c):null};b.set=function(a,e,c){a=m.byId(a);if(2==arguments.length){for(var d in e)b.set(a,d,e[d]);return a}d=e.toLowerCase();var j=n.names[d]||e,p=i[j];if("style"==j&&"string"!=typeof c)return l.set(a,c),a;if(p||"boolean"==typeof c||g.isFunction(c))return n.set(a,e,c);a.setAttribute(h[d]||e,c);return a};b.remove=function(a,b){m.byId(a).removeAttribute(h[b.toLowerCase()]||b)};b.getNodeProp=function(a,b){var a=m.byId(a),c=b.toLowerCase(),d=n.names[c]||b;if(d in a&&"href"!=
d)return a[d];c=h[c]||b;return o(a,c)?a.getAttribute(c):null}})},"dojo/dom-construct":function(){define("exports,./_base/kernel,./sniff,./_base/window,./dom,./dom-attr,./on".split(","),function(b,k,g,m,l,n){function o(a,b){var c=b.parentNode;c&&c.insertBefore(a,b)}function i(a){if(a.canHaveChildren)try{a.innerHTML="";return}catch(b){}for(var c;c=a.lastChild;)h(c,a)}function h(a,b){a.firstChild&&i(a);b&&(g("ie")&&b.canHaveChildren&&"removeNode"in a?a.removeNode(!1):b.removeChild(a))}var a={option:["select"],
tbody:["table"],thead:["table"],tfoot:["table"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","thead","tr"],legend:["fieldset"],caption:["table"],colgroup:["table"],col:["table","colgroup"],li:["ul"]},e=/<\s*([\w\:]+)/,c={},d=0,j="__"+k._scopeName+"ToDomId",p;for(p in a)if(a.hasOwnProperty(p))k=a[p],k.pre="option"==p?'<select multiple="multiple">':"<"+k.join("><")+">",k.post="</"+k.reverse().join("></")+">";b.toDom=function(b,h){var h=h||m.doc,i=h[j];i||(h[j]=i=++d+"",c[i]=h.createElement("div"));
var b=b+"",g=b.match(e),p=g?g[1].toLowerCase():"",i=c[i];if(g&&a[p]){g=a[p];i.innerHTML=g.pre+b+g.post;for(g=g.length;g;--g)i=i.firstChild}else i.innerHTML=b;if(1==i.childNodes.length)return i.removeChild(i.firstChild);for(p=h.createDocumentFragment();g=i.firstChild;)p.appendChild(g);return p};b.place=function(a,c,d){c=l.byId(c);"string"==typeof a&&(a=/^\s*</.test(a)?b.toDom(a,c.ownerDocument):l.byId(a));if("number"==typeof d){var e=c.childNodes;!e.length||e.length<=d?c.appendChild(a):o(a,e[0>d?0:
d])}else switch(d){case "before":o(a,c);break;case "after":d=a;(e=c.parentNode)&&(e.lastChild==c?e.appendChild(d):e.insertBefore(d,c.nextSibling));break;case "replace":c.parentNode.replaceChild(a,c);break;case "only":b.empty(c);c.appendChild(a);break;case "first":if(c.firstChild){o(a,c.firstChild);break}default:c.appendChild(a)}return a};b.create=function(a,c,d,e){var j=m.doc;if(d)d=l.byId(d),j=d.ownerDocument;"string"==typeof a&&(a=j.createElement(a));c&&n.set(a,c);d&&b.place(a,d,e);return a};b.empty=
function(a){i(l.byId(a))};b.destroy=function(a){(a=l.byId(a))&&h(a,a.parentNode)}})},"dojo/request/xhr":function(){define(["../errors/RequestError","./watch","./handlers","./util","../has"],function(b,k,g,m,l){function n(a,c){var d=a.xhr;a.status=a.xhr.status;a.text=d.responseText;if("xml"===a.options.handleAs)a.data=d.responseXML;if(!c)try{g(a)}catch(f){c=f}c?this.reject(c):m.checkStatus(d.status)?this.resolve(a):(c=new b("Unable to load "+a.url+" status: "+d.status,a),this.reject(c))}function o(a){return this.xhr.getResponseHeader(a)}
function i(f,g,p){var u=m.parseArgs(f,m.deepCreate(j,g),l("native-formdata")&&g&&g.data&&g.data instanceof FormData),f=u.url,g=u.options,z,w=m.deferred(u,c,h,a,n,function(){z&&z()}),s=u.xhr=i._create();if(!s)return w.cancel(new b("XHR was not created")),p?w:w.promise;u.getHeader=o;e&&(z=e(s,w,u));var t=g.data,G=!g.sync,I=g.method;try{s.open(I,f,G,g.user||d,g.password||d);if(g.withCredentials)s.withCredentials=g.withCredentials;var J=g.headers,f="application/x-www-form-urlencoded";if(J)for(var H in J)"content-type"===
H.toLowerCase()?f=J[H]:J[H]&&s.setRequestHeader(H,J[H]);f&&!1!==f&&s.setRequestHeader("Content-Type",f);(!J||!("X-Requested-With"in J))&&s.setRequestHeader("X-Requested-With","XMLHttpRequest");m.notify&&m.notify.emit("send",u,w.promise.cancel);s.send(t)}catch(O){w.reject(O)}k(w);s=null;return p?w:w.promise}l.add("native-xhr",function(){return"undefined"!==typeof XMLHttpRequest});l.add("dojo-force-activex-xhr",function(){return l("activex")&&!document.addEventListener&&"file:"===window.location.protocol});
l.add("native-xhr2",function(){if(l("native-xhr")){var a=new XMLHttpRequest;return"undefined"!==typeof a.addEventListener&&("undefined"===typeof opera||"undefined"!==typeof a.upload)}});l.add("native-formdata",function(){return"function"===typeof FormData});var h,a,e,c;l("native-xhr2")?(h=function(){return!this.isFulfilled()},c=function(a,b){b.xhr.abort()},e=function(a,c,d){function f(){c.handleResponse(d)}function e(a){a=new b("Unable to load "+d.url+" status: "+a.target.status,d);c.handleResponse(d,
a)}function j(a){if(a.lengthComputable)d.loaded=a.loaded,d.total=a.total,c.progress(d)}a.addEventListener("load",f,!1);a.addEventListener("error",e,!1);a.addEventListener("progress",j,!1);return function(){a.removeEventListener("load",f,!1);a.removeEventListener("error",e,!1);a.removeEventListener("progress",j,!1);a=null}}):(h=function(a){return a.xhr.readyState},a=function(a){return 4===a.xhr.readyState},c=function(a,b){var c=b.xhr,d=typeof c.abort;("function"===d||"object"===d||"unknown"===d)&&
c.abort()});var d,j={data:null,query:null,sync:!1,method:"GET"};i._create=function(){throw Error("XMLHTTP not available");};if(l("native-xhr")&&!l("dojo-force-activex-xhr"))i._create=function(){return new XMLHttpRequest};else if(l("activex"))try{new ActiveXObject("Msxml2.XMLHTTP"),i._create=function(){return new ActiveXObject("Msxml2.XMLHTTP")}}catch(p){try{new ActiveXObject("Microsoft.XMLHTTP"),i._create=function(){return new ActiveXObject("Microsoft.XMLHTTP")}}catch(f){}}m.addCommonMethods(i);return i})},
"dojo/text":function(){define(["./_base/kernel","require","./has","./_base/xhr"],function(b,k,g,m){var l;l=function(a,e,c){m("GET",{url:a,sync:!!e,load:c,headers:b.config.textPluginHeaders||{}})};var n={},o=function(a){if(a){var a=a.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,""),b=a.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);b&&(a=b[1])}else a="";return a},i={},h={};b.cache=function(a,b,c){var d;"string"==typeof a?/\//.test(a)?(d=a,c=b):d=k.toUrl(a.replace(/\./g,"/")+(b?
"/"+b:"")):(d=a+"",c=b);a=void 0!=c&&"string"!=typeof c?c.value:c;c=c&&c.sanitize;if("string"==typeof a)return n[d]=a,c?o(a):a;if(null===a)return delete n[d],null;d in n||l(d,!0,function(a){n[d]=a});return c?o(n[d]):n[d]};return{dynamic:!0,normalize:function(a,b){var c=a.split("!"),d=c[0];return(/^\./.test(d)?b(d):d)+(c[1]?"!"+c[1]:"")},load:function(a,b,c){var a=a.split("!"),d=1<a.length,j=a[0],g=b.toUrl(a[0]),a="url:"+g,f=i,k=function(a){c(d?o(a):a)};j in n?f=n[j]:a in b.cache?f=b.cache[a]:g in
n&&(f=n[g]);if(f===i)if(h[g])h[g].push(k);else{var m=h[g]=[k];l(g,!b.async,function(a){n[j]=n[g]=a;for(var b=0;b<m.length;)m[b++](a);delete h[g]})}else k(f)}}})},"dojo/keys":function(){define("dojo/keys",["./_base/kernel","./sniff"],function(b,k){return b.keys={BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,META:k("webkit")?91:224,PAUSE:19,CAPS_LOCK:20,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,INSERT:45,DELETE:46,
HELP:47,LEFT_WINDOW:91,RIGHT_WINDOW:92,SELECT:93,NUMPAD_0:96,NUMPAD_1:97,NUMPAD_2:98,NUMPAD_3:99,NUMPAD_4:100,NUMPAD_5:101,NUMPAD_6:102,NUMPAD_7:103,NUMPAD_8:104,NUMPAD_9:105,NUMPAD_MULTIPLY:106,NUMPAD_PLUS:107,NUMPAD_ENTER:108,NUMPAD_MINUS:109,NUMPAD_PERIOD:110,NUMPAD_DIVIDE:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,NUM_LOCK:144,SCROLL_LOCK:145,UP_DPAD:175,DOWN_DPAD:176,LEFT_DPAD:177,RIGHT_DPAD:178,copyKey:k("mac")&&!k("air")?
k("safari")?91:224:17}})},"dojo/domReady":function(){define("dojo/domReady",["./has"],function(b){function k(a){o?a(m):i.push(a)}var g=this,m=document,l={loaded:1,complete:1},n="string"!=typeof m.readyState,o=!!l[m.readyState];if(n)m.readyState="loading";if(!o){var i=[],h=[],a=function(a){a=a||g.event;if(!(o||"readystatechange"==a.type&&!l[m.readyState])){o=1;if(n)m.readyState="complete";for(;i.length;)i.shift()(m)}},e=function(b,c){b.addEventListener(c,a,!1);i.push(function(){b.removeEventListener(c,
a,!1)})};if(!b("dom-addeventlistener")){var e=function(b,c){c="on"+c;b.attachEvent(c,a);i.push(function(){b.detachEvent(c,a)})},c=m.createElement("div");try{c.doScroll&&null===g.frameElement&&h.push(function(){try{return c.doScroll("left"),1}catch(a){}})}catch(d){}}e(m,"DOMContentLoaded");e(g,"load");"onreadystatechange"in m?e(m,"readystatechange"):n||h.push(function(){return l[m.readyState]});if(h.length){var j=function(){if(!o){for(var b=h.length;b--;)if(h[b]()){a("poller");return}setTimeout(j,
30)}};j()}}k.load=function(a,b,c){k(c)};return k})},"dojo/_base/lang":function(){define(["./kernel","../has","../sniff"],function(b,k){k.add("bug-for-in-skips-shadowed",function(){for(var a in{toString:1})return 0;return 1});var g=k("bug-for-in-skips-shadowed")?"hasOwnProperty.valueOf.isPrototypeOf.propertyIsEnumerable.toLocaleString.toString.constructor".split("."):[],m=g.length,l=function(a,e,c){var d,j=0,h=b.global;if(!c)if(a.length){d=a[j++];try{c=b.scopeMap[d]&&b.scopeMap[d][1]}catch(f){}c=c||
(d in h?h[d]:e?h[d]={}:void 0)}else return h;for(;c&&(d=a[j++]);)c=d in c?c[d]:e?c[d]={}:void 0;return c},n=Object.prototype.toString,o=function(a,b,c){return(c||[]).concat(Array.prototype.slice.call(a,b||0))},i=/\{([^\}]+)\}/g,h={_extraNames:g,_mixin:function(a,b,c){var d,j,h,f={};for(d in b)if(j=b[d],!(d in a)||a[d]!==j&&(!(d in f)||f[d]!==j))a[d]=c?c(j):j;if(k("bug-for-in-skips-shadowed")&&b)for(h=0;h<m;++h)if(d=g[h],j=b[d],!(d in a)||a[d]!==j&&(!(d in f)||f[d]!==j))a[d]=c?c(j):j;return a},mixin:function(a,
b){a||(a={});for(var c=1,d=arguments.length;c<d;c++)h._mixin(a,arguments[c]);return a},setObject:function(a,b,c){var d=a.split("."),a=d.pop();return(c=l(d,!0,c))&&a?c[a]=b:void 0},getObject:function(a,b,c){return l(a.split("."),b,c)},exists:function(a,b){return void 0!==h.getObject(a,!1,b)},isString:function(a){return"string"==typeof a||a instanceof String},isArray:function(a){return a&&(a instanceof Array||"array"==typeof a)},isFunction:function(a){return"[object Function]"===n.call(a)},isObject:function(a){return void 0!==
a&&(null===a||"object"==typeof a||h.isArray(a)||h.isFunction(a))},isArrayLike:function(a){return a&&void 0!==a&&!h.isString(a)&&!h.isFunction(a)&&!(a.tagName&&"form"==a.tagName.toLowerCase())&&(h.isArray(a)||isFinite(a.length))},isAlien:function(a){return a&&!h.isFunction(a)&&/\{\s*\[native code\]\s*\}/.test(""+a)},extend:function(a,b){for(var c=1,d=arguments.length;c<d;c++)h._mixin(a.prototype,arguments[c]);return a},_hitchArgs:function(a,e){var c=h._toArray(arguments,2),d=h.isString(e);return function(){var j=
h._toArray(arguments),g=d?(a||b.global)[e]:e;return g&&g.apply(a||this,c.concat(j))}},hitch:function(a,e){if(2<arguments.length)return h._hitchArgs.apply(b,arguments);e||(e=a,a=null);if(h.isString(e)){a=a||b.global;if(!a[e])throw['lang.hitch: scope["',e,'"] is null (scope="',a,'")'].join("");return function(){return a[e].apply(a,arguments||[])}}return!a?e:function(){return e.apply(a,arguments||[])}},delegate:function(){function a(){}return function(b,c){a.prototype=b;var d=new a;a.prototype=null;
c&&h._mixin(d,c);return d}}(),_toArray:k("ie")?function(){function a(a,b,d){d=d||[];for(b=b||0;b<a.length;b++)d.push(a[b]);return d}return function(b){return(b.item?a:o).apply(this,arguments)}}():o,partial:function(a){return h.hitch.apply(b,[null].concat(h._toArray(arguments)))},clone:function(a){if(!a||"object"!=typeof a||h.isFunction(a))return a;if(a.nodeType&&"cloneNode"in a)return a.cloneNode(!0);if(a instanceof Date)return new Date(a.getTime());if(a instanceof RegExp)return RegExp(a);var b,c,
d;if(h.isArray(a)){b=[];for(c=0,d=a.length;c<d;++c)c in a&&b.push(h.clone(a[c]))}else b=a.constructor?new a.constructor:{};return h._mixin(b,a,h.clone)},trim:String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^\s\s*/,"").replace(/\s\s*$/,"")},replace:function(a,b,c){return a.replace(c||i,h.isFunction(b)?b:function(a,c){return h.getObject(c,!1,b)})}};h.mixin(b,h);return h})},"dojo/request/util":function(){define("exports,../errors/RequestError,../errors/CancelError,../Deferred,../io-query,../_base/array,../_base/lang,../promise/Promise".split(","),
function(b,k,g,m,l,n,o,i){function h(a){return e(a)}function a(a){return a.data||a.text}b.deepCopy=function(a,d){for(var e in d){var h=a[e],f=d[e];h!==f&&(h&&"object"===typeof h&&f&&"object"===typeof f?b.deepCopy(h,f):a[e]=f)}return a};b.deepCreate=function(a,d){var d=d||{},e=o.delegate(a),h,f;for(h in a)(f=a[h])&&"object"===typeof f&&(e[h]=b.deepCreate(f,d[h]));return b.deepCopy(e,d)};var e=Object.freeze||function(a){return a};b.deferred=function(c,d,j,l,f,n){var r=new m(function(a){d&&d(r,c);return!a||
!(a instanceof k)&&!(a instanceof g)?new g("Request canceled",c):a});r.response=c;r.isValid=j;r.isReady=l;r.handleResponse=f;j=r.then(h).otherwise(function(a){a.response=c;throw a;});b.notify&&j.then(o.hitch(b.notify,"emit","load"),o.hitch(b.notify,"emit","error"));var l=j.then(a),f=new i,v;for(v in l)l.hasOwnProperty(v)&&(f[v]=l[v]);f.response=j;e(f);n&&r.then(function(a){n.call(r,a)},function(a){n.call(r,c,a)});r.promise=f;r.then=f.then;return r};b.addCommonMethods=function(a,b){n.forEach(b||["GET",
"POST","PUT","DELETE"],function(b){a[("DELETE"===b?"DEL":b).toLowerCase()]=function(d,f){f=o.delegate(f||{});f.method=b;return a(d,f)}})};b.parseArgs=function(a,b,e){var h=b.data,f=b.query;if(h&&!e&&"object"===typeof h)b.data=l.objectToQuery(h);f?("object"===typeof f&&(f=l.objectToQuery(f)),b.preventCache&&(f+=(f?"&":"")+"request.preventCache="+ +new Date)):b.preventCache&&(f="request.preventCache="+ +new Date);a&&f&&(a+=(~a.indexOf("?")?"&":"?")+f);return{url:a,options:b,getHeader:function(){return null}}};
b.checkStatus=function(a){a=a||0;return 200<=a&&300>a||304===a||1223===a||!a}})},"dojo/Evented":function(){define(["./aspect","./on"],function(b,k){function g(){}var m=b.after;g.prototype={on:function(b,g){return k.parse(this,b,g,function(b,i){return m(b,"on"+i,g,!0)})},emit:function(b,g){var o=[this];o.push.apply(o,arguments);return k.emit.apply(k,o)}};return g})},"dojo/mouse":function(){define("dojo/mouse",["./_base/kernel","./on","./has","./dom","./_base/window"],function(b,k,g,m,l){function n(b,
g){var h=function(a,e){return k(a,b,function(b){if(g)return g(b,e);if(!m.isDescendant(b.relatedTarget,a))return e.call(this,b)})};h.bubble=function(a){return n(b,function(b,c){var d=a(b.target),h=b.relatedTarget;if(d&&d!=(h&&1==h.nodeType&&a(h)))return c.call(d,b)})};return h}g.add("dom-quirks",l.doc&&"BackCompat"==l.doc.compatMode);g.add("events-mouseenter",l.doc&&"onmouseenter"in l.doc.createElement("div"));g.add("events-mousewheel",l.doc&&"onmousewheel"in l.doc);l=g("dom-quirks")&&g("ie")||!g("dom-addeventlistener")?
{LEFT:1,MIDDLE:4,RIGHT:2,isButton:function(b,g){return b.button&g},isLeft:function(b){return b.button&1},isMiddle:function(b){return b.button&4},isRight:function(b){return b.button&2}}:{LEFT:0,MIDDLE:1,RIGHT:2,isButton:function(b,g){return b.button==g},isLeft:function(b){return 0==b.button},isMiddle:function(b){return 1==b.button},isRight:function(b){return 2==b.button}};b.mouseButtons=l;b=g("events-mousewheel")?"mousewheel":function(b,g){return k(b,"DOMMouseScroll",function(b){b.wheelDelta=-b.detail;
g.call(this,b)})};return{_eventHandler:n,enter:n("mouseover"),leave:n("mouseout"),wheel:b,isLeft:l.isLeft,isMiddle:l.isMiddle,isRight:l.isRight}})},"dojo/topic":function(){define("dojo/topic",["./Evented"],function(b){var k=new b;return{publish:function(b,m){return k.emit.apply(k,arguments)},subscribe:function(b,m){return k.on.apply(k,arguments)}}})},"dojo/_base/xhr":function(){define("./kernel,./sniff,require,../io-query,../dom,../dom-form,./Deferred,./config,./json,./lang,./array,../on,../aspect,../request/watch,../request/xhr,../request/util".split(","),
function(b,k,g,m,l,n,o,i,h,a,e,c,d,j,p,f){b._xhrObj=p._create;var q=b.config;b.objectToQuery=m.objectToQuery;b.queryToObject=m.queryToObject;b.fieldToObject=n.fieldToObject;b.formToObject=n.toObject;b.formToQuery=n.toQuery;b.formToJson=n.toJson;b._blockAsync=!1;var r=b._contentHandlers=b.contentHandlers={text:function(a){return a.responseText},json:function(a){return h.fromJson(a.responseText||null)},"json-comment-filtered":function(a){i.useCommentedJson||console.warn("Consider using the standard mimetype:application/json. json-commenting can introduce security issues. To decrease the chances of hijacking, use the standard the 'json' handler and prefix your json with: {}&&\nUse djConfig.useCommentedJson=true to turn off this message.");
var a=a.responseText,b=a.indexOf("/*"),c=a.lastIndexOf("*/");if(-1==b||-1==c)throw Error("JSON was not comment filtered");return h.fromJson(a.substring(b+2,c))},javascript:function(a){return b.eval(a.responseText)},xml:function(a){var b=a.responseXML;b&&k("dom-qsa2.1")&&!b.querySelectorAll&&k("dom-parser")&&(b=(new DOMParser).parseFromString(a.responseText,"application/xml"));if(k("ie")&&(!b||!b.documentElement)){var c=function(a){return"MSXML"+a+".DOMDocument"},c=["Microsoft.XMLDOM",c(6),c(4),c(3),
c(2)];e.some(c,function(c){try{var d=new ActiveXObject(c);d.async=!1;d.loadXML(a.responseText);b=d}catch(f){return!1}return!0})}return b},"json-comment-optional":function(a){return a.responseText&&/^[^{\[]*\/\*/.test(a.responseText)?r["json-comment-filtered"](a):r.json(a)}};b._ioSetArgs=function(c,d,f,e){var h={args:c,url:c.url},j=null;if(c.form){var j=l.byId(c.form),g=j.getAttributeNode("action");h.url=h.url||(g?g.value:null);j=n.toObject(j)}g=[{}];j&&g.push(j);c.content&&g.push(c.content);c.preventCache&&
g.push({"dojo.preventCache":(new Date).valueOf()});h.query=m.objectToQuery(a.mixin.apply(null,g));h.handleAs=c.handleAs||"text";var i=new o(function(a){a.canceled=!0;d&&d(a);var b=a.ioArgs.error;if(!b)b=Error("request cancelled"),b.dojoType="cancel",a.ioArgs.error=b;return b});i.addCallback(f);var k=c.load;k&&a.isFunction(k)&&i.addCallback(function(a){return k.call(c,a,h)});var p=c.error;p&&a.isFunction(p)&&i.addErrback(function(a){return p.call(c,a,h)});var r=c.handle;r&&a.isFunction(r)&&i.addBoth(function(a){return r.call(c,
a,h)});i.addErrback(function(a){return e(a,i)});q.ioPublish&&b.publish&&!1!==h.args.ioPublish&&(i.addCallbacks(function(a){b.publish("/dojo/io/load",[i,a]);return a},function(a){b.publish("/dojo/io/error",[i,a]);return a}),i.addBoth(function(a){b.publish("/dojo/io/done",[i,a]);return a}));i.ioArgs=h;return i};var v=function(a){a=r[a.ioArgs.handleAs](a.ioArgs.xhr);return void 0===a?null:a},u=function(a,b){b.ioArgs.args.failOk||console.error(a);return a},z=function(a){0>=w&&(w=0,q.ioPublish&&b.publish&&
(!a||a&&!1!==a.ioArgs.args.ioPublish)&&b.publish("/dojo/io/stop"))},w=0;d.after(j,"_onAction",function(){w-=1});d.after(j,"_onInFlight",z);b._ioCancelAll=j.cancelAll;b._ioNotifyStart=function(a){q.ioPublish&&b.publish&&!1!==a.ioArgs.args.ioPublish&&(w||b.publish("/dojo/io/start"),w+=1,b.publish("/dojo/io/send",[a]))};b._ioWatch=function(b,c,d,f){b.ioArgs.options=b.ioArgs.args;a.mixin(b,{response:b.ioArgs,isValid:function(){return c(b)},isReady:function(){return d(b)},handleResponse:function(){return f(b)}});
j(b);z(b)};b._ioAddQueryToUrl=function(a){if(a.query.length)a.url+=(-1==a.url.indexOf("?")?"?":"&")+a.query,a.query=null};b.xhr=function(a,c,d){var f,e=b._ioSetArgs(c,function(){f&&f.cancel()},v,u),h=e.ioArgs;"postData"in c?h.query=c.postData:"putData"in c?h.query=c.putData:"rawBody"in c?h.query=c.rawBody:(2<arguments.length&&!d||-1==="POST|PUT".indexOf(a.toUpperCase()))&&b._ioAddQueryToUrl(h);var j={method:a,handleAs:"text",timeout:c.timeout,withCredentials:c.withCredentials,ioArgs:h};if("undefined"!==
typeof c.headers)j.headers=c.headers;if("undefined"!==typeof c.contentType){if(!j.headers)j.headers={};j.headers["Content-Type"]=c.contentType}if("undefined"!==typeof h.query)j.data=h.query;if("undefined"!==typeof c.sync)j.sync=c.sync;b._ioNotifyStart(e);try{f=p(h.url,j,!0)}catch(g){return e.cancel(),e}e.ioArgs.xhr=f.response.xhr;f.then(function(){e.resolve(e)}).otherwise(function(a){h.error=a;if(a.response)a.status=a.response.status,a.responseText=a.response.text,a.xhr=a.response.xhr;e.reject(a)});
return e};b.xhrGet=function(a){return b.xhr("GET",a)};b.rawXhrPost=b.xhrPost=function(a){return b.xhr("POST",a,!0)};b.rawXhrPut=b.xhrPut=function(a){return b.xhr("PUT",a,!0)};b.xhrDelete=function(a){return b.xhr("DELETE",a)};b._isDocumentOk=function(a){return f.checkStatus(a.status)};b._getText=function(a){var c;b.xhrGet({url:a,sync:!0,load:function(a){c=a}});return c};a.mixin(b.xhr,{_xhrObj:b._xhrObj,fieldToObject:n.fieldToObject,formToObject:n.toObject,objectToQuery:m.objectToQuery,formToQuery:n.toQuery,
formToJson:n.toJson,queryToObject:m.queryToObject,contentHandlers:r,_ioSetArgs:b._ioSetArgs,_ioCancelAll:b._ioCancelAll,_ioNotifyStart:b._ioNotifyStart,_ioWatch:b._ioWatch,_ioAddQueryToUrl:b._ioAddQueryToUrl,_isDocumentOk:b._isDocumentOk,_getText:b._getText,get:b.xhrGet,post:b.xhrPost,put:b.xhrPut,del:b.xhrDelete});return b.xhr})},"dojo/loadInit":function(){define(["./_base/loader"],function(b){return{dynamic:0,normalize:function(b){return b},load:b.loadInit}})},"dojo/_base/unload":function(){define(["./kernel",
"./lang","../on"],function(b,k,g){var m=window,l={addOnWindowUnload:function(l,o){if(!b.windowUnloaded)g(m,"unload",b.windowUnloaded=function(){});g(m,"unload",k.hitch(l,o))},addOnUnload:function(b,l){g(m,"beforeunload",k.hitch(b,l))}};b.addOnWindowUnload=l.addOnWindowUnload;b.addOnUnload=l.addOnUnload;return l})},"dojo/Deferred":function(){define(["./has","./_base/lang","./errors/CancelError","./promise/Promise","./promise/instrumentation"],function(b,k,g,m,l){var n=Object.freeze||function(){},o=
function(a,b,h,g,f){2===b&&e.instrumentRejected&&0===a.length&&e.instrumentRejected(h,!1,g,f);for(f=0;f<a.length;f++)i(a[f],b,h,g)},i=function(b,d,j,g){var f=b[d],i=b.deferred;if(f)try{var k=f(j);if(0===d)"undefined"!==typeof k&&a(i,d,k);else{if(k&&"function"===typeof k.then){b.cancel=k.cancel;k.then(h(i,1),h(i,2),h(i,0));return}a(i,1,k)}}catch(l){a(i,2,l)}else a(i,d,j);2===d&&e.instrumentRejected&&e.instrumentRejected(j,!!f,g,i.promise)},h=function(b,d){return function(e){a(b,d,e)}},a=function(a,
b,e){if(!a.isCanceled())switch(b){case 0:a.progress(e);break;case 1:a.resolve(e);break;case 2:a.reject(e)}},e=function(a){var b=this.promise=new m,h=this,k,f,l,r=!1,v=[];Error.captureStackTrace&&(Error.captureStackTrace(h,e),Error.captureStackTrace(b,e));this.isResolved=b.isResolved=function(){return 1===k};this.isRejected=b.isRejected=function(){return 2===k};this.isFulfilled=b.isFulfilled=function(){return!!k};this.isCanceled=b.isCanceled=function(){return r};this.progress=function(a,c){if(k){if(!0===
c)throw Error("This deferred has already been fulfilled.");return b}o(v,0,a,null,h);return b};this.resolve=function(a,c){if(k){if(!0===c)throw Error("This deferred has already been fulfilled.");return b}o(v,k=1,f=a,null,h);v=null;return b};var u=this.reject=function(a,c){if(k){if(!0===c)throw Error("This deferred has already been fulfilled.");return b}Error.captureStackTrace&&Error.captureStackTrace(l={},u);o(v,k=2,f=a,l,h);v=null;return b};this.then=b.then=function(a,c,h){var j=[h,a,c];j.cancel=
b.cancel;j.deferred=new e(function(a){return j.cancel&&j.cancel(a)});k&&!v?i(j,k,f,l):v.push(j);return j.deferred.promise};this.cancel=b.cancel=function(b,d){if(k){if(!0===d)throw Error("This deferred has already been fulfilled.");}else{if(a)var e=a(b),b="undefined"===typeof e?b:e;r=!0;if(k){if(2===k&&f===b)return b}else return"undefined"===typeof b&&(b=new g),u(b),b}};n(b)};e.prototype.toString=function(){return"[object Deferred]"};l&&l(e);return e})},"dojo/_base/NodeList":function(){define("dojo/_base/NodeList",
["./kernel","../query","./array","./html","../NodeList-dom"],function(b,k,g){var k=k.NodeList,m=k.prototype;m.connect=k._adaptAsForEach(function(){return b.connect.apply(this,arguments)});m.coords=k._adaptAsMap(b.coords);k.events="blur,focus,change,click,error,keydown,keypress,keyup,load,mousedown,mouseenter,mouseleave,mousemove,mouseout,mouseover,mouseup,submit".split(",");g.forEach(k.events,function(b){var g="on"+b;m[g]=function(b,i){return this.connect(g,b,i)}});return b.NodeList=k})},"dojo/_base/Color":function(){define(["./kernel",
"./lang","./array","./config"],function(b,k,g,m){var l=b.Color=function(b){b&&this.setColor(b)};l.named={black:[0,0,0],silver:[192,192,192],gray:[128,128,128],white:[255,255,255],maroon:[128,0,0],red:[255,0,0],purple:[128,0,128],fuchsia:[255,0,255],green:[0,128,0],lime:[0,255,0],olive:[128,128,0],yellow:[255,255,0],navy:[0,0,128],blue:[0,0,255],teal:[0,128,128],aqua:[0,255,255],transparent:m.transparentColor||[0,0,0,0]};k.extend(l,{r:255,g:255,b:255,a:1,_set:function(b,g,i,h){this.r=b;this.g=g;this.b=
i;this.a=h},setColor:function(b){k.isString(b)?l.fromString(b,this):k.isArray(b)?l.fromArray(b,this):(this._set(b.r,b.g,b.b,b.a),b instanceof l||this.sanitize());return this},sanitize:function(){return this},toRgb:function(){return[this.r,this.g,this.b]},toRgba:function(){return[this.r,this.g,this.b,this.a]},toHex:function(){return"#"+g.map(["r","g","b"],function(b){b=this[b].toString(16);return 2>b.length?"0"+b:b},this).join("")},toCss:function(b){var g=this.r+", "+this.g+", "+this.b;return(b?"rgba("+
g+", "+this.a:"rgb("+g)+")"},toString:function(){return this.toCss(!0)}});l.blendColors=b.blendColors=function(b,k,i,h){var a=h||new l;g.forEach(["r","g","b","a"],function(e){a[e]=b[e]+(k[e]-b[e])*i;"a"!=e&&(a[e]=Math.round(a[e]))});return a.sanitize()};l.fromRgb=b.colorFromRgb=function(b,g){var i=b.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/);return i&&l.fromArray(i[1].split(/\s*,\s*/),g)};l.fromHex=b.colorFromHex=function(b,k){var i=k||new l,h=4==b.length?4:8,a=(1<<h)-1,b=Number("0x"+b.substr(1));
if(isNaN(b))return null;g.forEach(["b","g","r"],function(e){var c=b&a;b>>=h;i[e]=4==h?17*c:c});i.a=1;return i};l.fromArray=b.colorFromArray=function(b,g){var i=g||new l;i._set(Number(b[0]),Number(b[1]),Number(b[2]),Number(b[3]));if(isNaN(i.a))i.a=1;return i.sanitize()};l.fromString=b.colorFromString=function(b,g){var i=l.named[b];return i&&l.fromArray(i,g)||l.fromRgb(b,g)||l.fromHex(b,g)};return l})},"dojo/promise/instrumentation":function(){define(["./tracer","../has","../_base/lang","../_base/array"],
function(b,k,g,m){function l(a,b,e){var h="";a&&a.stack&&(h+=a.stack);b&&b.stack&&(h+="\n    ----------------------------------------\n    rejected"+b.stack.split("\n").slice(1).join("\n").replace(/^\s+/," "));e&&e.stack&&(h+="\n    ----------------------------------------\n"+e.stack);console.error(a,h)}function n(a,b,e,h){b||l(a,e,h)}function o(b,d,g,k){d?m.some(h,function(a,d){if(a.error===b)return h.splice(d,1),!0}):m.some(h,function(a){return a.error===b})||h.push({error:b,rejection:g,deferred:k,
timestamp:(new Date).getTime()});a||(a=setTimeout(i,e))}function i(){var b=(new Date).getTime(),d=b-e;h=m.filter(h,function(a){return a.timestamp<d?(l(a.error,a.rejection,a.deferred),!1):!0});a=h.length?setTimeout(i,h[0].timestamp+e-b):!1}var h=[],a=!1,e=1E3;return function(a){var d=k("config-useDeferredInstrumentation");if(d){b.on("resolved",g.hitch(console,"log","resolved"));b.on("rejected",g.hitch(console,"log","rejected"));b.on("progress",g.hitch(console,"log","progress"));var h=[];"string"===
typeof d&&(h=d.split(","),d=h.shift());if("report-rejections"===d)a.instrumentRejected=n;else if("report-unhandled-rejections"===d||!0===d||1===d)a.instrumentRejected=o,e=parseInt(h[0],10)||e;else throw Error("Unsupported instrumentation usage <"+d+">");}}})},"dojo/selector/_loader":function(){define("dojo/selector/_loader",["../has","require"],function(b,k){var g=document.createElement("div");b.add("dom-qsa2.1",!!g.querySelectorAll);b.add("dom-qsa3",function(){try{return g.innerHTML="<p class='TEST'></p>",
1==g.querySelectorAll(".TEST:empty").length}catch(b){}});var m;return{load:function(g,n,o){var i=k,g="default"==g?b("config-selectorEngine")||"css3":g,g="css2"==g||"lite"==g?"./lite":"css2.1"==g?b("dom-qsa2.1")?"./lite":"./acme":"css3"==g?b("dom-qsa3")?"./lite":"./acme":"acme"==g?"./acme":(i=n)&&g;if("?"==g.charAt(g.length-1))var g=g.substring(0,g.length-1),h=!0;if(h&&(b("dom-compliant-qsa")||m))return o(m);i([g],function(a){"./lite"!=g&&(m=a);o(a)})}}})},"dojo/promise/Promise":function(){define("dojo/promise/Promise",
["../_base/lang"],function(b){function k(){throw new TypeError("abstract");}return b.extend(function(){},{then:function(){k()},cancel:function(){k()},isResolved:function(){k()},isRejected:function(){k()},isFulfilled:function(){k()},isCanceled:function(){k()},always:function(b){return this.then(b,b)},otherwise:function(b){return this.then(null,b)},trace:function(){return this},traceRejected:function(){return this},toString:function(){return"[object Promise]"}})})},"dojo/request/watch":function(){define("./util,../errors/RequestTimeoutError,../errors/CancelError,../_base/array,../_base/window,../has!host-browser?dom-addeventlistener?:../on:".split(","),
function(b,k,g,m,l,n){function o(){for(var b=+new Date,c=0,d;c<a.length&&(d=a[c]);c++){var g=d.response,l=g.options;if(d.isCanceled&&d.isCanceled()||d.isValid&&!d.isValid(g))a.splice(c--,1),i._onAction&&i._onAction();else if(d.isReady&&d.isReady(g))a.splice(c--,1),d.handleResponse(g),i._onAction&&i._onAction();else if(d.startTime&&d.startTime+(l.timeout||0)<b)a.splice(c--,1),d.cancel(new k("Timeout exceeded",g)),i._onAction&&i._onAction()}i._onInFlight&&i._onInFlight(d);a.length||(clearInterval(h),
h=null)}function i(b){if(b.response.options.timeout)b.startTime=+new Date;b.isFulfilled()||(a.push(b),h||(h=setInterval(o,50)),b.response.options.sync&&o())}var h=null,a=[];i.cancelAll=function(){try{m.forEach(a,function(a){try{a.cancel(new g("All requests canceled."))}catch(b){}})}catch(b){}};l&&n&&l.doc.attachEvent&&n(l.global,"unload",function(){i.cancelAll()});return i})},"dojo/on":function(){define(["./has!dom-addeventlistener?:./aspect","./_base/kernel","./has"],function(b,k,g){function m(a,
b,d,f,e){if(f=b.match(/(.*):(.*)/))return b=f[2],f=f[1],i.selector(f,b).call(e,a,d);g("touch")&&(h.test(b)&&(d=s(d)),!g("event-orientationchange")&&"orientationchange"==b&&(b="resize",a=window,d=s(d)));j&&(d=j(d));if(a.addEventListener){var k=b in c,l=k?c[b]:b;a.addEventListener(l,d,k);return{remove:function(){a.removeEventListener(l,d,k)}}}if(r&&a.attachEvent)return r(a,"on"+b,d);throw Error("Target must be an event emitter");}function l(){this.cancelable=!1}function n(){this.bubbles=!1}var o=window.ScriptEngineMajorVersion;
g.add("jscript",o&&o()+ScriptEngineMinorVersion()/10);g.add("event-orientationchange",g("touch")&&!g("android"));g.add("event-stopimmediatepropagation",window.Event&&!!window.Event.prototype&&!!window.Event.prototype.stopImmediatePropagation);var i=function(a,b,c,d){return"function"==typeof a.on&&"function"!=typeof b&&!a.nodeType?a.on(b,c):i.parse(a,b,c,m,d,this)};i.pausable=function(a,b,c,d){var f,a=i(a,b,function(){if(!f)return c.apply(this,arguments)},d);a.pause=function(){f=!0};a.resume=function(){f=
!1};return a};i.once=function(a,b,c){var d=i(a,b,function(){d.remove();return c.apply(this,arguments)});return d};i.parse=function(a,b,c,d,f,e){if(b.call)return b.call(e,a,c);if(-1<b.indexOf(",")){for(var b=b.split(/\s*,\s*/),h=[],g=0,j;j=b[g++];)h.push(d(a,j,c,f,e));h.remove=function(){for(var a=0;a<h.length;a++)h[a].remove()};return h}return d(a,b,c,f,e)};var h=/^touch/;i.selector=function(a,b,c){return function(d,f){function e(b){for(h=h&&h.matches?h:k.query;!h.matches(b,a,d);)if(b==d||!1===c||
!(b=b.parentNode)||1!=b.nodeType)return;return b}var h="function"==typeof a?{matches:a}:this,g=b.bubble;return g?i(d,g(e),f):i(d,b,function(a){var b=e(a.target);return b&&f.call(b,a)})}};var a=[].slice,e=i.emit=function(b,c,d){var f=a.call(arguments,2),e="on"+c;if("parentNode"in b){var h=f[0]={},g;for(g in d)h[g]=d[g];h.preventDefault=l;h.stopPropagation=n;h.target=b;h.type=c;d=h}do b[e]&&b[e].apply(b,f);while(d&&d.bubbles&&(b=b.parentNode));return d&&d.cancelable&&d},c={};if(!g("event-stopimmediatepropagation"))var d=
function(){this.modified=this.immediatelyStopped=!0},j=function(a){return function(b){if(!b.immediatelyStopped)return b.stopImmediatePropagation=d,a.apply(this,arguments)}};if(g("dom-addeventlistener"))c={focusin:"focus",focusout:"blur"},i.emit=function(a,b,c){if(a.dispatchEvent&&document.createEvent){var d=a.ownerDocument.createEvent("HTMLEvents");d.initEvent(b,!!c.bubbles,!!c.cancelable);for(var f in c)f in d||(d[f]=c[f]);return a.dispatchEvent(d)&&d}return e.apply(i,arguments)};else{i._fixEvent=
function(a,b){if(!a)a=(b&&(b.ownerDocument||b.document||b).parentWindow||window).event;if(!a)return a;p&&a.type==p.type&&(a=p);if(!a.target){a.target=a.srcElement;a.currentTarget=b||a.srcElement;if("mouseover"==a.type)a.relatedTarget=a.fromElement;if("mouseout"==a.type)a.relatedTarget=a.toElement;if(!a.stopPropagation)a.stopPropagation=v,a.preventDefault=u;switch(a.type){case "keypress":var c="charCode"in a?a.charCode:a.keyCode;10==c?(c=0,a.keyCode=13):13==c||27==c?c=0:3==c&&(c=99);a.charCode=c;c=
a;c.keyChar=c.charCode?String.fromCharCode(c.charCode):"";c.charOrCode=c.keyChar||c.keyCode}}return a};var p,f=function(a){this.handle=a};f.prototype.remove=function(){delete _dojoIEListeners_[this.handle]};var q=function(a){return function(b){var b=i._fixEvent(b,this),c=a.call(this,b);b.modified&&(p||setTimeout(function(){p=null}),p=b);return c}},r=function(a,c,d){d=q(d);if(((a.ownerDocument?a.ownerDocument.parentWindow:a.parentWindow||a.window||window)!=top||5.8>g("jscript"))&&!g("config-_allow_leaks")){"undefined"==
typeof _dojoIEListeners_&&(_dojoIEListeners_=[]);var e=a[c];if(!e||!e.listeners){var h=e,e=Function("event","var callee = arguments.callee; for(var i = 0; i<callee.listeners.length; i++){var listener = _dojoIEListeners_[callee.listeners[i]]; if(listener){listener.call(this,event);}}");e.listeners=[];a[c]=e;e.global=this;h&&e.listeners.push(_dojoIEListeners_.push(h)-1)}e.listeners.push(a=e.global._dojoIEListeners_.push(d)-1);return new f(a)}return b.after(a,c,d,!0)},v=function(){this.cancelBubble=
!0},u=i._preventDefault=function(){this.bubbledKeyCode=this.keyCode;if(this.ctrlKey)try{this.keyCode=0}catch(a){}this.defaultPrevented=!0;this.returnValue=!1}}if(g("touch"))var z=function(){},w=window.orientation,s=function(a){return function(b){var c=b.corrected;if(!c){var d=b.type;try{delete b.type}catch(f){}if(b.type){if(g("mozilla")){var c={},e;for(e in b)c[e]=b[e]}else z.prototype=b,c=new z;c.preventDefault=function(){b.preventDefault()};c.stopPropagation=function(){b.stopPropagation()}}else c=
b,c.type=d;b.corrected=c;if("resize"==d){if(w==window.orientation)return null;w=window.orientation;c.type="orientationchange";return a.call(this,c)}if(!("rotation"in c))c.rotation=0,c.scale=1;var d=c.changedTouches[0],h;for(h in d)delete c[h],c[h]=d[h]}return a.call(this,c)}};return i})},"dojo/_base/sniff":function(){define(["./kernel","./lang","../sniff"],function(b,k,g){b._name="browser";k.mixin(b,{isBrowser:!0,isFF:g("ff"),isIE:g("ie"),isKhtml:g("khtml"),isWebKit:g("webkit"),isMozilla:g("mozilla"),
isMoz:g("mozilla"),isOpera:g("opera"),isSafari:g("safari"),isChrome:g("chrome"),isMac:g("mac"),isIos:g("ios"),isAndroid:g("android"),isWii:g("wii"),isQuirks:g("quirks"),isAir:g("air")});b.locale=b.locale||(g("ie")?navigator.userLanguage:navigator.language).toLowerCase();return g})},"dojo/errors/create":function(){define(["../_base/lang"],function(b){return function(k,g,m,l){var m=m||Error,n=function(b){if(m===Error){Error.captureStackTrace&&Error.captureStackTrace(this,n);var i=Error.call(this,b),
h;for(h in i)i.hasOwnProperty(h)&&(this[h]=i[h]);this.message=b;this.stack=i.stack}else m.apply(this,arguments);g&&g.apply(this,arguments)};n.prototype=b.delegate(m.prototype,l);n.prototype.name=k;return n.prototype.constructor=n}})},"dojo/_base/array":function(){define(["./kernel","../has","./lang"],function(b,k,g){function m(a){return o[a]=new Function("item","index","array",a)}function l(a){var b=!a;return function(c,d,h){var g=0,f=c&&c.length||0,i;f&&"string"==typeof c&&(c=c.split(""));"string"==
typeof d&&(d=o[d]||m(d));if(h)for(;g<f;++g){if(i=!d.call(h,c[g],g,c),a^i)return!i}else for(;g<f;++g)if(i=!d(c[g],g,c),a^i)return!i;return b}}function n(a){var b=1,c=0,d=0;a||(b=c=d=-1);return function(g,k,f,l){if(l&&0<b)return h.lastIndexOf(g,k,f);var l=g&&g.length||0,m=a?l+d:c;f===i?f=a?c:l+d:0>f?(f=l+f,0>f&&(f=c)):f=f>=l?l+d:f;for(l&&"string"==typeof g&&(g=g.split(""));f!=m;f+=b)if(g[f]==k)return f;return-1}}var o={},i,h={every:l(!1),some:l(!0),indexOf:n(!0),lastIndexOf:n(!1),forEach:function(a,
b,c){var d=0,h=a&&a.length||0;h&&"string"==typeof a&&(a=a.split(""));"string"==typeof b&&(b=o[b]||m(b));if(c)for(;d<h;++d)b.call(c,a[d],d,a);else for(;d<h;++d)b(a[d],d,a)},map:function(a,b,c,d){var h=0,g=a&&a.length||0,d=new (d||Array)(g);g&&"string"==typeof a&&(a=a.split(""));"string"==typeof b&&(b=o[b]||m(b));if(c)for(;h<g;++h)d[h]=b.call(c,a[h],h,a);else for(;h<g;++h)d[h]=b(a[h],h,a);return d},filter:function(a,b,c){var d=0,h=a&&a.length||0,g=[],f;h&&"string"==typeof a&&(a=a.split(""));"string"==
typeof b&&(b=o[b]||m(b));if(c)for(;d<h;++d)f=a[d],b.call(c,f,d,a)&&g.push(f);else for(;d<h;++d)f=a[d],b(f,d,a)&&g.push(f);return g},clearCache:function(){o={}}};g.mixin(b,h);return h})},"dojo/_base/json":function(){define(["./kernel","../json"],function(b,k){b.fromJson=function(b){return eval("("+b+")")};b._escapeString=k.stringify;b.toJsonIndentStr="\t";b.toJson=function(g,m){return k.stringify(g,function(b,g){if(g){var k=g.__json__||g.json;if("function"==typeof k)return k.call(g)}return g},m&&b.toJsonIndentStr)};
return b})},"dojo/_base/window":function(){define("dojo/_base/window",["./kernel","./lang","../sniff"],function(b,k,g){var m={global:b.global,doc:this.document||null,body:function(g){g=g||b.doc;return g.body||g.getElementsByTagName("body")[0]},setContext:function(g,k){b.global=m.global=g;b.doc=m.doc=k},withGlobal:function(g,k,o,i){var h=b.global;try{return b.global=m.global=g,m.withDoc.call(null,g.document,k,o,i)}finally{b.global=m.global=h}},withDoc:function(k,n,o,i){var h=m.doc,a=g("quirks"),e=
g("ie"),c,d,j;try{b.doc=m.doc=k;b.isQuirks=g.add("quirks","BackCompat"==b.doc.compatMode,!0,!0);if(g("ie")&&(j=k.parentWindow)&&j.navigator)c=parseFloat(j.navigator.appVersion.split("MSIE ")[1])||void 0,(d=k.documentMode)&&5!=d&&Math.floor(c)!=d&&(c=d),b.isIE=g.add("ie",c,!0,!0);o&&"string"==typeof n&&(n=o[n]);return n.apply(o,i||[])}finally{b.doc=m.doc=h,b.isQuirks=g.add("quirks",a,!0,!0),b.isIE=g.add("ie",e,!0,!0)}}};k.mixin(b,m);return m})},"dojo/dom-class":function(){define(["./_base/lang","./_base/array",
"./dom"],function(b,k,g){function m(b){if("string"==typeof b||b instanceof String){if(b&&!n.test(b))return o[0]=b,o;b=b.split(n);b.length&&!b[0]&&b.shift();b.length&&!b[b.length-1]&&b.pop();return b}return!b?[]:k.filter(b,function(a){return a})}var l,n=/\s+/,o=[""],i={};return l={contains:function(b,a){return 0<=(" "+g.byId(b).className+" ").indexOf(" "+a+" ")},add:function(b,a){var b=g.byId(b),a=m(a),e=b.className,c,e=e?" "+e+" ":" ";c=e.length;for(var d=0,i=a.length,k;d<i;++d)(k=a[d])&&0>e.indexOf(" "+
k+" ")&&(e+=k+" ");c<e.length&&(b.className=e.substr(1,e.length-2))},remove:function(h,a){var h=g.byId(h),e;if(void 0!==a){a=m(a);e=" "+h.className+" ";for(var c=0,d=a.length;c<d;++c)e=e.replace(" "+a[c]+" "," ");e=b.trim(e)}else e="";h.className!=e&&(h.className=e)},replace:function(b,a,e){b=g.byId(b);i.className=b.className;l.remove(i,e);l.add(i,a);b.className!==i.className&&(b.className=i.className)},toggle:function(b,a,e){b=g.byId(b);if(void 0===e)for(var a=m(a),c=0,d=a.length,i;c<d;++c)i=a[c],
l[l.contains(b,i)?"remove":"add"](b,i);else l[e?"add":"remove"](b,a);return e}}})},"dojo/_base/config":function(){define(["../has","require"],function(b,k){var g={},m=k.rawConfig,l;for(l in m)g[l]=m[l];return g})},"dojo/main":function(){define("./_base/kernel,./has,require,./sniff,./_base/lang,./_base/array,./_base/config,./ready,./_base/declare,./_base/connect,./_base/Deferred,./_base/json,./_base/Color,./has!dojo-firebug?./_firebug/firebug,./_base/browser,./_base/loader".split(","),function(b,k,
g,m,l,n,o,i){o.isDebug&&g(["./_firebug/firebug"]);var h=o.require;h&&(h=n.map(l.isArray(h)?h:[h],function(a){return a.replace(/\./g,"/")}),b.isAsync?g(h):i(1,function(){g(h)}));return b})},"dojo/_base/event":function(){define("dojo/_base/event",["./kernel","../on","../has","../dom-geometry"],function(b,k,g,m){if(k._fixEvent){var l=k._fixEvent;k._fixEvent=function(b,g){(b=l(b,g))&&m.normalizeEvent(b);return b}}var n={fix:function(b,g){return k._fixEvent?k._fixEvent(b,g):b},stop:function(b){g("dom-addeventlistener")||
b&&b.preventDefault?(b.preventDefault(),b.stopPropagation()):(b=b||window.event,b.cancelBubble=!0,k._preventDefault.call(b))}};b.fixEvent=n.fix;b.stopEvent=n.stop;return n})},"dojo/sniff":function(){define(["./has"],function(b){var k=navigator,g=k.userAgent,k=k.appVersion,m=parseFloat(k);b.add("air",0<=g.indexOf("AdobeAIR"));b.add("khtml",0<=k.indexOf("Konqueror")?m:void 0);b.add("webkit",parseFloat(g.split("WebKit/")[1])||void 0);b.add("chrome",parseFloat(g.split("Chrome/")[1])||void 0);b.add("safari",
0<=k.indexOf("Safari")&&!b("chrome")?parseFloat(k.split("Version/")[1]):void 0);b.add("mac",0<=k.indexOf("Macintosh"));b.add("quirks","BackCompat"==document.compatMode);b.add("ios",/iPhone|iPod|iPad/.test(g));b.add("android",parseFloat(g.split("Android ")[1])||void 0);if(!b("webkit")){0<=g.indexOf("Opera")&&b.add("opera",9.8<=m?parseFloat(g.split("Version/")[1])||m:m);0<=g.indexOf("Gecko")&&!b("khtml")&&!b("webkit")&&b.add("mozilla",m);b("mozilla")&&b.add("ff",parseFloat(g.split("Firefox/")[1]||g.split("Minefield/")[1])||
void 0);if(document.all&&!b("opera"))g=parseFloat(k.split("MSIE ")[1])||void 0,(k=document.documentMode)&&5!=k&&Math.floor(g)!=k&&(g=k),b.add("ie",g);b.add("wii","undefined"!=typeof opera&&opera.wiiremote)}return b})},"dojo/request/handlers":function(){define(["../json","../_base/kernel","../_base/array","../has","../selector/_loader"],function(b,k,g,m){function l(b){var a=i[b.options.handleAs];b.data=a?a(b):b.data||b.text;return b}m.add("activex","undefined"!==typeof ActiveXObject);m.add("dom-parser",
function(b){return"DOMParser"in b});var n;if(m("activex")){var o=["Msxml2.DOMDocument.6.0","Msxml2.DOMDocument.4.0","MSXML2.DOMDocument.3.0","MSXML.DOMDocument"];n=function(b){var a=b.data;a&&m("dom-qsa2.1")&&!a.querySelectorAll&&m("dom-parser")&&(a=(new DOMParser).parseFromString(b.text,"application/xml"));if(!a||!a.documentElement){var e=b.text;g.some(o,function(b){try{var d=new ActiveXObject(b);d.async=!1;d.loadXML(e);a=d}catch(g){return!1}return!0})}return a}}var i={javascript:function(b){return k.eval(b.text||
"")},json:function(g){return b.parse(g.text||null)},xml:n};l.register=function(b,a){i[b]=a};return l})},"dojo/aspect":function(){define([],function(){function b(b,g,a,e){var c=b[g],d="around"==g,j;if(d){var k=a(function(){return c.advice(this,arguments)});j={remove:function(){k&&(k=b=a=null)},advice:function(a,b){return k?k.apply(a,b):c.advice(a,b)}}}else j={remove:function(){if(j.advice){var c=j.previous,d=j.next;if(!d&&!c)delete b[g];else if(c?c.next=d:b[g]=d,d)d.previous=c;b=a=j.advice=null}},
id:m++,advice:a,receiveArguments:e};if(c&&!d)if("after"==g){for(;c.next&&(c=c.next););c.next=j;j.previous=c}else{if("before"==g)b[g]=j,j.next=c,c.previous=j}else b[g]=j;return j}function k(i){return function(h,a,e,c){var d=h[a],j;if(!d||d.target!=h){h[a]=j=function(){for(var a=m,b=arguments,c=j.before;c;)b=c.advice.apply(this,b)||b,c=c.next;if(j.around)var d=j.around.advice(this,b);for(c=j.after;c&&c.id<a;){if(c.receiveArguments)var e=c.advice.apply(this,b),d=e===g?d:e;else d=c.advice.call(this,d,
b);c=c.next}return d};if(d)j.around={advice:function(a,b){return d.apply(a,b)}};j.target=h}h=b(j||d,i,e,c);e=null;return h}}var g,m=0,l=k("after"),n=k("before"),o=k("around");return{before:n,around:o,after:l}})},"dojo/ready":function(){define(["./_base/kernel","./has","require","./domReady","./_base/lang"],function(b,k,g,m,l){var n=0,o,i=[],h=0,a=function(){if(n&&!h&&i.length){h=1;var b=i.shift();try{b()}finally{h=0}h=0;i.length&&o(a)}};g.on&&g.on("idle",a);o=function(){(g.idle?g.idle():1)&&a()};
var k=b.ready=b.addOnLoad=function(a,d,e){var g=l._toArray(arguments);"number"!=typeof a?(e=d,d=a,a=1E3):g.shift();e=e?l.hitch.apply(b,g):function(){d()};e.priority=a;for(g=0;g<i.length&&a>=i[g].priority;g++);i.splice(g,0,e);o()},e=b.config.addOnLoad;if(e)k[l.isArray(e)?"apply":"call"](b,e);b.config.parseOnLoad&&!b.isAsync&&k(99,function(){b.parser||(b.deprecated("Add explicit require(['dojo/parser']);","","2.0"),g(["dojo/parser"]))});m(function(){n=1;b._postLoad=b.config.afterOnLoad=!0;i.length&&
o(a)});return k})},"dojo/_base/connect":function(){define("dojo/_base/connect","./kernel,../on,../topic,../aspect,./event,../mouse,./sniff,./lang,../keys".split(","),function(b,k,g,m,l,n,o,i){function h(a,c,d,e,g){e=i.hitch(d,e);if(!a||!a.addEventListener&&!a.attachEvent)return m.after(a||b.global,c,e,!0);"string"==typeof c&&"on"==c.substring(0,2)&&(c=c.substring(2));if(!a)a=b.global;if(!g)switch(c){case "keypress":c=j;break;case "mouseenter":c=n.enter;break;case "mouseleave":c=n.leave}return k(a,
c,e,g)}function a(a){a.keyChar=a.charCode?String.fromCharCode(a.charCode):"";a.charOrCode=a.keyChar||a.keyCode}o.add("events-keypress-typed",function(){var a={charCode:0};try{a=document.createEvent("KeyboardEvent"),(a.initKeyboardEvent||a.initKeyEvent).call(a,"keypress",!0,!0,null,!1,!1,!1,!1,9,3)}catch(b){}return 0==a.charCode&&!o("opera")});var e={106:42,111:47,186:59,187:43,188:44,189:45,190:46,191:47,192:96,219:91,220:92,221:93,222:39,229:113},c=o("mac")?"metaKey":"ctrlKey",d=function(b,c){var d=
i.mixin({},b,c);a(d);d.preventDefault=function(){b.preventDefault()};d.stopPropagation=function(){b.stopPropagation()};return d},j;j=o("events-keypress-typed")?function(a,b){var c=k(a,"keydown",function(a){var c=a.keyCode,f=13!=c&&32!=c&&(27!=c||!o("ie"))&&(48>c||90<c)&&(96>c||111<c)&&(186>c||192<c)&&(219>c||222<c)&&229!=c;if(f||a.ctrlKey){f=f?0:c;if(a.ctrlKey){if(3==c||13==c)return b.call(a.currentTarget,a);f=95<f&&106>f?f-48:!a.shiftKey&&65<=f&&90>=f?f+32:e[f]||f}c=d(a,{type:"keypress",faux:!0,
charCode:f});b.call(a.currentTarget,c);if(o("ie"))try{a.keyCode=c.keyCode}catch(g){}}}),g=k(a,"keypress",function(a){var c=a.charCode,a=d(a,{charCode:32<=c?c:0,faux:!0});return b.call(this,a)});return{remove:function(){c.remove();g.remove()}}}:o("opera")?function(a,b){return k(a,"keypress",function(a){var c=a.which;3==c&&(c=99);c=32>c&&!a.shiftKey?0:c;a.ctrlKey&&!a.shiftKey&&65<=c&&90>=c&&(c+=32);return b.call(this,d(a,{charCode:c}))})}:function(b,c){return k(b,"keypress",function(b){a(b);return c.call(this,
b)})};var p={_keypress:j,connect:function(a,b,c,d,e){var g=arguments,i=[],j=0;i.push("string"==typeof g[0]?null:g[j++],g[j++]);var k=g[j+1];i.push("string"==typeof k||"function"==typeof k?g[j++]:null,g[j++]);for(k=g.length;j<k;j++)i.push(g[j]);return h.apply(this,i)},disconnect:function(a){a&&a.remove()},subscribe:function(a,b,c){return g.subscribe(a,i.hitch(b,c))},publish:function(a,b){return g.publish.apply(g,[a].concat(b))},connectPublisher:function(a,b,c){var d=function(){p.publish(a,arguments)};
return c?p.connect(b,c,d):p.connect(b,d)},isCopyKey:function(a){return a[c]}};p.unsubscribe=p.disconnect;i.mixin(b,p);return p})},"dojo/errors/CancelError":function(){define("dojo/errors/CancelError",["./create"],function(b){return b("CancelError",null,null,{dojoType:"cancel"})})}}});(function(){var b=this.require;b({cache:{}});!b.async&&b(["dojo"]);b.boot&&b.apply(null,b.boot)})();
