//>>built (function(g,k){var i,j,e=function(){},c=function(a){for(var d in a)return 0;return 1},h={}.toString,b=function(a){return"[object Function]"==h.call(a)},f=function(a){return"[object String]"==h.call(a)},a=function(a){return"[object Array]"==h.call(a)},l=function(a,d){if(a)for(var b=0;b")]),!a.def||d?ha:a.cjs&&a.cjs.exports;if(!a.executed){if(!a.def)return ha;var l=a.mid,f=a.deps||[],c,e=[],m=0;for(a.executed=4;mg.attributes.length); k.clearElement=function(g){g.innerHTML="";return g};k.normalize=function(g,j){var e=g.match(/[\?:]|[^:\?]*/g),c=0,h=function(b){var f=e[c++];if(":"==f)return 0;if("?"==e[c++]){if(!b&&k(f))return h();h(!0);return h(b)}return f||0};return(g=h())&&j(g)};k.load=function(g,j,e){g?j([g],e):e()};return k})},"dojo/_base/config":function(){define(["../has","require"],function(g,k){var i={},j=k.rawConfig,e;for(e in j)i[e]=j[e];return i})},"dojo/_base/array":function(){define(["./kernel","../has","./lang"], function(g,k,i){function j(a){return h[a]=new Function("item","index","array",a)}function e(a){var b=!a;return function(d,f,c){var e=0,g=d&&d.length||0,i;g&&"string"==typeof d&&(d=d.split(""));"string"==typeof f&&(f=h[f]||j(f));if(c)for(;eh? (h=j+h,0>h&&(h=d)):h=h>=j?j+c:h;for(j&&"string"==typeof e&&(e=e.split(""));h!=i;h+=l)if(e[h]==g)return h;return-1}}var h={},b,f={every:e(!1),some:e(!0),indexOf:c(!0),lastIndexOf:c(!1),forEach:function(a,b,d){var f=0,c=a&&a.length||0;c&&"string"==typeof a&&(a=a.split(""));"string"==typeof b&&(b=h[b]||j(b));if(d)for(;f=u&&(u=0,r.ioPublish&&g.publish&&(!a||a&&!1!==a.ioArgs.args.ioPublish)&&g.publish("/dojo/io/stop"))},u=0;p.after(m,"_onAction",function(){u-=1});p.after(m,"_onInFlight",t);g._ioCancelAll=m.cancelAll;g._ioNotifyStart=function(a){r.ioPublish&& g.publish&&!1!==a.ioArgs.args.ioPublish&&(u||g.publish("/dojo/io/start"),u+=1,g.publish("/dojo/io/send",[a]))};g._ioWatch=function(b,d,f,c){b.ioArgs.options=b.ioArgs.args;a.mixin(b,{response:b.ioArgs,isValid:function(){return d(b)},isReady:function(){return f(b)},handleResponse:function(){return c(b)}});m(b);t(b)};g._ioAddQueryToUrl=function(a){if(a.query.length)a.url+=(-1==a.url.indexOf("?")?"?":"&")+a.query,a.query=null};g.xhr=function(a,b,d){var f,c=g._ioSetArgs(b,function(){f&&f.cancel()},v,s), l=c.ioArgs;"postData"in b?l.query=b.postData:"putData"in b?l.query=b.putData:"rawBody"in b?l.query=b.rawBody:(2a?(c=j(h),h=""):(c=j(h.slice(0,a)),h=j(h.slice(a+1)));"string"==typeof e[c]&&(e[c]=[e[c]]);g.isArray(e[c])?e[c].push(h):e[c]=h}return e}}})},"dojo/dom":function(){define(["./sniff","./_base/lang","./_base/window"],function(g,k,i){if(7>=g("ie"))try{document.execCommand("BackgroundImageCache",!1,!0)}catch(j){}var e={};e.byId=g("ie")?function(c,e){if("string"!=typeof c)return c;var b=e||i.doc,f=c&&b.getElementById(c);if(f&&(f.attributes.id.value==c||f.id==c))return f;b=b.all[c];if(!b|| b.nodeName)b=[b];for(var a=0;f=b[a++];)if(f.attributes&&f.attributes.id&&f.attributes.id.value==c||f.id==c)return f}:function(c,e){return("string"==typeof c?(e||i.doc).getElementById(c):c)||null};e.isDescendant=function(c,h){try{c=e.byId(c);for(h=e.byId(h);c;){if(c==h)return!0;c=c.parentNode}}catch(b){}return!1};e.setSelectable=function(c,h){c=e.byId(c);if(g("mozilla"))c.style.MozUserSelect=h?"":"none";else if(g("khtml")||g("webkit"))c.style.KhtmlUserSelect=h?"auto":"none";else if(g("ie"))for(var b= c.unselectable=h?"":"on",f=c.getElementsByTagName("*"),a=0,l=f.length;a"file|submit|image|reset|button".indexOf(d)&&!a.disabled){var p=h,m=l,a=e.fieldToObject(a);if(null!==a){var n=p[m];"string"==typeof n?p[m]=[n,a]:g.isArray(n)?n.push(a):p[m]=a}if("image"==d)h[l+".x"]=h[l+".y"]=h[l].x=h[l].y=0}}return h},toQuery:function(c){return i.objectToQuery(e.toObject(c))},toJson:function(c, g){return j.stringify(e.toObject(c),null,g?4:0)}};return e})},"dojo/json":function(){define(["./has"],function(g){var k="undefined"!=typeof JSON;g.add("json-parse",k);g.add("json-stringify",k&&'{"a":1}'==JSON.stringify({a:0},function(g,e){return e||1}));if(g("json-stringify"))return JSON;var i=function(g){return('"'+g.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:g("json-parse")?JSON.parse: function(g,e){if(e&&!/^([\s\[\{]*(?:"(?:\\.|[^"])+"|-?\d[\d\.]*(?:[Ee][+-]?\d+)?|null|true|false|)[\s\]\}]*(?:,|:|$))+$/.test(g))throw new SyntaxError("Invalid characters in JSON");return eval("("+g+")")},stringify:function(g,e,c){function h(f,a,l){e&&(f=e(l,f));var d;d=typeof f;if("number"==d)return isFinite(f)?f+"":"null";if("boolean"==d)return f+"";if(null===f)return"null";if("string"==typeof f)return i(f);if("function"==d||"undefined"==d)return b;if("function"==typeof f.toJSON)return h(f.toJSON(l), a,l);if(f instanceof Date)return'"{FullYear}-{Month+}-{Date}T{Hours}:{Minutes}:{Seconds}Z"'.replace(/\{(\w+)(\+)?\}/g,function(a,b,d){a=f["getUTC"+b]()+(d?1:0);return 10>a?"0"+a:a});if(f.valueOf()!==f)return h(f.valueOf(),a,l);var g=c?a+c:"",m=c?" ":"",n=c?"\n":"";if(f instanceof Array){for(var m=f.length,o=[],l=0;l");}}})},"dojo/promise/tracer":function(){define(["../_base/lang","./Promise","../Evented"],function(g,k,i){function j(g){setTimeout(function(){c.apply(e,g)},0)}var e=new i,c=e.emit; e.emit=null;k.prototype.trace=function(){var c=g._toArray(arguments);this.then(function(b){j(["resolved",b].concat(c))},function(b){j(["rejected",b].concat(c))},function(b){j(["progress",b].concat(c))});return this};k.prototype.traceRejected=function(){var c=g._toArray(arguments);this.otherwise(function(b){j(["rejected",b].concat(c))});return this};return e})},"dojo/Evented":function(){define("dojo/Evented",["./aspect","./on"],function(g,k){function i(){}var j=g.after;i.prototype={on:function(e,c){return k.parse(this, e,c,function(e,b){return j(e,"on"+b,c,!0)})},emit:function(e,c){var g=[this];g.push.apply(g,arguments);return k.emit.apply(k,g)}};return i})},"dojo/aspect":function(){define("dojo/aspect",[],function(){function g(b,f,a,c){var d=b[f],e="around"==f,g;if(e){var h=a(function(){return d.advice(this,arguments)});g={remove:function(){g.cancelled=!0},advice:function(a,b){return g.cancelled?d.advice(a,b):h.apply(a,b)}}}else g={remove:function(){var a=g.previous,d=g.next;if(!d&&!a)delete b[f];else if(a?a.next= d:b[f]=d,d)d.previous=a},id:j++,advice:a,receiveArguments:c};if(d&&!e)if("after"==f){for(a=d;a;)d=a,a=a.next;d.next=g;g.previous=d}else{if("before"==f)b[f]=g,g.next=d,d.previous=g}else b[f]=g;return g}function k(b){return function(f,a,c,d){var e=f[a],m;if(!e||e.target!=f){f[a]=m=function(){for(var a=j,b=arguments,d=m.before;d;)b=d.advice.apply(this,b)||b,d=d.next;if(m.around)var f=m.around.advice(this,b);for(d=m.after;d&&d.idi("jscript"))&&!i("config-_allow_leaks")){"undefined"==typeof _dojoIEListeners_&&(_dojoIEListeners_=[]);var f=a[b];if(!f||!f.listeners){var c=f,f=Function("event","var callee = arguments.callee; for(var i = 0; ia||304===a||1223===a||!a}})},"dojo/errors/RequestError":function(){define(["./create"],function(g){return g("RequestError",function(g,i){this.response=i})})},"dojo/errors/RequestTimeoutError":function(){define(["./create","./RequestError"],function(g, k){return g("RequestTimeoutError",null,k,{dojoType:"timeout"})})},"dojo/request/xhr":function(){define(["../errors/RequestError","./watch","./handlers","./util","../has"],function(g,k,i,j,e){function c(a,b){var d=a.xhr;a.status=a.xhr.status;a.text=d.responseText;if("xml"===a.options.handleAs)a.data=d.responseXML;if(!b)try{i(a)}catch(f){b=f}b?this.reject(b):j.checkStatus(d.status)?this.resolve(a):(b=new g("Unable to load "+a.url+" status: "+d.status,a),this.reject(b))}function h(m,i,n){var v=j.parseArgs(m, j.deepCreate(p,i),e("native-formdata")&&i&&i.data&&i.data instanceof FormData),m=v.url,i=v.options,s,t=j.deferred(v,l,b,f,c,function(){s&&s()}),u=v.xhr=h._create();if(!u)return t.cancel(new g("XHR was not created")),n?t:t.promise;v.getHeader=function(a){return this.xhr.getResponseHeader(a)};a&&(s=a(u,t,v));var y=i.data,z=!i.sync,I=i.method;try{u.open(I,m,z,i.user||d,i.password||d);if(i.withCredentials)u.withCredentials=i.withCredentials;var J=i.headers,N;if(J)for(var E in J)"content-type"===E.toLowerCase()? N=J[E]:J[E]&&u.setRequestHeader(E,J[E]);N&&!1!==N&&u.setRequestHeader("Content-Type",N);(!J||!("X-Requested-With"in J))&&u.setRequestHeader("X-Requested-With","XMLHttpRequest");j.notify&&j.notify.emit("send",v,t.promise.cancel);u.send(y)}catch(S){t.reject(S)}k(t);u=null;return n?t:t.promise}e.add("native-xhr",function(){return"undefined"!==typeof XMLHttpRequest});e.add("dojo-force-activex-xhr",function(){return e("activex")&&!document.addEventListener&&"file:"===window.location.protocol});e.add("native-xhr2", function(){if(e("native-xhr")){var a=new XMLHttpRequest;return"undefined"!==typeof a.addEventListener&&("undefined"===typeof opera||"undefined"!==typeof a.upload)}});e.add("native-formdata",function(){return"function"===typeof FormData});var b,f,a,l;e("native-xhr2")?(b=function(){return!this.isFulfilled()},l=function(a,b){b.xhr.abort()},a=function(a,b,d){function f(){b.handleResponse(d)}function c(a){a=new g("Unable to load "+d.url+" status: "+a.target.status,d);b.handleResponse(d,a)}function e(a){if(a.lengthComputable)d.loaded= a.loaded,d.total=a.total,b.progress(d)}a.addEventListener("load",f,!1);a.addEventListener("error",c,!1);a.addEventListener("progress",e,!1);return function(){a.removeEventListener("load",f,!1);a.removeEventListener("error",c,!1);a.removeEventListener("progress",e,!1)}}):(b=function(a){return a.xhr.readyState},f=function(a){return 4===a.xhr.readyState},l=function(a,b){var d=b.xhr,f=typeof d.abort;("function"===f||"object"===f||"unknown"===f)&&d.abort()});var d,p={data:null,query:null,sync:!1,method:"GET", headers:{"Content-Type":"application/x-www-form-urlencoded"}};h._create=function(){throw Error("XMLHTTP not available");};if(e("native-xhr")&&!e("dojo-force-activex-xhr"))h._create=function(){return new XMLHttpRequest};else if(e("activex"))try{new ActiveXObject("Msxml2.XMLHTTP"),h._create=function(){return new ActiveXObject("Msxml2.XMLHTTP")}}catch(m){try{new ActiveXObject("Microsoft.XMLHTTP"),h._create=function(){return new ActiveXObject("Microsoft.XMLHTTP")}}catch(n){}}j.addCommonMethods(h);return h})}, "dojo/request/handlers":function(){define(["../json","../_base/kernel","../_base/array","../has"],function(g,k,i,j){function e(f){var a=b[f.options.handleAs];f.data=a?a(f):f.data||f.text;return f}j.add("activex","undefined"!==typeof ActiveXObject);var c;if(j("activex")){var h=["Msxml2.DOMDocument.6.0","Msxml2.DOMDocument.4.0","MSXML2.DOMDocument.3.0","MSXML.DOMDocument"];c=function(b){var a=b.data;if(!a||!a.documentElement){var c=b.text;i.some(h,function(b){try{var f=new ActiveXObject(b);f.async= !1;f.loadXML(c);a=f}catch(e){return!1}return!0})}return a}}var b={javascript:function(b){return k.eval(b.text||"")},json:function(b){return g.parse(b.text||null)},xml:c};e.register=function(f,a){b[f]=a};return e})},"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,require".split(","),function(g,k,i,j,e, c,h,b){h.isDebug&&i(["./_firebug/firebug"]);var f=h.require;f&&(f=c.map(e.isArray(f)?f:[f],function(a){return a.replace(/\./g,"/")}),g.isAsync?i(f):b(1,function(){i(f)}));return g})},"dojo/ready":function(){define(["./_base/kernel","./has","require","./domReady","./_base/lang"],function(g,k,i,j,e){var c=0,h,b=[],f=0,a=function(){if(c&&!f&&b.length){f=1;var d=b.shift();try{d()}finally{f=0}f=0;b.length&&h(a)}};i.on("idle",a);h=function(){i.idle()&&a()};var k=g.ready=g.addOnLoad=function(a,f,c){var l= e._toArray(arguments);"number"!=typeof a?(c=f,f=a,a=1E3):l.shift();c=c?e.hitch.apply(g,l):function(){f()};c.priority=a;for(l=0;l=b[l].priority;l++);b.splice(l,0,c);h()},l=g.config.addOnLoad;if(l)k[e.isArray(l)?"apply":"call"](g,l);j(function(){c=1;g._postLoad=g.config.afterOnLoad=!0;b.length&&h(a)});return k})},"dojo/domReady":function(){define(["./has"],function(g){function k(a){h?a(j):b.push(a)}var i=this,j=document,e={loaded:1,complete:1},c="string"!=typeof j.readyState,h=!!e[j.readyState]; if(c)j.readyState="loading";if(!h){var b=[],f=[],a=function(a){a=a||i.event;if(!(h||"readystatechange"==a.type&&!e[j.readyState])){h=1;if(c)j.readyState="complete";for(;b.length;)b.shift()(j)}},l=function(d,f){d.addEventListener(f,a,!1);b.push(function(){d.removeEventListener(f,a,!1)})};if(!g("dom-addeventlistener")){var l=function(d,f){f="on"+f;d.attachEvent(f,a);b.push(function(){d.detachEvent(f,a)})},d=j.createElement("div");try{d.doScroll&&null===i.frameElement&&f.push(function(){try{return d.doScroll("left"), 1}catch(a){}})}catch(p){}}l(j,"DOMContentLoaded");l(i,"load");"onreadystatechange"in j?l(j,"readystatechange"):c||f.push(function(){return e[j.readyState]});if(f.length){var m=function(){if(!h){for(var b=f.length;b--;)if(f[b]()){a("poller");return}setTimeout(m,30)}};m()}}k.load=function(a,b,d){k(d)};return k})},"dojo/_base/declare":function(){define(["./kernel","../has","./lang"],function(g,k,i){function j(a,b){throw Error("declare"+(b?" "+b:"")+": "+a);}function e(a,b,d){var f,c,e,l,g,h,m,i=this._inherited= this._inherited||{};"string"==typeof a&&(f=a,a=b,b=d);d=0;l=a.callee;(f=f||l.nom)||j("can't deduce a name to call inherited()",this.declaredClass);g=this.constructor._meta;e=g.bases;m=i.p;if(f!=z){if(i.c!==l&&(m=0,h=e[0],g=h._meta,g.hidden[f]!==l)){(c=g.chains)&&"string"==typeof c[f]&&j("calling chained method with inherited: "+f,this.declaredClass);do if(g=h._meta,c=h.prototype,g&&(c[f]===l&&c.hasOwnProperty(f)||g.hidden[f]===l))break;while(h=e[++m]);m=h?m:-1}if(h=e[++m])if(c=h.prototype,h._meta&& c.hasOwnProperty(f))d=c[f];else{l=s[f];do if(c=h.prototype,(d=c[f])&&(h._meta?c.hasOwnProperty(f):d!==l))break;while(h=e[++m])}d=h&&d||s[f]}else{if(i.c!==l&&(m=0,(g=e[0]._meta)&&g.ctor!==l)){c=g.chains;for((!c||"manual"!==c.constructor)&&j("calling chained constructor with inherited",this.declaredClass);(h=e[++m])&&!((g=h._meta)&&g.ctor===l););m=h?m:-1}for(;(h=e[++m])&&!(d=(g=h._meta)?g.ctor:h););d=h&&d}i.c=d;i.p=m;if(d)return!0===b?d:d.apply(this,b||a)}function c(a,b){return"string"==typeof a?this.__inherited(a, b,!0):this.__inherited(a,!0)}function h(a,b,d){var f=this.getInherited(a,b);if(f)return f.apply(this,d||b||a)}function b(a){for(var b=this.constructor._meta.bases,d=0,f=b.length;dd||90d||111d||192d||222f?f-48:!a.shiftKey&&65<=f&&90>=f?f+32:l[f]||f}d=p(a,{type:"keypress",faux:!0,charCode:f});b.call(a.currentTarget,d);if(h("ie"))try{a.keyCode=d.keyCode}catch(c){}}}),f=k(a,"keypress",function(a){var d=a.charCode,a=p(a,{charCode:32<=d?d:0,faux:!0});return b.call(this,a)});return{remove:function(){d.remove();f.remove()}}}:h("opera")?function(a,b){return k(a,"keypress",function(a){var d=a.which;3==d&&(d=99);d=32>d&&!a.shiftKey?0:d;a.ctrlKey&&!a.shiftKey&&65<=d&&90>=d&&(d+=32);return b.call(this,p(a, {charCode:d}))})}:function(b,d){return k(b,"keypress",function(b){a(b);return d.call(this,b)})};var n={_keypress:m,connect:function(a,b,d,c,e){var l=arguments,g=[],h=0;g.push("string"==typeof l[0]?null:l[h++],l[h++]);var m=l[h+1];g.push("string"==typeof m||"function"==typeof m?l[h++]:null,l[h++]);for(m=l.length;hg("ie")){var b=a.getBoundingClientRect(),d=b.left,b=b.top;7>g("ie")&&(d+=a.clientLeft,b+=a.clientTop);return{x:0>d?0:d,y:0>b?0:b}}return{x:0,y:0}};b.fixIeBiDiScrollLeft=function(a,f){var f=f||k.doc,d=g("ie");if(d&&!b.isBodyLtr(f)){var c= g("quirks"),e=c?k.body(f):f.documentElement,h=k.global;6==d&&!c&&h.frameElement&&e.scrollHeight>e.clientHeight&&(a+=e.clientLeft);return 8>d||c?a+e.clientWidth-e.scrollWidth:-a}return a};b.position=function(a,f){var a=i.byId(a),d=k.body(a.ownerDocument),c=a.getBoundingClientRect(),c={x:c.left,y:c.top,w:c.right-c.left,h:c.bottom-c.top};if(g("ie")){var e=b.getIeDocumentElementOffset(a.ownerDocument);c.x-=e.x+(g("quirks")?d.clientLeft+d.offsetLeft:0);c.y-=e.y+(g("quirks")?d.clientTop+d.offsetTop:0)}f&& (d=b.docScroll(a.ownerDocument),c.x+=d.x,c.y+=d.y);return c};b.getMarginSize=function(a,f){var a=i.byId(a),d=b.getMarginExtents(a,f||j.getComputedStyle(a)),c=a.getBoundingClientRect();return{w:c.right-c.left+d.w,h:c.bottom-c.top+d.h}};b.normalizeEvent=function(a){if(!("layerX"in a))a.layerX=a.offsetX,a.layerY=a.offsetY;if(!g("dom-addeventlistener")){var f=a.target,f=f&&f.ownerDocument||document,d=g("quirks")?f.body:f.documentElement,c=b.getIeDocumentElementOffset(f);a.pageX=a.clientX+b.fixIeBiDiScrollLeft(d.scrollLeft|| 0,f)-c.x;a.pageY=a.clientY+(d.scrollTop||0)-c.y}};return b})},"dojo/dom-style":function(){define(["./sniff","./dom"],function(g,k){function i(b,d,f){d=d.toLowerCase();if(g("ie")){if("auto"==f){if("height"==d)return b.offsetHeight;if("width"==d)return b.offsetWidth}if("fontweight"==d)switch(f){case 700:return"bold";default:return"normal"}}d in a||(a[d]=l.test(d));return a[d]?c(b,f):f}var j,e={};j=g("webkit")?function(a){var b;if(1==a.nodeType){var d=a.ownerDocument.defaultView;b=d.getComputedStyle(a, null);if(!b&&a.style)a.style.display="",b=d.getComputedStyle(a,null)}return b||{}}:g("ie")&&(9>g("ie")||g("quirks"))?function(a){return 1==a.nodeType&&a.currentStyle?a.currentStyle:{}}:function(a){return 1==a.nodeType?a.ownerDocument.defaultView.getComputedStyle(a,null):{}};e.getComputedStyle=j;var c;c=g("ie")?function(a,b){if(!b)return 0;if("medium"==b)return 4;if(b.slice&&"px"==b.slice(-2))return parseFloat(b);var d=a.style,f=a.runtimeStyle,c=d.left,e=f.left;f.left=a.currentStyle.left;try{d.left= b,b=d.pixelLeft}catch(l){b=0}d.left=c;f.left=e;return b}:function(a,b){return parseFloat(b)||0};e.toPixelValue=c;var h=function(a,b){try{return a.filters.item("DXImageTransform.Microsoft.Alpha")}catch(d){return b?{}:null}},b=9>g("ie")||g("ie")&&g("quirks")?function(a){try{return h(a).Opacity/100}catch(b){return 1}}:function(a){return j(a).opacity},f=9>g("ie")||g("ie")&&g("quirks")?function(a,b){var d=100*b,c=1==b;a.style.zoom=c?"":1;if(h(a))h(a,1).Opacity=d;else{if(c)return b;a.style.filter+=" progid:DXImageTransform.Microsoft.Alpha(Opacity="+ d+")"}h(a,1).Enabled=!c;if("tr"==a.tagName.toLowerCase())for(d=a.firstChild;d;d=d.nextSibling)"td"==d.tagName.toLowerCase()&&f(d,b);return b}:function(a,b){return a.style.opacity=b},a={left:!0,top:!0},l=/margin|padding|width|height|max|min|offset/,d=g("ie")?"styleFloat":"cssFloat",p={cssFloat:d,styleFloat:d,"float":d};e.get=function(a,d){var f=k.byId(a),c=arguments.length;if(2==c&&"opacity"==d)return b(f);var d=p[d]||d,l=e.getComputedStyle(f);return 1==c?l:i(f,d,l[d]||f.style[d])};e.set=function(a, b,d){var c=k.byId(a),l=arguments.length,g="opacity"==b,b=p[b]||b;if(3==l)return g?f(c,d):c.style[b]=d;for(var h in b)e.set(a,h,b[h]);return e.getComputedStyle(c)};return e})},"dojo/mouse":function(){define(["./_base/kernel","./on","./has","./dom","./_base/window"],function(g,k,i,j,e){function c(e,b){var f=function(a,f){return k(a,e,function(d){if(b)return b(d,f);if(!j.isDescendant(d.relatedTarget,a))return f.call(this,d)})};f.bubble=function(a){return c(e,function(b,d){var f=a(b.target),c=b.relatedTarget; if(f&&f!=(c&&1==c.nodeType&&a(c)))return d.call(f,b)})};return f}i.add("dom-quirks",e.doc&&"BackCompat"==e.doc.compatMode);i.add("events-mouseenter",e.doc&&"onmouseenter"in e.doc.createElement("div"));i.add("events-mousewheel",e.doc&&"onmousewheel"in e.doc);e=i("dom-quirks")&&i("ie")||!i("dom-addeventlistener")?{LEFT:1,MIDDLE:4,RIGHT:2,isButton:function(c,b){return c.button&b},isLeft:function(c){return c.button&1},isMiddle:function(c){return c.button&4},isRight:function(c){return c.button&2}}:{LEFT:0, MIDDLE:1,RIGHT:2,isButton:function(c,b){return c.button==b},isLeft:function(c){return 0==c.button},isMiddle:function(c){return 1==c.button},isRight:function(c){return 2==c.button}};g.mouseButtons=e;g=i("events-mousewheel")?"mousewheel":function(c,b){return k(c,"DOMMouseScroll",function(f){f.wheelDelta=-f.detail;b.call(this,f)})};return{_eventHandler:c,enter:c("mouseover"),leave:c("mouseout"),wheel:g,isLeft:e.isLeft,isMiddle:e.isMiddle,isRight:e.isRight}})},"dojo/keys":function(){define(["./_base/kernel", "./sniff"],function(g,k){return g.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/_base/Color":function(){define(["./kernel","./lang","./array","./config"],function(g,k,i,j){var e=g.Color=function(c){c&&this.setColor(c)};e.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:j.transparentColor||[0,0,0,0]};k.extend(e,{r:255,g:255,b:255,a:1,_set:function(c,e,b,f){this.r=c;this.g=e;this.b=b;this.a=f},setColor:function(c){k.isString(c)?e.fromString(c,this):k.isArray(c)?e.fromArray(c,this):(this._set(c.r,c.g,c.b,c.a),c instanceof e|| 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"#"+i.map(["r","g","b"],function(c){c=this[c].toString(16);return 2>c.length?"0"+c:c},this).join("")},toCss:function(c){var e=this.r+", "+this.g+", "+this.b;return(c?"rgba("+e+", "+this.a:"rgb("+e)+")"},toString:function(){return this.toCss(!0)}});e.blendColors=g.blendColors=function(c,g,b,f){var a=f||new e;i.forEach(["r", "g","b","a"],function(f){a[f]=c[f]+(g[f]-c[f])*b;"a"!=f&&(a[f]=Math.round(a[f]))});return a.sanitize()};e.fromRgb=g.colorFromRgb=function(c,g){var b=c.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/);return b&&e.fromArray(b[1].split(/\s*,\s*/),g)};e.fromHex=g.colorFromHex=function(c,g){var b=g||new e,f=4==c.length?4:8,a=(1<>=f;b[e]=4==f?17*d:d});b.a=1;return b};e.fromArray=g.colorFromArray=function(c, g){var b=g||new e;b._set(Number(c[0]),Number(c[1]),Number(c[2]),Number(c[3]));if(isNaN(b.a))b.a=1;return b.sanitize()};e.fromString=g.colorFromString=function(c,g){var b=e.named[c];return b&&e.fromArray(b,g)||e.fromRgb(c,g)||e.fromHex(c,g)};return e})},"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(g){return g})},"dojo/_base/unload":function(){define(["./kernel", "./lang","../on"],function(g,k,i){var j=window,e={addOnWindowUnload:function(c,e){if(!g.windowUnloaded)i(j,"unload",g.windowUnloaded=function(){});i(j,"unload",k.hitch(c,e))},addOnUnload:function(c,e){i(j,"beforeunload",k.hitch(c,e))}};g.addOnWindowUnload=e.addOnWindowUnload;g.addOnUnload=e.addOnUnload;return e})},"dojo/_base/html":function(){define("./kernel,../dom,../dom-style,../dom-attr,../dom-prop,../dom-class,../dom-construct,../dom-geometry".split(","),function(g,k,i,j,e,c,h,b){g.byId=k.byId; g.isDescendant=k.isDescendant;g.setSelectable=k.setSelectable;g.getAttr=j.get;g.setAttr=j.set;g.hasAttr=j.has;g.removeAttr=j.remove;g.getNodeProp=j.getNodeProp;g.attr=function(b,a,c){return 2==arguments.length?j["string"==typeof a?"get":"set"](b,a):j.set(b,a,c)};g.hasClass=c.contains;g.addClass=c.add;g.removeClass=c.remove;g.toggleClass=c.toggle;g.replaceClass=c.replace;g._toDom=g.toDom=h.toDom;g.place=h.place;g.create=h.create;g.empty=function(b){h.empty(b)};g._destroyElement=g.destroy=function(b){h.destroy(b)}; g._getPadExtents=g.getPadExtents=b.getPadExtents;g._getBorderExtents=g.getBorderExtents=b.getBorderExtents;g._getPadBorderExtents=g.getPadBorderExtents=b.getPadBorderExtents;g._getMarginExtents=g.getMarginExtents=b.getMarginExtents;g._getMarginSize=g.getMarginSize=b.getMarginSize;g._getMarginBox=g.getMarginBox=b.getMarginBox;g.setMarginBox=b.setMarginBox;g._getContentBox=g.getContentBox=b.getContentBox;g.setContentSize=b.setContentSize;g._isBodyLtr=g.isBodyLtr=b.isBodyLtr;g._docScroll=g.docScroll= b.docScroll;g._getIeDocumentElementOffset=g.getIeDocumentElementOffset=b.getIeDocumentElementOffset;g._fixIeBiDiScrollLeft=g.fixIeBiDiScrollLeft=b.fixIeBiDiScrollLeft;g.position=b.position;g.marginBox=function(f,a){return a?b.setMarginBox(f,a):b.getMarginBox(f)};g.contentBox=function(f,a){return a?b.setContentSize(f,a):b.getContentBox(f)};g.coords=function(f,a){g.deprecated("dojo.coords()","Use dojo.position() or dojo.marginBox().");var f=k.byId(f),c=i.getComputedStyle(f),c=b.getMarginBox(f,c),d= b.position(f,a);c.x=d.x;c.y=d.y;return c};g.getProp=e.get;g.setProp=e.set;g.prop=function(b,a,c){return 2==arguments.length?e["string"==typeof a?"get":"set"](b,a):e.set(b,a,c)};g.getStyle=i.get;g.setStyle=i.set;g.getComputedStyle=i.getComputedStyle;g.__toPixelValue=g.toPixelValue=i.toPixelValue;g.style=function(b,a,c){switch(arguments.length){case 1:return i.get(b);case 2:return i["string"==typeof a?"get":"set"](b,a)}return i.set(b,a,c)};return g})},"dojo/dom-attr":function(){define("exports,./sniff,./_base/lang,./dom,./dom-style,./dom-prop".split(","), function(g,k,i,j,e,c){function h(a,b){var d=a.getAttributeNode&&a.getAttributeNode(b);return d&&d.specified}var b={innerHTML:1,className:1,htmlFor:k("ie"),value:1},f={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"};g.has=function(a,e){var d=e.toLowerCase();return b[c.names[d]||e]||h(j.byId(a),f[d]||e)};g.get=function(a,e){var a=j.byId(a),d=e.toLowerCase(),g=c.names[d]||e,m=a[g];if(b[g]&&"undefined"!=typeof m||"href"!=g&&("boolean"==typeof m||i.isFunction(m)))return m;d=f[d]|| e;return h(a,d)?a.getAttribute(d):null};g.set=function(a,l,d){a=j.byId(a);if(2==arguments.length){for(var h in l)g.set(a,h,l[h]);return a}h=l.toLowerCase();var m=c.names[h]||l,k=b[m];if("style"==m&&"string"!=typeof d)return e.set(a,d),a;if(k||"boolean"==typeof d||i.isFunction(d))return c.set(a,l,d);a.setAttribute(f[h]||l,d);return a};g.remove=function(a,b){j.byId(a).removeAttribute(f[b.toLowerCase()]||b)};g.getNodeProp=function(a,b){var a=j.byId(a),d=b.toLowerCase(),e=c.names[d]||b;if(e in a&&"href"!= e)return a[e];d=f[d]||b;return h(a,d)?a.getAttribute(d):null}})},"dojo/dom-prop":function(){define("exports,./_base/kernel,./sniff,./_base/lang,./dom,./dom-style,./dom-construct,./_base/connect".split(","),function(g,k,i,j,e,c,h,b){var f={},a=0,l=k._scopeName+"attrid";g.names={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",valuetype:"valueType"};g.get=function(a,b){var a=e.byId(a),f=b.toLowerCase();return a[g.names[f]|| b]};g.set=function(d,k,m){d=e.byId(d);if(2==arguments.length&&"string"!=typeof k){for(var n in k)g.set(d,n,k[n]);return d}n=k.toLowerCase();n=g.names[n]||k;if("style"==n&&"string"!=typeof m)return c.set(d,m),d;if("innerHTML"==n)return i("ie")&&d.tagName.toLowerCase()in{col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1}?(h.empty(d),d.appendChild(h.toDom(m,d.ownerDocument))):d[n]=m,d;if(j.isFunction(m)){var o=d[l];o||(o=a++,d[l]=o);f[o]||(f[o]={});var r=f[o][n];if(r)b.disconnect(r);else try{delete d[n]}catch(q){}m? f[o][n]=b.connect(d,n,m):d[n]=null;return d}d[n]=m;return d}})},"dojo/dom-construct":function(){define("exports,./_base/kernel,./sniff,./_base/window,./dom,./dom-attr,./on".split(","),function(g,k,i,j,e,c,h){function b(a,b){var d=b.parentNode;d&&d.insertBefore(a,b)}var f={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"]}, a=/<\s*([\w\:]+)/,l={},d=0,p="__"+k._scopeName+"ToDomId",m;for(m in f)if(f.hasOwnProperty(m))k=f[m],k.pre="option"==m?'',_buttonInputDisabled:c("ie")?"disabled":"",baseClass:"dijitTextBox",postMixInProperties:function(){var a=this.type.toLowerCase();if(this.templateString&&"input"==this.templateString.toLowerCase()||("hidden"==a||"file"==a)&&this.templateString== this.constructor.prototype.templateString)this.templateString=this._singleNodeTemplate;this.inherited(arguments)},postCreate:function(){this.inherited(arguments);9>c("ie")&&this.defer(function(){try{var a=i.getComputedStyle(this.domNode);if(a){var b=a.fontFamily;if(b){var c=this.domNode.getElementsByTagName("INPUT");if(c)for(a=0;ab?1:aj("ie")||j("ie")&&j("quirks"))){c.preventDefault();var e=c.srcElement,b=e.ownerDocument.createEventObject();b.keyCode=i.ESCAPE;b.shiftKey=c.shiftKey;e.fireEvent("onkeypress",b)}}})})},"dijit/form/_TextBoxMixin":function(){define("dojo/_base/array,dojo/_base/declare,dojo/dom,dojo/_base/event,dojo/keys,dojo/_base/lang,dojo/on,../main".split(","),function(g,k,i,j,e,c,h,b){var f= k("dijit.form._TextBoxMixin",null,{trim:!1,uppercase:!1,lowercase:!1,propercase:!1,maxLength:"",selectOnClick:!1,placeHolder:"",_getValueAttr:function(){return this.parse(this.get("displayedValue"),this.constraints)},_setValueAttr:function(a,b,c){var f;void 0!==a&&(f=this.filter(a),"string"!=typeof c&&(c=null!==f&&("number"!=typeof f||!isNaN(f))?this.filter(this.format(f,this.constraints)):""));if(null!=c&&("number"!=typeof c||!isNaN(c))&&this.textbox.value!=c)this.textbox.value=c,this._set("displayedValue", this.get("displayedValue"));"auto"==this.textDir&&this.applyTextDir(this.focusNode,c);this.inherited(arguments,[f,b])},displayedValue:"",_getDisplayedValueAttr:function(){return this.filter(this.textbox.value)},_setDisplayedValueAttr:function(a){null==a?a="":"string"!=typeof a&&(a=""+a);this.textbox.value=a;this._setValueAttr(this.get("value"),void 0);this._set("displayedValue",this.get("displayedValue"));"auto"==this.textDir&&this.applyTextDir(this.focusNode,a)},format:function(a){return null==a? "":a.toString?a.toString():a},parse:function(a){return a},_refreshState:function(){},onInput:function(){},__skipInputEvent:!1,_onInput:function(a){"auto"==this.textDir&&this.applyTextDir(this.focusNode,this.focusNode.value);this._processInput(a)},_processInput:function(){this._refreshState();this._set("displayedValue",this.get("displayedValue"))},postCreate:function(){this.textbox.setAttribute("value",this.textbox.value);this.inherited(arguments);this.own(h(this.textbox,"keydown, keypress, paste, cut, input, compositionend", c.hitch(this,function(a){var b;if("keydown"==a.type){b=a.keyCode;switch(b){case e.SHIFT:case e.ALT:case e.CTRL:case e.META:case e.CAPS_LOCK:case e.NUM_LOCK:case e.SCROLL_LOCK:return}if(!a.ctrlKey&&!a.metaKey&&!a.altKey){switch(b){case e.NUMPAD_0:case e.NUMPAD_1:case e.NUMPAD_2:case e.NUMPAD_3:case e.NUMPAD_4:case e.NUMPAD_5:case e.NUMPAD_6:case e.NUMPAD_7:case e.NUMPAD_8:case e.NUMPAD_9:case e.NUMPAD_MULTIPLY:case e.NUMPAD_PLUS:case e.NUMPAD_ENTER:case e.NUMPAD_MINUS:case e.NUMPAD_PERIOD:case e.NUMPAD_DIVIDE:return}if(65<= b&&90>=b||48<=b&&57>=b||b==e.SPACE)return;b=!1;for(var d in e)if(e[d]===a.keyCode){b=!0;break}if(!b)return}}(b=32<=a.charCode?String.fromCharCode(a.charCode):a.charCode)||(b=65<=a.keyCode&&90>=a.keyCode||48<=a.keyCode&&57>=a.keyCode||a.keyCode==e.SPACE?String.fromCharCode(a.keyCode):a.keyCode);b||(b=229);if("keypress"==a.type){if("string"!=typeof b)return;if("a"<=b&&"z">=b||"A"<=b&&"Z">=b||"0"<=b&&"9">=b||" "===b)if(a.ctrlKey||a.metaKey||a.altKey)return}if("input"==a.type){if(this.__skipInputEvent){this.__skipInputEvent= !1;return}}else this.__skipInputEvent=!0;var f={faux:!0},g;for(g in a)"layerX"!=g&&"layerY"!=g&&(d=a[g],"function"!=typeof d&&"undefined"!=typeof d&&(f[g]=d));c.mixin(f,{charOrCode:b,_wasConsumed:!1,preventDefault:function(){f._wasConsumed=!0;a.preventDefault()},stopPropagation:function(){a.stopPropagation()}});!1===this.onInput(f)&&(f.preventDefault(),f.stopPropagation());f._wasConsumed||this.defer(function(){this._onInput(f)})})))},_blankValue:"",filter:function(a){if(null===a)return this._blankValue; if("string"!=typeof a)return a;this.trim&&(a=c.trim(a));this.uppercase&&(a=a.toUpperCase());this.lowercase&&(a=a.toLowerCase());this.propercase&&(a=a.replace(/[^\s]+/g,function(a){return a.substring(0,1).toUpperCase()+a.substring(1)}));return a},_setBlurValue:function(){this._setValueAttr(this.get("value"),!0)},_onBlur:function(a){this.disabled||(this._setBlurValue(),this.inherited(arguments))},_isTextSelected:function(){return this.textbox.selectionStart!=this.textbox.selectionEnd},_onFocus:function(a){if(!this.disabled&& !this.readOnly){if(this.selectOnClick&&"mouse"==a)this._selectOnClickHandle=this.connect(this.domNode,"onmouseup",function(){this.disconnect(this._selectOnClickHandle);this._selectOnClickHandle=null;this._isTextSelected()||f.selectInputText(this.textbox)}),this.defer(function(){if(this._selectOnClickHandle)this.disconnect(this._selectOnClickHandle),this._selectOnClickHandle=null},500);this.inherited(arguments);this._refreshState()}},reset:function(){this.textbox.value="";this.inherited(arguments)}, _setTextDirAttr:function(a){if(!this._created||this.textDir!=a)this._set("textDir",a),this.applyTextDir(this.focusNode,this.focusNode.value)}});f._setSelectionRange=b._setSelectionRange=function(a,b,c){a.setSelectionRange&&a.setSelectionRange(b,c)};f.selectInputText=b.selectInputText=function(a,b,c){a=i.byId(a);isNaN(b)&&(b=0);isNaN(c)&&(c=a.value?a.value.length:0);try{a.focus(),f._setSelectionRange(a,b,c)}catch(e){}};return f})},"url:dijit/form/templates/TextBox.html":'