/*
 RequireJS text 0.24.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
 Available via the MIT or new BSD license.
 see: http://github.com/jrburke/requirejs for details
 RequireJS i18n 0.24.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
 Available via the MIT or new BSD license.
 see: http://github.com/jrburke/requirejs for details
*/
(function(){function b(a,c,d){(function(){if(typeof this.loadFirebugConsole=="function")this.loadFirebugConsole();else{this.console=this.console||{};for(var f=["assert","count","debug","dir","dirxml","error","group","groupEnd","info","profile","profileEnd","time","timeEnd","trace","warn","log"],j=0,g;g=f[j++];)console[g]||function(){var n=g+"";console[n]="log"in console?function(){var o=Array.apply({},arguments);o.unshift(n+":");console.log(o.join(" "))}:function(){};console[n]._fake=true}()}if(typeof a==
"undefined")a={_scopeName:"dojo",_scopePrefix:"",_scopePrefixArgs:"",_scopeSuffix:"",_scopeMap:{},_scopeMapRev:{}};var h=a;if(typeof c=="undefined")c={_scopeName:"dijit"};if(typeof d=="undefined")d={_scopeName:"dojox"};if(!h._scopeArgs)h._scopeArgs=[a,c,d];h.global=this;h.config={isDebug:false,debugAtAllCosts:false};if(f=typeof djConfig!="undefined"?djConfig:typeof dojoConfig!="undefined"?dojoConfig:null)for(var k in f)h.config[k]=f[k];a.locale=h.config.locale;k="$Rev: 24595 $".match(/\d+/);a.version=
{major:1,minor:6,patch:1,flag:"",revision:k?+k[0]:NaN,toString:function(){with(h.version)return major+"."+minor+"."+patch+flag+" ("+revision+")"}};typeof OpenAjax!="undefined"&&OpenAjax.hub.registerLibrary(a._scopeName,"http://dojotoolkit.org",h.version.toString());var l,m,p={};for(j in{toString:1}){l=[];break}a._extraNames=l=l||["hasOwnProperty","valueOf","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","constructor"];m=l.length;a._mixin=function(n,o){var q,v,r;for(q in o){v=o[q];
if(!(q in n)||n[q]!==v&&(!(q in p)||p[q]!==v))n[q]=v}if(m&&o)for(r=0;r<m;++r){q=l[r];v=o[q];if(!(q in n)||n[q]!==v&&(!(q in p)||p[q]!==v))n[q]=v}return n};a.mixin=function(n){n||(n={});for(var o=1,q=arguments.length;o<q;o++)h._mixin(n,arguments[o]);return n};a._getProp=function(n,o,q){q=q||h.global;for(var v=0,r;q&&(r=n[v]);v++){if(v==0&&h._scopeMap[r])r=h._scopeMap[r];q=r in q?q[r]:o?(q[r]={}):undefined}return q};a.setObject=function(n,o,q){var v=n.split(".");n=v.pop();return(q=h._getProp(v,true,
q))&&n?(q[n]=o):undefined};a.getObject=function(n,o,q){return h._getProp(n.split("."),o,q)};a.exists=function(n,o){return h.getObject(n,false,o)!==undefined};a.eval=function(n){return h.global.eval?h.global.eval(n):eval(n)};h.deprecated=h.experimental=function(){}})();return{dojo:a,dijit:c,dojox:d}}if(this.define)define("dojo/_base/_loader/bootstrap",[],function(){var a=b();a.dojo._dijit=a.dijit;a.dojo._dojox=a.dojox;return a.dojo});else{var e=b();dojo=e.dojo;dijit=e.dijit;dojox=e.dojox}})();
define("dojo/lib/backCompat",["require","dojo/_base/_loader/bootstrap"],function(b,e){var a=["_moduleHasPrefix","_loadPath","_loadUri","_loadUriAndCheck","loaded","_callLoaded","_getModuleSymbols","_loadModule","require","provide","platformRequire","requireIf","requireAfterIf","registerModulePath"],c,d;for(c=0;c<a.length;){d=a[c++];e[d]=function(n){return function(){console.warn("dojo."+n+" not available when using an AMD loader.")}}(d)}var f=function(n){var o=[],q;for(q=0;q<n.length;)o.push(n[q++]);
return o},j=function(n,o){return o?typeof o=="string"?function(){n[o]()}:function(){o.call(n)}:n};e.ready=e.addOnLoad=function(n,o){b.ready(o?j(n,o):n)};e.addOnLoad(function(){e.postLoad=e.config.afterOnLoad=true});if(a=e.config.addOnLoad)e.addOnLoad[a instanceof Array?"apply":"call"](e,a);var g=e._loaders=[],h=function(){var n=g.slice(0);for(Array.prototype.splice.apply(g,[0,g.length]);n.length;)n.shift().call()};g.unshift=function(){Array.prototype.unshift.apply(g,f(arguments));b.ready(h)};g.splice=
function(){Array.prototype.splice.apply(g,f(arguments));b.ready(h)};var k=e._unloaders=[];e.unloaded=function(){for(;k.length;)k.pop().call()};e._onto=function(n,o,q){n.push(q?j(o,q):o)};e._modulesLoaded=function(){};e.loadInit=function(n){n()};var l=function(n){return n.replace(/\./g,"/")};e.getL10nName=function(n,o,q){q=q?q.toLowerCase():e.locale;n="i18n!"+l(n);return/root/i.test(q)?n+"/nls/"+o:n+"/nls/"+q+"/"+o};e.requireLocalization=function(n,o,q){if(b.vendor!="altoviso.com")q=!q||q.toLowerCase()===
e.locale?"root":q;return b(e.getL10nName(n,o,q))};e.i18n={getLocalization:e.requireLocalization,normalizeLocale:function(n){n=n?n.toLowerCase():e.locale;if(n=="root")n="ROOT";return n}};var m=/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/,p=/^((([^\[:]+):)?([^@]+)@)?(\[([^\]]+)\]|([^\[:]*))(:([0-9]+))?$/;e._Url=function(){for(var n=arguments,o=[n[0]],q=1;q<n.length;q++)if(n[q]){var v=new e._Url(n[q]+"");o=new e._Url(o[0]+"");if(v.path==""&&!v.scheme&&!v.authority&&!v.query){if(v.fragment!=
null)o.fragment=v.fragment;v=o}else if(!v.scheme){v.scheme=o.scheme;if(!v.authority){v.authority=o.authority;if(v.path.charAt(0)!="/"){o=(o.path.substring(0,o.path.lastIndexOf("/")+1)+v.path).split("/");for(var r=0;r<o.length;r++)if(o[r]==".")if(r==o.length-1)o[r]="";else{o.splice(r,1);r--}else if(r>0&&!(r==1&&o[0]=="")&&o[r]==".."&&o[r-1]!="..")if(r==o.length-1){o.splice(r,1);o[r-1]=""}else{o.splice(r-1,2);r-=2}v.path=o.join("/")}}}o=[];v.scheme&&o.push(v.scheme,":");v.authority&&o.push("//",v.authority);
o.push(v.path);v.query&&o.push("?",v.query);v.fragment&&o.push("#",v.fragment)}this.uri=o.join("");q=this.uri.match(m);this.scheme=q[2]||(q[1]?"":null);this.authority=q[4]||(q[3]?"":null);this.path=q[5];this.query=q[7]||(q[6]?"":null);this.fragment=q[9]||(q[8]?"":null);if(this.authority!=null){q=this.authority.match(p);this.user=q[3]||null;this.password=q[4]||null;this.host=q[6]||q[7];this.port=q[9]||null}};e._Url.prototype.toString=function(){return this.uri};e.moduleUrl=function(n,o){if(!n)return null;
n=l(n)+(o?"/"+o:"");o="";var q=n.match(/(.+)(\.[^\/]*)$/);if(q){n=q[1];o=q[2]}return new e._Url(b.nameToUrl(n,o))};return e});
define("dojo/_base/_loader/hostenv_browser",["dojo/lib/backCompat"],function(b){if(typeof window!="undefined"){b.isBrowser=true;b._name="browser";(function(){var a=b;if(document&&document.getElementsByTagName)for(var c=document.getElementsByTagName("script"),d=/dojo(\.xd)?\.js(\W|$)/i,f=0;f<c.length;f++){var j=c[f].getAttribute("src");if(j){var g=j.match(d);if(g){if(!a.config.baseUrl)a.config.baseUrl=j.substring(0,g.index);if(c=c[f].getAttribute("djConfig")||c[f].getAttribute("data-dojo-config")){c=
eval("({ "+c+" })");for(var h in c)b.config[h]=c[h]}break}}}a.baseUrl=a.config.baseUrl;h=navigator;c=h.userAgent;d=h.appVersion;f=parseFloat(d);if(c.indexOf("Opera")>=0)a.isOpera=f;if(c.indexOf("AdobeAIR")>=0)a.isAIR=1;a.isKhtml=d.indexOf("Konqueror")>=0?f:0;a.isWebKit=parseFloat(c.split("WebKit/")[1])||undefined;a.isChrome=parseFloat(c.split("Chrome/")[1])||undefined;a.isMac=d.indexOf("Macintosh")>=0;if((j=Math.max(d.indexOf("WebKit"),d.indexOf("Safari"),0))&&!b.isChrome){a.isSafari=parseFloat(d.split("Version/")[1]);
if(!a.isSafari||parseFloat(d.substr(j+7))<=419.3)a.isSafari=2}if(c.indexOf("Gecko")>=0&&!a.isKhtml&&!a.isWebKit)a.isMozilla=a.isMoz=f;if(a.isMoz)a.isFF=parseFloat(c.split("Firefox/")[1]||c.split("Minefield/")[1])||undefined;if(document.all&&!a.isOpera){a.isIE=parseFloat(d.split("MSIE ")[1])||undefined;if((c=document.documentMode)&&c!=5&&Math.floor(a.isIE)!=c)a.isIE=c}if(b.isIE&&window.location.protocol==="file:")b.config.ieForceActiveXXhr=true;a.isQuirks=document.compatMode=="BackCompat";a.locale=
b.config.locale||(a.isIE?h.userLanguage:h.language).toLowerCase();a._XMLHTTP_PROGIDS=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];a._xhrObj=function(){var q,v;if(!b.isIE||!b.config.ieForceActiveXXhr)try{q=new XMLHttpRequest}catch(r){}if(!q)for(var s=0;s<3;++s){var w=a._XMLHTTP_PROGIDS[s];try{q=new ActiveXObject(w)}catch(u){v=u}if(q){a._XMLHTTP_PROGIDS=[w];break}}if(!q)throw new Error("XMLHTTP not available: "+v);return q};a._isDocumentOk=function(q){q=q.status||0;var v=location.protocol;
return q>=200&&q<300||q==304||q==1223||!q&&(v=="file:"||v=="chrome:"||v=="chrome-extension:"||v=="app:")};var k=window.location+"";var l=(h=document.getElementsByTagName("base"))&&h.length>0;a._getText=function(q,v){var r=a._xhrObj();if(!l&&b._Url)q=(new b._Url(k,q)).toString();if(a.config.cacheBust){q+="";q+=(q.indexOf("?")==-1?"?":"&")+String(a.config.cacheBust).replace(/\W+/g,"")}r.open("GET",q,false);try{r.send(null);if(!a._isDocumentOk(r)){var s=Error("Unable to load "+q+" status:"+r.status);
s.status=r.status;s.responseText=r.responseText;throw s;}}catch(w){if(v)return null;throw w;}return r.responseText};var m=window,p=function(q,v){var r=m.attachEvent||m.addEventListener;q=m.attachEvent?q:q.substring(2);r(q,function(){v.apply(m,arguments)},false)};a._windowUnloaders=[];a.windowUnloaded=function(){for(var q=a._windowUnloaders;q.length;)q.pop()();a=null};var n=0;a.addOnWindowUnload=function(q,v){a._onto(a._windowUnloaders,q,v);if(!n){n=1;p("onunload",a.windowUnloaded)}};var o=0;a.addOnUnload=
function(q,v){a._onto(a._unloaders,q,v);if(!o){o=1;p("onbeforeunload",b.unloaded)}}})();b._initFired=false;b._loadInit=function(){if(b._scrollIntervalId){clearInterval(b._scrollIntervalId);b._scrollIntervalId=0}if(!b._initFired){b._initFired=true;!b.config.afterOnLoad&&window.detachEvent&&window.detachEvent("onload",b._loadInit);b._inFlightCount==0&&b._modulesLoaded()}};if(!b.config.afterOnLoad)if(document.addEventListener){document.addEventListener("DOMContentLoaded",b._loadInit,false);window.addEventListener("load",
b._loadInit,false)}else if(window.attachEvent){window.attachEvent("onload",b._loadInit);if(!b.config.skipIeDomLoaded&&self===self.top)b._scrollIntervalId=setInterval(function(){try{if(document.body){document.documentElement.doScroll("left");b._loadInit()}}catch(a){}},30)}if(b.isIE)try{(function(){document.namespaces.add("v","urn:schemas-microsoft-com:vml");var a=["*","group","roundrect","oval","shape","rect","imagedata","path","textpath","text"],c=0,d=1,f=document.createStyleSheet();if(b.isIE>=8){c=
1;d=a.length}for(;c<d;++c)f.addRule("v\\:"+a[c],"behavior:url(#default#VML); display:inline-block")})()}catch(e){}}(function(){var a=b.config.modulePaths;if(a)for(var c in a)b.registerModulePath(c,a[c])})();b.config.isDebug&&b.require("dojo._firebug.firebug");if(b.config.debugAtAllCosts){b.require("dojo._base._loader.loader_debug");b.require("dojo.i18n")}return b});define("dojo/lib/kernel",["dojo/_base/_loader/hostenv_browser"],function(b){return dojo=b});
define("dojo/_base/lang",["dojo/lib/kernel"],function(b){(function(){var e=Object.prototype.toString;b.isString=function(h){return typeof h=="string"||h instanceof String};b.isArray=function(h){return h&&(h instanceof Array||typeof h=="array")};b.isFunction=function(h){return e.call(h)==="[object Function]"};b.isObject=function(h){return h!==undefined&&(h===null||typeof h=="object"||b.isArray(h)||b.isFunction(h))};b.isArrayLike=function(h){return h&&h!==undefined&&!b.isString(h)&&!b.isFunction(h)&&
!(h.tagName&&h.tagName.toLowerCase()=="form")&&(b.isArray(h)||isFinite(h.length))};b.isAlien=function(h){return h&&!b.isFunction(h)&&/\{\s*\[native code\]\s*\}/.test(String(h))};b.extend=function(h){for(var k=1,l=arguments.length;k<l;k++)b._mixin(h.prototype,arguments[k]);return h};b._hitchArgs=function(h,k){var l=b._toArray(arguments,2),m=b.isString(k);return function(){var p=b._toArray(arguments),n=m?(h||b.global)[k]:k;return n&&n.apply(h||this,l.concat(p))}};b.hitch=function(h,k){if(arguments.length>
2)return b._hitchArgs.apply(b,arguments);if(!k){k=h;h=null}if(b.isString(k)){h=h||b.global;if(!h[k])throw['dojo.hitch: scope["',k,'"] is null (scope="',h,'")'].join("");return function(){return h[k].apply(h,arguments||[])}}return!h?k:function(){return k.apply(h,arguments||[])}};b.delegate=b._delegate=function(){function h(){}return function(k,l){h.prototype=k;k=new h;h.prototype=null;l&&b._mixin(k,l);return k}}();var a=function(h,k,l){return(l||[]).concat(Array.prototype.slice.call(h,k||0))},c=function(h,
k,l){l=l||[];for(k=k||0;k<h.length;k++)l.push(h[k]);return l};b._toArray=b.isIE?function(h){return(h.item?c:a).apply(this,arguments)}:a;b.partial=function(){return b.hitch.apply(b,[null].concat(b._toArray(arguments)))};var d=b._extraNames,f=d.length,j={};b.clone=function(h){if(!h||typeof h!="object"||b.isFunction(h))return h;if(h.nodeType&&"cloneNode"in h)return h.cloneNode(true);if(h instanceof Date)return new Date(h.getTime());if(h instanceof RegExp)return new RegExp(h);var k,l,m,p;if(b.isArray(h)){k=
[];l=0;for(m=h.length;l<m;++l)l in h&&k.push(b.clone(h[l]))}else k=h.constructor?new h.constructor:{};for(p in h){m=h[p];if(!(p in k)||k[p]!==m&&(!(p in j)||j[p]!==m))k[p]=b.clone(m)}if(f)for(l=0;l<f;++l){p=d[l];m=h[p];if(!(p in k)||k[p]!==m&&(!(p in j)||j[p]!==m))k[p]=m}return k};b.trim=String.prototype.trim?function(h){return h.trim()}:function(h){return h.replace(/^\s\s*/,"").replace(/\s\s*$/,"")};var g=/\{([^\}]+)\}/g;b.replace=function(h,k,l){return h.replace(l||g,b.isFunction(k)?k:function(m,
p){return b.getObject(p,false,k)})}})();return b});
define("dojo/_base/array",["dojo/lib/kernel","dojo/_base/lang"],function(b){(function(){var e=function(c,d,f){return[typeof c=="string"?c.split(""):c,d||b.global,typeof f=="string"?new Function("item","index","array",f):f]},a=function(c,d,f,j){var g=e(d,j,f);d=g[0];f=0;for(j=d.length;f<j;++f){var h=!!g[2].call(g[1],d[f],f,d);if(c^h)return h}return c};b.mixin(b,{indexOf:function(c,d,f,j){var g=1,h=c.length||0,k=0;if(j){k=h-1;g=h=-1}if(f!=undefined)k=f;if(j&&k>h||k<h)for(;k!=h;k+=g)if(c[k]==d)return k;
return-1},lastIndexOf:function(c,d,f){return b.indexOf(c,d,f,true)},forEach:function(c,d,f){if(c&&c.length){var j=e(c,f,d);c=j[0];d=0;for(f=c.length;d<f;++d)j[2].call(j[1],c[d],d,c)}},every:function(c,d,f){return a(true,c,d,f)},some:function(c,d,f){return a(false,c,d,f)},map:function(c,d,f,j){var g=e(c,f,d);c=g[0];d=j?new j:[];f=0;for(j=c.length;f<j;++f)d.push(g[2].call(g[1],c[f],f,c));return d},filter:function(c,d,f){var j=e(c,f,d);c=j[0];d=[];f=0;for(var g=c.length;f<g;++f)j[2].call(j[1],c[f],f,
c)&&d.push(c[f]);return d}})})();return b});
define("dojo/_base/declare",["dojo/lib/kernel","dojo/_base/lang","dojo/_base/array"],function(b){(function(){function e(E,D){throw new Error("declare"+(D?" "+D:"")+": "+E);}function a(E,D){for(var B=[],F=[{cls:0,refs:[]}],G={},L=1,H=E.length,N=0,M,Q,R,aa,ea;N<H;++N){if(M=E[N])s.call(M)!="[object Function]"&&e("mixin #"+N+" is not a callable constructor.",D);else e("mixin #"+N+" is unknown. Did you use dojo.require to pull it in?",D);Q=M._meta?M._meta.bases:[M];R=0;for(M=Q.length-1;M>=0;--M){aa=Q[M].prototype;
if(!aa.hasOwnProperty("declaredClass"))aa.declaredClass="uniqName_"+u++;aa=aa.declaredClass;if(!G.hasOwnProperty(aa)){G[aa]={count:0,refs:[],cls:Q[M]};++L}aa=G[aa];if(R&&R!==aa){aa.refs.push(R);++R.count}R=aa}++R.count;F[0].refs.push(R)}for(;F.length;){R=F.pop();B.push(R.cls);for(--L;ea=R.refs,ea.length==1;){R=ea[0];if(!R||--R.count){R=0;break}B.push(R.cls);--L}if(R){N=0;for(H=ea.length;N<H;++N){R=ea[N];--R.count||F.push(R)}}}L&&e("can't build consistent linearization",D);M=E[0];B[0]=M?M._meta&&M===
B[B.length-M._meta.bases.length]?M._meta.bases.length:1:0;return B}function c(E,D,B){var F,G,L,H,N,M,Q,R=this._inherited=this._inherited||{};if(typeof E=="string"){F=E;E=D;D=B}B=0;H=E.callee;(F=F||H.nom)||e("can't deduce a name to call inherited()",this.declaredClass);N=this.constructor._meta;L=N.bases;Q=R.p;if(F!=y){if(R.c!==H){Q=0;M=L[0];N=M._meta;if(N.hidden[F]!==H){(G=N.chains)&&typeof G[F]=="string"&&e("calling chained method with inherited: "+F,this.declaredClass);do{N=M._meta;G=M.prototype;
if(N&&(G[F]===H&&G.hasOwnProperty(F)||N.hidden[F]===H))break}while(M=L[++Q]);Q=M?Q:-1}}if(M=L[++Q]){G=M.prototype;if(M._meta&&G.hasOwnProperty(F))B=G[F];else{H=r[F];do{G=M.prototype;if((B=G[F])&&(M._meta?G.hasOwnProperty(F):B!==H))break}while(M=L[++Q])}}B=M&&B||r[F]}else{if(R.c!==H){Q=0;if((N=L[0]._meta)&&N.ctor!==H){G=N.chains;if(!G||G.constructor!=="manual")e("calling chained constructor with inherited",this.declaredClass);for(;M=L[++Q];)if((N=M._meta)&&N.ctor===H)break;Q=M?Q:-1}}for(;M=L[++Q];)if(B=
(N=M._meta)?N.ctor:M)break;B=M&&B}R.c=B;R.p=Q;if(B)return D===true?B:B.apply(this,D||E)}function d(E,D){if(typeof E=="string")return this.inherited(E,D,true);return this.inherited(E,true)}function f(E){for(var D=this.constructor._meta.bases,B=0,F=D.length;B<F;++B)if(D[B]===E)return true;return this instanceof E}function j(E,D){var B,F=0,G=q._extraNames.length;for(B in D)if(B!=y&&D.hasOwnProperty(B))E[B]=D[B];for(;F<G;++F){B=q._extraNames[F];if(B!=y&&D.hasOwnProperty(B))E[B]=D[B]}}function g(E,D){var B,
F,G=0,L=q._extraNames.length;for(B in D){F=D[B];if((F!==r[B]||!(B in r))&&B!=y){if(s.call(F)=="[object Function]")F.nom=B;E[B]=F}}for(;G<L;++G){B=q._extraNames[G];F=D[B];if((F!==r[B]||!(B in r))&&B!=y){if(s.call(F)=="[object Function]")F.nom=B;E[B]=F}}return E}function h(E){g(this.prototype,E);return this}function k(E,D){return function(){var B=arguments,F=B,G=B[0],L,H;H=E.length;var N;if(!(this instanceof B.callee))return o(B);if(D&&(G&&G.preamble||this.preamble)){N=new Array(E.length);N[0]=B;for(L=
0;;){if(G=B[0])if(G=G.preamble)B=G.apply(this,B)||B;G=E[L].prototype;if(G=G.hasOwnProperty("preamble")&&G.preamble)B=G.apply(this,B)||B;if(++L==H)break;N[L]=B}}for(L=H-1;L>=0;--L){G=E[L];if(G=(H=G._meta)?H.ctor:G)G.apply(this,N?N[L]:B)}(G=this.postscript)&&G.apply(this,F)}}function l(E,D){return function(){var B=arguments,F=B,G=B[0];if(!(this instanceof B.callee))return o(B);if(D){if(G)if(G=G.preamble)F=G.apply(this,F)||F;(G=this.preamble)&&G.apply(this,F)}E&&E.apply(this,B);(G=this.postscript)&&
G.apply(this,B)}}function m(E){return function(){var D=arguments,B=0,F,G;if(!(this instanceof D.callee))return o(D);for(;F=E[B];++B)if(F=(G=F._meta)?G.ctor:F){F.apply(this,D);break}(F=this.postscript)&&F.apply(this,D)}}function p(E,D,B){return function(){var F,G,L=0,H=1;if(B){L=D.length-1;H=-1}for(;F=D[L];L+=H){G=F._meta;(F=(G?G.hidden:F.prototype)[E])&&F.apply(this,arguments)}}}function n(E){w.prototype=E.prototype;E=new w;w.prototype=null;return E}function o(E){var D=E.callee,B=n(D);D.apply(B,E);
return B}var q=b,v=q._mixin,r=Object.prototype,s=r.toString,w=new Function,u=0,y="constructor";q.declare=function(E,D,B){if(typeof E!="string"){B=D;D=E;E=""}B=B||{};var F,G,L,H,N,M,Q,R=1,aa=D;if(s.call(D)=="[object Array]"){M=a(D,E);L=M[0];R=M.length-L;D=M[R]}else{M=[0];if(D)if(s.call(D)=="[object Function]"){L=D._meta;M=M.concat(L?L.bases:D)}else e("base class is not a callable constructor.",E);else D!==null&&e("unknown base class. Did you use dojo.require to pull it in?",E)}if(D)for(G=R-1;;--G){F=
n(D);if(!G)break;L=M[G];(L._meta?j:v)(F,L.prototype);H=new Function;H.superclass=D;H.prototype=F;D=F.constructor=H}else F={};g(F,B);L=B.constructor;if(L!==r.constructor){L.nom=y;F.constructor=L}for(G=R-1;G;--G)if((L=M[G]._meta)&&L.chains)Q=v(Q||{},L.chains);if(F["-chains-"])Q=v(Q||{},F["-chains-"]);L=!Q||!Q.hasOwnProperty(y);M[0]=H=Q&&Q.constructor==="manual"?m(M):M.length==1?l(B.constructor,L):k(M,L);H._meta={bases:M,hidden:B,chains:Q,parents:aa,ctor:B.constructor};H.superclass=D&&D.prototype;H.extend=
h;H.prototype=F;F.constructor=H;F.getInherited=d;F.inherited=c;F.isInstanceOf=f;if(E){F.declaredClass=E;q.setObject(E,H)}if(Q)for(N in Q)if(F[N]&&typeof Q[N]=="string"&&N!=y){L=F[N]=p(N,M,Q[N]==="after");L.nom=N}return H};q.safeMixin=g})();return b.declare});
define("dojo/_base/connect",["dojo/lib/kernel","dojo/_base/lang"],function(b){b._listener={getDispatcher:function(){return function(){var e=Array.prototype,a=arguments.callee,c=a._listeners;a=(a=a.target)&&a.apply(this,arguments);var d;c=[].concat(c);for(d in c)d in e||c[d].apply(this,arguments);return a}},add:function(e,a,c){e=e||b.global;var d=e[a];if(!d||!d._listeners){var f=b._listener.getDispatcher();f.target=d;f._listeners=[];d=e[a]=f}return d._listeners.push(c)},remove:function(e,a,c){(e=(e||
b.global)[a])&&e._listeners&&c--&&delete e._listeners[c]}};b.connect=function(){var e=arguments,a=[],c=0;a.push(b.isString(e[0])?null:e[c++],e[c++]);var d=e[c+1];a.push(b.isString(d)||b.isFunction(d)?e[c++]:null,e[c++]);for(d=e.length;c<d;c++)a.push(e[c]);return b._connect.apply(this,a)};b._connect=function(e,a,c,d){var f=b._listener;c=f.add(e,a,b.hitch(c,d));return[e,a,c,f]};b.disconnect=function(e){if(e&&e[0]!==undefined){b._disconnect.apply(this,e);delete e[0]}};b._disconnect=function(e,a,c,d){d.remove(e,
a,c)};b._topics={};b.subscribe=function(e,a,c){return[e,b._listener.add(b._topics,e,b.hitch(a,c))]};b.unsubscribe=function(e){e&&b._listener.remove(b._topics,e[0],e[1])};b.publish=function(e,a){if(e=b._topics[e])e.apply(this,a||[])};b.connectPublisher=function(e,a,c){var d=function(){b.publish(e,arguments)};return c?b.connect(a,c,d):b.connect(a,d)};return b.connect});
define("dojo/_base/Deferred",["dojo/lib/kernel","dojo/_base/lang"],function(b){(function(){var e=function(){},a=Object.freeze||function(){};b.Deferred=function(c){function d(n){if(g)throw new Error("This deferred has already been resolved");j=n;g=true;f()}function f(){for(var n;!n&&l;){var o=l;l=l.next;if(n=o.progress==e)g=false;var q=h?o.error:o.resolved;if(q)try{var v=q(j);if(v&&typeof v.then==="function")v.then(b.hitch(o.deferred,"resolve"),b.hitch(o.deferred,"reject"));else{q=n&&v===undefined;
if(n&&!q)h=v instanceof Error;o.deferred[q&&h?"reject":"resolve"](q?j:v)}}catch(r){o.deferred.reject(r)}else h?o.deferred.reject(j):o.deferred.resolve(j)}}var j,g,h,k,l,m=this.promise={};this.resolve=this.callback=function(n){this.fired=0;this.results=[n,null];d(n)};this.reject=this.errback=function(n){h=true;this.fired=1;d(n);this.results=[null,n];if(!n||n.log!==false)(b.config.deferredOnError||function(o){console.error(o)})(n)};this.progress=function(n){for(var o=l;o;){var q=o.progress;q&&q(n);
o=o.next}};this.addCallbacks=function(n,o){this.then(n,o,e);return this};this.then=m.then=function(n,o,q){var v=q==e?this:new b.Deferred(m.cancel);n={resolved:n,error:o,progress:q,deferred:v};if(l)k=k.next=n;else l=k=n;g&&f();return v.promise};var p=this;this.cancel=m.cancel=function(){if(!g){var n=c&&c(p);if(!g){n instanceof Error||(n=new Error(n));n.log=false;p.reject(n)}}};a(m)};b.extend(b.Deferred,{addCallback:function(){return this.addCallbacks(b.hitch.apply(b,arguments))},addErrback:function(){return this.addCallbacks(null,
b.hitch.apply(b,arguments))},addBoth:function(){var c=b.hitch.apply(b,arguments);return this.addCallbacks(c,c)},fired:-1})})();b.when=function(e,a,c,d){if(e&&typeof e.then==="function")return e.then(a,c,d);return a(e)};return b.Deferred});
define("dojo/_base/json",["dojo/lib/kernel"],function(b){b.fromJson=function(e){return eval("("+e+")")};b._escapeString=function(e){return('"'+e.replace(/(["\\])/g,"\\$1")+'"').replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r")};b.toJsonIndentStr="\t";b.toJson=function(e,a,c){if(e===undefined)return"undefined";var d=typeof e;if(d=="number"||d=="boolean")return e+"";if(e===null)return"null";if(b.isString(e))return b._escapeString(e);var f=
arguments.callee,j;c=c||"";var g=a?c+b.toJsonIndentStr:"";j=e.__json__||e.json;if(b.isFunction(j)){j=j.call(e);if(e!==j)return f(j,a,g)}if(e.nodeType&&e.cloneNode)throw new Error("Can't serialize DOM nodes");j=a?" ":"";var h=a?"\n":"";if(b.isArray(e))return"["+b.map(e,function(p){p=f(p,a,g);if(typeof p!="string")p="undefined";return h+g+p}).join(","+j)+h+c+"]";if(d=="function")return null;d=[];var k;for(k in e){var l,m;if(typeof k=="number")l='"'+k+'"';else if(typeof k=="string")l=b._escapeString(k);
else continue;m=f(e[k],a,g);typeof m=="string"&&d.push(h+g+l+":"+j+m)}return"{"+d.join(","+j)+h+c+"}"};return b});
define("dojo/_base/Color",["dojo/lib/kernel","dojo/_base/array","dojo/_base/lang"],function(b){(function(){b.Color=function(e){e&&this.setColor(e)};b.Color.named={black:[0,0,0],silver:[192,192,192],gray:[128,128,128],white:[255,255,255],maroon:[128,0,0],red:[255,0,0],purple:[128,0,128],fuchsia:[255,0,255],green:[0,128,0],lime:[0,255,0],olive:[128,128,0],yellow:[255,255,0],navy:[0,0,128],blue:[0,0,255],teal:[0,128,128],aqua:[0,255,255],transparent:b.config.transparentColor||[255,255,255]};b.extend(b.Color,
{r:255,g:255,b:255,a:1,_set:function(e,a,c,d){this.r=e;this.g=a;this.b=c;this.a=d},setColor:function(e){if(b.isString(e))b.colorFromString(e,this);else if(b.isArray(e))b.colorFromArray(e,this);else{this._set(e.r,e.g,e.b,e.a);e instanceof b.Color||this.sanitize()}return this},sanitize:function(){return this},toRgb:function(){return[this.r,this.g,this.b]},toRgba:function(){return[this.r,this.g,this.b,this.a]},toHex:function(){return"#"+b.map(["r","g","b"],function(e){e=this[e].toString(16);return e.length<
2?"0"+e:e},this).join("")},toCss:function(e){var a=this.r+", "+this.g+", "+this.b;return(e?"rgba("+a+", "+this.a:"rgb("+a)+")"},toString:function(){return this.toCss(true)}});b.blendColors=function(e,a,c,d){var f=d||new b.Color;b.forEach(["r","g","b","a"],function(j){f[j]=e[j]+(a[j]-e[j])*c;if(j!="a")f[j]=Math.round(f[j])});return f.sanitize()};b.colorFromRgb=function(e,a){return(e=e.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/))&&b.colorFromArray(e[1].split(/\s*,\s*/),a)};b.colorFromHex=function(e,
a){var c=a||new b.Color,d=e.length==4?4:8,f=(1<<d)-1;e=Number("0x"+e.substr(1));if(isNaN(e))return null;b.forEach(["b","g","r"],function(j){var g=e&f;e>>=d;c[j]=d==4?17*g:g});c.a=1;return c};b.colorFromArray=function(e,a){a=a||new b.Color;a._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3]));if(isNaN(a.a))a.a=1;return a.sanitize()};b.colorFromString=function(e,a){var c=b.Color.named[e];return c&&b.colorFromArray(c,a)||b.colorFromRgb(e,a)||b.colorFromHex(e,a)}})();return b.Color});
define("dojo/_base/window",["dojo/lib/kernel"],function(b){b.doc=window.document||null;b.body=function(){return b.doc.body||b.doc.getElementsByTagName("body")[0]};b.setContext=function(e,a){b.global=e;b.doc=a};b.withGlobal=function(e,a,c,d){var f=b.global;try{b.global=e;return b.withDoc.call(null,e.document,a,c,d)}finally{b.global=f}};b.withDoc=function(e,a,c,d){var f=b.doc,j=b._bodyLtr,g=b.isQuirks;try{b.doc=e;delete b._bodyLtr;b.isQuirks=b.doc.compatMode=="BackCompat";if(c&&typeof a=="string")a=
c[a];return a.apply(c,d||[])}finally{b.doc=f;delete b._bodyLtr;if(j!==undefined)b._bodyLtr=j;b.isQuirks=g}};return b});
define("dojo/_base/event",["dojo/lib/kernel","dojo/_base/connect"],function(b){(function(){var e=b._event_listener={add:function(h,k,l){if(h){k=e._normalizeEventName(k);l=e._fixCallback(k,l);if(!b.isIE&&(k=="mouseenter"||k=="mouseleave")){var m=l;k=k=="mouseenter"?"mouseover":"mouseout";l=function(p){if(!b.isDescendant(p.relatedTarget,h))return m.call(this,p)}}h.addEventListener(k,l,false);return l}},remove:function(h,k,l){if(h){k=e._normalizeEventName(k);if(!b.isIE&&(k=="mouseenter"||k=="mouseleave"))k=
k=="mouseenter"?"mouseover":"mouseout";h.removeEventListener(k,l,false)}},_normalizeEventName:function(h){return h.slice(0,2)=="on"?h.slice(2):h},_fixCallback:function(h,k){return h!="keypress"?k:function(l){return k.call(this,e._fixEvent(l,this))}},_fixEvent:function(h){switch(h.type){case "keypress":e._setKeyChar(h);break}return h},_setKeyChar:function(h){h.keyChar=h.charCode>=32?String.fromCharCode(h.charCode):"";h.charOrCode=h.keyChar||h.keyCode},_punctMap:{106:42,111:47,186:59,187:43,188:44,
189:45,190:46,191:47,192:96,219:91,220:92,221:93,222:39}};b.fixEvent=function(h,k){return e._fixEvent(h,k)};b.stopEvent=function(h){h.preventDefault();h.stopPropagation()};var a=b._listener;b._connect=function(h,k,l,m,p){p=h&&(h.nodeType||h.attachEvent||h.addEventListener)?p?2:1:0;l=[b._listener,e,a][p].add(h,k,b.hitch(l,m));return[h,k,l,p]};b._disconnect=function(h,k,l,m){[b._listener,e,a][m].remove(h,k,l)};b.keys={BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,META:b.isSafari?91:224,
PAUSE:19,CAPS_LOCK:20,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,INSERT:45,DELETE:46,HELP:47,LEFT_WINDOW:91,RIGHT_WINDOW:92,SELECT:93,NUMPAD_0:96,NUMPAD_1:97,NUMPAD_2:98,NUMPAD_3:99,NUMPAD_4:100,NUMPAD_5:101,NUMPAD_6:102,NUMPAD_7:103,NUMPAD_8:104,NUMPAD_9:105,NUMPAD_MULTIPLY:106,NUMPAD_PLUS:107,NUMPAD_ENTER:108,NUMPAD_MINUS:109,NUMPAD_PERIOD:110,NUMPAD_DIVIDE:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,
F11:122,F12:123,F13:124,F14:125,F15:126,NUM_LOCK:144,SCROLL_LOCK:145,copyKey:b.isMac&&!b.isAIR?b.isSafari?91:224:17};var c=b.isMac?"metaKey":"ctrlKey";b.isCopyKey=function(h){return h[c]};b.mouseButtons=b.isIE<9||b.isIE&&b.isQuirks?{LEFT:1,MIDDLE:4,RIGHT:2,isButton:function(h,k){return h.button&k},isLeft:function(h){return h.button&1},isMiddle:function(h){return h.button&4},isRight:function(h){return h.button&2}}:{LEFT:0,MIDDLE:1,RIGHT:2,isButton:function(h,k){return h.button==k},isLeft:function(h){return h.button==
0},isMiddle:function(h){return h.button==1},isRight:function(h){return h.button==2}};if(b.isIE){var d=function(h,k){try{return h.keyCode=k}catch(l){return 0}},f=b._listener,j=b._ieListenersName="_"+b._scopeName+"_listeners";if(!b.config._allow_leaks){a=f=b._ie_listener={handlers:[],add:function(h,k,l){h=h||b.global;var m=h[k];if(!m||!m[j]){var p=b._getIeDispatcher();p.target=m&&g.push(m)-1;p[j]=[];m=h[k]=p}return m[j].push(g.push(l)-1)},remove:function(h,k,l){k=(h=(h||b.global)[k])&&h[j];if(h&&k&&
l--){delete g[k[l]];delete k[l]}}};var g=f.handlers}b.mixin(e,{add:function(h,k,l){if(h){k=e._normalizeEventName(k);if(k=="onkeypress"){var m=h.onkeydown;if(!m||!m[j]||!m._stealthKeydownHandle){var p=e.add(h,"onkeydown",e._stealthKeyDown);m=h.onkeydown;m._stealthKeydownHandle=p;m._stealthKeydownRefs=1}else m._stealthKeydownRefs++}return f.add(h,k,e._fixCallback(l))}},remove:function(h,k,l){k=e._normalizeEventName(k);f.remove(h,k,l);if(k=="onkeypress"){k=h.onkeydown;if(--k._stealthKeydownRefs<=0){f.remove(h,
"onkeydown",k._stealthKeydownHandle);delete k._stealthKeydownHandle}}},_normalizeEventName:function(h){return h.slice(0,2)!="on"?"on"+h:h},_nop:function(){},_fixEvent:function(h,k){if(!h)h=(k&&(k.ownerDocument||k.document||k).parentWindow||window).event;if(!h)return h;h.target=h.srcElement;h.currentTarget=k||h.srcElement;h.layerX=h.offsetX;h.layerY=h.offsetY;k=(k=h.srcElement)&&k.ownerDocument||document;k=b.isIE<6||k.compatMode=="BackCompat"?k.body:k.documentElement;var l=b._getIeDocumentElementOffset();
h.pageX=h.clientX+b._fixIeBiDiScrollLeft(k.scrollLeft||0)-l.x;h.pageY=h.clientY+(k.scrollTop||0)-l.y;if(h.type=="mouseover")h.relatedTarget=h.fromElement;if(h.type=="mouseout")h.relatedTarget=h.toElement;if(b.isIE<9||b.isQuirks){h.stopPropagation=e._stopPropagation;h.preventDefault=e._preventDefault}return e._fixKeys(h)},_fixKeys:function(h){switch(h.type){case "keypress":var k="charCode"in h?h.charCode:h.keyCode;if(k==10){k=0;h.keyCode=13}else if(k==13||k==27)k=0;else if(k==3)k=99;h.charCode=k;e._setKeyChar(h);
break}return h},_stealthKeyDown:function(h){var k=h.currentTarget.onkeypress;if(k&&k[j]){var l=h.keyCode,m=(l!=13||b.isIE>=9&&!b.isQuirks)&&l!=32&&l!=27&&(l<48||l>90)&&(l<96||l>111)&&(l<186||l>192)&&(l<219||l>222);if(m||h.ctrlKey){m=m?0:l;if(h.ctrlKey)if(l==3||l==13)return;else if(m>95&&m<106)m-=48;else if(!h.shiftKey&&m>=65&&m<=90)m+=32;else m=e._punctMap[m]||m;l=e._synthesizeEvent(h,{type:"keypress",faux:true,charCode:m});k.call(h.currentTarget,l);if(b.isIE<9||b.isIE&&b.isQuirks)h.cancelBubble=
l.cancelBubble;h.returnValue=l.returnValue;d(h,l.keyCode)}}},_stopPropagation:function(){this.cancelBubble=true},_preventDefault:function(){this.bubbledKeyCode=this.keyCode;this.ctrlKey&&d(this,0);this.returnValue=false}});b.stopEvent=b.isIE<9||b.isQuirks?function(h){h=h||window.event;e._stopPropagation.call(h);e._preventDefault.call(h)}:b.stopEvent}e._synthesizeEvent=function(h,k){k=b.mixin({},h,k);e._setKeyChar(k);k.preventDefault=function(){h.preventDefault()};k.stopPropagation=function(){h.stopPropagation()};
return k};b.isOpera&&b.mixin(e,{_fixEvent:function(h){switch(h.type){case "keypress":var k=h.which;if(k==3)k=99;k=k<41&&!h.shiftKey?0:k;if(h.ctrlKey&&!h.shiftKey&&k>=65&&k<=90)k+=32;return e._synthesizeEvent(h,{charCode:k})}return h}});if(b.isWebKit){e._add=e.add;e._remove=e.remove;b.mixin(e,{add:function(h,k,l){if(h){var m=e._add(h,k,l);if(e._normalizeEventName(k)=="keypress")m._stealthKeyDownHandle=e._add(h,"keydown",function(p){var n=p.keyCode,o=n!=13&&n!=32&&(n<48||n>90)&&(n<96||n>111)&&(n<186||
n>192)&&(n<219||n>222);if(o||p.ctrlKey){o=o?0:n;if(p.ctrlKey)if(n==3||n==13)return;else if(o>95&&o<106)o-=48;else if(!p.shiftKey&&o>=65&&o<=90)o+=32;else o=e._punctMap[o]||o;n=e._synthesizeEvent(p,{type:"keypress",faux:true,charCode:o});l.call(p.currentTarget,n)}});return m}},remove:function(h,k,l){if(h){l._stealthKeyDownHandle&&e._remove(h,"keydown",l._stealthKeyDownHandle);e._remove(h,k,l)}},_fixEvent:function(h){switch(h.type){case "keypress":if(h.faux)return h;var k=h.charCode;k=k>=32?k:0;return e._synthesizeEvent(h,
{charCode:k,faux:true})}return h}})}})();if(b.isIE){b._ieDispatcher=function(e,a){var c=Array.prototype,d=b._ie_listener.handlers,f=e.callee,j=f[b._ieListenersName];f=(f=d[f.target])&&f.apply(a,e);j=[].concat(j);for(var g in j){var h=d[j[g]];!(g in c)&&h&&h.apply(a,e)}return f};b._getIeDispatcher=function(){return new Function(b._scopeName+"._ieDispatcher(arguments, this)")};b._event_listener._fixCallback=function(e){var a=b._event_listener._fixEvent;return function(c){return e.call(this,a(c,this))}}}return b.connect});
define("dojo/_base/html",["dojo/lib/kernel","dojo/_base/lang"],function(b){try{document.execCommand("BackgroundImageCache",false,true)}catch(e){}b.byId=b.isIE?function(a,c){if(typeof a!="string")return a;var d=c||b.doc;if((c=d.getElementById(a))&&(c.attributes.id.value==a||c.id==a))return c;else{var f=d.all[a];if(!f||f.nodeName)f=[f];for(var j=0;c=f[j++];)if(c.attributes&&c.attributes.id&&c.attributes.id.value==a||c.id==a)return c}}:function(a,c){return(typeof a=="string"?(c||b.doc).getElementById(a):
a)||null};(function(){var a=b.byId,c=null,d;b.addOnWindowUnload(function(){c=null});b._destroyElement=b.destroy=function(t){t=a(t);try{var x=t.ownerDocument;if(!c||d!=x){c=x.createElement("div");d=x}c.appendChild(t.parentNode?t.parentNode.removeChild(t):t);c.innerHTML=""}catch(A){}};b.isDescendant=function(t,x){try{t=a(t);for(x=a(x);t;){if(t==x)return true;t=t.parentNode}}catch(A){}return false};b.setSelectable=function(t,x){t=a(t);if(b.isMozilla)t.style.MozUserSelect=x?"":"none";else if(b.isKhtml||
b.isWebKit)t.style.KhtmlUserSelect=x?"auto":"none";else if(b.isIE){x=t.unselectable=x?"":"on";b.query("*",t).forEach("item.unselectable = '"+x+"'")}};var f=function(t,x){var A=x.parentNode;A&&A.insertBefore(t,x)},j=function(t,x){var A=x.parentNode;if(A)A.lastChild==x?A.appendChild(t):A.insertBefore(t,x.nextSibling)};b.place=function(t,x,A){x=a(x);if(typeof t=="string")t=/^\s*</.test(t)?b._toDom(t,x.ownerDocument):a(t);if(typeof A=="number"){var K=x.childNodes;!K.length||K.length<=A?x.appendChild(t):
f(t,K[A<0?0:A])}else switch(A){case "before":f(t,x);break;case "after":j(t,x);break;case "replace":x.parentNode.replaceChild(t,x);break;case "only":b.empty(x);x.appendChild(t);break;case "first":if(x.firstChild){f(t,x.firstChild);break}default:x.appendChild(t)}return t};b.boxModel="content-box";if(b.isIE)b.boxModel=document.compatMode=="BackCompat"?"border-box":"content-box";var g;g=b.isWebKit?function(t){var x;if(t.nodeType==1){var A=t.ownerDocument.defaultView;x=A.getComputedStyle(t,null);if(!x&&
t.style){t.style.display="";x=A.getComputedStyle(t,null)}}return x||{}}:b.isIE?function(t){return t.nodeType==1?t.currentStyle:{}}:function(t){return t.nodeType==1?t.ownerDocument.defaultView.getComputedStyle(t,null):{}};b.getComputedStyle=g;b._toPixelValue=b.isIE?function(t,x){if(!x)return 0;if(x=="medium")return 4;if(x.slice&&x.slice(-2)=="px")return parseFloat(x);with(t){t=style.left;var A=runtimeStyle.left;runtimeStyle.left=currentStyle.left;try{style.left=x;x=style.pixelLeft}catch(K){x=0}style.left=
t;runtimeStyle.left=A}return x}:function(t,x){return parseFloat(x)||0};var h=b._toPixelValue,k=function(t,x){try{return t.filters.item("DXImageTransform.Microsoft.Alpha")}catch(A){return x?{}:null}};b._getOpacity=b.isIE<9?function(t){try{return k(t).Opacity/100}catch(x){return 1}}:function(t){return g(t).opacity};b._setOpacity=b.isIE<9?function(t,x){var A=x*100,K=x==1;t.style.zoom=K?"":1;if(k(t))k(t,1).Opacity=A;else{if(K)return x;t.style.filter+=" progid:DXImageTransform.Microsoft.Alpha(Opacity="+
A+")"}k(t,1).Enabled=!K;t.nodeName.toLowerCase()=="tr"&&b.query("> td",t).forEach(function(O){b._setOpacity(O,x)});return x}:function(t,x){return t.style.opacity=x};var l={left:true,top:true},m=/margin|padding|width|height|max|min|offset/,p=function(t,x,A){x=x.toLowerCase();if(b.isIE){if(A=="auto"){if(x=="height")return t.offsetHeight;if(x=="width")return t.offsetWidth}if(x=="fontweight")switch(A){case 700:return"bold";case 400:default:return"normal"}}x in l||(l[x]=m.test(x));return l[x]?h(t,A):A},
n=b.isIE?"styleFloat":"cssFloat",o={cssFloat:n,styleFloat:n,"float":n};b.style=function(t,x,A){var K=a(t),O=arguments.length,S=x=="opacity";x=o[x]||x;if(O==3)return S?b._setOpacity(K,A):(K.style[x]=A);if(O==2&&S)return b._getOpacity(K);S=g(K);if(O==2&&typeof x!="string"){for(var Y in x)b.style(t,Y,x[Y]);return S}return O==1?S:p(K,x,S[x]||K.style[x])};b._getPadExtents=function(t,x){x=x||g(t);var A=h(t,x.paddingLeft),K=h(t,x.paddingTop);return{l:A,t:K,w:A+h(t,x.paddingRight),h:K+h(t,x.paddingBottom)}};
b._getBorderExtents=function(t,x){x=x||g(t);var A=x.borderLeftStyle!="none"?h(t,x.borderLeftWidth):0,K=x.borderTopStyle!="none"?h(t,x.borderTopWidth):0;return{l:A,t:K,w:A+(x.borderRightStyle!="none"?h(t,x.borderRightWidth):0),h:K+(x.borderBottomStyle!="none"?h(t,x.borderBottomWidth):0)}};b._getPadBorderExtents=function(t,x){var A=x||g(t);x=b._getPadExtents(t,A);t=b._getBorderExtents(t,A);return{l:x.l+t.l,t:x.t+t.t,w:x.w+t.w,h:x.h+t.h}};b._getMarginExtents=function(t,x){x=x||g(t);var A=h(t,x.marginLeft),
K=h(t,x.marginTop),O=h(t,x.marginRight);t=h(t,x.marginBottom);if(b.isWebKit&&x.position!="absolute")O=A;return{l:A,t:K,w:A+O,h:K+t}};b._getMarginBox=function(t,x){var A=x||g(t);x=b._getMarginExtents(t,A);var K=t.offsetLeft-x.l,O=t.offsetTop-x.t,S=t.parentNode;if(b.isMoz){var Y=parseFloat(A.left);A=parseFloat(A.top);if(!isNaN(Y)&&!isNaN(A)){K=Y;O=A}else if(S&&S.style){Y=g(S);if(Y.overflow!="visible"){S=b._getBorderExtents(S,Y);K+=S.l;O+=S.t}}}else if(b.isOpera||b.isIE>7&&!b.isQuirks)if(S){S=b._getBorderExtents(S);
K-=S.l;O-=S.t}return{l:K,t:O,w:t.offsetWidth+x.w,h:t.offsetHeight+x.h}};b._getMarginSize=function(t,x){t=a(t);x=b._getMarginExtents(t,x||g(t));t=t.getBoundingClientRect();return{w:t.right-t.left+x.w,h:t.bottom-t.top+x.h}};b._getContentBox=function(t,x){var A=x||g(t);x=b._getPadExtents(t,A);A=b._getBorderExtents(t,A);var K=t.clientWidth;if(K){t=t.clientHeight;A.w=A.h=0}else{K=t.offsetWidth;t=t.offsetHeight}if(b.isOpera){x.l+=A.l;x.t+=A.t}return{l:x.l,t:x.t,w:K-x.w-A.w,h:t-x.h-A.h}};b._getBorderBox=
function(t,x){var A=x||g(t);x=b._getPadExtents(t,A);t=b._getContentBox(t,A);return{l:t.l-x.l,t:t.t-x.t,w:t.w+x.w,h:t.h+x.h}};b._setBox=function(t,x,A,K,O,S){S=S||"px";t=t.style;if(!isNaN(x))t.left=x+S;if(!isNaN(A))t.top=A+S;if(K>=0)t.width=K+S;if(O>=0)t.height=O+S};b._isButtonTag=function(t){return t.tagName=="BUTTON"||t.tagName=="INPUT"&&(t.getAttribute("type")||"").toUpperCase()=="BUTTON"};b._usesBorderBox=function(t){var x=t.tagName;return b.boxModel=="border-box"||x=="TABLE"||b._isButtonTag(t)};
b._setContentSize=function(t,x,A,K){if(b._usesBorderBox(t)){K=b._getPadBorderExtents(t,K);if(x>=0)x+=K.w;if(A>=0)A+=K.h}b._setBox(t,NaN,NaN,x,A)};b._setMarginBox=function(t,x,A,K,O,S){var Y=S||g(t);S=b._usesBorderBox(t)?q:b._getPadBorderExtents(t,Y);if(b.isWebKit)if(b._isButtonTag(t)){var fa=t.style;if(K>=0&&!fa.width)fa.width="4px";if(O>=0&&!fa.height)fa.height="4px"}Y=b._getMarginExtents(t,Y);if(K>=0)K=Math.max(K-S.w-Y.w,0);if(O>=0)O=Math.max(O-S.h-Y.h,0);b._setBox(t,x,A,K,O)};var q={l:0,t:0,w:0,
h:0};b.marginBox=function(t,x){t=a(t);var A=g(t);return!x?b._getMarginBox(t,A):b._setMarginBox(t,x.l,x.t,x.w,x.h,A)};b.contentBox=function(t,x){t=a(t);var A=g(t);return!x?b._getContentBox(t,A):b._setContentSize(t,x.w,x.h,A)};b._docScroll=function(){var t=b.global;return"pageXOffset"in t?{x:t.pageXOffset,y:t.pageYOffset}:(t=b.isQuirks?b.doc.body:b.doc.documentElement,{x:b._fixIeBiDiScrollLeft(t.scrollLeft||0),y:t.scrollTop||0})};b._isBodyLtr=function(){return"_bodyLtr"in b?b._bodyLtr:(b._bodyLtr=(b.body().dir||
b.doc.documentElement.dir||"ltr").toLowerCase()=="ltr")};b._getIeDocumentElementOffset=function(){var t=b.doc.documentElement;if(b.isIE<8){var x=t.getBoundingClientRect(),A=x.left;x=x.top;if(b.isIE<7){A+=t.clientLeft;x+=t.clientTop}return{x:A<0?0:A,y:x<0?0:x}}else return{x:0,y:0}};b._fixIeBiDiScrollLeft=function(t){var x=b.isIE;if(x&&!b._isBodyLtr()){var A=b.isQuirks,K=A?b.doc.body:b.doc.documentElement;if(x==6&&!A&&b.global.frameElement&&K.scrollHeight>K.clientHeight)t+=K.clientLeft;return x<8||
A?t+K.clientWidth-K.scrollWidth:-t}return t};b._abs=b.position=function(t,x){t=a(t);var A=b.body(),K=A.parentNode;t=t.getBoundingClientRect();t={x:t.left,y:t.top,w:t.right-t.left,h:t.bottom-t.top};if(b.isIE){K=b._getIeDocumentElementOffset();t.x-=K.x+(b.isQuirks?A.clientLeft+A.offsetLeft:0);t.y-=K.y+(b.isQuirks?A.clientTop+A.offsetTop:0)}else if(b.isFF==3){A=g(K);t.x-=h(K,A.marginLeft)+h(K,A.borderLeftWidth);t.y-=h(K,A.marginTop)+h(K,A.borderTopWidth)}if(x){x=b._docScroll();t.x+=x.x;t.y+=x.y}return t};
b.coords=function(t,x){t=a(t);var A=g(t);A=b._getMarginBox(t,A);x=b.position(t,x);A.x=x.x;A.y=x.y;return A};var v={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",valuetype:"valueType"},r={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"},s={innerHTML:1,className:1,htmlFor:b.isIE,value:1},w=function(t){return r[t.toLowerCase()]||t},u=function(t,x){return(t=t.getAttributeNode&&t.getAttributeNode(x))&&
t.specified};b.hasAttr=function(t,x){var A=x.toLowerCase();return s[v[A]||x]||u(a(t),r[A]||x)};var y={},E=0,D=b._scopeName+"attrid",B={col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1};b.attr=function(t,x,A){t=a(t);var K=arguments.length;if(K==2&&typeof x!="string"){for(var O in x)b.attr(t,O,x[O]);return t}var S=x.toLowerCase();O=v[S]||x;var Y=s[O];S=r[S]||x;if(K==3){if(O=="style"&&typeof A!="string")b.style(t,A);else if(O=="innerHTML")if(b.isIE&&t.tagName.toLowerCase()in B){b.empty(t);
t.appendChild(b._toDom(A,t.ownerDocument))}else t[O]=A;else if(b.isFunction(A)){K=b.attr(t,D);if(!K){K=E++;b.attr(t,D,K)}y[K]||(y[K]={});if(Y=y[K][O])b.disconnect(Y);else try{delete t[O]}catch(fa){}y[K][O]=b.connect(t,O,A)}else if(Y||typeof A=="boolean")t[O]=A;else t.setAttribute(S,A);return t}A=t[O];if(Y&&typeof A!="undefined")return A;if(O!="href"&&(typeof A=="boolean"||b.isFunction(A)))return A;return u(t,S)?t.getAttribute(S):null};b.removeAttr=function(t,x){a(t).removeAttribute(w(x))};b.getNodeProp=
function(t,x){t=a(t);var A=x.toLowerCase(),K=v[A]||x;if(K in t&&K!="href")return t[K];x=r[A]||x;return u(t,x)?t.getAttribute(x):null};b.create=function(t,x,A,K){var O=b.doc;if(A){A=a(A);O=A.ownerDocument}if(typeof t=="string")t=O.createElement(t);x&&b.attr(t,x);A&&b.place(t,A,K);return t};b.empty=b.isIE?function(t){t=a(t);for(var x;x=t.lastChild;)b.destroy(x)}:function(t){a(t).innerHTML=""};var F={option:["select"],tbody:["table"],thead:["table"],tfoot:["table"],tr:["table","tbody"],td:["table","tbody",
"tr"],th:["table","thead","tr"],legend:["fieldset"],caption:["table"],colgroup:["table"],col:["table","colgroup"],li:["ul"]},G=/<\s*([\w\:]+)/,L={},H=0,N="__"+b._scopeName+"ToDomId";for(var M in F)if(F.hasOwnProperty(M)){var Q=F[M];Q.pre=M=="option"?'<select multiple="multiple">':"<"+Q.join("><")+">";Q.post="</"+Q.reverse().join("></")+">"}b._toDom=function(t,x){x=x||b.doc;var A=x[N];if(!A){x[N]=A=++H+"";L[A]=x.createElement("div")}t+="";var K=t.match(G),O=K?K[1].toLowerCase():"";A=L[A];if(K&&F[O]){K=
F[O];A.innerHTML=K.pre+t+K.post;for(t=K.length;t;--t)A=A.firstChild}else A.innerHTML=t;if(A.childNodes.length==1)return A.removeChild(A.firstChild);for(t=x.createDocumentFragment();x=A.firstChild;)t.appendChild(x);return t};var R="className";b.hasClass=function(t,x){return(" "+a(t)[R]+" ").indexOf(" "+x+" ")>=0};var aa=/\s+/,ea=[""],ha={},la=function(t){if(typeof t=="string"||t instanceof String)if(t.indexOf(" ")<0){ea[0]=t;return ea}else return t.split(aa);return t||""};b.addClass=function(t,x){t=
a(t);x=la(x);var A=t[R],K;A=A?" "+A+" ":" ";K=A.length;for(var O=0,S=x.length,Y;O<S;++O)if((Y=x[O])&&A.indexOf(" "+Y+" ")<0)A+=Y+" ";if(K<A.length)t[R]=A.substr(1,A.length-2)};b.removeClass=function(t,x){t=a(t);var A;if(x!==undefined){x=la(x);A=" "+t[R]+" ";for(var K=0,O=x.length;K<O;++K)A=A.replace(" "+x[K]+" "," ");A=b.trim(A)}else A="";if(t[R]!=A)t[R]=A};b.replaceClass=function(t,x,A){t=a(t);ha.className=t.className;b.removeClass(ha,A);b.addClass(ha,x);if(t.className!==ha.className)t.className=
ha.className};b.toggleClass=function(t,x,A){if(A===undefined)A=!b.hasClass(t,x);b[A?"addClass":"removeClass"](t,x)}})();return b});
define("dojo/_base/NodeList",["dojo/lib/kernel","dojo/_base/lang","dojo/_base/array","dojo/_base/connect","dojo/_base/html"],function(b){(function(){var e=Array.prototype,a=e.slice,c=e.concat,d=function(n,o,q){n.sort||(n=a.call(n,0));q=q||this._NodeListCtor||b._NodeListCtor;n.constructor=q;b._mixin(n,q.prototype);n._NodeListCtor=q;return o?n._stash(o):n},f=function(n,o,q){o=[0].concat(a.call(o,0));q=q||b.global;return function(v){o[0]=v;return n.apply(q,o)}},j=function(n,o){return function(){this.forEach(f(n,
arguments,o));return this}},g=function(n,o){return function(){return this.map(f(n,arguments,o))}},h=function(n,o,q){return function(){var v=arguments,r=f(n,v,q);if(o.call(q||b.global,v))return this.map(r);this.forEach(r);return this}},k=function(n){return n.length==1&&typeof n[0]=="string"},l=function(n){var o=n.parentNode;o&&o.removeChild(n)};b.NodeList=function(){return d(Array.apply(null,arguments))};var m=b._NodeListCtor=b.NodeList,p=m.prototype;m._wrap=p._wrap=d;m._adaptAsMap=g;m._adaptAsForEach=
j;m._adaptAsFilter=function(n,o){return function(){return this.filter(f(n,arguments,o))}};m._adaptWithCondition=h;b.forEach(["slice","splice"],function(n){var o=e[n];p[n]=function(){return this._wrap(o.apply(this,arguments),n=="slice"?this:null)}});b.forEach(["indexOf","lastIndexOf","every","some"],function(n){var o=b[n];p[n]=function(){return o.apply(b,[this].concat(a.call(arguments,0)))}});b.forEach(["attr","style"],function(n){p[n]=h(b[n],k)});b.forEach(["connect","addClass","removeClass","replaceClass",
"toggleClass","empty","removeAttr"],function(n){p[n]=j(b[n])});b.extend(b.NodeList,{_normalize:function(n,o){var q=n.parse===true?true:false;if(typeof n.template=="string"){var v=n.templateFunc||b.string&&b.string.substitute;n=v?v(n.template,n):n}v=typeof n;if(v=="string"||v=="number"){n=b._toDom(n,o&&o.ownerDocument);n=n.nodeType==11?b._toArray(n.childNodes):[n]}else if(b.isArrayLike(n))b.isArray(n)||(n=b._toArray(n));else n=[n];if(q)n._runParse=true;return n},_cloneNode:function(n){return n.cloneNode(true)},
_place:function(n,o,q,v){if(!(o.nodeType!=1&&q=="only")){o=o;for(var r,s=n.length,w=s-1;w>=0;w--){var u=v?this._cloneNode(n[w]):n[w];if(n._runParse&&b.parser&&b.parser.parse){r||(r=o.ownerDocument.createElement("div"));r.appendChild(u);b.parser.parse(r);for(u=r.firstChild;r.firstChild;)r.removeChild(r.firstChild)}w==s-1?b.place(u,o,q):o.parentNode.insertBefore(u,o);o=u}}},_stash:function(n){this._parent=n;return this},end:function(){return this._parent?this._parent:new this._NodeListCtor},concat:function(){var n=
b.isArray(this)?this:a.call(this,0),o=b.map(arguments,function(q){return q&&!b.isArray(q)&&(typeof NodeList!="undefined"&&q.constructor===NodeList||q.constructor===this._NodeListCtor)?a.call(q,0):q});return this._wrap(c.apply(n,o),this)},map:function(n,o){return this._wrap(b.map(this,n,o),this)},forEach:function(n,o){b.forEach(this,n,o);return this},coords:g(b.coords),position:g(b.position),place:function(n,o){var q=b.query(n)[0];return this.forEach(function(v){b.place(v,q,o)})},orphan:function(n){return(n?
b._filterQueryResult(this,n):this).forEach(l)},adopt:function(n,o){return b.query(n).place(this[0],o)._stash(this)},query:function(n){if(!n)return this;var o=this.map(function(q){return b.query(n,q).filter(function(v){return v!==undefined})});return this._wrap(c.apply([],o),this)},filter:function(n){var o=arguments,q=this,v=0;if(typeof n=="string"){q=b._filterQueryResult(this,o[0]);if(o.length==1)return q._stash(this);v=1}return this._wrap(b.filter(q,o[v],o[v+1]),this)},addContent:function(n,o){n=
this._normalize(n,this[0]);for(var q=0,v;v=this[q];q++)this._place(n,v,o,q>0);return this},instantiate:function(n,o){var q=b.isFunction(n)?n:b.getObject(n);o=o||{};return this.forEach(function(v){new q(o,v)})},at:function(){var n=new this._NodeListCtor;b.forEach(arguments,function(o){if(o<0)o=this.length+o;this[o]&&n.push(this[o])},this);return n._stash(this)}});m.events=["blur","focus","change","click","error","keydown","keypress","keyup","load","mousedown","mouseenter","mouseleave","mousemove",
"mouseout","mouseover","mouseup","submit"];b.forEach(m.events,function(n){var o="on"+n;p[o]=function(q,v){return this.connect(o,q,v)}})})();return b.NodeList});
(function(){var b=function(a){var c=a.trim,d=a.forEach,f=a._NodeListCtor=a.NodeList,j=function(){return a.doc},g=(a.isWebKit||a.isMozilla)&&j().compatMode=="BackCompat",h=j().firstChild.children?"children":"childNodes",k=false,l=function(){return true},m=function(z){z+=">~+".indexOf(z.slice(-1))>=0?" * ":" ";for(var C=function(na,oa){return c(z.slice(na,oa))},I=[],J=-1,P=-1,U=-1,V=-1,T=-1,W=-1,$=-1,ca="",ba="",ia,Z=0,pa=z.length,X=null,da=null,qa=function(){if($>=0){var na=$==Z?null:C($,Z);X[">~+".indexOf(na)<
0?"tag":"oper"]=na;$=-1}},ra=function(){if(W>=0){X.id=C(W,Z).replace(/\\/g,"");W=-1}},sa=function(){if(T>=0){X.classes.push(C(T+1,Z).replace(/\\/g,""));T=-1}},ma=function(){ra();qa();sa()},ta=function(){ma();V>=0&&X.pseudos.push({name:C(V+1,Z)});X.loops=X.pseudos.length||X.attrs.length||X.classes.length;X.oquery=X.query=C(ia,Z);X.otag=X.tag=X.oper?null:X.tag||"*";if(X.tag)X.tag=X.tag.toUpperCase();if(I.length&&I[I.length-1].oper){X.infixOper=I.pop();X.query=X.infixOper.query+" "+X.query}I.push(X);
X=null};ca=ba,ba=z.charAt(Z),Z<pa;Z++)if(ca!="\\"){if(!X){ia=Z;X={query:null,pseudos:[],attrs:[],classes:[],tag:null,oper:null,id:null,getTag:function(){return k?this.otag:this.tag}};$=Z}if(J>=0)if(ba=="]"){if(da.attr)da.matchFor=C(U||J+1,Z);else da.attr=C(J+1,Z);if(J=da.matchFor)if(J.charAt(0)=='"'||J.charAt(0)=="'")da.matchFor=J.slice(1,-1);X.attrs.push(da);da=null;J=U=-1}else{if(ba=="="){U="|~^$*".indexOf(ca)>=0?ca:"";da.type=U+ba;da.attr=C(J+1,Z-U.length);U=Z+1}}else if(P>=0){if(ba==")"){if(V>=
0)da.value=C(P+1,Z);V=P=-1}}else if(ba=="#"){ma();W=Z+1}else if(ba=="."){ma();T=Z}else if(ba==":"){ma();V=Z}else if(ba=="["){ma();J=Z;da={}}else if(ba=="("){if(V>=0){da={name:C(V+1,Z),value:null};X.pseudos.push(da)}P=Z}else ba==" "&&ca!=ba&&ta()}return I},p=function(z,C){if(!z)return C;if(!C)return z;return function(){return z.apply(window,arguments)&&C.apply(window,arguments)}},n=function(z,C){C=C||[];z&&C.push(z);return C},o=function(z){return 1==z.nodeType},q=function(z,C){if(!z)return"";if(C==
"class")return z.className||"";if(C=="for")return z.htmlFor||"";if(C=="style")return z.style.cssText||"";return(k?z.getAttribute(C):z.getAttribute(C,2))||""},v={"*=":function(z,C){return function(I){return q(I,z).indexOf(C)>=0}},"^=":function(z,C){return function(I){return q(I,z).indexOf(C)==0}},"$=":function(z,C){return function(I){I=" "+q(I,z);return I.lastIndexOf(C)==I.length-C.length}},"~=":function(z,C){var I=" "+C+" ";return function(J){return(" "+q(J,z)+" ").indexOf(I)>=0}},"|=":function(z,
C){var I=" "+C+"-";return function(J){J=" "+q(J,z);return J==C||J.indexOf(I)==0}},"=":function(z,C){return function(I){return q(I,z)==C}}},r=typeof j().firstChild.nextElementSibling=="undefined",s=!r?"nextElementSibling":"nextSibling",w=!r?"previousElementSibling":"previousSibling",u=r?o:l,y=function(z){for(;z=z[w];)if(u(z))return false;return true},E=function(z){for(;z=z[s];)if(u(z))return false;return true},D=function(z){var C=z.parentNode,I=0,J=C[h],P=z._i||-1,U=C._l||-1;if(!J)return-1;J=J.length;
if(U==J&&P>=0&&U>=0)return P;C._l=J;P=-1;for(C=C.firstElementChild||C.firstChild;C;C=C[s])if(u(C)){C._i=++I;if(z===C)P=I}return P},B=function(z){return!(D(z)%2)},F=function(z){return D(z)%2},G={checked:function(){return function(z){return!!("checked"in z?z.checked:z.selected)}},"first-child":function(){return y},"last-child":function(){return E},"only-child":function(){return function(z){if(!y(z))return false;if(!E(z))return false;return true}},empty:function(){return function(z){var C=z.childNodes;
for(z=z.childNodes.length-1;z>=0;z--){var I=C[z].nodeType;if(I===1||I==3)return false}return true}},contains:function(z,C){z=C.charAt(0);if(z=='"'||z=="'")C=C.slice(1,-1);return function(I){return I.innerHTML.indexOf(C)>=0}},not:function(z,C){z=m(C)[0];C={el:1};if(z.tag!="*")C.tag=1;if(!z.classes.length)C.classes=1;var I=H(z,C);return function(J){return!I(J)}},"nth-child":function(z,C){z=parseInt;if(C=="odd")return F;else if(C=="even")return B;if(C.indexOf("n")!=-1){C=C.split("n",2);var I=C[0]?C[0]==
"-"?-1:z(C[0]):1,J=C[1]?z(C[1]):0,P=0,U=-1;if(I>0)if(J<0)J=J%I&&I+J%I;else{if(J>0){if(J>=I)P=J-J%I;J%=I}}else if(I<0){I*=-1;if(J>0){U=J;J%=I}}if(I>0)return function(T){T=D(T);return T>=P&&(U<0||T<=U)&&T%I==J};else C=J}var V=z(C);return function(T){return D(T)==V}}},L=a.isIE<9||dojo.isIE&&dojo.isQuirks?function(z){var C=z.toLowerCase();if(C=="class")z="className";return function(I){return k?I.getAttribute(z):I[z]||I[C]}}:function(z){return function(C){return C&&C.getAttribute&&C.hasAttribute(z)}},
H=function(z,C){if(!z)return l;C=C||{};var I=null;"el"in C||(I=p(I,o));if(!("tag"in C))if(z.tag!="*")I=p(I,function(J){return J&&J.tagName==z.getTag()});"classes"in C||d(z.classes,function(J,P){var U=new RegExp("(?:^|\\s)"+J+"(?:\\s|$)");I=p(I,function(V){return U.test(V.className)});I.count=P});"pseudos"in C||d(z.pseudos,function(J){var P=J.name;if(G[P])I=p(I,G[P](P,J.value))});"attrs"in C||d(z.attrs,function(J){var P,U=J.attr;if(J.type&&v[J.type])P=v[J.type](U,J.matchFor);else if(U.length)P=L(U);
if(P)I=p(I,P)});if(!("id"in C))if(z.id)I=p(I,function(J){return!!J&&J.id==z.id});I||"default"in C||(I=l);return I},N=function(z){return function(C,I,J){for(;C=C[s];)if(!(r&&!o(C))){if((!J||ja(C,J))&&z(C))I.push(C);break}return I}},M=function(z){return function(C,I,J){for(C=C[s];C;){if(u(C)){if(J&&!ja(C,J))break;z(C)&&I.push(C)}C=C[s]}return I}},Q=function(z){z=z||l;return function(C,I,J){for(var P=0,U=C[h];C=U[P++];)if(u(C)&&(!J||ja(C,J))&&z(C,P))I.push(C);return I}},R=function(z,C){for(z=z.parentNode;z;){if(z==
C)break;z=z.parentNode}return!!z},aa={},ea=function(z){var C=aa[z.query];if(C)return C;var I=z.infixOper;I=I?I.oper:"";var J=H(z,{el:1}),P="*"==z.tag,U=j().getElementsByClassName;if(I){U={el:1};if(P)U.tag=1;J=H(z,U);if("+"==I)C=N(J);else if("~"==I)C=M(J);else if(">"==I)C=Q(J)}else if(z.id){J=!z.loops&&P?l:H(z,{el:1,id:1});C=function(T,W){var $=a.byId(z.id,T.ownerDocument||T);if($&&J($))if(9==T.nodeType)return n($,W);else if(R($,T))return n($,W)}}else if(U&&/\{\s*\[native code\]\s*\}/.test(String(U))&&
z.classes.length&&!g){J=H(z,{el:1,classes:1,id:1});var V=z.classes.join(" ");C=function(T,W,$){W=n(0,W);for(var ca,ba=0,ia=T.getElementsByClassName(V);ca=ia[ba++];)J(ca,T)&&ja(ca,$)&&W.push(ca);return W}}else if(!P&&!z.loops)C=function(T,W,$){W=n(0,W);for(var ca=0,ba=T.getElementsByTagName(z.getTag());T=ba[ca++];)ja(T,$)&&W.push(T);return W};else{J=H(z,{el:1,tag:1,id:1});C=function(T,W,$){W=n(0,W);for(var ca,ba=0,ia=T.getElementsByTagName(z.getTag());ca=ia[ba++];)J(ca,T)&&ja(ca,$)&&W.push(ca);return W}}return aa[z.query]=
C},ha=function(z,C){z=n(z);for(var I,J,P=C.length,U,V,T=0;T<P;T++){V=[];I=C[T];J=z.length-1;if(J>0){U={};V.nozip=true}J=ea(I);for(var W=0;I=z[W];W++)J(I,V,U);if(!V.length)break;z=V}return V},la={},t={},x=function(z){var C=m(c(z));if(C.length==1){var I=ea(C[0]);return function(J){if(J=I(J,new f))J.nozip=true;return J}}return function(J){return ha(J,C)}},A=navigator.userAgent;A=a.isWebKit&&A.indexOf("WebKit/")>0&&parseFloat(A.split("WebKit/")[1])>528;var K=a.isIE?"commentStrip":"nozip",O=!!j().querySelectorAll&&
(!a.isSafari||a.isSafari>3.1||A),S=/n\+\d|([^ ])?([>~+])([^ =])?/g,Y=function(z,C,I,J){return I?(C?C+" ":"")+I+(J?" "+J:""):z},fa=function(z,C){z=z.replace(S,Y);if(O){var I=t[z];if(I&&!C)return I}if(I=la[z])return I;I=z.charAt(0);var J=-1==z.indexOf(" ");if(z.indexOf("#")>=0&&J)C=true;if(O&&!C&&">~+".indexOf(I)==-1&&(!a.isIE||z.indexOf(":")==-1)&&!(g&&z.indexOf(".")>=0)&&z.indexOf(":contains")==-1&&z.indexOf(":checked")==-1&&z.indexOf("|=")==-1){var P=">~+".indexOf(z.charAt(z.length-1))>=0?z+" *":
z;return t[z]=function(V){try{if(!(9==V.nodeType||J))throw"";var T=V.querySelectorAll(P);T[K]=true;return T}catch(W){return fa(z,true)(V)}}}else{var U=z.split(/\s*,\s*/);return la[z]=U.length<2?x(z):function(V){for(var T=0,W=[],$;$=U[T++];)W=W.concat(x($)(V));return W}}},ga=0,ua=a.isIE?function(z){return k?z.getAttribute("_uid")||z.setAttribute("_uid",++ga)||ga:z.uniqueID}:function(z){return z._uid||(z._uid=++ga)},ja=function(z,C){if(!C)return 1;z=ua(z);if(!C[z])return C[z]=1;return 0},ka="_zipIdx",
va=function(z){if(z&&z.nozip)return f._wrap?f._wrap(z):z;var C=new f;if(!z||!z.length)return C;z[0]&&C.push(z[0]);if(z.length<2)return C;ga++;if(a.isIE&&k){var I=ga+"";z[0].setAttribute(ka,I);for(var J=1,P;P=z[J];J++){z[J].getAttribute(ka)!=I&&C.push(P);P.setAttribute(ka,I)}}else if(a.isIE&&z.commentStrip)try{for(J=1;P=z[J];J++)o(P)&&C.push(P)}catch(U){}else{if(z[0])z[0][ka]=ga;for(J=1;P=z[J];J++){z[J][ka]!=ga&&C.push(P);P[ka]=ga}}return C};a.query=function(z,C){f=a._NodeListCtor;if(!z)return new f;
if(z.constructor==f)return z;if(typeof z!="string")return new f(z);if(typeof C=="string"){C=a.byId(C);if(!C)return new f}C=C||j();var I=C.ownerDocument||C.documentElement;k=C.contentType&&C.contentType=="application/xml"||a.isOpera&&(C.doctype||I.toString()=="[object XMLDocument]")||!!I&&(a.isIE?I.xml:C.xmlVersion||I.xmlVersion);if((z=fa(z)(C))&&z.nozip&&!f._wrap)return z;return va(z)};a.query.pseudos=G;a._filterQueryResult=function(z,C,I){var J=new a._NodeListCtor,P=m(C);P=P.length==1&&!/[^\w#\.]/.test(C)?
H(P[0]):function(T){return dojo.query(C,I).indexOf(T)!=-1};for(var U=0,V;V=z[U];U++)P(V)&&J.push(V);return J}},e=function(){acme={trim:function(f){f=f.replace(/^\s+/,"");for(var j=f.length-1;j>=0;j--)if(/\S/.test(f.charAt(j))){f=f.substring(0,j+1);break}return f},forEach:function(f,j,g){if(f&&f.length)for(var h=0,k=f.length;h<k;++h)j.call(g||window,f[h],h,f)},byId:function(f,j){return typeof f=="string"?(j||document).getElementById(f):f},doc:document,NodeList:Array};var a=navigator,c=a.userAgent;
a=a.appVersion;var d=parseFloat(a);acme.isOpera=c.indexOf("Opera")>=0?d:undefined;acme.isKhtml=a.indexOf("Konqueror")>=0?d:undefined;acme.isWebKit=parseFloat(c.split("WebKit/")[1])||undefined;acme.isChrome=parseFloat(c.split("Chrome/")[1])||undefined;if((c=Math.max(a.indexOf("WebKit"),a.indexOf("Safari"),0))&&!acme.isChrome){acme.isSafari=parseFloat(a.split("Version/")[1]);if(!acme.isSafari||parseFloat(a.substr(c+7))<=419.3)acme.isSafari=2}if(document.all&&!acme.isOpera)acme.isIE=parseFloat(a.split("MSIE ")[1])||
undefined;Array._wrap=function(f){return f};return acme};typeof define=="function"&&define("dojo/_base/query",["dojo/lib/kernel","dojo/_base/NodeList","dojo/_base/lang","dojo/_base/window"],function(a){b(this.queryPortability||this.acme||a)});if(typeof define!="function")if(this.dojo){dojo.provide("dojo._base.query");dojo.require("dojo._base.NodeList");dojo.require("dojo._base.lang");b(this.queryPortability||this.acme||dojo)}else b(this.queryPortability||this.acme||e())})();
define("dojo/_base/xhr",["dojo/lib/kernel","dojo/_base/Deferred","dojo/_base/json","dojo/_base/lang","dojo/_base/query"],function(b){(function(){function e(r,s,w){if(w!==null){var u=r[s];if(typeof u=="string")r[s]=[u,w];else if(a.isArray(u))u.push(w);else r[s]=w}}var a=b,c=a.config;b.fieldToObject=function(r){var s=null;if(r=a.byId(r)){var w=r.name,u=(r.type||"").toLowerCase();if(w&&u&&!r.disabled)if(u=="radio"||u=="checkbox"){if(r.checked)s=r.value}else if(r.multiple){s=[];a.query("option",r).forEach(function(y){y.selected&&
s.push(y.value)})}else s=r.value}return s};b.formToObject=function(r){var s={};a.forEach(b.byId(r).elements,function(w){var u=w.name,y=(w.type||"").toLowerCase();if(u&&y&&"file|submit|image|reset|button|".indexOf(y)==-1&&!w.disabled){e(s,u,a.fieldToObject(w));if(y=="image")s[u+".x"]=s[u+".y"]=s[u].x=s[u].y=0}});return s};b.objectToQuery=function(r){var s=encodeURIComponent,w=[],u={};for(var y in r){var E=r[y];if(E!=u[y]){var D=s(y)+"=";if(a.isArray(E))for(var B=0;B<E.length;B++)w.push(D+s(E[B]));
else w.push(D+s(E))}}return w.join("&")};b.formToQuery=function(r){return a.objectToQuery(a.formToObject(r))};b.formToJson=function(r,s){return a.toJson(a.formToObject(r),s)};b.queryToObject=function(r){var s={};r=r.split("&");var w=decodeURIComponent;a.forEach(r,function(u){if(u.length){var y=u.split("=");u=w(y.shift());y=w(y.join("="));if(typeof s[u]=="string")s[u]=[s[u]];if(a.isArray(s[u]))s[u].push(y);else s[u]=y}});return s};b._blockAsync=false;var d=a._contentHandlers=b.contentHandlers={text:function(r){return r.responseText},
json:function(r){return a.fromJson(r.responseText||null)},"json-comment-filtered":function(r){b.config.useCommentedJson||console.warn("Consider using the standard mimetype:application/json. json-commenting can introduce security issues. To decrease the chances of hijacking, use the standard the 'json' handler and prefix your json with: {}&&\nUse djConfig.useCommentedJson=true to turn off this message.");r=r.responseText;var s=r.indexOf("/*"),w=r.lastIndexOf("*/");if(s==-1||w==-1)throw new Error("JSON was not comment filtered");
return a.fromJson(r.substring(s+2,w))},javascript:function(r){return a.eval(r.responseText)},xml:function(r){var s=r.responseXML;if(a.isIE&&(!s||!s.documentElement)){var w=function(u){return"MSXML"+u+".DOMDocument"};w=["Microsoft.XMLDOM",w(6),w(4),w(3),w(2)];a.some(w,function(u){try{var y=new ActiveXObject(u);y.async=false;y.loadXML(r.responseText);s=y}catch(E){return false}return true})}return s},"json-comment-optional":function(r){return r.responseText&&/^[^{\[]*\/\*/.test(r.responseText)?d["json-comment-filtered"](r):
d.json(r)}};b._ioSetArgs=function(r,s,w,u){var y={args:r,url:r.url},E=null;if(r.form){E=a.byId(r.form);var D=E.getAttributeNode("action");y.url=y.url||(D?D.value:null);E=a.formToObject(E)}D=[{}];E&&D.push(E);r.content&&D.push(r.content);r.preventCache&&D.push({"dojo.preventCache":(new Date).valueOf()});y.query=a.objectToQuery(a.mixin.apply(null,D));y.handleAs=r.handleAs||"text";var B=new a.Deferred(s);B.addCallbacks(w,function(H){return u(H,B)});var F=r.load;F&&a.isFunction(F)&&B.addCallback(function(H){return F.call(r,
H,y)});var G=r.error;G&&a.isFunction(G)&&B.addErrback(function(H){return G.call(r,H,y)});var L=r.handle;L&&a.isFunction(L)&&B.addBoth(function(H){return L.call(r,H,y)});if(c.ioPublish&&a.publish&&y.args.ioPublish!==false){B.addCallbacks(function(H){a.publish("/dojo/io/load",[B,H]);return H},function(H){a.publish("/dojo/io/error",[B,H]);return H});B.addBoth(function(H){a.publish("/dojo/io/done",[B,H]);return H})}B.ioArgs=y;return B};var f=function(r){r.canceled=true;var s=r.ioArgs.xhr,w=typeof s.abort;
if(w=="function"||w=="object"||w=="unknown")s.abort();r=r.ioArgs.error;if(!r){r=new Error("xhr cancelled");r.dojoType="cancel"}return r},j=function(r){r=d[r.ioArgs.handleAs](r.ioArgs.xhr);return r===undefined?null:r},g=function(r,s){s.ioArgs.args.failOk||console.error(r);return r},h=null,k=[],l=0,m=function(r){if(l<=0){l=0;if(c.ioPublish&&a.publish&&(!r||r&&r.ioArgs.args.ioPublish!==false))a.publish("/dojo/io/stop")}},p=function(){var r=(new Date).getTime();if(!a._blockAsync)for(var s=0,w;s<k.length&&
(w=k[s]);s++){var u=w.dfd,y=function(){if(!u||u.canceled||!w.validCheck(u)){k.splice(s--,1);l-=1}else if(w.ioCheck(u)){k.splice(s--,1);w.resHandle(u);l-=1}else if(u.startTime)if(u.startTime+(u.ioArgs.args.timeout||0)<r){k.splice(s--,1);var D=new Error("timeout exceeded");D.dojoType="timeout";u.errback(D);u.cancel();l-=1}};if(b.config.debugAtAllCosts)y.call(this);else try{y.call(this)}catch(E){u.errback(E)}}m(u);if(!k.length){clearInterval(h);h=null}};b._ioCancelAll=function(){try{a.forEach(k,function(s){try{s.dfd.cancel()}catch(w){}})}catch(r){}};
a.isIE&&a.addOnWindowUnload(a._ioCancelAll);a._ioNotifyStart=function(r){if(c.ioPublish&&a.publish&&r.ioArgs.args.ioPublish!==false){l||a.publish("/dojo/io/start");l+=1;a.publish("/dojo/io/send",[r])}};a._ioWatch=function(r,s,w,u){var y=r.ioArgs.args;if(y.timeout)r.startTime=(new Date).getTime();k.push({dfd:r,validCheck:s,ioCheck:w,resHandle:u});h||(h=setInterval(p,50));y.sync&&p()};var n="application/x-www-form-urlencoded",o=function(r){return r.ioArgs.xhr.readyState},q=function(r){return 4==r.ioArgs.xhr.readyState},
v=function(r){var s=r.ioArgs.xhr;if(a._isDocumentOk(s))r.callback(r);else{var w=new Error("Unable to load "+r.ioArgs.url+" status:"+s.status);w.status=s.status;w.responseText=s.responseText;r.errback(w)}};b._ioAddQueryToUrl=function(r){if(r.query.length){r.url+=(r.url.indexOf("?")==-1?"?":"&")+r.query;r.query=null}};b.xhr=function(r,s,w){var u=a._ioSetArgs(s,f,j,g),y=u.ioArgs,E=y.xhr=a._xhrObj(y.args);if(!E){u.cancel();return u}if("postData"in s)y.query=s.postData;else if("putData"in s)y.query=s.putData;
else if("rawBody"in s)y.query=s.rawBody;else if(arguments.length>2&&!w||"POST|PUT".indexOf(r.toUpperCase())==-1)a._ioAddQueryToUrl(y);E.open(r,y.url,s.sync!==true,s.user||undefined,s.password||undefined);if(s.headers)for(var D in s.headers)if(D.toLowerCase()==="content-type"&&!s.contentType)s.contentType=s.headers[D];else s.headers[D]&&E.setRequestHeader(D,s.headers[D]);E.setRequestHeader("Content-Type",s.contentType||n);if(!s.headers||!("X-Requested-With"in s.headers))E.setRequestHeader("X-Requested-With",
"XMLHttpRequest");a._ioNotifyStart(u);if(b.config.debugAtAllCosts)E.send(y.query);else try{E.send(y.query)}catch(B){y.error=B;u.cancel()}a._ioWatch(u,o,q,v);return u};b.xhrGet=function(r){return a.xhr("GET",r)};b.rawXhrPost=b.xhrPost=function(r){return a.xhr("POST",r,true)};b.rawXhrPut=b.xhrPut=function(r){return a.xhr("PUT",r,true)};b.xhrDelete=function(r){return a.xhr("DELETE",r)}})();return b.xhr});
define("dojo/_base/fx",["dojo/lib/kernel","dojo/_base/Color","dojo/_base/connect","dojo/_base/lang","dojo/_base/html"],function(b){(function(){var e=b._mixin;b._Line=function(g,h){this.start=g;this.end=h};b._Line.prototype.getValue=function(g){return(this.end-this.start)*g+this.start};b.Animation=function(g){e(this,g);if(b.isArray(this.curve))this.curve=new b._Line(this.curve[0],this.curve[1])};b._Animation=b.Animation;b.extend(b.Animation,{duration:350,repeat:0,rate:20,_percent:0,_startRepeatCount:0,
_getStep:function(){var g=this._percent,h=this.easing;return h?h(g):g},_fire:function(g,h){h=h||[];if(this[g])if(b.config.debugAtAllCosts)this[g].apply(this,h);else try{this[g].apply(this,h)}catch(k){console.error("exception in animation handler for:",g);console.error(k)}return this},play:function(g,h){var k=this;k._delayTimer&&k._clearTimer();if(h){k._stopTimer();k._active=k._paused=false;k._percent=0}else if(k._active&&!k._paused)return k;k._fire("beforeBegin",[k.node]);g=g||k.delay;var l=b.hitch(k,
"_play",h);if(g>0){k._delayTimer=setTimeout(l,g);return k}l();return k},_play:function(){var g=this;g._delayTimer&&g._clearTimer();g._startTime=(new Date).valueOf();if(g._paused)g._startTime-=g.duration*g._percent;g._active=true;g._paused=false;var h=g.curve.getValue(g._getStep());if(!g._percent){if(!g._startRepeatCount)g._startRepeatCount=g.repeat;g._fire("onBegin",[h])}g._fire("onPlay",[h]);g._cycle();return g},pause:function(){var g=this;g._delayTimer&&g._clearTimer();g._stopTimer();if(!g._active)return g;
g._paused=true;g._fire("onPause",[g.curve.getValue(g._getStep())]);return g},gotoPercent:function(g,h){var k=this;k._stopTimer();k._active=k._paused=true;k._percent=g;h&&k.play();return k},stop:function(g){var h=this;h._delayTimer&&h._clearTimer();if(!h._timer)return h;h._stopTimer();if(g)h._percent=1;h._fire("onStop",[h.curve.getValue(h._getStep())]);h._active=h._paused=false;return h},status:function(){if(this._active)return this._paused?"paused":"playing";return"stopped"},_cycle:function(){var g=
this;if(g._active){var h=((new Date).valueOf()-g._startTime)/g.duration;if(h>=1)h=1;g._percent=h;if(g.easing)h=g.easing(h);g._fire("onAnimate",[g.curve.getValue(h)]);if(g._percent<1)g._startTimer();else{g._active=false;if(g.repeat>0){g.repeat--;g.play(null,true)}else if(g.repeat==-1)g.play(null,true);else if(g._startRepeatCount){g.repeat=g._startRepeatCount;g._startRepeatCount=0}g._percent=0;g._fire("onEnd",[g.node]);!g.repeat&&g._stopTimer()}}return g},_clearTimer:function(){clearTimeout(this._delayTimer);
delete this._delayTimer}});var a=0,c=null,d={run:function(){}};b.extend(b.Animation,{_startTimer:function(){if(!this._timer){this._timer=b.connect(d,"run",this,"_cycle");a++}c||(c=setInterval(b.hitch(d,"run"),this.rate))},_stopTimer:function(){if(this._timer){b.disconnect(this._timer);this._timer=null;a--}if(a<=0){clearInterval(c);c=null;a=0}}});var f=b.isIE?function(g){var h=g.style;if(!h.width.length&&b.style(g,"width")=="auto")h.width="auto"}:function(){};b._fade=function(g){g.node=b.byId(g.node);
var h=e({properties:{}},g);g=h.properties.opacity={};g.start=!("start"in h)?function(){return+b.style(h.node,"opacity")||0}:h.start;g.end=h.end;g=b.animateProperty(h);b.connect(g,"beforeBegin",b.partial(f,h.node));return g};b.fadeIn=function(g){return b._fade(e({end:1},g))};b.fadeOut=function(g){return b._fade(e({end:0},g))};b._defaultEasing=function(g){return 0.5+Math.sin((g+1.5)*Math.PI)/2};var j=function(g){this._properties=g;for(var h in g){var k=g[h];if(k.start instanceof b.Color)k.tempColor=
new b.Color}};j.prototype.getValue=function(g){var h={};for(var k in this._properties){var l=this._properties[k],m=l.start;if(m instanceof b.Color)h[k]=b.blendColors(m,l.end,g,l.tempColor).toCss();else b.isArray(m)||(h[k]=(l.end-m)*g+m+(k!="opacity"?l.units||"px":0))}return h};b.animateProperty=function(g){var h=g.node=b.byId(g.node);if(!g.easing)g.easing=b._defaultEasing;g=new b.Animation(g);b.connect(g,"beforeBegin",g,function(){var k={};for(var l in this.properties){if(l=="width"||l=="height")this.node.display=
"block";var m=this.properties[l];if(b.isFunction(m))m=m(h);m=k[l]=e({},b.isObject(m)?m:{end:m});if(b.isFunction(m.start))m.start=m.start(h);if(b.isFunction(m.end))m.end=m.end(h);var p=l.toLowerCase().indexOf("color")>=0,n=function(o,q){var v={height:o.offsetHeight,width:o.offsetWidth}[q];if(v!==undefined)return v;v=b.style(o,q);return q=="opacity"?+v:p?v:parseFloat(v)};if("end"in m){if(!("start"in m))m.start=n(h,l)}else m.end=n(h,l);if(p){m.start=new b.Color(m.start);m.end=new b.Color(m.end)}else m.start=
l=="opacity"?+m.start:parseFloat(m.start)}this.curve=new j(k)});b.connect(g,"onAnimate",b.hitch(b,"style",g.node));return g};b.anim=function(g,h,k,l,m,p){return b.animateProperty({node:g,duration:k||b.Animation.prototype.duration,properties:h,easing:l,onEnd:m}).play(p||0)}})();return b.animateProperty});
define("dojo",["dojo/lib/kernel","dojo/_base/lang","dojo/_base/array","dojo/_base/declare","dojo/_base/connect","dojo/_base/Deferred","dojo/_base/json","dojo/_base/Color","dojo/_base/window","dojo/_base/event","dojo/_base/html","dojo/_base/NodeList","dojo/_base/query","dojo/_base/xhr","dojo/_base/fx"],function(b){return b});
define("orion/serviceregistry",["dojo"],function(b){function e(j,g,h){this.serviceId=j;this.name=g;this.properties=h}function a(j,g,h){this.serviceId=j;this.serviceReference=g;this.internalRegistry=h}function c(j,g,h){this.serviceId=j;this.implementation=g;this.internalRegistry=h;var k;for(k in g)if(typeof g[k]==="function")this[k]=function(l){return function(){if(h.isRegistered(j)){var m=new b.Deferred;try{var p=g[l].apply(g,Array.prototype.slice.call(arguments));b.when(p,b.hitch(m,m.resolve),b.hitch(m,
m.reject))}catch(n){m.reject(n)}return m.promise}throw new Error("Service was unregistered");}}(k)}function d(){this._namedlisteners={}}function f(){this._entries=[];this._namedReferences={};this._serviceEventTarget=new d;var j=this;this.internalRegistry={isRegistered:function(g){return j._entries[g]?true:false},unregisterService:function(g){var h=j._entries[g];if(h){for(var k=h.reference,l=j._namedReferences[k.getName()],m=0;m<l.length;m++)if(l[m]===k){if(l.length===1)delete j._namedReferences[k.getName()];
else l.splice(m,1);break}j._entries[g]=null;j._serviceEventTarget.dispatchEvent("serviceRemoved",k,h.service)}},dispatchEvent:function(g,h){var k=j._entries[g];k&&k.eventTarget.dispatchEvent.apply(k.eventTarget,[h].concat(Array.prototype.slice.call(arguments,2)))},addEventListener:function(g,h,k){(g=j._entries[g])&&g.eventTarget.addEventListener(h,k)},removeEventListener:function(g,h,k){(g=j._entries[g])&&g.eventTarget.removeEventListener(h,k)}}}e.prototype={getServiceId:function(){return this.serviceId},
getName:function(){return this.name},getPropertyNames:function(){var j=[],g;for(g in this.properties)this.properties.hasOwnProperty(g)&&j.push(g);return j},getProperty:function(j){return this.properties[j]}};e.prototype.constructor=e;a.prototype={unregister:function(){this.internalRegistry.unregisterService(this.serviceId)},dispatchEvent:function(j){this.internalRegistry.dispatchEvent.apply(this.internalRegistry,[this.serviceId,j].concat(Array.prototype.slice.call(arguments,1)))},getServiceReference:function(){return this.serviceReference}};
a.prototype.constructor=a;c.prototype={addEventListener:function(j,g){this.internalRegistry.addEventListener(this.serviceId,j,g)},removeEventListener:function(j,g){this.internalRegistry.removeEventListener(this.serviceId,j,g)}};c.prototype.constructor=c;d.prototype={dispatchEvent:function(j){var g=this._namedlisteners[j];if(g)for(var h=0;h<g.length;h++)try{var k=Array.prototype.slice.call(arguments,1);g[h].apply(null,k)}catch(l){console.log(l)}},addEventListener:function(j,g){this._namedlisteners[j]=
this._namedlisteners[j]||[];this._namedlisteners[j].push(g)},removeEventListener:function(j,g){var h=this._namedlisteners[j];if(h)for(var k=0;k<h.length;k++)if(h[k]===g){if(h.length===1)delete this._namedlisteners[j];else h.splice(k,1);break}}};d.prototype.constructor=d;f.prototype={getService:function(j,g){var h,k=new b.Deferred;if(typeof j==="string"){if(this._namedReferences[j])for(var l=0;l<this._namedReferences[j].length;l++)if(h=this._entries[this._namedReferences[j][l].getServiceId()].service)break}else h=
this._entries[j.getServiceId()].service;if(h)k.resolve(h);else if(g===0)k.reject(new Error("timeout: getService"));else{var m=this,p=function(n,o){if(j===n||j===n.getName()){k.resolve(o);m._serviceEventTarget.removeEventListener("serviceAdded",p)}};this._serviceEventTarget.addEventListener("serviceAdded",p)}return k.promise},getServiceReferences:function(j){if(j)return this._namedReferences[j]?this._namedReferences[j]:[];j=[];for(var g=0;g<this._entries.length;g++)this._entries[g]&&j.push(this._entries[g].reference);
return j},registerService:function(j,g,h){var k=this._entries.length;h=new e(k,j,h);g=new c(k,g,this.internalRegistry);this._namedReferences[j]=this._namedReferences[j]||[];this._namedReferences[j].push(h);this._entries.push({reference:h,service:g,eventTarget:new d});this._serviceEventTarget.dispatchEvent("serviceAdded",h,g);return new a(k,h,this.internalRegistry)},addEventListener:function(j,g){this._serviceEventTarget.addEventListener(j,g)},removeEventListener:function(j,g){this._serviceEventTarget.removeEventListener(j,
g)}};f.prototype.constructor=f;return{ServiceReference:e,ServiceRegistration:a,Service:c,EventTarget:d,ServiceRegistry:f}});define("dijit",["dojo"],function(b){return dijit=b._dijit||{}});
define("dojo/hash",["dojo"],function(b){(function(){function e(m,p){p=m.indexOf(p);return p>=0?m.substring(p+1):""}function a(){return e(location.href,"#")}function c(){b.publish("/dojo/hashchange",[a()])}function d(){if(a()!==g){g=a();c()}}function f(m){if(h)if(h.isTransitioning())setTimeout(b.hitch(null,f,m),l);else{var p=h.iframe.location.href,n=p.indexOf("?");h.iframe.location.replace(p.substring(0,n)+"?"+m)}else{location.replace("#"+m);!k&&d()}}function j(){function m(){g=a();o=s?g:e(w.href,
"?");q=false;v=null}var p=document.createElement("iframe"),n=b.config.dojoBlankHtmlUrl||b.moduleUrl("dojo","resources/blank.html");b.config.useXDomain&&!b.config.dojoBlankHtmlUrl&&console.warn("dojo.hash: When using cross-domain Dojo builds, please save dojo/resources/blank.html to your domain and set djConfig.dojoBlankHtmlUrl to the path on your domain to blank.html");p.id="dojo-hash-iframe";p.src=n+"?"+a();p.style.display="none";document.body.appendChild(p);this.iframe=b.global["dojo-hash-iframe"];
var o,q,v,r,s,w=this.iframe.location;this.isTransitioning=function(){return q};this.pollLocation=function(){if(!s)try{var u=e(w.href,"?");if(document.title!=r)r=this.iframe.document.title=document.title}catch(y){s=true;console.error("dojo.hash: Error adding history entry. Server unreachable.")}var E=a();if(q&&g===E)if(s||u===v){m();c()}else{setTimeout(b.hitch(this,this.pollLocation),0);return}else if(!(g===E&&(s||o===u)))if(g!==E){g=E;q=true;v=E;p.src=n+"?"+v;s=false;setTimeout(b.hitch(this,this.pollLocation),
0);return}else if(!s){location.href="#"+w.search.substring(1);m();c()}setTimeout(b.hitch(this,this.pollLocation),l)};m();setTimeout(b.hitch(this,this.pollLocation),l)}b.hash=function(m,p){if(!arguments.length)return a();if(m.charAt(0)=="#")m=m.substring(1);if(p)f(m);else location.href="#"+m;return m};var g,h,k,l=b.config.hashPollFrequency||100;b.addOnLoad(function(){if("onhashchange"in b.global&&(!b.isIE||b.isIE>=8&&document.compatMode!="BackCompat"))k=b.connect(b.global,"onhashchange",c);else if(document.addEventListener){g=
a();setInterval(d,l)}else if(document.attachEvent)h=new j})})();return b.hash});
(function(){var b=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],e=/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,a=/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im,c=[];define("text",["require","exports","module"],function(){var d,f,j;if(typeof window!=="undefined"&&window.navigator&&window.document)f=function(g,h){var k=d.createXhr();k.open("GET",g,true);k.onreadystatechange=function(){k.readyState===4&&h(k.responseText)};k.send(null)};else if(typeof process!=="undefined"&&process.versions&&
process.versions.node){j=require.nodeRequire("fs");f=function(g,h){h(j.readFileSync(g,"utf8"))}}else if(typeof Packages!=="undefined")f=function(g,h){var k=new java.io.File(g);g=java.lang.System.getProperty("line.separator");k=new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(k),"utf-8"));var l,m,p="";try{l=new java.lang.StringBuffer;if((m=k.readLine())&&m.length()&&m.charAt(0)===65279)m=m.substring(1);for(l.append(m);(m=k.readLine())!==null;){l.append(g);l.append(m)}p=
String(l.toString())}finally{k.close()}h(p)};return d={version:"0.24.0",strip:function(g){if(g){g=g.replace(e,"");var h=g.match(a);if(h)g=h[1]}else g="";return g},jsEscape:function(g){return g.replace(/(['\\])/g,"\\$1").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r")},createXhr:function(){var g,h,k;if(typeof XMLHttpRequest!=="undefined")return new XMLHttpRequest;else for(h=0;h<3;h++){k=b[h];try{g=new ActiveXObject(k)}catch(l){}if(g){b=
[k];break}}if(!g)throw new Error("require.getXhr(): XMLHttpRequest not available");return g},get:f,load:function(g,h,k,l){var m=false,p=g.indexOf("."),n=g.substring(0,p),o=g.substring(p+1,g.length);p=o.indexOf("!");if(p!==-1){m=o.substring(p+1,o.length);m=m==="strip";o=o.substring(0,p)}h=h.nameToUrl(n,"."+o);d.get(h,function(q){q=m?d.strip(q):q;if(l.isBuild&&l.inlineText)c[g]=q;k(q)})},write:function(g,h,k){if(h in c){var l=d.jsEscape(c[h]);k("define('"+g+"!"+h+"', function () { return '"+l+"';});\n")}}}})})();
define("text!dijit/form/templates/ValidationTextBox.html",function(){return'<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>'});
define("dojo/i18n",["require","dojo"],function(b,e){e.getObject("i18n",true,e);e.i18n.getLocalization=e.i18n.getLocalization||function(a,c,d){d=e.i18n.normalizeLocale(d);var f=d.split("-"),j=[a,"nls",c].join(".");if(typeof e.global.require!=="undefined"){var g=b("i18n!"+[a.replace(/\./g,"/"),"nls",c].join("/"));(e._loadedModules[j]=e._loadedModules[j]||{})[f.join("_")]=g.root||g}if(j=e._loadedModules[j]){var h;for(g=f.length;g>0;g--){var k=f.slice(0,g).join("_");if(j[k]){h=j[k];break}}if(!h)h=j.ROOT;
if(h){a=function(){};a.prototype=h;return new a}}throw new Error("Bundle not found: "+c+" in "+a+" , locale="+d);};e.i18n.normalizeLocale=function(a){a=a?a.toLowerCase():e.locale;if(a=="root")a="ROOT";return a};e.i18n._requireLocalization=function(a,c,d,f){d=e.i18n.normalizeLocale(d);var j=[a,"nls",c].join("."),g="";if(f){for(var h=f.split(","),k=0;k<h.length;k++)if(d.indexOf(h[k])==0)if(h[k].length>g.length)g=h[k];g||(g="ROOT")}h=f?g:d;var l=e._loadedModules[j];k=null;if(l){if(e.config.localizationComplete&&
l._built)return;k=h.replace(/-/g,"_");k=e._loadedModules[j+"."+k]}if(!k){l=e.provide(j);var m=e._getModuleSymbols(a).concat("nls").join("/"),p;e.i18n._searchLocalePath(h,f,function(n){var o=n.replace(/-/g,"_"),q=j+"."+o,v=false;if(e._loadedModules[q])v=true;else{e.provide(q);q=[m];n!="ROOT"&&q.push(n);q.push(c);n=q.join("/")+".js";v=e._loadPath(n,null,function(r){r=r.root||r;var s=function(){};s.prototype=p;l[o]=new s;for(var w in r)l[o][w]=r[w]})}if(v&&l[o])p=l[o];else l[o]=p;if(f)return true})}if(f&&
d!=g)l[d.replace(/-/g,"_")]=l[g.replace(/-/g,"_")]};(function(){var a=e.config.extraLocale;if(a){if(!a instanceof Array)a=[a];var c=e.i18n._requireLocalization;e.i18n._requireLocalization=function(d,f,j,g){c(d,f,j,g);if(!j)for(j=0;j<a.length;j++)c(d,f,a[j],g)}}})();e.i18n._searchLocalePath=function(a,c,d){a=e.i18n.normalizeLocale(a);var f=a.split("-");a=[];for(var j=f.length;j>0;j--)a.push(f.slice(0,j).join("-"));a.push(false);c&&a.reverse();for(c=a.length-1;c>=0;c--)if(d(a[c]||"ROOT"))break};e.i18n._preloadLocalizations=
function(a,c){function d(g){g=e.i18n.normalizeLocale(g);e.i18n._searchLocalePath(g,true,function(h){for(var k=0;k<c.length;k++)if(c[k]==h){e.require(a+"_"+h);return true}return false})}d();for(var f=e.config.extraLocale||[],j=0;j<f.length;j++)d(f[j])};return e.i18n});define("text!dijit/form/templates/TextBox.html",function(){return'<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>'});
define("dojo/window",["dojo"],function(b){b.getObject("window",true,b);b.window.getBox=function(){var e=b.doc.compatMode=="BackCompat"?b.body():b.doc.documentElement,a=b._docScroll();return{w:e.clientWidth,h:e.clientHeight,l:a.x,t:a.y}};b.window.get=function(e){if(b.isIE&&window!==document.parentWindow){e.parentWindow.execScript("document._parentWindow = window;","Javascript");var a=e._parentWindow;e._parentWindow=null;return a}return e.parentWindow||e.defaultView};b.window.scrollIntoView=function(e,
a){try{e=b.byId(e);var c=e.ownerDocument||b.doc,d=c.body||b.body(),f=c.documentElement||d.parentNode,j=b.isIE,g=b.isWebKit;if((!(b.isMoz||j||g||b.isOpera)||e==d||e==f)&&typeof e.scrollIntoView!="undefined")e.scrollIntoView(false);else{var h=c.compatMode=="BackCompat",k=j>=9&&e.ownerDocument.parentWindow.frameElement?f.clientHeight>0&&f.clientWidth>0&&(d.clientHeight==0||d.clientWidth==0||d.clientHeight>f.clientHeight||d.clientWidth>f.clientWidth)?f:d:h?d:f;c=g?d:k;var l=k.clientWidth,m=k.clientHeight,
p=!b._isBodyLtr(),n=a||b.position(e),o=e.parentNode;a=function(G){return j<=6||j&&h?false:b.style(G,"position").toLowerCase()=="fixed"};if(!a(e))for(;o;){if(o==d)o=c;var q=b.position(o),v=a(o);if(o==c){q.w=l;q.h=m;if(c==f&&j&&p)q.x+=c.offsetWidth-q.w;if(q.x<0||!j)q.x=0;if(q.y<0||!j)q.y=0}else{var r=b._getPadBorderExtents(o);q.w-=r.w;q.h-=r.h;q.x+=r.l;q.y+=r.t;var s=o.clientWidth,w=q.w-s;if(s>0&&w>0){q.w=s;q.x+=p&&(j||o.clientLeft>r.l)?w:0}s=o.clientHeight;w=q.h-s;if(s>0&&w>0)q.h=s}if(v){if(q.y<0){q.h+=
q.y;q.y=0}if(q.x<0){q.w+=q.x;q.x=0}if(q.y+q.h>m)q.h=m-q.y;if(q.x+q.w>l)q.w=l-q.x}var u=n.x-q.x,y=n.y-Math.max(q.y,0),E=u+n.w-q.w,D=y+n.h-q.h;if(E*u>0){var B=Math[u<0?"max":"min"](u,E);if(p&&(j==8&&!h||j>=9))B=-B;n.x+=o.scrollLeft;o.scrollLeft+=B;n.x-=o.scrollLeft}if(D*y>0){n.y+=o.scrollTop;o.scrollTop+=Math[y<0?"max":"min"](y,D);n.y-=o.scrollTop}o=o!=c&&!v&&o.parentNode}}}catch(F){console.error("scrollIntoView: "+F);e.scrollIntoView(false)}};return b.window});
define("dijit/_base/manager",["dojo","dijit"],function(b,e){b.declare("dijit.WidgetSet",null,{constructor:function(){this._hash={};this.length=0},add:function(a){if(this._hash[a.id])throw new 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,c){c=c||b.global;var d=0,f;for(f in this._hash)a.call(c,this._hash[f],d++,this._hash);return this},
filter:function(a,c){c=c||b.global;var d=new e.WidgetSet,f=0,j;for(j in this._hash){var g=this._hash[j];a.call(c,g,f++,this._hash)&&d.add(g)}return d},byId:function(a){return this._hash[a]},byClass:function(a){var c=new e.WidgetSet,d,f;for(d in this._hash){f=this._hash[d];f.declaredClass==a&&c.add(f)}return c},toArray:function(){var a=[];for(var c in this._hash)a.push(this._hash[c]);return a},map:function(a,c){return b.map(this.toArray(),a,c)},every:function(a,c){c=c||b.global;var d=0,f;for(f in this._hash)if(!a.call(c,
this._hash[f],d++,this._hash))return false;return true},some:function(a,c){c=c||b.global;var d=0,f;for(f in this._hash)if(a.call(c,this._hash[f],d++,this._hash))return true;return false}});(function(){e.registry=new e.WidgetSet;var a=e.registry._hash,c=b.attr,d=b.hasAttr,f=b.style;e.byId=function(k){return typeof k=="string"?a[k]:k};var j={};e.getUniqueId=function(k){var l;do l=k+"_"+(k in j?++j[k]:(j[k]=0));while(a[l]);return e._scopeName=="dijit"?l:e._scopeName+"_"+l};e.findWidgets=function(k){function l(p){for(p=
p.firstChild;p;p=p.nextSibling)if(p.nodeType==1){var n=p.getAttribute("widgetId");if(n)(n=a[n])&&m.push(n);else l(p)}}var m=[];l(k);return m};e._destroyAll=function(){e._curFocus=null;e._prevFocus=null;e._activeStack=[];b.forEach(e.findWidgets(b.body()),function(k){if(!k._destroyed)if(k.destroyRecursive)k.destroyRecursive();else k.destroy&&k.destroy()})};b.isIE&&b.addOnWindowUnload(function(){e._destroyAll()});e.byNode=function(k){return a[k.getAttribute("widgetId")]};e.getEnclosingWidget=function(k){for(;k;){var l=
k.getAttribute&&k.getAttribute("widgetId");if(l)return a[l];k=k.parentNode}return null};var g=e._isElementShown=function(k){var l=f(k);return l.visibility!="hidden"&&l.visibility!="collapsed"&&l.display!="none"&&c(k,"type")!="hidden"};e.hasDefaultTabStop=function(k){switch(k.nodeName.toLowerCase()){case "a":return d(k,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":var l;try{var m=k.contentDocument;if("designMode"in m&&m.designMode==
"on")return true;l=m.body}catch(p){try{l=k.contentWindow.document.body}catch(n){return false}}return l.contentEditable=="true"||l.firstChild&&l.firstChild.contentEditable=="true";default:return k.contentEditable=="true"}};var h=e.isTabNavigable=function(k){return c(k,"disabled")?false:d(k,"tabIndex")?c(k,"tabIndex")>=0:e.hasDefaultTabStop(k)};e._getTabNavigable=function(k){function l(u){return u&&u.tagName.toLowerCase()=="input"&&u.type&&u.type.toLowerCase()=="radio"&&u.name&&u.name.toLowerCase()}
function m(u){return s[l(u)]||u}var p,n,o,q,v,r,s={},w=function(u){b.query("> *",u).forEach(function(y){if(!(b.isIE&&y.scopeName!=="HTML"||!g(y))){if(h(y)){var E=c(y,"tabIndex");if(!d(y,"tabIndex")||E==0){p||(p=y);n=y}else if(E>0){if(!o||E<q){q=E;o=y}if(!v||E>=r){r=E;v=y}}E=l(y);if(b.attr(y,"checked")&&E)s[E]=y}y.nodeName.toUpperCase()!="SELECT"&&w(y)}})};g(k)&&w(k);return{first:m(p),last:m(n),lowest:m(o),highest:m(v)}};e.getFirstInTabbingOrder=function(k){k=e._getTabNavigable(b.byId(k));return k.lowest?
k.lowest:k.first};e.getLastInTabbingOrder=function(k){k=e._getTabNavigable(b.byId(k));return k.last?k.last:k.highest};e.defaultDuration=b.config.defaultDuration||200})();return e});
define("dojo/Stateful",["dojo"],function(b){b.declare("dojo.Stateful",null,{postscript:function(e){e&&b.mixin(this,e)},get:function(e){return this[e]},set:function(e,a){if(typeof e==="object"){for(var c in e)this.set(c,e[c]);return this}c=this[e];this[e]=a;this._watchCallbacks&&this._watchCallbacks(e,c,a);return this},watch:function(e,a){var c=this._watchCallbacks;if(!c){var d=this;c=this._watchCallbacks=function(j,g,h,k){var l=function(m){if(m){m=m.slice();for(var p=0,n=m.length;p<n;p++)try{m[p].call(d,
j,g,h)}catch(o){console.error(o)}}};l(c["_"+j]);k||l(c["*"])}}if(!a&&typeof e==="function"){a=e;e="*"}else e="_"+e;var f=c[e];if(typeof f!=="object")f=c[e]=[];f.push(a);return{unwatch:function(){f.splice(b.indexOf(f,a),1)}}}});return b.Stateful});
define("dijit/_WidgetBase",["dojo","dijit","dijit/_base/manager","dojo/Stateful"],function(b,e){(function(){b.declare("dijit._WidgetBase",b.Stateful,{id:"",lang:"",dir:"","class":"",style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},_blankGif:(b.config.blankGif||b.moduleUrl("dojo","resources/blank.gif")).toString(),postscript:function(a,c){this.create(a,c)},create:function(a,c){this.srcNodeRef=
b.byId(c);this._connects=[];this._subscribes=[];if(this.srcNodeRef&&typeof this.srcNodeRef.id=="string")this.id=this.srcNodeRef.id;if(a){this.params=a;b._mixin(this,a)}this.postMixInProperties();if(!this.id)this.id=e.getUniqueId(this.declaredClass.replace(/\./g,"_"));e.registry.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();(a=this.srcNodeRef)&&a.parentNode&&this.domNode!==a&&a.parentNode.replaceChild(this.domNode,a)}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(d,f){if(f.params&&d in f.params||f[d])f.set(d,f[d])};for(var c in this.attributeMap)a(c,this);b.forEach(this._getSetterAttributes(),function(d){d in this.attributeMap||a(d,this)},this)},_getSetterAttributes:function(){var a=this.constructor;if(!a._setterAttrs){var c=a._setterAttrs=[],d,f=a.prototype;for(var j in f)if(b.isFunction(f[j])&&(d=j.match(/^_set([a-zA-Z]*)Attr$/))&&
d[1])c.push(d[1].charAt(0).toLowerCase()+d[1].substr(1))}return a._setterAttrs},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode)this.domNode=this.srcNodeRef||b.create("div");if(this.baseClass){var a=this.baseClass.split(" ");this.isLeftToRight()||(a=a.concat(b.map(a,function(c){return c+"Rtl"})));b.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 c=b.forEach,d=b.unsubscribe;c(this._connects,function(f){c(f,b.disconnect)});c(this._subscribes,function(f){d(f)});c(this._supportingWidgets||[],function(f){if(f.destroyRecursive)f.destroyRecursive();else f.destroy&&f.destroy()});this.destroyRendering(a);e.registry.remove(this.id);this._destroyed=true},destroyRendering:function(a){if(this.bgIframe){this.bgIframe.destroy(a);delete this.bgIframe}if(this.domNode){a?b.removeAttr(this.domNode,
"widgetId"):b.destroy(this.domNode);delete this.domNode}if(this.srcNodeRef){a||b.destroy(this.srcNodeRef);delete this.srcNodeRef}},destroyDescendants:function(a){b.forEach(this.getChildren(),function(c){c.destroyRecursive&&c.destroyRecursive(a)})},uninitialize:function(){return false},_setClassAttr:function(a){b.replaceClass(this[this.attributeMap["class"]||"domNode"],a,this["class"]);this._set("class",a)},_setStyleAttr:function(a){var c=this[this.attributeMap.style||"domNode"];if(b.isObject(a))b.style(c,
a);else if(c.style.cssText)c.style.cssText+="; "+a;else c.style.cssText=a;this._set("style",a)},_attrToDom:function(a,c){var d=this.attributeMap[a];b.forEach(b.isArray(d)?d:[d],function(f){var j=this[f.node||f||"domNode"];switch(f.type||"attribute"){case "attribute":if(b.isFunction(c))c=b.hitch(this,c);f=f.attribute?f.attribute:/^on[A-Z][a-zA-Z]*$/.test(a)?a.toLowerCase():a;b.attr(j,f,c);break;case "innerText":j.innerHTML="";j.appendChild(b.doc.createTextNode(c));break;case "innerHTML":j.innerHTML=
c;break;case "class":b.replaceClass(j,c,this[a]);break}},this)},get:function(a){var c=this._getAttrNames(a);return this[c.g]?this[c.g]():this[a]},set:function(a,c){if(typeof a==="object"){for(var d in a)this.set(d,a[d]);return this}d=this._getAttrNames(a);if(this[d.s])var f=this[d.s].apply(this,Array.prototype.slice.call(arguments,1));else{a in this.attributeMap&&this._attrToDom(a,c);this._set(a,c)}return f||this},_attrPairNames:{},_getAttrNames:function(a){var c=this._attrPairNames;if(c[a])return c[a];
var d=a.charAt(0).toUpperCase()+a.substr(1);return c[a]={n:a+"Node",s:"_set"+d+"Attr",g:"_get"+d+"Attr"}},_set:function(a,c){var d=this[a];this[a]=c;this._watchCallbacks&&this._created&&c!==d&&this._watchCallbacks(a,d,c)},toString:function(){return"[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]"},getDescendants:function(){return this.containerNode?b.query("[widgetId]",this.containerNode).map(e.byNode):[]},getChildren:function(){return this.containerNode?e.findWidgets(this.containerNode):
[]},connect:function(a,c,d){a=[b._connect(a,c,this,d)];this._connects.push(a);return a},disconnect:function(a){for(var c=0;c<this._connects.length;c++)if(this._connects[c]==a){b.forEach(a,b.disconnect);this._connects.splice(c,1);return}},subscribe:function(a,c){a=b.subscribe(a,this,c);this._subscribes.push(a);return a},unsubscribe:function(a){for(var c=0;c<this._subscribes.length;c++)if(this._subscribes[c]==a){b.unsubscribe(a);this._subscribes.splice(c,1);return}},isLeftToRight:function(){return this.dir?
this.dir=="ltr":b._isBodyLtr()},placeAt:function(a,c){a.declaredClass&&a.addChild?a.addChild(this,c):b.place(this.domNode,a,c);return this}})})();return e._WidgetBase});
define("dijit/_base/focus",["dojo","dijit","dojo/window","dijit/_base/manager"],function(b,e){b.mixin(e,{_curFocus:null,_prevFocus:null,isCollapsed:function(){return e.getBookmark().isCollapsed},getBookmark:function(){var a,c,d=b.doc.selection,f=e._curFocus;if(b.global.getSelection){if(d=b.global.getSelection())if(d.isCollapsed){if(a=f?f.tagName:""){a=a.toLowerCase();if(a=="textarea"||a=="input"&&(!f.type||f.type.toLowerCase()=="text")){d={start:f.selectionStart,end:f.selectionEnd,node:f,pRange:true};
return{isCollapsed:d.end<=d.start,mark:d}}}a={isCollapsed:true};if(d.rangeCount)a.mark=d.getRangeAt(0).cloneRange()}else{c=d.getRangeAt(0);a={isCollapsed:false,mark:c.cloneRange()}}}else if(d){a=f?f.tagName:"";a=a.toLowerCase();if(f&&a&&(a=="button"||a=="textarea"||a=="input"))if(d.type&&d.type.toLowerCase()=="none")return{isCollapsed:true,mark:null};else{c=d.createRange();return{isCollapsed:c.text&&c.text.length?false:true,mark:{range:c,pRange:true}}}a={};try{c=d.createRange();a.isCollapsed=!(d.type==
"Text"?c.htmlText.length:c.length)}catch(j){a.isCollapsed=true;return a}if(d.type.toUpperCase()=="CONTROL")if(c.length){a.mark=[];d=0;for(f=c.length;d<f;)a.mark.push(c.item(d++))}else{a.isCollapsed=true;a.mark=null}else a.mark=c.getBookmark()}else console.warn("No idea how to store the current selection for this browser!");return a},moveToBookmark:function(a){var c=b.doc;if(a=a.mark)if(b.global.getSelection){var d=b.global.getSelection();if(d&&d.removeAllRanges)if(a.pRange){d=a.node;d.selectionStart=
a.start;d.selectionEnd=a.end}else{d.removeAllRanges();d.addRange(a)}else console.warn("No idea how to restore selection for this browser!")}else if(c.selection&&a){var f;if(a.pRange)f=a.range;else if(b.isArray(a)){f=c.body.createControlRange();b.forEach(a,function(j){f.addElement(j)})}else{f=c.body.createTextRange();f.moveToBookmark(a)}f.select()}},getFocus:function(a,c){a=!e._curFocus||a&&b.isDescendant(e._curFocus,a.domNode)?e._prevFocus:e._curFocus;return{node:a,bookmark:a==e._curFocus&&b.withGlobal(c||
b.global,e.getBookmark),openedForWindow:c}},focus:function(a){if(a){var c="node"in a?a.node:a,d=a.bookmark;a=a.openedForWindow;var f=d?d.isCollapsed:false;if(c){var j=c.tagName.toLowerCase()=="iframe"?c.contentWindow:c;if(j&&j.focus)try{j.focus()}catch(g){}e._onFocusNode(c)}if(d&&b.withGlobal(a||b.global,e.isCollapsed)&&!f){a&&a.focus();try{b.withGlobal(a||b.global,e.moveToBookmark,null,[d])}catch(h){}}}},_activeStack:[],registerIframe:function(a){return e.registerWin(a.contentWindow,a)},unregisterIframe:function(a){e.unregisterWin(a)},
registerWin:function(a,c){var d=function(l){e._justMouseDowned=true;setTimeout(function(){e._justMouseDowned=false},0);b.isIE&&l&&l.srcElement&&l.srcElement.parentNode==null||e._onTouchNode(c||l.target||l.srcElement,"mouse")},f=b.isIE?a.document.documentElement:a.document;if(f)if(b.isIE){a.document.body.attachEvent("onmousedown",d);var j=function(l){l.srcElement.tagName.toLowerCase()!="#document"&&e.isTabNavigable(l.srcElement)?e._onFocusNode(c||l.srcElement):e._onTouchNode(c||l.srcElement)};f.attachEvent("onactivate",
j);var g=function(l){e._onBlurNode(c||l.srcElement)};f.attachEvent("ondeactivate",g);return function(){a.document.detachEvent("onmousedown",d);f.detachEvent("onactivate",j);f.detachEvent("ondeactivate",g);f=null}}else{f.body.addEventListener("mousedown",d,true);var h=function(l){e._onFocusNode(c||l.target)};f.addEventListener("focus",h,true);var k=function(l){e._onBlurNode(c||l.target)};f.addEventListener("blur",k,true);return function(){f.body.removeEventListener("mousedown",d,true);f.removeEventListener("focus",
h,true);f.removeEventListener("blur",k,true);f=null}}},unregisterWin:function(a){a&&a()},_onBlurNode:function(){e._prevFocus=e._curFocus;e._curFocus=null;if(!e._justMouseDowned){e._clearActiveWidgetsTimer&&clearTimeout(e._clearActiveWidgetsTimer);e._clearActiveWidgetsTimer=setTimeout(function(){delete e._clearActiveWidgetsTimer;e._setStack([]);e._prevFocus=null},100)}},_onTouchNode:function(a,c){if(e._clearActiveWidgetsTimer){clearTimeout(e._clearActiveWidgetsTimer);delete e._clearActiveWidgetsTimer}var d=
[];try{for(;a;){var f=b.attr(a,"dijitPopupParent");if(f)a=e.byId(f).domNode;else if(a.tagName&&a.tagName.toLowerCase()=="body"){if(a===b.body())break;a=b.window.get(a.ownerDocument).frameElement}else{var j=a.getAttribute&&a.getAttribute("widgetId"),g=j&&e.byId(j);g&&!(c=="mouse"&&g.get("disabled"))&&d.unshift(j);a=a.parentNode}}}catch(h){}e._setStack(d,c)},_onFocusNode:function(a){if(a)if(a.nodeType!=9){e._onTouchNode(a);if(a!=e._curFocus){if(e._curFocus)e._prevFocus=e._curFocus;e._curFocus=a;b.publish("focusNode",
[a])}}},_setStack:function(a,c){var d=e._activeStack;e._activeStack=a;for(var f=0;f<Math.min(d.length,a.length);f++)if(d[f]!=a[f])break;for(var j,g=d.length-1;g>=f;g--)if(j=e.byId(d[g])){j._focused=false;j.set("focused",false);j._hasBeenBlurred=true;j._onBlur&&j._onBlur(c);b.publish("widgetBlur",[j,c])}for(g=f;g<a.length;g++)if(j=e.byId(a[g])){j._focused=true;j.set("focused",true);j._onFocus&&j._onFocus(c);b.publish("widgetFocus",[j,c])}}});b.addOnLoad(function(){var a=e.registerWin(window);b.isIE&&
b.addOnWindowUnload(function(){e.unregisterWin(a);a=null})});return e});
define("dojo/AdapterRegistry",["dojo"],function(b){b.AdapterRegistry=function(e){this.pairs=[];this.returnWrappers=e||false};b.extend(b.AdapterRegistry,{register:function(e,a,c,d,f){this.pairs[f?"unshift":"push"]([e,a,c,d])},match:function(){for(var e=0;e<this.pairs.length;e++){var a=this.pairs[e];if(a[1].apply(this,arguments))return a[3]||this.returnWrappers?a[2]:a[2].apply(this,arguments)}throw new Error("No match found");},unregister:function(e){for(var a=0;a<this.pairs.length;a++)if(this.pairs[a][0]==
e){this.pairs.splice(a,1);return true}return false}});return b.AdapterRegistry});
define("dijit/_base/place",["dojo","dijit","dojo/window","dojo/AdapterRegistry"],function(b,e){e.getViewport=function(){return b.window.getBox()};e.placeOnScreen=function(a,c,d,f){d=b.map(d,function(j){var g={corner:j,pos:{x:c.x,y:c.y}};if(f){g.pos.x+=j.charAt(1)=="L"?f.x:-f.x;g.pos.y+=j.charAt(0)=="T"?f.y:-f.y}return g});return e._place(a,d)};e._place=function(a,c,d,f){var j=b.window.getBox();if(!a.parentNode||String(a.parentNode.tagName).toLowerCase()!="body")b.body().appendChild(a);var g=null;
b.some(c,function(k){var l=k.corner,m=k.pos,p=0,n={w:l.charAt(1)=="L"?j.l+j.w-m.x:m.x-j.l,h:l.charAt(1)=="T"?j.t+j.h-m.y:m.y-j.t};if(d){p=d(a,k.aroundCorner,l,n,f);p=typeof p=="undefined"?0:p}var o=a.style,q=o.display,v=o.visibility;o.visibility="hidden";o.display="";var r=b.marginBox(a);o.display=q;o.visibility=v;o=Math.max(j.l,l.charAt(1)=="L"?m.x:m.x-r.w);q=Math.max(j.t,l.charAt(0)=="T"?m.y:m.y-r.h);v=Math.min(j.l+j.w,l.charAt(1)=="L"?o+r.w:m.x);m=Math.min(j.t+j.h,l.charAt(0)=="T"?q+r.h:m.y);v=
v-o;m=m-q;p+=r.w-v+(r.h-m);if(g==null||p<g.overflow)g={corner:l,aroundCorner:k.aroundCorner,x:o,y:q,w:v,h:m,overflow:p,spaceAvailable:n};return!p});g.overflow&&d&&d(a,g.aroundCorner,g.corner,g.spaceAvailable,f);c=b._isBodyLtr();var h=a.style;h.top=g.y+"px";h[c?"left":"right"]=(c?g.x:j.w-g.x-g.w)+"px";return g};e.placeOnScreenAroundNode=function(a,c,d,f){c=b.byId(c);c=b.position(c,true);return e._placeOnScreenAroundRect(a,c.x,c.y,c.w,c.h,d,f)};e.placeOnScreenAroundRectangle=function(a,c,d,f){return e._placeOnScreenAroundRect(a,
c.x,c.y,c.width,c.height,d,f)};e._placeOnScreenAroundRect=function(a,c,d,f,j,g,h){var k=[];for(var l in g)k.push({aroundCorner:l,corner:g[l],pos:{x:c+(l.charAt(1)=="L"?0:f),y:d+(l.charAt(0)=="T"?0:j)}});return e._place(a,k,h,{w:f,h:j})};e.placementRegistry=new b.AdapterRegistry;e.placementRegistry.register("node",function(a,c){return typeof c=="object"&&typeof c.offsetWidth!="undefined"&&typeof c.offsetHeight!="undefined"},e.placeOnScreenAroundNode);e.placementRegistry.register("rect",function(a,
c){return typeof c=="object"&&"x"in c&&"y"in c&&"width"in c&&"height"in c},e.placeOnScreenAroundRectangle);e.placeOnScreenAroundElement=function(){return e.placementRegistry.match.apply(e.placementRegistry,arguments)};e.getPopupAroundAlignment=function(a,c){var d={};b.forEach(a,function(f){switch(f){case "after":d[c?"BR":"BL"]=c?"BL":"BR";break;case "before":d[c?"BL":"BR"]=c?"BR":"BL";break;case "below-alt":c=!c;case "below":d[c?"BL":"BR"]=c?"TL":"TR";d[c?"BR":"BL"]=c?"TR":"TL";break;case "above-alt":c=
!c;case "above":default:d[c?"TL":"TR"]=c?"BL":"BR";d[c?"TR":"TL"]=c?"BR":"BL";break}});return d};return e});define("dijit/_base/window",["dojo","dijit","dojo/window"],function(b,e){e.getDocumentWindow=function(a){return b.window.get(a)};return e});
define("dijit/_base/popup",["dojo","dijit","dijit/_base/focus","dijit/_base/place","dijit/_base/window"],function(b,e){e.popup={_stack:[],_beginZIndex:1E3,_idGen:1,_createWrapper:function(a){var c=a.declaredClass?a._popupWrapper:a.parentNode&&b.hasClass(a.parentNode,"dijitPopup"),d=a.domNode||a;if(!c){c=b.create("div",{"class":"dijitPopup",style:{display:"none"},role:"presentation"},b.body());c.appendChild(d);d=d.style;d.display="";d.visibility="";d.position="";d.top="0px";if(a.declaredClass){a._popupWrapper=
c;b.connect(a,"destroy",function(){b.destroy(c);delete a._popupWrapper})}}return c},moveOffScreen:function(a){a=this._createWrapper(a);b.style(a,{visibility:"hidden",top:"-9999px",display:""})},hide:function(a){a=this._createWrapper(a);b.style(a,"display","none")},getTopPopup:function(){for(var a=this._stack,c=a.length-1;c>0&&a[c].parent===a[c-1].widget;c--);return a[c]},open:function(a){for(var c=this._stack,d=a.popup,f=a.orient||((a.parent?a.parent.isLeftToRight():b._isBodyLtr())?{BL:"TL",BR:"TR",
TL:"BL",TR:"BR"}:{BR:"TR",BL:"TL",TR:"BR",TL:"BL"}),j=a.around,g=a.around&&a.around.id?a.around.id+"_dropdown":"popup_"+this._idGen++;c.length&&(!a.parent||!b.isDescendant(a.parent.domNode,c[c.length-1].widget.domNode));)e.popup.close(c[c.length-1].widget);var h=this._createWrapper(d);b.attr(h,{id:g,style:{zIndex:this._beginZIndex+c.length},"class":"dijitPopup "+(d.baseClass||d["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:a.parent?a.parent.id:""});if(b.isIE||b.isMoz)if(!d.bgIframe)d.bgIframe=
new e.BackgroundIframe(h);f=j?e.placeOnScreenAroundElement(h,j,f,d.orient?b.hitch(d,"orient"):null):e.placeOnScreen(h,a,f=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],a.padding);h.style.display="";h.style.visibility="visible";d.domNode.style.visibility="visible";j=[];j.push(b.connect(h,"onkeypress",this,function(k){if(k.charOrCode==b.keys.ESCAPE&&a.onCancel){b.stopEvent(k);a.onCancel()}else if(k.charOrCode===b.keys.TAB){b.stopEvent(k);(k=this.getTopPopup())&&k.onCancel&&k.onCancel()}}));d.onCancel&&
j.push(b.connect(d,"onCancel",a.onCancel));j.push(b.connect(d,d.onExecute?"onExecute":"onChange",this,function(){var k=this.getTopPopup();k&&k.onExecute&&k.onExecute()}));c.push({widget:d,parent:a.parent,onExecute:a.onExecute,onCancel:a.onCancel,onClose:a.onClose,handlers:j});d.onOpen&&d.onOpen(f);return f},close:function(a){for(var c=this._stack;a&&b.some(c,function(g){return g.widget==a})||!a&&c.length;){var d=c.pop(),f=d.widget,j=d.onClose;f.onClose&&f.onClose();b.forEach(d.handlers,b.disconnect);
f&&f.domNode&&this.hide(f);j&&j()}}};e._frames=new (function(){var a=[];this.pop=function(){var c;if(a.length){c=a.pop();c.style.display=""}else{if(b.isIE<9){c="<iframe src='"+(b.config.dojoBlankHtmlUrl||b.moduleUrl("dojo","resources/blank.html")+""||'javascript:""')+"' style='position: absolute; left: 0px; top: 0px;z-index: -1; filter:Alpha(Opacity=\"0\");'>";c=b.doc.createElement(c)}else{c=b.create("iframe");c.src='javascript:""';c.className="dijitBackgroundIframe";b.style(c,"opacity",0.1)}c.tabIndex=
-1;e.setWaiRole(c,"presentation")}return c};this.push=function(c){c.style.display="none";a.push(c)}});e.BackgroundIframe=function(a){if(!a.id)throw new Error("no id");if(b.isIE||b.isMoz){var c=this.iframe=e._frames.pop();a.appendChild(c);if(b.isIE<7||b.isQuirks){this.resize(a);this._conn=b.connect(a,"onresize",this,function(){this.resize(a)})}else b.style(c,{width:"100%",height:"100%"})}};b.extend(e.BackgroundIframe,{resize:function(a){this.iframe&&b.style(this.iframe,{width:a.offsetWidth+"px",height:a.offsetHeight+
"px"})},destroy:function(){if(this._conn){b.disconnect(this._conn);this._conn=null}if(this.iframe){e._frames.push(this.iframe);delete this.iframe}}});return e.popup});define("dijit/_base/scroll",["dojo","dijit","dojo/window"],function(b,e){e.scrollIntoView=function(a,c){b.window.scrollIntoView(a,c)};return e.scrollIntoView});
define("dojo/uacss",["dojo"],function(b){(function(){var e=b.doc.documentElement,a=b.isIE,c=b.isOpera,d=Math.floor,f=b.isFF,j=b.boxModel.replace(/-/,"");a={dj_ie:a,dj_ie6:d(a)==6,dj_ie7:d(a)==7,dj_ie8:d(a)==8,dj_ie9:d(a)==9,dj_quirks:b.isQuirks,dj_iequirks:a&&b.isQuirks,dj_opera:c,dj_khtml:b.isKhtml,dj_webkit:b.isWebKit,dj_safari:b.isSafari,dj_chrome:b.isChrome,dj_gecko:b.isMozilla,dj_ff3:d(f)==3};a["dj_"+j]=true;var g="";for(var h in a)if(a[h])g+=h+" ";e.className=b.trim(e.className+" "+g);b._loaders.unshift(function(){if(!b._isBodyLtr()){var k=
"dj_rtl dijitRtl "+g.replace(/ /g,"-rtl ");e.className=b.trim(e.className+" "+k)}})})();return b});define("dijit/_base/sniff",["dojo","dijit","dojo/uacss"],function(b,e){return e});
define("dijit/_base/typematic",["dojo","dijit"],function(b,e){e.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(b.hitch(this,"_fireEventAndReload"),this._currentTimeout)},trigger:function(a,c,d,f,j,g,h,k){if(j!=this._obj){this.stop();
this._initialDelay=h||500;this._subsequentDelay=g||0.9;this._minDelay=k||10;this._obj=j;this._evt=a;this._node=d;this._count=this._currentTimeout=-1;this._callback=b.hitch(c,f);this._fireEventAndReload();this._evt=b.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,c,d,f,j,g,h){if(c.keyCode){c.charOrCode=c.keyCode;b.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.",
"","2.0")}else if(c.charCode){c.charOrCode=String.fromCharCode(c.charCode);b.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0")}return[b.connect(a,"onkeypress",this,function(k){if(k.charOrCode==c.charOrCode&&(c.ctrlKey===undefined||c.ctrlKey==k.ctrlKey)&&(c.altKey===undefined||c.altKey==k.altKey)&&(c.metaKey===undefined||c.metaKey==(k.metaKey||false))&&(c.shiftKey===undefined||c.shiftKey==k.shiftKey)){b.stopEvent(k);e.typematic.trigger(k,
d,a,f,c,j,g,h)}else e.typematic._obj==c&&e.typematic.stop()}),b.connect(a,"onkeyup",this,function(){e.typematic._obj==c&&e.typematic.stop()})]},addMouseListener:function(a,c,d,f,j,g){var h=b.connect;return[h(a,"mousedown",this,function(k){b.stopEvent(k);e.typematic.trigger(k,c,a,d,a,f,j,g)}),h(a,"mouseup",this,function(k){b.stopEvent(k);e.typematic.stop()}),h(a,"mouseout",this,function(k){b.stopEvent(k);e.typematic.stop()}),h(a,"mousemove",this,function(k){k.preventDefault()}),h(a,"dblclick",this,
function(k){b.stopEvent(k);if(b.isIE){e.typematic.trigger(k,c,a,d,a,f,j,g);setTimeout(b.hitch(this,e.typematic.stop),50)}})]},addListener:function(a,c,d,f,j,g,h,k){return this.addKeyListener(c,d,f,j,g,h,k).concat(this.addMouseListener(a,f,j,g,h,k))}};return e.typematic});
define("dijit/_base/wai",["dojo","dijit"],function(b,e){e.wai={onload:function(){var a=b.create("div",{id:"a11yTestNode",style:{cssText:'border: 1px solid;border-color:red green;position: absolute;height: 5px;top: -999px;background-image: url("'+(b.config.blankGif||b.moduleUrl("dojo","resources/blank.gif"))+'");'}},b.body()),c=b.getComputedStyle(a);if(c){var d=c.backgroundImage;b[c.borderTopColor==c.borderRightColor||d!=null&&(d=="none"||d=="url(invalid-url:)")?"addClass":"removeClass"](b.body(),
"dijit_a11y");if(b.isIE)a.outerHTML="";else b.body().removeChild(a)}}};if(b.isIE||b.isMoz)b._loaders.unshift(e.wai.onload);b.mixin(e,{hasWaiRole:function(a,c){a=this.getWaiRole(a);return c?a.indexOf(c)>-1:a.length>0},getWaiRole:function(a){return b.trim((b.attr(a,"role")||"").replace("wairole:",""))},setWaiRole:function(a,c){b.attr(a,"role",c)},removeWaiRole:function(a,c){var d=b.attr(a,"role");if(d)if(c){c=b.trim((" "+d+" ").replace(" "+c+" "," "));b.attr(a,"role",c)}else a.removeAttribute("role")},
hasWaiState:function(a,c){return a.hasAttribute?a.hasAttribute("aria-"+c):!!a.getAttribute("aria-"+c)},getWaiState:function(a,c){return a.getAttribute("aria-"+c)||""},setWaiState:function(a,c,d){a.setAttribute("aria-"+c,d)},removeWaiState:function(a,c){a.removeAttribute("aria-"+c)}});return e});
define("dijit/_base",["dojo","dijit","dijit/_base/focus","dijit/_base/manager","dijit/_base/place","dijit/_base/popup","dijit/_base/scroll","dijit/_base/sniff","dijit/_base/typematic","dijit/_base/wai","dijit/_base/window"],function(b,e){return e._base});
define("dijit/_Widget",["dojo","dijit","dijit/_WidgetBase","dijit/_base"],function(b,e){b.connect(b,"_connect",function(a,c){a&&b.isFunction(a._onConnect)&&a._onConnect(c)});e._connectOnUseEventHandler=function(){};e._lastKeyDownNode=null;b.isIE?function(){var a=function(c){e._lastKeyDownNode=c.srcElement};b.doc.attachEvent("onkeydown",a);b.addOnWindowUnload(function(){b.doc.detachEvent("onkeydown",a)})}():b.doc.addEventListener("keydown",function(a){e._lastKeyDownNode=a.target},true);(function(){b.declare("dijit._Widget",
e._WidgetBase,{_deferredConnects:{onClick:"",onDblClick:"",onKeyDown:"",onKeyPress:"",onKeyUp:"",onMouseMove:"",onMouseDown:"",onMouseOut:"",onMouseOver:"",onMouseLeave:"",onMouseEnter:"",onMouseUp:""},onClick:e._connectOnUseEventHandler,onDblClick:e._connectOnUseEventHandler,onKeyDown:e._connectOnUseEventHandler,onKeyPress:e._connectOnUseEventHandler,onKeyUp:e._connectOnUseEventHandler,onMouseDown:e._connectOnUseEventHandler,onMouseMove:e._connectOnUseEventHandler,onMouseOut:e._connectOnUseEventHandler,
onMouseOver:e._connectOnUseEventHandler,onMouseLeave:e._connectOnUseEventHandler,onMouseEnter:e._connectOnUseEventHandler,onMouseUp:e._connectOnUseEventHandler,create:function(){this._deferredConnects=b.clone(this._deferredConnects);for(var a in this.attributeMap)delete this._deferredConnects[a];for(a in this._deferredConnects)this[a]!==e._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&&b.style(this.domNode,"display")!="none"},onFocus:function(){},onBlur:function(){},_onFocus:function(){this.onFocus()},_onBlur:function(){this.onBlur()},setAttribute:function(a,c){b.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");this.set(a,c)},attr:function(a){if(b.config.isDebug){var c=
arguments.callee._ach||(arguments.callee._ach={}),d=(arguments.callee.caller||"unknown caller").toString();if(!c[d]){b.deprecated(this.declaredClass+"::attr() is deprecated. Use get() or set() instead, called from "+d,"","2.0");c[d]=true}}return arguments.length>=2||typeof a==="object"?this.set.apply(this,arguments):this.get(a)},nodesWithKeyClick:["input","button"],connect:function(a,c,d){var f=b._connect,j=this.inherited(arguments,[a,c=="ondijitclick"?"onclick":c,d]);if(c=="ondijitclick")if(b.indexOf(this.nodesWithKeyClick,
a.nodeName.toLowerCase())==-1){var g=b.hitch(this,d);j.push(f(a,"onkeydown",this,function(h){if((h.keyCode==b.keys.ENTER||h.keyCode==b.keys.SPACE)&&!h.ctrlKey&&!h.shiftKey&&!h.altKey&&!h.metaKey){e._lastKeyDownNode=h.target;"openDropDown"in this&&a==this._buttonNode||h.preventDefault()}}),f(a,"onkeyup",this,function(h){if((h.keyCode==b.keys.ENTER||h.keyCode==b.keys.SPACE)&&h.target==e._lastKeyDownNode&&!h.ctrlKey&&!h.shiftKey&&!h.altKey&&!h.metaKey){e._lastKeyDownNode=null;return g(h)}}))}return j},
_onShow:function(){this.onShow()},onShow:function(){},onHide:function(){},onClose:function(){return true}})})();return e._Widget});
define("dojo/string",["dojo"],function(b){b.getObject("string",true,b);b.string.rep=function(e,a){if(a<=0||!e)return"";for(var c=[];;){a&1&&c.push(e);if(!(a>>=1))break;e+=e}return c.join("")};b.string.pad=function(e,a,c,d){c||(c="0");e=String(e);a=b.string.rep(c,Math.ceil((a-e.length)/c.length));return d?e+a:a+e};b.string.substitute=function(e,a,c,d){d=d||b.global;c=c?b.hitch(d,c):function(f){return f};return e.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(f,j,g){f=b.getObject(j,false,
a);if(g)f=b.getObject(g,false,d).call(d,f,j);return c(f,j).toString()})};b.string.trim=String.prototype.trim?b.trim:function(e){e=e.replace(/^\s+/,"");for(var a=e.length-1;a>=0;a--)if(/\S/.test(e.charAt(a))){e=e.substring(0,a+1);break}return e};return b.string});
define("dojo/date/stamp",["dojo"],function(b){b.getObject("date.stamp",true,b);b.date.stamp.fromISOString=function(e,a){if(!b.date.stamp._isoRegExp)b.date.stamp._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/;var c=b.date.stamp._isoRegExp.exec(e);e=null;if(c){c.shift();c[1]&&c[1]--;if(c[6])c[6]*=1E3;if(a){a=new Date(a);b.forEach(b.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(j){return a["get"+
j]()}),function(j,g){c[g]=c[g]||j})}e=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)e.setFullYear(c[0]||1970);var d=0,f=c[7]&&c[7].charAt(0);if(f!="Z"){d=(c[8]||0)*60+(Number(c[9])||0);if(f!="-")d*=-1}if(f)d-=e.getTimezoneOffset();d&&e.setTime(e.getTime()+d*6E4)}return e};b.date.stamp.toISOString=function(e,a){var c=function(g){return g<10?"0"+g:g};a=a||{};var d=[],f=a.zulu?"getUTC":"get",j="";if(a.selector!="time"){j=e[f+"FullYear"]();j=["0000".substr((j+"").length)+
j,c(e[f+"Month"]()+1),c(e[f+"Date"]())].join("-")}d.push(j);if(a.selector!="date"){j=[c(e[f+"Hours"]()),c(e[f+"Minutes"]()),c(e[f+"Seconds"]())].join(":");f=e[f+"Milliseconds"]();if(a.milliseconds)j+="."+(f<100?"0":"")+c(f);if(a.zulu)j+="Z";else if(a.selector!="time"){e=e.getTimezoneOffset();a=Math.abs(e);j+=(e>0?"-":"+")+c(Math.floor(a/60))+":"+c(a%60)}d.push(j)}return d.join("T")};return b.date.stamp});
define("dojo/parser",["dojo","dojo/date/stamp"],function(b){b.parser=new (function(){function e(h){if(f.isString(h))return"string";if(typeof h=="number")return"number";if(typeof h=="boolean")return"boolean";if(f.isFunction(h))return"function";if(f.isArray(h))return"array";if(h instanceof Date)return"date";if(h instanceof f._Url)return"url";return"object"}function a(h,k){switch(k){case "string":return h;case "number":return h.length?Number(h):NaN;case "boolean":return typeof h=="boolean"?h:h.toLowerCase()!=
"false";case "function":if(f.isFunction(h)){h=h.toString();h=f.trim(h.substring(h.indexOf("{")+1,h.length-1))}try{return h===""||h.search(/[^\w\.]+/i)!=-1?new Function(h):f.getObject(h,false)||new Function(h)}catch(l){return new Function}case "array":return h?h.split(/\s*,\s*/):[];case "date":switch(h){case "":return new Date("");case "now":return new Date;default:return f.date.stamp.fromISOString(h)}case "url":return f.baseUrl+h;default:return f.fromJson(h)}}function c(h,k){for(var l in h)if(l.charAt(0)!=
"_")l in j||(k[l]=e(h[l]));return k}function d(h,k){var l=g[h];if(l){if(!k&&!l.params)l.params=c(l.cls.prototype,{})}else{h=f.getObject(h);l=null;if(!h)return null;k||(l=c(h.prototype,{}));l={cls:h,params:l}}return l}var f=b,j={},g={};f.connect(f,"extend",function(){g={}});this._functionFromScript=function(h,k){var l="",m="";(k=h.getAttribute(k+"args")||h.getAttribute("args"))&&f.forEach(k.split(/\s*,\s*/),function(p,n){l+="var "+p+" = arguments["+n+"]; "});(k=h.getAttribute("with"))&&k.length&&f.forEach(k.split(/\s*,\s*/),
function(p){l+="with("+p+"){";m+="}"});return new Function(l+h.innerHTML+m)};this.instantiate=function(h,k,l){var m=[];k=k||{};l=l||{};var p=(l.scope||f._scopeName)+"Type",n="data-"+(l.scope||f._scopeName)+"-";f.forEach(h,function(o){if(o){var q,v,r,s,w,u;if(o.node){q=o.node;v=o.type;u=o.fastpath;s=(r=o.clsInfo||v&&d(v,u))&&r.cls;w=o.scripts}else{q=o;w=(s=(r=(v=p in k?k[p]:q.getAttribute(p))&&d(v))&&r.cls)&&(s._noScript||s.prototype._noScript)?[]:f.query("> script[type^='dojo/']",q)}if(!r)throw new Error("Could not load class '"+
v);var y={};l.defaults&&f._mixin(y,l.defaults);o.inherited&&f._mixin(y,o.inherited);if(u){if((r=q.getAttribute(n+"props"))&&r.length)try{r=f.fromJson.call(l.propsThis,"{"+r+"}");f._mixin(y,r)}catch(E){throw new Error(E.toString()+" in data-dojo-props='"+r+"'");}if(r=q.getAttribute(n+"attach-point"))y.dojoAttachPoint=r;if(r=q.getAttribute(n+"attach-event"))y.dojoAttachEvent=r;b.mixin(y,k)}else{o=q.attributes;for(var D in r.params){v=D in k?{value:k[D],specified:true}:o.getNamedItem(D);if(!(!v||!v.specified&&
(!b.isIE||D.toLowerCase()!="value"))){v=v.value;switch(D){case "class":v="className"in k?k.className:q.className;break;case "style":v="style"in k?k.style:q.style&&q.style.cssText}var B=r.params[D];y[D]=typeof v=="string"?a(v,B):v}}}var F=[],G=[];f.forEach(w,function(H){q.removeChild(H);var N=H.getAttribute(n+"event")||H.getAttribute("event"),M=H.getAttribute("type");H=f.parser._functionFromScript(H,n);if(N)if(M=="dojo/connect")F.push({event:N,func:H});else y[N]=H;else G.push(H)});var L=(w=s.markupFactory||
s.prototype&&s.prototype.markupFactory)?w(y,q,s):new s(y,q);m.push(L);(s=q.getAttribute(n+"id")||q.getAttribute("jsId"))&&f.setObject(s,L);f.forEach(F,function(H){f.connect(L,H.event,null,H.func)});f.forEach(G,function(H){H.call(L)})}});k._started||f.forEach(m,function(o){if(!l.noStart&&o&&b.isFunction(o.startup)&&!o._started&&(!o.getParent||!o.getParent()))o.startup()});return m};this.parse=function(h,k){function l(q,v){var r=b.clone(q.inherited);b.forEach(["dir","lang"],function(D){var B=q.node.getAttribute(D);
if(B)r[D]=B});for(var s=q.clsInfo&&!q.clsInfo.cls.prototype._noScript?q.scripts:null,w=!q.clsInfo||!q.clsInfo.cls.prototype.stopParser||k&&k.template,u=q.node.firstChild;u;u=u.nextSibling)if(u.nodeType==1){var y,E=w&&u.getAttribute(p+"type");y=E?E:w&&u.getAttribute(m);E=E==y;if(y){y={type:y,fastpath:E,clsInfo:d(y,E),node:u,scripts:[],inherited:r};v.push(y);l(y,v)}else if(s&&u.nodeName.toLowerCase()=="script")(y=u.getAttribute("type"))&&/^dojo\/\w/i.test(y)&&s.push(u);else w&&l({node:u,inherited:r},
v)}}if(!k&&h&&h.rootNode){k=h;h=k.rootNode}else h=h;h=h?b.byId(h):b.body();k=k||{};var m=(k.scope||f._scopeName)+"Type",p="data-"+(k.scope||f._scopeName)+"-",n={};if(k&&k.inherited)for(var o in k.inherited)if(k.inherited[o])n[o]=k.inherited[o];o=[];l({node:h,inherited:n},o);return this.instantiate(o,k&&k.template?{template:true}:null,k)}});(function(){var e=function(){b.config.parseOnLoad&&b.parser.parse()};b.getObject("dijit.wai.onload")===b._loaders[0]?b._loaders.splice(1,0,e):b._loaders.unshift(e)})();
return b.parser});
define("dojo/cache",["dojo"],function(b){var e={};b.cache=function(a,c,d){if(typeof a=="string")var f=b.moduleUrl(a,c);else{f=a;d=c}f=f.toString();var j=d;if(d!=undefined&&!b.isString(d))j="value"in d?d.value:undefined;d=d&&d.sanitize?true:false;if(typeof j=="string")j=e[f]=d?b.cache._sanitize(j):j;else if(j===null)delete e[f];else{if(!(f in e)){j=undefined;if(b.isFunction(require)&&b.isString(a))try{var g=(a?a.replace(/\./g,"/")+"/":"")+c;j=require("text!"+g)}catch(h){}if(typeof j==="undefined")j=
b._getText(f);e[f]=d?b.cache._sanitize(j):j}j=e[f]}return j};b.cache._sanitize=function(a){if(a){a=a.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var c=a.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(c)a=c[1]}else a="";return a};return b.cache});
define("dijit/_Templated",["dojo","dijit","dijit/_Widget","dojo/string","dojo/parser","dojo/cache"],function(b,e){b.declare("dijit._Templated",null,{templateString:null,templatePath:null,widgetsInTemplate:false,_skipNodeCache:false,_earlyTemplatedStartup:false,constructor:function(){this._attachPoints=[];this._attachEvents=[]},_stringRepl:function(a){var c=this.declaredClass,d=this;return b.string.substitute(a,this,function(f,j){if(j.charAt(0)=="!")f=b.getObject(j.substr(1),false,d);if(typeof f==
"undefined")throw new Error(c+" template:"+j);if(f==null)return"";return j.charAt(0)=="!"?f:f.toString().replace(/"/g,"&quot;")},this)},buildRendering:function(){var a=e._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache),c;if(b.isString(a)){c=b._toDom(this._stringRepl(a));if(c.nodeType!=1)throw new Error("Invalid template: "+a);}else c=a.cloneNode(true);this.domNode=c;this.inherited(arguments);this._attachTemplateNodes(c);if(this.widgetsInTemplate){a=this._startupWidgets=
b.parser.parse(c,{noStart:!this._earlyTemplatedStartup,template:true,inherited:{dir:this.dir,lang:this.lang},propsThis:this,scope:"dojo"});this._supportingWidgets=e.findWidgets(c);this._attachTemplateNodes(a,function(d,f){return d[f]})}this._fillContent(this.srcNodeRef)},_fillContent:function(a){var c=this.containerNode;if(a&&c)for(;a.hasChildNodes();)c.appendChild(a.firstChild)},_attachTemplateNodes:function(a,c){c=c||function(m,p){return m.getAttribute(p)};for(var d=b.isArray(a)?a:a.all||a.getElementsByTagName("*"),
f=b.isArray(a)?0:-1;f<d.length;f++){var j=f==-1?a:d[f];if(!(this.widgetsInTemplate&&(c(j,"dojoType")||c(j,"data-dojo-type")))){var g=c(j,"dojoAttachPoint")||c(j,"data-dojo-attach-point");if(g)for(var h=g.split(/\s*,\s*/);g=h.shift();){if(b.isArray(this[g]))this[g].push(j);else this[g]=j;this._attachPoints.push(g)}if(g=c(j,"dojoAttachEvent")||c(j,"data-dojo-attach-event")){h=g.split(/\s*,\s*/);for(var k=b.trim;g=h.shift();)if(g){var l=null;if(g.indexOf(":")!=-1){l=g.split(":");g=k(l[0]);l=k(l[1])}else g=
k(g);l||(l=g);this._attachEvents.push(this.connect(j,g,l))}}(g=c(j,"waiRole"))&&e.setWaiRole(j,g);(g=c(j,"waiState"))&&b.forEach(g.split(/\s*,\s*/),function(m){if(m.indexOf("-")!=-1){m=m.split("-");e.setWaiState(j,m[0],m[1])}})}}},startup:function(){b.forEach(this._startupWidgets,function(a){a&&!a._started&&a.startup&&a.startup()});this.inherited(arguments)},destroyRendering:function(){b.forEach(this._attachPoints,function(a){delete this[a]},this);this._attachPoints=[];b.forEach(this._attachEvents,
this.disconnect,this);this._attachEvents=[];this.inherited(arguments)}});e._Templated._templateCache={};e._Templated.getCachedTemplate=function(a,c,d){var f=e._Templated._templateCache,j=c||a,g=f[j];if(g){try{if(!g.ownerDocument||g.ownerDocument==b.doc)return g}catch(h){}b.destroy(g)}c||(c=b.cache(a,{sanitize:true}));c=b.string.trim(c);if(d||c.match(/\$\{([^\}]+)\}/g))return f[j]=c;else{a=b._toDom(c);if(a.nodeType!=1)throw new Error("Invalid template: "+c);return f[j]=a}};b.isIE&&b.addOnWindowUnload(function(){var a=
e._Templated._templateCache;for(var c in a){var d=a[c];typeof d=="object"&&b.destroy(d);delete a[c]}});b.extend(e._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});return e._Templated});
define("dijit/_CssStateMixin",["dojo","dijit"],function(b,e){b.declare("dijit._CssStateMixin",[],{cssStateNodes:{},hovering:false,active:false,_applyAttributes:function(){this.inherited(arguments);b.forEach(["onmouseenter","onmouseleave","onmousedown"],function(c){this.connect(this.domNode,c,"_cssMouseEvent")},this);b.forEach(["disabled","readOnly","checked","selected","focused","state","hovering","active"],function(c){this.watch(c,b.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 c=this.connect(b.body(),"onmouseup",function(){this._mouseDown=false;this._set("active",false);this.disconnect(c)});break}},_setStateClass:function(){function a(h){c=
c.concat(b.map(c,function(k){return k+h}),"dijit"+h)}var c=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 d=this.stateNode||this.domNode,f={};b.forEach(d.className.split(" "),function(h){f[h]=true});"_stateClasses"in this&&b.forEach(this._stateClasses,
function(h){delete f[h]});b.forEach(c,function(h){f[h]=true});var j=[];for(var g in f)j.push(g);d.className=j.join(" ");this._stateClasses=c},_trackMouseState:function(a,c){function d(){var l="disabled"in h&&h.disabled||"readonly"in h&&h.readonly;b.toggleClass(a,c+"Hover",f&&!j&&!l);b.toggleClass(a,c+"Active",j&&!l);b.toggleClass(a,c+"Focused",g&&!l)}var f=false,j=false,g=false,h=this,k=b.hitch(this,"connect",a);k("onmouseenter",function(){f=true;d()});k("onmouseleave",function(){j=f=false;d()});
k("onmousedown",function(){j=true;d()});k("onmouseup",function(){j=false;d()});k("onfocus",function(){g=true;d()});k("onblur",function(){g=false;d()});this.watch("disabled",d);this.watch("readOnly",d)}});return e._CssStateMixin});
define("dijit/form/_FormWidget",["dojo","dijit","dojo/window","dijit/_Widget","dijit/_Templated","dijit/_CssStateMixin"],function(b,e){b.declare("dijit.form._FormWidget",[e._Widget,e._Templated,e._CssStateMixin],{name:"",alt:"",value:"",type:"text",tabIndex:"0",disabled:false,intermediateChanges:false,scrollOnFocus:true,attributeMap:b.delegate(e._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);b.attr(this.focusNode,"disabled",a);this.valueNode&&b.attr(this.valueNode,"disabled",a);e.setWaiState(this.focusNode,"disabled",a);if(a){this._set("hovering",false);this._set("active",false);a="tabIndex"in this.attributeMap?this.attributeMap.tabIndex:"focusNode";
b.forEach(b.isArray(a)?a:[a],function(c){c=this[c];b.isWebKit||e.hasDefaultTabStop(c)?c.setAttribute("tabIndex","-1"):c.removeAttribute("tabIndex")},this)}else this.tabIndex!=""&&this.focusNode.setAttribute("tabIndex",this.tabIndex)},setDisabled:function(a){b.deprecated("setDisabled("+a+") is deprecated. Use set('disabled',"+a+") instead.","","2.0");this.set("disabled",a)},_onFocus:function(){this.scrollOnFocus&&b.window.scrollIntoView(this.domNode);this.inherited(arguments)},isFocusable:function(){return!this.disabled&&
this.focusNode&&b.style(this.domNode,"display")!="none"},focus:function(){this.disabled||e.focus(this.focusNode)},compare:function(a,c){return typeof a=="number"&&typeof c=="number"?isNaN(a)&&isNaN(c)?0:a-c:a>c?1:a<c?-1:0},onChange:function(){},_onChangeActive:false,_handleOnChange:function(a,c){if(this._lastValueReported==undefined&&(c===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||c||c===undefined)&&this._pendingOnChange){this._lastValueReported=a;this._pendingOnChange=false;if(this._onChangeActive){this._onChangeHandle&&clearTimeout(this._onChangeHandle);this._onChangeHandle=setTimeout(b.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){b.deprecated("dijit.form._FormWidget:setValue("+a+") is deprecated.  Use set('value',"+a+") instead.","","2.0");this.set("value",a)},getValue:function(){b.deprecated(this.declaredClass+"::getValue() is deprecated. Use get('value') instead.","","2.0");return this.get("value")},_onMouseDown:function(a){if(!a.ctrlKey&&b.mouseButtons.isLeft(a)&&this.isFocusable())var c=this.connect(b.body(),"onmouseup",function(){this.isFocusable()&&this.focus();this.disconnect(c)})}});b.declare("dijit.form._FormValueWidget",
e.form._FormWidget,{readOnly:false,attributeMap:b.delegate(e.form._FormWidget.prototype.attributeMap,{value:"",readOnly:"focusNode"}),_setReadOnlyAttr:function(a){b.attr(this.focusNode,"readOnly",a);e.setWaiState(this.focusNode,"readonly",a);this._set("readOnly",a)},postCreate:function(){this.inherited(arguments);if(b.isIE<9||b.isIE&&b.isQuirks)this.connect(this.focusNode||this.domNode,"onkeydown",this._onKeyDown);if(this._resetValue===undefined)this._lastValueReported=this._resetValue=this.value},
_setValueAttr:function(a,c){this._handleOnChange(a,c)},_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==b.keys.ESCAPE&&!(a.ctrlKey||a.altKey||a.metaKey)){var c;if(b.isIE){a.preventDefault();c=document.createEventObject();c.keyCode=b.keys.ESCAPE;c.shiftKey=a.shiftKey;a.srcElement.fireEvent("onkeypress",
c)}}},_layoutHackIE7:function(){if(b.isIE==7)for(var a=this.domNode,c=a.parentNode,d=a.firstChild||a,f=d.style.filter,j=this;c&&c.clientHeight==0;){(function(){var g=j.connect(c,"onscroll",function(){j.disconnect(g);d.style.filter=(new Date).getMilliseconds();setTimeout(function(){d.style.filter=f},0)})})();c=c.parentNode}}});return e.form._FormWidget});
define("dijit/form/TextBox",["dojo","dijit","text!dijit/form/templates/TextBox.html","dijit/form/_FormWidget"],function(b,e){b.declare("dijit.form.TextBox",e.form._FormValueWidget,{trim:false,uppercase:false,lowercase:false,propercase:false,maxLength:"",selectOnClick:false,placeHolder:"",templateString:b.cache("dijit.form","templates/TextBox.html"),_singleNodeTemplate:'<input class="dijit dijitReset dijitLeft dijitInputField" dojoAttachPoint="textbox,focusNode" autocomplete="off" type="${type}" ${!nameAttrSetting} />',
_buttonInputDisabled:b.isIE?"disabled":"",baseClass:"dijitTextBox",attributeMap:b.delegate(e.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==e.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=b.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,
c,d){var f;if(a!==undefined){f=this.filter(a);if(typeof d!="string")d=f!==null&&(typeof f!="number"||!isNaN(f))?this.filter(this.format(f,this.constraints)):""}if(d!=null&&d!=undefined&&(typeof d!="number"||!isNaN(d))&&this.textbox.value!=d){this.textbox.value=d;this._set("displayedValue",this.get("displayedValue"))}this._updatePlaceHolder();this.inherited(arguments,[f,c])},displayedValue:"",getDisplayedValue:function(){b.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){b.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 b.keys.SHIFT:case b.keys.ALT:case b.keys.CTRL:case b.keys.TAB:return}if(this.intermediateChanges){var c=this;setTimeout(function(){c._handleOnChange(c.get("value"),false)},0)}this._refreshState();this._set("displayedValue",this.get("displayedValue"))},
postCreate:function(){b.isIE&&setTimeout(b.hitch(this,function(){var a=b.getComputedStyle(this.domNode);if(a)if(a=a.fontFamily){var c=this.domNode.getElementsByTagName("INPUT");if(c)for(var d=0;d<c.length;d++)c[d].style.fontFamily=a}}),0);this.textbox.setAttribute("value",this.textbox.value);this.inherited(arguments);if(b.isMoz||b.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=b.trim(a);if(this.uppercase)a=a.toUpperCase();if(this.lowercase)a=a.toLowerCase();if(this.propercase)a=a.replace(/[^\s]+/g,function(c){return c.substring(0,1).toUpperCase()+c.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&&b.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 c;if(b.isIE){c=b.doc.selection.createRange();c=c.parentElement()==this.textbox&&
c.text.length==0}else c=this.textbox.selectionStart==this.textbox.selectionEnd;c&&e.selectInputText(this.textbox)});this._updatePlaceHolder();this.inherited(arguments);this._refreshState()}},reset:function(){this.textbox.value="";this.inherited(arguments)}});e.selectInputText=function(a,c,d){var f=b.global,j=b.doc;a=b.byId(a);if(isNaN(c))c=0;if(isNaN(d))d=a.value?a.value.length:0;e.focus(a);if(j.selection&&b.body().createTextRange){if(a.createTextRange){a=a.createTextRange();a.collapse(true);a.moveStart("character",
-99999);a.moveStart("character",c);a.moveEnd("character",d-c);a.select()}}else f.getSelection&&a.setSelectionRange&&a.setSelectionRange(c,d)};return e.form.TextBox});define("text!dijit/templates/Tooltip.html",function(){return'<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>'});
define("dijit/Tooltip",["dojo","dijit","dijit/_Widget","dijit/_Templated","text!dijit/templates/Tooltip.html"],function(b,e){b.declare("dijit._MasterTooltip",[e._Widget,e._Templated],{duration:e.defaultDuration,templateString:b.cache("dijit","templates/Tooltip.html"),postCreate:function(){b.body().appendChild(this.domNode);this.bgIframe=new e.BackgroundIframe(this.domNode);this.fadeIn=b.fadeIn({node:this.domNode,duration:this.duration,onEnd:b.hitch(this,"_onShow")});this.fadeOut=b.fadeOut({node:this.domNode,
duration:this.duration,onEnd:b.hitch(this,"_onHide")})},show:function(a,c,d,f){if(!(this.aroundNode&&this.aroundNode===c)){this.domNode.width="auto";if(this.fadeOut.status()=="playing")this._onDeck=arguments;else{this.containerNode.innerHTML=a;e.placeOnScreenAroundElement(this.domNode,c,e.getPopupAroundAlignment(d&&d.length?d:e.Tooltip.defaultPosition,!f),b.hitch(this,"orient"));b.style(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=true;this.aroundNode=c}}},orient:function(a,c,d,
f,j){this.connectorNode.style.top="";var g=f.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"}[c+"-"+d];this.domNode.style.width="auto";var h=b.contentBox(this.domNode),k=Math.min(Math.max(g,1),h.w),l=k<h.w;this.domNode.style.width=k+"px";if(l){this.containerNode.style.overflow=
"auto";l=this.containerNode.scrollWidth;this.containerNode.style.overflow="visible";if(l>k){l=l+b.style(this.domNode,"paddingLeft")+b.style(this.domNode,"paddingRight");this.domNode.style.width=l+"px"}}if(d.charAt(0)=="B"&&c.charAt(0)=="B"){a=b.marginBox(a);c=this.connectorNode.offsetHeight;if(a.h>f.h){this.connectorNode.style.top=f.h-j.h/2-c/2+"px";this.connectorNode.style.bottom=""}else{this.connectorNode.style.bottom=Math.min(Math.max(j.h/2-c/2,0),a.h-c)+"px";this.connectorNode.style.top=""}}else{this.connectorNode.style.top=
"";this.connectorNode.style.bottom=""}return Math.max(0,h.w-g)},_onShow:function(){if(b.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}}});e.showTooltip=function(a,c,d,f){if(!e._masterTT)e._masterTT=
new e._MasterTooltip;return e._masterTT.show(a,c,d,f)};e.hideTooltip=function(a){if(!e._masterTT)e._masterTT=new e._MasterTooltip;return e._masterTT.hide(a)};b.declare("dijit.Tooltip",e._Widget,{label:"",showDelay:400,connectId:[],position:[],_setConnectIdAttr:function(a){b.forEach(this._connections||[],function(d){b.forEach(d,b.hitch(this,"disconnect"))},this);var c=b.isArrayLike(a)?a:a?[a]:[];this._connections=b.map(c,function(d){return(d=b.byId(d))?[this.connect(d,"onmouseenter","_onTargetMouseEnter"),
this.connect(d,"onmouseleave","_onTargetMouseLeave"),this.connect(d,"onfocus","_onTargetFocus"),this.connect(d,"onblur","_onTargetBlur")]:[]},this);this._set("connectId",a);this._connectIds=c},addTarget:function(a){a=a.id||a;b.indexOf(this._connectIds,a)==-1&&this.set("connectId",this._connectIds.concat(a))},removeTarget:function(a){a=b.indexOf(this._connectIds,a.id||a);if(a>=0){this._connectIds.splice(a,1);this.set("connectId",this._connectIds)}},buildRendering:function(){this.inherited(arguments);
b.addClass(this.domNode,"dijitTooltipData")},startup:function(){this.inherited(arguments);var a=this.connectId;b.forEach(b.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 c=a.target;this._showTimer=setTimeout(b.hitch(this,function(){this.open(c)}),
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}e.showTooltip(this.label||this.domNode.innerHTML,a,this.position,!this.isLeftToRight());this._connectNode=a;this.onShow(a,this.position)},close:function(){if(this._connectNode){e.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)}});e.Tooltip.defaultPosition=["after","before"];return e.Tooltip});
(function(){function b(c,d,f,j,g,h){if(d[c]){f.push(c);if(d[c]===true||d[c]===1)j.push(g+c+"/"+h)}}function e(c,d,f,j,g){d=j+d+"/"+g;require._fileExists(c.nameToUrl(d,null))&&f.push(d)}var a=/(^.*(^|\/)nls(\/|$))([^\/]*)\/?([^\/]*)/;define("i18n",{version:"0.24.0",load:function(c,d,f,j){j=j||{};var g=a.exec(c),h=g[1],k=g[4],l=g[5],m=k.split("-"),p=[],n={},o,q,v="";if(g[5]){h=g[1];c=h+l}else{c=c;l=g[4];k=j.locale||(j.locale=typeof navigator==="undefined"?"root":(navigator.language||navigator.userLanguage||
"root").toLowerCase());m=k.split("-")}if(j.isBuild){p.push(c);e(d,"root",p,h,l);for(o=0;q=m[o];o++){v+=(v?"-":"")+q;e(d,v,p,h,l)}d(p);f()}else d([c],function(r){var s=[];b("root",r,s,p,h,l);for(o=0;q=m[o];o++){v+=(v?"-":"")+q;b(v,r,s,p,h,l)}d(p,function(){var w,u;for(w=s.length-1;w>-1&&(q=s[w]);w--){u=r[q];if(u===true||u===1)u=d(h+q+"/"+l);require.mixin(n,u)}f(n)})})}})})();
define("dijit/form/nls/validate",{root:{invalidMessage:"The value entered is not valid.",missingMessage:"This value is required.",rangeMessage:"This value is out of range."},zh:true,"zh-tw":true,tr:true,th:true,sv:true,sl:true,sk:true,ru:true,ro:true,pt:true,"pt-pt":true,pl:true,nl:true,nb:true,ko:true,kk:true,ja:true,it:true,hu:true,he:true,fr:true,fi:true,es:true,el:true,de:true,da:true,cs:true,ca:true,ar:true});
define("dijit/form/ValidationTextBox",["dojo","dijit","text!dijit/form/templates/ValidationTextBox.html","dojo/i18n","dijit/form/TextBox","dijit/Tooltip","i18n!dijit/form/nls/validate"],function(b,e){b.declare("dijit.form.ValidationTextBox",e.form.TextBox,{templateString:b.cache("dijit.form","templates/ValidationTextBox.html"),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,c){return(new RegExp("^(?:"+this.regExpGen(c)+")"+(this.required?"":"?")+"$")).test(a)&&(!this.required||!this._isEmpty(a))&&(this._isEmpty(a)||this.parse(a,c)!==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 c="",d=this.disabled||this.isValid(a);if(d)this._maskValidSubsetError=true;var f=this._isEmpty(this.textbox.value),j=!d&&a&&this._isValidSubset();this._set("state",d?"":((!this._hasBeenBlurred||a)&&f||j)&&this._maskValidSubsetError?
"Incomplete":"Error");e.setWaiState(this.focusNode,"invalid",d?"false":"true");if(this.state=="Error"){this._maskValidSubsetError=a&&j;c=this.getErrorMessage(a)}else if(this.state=="Incomplete"){c=this.getPromptMessage(a);this._maskValidSubsetError=!this._hasBeenBlurred||a}else if(f)c=this.getPromptMessage(a);this.set("message",c);return d},displayMessage:function(a){e.hideTooltip(this.domNode);a&&this._focused&&e.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 c="";a!=".*"&&this.regExp.replace(/\\.|\[\]|\[.*?[^\\]{1}\]|\{.*?\}|\(\?[=:!]|./g,function(f){switch(f.charAt(0)){case "{":case "+":case "?":case "*":case "^":case "$":case "|":case "(":c+=f;break;case ")":c+="|$)";break;
default:c+="(?:"+f+"|$)";break}});try{"".search(c)}catch(d){c=this.regExp;console.warn("RegExp error in "+this.declaredClass+": "+this.regExp)}this._partialre="^(?:"+c+")$"},postMixInProperties:function(){this.inherited(arguments);this.messages=b.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);e.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)}});b.declare("dijit.form.MappedTextBox",e.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=b.place("<input type='hidden'"+(this.name?" name='"+this.name.replace(/'/g,"&quot;")+"'":"")+"/>",this.textbox,"after")},reset:function(){this.valueNode.value="";this.inherited(arguments)}});b.declare("dijit.form.RangeBoundTextBox",e.form.MappedTextBox,{rangeMessage:"",rangeCheck:function(a,c){return("min"in c?this.compare(a,c.min)>=0:true)&&("max"in c?this.compare(a,c.max)<=0:true)},isInRange:function(){return this.rangeCheck(this.get("value"),this.constraints)},_isDefinitelyOutOfRange:function(){var a=
this.get("value"),c=false,d=false;if("min"in this.constraints){c=this.constraints.min;c=this.compare(a,typeof c=="number"&&c>=0&&a!=0?0:c);c=typeof c=="number"&&c<0}if("max"in this.constraints){d=this.constraints.max;d=this.compare(a,typeof d!="number"||d>0?d:0);d=typeof d=="number"&&d>0}return c||d},_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 c=this.get("value");if(c!==null&&c!==""&&c!==undefined&&(typeof c!="number"||!isNaN(c))&&!this.isInRange(a))return this.rangeMessage;return this.inherited(arguments)},postMixInProperties:function(){this.inherited(arguments);if(!this.rangeMessage){this.messages=b.i18n.getLocalization("dijit.form","validate",this.lang);this.rangeMessage=this.messages.rangeMessage}},_setConstraintsAttr:function(){this.inherited(arguments);if(this.focusNode){this.constraints.min!==
undefined?e.setWaiState(this.focusNode,"valuemin",this.constraints.min):e.removeWaiState(this.focusNode,"valuemin");this.constraints.max!==undefined?e.setWaiState(this.focusNode,"valuemax",this.constraints.max):e.removeWaiState(this.focusNode,"valuemax")}},_setValueAttr:function(a){e.setWaiState(this.focusNode,"valuenow",a);this.inherited(arguments)}});return e.form.ValidationTextBox});
define("orion/util",["dojo","dijit","dojo/hash","dijit/form/ValidationTextBox"],function(b,e){function a(u){w=u}function c(){return w}function d(u){var y="",E=navigator.platform.indexOf("Mac")!==-1;if(u.mod1)y+=E?"Cmd+":"Ctrl+";if(u.mod2)y+="Shift+";if(u.mod3)y+="Alt+";if(u.alphaKey)return y+u.alphaKey;for(var D in b.keys)if(typeof(b.keys[D]==="number"))if(b.keys[D]===u.keyCode)return y+D;var B;switch(u.keyCode){case 59:B=u.mod2?":":";";break;case 61:B=u.mod2?"+":"=";break;case 188:B=u.mod2?"<":",";
break;case 190:B=u.mod2?">":".";break;case 191:B=u.mod2?"?":"/";break;case 192:B=u.mod2?"~":"`";break;case 219:B=u.mod2?"{":"[";break;case 220:B=u.mod2?"|":"\\";break;case 221:B=u.mod2?"}":"]";break;case 222:B=u.mod2?'"':"'";break}if(B)return y+B;return y+String.fromCharCode(u.keyCode)}function f(u,y){u.startup();if(typeof y==="string"){var E=b.byId(y);if(!E)if(E=e.byId(y))E=E.domNode;y=E?E:null}if(y){y=b.position(y);u._setStyleAttr("left:"+(y.x+16)+"px !important;");u._setStyleAttr("top:"+(y.y+16)+
"px !important;")}u.show()}function j(u,y,E,D,B,F,G,L){G=function(N){return function(M){var Q=e.byId(u),R=Q.get("value");if(N&&M.keyCode===b.keys.ESCAPE){E&&b.style(y,"display","inline");Q.destroyRecursive();F&&F()}else if(!(N&&M.keyCode!==b.keys.ENTER)){if(!Q.isValid()||R===D)E&&b.style(y,"display","inline");else B(R);Q.destroyRecursive();F&&F()}}};var H=new e.form.ValidationTextBox({id:u,required:true,value:D||""});b.place(H.domNode,y,"after");b.addClass(H.domNode,"userEditBoxPrompt");E&&b.style(y,
"display","none");b.connect(H,"onKeyDown",G(true));b.connect(H,"onBlur",G(false));window.setTimeout(function(){H.focus();if(D){var N=b.byId(u),M=L?D.indexOf(L):-1;M>0?e.selectInputText(N,0,M):N.select()}},0)}function g(u){var y=window.navigator.platform.indexOf("Mac")!==-1;return y&&u.metaKey||!y&&u.ctrlKey}function h(u,y){if(y&&g(y))window.open(u);else window.location=u}function k(u){if(!u)return u;var y=window.location.href.split("#")[0];y=y.substring(0,y.length-window.location.pathname.length);
if(u.indexOf(y)===0)return u.substring(y.length);return u}function l(u){var y,E,D,B,F;u=u.split("#");var G=u[u.length-1].split(/\?(?=(?:line|char))/);u=k(G[0]);if(G.length>1){G=G[1].split(/\&(?=(?:line|char))/);for(var L=0;L<G.length;L++){var H=G[L].split("=");if(H.length>1)switch(H[0]){case "char":H=H[1].split(",");if(D===undefined){y=window.parseInt(H[0]);if(H.length>1)E=window.parseInt(H[1])}else{B=H[0];if(H.length>1)F=window.parseInt(H[1]-B)}break;case "line":H=H[1].split(",");D=window.parseInt(H[0]);
break;default:break}}}return{filePath:u,start:y,end:E,line:D,offset:B,length:F}}function m(u,y,E,D,B,F){if(typeof y==="number"){u="#"+u+"?char="+y;if(typeof E==="number")u=u+","+E;else if(typeof F==="number")u=u+","+(y+F);return u}if(typeof D==="number"){u="#"+u+"?line="+D;if(typeof B==="number"){u=u+"&char="+B;if(typeof F==="number")u=u+","+(B+F)}return u}return"#"+u}function p(u){if(!u)return u;var y=window.location.href.split("#")[0];return y.substring(0,y.length-window.location.pathname.length)+
u}function n(u){return this.makeRelative(u).indexOf("/workspace")===0}function o(u,y){u.children=y;for(var E in y)y[E].parent=u;u.children.sort(function(D,B){var F=D.Directory;if(F!==B.Directory)return F?-1:1;D=D.Name&&D.Name.toLowerCase();B=B.Name&&B.Name.toLowerCase();if(D<B)return-1;if(D>B)return 1;return 0})}function q(u,y){u.Parents&&u.Parents.length===0&&y.getService("orion.core.preference").then(function(E){return E.getPreferences("/window/recent")}).then(function(E){var D=E.get("projects");
if(typeof D==="string")D=JSON.parse(D);var B=[];if(D&&D.length&&D.length>0)for(var F=0;F<D.length;F++)D[F].location!==u.ChildrenLocation&&D[F].name!==u.Name&&B.push(D[F]);B.push({name:u.Name,location:u.ChildrenLocation});if(B.length>5)B=B.slice(-5,B.length);E.put("projects",B)})}function v(u){return typeof u.textContent!=="undefined"?u.textContent:u.innerText}function r(u){return v(document.createTextNode(u))}function s(u,y){if(typeof u.textContent!=="undefined")u.textContent=y;else u.innerText=y}
var w=null;return{setUserName:a,getUserName:c,getUserKeyString:d,openDialog:f,getUserText:j,openInNewWindow:g,followLink:h,getPositionInfo:l,hashFromPosition:m,makeRelative:k,makeFullPath:p,isAtRoot:n,processNavigatorParent:o,rememberSuccessfulTraversal:q,getText:v,safeText:r,setText:s}});define("text!dijit/templates/Menu.html",function(){return'<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>'});
define("dijit/_Container",["dojo","dijit"],function(b,e){b.declare("dijit._Container",null,{isContainer:true,buildRendering:function(){this.inherited(arguments);if(!this.containerNode)this.containerNode=this.domNode},addChild:function(a,c){var d=this.containerNode;if(c&&typeof c=="number"){var f=this.getChildren();if(f&&f.length>=c){d=f[c-1].domNode;c="after"}}b.place(a.domNode,d,c);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){b.forEach(this.getChildren(),function(c){c.destroyRecursive(a)})},_getSiblingOfChild:function(a,c){a=a.domNode;c=c>0?"nextSibling":"previousSibling";do a=a[c];while(a&&(a.nodeType!=1||!e.byNode(a)));return a&&e.byNode(a)},getIndexOfChild:function(a){return b.indexOf(this.getChildren(),a)},startup:function(){if(!this._started){b.forEach(this.getChildren(),
function(a){a.startup()});this.inherited(arguments)}}});return e._Container});
define("dijit/_KeyNavContainer",["dojo","dijit","dijit/_Container"],function(b,e){b.declare("dijit._KeyNavContainer",e._Container,{tabIndex:"0",_keyNavCodes:{},connectKeyNavHandlers:function(a,c){var d=this._keyNavCodes={},f=b.hitch(this,this.focusPrev),j=b.hitch(this,this.focusNext);b.forEach(a,function(g){d[g]=f});b.forEach(c,function(g){d[g]=j});d[b.keys.HOME]=b.hitch(this,"focusFirstChild");d[b.keys.END]=b.hitch(this,"focusLastChild");this.connect(this.domNode,"onkeypress","_onContainerKeypress");
this.connect(this.domNode,"onfocus","_onContainerFocus")},startupKeyNavChildren:function(){b.forEach(this.getChildren(),b.hitch(this,"_startupChild"))},addChild:function(a){e._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,c){this.focusedChild&&a!==this.focusedChild&&this._onChildBlur(this.focusedChild);a.set("tabIndex",this.tabIndex);a.focus(c?"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();b.attr(this.domNode,"tabIndex","-1")}},_onBlur:function(){this.tabIndex&&b.attr(this.domNode,"tabIndex",this.tabIndex);this.inherited(arguments)},_onContainerKeypress:function(a){if(!(a.ctrlKey||a.altKey)){var c=this._keyNavCodes[a.charOrCode];if(c){c();b.stopEvent(a)}}},_onChildBlur:function(){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1)},_getLastFocusableChild:function(){return this._getNextFocusableChild(null,-1)},_getNextFocusableChild:function(a,
c){if(a)a=this._getSiblingOfChild(a,c);for(var d=this.getChildren(),f=0;f<d.length;f++){a||(a=d[c>0?0:d.length-1]);if(a.isFocusable())return a;a=this._getSiblingOfChild(a,c)}return null}});return e._KeyNavContainer});define("text!dijit/templates/MenuItem.html",function(){return'<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>'});
define("dijit/_Contained",["dojo","dijit"],function(b,e){b.declare("dijit._Contained",null,{getParent:function(){var a=e.getEnclosingWidget(this.domNode.parentNode);return a&&a.isContainer?a:null},_getSibling:function(a){var c=this.domNode;do c=c[a+"Sibling"];while(c&&c.nodeType!=1);return c&&e.byNode(c)},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)}});return e._Contained});
define("dijit/MenuItem",["dojo","dijit","text!dijit/templates/MenuItem.html","dijit/_Widget","dijit/_Templated","dijit/_Contained","dijit/_CssStateMixin"],function(b,e){b.declare("dijit.MenuItem",[e._Widget,e._Templated,e._Contained,e._CssStateMixin],{templateString:b.cache("dijit","templates/MenuItem.html"),attributeMap:b.delegate(e._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";b.attr(this.containerNode,"id",a);if(this.accelKeyNode){b.attr(this.accelKeyNode,"id",this.id+"_accel");a+=" "+this.id+"_accel"}e.setWaiState(this.domNode,"labelledby",a);b.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);b.stopEvent(a)},onClick:function(){},focus:function(){try{b.isIE==8&&this.containerNode.focus();e.focus(this.focusNode)}catch(a){}},_onFocus:function(){this._setSelected(true);this.getParent()._onItemFocus(this);this.inherited(arguments)},_setSelected:function(a){b.toggleClass(this.domNode,"dijitMenuItemSelected",a)},setLabel:function(a){b.deprecated("dijit.MenuItem.setLabel() is deprecated.  Use set('label', ...) instead.",
"","2.0");this.set("label",a)},setDisabled:function(a){b.deprecated("dijit.Menu.setDisabled() is deprecated.  Use set('disabled', bool) instead.","","2.0");this.set("disabled",a)},_setDisabledAttr:function(a){e.setWaiState(this.focusNode,"disabled",a?"true":"false");this._set("disabled",a)},_setAccelKeyAttr:function(a){this.accelKeyNode.style.display=a?"":"none";this.accelKeyNode.innerHTML=a;b.attr(this.containerNode,"colSpan",a?"1":"2");this._set("accelKey",a)}});return e.MenuItem});
define("dijit/PopupMenuItem",["dojo","dijit","dijit/MenuItem"],function(b,e){b.declare("dijit.PopupMenuItem",e.MenuItem,{_fillContent:function(){if(this.srcNodeRef){var a=b.query("*",this.srcNodeRef);e.PopupMenuItem.superclass._fillContent.call(this,a[0]);this.dropDownContainer=this.srcNodeRef}},startup:function(){if(!this._started){this.inherited(arguments);if(!this.popup){var a=b.query("[widgetId]",this.dropDownContainer)[0];this.popup=e.byNode(a)}b.body().appendChild(this.popup.domNode);this.popup.startup();
this.popup.domNode.style.display="none";this.arrowWrapper&&b.style(this.arrowWrapper,"visibility","");e.setWaiState(this.focusNode,"haspopup","true")}},destroyDescendants:function(){if(this.popup){this.popup._destroyed||this.popup.destroyRecursive();delete this.popup}this.inherited(arguments)}});return e.PopupMenuItem});define("text!dijit/templates/CheckedMenuItem.html",function(){return'<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>'});
define("dijit/CheckedMenuItem",["dojo","dijit","text!dijit/templates/CheckedMenuItem.html","dijit/MenuItem"],function(b,e){b.declare("dijit.CheckedMenuItem",e.MenuItem,{templateString:b.cache("dijit","templates/CheckedMenuItem.html"),checked:false,_setCheckedAttr:function(a){b.toggleClass(this.domNode,"dijitCheckedMenuItemChecked",a);e.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)}});
return e.CheckedMenuItem});define("text!dijit/templates/MenuSeparator.html",function(){return'<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>'});
define("dijit/MenuSeparator",["dojo","dijit","text!dijit/templates/MenuSeparator.html","dijit/_Widget","dijit/_Templated","dijit/_Contained"],function(b,e){b.declare("dijit.MenuSeparator",[e._Widget,e._Templated,e._Contained],{templateString:b.cache("dijit","templates/MenuSeparator.html"),buildRendering:function(){this.inherited(arguments);b.setSelectable(this.domNode,false)},isFocusable:function(){return false}});return e.MenuSeparator});
define("dijit/Menu",["dojo","dijit","text!dijit/templates/Menu.html","dojo/window","dijit/_Widget","dijit/_KeyNavContainer","dijit/_Templated","dijit/MenuItem","dijit/PopupMenuItem","dijit/CheckedMenuItem","dijit/MenuSeparator"],function(b,e){b.declare("dijit._MenuBase",[e._Widget,e._Templated,e._KeyNavContainer],{parentMenu:null,popupDelay:500,startup:function(){if(!this._started){b.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(b.hitch(this,"_openPopup"),this.popupDelay)}this.focusedChild&&this.focusChild(a);this._hoveredChild=a},_onChildBlur:function(a){this._stopPopupTimer();a._setSelected(false);var c=a.popup;if(c){this._stopPendingCloseTimer(c);c._pendingClose_timer=setTimeout(function(){c._pendingClose_timer=null;if(c.parentMenu)c.parentMenu.currentPopup=
null;e.popup.close(c)},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,c){typeof this.isShowingNow=="undefined"&&this._markActive();this.focusChild(a);if(a.disabled)return false;if(a.popup)this._openPopup();else{this.onExecute();a.onClick(c)}},_openPopup:function(){this._stopPopupTimer();var a=this.focusedChild;if(a){var c=a.popup;if(!c.isShowingNow){if(this.currentPopup){this._stopPendingCloseTimer(this.currentPopup);e.popup.close(this.currentPopup)}c.parentMenu=this;c.from_item=a;var d=this;e.popup.open({parent:this,
popup:c,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(){d.focusChild(a);d._cleanUp();a._setSelected(true);d.focusedChild=a},onExecute:b.hitch(this,"_cleanUp")});this.currentPopup=c;c.connect(c.domNode,"onmouseenter",b.hitch(d,"_onPopupHover"));if(c.focus)c._focus_timer=setTimeout(b.hitch(c,function(){this._focus_timer=null;this.focus()}),0)}}},_markActive:function(){this.isActive=true;b.replaceClass(this.domNode,
"dijitMenuActive","dijitMenuPassive")},onOpen:function(){this.isShowingNow=true;this._markActive()},_markInactive:function(){this.isActive=false;b.replaceClass(this.domNode,"dijitMenuPassive","dijitMenuActive")},onClose:function(){this._stopFocusTimer();this._markInactive();this.isShowingNow=false;this.parentMenu=null},_closeChild:function(){this._stopPopupTimer();if(this.currentPopup){e._curFocus&&b.isDescendant(e._curFocus,this.currentPopup.domNode)&&this.focusedChild.focusNode.focus();e.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()}});b.declare("dijit.Menu",e._MenuBase,{constructor:function(){this._bindings=[]},templateString:b.cache("dijit",
"templates/Menu.html"),baseClass:"dijitMenu",targetNodeIds:[],contextMenuForWindow:false,leftClickToOpen:false,refocus:true,postCreate:function(){this.contextMenuForWindow?this.bindDomNode(b.body()):b.forEach(this.targetNodeIds,this.bindDomNode,this);var a=b.keys,c=this.isLeftToRight();this._openSubMenuKey=c?a.RIGHT_ARROW:a.LEFT_ARROW;this._closeSubMenuKey=c?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);
b.stopEvent(a);break;case this._closeSubMenuKey:if(this.parentMenu)this.parentMenu._isMenuBar?this.parentMenu.focusPrev():this.onCancel(false);else b.stopEvent(a);break}},_iframeContentWindow:function(a){return b.window.get(this._iframeContentDocument(a))||this._iframeContentDocument(a).__parent__||a.name&&b.doc.frames[a.name]||null},_iframeContentDocument:function(a){return a.contentDocument||a.contentWindow&&a.contentWindow.document||a.name&&b.doc.frames[a.name]&&b.doc.frames[a.name].document||
null},bindDomNode:function(a){a=b.byId(a);var c;if(a.tagName.toLowerCase()=="iframe"){var d=a,f=this._iframeContentWindow(d);c=b.withGlobal(f,b.body)}else c=a==b.body()?b.doc.documentElement:a;var j={node:a,iframe:d};b.attr(a,"_dijitMenu"+this.id,this._bindings.push(j));var g=b.hitch(this,function(h){return[b.connect(h,this.leftClickToOpen?"onclick":"oncontextmenu",this,function(k){b.stopEvent(k);this._scheduleOpen(k.target,d,{x:k.pageX,y:k.pageY})}),b.connect(h,"onkeydown",this,function(k){if(k.shiftKey&&
k.keyCode==b.keys.F10){b.stopEvent(k);this._scheduleOpen(k.target,d)}})]});j.connects=c?g(c):[];if(d){j.onloadHandler=b.hitch(this,function(){var h=this._iframeContentWindow(d);c=b.withGlobal(h,b.body);j.connects=g(c)});d.addEventListener?d.addEventListener("load",j.onloadHandler,false):d.attachEvent("onload",j.onloadHandler)}},unBindDomNode:function(a){var c;try{c=b.byId(a)}catch(d){return}a="_dijitMenu"+this.id;if(c&&b.hasAttr(c,a)){var f=b.attr(c,a)-1,j=this._bindings[f];b.forEach(j.connects,b.disconnect);
var g=j.iframe;if(g)g.removeEventListener?g.removeEventListener("load",j.onloadHandler,false):g.detachEvent("onload",j.onloadHandler);b.removeAttr(c,a);delete this._bindings[f]}},_scheduleOpen:function(a,c,d){if(!this._openTimer)this._openTimer=setTimeout(b.hitch(this,function(){delete this._openTimer;this._openMyself({target:a,iframe:c,coords:d})}),1)},_openMyself:function(a){function c(){l.refocus&&e.focus(m);e.popup.close(l)}var d=a.target,f=a.iframe;if(a=a.coords){if(f){d=b.position(f,true);var j=
this._iframeContentWindow(f);j=b.withGlobal(j,"_docScroll",b);var g=b.getComputedStyle(f),h=b._toPixelValue,k=(b.isIE&&b.isQuirks?0:h(f,g.paddingLeft))+(b.isIE&&b.isQuirks?h(f,g.borderLeftWidth):0);f=(b.isIE&&b.isQuirks?0:h(f,g.paddingTop))+(b.isIE&&b.isQuirks?h(f,g.borderTopWidth):0);a.x+=d.x+k-j.x;a.y+=d.y+f-j.y}}else{a=b.position(d,true);a.x+=10;a.y+=10}var l=this,m=e.getFocus(this);e.popup.open({popup:this,x:a.x,y:a.y,onExecute:c,onCancel:c,orient:this.isLeftToRight()?"L":"R"});this.focus();this._onBlur=
function(){this.inherited("_onBlur",arguments);e.popup.close(this)}},uninitialize:function(){b.forEach(this._bindings,function(a){a&&this.unBindDomNode(a.node)},this);this.inherited(arguments)}});return e.Menu});define("text!dijit/form/templates/Button.html",function(){return'<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>'});
define("text!dijit/form/templates/DropDownButton.html",function(){return'<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>'});
define("text!dijit/form/templates/ComboButton.html",function(){return'<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>'});
define("dijit/_HasDropDown",["dojo","dijit","dijit/_Widget"],function(b,e){b.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)){b.stopEvent(a);this._docHandler=this.connect(b.doc,"onmouseup","_onDropDownMouseUp");this.toggleDropDown()}},_onDropDownMouseUp:function(a){a&&
this._docHandler&&this.disconnect(this._docHandler);var c=this.dropDown,d=false;if(a&&this._opened){var f=b.position(this._buttonNode,true);if(!(a.pageX>=f.x&&a.pageX<=f.x+f.w)||!(a.pageY>=f.y&&a.pageY<=f.y+f.h)){for(f=a.target;f&&!d;)if(b.hasClass(f,"dijitPopup"))d=true;else f=f.parentNode;if(d){f=a.target;if(c.onItemClick){for(var j;f&&!(j=e.byNode(f));)f=f.parentNode;j&&j.onClick&&j.getParent&&j.getParent().onItemClick(j,a)}return}}}this._opened&&c.focus&&c.autoFocus!==false&&window.setTimeout(b.hitch(c,
"focus"),1)},_onDropDownClick:function(a){this._stopClickEvents&&b.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";b.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 c=this.dropDown,d=a.target;if(c&&this._opened&&c.handleKey)if(c.handleKey(a)===false){b.stopEvent(a);return}if(c&&this._opened&&a.charOrCode==b.keys.ESCAPE){this.closeDropDown();b.stopEvent(a)}else if(!this._opened&&(a.charOrCode==b.keys.DOWN_ARROW||(a.charOrCode==b.keys.ENTER||a.charOrCode==" ")&&((d.tagName||"").toLowerCase()!=="input"||d.type&&d.type.toLowerCase()!=="text"))){this._toggleOnKeyUp=true;b.stopEvent(a)}}},_onKeyUp:function(){if(this._toggleOnKeyUp){delete this._toggleOnKeyUp;
this.toggleDropDown();var a=this.dropDown;a&&a.focus&&setTimeout(b.hitch(a,"focus"),1)}},_onBlur:function(){this.closeDropDown(e._curFocus&&this.dropDown&&b.isDescendant(e._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(b.hitch(this,"openDropDown"))},openDropDown:function(){var a=
this.dropDown,c=a.domNode,d=this._aroundNode||this.domNode,f=this;if(!this._preparedNode){this._preparedNode=true;if(c.style.width)this._explicitDDWidth=true;if(c.style.height)this._explicitDDHeight=true}if(this.maxHeight||this.forceWidth||this.autoWidth){var j={display:"",visibility:"hidden"};if(!this._explicitDDWidth)j.width="";if(!this._explicitDDHeight)j.height="";b.style(c,j);j=this.maxHeight;if(j==-1){j=b.window.getBox();var g=b.position(d,false);j=Math.floor(Math.max(g.y,j.h-(g.y+g.h)))}a.startup&&
!a._started&&a.startup();e.popup.moveOffScreen(a);g=b._getMarginSize(c);var h=j&&g.h>j;b.style(c,{overflowX:"hidden",overflowY:h?"auto":"hidden"});if(h){g.h=j;if("w"in g)g.w+=16}else delete g.h;if(this.forceWidth)g.w=d.offsetWidth;else if(this.autoWidth)g.w=Math.max(g.w,d.offsetWidth);else delete g.w;b.isFunction(a.resize)?a.resize(g):b.marginBox(c,g)}a=e.popup.open({parent:this,popup:a,around:d,orient:e.getPopupAroundAlignment(this.dropDownPosition&&this.dropDownPosition.length?this.dropDownPosition:
["below"],this.isLeftToRight()),onExecute:function(){f.closeDropDown(true)},onCancel:function(){f.closeDropDown(true)},onClose:function(){b.attr(f._popupStateNode,"popupActive",false);b.removeClass(f._popupStateNode,"dijitHasDropDownOpen");f._opened=false}});b.attr(this._popupStateNode,"popupActive","true");b.addClass(f._popupStateNode,"dijitHasDropDownOpen");this._opened=true;return a},closeDropDown:function(a){if(this._opened){a&&this.focus();e.popup.close(this.dropDown);this._opened=false}}});
return e._HasDropDown});
define("dijit/form/Button",["dojo","dijit","text!dijit/form/templates/Button.html","text!dijit/form/templates/DropDownButton.html","text!dijit/form/templates/ComboButton.html","dijit/form/_FormWidget","dijit/_Container","dijit/_HasDropDown"],function(b,e){b.declare("dijit.form.Button",e.form._FormWidget,{label:"",showLabel:true,iconClass:"",type:"button",baseClass:"dijitButton",templateString:b.cache("dijit.form","templates/Button.html"),attributeMap:b.delegate(e.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 c=this.domNode;c.parentNode;c=c.parentNode){var d=e.byNode(c);if(d&&typeof d._onSubmit=="function"){d._onSubmit(a);break}}else if(this.valueNode){this.valueNode.click();a.preventDefault()}},buildRendering:function(){this.inherited(arguments);b.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&&b.toggleClass(this.containerNode,"dijitDisplayNone",!a);this._set("showLabel",a)},onClick:function(){return true},_clicked:function(){},setLabel:function(a){b.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=b.trim(this.containerNode.innerText||this.containerNode.textContent||"")},_setIconClassAttr:function(a){b.replaceClass(this.iconNode,a||"dijitNoIcon",this.iconClass||"dijitNoIcon");this._set("iconClass",a)}});b.declare("dijit.form.DropDownButton",[e.form.Button,e._Container,e._HasDropDown],{baseClass:"dijitDropDownButton",templateString:b.cache("dijit.form","templates/DropDownButton.html"),_fillContent:function(){if(this.srcNodeRef){var a=
b.query("*",this.srcNodeRef);e.form.DropDownButton.superclass._fillContent.call(this,a[0]);this.dropDownContainer=this.srcNodeRef}},startup:function(){if(!this._started){if(!this.dropDown&&this.dropDownContainer){var a=b.query("[widgetId]",this.dropDownContainer)[0];this.dropDown=e.byNode(a);delete this.dropDownContainer}this.dropDown&&e.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 c=b.connect(a,"onLoad",this,function(){b.disconnect(c);this.openDropDown()});a.refresh()}},isFocusable:function(){return this.inherited(arguments)&&!this._mouseDown}});b.declare("dijit.form.ComboButton",e.form.DropDownButton,{templateString:b.cache("dijit.form","templates/ComboButton.html"),attributeMap:b.mixin(b.clone(e.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==b.keys[this.isLeftToRight()?"RIGHT_ARROW":"LEFT_ARROW"]){e.focus(this._popupStateNode);b.stopEvent(a)}},_onArrowKeyPress:function(a){if(a.charOrCode==b.keys[this.isLeftToRight()?"LEFT_ARROW":"RIGHT_ARROW"]){e.focus(this.titleNode);b.stopEvent(a)}},focus:function(a){this.disabled||e.focus(a=="start"?this.titleNode:this._popupStateNode)}});
b.declare("dijit.form.ToggleButton",e.form.Button,{baseClass:"dijitToggleButton",checked:false,attributeMap:b.mixin(b.clone(e.form.Button.prototype.attributeMap),{checked:"focusNode"}),_clicked:function(){this.set("checked",!this.checked)},_setCheckedAttr:function(a,c){this._set("checked",a);b.attr(this.focusNode||this.domNode,"checked",a);e.setWaiState(this.focusNode||this.domNode,"pressed",a);this._handleOnChange(a,c)},setChecked:function(a){b.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)}});return e.form.Button});define("dijit/form/DropDownButton",["dojo","dijit","dijit/form/Button"],function(b,e){return e.form.DropDownButton});
define("orion/commands",["dojo","dijit","orion/util","dijit/Menu","dijit/form/DropDownButton","dijit/MenuItem","dijit/PopupMenuItem","dijit/MenuSeparator"],function(b,e,a){function c(g){this._domScope={};this._objectScope={};this._globalScope={};this._namedGroups={};this._activeBindings={};this._init(g)}function d(g){this._init(g)}function f(g,h,k,l,m){this.keyCode=typeof g==="string"?g.toUpperCase().charCodeAt(0):g;this.mod1=h!==undefined&&h!==null?h:false;this.mod2=k!==undefined&&k!==null?k:false;
this.mod3=l!==undefined&&l!==null?l:false;this.mod4=m!==undefined&&m!==null?m:false}c.prototype={_init:function(g){this._registry=g.serviceRegistry;this._serviceRegistration=this._registry.registerService("orion.page.command",this);this._selection=g.selection;b.connect(window.document,"onkeydown",b.hitch(this,function(h){h=h||window.event;var k=h.target.nodeName.toLowerCase();if(k==="input")switch(h.target.type.toLowerCase()){case "text":case "password":case "search":case "color":case "date":case "datetime":case "datetime-local":case "email":case "month":case "number":case "range":case "tel":case "time":case "url":case "week":return}else if(k===
"textarea")return;this._processKey(h)}))},_processKey:function(g){function h(p){if(window.document.all)p.keyCode=0;else{p.preventDefault();p.stopPropagation()}}for(var k in this._activeBindings)if(this._activeBindings[k]&&this._activeBindings[k].keyBinding&&this._activeBindings[k].command)if(this._activeBindings[k].keyBinding.match(g)){var l=this._activeBindings[k],m=l.command;if(m.hrefCallback){h(g);g=m.hrefCallback.call(l.handler||window,l.items,k,l.userData);g.then?g.then(function(p){window.open(p)}):
window.open(g);return}else if(m.callback){h(g);window.setTimeout(function(){m.callback.call(l.handler||window,l.items,k,null,l.userData)},0);return}}},getSelectionService:function(){return this._selection},showKeyBindings:function(g){for(var h in this._activeBindings)this._activeBindings[h]&&this._activeBindings[h].keyBinding&&this._activeBindings[h].command&&b.place("<span>"+a.getUserKeyString(this._activeBindings[h].keyBinding)+" = "+this._activeBindings[h].command.name+"<br></span>",g,"last")},
addCommand:function(g,h){switch(h){case "dom":this._domScope[g.id]=g;break;case "object":this._objectScope[g.id]=g;break;case "global":this._globalScope[g.id]=g;break;default:throw"unrecognized command scope "+h;}},addCommandGroup:function(g,h,k,l,m){var p=this._namedGroups;if(l)p=this._createEntryForPath(l);if(p[g]){if(k)p[g].title=k;if(h)p[g].position=h;if(m)p[g].scopeId=m}else{p[g]={title:k,position:h,children:{},scopeId:m};p.sortedCommands=null}},_createEntryForPath:function(g){var h=this._namedGroups;
if(g){g=g.split("/");for(var k=0;k<g.length;k++)if(g[k].length>1){h[g[k]]||(h[g[k]]={position:0,children:{}});h=h[g[k]].children}}return h},registerCommandContribution:function(g,h,k,l,m,p){l=this._createEntryForPath(l);l[g]={scopeId:k,position:h};if(m)if(h=this._domScope[g]||this._globalScope[g])this._activeBindings[g]={command:h,keyBinding:m,keyOnly:p};l.sortedCommands=null},_isLastChildSeparator:function(g,h){if(h==="image")return g.childNodes.length>0&&b.hasClass(g.childNodes[g.childNodes.length-
1],"commandSeparator");if(h==="menu"){g=g.getChildren();return g.length>0&&g[g.length-1]instanceof e.MenuSeparator}return false},renderCommands:function(g,h,k,l,m,p,n,o){if(typeof g==="string")g=b.byId(g);if(k){var q;if(h==="object")q=this._objectScope;else if(h==="dom")q=this._domScope;else if(h==="global")q=this._globalScope;else throw"Unrecognized command scope "+h;this._render(this._namedGroups,g,h,k,l,m,p,n,q,o);if(m==="image")this._isLastChildSeparator(g,m)&&g.removeChild(g.childNodes[g.childNodes.length-
1]);else if(m==="menu")if(this._isLastChildSeparator(g,m)){k=g.getChildren()[g.getChildren().length-1];g.removeChild(k);k.destroy()}}else{var v=this;this._selection&&this._selection.getSelections(function(r){v.renderCommands(g,h,r,l,m,p,n,o)})}},_render:function(g,h,k,l,m,p,n,o,q,v){var r=g.sortedCommands;if(!r){r=[];for(var s in g){var w=g[s];if(w&&typeof w.position==="number"){w.id=s;r.push(w)}}r.sort(function(F,G){return F.position-G.position});g.sortedCommands=r}for(g=0;g<r.length;g++){var u;
if(r[g].children){s=r[g];if(!(s.scopeId&&h.id!==s.scopeId)){var y;if(p==="image")if(s.title){w=new e.Menu({style:"display: none;"});w.eclipseScopeId=h.eclipseScopeId||h.id;this._render(r[g].children,w,k,l,m,"menu",n,o,q,v);y=w.getChildren();if(this._isLastChildSeparator(w,"menu")){u=y[y.length-1];w.removeChild(u);u.destroy();y=w.getChildren()}if(y.length>0){var E=true;u=y[0].eclipseCommand;if(y.length===1)E=!(u&&u.hasImage());if(E){u=new e.form.DropDownButton({label:s.title,dropDown:w});b.addClass(u.domNode,
"commandLink");n&&b.addClass(u.domNode,n);b.place(u.domNode,h,"last")}else{w="image"+u.id+g;s=u._asImage(w,l,m,o,v);b.place(s,h,"last")}}}else{var D;if(h.childNodes.length>0&&!this._isLastChildSeparator(h,p)){D=this.generateSeparatorImage();b.place(D,h,"last")}this._render(r[g].children,h,k,l,m,p,n,o,q,v);if(h.childNodes.length>0)if(h.childNodes[h.childNodes.length-1]!==D){D=this.generateSeparatorImage();b.place(D,h,"last")}}else if(s.title){w=new e.Menu;this._render(r[g].children,w,k,l,m,p,n,o,q,
v);w.getChildren().length>0&&h.addChild(new e.PopupMenuItem({label:s.title,popup:w}))}else{var B;if(h.getChildren().length>0&&!this._isLastChildSeparator(h,p)){B=new e.MenuSeparator;h.addChild(B)}this._render(r[g].children,h,k,l,m,p,n,o,q,v);s=h.getChildren();if(s[s.length-1]!==B){B=new e.MenuSeparator;h.addChild(B)}}}}else{w=(s=q[r[g].id])?true:false;if(s){if(k==="dom")w=p==="image"?h.id===r[g].scopeId:p==="menu"?h.eclipseScopeId===r[g].scopeId:false;if(this._activeBindings[s.id]&&this._activeBindings[s.id].keyBinding){u=
this._activeBindings[s.id];u.items=l;u.userData=o;u.handler=m;if(u.keyOnly)w=false}if(w&&s.visibleWhen)w=s.visibleWhen(l)}if(w)if(s.choiceCallback){w=new e.Menu({style:"display: none;"});if(p==="image"){u=new e.form.DropDownButton({label:s.name,dropDown:w});if(s.image){b.addClass(u.iconNode,"commandImage");n&&b.addClass(u.iconNode,n);u.iconNode.src=s.image}b.place(u.domNode,h,"last");u.eclipseCommand=s;u.eclipseChoices=w;b.connect(u,"onClick",u,function(){this.eclipseCommand.populateChoicesMenu(this.eclipseChoices,
l,m,o)})}else if(p==="menu"){u=new e.PopupMenuItem({label:s.name,popup:w});h.addChild(u);u.eclipseCommand=s;u.eclipseChoices=w;b.connect(h,"_openPopup",u,function(){this.eclipseCommand.populateChoicesMenu(this.eclipseChoices,l,m,o)})}}else if(p==="image"){w="image"+s.id+g;s=s._asImage(w,l,m,o,n,v);b.place(s,h,"last")}else p==="menu"&&s._addMenuItem(h,l,m,o,n)}}},generateSeparatorImage:function(){var g=new Image;g.src="/images/sep.gif";b.addClass(g,"commandImage");b.addClass(g,"commandSeparator");
return g}};c.prototype.constructor=c;d.prototype={_init:function(g){this.id=g.id;this.name=g.name||"Empty Command";this.tooltip=g.tooltip||g.name;this.callback=g.callback;this.hrefCallback=g.hrefCallback;this.choiceCallback=g.choiceCallback;this.image=g.image||"/images/none.png";this.visibleWhen=g.visibleWhen;this._deviceSupportsHover=false},_asImage:function(g,h,k,l,m,p){k=k||this;var n=new Image,o=b.create("a");o.id=this.name+"link";n.alt=this.name;n.title=this.name;n.name=g;n.id=g;if(p||!this.hasImage()){g=
window.document.createTextNode(this.name);b.place(g,o,"last")}if(this.hrefCallback){g=this.hrefCallback.call(k,h,this.id,l);if(g.then)g.then(function(q){o.href=q});else o.href=g}else if(this.callback)!p&&this.hasImage()?b.connect(n,"onclick",this,function(){this.callback.call(k,h,this.id,n.id,l)}):b.connect(o,"onclick",this,function(){this.callback.call(k,h,this.id,o.id,l)});if(!p&&this.hasImage()){if(this._deviceSupportsHover){n.src="/images/none.png";b.connect(n,"onmouseover",this,function(){n.src=
this.image});b.connect(n,"onmouseout",this,function(){n.src="/images/none.png"})}else{n.src=this.image;b.connect(n,"onmouseover",this,function(){b.addClass(n,"commandOver")});b.connect(n,"onmouseout",this,function(){n.src=this.image;b.removeClass(n,"commandOver")})}b.addClass(n,"commandImage");m&&b.addClass(n,m);b.place(n,o,"last")}b.addClass(o,"commandLink");m&&b.addClass(o,m);return o},_asLink:function(g,h,k){h=h||this;var l=window.document.createElement("a");b.place(window.document.createTextNode(this.name),
l,"only");l.href="";l.id=this.id+"link";if(this.callback)b.connect(l,"onclick",this,function(){this.callback.call(h,g,this.id,l.id)});else if(this.hrefCallback){var m=this.hrefCallback.call(h,g,this.id);if(m)if(m.then)m.then(function(p){l.href=p});else l.href=m}b.addClass(l,"commandLink");k&&b.addClass(l,k);return l},_addMenuItem:function(g,h,k,l,m){var p=new e.MenuItem({labelType:this.hrefCallback?"html":"text",label:this.name,tooltip:this.tooltip});if(this.hrefCallback){var n=this.hrefCallback.call(k,
h,this.id,g.id,l);if(n)if(n.then)n.then(b.hitch(this,function(o){p.set("label","<a href='"+o+"'>"+this.name+"</a>");p.onClick=function(q){a.followLink(o,q)}}));else{p.set("label","<a href='"+n+"'>"+this.name+"</a>");p.onClick=function(o){a.followLink(n,o)}}}else if(this.callback)p.onClick=b.hitch(this,function(){this.callback.call(k,h,this.id,null,l)});p.eclipseCommand=this;g.addChild(p);if(this.image){b.addClass(p.iconNode,"commandImage");m&&b.addClass(p.iconNode,m);p.iconNode.src=this.image}},populateChoicesMenu:function(g,
h,k,l){g.focusedChild=null;b.forEach(g.getChildren(),function(n){g.removeChild(n);n.destroy()});k=this.getChoices(h,k,l);for(l=0;l<k.length;l++){var m=k[l],p;if(m.name){p=new e.MenuItem({label:m.name,onClick:this.makeChoiceCallback(m,h)});if(m.image){b.addClass(p.iconNode,"commandImage");p.iconNode.src=m.image}}else p=new e.MenuSeparator;g.addChild(p)}},getChoices:function(g,h,k){if(this.choiceCallback)return this.choiceCallback.call(h,g,k);return null},makeChoiceCallback:function(g,h){return function(k){g.callback&&
g.callback.call(g,h,k)}},hasImage:function(){return this.image!=="/images/none.png"}};d.prototype.constructor=d;var j=window.navigator.platform.indexOf("Mac")!==-1;f.prototype={match:function(g){if(this.keyCode===g.keyCode){if(this.mod1!==(j?g.metaKey:g.ctrlKey))return false;if(this.mod2!==g.shiftKey)return false;if(this.mod3!==g.altKey)return false;if(j&&this.mod4!==g.ctrlKey)return false;return true}return false},equals:function(g){if(!g)return false;if(this.keyCode!==g.keyCode)return false;if(this.mod1!==
g.mod1)return false;if(this.mod2!==g.mod2)return false;if(this.mod3!==g.mod3)return false;if(this.mod4!==g.mod4)return false;return true}};f.prototype.constructor=f;return{CommandService:c,CommandKeyBinding:f,Command:d}});var orion=orion||{};orion.textview=orion.textview||{};
orion.textview.KeyBinding=function(){function b(a,c,d,f,j){this.keyCode=typeof a==="string"?a.toUpperCase().charCodeAt(0):a;this.mod1=c!==undefined&&c!==null?c:false;this.mod2=d!==undefined&&d!==null?d:false;this.mod3=f!==undefined&&f!==null?f:false;this.mod4=j!==undefined&&j!==null?j:false}var e=window.navigator.platform.indexOf("Mac")!==-1;b.prototype={match:function(a){if(this.keyCode===a.keyCode){if(this.mod1!==(e?a.metaKey:a.ctrlKey))return false;if(this.mod2!==a.shiftKey)return false;if(this.mod3!==
a.altKey)return false;if(e&&this.mod4!==a.ctrlKey)return false;return true}return false},equals:function(a){if(!a)return false;if(this.keyCode!==a.keyCode)return false;if(this.mod1!==a.mod1)return false;if(this.mod2!==a.mod2)return false;if(this.mod3!==a.mod3)return false;if(this.mod4!==a.mod4)return false;return true}};return b}();typeof window!=="undefined"&&typeof window.define!=="undefined"&&define("orion/textview/keyBinding",[],function(){return orion.textview});
define("text!dijit/templates/Dialog.html",function(){return'<div class="dijitDialog" role="dialog" aria-labelledby="${id}_title">\n\t<div dojoAttachPoint="titleBar" class="dijitDialogTitleBar">\n\t<span dojoAttachPoint="titleNode" class="dijitDialogTitle" id="${id}_title"></span>\n\t<span dojoAttachPoint="closeButtonNode" class="dijitDialogCloseIcon" dojoAttachEvent="ondijitclick: onCancel" title="${buttonCancel}" role="button" tabIndex="-1">\n\t\t<span dojoAttachPoint="closeText" class="closeText" title="${buttonCancel}">x</span>\n\t</span>\n\t</div>\n\t\t<div dojoAttachPoint="containerNode" class="dijitDialogPaneContent"></div>\n</div>'});
define("dojo/dnd/common",["dojo"],function(b){b.getObject("dnd",true,b);b.dnd.getCopyKeyState=b.isCopyKey;b.dnd._uniqueId=0;b.dnd.getUniqueId=function(){var e;do e=b._scopeName+"Unique"+ ++b.dnd._uniqueId;while(b.byId(e));return e};b.dnd._empty={};b.dnd.isFormElement=function(e){e=e.target;if(e.nodeType==3)e=e.parentNode;return" button textarea input select option ".indexOf(" "+e.tagName.toLowerCase()+" ")>=0};return b.dnd});
define("dojo/dnd/autoscroll",["dojo","dojo/window"],function(b){b.getObject("dnd",true,b);b.dnd.getViewport=b.window.getBox;b.dnd.V_TRIGGER_AUTOSCROLL=32;b.dnd.H_TRIGGER_AUTOSCROLL=32;b.dnd.V_AUTOSCROLL_VALUE=16;b.dnd.H_AUTOSCROLL_VALUE=16;b.dnd.autoScroll=function(e){var a=b.window.getBox(),c=0,d=0;if(e.clientX<b.dnd.H_TRIGGER_AUTOSCROLL)c=-b.dnd.H_AUTOSCROLL_VALUE;else if(e.clientX>a.w-b.dnd.H_TRIGGER_AUTOSCROLL)c=b.dnd.H_AUTOSCROLL_VALUE;if(e.clientY<b.dnd.V_TRIGGER_AUTOSCROLL)d=-b.dnd.V_AUTOSCROLL_VALUE;
else if(e.clientY>a.h-b.dnd.V_TRIGGER_AUTOSCROLL)d=b.dnd.V_AUTOSCROLL_VALUE;window.scrollBy(c,d)};b.dnd._validNodes={div:1,p:1,td:1};b.dnd._validOverflow={auto:1,scroll:1};b.dnd.autoScrollNodes=function(e){for(var a=e.target;a;){if(a.nodeType==1&&a.tagName.toLowerCase()in b.dnd._validNodes){var c=b.getComputedStyle(a);if(c.overflow.toLowerCase()in b.dnd._validOverflow){var d=b._getContentBox(a,c);c=b.position(a,true);var f=Math.min(b.dnd.H_TRIGGER_AUTOSCROLL,d.w/2),j=Math.min(b.dnd.V_TRIGGER_AUTOSCROLL,
d.h/2),g=e.pageX-c.x,h=e.pageY-c.y,k=c=0;if(b.isWebKit||b.isOpera){g+=b.body().scrollLeft;h+=b.body().scrollTop}if(g>0&&g<d.w)if(g<f)c=-f;else if(g>d.w-f)c=f;if(h>0&&h<d.h)if(h<j)k=-j;else if(h>d.h-j)k=j;d=a.scrollLeft;f=a.scrollTop;a.scrollLeft+=c;a.scrollTop+=k;if(d!=a.scrollLeft||f!=a.scrollTop)return}}try{a=a.parentNode}catch(l){a=null}}b.dnd.autoScroll(e)};return b.dnd});
define("dojo/dnd/Mover",["dojo","dojo/dnd/common","dojo/dnd/autoscroll"],function(b){b.declare("dojo.dnd.Mover",null,{constructor:function(e,a,c){this.node=b.byId(e);var d=a.touches?a.touches[0]:a;this.marginBox={l:d.pageX,t:d.pageY};this.mouseButton=a.button;a=this.host=c;e=e.ownerDocument;this.events=[b.connect(e,"onmousemove",this,"onFirstMove"),b.connect(e,"ontouchmove",this,"onFirstMove"),b.connect(e,"onmousemove",this,"onMouseMove"),b.connect(e,"ontouchmove",this,"onMouseMove"),b.connect(e,
"onmouseup",this,"onMouseUp"),b.connect(e,"ontouchend",this,"onMouseUp"),b.connect(e,"ondragstart",b.stopEvent),b.connect(e.body,"onselectstart",b.stopEvent)];a&&a.onMoveStart&&a.onMoveStart(this)},onMouseMove:function(e){b.dnd.autoScroll(e);var a=this.marginBox,c=e.touches?e.touches[0]:e;this.host.onMove(this,{l:a.l+c.pageX,t:a.t+c.pageY},e);b.stopEvent(e)},onMouseUp:function(e){if(b.isWebKit&&b.isMac&&this.mouseButton==2?e.button==0:this.mouseButton==e.button)this.destroy();b.stopEvent(e)},onFirstMove:function(e){var a=
this.node.style,c,d=this.host;switch(a.position){case "relative":case "absolute":c=Math.round(parseFloat(a.left))||0;a=Math.round(parseFloat(a.top))||0;break;default:a.position="absolute";a=b.marginBox(this.node);c=b.doc.body;var f=b.getComputedStyle(c),j=b._getMarginBox(c,f);f=b._getContentBox(c,f);c=a.l-(f.l-j.l);a=a.t-(f.t-j.t);break}this.marginBox.l=c-this.marginBox.l;this.marginBox.t=a-this.marginBox.t;d&&d.onFirstMove&&d.onFirstMove(this,e);b.disconnect(this.events.shift());b.disconnect(this.events.shift())},
destroy:function(){b.forEach(this.events,b.disconnect);var e=this.host;e&&e.onMoveStop&&e.onMoveStop(this);this.events=this.node=this.host=null}});return b.dnd.Mover});
define("dojo/dnd/Moveable",["dojo","dojo/dnd/Mover"],function(b){b.declare("dojo.dnd.Moveable",null,{handle:"",delay:0,skip:false,constructor:function(e,a){this.node=b.byId(e);a||(a={});this.handle=a.handle?b.byId(a.handle):null;if(!this.handle)this.handle=this.node;this.delay=a.delay>0?a.delay:0;this.skip=a.skip;this.mover=a.mover?a.mover:b.dnd.Mover;this.events=[b.connect(this.handle,"onmousedown",this,"onMouseDown"),b.connect(this.handle,"ontouchstart",this,"onMouseDown"),b.connect(this.handle,
"ondragstart",this,"onSelectStart"),b.connect(this.handle,"onselectstart",this,"onSelectStart")]},markupFactory:function(e,a){return new b.dnd.Moveable(a,e)},destroy:function(){b.forEach(this.events,b.disconnect);this.events=this.node=this.handle=null},onMouseDown:function(e){if(!(this.skip&&b.dnd.isFormElement(e))){if(this.delay){this.events.push(b.connect(this.handle,"onmousemove",this,"onMouseMove"),b.connect(this.handle,"ontouchmove",this,"onMouseMove"),b.connect(this.handle,"onmouseup",this,
"onMouseUp"),b.connect(this.handle,"ontouchend",this,"onMouseUp"));var a=e.touches?e.touches[0]:e;this._lastX=a.pageX;this._lastY=a.pageY}else this.onDragDetected(e);b.stopEvent(e)}},onMouseMove:function(e){var a=e.touches?e.touches[0]:e;if(Math.abs(a.pageX-this._lastX)>this.delay||Math.abs(a.pageY-this._lastY)>this.delay){this.onMouseUp(e);this.onDragDetected(e)}b.stopEvent(e)},onMouseUp:function(e){for(var a=0;a<2;++a)b.disconnect(this.events.pop());b.stopEvent(e)},onSelectStart:function(e){if(!this.skip||
!b.dnd.isFormElement(e))b.stopEvent(e)},onDragDetected:function(e){new this.mover(this.node,e,this)},onMoveStart:function(e){b.publish("/dnd/move/start",[e]);b.addClass(b.body(),"dojoMove");b.addClass(this.node,"dojoMoveItem")},onMoveStop:function(e){b.publish("/dnd/move/stop",[e]);b.removeClass(b.body(),"dojoMove");b.removeClass(this.node,"dojoMoveItem")},onFirstMove:function(){},onMove:function(e,a){this.onMoving(e,a);var c=e.node.style;c.left=a.l+"px";c.top=a.t+"px";this.onMoved(e,a)},onMoving:function(){},
onMoved:function(){}});return b.dnd.Moveable});
define("dojo/dnd/move",["dojo","dojo/dnd/Mover","dojo/dnd/Moveable"],function(b){b.declare("dojo.dnd.move.constrainedMoveable",b.dnd.Moveable,{constraints:function(){},within:false,markupFactory:function(e,a){return new b.dnd.move.constrainedMoveable(a,e)},constructor:function(e,a){a||(a={});this.constraints=a.constraints;this.within=a.within},onFirstMove:function(e){var a=this.constraintBox=this.constraints.call(this,e);a.r=a.l+a.w;a.b=a.t+a.h;if(this.within){e=b._getMarginSize(e.node);a.r-=e.w;
a.b-=e.h}},onMove:function(e,a){var c=this.constraintBox,d=e.node.style;this.onMoving(e,a);a.l=a.l<c.l?c.l:c.r<a.l?c.r:a.l;a.t=a.t<c.t?c.t:c.b<a.t?c.b:a.t;d.left=a.l+"px";d.top=a.t+"px";this.onMoved(e,a)}});b.declare("dojo.dnd.move.boxConstrainedMoveable",b.dnd.move.constrainedMoveable,{box:{},markupFactory:function(e,a){return new b.dnd.move.boxConstrainedMoveable(a,e)},constructor:function(e,a){var c=a&&a.box;this.constraints=function(){return c}}});b.declare("dojo.dnd.move.parentConstrainedMoveable",
b.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(e,a){return new b.dnd.move.parentConstrainedMoveable(a,e)},constructor:function(e,a){var c=a&&a.area;this.constraints=function(){var d=this.node.parentNode,f=b.getComputedStyle(d),j=b._getMarginBox(d,f);if(c=="margin")return j;var g=b._getMarginExtents(d,f);j.l+=g.l;j.t+=g.t;j.w-=g.w;j.h-=g.h;if(c=="border")return j;g=b._getBorderExtents(d,f);j.l+=g.l;j.t+=g.t;j.w-=g.w;j.h-=g.h;if(c=="padding")return j;g=b._getPadExtents(d,f);j.l+=
g.l;j.t+=g.t;j.w-=g.w;j.h-=g.h;return j}}});b.dnd.constrainedMover=b.dnd.move.constrainedMover;b.dnd.boxConstrainedMover=b.dnd.move.boxConstrainedMover;b.dnd.parentConstrainedMover=b.dnd.move.parentConstrainedMover;return b.dnd.move});
define("dojo/dnd/TimedMoveable",["dojo","dojo/dnd/Moveable"],function(b){(function(){var e=b.dnd.Moveable.prototype.onMove;b.declare("dojo.dnd.TimedMoveable",b.dnd.Moveable,{timeout:40,constructor:function(a,c){c||(c={});if(c.timeout&&typeof c.timeout=="number"&&c.timeout>=0)this.timeout=c.timeout},markupFactory:function(a,c){return new b.dnd.TimedMoveable(c,a)},onMoveStop:function(a){if(a._timer){clearTimeout(a._timer);e.call(this,a,a._leftTop)}b.dnd.Moveable.prototype.onMoveStop.apply(this,arguments)},
onMove:function(a,c){a._leftTop=c;if(!a._timer){var d=this;a._timer=setTimeout(function(){a._timer=null;e.call(d,a,a._leftTop)},this.timeout)}}})})();return b.dnd.TimedMoveable});
define("dojo/fx/Toggler",["dojo"],function(b){b.declare("dojo.fx.Toggler",null,{node:null,showFunc:b.fadeIn,hideFunc:b.fadeOut,showDuration:200,hideDuration:200,constructor:function(e){var a=this;b.mixin(a,e);a.node=e.node;a._showArgs=b.mixin({},e);a._showArgs.node=a.node;a._showArgs.duration=a.showDuration;a.showAnim=a.showFunc(a._showArgs);a._hideArgs=b.mixin({},e);a._hideArgs.node=a.node;a._hideArgs.duration=a.hideDuration;a.hideAnim=a.hideFunc(a._hideArgs);b.connect(a.showAnim,"beforeBegin",b.hitch(a.hideAnim,
"stop",true));b.connect(a.hideAnim,"beforeBegin",b.hitch(a.showAnim,"stop",true))},show:function(e){return this.showAnim.play(e||0)},hide:function(e){return this.hideAnim.play(e||0)}});return b.fx.Toggler});
define("dojo/fx",["dojo","dojo/fx/Toggler"],function(b){(function(){var e={_fire:function(d,f){if(this[d])this[d].apply(this,f||[]);return this}},a=function(d){this._index=-1;this._animations=d||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;b.forEach(this._animations,function(f){this.duration+=f.duration;if(f.delay)this.duration+=f.delay},this)};b.extend(a,{_onAnimate:function(){this._fire("onAnimate",arguments)},_onEnd:function(){b.disconnect(this._onAnimateCtx);b.disconnect(this._onEndCtx);
this._onAnimateCtx=this._onEndCtx=null;if(this._index+1==this._animations.length)this._fire("onEnd");else{this._current=this._animations[++this._index];this._onAnimateCtx=b.connect(this._current,"onAnimate",this,"_onAnimate");this._onEndCtx=b.connect(this._current,"onEnd",this,"_onEnd");this._current.play(0,true)}},play:function(d,f){if(!this._current)this._current=this._animations[this._index=0];if(!f&&this._current.status()=="playing")return this;var j=b.connect(this._current,"beforeBegin",this,
function(){this._fire("beforeBegin")}),g=b.connect(this._current,"onBegin",this,function(){this._fire("onBegin",arguments)}),h=b.connect(this._current,"onPlay",this,function(){this._fire("onPlay",arguments);b.disconnect(j);b.disconnect(g);b.disconnect(h)});this._onAnimateCtx&&b.disconnect(this._onAnimateCtx);this._onAnimateCtx=b.connect(this._current,"onAnimate",this,"_onAnimate");this._onEndCtx&&b.disconnect(this._onEndCtx);this._onEndCtx=b.connect(this._current,"onEnd",this,"_onEnd");this._current.play.apply(this._current,
arguments);return this},pause:function(){if(this._current){var d=b.connect(this._current,"onPause",this,function(){this._fire("onPause",arguments);b.disconnect(d)});this._current.pause()}return this},gotoPercent:function(d,f){this.pause();var j=this.duration*d;this._current=null;b.some(this._animations,function(g){if(g.duration<=j){this._current=g;return true}j-=g.duration;return false});this._current&&this._current.gotoPercent(j/this._current.duration,f);return this},stop:function(d){if(this._current){if(d){for(;this._index+
1<this._animations.length;++this._index)this._animations[this._index].stop(true);this._current=this._animations[this._index]}var f=b.connect(this._current,"onStop",this,function(){this._fire("onStop",arguments);b.disconnect(f)});this._current.stop()}return this},status:function(){return this._current?this._current.status():"stopped"},destroy:function(){this._onAnimateCtx&&b.disconnect(this._onAnimateCtx);this._onEndCtx&&b.disconnect(this._onEndCtx)}});b.extend(a,e);b.fx.chain=function(d){return new a(d)};
var c=function(d){this._animations=d||[];this._connects=[];this.duration=this._finished=0;b.forEach(d,function(j){var g=j.duration;if(j.delay)g+=j.delay;if(this.duration<g)this.duration=g;this._connects.push(b.connect(j,"onEnd",this,"_onEnd"))},this);this._pseudoAnimation=new b.Animation({curve:[0,1],duration:this.duration});var f=this;b.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop","onEnd"],function(j){f._connects.push(b.connect(f._pseudoAnimation,j,function(){f._fire(j,
arguments)}))})};b.extend(c,{_doAction:function(d,f){b.forEach(this._animations,function(j){j[d].apply(j,f)});return this},_onEnd:function(){++this._finished>this._animations.length&&this._fire("onEnd")},_call:function(d,f){var j=this._pseudoAnimation;j[d].apply(j,f)},play:function(){this._finished=0;this._doAction("play",arguments);this._call("play",arguments);return this},pause:function(){this._doAction("pause",arguments);this._call("pause",arguments);return this},gotoPercent:function(d,f){var j=
this.duration*d;b.forEach(this._animations,function(g){g.gotoPercent(g.duration<j?1:j/g.duration,f)});this._call("gotoPercent",arguments);return this},stop:function(){this._doAction("stop",arguments);this._call("stop",arguments);return this},status:function(){return this._pseudoAnimation.status()},destroy:function(){b.forEach(this._connects,b.disconnect)}});b.extend(c,e);b.fx.combine=function(d){return new c(d)};b.fx.wipeIn=function(d){var f=d.node=b.byId(d.node),j=f.style,g;d=b.animateProperty(b.mixin({properties:{height:{start:function(){g=
j.overflow;j.overflow="hidden";if(j.visibility=="hidden"||j.display=="none"){j.height="1px";j.display="";j.visibility="";return 1}else{var h=b.style(f,"height");return Math.max(h,1)}},end:function(){return f.scrollHeight}}}},d));b.connect(d,"onEnd",function(){j.height="auto";j.overflow=g});return d};b.fx.wipeOut=function(d){var f=(d.node=b.byId(d.node)).style,j;d=b.animateProperty(b.mixin({properties:{height:{end:1}}},d));b.connect(d,"beforeBegin",function(){j=f.overflow;f.overflow="hidden";f.display=
""});b.connect(d,"onEnd",function(){f.overflow=j;f.height="auto";f.display="none"});return d};b.fx.slideTo=function(d){var f=null,j=null,g=function(h){return function(){var k=b.getComputedStyle(h),l=k.position;f=l=="absolute"?h.offsetTop:parseInt(k.top)||0;j=l=="absolute"?h.offsetLeft:parseInt(k.left)||0;if(l!="absolute"&&l!="relative"){k=b.position(h,true);f=k.y;j=k.x;h.style.position="absolute";h.style.top=f+"px";h.style.left=j+"px"}}}(d.node=b.byId(d.node));g();d=b.animateProperty(b.mixin({properties:{top:d.top||
0,left:d.left||0}},d));b.connect(d,"beforeBegin",d,g);return d}})();return b.fx});
define("dijit/form/_FormMixin",["dojo","dijit","dojo/window"],function(b,e){b.declare("dijit.form._FormMixin",null,{state:"",reset:function(){b.forEach(this.getDescendants(),function(a){a.reset&&a.reset()})},validate:function(){var a=false;return b.every(b.map(this.getDescendants(),function(c){c._hasBeenBlurred=true;var d=c.disabled||!c.validate||c.validate();if(!d&&!a){b.window.scrollIntoView(c.containerNode||c.domNode);c.focus();a=true}return d}),function(c){return c})},setValues:function(a){b.deprecated(this.declaredClass+
"::setValues() is deprecated. Use set('value', val) instead.","","2.0");return this.set("value",a)},_setValueAttr:function(a){var c={};b.forEach(this.getDescendants(),function(g){if(g.name)(c[g.name]||(c[g.name]=[])).push(g)});for(var d in c)if(c.hasOwnProperty(d)){var f=c[d],j=b.getObject(d,false,a);if(j!==undefined){b.isArray(j)||(j=[j]);if(typeof f[0].checked=="boolean")b.forEach(f,function(g){g.set("value",b.indexOf(j,g.value)!=-1)});else f[0].multiple?f[0].set("value",j):b.forEach(f,function(g,
h){g.set("value",j[h])})}}},getValues:function(){b.deprecated(this.declaredClass+"::getValues() is deprecated. Use get('value') instead.","","2.0");return this.get("value")},_getValueAttr:function(){var a={};b.forEach(this.getDescendants(),function(c){var d=c.name;if(!(!d||c.disabled)){var f=c.get("value");if(typeof c.checked=="boolean")if(/Radio/.test(c.declaredClass))if(f!==false)b.setObject(d,f,a);else{f=b.getObject(d,false,a);f===undefined&&b.setObject(d,null,a)}else{c=b.getObject(d,false,a);
if(!c){c=[];b.setObject(d,c,a)}f!==false&&c.push(f)}else{c=b.getObject(d,false,a);if(typeof c!="undefined")b.isArray(c)?c.push(f):b.setObject(d,[c,f],a);else b.setObject(d,f,a)}}});return a},isValid:function(){return this.state==""},onValidStateChange:function(){},_getState:function(){var a=b.map(this._descendants,function(c){return c.get("state")||""});return b.indexOf(a,"Error")>=0?"Error":b.indexOf(a,"Incomplete")>=0?"Incomplete":""},disconnectChildren:function(){b.forEach(this._childConnections||
[],b.hitch(this,"disconnect"));b.forEach(this._childWatches||[],function(a){a.unwatch()})},connectChildren:function(a){var c=this;this.disconnectChildren();this._descendants=this.getDescendants();a=a?function(g,h){c[g]=h}:b.hitch(this,"_set");a("value",this.get("value"));a("state",this._getState());var d=this._childConnections=[],f=this._childWatches=[];b.forEach(b.filter(this._descendants,function(g){return g.validate}),function(g){b.forEach(["state","disabled"],function(h){f.push(g.watch(h,function(){c.set("state",
c._getState())}))})});var j=function(){c._onChangeDelayTimer&&clearTimeout(c._onChangeDelayTimer);c._onChangeDelayTimer=setTimeout(function(){delete c._onChangeDelayTimer;c._set("value",c.get("value"))},10)};b.forEach(b.filter(this._descendants,function(g){return g.onChange}),function(g){d.push(c.connect(g,"onChange",j));f.push(g.watch("disabled",j))})},startup:function(){this.inherited(arguments);this.connectChildren(true);this.watch("state",function(a,c,d){this.onValidStateChange(d=="")})},destroy:function(){this.disconnectChildren();
this.inherited(arguments)}});return e.form._FormMixin});
define("dijit/_DialogMixin",["dojo","dijit","dijit/_Widget"],function(b,e){b.declare("dijit._DialogMixin",null,{attributeMap:e._Widget.prototype.attributeMap,execute:function(){},onCancel:function(){},onExecute:function(){},_onSubmit:function(){this.onExecute();this.execute(this.get("value"))},_getFocusItems:function(){var a=e._getTabNavigable(this.containerNode);this._firstFocusItem=a.lowest||a.first||this.closeButtonNode||this.domNode;this._lastFocusItem=a.last||a.highest||this._firstFocusItem}});
return e._DialogMixin});
define("dijit/DialogUnderlay",["dojo","dijit","dojo/window","dijit/_Widget","dijit/_Templated"],function(b,e){b.declare("dijit.DialogUnderlay",[e._Widget,e._Templated],{templateString:"<div class='dijitDialogUnderlayWrapper'><div class='dijitDialogUnderlay' dojoAttachPoint='node'></div></div>",dialogId:"","class":"",attributeMap:{id:"domNode"},_setDialogIdAttr:function(a){b.attr(this.node,"id",a+"_underlay");this._set("dialogId",a)},_setClassAttr:function(a){this.node.className="dijitDialogUnderlay "+
a;this._set("class",a)},postCreate:function(){b.body().appendChild(this.domNode)},layout:function(){var a=this.node.style,c=this.domNode.style;c.display="none";var d=b.window.getBox();c.top=d.t+"px";c.left=d.l+"px";a.width=d.w+"px";a.height=d.h+"px";c.display="block"},show:function(){this.domNode.style.display="block";this.layout();this.bgIframe=new e.BackgroundIframe(this.domNode)},hide:function(){this.bgIframe.destroy();delete this.bgIframe;this.domNode.style.display="none"}});return e.DialogUnderlay});
define("dijit/layout/_LayoutWidget",["dojo","dijit","dijit/_Widget","dijit/_Container","dijit/_Contained"],function(b,e){b.declare("dijit.layout._LayoutWidget",[e._Widget,e._Container,e._Contained],{baseClass:"dijitLayoutContainer",isLayoutContainer:true,buildRendering:function(){this.inherited(arguments);b.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(b.isIE?
this.domNode:b.global,"onresize",function(){this.resize()})}}},resize:function(a,c){var d=this.domNode;if(a){b.marginBox(d,a);if(a.t)d.style.top=a.t+"px";if(a.l)d.style.left=a.l+"px"}c=c||{};b.mixin(c,a||{});if(!("h"in c)||!("w"in c))c=b.mixin(b.marginBox(d),c);a=b.getComputedStyle(d);var f=b._getMarginExtents(d,a),j=b._getBorderExtents(d,a);c=this._borderBox={w:c.w-(f.w+j.w),h:c.h-(f.h+j.h)};f=b._getPadExtents(d,a);this._contentBox={l:b._toPixelValue(d,a.paddingLeft),t:b._toPixelValue(d,a.paddingTop),
w:c.w-f.w,h:c.h-f.h};this.layout()},layout:function(){},_setupChild:function(a){b.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){b.removeClass(a.domNode,this.baseClass+"-child"+(a.baseClass?" "+this.baseClass+"-"+a.baseClass:""));this.inherited(arguments)}});e.layout.marginBox2contentBox=function(a,c){var d=b.getComputedStyle(a),f=b._getMarginExtents(a,
d),j=b._getPadBorderExtents(a,d);return{l:b._toPixelValue(a,d.paddingLeft),t:b._toPixelValue(a,d.paddingTop),w:c.w-(f.w+j.w),h:c.h-(f.h+j.h)}};(function(){var a=function(d){return d.substring(0,1).toUpperCase()+d.substring(1)},c=function(d,f){var j=d.resize?d.resize(f):b.marginBox(d.domNode,f);if(j)b.mixin(d,j);else{b.mixin(d,b.marginBox(d.domNode));b.mixin(d,f)}};e.layout.layoutChildren=function(d,f,j,g,h){f=b.mixin({},f);b.addClass(d,"dijitLayoutContainer");j=b.filter(j,function(k){return k.region!=
"center"&&k.layoutAlign!="client"}).concat(b.filter(j,function(k){return k.region=="center"||k.layoutAlign=="client"}));b.forEach(j,function(k){var l=k.domNode,m=k.region||k.layoutAlign,p=l.style;p.left=f.l+"px";p.top=f.t+"px";p.position="absolute";b.addClass(l,"dijitAlign"+a(m));l={};if(g&&g==k.id)l[k.region=="top"||k.region=="bottom"?"h":"w"]=h;if(m=="top"||m=="bottom"){l.w=f.w;c(k,l);f.h-=k.h;if(m=="top")f.t+=k.h;else p.top=f.t+f.h+"px"}else if(m=="left"||m=="right"){l.h=f.h;c(k,l);f.w-=k.w;if(m==
"left")f.l+=k.w;else p.left=f.l+f.w+"px"}else if(m=="client"||m=="center")c(k,f)})}})();return e.layout._LayoutWidget});
define("dijit/layout/_ContentPaneResizeMixin",["dojo","dijit","dijit/_Contained","dijit/layout/_LayoutWidget"],function(b,e){b.declare("dijit.layout._ContentPaneResizeMixin",null,{doLayout:true,isContainer:true,isLayoutContainer:true,_startChildren:function(){b.forEach(this.getChildren(),function(a){a.startup();a._started=true})},startup:function(){if(!this._started){var a=e._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(b.isIE?this.domNode:b.global,"onresize",function(){this._needLayout=!this._childOfLayoutWidget;this.resize()})}},_checkIfSingleChild:function(){var a=b.query("> *",this.containerNode).filter(function(f){return f.tagName!=="SCRIPT"}),c=a.filter(function(f){return b.hasAttr(f,"data-dojo-type")||b.hasAttr(f,"dojoType")||b.hasAttr(f,"widgetId")}),d=b.filter(c.map(e.byNode),function(f){return f&&
f.domNode&&f.resize});if(a.length==c.length&&d.length==1)this._singleChild=d[0];else delete this._singleChild;b.toggleClass(this.containerNode,this.baseClass+"SingleChild",!!this._singleChild)},resize:function(a,c){!this._wasShown&&this.open!==false&&this._onShow();this._resizeCalled=true;this._scheduleLayout(a,c)},_scheduleLayout:function(a,c){if(this._isShown())this._layout(a,c);else{this._needLayout=true;this._changeSize=a;this._resultSize=c}},_layout:function(a,c){a&&b.marginBox(this.domNode,
a);var d=this.containerNode;if(d===this.domNode){c=c||{};b.mixin(c,a||{});if(!("h"in c)||!("w"in c))c=b.mixin(b.marginBox(d),c);this._contentBox=e.layout.marginBox2contentBox(d,c)}else this._contentBox=b.contentBox(d);this._layoutChildren();delete this._needLayout},_layoutChildren:function(){this.doLayout&&this._checkIfSingleChild();if(this._singleChild&&this._singleChild.resize){var a=this._contentBox||b.contentBox(this.containerNode);this._singleChild.resize({w:a.w,h:a.h})}else b.forEach(this.getChildren(),
function(c){c.resize&&c.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,c=this.domNode.parentNode;return a.style.display!="none"&&a.style.visibility!="hidden"&&!b.hasClass(a,"dijitHidden")&&c&&c.style&&c.style.display!="none"}},_onShow:function(){this._needLayout&&this._layout(this._changeSize,this._resultSize);this.inherited(arguments);this._wasShown=
true}});return e.layout._ContentPaneResizeMixin});
define("dojo/html",["dojo","dojo/parser"],function(b){b.getObject("html",true,b);(function(){var e=0;b.html._secureForInnerHtml=function(a){return a.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"")};b.html._emptyNode=b.empty;b.html._setNodeContent=function(a,c){b.empty(a);if(c){if(typeof c=="string")c=b._toDom(c,a.ownerDocument);if(!c.nodeType&&b.isArrayLike(c))for(var d=c.length,f=0;f<c.length;f=d==c.length?f+1:0)b.place(c[f],a,"last");else b.place(c,a,"last")}return a};b.declare("dojo.html._ContentSetter",
null,{node:"",content:"",id:"",cleanContent:false,extractContent:false,parseContent:false,parserScope:b._scopeName,startup:true,constructor:function(a,c){b.mixin(this,a||{});c=this.node=b.byId(this.node||c);if(!this.id)this.id=["Setter",c?c.id||c.tagName:"",e++].join("_")},set:function(a,c){if(undefined!==a)this.content=a;c&&this._mixin(c);this.onBegin();this.setContent();this.onEnd();return this.node},setContent:function(){var a=this.node;if(!a)throw new Error(this.declaredClass+": setContent given no node");
try{a=b.html._setNodeContent(a,this.content)}catch(c){var d=this.onContentError(c);try{a.innerHTML=d}catch(f){console.error("Fatal "+this.declaredClass+".setContent could not change content due to "+f.message,f)}}this.node=a},empty:function(){if(this.parseResults&&this.parseResults.length){b.forEach(this.parseResults,function(a){a.destroy&&a.destroy()});delete this.parseResults}b.html._emptyNode(this.node)},onBegin:function(){var a=this.content;if(b.isString(a)){if(this.cleanContent)a=b.html._secureForInnerHtml(a);
if(this.extractContent){var c=a.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(c)a=c[1]}}this.empty();this.content=a;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(a){return"Error occured setting content: "+a},_mixin:function(a){var c={},d;for(d in a)d in c||(this[d]=a[d])},_parse:function(){var a=this.node;try{var c={};b.forEach(["dir","lang","textDir"],
function(f){if(this[f])c[f]=this[f]},this);this.parseResults=b.parser.parse({rootNode:a,noStart:!this.startup,inherited:c,scope:this.parserScope})}catch(d){this._onError("Content",d,"Error parsing in _ContentSetter#"+this.id)}},_onError:function(a,c,d){a=this["on"+a+"Error"].call(this,c);if(d)console.error(d,c);else a&&b.html._setNodeContent(this.node,a,true)}});b.html.set=function(a,c,d){if(undefined==c){console.warn("dojo.html.set: no cont argument provided, using empty string");c=""}return d?(new b.html._ContentSetter(b.mixin(d,
{content:c,node:a}))).set():b.html._setNodeContent(a,c,true)}})();return b.html});define("dijit/nls/loading",{root:{loadingState:"Loading...",errorState:"Sorry, an error occurred"},zh:true,"zh-tw":true,tr:true,th:true,sv:true,sl:true,sk:true,ru:true,ro:true,pt:true,"pt-pt":true,pl:true,nl:true,nb:true,ko:true,kk:true,ja:true,it:true,hu:true,he:true,fr:true,fi:true,es:true,el:true,de:true,da:true,cs:true,ca:true,ar:true});
define("dijit/layout/ContentPane",["dojo","dijit","dijit/_Widget","dijit/layout/_ContentPaneResizeMixin","dojo/string","dojo/html","i18n!dijit/nls/loading"],function(b,e){b.declare("dijit.layout.ContentPane",[e._Widget,e.layout._ContentPaneResizeMixin],{href:"",extractContent:false,parseOnLoad:true,parserScope:b._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:b.delegate(e._Widget.prototype.attributeMap,{title:[]}),stopParser:true,template:false,create:function(a,c){if((!a||!a.template)&&c&&!("href"in a)&&!("content"in a)){var d=b.doc.createDocumentFragment();for(c=b.byId(c);c.firstChild;)d.appendChild(c.firstChild);a=b.delegate(a,{content:d})}this.inherited(arguments,[a,c])},postMixInProperties:function(){this.inherited(arguments);var a=b.i18n.getLocalization("dijit",
"loading",this.lang);this.loadingMessage=b.string.substitute(this.loadingMessage,a);this.errorMessage=b.string.substitute(this.errorMessage,a)},buildRendering:function(){this.inherited(arguments);if(!this.containerNode)this.containerNode=this.domNode;this.domNode.title="";b.attr(this.domNode,"role")||e.setWaiRole(this.domNode,"group")},_startChildren:function(){this.inherited(arguments);this._contentSetter&&b.forEach(this._contentSetter.parseResults,function(a){if(!a._started&&!a._destroyed&&b.isFunction(a.startup)){a.startup();
a._started=true}},this)},setHref:function(a){b.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 b.Deferred(b.hitch(this,"cancel"));this.onLoadDeferred.addCallback(b.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){b.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 b.Deferred(b.hitch(this,"cancel"));this._created&&this.onLoadDeferred.addCallback(b.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 b.Deferred(b.hitch(this,"cancel"));this.onLoadDeferred.addCallback(b.hitch(this,"onLoad"));this._load();return this.onLoadDeferred},_load:function(){this._setContent(this.onDownloadStart(),
true);var a=this,c={preventCache:this.preventCache||this.refreshOnShow,url:this.href,handleAs:"text"};b.isObject(this.ioArgs)&&b.mixin(c,this.ioArgs);var d=this._xhrDfd=(this.ioMethod||b.xhrGet)(c);d.addCallback(function(f){try{a._isDownloaded=true;a._setContent(f,false);a.onDownloadEnd()}catch(j){a._onError("Content",j)}delete a._xhrDfd;return f});d.addErrback(function(f){d.canceled||a._onError("Download",f);delete a._xhrDfd;return f});delete this._hrefChanged},_onLoadHandler:function(a){this._set("isLoaded",
true);try{this.onLoadDeferred.callback(a)}catch(c){console.error("Error "+this.widgetId+" running custom onLoad code: "+c.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;b.forEach(this.getChildren(),function(c){c.destroyRecursive&&c.destroyRecursive()});if(a){b.forEach(a.parseResults,
function(c){c.destroyRecursive&&c.domNode&&c.domNode.parentNode==b.body()&&c.destroyRecursive()});delete a.parseResults}b.html._emptyNode(this.containerNode);delete this._singleChild},_setContent:function(a,c){this.destroyDescendants();var d=this._contentSetter;if(!(d&&d instanceof b.html._ContentSetter))d=this._contentSetter=new b.html._ContentSetter({node:this.containerNode,_onError:b.hitch(this,this._onError),onContentError:b.hitch(this,function(j){j=this.onContentError(j);try{this.containerNode.innerHTML=
j}catch(g){console.error("Fatal "+this.id+" could not change content due to "+g.message,g)}})});var f=b.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad,parserScope:this.parserScope,startup:false,dir:this.dir,lang:this.lang},this._contentSetterParams||{});d.set(b.isObject(a)&&a.domNode?a.domNode:a,f);delete this._contentSetterParams;this.doLayout&&this._checkIfSingleChild();if(!c){if(this._started){this._startChildren();this._scheduleLayout()}this._onLoadHandler(a)}},
_onError:function(a,c,d){this.onLoadDeferred.errback(c);a=this["on"+a+"Error"].call(this,c);if(d)console.error(d,c);else a&&this._setContent(a,true)},onLoad:function(){},onUnload:function(){},onDownloadStart:function(){return this.loadingMessage},onContentError:function(){},onDownloadError:function(){return this.errorMessage},onDownloadEnd:function(){}});return e.layout.ContentPane});
define("dijit/nls/common",{root:{buttonOk:"OK",buttonCancel:"Cancel",buttonSave:"Save",itemClose:"Close"},zh:true,"zh-tw":true,tr:true,th:true,sv:true,sl:true,sk:true,ru:true,ro:true,pt:true,"pt-pt":true,pl:true,nl:true,nb:true,ko:true,kk:true,ja:true,it:true,hu:true,he:true,fr:true,fi:true,es:true,el:true,de:true,da:true,cs:true,ca:true,ar:true});define("text!dijit/templates/TooltipDialog.html",function(){return'<div role="presentation" tabIndex="-1">\n\t<div class="dijitTooltipContainer" role="presentation">\n\t\t<div class ="dijitTooltipContents dijitTooltipFocusNode" dojoAttachPoint="containerNode" role="dialog"></div>\n\t</div>\n\t<div class="dijitTooltipConnector" role="presentation"></div>\n</div>'});
define("dijit/TooltipDialog",["dojo","dijit","text!dijit/templates/TooltipDialog.html","dijit/layout/ContentPane","dijit/_Templated","dijit/form/_FormMixin","dijit/_DialogMixin"],function(b,e){b.declare("dijit.TooltipDialog",[e.layout.ContentPane,e._Templated,e.form._FormMixin,e._DialogMixin],{title:"",doLayout:false,autofocus:true,baseClass:"dijitTooltipDialog",_firstFocusItem:null,_lastFocusItem:null,templateString:b.cache("dijit","templates/TooltipDialog.html"),_setTitleAttr:function(a){this.containerNode.title=
a;this._set("title",a)},postCreate:function(){this.inherited(arguments);this.connect(this.containerNode,"onkeypress","_onKey")},orient:function(a,c,d){a="dijitTooltipAB"+(d.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(d.charAt(0)=="T"?"Below":"Above");b.replaceClass(this.domNode,a,this._currentOrientClass||"");this._currentOrientClass=a},focus:function(){this._getFocusItems(this.containerNode);e.focus(this._firstFocusItem)},onOpen:function(a){this.orient(this.domNode,a.aroundCorner,a.corner);this._onShow()},
onClose:function(){this.onHide()},_onKey:function(a){var c=a.target,d=b.keys;a.charOrCode===d.TAB&&this._getFocusItems(this.containerNode);var f=this._firstFocusItem==this._lastFocusItem;if(a.charOrCode==d.ESCAPE){setTimeout(b.hitch(this,"onCancel"),0);b.stopEvent(a)}else if(c==this._firstFocusItem&&a.shiftKey&&a.charOrCode===d.TAB){f||e.focus(this._lastFocusItem);b.stopEvent(a)}else if(c==this._lastFocusItem&&a.charOrCode===d.TAB&&!a.shiftKey){f||e.focus(this._firstFocusItem);b.stopEvent(a)}else a.charOrCode===
d.TAB&&a.stopPropagation()}});return e.TooltipDialog});
define("dijit/Dialog",["dojo","dijit","text!dijit/templates/Dialog.html","dojo/dnd/move","dojo/dnd/TimedMoveable","dojo/fx","dojo/window","dijit/_Widget","dijit/_Templated","dijit/_CssStateMixin","dijit/form/_FormMixin","dijit/_DialogMixin","dijit/DialogUnderlay","dijit/layout/ContentPane","i18n!dijit/nls/common","dijit/TooltipDialog"],function(b,e){b.declare("dijit._DialogBase",[e._Templated,e.form._FormMixin,e._DialogMixin,e._CssStateMixin],{templateString:b.cache("dijit","templates/Dialog.html"),
baseClass:"dijitDialog",cssStateNodes:{closeButtonNode:"dijitDialogCloseIcon"},attributeMap:b.delegate(e._Widget.prototype.attributeMap,{title:[{node:"titleNode",type:"innerHTML"},{node:"titleBar",type:"attribute"}],"aria-describedby":""}),open:false,duration:e.defaultDuration,refocus:true,autofocus:true,_firstFocusItem:null,_lastFocusItem:null,doLayout:false,draggable:true,"aria-describedby":"",postMixInProperties:function(){var a=b.i18n.getLocalization("dijit","common");b.mixin(this,a);this.inherited(arguments)},
postCreate:function(){b.style(this.domNode,{display:"none",position:"absolute"});b.body().appendChild(this.domNode);this.inherited(arguments);this.connect(this,"onExecute","hide");this.connect(this,"onCancel","hide");this._modalconnects=[]},onLoad:function(){this._position();if(this.autofocus&&e._DialogLevelManager.isTop(this)){this._getFocusItems(this.domNode);e.focus(this._firstFocusItem)}this.inherited(arguments)},_endDrag:function(a){if(a&&a.node&&a.node===this.domNode)this._relativePosition=
b.position(a.node)},_setup:function(){var a=this.domNode;if(this.titleBar&&this.draggable){this._moveable=b.isIE==6?new b.dnd.TimedMoveable(a,{handle:this.titleBar}):new b.dnd.Moveable(a,{handle:this.titleBar,timeout:0});this._dndListener=b.subscribe("/dnd/move/stop",this,"_endDrag")}else b.addClass(a,"dijitDialogFixed");this.underlayAttrs={dialogId:this.id,"class":b.map(this["class"].split(/\s/),function(c){return c+"_underlay"}).join(" ")}},_size:function(){this._checkIfSingleChild();if(this._singleChild){if(this._singleChildOriginalStyle)this._singleChild.domNode.style.cssText=
this._singleChildOriginalStyle;delete this._singleChildOriginalStyle}else b.style(this.containerNode,{width:"auto",height:"auto"});var a=b._getMarginSize(this.domNode),c=b.window.getBox();if(a.w>=c.w||a.h>=c.h){var d=Math.min(a.w,Math.floor(c.w*0.75));a=Math.min(a.h,Math.floor(c.h*0.75));if(this._singleChild&&this._singleChild.resize){this._singleChildOriginalStyle=this._singleChild.domNode.style.cssText;this._singleChild.resize({w:d,h:a})}else b.style(this.containerNode,{width:d+"px",height:a+"px",
overflow:"auto",position:"relative"})}else this._singleChild&&this._singleChild.resize&&this._singleChild.resize()},_position:function(){if(!b.hasClass(b.body(),"dojoMove")){var a=this.domNode,c=b.window.getBox(),d=this._relativePosition,f=d?null:b._getBorderBox(a),j=Math.floor(c.l+(d?d.x:(c.w-f.w)/2));c=Math.floor(c.t+(d?d.y:(c.h-f.h)/2));b.style(a,{left:j+"px",top:c+"px"})}},_onKey:function(a){if(a.charOrCode){var c=b.keys,d=a.target;a.charOrCode===c.TAB&&this._getFocusItems(this.domNode);var f=
this._firstFocusItem==this._lastFocusItem;if(d==this._firstFocusItem&&a.shiftKey&&a.charOrCode===c.TAB){f||e.focus(this._lastFocusItem);b.stopEvent(a)}else if(d==this._lastFocusItem&&a.charOrCode===c.TAB&&!a.shiftKey){f||e.focus(this._firstFocusItem);b.stopEvent(a)}else{for(;d;){if(d==this.domNode||b.hasClass(d,"dijitPopup"))if(a.charOrCode==c.ESCAPE)this.onCancel();else return;d=d.parentNode}if(a.charOrCode!==c.TAB)b.stopEvent(a);else if(!b.isOpera)try{this._firstFocusItem.focus()}catch(j){}}}},
show:function(){if(!this.open){this._started||this.startup();if(!this._alreadyInitialized){this._setup();this._alreadyInitialized=true}this._fadeOutDeferred&&this._fadeOutDeferred.cancel();this._modalconnects.push(b.connect(window,"onscroll",this,"layout"));this._modalconnects.push(b.connect(window,"onresize",this,function(){var c=b.window.getBox();if(!this._oldViewport||c.h!=this._oldViewport.h||c.w!=this._oldViewport.w){this.layout();this._oldViewport=c}}));this._modalconnects.push(b.connect(this.domNode,
"onkeypress",this,"_onKey"));b.style(this.domNode,{opacity:0,display:""});this._set("open",true);this._onShow();this._size();this._position();var a;this._fadeInDeferred=new b.Deferred(b.hitch(this,function(){a.stop();delete this._fadeInDeferred}));a=b.fadeIn({node:this.domNode,duration:this.duration,beforeBegin:b.hitch(this,function(){e._DialogLevelManager.show(this,this.underlayAttrs)}),onEnd:b.hitch(this,function(){if(this.autofocus&&e._DialogLevelManager.isTop(this)){this._getFocusItems(this.domNode);
e.focus(this._firstFocusItem)}this._fadeInDeferred.callback(true);delete this._fadeInDeferred})}).play();return this._fadeInDeferred}},hide:function(){if(this._alreadyInitialized){this._fadeInDeferred&&this._fadeInDeferred.cancel();var a;this._fadeOutDeferred=new b.Deferred(b.hitch(this,function(){a.stop();delete this._fadeOutDeferred}));a=b.fadeOut({node:this.domNode,duration:this.duration,onEnd:b.hitch(this,function(){this.domNode.style.display="none";e._DialogLevelManager.hide(this);this.onHide();
this._fadeOutDeferred.callback(true);delete this._fadeOutDeferred})}).play();if(this._scrollConnected)this._scrollConnected=false;b.forEach(this._modalconnects,b.disconnect);this._modalconnects=[];this._relativePosition&&delete this._relativePosition;this._set("open",false);return this._fadeOutDeferred}},layout:function(){if(this.domNode.style.display!="none"){e._underlay&&e._underlay.layout();this._position()}},destroy:function(){this._fadeInDeferred&&this._fadeInDeferred.cancel();this._fadeOutDeferred&&
this._fadeOutDeferred.cancel();this._moveable&&this._moveable.destroy();this._dndListener&&b.unsubscribe(this._dndListener);b.forEach(this._modalconnects,b.disconnect);e._DialogLevelManager.hide(this);this.inherited(arguments)}});b.declare("dijit.Dialog",[e.layout.ContentPane,e._DialogBase],{});e._DialogLevelManager={show:function(a,c){var d=e._dialogStack;d[d.length-1].focus=e.getFocus(a);var f=e._underlay;if(!f||f._destroyed)f=e._underlay=new e.DialogUnderlay(c);else f.set(a.underlayAttrs);var j=
d[d.length-1].dialog?d[d.length-1].zIndex+2:950;d.length==1&&f.show();b.style(e._underlay.domNode,"zIndex",j-1);b.style(a.domNode,"zIndex",j);d.push({dialog:a,underlayAttrs:c,zIndex:j})},hide:function(a){var c=e._dialogStack;if(c[c.length-1].dialog==a){c.pop();var d=c[c.length-1];if(c.length==1)e._underlay._destroyed||e._underlay.hide();else{b.style(e._underlay.domNode,"zIndex",d.zIndex-1);e._underlay.set(d.underlayAttrs)}if(a.refocus){c=d.focus;if(!c||d.dialog&&!b.isDescendant(c.node,d.dialog.domNode)){d.dialog._getFocusItems(d.dialog.domNode);
c=d.dialog._firstFocusItem}try{e.focus(c)}catch(f){}}}else{d=b.indexOf(b.map(c,function(j){return j.dialog}),a);d!=-1&&c.splice(d,1)}},isTop:function(a){var c=e._dialogStack;return c[c.length-1].dialog==a}};e._dialogStack=[{dialog:null,focus:null,underlayAttrs:null}];return e.Dialog});define("text!orion/widgets/templates/OpenResourceDialog.html",function(){return'<div dojoAttachPoint="containerNode">\n\t<div dojoAttachPoint="dialog" dojoType="dijit.Dialog" title="${title}" widgetsInTemplate="true">\n\t\t<div style="display:table">\n\t\t\t<div style="display:table-row">\n\t\t\t\t<div style="display:table-cell; padding:5;">\n\t\t\t\t\t<label for="resourceName" style="padding-right:10">${selectFile}</label>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div style="display:table-row">\n\t\t\t\t<div style="display:table-cell; padding:5;">\n\t\t\t\t\t<input type="text" dojoType="dijit.form.TextBox" dojoAttachPoint="resourceName" \n\t\t\t\t\t\tplaceHolder="${searchPlaceHolder}"\n\t\t\t\t\t\tintermediateChanges="true" style="width:30em;">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div style="display:table-row">\n\t\t\t\t<div dojoAttachPoint="results" style="max-height:400px; height:auto; overflow-y:auto;"></div>\n\t\t\t</div>\n\t\t\t<div style="display:table-row">\n\t\t\t\t<div dojoAttachPoint="statusbar" style="display:table-cell;"></div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>'});
define("orion/widgets/OpenResourceDialog",["dojo","dijit","dijit/Dialog","dijit/form/TextBox","text!orion/widgets/templates/OpenResourceDialog.html"],function(b,e){return b.declare("orion.widgets.OpenResourceDialog",[e._Widget,e._Templated],{widgetsInTemplate:true,templateString:b.cache("orion","widgets/templates/OpenResourceDialog.html"),SEARCH_DELAY:500,timeoutId:null,time:null,searchLocation:null,searcher:null,constructor:function(){this.inherited(arguments);this.timeoutId=null;this.time=0;this.searchLocation=
arguments[0]&&arguments[0].SearchLocation;this.searcher=arguments[0]&&arguments[0].searcher;if(!this.searchLocation)throw new Error("Missing required argument: SearchLocation");if(!this.searcher)throw new Error("Missing required argument: searcher");},postMixInProperties:function(){this.inherited(arguments);this.title="Open Resource";this.selectFile="Type the name of a file to open (? = any character, * = any string):";this.searchPlaceHolder="Search"},postCreate:function(){this.inherited(arguments);
b.connect(this.resourceName,"onChange",this,function(){this.time=+new Date;clearTimeout(this.timeoutId);this.timeoutId=setTimeout(b.hitch(this,this.checkSearch),0)});b.connect(this.resourceName,"onKeyPress",this,function(a){if(a.keyCode===b.keys.ENTER&&this.results){a=b.query("a",this.results);if(a.length>0){window.open(a[0].href);this.dialog.hide()}}});b.connect(this.dialog,"onMouseUp",function(a){a.target.focus()});b.connect(this.dialog,"onHide",this,function(){this.onHide()});this.dialog.refocus=
false},checkSearch:function(){clearTimeout(this.timeoutId);var a=+new Date;if(a-this.time>this.SEARCH_DELAY){this.time=a;this.doSearch()}else this.timeoutId=setTimeout(b.hitch(this,arguments.callee),50)},doSearch:function(){var a=this.resourceName&&this.resourceName.get("value");if(a){b.place("<div>Searching&#x2026;</div>",this.results,"only");var c=this;setTimeout(function(){var d=a+=/\*$/.test(a)?"":"*";c.searcher.search(c.results,c.searchLocation+"Name:"+d,false,false,b.hitch(c,c.decorateResult),
true)},0)}},decorateResult:function(a){var c=this;b.query("a",a).forEach(function(d){b.connect(d,"onmouseup",function(f){!b.mouseButtons.isMiddle(f)&&!b.isCopyKey(f)&&c.dialog.hide()})})},show:function(){this.dialog.show();this.resourceName.focus()},onHide:function(){clearTimeout(this.timeoutId);setTimeout(b.hitch(this,function(){this.dialog.destroyRecursive();this.destroyRecursive()}),this.dialog.duration)}})});
define("orion/globalCommands",["dojo","dijit","orion/commands","orion/util","orion/textview/keyBinding","dijit/Menu","dijit/MenuItem","dijit/form/DropDownButton","orion/widgets/OpenResourceDialog"],function(b,e,a,c,d){function f(m,p){var n=b.byId("userInfo");if(n){b.addClass(n,"globalActions");var o=e.byId("userMenu");o&&o.destroy();b.empty(n);if(m){c.setUserName(m);o=new e.Menu({style:"display: none;",id:"userMenu"});var q=new e.MenuItem({label:"Profile",onClick:b.hitch(this,function(){window.location=
"/profile/user-profile.html#/users/"+m})});o.addChild(q);q=new e.MenuItem({label:"Sign out",onClick:logout});o.addChild(q);p=new e.form.DropDownButton({label:m,dropDown:o,title:p});b.addClass(p.domNode,"commandImage");b.place(p.domNode,n,"last")}else{p=document.createElement("span");p.appendChild(document.createTextNode("Sign in"));p.onclick=function(){login()};p.id="signOutUser";n.appendChild(p);b.addClass(p,"commandLink")}l=null}else l={userName:m,userStatusText:p}}function j(m,p,n,o){var q=b.byId("pageActions");
if(n)q=b.byId(n);if(q){b.empty(q);m.renderCommands(q,"dom",p,p,"image",null,null,!o)}}function g(m,p,n,o,q,v,r,s){var w;o=b.byId(m);if(!o)throw"could not find banner parent, id was "+m;b.place(h,o,"only");b.place('<div id="keyAssist" class="keyAssistFloat"></div>',document.body,"last");var u=b.byId("primaryNav");if(u)for(var y=p.getServiceReferences("orion.page.link"),E=0;E<y.length;E++)p.getService(y[E]).then(function(){for(var G={},L=y[E].getPropertyNames(),H=0;H<L.length;H++)G[L[H]]=y[E].getProperty(L[H]);
if(G.href&&G.name){L=b.create("a",{href:G.href},u,"last");b.addClass(L,"commandLink");w=document.createTextNode(G.name);b.place(w,L,"only")}});var D=b.byId("search");if(!D)throw"failed to generate HTML for banner";b.connect(D,"onkeypress",function(G){if(G.charOrCode===b.keys.ENTER)if(D.value.length>0)window.location="/search/search.html#"+("/filesearch?q="+D.value)});if(m=b.byId("pageTitle")){w=document.createTextNode(document.title);b.place(w,m,"last")}var B=function(G,L,H){var N=new orion.widgets.OpenResourceDialog({SearchLocation:G,
searcher:L});H&&b.connect(N,"onHide",function(){H.getTextView().focus()});window.setTimeout(function(){N.show()},0)};m=new a.Command({name:"Find File Named...",id:"eclipse.openResource",callback:function(){B("/filesearch?q=",q,r)}});if(r){r.getTextView().setKeyBinding(new d.KeyBinding("r",true,true,false),"Find File Named...");r.getTextView().setAction("Find File Named...",function(){B("/filesearch?q=",q,r);return true})}n.addCommand(m,"global");n.registerCommandContribution("eclipse.openResource",
1,"globalActions",null,new a.CommandKeyBinding("t"),true);var F=b.byId("keyAssist");b.connect(document,"onkeypress",b.hitch(this,function(G){if(G.charOrCode===b.keys.ESCAPE)F.style.display="none"}));s&&s.addHandler({isActive:function(){return F.style.display==="block"},cancel:function(){if(this.isActive()){F.style.display="none";return true}return false}});s=new a.Command({name:"Show Keys",id:"eclipse.keyAssist",callback:function(){b.empty(F);if(r){b.place("<h2>Editor</h2>",F,"last");for(var G=r.getTextView().getActions(false),
L=0;L<G.length;L++)for(var H=G[L],N=r.getTextView().getKeyBindings(H),M=0;M<N.length;M++)b.place("<span>"+c.getUserKeyString(N[M])+" = "+H+"<br></span>",F,"last")}b.place("<h2>Global</h2>",F,"last");n.showKeyBindings(F);F.style.display="block";return true}});n.addCommand(s,"global");n.registerCommandContribution("eclipse.keyAssist",1,"globalActions",null,new a.CommandKeyBinding(191,false,true),true);if(r){r.getTextView().setKeyBinding(new a.CommandKeyBinding("L",true,true),"Show Keys");r.getTextView().setAction("Show Keys",
s.callback)}if(s=b.byId("globalActions")){b.empty(s);n.renderCommands(s,"global",v||{},v,"image")}l&&f(l.userName,l.userStatusText);if(k)(v=b.byId("footer"))&&b.place(k,v,"only")}var h='<table style="border: 2px solid white; margin: 0; padding: 0; border-collapse: collapse; width: 100%;"><tr class="topRowBanner" id="bannerRow1"><td rowspan=3 style="padding-top: 12px; padding-bottom: 12px; padding-left: 8px; width: 148px"><a id="home" href="/index.html"><img class="toolbarLabel" src="/images/orion.gif" alt="Orion Logo" align="top"></a></td><td class="leftGlobalToolbar" style="padding-top: 16px"><span id="pageTitle" class="pageTitle"></span></td><td class="rightGlobalToolbar" style="padding-top: 16px"><span id="primaryNav" class="globalActions"></span><span id="globalActions" class="globalActions"></span><input type="search" id="search" class="searchbox"><span id="userInfo"></span><span id="help" class="help"><a id="help" href="/help/index.jsp">?</a></span></td></tr><tr class="topRowBanner" id="bannerRow2"><td colspan=2 style="text-wrap: normal"><span id="location" class="currentLocation" style="text-wrap: normal"></span></td></tr><tr class="topRowBanner" id="bannerRow3"><td colspan=2 style="height: 16px; text-align: left"><span id="statusPane" style="color: #5a5a5a;"></span><span id="notifications"></span></td></tr><tr class="pageToolbar"><td colspan=3 style="padding-left: 16px;" id="pageToolbar" class="pageToolbar"><span id="pageActions" class="pageActions"></span></td></tr></table>',
k='<img src="http://dev.eclipse.org/small_icons/emblems/emblem-important.png"/> This is a Beta build of Orion.  You can use it, play with it and explore the capabilities but BEWARE your data may be lost. &nbsp;| <a href="http://wiki.eclipse.org/Orion/FAQ">FAQ</a> | <a href="https://bugs.eclipse.org/bugs/enter_bug.cgi?product=e4&component=Orion&version=0.2">Report a Bug</a> | <a href="http://www.eclipse.org/legal/privacy.php">Privacy Policy</a> | <a href="http://www.eclipse.org/legal/termsofuse.php">Terms of Use</a> | <a href="http://www.eclipse.org/legal/copyright.php">Copyright Agent</a>',
l=null;return{generateUserInfo:f,generateDomCommandsInBanner:j,generateBanner:g}});
define("dojo/date",["dojo"],function(b){b.getObject("date",true,b);b.date.getDaysInMonth=function(e){var a=e.getMonth();if(a==1&&b.date.isLeapYear(e))return 29;return[31,28,31,30,31,30,31,31,30,31,30,31][a]};b.date.isLeapYear=function(e){e=e.getFullYear();return!(e%400)||!(e%4)&&!!(e%100)};b.date.getTimezoneName=function(e){var a=e.toString(),c="",d=a.indexOf("(");if(d>-1)c=a.substring(++d,a.indexOf(")"));else{d=/([A-Z\/]+) \d{4}$/;if(a=a.match(d))c=a[1];else{a=e.toLocaleString();d=/ ([A-Z\/]+)$/;
if(a=a.match(d))c=a[1]}}return c=="AM"||c=="PM"?"":c};b.date.compare=function(e,a,c){e=new Date(+e);a=new Date(+(a||new Date));if(c=="date"){e.setHours(0,0,0,0);a.setHours(0,0,0,0)}else if(c=="time"){e.setFullYear(0,0,0);a.setFullYear(0,0,0)}if(e>a)return 1;if(e<a)return-1;return 0};b.date.add=function(e,a,c){var d=new Date(+e),f=false,j="Date";switch(a){case "day":break;case "weekday":var g;if(a=c%5){a=a;g=parseInt(c/5)}else{a=c>0?5:-5;g=c>0?(c-5)/5:(c+5)/5}var h=e.getDay(),k=0;if(h==6&&c>0)k=1;
else if(h==0&&c<0)k=-1;h=h+a;if(h==0||h==6)k=c>0?2:-2;c=7*g+a+k;break;case "year":j="FullYear";f=true;break;case "week":c*=7;break;case "quarter":c*=3;case "month":f=true;j="Month";break;default:j="UTC"+a.charAt(0).toUpperCase()+a.substring(1)+"s"}j&&d["set"+j](d["get"+j]()+c);f&&d.getDate()<e.getDate()&&d.setDate(0);return d};b.date.difference=function(e,a,c){a=a||new Date;c=c||"day";var d=a.getFullYear()-e.getFullYear(),f=1;switch(c){case "quarter":e=e.getMonth();a=a.getMonth();e=Math.floor(e/3)+
1;a=Math.floor(a/3)+1;a+=d*4;f=a-e;break;case "weekday":d=Math.round(b.date.difference(e,a,"day"));c=parseInt(b.date.difference(e,a,"week"));f=d%7;if(f==0)d=c*5;else{var j=0,g=e.getDay();a=a.getDay();c=parseInt(d/7);f=d%7;e=new Date(e);e.setDate(e.getDate()+c*7);e=e.getDay();if(d>0)switch(true){case g==6:j=-1;break;case g==0:j=0;break;case a==6:j=-1;break;case a==0:j=-2;break;case e+f>5:j=-2}else if(d<0)switch(true){case g==6:j=0;break;case g==0:j=1;break;case a==6:j=2;break;case a==0:j=1;break;case e+
f<0:j=2}d+=j;d-=c*2}f=d;break;case "year":f=d;break;case "month":f=a.getMonth()-e.getMonth()+d*12;break;case "week":f=parseInt(b.date.difference(e,a,"day")/7);break;case "day":f/=24;case "hour":f/=60;case "minute":f/=60;case "second":f/=1E3;case "millisecond":f*=a.getTime()-e.getTime()}return Math.round(f)};return b.date});
define("dojo/cldr/supplemental",["dojo","dojo/i18n"],function(b){b.getObject("cldr.supplemental",true,b);b.cldr.supplemental.getFirstDayOfWeek=function(e){e={mv:5,ae:6,af:6,bh:6,dj:6,dz:6,eg:6,er:6,et:6,iq:6,ir:6,jo:6,ke:6,kw:6,ly:6,ma:6,om:6,qa:6,sa:6,sd:6,so:6,sy:6,tn:6,ye:6,ar:0,as:0,az:0,bw:0,ca:0,cn:0,fo:0,ge:0,gl:0,gu:0,hk:0,il:0,"in":0,jm:0,jp:0,kg:0,kr:0,la:0,mh:0,mn:0,mo:0,mp:0,mt:0,nz:0,ph:0,pk:0,sg:0,th:0,tt:0,tw:0,um:0,us:0,uz:0,vi:0,zw:0}[b.cldr.supplemental._region(e)];return e===undefined?
1:e};b.cldr.supplemental._region=function(e){e=b.i18n.normalizeLocale(e);e=e.split("-");var a=e[1];if(a){if(a.length==4)a=e[2]}else a={de:"de",en:"us",es:"es",fi:"fi",fr:"fr",he:"il",hu:"hu",it:"it",ja:"jp",ko:"kr",nl:"nl",pt:"br",sv:"se",zh:"cn"}[e[0]];return a};b.cldr.supplemental.getWeekend=function(e){var a=b.cldr.supplemental._region(e);e={"in":0,af:4,dz:4,ir:4,om:4,sa:4,ye:4,ae:5,bh:5,eg:5,il:5,iq:5,jo:5,kw:5,ly:5,ma:5,qa:5,sd:5,sy:5,tn:5}[a];a={af:5,dz:5,ir:5,om:5,sa:5,ye:5,ae:6,bh:5,eg:6,
il:6,iq:6,jo:6,kw:6,ly:6,ma:6,qa:6,sd:6,sy:6,tn:6}[a];if(e===undefined)e=6;if(a===undefined)a=0;return{start:e,end:a}};return b.cldr.supplemental});
define("dojo/regexp",["dojo"],function(b){b.getObject("regexp",true,b);b.regexp.escapeString=function(e,a){return e.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(c){if(a&&a.indexOf(c)!=-1)return c;return"\\"+c})};b.regexp.buildGroupRE=function(e,a,c){if(!(e instanceof Array))return a(e);for(var d=[],f=0;f<e.length;f++)d.push(a(e[f]));return b.regexp.group(d.join("|"),c)};b.regexp.group=function(e,a){return"("+(a?"?:":"")+e+")"};return b.regexp});
define("dojo/cldr/nls/gregorian",{root:{"months-format-narrow":["1","2","3","4","5","6","7","8","9","10","11","12"],"quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"Day of the Week","dateFormatItem-yQQQ":"y QQQ","dateFormatItem-yMEd":"EEE, y-M-d","dateFormatItem-MMMEd":"E MMM d",eraNarrow:["BCE","CE"],"dateTimeFormats-appendItem-Day-Of-Week":"{0} {1}","dateFormat-long":"y MMMM d","months-format-wide":["1","2","3","4","5","6","7","8","9","10","11","12"],"dateTimeFormat-medium":"{1} {0}",
"dateFormatItem-EEEd":"d EEE","dayPeriods-format-wide-pm":"PM","dateFormat-full":"EEEE, y MMMM dd","dateFormatItem-Md":"M-d","dayPeriods-format-abbr-am":"AM","dateTimeFormats-appendItem-Second":"{0} ({2}: {1})","field-era":"Era","dateFormatItem-yM":"y-M","months-standAlone-wide":["1","2","3","4","5","6","7","8","9","10","11","12"],"timeFormat-short":"HH:mm","quarters-format-wide":["Q1","Q2","Q3","Q4"],"timeFormat-long":"HH:mm:ss z","field-year":"Year","dateFormatItem-yMMM":"y MMM","dateFormatItem-yQ":"y Q",
"dateTimeFormats-appendItem-Era":"{0} {1}","field-hour":"Hour","months-format-abbr":["1","2","3","4","5","6","7","8","9","10","11","12"],"timeFormat-full":"HH:mm:ss zzzz","dateTimeFormats-appendItem-Week":"{0} ({2}: {1})","field-day-relative+0":"Today","field-day-relative+1":"Tomorrow","dateFormatItem-H":"HH","months-standAlone-abbr":["1","2","3","4","5","6","7","8","9","10","11","12"],"quarters-format-abbr":["Q1","Q2","Q3","Q4"],"quarters-standAlone-wide":["Q1","Q2","Q3","Q4"],"dateFormatItem-M":"L",
"days-standAlone-wide":["1","2","3","4","5","6","7"],"timeFormat-medium":"HH:mm:ss","dateFormatItem-Hm":"HH:mm","quarters-standAlone-abbr":["Q1","Q2","Q3","Q4"],eraAbbr:["BCE","CE"],"field-minute":"Minute","field-dayperiod":"Dayperiod","days-standAlone-abbr":["1","2","3","4","5","6","7"],"dateFormatItem-d":"d","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"Yesterday","dateFormatItem-h":"h a","dateTimeFormat-long":"{1} {0}","dayPeriods-format-narrow-am":"AM",
"dateFormatItem-MMMd":"MMM d","dateFormatItem-MEd":"E, M-d","dateTimeFormat-full":"{1} {0}","field-day":"Day","days-format-wide":["1","2","3","4","5","6","7"],"field-zone":"Zone","dateTimeFormats-appendItem-Day":"{0} ({2}: {1})","dateFormatItem-y":"y","months-standAlone-narrow":["1","2","3","4","5","6","7","8","9","10","11","12"],"dateFormatItem-hm":"h:mm a","dateTimeFormats-appendItem-Year":"{0} {1}","dateTimeFormats-appendItem-Hour":"{0} ({2}: {1})","dayPeriods-format-abbr-pm":"PM","days-format-abbr":["1",
"2","3","4","5","6","7"],eraNames:["BCE","CE"],"days-format-narrow":["1","2","3","4","5","6","7"],"days-standAlone-narrow":["1","2","3","4","5","6","7"],"dateFormatItem-MMM":"LLL","field-month":"Month","dateTimeFormats-appendItem-Quarter":"{0} ({2}: {1})","dayPeriods-format-wide-am":"AM","dateTimeFormats-appendItem-Month":"{0} ({2}: {1})","dateTimeFormats-appendItem-Minute":"{0} ({2}: {1})","dateFormat-short":"yyyy-MM-dd","field-second":"Second","dateFormatItem-yMMMEd":"EEE, y MMM d","dateTimeFormats-appendItem-Timezone":"{0} {1}",
"field-week":"Week","dateFormat-medium":"y MMM d","dayPeriods-format-narrow-pm":"PM","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"HH:mm:ss","dateFormatItem-hms":"h:mm:ss a"},ar:true,ca:true,cs:true,da:true,de:true,el:true,en:true,"en-au":true,"en-ca":true,"en-gb":true,es:true,fi:true,fr:true,"fr-ch":true,he:true,hu:true,it:true,ja:true,ko:true,nb:true,nl:true,pl:true,pt:true,"pt-pt":true,ro:true,ru:true,sk:true,sl:true,sv:true,th:true,tr:true,zh:true,"zh-hant":true,"zh-hk":true,"zh-tw":true});
define("dojo/cldr/nls/en/gregorian",{"dateFormatItem-yM":"M/y","field-dayperiod":"AM/PM","dateFormatItem-yQ":"Q y","dayPeriods-format-wide-pm":"PM","field-minute":"Minute",eraNames:["Before Christ","Anno Domini"],"dateFormatItem-MMMEd":"E, MMM d","dateTimeFormat-full":"{1} {0}","field-day-relative+-1":"Yesterday","field-weekday":"Day of the Week","dateFormatItem-hms":"h:mm:ss a","dateFormatItem-yQQQ":"QQQ y","days-standAlone-wide":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],
"dateFormatItem-MMM":"LLL","months-standAlone-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"dateTimeFormat-short":"{1} {0}","field-era":"Era","field-hour":"Hour","dayPeriods-format-wide-am":"AM","dateTimeFormat-medium":"{1} {0}","dateFormatItem-y":"y","timeFormat-full":"h:mm:ss a zzzz","months-standAlone-abbr":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"dateFormatItem-yMMM":"MMM y","field-day-relative+0":"Today","field-day-relative+1":"Tomorrow","days-standAlone-narrow":["S",
"M","T","W","T","F","S"],eraAbbr:["BC","AD"],"dateFormat-long":"MMMM d, y","timeFormat-medium":"h:mm:ss a","dateFormatItem-EEEd":"d EEE","field-zone":"Zone","dateFormatItem-Hm":"HH:mm","dateFormat-medium":"MMM d, y","dateFormatItem-Hms":"HH:mm:ss","quarters-standAlone-wide":["1st quarter","2nd quarter","3rd quarter","4th quarter"],"dateFormatItem-ms":"mm:ss","field-year":"Year","quarters-standAlone-narrow":["1","2","3","4"],"dateTimeFormat-long":"{1} {0}","field-week":"Week","months-standAlone-wide":["January",
"February","March","April","May","June","July","August","September","October","November","December"],"dateFormatItem-MMMd":"MMM d","timeFormat-long":"h:mm:ss a z","months-format-abbr":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"dayPeriods-format-wide-noon":"noon","timeFormat-short":"h:mm a","field-month":"Month","quarters-format-abbr":["Q1","Q2","Q3","Q4"],"days-format-abbr":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"dateFormatItem-M":"L","days-format-narrow":["S",
"M","T","W","T","F","S"],"field-second":"Second","field-day":"Day","dateFormatItem-MEd":"E, M/d","months-format-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"dateFormatItem-hm":"h:mm a","days-standAlone-abbr":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"dateFormat-short":"M/d/yy","dateFormatItem-yMMMEd":"EEE, MMM d, y","dateFormat-full":"EEEE, MMMM d, y","dateFormatItem-Md":"M/d","dateFormatItem-yMEd":"EEE, M/d/y","months-format-wide":["January","February","March","April","May","June",
"July","August","September","October","November","December"],"dateFormatItem-d":"d","quarters-format-wide":["1st quarter","2nd quarter","3rd quarter","4th quarter"],"days-format-wide":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],eraNarrow:["B","A"]});
define("dojo/date/locale",["dojo","dojo/date","dojo/cldr/supplemental","dojo/regexp","dojo/string","dojo/i18n","i18n!dojo/cldr/nls/gregorian"],function(b){b.getObject("date.locale",true,b);(function(){function e(d,f,j,g){return g.replace(/([a-z])\1*/ig,function(h){var k,l,m=h.charAt(0);h=h.length;var p=["abbr","wide","narrow"];switch(m){case "G":k=f[h<4?"eraAbbr":"eraNames"][d.getFullYear()<0?0:1];break;case "y":k=d.getFullYear();switch(h){case 1:break;case 2:if(!j.fullYear){k=String(k);k=k.substr(k.length-
2);break}default:l=true}break;case "Q":case "q":k=Math.ceil((d.getMonth()+1)/3);l=true;break;case "M":k=d.getMonth();if(h<3){k=k+1;l=true}else{m=["months-format",p[h-3]].join("-");k=f[m][k]}break;case "w":k=b.date.locale._getWeekOfYear(d,0);l=true;break;case "d":k=d.getDate();l=true;break;case "D":k=b.date.locale._getDayOfYear(d);l=true;break;case "E":k=d.getDay();if(h<3){k=k+1;l=true}else{m=["days-format",p[h-3]].join("-");k=f[m][k]}break;case "a":k=d.getHours()<12?"am":"pm";k=j[k]||f["dayPeriods-format-wide-"+
k];break;case "h":case "H":case "K":case "k":l=d.getHours();switch(m){case "h":k=l%12||12;break;case "H":k=l;break;case "K":k=l%12;break;case "k":k=l||24;break}l=true;break;case "m":k=d.getMinutes();l=true;break;case "s":k=d.getSeconds();l=true;break;case "S":k=Math.round(d.getMilliseconds()*Math.pow(10,h-3));l=true;break;case "v":case "z":if(k=b.date.locale._getZone(d,true,j))break;h=4;case "Z":k=b.date.locale._getZone(d,false,j);k=[k<=0?"+":"-",b.string.pad(Math.floor(Math.abs(k)/60),2),b.string.pad(Math.abs(k)%
60,2)];if(h==4){k.splice(0,0,"GMT");k.splice(3,0,":")}k=k.join("");break;default:throw new Error("dojo.date.locale.format: invalid pattern char: "+g);}if(l)k=b.string.pad(k,h);return k})}function a(d,f,j,g){var h=function(m){return m};f=f||h;j=j||h;g=g||h;var k=d.match(/(''|[^'])+/g),l=d.charAt(0)=="'";b.forEach(k,function(m,p){if(m){k[p]=(l?j:f)(m.replace(/''/g,"'"));l=!l}else k[p]=""});return g(k.join(""))}function c(d,f,j,g){g=b.regexp.escapeString(g);j.strict||(g=g.replace(" a"," ?a"));return g.replace(/([a-z])\1*/ig,
function(h){var k;k=h.charAt(0);var l=h.length,m="",p="";if(j.strict){if(l>1)m="0{"+(l-1)+"}";if(l>2)p="0{"+(l-2)+"}"}else{m="0?";p="0{0,2}"}switch(k){case "y":k="\\d{2,4}";break;case "M":k=l>2?"\\S+?":"1[0-2]|"+m+"[1-9]";break;case "D":k="[12][0-9][0-9]|3[0-5][0-9]|36[0-6]|"+p+"[1-9][0-9]|"+m+"[1-9]";break;case "d":k="3[01]|[12]\\d|"+m+"[1-9]";break;case "w":k="[1-4][0-9]|5[0-3]|"+m+"[1-9]";break;case "E":k="\\S+";break;case "h":k="1[0-2]|"+m+"[1-9]";break;case "k":k="1[01]|"+m+"\\d";break;case "H":k=
"1\\d|2[0-3]|"+m+"\\d";break;case "K":k="1\\d|2[0-4]|"+m+"[1-9]";break;case "m":case "s":k="[0-5]\\d";break;case "S":k="\\d{"+l+"}";break;case "a":l=j.am||f["dayPeriods-format-wide-am"];m=j.pm||f["dayPeriods-format-wide-pm"];k=l+"|"+m;if(!j.strict){if(l!=l.toLowerCase())k+="|"+l.toLowerCase();if(m!=m.toLowerCase())k+="|"+m.toLowerCase();if(k.indexOf(".")!=-1)k+="|"+k.replace(/\./g,"")}k=k.replace(/\./g,"\\.");break;default:k=".*"}d&&d.push(h);return"("+k+")"}).replace(/[\xa0 ]/g,"[\\s\\xa0]")}b.date.locale._getZone=
function(d,f){return f?b.date.getTimezoneName(d):d.getTimezoneOffset()};b.date.locale.format=function(d,f){f=f||{};var j=b.i18n.normalizeLocale(f.locale),g=f.formatLength||"short";j=b.date.locale._getGregorianBundle(j);var h=[];d=b.hitch(this,e,d,j,f);if(f.selector=="year")return a(j["dateFormatItem-yyyy"]||"yyyy",d);var k;if(f.selector!="date")(k=f.timePattern||j["timeFormat-"+g])&&h.push(a(k,d));if(f.selector!="time")(k=f.datePattern||j["dateFormat-"+g])&&h.push(a(k,d));return h.length==1?h[0]:
j["dateTimeFormat-"+g].replace(/\{(\d+)\}/g,function(l,m){return h[m]})};b.date.locale.regexp=function(d){return b.date.locale._parseInfo(d).regexp};b.date.locale._parseInfo=function(d){d=d||{};var f=b.i18n.normalizeLocale(d.locale);f=b.date.locale._getGregorianBundle(f);var j=d.formatLength||"short",g=d.datePattern||f["dateFormat-"+j],h=d.timePattern||f["timeFormat-"+j];j=d.selector=="date"?g:d.selector=="time"?h:f["dateTimeFormat-"+j].replace(/\{(\d+)\}/g,function(l,m){return[h,g][m]});var k=[];
return{regexp:a(j,b.hitch(this,c,k,f,d)),tokens:k,bundle:f}};b.date.locale.parse=function(d,f){var j=/[\u200E\u200F\u202A\u202E]/g,g=b.date.locale._parseInfo(f),h=g.tokens,k=g.bundle;d=(new RegExp("^"+g.regexp.replace(j,"")+"$",g.strict?"":"i")).exec(d&&d.replace(j,""));if(!d)return null;var l=["abbr","wide","narrow"],m=[1970,0,1,0,0,0,0],p="";d=b.every(d,function(o,q){if(!q)return true;q=h[q-1];var v=q.length;switch(q.charAt(0)){case "y":if(v!=2&&f.strict)m[0]=o;else if(o<100){o=Number(o);v=""+(new Date).getFullYear();
q=v.substring(0,2)*100;v=Math.min(Number(v.substring(2,4))+20,99);m[0]=o<v?q+o:q-100+o}else{if(f.strict)return false;m[0]=o}break;case "M":if(v>2){q=k["months-format-"+l[v-3]].concat();if(!f.strict){o=o.replace(".","").toLowerCase();q=b.map(q,function(s){return s.replace(".","").toLowerCase()})}o=b.indexOf(q,o);if(o==-1)return false}else o--;m[1]=o;break;case "E":case "e":q=k["days-format-"+l[v-3]].concat();if(!f.strict){o=o.toLowerCase();q=b.map(q,function(s){return s.toLowerCase()})}o=b.indexOf(q,
o);if(o==-1)return false;break;case "D":m[1]=0;case "d":m[2]=o;break;case "a":q=f.am||k["dayPeriods-format-wide-am"];v=f.pm||k["dayPeriods-format-wide-pm"];if(!f.strict){var r=/\./g;o=o.replace(r,"").toLowerCase();q=q.replace(r,"").toLowerCase();v=v.replace(r,"").toLowerCase()}if(f.strict&&o!=q&&o!=v)return false;p=o==v?"p":o==q?"a":"";break;case "K":if(o==24)o=0;case "h":case "H":case "k":if(o>23)return false;m[3]=o;break;case "m":m[4]=o;break;case "s":m[5]=o;break;case "S":m[6]=o}return true});
j=+m[3];if(p==="p"&&j<12)m[3]=j+12;else if(p==="a"&&j==12)m[3]=0;j=new Date(m[0],m[1],m[2],m[3],m[4],m[5],m[6]);f.strict&&j.setFullYear(m[0]);var n=h.join("");g=n.indexOf("d")!=-1;n=n.indexOf("M")!=-1;if(!d||n&&j.getMonth()>m[1]||g&&j.getDate()>m[2])return null;if(n&&j.getMonth()<m[1]||g&&j.getDate()<m[2])j=b.date.add(j,"hour",1);return j}})();(function(){var e=[];b.date.locale.addCustomFormats=function(a,c){e.push({pkg:a,name:c})};b.date.locale._getGregorianBundle=function(a){var c={};b.forEach(e,
function(d){d=b.i18n.getLocalization(d.pkg,d.name,a);c=b.mixin(c,d)},this);return c}})();b.date.locale.addCustomFormats("dojo.cldr","gregorian");b.date.locale.getNames=function(e,a,c,d){var f;d=b.date.locale._getGregorianBundle(d);e=[e,c,a];if(c=="standAlone"){c=e.join("-");f=d[c];if(f[0]==1)f=undefined}e[1]="format";return(f||d[e.join("-")]).concat()};b.date.locale.isWeekend=function(e,a){a=b.cldr.supplemental.getWeekend(a);e=(e||new Date).getDay();if(a.end<a.start){a.end+=7;if(e<a.start)e+=7}return e>=
a.start&&e<=a.end};b.date.locale._getDayOfYear=function(e){return b.date.difference(new Date(e.getFullYear(),0,1,e.getHours()),e)+1};b.date.locale._getWeekOfYear=function(e,a){if(arguments.length==1)a=0;var c=(new Date(e.getFullYear(),0,1)).getDay(),d=(c-a+7)%7;d=Math.floor((b.date.locale._getDayOfYear(e)+d-1)/7);c==a&&d++;return d};return b.date.locale});
define("orion/auth",["dojo","orion/globalCommands","dojo/date/locale"],function(b,e){function a(k,l,m,p){j(l.xhr,function(){var n=b.xhrGet(k);m&&n.then(m,p)})}function c(k,l){j(l.xhr,function(){b.xhrPost(k)})}function d(k,l){j(l.xhr,function(){b.xhrDelete(k)})}function f(k,l){j(l.xhr,function(){b.xhrPut(k)})}function j(k,l){if(k.status===403){if(h==null)h=new dijit.Dialog({title:"Forbidden access"});h.set("content",k.message);h.show()}if(k.status===401){var m=b.subscribe("/auth",function(){l();b.unsubscribe(m)});
if(!g){g=true;eval(k.responseText)}}}var g=false,h;b.addOnLoad(function(){window.dojo=b;window.eclipse=window.eclipse||{};eclipse.globalCommandUtils=e;b.xhrGet({url:"/auth2",handleAs:"javascript",headers:{"Orion-Version":"1"}})});return{handleGetAuthenticationError:a,handlePostAuthenticationError:c,handleDeleteAuthenticationError:d,handlePutAuthenticationError:f,handleAuthenticationError:j}});
define("orion/preferences",["dojo","orion/auth"],function(b,e){function a(g,h,k){this._name=g;this._userProvider=h;this._defaultsProvider=k;this._flushPending=false;this._defaults=this._store=null}function c(g){this.location=g;this._currentPromises={}}function d(g){this.location=g;this._currentPromise=null}function f(g,h,k){h=h||"/prefs/user";k=k||"/defaults.pref";this._userProvider=new c(h);this._defaultsProvider=new d(k);this._serviceRegistration=g.registerService("orion.core.preference",this)}
a.prototype={_flush:function(){return this._userProvider.put(this._name,this._store)},_scheduleFlush:function(){if(!this._flushPending){this._flushPending=true;window.setTimeout(b.hitch(this,function(){if(this._flushPending){this._flushPending=false;this._flush()}}),0)}},keys:function(){var g,h=[];for(g in this._store)this._store.hasOwnProperty(g)&&g.charAt(0)!=="/"&&h.push(g);for(g in this._defaults)this._defaults.hasOwnProperty(g)&&!this._store.hasOwnProperty(g)&&g.charAt(0)!=="/"&&h.push(g);return h},
get:function(g){if(g.charAt(0)==="/")throw new Error("Bad character in key name: "+g);return this._store.hasOwnProperty(g)?this._store[g]:this._defaults[g]},put:function(g,h){if(g.charAt(0)==="/")throw new Error("Bad character in key name: "+g);if(this._store[g]!==h){this._store[g]=h;this._scheduleFlush()}},remove:function(g){if(g.charAt(0)==="/")throw new Error("Bad character in key name: "+g);if(this._store[g]){delete this._store[g];this._scheduleFlush();return true}return false},clear:function(){var g;
for(g in this._store)this._store.hasOwnProperty(g)&&g.charAt(0)!=="/"&&delete this._store[g];this._scheduleFlush()},sync:function(){if(this._flushPending){this._flushPending=false;return this._flush()}return this._defaultsProvider.get(this._name).then(b.hitch(this,function(g){this._defaults=g;return this._userProvider.get(this._name).then(b.hitch(this,function(h){this._store=h}))}))},flush:function(){this._flush()}};var j={get:function(g,h){g=localStorage.getItem(g);if(g==null)return null;g=JSON.parse(g);
if(h||g._expires&&g._expires>(new Date).getTime()){delete g._expires;return g}return null},set:function(g,h){h._expires=(new Date).getTime()+36E5;var k=JSON.stringify(h);localStorage.setItem(g,k);delete h._expires}};c.prototype={get:function(g){if(this._currentPromises[g])return this._currentPromises[g];var h=new b.Deferred,k="/orion/preferences/user"+g,l=j.get(k);if(l!==null)h.resolve(l);else{this._currentPromises[g]=h;var m=this;b.xhrGet({url:this.location+g,headers:{"Orion-Version":"1"},handleAs:"json",
timeout:15E3,load:function(p){j.set(k,p);delete m._currentPromises[g];h.resolve(p)},error:function(p,n){p.log=false;if(n.xhr.status===401)e.handleGetAuthenticationError(this,n);else if(n.xhr.status===404){p={};j.set(k,p);delete m._currentPromises[g];h.resolve(p)}else{delete m._currentPromises[g];h.resolve(j.get(k,true)||{})}},failOk:true})}return h},put:function(g,h){var k=new b.Deferred;j.set("/orion/preferences/user"+g,h);b.xhrPut({url:this.location+g,putData:JSON.stringify(h),headers:{"Orion-Version":"1"},
handleAs:"json",contentType:"application/json",timeout:15E3,load:function(){k.resolve()},error:function(l,m){m.xhr.status===401?e.handlePutAuthenticationError(this,m):k.resolve()}});return k}};d.prototype={get:function(g){if(this._currentPromise)return this._currentPromise;var h=new b.Deferred,k=j.get("/orion/preferences/default");if(k!==null)h.resolve(k[g]||{});else{this._currentPromise=h;var l=this;b.xhrGet({url:this.location,headers:{"Orion-Version":"1"},handleAs:"json",timeout:15E3,load:function(m){j.set("/orion/preferences/default",
m);l._currentPromise=null;h.resolve(m[g]||{})},error:function(m,p){if(p.xhr.status===401)e.handleGetAuthenticationError(p.xhr,p);else if(p.xhr.status===404){j.set("/orion/preferences/default",{});l._currentPromise=null;h.resolve({})}else{l._currentPromise=null;m=j.get("/orion/preferences/default",true);m!==null?h.resolve(m[g]||{}):h.resolve({})}}})}return h}};f.prototype={getPreferences:function(g){var h=new a(g,this._userProvider,this._defaultsProvider);return h.sync().then(function(){return h})}};
return{Preferences:a,PreferencesService:f}});
define("dojo/DeferredList",["dojo"],function(b){b.DeferredList=function(e,a,c,d){var f=[];b.Deferred.call(this);var j=this;e.length===0&&!a&&this.resolve([0,[]]);var g=0;b.forEach(e,function(h,k){function l(m,p){f[k]=[m,p];g++;g===e.length&&j.resolve(f)}h.then(function(m){a?j.resolve([k,m]):l(true,m)},function(m){c?j.reject(m):l(false,m);if(d)return null;throw m;})})};b.DeferredList.prototype=new b.Deferred;b.DeferredList.prototype.gatherResults=function(e){e=new b.DeferredList(e,false,true,false);
e.addCallback(function(a){var c=[];b.forEach(a,function(d){c.push(d[1])});return c});return e};return b.DeferredList});
define("orion/pluginregistry",["dojo","orion/serviceregistry","dojo/DeferredList"],function(b,e){var a=a||{};a.Plugin=function(c,d,f){function j(r,s,w,u){if(!m)throw new Error("plugin not connected");var y=o++;q[String(y)]=u;f.postMessage({id:y,serviceId:r,method:s,params:w},m)}function g(r){var s={};if(r.methods)for(var w=0;w<r.methods.length;w++){var u=r.methods[w];s[u]=function(y){return function(){var E=Array.prototype.slice.call(arguments),D=new b.Deferred;l._load().then(function(){j(r.serviceId,
y,E,D)});return D.promise}}(u)}return s}function h(){var r=d.services;if(r)for(var s=0;s<r.length;s++){var w=r[s],u=g(w);v[w.serviceId]=f.registerService(w.type,u,w.properties)}}function k(r){try{if(r.method)if("plugin"===r.method){if(d){if(JSON.stringify(d)!=JSON.stringify(r.params[0])){for(var s in v)if(v.hasOwnProperty(s)){v[s].unregister();delete v[s]}d=r.params[0];h();f.updatePlugin(l)}}else{d=r.params[0];h()}if(!n){n=true;p.resolve(l)}}else if("dispatchEvent"===r.method){var w=v[r.serviceId];
w.dispatchEvent.apply(w,r.params)}else throw new Error("Bad response method: "+r.method);else{var u=q[String(r.id)];delete q[String(r.id)];r.error?u.reject(r.error):u.resolve(r.result)}}catch(y){console.log(y)}}var l=this,m=null,p=new b.Deferred,n=false,o=0,q={},v={};this.getLocation=function(){return c};this.getData=function(){return d};this.uninstall=function(){for(var r in v)if(v.hasOwnProperty(r)){v[r].unregister();delete v[r]}if(m){f.disconnect(m);m=null}f.uninstallPlugin(this)};this.getServiceReferences=
function(){var r=[],s;for(s in v)v.hasOwnProperty(s)&&r.push(v[s].getServiceReference());return r};this._load=function(r){if(!m){m=f.connect(c,k);window.setTimeout(function(){if(!n){if(!r){d={};f.updatePlugin(l)}p.reject(new Error("Load timeout for plugin: "+c))}},15E3)}return p.promise};if(typeof c!=="string")throw new Error("invalid url:"+c);d&&h()};a.PluginRegistry=function(c,d){function f(){var s,w,u=[];if((s=l["/orion/preferences/default"]?JSON.parse(l["/orion/preferences/default"]):null)&&s["/plugins"]){q=
s["/plugins"];for(w in q)if(q.hasOwnProperty(w)){w=h(w);s="plugin."+w;if(l[s]){s=JSON.parse(l[s]);s=new a.Plugin(w,s,r);m.push(s)}else u.push(k.installPlugin(w))}}(v=l["/orion/preferences/user/plugins"]?JSON.parse(l["/orion/preferences/user/plugins"]):null)||(v={});for(w in v)if(v.hasOwnProperty(w)&&w!=="_expires"){w=h(w);s="plugin."+w;if(l[s]){s=JSON.parse(l[s]);s=new a.Plugin(w,s,r);m.push(s)}else u.push(k.installPlugin(w))}o=new b.DeferredList(u)}function j(s){var w;l["plugin."+s.getLocation()]=
JSON.stringify(s.getData());for(w in q)if(q.hasOwnProperty(w))if(s.getLocation()===h(w))return;for(w in v)if(v.hasOwnProperty(w))if(s.getLocation()===h(w))return;v[s.getLocation()]=true;l["/orion/preferences/user/plugins"]=JSON.stringify(v)}function g(s){var w;delete l["plugin."+s.getLocation()];for(w in v)if(v.hasOwnProperty(w))if(s.getLocation()===h(w)){delete v[s.getLocation()];l["/orion/preferences/user/plugins"]=JSON.stringify(v);return}}function h(s){if(s.indexOf("://")===-1){var w=document.createElement("a");
w.href=s;return w.href}return s}var k=this,l=d||localStorage||{},m=[],p=[],n=new e.EventTarget,o,q={},v;window.addEventListener("message",function(s){for(var w=0,u=s.source;w<p.length;w++)if(u===p[w].target){p[w].handler(JSON.parse(s.data));break}},false);var r={registerService:b.hitch(c,c.registerService),connect:function(s,w){var u=document.createElement("iframe");u.id=s;u.name=s;u.style.display="none";u.style.visibility="hidden";u.src=s;document.body.appendChild(u);s={iframe:u,target:u.contentWindow,
handler:w,url:s};p.push(s);return s},disconnect:function(s){for(var w=0;w<p.length;w++)if(s===p[w]){p.splice(w,1);try{document.body.removeChild(s.iframe)}catch(u){}break}},uninstallPlugin:function(s){g(s);for(var w=0;w<m.length;w++)if(s===m[w]){m.splice(w,1);n.dispatchEvent("pluginRemoved",s);break}},updatePlugin:function(s){l["plugin."+s.getLocation()]=JSON.stringify(s.getData());n.dispatchEvent("pluginUpdated",s)},postMessage:function(s,w){w.target.postMessage(JSON.stringify(s),w.url)}};this.startup=
function(){return o.promise};this.shutdown=function(){for(var s=0;s<p.length;s++)try{document.body.removeChild(p[s].iframe)}catch(w){}};this.installPlugin=function(s,w){s=h(s);for(var u=new b.Deferred,y,E=0;E<m.length;E++)if(s===m[E].getLocation()){y=m[E];break}if(y)if(y.getData())u.resolve(y);else{var D=function(B){if(B.getLocation()===s){u.resolve(B);n.removeEventListener("pluginAdded",D)}};n.addEventListener("pluginAdded",D)}else{y=new a.Plugin(s,w,r);m.push(y);if(y.getData()){j(y);n.dispatchEvent("pluginAdded",
y);u.resolve(y)}else y._load(!!o).then(function(){j(y);n.dispatchEvent("pluginAdded",y);u.resolve(y)},function(B){u.reject(B)})}return u.promise};this.getPlugins=function(){for(var s=[],w=0;w<m.length;w++)m[w].getData()&&s.push(m[w]);return s};this.getPlugin=function(s){s=h(s);for(var w=0;w<m.length;w++)if(m[w].getData()&&s===m[w].getLocation())return m[w];return null};this.addEventListener=function(s,w){n.addEventListener(s,w)};this.removeEventListener=function(s,w){n.removeEventListener(s,w)};f()};
return a});
define("orion/status",["dojo"],function(b){function e(a,c,d){this._serviceRegistry=a;this._serviceRegistration=a.registerService("orion.page.message",this);this.domId=c;this.progressDomId=d||c}e.prototype={setMessage:function(a,c){b.place(window.document.createTextNode(a),this.domId,"only");if(typeof c==="number"){var d=this;window.setTimeout(function(){var f=b.byId(d.domId);(typeof f.textContent==="string"?f.textContent:f.innerText)===a&&b.place(window.document.createTextNode(""),d.domId,"only")},
c)}},setErrorMessage:function(a){var c=a.responseText||a;try{c=JSON.parse(c)}catch(d){}a=c.Message||c;var f="red";if(c.Severity)switch(c.Severity){case "Warning":f="#FFCC00";break;case "Error":f="red";break;case "Info":case "Ok":f="green";break}c=b.create("span",{style:{color:f}});b.place(window.document.createTextNode(a),c);b.place(c,this.domId,"only")},setProgressMessage:function(a){b.place(window.document.createTextNode(a),this.progressDomId,"only")},setProgressResult:function(a){a=a.responseText||
a;try{a=JSON.parse(a)}catch(c){}var d=a.Message||a,f="/images/info.gif",j="info";if(a.Severity)switch(a.Severity){case "Warning":f="/images/warning.gif";j="warning";break;case "Error":f="/images/error.gif";j="error";break}var g=new Image;g.alt=j;g.title="Press to clear message";g.name=j;g.src=f;b.style(g,"opacity","0.7");b.connect(g,"onmouseover",this,function(){b.style(g,"opacity","1")});b.connect(g,"onmouseout",this,function(){b.style(g,"opacity","0.7")});b.connect(g,"onclick",this,function(){this.setProgressMessage("")});
b.place(g,this.progressDomId,"only");a.HTML?b.place(d,this.progressDomId,"last"):b.place(window.document.createTextNode("   "+d),this.progressDomId,"last")},showWhile:function(a,c){var d=this;d.setProgressMessage(c);return a.then(function(f){if(f&&f.Location&&f.Message&&f.Running)return d._doProgressWhile(f);d.setProgressMessage("");f&&f.Result&&d.setProgressResult(f.Result);return f})},_doProgressWhile:function(a){var c=new b.Deferred;window.setTimeout(function(){b.xhrGet({url:a.Location,headers:{"Orion-Version":"1"},
handleAs:"json",timeout:15E3,load:function(d){c.callback(d)}})},2E3);return this.showWhile(c,a.Message)}};e.prototype.constructor=e;return{StatusReportingService:e}});define("orion/dialogs",[],function(){function b(e){this._serviceRegistry=e;this._serviceRegistration=e.registerService("orion.page.dialog",this)}b.prototype={confirm:function(e,a){a(window.confirm(e))},openFiles:function(){}};b.prototype.constructor=b;return{DialogService:b}});
define("orion/users",[],function(){function b(e){this._serviceRegistry=e;this._serviceRegistration=e.registerService("IUsers",this);this._user=null}b.prototype={setUser:function(e){this._user=e},getUser:function(e){e(this._user)}};return{UserService:b}});
define("orion/selection",["dojo"],function(b){function e(a){this._serviceRegistry=a;this._serviceRegistration=a.registerService("orion.page.selection",this);this._selections=[]}e.prototype={getSelection:function(a){a(this._getSingleSelection())},getSelections:function(a){a(this._selections)},_getSingleSelection:function(){if(this._selections&&this._selections.length>0)return this._selections[0];return null},setSelections:function(a){this._selections=b.isArray(a)?a:a?[a]:null;this._serviceRegistration.dispatchEvent("selectionChanged",
this._getSingleSelection(),this._selections)}};e.prototype.constructor=e;return{Selection:e}});
define("orion/fileClient",["dojo","orion/auth"],function(b,e){function a(c){this.fileService=c}a.prototype={setFileService:function(c){this.fileService=c},fetchChildren:function(){return this._doServiceCall("fetchChildren",arguments)},createWorkspace:function(){return this._doServiceCall("createWorkspace",arguments)},loadWorkspaces:function(){return this._doServiceCall("loadWorkspaces",arguments)},loadWorkspace:function(){return this._doServiceCall("loadWorkspace",arguments)},createProject:function(){return this._doServiceCall("createProject",
arguments)},createFolder:function(){return this._doServiceCall("createFolder",arguments)},createFile:function(){return this._doServiceCall("createFile",arguments)},deleteFile:function(){return this._doServiceCall("deleteFile",arguments)},moveFile:function(){return this._doServiceCall("moveFile",arguments)},copyFile:function(){return this._doServiceCall("copyFile",arguments)},read:function(){return this._doServiceCall("read",arguments)},write:function(){return this._doServiceCall("write",arguments)},
remoteImport:function(){return this._doServiceCall("remoteImport",arguments)},remoteExport:function(){return this._doServiceCall("remoteExport",arguments)},_doServiceCall:function(c,d){var f=new b.Deferred,j=this.fileService;j[c].apply(j,d).then(function(g){f.callback(g)},function(g){g.status===401||g.status===403?e.handleAuthenticationError(g,function(){j[c].apply(j,d).then(function(h){f.callback(h)},function(h){f.errback(h)})}):f.errback(g)});return f}};a.prototype.constructor=a;return{FileClient:a}});
define("dojo/cookie",["dojo","dojo/regexp"],function(b){b.cookie=function(e,a,c){var d=document.cookie;if(arguments.length==1){var f=d.match(new RegExp("(?:^|; )"+b.regexp.escapeString(e)+"=([^;]*)"));return f?decodeURIComponent(f[1]):undefined}else{c=c||{};d=c.expires;if(typeof d=="number"){var j=new Date;j.setTime(j.getTime()+d*24*60*60*1E3);d=c.expires=j}if(d&&d.toUTCString)c.expires=d.toUTCString();a=encodeURIComponent(a);d=e+"="+a;for(f in c){d+="; "+f;j=c[f];if(j!==true)d+="="+j}document.cookie=
d}};b.cookie.isSupported=function(){if(!("cookieEnabled"in navigator)){this("__djCookieTest__","CookiesAllowed");navigator.cookieEnabled=this("__djCookieTest__")=="CookiesAllowed";navigator.cookieEnabled&&this("__djCookieTest__","",{expires:-1})}return navigator.cookieEnabled};return b.cookie});
define("dijit/layout/BorderContainer",["dojo","dijit","dijit/layout/_LayoutWidget","dojo/cookie","dijit/_Templated"],function(b,e){b.declare("dijit.layout.BorderContainer",e.layout._LayoutWidget,{design:"headline",gutters:true,liveSplitters:true,persist:false,baseClass:"dijitBorderContainer",_splitterClass:"dijit.layout._Splitter",postMixInProperties:function(){this.gutters||(this.baseClass+="NoGutter");this.inherited(arguments)},startup:function(){if(!this._started){b.forEach(this.getChildren(),
this._setupChild,this);this.inherited(arguments)}},_setupChild:function(a){var c=a.region;if(c){this.inherited(arguments);b.addClass(a.domNode,this.baseClass+"Pane");var d=this.isLeftToRight();if(c=="leading")c=d?"left":"right";if(c=="trailing")c=d?"right":"left";if(c!="center"&&(a.splitter||this.gutters)&&!a._splitterWidget){var f=b.getObject(a.splitter?this._splitterClass:"dijit.layout._Gutter");d=new f({id:a.id+"_splitter",container:this,child:a,region:c,live:this.liveSplitters});d.isSplitter=
true;a._splitterWidget=d;b.place(d.domNode,a.domNode,"after");d.startup()}a.region=c}},layout:function(){this._layoutChildren()},addChild:function(){this.inherited(arguments);this._started&&this.layout()},removeChild:function(a){var c=a.region,d=a._splitterWidget;if(d){d.destroy();delete a._splitterWidget}this.inherited(arguments);this._started&&this._layoutChildren();b.removeClass(a.domNode,this.baseClass+"Pane");b.style(a.domNode,{top:"auto",bottom:"auto",left:"auto",right:"auto",position:"static"});
b.style(a.domNode,c=="top"||c=="bottom"?"width":"height","auto")},getChildren:function(){return b.filter(this.inherited(arguments),function(a){return!a.isSplitter})},getSplitter:function(a){return b.filter(this.getChildren(),function(c){return c.region==a})[0]._splitterWidget},resize:function(){if(!this.cs||!this.pe){var a=this.domNode;this.cs=b.getComputedStyle(a);this.pe=b._getPadExtents(a,this.cs);this.pe.r=b._toPixelValue(a,this.cs.paddingRight);this.pe.b=b._toPixelValue(a,this.cs.paddingBottom);
b.style(a,"padding","0px")}this.inherited(arguments)},_layoutChildren:function(a,c){if(this._borderBox&&this._borderBox.h){var d=b.map(this.getChildren(),function(j,g){return{pane:j,weight:[j.region=="center"?Infinity:0,j.layoutPriority,(this.design=="sidebar"?1:-1)*(/top|bottom/.test(j.region)?1:-1),g]}},this);d.sort(function(j,g){j=j.weight;g=g.weight;for(var h=0;h<j.length;h++)if(j[h]!=g[h])return j[h]-g[h];return 0});var f=[];b.forEach(d,function(j){j=j.pane;f.push(j);j._splitterWidget&&f.push(j._splitterWidget)});
e.layout.layoutChildren(this.domNode,{l:this.pe.l,t:this.pe.t,w:this._borderBox.w-this.pe.w,h:this._borderBox.h-this.pe.h},f,a,c)}},destroyRecursive:function(){b.forEach(this.getChildren(),function(a){var c=a._splitterWidget;c&&c.destroy();delete a._splitterWidget});this.inherited(arguments)}});b.extend(e._Widget,{region:"",layoutPriority:0,splitter:false,minSize:0,maxSize:Infinity});b.declare("dijit.layout._Splitter",[e._Widget,e._Templated],{live:true,templateString:'<div class="dijitSplitter" dojoAttachEvent="onkeypress:_onKeyPress,onmousedown:_startDrag,onmouseenter:_onMouse,onmouseleave:_onMouse" tabIndex="0" role="separator"><div class="dijitSplitterThumb"></div></div>',
postMixInProperties:function(){this.inherited(arguments);this.horizontal=/top|bottom/.test(this.region);this._factor=/top|left/.test(this.region)?1:-1;this._cookieName=this.container.id+"_"+this.region},buildRendering:function(){this.inherited(arguments);b.addClass(this.domNode,"dijitSplitter"+(this.horizontal?"H":"V"));if(this.container.persist){var a=b.cookie(this._cookieName);if(a)this.child.domNode.style[this.horizontal?"height":"width"]=a}},_computeMaxSize:function(){var a=this.horizontal?"h":
"w",c=b.marginBox(this.child.domNode)[a],d=b.filter(this.container.getChildren(),function(f){return f.region=="center"})[0];a=b.marginBox(d.domNode)[a];return Math.min(this.child.maxSize,c+a)},_startDrag:function(a){if(!this.cover){this.cover=b.doc.createElement("div");b.addClass(this.cover,"dijitSplitterCover");b.place(this.cover,this.child.domNode,"after")}b.addClass(this.cover,"dijitSplitterCoverActive");this.fake&&b.destroy(this.fake);if(!(this._resize=this.live)){(this.fake=this.domNode.cloneNode(true)).removeAttribute("id");
b.addClass(this.domNode,"dijitSplitterShadow");b.place(this.fake,this.domNode,"after")}b.addClass(this.domNode,"dijitSplitterActive dijitSplitter"+(this.horizontal?"H":"V")+"Active");if(this.fake)b.removeClass(this.fake,"dijitSplitterHover dijitSplitter"+(this.horizontal?"H":"V")+"Hover");var c=this._factor,d=this.horizontal,f=d?"pageY":"pageX",j=a[f],g=this.domNode.style;d=d?"h":"w";var h=b.marginBox(this.child.domNode)[d],k=this._computeMaxSize(),l=this.child.minSize||20;d=this.region;var m=d==
"top"||d=="bottom"?"top":"left",p=parseInt(g[m],10),n=this._resize,o=b.hitch(this.container,"_layoutChildren",this.child.id);d=b.doc;this._handlers=(this._handlers||[]).concat([b.connect(d,"onmousemove",this._drag=function(q,v){q=q[f]-j;var r=c*q+h,s=Math.max(Math.min(r,k),l);if(n||v)o(s);g[m]=q+p+c*(s-r)+"px"}),b.connect(d,"ondragstart",b.stopEvent),b.connect(b.body(),"onselectstart",b.stopEvent),b.connect(d,"onmouseup",this,"_stopDrag")]);b.stopEvent(a)},_onMouse:function(a){a=a.type=="mouseover"||
a.type=="mouseenter";b.toggleClass(this.domNode,"dijitSplitterHover",a);b.toggleClass(this.domNode,"dijitSplitter"+(this.horizontal?"H":"V")+"Hover",a)},_stopDrag:function(a){try{this.cover&&b.removeClass(this.cover,"dijitSplitterCoverActive");this.fake&&b.destroy(this.fake);b.removeClass(this.domNode,"dijitSplitterActive dijitSplitter"+(this.horizontal?"H":"V")+"Active dijitSplitterShadow");this._drag(a);this._drag(a,true)}finally{this._cleanupHandlers();delete this._drag}if(this.container.persist)b.cookie(this._cookieName,
this.child.domNode.style[this.horizontal?"height":"width"],{expires:365})},_cleanupHandlers:function(){b.forEach(this._handlers,b.disconnect);delete this._handlers},_onKeyPress:function(a){this._resize=true;var c=this.horizontal,d=1,f=b.keys;switch(a.charOrCode){case c?f.UP_ARROW:f.LEFT_ARROW:d*=-1;case c?f.DOWN_ARROW:f.RIGHT_ARROW:break;default:return}c=b._getMarginSize(this.child.domNode)[c?"h":"w"]+this._factor*d;this.container._layoutChildren(this.child.id,Math.max(Math.min(c,this._computeMaxSize()),
this.child.minSize));b.stopEvent(a)},destroy:function(){this._cleanupHandlers();delete this.child;delete this.container;delete this.cover;delete this.fake;this.inherited(arguments)}});b.declare("dijit.layout._Gutter",[e._Widget,e._Templated],{templateString:'<div class="dijitGutter" role="presentation"></div>',postMixInProperties:function(){this.inherited(arguments);this.horizontal=/top|bottom/.test(this.region)},buildRendering:function(){this.inherited(arguments);b.addClass(this.domNode,"dijitGutter"+
(this.horizontal?"H":"V"))}});return e.layout.BorderContainer});
define("orion/searchClient",["dojo","dijit","orion/auth","orion/util","dijit/form/Button","dijit/layout/BorderContainer","dijit/layout/ContentPane"],function(b,e,a,c){function d(f){this.registry=f.serviceRegistry}d.prototype={search:function(f,j,g,h,k,l){b.xhrGet({url:j,handleAs:"json",headers:{Accept:"application/json","Orion-Version":"1"},sync:false,timeout:15E3,error:b.hitch(this,function(m,p){this.handleError(m,f);a.handleGetAuthenticationError(this,p,b.hitch(this,this.showSearchResult),b.hitch(this,
function(n){this.handleError(n,f)}));return m}),load:b.hitch(this,function(m){this.showSearchResult(f,j,g,h,k,l,m)})})},handleError:function(f,j){console.error(f);var g=document.createTextNode(f);b.place(g,j,"only");return f},saveSearch:function(f,j){this.registry.getService("orion.core.favorite").then(function(g){g.addFavoriteSearch(f,j)})},formatHighlight:function(f){f=f.split(/(##match|match##)/);for(var j=b.create("div"),g,h=0;h<f.length;h++){var k=f[h];if(k==="##match")g=b.create("b");else if(k===
"match##"){b.place(g,j,"last");g=null}else b.place(document.createTextNode(k),g||j,"last")}return j},showSearchResult:function(f,j,g,h,k,l,m){j=window.location.href.split("#")[0];var p=j.substring(0,j.length-window.location.pathname.length),n=false;b.empty(f);j=m.responseHeader.params.q;j=j.substring(j.indexOf("}")+1);if(m.response.numFound>0){for(var o=document.createElement("table"),q=0;q<m.response.docs.length;q++){var v=m.response.docs[q];if(!v.Directory&&v.Location!==g){var r;if(!n){n=true;if(h){r=
o.insertRow(0).insertCell(0);r.innerHTML="<h2>Search Results</h2>"}}r=o.insertRow(-1).insertCell(0);r.colspan=2;var s=document.createElement("a");b.place(document.createTextNode(v.Name),s);v.LineNumber&&b.place(document.createTextNode(" (Line "+v.LineNumber+")"),s);var w;w=j&&v.LineNumber?p+"/edit/edit.html#"+c.hashFromPosition(v.Location,null,null,v.LineNumber,v.Offset,j.length):p+"/edit/edit.html#"+v.Location;s.setAttribute("href",w);r.appendChild(s);if(!l&&m.highlighting&&m.highlighting[v.Id]&&
m.highlighting[v.Id].Text){v=m.highlighting[v.Id].Text[0];r=o.insertRow(-1).insertCell(0);r.colspan=2;b.place(this.formatHighlight(v),r,"only")}}}b.place(o,f,"last");typeof k==="function"&&k(f)}if(!n){f=b.place("<div>No matches found for </div>",f,"only");f=b.create("b",null,f,"last");b.place(document.createTextNode(j),f,"only")}}};d.prototype.constructor=d;return{Searcher:d}});
define("orion/git/gitClient",["dojo","orion/auth"],function(b,e){var a=a||{};a.GitService=function(){function c(d){if(d){this._serviceRegistry=d;this._serviceRegistration=d.registerService("orion.git.provider",this);var f=this;d.getService("orion.net.ssh").then(function(j){f._sshService=j})}}c.prototype={checkGitService:function(){},cloneGitRepository:function(d,f,j,g,h,k,l,m,p){var n={};if(d)n.Name=d;if(j)n.Path=j;if(f)n.GitUrl=f;n.Location=g;if(h)n.GitSshUsername=h;if(k)n.GitSshPassword=k;if(l)n.GitSshKnownHost=
l;if(m)n.GitSshPrivateKey=m;if(p)n.GitSshPassphrase=p;return b.xhrPost({url:"/gitapi/clone/",headers:{"Orion-Version":"1"},postData:b.toJson(n),handleAs:"json",timeout:15E3,load:function(o){return o},error:function(o,q){e.handleGetAuthenticationError(this,q);console.error("HTTP status code: ",q.xhr.status);return o}})},initGitRepository:function(){console.error("Not implemented yet")},removeGitRepository:function(d){return b.xhrDelete({url:d,headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,
load:function(f){return f},error:function(f,j){e.handleGetAuthenticationError(this,j);console.error("HTTP status code: ",j.xhr.status);return f}})},getDiffContent:function(d,f,j){var g=this;b.xhrGet({url:d,headers:{"Orion-Version":"1"},content:{parts:"diff"},handleAs:"text",timeout:15E3,load:function(h,k){if(f)typeof f==="function"?f(h,k):g._serviceRegistration.dispatchEvent(f,h)},error:function(h,k){j&&j(h,k);e.handleGetAuthenticationError(this,k);return h}})},getDiffFileURI:function(d,f,j){b.xhrGet({url:d,
headers:{"Orion-Version":"1"},content:{parts:"uris"},handleAs:"json",timeout:15E3,load:function(g,h){if(f)typeof f==="function"?f(g,h):service._serviceRegistration.dispatchEvent(f,g)},error:function(g,h){j&&j(g,h);e.handleGetAuthenticationError(this,h);return g}})},getGitStatus:function(d,f,j){b.xhrGet({url:d,headers:{"Orion-Version":"1"},handleAs:"json",timeout:15E3,load:function(g,h){if(f)typeof f==="function"?f(g,h):service._serviceRegistration.dispatchEvent(f,g)},error:function(g,h){j&&j(g,h);
e.handleGetAuthenticationError(this,h);return g}})},stage:function(d,f,j){return b.xhrPut({url:d,headers:{"Orion-Version":"1"},handleAs:"json",timeout:15E3,load:function(g,h){if(f)typeof f==="function"?f(g,h):service._serviceRegistration.dispatchEvent(f,g)},error:function(g,h){j&&j(g,h);e.handleGetAuthenticationError(this,h);return g}})},unstageAll:function(d,f,j,g){return b.xhrPost({url:d,headers:{"Orion-Version":"1"},handleAs:"json",timeout:15E3,postData:b.toJson({Reset:f}),load:function(h,k){if(j)typeof j===
"function"?j(h,k):service._serviceRegistration.dispatchEvent(j,h)},error:function(h,k){g&&g(h,k);e.handleGetAuthenticationError(this,k);return h}})},unstage:function(d,f,j,g){return b.xhrPost({url:d,headers:{"Orion-Version":"1"},handleAs:"json",timeout:15E3,postData:b.toJson({Path:f}),load:function(h,k){if(j)typeof j==="function"?j(h,k):service._serviceRegistration.dispatchEvent(j,h)},error:function(h,k){g&&g(h,k);e.handleGetAuthenticationError(this,k);return h}})},checkoutPath:function(d,f,j,g){return b.xhrPut({url:d,
headers:{"Orion-Version":"1"},putData:b.toJson({Path:f}),handleAs:"json",timeout:15E3,load:function(h,k){if(j)typeof j==="function"?j(h,k):service._serviceRegistration.dispatchEvent(j,h)},error:function(h,k){g&&g(h,k);handleGetAuthenticationError(this,k);return h}})},commitAll:function(d,f,j,g,h){b.xhrPost({url:d,headers:{"Orion-Version":"1"},handleAs:"json",timeout:15E3,postData:j,load:function(k,l){if(g)typeof g==="function"?g(k,l):service._serviceRegistration.dispatchEvent(g,k)},error:function(k,
l){h&&h(k,l);e.handleGetAuthenticationError(this,l);return k}})},getGitClone:function(d,f){var j=this;return b.xhrGet({url:d,headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(g,h){if(f)typeof f==="function"?f(g,h):j._serviceRegistration.dispatchEvent(f,g)},error:function(g,h){e.handleGetAuthenticationError(this,h);console.error("HTTP status code: ",h.xhr.status)}})},getGitCloneConfig:function(d){return b.xhrGet({url:d,headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,
load:function(f){return f},error:function(f,j){e.handleGetAuthenticationError(this,j);console.error("HTTP status code: ",j.xhr.status)}})},getGitBranch:function(d){return b.xhrGet({url:d,headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(f){return f},error:function(f,j){e.handleGetAuthenticationError(this,j);console.error("HTTP status code: ",j.xhr.status)}})},getGitRemote:function(d){return b.xhrGet({url:d,headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(f){return f},
error:function(f,j){e.handleGetAuthenticationError(this,j);console.error("HTTP status code: ",j.xhr.status)}})},checkoutBranch:function(d,f){return b.xhrPut({url:d,headers:{"Orion-Version":"1"},putData:b.toJson({Branch:f}),handleAs:"json",timeout:5E3,load:function(j){return j},error:function(j,g){e.handleGetAuthenticationError(this,g);console.error("HTTP status code: ",g.xhr.status);return j}})},resetIndex:function(d,f){return b.xhrPost({url:d,headers:{"Orion-Version":"1"},postData:b.toJson({Commit:f,
Reset:"HARD"}),handleAs:"json",timeout:5E3,load:function(j){return j},error:function(j,g){e.handleGetAuthenticationError(this,g);console.error("HTTP status code: ",g.xhr.status)}})},addBranch:function(d,f,j){var g={};if(f)g.Name=f;if(j)g.Branch=j;return b.xhrPost({url:d,headers:{"Orion-Version":"1"},postData:b.toJson(g),handleAs:"json",timeout:5E3,load:function(h){return h},error:function(h,k){e.handleGetAuthenticationError(this,k);console.error("HTTP status code: ",k.xhr.status);return h}})},removeBranch:function(d){return b.xhrDelete({url:d,
headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(f){return f},error:function(f,j){e.handleGetAuthenticationError(this,j);console.error("HTTP status code: ",j.xhr.status);return f}})},addRemote:function(d,f,j){return b.xhrPost({url:d,headers:{"Orion-Version":"1"},putData:b.toJson({Remote:f,RemoteURI:j}),handleAs:"json",timeout:5E3,load:function(g){return g},error:function(g,h){e.handleGetAuthenticationError(this,h);console.error("HTTP status code: ",h.xhr.status);return g}})},
removeRemote:function(d){return b.xhrDelete({url:d,headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(f){return f},error:function(f,j){e.handleGetAuthenticationError(this,j);console.error("HTTP status code: ",j.xhr.status);return f}})},doGitLog:function(d,f){var j=this;return b.xhrGet({url:d,headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(g,h){if(f)typeof f==="function"?f(g.Children,h):j._serviceRegistration.dispatchEvent(f,g.Children);return g.Children},
error:function(g,h){e.handleGetAuthenticationError(this,h);console.error("HTTP status code: ",h.xhr.status)}})},getDiff:function(d,f,j){var g=this;b.xhrPost({url:d,headers:{"Orion-Version":"1"},postData:b.toJson({New:f}),handleAs:"json",timeout:5E3,load:function(h,k){if(j)typeof j==="function"?j(h,k,k):g._serviceRegistration.dispatchEvent(j,h)},error:function(h,k){e.handleGetAuthenticationError(this,k);console.error("HTTP status code: ",k.xhr.status)}})},doFetch:function(d,f,j,g,h,k,l){var m=this;
return b.xhrPost({url:d,headers:{"Orion-Version":"1"},postData:b.toJson({Fetch:"true",GitSshUsername:j,GitSshPassword:g,GitSshKnownHost:h,GitSshPrivateKey:k,GitSshPassphrase:l}),handleAs:"json",timeout:5E3,load:function(p,n){if(f)typeof f==="function"?f(p,n,n):m._serviceRegistration.dispatchEvent(f,p)},error:function(p,n){e.handleGetAuthenticationError(this,n);console.error("HTTP status code: ",n.xhr.status)}})},doMerge:function(d,f){return b.xhrPost({url:d,headers:{"Orion-Version":"1"},postData:b.toJson({Merge:f}),
handleAs:"json",timeout:5E3,load:function(j,g){return{jsonData:j,secondArg:g}},error:function(j,g){e.handleGetAuthenticationError(this,g);console.error("HTTP status code: ",g.xhr.status);return{error:j,ioArgs:g}}})},doPush:function(d,f,j,g,h,k,l,m){var p=this;return b.xhrPost({url:d,headers:{"Orion-Version":"1"},postData:b.toJson({PushSrcRef:f,PushTags:true,GitSshUsername:g,GitSshPassword:h,GitSshKnownHost:k,GitSshPrivateKey:l,GitSshPassphrase:m}),handleAs:"json",timeout:5E3,load:function(n,o){if(j)typeof j===
"function"?j(n,o,o):p._serviceRegistration.dispatchEvent(j,n)},error:function(n,o){e.handleGetAuthenticationError(this,o);console.error("HTTP status code: ",o.xhr.status);return n}})},getLog:function(d,f,j){var g=this;return b.xhrPost({url:d,headers:{"Orion-Version":"1"},postData:b.toJson({New:f}),handleAs:"json",timeout:5E3,load:function(h,k){return k.xhr.getResponseHeader("Location")},error:function(h,k){e.handleGetAuthenticationError(this,k);console.error("HTTP status code: ",k.xhr.status)}}).then(function(h){b.xhrGet({url:h,
headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(k,l){if(j)typeof j==="function"?j(k.Children,l):g._serviceRegistration.dispatchEvent(j,k.Children);return k.Children},error:function(k,l){e.handleGetAuthenticationError(this,l);console.error("HTTP status code: ",l.xhr.status)}})})},getDefaultRemoteBranch:function(d,f){var j=this;b.xhrGet({url:d,headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(g){return g},error:function(g,h){e.handleGetAuthenticationError(this,
h);console.error("HTTP status code: ",h.xhr.status)}}).then(function(g){if(g.Children[0]==null)return null;b.xhrGet({url:g.Children[0].Location,headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(h,k){if(f)typeof f==="function"?f(h.Children[0],k):j._serviceRegistration.dispatchEvent(f,h.Children[0]);return h},error:function(h,k){e.handleGetAuthenticationError(this,k);console.error("HTTP status code: ",k.xhr.status)}})})},doAddTag:function(d,f,j){var g=this;return b.xhrPut({url:d,
headers:{"Orion-Version":"1"},putData:b.toJson({Name:f}),handleAs:"json",timeout:5E3,load:function(h,k){if(j)typeof j==="function"?j(h,k,k):g._serviceRegistration.dispatchEvent(j,h)},error:function(h,k){e.handleGetAuthenticationError(this,k);console.error("HTTP status code: ",k.xhr.status)}})},addCloneConfigurationProperty:function(d,f,j,g,h){return b.xhrPost({url:d,headers:{"Orion-Version":"1"},postData:b.toJson({Key:f,Value:j}),handleAs:"json",timeout:15E3,load:function(k,l){if(g)typeof g==="function"?
g(k,l):service._serviceRegistration.dispatchEvent(g,k)},error:function(k,l){h&&h(k,l);e.handleGetAuthenticationError(this,l);return k}})},editCloneConfigurationProperty:function(d,f,j,g){return b.xhrPut({url:d,headers:{"Orion-Version":"1"},putData:b.toJson({Value:f}),handleAs:"json",timeout:15E3,load:function(h,k){if(j)typeof j==="function"?j(h,k):service._serviceRegistration.dispatchEvent(j,h)},error:function(h,k){g&&g(h,k);e.handleGetAuthenticationError(this,k);return h}})},deleteCloneConfigurationProperty:function(d,
f,j){return b.xhrDelete({url:d,headers:{"Orion-Version":"1"},handleAs:"json",timeout:15E3,load:function(g,h){if(f)typeof f==="function"?f(g,h):service._serviceRegistration.dispatchEvent(f,g)},error:function(g,h){j&&j(g,h);e.handleGetAuthenticationError(this,h);return g}})}};return c}();return a});
define("orion/ssh/sshTools",[],function(){var b=b||{};b.SshService=function(){function e(a){if(a){this._serviceRegistry=a;this._serviceRegistration=a.registerService("orion.net.ssh",this)}}e.prototype={_KNOWN_HOSTS:"known_hosts",addKnownHosts:function(a,c){c||(c="");var d=localStorage.getItem(c+this._KNOWN_HOSTS);if(d)d.indexOf(a)<0&&localStorage.setItem(c+this._KNOWN_HOSTS,d+"\n"+a);else localStorage.setItem(c+this._KNOWN_HOSTS,a)},clearKnownhosts:function(a){a||(a="");localStorage.removeItem(a+
this._KNOWN_HOSTS)},getKnownHosts:function(a){a||(a="");return localStorage.getItem(a+this._KNOWN_HOSTS)}};return e}();return b});
define("orion/git/git-clone-details",["dojo","orion/commands","orion/util"],function(b,e,a){var c={};c.CloneDetails=function(){function d(f){var j=f.parent;if(typeof j==="string")j=b.byId(j);if(!j)throw"no parent";if(!f.serviceRegistry)throw"no service registry";this._parent=j;this._registry=f.serviceRegistry;this._detailsPane=f.detailsPane;var g=new e.Command({name:"Add Configuration Item",image:"/images/add.gif",id:"eclipse.git.addProperty",callback:b.hitch(this,function(l,m,p){this.newProperty(l,
m,p)})}),h=new e.Command({name:"Edit",image:"/images/editing_16.gif",id:"eclipse.git.editProperty",visibleWhen:function(l){return l.Key&&l.Value&&l.Location},callback:b.hitch(this,function(l,m,p,n){this.editProperty(l,m,p,n)})}),k=new e.Command({name:"Delete",image:"/images/delete.gif",id:"eclipse.git.deleteProperty",visibleWhen:function(l){return l.Key&&l.Value&&l.Location},callback:b.hitch(this,function(l,m,p,n){this.deleteProperty(l,m,p,n)})});this._registry.getService("orion.page.command").then(function(l){l.addCommand(h,
"object");l.addCommand(k,"object");l.addCommand(g,"dom");l.registerCommandContribution("eclipse.git.editProperty",1);l.registerCommandContribution("eclipse.git.deleteProperty",2);l.registerCommandContribution("eclipse.git.addProperty",1,"configurationCommands")})}d.prototype={loadCloneDetails:function(f){this.configPath=f;if(this._detailsPane){this._detailsPane.isRightPaneOpen()||this._detailsPane.toggle();this._detailsPane.style.overflow="hidden"}var j=this;this._registry.getService("orion.git.provider").then(function(g){g.getGitCloneConfig(f).then(function(h){j.render(h)})})},
reportError:function(f){this._registry.getService("orion.page.message").then(function(j){var g=[];g.Severity="Error";var h=JSON.parse(f.responseText);g.Message=h.Message?h.Message:f.responseText;j.setProgressResult(g)})},newProperty:function(){var f=b.byId("propertyKeyNew"),j=b.byId("propertyValueNew"),g=this;a.getUserText("propertyKeyNewEditBox",f,true,"",function(h){var k=b.create("span",{id:"newKeyNode"},f.parentNode,"last");b.place(document.createTextNode(h),k,"only");a.getUserText("propertyValueNewEditBox",
j,true,"",function(l){g._registry.getService("orion.git.provider").then(function(m){m.addCloneConfigurationProperty(g.configPath,h,l).then(function(){b.hitch(g,g.loadCloneDetails)(g.configPath)},function(p){b.hitch(g,g.reportError)(p)})})},function(){f.parentNode.removeChild(k)})},function(){})},editProperty:function(f,j,g,h){var k=b.byId("propertyValue"+h),l=this._registry,m=this;b.style(k,"display","none");a.getUserText("propertyValue"+h+"EditBox",k,true,f.Value,function(p){l.getService("orion.git.provider").then(function(n){n.editCloneConfigurationProperty(f.Location,
p).then(function(){k.innerHTML=p},function(o){b.hitch(m,m.reportError)(o)})})},function(){b.style(k,"display","inline")})},deleteProperty:function(f,j,g,h){var k=b.byId("property"+h),l=this;confirm("Do you really want to delete "+f.Key+"?")&&this._registry.getService("orion.git.provider").then(function(m){m.deleteCloneConfigurationProperty(f.Location).then(function(){b.style(k,"display","none")},function(p){b.hitch(l,l.reportError)(p)})})},render:function(f){var j=b.create("table",{id:"cloneMetaTable"});
b.addClass(j,"cloneMetaTable");var g=b.create("thead",null,j);g=b.create("tr",null,g);var h=b.create("td",{colspan:2},g);b.addClass(h,"paneHeadingContainer");b.place("<span class='paneHeading'>Repository configuration</span>",h,"only");g=b.create("td",null,g);b.style(g,"textAlign","right");b.addClass(g,"paneHeadingContainer");b.place("<span id='configurationCommands' class='paneHeadingToolbar'></span>",g,"only");if(f!=null){var k;h=b.create("tbody",null,j);for(i in f.Children){g=b.create("tr");g.id=
"property"+i;k=b.create("td",{style:"padding-left: 5px; padding-right: 5px"},g,"last");b.place(document.createTextNode(f.Children[i].Key),k,"only");k=b.create("td",null,g,"last");k=b.create("span",{id:"propertyValue"+i},k,"only");b.place(document.createTextNode(f.Children[i].Value),k,"only");b.place(g,h,"last");k=b.create("td",null,g,"last");var l=b.create("span",{id:g.id+"actionsWrapper"},k,"only");b.style(l,"visibility","hidden");this._registry.getService("orion.page.command").then(function(p){p.renderCommands(l,
"object",f.Children[i],this,"image",null,i)});b.connect(g,"onmouseover",g,function(){var p=b.byId(this.id+"actionsWrapper");b.style(p,"visibility","visible")});b.connect(g,"onmouseout",g,function(){var p=b.byId(this.id+"actionsWrapper");b.style(p,"visibility","hidden")});b.place(g,h,"last")}g=b.create("tr",{id:"propertyNew"});k=b.create("td",{style:"padding-left: 5px; padding-right: 5px"},g,"last");b.create("span",{id:"propertyKeyNew",innerHTML:"&nbsp;"},k,"last");k=b.create("td",null,g,"last");b.create("span",
{id:"propertyValueNew",innerHTML:"&nbsp;"},k,"last");k=b.create("td",{innerHTML:"&nbsp;"},g,"last");b.place(g,h,"last")}b.place(j,this._parent,"only");var m=b.byId("configurationCommands");this._registry.getService("orion.page.command").then(function(p){p.renderCommands(m,"dom",this,this,"image")})}};return d}();return c});
define("orion/treetable",["dojo"],function(b){function e(a){this._init(a)}e.prototype={_init:function(a){var c=a.parent,d=this;if(typeof c==="string")c=b.byId(c);if(!c)throw"no parent";if(!a.model)throw"no tree model";if(!a.renderer)throw"no renderer";this._parent=c;this._treeModel=a.model;this._renderer=a.renderer;this._showRoot=a.showRoot===undefined?false:a.showRoot;this._indent=a.indent===undefined?16:a.indent;this._labelColumnIndex=a.labelColumnIndex===undefined?0:a.labelColumnIndex;this._id=
a.id===undefined?"treetable":a.id;this._root=this._treeModel.getRoot(function(f){if(this._showRoot){f._depth=0;this._generate([f],0)}else d._treeModel.getChildren(f,function(j){d._generate(j,0)})})},_generate:function(a,c){b.empty(this._parent);var d=document.createElement("table");d.id=this._id;this._renderer.initTable(d,this);var f=document.createElement("tbody");f.id=this._id+"tbody";this._generateChildren(a,c,f,"last");d.appendChild(f);this._parent.appendChild(d);this._rowsChanged()},_generateChildren:function(a,
c,d,f){for(var j in a){var g=document.createElement("tr");g.id=this._treeModel.getId(a[j]);g._depth=c;g._item=a[j];this._renderer.render(a[j],g);b.style(g.childNodes[this._labelColumnIndex],"paddingLeft",this._indent*c+"px");b.place(g,d,f);if(f==="after")d=g}},_rowsChanged:function(){this._renderer.rowsChanged&&this._renderer.rowsChanged()},getSelected:function(){return this._renderer.getSelected()},refresh:function(a,c,d,f,j){var g=this._treeModel.getId(a);if(g===this._id){this._removeChildRows(g);
this._generateChildren(c,0,b.byId(g+"tbody"),"last");this._rowsChanged()}else{var h=b.byId(g);if(h){h._item=a;if(h&&(d||h._expanded)){h._expanded=true;this._removeChildRows(g);if(c){this._generateChildren(c,h._depth+1,h,"after");this._rowsChanged();if(f&&j)document.images[f].src=j}else{tree=this;c=this._treeModel.getChildren(h._item,function(k){tree._generateChildren(k,h._depth+1,h,"after");tree._rowsChanged()})}}}else console.log("could not find table row "+g)}},refreshAndExpand:function(a,c,d,f){this.refresh(a,
c,true,d,f)},getItem:function(a){if(typeof a==="string"){var c=b.byId(a);if(c)return c._item}if(a._item)return a._item;return a},toggle:function(a,c,d,f){var j=b.byId(a);if(j)if(j._expanded){this.collapse(a);if(c)document.images[c].src=f}else{this.expand(a);if(c)document.images[c].src=d}},isExpanded:function(a){if(a=b.byId(a))return a._expanded;return false},expand:function(a,c,d){a=typeof a==="string"?a:this._treeModel.getId(a);var f=b.byId(a);if(f)if(!f._expanded){f._expanded=true;var j=this;this._treeModel.getChildren(f._item,
function(g){j._generateChildren(g,f._depth+1,f,"after");j._rowsChanged();c&&c.apply(this,d)})}},_removeChildRows:function(a){b.byId(this._id);var c=a===this._id,d=false,f=-1,j=[];b.query(".treeTableRow").forEach(function(k){if(!d)if(c)if(k._depth>f)j.push(k);else d=true;else if(k.id===a){c=true;f=k._depth}});for(var g in j){var h=j[g];h.parentNode.removeChild(h)}},collapse:function(a){a=typeof a==="string"?a:this._treeModel.getId(a);var c=b.byId(a);if(c)if(c._expanded){c._expanded=false;this._removeChildRows(a);
this._rowsChanged()}}};e.prototype.constructor=e;return{TableTree:e}});
define("orion/explorer",["dojo","orion/treetable"],function(b,e){var a={};a.Explorer=function(){function c(d,f,j){this.registry=d;this.renderer=j;this.selection=f;this.myTree=null}c.prototype={changedItem:function(d,f){b.hitch(this.myTree,this.myTree.refreshAndExpand)(d,f)},updateCommands:function(d){this.myTree&&b.hitch(this.myTree._renderer,this.myTree._renderer.updateCommands(d))},makeNewItemPlaceHolder:function(d,f,j){d=this.getRow(d);if(j){d=d.childNodes[j];b.place("<br><span id='"+f+"placeHolderRow'></span>",
d,"last");if(j=b.byId(f+"placeHolderRow"))return{tempNode:j,refNode:j}}if(d){b.place("<tr id='"+f+"placeHolderRow'><td id='"+f+"placeHolderCol'></td>",d,"after");j=b.byId(f+"placeHolderRow");d=b.byId(f+"placeHolderCol");if(j&&d)return{tempNode:j,refNode:d}}return null},getRow:function(d){if(d=this.model.getId(d))return b.byId(d)},createTree:function(d,f){var j=d+"innerTree",g=b.byId(j);g&&b.destroy(g);if(f)f.rootId=j;this.model=f;this.myTree=new e.TableTree({id:j,model:f,showRoot:false,parent:d,labelColumnIndex:this.checkbox?
1:0,renderer:this.renderer});this.renderer._initializeUIState()},getRootPath:function(){if(this.model&&this.model.root)return this.model.root.Location;return null},_lastHash:null,checkbox:this.checkbox||true};return c}();a.ExplorerModel=function(){function c(d,f){this.rootPath=d;this.fetchItems=f}c.prototype={destroy:function(){},getRoot:function(d){this.fetchItems(this.rootPath).then(b.hitch(this,function(f){this.root=f;d(f)}))},getChildren:function(d,f){if(d.Children)f(d.Children);else d.ChildrenLocation?
this.fetchItems(d.ChildrenLocation).then(b.hitch(this,function(j){d.Children=j;f(j)})):f([])},getId:function(d){if(d===this.root)d=this.rootId;else{d=d.Location;d=d.replace(/[^\.\:\-\_0-9A-Za-z]/g,"")}return d}};return c}();a.ExplorerFlatModel=function(){function c(d,f){this.rootPath=d;this.fetchItems=f}c.prototype=new a.ExplorerModel;c.prototype.getChildren=function(d,f){d==this.root?f(d):f([])};return c}();a.ExplorerRenderer=function(){function c(d,f){this.explorer=f;this._init(d);this._expandImgSrc=
"/images/twistie_open.gif";this._collapseImgSrc="/images/twistie_closed.gif"}c.prototype={initTable:function(d,f){this.tableTree=f;b.empty(d);b.addClass(d,"treetable");this.renderTableHeader(d)},getActionsColumn:function(d,f){b.connect(f,"onmouseover",f,function(){var h=b.byId(this.id+"actionswrapper");b.style(h,"visibility","visible")});b.connect(f,"onmouseout",f,function(){var h=b.byId(this.id+"actionswrapper");b.style(h,"visibility","hidden")});var j=document.createElement("td");j.id=f.id+"actions";
var g=document.createElement("span");g.id=f.id+"actionswrapper";j.appendChild(g);b.style(g,"visibility","hidden");this.explorer.registry.getService("orion.page.command").then(function(h){h.renderCommands(g,"object",d,this.explorer,"image")});return j},initCheckboxColumn:function(){if(this._useCheckboxSelection)return document.createElement("th")},getCheckboxColumn:function(d,f){if(this._useCheckboxSelection){d=document.createElement("td");b.addClass(d,"secondaryColumn");var j=document.createElement("input");
b.style(j,"verticalAlign","middle");j.type="checkbox";j.id=f.id+"selectedState";b.addClass(j,"selectionCheckmark");j.itemId=f.id;d.appendChild(j);b.connect(j,"onclick",b.hitch(this,function(g){b.toggleClass(f,"checkedRow",!!g.target.checked);this._storeSelections();this.explorer.selection&&this.explorer.selection.setSelections(this.getSelected())}));return d}},_storeSelections:function(){var d=this.getSelectedIds(),f=this._getUIStatePreferencePath();if(f&&window.sessionStorage)window.sessionStorage[f+
"selection"]=JSON.stringify(d)},_restoreSelections:function(d){d=window.sessionStorage[d+"selection"];if(typeof d==="string")d=d.length>0?JSON.parse(d):null;var f;if(d)for(f=0;f<d.length;f++){var j=b.byId(d[f]);if(j){b.addClass(j,"checkedRow");if(j=b.byId(j.id+"selectedState"))j.checked=true}}d=this.getSelected();this.explorer.selection&&this.explorer.selection.setSelections(d)},_storeExpansions:function(d){window.sessionStorage[d+"expanded"]=JSON.stringify(this._expanded)},_restoreExpansions:function(d){var f=
false,j=window.sessionStorage[d+"expanded"];if(typeof j==="string")j=j.length>0?JSON.parse(j):null;var g;if(j)for(g=0;g<j.length;g++)if(b.byId(j[g])){this._expanded.push(j[g]);this.tableTree.expand(j[g],b.hitch(this,function(){this._restoreSelections(d)}));f=true}return!f},_getUIStatePreferencePath:function(){if(this.explorer){var d=this.explorer.getRootPath();if(this._cachePrefix&&d)return"/"+this._cachePrefix+"/"+d.replace(/[^\.\:\-\_0-9A-Za-z]/g,"")+"/uiState"}return null},expandCollapseImageId:function(d){return d+
"__expand"},getExpandImage:function(d,f,j){var g=b.create("img",{style:"vertical-align: middle;",src:this._collapseImgSrc,name:this.expandCollapseImageId(d.id)},f,"last");b.create("img",{style:"vertical-align: middle; margin-right: 4px",src:j?j:"/images/folder.gif"},f,"last");g.onclick=b.hitch(this,function(){this.tableTree.toggle(d.id,this.expandCollapseImageId(d.id),this._expandImgSrc,this._collapseImgSrc);if(this.tableTree.isExpanded(d.id))this._expanded.push(d.id);else for(var h in this._expanded)if(this._expanded[h]===
d.id){this._expanded.splice(h,1);break}(h=this._getUIStatePreferencePath())&&window.sessionStorage&&this._storeExpansions(h)});return g},render:function(d,f){f.cellSpacing="8px";this.renderRow(d,f)},getSelected:function(){var d=[];b.query(".selectionCheckmark").forEach(b.hitch(this,function(f){f.checked&&d.push(this.tableTree.getItem(f.parentNode.parentNode))}));return d},getSelectedIds:function(){var d=[];b.query(".selectionCheckmark").forEach(b.hitch(this,function(f){f.checked&&d.push(f.parentNode.parentNode.id)}));
return d},rowsChanged:function(){b.query(".treeTableRow").forEach(function(d,f){if(f%2){b.addClass(d,"darkTreeTableRow");b.removeClass(d,"lightTreeTableRow")}else{b.addClass(d,"lightTreeTableRow");b.removeClass(d,"darkTreeTableRow")}});this.explorer.selection&&this.explorer.selection.setSelections(this.getSelected())},updateCommands:function(){var d=this.explorer.registry;b.query(".treeTableRow").forEach(function(f){var j=b.byId(f.id+"actionswrapper");b.empty(j);d.getService("orion.page.command").then(function(g){g.renderCommands(j,
"object",f._item,this.explorer,"image")})})},_init:function(d){if(d){this._useCheckboxSelection=d.checkbox===undefined?false:d.checkbox;this._colums=d.colums||[];this._cachePrefix=d.cachePrefix}},_initializeUIState:function(){this._expanded=[];var d=this._getUIStatePreferencePath();d&&window.sessionStorage&&this._restoreExpansions(d)&&this._restoreSelections(d)}};return c}();a.SelectionRenderer=function(){function c(d,f){this._init(d);this.explorer=f}c.prototype=new a.ExplorerRenderer;c.prototype.renderTableHeader=
function(d){var f=document.createElement("thead"),j=document.createElement("tr");b.addClass(f,"navTableHeading");this._useCheckboxSelection&&j.appendChild(this.initCheckboxColumn(d));for(var g=0,h=this.getCellHeaderElement(g);h;){b.addClass(h,"navColumn");j.appendChild(h);h=this.getCellHeaderElement(++g)}f.appendChild(j);d.appendChild(f)};c.prototype.renderRow=function(d,f){b.style(f,"verticalAlign","baseline");b.addClass(f,"treeTableRow");var j=this.getCheckboxColumn(d,f);j&&f.appendChild(j);j=0;
for(var g=this.getCellElement(j,d,f);g;){f.appendChild(g);b.addClass(g,"secondaryColumn");g=this.getCellElement(++j,d,f)}};c.prototype.getCellHeaderElement=function(){};c.prototype.getCellElement=function(){};return c}();return a});
define("orion/git/git-clones-explorer",["dojo","orion/explorer","orion/util"],function(b,e,a){var c={};c.GitClonesExplorer=function(){function d(f,j,g,h,k,l){this.parentId=h;this.registry=f;this.selection=j;this.toolbarId=k;this.selectionToolsId=l;this.cloneDetails=g;this.checkbox=false;this.renderer=new c.GitClonesRenderer({checkbox:false},this)}d.prototype=e.Explorer.prototype;d.prototype.getGitLocation=function(f){f=a.makeRelative(f);return f[0]==="/"?"/gitapi/clone"+f:"/gitapi/clone/"+f};d.prototype.setDefaultPath=
function(f){this.defaultPath=f};d.prototype.displayClonesList=function(f){var j=this;f=f||this.defaultPath;f=a.makeRelative(f);if(f!==this._lastHash){this._lastHash=f;b.hash(f,true);var g=this.getGitLocation(f);b.create("div",null,b.byId(this.parentId),"only").innerHTML="Loading <b>"+g+"</b>...";this.registry.getService("orion.git.provider").then(function(h){b.hitch(j,j.createTree(j.parentId,new c.GitClonesModel(h,g,h.getGitClone)))})}};d.prototype.redisplayClonesList=function(){if(this._lastHash){var f=
this,j=this.getGitLocation(this._lastHash);b.create("div",null,b.byId(this.parentId),"only").innerHTML="Loading <b>"+j+"</b>...";this.registry.getService("orion.git.provider").then(function(g){b.hitch(f,f.createTree(f.parentId,new c.GitClonesModel(g,j,g.getGitClone)))})}};d.prototype.loadCloneDetails=function(f){this.cloneDetails.loadCloneDetails(f.ConfigLocation)};return d}();c.GitClonesModel=function(){function d(f,j,g,h){this.gitClient=f;this.rootPath=j;this.fetchItems=g;this.root=h?h:null}d.prototype=
e.ExplorerModel.prototype;d.prototype.getRoot=function(f){this.root?f(this.root):this.fetchItems(this.rootPath).then(b.hitch(this,function(j){this.root=j;f(j)}))};d.prototype.mayHaveChildren=function(f){if(f.children||f.Children)return true;else if(f.BranchLocation&&f.RemoteLocation)return true;else if(f.GroupNode)return true;else if(f.Type==="Remote")return true;return false};d.prototype.getIdentity=function(f){if(f.Location){f=f.Location;f=f.replace(/[^\.\:\-\_0-9A-Za-z]/g,"")}else f="ROOT";return f};
d.prototype.getChildren=function(f,j){f.children=[];if(f.Children){for(var g=0;g<f.Children.length;g++){f.Children[g].parent=f;f.children[g]=f.Children[g]}j(f.Children)}else if(f.BranchLocation&&f.RemoteLocation){f.children=[{GroupNode:"true",Location:f.BranchLocation,Name:"Branch",parent:f},{GroupNode:"true",Location:f.RemoteLocation,Name:"Remote",parent:f}];j(f.children)}else if(f.GroupNode)this.gitClient.getGitBranch(f.Location).then(b.hitch(this,function(h){f.children=h.Children;for(var k=0;k<
h.Children.length;k++)h.Children[k].parent=f;j(h.Children)}));else f.Type==="Remote"&&this.gitClient.getGitBranch(f.Location).then(b.hitch(this,function(h){f.children=h.Children;for(var k=0;k<h.Children.length;k++)h.Children[k].parent=f;j(h.Children)}))};return d}();c.GitClonesRenderer=function(){function d(f,j){this._init(f);this.explorer=j}d.prototype=e.SelectionRenderer.prototype;d.prototype.getCellHeaderElement=function(f){switch(f){case 0:return b.create("th",{innerHTML:"<h2>Name</h2>"});case 1:return b.create("th",
{innerHTML:"<h2>Actions</h2>"})}};d.prototype.getCellElement=function(f,j,g){switch(f){case 0:var h,k;if(j.BranchLocation&&j.RemoteLocation){h=document.createElement("td");f=g.id+"__expand";f=b.create("div",null,h,"only");this.getExpandImage(g,f,"/git/images/repository.gif");k=b.create("a",{className:"navlinkonpage"},f,"last");b.connect(k,"onclick",k,b.hitch(this,function(){this.explorer.loadCloneDetails(j)}));b.connect(k,"onmouseover",k,function(){k.style.cursor="pointer"});b.connect(k,"onmouseout",
k,function(){k.style.cursor="default"});b.place(document.createTextNode(j.Name),k,"only")}else if(j.GroupNode){h=document.createElement("td");f=g.id+"__expand";f=b.create("div",null,h,"only");this.getExpandImage(g,f,j.Name==="Branch"?"/git/images/branches.gif":"/git/images/remotes.gif");k=b.create("a",{innerHTML:j.Name,className:"navlinkonpage"},f,"last");b.place(document.createTextNode(j.Name),k,"only")}else if(j.Type==="Branch"){h=document.createElement("td");f=b.create("div",{style:"margin-left: 10px"},
h,"only");k=b.create("a",{innerHTML:j.Name,className:"navlinkonpage"},f,"last");if(j.Current)k.style.fontWeight="bold";b.place(document.createTextNode(j.Name),k,"only");b.create("img",{src:"/git/images/branch.gif",style:"vertical-align: middle; margin-right: 4px"},k,"first")}else if(j.Type==="Remote"){h=document.createElement("td");f=g.id+"__expand";f=b.create("div",null,h,"only");this.getExpandImage(g,f,"/git/images/remote.gif");k=b.create("a",{innerHTML:j.Name,className:"navlinkonpage"},f,"last");
b.place(document.createTextNode(j.Name),k,"only")}else if(j.Type==="RemoteTrackingBranch"){h=document.createElement("td");f=b.create("div",{style:"margin-left: 10px"},h,"only");k=b.create("a",{innerHTML:j.Name,className:"navlinkonpage"},f,"last");b.place(document.createTextNode(j.Name),k,"only");b.create("img",{src:"/git/images/branch.gif",style:"vertical-align: middle; margin-right: 4px"},k,"first")}return h;case 1:return this.getActionsColumn(j,g)}};return d}();return c});
define("orion/widgets/_OrionDialogMixin",["dojo","dijit"],function(b,e){b.declare("orion.widgets._OrionDialogMixin",null,{postMixInProperties:function(){this.inherited(arguments);this.title=this.options.title||"Information Needed";this.buttonCancel="Cancel"},postCreate:function(){this.inherited(arguments);b.connect(this,"onKeyPress",b.hitch(this,function(a){a.keyCode===b.keys.ENTER&&this._onSubmit()}))},onHide:function(){this.inherited(arguments);setTimeout(b.hitch(this,function(){if(b.isDescendant(e._curFocus,
this.domNode))e._curFocus=null;if(b.isDescendant(e._prevFocus,this.domNode))e._prevFocus=null;this.destroyRecursive()}),this.duration)}})});define("text!dijit/templates/TreeNode.html",function(){return'<div class="dijitTreeNode" role="presentation"\n\t><div dojoAttachPoint="rowNode" class="dijitTreeRow" role="presentation" dojoAttachEvent="onmouseenter:_onMouseEnter, onmouseleave:_onMouseLeave, onclick:_onClick, ondblclick:_onDblClick"\n\t\t><img src="${_blankGif}" alt="" dojoAttachPoint="expandoNode" class="dijitTreeExpando" role="presentation"\n\t\t/><span dojoAttachPoint="expandoNodeText" class="dijitExpandoText" role="presentation"\n\t\t></span\n\t\t><span dojoAttachPoint="contentNode"\n\t\t\tclass="dijitTreeContent" role="presentation">\n\t\t\t<img src="${_blankGif}" alt="" dojoAttachPoint="iconNode" class="dijitIcon dijitTreeIcon" role="presentation"\n\t\t\t/><span dojoAttachPoint="labelNode" class="dijitTreeLabel" role="treeitem" tabindex="-1" aria-selected="false" dojoAttachEvent="onfocus:_onLabelFocus"></span>\n\t\t</span\n\t></div>\n\t<div dojoAttachPoint="containerNode" class="dijitTreeContainer" role="presentation" style="display: none;"></div>\n</div>'});
define("text!dijit/templates/Tree.html",function(){return'<div class="dijitTree dijitTreeContainer" role="tree"\n\tdojoAttachEvent="onkeypress:_onKeyPress">\n\t<div class="dijitInline dijitTreeIndent" style="position: absolute; top: -9999px" dojoAttachPoint="indentDetector"></div>\n</div>'});
define("dijit/tree/TreeStoreModel",["dojo","dijit"],function(b,e){b.declare("dijit.tree.TreeStoreModel",null,{store:null,childrenAttrs:["children"],newItemIdAttr:"id",labelAttr:"",root:null,query:null,deferItemLoadingUntilExpand:false,constructor:function(a){b.mixin(this,a);this.connects=[];a=this.store;if(!a.getFeatures()["dojo.data.api.Identity"])throw new Error("dijit.Tree: store must support dojo.data.Identity");if(a.getFeatures()["dojo.data.api.Notification"])this.connects=this.connects.concat([b.connect(a,
"onNew",this,"onNewItem"),b.connect(a,"onDelete",this,"onDeleteItem"),b.connect(a,"onSet",this,"onSetItem")])},destroy:function(){b.forEach(this.connects,b.disconnect)},getRoot:function(a,c){this.root?a(this.root):this.store.fetch({query:this.query,onComplete:b.hitch(this,function(d){if(d.length!=1)throw new Error(this.declaredClass+": query "+b.toJson(this.query)+" returned "+d.length+" items, but must return exactly one item");this.root=d[0];a(this.root)}),onError:c})},mayHaveChildren:function(a){return b.some(this.childrenAttrs,
function(c){return this.store.hasAttribute(a,c)},this)},getChildren:function(a,c,d){var f=this.store;if(f.isItemLoaded(a)){for(var j=[],g=0;g<this.childrenAttrs.length;g++){var h=f.getValues(a,this.childrenAttrs[g]);j=j.concat(h)}var k=0;this.deferItemLoadingUntilExpand||b.forEach(j,function(m){f.isItemLoaded(m)||k++});k==0?c(j):b.forEach(j,function(m,p){f.isItemLoaded(m)||f.loadItem({item:m,onItem:function(n){j[p]=n;--k==0&&c(j)},onError:d})})}else{var l=b.hitch(this,arguments.callee);f.loadItem({item:a,
onItem:function(m){l(m,c,d)},onError:d})}},isItem:function(a){return this.store.isItem(a)},fetchItemByIdentity:function(a){this.store.fetchItemByIdentity(a)},getIdentity:function(a){return this.store.getIdentity(a)},getLabel:function(a){return this.labelAttr?this.store.getValue(a,this.labelAttr):this.store.getLabel(a)},newItem:function(a,c,d){var f={parent:c,attribute:this.childrenAttrs[0]},j;if(this.newItemIdAttr&&a[this.newItemIdAttr])this.fetchItemByIdentity({identity:a[this.newItemIdAttr],scope:this,
onItem:function(g){if(g)this.pasteItem(g,null,c,true,d);else(j=this.store.newItem(a,f))&&d!=undefined&&this.pasteItem(j,c,c,false,d)}});else(j=this.store.newItem(a,f))&&d!=undefined&&this.pasteItem(j,c,c,false,d)},pasteItem:function(a,c,d,f,j){var g=this.store,h=this.childrenAttrs[0];c&&b.forEach(this.childrenAttrs,function(l){if(g.containsValue(c,l,a)){if(!f){var m=b.filter(g.getValues(c,l),function(p){return p!=a});g.setValues(c,l,m)}h=l}});if(d)if(typeof j=="number"){var k=g.getValues(d,h).slice();
k.splice(j,0,a);g.setValues(d,h,k)}else g.setValues(d,h,g.getValues(d,h).concat(a))},onChange:function(){},onChildrenChange:function(){},onDelete:function(){},onNewItem:function(a,c){c&&this.getChildren(c.item,b.hitch(this,function(d){this.onChildrenChange(c.item,d)}))},onDeleteItem:function(a){this.onDelete(a)},onSetItem:function(a,c){b.indexOf(this.childrenAttrs,c)!=-1?this.getChildren(a,b.hitch(this,function(d){this.onChildrenChange(a,d)})):this.onChange(a)}});return e.tree.TreeStoreModel});
define("dijit/tree/ForestStoreModel",["dojo","dijit","dijit/tree/TreeStoreModel"],function(b,e){b.declare("dijit.tree.ForestStoreModel",e.tree.TreeStoreModel,{rootId:"$root$",rootLabel:"ROOT",query:null,constructor:function(a){this.root={store:this,root:true,id:a.rootId,label:a.rootLabel,children:a.rootChildren}},mayHaveChildren:function(a){return a===this.root||this.inherited(arguments)},getChildren:function(a,c,d){if(a===this.root)this.root.children?c(this.root.children):this.store.fetch({query:this.query,
onComplete:b.hitch(this,function(f){this.root.children=f;c(f)}),onError:d});else this.inherited(arguments)},isItem:function(a){return a===this.root?true:this.inherited(arguments)},fetchItemByIdentity:function(a){if(a.identity==this.root.id){var c=a.scope?a.scope:b.global;a.onItem&&a.onItem.call(c,this.root)}else this.inherited(arguments)},getIdentity:function(a){return a===this.root?this.root.id:this.inherited(arguments)},getLabel:function(a){return a===this.root?this.root.label:this.inherited(arguments)},
newItem:function(a,c){if(c===this.root){this.onNewRootItem(a);return this.store.newItem(a)}else return this.inherited(arguments)},onNewRootItem:function(){},pasteItem:function(a,c,d,f,j){if(c===this.root)f||this.onLeaveRoot(a);e.tree.TreeStoreModel.prototype.pasteItem.call(this,a,c===this.root?null:c,d===this.root?null:d,f,j);d===this.root&&this.onAddToRoot(a)},onAddToRoot:function(a){console.log(this,": item ",a," added to root")},onLeaveRoot:function(a){console.log(this,": item ",a," removed from root")},
_requeryTop:function(){var a=this.root.children||[];this.store.fetch({query:this.query,onComplete:b.hitch(this,function(c){this.root.children=c;if(a.length!=c.length||b.some(a,function(d,f){return c[f]!=d}))this.onChildrenChange(this.root,c)})})},onNewItem:function(){this._requeryTop();this.inherited(arguments)},onDeleteItem:function(a){b.indexOf(this.root.children,a)!=-1&&this._requeryTop();this.inherited(arguments)},onSetItem:function(){this._requeryTop();this.inherited(arguments)}});return e.tree.ForestStoreModel});
define("dojo/dnd/Container",["dojo","dojo/dnd/common","dojo/parser"],function(b){b.declare("dojo.dnd.Container",null,{skipForm:false,constructor:function(e,a){this.node=b.byId(e);a||(a={});this.creator=a.creator||null;this.skipForm=a.skipForm;this.parent=a.dropParent&&b.byId(a.dropParent);this.map={};this.current=null;this.containerState="";b.addClass(this.node,"dojoDndContainer");a&&a._skipStartup||this.startup();this.events=[b.connect(this.node,"onmouseover",this,"onMouseOver"),b.connect(this.node,
"onmouseout",this,"onMouseOut"),b.connect(this.node,"ondragstart",this,"onSelectStart"),b.connect(this.node,"onselectstart",this,"onSelectStart")]},creator:function(){},getItem:function(e){return this.map[e]},setItem:function(e,a){this.map[e]=a},delItem:function(e){delete this.map[e]},forInItems:function(e,a){a=a||b.global;var c=this.map,d=b.dnd._empty;for(var f in c)f in d||e.call(a,c[f],f,this);return a},clearItems:function(){this.map={}},getAllNodes:function(){return b.query("> .dojoDndItem",this.parent)},
sync:function(){var e={};this.getAllNodes().forEach(function(a){if(a.id){var c=this.getItem(a.id);if(c){e[a.id]=c;return}}else a.id=b.dnd.getUniqueId();c=a.getAttribute("dndType");var d=a.getAttribute("dndData");e[a.id]={data:d||a.innerHTML,type:c?c.split(/\s*,\s*/):["text"]}},this);this.map=e;return this},insertNodes:function(e,a,c){if(this.parent.firstChild)if(a){if(!c)c=this.parent.firstChild}else{if(c)c=c.nextSibling}else c=null;if(c)for(a=0;a<e.length;++a){var d=this._normalizedCreator(e[a]);
this.setItem(d.node.id,{data:d.data,type:d.type});this.parent.insertBefore(d.node,c)}else for(a=0;a<e.length;++a){d=this._normalizedCreator(e[a]);this.setItem(d.node.id,{data:d.data,type:d.type});this.parent.appendChild(d.node)}return this},destroy:function(){b.forEach(this.events,b.disconnect);this.clearItems();this.node=this.parent=this.current=null},markupFactory:function(e,a){e._skipStartup=true;return new b.dnd.Container(a,e)},startup:function(){if(!this.parent){this.parent=this.node;if(this.parent.tagName.toLowerCase()==
"table"){var e=this.parent.getElementsByTagName("tbody");if(e&&e.length)this.parent=e[0]}}this.defaultCreator=b.dnd._defaultCreator(this.parent);this.sync()},onMouseOver:function(e){for(var a=e.relatedTarget;a;){if(a==this.node)break;try{a=a.parentNode}catch(c){a=null}}if(!a){this._changeState("Container","Over");this.onOverEvent()}a=this._getChildByEvent(e);if(this.current!=a){this.current&&this._removeItemClass(this.current,"Over");a&&this._addItemClass(a,"Over");this.current=a}},onMouseOut:function(e){for(e=
e.relatedTarget;e;){if(e==this.node)return;try{e=e.parentNode}catch(a){e=null}}if(this.current){this._removeItemClass(this.current,"Over");this.current=null}this._changeState("Container","");this.onOutEvent()},onSelectStart:function(e){if(!this.skipForm||!b.dnd.isFormElement(e))b.stopEvent(e)},onOverEvent:function(){},onOutEvent:function(){},_changeState:function(e,a){var c="dojoDnd"+e;e=e.toLowerCase()+"State";b.replaceClass(this.node,c+a,c+this[e]);this[e]=a},_addItemClass:function(e,a){b.addClass(e,
"dojoDndItem"+a)},_removeItemClass:function(e,a){b.removeClass(e,"dojoDndItem"+a)},_getChildByEvent:function(e){if(e=e.target)for(var a=e.parentNode;a;e=a,a=e.parentNode)if(a==this.parent&&b.hasClass(e,"dojoDndItem"))return e;return null},_normalizedCreator:function(e,a){e=(this.creator||this.defaultCreator).call(this,e,a);if(!b.isArray(e.type))e.type=["text"];if(!e.node.id)e.node.id=b.dnd.getUniqueId();b.addClass(e.node,"dojoDndItem");return e}});b.dnd._createNode=function(e){if(!e)return b.dnd._createSpan;
return function(a){return b.create(e,{innerHTML:a})}};b.dnd._createTrTd=function(e){var a=b.create("tr");b.create("td",{innerHTML:e},a);return a};b.dnd._createSpan=function(e){return b.create("span",{innerHTML:e})};b.dnd._defaultCreatorNodes={ul:"li",ol:"li",div:"div",p:"div"};b.dnd._defaultCreator=function(e){e=e.tagName.toLowerCase();var a=e=="tbody"||e=="thead"?b.dnd._createTrTd:b.dnd._createNode(b.dnd._defaultCreatorNodes[e]);return function(c,d){var f=c&&b.isObject(c),j;if(f&&c.tagName&&c.nodeType&&
c.getAttribute){j=c.getAttribute("dndData")||c.innerHTML;f=(f=c.getAttribute("dndType"))?f.split(/\s*,\s*/):["text"];c=c}else{j=f&&c.data?c.data:c;f=f&&c.type?c.type:["text"];c=(d=="avatar"?b.dnd._createSpan:a)(String(j))}if(!c.id)c.id=b.dnd.getUniqueId();return{node:c,data:j,type:f}}};return b.dnd.Container});
define("dijit/tree/_dndContainer",["dojo","dijit","dojo/dnd/common","dojo/dnd/Container"],function(b,e){b.getObject("tree",true,b);e.tree._compareNodes=function(a,c){if(a===c)return 0;if("sourceIndex"in document.documentElement)return a.sourceIndex-c.sourceIndex;else if("compareDocumentPosition"in document.documentElement)return a.compareDocumentPosition(c)&2?1:-1;else if(document.createRange){var d=doc.createRange();d.setStartBefore(a);a=doc.createRange();a.setStartBefore(c);return d.compareBoundaryPoints(d.END_TO_END,
a)}else throw Error("dijit.tree._compareNodes don't know how to compare two different nodes in this browser");};b.declare("dijit.tree._dndContainer",null,{constructor:function(a,c){this.tree=a;this.node=a.domNode;b.mixin(this,c);this.map={};this.current=null;this.containerState="";b.addClass(this.node,"dojoDndContainer");this.events=[b.connect(this.node,"onmouseenter",this,"onOverEvent"),b.connect(this.node,"onmouseleave",this,"onOutEvent"),b.connect(this.tree,"_onNodeMouseEnter",this,"onMouseOver"),
b.connect(this.tree,"_onNodeMouseLeave",this,"onMouseOut"),b.connect(this.node,"ondragstart",b,"stopEvent"),b.connect(this.node,"onselectstart",b,"stopEvent")]},getItem:function(a){return{data:this.selection[a],type:["treeNode"]}},destroy:function(){b.forEach(this.events,b.disconnect);this.node=this.parent=null},onMouseOver:function(a){this.current=a},onMouseOut:function(){this.current=null},_changeState:function(a,c){var d="dojoDnd"+a;a=a.toLowerCase()+"State";b.replaceClass(this.node,d+c,d+this[a]);
this[a]=c},_addItemClass:function(a,c){b.addClass(a,"dojoDndItem"+c)},_removeItemClass:function(a,c){b.removeClass(a,"dojoDndItem"+c)},onOverEvent:function(){this._changeState("Container","Over")},onOutEvent:function(){this._changeState("Container","")}});return e.tree._dndContainer});
define("dijit/tree/_dndSelector",["dojo","dijit","dojo/dnd/common","dijit/tree/_dndContainer"],function(b,e){b.declare("dijit.tree._dndSelector",e.tree._dndContainer,{constructor:function(){this.selection={};this.anchor=null;e.setWaiState(this.tree.domNode,"multiselect",!this.singular);this.events.push(b.connect(this.tree.domNode,"onmousedown",this,"onMouseDown"),b.connect(this.tree.domNode,"onmouseup",this,"onMouseUp"),b.connect(this.tree.domNode,"onmousemove",this,"onMouseMove"))},singular:false,
getSelectedTreeNodes:function(){var a=[],c=this.selection;for(var d in c)a.push(c[d]);return a},selectNone:function(){this.setSelection([]);return this},destroy:function(){this.inherited(arguments);this.selection=this.anchor=null},addTreeNode:function(a,c){this.setSelection(this.getSelectedTreeNodes().concat([a]));if(c)this.anchor=a;return a},removeTreeNode:function(a){this.setSelection(this._setDifference(this.getSelectedTreeNodes(),[a]));return a},isTreeNodeSelected:function(a){return a.id&&!!this.selection[a.id]},
setSelection:function(a){var c=this.getSelectedTreeNodes();b.forEach(this._setDifference(c,a),b.hitch(this,function(d){d.setSelected(false);this.anchor==d&&delete this.anchor;delete this.selection[d.id]}));b.forEach(this._setDifference(a,c),b.hitch(this,function(d){d.setSelected(true);this.selection[d.id]=d}));this._updateSelectionProperties()},_setDifference:function(a,c){b.forEach(c,function(d){d.__exclude__=true});a=b.filter(a,function(d){return!d.__exclude__});b.forEach(c,function(d){delete d.__exclude__});
return a},_updateSelectionProperties:function(){var a=this.getSelectedTreeNodes(),c=[],d=[];b.forEach(a,function(f){d.push(f);c.push(f.getTreePath())});a=b.map(d,function(f){return f.item});this.tree._set("paths",c);this.tree._set("path",c[0]||[]);this.tree._set("selectedNodes",d);this.tree._set("selectedNode",d[0]||null);this.tree._set("selectedItems",a);this.tree._set("selectedItem",a[0]||null)},onMouseDown:function(a){if(!(!this.current||this.tree.isExpandoNode(a.target,this.current)))if(a.button!=
b.mouseButtons.RIGHT){b.stopEvent(a);var c=this.current,d=b.isCopyKey(a),f=c.id;if(!this.singular&&!a.shiftKey&&this.selection[f])this._doDeselect=true;else{this._doDeselect=false;this.userSelect(c,d,a.shiftKey)}}},onMouseUp:function(a){if(this._doDeselect){this._doDeselect=false;this.userSelect(this.current,b.isCopyKey(a),a.shiftKey)}},onMouseMove:function(){this._doDeselect=false},userSelect:function(a,c,d){if(this.singular)if(this.anchor==a&&c)this.selectNone();else{this.setSelection([a]);this.anchor=
a}else if(d&&this.anchor){d=this.anchor;if(e.tree._compareNodes(this.anchor.rowNode,a.rowNode)<0){c=d;a=a}else{c=a;a=d}for(nodes=[];c!=a;){nodes.push(c);c=this.tree._getNextNode(c)}nodes.push(a);this.setSelection(nodes)}else if(this.selection[a.id]&&c)this.removeTreeNode(a);else if(c)this.addTreeNode(a,true);else{this.setSelection([a]);this.anchor=a}},forInSelectedItems:function(a,c){c=c||b.global;for(var d in this.selection)a.call(c,this.getItem(d),d,this)}});return e.tree._dndSelector});
define("dijit/Tree",["dojo","dijit","text!dijit/templates/TreeNode.html","text!dijit/templates/Tree.html","dojo/fx","dojo/DeferredList","dijit/_Widget","dijit/_Templated","dijit/_Container","dijit/_Contained","dijit/_CssStateMixin","dojo/cookie","dijit/tree/TreeStoreModel","dijit/tree/ForestStoreModel","dijit/tree/_dndSelector"],function(b,e){b.declare("dijit._TreeNode",[e._Widget,e._Templated,e._Container,e._Contained,e._CssStateMixin],{item:null,isTreeNode:true,label:"",isExpandable:null,isExpanded:false,
state:"UNCHECKED",templateString:b.cache("dijit","templates/TreeNode.html"),baseClass:"dijitTreeNode",cssStateNodes:{rowNode:"dijitTreeRow",labelNode:"dijitTreeLabel"},attributeMap:b.delegate(e._Widget.prototype.attributeMap,{label:{node:"labelNode",type:"innerText"},tooltip:{node:"rowNode",type:"attribute",attribute:"title"}}),buildRendering:function(){this.inherited(arguments);this._setExpando();this._updateItemClasses(this.item);this.isExpandable&&e.setWaiState(this.labelNode,"expanded",this.isExpanded);
this.setSelected(false)},_setIndentAttr:function(a){var c=Math.max(a,0)*this.tree._nodePixelIndent+"px";b.style(this.domNode,"backgroundPosition",c+" 0px");b.style(this.rowNode,this.isLeftToRight()?"paddingLeft":"paddingRight",c);b.forEach(this.getChildren(),function(d){d.set("indent",a+1)});this._set("indent",a)},markProcessing:function(){this.state="LOADING";this._setExpando(true)},unmarkProcessing:function(){this._setExpando(false)},_updateItemClasses:function(a){var c=this.tree,d=c.model;if(c._v10Compat&&
a===d.root)a=null;this._applyClassAndStyle(a,"icon","Icon");this._applyClassAndStyle(a,"label","Label");this._applyClassAndStyle(a,"row","Row")},_applyClassAndStyle:function(a,c,d){var f="_"+c+"Class";c=c+"Node";var j=this[f];this[f]=this.tree["get"+d+"Class"](a,this.isExpanded);b.replaceClass(this[c],this[f]||"",j||"");b.style(this[c],this.tree["get"+d+"Style"](a,this.isExpanded)||{})},_updateLayout:function(){var a=this.getParent();!a||a.rowNode.style.display=="none"?b.addClass(this.domNode,"dijitTreeIsRoot"):
b.toggleClass(this.domNode,"dijitTreeIsLast",!this.getNextSibling())},_setExpando:function(a){var c=["dijitTreeExpandoLoading","dijitTreeExpandoOpened","dijitTreeExpandoClosed","dijitTreeExpandoLeaf"],d=["*","-","+","*"];a=a?0:this.isExpandable?this.isExpanded?1:2:3;b.replaceClass(this.expandoNode,c[a],c);this.expandoNodeText.innerHTML=d[a]},expand:function(){if(this._expandDeferred)return this._expandDeferred;this._wipeOut&&this._wipeOut.stop();this.isExpanded=true;e.setWaiState(this.labelNode,"expanded",
"true");if(this.tree.showRoot||this!==this.tree.rootNode)e.setWaiRole(this.containerNode,"group");b.addClass(this.contentNode,"dijitTreeContentExpanded");this._setExpando();this._updateItemClasses(this.item);this==this.tree.rootNode&&e.setWaiState(this.tree.domNode,"expanded","true");var a,c=b.fx.wipeIn({node:this.containerNode,duration:e.defaultDuration,onEnd:function(){a.callback(true)}});a=this._expandDeferred=new b.Deferred(function(){c.stop()});c.play();return a},collapse:function(){if(this.isExpanded){if(this._expandDeferred){this._expandDeferred.cancel();
delete this._expandDeferred}this.isExpanded=false;e.setWaiState(this.labelNode,"expanded","false");this==this.tree.rootNode&&e.setWaiState(this.tree.domNode,"expanded","false");b.removeClass(this.contentNode,"dijitTreeContentExpanded");this._setExpando();this._updateItemClasses(this.item);if(!this._wipeOut)this._wipeOut=b.fx.wipeOut({node:this.containerNode,duration:e.defaultDuration});this._wipeOut.play()}},indent:0,setChildItems:function(a){var c=this.tree,d=c.model,f=[];b.forEach(this.getChildren(),
function(j){e._Container.prototype.removeChild.call(this,j)},this);this.state="LOADED";if(a&&a.length>0){this.isExpandable=true;b.forEach(a,function(j){var g=d.getIdentity(j),h=c._itemNodesMap[g],k;if(h)for(var l=0;l<h.length;l++)if(h[l]&&!h[l].getParent()){k=h[l];k.set("indent",this.indent+1);break}if(!k){k=this.tree._createTreeNode({item:j,tree:c,isExpandable:d.mayHaveChildren(j),label:c.getLabel(j),tooltip:c.getTooltip(j),dir:c.dir,lang:c.lang,indent:this.indent+1});if(h)h.push(k);else c._itemNodesMap[g]=
[k]}this.addChild(k);if(this.tree.autoExpand||this.tree._state(j))f.push(c._expandNode(k))},this);b.forEach(this.getChildren(),function(j){j._updateLayout()})}else this.isExpandable=false;this._setExpando&&this._setExpando(false);this._updateItemClasses(this.item);if(this==c.rootNode)if(a=this.tree.showRoot?this:this.getChildren()[0]){a.setFocusable(true);c.lastFocused=a}else c.domNode.setAttribute("tabIndex","0");return new b.DeferredList(f)},getTreePath:function(){for(var a=this,c=[];a&&a!==this.tree.rootNode;){c.unshift(a.item);
a=a.getParent()}c.unshift(this.tree.rootNode.item);return c},getIdentity:function(){return this.tree.model.getIdentity(this.item)},removeChild:function(){this.inherited(arguments);var a=this.getChildren();if(a.length==0){this.isExpandable=false;this.collapse()}b.forEach(a,function(c){c._updateLayout()})},makeExpandable:function(){this.isExpandable=true;this._setExpando(false)},_onLabelFocus:function(){this.tree._onNodeFocus(this)},setSelected:function(a){e.setWaiState(this.labelNode,"selected",a);
b.toggleClass(this.rowNode,"dijitTreeRowSelected",a)},setFocusable:function(a){this.labelNode.setAttribute("tabIndex",a?"0":"-1")},_onClick:function(a){this.tree._onClick(this,a)},_onDblClick:function(a){this.tree._onDblClick(this,a)},_onMouseEnter:function(a){this.tree._onNodeMouseEnter(this,a)},_onMouseLeave:function(a){this.tree._onNodeMouseLeave(this,a)}});b.declare("dijit.Tree",[e._Widget,e._Templated],{store:null,model:null,query:null,label:"",showRoot:true,childrenAttr:["children"],paths:[],
path:[],selectedItems:null,selectedItem:null,openOnClick:false,openOnDblClick:false,templateString:b.cache("dijit","templates/Tree.html"),persist:true,autoExpand:false,dndController:"dijit.tree._dndSelector",dndParams:["onDndDrop","itemCreator","onDndCancel","checkAcceptance","checkItemAcceptance","dragThreshold","betweenThreshold"],onDndDrop:null,itemCreator:null,onDndCancel:null,checkAcceptance:null,checkItemAcceptance:null,dragThreshold:5,betweenThreshold:0,_nodePixelIndent:19,_publish:function(a,
c){b.publish(this.id,[b.mixin({tree:this,event:a},c||{})])},postMixInProperties:function(){this.tree=this;if(this.autoExpand)this.persist=false;this._itemNodesMap={};if(!this.cookieName)this.cookieName=this.id+"SaveStateCookie";this._loadDeferred=new b.Deferred;this.inherited(arguments)},postCreate:function(){this._initState();this.model||this._store2model();this.connect(this.model,"onChange","_onItemChange");this.connect(this.model,"onChildrenChange","_onItemChildrenChange");this.connect(this.model,
"onDelete","_onItemDelete");this._load();this.inherited(arguments);if(this.dndController){if(b.isString(this.dndController))this.dndController=b.getObject(this.dndController);for(var a={},c=0;c<this.dndParams.length;c++)if(this[this.dndParams[c]])a[this.dndParams[c]]=this[this.dndParams[c]];this.dndController=new this.dndController(this,a)}},_store2model:function(){this._v10Compat=true;b.deprecated("Tree: from version 2.0, should specify a model object rather than a store/query");var a={id:this.id+
"_ForestStoreModel",store:this.store,query:this.query,childrenAttrs:this.childrenAttr};if(this.params.mayHaveChildren)a.mayHaveChildren=b.hitch(this,"mayHaveChildren");if(this.params.getItemChildren)a.getChildren=b.hitch(this,function(c,d,f){this.getItemChildren(this._v10Compat&&c===this.model.root?null:c,d,f)});this.model=new e.tree.ForestStoreModel(a);this.showRoot=Boolean(this.label)},onLoad:function(){},_load:function(){this.model.getRoot(b.hitch(this,function(a){var c=this.rootNode=this.tree._createTreeNode({item:a,
tree:this,isExpandable:true,label:this.label||this.getLabel(a),indent:this.showRoot?0:-1});if(!this.showRoot){c.rowNode.style.display="none";e.setWaiRole(this.domNode,"presentation");e.setWaiRole(c.labelNode,"presentation");e.setWaiRole(c.containerNode,"tree")}this.domNode.appendChild(c.domNode);a=this.model.getIdentity(a);if(this._itemNodesMap[a])this._itemNodesMap[a].push(c);else this._itemNodesMap[a]=[c];c._updateLayout();this._expandNode(c).addCallback(b.hitch(this,function(){this._loadDeferred.callback(true);
this.onLoad()}))}),function(a){console.error(this,": error loading root: ",a)})},getNodesByItem:function(a){if(!a)return[];return[].concat(this._itemNodesMap[b.isString(a)?a:this.model.getIdentity(a)])},_setSelectedItemAttr:function(a){this.set("selectedItems",[a])},_setSelectedItemsAttr:function(a){var c=this;this._loadDeferred.addCallback(b.hitch(this,function(){var d=b.map(a,function(j){return!j||b.isString(j)?j:c.model.getIdentity(j)}),f=[];b.forEach(d,function(j){f=f.concat(c._itemNodesMap[j]||
[])});this.set("selectedNodes",f)}))},_setPathAttr:function(a){return a.length?this.set("paths",[a]):this.set("paths",[])},_setPathsAttr:function(a){function c(j,g,h){var k=j.shift(),l=b.filter(g,function(m){return m.getIdentity()==k})[0];if(l)j.length?f._expandNode(l).addCallback(function(){c(j,l.getChildren(),h)}):h.callback(l);else h.errback("Could not expand path at "+k)}function d(j){f.set("selectedNodes",b.map(b.filter(j,function(g){return g[0]}),function(g){return g[1]}))}var f=this;return(new b.DeferredList(b.map(a,
function(j){var g=new b.Deferred;j=b.map(j,function(h){return b.isString(h)?h:f.model.getIdentity(h)});j.length?f._loadDeferred.addCallback(function(){c(j,[f.rootNode],g)}):g.errback("Empty path");return g}))).addCallback(d)},_setSelectedNodeAttr:function(a){this.set("selectedNodes",[a])},_setSelectedNodesAttr:function(a){this._loadDeferred.addCallback(b.hitch(this,function(){this.dndController.setSelection(a)}))},mayHaveChildren:function(){},getItemChildren:function(){},getLabel:function(a){return this.model.getLabel(a)},
getIconClass:function(a,c){return!a||this.model.mayHaveChildren(a)?c?"dijitFolderOpened":"dijitFolderClosed":"dijitLeaf"},getLabelClass:function(){},getRowClass:function(){},getIconStyle:function(){},getLabelStyle:function(){},getRowStyle:function(){},getTooltip:function(){return""},_onKeyPress:function(a){if(!a.altKey){var c=b.keys,d=e.getEnclosingWidget(a.target);if(d){var f=a.charOrCode;if(typeof f=="string"&&f!=" "){if(!a.altKey&&!a.ctrlKey&&!a.shiftKey&&!a.metaKey){this._onLetterKeyNav({node:d,
key:f.toLowerCase()});b.stopEvent(a)}}else{if(this._curSearch){clearTimeout(this._curSearch.timer);delete this._curSearch}var j=this._keyHandlerMap;if(!j){j={};j[c.ENTER]="_onEnterKey";j[c.SPACE]=j[" "]="_onEnterKey";j[this.isLeftToRight()?c.LEFT_ARROW:c.RIGHT_ARROW]="_onLeftArrow";j[this.isLeftToRight()?c.RIGHT_ARROW:c.LEFT_ARROW]="_onRightArrow";j[c.UP_ARROW]="_onUpArrow";j[c.DOWN_ARROW]="_onDownArrow";j[c.HOME]="_onHomeKey";j[c.END]="_onEndKey";this._keyHandlerMap=j}if(this._keyHandlerMap[f]){this[this._keyHandlerMap[f]]({node:d,
item:d.item,evt:a});b.stopEvent(a)}}}}},_onEnterKey:function(a){this._publish("execute",{item:a.item,node:a.node});this.dndController.userSelect(a.node,b.isCopyKey(a.evt),a.evt.shiftKey);this.onClick(a.item,a.node,a.evt)},_onDownArrow:function(a){(a=this._getNextNode(a.node))&&a.isTreeNode&&this.focusNode(a)},_onUpArrow:function(a){a=a.node;var c=a.getPreviousSibling();if(c)for(a=c;a.isExpandable&&a.isExpanded&&a.hasChildren();){a=a.getChildren();a=a[a.length-1]}else{c=a.getParent();!this.showRoot&&
c===this.rootNode||(a=c)}a&&a.isTreeNode&&this.focusNode(a)},_onRightArrow:function(a){a=a.node;if(a.isExpandable&&!a.isExpanded)this._expandNode(a);else if(a.hasChildren())(a=a.getChildren()[0])&&a.isTreeNode&&this.focusNode(a)},_onLeftArrow:function(a){a=a.node;if(a.isExpandable&&a.isExpanded)this._collapseNode(a);else(a=a.getParent())&&a.isTreeNode&&!(!this.showRoot&&a===this.rootNode)&&this.focusNode(a)},_onHomeKey:function(){var a=this._getRootOrFirstNode();a&&this.focusNode(a)},_onEndKey:function(){for(var a=
this.rootNode;a.isExpanded;){a=a.getChildren();a=a[a.length-1]}a&&a.isTreeNode&&this.focusNode(a)},multiCharSearchDuration:250,_onLetterKeyNav:function(a){var c=this._curSearch;if(c){c.pattern+=a.key;clearTimeout(c.timer)}else c=this._curSearch={pattern:a.key,startNode:a.node};var d=this;c.timer=setTimeout(function(){delete d._curSearch},this.multiCharSearchDuration);a=c.startNode;do(a=this._getNextNode(a))||(a=this._getRootOrFirstNode());while(a!==c.startNode&&a.label.toLowerCase().substr(0,c.pattern.length)!=
c.pattern);a&&a.isTreeNode&&a!==c.startNode&&this.focusNode(a)},isExpandoNode:function(a,c){return b.isDescendant(a,c.expandoNode)},_onClick:function(a,c){var d=this.isExpandoNode(c.target,a);if(this.openOnClick&&a.isExpandable||d)a.isExpandable&&this._onExpandoClick({node:a});else{this._publish("execute",{item:a.item,node:a,evt:c});this.onClick(a.item,a,c);this.focusNode(a)}b.stopEvent(c)},_onDblClick:function(a,c){var d=c.target;d=d==a.expandoNode||d==a.expandoNodeText;if(this.openOnDblClick&&a.isExpandable||
d)a.isExpandable&&this._onExpandoClick({node:a});else{this._publish("execute",{item:a.item,node:a,evt:c});this.onDblClick(a.item,a,c);this.focusNode(a)}b.stopEvent(c)},_onExpandoClick:function(a){a=a.node;this.focusNode(a);a.isExpanded?this._collapseNode(a):this._expandNode(a)},onClick:function(){},onDblClick:function(){},onOpen:function(){},onClose:function(){},_getNextNode:function(a){if(a.isExpandable&&a.isExpanded&&a.hasChildren())return a.getChildren()[0];else{for(;a&&a.isTreeNode;){var c=a.getNextSibling();
if(c)return c;a=a.getParent()}return null}},_getRootOrFirstNode:function(){return this.showRoot?this.rootNode:this.rootNode.getChildren()[0]},_collapseNode:function(a){a._expandNodeDeferred&&delete a._expandNodeDeferred;if(a.isExpandable)if(a.state!="LOADING"){a.collapse();this.onClose(a.item,a);if(a.item){this._state(a.item,false);this._saveState()}}},_expandNode:function(a,c){if(a._expandNodeDeferred&&!c)return a._expandNodeDeferred;c=this.model;var d=a.item,f=this;switch(a.state){case "UNCHECKED":a.markProcessing();
var j=a._expandNodeDeferred=new b.Deferred;c.getChildren(d,function(g){a.unmarkProcessing();g=a.setChildItems(g);var h=f._expandNode(a,true);g.addCallback(function(){h.addCallback(function(){j.callback()})})},function(g){console.error(f,": error loading root children: ",g)});break;default:j=a._expandNodeDeferred=a.expand();this.onOpen(a.item,a);if(d){this._state(d,true);this._saveState()}}return j},focusNode:function(a){e.focus(a.labelNode)},_onNodeFocus:function(a){if(a&&a!=this.lastFocused){this.lastFocused&&
!this.lastFocused._destroyed&&this.lastFocused.setFocusable(false);a.setFocusable(true);this.lastFocused=a}},_onNodeMouseEnter:function(){},_onNodeMouseLeave:function(){},_onItemChange:function(a){var c=this._itemNodesMap[this.model.getIdentity(a)];if(c){var d=this.getLabel(a),f=this.getTooltip(a);b.forEach(c,function(j){j.set({item:a,label:d,tooltip:f});j._updateItemClasses(a)})}},_onItemChildrenChange:function(a,c){(a=this._itemNodesMap[this.model.getIdentity(a)])&&b.forEach(a,function(d){d.setChildItems(c)})},
_onItemDelete:function(a){a=this.model.getIdentity(a);var c=this._itemNodesMap[a];if(c){b.forEach(c,function(d){this.dndController.removeTreeNode(d);var f=d.getParent();f&&f.removeChild(d);d.destroyRecursive()},this);delete this._itemNodesMap[a]}},_initState:function(){if(this.persist){var a=b.cookie(this.cookieName);this._openedItemIds={};a&&b.forEach(a.split(","),function(c){this._openedItemIds[c]=true},this)}},_state:function(a,c){if(!this.persist)return false;var d=this.model.getIdentity(a);if(arguments.length===
1)return this._openedItemIds[d];if(c)this._openedItemIds[d]=true;else delete this._openedItemIds[d]},_saveState:function(){if(this.persist){var a=[];for(var c in this._openedItemIds)a.push(c);b.cookie(this.cookieName,a.join(","),{expires:365})}},destroy:function(){if(this._curSearch){clearTimeout(this._curSearch.timer);delete this._curSearch}this.rootNode&&this.rootNode.destroyRecursive();this.dndController&&!b.isString(this.dndController)&&this.dndController.destroy();this.rootNode=null;this.inherited(arguments)},
destroyRecursive:function(){this.destroy()},resize:function(a){a&&b.marginBox(this.domNode,a);this._nodePixelIndent=b._getMarginSize(this.tree.indentDetector).w;if(this.tree.rootNode)this.tree.rootNode.set("indent",this.showRoot?0:-1)},_createTreeNode:function(a){return new e._TreeNode(a)}});return e.Tree});define("text!orion/widgets/templates/_ExplorerTreeNode.html",function(){return'<div class="dijitTreeNode" waiRole="presentation">\n\t<div dojoAttachPoint="rowNode" class="dijitTreeRow"\n\t\twaiRole="presentation"\n\t\tdojoAttachEvent="onmouseenter:_onMouseEnter, onmouseleave:_onMouseLeave, onclick:_onClick, ondblclick:_onDblClick">\n\t\t<img src="${_blankGif}" alt="" dojoAttachPoint="expandoNode" class="dijitTreeExpando" waiRole="presentation" />\n\t\t<span dojoAttachPoint="expandoNodeText" class="dijitExpandoText" waiRole="presentation"></span>\n\t\t<span dojoAttachPoint="contentNode" class="dijitTreeContent" waiRole="presentation">\n\t\t\t<img src="${_blankGif}" alt="" dojoAttachPoint="iconNode" class="dijitIcon dijitTreeIcon" waiRole="presentation" />\n\t\t\t<!-- labelNode\'s innerText will be label string --\>\n\t\t\t<span dojoAttachPoint="labelNode" class="dijitTreeLabel" wairole="treeitem" tabindex="-1" waiState="selected-false" dojoAttachEvent="onfocus:_onLabelFocus"></span>\n\t\t\t<a href="" dojoAttachPoint="followLink"><img src="${_blankGif}" alt="" dojoAttachPoint="followNode" class="dijitIcon dijitTreeIcon follow" waiRole="link"></a>\n\t\t</span>\n\t</div>\n\t<div dojoAttachPoint="containerNode" class="dijitTreeContainer"\n\t\twaiRole="presentation" style="display: none;">\n\t</div>\n</div>'});
define("orion/widgets/ExplorerTree",["dojo","dijit","dijit/Tree","text!orion/widgets/templates/_ExplorerTreeNode.html"],function(b,e){b.declare("orion.widgets._ExplorerTreeNode",[e._TreeNode],{templateString:b.cache("orion","widgets/templates/_ExplorerTreeNode.html"),_updateItemClasses:function(a){this.inherited(arguments);this._applyClassAndStyle(a,"follow","Follow");typeof this.tree.updateFollowLink==="function"&&this.tree.updateFollowLink(a,this.followLink)}});b.declare("orion.widgets.ExplorerTree",
[e.Tree],{selectedNodes:{},postCreate:function(){b.connect(this,"onMouseDown",this._eatSelectionEvent);b.connect(this.domNode,"onselectstart",this._eatSelectionEvent);this.inherited(arguments)},getFollowClass:function(){},getFollowStyle:function(){},updateFollowLink:function(){},onFollowClick:function(){},getSelectedItems:function(){var a=[];this._forEachSelectedNode(function(c,d){a.push(d.item)});return a},_getSelectedNodes:function(){var a=[];this._forEachSelectedNode(function(c,d){a.push(d)});
return a},_forEachSelectedNode:function(a){var c=this.selectedNodes;for(var d in c)c.hasOwnProperty(d)&&a(d,c[d])},_createTreeNode:function(a){return new orion.widgets._ExplorerTreeNode(a)},_eatSelectionEvent:function(a){if(b.isCopyKey(a)||a.shiftKey)b.stopEvent(a)},_onClick:function(a,c){var d=c.target,f=d===a.expandoNode||d===a.expandoNodeText;d=d===a.followNode;if(b.isCopyKey(c)){this._toggleSelectNode(a);this.focusNode(a)}else if(c.shiftKey){if(this.selectedNode){this._selectRange(this.selectedNode,
a);this.focusNode(a)}}else{if(d)this.onFollowClick(a.item,a,c);else if(this.openOnClick&&a.isExpandable||f)a.isExpandable&&this._onExpandoClick({node:a});else{this._publish("execute",{item:a.item,node:a,evt:c});this.onClick(a.item,a,c);this.focusNode(a)}!f&&!d&&this._selectNode(a)}d||b.stopEvent(c)},_onItemDelete:function(a){var c=this._itemNodesMap[this.model.getIdentity(a)];if(c){var d=this;b.forEach(c,function(f){d._removeFromSelection(f)})}this.inherited(arguments)},_getVisibleAncestor:function(a){if(!a)return null;
for(var c=a.getParent();c&&!(c.isExpandable&&c.isExpanded);){a=c;c=c.getParent()}return a},_toggleSelectNode:function(a){if(this.selectedNodes[a.get("id")]){a.setSelected(false);this._removeFromSelection(a)}else{a.setSelected(true);this._addToSelection(a)}},_addToSelection:function(a){this.selectedNodes[a.get("id")]=a},_removeFromSelection:function(a){delete this.selectedNodes[a.get("id")]},_selectRange:function(a,c){function d(g,h){var k=[];g=g;do{k.push(g);g=f._getNextNode(g)}while(g&&g!==h);if(g===
h){k.push(h);return k}return null}a=this._getVisibleAncestor(a);c=this._getVisibleAncestor(c);if(a&&c)if(a===c)this._selectNode(a);else{var f=this,j=d(a,c);if(j)this._selectNodes(j.reverse(),true);else(j=d(c,a))?this._selectNodes(j,true):console.debug("Warning: couldn't select range from "+a.label+" to "+c.label)}},_selectNode:function(a){this._selectNodes(a?[a]:null)},_selectNodes:function(a){this._forEachSelectedNode(function(f,j){j._destroyed||j.setSelected(false)});this.selectedNodes={};if(a)for(var c=
0;c<a.length;c++){var d=a[c];d.setSelected(true);this._addToSelection(d);this.selectedNode=d}}})});define("text!orion/widgets/templates/DirectoryPrompterDialog.html",function(){return'<div class="dijitDialog" tabindex="-1" waiRole="dialog" waiState="labelledby-${id}_title">\n\t<div dojoAttachPoint="titleBar" class="dijitDialogTitleBar">\n\t\t<span dojoAttachPoint="titleNode" class="dijitDialogTitle" id="${id}_title"></span>\n\t\t<span dojoAttachPoint="closeButtonNode" class="dijitDialogCloseIcon" dojoAttachEvent="onclick: onCancel" title="${buttonCancel}">\n\t\t\t<span dojoAttachPoint="closeText" class="closeText" title="${buttonCancel}">x</span>\n\t\t</span>\n\t</div>\n\t<div dojoAttachPoint="containerNode" class="dijitDialogPaneContent">\n\t\t<!-- Actual content here --\>\n\t\t\t<div style="display: table">\n\t\t\t\t<div style="display: table-row"> \n\n\t\t\t\t\t<div style="display: table-cell; padding: 1px; vertical-align: bottom;">\n\t\t\t\t\t\t<div dojoAttachPoint="treeContainerNode" id="${id}_treeContainerNode" dojoType="dijit.layout.BorderContainer" style="width:25em; height:25em; overflow:auto;" design="sidebar" gutters="true">\n\t\t\t\t\t\t\t<div dojoAttachPoint="treeContentPane" class="dijitDialogPaneContent" id="${id}_treeContentPane dojoType="dijit.layout.ContentPane" region="center" gutters="true">\n\t\t\t\t\t\t\t\t<div dojoAttachPoint="browseDirectoryExplorerTree" class="explorerTreeClass" id="${id}_browseDirectoryExplorerTree" style="margin-top: -3px;"></div> \n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: table-cell; padding: 1px; vertical-align: bottom;">\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: table-cell; padding: 1px; vertical-align: bottom;">\n\t\t\t\t\t</div>\n\t\t\t\t</div> \n\t\t\t\t<div style="display: table-row">\n\t\t\t\t\t<div style="display: table-cell; padding: 1px;">\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: table-cell; padding: 1px;">\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: table-cell; padding: 1px;">\n\t\t\t\t\t\n\t\t\t\t\t\t<button dojoAttachPoint="directoryBrowserButton" dojoType="dijit.form.Button" type="submit" value="OK" style="padding: 20 0 10 0; float: right; clear: both;">${buttonOk}\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div> <!-- end table --\>\n\t</div> <!-- content pane --\>\n</div>'});
define("orion/widgets/DirectoryPrompterDialog",["dojo","dijit","orion/util","dijit/Dialog","dijit/form/Button","orion/widgets/ExplorerTree","orion/widgets/_OrionDialogMixin","text!orion/widgets/templates/DirectoryPrompterDialog.html"],function(b,e,a){b.declare("orion.widgets.DirectoryPrompterDialog",[e.Dialog,orion.widgets._OrionDialogMixin],{treeWidget:null,treeRoot:{},widgetsInTemplate:true,templateString:b.cache("orion","widgets/templates/DirectoryPrompterDialog.html"),constructor:function(){this.inherited(arguments);
this.options=arguments[0]||{}},postMixInProperties:function(){this.inherited(arguments);this.title=this.options.title||"Choose a Folder";this.buttonOk="OK"},postCreate:function(){this.inherited(arguments);this.loadFolderList("")},loadFolderList:function(c){c=a.makeRelative(c);this.treeRoot.Path=c;this.options.fileClient.loadWorkspace(c).then(b.hitch(this,function(d){for(var f in d)this.treeRoot[f]=d[f];a.processNavigatorParent(this.treeRoot,d.Children);this.createTree()}))},createTree:function(){var c=
new orion.widgets.DirectoryTreeModel(this.options.serviceRegistry,this.treeRoot,this.options.fileClient);this.treeWidget=new orion.widgets.ExplorerTree({id:"treeWidget",style:"width:100%; height:100%",model:c,showRoot:false,persist:true,openOnClick:false,getLabel:function(d){return d.Name},getIconClass:function(){return"folderItem"}});this.treeWidget.startup();b.byId(this.treeContentPane.id).appendChild(this.treeWidget.domNode)},execute:function(){var c=this.treeWidget.getSelectedItems();this.onHide();
this.options.func(c[0])}});orion.widgets.DirectoryTreeModel=function(){function c(d,f,j){this.registry=d;this.root=f;this.fileClient=j}c.prototype={destroy:function(){},getRoot:function(d){d(this.root)},mayHaveChildren:function(){return true},getChildren:function(d,f){if(d.children)f(d.children);else if(d.Directory!==undefined&&d.Directory===false)f([]);else d.Location?this.fileClient.fetchChildren(d.ChildrenLocation).then(b.hitch(this,function(j){for(var g=[],h=0;h<j.length;h++)j[h].Directory&&g.push(j[h]);
a.processNavigatorParent(d,g);f(g)})):f([])},getIdentity:function(d){return d.Name?d.Location:"ROOT"},getLabel:function(d){return d.Name},onChildrenChange:function(){}};return c}()});define("text!orion/git/widgets/templates/CloneGitRepositoryDialog.html",function(){return'<div class="dijitDialog" tabindex="-1" waiRole="dialog" waiState="labelledby-${id}_title">\n\t<div dojoAttachPoint="titleBar" class="dijitDialogTitleBar">\n\t\t<span dojoAttachPoint="titleNode" class="dijitDialogTitle" id="${id}_title"></span>\n\t\t<span dojoAttachPoint="closeButtonNode" class="dijitDialogCloseIcon" dojoAttachEvent="onclick: onCancel" title="${buttonCancel}">\n\t\t\t<span dojoAttachPoint="closeText" class="closeText" title="${buttonCancel}">x</span>\n\t\t</span>\n\t</div>\n\t<div dojoAttachPoint="containerNode" class="dijitDialogPaneContent">\n\t\t<!-- Actual content here --\>\n\t\t\t\t<span dojoAttachPoint="Basic">\n\t\t\t\t\t<div style="display: block; padding: 5; min-width: 120px; clear: both; float: left;">\n\t\t\t\t\t\t<label dojoAttachPoint="gitUrlLabel" for="${id}_gitUrl" style="padding-right: 10">${gitUrlLabelText}</label>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: block; padding: 5; width: 40em; text-align: right; float: right">\n\t\t\t\t\t\t<input dojoAttachPoint="gitUrl" id="${id}_gitUrl" style="display: inline-block; width: 100%;" value="">\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: block; padding: 5; clear: both; text-align: right;">\n\t\t\t\t\t\t<a dojoAttachPoint="advancedLink" href="javascript:">Choose target location</a>\n\t\t\t\t\t\t<a dojoAttachPoint="advancedLinkHide" href="javascript:" style="display: none">Default target location</a>\n\t\t\t\t\t</div>\n\t\t\t\t</span>\n\t\t\t\t<span dojoAttachPoint="Advanced" style="display: none;">\n\t\t\t\t\t<div style="display: block; padding: 5; min-width: 120px; clear: both; float: left;">\n\t\t\t\t\t\t<input dojoAttachPoint="isNewProject" type="radio" name="${id}_newExisting" checked value="new"/>\n\t\t\t\t\t\t<label dojoAttachPoint="gitNameLabel" for="${id}_gitName" style="padding-right: 10">${gitNameLabelText}</label>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: block; padding: 5; width: 40em; text-align: right; float: right">\n\t\t\t\t\t\t<input dojoAttachPoint="gitName" id="${id}_gitName" style="display: inline-block; width: 100%;" value="">\n\t\t\t\t\t</div>\n\t\t\t\t\t\n\t\t\t\t\t<div style="display: block; padding: 5; min-width: 120px; clear: both; float: left;">\n\t\t\t\t\t\t<input dojoAttachPoint="isExistingProject" type="radio" name="${id}_newExisting" value="existing"/>\n\t\t\t\t\t\t<label dojoAttachPoint="gitPathLabel" for="${id}_gitPath" style="padding-right: 10">${gitPathLabelText}</label>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: block; padding: 5; width: 40em; text-align: left; float: right;">\n\t\t\t\t\t\t\t<input dojoAttachPoint="gitPath" id="${id}_gitPath" type="hidden" value="">\n\t\t\t\t\t\t\t<div style="width: 30em; float: left" float="left" dojoAttachPoint="shownGitPath"></div>\n\t\t\t\t\t\t\t<div style="width: 10em; float: right; text-align: right"><a dojoAttachPoint="changeGitPath" href="javascript:">Change...</a></div>\n\t\t\t\t\t</div>\n\t\t\t\t</span>\n\t\t\t\t<div style="display: block; padding: 5; clear: both; text-align: right">\n\t\t\t\t\t<button dojoAttachPoint="cloneItemButton" dojoType="dijit.form.Button" type="submit" value="OK" style="padding: 20 0 10 0;">OK\n\t\t\t\t\t</button>\n\t\t\t\t</div>\n\t</div>\n</div>'});
define("orion/git/widgets/CloneGitRepositoryDialog",["dojo","dijit","dijit/Dialog","orion/widgets/_OrionDialogMixin","orion/widgets/DirectoryPrompterDialog","text!orion/git/widgets/templates/CloneGitRepositoryDialog.html"],function(b,e){b.declare("orion.git.widgets.CloneGitRepositoryDialog",[e.Dialog,orion.widgets._OrionDialogMixin],{widgetsInTemplate:true,templateString:b.cache("orion","git/widgets/templates/CloneGitRepositoryDialog.html"),constructor:function(){this.inherited(arguments);this.options=
arguments[0]||{}},postMixInProperties:function(){this.inherited(arguments);this.title=this.options.title?this.options.title:"Clone Git Repository";this.gitUrlLabelText="Repository URL:";this.gitPathLabelText="Existing directory:";this.gitNameLabelText="New folder:";this.advancedShown=false},postCreate:function(){this.inherited(arguments);if(this.options.advancedOnly){this.Basic.style.display="none";this.Advanced.style.display="";this.gitName.focus()}b.connect(this.changeGitPath,"onclick",null,b.hitch(this,
this.openDirectoryPickerDialog));b.connect(this.isExistingProject,"onchange",null,b.hitch(this,this.showExistingFolder));b.connect(this.gitName,"onfocus",null,b.hitch(this,this.showNewProject));b.connect(this.advancedLink,"onclick",null,b.hitch(this,this.showAdvanced));b.connect(this.advancedLinkHide,"onclick",null,b.hitch(this,this.hideAdvanced))},execute:function(){this.options.func(this.options.advancedOnly?undefined:this.gitUrl.value,this.advancedShown&&this.isNewProject.checked?undefined:this.gitPath.value,
this.advancedShown&&!this.isNewProject.checked?undefined:this.gitName.value)},showAdvanced:function(){this.advancedShown=true;this.Advanced.style.display="";this.advancedLink.style.display="none";this.advancedLinkHide.style.display=""},hideAdvanced:function(){this.advancedShown=false;this.Advanced.style.display="none";this.advancedLink.style.display="";this.advancedLinkHide.style.display="none"},showExistingFolder:function(){this.isExistingProject.checked?this.openDirectoryPickerDialog():this.gitName.focus()},
showNewProject:function(){this.isNewProject.checked=true},openDirectoryPickerDialog:function(){this.isExistingProject.checked=true;var a=new orion.widgets.DirectoryPrompterDialog({title:"Choose a Folder",serviceRegistry:this.options.serviceRegistry,fileClient:this.options.fileClient,func:b.hitch(this,function(c){if(c&&c.Location){this.gitPath.value=c.Location;this.shownGitPath.innerHTML="<a href='/navigate/table.html#"+c.ChildrenLocation+"'>"+c.Name+"</a>";for(c=c;c.parent&&!c.parent.Projects;){this.shownGitPath.innerHTML=
"<a href='/navigate/table.html#"+c.parent.ChildrenLocation+"'>"+c.parent.Name+"</a>/"+this.shownGitPath.innerHTML;c=c.parent}}})});a.startup();a.show()}})});define("text!orion/git/widgets/templates/InitGitRepositoryDialog.html",function(){return'<div class="dijitDialog" tabindex="-1" waiRole="dialog" waiState="labelledby-${id}_title">\n\t<div dojoAttachPoint="titleBar" class="dijitDialogTitleBar">\n\t\t<span dojoAttachPoint="titleNode" class="dijitDialogTitle" id="${id}_title"></span>\n\t\t<span dojoAttachPoint="closeButtonNode" class="dijitDialogCloseIcon" dojoAttachEvent="onclick: onCancel" title="${buttonCancel}">\n\t\t\t<span dojoAttachPoint="closeText" class="closeText" title="${buttonCancel}">x</span>\n\t\t</span>\n\t</div>\n\t<div dojoAttachPoint="containerNode" class="dijitDialogPaneContent">\n\t\t<!-- Actual content here --\>\n\t\t<div style="display: table">\n\t\t\t<div style="display: table-row">\n\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t<label dojoAttachPoint="gitTargetLabel" for="${id}_gitTarget" style="padding-right: 10">${gitTargetLabelText}</label>\n\t\t\t\t</div>\n\t\t\t\t<div style="display: table-cell; padding: 5; width: 40em; text-align: left;">\n\t\t\t\t\t<input dojoAttachPoint="gitTarget" id="${id}_gitTarget" style="display: inline-block; width: 98%;" value="">\n\t\t\t\t\t<br><i>This is to be replaced with directory picker dialog</i>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div style="display: table-row">\n\t\t\t\t<div style="display: table-cell; padding: 5"></div>\n\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t<button dojoAttachPoint="cloneItemButton" dojoType="dijit.form.Button" type="submit" value="OK" style="padding: 20 0 10 0; float: right; clear: both;">OK\n\t\t\t\t\t</button>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>'});
define("orion/git/widgets/InitGitRepositoryDialog",["dojo","dijit","dijit/Dialog","orion/widgets/_OrionDialogMixin","text!orion/git/widgets/templates/InitGitRepositoryDialog.html"],function(b,e){b.declare("orion.git.widgets.InitGitRepositoryDialog",[e.Dialog,orion.widgets._OrionDialogMixin],{widgetsInTemplate:true,templateString:b.cache("orion","git/widgets/templates/InitGitRepositoryDialog.html"),constructor:function(){this.inherited(arguments);this.options=arguments[0]||{}},postMixInProperties:function(){this.inherited(arguments);
this.title="Init Git Repository";this.gitTargetLabelText="Target:"},execute:function(){this.options.func(this.gitTarget.value)}})});define("text!orion/git/widgets/templates/AddRemoteDialog.html",function(){return'<div class="dijitDialog" tabindex="-1" waiRole="dialog" waiState="labelledby-${id}_title">\n\t<div dojoAttachPoint="titleBar" class="dijitDialogTitleBar">\n\t\t<span dojoAttachPoint="titleNode" class="dijitDialogTitle" id="${id}_title"></span>\n\t\t<span dojoAttachPoint="closeButtonNode" class="dijitDialogCloseIcon" dojoAttachEvent="onclick: onCancel" title="${buttonCancel}">\n\t\t\t<span dojoAttachPoint="closeText" class="closeText" title="${buttonCancel}">x</span>\n\t\t</span>\n\t</div>\n\t<div dojoAttachPoint="containerNode" class="dijitDialogPaneContent">\n\t\t<!-- Actual content here --\>\n\t\t<div style="display: table">\n\t\t\t<div style="display: table-row">\n\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t<label dojoAttachPoint="gitRemoteLabel" for="${id}_gitRemote" style="padding-right: 10">${gitRemoteLabelText}</label>\n\t\t\t\t</div>\n\t\t\t\t<div style="display: table-cell; padding: 5; width: 40em; text-align: left;">\n\t\t\t\t\t<input dojoAttachPoint="gitRemote" id="${id}_gitRemote" style="display: inline-block; width: 98%;" value="">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div style="display: table-row">\n\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t<label dojoAttachPoint="gitRemoteURILabel" for="${id}_gitRemoteURI" style="padding-right: 10">${gitRemoteURILabelText}</label>\n\t\t\t\t</div>\n\t\t\t\t<div style="display: table-cell; padding: 5; width: 40em; text-align: left;">\n\t\t\t\t\t<input dojoAttachPoint="gitRemoteURI" id="${id}_gitRemoteURI" style="display: inline-block; width: 98%;" value="">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div style="display: table-row">\n\t\t\t\t<div style="display: table-cell; padding: 5"></div>\n\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t<button dojoAttachPoint="cloneItemButton" dojoType="dijit.form.Button" type="submit" value="OK" style="padding: 20 0 10 0; float: right; clear: both;">OK\n\t\t\t\t\t</button>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>'});
define("orion/git/widgets/AddRemoteDialog",["dojo","dijit","dijit/Dialog","orion/widgets/_OrionDialogMixin","text!orion/git/widgets/templates/AddRemoteDialog.html"],function(b,e){b.declare("orion.git.widgets.AddRemoteDialog",[e.Dialog,orion.widgets._OrionDialogMixin],{widgetsInTemplate:true,templateString:b.cache("orion","git/widgets/templates/AddRemoteDialog.html"),constructor:function(){this.inherited(arguments);this.options=arguments[0]||{}},postMixInProperties:function(){this.inherited(arguments);
this.title="Add Remote";this.gitRemoteLabelText="Remote Name:";this.gitRemoteURILabelText="Remote URI:"},execute:function(){this.options.func(this.gitRemote.value,this.gitRemoteURI.value)}})});define("text!orion/git/widgets/templates/GitCredentialsDialog.html",function(){return'<div class="dijitDialog" tabindex="-1" waiRole="dialog" waiState="labelledby-${id}_title">\n\t<div dojoAttachPoint="titleBar" class="dijitDialogTitleBar">\n\t\t<span dojoAttachPoint="titleNode" class="dijitDialogTitle" id="${id}_title"></span>\n\t\t<span dojoAttachPoint="closeButtonNode" class="dijitDialogCloseIcon" dojoAttachEvent="onclick: onCancel" title="${buttonCancel}">\n\t\t\t<span dojoAttachPoint="closeText" class="closeText" title="${buttonCancel}">x</span>\n\t\t</span>\n\t</div>\n\t<div dojoAttachPoint="containerNode" class="dijitDialogPaneContent">\n\t\t<!-- Actual content here --\>\n\t\t<div style="display: none; padding-top: 10px; padding-bottom: 10px;" dojoAttachPoint="gitCredentialsLabel">Provide credentials for: <b dojoAttachPoint="url"></b></div>\n\t\t<div style="display: table">\n\t\t\t<div style="display: table-row" dojoAttachPoint="gitSshUsernameRow">\n\t\t\t\t<div style="display: table-cell; padding: 5; vertical-align: top;">\n\t\t\t\t\t<label dojoAttachPoint="gitSshUsernameLabel" for="${id}_gitSshUsername" style="padding-right: 10">${gitSshUsernameLabelText}</label>\n\t\t\t\t</div>\n\t\t\t\t<div style="display: table-cell; padding: 5; width: 40em; text-align: left; vertical-align: top;">\n\t\t\t\t\t<input dojoAttachPoint="gitSshUsername" id="${id}_gitSshUsername" style="display: inline-block; width: 98%;" value="">\n\t\t\t\t</div>\n\t\t\t</div>\t\n\t\t\t<div style="display: table-row" dojoAttachPoint="gitSshPasswordRow">\n\t\t\t\t<div style="display: table-cell; padding: 5; vertical-align: top;">\n\t\t\t\t\t<label dojoAttachPoint="gitSshPasswordLabel" for="${id}_gitSshPassword" style="padding-right: 10">${gitSshPasswordLabelText}</label>\n\t\t\t\t</div>\n\t\t\t\t<div style="display: table-cell; padding: 5; width: 40em; text-align: left; vertical-align: top;">\n\t\t\t\t\t<input type="password" dojoAttachPoint="gitSshPassword" id="${id}_gitSshPassword" style="display: inline-block; width: 98%;" value="">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div style="display: table-row" dojoAttachPoint="gitPrivateKeyRow">\n\t\t\t\t<div style="display: table-cell; padding: 5; vertical-align: top;">\n\t\t\t\t\t<label dojoAttachPoint="gitPrivateKeyLabel" for="${id}_gitPrivateKey" style="padding-right: 10">${gitPrivateKeyLabelText}</label>\n\t\t\t\t</div>\n\t\t\t\t<div style="display: table-cell; padding: 5; width: 40em; text-align: left; vertical-align: top;">\n\t\t\t\t\t<textarea dojoAttachPoint="gitPrivateKey" id="${id}_gitPrivateKey" style="display: inline-block; width: 98%;" value=""></textarea>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div style="display: table-row" dojoAttachPoint="gitPassphraseRow">\n\t\t\t\t<div style="display: table-cell; padding: 5; vertical-align: top;">\n\t\t\t\t\t<label dojoAttachPoint="gitPassphraseLabel" for="${id}_gitPassphrase" style="padding-right: 10">${gitPassphraseLabelText}</label>\n\t\t\t\t</div>\n\t\t\t\t<div style="display: table-cell; padding: 5; width: 40em; text-align: left; vertical-align: top;">\n\t\t\t\t\t<input type="password" dojoAttachPoint="gitPassphrase" id="${id}_gitPassphrase" style="display: inline-block; width: 98%;" value="">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div style="display: table-row">\n\t\t\t\t<div style="display: table-cell; padding: 5"></div>\n\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t<button dojoAttachPoint="okButton" dojoType="dijit.form.Button" type="submit" value="OK" style="padding: 20 0 10 0; float: right; clear: both;">Ok\n\t\t\t\t\t</button>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>'});
define("orion/git/widgets/GitCredentialsDialog",["dojo","dijit","dijit/Dialog","orion/widgets/_OrionDialogMixin","text!orion/git/widgets/templates/GitCredentialsDialog.html"],function(b,e){b.declare("orion.git.widgets.GitCredentialsDialog",[e.Dialog,orion.widgets._OrionDialogMixin],{widgetsInTemplate:true,templateString:b.cache("orion","git/widgets/templates/GitCredentialsDialog.html"),constructor:function(){this.inherited(arguments);this.options=arguments[0]||{}},postMixInProperties:function(){this.inherited(arguments);
this.title=this.options.title||"Git Credentials";this.gitUrlLabelText="Repository URL:";this.gitSshUsernameLabelText="Ssh username:";this.gitSshPasswordLabelText="Ssh password:";this.gitPrivateKeyLabelText="Private key:";this.gitPassphraseLabelText="Passphrase:";if(!this.options.username&&!this.options.password&&!this.options.privatekey&&!this.options.passphrase){this.options.username=true;this.options.password=true;this.options.privatekey=true;this.options.passphrase=true}if(this.options.serviceRegistry){var a=
this;this.options.serviceRegistry.getService("orion.net.ssh").then(function(c){a._sshService=c})}},postCreate:function(){this.inherited(arguments);var a=this;this.options.username||b.style(this.gitSshUsernameRow,"display","none");this.options.password||b.style(this.gitSshPasswordRow,"display","none");this.options.privatekey||b.style(this.gitPrivateKeyRow,"display","none");this.options.passphrase||b.style(this.gitPassphraseRow,"display","none");if(this.options.errordata&&this.options.errordata.Url){b.style(this.gitCredentialsLabel,
"display","block");this.url.innerHTML=this.options.errordata.Url}if(this.options.errordata&&this.options.errordata.User){this.gitSshUsername.value=this.options.errordata.User;setTimeout(function(){a.gitSshPassword.focus()},400)}},execute:function(){if(this._sshService){var a=this;this._sshService.getKnownHosts().then(function(c){a.options.func({gitSshUsername:a.gitSshUsername.value,gitSshPassword:a.gitSshPassword.value,gitPrivateKey:a.gitPrivateKey.value,gitPassphrase:a.gitPassphrase.value,knownHosts:c})})}else this.options.func({gitSshUsername:this.gitSshUsername.value,
gitSshPassword:this.gitSshPassword.value,gitPrivateKey:this.gitPrivateKey.value,gitPassphrase:this.gitPassphrase.value,knownHosts:this.gitSshKnownHosts.value})}})});define("text!dijit/form/templates/CheckBox.html",function(){return'<div class="dijit dijitReset dijitInline" role="presentation"\n\t><input\n\t \t${!nameAttrSetting} type="${type}" ${checkedAttrSetting}\n\t\tclass="dijitReset dijitCheckBoxInput"\n\t\tdojoAttachPoint="focusNode"\n\t \tdojoAttachEvent="onclick:_onClick"\n/></div>'});
define("dijit/form/ToggleButton",["dojo","dijit","dijit/form/Button"],function(b,e){return e.form.ToggleButton});
define("dijit/form/CheckBox",["dojo","dijit","text!dijit/form/templates/CheckBox.html","dijit/form/ToggleButton"],function(b,e){b.declare("dijit.form.CheckBox",e.form.ToggleButton,{templateString:b.cache("dijit.form","templates/CheckBox.html"),baseClass:"dijitCheckBox",type:"checkbox",value:"on",readOnly:false,attributeMap:b.delegate(e.form._FormWidget.prototype.attributeMap,{readOnly:"focusNode"}),_setReadOnlyAttr:function(a){this._set("readOnly",a);b.attr(this.focusNode,"readOnly",a);e.setWaiState(this.focusNode,
"readonly",a)},_setValueAttr:function(a,c){if(typeof a=="string"){this._set("value",a);b.attr(this.focusNode,"value",a);a=true}this._created&&this.set("checked",a,c)},_getValueAttr:function(){return this.checked?this.value:false},_setLabelAttr:undefined,postMixInProperties:function(){if(this.value=="")this.value="on";this.checkedAttrSetting=this.checked?"checked":"";this.inherited(arguments)},_fillContent:function(){},reset:function(){this._hasBeenBlurred=false;this.set("checked",this.params.checked||
false);this._set("value",this.params.value||"on");b.attr(this.focusNode,"value",this.value)},_onFocus:function(){this.id&&b.query("label[for='"+this.id+"']").addClass("dijitFocusedLabel");this.inherited(arguments)},_onBlur:function(){this.id&&b.query("label[for='"+this.id+"']").removeClass("dijitFocusedLabel");this.inherited(arguments)},_onClick:function(a){if(this.readOnly){b.stopEvent(a);return false}return this.inherited(arguments)}});b.declare("dijit.form.RadioButton",e.form.CheckBox,{type:"radio",
baseClass:"dijitRadio",_setCheckedAttr:function(a){this.inherited(arguments);if(this._created)if(a){var c=this;b.query("INPUT[type=radio]",this.focusNode.form||b.doc).forEach(function(d){if(d.name==c.name&&d!=c.focusNode&&d.form==c.focusNode.form)(d=e.getEnclosingWidget(d))&&d.checked&&d.set("checked",false)})}},_clicked:function(){this.checked||this.set("checked",true)}});return e.form.CheckBox});
define("dijit/form/Form",["dojo","dijit","dijit/_Widget","dijit/_Templated","dijit/form/_FormMixin","dijit/layout/_ContentPaneResizeMixin"],function(b,e){b.declare("dijit.form.Form",[e._Widget,e._Templated,e.form._FormMixin,e.layout._ContentPaneResizeMixin],{name:"",action:"",method:"",encType:"","accept-charset":"",accept:"",target:"",templateString:"<form dojoAttachPoint='containerNode' dojoAttachEvent='onreset:_onReset,onsubmit:_onSubmit' ${!nameAttrSetting}></form>",attributeMap:b.delegate(e._Widget.prototype.attributeMap,
{action:"",method:"",encType:"","accept-charset":"",accept:"",target:""}),postMixInProperties:function(){this.nameAttrSetting=this.name?"name='"+this.name+"'":"";this.inherited(arguments)},execute:function(){},onExecute:function(){},_setEncTypeAttr:function(a){this.encType=a;b.attr(this.domNode,"encType",a);if(b.isIE)this.domNode.encoding=a},postCreate:function(){if(b.isIE&&this.srcNodeRef&&this.srcNodeRef.attributes){var a=this.srcNodeRef.attributes.getNamedItem("encType");a&&!a.specified&&typeof a.value==
"string"&&this.set("encType",a.value)}this.inherited(arguments)},reset:function(a){var c={returnValue:true,preventDefault:function(){this.returnValue=false},stopPropagation:function(){},currentTarget:a?a.target:this.domNode,target:a?a.target:this.domNode};this.onReset(c)!==false&&c.returnValue&&this.inherited(arguments,[])},onReset:function(){return true},_onReset:function(a){this.reset(a);b.stopEvent(a);return false},_onSubmit:function(a){var c=e.form.Form.prototype;if(this.execute!=c.execute||this.onExecute!=
c.onExecute){b.deprecated("dijit.form.Form:execute()/onExecute() are deprecated. Use onSubmit() instead.","","2.0");this.onExecute();this.execute(this.getValues())}this.onSubmit(a)===false&&b.stopEvent(a)},onSubmit:function(){return this.isValid()},submit:function(){this.onSubmit()!==false&&this.containerNode.submit()}});return e.form.Form});
define("dojo/data/util/filter",["dojo"],function(b){b.getObject("data.util.filter",true,b);b.data.util.filter.patternToRegExp=function(e,a){for(var c="^",d=null,f=0;f<e.length;f++){d=e.charAt(f);switch(d){case "\\":c+=d;f++;c+=e.charAt(f);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 a?new RegExp(c,"mi"):new RegExp(c,"m")};return b.data.util.filter});
define("dojo/data/util/sorter",["dojo"],function(b){b.getObject("data.util.sorter",true,b);b.data.util.sorter.basicComparator=function(e,a){var c=-1;if(e===null)e=undefined;if(a===null)a=undefined;if(e==a)c=0;else if(e>a||e==null)c=1;return c};b.data.util.sorter.createSortFunction=function(e,a){function c(m,p,n,o){return function(q,v){q=o.getValue(q,m);v=o.getValue(v,m);return p*n(q,v)}}for(var d=[],f,j=a.comparatorMap,g=b.data.util.sorter.basicComparator,h=0;h<e.length;h++){f=e[h];var k=f.attribute;
if(k){f=f.descending?-1:1;var l=g;if(j){if(typeof k!=="string"&&"toString"in k)k=k.toString();l=j[k]||g}d.push(c(k,f,l,a))}}return function(m,p){for(var n=0;n<d.length;){var o=d[n++](m,p);if(o!==0)return o}return 0}};return b.data.util.sorter});
define("dojo/data/util/simpleFetch",["dojo","dojo/data/util/sorter"],function(b){b.getObject("data.util.simpleFetch",true,b);b.data.util.simpleFetch.fetch=function(e){e=e||{};if(!e.store)e.store=this;var a=this,c=function(f,j){if(j.onError)j.onError.call(j.scope||b.global,f,j)},d=function(f,j){var g=j.abort||null,h=false,k=j.start?j.start:0,l=j.count&&j.count!==Infinity?k+j.count:f.length;j.abort=function(){h=true;g&&g.call(j)};var m=j.scope||b.global;if(!j.store)j.store=a;j.onBegin&&j.onBegin.call(m,
f.length,j);j.sort&&f.sort(b.data.util.sorter.createSortFunction(j.sort,a));if(j.onItem)for(var p=k;p<f.length&&p<l;++p){var n=f[p];h||j.onItem.call(m,n,j)}if(j.onComplete&&!h){p=null;j.onItem||(p=f.slice(k,l));j.onComplete.call(m,p,j)}};this._fetchItems(e,d,c);return e};return b.data.util.simpleFetch});
define("dojo/data/ItemFileReadStore",["dojo","dojo/data/util/filter","dojo/data/util/simpleFetch","dojo/date/stamp"],function(b){b.declare("dojo.data.ItemFileReadStore",null,{constructor:function(e){this._arrayOfAllItems=[];this._arrayOfTopLevelItems=[];this._loadFinished=false;this.url=this._ccUrl=this._jsonFileUrl=e.url;this._jsonData=e.data;this.data=null;this._datatypeMap=e.typeMap||{};this._datatypeMap.Date||(this._datatypeMap.Date={type:Date,deserialize:function(a){return b.date.stamp.fromISOString(a)}});
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(e.urlPreventCache!==undefined)this.urlPreventCache=e.urlPreventCache?true:false;if(e.hierarchical!==undefined)this.hierarchical=e.hierarchical?true:false;if(e.clearOnClose)this.clearOnClose=true;if("failOk"in e)this.failOk=e.failOk?true:
false},url:"",_ccUrl:"",data:null,typeMap:null,clearOnClose:false,urlPreventCache:false,failOk:false,hierarchical:true,_assertIsItem:function(e){if(!this.isItem(e))throw new Error("dojo.data.ItemFileReadStore: Invalid item argument.");},_assertIsAttribute:function(e){if(typeof e!=="string")throw new Error("dojo.data.ItemFileReadStore: Invalid attribute argument.");},getValue:function(e,a,c){e=this.getValues(e,a);return e.length>0?e[0]:c},getValues:function(e,a){this._assertIsItem(e);this._assertIsAttribute(a);
return(e[a]||[]).slice(0)},getAttributes:function(e){this._assertIsItem(e);var a=[];for(var c in e)c!==this._storeRefPropName&&c!==this._itemNumPropName&&c!==this._rootItemPropName&&c!==this._reverseRefMap&&a.push(c);return a},hasAttribute:function(e,a){this._assertIsItem(e);this._assertIsAttribute(a);return a in e},containsValue:function(e,a,c){var d=undefined;if(typeof c==="string")d=b.data.util.filter.patternToRegExp(c,false);return this._containsValue(e,a,c,d)},_containsValue:function(e,a,c,d){return b.some(this.getValues(e,
a),function(f){if(f!==null&&!b.isObject(f)&&d){if(f.toString().match(d))return true}else if(c===f)return true})},isItem:function(e){if(e&&e[this._storeRefPropName]===this)if(this._arrayOfAllItems[e[this._itemNumPropName]]===e)return true;return false},isItemLoaded:function(e){return this.isItem(e)},loadItem:function(e){this._assertIsItem(e.item)},getFeatures:function(){return this._features},getLabel:function(e){if(this._labelAttr&&this.isItem(e))return this.getValue(e,this._labelAttr)},getLabelAttributes:function(){if(this._labelAttr)return[this._labelAttr];
return null},_fetchItems:function(e,a,c){var d=this,f=function(k,l){var m=[],p,n;if(k.query){var o;p=k.queryOptions?k.queryOptions.ignoreCase:false;var q={};for(n in k.query){o=k.query[n];if(typeof o==="string")q[n]=b.data.util.filter.patternToRegExp(o,p);else if(o instanceof RegExp)q[n]=o}for(p=0;p<l.length;++p){var v=true,r=l[p];if(r===null)v=false;else for(n in k.query){o=k.query[n];d._containsValue(r,n,o,q[n])||(v=false)}v&&m.push(r)}}else for(p=0;p<l.length;++p){n=l[p];n!==null&&m.push(n)}a(m,
k)};if(this._loadFinished)f(e,this._getItemsArray(e.queryOptions));else{if(this._jsonFileUrl!==this._ccUrl){b.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:e,
filter:f});else{this._loadInProgress=true;var j=b.xhrGet({url:d._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk});j.addCallback(function(k){try{d._getItemsFromLoadedData(k);d._loadFinished=true;d._loadInProgress=false;f(e,d._getItemsArray(e.queryOptions));d._handleQueuedFetches()}catch(l){d._loadFinished=true;d._loadInProgress=false;c(l,e)}});j.addErrback(function(k){d._loadInProgress=false;c(k,e)});var g=null;if(e.abort)g=e.abort;e.abort=function(){j&&
j.fired===-1&&j.cancel();g&&g.call(e)}}else if(this._jsonData)try{this._loadFinished=true;this._getItemsFromLoadedData(this._jsonData);this._jsonData=null;f(e,this._getItemsArray(e.queryOptions))}catch(h){c(h,e)}else c(new Error("dojo.data.ItemFileReadStore: No JSON source data was provided as either URL or a nested Javascript object."),e)}},_handleQueuedFetches:function(){if(this._queuedFetches.length>0){for(var e=0;e<this._queuedFetches.length;e++){var a=this._queuedFetches[e],c=a.args;(a=a.filter)?
a(c,this._getItemsArray(c.queryOptions)):this.fetchItemByIdentity(c)}this._queuedFetches=[]}},_getItemsArray:function(e){if(e&&e.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(e){function a(q){return q!==null&&typeof q==="object"&&(!b.isArray(q)||d)&&!b.isFunction(q)&&(q.constructor==Object||b.isArray(q))&&typeof q._reference==="undefined"&&typeof q._type==="undefined"&&typeof q._value==="undefined"&&f.hierarchical}function c(q){f._arrayOfAllItems.push(q);for(var v in q){var r=q[v];
if(r)if(b.isArray(r))for(var s=0;s<r.length;++s){var w=r[s];a(w)&&c(w)}else a(r)&&c(r)}}var d=false,f=this;this._labelAttr=e.label;var j,g;this._arrayOfAllItems=[];this._arrayOfTopLevelItems=e.items;for(j=0;j<this._arrayOfTopLevelItems.length;++j){g=this._arrayOfTopLevelItems[j];if(b.isArray(g))d=true;c(g);g[this._rootItemPropName]=true}var h={},k;for(j=0;j<this._arrayOfAllItems.length;++j){g=this._arrayOfAllItems[j];for(k in g){if(k!==this._rootItemPropName){var l=g[k];if(l!==null)b.isArray(l)||
(g[k]=[l]);else g[k]=[null]}h[k]=k}}for(;h[this._storeRefPropName];)this._storeRefPropName+="_";for(;h[this._itemNumPropName];)this._itemNumPropName+="_";for(;h[this._reverseRefMap];)this._reverseRefMap+="_";if(h=e.identifier){this._itemsByIdentity={};this._features["dojo.data.api.Identity"]=h;for(j=0;j<this._arrayOfAllItems.length;++j){g=this._arrayOfAllItems[j];e=g[h];e=e[0];if(Object.hasOwnProperty.call(this._itemsByIdentity,e))if(this._jsonFileUrl)throw new Error("dojo.data.ItemFileReadStore:  The json data as specified by: ["+
this._jsonFileUrl+"] is malformed.  Items within the list have identifier: ["+h+"].  Value collided: ["+e+"]");else{if(this._jsonData)throw new Error("dojo.data.ItemFileReadStore:  The json data provided by the creation arguments is malformed.  Items within the list have identifier: ["+h+"].  Value collided: ["+e+"]");}else this._itemsByIdentity[e]=g}}else this._features["dojo.data.api.Identity"]=Number;for(j=0;j<this._arrayOfAllItems.length;++j){g=this._arrayOfAllItems[j];g[this._storeRefPropName]=
this;g[this._itemNumPropName]=j}for(j=0;j<this._arrayOfAllItems.length;++j){g=this._arrayOfAllItems[j];for(k in g){e=g[k];for(h=0;h<e.length;++h){l=e[h];if(l!==null&&typeof l=="object"){if("_type"in l&&"_value"in l){var m=l._type,p=this._datatypeMap[m];if(p)if(b.isFunction(p))e[h]=new p(l._value);else if(b.isFunction(p.deserialize))e[h]=p.deserialize(l._value);else throw new Error("dojo.data.ItemFileReadStore: Value provided in typeMap was neither a constructor, nor a an object with a deserialize function");
else throw new Error("dojo.data.ItemFileReadStore: in the typeMap constructor arg, no object class was specified for the datatype '"+m+"'");}if(l._reference){l=l._reference;if(b.isObject(l))for(m=0;m<this._arrayOfAllItems.length;++m){p=this._arrayOfAllItems[m];var n=true;for(var o in l)if(p[o]!=l[o])n=false;if(n)e[h]=p}else e[h]=this._getItemByIdentity(l);if(this.referenceIntegrity){l=e[h];this.isItem(l)&&this._addReferenceToMap(l,g,k)}}else this.isItem(l)&&this.referenceIntegrity&&this._addReferenceToMap(l,
g,k)}}}}},_addReferenceToMap:function(){},getIdentity:function(e){var a=this._features["dojo.data.api.Identity"];if(a===Number)return e[this._itemNumPropName];else if(e=e[a])return e[0];return null},fetchItemByIdentity:function(e){var a,c;if(this._loadFinished){a=this._getItemByIdentity(e.identity);if(e.onItem){c=e.scope?e.scope:b.global;e.onItem.call(c,a)}}else{var d=this;if(this._jsonFileUrl!==this._ccUrl){b.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:e});else{this._loadInProgress=true;c=b.xhrGet({url:d._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk});c.addCallback(function(f){var j=e.scope?e.scope:b.global;try{d._getItemsFromLoadedData(f);
d._loadFinished=true;d._loadInProgress=false;a=d._getItemByIdentity(e.identity);e.onItem&&e.onItem.call(j,a);d._handleQueuedFetches()}catch(g){d._loadInProgress=false;e.onError&&e.onError.call(j,g)}});c.addErrback(function(f){d._loadInProgress=false;if(e.onError)e.onError.call(e.scope?e.scope:b.global,f)})}else if(this._jsonData){d._getItemsFromLoadedData(d._jsonData);d._jsonData=null;d._loadFinished=true;a=d._getItemByIdentity(e.identity);if(e.onItem){c=e.scope?e.scope:b.global;e.onItem.call(c,a)}}}},
_getItemByIdentity:function(e){var a=null;if(this._itemsByIdentity&&Object.hasOwnProperty.call(this._itemsByIdentity,e))a=this._itemsByIdentity[e];else if(Object.hasOwnProperty.call(this._arrayOfAllItems,e))a=this._arrayOfAllItems[e];if(a===undefined)a=null;return a},getIdentityAttributes:function(){var e=this._features["dojo.data.api.Identity"];return e===Number?null:[e]},_forceLoad:function(){var e=this;if(this._jsonFileUrl!==this._ccUrl){b.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 a=b.xhrGet({url:this._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk,sync:true});a.addCallback(function(c){try{if(e._loadInProgress!==true&&!e._loadFinished){e._getItemsFromLoadedData(c);e._loadFinished=true}else if(e._loadInProgress)throw new Error("dojo.data.ItemFileReadStore:  Unable to perform a synchronous load, an async load is in progress.");
}catch(d){console.log(d);throw d;}});a.addErrback(function(c){throw c;})}else if(this._jsonData){e._getItemsFromLoadedData(e._jsonData);e._jsonData=null;e._loadFinished=true}}});b.extend(b.data.ItemFileReadStore,b.data.util.simpleFetch);return b.data.ItemFileReadStore});define("text!orion/widgets/templates/NewItemDialog.html",function(){return'<div class="dijitDialog" tabindex="-1" waiRole="dialog" waiState="labelledby-${id}_title">\n\t<div dojoAttachPoint="titleBar" class="dijitDialogTitleBar">\n\t\t<span dojoAttachPoint="titleNode" class="dijitDialogTitle" id="${id}_title"></span>\n\t\t<span dojoAttachPoint="closeButtonNode" class="dijitDialogCloseIcon" dojoAttachEvent="onclick: onCancel" title="${buttonCancel}">\n\t\t\t<span dojoAttachPoint="closeText" class="closeText" title="${buttonCancel}">x</span>\n\t\t</span>\n\t</div>\n\t<div dojoAttachPoint="containerNode" class="dijitDialogPaneContent">\n\t\t<!-- Actual content here --\>\n\t\t<div style="display: table">\n\t\t\t<div style="display: table-row">\n\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t<label dojoAttachPoint="itemNameLabel" for="${id}_itemName" style="padding-right: 10">${itemNameLabelText}</label>\n\t\t\t\t</div>\n\t\t\t\t<div style="display: table-cell; padding: 5; width: 30em; text-align: left;">\n\t\t\t\t\t<input dojoType="dijit.form.ValidationTextBox" dojoAttachPoint="itemName" id="${id}_itemName" style="display: inline-block; width: 98%;" value="">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div style="display: none;" dojoAttachPoint="itemAdvancedInfo">\n\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t<label dojoAttachPoint="itemURLLabel" for="itemURL" style="padding-right: 10">Server Path:</label>\n\t\t\t\t</div>\n\t\t\t\t<div style="display: table-cell; width: 40em; text-align: left; padding:5;">\n\t\t\t\t\t<input dojoAttachPoint="itemURL" style="display: inline-block; width: 98%;" value="">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div style="display: none;" dojoAttachPoint="itemAdvancedInfo1">\n\t\t\t\t<div style="display: table-cell;"></div>\n\t\t\t\t<div style="display: table-cell;">\n\t\t\t\t\t<input dojoAttachPoint="createCheckbox" id="${id}_createCheckbox" dojoType="dijit.form.CheckBox" checked="checked" value="on" type="checkbox">\n\t\t\t\t\t<label dojoAttachPoint="createCheckboxLabel" for="${id}_createCheckbox">Create if doesn\'t exist</label>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div style="display: table-row">\n\t\t\t\t<div style="display: table-cell; padding: 5"></div>\n\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t<button dojoAttachPoint="newItemButton" dojoType="dijit.form.Button" type="submit" value="OK" style="padding: 20 0 10 0; float: right; clear: both;">OK\n\t\t\t\t\t</button>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>'});
define("orion/widgets/NewItemDialog",["dojo","dijit","dijit/Dialog","dijit/form/CheckBox","dijit/form/CheckBox","dijit/form/Form","dijit/form/ValidationTextBox","dojo/data/ItemFileReadStore","orion/widgets/_OrionDialogMixin","text!orion/widgets/templates/NewItemDialog.html"],function(b,e){b.declare("orion.widgets.NewItemDialog",[e.Dialog,orion.widgets._OrionDialogMixin],{widgetsInTemplate:true,templateString:b.cache("orion","widgets/templates/NewItemDialog.html"),constructor:function(a){this.options=
a||{};this.options.advanced=this.options.advanced||false},postMixInProperties:function(){this.inherited(arguments);this.itemNameLabelText=this.options.label||"Name:"},postCreate:function(){this.inherited(arguments);if(this.options.advanced){this.itemAdvancedInfo.style.display="table-row";this.itemAdvancedInfo1.style.display="table-row";b.connect(this.itemURL,"onkeyup",null,b.hitch(this,this.onURLChange))}else{this.itemAdvancedInfo.style.display="none";this.itemAdvancedInfo1.style.display="none"}},
execute:function(){var a,c;this.newItemButton.focus();if(this.options.advanced){a=this.itemURL.value.replace(/^\s+|\s+$/g,"");c=this.createCheckbox.get("disabled")?false:this.createCheckbox.get("checked")}this.options.func(this.itemName.value,a&&a!==""?a:undefined,c)},onURLChange:function(){var a=this.itemURL.value;if(a.match(/^file:\/\//))this.createCheckbox.set("disabled",false);else a.match(/^[a-zA-Z][a-zA-Z]+:\/\/.+/)?this.createCheckbox.set("disabled",true):this.createCheckbox.set("disabled",
false)}})});define("text!orion/git/widgets/templates/RemotePrompterDialog.html",function(){return'<div class="dijitDialog" tabindex="-1" waiRole="dialog" waiState="labelledby-${id}_title">\n\t<div dojoAttachPoint="titleBar" class="dijitDialogTitleBar">\n\t\t<span dojoAttachPoint="titleNode" class="dijitDialogTitle" id="${id}_title"></span>\n\t\t<span dojoAttachPoint="closeButtonNode" class="dijitDialogCloseIcon" dojoAttachEvent="onclick: onCancel" title="${buttonCancel}">\n\t\t\t<span dojoAttachPoint="closeText" class="closeText" title="${buttonCancel}">x</span>\n\t\t</span>\n\t</div>\n\t<div dojoAttachPoint="containerNode" class="dijitDialogPaneContent">\n\t\t<!-- Actual content here --\>\n\t\t\t<div style="display: table">\n\t\t\t\t<div style="display: table-row"> \n\n\t\t\t\t\t<div style="display: table-cell; padding: 1px; vertical-align: bottom;">\n\t\t\t\t\t\t<div dojoAttachPoint="treeContainerNode" id="${id}_treeContainerNode" dojoType="dijit.layout.BorderContainer" style="width:25em; height:25em; overflow:auto;" design="sidebar" gutters="true">\n\t\t\t\t\t\t\t<div dojoAttachPoint="treeContentPane" class="dijitDialogPaneContent" id="${id}_treeContentPane dojoType="dijit.layout.ContentPane" region="center" gutters="true">\n\t\t\t\t\t\t\t\t<div dojoAttachPoint="browseRemoteExplorerTree" class="explorerTreeClass" id="${id}_browseRemoteExplorerTree" style="margin-top: -3px;"></div> \n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: table-cell; padding: 1px; vertical-align: bottom;">\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: table-cell; padding: 1px; vertical-align: bottom;">\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t\n\t\t\t\t<div style="display: table-row" dojoAttachPoint="newBranchSection">\n\t\t\t\t\t<div style="display: table-cell; padding: 1px;">\n\t\t\t\t\t<label for="${id}_newBranch">${newBranchText}</label>\n\t\t\t\t\t<input dojoAttachPoint="newBranch" id="${id}_newBranch" value="" disabled=true/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: table-cell; padding: 1px;">\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: table-cell; padding: 1px;">\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t \n\t\t\t\t<div style="display: table-row">\n\t\t\t\t\t<div style="display: table-cell; padding: 1px;">\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: table-cell; padding: 1px;">\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: table-cell; padding: 1px;">\n\t\t\t\t\t\n\t\t\t\t\t\t<button dojoAttachPoint="RemoteBrowserButton" disabled=true dojoType="dijit.form.Button" type="submit" value="OK" style="padding: 20 0 10 0; float: right; clear: both;">${buttonOk}\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div> <!-- end table --\>\n\t</div> <!-- content pane --\>\n</div>'});
define("orion/git/widgets/RemotePrompterDialog",["dojo","dijit","orion/util","orion/git/git-clones-explorer","dijit/Dialog","dijit/form/Button","orion/widgets/ExplorerTree","orion/widgets/_OrionDialogMixin","text!orion/git/widgets/templates/RemotePrompterDialog.html"],function(b,e,a,c){b.declare("orion.git.widgets.RemotePrompterDialog",[e.Dialog,orion.widgets._OrionDialogMixin],{treeWidget:null,treeRoot:{},widgetsInTemplate:true,templateString:b.cache("orion","git/widgets/templates/RemotePrompterDialog.html"),
constructor:function(){this.inherited(arguments);this.options=arguments[0]||{};this.treeRoot=this.options.treeRoot},postMixInProperties:function(){this.inherited(arguments);this.title=this.options.title||"Choose a Folder";this.newBranchText="New Branch:";this.buttonOk="OK"},postCreate:function(){this.inherited(arguments);this.loadRemoteChildren(this.treeRoot);b.connect(this.newBranch,"onchange",b.hitch(this,this.validate));if(this.options.hideNewBranch)this.newBranchSection.style.display="none"},
loadRemoteChildren:function(d){this.treeRoot=d;this.createTree(new c.GitClonesModel(this.gitClient,null,this.gitClient.getGitClone,this.treeRoot))},createTree:function(d){var f=this.treeWidget=new orion.widgets.ExplorerTree({id:"treeWidget",style:"width:100%; height:100%",model:d,region:"center",showRoot:false,persist:true,openOnClick:false,getLabel:function(g){return g.Name},getIconClass:function(g){if(g.BranchLocation&&g.RemoteLocation)return"gitRepoItem";if(g.GroupNode)return g.Name==="Branch"?
"gitBranchesItem":"gitRemotesItem";if(g.Type==="Branch"||g.Type==="RemoteTrackingBranch")return"gitBranchItem";if(g.Type==="Remote")return"gitRemoteItem";return"gitDefaultItem"}}),j=this;this.treeWidget._inheritedSelectNode=this.treeWidget._selectNode;this.treeWidget._selectNode=function(g){f._inheritedSelectNode(g);j.newBranch.disabled=g.item&&g.item.Type==="Remote"?false:true;b.hitch(j,j.validate)()};this.treeWidget.startup();b.byId(this.treeContentPane.id).appendChild(this.treeWidget.domNode)},
validate:function(){var d=this.treeWidget.getSelectedItems();if(d.length==1)if(d[0].Type==="RemoteTrackingBranch"){this.RemoteBrowserButton.disabled=false;return}else if(d[0].Type==="Remote")if(this.newBranch.value!=""){this.RemoteBrowserButton.disabled=false;return}this.RemoteBrowserButton.disabled=true},execute:function(){var d=this.treeWidget.getSelectedItems();this.onHide();d[0].Type==="RemoteTrackingBranch"?this.options.func(d[0]):this.options.func(null,d[0],this.newBranch.value)}})});
define("orion/git/gitCommands",["dojo","orion/commands","orion/util","orion/git/widgets/CloneGitRepositoryDialog","orion/git/widgets/InitGitRepositoryDialog","orion/git/widgets/AddRemoteDialog","orion/git/widgets/GitCredentialsDialog","orion/widgets/NewItemDialog","orion/git/widgets/RemotePrompterDialog"],function(b,e,a){var c={};(function(){function d(j){serviceRegistry.getService("orion.page.message").then(function(g){if(!(j.status===401||j.status===403)){var h=[];h.Severity="Error";h.HTML=false;
try{var k=JSON.parse(j.responseText);h.Message=k.DetailedMessage?k.DetailedMessage:k.Message}catch(l){h.Message=j.message}g.setProgressResult(h)}})}var f=false;c.updateNavTools=function(j,g,h,k,l){var m=b.byId(h);if(m)b.empty(m);else throw"could not find toolbar "+h;j.getService("orion.page.command").then(b.hitch(g,function(p){p.renderCommands(m,"dom",l,g,"image",null,null,true);if(k){var n=b.create("span",{id:k},m,"last");p.renderCommands(n,"dom",null,g,"image",null,null,true)}}));if(!f){f=true;
j.getService("orion.page.selection").then(function(p){p.addEventListener("selectionChanged",function(n,o){var q=b.byId(k);if(q){b.empty(q);j.getService("orion.page.command").then(function(v){v.renderCommands(q,"dom",o,g,"image",null,null,true)})}})})}};c.getNewItemName=function(j,g,h,k,l,m,p){var n;if(h)j=b.byId(k);else if(g=g.makeNewItemPlaceHolder(j,k,p)){j=g.refNode;n=g.tempNode}else j=b.byId(k);if(j)a.getUserText(k+"EditBox",j,false,l,b.hitch(this,function(o){if(o){n&&n.parentNode.removeChild(n);
m(o)}}));else(k=window.prompt(l))&&m(k)};c.handleKnownHostsError=function(j,g,h,k){confirm("Would you like to add "+g.KeyType+" key for host "+g.Host+" to continue operation? Key fingerpt is "+g.HostFingerprint+".")&&j.getService("orion.net.ssh").then(function(l){l.addKnownHosts(g.Host+" "+g.KeyType+" "+g.HostKey).then(function(){l.getKnownHosts().then(function(m){h.knownHosts=m;k(h)})})})};c.handleSshAuthenticationError=function(j,g,h,k,l){j=new orion.git.widgets.GitCredentialsDialog({title:l,serviceRegistry:j,
func:k,errordata:h.errordata});j.startup();j.show()};c.getDefaultSshOptions=function(j){var g=new b.Deferred;j.getService("orion.net.ssh").then(function(h){h.getKnownHosts().then(function(k){g.callback({knownHosts:k,gitSshUsername:"",gitSshPassword:"",gitPrivateKey:"",gitPassphrase:""})})});return g};c.handleProgressServiceResponse=function(j,g,h,k,l,m){if(j.Running==false){if(j.Result&&j.Result.HttpCode==403){if(j.Result.ErrorData&&j.Result.ErrorData.HostKey){b.hitch(this,c.handleKnownHostsError)(h,
j.Result.ErrorData,g,l);return}}else if(j.Result&&j.Result.HttpCode==401){if(j.Result.ErrorData)g.errordata=j.Result.ErrorData;b.hitch(this,c.handleSshAuthenticationError)(h,j.Result.ErrorData,g,l,m);return}if(j.Result&&j.Result.HttpCode!=200)console.error("error "+j.Result.HttpCode+" while running opperation: "+j.Result.DetailedMessage);else k&&k(j)}};c.createFileCommands=function(j,g,h){var k=new e.Command({name:"Link Repository",image:"/images/link.gif",id:"eclipse.linkRepository",callback:function(l){var m=
new orion.widgets.NewItemDialog({title:"Link Repository",label:"Folder name:",func:function(p){j.getService("orion.core.file").then(function(n){n.loadWorkspace("").then(function(o){n.createProject(o.Location,p,l.ContentLocation,false).then(function(q){alert("Repository was linked to "+q.Name);n.read(q.ContentLocation,true).then(function(v){window.location.replace("/navigate/table.html#"+v.ChildrenLocation)})})})})},advanced:false});m.startup();m.show()},visibleWhen:function(l){if(l.ContentLocation)return true;
return false}});g.addCommand(k,"object");k=new e.Command({name:"Checkout",image:"/git/images/checkout.gif",id:"eclipse.checkoutBranch",callback:function(l){j.getService("orion.git.provider").then(function(m){l.Type==="Branch"?m.checkoutBranch(l.CloneLocation,l.Name).then(function(){b.hitch(h,h.changedItem)(l.parent)},d):m.addBranch(l.BranchLocation,null,l.Name).then(function(p){m.checkoutBranch(p.CloneLocation,p.Name).then(function(){b.hitch(h,h.changedItem)(l.parent.parent.parent)},d)},d)})},visibleWhen:function(l){return l.Type===
"Branch"||l.Type==="RemoteTrackingBranch"}});g.addCommand(k,"object");k=new e.Command({name:"Add Branch",image:"/images/add.gif",id:"eclipse.addBranch",callback:function(l,m,p){c.getNewItemName(l,h,false,p,"Branch name",function(n){!n&&n==""||j.getService("orion.git.provider").then(function(o){o.addBranch(l.Location,n).then(function(){b.hitch(h,h.changedItem)(l)},d)})})},visibleWhen:function(l){return l.GroupNode&&l.Name==="Branch"}});g.addCommand(k,"object");k=new e.Command({name:"Remove Branch",
image:"/images/delete.gif",id:"eclipse.removeBranch",callback:function(l){confirm("Are you sure you want to remove branch "+l.Name+"?")&&j.getService("orion.git.provider").then(function(m){m.removeBranch(l.Location).then(function(){b.hitch(h,h.changedItem)(l.parent)},d)})},visibleWhen:function(l){return l.Type==="Branch"&&!l.Current}});g.addCommand(k,"object");k=new e.Command({name:"Add Remote",image:"/images/add.gif",id:"eclipse.addRemote",callback:function(l){var m=new orion.git.widgets.AddRemoteDialog({func:function(p,
n){j.getService("orion.git.provider").then(function(o){o.addRemote(l.Location,p,n).then(function(){b.hitch(h,h.changedItem)(l)},d)})}});m.startup();m.show()},visibleWhen:function(l){return l.GroupNode&&l.Name==="Remote"}});g.addCommand(k,"object");k=new e.Command({name:"Remove Remote",image:"/images/delete.gif",id:"eclipse.removeRemote",callback:function(l){confirm("Are you sure you want to remove remote "+l.Name+"?")&&j.getService("orion.git.provider").then(function(m){m.removeRemote(l.Location).then(function(){b.hitch(h,
h.changedItem)(l.parent)},d)})},visibleWhen:function(l){return l.Type==="Remote"}});g.addCommand(k,"object");k=new e.Command({name:"Show Git Log",id:"eclipse.openGitLog",hrefCallback:function(l){if(l.Type==="RemoteTrackingBranch")return"/git/git-log.html#"+l.Location+"?page=1";return"/git/git-log.html#"+l.CommitLocation+"?page=1"},visibleWhen:function(l){return l.Type==="Branch"||l.Type==="RemoteTrackingBranch"}});g.addCommand(k,"object");k=new e.Command({name:"Show in Navigator",id:"eclipse.openCloneContent",
hrefCallback:function(l){return"/navigate/table.html#"+l.ContentLocation+"?depth=1"},visibleWhen:function(l){if(!l.ContentLocation)return false;return true}});g.addCommand(k,"object");k=new e.Command({name:"Compare With Each Other",image:"/git/images/open_compare.gif",id:"eclipse.compareGitCommits",hrefCallback:function(l){var m=new b.Deferred;j.getService("orion.git.provider").then(function(p){p.getDiff(l[0].DiffLocation,l[1].Name,function(n,o){m.callback("/compare/compare.html?readonly#"+o.xhr.getResponseHeader("Location"))})});
return m},visibleWhen:function(l){if(h.isDirectory)return false;if(b.isArray(l)&&l.length===2&&l[0].Type==="Commit"&&l[1].Type==="Commit")return true;return false}});g.addCommand(k,"dom");k=new e.Command({name:"Compare With Working Tree",image:"/git/images/open_compare.gif",id:"eclipse.compareWithWorkingTree",hrefCallback:function(l){return"/compare/compare.html#"+l.DiffLocation},visibleWhen:function(l){return l.Type==="Commit"&&!h.isDirectory}});g.addCommand(k,"object");k=new e.Command({name:"Open",
id:"eclipse.openGitCommit",hrefCallback:function(l){return"/edit/edit.html#"+l.ContentLocation},visibleWhen:function(l){return l.Type==="Commit"&&l.ContentLocation!=null&&!h.isDirectory}});g.addCommand(k,"object");k=new e.Command({name:"Fetch",image:"/git/images/fetch.gif",id:"eclipse.orion.git.fetch",callback:function(l){var m=l.Location;c.getDefaultSshOptions(j).then(function(p){var n=arguments.callee;j.getService("orion.git.provider").then(function(o){j.getService("orion.page.message").then(function(q){var v=
o.doFetch(m,null,p.gitSshUsername,p.gitSshPassword,p.knownHosts,p.gitPrivateKey,p.gitPassphrase);q.showWhile(v,"Fetching remote: "+m).then(function(r){c.handleProgressServiceResponse(r,p,j,function(){b.xhrGet({url:m,headers:{"Orion-Version":"1"},postData:b.toJson({GitSshUsername:p.gitSshUsername,GitSshPassword:p.gitSshPassword,GitSshPrivateKey:p.gitPrivateKey,GitSshPassphrase:p.gitPassphrase,GitSshKnownHost:p.knownHosts}),handleAs:"json",timeout:5E3,load:function(s){return s},error:function(s,w){console.error("HTTP status code: ",
w.xhr.status);return s}}).then(function(s){h.parentId==="explorer-tree"&&o.getLog(s.HeadLocation,s.Id,function(w){h.renderer.setIncomingCommits(w);h.loadCommitsList(s.CommitLocation+"?page=1",s,true)})},d)},n,"Fetch Git Repository")})})})})},visibleWhen:function(l){return l.Type==="RemoteTrackingBranch"||l.Type==="Remote"}});g.addCommand(k,"dom");g.addCommand(k,"object");k=new e.Command({name:"Merge",image:"/git/images/merge.gif",id:"eclipse.orion.git.merge",callback:function(l){j.getService("orion.git.provider").then(function(m){m.doMerge(l.HeadLocation,
l.Name).then(function(p){j.getService("orion.page.message").then(function(n){var o=[];if(p.jsonData&&(p.jsonData.Result=="FAST_FORWARD"||p.jsonData.Result=="ALREADY_UP_TO_DATE")){b.query(".treeTableRow").forEach(function(r){b.toggleClass(r,"incomingCommitsdRow",false)});o.Severity="Ok";o.HTML=false;o.Message=p.jsonData.Result}else if(p.jsonData){var q=l.HeadLocation.replace("commit/HEAD","status");o.Severity="Warning";o.HTML=true;o.Message="<span>"+p.jsonData.Result+'. Go to <a href="/git/git-status.html#'+
q+'">Git Status page</a>.<span>'}else if(p.error){o.Severity="Error";if(p.error.responseText&&JSON.parse(p.error.responseText)){var v=JSON.parse(p.error.responseText);o.Message=v.DetailedMessage?v.DetailedMessage:v.Message}else o.Message=p.error.message;o.HTML=true;o.Message="<span>"+o.Message+' Go to <a href="/git/git-status.html#'+q+'">Git Status page</a>.<span>'}n.setProgressResult(o)})},function(p){j.getService("orion.page.message").then(function(n){var o=[],q=l.HeadLocation.replace("commit/HEAD",
"status");o.Severity="Error";o.HTML=true;o.Message="<span>"+b.fromJson(p.ioArgs.xhr.responseText).DetailedMessage+'. Go to <a href="/git/git-status.html#'+q+'">Git Status page</a>.<span>';n.setProgressResult(o)})})})},visibleWhen:function(l){return l.Type==="RemoteTrackingBranch"||l.Type==="Branch"&&!l.Current}});g.addCommand(k,"dom");g.addCommand(k,"object");k=new e.Command({name:"Push All",image:"/git/images/push.gif",id:"eclipse.orion.git.push",callback:function(l){var m=b.hash();c.getDefaultSshOptions(j).then(function(p){var n=
arguments.callee;j.getService("orion.git.provider").then(function(o){j.getService("orion.page.message").then(function(q){var v=o.doPush(l.RemoteLocation,"HEAD",null,p.gitSshUsername,p.gitSshPassword,p.knownHosts,p.gitPrivateKey,p.gitPassphrase);q.showWhile(v,"Pushing remote: "+m).then(function(r){c.handleProgressServiceResponse(r,p,j,function(s){s.Result.Severity=="Ok"&&b.query(".treeTableRow").forEach(function(w){b.toggleClass(w,"outgoingCommitsdRow",false)})},n,"Push Git Repository")})})})})},visibleWhen:function(l){return l.toRef?
l.RepositoryPath===""&&l.toRef.Type==="Branch"&&l.toRef.Current&&l.toRef.RemoteLocation:l.Type==="Branch"&&l.Current&&l.RemoteLocation}});g.addCommand(k,"dom");g.addCommand(k,"object");k=new e.Command({name:"Switch to Remote",id:"eclipse.orion.git.switchToRemote",hrefCallback:function(l){return"/git/git-log.html#"+l.toRef.RemoteLocation+"?page=1"},visibleWhen:function(l){return l.toRef!=null&&l.toRef.Type==="Branch"&&l.toRef.Current&&l.toRef.RemoteLocation}});g.addCommand(k,"dom");k=new e.Command({name:"Switch to Current Local",
id:"eclipse.orion.git.switchToCurrentLocal",hrefCallback:function(l){var m=new b.Deferred,p=l.CloneLocation;if(p==null)p=JSON.parse(l.responseText).ErrorData.CloneLocation;b.xhrGet({url:p,headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(n){b.xhrGet({url:n.Children[0].BranchLocation,headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(o){b.forEach(o.Children,function(q){q.Current==true&&m.callback("/git/git-log.html#"+q.CommitLocation+"?page=1")})}})}});return m},
visibleWhen:function(l){if(l.Type==="RemoteTrackingBranch")return true;try{if(JSON.parse(l.responseText).ErrorData)return true}catch(m){}return false}});g.addCommand(k,"dom");k=new e.Command({name:"Push to...",image:"/git/images/push.gif",id:"eclipse.orion.git.pushto",callback:function(l){var m={};for(var p in l.parent.parent.children)if(l.parent.parent.children[p].Name==="Remote")m=l.parent.parent.children[p];j.getService("orion.git.provider").then(function(n){n=new orion.git.widgets.RemotePrompterDialog({title:"Choose Branch",
serviceRegistry:j,gitClient:n,treeRoot:m,func:b.hitch(this,function(o,q,v){console.info("Branch "+o+" remote "+q+" new branch "+v)})});n.startup();n.show()})},visibleWhen:function(){return false}});g.addCommand(k,"dom");g.addCommand(k,"object");k=new e.Command({name:"Reset Index",image:"/git/images/refresh.gif",id:"eclipse.orion.git.resetIndex",callback:function(l){confirm("The content of your active branch witll be replaced with "+l.Name+". Are you sure?")&&j.getService("orion.git.provider").then(function(m){m.resetIndex(l.IndexLocation,
l.Name).then(function(){j.getService("orion.page.message").then(function(p){var n=[];n.Severity="Info";n.HTML=false;n.Message="Ok";p.setProgressResult(n)})},function(p){j.getService("orion.page.message").then(function(n){var o=[];o.Severity="Error";o.HTML=false;o.Message=p.message;n.setProgressResult(o)})})})},visibleWhen:function(l){return l.Type==="RemoteTrackingBranch"}});g.addCommand(k,"object");k=new e.Command({name:"Tag",image:"/git/images/tag.gif",id:"eclipse.orion.git.addTag",callback:function(l,
m,p){var n=new b.Deferred;c.getNewItemName(l,h,false,p,"Tag name",function(o){if(!(!o||o==="")){j.getService("orion.git.provider").then(function(q){q.doAddTag(l.Location,o,function(v){v=v.Location.replace(/[^\.\:\-\_0-9A-Za-z]/g,"");v=b.byId(v);b.place(document.createTextNode(o),b.create("p",{style:"margin: 5px"},v.children[5],"last"),"only")})});return n}},4)},visibleWhen:function(l){return l.Type==="Commit"}});g.addCommand(k,"object")};c.createStatusCommands=function(j,g,h,k,l,m){l=new e.Command({name:"Fetch latest commits",
tooltip:"Fetch latest commits",image:"/git/images/fetch.gif",id:"eclipse.orion.git.fetch",callback:function(p){var n=p.Location;c.getDefaultSshOptions(j).then(function(o){var q=arguments.callee;j.getService("orion.git.provider").then(function(v){j.getService("orion.page.message").then(function(r){var s=v.doFetch(n,null,o.gitSshUsername,o.gitSshPassword,o.knownHosts,o.gitPrivateKey,o.gitPassphrase);r.showWhile(s,"Fetching remote: "+n).then(function(w){c.handleProgressServiceResponse(w,o,j,function(){b.xhrGet({url:n,
headers:{"Orion-Version":"1"},postData:b.toJson({GitSshUsername:o.gitSshUsername,GitSshPassword:o.gitSshPassword,GitSshPrivateKey:o.gitPrivateKey,GitSshPassphrase:o.gitPassphrase,GitSshKnownHost:o.knownHosts}),handleAs:"json",timeout:5E3,load:function(u){return u},error:function(u,y){console.error("HTTP status code: ",y.xhr.status)}}).then(function(u){v.getLog(u.HeadLocation,u.Id,function(y){m.renderer.setIncomingCommits(y);m.loadCommitsList(u.CommitLocation+"?page=1&pageSize=5",u,true)})})},q,"Fetch Git Repository")})})})})},
visibleWhen:function(p){return p.Type==="RemoteTrackingBranch"||p.Type==="Remote"}});g.addCommand(l,"object");g.registerCommandContribution("eclipse.orion.git.fetch",k+1);l=new e.Command({name:"Merge into local",image:"/git/images/merge.gif",id:"eclipse.orion.git.merge",callback:function(p){j.getService("orion.git.provider").then(function(n){n.doMerge(p.HeadLocation,p.Name).then(function(o){j.getService("orion.page.message").then(function(q){var v=[];if(o.jsonData&&(o.jsonData.Result=="FAST_FORWARD"||
o.jsonData.Result=="ALREADY_UP_TO_DATE")){b.query(".treeTableRow").forEach(function(w){b.toggleClass(w,"incomingCommitsdRow",false)});v.Severity="Ok";v.HTML=false;v.Message=o.jsonData.Result}else if(o.jsonData){var r=p.HeadLocation.replace("commit/HEAD","status");v.Severity="Warning";v.HTML=true;v.Message="<span>"+o.jsonData.Result+'. Go to <a href="/git/git-status.html#'+r+'">Git Status page</a>.<span>'}else if(o.error){v.Severity="Error";if(o.error.responseText&&JSON.parse(o.error.responseText)){var s=
JSON.parse(o.error.responseText);v.Message=s.DetailedMessage?s.DetailedMessage:s.Message}else v.Message=o.error.message;v.HTML=true;v.Message="<span>"+v.Message+' Go to <a href="/git/git-status.html#'+r+'">Git Status page</a>.<span>'}q.setProgressResult(v);h()})},function(o){j.getService("orion.page.message").then(function(q){var v=[],r=p.HeadLocation.replace("commit/HEAD","status");v.Severity="Error";v.HTML=true;v.Message="<span>"+b.fromJson(o.ioArgs.xhr.responseText).DetailedMessage+'. Go to <a href="/git/git-status.html#'+
r+'">Git Status page</a>.<span>';q.setProgressResult(v)})})})},visibleWhen:function(p){return p.Type==="RemoteTrackingBranch"||p.Type==="Branch"&&!p.Current}});g.addCommand(l,"object");g.registerCommandContribution("eclipse.orion.git.merge",k+2);l=new e.Command({name:"Push into remote",image:"/git/images/push.gif",id:"eclipse.orion.git.push",callback:function(p){var n=b.hash();c.getDefaultSshOptions(j).then(function(o){var q=arguments.callee;j.getService("orion.git.provider").then(function(v){j.getService("orion.page.message").then(function(r){var s=
v.doPush(p.RemoteLocation,"HEAD",null,o.gitSshUsername,o.gitSshPassword,o.knownHosts,o.gitPrivateKey,o.gitPassphrase);r.showWhile(s,"Pushing remote: "+n).then(function(w){c.handleProgressServiceResponse(w,o,j,function(u){if(u.Result.Severity=="Ok"){b.query(".treeTableRow").forEach(function(y){b.toggleClass(y,"outgoingCommitsdRow",false)});h()}},q,"Push Git Repository")})})})})},visibleWhen:function(p){return p.Type==="LocalBranch"}});g.addCommand(l,"object");g.registerCommandContribution("eclipse.orion.git.push",
k+3)};c.createGitClonesCommands=function(j,g,h,k,l,m){k=new e.Command({name:"Clone Repository",tooltip:"Clone Git Repository",id:"eclipse.cloneGitRepository",callback:function(){var p=new orion.git.widgets.CloneGitRepositoryDialog({serviceRegistry:j,fileClient:m,func:function(n,o,q){c.getDefaultSshOptions(j).then(function(v){var r=arguments.callee;j.getService("orion.git.provider").then(function(s){j.getService("orion.page.message").then(function(w){var u=s.cloneGitRepository(q,n,o,h.defaultPath,
v.gitSshUsername,v.gitSshPassword,v.knownHosts,v.gitPrivateKey,v.gitPassphrase);w.showWhile(u,"Cloning repository: "+n).then(function(y){c.handleProgressServiceResponse(y,v,j,function(){h.redisplayClonesList&&b.hitch(h,h.redisplayClonesList)()},r,"Clone Git Repository")})})})})}});p.startup();p.show()},visibleWhen:function(){return true}});g.addCommand(k,"dom");k=new e.Command({name:"Init Repository",tooltip:"Init Git Repository in Workspace",id:"eclipse.initGitRepository",callback:function(){var p=
new orion.git.widgets.CloneGitRepositoryDialog({serviceRegistry:j,title:"Init Repository",fileClient:m,advancedOnly:true,func:function(n,o,q){c.getDefaultSshOptions(j).then(function(){j.getService("orion.git.provider").then(function(v){v.cloneGitRepository(q,n,o,h.defaultPath).then(function(){h.redisplayClonesList&&b.hitch(h,h.redisplayClonesList)()},d)})})}});p.startup();p.show()},visibleWhen:function(){return true}});g.addCommand(k,"dom");k=new e.Command({name:"Delete Clone",image:"/images/delete.gif",
id:"eclipse.git.deleteClone",visibleWhen:function(p){p=b.isArray(p)?p:[p];if(p.length===0)return false;for(var n=0;n<p.length;n++)if(!p[n].ContentLocation)return false;return true},callback:function(p){if(b.isArray(p)){if(confirm("Are you sure you want do delete "+p.length+" repositories?"))for(var n=0,o=0;o<p.length;o++)j.getService("orion.git.provider").then(function(q){q.removeGitRepository(p[o].Location).then(function(){n++;n>=p.length&&h.redisplayClonesList&&b.hitch(h,h.redisplayClonesList)()},
d)})}else confirm("Are you sure you want to delete "+p.Name+"?")&&j.getService("orion.git.provider").then(function(q){q.removeGitRepository(p.Location).then(function(){h.redisplayClonesList&&b.hitch(h,h.redisplayClonesList)()},d)})}});g.addCommand(k,"object");g.addCommand(k,"dom")}})();return c});
define("dojox/layout/ToggleSplitter",["dojo","dijit","dijit/layout/BorderContainer"],function(b,e){b.declare("dojox.layout.ToggleSplitter",[e.layout._Splitter],{open:true,closedThreshold:5,openSize:"",_closedSize:"0",templateString:'<div class="dijitSplitter dojoxToggleSplitter" dojoAttachEvent="onkeypress:_onKeyPress,onmousedown:_onMouseDown" tabIndex="0" role="separator"><div dojoAttachPoint="toggleNode" class="dijitSplitterThumb dojoxToggleSplitterIcon"></div></div>',postCreate:function(){this._started=
false;this.inherited(arguments);var a=this.region;b.addClass(this.domNode,"dojoxToggleSplitter"+a.charAt(0).toUpperCase()+a.substring(1));this.connect(this,"onDblClick","_toggleMe")},startup:function(){this.inherited(arguments);var a=this.child.domNode,c=b.style(a,this.horizontal?"height":"width");b.forEach(["toggleSplitterOpen","toggleSplitterClosedThreshold","toggleSplitterOpenSize"],function(d){var f=d.substring(14);f=f.charAt(0).toLowerCase()+f.substring(1);if(d in this.child)this[f]=this.child[d]},
this);if(!this.openSize)this.openSize=this.open?c+"px":"75px";this._openStyleProps=this._getStyleProps(a,true);this._started=true;this.set("open",this.open);return this},_onMouseUp:function(){b.disconnect(this._onMoveHandle);b.disconnect(this._onUpHandle);delete this._onMoveHandle;delete this._onUpHandle;delete this._startPosn},_onPrelimMouseMove:function(a){if(Math.abs((this._startPosn||0)-(this.horizontal?a.clientY:a.clientX))>=3){b.disconnect(this._onMoveHandle);this._startDrag(a)}},_onMouseDown:function(a){if(this.open){if(!this._onUpHandle)this._onUpHandle=
b.connect(b.body(),"onmouseup",this,"_onMouseUp");if(!this._onMoveHandle){this._startPosn=this.horizontal?a.clientY:a.clientX;this._onMoveHandle=b.connect(b.body(),"onmousemove",this,"_onPrelimMouseMove")}}},_handleOnChange:function(){var a=this.child.domNode,c;c=this.horizontal?"height":"width";if(this.open){var d=b.mixin({display:"block",overflow:"auto",visibility:"visible"},this._openStyleProps);d[c]=this._openStyleProps&&this._openStyleProps[c]?this._openStyleProps[c]:this.openSize;b.style(a,
d);this.connect(this.domNode,"onmousedown","_onMouseDown")}else{d=b.getComputedStyle(a);c=this._getStyleProps(a,true,d);d=this._getStyleProps(a,false,d);this._openStyleProps=c;b.style(a,d)}this._setStateClass();this.container._started&&this.container._layoutChildren(this.region)},_getStyleProps:function(a,c,d){d||(d=b.getComputedStyle(a));var f={},j=this.horizontal?"height":"width";f.visibility=c?d.visibility:"hidden";f[j]=c?a.style[j]||d[j]:this._closedSize;var g=["Top","Right","Bottom","Left"];
b.forEach(["padding","margin","border"],function(h){for(var k=0;k<g.length;k++){var l=h+g[k];if(h=="border")h+="Width";if(undefined!==d[l])f[l]=c?d[l]:0}});return f},_setStateClass:function(){if(this.open){b.removeClass(this.domNode,"dojoxToggleSplitterClosed");b.addClass(this.domNode,"dojoxToggleSplitterOpen");b.removeClass(this.toggleNode,"dojoxToggleSplitterIconClosed");b.addClass(this.toggleNode,"dojoxToggleSplitterIconOpen")}else{b.addClass(this.domNode,"dojoxToggleSplitterClosed");b.removeClass(this.domNode,
"dojoxToggleSplitterOpen");b.addClass(this.toggleNode,"dojoxToggleSplitterIconClosed");b.removeClass(this.toggleNode,"dojoxToggleSplitterIconOpen")}},_setOpenAttr:function(a){if(this._started){this.open=a;this._handleOnChange(a,true);this[this.open?"onOpen":"onClose"](this.child)}},onOpen:function(){},onClose:function(){},_toggleMe:function(a){a&&b.stopEvent(a);this.set("open",!this.open)},_onKeyPress:function(){this.inherited(arguments)}});b.extend(e._Widget,{toggleSplitterOpen:true,toggleSplitterClosedThreshold:5,
toggleSplitterOpenSize:""})});
define("orion/widgets/eWebBorderContainer",["dojo","dijit","dijit/layout/BorderContainer","dojox/layout/ToggleSplitter"],function(b,e){b.declare("orion.widgets.eWebBorderContainer",e.layout.BorderContainer,{_splitterClass:"orion.widgets.eWebSplitter",getPreferredLeftPaneWidth:function(){var a=this.getSizeCookie();return a<=0?b.position(this.getRightPane()).w*0.25:a},isLeftPaneOpen:function(){var a=this.getSplitter("left");if(a)return a.open;return false},getLeftPane:function(){if(this._left)return this._left;for(var a=
this.getChildren(),c=0;c<a.length;c++)if(a[c].region&&(a[c].region==="leading"||a[c].region==="left"))return this._left=a[c].domNode},getHidingPane:function(){return this.getLeftPane()},getRightPane:function(){if(this._center)return this._center;for(var a=this.getChildren(),c=0;c<a.length;c++)if(a[c].region&&a[c].region==="center")return this._center=a[c].domNode},getSizeCookie:function(){var a=this.getSplitter("left");if(a)return a.getSizeCookie();return 0},setSizeCookie:function(a){var c=this.getSplitter("left");
if(c)return c.setSizeCookie(a)},toggleLeftPaneState:function(){var a=this.getSplitter("left");a&&a.toggleHidingPaneState()},setToggleCallback:function(a){this.toggleCallback=a},toggle:function(){if(!this._left||!this._center)for(var a=this.getChildren(),c=0;c<a.length;c++)if(a[c].region&&a[c].region==="center")this._center=a[c].domNode;else if(a[c].region&&(a[c].region==="leading"||a[c].region==="left"))this._left=a[c].domNode;var d=this._left,f=this._center,j=b.position(d).w,g=this.isLeftPaneOpen(),
h;h=g?0:this.getPreferredLeftPaneWidth();g||this.toggleLeftPaneState();var k=d.style.overflow,l=f.style.overflow;(new b.Animation({node:d,duration:300,curve:[1,100],onAnimate:b.hitch(this,function(m){d.style.width=j+(h-j)*m/100+"px";d.style.overflow="hidden";f.style.overflow="hidden";this.layout()}),onEnd:b.hitch(this,function(){f.style.overflow=l;d.style.overflow=k;this.toggleCallback&&this.toggleCallback.apply();g?this.toggleLeftPaneState():this.setSizeCookie(null)})})).play()}});b.declare("orion.widgets.eWebSplitter",
dojox.layout.ToggleSplitter,{postCreate:function(){this.inherited(arguments);this.connect(this.toggleNode,"onmousedown","_onThumbMouseDown");this.connect(this.toggleNode,"onmouseover","_onThumbMouseOver");this.connect(this.domNode,"onmouseover","_onMouseOver");this.connect(this.toggleNode,"onmouseout","_onThumbMouseOut");this._openStateCookieName=this.container.id+"_"+this.region+"_open"},startup:function(){this.inherited(arguments);if(this.container.persist){var a=b.cookie(this._openStateCookieName);
if(a==="true")this.container.getHidingPane().style.width=this.getSizeCookie()+"px";else{a==="false"?this.set("open",false):this.set("open",true);this._handleOnChange()}}else{this.set("open",true);this._handleOnChange()}return this},_handleOnChange:function(){var a=this.child.domNode,c;c=this.horizontal?"height":"width";if(this.open){var d=b.mixin({display:"block",overflow:"auto",visibility:"visible"},this._openStyleProps);d[c]=this._openStyleProps&&this._openStyleProps[c]?this._openStyleProps[c]:
this.openSize;b.style(a,d);this.connect(this.domNode,"onmousedown","_onMouseDown")}else{d=b.getComputedStyle(a);c=this._getStyleProps(a,true,d);d=this._getStyleProps(a,false,d);this._openStyleProps=c;b.style(a,d)}this._setStateClass();if(this.container._started){a=0;if(this.open&&this.openSize)a=parseInt(this.openSize.replace("px",""),10);this.container._layoutChildren(this.region,a)}},_removeFocusVisual:function(a){b.stopEvent(a)},_onMouseDown:function(a){this.open?this._startDrag(a):this._removeFocusVisual(a)},
_onMouseOver:function(){this.domNode.style.cursor=this.open?"e-resize":"default"},_onThumbMouseDown:function(a){a.stopPropagation();this._removeFocusVisual(a);this.container.toggle()},_onThumbMouseOver:function(){this.toggleNode.style.backgroundColor="#AAAAAA"},_onThumbMouseOut:function(){this.toggleNode.style.backgroundColor="#DDDDDD"},_toggleMe:function(){},getSizeCookie:function(){if(this.container.persist){var a=b.cookie(this._cookieName);if(a)return parseInt(a.replace("px",""),10)}return 0},
setSizeCookie:function(){if(this.container.persist)b.cookie(this._cookieName,this.child.domNode.style[this.horizontal?"height":"width"],{expires:365})},toggleHidingPaneState:function(){this.set("open",!this.open);this.container.getHidingPane().style.visibility=this.open?"visible":"hidden";if(this.container.persist)b.cookie(this._openStateCookieName,this.open?"true":"false",{expires:365})}});b.declare("orion.widgets.eWebBorderContainerReverse",e.layout.BorderContainer,{_splitterClass:"orion.widgets.eWebSplitter",
getPreferredRightPaneWidth:function(){var a=this.getSizeCookie();return a<=0?b.position(this.getLeftPane()).w*0.25:a},isRightPaneOpen:function(){var a=this.getSplitter("right");if(a)return a.open;return false},getRightPane:function(){if(this._right)return this._right;for(var a=this.getChildren(),c=0;c<a.length;c++)if(a[c].region&&(a[c].region==="trailing"||a[c].region==="right"))return this._right=a[c].domNode},getHidingPane:function(){return this.getRightPane()},getLeftPane:function(){if(this._center)return this._center;
for(var a=this.getChildren(),c=0;c<a.length;c++)if(a[c].region&&a[c].region==="center")return this._center=a[c].domNode},getSizeCookie:function(){var a=this.getSplitter("right");if(a)return a.getSizeCookie();return 0},setSizeCookie:function(a){var c=this.getSplitter("right");if(c)return c.setSizeCookie(a)},toggleRightPaneState:function(){var a=this.getSplitter("right");a&&a.toggleHidingPaneState()},setToggleCallback:function(a){this.toggleCallback=a},toggle:function(){if(!this._right||!this._center)for(var a=
this.getChildren(),c=0;c<a.length;c++)if(a[c].region&&a[c].region==="center")this._center=a[c].domNode;else if(a[c].region&&(a[c].region==="trailing"||a[c].region==="right"))this._right=a[c].domNode;var d=this._right,f=this._center,j=b.position(d).w,g=this.isRightPaneOpen(),h;h=g?0:this.getPreferredRightPaneWidth();g||this.toggleRightPaneState();var k=d.style.overflow,l=f.style.overflow;(new b.Animation({node:d,duration:300,curve:[1,100],onAnimate:b.hitch(this,function(m){d.style.width=j+(h-j)*m/
100+"px";d.style.overflow="hidden";f.style.overflow="hidden";this.layout()}),onEnd:b.hitch(this,function(){f.style.overflow=l;d.style.overflow=k;this.toggleCallback&&this.toggleCallback.apply();g?this.toggleRightPaneState():this.setSizeCookie(null)})})).play()}})});var eclipse;
define("git-clone",["dojo","orion/serviceregistry","orion/preferences","orion/pluginregistry","orion/status","orion/commands","orion/auth","orion/dialogs","orion/users","orion/selection","orion/fileClient","orion/searchClient","orion/globalCommands","orion/git/gitClient","orion/ssh/sshTools","orion/git/git-clone-details","orion/git/git-clones-explorer","orion/git/gitCommands","dojo/parser","dojo/hash","dijit/layout/BorderContainer","dijit/layout/ContentPane","orion/widgets/eWebBorderContainer"],function(b,
e,a,c,d,f,j,g,h,k,l,m,p,n,o,q,v,r){function s(){var w=dijit.byId("orion.innerNavigator");w.isRightPaneOpen()&&w.toggle();window.document.onkeydown=function(u){u=u||window.event;var y=false;if(u.ctrlKey&&u.keyCode===79){w.toggle();y=true}if(y)if(window.document.all)u.keyCode=0;else{u.preventDefault();u.stopPropagation()}}}b.addOnLoad(function(){function w(){var M=new b.Deferred;M.callback([]);return M}function u(){var M=new b.Deferred;M.callback({});return M}document.body.style.visibility="visible";
b.parser.parse();serviceRegistry=new e.ServiceRegistry;var y=new c.PluginRegistry(serviceRegistry);b.addOnUnload(function(){y.shutdown()});new d.StatusReportingService(serviceRegistry,"statusPane","notifications");new g.DialogService(serviceRegistry);new h.UserService(serviceRegistry);new k.Selection(serviceRegistry);new o.SshService(serviceRegistry);var E=new a.PreferencesService(serviceRegistry,"/prefs/user"),D=new f.CommandService({serviceRegistry:serviceRegistry});new n.GitService(serviceRegistry);
var B=new m.Searcher({serviceRegistry:serviceRegistry});D.addCommandGroup("eclipse.gitGroup",100,null,null,"pageActions");D.registerCommandContribution("eclipse.cloneGitRepository",100,"pageActions","eclipse.gitGroup");D.registerCommandContribution("eclipse.initGitRepository",101,"pageActions","eclipse.gitGroup");D.addCommandGroup("eclipse.selectionGroup",500,"More actions",null,"selectionTools");D.registerCommandContribution("eclipse.git.deleteClone",1);D.registerCommandContribution("eclipse.git.deleteClone",
1,"selectionTools","eclipse.selectionGroup");D.registerCommandContribution("eclipse.checkoutBranch",2);D.registerCommandContribution("eclipse.addBranch",2);D.registerCommandContribution("eclipse.removeBranch",2);D.registerCommandContribution("eclipse.addRemote",2);D.registerCommandContribution("eclipse.removeRemote",2);D.registerCommandContribution("eclipse.openGitLog",2);D.registerCommandContribution("eclipse.openCloneContent",2);D.registerCommandContribution("eclipse.orion.git.fetch",2);D.registerCommandContribution("eclipse.orion.git.merge",
2);D.registerCommandContribution("eclipse.orion.git.push",2);D.registerCommandContribution("eclipse.orion.git.pushto",3);D.registerCommandContribution("eclipse.orion.git.resetIndex",4);var F=new q.CloneDetails({parent:"cloneDetailsPane",serviceRegistry:serviceRegistry,detailsPane:dijit.byId("orion.innerNavigator")}),G=new v.GitClonesExplorer(serviceRegistry,null,F,"clonesList","pageActions");p.generateBanner("toolbar",serviceRegistry,D,E,B,G);E=serviceRegistry.getServiceReferences("orion.core.file");
var L=[],H={fetchChildren:w,createWorkspace:u,loadWorkspaces:w,loadWorkspace:function(){var M=new b.Deferred;M.callback({Children:L});return M},createProject:u,createFolder:u,createFile:u,deleteFile:u,moveFile:u,copyFile:u,read:u,write:u},N=new l.FileClient(H);(E[0]?serviceRegistry.getService(E[0]):{then:function(M){M(H)}}).then(function(M){N.setFileService(M);N.loadWorkspace().then(function(Q){G.setDefaultPath(Q.Location);r.createFileCommands(serviceRegistry,D,G,"pageActions","selectionTools");r.createGitClonesCommands(serviceRegistry,
D,G,"pageActions","selectionTools",N);r.updateNavTools(serviceRegistry,G,"pageActions","selectionTools",{});G.displayClonesList(b.hash());b.subscribe("/dojo/hashchange",G,function(){G.displayClonesList(b.hash())})})});s(navigator)})});