/* 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;bg;)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")]), !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;pthis._percent)this._startTimer();else{this._active=!1;if(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"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;ja?(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,0b&&(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||0b.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;ha?"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=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),me?e=e%f&&f+e%f:0=f&&(j=e-e%f),e%=f):0>f&&(f*=-1,0=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~+]|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':"<"+k.join("><")+">",k.post="";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*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(/]*>\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=1a||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:(2b.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;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");}}})},"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="

", 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;cg("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; if?(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(;de.indexOf(" "+ k+" ")&&(e+=k+" ");c=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||90c||111c||192c||222f?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