/* Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ /* This is an optimized version of Dojo, built for deployment and not for development. To get sources and documentation, please visit: http://dojotoolkit.org */ if(!dojo._hasResource["dojo.i18n"]){dojo._hasResource["dojo.i18n"]=true;dojo.provide("dojo.i18n");dojo.getObject("i18n",true,dojo);dojo.i18n.getLocalization=dojo.i18n.getLocalization||function(_1,_2,_3){_3=dojo.i18n.normalizeLocale(_3);var _4=_3.split("-");var _5=[_1,"nls",_2].join(".");var _6=dojo._loadedModules[_5];if(_6){var _7;for(var i=_4.length;i>0;i--){var _8=_4.slice(0,i).join("_");if(_6[_8]){_7=_6[_8];break;}}if(!_7){_7=_6.ROOT;}if(_7){var _9=function(){};_9.prototype=_7;return new _9();}}throw new Error("Bundle not found: "+_2+" in "+_1+" , locale="+_3);};dojo.i18n.normalizeLocale=function(_a){var _b=_a?_a.toLowerCase():dojo.locale;if(_b=="root"){_b="ROOT";}return _b;};dojo.i18n._requireLocalization=function(_c,_d,_e,_f){var _10=dojo.i18n.normalizeLocale(_e);var _11=[_c,"nls",_d].join(".");var _12="";if(_f){var _13=_f.split(",");for(var i=0;i<_13.length;i++){if(_10["indexOf"](_13[i])==0){if(_13[i].length>_12.length){_12=_13[i];}}}if(!_12){_12="ROOT";}}var _14=_f?_12:_10;var _15=dojo._loadedModules[_11];var _16=null;if(_15){if(dojo.config.localizationComplete&&_15._built){return;}var _17=_14.replace(/-/g,"_");var _18=_11+"."+_17;_16=dojo._loadedModules[_18];}if(!_16){_15=dojo["provide"](_11);var _19=dojo._getModuleSymbols(_c);var _1a=_19.concat("nls").join("/");var _1b;dojo.i18n._searchLocalePath(_14,_f,function(loc){var _1c=loc.replace(/-/g,"_");var _1d=_11+"."+_1c;var _1e=false;if(!dojo._loadedModules[_1d]){dojo["provide"](_1d);var _1f=[_1a];if(loc!="ROOT"){_1f.push(loc);}_1f.push(_d);var _20=_1f.join("/")+".js";_1e=dojo._loadPath(_20,null,function(_21){_21=_21.root||_21;var _22=function(){};_22.prototype=_1b;_15[_1c]=new _22();for(var j in _21){_15[_1c][j]=_21[j];}});}else{_1e=true;}if(_1e&&_15[_1c]){_1b=_15[_1c];}else{_15[_1c]=_1b;}if(_f){return true;}});}if(_f&&_10!=_12){_15[_10.replace(/-/g,"_")]=_15[_12.replace(/-/g,"_")];}};(function(){var _23=dojo.config.extraLocale;if(_23){if(!_23 instanceof Array){_23=[_23];}var req=dojo.i18n._requireLocalization;dojo.i18n._requireLocalization=function(m,b,_24,_25){req(m,b,_24,_25);if(_24){return;}for(var i=0;i<_23.length;i++){req(m,b,_23[i],_25);}};}})();dojo.i18n._searchLocalePath=function(_26,_27,_28){_26=dojo.i18n.normalizeLocale(_26);var _29=_26.split("-");var _2a=[];for(var i=_29.length;i>0;i--){_2a.push(_29.slice(0,i).join("-"));}_2a.push(false);if(_27){_2a.reverse();}for(var j=_2a.length-1;j>=0;j--){var loc=_2a[j]||"ROOT";var _2b=_28(loc);if(_2b){break;}}};dojo.i18n._preloadLocalizations=function(_2c,_2d){function _2e(_2f){_2f=dojo.i18n.normalizeLocale(_2f);dojo.i18n._searchLocalePath(_2f,true,function(loc){for(var i=0;i<_2d.length;i++){if(_2d[i]==loc){dojo["require"](_2c+"_"+loc);return true;}}return false;});};_2e();var _30=dojo.config.extraLocale||[];for(var i=0;i<_30.length;i++){_2e(_30[i]);}};}if(!dojo._hasResource["dojo.window"]){dojo._hasResource["dojo.window"]=true;dojo.provide("dojo.window");dojo.getObject("window",true,dojo);dojo.window.getBox=function(){var _31=(dojo.doc.compatMode=="BackCompat")?dojo.body():dojo.doc.documentElement;var _32=dojo._docScroll();return {w:_31.clientWidth,h:_31.clientHeight,l:_32.x,t:_32.y};};dojo.window.get=function(doc){if(dojo.isIE&&window!==document.parentWindow){doc.parentWindow.execScript("document._parentWindow = window;","Javascript");var win=doc._parentWindow;doc._parentWindow=null;return win;}return doc.parentWindow||doc.defaultView;};dojo.window.scrollIntoView=function(_33,pos){try{_33=dojo.byId(_33);var doc=_33.ownerDocument||dojo.doc,_34=doc.body||dojo.body(),_35=doc.documentElement||_34.parentNode,_36=dojo.isIE,_37=dojo.isWebKit;if((!(dojo.isMoz||_36||_37||dojo.isOpera)||_33==_34||_33==_35)&&(typeof _33.scrollIntoView!="undefined")){_33.scrollIntoView(false);return;}var _38=doc.compatMode=="BackCompat",_39=(_36>=9&&_33.ownerDocument.parentWindow.frameElement)?((_35.clientHeight>0&&_35.clientWidth>0&&(_34.clientHeight==0||_34.clientWidth==0||_34.clientHeight>_35.clientHeight||_34.clientWidth>_35.clientWidth))?_35:_34):(_38?_34:_35),_3a=_37?_34:_39,_3b=_39.clientWidth,_3c=_39.clientHeight,rtl=!dojo._isBodyLtr(),_3d=pos||dojo.position(_33),el=_33.parentNode,_3e=function(el){return ((_36<=6||(_36&&_38))?false:(dojo.style(el,"position").toLowerCase()=="fixed"));};if(_3e(_33)){return;}while(el){if(el==_34){el=_3a;}var _3f=dojo.position(el),_40=_3e(el);if(el==_3a){_3f.w=_3b;_3f.h=_3c;if(_3a==_35&&_36&&rtl){_3f.x+=_3a.offsetWidth-_3f.w;}if(_3f.x<0||!_36){_3f.x=0;}if(_3f.y<0||!_36){_3f.y=0;}}else{var pb=dojo._getPadBorderExtents(el);_3f.w-=pb.w;_3f.h-=pb.h;_3f.x+=pb.l;_3f.y+=pb.t;var _41=el.clientWidth,_42=_3f.w-_41;if(_41>0&&_42>0){_3f.w=_41;_3f.x+=(rtl&&(_36||el.clientLeft>pb.l))?_42:0;}_41=el.clientHeight;_42=_3f.h-_41;if(_41>0&&_42>0){_3f.h=_41;}}if(_40){if(_3f.y<0){_3f.h+=_3f.y;_3f.y=0;}if(_3f.x<0){_3f.w+=_3f.x;_3f.x=0;}if(_3f.y+_3f.h>_3c){_3f.h=_3c-_3f.y;}if(_3f.x+_3f.w>_3b){_3f.w=_3b-_3f.x;}}var l=_3d.x-_3f.x,t=_3d.y-Math.max(_3f.y,0),r=l+_3d.w-_3f.w,bot=t+_3d.h-_3f.h;if(r*l>0){var s=Math[l<0?"max":"min"](l,r);if(rtl&&((_36==8&&!_38)||_36>=9)){s=-s;}_3d.x+=el.scrollLeft;el.scrollLeft+=s;_3d.x-=el.scrollLeft;}if(bot*t>0){_3d.y+=el.scrollTop;el.scrollTop+=Math[t<0?"max":"min"](t,bot);_3d.y-=el.scrollTop;}el=(el!=_3a)&&!_40&&el.parentNode;}}catch(error){console.error("scrollIntoView: "+error);_33.scrollIntoView(false);}};}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={};this.length=0;},add:function(_43){if(this._hash[_43.id]){throw new Error("Tried to register widget with id=="+_43.id+" but that id is already registered");}this._hash[_43.id]=_43;this.length++;},remove:function(id){if(this._hash[id]){delete this._hash[id];this.length--;}},forEach:function(_44,_45){_45=_45||dojo.global;var i=0,id;for(id in this._hash){_44.call(_45,this._hash[id],i++,this._hash);}return this;},filter:function(_46,_47){_47=_47||dojo.global;var res=new dijit.WidgetSet(),i=0,id;for(id in this._hash){var w=this._hash[id];if(_46.call(_47,w,i++,this._hash)){res.add(w);}}return res;},byId:function(id){return this._hash[id];},byClass:function(cls){var res=new dijit.WidgetSet(),id,_48;for(id in this._hash){_48=this._hash[id];if(_48.declaredClass==cls){res.add(_48);}}return res;},toArray:function(){var ar=[];for(var id in this._hash){ar.push(this._hash[id]);}return ar;},map:function(_49,_4a){return dojo.map(this.toArray(),_49,_4a);},every:function(_4b,_4c){_4c=_4c||dojo.global;var x=0,i;for(i in this._hash){if(!_4b.call(_4c,this._hash[i],x++,this._hash)){return false;}}return true;},some:function(_4d,_4e){_4e=_4e||dojo.global;var x=0,i;for(i in this._hash){if(_4d.call(_4e,this._hash[i],x++,this._hash)){return true;}}return false;}});(function(){dijit.registry=new dijit.WidgetSet();var _4f=dijit.registry._hash,_50=dojo.attr,_51=dojo.hasAttr,_52=dojo.style;dijit.byId=function(id){return typeof id=="string"?_4f[id]:id;};var _53={};dijit.getUniqueId=function(_54){var id;do{id=_54+"_"+(_54 in _53?++_53[_54]:_53[_54]=0);}while(_4f[id]);return dijit._scopeName=="dijit"?id:dijit._scopeName+"_"+id;};dijit.findWidgets=function(_55){var _56=[];function _57(_58){for(var _59=_58.firstChild;_59;_59=_59.nextSibling){if(_59.nodeType==1){var _5a=_59.getAttribute("widgetId");if(_5a){var _5b=_4f[_5a];if(_5b){_56.push(_5b);}}else{_57(_59);}}}};_57(_55);return _56;};dijit._destroyAll=function(){dijit._curFocus=null;dijit._prevFocus=null;dijit._activeStack=[];dojo.forEach(dijit.findWidgets(dojo.body()),function(_5c){if(!_5c._destroyed){if(_5c.destroyRecursive){_5c.destroyRecursive();}else{if(_5c.destroy){_5c.destroy();}}}});};if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit._destroyAll();});}dijit.byNode=function(_5d){return _4f[_5d.getAttribute("widgetId")];};dijit.getEnclosingWidget=function(_5e){while(_5e){var id=_5e.getAttribute&&_5e.getAttribute("widgetId");if(id){return _4f[id];}_5e=_5e.parentNode;}return null;};var _5f=(dijit._isElementShown=function(_60){var s=_52(_60);return (s.visibility!="hidden")&&(s.visibility!="collapsed")&&(s.display!="none")&&(_50(_60,"type")!="hidden");});dijit.hasDefaultTabStop=function(_61){switch(_61.nodeName.toLowerCase()){case "a":return _51(_61,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":var _62;try{var _63=_61.contentDocument;if("designMode" in _63&&_63.designMode=="on"){return true;}_62=_63.body;}catch(e1){try{_62=_61.contentWindow.document.body;}catch(e2){return false;}}return _62.contentEditable=="true"||(_62.firstChild&&_62.firstChild.contentEditable=="true");default:return _61.contentEditable=="true";}};var _64=(dijit.isTabNavigable=function(_65){if(_50(_65,"disabled")){return false;}else{if(_51(_65,"tabIndex")){return _50(_65,"tabIndex")>=0;}else{return dijit.hasDefaultTabStop(_65);}}});dijit._getTabNavigable=function(_66){var _67,_68,_69,_6a,_6b,_6c,_6d={};function _6e(_6f){return _6f&&_6f.tagName.toLowerCase()=="input"&&_6f.type&&_6f.type.toLowerCase()=="radio"&&_6f.name&&_6f.name.toLowerCase();};var _70=function(_71){dojo.query("> *",_71).forEach(function(_72){if((dojo.isIE&&_72.scopeName!=="HTML")||!_5f(_72)){return;}if(_64(_72)){var _73=_50(_72,"tabIndex");if(!_51(_72,"tabIndex")||_73==0){if(!_67){_67=_72;}_68=_72;}else{if(_73>0){if(!_69||_73<_6a){_6a=_73;_69=_72;}if(!_6b||_73>=_6c){_6c=_73;_6b=_72;}}}var rn=_6e(_72);if(dojo.attr(_72,"checked")&&rn){_6d[rn]=_72;}}if(_72.nodeName.toUpperCase()!="SELECT"){_70(_72);}});};if(_5f(_66)){_70(_66);}function rs(_74){return _6d[_6e(_74)]||_74;};return {first:rs(_67),last:rs(_68),lowest:rs(_69),highest:rs(_6b)};};dijit.getFirstInTabbingOrder=function(_75){var _76=dijit._getTabNavigable(dojo.byId(_75));return _76.lowest?_76.lowest:_76.first;};dijit.getLastInTabbingOrder=function(_77){var _78=dijit._getTabNavigable(dojo.byId(_77));return _78.last?_78.last:_78.highest;};dijit.defaultDuration=dojo.config["defaultDuration"]||200;})();}if(!dojo._hasResource["dojo.Stateful"]){dojo._hasResource["dojo.Stateful"]=true;dojo.provide("dojo.Stateful");dojo.declare("dojo.Stateful",null,{postscript:function(_79){if(_79){dojo.mixin(this,_79);}},get:function(_7a){return this[_7a];},set:function(_7b,_7c){if(typeof _7b==="object"){for(var x in _7b){this.set(x,_7b[x]);}return this;}var _7d=this[_7b];this[_7b]=_7c;if(this._watchCallbacks){this._watchCallbacks(_7b,_7d,_7c);}return this;},watch:function(_7e,_7f){var _80=this._watchCallbacks;if(!_80){var _81=this;_80=this._watchCallbacks=function(_82,_83,_84,_85){var _86=function(_87){if(_87){_87=_87.slice();for(var i=0,l=_87.length;i=_dc;i--){_dd=dijit.byId(_db[i]);if(_dd){_dd._focused=false;_dd.set("focused",false);_dd._hasBeenBlurred=true;if(_dd._onBlur){_dd._onBlur(by);}dojo.publish("widgetBlur",[_dd,by]);}}for(i=_dc;i<_da.length;i++){_dd=dijit.byId(_da[i]);if(_dd){_dd._focused=true;_dd.set("focused",true);if(_dd._onFocus){_dd._onFocus(by);}dojo.publish("widgetFocus",[_dd,by]);}}}});dojo.addOnLoad(function(){var _de=dijit.registerWin(window);if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit.unregisterWin(_de);_de=null;});}});}if(!dojo._hasResource["dojo.AdapterRegistry"]){dojo._hasResource["dojo.AdapterRegistry"]=true;dojo.provide("dojo.AdapterRegistry");dojo.AdapterRegistry=function(_df){this.pairs=[];this.returnWrappers=_df||false;};dojo.extend(dojo.AdapterRegistry,{register:function(_e0,_e1,_e2,_e3,_e4){this.pairs[((_e4)?"unshift":"push")]([_e0,_e1,_e2,_e3]);},match:function(){for(var i=0;i0&&_119[pi].parent===_119[pi-1].widget;pi--){}return _119[pi];},open:function(args){var _11a=this._stack,_11b=args.popup,_11c=args.orient||((args.parent?args.parent.isLeftToRight():dojo._isBodyLtr())?{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"}:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"}),_11d=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+this._idGen++);while(_11a.length&&(!args.parent||!dojo.isDescendant(args.parent.domNode,_11a[_11a.length-1].widget.domNode))){dijit.popup.close(_11a[_11a.length-1].widget);}var _11e=this._createWrapper(_11b);dojo.attr(_11e,{id:id,style:{zIndex:this._beginZIndex+_11a.length},"class":"dijitPopup "+(_11b.baseClass||_11b["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:args.parent?args.parent.id:""});if(dojo.isIE||dojo.isMoz){if(!_11b.bgIframe){_11b.bgIframe=new dijit.BackgroundIframe(_11e);}}var best=_11d?dijit.placeOnScreenAroundElement(_11e,_11d,_11c,_11b.orient?dojo.hitch(_11b,"orient"):null):dijit.placeOnScreen(_11e,args,_11c=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],args.padding);_11e.style.display="";_11e.style.visibility="visible";_11b.domNode.style.visibility="visible";var _11f=[];_11f.push(dojo.connect(_11e,"onkeypress",this,function(evt){if(evt.charOrCode==dojo.keys.ESCAPE&&args.onCancel){dojo.stopEvent(evt);args.onCancel();}else{if(evt.charOrCode===dojo.keys.TAB){dojo.stopEvent(evt);var _120=this.getTopPopup();if(_120&&_120.onCancel){_120.onCancel();}}}}));if(_11b.onCancel){_11f.push(dojo.connect(_11b,"onCancel",args.onCancel));}_11f.push(dojo.connect(_11b,_11b.onExecute?"onExecute":"onChange",this,function(){var _121=this.getTopPopup();if(_121&&_121.onExecute){_121.onExecute();}}));_11a.push({widget:_11b,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_11f});if(_11b.onOpen){_11b.onOpen(best);}return best;},close:function(_122){var _123=this._stack;while((_122&&dojo.some(_123,function(elem){return elem.widget==_122;}))||(!_122&&_123.length)){var top=_123.pop(),_124=top.widget,_125=top.onClose;if(_124.onClose){_124.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(_124&&_124.domNode){this.hide(_124);}if(_125){_125();}}}};dijit._frames=new function(){var _126=[];this.pop=function(){var _127;if(_126.length){_127=_126.pop();_127.style.display="";}else{if(dojo.isIE<9){var burl=dojo.config["dojoBlankHtmlUrl"]||(dojo.moduleUrl("dojo","resources/blank.html")+"")||"javascript:\"\"";var html="