(function(){
var _1=null;
if((_1||(typeof djConfig!="undefined"&&djConfig.scopeMap))&&(typeof window!="undefined")){
var _2="",_3="",_4="",_5={},_6={};
_1=_1||djConfig.scopeMap;
for(var i=0;i<_1.length;i++){
var _7=_1[i];
_2+="var "+_7[0]+" = {}; "+_7[1]+" = "+_7[0]+";"+_7[1]+"._scopeName = '"+_7[1]+"';";
_3+=(i==0?"":",")+_7[0];
_4+=(i==0?"":",")+_7[1];
_5[_7[0]]=_7[1];
_6[_7[1]]=_7[0];
}
eval(_2+"dojo._scopeArgs = ["+_4+"];");
dojo._scopePrefixArgs=_3;
dojo._scopePrefix="(function("+_3+"){";
dojo._scopeSuffix="})("+_4+")";
dojo._scopeMap=_5;
dojo._scopeMapRev=_6;
}
(function(){
if(!this["console"]){
this.console={log:function(){
}};
}
var cn=["assert","count","debug","dir","dirxml","error","group","groupEnd","info","profile","profileEnd","time","timeEnd","trace","warn","log"];
var i=0,tn;
while((tn=cn[i++])){
if(!console[tn]){
(function(){
var _8=tn+"";
console[_8]=function(){
var a=Array.apply({},arguments);
a.unshift(_8+":");
console.log(a.join(" "));
};
})();
}
}
if(typeof dojo=="undefined"){
this.dojo={_scopeName:"dojo",_scopePrefix:"",_scopePrefixArgs:"",_scopeSuffix:"",_scopeMap:{},_scopeMapRev:{}};
}
var d=dojo;
if(typeof dijit=="undefined"){
this.dijit={_scopeName:"dijit"};
}
if(typeof dojox=="undefined"){
this.dojox={_scopeName:"dojox"};
}
if(!d._scopeArgs){
d._scopeArgs=[dojo,dijit,dojox];
}
d.global=this;
d.config={isDebug:false,debugAtAllCosts:false};
if(typeof djConfig!="undefined"){
for(var _9 in djConfig){
d.config[_9]=djConfig[_9];
}
}
var _a=["Browser","Rhino","Spidermonkey","Mobile"];
var t;
while((t=_a.shift())){
d["is"+t]=false;
}
dojo.locale=d.config.locale;
var _b="$Rev: 13707 $".match(/\d+/);
dojo.version={major:0,minor:0,patch:0,flag:"dev",revision:_b?+_b[0]:999999,toString:function(){
with(d.version){
return major+"."+minor+"."+patch+flag+" ("+revision+")";
}
}};
if(typeof OpenAjax!="undefined"){
OpenAjax.hub.registerLibrary(dojo._scopeName,"http://dojotoolkit.org",d.version.toString());
}
dojo._mixin=function(_c,_d){
var _e={};
for(var x in _d){
if(_e[x]===undefined||_e[x]!=_d[x]){
_c[x]=_d[x];
}
}
if(d["isIE"]&&_d){
var p=_d.toString;
if(typeof p=="function"&&p!=_c.toString&&p!=_e.toString&&p!="\nfunction toString() {\n    [native code]\n}\n"){
_c.toString=_d.toString;
}
}
return _c;
};
dojo.mixin=function(_f,_10){
for(var i=1,l=arguments.length;i<l;i++){
d._mixin(_f,arguments[i]);
}
return _f;
};
dojo._getProp=function(_11,_12,_13){
var obj=_13||d.global;
for(var i=0,p;obj&&(p=_11[i]);i++){
if(i==0&&this._scopeMap[p]){
p=this._scopeMap[p];
}
obj=(p in obj?obj[p]:(_12?obj[p]={}:undefined));
}
return obj;
};
dojo.setObject=function(_14,_15,_16){
var _17=_14.split("."),p=_17.pop(),obj=d._getProp(_17,true,_16);
return obj&&p?(obj[p]=_15):undefined;
};
dojo.getObject=function(_18,_19,_1a){
return d._getProp(_18.split("."),_19,_1a);
};
dojo.exists=function(_1b,obj){
return !!d.getObject(_1b,false,obj);
};
dojo["eval"]=function(_1c){
return d.global.eval?d.global.eval(_1c):eval(_1c);
};
d.deprecated=d.experimental=function(){
};
})();
(function(){
var d=dojo;
d.mixin(d,{_loadedModules:{},_inFlightCount:0,_hasResource:{},_modulePrefixes:{dojo:{name:"dojo",value:"."},doh:{name:"doh",value:"../util/doh"},tests:{name:"tests",value:"tests"}},_moduleHasPrefix:function(_1d){
var mp=this._modulePrefixes;
return !!(mp[_1d]&&mp[_1d].value);
},_getModulePrefix:function(_1e){
var mp=this._modulePrefixes;
if(this._moduleHasPrefix(_1e)){
return mp[_1e].value;
}
return _1e;
},_loadedUrls:[],_postLoad:false,_loaders:[],_unloaders:[],_loadNotifying:false});
dojo._loadPath=function(_1f,_20,cb){
var uri=((_1f.charAt(0)=="/"||_1f.match(/^\w+:/))?"":this.baseUrl)+_1f;
try{
return !_20?this._loadUri(uri,cb):this._loadUriAndCheck(uri,_20,cb);
}
catch(e){
console.error(e);
return false;
}
};
dojo._loadUri=function(uri,cb){
if(this._loadedUrls[uri]){
return true;
}
var _21=this._getText(uri,true);
if(!_21){
return false;
}
this._loadedUrls[uri]=true;
this._loadedUrls.push(uri);
if(cb){
_21="("+_21+")";
}else{
_21=this._scopePrefix+_21+this._scopeSuffix;
}
if(d.isMoz){
_21+="\r\n//@ sourceURL="+uri;
}
var _22=d["eval"](_21);
if(cb){
cb(_22);
}
return true;
};
dojo._loadUriAndCheck=function(uri,_23,cb){
var ok=false;
try{
ok=this._loadUri(uri,cb);
}
catch(e){
console.error("failed loading "+uri+" with error: "+e);
}
return !!(ok&&this._loadedModules[_23]);
};
dojo.loaded=function(){
this._loadNotifying=true;
this._postLoad=true;
var mll=d._loaders;
this._loaders=[];
for(var x=0;x<mll.length;x++){
try{
mll[x]();
}
catch(e){
throw e;
console.error("dojo.addOnLoad callback failed: "+e,e);
}
}
this._loadNotifying=false;
if(d._postLoad&&d._inFlightCount==0&&mll.length){
d._callLoaded();
}
};
dojo.unloaded=function(){
var mll=this._unloaders;
while(mll.length){
(mll.pop())();
}
};
var _24=function(arr,obj,fn){
if(!fn){
arr.push(obj);
}else{
if(fn){
var _25=(typeof fn=="string")?obj[fn]:fn;
arr.push(function(){
_25.call(obj);
});
}
}
};
dojo.addOnLoad=function(obj,_26){
_24(d._loaders,obj,_26);
if(d._postLoad&&d._inFlightCount==0&&!d._loadNotifying){
d._callLoaded();
}
};
dojo.addOnUnload=function(obj,_27){
_24(d._unloaders,obj,_27);
};
dojo._modulesLoaded=function(){
if(d._postLoad){
return;
}
if(d._inFlightCount>0){
console.warn("files still in flight!");
return;
}
d._callLoaded();
};
dojo._callLoaded=function(){
if(typeof setTimeout=="object"||(dojo.config.useXDomain&&d.isOpera)){
if(dojo.isAIR){
setTimeout(function(){
dojo.loaded();
},0);
}else{
setTimeout(dojo._scopeName+".loaded();",0);
}
}else{
d.loaded();
}
};
dojo._getModuleSymbols=function(_28){
var _29=_28.split(".");
for(var i=_29.length;i>0;i--){
var _2a=_29.slice(0,i).join(".");
if((i==1)&&!this._moduleHasPrefix(_2a)){
_29[0]="../"+_29[0];
}else{
var _2b=this._getModulePrefix(_2a);
if(_2b!=_2a){
_29.splice(0,i,_2b);
break;
}
}
}
return _29;
};
dojo._global_omit_module_check=false;
dojo._loadModule=dojo.require=function(_2c,_2d){
_2d=this._global_omit_module_check||_2d;
var _2e=this._loadedModules[_2c];
if(_2e){
return _2e;
}
var _2f=this._getModuleSymbols(_2c).join("/")+".js";
var _30=(!_2d)?_2c:null;
var ok=this._loadPath(_2f,_30);
if(!ok&&!_2d){
throw new Error("Could not load '"+_2c+"'; last tried '"+_2f+"'");
}
if(!_2d&&!this._isXDomain){
_2e=this._loadedModules[_2c];
if(!_2e){
throw new Error("symbol '"+_2c+"' is not defined after loading '"+_2f+"'");
}
}
return _2e;
};
dojo.provide=function(_31){
_31=_31+"";
return (d._loadedModules[_31]=d.getObject(_31,true));
};
dojo.platformRequire=function(_32){
var _33=_32.common||[];
var _34=_33.concat(_32[d._name]||_32["default"]||[]);
for(var x=0;x<_34.length;x++){
var _35=_34[x];
if(_35.constructor==Array){
d._loadModule.apply(d,_35);
}else{
d._loadModule(_35);
}
}
};
dojo.requireIf=function(_36,_37){
if(_36===true){
var _38=[];
for(var i=1;i<arguments.length;i++){
_38.push(arguments[i]);
}
d.require.apply(d,_38);
}
};
dojo.requireAfterIf=d.requireIf;
dojo.registerModulePath=function(_39,_3a){
d._modulePrefixes[_39]={name:_39,value:_3a};
};
dojo.requireLocalization=function(_3b,_3c,_3d,_3e){
d.require("dojo.i18n");
d.i18n._requireLocalization.apply(d.hostenv,arguments);
};
var ore=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$");
var ire=new RegExp("^((([^:]+:)?([^@]+))@)?([^:]*)(:([0-9]+))?$");
dojo._Url=function(){
var n=null;
var _3f=arguments;
var uri=[_3f[0]];
for(var i=1;i<_3f.length;i++){
if(!_3f[i]){
continue;
}
var _40=new d._Url(_3f[i]+"");
var _41=new d._Url(uri[0]+"");
if(_40.path==""&&!_40.scheme&&!_40.authority&&!_40.query){
if(_40.fragment!=n){
_41.fragment=_40.fragment;
}
_40=_41;
}else{
if(!_40.scheme){
_40.scheme=_41.scheme;
if(!_40.authority){
_40.authority=_41.authority;
if(_40.path.charAt(0)!="/"){
var _42=_41.path.substring(0,_41.path.lastIndexOf("/")+1)+_40.path;
var _43=_42.split("/");
for(var j=0;j<_43.length;j++){
if(_43[j]=="."){
if(j==_43.length-1){
_43[j]="";
}else{
_43.splice(j,1);
j--;
}
}else{
if(j>0&&!(j==1&&_43[0]=="")&&_43[j]==".."&&_43[j-1]!=".."){
if(j==(_43.length-1)){
_43.splice(j,1);
_43[j-1]="";
}else{
_43.splice(j-1,2);
j-=2;
}
}
}
}
_40.path=_43.join("/");
}
}
}
}
uri=[];
if(_40.scheme){
uri.push(_40.scheme,":");
}
if(_40.authority){
uri.push("//",_40.authority);
}
uri.push(_40.path);
if(_40.query){
uri.push("?",_40.query);
}
if(_40.fragment){
uri.push("#",_40.fragment);
}
}
this.uri=uri.join("");
var r=this.uri.match(ore);
this.scheme=r[2]||(r[1]?"":n);
this.authority=r[4]||(r[3]?"":n);
this.path=r[5];
this.query=r[7]||(r[6]?"":n);
this.fragment=r[9]||(r[8]?"":n);
if(this.authority!=n){
r=this.authority.match(ire);
this.user=r[3]||n;
this.password=r[4]||n;
this.host=r[5];
this.port=r[7]||n;
}
};
dojo._Url.prototype.toString=function(){
return this.uri;
};
dojo.moduleUrl=function(_44,url){
var loc=d._getModuleSymbols(_44).join("/");
if(!loc){
return null;
}
if(loc.lastIndexOf("/")!=loc.length-1){
loc+="/";
}
var _45=loc.indexOf(":");
if(loc.charAt(0)!="/"&&(_45==-1||_45>loc.indexOf("/"))){
loc=d.baseUrl+loc;
}
return new d._Url(loc,url);
};
})();
if(typeof window!="undefined"){
dojo.isBrowser=true;
dojo._name="browser";
(function(){
var d=dojo;
if(document&&document.getElementsByTagName){
var _46=document.getElementsByTagName("script");
var _47=/dojo(\.xd)?\.js(\W|$)/i;
for(var i=0;i<_46.length;i++){
var src=_46[i].getAttribute("src");
if(!src){
continue;
}
var m=src.match(_47);
if(m){
if(!d.config.baseUrl){
d.config.baseUrl=src.substring(0,m.index);
}
var cfg=_46[i].getAttribute("djConfig");
if(cfg){
var _48=eval("({ "+cfg+" })");
for(var x in _48){
dojo.config[x]=_48[x];
}
}
break;
}
}
}
d.baseUrl=d.config.baseUrl;
var n=navigator;
var dua=n.userAgent;
var dav=n.appVersion;
var tv=parseFloat(dav);
d.isOpera=(dua.indexOf("Opera")>=0)?tv:0;
d.isAIR=(dua.indexOf("AdobeAIR")>=0)?1:0;
d.isKhtml=(dav.indexOf("Konqueror")>=0||d.isSafari)?tv:0;
d.isWebKit=parseFloat(dua.split("WebKit/")[1])||0;
d.isChrome=parseFloat(dua.split("Chrome/")[1])||0;
var _49=Math.max(dav.indexOf("WebKit"),dav.indexOf("Safari"),0);
if(_49){
d.isSafari=parseFloat(dav.split("Version/")[1]);
if(!d.isSafari||parseFloat(dav.substr(_49+7))<=419.3){
d.isSafari=2;
}
}else{
d.isSafari=0;
}
if(dua.indexOf("Gecko")>=0&&!d.isKhtml&&!d.isWebKit){
d.isMozilla=d.isMoz=tv;
}
if(d.isMozilla){
d.isFF=parseFloat(dua.split("Firefox/")[1])||undefined;
}else{
d.isFF=0;
}
d.isFF=d.isIE=0;
if(d.isMoz){
d.isFF=parseFloat(dua.split("Firefox/")[1])||0;
}
if(document.all&&!d.isOpera){
d.isIE=parseFloat(dav.split("MSIE ")[1])||0;
}
if(dojo.isIE&&window.location.protocol==="file:"){
dojo.config.ieForceActiveXXhr=true;
}
var cm=document.compatMode;
d.isQuirks=cm=="BackCompat"||cm=="QuirksMode"||d.isIE<6;
d.locale=dojo.config.locale||(d.isIE?n.userLanguage:n.language).toLowerCase();
d._XMLHTTP_PROGIDS=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];
d._xhrObj=function(){
var _4a=null;
var _4b=null;
if(!dojo.isIE||!dojo.config.ieForceActiveXXhr){
try{
_4a=new XMLHttpRequest();
}
catch(e){
}
}
if(!_4a){
for(var i=0;i<3;++i){
var _4c=d._XMLHTTP_PROGIDS[i];
try{
_4a=new ActiveXObject(_4c);
}
catch(e){
_4b=e;
}
if(_4a){
d._XMLHTTP_PROGIDS=[_4c];
break;
}
}
}
if(!_4a){
throw new Error("XMLHTTP not available: "+_4b);
}
return _4a;
};
d._isDocumentOk=function(_4d){
var _4e=_4d.status||0;
return (_4e>=200&&_4e<300)||_4e==304||_4e==1223||(!_4e&&(location.protocol=="file:"||location.protocol=="chrome:"));
};
var _4f=window.location+"";
var _50=document.getElementsByTagName("base");
var _51=(_50&&_50.length>0);
d._getText=function(uri,_52){
var _53=this._xhrObj();
if(!_51&&dojo._Url){
uri=(new dojo._Url(_4f,uri)).toString();
}
if(d.config.cacheBust){
uri+=(uri.indexOf("?")==-1?"?":"&")+String(d.config.cacheBust).replace(/\W+/g,"");
}
_53.open("GET",uri,false);
try{
_53.send(null);
if(!d._isDocumentOk(_53)){
var err=Error("Unable to load "+uri+" status:"+_53.status);
err.status=_53.status;
err.responseText=_53.responseText;
throw err;
}
}
catch(e){
if(_52){
return null;
}
throw e;
}
return _53.responseText;
};
})();
dojo._initFired=false;
dojo._loadInit=function(e){
dojo._initFired=true;
var _54=(e&&e.type)?e.type.toLowerCase():"load";
if(arguments.callee.initialized||(_54!="domcontentloaded"&&_54!="load")){
return;
}
arguments.callee.initialized=true;
if("_khtmlTimer" in dojo){
clearInterval(dojo._khtmlTimer);
delete dojo._khtmlTimer;
}
if(dojo._inFlightCount==0){
dojo._modulesLoaded();
}
};
dojo._fakeLoadInit=function(){
dojo._loadInit({type:"load"});
};
if(!dojo.config.afterOnLoad){
if(document.addEventListener){
if(dojo.isOpera||dojo.isFF>=3||(dojo.isMoz&&dojo.config.enableMozDomContentLoaded===true)){
document.addEventListener("DOMContentLoaded",dojo._loadInit,null);
}
window.addEventListener("load",dojo._loadInit,null);
}
if(dojo.isAIR){
window.addEventListener("load",dojo._loadInit,null);
}else{
if(/(WebKit|khtml)/i.test(navigator.userAgent)){
dojo._khtmlTimer=setInterval(function(){
if(/loaded|complete/.test(document.readyState)){
dojo._loadInit();
}
},10);
}
}
}
(function(){
var _55=window;
var _56=function(_57,fp){
var _58=_55[_57]||function(){
};
_55[_57]=function(){
fp.apply(_55,arguments);
_58.apply(_55,arguments);
};
};
if(dojo.isIE){
if(!dojo.config.afterOnLoad){
document.write("<scr"+"ipt defer src=\"//:\" "+"onreadystatechange=\"if(this.readyState=='complete'){"+dojo._scopeName+"._loadInit();}\">"+"</scr"+"ipt>");
}
var _59=true;
_56("onbeforeunload",function(){
_55.setTimeout(function(){
_59=false;
},0);
});
_56("onunload",function(){
if(_59){
dojo.unloaded();
}
});
try{
document.namespaces.add("v","urn:schemas-microsoft-com:vml");
document.createStyleSheet().addRule("v\\:*","behavior:url(#default#VML)");
}
catch(e){
}
}else{
_56("onbeforeunload",function(){
dojo.unloaded();
});
}
})();
}
(function(){
var mp=dojo.config["modulePaths"];
if(mp){
for(var _5a in mp){
dojo.registerModulePath(_5a,mp[_5a]);
}
}
})();
if(dojo.config.isDebug){
dojo.require("dojo._firebug.firebug");
}
if(dojo.config.debugAtAllCosts){
dojo.config.useXDomain=true;
dojo.require("dojo._base._loader.loader_xd");
dojo.require("dojo._base._loader.loader_debug");
}
if(!dojo._hasResource["dojo._base.lang"]){
dojo._hasResource["dojo._base.lang"]=true;
dojo.provide("dojo._base.lang");
dojo.isString=function(it){
return !!arguments.length&&it!=null&&(typeof it=="string"||it instanceof String);
};
dojo.isArray=function(it){
return it&&(it instanceof Array||typeof it=="array");
};
dojo.isFunction=(function(){
var _5b=function(it){
return it&&(typeof it=="function"||it instanceof Function);
};
return dojo.isSafari?function(it){
if(typeof it=="function"&&it=="[object NodeList]"){
return false;
}
return _5b(it);
}:_5b;
})();
dojo.isObject=function(it){
return it!==undefined&&(it===null||typeof it=="object"||dojo.isArray(it)||dojo.isFunction(it));
};
dojo.isArrayLike=function(it){
var d=dojo;
return it&&it!==undefined&&!d.isString(it)&&!d.isFunction(it)&&!(it.tagName&&it.tagName.toLowerCase()=="form")&&(d.isArray(it)||isFinite(it.length));
};
dojo.isAlien=function(it){
return it&&!dojo.isFunction(it)&&/\{\s*\[native code\]\s*\}/.test(String(it));
};
dojo.extend=function(_5c,_5d){
for(var i=1,l=arguments.length;i<l;i++){
dojo._mixin(_5c.prototype,arguments[i]);
}
return _5c;
};
dojo._hitchArgs=function(_5e,_5f){
var pre=dojo._toArray(arguments,2);
var _60=dojo.isString(_5f);
return function(){
var _61=dojo._toArray(arguments);
var f=_60?(_5e||dojo.global)[_5f]:_5f;
return f&&f.apply(_5e||this,pre.concat(_61));
};
};
dojo.hitch=function(_62,_63){
if(arguments.length>2){
return dojo._hitchArgs.apply(dojo,arguments);
}
if(!_63){
_63=_62;
_62=null;
}
if(dojo.isString(_63)){
_62=_62||dojo.global;
if(!_62[_63]){
throw (["dojo.hitch: scope[\"",_63,"\"] is null (scope=\"",_62,"\")"].join(""));
}
return function(){
return _62[_63].apply(_62,arguments||[]);
};
}
return !_62?_63:function(){
return _63.apply(_62,arguments||[]);
};
};
dojo.delegate=dojo._delegate=function(obj,_64){
function TMP(){
};
TMP.prototype=obj;
var tmp=new TMP();
if(_64){
dojo.mixin(tmp,_64);
}
return tmp;
};
dojo.partial=function(_65){
var arr=[null];
return dojo.hitch.apply(dojo,arr.concat(dojo._toArray(arguments)));
};
dojo._toArray=function(obj,_66,_67){
var arr=_67||[];
for(var x=_66||0;x<obj.length;x++){
arr.push(obj[x]);
}
return arr;
};
dojo.clone=function(o){
if(!o){
return o;
}
if(dojo.isArray(o)){
var r=[];
for(var i=0;i<o.length;++i){
r.push(dojo.clone(o[i]));
}
return r;
}
if(!dojo.isObject(o)){
return o;
}
if(o.nodeType&&o.cloneNode){
return o.cloneNode(true);
}
if(o instanceof Date){
return new Date(o.getTime());
}
var r=new o.constructor();
for(var i in o){
if(!(i in r)||r[i]!=o[i]){
r[i]=dojo.clone(o[i]);
}
}
return r;
};
dojo.trim=function(str){
return str.replace(/^\s\s*/,"").replace(/\s\s*$/,"");
};
}
if(!dojo._hasResource["dojo._base.declare"]){
dojo._hasResource["dojo._base.declare"]=true;
dojo.provide("dojo._base.declare");
dojo.declare=function(_68,_69,_6a){
var dd=arguments.callee,_6b;
if(dojo.isArray(_69)){
_6b=_69;
_69=_6b.shift();
}
if(_6b){
dojo.forEach(_6b,function(m){
if(!m){
throw (_68+": mixin #"+i+" is null");
}
_69=dd._delegate(_69,m);
});
}
var _6c=(_6a||0).constructor,_6d=dd._delegate(_69),fn;
for(var i in _6a){
if(dojo.isFunction(fn=_6a[i])&&!0[i]){
fn.nom=i;
}
}
dojo.extend(_6d,{declaredClass:_68,_constructor:_6c,preamble:null},_6a||0);
_6d.prototype.constructor=_6d;
return dojo.setObject(_68,_6d);
};
dojo.mixin(dojo.declare,{_delegate:function(_6e,_6f){
var bp=(_6e||0).prototype,mp=(_6f||0).prototype;
var _70=dojo.declare._makeCtor();
dojo.mixin(_70,{superclass:bp,mixin:mp,extend:dojo.declare._extend});
if(_6e){
_70.prototype=dojo._delegate(bp);
}
dojo.extend(_70,dojo.declare._core,mp||0,{_constructor:null,preamble:null});
_70.prototype.constructor=_70;
_70.prototype.declaredClass=(bp||0).declaredClass+"_"+(mp||0).declaredClass;
return _70;
},_extend:function(_71){
for(var i in _71){
if(dojo.isFunction(fn=_71[i])&&!0[i]){
fn.nom=i;
}
}
dojo.extend(this,_71);
},_makeCtor:function(){
return function(){
this._construct(arguments);
};
},_core:{_construct:function(_72){
var c=_72.callee,s=c.superclass,ct=s&&s.constructor,m=c.mixin,mct=m&&m.constructor,a=_72,ii,fn;
if(a[0]){
if(((fn=a[0].preamble))){
a=fn.apply(this,a)||a;
}
}
if((fn=c.prototype.preamble)){
a=fn.apply(this,a)||a;
}
if(ct&&ct.apply){
ct.apply(this,a);
}
if(mct&&mct.apply){
mct.apply(this,a);
}
if((ii=c.prototype._constructor)){
ii.apply(this,_72);
}
if(this.constructor.prototype==c.prototype&&(ct=this.postscript)){
ct.apply(this,_72);
}
},_findMixin:function(_73){
var c=this.constructor,p,m;
while(c){
p=c.superclass;
m=c.mixin;
if(m==_73||(m instanceof _73.constructor)){
return p;
}
if(m&&(m=m._findMixin(_73))){
return m;
}
c=p&&p.constructor;
}
},_findMethod:function(_74,_75,_76,has){
var p=_76,c,m,f;
do{
c=p.constructor;
m=c.mixin;
if(m&&(m=this._findMethod(_74,_75,m,has))){
return m;
}
if((f=p[_74])&&(has==(f==_75))){
return p;
}
p=c.superclass;
}while(p);
return !has&&(p=this._findMixin(_76))&&this._findMethod(_74,_75,p,has);
},inherited:function(_77,_78,_79){
var a=arguments;
if(!dojo.isString(a[0])){
_79=_78;
_78=_77;
_77=_78.callee.nom;
}
a=_79||_78;
var c=_78.callee,p=this.constructor.prototype,fn,mp;
if(this[_77]!=c||p[_77]==c){
mp=this._findMethod(_77,c,p,true);
if(!mp){
throw (this.declaredClass+": inherited method \""+_77+"\" mismatch");
}
p=this._findMethod(_77,c,mp,false);
}
fn=p&&p[_77];
if(!fn){
throw (mp.declaredClass+": inherited method \""+_77+"\" not found");
}
return fn.apply(this,a);
}}});
}
if(!dojo._hasResource["dojo._base.connect"]){
dojo._hasResource["dojo._base.connect"]=true;
dojo.provide("dojo._base.connect");
dojo._listener={getDispatcher:function(){
return function(){
var ap=Array.prototype,c=arguments.callee,ls=c._listeners,t=c.target;
var r=t&&t.apply(this,arguments);
for(var i in ls){
if(!(i in ap)){
ls[i].apply(this,arguments);
}
}
return r;
};
},add:function(_7a,_7b,_7c){
_7a=_7a||dojo.global;
var f=_7a[_7b];
if(!f||!f._listeners){
var d=dojo._listener.getDispatcher();
d.target=f;
d._listeners=[];
f=_7a[_7b]=d;
}
return f._listeners.push(_7c);
},remove:function(_7d,_7e,_7f){
var f=(_7d||dojo.global)[_7e];
if(f&&f._listeners&&_7f--){
delete f._listeners[_7f];
}
}};
dojo.connect=function(obj,_80,_81,_82,_83){
var a=arguments,_84=[],i=0;
_84.push(dojo.isString(a[0])?null:a[i++],a[i++]);
var a1=a[i+1];
_84.push(dojo.isString(a1)||dojo.isFunction(a1)?a[i++]:null,a[i++]);
for(var l=a.length;i<l;i++){
_84.push(a[i]);
}
return dojo._connect.apply(this,_84);
};
dojo._connect=function(obj,_85,_86,_87){
var l=dojo._listener,h=l.add(obj,_85,dojo.hitch(_86,_87));
return [obj,_85,h,l];
};
dojo.disconnect=function(_88){
if(_88&&_88[0]!==undefined){
dojo._disconnect.apply(this,_88);
delete _88[0];
}
};
dojo._disconnect=function(obj,_89,_8a,_8b){
_8b.remove(obj,_89,_8a);
};
dojo._topics={};
dojo.subscribe=function(_8c,_8d,_8e){
return [_8c,dojo._listener.add(dojo._topics,_8c,dojo.hitch(_8d,_8e))];
};
dojo.unsubscribe=function(_8f){
if(_8f){
dojo._listener.remove(dojo._topics,_8f[0],_8f[1]);
}
};
dojo.publish=function(_90,_91){
var f=dojo._topics[_90];
if(f){
f.apply(this,_91||[]);
}
};
dojo.connectPublisher=function(_92,obj,_93){
var pf=function(){
dojo.publish(_92,arguments);
};
return (_93)?dojo.connect(obj,_93,pf):dojo.connect(obj,pf);
};
}
if(!dojo._hasResource["dojo._base.Deferred"]){
dojo._hasResource["dojo._base.Deferred"]=true;
dojo.provide("dojo._base.Deferred");
dojo.Deferred=function(_94){
this.chain=[];
this.id=this._nextId();
this.fired=-1;
this.paused=0;
this.results=[null,null];
this.canceller=_94;
this.silentlyCancelled=false;
};
dojo.extend(dojo.Deferred,{_nextId:(function(){
var n=1;
return function(){
return n++;
};
})(),cancel:function(){
var err;
if(this.fired==-1){
if(this.canceller){
err=this.canceller(this);
}else{
this.silentlyCancelled=true;
}
if(this.fired==-1){
if(!(err instanceof Error)){
var res=err;
err=new Error("Deferred Cancelled");
err.dojoType="cancel";
err.cancelResult=res;
}
this.errback(err);
}
}else{
if((this.fired==0)&&(this.results[0] instanceof dojo.Deferred)){
this.results[0].cancel();
}
}
},_resback:function(res){
this.fired=((res instanceof Error)?1:0);
this.results[this.fired]=res;
this._fire();
},_check:function(){
if(this.fired!=-1){
if(!this.silentlyCancelled){
throw new Error("already called!");
}
this.silentlyCancelled=false;
return;
}
},callback:function(res){
this._check();
this._resback(res);
},errback:function(res){
this._check();
if(!(res instanceof Error)){
res=new Error(res);
}
this._resback(res);
},addBoth:function(cb,_95){
var _96=dojo.hitch.apply(dojo,arguments);
return this.addCallbacks(_96,_96);
},addCallback:function(cb,_97){
return this.addCallbacks(dojo.hitch.apply(dojo,arguments));
},addErrback:function(cb,_98){
return this.addCallbacks(null,dojo.hitch.apply(dojo,arguments));
},addCallbacks:function(cb,eb){
this.chain.push([cb,eb]);
if(this.fired>=0){
this._fire();
}
return this;
},_fire:function(){
var _99=this.chain;
var _9a=this.fired;
var res=this.results[_9a];
var _9b=this;
var cb=null;
while((_99.length>0)&&(this.paused==0)){
var f=_99.shift()[_9a];
if(!f){
continue;
}
try{
res=f(res);
_9a=((res instanceof Error)?1:0);
if(res instanceof dojo.Deferred){
cb=function(res){
_9b._resback(res);
_9b.paused--;
if((_9b.paused==0)&&(_9b.fired>=0)){
_9b._fire();
}
};
this.paused++;
}
}
catch(err){
console.debug(err);
_9a=1;
res=err;
}
}
this.fired=_9a;
this.results[_9a]=res;
if((cb)&&(this.paused)){
res.addBoth(cb);
}
}});
}
if(!dojo._hasResource["dojo._base.json"]){
dojo._hasResource["dojo._base.json"]=true;
dojo.provide("dojo._base.json");
dojo.fromJson=function(_9c){
return eval("("+_9c+")");
};
dojo._escapeString=function(str){
return ("\""+str.replace(/(["\\])/g,"\\$1")+"\"").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r");
};
dojo.toJsonIndentStr="\t";
dojo.toJson=function(it,_9d,_9e){
if(it===undefined){
return "undefined";
}
var _9f=typeof it;
if(_9f=="number"||_9f=="boolean"){
return it+"";
}
if(it===null){
return "null";
}
if(dojo.isString(it)){
return dojo._escapeString(it);
}
if(it.nodeType&&it.cloneNode){
return "";
}
var _a0=arguments.callee;
var _a1;
_9e=_9e||"";
var _a2=_9d?_9e+dojo.toJsonIndentStr:"";
if(typeof it.__json__=="function"){
_a1=it.__json__();
if(it!==_a1){
return _a0(_a1,_9d,_a2);
}
}
if(typeof it.json=="function"){
_a1=it.json();
if(it!==_a1){
return _a0(_a1,_9d,_a2);
}
}
var sep=_9d?" ":"";
var _a3=_9d?"\n":"";
if(dojo.isArray(it)){
var res=dojo.map(it,function(obj){
var val=_a0(obj,_9d,_a2);
if(typeof val!="string"){
val="undefined";
}
return _a3+_a2+val;
});
return "["+res.join(","+sep)+_a3+_9e+"]";
}
if(_9f=="function"){
return null;
}
var _a4=[];
for(var key in it){
var _a5;
if(typeof key=="number"){
_a5="\""+key+"\"";
}else{
if(typeof key=="string"){
_a5=dojo._escapeString(key);
}else{
continue;
}
}
val=_a0(it[key],_9d,_a2);
if(typeof val!="string"){
continue;
}
_a4.push(_a3+_a2+_a5+":"+sep+val);
}
return "{"+_a4.join(","+sep)+_a3+_9e+"}";
};
}
if(!dojo._hasResource["dojo._base.array"]){
dojo._hasResource["dojo._base.array"]=true;
dojo.provide("dojo._base.array");
(function(){
var _a6=function(arr,obj,cb){
return [dojo.isString(arr)?arr.split(""):arr,obj||dojo.global,dojo.isString(cb)?new Function("item","index","array",cb):cb];
};
dojo.mixin(dojo,{indexOf:function(_a7,_a8,_a9,_aa){
var _ab=1,end=_a7.length||0,i=0;
if(_aa){
i=end-1;
_ab=end=-1;
}
if(_a9!=undefined){
i=_a9;
}
if((_aa&&i>end)||i<end){
for(;i!=end;i+=_ab){
if(_a7[i]==_a8){
return i;
}
}
}
return -1;
},lastIndexOf:function(_ac,_ad,_ae){
return dojo.indexOf(_ac,_ad,_ae,true);
},forEach:function(arr,_af,_b0){
if(!arr||!arr.length){
return;
}
var _b1=_a6(arr,_b0,_af);
arr=_b1[0];
for(var i=0,l=_b1[0].length;i<l;i++){
_b1[2].call(_b1[1],arr[i],i,arr);
}
},_everyOrSome:function(_b2,arr,_b3,_b4){
var _b5=_a6(arr,_b4,_b3);
arr=_b5[0];
for(var i=0,l=arr.length;i<l;i++){
var _b6=!!_b5[2].call(_b5[1],arr[i],i,arr);
if(_b2^_b6){
return _b6;
}
}
return _b2;
},every:function(arr,_b7,_b8){
return this._everyOrSome(true,arr,_b7,_b8);
},some:function(arr,_b9,_ba){
return this._everyOrSome(false,arr,_b9,_ba);
},map:function(arr,_bb,_bc){
var _bd=_a6(arr,_bc,_bb);
arr=_bd[0];
var _be=(arguments[3]?(new arguments[3]()):[]);
for(var i=0;i<arr.length;++i){
_be.push(_bd[2].call(_bd[1],arr[i],i,arr));
}
return _be;
},filter:function(arr,_bf,_c0){
var _c1=_a6(arr,_c0,_bf);
arr=_c1[0];
var _c2=[];
for(var i=0;i<arr.length;i++){
if(_c1[2].call(_c1[1],arr[i],i,arr)){
_c2.push(arr[i]);
}
}
return _c2;
}});
})();
}
if(!dojo._hasResource["dojo._base.Color"]){
dojo._hasResource["dojo._base.Color"]=true;
dojo.provide("dojo._base.Color");
dojo.Color=function(_c3){
if(_c3){
this.setColor(_c3);
}
};
dojo.Color.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]};
dojo.extend(dojo.Color,{r:255,g:255,b:255,a:1,_set:function(r,g,b,a){
var t=this;
t.r=r;
t.g=g;
t.b=b;
t.a=a;
},setColor:function(_c4){
var d=dojo;
if(d.isString(_c4)){
d.colorFromString(_c4,this);
}else{
if(d.isArray(_c4)){
d.colorFromArray(_c4,this);
}else{
this._set(_c4.r,_c4.g,_c4.b,_c4.a);
if(!(_c4 instanceof d.Color)){
this.sanitize();
}
}
}
return this;
},sanitize:function(){
return this;
},toRgb:function(){
var t=this;
return [t.r,t.g,t.b];
},toRgba:function(){
var t=this;
return [t.r,t.g,t.b,t.a];
},toHex:function(){
var arr=dojo.map(["r","g","b"],function(x){
var s=this[x].toString(16);
return s.length<2?"0"+s:s;
},this);
return "#"+arr.join("");
},toCss:function(_c5){
var t=this,rgb=t.r+", "+t.g+", "+t.b;
return (_c5?"rgba("+rgb+", "+t.a:"rgb("+rgb)+")";
},toString:function(){
return this.toCss(true);
}});
dojo.blendColors=function(_c6,end,_c7,obj){
var d=dojo,t=obj||new dojo.Color();
d.forEach(["r","g","b","a"],function(x){
t[x]=_c6[x]+(end[x]-_c6[x])*_c7;
if(x!="a"){
t[x]=Math.round(t[x]);
}
});
return t.sanitize();
};
dojo.colorFromRgb=function(_c8,obj){
var m=_c8.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/);
return m&&dojo.colorFromArray(m[1].split(/\s*,\s*/),obj);
};
dojo.colorFromHex=function(_c9,obj){
var d=dojo,t=obj||new d.Color(),_ca=(_c9.length==4)?4:8,_cb=(1<<_ca)-1;
_c9=Number("0x"+_c9.substr(1));
if(isNaN(_c9)){
return null;
}
d.forEach(["b","g","r"],function(x){
var c=_c9&_cb;
_c9>>=_ca;
t[x]=_ca==4?17*c:c;
});
t.a=1;
return t;
};
dojo.colorFromArray=function(a,obj){
var t=obj||new dojo.Color();
t._set(Number(a[0]),Number(a[1]),Number(a[2]),Number(a[3]));
if(isNaN(t.a)){
t.a=1;
}
return t.sanitize();
};
dojo.colorFromString=function(str,obj){
var a=dojo.Color.named[str];
return a&&dojo.colorFromArray(a,obj)||dojo.colorFromRgb(str,obj)||dojo.colorFromHex(str,obj);
};
}
if(!dojo._hasResource["dojo._base"]){
dojo._hasResource["dojo._base"]=true;
dojo.provide("dojo._base");
}
if(!dojo._hasResource["dojo._base.window"]){
dojo._hasResource["dojo._base.window"]=true;
dojo.provide("dojo._base.window");
dojo._gearsObject=function(){
var _cc;
var _cd;
var _ce=dojo.getObject("google.gears");
if(_ce){
return _ce;
}
if(typeof GearsFactory!="undefined"){
_cc=new GearsFactory();
}else{
if(dojo.isIE){
try{
_cc=new ActiveXObject("Gears.Factory");
}
catch(e){
}
}else{
if(navigator.mimeTypes["application/x-googlegears"]){
_cc=document.createElement("object");
_cc.setAttribute("type","application/x-googlegears");
_cc.setAttribute("width",0);
_cc.setAttribute("height",0);
_cc.style.display="none";
document.documentElement.appendChild(_cc);
}
}
}
if(!_cc){
return null;
}
dojo.setObject("google.gears.factory",_cc);
return dojo.getObject("google.gears");
};
dojo.isGears=(!!dojo._gearsObject())||0;
dojo.doc=window["document"]||null;
dojo.body=function(){
return dojo.doc.body||dojo.doc.getElementsByTagName("body")[0];
};
dojo.setContext=function(_cf,_d0){
dojo.global=_cf;
dojo.doc=_d0;
};
dojo._fireCallback=function(_d1,_d2,_d3){
if(_d2&&dojo.isString(_d1)){
_d1=_d2[_d1];
}
return _d1.apply(_d2,_d3||[]);
};
dojo.withGlobal=function(_d4,_d5,_d6,_d7){
var _d8;
var _d9=dojo.global;
var _da=dojo.doc;
try{
dojo.setContext(_d4,_d4.document);
_d8=dojo._fireCallback(_d5,_d6,_d7);
}
finally{
dojo.setContext(_d9,_da);
}
return _d8;
};
dojo.withDoc=function(_db,_dc,_dd,_de){
var _df;
var _e0=dojo.doc;
try{
dojo.doc=_db;
_df=dojo._fireCallback(_dc,_dd,_de);
}
finally{
dojo.doc=_e0;
}
return _df;
};
}
if(!dojo._hasResource["dojo._base.event"]){
dojo._hasResource["dojo._base.event"]=true;
dojo.provide("dojo._base.event");
(function(){
var del=(dojo._event_listener={add:function(_e1,_e2,fp){
if(!_e1){
return;
}
_e2=del._normalizeEventName(_e2);
fp=del._fixCallback(_e2,fp);
var _e3=_e2;
if(!dojo.isIE&&(_e2=="mouseenter"||_e2=="mouseleave")){
var ofp=fp;
_e2=(_e2=="mouseenter")?"mouseover":"mouseout";
fp=function(e){
if(!dojo.isDescendant(e.relatedTarget,_e1)){
return ofp.call(this,e);
}
};
}
_e1.addEventListener(_e2,fp,false);
return fp;
},remove:function(_e4,_e5,_e6){
if(_e4){
_e4.removeEventListener(del._normalizeEventName(_e5),_e6,false);
}
},_normalizeEventName:function(_e7){
return _e7.slice(0,2)=="on"?_e7.slice(2):_e7;
},_fixCallback:function(_e8,fp){
return _e8!="keypress"?fp:function(e){
return fp.call(this,del._fixEvent(e,this));
};
},_fixEvent:function(evt,_e9){
switch(evt.type){
case "keypress":
del._setKeyChar(evt);
break;
}
return evt;
},_setKeyChar:function(evt){
evt.keyChar=evt.charCode?String.fromCharCode(evt.charCode):"";
}});
dojo.fixEvent=function(evt,_ea){
return del._fixEvent(evt,_ea);
};
dojo.stopEvent=function(evt){
evt.preventDefault();
evt.stopPropagation();
};
var _eb=dojo._listener;
dojo._connect=function(obj,_ec,_ed,_ee,_ef){
var _f0=obj&&(obj.nodeType||obj.attachEvent||obj.addEventListener);
var lid=!_f0?0:(!_ef?1:2),l=[dojo._listener,del,_eb][lid];
var h=l.add(obj,_ec,dojo.hitch(_ed,_ee));
return [obj,_ec,h,lid];
};
dojo._disconnect=function(obj,_f1,_f2,_f3){
([dojo._listener,del,_eb][_f3]).remove(obj,_f1,_f2);
};
dojo.keys={BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,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,INSERT_C:67,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};
if(dojo.isIE){
var _f4=function(e,_f5){
try{
return (e.keyCode=_f5);
}
catch(e){
return 0;
}
};
var iel=dojo._listener;
if(!dojo.config._allow_leaks){
_eb=iel=dojo._ie_listener={handlers:[],add:function(_f6,_f7,_f8){
_f6=_f6||dojo.global;
var f=_f6[_f7];
if(!f||!f._listeners){
var d=dojo._getIeDispatcher();
d.target=f&&(ieh.push(f)-1);
d._listeners=[];
f=_f6[_f7]=d;
}
return f._listeners.push(ieh.push(_f8)-1);
},remove:function(_f9,_fa,_fb){
var f=(_f9||dojo.global)[_fa],l=f&&f._listeners;
if(f&&l&&_fb--){
delete ieh[l[_fb]];
delete l[_fb];
}
}};
var ieh=iel.handlers;
}
dojo.mixin(del,{add:function(_fc,_fd,fp){
if(!_fc){
return;
}
_fd=del._normalizeEventName(_fd);
if(_fd=="onkeypress"){
var kd=_fc.onkeydown;
if(!kd||!kd._listeners||!kd._stealthKeydownHandle){
var h=del.add(_fc,"onkeydown",del._stealthKeyDown);
kd=_fc.onkeydown;
kd._stealthKeydownHandle=h;
kd._stealthKeydownRefs=1;
}else{
kd._stealthKeydownRefs++;
}
}
return iel.add(_fc,_fd,del._fixCallback(fp));
},remove:function(_fe,_ff,_100){
_ff=del._normalizeEventName(_ff);
iel.remove(_fe,_ff,_100);
if(_ff=="onkeypress"){
var kd=_fe.onkeydown;
if(--kd._stealthKeydownRefs<=0){
iel.remove(_fe,"onkeydown",kd._stealthKeydownHandle);
delete kd._stealthKeydownHandle;
}
}
},_normalizeEventName:function(_101){
return _101.slice(0,2)!="on"?"on"+_101:_101;
},_nop:function(){
},_fixEvent:function(evt,_102){
if(!evt){
var w=_102&&(_102.ownerDocument||_102.document||_102).parentWindow||window;
evt=w.event;
}
if(!evt){
return (evt);
}
evt.target=evt.srcElement;
evt.currentTarget=(_102||evt.srcElement);
evt.layerX=evt.offsetX;
evt.layerY=evt.offsetY;
var se=evt.srcElement,doc=(se&&se.ownerDocument)||document;
var _103=((dojo.isIE<6)||(doc["compatMode"]=="BackCompat"))?doc.body:doc.documentElement;
var _104=dojo._getIeDocumentElementOffset();
evt.pageX=evt.clientX+dojo._fixIeBiDiScrollLeft(_103.scrollLeft||0)-_104.x;
evt.pageY=evt.clientY+(_103.scrollTop||0)-_104.y;
if(evt.type=="mouseover"){
evt.relatedTarget=evt.fromElement;
}
if(evt.type=="mouseout"){
evt.relatedTarget=evt.toElement;
}
evt.stopPropagation=del._stopPropagation;
evt.preventDefault=del._preventDefault;
return del._fixKeys(evt);
},_fixKeys:function(evt){
switch(evt.type){
case "keypress":
var c=("charCode" in evt?evt.charCode:evt.keyCode);
if(c==10){
c=0;
evt.keyCode=13;
}else{
if(c==13||c==27){
c=0;
}else{
if(c==3){
c=99;
}
}
}
evt.charCode=c;
del._setKeyChar(evt);
break;
}
return evt;
},_punctMap:{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},_stealthKeyDown:function(evt){
var kp=evt.currentTarget.onkeypress;
if(!kp||!kp._listeners){
return;
}
var k=evt.keyCode;
var _105=(k!=13)&&(k!=32)&&(k!=27)&&(k<48||k>90)&&(k<96||k>111)&&(k<186||k>192)&&(k<219||k>222);
if(_105||evt.ctrlKey){
var c=_105?0:k;
if(evt.ctrlKey){
if(k==3||k==13){
return;
}else{
if(c>95&&c<106){
c-=48;
}else{
if((!evt.shiftKey)&&(c>=65&&c<=90)){
c+=32;
}else{
c=del._punctMap[c]||c;
}
}
}
}
var faux=del._synthesizeEvent(evt,{type:"keypress",faux:true,charCode:c});
kp.call(evt.currentTarget,faux);
evt.cancelBubble=faux.cancelBubble;
evt.returnValue=faux.returnValue;
_f4(evt,faux.keyCode);
}
},_stopPropagation:function(){
this.cancelBubble=true;
},_preventDefault:function(){
this.bubbledKeyCode=this.keyCode;
if(this.ctrlKey){
_f4(this,0);
}
this.returnValue=false;
}});
dojo.stopEvent=function(evt){
evt=evt||window.event;
del._stopPropagation.call(evt);
del._preventDefault.call(evt);
};
}
del._synthesizeEvent=function(evt,_106){
var faux=dojo.mixin({},evt,_106);
del._setKeyChar(faux);
faux.preventDefault=function(){
evt.preventDefault();
};
faux.stopPropagation=function(){
evt.stopPropagation();
};
return faux;
};
if(dojo.isOpera){
dojo.mixin(del,{_fixEvent:function(evt,_107){
switch(evt.type){
case "keypress":
var c=evt.which;
if(c==3){
c=99;
}
c=((c<41)&&(!evt.shiftKey)?0:c);
if((evt.ctrlKey)&&(!evt.shiftKey)&&(c>=65)&&(c<=90)){
c+=32;
}
return del._synthesizeEvent(evt,{charCode:c});
}
return evt;
}});
}
if(dojo.isWebKit){
del._add=del.add;
del._remove=del.remove;
dojo.mixin(del,{add:function(node,_108,fp){
if(!node){
return;
}
var _109=del._add(node,_108,fp);
if(del._normalizeEventName(_108)=="keypress"){
_109._stealthKeyDownHandle=del._add(node,"keydown",function(evt){
var k=evt.keyCode;
var _10a=k!=13&&k!=32&&k!=27&&(k<48||k>90)&&(k<96||k>111)&&(k<186||k>192)&&(k<219||k>222);
if(_10a||evt.ctrlKey){
var c=_10a?0:k;
if(evt.ctrlKey){
if(k==3||k==13){
return;
}else{
if(c>95&&c<106){
c-=48;
}else{
if(!evt.shiftKey&&c>=65&&c<=90){
c+=32;
}else{
c=del._punctMap[c]||c;
}
}
}
}
var faux=del._synthesizeEvent(evt,{type:"keypress",faux:true,charCode:c});
fp.call(evt.currentTarget,faux);
}
});
}
return _109;
},remove:function(node,_10b,_10c){
if(node){
if(_10c._stealthKeyDownHandle){
del._remove(node,"keydown",_10c._stealthKeyDownHandle);
}
del._remove(node,_10b,_10c);
}
},_fixEvent:function(evt,_10d){
switch(evt.type){
case "keypress":
if(evt.faux){
return evt;
}
var c=evt.charCode;
c=c>=32?c:0;
return del._synthesizeEvent(evt,{charCode:c,faux:true});
}
return evt;
}});
}
})();
if(dojo.isIE){
dojo._ieDispatcher=function(args,_10e){
var ap=Array.prototype,h=dojo._ie_listener.handlers,c=args.callee,ls=c._listeners,t=h[c.target];
var r=t&&t.apply(_10e,args);
for(var i in ls){
if(!(i in ap)){
h[ls[i]].apply(_10e,args);
}
}
return r;
};
dojo._getIeDispatcher=function(){
return new Function(dojo._scopeName+"._ieDispatcher(arguments, this)");
};
dojo._event_listener._fixCallback=function(fp){
var f=dojo._event_listener._fixEvent;
return function(e){
return fp.call(this,f(e,this));
};
};
}
}
if(!dojo._hasResource["dojo._base.html"]){
dojo._hasResource["dojo._base.html"]=true;
dojo.provide("dojo._base.html");
try{
document.execCommand("BackgroundImageCache",false,true);
}
catch(e){
}
if(dojo.isIE||dojo.isOpera){
dojo.byId=function(id,doc){
if(dojo.isString(id)){
var _10f=doc||dojo.doc;
var te=_10f.getElementById(id);
if(te&&te.attributes.id.value==id){
return te;
}else{
var eles=_10f.all[id];
if(!eles||!eles.length){
return eles;
}
var i=0;
while((te=eles[i++])){
if(te.attributes.id.value==id){
return te;
}
}
}
}else{
return id;
}
};
}else{
dojo.byId=function(id,doc){
return dojo.isString(id)?(doc||dojo.doc).getElementById(id):id;
};
}
(function(){
var d=dojo;
var _110=null;
dojo.addOnUnload(function(){
_110=null;
});
dojo._destroyElement=function(node){
node=d.byId(node);
try{
if(!_110){
_110=document.createElement("div");
}
_110.appendChild(node.parentNode?node.parentNode.removeChild(node):node);
_110.innerHTML="";
}
catch(e){
}
};
dojo.isDescendant=function(node,_111){
try{
node=d.byId(node);
_111=d.byId(_111);
while(node){
if(node===_111){
return true;
}
node=node.parentNode;
}
}
catch(e){
}
return false;
};
dojo.setSelectable=function(node,_112){
node=d.byId(node);
if(d.isMozilla){
node.style.MozUserSelect=_112?"":"none";
}else{
if(d.isKhtml){
node.style.KhtmlUserSelect=_112?"auto":"none";
}else{
if(d.isIE){
node.unselectable=_112?"":"on";
d.query("*",node).forEach(function(_113){
_113.unselectable=_112?"":"on";
});
}
}
}
};
var _114=function(node,ref){
ref.parentNode.insertBefore(node,ref);
return true;
};
var _115=function(node,ref){
var pn=ref.parentNode;
if(ref==pn.lastChild){
pn.appendChild(node);
}else{
return _114(node,ref.nextSibling);
}
return true;
};
dojo.place=function(node,_116,_117){
if(!node||!_116||_117===undefined){
return false;
}
node=d.byId(node);
_116=d.byId(_116);
if(typeof _117=="number"){
var cn=_116.childNodes;
if((_117==0&&cn.length==0)||cn.length==_117){
_116.appendChild(node);
return true;
}
if(_117==0){
return _114(node,_116.firstChild);
}
return _115(node,cn[_117-1]);
}
switch(_117.toLowerCase()){
case "before":
return _114(node,_116);
case "after":
return _115(node,_116);
case "first":
if(_116.firstChild){
return _114(node,_116.firstChild);
}
default:
_116.appendChild(node);
return true;
}
};
dojo.boxModel="content-box";
if(d.isIE){
var _118=document.compatMode;
d.boxModel=_118=="BackCompat"||_118=="QuirksMode"||d.isIE<6?"border-box":"content-box";
}
var gcs,dv=document.defaultView;
if(d.isSafari){
gcs=function(node){
var s=dv.getComputedStyle(node,null);
if(!s&&node.style){
node.style.display="";
s=dv.getComputedStyle(node,null);
}
return s||{};
};
}else{
if(d.isIE){
gcs=function(node){
return node.currentStyle;
};
}else{
gcs=function(node){
return dv.getComputedStyle(node,null);
};
}
}
dojo.getComputedStyle=gcs;
if(!d.isIE){
dojo._toPixelValue=function(_119,_11a){
return parseFloat(_11a)||0;
};
}else{
dojo._toPixelValue=function(_11b,_11c){
if(!_11c){
return 0;
}
if(_11c=="medium"){
return 4;
}
if(_11c.slice&&(_11c.slice(-2)=="px")){
return parseFloat(_11c);
}
with(_11b){
var _11d=style.left;
var _11e=runtimeStyle.left;
runtimeStyle.left=currentStyle.left;
try{
style.left=_11c;
_11c=style.pixelLeft;
}
catch(e){
_11c=0;
}
style.left=_11d;
runtimeStyle.left=_11e;
}
return _11c;
};
}
var px=d._toPixelValue;
dojo._getOpacity=d.isIE?function(node){
try{
return node.filters.alpha.opacity/100;
}
catch(e){
return 1;
}
}:function(node){
return gcs(node).opacity;
};
dojo._setOpacity=d.isIE?function(node,_11f){
if(_11f==1){
var _120=/FILTER:[^;]*;?/i;
node.style.cssText=node.style.cssText.replace(_120,"");
if(node.nodeName.toLowerCase()=="tr"){
d.query("> td",node).forEach(function(i){
i.style.cssText=i.style.cssText.replace(_120,"");
});
}
}else{
var o="Alpha(Opacity="+_11f*100+")";
node.style.filter=o;
}
if(node.nodeName.toLowerCase()=="tr"){
d.query("> td",node).forEach(function(i){
i.style.filter=o;
});
}
return _11f;
}:function(node,_121){
return node.style.opacity=_121;
};
var _122={left:true,top:true};
var _123=/margin|padding|width|height|max|min|offset/;
var _124=function(node,type,_125){
type=type.toLowerCase();
if(d.isIE&&_125=="auto"){
if(type=="height"){
return node.offsetHeight;
}
if(type=="width"){
return node.offsetWidth;
}
}
if(!(type in _122)){
_122[type]=_123.test(type);
}
return _122[type]?px(node,_125):_125;
};
var _126=d.isIE?"styleFloat":"cssFloat";
var _127={"cssFloat":_126,"styleFloat":_126,"float":_126};
dojo.style=function(node,_128,_129){
var n=d.byId(node),args=arguments.length,op=(_128=="opacity");
_128=_127[_128]||_128;
if(args==3){
return op?d._setOpacity(n,_129):n.style[_128]=_129;
}
if(args==2&&op){
return d._getOpacity(n);
}
var s=gcs(n);
if(args==2&&!d.isString(_128)){
for(var x in _128){
d.style(node,x,_128[x]);
}
return s;
}
return (args==1)?s:_124(n,_128,s[_128]);
};
dojo._getPadExtents=function(n,_12a){
var s=_12a||gcs(n),l=px(n,s.paddingLeft),t=px(n,s.paddingTop);
return {l:l,t:t,w:l+px(n,s.paddingRight),h:t+px(n,s.paddingBottom)};
};
dojo._getBorderExtents=function(n,_12b){
var ne="none",s=_12b||gcs(n),bl=(s.borderLeftStyle!=ne?px(n,s.borderLeftWidth):0),bt=(s.borderTopStyle!=ne?px(n,s.borderTopWidth):0);
return {l:bl,t:bt,w:bl+(s.borderRightStyle!=ne?px(n,s.borderRightWidth):0),h:bt+(s.borderBottomStyle!=ne?px(n,s.borderBottomWidth):0)};
};
dojo._getPadBorderExtents=function(n,_12c){
var s=_12c||gcs(n),p=d._getPadExtents(n,s),b=d._getBorderExtents(n,s);
return {l:p.l+b.l,t:p.t+b.t,w:p.w+b.w,h:p.h+b.h};
};
dojo._getMarginExtents=function(n,_12d){
var s=_12d||gcs(n),l=px(n,s.marginLeft),t=px(n,s.marginTop),r=px(n,s.marginRight),b=px(n,s.marginBottom);
if(d.isSafari&&(s.position!="absolute")){
r=l;
}
return {l:l,t:t,w:l+r,h:t+b};
};
dojo._getMarginBox=function(node,_12e){
var s=_12e||gcs(node),me=d._getMarginExtents(node,s);
var l=node.offsetLeft-me.l,t=node.offsetTop-me.t;
if(d.isMoz){
var sl=parseFloat(s.left),st=parseFloat(s.top);
if(!isNaN(sl)&&!isNaN(st)){
l=sl,t=st;
}else{
var p=node.parentNode;
if(p&&p.style){
var pcs=gcs(p);
if(pcs.overflow!="visible"){
var be=d._getBorderExtents(p,pcs);
l+=be.l,t+=be.t;
}
}
}
}else{
if(d.isOpera){
var p=node.parentNode;
if(p){
var be=d._getBorderExtents(p);
l-=be.l,t-=be.t;
}
}
}
return {l:l,t:t,w:node.offsetWidth+me.w,h:node.offsetHeight+me.h};
};
dojo._getContentBox=function(node,_12f){
var s=_12f||gcs(node),pe=d._getPadExtents(node,s),be=d._getBorderExtents(node,s),w=node.clientWidth,h;
if(!w){
w=node.offsetWidth,h=node.offsetHeight;
}else{
h=node.clientHeight,be.w=be.h=0;
}
if(d.isOpera){
pe.l+=be.l;
pe.t+=be.t;
}
return {l:pe.l,t:pe.t,w:w-pe.w-be.w,h:h-pe.h-be.h};
};
dojo._getBorderBox=function(node,_130){
var s=_130||gcs(node),pe=d._getPadExtents(node,s),cb=d._getContentBox(node,s);
return {l:cb.l-pe.l,t:cb.t-pe.t,w:cb.w+pe.w,h:cb.h+pe.h};
};
dojo._setBox=function(node,l,t,w,h,u){
u=u||"px";
var s=node.style;
if(!isNaN(l)){
s.left=l+u;
}
if(!isNaN(t)){
s.top=t+u;
}
if(w>=0){
s.width=w+u;
}
if(h>=0){
s.height=h+u;
}
};
dojo._usesBorderBox=function(node){
var n=node.tagName;
return d.boxModel=="border-box"||n=="TABLE"||n=="BUTTON";
};
dojo._setContentSize=function(node,_131,_132,_133){
if(d._usesBorderBox(node)){
var pb=d._getPadBorderExtents(node,_133);
if(_131>=0){
_131+=pb.w;
}
if(_132>=0){
_132+=pb.h;
}
}
d._setBox(node,NaN,NaN,_131,_132);
};
dojo._setMarginBox=function(node,_134,_135,_136,_137,_138){
var s=_138||gcs(node);
var bb=d._usesBorderBox(node),pb=bb?_139:d._getPadBorderExtents(node,s),mb=d._getMarginExtents(node,s);
if(_136>=0){
_136=Math.max(_136-pb.w-mb.w,0);
}
if(_137>=0){
_137=Math.max(_137-pb.h-mb.h,0);
}
d._setBox(node,_134,_135,_136,_137);
};
var _139={l:0,t:0,w:0,h:0};
dojo.marginBox=function(node,box){
var n=d.byId(node),s=gcs(n),b=box;
return !b?d._getMarginBox(n,s):d._setMarginBox(n,b.l,b.t,b.w,b.h,s);
};
dojo.contentBox=function(node,box){
var n=dojo.byId(node),s=gcs(n),b=box;
return !b?d._getContentBox(n,s):d._setContentSize(n,b.w,b.h,s);
};
var _13a=function(node,prop){
if(!(node=(node||0).parentNode)){
return 0;
}
var val,_13b=0,_13c=d.body();
while(node&&node.style){
if(gcs(node).position=="fixed"){
return 0;
}
val=node[prop];
if(val){
_13b+=val-0;
if(node==_13c){
break;
}
}
node=node.parentNode;
}
return _13b;
};
dojo._docScroll=function(){
var _13d=d.body(),_13e=d.global,de=d.doc.documentElement;
return {y:(_13e.pageYOffset||de.scrollTop||_13d.scrollTop||0),x:(_13e.pageXOffset||d._fixIeBiDiScrollLeft(de.scrollLeft)||_13d.scrollLeft||0)};
};
dojo._isBodyLtr=function(){
return !("_bodyLtr" in d)?d._bodyLtr=gcs(d.body()).direction=="ltr":d._bodyLtr;
};
dojo._getIeDocumentElementOffset=function(){
var de=d.doc.documentElement;
return (d.isIE>=7)?{x:de.getBoundingClientRect().left,y:de.getBoundingClientRect().top}:{x:d._isBodyLtr()||window.parent==window?de.clientLeft:de.offsetWidth-de.clientWidth-de.clientLeft,y:de.clientTop};
};
dojo._fixIeBiDiScrollLeft=function(_13f){
var dd=d.doc;
if(d.isIE&&!dojo._isBodyLtr()){
var de=dd.compatMode=="BackCompat"?dd.body:dd.documentElement;
return _13f+de.clientWidth-de.scrollWidth;
}
return _13f;
};
dojo._abs=function(node,_140){
var _141=node.ownerDocument;
var ret={x:0,y:0};
var db=d.body();
if(d.isIE||(d.isFF>=3)){
var _142=node.getBoundingClientRect();
var _143=(d.isIE)?d._getIeDocumentElementOffset():{x:0,y:0};
ret.x=_142.left-_143.x;
ret.y=_142.top-_143.y;
}else{
if(_141["getBoxObjectFor"]){
var bo=_141.getBoxObjectFor(node),b=d._getBorderExtents(node);
ret.x=bo.x-b.l-_13a(node,"scrollLeft");
ret.y=bo.y-b.t-_13a(node,"scrollTop");
}else{
if(node["offsetParent"]){
var _144;
if(d.isSafari&&(gcs(node).position=="absolute")&&(node.parentNode==db)){
_144=db;
}else{
_144=db.parentNode;
}
if(node.parentNode!=db){
var nd=node;
if(d.isOpera){
nd=db;
}
ret.x-=_13a(nd,"scrollLeft");
ret.y-=_13a(nd,"scrollTop");
}
var _145=node;
do{
var n=_145.offsetLeft;
if(!d.isOpera||n>0){
ret.x+=isNaN(n)?0:n;
}
var t=_145.offsetTop;
ret.y+=isNaN(t)?0:t;
if(d.isSafari&&_145!=node){
var cs=gcs(_145);
ret.x+=px(_145,cs.borderLeftWidth);
ret.y+=px(_145,cs.borderTopWidth);
}
_145=_145.offsetParent;
}while((_145!=_144)&&_145);
}else{
if(node.x&&node.y){
ret.x+=isNaN(node.x)?0:node.x;
ret.y+=isNaN(node.y)?0:node.y;
}
}
}
}
if(_140){
var _146=d._docScroll();
ret.y+=_146.y;
ret.x+=_146.x;
}
return ret;
};
dojo.coords=function(node,_147){
var n=d.byId(node),s=gcs(n),mb=d._getMarginBox(n,s);
var abs=d._abs(n,_147);
mb.x=abs.x;
mb.y=abs.y;
return mb;
};
var _148=function(name){
switch(name.toLowerCase()){
case "tabindex":
return (d.isIE&&d.isIE<8)?"tabIndex":"tabindex";
default:
return name;
}
};
var _149={colspan:"colSpan",enctype:"enctype",frameborder:"frameborder",method:"method",rowspan:"rowSpan",scrolling:"scrolling",shape:"shape",span:"span",type:"type",valuetype:"valueType"};
dojo.hasAttr=function(node,name){
var attr=d.byId(node).getAttributeNode(_148(name));
return attr?attr.specified:false;
};
var _14a={};
var _14b=0;
var _14c=dojo._scopeName+"attrid";
dojo.attr=function(node,name,_14d){
var args=arguments.length;
if(args==2&&!d.isString(name)){
for(var x in name){
d.attr(node,x,name[x]);
}
return;
}
node=d.byId(node);
name=_148(name);
if(args==3){
if(d.isFunction(_14d)){
var _14e=d.attr(node,_14c);
if(!_14e){
_14e=_14b++;
d.attr(node,_14c,_14e);
}
if(!_14a[_14e]){
_14a[_14e]={};
}
var h=_14a[_14e][name];
if(h){
d.disconnect(h);
}else{
try{
delete node[name];
}
catch(e){
}
}
_14a[_14e][name]=d.connect(node,name,_14d);
}else{
if(typeof _14d=="boolean"){
node[name]=_14d;
}else{
node.setAttribute(name,_14d);
}
}
return;
}else{
var prop=_149[name.toLowerCase()];
if(prop){
return node[prop];
}else{
var _14d=node[name];
return (typeof _14d=="boolean"||typeof _14d=="function")?_14d:(d.hasAttr(node,name)?node.getAttribute(name):null);
}
}
};
dojo.removeAttr=function(node,name){
d.byId(node).removeAttribute(_148(name));
};
})();
dojo.hasClass=function(node,_14f){
return ((" "+dojo.byId(node).className+" ").indexOf(" "+_14f+" ")>=0);
};
dojo.addClass=function(node,_150){
node=dojo.byId(node);
var cls=node.className;
if((" "+cls+" ").indexOf(" "+_150+" ")<0){
node.className=cls+(cls?" ":"")+_150;
}
};
dojo.removeClass=function(node,_151){
node=dojo.byId(node);
var t=dojo.trim((" "+node.className+" ").replace(" "+_151+" "," "));
if(node.className!=t){
node.className=t;
}
};
dojo.toggleClass=function(node,_152,_153){
if(_153===undefined){
_153=!dojo.hasClass(node,_152);
}
dojo[_153?"addClass":"removeClass"](node,_152);
};
}
if(!dojo._hasResource["dojo._base.NodeList"]){
dojo._hasResource["dojo._base.NodeList"]=true;
dojo.provide("dojo._base.NodeList");
(function(){
var d=dojo;
var tnl=function(arr){
arr.constructor=dojo.NodeList;
dojo._mixin(arr,dojo.NodeList.prototype);
return arr;
};
var _154=function(func,_155){
return function(){
var _156=arguments;
var aa=d._toArray(_156,0,[null]);
var s=this.map(function(i){
aa[0]=i;
return d[func].apply(d,aa);
});
return (_155||((_156.length>1)||!d.isString(_156[0])))?this:s;
};
};
dojo.NodeList=function(){
return tnl(Array.apply(null,arguments));
};
dojo.NodeList._wrap=tnl;
dojo.extend(dojo.NodeList,{slice:function(){
var a=dojo._toArray(arguments);
return tnl(a.slice.apply(this,a));
},splice:function(){
var a=dojo._toArray(arguments);
return tnl(a.splice.apply(this,a));
},concat:function(){
var a=dojo._toArray(arguments,0,[this]);
return tnl(a.concat.apply([],a));
},indexOf:function(_157,_158){
return d.indexOf(this,_157,_158);
},lastIndexOf:function(){
return d.lastIndexOf.apply(d,d._toArray(arguments,0,[this]));
},every:function(_159,_15a){
return d.every(this,_159,_15a);
},some:function(_15b,_15c){
return d.some(this,_15b,_15c);
},map:function(func,obj){
return d.map(this,func,obj,d.NodeList);
},forEach:function(_15d,_15e){
d.forEach(this,_15d,_15e);
return this;
},coords:function(){
return d.map(this,d.coords);
},attr:_154("attr"),style:_154("style"),addClass:_154("addClass",true),removeClass:_154("removeClass",true),toggleClass:_154("toggleClass",true),connect:_154("connect",true),place:function(_15f,_160){
var item=d.query(_15f)[0];
return this.forEach(function(i){
d.place(i,item,(_160||"last"));
});
},orphan:function(_161){
var _162=_161?d._filterQueryResult(this,_161):this;
_162.forEach(function(item){
if(item.parentNode){
item.parentNode.removeChild(item);
}
});
return _162;
},adopt:function(_163,_164){
var item=this[0];
return d.query(_163).forEach(function(ai){
d.place(ai,item,_164||"last");
});
},query:function(_165){
if(!_165){
return this;
}
var ret=d.NodeList();
this.forEach(function(item){
d.query(_165,item).forEach(function(_166){
if(_166!==undefined){
ret.push(_166);
}
});
});
return ret;
},filter:function(_167){
var _168=this;
var _169=arguments;
var r=d.NodeList();
var rp=function(t){
if(t!==undefined){
r.push(t);
}
};
if(d.isString(_167)){
_168=d._filterQueryResult(this,_169[0]);
if(_169.length==1){
return _168;
}
_169.shift();
}
d.forEach(d.filter(_168,_169[0],_169[1]),rp);
return r;
},addContent:function(_16a,_16b){
var ta=d.doc.createElement("span");
if(d.isString(_16a)){
ta.innerHTML=_16a;
}else{
ta.appendChild(_16a);
}
if(_16b===undefined){
_16b="last";
}
var ct=(_16b=="first"||_16b=="after")?"lastChild":"firstChild";
this.forEach(function(item){
var tn=ta.cloneNode(true);
while(tn[ct]){
d.place(tn[ct],item,_16b);
}
});
return this;
},empty:function(){
return this.forEach("item.innerHTML='';");
},instantiate:function(_16c,_16d){
var c=d.isFunction(_16c)?_16c:d.getObject(_16c);
return this.forEach(function(i){
new c(_16d||{},i);
});
}});
d.forEach(["blur","focus","click","keydown","keypress","keyup","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup"],function(evt){
var _16e="on"+evt;
dojo.NodeList.prototype[_16e]=function(a,b){
return this.connect(_16e,a,b);
};
});
})();
}
if(!dojo._hasResource["dojo._base.query"]){
dojo._hasResource["dojo._base.query"]=true;
dojo.provide("dojo._base.query");
(function(){
var d=dojo;
var _16f=dojo.isIE?"children":"childNodes";
var _170=false;
var _171=function(_172){
if(">~+".indexOf(_172.charAt(_172.length-1))>=0){
_172+=" *";
}
_172+=" ";
var ts=function(s,e){
return d.trim(_172.slice(s,e));
};
var _173=[];
var _174=-1;
var _175=-1;
var _176=-1;
var _177=-1;
var _178=-1;
var inId=-1;
var _179=-1;
var lc="";
var cc="";
var _17a;
var x=0;
var ql=_172.length;
var _17b=null;
var _17c=null;
var _17d=function(){
if(_179>=0){
var tv=(_179==x)?null:ts(_179,x).toLowerCase();
_17b[(">~+".indexOf(tv)<0)?"tag":"oper"]=tv;
_179=-1;
}
};
var _17e=function(){
if(inId>=0){
_17b.id=ts(inId,x).replace(/\\/g,"");
inId=-1;
}
};
var _17f=function(){
if(_178>=0){
_17b.classes.push(ts(_178+1,x).replace(/\\/g,""));
_178=-1;
}
};
var _180=function(){
_17e();
_17d();
_17f();
};
for(;lc=cc,cc=_172.charAt(x),x<ql;x++){
if(lc=="\\"){
continue;
}
if(!_17b){
_17a=x;
_17b={query:null,pseudos:[],attrs:[],classes:[],tag:null,oper:null,id:null};
_179=x;
}
if(_174>=0){
if(cc=="]"){
if(!_17c.attr){
_17c.attr=ts(_174+1,x);
}else{
_17c.matchFor=ts((_176||_174+1),x);
}
var cmf=_17c.matchFor;
if(cmf){
if((cmf.charAt(0)=="\"")||(cmf.charAt(0)=="'")){
_17c.matchFor=cmf.substring(1,cmf.length-1);
}
}
_17b.attrs.push(_17c);
_17c=null;
_174=_176=-1;
}else{
if(cc=="="){
var _181=("|~^$*".indexOf(lc)>=0)?lc:"";
_17c.type=_181+cc;
_17c.attr=ts(_174+1,x-_181.length);
_176=x+1;
}
}
}else{
if(_175>=0){
if(cc==")"){
if(_177>=0){
_17c.value=ts(_175+1,x);
}
_177=_175=-1;
}
}else{
if(cc=="#"){
_180();
inId=x+1;
}else{
if(cc=="."){
_180();
_178=x;
}else{
if(cc==":"){
_180();
_177=x;
}else{
if(cc=="["){
_180();
_174=x;
_17c={};
}else{
if(cc=="("){
if(_177>=0){
_17c={name:ts(_177+1,x),value:null};
_17b.pseudos.push(_17c);
}
_175=x;
}else{
if(cc==" "&&lc!=cc){
_180();
if(_177>=0){
_17b.pseudos.push({name:ts(_177+1,x)});
}
_17b.hasLoops=(_17b.pseudos.length||_17b.attrs.length||_17b.classes.length);
_17b.query=ts(_17a,x);
_17b.tag=(_17b["oper"])?null:(_17b.tag||"*");
_173.push(_17b);
_17b=null;
}
}
}
}
}
}
}
}
}
return _173;
};
var _182={"*=":function(attr,_183){
return "[contains(@"+attr+", '"+_183+"')]";
},"^=":function(attr,_184){
return "[starts-with(@"+attr+", '"+_184+"')]";
},"$=":function(attr,_185){
return "[substring(@"+attr+", string-length(@"+attr+")-"+(_185.length-1)+")='"+_185+"']";
},"~=":function(attr,_186){
return "[contains(concat(' ',@"+attr+",' '), ' "+_186+" ')]";
},"|=":function(attr,_187){
return "[contains(concat(' ',@"+attr+",' '), ' "+_187+"-')]";
},"=":function(attr,_188){
return "[@"+attr+"='"+_188+"']";
}};
var _189=function(_18a,_18b,_18c,_18d){
d.forEach(_18b.attrs,function(attr){
var _18e;
if(attr.type&&_18a[attr.type]){
_18e=_18a[attr.type](attr.attr,attr.matchFor);
}else{
if(attr.attr.length){
_18e=_18c(attr.attr);
}
}
if(_18e){
_18d(_18e);
}
});
};
var _18f=function(_190){
var _191=".";
var _192=_171(d.trim(_190));
while(_192.length){
var tqp=_192.shift();
var _193;
var _194="";
if(tqp.oper==">"){
_193="/";
tqp=_192.shift();
}else{
if(tqp.oper=="~"){
_193="/following-sibling::";
tqp=_192.shift();
}else{
if(tqp.oper=="+"){
_193="/following-sibling::";
_194="[position()=1]";
tqp=_192.shift();
}else{
_193="//";
}
}
}
_191+=_193+tqp.tag+_194;
if(tqp.id){
_191+="[@id='"+tqp.id+"'][1]";
}
d.forEach(tqp.classes,function(cn){
var cnl=cn.length;
var _195=" ";
if(cn.charAt(cnl-1)=="*"){
_195="";
cn=cn.substr(0,cnl-1);
}
_191+="[contains(concat(' ',@class,' '), ' "+cn+_195+"')]";
});
_189(_182,tqp,function(_196){
return "[@"+_196+"]";
},function(_197){
_191+=_197;
});
}
return _191;
};
var _198={};
var _199=function(path){
if(_198[path]){
return _198[path];
}
var doc=d.doc;
var _19a=_18f(path);
var tf=function(_19b){
var ret=[];
var _19c;
try{
_19c=doc.evaluate(_19a,_19b,null,XPathResult.ANY_TYPE,null);
}
catch(e){
console.debug("failure in exprssion:",_19a,"under:",_19b);
console.debug(e);
}
var _19d=_19c.iterateNext();
while(_19d){
ret.push(_19d);
_19d=_19c.iterateNext();
}
return ret;
};
return _198[path]=tf;
};
var _19e={};
var _19f={};
var _1a0=function(_1a1,_1a2){
if(!_1a1){
return _1a2;
}
if(!_1a2){
return _1a1;
}
return function(){
return _1a1.apply(window,arguments)&&_1a2.apply(window,arguments);
};
};
var _1a3=function(root){
var ret=[];
var te,x=0,tret=root[_16f];
while(te=tret[x++]){
if(te.nodeType==1){
ret.push(te);
}
}
return ret;
};
var _1a4=function(root,_1a5){
var ret=[];
var te=root;
while(te=te.nextSibling){
if(te.nodeType==1){
ret.push(te);
if(_1a5){
break;
}
}
}
return ret;
};
var _1a6=function(_1a7,_1a8,_1a9,idx){
var nidx=idx+1;
var _1aa=(_1a8.length==nidx);
var tqp=_1a8[idx];
if(tqp.oper){
var ecn=(tqp.oper==">")?_1a3(_1a7):_1a4(_1a7,(tqp.oper=="+"));
if(!ecn||!ecn.length){
return;
}
nidx++;
_1aa=(_1a8.length==nidx);
var tf=_1ab(_1a8[idx+1]);
for(var x=0,ecnl=ecn.length,te;x<ecnl,te=ecn[x];x++){
if(tf(te)){
if(_1aa){
_1a9.push(te);
}else{
_1a6(te,_1a8,_1a9,nidx);
}
}
}
}
var _1ac=_1ad(tqp)(_1a7);
if(_1aa){
while(_1ac.length){
_1a9.push(_1ac.shift());
}
}else{
while(_1ac.length){
_1a6(_1ac.shift(),_1a8,_1a9,nidx);
}
}
};
var _1ae=function(_1af,_1b0){
var ret=[];
var x=_1af.length-1,te;
while(te=_1af[x--]){
_1a6(te,_1b0,ret,0);
}
return ret;
};
var _1ab=function(q){
if(_19e[q.query]){
return _19e[q.query];
}
var ff=null;
if(q.tag){
if(q.tag=="*"){
ff=_1a0(ff,function(elem){
return (elem.nodeType==1);
});
}else{
ff=_1a0(ff,function(elem){
return ((elem.nodeType==1)&&(q.tag==elem.tagName.toLowerCase()));
});
}
}
if(q.id){
ff=_1a0(ff,function(elem){
return ((elem.nodeType==1)&&(elem.id==q.id));
});
}
if(q.hasLoops){
ff=_1a0(ff,_1b1(q));
}
return _19e[q.query]=ff;
};
var _1b2=function(node){
var pn=node.parentNode;
var pnc=pn.childNodes;
var nidx=-1;
var _1b3=pn.firstChild;
if(!_1b3){
return nidx;
}
var ci=node["__cachedIndex"];
var cl=pn["__cachedLength"];
if(((typeof cl=="number")&&(cl!=pnc.length))||(typeof ci!="number")){
pn["__cachedLength"]=pnc.length;
var idx=1;
do{
if(_1b3===node){
nidx=idx;
}
if(_1b3.nodeType==1){
_1b3["__cachedIndex"]=idx;
idx++;
}
_1b3=_1b3.nextSibling;
}while(_1b3);
}else{
nidx=ci;
}
return nidx;
};
var _1b4=0;
var _1b5="";
var _1b6=function(elem,attr){
if(attr=="class"){
return elem.className||_1b5;
}
if(attr=="for"){
return elem.htmlFor||_1b5;
}
return elem.getAttribute(attr,2)||_1b5;
};
var _1b7={"*=":function(attr,_1b8){
return function(elem){
return (_1b6(elem,attr).indexOf(_1b8)>=0);
};
},"^=":function(attr,_1b9){
return function(elem){
return (_1b6(elem,attr).indexOf(_1b9)==0);
};
},"$=":function(attr,_1ba){
var tval=" "+_1ba;
return function(elem){
var ea=" "+_1b6(elem,attr);
return (ea.lastIndexOf(_1ba)==(ea.length-_1ba.length));
};
},"~=":function(attr,_1bb){
var tval=" "+_1bb+" ";
return function(elem){
var ea=" "+_1b6(elem,attr)+" ";
return (ea.indexOf(tval)>=0);
};
},"|=":function(attr,_1bc){
var _1bd=" "+_1bc+"-";
return function(elem){
var ea=" "+(elem.getAttribute(attr,2)||"");
return ((ea==_1bc)||(ea.indexOf(_1bd)==0));
};
},"=":function(attr,_1be){
return function(elem){
return (_1b6(elem,attr)==_1be);
};
}};
var _1bf={"first-child":function(name,_1c0){
return function(elem){
if(elem.nodeType!=1){
return false;
}
var fc=elem.previousSibling;
while(fc&&(fc.nodeType!=1)){
fc=fc.previousSibling;
}
return (!fc);
};
},"last-child":function(name,_1c1){
return function(elem){
if(elem.nodeType!=1){
return false;
}
var nc=elem.nextSibling;
while(nc&&(nc.nodeType!=1)){
nc=nc.nextSibling;
}
return (!nc);
};
},"empty":function(name,_1c2){
return function(elem){
var cn=elem.childNodes;
var cnl=elem.childNodes.length;
for(var x=cnl-1;x>=0;x--){
var nt=cn[x].nodeType;
if((nt==1)||(nt==3)){
return false;
}
}
return true;
};
},"contains":function(name,_1c3){
return function(elem){
return (elem.innerHTML.indexOf(_1c3)>=0);
};
},"not":function(name,_1c4){
var ntf=_1ab(_171(_1c4)[0]);
return function(elem){
return (!ntf(elem));
};
},"nth-child":function(name,_1c5){
var pi=parseInt;
if(_1c5=="odd"){
return function(elem){
return (((_1b2(elem))%2)==1);
};
}else{
if((_1c5=="2n")||(_1c5=="even")){
return function(elem){
return ((_1b2(elem)%2)==0);
};
}else{
if(_1c5.indexOf("0n+")==0){
var _1c6=pi(_1c5.substr(3));
return function(elem){
return (elem.parentNode[_16f][_1c6-1]===elem);
};
}else{
if((_1c5.indexOf("n+")>0)&&(_1c5.length>3)){
var _1c7=_1c5.split("n+",2);
var pred=pi(_1c7[0]);
var idx=pi(_1c7[1]);
return function(elem){
return ((_1b2(elem)%pred)==idx);
};
}else{
if(_1c5.indexOf("n")==-1){
var _1c6=pi(_1c5);
return function(elem){
return (_1b2(elem)==_1c6);
};
}
}
}
}
}
}};
var _1c8=(d.isIE)?function(cond){
var clc=cond.toLowerCase();
return function(elem){
return elem[cond]||elem[clc];
};
}:function(cond){
return function(elem){
return (elem&&elem.getAttribute&&elem.hasAttribute(cond));
};
};
var _1b1=function(_1c9){
var _1ca=(_19f[_1c9.query]||_19e[_1c9.query]);
if(_1ca){
return _1ca;
}
var ff=null;
if(_1c9.id){
if(_1c9.tag!="*"){
ff=_1a0(ff,function(elem){
return (elem.tagName.toLowerCase()==_1c9.tag);
});
}
}
d.forEach(_1c9.classes,function(_1cb,idx,arr){
var _1cc=_1cb.charAt(_1cb.length-1)=="*";
if(_1cc){
_1cb=_1cb.substr(0,_1cb.length-1);
}
var re=new RegExp("(?:^|\\s)"+_1cb+(_1cc?".*":"")+"(?:\\s|$)");
ff=_1a0(ff,function(elem){
return re.test(elem.className);
});
ff.count=idx;
});
d.forEach(_1c9.pseudos,function(_1cd){
if(_1bf[_1cd.name]){
ff=_1a0(ff,_1bf[_1cd.name](_1cd.name,_1cd.value));
}
});
_189(_1b7,_1c9,_1c8,function(_1ce){
ff=_1a0(ff,_1ce);
});
if(!ff){
ff=function(){
return true;
};
}
return _19f[_1c9.query]=ff;
};
var _1cf={};
var _1ad=function(_1d0,root){
var fHit=_1cf[_1d0.query];
if(fHit){
return fHit;
}
if(_1d0.id&&!_1d0.hasLoops&&!_1d0.tag){
return _1cf[_1d0.query]=function(root){
return [d.byId(_1d0.id)];
};
}
var _1d1=_1b1(_1d0);
var _1d2;
if(_1d0.tag&&_1d0.id&&!_1d0.hasLoops){
_1d2=function(root){
var te=d.byId(_1d0.id);
if(_1d1(te)){
return [te];
}
};
}else{
var tret;
if(!_1d0.hasLoops){
_1d2=function(root){
var ret=[];
var te,x=0,tret=root.getElementsByTagName(_1d0.tag);
while(te=tret[x++]){
ret.push(te);
}
return ret;
};
}else{
_1d2=function(root){
var ret=[];
var te,x=0,tret=root.getElementsByTagName(_1d0.tag);
while(te=tret[x++]){
if(_1d1(te)){
ret.push(te);
}
}
return ret;
};
}
}
return _1cf[_1d0.query]=_1d2;
};
var _1d3={};
var _1d4={"*":d.isIE?function(root){
return root.all;
}:function(root){
return root.getElementsByTagName("*");
},"~":_1a4,"+":function(root){
return _1a4(root,true);
},">":_1a3};
var _1d5=function(_1d6){
var _1d7=_171(d.trim(_1d6));
if(_1d7.length==1){
var tt=_1ad(_1d7[0]);
tt.nozip=true;
return tt;
}
var sqf=function(root){
var _1d8=_1d7.slice(0);
var _1d9;
if(_1d8[0].oper==">"){
_1d9=[root];
}else{
_1d9=_1ad(_1d8.shift())(root);
}
return _1ae(_1d9,_1d8);
};
return sqf;
};
var _1da=((document["evaluate"]&&!d.isSafari)?function(_1db){
var _1dc=_1db.split(" ");
if((document["evaluate"])&&(_1db.indexOf(":")==-1)&&(_1db.indexOf("+")==-1)){
if(((_1dc.length>2)&&(_1db.indexOf(">")==-1))||(_1dc.length>3)||(_1db.indexOf("[")>=0)||((1==_1dc.length)&&(0<=_1db.indexOf(".")))){
return _199(_1db);
}
}
return _1d5(_1db);
}:_1d5);
var _1dd=function(_1de){
var qcz=_1de.charAt(0);
if(d.doc["querySelectorAll"]&&((!d.isSafari)||(d.isSafari>3.1))&&(">+~".indexOf(qcz)==-1)){
return function(root){
var r=root.querySelectorAll(_1de);
r.nozip=true;
return r;
};
}
if(_1d4[_1de]){
return _1d4[_1de];
}
if(0>_1de.indexOf(",")){
return _1d4[_1de]=_1da(_1de);
}else{
var _1df=_1de.split(/\s*,\s*/);
var tf=function(root){
var _1e0=0;
var ret=[];
var tp;
while(tp=_1df[_1e0++]){
ret=ret.concat(_1da(tp,tp.indexOf(" "))(root));
}
return ret;
};
return _1d4[_1de]=tf;
}
};
var _1e1=0;
var _1e2=function(arr){
if(arr&&arr.nozip){
return d.NodeList._wrap(arr);
}
var ret=new d.NodeList();
if(!arr){
return ret;
}
if(arr[0]){
ret.push(arr[0]);
}
if(arr.length<2){
return ret;
}
_1e1++;
arr[0]["_zipIdx"]=_1e1;
for(var x=1,te;te=arr[x];x++){
if(arr[x]["_zipIdx"]!=_1e1){
ret.push(te);
}
te["_zipIdx"]=_1e1;
}
return ret;
};
d.query=function(_1e3,root){
if(_1e3.constructor==d.NodeList){
return _1e3;
}
if(!d.isString(_1e3)){
return new d.NodeList(_1e3);
}
if(d.isString(root)){
root=d.byId(root);
}
return _1e2(_1dd(_1e3)(root||d.doc));
};
d.query.pseudos=_1bf;
d._filterQueryResult=function(_1e4,_1e5){
var tnl=new d.NodeList();
var ff=(_1e5)?_1ab(_171(_1e5)[0]):function(){
return true;
};
for(var x=0,te;te=_1e4[x];x++){
if(ff(te)){
tnl.push(te);
}
}
return tnl;
};
})();
}
if(!dojo._hasResource["dojo._base.xhr"]){
dojo._hasResource["dojo._base.xhr"]=true;
dojo.provide("dojo._base.xhr");
(function(){
var _1e6=dojo;
function _1e7(obj,name,_1e8){
var val=obj[name];
if(_1e6.isString(val)){
obj[name]=[val,_1e8];
}else{
if(_1e6.isArray(val)){
val.push(_1e8);
}else{
obj[name]=_1e8;
}
}
};
dojo.formToObject=function(_1e9){
var ret={};
var iq="input:not([type=file]):not([type=submit]):not([type=image]):not([type=reset]):not([type=button]), select, textarea";
_1e6.query(iq,_1e9).filter(function(node){
return !node.disabled&&node.name;
}).forEach(function(item){
var _1ea=item.name;
var type=(item.type||"").toLowerCase();
if(type=="radio"||type=="checkbox"){
if(item.checked){
_1e7(ret,_1ea,item.value);
}
}else{
if(item.multiple){
ret[_1ea]=[];
_1e6.query("option",item).forEach(function(opt){
if(opt.selected){
_1e7(ret,_1ea,opt.value);
}
});
}else{
_1e7(ret,_1ea,item.value);
if(type=="image"){
ret[_1ea+".x"]=ret[_1ea+".y"]=ret[_1ea].x=ret[_1ea].y=0;
}
}
}
});
return ret;
};
dojo.objectToQuery=function(map){
var enc=encodeURIComponent;
var _1eb=[];
var _1ec={};
for(var name in map){
var _1ed=map[name];
if(_1ed!=_1ec[name]){
var _1ee=enc(name)+"=";
if(_1e6.isArray(_1ed)){
for(var i=0;i<_1ed.length;i++){
_1eb.push(_1ee+enc(_1ed[i]));
}
}else{
_1eb.push(_1ee+enc(_1ed));
}
}
}
return _1eb.join("&");
};
dojo.formToQuery=function(_1ef){
return _1e6.objectToQuery(_1e6.formToObject(_1ef));
};
dojo.formToJson=function(_1f0,_1f1){
return _1e6.toJson(_1e6.formToObject(_1f0),_1f1);
};
dojo.queryToObject=function(str){
var ret={};
var qp=str.split("&");
var dec=decodeURIComponent;
_1e6.forEach(qp,function(item){
if(item.length){
var _1f2=item.split("=");
var name=dec(_1f2.shift());
var val=dec(_1f2.join("="));
if(_1e6.isString(ret[name])){
ret[name]=[ret[name]];
}
if(_1e6.isArray(ret[name])){
ret[name].push(val);
}else{
ret[name]=val;
}
}
});
return ret;
};
dojo._blockAsync=false;
dojo._contentHandlers={"text":function(xhr){
return xhr.responseText;
},"json":function(xhr){
if(!dojo.config.usePlainJson){
console.warn("Consider using mimetype:text/json-comment-filtered"+" to avoid potential security issues with JSON endpoints"+" (use djConfig.usePlainJson=true to turn off this message)");
}
return (xhr.status==204)?undefined:_1e6.fromJson(xhr.responseText);
},"json-comment-filtered":function(xhr){
var _1f3=xhr.responseText;
var _1f4=_1f3.indexOf("/*");
var _1f5=_1f3.lastIndexOf("*/");
if(_1f4==-1||_1f5==-1){
throw new Error("JSON was not comment filtered");
}
return (xhr.status==204)?undefined:_1e6.fromJson(_1f3.substring(_1f4+2,_1f5));
},"javascript":function(xhr){
return _1e6.eval(xhr.responseText);
},"xml":function(xhr){
var _1f6=xhr.responseXML;
if(_1e6.isIE&&(!_1f6||window.location.protocol=="file:")){
_1e6.forEach(["MSXML2","Microsoft","MSXML","MSXML3"],function(_1f7){
try{
var dom=new ActiveXObject(_1f7+".XMLDOM");
dom.async=false;
dom.loadXML(xhr.responseText);
_1f6=dom;
}
catch(e){
}
});
}
return _1f6;
}};
dojo._contentHandlers["json-comment-optional"]=function(xhr){
var _1f8=_1e6._contentHandlers;
try{
return _1f8["json-comment-filtered"](xhr);
}
catch(e){
return _1f8["json"](xhr);
}
};
dojo._ioSetArgs=function(args,_1f9,_1fa,_1fb){
var _1fc={args:args,url:args.url};
var _1fd=null;
if(args.form){
var form=_1e6.byId(args.form);
var _1fe=form.getAttributeNode("action");
_1fc.url=_1fc.url||(_1fe?_1fe.value:null);
_1fd=_1e6.formToObject(form);
}
var _1ff=[{}];
if(_1fd){
_1ff.push(_1fd);
}
if(args.content){
_1ff.push(args.content);
}
if(args.preventCache){
_1ff.push({"dojo.preventCache":new Date().valueOf()});
}
_1fc.query=_1e6.objectToQuery(_1e6.mixin.apply(null,_1ff));
_1fc.handleAs=args.handleAs||"text";
var d=new _1e6.Deferred(_1f9);
d.addCallbacks(_1fa,function(_200){
return _1fb(_200,d);
});
var ld=args.load;
if(ld&&_1e6.isFunction(ld)){
d.addCallback(function(_201){
return ld.call(args,_201,_1fc);
});
}
var err=args.error;
if(err&&_1e6.isFunction(err)){
d.addErrback(function(_202){
return err.call(args,_202,_1fc);
});
}
var _203=args.handle;
if(_203&&_1e6.isFunction(_203)){
d.addBoth(function(_204){
return _203.call(args,_204,_1fc);
});
}
d.ioArgs=_1fc;
return d;
};
var _205=function(dfd){
dfd.canceled=true;
var xhr=dfd.ioArgs.xhr;
var _206=typeof xhr.abort;
if(_206=="function"||_206=="unknown"){
xhr.abort();
}
var err=new Error("xhr cancelled");
err.dojoType="cancel";
return err;
};
var _207=function(dfd){
return _1e6._contentHandlers[dfd.ioArgs.handleAs](dfd.ioArgs.xhr);
};
var _208=function(_209,dfd){
console.debug(_209);
return _209;
};
var _20a=function(args){
var dfd=_1e6._ioSetArgs(args,_205,_207,_208);
dfd.ioArgs.xhr=_1e6._xhrObj(dfd.ioArgs.args);
return dfd;
};
var _20b=null;
var _20c=[];
var _20d=function(){
var now=(new Date()).getTime();
if(!_1e6._blockAsync){
for(var i=0,tif;i<_20c.length&&(tif=_20c[i]);i++){
var dfd=tif.dfd;
try{
if(!dfd||dfd.canceled||!tif.validCheck(dfd)){
_20c.splice(i--,1);
}else{
if(tif.ioCheck(dfd)){
_20c.splice(i--,1);
tif.resHandle(dfd);
}else{
if(dfd.startTime){
if(dfd.startTime+(dfd.ioArgs.args.timeout||0)<now){
_20c.splice(i--,1);
var err=new Error("timeout exceeded");
err.dojoType="timeout";
dfd.errback(err);
dfd.cancel();
}
}
}
}
}
catch(e){
console.debug(e);
dfd.errback(new Error("_watchInFlightError!"));
}
}
}
if(!_20c.length){
clearInterval(_20b);
_20b=null;
return;
}
};
dojo._ioCancelAll=function(){
try{
_1e6.forEach(_20c,function(i){
i.dfd.cancel();
});
}
catch(e){
}
};
if(_1e6.isIE){
_1e6.addOnUnload(_1e6._ioCancelAll);
}
_1e6._ioWatch=function(dfd,_20e,_20f,_210){
if(dfd.ioArgs.args.timeout){
dfd.startTime=(new Date()).getTime();
}
_20c.push({dfd:dfd,validCheck:_20e,ioCheck:_20f,resHandle:_210});
if(!_20b){
_20b=setInterval(_20d,50);
}
_20d();
};
var _211="application/x-www-form-urlencoded";
var _212=function(dfd){
return dfd.ioArgs.xhr.readyState;
};
var _213=function(dfd){
return 4==dfd.ioArgs.xhr.readyState;
};
var _214=function(dfd){
var xhr=dfd.ioArgs.xhr;
if(_1e6._isDocumentOk(xhr)){
dfd.callback(dfd);
}else{
var err=new Error("Unable to load "+dfd.ioArgs.url+" status:"+xhr.status);
err.status=xhr.status;
err.responseText=xhr.responseText;
dfd.errback(err);
}
};
var _215=function(type,dfd){
var _216=dfd.ioArgs;
var args=_216.args;
var xhr=_216.xhr;
xhr.open(type,_216.url,args.sync!==true,args.user||undefined,args.password||undefined);
if(args.headers){
for(var hdr in args.headers){
if(hdr.toLowerCase()==="content-type"&&!args.contentType){
args.contentType=args.headers[hdr];
}else{
xhr.setRequestHeader(hdr,args.headers[hdr]);
}
}
}
xhr.setRequestHeader("Content-Type",args.contentType||_211);
if(!args.headers||!args.headers["X-Requested-With"]){
xhr.setRequestHeader("X-Requested-With","XMLHttpRequest");
}
try{
xhr.send(_216.query);
}
catch(e){
dfd.cancel();
}
_1e6._ioWatch(dfd,_212,_213,_214);
xhr=null;
return dfd;
};
dojo._ioAddQueryToUrl=function(_217){
if(_217.query.length){
_217.url+=(_217.url.indexOf("?")==-1?"?":"&")+_217.query;
_217.query=null;
}
};
dojo.xhr=function(_218,args,_219){
var dfd=_20a(args);
if(!_219){
_1e6._ioAddQueryToUrl(dfd.ioArgs);
}
return _215(_218,dfd);
};
dojo.xhrGet=function(args){
return _1e6.xhr("GET",args);
};
dojo.xhrPost=function(args){
return _1e6.xhr("POST",args,true);
};
dojo.rawXhrPost=function(args){
var dfd=_20a(args);
dfd.ioArgs.query=args.postData;
return _215("POST",dfd);
};
dojo.xhrPut=function(args){
return _1e6.xhr("PUT",args,true);
};
dojo.rawXhrPut=function(args){
var dfd=_20a(args);
var _21a=dfd.ioArgs;
if(args.putData){
_21a.query=args.putData;
args.putData=null;
}
return _215("PUT",dfd);
};
dojo.xhrDelete=function(args){
return _1e6.xhr("DELETE",args);
};
})();
}
if(!dojo._hasResource["dojo._base.fx"]){
dojo._hasResource["dojo._base.fx"]=true;
dojo.provide("dojo._base.fx");
(function(){
var d=dojo;
dojo._Line=function(_21b,end){
this.start=_21b;
this.end=end;
this.getValue=function(n){
return ((this.end-this.start)*n)+this.start;
};
};
d.declare("dojo._Animation",null,{constructor:function(args){
d.mixin(this,args);
if(d.isArray(this.curve)){
this.curve=new d._Line(this.curve[0],this.curve[1]);
}
},duration:350,repeat:0,rate:10,_percent:0,_startRepeatCount:0,_fire:function(evt,args){
try{
if(this[evt]){
this[evt].apply(this,args||[]);
}
}
catch(e){
console.error("exception in animation handler for:",evt);
console.error(e);
}
return this;
},play:function(_21c,_21d){
var _21e=this;
if(_21d){
_21e._stopTimer();
_21e._active=_21e._paused=false;
_21e._percent=0;
}else{
if(_21e._active&&!_21e._paused){
return _21e;
}
}
_21e._fire("beforeBegin");
var de=_21c||_21e.delay;
var _21f=dojo.hitch(_21e,"_play",_21d);
if(de>0){
setTimeout(_21f,de);
return _21e;
}
_21f();
return _21e;
},_play:function(_220){
var _221=this;
_221._startTime=new Date().valueOf();
if(_221._paused){
_221._startTime-=_221.duration*_221._percent;
}
_221._endTime=_221._startTime+_221.duration;
_221._active=true;
_221._paused=false;
var _222=_221.curve.getValue(_221._percent);
if(!_221._percent){
if(!_221._startRepeatCount){
_221._startRepeatCount=_221.repeat;
}
_221._fire("onBegin",[_222]);
}
_221._fire("onPlay",[_222]);
_221._cycle();
return _221;
},pause:function(){
this._stopTimer();
if(!this._active){
return this;
}
this._paused=true;
this._fire("onPause",[this.curve.getValue(this._percent)]);
return this;
},gotoPercent:function(_223,_224){
this._stopTimer();
this._active=this._paused=true;
this._percent=_223;
if(_224){
this.play();
}
return this;
},stop:function(_225){
if(!this._timer){
return this;
}
this._stopTimer();
if(_225){
this._percent=1;
}
this._fire("onStop",[this.curve.getValue(this._percent)]);
this._active=this._paused=false;
return this;
},status:function(){
if(this._active){
return this._paused?"paused":"playing";
}
return "stopped";
},_cycle:function(){
var _226=this;
if(_226._active){
var curr=new Date().valueOf();
var step=(curr-_226._startTime)/(_226._endTime-_226._startTime);
if(step>=1){
step=1;
}
_226._percent=step;
if(_226.easing){
step=_226.easing(step);
}
_226._fire("onAnimate",[_226.curve.getValue(step)]);
if(_226._percent<1){
_226._startTimer();
}else{
_226._active=false;
if(_226.repeat>0){
_226.repeat--;
_226.play(null,true);
}else{
if(_226.repeat==-1){
_226.play(null,true);
}else{
if(_226._startRepeatCount){
_226.repeat=_226._startRepeatCount;
_226._startRepeatCount=0;
}
}
}
_226._percent=0;
_226._fire("onEnd");
_226._stopTimer();
}
}
return _226;
}});
var ctr=0;
var _227=[];
var _228={run:function(){
}};
var _229=null;
dojo._Animation.prototype._startTimer=function(){
if(!this._timer){
this._timer=d.connect(_228,"run",this,"_cycle");
ctr++;
}
if(!_229){
_229=setInterval(d.hitch(_228,"run"),this.rate);
}
};
dojo._Animation.prototype._stopTimer=function(){
if(this._timer){
d.disconnect(this._timer);
this._timer=null;
ctr--;
}
if(ctr<=0){
clearInterval(_229);
_229=null;
ctr=0;
}
};
var _22a=(d.isIE)?function(node){
var ns=node.style;
if(!ns.zoom.length&&d.style(node,"zoom")=="normal"){
ns.zoom="1";
}
if(!ns.width.length&&d.style(node,"width")=="auto"){
ns.width="auto";
}
}:function(){
};
dojo._fade=function(args){
args.node=d.byId(args.node);
var _22b=d.mixin({properties:{}},args);
var _22c=(_22b.properties.opacity={});
_22c.start=!("start" in _22b)?function(){
return Number(d.style(_22b.node,"opacity"));
}:_22b.start;
_22c.end=_22b.end;
var anim=d.animateProperty(_22b);
d.connect(anim,"beforeBegin",d.partial(_22a,_22b.node));
return anim;
};
dojo.fadeIn=function(args){
return d._fade(d.mixin({end:1},args));
};
dojo.fadeOut=function(args){
return d._fade(d.mixin({end:0},args));
};
dojo._defaultEasing=function(n){
return 0.5+((Math.sin((n+1.5)*Math.PI))/2);
};
var _22d=function(_22e){
this._properties=_22e;
for(var p in _22e){
var prop=_22e[p];
if(prop.start instanceof d.Color){
prop.tempColor=new d.Color();
}
}
this.getValue=function(r){
var ret={};
for(var p in this._properties){
var prop=this._properties[p];
var _22f=prop.start;
if(_22f instanceof d.Color){
ret[p]=d.blendColors(_22f,prop.end,r,prop.tempColor).toCss();
}else{
if(!d.isArray(_22f)){
ret[p]=((prop.end-_22f)*r)+_22f+(p!="opacity"?prop.units||"px":"");
}
}
}
return ret;
};
};
dojo.animateProperty=function(args){
args.node=d.byId(args.node);
if(!args.easing){
args.easing=d._defaultEasing;
}
var anim=new d._Animation(args);
d.connect(anim,"beforeBegin",anim,function(){
var pm={};
for(var p in this.properties){
if(p=="width"||p=="height"){
this.node.display="block";
}
var prop=this.properties[p];
prop=pm[p]=d.mixin({},(d.isObject(prop)?prop:{end:prop}));
if(d.isFunction(prop.start)){
prop.start=prop.start();
}
if(d.isFunction(prop.end)){
prop.end=prop.end();
}
var _230=(p.toLowerCase().indexOf("color")>=0);
function _231(node,p){
var v=({height:node.offsetHeight,width:node.offsetWidth})[p];
if(v!==undefined){
return v;
}
v=d.style(node,p);
return (p=="opacity")?Number(v):(_230?v:parseFloat(v));
};
if(!("end" in prop)){
prop.end=_231(this.node,p);
}else{
if(!("start" in prop)){
prop.start=_231(this.node,p);
}
}
if(_230){
prop.start=new d.Color(prop.start);
prop.end=new d.Color(prop.end);
}else{
prop.start=(p=="opacity")?Number(prop.start):parseFloat(prop.start);
}
}
this.curve=new _22d(pm);
});
d.connect(anim,"onAnimate",anim,function(_232){
for(var s in _232){
d.style(this.node,s,_232[s]);
}
});
return anim;
};
dojo.anim=function(node,_233,_234,_235,_236,_237){
return d.animateProperty({node:node,duration:_234||d._Animation.prototype.duration,properties:_233,easing:_235,onEnd:_236}).play(_237||0);
};
})();
}
if(!dojo._hasResource["dojo._base.browser"]){
dojo._hasResource["dojo._base.browser"]=true;
dojo.provide("dojo._base.browser");
if(dojo.config.require){
dojo.forEach(dojo.config.require,"dojo['require'](item);");
}
}
if(!dojo._hasResource["dojo.date.stamp"]){
dojo._hasResource["dojo.date.stamp"]=true;
dojo.provide("dojo.date.stamp");
dojo.date.stamp.fromISOString=function(_238,_239){
if(!dojo.date.stamp._isoRegExp){
dojo.date.stamp._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/;
}
var _23a=dojo.date.stamp._isoRegExp.exec(_238);
var _23b=null;
if(_23a){
_23a.shift();
if(_23a[1]){
_23a[1]--;
}
if(_23a[6]){
_23a[6]*=1000;
}
if(_239){
_239=new Date(_239);
dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){
return _239["get"+prop]();
}).forEach(function(_23c,_23d){
if(_23a[_23d]===undefined){
_23a[_23d]=_23c;
}
});
}
_23b=new Date(_23a[0]||1970,_23a[1]||0,_23a[2]||1,_23a[3]||0,_23a[4]||0,_23a[5]||0,_23a[6]||0);
var _23e=0;
var _23f=_23a[7]&&_23a[7].charAt(0);
if(_23f!="Z"){
_23e=((_23a[8]||0)*60)+(Number(_23a[9])||0);
if(_23f!="-"){
_23e*=-1;
}
}
if(_23f){
_23e-=_23b.getTimezoneOffset();
}
if(_23e){
_23b.setTime(_23b.getTime()+_23e*60000);
}
}
return _23b;
};
dojo.date.stamp.toISOString=function(_240,_241){
var _242=function(n){
return (n<10)?"0"+n:n;
};
_241=_241||{};
var _243=[];
var _244=_241.zulu?"getUTC":"get";
var date="";
if(_241.selector!="time"){
var year=_240[_244+"FullYear"]();
date=["0000".substr((year+"").length)+year,_242(_240[_244+"Month"]()+1),_242(_240[_244+"Date"]())].join("-");
}
_243.push(date);
if(_241.selector!="date"){
var time=[_242(_240[_244+"Hours"]()),_242(_240[_244+"Minutes"]()),_242(_240[_244+"Seconds"]())].join(":");
var _245=_240[_244+"Milliseconds"]();
if(_241.milliseconds){
time+="."+(_245<100?"0":"")+_242(_245);
}
if(_241.zulu){
time+="Z";
}else{
if(_241.selector!="time"){
var _246=_240.getTimezoneOffset();
var _247=Math.abs(_246);
time+=(_246>0?"-":"+")+_242(Math.floor(_247/60))+":"+_242(_247%60);
}
}
_243.push(time);
}
return _243.join("T");
};
}
if(!dojo._hasResource["dojo.parser"]){
dojo._hasResource["dojo.parser"]=true;
dojo.provide("dojo.parser");
dojo.parser=new function(){
var d=dojo;
var _248=d._scopeName+"Type";
var qry="["+_248+"]";
function _249(_24a){
if(d.isString(_24a)){
return "string";
}
if(typeof _24a=="number"){
return "number";
}
if(typeof _24a=="boolean"){
return "boolean";
}
if(d.isFunction(_24a)){
return "function";
}
if(d.isArray(_24a)){
return "array";
}
if(_24a instanceof Date){
return "date";
}
if(_24a instanceof d._Url){
return "url";
}
return "object";
};
function _24b(_24c,type){
switch(type){
case "string":
return _24c;
case "number":
return _24c.length?Number(_24c):NaN;
case "boolean":
return typeof _24c=="boolean"?_24c:!(_24c.toLowerCase()=="false");
case "function":
if(d.isFunction(_24c)){
_24c=_24c.toString();
_24c=d.trim(_24c.substring(_24c.indexOf("{")+1,_24c.length-1));
}
try{
if(_24c.search(/[^\w\.]+/i)!=-1){
_24c=d.parser._nameAnonFunc(new Function(_24c),this);
}
return d.getObject(_24c,false);
}
catch(e){
return new Function();
}
case "array":
return _24c.split(/\s*,\s*/);
case "date":
switch(_24c){
case "":
return new Date("");
case "now":
return new Date();
default:
return d.date.stamp.fromISOString(_24c);
}
case "url":
return d.baseUrl+_24c;
default:
return d.fromJson(_24c);
}
};
var _24d={};
function _24e(_24f){
if(!_24d[_24f]){
var cls=d.getObject(_24f);
if(!d.isFunction(cls)){
throw new Error("Could not load class '"+_24f+"'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?");
}
var _250=cls.prototype;
var _251={};
for(var name in _250){
if(name.charAt(0)=="_"){
continue;
}
var _252=_250[name];
_251[name]=_249(_252);
}
_24d[_24f]={cls:cls,params:_251};
}
return _24d[_24f];
};
this._functionFromScript=function(_253){
var _254="";
var _255="";
var _256=_253.getAttribute("args");
if(_256){
d.forEach(_256.split(/\s*,\s*/),function(part,idx){
_254+="var "+part+" = arguments["+idx+"]; ";
});
}
var _257=_253.getAttribute("with");
if(_257&&_257.length){
d.forEach(_257.split(/\s*,\s*/),function(part){
_254+="with("+part+"){";
_255+="}";
});
}
return new Function(_254+_253.innerHTML+_255);
};
this.instantiate=function(_258){
var _259=[];
d.forEach(_258,function(node){
if(!node){
return;
}
var type=node.getAttribute(_248);
if((!type)||(!type.length)){
return;
}
var _25a=_24e(type);
var _25b=_25a.cls;
var ps=_25b._noScript||_25b.prototype._noScript;
var _25c={};
var _25d=node.attributes;
for(var name in _25a.params){
var item=_25d.getNamedItem(name);
if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){
continue;
}
var _25e=item.value;
switch(name){
case "class":
_25e=node.className;
break;
case "style":
_25e=node.style&&node.style.cssText;
}
var _25f=_25a.params[name];
_25c[name]=_24b(_25e,_25f);
}
if(!ps){
var _260=[],_261=[];
d.query("> script[type^='dojo/']",node).orphan().forEach(function(_262){
var _263=_262.getAttribute("event"),type=_262.getAttribute("type"),nf=d.parser._functionFromScript(_262);
if(_263){
if(type=="dojo/connect"){
_260.push({event:_263,func:nf});
}else{
_25c[_263]=nf;
}
}else{
_261.push(nf);
}
});
}
var _264=_25b["markupFactory"];
if(!_264&&_25b["prototype"]){
_264=_25b.prototype["markupFactory"];
}
var _265=_264?_264(_25c,node,_25b):new _25b(_25c,node);
_259.push(_265);
var _266=node.getAttribute("jsId");
if(_266){
d.setObject(_266,_265);
}
if(!ps){
d.forEach(_260,function(_267){
d.connect(_265,_267.event,null,_267.func);
});
d.forEach(_261,function(func){
func.call(_265);
});
}
});
d.forEach(_259,function(_268){
if(_268&&_268.startup&&!_268._started&&(!_268.getParent||!_268.getParent())){
_268.startup();
}
});
return _259;
};
this.parse=function(_269){
var list=d.query(qry,_269);
var _26a=this.instantiate(list);
return _26a;
};
}();
(function(){
var _26b=function(){
if(dojo.config["parseOnLoad"]==true){
dojo.parser.parse();
}
};
if(dojo.exists("dijit.wai.onload")&&(dijit.wai.onload===dojo._loaders[0])){
dojo._loaders.splice(1,0,_26b);
}else{
dojo._loaders.unshift(_26b);
}
})();
dojo.parser._anonCtr=0;
dojo.parser._anon={};
dojo.parser._nameAnonFunc=function(_26c,_26d){
var jpn="$joinpoint";
var nso=(_26d||dojo.parser._anon);
if(dojo.isIE){
var cn=_26c["__dojoNameCache"];
if(cn&&nso[cn]===_26c){
return _26c["__dojoNameCache"];
}
}
var ret="__"+dojo.parser._anonCtr++;
while(typeof nso[ret]!="undefined"){
ret="__"+dojo.parser._anonCtr++;
}
nso[ret]=_26c;
return ret;
};
}
if(!dojo._hasResource["dojo.DeferredList"]){
dojo._hasResource["dojo.DeferredList"]=true;
dojo.provide("dojo.DeferredList");
dojo.declare("dojo.DeferredList",dojo.Deferred,{constructor:function(list,_26e,_26f,_270,_271){
this.list=list;
this.resultList=new Array(this.list.length);
this.chain=[];
this.id=this._nextId();
this.fired=-1;
this.paused=0;
this.results=[null,null];
this.canceller=_271;
this.silentlyCancelled=false;
if(this.list.length===0&&!_26e){
this.callback(this.resultList);
}
this.finishedCount=0;
this.fireOnOneCallback=_26e;
this.fireOnOneErrback=_26f;
this.consumeErrors=_270;
dojo.forEach(this.list,function(d,_272){
d.addCallback(this,function(r){
this._cbDeferred(_272,true,r);
return r;
});
d.addErrback(this,function(r){
this._cbDeferred(_272,false,r);
return r;
});
},this);
},_cbDeferred:function(_273,_274,_275){
this.resultList[_273]=[_274,_275];
this.finishedCount+=1;
if(this.fired!==0){
if(_274&&this.fireOnOneCallback){
this.callback([_273,_275]);
}else{
if(!_274&&this.fireOnOneErrback){
this.errback(_275);
}else{
if(this.finishedCount==this.list.length){
this.callback(this.resultList);
}
}
}
}
if(!_274&&this.consumeErrors){
_275=null;
}
return _275;
},gatherResults:function(_276){
var d=new dojo.DeferredList(_276,false,true,false);
d.addCallback(function(_277){
var ret=[];
dojo.forEach(_277,function(_278){
ret.push(_278[1]);
});
return ret;
});
return d;
}});
}
if(!dojo._hasResource["dojo.regexp"]){
dojo._hasResource["dojo.regexp"]=true;
dojo.provide("dojo.regexp");
dojo.regexp.escapeString=function(str,_279){
return str.replace(/([\.$?*!=:|{}\(\)\[\]\\\/^])/g,function(ch){
if(_279&&_279.indexOf(ch)!=-1){
return ch;
}
return "\\"+ch;
});
};
dojo.regexp.buildGroupRE=function(arr,re,_27a){
if(!(arr instanceof Array)){
return re(arr);
}
var b=[];
for(var i=0;i<arr.length;i++){
b.push(re(arr[i]));
}
return dojo.regexp.group(b.join("|"),_27a);
};
dojo.regexp.group=function(_27b,_27c){
return "("+(_27c?"?:":"")+_27b+")";
};
}
if(!dojo._hasResource["dojo.cookie"]){
dojo._hasResource["dojo.cookie"]=true;
dojo.provide("dojo.cookie");
dojo.cookie=function(name,_27d,_27e){
var c=document.cookie;
if(arguments.length==1){
var _27f=c.match(new RegExp("(?:^|; )"+dojo.regexp.escapeString(name)+"=([^;]*)"));
return _27f?decodeURIComponent(_27f[1]):undefined;
}else{
_27e=_27e||{};
var exp=_27e.expires;
if(typeof exp=="number"){
var d=new Date();
d.setTime(d.getTime()+exp*24*60*60*1000);
exp=_27e.expires=d;
}
if(exp&&exp.toUTCString){
_27e.expires=exp.toUTCString();
}
_27d=encodeURIComponent(_27d);
var _280=name+"="+_27d;
for(propName in _27e){
_280+="; "+propName;
var _281=_27e[propName];
if(_281!==true){
_280+="="+_281;
}
}
document.cookie=_280;
}
};
dojo.cookie.isSupported=function(){
if(!("cookieEnabled" in navigator)){
this("__djCookieTest__","CookiesAllowed");
navigator.cookieEnabled=this("__djCookieTest__")=="CookiesAllowed";
if(navigator.cookieEnabled){
this("__djCookieTest__","",{expires:-1});
}
}
return navigator.cookieEnabled;
};
}
if(!dojo._hasResource["dojo.io.script"]){
dojo._hasResource["dojo.io.script"]=true;
dojo.provide("dojo.io.script");
dojo.io.script={get:function(args){
var dfd=this._makeScriptDeferred(args);
var _282=dfd.ioArgs;
dojo._ioAddQueryToUrl(_282);
this.attach(_282.id,_282.url,args.frameDoc);
dojo._ioWatch(dfd,this._validCheck,this._ioCheck,this._resHandle);
return dfd;
},attach:function(id,url,_283){
var doc=(_283||dojo.doc);
var _284=doc.createElement("script");
_284.type="text/javascript";
_284.src=url;
_284.id=id;
doc.getElementsByTagName("head")[0].appendChild(_284);
},remove:function(id){
dojo._destroyElement(dojo.byId(id));
if(this["jsonp_"+id]){
delete this["jsonp_"+id];
}
},_makeScriptDeferred:function(args){
var dfd=dojo._ioSetArgs(args,this._deferredCancel,this._deferredOk,this._deferredError);
var _285=dfd.ioArgs;
_285.id=dojo._scopeName+"IoScript"+(this._counter++);
_285.canDelete=false;
if(args.callbackParamName){
_285.query=_285.query||"";
if(_285.query.length>0){
_285.query+="&";
}
_285.query+=args.callbackParamName+"="+(args.frameDoc?"parent.":"")+"dojo.io.script.jsonp_"+_285.id+"._jsonpCallback";
_285.canDelete=true;
dfd._jsonpCallback=this._jsonpCallback;
this["jsonp_"+_285.id]=dfd;
}
return dfd;
},_deferredCancel:function(dfd){
dfd.canceled=true;
if(dfd.ioArgs.canDelete){
dojo.io.script._deadScripts.push(dfd.ioArgs.id);
}
},_deferredOk:function(dfd){
if(dfd.ioArgs.canDelete){
dojo.io.script._deadScripts.push(dfd.ioArgs.id);
}
if(dfd.ioArgs.json){
return dfd.ioArgs.json;
}else{
return dfd.ioArgs;
}
},_deferredError:function(_286,dfd){
if(dfd.ioArgs.canDelete){
if(_286.dojoType=="timeout"){
dojo.io.script.remove(dfd.ioArgs.id);
}else{
dojo.io.script._deadScripts.push(dfd.ioArgs.id);
}
}
console.debug("dojo.io.script error",_286);
return _286;
},_deadScripts:[],_counter:1,_validCheck:function(dfd){
var _287=dojo.io.script;
var _288=_287._deadScripts;
if(_288&&_288.length>0){
for(var i=0;i<_288.length;i++){
_287.remove(_288[i]);
}
dojo.io.script._deadScripts=[];
}
return true;
},_ioCheck:function(dfd){
if(dfd.ioArgs.json){
return true;
}
var _289=dfd.ioArgs.args.checkString;
if(_289&&eval("typeof("+_289+") != 'undefined'")){
return true;
}
return false;
},_resHandle:function(dfd){
if(dojo.io.script._ioCheck(dfd)){
dfd.callback(dfd);
}else{
dfd.errback(new Error("inconceivable dojo.io.script._resHandle error"));
}
},_jsonpCallback:function(json){
this.ioArgs.json=json;
}};
}
if(!dojo._hasResource["dojo.data.util.filter"]){
dojo._hasResource["dojo.data.util.filter"]=true;
dojo.provide("dojo.data.util.filter");
dojo.data.util.filter.patternToRegExp=function(_28a,_28b){
var rxp="^";
var c=null;
for(var i=0;i<_28a.length;i++){
c=_28a.charAt(i);
switch(c){
case "\\":
rxp+=c;
i++;
rxp+=_28a.charAt(i);
break;
case "*":
rxp+=".*";
break;
case "?":
rxp+=".";
break;
case "$":
case "^":
case "/":
case "+":
case ".":
case "|":
case "(":
case ")":
case "{":
case "}":
case "[":
case "]":
rxp+="\\";
default:
rxp+=c;
}
}
rxp+="$";
if(_28b){
return new RegExp(rxp,"i");
}else{
return new RegExp(rxp);
}
};
}
if(!dojo._hasResource["dojo.data.util.sorter"]){
dojo._hasResource["dojo.data.util.sorter"]=true;
dojo.provide("dojo.data.util.sorter");
dojo.data.util.sorter.basicComparator=function(a,b){
var ret=0;
if(a>b||typeof a==="undefined"||a===null){
ret=1;
}else{
if(a<b||typeof b==="undefined"||b===null){
ret=-1;
}
}
return ret;
};
dojo.data.util.sorter.createSortFunction=function(_28c,_28d){
var _28e=[];
function _28f(attr,dir){
return function(_290,_291){
var a=_28d.getValue(_290,attr);
var b=_28d.getValue(_291,attr);
var _292=null;
if(_28d.comparatorMap){
if(typeof attr!=="string"){
attr=_28d.getIdentity(attr);
}
_292=_28d.comparatorMap[attr]||dojo.data.util.sorter.basicComparator;
}
_292=_292||dojo.data.util.sorter.basicComparator;
return dir*_292(a,b);
};
};
for(var i=0;i<_28c.length;i++){
sortAttribute=_28c[i];
if(sortAttribute.attribute){
var _293=(sortAttribute.descending)?-1:1;
_28e.push(_28f(sortAttribute.attribute,_293));
}
}
return function(rowA,rowB){
var i=0;
while(i<_28e.length){
var ret=_28e[i++](rowA,rowB);
if(ret!==0){
return ret;
}
}
return 0;
};
};
}
if(!dojo._hasResource["dojo.data.util.simpleFetch"]){
dojo._hasResource["dojo.data.util.simpleFetch"]=true;
dojo.provide("dojo.data.util.simpleFetch");
dojo.data.util.simpleFetch.fetch=function(_294){
_294=_294||{};
if(!_294.store){
_294.store=this;
}
var self=this;
var _295=function(_296,_297){
if(_297.onError){
var _298=_297.scope||dojo.global;
_297.onError.call(_298,_296,_297);
}
};
var _299=function(_29a,_29b){
var _29c=_29b.abort||null;
var _29d=false;
var _29e=_29b.start?_29b.start:0;
var _29f=_29b.count?(_29e+_29b.count):_29a.length;
_29b.abort=function(){
_29d=true;
if(_29c){
_29c.call(_29b);
}
};
var _2a0=_29b.scope||dojo.global;
if(!_29b.store){
_29b.store=self;
}
if(_29b.onBegin){
_29b.onBegin.call(_2a0,_29a.length,_29b);
}
if(_29b.sort){
_29a.sort(dojo.data.util.sorter.createSortFunction(_29b.sort,self));
}
if(_29b.onItem){
for(var i=_29e;(i<_29a.length)&&(i<_29f);++i){
var item=_29a[i];
if(!_29d){
_29b.onItem.call(_2a0,item,_29b);
}
}
}
if(_29b.onComplete&&!_29d){
var _2a1=null;
if(!_29b.onItem){
_2a1=_29a.slice(_29e,_29f);
}
_29b.onComplete.call(_2a0,_2a1,_29b);
}
};
this._fetchItems(_294,_299,_295);
return _294;
};
}
if(!dojo._hasResource["dojo.data.ItemFileReadStore"]){
dojo._hasResource["dojo.data.ItemFileReadStore"]=true;
dojo.provide("dojo.data.ItemFileReadStore");
dojo.declare("dojo.data.ItemFileReadStore",null,{constructor:function(_2a2){
this._arrayOfAllItems=[];
this._arrayOfTopLevelItems=[];
this._loadFinished=false;
this._jsonFileUrl=_2a2.url;
this._jsonData=_2a2.data;
this._datatypeMap=_2a2.typeMap||{};
if(!this._datatypeMap["Date"]){
this._datatypeMap["Date"]={type:Date,deserialize:function(_2a3){
return dojo.date.stamp.fromISOString(_2a3);
}};
}
this._features={"dojo.data.api.Read":true,"dojo.data.api.Identity":true};
this._itemsByIdentity=null;
this._storeRefPropName="_S";
this._itemNumPropName="_0";
this._rootItemPropName="_RI";
this._reverseRefMap="_RRM";
this._loadInProgress=false;
this._queuedFetches=[];
},url:"",_assertIsItem:function(item){
if(!this.isItem(item)){
throw new Error("dojo.data.ItemFileReadStore: Invalid item argument.");
}
},_assertIsAttribute:function(_2a4){
if(typeof _2a4!=="string"){
throw new Error("dojo.data.ItemFileReadStore: Invalid attribute argument.");
}
},getValue:function(item,_2a5,_2a6){
var _2a7=this.getValues(item,_2a5);
return (_2a7.length>0)?_2a7[0]:_2a6;
},getValues:function(item,_2a8){
this._assertIsItem(item);
this._assertIsAttribute(_2a8);
return item[_2a8]||[];
},getAttributes:function(item){
this._assertIsItem(item);
var _2a9=[];
for(var key in item){
if((key!==this._storeRefPropName)&&(key!==this._itemNumPropName)&&(key!==this._rootItemPropName)&&(key!==this._reverseRefMap)){
_2a9.push(key);
}
}
return _2a9;
},hasAttribute:function(item,_2aa){
return this.getValues(item,_2aa).length>0;
},containsValue:function(item,_2ab,_2ac){
var _2ad=undefined;
if(typeof _2ac==="string"){
_2ad=dojo.data.util.filter.patternToRegExp(_2ac,false);
}
return this._containsValue(item,_2ab,_2ac,_2ad);
},_containsValue:function(item,_2ae,_2af,_2b0){
return dojo.some(this.getValues(item,_2ae),function(_2b1){
if(_2b1!==null&&!dojo.isObject(_2b1)&&_2b0){
if(_2b1.toString().match(_2b0)){
return true;
}
}else{
if(_2af===_2b1){
return true;
}
}
});
},isItem:function(_2b2){
if(_2b2&&_2b2[this._storeRefPropName]===this){
if(this._arrayOfAllItems[_2b2[this._itemNumPropName]]===_2b2){
return true;
}
}
return false;
},isItemLoaded:function(_2b3){
return this.isItem(_2b3);
},loadItem:function(_2b4){
this._assertIsItem(_2b4.item);
},getFeatures:function(){
return this._features;
},getLabel:function(item){
if(this._labelAttr&&this.isItem(item)){
return this.getValue(item,this._labelAttr);
}
return undefined;
},getLabelAttributes:function(item){
if(this._labelAttr){
return [this._labelAttr];
}
return null;
},_fetchItems:function(_2b5,_2b6,_2b7){
var self=this;
var _2b8=function(_2b9,_2ba){
var _2bb=[];
if(_2b9.query){
var _2bc=_2b9.queryOptions?_2b9.queryOptions.ignoreCase:false;
var _2bd={};
for(var key in _2b9.query){
var _2be=_2b9.query[key];
if(typeof _2be==="string"){
_2bd[key]=dojo.data.util.filter.patternToRegExp(_2be,_2bc);
}
}
for(var i=0;i<_2ba.length;++i){
var _2bf=true;
var _2c0=_2ba[i];
if(_2c0===null){
_2bf=false;
}else{
for(var key in _2b9.query){
var _2be=_2b9.query[key];
if(!self._containsValue(_2c0,key,_2be,_2bd[key])){
_2bf=false;
}
}
}
if(_2bf){
_2bb.push(_2c0);
}
}
_2b6(_2bb,_2b9);
}else{
for(var i=0;i<_2ba.length;++i){
var item=_2ba[i];
if(item!==null){
_2bb.push(item);
}
}
_2b6(_2bb,_2b9);
}
};
if(this._loadFinished){
_2b8(_2b5,this._getItemsArray(_2b5.queryOptions));
}else{
if(this._jsonFileUrl){
if(this._loadInProgress){
this._queuedFetches.push({args:_2b5,filter:_2b8});
}else{
this._loadInProgress=true;
var _2c1={url:self._jsonFileUrl,handleAs:"json-comment-optional"};
var _2c2=dojo.xhrGet(_2c1);
_2c2.addCallback(function(data){
try{
self._getItemsFromLoadedData(data);
self._loadFinished=true;
self._loadInProgress=false;
_2b8(_2b5,self._getItemsArray(_2b5.queryOptions));
self._handleQueuedFetches();
}
catch(e){
self._loadFinished=true;
self._loadInProgress=false;
_2b7(e,_2b5);
}
});
_2c2.addErrback(function(_2c3){
self._loadInProgress=false;
_2b7(_2c3,_2b5);
});
}
}else{
if(this._jsonData){
try{
this._loadFinished=true;
this._getItemsFromLoadedData(this._jsonData);
this._jsonData=null;
_2b8(_2b5,this._getItemsArray(_2b5.queryOptions));
}
catch(e){
_2b7(e,_2b5);
}
}else{
_2b7(new Error("dojo.data.ItemFileReadStore: No JSON source data was provided as either URL or a nested Javascript object."),_2b5);
}
}
}
},_handleQueuedFetches:function(){
if(this._queuedFetches.length>0){
for(var i=0;i<this._queuedFetches.length;i++){
var _2c4=this._queuedFetches[i];
var _2c5=_2c4.args;
var _2c6=_2c4.filter;
if(_2c6){
_2c6(_2c5,this._getItemsArray(_2c5.queryOptions));
}else{
this.fetchItemByIdentity(_2c5);
}
}
this._queuedFetches=[];
}
},_getItemsArray:function(_2c7){
if(_2c7&&_2c7.deep){
return this._arrayOfAllItems;
}
return this._arrayOfTopLevelItems;
},close:function(_2c8){
},_getItemsFromLoadedData:function(_2c9){
function _2ca(_2cb){
var _2cc=((_2cb!=null)&&(typeof _2cb=="object")&&(!dojo.isArray(_2cb))&&(!dojo.isFunction(_2cb))&&(_2cb.constructor==Object)&&(typeof _2cb._reference=="undefined")&&(typeof _2cb._type=="undefined")&&(typeof _2cb._value=="undefined"));
return _2cc;
};
var self=this;
function _2cd(_2ce){
self._arrayOfAllItems.push(_2ce);
for(var _2cf in _2ce){
var _2d0=_2ce[_2cf];
if(_2d0){
if(dojo.isArray(_2d0)){
var _2d1=_2d0;
for(var k=0;k<_2d1.length;++k){
var _2d2=_2d1[k];
if(_2ca(_2d2)){
_2cd(_2d2);
}
}
}else{
if(_2ca(_2d0)){
_2cd(_2d0);
}
}
}
}
};
this._labelAttr=_2c9.label;
var i;
var item;
this._arrayOfAllItems=[];
this._arrayOfTopLevelItems=_2c9.items;
for(i=0;i<this._arrayOfTopLevelItems.length;++i){
item=this._arrayOfTopLevelItems[i];
_2cd(item);
item[this._rootItemPropName]=true;
}
var _2d3={};
var key;
for(i=0;i<this._arrayOfAllItems.length;++i){
item=this._arrayOfAllItems[i];
for(key in item){
if(key!==this._rootItemPropName){
var _2d4=item[key];
if(_2d4!==null){
if(!dojo.isArray(_2d4)){
item[key]=[_2d4];
}
}else{
item[key]=[null];
}
}
_2d3[key]=key;
}
}
while(_2d3[this._storeRefPropName]){
this._storeRefPropName+="_";
}
while(_2d3[this._itemNumPropName]){
this._itemNumPropName+="_";
}
while(_2d3[this._reverseRefMap]){
this._reverseRefMap+="_";
}
var _2d5;
var _2d6=_2c9.identifier;
if(_2d6){
this._itemsByIdentity={};
this._features["dojo.data.api.Identity"]=_2d6;
for(i=0;i<this._arrayOfAllItems.length;++i){
item=this._arrayOfAllItems[i];
_2d5=item[_2d6];
var _2d7=_2d5[0];
if(!this._itemsByIdentity[_2d7]){
this._itemsByIdentity[_2d7]=item;
}else{
if(this._jsonFileUrl){
throw new Error("dojo.data.ItemFileReadStore:  The json data as specified by: ["+this._jsonFileUrl+"] is malformed.  Items within the list have identifier: ["+_2d6+"].  Value collided: ["+_2d7+"]");
}else{
if(this._jsonData){
throw new Error("dojo.data.ItemFileReadStore:  The json data provided by the creation arguments is malformed.  Items within the list have identifier: ["+_2d6+"].  Value collided: ["+_2d7+"]");
}
}
}
}
}else{
this._features["dojo.data.api.Identity"]=Number;
}
for(i=0;i<this._arrayOfAllItems.length;++i){
item=this._arrayOfAllItems[i];
item[this._storeRefPropName]=this;
item[this._itemNumPropName]=i;
}
for(i=0;i<this._arrayOfAllItems.length;++i){
item=this._arrayOfAllItems[i];
for(key in item){
_2d5=item[key];
for(var j=0;j<_2d5.length;++j){
_2d4=_2d5[j];
if(_2d4!==null&&typeof _2d4=="object"){
if(_2d4._type&&_2d4._value){
var type=_2d4._type;
var _2d8=this._datatypeMap[type];
if(!_2d8){
throw new Error("dojo.data.ItemFileReadStore: in the typeMap constructor arg, no object class was specified for the datatype '"+type+"'");
}else{
if(dojo.isFunction(_2d8)){
_2d5[j]=new _2d8(_2d4._value);
}else{
if(dojo.isFunction(_2d8.deserialize)){
_2d5[j]=_2d8.deserialize(_2d4._value);
}else{
throw new Error("dojo.data.ItemFileReadStore: Value provided in typeMap was neither a constructor, nor a an object with a deserialize function");
}
}
}
}
if(_2d4._reference){
var _2d9=_2d4._reference;
if(!dojo.isObject(_2d9)){
_2d5[j]=this._itemsByIdentity[_2d9];
}else{
for(var k=0;k<this._arrayOfAllItems.length;++k){
var _2da=this._arrayOfAllItems[k];
var _2db=true;
for(var _2dc in _2d9){
if(_2da[_2dc]!=_2d9[_2dc]){
_2db=false;
}
}
if(_2db){
_2d5[j]=_2da;
}
}
}
if(this.referenceIntegrity){
var _2dd=_2d5[j];
if(this.isItem(_2dd)){
this._addReferenceToMap(_2dd,item,key);
}
}
}else{
if(this.isItem(_2d4)){
if(this.referenceIntegrity){
this._addReferenceToMap(_2d4,item,key);
}
}
}
}
}
}
}
},_addReferenceToMap:function(_2de,_2df,_2e0){
},getIdentity:function(item){
var _2e1=this._features["dojo.data.api.Identity"];
if(_2e1===Number){
return item[this._itemNumPropName];
}else{
var _2e2=item[_2e1];
if(_2e2){
return _2e2[0];
}
}
return null;
},fetchItemByIdentity:function(_2e3){
if(!this._loadFinished){
var self=this;
if(this._jsonFileUrl){
if(this._loadInProgress){
this._queuedFetches.push({args:_2e3});
}else{
this._loadInProgress=true;
var _2e4={url:self._jsonFileUrl,handleAs:"json-comment-optional"};
var _2e5=dojo.xhrGet(_2e4);
_2e5.addCallback(function(data){
var _2e6=_2e3.scope?_2e3.scope:dojo.global;
try{
self._getItemsFromLoadedData(data);
self._loadFinished=true;
self._loadInProgress=false;
var item=self._getItemByIdentity(_2e3.identity);
if(_2e3.onItem){
_2e3.onItem.call(_2e6,item);
}
self._handleQueuedFetches();
}
catch(error){
self._loadInProgress=false;
if(_2e3.onError){
_2e3.onError.call(_2e6,error);
}
}
});
_2e5.addErrback(function(_2e7){
self._loadInProgress=false;
if(_2e3.onError){
var _2e8=_2e3.scope?_2e3.scope:dojo.global;
_2e3.onError.call(_2e8,_2e7);
}
});
}
}else{
if(this._jsonData){
self._getItemsFromLoadedData(self._jsonData);
self._jsonData=null;
self._loadFinished=true;
var item=self._getItemByIdentity(_2e3.identity);
if(_2e3.onItem){
var _2e9=_2e3.scope?_2e3.scope:dojo.global;
_2e3.onItem.call(_2e9,item);
}
}
}
}else{
var item=this._getItemByIdentity(_2e3.identity);
if(_2e3.onItem){
var _2e9=_2e3.scope?_2e3.scope:dojo.global;
_2e3.onItem.call(_2e9,item);
}
}
},_getItemByIdentity:function(_2ea){
var item=null;
if(this._itemsByIdentity){
item=this._itemsByIdentity[_2ea];
}else{
item=this._arrayOfAllItems[_2ea];
}
if(item===undefined){
item=null;
}
return item;
},getIdentityAttributes:function(item){
var _2eb=this._features["dojo.data.api.Identity"];
if(_2eb===Number){
return null;
}else{
return [_2eb];
}
},_forceLoad:function(){
var self=this;
if(this._jsonFileUrl){
var _2ec={url:self._jsonFileUrl,handleAs:"json-comment-optional",sync:true};
var _2ed=dojo.xhrGet(_2ec);
_2ed.addCallback(function(data){
try{
if(self._loadInProgress!==true&&!self._loadFinished){
self._getItemsFromLoadedData(data);
self._loadFinished=true;
}
}
catch(e){
console.log(e);
throw e;
}
});
_2ed.addErrback(function(_2ee){
throw _2ee;
});
}else{
if(this._jsonData){
self._getItemsFromLoadedData(self._jsonData);
self._jsonData=null;
self._loadFinished=true;
}
}
}});
dojo.extend(dojo.data.ItemFileReadStore,dojo.data.util.simpleFetch);
}
if(!dojo._hasResource["dojo.data.ItemFileWriteStore"]){
dojo._hasResource["dojo.data.ItemFileWriteStore"]=true;
dojo.provide("dojo.data.ItemFileWriteStore");
dojo.declare("dojo.data.ItemFileWriteStore",dojo.data.ItemFileReadStore,{constructor:function(_2ef){
this._features["dojo.data.api.Write"]=true;
this._features["dojo.data.api.Notification"]=true;
this._pending={_newItems:{},_modifiedItems:{},_deletedItems:{}};
if(!this._datatypeMap["Date"].serialize){
this._datatypeMap["Date"].serialize=function(obj){
return dojo.date.stamp.toISOString(obj,{zulu:true});
};
}
if(_2ef&&(_2ef.referenceIntegrity===false)){
this.referenceIntegrity=false;
}
if(_2ef&&(_2ef.sort==true)){
this.sort=true;
}
this._saveInProgress=false;
},referenceIntegrity:true,sort:false,_assert:function(_2f0){
if(!_2f0){
throw new Error("assertion failed in ItemFileWriteStore");
}
},_getIdentifierAttribute:function(){
var _2f1=this.getFeatures()["dojo.data.api.Identity"];
return _2f1;
},newItem:function(_2f2,_2f3){
this._assert(!this._saveInProgress);
if(!this._loadFinished){
this._forceLoad();
}
if(typeof _2f2!="object"&&typeof _2f2!="undefined"){
throw new Error("newItem() was passed something other than an object");
}
var _2f4=null;
var _2f5=this._getIdentifierAttribute();
if(_2f5===Number){
_2f4=this._arrayOfAllItems.length;
}else{
_2f4=_2f2[_2f5];
if(typeof _2f4==="undefined"){
throw new Error("newItem() was not passed an identity for the new item");
}
if(dojo.isArray(_2f4)){
throw new Error("newItem() was not passed an single-valued identity");
}
}
if(this._itemsByIdentity){
this._assert(typeof this._itemsByIdentity[_2f4]==="undefined");
}
this._assert(typeof this._pending._newItems[_2f4]==="undefined");
this._assert(typeof this._pending._deletedItems[_2f4]==="undefined");
var _2f6={};
_2f6[this._storeRefPropName]=this;
_2f6[this._itemNumPropName]=this._arrayOfAllItems.length;
if(this._itemsByIdentity){
this._itemsByIdentity[_2f4]=_2f6;
_2f6[_2f5]=[_2f4];
}
this._arrayOfAllItems.push(_2f6);
var _2f7=null;
if(_2f3&&_2f3.parent&&_2f3.attribute){
_2f7={item:_2f3.parent,attribute:_2f3.attribute,oldValue:undefined};
var _2f8=this.getValues(_2f3.parent,_2f3.attribute);
if(_2f8&&_2f8.length>0){
var _2f9=_2f8.slice(0,_2f8.length);
if(_2f8.length===1){
_2f7.oldValue=_2f8[0];
}else{
_2f7.oldValue=_2f8.slice(0,_2f8.length);
}
if(this._labelAttr&&this.sort==true){
var pos=_2f9.length;
for(var i=0,o;o=_2f9[i];i++){
if(_2f2[this._labelAttr].toLowerCase()<this.getValue(o,this._labelAttr).toLowerCase()){
pos=i;
break;
}
}
if(pos<_2f9.length){
var _2fa=_2f9.slice(0,pos);
var _2fb=_2f9.slice(pos);
_2fa.push(_2f6);
_2f9=_2fa.concat(_2fb);
}else{
_2f9.push(_2f6);
}
}else{
_2f9.push(_2f6);
}
this._setValueOrValues(_2f3.parent,_2f3.attribute,_2f9,false);
_2f7.newValue=this.getValues(_2f3.parent,_2f3.attribute);
}else{
this._setValueOrValues(_2f3.parent,_2f3.attribute,_2f6,false);
_2f7.newValue=_2f6;
}
}else{
_2f6[this._rootItemPropName]=true;
this._arrayOfTopLevelItems.push(_2f6);
}
this._pending._newItems[_2f4]=_2f6;
for(var key in _2f2){
if(key===this._storeRefPropName||key===this._itemNumPropName){
throw new Error("encountered bug in ItemFileWriteStore.newItem");
}
var _2fc=_2f2[key];
if(!dojo.isArray(_2fc)){
_2fc=[_2fc];
}
_2f6[key]=_2fc;
if(this.referenceIntegrity){
for(var i=0;i<_2fc.length;i++){
var val=_2fc[i];
if(this.isItem(val)){
this._addReferenceToMap(val,_2f6,key);
}
}
}
}
this.onNew(_2f6,_2f7);
return _2f6;
},_removeArrayElement:function(_2fd,_2fe){
var _2ff=dojo.indexOf(_2fd,_2fe);
if(_2ff!=-1){
_2fd.splice(_2ff,1);
return true;
}
return false;
},deleteItem:function(item){
this._assert(!this._saveInProgress);
this._assertIsItem(item);
var _300=item[this._itemNumPropName];
var _301=this.getIdentity(item);
if(this.referenceIntegrity){
var _302=this.getAttributes(item);
if(item[this._reverseRefMap]){
item["backup_"+this._reverseRefMap]=dojo.clone(item[this._reverseRefMap]);
}
dojo.forEach(_302,function(_303){
dojo.forEach(this.getValues(item,_303),function(_304){
if(this.isItem(_304)){
if(!item["backupRefs_"+this._reverseRefMap]){
item["backupRefs_"+this._reverseRefMap]=[];
}
item["backupRefs_"+this._reverseRefMap].push({id:this.getIdentity(_304),attr:_303});
this._removeReferenceFromMap(_304,item,_303);
}
},this);
},this);
var _305=item[this._reverseRefMap];
if(_305){
for(var _306 in _305){
var _307=null;
if(this._itemsByIdentity){
_307=this._itemsByIdentity[_306];
}else{
_307=this._arrayOfAllItems[_306];
}
if(_307){
for(var _308 in _305[_306]){
var _309=this.getValues(_307,_308)||[];
var _30a=dojo.filter(_309,function(_30b){
return !(this.isItem(_30b)&&this.getIdentity(_30b)==_301);
},this);
this._removeReferenceFromMap(item,_307,_308);
if(_30a.length<_309.length){
this.setValues(_307,_308,_30a);
}
}
}
}
}
}
this._arrayOfAllItems[_300]=null;
item[this._storeRefPropName]=null;
if(this._itemsByIdentity){
delete this._itemsByIdentity[_301];
}
this._pending._deletedItems[_301]=item;
if(item[this._rootItemPropName]){
this._removeArrayElement(this._arrayOfTopLevelItems,item);
}
this.onDelete(item);
return true;
},setValue:function(item,_30c,_30d){
return this._setValueOrValues(item,_30c,_30d,true);
},setValues:function(item,_30e,_30f){
return this._setValueOrValues(item,_30e,_30f,true);
},unsetAttribute:function(item,_310){
return this._setValueOrValues(item,_310,[],true);
},_setValueOrValues:function(item,_311,_312,_313){
this._assert(!this._saveInProgress);
this._assertIsItem(item);
this._assert(dojo.isString(_311));
this._assert(typeof _312!=="undefined");
var _314=this._getIdentifierAttribute();
if(_311==_314){
throw new Error("ItemFileWriteStore does not have support for changing the value of an item's identifier.");
}
var _315=this._getValueOrValues(item,_311);
var _316=this.getIdentity(item);
if(!this._pending._modifiedItems[_316]){
var _317={};
for(var key in item){
if((key===this._storeRefPropName)||(key===this._itemNumPropName)||(key===this._rootItemPropName)){
_317[key]=item[key];
}else{
if(key===this._reverseRefMap){
_317[key]=dojo.clone(item[key]);
}else{
_317[key]=item[key].slice(0,item[key].length);
}
}
}
this._pending._modifiedItems[_316]=_317;
}
var _318=false;
if(dojo.isArray(_312)&&_312.length===0){
_318=delete item[_311];
_312=undefined;
if(this.referenceIntegrity&&_315){
var _319=_315;
if(!dojo.isArray(_319)){
_319=[_319];
}
for(var i=0;i<_319.length;i++){
var _31a=_319[i];
if(this.isItem(_31a)){
this._removeReferenceFromMap(_31a,item,_311);
}
}
}
}else{
var _31b;
if(dojo.isArray(_312)){
var _31c=_312;
_31b=_312.slice(0,_312.length);
}else{
_31b=[_312];
}
if(this.referenceIntegrity){
if(_315){
var _319=_315;
if(!dojo.isArray(_319)){
_319=[_319];
}
var map={};
dojo.forEach(_319,function(_31d){
if(this.isItem(_31d)){
var id=this.getIdentity(_31d);
map[id.toString()]=true;
}
},this);
dojo.forEach(_31b,function(_31e){
if(this.isItem(_31e)){
var id=this.getIdentity(_31e);
if(map[id.toString()]){
delete map[id.toString()];
}else{
this._addReferenceToMap(_31e,item,_311);
}
}
},this);
for(var rId in map){
var _31f;
if(this._itemsByIdentity){
_31f=this._itemsByIdentity[rId];
}else{
_31f=this._arrayOfAllItems[rId];
}
this._removeReferenceFromMap(_31f,item,_311);
}
}else{
for(var i=0;i<_31b.length;i++){
var _31a=_31b[i];
if(this.isItem(_31a)){
this._addReferenceToMap(_31a,item,_311);
}
}
}
}
item[_311]=_31b;
_318=true;
}
if(_313){
this.onSet(item,_311,_315,_312);
}
return _318;
},_addReferenceToMap:function(_320,_321,_322){
var _323=this.getIdentity(_321);
var _324=_320[this._reverseRefMap];
if(!_324){
_324=_320[this._reverseRefMap]={};
}
var _325=_324[_323];
if(!_325){
_325=_324[_323]={};
}
_325[_322]=true;
},_removeReferenceFromMap:function(_326,_327,_328){
var _329=this.getIdentity(_327);
var _32a=_326[this._reverseRefMap];
var _32b;
if(_32a){
for(_32b in _32a){
if(_32b==_329){
delete _32a[_32b][_328];
if(this._isEmpty(_32a[_32b])){
delete _32a[_32b];
}
}
}
if(this._isEmpty(_32a)){
delete _326[this._reverseRefMap];
}
}
},_dumpReferenceMap:function(){
var i;
for(i=0;i<this._arrayOfAllItems.length;i++){
var item=this._arrayOfAllItems[i];
if(item&&item[this._reverseRefMap]){
console.log("Item: ["+this.getIdentity(item)+"] is referenced by: "+dojo.toJson(item[this._reverseRefMap]));
}
}
},_getValueOrValues:function(item,_32c){
var _32d=undefined;
if(this.hasAttribute(item,_32c)){
var _32e=this.getValues(item,_32c);
if(_32e.length==1){
_32d=_32e[0];
}else{
_32d=_32e;
}
}
return _32d;
},_flatten:function(_32f){
if(this.isItem(_32f)){
var item=_32f;
var _330=this.getIdentity(item);
var _331={_reference:_330};
return _331;
}else{
if(typeof _32f==="object"){
for(var type in this._datatypeMap){
var _332=this._datatypeMap[type];
if(dojo.isObject(_332)&&!dojo.isFunction(_332)){
if(_32f instanceof _332.type){
if(!_332.serialize){
throw new Error("ItemFileWriteStore:  No serializer defined for type mapping: ["+type+"]");
}
return {_type:type,_value:_332.serialize(_32f)};
}
}else{
if(_32f instanceof _332){
return {_type:type,_value:_32f.toString()};
}
}
}
}
return _32f;
}
},_getNewFileContentString:function(){
var _333={};
var _334=this._getIdentifierAttribute();
if(_334!==Number){
_333.identifier=_334;
}
if(this._labelAttr){
_333.label=this._labelAttr;
}
_333.items=[];
for(var i=0;i<this._arrayOfAllItems.length;++i){
var item=this._arrayOfAllItems[i];
if(item!==null){
var _335={};
for(var key in item){
if(key!==this._storeRefPropName&&key!==this._itemNumPropName){
var _336=key;
var _337=this.getValues(item,_336);
if(_337.length==1){
_335[_336]=this._flatten(_337[0]);
}else{
var _338=[];
for(var j=0;j<_337.length;++j){
_338.push(this._flatten(_337[j]));
_335[_336]=_338;
}
}
}
}
_333.items.push(_335);
}
}
var _339=true;
return dojo.toJson(_333,_339);
},_isEmpty:function(_33a){
var _33b=true;
if(dojo.isObject(_33a)){
var i;
for(i in _33a){
_33b=false;
break;
}
}else{
if(dojo.isArray(_33a)){
if(_33a.length>0){
_33b=false;
}
}
}
return _33b;
},save:function(_33c){
this._assert(!this._saveInProgress);
this._saveInProgress=true;
var self=this;
var _33d=function(){
self._pending={_newItems:{},_modifiedItems:{},_deletedItems:{}};
self._saveInProgress=false;
if(_33c&&_33c.onComplete){
var _33e=_33c.scope||dojo.global;
_33c.onComplete.call(_33e);
}
};
var _33f=function(){
self._saveInProgress=false;
if(_33c&&_33c.onError){
var _340=_33c.scope||dojo.global;
_33c.onError.call(_340);
}
};
if(this._saveEverything){
var _341=this._getNewFileContentString();
this._saveEverything(_33d,_33f,_341);
}
if(this._saveCustom){
this._saveCustom(_33d,_33f);
}
if(!this._saveEverything&&!this._saveCustom){
_33d();
}
},revert:function(){
this._assert(!this._saveInProgress);
var _342;
for(_342 in this._pending._newItems){
var _343=this._pending._newItems[_342];
_343[this._storeRefPropName]=null;
this._arrayOfAllItems[_343[this._itemNumPropName]]=null;
if(_343[this._rootItemPropName]){
this._removeArrayElement(this._arrayOfTopLevelItems,_343);
}
if(this._itemsByIdentity){
delete this._itemsByIdentity[_342];
}
}
for(_342 in this._pending._modifiedItems){
var _344=this._pending._modifiedItems[_342];
var _345=null;
if(this._itemsByIdentity){
_345=this._itemsByIdentity[_342];
}else{
_345=this._arrayOfAllItems[_342];
}
_344[this._storeRefPropName]=this;
_345[this._storeRefPropName]=null;
var _346=_345[this._itemNumPropName];
this._arrayOfAllItems[_346]=_344;
if(_345[this._rootItemPropName]){
var i;
for(i=0;i<this._arrayOfTopLevelItems.length;i++){
var _347=this._arrayOfTopLevelItems[i];
if(this.getIdentity(_347)==_342){
this._arrayOfTopLevelItems[i]=_344;
break;
}
}
}
if(this._itemsByIdentity){
this._itemsByIdentity[_342]=_344;
}
}
var _348;
for(_342 in this._pending._deletedItems){
_348=this._pending._deletedItems[_342];
_348[this._storeRefPropName]=this;
var _349=_348[this._itemNumPropName];
if(_348["backup_"+this._reverseRefMap]){
_348[this._reverseRefMap]=_348["backup_"+this._reverseRefMap];
delete _348["backup_"+this._reverseRefMap];
}
this._arrayOfAllItems[_349]=_348;
if(this._itemsByIdentity){
this._itemsByIdentity[_342]=_348;
}
if(_348[this._rootItemPropName]){
this._arrayOfTopLevelItems.push(_348);
}
}
for(_342 in this._pending._deletedItems){
_348=this._pending._deletedItems[_342];
if(_348["backupRefs_"+this._reverseRefMap]){
dojo.forEach(_348["backupRefs_"+this._reverseRefMap],function(_34a){
var _34b;
if(this._itemsByIdentity){
_34b=this._itemsByIdentity[_34a.id];
}else{
_34b=this._arrayOfAllItems[_34a.id];
}
this._addReferenceToMap(_34b,_348,_34a.attr);
},this);
delete _348["backupRefs_"+this._reverseRefMap];
}
}
this._pending={_newItems:{},_modifiedItems:{},_deletedItems:{}};
return true;
},isDirty:function(item){
if(item){
var _34c=this.getIdentity(item);
return new Boolean(this._pending._newItems[_34c]||this._pending._modifiedItems[_34c]||this._pending._deletedItems[_34c]);
}else{
if(!this._isEmpty(this._pending._newItems)||!this._isEmpty(this._pending._modifiedItems)||!this._isEmpty(this._pending._deletedItems)){
return true;
}
return false;
}
},onSet:function(item,_34d,_34e,_34f){
},onNew:function(_350,_351){
},onDelete:function(_352){
}});
}
if(!dojo._hasResource["dojo.string"]){
dojo._hasResource["dojo.string"]=true;
dojo.provide("dojo.string");
dojo.string.pad=function(text,size,ch,end){
var out=String(text);
if(!ch){
ch="0";
}
while(out.length<size){
if(end){
out+=ch;
}else{
out=ch+out;
}
}
return out;
};
dojo.string.substitute=function(_353,map,_354,_355){
return _353.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_356,key,_357){
var _358=dojo.getObject(key,false,map);
if(_357){
_358=dojo.getObject(_357,false,_355)(_358);
}
if(_354){
_358=_354(_358,key);
}
return _358.toString();
});
};
dojo.string.trim=function(str){
str=str.replace(/^\s+/,"");
for(var i=str.length-1;i>0;i--){
if(/\S/.test(str.charAt(i))){
str=str.substring(0,i+1);
break;
}
}
return str;
};
}
if(!dojo._hasResource["dojox.data.QueryReadStore"]){
dojo._hasResource["dojox.data.QueryReadStore"]=true;
dojo.provide("dojox.data.QueryReadStore");
dojo.declare("dojox.data.QueryReadStore",null,{url:"",requestMethod:"get",_className:"dojox.data.QueryReadStore",_items:[],_lastServerQuery:null,lastRequestHash:null,doClientPaging:false,doClientSorting:false,_itemsByIdentity:null,_identifier:null,_features:{"dojo.data.api.Read":true,"dojo.data.api.Identity":true},_labelAttr:"label",constructor:function(_359){
dojo.mixin(this,_359);
},getValue:function(item,_35a,_35b){
this._assertIsItem(item);
if(!dojo.isString(_35a)){
throw new Error(this._className+".getValue(): Invalid attribute, string expected!");
}
if(!this.hasAttribute(item,_35a)){
if(_35b){
return _35b;
}
console.log(this._className+".getValue(): Item does not have the attribute '"+_35a+"'.");
}
return item.i[_35a];
},getValues:function(item,_35c){
this._assertIsItem(item);
var ret=[];
if(this.hasAttribute(item,_35c)){
ret.push(item.i[_35c]);
}
return ret;
},getAttributes:function(item){
this._assertIsItem(item);
var ret=[];
for(var i in item.i){
ret.push(i);
}
return ret;
},hasAttribute:function(item,_35d){
return this.isItem(item)&&typeof item.i[_35d]!="undefined";
},containsValue:function(item,_35e,_35f){
var _360=this.getValues(item,_35e);
var len=_360.length;
for(var i=0;i<len;i++){
if(_360[i]==_35f){
return true;
}
}
return false;
},isItem:function(_361){
if(_361){
return typeof _361.r!="undefined"&&_361.r==this;
}
return false;
},isItemLoaded:function(_362){
return this.isItem(_362);
},loadItem:function(args){
if(this.isItemLoaded(args.item)){
return;
}
},fetch:function(_363){
_363=_363||{};
if(!_363.store){
_363.store=this;
}
var self=this;
var _364=function(_365,_366){
if(_366.onError){
var _367=_366.scope||dojo.global;
_366.onError.call(_367,_365,_366);
}
};
var _368=function(_369,_36a,_36b){
var _36c=_36a.abort||null;
var _36d=false;
var _36e=_36a.start?_36a.start:0;
if(self.doClientPaging==false){
_36e=0;
}
var _36f=_36a.count?(_36e+_36a.count):_369.length;
_36a.abort=function(){
_36d=true;
if(_36c){
_36c.call(_36a);
}
};
var _370=_36a.scope||dojo.global;
if(!_36a.store){
_36a.store=self;
}
if(_36a.onBegin){
_36a.onBegin.call(_370,_36b,_36a);
}
if(_36a.sort&&this.doClientSorting){
_369.sort(dojo.data.util.sorter.createSortFunction(_36a.sort,self));
}
if(_36a.onItem){
for(var i=_36e;(i<_369.length)&&(i<_36f);++i){
var item=_369[i];
if(!_36d){
_36a.onItem.call(_370,item,_36a);
}
}
}
if(_36a.onComplete&&!_36d){
var _371=null;
if(!_36a.onItem){
_371=_369.slice(_36e,_36f);
}
_36a.onComplete.call(_370,_371,_36a);
}
};
this._fetchItems(_363,_368,_364);
return _363;
},getFeatures:function(){
return this._features;
},close:function(_372){
},getLabel:function(item){
if(this._labelAttr&&this.isItem(item)){
return this.getValue(item,this._labelAttr);
}
return undefined;
},getLabelAttributes:function(item){
if(this._labelAttr){
return [this._labelAttr];
}
return null;
},_fetchItems:function(_373,_374,_375){
var _376=_373.serverQuery||_373.query||{};
if(!this.doClientPaging){
_376.start=_373.start||0;
if(_373.count){
_376.count=_373.count;
}
}
if(!this.doClientSorting){
if(_373.sort){
var sort=_373.sort[0];
if(sort&&sort.attribute){
var _377=sort.attribute;
if(sort.descending){
_377="-"+_377;
}
_376.sort=_377;
}
}
}
if(this.doClientPaging&&this._lastServerQuery!==null&&dojo.toJson(_376)==dojo.toJson(this._lastServerQuery)){
_374(this._items,_373);
}else{
var _378=this.requestMethod.toLowerCase()=="post"?dojo.xhrPost:dojo.xhrGet;
var _379=_378({url:this.url,handleAs:"json-comment-optional",content:_376});
_379.addCallback(dojo.hitch(this,function(data){
data=this._filterResponse(data);
if(data.label){
this._labelAttr=data.label;
}
var _37a=data.numRows||-1;
this._items=[];
dojo.forEach(data.items,function(e){
this._items.push({i:e,r:this});
},this);
var _37b=data.identifier;
this._itemsByIdentity={};
if(_37b){
this._identifier=_37b;
for(i=0;i<this._items.length;++i){
var item=this._items[i].i;
var _37c=item[_37b];
if(!this._itemsByIdentity[_37c]){
this._itemsByIdentity[_37c]=item;
}else{
throw new Error(this._className+":  The json data as specified by: ["+this.url+"] is malformed.  Items within the list have identifier: ["+_37b+"].  Value collided: ["+_37c+"]");
}
}
}else{
this._identifier=Number;
for(i=0;i<this._items.length;++i){
this._items[i].n=i;
}
}
_37a=(_37a===-1)?this._items.length:_37a;
_374(this._items,_373,_37a);
}));
_379.addErrback(function(_37d){
_375(_37d,_373);
});
this.lastRequestHash=new Date().getTime()+"-"+String(Math.random()).substring(2);
this._lastServerQuery=dojo.mixin({},_376);
}
},_filterResponse:function(data){
return data;
},_assertIsItem:function(item){
if(!this.isItem(item)){
throw new Error(this._className+": Invalid item argument.");
}
},_assertIsAttribute:function(_37e){
if(typeof _37e!=="string"){
throw new Error(this._className+": Invalid attribute argument ('"+_37e+"').");
}
},fetchItemByIdentity:function(_37f){
if(this._itemsByIdentity){
var item=this._itemsByIdentity[_37f.identity];
if(!(item===undefined)){
if(_37f.onItem){
var _380=_37f.scope?_37f.scope:dojo.global;
_37f.onItem.call(_380,{i:item,r:this});
}
return;
}
}
var _381=function(_382,_383){
var _384=_37f.scope?_37f.scope:dojo.global;
if(_37f.onError){
_37f.onError.call(_384,error);
}
};
var _385=function(_386,_387){
var _388=_37f.scope?_37f.scope:dojo.global;
try{
var item=null;
if(_386&&_386.length==1){
item=_386[0];
}
if(_37f.onItem){
_37f.onItem.call(_388,item);
}
}
catch(error){
if(_37f.onError){
_37f.onError.call(_388,error);
}
}
};
var _389={serverQuery:{id:_37f.identity}};
this._fetchItems(_389,_385,_381);
},getIdentity:function(item){
var _38a=null;
if(this._identifier===Number){
_38a=item.n;
}else{
_38a=item.i[this._identifier];
}
return _38a;
},getIdentityAttributes:function(item){
return [this._identifier];
}});
}
if(!dojo._hasResource["dijit._base.focus"]){
dojo._hasResource["dijit._base.focus"]=true;
dojo.provide("dijit._base.focus");
dojo.mixin(dijit,{_curFocus:null,_prevFocus:null,isCollapsed:function(){
var _38b=dojo.global;
var _38c=dojo.doc;
if(_38c.selection){
return !_38c.selection.createRange().text;
}else{
var _38d=_38b.getSelection();
if(dojo.isString(_38d)){
return !_38d;
}else{
return _38d.isCollapsed||!_38d.toString();
}
}
},getBookmark:function(){
var _38e,_38f=dojo.doc.selection;
if(_38f){
var _390=_38f.createRange();
if(_38f.type.toUpperCase()=="CONTROL"){
if(_390.length){
_38e=[];
var i=0,len=_390.length;
while(i<len){
_38e.push(_390.item(i++));
}
}else{
_38e=null;
}
}else{
_38e=_390.getBookmark();
}
}else{
if(window.getSelection){
_38f=dojo.global.getSelection();
if(_38f){
_390=_38f.getRangeAt(0);
_38e=_390.cloneRange();
}
}else{
console.warn("No idea how to store the current selection for this browser!");
}
}
return _38e;
},moveToBookmark:function(_391){
var _392=dojo.doc;
if(_392.selection){
var _393;
if(dojo.isArray(_391)){
_393=_392.body.createControlRange();
dojo.forEach(_391,"range.addElement(item)");
}else{
_393=_392.selection.createRange();
_393.moveToBookmark(_391);
}
_393.select();
}else{
var _394=dojo.global.getSelection&&dojo.global.getSelection();
if(_394&&_394.removeAllRanges){
_394.removeAllRanges();
_394.addRange(_391);
}else{
console.warn("No idea how to restore selection for this browser!");
}
}
},getFocus:function(menu,_395){
return {node:menu&&dojo.isDescendant(dijit._curFocus,menu.domNode)?dijit._prevFocus:dijit._curFocus,bookmark:!dojo.withGlobal(_395||dojo.global,dijit.isCollapsed)?dojo.withGlobal(_395||dojo.global,dijit.getBookmark):null,openedForWindow:_395};
},focus:function(_396){
if(!_396){
return;
}
var node="node" in _396?_396.node:_396,_397=_396.bookmark,_398=_396.openedForWindow;
if(node){
var _399=(node.tagName.toLowerCase()=="iframe")?node.contentWindow:node;
if(_399&&_399.focus){
try{
_399.focus();
}
catch(e){
}
}
dijit._onFocusNode(node);
}
if(_397&&dojo.withGlobal(_398||dojo.global,dijit.isCollapsed)){
if(_398){
_398.focus();
}
try{
dojo.withGlobal(_398||dojo.global,dijit.moveToBookmark,null,[_397]);
}
catch(e){
}
}
},_activeStack:[],registerWin:function(_39a){
if(!_39a){
_39a=window;
}
dojo.connect(_39a.document,"onmousedown",function(evt){
dijit._justMouseDowned=true;
setTimeout(function(){
dijit._justMouseDowned=false;
},0);
dijit._onTouchNode(evt.target||evt.srcElement);
});
var body=_39a.document.body||_39a.document.getElementsByTagName("body")[0];
if(body){
if(dojo.isIE){
body.attachEvent("onactivate",function(evt){
if(evt.srcElement.tagName.toLowerCase()!="body"){
dijit._onFocusNode(evt.srcElement);
}
});
body.attachEvent("ondeactivate",function(evt){
dijit._onBlurNode(evt.srcElement);
});
}else{
body.addEventListener("focus",function(evt){
dijit._onFocusNode(evt.target);
},true);
body.addEventListener("blur",function(evt){
dijit._onBlurNode(evt.target);
},true);
}
}
body=null;
},_onBlurNode:function(node){
dijit._prevFocus=dijit._curFocus;
dijit._curFocus=null;
if(dijit._justMouseDowned){
return;
}
if(dijit._clearActiveWidgetsTimer){
clearTimeout(dijit._clearActiveWidgetsTimer);
}
dijit._clearActiveWidgetsTimer=setTimeout(function(){
delete dijit._clearActiveWidgetsTimer;
dijit._setStack([]);
dijit._prevFocus=null;
},100);
},_onTouchNode:function(node){
if(dijit._clearActiveWidgetsTimer){
clearTimeout(dijit._clearActiveWidgetsTimer);
delete dijit._clearActiveWidgetsTimer;
}
var _39b=[];
try{
while(node){
if(node.dijitPopupParent){
node=dijit.byId(node.dijitPopupParent).domNode;
}else{
if(node.tagName&&node.tagName.toLowerCase()=="body"){
if(node===dojo.body()){
break;
}
node=dijit.getDocumentWindow(node.ownerDocument).frameElement;
}else{
var id=node.getAttribute&&node.getAttribute("widgetId");
if(id){
_39b.unshift(id);
}
node=node.parentNode;
}
}
}
}
catch(e){
}
dijit._setStack(_39b);
},_onFocusNode:function(node){
if(node&&node.tagName&&node.tagName.toLowerCase()=="body"){
return;
}
dijit._onTouchNode(node);
if(node==dijit._curFocus){
return;
}
if(dijit._curFocus){
dijit._prevFocus=dijit._curFocus;
}
dijit._curFocus=node;
dojo.publish("focusNode",[node]);
},_setStack:function(_39c){
var _39d=dijit._activeStack;
dijit._activeStack=_39c;
for(var _39e=0;_39e<Math.min(_39d.length,_39c.length);_39e++){
if(_39d[_39e]!=_39c[_39e]){
break;
}
}
for(var i=_39d.length-1;i>=_39e;i--){
var _39f=dijit.byId(_39d[i]);
if(_39f){
_39f._focused=false;
_39f._hasBeenBlurred=true;
if(_39f._onBlur){
_39f._onBlur();
}
if(_39f._setStateClass){
_39f._setStateClass();
}
dojo.publish("widgetBlur",[_39f]);
}
}
for(i=_39e;i<_39c.length;i++){
_39f=dijit.byId(_39c[i]);
if(_39f){
_39f._focused=true;
if(_39f._onFocus){
_39f._onFocus();
}
if(_39f._setStateClass){
_39f._setStateClass();
}
dojo.publish("widgetFocus",[_39f]);
}
}
}});
dojo.addOnLoad(dijit.registerWin);
}
if(!dojo._hasResource["dijit._base.manager"]){
dojo._hasResource["dijit._base.manager"]=true;
dojo.provide("dijit._base.manager");
dojo.declare("dijit.WidgetSet",null,{constructor:function(){
this._hash={};
},add:function(_3a0){
if(this._hash[_3a0.id]){
throw new Error("Tried to register widget with id=="+_3a0.id+" but that id is already registered");
}
this._hash[_3a0.id]=_3a0;
},remove:function(id){
delete this._hash[id];
},forEach:function(func){
for(var id in this._hash){
func(this._hash[id]);
}
},filter:function(_3a1){
var res=new dijit.WidgetSet();
this.forEach(function(_3a2){
if(_3a1(_3a2)){
res.add(_3a2);
}
});
return res;
},byId:function(id){
return this._hash[id];
},byClass:function(cls){
return this.filter(function(_3a3){
return _3a3.declaredClass==cls;
});
}});
dijit.registry=new dijit.WidgetSet();
dijit._widgetTypeCtr={};
dijit.getUniqueId=function(_3a4){
var id;
do{
id=_3a4+"_"+(_3a4 in dijit._widgetTypeCtr?++dijit._widgetTypeCtr[_3a4]:dijit._widgetTypeCtr[_3a4]=0);
}while(dijit.byId(id));
return id;
};
if(dojo.isIE){
dojo.addOnUnload(function(){
dijit.registry.forEach(function(_3a5){
_3a5.destroy();
});
});
}
dijit.byId=function(id){
return (dojo.isString(id))?dijit.registry.byId(id):id;
};
dijit.byNode=function(node){
return dijit.registry.byId(node.getAttribute("widgetId"));
};
dijit.getEnclosingWidget=function(node){
while(node){
if(node.getAttribute&&node.getAttribute("widgetId")){
return dijit.registry.byId(node.getAttribute("widgetId"));
}
node=node.parentNode;
}
return null;
};
dijit._tabElements={area:true,button:true,input:true,object:true,select:true,textarea:true};
dijit._isElementShown=function(elem){
var _3a6=dojo.style(elem);
return (_3a6.visibility!="hidden")&&(_3a6.visibility!="collapsed")&&(_3a6.display!="none");
};
dijit.isTabNavigable=function(elem){
if(dojo.hasAttr(elem,"disabled")){
return false;
}
var _3a7=dojo.hasAttr(elem,"tabindex");
var _3a8=dojo.attr(elem,"tabindex");
if(_3a7&&_3a8>=0){
return true;
}
var name=elem.nodeName.toLowerCase();
if(((name=="a"&&dojo.hasAttr(elem,"href"))||dijit._tabElements[name])&&(!_3a7||_3a8>=0)){
return true;
}
return false;
};
dijit._getTabNavigable=function(root){
var _3a9,last,_3aa,_3ab,_3ac,_3ad;
var _3ae=function(_3af){
dojo.query("> *",_3af).forEach(function(_3b0){
var _3b1=dijit._isElementShown(_3b0);
if(_3b1&&dijit.isTabNavigable(_3b0)){
var _3b2=dojo.attr(_3b0,"tabindex");
if(!dojo.hasAttr(_3b0,"tabindex")||_3b2==0){
if(!_3a9){
_3a9=_3b0;
}
last=_3b0;
}else{
if(_3b2>0){
if(!_3aa||_3b2<_3ab){
_3ab=_3b2;
_3aa=_3b0;
}
if(!_3ac||_3b2>=_3ad){
_3ad=_3b2;
_3ac=_3b0;
}
}
}
}
if(_3b1){
_3ae(_3b0);
}
});
};
if(dijit._isElementShown(root)){
_3ae(root);
}
return {first:_3a9,last:last,lowest:_3aa,highest:_3ac};
};
dijit.getFirstInTabbingOrder=function(root){
var _3b3=dijit._getTabNavigable(dojo.byId(root));
return _3b3.lowest?_3b3.lowest:_3b3.first;
};
dijit.getLastInTabbingOrder=function(root){
var _3b4=dijit._getTabNavigable(dojo.byId(root));
return _3b4.last?_3b4.last:_3b4.highest;
};
}
if(!dojo._hasResource["dijit._base.place"]){
dojo._hasResource["dijit._base.place"]=true;
dojo.provide("dijit._base.place");
dijit.getViewport=function(){
var _3b5=dojo.global;
var _3b6=dojo.doc;
var w=0,h=0;
var de=_3b6.documentElement;
var dew=de.clientWidth,deh=de.clientHeight;
if(dojo.isMozilla){
var minw,minh,maxw,maxh;
var dbw=_3b6.body.clientWidth;
if(dbw>dew){
minw=dew;
maxw=dbw;
}else{
maxw=dew;
minw=dbw;
}
var dbh=_3b6.body.clientHeight;
if(dbh>deh){
minh=deh;
maxh=dbh;
}else{
maxh=deh;
minh=dbh;
}
w=(maxw>_3b5.innerWidth)?minw:maxw;
h=(maxh>_3b5.innerHeight)?minh:maxh;
}else{
if(!dojo.isOpera&&_3b5.innerWidth){
w=_3b5.innerWidth;
h=_3b5.innerHeight;
}else{
if(dojo.isIE&&de&&deh){
w=dew;
h=deh;
}else{
if(dojo.body().clientWidth){
w=dojo.body().clientWidth;
h=dojo.body().clientHeight;
}
}
}
}
var _3b7=dojo._docScroll();
return {w:w,h:h,l:_3b7.x,t:_3b7.y};
};
dijit.placeOnScreen=function(node,pos,_3b8,_3b9){
var _3ba=dojo.map(_3b8,function(_3bb){
return {corner:_3bb,pos:pos};
});
return dijit._place(node,_3ba);
};
dijit._place=function(node,_3bc,_3bd){
var view=dijit.getViewport();
if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){
dojo.body().appendChild(node);
}
var best=null;
dojo.some(_3bc,function(_3be){
var _3bf=_3be.corner;
var pos=_3be.pos;
if(_3bd){
_3bd(node,_3be.aroundCorner,_3bf);
}
var _3c0=node.style;
var _3c1=_3c0.display;
var _3c2=_3c0.visibility;
_3c0.visibility="hidden";
_3c0.display="";
var mb=dojo.marginBox(node);
_3c0.display=_3c1;
_3c0.visibility=_3c2;
var _3c3=(_3bf.charAt(1)=="L"?pos.x:Math.max(view.l,pos.x-mb.w)),_3c4=(_3bf.charAt(0)=="T"?pos.y:Math.max(view.t,pos.y-mb.h)),endX=(_3bf.charAt(1)=="L"?Math.min(view.l+view.w,_3c3+mb.w):pos.x),endY=(_3bf.charAt(0)=="T"?Math.min(view.t+view.h,_3c4+mb.h):pos.y),_3c5=endX-_3c3,_3c6=endY-_3c4,_3c7=(mb.w-_3c5)+(mb.h-_3c6);
if(best==null||_3c7<best.overflow){
best={corner:_3bf,aroundCorner:_3be.aroundCorner,x:_3c3,y:_3c4,w:_3c5,h:_3c6,overflow:_3c7};
}
return !_3c7;
});
node.style.left=best.x+"px";
node.style.top=best.y+"px";
if(best.overflow&&_3bd){
_3bd(node,best.aroundCorner,best.corner);
}
return best;
};
dijit.placeOnScreenAroundElement=function(node,_3c8,_3c9,_3ca){
_3c8=dojo.byId(_3c8);
var _3cb=_3c8.style.display;
_3c8.style.display="";
var _3cc=_3c8.offsetWidth;
var _3cd=_3c8.offsetHeight;
var _3ce=dojo.coords(_3c8,true);
_3c8.style.display=_3cb;
var _3cf=[];
for(var _3d0 in _3c9){
_3cf.push({aroundCorner:_3d0,corner:_3c9[_3d0],pos:{x:_3ce.x+(_3d0.charAt(1)=="L"?0:_3cc),y:_3ce.y+(_3d0.charAt(0)=="T"?0:_3cd)}});
}
return dijit._place(node,_3cf,_3ca);
};
}
if(!dojo._hasResource["dijit._base.window"]){
dojo._hasResource["dijit._base.window"]=true;
dojo.provide("dijit._base.window");
dijit.getDocumentWindow=function(doc){
if(dojo.isIE&&window!==document.parentWindow&&!doc._parentWindow){
doc.parentWindow.execScript("document._parentWindow = window;","Javascript");
var win=doc._parentWindow;
doc._parentWindow=null;
return win;
}
return doc._parentWindow||doc.parentWindow||doc.defaultView;
};
}
if(!dojo._hasResource["dijit._base.popup"]){
dojo._hasResource["dijit._base.popup"]=true;
dojo.provide("dijit._base.popup");
dijit.popup=new function(){
var _3d1=[],_3d2=1000,_3d3=1;
this.prepare=function(node){
dojo.body().appendChild(node);
var s=node.style;
if(s.display=="none"){
s.display="";
}
s.visibility="hidden";
s.position="absolute";
s.top="-9999px";
};
this.open=function(args){
var _3d4=args.popup,_3d5=args.orient||{"BL":"TL","TL":"BL"},_3d6=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+_3d3++);
var _3d7=dojo.doc.createElement("div");
dijit.setWaiRole(_3d7,"presentation");
_3d7.id=id;
_3d7.className="dijitPopup";
_3d7.style.zIndex=_3d2+_3d1.length;
_3d7.style.visibility="hidden";
if(args.parent){
_3d7.dijitPopupParent=args.parent.id;
}
dojo.body().appendChild(_3d7);
var s=_3d4.domNode.style;
s.display="";
s.visibility="";
s.position="";
_3d7.appendChild(_3d4.domNode);
var _3d8=new dijit.BackgroundIframe(_3d7);
var best=_3d6?dijit.placeOnScreenAroundElement(_3d7,_3d6,_3d5,_3d4.orient?dojo.hitch(_3d4,"orient"):null):dijit.placeOnScreen(_3d7,args,_3d5=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"]);
_3d7.style.visibility="visible";
var _3d9=[];
var _3da=function(){
for(var pi=_3d1.length-1;pi>0&&_3d1[pi].parent===_3d1[pi-1].widget;pi--){
}
return _3d1[pi];
};
_3d9.push(dojo.connect(_3d7,"onkeypress",this,function(evt){
if(evt.keyCode==dojo.keys.ESCAPE&&args.onCancel){
dojo.stopEvent(evt);
args.onCancel();
}else{
if(evt.keyCode==dojo.keys.TAB){
dojo.stopEvent(evt);
var _3db=_3da();
if(_3db&&_3db.onCancel){
_3db.onCancel();
}
}
}
}));
if(_3d4.onCancel){
_3d9.push(dojo.connect(_3d4,"onCancel",null,args.onCancel));
}
_3d9.push(dojo.connect(_3d4,_3d4.onExecute?"onExecute":"onChange",null,function(){
var _3dc=_3da();
if(_3dc&&_3dc.onExecute){
_3dc.onExecute();
}
}));
_3d1.push({wrapper:_3d7,iframe:_3d8,widget:_3d4,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_3d9});
if(_3d4.onOpen){
_3d4.onOpen(best);
}
return best;
};
this.close=function(_3dd){
while(dojo.some(_3d1,function(elem){
return elem.widget==_3dd;
})){
var top=_3d1.pop(),_3de=top.wrapper,_3df=top.iframe,_3e0=top.widget,_3e1=top.onClose;
if(_3e0.onClose){
_3e0.onClose();
}
dojo.forEach(top.handlers,dojo.disconnect);
if(!_3e0||!_3e0.domNode){
return;
}
this.prepare(_3e0.domNode);
_3df.destroy();
dojo._destroyElement(_3de);
if(_3e1){
_3e1();
}
}
};
}();
dijit._frames=new function(){
var _3e2=[];
this.pop=function(){
var _3e3;
if(_3e2.length){
_3e3=_3e2.pop();
_3e3.style.display="";
}else{
if(dojo.isIE){
var html="<iframe src='javascript:\"\"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";
_3e3=dojo.doc.createElement(html);
}else{
_3e3=dojo.doc.createElement("iframe");
_3e3.src="javascript:\"\"";
_3e3.className="dijitBackgroundIframe";
}
_3e3.tabIndex=-1;
dojo.body().appendChild(_3e3);
}
return _3e3;
};
this.push=function(_3e4){
_3e4.style.display="";
if(dojo.isIE){
_3e4.style.removeExpression("width");
_3e4.style.removeExpression("height");
}
_3e2.push(_3e4);
};
}();
if(dojo.isIE&&dojo.isIE<7){
dojo.addOnLoad(function(){
var f=dijit._frames;
dojo.forEach([f.pop()],f.push);
});
}
dijit.BackgroundIframe=function(node){
if(!node.id){
throw new Error("no id");
}
if((dojo.isIE&&dojo.isIE<7)||(dojo.isFF&&dojo.isFF<3&&dojo.hasClass(dojo.body(),"dijit_a11y"))){
var _3e5=dijit._frames.pop();
node.appendChild(_3e5);
if(dojo.isIE){
_3e5.style.setExpression("width",dojo._scopeName+".doc.getElementById('"+node.id+"').offsetWidth");
_3e5.style.setExpression("height",dojo._scopeName+".doc.getElementById('"+node.id+"').offsetHeight");
}
this.iframe=_3e5;
}
};
dojo.extend(dijit.BackgroundIframe,{destroy:function(){
if(this.iframe){
dijit._frames.push(this.iframe);
delete this.iframe;
}
}});
}
if(!dojo._hasResource["dijit._base.scroll"]){
dojo._hasResource["dijit._base.scroll"]=true;
dojo.provide("dijit._base.scroll");
dijit.scrollIntoView=function(node){
var _3e6=node.parentNode;
var _3e7=_3e6.scrollTop+dojo.marginBox(_3e6).h;
var _3e8=node.offsetTop+dojo.marginBox(node).h;
if(_3e7<_3e8){
_3e6.scrollTop+=(_3e8-_3e7);
}else{
if(_3e6.scrollTop>node.offsetTop){
_3e6.scrollTop-=(_3e6.scrollTop-node.offsetTop);
}
}
};
}
if(!dojo._hasResource["dijit._base.sniff"]){
dojo._hasResource["dijit._base.sniff"]=true;
dojo.provide("dijit._base.sniff");
(function(){
var d=dojo;
var ie=d.isIE;
var _3e9=d.isOpera;
var maj=Math.floor;
var ff=d.isFF;
var _3ea={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_iequirks:ie&&d.isQuirks,dj_opera:_3e9,dj_opera8:maj(_3e9)==8,dj_opera9:maj(_3e9)==9,dj_khtml:d.isKhtml,dj_safari:d.isSafari,dj_gecko:d.isMozilla,dj_ff2:maj(ff)==2};
for(var p in _3ea){
if(_3ea[p]){
var html=dojo.doc.documentElement;
if(html.className){
html.className+=" "+p;
}else{
html.className=p;
}
}
}
})();
}
if(!dojo._hasResource["dijit._base.bidi"]){
dojo._hasResource["dijit._base.bidi"]=true;
dojo.provide("dijit._base.bidi");
dojo.addOnLoad(function(){
if(!dojo._isBodyLtr()){
dojo.addClass(dojo.body(),"dijitRtl");
}
});
}
if(!dojo._hasResource["dijit._base.typematic"]){
dojo._hasResource["dijit._base.typematic"]=true;
dojo.provide("dijit._base.typematic");
dijit.typematic={_fireEventAndReload:function(){
this._timer=null;
this._callback(++this._count,this._node,this._evt);
this._currentTimeout=(this._currentTimeout<0)?this._initialDelay:((this._subsequentDelay>1)?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay));
this._timer=setTimeout(dojo.hitch(this,"_fireEventAndReload"),this._currentTimeout);
},trigger:function(evt,_3eb,node,_3ec,obj,_3ed,_3ee){
if(obj!=this._obj){
this.stop();
this._initialDelay=_3ee||500;
this._subsequentDelay=_3ed||0.9;
this._obj=obj;
this._evt=evt;
this._node=node;
this._currentTimeout=-1;
this._count=-1;
this._callback=dojo.hitch(_3eb,_3ec);
this._fireEventAndReload();
}
},stop:function(){
if(this._timer){
clearTimeout(this._timer);
this._timer=null;
}
if(this._obj){
this._callback(-1,this._node,this._evt);
this._obj=null;
}
},addKeyListener:function(node,_3ef,_3f0,_3f1,_3f2,_3f3){
return [dojo.connect(node,"onkeypress",this,function(evt){
if(evt.keyCode==_3ef.keyCode&&(!_3ef.charCode||_3ef.charCode==evt.charCode)&&(_3ef.ctrlKey===undefined||_3ef.ctrlKey==evt.ctrlKey)&&(_3ef.altKey===undefined||_3ef.altKey==evt.ctrlKey)&&(_3ef.shiftKey===undefined||_3ef.shiftKey==evt.ctrlKey)){
dojo.stopEvent(evt);
dijit.typematic.trigger(_3ef,_3f0,node,_3f1,_3ef,_3f2,_3f3);
}else{
if(dijit.typematic._obj==_3ef){
dijit.typematic.stop();
}
}
}),dojo.connect(node,"onkeyup",this,function(evt){
if(dijit.typematic._obj==_3ef){
dijit.typematic.stop();
}
})];
},addMouseListener:function(node,_3f4,_3f5,_3f6,_3f7){
var dc=dojo.connect;
return [dc(node,"mousedown",this,function(evt){
dojo.stopEvent(evt);
dijit.typematic.trigger(evt,_3f4,node,_3f5,node,_3f6,_3f7);
}),dc(node,"mouseup",this,function(evt){
dojo.stopEvent(evt);
dijit.typematic.stop();
}),dc(node,"mouseout",this,function(evt){
dojo.stopEvent(evt);
dijit.typematic.stop();
}),dc(node,"mousemove",this,function(evt){
dojo.stopEvent(evt);
}),dc(node,"dblclick",this,function(evt){
dojo.stopEvent(evt);
if(dojo.isIE){
dijit.typematic.trigger(evt,_3f4,node,_3f5,node,_3f6,_3f7);
setTimeout(dojo.hitch(this,dijit.typematic.stop),50);
}
})];
},addListener:function(_3f8,_3f9,_3fa,_3fb,_3fc,_3fd,_3fe){
return this.addKeyListener(_3f9,_3fa,_3fb,_3fc,_3fd,_3fe).concat(this.addMouseListener(_3f8,_3fb,_3fc,_3fd,_3fe));
}};
}
if(!dojo._hasResource["dijit._base.wai"]){
dojo._hasResource["dijit._base.wai"]=true;
dojo.provide("dijit._base.wai");
dijit.wai={onload:function(){
var div=dojo.doc.createElement("div");
div.id="a11yTestNode";
div.style.cssText="border: 1px solid;"+"border-color:red green;"+"position: absolute;"+"height: 5px;"+"top: -999px;"+"background-image: url(\""+dojo.moduleUrl("dojo","resources/blank.gif")+"\");";
dojo.body().appendChild(div);
var cs=dojo.getComputedStyle(div);
if(cs){
var _3ff=cs.backgroundImage;
var _400=(cs.borderTopColor==cs.borderRightColor)||(_3ff!=null&&(_3ff=="none"||_3ff=="url(invalid-url:)"));
dojo[_400?"addClass":"removeClass"](dojo.body(),"dijit_a11y");
dojo.body().removeChild(div);
}
}};
if(dojo.isIE||dojo.isMoz){
dojo._loaders.unshift(dijit.wai.onload);
}
dojo.mixin(dijit,{hasWaiRole:function(elem){
return elem.hasAttribute?elem.hasAttribute("role"):!!elem.getAttribute("role");
},getWaiRole:function(elem){
var _401=elem.getAttribute("role");
if(_401){
var _402=_401.indexOf(":");
return _402==-1?_401:_401.substring(_402+1);
}else{
return "";
}
},setWaiRole:function(elem,role){
elem.setAttribute("role",(dojo.isFF&&dojo.isFF<3)?"wairole:"+role:role);
},removeWaiRole:function(elem){
elem.removeAttribute("role");
},hasWaiState:function(elem,_403){
if(dojo.isFF&&dojo.isFF<3){
return elem.hasAttributeNS("http://www.w3.org/2005/07/aaa",_403);
}else{
return elem.hasAttribute?elem.hasAttribute("aria-"+_403):!!elem.getAttribute("aria-"+_403);
}
},getWaiState:function(elem,_404){
if(dojo.isFF&&dojo.isFF<3){
return elem.getAttributeNS("http://www.w3.org/2005/07/aaa",_404);
}else{
var _405=elem.getAttribute("aria-"+_404);
return _405?_405:"";
}
},setWaiState:function(elem,_406,_407){
if(dojo.isFF&&dojo.isFF<3){
elem.setAttributeNS("http://www.w3.org/2005/07/aaa","aaa:"+_406,_407);
}else{
elem.setAttribute("aria-"+_406,_407);
}
},removeWaiState:function(elem,_408){
if(dojo.isFF&&dojo.isFF<3){
elem.removeAttributeNS("http://www.w3.org/2005/07/aaa",_408);
}else{
elem.removeAttribute("aria-"+_408);
}
}});
}
if(!dojo._hasResource["dijit._base"]){
dojo._hasResource["dijit._base"]=true;
dojo.provide("dijit._base");
if(dojo.isSafari){
dojo.connect(window,"load",function(){
window.resizeBy(1,0);
setTimeout(function(){
window.resizeBy(-1,0);
},10);
});
}
}
if(!dojo._hasResource["dijit._Widget"]){
dojo._hasResource["dijit._Widget"]=true;
dojo.provide("dijit._Widget");
dojo.require("dijit._base");
dojo.declare("dijit._Widget",null,{id:"",lang:"",dir:"","class":"",style:"",title:"",srcNodeRef:null,domNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},postscript:function(_409,_40a){
this.create(_409,_40a);
},create:function(_40b,_40c){
this.srcNodeRef=dojo.byId(_40c);
this._connects=[];
this._attaches=[];
if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){
this.id=this.srcNodeRef.id;
}
if(_40b){
this.params=_40b;
dojo.mixin(this,_40b);
}
this.postMixInProperties();
if(!this.id){
this.id=dijit.getUniqueId(this.declaredClass.replace(/\./g,"_"));
}
dijit.registry.add(this);
this.buildRendering();
if(this.domNode){
for(var attr in this.attributeMap){
var _40d=this[attr];
if(typeof _40d!="object"&&((_40d!==""&&_40d!==false)||(_40b&&_40b[attr]))){
this.setAttribute(attr,_40d);
}
}
}
if(this.domNode){
this.domNode.setAttribute("widgetId",this.id);
}
this.postCreate();
if(this.srcNodeRef&&!this.srcNodeRef.parentNode){
delete this.srcNodeRef;
}
},postMixInProperties:function(){
},buildRendering:function(){
this.domNode=this.srcNodeRef||dojo.doc.createElement("div");
},postCreate:function(){
},startup:function(){
this._started=true;
},destroyRecursive:function(_40e){
this.destroyDescendants();
this.destroy();
},destroy:function(_40f){
this.uninitialize();
dojo.forEach(this._connects,function(_410){
dojo.forEach(_410,dojo.disconnect);
});
dojo.forEach(this._supportingWidgets||[],function(w){
w.destroy();
});
this.destroyRendering(_40f);
dijit.registry.remove(this.id);
},destroyRendering:function(_411){
if(this.bgIframe){
this.bgIframe.destroy();
delete this.bgIframe;
}
if(this.domNode){
dojo._destroyElement(this.domNode);
delete this.domNode;
}
if(this.srcNodeRef){
dojo._destroyElement(this.srcNodeRef);
delete this.srcNodeRef;
}
},destroyDescendants:function(){
dojo.forEach(this.getDescendants(),function(_412){
_412.destroy();
});
},uninitialize:function(){
return false;
},onFocus:function(){
},onBlur:function(){
},_onFocus:function(e){
this.onFocus();
},_onBlur:function(){
this.onBlur();
},setAttribute:function(attr,_413){
var _414=this[this.attributeMap[attr]||"domNode"];
this[attr]=_413;
switch(attr){
case "class":
dojo.addClass(_414,_413);
break;
case "style":
if(_414.style.cssText){
_414.style.cssText+="; "+_413;
}else{
_414.style.cssText=_413;
}
break;
default:
if(/^on[A-Z]/.test(attr)){
attr=attr.toLowerCase();
}
if(typeof _413=="function"){
_413=dojo.hitch(this,_413);
}
dojo.attr(_414,attr,_413);
}
},toString:function(){
return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";
},getDescendants:function(){
if(this.containerNode){
var list=dojo.query("[widgetId]",this.containerNode);
return list.map(dijit.byNode);
}else{
return [];
}
},nodesWithKeyClick:["input","button"],connect:function(obj,_415,_416){
var _417=[];
if(_415=="ondijitclick"){
if(!this.nodesWithKeyClick[obj.nodeName]){
_417.push(dojo.connect(obj,"onkeydown",this,function(e){
if(e.keyCode==dojo.keys.ENTER){
return (dojo.isString(_416))?this[_416](e):_416.call(this,e);
}else{
if(e.keyCode==dojo.keys.SPACE){
dojo.stopEvent(e);
}
}
}));
_417.push(dojo.connect(obj,"onkeyup",this,function(e){
if(e.keyCode==dojo.keys.SPACE){
return dojo.isString(_416)?this[_416](e):_416.call(this,e);
}
}));
}
_415="onclick";
}
_417.push(dojo.connect(obj,_415,this,_416));
this._connects.push(_417);
return _417;
},disconnect:function(_418){
for(var i=0;i<this._connects.length;i++){
if(this._connects[i]==_418){
dojo.forEach(_418,dojo.disconnect);
this._connects.splice(i,1);
return;
}
}
},isLeftToRight:function(){
if(!("_ltr" in this)){
this._ltr=dojo.getComputedStyle(this.domNode).direction!="rtl";
}
return this._ltr;
},isFocusable:function(){
return this.focus&&(dojo.style(this.domNode,"display")!="none");
}});
}
if(!dojo._hasResource["dijit._Templated"]){
dojo._hasResource["dijit._Templated"]=true;
dojo.provide("dijit._Templated");
dojo.declare("dijit._Templated",null,{templateNode:null,templateString:null,templatePath:null,widgetsInTemplate:false,containerNode:null,_skipNodeCache:false,_stringRepl:function(tmpl){
var _419=this.declaredClass,_41a=this;
return dojo.string.substitute(tmpl,this,function(_41b,key){
if(key.charAt(0)=="!"){
_41b=_41a[key.substr(1)];
}
if(typeof _41b=="undefined"){
throw new Error(_419+" template:"+key);
}
if(!_41b){
return "";
}
return key.charAt(0)=="!"?_41b:_41b.toString().replace(/"/g,"&quot;");
},this);
},buildRendering:function(){
var _41c=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);
var node;
if(dojo.isString(_41c)){
node=dijit._Templated._createNodesFromText(this._stringRepl(_41c))[0];
}else{
node=_41c.cloneNode(true);
}
this._attachTemplateNodes(node);
var _41d=this.srcNodeRef;
if(_41d&&_41d.parentNode){
_41d.parentNode.replaceChild(node,_41d);
}
this.domNode=node;
if(this.widgetsInTemplate){
var cw=this._supportingWidgets=dojo.parser.parse(node);
this._attachTemplateNodes(cw,function(n,p){
return n[p];
});
}
this._fillContent(_41d);
},_fillContent:function(_41e){
var dest=this.containerNode;
if(_41e&&dest){
while(_41e.hasChildNodes()){
dest.appendChild(_41e.firstChild);
}
}
},_attachTemplateNodes:function(_41f,_420){
_420=_420||function(n,p){
return n.getAttribute(p);
};
var _421=dojo.isArray(_41f)?_41f:(_41f.all||_41f.getElementsByTagName("*"));
var x=dojo.isArray(_41f)?0:-1;
for(;x<_421.length;x++){
var _422=(x==-1)?_41f:_421[x];
if(this.widgetsInTemplate&&_420(_422,"dojoType")){
continue;
}
var _423=_420(_422,"dojoAttachPoint");
if(_423){
var _424,_425=_423.split(/\s*,\s*/);
while((_424=_425.shift())){
if(dojo.isArray(this[_424])){
this[_424].push(_422);
}else{
this[_424]=_422;
}
}
}
var _426=_420(_422,"dojoAttachEvent");
if(_426){
var _427,_428=_426.split(/\s*,\s*/);
var trim=dojo.trim;
while((_427=_428.shift())){
if(_427){
var _429=null;
if(_427.indexOf(":")!=-1){
var _42a=_427.split(":");
_427=trim(_42a[0]);
_429=trim(_42a[1]);
}else{
_427=trim(_427);
}
if(!_429){
_429=_427;
}
this.connect(_422,_427,_429);
}
}
}
var role=_420(_422,"waiRole");
if(role){
dijit.setWaiRole(_422,role);
}
var _42b=_420(_422,"waiState");
if(_42b){
dojo.forEach(_42b.split(/\s*,\s*/),function(_42c){
if(_42c.indexOf("-")!=-1){
var pair=_42c.split("-");
dijit.setWaiState(_422,pair[0],pair[1]);
}
});
}
}
}});
dijit._Templated._templateCache={};
dijit._Templated.getCachedTemplate=function(_42d,_42e,_42f){
var _430=dijit._Templated._templateCache;
var key=_42e||_42d;
var _431=_430[key];
if(_431){
return _431;
}
if(!_42e){
_42e=dijit._Templated._sanitizeTemplateString(dojo._getText(_42d));
}
_42e=dojo.string.trim(_42e);
if(_42f||_42e.match(/\$\{([^\}]+)\}/g)){
return (_430[key]=_42e);
}else{
return (_430[key]=dijit._Templated._createNodesFromText(_42e)[0]);
}
};
dijit._Templated._sanitizeTemplateString=function(_432){
if(_432){
_432=_432.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");
var _433=_432.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_433){
_432=_433[1];
}
}else{
_432="";
}
return _432;
};
if(dojo.isIE){
dojo.addOnUnload(function(){
var _434=dijit._Templated._templateCache;
for(var key in _434){
var _435=_434[key];
if(!isNaN(_435.nodeType)){
dojo._destroyElement(_435);
}
delete _434[key];
}
});
}
(function(){
var _436={cell:{re:/^<t[dh][\s\r\n>]/i,pre:"<table><tbody><tr>",post:"</tr></tbody></table>"},row:{re:/^<tr[\s\r\n>]/i,pre:"<table><tbody>",post:"</tbody></table>"},section:{re:/^<(thead|tbody|tfoot)[\s\r\n>]/i,pre:"<table>",post:"</table>"}};
var tn;
dijit._Templated._createNodesFromText=function(text){
if(!tn){
tn=dojo.doc.createElement("div");
tn.style.display="none";
dojo.body().appendChild(tn);
}
var _437="none";
var _438=text.replace(/^\s+/,"");
for(var type in _436){
var map=_436[type];
if(map.re.test(_438)){
_437=type;
text=map.pre+text+map.post;
break;
}
}
tn.innerHTML=text;
if(tn.normalize){
tn.normalize();
}
var tag={cell:"tr",row:"tbody",section:"table"}[_437];
var _439=(typeof tag!="undefined")?tn.getElementsByTagName(tag)[0]:tn;
var _43a=[];
while(_439.firstChild){
_43a.push(_439.removeChild(_439.firstChild));
}
tn.innerHTML="";
return _43a;
};
})();
dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});
}
if(!dojo._hasResource["dijit._Container"]){
dojo._hasResource["dijit._Container"]=true;
dojo.provide("dijit._Container");
dojo.declare("dijit._Contained",null,{getParent:function(){
for(var p=this.domNode.parentNode;p;p=p.parentNode){
var id=p.getAttribute&&p.getAttribute("widgetId");
if(id){
var _43b=dijit.byId(id);
return _43b.isContainer?_43b:null;
}
}
return null;
},_getSibling:function(_43c){
var node=this.domNode;
do{
node=node[_43c+"Sibling"];
}while(node&&node.nodeType!=1);
if(!node){
return null;
}
var id=node.getAttribute("widgetId");
return dijit.byId(id);
},getPreviousSibling:function(){
return this._getSibling("previous");
},getNextSibling:function(){
return this._getSibling("next");
}});
dojo.declare("dijit._Container",null,{isContainer:true,addChild:function(_43d,_43e){
if(_43e===undefined){
_43e="last";
}
var _43f=this.containerNode||this.domNode;
if(_43e&&typeof _43e=="number"){
var _440=dojo.query("> [widgetid]",_43f);
if(_440&&_440.length>=_43e){
_43f=_440[_43e-1];
_43e="after";
}
}
dojo.place(_43d.domNode,_43f,_43e);
if(this._started&&!_43d._started){
_43d.startup();
}
},removeChild:function(_441){
var node=_441.domNode;
node.parentNode.removeChild(node);
},_nextElement:function(node){
do{
node=node.nextSibling;
}while(node&&node.nodeType!=1);
return node;
},_firstElement:function(node){
node=node.firstChild;
if(node&&node.nodeType!=1){
node=this._nextElement(node);
}
return node;
},getChildren:function(){
return dojo.query("> [widgetId]",this.containerNode||this.domNode).map(dijit.byNode);
},hasChildren:function(){
var cn=this.containerNode||this.domNode;
return !!this._firstElement(cn);
},_getSiblingOfChild:function(_442,dir){
var node=_442.domNode;
var _443=(dir>0?"nextSibling":"previousSibling");
do{
node=node[_443];
}while(node&&(node.nodeType!=1||!dijit.byNode(node)));
return node?dijit.byNode(node):null;
}});
dojo.declare("dijit._KeyNavContainer",[dijit._Container],{_keyNavCodes:{},connectKeyNavHandlers:function(_444,_445){
var _446=this._keyNavCodes={};
var prev=dojo.hitch(this,this.focusPrev);
var next=dojo.hitch(this,this.focusNext);
dojo.forEach(_444,function(code){
_446[code]=prev;
});
dojo.forEach(_445,function(code){
_446[code]=next;
});
this.connect(this.domNode,"onkeypress","_onContainerKeypress");
this.connect(this.domNode,"onfocus","_onContainerFocus");
},startupKeyNavChildren:function(){
dojo.forEach(this.getChildren(),dojo.hitch(this,"_startupChild"));
},addChild:function(_447,_448){
dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);
this._startupChild(_447);
},focus:function(){
this.focusFirstChild();
},focusFirstChild:function(){
this.focusChild(this._getFirstFocusableChild());
},focusNext:function(){
if(this.focusedChild&&this.focusedChild.hasNextFocalNode&&this.focusedChild.hasNextFocalNode()){
this.focusedChild.focusNext();
return;
}
var _449=this._getNextFocusableChild(this.focusedChild,1);
if(_449.getFocalNodes){
this.focusChild(_449,_449.getFocalNodes()[0]);
}else{
this.focusChild(_449);
}
},focusPrev:function(){
if(this.focusedChild&&this.focusedChild.hasPrevFocalNode&&this.focusedChild.hasPrevFocalNode()){
this.focusedChild.focusPrev();
return;
}
var _44a=this._getNextFocusableChild(this.focusedChild,-1);
if(_44a.getFocalNodes){
var _44b=_44a.getFocalNodes();
this.focusChild(_44a,_44b[_44b.length-1]);
}else{
this.focusChild(_44a);
}
},focusChild:function(_44c,node){
if(_44c){
if(this.focusedChild&&_44c!==this.focusedChild){
this._onChildBlur(this.focusedChild);
}
this.focusedChild=_44c;
if(node&&_44c.focusFocalNode){
_44c.focusFocalNode(node);
}else{
_44c.focus();
}
}
},_startupChild:function(_44d){
if(_44d.getFocalNodes){
dojo.forEach(_44d.getFocalNodes(),function(node){
dojo.attr(node,"tabindex",-1);
this._connectNode(node);
},this);
}else{
var node=_44d.focusNode||_44d.domNode;
if(_44d.isFocusable()){
dojo.attr(node,"tabindex",-1);
}
this._connectNode(node);
}
},_connectNode:function(node){
this.connect(node,"onfocus","_onNodeFocus");
this.connect(node,"onblur","_onNodeBlur");
},_onContainerFocus:function(evt){
if(evt.target===this.domNode){
this.focusFirstChild();
}
},_onContainerKeypress:function(evt){
if(evt.ctrlKey||evt.altKey){
return;
}
var func=this._keyNavCodes[evt.keyCode];
if(func){
func();
dojo.stopEvent(evt);
}
},_onNodeFocus:function(evt){
dojo.attr(this.domNode,"tabindex",-1);
var _44e=dijit.getEnclosingWidget(evt.target);
if(_44e&&_44e.isFocusable()){
this.focusedChild=_44e;
}
dojo.stopEvent(evt);
},_onNodeBlur:function(evt){
if(this.tabIndex){
dojo.attr(this.domNode,"tabindex",this.tabIndex);
}
dojo.stopEvent(evt);
},_onChildBlur:function(_44f){
},_getFirstFocusableChild:function(){
return this._getNextFocusableChild(null,1);
},_getNextFocusableChild:function(_450,dir){
if(_450){
_450=this._getSiblingOfChild(_450,dir);
}
var _451=this.getChildren();
for(var i=0;i<_451.length;i++){
if(!_450){
_450=_451[(dir>0)?0:(_451.length-1)];
}
if(_450.isFocusable()){
return _450;
}
_450=this._getSiblingOfChild(_450,dir);
}
return null;
}});
}
if(!dojo._hasResource["dijit.layout._LayoutWidget"]){
dojo._hasResource["dijit.layout._LayoutWidget"]=true;
dojo.provide("dijit.layout._LayoutWidget");
dojo.declare("dijit.layout._LayoutWidget",[dijit._Widget,dijit._Container,dijit._Contained],{isLayoutContainer:true,postCreate:function(){
dojo.addClass(this.domNode,"dijitContainer");
},startup:function(){
if(this._started){
return;
}
dojo.forEach(this.getChildren(),function(_452){
_452.startup();
});
if(!this.getParent||!this.getParent()){
this.resize();
this.connect(window,"onresize",function(){
this.resize();
});
}
this.inherited(arguments);
},resize:function(args){
var node=this.domNode;
if(args){
dojo.marginBox(node,args);
if(args.t){
node.style.top=args.t+"px";
}
if(args.l){
node.style.left=args.l+"px";
}
}
var mb=dojo.mixin(dojo.marginBox(node),args||{});
this._contentBox=dijit.layout.marginBox2contentBox(node,mb);
this.layout();
},layout:function(){
}});
dijit.layout.marginBox2contentBox=function(node,mb){
var cs=dojo.getComputedStyle(node);
var me=dojo._getMarginExtents(node,cs);
var pb=dojo._getPadBorderExtents(node,cs);
return {l:dojo._toPixelValue(node,cs.paddingLeft),t:dojo._toPixelValue(node,cs.paddingTop),w:mb.w-(me.w+pb.w),h:mb.h-(me.h+pb.h)};
};
(function(){
var _453=function(word){
return word.substring(0,1).toUpperCase()+word.substring(1);
};
var size=function(_454,dim){
_454.resize?_454.resize(dim):dojo.marginBox(_454.domNode,dim);
dojo.mixin(_454,dojo.marginBox(_454.domNode));
dojo.mixin(_454,dim);
};
dijit.layout.layoutChildren=function(_455,dim,_456){
dim=dojo.mixin({},dim);
dojo.addClass(_455,"dijitLayoutContainer");
_456=dojo.filter(_456,function(item){
return item.layoutAlign!="client";
}).concat(dojo.filter(_456,function(item){
return item.layoutAlign=="client";
}));
dojo.forEach(_456,function(_457){
var elm=_457.domNode,pos=_457.layoutAlign;
var _458=elm.style;
_458.left=dim.l+"px";
_458.top=dim.t+"px";
_458.bottom=_458.right="auto";
dojo.addClass(elm,"dijitAlign"+_453(pos));
if(pos=="top"||pos=="bottom"){
size(_457,{w:dim.w});
dim.h-=_457.h;
if(pos=="top"){
dim.t+=_457.h;
}else{
_458.top=dim.t+dim.h+"px";
}
}else{
if(pos=="left"||pos=="right"){
size(_457,{h:dim.h});
dim.w-=_457.w;
if(pos=="left"){
dim.l+=_457.w;
}else{
_458.left=dim.l+dim.w+"px";
}
}else{
if(pos=="client"){
size(_457,dim);
}
}
}
});
};
})();
}
if(!dojo._hasResource["dijit.form._FormWidget"]){
dojo._hasResource["dijit.form._FormWidget"]=true;
dojo.provide("dijit.form._FormWidget");
dojo.declare("dijit.form._FormWidget",[dijit._Widget,dijit._Templated],{baseClass:"",name:"",alt:"",value:"",type:"text",tabIndex:"0",disabled:false,readOnly:false,intermediateChanges:false,attributeMap:dojo.mixin(dojo.clone(dijit._Widget.prototype.attributeMap),{value:"focusNode",disabled:"focusNode",readOnly:"focusNode",id:"focusNode",tabIndex:"focusNode",alt:"focusNode"}),setAttribute:function(attr,_459){
this.inherited(arguments);
switch(attr){
case "disabled":
var _45a=this[this.attributeMap["tabIndex"]||"domNode"];
if(_459){
this._hovering=false;
this._active=false;
_45a.removeAttribute("tabIndex");
}else{
_45a.setAttribute("tabIndex",this.tabIndex);
}
dijit.setWaiState(this[this.attributeMap["disabled"]||"domNode"],"disabled",_459);
this._setStateClass();
}
},setDisabled:function(_45b){
dojo.deprecated("setDisabled("+_45b+") is deprecated. Use setAttribute('disabled',"+_45b+") instead.","","2.0");
this.setAttribute("disabled",_45b);
},_onMouse:function(_45c){
var _45d=_45c.currentTarget;
if(_45d&&_45d.getAttribute){
this.stateModifier=_45d.getAttribute("stateModifier")||"";
}
if(!this.disabled){
switch(_45c.type){
case "mouseenter":
case "mouseover":
this._hovering=true;
this._active=this._mouseDown;
break;
case "mouseout":
case "mouseleave":
this._hovering=false;
this._active=false;
break;
case "mousedown":
this._active=true;
this._mouseDown=true;
var _45e=this.connect(dojo.body(),"onmouseup",function(){
this._active=false;
this._mouseDown=false;
this._setStateClass();
this.disconnect(_45e);
});
if(this.isFocusable()){
this.focus();
}
break;
}
this._setStateClass();
}
},isFocusable:function(){
return !this.disabled&&!this.readOnly&&this.focusNode&&(dojo.style(this.domNode,"display")!="none");
},focus:function(){
setTimeout(dojo.hitch(this,dijit.focus,this.focusNode),0);
},_setStateClass:function(){
if(!("staticClass" in this)){
this.staticClass=(this.stateNode||this.domNode).className;
}
var _45f=[this.baseClass];
function _460(_461){
_45f=_45f.concat(dojo.map(_45f,function(c){
return c+_461;
}),"dijit"+_461);
};
if(this.checked){
_460("Checked");
}
if(this.state){
_460(this.state);
}
if(this.selected){
_460("Selected");
}
if(this.disabled){
_460("Disabled");
}else{
if(this.readOnly){
_460("ReadOnly");
}else{
if(this._active){
_460(this.stateModifier+"Active");
}else{
if(this._focused){
_460("Focused");
}
if(this._hovering){
_460(this.stateModifier+"Hover");
}
}
}
}
(this.stateNode||this.domNode).className=this.staticClass+" "+_45f.join(" ");
},onChange:function(_462){
},_onChangeMonitor:"value",_onChangeActive:false,_handleOnChange:function(_463,_464){
this._lastValue=_463;
if(this._lastValueReported==undefined&&(_464===null||!this._onChangeActive)){
this._resetValue=this._lastValueReported=_463;
}
if((this.intermediateChanges||_464||_464===undefined)&&((_463&&_463.toString)?_463.toString():_463)!==((this._lastValueReported&&this._lastValueReported.toString)?this._lastValueReported.toString():this._lastValueReported)){
this._lastValueReported=_463;
if(this._onChangeActive){
this.onChange(_463);
}
}
},reset:function(){
this._hasBeenBlurred=false;
if(this.setValue&&!this._getValueDeprecated){
this.setValue(this._resetValue,true);
}else{
if(this._onChangeMonitor){
this.setAttribute(this._onChangeMonitor,(this._resetValue!==undefined&&this._resetValue!==null)?this._resetValue:"");
}
}
},create:function(){
this.inherited(arguments);
this._onChangeActive=true;
this._setStateClass();
},destroy:function(){
if(this._layoutHackHandle){
clearTimeout(this._layoutHackHandle);
}
this.inherited(arguments);
},setValue:function(_465){
dojo.deprecated("dijit.form._FormWidget:setValue("+_465+") is deprecated.  Use setAttribute('value',"+_465+") instead.","","2.0");
this.setAttribute("value",_465);
},_getValueDeprecated:true,getValue:function(){
dojo.deprecated("dijit.form._FormWidget:getValue() is deprecated.  Use widget.value instead.","","2.0");
return this.value;
},_layoutHack:function(){
if(dojo.isFF==2){
var node=this.domNode;
var old=node.style.opacity;
node.style.opacity="0.999";
this._layoutHackHandle=setTimeout(dojo.hitch(this,function(){
this._layoutHackHandle=null;
node.style.opacity=old;
}),0);
}
}});
dojo.declare("dijit.form._FormValueWidget",dijit.form._FormWidget,{attributeMap:dojo.mixin(dojo.clone(dijit.form._FormWidget.prototype.attributeMap),{value:""}),postCreate:function(){
this.setValue(this.value,null);
},setValue:function(_466,_467){
this.value=_466;
this._handleOnChange(_466,_467);
},_getValueDeprecated:false,getValue:function(){
return this._lastValue;
},undo:function(){
this.setValue(this._lastValueReported,false);
},_valueChanged:function(){
var v=this.getValue();
var lv=this._lastValueReported;
return ((v!==null&&(v!==undefined)&&v.toString)?v.toString():"")!==((lv!==null&&(lv!==undefined)&&lv.toString)?lv.toString():"");
},_onKeyPress:function(e){
if(e.keyCode==dojo.keys.ESCAPE&&!e.shiftKey&&!e.ctrlKey&&!e.altKey){
if(this._valueChanged()){
this.undo();
dojo.stopEvent(e);
return false;
}
}
return true;
}});
}
if(!dojo._hasResource["dijit.form.Button"]){
dojo._hasResource["dijit.form.Button"]=true;
dojo.provide("dijit.form.Button");
dojo.declare("dijit.form.Button",dijit.form._FormWidget,{label:"",showLabel:true,iconClass:"",type:"button",baseClass:"dijitButton",templateString:"<div class=\"dijit dijitReset dijitLeft dijitInline\"\r\n\tdojoAttachEvent=\"onclick:_onButtonClick,onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\"\r\n\twaiRole=\"presentation\"\r\n\t><button class=\"dijitReset dijitStretch dijitButtonNode dijitButtonContents\" dojoAttachPoint=\"focusNode,titleNode\"\r\n\t\ttype=\"${type}\" waiRole=\"button\" waiState=\"labelledby-${id}_label\"\r\n\t\t><span class=\"dijitReset dijitInline ${iconClass}\" dojoAttachPoint=\"iconNode\" \r\n \t\t\t><span class=\"dijitReset dijitToggleButtonIconChar\">&#10003;</span \r\n\t\t></span\r\n\t\t><div class=\"dijitReset dijitInline\"><center class=\"dijitReset dijitButtonText\" id=\"${id}_label\" dojoAttachPoint=\"containerNode\">${label}</center></div\r\n\t></button\r\n></div>\r\n",_onChangeMonitor:"",_onClick:function(e){
if(this.disabled||this.readOnly){
dojo.stopEvent(e);
return false;
}
this._clicked();
return this.onClick(e);
},_onButtonClick:function(e){
if(this._onClick(e)===false){
dojo.stopEvent(e);
}else{
if(this.type=="submit"&&!this.focusNode.form){
for(var node=this.domNode;node.parentNode;node=node.parentNode){
var _468=dijit.byNode(node);
if(_468&&typeof _468._onSubmit=="function"){
_468._onSubmit(e);
break;
}
}
}
}
},postCreate:function(){
if(this.showLabel==false){
var _469="";
this.label=this.containerNode.innerHTML;
_469=dojo.trim(this.containerNode.innerText||this.containerNode.textContent||"");
this.titleNode.title=_469;
dojo.addClass(this.containerNode,"dijitDisplayNone");
}
dojo.setSelectable(this.focusNode,false);
this.inherited(arguments);
},onClick:function(e){
return true;
},_clicked:function(e){
},setLabel:function(_46a){
this.containerNode.innerHTML=this.label=_46a;
this._layoutHack();
if(this.showLabel==false){
this.titleNode.title=dojo.trim(this.containerNode.innerText||this.containerNode.textContent||"");
}
}});
dojo.declare("dijit.form.DropDownButton",[dijit.form.Button,dijit._Container],{baseClass:"dijitDropDownButton",templateString:"<div class=\"dijit dijitReset dijitLeft dijitInline\"\r\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse,onclick:_onDropDownClick,onkeydown:_onDropDownKeydown,onblur:_onDropDownBlur,onkeypress:_onKey\"\r\n\twaiRole=\"presentation\"\r\n\t><div class='dijitReset dijitRight' waiRole=\"presentation\"\r\n\t><button class=\"dijitReset dijitStretch dijitButtonNode dijitButtonContents\" type=\"${type}\"\r\n\t\tdojoAttachPoint=\"focusNode,titleNode\" waiRole=\"button\" waiState=\"haspopup-true,labelledby-${id}_label\"\r\n\t\t><div class=\"dijitReset dijitInline ${iconClass}\" dojoAttachPoint=\"iconNode\" waiRole=\"presentation\"></div\r\n\t\t><div class=\"dijitReset dijitInline dijitButtonText\"  dojoAttachPoint=\"containerNode,popupStateNode\" waiRole=\"presentation\"\r\n\t\t\tid=\"${id}_label\">${label}</div\r\n\t\t><div class=\"dijitReset dijitInline dijitArrowButtonInner\" waiRole=\"presentation\">&thinsp;</div\r\n\t\t><div class=\"dijitReset dijitInline dijitArrowButtonChar\" waiRole=\"presentation\">&#9660;</div\r\n\t></button\r\n></div></div>\r\n",_fillContent:function(){
if(this.srcNodeRef){
var _46b=dojo.query("*",this.srcNodeRef);
dijit.form.DropDownButton.superclass._fillContent.call(this,_46b[0]);
this.dropDownContainer=this.srcNodeRef;
}
},startup:function(){
if(this._started){
return;
}
if(!this.dropDown){
var _46c=dojo.query("[widgetId]",this.dropDownContainer)[0];
this.dropDown=dijit.byNode(_46c);
delete this.dropDownContainer;
}
dijit.popup.prepare(this.dropDown.domNode);
this.inherited(arguments);
},destroyDescendants:function(){
if(this.dropDown){
this.dropDown.destroyRecursive();
delete this.dropDown;
}
this.inherited(arguments);
},_onArrowClick:function(e){
if(this.disabled||this.readOnly){
return;
}
this._toggleDropDown();
},_onDropDownClick:function(e){
var _46d=dojo.isFF&&dojo.isFF<3&&navigator.appVersion.indexOf("Macintosh")!=-1;
if(!_46d||e.detail!=0||this._seenKeydown){
this._onArrowClick(e);
}
this._seenKeydown=false;
},_onDropDownKeydown:function(e){
this._seenKeydown=true;
},_onDropDownBlur:function(e){
this._seenKeydown=false;
},_onKey:function(e){
if(this.disabled||this.readOnly){
return;
}
if(e.keyCode==dojo.keys.DOWN_ARROW){
if(!this.dropDown||this.dropDown.domNode.style.visibility=="hidden"){
dojo.stopEvent(e);
this._toggleDropDown();
}
}
},_onBlur:function(){
this._closeDropDown();
this.inherited(arguments);
},_toggleDropDown:function(){
if(this.disabled||this.readOnly){
return;
}
dijit.focus(this.popupStateNode);
var _46e=this.dropDown;
if(!_46e){
return;
}
if(!this._opened){
if(_46e.href&&!_46e.isLoaded){
var self=this;
var _46f=dojo.connect(_46e,"onLoad",function(){
dojo.disconnect(_46f);
self._openDropDown();
});
_46e._loadCheck(true);
return;
}else{
this._openDropDown();
}
}else{
this._closeDropDown();
}
},_openDropDown:function(){
var _470=this.dropDown;
var _471=_470.domNode.style.width;
var self=this;
dijit.popup.open({parent:this,popup:_470,around:this.domNode,orient:this.isLeftToRight()?{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"}:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"},onExecute:function(){
self._closeDropDown(true);
},onCancel:function(){
self._closeDropDown(true);
},onClose:function(){
_470.domNode.style.width=_471;
self.popupStateNode.removeAttribute("popupActive");
this._opened=false;
}});
if(this.domNode.offsetWidth>_470.domNode.offsetWidth){
var _472=null;
if(!this.isLeftToRight()){
_472=_470.domNode.parentNode;
var _473=_472.offsetLeft+_472.offsetWidth;
}
dojo.marginBox(_470.domNode,{w:this.domNode.offsetWidth});
if(_472){
_472.style.left=_473-this.domNode.offsetWidth+"px";
}
}
this.popupStateNode.setAttribute("popupActive","true");
this._opened=true;
if(_470.focus){
_470.focus();
}
},_closeDropDown:function(_474){
if(this._opened){
dijit.popup.close(this.dropDown);
if(_474){
this.focus();
}
this._opened=false;
}
}});
dojo.declare("dijit.form.ComboButton",dijit.form.DropDownButton,{templateString:"<table class='dijit dijitReset dijitInline dijitLeft'\r\n\tcellspacing='0' cellpadding='0' waiRole=\"presentation\"\r\n\t><tbody waiRole=\"presentation\"><tr waiRole=\"presentation\"\r\n\t\t><td\tclass=\"dijitReset dijitStretch dijitButtonContents dijitButtonNode\"\r\n\t\t\ttabIndex=\"${tabIndex}\"\r\n\t\t\tdojoAttachEvent=\"ondijitclick:_onButtonClick,onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\"  dojoAttachPoint=\"titleNode\"\r\n\t\t\twaiRole=\"button\" waiState=\"labelledby-${id}_label\"\r\n\t\t\t><div class=\"dijitReset dijitInline ${iconClass}\" dojoAttachPoint=\"iconNode\" waiRole=\"presentation\"></div\r\n\t\t\t><div class=\"dijitReset dijitInline dijitButtonText\" id=\"${id}_label\" dojoAttachPoint=\"containerNode\" waiRole=\"presentation\">${label}</div\r\n\t\t></td\r\n\t\t><td class='dijitReset dijitStretch dijitButtonNode dijitArrowButton dijitDownArrowButton'\r\n\t\t\tdojoAttachPoint=\"popupStateNode,focusNode\"\r\n\t\t\tdojoAttachEvent=\"ondijitclick:_onArrowClick, onkeypress:_onKey,onmouseenter:_onMouse,onmouseleave:_onMouse\"\r\n\t\t\tstateModifier=\"DownArrow\"\r\n\t\t\ttitle=\"${optionsTitle}\" name=\"${name}\"\r\n\t\t\twaiRole=\"button\" waiState=\"haspopup-true\"\r\n\t\t\t><div class=\"dijitReset dijitArrowButtonInner\" waiRole=\"presentation\">&thinsp;</div\r\n\t\t\t><div class=\"dijitReset dijitArrowButtonChar\" waiRole=\"presentation\">&#9660;</div\r\n\t\t></td\r\n\t></tr></tbody\r\n></table>\r\n",attributeMap:dojo.mixin(dojo.clone(dijit.form._FormWidget.prototype.attributeMap),{id:"",name:""}),optionsTitle:"",baseClass:"dijitComboButton",_focusedNode:null,postCreate:function(){
this.inherited(arguments);
this._focalNodes=[this.titleNode,this.popupStateNode];
dojo.forEach(this._focalNodes,dojo.hitch(this,function(node){
if(dojo.isIE){
this.connect(node,"onactivate",this._onNodeFocus);
this.connect(node,"ondeactivate",this._onNodeBlur);
}else{
this.connect(node,"onfocus",this._onNodeFocus);
this.connect(node,"onblur",this._onNodeBlur);
}
}));
},focusFocalNode:function(node){
this._focusedNode=node;
dijit.focus(node);
},hasNextFocalNode:function(){
return this._focusedNode!==this.getFocalNodes()[1];
},focusNext:function(){
this._focusedNode=this.getFocalNodes()[this._focusedNode?1:0];
dijit.focus(this._focusedNode);
},hasPrevFocalNode:function(){
return this._focusedNode!==this.getFocalNodes()[0];
},focusPrev:function(){
this._focusedNode=this.getFocalNodes()[this._focusedNode?0:1];
dijit.focus(this._focusedNode);
},getFocalNodes:function(){
return this._focalNodes;
},_onNodeFocus:function(evt){
this._focusedNode=evt.currentTarget;
var fnc=this._focusedNode==this.focusNode?"dijitDownArrowButtonFocused":"dijitButtonContentsFocused";
dojo.addClass(this._focusedNode,fnc);
},_onNodeBlur:function(evt){
var fnc=evt.currentTarget==this.focusNode?"dijitDownArrowButtonFocused":"dijitButtonContentsFocused";
dojo.removeClass(evt.currentTarget,fnc);
},_onBlur:function(){
this.inherited(arguments);
this._focusedNode=null;
}});
dojo.declare("dijit.form.ToggleButton",dijit.form.Button,{baseClass:"dijitToggleButton",checked:false,_onChangeMonitor:"checked",attributeMap:dojo.mixin(dojo.clone(dijit.form.Button.prototype.attributeMap),{checked:"focusNode"}),_clicked:function(evt){
this.setAttribute("checked",!this.checked);
},setAttribute:function(attr,_475){
this.inherited(arguments);
switch(attr){
case "checked":
dijit.setWaiState(this.focusNode||this.domNode,"pressed",this.checked);
this._setStateClass();
this._handleOnChange(this.checked,true);
}
},setChecked:function(_476){
dojo.deprecated("setChecked("+_476+") is deprecated. Use setAttribute('checked',"+_476+") instead.","","2.0");
this.setAttribute("checked",_476);
},postCreate:function(){
this.inherited(arguments);
this.setAttribute("checked",this.checked);
}});
}
if(!dojo._hasResource["dijit.Menu"]){
dojo._hasResource["dijit.Menu"]=true;
dojo.provide("dijit.Menu");
dojo.declare("dijit.Menu",[dijit._Widget,dijit._Templated,dijit._KeyNavContainer],{constructor:function(){
this._bindings=[];
},templateString:"<table class=\"dijit dijitMenu dijitReset dijitMenuTable\" waiRole=\"menu\" dojoAttachEvent=\"onkeypress:_onKeyPress\">"+"<tbody class=\"dijitReset\" dojoAttachPoint=\"containerNode\"></tbody>"+"</table>",targetNodeIds:[],contextMenuForWindow:false,leftClickToOpen:false,parentMenu:null,popupDelay:500,_contextMenuWithMouse:false,postCreate:function(){
if(this.contextMenuForWindow){
this.bindDomNode(dojo.body());
}else{
dojo.forEach(this.targetNodeIds,this.bindDomNode,this);
}
this.connectKeyNavHandlers([dojo.keys.UP_ARROW],[dojo.keys.DOWN_ARROW]);
},startup:function(){
if(this._started){
return;
}
dojo.forEach(this.getChildren(),function(_477){
_477.startup();
});
this.startupKeyNavChildren();
this.inherited(arguments);
},onExecute:function(){
},onCancel:function(_478){
},_moveToPopup:function(evt){
if(this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled){
this.focusedChild._onClick(evt);
}
},_onKeyPress:function(evt){
if(evt.ctrlKey||evt.altKey){
return;
}
switch(evt.keyCode){
case dojo.keys.RIGHT_ARROW:
this._moveToPopup(evt);
dojo.stopEvent(evt);
break;
case dojo.keys.LEFT_ARROW:
if(this.parentMenu){
this.onCancel(false);
}else{
dojo.stopEvent(evt);
}
break;
}
},onItemHover:function(item){
this.focusChild(item);
if(this.focusedChild.popup&&!this.focusedChild.disabled&&!this.hover_timer){
this.hover_timer=setTimeout(dojo.hitch(this,"_openPopup"),this.popupDelay);
}
},_onChildBlur:function(item){
dijit.popup.close(item.popup);
item._blur();
this._stopPopupTimer();
},onItemUnhover:function(item){
},_stopPopupTimer:function(){
if(this.hover_timer){
clearTimeout(this.hover_timer);
this.hover_timer=null;
}
},_getTopMenu:function(){
for(var top=this;top.parentMenu;top=top.parentMenu){
}
return top;
},onItemClick:function(item,evt){
if(item.disabled){
return false;
}
if(item.popup){
if(!this.is_open){
this._openPopup();
}
}else{
this.onExecute();
item.onClick(evt);
}
},_iframeContentWindow:function(_479){
var win=dijit.getDocumentWindow(dijit.Menu._iframeContentDocument(_479))||dijit.Menu._iframeContentDocument(_479)["__parent__"]||(_479.name&&dojo.doc.frames[_479.name])||null;
return win;
},_iframeContentDocument:function(_47a){
var doc=_47a.contentDocument||(_47a.contentWindow&&_47a.contentWindow.document)||(_47a.name&&dojo.doc.frames[_47a.name]&&dojo.doc.frames[_47a.name].document)||null;
return doc;
},bindDomNode:function(node){
node=dojo.byId(node);
var win=dijit.getDocumentWindow(node.ownerDocument);
if(node.tagName.toLowerCase()=="iframe"){
win=this._iframeContentWindow(node);
node=dojo.withGlobal(win,dojo.body);
}
var cn=(node==dojo.body()?dojo.doc:node);
node[this.id]=this._bindings.push([dojo.connect(cn,(this.leftClickToOpen)?"onclick":"oncontextmenu",this,"_openMyself"),dojo.connect(cn,"onkeydown",this,"_contextKey"),dojo.connect(cn,"onmousedown",this,"_contextMouse")]);
},unBindDomNode:function(_47b){
var node=dojo.byId(_47b);
if(node){
var bid=node[this.id]-1,b=this._bindings[bid];
dojo.forEach(b,dojo.disconnect);
delete this._bindings[bid];
}
},_contextKey:function(e){
this._contextMenuWithMouse=false;
if(e.keyCode==dojo.keys.F10){
dojo.stopEvent(e);
if(e.shiftKey&&e.type=="keydown"){
var _47c={target:e.target,pageX:e.pageX,pageY:e.pageY};
_47c.preventDefault=_47c.stopPropagation=function(){
};
window.setTimeout(dojo.hitch(this,function(){
this._openMyself(_47c);
}),1);
}
}
},_contextMouse:function(e){
this._contextMenuWithMouse=true;
},_openMyself:function(e){
if(this.leftClickToOpen&&e.button>0){
return;
}
dojo.stopEvent(e);
var x,y;
if(dojo.isSafari||this._contextMenuWithMouse){
x=e.pageX;
y=e.pageY;
}else{
var _47d=dojo.coords(e.target,true);
x=_47d.x+10;
y=_47d.y+10;
}
var self=this;
var _47e=dijit.getFocus(this);
function _47f(){
dijit.focus(_47e);
dijit.popup.close(self);
};
dijit.popup.open({popup:this,x:x,y:y,onExecute:_47f,onCancel:_47f,orient:this.isLeftToRight()?"L":"R"});
this.focus();
this._onBlur=function(){
this.inherited("_onBlur",arguments);
dijit.popup.close(this);
};
},onOpen:function(e){
this.isShowingNow=true;
},onClose:function(){
this._stopPopupTimer();
this.parentMenu=null;
this.isShowingNow=false;
this.currentPopup=null;
if(this.focusedChild){
this._onChildBlur(this.focusedChild);
this.focusedChild=null;
}
},_openPopup:function(){
this._stopPopupTimer();
var _480=this.focusedChild;
var _481=_480.popup;
if(_481.isShowingNow){
return;
}
_481.parentMenu=this;
var self=this;
dijit.popup.open({parent:this,popup:_481,around:_480.arrowCell,orient:this.isLeftToRight()?{"TR":"TL","TL":"TR"}:{"TL":"TR","TR":"TL"},onCancel:function(){
dijit.popup.close(_481);
_480.focus();
self.currentPopup=null;
}});
this.currentPopup=_481;
if(_481.focus){
_481.focus();
}
},uninitialize:function(){
dojo.forEach(this.targetNodeIds,this.unBindDomNode,this);
this.inherited(arguments);
}});
dojo.declare("dijit.MenuItem",[dijit._Widget,dijit._Templated,dijit._Contained],{templateString:"<tr class=\"dijitReset dijitMenuItem\" "+"dojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">"+"<td class=\"dijitReset\"><div class=\"dijitMenuItemIcon ${iconClass}\" dojoAttachPoint=\"iconNode\"></div></td>"+"<td tabIndex=\"-1\" class=\"dijitReset dijitMenuItemLabel\" dojoAttachPoint=\"containerNode,focusNode\" waiRole=\"menuitem\"></td>"+"<td class=\"dijitReset\" dojoAttachPoint=\"arrowCell\">"+"<div class=\"dijitMenuExpand\" dojoAttachPoint=\"expand\" style=\"display:none\">"+"<span class=\"dijitInline dijitArrowNode dijitMenuExpandInner\">+</span>"+"</div>"+"</td>"+"</tr>",label:"",iconClass:"",disabled:false,postCreate:function(){
dojo.setSelectable(this.domNode,false);
this.setDisabled(this.disabled);
if(this.label){
this.setLabel(this.label);
}
},_onHover:function(){
this.getParent().onItemHover(this);
},_onUnhover:function(){
this.getParent().onItemUnhover(this);
},_onClick:function(evt){
this.getParent().onItemClick(this,evt);
dojo.stopEvent(evt);
},onClick:function(evt){
},focus:function(){
dojo.addClass(this.domNode,"dijitMenuItemHover");
try{
dijit.focus(this.containerNode);
}
catch(e){
}
},_blur:function(){
dojo.removeClass(this.domNode,"dijitMenuItemHover");
},setLabel:function(_482){
this.containerNode.innerHTML=this.label=_482;
},setDisabled:function(_483){
this.disabled=_483;
dojo[_483?"addClass":"removeClass"](this.domNode,"dijitMenuItemDisabled");
dijit.setWaiState(this.containerNode,"disabled",_483?"true":"false");
}});
dojo.declare("dijit.PopupMenuItem",dijit.MenuItem,{_fillContent:function(){
if(this.srcNodeRef){
var _484=dojo.query("*",this.srcNodeRef);
dijit.PopupMenuItem.superclass._fillContent.call(this,_484[0]);
this.dropDownContainer=this.srcNodeRef;
}
},startup:function(){
if(this._started){
return;
}
this.inherited(arguments);
if(!this.popup){
var node=dojo.query("[widgetId]",this.dropDownContainer)[0];
this.popup=dijit.byNode(node);
}
dojo.body().appendChild(this.popup.domNode);
this.popup.domNode.style.display="none";
dojo.addClass(this.expand,"dijitMenuExpandEnabled");
dojo.style(this.expand,"display","");
dijit.setWaiState(this.containerNode,"haspopup","true");
},destroyDescendants:function(){
if(this.popup){
this.popup.destroyRecursive();
delete this.popup;
}
this.inherited(arguments);
}});
dojo.declare("dijit.MenuSeparator",[dijit._Widget,dijit._Templated,dijit._Contained],{templateString:"<tr class=\"dijitMenuSeparator\"><td colspan=3>"+"<div class=\"dijitMenuSeparatorTop\"></div>"+"<div class=\"dijitMenuSeparatorBottom\"></div>"+"</td></tr>",postCreate:function(){
dojo.setSelectable(this.domNode,false);
},isFocusable:function(){
return false;
}});
}
if(!dojo._hasResource["dojo.i18n"]){
dojo._hasResource["dojo.i18n"]=true;
dojo.provide("dojo.i18n");
dojo.i18n.getLocalization=function(_485,_486,_487){
_487=dojo.i18n.normalizeLocale(_487);
var _488=_487.split("-");
var _489=[_485,"nls",_486].join(".");
var _48a=dojo._loadedModules[_489];
if(_48a){
var _48b;
for(var i=_488.length;i>0;i--){
var loc=_488.slice(0,i).join("_");
if(_48a[loc]){
_48b=_48a[loc];
break;
}
}
if(!_48b){
_48b=_48a.ROOT;
}
if(_48b){
var _48c=function(){
};
_48c.prototype=_48b;
return new _48c();
}
}
throw new Error("Bundle not found: "+_486+" in "+_485+" , locale="+_487);
};
dojo.i18n.normalizeLocale=function(_48d){
var _48e=_48d?_48d.toLowerCase():dojo.locale;
if(_48e=="root"){
_48e="ROOT";
}
return _48e;
};
dojo.i18n._requireLocalization=function(_48f,_490,_491,_492){
var _493=dojo.i18n.normalizeLocale(_491);
var _494=[_48f,"nls",_490].join(".");
var _495="";
if(_492){
var _496=_492.split(",");
for(var i=0;i<_496.length;i++){
if(_493.indexOf(_496[i])==0){
if(_496[i].length>_495.length){
_495=_496[i];
}
}
}
if(!_495){
_495="ROOT";
}
}
var _497=_492?_495:_493;
var _498=dojo._loadedModules[_494];
var _499=null;
if(_498){
if(dojo.config.localizationComplete&&_498._built){
return;
}
var _49a=_497.replace(/-/g,"_");
var _49b=_494+"."+_49a;
_499=dojo._loadedModules[_49b];
}
if(!_499){
_498=dojo["provide"](_494);
var syms=dojo._getModuleSymbols(_48f);
var _49c=syms.concat("nls").join("/");
var _49d;
dojo.i18n._searchLocalePath(_497,_492,function(loc){
var _49e=loc.replace(/-/g,"_");
var _49f=_494+"."+_49e;
var _4a0=false;
if(!dojo._loadedModules[_49f]){
dojo["provide"](_49f);
var _4a1=[_49c];
if(loc!="ROOT"){
_4a1.push(loc);
}
_4a1.push(_490);
var _4a2=_4a1.join("/")+".js";
_4a0=dojo._loadPath(_4a2,null,function(hash){
var _4a3=function(){
};
_4a3.prototype=_49d;
_498[_49e]=new _4a3();
for(var j in hash){
_498[_49e][j]=hash[j];
}
});
}else{
_4a0=true;
}
if(_4a0&&_498[_49e]){
_49d=_498[_49e];
}else{
_498[_49e]=_49d;
}
if(_492){
return true;
}
});
}
if(_492&&_493!=_495){
_498[_493.replace(/-/g,"_")]=_498[_495.replace(/-/g,"_")];
}
};
(function(){
var _4a4=dojo.config.extraLocale;
if(_4a4){
if(!_4a4 instanceof Array){
_4a4=[_4a4];
}
var req=dojo.i18n._requireLocalization;
dojo.i18n._requireLocalization=function(m,b,_4a5,_4a6){
req(m,b,_4a5,_4a6);
if(_4a5){
return;
}
for(var i=0;i<_4a4.length;i++){
req(m,b,_4a4[i],_4a6);
}
};
}
})();
dojo.i18n._searchLocalePath=function(_4a7,down,_4a8){
_4a7=dojo.i18n.normalizeLocale(_4a7);
var _4a9=_4a7.split("-");
var _4aa=[];
for(var i=_4a9.length;i>0;i--){
_4aa.push(_4a9.slice(0,i).join("-"));
}
_4aa.push(false);
if(down){
_4aa.reverse();
}
for(var j=_4aa.length-1;j>=0;j--){
var loc=_4aa[j]||"ROOT";
var stop=_4a8(loc);
if(stop){
break;
}
}
};
dojo.i18n._preloadLocalizations=function(_4ab,_4ac){
function _4ad(_4ae){
_4ae=dojo.i18n.normalizeLocale(_4ae);
dojo.i18n._searchLocalePath(_4ae,true,function(loc){
for(var i=0;i<_4ac.length;i++){
if(_4ac[i]==loc){
dojo["require"](_4ab+"_"+loc);
return true;
}
}
return false;
});
};
_4ad();
var _4af=dojo.config.extraLocale||[];
for(var i=0;i<_4af.length;i++){
_4ad(_4af[i]);
}
};
}
if(!dojo._hasResource["dijit.layout.StackContainer"]){
dojo._hasResource["dijit.layout.StackContainer"]=true;
dojo.provide("dijit.layout.StackContainer");
dojo.declare("dijit.layout.StackContainer",dijit.layout._LayoutWidget,{doLayout:true,_started:false,postCreate:function(){
dijit.setWaiRole((this.containerNode||this.domNode),"tabpanel");
this.connect(this.domNode,"onkeypress",this._onKeyPress);
},startup:function(){
if(this._started){
return;
}
var _4b0=this.getChildren();
dojo.forEach(_4b0,this._setupChild,this);
dojo.some(_4b0,function(_4b1){
if(_4b1.selected){
this.selectedChildWidget=_4b1;
}
return _4b1.selected;
},this);
var _4b2=this.selectedChildWidget;
if(!_4b2&&_4b0[0]){
_4b2=this.selectedChildWidget=_4b0[0];
_4b2.selected=true;
}
if(_4b2){
this._showChild(_4b2);
}
dojo.publish(this.id+"-startup",[{children:_4b0,selected:_4b2}]);
this.inherited(arguments);
},_setupChild:function(page){
page.domNode.style.display="none";
page.domNode.style.position="relative";
return page;
},addChild:function(_4b3,_4b4){
dijit._Container.prototype.addChild.apply(this,arguments);
_4b3=this._setupChild(_4b3);
if(this._started){
this.layout();
dojo.publish(this.id+"-addChild",[_4b3,_4b4]);
if(!this.selectedChildWidget){
this.selectChild(_4b3);
}
}
},removeChild:function(page){
dijit._Container.prototype.removeChild.apply(this,arguments);
if(this._beingDestroyed){
return;
}
if(this._started){
dojo.publish(this.id+"-removeChild",[page]);
this.layout();
}
if(this.selectedChildWidget===page){
this.selectedChildWidget=undefined;
if(this._started){
var _4b5=this.getChildren();
if(_4b5.length){
this.selectChild(_4b5[0]);
}
}
}
},selectChild:function(page){
page=dijit.byId(page);
if(this.selectedChildWidget!=page){
this._transition(page,this.selectedChildWidget);
this.selectedChildWidget=page;
dojo.publish(this.id+"-selectChild",[page]);
}
},_transition:function(_4b6,_4b7){
if(_4b7){
this._hideChild(_4b7);
}
this._showChild(_4b6);
if(this.doLayout&&_4b6.resize){
_4b6.resize(this._containerContentBox||this._contentBox);
}
},_adjacent:function(_4b8){
var _4b9=this.getChildren();
var _4ba=dojo.indexOf(_4b9,this.selectedChildWidget);
_4ba+=_4b8?1:_4b9.length-1;
return _4b9[_4ba%_4b9.length];
},forward:function(){
this.selectChild(this._adjacent(true));
},back:function(){
this.selectChild(this._adjacent(false));
},_onKeyPress:function(e){
dojo.publish(this.id+"-containerKeyPress",[{e:e,page:this}]);
},layout:function(){
if(this.doLayout&&this.selectedChildWidget&&this.selectedChildWidget.resize){
this.selectedChildWidget.resize(this._contentBox);
}
},_showChild:function(page){
var _4bb=this.getChildren();
page.isFirstChild=(page==_4bb[0]);
page.isLastChild=(page==_4bb[_4bb.length-1]);
page.selected=true;
page.domNode.style.display="";
if(page._loadCheck){
page._loadCheck();
}
if(page.onShow){
page.onShow();
}
},_hideChild:function(page){
page.selected=false;
page.domNode.style.display="none";
if(page.onHide){
page.onHide();
}
},closeChild:function(page){
var _4bc=page.onClose(this,page);
if(_4bc){
this.removeChild(page);
page.destroyRecursive();
}
},destroy:function(){
this._beingDestroyed=true;
this.inherited(arguments);
}});
dojo.declare("dijit.layout.StackController",[dijit._Widget,dijit._Templated,dijit._Container],{templateString:"<span wairole='tablist' dojoAttachEvent='onkeypress' class='dijitStackController'></span>",containerId:"",buttonWidget:"dijit.layout._StackButton",postCreate:function(){
dijit.setWaiRole(this.domNode,"tablist");
this.pane2button={};
this.pane2menu={};
this._subscriptions=[dojo.subscribe(this.containerId+"-startup",this,"onStartup"),dojo.subscribe(this.containerId+"-addChild",this,"onAddChild"),dojo.subscribe(this.containerId+"-removeChild",this,"onRemoveChild"),dojo.subscribe(this.containerId+"-selectChild",this,"onSelectChild"),dojo.subscribe(this.containerId+"-containerKeyPress",this,"onContainerKeyPress")];
},onStartup:function(info){
dojo.forEach(info.children,this.onAddChild,this);
this.onSelectChild(info.selected);
},destroy:function(){
for(var pane in this.pane2button){
this.onRemoveChild(pane);
}
dojo.forEach(this._subscriptions,dojo.unsubscribe);
this.inherited(arguments);
},onAddChild:function(page,_4bd){
var _4be=dojo.doc.createElement("span");
this.domNode.appendChild(_4be);
var cls=dojo.getObject(this.buttonWidget);
var _4bf=new cls({label:page.title,closeButton:page.closable},_4be);
this.addChild(_4bf,_4bd);
this.pane2button[page]=_4bf;
page.controlButton=_4bf;
dojo.connect(_4bf,"onClick",dojo.hitch(this,"onButtonClick",page));
if(page.closable){
dojo.connect(_4bf,"onClickCloseButton",dojo.hitch(this,"onCloseButtonClick",page));
var _4c0=dojo.i18n.getLocalization("dijit","common");
var _4c1=new dijit.Menu({targetNodeIds:[_4bf.id],id:_4bf.id+"_Menu"});
var _4c2=new dijit.MenuItem({label:_4c0.itemClose});
dojo.connect(_4c2,"onClick",dojo.hitch(this,"onCloseButtonClick",page));
_4c1.addChild(_4c2);
this.pane2menu[page]=_4c1;
}
if(!this._currentChild){
_4bf.focusNode.setAttribute("tabIndex","0");
this._currentChild=page;
}
if(!this.isLeftToRight()&&dojo.isIE&&this._rectifyRtlTabList){
this._rectifyRtlTabList();
}
},onRemoveChild:function(page){
if(this._currentChild===page){
this._currentChild=null;
}
var _4c3=this.pane2button[page];
var menu=this.pane2menu[page];
if(menu){
menu.destroy();
}
if(_4c3){
_4c3.destroy();
}
this.pane2button[page]=null;
},onSelectChild:function(page){
if(!page){
return;
}
if(this._currentChild){
var _4c4=this.pane2button[this._currentChild];
_4c4.setAttribute("checked",false);
_4c4.focusNode.setAttribute("tabIndex","-1");
}
var _4c5=this.pane2button[page];
_4c5.setAttribute("checked",true);
this._currentChild=page;
_4c5.focusNode.setAttribute("tabIndex","0");
var _4c6=dijit.byId(this.containerId);
dijit.setWaiState(_4c6.containerNode||_4c6.domNode,"labelledby",_4c5.id);
},onButtonClick:function(page){
var _4c7=dijit.byId(this.containerId);
_4c7.selectChild(page);
},onCloseButtonClick:function(page){
var _4c8=dijit.byId(this.containerId);
_4c8.closeChild(page);
var b=this.pane2button[this._currentChild];
if(b){
dijit.focus(b.focusNode||b.domNode);
}
},adjacent:function(_4c9){
if(!this.isLeftToRight()&&(!this.tabPosition||/top|bottom/.test(this.tabPosition))){
_4c9=!_4c9;
}
var _4ca=this.getChildren();
var _4cb=dojo.indexOf(_4ca,this.pane2button[this._currentChild]);
var _4cc=_4c9?1:_4ca.length-1;
return _4ca[(_4cb+_4cc)%_4ca.length];
},onkeypress:function(e){
if(this.disabled||e.altKey){
return;
}
var _4cd=null;
if(e.ctrlKey||!e._djpage){
var k=dojo.keys;
switch(e.keyCode){
case k.LEFT_ARROW:
case k.UP_ARROW:
if(!e._djpage){
_4cd=false;
}
break;
case k.PAGE_UP:
if(e.ctrlKey){
_4cd=false;
}
break;
case k.RIGHT_ARROW:
case k.DOWN_ARROW:
if(!e._djpage){
_4cd=true;
}
break;
case k.PAGE_DOWN:
if(e.ctrlKey){
_4cd=true;
}
break;
case k.DELETE:
if(this._currentChild.closable){
this.onCloseButtonClick(this._currentChild);
}
dojo.stopEvent(e);
break;
default:
if(e.ctrlKey){
if(e.keyCode==k.TAB){
this.adjacent(!e.shiftKey).onClick();
dojo.stopEvent(e);
}else{
if(e.keyChar=="w"){
if(this._currentChild.closable){
this.onCloseButtonClick(this._currentChild);
}
dojo.stopEvent(e);
}
}
}
}
if(_4cd!==null){
this.adjacent(_4cd).onClick();
dojo.stopEvent(e);
}
}
},onContainerKeyPress:function(info){
info.e._djpage=info.page;
this.onkeypress(info.e);
}});
dojo.declare("dijit.layout._StackButton",dijit.form.ToggleButton,{tabIndex:"-1",postCreate:function(evt){
dijit.setWaiRole((this.focusNode||this.domNode),"tab");
this.inherited(arguments);
},onClick:function(evt){
dijit.focus(this.focusNode);
},onClickCloseButton:function(evt){
evt.stopPropagation();
}});
dojo.extend(dijit._Widget,{title:"",selected:false,closable:false,onClose:function(){
return true;
}});
}
if(!dojo._hasResource["dijit.layout.TabContainer"]){
dojo._hasResource["dijit.layout.TabContainer"]=true;
dojo.provide("dijit.layout.TabContainer");
dojo.declare("dijit.layout.TabContainer",[dijit.layout.StackContainer,dijit._Templated],{tabPosition:"top",templateString:null,templateString:"<div class=\"dijitTabContainer\">\r\n\t<div dojoAttachPoint=\"tablistNode\"></div>\r\n\t<div class=\"dijitTabPaneWrapper\" dojoAttachPoint=\"containerNode\"></div>\r\n</div>\r\n",_controllerWidget:"dijit.layout.TabController",postCreate:function(){
this.inherited(arguments);
var _4ce=dojo.getObject(this._controllerWidget);
this.tablist=new _4ce({id:this.id+"_tablist",tabPosition:this.tabPosition,doLayout:this.doLayout,containerId:this.id},this.tablistNode);
},_setupChild:function(tab){
dojo.addClass(tab.domNode,"dijitTabPane");
this.inherited(arguments);
return tab;
},startup:function(){
if(this._started){
return;
}
this.tablist.startup();
this.inherited(arguments);
if(dojo.isSafari){
setTimeout(dojo.hitch(this,"layout"),0);
}
if(dojo.isIE&&!this.isLeftToRight()&&this.tabPosition=="right-h"&&this.tablist&&this.tablist.pane2button){
for(var pane in this.tablist.pane2button){
var _4cf=this.tablist.pane2button[pane];
if(!_4cf.closeButton){
continue;
}
tabButtonStyle=_4cf.closeButtonNode.style;
tabButtonStyle.position="absolute";
if(dojo.isIE<7){
tabButtonStyle.left=_4cf.domNode.offsetWidth+"px";
}else{
tabButtonStyle.padding="0px";
}
}
}
},layout:function(){
if(!this.doLayout){
return;
}
var _4d0=this.tabPosition.replace(/-h/,"");
var _4d1=[{domNode:this.tablist.domNode,layoutAlign:_4d0},{domNode:this.containerNode,layoutAlign:"client"}];
dijit.layout.layoutChildren(this.domNode,this._contentBox,_4d1);
this._containerContentBox=dijit.layout.marginBox2contentBox(this.containerNode,_4d1[1]);
if(this.selectedChildWidget){
this._showChild(this.selectedChildWidget);
if(this.doLayout&&this.selectedChildWidget.resize){
this.selectedChildWidget.resize(this._containerContentBox);
}
}
},destroy:function(){
if(this.tablist){
this.tablist.destroy();
}
this.inherited(arguments);
}});
dojo.declare("dijit.layout.TabController",dijit.layout.StackController,{templateString:"<div wairole='tablist' dojoAttachEvent='onkeypress:onkeypress'></div>",tabPosition:"top",doLayout:true,buttonWidget:"dijit.layout._TabButton",postMixInProperties:function(){
this["class"]="dijitTabLabels-"+this.tabPosition+(this.doLayout?"":" dijitTabNoLayout");
this.inherited(arguments);
},_rectifyRtlTabList:function(){
if(0>=this.tabPosition.indexOf("-h")){
return;
}
if(!this.pane2button){
return;
}
var _4d2=0;
for(var pane in this.pane2button){
_4d2=Math.max(_4d2,dojo.marginBox(this.pane2button[pane].innerDiv).w);
}
for(pane in this.pane2button){
this.pane2button[pane].innerDiv.style.width=_4d2+"px";
}
}});
dojo.declare("dijit.layout._TabButton",dijit.layout._StackButton,{baseClass:"dijitTab",templateString:"<div waiRole=\"presentation\" dojoAttachEvent='onclick:onClick,onmouseenter:_onMouse,onmouseleave:_onMouse'>\r\n    <div waiRole=\"presentation\" class='dijitTabInnerDiv' dojoAttachPoint='innerDiv'>\r\n        <div waiRole=\"presentation\" class='dijitTabContent' dojoAttachPoint='tabContent'>\r\n\t        <span dojoAttachPoint='containerNode,focusNode' class='tabLabel'>${!label}</span>\r\n\t        <span dojoAttachPoint='closeButtonNode' class='closeImage' dojoAttachEvent='onmouseenter:_onMouse, onmouseleave:_onMouse, onclick:onClickCloseButton' stateModifier='CloseButton'>\r\n\t            <span dojoAttachPoint='closeText' class='closeText'>x</span>\r\n\t        </span>\r\n        </div>\r\n    </div>\r\n</div>\r\n",postCreate:function(){
if(this.closeButton){
dojo.addClass(this.innerDiv,"dijitClosable");
}else{
this.closeButtonNode.style.display="none";
}
this.inherited(arguments);
dojo.setSelectable(this.containerNode,false);
}});
}
if(!dojo._hasResource["dijit.layout.ContentPane"]){
dojo._hasResource["dijit.layout.ContentPane"]=true;
dojo.provide("dijit.layout.ContentPane");
dojo.declare("dijit.layout.ContentPane",dijit._Widget,{href:"",extractContent:false,parseOnLoad:true,preventCache:false,preload:false,refreshOnShow:false,loadingMessage:"<span class='dijitContentPaneLoading'>${loadingState}</span>",errorMessage:"<span class='dijitContentPaneError'>${errorState}</span>",isLoaded:false,"class":"dijitContentPane",doLayout:"auto",postCreate:function(){
this.domNode.title="";
if(!this.containerNode){
this.containerNode=this.domNode;
}
if(this.preload){
this._loadCheck();
}
var _4d3=dojo.i18n.getLocalization("dijit","loading",this.lang);
this.loadingMessage=dojo.string.substitute(this.loadingMessage,_4d3);
this.errorMessage=dojo.string.substitute(this.errorMessage,_4d3);
var _4d4=dijit.getWaiRole(this.domNode);
if(!_4d4){
dijit.setWaiRole(this.domNode,"group");
}
dojo.addClass(this.domNode,this["class"]);
},startup:function(){
if(this._started){
return;
}
if(this.doLayout!="false"&&this.doLayout!==false){
this._checkIfSingleChild();
if(this._singleChild){
this._singleChild.startup();
}
}
this._loadCheck();
this.inherited(arguments);
},_checkIfSingleChild:function(){
var _4d5=dojo.query(">",this.containerNode||this.domNode),_4d6=_4d5.filter("[widgetId]");
if(_4d5.length==1&&_4d6.length==1){
this.isContainer=true;
this._singleChild=dijit.byNode(_4d6[0]);
}else{
delete this.isContainer;
delete this._singleChild;
}
},refresh:function(){
return this._prepareLoad(true);
},setHref:function(href){
this.href=href;
return this._prepareLoad();
},setContent:function(data){
if(!this._isDownloaded){
this.href="";
this._onUnloadHandler();
}
this._setContent(data||"");
this._isDownloaded=false;
if(this.parseOnLoad){
this._createSubWidgets();
}
if(this.doLayout!="false"&&this.doLayout!==false){
this._checkIfSingleChild();
if(this._singleChild&&this._singleChild.resize){
this._singleChild.startup();
this._singleChild.resize(this._contentBox||dojo.contentBox(this.containerNode||this.domNode));
}
}
this._onLoadHandler();
},cancel:function(){
if(this._xhrDfd&&(this._xhrDfd.fired==-1)){
this._xhrDfd.cancel();
}
delete this._xhrDfd;
},destroy:function(){
if(this._beingDestroyed){
return;
}
this._onUnloadHandler();
this._beingDestroyed=true;
this.inherited("destroy",arguments);
},resize:function(size){
dojo.marginBox(this.domNode,size);
var node=this.containerNode||this.domNode,mb=dojo.mixin(dojo.marginBox(node),size||{});
this._contentBox=dijit.layout.marginBox2contentBox(node,mb);
if(this._singleChild&&this._singleChild.resize){
this._singleChild.resize(this._contentBox);
}
},_prepareLoad:function(_4d7){
this.cancel();
this.isLoaded=false;
this._loadCheck(_4d7);
},_isShown:function(){
if("open" in this){
return this.open;
}else{
var node=this.domNode;
return (node.style.display!="none")&&(node.style.visibility!="hidden");
}
},_loadCheck:function(_4d8){
var _4d9=this._isShown();
if(this.href&&(_4d8||(this.preload&&!this._xhrDfd)||(this.refreshOnShow&&_4d9&&!this._xhrDfd)||(!this.isLoaded&&_4d9&&!this._xhrDfd))){
this._downloadExternalContent();
}
},_downloadExternalContent:function(){
this._onUnloadHandler();
this._setContent(this.onDownloadStart.call(this));
var self=this;
var _4da={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};
if(dojo.isObject(this.ioArgs)){
dojo.mixin(_4da,this.ioArgs);
}
var hand=this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_4da);
hand.addCallback(function(html){
try{
self.onDownloadEnd.call(self);
self._isDownloaded=true;
self.setContent.call(self,html);
}
catch(err){
self._onError.call(self,"Content",err);
}
delete self._xhrDfd;
return html;
});
hand.addErrback(function(err){
if(!hand.cancelled){
self._onError.call(self,"Download",err);
}
delete self._xhrDfd;
return err;
});
},_onLoadHandler:function(){
this.isLoaded=true;
try{
this.onLoad.call(this);
}
catch(e){
console.error("Error "+this.widgetId+" running custom onLoad code");
}
},_onUnloadHandler:function(){
this.isLoaded=false;
this.cancel();
try{
this.onUnload.call(this);
}
catch(e){
console.error("Error "+this.widgetId+" running custom onUnload code");
}
},_setContent:function(cont){
this.destroyDescendants();
try{
var node=this.containerNode||this.domNode;
while(node.firstChild){
dojo._destroyElement(node.firstChild);
}
if(typeof cont=="string"){
if(this.extractContent){
match=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(match){
cont=match[1];
}
}
node.innerHTML=cont;
}else{
if(cont.nodeType){
node.appendChild(cont);
}else{
dojo.forEach(cont,function(n){
node.appendChild(n.cloneNode(true));
});
}
}
}
catch(e){
var _4db=this.onContentError(e);
try{
node.innerHTML=_4db;
}
catch(e){
console.error("Fatal "+this.id+" could not change content due to "+e.message,e);
}
}
},_onError:function(type,err,_4dc){
var _4dd=this["on"+type+"Error"].call(this,err);
if(_4dc){
console.error(_4dc,err);
}else{
if(_4dd){
this._setContent.call(this,_4dd);
}
}
},_createSubWidgets:function(){
var _4de=this.containerNode||this.domNode;
try{
dojo.parser.parse(_4de,true);
}
catch(e){
this._onError("Content",e,"Couldn't create widgets in "+this.id+(this.href?" from "+this.href:""));
}
},onLoad:function(e){
},onUnload:function(e){
},onDownloadStart:function(){
return this.loadingMessage;
},onContentError:function(_4df){
},onDownloadError:function(_4e0){
return this.errorMessage;
},onDownloadEnd:function(){
}});
}
if(!dojo._hasResource["dijit.layout.LayoutContainer"]){
dojo._hasResource["dijit.layout.LayoutContainer"]=true;
dojo.provide("dijit.layout.LayoutContainer");
dojo.declare("dijit.layout.LayoutContainer",dijit.layout._LayoutWidget,{constructor:function(){
dojo.deprecated("dijit.layout.LayoutContainer is deprecated","use BorderContainer instead",2);
},layout:function(){
dijit.layout.layoutChildren(this.domNode,this._contentBox,this.getChildren());
},addChild:function(_4e1,_4e2){
dijit._Container.prototype.addChild.apply(this,arguments);
if(this._started){
dijit.layout.layoutChildren(this.domNode,this._contentBox,this.getChildren());
}
},removeChild:function(_4e3){
dijit._Container.prototype.removeChild.apply(this,arguments);
if(this._started){
dijit.layout.layoutChildren(this.domNode,this._contentBox,this.getChildren());
}
}});
dojo.extend(dijit._Widget,{layoutAlign:"none"});
}
if(!dojo._hasResource["dijit.form.TextBox"]){
dojo._hasResource["dijit.form.TextBox"]=true;
dojo.provide("dijit.form.TextBox");
dojo.declare("dijit.form.TextBox",dijit.form._FormValueWidget,{trim:false,uppercase:false,lowercase:false,propercase:false,maxLength:"",templateString:"<input class=\"dijit dijitReset dijitLeft\" dojoAttachPoint='textbox,focusNode' name=\"${name}\"\r\n\tdojoAttachEvent='onmouseenter:_onMouse,onmouseleave:_onMouse,onfocus:_onMouse,onblur:_onMouse,onkeypress:_onKeyPress,onkeyup'\r\n\tautocomplete=\"off\" type=\"${type}\"\r\n\t/>\r\n",baseClass:"dijitTextBox",attributeMap:dojo.mixin(dojo.clone(dijit.form._FormValueWidget.prototype.attributeMap),{maxLength:"focusNode"}),getDisplayedValue:function(){
return this.filter(this.textbox.value);
},getValue:function(){
return this.parse(this.getDisplayedValue(),this.constraints);
},setValue:function(_4e4,_4e5,_4e6){
var _4e7=this.filter(_4e4);
if((((typeof _4e7==typeof _4e4)&&(_4e4!==undefined))||(_4e4===null))&&(_4e6==null||_4e6==undefined)){
_4e6=this.format(_4e7,this.constraints);
}
if(_4e6!=null&&_4e6!=undefined){
this.textbox.value=_4e6;
}
dijit.form.TextBox.superclass.setValue.call(this,_4e7,_4e5);
},setDisplayedValue:function(_4e8,_4e9){
this.textbox.value=_4e8;
this.setValue(this.getValue(),_4e9);
},format:function(_4ea,_4eb){
return ((_4ea==null||_4ea==undefined)?"":(_4ea.toString?_4ea.toString():_4ea));
},parse:function(_4ec,_4ed){
return _4ec;
},postCreate:function(){
this.textbox.setAttribute("value",this.getDisplayedValue());
this.inherited(arguments);
this._layoutHack();
},filter:function(val){
if(val===null||val===undefined){
return "";
}else{
if(typeof val!="string"){
return val;
}
}
if(this.trim){
val=dojo.trim(val);
}
if(this.uppercase){
val=val.toUpperCase();
}
if(this.lowercase){
val=val.toLowerCase();
}
if(this.propercase){
val=val.replace(/[^\s]+/g,function(word){
return word.substring(0,1).toUpperCase()+word.substring(1);
});
}
return val;
},_setBlurValue:function(){
this.setValue(this.getValue(),(this.isValid?this.isValid():true));
},_onBlur:function(){
this._setBlurValue();
this.inherited(arguments);
},onkeyup:function(){
}});
dijit.selectInputText=function(_4ee,_4ef,stop){
var _4f0=dojo.global;
var _4f1=dojo.doc;
_4ee=dojo.byId(_4ee);
if(isNaN(_4ef)){
_4ef=0;
}
if(isNaN(stop)){
stop=_4ee.value?_4ee.value.length:0;
}
_4ee.focus();
if(_4f1["selection"]&&dojo.body()["createTextRange"]){
if(_4ee.createTextRange){
var _4f2=_4ee.createTextRange();
with(_4f2){
collapse(true);
moveStart("character",_4ef);
moveEnd("character",stop);
select();
}
}
}else{
if(_4f0["getSelection"]){
var _4f3=_4f0.getSelection();
if(_4ee.setSelectionRange){
_4ee.setSelectionRange(_4ef,stop);
}
}
}
};
}
if(!dojo._hasResource["dijit.Tooltip"]){
dojo._hasResource["dijit.Tooltip"]=true;
dojo.provide("dijit.Tooltip");
dojo.declare("dijit._MasterTooltip",[dijit._Widget,dijit._Templated],{duration:200,templateString:"<div class=\"dijitTooltip dijitTooltipLeft\" id=\"dojoTooltip\">\r\n\t<div class=\"dijitTooltipContainer dijitTooltipContents\" dojoAttachPoint=\"containerNode\" waiRole='alert'></div>\r\n\t<div class=\"dijitTooltipConnector\"></div>\r\n</div>\r\n",postCreate:function(){
dojo.body().appendChild(this.domNode);
this.bgIframe=new dijit.BackgroundIframe(this.domNode);
this.fadeIn=dojo.fadeIn({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,"_onShow")});
this.fadeOut=dojo.fadeOut({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,"_onHide")});
},show:function(_4f4,_4f5,_4f6){
if(this.aroundNode&&this.aroundNode===_4f5){
return;
}
if(this.fadeOut.status()=="playing"){
this._onDeck=arguments;
return;
}
this.containerNode.innerHTML=_4f4;
this.domNode.style.top=(this.domNode.offsetTop+1)+"px";
var _4f7={};
var ltr=this.isLeftToRight();
dojo.forEach((_4f6&&_4f6.length)?_4f6:dijit.Tooltip.defaultPosition,function(pos){
switch(pos){
case "after":
_4f7[ltr?"BR":"BL"]=ltr?"BL":"BR";
break;
case "before":
_4f7[ltr?"BL":"BR"]=ltr?"BR":"BL";
break;
case "below":
_4f7[ltr?"BL":"BR"]=ltr?"TL":"TR";
_4f7[ltr?"BR":"BL"]=ltr?"TR":"TL";
break;
case "above":
default:
_4f7[ltr?"TL":"TR"]=ltr?"BL":"BR";
_4f7[ltr?"TR":"TL"]=ltr?"BR":"BL";
break;
}
});
var pos=dijit.placeOnScreenAroundElement(this.domNode,_4f5,_4f7,dojo.hitch(this,"orient"));
dojo.style(this.domNode,"opacity",0);
this.fadeIn.play();
this.isShowingNow=true;
this.aroundNode=_4f5;
},orient:function(node,_4f8,_4f9){
node.className="dijitTooltip "+{"BL-TL":"dijitTooltipBelow dijitTooltipABLeft","TL-BL":"dijitTooltipAbove dijitTooltipABLeft","BR-TR":"dijitTooltipBelow dijitTooltipABRight","TR-BR":"dijitTooltipAbove dijitTooltipABRight","BR-BL":"dijitTooltipRight","BL-BR":"dijitTooltipLeft"}[_4f8+"-"+_4f9];
},_onShow:function(){
if(dojo.isIE){
this.domNode.style.filter="";
}
},hide:function(_4fa){
if(!this.aroundNode||this.aroundNode!==_4fa){
return;
}
if(this._onDeck){
this._onDeck=null;
return;
}
this.fadeIn.stop();
this.isShowingNow=false;
this.aroundNode=null;
this.fadeOut.play();
},_onHide:function(){
this.domNode.style.cssText="";
if(this._onDeck){
this.show.apply(this,this._onDeck);
this._onDeck=null;
}
}});
dijit.showTooltip=function(_4fb,_4fc,_4fd){
if(!dijit._masterTT){
dijit._masterTT=new dijit._MasterTooltip();
}
return dijit._masterTT.show(_4fb,_4fc,_4fd);
};
dijit.hideTooltip=function(_4fe){
if(!dijit._masterTT){
dijit._masterTT=new dijit._MasterTooltip();
}
return dijit._masterTT.hide(_4fe);
};
dojo.declare("dijit.Tooltip",dijit._Widget,{label:"",showDelay:400,connectId:[],position:[],postCreate:function(){
if(this.srcNodeRef){
this.srcNodeRef.style.display="none";
}
this._connectNodes=[];
dojo.forEach(this.connectId,function(id){
var node=dojo.byId(id);
if(node){
this._connectNodes.push(node);
dojo.forEach(["onMouseOver","onMouseOut","onFocus","onBlur","onHover","onUnHover"],function(_4ff){
this.connect(node,_4ff.toLowerCase(),"_"+_4ff);
},this);
if(dojo.isIE){
node.style.zoom=1;
}
}
},this);
},_onMouseOver:function(e){
this._onHover(e);
},_onMouseOut:function(e){
if(dojo.isDescendant(e.relatedTarget,e.target)){
return;
}
this._onUnHover(e);
},_onFocus:function(e){
this._focus=true;
this._onHover(e);
this.inherited(arguments);
},_onBlur:function(e){
this._focus=false;
this._onUnHover(e);
this.inherited(arguments);
},_onHover:function(e){
if(!this._showTimer){
var _500=e.target;
this._showTimer=setTimeout(dojo.hitch(this,function(){
this.open(_500);
}),this.showDelay);
}
},_onUnHover:function(e){
if(this._focus){
return;
}
if(this._showTimer){
clearTimeout(this._showTimer);
delete this._showTimer;
}
this.close();
},open:function(_501){
_501=_501||this._connectNodes[0];
if(!_501){
return;
}
if(this._showTimer){
clearTimeout(this._showTimer);
delete this._showTimer;
}
dijit.showTooltip(this.label||this.domNode.innerHTML,_501,this.position);
this._connectNode=_501;
},close:function(){
dijit.hideTooltip(this._connectNode);
delete this._connectNode;
if(this._showTimer){
clearTimeout(this._showTimer);
delete this._showTimer;
}
},uninitialize:function(){
this.close();
}});
dijit.Tooltip.defaultPosition=["after","before"];
}
if(!dojo._hasResource["dijit.form.ValidationTextBox"]){
dojo._hasResource["dijit.form.ValidationTextBox"]=true;
dojo.provide("dijit.form.ValidationTextBox");
dojo.declare("dijit.form.ValidationTextBox",dijit.form.TextBox,{templateString:"<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\r\n\tid=\"widget_${id}\"\r\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\" waiRole=\"presentation\"\r\n\t><div style=\"overflow:hidden;\"\r\n\t\t><div class=\"dijitReset dijitValidationIcon\"><br></div\r\n\t\t><div class=\"dijitReset dijitValidationIconText\">&Chi;</div\r\n\t\t><div class=\"dijitReset dijitInputField\"\r\n\t\t\t><input class=\"dijitReset\" dojoAttachPoint='textbox,focusNode' dojoAttachEvent='onfocus:_update,onkeyup:_onkeyup,onblur:_onMouse,onkeypress:_onKeyPress' autocomplete=\"off\"\r\n\t\t\ttype='${type}' name='${name}'\r\n\t\t/></div\r\n\t></div\r\n></div>\r\n",baseClass:"dijitTextBox",required:false,promptMessage:"",invalidMessage:"$_unset_$",constraints:{},regExp:".*",regExpGen:function(_502){
return this.regExp;
},state:"",tooltipPosition:[],setValue:function(){
this.inherited(arguments);
this.validate(this._focused);
},validator:function(_503,_504){
return (new RegExp("^("+this.regExpGen(_504)+")"+(this.required?"":"?")+"$")).test(_503)&&(!this.required||!this._isEmpty(_503))&&(this._isEmpty(_503)||this.parse(_503,_504)!==undefined);
},isValid:function(_505){
return this.validator(this.textbox.value,this.constraints);
},_isEmpty:function(_506){
return /^\s*$/.test(_506);
},getErrorMessage:function(_507){
return this.invalidMessage;
},getPromptMessage:function(_508){
return this.promptMessage;
},validate:function(_509){
var _50a="";
var _50b=this.isValid(_509);
var _50c=this._isEmpty(this.textbox.value);
this.state=(_50b||(!this._hasBeenBlurred&&_50c))?"":"Error";
this._setStateClass();
dijit.setWaiState(this.focusNode,"invalid",_50b?"false":"true");
if(_509){
if(_50c){
_50a=this.getPromptMessage(true);
}
if(!_50a&&this.state=="Error"){
_50a=this.getErrorMessage(true);
}
}
this.displayMessage(_50a);
return _50b;
},_message:"",displayMessage:function(_50d){
if(this._message==_50d){
return;
}
this._message=_50d;
dijit.hideTooltip(this.domNode);
if(_50d){
dijit.showTooltip(_50d,this.domNode,this.tooltipPosition);
}
},_refreshState:function(){
this.validate(this._focused);
},_update:function(e){
this._refreshState();
this._onMouse(e);
},_onkeyup:function(e){
this._update(e);
this.onkeyup(e);
},constructor:function(){
this.constraints={};
},postMixInProperties:function(){
this.inherited(arguments);
this.constraints.locale=this.lang;
this.messages=dojo.i18n.getLocalization("dijit.form","validate",this.lang);
if(this.invalidMessage=="$_unset_$"){
this.invalidMessage=this.messages.invalidMessage;
}
var p=this.regExpGen(this.constraints);
this.regExp=p;
}});
dojo.declare("dijit.form.MappedTextBox",dijit.form.ValidationTextBox,{serialize:function(val,_50e){
return val.toString?val.toString():"";
},toString:function(){
var val=this.filter(this.getValue());
return val!=null?(typeof val=="string"?val:this.serialize(val,this.constraints)):"";
},validate:function(){
this.valueNode.value=this.toString();
return this.inherited(arguments);
},setAttribute:function(attr,_50f){
this.inherited(arguments);
switch(attr){
case "disabled":
if(this.valueNode){
this.valueNode.disabled=this.disabled;
}
}
},postCreate:function(){
var _510=this.textbox;
var _511=(this.valueNode=dojo.doc.createElement("input"));
_511.setAttribute("type",_510.type);
_511.setAttribute("value",this.toString());
dojo.style(_511,"display","none");
_511.name=this.textbox.name;
_511.disabled=this.textbox.disabled;
this.textbox.name=this.textbox.name+"_displayed_";
this.textbox.removeAttribute("name");
dojo.place(_511,_510,"after");
this.inherited(arguments);
}});
dojo.declare("dijit.form.RangeBoundTextBox",dijit.form.MappedTextBox,{rangeMessage:"",compare:function(val1,val2){
return val1-val2;
},rangeCheck:function(_512,_513){
var _514="min" in _513;
var _515="max" in _513;
if(_514||_515){
return (!_514||this.compare(_512,_513.min)>=0)&&(!_515||this.compare(_512,_513.max)<=0);
}
return true;
},isInRange:function(_516){
return this.rangeCheck(this.getValue(),this.constraints);
},isValid:function(_517){
return this.inherited(arguments)&&((this._isEmpty(this.textbox.value)&&!this.required)||this.isInRange(_517));
},getErrorMessage:function(_518){
if(dijit.form.RangeBoundTextBox.superclass.isValid.call(this,false)&&!this.isInRange(_518)){
return this.rangeMessage;
}
return this.inherited(arguments);
},postMixInProperties:function(){
this.inherited(arguments);
if(!this.rangeMessage){
this.messages=dojo.i18n.getLocalization("dijit.form","validate",this.lang);
this.rangeMessage=this.messages.rangeMessage;
}
},postCreate:function(){
this.inherited(arguments);
if(this.constraints.min!==undefined){
dijit.setWaiState(this.focusNode,"valuemin",this.constraints.min);
}
if(this.constraints.max!==undefined){
dijit.setWaiState(this.focusNode,"valuemax",this.constraints.max);
}
},setValue:function(_519,_51a){
dijit.setWaiState(this.focusNode,"valuenow",_519);
this.inherited("setValue",arguments);
}});
}
if(!dojo._hasResource["dijit.form.ComboBox"]){
dojo._hasResource["dijit.form.ComboBox"]=true;
dojo.provide("dijit.form.ComboBox");
dojo.declare("dijit.form.ComboBoxMixin",null,{item:null,pageSize:Infinity,store:null,query:{},autoComplete:true,searchDelay:100,searchAttr:"name",queryExpr:"${0}*",ignoreCase:true,hasDownArrow:true,templateString:"<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\r\n\tid=\"widget_${id}\"\r\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\" dojoAttachPoint=\"comboNode\" waiRole=\"combobox\" tabIndex=\"-1\"\r\n\t><div style=\"overflow:hidden;\"\r\n\t\t><div class='dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton'\r\n\t\t\tdojoAttachPoint=\"downArrowNode\" waiRole=\"presentation\"\r\n\t\t\tdojoAttachEvent=\"onmousedown:_onArrowMouseDown,onmouseup:_onMouse,onmouseenter:_onMouse,onmouseleave:_onMouse\"\r\n\t\t\t><div class=\"dijitArrowButtonInner\">&thinsp;</div\r\n\t\t\t><div class=\"dijitArrowButtonChar\">&#9660;</div\r\n\t\t></div\r\n\t\t><div class=\"dijitReset dijitValidationIcon\"><br></div\r\n\t\t><div class=\"dijitReset dijitValidationIconText\">&Chi;</div\r\n\t\t><div class=\"dijitReset dijitInputField\"\r\n\t\t\t><input type=\"text\" autocomplete=\"off\" name=\"${name}\" class='dijitReset'\r\n\t\t\tdojoAttachEvent=\"onkeypress:_onKeyPress, onfocus:_update, compositionend,onkeyup\"\r\n\t\t\tdojoAttachPoint=\"textbox,focusNode\" waiRole=\"textbox\" waiState=\"haspopup-true,autocomplete-list\"\r\n\t\t/></div\r\n\t></div\r\n></div>\r\n",baseClass:"dijitComboBox",_getCaretPos:function(_51b){
var pos=0;
if(typeof (_51b.selectionStart)=="number"){
pos=_51b.selectionStart;
}else{
if(dojo.isIE){
var tr=dojo.doc.selection.createRange().duplicate();
var ntr=_51b.createTextRange();
tr.move("character",0);
ntr.move("character",0);
try{
ntr.setEndPoint("EndToEnd",tr);
pos=String(ntr.text).replace(/\r/g,"").length;
}
catch(e){
}
}
}
return pos;
},_setCaretPos:function(_51c,_51d){
_51d=parseInt(_51d);
dijit.selectInputText(_51c,_51d,_51d);
},_setAttribute:function(attr,_51e){
if(attr=="disabled"){
dijit.setWaiState(this.comboNode,"disabled",_51e);
}
},_onKeyPress:function(evt){
if(evt.altKey||(evt.ctrlKey&&evt.charCode!=118)){
return;
}
var _51f=false;
var pw=this._popupWidget;
var dk=dojo.keys;
if(this._isShowingNow){
pw.handleKey(evt);
}
switch(evt.keyCode){
case dk.PAGE_DOWN:
case dk.DOWN_ARROW:
if(!this._isShowingNow||this._prev_key_esc){
this._arrowPressed();
_51f=true;
}else{
this._announceOption(pw.getHighlightedOption());
}
dojo.stopEvent(evt);
this._prev_key_backspace=false;
this._prev_key_esc=false;
break;
case dk.PAGE_UP:
case dk.UP_ARROW:
if(this._isShowingNow){
this._announceOption(pw.getHighlightedOption());
}
dojo.stopEvent(evt);
this._prev_key_backspace=false;
this._prev_key_esc=false;
break;
case dk.ENTER:
var _520;
if(this._isShowingNow&&(_520=pw.getHighlightedOption())){
if(_520==pw.nextButton){
this._nextSearch(1);
dojo.stopEvent(evt);
break;
}else{
if(_520==pw.previousButton){
this._nextSearch(-1);
dojo.stopEvent(evt);
break;
}
}
}else{
this.setDisplayedValue(this.getDisplayedValue());
}
evt.preventDefault();
case dk.TAB:
var _521=this.getDisplayedValue();
if(pw&&(_521==pw._messages["previousMessage"]||_521==pw._messages["nextMessage"])){
break;
}
if(this._isShowingNow){
this._prev_key_backspace=false;
this._prev_key_esc=false;
if(pw.getHighlightedOption()){
pw.setValue({target:pw.getHighlightedOption()},true);
}
this._hideResultList();
}
break;
case dk.SPACE:
this._prev_key_backspace=false;
this._prev_key_esc=false;
if(this._isShowingNow&&pw.getHighlightedOption()){
dojo.stopEvent(evt);
this._selectOption();
this._hideResultList();
}else{
_51f=true;
}
break;
case dk.ESCAPE:
this._prev_key_backspace=false;
this._prev_key_esc=true;
if(this._isShowingNow){
dojo.stopEvent(evt);
this._hideResultList();
}
this.inherited(arguments);
break;
case dk.DELETE:
case dk.BACKSPACE:
this._prev_key_esc=false;
this._prev_key_backspace=true;
_51f=true;
break;
case dk.RIGHT_ARROW:
case dk.LEFT_ARROW:
this._prev_key_backspace=false;
this._prev_key_esc=false;
break;
default:
this._prev_key_backspace=false;
this._prev_key_esc=false;
if(dojo.isIE||evt.charCode!=0){
_51f=true;
}
}
if(this.searchTimer){
clearTimeout(this.searchTimer);
}
if(_51f){
setTimeout(dojo.hitch(this,"_startSearchFromInput"),1);
}
},_autoCompleteText:function(text){
var fn=this.focusNode;
dijit.selectInputText(fn,fn.value.length);
var _522=this.ignoreCase?"toLowerCase":"substr";
if(text[_522](0).indexOf(this.focusNode.value[_522](0))==0){
var cpos=this._getCaretPos(fn);
if((cpos+1)>fn.value.length){
fn.value=text;
dijit.selectInputText(fn,cpos);
}
}else{
fn.value=text;
dijit.selectInputText(fn);
}
},_openResultList:function(_523,_524){
if(this.disabled||this.readOnly||(_524.query[this.searchAttr]!=this._lastQuery)){
return;
}
this._popupWidget.clearResultList();
if(!_523.length){
this._hideResultList();
return;
}
var _525=new String(this.store.getValue(_523[0],this.searchAttr));
if(_525&&this.autoComplete&&!this._prev_key_backspace&&(_524.query[this.searchAttr]!="*")){
this._autoCompleteText(_525);
}
this._popupWidget.createOptions(_523,_524,dojo.hitch(this,"_getMenuLabelFromItem"));
this._showResultList();
if(_524.direction){
if(1==_524.direction){
this._popupWidget.highlightFirstOption();
}else{
if(-1==_524.direction){
this._popupWidget.highlightLastOption();
}
}
this._announceOption(this._popupWidget.getHighlightedOption());
}
},_showResultList:function(){
this._hideResultList();
var _526=this._popupWidget.getItems(),_527=Math.min(_526.length,this.maxListLength);
this._arrowPressed();
this.displayMessage("");
with(this._popupWidget.domNode.style){
width="";
height="";
}
var best=this.open();
var _528=dojo.marginBox(this._popupWidget.domNode);
this._popupWidget.domNode.style.overflow=((best.h==_528.h)&&(best.w==_528.w))?"hidden":"auto";
var _529=best.w;
if(best.h<this._popupWidget.domNode.scrollHeight){
_529+=16;
}
dojo.marginBox(this._popupWidget.domNode,{h:best.h,w:Math.max(_529,this.domNode.offsetWidth)});
dijit.setWaiState(this.comboNode,"expanded","true");
},_hideResultList:function(){
if(this._isShowingNow){
dijit.popup.close(this._popupWidget);
this._arrowIdle();
this._isShowingNow=false;
dijit.setWaiState(this.comboNode,"expanded","false");
dijit.removeWaiState(this.focusNode,"activedescendant");
}
},_setBlurValue:function(){
var _52a=this.getDisplayedValue();
var pw=this._popupWidget;
if(pw&&(_52a==pw._messages["previousMessage"]||_52a==pw._messages["nextMessage"])){
this.setValue(this._lastValueReported,true);
}else{
this.setDisplayedValue(_52a);
}
},_onBlur:function(){
this._hideResultList();
this._arrowIdle();
this.inherited(arguments);
},_announceOption:function(node){
if(node==null){
return;
}
var _52b;
if(node==this._popupWidget.nextButton||node==this._popupWidget.previousButton){
_52b=node.innerHTML;
}else{
_52b=this.store.getValue(node.item,this.searchAttr);
}
this.focusNode.value=this.focusNode.value.substring(0,this._getCaretPos(this.focusNode));
dijit.setWaiState(this.focusNode,"activedescendant",dojo.attr(node,"id"));
this._autoCompleteText(_52b);
},_selectOption:function(evt){
var tgt=null;
if(!evt){
evt={target:this._popupWidget.getHighlightedOption()};
}
if(!evt.target){
this.setDisplayedValue(this.getDisplayedValue());
return;
}else{
tgt=evt.target;
}
if(!evt.noHide){
this._hideResultList();
this._setCaretPos(this.focusNode,this.store.getValue(tgt.item,this.searchAttr).length);
}
this._doSelect(tgt);
},_doSelect:function(tgt){
this.item=tgt.item;
this.setValue(this.store.getValue(tgt.item,this.searchAttr),true);
},_onArrowMouseDown:function(evt){
if(this.disabled||this.readOnly){
return;
}
dojo.stopEvent(evt);
this.focus();
if(this._isShowingNow){
this._hideResultList();
}else{
this._startSearch("");
}
},_startSearchFromInput:function(){
this._startSearch(this.focusNode.value);
},_getQueryString:function(text){
return dojo.string.substitute(this.queryExpr,[text]);
},_startSearch:function(key){
if(!this._popupWidget){
var _52c=this.id+"_popup";
this._popupWidget=new dijit.form._ComboBoxMenu({onChange:dojo.hitch(this,this._selectOption),id:_52c});
dijit.removeWaiState(this.focusNode,"activedescendant");
dijit.setWaiState(this.textbox,"owns",_52c);
}
this.item=null;
var _52d=dojo.clone(this.query);
this._lastQuery=_52d[this.searchAttr]=this._getQueryString(key);
this.searchTimer=setTimeout(dojo.hitch(this,function(_52e,_52f){
var _530=this.store.fetch({queryOptions:{ignoreCase:this.ignoreCase,deep:true},query:_52e,onComplete:dojo.hitch(this,"_openResultList"),onError:function(_531){
console.error("dijit.form.ComboBox: "+_531);
dojo.hitch(_52f,"_hideResultList")();
},start:0,count:this.pageSize});
var _532=function(_533,_534){
_533.start+=_533.count*_534;
_533.direction=_534;
this.store.fetch(_533);
};
this._nextSearch=this._popupWidget.onPage=dojo.hitch(this,_532,_530);
},_52d,this),this.searchDelay);
},_getValueField:function(){
return this.searchAttr;
},_arrowPressed:function(){
if(!this.disabled&&!this.readOnly&&this.hasDownArrow){
dojo.addClass(this.downArrowNode,"dijitArrowButtonActive");
}
},_arrowIdle:function(){
if(!this.disabled&&!this.readOnly&&this.hasDownArrow){
dojo.removeClass(this.downArrowNode,"dojoArrowButtonPushed");
}
},compositionend:function(evt){
this.onkeypress({charCode:-1});
},constructor:function(){
this.query={};
},postMixInProperties:function(){
if(!this.hasDownArrow){
this.baseClass="dijitTextBox";
}
if(!this.store){
var _535=this.srcNodeRef;
this.store=new dijit.form._ComboBoxDataStore(_535);
if(!this.value||((typeof _535.selectedIndex=="number")&&_535.selectedIndex.toString()===this.value)){
var item=this.store.fetchSelectedItem();
if(item){
this.value=this.store.getValue(item,this._getValueField());
}
}
}
},_postCreate:function(){
var _536=dojo.query("label[for=\""+this.id+"\"]");
if(_536.length){
_536[0].id=(this.id+"_label");
var cn=this.comboNode;
dijit.setWaiState(cn,"labelledby",_536[0].id);
dijit.setWaiState(cn,"disabled",this.disabled);
}
},uninitialize:function(){
if(this._popupWidget){
this._hideResultList();
this._popupWidget.destroy();
}
},_getMenuLabelFromItem:function(item){
return {html:false,label:this.store.getValue(item,this.searchAttr)};
},open:function(){
this._isShowingNow=true;
return dijit.popup.open({popup:this._popupWidget,around:this.domNode,parent:this});
},reset:function(){
this.item=null;
this.inherited(arguments);
}});
dojo.declare("dijit.form._ComboBoxMenu",[dijit._Widget,dijit._Templated],{templateString:"<ul class='dijitMenu' dojoAttachEvent='onmousedown:_onMouseDown,onmouseup:_onMouseUp,onmouseover:_onMouseOver,onmouseout:_onMouseOut' tabIndex='-1' style='overflow:\"auto\";'>"+"<li class='dijitMenuItem dijitMenuPreviousButton' dojoAttachPoint='previousButton'></li>"+"<li class='dijitMenuItem dijitMenuNextButton' dojoAttachPoint='nextButton'></li>"+"</ul>",_messages:null,postMixInProperties:function(){
this._messages=dojo.i18n.getLocalization("dijit.form","ComboBox",this.lang);
this.inherited("postMixInProperties",arguments);
},setValue:function(_537){
this.value=_537;
this.onChange(_537);
},onChange:function(_538){
},onPage:function(_539){
},postCreate:function(){
this.previousButton.innerHTML=this._messages["previousMessage"];
this.nextButton.innerHTML=this._messages["nextMessage"];
this.inherited("postCreate",arguments);
},onClose:function(){
this._blurOptionNode();
},_createOption:function(item,_53a){
var _53b=_53a(item);
var _53c=dojo.doc.createElement("li");
dijit.setWaiRole(_53c,"option");
if(_53b.html){
_53c.innerHTML=_53b.label;
}else{
_53c.appendChild(dojo.doc.createTextNode(_53b.label));
}
if(_53c.innerHTML==""){
_53c.innerHTML="&nbsp;";
}
_53c.item=item;
return _53c;
},createOptions:function(_53d,_53e,_53f){
this.previousButton.style.display=(_53e.start==0)?"none":"";
dojo.attr(this.previousButton,"id",this.id+"_prev");
dojo.forEach(_53d,function(item,i){
var _540=this._createOption(item,_53f);
_540.className="dijitMenuItem";
dojo.attr(_540,"id",this.id+i);
this.domNode.insertBefore(_540,this.nextButton);
},this);
this.nextButton.style.display=(_53e.count==_53d.length)?"":"none";
dojo.attr(this.nextButton,"id",this.id+"_next");
},clearResultList:function(){
while(this.domNode.childNodes.length>2){
this.domNode.removeChild(this.domNode.childNodes[this.domNode.childNodes.length-2]);
}
},getItems:function(){
return this.domNode.childNodes;
},getListLength:function(){
return this.domNode.childNodes.length-2;
},_onMouseDown:function(evt){
dojo.stopEvent(evt);
},_onMouseUp:function(evt){
if(evt.target===this.domNode){
return;
}else{
if(evt.target==this.previousButton){
this.onPage(-1);
}else{
if(evt.target==this.nextButton){
this.onPage(1);
}else{
var tgt=evt.target;
while(!tgt.item){
tgt=tgt.parentNode;
}
this.setValue({target:tgt},true);
}
}
}
},_onMouseOver:function(evt){
if(evt.target===this.domNode){
return;
}
var tgt=evt.target;
if(!(tgt==this.previousButton||tgt==this.nextButton)){
while(!tgt.item){
tgt=tgt.parentNode;
}
}
this._focusOptionNode(tgt);
},_onMouseOut:function(evt){
if(evt.target===this.domNode){
return;
}
this._blurOptionNode();
},_focusOptionNode:function(node){
if(this._highlighted_option!=node){
this._blurOptionNode();
this._highlighted_option=node;
dojo.addClass(this._highlighted_option,"dijitMenuItemHover");
}
},_blurOptionNode:function(){
if(this._highlighted_option){
dojo.removeClass(this._highlighted_option,"dijitMenuItemHover");
this._highlighted_option=null;
}
},_highlightNextOption:function(){
var fc=this.domNode.firstChild;
if(!this.getHighlightedOption()){
this._focusOptionNode(fc.style.display=="none"?fc.nextSibling:fc);
}else{
var ns=this._highlighted_option.nextSibling;
if(ns&&ns.style.display!="none"){
this._focusOptionNode(ns);
}
}
dijit.scrollIntoView(this._highlighted_option);
},highlightFirstOption:function(){
this._focusOptionNode(this.domNode.firstChild.nextSibling);
dijit.scrollIntoView(this._highlighted_option);
},highlightLastOption:function(){
this._focusOptionNode(this.domNode.lastChild.previousSibling);
dijit.scrollIntoView(this._highlighted_option);
},_highlightPrevOption:function(){
var lc=this.domNode.lastChild;
if(!this.getHighlightedOption()){
this._focusOptionNode(lc.style.display=="none"?lc.previousSibling:lc);
}else{
var ps=this._highlighted_option.previousSibling;
if(ps&&ps.style.display!="none"){
this._focusOptionNode(ps);
}
}
dijit.scrollIntoView(this._highlighted_option);
},_page:function(up){
var _541=0;
var _542=this.domNode.scrollTop;
var _543=dojo.style(this.domNode,"height");
if(!this.getHighlightedOption()){
this._highlightNextOption();
}
while(_541<_543){
if(up){
if(!this.getHighlightedOption().previousSibling||this._highlighted_option.previousSibling.style.display=="none"){
break;
}
this._highlightPrevOption();
}else{
if(!this.getHighlightedOption().nextSibling||this._highlighted_option.nextSibling.style.display=="none"){
break;
}
this._highlightNextOption();
}
var _544=this.domNode.scrollTop;
_541+=(_544-_542)*(up?-1:1);
_542=_544;
}
},pageUp:function(){
this._page(true);
},pageDown:function(){
this._page(false);
},getHighlightedOption:function(){
var ho=this._highlighted_option;
return (ho&&ho.parentNode)?ho:null;
},handleKey:function(evt){
switch(evt.keyCode){
case dojo.keys.DOWN_ARROW:
this._highlightNextOption();
break;
case dojo.keys.PAGE_DOWN:
this.pageDown();
break;
case dojo.keys.UP_ARROW:
this._highlightPrevOption();
break;
case dojo.keys.PAGE_UP:
this.pageUp();
break;
}
}});
dojo.declare("dijit.form.ComboBox",[dijit.form.ValidationTextBox,dijit.form.ComboBoxMixin],{postMixInProperties:function(){
dijit.form.ComboBoxMixin.prototype.postMixInProperties.apply(this,arguments);
dijit.form.ValidationTextBox.prototype.postMixInProperties.apply(this,arguments);
},postCreate:function(){
dijit.form.ComboBoxMixin.prototype._postCreate.apply(this,arguments);
dijit.form.ValidationTextBox.prototype.postCreate.apply(this,arguments);
},setAttribute:function(attr,_545){
dijit.form.ValidationTextBox.prototype.setAttribute.apply(this,arguments);
dijit.form.ComboBoxMixin.prototype._setAttribute.apply(this,arguments);
}});
dojo.declare("dijit.form._ComboBoxDataStore",null,{constructor:function(root){
this.root=root;
},getValue:function(item,_546,_547){
return (_546=="value")?item.value:(item.innerText||item.textContent||"");
},isItemLoaded:function(_548){
return true;
},fetch:function(args){
var _549="^"+args.query.name.replace(/([\\\|\(\)\[\{\^\$\+\?\.\<\>])/g,"\\$1").replace("*",".*")+"$",_54a=new RegExp(_549,args.queryOptions.ignoreCase?"i":""),_54b=dojo.query("> option",this.root).filter(function(_54c){
return (_54c.innerText||_54c.textContent||"").match(_54a);
});
var _54d=args.start||0,end=("count" in args&&args.count!=Infinity)?(_54d+args.count):_54b.length;
args.onComplete(_54b.slice(_54d,end),args);
return args;
},close:function(_54e){
return;
},getLabel:function(item){
return item.innerHTML;
},getIdentity:function(item){
return dojo.attr(item,"value");
},fetchItemByIdentity:function(args){
var item=dojo.query("option[value='"+args.identity+"']",this.root)[0];
args.onItem(item);
},fetchSelectedItem:function(){
var root=this.root,si=root.selectedIndex;
return dojo.query("> option:nth-child("+(si!=-1?si+1:1)+")",root)[0];
}});
}
if(!dojo._hasResource["dijit.form.FilteringSelect"]){
dojo._hasResource["dijit.form.FilteringSelect"]=true;
dojo.provide("dijit.form.FilteringSelect");
dojo.declare("dijit.form.FilteringSelect",[dijit.form.MappedTextBox,dijit.form.ComboBoxMixin],{labelAttr:"",labelType:"text",_isvalid:true,_lastDisplayedValue:"",isValid:function(){
return this._isvalid;
},_callbackSetLabel:function(_54f,_550,_551){
if(_550&&_550.query[this.searchAttr]!=this._lastQuery){
return;
}
if(!_54f.length){
if(!this._focused){
this.valueNode.value="";
}
dijit.form.TextBox.superclass.setValue.call(this,undefined,!this._focused);
this._isvalid=false;
this.validate(this._focused);
}else{
this._setValueFromItem(_54f[0],_551);
}
},_openResultList:function(_552,_553){
if(_553.query[this.searchAttr]!=this._lastQuery){
return;
}
this._isvalid=_552.length!=0;
this.validate(true);
dijit.form.ComboBoxMixin.prototype._openResultList.apply(this,arguments);
},getValue:function(){
return this.valueNode.value;
},_getValueField:function(){
return "value";
},_setValue:function(_554,_555,_556){
this.valueNode.value=_554;
dijit.form.FilteringSelect.superclass.setValue.call(this,_554,_556,_555);
this._lastDisplayedValue=_555;
},setValue:function(_557,_558){
var self=this;
var _559=function(item,_55a){
if(item){
if(self.store.isItemLoaded(item)){
self._callbackSetLabel([item],undefined,_55a);
}else{
self.store.loadItem({item:item,onItem:function(_55b,_55c){
self._callbackSetLabel(_55b,_55c,_55a);
}});
}
}else{
self._isvalid=false;
self.validate(false);
}
};
this.store.fetchItemByIdentity({identity:_557,onItem:function(item){
_559(item,_558);
}});
},_setValueFromItem:function(item,_55d){
this._isvalid=true;
this._setValue(this.store.getIdentity(item),this.labelFunc(item,this.store),_55d);
},labelFunc:function(item,_55e){
return _55e.getValue(item,this.searchAttr);
},_doSelect:function(tgt){
this.item=tgt.item;
this._setValueFromItem(tgt.item,true);
},setDisplayedValue:function(_55f,_560){
if(this.store){
var _561=dojo.clone(this.query);
this._lastQuery=_561[this.searchAttr]=_55f;
this.textbox.value=_55f;
this._lastDisplayedValue=_55f;
var _562=this;
this.store.fetch({query:_561,queryOptions:{ignoreCase:this.ignoreCase,deep:true},onComplete:function(_563,_564){
dojo.hitch(_562,"_callbackSetLabel")(_563,_564,_560);
},onError:function(_565){
console.error("dijit.form.FilteringSelect: "+_565);
dojo.hitch(_562,"_setValue")(undefined,_55f,false);
}});
}
},_getMenuLabelFromItem:function(item){
if(this.labelAttr){
return {html:this.labelType=="html",label:this.store.getValue(item,this.labelAttr)};
}else{
return dijit.form.ComboBoxMixin.prototype._getMenuLabelFromItem.apply(this,arguments);
}
},postMixInProperties:function(){
dijit.form.ComboBoxMixin.prototype.postMixInProperties.apply(this,arguments);
dijit.form.MappedTextBox.prototype.postMixInProperties.apply(this,arguments);
},postCreate:function(){
dijit.form.ComboBoxMixin.prototype._postCreate.apply(this,arguments);
dijit.form.MappedTextBox.prototype.postCreate.apply(this,arguments);
},setAttribute:function(attr,_566){
dijit.form.MappedTextBox.prototype.setAttribute.apply(this,arguments);
dijit.form.ComboBoxMixin.prototype._setAttribute.apply(this,arguments);
},undo:function(){
this.setDisplayedValue(this._lastDisplayedValue);
},_valueChanged:function(){
return this.getDisplayedValue()!=this._lastDisplayedValue;
}});
}
if(!dojo._hasResource["dijit.form.MultiComboBox"]){
dojo._hasResource["dijit.form.MultiComboBox"]=true;
dojo.provide("dijit.form.MultiComboBox");
dojo.declare("dijit.form.MultiComboBoxMixin",null,{item:null,pageSize:10000,store:null,query:{},autoComplete:true,searchDelay:100,searchAttr:"name",queryExpr:"${0}*",ignoreCase:true,hasDownArrow:true,templateString:"<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\r\n\tid=\"widget_${id}\"\r\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\" dojoAttachPoint=\"comboNode\" waiRole=\"combobox\" tabIndex=\"-1\"\r\n\t><div style=\"overflow:hidden;\"\r\n\t\t><div class='dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton'\r\n\t\t\tdojoAttachPoint=\"downArrowNode\" waiRole=\"presentation\"\r\n\t\t\tdojoAttachEvent=\"onmousedown:_onArrowMouseDown,onmouseup:_onMouse,onmouseenter:_onMouse,onmouseleave:_onMouse\"\r\n\t\t\t><div class=\"dijitArrowButtonInner\">&thinsp;</div\r\n\t\t\t><div class=\"dijitArrowButtonChar\">&#9660;</div\r\n\t\t></div\r\n\t\t><div class=\"dijitReset dijitValidationIcon\"><br></div\r\n\t\t><div class=\"dijitReset dijitValidationIconText\">&Chi;</div\r\n\t\t><div class=\"dijitReset dijitInputField\"\r\n\t\t\t><input type=\"text\" autocomplete=\"off\" name=\"${name}\" class='dijitReset'\r\n\t\t\tdojoAttachEvent=\"onkeypress:_onKeyPress, onfocus:_update, compositionend,onkeyup\"\r\n\t\t\tdojoAttachPoint=\"textbox,focusNode\" waiRole=\"textbox\" waiState=\"haspopup-true,autocomplete-list\"\r\n\t\t/></div\r\n\t></div\r\n></div>\r\n",baseClass:"dijitComboBox",separator:",;",hiddenValues:{},getValue:function(){
var _567=this.focusNode.value;
var _568=wrike.util.split(_567).unique().trim();
var res=[];
for(var o in this.hiddenValues){
var _569=this.hiddenValues[o];
if(_568.indexOf(_569)!=-1){
_568.without(_569);
res.push({id:o,value:_569});
}
}
for(var i=0,v;v=_568[i];i++){
res.push({id:null,value:v});
}
return res;
},setDisplayedValue:function(_56a){
this._setLastToken(_56a);
this.setDisplayedValue(this.focusNode.value);
},setValues:function(data){
var _56b="";
this.hiddenValues={};
for(var i=0,o;o=data[i];i++){
_56b+=((_56b.trim()!="")?", ":"")+o.value;
this.hiddenValues[o.id]=o.value;
}
this.focusNode.value=_56b;
},_setValueFromItem:function(item){
if(this.store.getIdentity(item)!=null){
this.hiddenValues[this.store.getValue(item,"id")]=this.store.getValue(item,this.searchAttr);
}
},_getCaretPos:function(_56c){
var pos=0;
if(typeof (_56c.selectionStart)=="number"){
pos=_56c.selectionStart;
}else{
if(dojo.isIE){
var tr=dojo.doc.selection.createRange().duplicate();
var ntr=_56c.createTextRange();
tr.move("character",0);
ntr.move("character",0);
try{
ntr.setEndPoint("EndToEnd",tr);
pos=String(ntr.text).replace(/\r/g,"").length;
}
catch(e){
}
}
}
return pos;
},_setCaretPos:function(_56d,_56e){
_56e=parseInt(_56e);
dijit.selectInputText(_56d,_56e,_56e);
},_setAttribute:function(attr,_56f){
if(attr=="disabled"){
dijit.setWaiState(this.comboNode,"disabled",_56f);
}
},_onKeyPress:function(evt){
if(evt.altKey||(evt.ctrlKey&&evt.charCode!=118)){
return;
}
var _570=false;
var pw=this._popupWidget;
var dk=dojo.keys;
if(this._isShowingNow){
pw.handleKey(evt);
}
switch(evt.keyCode){
case dk.PAGE_DOWN:
case dk.DOWN_ARROW:
if(!this._isShowingNow||this._prev_key_esc){
this._arrowPressed();
_570=true;
}else{
this._announceOption(pw.getHighlightedOption());
}
dojo.stopEvent(evt);
this._prev_key_backspace=false;
this._prev_key_esc=false;
break;
case dk.PAGE_UP:
case dk.UP_ARROW:
if(this._isShowingNow){
this._announceOption(pw.getHighlightedOption());
}
dojo.stopEvent(evt);
this._prev_key_backspace=false;
this._prev_key_esc=false;
break;
case dk.ENTER:
var _571;
if(this._isShowingNow&&(_571=pw.getHighlightedOption())){
if(_571==pw.nextButton){
this._nextSearch(1);
dojo.stopEvent(evt);
break;
}else{
if(_571==pw.previousButton){
this._nextSearch(-1);
dojo.stopEvent(evt);
break;
}
}
}else{
break;
}
evt.preventDefault();
case dk.SPACE:
this._prev_key_backspace=false;
this._prev_key_esc=false;
if(this._isShowingNow&&pw.getHighlightedOption()){
dojo.stopEvent(evt);
this._selectOption();
this._hideResultList();
}else{
_570=true;
}
break;
case dk.ESCAPE:
this._prev_key_backspace=false;
this._prev_key_esc=true;
if(this._isShowingNow){
dojo.stopEvent(evt);
this._hideResultList();
}
this.inherited(arguments);
break;
case dk.DELETE:
case dk.BACKSPACE:
this._prev_key_esc=false;
this._prev_key_backspace=true;
_570=true;
break;
case dk.RIGHT_ARROW:
case dk.LEFT_ARROW:
this._prev_key_backspace=false;
this._prev_key_esc=false;
break;
default:
this._prev_key_backspace=false;
this._prev_key_esc=false;
if(dojo.isIE||evt.charCode!=0){
_570=true;
}
}
if(this.searchTimer){
clearTimeout(this.searchTimer);
}
if(_570){
setTimeout(dojo.hitch(this,"_startSearchFromInput"),1);
}
},_autoCompleteText:function(text,_572){
var fn=this.focusNode;
dijit.selectInputText(fn,fn.value.length);
var _573=this.ignoreCase?"toLowerCase":"substr";
var _572=this._getLastToken();
if(text[_573](0).indexOf(_572[_573](0))==0){
var cpos=this._getCaretPos(fn);
if((cpos+1)>fn.value.length){
this._setValueFromItem(_572);
this._setLastToken(text);
dijit.selectInputText(fn,cpos);
}
}else{
var _574=this._getLastTokenPosition();
this._setValueFromItem(_572);
this._setLastToken(text);
dijit.selectInputText(fn,_574.start);
}
},_openResultList:function(_575,_576){
if(this.disabled||this.readOnly||(_576.query[this.searchAttr]!=this._lastQuery)){
return;
}
this._popupWidget.clearResultList();
if(!_575.length){
this._hideResultList();
return;
}
var _577=new String(this.store.getValue(_575[0],this.searchAttr));
var _578=this.store.getIdentity(_575[0]);
if(_577&&this.autoComplete&&!this._prev_key_backspace&&(_576.query[this.searchAttr]!="*")){
this._autoCompleteText(_577,_578);
}
this._popupWidget.createOptions(_575,_576,dojo.hitch(this,"_getMenuLabelFromItem"));
this._showResultList();
if(_576.direction){
if(1==_576.direction){
this._popupWidget.highlightFirstOption();
}else{
if(-1==_576.direction){
this._popupWidget.highlightLastOption();
}
}
this._announceOption(this._popupWidget.getHighlightedOption());
}
},_showResultList:function(){
this._hideResultList();
var _579=this._popupWidget.getItems(),_57a=Math.min(_579.length,this.maxListLength);
this._arrowPressed();
this.displayMessage("");
with(this._popupWidget.domNode.style){
width="";
height="";
}
var best=this.open();
var _57b=dojo.marginBox(this._popupWidget.domNode);
this._popupWidget.domNode.style.overflow=((best.h==_57b.h)&&(best.w==_57b.w))?"hidden":"auto";
var _57c=best.w;
if(best.h<this._popupWidget.domNode.scrollHeight){
_57c+=16;
}
dojo.marginBox(this._popupWidget.domNode,{h:best.h,w:Math.max(_57c,this.domNode.offsetWidth)});
dijit.setWaiState(this.comboNode,"expanded","true");
},_hideResultList:function(){
if(this.searchTimer){
clearTimeout(this.searchTimer);
}
if(this._isShowingNow){
dijit.popup.close(this._popupWidget);
this._arrowIdle();
this._isShowingNow=false;
dijit.setWaiState(this.comboNode,"expanded","false");
dijit.removeWaiState(this.focusNode,"activedescendant");
}
},_setBlurValue:function(){
var _57d=this.getDisplayedValue();
var pw=this._popupWidget;
if(pw&&(_57d==pw._messages["previousMessage"]||_57d==pw._messages["nextMessage"])){
this.setValue(this._lastValueReported,true);
}else{
}
},_onBlur:function(){
this._hideResultList();
this._arrowIdle();
this.inherited(arguments);
},_announceOption:function(node){
if(node==null){
return;
}
var _57e;
var _57f;
if(node==this._popupWidget.nextButton||node==this._popupWidget.previousButton){
_57e=node.innerHTML;
}else{
_57e=this.store.getValue(node.item,this.searchAttr);
_57f=this.store.getIdentity(node.item);
}
this.focusNode.value=this.focusNode.value.substring(0,this._getCaretPos(this.focusNode));
dijit.setWaiState(this.focusNode,"activedescendant",dojo.attr(node,"id"));
this._autoCompleteText(_57e,_57f);
},_selectOption:function(evt){
var tgt=null;
if(!evt){
evt={target:this._popupWidget.getHighlightedOption()};
}
if(!evt.target){
return;
}else{
tgt=evt.target;
}
if(!evt.noHide){
this._hideResultList();
this._setCaretPos(this.focusNode,this.focusNode.value.length);
}
this._doSelect(tgt);
},_doSelect:function(tgt){
this.item=tgt.item;
this._setValueFromItem(tgt.item);
this._setLastToken(this.store.getValue(tgt.item,this.searchAttr));
this.setValue(this.focusNode.value+", ",true);
},_onArrowMouseDown:function(evt){
if(this.disabled||this.readOnly){
return;
}
dojo.stopEvent(evt);
this.focus();
if(this._isShowingNow){
this._hideResultList();
}else{
this._startSearch("");
}
},_startSearchFromInput:function(){
this._startSearch(this._getLastToken());
},_getQueryString:function(text){
return dojo.string.substitute(this.queryExpr,[text]);
},_startSearch:function(key){
if(!this._popupWidget){
var _580=this.id+"_popup";
this._popupWidget=new dijit.form._MultiComboBoxMenu({onChange:dojo.hitch(this,this._selectOption),id:_580});
dijit.removeWaiState(this.focusNode,"activedescendant");
dijit.setWaiState(this.textbox,"owns",_580);
}
this.item=null;
var _581=dojo.clone(this.query);
this._lastQuery=_581[this.searchAttr]=this._getQueryString(key);
this.searchTimer=setTimeout(dojo.hitch(this,function(_582,_583){
var _584=this.store.fetch({queryOptions:{ignoreCase:this.ignoreCase,deep:true},query:_582,onComplete:dojo.hitch(this,"_openResultList"),onError:function(_585){
console.error("dijit.form.ComboBox: "+_585);
dojo.hitch(_583,"_hideResultList")();
},start:0,count:this.pageSize});
var _586=function(_587,_588){
_587.start+=_587.count*_588;
_587.direction=_588;
this.store.fetch(_587);
};
this._nextSearch=this._popupWidget.onPage=dojo.hitch(this,_586,_584);
},_581,this),this.searchDelay);
},_getValueField:function(){
return this.searchAttr;
},_arrowPressed:function(){
if(!this.disabled&&!this.readOnly&&this.hasDownArrow){
dojo.addClass(this.downArrowNode,"dijitArrowButtonActive");
}
},_arrowIdle:function(){
if(!this.disabled&&!this.readOnly&&this.hasDownArrow){
dojo.removeClass(this.downArrowNode,"dojoArrowButtonPushed");
}
},compositionend:function(evt){
this.onkeypress({charCode:-1});
},constructor:function(){
this.query={};
},postMixInProperties:function(){
if(!this.hasDownArrow){
this.baseClass="dijitTextBox";
}
if(!this.store){
var _589=this.srcNodeRef;
this.store=new dijit.form._ComboBoxDataStore(_589);
if(!this.value||((typeof _589.selectedIndex=="number")&&_589.selectedIndex.toString()===this.value)){
var item=this.store.fetchSelectedItem();
if(item){
this.value=this.store.getValue(item,this._getValueField());
}
}
}
this.hiddenValues={};
},_postCreate:function(){
var _58a=dojo.query("label[for=\""+this.id+"\"]");
if(_58a.length){
_58a[0].id=(this.id+"_label");
var cn=this.comboNode;
dijit.setWaiState(cn,"labelledby",_58a[0].id);
dijit.setWaiState(cn,"disabled",this.disabled);
}
},uninitialize:function(){
if(this._popupWidget){
this._hideResultList();
this._popupWidget.destroy();
}
},_getMenuLabelFromItem:function(item){
return {html:false,label:this.store.getValue(item,this.searchAttr)};
},open:function(){
this._isShowingNow=true;
return dijit.popup.open({popup:this._popupWidget,around:this.domNode,parent:this});
},reset:function(){
this.item=null;
this.inherited(arguments);
},_getLastTokenPosition:function(){
var val=this.focusNode.value;
var end=val.length;
var _58b=end;
while(_58b>0&&this.separator.indexOf(val.charAt(_58b-1))<0){
_58b--;
}
while(val.charAt(_58b)==" "){
_58b++;
}
var i=this._getCaretPos(this.focusNode);
while(val.charAt(end-1)==" "&&i<end){
end--;
}
if(end<0){
end=0;
}
if(end<_58b){
end=_58b;
}
return {start:_58b,end:end};
},_getLastToken:function(){
var p=this._getLastTokenPosition();
return this.focusNode.value.substring(p.start,p.end);
},_setLastToken:function(text){
var v=this.focusNode.value;
var p=this._getLastTokenPosition();
this.focusNode.value=v.substring(0,p.start)+text;
}});
dojo.declare("dijit.form._MultiComboBoxMenu",[dijit._Widget,dijit._Templated],{templateString:"<ul class='dijitMenu' dojoAttachEvent='onmousedown:_onMouseDown,onmouseup:_onMouseUp,onmouseover:_onMouseOver,onmouseout:_onMouseOut' tabIndex='-1' style='overflow:\"auto\";'>"+"<li class='dijitMenuItem dijitMenuPreviousButton' dojoAttachPoint='previousButton'></li>"+"<li class='dijitMenuItem dijitMenuNextButton' dojoAttachPoint='nextButton'></li>"+"</ul>",_messages:null,postMixInProperties:function(){
this._messages=dojo.i18n.getLocalization("dijit.form","ComboBox",this.lang);
this.inherited("postMixInProperties",arguments);
},setValue:function(_58c){
this.value=_58c;
this.onChange(_58c);
},onChange:function(_58d){
},onPage:function(_58e){
},postCreate:function(){
this.previousButton.innerHTML=this._messages["previousMessage"];
this.nextButton.innerHTML=this._messages["nextMessage"];
this.inherited("postCreate",arguments);
},onClose:function(){
this._blurOptionNode();
},_createOption:function(item,_58f){
var _590=_58f(item);
var _591=dojo.doc.createElement("li");
dijit.setWaiRole(_591,"option");
if(_590.html){
_591.innerHTML=_590.label;
}else{
_591.appendChild(dojo.doc.createTextNode(_590.label));
}
if(_591.innerHTML==""){
_591.innerHTML="&nbsp;";
}
_591.item=item;
return _591;
},createOptions:function(_592,_593,_594){
this.previousButton.style.display=(_593.start==0)?"none":"";
dojo.attr(this.previousButton,"id",this.id+"_prev");
dojo.forEach(_592,function(item,i){
var _595=this._createOption(item,_594);
_595.className="dijitMenuItem";
dojo.attr(_595,"id",this.id+i);
this.domNode.insertBefore(_595,this.nextButton);
},this);
this.nextButton.style.display=(_593.count==_592.length)?"":"none";
dojo.attr(this.nextButton,"id",this.id+"_next");
},clearResultList:function(){
while(this.domNode.childNodes.length>2){
this.domNode.removeChild(this.domNode.childNodes[this.domNode.childNodes.length-2]);
}
},getItems:function(){
return this.domNode.childNodes;
},getListLength:function(){
return this.domNode.childNodes.length-2;
},_onMouseDown:function(evt){
dojo.stopEvent(evt);
},_onMouseUp:function(evt){
if(evt.target===this.domNode){
return;
}else{
if(evt.target==this.previousButton){
this.onPage(-1);
}else{
if(evt.target==this.nextButton){
this.onPage(1);
}else{
var tgt=evt.target;
while(!tgt.item){
tgt=tgt.parentNode;
}
this.setValue({target:tgt},true);
}
}
}
},_onMouseOver:function(evt){
if(evt.target===this.domNode){
return;
}
var tgt=evt.target;
if(!(tgt==this.previousButton||tgt==this.nextButton)){
while(!tgt.item){
tgt=tgt.parentNode;
}
}
this._focusOptionNode(tgt);
},_onMouseOut:function(evt){
if(evt.target===this.domNode){
return;
}
this._blurOptionNode();
},_focusOptionNode:function(node){
if(this._highlighted_option!=node){
this._blurOptionNode();
this._highlighted_option=node;
dojo.addClass(this._highlighted_option,"dijitMenuItemHover");
}
},_blurOptionNode:function(){
if(this._highlighted_option){
dojo.removeClass(this._highlighted_option,"dijitMenuItemHover");
this._highlighted_option=null;
}
},_highlightNextOption:function(){
var fc=this.domNode.firstChild;
if(!this.getHighlightedOption()){
this._focusOptionNode(fc.style.display=="none"?fc.nextSibling:fc);
}else{
var ns=this._highlighted_option.nextSibling;
if(ns&&ns.style.display!="none"){
this._focusOptionNode(ns);
}
}
dijit.scrollIntoView(this._highlighted_option);
},highlightFirstOption:function(){
this._focusOptionNode(this.domNode.firstChild.nextSibling);
dijit.scrollIntoView(this._highlighted_option);
},highlightLastOption:function(){
this._focusOptionNode(this.domNode.lastChild.previousSibling);
dijit.scrollIntoView(this._highlighted_option);
},_highlightPrevOption:function(){
var lc=this.domNode.lastChild;
if(!this.getHighlightedOption()){
this._focusOptionNode(lc.style.display=="none"?lc.previousSibling:lc);
}else{
var ps=this._highlighted_option.previousSibling;
if(ps&&ps.style.display!="none"){
this._focusOptionNode(ps);
}
}
dijit.scrollIntoView(this._highlighted_option);
},_page:function(up){
var _596=0;
var _597=this.domNode.scrollTop;
var _598=dojo.style(this.domNode,"height");
if(!this.getHighlightedOption()){
this._highlightNextOption();
}
while(_596<_598){
if(up){
if(!this.getHighlightedOption().previousSibling||this._highlighted_option.previousSibling.style.display=="none"){
break;
}
this._highlightPrevOption();
}else{
if(!this.getHighlightedOption().nextSibling||this._highlighted_option.nextSibling.style.display=="none"){
break;
}
this._highlightNextOption();
}
var _599=this.domNode.scrollTop;
_596+=(_599-_597)*(up?-1:1);
_597=_599;
}
},pageUp:function(){
this._page(true);
},pageDown:function(){
this._page(false);
},getHighlightedOption:function(){
var ho=this._highlighted_option;
return (ho&&ho.parentNode)?ho:null;
},handleKey:function(evt){
switch(evt.keyCode){
case dojo.keys.DOWN_ARROW:
this._highlightNextOption();
break;
case dojo.keys.PAGE_DOWN:
this.pageDown();
break;
case dojo.keys.UP_ARROW:
this._highlightPrevOption();
break;
case dojo.keys.PAGE_UP:
this.pageUp();
break;
}
}});
dojo.declare("dijit.form.MultiComboBox",[dijit.form.ValidationTextBox,dijit.form.MultiComboBoxMixin],{postMixInProperties:function(){
dijit.form.ComboBoxMixin.prototype.postMixInProperties.apply(this,arguments);
dijit.form.ValidationTextBox.prototype.postMixInProperties.apply(this,arguments);
},postCreate:function(){
dijit.form.ComboBoxMixin.prototype._postCreate.apply(this,arguments);
dijit.form.ValidationTextBox.prototype.postCreate.apply(this,arguments);
},setAttribute:function(attr,_59a){
dijit.form.ValidationTextBox.prototype.setAttribute.apply(this,arguments);
dijit.form.ComboBoxMixin.prototype._setAttribute.apply(this,arguments);
},isValid:function(){
return true;
}});
dojo.declare("dijit.form._ComboBoxDataStore",null,{constructor:function(root){
this.root=root;
},getValue:function(item,_59b,_59c){
return (_59b=="value")?item.value:(item.innerText||item.textContent||"");
},isItemLoaded:function(_59d){
return true;
},fetch:function(args){
var _59e="^"+args.query.name.replace(/([\\\|\(\)\[\{\^\$\+\?\.\<\>])/g,"\\$1").replace("*",".*")+"$",_59f=new RegExp(_59e,args.queryOptions.ignoreCase?"i":""),_5a0=dojo.query("> option",this.root).filter(function(_5a1){
return (_5a1.innerText||_5a1.textContent||"").match(_59f);
});
var _5a2=args.start||0,end=("count" in args&&args.count!=Infinity)?(_5a2+args.count):_5a0.length;
args.onComplete(_5a0.slice(_5a2,end),args);
return args;
},close:function(_5a3){
return;
},getLabel:function(item){
return item.innerHTML;
},getIdentity:function(item){
return dojo.attr(item,"value");
},fetchItemByIdentity:function(args){
var item=dojo.query("option[value='"+args.identity+"']",this.root)[0];
args.onItem(item);
},fetchSelectedItem:function(){
var root=this.root,si=root.selectedIndex;
return dojo.query("> option:nth-child("+(si!=-1?si+1:1)+")",root)[0];
}});
}
if(!dojo._hasResource["dojo.dnd.common"]){
dojo._hasResource["dojo.dnd.common"]=true;
dojo.provide("dojo.dnd.common");
dojo.dnd._copyKey=navigator.appVersion.indexOf("Macintosh")<0?"ctrlKey":"metaKey";
dojo.dnd.getCopyKeyState=function(e){
return e[dojo.dnd._copyKey];
};
dojo.dnd._uniqueId=0;
dojo.dnd.getUniqueId=function(){
var id;
do{
id=dojo._scopeName+"Unique"+(++dojo.dnd._uniqueId);
}while(dojo.byId(id));
return id;
};
dojo.dnd._empty={};
dojo.dnd.isFormElement=function(e){
var t=e.target;
if(t.nodeType==3){
t=t.parentNode;
}
return " button textarea input select option ".indexOf(" "+t.tagName.toLowerCase()+" ")>=0;
};
}
if(!dojo._hasResource["dojo.dnd.autoscroll"]){
dojo._hasResource["dojo.dnd.autoscroll"]=true;
dojo.provide("dojo.dnd.autoscroll");
dojo.dnd.getViewport=function(){
var d=dojo.doc,dd=d.documentElement,w=window,b=dojo.body();
if(dojo.isMozilla){
return {w:dd.clientWidth,h:w.innerHeight};
}else{
if(!dojo.isOpera&&w.innerWidth){
return {w:w.innerWidth,h:w.innerHeight};
}else{
if(!dojo.isOpera&&dd&&dd.clientWidth){
return {w:dd.clientWidth,h:dd.clientHeight};
}else{
if(b.clientWidth){
return {w:b.clientWidth,h:b.clientHeight};
}
}
}
}
return null;
};
dojo.dnd.V_TRIGGER_AUTOSCROLL=32;
dojo.dnd.H_TRIGGER_AUTOSCROLL=32;
dojo.dnd.V_AUTOSCROLL_VALUE=16;
dojo.dnd.H_AUTOSCROLL_VALUE=16;
dojo.dnd.autoScroll=function(e){
var v=dojo.dnd.getViewport(),dx=0,dy=0;
if(e.clientX<dojo.dnd.H_TRIGGER_AUTOSCROLL){
dx=-dojo.dnd.H_AUTOSCROLL_VALUE;
}else{
if(e.clientX>v.w-dojo.dnd.H_TRIGGER_AUTOSCROLL){
dx=dojo.dnd.H_AUTOSCROLL_VALUE;
}
}
if(e.clientY<dojo.dnd.V_TRIGGER_AUTOSCROLL){
dy=-dojo.dnd.V_AUTOSCROLL_VALUE;
}else{
if(e.clientY>v.h-dojo.dnd.V_TRIGGER_AUTOSCROLL){
dy=dojo.dnd.V_AUTOSCROLL_VALUE;
}
}
window.scrollBy(dx,dy);
};
dojo.dnd._validNodes={"div":1,"p":1,"td":1};
dojo.dnd._validOverflow={"auto":1,"scroll":1};
dojo.dnd.autoScrollNodes=function(e){
for(var n=e.target;n;){
if(n.nodeType==1&&(n.tagName.toLowerCase() in dojo.dnd._validNodes)){
var s=dojo.getComputedStyle(n);
if(s.overflow.toLowerCase() in dojo.dnd._validOverflow){
var b=dojo._getContentBox(n,s),t=dojo._abs(n,true);
b.l+=t.x+n.scrollLeft;
b.t+=t.y+n.scrollTop;
var w=Math.min(dojo.dnd.H_TRIGGER_AUTOSCROLL,b.w/2),h=Math.min(dojo.dnd.V_TRIGGER_AUTOSCROLL,b.h/2),rx=e.pageX-b.l,ry=e.pageY-b.t,dx=0,dy=0;
if(rx>0&&rx<b.w){
if(rx<w){
dx=-dojo.dnd.H_AUTOSCROLL_VALUE;
}else{
if(rx>b.w-w){
dx=dojo.dnd.H_AUTOSCROLL_VALUE;
}
}
}
if(ry>0&&ry<b.h){
if(ry<h){
dy=-dojo.dnd.V_AUTOSCROLL_VALUE;
}else{
if(ry>b.h-h){
dy=dojo.dnd.V_AUTOSCROLL_VALUE;
}
}
}
var _5a4=n.scrollLeft,_5a5=n.scrollTop;
n.scrollLeft=n.scrollLeft+dx;
n.scrollTop=n.scrollTop+dy;
if(_5a4!=n.scrollLeft||_5a5!=n.scrollTop){
return;
}
}
}
try{
n=n.parentNode;
}
catch(x){
n=null;
}
}
dojo.dnd.autoScroll(e);
};
}
if(!dojo._hasResource["dojo.dnd.Mover"]){
dojo._hasResource["dojo.dnd.Mover"]=true;
dojo.provide("dojo.dnd.Mover");
dojo.declare("dojo.dnd.Mover",null,{constructor:function(node,e,host){
this.node=dojo.byId(node);
this.marginBox={l:e.pageX,t:e.pageY};
this.mouseButton=e.button;
var h=this.host=host,d=node.ownerDocument,_5a6=dojo.connect(d,"onmousemove",this,"onFirstMove");
this.events=[dojo.connect(d,"onmousemove",this,"onMouseMove"),dojo.connect(d,"onmouseup",this,"onMouseUp"),dojo.connect(d,"ondragstart",dojo,"stopEvent"),dojo.connect(d,"onselectstart",dojo,"stopEvent"),_5a6];
if(h&&h.onMoveStart){
h.onMoveStart(this);
}
},onMouseMove:function(e){
dojo.dnd.autoScroll(e);
var m=this.marginBox;
this.host.onMove(this,{l:m.l+e.pageX,t:m.t+e.pageY});
},onMouseUp:function(e){
if(this.mouseButton==e.button){
this.destroy();
}
},onFirstMove:function(){
var s=this.node.style,l,t;
switch(s.position){
case "relative":
case "absolute":
l=Math.round(parseFloat(s.left));
t=Math.round(parseFloat(s.top));
break;
default:
s.position="absolute";
var m=dojo.marginBox(this.node);
l=m.l;
t=m.t;
break;
}
this.marginBox.l=l-this.marginBox.l;
this.marginBox.t=t-this.marginBox.t;
this.host.onFirstMove(this);
dojo.disconnect(this.events.pop());
},destroy:function(){
dojo.forEach(this.events,dojo.disconnect);
var h=this.host;
if(h&&h.onMoveStop){
h.onMoveStop(this);
}
this.events=this.node=null;
}});
}
if(!dojo._hasResource["dojo.dnd.Moveable"]){
dojo._hasResource["dojo.dnd.Moveable"]=true;
dojo.provide("dojo.dnd.Moveable");
dojo.declare("dojo.dnd.Moveable",null,{handle:"",delay:0,skip:false,constructor:function(node,_5a7){
this.node=dojo.byId(node);
if(!_5a7){
_5a7={};
}
this.handle=_5a7.handle?dojo.byId(_5a7.handle):null;
if(!this.handle){
this.handle=this.node;
}
this.delay=_5a7.delay>0?_5a7.delay:0;
this.skip=_5a7.skip;
this.mover=_5a7.mover?_5a7.mover:dojo.dnd.Mover;
this.events=[dojo.connect(this.handle,"onmousedown",this,"onMouseDown"),dojo.connect(this.handle,"ondragstart",this,"onSelectStart"),dojo.connect(this.handle,"onselectstart",this,"onSelectStart")];
},markupFactory:function(_5a8,node){
return new dojo.dnd.Moveable(node,_5a8);
},destroy:function(){
dojo.forEach(this.events,dojo.disconnect);
this.events=this.node=this.handle=null;
},onMouseDown:function(e){
if(this.skip&&dojo.dnd.isFormElement(e)){
return;
}
if(this.delay){
this.events.push(dojo.connect(this.handle,"onmousemove",this,"onMouseMove"));
this.events.push(dojo.connect(this.handle,"onmouseup",this,"onMouseUp"));
this._lastX=e.pageX;
this._lastY=e.pageY;
}else{
new this.mover(this.node,e,this);
}
dojo.stopEvent(e);
},onMouseMove:function(e){
if(Math.abs(e.pageX-this._lastX)>this.delay||Math.abs(e.pageY-this._lastY)>this.delay){
this.onMouseUp(e);
new this.mover(this.node,e,this);
}
dojo.stopEvent(e);
},onMouseUp:function(e){
dojo.disconnect(this.events.pop());
dojo.disconnect(this.events.pop());
},onSelectStart:function(e){
if(!this.skip||!dojo.dnd.isFormElement(e)){
dojo.stopEvent(e);
}
},onMoveStart:function(_5a9){
dojo.publish("/dnd/move/start",[_5a9]);
dojo.addClass(dojo.body(),"dojoMove");
dojo.addClass(this.node,"dojoMoveItem");
},onMoveStop:function(_5aa){
dojo.publish("/dnd/move/stop",[_5aa]);
dojo.removeClass(dojo.body(),"dojoMove");
dojo.removeClass(this.node,"dojoMoveItem");
},onFirstMove:function(_5ab){
},onMove:function(_5ac,_5ad){
this.onMoving(_5ac,_5ad);
var s=_5ac.node.style;
s.left=_5ad.l+"px";
s.top=_5ad.t+"px";
this.onMoved(_5ac,_5ad);
},onMoving:function(_5ae,_5af){
},onMoved:function(_5b0,_5b1){
}});
}
if(!dojo._hasResource["dojo.dnd.TimedMoveable"]){
dojo._hasResource["dojo.dnd.TimedMoveable"]=true;
dojo.provide("dojo.dnd.TimedMoveable");
(function(){
var _5b2=dojo.dnd.Moveable.prototype.onMove;
dojo.declare("dojo.dnd.TimedMoveable",dojo.dnd.Moveable,{timeout:40,constructor:function(node,_5b3){
if(!_5b3){
_5b3={};
}
if(_5b3.timeout&&typeof _5b3.timeout=="number"&&_5b3.timeout>=0){
this.timeout=_5b3.timeout;
}
},markupFactory:function(_5b4,node){
return new dojo.dnd.TimedMoveable(node,_5b4);
},onMoveStop:function(_5b5){
if(_5b5._timer){
clearTimeout(_5b5._timer);
_5b2.call(this,_5b5,_5b5._leftTop);
}
dojo.dnd.Moveable.prototype.onMoveStop.apply(this,arguments);
},onMove:function(_5b6,_5b7){
_5b6._leftTop=_5b7;
if(!_5b6._timer){
var _5b8=this;
_5b6._timer=setTimeout(function(){
_5b6._timer=null;
_5b2.call(_5b8,_5b6,_5b6._leftTop);
},this.timeout);
}
}});
})();
}
if(!dojo._hasResource["dojo.fx"]){
dojo._hasResource["dojo.fx"]=true;
dojo.provide("dojo.fx");
dojo.provide("dojo.fx.Toggler");
(function(){
var _5b9={_fire:function(evt,args){
if(this[evt]){
this[evt].apply(this,args||[]);
}
return this;
}};
var _5ba=function(_5bb){
this._index=-1;
this._animations=_5bb||[];
this._current=this._onAnimateCtx=this._onEndCtx=null;
this.duration=0;
dojo.forEach(this._animations,function(a){
this.duration+=a.duration;
if(a.delay){
this.duration+=a.delay;
}
},this);
};
dojo.extend(_5ba,{_onAnimate:function(){
this._fire("onAnimate",arguments);
},_onEnd:function(){
dojo.disconnect(this._onAnimateCtx);
dojo.disconnect(this._onEndCtx);
this._onAnimateCtx=this._onEndCtx=null;
if(this._index+1==this._animations.length){
this._fire("onEnd");
}else{
this._current=this._animations[++this._index];
this._onAnimateCtx=dojo.connect(this._current,"onAnimate",this,"_onAnimate");
this._onEndCtx=dojo.connect(this._current,"onEnd",this,"_onEnd");
this._current.play(0,true);
}
},play:function(_5bc,_5bd){
if(!this._current){
this._current=this._animations[this._index=0];
}
if(!_5bd&&this._current.status()=="playing"){
return this;
}
var _5be=dojo.connect(this._current,"beforeBegin",this,function(){
this._fire("beforeBegin");
}),_5bf=dojo.connect(this._current,"onBegin",this,function(arg){
this._fire("onBegin",arguments);
}),_5c0=dojo.connect(this._current,"onPlay",this,function(arg){
this._fire("onPlay",arguments);
dojo.disconnect(_5be);
dojo.disconnect(_5bf);
dojo.disconnect(_5c0);
});
if(this._onAnimateCtx){
dojo.disconnect(this._onAnimateCtx);
}
this._onAnimateCtx=dojo.connect(this._current,"onAnimate",this,"_onAnimate");
if(this._onEndCtx){
dojo.disconnect(this._onEndCtx);
}
this._onEndCtx=dojo.connect(this._current,"onEnd",this,"_onEnd");
this._current.play.apply(this._current,arguments);
return this;
},pause:function(){
if(this._current){
var e=dojo.connect(this._current,"onPause",this,function(arg){
this._fire("onPause",arguments);
dojo.disconnect(e);
});
this._current.pause();
}
return this;
},gotoPercent:function(_5c1,_5c2){
this.pause();
var _5c3=this.duration*_5c1;
this._current=null;
dojo.some(this._animations,function(a){
if(a.duration<=_5c3){
this._current=a;
return true;
}
_5c3-=a.duration;
return false;
});
if(this._current){
this._current.gotoPercent(_5c3/_current.duration,_5c2);
}
return this;
},stop:function(_5c4){
if(this._current){
if(_5c4){
for(;this._index+1<this._animations.length;++this._index){
this._animations[this._index].stop(true);
}
this._current=this._animations[this._index];
}
var e=dojo.connect(this._current,"onStop",this,function(arg){
this._fire("onStop",arguments);
dojo.disconnect(e);
});
this._current.stop();
}
return this;
},status:function(){
return this._current?this._current.status():"stopped";
},destroy:function(){
if(this._onAnimateCtx){
dojo.disconnect(this._onAnimateCtx);
}
if(this._onEndCtx){
dojo.disconnect(this._onEndCtx);
}
}});
dojo.extend(_5ba,_5b9);
dojo.fx.chain=function(_5c5){
return new _5ba(_5c5);
};
var _5c6=function(_5c7){
this._animations=_5c7||[];
this._connects=[];
this._finished=0;
this.duration=0;
dojo.forEach(_5c7,function(a){
var _5c8=a.duration;
if(a.delay){
_5c8+=a.delay;
}
if(this.duration<_5c8){
this.duration=_5c8;
}
this._connects.push(dojo.connect(a,"onEnd",this,"_onEnd"));
},this);
this._pseudoAnimation=new dojo._Animation({curve:[0,1],duration:this.duration});
dojo.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop"],function(evt){
this._connects.push(dojo.connect(this._pseudoAnimation,evt,dojo.hitch(this,"_fire",evt)));
},this);
};
dojo.extend(_5c6,{_doAction:function(_5c9,args){
dojo.forEach(this._animations,function(a){
a[_5c9].apply(a,args);
});
return this;
},_onEnd:function(){
if(++this._finished==this._animations.length){
this._fire("onEnd");
}
},_call:function(_5ca,args){
var t=this._pseudoAnimation;
t[_5ca].apply(t,args);
},play:function(_5cb,_5cc){
this._finished=0;
this._doAction("play",arguments);
this._call("play",arguments);
return this;
},pause:function(){
this._doAction("pause",arguments);
this._call("pause",arguments);
return this;
},gotoPercent:function(_5cd,_5ce){
var ms=this.duration*_5cd;
dojo.forEach(this._animations,function(a){
a.gotoPercent(a.duration<ms?1:(ms/a.duration),_5ce);
});
this._call("gotoProcent",arguments);
return this;
},stop:function(_5cf){
this._doAction("stop",arguments);
this._call("stop",arguments);
return this;
},status:function(){
return this._pseudoAnimation.status();
},destroy:function(){
dojo.forEach(this._connects,dojo.disconnect);
}});
dojo.extend(_5c6,_5b9);
dojo.fx.combine=function(_5d0){
return new _5c6(_5d0);
};
})();
dojo.declare("dojo.fx.Toggler",null,{constructor:function(args){
var _5d1=this;
dojo.mixin(_5d1,args);
_5d1.node=args.node;
_5d1._showArgs=dojo.mixin({},args);
_5d1._showArgs.node=_5d1.node;
_5d1._showArgs.duration=_5d1.showDuration;
_5d1.showAnim=_5d1.showFunc(_5d1._showArgs);
_5d1._hideArgs=dojo.mixin({},args);
_5d1._hideArgs.node=_5d1.node;
_5d1._hideArgs.duration=_5d1.hideDuration;
_5d1.hideAnim=_5d1.hideFunc(_5d1._hideArgs);
dojo.connect(_5d1.showAnim,"beforeBegin",dojo.hitch(_5d1.hideAnim,"stop",true));
dojo.connect(_5d1.hideAnim,"beforeBegin",dojo.hitch(_5d1.showAnim,"stop",true));
},node:null,showFunc:dojo.fadeIn,hideFunc:dojo.fadeOut,showDuration:200,hideDuration:200,show:function(_5d2){
return this.showAnim.play(_5d2||0);
},hide:function(_5d3){
return this.hideAnim.play(_5d3||0);
}});
dojo.fx.wipeIn=function(args){
args.node=dojo.byId(args.node);
var node=args.node,s=node.style;
var anim=dojo.animateProperty(dojo.mixin({properties:{height:{start:function(){
s.overflow="hidden";
if(s.visibility=="hidden"||s.display=="none"){
s.height="1px";
s.display="";
s.visibility="";
return 1;
}else{
var _5d4=dojo.style(node,"height");
return Math.max(_5d4,1);
}
},end:function(){
return node.scrollHeight;
}}}},args));
dojo.connect(anim,"onEnd",function(){
s.height="auto";
});
return anim;
};
dojo.fx.wipeOut=function(args){
var node=args.node=dojo.byId(args.node);
var s=node.style;
var anim=dojo.animateProperty(dojo.mixin({properties:{height:{end:1}}},args));
dojo.connect(anim,"beforeBegin",function(){
s.overflow="hidden";
s.display="";
});
dojo.connect(anim,"onEnd",function(){
s.height="auto";
s.display="none";
});
return anim;
};
dojo.fx.slideTo=function(args){
var node=(args.node=dojo.byId(args.node));
var top=null;
var left=null;
var init=(function(n){
return function(){
var cs=dojo.getComputedStyle(n);
var pos=cs.position;
top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);
left=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);
if(pos!="absolute"&&pos!="relative"){
var ret=dojo.coords(n,true);
top=ret.y;
left=ret.x;
n.style.position="absolute";
n.style.top=top+"px";
n.style.left=left+"px";
}
};
})(node);
init();
var anim=dojo.animateProperty(dojo.mixin({properties:{top:{end:args.top||0},left:{end:args.left||0}}},args));
dojo.connect(anim,"beforeBegin",anim,init);
return anim;
};
}
if(!dojo._hasResource["dijit.form.Form"]){
dojo._hasResource["dijit.form.Form"]=true;
dojo.provide("dijit.form.Form");
dojo.declare("dijit.form._FormMixin",null,{reset:function(){
dojo.forEach(this.getDescendants(),function(_5d5){
if(_5d5.reset){
_5d5.reset();
}
});
},validate:function(){
var _5d6=false;
return dojo.every(dojo.map(this.getDescendants(),function(_5d7){
_5d7._hasBeenBlurred=true;
var _5d8=!_5d7.validate||_5d7.validate();
if(!_5d8&&!_5d6){
dijit.scrollIntoView(_5d7.containerNode||_5d7.domNode);
_5d7.focus();
_5d6=true;
}
return _5d8;
}),"return item;");
},setValues:function(obj){
var map={};
dojo.forEach(this.getDescendants(),function(_5d9){
if(!_5d9.name){
return;
}
var _5da=map[_5d9.name]||(map[_5d9.name]=[]);
_5da.push(_5d9);
});
for(var name in map){
var _5db=map[name],_5dc=dojo.getObject(name,false,obj);
if(!dojo.isArray(_5dc)){
_5dc=[_5dc];
}
if(typeof _5db[0].checked=="boolean"){
dojo.forEach(_5db,function(w,i){
w.setValue(dojo.indexOf(_5dc,w.value)!=-1);
});
}else{
if(_5db[0]._multiValue){
_5db[0].setValue(_5dc);
}else{
dojo.forEach(_5db,function(w,i){
w.setValue(_5dc[i]);
});
}
}
}
},getValues:function(){
var obj={};
dojo.forEach(this.getDescendants(),function(_5dd){
var name=_5dd.name;
if(!name){
return;
}
var _5de=(_5dd.getValue&&!_5dd._getValueDeprecated)?_5dd.getValue():_5dd.value;
if(typeof _5dd.checked=="boolean"){
if(/Radio/.test(_5dd.declaredClass)){
if(_5de!==false){
dojo.setObject(name,_5de,obj);
}
}else{
var ary=dojo.getObject(name,false,obj);
if(!ary){
ary=[];
dojo.setObject(name,ary,obj);
}
if(_5de!==false){
ary.push(_5de);
}
}
}else{
dojo.setObject(name,_5de,obj);
}
});
return obj;
},isValid:function(){
return dojo.every(this.getDescendants(),function(_5df){
return !_5df.isValid||_5df.isValid();
});
}});
dojo.declare("dijit.form.Form",[dijit._Widget,dijit._Templated,dijit.form._FormMixin],{name:"",action:"",method:"",encType:"","accept-charset":"",accept:"",target:"",templateString:"<form dojoAttachPoint='containerNode' dojoAttachEvent='onreset:_onReset,onsubmit:_onSubmit' name='${name}'></form>",attributeMap:dojo.mixin(dojo.clone(dijit._Widget.prototype.attributeMap),{action:"",method:"",encType:"","accept-charset":"",accept:"",target:""}),execute:function(_5e0){
},onExecute:function(){
},setAttribute:function(attr,_5e1){
this.inherited(arguments);
switch(attr){
case "encType":
if(dojo.isIE){
this.domNode.encoding=_5e1;
}
}
},postCreate:function(){
if(dojo.isIE&&this.srcNodeRef&&this.srcNodeRef.attributes){
var item=this.srcNodeRef.attributes.getNamedItem("encType");
if(item&&!item.specified&&(typeof item.value=="string")){
this.setAttribute("encType",item.value);
}
}
this.inherited(arguments);
},onReset:function(e){
return true;
},_onReset:function(e){
var faux={returnValue:true,preventDefault:function(){
this.returnValue=false;
},stopPropagation:function(){
},currentTarget:e.currentTarget,target:e.target};
if(!(this.onReset(faux)===false)&&faux.returnValue){
this.reset();
}
dojo.stopEvent(e);
return false;
},_onSubmit:function(e){
var fp=dijit.form.Form.prototype;
if(this.execute!=fp.execute||this.onExecute!=fp.onExecute){
dojo.deprecated("dijit.form.Form:execute()/onExecute() are deprecated. Use onSubmit() instead.","","2.0");
this.onExecute();
this.execute(this.getValues());
}
if(this.onSubmit(e)===false){
dojo.stopEvent(e);
}
},onSubmit:function(e){
return this.isValid();
},submit:function(){
if(!(this.onSubmit()===false)){
this.containerNode.submit();
}
}});
}
if(!dojo._hasResource["dijit.Dialog"]){
dojo._hasResource["dijit.Dialog"]=true;
dojo.provide("dijit.Dialog");
dojo.declare("dijit.DialogUnderlay",[dijit._Widget,dijit._Templated],{templateString:"<div class='dijitDialogUnderlayWrapper' id='${id}_wrapper'><div class='dijitDialogUnderlay ${class}' id='${id}' dojoAttachPoint='node'></div></div>",attributeMap:{},postCreate:function(){
dojo.body().appendChild(this.domNode);
this.bgIframe=new dijit.BackgroundIframe(this.domNode);
},layout:function(){
var _5e2=dijit.getViewport();
var is=this.node.style,os=this.domNode.style;
os.top=_5e2.t+"px";
os.left=_5e2.l+"px";
is.width=_5e2.w+"px";
is.height=_5e2.h+"px";
var _5e3=dijit.getViewport();
if(_5e2.w!=_5e3.w){
is.width=_5e3.w+"px";
}
if(_5e2.h!=_5e3.h){
is.height=_5e3.h+"px";
}
},show:function(){
this.domNode.style.display="block";
this.layout();
if(this.bgIframe.iframe){
this.bgIframe.iframe.style.display="block";
}
this._resizeHandler=this.connect(window,"onresize","layout");
},hide:function(){
this.domNode.style.display="none";
if(this.bgIframe.iframe){
this.bgIframe.iframe.style.display="none";
}
this.disconnect(this._resizeHandler);
},uninitialize:function(){
if(this.bgIframe){
this.bgIframe.destroy();
}
}});
dojo.declare("dijit._DialogMixin",null,{attributeMap:dijit._Widget.prototype.attributeMap,execute:function(_5e4){
},onCancel:function(){
},onExecute:function(){
},_onSubmit:function(){
this.onExecute();
this.execute(this.getValues());
},_getFocusItems:function(_5e5){
var _5e6=dijit.getFirstInTabbingOrder(_5e5);
this._firstFocusItem=_5e6?_5e6:_5e5;
_5e6=dijit.getLastInTabbingOrder(_5e5);
this._lastFocusItem=_5e6?_5e6:this._firstFocusItem;
if(dojo.isMoz&&this._firstFocusItem.tagName.toLowerCase()=="input"&&dojo.attr(this._firstFocusItem,"type").toLowerCase()=="file"){
dojo.attr(_5e5,"tabindex","0");
this._firstFocusItem=_5e5;
}
}});
dojo.declare("dijit.Dialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin],{templateString:null,templateString:"<div class=\"dijitDialog\" tabindex=\"-1\" waiRole=\"dialog\" waiState=\"labelledby-${id}_title\">\r\n\t<div dojoAttachPoint=\"titleBar\" class=\"dijitDialogTitleBar\">\r\n\t<span dojoAttachPoint=\"titleNode\" class=\"dijitDialogTitle\" id=\"${id}_title\">${title}</span>\r\n\t<span dojoAttachPoint=\"closeButtonNode\" class=\"dijitDialogCloseIcon\" dojoAttachEvent=\"onclick: onCancel\">\r\n\t\t<span dojoAttachPoint=\"closeText\" class=\"closeText\">x</span>\r\n\t</span>\r\n\t</div>\r\n\t\t<div dojoAttachPoint=\"containerNode\" class=\"dijitDialogPaneContent\"></div>\r\n</div>\r\n",open:false,duration:400,refocus:true,_firstFocusItem:null,_lastFocusItem:null,doLayout:false,attributeMap:dojo.mixin(dojo.clone(dijit._Widget.prototype.attributeMap),{title:"titleBar"}),postCreate:function(){
dojo.body().appendChild(this.domNode);
this.inherited(arguments);
var _5e7=dojo.i18n.getLocalization("dijit","common");
if(this.closeButtonNode){
this.closeButtonNode.setAttribute("title",_5e7.buttonCancel);
}
if(this.closeText){
this.closeText.setAttribute("title",_5e7.buttonCancel);
}
var s=this.domNode.style;
s.visibility="hidden";
s.position="absolute";
s.display="";
s.top="-9999px";
this.connect(this,"onExecute","hide");
this.connect(this,"onCancel","hide");
this._modalconnects=[];
},onLoad:function(){
this._position();
this.inherited(arguments);
},_setup:function(){
if(this.titleBar){
this._moveable=new dojo.dnd.TimedMoveable(this.domNode,{handle:this.titleBar,timeout:0});
}
this._underlay=new dijit.DialogUnderlay({id:this.id+"_underlay","class":dojo.map(this["class"].split(/\s/),function(s){
return s+"_underlay";
}).join(" ")});
var node=this.domNode;
this._fadeIn=dojo.fx.combine([dojo.fadeIn({node:node,duration:this.duration}),dojo.fadeIn({node:this._underlay.domNode,duration:this.duration,onBegin:dojo.hitch(this._underlay,"show")})]);
this._fadeOut=dojo.fx.combine([dojo.fadeOut({node:node,duration:this.duration,onEnd:function(){
node.style.visibility="hidden";
node.style.top="-9999px";
}}),dojo.fadeOut({node:this._underlay.domNode,duration:this.duration,onEnd:dojo.hitch(this._underlay,"hide")})]);
},uninitialize:function(){
if(this._fadeIn&&this._fadeIn.status()=="playing"){
this._fadeIn.stop();
}
if(this._fadeOut&&this._fadeOut.status()=="playing"){
this._fadeOut.stop();
}
if(this._underlay){
this._underlay.destroy();
}
},_position:function(){
if(dojo.hasClass(dojo.body(),"dojoMove")){
return;
}
var _5e8=dijit.getViewport();
var mb=dojo.marginBox(this.domNode);
var _5e9=this.domNode.style;
_5e9.left=Math.floor((_5e8.l+(_5e8.w-mb.w)/2))+"px";
_5e9.top=Math.floor((_5e8.t+(_5e8.h-mb.h)/2))+"px";
},_onKey:function(evt){
if(evt.keyCode){
var node=evt.target;
if(evt.keyCode==dojo.keys.TAB){
this._getFocusItems(this.domNode);
}
var _5ea=(this._firstFocusItem==this._lastFocusItem);
if(node==this._firstFocusItem&&evt.shiftKey&&evt.keyCode==dojo.keys.TAB){
if(!_5ea){
dijit.focus(this._lastFocusItem);
}
dojo.stopEvent(evt);
}else{
if(node==this._lastFocusItem&&evt.keyCode==dojo.keys.TAB&&!evt.shiftKey){
if(!_5ea){
dijit.focus(this._firstFocusItem);
}
dojo.stopEvent(evt);
}else{
while(node){
if(node==this.domNode){
if(evt.keyCode==dojo.keys.ESCAPE){
this.hide();
}else{
return;
}
}
node=node.parentNode;
}
if(evt.keyCode!=dojo.keys.TAB){
dojo.stopEvent(evt);
}else{
if(!dojo.isOpera){
try{
this._firstFocusItem.focus();
}
catch(e){
}
}
}
}
}
}
},show:function(){
if(this.open){
return;
}
if(!this._alreadyInitialized){
this._setup();
this._alreadyInitialized=true;
}
if(this._fadeOut.status()=="playing"){
this._fadeOut.stop();
}
this._modalconnects.push(dojo.connect(window,"onscroll",this,"layout"));
this._modalconnects.push(dojo.connect(dojo.doc.documentElement,"onkeypress",this,"_onKey"));
dojo.style(this.domNode,"opacity",0);
this.domNode.style.visibility="";
this.open=true;
this._loadCheck();
this._position();
this._fadeIn.play();
this._savedFocus=dijit.getFocus(this);
this._getFocusItems(this.domNode);
setTimeout(dojo.hitch(this,function(){
dijit.focus(this._firstFocusItem);
}),50);
},hide:function(){
if(!this._alreadyInitialized){
return;
}
if(this._fadeIn.status()=="playing"){
this._fadeIn.stop();
}
this._fadeOut.play();
if(this._scrollConnected){
this._scrollConnected=false;
}
dojo.forEach(this._modalconnects,dojo.disconnect);
this._modalconnects=[];
if(this.refocus){
this.connect(this._fadeOut,"onEnd",dojo.hitch(dijit,"focus",this._savedFocus));
}
this.open=false;
},layout:function(){
if(this.domNode.style.visibility!="hidden"){
this._underlay.layout();
this._position();
}
},destroy:function(){
dojo.forEach(this._modalconnects,dojo.disconnect);
if(this.refocus&&this.open){
var fo=this._savedFocus;
setTimeout(dojo.hitch(dijit,"focus",fo),25);
}
this.inherited(arguments);
}});
dojo.declare("dijit.TooltipDialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin],{title:"",doLayout:false,_firstFocusItem:null,_lastFocusItem:null,templateString:null,templateString:"<div class=\"dijitTooltipDialog\" waiRole=\"presentation\">\r\n\t<div class=\"dijitTooltipContainer\" waiRole=\"presentation\">\r\n\t\t<div class =\"dijitTooltipContents dijitTooltipFocusNode\" dojoAttachPoint=\"containerNode\" tabindex=\"-1\" waiRole=\"dialog\"></div>\r\n\t</div>\r\n\t<div class=\"dijitTooltipConnector\" waiRole=\"presenation\"></div>\r\n</div>\r\n",postCreate:function(){
this.inherited(arguments);
this.connect(this.containerNode,"onkeypress","_onKey");
this.containerNode.title=this.title;
},orient:function(node,_5eb,_5ec){
this.domNode.className="dijitTooltipDialog "+" dijitTooltipAB"+(_5ec.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(_5ec.charAt(0)=="T"?"Below":"Above");
},onOpen:function(pos){
this._getFocusItems(this.containerNode);
this.orient(this.domNode,pos.aroundCorner,pos.corner);
this._loadCheck();
dijit.focus(this._firstFocusItem);
},_onKey:function(evt){
var node=evt.target;
if(evt.keyCode==dojo.keys.TAB){
this._getFocusItems(this.containerNode);
}
var _5ed=(this._firstFocusItem==this._lastFocusItem);
if(evt.keyCode==dojo.keys.ESCAPE){
this.onCancel();
}else{
if(node==this._firstFocusItem&&evt.shiftKey&&evt.keyCode==dojo.keys.TAB){
if(!_5ed){
dijit.focus(this._lastFocusItem);
}
dojo.stopEvent(evt);
}else{
if(node==this._lastFocusItem&&evt.keyCode==dojo.keys.TAB&&!evt.shiftKey){
if(!_5ed){
dijit.focus(this._firstFocusItem);
}
dojo.stopEvent(evt);
}else{
if(evt.keyCode==dojo.keys.TAB){
evt.stopPropagation();
}
}
}
}
}});
}
if(!dojo._hasResource["dijit.form.Textarea"]){
dojo._hasResource["dijit.form.Textarea"]=true;
dojo.provide("dijit.form.Textarea");
dojo.declare("dijit.form.Textarea",dijit.form._FormValueWidget,{attributeMap:dojo.mixin(dojo.clone(dijit.form._FormValueWidget.prototype.attributeMap),{style:"styleNode","class":"styleNode"}),templateString:(dojo.isIE||dojo.isSafari||dojo.isFF)?((dojo.isIE||dojo.isSafari||dojo.isFF>=3)?"<fieldset id=\"${id}\" class=\"dijitInline dijitInputField dijitTextArea\" dojoAttachPoint=\"styleNode\" waiRole=\"presentation\"><div dojoAttachPoint=\"editNode,focusNode,eventNode\" dojoAttachEvent=\"onpaste:_changing,oncut:_changing\" waiRole=\"textarea\" style=\"text-decoration:none;display:block;overflow:auto;\" contentEditable=\"true\"></div>":"<span id=\"${id}\" class=\"dijitReset\">"+"<iframe src=\"javascript:<html><head><title>${_iframeEditTitle}</title></head><body><script>var _postCreate=window.frameElement?window.frameElement.postCreate:null;if(_postCreate)_postCreate();</script></body></html>\""+" dojoAttachPoint=\"iframe,styleNode\" dojoAttachEvent=\"onblur:_onIframeBlur\" class=\"dijitInline dijitInputField dijitTextArea\"></iframe>")+"<textarea name=\"${name}\" value=\"${value}\" dojoAttachPoint=\"formValueNode\" style=\"display:none;\"></textarea>"+((dojo.isIE||dojo.isSafari||dojo.isFF>=3)?"</fieldset>":"</span>"):"<textarea id=\"${id}\" name=\"${name}\" value=\"${value}\" dojoAttachPoint=\"formValueNode,editNode,focusNode,styleNode\" class=\"dijitInputField dijitTextArea\">"+dojo.isFF+"</textarea>",setAttribute:function(attr,_5ee){
this.inherited(arguments);
switch(attr){
case "disabled":
this.formValueNode.disabled=this.disabled;
case "readOnly":
if(dojo.isIE||dojo.isSafari||dojo.isFF>=3){
this.editNode.contentEditable=(!this.disabled&&!this.readOnly);
}else{
if(dojo.isFF){
this.iframe.contentDocument.designMode=(this.disabled||this.readOnly)?"off":"on";
}
}
}
},focus:function(){
if(!this.disabled&&!this.readOnly){
this._changing();
}
dijit.focus(this.iframe||this.focusNode);
},setValue:function(_5ef,_5f0){
var _5f1=this.editNode;
if(typeof _5ef=="string"){
_5f1.innerHTML="";
if(_5ef.split){
var _5f2=this;
var _5f3=true;
dojo.forEach(_5ef.split("\n"),function(line){
if(_5f3){
_5f3=false;
}else{
_5f1.appendChild(dojo.doc.createElement("BR"));
}
if(line){
_5f1.appendChild(dojo.doc.createTextNode(line));
}
});
}else{
if(_5ef){
_5f1.appendChild(dojo.doc.createTextNode(_5ef));
}
}
if(!dojo.isIE){
_5f1.appendChild(dojo.doc.createElement("BR"));
}
}else{
_5ef=_5f1.innerHTML;
if(this.iframe){
_5ef=_5ef.replace(/<div><\/div>\r?\n?$/i,"");
}
_5ef=_5ef.replace(/\s*\r?\n|^\s+|\s+$|&nbsp;/g,"").replace(/>\s+</g,"><").replace(/<\/(p|div)>$|^<(p|div)[^>]*>/gi,"").replace(/([^>])<div>/g,"$1\n").replace(/<\/p>\s*<p[^>]*>|<br[^>]*>|<\/div>\s*<div[^>]*>/gi,"\n").replace(/<[^>]*>/g,"").replace(/&amp;/gi,"&").replace(/&lt;/gi,"<").replace(/&gt;/gi,">");
if(!dojo.isIE){
_5ef=_5ef.replace(/\n$/,"");
}
}
this.value=this.formValueNode.value=_5ef;
if(this.iframe){
var _5f4=dojo.doc.createElement("div");
_5f1.appendChild(_5f4);
var _5f5=_5f4.offsetTop;
if(_5f1.scrollWidth>_5f1.clientWidth){
_5f5+=16;
}
if(this.lastHeight!=_5f5){
if(_5f5==0){
_5f5=16;
}
dojo.contentBox(this.iframe,{h:_5f5});
this.lastHeight=_5f5;
}
_5f1.removeChild(_5f4);
}
dijit.form.Textarea.superclass.setValue.call(this,this.getValue(),_5f0);
},getValue:function(){
return this.value.replace(/\r/g,"");
},postMixInProperties:function(){
this.inherited(arguments);
if(this.srcNodeRef&&this.srcNodeRef.innerHTML!=""){
this.value=this.srcNodeRef.innerHTML;
this.srcNodeRef.innerHTML="";
}
if((!this.value||this.value=="")&&this.srcNodeRef&&this.srcNodeRef.value){
this.value=this.srcNodeRef.value;
}
if(!this.value){
this.value="";
}
this.value=this.value.replace(/\r\n/g,"\n").replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&amp;/g,"&");
if(dojo.isFF==2){
var _5f6=dojo.i18n.getLocalization("dijit.form","Textarea");
this._iframeEditTitle=_5f6.iframeEditTitle;
this._iframeFocusTitle=_5f6.iframeFocusTitle;
var _5f7=dojo.query("label[for=\""+this.id+"\"]");
if(_5f7.length){
this._iframeEditTitle=_5f7[0].innerHTML+" "+this._iframeEditTitle;
}
var body=this.focusNode=this.editNode=dojo.doc.createElement("BODY");
body.style.margin="0px";
body.style.padding="0px";
body.style.border="0px";
}
},postCreate:function(){
if(dojo.isIE||dojo.isSafari||dojo.isFF>=3){
this.domNode.style.overflowY="hidden";
}else{
if(dojo.isFF){
var w=this.iframe.contentWindow;
var _5f8="";
try{
_5f8=this.iframe.contentDocument.title;
}
catch(e){
}
if(!w||!_5f8){
this.iframe.postCreate=dojo.hitch(this,this.postCreate);
return;
}
var d=w.document;
d.getElementsByTagName("HTML")[0].replaceChild(this.editNode,d.getElementsByTagName("BODY")[0]);
if(!this.isLeftToRight()){
d.getElementsByTagName("HTML")[0].dir="rtl";
}
this.iframe.style.overflowY="hidden";
this.eventNode=d;
w.addEventListener("resize",dojo.hitch(this,this._changed),false);
}else{
this.focusNode=this.domNode;
}
}
if(this.eventNode){
this.connect(this.eventNode,"keypress",this._onKeyPress);
this.connect(this.eventNode,"mousemove",this._changed);
this.connect(this.eventNode,"focus",this._focused);
this.connect(this.eventNode,"blur",this._blurred);
}
if(this.editNode){
this.connect(this.editNode,"change",this._changed);
}
this.inherited("postCreate",arguments);
},_focused:function(e){
dojo.addClass(this.iframe||this.domNode,"dijitInputFieldFocused");
this._changed(e);
},_blurred:function(e){
dojo.removeClass(this.iframe||this.domNode,"dijitInputFieldFocused");
this._changed(e,true);
},_onIframeBlur:function(){
this.iframe.contentDocument.title=this._iframeEditTitle;
},_onKeyPress:function(e){
if(e.keyCode==dojo.keys.TAB&&!e.shiftKey&&!e.ctrlKey&&!e.altKey&&this.iframe){
this.iframe.contentDocument.title=this._iframeFocusTitle;
this.iframe.focus();
dojo.stopEvent(e);
}else{
if(e.keyCode==dojo.keys.ENTER){
e.stopPropagation();
}else{
if(this.inherited("_onKeyPress",arguments)&&this.iframe){
var te=dojo.doc.createEvent("KeyEvents");
te.initKeyEvent("keypress",true,true,null,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.keyCode,e.charCode);
this.iframe.dispatchEvent(te);
}
}
}
this._changing();
},_changing:function(e){
setTimeout(dojo.hitch(this,"_changed",e,false),1);
},_changed:function(e,_5f9){
if(this.iframe&&this.iframe.contentDocument.designMode!="on"&&!this.disabled&&!this.readOnly){
this.iframe.contentDocument.designMode="on";
}
this.setValue(null,_5f9||false);
}});
}
if(dojo.config.afterOnLoad&&dojo.isBrowser){
window.setTimeout(dojo._fakeLoadInit,1000);
}
})();
dojo.i18n._preloadLocalizations("dojo.nls.dojo",["he","nl","tr","no","ko","el","en","en-gb","ROOT","zh-cn","hu","es","fi-fi","pt-br","fi","he-il","xx","ru","it","fr","cs","de-de","fr-fr","it-it","es-es","ja","da","pl","de","sv","pt","zh-tw","pt-pt","nl-nl","ko-kr","ar","en-us","zh","ja-jp"]);


