/*
	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
*/

dojo.provide("dojo.window");dojo.getObject("window",true,dojo);dojo.window.getBox=function(){var a=dojo.doc.compatMode=="BackCompat"?dojo.body():dojo.doc.documentElement,b=dojo._docScroll();return{w:a.clientWidth,h:a.clientHeight,l:b.x,t:b.y}};dojo.window.get=function(a){if(dojo.isIE&&window!==document.parentWindow){a.parentWindow.execScript("document._parentWindow = window;","Javascript");var b=a._parentWindow;a._parentWindow=null;return b}return a.parentWindow||a.defaultView};
dojo.window.scrollIntoView=function(a,b){try{a=dojo.byId(a);var c=a.ownerDocument||dojo.doc,d=c.body||dojo.body(),e=c.documentElement||d.parentNode,f=dojo.isIE,i=dojo.isWebKit;if((!(dojo.isMoz||f||i||dojo.isOpera)||a==d||a==e)&&typeof a.scrollIntoView!="undefined")a.scrollIntoView(false);else{var g=c.compatMode=="BackCompat",h=f>=9&&a.ownerDocument.parentWindow.frameElement?e.clientHeight>0&&e.clientWidth>0&&(d.clientHeight==0||d.clientWidth==0||d.clientHeight>e.clientHeight||d.clientWidth>e.clientWidth)?
e:d:g?d:e;c=i?d:h;var j=h.clientWidth,m=h.clientHeight,n=!dojo._isBodyLtr(),o=b||dojo.position(a),l=a.parentNode;h=function(A){return f<=6||f&&g?false:dojo.style(A,"position").toLowerCase()=="fixed"};if(!h(a))for(;l;){if(l==d)l=c;var k=dojo.position(l),p=h(l);if(l==c){k.w=j;k.h=m;if(c==e&&f&&n)k.x+=c.offsetWidth-k.w;if(k.x<0||!f)k.x=0;if(k.y<0||!f)k.y=0}else{var q=dojo._getPadBorderExtents(l);k.w-=q.w;k.h-=q.h;k.x+=q.l;k.y+=q.t;var r=l.clientWidth,s=k.w-r;if(r>0&&s>0){k.w=r;k.x+=n&&(f||l.clientLeft>
q.l)?s:0}r=l.clientHeight;s=k.h-r;if(r>0&&s>0)k.h=r}if(p){if(k.y<0){k.h+=k.y;k.y=0}if(k.x<0){k.w+=k.x;k.x=0}if(k.y+k.h>m)k.h=m-k.y;if(k.x+k.w>j)k.w=j-k.x}var u=o.x-k.x,t=o.y-Math.max(k.y,0),w=u+o.w-k.w,v=t+o.h-k.h;if(w*u>0){var y=Math[u<0?"max":"min"](u,w);if(n&&(f==8&&!g||f>=9))y=-y;o.x+=l.scrollLeft;l.scrollLeft+=y;o.x-=l.scrollLeft}if(v*t>0){o.y+=l.scrollTop;l.scrollTop+=Math[t<0?"max":"min"](t,v);o.y-=l.scrollTop}l=l!=c&&!p&&l.parentNode}}}catch(z){console.error("scrollIntoView: "+z);a.scrollIntoView(false)}};
dojo.provide("dojo.regexp");dojo.getObject("regexp",true,dojo);dojo.regexp.escapeString=function(a,b){return a.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(c){if(b&&b.indexOf(c)!=-1)return c;return"\\"+c})};dojo.regexp.buildGroupRE=function(a,b,c){if(!(a instanceof Array))return b(a);for(var d=[],e=0;e<a.length;e++)d.push(b(a[e]));return dojo.regexp.group(d.join("|"),c)};dojo.regexp.group=function(a,b){return"("+(b?"?:":"")+a+")"};dojo.provide("dojo.data.util.sorter");
dojo.getObject("data.util.sorter",true,dojo);dojo.data.util.sorter.basicComparator=function(a,b){var c=-1;if(a===null)a=undefined;if(b===null)b=undefined;if(a==b)c=0;else if(a>b||a==null)c=1;return c};
dojo.data.util.sorter.createSortFunction=function(a,b){function c(m,n,o,l){return function(k,p){var q=l.getValue(k,m),r=l.getValue(p,m);return n*o(q,r)}}for(var d=[],e,f=b.comparatorMap,i=dojo.data.util.sorter.basicComparator,g=0;g<a.length;g++){e=a[g];var h=e.attribute;if(h){e=e.descending?-1:1;var j=i;if(f){if(typeof h!=="string"&&"toString"in h)h=h.toString();j=f[h]||i}d.push(c(h,e,j,b))}}return function(m,n){for(var o=0;o<d.length;){var l=d[o++](m,n);if(l!==0)return l}return 0}};dojo.provide("dojo.data.util.simpleFetch");
dojo.getObject("data.util.simpleFetch",true,dojo);
dojo.data.util.simpleFetch.fetch=function(a){a=a||{};if(!a.store)a.store=this;var b=this;this._fetchItems(a,function(c,d){var e=d.abort||null,f=false,i=d.start?d.start:0,g=d.count&&d.count!==Infinity?i+d.count:c.length;d.abort=function(){f=true;e&&e.call(d)};var h=d.scope||dojo.global;if(!d.store)d.store=b;d.onBegin&&d.onBegin.call(h,c.length,d);d.sort&&c.sort(dojo.data.util.sorter.createSortFunction(d.sort,b));if(d.onItem)for(var j=i;j<c.length&&j<g;++j){var m=c[j];f||d.onItem.call(h,m,d)}if(d.onComplete&&
!f){j=null;d.onItem||(j=c.slice(i,g));d.onComplete.call(h,j,d)}},function(c,d){if(d.onError)d.onError.call(d.scope||dojo.global,c,d)});return a};dojo.provide("dojo.data.util.filter");dojo.getObject("data.util.filter",true,dojo);
dojo.data.util.filter.patternToRegExp=function(a,b){for(var c="^",d=null,e=0;e<a.length;e++){d=a.charAt(e);switch(d){case "\\":c+=d;e++;c+=a.charAt(e);break;case "*":c+=".*";break;case "?":c+=".";break;case "$":case "^":case "/":case "+":case ".":case "|":case "(":case ")":case "{":case "}":case "[":case "]":c+="\\";default:c+=d}}c+="$";return b?RegExp(c,"mi"):RegExp(c,"m")};dojo.provide("dijit._CssStateMixin");
dojo.declare("dijit._CssStateMixin",[],{cssStateNodes:{},hovering:false,active:false,_applyAttributes:function(){this.inherited(arguments);dojo.forEach(["onmouseenter","onmouseleave","onmousedown"],function(b){this.connect(this.domNode,b,"_cssMouseEvent")},this);dojo.forEach(["disabled","readOnly","checked","selected","focused","state","hovering","active"],function(b){this.watch(b,dojo.hitch(this,"_setStateClass"))},this);for(var a in this.cssStateNodes)this._trackMouseState(this[a],this.cssStateNodes[a]);
this._setStateClass()},_cssMouseEvent:function(a){if(!this.disabled)switch(a.type){case "mouseenter":case "mouseover":this._set("hovering",true);this._set("active",this._mouseDown);break;case "mouseleave":case "mouseout":this._set("hovering",false);this._set("active",false);break;case "mousedown":this._set("active",true);this._mouseDown=true;var b=this.connect(dojo.body(),"onmouseup",function(){this._mouseDown=false;this._set("active",false);this.disconnect(b)})}},_setStateClass:function(){function a(i){b=
b.concat(dojo.map(b,function(g){return g+i}),"dijit"+i)}var b=this.baseClass.split(" ");this.isLeftToRight()||a("Rtl");this.checked&&a("Checked");this.state&&a(this.state);this.selected&&a("Selected");if(this.disabled)a("Disabled");else if(this.readOnly)a("ReadOnly");else if(this.active)a("Active");else this.hovering&&a("Hover");this._focused&&a("Focused");var c=this.stateNode||this.domNode,d={};dojo.forEach(c.className.split(" "),function(i){d[i]=true});"_stateClasses"in this&&dojo.forEach(this._stateClasses,
function(i){delete d[i]});dojo.forEach(b,function(i){d[i]=true});var e=[],f;for(f in d)e.push(f);c.className=e.join(" ");this._stateClasses=b},_trackMouseState:function(a,b){function c(){var h="disabled"in i&&i.disabled||"readonly"in i&&i.readonly;dojo.toggleClass(a,b+"Hover",d&&!e&&!h);dojo.toggleClass(a,b+"Active",e&&!h);dojo.toggleClass(a,b+"Focused",f&&!h)}var d=false,e=false,f=false,i=this,g=dojo.hitch(this,"connect",a);g("onmouseenter",function(){d=true;c()});g("onmouseleave",function(){e=d=
false;c()});g("onmousedown",function(){e=true;c()});g("onmouseup",function(){e=false;c()});g("onfocus",function(){f=true;c()});g("onblur",function(){f=false;c()});this.watch("disabled",c);this.watch("readOnly",c)}});dojo.provide("dijit._base.manager");
dojo.declare("dijit.WidgetSet",null,{constructor:function(){this._hash={};this.length=0},add:function(a){if(this._hash[a.id])throw Error("Tried to register widget with id=="+a.id+" but that id is already registered");this._hash[a.id]=a;this.length++},remove:function(a){if(this._hash[a]){delete this._hash[a];this.length--}},forEach:function(a,b){b=b||dojo.global;var c=0,d;for(d in this._hash)a.call(b,this._hash[d],c++,this._hash);return this},filter:function(a,b){b=b||dojo.global;var c=new dijit.WidgetSet,
d=0,e;for(e in this._hash){var f=this._hash[e];a.call(b,f,d++,this._hash)&&c.add(f)}return c},byId:function(a){return this._hash[a]},byClass:function(a){var b=new dijit.WidgetSet,c,d;for(c in this._hash){d=this._hash[c];d.declaredClass==a&&b.add(d)}return b},toArray:function(){var a=[],b;for(b in this._hash)a.push(this._hash[b]);return a},map:function(a,b){return dojo.map(this.toArray(),a,b)},every:function(a,b){b=b||dojo.global;var c=0,d;for(d in this._hash)if(!a.call(b,this._hash[d],c++,this._hash))return false;
return true},some:function(a,b){b=b||dojo.global;var c=0,d;for(d in this._hash)if(a.call(b,this._hash[d],c++,this._hash))return true;return false}});
(function(){dijit.registry=new dijit.WidgetSet;var a=dijit.registry._hash,b=dojo.attr,c=dojo.hasAttr,d=dojo.style;dijit.byId=function(g){return typeof g=="string"?a[g]:g};var e={};dijit.getUniqueId=function(g){var h;do h=g+"_"+(g in e?++e[g]:e[g]=0);while(a[h]);return dijit._scopeName=="dijit"?h:dijit._scopeName+"_"+h};dijit.findWidgets=function(g){function h(m){for(m=m.firstChild;m;m=m.nextSibling)if(m.nodeType==1){var n=m.getAttribute("widgetId");if(n)(n=a[n])&&j.push(n);else h(m)}}var j=[];h(g);
return j};dijit._destroyAll=function(){dijit._curFocus=null;dijit._prevFocus=null;dijit._activeStack=[];dojo.forEach(dijit.findWidgets(dojo.body()),function(g){if(!g._destroyed)if(g.destroyRecursive)g.destroyRecursive();else g.destroy&&g.destroy()})};dojo.isIE&&dojo.addOnWindowUnload(function(){dijit._destroyAll()});dijit.byNode=function(g){return a[g.getAttribute("widgetId")]};dijit.getEnclosingWidget=function(g){for(;g;){var h=g.getAttribute&&g.getAttribute("widgetId");if(h)return a[h];g=g.parentNode}return null};
var f=dijit._isElementShown=function(g){var h=d(g);return h.visibility!="hidden"&&h.visibility!="collapsed"&&h.display!="none"&&b(g,"type")!="hidden"};dijit.hasDefaultTabStop=function(g){switch(g.nodeName.toLowerCase()){case "a":return c(g,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":var h;try{var j=g.contentDocument;if("designMode"in j&&j.designMode=="on")return true;h=j.body}catch(m){try{h=g.contentWindow.document.body}catch(n){return false}}return h.contentEditable==
"true"||h.firstChild&&h.firstChild.contentEditable=="true";default:return g.contentEditable=="true"}};var i=dijit.isTabNavigable=function(g){return b(g,"disabled")?false:c(g,"tabIndex")?b(g,"tabIndex")>=0:dijit.hasDefaultTabStop(g)};dijit._getTabNavigable=function(g){function h(r){return r&&r.tagName.toLowerCase()=="input"&&r.type&&r.type.toLowerCase()=="radio"&&r.name&&r.name.toLowerCase()}var j,m,n,o,l,k,p={},q=function(r){dojo.query("> *",r).forEach(function(s){if(!(dojo.isIE&&s.scopeName!=="HTML"||
!f(s))){if(i(s)){var u=b(s,"tabIndex");if(!c(s,"tabIndex")||u==0){j||(j=s);m=s}else if(u>0){if(!n||u<o){o=u;n=s}if(!l||u>=k){k=u;l=s}}u=h(s);if(dojo.attr(s,"checked")&&u)p[u]=s}s.nodeName.toUpperCase()!="SELECT"&&q(s)}})};f(g)&&q(g);return{first:p[h(j)]||j,last:p[h(m)]||m,lowest:p[h(n)]||n,highest:p[h(l)]||l}};dijit.getFirstInTabbingOrder=function(g){g=dijit._getTabNavigable(dojo.byId(g));return g.lowest?g.lowest:g.first};dijit.getLastInTabbingOrder=function(g){g=dijit._getTabNavigable(dojo.byId(g));
return g.last?g.last:g.highest};dijit.defaultDuration=dojo.config.defaultDuration||200})();dojo.provide("dojo.Stateful");
dojo.declare("dojo.Stateful",null,{postscript:function(a){a&&dojo.mixin(this,a)},get:function(a){return this[a]},set:function(a,b){if(typeof a==="object"){for(var c in a)this.set(c,a[c]);return this}c=this[a];this[a]=b;this._watchCallbacks&&this._watchCallbacks(a,c,b);return this},watch:function(a,b){var c=this._watchCallbacks;if(!c){var d=this;c=this._watchCallbacks=function(f,i,g,h){var j=function(m){if(m){m=m.slice();for(var n=0,o=m.length;n<o;n++)try{m[n].call(d,f,i,g)}catch(l){console.error(l)}}};
j(c["_"+f]);h||j(c["*"])}}if(!b&&typeof a==="function"){b=a;a="*"}else a="_"+a;var e=c[a];if(typeof e!=="object")e=c[a]=[];e.push(b);return{unwatch:function(){e.splice(dojo.indexOf(e,b),1)}}}});dojo.provide("dijit._WidgetBase");
(function(){dojo.declare("dijit._WidgetBase",dojo.Stateful,{id:"",lang:"",dir:"","class":"",style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},_blankGif:(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif")).toString(),postscript:function(a,b){this.create(a,b)},create:function(a,b){this.srcNodeRef=dojo.byId(b);this._connects=[];this._subscribes=[];if(this.srcNodeRef&&typeof this.srcNodeRef.id==
"string")this.id=this.srcNodeRef.id;if(a){this.params=a;dojo._mixin(this,a)}this.postMixInProperties();if(!this.id)this.id=dijit.getUniqueId(this.declaredClass.replace(/\./g,"_"));dijit.registry.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();var c=this.srcNodeRef;c&&c.parentNode&&this.domNode!==c&&c.parentNode.replaceChild(this.domNode,c)}this.domNode&&this.domNode.setAttribute("widgetId",this.id);this.postCreate();this.srcNodeRef&&!this.srcNodeRef.parentNode&&delete this.srcNodeRef;
this._created=true},_applyAttributes:function(){var a=function(c,d){if(d.params&&c in d.params||d[c])d.set(c,d[c])},b;for(b in this.attributeMap)a(b,this);dojo.forEach(this._getSetterAttributes(),function(c){c in this.attributeMap||a(c,this)},this)},_getSetterAttributes:function(){var a=this.constructor;if(!a._setterAttrs){var b=a._setterAttrs=[],c,d=a.prototype,e;for(e in d)if(dojo.isFunction(d[e])&&(c=e.match(/^_set([a-zA-Z]*)Attr$/))&&c[1])b.push(c[1].charAt(0).toLowerCase()+c[1].substr(1))}return a._setterAttrs},
postMixInProperties:function(){},buildRendering:function(){if(!this.domNode)this.domNode=this.srcNodeRef||dojo.create("div");if(this.baseClass){var a=this.baseClass.split(" ");this.isLeftToRight()||(a=a.concat(dojo.map(a,function(b){return b+"Rtl"})));dojo.addClass(this.domNode,a)}},postCreate:function(){},startup:function(){this._started=true},destroyRecursive:function(a){this._beingDestroyed=true;this.destroyDescendants(a);this.destroy(a)},destroy:function(a){this._beingDestroyed=true;this.uninitialize();
var b=dojo,c=b.forEach,d=b.unsubscribe;c(this._connects,function(e){c(e,b.disconnect)});c(this._subscribes,function(e){d(e)});c(this._supportingWidgets||[],function(e){if(e.destroyRecursive)e.destroyRecursive();else e.destroy&&e.destroy()});this.destroyRendering(a);dijit.registry.remove(this.id);this._destroyed=true},destroyRendering:function(a){if(this.bgIframe){this.bgIframe.destroy(a);delete this.bgIframe}if(this.domNode){a?dojo.removeAttr(this.domNode,"widgetId"):dojo.destroy(this.domNode);delete this.domNode}if(this.srcNodeRef){a||
dojo.destroy(this.srcNodeRef);delete this.srcNodeRef}},destroyDescendants:function(a){dojo.forEach(this.getChildren(),function(b){b.destroyRecursive&&b.destroyRecursive(a)})},uninitialize:function(){return false},_setClassAttr:function(a){dojo.replaceClass(this[this.attributeMap["class"]||"domNode"],a,this["class"]);this._set("class",a)},_setStyleAttr:function(a){var b=this[this.attributeMap.style||"domNode"];if(dojo.isObject(a))dojo.style(b,a);else if(b.style.cssText)b.style.cssText+="; "+a;else b.style.cssText=
a;this._set("style",a)},_attrToDom:function(a,b){var c=this.attributeMap[a];dojo.forEach(dojo.isArray(c)?c:[c],function(d){var e=this[d.node||d||"domNode"];switch(d.type||"attribute"){case "attribute":if(dojo.isFunction(b))b=dojo.hitch(this,b);d=d.attribute?d.attribute:/^on[A-Z][a-zA-Z]*$/.test(a)?a.toLowerCase():a;dojo.attr(e,d,b);break;case "innerText":e.innerHTML="";e.appendChild(dojo.doc.createTextNode(b));break;case "innerHTML":e.innerHTML=b;break;case "class":dojo.replaceClass(e,b,this[a])}},
this)},get:function(a){var b=this._getAttrNames(a);return this[b.g]?this[b.g]():this[a]},set:function(a,b){if(typeof a==="object"){for(var c in a)this.set(c,a[c]);return this}c=this._getAttrNames(a);if(this[c.s])var d=this[c.s].apply(this,Array.prototype.slice.call(arguments,1));else{a in this.attributeMap&&this._attrToDom(a,b);this._set(a,b)}return d||this},_attrPairNames:{},_getAttrNames:function(a){var b=this._attrPairNames;if(b[a])return b[a];var c=a.charAt(0).toUpperCase()+a.substr(1);return b[a]=
{n:a+"Node",s:"_set"+c+"Attr",g:"_get"+c+"Attr"}},_set:function(a,b){var c=this[a];this[a]=b;this._watchCallbacks&&this._created&&b!==c&&this._watchCallbacks(a,c,b)},toString:function(){return"[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]"},getDescendants:function(){return this.containerNode?dojo.query("[widgetId]",this.containerNode).map(dijit.byNode):[]},getChildren:function(){return this.containerNode?dijit.findWidgets(this.containerNode):[]},connect:function(a,b,c){a=[dojo._connect(a,
b,this,c)];this._connects.push(a);return a},disconnect:function(a){for(var b=0;b<this._connects.length;b++)if(this._connects[b]==a){dojo.forEach(a,dojo.disconnect);this._connects.splice(b,1);break}},subscribe:function(a,b){var c=dojo.subscribe(a,this,b);this._subscribes.push(c);return c},unsubscribe:function(a){for(var b=0;b<this._subscribes.length;b++)if(this._subscribes[b]==a){dojo.unsubscribe(a);this._subscribes.splice(b,1);break}},isLeftToRight:function(){return this.dir?this.dir=="ltr":dojo._isBodyLtr()},
placeAt:function(a,b){a.declaredClass&&a.addChild?a.addChild(this,b):dojo.place(this.domNode,a,b);return this}})})();dojo.provide("dijit._base.focus");
dojo.mixin(dijit,{_curFocus:null,_prevFocus:null,isCollapsed:function(){return dijit.getBookmark().isCollapsed},getBookmark:function(){var a,b,c=dojo.doc.selection,d=dijit._curFocus;if(dojo.global.getSelection){if(c=dojo.global.getSelection())if(c.isCollapsed){if(a=d?d.tagName:""){a=a.toLowerCase();if(a=="textarea"||a=="input"&&(!d.type||d.type.toLowerCase()=="text")){c={start:d.selectionStart,end:d.selectionEnd,node:d,pRange:true};return{isCollapsed:c.end<=c.start,mark:c}}}a={isCollapsed:true};if(c.rangeCount)a.mark=
c.getRangeAt(0).cloneRange()}else{b=c.getRangeAt(0);a={isCollapsed:false,mark:b.cloneRange()}}}else if(c){a=d?d.tagName:"";a=a.toLowerCase();if(d&&a&&(a=="button"||a=="textarea"||a=="input"))if(c.type&&c.type.toLowerCase()=="none")return{isCollapsed:true,mark:null};else{b=c.createRange();return{isCollapsed:b.text&&b.text.length?false:true,mark:{range:b,pRange:true}}}a={};try{b=c.createRange();a.isCollapsed=!(c.type=="Text"?b.htmlText.length:b.length)}catch(e){a.isCollapsed=true;return a}if(c.type.toUpperCase()==
"CONTROL")if(b.length){a.mark=[];c=0;for(d=b.length;c<d;)a.mark.push(b.item(c++))}else{a.isCollapsed=true;a.mark=null}else a.mark=b.getBookmark()}else console.warn("No idea how to store the current selection for this browser!");return a},moveToBookmark:function(a){var b=dojo.doc;if(a=a.mark)if(dojo.global.getSelection)if((b=dojo.global.getSelection())&&b.removeAllRanges)if(a.pRange){b=a.node;b.selectionStart=a.start;b.selectionEnd=a.end}else{b.removeAllRanges();b.addRange(a)}else console.warn("No idea how to restore selection for this browser!");
else if(b.selection&&a){var c;if(a.pRange)c=a.range;else if(dojo.isArray(a)){c=b.body.createControlRange();dojo.forEach(a,function(d){c.addElement(d)})}else{c=b.body.createTextRange();c.moveToBookmark(a)}c.select()}},getFocus:function(a,b){var c=!dijit._curFocus||a&&dojo.isDescendant(dijit._curFocus,a.domNode)?dijit._prevFocus:dijit._curFocus;return{node:c,bookmark:c==dijit._curFocus&&dojo.withGlobal(b||dojo.global,dijit.getBookmark),openedForWindow:b}},focus:function(a){if(a){var b="node"in a?a.node:
a,c=a.bookmark;a=a.openedForWindow;var d=c?c.isCollapsed:false;if(b){var e=b.tagName.toLowerCase()=="iframe"?b.contentWindow:b;if(e&&e.focus)try{e.focus()}catch(f){}dijit._onFocusNode(b)}if(c&&dojo.withGlobal(a||dojo.global,dijit.isCollapsed)&&!d){a&&a.focus();try{dojo.withGlobal(a||dojo.global,dijit.moveToBookmark,null,[c])}catch(i){}}}},_activeStack:[],registerIframe:function(a){return dijit.registerWin(a.contentWindow,a)},unregisterIframe:function(a){dijit.unregisterWin(a)},registerWin:function(a,
b){var c=function(h){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false},0);dojo.isIE&&h&&h.srcElement&&h.srcElement.parentNode==null||dijit._onTouchNode(b||h.target||h.srcElement,"mouse")},d=dojo.isIE?a.document.documentElement:a.document;if(d)if(dojo.isIE){a.document.body.attachEvent("onmousedown",c);var e=function(h){h.srcElement.tagName.toLowerCase()!="#document"&&dijit.isTabNavigable(h.srcElement)?dijit._onFocusNode(b||h.srcElement):dijit._onTouchNode(b||h.srcElement)};
d.attachEvent("onactivate",e);var f=function(h){dijit._onBlurNode(b||h.srcElement)};d.attachEvent("ondeactivate",f);return function(){a.document.detachEvent("onmousedown",c);d.detachEvent("onactivate",e);d.detachEvent("ondeactivate",f);d=null}}else{d.body.addEventListener("mousedown",c,true);var i=function(h){dijit._onFocusNode(b||h.target)};d.addEventListener("focus",i,true);var g=function(h){dijit._onBlurNode(b||h.target)};d.addEventListener("blur",g,true);return function(){d.body.removeEventListener("mousedown",
c,true);d.removeEventListener("focus",i,true);d.removeEventListener("blur",g,true);d=null}}},unregisterWin:function(a){a&&a()},_onBlurNode:function(){dijit._prevFocus=dijit._curFocus;dijit._curFocus=null;if(!dijit._justMouseDowned){dijit._clearActiveWidgetsTimer&&clearTimeout(dijit._clearActiveWidgetsTimer);dijit._clearActiveWidgetsTimer=setTimeout(function(){delete dijit._clearActiveWidgetsTimer;dijit._setStack([]);dijit._prevFocus=null},100)}},_onTouchNode:function(a,b){if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);
delete dijit._clearActiveWidgetsTimer}var c=[];try{for(;a;){var d=dojo.attr(a,"dijitPopupParent");if(d)a=dijit.byId(d).domNode;else if(a.tagName&&a.tagName.toLowerCase()=="body"){if(a===dojo.body())break;a=dojo.window.get(a.ownerDocument).frameElement}else{var e=a.getAttribute&&a.getAttribute("widgetId"),f=e&&dijit.byId(e);f&&!(b=="mouse"&&f.get("disabled"))&&c.unshift(e);a=a.parentNode}}}catch(i){}dijit._setStack(c,b)},_onFocusNode:function(a){if(a)if(a.nodeType!=9){dijit._onTouchNode(a);if(a!=dijit._curFocus){if(dijit._curFocus)dijit._prevFocus=
dijit._curFocus;dijit._curFocus=a;dojo.publish("focusNode",[a])}}},_setStack:function(a,b){var c=dijit._activeStack;dijit._activeStack=a;for(var d=0;d<Math.min(c.length,a.length);d++)if(c[d]!=a[d])break;for(var e,f=c.length-1;f>=d;f--)if(e=dijit.byId(c[f])){e._focused=false;e.set("focused",false);e._hasBeenBlurred=true;e._onBlur&&e._onBlur(b);dojo.publish("widgetBlur",[e,b])}for(f=d;f<a.length;f++)if(e=dijit.byId(a[f])){e._focused=true;e.set("focused",true);e._onFocus&&e._onFocus(b);dojo.publish("widgetFocus",
[e,b])}}});dojo.addOnLoad(function(){var a=dijit.registerWin(window);dojo.isIE&&dojo.addOnWindowUnload(function(){dijit.unregisterWin(a);a=null})});dojo.provide("dojo.AdapterRegistry");dojo.AdapterRegistry=function(a){this.pairs=[];this.returnWrappers=a||false};
dojo.extend(dojo.AdapterRegistry,{register:function(a,b,c,d,e){this.pairs[e?"unshift":"push"]([a,b,c,d])},match:function(){for(var a=0;a<this.pairs.length;a++){var b=this.pairs[a];if(b[1].apply(this,arguments))return b[3]||this.returnWrappers?b[2]:b[2].apply(this,arguments)}throw Error("No match found");},unregister:function(a){for(var b=0;b<this.pairs.length;b++)if(this.pairs[b][0]==a){this.pairs.splice(b,1);return true}return false}});dojo.provide("dijit._base.place");dijit.getViewport=function(){return dojo.window.getBox()};
dijit.placeOnScreen=function(a,b,c,d){c=dojo.map(c,function(e){var f={corner:e,pos:{x:b.x,y:b.y}};if(d){f.pos.x+=e.charAt(1)=="L"?d.x:-d.x;f.pos.y+=e.charAt(0)=="T"?d.y:-d.y}return f});return dijit._place(a,c)};
dijit._place=function(a,b,c,d){var e=dojo.window.getBox();if(!a.parentNode||String(a.parentNode.tagName).toLowerCase()!="body")dojo.body().appendChild(a);var f=null;dojo.some(b,function(g){var h=g.corner,j=g.pos,m=0,n={w:h.charAt(1)=="L"?e.l+e.w-j.x:j.x-e.l,h:h.charAt(1)=="T"?e.t+e.h-j.y:j.y-e.t};if(c){m=c(a,g.aroundCorner,h,n,d);m=typeof m=="undefined"?0:m}var o=a.style,l=o.display,k=o.visibility;o.visibility="hidden";o.display="";var p=dojo.marginBox(a);o.display=l;o.visibility=k;o=Math.max(e.l,
h.charAt(1)=="L"?j.x:j.x-p.w);l=Math.max(e.t,h.charAt(0)=="T"?j.y:j.y-p.h);k=Math.min(e.l+e.w,h.charAt(1)=="L"?o+p.w:j.x);j=Math.min(e.t+e.h,h.charAt(0)=="T"?l+p.h:j.y);k-=o;j-=l;m+=p.w-k+(p.h-j);if(f==null||m<f.overflow)f={corner:h,aroundCorner:g.aroundCorner,x:o,y:l,w:k,h:j,overflow:m,spaceAvailable:n};return!m});f.overflow&&c&&c(a,f.aroundCorner,f.corner,f.spaceAvailable,d);b=dojo._isBodyLtr();var i=a.style;i.top=f.y+"px";i[b?"left":"right"]=(b?f.x:e.w-f.x-f.w)+"px";return f};
dijit.placeOnScreenAroundNode=function(a,b,c,d){b=dojo.byId(b);b=dojo.position(b,true);return dijit._placeOnScreenAroundRect(a,b.x,b.y,b.w,b.h,c,d)};dijit.placeOnScreenAroundRectangle=function(a,b,c,d){return dijit._placeOnScreenAroundRect(a,b.x,b.y,b.width,b.height,c,d)};dijit._placeOnScreenAroundRect=function(a,b,c,d,e,f,i){var g=[],h;for(h in f)g.push({aroundCorner:h,corner:f[h],pos:{x:b+(h.charAt(1)=="L"?0:d),y:c+(h.charAt(0)=="T"?0:e)}});return dijit._place(a,g,i,{w:d,h:e})};
dijit.placementRegistry=new dojo.AdapterRegistry;dijit.placementRegistry.register("node",function(a,b){return typeof b=="object"&&typeof b.offsetWidth!="undefined"&&typeof b.offsetHeight!="undefined"},dijit.placeOnScreenAroundNode);dijit.placementRegistry.register("rect",function(a,b){return typeof b=="object"&&"x"in b&&"y"in b&&"width"in b&&"height"in b},dijit.placeOnScreenAroundRectangle);
dijit.placeOnScreenAroundElement=function(){return dijit.placementRegistry.match.apply(dijit.placementRegistry,arguments)};dijit.getPopupAroundAlignment=function(a,b){var c={};dojo.forEach(a,function(d){switch(d){case "after":c[b?"BR":"BL"]=b?"BL":"BR";break;case "before":c[b?"BL":"BR"]=b?"BR":"BL";break;case "below-alt":b=!b;case "below":c[b?"BL":"BR"]=b?"TL":"TR";c[b?"BR":"BL"]=b?"TR":"TL";break;case "above-alt":b=!b;default:c[b?"TL":"TR"]=b?"BL":"BR";c[b?"TR":"TL"]=b?"BR":"BL"}});return c};dojo.provide("dijit._base.window");
dijit.getDocumentWindow=function(a){return dojo.window.get(a)};dojo.provide("dijit._base.popup");
dijit.popup={_stack:[],_beginZIndex:1E3,_idGen:1,_createWrapper:function(a){var b=a.declaredClass?a._popupWrapper:a.parentNode&&dojo.hasClass(a.parentNode,"dijitPopup"),c=a.domNode||a;if(!b){b=dojo.create("div",{"class":"dijitPopup",style:{display:"none"},role:"presentation"},dojo.body());b.appendChild(c);c=c.style;c.display="";c.visibility="";c.position="";c.top="0px";if(a.declaredClass){a._popupWrapper=b;dojo.connect(a,"destroy",function(){dojo.destroy(b);delete a._popupWrapper})}}return b},moveOffScreen:function(a){a=
this._createWrapper(a);dojo.style(a,{visibility:"hidden",top:"-9999px",display:""})},hide:function(a){a=this._createWrapper(a);dojo.style(a,"display","none")},getTopPopup:function(){for(var a=this._stack,b=a.length-1;b>0&&a[b].parent===a[b-1].widget;b--);return a[b]},open:function(a){for(var b=this._stack,c=a.popup,d=a.orient||((a.parent?a.parent.isLeftToRight():dojo._isBodyLtr())?{BL:"TL",BR:"TR",TL:"BL",TR:"BR"}:{BR:"TR",BL:"TL",TR:"BR",TL:"BL"}),e=a.around,f=a.around&&a.around.id?a.around.id+"_dropdown":
"popup_"+this._idGen++;b.length&&(!a.parent||!dojo.isDescendant(a.parent.domNode,b[b.length-1].widget.domNode));)dijit.popup.close(b[b.length-1].widget);var i=this._createWrapper(c);dojo.attr(i,{id:f,style:{zIndex:this._beginZIndex+b.length},"class":"dijitPopup "+(c.baseClass||c["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:a.parent?a.parent.id:""});if(dojo.isIE||dojo.isMoz)if(!c.bgIframe)c.bgIframe=new dijit.BackgroundIframe(i);d=e?dijit.placeOnScreenAroundElement(i,e,d,c.orient?dojo.hitch(c,
"orient"):null):dijit.placeOnScreen(i,a,d=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],a.padding);i.style.display="";i.style.visibility="visible";c.domNode.style.visibility="visible";e=[];e.push(dojo.connect(i,"onkeypress",this,function(g){if(g.charOrCode==dojo.keys.ESCAPE&&a.onCancel){dojo.stopEvent(g);a.onCancel()}else if(g.charOrCode===dojo.keys.TAB){dojo.stopEvent(g);if((g=this.getTopPopup())&&g.onCancel)g.onCancel()}}));c.onCancel&&e.push(dojo.connect(c,"onCancel",a.onCancel));e.push(dojo.connect(c,
c.onExecute?"onExecute":"onChange",this,function(){var g=this.getTopPopup();if(g&&g.onExecute)g.onExecute()}));b.push({widget:c,parent:a.parent,onExecute:a.onExecute,onCancel:a.onCancel,onClose:a.onClose,handlers:e});if(c.onOpen)c.onOpen(d);return d},close:function(a){for(var b=this._stack;a&&dojo.some(b,function(f){return f.widget==a})||!a&&b.length;){var c=b.pop(),d=c.widget,e=c.onClose;if(d.onClose)d.onClose();dojo.forEach(c.handlers,dojo.disconnect);d&&d.domNode&&this.hide(d);e&&e()}}};
dijit._frames=new function(){var a=[];this.pop=function(){var b;if(a.length){b=a.pop();b.style.display=""}else{if(dojo.isIE<9){b="<iframe src='"+(dojo.config.dojoBlankHtmlUrl||dojo.moduleUrl("dojo","resources/blank.html")+""||'javascript:""')+"' style='position: absolute; left: 0px; top: 0px;z-index: -1; filter:Alpha(Opacity=\"0\");'>";b=dojo.doc.createElement(b)}else{b=dojo.create("iframe");b.src='javascript:""';b.className="dijitBackgroundIframe";dojo.style(b,"opacity",0.1)}b.tabIndex=-1;dijit.setWaiRole(b,
"presentation")}return b};this.push=function(b){b.style.display="none";a.push(b)}};dijit.BackgroundIframe=function(a){if(!a.id)throw Error("no id");if(dojo.isIE||dojo.isMoz){var b=this.iframe=dijit._frames.pop();a.appendChild(b);if(dojo.isIE<7||dojo.isQuirks){this.resize(a);this._conn=dojo.connect(a,"onresize",this,function(){this.resize(a)})}else dojo.style(b,{width:"100%",height:"100%"})}};
dojo.extend(dijit.BackgroundIframe,{resize:function(a){this.iframe&&dojo.style(this.iframe,{width:a.offsetWidth+"px",height:a.offsetHeight+"px"})},destroy:function(){if(this._conn){dojo.disconnect(this._conn);this._conn=null}if(this.iframe){dijit._frames.push(this.iframe);delete this.iframe}}});dojo.provide("dijit._base.scroll");dijit.scrollIntoView=function(a,b){dojo.window.scrollIntoView(a,b)};dojo.provide("dojo.uacss");
(function(){var a=dojo,b=a.doc.documentElement,c=a.isIE,d=a.isOpera,e=Math.floor,f=a.isFF,i=a.boxModel.replace(/-/,"");c={dj_ie:c,dj_ie6:e(c)==6,dj_ie7:e(c)==7,dj_ie8:e(c)==8,dj_ie9:e(c)==9,dj_quirks:a.isQuirks,dj_iequirks:c&&a.isQuirks,dj_opera:d,dj_khtml:a.isKhtml,dj_webkit:a.isWebKit,dj_safari:a.isSafari,dj_chrome:a.isChrome,dj_gecko:a.isMozilla,dj_ff3:e(f)==3};c["dj_"+i]=true;var g="",h;for(h in c)if(c[h])g+=h+" ";b.className=a.trim(b.className+" "+g);dojo._loaders.unshift(function(){if(!dojo._isBodyLtr()){var j=
"dj_rtl dijitRtl "+g.replace(/ /g,"-rtl ");b.className=a.trim(b.className+" "+j)}})})();dojo.provide("dijit._base.sniff");dojo.provide("dijit._base.typematic");
dijit.typematic={_fireEventAndReload:function(){this._timer=null;this._callback(++this._count,this._node,this._evt);this._currentTimeout=Math.max(this._currentTimeout<0?this._initialDelay:this._subsequentDelay>1?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay),this._minDelay);this._timer=setTimeout(dojo.hitch(this,"_fireEventAndReload"),this._currentTimeout)},trigger:function(a,b,c,d,e,f,i,g){if(e!=this._obj){this.stop();this._initialDelay=i||500;this._subsequentDelay=
f||0.9;this._minDelay=g||10;this._obj=e;this._evt=a;this._node=c;this._count=this._currentTimeout=-1;this._callback=dojo.hitch(b,d);this._fireEventAndReload();this._evt=dojo.mixin({faux:true},a)}},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(a,b,c,d,e,f,i){if(b.keyCode){b.charOrCode=b.keyCode;dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.",
"","2.0")}else if(b.charCode){b.charOrCode=String.fromCharCode(b.charCode);dojo.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0")}return[dojo.connect(a,"onkeypress",this,function(g){if(g.charOrCode==b.charOrCode&&(b.ctrlKey===undefined||b.ctrlKey==g.ctrlKey)&&(b.altKey===undefined||b.altKey==g.altKey)&&(b.metaKey===undefined||b.metaKey==(g.metaKey||false))&&(b.shiftKey===undefined||b.shiftKey==g.shiftKey)){dojo.stopEvent(g);
dijit.typematic.trigger(g,c,a,d,b,e,f,i)}else dijit.typematic._obj==b&&dijit.typematic.stop()}),dojo.connect(a,"onkeyup",this,function(){dijit.typematic._obj==b&&dijit.typematic.stop()})]},addMouseListener:function(a,b,c,d,e,f){var i=dojo.connect;return[i(a,"mousedown",this,function(g){dojo.stopEvent(g);dijit.typematic.trigger(g,b,a,c,a,d,e,f)}),i(a,"mouseup",this,function(g){dojo.stopEvent(g);dijit.typematic.stop()}),i(a,"mouseout",this,function(g){dojo.stopEvent(g);dijit.typematic.stop()}),i(a,
"mousemove",this,function(g){g.preventDefault()}),i(a,"dblclick",this,function(g){dojo.stopEvent(g);if(dojo.isIE){dijit.typematic.trigger(g,b,a,c,a,d,e,f);setTimeout(dojo.hitch(this,dijit.typematic.stop),50)}})]},addListener:function(a,b,c,d,e,f,i,g){return this.addKeyListener(b,c,d,e,f,i,g).concat(this.addMouseListener(a,d,e,f,i,g))}};dojo.provide("dijit._base.wai");
dijit.wai={onload:function(){var a=dojo.create("div",{id:"a11yTestNode",style:{cssText:'border: 1px solid;border-color:red green;position: absolute;height: 5px;top: -999px;background-image: url("'+(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif"))+'");'}},dojo.body()),b=dojo.getComputedStyle(a);if(b){var c=b.backgroundImage;dojo[b.borderTopColor==b.borderRightColor||c!=null&&(c=="none"||c=="url(invalid-url:)")?"addClass":"removeClass"](dojo.body(),"dijit_a11y");if(dojo.isIE)a.outerHTML=
"";else dojo.body().removeChild(a)}}};if(dojo.isIE||dojo.isMoz)dojo._loaders.unshift(dijit.wai.onload);
dojo.mixin(dijit,{hasWaiRole:function(a,b){var c=this.getWaiRole(a);return b?c.indexOf(b)>-1:c.length>0},getWaiRole:function(a){return dojo.trim((dojo.attr(a,"role")||"").replace("wairole:",""))},setWaiRole:function(a,b){dojo.attr(a,"role",b)},removeWaiRole:function(a,b){var c=dojo.attr(a,"role");if(c)if(b){c=dojo.trim((" "+c+" ").replace(" "+b+" "," "));dojo.attr(a,"role",c)}else a.removeAttribute("role")},hasWaiState:function(a,b){return a.hasAttribute?a.hasAttribute("aria-"+b):!!a.getAttribute("aria-"+
b)},getWaiState:function(a,b){return a.getAttribute("aria-"+b)||""},setWaiState:function(a,b,c){a.setAttribute("aria-"+b,c)},removeWaiState:function(a,b){a.removeAttribute("aria-"+b)}});dojo.provide("dijit._base");dojo.provide("dijit._Widget");dojo.connect(dojo,"_connect",function(a,b){a&&dojo.isFunction(a._onConnect)&&a._onConnect(b)});dijit._connectOnUseEventHandler=function(){};dijit._lastKeyDownNode=null;
dojo.isIE?function(){var a=function(b){dijit._lastKeyDownNode=b.srcElement};dojo.doc.attachEvent("onkeydown",a);dojo.addOnWindowUnload(function(){dojo.doc.detachEvent("onkeydown",a)})}():dojo.doc.addEventListener("keydown",function(a){dijit._lastKeyDownNode=a.target},true);
(function(){dojo.declare("dijit._Widget",dijit._WidgetBase,{_deferredConnects:{onClick:"",onDblClick:"",onKeyDown:"",onKeyPress:"",onKeyUp:"",onMouseMove:"",onMouseDown:"",onMouseOut:"",onMouseOver:"",onMouseLeave:"",onMouseEnter:"",onMouseUp:""},onClick:dijit._connectOnUseEventHandler,onDblClick:dijit._connectOnUseEventHandler,onKeyDown:dijit._connectOnUseEventHandler,onKeyPress:dijit._connectOnUseEventHandler,onKeyUp:dijit._connectOnUseEventHandler,onMouseDown:dijit._connectOnUseEventHandler,onMouseMove:dijit._connectOnUseEventHandler,
onMouseOut:dijit._connectOnUseEventHandler,onMouseOver:dijit._connectOnUseEventHandler,onMouseLeave:dijit._connectOnUseEventHandler,onMouseEnter:dijit._connectOnUseEventHandler,onMouseUp:dijit._connectOnUseEventHandler,create:function(){this._deferredConnects=dojo.clone(this._deferredConnects);for(var a in this.attributeMap)delete this._deferredConnects[a];for(a in this._deferredConnects)this[a]!==dijit._connectOnUseEventHandler&&delete this._deferredConnects[a];this.inherited(arguments);if(this.domNode)for(a in this.params)this._onConnect(a)},
_onConnect:function(a){if(a in this._deferredConnects){this.connect(this[this._deferredConnects[a]||"domNode"],a.toLowerCase(),a);delete this._deferredConnects[a]}},focused:false,isFocusable:function(){return this.focus&&dojo.style(this.domNode,"display")!="none"},onFocus:function(){},onBlur:function(){},_onFocus:function(){this.onFocus()},_onBlur:function(){this.onBlur()},setAttribute:function(a,b){dojo.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.",
"","2.0");this.set(a,b)},attr:function(a){if(dojo.config.isDebug){var b=arguments.callee._ach||(arguments.callee._ach={}),c=(arguments.callee.caller||"unknown caller").toString();if(!b[c]){dojo.deprecated(this.declaredClass+"::attr() is deprecated. Use get() or set() instead, called from "+c,"","2.0");b[c]=true}}return arguments.length>=2||typeof a==="object"?this.set.apply(this,arguments):this.get(a)},nodesWithKeyClick:["input","button"],connect:function(a,b,c){var d=dojo,e=d._connect,f=this.inherited(arguments,
[a,b=="ondijitclick"?"onclick":b,c]);if(b=="ondijitclick")if(d.indexOf(this.nodesWithKeyClick,a.nodeName.toLowerCase())==-1){var i=d.hitch(this,c);f.push(e(a,"onkeydown",this,function(g){if((g.keyCode==d.keys.ENTER||g.keyCode==d.keys.SPACE)&&!g.ctrlKey&&!g.shiftKey&&!g.altKey&&!g.metaKey){dijit._lastKeyDownNode=g.target;"openDropDown"in this&&a==this._buttonNode||g.preventDefault()}}),e(a,"onkeyup",this,function(g){if((g.keyCode==d.keys.ENTER||g.keyCode==d.keys.SPACE)&&g.target==dijit._lastKeyDownNode&&
!g.ctrlKey&&!g.shiftKey&&!g.altKey&&!g.metaKey){dijit._lastKeyDownNode=null;return i(g)}}))}return f},_onShow:function(){this.onShow()},onShow:function(){},onHide:function(){},onClose:function(){return true}})})();dojo.provide("dojo.string");dojo.getObject("string",true,dojo);dojo.string.rep=function(a,b){if(b<=0||!a)return"";for(var c=[];;){b&1&&c.push(a);if(!(b>>=1))break;a+=a}return c.join("")};
dojo.string.pad=function(a,b,c,d){c||(c="0");a=String(a);b=dojo.string.rep(c,Math.ceil((b-a.length)/c.length));return d?a+b:b+a};dojo.string.substitute=function(a,b,c,d){d=d||dojo.global;c=c?dojo.hitch(d,c):function(e){return e};return a.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(e,f,i){e=dojo.getObject(f,false,b);if(i)e=dojo.getObject(i,false,d).call(d,e,f);return c(e,f).toString()})};
dojo.string.trim=String.prototype.trim?dojo.trim:function(a){a=a.replace(/^\s+/,"");for(var b=a.length-1;b>=0;b--)if(/\S/.test(a.charAt(b))){a=a.substring(0,b+1);break}return a};dojo.provide("dojo.date.stamp");dojo.getObject("date.stamp",true,dojo);
dojo.date.stamp.fromISOString=function(a,b){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 c=dojo.date.stamp._isoRegExp.exec(a),d=null;if(c){c.shift();c[1]&&c[1]--;if(c[6])c[6]*=1E3;if(b){b=new Date(b);dojo.forEach(dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(i){return b["get"+i]()}),function(i,g){c[g]=c[g]||i})}d=new Date(c[0]||
1970,c[1]||0,c[2]||1,c[3]||0,c[4]||0,c[5]||0,c[6]||0);if(c[0]<100)d.setFullYear(c[0]||1970);var e=0,f=c[7]&&c[7].charAt(0);if(f!="Z"){e=(c[8]||0)*60+(Number(c[9])||0);if(f!="-")e*=-1}if(f)e-=d.getTimezoneOffset();e&&d.setTime(d.getTime()+e*6E4)}return d};
dojo.date.stamp.toISOString=function(a,b){var c=function(g){return g<10?"0"+g:g};b=b||{};var d=[],e=b.zulu?"getUTC":"get",f="";if(b.selector!="time"){f=a[e+"FullYear"]();f=["0000".substr((f+"").length)+f,c(a[e+"Month"]()+1),c(a[e+"Date"]())].join("-")}d.push(f);if(b.selector!="date"){f=[c(a[e+"Hours"]()),c(a[e+"Minutes"]()),c(a[e+"Seconds"]())].join(":");e=a[e+"Milliseconds"]();if(b.milliseconds)f+="."+(e<100?"0":"")+c(e);if(b.zulu)f+="Z";else if(b.selector!="time"){e=a.getTimezoneOffset();var i=
Math.abs(e);f+=(e>0?"-":"+")+c(Math.floor(i/60))+":"+c(i%60)}d.push(f)}return d.join("T")};dojo.provide("dojo.parser");
dojo.parser=new function(){function a(g){if(e.isString(g))return"string";if(typeof g=="number")return"number";if(typeof g=="boolean")return"boolean";if(e.isFunction(g))return"function";if(e.isArray(g))return"array";if(g instanceof Date)return"date";if(g instanceof e._Url)return"url";return"object"}function b(g,h){switch(h){case "string":return g;case "number":return g.length?Number(g):NaN;case "boolean":return typeof g=="boolean"?g:g.toLowerCase()!="false";case "function":if(e.isFunction(g)){g=g.toString();
g=e.trim(g.substring(g.indexOf("{")+1,g.length-1))}try{return g===""||g.search(/[^\w\.]+/i)!=-1?new Function(g):e.getObject(g,false)||new Function(g)}catch(j){return new Function}case "array":return g?g.split(/\s*,\s*/):[];case "date":switch(g){case "":return new Date("");case "now":return new Date;default:return e.date.stamp.fromISOString(g)}case "url":return e.baseUrl+g;default:return e.fromJson(g)}}function c(g,h){for(var j in g)if(j.charAt(0)!="_")j in f||(h[j]=a(g[j]));return h}function d(g,
h){var j=i[g];if(j){if(!h&&!j.params)j.params=c(j.cls.prototype,{})}else{j=e.getObject(g);var m=null;if(!j)return null;h||(m=c(j.prototype,{}));j={cls:j,params:m}}return j}var e=dojo,f={},i={};e.connect(e,"extend",function(){i={}});this._functionFromScript=function(g,h){var j="",m="",n=g.getAttribute(h+"args")||g.getAttribute("args");n&&e.forEach(n.split(/\s*,\s*/),function(o,l){j+="var "+o+" = arguments["+l+"]; "});(n=g.getAttribute("with"))&&n.length&&e.forEach(n.split(/\s*,\s*/),function(o){j+=
"with("+o+"){";m+="}"});return new Function(j+g.innerHTML+m)};this.instantiate=function(g,h,j){var m=[];h=h||{};j=j||{};var n=(j.scope||e._scopeName)+"Type",o="data-"+(j.scope||e._scopeName)+"-";e.forEach(g,function(l){if(l){var k,p,q,r,s,u;if(l.node){k=l.node;p=l.type;u=l.fastpath;r=(q=l.clsInfo||p&&d(p,u))&&q.cls;s=l.scripts}else{k=l;s=(r=(q=(p=n in h?h[n]:k.getAttribute(n))&&d(p))&&q.cls)&&(r._noScript||r.prototype._noScript)?[]:e.query("> script[type^='dojo/']",k)}if(!q)throw Error("Could not load class '"+
p);var t={};j.defaults&&e._mixin(t,j.defaults);l.inherited&&e._mixin(t,l.inherited);if(u){if((q=k.getAttribute(o+"props"))&&q.length)try{q=e.fromJson.call(j.propsThis,"{"+q+"}");e._mixin(t,q)}catch(w){throw Error(w.toString()+" in data-dojo-props='"+q+"'");}if(q=k.getAttribute(o+"attach-point"))t.dojoAttachPoint=q;if(q=k.getAttribute(o+"attach-event"))t.dojoAttachEvent=q;dojo.mixin(t,h)}else{l=k.attributes;for(var v in q.params){p=v in h?{value:h[v],specified:true}:l.getNamedItem(v);if(!(!p||!p.specified&&
(!dojo.isIE||v.toLowerCase()!="value"))){p=p.value;switch(v){case "class":p="className"in h?h.className:k.className;break;case "style":p="style"in h?h.style:k.style&&k.style.cssText}u=q.params[v];t[v]=typeof p=="string"?b(p,u):p}}}var y=[],z=[];e.forEach(s,function(x){k.removeChild(x);var B=x.getAttribute(o+"event")||x.getAttribute("event"),C=x.getAttribute("type");x=e.parser._functionFromScript(x,o);if(B)if(C=="dojo/connect")y.push({event:B,func:x});else t[B]=x;else z.push(x)});var A=(s=r.markupFactory||
r.prototype&&r.prototype.markupFactory)?s(t,k,r):new r(t,k);m.push(A);(r=k.getAttribute(o+"id")||k.getAttribute("jsId"))&&e.setObject(r,A);e.forEach(y,function(x){e.connect(A,x.event,null,x.func)});e.forEach(z,function(x){x.call(A)})}});h._started||e.forEach(m,function(l){if(!j.noStart&&l&&dojo.isFunction(l.startup)&&!l._started&&(!l.getParent||!l.getParent()))l.startup()});return m};this.parse=function(g,h){function j(p,q){var r=dojo.clone(p.inherited);dojo.forEach(["dir","lang"],function(y){var z=
p.node.getAttribute(y);if(z)r[y]=z});for(var s=p.clsInfo&&!p.clsInfo.cls.prototype._noScript?p.scripts:null,u=!p.clsInfo||!p.clsInfo.cls.prototype.stopParser||h&&h.template,t=p.node.firstChild;t;t=t.nextSibling)if(t.nodeType==1){var w,v=u&&t.getAttribute(o+"type");w=v?v:u&&t.getAttribute(n);v=v==w;if(w){w={type:w,fastpath:v,clsInfo:d(w,v),node:t,scripts:[],inherited:r};q.push(w);j(w,q)}else if(s&&t.nodeName.toLowerCase()=="script")(w=t.getAttribute("type"))&&/^dojo\/\w/i.test(w)&&s.push(t);else u&&
j({node:t,inherited:r},q)}}var m;if(!h&&g&&g.rootNode){h=g;m=h.rootNode}else m=g;m=m?dojo.byId(m):dojo.body();h=h||{};var n=(h.scope||e._scopeName)+"Type",o="data-"+(h.scope||e._scopeName)+"-",l={};if(h&&h.inherited)for(var k in h.inherited)if(h.inherited[k])l[k]=h.inherited[k];k=[];j({node:m,inherited:l},k);return this.instantiate(k,h&&h.template?{template:true}:null,h)}};
(function(){var a=function(){dojo.config.parseOnLoad&&dojo.parser.parse()};dojo.getObject("dijit.wai.onload")===dojo._loaders[0]?dojo._loaders.splice(1,0,a):dojo._loaders.unshift(a)})();dojo.provide("dojo.cache");var cache={};
dojo.cache=function(a,b,c){if(typeof a=="string")a=dojo.moduleUrl(a,b);else c=b;b=a.toString();a=c;if(c!=undefined&&!dojo.isString(c))a="value"in c?c.value:undefined;c=c&&c.sanitize?true:false;if(typeof a=="string")a=cache[b]=c?dojo.cache._sanitize(a):a;else if(a===null)delete cache[b];else{if(!(b in cache)){a=dojo._getText(b);cache[b]=c?dojo.cache._sanitize(a):a}a=cache[b]}return a};
dojo.cache._sanitize=function(a){if(a){a=a.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var b=a.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(b)a=b[1]}else a="";return a};dojo.provide("dijit._Templated");
dojo.declare("dijit._Templated",null,{templateString:null,templatePath:null,widgetsInTemplate:false,_skipNodeCache:false,_earlyTemplatedStartup:false,constructor:function(){this._attachPoints=[];this._attachEvents=[]},_stringRepl:function(a){var b=this.declaredClass,c=this;return dojo.string.substitute(a,this,function(d,e){if(e.charAt(0)=="!")d=dojo.getObject(e.substr(1),false,c);if(typeof d=="undefined")throw Error(b+" template:"+e);if(d==null)return"";return e.charAt(0)=="!"?d:d.toString().replace(/"/g,
"&quot;")},this)},buildRendering:function(){var a=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache),b;if(dojo.isString(a)){b=dojo._toDom(this._stringRepl(a));if(b.nodeType!=1)throw Error("Invalid template: "+a);}else b=a.cloneNode(true);this.domNode=b;this.inherited(arguments);this._attachTemplateNodes(b);if(this.widgetsInTemplate){a=this._startupWidgets=dojo.parser.parse(b,{noStart:!this._earlyTemplatedStartup,template:true,inherited:{dir:this.dir,lang:this.lang},
propsThis:this,scope:"dojo"});this._supportingWidgets=dijit.findWidgets(b);this._attachTemplateNodes(a,function(c,d){return c[d]})}this._fillContent(this.srcNodeRef)},_fillContent:function(a){var b=this.containerNode;if(a&&b)for(;a.hasChildNodes();)b.appendChild(a.firstChild)},_attachTemplateNodes:function(a,b){b=b||function(j,m){return j.getAttribute(m)};for(var c=dojo.isArray(a)?a:a.all||a.getElementsByTagName("*"),d=dojo.isArray(a)?0:-1;d<c.length;d++){var e=d==-1?a:c[d];if(!(this.widgetsInTemplate&&
(b(e,"dojoType")||b(e,"data-dojo-type")))){var f=b(e,"dojoAttachPoint")||b(e,"data-dojo-attach-point");if(f)for(var i=f.split(/\s*,\s*/);f=i.shift();){if(dojo.isArray(this[f]))this[f].push(e);else this[f]=e;this._attachPoints.push(f)}if(f=b(e,"dojoAttachEvent")||b(e,"data-dojo-attach-event")){i=f.split(/\s*,\s*/);for(var g=dojo.trim;f=i.shift();)if(f){var h=null;if(f.indexOf(":")!=-1){h=f.split(":");f=g(h[0]);h=g(h[1])}else f=g(f);h||(h=f);this._attachEvents.push(this.connect(e,f,h))}}(f=b(e,"waiRole"))&&
dijit.setWaiRole(e,f);(f=b(e,"waiState"))&&dojo.forEach(f.split(/\s*,\s*/),function(j){if(j.indexOf("-")!=-1){j=j.split("-");dijit.setWaiState(e,j[0],j[1])}})}}},startup:function(){dojo.forEach(this._startupWidgets,function(a){a&&!a._started&&a.startup&&a.startup()});this.inherited(arguments)},destroyRendering:function(){dojo.forEach(this._attachPoints,function(a){delete this[a]},this);this._attachPoints=[];dojo.forEach(this._attachEvents,this.disconnect,this);this._attachEvents=[];this.inherited(arguments)}});
dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(a,b,c){var d=dijit._Templated._templateCache,e=b||a,f=d[e];if(f){try{if(!f.ownerDocument||f.ownerDocument==dojo.doc)return f}catch(i){}dojo.destroy(f)}b||(b=dojo.cache(a,{sanitize:true}));b=dojo.string.trim(b);if(c||b.match(/\$\{([^\}]+)\}/g))return d[e]=b;else{a=dojo._toDom(b);if(a.nodeType!=1)throw Error("Invalid template: "+b);return d[e]=a}};
dojo.isIE&&dojo.addOnWindowUnload(function(){var a=dijit._Templated._templateCache,b;for(b in a){var c=a[b];typeof c=="object"&&dojo.destroy(c);delete a[b]}});dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});dojo.provide("dijit.form._FormWidget");
dojo.declare("dijit.form._FormWidget",[dijit._Widget,dijit._Templated,dijit._CssStateMixin],{name:"",alt:"",value:"",type:"text",tabIndex:"0",disabled:false,intermediateChanges:false,scrollOnFocus:true,attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{value:"focusNode",id:"focusNode",tabIndex:"focusNode",alt:"focusNode",title:"focusNode"}),postMixInProperties:function(){this.nameAttrSetting=this.name?'name="'+this.name.replace(/'/g,"&quot;")+'"':"";this.inherited(arguments)},postCreate:function(){this.inherited(arguments);
this.connect(this.domNode,"onmousedown","_onMouseDown")},_setDisabledAttr:function(a){this._set("disabled",a);dojo.attr(this.focusNode,"disabled",a);this.valueNode&&dojo.attr(this.valueNode,"disabled",a);dijit.setWaiState(this.focusNode,"disabled",a);if(a){this._set("hovering",false);this._set("active",false);a="tabIndex"in this.attributeMap?this.attributeMap.tabIndex:"focusNode";dojo.forEach(dojo.isArray(a)?a:[a],function(b){b=this[b];dojo.isWebKit||dijit.hasDefaultTabStop(b)?b.setAttribute("tabIndex",
"-1"):b.removeAttribute("tabIndex")},this)}else this.tabIndex!=""&&this.focusNode.setAttribute("tabIndex",this.tabIndex)},setDisabled:function(a){dojo.deprecated("setDisabled("+a+") is deprecated. Use set('disabled',"+a+") instead.","","2.0");this.set("disabled",a)},_onFocus:function(){this.scrollOnFocus&&dojo.window.scrollIntoView(this.domNode);this.inherited(arguments)},isFocusable:function(){return!this.disabled&&this.focusNode&&dojo.style(this.domNode,"display")!="none"},focus:function(){this.disabled||
dijit.focus(this.focusNode)},compare:function(a,b){return typeof a=="number"&&typeof b=="number"?isNaN(a)&&isNaN(b)?0:a-b:a>b?1:a<b?-1:0},onChange:function(){},_onChangeActive:false,_handleOnChange:function(a,b){if(this._lastValueReported==undefined&&(b===null||!this._onChangeActive))this._resetValue=this._lastValueReported=a;this._pendingOnChange=this._pendingOnChange||typeof a!=typeof this._lastValueReported||this.compare(a,this._lastValueReported)!=0;if((this.intermediateChanges||b||b===undefined)&&
this._pendingOnChange){this._lastValueReported=a;this._pendingOnChange=false;if(this._onChangeActive){this._onChangeHandle&&clearTimeout(this._onChangeHandle);this._onChangeHandle=setTimeout(dojo.hitch(this,function(){this._onChangeHandle=null;this.onChange(a)}),0)}}},create:function(){this.inherited(arguments);this._onChangeActive=true},destroy:function(){if(this._onChangeHandle){clearTimeout(this._onChangeHandle);this.onChange(this._lastValueReported)}this.inherited(arguments)},setValue:function(a){dojo.deprecated("dijit.form._FormWidget:setValue("+
a+") is deprecated.  Use set('value',"+a+") instead.","","2.0");this.set("value",a)},getValue:function(){dojo.deprecated(this.declaredClass+"::getValue() is deprecated. Use get('value') instead.","","2.0");return this.get("value")},_onMouseDown:function(a){if(!a.ctrlKey&&dojo.mouseButtons.isLeft(a)&&this.isFocusable())var b=this.connect(dojo.body(),"onmouseup",function(){this.isFocusable()&&this.focus();this.disconnect(b)})}});
dojo.declare("dijit.form._FormValueWidget",dijit.form._FormWidget,{readOnly:false,attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{value:"",readOnly:"focusNode"}),_setReadOnlyAttr:function(a){dojo.attr(this.focusNode,"readOnly",a);dijit.setWaiState(this.focusNode,"readonly",a);this._set("readOnly",a)},postCreate:function(){this.inherited(arguments);if(dojo.isIE<9||dojo.isIE&&dojo.isQuirks)this.connect(this.focusNode||this.domNode,"onkeydown",this._onKeyDown);if(this._resetValue===
undefined)this._lastValueReported=this._resetValue=this.value},_setValueAttr:function(a,b){this._handleOnChange(a,b)},_handleOnChange:function(a){this._set("value",a);this.inherited(arguments)},undo:function(){this._setValueAttr(this._lastValueReported,false)},reset:function(){this._hasBeenBlurred=false;this._setValueAttr(this._resetValue,true)},_onKeyDown:function(a){if(a.keyCode==dojo.keys.ESCAPE&&!(a.ctrlKey||a.altKey||a.metaKey)){var b;if(dojo.isIE){a.preventDefault();b=document.createEventObject();
b.keyCode=dojo.keys.ESCAPE;b.shiftKey=a.shiftKey;a.srcElement.fireEvent("onkeypress",b)}}},_layoutHackIE7:function(){if(dojo.isIE==7)for(var a=this.domNode,b=a.parentNode,c=a.firstChild||a,d=c.style.filter,e=this;b&&b.clientHeight==0;){(function(){var f=e.connect(b,"onscroll",function(){e.disconnect(f);c.style.filter=(new Date).getMilliseconds();setTimeout(function(){c.style.filter=d},0)})})();b=b.parentNode}}});dojo.provide("dojo.i18n");dojo.getObject("i18n",true,dojo);
dojo.i18n.getLocalization=dojo.i18n.getLocalization||function(a,b,c){c=dojo.i18n.normalizeLocale(c);var d=c.split("-"),e=[a,"nls",b].join(".");if(e=dojo._loadedModules[e]){for(var f,i=d.length;i>0;i--){var g=d.slice(0,i).join("_");if(e[g]){f=e[g];break}}if(!f)f=e.ROOT;if(f){a=function(){};a.prototype=f;return new a}}throw Error("Bundle not found: "+b+" in "+a+" , locale="+c);};dojo.i18n.normalizeLocale=function(a){a=a?a.toLowerCase():dojo.locale;if(a=="root")a="ROOT";return a};
dojo.i18n._requireLocalization=function(a,b,c,d){c=dojo.i18n.normalizeLocale(c);var e=[a,"nls",b].join("."),f="";if(d){for(var i=d.split(","),g=0;g<i.length;g++)if(c.indexOf(i[g])==0)if(i[g].length>f.length)f=i[g];f||(f="ROOT")}i=d?f:c;var h=dojo._loadedModules[e];g=null;if(h){if(dojo.config.localizationComplete&&h._built)return;g=i.replace(/-/g,"_");g=dojo._loadedModules[e+"."+g]}if(!g){h=dojo.provide(e);var j=dojo._getModuleSymbols(a).concat("nls").join("/"),m;dojo.i18n._searchLocalePath(i,d,function(n){var o=
n.replace(/-/g,"_"),l=e+"."+o,k=false;if(dojo._loadedModules[l])k=true;else{dojo.provide(l);l=[j];n!="ROOT"&&l.push(n);l.push(b);n=l.join("/")+".js";k=dojo._loadPath(n,null,function(p){p=p.root||p;var q=function(){};q.prototype=m;h[o]=new q;for(var r in p)h[o][r]=p[r]})}if(k&&h[o])m=h[o];else h[o]=m;if(d)return true})}if(d&&c!=f)h[c.replace(/-/g,"_")]=h[f.replace(/-/g,"_")]};
(function(){var a=dojo.config.extraLocale;if(a){if(!a instanceof Array)a=[a];var b=dojo.i18n._requireLocalization;dojo.i18n._requireLocalization=function(c,d,e,f){b(c,d,e,f);if(!e)for(e=0;e<a.length;e++)b(c,d,a[e],f)}}})();dojo.i18n._searchLocalePath=function(a,b,c){a=dojo.i18n.normalizeLocale(a);var d=a.split("-");a=[];for(var e=d.length;e>0;e--)a.push(d.slice(0,e).join("-"));a.push(false);b&&a.reverse();for(b=a.length-1;b>=0;b--)if(c(a[b]||"ROOT"))break};
dojo.i18n._preloadLocalizations=function(a,b){function c(f){f=dojo.i18n.normalizeLocale(f);dojo.i18n._searchLocalePath(f,true,function(i){for(var g=0;g<b.length;g++)if(b[g]==i){dojo.require(a+"_"+i);return true}return false})}c();for(var d=dojo.config.extraLocale||[],e=0;e<d.length;e++)c(d[e])};dojo.provide("dijit.form.TextBox");
dojo.declare("dijit.form.TextBox",dijit.form._FormValueWidget,{trim:false,uppercase:false,lowercase:false,propercase:false,maxLength:"",selectOnClick:false,placeHolder:"",templateString:dojo.cache("dijit.form","templates/TextBox.html",'<div class="dijit dijitReset dijitInline dijitLeft" id="widget_${id}" role="presentation"\n\t><div class="dijitReset dijitInputField dijitInputContainer"\n\t\t><input class="dijitReset dijitInputInner" dojoAttachPoint=\'textbox,focusNode\' autocomplete="off"\n\t\t\t${!nameAttrSetting} type=\'${type}\'\n\t/></div\n></div>\n'),
_singleNodeTemplate:'<input class="dijit dijitReset dijitLeft dijitInputField" dojoAttachPoint="textbox,focusNode" autocomplete="off" type="${type}" ${!nameAttrSetting} />',_buttonInputDisabled:dojo.isIE?"disabled":"",baseClass:"dijitTextBox",attributeMap:dojo.delegate(dijit.form._FormValueWidget.prototype.attributeMap,{maxLength:"focusNode"}),postMixInProperties:function(){var a=this.type.toLowerCase();if(this.templateString&&this.templateString.toLowerCase()=="input"||(a=="hidden"||a=="file")&&
this.templateString==dijit.form.TextBox.prototype.templateString)this.templateString=this._singleNodeTemplate;this.inherited(arguments)},_setPlaceHolderAttr:function(a){this._set("placeHolder",a);if(!this._phspan){this._attachPoints.push("_phspan");this._phspan=dojo.create("span",{className:"dijitPlaceHolder dijitInputField"},this.textbox,"after")}this._phspan.innerHTML="";this._phspan.appendChild(document.createTextNode(a));this._updatePlaceHolder()},_updatePlaceHolder:function(){if(this._phspan)this._phspan.style.display=
this.placeHolder&&!this._focused&&!this.textbox.value?"":"none"},_getValueAttr:function(){return this.parse(this.get("displayedValue"),this.constraints)},_setValueAttr:function(a,b,c){var d;if(a!==undefined){d=this.filter(a);if(typeof c!="string")c=d!==null&&(typeof d!="number"||!isNaN(d))?this.filter(this.format(d,this.constraints)):""}if(c!=null&&c!=undefined&&(typeof c!="number"||!isNaN(c))&&this.textbox.value!=c){this.textbox.value=c;this._set("displayedValue",this.get("displayedValue"))}this._updatePlaceHolder();
this.inherited(arguments,[d,b])},displayedValue:"",getDisplayedValue:function(){dojo.deprecated(this.declaredClass+"::getDisplayedValue() is deprecated. Use set('displayedValue') instead.","","2.0");return this.get("displayedValue")},_getDisplayedValueAttr:function(){return this.filter(this.textbox.value)},setDisplayedValue:function(a){dojo.deprecated(this.declaredClass+"::setDisplayedValue() is deprecated. Use set('displayedValue', ...) instead.","","2.0");this.set("displayedValue",a)},_setDisplayedValueAttr:function(a){if(a===
null||a===undefined)a="";else if(typeof a!="string")a=String(a);this.textbox.value=a;this._setValueAttr(this.get("value"),undefined);this._set("displayedValue",this.get("displayedValue"))},format:function(a){return a==null||a==undefined?"":a.toString?a.toString():a},parse:function(a){return a},_refreshState:function(){},_onInput:function(a){if(a&&a.type&&/key/i.test(a.type)&&a.keyCode)switch(a.keyCode){case dojo.keys.SHIFT:case dojo.keys.ALT:case dojo.keys.CTRL:case dojo.keys.TAB:return}if(this.intermediateChanges){var b=
this;setTimeout(function(){b._handleOnChange(b.get("value"),false)},0)}this._refreshState();this._set("displayedValue",this.get("displayedValue"))},postCreate:function(){dojo.isIE&&setTimeout(dojo.hitch(this,function(){var a=dojo.getComputedStyle(this.domNode);if(a)if(a=a.fontFamily){var b=this.domNode.getElementsByTagName("INPUT");if(b)for(var c=0;c<b.length;c++)b[c].style.fontFamily=a}}),0);this.textbox.setAttribute("value",this.textbox.value);this.inherited(arguments);if(dojo.isMoz||dojo.isOpera)this.connect(this.textbox,
"oninput","_onInput");else{this.connect(this.textbox,"onkeydown","_onInput");this.connect(this.textbox,"onkeyup","_onInput");this.connect(this.textbox,"onpaste","_onInput");this.connect(this.textbox,"oncut","_onInput")}},_blankValue:"",filter:function(a){if(a===null)return this._blankValue;if(typeof a!="string")return a;if(this.trim)a=dojo.trim(a);if(this.uppercase)a=a.toUpperCase();if(this.lowercase)a=a.toLowerCase();if(this.propercase)a=a.replace(/[^\s]+/g,function(b){return b.substring(0,1).toUpperCase()+
b.substring(1)});return a},_setBlurValue:function(){this._setValueAttr(this.get("value"),true)},_onBlur:function(){if(!this.disabled){this._setBlurValue();this.inherited(arguments);this._selectOnClickHandle&&this.disconnect(this._selectOnClickHandle);if(this.selectOnClick&&dojo.isMoz)this.textbox.selectionStart=this.textbox.selectionEnd=undefined;this._updatePlaceHolder()}},_onFocus:function(a){if(!(this.disabled||this.readOnly)){if(this.selectOnClick&&a=="mouse")this._selectOnClickHandle=this.connect(this.domNode,
"onmouseup",function(){this.disconnect(this._selectOnClickHandle);var b;if(dojo.isIE){b=dojo.doc.selection.createRange();b=b.parentElement()==this.textbox&&b.text.length==0}else b=this.textbox.selectionStart==this.textbox.selectionEnd;b&&dijit.selectInputText(this.textbox)});this._updatePlaceHolder();this.inherited(arguments);this._refreshState()}},reset:function(){this.textbox.value="";this.inherited(arguments)}});
dijit.selectInputText=function(a,b,c){var d=dojo.global,e=dojo.doc;a=dojo.byId(a);if(isNaN(b))b=0;if(isNaN(c))c=a.value?a.value.length:0;dijit.focus(a);if(e.selection&&dojo.body().createTextRange){if(a.createTextRange){a=a.createTextRange();a.collapse(true);a.moveStart("character",-99999);a.moveStart("character",b);a.moveEnd("character",c-b);a.select()}}else d.getSelection&&a.setSelectionRange&&a.setSelectionRange(b,c)};dojo.provide("dijit.Tooltip");
dojo.declare("dijit._MasterTooltip",[dijit._Widget,dijit._Templated],{duration:dijit.defaultDuration,templateString:dojo.cache("dijit","templates/Tooltip.html",'<div class="dijitTooltip dijitTooltipLeft" id="dojoTooltip"\n\t><div class="dijitTooltipContainer dijitTooltipContents" dojoAttachPoint="containerNode" role=\'alert\'></div\n\t><div class="dijitTooltipConnector" dojoAttachPoint="connectorNode"></div\n></div>\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(a,b,c,d){if(!(this.aroundNode&&this.aroundNode===b)){this.domNode.width="auto";if(this.fadeOut.status()=="playing")this._onDeck=arguments;else{this.containerNode.innerHTML=a;dijit.placeOnScreenAroundElement(this.domNode,b,dijit.getPopupAroundAlignment(c&&c.length?c:dijit.Tooltip.defaultPosition,
!d),dojo.hitch(this,"orient"));dojo.style(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=true;this.aroundNode=b}}},orient:function(a,b,c,d,e){this.connectorNode.style.top="";var f=d.w-this.connectorNode.offsetWidth;a.className="dijitTooltip "+{"BL-TL":"dijitTooltipBelow dijitTooltipABLeft","TL-BL":"dijitTooltipAbove dijitTooltipABLeft","BR-TR":"dijitTooltipBelow dijitTooltipABRight","TR-BR":"dijitTooltipAbove dijitTooltipABRight","BR-BL":"dijitTooltipRight","BL-BR":"dijitTooltipLeft"}[b+
"-"+c];this.domNode.style.width="auto";var i=dojo.contentBox(this.domNode),g=Math.min(Math.max(f,1),i.w),h=g<i.w;this.domNode.style.width=g+"px";if(h){this.containerNode.style.overflow="auto";h=this.containerNode.scrollWidth;this.containerNode.style.overflow="visible";if(h>g){h=h+dojo.style(this.domNode,"paddingLeft")+dojo.style(this.domNode,"paddingRight");this.domNode.style.width=h+"px"}}if(c.charAt(0)=="B"&&b.charAt(0)=="B"){a=dojo.marginBox(a);b=this.connectorNode.offsetHeight;if(a.h>d.h){this.connectorNode.style.top=
d.h-e.h/2-b/2+"px";this.connectorNode.style.bottom=""}else{this.connectorNode.style.bottom=Math.min(Math.max(e.h/2-b/2,0),a.h-b)+"px";this.connectorNode.style.top=""}}else{this.connectorNode.style.top="";this.connectorNode.style.bottom=""}return Math.max(0,i.w-f)},_onShow:function(){if(dojo.isIE)this.domNode.style.filter=""},hide:function(a){if(this._onDeck&&this._onDeck[1]==a)this._onDeck=null;else if(this.aroundNode===a){this.fadeIn.stop();this.isShowingNow=false;this.aroundNode=null;this.fadeOut.play()}},
_onHide:function(){this.domNode.style.cssText="";this.containerNode.innerHTML="";if(this._onDeck){this.show.apply(this,this._onDeck);this._onDeck=null}}});dijit.showTooltip=function(a,b,c,d){if(!dijit._masterTT)dijit._masterTT=new dijit._MasterTooltip;return dijit._masterTT.show(a,b,c,d)};dijit.hideTooltip=function(a){if(!dijit._masterTT)dijit._masterTT=new dijit._MasterTooltip;return dijit._masterTT.hide(a)};
dojo.declare("dijit.Tooltip",dijit._Widget,{label:"",showDelay:400,connectId:[],position:[],_setConnectIdAttr:function(a){dojo.forEach(this._connections||[],function(c){dojo.forEach(c,dojo.hitch(this,"disconnect"))},this);var b=dojo.isArrayLike(a)?a:a?[a]:[];this._connections=dojo.map(b,function(c){return(c=dojo.byId(c))?[this.connect(c,"onmouseenter","_onTargetMouseEnter"),this.connect(c,"onmouseleave","_onTargetMouseLeave"),this.connect(c,"onfocus","_onTargetFocus"),this.connect(c,"onblur","_onTargetBlur")]:
[]},this);this._set("connectId",a);this._connectIds=b},addTarget:function(a){a=a.id||a;dojo.indexOf(this._connectIds,a)==-1&&this.set("connectId",this._connectIds.concat(a))},removeTarget:function(a){a=dojo.indexOf(this._connectIds,a.id||a);if(a>=0){this._connectIds.splice(a,1);this.set("connectId",this._connectIds)}},buildRendering:function(){this.inherited(arguments);dojo.addClass(this.domNode,"dijitTooltipData")},startup:function(){this.inherited(arguments);var a=this.connectId;dojo.forEach(dojo.isArrayLike(a)?
a:[a],this.addTarget,this)},_onTargetMouseEnter:function(a){this._onHover(a)},_onTargetMouseLeave:function(a){this._onUnHover(a)},_onTargetFocus:function(a){this._focus=true;this._onHover(a)},_onTargetBlur:function(a){this._focus=false;this._onUnHover(a)},_onHover:function(a){if(!this._showTimer){var b=a.target;this._showTimer=setTimeout(dojo.hitch(this,function(){this.open(b)}),this.showDelay)}},_onUnHover:function(){if(!this._focus){if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer}this.close()}},
open:function(a){if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer}dijit.showTooltip(this.label||this.domNode.innerHTML,a,this.position,!this.isLeftToRight());this._connectNode=a;this.onShow(a,this.position)},close:function(){if(this._connectNode){dijit.hideTooltip(this._connectNode);delete this._connectNode;this.onHide()}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer}},onShow:function(){},onHide:function(){},uninitialize:function(){this.close();this.inherited(arguments)}});
dijit.Tooltip.defaultPosition=["after","before"];dojo.provide("dijit.form.ValidationTextBox");
dojo.declare("dijit.form.ValidationTextBox",dijit.form.TextBox,{templateString:dojo.cache("dijit.form","templates/ValidationTextBox.html",'<div class="dijit dijitReset dijitInlineTable dijitLeft"\n\tid="widget_${id}" role="presentation"\n\t><div class=\'dijitReset dijitValidationContainer\'\n\t\t><input class="dijitReset dijitInputField dijitValidationIcon dijitValidationInner" value="&#935; " type="text" tabIndex="-1" readonly="readonly" role="presentation"\n\t/></div\n\t><div class="dijitReset dijitInputField dijitInputContainer"\n\t\t><input class="dijitReset dijitInputInner" dojoAttachPoint=\'textbox,focusNode\' autocomplete="off"\n\t\t\t${!nameAttrSetting} type=\'${type}\'\n\t/></div\n></div>\n'),baseClass:"dijitTextBox dijitValidationTextBox",
required:false,promptMessage:"",invalidMessage:"$_unset_$",missingMessage:"$_unset_$",message:"",constraints:{},regExp:".*",regExpGen:function(){return this.regExp},state:"",tooltipPosition:[],_setValueAttr:function(){this.inherited(arguments);this.validate(this._focused)},validator:function(a,b){return RegExp("^(?:"+this.regExpGen(b)+")"+(this.required?"":"?")+"$").test(a)&&(!this.required||!this._isEmpty(a))&&(this._isEmpty(a)||this.parse(a,b)!==undefined)},_isValidSubset:function(){return this.textbox.value.search(this._partialre)==
0},isValid:function(){return this.validator(this.textbox.value,this.constraints)},_isEmpty:function(a){return(this.trim?/^\s*$/:/^$/).test(a)},getErrorMessage:function(){return this.required&&this._isEmpty(this.textbox.value)?this.missingMessage:this.invalidMessage},getPromptMessage:function(){return this.promptMessage},_maskValidSubsetError:true,validate:function(a){var b="",c=this.disabled||this.isValid(a);if(c)this._maskValidSubsetError=true;var d=this._isEmpty(this.textbox.value),e=!c&&a&&this._isValidSubset();
this._set("state",c?"":((!this._hasBeenBlurred||a)&&d||e)&&this._maskValidSubsetError?"Incomplete":"Error");dijit.setWaiState(this.focusNode,"invalid",c?"false":"true");if(this.state=="Error"){this._maskValidSubsetError=a&&e;b=this.getErrorMessage(a)}else if(this.state=="Incomplete"){b=this.getPromptMessage(a);this._maskValidSubsetError=!this._hasBeenBlurred||a}else if(d)b=this.getPromptMessage(a);this.set("message",b);return c},displayMessage:function(a){dijit.hideTooltip(this.domNode);a&&this._focused&&
dijit.showTooltip(a,this.domNode,this.tooltipPosition,!this.isLeftToRight())},_refreshState:function(){this.validate(this._focused);this.inherited(arguments)},constructor:function(){this.constraints={}},_setConstraintsAttr:function(a){if(!a.locale&&this.lang)a.locale=this.lang;this._set("constraints",a);this._computePartialRE()},_computePartialRE:function(){var a=this.regExpGen(this.constraints);this.regExp=a;var b="";a!=".*"&&this.regExp.replace(/\\.|\[\]|\[.*?[^\\]{1}\]|\{.*?\}|\(\?[=:!]|./g,function(d){switch(d.charAt(0)){case "{":case "+":case "?":case "*":case "^":case "$":case "|":case "(":b+=
d;break;case ")":b+="|$)";break;default:b+="(?:"+d+"|$)"}});try{"".search(b)}catch(c){b=this.regExp;console.warn("RegExp error in "+this.declaredClass+": "+this.regExp)}this._partialre="^(?:"+b+")$"},postMixInProperties:function(){this.inherited(arguments);this.messages=dojo.i18n.getLocalization("dijit.form","validate",this.lang);if(this.invalidMessage=="$_unset_$")this.invalidMessage=this.messages.invalidMessage;if(!this.invalidMessage)this.invalidMessage=this.promptMessage;if(this.missingMessage==
"$_unset_$")this.missingMessage=this.messages.missingMessage;if(!this.missingMessage)this.missingMessage=this.invalidMessage;this._setConstraintsAttr(this.constraints)},_setDisabledAttr:function(){this.inherited(arguments);this._refreshState()},_setRequiredAttr:function(a){this._set("required",a);dijit.setWaiState(this.focusNode,"required",a);this._refreshState()},_setMessageAttr:function(a){this._set("message",a);this.displayMessage(a)},reset:function(){this._maskValidSubsetError=true;this.inherited(arguments)},
_onBlur:function(){this.displayMessage("");this.inherited(arguments)}});
dojo.declare("dijit.form.MappedTextBox",dijit.form.ValidationTextBox,{postMixInProperties:function(){this.inherited(arguments);this.nameAttrSetting=""},serialize:function(a){return a.toString?a.toString():""},toString:function(){var a=this.filter(this.get("value"));return a!=null?typeof a=="string"?a:this.serialize(a,this.constraints):""},validate:function(){this.valueNode.value=this.toString();return this.inherited(arguments)},buildRendering:function(){this.inherited(arguments);this.valueNode=dojo.place("<input type='hidden'"+
(this.name?" name='"+this.name.replace(/'/g,"&quot;")+"'":"")+"/>",this.textbox,"after")},reset:function(){this.valueNode.value="";this.inherited(arguments)}});
dojo.declare("dijit.form.RangeBoundTextBox",dijit.form.MappedTextBox,{rangeMessage:"",rangeCheck:function(a,b){return("min"in b?this.compare(a,b.min)>=0:true)&&("max"in b?this.compare(a,b.max)<=0:true)},isInRange:function(){return this.rangeCheck(this.get("value"),this.constraints)},_isDefinitelyOutOfRange:function(){var a=this.get("value"),b=false,c=false;if("min"in this.constraints){b=this.constraints.min;b=this.compare(a,typeof b=="number"&&b>=0&&a!=0?0:b);b=typeof b=="number"&&b<0}if("max"in this.constraints){c=
this.constraints.max;c=this.compare(a,typeof c!="number"||c>0?c:0);c=typeof c=="number"&&c>0}return b||c},_isValidSubset:function(){return this.inherited(arguments)&&!this._isDefinitelyOutOfRange()},isValid:function(a){return this.inherited(arguments)&&(this._isEmpty(this.textbox.value)&&!this.required||this.isInRange(a))},getErrorMessage:function(a){var b=this.get("value");if(b!==null&&b!==""&&b!==undefined&&(typeof b!="number"||!isNaN(b))&&!this.isInRange(a))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}},_setConstraintsAttr:function(){this.inherited(arguments);if(this.focusNode){this.constraints.min!==undefined?dijit.setWaiState(this.focusNode,"valuemin",this.constraints.min):dijit.removeWaiState(this.focusNode,"valuemin");this.constraints.max!==undefined?dijit.setWaiState(this.focusNode,"valuemax",
this.constraints.max):dijit.removeWaiState(this.focusNode,"valuemax")}},_setValueAttr:function(a){dijit.setWaiState(this.focusNode,"valuenow",a);this.inherited(arguments)}});dojo.provide("dijit._HasDropDown");
dojo.declare("dijit._HasDropDown",null,{_buttonNode:null,_arrowWrapperNode:null,_popupStateNode:null,_aroundNode:null,dropDown:null,autoWidth:true,forceWidth:false,maxHeight:0,dropDownPosition:["below","above"],_stopClickEvents:true,_onDropDownMouseDown:function(a){if(!(this.disabled||this.readOnly)){dojo.stopEvent(a);this._docHandler=this.connect(dojo.doc,"onmouseup","_onDropDownMouseUp");this.toggleDropDown()}},_onDropDownMouseUp:function(a){a&&this._docHandler&&this.disconnect(this._docHandler);
var b=this.dropDown,c=false;if(a&&this._opened){var d=dojo.position(this._buttonNode,true);if(!(a.pageX>=d.x&&a.pageX<=d.x+d.w)||!(a.pageY>=d.y&&a.pageY<=d.y+d.h)){for(d=a.target;d&&!c;)if(dojo.hasClass(d,"dijitPopup"))c=true;else d=d.parentNode;if(c){d=a.target;if(b.onItemClick){for(var e;d&&!(e=dijit.byNode(d));)d=d.parentNode;if(e&&e.onClick&&e.getParent)e.getParent().onItemClick(e,a)}return}}}this._opened&&b.focus&&b.autoFocus!==false&&window.setTimeout(dojo.hitch(b,"focus"),1)},_onDropDownClick:function(a){this._stopClickEvents&&
dojo.stopEvent(a)},buildRendering:function(){this.inherited(arguments);this._buttonNode=this._buttonNode||this.focusNode||this.domNode;this._popupStateNode=this._popupStateNode||this.focusNode||this._buttonNode;var a={after:this.isLeftToRight()?"Right":"Left",before:this.isLeftToRight()?"Left":"Right",above:"Up",below:"Down",left:"Left",right:"Right"}[this.dropDownPosition[0]]||this.dropDownPosition[0]||"Down";dojo.addClass(this._arrowWrapperNode||this._buttonNode,"dijit"+a+"ArrowButton")},postCreate:function(){this.inherited(arguments);
this.connect(this._buttonNode,"onmousedown","_onDropDownMouseDown");this.connect(this._buttonNode,"onclick","_onDropDownClick");this.connect(this.focusNode,"onkeypress","_onKey");this.connect(this.focusNode,"onkeyup","_onKeyUp")},destroy:function(){if(this.dropDown){this.dropDown._destroyed||this.dropDown.destroyRecursive();delete this.dropDown}this.inherited(arguments)},_onKey:function(a){if(!(this.disabled||this.readOnly)){var b=this.dropDown,c=a.target;if(b&&this._opened&&b.handleKey)if(b.handleKey(a)===
false){dojo.stopEvent(a);return}if(b&&this._opened&&a.charOrCode==dojo.keys.ESCAPE){this.closeDropDown();dojo.stopEvent(a)}else if(!this._opened&&(a.charOrCode==dojo.keys.DOWN_ARROW||(a.charOrCode==dojo.keys.ENTER||a.charOrCode==" ")&&((c.tagName||"").toLowerCase()!=="input"||c.type&&c.type.toLowerCase()!=="text"))){this._toggleOnKeyUp=true;dojo.stopEvent(a)}}},_onKeyUp:function(){if(this._toggleOnKeyUp){delete this._toggleOnKeyUp;this.toggleDropDown();var a=this.dropDown;a&&a.focus&&setTimeout(dojo.hitch(a,
"focus"),1)}},_onBlur:function(){this.closeDropDown(dijit._curFocus&&this.dropDown&&dojo.isDescendant(dijit._curFocus,this.dropDown.domNode));this.inherited(arguments)},isLoaded:function(){return true},loadDropDown:function(a){a()},toggleDropDown:function(){if(!(this.disabled||this.readOnly))if(this._opened)this.closeDropDown();else this.isLoaded()?this.openDropDown():this.loadDropDown(dojo.hitch(this,"openDropDown"))},openDropDown:function(){var a=this.dropDown,b=a.domNode,c=this._aroundNode||this.domNode,
d=this;if(!this._preparedNode){this._preparedNode=true;if(b.style.width)this._explicitDDWidth=true;if(b.style.height)this._explicitDDHeight=true}if(this.maxHeight||this.forceWidth||this.autoWidth){var e={display:"",visibility:"hidden"};if(!this._explicitDDWidth)e.width="";if(!this._explicitDDHeight)e.height="";dojo.style(b,e);e=this.maxHeight;if(e==-1){e=dojo.window.getBox();var f=dojo.position(c,false);e=Math.floor(Math.max(f.y,e.h-(f.y+f.h)))}a.startup&&!a._started&&a.startup();dijit.popup.moveOffScreen(a);
f=dojo._getMarginSize(b);var i=e&&f.h>e;dojo.style(b,{overflowX:"hidden",overflowY:i?"auto":"hidden"});if(i){f.h=e;if("w"in f)f.w+=16}else delete f.h;if(this.forceWidth)f.w=c.offsetWidth;else if(this.autoWidth)f.w=Math.max(f.w,c.offsetWidth);else delete f.w;dojo.isFunction(a.resize)?a.resize(f):dojo.marginBox(b,f)}a=dijit.popup.open({parent:this,popup:a,around:c,orient:dijit.getPopupAroundAlignment(this.dropDownPosition&&this.dropDownPosition.length?this.dropDownPosition:["below"],this.isLeftToRight()),
onExecute:function(){d.closeDropDown(true)},onCancel:function(){d.closeDropDown(true)},onClose:function(){dojo.attr(d._popupStateNode,"popupActive",false);dojo.removeClass(d._popupStateNode,"dijitHasDropDownOpen");d._opened=false}});dojo.attr(this._popupStateNode,"popupActive","true");dojo.addClass(d._popupStateNode,"dijitHasDropDownOpen");this._opened=true;return a},closeDropDown:function(a){if(this._opened){a&&this.focus();dijit.popup.close(this.dropDown);this._opened=false}}});dojo.provide("dijit.form.ComboBox");
dojo.declare("dijit.form.ComboBoxMixin",dijit._HasDropDown,{item:null,pageSize:Infinity,store:null,fetchProperties:{},query:{},autoComplete:true,highlightMatch:"first",searchDelay:100,searchAttr:"name",labelAttr:"",labelType:"text",queryExpr:"${0}*",ignoreCase:true,hasDownArrow:true,templateString:dojo.cache("dijit.form","templates/DropDownBox.html",'<div class="dijit dijitReset dijitInlineTable dijitLeft"\n\tid="widget_${id}"\n\trole="combobox"\n\t><div class=\'dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton dijitArrowButtonContainer\'\n\t\tdojoAttachPoint="_buttonNode, _popupStateNode" role="presentation"\n\t\t><input class="dijitReset dijitInputField dijitArrowButtonInner" value="&#9660; " type="text" tabIndex="-1" readonly="readonly" role="presentation"\n\t\t\t${_buttonInputDisabled}\n\t/></div\n\t><div class=\'dijitReset dijitValidationContainer\'\n\t\t><input class="dijitReset dijitInputField dijitValidationIcon dijitValidationInner" value="&#935; " type="text" tabIndex="-1" readonly="readonly" role="presentation"\n\t/></div\n\t><div class="dijitReset dijitInputField dijitInputContainer"\n\t\t><input class=\'dijitReset dijitInputInner\' ${!nameAttrSetting} type="text" autocomplete="off"\n\t\t\tdojoAttachPoint="textbox,focusNode" role="textbox" aria-haspopup="true"\n\t/></div\n></div>\n'),
baseClass:"dijitTextBox dijitComboBox",dropDownClass:"dijit.form._ComboBoxMenu",cssStateNodes:{_buttonNode:"dijitDownArrowButton"},maxHeight:-1,_stopClickEvents:false,_getCaretPos:function(a){var b=0;if(typeof a.selectionStart=="number")b=a.selectionStart;else if(dojo.isIE){var c=dojo.doc.selection.createRange().duplicate();a=a.createTextRange();c.move("character",0);a.move("character",0);try{a.setEndPoint("EndToEnd",c);b=String(a.text).replace(/\r/g,"").length}catch(d){}}return b},_setCaretPos:function(a,
b){b=parseInt(b);dijit.selectInputText(a,b,b)},_setDisabledAttr:function(a){this.inherited(arguments);dijit.setWaiState(this.domNode,"disabled",a)},_abortQuery:function(){if(this.searchTimer){clearTimeout(this.searchTimer);this.searchTimer=null}if(this._fetchHandle){this._fetchHandle.abort&&this._fetchHandle.abort();this._fetchHandle=null}},_onInput:function(a){if(!this.searchTimer&&(a.type=="paste"||a.type=="input")&&this._lastInput!=this.textbox.value)this.searchTimer=setTimeout(dojo.hitch(this,
function(){this._onKey({charOrCode:229})}),100);this.inherited(arguments)},_onKey:function(a){var b=a.charOrCode;if(!(a.altKey||(a.ctrlKey||a.metaKey)&&b!="x"&&b!="v"||b==dojo.keys.SHIFT)){var c=false,d=this.dropDown,e=dojo.keys,f=null;this._prev_key_backspace=false;this._abortQuery();this.inherited(arguments);if(this._opened)f=d.getHighlightedOption();switch(b){case e.PAGE_DOWN:case e.DOWN_ARROW:case e.PAGE_UP:case e.UP_ARROW:this._opened&&this._announceOption(f);dojo.stopEvent(a);break;case e.ENTER:if(f)if(f==
d.nextButton){this._nextSearch(1);dojo.stopEvent(a);break}else{if(f==d.previousButton){this._nextSearch(-1);dojo.stopEvent(a);break}}else{this._setBlurValue();this._setCaretPos(this.focusNode,this.focusNode.value.length)}if(this._opened||this._fetchHandle)a.preventDefault();case e.TAB:b=this.get("displayedValue");if(d&&(b==d._messages.previousMessage||b==d._messages.nextMessage))break;f&&this._selectOption();if(this._opened){this._lastQuery=null;this.closeDropDown()}break;case " ":if(f){dojo.stopEvent(a);
this._selectOption();this.closeDropDown()}else c=true;break;case e.DELETE:case e.BACKSPACE:c=this._prev_key_backspace=true;break;default:c=typeof b=="string"||b==229}if(c){this.item=undefined;this.searchTimer=setTimeout(dojo.hitch(this,"_startSearchFromInput"),1)}}},_autoCompleteText:function(a){var b=this.focusNode;dijit.selectInputText(b,b.value.length);var c=this.ignoreCase?"toLowerCase":"substr";if(a[c](0).indexOf(this.focusNode.value[c](0))==0){c=this._getCaretPos(b);if(c+1>b.value.length){b.value=
a;dijit.selectInputText(b,c)}}else{b.value=a;dijit.selectInputText(b)}},_openResultList:function(a,b){this._fetchHandle=null;if(!(this.disabled||this.readOnly||b.query[this.searchAttr]!=this._lastQuery)){var c=this.dropDown._highlighted_option&&dojo.hasClass(this.dropDown._highlighted_option,"dijitMenuItemSelected");this.dropDown.clearResultList();if(!a.length&&!this._maxOptions)this.closeDropDown();else{b._maxOptions=this._maxOptions;var d=this.dropDown.createOptions(a,b,dojo.hitch(this,"_getMenuLabelFromItem"));
this._showResultList();if(b.direction){if(1==b.direction)this.dropDown.highlightFirstOption();else-1==b.direction&&this.dropDown.highlightLastOption();c&&this._announceOption(this.dropDown.getHighlightedOption())}else this.autoComplete&&!this._prev_key_backspace&&!/^[*]+$/.test(b.query[this.searchAttr])&&this._announceOption(d[1])}}},_showResultList:function(){this.closeDropDown(true);this.displayMessage("");this.openDropDown();dijit.setWaiState(this.domNode,"expanded","true")},loadDropDown:function(){this._startSearchAll()},
isLoaded:function(){return false},closeDropDown:function(){this._abortQuery();if(this._opened){this.inherited(arguments);dijit.setWaiState(this.domNode,"expanded","false");dijit.removeWaiState(this.focusNode,"activedescendant")}},_setBlurValue:function(){var a=this.get("displayedValue"),b=this.dropDown;if(b&&(a==b._messages.previousMessage||a==b._messages.nextMessage))this._setValueAttr(this._lastValueReported,true);else if(typeof this.item=="undefined"){this.item=null;this.set("displayedValue",a)}else{this.value!=
this._lastValueReported&&dijit.form._FormValueWidget.prototype._setValueAttr.call(this,this.value,true);this._refreshState()}},_onBlur:function(){this.closeDropDown();this.inherited(arguments)},_setItemAttr:function(a,b,c){c||(c=this.store.getValue(a,this.searchAttr));var d=this._getValueField()!=this.searchAttr?this.store.getIdentity(a):c;this._set("item",a);dijit.form.ComboBox.superclass._setValueAttr.call(this,d,b,c)},_announceOption:function(a){if(a){var b;if(a==this.dropDown.nextButton||a==this.dropDown.previousButton){b=
a.innerHTML;this.item=undefined;this.value=""}else{b=this.store.getValue(a.item,this.searchAttr).toString();this.set("item",a.item,false,b)}this.focusNode.value=this.focusNode.value.substring(0,this._lastInput.length);dijit.setWaiState(this.focusNode,"activedescendant",dojo.attr(a,"id"));this._autoCompleteText(b)}},_selectOption:function(a){a&&this._announceOption(a.target);this.closeDropDown();this._setCaretPos(this.focusNode,this.focusNode.value.length);dijit.form._FormValueWidget.prototype._setValueAttr.call(this,
this.value,true)},_startSearchAll:function(){this._startSearch("")},_startSearchFromInput:function(){this._startSearch(this.focusNode.value.replace(/([\\\*\?])/g,"\\$1"))},_getQueryString:function(a){return dojo.string.substitute(this.queryExpr,[a])},_startSearch:function(a){if(!this.dropDown){var b=this.id+"_popup";this.dropDown=new (dojo.getObject(this.dropDownClass,false))({onChange:dojo.hitch(this,this._selectOption),id:b,dir:this.dir});dijit.removeWaiState(this.focusNode,"activedescendant");
dijit.setWaiState(this.textbox,"owns",b)}b=dojo.clone(this.query);this._lastInput=a;this._lastQuery=b[this.searchAttr]=this._getQueryString(a);this.searchTimer=setTimeout(dojo.hitch(this,function(c,d){this.searchTimer=null;var e={queryOptions:{ignoreCase:this.ignoreCase,deep:true},query:c,onBegin:dojo.hitch(this,"_setMaxOptions"),onComplete:dojo.hitch(this,"_openResultList"),onError:function(f){d._fetchHandle=null;console.error("dijit.form.ComboBox: "+f);d.closeDropDown()},start:0,count:this.pageSize};
dojo.mixin(e,d.fetchProperties);this._fetchHandle=d.store.fetch(e);this._nextSearch=this.dropDown.onPage=dojo.hitch(this,function(f,i){f.start+=f.count*i;f.direction=i;this._fetchHandle=this.store.fetch(f);this.focus()},this._fetchHandle)},b,this),this.searchDelay)},_setMaxOptions:function(a){this._maxOptions=a},_getValueField:function(){return this.searchAttr},constructor:function(){this.query={};this.fetchProperties={}},postMixInProperties:function(){if(!this.store){this.store=new dijit.form._ComboBoxDataStore(this.srcNodeRef);
if(!("value"in this.params)){var a=this.item=this.store.fetchSelectedItem();if(a){var b=this._getValueField();this.value=this.store.getValue(a,b)}}}this.inherited(arguments)},postCreate:function(){var a=dojo.query('label[for="'+this.id+'"]');if(a.length){a[0].id=this.id+"_label";dijit.setWaiState(this.domNode,"labelledby",a[0].id)}this.inherited(arguments)},_setHasDownArrowAttr:function(a){this.hasDownArrow=a;this._buttonNode.style.display=a?"":"none"},_getMenuLabelFromItem:function(a){a=this.labelFunc(a,
this.store);var b=this.labelType;if(this.highlightMatch!="none"&&this.labelType=="text"&&this._lastInput){a=this.doHighlight(a,this._escapeHtml(this._lastInput));b="html"}return{html:b=="html",label:a}},doHighlight:function(a,b){var c=(this.ignoreCase?"i":"")+(this.highlightMatch=="all"?"g":""),d=this.queryExpr.indexOf("${0}");b=dojo.regexp.escapeString(b);return this._escapeHtml(a).replace(RegExp((d==0?"^":"")+"("+b+")"+(d==this.queryExpr.length-4?"$":""),c),'<span class="dijitComboBoxHighlightMatch">$1</span>')},
_escapeHtml:function(a){return a=String(a).replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;")},reset:function(){this.item=null;this.inherited(arguments)},labelFunc:function(a,b){return b.getValue(a,this.labelAttr||this.searchAttr).toString()}});
dojo.declare("dijit.form._ComboBoxMenu",[dijit._Widget,dijit._Templated,dijit._CssStateMixin],{templateString:"<ul class='dijitReset dijitMenu' dojoAttachEvent='onmousedown:_onMouseDown,onmouseup:_onMouseUp,onmouseover:_onMouseOver,onmouseout:_onMouseOut' style='overflow: \"auto\"; overflow-x: \"hidden\";'><li class='dijitMenuItem dijitMenuPreviousButton' dojoAttachPoint='previousButton' role='option'></li><li class='dijitMenuItem dijitMenuNextButton' dojoAttachPoint='nextButton' role='option'></li></ul>",_messages:null,
baseClass:"dijitComboBoxMenu",postMixInProperties:function(){this.inherited(arguments);this._messages=dojo.i18n.getLocalization("dijit.form","ComboBox",this.lang)},buildRendering:function(){this.inherited(arguments);this.previousButton.innerHTML=this._messages.previousMessage;this.nextButton.innerHTML=this._messages.nextMessage},_setValueAttr:function(a){this.value=a;this.onChange(a)},onChange:function(){},onPage:function(){},onClose:function(){this._blurOptionNode()},_createOption:function(a,b){var c=
dojo.create("li",{"class":"dijitReset dijitMenuItem"+(this.isLeftToRight()?"":" dijitMenuItemRtl"),role:"option"}),d=b(a);if(d.html)c.innerHTML=d.label;else c.appendChild(dojo.doc.createTextNode(d.label));if(c.innerHTML=="")c.innerHTML="&nbsp;";c.item=a;return c},createOptions:function(a,b,c){this.previousButton.style.display=b.start==0?"none":"";dojo.attr(this.previousButton,"id",this.id+"_prev");dojo.forEach(a,function(e,f){var i=this._createOption(e,c);dojo.attr(i,"id",this.id+f);this.domNode.insertBefore(i,
this.nextButton)},this);var d=false;if(b._maxOptions&&b._maxOptions!=-1)if(b.start+b.count<b._maxOptions)d=true;else{if(b.start+b.count>b._maxOptions&&b.count==a.length)d=true}else if(b.count==a.length)d=true;this.nextButton.style.display=d?"":"none";dojo.attr(this.nextButton,"id",this.id+"_next");return this.domNode.childNodes},clearResultList:function(){for(;this.domNode.childNodes.length>2;)this.domNode.removeChild(this.domNode.childNodes[this.domNode.childNodes.length-2]);this._blurOptionNode()},
_onMouseDown:function(a){dojo.stopEvent(a)},_onMouseUp:function(a){if(!(a.target===this.domNode||!this._highlighted_option))if(a.target==this.previousButton){this._blurOptionNode();this.onPage(-1)}else if(a.target==this.nextButton){this._blurOptionNode();this.onPage(1)}else{for(a=a.target;!a.item;)a=a.parentNode;this._setValueAttr({target:a},true)}},_onMouseOver:function(a){if(a.target!==this.domNode){a=a.target;if(!(a==this.previousButton||a==this.nextButton))for(;!a.item;)a=a.parentNode;this._focusOptionNode(a)}},
_onMouseOut:function(a){a.target!==this.domNode&&this._blurOptionNode()},_focusOptionNode:function(a){if(this._highlighted_option!=a){this._blurOptionNode();this._highlighted_option=a;dojo.addClass(this._highlighted_option,"dijitMenuItemSelected")}},_blurOptionNode:function(){if(this._highlighted_option){dojo.removeClass(this._highlighted_option,"dijitMenuItemSelected");this._highlighted_option=null}},_highlightNextOption:function(){if(this.getHighlightedOption()){var a=this._highlighted_option.nextSibling;
a&&a.style.display!="none"?this._focusOptionNode(a):this.highlightFirstOption()}else{a=this.domNode.firstChild;this._focusOptionNode(a.style.display=="none"?a.nextSibling:a)}dojo.window.scrollIntoView(this._highlighted_option)},highlightFirstOption:function(){var a=this.domNode.firstChild,b=a.nextSibling;this._focusOptionNode(b.style.display=="none"?a:b);dojo.window.scrollIntoView(this._highlighted_option)},highlightLastOption:function(){this._focusOptionNode(this.domNode.lastChild.previousSibling);
dojo.window.scrollIntoView(this._highlighted_option)},_highlightPrevOption:function(){if(this.getHighlightedOption()){var a=this._highlighted_option.previousSibling;a&&a.style.display!="none"?this._focusOptionNode(a):this.highlightLastOption()}else{a=this.domNode.lastChild;this._focusOptionNode(a.style.display=="none"?a.previousSibling:a)}dojo.window.scrollIntoView(this._highlighted_option)},_page:function(a){var b=0,c=this.domNode.scrollTop,d=dojo.style(this.domNode,"height");for(this.getHighlightedOption()||
this._highlightNextOption();b<d;){if(a){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 e=this.domNode.scrollTop;b+=(e-c)*(a?-1:1);c=e}},pageUp:function(){this._page(true)},pageDown:function(){this._page(false)},getHighlightedOption:function(){var a=this._highlighted_option;
return a&&a.parentNode?a:null},handleKey:function(a){switch(a.charOrCode){case dojo.keys.DOWN_ARROW:this._highlightNextOption();return false;case dojo.keys.PAGE_DOWN:this.pageDown();return false;case dojo.keys.UP_ARROW:this._highlightPrevOption();return false;case dojo.keys.PAGE_UP:this.pageUp();return false;default:return true}}});
dojo.declare("dijit.form.ComboBox",[dijit.form.ValidationTextBox,dijit.form.ComboBoxMixin],{_setValueAttr:function(a,b,c){this._set("item",null);a||(a="");dijit.form.ValidationTextBox.prototype._setValueAttr.call(this,a,b,c)}});
dojo.declare("dijit.form._ComboBoxDataStore",null,{constructor:function(a){this.root=a;if(a.tagName!="SELECT"&&a.firstChild){a=dojo.query("select",a);if(a.length>0)a=a[0];else{this.root.innerHTML="<SELECT>"+this.root.innerHTML+"</SELECT>";a=this.root.firstChild}this.root=a}dojo.query("> option",a).forEach(function(b){b.innerHTML=dojo.trim(b.innerHTML)})},getValue:function(a,b){return b=="value"?a.value:a.innerText||a.textContent||""},isItemLoaded:function(){return true},getFeatures:function(){return{"dojo.data.api.Read":true,
"dojo.data.api.Identity":true}},_fetchItems:function(a,b){if(!a.query)a.query={};if(!a.query.name)a.query.name="";if(!a.queryOptions)a.queryOptions={};var c=dojo.data.util.filter.patternToRegExp(a.query.name,a.queryOptions.ignoreCase),d=dojo.query("> option",this.root).filter(function(e){return(e.innerText||e.textContent||"").match(c)});a.sort&&d.sort(dojo.data.util.sorter.createSortFunction(a.sort,this));b(d,a)},close:function(){},getLabel:function(a){return a.innerHTML},getIdentity:function(a){return dojo.attr(a,
"value")},fetchItemByIdentity:function(a){var b=dojo.query("> option[value='"+a.identity+"']",this.root)[0];a.onItem(b)},fetchSelectedItem:function(){var a=this.root,b=a.selectedIndex;return typeof b=="number"?dojo.query("> option:nth-child("+(b!=-1?b+1:1)+")",a)[0]:null}});dojo.extend(dijit.form._ComboBoxDataStore,dojo.data.util.simpleFetch);dojo.provide("dijit.form._FormSelectWidget");
dojo.declare("dijit.form._FormSelectWidget",dijit.form._FormValueWidget,{multiple:false,options:null,store:null,query:null,queryOptions:null,onFetch:null,sortByLabel:true,loadChildrenOnOpen:false,getOptions:function(a){var b=a,c=this.options||[],d=c.length;if(b===undefined)return c;if(dojo.isArray(b))return dojo.map(b,"return this.getOptions(item);",this);if(dojo.isObject(a))dojo.some(this.options,function(e,f){if(e===b||e.value&&e.value===b.value){b=f;return true}return false})||(b=-1);if(typeof b==
"string")for(a=0;a<d;a++)if(c[a].value===b){b=a;break}if(typeof b=="number"&&b>=0&&b<d)return this.options[b];return null},addOption:function(a){dojo.isArray(a)||(a=[a]);dojo.forEach(a,function(b){b&&dojo.isObject(b)&&this.options.push(b)},this);this._loadChildren()},removeOption:function(a){dojo.isArray(a)||(a=[a]);a=this.getOptions(a);dojo.forEach(a,function(b){if(b){this.options=dojo.filter(this.options,function(c){return c.value!==b.value||c.label!==b.label});this._removeOptionItem(b)}},this);
this._loadChildren()},updateOption:function(a){dojo.isArray(a)||(a=[a]);dojo.forEach(a,function(b){var c=this.getOptions(b),d;if(c)for(d in b)c[d]=b[d]},this);this._loadChildren()},setStore:function(a,b,c){var d=this.store;c=c||{};if(d!==a){dojo.forEach(this._notifyConnections||[],dojo.disconnect);delete this._notifyConnections;if(a&&a.getFeatures()["dojo.data.api.Notification"])this._notifyConnections=[dojo.connect(a,"onNew",this,"_onNewItem"),dojo.connect(a,"onDelete",this,"_onDeleteItem"),dojo.connect(a,
"onSet",this,"_onSetItem")];this._set("store",a)}this._onChangeActive=false;this.options&&this.options.length&&this.removeOption(this.options);if(a){this._loadingStore=true;a.fetch(dojo.delegate(c,{onComplete:function(e,f){this.sortByLabel&&!c.sort&&e.length&&e.sort(dojo.data.util.sorter.createSortFunction([{attribute:a.getLabelAttributes(e[0])[0]}],a));if(c.onFetch)e=c.onFetch.call(this,e,f);dojo.forEach(e,function(i){this._addOptionForItem(i)},this);this._loadingStore=false;this.set("value","_pendingValue"in
this?this._pendingValue:b);delete this._pendingValue;this.loadChildrenOnOpen?this._pseudoLoadChildren(e):this._loadChildren();this._fetchedWith=f;this._lastValueReported=this.multiple?[]:null;this._onChangeActive=true;this.onSetStore();this._handleOnChange(this.value)},scope:this}))}else delete this._fetchedWith;return d},_setValueAttr:function(a,b){if(this._loadingStore)this._pendingValue=a;else{var c=this.getOptions()||[];dojo.isArray(a)||(a=[a]);dojo.forEach(a,function(f,i){dojo.isObject(f)||(f+=
"");if(typeof f==="string")a[i]=dojo.filter(c,function(g){return g.value===f})[0]||{value:"",label:""}},this);a=dojo.filter(a,function(f){return f&&f.value});if(!this.multiple&&(!a[0]||!a[0].value)&&c.length)a[0]=c[0];dojo.forEach(c,function(f){f.selected=dojo.some(a,function(i){return i.value===f.value})});var d=dojo.map(a,function(f){return f.value}),e=dojo.map(a,function(f){return f.label});this._set("value",this.multiple?d:d[0]);this._setDisplay(this.multiple?e:e[0]);this._updateSelection();this._handleOnChange(this.value,
b)}},_getDisplayedValueAttr:function(){var a=this.get("value");dojo.isArray(a)||(a=[a]);a=dojo.map(this.getOptions(a),function(b){if(b&&"label"in b)return b.label;else if(b)return b.value;return null},this);return this.multiple?a:a[0]},_loadChildren:function(){if(!this._loadingStore){dojo.forEach(this._getChildren(),function(a){a.destroyRecursive()});dojo.forEach(this.options,this._addOptionItem,this);this._updateSelection()}},_updateSelection:function(){this._set("value",this._getValueFromOpts());
var a=this.value;dojo.isArray(a)||(a=[a]);a&&a[0]&&dojo.forEach(this._getChildren(),function(b){var c=dojo.some(a,function(d){return b.option&&d===b.option.value});dojo.toggleClass(b.domNode,this.baseClass+"SelectedOption",c);dijit.setWaiState(b.domNode,"selected",c)},this)},_getValueFromOpts:function(){var a=this.getOptions()||[];if(!this.multiple&&a.length){var b=dojo.filter(a,function(c){return c.selected})[0];if(b&&b.value)return b.value;else{a[0].selected=true;return a[0].value}}else if(this.multiple)return dojo.map(dojo.filter(a,
function(c){return c.selected}),function(c){return c.value})||[];return""},_onNewItem:function(a,b){if(!b||!b.parent)this._addOptionForItem(a)},_onDeleteItem:function(a){this.removeOption(this.store.getIdentity(a))},_onSetItem:function(a){this.updateOption(this._getOptionObjForItem(a))},_getOptionObjForItem:function(a){var b=this.store,c=b.getLabel(a);return{value:c?b.getIdentity(a):null,label:c,item:a}},_addOptionForItem:function(a){var b=this.store;b.isItemLoaded(a)?this.addOption(this._getOptionObjForItem(a)):
b.loadItem({item:a,onComplete:function(){this._addOptionForItem(a)},scope:this})},constructor:function(a){this._oValue=(a||{}).value||null},buildRendering:function(){this.inherited(arguments);dojo.setSelectable(this.focusNode,false)},_fillContent:function(){var a=this.options;if(!a)a=this.options=this.srcNodeRef?dojo.query(">",this.srcNodeRef).map(function(b){if(b.getAttribute("type")==="separator")return{value:"",label:"",selected:false,disabled:false};return{value:b.getAttribute("data-"+dojo._scopeName+
"-value")||b.getAttribute("value"),label:String(b.innerHTML),selected:b.getAttribute("selected")||false,disabled:b.getAttribute("disabled")||false}},this):[];if(this.value)this.multiple&&typeof this.value=="string"&&this_set("value",this.value.split(","));else this._set("value",this._getValueFromOpts())},postCreate:function(){this.inherited(arguments);this.connect(this,"onChange","_updateSelection");this.connect(this,"startup","_loadChildren");this._setValueAttr(this.value,null)},startup:function(){this.inherited(arguments);
var a=this.store,b={};dojo.forEach(["query","queryOptions","onFetch"],function(c){if(this[c])b[c]=this[c];delete this[c]},this);if(a&&a.getFeatures()["dojo.data.api.Identity"]){this.store=null;this.setStore(a,this._oValue,b)}},destroy:function(){dojo.forEach(this._notifyConnections||[],dojo.disconnect);this.inherited(arguments)},_addOptionItem:function(){},_removeOptionItem:function(){},_setDisplay:function(){},_getChildren:function(){return[]},_getSelectedOptionsAttr:function(){return this.getOptions(this.get("value"))},
_pseudoLoadChildren:function(){},onSetStore:function(){}});dojo.provide("dijit._Container");
dojo.declare("dijit._Container",null,{isContainer:true,buildRendering:function(){this.inherited(arguments);if(!this.containerNode)this.containerNode=this.domNode},addChild:function(a,b){var c=this.containerNode;if(b&&typeof b=="number"){var d=this.getChildren();if(d&&d.length>=b){c=d[b-1].domNode;b="after"}}dojo.place(a.domNode,c,b);this._started&&!a._started&&a.startup()},removeChild:function(a){if(typeof a=="number")a=this.getChildren()[a];if(a)(a=a.domNode)&&a.parentNode&&a.parentNode.removeChild(a)},
hasChildren:function(){return this.getChildren().length>0},destroyDescendants:function(a){dojo.forEach(this.getChildren(),function(b){b.destroyRecursive(a)})},_getSiblingOfChild:function(a,b){var c=a.domNode,d=b>0?"nextSibling":"previousSibling";do c=c[d];while(c&&(c.nodeType!=1||!dijit.byNode(c)));return c&&dijit.byNode(c)},getIndexOfChild:function(a){return dojo.indexOf(this.getChildren(),a)},startup:function(){if(!this._started){dojo.forEach(this.getChildren(),function(a){a.startup()});this.inherited(arguments)}}});
dojo.provide("dijit._KeyNavContainer");
dojo.declare("dijit._KeyNavContainer",dijit._Container,{tabIndex:"0",_keyNavCodes:{},connectKeyNavHandlers:function(a,b){var c=this._keyNavCodes={},d=dojo.hitch(this,this.focusPrev),e=dojo.hitch(this,this.focusNext);dojo.forEach(a,function(f){c[f]=d});dojo.forEach(b,function(f){c[f]=e});c[dojo.keys.HOME]=dojo.hitch(this,"focusFirstChild");c[dojo.keys.END]=dojo.hitch(this,"focusLastChild");this.connect(this.domNode,"onkeypress","_onContainerKeypress");this.connect(this.domNode,"onfocus","_onContainerFocus")},
startupKeyNavChildren:function(){dojo.forEach(this.getChildren(),dojo.hitch(this,"_startupChild"))},addChild:function(a){dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);this._startupChild(a)},focus:function(){this.focusFirstChild()},focusFirstChild:function(){var a=this._getFirstFocusableChild();a&&this.focusChild(a)},focusLastChild:function(){var a=this._getLastFocusableChild();a&&this.focusChild(a)},focusNext:function(){this.focusChild(this._getNextFocusableChild(this.focusedChild,
1))},focusPrev:function(){this.focusChild(this._getNextFocusableChild(this.focusedChild,-1),true)},focusChild:function(a,b){this.focusedChild&&a!==this.focusedChild&&this._onChildBlur(this.focusedChild);a.set("tabIndex",this.tabIndex);a.focus(b?"end":"start");this._set("focusedChild",a)},_startupChild:function(a){a.set("tabIndex","-1");this.connect(a,"_onFocus",function(){a.set("tabIndex",this.tabIndex)});this.connect(a,"_onBlur",function(){a.set("tabIndex","-1")})},_onContainerFocus:function(a){if(a.target===
this.domNode){this.focusFirstChild();dojo.attr(this.domNode,"tabIndex","-1")}},_onBlur:function(){this.tabIndex&&dojo.attr(this.domNode,"tabIndex",this.tabIndex);this.inherited(arguments)},_onContainerKeypress:function(a){if(!(a.ctrlKey||a.altKey)){var b=this._keyNavCodes[a.charOrCode];if(b){b();dojo.stopEvent(a)}}},_onChildBlur:function(){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1)},_getLastFocusableChild:function(){return this._getNextFocusableChild(null,-1)},
_getNextFocusableChild:function(a,b){if(a)a=this._getSiblingOfChild(a,b);for(var c=this.getChildren(),d=0;d<c.length;d++){a||(a=c[b>0?0:c.length-1]);if(a.isFocusable())return a;a=this._getSiblingOfChild(a,b)}return null}});dojo.provide("dijit._Contained");
dojo.declare("dijit._Contained",null,{getParent:function(){var a=dijit.getEnclosingWidget(this.domNode.parentNode);return a&&a.isContainer?a:null},_getSibling:function(a){var b=this.domNode;do b=b[a+"Sibling"];while(b&&b.nodeType!=1);return b&&dijit.byNode(b)},getPreviousSibling:function(){return this._getSibling("previous")},getNextSibling:function(){return this._getSibling("next")},getIndexInParent:function(){var a=this.getParent();if(!a||!a.getIndexOfChild)return-1;return a.getIndexOfChild(this)}});
dojo.provide("dijit.MenuItem");
dojo.declare("dijit.MenuItem",[dijit._Widget,dijit._Templated,dijit._Contained,dijit._CssStateMixin],{templateString:dojo.cache("dijit","templates/MenuItem.html",'<tr class="dijitReset dijitMenuItem" dojoAttachPoint="focusNode" role="menuitem" tabIndex="-1"\n\t\tdojoAttachEvent="onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick">\n\t<td class="dijitReset dijitMenuItemIconCell" role="presentation">\n\t\t<img src="${_blankGif}" alt="" class="dijitIcon dijitMenuItemIcon" dojoAttachPoint="iconNode"/>\n\t</td>\n\t<td class="dijitReset dijitMenuItemLabel" colspan="2" dojoAttachPoint="containerNode"></td>\n\t<td class="dijitReset dijitMenuItemAccelKey" style="display: none" dojoAttachPoint="accelKeyNode"></td>\n\t<td class="dijitReset dijitMenuArrowCell" role="presentation">\n\t\t<div dojoAttachPoint="arrowWrapper" style="visibility: hidden">\n\t\t\t<img src="${_blankGif}" alt="" class="dijitMenuExpand"/>\n\t\t\t<span class="dijitMenuExpandA11y">+</span>\n\t\t</div>\n\t</td>\n</tr>\n'),attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,
{label:{node:"containerNode",type:"innerHTML"},iconClass:{node:"iconNode",type:"class"}}),baseClass:"dijitMenuItem",label:"",iconClass:"",accelKey:"",disabled:false,_fillContent:function(a){a&&!("label"in this.params)&&this.set("label",a.innerHTML)},buildRendering:function(){this.inherited(arguments);var a=this.id+"_text";dojo.attr(this.containerNode,"id",a);if(this.accelKeyNode){dojo.attr(this.accelKeyNode,"id",this.id+"_accel");a+=" "+this.id+"_accel"}dijit.setWaiState(this.domNode,"labelledby",
a);dojo.setSelectable(this.domNode,false)},_onHover:function(){this.getParent().onItemHover(this)},_onUnhover:function(){this.getParent().onItemUnhover(this);this._set("hovering",false)},_onClick:function(a){this.getParent().onItemClick(this,a);dojo.stopEvent(a)},onClick:function(){},focus:function(){try{dojo.isIE==8&&this.containerNode.focus();dijit.focus(this.focusNode)}catch(a){}},_onFocus:function(){this._setSelected(true);this.getParent()._onItemFocus(this);this.inherited(arguments)},_setSelected:function(a){dojo.toggleClass(this.domNode,
"dijitMenuItemSelected",a)},setLabel:function(a){dojo.deprecated("dijit.MenuItem.setLabel() is deprecated.  Use set('label', ...) instead.","","2.0");this.set("label",a)},setDisabled:function(a){dojo.deprecated("dijit.Menu.setDisabled() is deprecated.  Use set('disabled', bool) instead.","","2.0");this.set("disabled",a)},_setDisabledAttr:function(a){dijit.setWaiState(this.focusNode,"disabled",a?"true":"false");this._set("disabled",a)},_setAccelKeyAttr:function(a){this.accelKeyNode.style.display=a?
"":"none";this.accelKeyNode.innerHTML=a;dojo.attr(this.containerNode,"colSpan",a?"1":"2");this._set("accelKey",a)}});dojo.provide("dijit.PopupMenuItem");
dojo.declare("dijit.PopupMenuItem",dijit.MenuItem,{_fillContent:function(){if(this.srcNodeRef){var a=dojo.query("*",this.srcNodeRef);dijit.PopupMenuItem.superclass._fillContent.call(this,a[0]);this.dropDownContainer=this.srcNodeRef}},startup:function(){if(!this._started){this.inherited(arguments);if(!this.popup){var a=dojo.query("[widgetId]",this.dropDownContainer)[0];this.popup=dijit.byNode(a)}dojo.body().appendChild(this.popup.domNode);this.popup.startup();this.popup.domNode.style.display="none";
this.arrowWrapper&&dojo.style(this.arrowWrapper,"visibility","");dijit.setWaiState(this.focusNode,"haspopup","true")}},destroyDescendants:function(){if(this.popup){this.popup._destroyed||this.popup.destroyRecursive();delete this.popup}this.inherited(arguments)}});dojo.provide("dijit.CheckedMenuItem");
dojo.declare("dijit.CheckedMenuItem",dijit.MenuItem,{templateString:dojo.cache("dijit","templates/CheckedMenuItem.html",'<tr class="dijitReset dijitMenuItem" dojoAttachPoint="focusNode" role="menuitemcheckbox" tabIndex="-1"\n\t\tdojoAttachEvent="onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick">\n\t<td class="dijitReset dijitMenuItemIconCell" role="presentation">\n\t\t<img src="${_blankGif}" alt="" class="dijitMenuItemIcon dijitCheckedMenuItemIcon" dojoAttachPoint="iconNode"/>\n\t\t<span class="dijitCheckedMenuItemIconChar">&#10003;</span>\n\t</td>\n\t<td class="dijitReset dijitMenuItemLabel" colspan="2" dojoAttachPoint="containerNode,labelNode"></td>\n\t<td class="dijitReset dijitMenuItemAccelKey" style="display: none" dojoAttachPoint="accelKeyNode"></td>\n\t<td class="dijitReset dijitMenuArrowCell" role="presentation">&nbsp;</td>\n</tr>\n'),checked:false,
_setCheckedAttr:function(a){dojo.toggleClass(this.domNode,"dijitCheckedMenuItemChecked",a);dijit.setWaiState(this.domNode,"checked",a);this._set("checked",a)},onChange:function(){},_onClick:function(){if(!this.disabled){this.set("checked",!this.checked);this.onChange(this.checked)}this.inherited(arguments)}});dojo.provide("dijit.MenuSeparator");
dojo.declare("dijit.MenuSeparator",[dijit._Widget,dijit._Templated,dijit._Contained],{templateString:dojo.cache("dijit","templates/MenuSeparator.html",'<tr class="dijitMenuSeparator">\n\t<td class="dijitMenuSeparatorIconCell">\n\t\t<div class="dijitMenuSeparatorTop"></div>\n\t\t<div class="dijitMenuSeparatorBottom"></div>\n\t</td>\n\t<td colspan="3" class="dijitMenuSeparatorLabelCell">\n\t\t<div class="dijitMenuSeparatorTop dijitMenuSeparatorLabel"></div>\n\t\t<div class="dijitMenuSeparatorBottom"></div>\n\t</td>\n</tr>\n'),buildRendering:function(){this.inherited(arguments);
dojo.setSelectable(this.domNode,false)},isFocusable:function(){return false}});dojo.provide("dijit.Menu");
dojo.declare("dijit._MenuBase",[dijit._Widget,dijit._Templated,dijit._KeyNavContainer],{parentMenu:null,popupDelay:500,startup:function(){if(!this._started){dojo.forEach(this.getChildren(),function(a){a.startup()});this.startupKeyNavChildren();this.inherited(arguments)}},onExecute:function(){},onCancel:function(){},_moveToPopup:function(a){if(this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled)this.focusedChild._onClick(a);else(a=this._getTopMenu())&&a._isMenuBar&&a.focusNext()},
_onPopupHover:function(){if(this.currentPopup&&this.currentPopup._pendingClose_timer){var a=this.currentPopup.parentMenu;a.focusedChild&&a.focusedChild._setSelected(false);a.focusedChild=this.currentPopup.from_item;a.focusedChild._setSelected(true);this._stopPendingCloseTimer(this.currentPopup)}},onItemHover:function(a){if(this.isActive){this.focusChild(a);if(this.focusedChild.popup&&!this.focusedChild.disabled&&!this.hover_timer)this.hover_timer=setTimeout(dojo.hitch(this,"_openPopup"),this.popupDelay)}this.focusedChild&&
this.focusChild(a);this._hoveredChild=a},_onChildBlur:function(a){this._stopPopupTimer();a._setSelected(false);var b=a.popup;if(b){this._stopPendingCloseTimer(b);b._pendingClose_timer=setTimeout(function(){b._pendingClose_timer=null;if(b.parentMenu)b.parentMenu.currentPopup=null;dijit.popup.close(b)},this.popupDelay)}},onItemUnhover:function(a){this.isActive&&this._stopPopupTimer();if(this._hoveredChild==a)this._hoveredChild=null},_stopPopupTimer:function(){if(this.hover_timer){clearTimeout(this.hover_timer);
this.hover_timer=null}},_stopPendingCloseTimer:function(a){if(a._pendingClose_timer){clearTimeout(a._pendingClose_timer);a._pendingClose_timer=null}},_stopFocusTimer:function(){if(this._focus_timer){clearTimeout(this._focus_timer);this._focus_timer=null}},_getTopMenu:function(){for(var a=this;a.parentMenu;a=a.parentMenu);return a},onItemClick:function(a,b){typeof this.isShowingNow=="undefined"&&this._markActive();this.focusChild(a);if(a.disabled)return false;if(a.popup)this._openPopup();else{this.onExecute();
a.onClick(b)}},_openPopup:function(){this._stopPopupTimer();var a=this.focusedChild;if(a){var b=a.popup;if(!b.isShowingNow){if(this.currentPopup){this._stopPendingCloseTimer(this.currentPopup);dijit.popup.close(this.currentPopup)}b.parentMenu=this;b.from_item=a;var c=this;dijit.popup.open({parent:this,popup:b,around:a.domNode,orient:this._orient||(this.isLeftToRight()?{TR:"TL",TL:"TR",BR:"BL",BL:"BR"}:{TL:"TR",TR:"TL",BL:"BR",BR:"BL"}),onCancel:function(){c.focusChild(a);c._cleanUp();a._setSelected(true);
c.focusedChild=a},onExecute:dojo.hitch(this,"_cleanUp")});this.currentPopup=b;b.connect(b.domNode,"onmouseenter",dojo.hitch(c,"_onPopupHover"));if(b.focus)b._focus_timer=setTimeout(dojo.hitch(b,function(){this._focus_timer=null;this.focus()}),0)}}},_markActive:function(){this.isActive=true;dojo.replaceClass(this.domNode,"dijitMenuActive","dijitMenuPassive")},onOpen:function(){this.isShowingNow=true;this._markActive()},_markInactive:function(){this.isActive=false;dojo.replaceClass(this.domNode,"dijitMenuPassive",
"dijitMenuActive")},onClose:function(){this._stopFocusTimer();this._markInactive();this.isShowingNow=false;this.parentMenu=null},_closeChild:function(){this._stopPopupTimer();if(this.currentPopup){dijit._curFocus&&dojo.isDescendant(dijit._curFocus,this.currentPopup.domNode)&&this.focusedChild.focusNode.focus();dijit.popup.close(this.currentPopup);this.currentPopup=null}if(this.focusedChild){this.focusedChild._setSelected(false);this.focusedChild._onUnhover();this.focusedChild=null}},_onItemFocus:function(a){this._hoveredChild&&
this._hoveredChild!=a&&this._hoveredChild._onUnhover()},_onBlur:function(){this._cleanUp();this.inherited(arguments)},_cleanUp:function(){this._closeChild();typeof this.isShowingNow=="undefined"&&this._markInactive()}});
dojo.declare("dijit.Menu",dijit._MenuBase,{constructor:function(){this._bindings=[]},templateString:dojo.cache("dijit","templates/Menu.html",'<table class="dijit dijitMenu dijitMenuPassive dijitReset dijitMenuTable" role="menu" tabIndex="${tabIndex}" dojoAttachEvent="onkeypress:_onKeyPress" cellspacing="0">\n\t<tbody class="dijitReset" dojoAttachPoint="containerNode"></tbody>\n</table>\n'),baseClass:"dijitMenu",targetNodeIds:[],contextMenuForWindow:false,leftClickToOpen:false,refocus:true,postCreate:function(){this.contextMenuForWindow?
this.bindDomNode(dojo.body()):dojo.forEach(this.targetNodeIds,this.bindDomNode,this);var a=dojo.keys,b=this.isLeftToRight();this._openSubMenuKey=b?a.RIGHT_ARROW:a.LEFT_ARROW;this._closeSubMenuKey=b?a.LEFT_ARROW:a.RIGHT_ARROW;this.connectKeyNavHandlers([a.UP_ARROW],[a.DOWN_ARROW])},_onKeyPress:function(a){if(!(a.ctrlKey||a.altKey))switch(a.charOrCode){case this._openSubMenuKey:this._moveToPopup(a);dojo.stopEvent(a);break;case this._closeSubMenuKey:if(this.parentMenu)if(this.parentMenu._isMenuBar)this.parentMenu.focusPrev();
else this.onCancel(false);else dojo.stopEvent(a)}},_iframeContentWindow:function(a){return dojo.window.get(this._iframeContentDocument(a))||this._iframeContentDocument(a).__parent__||a.name&&dojo.doc.frames[a.name]||null},_iframeContentDocument:function(a){return a.contentDocument||a.contentWindow&&a.contentWindow.document||a.name&&dojo.doc.frames[a.name]&&dojo.doc.frames[a.name].document||null},bindDomNode:function(a){a=dojo.byId(a);var b;if(a.tagName.toLowerCase()=="iframe"){var c=a,d=this._iframeContentWindow(c);
b=dojo.withGlobal(d,dojo.body)}else b=a==dojo.body()?dojo.doc.documentElement:a;var e={node:a,iframe:c};dojo.attr(a,"_dijitMenu"+this.id,this._bindings.push(e));var f=dojo.hitch(this,function(i){return[dojo.connect(i,this.leftClickToOpen?"onclick":"oncontextmenu",this,function(g){dojo.stopEvent(g);this._scheduleOpen(g.target,c,{x:g.pageX,y:g.pageY})}),dojo.connect(i,"onkeydown",this,function(g){if(g.shiftKey&&g.keyCode==dojo.keys.F10){dojo.stopEvent(g);this._scheduleOpen(g.target,c)}})]});e.connects=
b?f(b):[];if(c){e.onloadHandler=dojo.hitch(this,function(){var i=this._iframeContentWindow(c);b=dojo.withGlobal(i,dojo.body);e.connects=f(b)});c.addEventListener?c.addEventListener("load",e.onloadHandler,false):c.attachEvent("onload",e.onloadHandler)}},unBindDomNode:function(a){var b;try{b=dojo.byId(a)}catch(c){return}a="_dijitMenu"+this.id;if(b&&dojo.hasAttr(b,a)){var d=dojo.attr(b,a)-1,e=this._bindings[d];dojo.forEach(e.connects,dojo.disconnect);var f=e.iframe;if(f)f.removeEventListener?f.removeEventListener("load",
e.onloadHandler,false):f.detachEvent("onload",e.onloadHandler);dojo.removeAttr(b,a);delete this._bindings[d]}},_scheduleOpen:function(a,b,c){if(!this._openTimer)this._openTimer=setTimeout(dojo.hitch(this,function(){delete this._openTimer;this._openMyself({target:a,iframe:b,coords:c})}),1)},_openMyself:function(a){function b(){h.refocus&&dijit.focus(j);dijit.popup.close(h)}var c=a.target,d=a.iframe;if(a=a.coords){if(d){c=dojo.position(d,true);var e=this._iframeContentWindow(d);e=dojo.withGlobal(e,
"_docScroll",dojo);var f=dojo.getComputedStyle(d),i=dojo._toPixelValue,g=(dojo.isIE&&dojo.isQuirks?0:i(d,f.paddingLeft))+(dojo.isIE&&dojo.isQuirks?i(d,f.borderLeftWidth):0);d=(dojo.isIE&&dojo.isQuirks?0:i(d,f.paddingTop))+(dojo.isIE&&dojo.isQuirks?i(d,f.borderTopWidth):0);a.x+=c.x+g-e.x;a.y+=c.y+d-e.y}}else{a=dojo.position(c,true);a.x+=10;a.y+=10}var h=this,j=dijit.getFocus(this);dijit.popup.open({popup:this,x:a.x,y:a.y,onExecute:b,onCancel:b,orient:this.isLeftToRight()?"L":"R"});this.focus();this._onBlur=
function(){this.inherited("_onBlur",arguments);dijit.popup.close(this)}},uninitialize:function(){dojo.forEach(this._bindings,function(a){a&&this.unBindDomNode(a.node)},this);this.inherited(arguments)}});dojo.provide("dijit.form.Select");
dojo.declare("dijit.form._SelectMenu",dijit.Menu,{buildRendering:function(){this.inherited(arguments);var a=this.menuTableNode=this.domNode,b=this.domNode=dojo.create("div",{style:{overflowX:"hidden",overflowY:"scroll"}});a.parentNode&&a.parentNode.replaceChild(b,a);dojo.removeClass(a,"dijitMenuTable");b.className=a.className+" dijitSelectMenu";a.className="dijitReset dijitMenuTable";dijit.setWaiRole(a,"listbox");dijit.setWaiRole(b,"presentation");b.appendChild(a)},postCreate:function(){this.inherited(arguments);
this.connect(this.domNode,"onmousemove",dojo.stopEvent)},resize:function(a){if(a){dojo.marginBox(this.domNode,a);if("w"in a)this.menuTableNode.style.width="100%"}}});
dojo.declare("dijit.form.Select",[dijit.form._FormSelectWidget,dijit._HasDropDown],{baseClass:"dijitSelect",templateString:dojo.cache("dijit.form","templates/Select.html",'<table class="dijit dijitReset dijitInline dijitLeft"\n\tdojoAttachPoint="_buttonNode,tableNode,focusNode" cellspacing=\'0\' cellpadding=\'0\'\n\trole="combobox" aria-haspopup="true"\n\t><tbody role="presentation"><tr role="presentation"\n\t\t><td class="dijitReset dijitStretch dijitButtonContents dijitButtonNode" role="presentation"\n\t\t\t><span class="dijitReset dijitInline dijitButtonText"  dojoAttachPoint="containerNode,_popupStateNode"></span\n\t\t\t><input type="hidden" ${!nameAttrSetting} dojoAttachPoint="valueNode" value="${value}" aria-hidden="true"\n\t\t/></td><td class="dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton"\n\t\t\t\tdojoAttachPoint="titleNode" role="presentation"\n\t\t\t><div class="dijitReset dijitArrowButtonInner" role="presentation"></div\n\t\t\t><div class="dijitReset dijitArrowButtonChar" role="presentation">&#9660;</div\n\t\t></td\n\t></tr></tbody\n></table>\n'),attributeMap:dojo.mixin(dojo.clone(dijit.form._FormSelectWidget.prototype.attributeMap),
{style:"tableNode"}),required:false,state:"",message:"",tooltipPosition:[],emptyLabel:"&nbsp;",_isLoaded:false,_childrenLoaded:false,_fillContent:function(){this.inherited(arguments);if(this.options.length&&!this.value&&this.srcNodeRef){var a=this.srcNodeRef.selectedIndex||0;this.value=this.options[a>=0?a:0].value}this.dropDown=new dijit.form._SelectMenu({id:this.id+"_menu"});dojo.addClass(this.dropDown.domNode,this.baseClass+"Menu")},_getMenuItemForOption:function(a){if(!a.value&&!a.label)return new dijit.MenuSeparator;
else{var b=dojo.hitch(this,"_setValueAttr",a);a=new dijit.MenuItem({option:a,label:a.label||this.emptyLabel,onClick:b,disabled:a.disabled||false});dijit.setWaiRole(a.focusNode,"listitem");return a}},_addOptionItem:function(a){this.dropDown&&this.dropDown.addChild(this._getMenuItemForOption(a))},_getChildren:function(){if(!this.dropDown)return[];return this.dropDown.getChildren()},_loadChildren:function(a){if(a===true){this.dropDown&&delete this.dropDown.focusedChild;if(this.options.length)this.inherited(arguments);
else{dojo.forEach(this._getChildren(),function(b){b.destroyRecursive()});this.dropDown.addChild(new dijit.MenuItem({label:"&nbsp;"}))}}else this._updateSelection();this._isLoaded=false;this._childrenLoaded=true;this._loadingStore||this._setValueAttr(this.value)},_setValueAttr:function(){this.inherited(arguments);dojo.attr(this.valueNode,"value",this.get("value"))},_setDisplay:function(a){a=a||this.emptyLabel;this.containerNode.innerHTML='<span class="dijitReset dijitInline '+this.baseClass+'Label">'+
a+"</span>";dijit.setWaiState(this.focusNode,"valuetext",a)},validate:function(a){a=this.isValid(a);this._set("state",a?"":"Error");dijit.setWaiState(this.focusNode,"invalid",a?"false":"true");var b=a?"":this._missingMsg;if(this.message!==b){this._set("message",b);dijit.hideTooltip(this.domNode);b&&dijit.showTooltip(b,this.domNode,this.tooltipPosition,!this.isLeftToRight())}return a},isValid:function(){return!this.required||this.value===0||!/^\s*$/.test(this.value||"")},reset:function(){this.inherited(arguments);
dijit.hideTooltip(this.domNode);this._set("state","");this._set("message","")},postMixInProperties:function(){this.inherited(arguments);this._missingMsg=dojo.i18n.getLocalization("dijit.form","validate",this.lang).missingMessage},postCreate:function(){this.inherited(arguments);this.connect(this.domNode,"onmousemove",dojo.stopEvent)},_setStyleAttr:function(){this.inherited(arguments);dojo.toggleClass(this.domNode,this.baseClass+"FixedWidth",!!this.tableNode.style.width)},isLoaded:function(){return this._isLoaded},
loadDropDown:function(a){this._loadChildren(true);this._isLoaded=true;a()},closeDropDown:function(){this.inherited(arguments);if(this.dropDown&&this.dropDown.menuTableNode)this.dropDown.menuTableNode.style.width=""},uninitialize:function(a){if(this.dropDown&&!this.dropDown._destroyed){this.dropDown.destroyRecursive(a);delete this.dropDown}this.inherited(arguments)}});dojo.provide("dijit.layout._LayoutWidget");
dojo.declare("dijit.layout._LayoutWidget",[dijit._Widget,dijit._Container,dijit._Contained],{baseClass:"dijitLayoutContainer",isLayoutContainer:true,buildRendering:function(){this.inherited(arguments);dojo.addClass(this.domNode,"dijitContainer")},startup:function(){if(!this._started){this.inherited(arguments);var a=this.getParent&&this.getParent();if(!(a&&a.isLayoutContainer)){this.resize();this.connect(dojo.isIE?this.domNode:dojo.global,"onresize",function(){this.resize()})}}},resize:function(a,
b){var c=this.domNode;if(a){dojo.marginBox(c,a);if(a.t)c.style.top=a.t+"px";if(a.l)c.style.left=a.l+"px"}var d=b||{};dojo.mixin(d,a||{});if(!("h"in d)||!("w"in d))d=dojo.mixin(dojo.marginBox(c),d);var e=dojo.getComputedStyle(c),f=dojo._getMarginExtents(c,e),i=dojo._getBorderExtents(c,e);d=this._borderBox={w:d.w-(f.w+i.w),h:d.h-(f.h+i.h)};f=dojo._getPadExtents(c,e);this._contentBox={l:dojo._toPixelValue(c,e.paddingLeft),t:dojo._toPixelValue(c,e.paddingTop),w:d.w-f.w,h:d.h-f.h};this.layout()},layout:function(){},
_setupChild:function(a){dojo.addClass(a.domNode,this.baseClass+"-child "+(a.baseClass?this.baseClass+"-"+a.baseClass:""))},addChild:function(a){this.inherited(arguments);this._started&&this._setupChild(a)},removeChild:function(a){dojo.removeClass(a.domNode,this.baseClass+"-child"+(a.baseClass?" "+this.baseClass+"-"+a.baseClass:""));this.inherited(arguments)}});
dijit.layout.marginBox2contentBox=function(a,b){var c=dojo.getComputedStyle(a),d=dojo._getMarginExtents(a,c),e=dojo._getPadBorderExtents(a,c);return{l:dojo._toPixelValue(a,c.paddingLeft),t:dojo._toPixelValue(a,c.paddingTop),w:b.w-(d.w+e.w),h:b.h-(d.h+e.h)}};
(function(){var a=function(b,c){var d=b.resize?b.resize(c):dojo.marginBox(b.domNode,c);if(d)dojo.mixin(b,d);else{dojo.mixin(b,dojo.marginBox(b.domNode));dojo.mixin(b,c)}};dijit.layout.layoutChildren=function(b,c,d,e,f){c=dojo.mixin({},c);dojo.addClass(b,"dijitLayoutContainer");d=dojo.filter(d,function(i){return i.region!="center"&&i.layoutAlign!="client"}).concat(dojo.filter(d,function(i){return i.region=="center"||i.layoutAlign=="client"}));dojo.forEach(d,function(i){var g=i.domNode,h=i.region||
i.layoutAlign,j=g.style;j.left=c.l+"px";j.top=c.t+"px";j.position="absolute";dojo.addClass(g,"dijitAlign"+(h.substring(0,1).toUpperCase()+h.substring(1)));g={};if(e&&e==i.id)g[i.region=="top"||i.region=="bottom"?"h":"w"]=f;if(h=="top"||h=="bottom"){g.w=c.w;a(i,g);c.h-=i.h;if(h=="top")c.t+=i.h;else j.top=c.t+c.h+"px"}else if(h=="left"||h=="right"){g.h=c.h;a(i,g);c.w-=i.w;if(h=="left")c.l+=i.w;else j.left=c.l+c.w+"px"}else if(h=="client"||h=="center")a(i,c)})}})();dojo.provide("dijit.layout._ContentPaneResizeMixin");
dojo.declare("dijit.layout._ContentPaneResizeMixin",null,{doLayout:true,isContainer:true,isLayoutContainer:true,_startChildren:function(){dojo.forEach(this.getChildren(),function(a){a.startup();a._started=true})},startup:function(){if(!this._started){var a=dijit._Contained.prototype.getParent.call(this);this._childOfLayoutWidget=a&&a.isLayoutContainer;this._needLayout=!this._childOfLayoutWidget;this.inherited(arguments);this._startChildren();this._isShown()&&this._onShow();this._childOfLayoutWidget||
this.connect(dojo.isIE?this.domNode:dojo.global,"onresize",function(){this._needLayout=!this._childOfLayoutWidget;this.resize()})}},_checkIfSingleChild:function(){var a=dojo.query("> *",this.containerNode).filter(function(d){return d.tagName!=="SCRIPT"}),b=a.filter(function(d){return dojo.hasAttr(d,"data-dojo-type")||dojo.hasAttr(d,"dojoType")||dojo.hasAttr(d,"widgetId")}),c=dojo.filter(b.map(dijit.byNode),function(d){return d&&d.domNode&&d.resize});if(a.length==b.length&&c.length==1)this._singleChild=
c[0];else delete this._singleChild;dojo.toggleClass(this.containerNode,this.baseClass+"SingleChild",!!this._singleChild)},resize:function(a,b){!this._wasShown&&this.open!==false&&this._onShow();this._resizeCalled=true;this._scheduleLayout(a,b)},_scheduleLayout:function(a,b){if(this._isShown())this._layout(a,b);else{this._needLayout=true;this._changeSize=a;this._resultSize=b}},_layout:function(a,b){a&&dojo.marginBox(this.domNode,a);var c=this.containerNode;if(c===this.domNode){var d=b||{};dojo.mixin(d,
a||{});if(!("h"in d)||!("w"in d))d=dojo.mixin(dojo.marginBox(c),d);this._contentBox=dijit.layout.marginBox2contentBox(c,d)}else this._contentBox=dojo.contentBox(c);this._layoutChildren();delete this._needLayout},_layoutChildren:function(){this.doLayout&&this._checkIfSingleChild();if(this._singleChild&&this._singleChild.resize){var a=this._contentBox||dojo.contentBox(this.containerNode);this._singleChild.resize({w:a.w,h:a.h})}else dojo.forEach(this.getChildren(),function(b){b.resize&&b.resize()})},
_isShown:function(){if(this._childOfLayoutWidget){if(this._resizeCalled&&"open"in this)return this.open;return this._resizeCalled}else if("open"in this)return this.open;else{var a=this.domNode,b=this.domNode.parentNode;return a.style.display!="none"&&a.style.visibility!="hidden"&&!dojo.hasClass(a,"dijitHidden")&&b&&b.style&&b.style.display!="none"}},_onShow:function(){this._needLayout&&this._layout(this._changeSize,this._resultSize);this.inherited(arguments);this._wasShown=true}});dojo.provide("dojo.html");
dojo.getObject("html",true,dojo);
(function(){var a=0,b=dojo;dojo.html._secureForInnerHtml=function(c){return c.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"")};dojo.html._emptyNode=dojo.empty;dojo.html._setNodeContent=function(c,d){b.empty(c);if(d){if(typeof d=="string")d=b._toDom(d,c.ownerDocument);if(!d.nodeType&&b.isArrayLike(d))for(var e=d.length,f=0;f<d.length;f=e==d.length?f+1:0)b.place(d[f],c,"last");else b.place(d,c,"last")}return c};dojo.declare("dojo.html._ContentSetter",null,{node:"",content:"",
id:"",cleanContent:false,extractContent:false,parseContent:false,parserScope:dojo._scopeName,startup:true,constructor:function(c,d){dojo.mixin(this,c||{});d=this.node=dojo.byId(this.node||d);if(!this.id)this.id=["Setter",d?d.id||d.tagName:"",a++].join("_")},set:function(c,d){if(undefined!==c)this.content=c;d&&this._mixin(d);this.onBegin();this.setContent();this.onEnd();return this.node},setContent:function(){var c=this.node;if(!c)throw Error(this.declaredClass+": setContent given no node");try{c=
dojo.html._setNodeContent(c,this.content)}catch(d){var e=this.onContentError(d);try{c.innerHTML=e}catch(f){console.error("Fatal "+this.declaredClass+".setContent could not change content due to "+f.message,f)}}this.node=c},empty:function(){if(this.parseResults&&this.parseResults.length){dojo.forEach(this.parseResults,function(c){c.destroy&&c.destroy()});delete this.parseResults}dojo.html._emptyNode(this.node)},onBegin:function(){var c=this.content;if(dojo.isString(c)){if(this.cleanContent)c=dojo.html._secureForInnerHtml(c);
if(this.extractContent){var d=c.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(d)c=d[1]}}this.empty();this.content=c;return this.node},onEnd:function(){this.parseContent&&this._parse();return this.node},tearDown:function(){delete this.parseResults;delete this.node;delete this.content},onContentError:function(c){return"Error occured setting content: "+c},_mixin:function(c){var d={},e;for(e in c)e in d||(this[e]=c[e])},_parse:function(){var c=this.node;try{var d={};dojo.forEach(["dir","lang","textDir"],
function(f){if(this[f])d[f]=this[f]},this);this.parseResults=dojo.parser.parse({rootNode:c,noStart:!this.startup,inherited:d,scope:this.parserScope})}catch(e){this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id)}},_onError:function(c,d,e){c=this["on"+c+"Error"].call(this,d);if(e)console.error(e,d);else c&&dojo.html._setNodeContent(this.node,c,true)}});dojo.html.set=function(c,d,e){if(undefined==d){console.warn("dojo.html.set: no cont argument provided, using empty string");d=""}return e?
(new dojo.html._ContentSetter(dojo.mixin(e,{content:d,node:c}))).set():dojo.html._setNodeContent(c,d,true)}})();dojo.provide("dijit.layout.ContentPane");
dojo.declare("dijit.layout.ContentPane",[dijit._Widget,dijit.layout._ContentPaneResizeMixin],{href:"",extractContent:false,parseOnLoad:true,parserScope:dojo._scopeName,preventCache:false,preload:false,refreshOnShow:false,loadingMessage:"<span class='dijitContentPaneLoading'>${loadingState}</span>",errorMessage:"<span class='dijitContentPaneError'>${errorState}</span>",isLoaded:false,baseClass:"dijitContentPane",ioArgs:{},onLoadDeferred:null,attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,
{title:[]}),stopParser:true,template:false,create:function(a,b){if((!a||!a.template)&&b&&!("href"in a)&&!("content"in a)){var c=dojo.doc.createDocumentFragment();for(b=dojo.byId(b);b.firstChild;)c.appendChild(b.firstChild);a=dojo.delegate(a,{content:c})}this.inherited(arguments,[a,b])},postMixInProperties:function(){this.inherited(arguments);var a=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=dojo.string.substitute(this.loadingMessage,a);this.errorMessage=dojo.string.substitute(this.errorMessage,
a)},buildRendering:function(){this.inherited(arguments);if(!this.containerNode)this.containerNode=this.domNode;this.domNode.title="";dojo.attr(this.domNode,"role")||dijit.setWaiRole(this.domNode,"group")},_startChildren:function(){this.inherited(arguments);this._contentSetter&&dojo.forEach(this._contentSetter.parseResults,function(a){if(!a._started&&!a._destroyed&&dojo.isFunction(a.startup)){a.startup();a._started=true}},this)},setHref:function(a){dojo.deprecated("dijit.layout.ContentPane.setHref() is deprecated. Use set('href', ...) instead.",
"","2.0");return this.set("href",a)},_setHrefAttr:function(a){this.cancel();this.onLoadDeferred=new dojo.Deferred(dojo.hitch(this,"cancel"));this.onLoadDeferred.addCallback(dojo.hitch(this,"onLoad"));this._set("href",a);if(this.preload||this._created&&this._isShown())this._load();else this._hrefChanged=true;return this.onLoadDeferred},setContent:function(a){dojo.deprecated("dijit.layout.ContentPane.setContent() is deprecated.  Use set('content', ...) instead.","","2.0");this.set("content",a)},_setContentAttr:function(a){this._set("href",
"");this.cancel();this.onLoadDeferred=new dojo.Deferred(dojo.hitch(this,"cancel"));this._created&&this.onLoadDeferred.addCallback(dojo.hitch(this,"onLoad"));this._setContent(a||"");this._isDownloaded=false;return this.onLoadDeferred},_getContentAttr:function(){return this.containerNode.innerHTML},cancel:function(){this._xhrDfd&&this._xhrDfd.fired==-1&&this._xhrDfd.cancel();delete this._xhrDfd;this.onLoadDeferred=null},uninitialize:function(){this._beingDestroyed&&this.cancel();this.inherited(arguments)},
destroyRecursive:function(){this._beingDestroyed||this.inherited(arguments)},_onShow:function(){this.inherited(arguments);if(this.href)if(!this._xhrDfd&&(!this.isLoaded||this._hrefChanged||this.refreshOnShow))return this.refresh()},refresh:function(){this.cancel();this.onLoadDeferred=new dojo.Deferred(dojo.hitch(this,"cancel"));this.onLoadDeferred.addCallback(dojo.hitch(this,"onLoad"));this._load();return this.onLoadDeferred},_load:function(){this._setContent(this.onDownloadStart(),true);var a=this,
b={preventCache:this.preventCache||this.refreshOnShow,url:this.href,handleAs:"text"};dojo.isObject(this.ioArgs)&&dojo.mixin(b,this.ioArgs);var c=this._xhrDfd=(this.ioMethod||dojo.xhrGet)(b);c.addCallback(function(d){try{a._isDownloaded=true;a._setContent(d,false);a.onDownloadEnd()}catch(e){a._onError("Content",e)}delete a._xhrDfd;return d});c.addErrback(function(d){c.canceled||a._onError("Download",d);delete a._xhrDfd;return d});delete this._hrefChanged},_onLoadHandler:function(a){this._set("isLoaded",
true);try{this.onLoadDeferred.callback(a)}catch(b){console.error("Error "+this.widgetId+" running custom onLoad code: "+b.message)}},_onUnloadHandler:function(){this._set("isLoaded",false);try{this.onUnload()}catch(a){console.error("Error "+this.widgetId+" running custom onUnload code: "+a.message)}},destroyDescendants:function(){this.isLoaded&&this._onUnloadHandler();var a=this._contentSetter;dojo.forEach(this.getChildren(),function(b){b.destroyRecursive&&b.destroyRecursive()});if(a){dojo.forEach(a.parseResults,
function(b){b.destroyRecursive&&b.domNode&&b.domNode.parentNode==dojo.body()&&b.destroyRecursive()});delete a.parseResults}dojo.html._emptyNode(this.containerNode);delete this._singleChild},_setContent:function(a,b){this.destroyDescendants();var c=this._contentSetter;if(!(c&&c instanceof dojo.html._ContentSetter))c=this._contentSetter=new dojo.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){e=this.onContentError(e);try{this.containerNode.innerHTML=
e}catch(f){console.error("Fatal "+this.id+" could not change content due to "+f.message,f)}})});var d=dojo.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad,parserScope:this.parserScope,startup:false,dir:this.dir,lang:this.lang},this._contentSetterParams||{});c.set(dojo.isObject(a)&&a.domNode?a.domNode:a,d);delete this._contentSetterParams;this.doLayout&&this._checkIfSingleChild();if(!b){if(this._started){this._startChildren();this._scheduleLayout()}this._onLoadHandler(a)}},
_onError:function(a,b,c){this.onLoadDeferred.errback(b);a=this["on"+a+"Error"].call(this,b);if(c)console.error(c,b);else a&&this._setContent(a,true)},onLoad:function(){},onUnload:function(){},onDownloadStart:function(){return this.loadingMessage},onContentError:function(){},onDownloadError:function(){return this.errorMessage},onDownloadEnd:function(){}});dojo.provide("dojo.cookie");
dojo.cookie=function(a,b,c){var d=document.cookie;if(arguments.length==1){var e=d.match(RegExp("(?:^|; )"+dojo.regexp.escapeString(a)+"=([^;]*)"));return e?decodeURIComponent(e[1]):undefined}else{c=c||{};d=c.expires;if(typeof d=="number"){var f=new Date;f.setTime(f.getTime()+d*864E5);d=c.expires=f}if(d&&d.toUTCString)c.expires=d.toUTCString();b=encodeURIComponent(b);d=a+"="+b;for(e in c){d+="; "+e;f=c[e];if(f!==true)d+="="+f}document.cookie=d}};
dojo.cookie.isSupported=function(){if(!("cookieEnabled"in navigator)){this("__djCookieTest__","CookiesAllowed");navigator.cookieEnabled=this("__djCookieTest__")=="CookiesAllowed";navigator.cookieEnabled&&this("__djCookieTest__","",{expires:-1})}return navigator.cookieEnabled};dojo.provide("dijit.form.Button");
dojo.declare("dijit.form.Button",dijit.form._FormWidget,{label:"",showLabel:true,iconClass:"",type:"button",baseClass:"dijitButton",templateString:dojo.cache("dijit.form","templates/Button.html",'<span class="dijit dijitReset dijitInline"\n\t><span class="dijitReset dijitInline dijitButtonNode"\n\t\tdojoAttachEvent="ondijitclick:_onButtonClick"\n\t\t><span class="dijitReset dijitStretch dijitButtonContents"\n\t\t\tdojoAttachPoint="titleNode,focusNode"\n\t\t\trole="button" aria-labelledby="${id}_label"\n\t\t\t><span class="dijitReset dijitInline dijitIcon" dojoAttachPoint="iconNode"></span\n\t\t\t><span class="dijitReset dijitToggleButtonIconChar">&#x25CF;</span\n\t\t\t><span class="dijitReset dijitInline dijitButtonText"\n\t\t\t\tid="${id}_label"\n\t\t\t\tdojoAttachPoint="containerNode"\n\t\t\t></span\n\t\t></span\n\t></span\n\t><input ${!nameAttrSetting} type="${type}" value="${value}" class="dijitOffScreen" tabIndex="-1"\n\t\tdojoAttachPoint="valueNode"\n/></span>\n'),
attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{value:"valueNode"}),_onClick:function(a){if(this.disabled)return false;this._clicked();return this.onClick(a)},_onButtonClick:function(a){if(this._onClick(a)===false)a.preventDefault();else if(this.type=="submit"&&!(this.valueNode||this.focusNode).form)for(var b=this.domNode;b.parentNode;b=b.parentNode){var c=dijit.byNode(b);if(c&&typeof c._onSubmit=="function"){c._onSubmit(a);break}}else if(this.valueNode){this.valueNode.click();
a.preventDefault()}},buildRendering:function(){this.inherited(arguments);dojo.setSelectable(this.focusNode,false)},_fillContent:function(a){if(a&&(!this.params||!("label"in this.params)))this.set("label",a.innerHTML)},_setShowLabelAttr:function(a){this.containerNode&&dojo.toggleClass(this.containerNode,"dijitDisplayNone",!a);this._set("showLabel",a)},onClick:function(){return true},_clicked:function(){},setLabel:function(a){dojo.deprecated("dijit.form.Button.setLabel() is deprecated.  Use set('label', ...) instead.",
"","2.0");this.set("label",a)},_setLabelAttr:function(a){this._set("label",a);this.containerNode.innerHTML=a;if(this.showLabel==false&&!this.params.title)this.titleNode.title=dojo.trim(this.containerNode.innerText||this.containerNode.textContent||"")},_setIconClassAttr:function(a){dojo.replaceClass(this.iconNode,a||"dijitNoIcon",this.iconClass||"dijitNoIcon");this._set("iconClass",a)}});
dojo.declare("dijit.form.DropDownButton",[dijit.form.Button,dijit._Container,dijit._HasDropDown],{baseClass:"dijitDropDownButton",templateString:dojo.cache("dijit.form","templates/DropDownButton.html",'<span class="dijit dijitReset dijitInline"\n\t><span class=\'dijitReset dijitInline dijitButtonNode\'\n\t\tdojoAttachEvent="ondijitclick:_onButtonClick" dojoAttachPoint="_buttonNode"\n\t\t><span class="dijitReset dijitStretch dijitButtonContents"\n\t\t\tdojoAttachPoint="focusNode,titleNode,_arrowWrapperNode"\n\t\t\trole="button" aria-haspopup="true" aria-labelledby="${id}_label"\n\t\t\t><span class="dijitReset dijitInline dijitIcon"\n\t\t\t\tdojoAttachPoint="iconNode"\n\t\t\t></span\n\t\t\t><span class="dijitReset dijitInline dijitButtonText"\n\t\t\t\tdojoAttachPoint="containerNode,_popupStateNode"\n\t\t\t\tid="${id}_label"\n\t\t\t></span\n\t\t\t><span class="dijitReset dijitInline dijitArrowButtonInner"></span\n\t\t\t><span class="dijitReset dijitInline dijitArrowButtonChar">&#9660;</span\n\t\t></span\n\t></span\n\t><input ${!nameAttrSetting} type="${type}" value="${value}" class="dijitOffScreen" tabIndex="-1"\n\t\tdojoAttachPoint="valueNode"\n/></span>\n'),
_fillContent:function(){if(this.srcNodeRef){var a=dojo.query("*",this.srcNodeRef);dijit.form.DropDownButton.superclass._fillContent.call(this,a[0]);this.dropDownContainer=this.srcNodeRef}},startup:function(){if(!this._started){if(!this.dropDown&&this.dropDownContainer){var a=dojo.query("[widgetId]",this.dropDownContainer)[0];this.dropDown=dijit.byNode(a);delete this.dropDownContainer}this.dropDown&&dijit.popup.hide(this.dropDown);this.inherited(arguments)}},isLoaded:function(){var a=this.dropDown;
return!!a&&(!a.href||a.isLoaded)},loadDropDown:function(){var a=this.dropDown;if(a)if(this.isLoaded())this.openDropDown();else{var b=dojo.connect(a,"onLoad",this,function(){dojo.disconnect(b);this.openDropDown()});a.refresh()}},isFocusable:function(){return this.inherited(arguments)&&!this._mouseDown}});
dojo.declare("dijit.form.ComboButton",dijit.form.DropDownButton,{templateString:dojo.cache("dijit.form","templates/ComboButton.html",'<table class="dijit dijitReset dijitInline dijitLeft"\n\tcellspacing=\'0\' cellpadding=\'0\' role="presentation"\n\t><tbody role="presentation"><tr role="presentation"\n\t\t><td class="dijitReset dijitStretch dijitButtonNode" dojoAttachPoint="buttonNode" dojoAttachEvent="ondijitclick:_onButtonClick,onkeypress:_onButtonKeyPress"\n\t\t><div id="${id}_button" class="dijitReset dijitButtonContents"\n\t\t\tdojoAttachPoint="titleNode"\n\t\t\trole="button" aria-labelledby="${id}_label"\n\t\t\t><div class="dijitReset dijitInline dijitIcon" dojoAttachPoint="iconNode" role="presentation"></div\n\t\t\t><div class="dijitReset dijitInline dijitButtonText" id="${id}_label" dojoAttachPoint="containerNode" role="presentation"></div\n\t\t></div\n\t\t></td\n\t\t><td id="${id}_arrow" class=\'dijitReset dijitRight dijitButtonNode dijitArrowButton\'\n\t\t\tdojoAttachPoint="_popupStateNode,focusNode,_buttonNode"\n\t\t\tdojoAttachEvent="onkeypress:_onArrowKeyPress"\n\t\t\ttitle="${optionsTitle}"\n\t\t\trole="button" aria-haspopup="true"\n\t\t\t><div class="dijitReset dijitArrowButtonInner" role="presentation"></div\n\t\t\t><div class="dijitReset dijitArrowButtonChar" role="presentation">&#9660;</div\n\t\t></td\n\t\t><td style="display:none !important;"\n\t\t\t><input ${!nameAttrSetting} type="${type}" value="${value}" dojoAttachPoint="valueNode"\n\t\t/></td></tr></tbody\n></table>\n'),attributeMap:dojo.mixin(dojo.clone(dijit.form.Button.prototype.attributeMap),
{id:"",tabIndex:["focusNode","titleNode"],title:"titleNode"}),optionsTitle:"",baseClass:"dijitComboButton",cssStateNodes:{buttonNode:"dijitButtonNode",titleNode:"dijitButtonContents",_popupStateNode:"dijitDownArrowButton"},_focusedNode:null,_onButtonKeyPress:function(a){if(a.charOrCode==dojo.keys[this.isLeftToRight()?"RIGHT_ARROW":"LEFT_ARROW"]){dijit.focus(this._popupStateNode);dojo.stopEvent(a)}},_onArrowKeyPress:function(a){if(a.charOrCode==dojo.keys[this.isLeftToRight()?"LEFT_ARROW":"RIGHT_ARROW"]){dijit.focus(this.titleNode);
dojo.stopEvent(a)}},focus:function(a){this.disabled||dijit.focus(a=="start"?this.titleNode:this._popupStateNode)}});
dojo.declare("dijit.form.ToggleButton",dijit.form.Button,{baseClass:"dijitToggleButton",checked:false,attributeMap:dojo.mixin(dojo.clone(dijit.form.Button.prototype.attributeMap),{checked:"focusNode"}),_clicked:function(){this.set("checked",!this.checked)},_setCheckedAttr:function(a,b){this._set("checked",a);dojo.attr(this.focusNode||this.domNode,"checked",a);dijit.setWaiState(this.focusNode||this.domNode,"pressed",a);this._handleOnChange(a,b)},setChecked:function(a){dojo.deprecated("setChecked("+
a+") is deprecated. Use set('checked',"+a+") instead.","","2.0");this.set("checked",a)},reset:function(){this._hasBeenBlurred=false;this.set("checked",this.params.checked||false)}});dojo.provide("dijit.form.ToggleButton");dojo.provide("dijit.layout.StackController");
dojo.declare("dijit.layout.StackController",[dijit._Widget,dijit._Templated,dijit._Container],{templateString:"<span role='tablist' dojoAttachEvent='onkeypress' class='dijitStackController'></span>",containerId:"",buttonWidget:"dijit.layout._StackButton",constructor:function(){this.pane2button={};this.pane2connects={};this.pane2watches={}},buildRendering:function(){this.inherited(arguments);dijit.setWaiRole(this.domNode,"tablist")},postCreate:function(){this.inherited(arguments);this.subscribe(this.containerId+
"-startup","onStartup");this.subscribe(this.containerId+"-addChild","onAddChild");this.subscribe(this.containerId+"-removeChild","onRemoveChild");this.subscribe(this.containerId+"-selectChild","onSelectChild");this.subscribe(this.containerId+"-containerKeyPress","onContainerKeyPress")},onStartup:function(a){dojo.forEach(a.children,this.onAddChild,this);if(a.selected)this.onSelectChild(a.selected)},destroy:function(){for(var a in this.pane2button)this.onRemoveChild(dijit.byId(a));this.inherited(arguments)},
onAddChild:function(a,b){var c=new (dojo.getObject(this.buttonWidget))({id:this.id+"_"+a.id,label:a.title,dir:a.dir,lang:a.lang,showLabel:a.showTitle,iconClass:a.iconClass,closeButton:a.closable,title:a.tooltip});dijit.setWaiState(c.focusNode,"selected","false");var d=["label","showLabel","iconClass","closeButton","title"];this.pane2watches[a.id]=dojo.map(["title","showTitle","iconClass","closable","tooltip"],function(e,f){return a.watch(e,function(i,g,h){c.set(d[f],h)})});this.pane2connects[a.id]=
[this.connect(c,"onClick",dojo.hitch(this,"onButtonClick",a)),this.connect(c,"onClickCloseButton",dojo.hitch(this,"onCloseButtonClick",a))];this.addChild(c,b);this.pane2button[a.id]=c;a.controlButton=c;if(!this._currentChild){c.focusNode.setAttribute("tabIndex","0");dijit.setWaiState(c.focusNode,"selected","true");this._currentChild=a}!this.isLeftToRight()&&dojo.isIE&&this._rectifyRtlTabList&&this._rectifyRtlTabList()},onRemoveChild:function(a){if(this._currentChild===a)this._currentChild=null;dojo.forEach(this.pane2connects[a.id],
dojo.hitch(this,"disconnect"));delete this.pane2connects[a.id];dojo.forEach(this.pane2watches[a.id],function(c){c.unwatch()});delete this.pane2watches[a.id];var b=this.pane2button[a.id];if(b){this.removeChild(b);delete this.pane2button[a.id];b.destroy()}delete a.controlButton},onSelectChild:function(a){if(a){if(this._currentChild){var b=this.pane2button[this._currentChild.id];b.set("checked",false);dijit.setWaiState(b.focusNode,"selected","false");b.focusNode.setAttribute("tabIndex","-1")}b=this.pane2button[a.id];
b.set("checked",true);dijit.setWaiState(b.focusNode,"selected","true");this._currentChild=a;b.focusNode.setAttribute("tabIndex","0");a=dijit.byId(this.containerId);dijit.setWaiState(a.containerNode,"labelledby",b.id)}},onButtonClick:function(a){dijit.byId(this.containerId).selectChild(a)},onCloseButtonClick:function(a){dijit.byId(this.containerId).closeChild(a);if(this._currentChild)if(a=this.pane2button[this._currentChild.id])dijit.focus(a.focusNode||a.domNode)},adjacent:function(a){if(!this.isLeftToRight()&&
(!this.tabPosition||/top|bottom/.test(this.tabPosition)))a=!a;var b=this.getChildren(),c=dojo.indexOf(b,this.pane2button[this._currentChild.id]);return b[(c+(a?1:b.length-1))%b.length]},onkeypress:function(a){if(!(this.disabled||a.altKey)){var b=null;if(a.ctrlKey||!a._djpage){var c=dojo.keys;switch(a.charOrCode){case c.LEFT_ARROW:case c.UP_ARROW:a._djpage||(b=false);break;case c.PAGE_UP:if(a.ctrlKey)b=false;break;case c.RIGHT_ARROW:case c.DOWN_ARROW:a._djpage||(b=true);break;case c.PAGE_DOWN:if(a.ctrlKey)b=
true;break;case c.HOME:case c.END:var d=this.getChildren();if(d&&d.length)d[a.charOrCode==c.HOME?0:d.length-1].onClick();dojo.stopEvent(a);break;case c.DELETE:if(this._currentChild.closable)this.onCloseButtonClick(this._currentChild);dojo.stopEvent(a);break;default:if(a.ctrlKey)if(a.charOrCode===c.TAB){this.adjacent(!a.shiftKey).onClick();dojo.stopEvent(a)}else if(a.charOrCode=="w"){if(this._currentChild.closable)this.onCloseButtonClick(this._currentChild);dojo.stopEvent(a)}}if(b!==null){this.adjacent(b).onClick();
dojo.stopEvent(a)}}}},onContainerKeyPress:function(a){a.e._djpage=a.page;this.onkeypress(a.e)}});dojo.declare("dijit.layout._StackButton",dijit.form.ToggleButton,{tabIndex:"-1",buildRendering:function(){this.inherited(arguments);dijit.setWaiRole(this.focusNode||this.domNode,"tab")},onClick:function(){dijit.focus(this.focusNode)},onClickCloseButton:function(a){a.stopPropagation()}});dojo.provide("dijit.layout.StackContainer");
dojo.declare("dijit.layout.StackContainer",dijit.layout._LayoutWidget,{doLayout:true,persist:false,baseClass:"dijitStackContainer",buildRendering:function(){this.inherited(arguments);dojo.addClass(this.domNode,"dijitLayoutContainer");dijit.setWaiRole(this.containerNode,"tabpanel")},postCreate:function(){this.inherited(arguments);this.connect(this.domNode,"onkeypress",this._onKeyPress)},startup:function(){if(!this._started){var a=this.getChildren();dojo.forEach(a,this._setupChild,this);if(this.persist)this.selectedChildWidget=
dijit.byId(dojo.cookie(this.id+"_selectedChild"));else dojo.some(a,function(c){if(c.selected)this.selectedChildWidget=c;return c.selected},this);var b=this.selectedChildWidget;if(!b&&a[0]){b=this.selectedChildWidget=a[0];b.selected=true}dojo.publish(this.id+"-startup",[{children:a,selected:b}]);this.inherited(arguments)}},resize:function(){var a=this.selectedChildWidget;if(a&&!this._hasBeenShown){this._hasBeenShown=true;this._showChild(a)}this.inherited(arguments)},_setupChild:function(a){this.inherited(arguments);
dojo.replaceClass(a.domNode,"dijitHidden","dijitVisible");a.domNode.title=""},addChild:function(a,b){this.inherited(arguments);if(this._started){dojo.publish(this.id+"-addChild",[a,b]);this.layout();this.selectedChildWidget||this.selectChild(a)}},removeChild:function(a){this.inherited(arguments);this._started&&dojo.publish(this.id+"-removeChild",[a]);if(!this._beingDestroyed){if(this.selectedChildWidget===a){this.selectedChildWidget=undefined;if(this._started){var b=this.getChildren();b.length&&this.selectChild(b[0])}}this._started&&
this.layout()}},selectChild:function(a,b){a=dijit.byId(a);if(this.selectedChildWidget!=a){var c=this._transition(a,this.selectedChildWidget,b);this._set("selectedChildWidget",a);dojo.publish(this.id+"-selectChild",[a]);this.persist&&dojo.cookie(this.id+"_selectedChild",this.selectedChildWidget.id)}return c},_transition:function(a,b){b&&this._hideChild(b);var c=this._showChild(a);if(a.resize)this.doLayout?a.resize(this._containerContentBox||this._contentBox):a.resize();return c},_adjacent:function(a){var b=
this.getChildren(),c=dojo.indexOf(b,this.selectedChildWidget);c+=a?1:b.length-1;return b[c%b.length]},forward:function(){return this.selectChild(this._adjacent(true),true)},back:function(){return this.selectChild(this._adjacent(false),true)},_onKeyPress:function(a){dojo.publish(this.id+"-containerKeyPress",[{e:a,page:this}])},layout:function(){if(this.doLayout&&this.selectedChildWidget&&this.selectedChildWidget.resize)this.selectedChildWidget.resize(this._containerContentBox||this._contentBox)},_showChild:function(a){var b=
this.getChildren();a.isFirstChild=a==b[0];a.isLastChild=a==b[b.length-1];a._set("selected",true);dojo.replaceClass(a.domNode,"dijitVisible","dijitHidden");return a._onShow()||true},_hideChild:function(a){a._set("selected",false);dojo.replaceClass(a.domNode,"dijitHidden","dijitVisible");a.onHide()},closeChild:function(a){if(a.onClose(this,a)){this.removeChild(a);a.destroyRecursive()}},destroyDescendants:function(a){dojo.forEach(this.getChildren(),function(b){this.removeChild(b);b.destroyRecursive(a)},
this)}});dojo.extend(dijit._Widget,{selected:false,closable:false,iconClass:"",showTitle:true});dojo.provide("dijit.layout._TabContainerBase");
dojo.declare("dijit.layout._TabContainerBase",[dijit.layout.StackContainer,dijit._Templated],{tabPosition:"top",baseClass:"dijitTabContainer",tabStrip:false,nested:false,templateString:dojo.cache("dijit.layout","templates/TabContainer.html",'<div class="dijitTabContainer">\n\t<div class="dijitTabListWrapper" dojoAttachPoint="tablistNode"></div>\n\t<div dojoAttachPoint="tablistSpacer" class="dijitTabSpacer ${baseClass}-spacer"></div>\n\t<div class="dijitTabPaneWrapper ${baseClass}-container" dojoAttachPoint="containerNode"></div>\n</div>\n'),postMixInProperties:function(){this.baseClass+=
this.tabPosition.charAt(0).toUpperCase()+this.tabPosition.substr(1).replace(/-.*/,"");this.srcNodeRef&&dojo.style(this.srcNodeRef,"visibility","hidden");this.inherited(arguments)},buildRendering:function(){this.inherited(arguments);this.tablist=this._makeController(this.tablistNode);this.doLayout||dojo.addClass(this.domNode,"dijitTabContainerNoLayout");if(this.nested){dojo.addClass(this.domNode,"dijitTabContainerNested");dojo.addClass(this.tablist.containerNode,"dijitTabContainerTabListNested");dojo.addClass(this.tablistSpacer,
"dijitTabContainerSpacerNested");dojo.addClass(this.containerNode,"dijitTabPaneWrapperNested")}else dojo.addClass(this.domNode,"tabStrip-"+(this.tabStrip?"enabled":"disabled"))},_setupChild:function(a){dojo.addClass(a.domNode,"dijitTabPane");this.inherited(arguments)},startup:function(){if(!this._started){this.tablist.startup();this.inherited(arguments)}},layout:function(){if(!(!this._contentBox||typeof this._contentBox.l=="undefined")){var a=this.selectedChildWidget;if(this.doLayout){var b=this.tabPosition.replace(/-h/,
"");this.tablist.layoutAlign=b;b=[this.tablist,{domNode:this.tablistSpacer,layoutAlign:b},{domNode:this.containerNode,layoutAlign:"client"}];dijit.layout.layoutChildren(this.domNode,this._contentBox,b);this._containerContentBox=dijit.layout.marginBox2contentBox(this.containerNode,b[2]);a&&a.resize&&a.resize(this._containerContentBox)}else{if(this.tablist.resize){b=this.tablist.domNode.style;b.width="0";var c=dojo.contentBox(this.domNode).w;b.width="";this.tablist.resize({w:c})}a&&a.resize&&a.resize()}}},
destroy:function(){this.tablist&&this.tablist.destroy();this.inherited(arguments)}});dojo.provide("dijit.layout.TabController");
dojo.declare("dijit.layout.TabController",dijit.layout.StackController,{templateString:"<div role='tablist' dojoAttachEvent='onkeypress:onkeypress'></div>",tabPosition:"top",buttonWidget:"dijit.layout._TabButton",_rectifyRtlTabList:function(){if(!(0>=this.tabPosition.indexOf("-h")))if(this.pane2button){var a=0,b;for(b in this.pane2button)a=Math.max(a,this.pane2button[b].innerDiv.scrollWidth);for(b in this.pane2button)this.pane2button[b].innerDiv.style.width=a+"px"}}});
dojo.declare("dijit.layout._TabButton",dijit.layout._StackButton,{baseClass:"dijitTab",cssStateNodes:{closeNode:"dijitTabCloseButton"},templateString:dojo.cache("dijit.layout","templates/_TabButton.html","<div role=\"presentation\" dojoAttachPoint=\"titleNode\" dojoAttachEvent='onclick:onClick'>\n    <div role=\"presentation\" class='dijitTabInnerDiv' dojoAttachPoint='innerDiv'>\n        <div role=\"presentation\" class='dijitTabContent' dojoAttachPoint='tabContent'>\n        \t<div role=\"presentation\" dojoAttachPoint='focusNode'>\n\t\t        <img src=\"${_blankGif}\" alt=\"\" class=\"dijitIcon dijitTabButtonIcon\" dojoAttachPoint='iconNode' />\n\t\t        <span dojoAttachPoint='containerNode' class='tabLabel'></span>\n\t\t        <span class=\"dijitInline dijitTabCloseButton dijitTabCloseIcon\" dojoAttachPoint='closeNode'\n\t\t        \t\tdojoAttachEvent='onclick: onClickCloseButton' role=\"presentation\">\n\t\t            <span dojoAttachPoint='closeText' class='dijitTabCloseText'>[x]</span\n\t\t        ></span>\n\t\t\t</div>\n        </div>\n    </div>\n</div>\n"),
scrollOnFocus:false,buildRendering:function(){this.inherited(arguments);dojo.setSelectable(this.containerNode,false)},startup:function(){this.inherited(arguments);var a=this.domNode;setTimeout(function(){a.className=a.className},1)},_setCloseButtonAttr:function(a){this._set("closeButton",a);dojo.toggleClass(this.innerDiv,"dijitClosable",a);this.closeNode.style.display=a?"":"none";if(a){a=dojo.i18n.getLocalization("dijit","common");this.closeNode&&dojo.attr(this.closeNode,"title",a.itemClose);a=dojo.i18n.getLocalization("dijit",
"common");this._closeMenu=new dijit.Menu({id:this.id+"_Menu",dir:this.dir,lang:this.lang,targetNodeIds:[this.domNode]});this._closeMenu.addChild(new dijit.MenuItem({label:a.itemClose,dir:this.dir,lang:this.lang,onClick:dojo.hitch(this,"onClickCloseButton")}))}else if(this._closeMenu){this._closeMenu.destroyRecursive();delete this._closeMenu}},_setLabelAttr:function(){this.inherited(arguments);if(this.showLabel==false&&!this.params.title)this.iconNode.alt=dojo.trim(this.containerNode.innerText||this.containerNode.textContent||
"")},destroy:function(){if(this._closeMenu){this._closeMenu.destroyRecursive();delete this._closeMenu}this.inherited(arguments)}});dojo.provide("dijit.layout.ScrollingTabController");
dojo.declare("dijit.layout.ScrollingTabController",dijit.layout.TabController,{templateString:dojo.cache("dijit.layout","templates/ScrollingTabController.html",'<div class="dijitTabListContainer-${tabPosition}" style="visibility:hidden">\n\t<div dojoType="dijit.layout._ScrollingTabControllerMenuButton"\n\t\t\tclass="tabStripButton-${tabPosition}"\n\t\t\tid="${id}_menuBtn" containerId="${containerId}" iconClass="dijitTabStripMenuIcon"\n\t\t\tdropDownPosition="below-alt, above-alt"\n\t\t\tdojoAttachPoint="_menuBtn" showLabel="false">&#9660;</div>\n\t<div dojoType="dijit.layout._ScrollingTabControllerButton"\n\t\t\tclass="tabStripButton-${tabPosition}"\n\t\t\tid="${id}_leftBtn" iconClass="dijitTabStripSlideLeftIcon"\n\t\t\tdojoAttachPoint="_leftBtn" dojoAttachEvent="onClick: doSlideLeft" showLabel="false">&#9664;</div>\n\t<div dojoType="dijit.layout._ScrollingTabControllerButton"\n\t\t\tclass="tabStripButton-${tabPosition}"\n\t\t\tid="${id}_rightBtn" iconClass="dijitTabStripSlideRightIcon"\n\t\t\tdojoAttachPoint="_rightBtn" dojoAttachEvent="onClick: doSlideRight" showLabel="false">&#9654;</div>\n\t<div class=\'dijitTabListWrapper\' dojoAttachPoint=\'tablistWrapper\'>\n\t\t<div role=\'tablist\' dojoAttachEvent=\'onkeypress:onkeypress\'\n\t\t\t\tdojoAttachPoint=\'containerNode\' class=\'nowrapTabStrip\'></div>\n\t</div>\n</div>\n'),useMenu:true,
useSlider:true,tabStripClass:"",widgetsInTemplate:true,_minScroll:5,attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{"class":"containerNode"}),buildRendering:function(){this.inherited(arguments);var a=this.domNode;this.scrollNode=this.tablistWrapper;this._initButtons();if(!this.tabStripClass){this.tabStripClass="dijitTabContainer"+this.tabPosition.charAt(0).toUpperCase()+this.tabPosition.substr(1).replace(/-.*/,"")+"None";dojo.addClass(a,"tabStrip-disabled")}dojo.addClass(this.tablistWrapper,
this.tabStripClass)},onStartup:function(){this.inherited(arguments);dojo.style(this.domNode,"visibility","visible");this._postStartup=true},onAddChild:function(a){this.inherited(arguments);dojo.forEach(["label","iconClass"],function(b){this.pane2watches[a.id].push(this.pane2button[a.id].watch(b,dojo.hitch(this,function(){this._postStartup&&this._dim&&this.resize(this._dim)})))},this);dojo.style(this.containerNode,"width",dojo.style(this.containerNode,"width")+200+"px")},onRemoveChild:function(a){if(this._selectedTab===
this.pane2button[a.id].domNode)this._selectedTab=null;this.inherited(arguments)},_initButtons:function(){this._btnWidth=0;this._buttons=dojo.query("> .tabStripButton",this.domNode).filter(function(a){if(this.useMenu&&a==this._menuBtn.domNode||this.useSlider&&(a==this._rightBtn.domNode||a==this._leftBtn.domNode)){this._btnWidth+=dojo._getMarginSize(a).w;return true}else{dojo.style(a,"display","none");return false}},this)},_getTabsWidth:function(){var a=this.getChildren();if(a.length){var b=a[this.isLeftToRight()?
0:a.length-1].domNode;a=a[this.isLeftToRight()?a.length-1:0].domNode;return a.offsetLeft+dojo.style(a,"width")-b.offsetLeft}else return 0},_enableBtn:function(a){var b=this._getTabsWidth();a=a||dojo.style(this.scrollNode,"width");return b>0&&a<b},resize:function(a){if(this.domNode.offsetWidth!=0){this._dim=a;this.scrollNode.style.height="auto";this._contentBox=dijit.layout.marginBox2contentBox(this.domNode,{h:0,w:a.w});this._contentBox.h=this.scrollNode.offsetHeight;dojo.contentBox(this.domNode,this._contentBox);
this._buttons.style("display",this._enableBtn(this._contentBox.w)?"":"none");this._leftBtn.layoutAlign="left";this._rightBtn.layoutAlign="right";this._menuBtn.layoutAlign=this.isLeftToRight()?"right":"left";dijit.layout.layoutChildren(this.domNode,this._contentBox,[this._menuBtn,this._leftBtn,this._rightBtn,{domNode:this.scrollNode,layoutAlign:"client"}]);if(this._selectedTab){this._anim&&this._anim.status()=="playing"&&this._anim.stop();var b=this.scrollNode,c=this._convertToScrollLeft(this._getScrollForSelectedTab());
b.scrollLeft=c}this._setButtonClass(this._getScroll());this._postResize=true;return{h:this._contentBox.h,w:a.w}}},_getScroll:function(){return this.isLeftToRight()||dojo.isIE<8||dojo.isIE&&dojo.isQuirks||dojo.isWebKit?this.scrollNode.scrollLeft:dojo.style(this.containerNode,"width")-dojo.style(this.scrollNode,"width")+(dojo.isIE==8?-1:1)*this.scrollNode.scrollLeft},_convertToScrollLeft:function(a){if(this.isLeftToRight()||dojo.isIE<8||dojo.isIE&&dojo.isQuirks||dojo.isWebKit)return a;else{var b=dojo.style(this.containerNode,
"width")-dojo.style(this.scrollNode,"width");return(dojo.isIE==8?-1:1)*(a-b)}},onSelectChild:function(a){var b=this.pane2button[a.id];if(b&&a){b=b.domNode;if(this._postResize&&b!=this._selectedTab){this._selectedTab=b;var c=this._getScroll();if(c>b.offsetLeft||c+dojo.style(this.scrollNode,"width")<b.offsetLeft+dojo.style(b,"width"))this.createSmoothScroll().play()}this.inherited(arguments)}},_getScrollBounds:function(){var a=this.getChildren(),b=dojo.style(this.scrollNode,"width"),c=dojo.style(this.containerNode,
"width")-b,d=this._getTabsWidth();if(a.length&&d>b)return{min:this.isLeftToRight()?0:a[a.length-1].domNode.offsetLeft,max:this.isLeftToRight()?a[a.length-1].domNode.offsetLeft+dojo.style(a[a.length-1].domNode,"width")-b:c};else{a=this.isLeftToRight()?0:c;return{min:a,max:a}}},_getScrollForSelectedTab:function(){var a=this._selectedTab,b=dojo.style(this.scrollNode,"width"),c=this._getScrollBounds();a=a.offsetLeft+dojo.style(a,"width")/2-b/2;return a=Math.min(Math.max(a,c.min),c.max)},createSmoothScroll:function(a){if(arguments.length>
0){var b=this._getScrollBounds();a=Math.min(Math.max(a,b.min),b.max)}else a=this._getScrollForSelectedTab();this._anim&&this._anim.status()=="playing"&&this._anim.stop();var c=this,d=this.scrollNode,e=new dojo._Animation({beforeBegin:function(){this.curve&&delete this.curve;var f=d.scrollLeft,i=c._convertToScrollLeft(a);e.curve=new dojo._Line(f,i)},onAnimate:function(f){d.scrollLeft=f}});this._anim=e;this._setButtonClass(a);return e},_getBtnNode:function(a){for(a=a.target;a&&!dojo.hasClass(a,"tabStripButton");)a=
a.parentNode;return a},doSlideRight:function(a){this.doSlide(1,this._getBtnNode(a))},doSlideLeft:function(a){this.doSlide(-1,this._getBtnNode(a))},doSlide:function(a,b){if(!(b&&dojo.hasClass(b,"dijitTabDisabled"))){var c=dojo.style(this.scrollNode,"width")*0.75*a;c=this._getScroll()+c;this._setButtonClass(c);this.createSmoothScroll(c).play()}},_setButtonClass:function(a){var b=this._getScrollBounds();this._leftBtn.set("disabled",a<=b.min);this._rightBtn.set("disabled",a>=b.max)}});
dojo.declare("dijit.layout._ScrollingTabControllerButtonMixin",null,{baseClass:"dijitTab tabStripButton",templateString:dojo.cache("dijit.layout","templates/_ScrollingTabControllerButton.html",'<div dojoAttachEvent="onclick:_onButtonClick">\n\t<div role="presentation" class="dijitTabInnerDiv" dojoattachpoint="innerDiv,focusNode">\n\t\t<div role="presentation" class="dijitTabContent dijitButtonContents" dojoattachpoint="tabContent">\n\t\t\t<img role="presentation" alt="" src="${_blankGif}" class="dijitTabStripIcon" dojoAttachPoint="iconNode"/>\n\t\t\t<span dojoAttachPoint="containerNode,titleNode" class="dijitButtonText"></span>\n\t\t</div>\n\t</div>\n</div>\n'),
tabIndex:"",isFocusable:function(){return false}});dojo.declare("dijit.layout._ScrollingTabControllerButton",[dijit.form.Button,dijit.layout._ScrollingTabControllerButtonMixin]);
dojo.declare("dijit.layout._ScrollingTabControllerMenuButton",[dijit.form.Button,dijit._HasDropDown,dijit.layout._ScrollingTabControllerButtonMixin],{containerId:"",tabIndex:"-1",isLoaded:function(){return false},loadDropDown:function(a){this.dropDown=new dijit.Menu({id:this.containerId+"_menu",dir:this.dir,lang:this.lang});var b=dijit.byId(this.containerId);dojo.forEach(b.getChildren(),function(c){this.dropDown.addChild(new dijit.MenuItem({id:c.id+"_stcMi",label:c.title,iconClass:c.iconClass,dir:c.dir,
lang:c.lang,onClick:function(){b.selectChild(c)}}))},this);a()},closeDropDown:function(){this.inherited(arguments);if(this.dropDown){this.dropDown.destroyRecursive();delete this.dropDown}}});dojo.provide("dijit.layout.TabContainer");
dojo.declare("dijit.layout.TabContainer",dijit.layout._TabContainerBase,{useMenu:true,useSlider:true,controllerWidget:"",_makeController:function(a){var b=this.baseClass+"-tabs"+(this.doLayout?"":" dijitTabNoLayout");return new (dojo.getObject(this.controllerWidget))({id:this.id+"_tablist",dir:this.dir,lang:this.lang,tabPosition:this.tabPosition,doLayout:this.doLayout,containerId:this.id,"class":b,nested:this.nested,useMenu:this.useMenu,useSlider:this.useSlider,tabStripClass:this.tabStrip?this.baseClass+
(this.tabStrip?"":"No")+"Strip":null},a)},postMixInProperties:function(){this.inherited(arguments);if(!this.controllerWidget)this.controllerWidget=(this.tabPosition=="top"||this.tabPosition=="bottom")&&!this.nested?"dijit.layout.ScrollingTabController":"dijit.layout.TabController"}});dojo.provide("dojo.data.ItemFileReadStore");
dojo.declare("dojo.data.ItemFileReadStore",null,{constructor:function(a){this._arrayOfAllItems=[];this._arrayOfTopLevelItems=[];this._loadFinished=false;this.url=this._ccUrl=this._jsonFileUrl=a.url;this._jsonData=a.data;this.data=null;this._datatypeMap=a.typeMap||{};this._datatypeMap.Date||(this._datatypeMap.Date={type:Date,deserialize:function(b){return dojo.date.stamp.fromISOString(b)}});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=[];if(a.urlPreventCache!==undefined)this.urlPreventCache=a.urlPreventCache?true:false;if(a.hierarchical!==undefined)this.hierarchical=a.hierarchical?true:false;if(a.clearOnClose)this.clearOnClose=true;if("failOk"in a)this.failOk=a.failOk?true:false},url:"",_ccUrl:"",data:null,typeMap:null,clearOnClose:false,urlPreventCache:false,failOk:false,hierarchical:true,_assertIsItem:function(a){if(!this.isItem(a))throw Error("dojo.data.ItemFileReadStore: Invalid item argument.");
},_assertIsAttribute:function(a){if(typeof a!=="string")throw Error("dojo.data.ItemFileReadStore: Invalid attribute argument.");},getValue:function(a,b,c){a=this.getValues(a,b);return a.length>0?a[0]:c},getValues:function(a,b){this._assertIsItem(a);this._assertIsAttribute(b);return(a[b]||[]).slice(0)},getAttributes:function(a){this._assertIsItem(a);var b=[],c;for(c in a)c!==this._storeRefPropName&&c!==this._itemNumPropName&&c!==this._rootItemPropName&&c!==this._reverseRefMap&&b.push(c);return b},
hasAttribute:function(a,b){this._assertIsItem(a);this._assertIsAttribute(b);return b in a},containsValue:function(a,b,c){var d=undefined;if(typeof c==="string")d=dojo.data.util.filter.patternToRegExp(c,false);return this._containsValue(a,b,c,d)},_containsValue:function(a,b,c,d){return dojo.some(this.getValues(a,b),function(e){if(e!==null&&!dojo.isObject(e)&&d){if(e.toString().match(d))return true}else if(c===e)return true})},isItem:function(a){if(a&&a[this._storeRefPropName]===this)if(this._arrayOfAllItems[a[this._itemNumPropName]]===
a)return true;return false},isItemLoaded:function(a){return this.isItem(a)},loadItem:function(a){this._assertIsItem(a.item)},getFeatures:function(){return this._features},getLabel:function(a){if(this._labelAttr&&this.isItem(a))return this.getValue(a,this._labelAttr)},getLabelAttributes:function(){if(this._labelAttr)return[this._labelAttr];return null},_fetchItems:function(a,b,c){var d=this,e=function(h,j){var m=[],n,o;if(h.query){var l;n=h.queryOptions?h.queryOptions.ignoreCase:false;var k={};for(o in h.query){l=
h.query[o];if(typeof l==="string")k[o]=dojo.data.util.filter.patternToRegExp(l,n);else if(l instanceof RegExp)k[o]=l}for(n=0;n<j.length;++n){var p=true,q=j[n];if(q===null)p=false;else for(o in h.query){l=h.query[o];d._containsValue(q,o,l,k[o])||(p=false)}p&&m.push(q)}}else for(n=0;n<j.length;++n){o=j[n];o!==null&&m.push(o)}b(m,h)};if(this._loadFinished)e(a,this._getItemsArray(a.queryOptions));else{if(this._jsonFileUrl!==this._ccUrl){dojo.deprecated("dojo.data.ItemFileReadStore: ","To change the url, set the url property of the store, not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0");
this.url=this._ccUrl=this._jsonFileUrl}else if(this.url!==this._ccUrl)this._ccUrl=this._jsonFileUrl=this.url;if(this.data!=null){this._jsonData=this.data;this.data=null}if(this._jsonFileUrl)if(this._loadInProgress)this._queuedFetches.push({args:a,filter:e});else{this._loadInProgress=true;var f=dojo.xhrGet({url:d._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk});f.addCallback(function(h){try{d._getItemsFromLoadedData(h);d._loadFinished=true;d._loadInProgress=
false;e(a,d._getItemsArray(a.queryOptions));d._handleQueuedFetches()}catch(j){d._loadFinished=true;d._loadInProgress=false;c(j,a)}});f.addErrback(function(h){d._loadInProgress=false;c(h,a)});var i=null;if(a.abort)i=a.abort;a.abort=function(){f&&f.fired===-1&&f.cancel();i&&i.call(a)}}else if(this._jsonData)try{this._loadFinished=true;this._getItemsFromLoadedData(this._jsonData);this._jsonData=null;e(a,this._getItemsArray(a.queryOptions))}catch(g){c(g,a)}else c(Error("dojo.data.ItemFileReadStore: No JSON source data was provided as either URL or a nested Javascript object."),
a)}},_handleQueuedFetches:function(){if(this._queuedFetches.length>0){for(var a=0;a<this._queuedFetches.length;a++){var b=this._queuedFetches[a],c=b.args;(b=b.filter)?b(c,this._getItemsArray(c.queryOptions)):this.fetchItemByIdentity(c)}this._queuedFetches=[]}},_getItemsArray:function(a){if(a&&a.deep)return this._arrayOfAllItems;return this._arrayOfTopLevelItems},close:function(){if(this.clearOnClose&&this._loadFinished&&!this._loadInProgress){if((this._jsonFileUrl==""||this._jsonFileUrl==null)&&(this.url==
""||this.url==null)&&this.data==null)console.debug("dojo.data.ItemFileReadStore: WARNING!  Data reload  information has not been provided.  Please set 'url' or 'data' to the appropriate value before the next fetch");this._arrayOfAllItems=[];this._arrayOfTopLevelItems=[];this._loadFinished=false;this._itemsByIdentity=null;this._loadInProgress=false;this._queuedFetches=[]}},_getItemsFromLoadedData:function(a){function b(k){return k!==null&&typeof k==="object"&&(!dojo.isArray(k)||d)&&!dojo.isFunction(k)&&
(k.constructor==Object||dojo.isArray(k))&&typeof k._reference==="undefined"&&typeof k._type==="undefined"&&typeof k._value==="undefined"&&e.hierarchical}function c(k){e._arrayOfAllItems.push(k);for(var p in k){var q=k[p];if(q)if(dojo.isArray(q))for(var r=0;r<q.length;++r){var s=q[r];b(s)&&c(s)}else b(q)&&c(q)}}var d=false,e=this;this._labelAttr=a.label;var f,i;this._arrayOfAllItems=[];this._arrayOfTopLevelItems=a.items;for(f=0;f<this._arrayOfTopLevelItems.length;++f){i=this._arrayOfTopLevelItems[f];
if(dojo.isArray(i))d=true;c(i);i[this._rootItemPropName]=true}var g={},h;for(f=0;f<this._arrayOfAllItems.length;++f){i=this._arrayOfAllItems[f];for(h in i){if(h!==this._rootItemPropName){var j=i[h];if(j!==null)dojo.isArray(j)||(i[h]=[j]);else i[h]=[null]}g[h]=h}}for(;g[this._storeRefPropName];)this._storeRefPropName+="_";for(;g[this._itemNumPropName];)this._itemNumPropName+="_";for(;g[this._reverseRefMap];)this._reverseRefMap+="_";if(g=a.identifier){this._itemsByIdentity={};this._features["dojo.data.api.Identity"]=
g;for(f=0;f<this._arrayOfAllItems.length;++f){i=this._arrayOfAllItems[f];a=i[g];a=a[0];if(Object.hasOwnProperty.call(this._itemsByIdentity,a))if(this._jsonFileUrl)throw Error("dojo.data.ItemFileReadStore:  The json data as specified by: ["+this._jsonFileUrl+"] is malformed.  Items within the list have identifier: ["+g+"].  Value collided: ["+a+"]");else{if(this._jsonData)throw Error("dojo.data.ItemFileReadStore:  The json data provided by the creation arguments is malformed.  Items within the list have identifier: ["+
g+"].  Value collided: ["+a+"]");}else this._itemsByIdentity[a]=i}}else this._features["dojo.data.api.Identity"]=Number;for(f=0;f<this._arrayOfAllItems.length;++f){i=this._arrayOfAllItems[f];i[this._storeRefPropName]=this;i[this._itemNumPropName]=f}for(f=0;f<this._arrayOfAllItems.length;++f){i=this._arrayOfAllItems[f];for(h in i){a=i[h];for(g=0;g<a.length;++g){j=a[g];if(j!==null&&typeof j=="object"){if("_type"in j&&"_value"in j){var m=j._type,n=this._datatypeMap[m];if(n)if(dojo.isFunction(n))a[g]=
new n(j._value);else if(dojo.isFunction(n.deserialize))a[g]=n.deserialize(j._value);else throw Error("dojo.data.ItemFileReadStore: Value provided in typeMap was neither a constructor, nor a an object with a deserialize function");else throw Error("dojo.data.ItemFileReadStore: in the typeMap constructor arg, no object class was specified for the datatype '"+m+"'");}if(j._reference){j=j._reference;if(dojo.isObject(j))for(m=0;m<this._arrayOfAllItems.length;++m){n=this._arrayOfAllItems[m];var o=true,
l;for(l in j)if(n[l]!=j[l])o=false;if(o)a[g]=n}else a[g]=this._getItemByIdentity(j);if(this.referenceIntegrity){j=a[g];this.isItem(j)&&this._addReferenceToMap(j,i,h)}}else this.isItem(j)&&this.referenceIntegrity&&this._addReferenceToMap(j,i,h)}}}}},_addReferenceToMap:function(){},getIdentity:function(a){var b=this._features["dojo.data.api.Identity"];if(b===Number)return a[this._itemNumPropName];else if(a=a[b])return a[0];return null},fetchItemByIdentity:function(a){var b,c;if(this._loadFinished){b=
this._getItemByIdentity(a.identity);if(a.onItem){c=a.scope?a.scope:dojo.global;a.onItem.call(c,b)}}else{var d=this;if(this._jsonFileUrl!==this._ccUrl){dojo.deprecated("dojo.data.ItemFileReadStore: ","To change the url, set the url property of the store, not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0");this.url=this._ccUrl=this._jsonFileUrl}else if(this.url!==this._ccUrl)this._ccUrl=this._jsonFileUrl=this.url;if(this.data!=null&&this._jsonData==null){this._jsonData=this.data;this.data=
null}if(this._jsonFileUrl)if(this._loadInProgress)this._queuedFetches.push({args:a});else{this._loadInProgress=true;c=dojo.xhrGet({url:d._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk});c.addCallback(function(e){var f=a.scope?a.scope:dojo.global;try{d._getItemsFromLoadedData(e);d._loadFinished=true;d._loadInProgress=false;b=d._getItemByIdentity(a.identity);a.onItem&&a.onItem.call(f,b);d._handleQueuedFetches()}catch(i){d._loadInProgress=false;a.onError&&
a.onError.call(f,i)}});c.addErrback(function(e){d._loadInProgress=false;if(a.onError)a.onError.call(a.scope?a.scope:dojo.global,e)})}else if(this._jsonData){d._getItemsFromLoadedData(d._jsonData);d._jsonData=null;d._loadFinished=true;b=d._getItemByIdentity(a.identity);if(a.onItem){c=a.scope?a.scope:dojo.global;a.onItem.call(c,b)}}}},_getItemByIdentity:function(a){var b=null;if(this._itemsByIdentity&&Object.hasOwnProperty.call(this._itemsByIdentity,a))b=this._itemsByIdentity[a];else if(Object.hasOwnProperty.call(this._arrayOfAllItems,
a))b=this._arrayOfAllItems[a];if(b===undefined)b=null;return b},getIdentityAttributes:function(){var a=this._features["dojo.data.api.Identity"];return a===Number?null:[a]},_forceLoad:function(){var a=this;if(this._jsonFileUrl!==this._ccUrl){dojo.deprecated("dojo.data.ItemFileReadStore: ","To change the url, set the url property of the store, not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0");this.url=this._ccUrl=this._jsonFileUrl}else if(this.url!==this._ccUrl)this._ccUrl=this._jsonFileUrl=
this.url;if(this.data!=null){this._jsonData=this.data;this.data=null}if(this._jsonFileUrl){var b=dojo.xhrGet({url:this._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk,sync:true});b.addCallback(function(c){try{if(a._loadInProgress!==true&&!a._loadFinished){a._getItemsFromLoadedData(c);a._loadFinished=true}else if(a._loadInProgress)throw Error("dojo.data.ItemFileReadStore:  Unable to perform a synchronous load, an async load is in progress.");}catch(d){console.log(d);
throw d;}});b.addErrback(function(c){throw c;})}else if(this._jsonData){a._getItemsFromLoadedData(a._jsonData);a._jsonData=null;a._loadFinished=true}}});dojo.extend(dojo.data.ItemFileReadStore,dojo.data.util.simpleFetch);dojo.provide("dojox.io.xhrPlugins");
(function(){function a(){return c=dojox.io.xhrPlugins.plainXhr=c||dojo._defaultXhr||dojo.xhr}var b,c;dojox.io.xhrPlugins.register=function(){var e=a();if(!b){b=new dojo.AdapterRegistry;dojo[dojo._defaultXhr?"_defaultXhr":"xhr"]=function(){return b.match.apply(b,arguments)};b.register("xhr",function(f,i){if(!i.url.match(/^\w*:\/\//))return true;var g=window.location.href.match(/^.*?\/\/.*?\//)[0];return i.url.substring(0,g.length)==g},e)}return b.register.apply(b,arguments)};dojox.io.xhrPlugins.addProxy=
function(e){var f=a();dojox.io.xhrPlugins.register("proxy",function(){return true},function(i,g,h){g.url=e+encodeURIComponent(g.url);return f.call(dojo,i,g,h)})};var d;dojox.io.xhrPlugins.addCrossSiteXhr=function(e,f){var i=a();if(d===undefined&&window.XMLHttpRequest)try{(new XMLHttpRequest).open("GET","http://testing-cross-domain-capability.com",true);d=true;dojo.config.noRequestedWithHeaders=true}catch(g){d=false}dojox.io.xhrPlugins.register("cs-xhr",function(h,j){return(d||window.XDomainRequest&&
j.sync!==true&&(h=="GET"||h=="POST"||f))&&j.url.substring(0,e.length)==e},d?i:function(){var h=dojo._xhrObj;dojo._xhrObj=function(){function m(o,l){return function(){n.readyState=l;n.status=o}}var n=new XDomainRequest;n.readyState=1;n.setRequestHeader=function(){};n.getResponseHeader=function(o){return o=="Content-Type"?n.contentType:null};n.onload=m(200,4);n.onprogress=m(200,3);n.onerror=m(404,4);return n};var j=(f?f(a()):a()).apply(dojo,arguments);dojo._xhrObj=h;return j})};dojox.io.xhrPlugins.fullHttpAdapter=
function(e,f){return function(i,g,h){var j={},m={};if(i!="GET"){m["http-method"]=i;if(g.putData&&f){j["http-content"]=g.putData;delete g.putData;h=false}if(g.postData&&f){j["http-content"]=g.postData;delete g.postData;h=false}i="POST"}for(var n in g.headers){var o=n.match(/^X-/)?n.substring(2).replace(/-/g,"_").toLowerCase():"http-"+n;m[o]=g.headers[n]}g.query=dojo.objectToQuery(m);dojo._ioAddQueryToUrl(g);g.content=dojo.mixin(g.content||{},j);return e.call(dojo,i,g,h)}}})();
dojo.i18n._preloadLocalizations("dojo.nls.combobox",["ROOT","ar","ca","cs","da","de","de-de","el","en","en-gb","en-us","es","es-es","fi","fi-fi","fr","fr-fr","he","he-il","hu","it","it-it","ja","ja-jp","ko","ko-kr","nb","nl","nl-nl","pl","pt","pt-br","pt-pt","ru","sk","sl","sv","th","tr","xx","zh","zh-cn","zh-tw"]);
