/*

 Copyright (c) 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation
 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

 Copyright (c) 2009, 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2010,2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2011, 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2010, 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2010, 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2011 IBM Corporation and others. 
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2011 IBM Corporation and others. 
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2010, 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: 
 Felipe Heidrich (IBM Corporation) - initial API and implementation
 Silenio Quarti (IBM Corporation) - initial API and implementation

 Copyright (c) 2010, 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2010, 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation
 Andy Clement (vmware) - bug 344614

 Copyright (c) 2010, 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2010, 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2010, 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2010, 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2009, 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - _initial API and implementation

 Copyright (c) 2010, 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2009, 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2010, 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2010, 2012 IBM Corporation and others 
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2009, 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2010, 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2010, 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2010, 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation
*/
(function(){function b(a,c,e){(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"],g=0,h;h=f[g++];)console[h]||function(){var o=h+"";console[o]="log"in console?function(){var p=Array.apply({},arguments);p.unshift(o+":");console.log(p.join(" "))}:function(){};console[o]._fake=true}()}if(typeof a==
"undefined")a={_scopeName:"dojo",_scopePrefix:"",_scopePrefixArgs:"",_scopeSuffix:"",_scopeMap:{},_scopeMapRev:{}};var i=a;if(typeof c=="undefined")c={_scopeName:"dijit"};if(typeof e=="undefined")e={_scopeName:"dojox"};if(!i._scopeArgs)i._scopeArgs=[a,c,e];i.global=this;i.config={isDebug:false,debugAtAllCosts:false};if(f=typeof djConfig!="undefined"?djConfig:typeof dojoConfig!="undefined"?dojoConfig:null)for(var j in f)i.config[j]=f[j];a.locale=i.config.locale;j="$Rev: 24595 $".match(/\d+/);a.version=
{major:1,minor:6,patch:1,flag:"",revision:j?+j[0]:NaN,toString:function(){with(i.version)return major+"."+minor+"."+patch+flag+" ("+revision+")"}};typeof OpenAjax!="undefined"&&OpenAjax.hub.registerLibrary(a._scopeName,"http://dojotoolkit.org",i.version.toString());var k,l,r={};for(g in{toString:1}){k=[];break}a._extraNames=k=k||["hasOwnProperty","valueOf","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","constructor"];l=k.length;a._mixin=function(o,p){var q,n,m;for(q in p){n=p[q];
if(!(q in o)||o[q]!==n&&(!(q in r)||r[q]!==n))o[q]=n}if(l&&p)for(m=0;m<l;++m){q=k[m];n=p[q];if(!(q in o)||o[q]!==n&&(!(q in r)||r[q]!==n))o[q]=n}return o};a.mixin=function(o){o||(o={});for(var p=1,q=arguments.length;p<q;p++)i._mixin(o,arguments[p]);return o};a._getProp=function(o,p,q){q=q||i.global;for(var n=0,m;q&&(m=o[n]);n++){if(n==0&&i._scopeMap[m])m=i._scopeMap[m];q=m in q?q[m]:p?(q[m]={}):undefined}return q};a.setObject=function(o,p,q){var n=o.split(".");o=n.pop();return(q=i._getProp(n,true,
q))&&o?(q[o]=p):undefined};a.getObject=function(o,p,q){return i._getProp(o.split("."),p,q)};a.exists=function(o,p){return i.getObject(o,false,p)!==undefined};a.eval=function(o){return i.global.eval?i.global.eval(o):eval(o)};i.deprecated=i.experimental=function(){}})();return{dojo:a,dijit:c,dojox:e}}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 d=b();dojo=d.dojo;dijit=d.dijit;dojox=d.dojox}})();
define("dojo/lib/backCompat",["require","dojo/_base/_loader/bootstrap"],function(b,d){var a=["_moduleHasPrefix","_loadPath","_loadUri","_loadUriAndCheck","loaded","_callLoaded","_getModuleSymbols","_loadModule","require","provide","platformRequire","requireIf","requireAfterIf","registerModulePath"],c,e;for(c=0;c<a.length;){e=a[c++];d[e]=function(o){return function(){console.warn("dojo."+o+" not available when using an AMD loader.")}}(e)}var f=function(o){var p=[],q;for(q=0;q<o.length;)p.push(o[q++]);
return p},g=function(o,p){return p?typeof p=="string"?function(){o[p]()}:function(){p.call(o)}:o};d.ready=d.addOnLoad=function(o,p){b.ready(p?g(o,p):o)};d.addOnLoad(function(){d.postLoad=d.config.afterOnLoad=true});if(a=d.config.addOnLoad)d.addOnLoad[a instanceof Array?"apply":"call"](d,a);var h=d._loaders=[],i=function(){var o=h.slice(0);for(Array.prototype.splice.apply(h,[0,h.length]);o.length;)o.shift().call()};h.unshift=function(){Array.prototype.unshift.apply(h,f(arguments));b.ready(i)};h.splice=
function(){Array.prototype.splice.apply(h,f(arguments));b.ready(i)};var j=d._unloaders=[];d.unloaded=function(){for(;j.length;)j.pop().call()};d._onto=function(o,p,q){o.push(q?g(p,q):p)};d._modulesLoaded=function(){};d.loadInit=function(o){o()};var k=function(o){return o.replace(/\./g,"/")};d.getL10nName=function(o,p,q){q=q?q.toLowerCase():d.locale;o="i18n!"+k(o);return/root/i.test(q)?o+"/nls/"+p:o+"/nls/"+q+"/"+p};d.requireLocalization=function(o,p,q){if(b.vendor!="altoviso.com")q=!q||q.toLowerCase()===
d.locale?"root":q;return b(d.getL10nName(o,p,q))};d.i18n={getLocalization:d.requireLocalization,normalizeLocale:function(o){o=o?o.toLowerCase():d.locale;if(o=="root")o="ROOT";return o}};var l=/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/,r=/^((([^\[:]+):)?([^@]+)@)?(\[([^\]]+)\]|([^\[:]*))(:([0-9]+))?$/;d._Url=function(){for(var o=arguments,p=[o[0]],q=1;q<o.length;q++)if(o[q]){var n=new d._Url(o[q]+"");p=new d._Url(p[0]+"");if(n.path==""&&!n.scheme&&!n.authority&&!n.query){if(n.fragment!=
null)p.fragment=n.fragment;n=p}else if(!n.scheme){n.scheme=p.scheme;if(!n.authority){n.authority=p.authority;if(n.path.charAt(0)!="/"){p=(p.path.substring(0,p.path.lastIndexOf("/")+1)+n.path).split("/");for(var m=0;m<p.length;m++)if(p[m]==".")if(m==p.length-1)p[m]="";else{p.splice(m,1);m--}else if(m>0&&!(m==1&&p[0]=="")&&p[m]==".."&&p[m-1]!="..")if(m==p.length-1){p.splice(m,1);p[m-1]=""}else{p.splice(m-1,2);m-=2}n.path=p.join("/")}}}p=[];n.scheme&&p.push(n.scheme,":");n.authority&&p.push("//",n.authority);
p.push(n.path);n.query&&p.push("?",n.query);n.fragment&&p.push("#",n.fragment)}this.uri=p.join("");q=this.uri.match(l);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(r);this.user=q[3]||null;this.password=q[4]||null;this.host=q[6]||q[7];this.port=q[9]||null}};d._Url.prototype.toString=function(){return this.uri};d.moduleUrl=function(o,p){if(!o)return null;
o=k(o)+(p?"/"+p:"");p="";var q=o.match(/(.+)(\.[^\/]*)$/);if(q){o=q[1];p=q[2]}return new d._Url(b.nameToUrl(o,p))};return d});
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"),e=/dojo(\.xd)?\.js(\W|$)/i,f=0;f<c.length;f++){var g=c[f].getAttribute("src");if(g){var h=g.match(e);if(h){if(!a.config.baseUrl)a.config.baseUrl=g.substring(0,h.index);if(c=c[f].getAttribute("djConfig")||c[f].getAttribute("data-dojo-config")){c=
eval("({ "+c+" })");for(var i in c)b.config[i]=c[i]}break}}}a.baseUrl=a.config.baseUrl;i=navigator;c=i.userAgent;e=i.appVersion;f=parseFloat(e);if(c.indexOf("Opera")>=0)a.isOpera=f;if(c.indexOf("AdobeAIR")>=0)a.isAIR=1;a.isKhtml=e.indexOf("Konqueror")>=0?f:0;a.isWebKit=parseFloat(c.split("WebKit/")[1])||undefined;a.isChrome=parseFloat(c.split("Chrome/")[1])||undefined;a.isMac=e.indexOf("Macintosh")>=0;if((g=Math.max(e.indexOf("WebKit"),e.indexOf("Safari"),0))&&!b.isChrome){a.isSafari=parseFloat(e.split("Version/")[1]);
if(!a.isSafari||parseFloat(e.substr(g+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(e.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?i.userLanguage:i.language).toLowerCase();a._XMLHTTP_PROGIDS=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];a._xhrObj=function(){var q,n;if(!b.isIE||!b.config.ieForceActiveXXhr)try{q=new XMLHttpRequest}catch(m){}if(!q)for(var s=0;s<3;++s){var u=a._XMLHTTP_PROGIDS[s];try{q=new ActiveXObject(u)}catch(w){n=w}if(q){a._XMLHTTP_PROGIDS=[u];break}}if(!q)throw new Error("XMLHTTP not available: "+n);return q};a._isDocumentOk=function(q){q=q.status||0;var n=location.protocol;
return q>=200&&q<300||q==304||q==1223||!q&&(n=="file:"||n=="chrome:"||n=="chrome-extension:"||n=="app:")};var j=window.location+"";var k=(i=document.getElementsByTagName("base"))&&i.length>0;a._getText=function(q,n){var m=a._xhrObj();if(!k&&b._Url)q=(new b._Url(j,q)).toString();if(a.config.cacheBust){q+="";q+=(q.indexOf("?")==-1?"?":"&")+String(a.config.cacheBust).replace(/\W+/g,"")}m.open("GET",q,false);try{m.send(null);if(!a._isDocumentOk(m)){var s=Error("Unable to load "+q+" status:"+m.status);
s.status=m.status;s.responseText=m.responseText;throw s;}}catch(u){if(n)return null;throw u;}return m.responseText};var l=window,r=function(q,n){var m=l.attachEvent||l.addEventListener;q=l.attachEvent?q:q.substring(2);m(q,function(){n.apply(l,arguments)},false)};a._windowUnloaders=[];a.windowUnloaded=function(){for(var q=a._windowUnloaders;q.length;)q.pop()();a=null};var o=0;a.addOnWindowUnload=function(q,n){a._onto(a._windowUnloaders,q,n);if(!o){o=1;r("onunload",a.windowUnloaded)}};var p=0;a.addOnUnload=
function(q,n){a._onto(a._unloaders,q,n);if(!p){p=1;r("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,e=1,f=document.createStyleSheet();if(b.isIE>=8){c=
1;e=a.length}for(;c<e;++c)f.addRule("v\\:"+a[c],"behavior:url(#default#VML); display:inline-block")})()}catch(d){}}(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 d=Object.prototype.toString;b.isString=function(i){return typeof i=="string"||i instanceof String};b.isArray=function(i){return i&&(i instanceof Array||typeof i=="array")};b.isFunction=function(i){return d.call(i)==="[object Function]"};b.isObject=function(i){return i!==undefined&&(i===null||typeof i=="object"||b.isArray(i)||b.isFunction(i))};b.isArrayLike=function(i){return i&&i!==undefined&&!b.isString(i)&&!b.isFunction(i)&&
!(i.tagName&&i.tagName.toLowerCase()=="form")&&(b.isArray(i)||isFinite(i.length))};b.isAlien=function(i){return i&&!b.isFunction(i)&&/\{\s*\[native code\]\s*\}/.test(String(i))};b.extend=function(i){for(var j=1,k=arguments.length;j<k;j++)b._mixin(i.prototype,arguments[j]);return i};b._hitchArgs=function(i,j){var k=b._toArray(arguments,2),l=b.isString(j);return function(){var r=b._toArray(arguments),o=l?(i||b.global)[j]:j;return o&&o.apply(i||this,k.concat(r))}};b.hitch=function(i,j){if(arguments.length>
2)return b._hitchArgs.apply(b,arguments);if(!j){j=i;i=null}if(b.isString(j)){i=i||b.global;if(!i[j])throw['dojo.hitch: scope["',j,'"] is null (scope="',i,'")'].join("");return function(){return i[j].apply(i,arguments||[])}}return!i?j:function(){return j.apply(i,arguments||[])}};b.delegate=b._delegate=function(){function i(){}return function(j,k){i.prototype=j;j=new i;i.prototype=null;k&&b._mixin(j,k);return j}}();var a=function(i,j,k){return(k||[]).concat(Array.prototype.slice.call(i,j||0))},c=function(i,
j,k){k=k||[];for(j=j||0;j<i.length;j++)k.push(i[j]);return k};b._toArray=b.isIE?function(i){return(i.item?c:a).apply(this,arguments)}:a;b.partial=function(){return b.hitch.apply(b,[null].concat(b._toArray(arguments)))};var e=b._extraNames,f=e.length,g={};b.clone=function(i){if(!i||typeof i!="object"||b.isFunction(i))return i;if(i.nodeType&&"cloneNode"in i)return i.cloneNode(true);if(i instanceof Date)return new Date(i.getTime());if(i instanceof RegExp)return new RegExp(i);var j,k,l,r;if(b.isArray(i)){j=
[];k=0;for(l=i.length;k<l;++k)k in i&&j.push(b.clone(i[k]))}else j=i.constructor?new i.constructor:{};for(r in i){l=i[r];if(!(r in j)||j[r]!==l&&(!(r in g)||g[r]!==l))j[r]=b.clone(l)}if(f)for(k=0;k<f;++k){r=e[k];l=i[r];if(!(r in j)||j[r]!==l&&(!(r in g)||g[r]!==l))j[r]=l}return j};b.trim=String.prototype.trim?function(i){return i.trim()}:function(i){return i.replace(/^\s\s*/,"").replace(/\s\s*$/,"")};var h=/\{([^\}]+)\}/g;b.replace=function(i,j,k){return i.replace(k||h,b.isFunction(j)?j:function(l,
r){return b.getObject(r,false,j)})}})();return b});
define("dojo/_base/array",["dojo/lib/kernel","dojo/_base/lang"],function(b){(function(){var d=function(c,e,f){return[typeof c=="string"?c.split(""):c,e||b.global,typeof f=="string"?new Function("item","index","array",f):f]},a=function(c,e,f,g){var h=d(e,g,f);e=h[0];f=0;for(g=e.length;f<g;++f){var i=!!h[2].call(h[1],e[f],f,e);if(c^i)return i}return c};b.mixin(b,{indexOf:function(c,e,f,g){var h=1,i=c.length||0,j=0;if(g){j=i-1;h=i=-1}if(f!=undefined)j=f;if(g&&j>i||j<i)for(;j!=i;j+=h)if(c[j]==e)return j;
return-1},lastIndexOf:function(c,e,f){return b.indexOf(c,e,f,true)},forEach:function(c,e,f){if(c&&c.length){var g=d(c,f,e);c=g[0];e=0;for(f=c.length;e<f;++e)g[2].call(g[1],c[e],e,c)}},every:function(c,e,f){return a(true,c,e,f)},some:function(c,e,f){return a(false,c,e,f)},map:function(c,e,f,g){var h=d(c,f,e);c=h[0];e=g?new g:[];f=0;for(g=c.length;f<g;++f)e.push(h[2].call(h[1],c[f],f,c));return e},filter:function(c,e,f){var g=d(c,f,e);c=g[0];e=[];f=0;for(var h=c.length;f<h;++f)g[2].call(g[1],c[f],f,
c)&&e.push(c[f]);return e}})})();return b});
define("dojo/_base/declare",["dojo/lib/kernel","dojo/_base/lang","dojo/_base/array"],function(b){(function(){function d(B,G){throw new Error("declare"+(G?" "+G:"")+": "+B);}function a(B,G){for(var C=[],D=[{cls:0,refs:[]}],H={},J=1,E=B.length,N=0,L,T,R,Z,M;N<E;++N){if(L=B[N])s.call(L)!="[object Function]"&&d("mixin #"+N+" is not a callable constructor.",G);else d("mixin #"+N+" is unknown. Did you use dojo.require to pull it in?",G);T=L._meta?L._meta.bases:[L];R=0;for(L=T.length-1;L>=0;--L){Z=T[L].prototype;
if(!Z.hasOwnProperty("declaredClass"))Z.declaredClass="uniqName_"+w++;Z=Z.declaredClass;if(!H.hasOwnProperty(Z)){H[Z]={count:0,refs:[],cls:T[L]};++J}Z=H[Z];if(R&&R!==Z){Z.refs.push(R);++R.count}R=Z}++R.count;D[0].refs.push(R)}for(;D.length;){R=D.pop();C.push(R.cls);for(--J;M=R.refs,M.length==1;){R=M[0];if(!R||--R.count){R=0;break}C.push(R.cls);--J}if(R){N=0;for(E=M.length;N<E;++N){R=M[N];--R.count||D.push(R)}}}J&&d("can't build consistent linearization",G);L=B[0];C[0]=L?L._meta&&L===C[C.length-L._meta.bases.length]?
L._meta.bases.length:1:0;return C}function c(B,G,C){var D,H,J,E,N,L,T,R=this._inherited=this._inherited||{};if(typeof B=="string"){D=B;B=G;G=C}C=0;E=B.callee;(D=D||E.nom)||d("can't deduce a name to call inherited()",this.declaredClass);N=this.constructor._meta;J=N.bases;T=R.p;if(D!=x){if(R.c!==E){T=0;L=J[0];N=L._meta;if(N.hidden[D]!==E){(H=N.chains)&&typeof H[D]=="string"&&d("calling chained method with inherited: "+D,this.declaredClass);do{N=L._meta;H=L.prototype;if(N&&(H[D]===E&&H.hasOwnProperty(D)||
N.hidden[D]===E))break}while(L=J[++T]);T=L?T:-1}}if(L=J[++T]){H=L.prototype;if(L._meta&&H.hasOwnProperty(D))C=H[D];else{E=m[D];do{H=L.prototype;if((C=H[D])&&(L._meta?H.hasOwnProperty(D):C!==E))break}while(L=J[++T])}}C=L&&C||m[D]}else{if(R.c!==E){T=0;if((N=J[0]._meta)&&N.ctor!==E){H=N.chains;if(!H||H.constructor!=="manual")d("calling chained constructor with inherited",this.declaredClass);for(;L=J[++T];)if((N=L._meta)&&N.ctor===E)break;T=L?T:-1}}for(;L=J[++T];)if(C=(N=L._meta)?N.ctor:L)break;C=L&&
C}R.c=C;R.p=T;if(C)return G===true?C:C.apply(this,G||B)}function e(B,G){if(typeof B=="string")return this.inherited(B,G,true);return this.inherited(B,true)}function f(B){for(var G=this.constructor._meta.bases,C=0,D=G.length;C<D;++C)if(G[C]===B)return true;return this instanceof B}function g(B,G){var C,D=0,H=q._extraNames.length;for(C in G)if(C!=x&&G.hasOwnProperty(C))B[C]=G[C];for(;D<H;++D){C=q._extraNames[D];if(C!=x&&G.hasOwnProperty(C))B[C]=G[C]}}function h(B,G){var C,D,H=0,J=q._extraNames.length;
for(C in G){D=G[C];if((D!==m[C]||!(C in m))&&C!=x){if(s.call(D)=="[object Function]")D.nom=C;B[C]=D}}for(;H<J;++H){C=q._extraNames[H];D=G[C];if((D!==m[C]||!(C in m))&&C!=x){if(s.call(D)=="[object Function]")D.nom=C;B[C]=D}}return B}function i(B){h(this.prototype,B);return this}function j(B,G){return function(){var C=arguments,D=C,H=C[0],J,E;E=B.length;var N;if(!(this instanceof C.callee))return p(C);if(G&&(H&&H.preamble||this.preamble)){N=new Array(B.length);N[0]=C;for(J=0;;){if(H=C[0])if(H=H.preamble)C=
H.apply(this,C)||C;H=B[J].prototype;if(H=H.hasOwnProperty("preamble")&&H.preamble)C=H.apply(this,C)||C;if(++J==E)break;N[J]=C}}for(J=E-1;J>=0;--J){H=B[J];if(H=(E=H._meta)?E.ctor:H)H.apply(this,N?N[J]:C)}(H=this.postscript)&&H.apply(this,D)}}function k(B,G){return function(){var C=arguments,D=C,H=C[0];if(!(this instanceof C.callee))return p(C);if(G){if(H)if(H=H.preamble)D=H.apply(this,D)||D;(H=this.preamble)&&H.apply(this,D)}B&&B.apply(this,C);(H=this.postscript)&&H.apply(this,C)}}function l(B){return function(){var G=
arguments,C=0,D,H;if(!(this instanceof G.callee))return p(G);for(;D=B[C];++C)if(D=(H=D._meta)?H.ctor:D){D.apply(this,G);break}(D=this.postscript)&&D.apply(this,G)}}function r(B,G,C){return function(){var D,H,J=0,E=1;if(C){J=G.length-1;E=-1}for(;D=G[J];J+=E){H=D._meta;(D=(H?H.hidden:D.prototype)[B])&&D.apply(this,arguments)}}}function o(B){u.prototype=B.prototype;B=new u;u.prototype=null;return B}function p(B){var G=B.callee,C=o(G);G.apply(C,B);return C}var q=b,n=q._mixin,m=Object.prototype,s=m.toString,
u=new Function,w=0,x="constructor";q.declare=function(B,G,C){if(typeof B!="string"){C=G;G=B;B=""}C=C||{};var D,H,J,E,N,L,T,R=1,Z=G;if(s.call(G)=="[object Array]"){L=a(G,B);J=L[0];R=L.length-J;G=L[R]}else{L=[0];if(G)if(s.call(G)=="[object Function]"){J=G._meta;L=L.concat(J?J.bases:G)}else d("base class is not a callable constructor.",B);else G!==null&&d("unknown base class. Did you use dojo.require to pull it in?",B)}if(G)for(H=R-1;;--H){D=o(G);if(!H)break;J=L[H];(J._meta?g:n)(D,J.prototype);E=new Function;
E.superclass=G;E.prototype=D;G=D.constructor=E}else D={};h(D,C);J=C.constructor;if(J!==m.constructor){J.nom=x;D.constructor=J}for(H=R-1;H;--H)if((J=L[H]._meta)&&J.chains)T=n(T||{},J.chains);if(D["-chains-"])T=n(T||{},D["-chains-"]);J=!T||!T.hasOwnProperty(x);L[0]=E=T&&T.constructor==="manual"?l(L):L.length==1?k(C.constructor,J):j(L,J);E._meta={bases:L,hidden:C,chains:T,parents:Z,ctor:C.constructor};E.superclass=G&&G.prototype;E.extend=i;E.prototype=D;D.constructor=E;D.getInherited=e;D.inherited=c;
D.isInstanceOf=f;if(B){D.declaredClass=B;q.setObject(B,E)}if(T)for(N in T)if(D[N]&&typeof T[N]=="string"&&N!=x){J=D[N]=r(N,L,T[N]==="after");J.nom=N}return E};q.safeMixin=h})();return b.declare});
define("dojo/_base/connect",["dojo/lib/kernel","dojo/_base/lang"],function(b){b._listener={getDispatcher:function(){return function(){var d=Array.prototype,a=arguments.callee,c=a._listeners;a=(a=a.target)&&a.apply(this,arguments);var e;c=[].concat(c);for(e in c)e in d||c[e].apply(this,arguments);return a}},add:function(d,a,c){d=d||b.global;var e=d[a];if(!e||!e._listeners){var f=b._listener.getDispatcher();f.target=e;f._listeners=[];e=d[a]=f}return e._listeners.push(c)},remove:function(d,a,c){(d=(d||
b.global)[a])&&d._listeners&&c--&&delete d._listeners[c]}};b.connect=function(){var d=arguments,a=[],c=0;a.push(b.isString(d[0])?null:d[c++],d[c++]);var e=d[c+1];a.push(b.isString(e)||b.isFunction(e)?d[c++]:null,d[c++]);for(e=d.length;c<e;c++)a.push(d[c]);return b._connect.apply(this,a)};b._connect=function(d,a,c,e){var f=b._listener;c=f.add(d,a,b.hitch(c,e));return[d,a,c,f]};b.disconnect=function(d){if(d&&d[0]!==undefined){b._disconnect.apply(this,d);delete d[0]}};b._disconnect=function(d,a,c,e){e.remove(d,
a,c)};b._topics={};b.subscribe=function(d,a,c){return[d,b._listener.add(b._topics,d,b.hitch(a,c))]};b.unsubscribe=function(d){d&&b._listener.remove(b._topics,d[0],d[1])};b.publish=function(d,a){if(d=b._topics[d])d.apply(this,a||[])};b.connectPublisher=function(d,a,c){var e=function(){b.publish(d,arguments)};return c?b.connect(a,c,e):b.connect(a,e)};return b.connect});
define("dojo/_base/Deferred",["dojo/lib/kernel","dojo/_base/lang"],function(b){(function(){var d=function(){},a=Object.freeze||function(){},c=function(){var e,f,g,h,i=false,j=function(){};return function(k){if(i)if(e){f.next={task:k,next:null};f=f.next}else f=e={task:k,next:null};else{i=true;do try{for(;k;){k();if(g){if(e)f.next=g;else e=g;f=h}if(e){g=e.next;h=f;k=e.task;e=f=null}else k=null}i=false}catch(l){k=j;console.error(l)}while(i)}}}();b.Deferred=function(e){function f(p){if(i)throw new Error("This deferred has already been resolved");
h=p;i=true;c(g)}function g(){for(var p;!p&&l;){var q=l;l=l.next;if(p=q.progress==d)i=false;var n=j?q.error:q.resolved;if(n)try{var m=n(h);if(m&&typeof m.then==="function")m.then(b.hitch(q.deferred,"resolve"),b.hitch(q.deferred,"reject"),b.hitch(q.deferred,"progress"));else{n=p&&m===undefined;if(p&&!n)j=m instanceof Error;q.deferred[n&&j?"reject":"resolve"](n?h:m)}}catch(s){q.deferred.reject(s)}else j?q.deferred.reject(h):q.deferred.resolve(h)}}var h,i,j,k,l,r=this.promise={};this.resolve=this.callback=
function(p){this.fired=0;this.results=[p,null];f(p)};this.reject=this.errback=function(p){j=true;this.fired=1;f(p);this.results=[null,p];if(!p||p.log!==false)(b.config.deferredOnError||function(q){console.error(q)})(p)};this.progress=function(p){for(var q=l;q;){var n=q.progress;n&&n(p);q=q.next}};this.addCallbacks=function(p,q){this.then(p,q,d);return this};this.then=r.then=function(p,q,n){var m=n==d?this:new b.Deferred(r.cancel);p={resolved:p,error:q,progress:n,deferred:m};if(l)k=k.next=p;else l=
k=p;i&&c(g);return m.promise};var o=this;this.cancel=r.cancel=function(){if(!i){var p=e&&e(o);if(!i){p instanceof Error||(p=new Error(p));p.log=false;o.reject(p)}}};a(r)};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 e=b.hitch.apply(b,arguments);return this.addCallbacks(e,e)},fired:-1})})();b.when=function(d,a,c,e){if(d&&typeof d.then==="function")return d.then(a,
c,e);return a(d)};return b.Deferred});
define("dojo/_base/json",["dojo/lib/kernel"],function(b){b.fromJson=function(d){return eval("("+d+")")};b._escapeString=function(d){return('"'+d.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(d,a,c){if(d===undefined)return"undefined";var e=typeof d;if(e=="number"||e=="boolean")return d+"";if(d===null)return"null";if(b.isString(d))return b._escapeString(d);var f=
arguments.callee,g;c=c||"";var h=a?c+b.toJsonIndentStr:"";g=d.__json__||d.json;if(b.isFunction(g)){g=g.call(d);if(d!==g)return f(g,a,h)}if(d.nodeType&&d.cloneNode)throw new Error("Can't serialize DOM nodes");g=a?" ":"";var i=a?"\n":"";if(b.isArray(d))return"["+b.map(d,function(r){r=f(r,a,h);if(typeof r!="string")r="undefined";return i+h+r}).join(","+g)+i+c+"]";if(e=="function")return null;e=[];var j;for(j in d){var k,l;if(typeof j=="number")k='"'+j+'"';else if(typeof j=="string")k=b._escapeString(j);
else continue;l=f(d[j],a,h);typeof l=="string"&&e.push(i+h+k+":"+g+l)}return"{"+e.join(","+g)+i+c+"}"};return b});
define("dojo/_base/Color",["dojo/lib/kernel","dojo/_base/array","dojo/_base/lang"],function(b){(function(){b.Color=function(d){d&&this.setColor(d)};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(d,a,c,e){this.r=d;this.g=a;this.b=c;this.a=e},setColor:function(d){if(b.isString(d))b.colorFromString(d,this);else if(b.isArray(d))b.colorFromArray(d,this);else{this._set(d.r,d.g,d.b,d.a);d 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(d){d=this[d].toString(16);return d.length<
2?"0"+d:d},this).join("")},toCss:function(d){var a=this.r+", "+this.g+", "+this.b;return(d?"rgba("+a+", "+this.a:"rgb("+a)+")"},toString:function(){return this.toCss(true)}});b.blendColors=function(d,a,c,e){var f=e||new b.Color;b.forEach(["r","g","b","a"],function(g){f[g]=d[g]+(a[g]-d[g])*c;if(g!="a")f[g]=Math.round(f[g])});return f.sanitize()};b.colorFromRgb=function(d,a){return(d=d.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/))&&b.colorFromArray(d[1].split(/\s*,\s*/),a)};b.colorFromHex=function(d,
a){var c=a||new b.Color,e=d.length==4?4:8,f=(1<<e)-1;d=Number("0x"+d.substr(1));if(isNaN(d))return null;b.forEach(["b","g","r"],function(g){var h=d&f;d>>=e;c[g]=e==4?17*h:h});c.a=1;return c};b.colorFromArray=function(d,a){a=a||new b.Color;a._set(Number(d[0]),Number(d[1]),Number(d[2]),Number(d[3]));if(isNaN(a.a))a.a=1;return a.sanitize()};b.colorFromString=function(d,a){var c=b.Color.named[d];return c&&b.colorFromArray(c,a)||b.colorFromRgb(d,a)||b.colorFromHex(d,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(d,a){b.global=d;b.doc=a};b.withGlobal=function(d,a,c,e){var f=b.global;try{b.global=d;return b.withDoc.call(null,d.document,a,c,e)}finally{b.global=f}};b.withDoc=function(d,a,c,e){var f=b.doc,g=b._bodyLtr,h=b.isQuirks;try{b.doc=d;delete b._bodyLtr;b.isQuirks=b.doc.compatMode=="BackCompat";if(c&&typeof a=="string")a=
c[a];return a.apply(c,e||[])}finally{b.doc=f;delete b._bodyLtr;if(g!==undefined)b._bodyLtr=g;b.isQuirks=h}};return b});
define("dojo/_base/event",["dojo/lib/kernel","dojo/_base/connect"],function(b){(function(){var d=b._event_listener={add:function(i,j,k){if(i){j=d._normalizeEventName(j);k=d._fixCallback(j,k);if(!b.isIE&&(j=="mouseenter"||j=="mouseleave")){var l=k;j=j=="mouseenter"?"mouseover":"mouseout";k=function(r){if(!b.isDescendant(r.relatedTarget,i))return l.call(this,r)}}i.addEventListener(j,k,false);return k}},remove:function(i,j,k){if(i){j=d._normalizeEventName(j);if(!b.isIE&&(j=="mouseenter"||j=="mouseleave"))j=
j=="mouseenter"?"mouseover":"mouseout";i.removeEventListener(j,k,false)}},_normalizeEventName:function(i){return i.slice(0,2)=="on"?i.slice(2):i},_fixCallback:function(i,j){return i!="keypress"?j:function(k){return j.call(this,d._fixEvent(k,this))}},_fixEvent:function(i){switch(i.type){case "keypress":d._setKeyChar(i);break}return i},_setKeyChar:function(i){i.keyChar=i.charCode>=32?String.fromCharCode(i.charCode):"";i.charOrCode=i.keyChar||i.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(i,j){return d._fixEvent(i,j)};b.stopEvent=function(i){i.preventDefault();i.stopPropagation()};var a=b._listener;b._connect=function(i,j,k,l,r){r=i&&(i.nodeType||i.attachEvent||i.addEventListener)?r?2:1:0;k=[b._listener,d,a][r].add(i,j,b.hitch(k,l));return[i,j,k,r]};b._disconnect=function(i,j,k,l){[b._listener,d,a][l].remove(i,j,k)};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(i){return i[c]};b.mouseButtons=b.isIE<9||b.isIE&&b.isQuirks?{LEFT:1,MIDDLE:4,RIGHT:2,isButton:function(i,j){return i.button&j},isLeft:function(i){return i.button&1},isMiddle:function(i){return i.button&4},isRight:function(i){return i.button&2}}:{LEFT:0,MIDDLE:1,RIGHT:2,isButton:function(i,j){return i.button==j},isLeft:function(i){return i.button==
0},isMiddle:function(i){return i.button==1},isRight:function(i){return i.button==2}};if(b.isIE){var e=function(i,j){try{return i.keyCode=j}catch(k){return 0}},f=b._listener,g=b._ieListenersName="_"+b._scopeName+"_listeners";if(!b.config._allow_leaks){a=f=b._ie_listener={handlers:[],add:function(i,j,k){i=i||b.global;var l=i[j];if(!l||!l[g]){var r=b._getIeDispatcher();r.target=l&&h.push(l)-1;r[g]=[];l=i[j]=r}return l[g].push(h.push(k)-1)},remove:function(i,j,k){j=(i=(i||b.global)[j])&&i[g];if(i&&j&&
k--){delete h[j[k]];delete j[k]}}};var h=f.handlers}b.mixin(d,{add:function(i,j,k){if(i){j=d._normalizeEventName(j);if(j=="onkeypress"){var l=i.onkeydown;if(!l||!l[g]||!l._stealthKeydownHandle){var r=d.add(i,"onkeydown",d._stealthKeyDown);l=i.onkeydown;l._stealthKeydownHandle=r;l._stealthKeydownRefs=1}else l._stealthKeydownRefs++}return f.add(i,j,d._fixCallback(k))}},remove:function(i,j,k){j=d._normalizeEventName(j);f.remove(i,j,k);if(j=="onkeypress"){j=i.onkeydown;if(--j._stealthKeydownRefs<=0){f.remove(i,
"onkeydown",j._stealthKeydownHandle);delete j._stealthKeydownHandle}}},_normalizeEventName:function(i){return i.slice(0,2)!="on"?"on"+i:i},_nop:function(){},_fixEvent:function(i,j){if(!i)i=(j&&(j.ownerDocument||j.document||j).parentWindow||window).event;if(!i)return i;i.target=i.srcElement;i.currentTarget=j||i.srcElement;i.layerX=i.offsetX;i.layerY=i.offsetY;j=(j=i.srcElement)&&j.ownerDocument||document;j=b.isIE<6||j.compatMode=="BackCompat"?j.body:j.documentElement;var k=b._getIeDocumentElementOffset();
i.pageX=i.clientX+b._fixIeBiDiScrollLeft(j.scrollLeft||0)-k.x;i.pageY=i.clientY+(j.scrollTop||0)-k.y;if(i.type=="mouseover")i.relatedTarget=i.fromElement;if(i.type=="mouseout")i.relatedTarget=i.toElement;if(b.isIE<9||b.isQuirks){i.stopPropagation=d._stopPropagation;i.preventDefault=d._preventDefault}return d._fixKeys(i)},_fixKeys:function(i){switch(i.type){case "keypress":var j="charCode"in i?i.charCode:i.keyCode;if(j==10){j=0;i.keyCode=13}else if(j==13||j==27)j=0;else if(j==3)j=99;i.charCode=j;d._setKeyChar(i);
break}return i},_stealthKeyDown:function(i){var j=i.currentTarget.onkeypress;if(j&&j[g]){var k=i.keyCode,l=(k!=13||b.isIE>=9&&!b.isQuirks)&&k!=32&&k!=27&&(k<48||k>90)&&(k<96||k>111)&&(k<186||k>192)&&(k<219||k>222);if(l||i.ctrlKey){l=l?0:k;if(i.ctrlKey)if(k==3||k==13)return;else if(l>95&&l<106)l-=48;else if(!i.shiftKey&&l>=65&&l<=90)l+=32;else l=d._punctMap[l]||l;k=d._synthesizeEvent(i,{type:"keypress",faux:true,charCode:l});j.call(i.currentTarget,k);if(b.isIE<9||b.isIE&&b.isQuirks)i.cancelBubble=
k.cancelBubble;i.returnValue=k.returnValue;e(i,k.keyCode)}}},_stopPropagation:function(){this.cancelBubble=true},_preventDefault:function(){this.bubbledKeyCode=this.keyCode;this.ctrlKey&&e(this,0);this.returnValue=false}});b.stopEvent=b.isIE<9||b.isQuirks?function(i){i=i||window.event;d._stopPropagation.call(i);d._preventDefault.call(i)}:b.stopEvent}d._synthesizeEvent=function(i,j){j=b.mixin({},i,j);d._setKeyChar(j);j.preventDefault=function(){i.preventDefault()};j.stopPropagation=function(){i.stopPropagation()};
return j};b.isOpera&&b.mixin(d,{_fixEvent:function(i){switch(i.type){case "keypress":var j=i.which;if(j==3)j=99;j=j<41&&!i.shiftKey?0:j;if(i.ctrlKey&&!i.shiftKey&&j>=65&&j<=90)j+=32;return d._synthesizeEvent(i,{charCode:j})}return i}});if(b.isWebKit){d._add=d.add;d._remove=d.remove;b.mixin(d,{add:function(i,j,k){if(i){var l=d._add(i,j,k);if(d._normalizeEventName(j)=="keypress")l._stealthKeyDownHandle=d._add(i,"keydown",function(r){var o=r.keyCode,p=o!=13&&o!=32&&(o<48||o>90)&&(o<96||o>111)&&(o<186||
o>192)&&(o<219||o>222);if(p||r.ctrlKey){p=p?0:o;if(r.ctrlKey)if(o==3||o==13)return;else if(p>95&&p<106)p-=48;else if(!r.shiftKey&&p>=65&&p<=90)p+=32;else p=d._punctMap[p]||p;o=d._synthesizeEvent(r,{type:"keypress",faux:true,charCode:p});k.call(r.currentTarget,o)}});return l}},remove:function(i,j,k){if(i){k._stealthKeyDownHandle&&d._remove(i,"keydown",k._stealthKeyDownHandle);d._remove(i,j,k)}},_fixEvent:function(i){switch(i.type){case "keypress":if(i.faux)return i;var j=i.charCode;j=j>=32?j:0;return d._synthesizeEvent(i,
{charCode:j,faux:true})}return i}})}})();if(b.isIE){b._ieDispatcher=function(d,a){var c=Array.prototype,e=b._ie_listener.handlers,f=d.callee,g=f[b._ieListenersName];f=(f=e[f.target])&&f.apply(a,d);g=[].concat(g);for(var h in g){var i=e[g[h]];!(h in c)&&i&&i.apply(a,d)}return f};b._getIeDispatcher=function(){return new Function(b._scopeName+"._ieDispatcher(arguments, this)")};b._event_listener._fixCallback=function(d){var a=b._event_listener._fixEvent;return function(c){return d.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(d){}b.byId=b.isIE?function(a,c){if(typeof a!="string")return a;var e=c||b.doc;if((c=e.getElementById(a))&&(c.attributes.id.value==a||c.id==a))return c;else{var f=e.all[a];if(!f||f.nodeName)f=[f];for(var g=0;c=f[g++];)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,e;b.addOnWindowUnload(function(){c=null});b._destroyElement=b.destroy=function(t){t=a(t);try{var v=t.ownerDocument;if(!c||e!=v){c=v.createElement("div");e=v}c.appendChild(t.parentNode?t.parentNode.removeChild(t):t);c.innerHTML=""}catch(A){}};b.isDescendant=function(t,v){try{t=a(t);for(v=a(v);t;){if(t==v)return true;t=t.parentNode}}catch(A){}return false};b.setSelectable=function(t,v){t=a(t);if(b.isMozilla)t.style.MozUserSelect=v?"":"none";else if(b.isKhtml||
b.isWebKit)t.style.KhtmlUserSelect=v?"auto":"none";else if(b.isIE){v=t.unselectable=v?"":"on";b.query("*",t).forEach("item.unselectable = '"+v+"'")}};var f=function(t,v){var A=v.parentNode;A&&A.insertBefore(t,v)},g=function(t,v){var A=v.parentNode;if(A)A.lastChild==v?A.appendChild(t):A.insertBefore(t,v.nextSibling)};b.place=function(t,v,A){v=a(v);if(typeof t=="string")t=/^\s*</.test(t)?b._toDom(t,v.ownerDocument):a(t);if(typeof A=="number"){var K=v.childNodes;!K.length||K.length<=A?v.appendChild(t):
f(t,K[A<0?0:A])}else switch(A){case "before":f(t,v);break;case "after":g(t,v);break;case "replace":v.parentNode.replaceChild(t,v);break;case "only":b.empty(v);v.appendChild(t);break;case "first":if(v.firstChild){f(t,v.firstChild);break}default:v.appendChild(t)}return t};b.boxModel="content-box";if(b.isIE)b.boxModel=document.compatMode=="BackCompat"?"border-box":"content-box";var h;h=b.isWebKit?function(t){var v;if(t.nodeType==1){var A=t.ownerDocument.defaultView;v=A.getComputedStyle(t,null);if(!v&&
t.style){t.style.display="";v=A.getComputedStyle(t,null)}}return v||{}}:b.isIE?function(t){return t.nodeType==1?t.currentStyle:{}}:function(t){return t.nodeType==1?t.ownerDocument.defaultView.getComputedStyle(t,null):{}};b.getComputedStyle=h;b._toPixelValue=b.isIE?function(t,v){if(!v)return 0;if(v=="medium")return 4;if(v.slice&&v.slice(-2)=="px")return parseFloat(v);with(t){t=style.left;var A=runtimeStyle.left;runtimeStyle.left=currentStyle.left;try{style.left=v;v=style.pixelLeft}catch(K){v=0}style.left=
t;runtimeStyle.left=A}return v}:function(t,v){return parseFloat(v)||0};var i=b._toPixelValue,j=function(t,v){try{return t.filters.item("DXImageTransform.Microsoft.Alpha")}catch(A){return v?{}:null}};b._getOpacity=b.isIE<9?function(t){try{return j(t).Opacity/100}catch(v){return 1}}:function(t){return h(t).opacity};b._setOpacity=b.isIE<9?function(t,v){var A=v*100,K=v==1;t.style.zoom=K?"":1;if(j(t))j(t,1).Opacity=A;else{if(K)return v;t.style.filter+=" progid:DXImageTransform.Microsoft.Alpha(Opacity="+
A+")"}j(t,1).Enabled=!K;t.nodeName.toLowerCase()=="tr"&&b.query("> td",t).forEach(function(O){b._setOpacity(O,v)});return v}:function(t,v){return t.style.opacity=v};var k={left:true,top:true},l=/margin|padding|width|height|max|min|offset/,r=function(t,v,A){v=v.toLowerCase();if(b.isIE){if(A=="auto"){if(v=="height")return t.offsetHeight;if(v=="width")return t.offsetWidth}if(v=="fontweight")switch(A){case 700:return"bold";case 400:default:return"normal"}}v in k||(k[v]=l.test(v));return k[v]?i(t,A):A},
o=b.isIE?"styleFloat":"cssFloat",p={cssFloat:o,styleFloat:o,"float":o};b.style=function(t,v,A){var K=a(t),O=arguments.length,Q=v=="opacity";v=p[v]||v;if(O==3)return Q?b._setOpacity(K,A):(K.style[v]=A);if(O==2&&Q)return b._getOpacity(K);Q=h(K);if(O==2&&typeof v!="string"){for(var V in v)b.style(t,V,v[V]);return Q}return O==1?Q:r(K,v,Q[v]||K.style[v])};b._getPadExtents=function(t,v){v=v||h(t);var A=i(t,v.paddingLeft),K=i(t,v.paddingTop);return{l:A,t:K,w:A+i(t,v.paddingRight),h:K+i(t,v.paddingBottom)}};
b._getBorderExtents=function(t,v){v=v||h(t);var A=v.borderLeftStyle!="none"?i(t,v.borderLeftWidth):0,K=v.borderTopStyle!="none"?i(t,v.borderTopWidth):0;return{l:A,t:K,w:A+(v.borderRightStyle!="none"?i(t,v.borderRightWidth):0),h:K+(v.borderBottomStyle!="none"?i(t,v.borderBottomWidth):0)}};b._getPadBorderExtents=function(t,v){var A=v||h(t);v=b._getPadExtents(t,A);t=b._getBorderExtents(t,A);return{l:v.l+t.l,t:v.t+t.t,w:v.w+t.w,h:v.h+t.h}};b._getMarginExtents=function(t,v){v=v||h(t);var A=i(t,v.marginLeft),
K=i(t,v.marginTop),O=i(t,v.marginRight);t=i(t,v.marginBottom);if(b.isWebKit&&v.position!="absolute")O=A;return{l:A,t:K,w:A+O,h:K+t}};b._getMarginBox=function(t,v){var A=v||h(t);v=b._getMarginExtents(t,A);var K=t.offsetLeft-v.l,O=t.offsetTop-v.t,Q=t.parentNode;if(b.isMoz){var V=parseFloat(A.left);A=parseFloat(A.top);if(!isNaN(V)&&!isNaN(A)){K=V;O=A}else if(Q&&Q.style){V=h(Q);if(V.overflow!="visible"){Q=b._getBorderExtents(Q,V);K+=Q.l;O+=Q.t}}}else if(b.isOpera||b.isIE>7&&!b.isQuirks)if(Q){Q=b._getBorderExtents(Q);
K-=Q.l;O-=Q.t}return{l:K,t:O,w:t.offsetWidth+v.w,h:t.offsetHeight+v.h}};b._getMarginSize=function(t,v){t=a(t);v=b._getMarginExtents(t,v||h(t));t=t.getBoundingClientRect();return{w:t.right-t.left+v.w,h:t.bottom-t.top+v.h}};b._getContentBox=function(t,v){var A=v||h(t);v=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){v.l+=A.l;v.t+=A.t}return{l:v.l,t:v.t,w:K-v.w-A.w,h:t-v.h-A.h}};b._getBorderBox=
function(t,v){var A=v||h(t);v=b._getPadExtents(t,A);t=b._getContentBox(t,A);return{l:t.l-v.l,t:t.t-v.t,w:t.w+v.w,h:t.h+v.h}};b._setBox=function(t,v,A,K,O,Q){Q=Q||"px";t=t.style;if(!isNaN(v))t.left=v+Q;if(!isNaN(A))t.top=A+Q;if(K>=0)t.width=K+Q;if(O>=0)t.height=O+Q};b._isButtonTag=function(t){return t.tagName=="BUTTON"||t.tagName=="INPUT"&&(t.getAttribute("type")||"").toUpperCase()=="BUTTON"};b._usesBorderBox=function(t){var v=t.tagName;return b.boxModel=="border-box"||v=="TABLE"||b._isButtonTag(t)};
b._setContentSize=function(t,v,A,K){if(b._usesBorderBox(t)){K=b._getPadBorderExtents(t,K);if(v>=0)v+=K.w;if(A>=0)A+=K.h}b._setBox(t,NaN,NaN,v,A)};b._setMarginBox=function(t,v,A,K,O,Q){var V=Q||h(t);Q=b._usesBorderBox(t)?q:b._getPadBorderExtents(t,V);if(b.isWebKit)if(b._isButtonTag(t)){var ca=t.style;if(K>=0&&!ca.width)ca.width="4px";if(O>=0&&!ca.height)ca.height="4px"}V=b._getMarginExtents(t,V);if(K>=0)K=Math.max(K-Q.w-V.w,0);if(O>=0)O=Math.max(O-Q.h-V.h,0);b._setBox(t,v,A,K,O)};var q={l:0,t:0,w:0,
h:0};b.marginBox=function(t,v){t=a(t);var A=h(t);return!v?b._getMarginBox(t,A):b._setMarginBox(t,v.l,v.t,v.w,v.h,A)};b.contentBox=function(t,v){t=a(t);var A=h(t);return!v?b._getContentBox(t,A):b._setContentSize(t,v.w,v.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 v=t.getBoundingClientRect(),A=v.left;v=v.top;if(b.isIE<7){A+=t.clientLeft;v+=t.clientTop}return{x:A<0?0:A,y:v<0?0:v}}else return{x:0,y:0}};b._fixIeBiDiScrollLeft=function(t){var v=b.isIE;if(v&&!b._isBodyLtr()){var A=b.isQuirks,K=A?b.doc.body:b.doc.documentElement;if(v==6&&!A&&b.global.frameElement&&K.scrollHeight>K.clientHeight)t+=K.clientLeft;return v<8||
A?t+K.clientWidth-K.scrollWidth:-t}return t};b._abs=b.position=function(t,v){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=h(K);t.x-=i(K,A.marginLeft)+i(K,A.borderLeftWidth);t.y-=i(K,A.marginTop)+i(K,A.borderTopWidth)}if(v){v=b._docScroll();t.x+=v.x;t.y+=v.y}return t};
b.coords=function(t,v){t=a(t);var A=h(t);A=b._getMarginBox(t,A);v=b.position(t,v);A.x=v.x;A.y=v.y;return A};var n={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",valuetype:"valueType"},m={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"},s={innerHTML:1,className:1,htmlFor:b.isIE,value:1},u=function(t){return m[t.toLowerCase()]||t},w=function(t,v){return(t=t.getAttributeNode&&t.getAttributeNode(v))&&
t.specified};b.hasAttr=function(t,v){var A=v.toLowerCase();return s[n[A]||v]||w(a(t),m[A]||v)};var x={},B=0,G=b._scopeName+"attrid",C={col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1};b.attr=function(t,v,A){t=a(t);var K=arguments.length;if(K==2&&typeof v!="string"){for(var O in v)b.attr(t,O,v[O]);return t}var Q=v.toLowerCase();O=n[Q]||v;var V=s[O];Q=m[Q]||v;if(K==3){if(O=="style"&&typeof A!="string")b.style(t,A);else if(O=="innerHTML")if(b.isIE&&t.tagName.toLowerCase()in C){b.empty(t);
t.appendChild(b._toDom(A,t.ownerDocument))}else t[O]=A;else if(b.isFunction(A)){K=b.attr(t,G);if(!K){K=B++;b.attr(t,G,K)}x[K]||(x[K]={});if(V=x[K][O])b.disconnect(V);else try{delete t[O]}catch(ca){}x[K][O]=b.connect(t,O,A)}else if(V||typeof A=="boolean")t[O]=A;else t.setAttribute(Q,A);return t}A=t[O];if(V&&typeof A!="undefined")return A;if(O!="href"&&(typeof A=="boolean"||b.isFunction(A)))return A;return w(t,Q)?t.getAttribute(Q):null};b.removeAttr=function(t,v){a(t).removeAttribute(u(v))};b.getNodeProp=
function(t,v){t=a(t);var A=v.toLowerCase(),K=n[A]||v;if(K in t&&K!="href")return t[K];v=m[A]||v;return w(t,v)?t.getAttribute(v):null};b.create=function(t,v,A,K){var O=b.doc;if(A){A=a(A);O=A.ownerDocument}if(typeof t=="string")t=O.createElement(t);v&&b.attr(t,v);A&&b.place(t,A,K);return t};b.empty=b.isIE?function(t){t=a(t);for(var v;v=t.lastChild;)b.destroy(v)}:function(t){a(t).innerHTML=""};var D={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"]},H=/<\s*([\w\:]+)/,J={},E=0,N="__"+b._scopeName+"ToDomId";for(var L in D)if(D.hasOwnProperty(L)){var T=D[L];T.pre=L=="option"?'<select multiple="multiple">':"<"+T.join("><")+">";T.post="</"+T.reverse().join("></")+">"}b._toDom=function(t,v){v=v||b.doc;var A=v[N];if(!A){v[N]=A=++E+"";J[A]=v.createElement("div")}t+="";var K=t.match(H),O=K?K[1].toLowerCase():"";A=J[A];if(K&&D[O]){K=
D[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=v.createDocumentFragment();v=A.firstChild;)t.appendChild(v);return t};var R="className";b.hasClass=function(t,v){return(" "+a(t)[R]+" ").indexOf(" "+v+" ")>=0};var Z=/\s+/,M=[""],S={},W=function(t){if(typeof t=="string"||t instanceof String)if(t.indexOf(" ")<0){M[0]=t;return M}else return t.split(Z);return t||""};b.addClass=function(t,v){t=a(t);
v=W(v);var A=t[R],K;A=A?" "+A+" ":" ";K=A.length;for(var O=0,Q=v.length,V;O<Q;++O)if((V=v[O])&&A.indexOf(" "+V+" ")<0)A+=V+" ";if(K<A.length)t[R]=A.substr(1,A.length-2)};b.removeClass=function(t,v){t=a(t);var A;if(v!==undefined){v=W(v);A=" "+t[R]+" ";for(var K=0,O=v.length;K<O;++K)A=A.replace(" "+v[K]+" "," ");A=b.trim(A)}else A="";if(t[R]!=A)t[R]=A};b.replaceClass=function(t,v,A){t=a(t);S.className=t.className;b.removeClass(S,A);b.addClass(S,v);if(t.className!==S.className)t.className=S.className};
b.toggleClass=function(t,v,A){if(A===undefined)A=!b.hasClass(t,v);b[A?"addClass":"removeClass"](t,v)}})();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 d=Array.prototype,a=d.slice,c=d.concat,e=function(o,p,q){o.sort||(o=a.call(o,0));q=q||this._NodeListCtor||b._NodeListCtor;o.constructor=q;b._mixin(o,q.prototype);o._NodeListCtor=q;return p?o._stash(p):o},f=function(o,p,q){p=[0].concat(a.call(p,0));q=q||b.global;return function(n){p[0]=n;return o.apply(q,p)}},g=function(o,p){return function(){this.forEach(f(o,
arguments,p));return this}},h=function(o,p){return function(){return this.map(f(o,arguments,p))}},i=function(o,p,q){return function(){var n=arguments,m=f(o,n,q);if(p.call(q||b.global,n))return this.map(m);this.forEach(m);return this}},j=function(o){return o.length==1&&typeof o[0]=="string"},k=function(o){var p=o.parentNode;p&&p.removeChild(o)};b.NodeList=function(){return e(Array.apply(null,arguments))};var l=b._NodeListCtor=b.NodeList,r=l.prototype;l._wrap=r._wrap=e;l._adaptAsMap=h;l._adaptAsForEach=
g;l._adaptAsFilter=function(o,p){return function(){return this.filter(f(o,arguments,p))}};l._adaptWithCondition=i;b.forEach(["slice","splice"],function(o){var p=d[o];r[o]=function(){return this._wrap(p.apply(this,arguments),o=="slice"?this:null)}});b.forEach(["indexOf","lastIndexOf","every","some"],function(o){var p=b[o];r[o]=function(){return p.apply(b,[this].concat(a.call(arguments,0)))}});b.forEach(["attr","style"],function(o){r[o]=i(b[o],j)});b.forEach(["connect","addClass","removeClass","replaceClass",
"toggleClass","empty","removeAttr"],function(o){r[o]=g(b[o])});b.extend(b.NodeList,{_normalize:function(o,p){var q=o.parse===true?true:false;if(typeof o.template=="string"){var n=o.templateFunc||b.string&&b.string.substitute;o=n?n(o.template,o):o}n=typeof o;if(n=="string"||n=="number"){o=b._toDom(o,p&&p.ownerDocument);o=o.nodeType==11?b._toArray(o.childNodes):[o]}else if(b.isArrayLike(o))b.isArray(o)||(o=b._toArray(o));else o=[o];if(q)o._runParse=true;return o},_cloneNode:function(o){return o.cloneNode(true)},
_place:function(o,p,q,n){if(!(p.nodeType!=1&&q=="only")){p=p;for(var m,s=o.length,u=s-1;u>=0;u--){var w=n?this._cloneNode(o[u]):o[u];if(o._runParse&&b.parser&&b.parser.parse){m||(m=p.ownerDocument.createElement("div"));m.appendChild(w);b.parser.parse(m);for(w=m.firstChild;m.firstChild;)m.removeChild(m.firstChild)}u==s-1?b.place(w,p,q):p.parentNode.insertBefore(w,p);p=w}}},_stash:function(o){this._parent=o;return this},end:function(){return this._parent?this._parent:new this._NodeListCtor},concat:function(){var o=
b.isArray(this)?this:a.call(this,0),p=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(o,p),this)},map:function(o,p){return this._wrap(b.map(this,o,p),this)},forEach:function(o,p){b.forEach(this,o,p);return this},coords:h(b.coords),position:h(b.position),place:function(o,p){var q=b.query(o)[0];return this.forEach(function(n){b.place(n,q,p)})},orphan:function(o){return(o?
b._filterQueryResult(this,o):this).forEach(k)},adopt:function(o,p){return b.query(o).place(this[0],p)._stash(this)},query:function(o){if(!o)return this;var p=this.map(function(q){return b.query(o,q).filter(function(n){return n!==undefined})});return this._wrap(c.apply([],p),this)},filter:function(o){var p=arguments,q=this,n=0;if(typeof o=="string"){q=b._filterQueryResult(this,p[0]);if(p.length==1)return q._stash(this);n=1}return this._wrap(b.filter(q,p[n],p[n+1]),this)},addContent:function(o,p){o=
this._normalize(o,this[0]);for(var q=0,n;n=this[q];q++)this._place(o,n,p,q>0);return this},instantiate:function(o,p){var q=b.isFunction(o)?o:b.getObject(o);p=p||{};return this.forEach(function(n){new q(p,n)})},at:function(){var o=new this._NodeListCtor;b.forEach(arguments,function(p){if(p<0)p=this.length+p;this[p]&&o.push(this[p])},this);return o._stash(this)}});l.events=["blur","focus","change","click","error","keydown","keypress","keyup","load","mousedown","mouseenter","mouseleave","mousemove",
"mouseout","mouseover","mouseup","submit"];b.forEach(l.events,function(o){var p="on"+o;r[p]=function(q,n){return this.connect(p,q,n)}})})();return b.NodeList});
(function(){var b=function(a){var c=a.trim,e=a.forEach,f=a._NodeListCtor=a.NodeList,g=function(){return a.doc},h=(a.isWebKit||a.isMozilla)&&g().compatMode=="BackCompat",i=g().firstChild.children?"children":"childNodes",j=false,k=function(){return true},l=function(z){z+=">~+".indexOf(z.slice(-1))>=0?" * ":" ";for(var y=function(oa,pa){return c(z.slice(oa,pa))},F=[],I=-1,P=-1,U=-1,Y=-1,X=-1,$=-1,fa=-1,ha="",ga="",ma,ea=0,qa=z.length,ba=null,ka=null,ra=function(){if(fa>=0){var oa=fa==ea?null:y(fa,ea);
ba[">~+".indexOf(oa)<0?"tag":"oper"]=oa;fa=-1}},sa=function(){if($>=0){ba.id=y($,ea).replace(/\\/g,"");$=-1}},ta=function(){if(X>=0){ba.classes.push(y(X+1,ea).replace(/\\/g,""));X=-1}},na=function(){sa();ra();ta()},ua=function(){na();Y>=0&&ba.pseudos.push({name:y(Y+1,ea)});ba.loops=ba.pseudos.length||ba.attrs.length||ba.classes.length;ba.oquery=ba.query=y(ma,ea);ba.otag=ba.tag=ba.oper?null:ba.tag||"*";if(ba.tag)ba.tag=ba.tag.toUpperCase();if(F.length&&F[F.length-1].oper){ba.infixOper=F.pop();ba.query=
ba.infixOper.query+" "+ba.query}F.push(ba);ba=null};ha=ga,ga=z.charAt(ea),ea<qa;ea++)if(ha!="\\"){if(!ba){ma=ea;ba={query:null,pseudos:[],attrs:[],classes:[],tag:null,oper:null,id:null,getTag:function(){return j?this.otag:this.tag}};fa=ea}if(I>=0)if(ga=="]"){if(ka.attr)ka.matchFor=y(U||I+1,ea);else ka.attr=y(I+1,ea);if(I=ka.matchFor)if(I.charAt(0)=='"'||I.charAt(0)=="'")ka.matchFor=I.slice(1,-1);ba.attrs.push(ka);ka=null;I=U=-1}else{if(ga=="="){U="|~^$*".indexOf(ha)>=0?ha:"";ka.type=U+ga;ka.attr=
y(I+1,ea-U.length);U=ea+1}}else if(P>=0){if(ga==")"){if(Y>=0)ka.value=y(P+1,ea);Y=P=-1}}else if(ga=="#"){na();$=ea+1}else if(ga=="."){na();X=ea}else if(ga==":"){na();Y=ea}else if(ga=="["){na();I=ea;ka={}}else if(ga=="("){if(Y>=0){ka={name:y(Y+1,ea),value:null};ba.pseudos.push(ka)}P=ea}else ga==" "&&ha!=ga&&ua()}return F},r=function(z,y){if(!z)return y;if(!y)return z;return function(){return z.apply(window,arguments)&&y.apply(window,arguments)}},o=function(z,y){y=y||[];z&&y.push(z);return y},p=function(z){return 1==
z.nodeType},q=function(z,y){if(!z)return"";if(y=="class")return z.className||"";if(y=="for")return z.htmlFor||"";if(y=="style")return z.style.cssText||"";return(j?z.getAttribute(y):z.getAttribute(y,2))||""},n={"*=":function(z,y){return function(F){return q(F,z).indexOf(y)>=0}},"^=":function(z,y){return function(F){return q(F,z).indexOf(y)==0}},"$=":function(z,y){return function(F){F=" "+q(F,z);return F.lastIndexOf(y)==F.length-y.length}},"~=":function(z,y){var F=" "+y+" ";return function(I){return(" "+
q(I,z)+" ").indexOf(F)>=0}},"|=":function(z,y){var F=" "+y+"-";return function(I){I=" "+q(I,z);return I==y||I.indexOf(F)==0}},"=":function(z,y){return function(F){return q(F,z)==y}}},m=typeof g().firstChild.nextElementSibling=="undefined",s=!m?"nextElementSibling":"nextSibling",u=!m?"previousElementSibling":"previousSibling",w=m?p:k,x=function(z){for(;z=z[u];)if(w(z))return false;return true},B=function(z){for(;z=z[s];)if(w(z))return false;return true},G=function(z){var y=z.parentNode,F=0,I=y[i],
P=z._i||-1,U=y._l||-1;if(!I)return-1;I=I.length;if(U==I&&P>=0&&U>=0)return P;y._l=I;P=-1;for(y=y.firstElementChild||y.firstChild;y;y=y[s])if(w(y)){y._i=++F;if(z===y)P=F}return P},C=function(z){return!(G(z)%2)},D=function(z){return G(z)%2},H={checked:function(){return function(z){return!!("checked"in z?z.checked:z.selected)}},"first-child":function(){return x},"last-child":function(){return B},"only-child":function(){return function(z){if(!x(z))return false;if(!B(z))return false;return true}},empty:function(){return function(z){var y=
z.childNodes;for(z=z.childNodes.length-1;z>=0;z--){var F=y[z].nodeType;if(F===1||F==3)return false}return true}},contains:function(z,y){z=y.charAt(0);if(z=='"'||z=="'")y=y.slice(1,-1);return function(F){return F.innerHTML.indexOf(y)>=0}},not:function(z,y){z=l(y)[0];y={el:1};if(z.tag!="*")y.tag=1;if(!z.classes.length)y.classes=1;var F=E(z,y);return function(I){return!F(I)}},"nth-child":function(z,y){z=parseInt;if(y=="odd")return D;else if(y=="even")return C;if(y.indexOf("n")!=-1){y=y.split("n",2);
var F=y[0]?y[0]=="-"?-1:z(y[0]):1,I=y[1]?z(y[1]):0,P=0,U=-1;if(F>0)if(I<0)I=I%F&&F+I%F;else{if(I>0){if(I>=F)P=I-I%F;I%=F}}else if(F<0){F*=-1;if(I>0){U=I;I%=F}}if(F>0)return function(X){X=G(X);return X>=P&&(U<0||X<=U)&&X%F==I};else y=I}var Y=z(y);return function(X){return G(X)==Y}}},J=a.isIE<9||dojo.isIE&&dojo.isQuirks?function(z){var y=z.toLowerCase();if(y=="class")z="className";return function(F){return j?F.getAttribute(z):F[z]||F[y]}}:function(z){return function(y){return y&&y.getAttribute&&y.hasAttribute(z)}},
E=function(z,y){if(!z)return k;y=y||{};var F=null;"el"in y||(F=r(F,p));if(!("tag"in y))if(z.tag!="*")F=r(F,function(I){return I&&I.tagName==z.getTag()});"classes"in y||e(z.classes,function(I,P){var U=new RegExp("(?:^|\\s)"+I+"(?:\\s|$)");F=r(F,function(Y){return U.test(Y.className)});F.count=P});"pseudos"in y||e(z.pseudos,function(I){var P=I.name;if(H[P])F=r(F,H[P](P,I.value))});"attrs"in y||e(z.attrs,function(I){var P,U=I.attr;if(I.type&&n[I.type])P=n[I.type](U,I.matchFor);else if(U.length)P=J(U);
if(P)F=r(F,P)});if(!("id"in y))if(z.id)F=r(F,function(I){return!!I&&I.id==z.id});F||"default"in y||(F=k);return F},N=function(z){return function(y,F,I){for(;y=y[s];)if(!(m&&!p(y))){if((!I||ia(y,I))&&z(y))F.push(y);break}return F}},L=function(z){return function(y,F,I){for(y=y[s];y;){if(w(y)){if(I&&!ia(y,I))break;z(y)&&F.push(y)}y=y[s]}return F}},T=function(z){z=z||k;return function(y,F,I){for(var P=0,U=y[i];y=U[P++];)if(w(y)&&(!I||ia(y,I))&&z(y,P))F.push(y);return F}},R=function(z,y){for(z=z.parentNode;z;){if(z==
y)break;z=z.parentNode}return!!z},Z={},M=function(z){var y=Z[z.query];if(y)return y;var F=z.infixOper;F=F?F.oper:"";var I=E(z,{el:1}),P="*"==z.tag,U=g().getElementsByClassName;if(F){U={el:1};if(P)U.tag=1;I=E(z,U);if("+"==F)y=N(I);else if("~"==F)y=L(I);else if(">"==F)y=T(I)}else if(z.id){I=!z.loops&&P?k:E(z,{el:1,id:1});y=function(X,$){var fa=a.byId(z.id,X.ownerDocument||X);if(fa&&I(fa))if(9==X.nodeType)return o(fa,$);else if(R(fa,X))return o(fa,$)}}else if(U&&/\{\s*\[native code\]\s*\}/.test(String(U))&&
z.classes.length&&!h){I=E(z,{el:1,classes:1,id:1});var Y=z.classes.join(" ");y=function(X,$,fa){$=o(0,$);for(var ha,ga=0,ma=X.getElementsByClassName(Y);ha=ma[ga++];)I(ha,X)&&ia(ha,fa)&&$.push(ha);return $}}else if(!P&&!z.loops)y=function(X,$,fa){$=o(0,$);for(var ha=0,ga=X.getElementsByTagName(z.getTag());X=ga[ha++];)ia(X,fa)&&$.push(X);return $};else{I=E(z,{el:1,tag:1,id:1});y=function(X,$,fa){$=o(0,$);for(var ha,ga=0,ma=X.getElementsByTagName(z.getTag());ha=ma[ga++];)I(ha,X)&&ia(ha,fa)&&$.push(ha);
return $}}return Z[z.query]=y},S=function(z,y){z=o(z);for(var F,I,P=y.length,U,Y,X=0;X<P;X++){Y=[];F=y[X];I=z.length-1;if(I>0){U={};Y.nozip=true}I=M(F);for(var $=0;F=z[$];$++)I(F,Y,U);if(!Y.length)break;z=Y}return Y},W={},t={},v=function(z){var y=l(c(z));if(y.length==1){var F=M(y[0]);return function(I){if(I=F(I,new f))I.nozip=true;return I}}return function(I){return S(I,y)}},A=navigator.userAgent;A=a.isWebKit&&A.indexOf("WebKit/")>0&&parseFloat(A.split("WebKit/")[1])>528;var K=a.isIE?"commentStrip":
"nozip",O=!!g().querySelectorAll&&(!a.isSafari||a.isSafari>3.1||A),Q=/n\+\d|([^ ])?([>~+])([^ =])?/g,V=function(z,y,F,I){return F?(y?y+" ":"")+F+(I?" "+I:""):z},ca=function(z,y){z=z.replace(Q,V);if(O){var F=t[z];if(F&&!y)return F}if(F=W[z])return F;F=z.charAt(0);var I=-1==z.indexOf(" ");if(z.indexOf("#")>=0&&I)y=true;if(O&&!y&&">~+".indexOf(F)==-1&&(!a.isIE||z.indexOf(":")==-1)&&!(h&&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(Y){try{if(!(9==Y.nodeType||I))throw"";var X=Y.querySelectorAll(P);X[K]=true;return X}catch($){return ca(z,true)(Y)}}}else{var U=z.split(/\s*,\s*/);return W[z]=U.length<2?v(z):function(Y){for(var X=0,$=[],fa;fa=U[X++];)$=$.concat(v(fa)(Y));return $}}},aa=0,da=a.isIE?function(z){return j?z.getAttribute("_uid")||z.setAttribute("_uid",++aa)||aa:z.uniqueID}:function(z){return z._uid||(z._uid=++aa)},ia=function(z,y){if(!y)return 1;z=da(z);if(!y[z])return y[z]=1;return 0},
ja="_zipIdx",la=function(z){if(z&&z.nozip)return f._wrap?f._wrap(z):z;var y=new f;if(!z||!z.length)return y;z[0]&&y.push(z[0]);if(z.length<2)return y;aa++;if(a.isIE&&j){var F=aa+"";z[0].setAttribute(ja,F);for(var I=1,P;P=z[I];I++){z[I].getAttribute(ja)!=F&&y.push(P);P.setAttribute(ja,F)}}else if(a.isIE&&z.commentStrip)try{for(I=1;P=z[I];I++)p(P)&&y.push(P)}catch(U){}else{if(z[0])z[0][ja]=aa;for(I=1;P=z[I];I++){z[I][ja]!=aa&&y.push(P);P[ja]=aa}}return y};a.query=function(z,y){f=a._NodeListCtor;if(!z)return new f;
if(z.constructor==f)return z;if(typeof z!="string")return new f(z);if(typeof y=="string"){y=a.byId(y);if(!y)return new f}y=y||g();var F=y.ownerDocument||y.documentElement;j=y.contentType&&y.contentType=="application/xml"||a.isOpera&&(y.doctype||F.toString()=="[object XMLDocument]")||!!F&&(a.isIE?F.xml:y.xmlVersion||F.xmlVersion);if((z=ca(z)(y))&&z.nozip&&!f._wrap)return z;return la(z)};a.query.pseudos=H;a._filterQueryResult=function(z,y,F){var I=new a._NodeListCtor,P=l(y);P=P.length==1&&!/[^\w#\.]/.test(y)?
E(P[0]):function(X){return dojo.query(y,F).indexOf(X)!=-1};for(var U=0,Y;Y=z[U];U++)P(Y)&&I.push(Y);return I}},d=function(){acme={trim:function(f){f=f.replace(/^\s+/,"");for(var g=f.length-1;g>=0;g--)if(/\S/.test(f.charAt(g))){f=f.substring(0,g+1);break}return f},forEach:function(f,g,h){if(f&&f.length)for(var i=0,j=f.length;i<j;++i)g.call(h||window,f[i],i,f)},byId:function(f,g){return typeof f=="string"?(g||document).getElementById(f):f},doc:document,NodeList:Array};var a=navigator,c=a.userAgent;
a=a.appVersion;var e=parseFloat(a);acme.isOpera=c.indexOf("Opera")>=0?e:undefined;acme.isKhtml=a.indexOf("Konqueror")>=0?e: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||d())})();
define("dojo/_base/xhr",["dojo/lib/kernel","dojo/_base/Deferred","dojo/_base/json","dojo/_base/lang","dojo/_base/query"],function(b){(function(){function d(m,s,u){if(u!==null){var w=m[s];if(typeof w=="string")m[s]=[w,u];else if(a.isArray(w))w.push(u);else m[s]=u}}var a=b,c=a.config;b.fieldToObject=function(m){var s=null;if(m=a.byId(m)){var u=m.name,w=(m.type||"").toLowerCase();if(u&&w&&!m.disabled)if(w=="radio"||w=="checkbox"){if(m.checked)s=m.value}else if(m.multiple){s=[];a.query("option",m).forEach(function(x){x.selected&&
s.push(x.value)})}else s=m.value}return s};b.formToObject=function(m){var s={};a.forEach(b.byId(m).elements,function(u){var w=u.name,x=(u.type||"").toLowerCase();if(w&&x&&"file|submit|image|reset|button|".indexOf(x)==-1&&!u.disabled){d(s,w,a.fieldToObject(u));if(x=="image")s[w+".x"]=s[w+".y"]=s[w].x=s[w].y=0}});return s};b.objectToQuery=function(m){var s=encodeURIComponent,u=[],w={};for(var x in m){var B=m[x];if(B!=w[x]){var G=s(x)+"=";if(a.isArray(B))for(var C=0;C<B.length;C++)u.push(G+s(B[C]));
else u.push(G+s(B))}}return u.join("&")};b.formToQuery=function(m){return a.objectToQuery(a.formToObject(m))};b.formToJson=function(m,s){return a.toJson(a.formToObject(m),s)};b.queryToObject=function(m){var s={};m=m.split("&");var u=decodeURIComponent;a.forEach(m,function(w){if(w.length){var x=w.split("=");w=u(x.shift());x=u(x.join("="));if(typeof s[w]=="string")s[w]=[s[w]];if(a.isArray(s[w]))s[w].push(x);else s[w]=x}});return s};b._blockAsync=false;var e=a._contentHandlers=b.contentHandlers={text:function(m){return m.responseText},
json:function(m){return a.fromJson(m.responseText||null)},"json-comment-filtered":function(m){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.");m=m.responseText;var s=m.indexOf("/*"),u=m.lastIndexOf("*/");if(s==-1||u==-1)throw new Error("JSON was not comment filtered");
return a.fromJson(m.substring(s+2,u))},javascript:function(m){return a.eval(m.responseText)},xml:function(m){var s=m.responseXML;if(a.isIE&&(!s||!s.documentElement)){var u=function(w){return"MSXML"+w+".DOMDocument"};u=["Microsoft.XMLDOM",u(6),u(4),u(3),u(2)];a.some(u,function(w){try{var x=new ActiveXObject(w);x.async=false;x.loadXML(m.responseText);s=x}catch(B){return false}return true})}return s},"json-comment-optional":function(m){return m.responseText&&/^[^{\[]*\/\*/.test(m.responseText)?e["json-comment-filtered"](m):
e.json(m)}};b._ioSetArgs=function(m,s,u,w){var x={args:m,url:m.url},B=null;if(m.form){B=a.byId(m.form);var G=B.getAttributeNode("action");x.url=x.url||(G?G.value:null);B=a.formToObject(B)}G=[{}];B&&G.push(B);m.content&&G.push(m.content);m.preventCache&&G.push({"dojo.preventCache":(new Date).valueOf()});x.query=a.objectToQuery(a.mixin.apply(null,G));x.handleAs=m.handleAs||"text";var C=new a.Deferred(s);C.addCallbacks(u,function(E){return w(E,C)});var D=m.load;D&&a.isFunction(D)&&C.addCallback(function(E){return D.call(m,
E,x)});var H=m.error;H&&a.isFunction(H)&&C.addErrback(function(E){return H.call(m,E,x)});var J=m.handle;J&&a.isFunction(J)&&C.addBoth(function(E){return J.call(m,E,x)});if(c.ioPublish&&a.publish&&x.args.ioPublish!==false){C.addCallbacks(function(E){a.publish("/dojo/io/load",[C,E]);return E},function(E){a.publish("/dojo/io/error",[C,E]);return E});C.addBoth(function(E){a.publish("/dojo/io/done",[C,E]);return E})}C.ioArgs=x;return C};var f=function(m){m.canceled=true;var s=m.ioArgs.xhr,u=typeof s.abort;
if(u=="function"||u=="object"||u=="unknown")s.abort();m=m.ioArgs.error;if(!m){m=new Error("xhr cancelled");m.dojoType="cancel"}return m},g=function(m){m=e[m.ioArgs.handleAs](m.ioArgs.xhr);return m===undefined?null:m},h=function(m,s){s.ioArgs.args.failOk||console.error(m);return m},i=null,j=[],k=0,l=function(m){if(k<=0){k=0;if(c.ioPublish&&a.publish&&(!m||m&&m.ioArgs.args.ioPublish!==false))a.publish("/dojo/io/stop")}},r=function(){var m=(new Date).getTime();if(!a._blockAsync)for(var s=0,u;s<j.length&&
(u=j[s]);s++){var w=u.dfd,x=function(){if(!w||w.canceled||!u.validCheck(w)){j.splice(s--,1);k-=1}else if(u.ioCheck(w)){j.splice(s--,1);u.resHandle(w);k-=1}else if(w.startTime)if(w.startTime+(w.ioArgs.args.timeout||0)<m){j.splice(s--,1);var G=new Error("timeout exceeded");G.dojoType="timeout";w.errback(G);w.cancel();k-=1}};if(b.config.debugAtAllCosts)x.call(this);else try{x.call(this)}catch(B){w.errback(B)}}l(w);if(!j.length){clearInterval(i);i=null}};b._ioCancelAll=function(){try{a.forEach(j,function(s){try{s.dfd.cancel()}catch(u){}})}catch(m){}};
a.isIE&&a.addOnWindowUnload(a._ioCancelAll);a._ioNotifyStart=function(m){if(c.ioPublish&&a.publish&&m.ioArgs.args.ioPublish!==false){k||a.publish("/dojo/io/start");k+=1;a.publish("/dojo/io/send",[m])}};a._ioWatch=function(m,s,u,w){var x=m.ioArgs.args;if(x.timeout)m.startTime=(new Date).getTime();j.push({dfd:m,validCheck:s,ioCheck:u,resHandle:w});i||(i=setInterval(r,50));x.sync&&r()};var o="application/x-www-form-urlencoded",p=function(m){return m.ioArgs.xhr.readyState},q=function(m){return 4==m.ioArgs.xhr.readyState},
n=function(m){var s=m.ioArgs.xhr;if(a._isDocumentOk(s))m.callback(m);else{var u=new Error("Unable to load "+m.ioArgs.url+" status:"+s.status);u.status=s.status;u.responseText=s.responseText;m.errback(u)}};b._ioAddQueryToUrl=function(m){if(m.query.length){m.url+=(m.url.indexOf("?")==-1?"?":"&")+m.query;m.query=null}};b.xhr=function(m,s,u){var w=a._ioSetArgs(s,f,g,h),x=w.ioArgs,B=x.xhr=a._xhrObj(x.args);if(!B){w.cancel();return w}if("postData"in s)x.query=s.postData;else if("putData"in s)x.query=s.putData;
else if("rawBody"in s)x.query=s.rawBody;else if(arguments.length>2&&!u||"POST|PUT".indexOf(m.toUpperCase())==-1)a._ioAddQueryToUrl(x);B.open(m,x.url,s.sync!==true,s.user||undefined,s.password||undefined);if(s.headers)for(var G in s.headers)if(G.toLowerCase()==="content-type"&&!s.contentType)s.contentType=s.headers[G];else s.headers[G]&&B.setRequestHeader(G,s.headers[G]);B.setRequestHeader("Content-Type",s.contentType||o);if(!s.headers||!("X-Requested-With"in s.headers))B.setRequestHeader("X-Requested-With",
"XMLHttpRequest");a._ioNotifyStart(w);if(b.config.debugAtAllCosts)B.send(x.query);else try{B.send(x.query)}catch(C){x.error=C;w.cancel()}a._ioWatch(w,p,q,n);return w};b.xhrGet=function(m){return a.xhr("GET",m)};b.rawXhrPost=b.xhrPost=function(m){return a.xhr("POST",m,true)};b.rawXhrPut=b.xhrPut=function(m){return a.xhr("PUT",m,true)};b.xhrDelete=function(m){return a.xhr("DELETE",m)}})();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 d=b._mixin;b._Line=function(h,i){this.start=h;this.end=i};b._Line.prototype.getValue=function(h){return(this.end-this.start)*h+this.start};b.Animation=function(h){d(this,h);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 h=this._percent,i=this.easing;return i?i(h):h},_fire:function(h,i){i=i||[];if(this[h])if(b.config.debugAtAllCosts)this[h].apply(this,i);else try{this[h].apply(this,i)}catch(j){console.error("exception in animation handler for:",h);console.error(j)}return this},play:function(h,i){var j=this;j._delayTimer&&j._clearTimer();if(i){j._stopTimer();j._active=j._paused=false;j._percent=0}else if(j._active&&!j._paused)return j;j._fire("beforeBegin",[j.node]);h=h||j.delay;var k=b.hitch(j,
"_play",i);if(h>0){j._delayTimer=setTimeout(k,h);return j}k();return j},_play:function(){var h=this;h._delayTimer&&h._clearTimer();h._startTime=(new Date).valueOf();if(h._paused)h._startTime-=h.duration*h._percent;h._active=true;h._paused=false;var i=h.curve.getValue(h._getStep());if(!h._percent){if(!h._startRepeatCount)h._startRepeatCount=h.repeat;h._fire("onBegin",[i])}h._fire("onPlay",[i]);h._cycle();return h},pause:function(){var h=this;h._delayTimer&&h._clearTimer();h._stopTimer();if(!h._active)return h;
h._paused=true;h._fire("onPause",[h.curve.getValue(h._getStep())]);return h},gotoPercent:function(h,i){var j=this;j._stopTimer();j._active=j._paused=true;j._percent=h;i&&j.play();return j},stop:function(h){var i=this;i._delayTimer&&i._clearTimer();if(!i._timer)return i;i._stopTimer();if(h)i._percent=1;i._fire("onStop",[i.curve.getValue(i._getStep())]);i._active=i._paused=false;return i},status:function(){if(this._active)return this._paused?"paused":"playing";return"stopped"},_cycle:function(){var h=
this;if(h._active){var i=((new Date).valueOf()-h._startTime)/h.duration;if(i>=1)i=1;h._percent=i;if(h.easing)i=h.easing(i);h._fire("onAnimate",[h.curve.getValue(i)]);if(h._percent<1)h._startTimer();else{h._active=false;if(h.repeat>0){h.repeat--;h.play(null,true)}else if(h.repeat==-1)h.play(null,true);else if(h._startRepeatCount){h.repeat=h._startRepeatCount;h._startRepeatCount=0}h._percent=0;h._fire("onEnd",[h.node]);!h.repeat&&h._stopTimer()}}return h},_clearTimer:function(){clearTimeout(this._delayTimer);
delete this._delayTimer}});var a=0,c=null,e={run:function(){}};b.extend(b.Animation,{_startTimer:function(){if(!this._timer){this._timer=b.connect(e,"run",this,"_cycle");a++}c||(c=setInterval(b.hitch(e,"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(h){var i=h.style;if(!i.width.length&&b.style(h,"width")=="auto")i.width="auto"}:function(){};b._fade=function(h){h.node=b.byId(h.node);
var i=d({properties:{}},h);h=i.properties.opacity={};h.start=!("start"in i)?function(){return+b.style(i.node,"opacity")||0}:i.start;h.end=i.end;h=b.animateProperty(i);b.connect(h,"beforeBegin",b.partial(f,i.node));return h};b.fadeIn=function(h){return b._fade(d({end:1},h))};b.fadeOut=function(h){return b._fade(d({end:0},h))};b._defaultEasing=function(h){return 0.5+Math.sin((h+1.5)*Math.PI)/2};var g=function(h){this._properties=h;for(var i in h){var j=h[i];if(j.start instanceof b.Color)j.tempColor=
new b.Color}};g.prototype.getValue=function(h){var i={};for(var j in this._properties){var k=this._properties[j],l=k.start;if(l instanceof b.Color)i[j]=b.blendColors(l,k.end,h,k.tempColor).toCss();else b.isArray(l)||(i[j]=(k.end-l)*h+l+(j!="opacity"?k.units||"px":0))}return i};b.animateProperty=function(h){var i=h.node=b.byId(h.node);if(!h.easing)h.easing=b._defaultEasing;h=new b.Animation(h);b.connect(h,"beforeBegin",h,function(){var j={};for(var k in this.properties){if(k=="width"||k=="height")this.node.display=
"block";var l=this.properties[k];if(b.isFunction(l))l=l(i);l=j[k]=d({},b.isObject(l)?l:{end:l});if(b.isFunction(l.start))l.start=l.start(i);if(b.isFunction(l.end))l.end=l.end(i);var r=k.toLowerCase().indexOf("color")>=0,o=function(p,q){var n={height:p.offsetHeight,width:p.offsetWidth}[q];if(n!==undefined)return n;n=b.style(p,q);return q=="opacity"?+n:r?n:parseFloat(n)};if("end"in l){if(!("start"in l))l.start=o(i,k)}else l.end=o(i,k);if(r){l.start=new b.Color(l.start);l.end=new b.Color(l.end)}else l.start=
k=="opacity"?+l.start:parseFloat(l.start)}this.curve=new g(j)});b.connect(h,"onAnimate",b.hitch(b,"style",h.node));return h};b.anim=function(h,i,j,k,l,r){return b.animateProperty({node:h,duration:j||b.Animation.prototype.duration,properties:i,easing:k,onEnd:l}).play(r||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 d(g,h,i){this.serviceId=g;this.name=h;this.properties=i}function a(g,h,i){this.serviceId=g;this.serviceReference=h;this.internalRegistry=i}function c(g,h,i){this.serviceId=g;this.implementation=h;this.internalRegistry=i;var j;for(j in h)if(typeof h[j]==="function")this[j]=function(k){return function(){if(i.isRegistered(g)){var l=new b.Deferred;try{var r=h[k].apply(h,Array.prototype.slice.call(arguments));b.when(r,b.hitch(l,l.resolve),b.hitch(l,
l.reject),b.hitch(l,l.progress))}catch(o){l.reject(o)}return l}throw new Error("Service was unregistered");}}(j)}function e(){this._namedlisteners={}}function f(){this._entries=[];this._namedReferences={};this._serviceEventTarget=new e;var g=this;this.internalRegistry={isRegistered:function(h){return g._entries[h]?true:false},unregisterService:function(h){var i=g._entries[h];if(i){for(var j=i.reference,k=g._namedReferences[j.getName()],l=0;l<k.length;l++)if(k[l]===j){if(k.length===1)delete g._namedReferences[j.getName()];
else k.splice(l,1);break}g._entries[h]=null;g._serviceEventTarget.dispatchEvent("serviceRemoved",j,i.service)}},dispatchEvent:function(h,i){var j=g._entries[h];j&&j.eventTarget.dispatchEvent.apply(j.eventTarget,[i].concat(Array.prototype.slice.call(arguments,2)))},addEventListener:function(h,i,j){(h=g._entries[h])&&h.eventTarget.addEventListener(i,j)},removeEventListener:function(h,i,j){(h=g._entries[h])&&h.eventTarget.removeEventListener(i,j)}}}d.prototype={getServiceId:function(){return this.serviceId},
getName:function(){return this.name},getPropertyNames:function(){var g=[],h;for(h in this.properties)this.properties.hasOwnProperty(h)&&g.push(h);return g},getProperty:function(g){return this.properties[g]}};d.prototype.constructor=d;a.prototype={unregister:function(){this.internalRegistry.unregisterService(this.serviceId)},dispatchEvent:function(g){this.internalRegistry.dispatchEvent.apply(this.internalRegistry,[this.serviceId,g].concat(Array.prototype.slice.call(arguments,1)))},getServiceReference:function(){return this.serviceReference}};
a.prototype.constructor=a;c.prototype={addEventListener:function(g,h){this.internalRegistry.addEventListener(this.serviceId,g,h)},removeEventListener:function(g,h){this.internalRegistry.removeEventListener(this.serviceId,g,h)}};c.prototype.constructor=c;e.prototype={dispatchEvent:function(g){var h=this._namedlisteners[g];if(h)for(var i=0;i<h.length;i++)try{var j=Array.prototype.slice.call(arguments,1);h[i].apply(null,j)}catch(k){console.log(k)}},addEventListener:function(g,h){this._namedlisteners[g]=
this._namedlisteners[g]||[];this._namedlisteners[g].push(h)},removeEventListener:function(g,h){var i=this._namedlisteners[g];if(i)for(var j=0;j<i.length;j++)if(i[j]===h){if(i.length===1)delete this._namedlisteners[g];else i.splice(j,1);break}}};e.prototype.constructor=e;f.prototype={getService:function(g){var h;if(typeof g==="string"){if(this._namedReferences[g])for(var i=0;i<this._namedReferences[g].length;i++)if(h=this._entries[this._namedReferences[g][i].getServiceId()].service)break}else h=this._entries[g.getServiceId()].service;
return h},getServiceReferences:function(g){if(g)return this._namedReferences[g]?this._namedReferences[g]:[];g=[];for(var h=0;h<this._entries.length;h++)this._entries[h]&&g.push(this._entries[h].reference);return g},registerService:function(g,h,i){var j=this._entries.length;i=new d(j,g,i);h=new c(j,h,this.internalRegistry);this._namedReferences[g]=this._namedReferences[g]||[];this._namedReferences[g].push(i);this._entries.push({reference:i,service:h,eventTarget:new e});this._serviceEventTarget.dispatchEvent("serviceAdded",
i,h);return new a(j,i,this.internalRegistry)},addEventListener:function(g,h){this._serviceEventTarget.addEventListener(g,h)},removeEventListener:function(g,h){this._serviceEventTarget.removeEventListener(g,h)}};f.prototype.constructor=f;return{ServiceReference:d,ServiceRegistration:a,Service:c,EventTarget:e,ServiceRegistry:f}});define("dijit",["dojo"],function(b){return dijit=b._dijit||{}});
define("orion/commonHTMLFragments",["require"],function(b){var d='<div id="staticBanner" class="layoutBlock topRowBanner"><a id="home" class="layoutLeft logo" href="'+b.toUrl("index.html")+'"><img src="'+b.toUrl("images/orion-small-lightondark.gif")+'" alt="Orion Logo"/></a><div id="primaryNav" class="layoutLeft primaryNav"></div><div id="userMenu" class="layoutRight textless"></div><div id="userInfo" class="layoutRight primaryNav"></div><div class="layoutRight primaryNav">|</div></div><div id="titleArea" class="layoutBlock titleArea"><div id="pageTitle" class="layoutLeft pageTitle"></div><input type="search" id="search" placeholder="Search" title="Type a keyword or wild card to search in root" class="layoutRight searchbox"><div id="relatedLinks" class="layoutRight pageNav"></div><div id="extras" class="layoutRight pageNav"><div id="globalActions" class="pageNav"></div><span id="pageFavorite" tabindex="0" role="button" aria-label="Add this page to the favorites list" class="imageSprite core-sprite-favorite_sml"></span></div><div id="dimension" class="clear dimension"></div><div id="location" class="clear currentLocation"></div></div>';
b='<div class="layoutLeft pageActions" id="pageActions"></div><div class="layoutLeft pageActions" id="selectionTools"></div><img class="layoutRight progressPane" src="'+b.toUrl("images/none.png")+'" id="progressPane"></img><div class="layoutRight status" id="statusPane"></div><div class="layoutRight pageActions" id="pageNavigationActions"></div><div id="notificationArea" class="layoutLeft layoutBlock slideContainer"><div class="layoutLeft" id="notifications" aria-live="assertive" aria-atomic="true"></div><div class="layoutRight"><span tabindex: "0" role: "button" class="layoutRight core-sprite-close imageSprite" id="closeNotifications"></span></div></div><div id="parameterArea" class="layoutBlock slideParameters slideContainer"><span id="pageParameterArea" class="slide"><span id="pageCommandParameters" class="parameters"></span><span id="pageCommandDismiss" class="parametersDismiss"></span></span></div>';
return{topHTMLFragment:d,bottomHTMLFragment:'<div class="layoutBlock"><div class="footerBlock">Orion is in Beta. Please try it out but BEWARE your data may be lost.</div><div class="footerRightBlock"><a href="http://wiki.eclipse.org/Orion/FAQ" target="_blank">FAQ</a> | <a href="https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Orion&version=0.4" target="_blank">Report a Bug</a> | <a href="http://www.eclipse.org/legal/privacy.php" target="_blank">Privacy Policy</a> | <a href="http://www.eclipse.org/legal/termsofuse.php" target="_blank">Terms of Use</a> | <a href="http://www.eclipse.org/legal/copyright.php" target="_blank">Copyright Agent</a></div></div>',
toolbarHTMLFragment:b}});
define("dojo/hash",["dojo"],function(b){(function(){function d(l,r){r=l.indexOf(r);return r>=0?l.substring(r+1):""}function a(){return d(location.href,"#")}function c(){b.publish("/dojo/hashchange",[a()])}function e(){if(a()!==h){h=a();c()}}function f(l){if(i)if(i.isTransitioning())setTimeout(b.hitch(null,f,l),k);else{var r=i.iframe.location.href,o=r.indexOf("?");i.iframe.location.replace(r.substring(0,o)+"?"+l)}else{location.replace("#"+l);!j&&e()}}function g(){function l(){h=a();p=s?h:d(u.href,
"?");q=false;n=null}var r=document.createElement("iframe"),o=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");r.id="dojo-hash-iframe";r.src=o+"?"+a();r.style.display="none";document.body.appendChild(r);this.iframe=b.global["dojo-hash-iframe"];
var p,q,n,m,s,u=this.iframe.location;this.isTransitioning=function(){return q};this.pollLocation=function(){if(!s)try{var w=d(u.href,"?");if(document.title!=m)m=this.iframe.document.title=document.title}catch(x){s=true;console.error("dojo.hash: Error adding history entry. Server unreachable.")}var B=a();if(q&&h===B)if(s||w===n){l();c()}else{setTimeout(b.hitch(this,this.pollLocation),0);return}else if(!(h===B&&(s||p===w)))if(h!==B){h=B;q=true;n=B;r.src=o+"?"+n;s=false;setTimeout(b.hitch(this,this.pollLocation),
0);return}else if(!s){location.href="#"+u.search.substring(1);l();c()}setTimeout(b.hitch(this,this.pollLocation),k)};l();setTimeout(b.hitch(this,this.pollLocation),k)}b.hash=function(l,r){if(!arguments.length)return a();if(l.charAt(0)=="#")l=l.substring(1);if(r)f(l);else location.href="#"+l;return l};var h,i,j,k=b.config.hashPollFrequency||100;b.addOnLoad(function(){if("onhashchange"in b.global&&(!b.isIE||b.isIE>=8&&document.compatMode!="BackCompat"))j=b.connect(b.global,"onhashchange",c);else if(document.addEventListener){h=
a();setInterval(e,k)}else if(document.attachEvent)i=new g})})();return b.hash});
(function(){var b=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],d=/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,a=/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im,c=[];define("text",["require","exports","module"],function(){var e,f,g;if(typeof window!=="undefined"&&window.navigator&&window.document)f=function(h,i){var j=e.createXhr();j.open("GET",h,true);j.onreadystatechange=function(){j.readyState===4&&i(j.responseText)};j.send(null)};else if(typeof process!=="undefined"&&process.versions&&
process.versions.node){g=require.nodeRequire("fs");f=function(h,i){i(g.readFileSync(h,"utf8"))}}else if(typeof Packages!=="undefined")f=function(h,i){var j=new java.io.File(h);h=java.lang.System.getProperty("line.separator");j=new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(j),"utf-8"));var k,l,r="";try{k=new java.lang.StringBuffer;if((l=j.readLine())&&l.length()&&l.charAt(0)===65279)l=l.substring(1);for(k.append(l);(l=j.readLine())!==null;){k.append(h);k.append(l)}r=
String(k.toString())}finally{j.close()}i(r)};return e={version:"0.24.0",strip:function(h){if(h){h=h.replace(d,"");var i=h.match(a);if(i)h=i[1]}else h="";return h},jsEscape:function(h){return h.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 h,i,j;if(typeof XMLHttpRequest!=="undefined")return new XMLHttpRequest;else for(i=0;i<3;i++){j=b[i];try{h=new ActiveXObject(j)}catch(k){}if(h){b=
[j];break}}if(!h)throw new Error("require.getXhr(): XMLHttpRequest not available");return h},get:f,load:function(h,i,j,k){var l=false,r=h.indexOf("."),o=h.substring(0,r),p=h.substring(r+1,h.length);r=p.indexOf("!");if(r!==-1){l=p.substring(r+1,p.length);l=l==="strip";p=p.substring(0,r)}i=i.nameToUrl(o,"."+p);e.get(i,function(q){q=l?e.strip(q):q;if(k.isBuild&&k.inlineText)c[h]=q;j(q)})},write:function(h,i,j){if(i in c){var k=e.jsEscape(c[i]);j("define('"+h+"!"+i+"', function () { return '"+k+"';});\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,d){d.getObject("i18n",true,d);d.i18n.getLocalization=d.i18n.getLocalization||function(a,c,e){e=d.i18n.normalizeLocale(e);var f=e.split("-"),g=[a,"nls",c].join(".");if(typeof d.global.require!=="undefined"){var h=b("i18n!"+[a.replace(/\./g,"/"),"nls",c].join("/"));(d._loadedModules[g]=d._loadedModules[g]||{})[f.join("_")]=h.root||h}if(g=d._loadedModules[g]){var i;for(h=f.length;h>0;h--){var j=f.slice(0,h).join("_");if(g[j]){i=g[j];break}}if(!i)i=g.ROOT;
if(i){a=function(){};a.prototype=i;return new a}}throw new Error("Bundle not found: "+c+" in "+a+" , locale="+e);};d.i18n.normalizeLocale=function(a){a=a?a.toLowerCase():d.locale;if(a=="root")a="ROOT";return a};d.i18n._requireLocalization=function(a,c,e,f){e=d.i18n.normalizeLocale(e);var g=[a,"nls",c].join("."),h="";if(f){for(var i=f.split(","),j=0;j<i.length;j++)if(e.indexOf(i[j])==0)if(i[j].length>h.length)h=i[j];h||(h="ROOT")}i=f?h:e;var k=d._loadedModules[g];j=null;if(k){if(d.config.localizationComplete&&
k._built)return;j=i.replace(/-/g,"_");j=d._loadedModules[g+"."+j]}if(!j){k=d.provide(g);var l=d._getModuleSymbols(a).concat("nls").join("/"),r;d.i18n._searchLocalePath(i,f,function(o){var p=o.replace(/-/g,"_"),q=g+"."+p,n=false;if(d._loadedModules[q])n=true;else{d.provide(q);q=[l];o!="ROOT"&&q.push(o);q.push(c);o=q.join("/")+".js";n=d._loadPath(o,null,function(m){m=m.root||m;var s=function(){};s.prototype=r;k[p]=new s;for(var u in m)k[p][u]=m[u]})}if(n&&k[p])r=k[p];else k[p]=r;if(f)return true})}if(f&&
e!=h)k[e.replace(/-/g,"_")]=k[h.replace(/-/g,"_")]};(function(){var a=d.config.extraLocale;if(a){if(!a instanceof Array)a=[a];var c=d.i18n._requireLocalization;d.i18n._requireLocalization=function(e,f,g,h){c(e,f,g,h);if(!g)for(g=0;g<a.length;g++)c(e,f,a[g],h)}}})();d.i18n._searchLocalePath=function(a,c,e){a=d.i18n.normalizeLocale(a);var f=a.split("-");a=[];for(var g=f.length;g>0;g--)a.push(f.slice(0,g).join("-"));a.push(false);c&&a.reverse();for(c=a.length-1;c>=0;c--)if(e(a[c]||"ROOT"))break};d.i18n._preloadLocalizations=
function(a,c){function e(h){h=d.i18n.normalizeLocale(h);d.i18n._searchLocalePath(h,true,function(i){for(var j=0;j<c.length;j++)if(c[j]==i){d.require(a+"_"+i);return true}return false})}e();for(var f=d.config.extraLocale||[],g=0;g<f.length;g++)e(f[g])};return d.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 d=b.doc.compatMode=="BackCompat"?b.body():b.doc.documentElement,a=b._docScroll();return{w:d.clientWidth,h:d.clientHeight,l:a.x,t:a.y}};b.window.get=function(d){if(b.isIE&&window!==document.parentWindow){d.parentWindow.execScript("document._parentWindow = window;","Javascript");var a=d._parentWindow;d._parentWindow=null;return a}return d.parentWindow||d.defaultView};b.window.scrollIntoView=function(d,
a){try{d=b.byId(d);var c=d.ownerDocument||b.doc,e=c.body||b.body(),f=c.documentElement||e.parentNode,g=b.isIE,h=b.isWebKit;if((!(b.isMoz||g||h||b.isOpera)||d==e||d==f)&&typeof d.scrollIntoView!="undefined")d.scrollIntoView(false);else{var i=c.compatMode=="BackCompat",j=g>=9&&d.ownerDocument.parentWindow.frameElement?f.clientHeight>0&&f.clientWidth>0&&(e.clientHeight==0||e.clientWidth==0||e.clientHeight>f.clientHeight||e.clientWidth>f.clientWidth)?f:e:i?e:f;c=h?e:j;var k=j.clientWidth,l=j.clientHeight,
r=!b._isBodyLtr(),o=a||b.position(d),p=d.parentNode;a=function(H){return g<=6||g&&i?false:b.style(H,"position").toLowerCase()=="fixed"};if(!a(d))for(;p;){if(p==e)p=c;var q=b.position(p),n=a(p);if(p==c){q.w=k;q.h=l;if(c==f&&g&&r)q.x+=c.offsetWidth-q.w;if(q.x<0||!g)q.x=0;if(q.y<0||!g)q.y=0}else{var m=b._getPadBorderExtents(p);q.w-=m.w;q.h-=m.h;q.x+=m.l;q.y+=m.t;var s=p.clientWidth,u=q.w-s;if(s>0&&u>0){q.w=s;q.x+=r&&(g||p.clientLeft>m.l)?u:0}s=p.clientHeight;u=q.h-s;if(s>0&&u>0)q.h=s}if(n){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>l)q.h=l-q.y;if(q.x+q.w>k)q.w=k-q.x}var w=o.x-q.x,x=o.y-Math.max(q.y,0),B=w+o.w-q.w,G=x+o.h-q.h;if(B*w>0){var C=Math[w<0?"max":"min"](w,B);if(r&&(g==8&&!i||g>=9))C=-C;o.x+=p.scrollLeft;p.scrollLeft+=C;o.x-=p.scrollLeft}if(G*x>0){o.y+=p.scrollTop;p.scrollTop+=Math[x<0?"max":"min"](x,G);o.y-=p.scrollTop}p=p!=c&&!n&&p.parentNode}}}catch(D){console.error("scrollIntoView: "+D);d.scrollIntoView(false)}};return b.window});
define("dijit/_base/manager",["dojo","dijit"],function(b,d){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 e=0,f;for(f in this._hash)a.call(c,this._hash[f],e++,this._hash);return this},
filter:function(a,c){c=c||b.global;var e=new d.WidgetSet,f=0,g;for(g in this._hash){var h=this._hash[g];a.call(c,h,f++,this._hash)&&e.add(h)}return e},byId:function(a){return this._hash[a]},byClass:function(a){var c=new d.WidgetSet,e,f;for(e in this._hash){f=this._hash[e];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 e=0,f;for(f in this._hash)if(!a.call(c,
this._hash[f],e++,this._hash))return false;return true},some:function(a,c){c=c||b.global;var e=0,f;for(f in this._hash)if(a.call(c,this._hash[f],e++,this._hash))return true;return false}});(function(){d.registry=new d.WidgetSet;var a=d.registry._hash,c=b.attr,e=b.hasAttr,f=b.style;d.byId=function(j){return typeof j=="string"?a[j]:j};var g={};d.getUniqueId=function(j){var k;do k=j+"_"+(j in g?++g[j]:(g[j]=0));while(a[k]);return d._scopeName=="dijit"?k:d._scopeName+"_"+k};d.findWidgets=function(j){function k(r){for(r=
r.firstChild;r;r=r.nextSibling)if(r.nodeType==1){var o=r.getAttribute("widgetId");if(o)(o=a[o])&&l.push(o);else k(r)}}var l=[];k(j);return l};d._destroyAll=function(){d._curFocus=null;d._prevFocus=null;d._activeStack=[];b.forEach(d.findWidgets(b.body()),function(j){if(!j._destroyed)if(j.destroyRecursive)j.destroyRecursive();else j.destroy&&j.destroy()})};b.isIE&&b.addOnWindowUnload(function(){d._destroyAll()});d.byNode=function(j){return a[j.getAttribute("widgetId")]};d.getEnclosingWidget=function(j){for(;j;){var k=
j.getAttribute&&j.getAttribute("widgetId");if(k)return a[k];j=j.parentNode}return null};var h=d._isElementShown=function(j){var k=f(j);return k.visibility!="hidden"&&k.visibility!="collapsed"&&k.display!="none"&&c(j,"type")!="hidden"};d.hasDefaultTabStop=function(j){switch(j.nodeName.toLowerCase()){case "a":return e(j,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":var k;try{var l=j.contentDocument;if("designMode"in l&&l.designMode==
"on")return true;k=l.body}catch(r){try{k=j.contentWindow.document.body}catch(o){return false}}return k.contentEditable=="true"||k.firstChild&&k.firstChild.contentEditable=="true";default:return j.contentEditable=="true"}};var i=d.isTabNavigable=function(j){return c(j,"disabled")?false:e(j,"tabIndex")?c(j,"tabIndex")>=0:d.hasDefaultTabStop(j)};d._getTabNavigable=function(j){function k(w){return w&&w.tagName.toLowerCase()=="input"&&w.type&&w.type.toLowerCase()=="radio"&&w.name&&w.name.toLowerCase()}
function l(w){return s[k(w)]||w}var r,o,p,q,n,m,s={},u=function(w){b.query("> *",w).forEach(function(x){if(!(b.isIE&&x.scopeName!=="HTML"||!h(x))){if(i(x)){var B=c(x,"tabIndex");if(!e(x,"tabIndex")||B==0){r||(r=x);o=x}else if(B>0){if(!p||B<q){q=B;p=x}if(!n||B>=m){m=B;n=x}}B=k(x);if(b.attr(x,"checked")&&B)s[B]=x}x.nodeName.toUpperCase()!="SELECT"&&u(x)}})};h(j)&&u(j);return{first:l(r),last:l(o),lowest:l(p),highest:l(n)}};d.getFirstInTabbingOrder=function(j){j=d._getTabNavigable(b.byId(j));return j.lowest?
j.lowest:j.first};d.getLastInTabbingOrder=function(j){j=d._getTabNavigable(b.byId(j));return j.last?j.last:j.highest};d.defaultDuration=b.config.defaultDuration||200})();return d});
define("dojo/Stateful",["dojo"],function(b){b.declare("dojo.Stateful",null,{postscript:function(d){d&&b.mixin(this,d)},get:function(d){return this[d]},set:function(d,a){if(typeof d==="object"){for(var c in d)this.set(c,d[c]);return this}c=this[d];this[d]=a;this._watchCallbacks&&this._watchCallbacks(d,c,a);return this},watch:function(d,a){var c=this._watchCallbacks;if(!c){var e=this;c=this._watchCallbacks=function(g,h,i,j){var k=function(l){if(l){l=l.slice();for(var r=0,o=l.length;r<o;r++)try{l[r].call(e,
g,h,i)}catch(p){console.error(p)}}};k(c["_"+g]);j||k(c["*"])}}if(!a&&typeof d==="function"){a=d;d="*"}else d="_"+d;var f=c[d];if(typeof f!=="object")f=c[d]=[];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,d){(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=d.getUniqueId(this.declaredClass.replace(/\./g,"_"));d.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(e,f){if(f.params&&e in f.params||f[e])f.set(e,f[e])};for(var c in this.attributeMap)a(c,this);b.forEach(this._getSetterAttributes(),function(e){e in this.attributeMap||a(e,this)},this)},_getSetterAttributes:function(){var a=this.constructor;if(!a._setterAttrs){var c=a._setterAttrs=[],e,f=a.prototype;for(var g in f)if(b.isFunction(f[g])&&(e=g.match(/^_set([a-zA-Z]*)Attr$/))&&
e[1])c.push(e[1].charAt(0).toLowerCase()+e[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,e=b.unsubscribe;c(this._connects,function(f){c(f,b.disconnect)});c(this._subscribes,function(f){e(f)});c(this._supportingWidgets||[],function(f){if(f.destroyRecursive)f.destroyRecursive();else f.destroy&&f.destroy()});this.destroyRendering(a);d.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 e=this.attributeMap[a];b.forEach(b.isArray(e)?e:[e],function(f){var g=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(g,f,c);break;case "innerText":g.innerHTML="";g.appendChild(b.doc.createTextNode(c));break;case "innerHTML":g.innerHTML=
c;break;case "class":b.replaceClass(g,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 e in a)this.set(e,a[e]);return this}e=this._getAttrNames(a);if(this[e.s])var f=this[e.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 e=a.charAt(0).toUpperCase()+a.substr(1);return c[a]={n:a+"Node",s:"_set"+e+"Attr",g:"_get"+e+"Attr"}},_set:function(a,c){var e=this[a];this[a]=c;this._watchCallbacks&&this._created&&c!==e&&this._watchCallbacks(a,e,c)},toString:function(){return"[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]"},getDescendants:function(){return this.containerNode?b.query("[widgetId]",this.containerNode).map(d.byNode):[]},getChildren:function(){return this.containerNode?d.findWidgets(this.containerNode):
[]},connect:function(a,c,e){a=[b._connect(a,c,this,e)];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 d._WidgetBase});
define("dijit/_base/focus",["dojo","dijit","dojo/window","dijit/_base/manager"],function(b,d){b.mixin(d,{_curFocus:null,_prevFocus:null,isCollapsed:function(){return d.getBookmark().isCollapsed},getBookmark:function(){var a,c,e=b.doc.selection,f=d._curFocus;if(b.global.getSelection){if(e=b.global.getSelection())if(e.isCollapsed){if(a=f?f.tagName:""){a=a.toLowerCase();if(a=="textarea"||a=="input"&&(!f.type||f.type.toLowerCase()=="text")){e={start:f.selectionStart,end:f.selectionEnd,node:f,pRange:true};
return{isCollapsed:e.end<=e.start,mark:e}}}a={isCollapsed:true};if(e.rangeCount)a.mark=e.getRangeAt(0).cloneRange()}else{c=e.getRangeAt(0);a={isCollapsed:false,mark:c.cloneRange()}}}else if(e){a=f?f.tagName:"";a=a.toLowerCase();if(f&&a&&(a=="button"||a=="textarea"||a=="input"))if(e.type&&e.type.toLowerCase()=="none")return{isCollapsed:true,mark:null};else{c=e.createRange();return{isCollapsed:c.text&&c.text.length?false:true,mark:{range:c,pRange:true}}}a={};try{c=e.createRange();a.isCollapsed=!(e.type==
"Text"?c.htmlText.length:c.length)}catch(g){a.isCollapsed=true;return a}if(e.type.toUpperCase()=="CONTROL")if(c.length){a.mark=[];e=0;for(f=c.length;e<f;)a.mark.push(c.item(e++))}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 e=b.global.getSelection();if(e&&e.removeAllRanges)if(a.pRange){e=a.node;e.selectionStart=
a.start;e.selectionEnd=a.end}else{e.removeAllRanges();e.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(g){f.addElement(g)})}else{f=c.body.createTextRange();f.moveToBookmark(a)}f.select()}},getFocus:function(a,c){a=!d._curFocus||a&&b.isDescendant(d._curFocus,a.domNode)?d._prevFocus:d._curFocus;return{node:a,bookmark:a==d._curFocus&&b.withGlobal(c||
b.global,d.getBookmark),openedForWindow:c}},focus:function(a){if(a){var c="node"in a?a.node:a,e=a.bookmark;a=a.openedForWindow;var f=e?e.isCollapsed:false;if(c){var g=c.tagName.toLowerCase()=="iframe"?c.contentWindow:c;if(g&&g.focus)try{g.focus()}catch(h){}d._onFocusNode(c)}if(e&&b.withGlobal(a||b.global,d.isCollapsed)&&!f){a&&a.focus();try{b.withGlobal(a||b.global,d.moveToBookmark,null,[e])}catch(i){}}}},_activeStack:[],registerIframe:function(a){return d.registerWin(a.contentWindow,a)},unregisterIframe:function(a){d.unregisterWin(a)},
registerWin:function(a,c){var e=function(k){d._justMouseDowned=true;setTimeout(function(){d._justMouseDowned=false},0);b.isIE&&k&&k.srcElement&&k.srcElement.parentNode==null||d._onTouchNode(c||k.target||k.srcElement,"mouse")},f=b.isIE?a.document.documentElement:a.document;if(f)if(b.isIE){a.document.body.attachEvent("onmousedown",e);var g=function(k){k.srcElement.tagName.toLowerCase()!="#document"&&d.isTabNavigable(k.srcElement)?d._onFocusNode(c||k.srcElement):d._onTouchNode(c||k.srcElement)};f.attachEvent("onactivate",
g);var h=function(k){d._onBlurNode(c||k.srcElement)};f.attachEvent("ondeactivate",h);return function(){a.document.detachEvent("onmousedown",e);f.detachEvent("onactivate",g);f.detachEvent("ondeactivate",h);f=null}}else{f.body.addEventListener("mousedown",e,true);var i=function(k){d._onFocusNode(c||k.target)};f.addEventListener("focus",i,true);var j=function(k){d._onBlurNode(c||k.target)};f.addEventListener("blur",j,true);return function(){f.body.removeEventListener("mousedown",e,true);f.removeEventListener("focus",
i,true);f.removeEventListener("blur",j,true);f=null}}},unregisterWin:function(a){a&&a()},_onBlurNode:function(){d._prevFocus=d._curFocus;d._curFocus=null;if(!d._justMouseDowned){d._clearActiveWidgetsTimer&&clearTimeout(d._clearActiveWidgetsTimer);d._clearActiveWidgetsTimer=setTimeout(function(){delete d._clearActiveWidgetsTimer;d._setStack([]);d._prevFocus=null},100)}},_onTouchNode:function(a,c){if(d._clearActiveWidgetsTimer){clearTimeout(d._clearActiveWidgetsTimer);delete d._clearActiveWidgetsTimer}var e=
[];try{for(;a;){var f=b.attr(a,"dijitPopupParent");if(f)a=d.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 g=a.getAttribute&&a.getAttribute("widgetId"),h=g&&d.byId(g);h&&!(c=="mouse"&&h.get("disabled"))&&e.unshift(g);a=a.parentNode}}}catch(i){}d._setStack(e,c)},_onFocusNode:function(a){if(a)if(a.nodeType!=9){d._onTouchNode(a);if(a!=d._curFocus){if(d._curFocus)d._prevFocus=d._curFocus;d._curFocus=a;b.publish("focusNode",
[a])}}},_setStack:function(a,c){var e=d._activeStack;d._activeStack=a;for(var f=0;f<Math.min(e.length,a.length);f++)if(e[f]!=a[f])break;for(var g,h=e.length-1;h>=f;h--)if(g=d.byId(e[h])){g._focused=false;g.set("focused",false);g._hasBeenBlurred=true;g._onBlur&&g._onBlur(c);b.publish("widgetBlur",[g,c])}for(h=f;h<a.length;h++)if(g=d.byId(a[h])){g._focused=true;g.set("focused",true);g._onFocus&&g._onFocus(c);b.publish("widgetFocus",[g,c])}}});b.addOnLoad(function(){var a=d.registerWin(window);b.isIE&&
b.addOnWindowUnload(function(){d.unregisterWin(a);a=null})});return d});
define("dojo/AdapterRegistry",["dojo"],function(b){b.AdapterRegistry=function(d){this.pairs=[];this.returnWrappers=d||false};b.extend(b.AdapterRegistry,{register:function(d,a,c,e,f){this.pairs[f?"unshift":"push"]([d,a,c,e])},match:function(){for(var d=0;d<this.pairs.length;d++){var a=this.pairs[d];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(d){for(var a=0;a<this.pairs.length;a++)if(this.pairs[a][0]==
d){this.pairs.splice(a,1);return true}return false}});return b.AdapterRegistry});
define("dijit/_base/place",["dojo","dijit","dojo/window","dojo/AdapterRegistry"],function(b,d){d.getViewport=function(){return b.window.getBox()};d.placeOnScreen=function(a,c,e,f){e=b.map(e,function(g){var h={corner:g,pos:{x:c.x,y:c.y}};if(f){h.pos.x+=g.charAt(1)=="L"?f.x:-f.x;h.pos.y+=g.charAt(0)=="T"?f.y:-f.y}return h});return d._place(a,e)};d._place=function(a,c,e,f){var g=b.window.getBox();if(!a.parentNode||String(a.parentNode.tagName).toLowerCase()!="body")b.body().appendChild(a);var h=null;
b.some(c,function(j){var k=j.corner,l=j.pos,r=0,o={w:k.charAt(1)=="L"?g.l+g.w-l.x:l.x-g.l,h:k.charAt(1)=="T"?g.t+g.h-l.y:l.y-g.t};if(e){r=e(a,j.aroundCorner,k,o,f);r=typeof r=="undefined"?0:r}var p=a.style,q=p.display,n=p.visibility;p.visibility="hidden";p.display="";var m=b.marginBox(a);p.display=q;p.visibility=n;p=Math.max(g.l,k.charAt(1)=="L"?l.x:l.x-m.w);q=Math.max(g.t,k.charAt(0)=="T"?l.y:l.y-m.h);n=Math.min(g.l+g.w,k.charAt(1)=="L"?p+m.w:l.x);l=Math.min(g.t+g.h,k.charAt(0)=="T"?q+m.h:l.y);n=
n-p;l=l-q;r+=m.w-n+(m.h-l);if(h==null||r<h.overflow)h={corner:k,aroundCorner:j.aroundCorner,x:p,y:q,w:n,h:l,overflow:r,spaceAvailable:o};return!r});h.overflow&&e&&e(a,h.aroundCorner,h.corner,h.spaceAvailable,f);c=b._isBodyLtr();var i=a.style;i.top=h.y+"px";i[c?"left":"right"]=(c?h.x:g.w-h.x-h.w)+"px";return h};d.placeOnScreenAroundNode=function(a,c,e,f){c=b.byId(c);c=b.position(c,true);return d._placeOnScreenAroundRect(a,c.x,c.y,c.w,c.h,e,f)};d.placeOnScreenAroundRectangle=function(a,c,e,f){return d._placeOnScreenAroundRect(a,
c.x,c.y,c.width,c.height,e,f)};d._placeOnScreenAroundRect=function(a,c,e,f,g,h,i){var j=[];for(var k in h)j.push({aroundCorner:k,corner:h[k],pos:{x:c+(k.charAt(1)=="L"?0:f),y:e+(k.charAt(0)=="T"?0:g)}});return d._place(a,j,i,{w:f,h:g})};d.placementRegistry=new b.AdapterRegistry;d.placementRegistry.register("node",function(a,c){return typeof c=="object"&&typeof c.offsetWidth!="undefined"&&typeof c.offsetHeight!="undefined"},d.placeOnScreenAroundNode);d.placementRegistry.register("rect",function(a,
c){return typeof c=="object"&&"x"in c&&"y"in c&&"width"in c&&"height"in c},d.placeOnScreenAroundRectangle);d.placeOnScreenAroundElement=function(){return d.placementRegistry.match.apply(d.placementRegistry,arguments)};d.getPopupAroundAlignment=function(a,c){var e={};b.forEach(a,function(f){switch(f){case "after":e[c?"BR":"BL"]=c?"BL":"BR";break;case "before":e[c?"BL":"BR"]=c?"BR":"BL";break;case "below-alt":c=!c;case "below":e[c?"BL":"BR"]=c?"TL":"TR";e[c?"BR":"BL"]=c?"TR":"TL";break;case "above-alt":c=
!c;case "above":default:e[c?"TL":"TR"]=c?"BL":"BR";e[c?"TR":"TL"]=c?"BR":"BL";break}});return e};return d});define("dijit/_base/window",["dojo","dijit","dojo/window"],function(b,d){d.getDocumentWindow=function(a){return b.window.get(a)};return d});
define("dijit/_base/popup",["dojo","dijit","dijit/_base/focus","dijit/_base/place","dijit/_base/window"],function(b,d){d.popup={_stack:[],_beginZIndex:1E3,_idGen:1,_createWrapper:function(a){var c=a.declaredClass?a._popupWrapper:a.parentNode&&b.hasClass(a.parentNode,"dijitPopup"),e=a.domNode||a;if(!c){c=b.create("div",{"class":"dijitPopup",style:{display:"none"},role:"presentation"},b.body());c.appendChild(e);e=e.style;e.display="";e.visibility="";e.position="";e.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,e=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"}),g=a.around,h=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));)d.popup.close(c[c.length-1].widget);var i=this._createWrapper(e);b.attr(i,{id:h,style:{zIndex:this._beginZIndex+c.length},"class":"dijitPopup "+(e.baseClass||e["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:a.parent?a.parent.id:""});if(b.isIE||b.isMoz)if(!e.bgIframe)e.bgIframe=
new d.BackgroundIframe(i);f=g?d.placeOnScreenAroundElement(i,g,f,e.orient?b.hitch(e,"orient"):null):d.placeOnScreen(i,a,f=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],a.padding);i.style.display="";i.style.visibility="visible";e.domNode.style.visibility="visible";g=[];g.push(b.connect(i,"onkeypress",this,function(j){if(j.charOrCode==b.keys.ESCAPE&&a.onCancel){b.stopEvent(j);a.onCancel()}else if(j.charOrCode===b.keys.TAB){b.stopEvent(j);(j=this.getTopPopup())&&j.onCancel&&j.onCancel()}}));e.onCancel&&
g.push(b.connect(e,"onCancel",a.onCancel));g.push(b.connect(e,e.onExecute?"onExecute":"onChange",this,function(){var j=this.getTopPopup();j&&j.onExecute&&j.onExecute()}));c.push({widget:e,parent:a.parent,onExecute:a.onExecute,onCancel:a.onCancel,onClose:a.onClose,handlers:g});e.onOpen&&e.onOpen(f);return f},close:function(a){for(var c=this._stack;a&&b.some(c,function(h){return h.widget==a})||!a&&c.length;){var e=c.pop(),f=e.widget,g=e.onClose;f.onClose&&f.onClose();b.forEach(e.handlers,b.disconnect);
f&&f.domNode&&this.hide(f);g&&g()}}};d._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;d.setWaiRole(c,"presentation")}return c};this.push=function(c){c.style.display="none";a.push(c)}});d.BackgroundIframe=function(a){if(!a.id)throw new Error("no id");if(b.isIE||b.isMoz){var c=this.iframe=d._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(d.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){d._frames.push(this.iframe);delete this.iframe}}});return d.popup});define("dijit/_base/scroll",["dojo","dijit","dojo/window"],function(b,d){d.scrollIntoView=function(a,c){b.window.scrollIntoView(a,c)};return d.scrollIntoView});
define("dojo/uacss",["dojo"],function(b){(function(){var d=b.doc.documentElement,a=b.isIE,c=b.isOpera,e=Math.floor,f=b.isFF,g=b.boxModel.replace(/-/,"");a={dj_ie:a,dj_ie6:e(a)==6,dj_ie7:e(a)==7,dj_ie8:e(a)==8,dj_ie9:e(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:e(f)==3};a["dj_"+g]=true;var h="";for(var i in a)if(a[i])h+=i+" ";d.className=b.trim(d.className+" "+h);b._loaders.unshift(function(){if(!b._isBodyLtr()){var j=
"dj_rtl dijitRtl "+h.replace(/ /g,"-rtl ");d.className=b.trim(d.className+" "+j)}})})();return b});define("dijit/_base/sniff",["dojo","dijit","dojo/uacss"],function(b,d){return d});
define("dijit/_base/typematic",["dojo","dijit"],function(b,d){d.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,e,f,g,h,i,j){if(g!=this._obj){this.stop();
this._initialDelay=i||500;this._subsequentDelay=h||0.9;this._minDelay=j||10;this._obj=g;this._evt=a;this._node=e;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,e,f,g,h,i){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(j){if(j.charOrCode==c.charOrCode&&(c.ctrlKey===undefined||c.ctrlKey==j.ctrlKey)&&(c.altKey===undefined||c.altKey==j.altKey)&&(c.metaKey===undefined||c.metaKey==(j.metaKey||false))&&(c.shiftKey===undefined||c.shiftKey==j.shiftKey)){b.stopEvent(j);d.typematic.trigger(j,
e,a,f,c,g,h,i)}else d.typematic._obj==c&&d.typematic.stop()}),b.connect(a,"onkeyup",this,function(){d.typematic._obj==c&&d.typematic.stop()})]},addMouseListener:function(a,c,e,f,g,h){var i=b.connect;return[i(a,"mousedown",this,function(j){b.stopEvent(j);d.typematic.trigger(j,c,a,e,a,f,g,h)}),i(a,"mouseup",this,function(j){b.stopEvent(j);d.typematic.stop()}),i(a,"mouseout",this,function(j){b.stopEvent(j);d.typematic.stop()}),i(a,"mousemove",this,function(j){j.preventDefault()}),i(a,"dblclick",this,
function(j){b.stopEvent(j);if(b.isIE){d.typematic.trigger(j,c,a,e,a,f,g,h);setTimeout(b.hitch(this,d.typematic.stop),50)}})]},addListener:function(a,c,e,f,g,h,i,j){return this.addKeyListener(c,e,f,g,h,i,j).concat(this.addMouseListener(a,f,g,h,i,j))}};return d.typematic});
define("dijit/_base/wai",["dojo","dijit"],function(b,d){d.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 e=c.backgroundImage;b[c.borderTopColor==c.borderRightColor||e!=null&&(e=="none"||e=="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(d.wai.onload);b.mixin(d,{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 e=b.attr(a,"role");if(e)if(c){c=b.trim((" "+e+" ").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,e){a.setAttribute("aria-"+c,e)},removeWaiState:function(a,c){a.removeAttribute("aria-"+c)}});return d});
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,d){return d._base});
define("dijit/_Widget",["dojo","dijit","dijit/_WidgetBase","dijit/_base"],function(b,d){b.connect(b,"_connect",function(a,c){a&&b.isFunction(a._onConnect)&&a._onConnect(c)});d._connectOnUseEventHandler=function(){};d._lastKeyDownNode=null;b.isIE?function(){var a=function(c){d._lastKeyDownNode=c.srcElement};b.doc.attachEvent("onkeydown",a);b.addOnWindowUnload(function(){b.doc.detachEvent("onkeydown",a)})}():b.doc.addEventListener("keydown",function(a){d._lastKeyDownNode=a.target},true);(function(){b.declare("dijit._Widget",
d._WidgetBase,{_deferredConnects:{onClick:"",onDblClick:"",onKeyDown:"",onKeyPress:"",onKeyUp:"",onMouseMove:"",onMouseDown:"",onMouseOut:"",onMouseOver:"",onMouseLeave:"",onMouseEnter:"",onMouseUp:""},onClick:d._connectOnUseEventHandler,onDblClick:d._connectOnUseEventHandler,onKeyDown:d._connectOnUseEventHandler,onKeyPress:d._connectOnUseEventHandler,onKeyUp:d._connectOnUseEventHandler,onMouseDown:d._connectOnUseEventHandler,onMouseMove:d._connectOnUseEventHandler,onMouseOut:d._connectOnUseEventHandler,
onMouseOver:d._connectOnUseEventHandler,onMouseLeave:d._connectOnUseEventHandler,onMouseEnter:d._connectOnUseEventHandler,onMouseUp:d._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]!==d._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={}),e=(arguments.callee.caller||"unknown caller").toString();if(!c[e]){b.deprecated(this.declaredClass+"::attr() is deprecated. Use get() or set() instead, called from "+e,"","2.0");c[e]=true}}return arguments.length>=2||typeof a==="object"?this.set.apply(this,arguments):this.get(a)},nodesWithKeyClick:["input","button"],connect:function(a,c,e){var f=b._connect,g=this.inherited(arguments,[a,c=="ondijitclick"?"onclick":c,e]);if(c=="ondijitclick")if(b.indexOf(this.nodesWithKeyClick,
a.nodeName.toLowerCase())==-1){var h=b.hitch(this,e);g.push(f(a,"onkeydown",this,function(i){if((i.keyCode==b.keys.ENTER||i.keyCode==b.keys.SPACE)&&!i.ctrlKey&&!i.shiftKey&&!i.altKey&&!i.metaKey){d._lastKeyDownNode=i.target;"openDropDown"in this&&a==this._buttonNode||i.preventDefault()}}),f(a,"onkeyup",this,function(i){if((i.keyCode==b.keys.ENTER||i.keyCode==b.keys.SPACE)&&i.target==d._lastKeyDownNode&&!i.ctrlKey&&!i.shiftKey&&!i.altKey&&!i.metaKey){d._lastKeyDownNode=null;return h(i)}}))}return g},
_onShow:function(){this.onShow()},onShow:function(){},onHide:function(){},onClose:function(){return true}})})();return d._Widget});
define("dojo/string",["dojo"],function(b){b.getObject("string",true,b);b.string.rep=function(d,a){if(a<=0||!d)return"";for(var c=[];;){a&1&&c.push(d);if(!(a>>=1))break;d+=d}return c.join("")};b.string.pad=function(d,a,c,e){c||(c="0");d=String(d);a=b.string.rep(c,Math.ceil((a-d.length)/c.length));return e?d+a:a+d};b.string.substitute=function(d,a,c,e){e=e||b.global;c=c?b.hitch(e,c):function(f){return f};return d.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(f,g,h){f=b.getObject(g,false,
a);if(h)f=b.getObject(h,false,e).call(e,f,g);return c(f,g).toString()})};b.string.trim=String.prototype.trim?b.trim:function(d){d=d.replace(/^\s+/,"");for(var a=d.length-1;a>=0;a--)if(/\S/.test(d.charAt(a))){d=d.substring(0,a+1);break}return d};return b.string});
define("dojo/date/stamp",["dojo"],function(b){b.getObject("date.stamp",true,b);b.date.stamp.fromISOString=function(d,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(d);d=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(g){return a["get"+
g]()}),function(g,h){c[h]=c[h]||g})}d=new Date(c[0]||1970,c[1]||0,c[2]||1,c[3]||0,c[4]||0,c[5]||0,c[6]||0);if(c[0]<100)d.setFullYear(c[0]||1970);var e=0,f=c[7]&&c[7].charAt(0);if(f!="Z"){e=(c[8]||0)*60+(Number(c[9])||0);if(f!="-")e*=-1}if(f)e-=d.getTimezoneOffset();e&&d.setTime(d.getTime()+e*6E4)}return d};b.date.stamp.toISOString=function(d,a){var c=function(h){return h<10?"0"+h:h};a=a||{};var e=[],f=a.zulu?"getUTC":"get",g="";if(a.selector!="time"){g=d[f+"FullYear"]();g=["0000".substr((g+"").length)+
g,c(d[f+"Month"]()+1),c(d[f+"Date"]())].join("-")}e.push(g);if(a.selector!="date"){g=[c(d[f+"Hours"]()),c(d[f+"Minutes"]()),c(d[f+"Seconds"]())].join(":");f=d[f+"Milliseconds"]();if(a.milliseconds)g+="."+(f<100?"0":"")+c(f);if(a.zulu)g+="Z";else if(a.selector!="time"){d=d.getTimezoneOffset();a=Math.abs(d);g+=(d>0?"-":"+")+c(Math.floor(a/60))+":"+c(a%60)}e.push(g)}return e.join("T")};return b.date.stamp});
define("dojo/parser",["dojo","dojo/date/stamp"],function(b){b.parser=new (function(){function d(i){if(f.isString(i))return"string";if(typeof i=="number")return"number";if(typeof i=="boolean")return"boolean";if(f.isFunction(i))return"function";if(f.isArray(i))return"array";if(i instanceof Date)return"date";if(i instanceof f._Url)return"url";return"object"}function a(i,j){switch(j){case "string":return i;case "number":return i.length?Number(i):NaN;case "boolean":return typeof i=="boolean"?i:i.toLowerCase()!=
"false";case "function":if(f.isFunction(i)){i=i.toString();i=f.trim(i.substring(i.indexOf("{")+1,i.length-1))}try{return i===""||i.search(/[^\w\.]+/i)!=-1?new Function(i):f.getObject(i,false)||new Function(i)}catch(k){return new Function}case "array":return i?i.split(/\s*,\s*/):[];case "date":switch(i){case "":return new Date("");case "now":return new Date;default:return f.date.stamp.fromISOString(i)}case "url":return f.baseUrl+i;default:return f.fromJson(i)}}function c(i,j){for(var k in i)if(k.charAt(0)!=
"_")k in g||(j[k]=d(i[k]));return j}function e(i,j){var k=h[i];if(k){if(!j&&!k.params)k.params=c(k.cls.prototype,{})}else{i=f.getObject(i);k=null;if(!i)return null;j||(k=c(i.prototype,{}));k={cls:i,params:k}}return k}var f=b,g={},h={};f.connect(f,"extend",function(){h={}});this._functionFromScript=function(i,j){var k="",l="";(j=i.getAttribute(j+"args")||i.getAttribute("args"))&&f.forEach(j.split(/\s*,\s*/),function(r,o){k+="var "+r+" = arguments["+o+"]; "});(j=i.getAttribute("with"))&&j.length&&f.forEach(j.split(/\s*,\s*/),
function(r){k+="with("+r+"){";l+="}"});return new Function(k+i.innerHTML+l)};this.instantiate=function(i,j,k){var l=[];j=j||{};k=k||{};var r=(k.scope||f._scopeName)+"Type",o="data-"+(k.scope||f._scopeName)+"-";f.forEach(i,function(p){if(p){var q,n,m,s,u,w;if(p.node){q=p.node;n=p.type;w=p.fastpath;s=(m=p.clsInfo||n&&e(n,w))&&m.cls;u=p.scripts}else{q=p;u=(s=(m=(n=r in j?j[r]:q.getAttribute(r))&&e(n))&&m.cls)&&(s._noScript||s.prototype._noScript)?[]:f.query("> script[type^='dojo/']",q)}if(!m)throw new Error("Could not load class '"+
n);var x={};k.defaults&&f._mixin(x,k.defaults);p.inherited&&f._mixin(x,p.inherited);if(w){if((m=q.getAttribute(o+"props"))&&m.length)try{m=f.fromJson.call(k.propsThis,"{"+m+"}");f._mixin(x,m)}catch(B){throw new Error(B.toString()+" in data-dojo-props='"+m+"'");}if(m=q.getAttribute(o+"attach-point"))x.dojoAttachPoint=m;if(m=q.getAttribute(o+"attach-event"))x.dojoAttachEvent=m;b.mixin(x,j)}else{p=q.attributes;for(var G in m.params){n=G in j?{value:j[G],specified:true}:p.getNamedItem(G);if(!(!n||!n.specified&&
(!b.isIE||G.toLowerCase()!="value"))){n=n.value;switch(G){case "class":n="className"in j?j.className:q.className;break;case "style":n="style"in j?j.style:q.style&&q.style.cssText}var C=m.params[G];x[G]=typeof n=="string"?a(n,C):n}}}var D=[],H=[];f.forEach(u,function(E){q.removeChild(E);var N=E.getAttribute(o+"event")||E.getAttribute("event"),L=E.getAttribute("type");E=f.parser._functionFromScript(E,o);if(N)if(L=="dojo/connect")D.push({event:N,func:E});else x[N]=E;else H.push(E)});var J=(u=s.markupFactory||
s.prototype&&s.prototype.markupFactory)?u(x,q,s):new s(x,q);l.push(J);(s=q.getAttribute(o+"id")||q.getAttribute("jsId"))&&f.setObject(s,J);f.forEach(D,function(E){f.connect(J,E.event,null,E.func)});f.forEach(H,function(E){E.call(J)})}});j._started||f.forEach(l,function(p){if(!k.noStart&&p&&b.isFunction(p.startup)&&!p._started&&(!p.getParent||!p.getParent()))p.startup()});return l};this.parse=function(i,j){function k(q,n){var m=b.clone(q.inherited);b.forEach(["dir","lang"],function(G){var C=q.node.getAttribute(G);
if(C)m[G]=C});for(var s=q.clsInfo&&!q.clsInfo.cls.prototype._noScript?q.scripts:null,u=!q.clsInfo||!q.clsInfo.cls.prototype.stopParser||j&&j.template,w=q.node.firstChild;w;w=w.nextSibling)if(w.nodeType==1){var x,B=u&&w.getAttribute(r+"type");x=B?B:u&&w.getAttribute(l);B=B==x;if(x){x={type:x,fastpath:B,clsInfo:e(x,B),node:w,scripts:[],inherited:m};n.push(x);k(x,n)}else if(s&&w.nodeName.toLowerCase()=="script")(x=w.getAttribute("type"))&&/^dojo\/\w/i.test(x)&&s.push(w);else u&&k({node:w,inherited:m},
n)}}if(!j&&i&&i.rootNode){j=i;i=j.rootNode}else i=i;i=i?b.byId(i):b.body();j=j||{};var l=(j.scope||f._scopeName)+"Type",r="data-"+(j.scope||f._scopeName)+"-",o={};if(j&&j.inherited)for(var p in j.inherited)if(j.inherited[p])o[p]=j.inherited[p];p=[];k({node:i,inherited:o},p);return this.instantiate(p,j&&j.template?{template:true}:null,j)}});(function(){var d=function(){b.config.parseOnLoad&&b.parser.parse()};b.getObject("dijit.wai.onload")===b._loaders[0]?b._loaders.splice(1,0,d):b._loaders.unshift(d)})();
return b.parser});
define("dojo/cache",["dojo"],function(b){var d={};b.cache=function(a,c,e){if(typeof a=="string")var f=b.moduleUrl(a,c);else{f=a;e=c}f=f.toString();var g=e;if(e!=undefined&&!b.isString(e))g="value"in e?e.value:undefined;e=e&&e.sanitize?true:false;if(typeof g=="string")g=d[f]=e?b.cache._sanitize(g):g;else if(g===null)delete d[f];else{if(!(f in d)){g=undefined;if(b.isFunction(require)&&b.isString(a))try{var h=(a?a.replace(/\./g,"/")+"/":"")+c;g=require("text!"+h)}catch(i){}if(typeof g==="undefined")g=
b._getText(f);d[f]=e?b.cache._sanitize(g):g}g=d[f]}return g};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,d){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,e=this;return b.string.substitute(a,this,function(f,g){if(g.charAt(0)=="!")f=b.getObject(g.substr(1),false,e);if(typeof f==
"undefined")throw new Error(c+" template:"+g);if(f==null)return"";return g.charAt(0)=="!"?f:f.toString().replace(/"/g,"&quot;")},this)},buildRendering:function(){var a=d._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=d.findWidgets(c);this._attachTemplateNodes(a,function(e,f){return e[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(l,r){return l.getAttribute(r)};for(var e=b.isArray(a)?a:a.all||a.getElementsByTagName("*"),
f=b.isArray(a)?0:-1;f<e.length;f++){var g=f==-1?a:e[f];if(!(this.widgetsInTemplate&&(c(g,"dojoType")||c(g,"data-dojo-type")))){var h=c(g,"dojoAttachPoint")||c(g,"data-dojo-attach-point");if(h)for(var i=h.split(/\s*,\s*/);h=i.shift();){if(b.isArray(this[h]))this[h].push(g);else this[h]=g;this._attachPoints.push(h)}if(h=c(g,"dojoAttachEvent")||c(g,"data-dojo-attach-event")){i=h.split(/\s*,\s*/);for(var j=b.trim;h=i.shift();)if(h){var k=null;if(h.indexOf(":")!=-1){k=h.split(":");h=j(k[0]);k=j(k[1])}else h=
j(h);k||(k=h);this._attachEvents.push(this.connect(g,h,k))}}(h=c(g,"waiRole"))&&d.setWaiRole(g,h);(h=c(g,"waiState"))&&b.forEach(h.split(/\s*,\s*/),function(l){if(l.indexOf("-")!=-1){l=l.split("-");d.setWaiState(g,l[0],l[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)}});d._Templated._templateCache={};d._Templated.getCachedTemplate=function(a,c,e){var f=d._Templated._templateCache,g=c||a,h=f[g];if(h){try{if(!h.ownerDocument||h.ownerDocument==b.doc)return h}catch(i){}b.destroy(h)}c||(c=b.cache(a,{sanitize:true}));c=b.string.trim(c);if(e||c.match(/\$\{([^\}]+)\}/g))return f[g]=c;else{a=b._toDom(c);if(a.nodeType!=1)throw new Error("Invalid template: "+c);return f[g]=a}};b.isIE&&b.addOnWindowUnload(function(){var a=
d._Templated._templateCache;for(var c in a){var e=a[c];typeof e=="object"&&b.destroy(e);delete a[c]}});b.extend(d._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});return d._Templated});
define("dijit/_CssStateMixin",["dojo","dijit"],function(b,d){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(i){c=
c.concat(b.map(c,function(j){return j+i}),"dijit"+i)}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 e=this.stateNode||this.domNode,f={};b.forEach(e.className.split(" "),function(i){f[i]=true});"_stateClasses"in this&&b.forEach(this._stateClasses,
function(i){delete f[i]});b.forEach(c,function(i){f[i]=true});var g=[];for(var h in f)g.push(h);e.className=g.join(" ");this._stateClasses=c},_trackMouseState:function(a,c){function e(){var k="disabled"in i&&i.disabled||"readonly"in i&&i.readonly;b.toggleClass(a,c+"Hover",f&&!g&&!k);b.toggleClass(a,c+"Active",g&&!k);b.toggleClass(a,c+"Focused",h&&!k)}var f=false,g=false,h=false,i=this,j=b.hitch(this,"connect",a);j("onmouseenter",function(){f=true;e()});j("onmouseleave",function(){g=f=false;e()});
j("onmousedown",function(){g=true;e()});j("onmouseup",function(){g=false;e()});j("onfocus",function(){h=true;e()});j("onblur",function(){h=false;e()});this.watch("disabled",e);this.watch("readOnly",e)}});return d._CssStateMixin});
define("dijit/form/_FormWidget",["dojo","dijit","dojo/window","dijit/_Widget","dijit/_Templated","dijit/_CssStateMixin"],function(b,d){b.declare("dijit.form._FormWidget",[d._Widget,d._Templated,d._CssStateMixin],{name:"",alt:"",value:"",type:"text",tabIndex:"0",disabled:false,intermediateChanges:false,scrollOnFocus:true,attributeMap:b.delegate(d._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);d.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||d.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||d.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",
d.form._FormWidget,{readOnly:false,attributeMap:b.delegate(d.form._FormWidget.prototype.attributeMap,{value:"",readOnly:"focusNode"}),_setReadOnlyAttr:function(a){b.attr(this.focusNode,"readOnly",a);d.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,e=a.firstChild||a,f=e.style.filter,g=this;c&&c.clientHeight==0;){(function(){var h=g.connect(c,"onscroll",function(){g.disconnect(h);e.style.filter=(new Date).getMilliseconds();setTimeout(function(){e.style.filter=f},0)})})();c=c.parentNode}}});return d.form._FormWidget});
define("dijit/form/TextBox",["dojo","dijit","text!dijit/form/templates/TextBox.html","dijit/form/_FormWidget"],function(b,d){b.declare("dijit.form.TextBox",d.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(d.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==d.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,e){var f;if(a!==undefined){f=this.filter(a);if(typeof e!="string")e=f!==null&&(typeof f!="number"||!isNaN(f))?this.filter(this.format(f,this.constraints)):""}if(e!=null&&e!=undefined&&(typeof e!="number"||!isNaN(e))&&this.textbox.value!=e){this.textbox.value=e;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 e=0;e<c.length;e++)c[e].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&&d.selectInputText(this.textbox)});this._updatePlaceHolder();this.inherited(arguments);this._refreshState()}},reset:function(){this.textbox.value="";this.inherited(arguments)}});d.selectInputText=function(a,c,e){var f=b.global,g=b.doc;a=b.byId(a);if(isNaN(c))c=0;if(isNaN(e))e=a.value?a.value.length:0;d.focus(a);if(g.selection&&b.body().createTextRange){if(a.createTextRange){a=a.createTextRange();a.collapse(true);a.moveStart("character",
-99999);a.moveStart("character",c);a.moveEnd("character",e-c);a.select()}}else f.getSelection&&a.setSelectionRange&&a.setSelectionRange(c,e)};return d.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,d){b.declare("dijit._MasterTooltip",[d._Widget,d._Templated],{duration:d.defaultDuration,templateString:b.cache("dijit","templates/Tooltip.html"),postCreate:function(){b.body().appendChild(this.domNode);this.bgIframe=new d.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,e,f){if(!(this.aroundNode&&this.aroundNode===c)){this.domNode.width="auto";if(this.fadeOut.status()=="playing")this._onDeck=arguments;else{this.containerNode.innerHTML=a;d.placeOnScreenAroundElement(this.domNode,c,d.getPopupAroundAlignment(e&&e.length?e:d.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,e,
f,g){this.connectorNode.style.top="";var h=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+"-"+e];this.domNode.style.width="auto";var i=b.contentBox(this.domNode),j=Math.min(Math.max(h,1),i.w),k=j<i.w;this.domNode.style.width=j+"px";if(k){this.containerNode.style.overflow=
"auto";k=this.containerNode.scrollWidth;this.containerNode.style.overflow="visible";if(k>j){k=k+b.style(this.domNode,"paddingLeft")+b.style(this.domNode,"paddingRight");this.domNode.style.width=k+"px"}}if(e.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-g.h/2-c/2+"px";this.connectorNode.style.bottom=""}else{this.connectorNode.style.bottom=Math.min(Math.max(g.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,i.w-h)},_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}}});d.showTooltip=function(a,c,e,f){if(!d._masterTT)d._masterTT=
new d._MasterTooltip;return d._masterTT.show(a,c,e,f)};d.hideTooltip=function(a){if(!d._masterTT)d._masterTT=new d._MasterTooltip;return d._masterTT.hide(a)};b.declare("dijit.Tooltip",d._Widget,{label:"",showDelay:400,connectId:[],position:[],_setConnectIdAttr:function(a){b.forEach(this._connections||[],function(e){b.forEach(e,b.hitch(this,"disconnect"))},this);var c=b.isArrayLike(a)?a:a?[a]:[];this._connections=b.map(c,function(e){return(e=b.byId(e))?[this.connect(e,"onmouseenter","_onTargetMouseEnter"),
this.connect(e,"onmouseleave","_onTargetMouseLeave"),this.connect(e,"onfocus","_onTargetFocus"),this.connect(e,"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}d.showTooltip(this.label||this.domNode.innerHTML,a,this.position,!this.isLeftToRight());this._connectNode=a;this.onShow(a,this.position)},close:function(){if(this._connectNode){d.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)}});d.Tooltip.defaultPosition=["after","before"];return d.Tooltip});
(function(){function b(c,e,f,g,h,i){if(e[c]){f.push(c);if(e[c]===true||e[c]===1)g.push(h+c+"/"+i)}}function d(c,e,f,g,h){e=g+e+"/"+h;require._fileExists(c.nameToUrl(e,null))&&f.push(e)}var a=/(^.*(^|\/)nls(\/|$))([^\/]*)\/?([^\/]*)/;define("i18n",{version:"0.24.0",load:function(c,e,f,g){g=g||{};var h=a.exec(c),i=h[1],j=h[4],k=h[5],l=j.split("-"),r=[],o={},p,q,n="";if(h[5]){i=h[1];c=i+k}else{c=c;k=h[4];j=g.locale||(g.locale=typeof navigator==="undefined"?"root":(navigator.language||navigator.userLanguage||
"root").toLowerCase());l=j.split("-")}if(g.isBuild){r.push(c);d(e,"root",r,i,k);for(p=0;q=l[p];p++){n+=(n?"-":"")+q;d(e,n,r,i,k)}e(r);f()}else e([c],function(m){var s=[];b("root",m,s,r,i,k);for(p=0;q=l[p];p++){n+=(n?"-":"")+q;b(n,m,s,r,i,k)}e(r,function(){var u,w;for(u=s.length-1;u>-1&&(q=s[u]);u--){w=m[q];if(w===true||w===1)w=e(i+q+"/"+k);require.mixin(o,w)}f(o)})})}})})();
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,d){b.declare("dijit.form.ValidationTextBox",d.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="",e=this.disabled||this.isValid(a);if(e)this._maskValidSubsetError=true;var f=this._isEmpty(this.textbox.value),g=!e&&a&&this._isValidSubset();this._set("state",e?"":((!this._hasBeenBlurred||a)&&f||g)&&this._maskValidSubsetError?
"Incomplete":"Error");d.setWaiState(this.focusNode,"invalid",e?"false":"true");if(this.state=="Error"){this._maskValidSubsetError=a&&g;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 e},displayMessage:function(a){d.hideTooltip(this.domNode);a&&this._focused&&d.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(e){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);d.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",d.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",d.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,e=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){e=this.constraints.max;e=this.compare(a,typeof e!="number"||e>0?e:0);e=typeof e=="number"&&e>0}return c||e},_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?d.setWaiState(this.focusNode,"valuemin",this.constraints.min):d.removeWaiState(this.focusNode,"valuemin");this.constraints.max!==undefined?d.setWaiState(this.focusNode,"valuemax",this.constraints.max):d.removeWaiState(this.focusNode,"valuemax")}},_setValueAttr:function(a){d.setWaiState(this.focusNode,"valuenow",a);this.inherited(arguments)}});return d.form.ValidationTextBox});
define("orion/util",["dojo","dijit","dojo/hash","dijit/form/ValidationTextBox"],function(b,d){function a(m){var s="",u=navigator.platform.indexOf("Mac")!==-1;if(m.mod1)s+=u?"Cmd+":"Ctrl+";if(m.mod2)s+="Shift+";if(m.mod3)s+="Alt+";if(m.mod4&&u)s+="Ctrl+";if(m.alphaKey)return s+m.alphaKey;for(var w in b.keys)if(typeof(b.keys[w]==="number"))if(b.keys[w]===m.keyCode)return s+w;var x;switch(m.keyCode){case 59:x=m.mod2?":":";";break;case 61:x=m.mod2?"+":"=";break;case 188:x=m.mod2?"<":",";break;case 190:x=
m.mod2?">":".";break;case 191:x=m.mod2?"?":"/";break;case 192:x=m.mod2?"~":"`";break;case 219:x=m.mod2?"{":"[";break;case 220:x=m.mod2?"|":"\\";break;case 221:x=m.mod2?"}":"]";break;case 222:x=m.mod2?'"':"'";break}if(x)return s+x;return s+String.fromCharCode(m.keyCode)}function c(m,s){m.startup();if(typeof s==="string"){var u=b.byId(s);if(!u)if(u=d.byId(s))u=u.domNode;s=u?u:null}if(s){s=b.position(s);m._setStyleAttr("left:"+(s.x+16)+"px !important;");m._setStyleAttr("top:"+(s.y+16)+"px !important;")}m.show()}
function e(m,s,u,w,x,B,G,C,D){G=function(J){return function(E){var N=d.byId(m),L=N.get("value");if(J&&E.keyCode===b.keys.ESCAPE){u&&b.style(s,"display","inline");N.destroyRecursive();B&&B()}else if(!(J&&E.keyCode!==b.keys.ENTER)){if(!N.isValid()||!D&&L===w)u&&b.style(s,"display","inline");else x(L);N.destroyRecursive();B&&B()}}};var H=new d.form.ValidationTextBox({id:m,required:true,value:w||""});b.place(H.domNode,s,"after");b.addClass(H.domNode,"userEditBoxPrompt");u&&b.style(s,"display","none");
b.connect(H,"onKeyDown",G(true));b.connect(H,"onBlur",G(false));window.setTimeout(function(){H.focus();if(w){var J=b.byId(m),E=C?w.indexOf(C):-1;E>0?d.selectInputText(J,0,E):J.select()}},0)}function f(m){var s=window.navigator.platform.indexOf("Mac")!==-1;return s&&m.metaKey||!s&&m.ctrlKey}function g(m,s){if(s&&f(s))window.open(m);else window.location=m}function h(m){if(!m)return m;var s=window.location.href.split("#")[0];s=s.substring(0,s.length-window.location.pathname.length);if(m.indexOf(s)===
0)return m.substring(s.length);return m}function i(m){if(!m)return m;var s=window.location.href.split("#")[0];return s.substring(0,s.length-window.location.pathname.length)+m}function j(m){return this.makeRelative(m).indexOf("/workspace")===0}function k(m,s){m.children=s;for(var u in s)s[u].parent=m;m.children.sort(function(w,x){var B=w.Directory;if(B!==x.Directory)return B?-1:1;w=w.Name&&w.Name.toLowerCase();x=x.Name&&x.Name.toLowerCase();if(w<x)return-1;if(w>x)return 1;return 0})}function l(m,s){m.Parents&&
m.Parents.length===0&&s.getService("orion.core.preference").getPreferences("/window/recent").then(function(u){var w=u.get("projects");if(typeof w==="string")w=JSON.parse(w);var x=[];if(w&&w.length&&w.length>0)for(var B=0;B<w.length;B++)w[B].location!==m.ChildrenLocation&&w[B].name!==m.Name&&x.push(w[B]);x.push({name:m.Name,location:m.ChildrenLocation});if(x.length>5)x=x.slice(-5,x.length);u.put("projects",x)})}function r(m){return typeof m.textContent!=="undefined"?m.textContent:m.innerText}function o(m){return r(document.createTextNode(m))}
function p(m,s){if(typeof m.textContent!=="undefined")m.textContent=s;else m.innerText=s}function q(m,s,u,w,x,B,G,C){x=x||s+"heading";B=B||s+"commands";b.place('<div class="toolComposite" id="'+s+'"><div class="layoutLeft" id="'+s+'"><span style: "inline-block;" id="'+x+'">'+u+'</span></div><div class="layoutRight sectionActions" id="'+B+'"></div><div id="'+m.id+'slideContainer" class="layoutBlock slideParameters slideContainer"><span id="'+m.id+'slideOut" class="slide"><span id="'+m.id+'pageCommandParameters" class="parameters"></span><span id="'+
m.id+'pageCommandDismiss" class="parametersDismiss"></span></span></div></div>',m,"last");w?b.addClass(s,"auxpaneHeading"):b.addClass(s,"paneHeading");G&&G.renderCommands(b.byId(B),"dom",C,C,"button");return b.byId(s)}function n(m){if(typeof m==="string")m=b.byId(m);for(;m;){var s=d.byId(m.id);if(s&&typeof s.layout==="function"){s.layout();return}m=m.parentNode}}return{getUserKeyString:a,openDialog:c,getUserText:e,openInNewWindow:f,followLink:g,makeRelative:h,makeFullPath:i,isAtRoot:j,processNavigatorParent:k,
rememberSuccessfulTraversal:l,getText:r,safeText:o,setText:p,createPaneHeading:q,forceLayout:n}});
define("orion/PageUtil",["require","exports","module"],function(){function b(d){d=d||window.location.toString();var a={resource:""},c=d.indexOf("#");if(c!==-1){d=d.substring(c+1);if(d.length!==0){d=d.split(",");a.resource=decodeURIComponent(d[0]);for(c=1;c<d.length;c++){var e=d[c].split("="),f=decodeURIComponent(e[0]);e=e.length===2?decodeURIComponent(e[1]):null;if(e!==null&&f!=="resource")a[f]=e}}}return a}return{matchResourceParameters:b}});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,d){b.declare("dijit._Container",null,{isContainer:true,buildRendering:function(){this.inherited(arguments);if(!this.containerNode)this.containerNode=this.domNode},addChild:function(a,c){var e=this.containerNode;if(c&&typeof c=="number"){var f=this.getChildren();if(f&&f.length>=c){e=f[c-1].domNode;c="after"}}b.place(a.domNode,e,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||!d.byNode(a)));return a&&d.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 d._Container});
define("dijit/_KeyNavContainer",["dojo","dijit","dijit/_Container"],function(b,d){b.declare("dijit._KeyNavContainer",d._Container,{tabIndex:"0",_keyNavCodes:{},connectKeyNavHandlers:function(a,c){var e=this._keyNavCodes={},f=b.hitch(this,this.focusPrev),g=b.hitch(this,this.focusNext);b.forEach(a,function(h){e[h]=f});b.forEach(c,function(h){e[h]=g});e[b.keys.HOME]=b.hitch(this,"focusFirstChild");e[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){d._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 e=this.getChildren(),f=0;f<e.length;f++){a||(a=e[c>0?0:e.length-1]);if(a.isFocusable())return a;a=this._getSiblingOfChild(a,c)}return null}});return d._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,d){b.declare("dijit._Contained",null,{getParent:function(){var a=d.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&&d.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 d._Contained});
define("dijit/MenuItem",["dojo","dijit","text!dijit/templates/MenuItem.html","dijit/_Widget","dijit/_Templated","dijit/_Contained","dijit/_CssStateMixin"],function(b,d){b.declare("dijit.MenuItem",[d._Widget,d._Templated,d._Contained,d._CssStateMixin],{templateString:b.cache("dijit","templates/MenuItem.html"),attributeMap:b.delegate(d._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"}d.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();d.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){d.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 d.MenuItem});
define("dijit/PopupMenuItem",["dojo","dijit","dijit/MenuItem"],function(b,d){b.declare("dijit.PopupMenuItem",d.MenuItem,{_fillContent:function(){if(this.srcNodeRef){var a=b.query("*",this.srcNodeRef);d.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=d.byNode(a)}b.body().appendChild(this.popup.domNode);this.popup.startup();
this.popup.domNode.style.display="none";this.arrowWrapper&&b.style(this.arrowWrapper,"visibility","");d.setWaiState(this.focusNode,"haspopup","true")}},destroyDescendants:function(){if(this.popup){this.popup._destroyed||this.popup.destroyRecursive();delete this.popup}this.inherited(arguments)}});return d.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,d){b.declare("dijit.CheckedMenuItem",d.MenuItem,{templateString:b.cache("dijit","templates/CheckedMenuItem.html"),checked:false,_setCheckedAttr:function(a){b.toggleClass(this.domNode,"dijitCheckedMenuItemChecked",a);d.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 d.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,d){b.declare("dijit.MenuSeparator",[d._Widget,d._Templated,d._Contained],{templateString:b.cache("dijit","templates/MenuSeparator.html"),buildRendering:function(){this.inherited(arguments);b.setSelectable(this.domNode,false)},isFocusable:function(){return false}});return d.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,d){b.declare("dijit._MenuBase",[d._Widget,d._Templated,d._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;d.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);d.popup.close(this.currentPopup)}c.parentMenu=this;c.from_item=a;var e=this;d.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(){e.focusChild(a);e._cleanUp();a._setSelected(true);e.focusedChild=a},onExecute:b.hitch(this,"_cleanUp")});this.currentPopup=c;c.connect(c.domNode,"onmouseenter",b.hitch(e,"_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){d._curFocus&&b.isDescendant(d._curFocus,this.currentPopup.domNode)&&this.focusedChild.focusNode.focus();d.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",d._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 e=a,f=this._iframeContentWindow(e);c=b.withGlobal(f,b.body)}else c=a==b.body()?b.doc.documentElement:a;var g={node:a,iframe:e};b.attr(a,"_dijitMenu"+this.id,this._bindings.push(g));var h=b.hitch(this,function(i){return[b.connect(i,this.leftClickToOpen?"onclick":"oncontextmenu",this,function(j){b.stopEvent(j);this._scheduleOpen(j.target,e,{x:j.pageX,y:j.pageY})}),b.connect(i,"onkeydown",this,function(j){if(j.shiftKey&&
j.keyCode==b.keys.F10){b.stopEvent(j);this._scheduleOpen(j.target,e)}})]});g.connects=c?h(c):[];if(e){g.onloadHandler=b.hitch(this,function(){var i=this._iframeContentWindow(e);c=b.withGlobal(i,b.body);g.connects=h(c)});e.addEventListener?e.addEventListener("load",g.onloadHandler,false):e.attachEvent("onload",g.onloadHandler)}},unBindDomNode:function(a){var c;try{c=b.byId(a)}catch(e){return}a="_dijitMenu"+this.id;if(c&&b.hasAttr(c,a)){var f=b.attr(c,a)-1,g=this._bindings[f];b.forEach(g.connects,b.disconnect);
var h=g.iframe;if(h)h.removeEventListener?h.removeEventListener("load",g.onloadHandler,false):h.detachEvent("onload",g.onloadHandler);b.removeAttr(c,a);delete this._bindings[f]}},_scheduleOpen:function(a,c,e){if(!this._openTimer)this._openTimer=setTimeout(b.hitch(this,function(){delete this._openTimer;this._openMyself({target:a,iframe:c,coords:e})}),1)},_openMyself:function(a){function c(){k.refocus&&d.focus(l);d.popup.close(k)}var e=a.target,f=a.iframe;if(a=a.coords){if(f){e=b.position(f,true);var g=
this._iframeContentWindow(f);g=b.withGlobal(g,"_docScroll",b);var h=b.getComputedStyle(f),i=b._toPixelValue,j=(b.isIE&&b.isQuirks?0:i(f,h.paddingLeft))+(b.isIE&&b.isQuirks?i(f,h.borderLeftWidth):0);f=(b.isIE&&b.isQuirks?0:i(f,h.paddingTop))+(b.isIE&&b.isQuirks?i(f,h.borderTopWidth):0);a.x+=e.x+j-g.x;a.y+=e.y+f-g.y}}else{a=b.position(e,true);a.x+=10;a.y+=10}var k=this,l=d.getFocus(this);d.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);d.popup.close(this)}},uninitialize:function(){b.forEach(this._bindings,function(a){a&&this.unBindDomNode(a.node)},this);this.inherited(arguments)}});return d.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,d){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,e=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&&!e;)if(b.hasClass(f,"dijitPopup"))e=true;else f=f.parentNode;if(e){f=a.target;if(c.onItemClick){for(var g;f&&!(g=d.byNode(f));)f=f.parentNode;g&&g.onClick&&g.getParent&&g.getParent().onItemClick(g,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,e=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==" ")&&((e.tagName||"").toLowerCase()!=="input"||e.type&&e.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(d._curFocus&&this.dropDown&&b.isDescendant(d._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,e=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 g={display:"",visibility:"hidden"};if(!this._explicitDDWidth)g.width="";if(!this._explicitDDHeight)g.height="";b.style(c,g);g=this.maxHeight;if(g==-1){g=b.window.getBox();var h=b.position(e,false);g=Math.floor(Math.max(h.y,g.h-(h.y+h.h)))}a.startup&&
!a._started&&a.startup();d.popup.moveOffScreen(a);h=b._getMarginSize(c);var i=g&&h.h>g;b.style(c,{overflowX:"hidden",overflowY:i?"auto":"hidden"});if(i){h.h=g;if("w"in h)h.w+=16}else delete h.h;if(this.forceWidth)h.w=e.offsetWidth;else if(this.autoWidth)h.w=Math.max(h.w,e.offsetWidth);else delete h.w;b.isFunction(a.resize)?a.resize(h):b.marginBox(c,h)}a=d.popup.open({parent:this,popup:a,around:e,orient:d.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();d.popup.close(this.dropDown);this._opened=false}}});
return d._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,d){b.declare("dijit.form.Button",d.form._FormWidget,{label:"",showLabel:true,iconClass:"",type:"button",baseClass:"dijitButton",templateString:b.cache("dijit.form","templates/Button.html"),attributeMap:b.delegate(d.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 e=d.byNode(c);if(e&&typeof e._onSubmit=="function"){e._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",[d.form.Button,d._Container,d._HasDropDown],{baseClass:"dijitDropDownButton",templateString:b.cache("dijit.form","templates/DropDownButton.html"),_fillContent:function(){if(this.srcNodeRef){var a=
b.query("*",this.srcNodeRef);d.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=d.byNode(a);delete this.dropDownContainer}this.dropDown&&d.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",d.form.DropDownButton,{templateString:b.cache("dijit.form","templates/ComboButton.html"),attributeMap:b.mixin(b.clone(d.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"]){d.focus(this._popupStateNode);b.stopEvent(a)}},_onArrowKeyPress:function(a){if(a.charOrCode==b.keys[this.isLeftToRight()?"LEFT_ARROW":"RIGHT_ARROW"]){d.focus(this.titleNode);b.stopEvent(a)}},focus:function(a){this.disabled||d.focus(a=="start"?this.titleNode:this._popupStateNode)}});
b.declare("dijit.form.ToggleButton",d.form.Button,{baseClass:"dijitToggleButton",checked:false,attributeMap:b.mixin(b.clone(d.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);d.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 d.form.Button});define("dijit/form/DropDownButton",["dojo","dijit","dijit/form/Button"],function(b,d){return d.form.DropDownButton});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/layout/_LayoutWidget",["dojo","dijit","dijit/_Widget","dijit/_Container","dijit/_Contained"],function(b,d){b.declare("dijit.layout._LayoutWidget",[d._Widget,d._Container,d._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 e=this.domNode;if(a){b.marginBox(e,a);if(a.t)e.style.top=a.t+"px";if(a.l)e.style.left=a.l+"px"}c=c||{};b.mixin(c,a||{});if(!("h"in c)||!("w"in c))c=b.mixin(b.marginBox(e),c);a=b.getComputedStyle(e);var f=b._getMarginExtents(e,a),g=b._getBorderExtents(e,a);c=this._borderBox={w:c.w-(f.w+g.w),h:c.h-(f.h+g.h)};f=b._getPadExtents(e,a);this._contentBox={l:b._toPixelValue(e,a.paddingLeft),t:b._toPixelValue(e,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)}});d.layout.marginBox2contentBox=function(a,c){var e=b.getComputedStyle(a),f=b._getMarginExtents(a,
e),g=b._getPadBorderExtents(a,e);return{l:b._toPixelValue(a,e.paddingLeft),t:b._toPixelValue(a,e.paddingTop),w:c.w-(f.w+g.w),h:c.h-(f.h+g.h)}};(function(){var a=function(e){return e.substring(0,1).toUpperCase()+e.substring(1)},c=function(e,f){var g=e.resize?e.resize(f):b.marginBox(e.domNode,f);if(g)b.mixin(e,g);else{b.mixin(e,b.marginBox(e.domNode));b.mixin(e,f)}};d.layout.layoutChildren=function(e,f,g,h,i){f=b.mixin({},f);b.addClass(e,"dijitLayoutContainer");g=b.filter(g,function(j){return j.region!=
"center"&&j.layoutAlign!="client"}).concat(b.filter(g,function(j){return j.region=="center"||j.layoutAlign=="client"}));b.forEach(g,function(j){var k=j.domNode,l=j.region||j.layoutAlign,r=k.style;r.left=f.l+"px";r.top=f.t+"px";r.position="absolute";b.addClass(k,"dijitAlign"+a(l));k={};if(h&&h==j.id)k[j.region=="top"||j.region=="bottom"?"h":"w"]=i;if(l=="top"||l=="bottom"){k.w=f.w;c(j,k);f.h-=j.h;if(l=="top")f.t+=j.h;else r.top=f.t+f.h+"px"}else if(l=="left"||l=="right"){k.h=f.h;c(j,k);f.w-=j.w;if(l==
"left")f.l+=j.w;else r.left=f.l+f.w+"px"}else if(l=="client"||l=="center")c(j,f)})}})();return d.layout._LayoutWidget});
define("dijit/layout/_ContentPaneResizeMixin",["dojo","dijit","dijit/_Contained","dijit/layout/_LayoutWidget"],function(b,d){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=d._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")}),e=b.filter(c.map(d.byNode),function(f){return f&&
f.domNode&&f.resize});if(a.length==c.length&&e.length==1)this._singleChild=e[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 e=this.containerNode;if(e===this.domNode){c=c||{};b.mixin(c,a||{});if(!("h"in c)||!("w"in c))c=b.mixin(b.marginBox(e),c);this._contentBox=d.layout.marginBox2contentBox(e,c)}else this._contentBox=b.contentBox(e);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 d.layout._ContentPaneResizeMixin});
define("dojo/html",["dojo","dojo/parser"],function(b){b.getObject("html",true,b);(function(){var d=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 e=c.length,f=0;f<c.length;f=e==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:"",d++].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 e=this.onContentError(c);try{a.innerHTML=e}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={},e;for(e in a)e in c||(this[e]=a[e])},_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(e){this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id)}},_onError:function(a,c,e){a=this["on"+a+"Error"].call(this,c);if(e)console.error(e,c);else a&&b.html._setNodeContent(this.node,a,true)}});b.html.set=function(a,c,e){if(undefined==c){console.warn("dojo.html.set: no cont argument provided, using empty string");c=""}return e?(new b.html._ContentSetter(b.mixin(e,
{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,d){b.declare("dijit.layout.ContentPane",[d._Widget,d.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(d._Widget.prototype.attributeMap,{title:[]}),stopParser:true,template:false,create:function(a,c){if((!a||!a.template)&&c&&!("href"in a)&&!("content"in a)){var e=b.doc.createDocumentFragment();for(c=b.byId(c);c.firstChild;)e.appendChild(c.firstChild);a=b.delegate(a,{content:e})}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")||d.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 e=this._xhrDfd=(this.ioMethod||b.xhrGet)(c);e.addCallback(function(f){try{a._isDownloaded=true;a._setContent(f,false);a.onDownloadEnd()}catch(g){a._onError("Content",g)}delete a._xhrDfd;return f});e.addErrback(function(f){e.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 e=this._contentSetter;if(!(e&&e instanceof b.html._ContentSetter))e=this._contentSetter=new b.html._ContentSetter({node:this.containerNode,_onError:b.hitch(this,this._onError),onContentError:b.hitch(this,function(g){g=this.onContentError(g);try{this.containerNode.innerHTML=
g}catch(h){console.error("Fatal "+this.id+" could not change content due to "+h.message,h)}})});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||{});e.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,e){this.onLoadDeferred.errback(c);a=this["on"+a+"Error"].call(this,c);if(e)console.error(e,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 d.layout.ContentPane});
define("dijit/form/_FormMixin",["dojo","dijit","dojo/window"],function(b,d){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 e=c.disabled||!c.validate||c.validate();if(!e&&!a){b.window.scrollIntoView(c.containerNode||c.domNode);c.focus();a=true}return e}),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(h){if(h.name)(c[h.name]||(c[h.name]=[])).push(h)});for(var e in c)if(c.hasOwnProperty(e)){var f=c[e],g=b.getObject(e,false,a);if(g!==undefined){b.isArray(g)||(g=[g]);if(typeof f[0].checked=="boolean")b.forEach(f,function(h){h.set("value",b.indexOf(g,h.value)!=-1)});else f[0].multiple?f[0].set("value",g):b.forEach(f,function(h,
i){h.set("value",g[i])})}}},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 e=c.name;if(!(!e||c.disabled)){var f=c.get("value");if(typeof c.checked=="boolean")if(/Radio/.test(c.declaredClass))if(f!==false)b.setObject(e,f,a);else{f=b.getObject(e,false,a);f===undefined&&b.setObject(e,null,a)}else{c=b.getObject(e,false,a);
if(!c){c=[];b.setObject(e,c,a)}f!==false&&c.push(f)}else{c=b.getObject(e,false,a);if(typeof c!="undefined")b.isArray(c)?c.push(f):b.setObject(e,[c,f],a);else b.setObject(e,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(h,i){c[h]=i}:b.hitch(this,"_set");a("value",this.get("value"));a("state",this._getState());var e=this._childConnections=[],f=this._childWatches=[];b.forEach(b.filter(this._descendants,function(h){return h.validate}),function(h){b.forEach(["state","disabled"],function(i){f.push(h.watch(i,function(){c.set("state",
c._getState())}))})});var g=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(h){return h.onChange}),function(h){e.push(c.connect(h,"onChange",g));f.push(h.watch("disabled",g))})},startup:function(){this.inherited(arguments);this.connectChildren(true);this.watch("state",function(a,c,e){this.onValidStateChange(e=="")})},destroy:function(){this.disconnectChildren();
this.inherited(arguments)}});return d.form._FormMixin});
define("dijit/_DialogMixin",["dojo","dijit","dijit/_Widget"],function(b,d){b.declare("dijit._DialogMixin",null,{attributeMap:d._Widget.prototype.attributeMap,execute:function(){},onCancel:function(){},onExecute:function(){},_onSubmit:function(){this.onExecute();this.execute(this.get("value"))},_getFocusItems:function(){var a=d._getTabNavigable(this.containerNode);this._firstFocusItem=a.lowest||a.first||this.closeButtonNode||this.domNode;this._lastFocusItem=a.last||a.highest||this._firstFocusItem}});
return d._DialogMixin});
define("dijit/TooltipDialog",["dojo","dijit","text!dijit/templates/TooltipDialog.html","dijit/layout/ContentPane","dijit/_Templated","dijit/form/_FormMixin","dijit/_DialogMixin"],function(b,d){b.declare("dijit.TooltipDialog",[d.layout.ContentPane,d._Templated,d.form._FormMixin,d._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,e){a="dijitTooltipAB"+(e.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(e.charAt(0)=="T"?"Below":"Above");b.replaceClass(this.domNode,a,this._currentOrientClass||"");this._currentOrientClass=a},focus:function(){this._getFocusItems(this.containerNode);d.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,e=b.keys;a.charOrCode===e.TAB&&this._getFocusItems(this.containerNode);var f=this._firstFocusItem==this._lastFocusItem;if(a.charOrCode==e.ESCAPE){setTimeout(b.hitch(this,"onCancel"),0);b.stopEvent(a)}else if(c==this._firstFocusItem&&a.shiftKey&&a.charOrCode===e.TAB){f||d.focus(this._lastFocusItem);b.stopEvent(a)}else if(c==this._lastFocusItem&&a.charOrCode===e.TAB&&!a.shiftKey){f||d.focus(this._firstFocusItem);b.stopEvent(a)}else a.charOrCode===
e.TAB&&a.stopPropagation()}});return d.TooltipDialog});
define("orion/commands",["require","dojo","dijit","orion/util","orion/PageUtil","dijit/Menu","dijit/form/DropDownButton","dijit/MenuItem","dijit/PopupMenuItem","dijit/MenuSeparator","dijit/Tooltip","dijit/TooltipDialog"],function(b,d,a,c,e){function f(n,m,s,u,w){this.commandService=n;this.handler=m;this.items=s;this.userData=u;this.command=w;if(w.parameters)this.parameters=w.parameters.makeCopy();this.id=w.id}function g(n){this._domScope={};this._objectScope={};this._globalScope={};this._namedGroups=
{};this._ungrouped={};this._topics={};this._activeBindings={};this._urlBindings={};this._init(n);this._parameterCollector=null}function h(n,m,s){d.addClass(m,"commandImage");var u;if(n.imageClass){u=d.create("span",{},m,"last");d.addClass(u,n.spriteClass);d.addClass(u,n.imageClass)}else{u=new Image;u.alt=n.name;u.name=s;u.id=s;u.src=n.image;d.place(u,m,"last")}return u}function i(n){this._init(n)}function j(n,m,s,u,w){this.keyCode=typeof n==="string"?n.toUpperCase().charCodeAt(0):n;this.mod1=m!==
undefined&&m!==null?m:false;this.mod2=s!==undefined&&s!==null?s:false;this.mod3=u!==undefined&&u!==null?u:false;this.mod4=w!==undefined&&w!==null?w:false}function k(n,m){this.token=n;this.parameterName=m}function l(n,m,s,u){this.name=n;this.type=m;this.label=s;this.value=u}function r(n,m,s){this._storeParameters(n);this.options=m;this.optionsRequested=false;this.getParameters=s}f.prototype={collectsParameters:function(){return this.commandService&&this.commandService.collectsParameters()}};f.prototype.constructor=
f;var o=d.declare(a.MenuItem,{_onClick:function(){this.hrefCallback||this.inherited(arguments)}}),p=d.declare(a.Tooltip,{constructor:function(){this.inherited(arguments);this.options=arguments[0]||{}},_onUnHover:function(){if(this._showTimer){window.clearTimeout(this._showTimer);delete this._showTimer}this.polling=false;this.close()},_onHover:function(){this.inherited(arguments);this.polling=true;this.pollForMissingTarget()},pollForMissingTarget:function(){this.polling&&window.setTimeout(d.hitch(this,
function(){if(this._stillInDocument(this._connectNode))this.pollForMissingTarget();else{this.polling=false;this.close()}}),1E3)},_stillInDocument:function(n){for(;n;){if(n===window.document)return true;n=n.parentNode}return false},postMixInProperties:function(){this.inherited(arguments);this.options.commandParent&&a.byId(this.options.commandParent.id)&&d.connect(this.options.commandParent,"onClose",d.hitch(this,function(){this.close()}))}});g.prototype={_init:function(n){this._registry=n.serviceRegistry;
this._serviceRegistration=this._registry.registerService("orion.page.command",this);this._selection=n.selection;d.connect(window.document,"onkeydown",d.hitch(this,function(m){m=m||window.event;var s=m.target.nodeName.toLowerCase();if(s==="input")switch(m.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(s===
"textarea")return;this._processKey(m)}))},_processKey:function(n){function m(B){if(window.document.all)B.keyCode=0;else{B.preventDefault();B.stopPropagation()}}for(var s in this._activeBindings)if(this._activeBindings[s]&&this._activeBindings[s].keyBinding&&this._activeBindings[s].command)if(this._activeBindings[s].keyBinding.match(n)){var u=this._activeBindings[s],w=u.invocation;if(w){var x=u.command;if(x.hrefCallback){m(n);n=x.hrefCallback.call(w.handler||window,w);n.then?n.then(function(B){window.open(B)}):
window.open(n);return}else if(x.callback){m(n);window.setTimeout(d.hitch(this,function(){w.parameters&&this.collectsParameters()?this._collectParameters(w):x.callback.call(w.handler||window,w)}),0);return}}}},processURL:function(n){for(var m in this._urlBindings)if(this._urlBindings[m]&&this._urlBindings[m].urlBinding&&this._urlBindings[m].command){var s=this._urlBindings[m].urlBinding.match(n);if(s){var u=this._urlBindings[m],w=u.command,x=u.invocation;if(x&&x.parameters&&w.callback){x.parameters.setValue(s.parameterName,
s.parameterValue);window.setTimeout(d.hitch(this,function(){this._collectParameters(x)}),0);return}}}},findCommand:function(n){return this._objectScope[n]||this._domScope[n]||this._globalScope[n]},runCommand:function(n){var m=this._urlBindings[n];m&&m.command&&m.command.callback&&window.setTimeout(d.hitch(this,function(){this._collectParameters(m.invocation)}),0)},getSelectionService:function(){return this._selection},setParameterCollector:function(n){this._parameterCollector=n},openParameterCollector:function(n,
m){if(this._parameterCollector){this._parameterCollector.close();this._parameterCollector.open(n,m)}},closeParameterCollector:function(){this._parameterCollector&&this._parameterCollector.close()},collectsParameters:function(){return this._parameterCollector},_collectParameters:function(n){var m=false;if(this._parameterCollector){n.parameters.updateParameters(n);m=n.parameters.hasParameters()?this._parameterCollector.collectParameters(n):false}if(!m&&n.parameters.hasParameters()){var s=new a.TooltipDialog({onBlur:function(){a.popup.close(s)}}),
u=d.create("div"),w=this._parameterCollector.getFillFunction(n,function(){a.popup.close(s)})(u);s.set("content",u);u=(u=a.byId(n.domParent.id))?d.position(u.eclipseScopeId,true):d.position(n.domNode,true);if(u.x&&u.y&&u.w){a.popup.open({popup:s,x:u.x+u.w-8,y:u.y+8});window.setTimeout(function(){w.focus();w.select()},0);m=true}}if(!m){n.parameters=null;n.command.callback.call(n.handler,n)}},showKeyBindings:function(n){for(var m in this._activeBindings)this._activeBindings[m]&&this._activeBindings[m].keyBinding&&
this._activeBindings[m].command&&d.place('<span role="listitem">'+c.getUserKeyString(this._activeBindings[m].keyBinding)+" = "+this._activeBindings[m].command.name+"<br></span>",n,"last")},addCommand:function(n,m){switch(m){case "dom":this._domScope[n.id]=n;break;case "object":this._objectScope[n.id]=n;break;case "global":this._globalScope[n.id]=n;break;default:throw"unrecognized command scope "+m;}},addCommandGroup:function(n,m,s,u,w){var x=this._namedGroups;if(u)x=this._createEntryForPath(u);if(x[n]){if(s)x[n].title=
s;if(m)x[n].position=m;if(w)x[n].scopeId=w}else{x[n]={title:s,position:m,children:{},scopeId:w};x.sortedCommands=null}},_createEntryForPath:function(n){var m=this._namedGroups;if(n){n=n.split("/");for(var s=0;s<n.length;s++)if(n[s].length>1){m[n[s]]||(m[n[s]]={position:0,children:{}});m=m[n[s]].children}}return m},registerCommandContribution:function(n,m,s,u,w,x,B){u=!s&&!u?this._ungrouped:this._createEntryForPath(u);u[n]={scopeId:s,position:m};if(x)if(m=this._domScope[n]||this._globalScope[n])this._activeBindings[n]=
{command:m,keyBinding:x,bindingOnly:w};if(B)if(m=this._domScope[n]||this._globalScope[n])this._urlBindings[n]={command:m,urlBinding:B,bindingOnly:w};u.sortedCommands=null},_isLastChildSeparator:function(n,m){if(m==="tool"||m==="button")return n.childNodes.length>0&&d.hasClass(n.childNodes[n.childNodes.length-1],"commandSeparator");if(m==="menu"){n=n.getChildren();return n.length>0&&n[n.length-1]instanceof a.MenuSeparator}return false},renderCommands:function(n,m,s,u,w,x,B,G,C){if(typeof n==="string")n=
d.byId(n);if(n){if(!n.id||n.id==="")window.console.log("renderCommands: "+m+","+w+">> WARNING: command parent must have an id")}else throw"no parent";if(s){var D;if(m==="object"){D=this._objectScope;this._render(this._ungrouped,n,m,s,u,w,x,B,D,G,C)}else if(m==="dom")D=this._domScope;else if(m==="global")D=this._globalScope;else throw"Unrecognized command scope "+m;this._render(this._namedGroups,n,m,s,u,w,x,B,D,G,C);if(w==="tool"||w==="button")this._isLastChildSeparator(n,w)&&n.removeChild(n.childNodes[n.childNodes.length-
1]);else if(w==="menu")if(this._isLastChildSeparator(n,w)){s=n.getChildren()[n.getChildren().length-1];n.removeChild(s);s.destroy()}if(m==="dom"||m==="global")c.forceLayout(n)}else{var H=this;this._selection&&this._selection.getSelections(function(J){H.renderCommands(n,m,J,u,w,x,B,G,C)})}},_render:function(n,m,s,u,w,x,B,G,C,D,H){var J=n.sortedCommands;if(!J){J=[];for(var E in n){var N=n[E];if(N&&typeof N.position==="number"){N.id=E;J.push(N)}}J.sort(function(W,t){return W.position-t.position});n.sortedCommands=
J}for(n=0;n<J.length;n++){var L,T;if(J[n].children){E=J[n];if(!(E.scopeId&&m.id!==E.scopeId)){var R;if(x==="tool"||x==="button")if(E.title){L=new a.Menu({style:"display: none;"});L.eclipseScopeId=m.eclipseScopeId||m.id;this._render(J[n].children,L,s,u,w,"menu",B,G,C,D);R=L.getChildren();if(this._isLastChildSeparator(L,"menu")){N=R[R.length-1];L.removeChild(N);N.destroy();R=L.getChildren()}if(R.length>0){N=R[0].eclipseCommand;if(R.length>1){L=new a.form.DropDownButton({label:E.title==="*"?"Actions":
E.title,showLabel:E.title!=="*",dropDown:L});d.addClass(L.domNode,"commandMenu");d.destroy(L.valueNode);if(E.title==="*"){d.addClass(L.domNode,"textless");new p({connectId:[L.domNode],label:"Actions menu",position:["above","left","right","below"],commandParent:m,commandService:this})}N._setupActivateVisuals(L.domNode,L.focusNode,D,H);d.place(L.domNode,m,"last")}else{L=x+N.id+n;T=new f(this,w,u,G,N);x==="button"?N._addButton(m,B,L,T,D,H):N._addTool(m,B,L,T,D,H)}}}else{var Z;if(m.childNodes.length>
0&&!this._isLastChildSeparator(m,x))Z=this.generateSeparatorImage(m);this._render(J[n].children,m,s,u,w,x,B,G,C,D,H);if(m.childNodes.length>0)if(m.childNodes[m.childNodes.length-1]!==Z)Z=this.generateSeparatorImage(m)}else if(E.title){N=new a.Menu;this._render(J[n].children,N,s,u,w,x,B,G,C,D,H);N.getChildren().length>0&&m.addChild(new a.PopupMenuItem({label:E.title,popup:N}))}else{var M;if(m.getChildren().length>0&&!this._isLastChildSeparator(m,x)){M=new a.MenuSeparator;m.addChild(M)}this._render(J[n].children,
m,s,u,w,x,B,G,C,D,H);E=m.getChildren();if(E[E.length-1]!==M){M=new a.MenuSeparator;m.addChild(M)}}}}else{N=(E=C[J[n].id])?true:false;R=R=null;if(E){if(s==="dom"||s==="global")N=x==="tool"||x==="button"?m.id===J[n].scopeId:x==="menu"?m.eclipseScopeId===J[n].scopeId:false;else if(s==="object")N=!J[n].scopeId;var S=N&&(s==="global"||s==="dom");T=new f(this,w,u,G,E);T.domParent=m;L=N&&(E.visibleWhen?E.visibleWhen(u):true);if(S&&this._activeBindings[E.id]&&this._activeBindings[E.id].keyBinding){R=this._activeBindings[E.id];
R.invocation=L?T:null;if(R.bindingOnly)N=false}if(S&&this._urlBindings[E.id]&&this._urlBindings[E.id].urlBinding){R=this._urlBindings[E.id];R.invocation=L?T:null;if(R.bindingOnly)N=false}N=N&&L}if(N)if(E.choiceCallback){N=new a.Menu({style:"display: none;"});if(x==="tool"||x==="button"){L=new a.form.DropDownButton({label:E.name,dropDown:N});if(E.image){d.addClass(L.iconNode,"commandImage");L.iconNode.src=E.image}d.place(L.domNode,m,"last");L.eclipseCommand=E;L.eclipseChoices=N;d.connect(L,"onClick",
L,function(){this.eclipseCommand.populateChoicesMenu(this.eclipseChoices,u,w,G)})}else if(x==="menu"){L=new a.PopupMenuItem({label:E.name,popup:N});m.addChild(L);L.eclipseCommand=E;L.eclipseChoices=N;d.connect(m,"_openPopup",L,function(){this.eclipseCommand.populateChoicesMenu(this.eclipseChoices,u,w,G)})}}else if(x==="tool"){L="tool"+E.id+n;E._addTool(m,B,L,T,D,H)}else if(x==="button"){L="button"+E.id+n;E._addButton(m,B,L,T,D,H)}else x==="menu"&&E._addMenuItem(m,T,D,H)}}},whenHidden:function(n,m){n=
typeof n==="string"?n:n.id;if(!this.hidden)this.hidden={};if(this.hidden[n])this.hidden[n].push(m);else this.hidden[n]=[m]},generateSeparatorImage:function(n){n=d.create("span",null,n,"last");d.addClass(n,"core-sprite-sep");d.addClass(n,"imageSprite");d.addClass(n,"commandSeparator");return n}};g.prototype.constructor=g;i.prototype={_init:function(n){this.id=n.id;this.name=n.name;this.tooltip=n.tooltip||n.name;this.callback=n.callback;this.hrefCallback=n.hrefCallback;this.choiceCallback=n.choiceCallback;
this.image=n.image||b.toUrl("images/none.png");this.imageClass=n.imageClass;this.spriteClass=n.spriteClass||"commandSprite";this.visibleWhen=n.visibleWhen;this.parameters=n.parameters},_addTool:function(n,m,s,u,w,x){u.handler=u.handler||this;var B,G;if(this.hrefCallback){B=this._makeLink(u);if(!B)return}else{B=d.create("span",{tabindex:"0",role:"button"});if(m||!this.hasImage()){m=window.document.createTextNode(this.name);d.place(m,B,"last");d.addClass(B,"commandMissingImageButton commandButton")}else{G=
h(this,B,s);this._addAccessibleLabel(B)}this._hookCallback(B,u);this._setupActivateVisuals(B,B,w,x,G?"commandImageOver":"commandButtonOver")}u.domNode=B;u.domParent=n;this.tooltip&&new p({connectId:[B],label:this.tooltip,position:["above","left","right","below"],commandParent:n,commandService:u.commandService});d.place(B,n,"last")},_addButton:function(n,m,s,u,w,x){u.handler=u.handler||this;if(this.hrefCallback){m=this._makeLink(u);if(!m)return}else{m=d.create("span",{tabindex:"0",role:"button"});
this._hookCallback(m,u);var B;if(this.name){d.place(window.document.createTextNode(this.name),m,"last");d.addClass(m,"commandButton");B="commandButtonOver"}else{h(this,m,s);B="commandImageOver";this._addAccessibleLabel(m)}this._setupActivateVisuals(m,m,w,x,B)}m.id=s;this.tooltip&&new p({connectId:[m],label:this.tooltip,position:["above","left","right","below"],commandParent:n,commandService:u.commandService});u.domParent=n;u.domNode=m;d.place(m,n,"last")},_addMenuItem:function(n,m){m.domParent=n.domNode;
var s=new o({labelType:this.hrefCallback?"html":"text",label:this.name,iconClass:this.imageClass,hrefCallback:!!this.hrefCallback});this.tooltip&&new p({connectId:[s.domNode],label:this.tooltip,commandParent:n,commandService:m.commandService});if(this.hrefCallback){var u=this.hrefCallback.call(m.handler,m);if(u)if(u.then)u.then(d.hitch(this,function(w){s.set("label","<a href='"+w+"'>"+this.name+"</a>")}));else if(u)s.set("label","<a href='"+u+"'>"+this.name+"</a>");else return}else if(this.callback)s.onClick=
this.parameters&&m.collectsParameters()?d.hitch(this,function(){m.commandService._collectParameters(m)}):d.hitch(this,function(){this.callback.call(m.handler,m)});s.eclipseCommand=this;n.addChild(s);if(this.imageClass)d.addClass(s.iconNode,this.spriteClass);else if(this.image){d.addClass(s.iconNode,"commandMenuItem");s.iconNode.src=this.image}m.domNode=s.domNode},_makeLink:function(n){var m=d.create("a",{tabindex:"0"});d.addClass(m,"commandLink");d.place(window.document.createTextNode(this.name),
m,"last");n=this.hrefCallback.call(n.handler,n);if(n.then)n.then(function(s){m.href=s});else if(n)m.href=n;else return null;return m},_hookCallback:function(n,m){d.connect(n,"onclick",this,function(){if(this.parameters&&m.collectsParameters())m.commandService._collectParameters(m);else this.callback&&this.callback.call(m.handler,m)});d.connect(n,"onkeypress",this,function(s){if(s.keyCode===d.keys.ENTER||s.keyCode===d.keys.SPACE)if(this.parameters&&m.collectsParameters())m.commandService._collectParameters(m);
else this.callback&&this.callback.call(m.handler,m)})},_addAccessibleLabel:function(n){var m=this.name||this.tooltip;m&&d.attr(n,"aria-label",m)},_setupActivateVisuals:function(n,m,s,u,w){u&&d.addClass(n,u);var x=function(){w&&d.addClass(this,w);s&&d.addClass(this,s);u&&d.removeClass(this,u)},B=function(){w&&d.removeClass(this,w);s&&d.removeClass(this,s);u&&d.addClass(this,u)};d.connect(n,"onmouseover",n,x);d.connect(m,"onfocus",n,x);d.connect(n,"onmouseout",n,B);d.connect(m,"onblur",n,B)},populateChoicesMenu:function(n,
m,s,u){n.focusedChild=null;d.forEach(n.getChildren(),function(B){n.removeChild(B);B.destroy()});s=this.getChoices(m,s,u);for(u=0;u<s.length;u++){var w=s[u],x;if(w.name){x=new a.MenuItem({label:w.name,iconClass:w.imageClass,onClick:this.makeChoiceCallback(w,m)});if(w.imageClass)d.addClass(x.iconNode,w.spriteClass||"commandSprite");else if(w.image){d.addClass(x.iconNode,"commandImage");x.iconNode.src=w.image}}else x=new a.MenuSeparator;n.addChild(x)}},getChoices:function(n,m,s){if(this.choiceCallback)return this.choiceCallback.call(m,
n,s);return null},makeChoiceCallback:function(n,m){return function(s){n.callback&&n.callback.call(n,m,s)}},hasImage:function(){return this.imageClass||this.image!==b.toUrl("images/none.png")}};i.prototype.constructor=i;var q=window.navigator.platform.indexOf("Mac")!==-1;j.prototype={match:function(n){if(this.keyCode===n.keyCode){if(this.mod1!==(q?n.metaKey:n.ctrlKey))return false;if(this.mod2!==n.shiftKey)return false;if(this.mod3!==n.altKey)return false;if(q&&this.mod4!==n.ctrlKey)return false;return true}return false},
equals:function(n){if(!n)return false;if(this.keyCode!==n.keyCode)return false;if(this.mod1!==n.mod1)return false;if(this.mod2!==n.mod2)return false;if(this.mod3!==n.mod3)return false;if(this.mod4!==n.mod4)return false;return true}};j.prototype.constructor=j;k.prototype={match:function(n){n=e.matchResourceParameters(n);if(typeof n[this.token]!=="undefined"){this.parameterValue=n[this.token];return this}return null}};k.prototype.constructor=k;l.prototype={optionsRequested:function(){return this.optionsRequested}};
l.prototype.constructor=l;r.prototype={_storeParameters:function(n){this.parameterTable=null;if(n){this.parameterTable={};for(var m=0;m<n.length;m++)this.parameterTable[n[m].name]=n[m]}},updateParameters:function(n){typeof this.getParameters==="function"&&this._storeParameters(this.getParameters(n))},hasParameters:function(){return this.parameterTable!==null},parameterNamed:function(n){return this.parameterTable[n]},valueFor:function(n){if(n=this.parameterTable[n])return n.value;return null},setValue:function(n,
m){if(n=this.parameterTable[n])n.value=m},forEach:function(n){for(var m in this.parameterTable)this.parameterTable[m].type&&this.parameterTable[m].name&&n(this.parameterTable[m])},makeCopy:function(){var n=[];this.forEach(function(m){m=new l(m.name,m.type,m.label,m.value);n.push(m)});return new r(n,this.options,this.getParameters)}};r.prototype.constructor=r;return{CommandService:g,CommandKeyBinding:j,Command:i,CommandInvocation:f,CommandMenuItem:o,URLBinding:k,ParametersDescription:r,CommandParameter:l,
CommandTooltip:p}});
define("orion/parameterCollectors",["require","dojo","dijit","orion/commands","orion/util","dijit/Menu","dijit/MenuItem","dijit/form/DropDownButton"],function(b,d,a,c,e){function f(){this._activeContainer=null}f.prototype={close:function(){if(this._activeElements){this._activeElements.parameterArea&&d.empty(this._activeElements.parameterArea);if(this._activeElements.parameterContainer){d.removeClass(this._activeElements.parameterContainer,"slideActive");d.removeClass(this._activeElements.slideContainer,"slideContainerActive")}this._activeElements.dismissArea&&
d.empty(this._activeElements.dismissArea);this._activeElements.commandNode&&d.removeClass(this._activeElements.commandNode,"activeCommand");e.forceLayout(this._activeElements.parameterContainer);if(this._oldFocusNode){this._oldFocusNode.focus();this._oldFocusNode=null}}this._activeElements=null},_findParameterElements:function(g){var h={},i=null;if(typeof g==="string")g=d.byId(g);for(var j=g;j;){if(d.hasClass(j,"toolComposite")){i=j;break}j=j.parentNode}if(d.hasClass(g,"commandMarker"))h.commandNode=
g;if(i){h.slideContainer=d.query(".slideParameters",i)[0];h.parameterContainer=d.query(".slide",i)[0];h.parameterArea=d.query(".parameters",i)[0];h.dismissArea=d.query(".parametersDismiss",i)[0]}return h},open:function(g,h){if(typeof g==="string")g=d.byId(g);this.close();this._activeElements=null;if((this._activeElements=this._findParameterElements(g))&&this._activeElements.parameterArea&&this._activeElements.slideContainer&&this._activeElements.parameterContainer){var i=h(this._activeElements.parameterArea);
g=d.query("#closebox",this._activeElements.parameterArea);if(g.length===0){g=d.create("span",{id:"closebox",role:"button",tabindex:"0"},this._activeElements.dismissArea||this._activeElements.parameterArea,"last");d.addClass(g,"imageSprite");d.addClass(g,"core-sprite-close");d.addClass(g,"dismiss");g.title="Close";d.connect(g,"onclick",d.hitch(this,function(){this.close(this._activeElements)}));d.connect(g,"onkeypress",d.hitch(this,function(j){j.keyCode===d.keys.ENTER&&this.close(this._activeElements)}))}d.addClass(this._activeElements.slideContainer,
"slideContainerActive");d.addClass(this._activeElements.parameterContainer,"slideActive");e.forceLayout(this._activeElements.parameterContainer);if(i){this._oldFocusNode=window.document.activeElement;window.setTimeout(function(){i.focus();i.select()},0)}this._activeElements.commandNode&&d.addClass(this._activeElements.commandNode,"activeCommand");return true}return false},_collectAndCall:function(g,h){d.query("input",h).forEach(function(i){i.type!=="button"&&g.parameters.setValue(i.parameterName,
i.value)});g.command.callback&&g.command.callback.call(g.handler,g)},collectParameters:function(g){if(g.parameters){g.domNode&&d.addClass(g.domNode,"commandMarker");return this.open(g.domNode||g.domParent,this.getFillFunction(g))}return false},getFillFunction:function(g,h){return d.hitch(this,function(i){var j=null,k=d.hitch(this,function(){h?h():this.close(g.domNode)}),l=d.hitch(this,function(p){p.keyCode===d.keys.ENTER&&this._collectAndCall(g,i);if(p.keyCode===d.keys.ESCAPE||p.keyCode===d.keys.ENTER){k();
d.stopEvent(p)}});g.parameters.forEach(function(p){p.label&&d.place(document.createTextNode(p.label),i,"last");var q=d.create("input",{type:p.type},i,"last");d.addClass(q,"parameterInput");d.addClass(q,"parameterInput"+p.type);q.setAttribute("speech","speech");q.setAttribute("x-webkit-speech","x-webkit-speech");q.parameterName=p.name;j||(j=q);if(p.value)q.value=p.value;d.connect(q,"onkeypress",l)});var r=function(p){p._collectAndCall(g,i);k()};if(g.parameters.options){g.parameters.optionsRequested=
false;var o=d.create("span",{role:"button",tabindex:"0"},i,"last");d.place(window.document.createTextNode("More"),o,"last");d.addClass(o,"dismiss");d.connect(o,"onclick",d.hitch(this,function(){g.parameters.optionsRequested=true;r(this)}));d.connect(o,"onkeypress",d.hitch(this,function(p){if(p.keyCode===d.keys.ENTER){g.parameters.optionsRequested=true;r(this)}}))}spacer=d.create("span",null,i,"last");d.addClass(spacer,"dismiss");o=d.create("span",{role:"button",tabindex:"0"},i,"last");d.place(window.document.createTextNode("Submit"),
o,"last");d.addClass(o,"dismiss");d.connect(o,"onclick",d.hitch(this,function(){r(this)}));d.connect(o,"onkeypress",d.hitch(this,function(p){p.keyCode===d.keys.ENTER&&r(this)}));spacer=d.create("span",null,i,"last");d.addClass(spacer,"dismiss");o=d.create("span",{id:"closebox",role:"button",tabindex:"0"},i,"last");d.addClass(o,"imageSprite");d.addClass(o,"core-sprite-close");d.addClass(o,"dismiss");o.title="Close";d.connect(o,"onclick",d.hitch(this,function(){k()}));d.connect(o,"onkeypress",d.hitch(this,
function(p){p.keyCode===d.keys.ENTER&&k()}));return j})}};f.prototype.constructor=f;return{CommandParameterCollector:f}});define("orion/editor/regex",[],function(){function b(a){return a.replace(/([\\$\^*\/+?\.\(\)|{}\[\]])/g,"\\$&")}function d(a){if(a=/^\s*\/(.+)\/([gim]{0,3})\s*$/.exec(a))return{pattern:a[1],flags:a[2]};return null}return{escape:b,parse:d}});
define("orion/contentTypes",[],function(){function b(a){function c(j,k,l,r){l=k.filename.indexOf(l)>=0;var o=k.extension.indexOf(r)>=0;if(l||o)if(!j||l&&j.extension.indexOf(r)>=0)return k;return j}for(var e=a&&a.split(".").pop(),f=this.getContentTypes(),g=null,h=0;h<f.length;h++){var i=f[h];if(c(g,i,a,e)===i)g=i}return g}function d(a){function c(e){function f(l){if(l===null||typeof l==="undefined")return[];return l instanceof Array?l:[l]}e=e.getServiceReferences("orion.file.contenttype");for(var g=
{},h=0;h<e.length;h++)for(var i=f(e[h].getProperty("contentTypes")),j=0;j<i.length;j++){var k=i[j];g[k.id]||(g[k.id]={id:k.id,name:k.name,image:k.image,"extends":k["extends"],extension:f(k.extension),filename:f(k.filename)})}return g}this.serviceRegistry=a;this.map=c(a);a.registerService("orion.file.contenttypes",this)}d.prototype={getContentTypes:function(){var a=this.getContentTypesMap(),c=[];for(var e in a)a.hasOwnProperty(e)&&c.push(a[e]);return c},getContentTypesMap:function(){return this.map},
getFileContentType:function(a){return b.call(this,a.Name)},getFilenameContentType:function(a){return b.call(this,a)},getContentType:function(a){return this.map[a]||null},isExtensionOf:function(a,c){a=typeof a==="string"?this.getContentType(a):a;c=typeof c==="string"?this.getContentType(c):c;if(!a||!c)return false;if(a.id===c.id)return true;else{a=a;for(var e={};a&&(a=this.getContentType(a["extends"]));){if(a.id===c.id)return true;if(e[a.id])throw new Error("Cycle: "+a.id);e[a.id]=true}}return false},
isSomeExtensionOf:function(a,c){for(var e=0;e<c.length;e++)if(this.isExtensionOf(a,c[e]))return true;return false}};return{ContentTypeService:d}});
define("orion/URITemplate",["require","exports","module"],function(){function b(k){this._text=k}function d(k,l){if(l==="U")return encodeURIComponent(k).replace(/[!'()*]/g,function(r){return"%"+r.charCodeAt(0).toString(16).toUpperCase()});if(l==="U+R")return encodeURI(k).replace(/%5B/g,"[").replace(/%5D/g,"]");if(l==="U+R-,")return encodeURI(k).replace(/%5B/g,"[").replace(/%5D/g,"]").replace(/,/g,"%2C");throw new Error("Unknown allowed character set: "+l);}function a(k,l,r){for(var o=[],p=0;p<k.length;p++)typeof k[p]!==
"undefined"&&o.push(d(k[p],l));return o.join(r)}function c(k,l,r,o){for(var p=Object.keys(k),q=[],n=0;n<p.length;n++)typeof k[p[n]]!=="undefined"&&q.push(d(p[n],l)+r+d(k[p[n]],l));return q.join(o)}function e(k){for(var l=[],r=k.split(","),o=0;o<r.length;o++){var p=r[o].match(j);if(p===null)throw new Error("Bad VarSpec: "+k);l.push({name:p[1],explode:!!p[2],prefix:p[3]?parseInt(p[3],10):-1})}return l}function f(k){if(k.length===0)throw new Error("Invalid Expression: 0 length expression");if(this._operator=
i[k[0]])k=k.substring(1);else this._operator=i.NUL;this._varSpecList=e(k)}function g(k){for(var l=[],r=0,o=k.indexOf("{",r);o!==-1;){l.push(new b(k.substring(r,o)));r=k.indexOf("}",o+1);if(r===-1)throw new Error("Invalid template: "+k);l.push(new f(k.substring(o+1,r)));r=r+1;o=k.indexOf("{",r)}l.push(new b(k.substring(r)));return l}function h(k){this._templateComponents=g(k)}var i={NUL:{first:"",sep:",",named:false,ifemp:"",allow:"U"},"+":{first:"",sep:",",named:false,ifemp:"",allow:"U+R"},".":{first:".",
sep:",",named:false,ifemp:"",allow:"U"},"/":{first:"/",sep:"/",named:false,ifemp:"",allow:"U"},";":{first:";",sep:";",named:true,ifemp:"",allow:"U"},"?":{first:"?",sep:"&",named:true,ifemp:"=",allow:"U"},"&":{first:"&",sep:"&",named:true,ifemp:"=",allow:"U"},"#":{first:"#",sep:",",named:false,ifemp:"",allow:"U+R"},",":{first:"",sep:",",named:false,ifemp:"",allow:"U+R-,"}},j=/^((?:(?:[a-zA-Z0-9_])|(?:%[0-9A-F][0-9A-F]))(?:(?:[a-zA-Z0-9_.])|(?:%[0-9A-F][0-9A-F]))*)(?:(\*)|:([0-9]+))?$/;b.prototype=
{expand:function(){return encodeURI(this._text)}};f.prototype={expand:function(k){for(var l=[],r=0;r<this._varSpecList.length;r++){var o=this._varSpecList[r],p=o.name,q=k[p],n=typeof q;if(n!=="undefined"&&q!==null){var m=l.length===0?this._operator.first:this._operator.sep;if(n==="string"){if(this._operator.named){m+=d(p,"U+R");m+=q.length===0?this._operator.ifemp:"="}if(o.prefix!==-1&&o.prefix<q.length)q=q.substring(0,o.prefix);m+=d(q,this._operator.allow)}else if(Array.isArray(q))if(o.explode)m+=
a(q,this._operator.allow,this._operator.sep);else{if(this._operator.named){m+=d(p,"U+R");m+=q.length===0?this._operator.ifemp:"="}m+=a(q,this._operator.allow,",")}else if(n==="object")if(o.explode)m+=c(q,this._operator.allow,"=",this._operator.sep);else{if(this._operator.named){m+=d(p,"U+R");m+=Object.keys(q).length===0?this._operator.ifemp:"="}m+=c(q,this._operator.allow,",",",")}else throw new Error("bad param type: "+p+" : "+n);l.push(m)}}return l.join("")}};h.prototype={expand:function(k){for(var l=
[],r=0;r<this._templateComponents.length;r++)l.push(this._templateComponents[r].expand(k));return l.join("")}};return h});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 d;do d=b._scopeName+"Unique"+ ++b.dnd._uniqueId;while(b.byId(d));return d};b.dnd._empty={};b.dnd.isFormElement=function(d){d=d.target;if(d.nodeType==3)d=d.parentNode;return" button textarea input select option ".indexOf(" "+d.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(d){var a=b.window.getBox(),c=0,e=0;if(d.clientX<b.dnd.H_TRIGGER_AUTOSCROLL)c=-b.dnd.H_AUTOSCROLL_VALUE;else if(d.clientX>a.w-b.dnd.H_TRIGGER_AUTOSCROLL)c=b.dnd.H_AUTOSCROLL_VALUE;if(d.clientY<b.dnd.V_TRIGGER_AUTOSCROLL)e=-b.dnd.V_AUTOSCROLL_VALUE;
else if(d.clientY>a.h-b.dnd.V_TRIGGER_AUTOSCROLL)e=b.dnd.V_AUTOSCROLL_VALUE;window.scrollBy(c,e)};b.dnd._validNodes={div:1,p:1,td:1};b.dnd._validOverflow={auto:1,scroll:1};b.dnd.autoScrollNodes=function(d){for(var a=d.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 e=b._getContentBox(a,c);c=b.position(a,true);var f=Math.min(b.dnd.H_TRIGGER_AUTOSCROLL,e.w/2),g=Math.min(b.dnd.V_TRIGGER_AUTOSCROLL,
e.h/2),h=d.pageX-c.x,i=d.pageY-c.y,j=c=0;if(b.isWebKit||b.isOpera){h+=b.body().scrollLeft;i+=b.body().scrollTop}if(h>0&&h<e.w)if(h<f)c=-f;else if(h>e.w-f)c=f;if(i>0&&i<e.h)if(i<g)j=-g;else if(i>e.h-g)j=g;e=a.scrollLeft;f=a.scrollTop;a.scrollLeft+=c;a.scrollTop+=j;if(e!=a.scrollLeft||f!=a.scrollTop)return}}try{a=a.parentNode}catch(k){a=null}}b.dnd.autoScroll(d)};return b.dnd});
define("dojo/dnd/Mover",["dojo","dojo/dnd/common","dojo/dnd/autoscroll"],function(b){b.declare("dojo.dnd.Mover",null,{constructor:function(d,a,c){this.node=b.byId(d);var e=a.touches?a.touches[0]:a;this.marginBox={l:e.pageX,t:e.pageY};this.mouseButton=a.button;a=this.host=c;d=d.ownerDocument;this.events=[b.connect(d,"onmousemove",this,"onFirstMove"),b.connect(d,"ontouchmove",this,"onFirstMove"),b.connect(d,"onmousemove",this,"onMouseMove"),b.connect(d,"ontouchmove",this,"onMouseMove"),b.connect(d,
"onmouseup",this,"onMouseUp"),b.connect(d,"ontouchend",this,"onMouseUp"),b.connect(d,"ondragstart",b.stopEvent),b.connect(d.body,"onselectstart",b.stopEvent)];a&&a.onMoveStart&&a.onMoveStart(this)},onMouseMove:function(d){b.dnd.autoScroll(d);var a=this.marginBox,c=d.touches?d.touches[0]:d;this.host.onMove(this,{l:a.l+c.pageX,t:a.t+c.pageY},d);b.stopEvent(d)},onMouseUp:function(d){if(b.isWebKit&&b.isMac&&this.mouseButton==2?d.button==0:this.mouseButton==d.button)this.destroy();b.stopEvent(d)},onFirstMove:function(d){var a=
this.node.style,c,e=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),g=b._getMarginBox(c,f);f=b._getContentBox(c,f);c=a.l-(f.l-g.l);a=a.t-(f.t-g.t);break}this.marginBox.l=c-this.marginBox.l;this.marginBox.t=a-this.marginBox.t;e&&e.onFirstMove&&e.onFirstMove(this,d);b.disconnect(this.events.shift());b.disconnect(this.events.shift())},
destroy:function(){b.forEach(this.events,b.disconnect);var d=this.host;d&&d.onMoveStop&&d.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(d,a){this.node=b.byId(d);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(d,a){return new b.dnd.Moveable(a,d)},destroy:function(){b.forEach(this.events,b.disconnect);this.events=this.node=this.handle=null},onMouseDown:function(d){if(!(this.skip&&b.dnd.isFormElement(d))){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=d.touches?d.touches[0]:d;this._lastX=a.pageX;this._lastY=a.pageY}else this.onDragDetected(d);b.stopEvent(d)}},onMouseMove:function(d){var a=d.touches?d.touches[0]:d;if(Math.abs(a.pageX-this._lastX)>this.delay||Math.abs(a.pageY-this._lastY)>this.delay){this.onMouseUp(d);this.onDragDetected(d)}b.stopEvent(d)},onMouseUp:function(d){for(var a=0;a<2;++a)b.disconnect(this.events.pop());b.stopEvent(d)},onSelectStart:function(d){if(!this.skip||
!b.dnd.isFormElement(d))b.stopEvent(d)},onDragDetected:function(d){new this.mover(this.node,d,this)},onMoveStart:function(d){b.publish("/dnd/move/start",[d]);b.addClass(b.body(),"dojoMove");b.addClass(this.node,"dojoMoveItem")},onMoveStop:function(d){b.publish("/dnd/move/stop",[d]);b.removeClass(b.body(),"dojoMove");b.removeClass(this.node,"dojoMoveItem")},onFirstMove:function(){},onMove:function(d,a){this.onMoving(d,a);var c=d.node.style;c.left=a.l+"px";c.top=a.t+"px";this.onMoved(d,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(d,a){return new b.dnd.move.constrainedMoveable(a,d)},constructor:function(d,a){a||(a={});this.constraints=a.constraints;this.within=a.within},onFirstMove:function(d){var a=this.constraintBox=this.constraints.call(this,d);a.r=a.l+a.w;a.b=a.t+a.h;if(this.within){d=b._getMarginSize(d.node);a.r-=d.w;
a.b-=d.h}},onMove:function(d,a){var c=this.constraintBox,e=d.node.style;this.onMoving(d,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;e.left=a.l+"px";e.top=a.t+"px";this.onMoved(d,a)}});b.declare("dojo.dnd.move.boxConstrainedMoveable",b.dnd.move.constrainedMoveable,{box:{},markupFactory:function(d,a){return new b.dnd.move.boxConstrainedMoveable(a,d)},constructor:function(d,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(d,a){return new b.dnd.move.parentConstrainedMoveable(a,d)},constructor:function(d,a){var c=a&&a.area;this.constraints=function(){var e=this.node.parentNode,f=b.getComputedStyle(e),g=b._getMarginBox(e,f);if(c=="margin")return g;var h=b._getMarginExtents(e,f);g.l+=h.l;g.t+=h.t;g.w-=h.w;g.h-=h.h;if(c=="border")return g;h=b._getBorderExtents(e,f);g.l+=h.l;g.t+=h.t;g.w-=h.w;g.h-=h.h;if(c=="padding")return g;h=b._getPadExtents(e,f);g.l+=
h.l;g.t+=h.t;g.w-=h.w;g.h-=h.h;return g}}});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 d=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);d.call(this,a,a._leftTop)}b.dnd.Moveable.prototype.onMoveStop.apply(this,arguments)},
onMove:function(a,c){a._leftTop=c;if(!a._timer){var e=this;a._timer=setTimeout(function(){a._timer=null;d.call(e,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(d){var a=this;b.mixin(a,d);a.node=d.node;a._showArgs=b.mixin({},d);a._showArgs.node=a.node;a._showArgs.duration=a.showDuration;a.showAnim=a.showFunc(a._showArgs);a._hideArgs=b.mixin({},d);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(d){return this.showAnim.play(d||0)},hide:function(d){return this.hideAnim.play(d||0)}});return b.fx.Toggler});
define("dojo/fx",["dojo","dojo/fx/Toggler"],function(b){(function(){var d={_fire:function(e,f){if(this[e])this[e].apply(this,f||[]);return this}},a=function(e){this._index=-1;this._animations=e||[];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(e,f){if(!this._current)this._current=this._animations[this._index=0];if(!f&&this._current.status()=="playing")return this;var g=b.connect(this._current,"beforeBegin",this,
function(){this._fire("beforeBegin")}),h=b.connect(this._current,"onBegin",this,function(){this._fire("onBegin",arguments)}),i=b.connect(this._current,"onPlay",this,function(){this._fire("onPlay",arguments);b.disconnect(g);b.disconnect(h);b.disconnect(i)});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 e=b.connect(this._current,"onPause",this,function(){this._fire("onPause",arguments);b.disconnect(e)});this._current.pause()}return this},gotoPercent:function(e,f){this.pause();var g=this.duration*e;this._current=null;b.some(this._animations,function(h){if(h.duration<=g){this._current=h;return true}g-=h.duration;return false});this._current&&this._current.gotoPercent(g/this._current.duration,f);return this},stop:function(e){if(this._current){if(e){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,d);b.fx.chain=function(e){return new a(e)};
var c=function(e){this._animations=e||[];this._connects=[];this.duration=this._finished=0;b.forEach(e,function(g){var h=g.duration;if(g.delay)h+=g.delay;if(this.duration<h)this.duration=h;this._connects.push(b.connect(g,"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(g){f._connects.push(b.connect(f._pseudoAnimation,g,function(){f._fire(g,
arguments)}))})};b.extend(c,{_doAction:function(e,f){b.forEach(this._animations,function(g){g[e].apply(g,f)});return this},_onEnd:function(){++this._finished>this._animations.length&&this._fire("onEnd")},_call:function(e,f){var g=this._pseudoAnimation;g[e].apply(g,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(e,f){var g=
this.duration*e;b.forEach(this._animations,function(h){h.gotoPercent(h.duration<g?1:g/h.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,d);b.fx.combine=function(e){return new c(e)};b.fx.wipeIn=function(e){var f=e.node=b.byId(e.node),g=f.style,h;e=b.animateProperty(b.mixin({properties:{height:{start:function(){h=
g.overflow;g.overflow="hidden";if(g.visibility=="hidden"||g.display=="none"){g.height="1px";g.display="";g.visibility="";return 1}else{var i=b.style(f,"height");return Math.max(i,1)}},end:function(){return f.scrollHeight}}}},e));b.connect(e,"onEnd",function(){g.height="auto";g.overflow=h});return e};b.fx.wipeOut=function(e){var f=(e.node=b.byId(e.node)).style,g;e=b.animateProperty(b.mixin({properties:{height:{end:1}}},e));b.connect(e,"beforeBegin",function(){g=f.overflow;f.overflow="hidden";f.display=
""});b.connect(e,"onEnd",function(){f.overflow=g;f.height="auto";f.display="none"});return e};b.fx.slideTo=function(e){var f=null,g=null,h=function(i){return function(){var j=b.getComputedStyle(i),k=j.position;f=k=="absolute"?i.offsetTop:parseInt(j.top)||0;g=k=="absolute"?i.offsetLeft:parseInt(j.left)||0;if(k!="absolute"&&k!="relative"){j=b.position(i,true);f=j.y;g=j.x;i.style.position="absolute";i.style.top=f+"px";i.style.left=g+"px"}}}(e.node=b.byId(e.node));h();e=b.animateProperty(b.mixin({properties:{top:e.top||
0,left:e.left||0}},e));b.connect(e,"beforeBegin",e,h);return e}})();return b.fx});
define("dijit/DialogUnderlay",["dojo","dijit","dojo/window","dijit/_Widget","dijit/_Templated"],function(b,d){b.declare("dijit.DialogUnderlay",[d._Widget,d._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 e=b.window.getBox();c.top=e.t+"px";c.left=e.l+"px";a.width=e.w+"px";a.height=e.h+"px";c.display="block"},show:function(){this.domNode.style.display="block";this.layout();this.bgIframe=new d.BackgroundIframe(this.domNode)},hide:function(){this.bgIframe.destroy();delete this.bgIframe;this.domNode.style.display="none"}});return d.DialogUnderlay});
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("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,d){b.declare("dijit._DialogBase",[d._Templated,d.form._FormMixin,d._DialogMixin,d._CssStateMixin],{templateString:b.cache("dijit","templates/Dialog.html"),
baseClass:"dijitDialog",cssStateNodes:{closeButtonNode:"dijitDialogCloseIcon"},attributeMap:b.delegate(d._Widget.prototype.attributeMap,{title:[{node:"titleNode",type:"innerHTML"},{node:"titleBar",type:"attribute"}],"aria-describedby":""}),open:false,duration:d.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&&d._DialogLevelManager.isTop(this)){this._getFocusItems(this.domNode);d.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 e=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:e,h:a})}else b.style(this.containerNode,{width:e+"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(),e=this._relativePosition,f=e?null:b._getBorderBox(a),g=Math.floor(c.l+(e?e.x:(c.w-f.w)/2));c=Math.floor(c.t+(e?e.y:(c.h-f.h)/2));b.style(a,{left:g+"px",top:c+"px"})}},_onKey:function(a){if(a.charOrCode){var c=b.keys,e=a.target;a.charOrCode===c.TAB&&this._getFocusItems(this.domNode);var f=
this._firstFocusItem==this._lastFocusItem;if(e==this._firstFocusItem&&a.shiftKey&&a.charOrCode===c.TAB){f||d.focus(this._lastFocusItem);b.stopEvent(a)}else if(e==this._lastFocusItem&&a.charOrCode===c.TAB&&!a.shiftKey){f||d.focus(this._firstFocusItem);b.stopEvent(a)}else{for(;e;){if(e==this.domNode||b.hasClass(e,"dijitPopup"))if(a.charOrCode==c.ESCAPE)this.onCancel();else return;e=e.parentNode}if(a.charOrCode!==c.TAB)b.stopEvent(a);else if(!b.isOpera)try{this._firstFocusItem.focus()}catch(g){}}}},
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(){d._DialogLevelManager.show(this,this.underlayAttrs)}),onEnd:b.hitch(this,function(){if(this.autofocus&&d._DialogLevelManager.isTop(this)){this._getFocusItems(this.domNode);
d.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";d._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"){d._underlay&&d._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);d._DialogLevelManager.hide(this);this.inherited(arguments)}});b.declare("dijit.Dialog",[d.layout.ContentPane,d._DialogBase],{});d._DialogLevelManager={show:function(a,c){var e=d._dialogStack;e[e.length-1].focus=d.getFocus(a);var f=d._underlay;if(!f||f._destroyed)f=d._underlay=new d.DialogUnderlay(c);else f.set(a.underlayAttrs);var g=
e[e.length-1].dialog?e[e.length-1].zIndex+2:950;e.length==1&&f.show();b.style(d._underlay.domNode,"zIndex",g-1);b.style(a.domNode,"zIndex",g);e.push({dialog:a,underlayAttrs:c,zIndex:g})},hide:function(a){var c=d._dialogStack;if(c[c.length-1].dialog==a){c.pop();var e=c[c.length-1];if(c.length==1)d._underlay._destroyed||d._underlay.hide();else{b.style(d._underlay.domNode,"zIndex",e.zIndex-1);d._underlay.set(e.underlayAttrs)}if(a.refocus){c=e.focus;if(!c||e.dialog&&!b.isDescendant(c.node,e.dialog.domNode)){e.dialog._getFocusItems(e.dialog.domNode);
c=e.dialog._firstFocusItem}try{d.focus(c)}catch(f){}}}else{e=b.indexOf(b.map(c,function(g){return g.dialog}),a);e!=-1&&c.splice(e,1)}},isTop:function(a){var c=d._dialogStack;return c[c.length-1].dialog==a}};d._dialogStack=[{dialog:null,focus:null,underlayAttrs:null}];return d.Dialog});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,d){return d.form.ToggleButton});
define("dijit/form/CheckBox",["dojo","dijit","text!dijit/form/templates/CheckBox.html","dijit/form/ToggleButton"],function(b,d){b.declare("dijit.form.CheckBox",d.form.ToggleButton,{templateString:b.cache("dijit.form","templates/CheckBox.html"),baseClass:"dijitCheckBox",type:"checkbox",value:"on",readOnly:false,attributeMap:b.delegate(d.form._FormWidget.prototype.attributeMap,{readOnly:"focusNode"}),_setReadOnlyAttr:function(a){this._set("readOnly",a);b.attr(this.focusNode,"readOnly",a);d.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",d.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(e){if(e.name==c.name&&e!=c.focusNode&&e.form==c.focusNode.form)(e=d.getEnclosingWidget(e))&&e.checked&&e.set("checked",false)})}},_clicked:function(){this.checked||this.set("checked",true)}});return d.form.CheckBox});
define("dijit/form/Form",["dojo","dijit","dijit/_Widget","dijit/_Templated","dijit/form/_FormMixin","dijit/layout/_ContentPaneResizeMixin"],function(b,d){b.declare("dijit.form.Form",[d._Widget,d._Templated,d.form._FormMixin,d.layout._ContentPaneResizeMixin],{name:"",action:"",method:"",encType:"","accept-charset":"",accept:"",target:"",templateString:"<form dojoAttachPoint='containerNode' dojoAttachEvent='onreset:_onReset,onsubmit:_onSubmit' ${!nameAttrSetting}></form>",attributeMap:b.delegate(d._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=d.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 d.form.Form});
define("dojo/data/util/filter",["dojo"],function(b){b.getObject("data.util.filter",true,b);b.data.util.filter.patternToRegExp=function(d,a){for(var c="^",e=null,f=0;f<d.length;f++){e=d.charAt(f);switch(e){case "\\":c+=e;f++;c+=d.charAt(f);break;case "*":c+=".*";break;case "?":c+=".";break;case "$":case "^":case "/":case "+":case ".":case "|":case "(":case ")":case "{":case "}":case "[":case "]":c+="\\";default:c+=e}}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(d,a){var c=-1;if(d===null)d=undefined;if(a===null)a=undefined;if(d==a)c=0;else if(d>a||d==null)c=1;return c};b.data.util.sorter.createSortFunction=function(d,a){function c(l,r,o,p){return function(q,n){q=p.getValue(q,l);n=p.getValue(n,l);return r*o(q,n)}}for(var e=[],f,g=a.comparatorMap,h=b.data.util.sorter.basicComparator,i=0;i<d.length;i++){f=d[i];var j=f.attribute;
if(j){f=f.descending?-1:1;var k=h;if(g){if(typeof j!=="string"&&"toString"in j)j=j.toString();k=g[j]||h}e.push(c(j,f,k,a))}}return function(l,r){for(var o=0;o<e.length;){var p=e[o++](l,r);if(p!==0)return p}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(d){d=d||{};if(!d.store)d.store=this;var a=this,c=function(f,g){if(g.onError)g.onError.call(g.scope||b.global,f,g)},e=function(f,g){var h=g.abort||null,i=false,j=g.start?g.start:0,k=g.count&&g.count!==Infinity?j+g.count:f.length;g.abort=function(){i=true;h&&h.call(g)};var l=g.scope||b.global;if(!g.store)g.store=a;g.onBegin&&g.onBegin.call(l,
f.length,g);g.sort&&f.sort(b.data.util.sorter.createSortFunction(g.sort,a));if(g.onItem)for(var r=j;r<f.length&&r<k;++r){var o=f[r];i||g.onItem.call(l,o,g)}if(g.onComplete&&!i){r=null;g.onItem||(r=f.slice(j,k));g.onComplete.call(l,r,g)}};this._fetchItems(d,e,c);return d};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(d){this._arrayOfAllItems=[];this._arrayOfTopLevelItems=[];this._loadFinished=false;this.url=this._ccUrl=this._jsonFileUrl=d.url;this._jsonData=d.data;this.data=null;this._datatypeMap=d.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(d.urlPreventCache!==undefined)this.urlPreventCache=d.urlPreventCache?true:false;if(d.hierarchical!==undefined)this.hierarchical=d.hierarchical?true:false;if(d.clearOnClose)this.clearOnClose=true;if("failOk"in d)this.failOk=d.failOk?true:
false},url:"",_ccUrl:"",data:null,typeMap:null,clearOnClose:false,urlPreventCache:false,failOk:false,hierarchical:true,_assertIsItem:function(d){if(!this.isItem(d))throw new Error("dojo.data.ItemFileReadStore: Invalid item argument.");},_assertIsAttribute:function(d){if(typeof d!=="string")throw new Error("dojo.data.ItemFileReadStore: Invalid attribute argument.");},getValue:function(d,a,c){d=this.getValues(d,a);return d.length>0?d[0]:c},getValues:function(d,a){this._assertIsItem(d);this._assertIsAttribute(a);
return(d[a]||[]).slice(0)},getAttributes:function(d){this._assertIsItem(d);var a=[];for(var c in d)c!==this._storeRefPropName&&c!==this._itemNumPropName&&c!==this._rootItemPropName&&c!==this._reverseRefMap&&a.push(c);return a},hasAttribute:function(d,a){this._assertIsItem(d);this._assertIsAttribute(a);return a in d},containsValue:function(d,a,c){var e=undefined;if(typeof c==="string")e=b.data.util.filter.patternToRegExp(c,false);return this._containsValue(d,a,c,e)},_containsValue:function(d,a,c,e){return b.some(this.getValues(d,
a),function(f){if(f!==null&&!b.isObject(f)&&e){if(f.toString().match(e))return true}else if(c===f)return true})},isItem:function(d){if(d&&d[this._storeRefPropName]===this)if(this._arrayOfAllItems[d[this._itemNumPropName]]===d)return true;return false},isItemLoaded:function(d){return this.isItem(d)},loadItem:function(d){this._assertIsItem(d.item)},getFeatures:function(){return this._features},getLabel:function(d){if(this._labelAttr&&this.isItem(d))return this.getValue(d,this._labelAttr)},getLabelAttributes:function(){if(this._labelAttr)return[this._labelAttr];
return null},_fetchItems:function(d,a,c){var e=this,f=function(j,k){var l=[],r,o;if(j.query){var p;r=j.queryOptions?j.queryOptions.ignoreCase:false;var q={};for(o in j.query){p=j.query[o];if(typeof p==="string")q[o]=b.data.util.filter.patternToRegExp(p,r);else if(p instanceof RegExp)q[o]=p}for(r=0;r<k.length;++r){var n=true,m=k[r];if(m===null)n=false;else for(o in j.query){p=j.query[o];e._containsValue(m,o,p,q[o])||(n=false)}n&&l.push(m)}}else for(r=0;r<k.length;++r){o=k[r];o!==null&&l.push(o)}a(l,
j)};if(this._loadFinished)f(d,this._getItemsArray(d.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:d,
filter:f});else{this._loadInProgress=true;var g=b.xhrGet({url:e._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk});g.addCallback(function(j){try{e._getItemsFromLoadedData(j);e._loadFinished=true;e._loadInProgress=false;f(d,e._getItemsArray(d.queryOptions));e._handleQueuedFetches()}catch(k){e._loadFinished=true;e._loadInProgress=false;c(k,d)}});g.addErrback(function(j){e._loadInProgress=false;c(j,d)});var h=null;if(d.abort)h=d.abort;d.abort=function(){g&&
g.fired===-1&&g.cancel();h&&h.call(d)}}else if(this._jsonData)try{this._loadFinished=true;this._getItemsFromLoadedData(this._jsonData);this._jsonData=null;f(d,this._getItemsArray(d.queryOptions))}catch(i){c(i,d)}else c(new Error("dojo.data.ItemFileReadStore: No JSON source data was provided as either URL or a nested Javascript object."),d)}},_handleQueuedFetches:function(){if(this._queuedFetches.length>0){for(var d=0;d<this._queuedFetches.length;d++){var a=this._queuedFetches[d],c=a.args;(a=a.filter)?
a(c,this._getItemsArray(c.queryOptions)):this.fetchItemByIdentity(c)}this._queuedFetches=[]}},_getItemsArray:function(d){if(d&&d.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(d){function a(q){return q!==null&&typeof q==="object"&&(!b.isArray(q)||e)&&!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 n in q){var m=q[n];
if(m)if(b.isArray(m))for(var s=0;s<m.length;++s){var u=m[s];a(u)&&c(u)}else a(m)&&c(m)}}var e=false,f=this;this._labelAttr=d.label;var g,h;this._arrayOfAllItems=[];this._arrayOfTopLevelItems=d.items;for(g=0;g<this._arrayOfTopLevelItems.length;++g){h=this._arrayOfTopLevelItems[g];if(b.isArray(h))e=true;c(h);h[this._rootItemPropName]=true}var i={},j;for(g=0;g<this._arrayOfAllItems.length;++g){h=this._arrayOfAllItems[g];for(j in h){if(j!==this._rootItemPropName){var k=h[j];if(k!==null)b.isArray(k)||
(h[j]=[k]);else h[j]=[null]}i[j]=j}}for(;i[this._storeRefPropName];)this._storeRefPropName+="_";for(;i[this._itemNumPropName];)this._itemNumPropName+="_";for(;i[this._reverseRefMap];)this._reverseRefMap+="_";if(i=d.identifier){this._itemsByIdentity={};this._features["dojo.data.api.Identity"]=i;for(g=0;g<this._arrayOfAllItems.length;++g){h=this._arrayOfAllItems[g];d=h[i];d=d[0];if(Object.hasOwnProperty.call(this._itemsByIdentity,d))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: ["+i+"].  Value collided: ["+d+"]");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: ["+i+"].  Value collided: ["+d+"]");}else this._itemsByIdentity[d]=h}}else this._features["dojo.data.api.Identity"]=Number;for(g=0;g<this._arrayOfAllItems.length;++g){h=this._arrayOfAllItems[g];h[this._storeRefPropName]=
this;h[this._itemNumPropName]=g}for(g=0;g<this._arrayOfAllItems.length;++g){h=this._arrayOfAllItems[g];for(j in h){d=h[j];for(i=0;i<d.length;++i){k=d[i];if(k!==null&&typeof k=="object"){if("_type"in k&&"_value"in k){var l=k._type,r=this._datatypeMap[l];if(r)if(b.isFunction(r))d[i]=new r(k._value);else if(b.isFunction(r.deserialize))d[i]=r.deserialize(k._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 '"+l+"'");}if(k._reference){k=k._reference;if(b.isObject(k))for(l=0;l<this._arrayOfAllItems.length;++l){r=this._arrayOfAllItems[l];var o=true;for(var p in k)if(r[p]!=k[p])o=false;if(o)d[i]=r}else d[i]=this._getItemByIdentity(k);if(this.referenceIntegrity){k=d[i];this.isItem(k)&&this._addReferenceToMap(k,h,j)}}else this.isItem(k)&&this.referenceIntegrity&&this._addReferenceToMap(k,
h,j)}}}}},_addReferenceToMap:function(){},getIdentity:function(d){var a=this._features["dojo.data.api.Identity"];if(a===Number)return d[this._itemNumPropName];else if(d=d[a])return d[0];return null},fetchItemByIdentity:function(d){var a,c;if(this._loadFinished){a=this._getItemByIdentity(d.identity);if(d.onItem){c=d.scope?d.scope:b.global;d.onItem.call(c,a)}}else{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==null){this._jsonData=this.data;this.data=null}if(this._jsonFileUrl)if(this._loadInProgress)this._queuedFetches.push({args:d});else{this._loadInProgress=true;c=b.xhrGet({url:e._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk});c.addCallback(function(f){var g=d.scope?d.scope:b.global;try{e._getItemsFromLoadedData(f);
e._loadFinished=true;e._loadInProgress=false;a=e._getItemByIdentity(d.identity);d.onItem&&d.onItem.call(g,a);e._handleQueuedFetches()}catch(h){e._loadInProgress=false;d.onError&&d.onError.call(g,h)}});c.addErrback(function(f){e._loadInProgress=false;if(d.onError)d.onError.call(d.scope?d.scope:b.global,f)})}else if(this._jsonData){e._getItemsFromLoadedData(e._jsonData);e._jsonData=null;e._loadFinished=true;a=e._getItemByIdentity(d.identity);if(d.onItem){c=d.scope?d.scope:b.global;d.onItem.call(c,a)}}}},
_getItemByIdentity:function(d){var a=null;if(this._itemsByIdentity&&Object.hasOwnProperty.call(this._itemsByIdentity,d))a=this._itemsByIdentity[d];else if(Object.hasOwnProperty.call(this._arrayOfAllItems,d))a=this._arrayOfAllItems[d];if(a===undefined)a=null;return a},getIdentityAttributes:function(){var d=this._features["dojo.data.api.Identity"];return d===Number?null:[d]},_forceLoad:function(){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=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(d._loadInProgress!==true&&!d._loadFinished){d._getItemsFromLoadedData(c);d._loadFinished=true}else if(d._loadInProgress)throw new Error("dojo.data.ItemFileReadStore:  Unable to perform a synchronous load, an async load is in progress.");
}catch(e){console.log(e);throw e;}});a.addErrback(function(c){throw c;})}else if(this._jsonData){d._getItemsFromLoadedData(d._jsonData);d._jsonData=null;d._loadFinished=true}}});b.extend(b.data.ItemFileReadStore,b.data.util.simpleFetch);return b.data.ItemFileReadStore});
define("orion/widgets/_OrionDialogMixin",["dojo","dijit"],function(b,d){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(d._curFocus,
this.domNode))d._curFocus=null;if(b.isDescendant(d._prevFocus,this.domNode))d._prevFocus=null;this.destroyRecursive()}),this.duration)}})});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,d){b.declare("orion.widgets.NewItemDialog",[d.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!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("dojo/DeferredList",["dojo"],function(b){b.DeferredList=function(d,a,c,e){var f=[];b.Deferred.call(this);var g=this;d.length===0&&!a&&this.resolve([0,[]]);var h=0;b.forEach(d,function(i,j){function k(l,r){f[j]=[l,r];h++;h===d.length&&g.resolve(f)}i.then(function(l){a?g.resolve([j,l]):k(true,l)},function(l){c?g.reject(l):k(false,l);if(e)return null;throw l;})})};b.DeferredList.prototype=new b.Deferred;b.DeferredList.prototype.gatherResults=function(d){d=new b.DeferredList(d,false,true,false);
d.addCallback(function(a){var c=[];b.forEach(a,function(e){c.push(e[1])});return c});return d};return b.DeferredList});
define("dojo/regexp",["dojo"],function(b){b.getObject("regexp",true,b);b.regexp.escapeString=function(d,a){return d.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(c){if(a&&a.indexOf(c)!=-1)return c;return"\\"+c})};b.regexp.buildGroupRE=function(d,a,c){if(!(d instanceof Array))return a(d);for(var e=[],f=0;f<d.length;f++)e.push(a(d[f]));return b.regexp.group(e.join("|"),c)};b.regexp.group=function(d,a){return"("+(a?"?:":"")+d+")"};return b.regexp});
define("dojo/cookie",["dojo","dojo/regexp"],function(b){b.cookie=function(d,a,c){var e=document.cookie;if(arguments.length==1){var f=e.match(new RegExp("(?:^|; )"+b.regexp.escapeString(d)+"=([^;]*)"));return f?decodeURIComponent(f[1]):undefined}else{c=c||{};e=c.expires;if(typeof e=="number"){var g=new Date;g.setTime(g.getTime()+e*24*60*60*1E3);e=c.expires=g}if(e&&e.toUTCString)c.expires=e.toUTCString();a=encodeURIComponent(a);e=d+"="+a;for(f in c){e+="; "+f;g=c[f];if(g!==true)e+="="+g}document.cookie=
e}};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/tree/TreeStoreModel",["dojo","dijit"],function(b,d){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(e){if(e.length!=1)throw new Error(this.declaredClass+": query "+b.toJson(this.query)+" returned "+e.length+" items, but must return exactly one item");this.root=e[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,e){var f=this.store;if(f.isItemLoaded(a)){for(var g=[],h=0;h<this.childrenAttrs.length;h++){var i=f.getValues(a,this.childrenAttrs[h]);g=g.concat(i)}var j=0;this.deferItemLoadingUntilExpand||b.forEach(g,function(l){f.isItemLoaded(l)||j++});j==0?c(g):b.forEach(g,function(l,r){f.isItemLoaded(l)||f.loadItem({item:l,onItem:function(o){g[r]=o;--j==0&&c(g)},onError:e})})}else{var k=b.hitch(this,arguments.callee);f.loadItem({item:a,
onItem:function(l){k(l,c,e)},onError:e})}},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,e){var f={parent:c,attribute:this.childrenAttrs[0]},g;if(this.newItemIdAttr&&a[this.newItemIdAttr])this.fetchItemByIdentity({identity:a[this.newItemIdAttr],scope:this,
onItem:function(h){if(h)this.pasteItem(h,null,c,true,e);else(g=this.store.newItem(a,f))&&e!=undefined&&this.pasteItem(g,c,c,false,e)}});else(g=this.store.newItem(a,f))&&e!=undefined&&this.pasteItem(g,c,c,false,e)},pasteItem:function(a,c,e,f,g){var h=this.store,i=this.childrenAttrs[0];c&&b.forEach(this.childrenAttrs,function(k){if(h.containsValue(c,k,a)){if(!f){var l=b.filter(h.getValues(c,k),function(r){return r!=a});h.setValues(c,k,l)}i=k}});if(e)if(typeof g=="number"){var j=h.getValues(e,i).slice();
j.splice(g,0,a);h.setValues(e,i,j)}else h.setValues(e,i,h.getValues(e,i).concat(a))},onChange:function(){},onChildrenChange:function(){},onDelete:function(){},onNewItem:function(a,c){c&&this.getChildren(c.item,b.hitch(this,function(e){this.onChildrenChange(c.item,e)}))},onDeleteItem:function(a){this.onDelete(a)},onSetItem:function(a,c){b.indexOf(this.childrenAttrs,c)!=-1?this.getChildren(a,b.hitch(this,function(e){this.onChildrenChange(a,e)})):this.onChange(a)}});return d.tree.TreeStoreModel});
define("dijit/tree/ForestStoreModel",["dojo","dijit","dijit/tree/TreeStoreModel"],function(b,d){b.declare("dijit.tree.ForestStoreModel",d.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,e){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:e});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,e,f,g){if(c===this.root)f||this.onLeaveRoot(a);d.tree.TreeStoreModel.prototype.pasteItem.call(this,a,c===this.root?null:c,e===this.root?null:e,f,g);e===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(e,f){return c[f]!=e}))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 d.tree.ForestStoreModel});
define("dojo/dnd/Container",["dojo","dojo/dnd/common","dojo/parser"],function(b){b.declare("dojo.dnd.Container",null,{skipForm:false,constructor:function(d,a){this.node=b.byId(d);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(d){return this.map[d]},setItem:function(d,a){this.map[d]=a},delItem:function(d){delete this.map[d]},forInItems:function(d,a){a=a||b.global;var c=this.map,e=b.dnd._empty;for(var f in c)f in e||d.call(a,c[f],f,this);return a},clearItems:function(){this.map={}},getAllNodes:function(){return b.query("> .dojoDndItem",this.parent)},
sync:function(){var d={};this.getAllNodes().forEach(function(a){if(a.id){var c=this.getItem(a.id);if(c){d[a.id]=c;return}}else a.id=b.dnd.getUniqueId();c=a.getAttribute("dndType");var e=a.getAttribute("dndData");d[a.id]={data:e||a.innerHTML,type:c?c.split(/\s*,\s*/):["text"]}},this);this.map=d;return this},insertNodes:function(d,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<d.length;++a){var e=this._normalizedCreator(d[a]);
this.setItem(e.node.id,{data:e.data,type:e.type});this.parent.insertBefore(e.node,c)}else for(a=0;a<d.length;++a){e=this._normalizedCreator(d[a]);this.setItem(e.node.id,{data:e.data,type:e.type});this.parent.appendChild(e.node)}return this},destroy:function(){b.forEach(this.events,b.disconnect);this.clearItems();this.node=this.parent=this.current=null},markupFactory:function(d,a){d._skipStartup=true;return new b.dnd.Container(a,d)},startup:function(){if(!this.parent){this.parent=this.node;if(this.parent.tagName.toLowerCase()==
"table"){var d=this.parent.getElementsByTagName("tbody");if(d&&d.length)this.parent=d[0]}}this.defaultCreator=b.dnd._defaultCreator(this.parent);this.sync()},onMouseOver:function(d){for(var a=d.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(d);if(this.current!=a){this.current&&this._removeItemClass(this.current,"Over");a&&this._addItemClass(a,"Over");this.current=a}},onMouseOut:function(d){for(d=
d.relatedTarget;d;){if(d==this.node)return;try{d=d.parentNode}catch(a){d=null}}if(this.current){this._removeItemClass(this.current,"Over");this.current=null}this._changeState("Container","");this.onOutEvent()},onSelectStart:function(d){if(!this.skipForm||!b.dnd.isFormElement(d))b.stopEvent(d)},onOverEvent:function(){},onOutEvent:function(){},_changeState:function(d,a){var c="dojoDnd"+d;d=d.toLowerCase()+"State";b.replaceClass(this.node,c+a,c+this[d]);this[d]=a},_addItemClass:function(d,a){b.addClass(d,
"dojoDndItem"+a)},_removeItemClass:function(d,a){b.removeClass(d,"dojoDndItem"+a)},_getChildByEvent:function(d){if(d=d.target)for(var a=d.parentNode;a;d=a,a=d.parentNode)if(a==this.parent&&b.hasClass(d,"dojoDndItem"))return d;return null},_normalizedCreator:function(d,a){d=(this.creator||this.defaultCreator).call(this,d,a);if(!b.isArray(d.type))d.type=["text"];if(!d.node.id)d.node.id=b.dnd.getUniqueId();b.addClass(d.node,"dojoDndItem");return d}});b.dnd._createNode=function(d){if(!d)return b.dnd._createSpan;
return function(a){return b.create(d,{innerHTML:a})}};b.dnd._createTrTd=function(d){var a=b.create("tr");b.create("td",{innerHTML:d},a);return a};b.dnd._createSpan=function(d){return b.create("span",{innerHTML:d})};b.dnd._defaultCreatorNodes={ul:"li",ol:"li",div:"div",p:"div"};b.dnd._defaultCreator=function(d){d=d.tagName.toLowerCase();var a=d=="tbody"||d=="thead"?b.dnd._createTrTd:b.dnd._createNode(b.dnd._defaultCreatorNodes[d]);return function(c,e){var f=c&&b.isObject(c),g;if(f&&c.tagName&&c.nodeType&&
c.getAttribute){g=c.getAttribute("dndData")||c.innerHTML;f=(f=c.getAttribute("dndType"))?f.split(/\s*,\s*/):["text"];c=c}else{g=f&&c.data?c.data:c;f=f&&c.type?c.type:["text"];c=(e=="avatar"?b.dnd._createSpan:a)(String(g))}if(!c.id)c.id=b.dnd.getUniqueId();return{node:c,data:g,type:f}}};return b.dnd.Container});
define("dijit/tree/_dndContainer",["dojo","dijit","dojo/dnd/common","dojo/dnd/Container"],function(b,d){b.getObject("tree",true,b);d.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 e=doc.createRange();e.setStartBefore(a);a=doc.createRange();a.setStartBefore(c);return e.compareBoundaryPoints(e.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 e="dojoDnd"+a;a=a.toLowerCase()+"State";b.replaceClass(this.node,e+c,e+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 d.tree._dndContainer});
define("dijit/tree/_dndSelector",["dojo","dijit","dojo/dnd/common","dijit/tree/_dndContainer"],function(b,d){b.declare("dijit.tree._dndSelector",d.tree._dndContainer,{constructor:function(){this.selection={};this.anchor=null;d.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 e in c)a.push(c[e]);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(e){e.setSelected(false);this.anchor==e&&delete this.anchor;delete this.selection[e.id]}));b.forEach(this._setDifference(a,c),b.hitch(this,function(e){e.setSelected(true);this.selection[e.id]=e}));this._updateSelectionProperties()},_setDifference:function(a,c){b.forEach(c,function(e){e.__exclude__=true});a=b.filter(a,function(e){return!e.__exclude__});b.forEach(c,function(e){delete e.__exclude__});
return a},_updateSelectionProperties:function(){var a=this.getSelectedTreeNodes(),c=[],e=[];b.forEach(a,function(f){e.push(f);c.push(f.getTreePath())});a=b.map(e,function(f){return f.item});this.tree._set("paths",c);this.tree._set("path",c[0]||[]);this.tree._set("selectedNodes",e);this.tree._set("selectedNode",e[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,e=b.isCopyKey(a),f=c.id;if(!this.singular&&!a.shiftKey&&this.selection[f])this._doDeselect=true;else{this._doDeselect=false;this.userSelect(c,e,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,e){if(this.singular)if(this.anchor==a&&c)this.selectNone();else{this.setSelection([a]);this.anchor=
a}else if(e&&this.anchor){e=this.anchor;if(d.tree._compareNodes(this.anchor.rowNode,a.rowNode)<0){c=e;a=a}else{c=a;a=e}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 e in this.selection)a.call(c,this.getItem(e),e,this)}});return d.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,d){b.declare("dijit._TreeNode",[d._Widget,d._Templated,d._Container,d._Contained,d._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(d._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&&d.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(e){e.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,e=c.model;if(c._v10Compat&&
a===e.root)a=null;this._applyClassAndStyle(a,"icon","Icon");this._applyClassAndStyle(a,"label","Label");this._applyClassAndStyle(a,"row","Row")},_applyClassAndStyle:function(a,c,e){var f="_"+c+"Class";c=c+"Node";var g=this[f];this[f]=this.tree["get"+e+"Class"](a,this.isExpanded);b.replaceClass(this[c],this[f]||"",g||"");b.style(this[c],this.tree["get"+e+"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"],e=["*","-","+","*"];a=a?0:this.isExpandable?this.isExpanded?1:2:3;b.replaceClass(this.expandoNode,c[a],c);this.expandoNodeText.innerHTML=e[a]},expand:function(){if(this._expandDeferred)return this._expandDeferred;this._wipeOut&&this._wipeOut.stop();this.isExpanded=true;d.setWaiState(this.labelNode,"expanded",
"true");if(this.tree.showRoot||this!==this.tree.rootNode)d.setWaiRole(this.containerNode,"group");b.addClass(this.contentNode,"dijitTreeContentExpanded");this._setExpando();this._updateItemClasses(this.item);this==this.tree.rootNode&&d.setWaiState(this.tree.domNode,"expanded","true");var a,c=b.fx.wipeIn({node:this.containerNode,duration:d.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;d.setWaiState(this.labelNode,"expanded","false");this==this.tree.rootNode&&d.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:d.defaultDuration});this._wipeOut.play()}},indent:0,setChildItems:function(a){var c=this.tree,e=c.model,f=[];b.forEach(this.getChildren(),
function(g){d._Container.prototype.removeChild.call(this,g)},this);this.state="LOADED";if(a&&a.length>0){this.isExpandable=true;b.forEach(a,function(g){var h=e.getIdentity(g),i=c._itemNodesMap[h],j;if(i)for(var k=0;k<i.length;k++)if(i[k]&&!i[k].getParent()){j=i[k];j.set("indent",this.indent+1);break}if(!j){j=this.tree._createTreeNode({item:g,tree:c,isExpandable:e.mayHaveChildren(g),label:c.getLabel(g),tooltip:c.getTooltip(g),dir:c.dir,lang:c.lang,indent:this.indent+1});if(i)i.push(j);else c._itemNodesMap[h]=
[j]}this.addChild(j);if(this.tree.autoExpand||this.tree._state(g))f.push(c._expandNode(j))},this);b.forEach(this.getChildren(),function(g){g._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){d.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",[d._Widget,d._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,e,f){this.getItemChildren(this._v10Compat&&c===this.model.root?null:c,e,f)});this.model=new d.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";d.setWaiRole(this.domNode,"presentation");d.setWaiRole(c.labelNode,"presentation");d.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 e=b.map(a,function(g){return!g||b.isString(g)?g:c.model.getIdentity(g)}),f=[];b.forEach(e,function(g){f=f.concat(c._itemNodesMap[g]||
[])});this.set("selectedNodes",f)}))},_setPathAttr:function(a){return a.length?this.set("paths",[a]):this.set("paths",[])},_setPathsAttr:function(a){function c(g,h,i){var j=g.shift(),k=b.filter(h,function(l){return l.getIdentity()==j})[0];if(k)g.length?f._expandNode(k).addCallback(function(){c(g,k.getChildren(),i)}):i.callback(k);else i.errback("Could not expand path at "+j)}function e(g){f.set("selectedNodes",b.map(b.filter(g,function(h){return h[0]}),function(h){return h[1]}))}var f=this;return(new b.DeferredList(b.map(a,
function(g){var h=new b.Deferred;g=b.map(g,function(i){return b.isString(i)?i:f.model.getIdentity(i)});g.length?f._loadDeferred.addCallback(function(){c(g,[f.rootNode],h)}):h.errback("Empty path");return h}))).addCallback(e)},_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,e=d.getEnclosingWidget(a.target);if(e){var f=a.charOrCode;if(typeof f=="string"&&f!=" "){if(!a.altKey&&!a.ctrlKey&&!a.shiftKey&&!a.metaKey){this._onLetterKeyNav({node:e,
key:f.toLowerCase()});b.stopEvent(a)}}else{if(this._curSearch){clearTimeout(this._curSearch.timer);delete this._curSearch}var g=this._keyHandlerMap;if(!g){g={};g[c.ENTER]="_onEnterKey";g[c.SPACE]=g[" "]="_onEnterKey";g[this.isLeftToRight()?c.LEFT_ARROW:c.RIGHT_ARROW]="_onLeftArrow";g[this.isLeftToRight()?c.RIGHT_ARROW:c.LEFT_ARROW]="_onRightArrow";g[c.UP_ARROW]="_onUpArrow";g[c.DOWN_ARROW]="_onDownArrow";g[c.HOME]="_onHomeKey";g[c.END]="_onEndKey";this._keyHandlerMap=g}if(this._keyHandlerMap[f]){this[this._keyHandlerMap[f]]({node:e,
item:e.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 e=this;c.timer=setTimeout(function(){delete e._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 e=this.isExpandoNode(c.target,a);if(this.openOnClick&&a.isExpandable||e)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 e=c.target;e=e==a.expandoNode||e==a.expandoNodeText;if(this.openOnDblClick&&a.isExpandable||
e)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 e=a.item,f=this;switch(a.state){case "UNCHECKED":a.markProcessing();
var g=a._expandNodeDeferred=new b.Deferred;c.getChildren(e,function(h){a.unmarkProcessing();h=a.setChildItems(h);var i=f._expandNode(a,true);h.addCallback(function(){i.addCallback(function(){g.callback()})})},function(h){console.error(f,": error loading root children: ",h)});break;default:g=a._expandNodeDeferred=a.expand();this.onOpen(a.item,a);if(e){this._state(e,true);this._saveState()}}return g},focusNode:function(a){d.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 e=this.getLabel(a),f=this.getTooltip(a);b.forEach(c,function(g){g.set({item:a,label:e,tooltip:f});g._updateItemClasses(a)})}},_onItemChildrenChange:function(a,c){(a=this._itemNodesMap[this.model.getIdentity(a)])&&b.forEach(a,function(e){e.setChildItems(c)})},
_onItemDelete:function(a){a=this.model.getIdentity(a);var c=this._itemNodesMap[a];if(c){b.forEach(c,function(e){this.dndController.removeTreeNode(e);var f=e.getParent();f&&f.removeChild(e);e.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 e=this.model.getIdentity(a);if(arguments.length===
1)return this._openedItemIds[e];if(c)this._openedItemIds[e]=true;else delete this._openedItemIds[e]},_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 d._TreeNode(a)}});return d.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,d){b.declare("orion.widgets._ExplorerTreeNode",[d._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",
[d.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,e){a.push(e.item)});return a},_getSelectedNodes:function(){var a=[];this._forEachSelectedNode(function(c,e){a.push(e)});
return a},_forEachSelectedNode:function(a){var c=this.selectedNodes;for(var e in c)c.hasOwnProperty(e)&&a(e,c[e])},_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 e=c.target,f=e===a.expandoNode||e===a.expandoNodeText;e=e===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(e)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&&!e&&this._selectNode(a)}e||b.stopEvent(c)},_onItemDelete:function(a){var c=this._itemNodesMap[this.model.getIdentity(a)];if(c){var e=this;b.forEach(c,function(f){e._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 e(h,i){var j=[];h=h;do{j.push(h);h=f._getNextNode(h)}while(h&&h!==i);if(h===
i){j.push(i);return j}return null}a=this._getVisibleAncestor(a);c=this._getVisibleAncestor(c);if(a&&c)if(a===c)this._selectNode(a);else{var f=this,g=e(a,c);if(g)this._selectNodes(g.reverse(),true);else(g=e(c,a))?this._selectNodes(g,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,g){g._destroyed||g.setSelected(false)});this.selectedNodes={};if(a)for(var c=
0;c<a.length;c++){var e=a[c];e.setSelected(true);this._addToSelection(e);this.selectedNode=e}}})});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" dojoAttachPoint="messageCell">\n\t\t\t\t\t<div style="display: table-cell;"><div style="width: 25em; padding-bottom: 5px;">${message}</div></div>\n\t\t\t\t</div>\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,d,a){b.declare("orion.widgets.DirectoryPrompterDialog",[d.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";this.message=this.options.message||""},postCreate:function(){this.inherited(arguments);this.loadFolderList("/");this.message||b.style(this.messageCell,{display:"none"})},loadFolderList:function(c){c=a.makeRelative(c);this.treeRoot.Location=c;this.options.fileClient.loadWorkspace(c).then(b.hitch(this,function(e){for(var f in e)this.treeRoot[f]=
e[f];a.processNavigatorParent(this.treeRoot,e.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(e){return e.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(e,f,g){this.registry=e;this.root=f;this.fileClient=g}c.prototype={destroy:function(){},getRoot:function(e){e(this.root)},mayHaveChildren:function(){return true},getChildren:function(e,f){if(e.children)f(e.children);else if(e.Directory!==undefined&&e.Directory===false)f([]);else e.Location?this.fileClient.fetchChildren(e.ChildrenLocation).then(b.hitch(this,
function(g){for(var h=[],i=0;i<g.length;i++)g[i].Directory&&h.push(g[i]);a.processNavigatorParent(e,h);f(h)})):f([])},getIdentity:function(e){return e.Name?e.Location:"ROOT"},getLabel:function(e){return e.Name},onChildrenChange:function(){}};return c}()});define("dojox",["dojo"],function(b){return dojox=b._dojox||{}});
define("dojox/form/uploader/Base",["dojo","dijit","dojox","dojox/form/uploader/Base","dijit/_Widget","dijit/_Templated"],function(b,d){b.declare("dojox.form.uploader.Base",[d._Widget,d._Templated],{getForm:function(){if(!this.form)for(var a=this.domNode;a&&a.tagName&&a!==document.body;){if(a.tagName.toLowerCase()=="form"){this.form=a;break}a=a.parentNode}return this.form},getUrl:function(){if(this.uploadUrl)this.url=this.uploadUrl;if(this.url)return this.url;if(this.getForm())this.url=this.form.action;
return this.url},connectForm:function(){this.url=this.getUrl();if(!this._fcon&&this.getForm()){this._fcon=true;this.connect(this.form,"onsubmit",function(a){b.stopEvent(a);this.submit(b.formToObject(this.form))})}},supports:function(a){if(!this._hascache){this._hascache={testDiv:b.create("div"),testInput:b.create("input",{type:"file"}),xhr:window.XMLHttpRequest?new XMLHttpRequest:{}};b.style(this._hascache.testDiv,"opacity",0.7)}switch(a){case "FormData":return!!window.FormData;case "sendAsBinary":return!!this._hascache.xhr.sendAsBinary;
case "opacity":return b.style(this._hascache.testDiv,"opacity")==0.7;case "multiple":if(this.force=="flash"||this.force=="iframe")return false;a=b.attr(this._hascache.testInput,"multiple");return a===true||a===false}return false},getMimeType:function(){return"application/octet-stream"},getFileType:function(a){return a.substring(a.lastIndexOf(".")+1).toUpperCase()},convertBytes:function(a){var c=Math.round(a/1024*1E5)/1E5,e=Math.round(a/1048576*1E5)/1E5,f=Math.round(a/1073741824*1E5)/1E5,g=a;if(c>
1)g=c.toFixed(1)+" kb";if(e>1)g=e.toFixed(1)+" mb";if(f>1)g=f.toFixed(1)+" gb";return{kb:c,mb:e,gb:f,bytes:a,value:g}}})});
define("dojox/form/Uploader",["dojo","dijit","dojox","dojox/form/uploader/Base"],function(b,d,a){b.declare("dojox.form.Uploader",[a.form.uploader.Base],{uploadOnSelect:false,tabIndex:0,multiple:false,label:"Upload...",url:"",name:"uploadedfile",flashFieldName:"",uploadType:"form",_nameIndex:0,widgetsInTemplate:true,templateString:'<div class="dojoxFileInput"><div dojoType="dijit.form.Button" dojoAttachPoint="button">${label}</div></div>',postMixInProperties:function(){this._inputs=[];this._getButtonStyle(this.srcNodeRef);
this.inherited(arguments)},postCreate:function(){var c=false,e=this._getNodePosition(this.domNode);if(!this.btnSize.w||!this.btnSize.h){b.body().appendChild(this.domNode);this._getButtonStyle(this.domNode);c=true}this._setButtonStyle();c&&b.place(this.domNode,e.node,e.pos);this.inherited(arguments)},onChange:function(){},onBegin:function(){},onProgress:function(){},onComplete:function(){this.reset()},onCancel:function(){},onAbort:function(){},onError:function(){},upload:function(){},submit:function(){},
reset:function(){this._disconnectButton();b.forEach(this._inputs,b.destroy,b);this._inputs=[];this._nameIndex=0;this._createInput()},getFileList:function(){var c=[];this.supports("multiple")?b.forEach(this.inputNode.files,function(e,f){c.push({index:f,name:e.name,size:e.size,type:e.type})},this):b.forEach(this._inputs,function(e,f){c.push({index:f,name:e.value.substring(e.value.lastIndexOf("\\")+1),size:0,type:e.value.substring(e.value.lastIndexOf(".")+1)})},this);return c},_getValueAttr:function(){return this.getFileList()},
_setValueAttr:function(){console.error("Uploader value is read only")},_getDisabledAttr:function(){return this._disabled},_setDisabledAttr:function(c){if(this._disabled!=c){this.button.set("disabled",c);b.style(this.inputNode,"display",c?"none":"block")}},_getNodePosition:function(c){if(c.previousSibling)return{node:c.previousSibling,pos:"after"};return{node:c.nextSibling,pos:"before"}},_getButtonStyle:function(c){this.btnSize=c?b.marginBox(c):{w:80,h:25}},_setButtonStyle:function(){var c=true;if(!this.domNode.parentNode||
!this.domNode.parentNode.tagName){document.body.appendChild(this.domNode);c=false}b.style(this.domNode,{width:this.btnSize.w+"px",height:this.btnSize.h+4+"px",overflow:"hidden",position:"relative"});this.inputNodeFontSize=Math.max(2,Math.max(Math.ceil(this.btnSize.w/60),Math.ceil(this.btnSize.h/15)));this._createInput();b.style(this.button.domNode,{margin:"0px",display:"block",verticalAlign:"top"});b.style(this.button.domNode.firstChild,{margin:"0px",display:"block"});c||document.body.removeChild(this.domNode)},
_createInput:function(){if(this._inputs.length){b.style(this.inputNode,{top:"500px"});this._disconnectButton();this._nameIndex++}var c;c=this.supports("multiple")?this.name+"s[]":this.name+(this.multiple?this._nameIndex:"");this.inputNode=b.create("input",{type:"file",name:c,className:"dojoxInputNode"},this.domNode,"first");this.supports("multiple")&&this.multiple&&b.attr(this.inputNode,"multiple",true);this._inputs.push(this.inputNode);b.style(this.inputNode,{fontSize:this.inputNodeFontSize+"em"});
c=b.marginBox(this.inputNode);b.style(this.inputNode,{position:"absolute",top:"-2px",left:"-"+(c.w-this.btnSize.w-2)+"px",opacity:0});this._connectButton()},_connectButton:function(){this._cons=[];var c=b.hitch(this,function(f){this._cons.push(b.connect(this.inputNode,f,this,function(){this.button._cssMouseEvent({type:f})}))});c("mouseover");c("mouseout");c("mousedown");this._cons.push(b.connect(this.inputNode,"change",this,function(f){this.onChange(this.getFileList(f));!this.supports("multiple")&&
this.multiple&&this._createInput()}));this.button.set("tabIndex",-1);if(this.tabIndex>-1){this.inputNode.tabIndex=this.tabIndex;var e=b.style(this.button.domNode.firstChild,"border");this._cons.push(b.connect(this.inputNode,"focus",this,function(){b.style(this.button.domNode.firstChild,"border","1px dashed #ccc")}));this._cons.push(b.connect(this.inputNode,"blur",this,function(){b.style(this.button.domNode.firstChild,"border",e)}))}},_disconnectButton:function(){b.forEach(this._cons,b.disconnect,
b)}});(function(){a.form.UploaderOrg=a.form.Uploader;var c=[a.form.UploaderOrg];a.form.addUploaderPlugin=function(e){c.push(e);b.declare("dojox.form.Uploader",c,{})}})()});
define("dojox/form/uploader/FileList",["dojo","dijit","dojox","dojox/form/uploader/Base","dijit/_Widget","dijit/_Templated"],function(b,d,a){b.declare("dojox.form.uploader.FileList",[a.form.uploader.Base],{uploaderId:"",uploader:null,headerIndex:"#",headerType:"Type",headerFilename:"File Name",headerFilesize:"Size",_upCheckCnt:0,rowAmt:0,templateString:'<div class="dojoxUploaderFileList"><div dojoAttachPoint="progressNode" class="dojoxUploaderFileListProgress"><div dojoAttachPoint="percentBarNode" class="dojoxUploaderFileListProgressBar"></div><div dojoAttachPoint="percentTextNode" class="dojoxUploaderFileListPercentText">0%</div></div><table class="dojoxUploaderFileListTable"><tr class="dojoxUploaderFileListHeader"><th class="dojoxUploaderIndex">${headerIndex}</th><th class="dojoxUploaderIcon">${headerType}</th><th class="dojoxUploaderFileName">${headerFilename}</th><th class="dojoxUploaderFileSize">${headerFilesize}</th></tr><tr ><td colSpan="4" class="dojoxUploaderFileListContainer" dojoAttachPoint="containerNode"><table class="dojoxUploaderFileListContent" dojoAttachPoint="listNode"></table></td><tr></table><div>',
postCreate:function(){this.setUploader();this.hideProgress()},reset:function(){for(var c=0;c<this.rowAmt;c++)this.listNode.deleteRow(0);this.rowAmt=0},setUploader:function(){if(!this.uploaderId&&!this.uploader)console.warn("uploaderId not passed to UploaderFileList");else if(this.uploaderId&&!this.uploader)this.uploader=d.byId(this.uploaderId);else if(this._upCheckCnt>4){console.warn("uploader not found for ID ",this.uploaderId);return}if(this.uploader){this.connect(this.uploader,"onChange","_onUploaderChange");
this.connect(this.uploader,"reset","reset");this.connect(this.uploader,"onBegin",function(){this.showProgress(true)});this.connect(this.uploader,"onProgress","_progress");this.connect(this.uploader,"onComplete",function(){setTimeout(b.hitch(this,function(){this.hideProgress(true)}),1250)})}else{this._upCheckCnt++;setTimeout(b.hitch(this,"setUploader"),250)}},hideProgress:function(c){this._hideShowProgress(c?{ani:true,endDisp:"none",beg:15,end:0}:{endDisp:"none",ani:false})},showProgress:function(c){this._hideShowProgress(c?
{ani:true,endDisp:"block",beg:0,end:15}:{endDisp:"block",ani:false})},_progress:function(c){this.percentTextNode.innerHTML=c.percent;b.style(this.percentBarNode,"width",c.percent)},_hideShowProgress:function(c){var e=this.progressNode,f=function(){b.style(e,"display",c.endDisp)};if(c.ani){b.style(e,"display","block");b.animateProperty({node:e,properties:{height:{start:c.beg,end:c.end,units:"px"}},onEnd:f}).play()}else f()},_onUploaderChange:function(c){this.reset();b.forEach(c,function(e,f){this._addRow(f+
1,this.getFileType(e.name),e.name,e.size)},this)},_addRow:function(c,e,f,g){var h,i=this.listNode.insertRow(-1);h=i.insertCell(-1);b.addClass(h,"dojoxUploaderIndex");h.innerHTML=c;h=i.insertCell(-1);b.addClass(h,"dojoxUploaderIcon");h.innerHTML=e;h=i.insertCell(-1);b.addClass(h,"dojoxUploaderFileName");h.innerHTML=f;h=i.insertCell(-1);b.addClass(h,"dojoxUploaderSize");h.innerHTML=this.convertBytes(g).value;this.rowAmt++}})});
define("dojo/io/iframe",["dojo"],function(b){b.getObject("io",true,b);b.io.iframe={create:function(d,a,c){if(window[d])return window[d];if(window.frames[d])return window.frames[d];var e=null;c=c;if(!c){b.config.useXDomain&&!b.config.dojoBlankHtmlUrl&&console.warn("dojo.io.iframe.create: 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");c=b.config.dojoBlankHtmlUrl||b.moduleUrl("dojo",
"resources/blank.html")}e=b.place('<iframe id="'+d+'" name="'+d+'" src="'+c+'" onload="'+a+'" style="position: absolute; left: 1px; top: 1px; height: 1px; width: 1px; visibility: hidden">',b.body());return window[d]=e},setSrc:function(d,a,c){try{if(c){var e;if(e=b.isIE||b.isWebKit?d.contentWindow.document:d.contentWindow)e.location.replace(a);else d.location=a}else if(b.isWebKit)d.location=a;else frames[d.name].location=a}catch(f){console.log("dojo.io.iframe.setSrc: ",f)}},doc:function(d){return d.contentDocument||
d.name&&d.document&&b.doc.getElementsByTagName("iframe")[d.name].contentWindow&&b.doc.getElementsByTagName("iframe")[d.name].contentWindow.document||d.name&&b.doc.frames[d.name]&&b.doc.frames[d.name].document||null},send:function(d){if(!this._frame)this._frame=this.create(this._iframeName,b._scopeName+".io.iframe._iframeOnload();");d=b._ioSetArgs(d,function(a){a.canceled=true;a.ioArgs._callNext()},function(a){var c=null;try{var e=a.ioArgs,f=b.io.iframe,g=f.doc(f._frame),h=e.handleAs;c=g;if(h!="html")if(h==
"xml"){if(b.isIE<9||b.isIE&&b.isQuirks){b.query("a",f._frame.contentWindow.document.documentElement).orphan();var i=f._frame.contentWindow.document.documentElement.innerText;i=i.replace(/>\s+</g,"><");i=b.trim(i);c=b._contentHandlers.xml({responseText:i})}}else{c=g.getElementsByTagName("textarea")[0].value;if(h=="json")c=b.fromJson(c);else if(h=="javascript")c=b.eval(c)}}catch(j){c=j}finally{e._callNext()}return c},function(a,c){c.ioArgs._hasError=true;c.ioArgs._callNext();return a});d.ioArgs._callNext=
function(){if(!this._calledNext){this._calledNext=true;b.io.iframe._currentDfd=null;b.io.iframe._fireNextRequest()}};this._dfdQueue.push(d);this._fireNextRequest();b._ioWatch(d,function(a){return!a.ioArgs._hasError},function(a){return!!a.ioArgs._finished},function(a){a.ioArgs._finished?a.callback(a):a.errback(new Error("Invalid dojo.io.iframe request state"))});return d},_currentDfd:null,_dfdQueue:[],_iframeName:b._scopeName+"IoIframe",_fireNextRequest:function(){try{if(!(this._currentDfd||this._dfdQueue.length==
0)){do var d=this._currentDfd=this._dfdQueue.shift();while(d&&d.canceled&&this._dfdQueue.length);if(!d||d.canceled)this._currentDfd=null;else{var a=d.ioArgs,c=a.args;a._contentToClean=[];var e=b.byId(c.form),f=c.content||{};if(e){if(f){var g=function(p,q){b.create("input",{type:"hidden",name:p,value:q},e);a._contentToClean.push(p)};for(var h in f){var i=f[h];if(b.isArray(i)&&i.length>1){var j;for(j=0;j<i.length;j++)g(h,i[j])}else if(e[h])e[h].value=i;else g(h,i)}}var k=e.getAttributeNode("action"),
l=e.getAttributeNode("method"),r=e.getAttributeNode("target");if(c.url){a._originalAction=k?k.value:null;if(k)k.value=c.url;else e.setAttribute("action",c.url)}if(!l||!l.value)if(l)l.value=c.method?c.method:"post";else e.setAttribute("method",c.method?c.method:"post");a._originalTarget=r?r.value:null;if(r)r.value=this._iframeName;else e.setAttribute("target",this._iframeName);e.target=this._iframeName;b._ioNotifyStart(d);e.submit()}else{g=c.url+(c.url.indexOf("?")>-1?"&":"?")+a.query;b._ioNotifyStart(d);
this.setSrc(this._frame,g,true)}}}}catch(o){d.errback(o)}},_iframeOnload:function(){var d=this._currentDfd;if(d){d=d.ioArgs;var a=b.byId(d.args.form);if(a){for(var c=d._contentToClean,e=0;e<c.length;e++)for(var f=c[e],g=0;g<a.childNodes.length;g++){var h=a.childNodes[g];if(h.name==f){b.destroy(h);break}}d._originalAction&&a.setAttribute("action",d._originalAction);if(d._originalTarget){a.setAttribute("target",d._originalTarget);a.target=d._originalTarget}}d._finished=true}else this._fireNextRequest()}};
return b.io.iframe});
define("dojox/form/uploader/plugins/HTML5",["dojo","dijit","dojox","dojox/form/Uploader"],function(b,d,a){b.declare("dojox.form.uploader.plugins.HTML5",[],{errMsg:"Error uploading files. Try checking permissions",uploadType:"html5",postCreate:function(){this.connectForm();this.inherited(arguments);this.uploadOnSelect&&this.connect(this,"onChange","upload")},upload:function(c){this.onBegin(this.getFileList());if(this.supports("FormData"))this.uploadWithFormData(c);else this.supports("sendAsBinary")&&this.sendAsBinary(c)},
submit:function(c){c=c?c.tagName?c:this.getForm():this.getForm();c=b.formToObject(c);console.log("form data:",c);this.upload(c)},sendAsBinary:function(c){if(this.getUrl()){var e="---------------------------"+(new Date).getTime(),f=this.createXhr();f.setRequestHeader("Content-Type","multipart/form-data; boundary="+e);(c=this._buildRequestBody(c,e))?f.sendAsBinary(c):this.onError(this.errMsg)}else console.error("No upload url found.",this)},uploadWithFormData:function(c){if(this.getUrl()){var e=new FormData;
b.forEach(this.inputNode.files,function(g){e.append(this.name+"s[]",g)},this);if(c)for(var f in c)e.append(f,c[f]);this.createXhr().send(e)}else console.error("No upload url found.",this)},_xhrProgress:function(c){if(c.lengthComputable){var e={bytesLoaded:c.loaded,bytesTotal:c.total,type:c.type,timeStamp:c.timeStamp};if(c.type=="load"){e.percent="100%";e.decimal=1}else{e.decimal=c.loaded/c.total;e.percent=Math.ceil(c.loaded/c.total*100)+"%"}this.onProgress(e)}},createXhr:function(){var c=new XMLHttpRequest,
e;c.upload.addEventListener("progress",b.hitch(this,"_xhrProgress"),false);c.addEventListener("load",b.hitch(this,"_xhrProgress"),false);c.addEventListener("error",b.hitch(this,function(f){this.onError(f);clearInterval(e)}),false);c.addEventListener("abort",b.hitch(this,function(f){this.onAbort(f);clearInterval(e)}),false);c.onreadystatechange=b.hitch(this,function(){if(c.readyState===4){console.info("COMPLETE");clearInterval(e);this.onComplete(b.eval(c.responseText))}});c.open("POST",this.getUrl());
e=setInterval(b.hitch(this,function(){}),250);return c},_buildRequestBody:function(c,e){var f="";e="--"+e;var g=[];b.forEach(this.inputNode.files,function(i,j){i=this.name+"s[]";var k=this.inputNode.files[j].fileName,l;try{l=this.inputNode.files[j].getAsBinary()+"\r\n";f+=e+"\r\n";f+="Content-Disposition: form-data; ";f+='name="'+i+'"; ';f+='filename="'+k+'"\r\n';f+="Content-Type: "+this.getMimeType()+"\r\n\r\n";f+=l}catch(r){g.push({index:j,name:k})}},this);if(g.length)if(g.length>=this.inputNode.files.length){this.onError({message:this.errMsg,
filesInError:g});f=false}if(!f)return false;if(c)for(var h in c){f+=e+"\r\n";f+="Content-Disposition: form-data; ";f+='name="'+h+'"\r\n\r\n';f+=c[h]+"\r\n"}f+=e+"--\r\n";return f}});a.form.addUploaderPlugin(a.form.uploader.plugins.HTML5)});
define("dojox/form/uploader/plugins/IFrame",["dojo","dijit","dojox","dojo/io/iframe","dojox/form/uploader/plugins/HTML5","dojox/form/Uploader"],function(b,d,a){b.declare("dojox.form.uploader.plugins.IFrame",[],{force:"",postMixInProperties:function(){this.inherited(arguments);if(!this.supports("multiple"))this.uploadType="iframe"},upload:function(c){if(!this.supports("multiple")||this.force=="iframe"){this.uploadIFrame(c);b.stopEvent(c)}},uploadIFrame:function(){this.getUrl();b.io.iframe.send({url:this.getUrl(),
form:this.form,handleAs:"json",error:b.hitch(this,function(c){console.error("HTML Upload Error:"+c.message)}),load:b.hitch(this,function(c){this.onComplete(c)})})}});a.form.addUploaderPlugin(a.form.uploader.plugins.IFrame)});define("text!dijit/templates/ProgressBar.html",function(){return'<div class="dijitProgressBar dijitProgressBarEmpty" role="progressbar"\n\t><div  dojoAttachPoint="internalProgress" class="dijitProgressBarFull"\n\t\t><div class="dijitProgressBarTile" role="presentation"></div\n\t\t><span style="visibility:hidden">&nbsp;</span\n\t></div\n\t><div dojoAttachPoint="labelNode" class="dijitProgressBarLabel" id="${id}_label"></div\n\t><img dojoAttachPoint="indeterminateHighContrastImage" class="dijitProgressBarIndeterminateHighContrastImage" alt=""\n/></div>'});
define("dojo/cldr/nls/number",{root:{scientificFormat:"#E0","currencySpacing-afterCurrency-currencyMatch":"[:letter:]",infinity:"\u221e",list:";",percentSign:"%",minusSign:"-","currencySpacing-beforeCurrency-surroundingMatch":"[:digit:]","decimalFormat-short":"000T","currencySpacing-afterCurrency-insertBetween":"\u00a0",nan:"NaN",nativeZeroDigit:"0",plusSign:"+","currencySpacing-afterCurrency-surroundingMatch":"[:digit:]","currencySpacing-beforeCurrency-currencyMatch":"[:letter:]",currencyFormat:"\u00a4\u00a0#,##0.00",
perMille:"\u2030",group:",",percentFormat:"#,##0%",decimalFormat:"#,##0.###",decimal:".",patternDigit:"#","currencySpacing-beforeCurrency-insertBetween":"\u00a0",exponential:"E"},ar:true,ca:true,cs:true,da:true,de:true,el:true,en:true,"en-au":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});
define("dojo/cldr/nls/en/number",{group:",",percentSign:"%",exponential:"E",scientificFormat:"#E0",percentFormat:"#,##0%",list:";",infinity:"\u221e",patternDigit:"#",minusSign:"-",decimal:".",nan:"NaN",nativeZeroDigit:"0",perMille:"\u2030",decimalFormat:"#,##0.###",currencyFormat:"\u00a4#,##0.00;(\u00a4#,##0.00)",plusSign:"+","decimalFormat-short":"000T"});
define("dojo/number",["dojo","dojo/i18n","i18n!dojo/cldr/nls/number","dojo/string","dojo/regexp"],function(b){b.getObject("number",true,b);b.number.format=function(d,a){a=b.mixin({},a||{});var c=b.i18n.normalizeLocale(a.locale);c=b.i18n.getLocalization("dojo.cldr","number",c);a.customs=c;c=a.pattern||c[(a.type||"decimal")+"Format"];if(isNaN(d)||Math.abs(d)==Infinity)return null;return b.number._applyPattern(d,c,a)};b.number._numberPatternRE=/[#0,]*[#0](?:\.0*#*)?/;b.number._applyPattern=function(d,
a,c){c=c||{};var e=c.customs.group,f=c.customs.decimal;a=a.split(";");var g=a[0];a=a[d<0?1:0]||"-"+g;if(a.indexOf("%")!=-1)d*=100;else if(a.indexOf("\u2030")!=-1)d*=1E3;else if(a.indexOf("\u00a4")!=-1){e=c.customs.currencyGroup||e;f=c.customs.currencyDecimal||f;a=a.replace(/\u00a4{1,3}/,function(i){return c[["symbol","currency","displayName"][i.length-1]]||c.currency||""})}else if(a.indexOf("E")!=-1)throw new Error("exponential notation not supported");var h=b.number._numberPatternRE;g=g.match(h);
if(!g)throw new Error("unable to find a number expression in pattern: "+a);if(c.fractional===false)c.places=0;return a.replace(h,b.number._formatAbsolute(d,g[0],{decimal:f,group:e,places:c.places,round:c.round}))};b.number.round=function(d,a,c){c=10/(c||10);return(c*+d).toFixed(a)/c};(0.9).toFixed()==0&&function(){var d=b.number.round;b.number.round=function(a,c,e){var f=Math.pow(10,-c||0),g=Math.abs(a);if(!a||g>=f||g*Math.pow(10,c+1)<5)f=0;return d(a,c,e)+(a>0?f:-f)}}();b.number._formatAbsolute=
function(d,a,c){c=c||{};if(c.places===true)c.places=0;if(c.places===Infinity)c.places=6;a=a.split(".");var e=typeof c.places=="string"&&c.places.indexOf(","),f=c.places;if(e)f=c.places.substring(e+1);else if(!(f>=0))f=(a[1]||[]).length;c.round<0||(d=b.number.round(d,f,c.round));d=String(Math.abs(d)).split(".");var g=d[1]||"";if(a[1]||c.places){if(e)c.places=c.places.substring(0,e);e=c.places!==undefined?c.places:a[1]&&a[1].lastIndexOf("0")+1;if(e>g.length)d[1]=b.string.pad(g,e,"0",true);if(f<g.length)d[1]=
g.substr(0,f)}else d[1]&&d.pop();f=a[0].replace(",","");e=f.indexOf("0");if(e!=-1){e=f.length-e;if(e>d[0].length)d[0]=b.string.pad(d[0],e);if(f.indexOf("#")==-1)d[0]=d[0].substr(d[0].length-e)}f=a[0].lastIndexOf(",");var h,i;if(f!=-1){h=a[0].length-f-1;a=a[0].substr(0,f);f=a.lastIndexOf(",");if(f!=-1)i=a.length-f-1}a=[];for(f=d[0];f;){e=f.length-h;a.push(e>0?f.substr(e):f);f=e>0?f.slice(0,e):"";if(i){h=i;delete i}}d[0]=a.reverse().join(c.group||",");return d.join(c.decimal||".")};b.number.regexp=
function(d){return b.number._parseInfo(d).regexp};b.number._parseInfo=function(d){d=d||{};var a=b.i18n.normalizeLocale(d.locale);a=b.i18n.getLocalization("dojo.cldr","number",a);var c=d.pattern||a[(d.type||"decimal")+"Format"],e=a.group,f=a.decimal,g=1;if(c.indexOf("%")!=-1)g/=100;else if(c.indexOf("\u2030")!=-1)g/=1E3;else{var h=c.indexOf("\u00a4")!=-1;if(h){e=a.currencyGroup||e;f=a.currencyDecimal||f}}a=c.split(";");a.length==1&&a.push("-"+a[0]);a=b.regexp.buildGroupRE(a,function(i){i="(?:"+b.regexp.escapeString(i,
".")+")";return i.replace(b.number._numberPatternRE,function(j){var k={signed:false,separator:d.strict?e:[e,""],fractional:d.fractional,decimal:f,exponent:false};j=j.split(".");var l=d.places;if(j.length==1&&g!=1)j[1]="###";if(j.length==1||l===0)k.fractional=false;else{if(l===undefined)l=d.pattern?j[1].lastIndexOf("0")+1:Infinity;if(l&&d.fractional==undefined)k.fractional=true;if(!d.places&&l<j[1].length)l+=","+j[1].length;k.places=l}j=j[0].split(",");if(j.length>1){k.groupSize=j.pop().length;if(j.length>
1)k.groupSize2=j.pop().length}return"("+b.number._realNumberRegexp(k)+")"})},true);if(h)a=a.replace(/([\s\xa0]*)(\u00a4{1,3})([\s\xa0]*)/g,function(i,j,k,l){i=b.regexp.escapeString(d[["symbol","currency","displayName"][k.length-1]]||d.currency||"");j=j?"[\\s\\xa0]":"";l=l?"[\\s\\xa0]":"";if(!d.strict){if(j)j+="*";if(l)l+="*";return"(?:"+j+i+l+")?"}return j+i+l});return{regexp:a.replace(/[\xa0 ]/g,"[\\s\\xa0]"),group:e,decimal:f,factor:g}};b.number.parse=function(d,a){a=b.number._parseInfo(a);d=(new RegExp("^"+
a.regexp+"$")).exec(d);if(!d)return NaN;var c=d[1];if(!d[1]){if(!d[2])return NaN;c=d[2];a.factor*=-1}c=c.replace(new RegExp("["+a.group+"\\s\\xa0]","g"),"").replace(a.decimal,".");return c*a.factor};b.number._realNumberRegexp=function(d){d=d||{};if(!("places"in d))d.places=Infinity;if(typeof d.decimal!="string")d.decimal=".";if(!("fractional"in d)||/^0/.test(d.places))d.fractional=[true,false];if(!("exponent"in d))d.exponent=[true,false];if(!("eSigned"in d))d.eSigned=[true,false];var a=b.number._integerRegexp(d),
c=b.regexp.buildGroupRE(d.fractional,function(f){var g="";if(f&&d.places!==0){g="\\"+d.decimal;if(d.places==Infinity)g="(?:"+g+"\\d+)?";else g+="\\d{"+d.places+"}"}return g},true),e=b.regexp.buildGroupRE(d.exponent,function(f){if(f)return"([eE]"+b.number._integerRegexp({signed:d.eSigned})+")";return""});a=a+c;if(c)a="(?:(?:"+a+")|(?:"+c+"))";return a+e};b.number._integerRegexp=function(d){d=d||{};if(!("signed"in d))d.signed=[true,false];if("separator"in d){if(!("groupSize"in d))d.groupSize=3}else d.separator=
"";var a=b.regexp.buildGroupRE(d.signed,function(e){return e?"[-+]":""},true),c=b.regexp.buildGroupRE(d.separator,function(e){if(!e)return"(?:\\d+)";e=b.regexp.escapeString(e);if(e==" ")e="\\s";else if(e=="\u00a0")e="\\s\\xa0";var f=d.groupSize,g=d.groupSize2;if(g){e="(?:0|[1-9]\\d{0,"+(g-1)+"}(?:["+e+"]\\d{"+g+"})*["+e+"]\\d{"+f+"})";return f-g>0?"(?:"+e+"|(?:0|[1-9]\\d{0,"+(f-1)+"}))":e}return"(?:0|[1-9]\\d{0,"+(f-1)+"}(?:["+e+"]\\d{"+f+"})*)"},true);return a+c};return b.number});
define("dijit/ProgressBar",["dojo","dijit","text!dijit/templates/ProgressBar.html","dojo/fx","dojo/number","dijit/_Widget","dijit/_Templated"],function(b,d){b.declare("dijit.ProgressBar",[d._Widget,d._Templated],{progress:"0",value:"",maximum:100,places:0,indeterminate:false,label:"",name:"",templateString:b.cache("dijit","templates/ProgressBar.html"),_indeterminateHighContrastImagePath:b.moduleUrl("dijit","themes/a11y/indeterminate_progress.gif"),postMixInProperties:function(){this.inherited(arguments);
if(!("value"in this.params))this.value=this.indeterminate?Infinity:this.progress},buildRendering:function(){this.inherited(arguments);this.indeterminateHighContrastImage.setAttribute("src",this._indeterminateHighContrastImagePath.toString());this.update()},update:function(a){b.mixin(this,a||{});a=this.internalProgress;var c=this.domNode,e=1;if(this.indeterminate){d.removeWaiState(c,"valuenow");d.removeWaiState(c,"valuemin");d.removeWaiState(c,"valuemax")}else{if(String(this.progress).indexOf("%")!=
-1){e=Math.min(parseFloat(this.progress)/100,1);this.progress=e*this.maximum}else{this.progress=Math.min(this.progress,this.maximum);e=this.progress/this.maximum}d.setWaiState(c,"describedby",this.labelNode.id);d.setWaiState(c,"valuenow",this.progress);d.setWaiState(c,"valuemin",0);d.setWaiState(c,"valuemax",this.maximum)}this.labelNode.innerHTML=this.report(e);b.toggleClass(this.domNode,"dijitProgressBarIndeterminate",this.indeterminate);a.style.width=e*100+"%";this.onChange()},_setValueAttr:function(a){this._set("value",
a);a==Infinity?this.update({indeterminate:true}):this.update({indeterminate:false,progress:a})},_setLabelAttr:function(a){this._set("label",a);this.update()},_setIndeterminateAttr:function(a){this.indeterminate=a;this.update()},report:function(a){return this.label?this.label:this.indeterminate?"&nbsp;":b.number.format(a,{type:"percent",places:this.places,locale:this.lang})},onChange:function(){}});return d.ProgressBar});define("text!orion/widgets/templates/ImportDialog.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\n\t\t<form method="post" id="importDialog.myForm"\n\t\t\tenctype="multipart/form-data" >\n\t\t\t<fieldset>\n\t\t\t\t<div style="display: table-row">\n\t\t\t\t\t<div style="display: table-row; height: 20px">\n\t\t\t\t\t\t<div style="display: table-cell; padding: 1px;">\n\t\t\t\t\t\t\tFile:\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div style="display: table-cell; padding: 1px; vertical-align: top;">\n\t\t\t\t\t\t\t<div id="files" dojoType="dojox.form.uploader.FileList" uploaderId="importDialog.uploader"></div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div style="display: table-cell; padding: 1px;">\n\t\t\t\t\t\t\t<input name="uploadedfile" multiple="false" type="file" id="importDialog.uploader" force="iframe"\n\t\t\t\t\t\t\t\tdojoType="dojox.form.Uploader" style="height: 20px" label="Browse..." >\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-row">\n\t\t\t\t\t\t<div style="display: table-cell; padding: 1px;">\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div style="display: table-cell; padding: 1px;">\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div style="display: table-cell; padding: 1px;">\n\t\t\t\t\t\t\t<input type="submit" label="Finish" value="OK" dojoType="dijit.form.Button"\n\t\t\t\t\t\t\t\tstyle="padding: 20 0 10 0; float: right; clear: both;"/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\t\n\t\t\t</fieldset>\n\t\t</form>\n\t</div>\n</div>'});
define("orion/widgets/ImportDialog",["dojo","dijit","dojox","dijit/Dialog","dojo/data/ItemFileReadStore","dojox/form/Uploader","dojox/form/uploader/FileList","dojox/form/uploader/plugins/IFrame","dijit/form/Button","dijit/ProgressBar","orion/widgets/_OrionDialogMixin","text!orion/widgets/templates/ImportDialog.html"],function(b,d){b.declare("orion.widgets.ImportDialog",[d.Dialog,orion.widgets._OrionDialogMixin],{widgetsInTemplate:true,templateString:b.cache("orion","widgets/templates/ImportDialog.html"),
constructor:function(){this.inherited(arguments);this.options=arguments[0]||{}},postMixInProperties:function(){this.inherited(arguments);this.title="Import from zip"},postCreate:function(){this.inherited(arguments);b.byId("importDialog.myForm").action=this.options.importLocation;b.byId("importDialog.uploader").url=this.options.importLocation;b.connect(d.byId("importDialog.uploader"),"onError",b.hitch(this,function(){setTimeout(b.hitch(this,function(){this.hide()}),2E3)}));b.connect(d.byId("importDialog.uploader"),
"onComplete",b.hitch(this,function(){setTimeout(b.hitch(this,function(){this.hide();this.options.func()}),2E3)}))}})});define("text!dijit/form/templates/DropDownBox.html",function(){return'<div class="dijit dijitReset dijitInlineTable dijitLeft"\n\tid="widget_${id}"\n\trole="combobox"\n\t><div class=\'dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton dijitArrowButtonContainer\'\n\t\tdojoAttachPoint="_buttonNode, _popupStateNode" role="presentation"\n\t\t><input class="dijitReset dijitInputField dijitArrowButtonInner" value="&#9660; " type="text" tabIndex="-1" readonly="readonly" role="presentation"\n\t\t\t${_buttonInputDisabled}\n\t/></div\n\t><div class=\'dijitReset dijitValidationContainer\'\n\t\t><input class="dijitReset dijitInputField dijitValidationIcon dijitValidationInner" value="&#935; " type="text" tabIndex="-1" readonly="readonly" role="presentation"\n\t/></div\n\t><div class="dijitReset dijitInputField dijitInputContainer"\n\t\t><input class=\'dijitReset dijitInputInner\' ${!nameAttrSetting} type="text" autocomplete="off"\n\t\t\tdojoAttachPoint="textbox,focusNode" role="textbox" aria-haspopup="true"\n\t/></div\n></div>'});
define("dijit/form/nls/ComboBox",{root:{previousMessage:"Previous choices",nextMessage:"More choices"},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/ComboBox",["dojo","dijit","text!dijit/form/templates/DropDownBox.html","dojo/window","dojo/regexp","dojo/data/util/simpleFetch","dojo/data/util/filter","dijit/_CssStateMixin","dijit/form/_FormWidget","dijit/form/ValidationTextBox","dijit/_HasDropDown","i18n!dijit/form/nls/ComboBox"],function(b,d){b.declare("dijit.form.ComboBoxMixin",d._HasDropDown,{item:null,pageSize:Infinity,store:null,fetchProperties:{},query:{},autoComplete:true,highlightMatch:"first",searchDelay:100,searchAttr:"name",
labelAttr:"",labelType:"text",queryExpr:"${0}*",ignoreCase:true,hasDownArrow:true,templateString:b.cache("dijit.form","templates/DropDownBox.html"),baseClass:"dijitTextBox dijitComboBox",dropDownClass:"dijit.form._ComboBoxMenu",cssStateNodes:{_buttonNode:"dijitDownArrowButton"},maxHeight:-1,_stopClickEvents:false,_getCaretPos:function(a){var c=0;if(typeof a.selectionStart=="number")c=a.selectionStart;else if(b.isIE){var e=b.doc.selection.createRange().duplicate();a=a.createTextRange();e.move("character",
0);a.move("character",0);try{a.setEndPoint("EndToEnd",e);c=String(a.text).replace(/\r/g,"").length}catch(f){}}return c},_setCaretPos:function(a,c){c=parseInt(c);d.selectInputText(a,c,c)},_setDisabledAttr:function(a){this.inherited(arguments);d.setWaiState(this.domNode,"disabled",a)},_abortQuery:function(){if(this.searchTimer){clearTimeout(this.searchTimer);this.searchTimer=null}if(this._fetchHandle){this._fetchHandle.abort&&this._fetchHandle.abort();this._fetchHandle=null}},_onInput:function(a){if(!this.searchTimer&&
(a.type=="paste"||a.type=="input")&&this._lastInput!=this.textbox.value)this.searchTimer=setTimeout(b.hitch(this,function(){this._onKey({charOrCode:229})}),100);this.inherited(arguments)},_onKey:function(a){var c=a.charOrCode;if(!(a.altKey||(a.ctrlKey||a.metaKey)&&c!="x"&&c!="v"||c==b.keys.SHIFT)){var e=false,f=this.dropDown,g=b.keys,h=null;this._prev_key_backspace=false;this._abortQuery();this.inherited(arguments);if(this._opened)h=f.getHighlightedOption();switch(c){case g.PAGE_DOWN:case g.DOWN_ARROW:case g.PAGE_UP:case g.UP_ARROW:this._opened&&
this._announceOption(h);b.stopEvent(a);break;case g.ENTER:if(h)if(h==f.nextButton){this._nextSearch(1);b.stopEvent(a);break}else{if(h==f.previousButton){this._nextSearch(-1);b.stopEvent(a);break}}else{this._setBlurValue();this._setCaretPos(this.focusNode,this.focusNode.value.length)}if(this._opened||this._fetchHandle)a.preventDefault();case g.TAB:c=this.get("displayedValue");if(f&&(c==f._messages.previousMessage||c==f._messages.nextMessage))break;h&&this._selectOption();if(this._opened){this._lastQuery=
null;this.closeDropDown()}break;case " ":if(h){b.stopEvent(a);this._selectOption();this.closeDropDown()}else e=true;break;case g.DELETE:case g.BACKSPACE:e=this._prev_key_backspace=true;break;default:e=typeof c=="string"||c==229}if(e){this.item=undefined;this.searchTimer=setTimeout(b.hitch(this,"_startSearchFromInput"),1)}}},_autoCompleteText:function(a){var c=this.focusNode;d.selectInputText(c,c.value.length);var e=this.ignoreCase?"toLowerCase":"substr";if(a[e](0).indexOf(this.focusNode.value[e](0))==
0){e=this._getCaretPos(c);if(e+1>c.value.length){c.value=a;d.selectInputText(c,e)}}else{c.value=a;d.selectInputText(c)}},_openResultList:function(a,c){this._fetchHandle=null;if(!(this.disabled||this.readOnly||c.query[this.searchAttr]!=this._lastQuery)){var e=this.dropDown._highlighted_option&&b.hasClass(this.dropDown._highlighted_option,"dijitMenuItemSelected");this.dropDown.clearResultList();if(!a.length&&!this._maxOptions)this.closeDropDown();else{c._maxOptions=this._maxOptions;a=this.dropDown.createOptions(a,
c,b.hitch(this,"_getMenuLabelFromItem"));this._showResultList();if(c.direction){if(1==c.direction)this.dropDown.highlightFirstOption();else-1==c.direction&&this.dropDown.highlightLastOption();e&&this._announceOption(this.dropDown.getHighlightedOption())}else this.autoComplete&&!this._prev_key_backspace&&!/^[*]+$/.test(c.query[this.searchAttr])&&this._announceOption(a[1])}}},_showResultList:function(){this.closeDropDown(true);this.displayMessage("");this.openDropDown();d.setWaiState(this.domNode,"expanded",
"true")},loadDropDown:function(){this._startSearchAll()},isLoaded:function(){return false},closeDropDown:function(){this._abortQuery();if(this._opened){this.inherited(arguments);d.setWaiState(this.domNode,"expanded","false");d.removeWaiState(this.focusNode,"activedescendant")}},_setBlurValue:function(){var a=this.get("displayedValue"),c=this.dropDown;if(c&&(a==c._messages.previousMessage||a==c._messages.nextMessage))this._setValueAttr(this._lastValueReported,true);else if(typeof this.item=="undefined"){this.item=
null;this.set("displayedValue",a)}else{this.value!=this._lastValueReported&&d.form._FormValueWidget.prototype._setValueAttr.call(this,this.value,true);this._refreshState()}},_onBlur:function(){this.closeDropDown();this.inherited(arguments)},_setItemAttr:function(a,c,e){e||(e=this.store.getValue(a,this.searchAttr));var f=this._getValueField()!=this.searchAttr?this.store.getIdentity(a):e;this._set("item",a);d.form.ComboBox.superclass._setValueAttr.call(this,f,c,e)},_announceOption:function(a){if(a){var c;
if(a==this.dropDown.nextButton||a==this.dropDown.previousButton){c=a.innerHTML;this.item=undefined;this.value=""}else{c=this.store.getValue(a.item,this.searchAttr).toString();this.set("item",a.item,false,c)}this.focusNode.value=this.focusNode.value.substring(0,this._lastInput.length);d.setWaiState(this.focusNode,"activedescendant",b.attr(a,"id"));this._autoCompleteText(c)}},_selectOption:function(a){a&&this._announceOption(a.target);this.closeDropDown();this._setCaretPos(this.focusNode,this.focusNode.value.length);
d.form._FormValueWidget.prototype._setValueAttr.call(this,this.value,true)},_startSearchAll:function(){this._startSearch("")},_startSearchFromInput:function(){this._startSearch(this.focusNode.value.replace(/([\\\*\?])/g,"\\$1"))},_getQueryString:function(a){return b.string.substitute(this.queryExpr,[a])},_startSearch:function(a){if(!this.dropDown){var c=this.id+"_popup";this.dropDown=new (b.getObject(this.dropDownClass,false))({onChange:b.hitch(this,this._selectOption),id:c,dir:this.dir});d.removeWaiState(this.focusNode,
"activedescendant");d.setWaiState(this.textbox,"owns",c)}c=b.clone(this.query);this._lastInput=a;this._lastQuery=c[this.searchAttr]=this._getQueryString(a);this.searchTimer=setTimeout(b.hitch(this,function(e,f){this.searchTimer=null;e={queryOptions:{ignoreCase:this.ignoreCase,deep:true},query:e,onBegin:b.hitch(this,"_setMaxOptions"),onComplete:b.hitch(this,"_openResultList"),onError:function(g){f._fetchHandle=null;console.error("dijit.form.ComboBox: "+g);f.closeDropDown()},start:0,count:this.pageSize};
b.mixin(e,f.fetchProperties);this._fetchHandle=f.store.fetch(e);this._nextSearch=this.dropDown.onPage=b.hitch(this,function(g,h){g.start+=g.count*h;g.direction=h;this._fetchHandle=this.store.fetch(g);this.focus()},this._fetchHandle)},c,this),this.searchDelay)},_setMaxOptions:function(a){this._maxOptions=a},_getValueField:function(){return this.searchAttr},constructor:function(){this.query={};this.fetchProperties={}},postMixInProperties:function(){if(!this.store){this.store=new d.form._ComboBoxDataStore(this.srcNodeRef);
if(!("value"in this.params)){var a=this.item=this.store.fetchSelectedItem();if(a){var c=this._getValueField();this.value=this.store.getValue(a,c)}}}this.inherited(arguments)},postCreate:function(){var a=b.query('label[for="'+this.id+'"]');if(a.length){a[0].id=this.id+"_label";d.setWaiState(this.domNode,"labelledby",a[0].id)}this.inherited(arguments)},_setHasDownArrowAttr:function(a){this.hasDownArrow=a;this._buttonNode.style.display=a?"":"none"},_getMenuLabelFromItem:function(a){a=this.labelFunc(a,
this.store);var c=this.labelType;if(this.highlightMatch!="none"&&this.labelType=="text"&&this._lastInput){a=this.doHighlight(a,this._escapeHtml(this._lastInput));c="html"}return{html:c=="html",label:a}},doHighlight:function(a,c){var e=(this.ignoreCase?"i":"")+(this.highlightMatch=="all"?"g":""),f=this.queryExpr.indexOf("${0}");c=b.regexp.escapeString(c);return this._escapeHtml(a).replace(new RegExp((f==0?"^":"")+"("+c+")"+(f==this.queryExpr.length-4?"$":""),e),'<span class="dijitComboBoxHighlightMatch">$1</span>')},
_escapeHtml:function(a){return a=String(a).replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;")},reset:function(){this.item=null;this.inherited(arguments)},labelFunc:function(a,c){return c.getValue(a,this.labelAttr||this.searchAttr).toString()}});b.declare("dijit.form._ComboBoxMenu",[d._Widget,d._Templated,d._CssStateMixin],{templateString:"<ul class='dijitReset dijitMenu' dojoAttachEvent='onmousedown:_onMouseDown,onmouseup:_onMouseUp,onmouseover:_onMouseOver,onmouseout:_onMouseOut' style='overflow: \"auto\"; overflow-x: \"hidden\";'><li class='dijitMenuItem dijitMenuPreviousButton' dojoAttachPoint='previousButton' role='option'></li><li class='dijitMenuItem dijitMenuNextButton' dojoAttachPoint='nextButton' role='option'></li></ul>",
_messages:null,baseClass:"dijitComboBoxMenu",postMixInProperties:function(){this.inherited(arguments);this._messages=b.i18n.getLocalization("dijit.form","ComboBox",this.lang)},buildRendering:function(){this.inherited(arguments);this.previousButton.innerHTML=this._messages.previousMessage;this.nextButton.innerHTML=this._messages.nextMessage},_setValueAttr:function(a){this.value=a;this.onChange(a)},onChange:function(){},onPage:function(){},onClose:function(){this._blurOptionNode()},_createOption:function(a,
c){var e=b.create("li",{"class":"dijitReset dijitMenuItem"+(this.isLeftToRight()?"":" dijitMenuItemRtl"),role:"option"});c=c(a);if(c.html)e.innerHTML=c.label;else e.appendChild(b.doc.createTextNode(c.label));if(e.innerHTML=="")e.innerHTML="&nbsp;";e.item=a;return e},createOptions:function(a,c,e){this.previousButton.style.display=c.start==0?"none":"";b.attr(this.previousButton,"id",this.id+"_prev");b.forEach(a,function(g,h){g=this._createOption(g,e);b.attr(g,"id",this.id+h);this.domNode.insertBefore(g,
this.nextButton)},this);var f=false;if(c._maxOptions&&c._maxOptions!=-1)if(c.start+c.count<c._maxOptions)f=true;else{if(c.start+c.count>c._maxOptions&&c.count==a.length)f=true}else if(c.count==a.length)f=true;this.nextButton.style.display=f?"":"none";b.attr(this.nextButton,"id",this.id+"_next");return this.domNode.childNodes},clearResultList:function(){for(;this.domNode.childNodes.length>2;)this.domNode.removeChild(this.domNode.childNodes[this.domNode.childNodes.length-2]);this._blurOptionNode()},
_onMouseDown:function(a){b.stopEvent(a)},_onMouseUp:function(a){if(!(a.target===this.domNode||!this._highlighted_option))if(a.target==this.previousButton){this._blurOptionNode();this.onPage(-1)}else if(a.target==this.nextButton){this._blurOptionNode();this.onPage(1)}else{for(a=a.target;!a.item;)a=a.parentNode;this._setValueAttr({target:a},true)}},_onMouseOver:function(a){if(a.target!==this.domNode){a=a.target;if(!(a==this.previousButton||a==this.nextButton))for(;!a.item;)a=a.parentNode;this._focusOptionNode(a)}},
_onMouseOut:function(a){a.target!==this.domNode&&this._blurOptionNode()},_focusOptionNode:function(a){if(this._highlighted_option!=a){this._blurOptionNode();this._highlighted_option=a;b.addClass(this._highlighted_option,"dijitMenuItemSelected")}},_blurOptionNode:function(){if(this._highlighted_option){b.removeClass(this._highlighted_option,"dijitMenuItemSelected");this._highlighted_option=null}},_highlightNextOption:function(){if(this.getHighlightedOption()){var a=this._highlighted_option.nextSibling;
a&&a.style.display!="none"?this._focusOptionNode(a):this.highlightFirstOption()}else{a=this.domNode.firstChild;this._focusOptionNode(a.style.display=="none"?a.nextSibling:a)}b.window.scrollIntoView(this._highlighted_option)},highlightFirstOption:function(){var a=this.domNode.firstChild,c=a.nextSibling;this._focusOptionNode(c.style.display=="none"?a:c);b.window.scrollIntoView(this._highlighted_option)},highlightLastOption:function(){this._focusOptionNode(this.domNode.lastChild.previousSibling);b.window.scrollIntoView(this._highlighted_option)},
_highlightPrevOption:function(){if(this.getHighlightedOption()){var a=this._highlighted_option.previousSibling;a&&a.style.display!="none"?this._focusOptionNode(a):this.highlightLastOption()}else{a=this.domNode.lastChild;this._focusOptionNode(a.style.display=="none"?a.previousSibling:a)}b.window.scrollIntoView(this._highlighted_option)},_page:function(a){var c=0,e=this.domNode.scrollTop,f=b.style(this.domNode,"height");for(this.getHighlightedOption()||this._highlightNextOption();c<f;){if(a){if(!this.getHighlightedOption().previousSibling||
this._highlighted_option.previousSibling.style.display=="none")break;this._highlightPrevOption()}else{if(!this.getHighlightedOption().nextSibling||this._highlighted_option.nextSibling.style.display=="none")break;this._highlightNextOption()}var g=this.domNode.scrollTop;c+=(g-e)*(a?-1:1);e=g}},pageUp:function(){this._page(true)},pageDown:function(){this._page(false)},getHighlightedOption:function(){var a=this._highlighted_option;return a&&a.parentNode?a:null},handleKey:function(a){switch(a.charOrCode){case b.keys.DOWN_ARROW:this._highlightNextOption();
return false;case b.keys.PAGE_DOWN:this.pageDown();return false;case b.keys.UP_ARROW:this._highlightPrevOption();return false;case b.keys.PAGE_UP:this.pageUp();return false;default:return true}}});b.declare("dijit.form.ComboBox",[d.form.ValidationTextBox,d.form.ComboBoxMixin],{_setValueAttr:function(a,c,e){this._set("item",null);a||(a="");d.form.ValidationTextBox.prototype._setValueAttr.call(this,a,c,e)}});b.declare("dijit.form._ComboBoxDataStore",null,{constructor:function(a){this.root=a;if(a.tagName!=
"SELECT"&&a.firstChild){a=b.query("select",a);if(a.length>0)a=a[0];else{this.root.innerHTML="<SELECT>"+this.root.innerHTML+"</SELECT>";a=this.root.firstChild}this.root=a}b.query("> option",a).forEach(function(c){c.innerHTML=b.trim(c.innerHTML)})},getValue:function(a,c){return c=="value"?a.value:a.innerText||a.textContent||""},isItemLoaded:function(){return true},getFeatures:function(){return{"dojo.data.api.Read":true,"dojo.data.api.Identity":true}},_fetchItems:function(a,c){if(!a.query)a.query={};
if(!a.query.name)a.query.name="";if(!a.queryOptions)a.queryOptions={};var e=b.data.util.filter.patternToRegExp(a.query.name,a.queryOptions.ignoreCase),f=b.query("> option",this.root).filter(function(g){return(g.innerText||g.textContent||"").match(e)});a.sort&&f.sort(b.data.util.sorter.createSortFunction(a.sort,this));c(f,a)},close:function(){},getLabel:function(a){return a.innerHTML},getIdentity:function(a){return b.attr(a,"value")},fetchItemByIdentity:function(a){var c=b.query("> option[value='"+
a.identity+"']",this.root)[0];a.onItem(c)},fetchSelectedItem:function(){var a=this.root,c=a.selectedIndex;return typeof c=="number"?b.query("> option:nth-child("+(c!=-1?c+1:1)+")",a)[0]:null}});b.extend(d.form._ComboBoxDataStore,b.data.util.simpleFetch);return d.form.ComboBox});define("text!orion/widgets/templates/SFTPConnectionDialog.html",function(){return'<div class="dijitDialog" tabindex="-1" waiRole="dialog" waiState="labelledby-${id}_title">\n\t<div dojoType="dojo.data.ItemFileReadStore" data="sftpConnectionStoreData" jsId="sftpConnectionStore">\n\t</div>\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="locationLabel" for="${id}_sftpPath" style="padding-right: 10">${locationLabelText}</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<div dojoType="dijit.form.ComboBox" store="sftpConnectionStore" style="display: inline-block; width: 88%;" dojoAttachPoint="sftpConnectionList" searchAttr="name">\n\t\t\t\t\t</div>\n\t\t\t\t\t<div dojoType="dijit.form.DropDownButton">\n\t\t\t\t\t    <span>New</span>\n\t\t\t    \t\t<div dojoType="dijit.TooltipDialog">\n\t\t\t\t\t\t\t<div style="display: table">\n\t\t\t\t\t\t\t\t<div style="display: table-row">\n\t\t\t\t\t\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t\t\t\t\t\t<label dojoAttachPoint="sftpHostLabel" for="${id}_sftpHost" style="padding-right: 10">${sftpHostLabelText}</label>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div style="display: table-cell; padding: 5; width: 40em; text-align: left;">\n\t\t\t\t\t\t\t\t\t\t<input dojoAttachPoint="sftpHost" id="${id}_sftpHost" style="display: inline-block; width: 98%;" value="">\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div style="display: table-row">\n\t\t\t\t\t\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t\t\t\t\t\t<label dojoAttachPoint="sftpPathLabel" for="${id}_sftpPath" style="padding-right: 10">${sftpPathLabelText}</label>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div style="display: table-cell; padding: 5; width: 40em; text-align: left;">\n\t\t\t\t\t\t\t\t\t\t<input dojoAttachPoint="sftpPath" id="${id}_sftpPath" style="display: inline-block; width: 98%;" value="">\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\t\n\t\t\t\t\t\t\t\t<div style="display: table-row">\n\t\t\t\t\t\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t\t\t\t\t\t<label dojoAttachPoint="sftpUserLabel" for="${id}_sftpUser" style="padding-right: 10">${sftpUserLabelText}</label>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div style="display: table-cell; padding: 5; width: 40em; text-align: left;">\n\t\t\t\t\t\t\t\t\t\t<input dojoAttachPoint="sftpUser" id="${id}_sftpUser" style="display: inline-block; width: 98%;" value="">\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div style="display: table-row">\n\t\t\t\t\t\t\t\t\t<div style="display: table-cell; padding: 5"></div>\n\t\t\t\t\t\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t\t\t\t\t\t<button dojoAttachPoint="addSFTPConnection" type="submit" dojoType="dijit.form.Button" style="padding: 20 0 10 0; float: right; clear: both;">Add</button>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div><!-- End inner table--\>\n\t\t\t    \t\t</div><!-- End TooltipDialog --\>\n\t\t\t    \t</div><!-- End DropDownButton --\>\n\t\t\t\t</div><!-- End table cell --\>\n\t\t\t</div><!-- End table row --\>\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="sftpPasswordLabel" for="${id}_sftpPassword" style="padding-right: 10">${sftpPasswordLabelText}</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 type="password" dojoAttachPoint="sftpPassword" id="${id}_sftpPassword" 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">\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<p>If the same file exists in both the source and destination:</p>\n\t\t\t\t    <input type="radio" dojoAttachPoint="overwriteCancel" dojoType="dijit.form.RadioButton" name="overwriteOption" id="overwriteCancel" checked value="overwriteCancel" />\n\t\t\t\t    <label for="radioOne">Cancel the transfer</label>\n\t\t\t\t    <br />\n\t\t\t\t    <input type="radio" dojoAttachPoint="overwriteAll" dojoType="dijit.form.RadioButton" name="overwriteOption" id="overwriteAll"/>\n\t\t\t\t    <label for="radioOne">Always overwrite destination</label>\n\t\t\t\t    <br />\n\t\t\t\t    <input type="radio" dojoAttachPoint="overwriteOlder" dojoType="dijit.form.RadioButton" name="overwriteOption" id="overwriteOlder"/>\n\t\t\t\t    <label for="radioOne">Overwrite if source is newer</label>\n\t\t\t\t</div>\n\t\t\t</div><!-- End table row --\>\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="sftpConnectionButton" 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</button>\n\t\t\t\t</div>\n\t\t\t</div><!-- End table row --\>\n\t\t</div><!-- End table --\>\n\t</div><!-- End dijitDialogPaneContent --\>\n</div>'});
define("orion/widgets/SFTPConnectionDialog",["dojo","dijit","dijit/Dialog","dijit/form/CheckBox","dijit/form/ComboBox","dojo/data/ItemFileReadStore","orion/widgets/_OrionDialogMixin","text!orion/widgets/templates/SFTPConnectionDialog.html"],function(b,d){localStorage.getItem("orion.sftpConnections")||localStorage.setItem("orion.sftpConnections",JSON.stringify({identifier:"name",label:"name",items:[]}));window.sftpConnectionStoreData=JSON.parse(localStorage.getItem("orion.sftpConnections"));b.declare("orion.widgets.SFTPConnectionDialog",
[d.Dialog,orion.widgets._OrionDialogMixin],{widgetsInTemplate:true,templateString:b.cache("orion","widgets/templates/SFTPConnectionDialog.html"),constructor:function(){this.inherited(arguments);this.options=arguments[0]||{}},postMixInProperties:function(){this.inherited(arguments);this.title="SFTP Transfer";this.sftpHostLabelText="Remote host:";this.sftpPathLabelText="Remote path:";this.sftpUserLabelText="User name:";this.sftpPasswordLabelText="Password:";this.buttonOk="Start Transfer";this.locationLabelText=
"Location:";sftpConnectionStoreData=JSON.parse(localStorage.getItem("orion.sftpConnections"))},postCreate:function(){this.inherited(arguments);b.connect(this.addSFTPConnection,"onClick",null,b.hitch(this,this.onAddConnection))},execute:function(){var a=this.sftpConnectionList.value.split("@");if(a.length===2){var c=a[0],e=a[1].indexOf("/");if(!(e<=0)){var f=a[1].substring(0,e);a=a[1].substring(e);this.options.func(f,a,c,this.sftpPassword.value,this._computeOverwriteValue())}}},_computeOverwriteValue:function(){if(this.overwriteCancel.checked)return"no-overwrite";
else if(this.overwriteOlder.checked)return"overwrite-older";return""},onAddConnection:function(){for(var a={name:this.sftpUser.value+"@"+this.sftpHost.value+this.sftpPath.value},c=JSON.parse(localStorage.getItem("orion.sftpConnections")),e=false,f=0;f<c.items.length;f++)if(c.items[f].name===a.name){e=true;break}if(!e){c.items.unshift(a);localStorage.setItem("orion.sftpConnections",JSON.stringify(c));this.sftpConnectionList.set("value",a.name)}}})});
define("orion/extensionCommands",["require","dojo","orion/util","orion/commands","orion/editor/regex","orion/contentTypes","orion/URITemplate","orion/widgets/NewItemDialog","orion/widgets/DirectoryPrompterDialog","orion/widgets/ImportDialog","orion/widgets/SFTPConnectionDialog"],function(b,d,a,c,e,f,g){var h={};h._cloneItemWithoutChildren=function i(j){if(j===null||typeof j!=="object")return j;var k=j.constructor();for(var l in j)if(l!=="children"&&l!=="Children")k[l]=i(j[l]);return k};h._createOpenWithCommands=
function(i,j){function k(){for(var D=i.getServiceReferences("orion.edit.editor"),H=[],J=0;J<D.length;J++){var E=D[J],N=E.getProperty("id");H.push({id:N,name:E.getProperty("name"),uriTemplate:new g(E.getProperty("orionTemplate")||E.getProperty("uriTemplate"))})}return H}function l(D,H){D=D.map(function(J){return e.escape(J)});H=H.map(function(J){return e.escape(J)});D=D.length&&"(*\\.("+D.join("|")+")$)";H=H.length&&"(^("+H.join("|")+")$)";return D&&H?D+"|"+H:D?D:H?H:null}function r(D,H){D=D.getServiceReferences("orion.navigate.openWith");
for(var J=[],E=0;E<D.length;E++){var N=D[E];if(N.getProperty("editor")===H.id){N=N.getProperty("contentType");if(N instanceof Array)J=J.concat(N);else N!==null&&typeof N!=="undefined"&&J.push(N)}}return J}function o(D){for(D=D.getServiceReferences("orion.navigate.openWith.default");0<D.length;)return{editor:D[0].getProperty("editor")};return null}for(var p=k(),q=o(i),n=[],m=0;m<p.length;m++){var s=p[m],u=q&&q.editor===s.id,w=r(i,s);if(w.length){for(var x=[],B=[],G=0;G<w.length;G++){var C=j[w[G]];
if(C){x=x.concat(C.extension);B=B.concat(C.filename)}}w=s.uriTemplate;x={Directory:false,Name:l(x,B)};s={name:s.name||s.id,id:"eclipse.openWithCommand."+s.id,tooltip:s.name,validationProperties:x,href:true,forceSingleItem:true,isEditor:u?"default":"editor"};u={run:d.hitch(w,w.expand)};n.push({properties:s,service:u})}}return n};h._makeValidationFunction=function(i,j){function k(o){for(var p="^",q=0;q<o.length;q++){var n=o.charAt(q);switch(n){case "?":p+=".";break;case "*":p+=".*";break;default:p+=
n}}p+="$";return new RegExp(p)}function l(o,p,q){var n,m;if(p.indexOf(":")>=0){n=k(p.substring(0,p.indexOf(":")));var s=p.substring(p.indexOf(":")+1);for(m in o)if(n.test(m))if(l(o[m],s,q))return true}n=k(p);for(m in o)if(n.test(m))if(typeof q==="string"){if(k(q).test(o[m]))return true}else if(q===o[m])return true;return false}function r(o,p){for(var q in p)if(!l(o,q,p[q]))return false;return true}return d.hitch(i,function(o){if(typeof j==="function")o=j(o);if(d.isArray(o)){if((this.forceSingleItem||
this.href)&&o.length!==1)return false;if(!this.forceSingleItem&&o.length<1)return false}else o=[o];if(!this.validationProperties)return true;for(var p in o)if(!r(o[p],this.validationProperties))return false;return true})};h._createCommandOptions=function(i,j,k,l,r){var o={name:i.name,image:i.image,id:i.id||i.name,tooltip:i.tooltip,isEditor:i.isEditor};o.visibleWhen=h._makeValidationFunction(i,r);if(l)if(i.href)o.hrefCallback=d.hitch(i,function(p){p=d.isArray(p.items)?p.items[0]:p.items;p=h._cloneItemWithoutChildren(p);
if(j.run)return j.run(p);else if(k)return k.getService(j).run(p)});else o.callback=d.hitch(i,function(p){var q;if(this.forceSingleItem){p=d.isArray()?p.items[0]:p.items;q=h._cloneItemWithoutChildren(p)}else if(d.isArray(p.items)){q=[];for(var n=0;n<p.items.length;n++)q.push(h._cloneItemWithoutChildren(p.items[n]))}else q=h._cloneItemWithoutChildren(p.items);if(j.run)j.run(q);else k&&k.getService(j).run(q)});return o};h.getOpenWithCommands=function(i){var j=[];for(var k in i._objectScope){var l=i._objectScope[k];
l.isEditor&&j.push(l)}return j};return h});
define("orion/textview/keyBinding",[],function(){function b(a,c,e,f,g){this.keyCode=typeof a==="string"?a.toUpperCase().charCodeAt(0):a;this.mod1=c!==undefined&&c!==null?c:false;this.mod2=e!==undefined&&e!==null?e:false;this.mod3=f!==undefined&&f!==null?f:false;this.mod4=g!==undefined&&g!==null?g:false}var d=window.navigator.platform.indexOf("Mac")!==-1;b.prototype={match:function(a){if(this.keyCode===a.keyCode){if(this.mod1!==(d?a.metaKey:a.ctrlKey))return false;if(this.mod2!==a.shiftKey)return false;
if(this.mod3!==a.altKey)return false;if(d&&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{KeyBinding:b}});
define("orion/favorites",["require","dojo","orion/util"],function(b,d,a){function c(e){this._favorites=[];this._searches=[];this._init(e);this._initializeFavorites()}c.prototype={_init:function(e){this._registry=e.serviceRegistry;this._serviceRegistration=this._registry.registerService("orion.core.favorite",this)},_notifyListeners:function(){this._serviceRegistration.dispatchEvent("favoritesChanged",{navigator:this._favorites,search:this._searches,registry:this._registry})},makeFavorites:function(e){e=
d.isArray(e)?e:[e];for(var f=0;f<e.length;f++){var g=e[f],h=g.ChildrenLocation?g.ChildrenLocation:g.Location;h=a.makeRelative(h);this.addFavorite(g.Name,h,g.Directory)}this._storeFavorites();this._notifyListeners()},addFavoriteUrl:function(e){this.addFavorite(e,e,false,true)},addFavorite:function(e,f,g,h){this._favorites.push({name:e,path:f,directory:g,isFavorite:true,isExternalResource:h});this._favorites.sort(this._sorter);this._storeFavorites();this._notifyListeners()},removeFavorite:function(e){for(var f in this._favorites)if(this._favorites[f].path===
e){this._favorites.splice(f,1);break}this._favorites.sort(this._sorter);this._storeFavorites();this._notifyListeners()},renameFavorite:function(e,f){var g=false;for(var h in this._favorites)if(this._favorites[h].path===e){var i=this._favorites[h];if(i.name!==f){i.name=f;g=true}}if(g){this._favorites.sort(this._sorter);this._storeFavorites();this._notifyListeners()}},addFavoriteSearch:function(e,f){this._searches.push({name:e,query:f,isSearch:true});this._searches.sort(this._sorter);this._storeSearches();
this._notifyListeners()},hasFavorite:function(e){for(var f in this._favorites)if(this._favorites[f].path===e)return true;return false},_SPECIAL_CHARS:"^$\\+[]().",queryFavorites:function(e){var f;if(!e)return this._favorites;var g="";for(f=0;f<e.length;f++){var h=e.charAt(f);g+=h==="*"?".*":h==="?"?".?":this._SPECIAL_CHARS.indexOf(h)>=0?"\\"+h:h}g+=".*";e=new RegExp(g);g=[];for(f in this._favorites)this._favorites[f].name.search(e)===0&&g.push(this._favorites[f]);return g},removeSearch:function(e){for(var f in this._searches)if(this._searches[f].query===
e){this._searches.splice(f,1);break}this._searches.sort(this._sorter);this._storeSearches();this._notifyListeners()},renameSearch:function(e,f){var g=false;for(var h in this._searches)if(this._searches[h].query===e){var i=this._searches[h];if(i.name!==f){i.name=f;g=true}}if(g){this._searches.sort(this._sorter);this._storeSearches();this._notifyListeners()}},_initializeFavorites:function(){var e=this;this._registry.getService("orion.core.preference").getPreferences("/window/favorites").then(function(f){var g,
h=f.get("navigate");if(typeof h==="string")h=JSON.parse(h);if(h)for(g in h){h[g].isFavorite=true;e._favorites.push(h[g])}f=f.get("search");if(typeof f==="string")f=JSON.parse(f);if(f)for(g in f){f[g].isSearch=true;e._searches.push(f[g])}e._favorites.sort(e._sorter);e._notifyListeners()})},_storeFavorites:function(){var e=this._favorites;this._registry.getService("orion.core.preference").getPreferences("/window/favorites").then(function(f){f.put("navigate",e)})},_storeSearches:function(){var e=this._searches;
this._registry.getService("orion.core.preference").getPreferences("/window/favorites").then(function(f){f.put("search",e)})},_sorter:function(e,f){e=e.name.toLowerCase();f=f.name.toLowerCase();return e>f?1:e<f?-1:0},getFavorites:function(){return{navigator:this._favorites,search:this._searches}}};c.prototype.constructor=c;return{FavoritesService:c}});define("text!orion/widgets/templates/OpenResourceDialog.html",function(){return'<div class="dijitDialog" tabindex="-1" waiRole="dialog" title="${title}" 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<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="favresults" 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="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",["require","dojo","dijit","dijit/Dialog","dijit/form/TextBox","orion/widgets/_OrionDialogMixin","text!orion/widgets/templates/OpenResourceDialog.html"],function(b,d,a){return d.declare("orion.widgets.OpenResourceDialog",[a.Dialog,orion.widgets._OrionDialogMixin],{widgetsInTemplate:true,templateString:d.cache("orion","widgets/templates/OpenResourceDialog.html"),SEARCH_DELAY:500,timeoutId:null,time:null,options:null,searcher:null,searchRenderer:null,favService:null,
constructor:function(){this.inherited(arguments);this.timeoutId=null;this.time=0;this.searcher=(this.options=arguments[0])&&this.options.searcher;if(!this.searcher)throw new Error("Missing required argument: searcher");this.searchRenderer=this.options&&this.options.searchRenderer;if(!this.searchRenderer||typeof this.searchRenderer.makeRenderFunction!=="function")throw new Error("Missing required argument: searchRenderer");this.favService=this.options.favoriteService;if(!this.favService)throw new Error("Missing required argument: favService");
},postMixInProperties:function(){this.options.title=this.options.title||"Find File Named";this.selectFile="Type the name of a file to open (? = any character, * = any string):";this.searchPlaceHolder="Search";this.inherited(arguments)},postCreate:function(){this.inherited(arguments);d.connect(this.resourceName,"onChange",this,function(){this.time=+new Date;clearTimeout(this.timeoutId);this.timeoutId=setTimeout(d.hitch(this,this.checkSearch),0)});d.connect(this.resourceName,"onKeyPress",this,function(c){if(c.keyCode===
d.keys.ENTER&&this.results){c=d.query("a",this.results);if(c.length>0){window.open(c[0].href);this.hide()}}});d.connect(this,"onKeyPress",this,function(c){var e,f,g,h,i;g=function(k,l,r){return l<k.length-1?k[l+1]:r};var j=function(k,l,r){return l>0?k[l-1]:r};if(c.keyCode===d.keys.DOWN_ARROW||c.keyCode===d.keys.UP_ARROW){f=d.query("a",this.results);e=d.query("a",this.favresults);h=a.getFocus();i=f.indexOf(h.node);h=e.indexOf(h.node);if(c.keyCode===d.keys.DOWN_ARROW)if(h>=0)a.focus(g(e,h,f.length>
0?f[0]:e[0]));else if(i>=0)a.focus(g(f,i,e.length>0?e[0]:f[0]));else{if(f.length>0||e.length>0)a.focus(g(e,-1,f[0]))}else if(h>=0){g=this.resourceName&&this.resourceName.get("textbox");a.focus(j(e,h,g))}else if(i>=0){g=this.resourceName&&this.resourceName.get("textbox");a.focus(j(f,i,e.length>0?e[e.length-1]:g))}else if(f.length>0)a.focus(f[f.length-1]);else e.length>0&&a.focus(e[e.length-1]);d.stopEvent(c)}});d.connect(this,"onMouseUp",function(c){c.target.focus()});this.populateFavorites()},populateFavorites:function(){d.place("<div>Populating favorites&#x2026;</div>",
this.favresults,"only");this.favService.getFavorites().then(this.showFavorites());this.favService.addEventListener("favoritesChanged",this.showFavorites())},showFavorites:function(){var c=this;return function(e){if(e.navigator)e=e.navigator;c.searchRenderer.makeRenderFunction(c.favresults,false,d.hitch(c,c.decorateResult),c.showFavoritesImage)(e);e&&e.length>0&&d.place("<hr/>",c.favresults,"last")}},showFavoritesImage:function(c){var e=new Image;d.addClass(e,"commandSprite");d.addClass(e,"core-sprite-makeFavorite");
d.addClass(e,"commandImage");e.src=b.toUrl("images/none.png");e.title="Favorite";c.appendChild(e);d.style(e,"verticalAlign","middle")},checkSearch:function(){clearTimeout(this.timeoutId);var c=(new Date).getTime();if(c-this.time>this.SEARCH_DELAY){this.time=c;this.doSearch()}else this.timeoutId=setTimeout(d.hitch(this,"checkSearch"),50)},doSearch:function(){var c=this.resourceName&&this.resourceName.get("value"),e=this.showFavorites();this.favService.queryFavorites(c).then(function(g){e(g)});if(c){d.place("<div>Searching&#x2026;</div>",
this.results,"only");var f=this;setTimeout(function(){var g=f.searcher.createSearchQuery(null,c,"Name"),h=f.searchRenderer.makeRenderFunction(f.results,false,d.hitch(f,f.decorateResult));f.searcher.search(g,false,h)},0)}},decorateResult:function(c){var e=this;d.query("a",c).forEach(function(f){d.connect(f,"onmouseup",function(g){!d.mouseButtons.isMiddle(g)&&!d.isCopyKey(g)&&e.hide()});d.connect(f,"onkeyup",e,function(g){g.keyCode===d.keys.ENTER&&e.hide()})})},show:function(){this.inherited(arguments);
this.resourceName.focus()},onHide:function(){clearTimeout(this.timeoutId);this.inherited(arguments)}})});define("text!orion/widgets/templates/LoginDialog.html",function(){return'\n<div>\n\t<div class="dijitTooltipContainer" role="presentation" style="width: 300px; padding-left: 0; padding-right: 0; padding-top: 0; padding-bottom: 0.45em">\n\t\t<div class="dijitTooltipContents dijitTooltipFocusNode" role="dialog"\n\t\t\tdojoattachpoint="containerNode" style="padding: 0">\n\t\t\t<table style="width: 100%;">\n\t\t\t\t<tr>\n\t\t\t\t\t<td style="text-align: left; vertical-align: top;">\n\t\t\t\t\t\t<h2 dojoAttachPoint="emptyListInfo" class="LoginWindowLeft">No authentication required.</h2>\n\t\t\t\t\t\t<table dojoAttachPoint="authenticated" style="display: none; width: 100%;">\n\t\t\t\t\t\t\t<tbody dojoAttachPoint="authenticatedList">\n\t\t\t\t\t\t\t</tbody>\n\t\t\t\t\t\t</table>\n\t\t\t\t\t\t<table dojoAttachPoint="otherUnauthenticated" style="display: none; width: 100%;">\n\t\t\t\t\t\t\t<tbody dojoAttachPoint="otherUnauthenticatedList">\n\t\t\t\t\t\t\t</tbody>\n\t\t\t\t\t\t</table>\n\t\t\t\t\t</td>\n\t\t\t\t\t<td style="text-align: right; vertical-align: top; padding-right: 2px; margin: 0">\n\t\t\t\t\t\t<span dojoAttachPoint="closeLink" role="button" title="Close"></span>\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\t\t\t</table>\n\t\t</div>\n\t</div>\n\t<div class="dijitTooltipConnector" role="presentation"></div>\n\n</div>'});
define("orion/widgets/LoginDialog",["require","dojo","dijit","orion/util","dijit/TooltipDialog","text!orion/widgets/templates/LoginDialog.html"],function(b,d,a){d.declare("orion.widgets.LoginDialog",[a.TooltipDialog],{widgetsInTemplate:true,templateString:d.cache("orion","widgets/templates/LoginDialog.html"),constructor:function(){this.inherited(arguments);this.options=arguments[0]||{};this.authenticatedServices={};this.unauthenticatedServices={}},postCreate:function(){this.inherited(arguments);var c=
this;d.addClass(this.closeLink,"imageSprite");d.addClass(this.closeLink,"core-sprite-close");d.connect(this.closeLink,"onmouseover",this.closeLink,function(){c.closeLink.style.cursor="pointer"});d.connect(this.closeLink,"onmouseout",this.closeLink,function(){c.closeLink.style.cursor="default"});d.connect(this.closeLink,"onclick",function(){d.hitch(c,c.closeDialog)()})},setPendingAuthentication:function(c){for(var e in this.unauthenticatedServices)delete this.unauthenticatedServices[e].pending;for(e in c)if(this.unauthenticatedServices[c[e].SignInKey])this.unauthenticatedServices[c[e].SignInKey].pending=
true;else if(this.authenticatedServices[c[e].SignInKey]){this.unauthenticatedServices[c[e].SignInKey]=this.authenticatedServices[c[e].SignInKey];this.unauthenticatedServices[c[e].SignInKey].pending=true;delete this.authenticatedServices[c[e].SignInKey]}else this.unauthenticatedServices[c[e].SignInKey]={label:c[e].label,SignInLocation:c[e].SignInLocation,pending:true};this.renderUnauthenticatedServices();this.renderAuthenticatedServices()},authenticatedService:function(c){if(this.unauthenticatedServices[c]&&
!this.unauthenticatedServices[c].authService){this.authenticatedServices[c]=this.unauthenticatedServices[c];delete this.unauthenticatedServices[c]}},addUserItem:function(c,e,f,g){if(g){this.unauthenticatedServices[c]&&delete this.unauthenticatedServices[c];this.authenticatedServices[c]={authService:e,label:f,data:g}}else{this.authenticatedServices[c]&&delete this.authenticatedServices[c];this.unauthenticatedServices[c]=this.unauthenticatedServices[c]?{authService:e,label:f,pending:this.unauthenticatedServices[c].pending}:
{authService:e,label:f}}d.hitch(this,this.renderAuthenticatedServices)();d.hitch(this,this.renderUnauthenticatedServices)()},renderAuthenticatedServices:function(){d.empty(this.authenticatedList);this.authenticated.style.display=this.isEmpty(this.authenticatedServices)?"none":"";var c=this,e=true;for(var f in this.authenticatedServices){if(!e){var g=d.create("tr",null,this.authenticatedList);d.create("td",{style:"padding: 0; margin 0;",colspan:2,innerHTML:"<hr style='border-bottom: medium none; border-top: 1px solid #D3D3D3; color: gray; height: 0; margin: 2px;'>"},
g)}e=false;g=d.create("tr",{className:"navTableHeading"});var h=this.authenticatedServices[f].authService,i=d.create("td",null,g,"only"),j=d.create("h2",null,i,"only");if(h)if(h.getAuthForm)d.hitch(c,function(r,o){h.getAuthForm(eclipse.globalCommandUtils.notifyAuthenticationSite).then(function(p){if(c.authenticatedServices[o].label)r.innerHTML=c.authenticatedServices[o].label+"<br>";r.innerHTML+=c.getHostname(p)})})(j,f);else j.innerHTML=this.authenticatedServices[f].label?this.authenticatedServices[f].label:
f;else{var k=this.authenticatedServices[f].SignInLocation;if(this.authenticatedServices[f].label)j.innerHTML=this.authenticatedServices[f].label+"<br>";j.innerHTML+=this.getHostname(k)}d.addClass(i,"LoginWindowLeft");i=d.create("td",{style:"text-align: right"},g,"last");d.addClass(i,"LoginWindowRight");j=this.authenticatedServices[f].data;h=this.authenticatedServices[f].authService;if(!h){d.place(g,this.authenticatedList,"last");return}j.Location&&d.create("a",{href:b.toUrl("profile/user-profile.html")+
"#"+j.Location,innerHTML:"Profile"},i,"last");d.place(document.createTextNode(" "),i,"last");if(h.logout){var l=d.create("a",{innerHTML:"Sign out"},i,"last");d.connect(l,"onmouseover",l,function(){l.style.cursor="pointer"});d.connect(l,"onmouseout",l,function(){l.style.cursor="default"});d.connect(l,"onclick",d.hitch(c,function(r,o){return function(){r.logout().then(d.hitch(c,function(){this.addUserItem(o,r,this.authenticatedServices[o].label);this.isSingleService()&&this.closeDialog();localStorage.removeItem(o)}))}})(h,
f))}d.place(g,this.authenticatedList,"last");i="N/A";if(j&&j.lastlogintimestamp)i=d.date.locale.format(new Date(j.lastlogintimestamp),{formatLength:"short"});j=j.Name&&j.Name.replace(/^\s+|\s+$/g,"")!==""?j.Name:j.login;g=d.create("tr");i=j.length>40?d.create("td",{innerHTML:j.substring(0,30)+"... logged in since "+i,colspan:2,title:j+" logged in since "+i},g,"only"):d.create("td",{innerHTML:j+" logged in since "+i,colspan:2},g,"only");d.addClass(i,"LoginWindowLeft");d.addClass(i,"LoginWindowRight");
d.addClass(i,"LoginWindowComment");d.place(g,this.authenticatedList,"last")}},renderUnauthenticatedServices:function(){this.emptyListInfo.style.display=this.unauthenticatedServices.length===0&&this.authenticatedServices.length===0?"":"none";d.empty(this.otherUnauthenticatedList);var c=this;this.otherUnauthenticated.style.display=this.isEmpty(this.unauthenticatedServices)?"none":"";var e=true;for(var f in this.unauthenticatedServices){if(!e||!this.isEmpty(this.authenticatedServices)){var g=d.create("tr",
null,this.otherUnauthenticatedList);d.create("td",{style:"padding: 0; margin 0;",colspan:2,innerHTML:"<hr style='border-bottom: medium none; border-top: 1px solid #D3D3D3; color: gray; height: 0; margin: 2px;'>"},g)}e=false;g=d.create("tr",{className:"navTableHeading"});var h=d.create("td",null,g,"only");d.addClass(h,"LoginWindowLeft");var i=d.create("h2",null,h,"only");h=d.create("td",{style:"text-align: right"},g,"last");d.addClass(h,"LoginWindowRight");var j=this.unauthenticatedServices[f].authService;
if(j)if(j.getAuthForm)d.hitch(c,function(r,o){j.getAuthForm(eclipse.globalCommandUtils.notifyAuthenticationSite).then(function(p){p.indexOf("?")==-1?d.create("a",{target:"_blank",href:p+"?redirect="+eclipse.globalCommandUtils.notifyAuthenticationSite+"?key="+o,innerHTML:"Sign in"},r,"last"):d.create("a",{target:"_blank",href:p+"&redirect="+eclipse.globalCommandUtils.notifyAuthenticationSite+"?key="+o,innerHTML:"Sign in"},r,"last");if(c.unauthenticatedServices[o].label)i.innerHTML=c.unauthenticatedServices[o].label+
"<br>";i.innerHTML+=c.getHostname(p)})})(h,f);else{if(j.login){d.place(document.createTextNode(this.unauthenticatedServices[f].label?this.unauthenticatedServices[f].label:f),i,"only");var k=d.create("a",{innerHTML:"Sign in",style:"cursor: hand;"},h,"last");d.connect(k,"onmouseover",k,function(){k.style.cursor="pointer"});d.connect(k,"onmouseout",k,function(){k.style.cursor="default"});d.connect(k,"onclick",d.hitch(c,function(r){return function(){r.login(eclipse.globalCommandUtils.notifyAuthenticationSite).then(function(){c.isSingleService()&&
a.popup.hide&&a.popup.hide(c);a.popup.close(c)})}})(j))}}else{var l=this.unauthenticatedServices[f].SignInLocation;l.indexOf("?")==-1?d.create("a",{target:"_blank",href:l+"?redirect="+eclipse.globalCommandUtils.notifyAuthenticationSite+"?key="+f,innerHTML:"Sign in"},h,"last"):d.create("a",{target:"_blank",href:l+"&redirect="+eclipse.globalCommandUtils.notifyAuthenticationSite+"?key="+f,innerHTML:"Sign in"},h,"last");if(this.unauthenticatedServices[f].label)i.innerHTML=this.unauthenticatedServices[f].label+
"<br>";i.innerHTML+=this.getHostname(l)}d.place(g,this.otherUnauthenticatedList,"last");if(this.unauthenticatedServices[f].pending){g=d.create("tr");h=d.create("td",{innerHTML:"Authentication required!",style:"padding-left: 10px",colspan:2},g,"only");d.addClass(h,"LoginWindowLeft");d.addClass(h,"LoginWindowRight");d.create("img",{src:b.toUrl("images/warning.gif"),style:"padding-right: 4px; vertical-align: bottom; padding-bottom: 2px;"},h,"first");d.place(g,this.otherUnauthenticatedList,"last")}}},
isSingleService:function(){return this.length(this.unauthenticatedServices)+this.length(this.authenticatedServices)===1},isEmpty:function(c){for(var e in c)if(c.hasOwnProperty(e))return false;return true},length:function(c){var e=0;for(var f in c)c.hasOwnProperty(f)&&e++;return e},getHostname:function(c){var e=document.createElement("img");e.src=c;c=e.src;e.src=null;return c.match(/^(?:f|ht)tp(?:s)?:\/\/([^\/]+)/im)[1].toString()},closeDialog:function(){a.popup.hide&&a.popup.hide(this);a.popup.close(this)}})});
define("orion/widgets/UserMenu",["require","dojo","dijit","orion/util","dijit/Menu"],function(b,d,a){d.declare("orion.widgets.UserMenu",[a.Menu],{widgetsInTemplate:false,id:"userMenu",postCreate:function(){this.inherited(arguments)},constructor:function(){this.inherited(arguments);this.options=arguments[0]||{};this.authenticatedServices={};this.unauthenticatedServices={}},isSingleService:function(){return this.length(this.unauthenticatedServices)+this.length(this.authenticatedServices)===1},hasServices:function(){return this.length(this.unauthenticatedServices)+
this.length(this.authenticatedServices)>0},length:function(c){var e=0;for(var f in c)c.hasOwnProperty(f)&&e++;return e},_renderAuthenticatedService:function(c,e,f){var g=this,h=this.authenticatedServices[c].authService;if(h&&h.logout)this.addChild(new a.MenuItem({label:f?"Sign Out "+f:"Sign Out",onClick:d.hitch(this,function(i,j){return function(){i.logout().then(d.hitch(g,function(){this.addUserItem(j,i,this.authenticatedServices[j].label);localStorage.removeItem(j)}))}})(h,c)}),e)},_renderUnauthenticatedService:function(c,
e,f){var g=this,h=this.unauthenticatedServices[c].authService;if(h)if(h.getAuthForm)d.hitch(g,function(j){h.getAuthForm(eclipse.globalCommandUtils.notifyAuthenticationSite).then(function(k){k+=k.indexOf("?")==-1?"?redirect="+eclipse.globalCommandUtils.notifyAuthenticationSite+"?key="+j:"&redirect="+eclipse.globalCommandUtils.notifyAuthenticationSite+"?key="+j;g.addChild(new a.MenuItem({label:f?"<a target='_blank' href="+k+">Sign In To "+f+"</a>":"<a target='_blank' href="+k+">Sign In</a>",onKeyDown:function(l){l.keyCode===
13&&window.open(k)},_onClick:function(l){this.getParent().onItemClick(this,l)}}),e)})})(c);else{if(h.login)this.addChild(new a.MenuItem({label:f?"Sign In To "+f:"Sign In",onClick:d.hitch(g,function(j){return function(){j.login(eclipse.globalCommandUtils.notifyAuthenticationSite)}})(h)}),e)}else{var i=this.unauthenticatedServices[c].SignInLocation;i+=i.indexOf("?")==-1?"?redirect="+eclipse.globalCommandUtils.notifyAuthenticationSite+"?key="+c:"&redirect="+eclipse.globalCommandUtils.notifyAuthenticationSite+
"?key="+c;this.addChild(new a.MenuItem({label:f?"<a target='_blank' href="+i+">Sign In To "+f+"</a>":"<a target='_blank' href="+i+">Sign In</a>",onKeyDown:function(j){j.keyCode===13&&window.open(i)},_onClick:function(j){this.getParent().onItemClick(this,j)}}),e)}},renderServices:function(){for(var c=this.getChildren(),e=0;e<c.length;e++)this.removeChild(c[e]);if(this.isSingleService())for(e in this.authenticatedServices)this._renderAuthenticatedService(e,0);this.addChild(new a.MenuItem({label:"<a href="+
b.toUrl("settings/settings.html")+">Settings</a>",onKeyDown:function(f){if(f.keyCode===13)window.location=b.toUrl("settings/settings.html")},_onClick:function(f){this.getParent().onItemClick(this,f)}}));this.addChild(new a.MenuItem({label:"<a href="+b.toUrl("operations/list.html")+">Background Operations</a>",onKeyDown:function(f){if(f.keyCode===13)window.location=b.toUrl("operations/list.html")},_onClick:function(f){this.getParent().onItemClick(this,f)}}));this.addChild(new a.MenuSeparator);this.addChild(new a.MenuItem({label:"<a href="+
b.toUrl("help/index.jsp")+">Help</a>",onKeyDown:function(f){if(f.keyCode===13)window.location=b.toUrl("help/index.jsp")},_onClick:function(f){this.getParent().onItemClick(this,f)}}));this.keyAssistFunction&&this.addChild(new a.MenuItem({label:"Keyboard Help",onClick:this.keyAssistFunction}));this.addChild(new a.MenuItem({label:"<a href='"+b.toUrl("help/about.html")+"'>About Orion</a>",onKeyDown:function(f){if(f.keyCode===13)window.location=b.toUrl("help/about.html")},_onClick:function(f){this.getParent().onItemClick(this,
f)}}))},getUserLabel:function(c){if(c.data){var e=c.data.Name&&c.data.Name.replace(/^\s+|\s+$/g,"")!==""?c.data.Name:c.data.login;if(e.length>40)e=e.substring(0,30)+"...";e+=" ("+c.label+")";return e}else return c.label},setKeyAssist:function(c){this.keyAssistFunction=c;this.renderServices()},addUserItem:function(c,e,f,g){var h=this;if(g){this.unauthenticatedServices[c]&&delete this.unauthenticatedServices[c];this.authenticatedServices[c]={authService:e,label:f,data:g}}else{this.authenticatedServices[c]&&
delete this.authenticatedServices[c];this.unauthenticatedServices[c]=this.unauthenticatedServices[c]?{authService:e,label:f,pending:this.unauthenticatedServices[c].pending}:{authService:e,label:f}}d.hitch(this,this.renderServices)();if(d.byId("userInfo"))if(this.isSingleService()&&g){f=c=g.Name&&g.Name.replace(/^\s+|\s+$/g,"")!==""?g.Name:g.login;if(f.length>40)f=f.substring(0,30)+"...";d.create("a",{innerHTML:f,href:b.toUrl("profile/user-profile.html")+"#"+g.Location,title:"View profile of "+c,style:"margin-right: 0px"},
d.byId("userInfo"),"only")}else if(this.isSingleService()&&!g)if(e.getAuthForm)d.hitch(this,function(j){e.getAuthForm(eclipse.globalCommandUtils.notifyAuthenticationSite).then(function(k){k+=k.indexOf("?")==-1?"?redirect="+eclipse.globalCommandUtils.notifyAuthenticationSite+"?key="+j:"&redirect="+eclipse.globalCommandUtils.notifyAuthenticationSite+"?key="+j;d.create("a",{innerHTML:"Sign In",href:k,title:"Sign In",style:"margin-right: 0px",target:"_blank"},d.byId("userInfo"),"only")})})(c);else{if(e.login){var i=
d.create("a",{innerHTML:"Sign In",title:"Sign In",style:"margin-right: 0px"},d.byId("userInfo"),"only");d.connect(i,"onmouseover",i,function(){i.style.cursor="pointer"});d.connect(i,"onmouseout",i,function(){i.style.cursor="default"});d.connect(i,"onclick",function(){e.login(eclipse.globalCommandUtils.notifyAuthenticationSite)})}}else if(this.hasServices()){i=d.create("a",{innerHTML:"Profiles",style:"margin-right: 0px"},d.byId("userInfo"),"only");d.connect(i,"onmouseover",i,function(){i.style.cursor=
"pointer"});d.connect(i,"onmouseout",i,function(){i.style.cursor="default"});d.connect(i,"onclick",function(){try{a.popup.open({popup:h.options.loginDialog,around:d.byId("userInfo")})}catch(j){}a.focus(h.options.loginDialog.domNode)})}else d.empty(d.byId("userInfo"))}})});
define("orion/globalCommands",["require","dojo","dijit","orion/commonHTMLFragments","orion/commands","orion/parameterCollectors","orion/extensionCommands","orion/util","orion/textview/keyBinding","orion/favorites","dijit/Menu","dijit/MenuItem","dijit/form/DropDownButton","orion/widgets/OpenResourceDialog","orion/widgets/LoginDialog","orion/widgets/UserMenu"],function(b,d,a,c,e,f,g,h,i,j){function k(M){var S=document.createElement("a");S.href=M;return S.href}function l(M,S){if(M.getLabel)return M.getLabel();
else{M=new d.Deferred;M.callback(S.properties.name);return M}}function r(){return N}function o(M){(M=M.getService("orion.page.progress"))&&d.hitch(M,M.init)("progressPane")}function p(M){var S=M.getServiceReferences("orion.core.auth");N=[];var W=d.byId("userMenu");if(W){if(!a.byId("logins")){var t=new a.form.DropDownButton({id:"logins",dropDown:E,label:"Options",showLabel:false,alt:"Options"});d.place(t.domNode,W,"only");t.valueNode&&d.destroy(t.valueNode)}for(W=0;W<S.length;W++){t=S[W];var v=M.getService(t);
d.hitch(this,function(A,K){l(A,K).then(function(O){A.getKey().then(function(Q){N.push(Q);A.getUser().then(function(V){J.addUserItem(Q,A,O,V);E.addUserItem(Q,A,O,V)},function(){J.addUserItem(Q,A,O);E.addUserItem(Q,A,O,jsonData)});window.addEventListener("storage",function(){if(H[Q]!==localStorage.getItem(Q)){H[Q]=localStorage.getItem(Q);A.getUser().then(function(V){J.addUserItem(Q,A,O,V);E.addUserItem(Q,A,O,V)},function(){J.addUserItem(Q,A,O);E.addUserItem(Q,A,O)})}},false)})})})(v,t)}}}function q(M){J.setPendingAuthentication(M);
var S;for(S in M)if(M.hasOwnProperty(S)){if(d.byId("userInfo").innerHTML)try{a.popup.open({popup:J,around:d.byId("userInfo")})}catch(W){}else window.setTimeout(function(){try{a.popup.open({popup:J,around:d.byId("userInfo")})}catch(t){}},500);return}a.popup.hide&&a.popup.hide(J);a.popup.close(J)}function n(M){J.authenticatedService(M)}function m(M,S,W,t,v,A,K){M.closeParameterCollector();if(A=d.byId("pageActions")){d.empty(A);(A=M.renderCommands(A,"dom",W||S,S,"button"))&&A.then?A.then(function(){M.processURL(window.location.href)}):
M.processURL(window.location.href)}if(!K)if(A=d.byId("pageNavigationActions")){d.empty(A);M.renderCommands(A,"dom",v||W||S,t||S,"button")}}function s(){if(d.byId("relatedLinks")){if(L){L.focusedChild=null;d.forEach(L.getChildren(),function(M){L.removeChild(M);M.destroy()});L.destroy()}return L=new a.Menu({style:"display: none;",id:"relatedLinksMenu"})}}function u(M,S){L||(L=new a.Menu({style:"display: none;",id:"relatedLinksMenu"}));M._addMenuItem(L,S);M=a.byId("related");if((S=d.byId("relatedLinks"))&&
!M){M=new a.form.DropDownButton({id:"related",label:"Related pages",dropDown:L});d.place(M.domNode,S,"only");h.forceLayout(S)}}function w(M,S,W,t,v){var A=M.getServiceReferences("orion.page.link.related");if(!(A.length<=0)){var K=d.byId("relatedLinks");if(K){for(var O=s(),Q=false,V=0;V<A.length;V++){for(var ca={},aa=A[V].getPropertyNames(),da=0;da<aa.length;da++)ca[aa[da]]=A[V].getProperty(aa[da]);if(ca.id)if(d.indexOf(W,ca.id)<0){aa=t.findCommand(ca.id);if(!aa){var ia=M.getServiceReferences("orion.navigate.command");
for(da=0;da<ia.length;da++)if(ia[da].getProperty("id")===ca.id){ca={};aa=ia[da].getPropertyNames();for(var ja=0;ja<aa.length;ja++)ca[aa[ja]]=ia[da].getProperty(aa[ja]);da=g._createCommandOptions(ca,ia[da],M,true);aa=new e.Command(da);break}}if(aa)if(!aa.visibleWhen||aa.visibleWhen(S)){Q=true;da=new e.CommandInvocation(t,S,S,null,aa);aa._addMenuItem(O,da)}else typeof v==="function"&&window.setTimeout(d.hitch(aa,function(){d.when(v(),d.hitch(this,function(la){la&&S===T&&this.visibleWhen(la)&&u(this,
new e.CommandInvocation(t,la,la,null,this))}))}),0)}}(M=a.byId("related"))&&M.destroy();if(Q){M=new a.form.DropDownButton({id:"related",label:"Related pages",dropDown:O});d.place(M.domNode,K,"only")}h.forceLayout(K)}}}function x(M,S,W){var t=d.byId("globalActions");if(t){d.empty(t);W=(W=d.isArray(W)?W[0]:W)||S||{};M.renderCommands(t,"global",W,S,"tool")}}function B(M){R=M}function G(M,S,W,t,v){T=M;w(S,M,R,W,t);Z=v}function C(M,S,W,t,v,A,K,O){function Q(){var y=S.getService("orion.core.favorite");
if(!y){y=new j.FavoritesService({serviceRegistry:S});y=S.getService("orion.core.favorite")}if(Z&&Z.Location)y.hasFavorite(Z.ChildrenLocation||Z.Location).then(function(I){if(I)S.getService("orion.page.message").setMessage(Z.Name+" is already a favorite.",2E3);else{y.makeFavorites([Z]);S.getService("orion.page.message").setMessage(Z.Name+" has been added to the favorites list.",2E3)}});else{var F=window.location.pathname+window.location.hash;y.hasFavorite(F).then(function(I){if(I)S.getService("orion.page.message").setMessage(F+
" is already a favorite.",2E3);else{y.addFavoriteUrl(F);S.getService("orion.page.message").setMessage(F+" has been added to the favorites list.",2E3)}})}}var V,ca=d.byId(M);if(!ca)throw"could not find banner parent, id was "+M;d.place(c.topHTMLFragment,ca,"only");if(M=d.byId("pageToolbar")){d.place(c.toolbarHTMLFragment,M,"only");d.addClass(M,"toolComposite")}else{M=d.create("div",{id:"pageToolbar","class":"toolbar toolComposite layoutBlock"},"titleArea","after");d.place(c.toolbarHTMLFragment,M,"only")}W.setParameterCollector(new f.CommandParameterCollector);
d.place('<div id="keyAssist" style="display: none" class="keyAssistFloat" role="list" aria-atomic="true" aria-live="assertive"></div>',document.body,"last");if(M=d.byId("primaryNav")){t=S.getServiceReferences("orion.page.link");for(var aa=0;aa<t.length;aa++){V={};for(var da=t[aa].getPropertyNames(),ia=0;ia<da.length;ia++)V[da[ia]]=t[aa].getProperty(da[ia]);if(V.href&&V.name){da=d.create("a",{href:V.href},M,"last");V=document.createTextNode(V.name);d.place(V,da,"only")}}}var ja=d.byId("search");if(!ja)throw"failed to generate HTML for banner";
d.connect(ja,"onkeypress",function(y){if(y.charOrCode===d.keys.ENTER)if(v){if(ja.value.length>0){y=v.createSearchQuery(ja.value);window.location=b.toUrl("search/search.html")+"#"+y}}else window.alert("Can't search: no search service is available")});if(M=d.byId("pageTitle")){V=document.createTextNode(document.title);d.place(V,M,"last")}if(M=d.byId("pageFavorite")){d.addClass(M,"commandButton");d.connect(M,"onclick",this,function(){Q()});d.connect(M,"onkeypress",this,function(y){if(y.keyCode===d.keys.ENTER||
y.keyCode===d.keys.SPACE)Q()});d.connect(M,"onmouseover",M,function(){d.addClass(this,"commandButtonOver")});d.connect(M,"onfocus",M,function(){d.addClass(this,"commandButtonOver")});d.connect(M,"onmouseout",M,function(){d.removeClass(this,"commandButtonOver")});d.connect(M,"onblur",M,function(){d.removeClass(this,"commandButtonOver")});new e.CommandTooltip({connectId:[M],label:"Add this page to the favorites list",position:["below","left","right","above"],commandParent:ca,commandService:W})}M=new e.Command({name:"Make Favorite",
tooltip:"Add to the favorites list",imageClass:"core-sprite-makeFavorite",id:"orion.makeFavorite",visibleWhen:function(y){y=d.isArray(y)?y:[y];for(var F=0;F<y.length;F++)if(!y[F].Location)return false;return true},callback:function(y){y=d.isArray(y.items)?y.items:[y.items];for(var F=S.getService("orion.core.favorite"),I=function(Y){return function(X){X?S.getService("orion.page.message").setMessage(Y.Name+" is already a favorite.",2E3):F.makeFavorites(Y)}},P=0;P<y.length;P++){var U=y[P];F.hasFavorite(U.ChildrenLocation||
U.Location).then(I(U))}}});W.addCommand(M,"dom");var la=function(y,F,I){var P=F.getService("orion.core.favorite");if(!P){P=new j.FavoritesService({serviceRegistry:F});P=F.getService("orion.core.favorite")}var U=new orion.widgets.OpenResourceDialog({searcher:y,searchRenderer:y.defaultRenderer,favoriteService:P});I&&d.connect(U,"onHide",function(){I.getTextView().focus()});window.setTimeout(function(){U.show()},0)};M=new e.Command({name:"Find File Named...",tooltip:"Choose a file by name and open an editor on it",
id:"eclipse.openResource",callback:function(){la(v,S,K)}});if(K){K.getTextView().setKeyBinding(new i.KeyBinding("f",true,true,false),"Find File Named...");K.getTextView().setAction("Find File Named...",function(){la(v,S,K);return true})}W.addCommand(M,"global");W.registerCommandContribution("eclipse.openResource",100,"globalActions",null,true,new e.CommandKeyBinding("f",true,true));M=new e.Command({name:"Toggle banner and footer",tooltip:"Hide or show the page banner and footer",id:"orion.toggleTrim",
callback:function(){var y=a.byId(ca.parentNode.id);if(y){var F=d.byId("footer");if(ca.style.display==="none"){ca.style.display="block";F.style.display="block"}else{ca.style.display="none";F.style.display="none"}y.layout()}return true}});W.addCommand(M,"global");W.registerCommandContribution("orion.toggleTrim",100,"globalActions",null,true,new e.CommandKeyBinding("m",true,true));if(K){K.getTextView().setKeyBinding(new e.CommandKeyBinding("m",true,true),"Toggle Trim");K.getTextView().setAction("Toggle Trim",
M.callback)}var z=d.byId("keyAssist");d.connect(document,"onkeypress",d.hitch(this,function(y){if(y.charOrCode===d.keys.ESCAPE)z.style.display="none"}));d.connect(document,"onclick",d.hitch(this,function(y){if((y=y.target||y.originalTarget||y.srcElement)&&y.id!=="keyAssist")z.style.display="none"}));K&&K.getTextView().addEventListener("MouseDown",function(){z.style.display="none"});O&&O.addHandler({isActive:function(){return z.style.display==="block"},cancel:function(){if(this.isActive()){z.style.display=
"none";return true}return false}});O=new e.Command({name:"Show Keys",tooltip:"Show a list of all the keybindings on this page",id:"eclipse.keyAssist",callback:function(){if(z.style.display==="none"){d.empty(z);if(K){d.place("<h2>Editor</h2>",z,"last");for(var y=K.getTextView().getActions(false),F=0;F<y.length;F++)for(var I=y[F],P=K.getTextView().getKeyBindings(I),U=0;U<P.length;U++)d.place('<span role="listitem">'+h.getUserKeyString(P[U])+" = "+I+"<br></span>",z,"last")}d.place("<h2>Global</h2>",
z,"last");W.showKeyBindings(z);z.style.display="block"}else z.style.display="none";return true}});W.addCommand(O,"global");W.registerCommandContribution("eclipse.keyAssist",100,"globalActions",null,true,new e.CommandKeyBinding(191,false,true));if(K){M=window.navigator.platform.indexOf("Mac")!==-1;K.getTextView().setKeyBinding(new e.CommandKeyBinding(191,false,true,!M,M),"Show Keys");K.getTextView().setAction("Show Keys",O.callback)}E.setKeyAssist(O.callback);x(W,A,T);if(d.indexOf(R,"eclipse.openWith")<
0)(A=S.getService("orion.file.contenttypes"))&&A.getContentTypesMap().then(function(y){y=g._createOpenWithCommands(S,y);for(var F=0;F<y.length;F++){var I=y[F].properties,P=g._createCommandOptions(I,y[F].service,S,true);P=new e.Command(P);P.isEditor=I.isEditor;W.addCommand(P,"object");W.addCommandGroup("eclipse.openWith",1E3,"Open With");W.registerCommandContribution(P.id,F,null,"eclipse.openWith")}});p(S);if(c.bottomHTMLFragment)(A=d.byId("footer"))&&d.place(c.bottomHTMLFragment,A,"only");o(S);h.forceLayout(ca.parentNode);
d.subscribe("/dojo/hashchange",W,function(){W.processURL(window.location.href)})}var D=k(b.toUrl("auth/NotifyAuthentication.html")),H={},J=new orion.widgets.LoginDialog,E=new orion.widgets.UserMenu({loginDialog:J}),N=[],L,T,R=[],Z=null;return{generateUserInfo:p,generateRelatedLinks:w,generateDomCommandsInBanner:m,generateBanner:C,notifyAuthenticationSite:D,setPendingAuthentication:q,getAuthenticationIds:r,setPageTarget:G,setPageCommandExclusions:B,authenticatedService:n}});
define("dojo/date",["dojo"],function(b){b.getObject("date",true,b);b.date.getDaysInMonth=function(d){var a=d.getMonth();if(a==1&&b.date.isLeapYear(d))return 29;return[31,28,31,30,31,30,31,31,30,31,30,31][a]};b.date.isLeapYear=function(d){d=d.getFullYear();return!(d%400)||!(d%4)&&!!(d%100)};b.date.getTimezoneName=function(d){var a=d.toString(),c="",e=a.indexOf("(");if(e>-1)c=a.substring(++e,a.indexOf(")"));else{e=/([A-Z\/]+) \d{4}$/;if(a=a.match(e))c=a[1];else{a=d.toLocaleString();e=/ ([A-Z\/]+)$/;
if(a=a.match(e))c=a[1]}}return c=="AM"||c=="PM"?"":c};b.date.compare=function(d,a,c){d=new Date(+d);a=new Date(+(a||new Date));if(c=="date"){d.setHours(0,0,0,0);a.setHours(0,0,0,0)}else if(c=="time"){d.setFullYear(0,0,0);a.setFullYear(0,0,0)}if(d>a)return 1;if(d<a)return-1;return 0};b.date.add=function(d,a,c){var e=new Date(+d),f=false,g="Date";switch(a){case "day":break;case "weekday":var h;if(a=c%5){a=a;h=parseInt(c/5)}else{a=c>0?5:-5;h=c>0?(c-5)/5:(c+5)/5}var i=d.getDay(),j=0;if(i==6&&c>0)j=1;
else if(i==0&&c<0)j=-1;i=i+a;if(i==0||i==6)j=c>0?2:-2;c=7*h+a+j;break;case "year":g="FullYear";f=true;break;case "week":c*=7;break;case "quarter":c*=3;case "month":f=true;g="Month";break;default:g="UTC"+a.charAt(0).toUpperCase()+a.substring(1)+"s"}g&&e["set"+g](e["get"+g]()+c);f&&e.getDate()<d.getDate()&&e.setDate(0);return e};b.date.difference=function(d,a,c){a=a||new Date;c=c||"day";var e=a.getFullYear()-d.getFullYear(),f=1;switch(c){case "quarter":d=d.getMonth();a=a.getMonth();d=Math.floor(d/3)+
1;a=Math.floor(a/3)+1;a+=e*4;f=a-d;break;case "weekday":e=Math.round(b.date.difference(d,a,"day"));c=parseInt(b.date.difference(d,a,"week"));f=e%7;if(f==0)e=c*5;else{var g=0,h=d.getDay();a=a.getDay();c=parseInt(e/7);f=e%7;d=new Date(d);d.setDate(d.getDate()+c*7);d=d.getDay();if(e>0)switch(true){case h==6:g=-1;break;case h==0:g=0;break;case a==6:g=-1;break;case a==0:g=-2;break;case d+f>5:g=-2}else if(e<0)switch(true){case h==6:g=0;break;case h==0:g=1;break;case a==6:g=2;break;case a==0:g=1;break;case d+
f<0:g=2}e+=g;e-=c*2}f=e;break;case "year":f=e;break;case "month":f=a.getMonth()-d.getMonth()+e*12;break;case "week":f=parseInt(b.date.difference(d,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()-d.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(d){d={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(d)];return d===undefined?
1:d};b.cldr.supplemental._region=function(d){d=b.i18n.normalizeLocale(d);d=d.split("-");var a=d[1];if(a){if(a.length==4)a=d[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"}[d[0]];return a};b.cldr.supplemental.getWeekend=function(d){var a=b.cldr.supplemental._region(d);d={"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(d===undefined)d=6;if(a===undefined)a=0;return{start:d,end:a}};return b.cldr.supplemental});
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 d(e,f,g,h){return h.replace(/([a-z])\1*/ig,function(i){var j,k,l=i.charAt(0);i=i.length;var r=["abbr","wide","narrow"];switch(l){case "G":j=f[i<4?"eraAbbr":"eraNames"][e.getFullYear()<0?0:1];break;case "y":j=e.getFullYear();switch(i){case 1:break;case 2:if(!g.fullYear){j=String(j);j=j.substr(j.length-
2);break}default:k=true}break;case "Q":case "q":j=Math.ceil((e.getMonth()+1)/3);k=true;break;case "M":j=e.getMonth();if(i<3){j=j+1;k=true}else{l=["months-format",r[i-3]].join("-");j=f[l][j]}break;case "w":j=b.date.locale._getWeekOfYear(e,0);k=true;break;case "d":j=e.getDate();k=true;break;case "D":j=b.date.locale._getDayOfYear(e);k=true;break;case "E":j=e.getDay();if(i<3){j=j+1;k=true}else{l=["days-format",r[i-3]].join("-");j=f[l][j]}break;case "a":j=e.getHours()<12?"am":"pm";j=g[j]||f["dayPeriods-format-wide-"+
j];break;case "h":case "H":case "K":case "k":k=e.getHours();switch(l){case "h":j=k%12||12;break;case "H":j=k;break;case "K":j=k%12;break;case "k":j=k||24;break}k=true;break;case "m":j=e.getMinutes();k=true;break;case "s":j=e.getSeconds();k=true;break;case "S":j=Math.round(e.getMilliseconds()*Math.pow(10,i-3));k=true;break;case "v":case "z":if(j=b.date.locale._getZone(e,true,g))break;i=4;case "Z":j=b.date.locale._getZone(e,false,g);j=[j<=0?"+":"-",b.string.pad(Math.floor(Math.abs(j)/60),2),b.string.pad(Math.abs(j)%
60,2)];if(i==4){j.splice(0,0,"GMT");j.splice(3,0,":")}j=j.join("");break;default:throw new Error("dojo.date.locale.format: invalid pattern char: "+h);}if(k)j=b.string.pad(j,i);return j})}function a(e,f,g,h){var i=function(l){return l};f=f||i;g=g||i;h=h||i;var j=e.match(/(''|[^'])+/g),k=e.charAt(0)=="'";b.forEach(j,function(l,r){if(l){j[r]=(k?g:f)(l.replace(/''/g,"'"));k=!k}else j[r]=""});return h(j.join(""))}function c(e,f,g,h){h=b.regexp.escapeString(h);g.strict||(h=h.replace(" a"," ?a"));return h.replace(/([a-z])\1*/ig,
function(i){var j;j=i.charAt(0);var k=i.length,l="",r="";if(g.strict){if(k>1)l="0{"+(k-1)+"}";if(k>2)r="0{"+(k-2)+"}"}else{l="0?";r="0{0,2}"}switch(j){case "y":j="\\d{2,4}";break;case "M":j=k>2?"\\S+?":"1[0-2]|"+l+"[1-9]";break;case "D":j="[12][0-9][0-9]|3[0-5][0-9]|36[0-6]|"+r+"[1-9][0-9]|"+l+"[1-9]";break;case "d":j="3[01]|[12]\\d|"+l+"[1-9]";break;case "w":j="[1-4][0-9]|5[0-3]|"+l+"[1-9]";break;case "E":j="\\S+";break;case "h":j="1[0-2]|"+l+"[1-9]";break;case "k":j="1[01]|"+l+"\\d";break;case "H":j=
"1\\d|2[0-3]|"+l+"\\d";break;case "K":j="1\\d|2[0-4]|"+l+"[1-9]";break;case "m":case "s":j="[0-5]\\d";break;case "S":j="\\d{"+k+"}";break;case "a":k=g.am||f["dayPeriods-format-wide-am"];l=g.pm||f["dayPeriods-format-wide-pm"];j=k+"|"+l;if(!g.strict){if(k!=k.toLowerCase())j+="|"+k.toLowerCase();if(l!=l.toLowerCase())j+="|"+l.toLowerCase();if(j.indexOf(".")!=-1)j+="|"+j.replace(/\./g,"")}j=j.replace(/\./g,"\\.");break;default:j=".*"}e&&e.push(i);return"("+j+")"}).replace(/[\xa0 ]/g,"[\\s\\xa0]")}b.date.locale._getZone=
function(e,f){return f?b.date.getTimezoneName(e):e.getTimezoneOffset()};b.date.locale.format=function(e,f){f=f||{};var g=b.i18n.normalizeLocale(f.locale),h=f.formatLength||"short";g=b.date.locale._getGregorianBundle(g);var i=[];e=b.hitch(this,d,e,g,f);if(f.selector=="year")return a(g["dateFormatItem-yyyy"]||"yyyy",e);var j;if(f.selector!="date")(j=f.timePattern||g["timeFormat-"+h])&&i.push(a(j,e));if(f.selector!="time")(j=f.datePattern||g["dateFormat-"+h])&&i.push(a(j,e));return i.length==1?i[0]:
g["dateTimeFormat-"+h].replace(/\{(\d+)\}/g,function(k,l){return i[l]})};b.date.locale.regexp=function(e){return b.date.locale._parseInfo(e).regexp};b.date.locale._parseInfo=function(e){e=e||{};var f=b.i18n.normalizeLocale(e.locale);f=b.date.locale._getGregorianBundle(f);var g=e.formatLength||"short",h=e.datePattern||f["dateFormat-"+g],i=e.timePattern||f["timeFormat-"+g];g=e.selector=="date"?h:e.selector=="time"?i:f["dateTimeFormat-"+g].replace(/\{(\d+)\}/g,function(k,l){return[i,h][l]});var j=[];
return{regexp:a(g,b.hitch(this,c,j,f,e)),tokens:j,bundle:f}};b.date.locale.parse=function(e,f){var g=/[\u200E\u200F\u202A\u202E]/g,h=b.date.locale._parseInfo(f),i=h.tokens,j=h.bundle;e=(new RegExp("^"+h.regexp.replace(g,"")+"$",h.strict?"":"i")).exec(e&&e.replace(g,""));if(!e)return null;var k=["abbr","wide","narrow"],l=[1970,0,1,0,0,0,0],r="";e=b.every(e,function(p,q){if(!q)return true;q=i[q-1];var n=q.length;switch(q.charAt(0)){case "y":if(n!=2&&f.strict)l[0]=p;else if(p<100){p=Number(p);n=""+(new Date).getFullYear();
q=n.substring(0,2)*100;n=Math.min(Number(n.substring(2,4))+20,99);l[0]=p<n?q+p:q-100+p}else{if(f.strict)return false;l[0]=p}break;case "M":if(n>2){q=j["months-format-"+k[n-3]].concat();if(!f.strict){p=p.replace(".","").toLowerCase();q=b.map(q,function(s){return s.replace(".","").toLowerCase()})}p=b.indexOf(q,p);if(p==-1)return false}else p--;l[1]=p;break;case "E":case "e":q=j["days-format-"+k[n-3]].concat();if(!f.strict){p=p.toLowerCase();q=b.map(q,function(s){return s.toLowerCase()})}p=b.indexOf(q,
p);if(p==-1)return false;break;case "D":l[1]=0;case "d":l[2]=p;break;case "a":q=f.am||j["dayPeriods-format-wide-am"];n=f.pm||j["dayPeriods-format-wide-pm"];if(!f.strict){var m=/\./g;p=p.replace(m,"").toLowerCase();q=q.replace(m,"").toLowerCase();n=n.replace(m,"").toLowerCase()}if(f.strict&&p!=q&&p!=n)return false;r=p==n?"p":p==q?"a":"";break;case "K":if(p==24)p=0;case "h":case "H":case "k":if(p>23)return false;l[3]=p;break;case "m":l[4]=p;break;case "s":l[5]=p;break;case "S":l[6]=p}return true});
g=+l[3];if(r==="p"&&g<12)l[3]=g+12;else if(r==="a"&&g==12)l[3]=0;g=new Date(l[0],l[1],l[2],l[3],l[4],l[5],l[6]);f.strict&&g.setFullYear(l[0]);var o=i.join("");h=o.indexOf("d")!=-1;o=o.indexOf("M")!=-1;if(!e||o&&g.getMonth()>l[1]||h&&g.getDate()>l[2])return null;if(o&&g.getMonth()<l[1]||h&&g.getDate()<l[2])g=b.date.add(g,"hour",1);return g}})();(function(){var d=[];b.date.locale.addCustomFormats=function(a,c){d.push({pkg:a,name:c})};b.date.locale._getGregorianBundle=function(a){var c={};b.forEach(d,
function(e){e=b.i18n.getLocalization(e.pkg,e.name,a);c=b.mixin(c,e)},this);return c}})();b.date.locale.addCustomFormats("dojo.cldr","gregorian");b.date.locale.getNames=function(d,a,c,e){var f;e=b.date.locale._getGregorianBundle(e);d=[d,c,a];if(c=="standAlone"){c=d.join("-");f=e[c];if(f[0]==1)f=undefined}d[1]="format";return(f||e[d.join("-")]).concat()};b.date.locale.isWeekend=function(d,a){a=b.cldr.supplemental.getWeekend(a);d=(d||new Date).getDay();if(a.end<a.start){a.end+=7;if(d<a.start)d+=7}return d>=
a.start&&d<=a.end};b.date.locale._getDayOfYear=function(d){return b.date.difference(new Date(d.getFullYear(),0,1,d.getHours()),d)+1};b.date.locale._getWeekOfYear=function(d,a){if(arguments.length==1)a=0;var c=(new Date(d.getFullYear(),0,1)).getDay(),e=(c-a+7)%7;e=Math.floor((b.date.locale._getDayOfYear(d)+e-1)/7);c==a&&e++;return e};return b.date.locale});
define("orion/auth",["dojo","dijit","orion/globalCommands","dojo/date/locale","orion/widgets/LoginDialog"],function(b,d,a){function c(g,h){if(g.status===403){if(typeof e==="undefined")e=new d.Dialog({title:"Forbidden access"});var i=g.message;if(g.responseText)i=JSON.parse(g.responseText).Message||g.message;e.set("content",i);e.show()}else if(g.status===401)try{var j=JSON.parse(g.responseText);if(!j.SignInKey)return j;var k=localStorage.getItem(j.SignInKey),l=function(){var p=localStorage.getItem(j.SignInKey);
if(k!==p){window.removeEventListener("storage",l,false);delete f[j.SignInKey];a.setPendingAuthentication(f);a.authenticatedService(j.SignInKey);h&&h()}};window.addEventListener("storage",l,false);if(j.SignInKey){f[j.SignInKey]=j;a.setPendingAuthentication(f)}}catch(r){}else try{return JSON.parse(g.responseText)}catch(o){return{Message:g.Message,HttpCode:g.status}}}var e,f={};b.addOnLoad(function(){window.dojo=b;window.eclipse=window.eclipse||{};eclipse.globalCommandUtils=a});return{handleAuthenticationError:c}});
define("orion/preferences",["require","dojo","orion/auth","dojo/DeferredList"],function(b,d,a){function c(j,k){this._name=j;this._providers=k;this._flushPending=false;this._cached=null;this._stores=[];this._dirty=[]}function e(j,k){return{get:function(l,r){if(k===0)return null;l=localStorage.getItem(j+l);if(l===null)return null;l=JSON.parse(l);if(r||k===-1||l._expires&&l._expires>(new Date).getTime()){delete l._expires;return l}return null},set:function(l,r){if(k!==0){if(k!==-1)r._expires=(new Date).getTime()+
1E3*k;if(Object.keys(r).length===0)localStorage.removeItem(j+l);else{var o=JSON.stringify(r);localStorage.setItem(j+l,o);delete r._expires}}},remove:function(l){localStorage.removeItem(j+l)}}}function f(j){this._currentPromises={};this._cache=new e("/orion/preferences/user",0);this._service=null;this.available=function(){if(!this._service){var k=j.getServiceReferences("orion.core.preference.provider");if(k.length>0)this._service=j.getService(k[0])}return!!this._service}}function g(j){this._location=
j;this._currentPromise=null;this._cache=new e("/orion/preferences/default",3600)}function h(){this._cache=new e("/orion/preferences/local",-1)}function i(j,k){this._userProvider=new f(j);this._localProvider=new h;k=k||"defaults.pref";if(k.indexOf("://")===-1)k=b.toUrl(k);this._defaultsProvider=new g(k);this._serviceRegistration=j.registerService("orion.core.preference",this)}c.prototype={_flush:function(){for(var j=[],k=0;k<this._stores.length;++k){var l=this._stores[k];this._dirty.indexOf(l)!==-1&&
j.push(this._providers[k].put(this._name,l))}this._dirty=[];return new d.DeferredList(j)},_scheduleFlush:function(j){this._dirty.indexOf(j)===-1&&this._dirty.push(j);if(!this._flushPending){this._flushPending=true;window.setTimeout(d.hitch(this,function(){if(this._flushPending){this._flushPending=false;this._flush()}}),0)}},_getCached:function(){if(!this._cached){this._cached={};for(var j=0;j<this._stores.length;++j){var k=this._stores[j];for(var l in k)if(k.hasOwnProperty(l)&&typeof this._cached[l]===
"undefined")this._cached[l]=k[l]}}return this._cached},keys:function(){return Object.keys(this._getCached())},get:function(j){return this._getCached()[j]},put:function(j,k){if(this._stores.length!==0){var l=this._stores[0];if(l[j]!==k){l[j]=k;this._cached=null;this._scheduleFlush(l)}}},remove:function(j){for(var k=0;k<this._stores.length;++k){var l=this._stores[k];if(l.hasOwnProperty(j)){delete l[j];this._cached=null;this._scheduleFlush(l);return true}}return false},clear:function(){for(var j=0;j<
this._stores.length;++j){this._stores[j]={};this._scheduleFlush(this._stores[j])}this._cached=null},sync:function(j){if(this._flushPending){this._flushPending=false;return this._flush()}for(var k=this,l=[],r=0;r<this._providers.length;++r)l.push(this._providers[r].get(this._name,j).then(function(o){return function(p){k._stores[o]=p}}(r)));return(new d.DeferredList(l)).then(function(){k._cached=null;k._getCached()})},flush:function(){this._flush()}};f.prototype={get:function(j,k){if(this._currentPromises[j])return this._currentPromises[j];
var l=new d.Deferred,r=null;if(k)this._cache.remove(j);else r=this._cache.get(j);if(r!==null)l.resolve(r);else{this._currentPromises[j]=l;var o=this;this._service.get(j).then(function(p){o._cache.set(j,p);delete o._currentPromises[j];l.resolve(p)},function(p){if(p.status===401){delete o._currentPromises[j];l.resolve({});a.handleAuthenticationError(p,function(){o.get(j)})}else if(p.status===404){p={};o._cache.set(j,p);delete o._currentPromises[j];l.resolve(p)}else{delete o._currentPromises[j];l.resolve(o._cache.get(j,
true)||{})}})}return l},put:function(j,k){var l=new d.Deferred;this._cache.set(j,k);var r=this;this._service.put(j,k).then(function(){l.resolve()},function(o){o.status===401?a.handleAuthenticationError(o,function(){r._service.put(j,k).then(function(){l.resolve()},function(){l.resolve()})}):l.resolve()});return l}};g.prototype={get:function(j,k){if(this._currentPromise)return this._currentPromise;var l=new d.Deferred,r=null;if(k)this._cache.remove(j);else r=this._cache.get(j);if(r!==null)l.resolve(r);
else{this._currentPromise=l;var o=this;d.xhrGet({url:this._location,headers:{"Orion-Version":"1"},handleAs:"json",timeout:15E3,load:function(p){o._cache.set(j,p[j]||{});o._currentPromise=null;l.resolve(p[j]||{})},error:function(p,q){if(q.xhr.status===401){o._currentPromise=null;l.resolve({});l=new d.Deferred;o._currentPromise=l;var n=this;a.handleAuthenticationError(q.xhr,function(){d.xhrGet(n)})}else if(q.xhr.status===404){o._cache.set(j,{});o._currentPromise=null;l.resolve({})}else{o._currentPromise=
null;p=o._cache.get(j,true);p!==null?l.resolve(p[j]||{}):l.resolve({})}}})}return l},put:function(){var j=new d.Deferred;j.resolve();return j}};h.prototype={get:function(j){var k=new d.Deferred;j=this._cache.get(j);j!==null?k.resolve(j):k.resolve({});return k},put:function(j,k){var l=new d.Deferred;this._cache.set(j,k);l.resolve();return l}};i.DEFAULT_SCOPE=1;i.LOCAL_SCOPE=2;i.USER_SCOPE=4;i.prototype={getPreferences:function(j,k){if(!k||typeof k!=="number"||k>7||k<1)k=i.DEFAULT_SCOPE|i.LOCAL_SCOPE|
i.USER_SCOPE;var l=[];i.USER_SCOPE&k&&this._userProvider.available()&&l.push(this._userProvider);i.LOCAL_SCOPE&k&&l.push(this._localProvider);i.DEFAULT_SCOPE&k&&l.push(this._defaultsProvider);var r=new c(j,l);return r.sync().then(function(){return r})}};return{PreferencesService:i}});
define("orion/pluginregistry",["dojo","orion/serviceregistry","dojo/DeferredList"],function(b,d){var a=a||{};a.Plugin=function(c,e,f){function g(s,u,w,x){if(!l)throw new Error("plugin not connected");var B=q++;n[String(B)]=x;f.postMessage({id:B,serviceId:s,method:u,params:w},l)}function h(s){var u={};if(s.methods)for(var w=0;w<s.methods.length;w++){var x=s.methods[w];u[x]=function(B){return function(){var G=Array.prototype.slice.call(arguments),C=new b.Deferred;k._load().then(function(){g(s.serviceId,
B,G,C)});return C.promise}}(x)}return u}function i(){var s=e.services;if(s)for(var u=0;u<s.length;u++){var w=s[u],x=h(w);m[w.serviceId]=f.registerService(w.type,x,w.properties)}}function j(s){try{if(s.method)if("plugin"===s.method){if(e){if(JSON.stringify(e)!==JSON.stringify(s.params[0])){for(var u in m)if(m.hasOwnProperty(u)){m[u].unregister();delete m[u]}e=s.params[0];i();f.updatePlugin(k)}}else{e=s.params[0];i()}if(!p){p=true;r.resolve(k)}if(o){o.resolve(k);o=null}}else if("dispatchEvent"===s.method){var w=
m[s.serviceId];w.dispatchEvent.apply(w,s.params)}else if("progress"===s.method){var x=n[String(s.requestId)];x.progress.apply(x,s.params)}else throw new Error("Bad response method: "+s.method);else{x=n[String(s.id)];delete n[String(s.id)];s.error?x.reject(s.error):x.resolve(s.result)}}catch(B){console.log(B)}}var k=this,l=null,r=new b.Deferred,o=null,p=false,q=0,n={},m={};this.getLocation=function(){return c};this.getData=function(){return e};this.uninstall=function(){for(var s in m)if(m.hasOwnProperty(s)){m[s].unregister();
delete m[s]}if(l){f.disconnect(l);l=null}f.uninstallPlugin(this)};this.getServiceReferences=function(){var s=[],u;for(u in m)m.hasOwnProperty(u)&&s.push(m[u].getServiceReference());return s};this.update=function(){if(!p)return this._load();var s;if(o===null){s=o=new b.Deferred;f.disconnect(l);l=f.connect(c,j);setTimeout(function(){o===s&&o.reject(new Error("Load timeout for plugin: "+c))},15E3)}return o};this._load=function(s){if(!l){l=f.connect(c,j);setTimeout(function(){if(!p){if(!s){e={};f.updatePlugin(k)}r.reject(new Error("Load timeout for plugin: "+
c))}},15E3)}return r.promise};if(typeof c!=="string")throw new Error("invalid url:"+c);e&&i()};a.PluginRegistry=function(c,e,f){function g(q){if(q.indexOf("://")===-1){var n=document.createElement("a");n.href=q;return n.href}return q}function h(q){delete k["plugin."+q.getLocation()]}function i(q){q.getData()._expires=(new Date).getTime()+36E5;k["plugin."+q.getLocation()]=JSON.stringify(q.getData())}function j(q){q=g(q);for(var n=0,m=l.length;n<m;n++){var s=l[n];if(q===s.getLocation())return s}return null}
var k=e||localStorage||{},l=[],r=[],o=new d.EventTarget;addEventListener("message",function(q){for(var n=0,m=q.source;n<r.length;n++)if(m===r[n].target){if(typeof r[n].useStructuredClone==="undefined")r[n].useStructuredClone=typeof q.data!=="string";r[n].handler(r[n].useStructuredClone?q.data:JSON.parse(q.data));break}},false);var p={registerService:b.hitch(c,c.registerService),connect:function(q,n){var m=document.createElement("iframe");m.id=q;m.name=q;if(!f){m.style.display="none";m.style.visibility=
"hidden"}m.src=q;document.body.appendChild(m);q={iframe:m,target:m.contentWindow,handler:n,url:q};r.push(q);return q},disconnect:function(q){for(var n=0;n<r.length;n++)if(q===r[n]){r.splice(n,1);try{document.body.removeChild(q.iframe)}catch(m){}break}},uninstallPlugin:function(q){h(q);for(var n=0;n<l.length;n++)if(q===l[n]){l.splice(n,1);o.dispatchEvent("pluginRemoved",q);break}},updatePlugin:function(q){i(q);o.dispatchEvent("pluginUpdated",q)},postMessage:function(q,n){n.target.postMessage(n.useStructuredClone?
q:JSON.stringify(q),n.url)}};this.startup=function(q){for(var n=[],m=0;m<q.length;++m){var s=q[m];s=g(s);var u="plugin."+s,w=k[u]?JSON.parse(k[u]):null;if(w&&w._expires&&w._expires>(new Date).getTime()){if(j(s)===null){delete w._expires;l.push(new a.Plugin(s,w,p))}}else{k[u]="{}";s=new a.Plugin(s,{},p);l.push(s);n.push(s._load(false))}}return new b.DeferredList(n)};this.shutdown=function(){for(var q=0;q<r.length;q++)try{document.body.removeChild(r[q].iframe)}catch(n){}};this.installPlugin=function(q,
n){q=g(q);var m=new b.Deferred,s=j(q);if(s)if(s.getData())m.resolve(s);else{var u=function(w){if(w.getLocation()===q){m.resolve(w);o.removeEventListener("pluginAdded",u)}};o.addEventListener("pluginAdded",u)}else{s=new a.Plugin(q,n,p);l.push(s);if(s.getData()){i(s);o.dispatchEvent("pluginAdded",s);m.resolve(s)}else s._load(true).then(function(){i(s);o.dispatchEvent("pluginAdded",s);m.resolve(s)},function(w){m.reject(w)})}return m.promise};this.getPlugins=function(){for(var q=[],n=0;n<l.length;n++)l[n].getData()&&
q.push(l[n]);return q};this.getPlugin=function(q){if((q=j(q))&&q.getData())return q;return null};this.addEventListener=function(q,n){o.addEventListener(q,n)};this.removeEventListener=function(q,n){o.removeEventListener(q,n)}};return a});
define("orion/bootstrap",["require","dojo","orion/serviceregistry","orion/preferences","orion/pluginregistry"],function(b,d,a,c,e){function f(){var g=new a.ServiceRegistry,h=new c.PreferencesService(g),i=new e.PluginRegistry(g);return h.getPreferences("/plugins").then(function(j){j=j.keys();for(var k=0;k<j.length;++k)if(j[k].indexOf("://")===-1)j[k]=b.toUrl(j[k]);return i.startup(j)}).then(function(){if(g.getServiceReferences("orion.core.preference.provider").length>0)return h.getPreferences("/plugins",
h.USER_SCOPE).then(function(j){j=j.keys();for(var k=0;k<j.length;++k)if(j[k].indexOf("://")===-1)j[k]=b.toUrl(j[k]);return i.startup(j)})}).then(function(){d.addOnWindowUnload(function(){i.shutdown()})}).then(function(){return{serviceRegistry:g,preferences:h,pluginRegistry:i}})}return{startup:f}});
define("orion/status",["require","dojo","orion/util"],function(b,d,a){function c(e,f,g,h,i){this._serviceRegistry=e;this._serviceRegistration=e.registerService("orion.page.message",this);this._operationsClient=f;this.notificationContainerDomId=i;this.domId=g;this.progressDomId=h||g;this._hookedClose=false}c.prototype={_init:function(){var e=d.byId("closeNotifications");if(e&&!this._hookedClose){d.connect(e,"onclick",this,function(){this.setProgressMessage("");d.removeClass(this.notificationContainerDomId,
"slideContainerActive")});d.connect(e,"onkeypress",this,function(f){if(f.keyCode===d.keys.ENTER||f.keyCode===d.keys.SPACE){this.setProgressMessage("");d.removeClass(this.notificationContainerDomId,"slideContainerActive")}})}},setMessage:function(e,f){this._init();d.place(window.document.createTextNode(e),this.domId,"only");if(typeof f==="number"){var g=this;window.setTimeout(function(){var h=d.byId(g.domId);(typeof h.textContent==="string"?h.textContent:h.innerText)===e&&d.place(window.document.createTextNode(""),
g.domId,"only")},f)}},setErrorMessage:function(e){this._init();var f=e.responseText||e.message||e;try{f=JSON.parse(f)}catch(g){}e=f.Message||f;var h="red";if(f.Severity)switch(f.Severity){case "Warning":h="#FFCC00";break;case "Error":h="red";break;case "Info":case "Ok":h="green";break}f=d.create("span",{style:{color:h}});d.place(window.document.createTextNode(e),f);d.place(f,this.domId,"only")},setProgressMessage:function(e){this._init();var f=d.create("span",{"class":"imageSprite core-sprite-progress"});
d.place(f,this.progressDomId,"only");d.place(window.document.createTextNode(e),this.progressDomId,"last");d.addClass(this.notificationContainerDomId,"progressNormal");e.length>0?d.addClass(this.notificationContainerDomId,"slideContainerActive"):d.removeClass(this.notificationContainerDomId,"slideContainerActive");a.forceLayout(this.notificationContainerDomId)},setProgressResult:function(e){e=e.responseText||e;try{e=JSON.parse(e)}catch(f){}this._init();var g=e.Message||e,h="imageSprite core-sprite-info",
i="progressInfo",j="progressWarning progressError progressNormal";if(e.Severity)switch(e.Severity){case "Warning":h="imageSprite core-sprite-warning";i="progressWarning";j="progressInfo progressError progressNormal";break;case "Error":h="imageSprite core-sprite-error";i="progressError";j="progressWarning progressInfo progressNormal";break}h=d.create("span",{"class":h});d.place(h,this.progressDomId,"only");if(e.HTML)d.place(g,this.progressDomId,"last");else{d.place(window.document.createTextNode("   "+
g),this.progressDomId,"last");if(i&&this.progressDomId!==this.domId){d.addClass(this.notificationContainerDomId,i);d.removeClass(this.notificationContainerDomId,j)}}d.addClass(this.notificationContainerDomId,"slideContainerActive");a.forceLayout(this.notificationContainerDomId)},showWhile:function(e,f){var g=this;g.setProgressMessage(f);return e.then(function(h){if(h&&h.Location&&h.Message&&h.Running)return d.hitch(g,g._doProgressWhile)(h);g.setProgressMessage("");h&&h.Result&&g.setProgressResult(h.Result);
return h})},_doProgressWhile:function(e){var f=new d.Deferred,g=this;window.setTimeout(function(){g._operationsClient.getOperation(e.Location).then(function(h){f.callback(h)})},2E3);return this.showWhile(f,e.Message)}};c.prototype.constructor=c;return{StatusReportingService:c}});define("text!orion/widgets/templates/OperationsDialog.html",function(){return'\n<div>\n\t<div class="dijitTooltipContainer" role="presentation" style="padding: 0.5em; min-width: 300px;">\n\t\t<div class="dijitTooltipContents dijitTooltipFocusNode" role="dialog"\n\t\t\tdojoattachpoint="containerNode" style="padding: 0">\n\t\t\t<table style="width: 100%;">\n\t\t\t\t<tr>\n\t\t\t\t\t<td><h2>Recent operations</h2></td>\n\t\t\t\t\t<td style="text-align: right;"><a dojoAttachPoint="allOperationsLink">All Operations</a></td>\n\t\t\t\t</tr>\n\t\t\t</table>\n\t\t\t<span dojoAttachPoint="operationsExist">\n\t\t\t\t<span class="secondaryColumn" dojoAttachPoint="myOperationsListEmpty">No operations running on this page.</span>\n\t\t\t\t<table dojoAttachPoint="myOperationsList" style="display: none;">\n\t\t\t\t</table>\n\t\t\t\t<span class="secondaryColumn" dojoAttachPoint="otherOperations"><br>Operations from other pages:</span>\n\t\t\t\t<table dojoAttachPoint="operationsList" style="display: none;">\n\t\t\t\t</table>\n\t\t\t</span>\n\t\t\t<span class="secondaryColumn" dojoAttachPoint="operationsDontExist">No operations running.</span>\n\t\t</div>\n\t</div>\n\t<div class="dijitTooltipConnector" role="presentation"></div>\n\n</div>'});
define("orion/widgets/OperationsDialog",["require","dojo","dijit","orion/util","dijit/TooltipDialog","text!orion/widgets/templates/OperationsDialog.html"],function(b,d,a){d.declare("orion.widgets.OperationsDialog",[a.TooltipDialog],{widgetsInTemplate:true,closable:true,templateString:d.cache("orion","widgets/templates/OperationsDialog.html"),constructor:function(){this.inherited(arguments);this.options=arguments[0]||{};this._operations=[];this._myOperations=[]},postCreate:function(){this.inherited(arguments);
this.allOperationsLink.href=b.toUrl("operations/list.html");this._setOperationsVisibility()},setOperations:function(c,e){this._operations=[];e=e||{};this._myOperations=[];if(c.Children)for(var f=0;f<c.Children.length;f++)e[c.Children[f].Id]?this._myOperations.push(c.Children[f]):this._operations.push(c.Children[f]);this._operations.sort(function(g,h){return parseInt(h.Modified)-parseInt(g.Modified)});this._myOperations.sort(function(g,h){return parseInt(h.Modified)-parseInt(g.Modified)});this._renderOperations()},
parseProgressResult:function(c){if(!c)return{};c=c.responseText||c;try{c=JSON.parse(c)}catch(e){}var f={Message:c.Message||c,Severity:c.Severity};if(c.DetailedMessage&&c.DetailedMessage!==f.Message)f.DetailedMessage=c.DetailedMessage;return f},_renderOperations:function(){this._renderOperationsTable(this.myOperationsList,this._myOperations);this._renderOperationsTable(this.operationsList,this._operations)},_renderOperationsTable:function(c,e){d.empty(c);for(var f=0;f<e.length;f++){var g=e[f],h=d.create("tr"),
i=d.create("td",{style:"padding-left: 5px; padding-right: 5px",innerHTML:g.Name},h);i=d.create("div",null,i,"only");link=d.create("span",{innerHTML:g.Name,className:"primaryColumn"},i,"last");d.place(document.createTextNode(g.Name),link,"only");var j=d.create("span",null,i,"first");d.addClass(j,"imageSprite");var k=this.parseProgressResult(g.Result);switch(k.Severity){case "Warning":d.addClass(j,"core-sprite-warning");break;case "Error":d.addClass(j,"core-sprite-error");break;default:if(g.Running===
true)d.addClass(j,"core-sprite-start");else if(g.Canceled===true)d.addClass(j,"core-sprite-stop");else g.Failed===true?d.addClass(j,"core-sprite-error"):d.addClass(j,"core-sprite-ok")}if(k.Message||g.Message){g=k.Message||g.Message;if(k.DetailedMessage&&k.DetailedMessage!=="")g+=": "+k.DetailedMessage;d.create("br",null,i,"last");d.create("span",{className:"secondaryColumn",style:"margin-left: 18px;",innerHTML:g},i,"last")}d.place(h,c,"last")}this._setOperationsVisibility()},_setOperationsVisibility:function(){this.operationsList.style.display=
this._operations.length>0?"":"none";this.otherOperations.style.display=this._operations.length>0?"":"none";this.myOperationsList.style.display=this._myOperations.length>0?"":"none";this.myOperationsListEmpty.style.display=this._myOperations.length>0?"none":"";this.operationsDontExist.style.display=this._operations.length+this._myOperations.length>0?"none":"";this.operationsExist.style.display=this._operations.length+this._myOperations.length>0?"":"none"},_onBlur:function(){this.inherited(arguments);
a.popup.hide&&a.popup.hide(this);a.popup.close(this)}})});
define("orion/progress",["require","dojo","orion/globalCommands","orion/widgets/OperationsDialog"],function(b,d,a){function c(e,f){this._serviceRegistry=e;this._serviceRegistration=e.registerService("orion.page.progress",this);this._operationsClient=f;this._initDone=false;this._topicListeners={};this._myOperations={};this._lastIconClass=this._lastOperation=null}c.prototype={init:function(e){if(!this._progressPane){this._progressPane=d.byId(e);this._operationsDialog=new orion.widgets.OperationsDialog;
d.connect(this._progressPane,"onclick",d.hitch(this,this._openOperationsPopup));var f=this;if(new Date-this.getLastListUpdate()>3E5)this._operationsClient.getRunningOperations().then(function(g){d.hitch(f,f._loadOperationsList)(g);window.setTimeout(function(){d.hitch(f,f._checkOperationsChanges())},5E3)},function(g){console.error(g)});else{d.hitch(f,f._generateOperationsInfo(JSON.parse(localStorage.getItem("orionOperations")||'{"Children": []}')));window.setTimeout(function(){d.hitch(f,f._checkOperationsChanges())},
5E3)}window.addEventListener("storage",function(g){a.getAuthenticationIds().indexOf(g.key)>=0&&f._operationsClient.getRunningOperations().then(function(h){d.hitch(f,f._loadOperationsList)(h)},function(h){console.error(h)})},false);window.addEventListener("storage",function(g){if(g.key==="orionOperations")d.hitch(f,f._generateOperationsInfo(JSON.parse(localStorage.getItem("orionOperations")||'{"Children": []}')))})}},_loadOperationsList:function(e){e.lastClientDate=new Date;if(e.lastClientDate-this.getLastListUpdate()>
3E5){localStorage.setItem("orionOperations",JSON.stringify(e));this._generateOperationsInfo(e)}},getLastListUpdate:function(){var e=JSON.parse(localStorage.getItem("orionOperations")||'{"Children": []}');return e.lastClientDate?new Date(e.lastClientDate):new Date(0)},_markOperationAsFailed:function(e,f,g){e.Message="Operation status is unknown";e.Running=false;e.Failed=true;e.Result={HttpCode:g?g.xhr.staus:500,Severity:f,Message:f.Message?f.Message:f};this.writeOperation(e)},_checkOperationsChanges:function(){for(var e=
this,f=JSON.parse(localStorage.getItem("orionOperations")||'{"Children": []}'),g=[],h=[],i=0;i<f.Children.length;i++){var j=f.Children[i];if(j.Running==true&&new Date-new Date(j.lastClientDate?j.lastClientDate:0)>5E3){var k=this._operationsClient.getOperation(j.Location);h.push(k);d.hitch(this,function(l){k.then(function(r){r.lastClientDate=new Date;d.hitch(e,e.writeOperation)(r)},function(r,o){if(r.status==404){g.push(l);return r}d.hitch(e,e._markOperationAsFailed(f.Children[l],r,o))})})(i)}if(!j.Running&&
new Date-new Date(j.lastClientDate?j.lastClientDate:0)>3E5)g.push(i)}(new d.DeferredList(h)).addBoth(function(){if(g.length>0){f.lastClientDate=new Date;for(var l=g.length-1;l>=0;l--)f.Children.splice(g[l],1);localStorage.setItem("orionOperations",JSON.stringify(f));d.hitch(e,e._generateOperationsInfo)(f)}window.setTimeout(function(){d.hitch(e,e._checkOperationsChanges())},5E3)})},_openOperationsPopup:function(){try{dijit.popup.open({popup:this._operationsDialog,around:this._progressPane})}catch(e){}dijit.focus(this._operationsDialog.domNode)},
_switchIconTo:function(e){this._lastIconClass&&d.removeClass(this._progressPane,this._lastIconClass);this._lastIconClass=e;d.addClass(this._progressPane,this._lastIconClass)},_generateOperationsInfo:function(e){this._operationsDialog.setOperations(e,this._myOperations);if(!e.Children||e.Children.length==0){this._switchIconTo("progressPane_empty");this._progressPane.title="Operations"}else{for(var f="",g=0;g<e.Children.length;g++){var h=e.Children[g];if(this._myOperations[h.Id])if(h.Running==true){f=
"running";break}}if(f===""&&this._lastOperation!=null)if(this._lastOperation.Result)switch(this._operationsDialog.parseProgressResult(this._lastOperation.Result).Severity){case "Warning":if(f!=="error")f="warning";break;case "Error":f="error"}switch(f){case "running":this._progressPane.title="Operations running";this._switchIconTo("progressPane_running");break;case "warning":this._progressPane.title="Some operations finished with warning";this._switchIconTo("progressPane_warning");break;case "error":this._progressPane.title=
"Some operations finished with error";this._switchIconTo("progressPane_error");break;default:this._progressPane.title="Operations";this._switchIconTo("progressPane_operations")}}},followOperation:function(e,f,g){if(e.Id)this._myOperations[e.Id]=true;var h=f?f:new d.Deferred;this.writeOperation(e);var i=this;if(e&&e.Location&&e.Running==true)window.setTimeout(function(){i._operationsClient.getOperation(e.Location).then(function(j){d.hitch(i,i.followOperation(j,h,e.Location))},function(j,k){d.hitch(i,
i.setProgressResult)({Severity:"Error",Message:j});d.hitch(i,i._markOperationAsFailed(e,j,k));h.errback(j,k)})},2E3);else if(e&&e.Result){i._serviceRegistry.getService("orion.page.message").setProgressMessage("");f=this._operationsDialog.parseProgressResult(e.Result).Severity;if(f=="Error"||f=="Warning"){e.Result.failedOperation={Location:g,Id:e.Id,Name:e.Name};h.callback(e);setTimeout(function(){i._myOperations[e.Id]&&d.hitch(i,i._openOperationsPopup)()},10)}else h.callback(e);!e.Failed&&e.Idempotent==
true&&window.setTimeout(function(){d.hitch(i,i.removeOperation)(g,e.Id)},5E3)}return h},removeOperation:function(e,f){that=this;if(f){if(this._lastOperation!=null&&this._lastOperation.Id===f)this._lastOperation=null;delete this._myOperations[f]}d.hitch(that._operationsClient,that._operationsClient.removeOperation)(e).then(function(){d.hitch(that,that.removeOperationFromTheList)(f)})},removeOperationFromTheList:function(e){if(this._lastOperation!=null&&this._lastOperation.Id===e)this._lastOperation=
null;delete this._myOperations[e];for(var f=JSON.parse(localStorage.getItem("orionOperations")||'{"Children": []}'),g=0;g<f.Children.length;g++){var h=f.Children[g];if(h.Id&&h.Id===e){f.Children.splice(g,1);break}}localStorage.setItem("orionOperations",JSON.stringify(f));this._generateOperationsInfo(f)},removeCompletedOperations:function(){for(var e=JSON.parse(localStorage.getItem("orionOperations")||'{"Children": []}'),f=e.Children.length-1;f>=0;f--)e.Children[f].Running||e.Children.splice(f,1);
localStorage.setItem("orionOperations",JSON.stringify(e));this._generateOperationsInfo(e)},setProgressResult:function(e){this._serviceRegistry.getService("orion.page.message").setProgressResult(e)},showWhile:function(e,f){f&&this._serviceRegistry.getService("orion.page.message").setProgressMessage(f);var g=this;return e.then(function(h){if(h&&h.Location&&h.Message&&h.Running)return d.hitch(g,g.followOperation)(h,null,h.Location);g._serviceRegistry.getService("orion.page.message").setProgressMessage("");
return h},function(h){d.hitch(g,g.setProgressResult)(h);return h})},followTopic:function(e,f){this._topicListeners[e]||(this._topicListeners[e]=[]);this._topicListeners[e].push(f)},writeOperation:function(e){this._lastOperation=e=JSON.parse(JSON.stringify(e));for(var f=JSON.parse(localStorage.getItem("orionOperations")||'{"Children": []}'),g=0;g<f.Children.length;g++){var h=f.Children[g];if(h.Id&&h.Id===e.Id){f.Children.splice(g,1);break}}!e.Running&&!e.Failed&&delete e.Result;e.lastClientDate=new Date;
f.Children.push(e);f.lastClientDate=new Date;localStorage.setItem("orionOperations",JSON.stringify(f));this._generateOperationsInfo(f)}};c.prototype.constructor=c;return{ProgressService:c}});
define("orion/fileClient",["dojo","orion/auth","dojo/DeferredList"],function(b,d){function a(f,g,h){if(!f[g])throw g+" is not supportted in this file system";var i=new b.Deferred;f[g].apply(f,h).then(function(j){i.callback(j)},function(j){j.status===401?d.handleAuthenticationError(j,function(){f[g].apply(f,h).then(function(k){i.callback(k)},function(k){i.errback(k)})}):i.errback(j)});return i}function c(f,g,h,i){if(!f.readBlob)throw"source file service does not support binary read";if(!h.writeBlob)throw"target file service does not support binary write";
if(g[g.length-1]!=="/")return a(f,"readBlob",[g]).then(function(l){return a(h,"writeBlob",[i,l])});var j=i.substring(0,i.length-1),k=decodeURIComponent(j.substring(j.lastIndexOf("/")+1));j=j.substring(0,j.lastIndexOf("/")+1);return a(h,"createFolder",[j,k]).then(function(){},function(){}).then(function(){if(g.indexOf("/")===0)g+="?depth=1";return a(f,"fetchChildren",[g]).then(function(l){for(var r=[],o=0;o<l.length;++o){var p=l[o].Location,q=p;if(l[o].Directory)q=p.substring(0,p.length-1);q=decodeURIComponent(q.substring(q.lastIndexOf("/")+
1));q=i+encodeURIComponent(q);if(l[o].Directory)q+="/";r[o]=c(f,p,h,q)}return new b.DeferredList(r)})})}function e(f,g){function h(n){var m=new b.Deferred;m.reject("No Matching FileService for location:"+n);return m}var i=f.getServiceReferences("orion.core.file"),j=i;if(g){j=[];for(var k=0;k<i.length;++k)g(i[k])&&j.push(i[k])}var l=[],r=[],o=[],p=[],q={fetchChildren:function(){var n=new b.Deferred;n.resolve(p);return n},createWorkspace:function(){var n=new b.Deferred;n.reject("no file service");return n},
loadWorkspaces:function(){var n=new b.Deferred;n.reject("no file service");return n},loadWorkspace:function(){var n=new b.Deferred;window.setTimeout(function(){n.resolve({Directory:true,Length:0,LocalTimeStamp:0,Name:"File Servers",Location:"/",Children:p,ChildrenLocation:"/"})},100);return n},search:h,createProject:h,createFolder:h,createFile:h,deleteFile:h,moveFile:h,copyFile:h,read:h,write:h};for(g=0;g<j.length;++g){p[g]={Directory:true,Length:0,LocalTimeStamp:0,Location:j[g].getProperty("top"),
ChildrenLocation:j[g].getProperty("top"),Name:j[g].getProperty("Name")};i=j[g].getProperty("pattern")||".*";if(i[0]!=="^")i="^"+i;l[g]=new RegExp(i);r[g]=f.getService(j[g]);o[g]=j[g].getProperty("Name")}this._getServiceIndex=function(n){if(n==="/")return-1;else if(!n||n.length&&n.length===0)return 0;for(var m=0;m<l.length;++m)if(l[m].test(n))return m;throw"No Matching FileService for location:"+n;};this._getService=function(n){n=this._getServiceIndex(n);return n===-1?q:r[n]};this._getServiceName=
function(n){n=this._getServiceIndex(n);return n===-1?q.Name:o[n]}}e.prototype={fileServiceName:function(f){return this._getServiceName(f)},fetchChildren:function(f){return a(this._getService(f),"fetchChildren",arguments)},createWorkspace:function(){return a(this._getService(),"createWorkspace",arguments)},loadWorkspaces:function(){return a(this._getService(),"loadWorkspaces",arguments)},loadWorkspace:function(f){return a(this._getService(f),"loadWorkspace",arguments)},createProject:function(f){return a(this._getService(f),
"createProject",arguments)},createFolder:function(f){return a(this._getService(f),"createFolder",arguments)},createFile:function(f){return a(this._getService(f),"createFile",arguments)},deleteFile:function(f){return a(this._getService(f),"deleteFile",arguments)},moveFile:function(f,g,h){var i=this._getService(f),j=this._getService(g);if(i===j)return a(i,"moveFile",arguments);var k=f[f.length-1]==="/",l=g;if(l[l.length-1]!=="/")l+="/";if(h)l+=encodeURIComponent(h);else{var r=f;if(k)r=r.substring(0,
r.length-1);l+=r.substring(r.lastIndexOf("/")+1)}if(k&&l[l.length-1]!=="/")l+="/";return c(i,f,j,l).then(function(){return a(i,"deleteFile",[f])})},copyFile:function(f,g){var h=this._getService(f),i=this._getService(g);if(h===i)return a(h,"copyFile",arguments);var j=f[f.length-1]==="/",k=g;if(k[k.length-1]!=="/")k+="/";var l=f;if(j)l=l.substring(0,l.length-1);k+=l.substring(l.lastIndexOf("/")+1);if(j&&k[k.length-1]!=="/")k+="/";return c(h,f,i,k)},read:function(f){return a(this._getService(f),"read",
arguments)},write:function(f){return a(this._getService(f),"write",arguments)},remoteImport:function(f){return a(this._getService(f),"remoteImport",arguments)},remoteExport:function(f){return a(this._getService(f),"remoteExport",arguments)},search:function(f){return a(this._getService(f),"search",arguments)}};e.prototype.constructor=e;return{FileClient:e}});
define("orion/operationsClient",["dojo","orion/auth","dojo/DeferredList"],function(b,d){function a(k,l,r){var o=new b.Deferred;k[l].apply(k,r).then(function(p){o.callback(p)},function(p){p.status===401?d.handleAuthenticationError(p,function(){k[l].apply(k,r).then(function(q){o.callback(q)},function(q){o.errback(q)})}):o.errback(p)});return o}function c(k,l){return a(k,"getOperations",[l])}function e(k){this._location=k}function f(){var k=new b.Deferred;k.errback("No Matching OperationService for location:"+
this._location);return k}function g(k){this._services=[];this._patterns=[];this._operationListeners=[];this._currentLongpollingIds=[];for(var l=k.getServiceReferences("orion.core.operation"),r=0;r<l.length;r++){var o=k.getService(l[r]);this._services[r]=o;o=l[r].getProperty("pattern")||".*";if(o[0]!=="^")o="^"+o;this._patterns[r]=new RegExp(o)}this._getService=function(p){if(!p)return this._services[0];for(var q=0;q<this._patterns.length;++q)if(this._patterns[q].test(p))return this._services[q];return new e(p)}}
function h(k){if(k.length===1){if(k[0][0])return k[0][1];console.error(k[0][1]);return{Children:[]}}for(var l={Children:[]},r=0;r<k.length;r++)if(k[r][0]){if(k[r][1]&&k[r][1].Children)l.Children=l.Children.concat(k[r][1].Children)}else console.error(k[r][1]);return l}function i(k,l,r){var o=this,p={Longpolling:true};if(r)p.LongpollingId=r;a(k,"getOperations",[p]).then(function(q){if(!(r&&o._currentLongpollingIds.indexOf(r)<0)){l(q,r);if(q.LongpollingId){o._currentLongpollingIds.push(q.LongpollingId);
b.hitch(o,i)(k,l,q.LongpollingId)}else b.hitch(o,i)(k,l,r)}},function(q){r&&o._currentLongpollingIds.indexOf(r)<0||("timeout"===q.dojoType?b.hitch(o,i)(k,l,r):setTimeout(function(){b.hitch(o,i)(k,l,r)},2E3))})}function j(k){for(var l=0;l<this._operationListeners.length;l++)this._operationListeners[l](k)}e.prototype={getOperation:f,getOperations:f,removeCompletedOperations:f,removeOperation:f,cancelOperation:f};e.prototype.constructor=e;g.prototype={getOperations:function(){var k=new b.Deferred,l=
[];if(this._services.length<1){k.errback("No operations services registered.");return k}for(var r=0;r<this._services.length;r++)l[r]=c(this._services[r]);(new b.DeferredList(l)).then(function(o){k.resolve(h(o))});return k},getRunningOperations:function(){var k=new b.Deferred,l=[];if(this._services.length<1){k.errback("No operations services registered.");return k}for(var r=0;r<this._services.length;r++)l[r]=c(this._services[r],{RunningOnly:true});(new b.DeferredList(l)).then(function(o){k.resolve(h(o))});
return k},getOperation:function(k){return a(this._getService(k),"getOperation",arguments)},removeCompletedOperations:function(){var k=[];if(this._services.length<1){result.errback("No operations services registered.");return result}for(var l=0;l<this._services.length;l++)k[l]=a(this._services[l],"removeCompletedOperations");return new b.DeferredList(k)},removeOperation:function(k){return a(this._getService(k),"removeOperation",arguments)},cancelOperation:function(k){return a(this._getService(k),"cancelOperation",
arguments)},addOperationChangeListener:function(k){this._operationListeners.push(k);if(this._operationListeners.length===1){if(this._services.length<1)throw"No operations services registered.";for(k=0;k<this._services.length;k++)b.hitch(this,i)(this._services[k],b.hitch(this,j))}},removeOperationChangeListener:function(k){for(var l=0;l<this._operationListeners.length;l++)if(this._operationListeners[l]===k){this._operationListeners.splice(l,1);break}if(this._operationListeners.length===0)this._currentLongpollingIds=
[]},resetChangeListeners:function(){this._currentLongpollingIds=[];if(this._services.length<1)throw"No operations services registered.";for(var k=0;k<this._services.length;k++)b.hitch(this,i)(this._services[k],b.hitch(this,j))}};g.prototype.constructor=g;return{OperationsClient:g}});
define("orion/searchUtils",["require","dojo","orion/editor/regex"],function(b,d,a){var c=c||{};c.searchUtils=c.searchUtils||{};c.searchUtils.parseQueryStr=function(e){var f=e.indexOf("?"),g=e.indexOf("q=");if(f<g&&g>0)e=e.substring(f+1);f=e.split("&");e={queryStr:e,start:0,rows:10,sort:"Path asc",replace:null};for(g=0;g<f.length;g++){var h=f[g].indexOf("q="),i=f[g].indexOf("replace=");if(h>=0)c.searchUtils.parseLocationAndSearchStr(f[g].substring(h+2),e);else if(i>=0)e.replace=f[g].substring(i+8);
else{h=f[g].split("=");if(h.length===2)if(h[0]==="rows")e.rows=parseInt(h[1]);else if(h[0]==="start")e.start=parseInt(h[1]);else if(h[0]==="sort")e.sort=h[1]}}return e};c.searchUtils.copyQueryParams=function(e,f){return{sort:e.sort,rows:e.rows,start:e.start,searchStr:e.searchStr,location:e.location,replace:f?e.replace:null}};c.searchUtils.generateSearchHref=function(e){return b.toUrl("search/search.html")+"#"+c.searchUtils.generateSearchQuery(e)};c.searchUtils.generateSearchQuery=function(e){var f=
"Path asc",g=40,h=0,i="",j="",k="";if(e){if(e.sort)f=e.sort;if(e.rows)g=e.rows;if(e.start)h=e.start;if(e.searchStr){i=e.searchStr;i=i.split(" ").join("")}if(e.location){j=e.location;if(j.length>0&&j[j.length-1]!=="*")j+="*";if(j!=="")j="+Location:"+j}if(e.replace!==null&&e.replace!==undefined)k="&replace="+e.replace}return"?sort="+f+"&rows="+g+"&start="+h+"&q="+i+j+k};c.searchUtils.parseLocationAndSearchStr=function(e,f){var g=e.indexOf("+Location:")>-1;f.location="";f.searchStr=e;if(g){e=e.split("+Location:");
if(e.length===2){g=e[1];if(g.length>0&&g[g.length-1]==="*")g=g.substring(0,g.length-1);f.location=g;f.searchStr=e[0].split(" ").join("")}}f.searchStrTitle=f.searchStr.split("\\").join("");f.inFileQuery=c.searchUtils.generateInFileQuery(f.searchStr)};c.searchUtils.generateInFileQuery=function(e){var f={},g=e.indexOf("*")>-1,h=e.indexOf("?")>-1;if(g)e=e.split("*").join(".*");if(h)e=e.split("?").join(".");if(!g&&!h){f.searchStr=e.split("\\").join("").toLowerCase();f.wildCard=false}else{f.searchStr=e.toLowerCase();
if(g=a.parse("/"+f.searchStr+"/")){e=g.pattern;g=g.flags;g+=g.indexOf("i")===-1?"i":"";f.regExp={pattern:e,flags:g};f.wildCard=true}}f.searchStrLength=f.searchStr.length;return f};c.searchUtils.replaceRegEx=function(e,f,g){return e.replace(new RegExp(f.pattern,f.flags),g)};c.searchUtils.replaceStringLiteral=function(e,f,g){f=a.parse("/"+f+"/gim");return c.searchUtils.replaceRegEx(e,f,g)};c.searchUtils.searchOnelineLiteral=function(e,f,g){var h;h=0;for(var i=false,j=[];;){h=f.indexOf(e.searchStr,h);
if(h<0)break;else{j.push({startIndex:h});i=true;if(g)break;h=h+e.searchStrLength}}if(i)return j;return null};c.searchUtils.findRegExp=function(e,f,g,h){if(!f)return null;g=g||"";g+=(g.indexOf("g")===-1?"g":"")+(g.indexOf("m")===-1?"m":"");var i=null;return(i=(new RegExp(f,g)).exec(e.substring(h)))&&{startIndex:i.index+h,length:i[0].length}};c.searchUtils.searchOnelineRegEx=function(e,f,g){for(var h=0,i=false,j=[];;)if(h=c.searchUtils.findRegExp(f,e.regExp.pattern,e.regExp.flags,h)){j.push(h);i=true;
if(g)break;h=h.startIndex+h.length}else break;if(i)return j;return null};c.searchUtils.generateNewContents=function(e,f,g,h,i){if(g&&e){var j;j=f.length>0?true:false;for(var k=0;k<e.length;k++){for(var l=e[k],r=false,o=false,p=[],q,n=0,m=0;m<g.children.length;m++)if(g.children[m].lineNumber-1===k){n=m;for(r=0;r<g.children[m].matches.length;r++)g.children[m+r].checked!==false&&p.push(r);o=p.length>0;q=g.children[m].matches;r=true;break}if(r){if(o){p=c.searchUtils.replaceCheckedMatches(l,h,q,p,i);l=
p.replacedStr;for(r=0;r<g.children[n].matches.length;r++)g.children[n+r].newMatches=p.newMatches}else{l=l;for(r=0;r<g.children[n].matches.length;r++)g.children[n+r].newMatches=g.children[n+r].matches}if(j)f[k]=l;else f.push(l)}else j||f.push(l)}}};c.searchUtils.generateMatchContext=function(e,f,g){var h=[],i=e*2+1,j;if(f.length<=i){j=0;e=f.length-1}else{j=g-e;if(j<0){j=0;e=j+i-1}else{e=g+e;if(e>f.length-1){e=f.length-1;j=e-i+1}}}for(i=j;i<=e;i++)h.push({context:f[i],current:i===g});return h};c.searchUtils.searchWithinFile=
function(e,f,g,h,i){g=g.split(h);if(i)f.contents=g;if(f){f.children=[];for(var j=h=0;j<g.length;j++){var k=g[j];if(k&&k.length>0){var l=k.toLowerCase();if(l=e.wildCard?c.searchUtils.searchOnelineRegEx(e,l):c.searchUtils.searchOnelineLiteral(e,l)){var r=j+1;if(i)for(var o=0;o<l.length;o++){var p=o+1;p={parent:f,checked:f.checked,type:"detail",matches:l,lineNumber:r,matchNumber:p,name:k,location:f.location+"-"+r+"-"+p};f.children.push(p)}else{p={parent:f,context:c.searchUtils.generateMatchContext(2,
g,j),checked:f.checked,type:"detail",matches:l,lineNumber:r,name:k,linkLocation:f.linkLocation+",line="+r,location:f.location+"-"+r};f.children.push(p)}h+=l.length}}}f.totalMatches=h}};c.searchUtils.replaceCheckedMatches=function(e,f,g,h,i){i=i;for(var j=0,k="",l=[],r=0;r<g.length;r++){if(j!==g[r].startIndex)k+=e.substring(j,g[r].startIndex);if(g[r].length)i=g[r].length;j=false;for(var o=0;o<h.length;o++)if(h[o]===r){j=true;break}if(j){l.push({startIndex:k.length,length:f.length});k+=f}else{l.push({startIndex:k.length,
length:i});k+=e.substring(g[r].startIndex,g[r].startIndex+i)}j=g[r].startIndex+i}if(j<e.length-1)k+=e.substring(j);return{replacedStr:k,newMatches:l}};c.searchUtils.fullPathNameByMeta=function(e){var f=e.length,g="";if(f>0)for(f=f-1;f>-1;f--)g=g+(g===""?"":"/")+e[f].Name;return g};c.searchUtils.path2FolderName=function(e,f,g){return e.substring(0,e.length-f.length-(g?0:1))};return c.searchUtils});
define("dijit/layout/BorderContainer",["dojo","dijit","dijit/layout/_LayoutWidget","dojo/cookie","dijit/_Templated"],function(b,d){b.declare("dijit.layout.BorderContainer",d.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 e=this.isLeftToRight();if(c=="leading")c=e?"left":"right";if(c=="trailing")c=e?"right":"left";if(c!="center"&&(a.splitter||this.gutters)&&!a._splitterWidget){var f=b.getObject(a.splitter?this._splitterClass:"dijit.layout._Gutter");e=new f({id:a.id+"_splitter",container:this,child:a,region:c,live:this.liveSplitters});e.isSplitter=
true;a._splitterWidget=e;b.place(e.domNode,a.domNode,"after");e.startup()}a.region=c}},layout:function(){this._layoutChildren()},addChild:function(){this.inherited(arguments);this._started&&this.layout()},removeChild:function(a){var c=a.region,e=a._splitterWidget;if(e){e.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 e=b.map(this.getChildren(),function(g,h){return{pane:g,weight:[g.region=="center"?Infinity:0,g.layoutPriority,(this.design=="sidebar"?1:-1)*(/top|bottom/.test(g.region)?1:-1),h]}},this);e.sort(function(g,h){g=g.weight;h=h.weight;for(var i=0;i<g.length;i++)if(g[i]!=h[i])return g[i]-h[i];return 0});var f=[];b.forEach(e,function(g){g=g.pane;f.push(g);g._splitterWidget&&f.push(g._splitterWidget)});
d.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(d._Widget,{region:"",layoutPriority:0,splitter:false,minSize:0,maxSize:Infinity});b.declare("dijit.layout._Splitter",[d._Widget,d._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],e=b.filter(this.container.getChildren(),function(f){return f.region=="center"})[0];a=b.marginBox(e.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,e=this.horizontal,f=e?"pageY":"pageX",g=a[f],h=this.domNode.style;e=e?"h":"w";var i=b.marginBox(this.child.domNode)[e],j=this._computeMaxSize(),k=this.child.minSize||20;e=this.region;var l=e==
"top"||e=="bottom"?"top":"left",r=parseInt(h[l],10),o=this._resize,p=b.hitch(this.container,"_layoutChildren",this.child.id);e=b.doc;this._handlers=(this._handlers||[]).concat([b.connect(e,"onmousemove",this._drag=function(q,n){q=q[f]-g;var m=c*q+i,s=Math.max(Math.min(m,j),k);if(o||n)p(s);h[l]=q+r+c*(s-m)+"px"}),b.connect(e,"ondragstart",b.stopEvent),b.connect(b.body(),"onselectstart",b.stopEvent),b.connect(e,"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,e=1,f=b.keys;switch(a.charOrCode){case c?f.UP_ARROW:f.LEFT_ARROW:e*=-1;case c?f.DOWN_ARROW:f.RIGHT_ARROW:break;default:return}c=b._getMarginSize(this.child.domNode)[c?"h":"w"]+this._factor*e;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",[d._Widget,d._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 d.layout.BorderContainer});
define("orion/searchClient",["require","dojo","dijit","orion/auth","orion/util","orion/searchUtils","dijit/form/Button","dijit/layout/BorderContainer","dijit/layout/ContentPane"],function(b,d,a,c,e,f){function g(h){this.registry=h.serviceRegistry;this._commandService=h.commandService;(this._fileService=h.fileService)||console.error("No file service on search client")}g.prototype={search:function(h,i,j){i=f.parseQueryStr(h);try{this._fileService.search(i.location,h).then(function(l){var r=l.responseHeader.params.q;
r=r.substring(r.indexOf("}")+1);j(function(o){for(var p=[],q=0;q<o.response.docs.length;q++){var n=o.response.docs[q];p.push({name:n.Name,path:n.Location,folderName:f.path2FolderName(n.Path,n.Name),directory:n.Directory,lineNumber:n.LineNumber})}return p}(l),r)})}catch(k){this.registry.getService("orion.page.message").setErrorMessage(k)}},handleError:function(h,i){console.error(h);var j=document.createTextNode(h);d.place(j,i,"only");return h},setLocationByMetaData:function(h,i){var j="",k=null;if(i&&
h&&h.Parents&&h.Parents.length>0)k=i.index==="last"?h.Parents[h.Parents.length-1]:h.Parents[0];else if(h&&h.Directory&&h.Location&&h.Parents)k=h;if(k){this.setLocationByURL(k.Location);j=k.Name}else if(h)j=this._fileService.fileServiceName(h&&h.Location);if((h=d.byId("search"))&&h.placeholder)h.placeholder=j.length>23?"Search "+j.substring(0,20)+"...":"Search "+j;if(h&&h.title)h.title="Type a keyword or wild card to search in "+j},setLocationByURL:function(h){this.location=h},createSearchQuery:function(h,
i,j,k){j||(j="Path");j+=" asc";if(i){h=/\*$/.test(i)?"":"*";return f.generateSearchQuery({sort:j,rows:100,start:0,searchStr:"Name:"+this._luceneEscape(i,true)+h})}return f.generateSearchQuery({sort:j,rows:40,start:0,searchStr:this._luceneEscape(h,true),location:k?"":this.location})},_luceneEscape:function(h,i){var j="";i='+-&|!(){}[]^"~:\\'+(!i?"*?":"");for(var k=0;k<h.length;k++){var l=h.charAt(k);if(i.indexOf(l)>=0)j+="\\";j+=l}return j},defaultRenderer:{makeRenderFunction:function(h,i,j,k){function l(r,
o){var p=function(){function B(D,H){D.appendChild(document.createTextNode(" - "+(H.folderName?H.folderName:H.path)+" "))}function G(D,H){var J=H.name;if(C.hasOwnProperty(J)){B(D,H);var E=C[J];if(typeof E==="function"){C[J]=null;E()}}else C[J]=function(){B(D,H)}}var C={};return G}(),q=false;d.empty(h);if(r&&r.length>0){for(var n=document.createElement("table"),m=0;m<r.length;m++){var s=r[m],u;if(!q){q=true;if(i){u=n.insertRow(0).insertCell(0);u.innerHTML=i}}u=n.insertRow(-1).insertCell(0);u.colspan=
2;k&&k(u);var w=document.createElement("a");d.place(document.createTextNode(s.name),w);s.LineNumber&&d.place(document.createTextNode(" (Line "+s.LineNumber+")"),w);var x=s.location;if(s.isExternalResource)x=s.path;else{x=s.directory?b.toUrl("navigate/table.html")+"#"+s.path:b.toUrl("edit/edit.html")+"#"+s.path;if(x==="#")x=""}w.setAttribute("href",x);d.style(w,"verticalAlign","middle");u.appendChild(w);p(u,s)}d.place(n,h,"last");typeof j==="function"&&j(h)}if(!q)if(o){r=d.place("<div>No matches found for </div>",
h,"only");r=d.create("b",null,r,"last");d.place(document.createTextNode(o),r,"only");typeof j==="function"&&j(h)}}return l}}};g.prototype.constructor=g;return{Searcher:g}});define("orion/dialogs",[],function(){function b(d){this._serviceRegistry=d;this._serviceRegistration=d.registerService("orion.page.dialog",this)}b.prototype={confirm:function(d,a){a(window.confirm(d))},openFiles:function(){}};b.prototype.constructor=b;return{DialogService:b}});
define("orion/siteService",["require","dojo","orion/auth"],function(b,d,a){function c(e){this._serviceRegistration=e.registerService("org.eclipse.orion.sites.siteManagement",this);var f=this.getContext();e=e.getServiceReferences("orion.core.file");for(var g=0;g<e.length;g++){var h=e[g].getProperty("top");if(h&&this.toFullUrl(h).indexOf(f)===0){this.filePrefix=h;break}}}c.prototype={getSiteConfigurations:function(){return this._doServiceCall("getSiteConfigurations",arguments)},loadSiteConfiguration:function(){return this._doServiceCall("loadSiteConfiguration",
arguments)},createSiteConfiguration:function(){return this._doServiceCall("createSiteConfiguration",arguments)},updateSiteConfiguration:function(){return this._doServiceCall("updateSiteConfiguration",arguments)},deleteSiteConfiguration:function(){return this._doServiceCall("deleteSiteConfiguration",arguments)},_serviceImpl:{getSiteConfigurations:function(){var e=b.toUrl("site._");e=e.substring(0,e.length-2);return d.xhrGet({url:e,preventCache:true,headers:{"Orion-Version":"1"},handleAs:"json",timeout:15E3}).then(function(f){return f.SiteConfigurations})},
loadSiteConfiguration:function(e){return d.xhrGet({url:e,headers:{"Orion-Version":"1"},handleAs:"json",timeout:15E3})},createSiteConfiguration:function(e,f,g,h){function i(j){return j.replace(/ /g,"-").replace(/[^A-Za-z0-9-_]/g,"").toLowerCase()}e={Name:e,Workspace:f,HostHint:i(e)};if(g)e.Mappings=g;if(h)e.HostHint=h;g=b.toUrl("site._");g=g.substring(0,g.length-2);return d.xhrPost({url:g,postData:d.toJson(e),headers:{"Content-Type":"application/json; charset=utf-8","Orion-Version":"1"},handleAs:"json",
timeout:15E3})},updateSiteConfiguration:function(e,f){return d.xhrPut({url:e,putData:d.toJson(f),headers:{"Content-Type":"application/json; charset=utf-8","Orion-Version":"1"},handleAs:"json",timeout:15E3})},deleteSiteConfiguration:function(e){return d.xhrDelete({url:e,headers:{"Orion-Version":"1"},handleAs:"json",timeout:15E3})}},_doServiceCall:function(e,f){var g=this._serviceImpl,h=this._serviceImpl[e],i=new d.Deferred;h.apply(g,f).then(function(j){i.callback(j)},function(j){j.status===401||j.status===
403?a.handleAuthenticationError(j,function(){h.apply(g,f).then(function(k){i.callback(k)},function(k){i.errback(k)})}):i.errback(j)});return i},_makeHostRelative:function(e){if(e.indexOf(":")!==-1)return e.substring(e.indexOf(window.location.host)+window.location.host.length);return e},getContext:function(){var e=this.toFullUrl(b.toUrl("._"));return e.substring(0,e.length-2)},toFullUrl:function(e){var f=document.createElement("a");f.href=e;return f.href},makeRelativeFilePath:function(e){var f=this._makeHostRelative(this.filePrefix);
e=this._makeHostRelative(e);var g;if(e.indexOf(f)===0)g=e.substring(f.length);if(g[g.length-1]==="/")g=g.substring(0,g.length-1);return g},makeFullFilePath:function(e){function f(h){return d.filter(h,function(i){return i!==""})}var g=b.toUrl(this.filePrefix+e+"._");g=g.substring(0,g.length-2);e=e.split("/");if(f(e).length===1)g+="/";return this.toFullUrl(g)}};c.prototype.constructor=c;return{SITE_SERVICE_NAME:"org.eclipse.orion.sites.siteManagement",SiteService:c}});
define("orion/siteUtils",["require","dojo","orion/commands","orion/util"],function(b,d,a,c){function e(j){return b.toUrl("sites/site.html")+"#"+c.makeRelative(j.Location)}function f(j){j=d.queryToObject(j);var k=d.mixin({},j);for(var l in j)if(j.hasOwnProperty(l))if(j[l]===""&&l!=="action"&&l!=="actionDetails"){k.site=l;delete k[l]}return k}function g(j,k,l){var r={};if(j)r[j]="";if(k)r.action=k;if(l)r.actionDetails=l;return d.objectToQuery(r)}function h(j,k,l,r,o,p,q,n){var m=new a.Command({name:"Edit",
tooltip:"Edit the site configuration",imageClass:"core-sprite-edit",id:"eclipse.site.edit",visibleWhen:function(s){return s.HostingStatus},hrefCallback:function(s){return e(s.items)}});j.addCommand(m,"object");m=new a.Command({name:"Start",tooltip:"Start the site",imageClass:"core-sprite-start",id:"eclipse.site.start",visibleWhen:function(s){return s.HostingStatus&&s.HostingStatus.Status==="stopped"},callback:function(s){var u=s.userData||{};u.HostingStatus={Status:"started"};s=k.updateSiteConfiguration(s.items.Location,
u);l.showWhile(s,"Starting...").then(o,n)}});j.addCommand(m,"object");j.addCommand(m,"dom");m=new a.Command({name:"Stop",tooltip:"Stop the site",imageClass:"core-sprite-stop",id:"eclipse.site.stop",visibleWhen:function(s){return s.HostingStatus&&s.HostingStatus.Status==="started"},callback:function(s){var u=s.userData||{};u.HostingStatus={Status:"stopped"};u=k.updateSiteConfiguration(s.items.Location,u);l.showWhile(u,"Stopping "+s.items.Name+"...").then(p,n)}});j.addCommand(m,"object");j.addCommand(m,
"dom");m=new a.Command({name:"Delete",tooltip:"Delete the site configuration",imageClass:"core-sprite-delete",id:"eclipse.site.delete",visibleWhen:function(s){return s.HostingStatus&&s.HostingStatus.Status==="stopped"},callback:function(s){r.confirm("Are you sure you want to delete the site configuration '"+s.items.Name+"'?",function(u){u&&k.deleteSiteConfiguration(s.items.Location).then(q,n)})}});j.addCommand(m,"object")}var i={};i.generateEditSiteHref=e;i.parseStateFromHash=f;i.stateToHash=g;i.createSiteCommands=
h;return i});
define("orion/siteTree",["dojo","orion/siteUtils"],function(b,d){var a={};a.sites={};a.sites.SiteTreeModel=function(){function c(e,f){this._siteService=e;this._root={};this._id=f}c.prototype={getRoot:function(e){e(this._root)},getChildren:function(e,f){if(e.children)f(e.children);else if(e===this._root)this._siteService.getSiteConfigurations().then(function(g){e.children=g;f(g)});else return f([])},getId:function(e){return e===this._root||e===this._id?this._id:e.Id}};return c}();a.sites.SiteRenderer=function(){function c(e){this._commandService=
e}c.prototype={initTable:function(e,f){this.tableTree=f;b.addClass(e,"treetable");f=b.create("thead",null);b.create("th",{innerHTML:"Name"},f,"last");b.create("th",{innerHTML:"Status"},f,"last");b.create("th",{innerHTML:"Actions"},f,"last");e.appendChild(f)},render:function(e,f){b.style(f,"verticalAlign","baseline");b.addClass(f,"treeTableRow");var g=b.create("td",{id:f.id+"col1"}),h=b.create("td",{id:f.id+"col2"}),i=b.create("td",{id:f.id+"col3"}),j=d.generateEditSiteHref(e);j=b.create("a",{href:j},
g,"last");b.place(document.createTextNode(e.Name),j,"last");j=e.HostingStatus;if(typeof j==="object")if(j.Status==="started"){b.place(document.createTextNode("Started at "),h,"last");var k=b.create("a",null,h,"last");b.place(document.createTextNode(j.URL),k,"only");k.href=j.URL}else{j=j.Status.substring(0,1).toUpperCase()+j.Status.substring(1);b.place(document.createTextNode(j),h,"only")}else b.place(document.createTextNode("Unknown"),h,"only");this._commandService.renderCommands(b.create("span",
{id:f.id+"actionswrapper"},i,"only"),"object",e,{},"tool");b.place(g,f,"last");b.place(h,f,"last");b.place(i,f,"last")},rowsChanged:function(){b.query(".treeTableRow").forEach(function(e,f){if(f%2){b.addClass(e,"darkTreeTableRow");b.removeClass(e,"lightTreeTableRow")}else{b.addClass(e,"lightTreeTableRow");b.removeClass(e,"darkTreeTableRow")}})},labelColumnIndex:0};return c}();return a.sites});
define("orion/treetable",["dojo"],function(b){function d(a){this._init(a)}d.prototype={_init:function(a){var c=a.parent,e=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._onCollapse=a.onCollapse;this._labelColumnIndex=a.labelColumnIndex===undefined?
0:a.labelColumnIndex;this._id=a.id===undefined?"treetable":a.id;this._tableStyle=a.tableStyle;this._root=this._treeModel.getRoot(function(f){if(this._showRoot){f._depth=0;this._generate([f],0)}else e._treeModel.getChildren(f,function(g){e._generate(g,0)})})},_generate:function(a,c){b.empty(this._parent);var e=document.createElement("table");e.id=this._id;this._tableStyle&&b.addClass(e,this._tableStyle);this._renderer.initTable(e,this);var f=document.createElement("tbody");f.id=this._id+"tbody";this._generateChildren(a,
c,f,"last");e.appendChild(f);this._parent.appendChild(e);this._rowsChanged()},_generateChildren:function(a,c,e,f){for(var g in a){var h=document.createElement("tr");h.id=this._treeModel.getId(a[g]);h._depth=c;h._item=a[g];this._renderer.render(a[g],h);b.style(h.childNodes[this._labelColumnIndex],"paddingLeft",this._indent*c+"px");b.place(h,e,f);if(f==="after")e=h}},_rowsChanged:function(){this._renderer.rowsChanged&&this._renderer.rowsChanged()},getSelected:function(){return this._renderer.getSelected()},
refresh:function(a,c,e,f,g,h){var i=this._treeModel.getId(a),j;if(i===this._id){this._removeChildRows(i);this._generateChildren(c,0,b.byId(i+"tbody"),"last");this._rowsChanged()}else{var k=b.byId(i);if(k){k._item=a;if(k&&(e||k._expanded)){k._expanded=true;this._removeChildRows(i);this._renderer.updateExpandVisuals(k,true);if(c){this._generateChildren(c,k._depth+1,k,"after");this._rowsChanged();if(f&&g){a=b.byId(f);b.addClass(a,g);h&&b.removeClass(a,h)}}else{j=this;c=this._treeModel.getChildren(k._item,
function(l){j._generateChildren(l,k._depth+1,k,"after");j._rowsChanged()})}}else this._renderer.updateExpandVisuals(k,false)}else console.log("could not find table row "+i)}},refreshAndExpand:function(a,c,e,f,g){this.refresh(a,c,true,e,f,g)},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,e,f){var g=b.byId(a);if(g)if(g._expanded){this.collapse(a);if(c){a=b.byId(c);b.addClass(a,f);b.removeClass(a,e)}}else{this.expand(a);
if(c){a=b.byId(c);b.addClass(a,e);b.removeClass(a,f)}}},isExpanded:function(a){if(a=b.byId(a))return a._expanded;return false},expand:function(a,c,e){a=typeof a==="string"?a:this._treeModel.getId(a);var f=b.byId(a);if(f)if(!f._expanded){f._expanded=true;var g=this;this._renderer.updateExpandVisuals(f,true);this._treeModel.getChildren(f._item,function(h){g._generateChildren(h,f._depth+1,f,"after");g._rowsChanged();c&&c.apply(this,e)})}},_removeChildRows:function(a){b.byId(this._id);var c=a===this._id,
e=false,f=-1,g=[];b.query(".treeTableRow").forEach(function(j){if(!e)if(c)if(j._depth>f)g.push(j);else e=true;else if(j.id===a){c=true;f=j._depth}});for(var h in g){var i=g[h];i.parentNode.removeChild(i)}},collapse:function(a){a=typeof a==="string"?a:this._treeModel.getId(a);var c=b.byId(a);if(c){if(!c._expanded)return;c._expanded=false;this._renderer.updateExpandVisuals(c,false);this._removeChildRows(a);this._rowsChanged()}this._onCollapse&&this._onCollapse(c._item)}};d.prototype.constructor=d;return{TableTree:d}});
define("orion/explorer",["require","dojo","orion/treetable"],function(b,d,a){var c={};c.Explorer=function(){function e(f,g,h){this.registry=f;this.renderer=h;this.selection=g;this.myTree=null}e.prototype={changedItem:function(f,g){d.hitch(this.myTree,this.myTree.refreshAndExpand)(f,g)},updateCommands:function(f){this.myTree&&d.hitch(this.myTree._renderer,this.myTree._renderer.updateCommands(f))},makeNewItemPlaceHolder:function(f,g,h){f=this.getRow(f);if(h){f=f.childNodes[h];d.place("<br><span id='"+
g+"placeHolderRow'></span>",f,"last");if(h=d.byId(g+"placeHolderRow"))return{tempNode:h,refNode:h}}if(f){d.place("<tr id='"+g+"placeHolderRow'><td id='"+g+"placeHolderCol'></td>",f,"after");h=d.byId(g+"placeHolderRow");f=d.byId(g+"placeHolderCol");if(h&&f)return{tempNode:h,refNode:f}}return null},getRow:function(f){if(f=this.model.getId(f))return d.byId(f)},createTree:function(f,g,h){var i=f+"innerTree",j=d.byId(i);j&&d.destroy(j);if(g)g.rootId=i;this.model=g;this.myTree=new a.TableTree({id:i,model:g,
showRoot:false,parent:f,labelColumnIndex:this.renderer.getLabelColumnIndex(),renderer:this.renderer,indent:h?h.indent:undefined,onCollapse:h?h.onCollapse:undefined,tableStyle:"mainPadding"});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 e}();c.ExplorerModel=function(){function e(f,g){this.rootPath=f;this.fetchItems=g}e.prototype={destroy:function(){},getRoot:function(f){this.fetchItems(this.rootPath).then(d.hitch(this,
function(g){this.root=g;f(g)}))},getChildren:function(f,g){if(f.Children)g(f.Children);else f.ChildrenLocation?this.fetchItems(f.ChildrenLocation).then(d.hitch(this,function(h){f.Children=h;g(h)})):g([])},getId:function(f){if(f.Location===this.root.Location)return this.rootId;f=f.Location.replace(/[\\\/]/g,"");for(var g="",h=0;h<f.length;h++)g+=f[h].match(/[^\.\:\-\_0-9A-Za-z]/g)?f.charCodeAt(h):f[h];return g}};return e}();c.ExplorerFlatModel=function(){function e(f,g,h){this.rootPath=f;this.fetchItems=
g;this.root=h}e.prototype=new c.ExplorerModel;e.prototype.getRoot=function(f){this.root?f(this.root):this.fetchItems(this.rootPath).then(d.hitch(this,function(g){this.root=g;f(g)}))};e.prototype.getChildren=function(f,g){f===this.root?g(this.root):g([])};return e}();c.ExplorerRenderer=function(){function e(f,g){this.explorer=g;this._init(f);this._expandImageClass="core-sprite-twistie_open";this._collapseImageClass="core-sprite-twistie_closed";this._twistieSpriteClass="modelDecorationSprite"}e.prototype=
{getLabelColumnIndex:function(){return this.explorer.checkbox?1:0},initTable:function(f,g){this.tableTree=g;d.empty(f);d.addClass(f,"treetable");this.renderTableHeader(f)},getActionsColumn:function(f,g,h,i){h=h||"tool";var j=this.explorer.registry.getService("orion.page.command"),k=document.createElement("td");k.id=g.id+"actionswrapper";i&&d.addClass(k,i);j.renderCommands(k,"object",f,this.explorer,h,false,null,"commandActiveItem","commandInactiveItem");return k},initCheckboxColumn:function(){if(this._useCheckboxSelection)return document.createElement("th")},
getCheckboxColumn:function(f,g){if(this._useCheckboxSelection){var h=document.createElement("td"),i=document.createElement("span");i.id=this.getCheckBoxId(g.id);d.addClass(i,"core-sprite-check selectionCheckmarkSprite");i.itemId=g.id;if(this.getCheckedFunc){i.checked=this.getCheckedFunc(f);this._highlightSelection&&d.toggleClass(g,"checkedRow",i.checked);d.toggleClass(i,"core-sprite-check_on",i.checked)}h.appendChild(i);d.connect(i,"onclick",d.hitch(this,function(j){this.onCheck(g,j.target,j.target.checked?
false:true,true)}));return h}},getCheckBoxId:function(f){return f+"selectedState"},onCheck:function(f,g,h,i){g.checked=h;this._highlightSelection&&f&&d.toggleClass(f,"checkedRow",h);d.toggleClass(g,"core-sprite-check_on",h);this.onCheckedFunc&&this.onCheckedFunc(g.itemId,h,i);this._storeSelections();this.explorer.selection&&this.explorer.selection.setSelections(this.getSelected())},_storeSelections:function(){var f=this.getSelectedIds(),g=this._getUIStatePreferencePath();if(g&&window.sessionStorage)window.sessionStorage[g+
"selection"]=JSON.stringify(f)},_restoreSelections:function(f){f=window.sessionStorage[f+"selection"];if(typeof f==="string")f=f.length>0?JSON.parse(f):null;var g;if(f)for(g=0;g<f.length;g++){var h=d.byId(f[g]);if(h){this._highlightSelection&&d.addClass(h,"checkedRow");if(h=d.byId(this.getCheckBoxId(h.id))){h.checked=true;d.addClass(h,"core-sprite-check_on")}}}f=this.getSelected();this.explorer.selection&&this.explorer.selection.setSelections(f)},_storeExpansions:function(f){window.sessionStorage[f+
"expanded"]=JSON.stringify(this._expanded)},_restoreExpansions:function(f){var g=false,h=window.sessionStorage[f+"expanded"];if(typeof h==="string")h=h.length>0?JSON.parse(h):null;var i;if(h)for(i=0;i<h.length;i++)if(d.byId(h[i])){this._expanded.push(h[i]);this.tableTree.expand(h[i],d.hitch(this,function(){this._restoreSelections(f)}));g=true}return!g},_getUIStatePreferencePath:function(){if(this.explorer){var f=this.explorer.getRootPath();if(this._cachePrefix&&f)return"/"+this._cachePrefix+"/"+f.replace(/[^\.\:\-\_0-9A-Za-z]/g,
"")+"/uiState"}return null},expandCollapseImageId:function(f){return f+"__expand"},updateExpandVisuals:function(f,g){if(f=d.byId(this.expandCollapseImageId(f.id))){d.addClass(f,g?this._expandImageClass:this._collapseImageClass);d.removeClass(f,g?this._collapseImageClass:this._expandImageClass)}},getExpandImage:function(f,g,h,i){var j=d.create("span",{id:this.expandCollapseImageId(f.id)},g,"last");d.addClass(j,this._twistieSpriteClass);d.addClass(j,this._collapseImageClass);if(h){g=d.create("span",
null,g,"last");d.addClass(g,i||"imageSprite");d.addClass(g,h)}j.onclick=d.hitch(this,function(){this.tableTree.toggle(f.id,this.expandCollapseImageId(f.id),this._expandImageClass,this._collapseImageClass);if(this.tableTree.isExpanded(f.id))this._expanded.push(f.id);else for(var k in this._expanded)if(this._expanded[k]===f.id){this._expanded.splice(k,1);break}(k=this._getUIStatePreferencePath())&&window.sessionStorage&&this._storeExpansions(k)});return j},render:function(f,g){g.cellSpacing="8px";this.renderRow(f,
g)},getSelected:function(){var f=[];d.query(".core-sprite-check_on").forEach(d.hitch(this,function(g){f.push(this.tableTree.getItem(g.parentNode.parentNode))}));return f},getSelectedIds:function(){var f=[];d.query(".core-sprite-check_on").forEach(d.hitch(this,function(g){f.push(g.parentNode.parentNode.id)}));return f},rowsChanged:function(){this._decorateAlternatingLines&&d.query(".treeTableRow").forEach(function(f,g){if(g%2){d.addClass(f,"darkTreeTableRow");d.removeClass(f,"lightTreeTableRow")}else{d.addClass(f,
"lightTreeTableRow");d.removeClass(f,"darkTreeTableRow")}});this.explorer.selection&&this.explorer.selection.setSelections(this.getSelected())},updateCommands:function(){var f=this.explorer.registry;d.query(".treeTableRow").forEach(function(g){var h=d.byId(g.id+"actionswrapper");d.empty(h);f.getService("orion.page.command").renderCommands(h,"object",g._item,this.explorer,"tool")})},_init:function(f){if(f){this._useCheckboxSelection=f.checkbox===undefined?false:f.checkbox;this._colums=f.colums||[];
this._cachePrefix=f.cachePrefix;this.getCheckedFunc=f.getCheckedFunc;this.onCheckedFunc=f.onCheckedFunc;this._highlightSelection=true;if(f.highlightSelection===false)this._highlightSelection=false;this._decorateAlternatingLines=true;if(f.decorateAlternatingLines===false)this._decorateAlternatingLines=false}},_initializeUIState:function(){this._expanded=[];var f=this._getUIStatePreferencePath();f&&window.sessionStorage&&this._restoreExpansions(f)&&this._restoreSelections(f)}};return e}();c.SelectionRenderer=
function(){function e(f,g){this._init(f);this.explorer=g}e.prototype=new c.ExplorerRenderer;e.prototype.renderTableHeader=function(f){var g=document.createElement("thead"),h=document.createElement("tr");d.addClass(g,"navTableHeading");this._useCheckboxSelection&&h.appendChild(this.initCheckboxColumn(f));for(var i=0,j=this.getCellHeaderElement(i);j;){j.innerHTML.length>0&&d.addClass(j,"navColumn");h.appendChild(j);j=this.getCellHeaderElement(++i)}g.appendChild(h);f.appendChild(g)};e.prototype.renderRow=
function(f,g){d.style(g,"verticalAlign","baseline");d.addClass(g,"treeTableRow");var h=this.getCheckboxColumn(f,g);if(h){d.addClass(h,"checkColumn");g.appendChild(h)}h=0;for(var i=this.getCellElement(h,f,g);i;){g.appendChild(i);d.addClass(i,"secondaryColumn");i=this.getCellElement(++h,f,g)}};e.prototype.getCellHeaderElement=function(){};e.prototype.getCellElement=function(){};return e}();return c});
define("orion/siteMappingsTable",["require","dojo","dijit","orion/util","orion/commands","orion/explorer"],function(b,d,a,c,e,f){function g(j,k){for(var l in k)if(k.hasOwnProperty(l))j[l]=k[l]}function h(j){return/^\//.test(j)}var i={};i.Model=function(){function j(k,l,r){this.rootPath=k;this.fetchItems=l;this.items=r}j.prototype=new f.ExplorerFlatModel;g(j.prototype,{getId:function(k){return k===this.root?this.rootId:"mapping_"+this.items.indexOf(k)}});return j}();i.Renderer=function(){function j(k,
l){this._init(k);this.options=k;this.explorer=l}j.prototype=new f.SelectionRenderer;g(j.prototype,{getCellHeaderElement:function(k){switch(k){case 0:k=d.create("th",{innerHTML:" "});d.addClass(k,"isValidColumn");return k;case 1:return d.create("th",{innerHTML:"Path"});case 2:return d.create("th",{innerHTML:"Mount at (server path)"});case 3:return d.create("th",{innerHTML:"Actions"})}},getCellElement:function(k,l,r){switch(k){case 0:return this.getIsValidCell(k,l,r);case 1:k=d.create("td");r=d.create("input");
d.addClass(r,"pathInput");r.value=l.FriendlyPath;r.onchange=d.hitch(this,function(o){this.options.onchange(l,"FriendlyPath",o.target.value,o)});d.place(r,k);return k;case 2:k=d.create("td");r=d.create("input");d.addClass(r,"serverPathInput");r.value=l.Source;r.onchange=d.hitch(this,function(o){this.options.onchange(l,"Source",o.target.value,o)});d.place(r,k);return k;case 3:return this.getActionsColumn(l,r)}},getIsValidCell:function(k,l){k=l.Target;var r=document.createElement("td"),o;if(h(k)){k=
this.options.siteService.makeFullFilePath(k);o=c.safeText(k);r.innerHTML='<span class="validating">&#8230;</span>';d.xhrGet({url:k,headers:{"Orion-Version":"1"},handleAs:"json"}).then(function(){r.innerHTML='<a href="'+o+'" target="_new"><span class="imageSprite core-sprite-folder" title="Workspace folder '+o+'"/></a>'},function(){r.innerHTML='<a href="'+o+'" target="_new"><span class="imageSprite core-sprite-error" title="Workspace folder not found: '+o+'"/></a>'})}else{o=c.safeText(k);r.innerHTML=
'<a href="'+o+'" target="_new"><span class="imageSprite core-sprite-link" title="External link to '+o+'"/></a>'}d.addClass(r,"isValidCell");return r}});return j}();i.MappingsTable=function(){function j(k,l,r,o,p,q){this.registry=k;this.commandService=k.getService("orion.page.command");this.registerCommands();this.siteService=l;this.parentId=o;this.selection=r;this.renderer=new i.Renderer({checkbox:false,onchange:d.hitch(this,this.fieldChanged),siteService:l},this);this.myTree=null;this.siteConfiguration=
p;this.projectsPromise=q;this.setDirty(false)}j.prototype=new f.Explorer;g(j.prototype,{startup:function(){var k=d.hitch(this,function(){var l=new d.Deferred;l.callback(this.siteConfiguration.Mappings);return l});d.when(this.projectsPromise,d.hitch(this,function(l){this.projects=l;this.siteConfiguration.Mappings=d.map(this.siteConfiguration.Mappings,d.hitch(this,function(r){return this.createMappingObject(r.Source,r.Target)}));this.createTree(this.parentId,new i.Model(null,k,this.siteConfiguration.Mappings))}))},
render:function(){this.changedItem(this.siteConfiguration.Mappings,this.siteConfiguration.Mappings)},registerCommands:function(){this.commandService.addCommand(new e.Command({name:"Delete",imageClass:"core-sprite-delete",id:"eclipse.site.mappings.remove",visibleWhen:function(k){return k.Source&&k.Target},callback:d.hitch(this,function(k){this.deleteMapping(k.items);this.render();this.setDirty(true)})}),"object");this.commandService.registerCommandContribution("eclipse.site.mappings.remove",0);this.commandService.addCommand(new e.Command({name:"Move Up",
imageClass:"core-sprite-move_up",id:"eclipse.site.mappings.moveUp",visibleWhen:d.hitch(this,function(k){return k.Source&&k.Target}),callback:d.hitch(this,function(k){var l=this.getItemIndex(k.items);if(l!==0){var r=this.siteConfiguration.Mappings[l-1];this.siteConfiguration.Mappings[l-1]=k.items;this.siteConfiguration.Mappings[l]=r;this.render();this.setDirty(true)}})}),"object");this.commandService.registerCommandContribution("eclipse.site.mappings.moveUp",1);this.commandService.addCommand(new e.Command({name:"Move Down",
imageClass:"core-sprite-move_down",id:"eclipse.site.mappings.moveDown",visibleWhen:d.hitch(this,function(k){return k.Source&&k.Target}),callback:d.hitch(this,function(k){var l=this.getItemIndex(k.items);if(l!==this.siteConfiguration.Mappings.length-1){var r=this.siteConfiguration.Mappings[l+1];this.siteConfiguration.Mappings[l+1]=k.items;this.siteConfiguration.Mappings[l]=r;this.render();this.setDirty(true)}})}),"object");this.commandService.registerCommandContribution("eclipse.site.mappings.moveDown",
2)},getItemIndex:function(k){return this.siteConfiguration.Mappings.indexOf(k)},_addMapping:function(k,l,r){k=this.safePath(typeof k==="string"?k:this.getNextMountPoint(r));l=this.safePath(typeof l==="string"?l:"/");this.mappingExists(k,l)||this.siteConfiguration.Mappings.push(this.createMappingObject(k,l))},addMapping:function(k,l,r){this._addMapping(k,l,r);this.render();this.setDirty(true)},addMappings:function(k){for(var l=0;l<k.length;l++)this._addMapping(k[l].Source,k[l].Target);this.render();
this.setDirty(true)},mappingExists:function(k,l){if(typeof k==="object"&&typeof l==="undefined"){l=k.Target;k=k.Source}for(var r=this.siteConfiguration.Mappings,o=0;o<r.length;o++)if(r[o].Source===k&&r[o].Target===l)return true;return false},getNextMountPoint:function(k){for(var l=this.siteConfiguration.Mappings,r=false,o=0;o<l.length;o++)if(l[o].Source==="/"){r=true;break}if(!r)return"/";if(!k)return"/web/somePath";k=k.split("/");for(o=k.length-1;o>=0;o--)if(!/\s+/.test(k[o]))return"/"+k[o];return"/web/somePath"},
createMappingObject:function(k,l){return{Source:k,Target:l,FriendlyPath:this.toFriendlyPath(l)}},deleteMapping:function(k){k=this.siteConfiguration.Mappings.indexOf(k);k!==-1&&this.siteConfiguration.Mappings.splice(k,1)},deleteAllMappings:function(){this.siteConfiguration.Mappings.splice(0,this.siteConfiguration.Mappings.length)},fieldChanged:function(k,l,r){r=this.safePath(r);if(k[l]!==r){k[l]=r;l==="FriendlyPath"&&this.propagate(r,k);this.render();this.setDirty(true)}},toFriendlyPath:function(k){var l;
if(h(k))for(var r=0;r<this.projects.length;r++){var o=this.projects[r],p="/"+o.Name;o=this.siteService.makeRelativeFilePath(o.Location);if(this.pathsMatch(k,o)){l=p+k.substring(o.length);break}}return l||k},propagate:function(k,l){if(h(k))for(var r=0;r<this.projects.length;r++){var o=this.projects[r],p="/"+o.Name;o=this.siteService.makeRelativeFilePath(o.Location);if(this.pathsMatch(k,p)){k=k.substring(p.length);l.Target=o+k;return}}l.Target=k},pathsMatch:function(k,l){return k===l||k.indexOf(l+"/")===
0},safePath:function(k){return k.replace(/[\r\n\t]/g,"")},setDirty:function(k){this._isDirty=k},isDirty:function(){return this._isDirty}});return j}();return i});define("text!orion/widgets/templates/SiteEditor.html",function(){return'<div>\n\t<style type="text/css">\n\t\t.siteEditorTable td, .siteEditorTable th {\n\t\t\tpadding: 10px 10px 5px 10px;\n\t\t}\n\t\t/* Style leftmost column of siteEditorTable */\n\t\t.siteEditorTable>tbody>tr>td:first-child {\n\t\t\tvertical-align: top;\n\t\t\tmin-width: 10em;\n\t\t\t/*background-color: #fafafa;*/\n\t\t}\n\t\t.siteEditorTable>tbody>tr>td {\n\t\t\t/*border-bottom: 1px solid #ddd;*/\n\t\t\tpadding-bottom: 20px;\n\t\t\tvertical-align: middle;\n\t\t}\n\t\t.navColumn {\n\t\t\tfont-weight: bold;\n\t\t}\n\t\t.isValidColumn {\n\t\t\tmin-width: 32px;\n\t\t\twidth: 40px;\n\t\t}\n\t\t.isValidCell {\n\t\t\ttext-align: center;\n\t\t\tvertical-align: middle;\n\t\t}\n\t\t.pathInput, .serverPathInput {\n\t\t\tmin-width: 20em;\n\t\t}\n\t\t.addMappingToolbar {\n\t\t\tpadding-top: 15px;\n\t\t}\n\t\t.siteForm {\n\t\t\tdisplay: table;\n\t\t}\n\t</style>\n\t<div dojoAttachPoint="containerNode">\n\t\t<div dojoType="dijit.form.Form" id="siteForm" class="siteForm">\n\t\t\t<table class="siteEditorTable">\n\t\t\t\t<tr>\n\t\t\t\t\t<td>\n\t\t\t\t\t\t<label dojoAttachPoint="siteConfigNameLabel" for="${id}_name">${siteConfigNameLabelText}</label>\n\t\t\t\t\t</td>\n\t\t\t\t\t<td>\n\t\t\t\t\t\t<input dojoType="dijit.form.ValidationTextBox" dojoAttachPoint="name" id="${id}_name"\n\t\t\t\t\t\t\trequired="true" value=""\n\t\t\t\t\t\t\tstyle="display: inline-block; width: 15em;">\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\t\t\t\t\n\t\t\t\t<tr>\n\t\t\t\t\t<td>\n\t\t\t\t\t\t<label dojoAttachPoint="hostHintLabel" for="${id}_hostHint">${hostHintLabelText}</label>\n\t\t\t\t\t</td>\n\t\t\t\t\t<td>\n\t\t\t\t\t\t<input dojoType="dijit.form.ValidationTextBox" dojoAttachPoint="hostHint" id="${id}_hostHint"\n\t\t\t\t\t\t\trequired="false" value=""\n\t\t\t\t\t\t\tstyle="display: inline-block; width: 12em;"><br />\n\t\t\t\t\t\t<em>Optional; used to determine the URL where a started site can be accessed.</em>\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\t\t\t\t\n\t\t\t\t<tr>\n\t\t\t\t\t<td>\n\t\t\t\t\t\t<label dojoAttachPoint="hostingStatusLabel">${hostingStatusLabelText}</label>\n\t\t\t\t\t</td>\n\t\t\t\t\t<td>\n\t\t\t\t\t\t<span dojoAttachPoint="hostingStatus"></span>\n\t\t\t\t\t\t<span dojoAttachPoint="siteStartedWarning" style="display: none;"><br />\n\t\t\t\t\t\t<em>Changes you make here won\'t affect the running site.</em>\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\n\t\t\t\t<tr>\n\t\t\t\t\t<td>\n\t\t\t\t\t\t<label dojoAttachPoint="mappingsLabel" for="${id}_mappings">${mappingsLabelText}</label>\n\t\t\t\t\t</td>\n\t\t\t\t\t<td style="padding: 10px 25px 10px 5px; width:100%;">\n\t\t\t\t\t\t<div dojoAttachPoint="mappingsPlaceholder" class="mappingsGridTable" id="${id}_mappingsPlaceholder"></div>\n\t\t\t\t\t\t<div dojoAttachPoint="addMappingToolbar" id="${id}_addMappingToolbar" class="addMappingToolbar"></div>\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\t\t\t\t\n\t\t\t\t<tr>\n\t\t\t\t\t<td>\n\t\t\t\t\t\t<div dojoAttachPoint="convertToolbar" id="${id}_convertToolbar"></div>\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\t\t\t\t\n\t\t\t</table>\n\t\t</div>\n\t</div>\n</div>'});
define("orion/widgets/SiteEditor",["require","dojo","dijit","orion/util","orion/commands","orion/siteMappingsTable","orion/widgets/DirectoryPrompterDialog","text!orion/widgets/templates/SiteEditor.html","dojo/DeferredList","dijit/layout/ContentPane","dijit/Tooltip","dijit/_Templated","dijit/form/Form","dijit/form/TextBox","dijit/form/ValidationTextBox"],function(b,d,a,c,e,f){d.declare("orion.widgets.SiteEditor",[a.layout.ContentPane,a._Templated],{widgetsInTemplate:true,templateString:d.cache("orion",
"widgets/templates/SiteEditor.html"),_workspaces:null,_projects:null,_fetched:false,_siteConfiguration:null,_modelListeners:null,mappings:null,_isDirty:false,constructor:function(){this.inherited(arguments);this.options=arguments[0]||{};this.checkOptions(this.options,["serviceRegistry","fileClient","siteService","commandService","statusService","progressService"]);this._fileClient=this.options.fileClient;this._siteService=this.options.siteService;this._commandService=this.options.commandService;this._statusService=
this.options.statusService;this._progressService=this.options.progressService;this._commandsContainer=this.options.commandsContainer;this.options.location&&this.load(this.options.location);this._workspaces=this._fileClient.loadWorkspaces();this._projects=new d.Deferred},postMixInProperties:function(){this.inherited(arguments);this.siteConfigNameLabelText="Name:";this.mappingsLabelText="Mappings:";this.hostHintLabelText="Hostname hint:";this.hostingStatusLabelText="Status:"},postCreate:function(){this.inherited(arguments);
this.refocus=false;this.name.set("invalidMessage","Not a valid name");this.name.set("isValid",d.hitch(this,function(g){return g||d.trim(this.name.get("value"))!==""}));this.hostHint.set("invalidMessage","Not a valid hostname");this.hostHint.set("isValid",d.hitch(this,function(g){var h=/^(?:\s*|[A-Za-z0-9-_]+)$/;return g||h.test(this.hostHint.get("value"))}));a.byId("siteForm").onSubmit=d.hitch(this,this.onSubmit);d.when(this._projects,d.hitch(this,function(g){this._commandService.addCommand(new e.Command({name:"Add",
tooltip:"Add a directory mapping to the site configuration",imageClass:"core-sprite-add",id:"eclipse.site.mappings.add",visibleWhen:function(){return true},choiceCallback:d.hitch(this,this._makeAddMenuChoices,g)}),"dom");this._commandService.registerCommandContribution("eclipse.site.mappings.add",1,this.addMappingToolbar.id);this._commandService.renderCommands(this.addMappingToolbar,"dom",this.mappings,this,"button");this._commandService.addCommand(new e.Command({name:"Convert to Self-Hosting",tooltip:"Enable the site configuration to launch an Orion server running your local client code",
imageClass:"core-sprite-add",id:"eclipse.site.convert",visibleWhen:d.hitch(this,function(h){return!!h.Location&&!this.isSelfHosting(g)}),callback:d.hitch(this,this.convertToSelfHostedSite,this._projects)}),"dom");this._refreshFields()}));this._commandService.addCommand(new e.Command({name:"Save",tooltip:"Save the site configuration",imageClass:"core-sprite-save",id:"eclipse.site.save",visibleWhen:function(g){return!!g.Location},callback:d.hitch(this,this.onSubmit)}),"dom")},checkOptions:function(g,
h){for(var i=0;i<h.length;i++)if(typeof g[h[i]]==="undefined")throw new Error("options."+h[i]+" is required");},_makeAddMenuChoices:function(g,h){h=d.isArray(h)?h[0]:h;this.getSiteConfiguration();g=g.sort(function(k,l){return k.Name.toLowerCase().localeCompare(l.Name.toLowerCase())});var i=this,j=function(){i.mappings.addMapping(null,this.path,this.name)};h=d.map(g,function(k){return{name:"/"+k.Name,imageClass:"core-sprite-folder",path:i._siteService.makeRelativeFilePath(k.Location),callback:j}});
g.length>0&&h.push({});h.push({name:"Choose folder&#8230;",imageClass:"core-sprite-folder",callback:d.hitch(this,function(){var k=new orion.widgets.DirectoryPrompterDialog({serviceRegistry:this.serviceRegistry,fileClient:this.fileClient,func:d.hitch(this,function(l){l&&this.mappings.addMapping(null,i._siteService.makeRelativeFilePath(l.Location),l.Name)})});k.startup();k.show()})});h.push({name:"URL",imageClass:"core-sprite-link",callback:function(){i.mappings.addMapping("/web/somePath","http://")}});
return h},convertToSelfHostedSite:function(){var g=new orion.widgets.DirectoryPrompterDialog({serviceRegistry:this.serviceRegistry,fileClient:this.fileClient,func:d.hitch(this,function(h){if(h){h=this._siteService.makeRelativeFilePath(h.Location);this.mappings.deleteAllMappings();this.mappings.addMappings(this.getSelfHostingMappings(h));this.onSubmit()}}),title:"Choose Orion Source Folder",message:"Select the folder where you checked out the <b>org.eclipse.orion.client</b> repository:"});g.startup();
g.show()},isSelfHosting:function(g){for(var h=0;h<g.length;h++){for(var i=this.getSelfHostingMappings(this._siteService.makeRelativeFilePath(g[h].Location)),j=true,k=0;k<i.length;k++)this.mappings.mappingExists(i[k])||(j=false);if(j)return true}return false},getSelfHostingMappings:function(g){var h=this._siteService.getContext();h=this._siteService._makeHostRelative(h);h="http://localhost:8080"+h;return[{Source:"/",Target:g+"/bundles/org.eclipse.orion.client.core/web"},{Source:"/",Target:g+"/bundles/org.eclipse.orion.client.editor/web"},
{Source:"/org.dojotoolkit/dojo",Target:g+"/bundles/org.eclipse.orion.client.core/web/dojo"},{Source:"/org.dojotoolkit/dojox",Target:g+"/bundles/org.eclipse.orion.client.core/web/dojox"},{Source:"/file",Target:h+"file"},{Source:"/prefs",Target:h+"prefs"},{Source:"/workspace",Target:h+"workspace"},{Source:"/org.dojotoolkit",Target:h+"org.dojotoolkit"},{Source:"/users",Target:h+"users"},{Source:"/authenticationPlugin.html",Target:h+"authenticationPlugin.html"},{Source:"/login",Target:h+"login"},{Source:"/loginstatic",
Target:h+"loginstatic"},{Source:"/site",Target:h+"site"},{Source:"/",Target:g+"/bundles/org.eclipse.orion.client.git/web"},{Source:"/gitapi",Target:h+"gitapi"},{Source:"/",Target:g+"/bundles/org.eclipse.orion.client.users.ui/web"},{Source:"/xfer",Target:h+"xfer"},{Source:"/filesearch",Target:h+"filesearch"},{Source:"/index.jsp",Target:h+"index.jsp"},{Source:"/plugins/git",Target:h+"plugins/git"},{Source:"/plugins/user",Target:h+"plugins/user"},{Source:"/logout",Target:h+"logout"},{Source:"/mixloginstatic",
Target:h+"mixloginstatic"},{Source:"/mixlogin/manageopenids",Target:h+"mixlogin/manageopenids"},{Source:"/openids",Target:h+"openids"},{Source:"/task",Target:h+"task"},{Source:"/help",Target:h+"help"}]},load:function(g){var h=new d.Deferred;this._busyWhile(h,"Loading...");this._siteService.loadSiteConfiguration(g).then(d.hitch(this,function(i){this._setSiteConfiguration(i);h.callback(i)}),function(i){h.errback(i)});return h},_fetchProjects:function(g){this._fetched||d.when(this._workspaces,d.hitch(this,
function(h){for(var i,j=0;j<h.length;j++)if(h[j].Id===g.Workspace){i=h[j];break}i&&this._fileClient.fetchChildren(i.Location).then(d.hitch(this,function(k){this._fetched=true;this._projects.callback(k)}),d.hitch(this,this._onError))}))},_setSiteConfiguration:function(g){this._detachListeners(this._siteConfiguration);this._siteConfiguration=g;this._fetchProjects(g);this._refreshFields();setTimeout(d.hitch(this,function(){this._attachListeners(this._siteConfiguration)}),0)},setDirty:function(g){(this._isDirty=
g)||this.mappings.setDirty(false)},isDirty:function(){return this._isDirty||this.mappings.isDirty()},_refreshFields:function(){this.name.set("value",this._siteConfiguration.Name);this.hostHint.set("value",this._siteConfiguration.HostHint);this.mappings=new f.MappingsTable(this.serviceRegistry,this._siteService,null,this.mappingsPlaceholder.id,this._siteConfiguration,this._projects);this.mappings.startup();var g=this._siteConfiguration.HostingStatus;if(g&&g.Status==="started"){d.style(this.siteStartedWarning,
{display:"block"});this.hostingStatus.innerHTML=c.safeText(g.Status[0].toLocaleUpperCase()+g.Status.substr(1)+" at ");d.create("a",{href:g.URL,innerHTML:c.safeText(g.URL),target:"_new"},this.hostingStatus,"last")}else{d.style(this.siteStartedWarning,{display:"none"});c.setText(this.hostingStatus,g.Status[0].toLocaleUpperCase()+g.Status.substr(1))}d.empty(this._commandsContainer);this._commandService.renderCommands(this._commandsContainer,"dom",this._siteConfiguration,{},"button",null,this._siteConfiguration)},
_attachListeners:function(g){function h(j,k){var l=d.connect(j,"onChange",i,function(){var r=j.get("value");g[k]=r;this.setDirty(true)});i._modelListeners.push(l)}this._modelListeners=[];var i=this;h(this.name,"Name");h(this.hostHint,"HostHint");this._modelListeners.push(d.connect(this.mappings,"setDirty",this,function(j){j&&this.setDirty(true)}))},_detachListeners:function(){if(this._modelListeners)for(var g=0;g<this._modelListeners.length;g++)d.disconnect(this._modelListeners[g])},getSiteConfiguration:function(){return this._siteConfiguration},
onSubmit:function(){if(a.byId("siteForm").isValid()){var g=this,h=g._siteConfiguration;delete h.HostingStatus;this._busyWhile(this._siteService.updateSiteConfiguration(h.Location,h).then(function(i){g._setSiteConfiguration(i);g.setDirty(false);return{Result:'Saved "'+i.Name+'".'}}),"Saving...");return true}else return false},_busyWhile:function(g,h){d.forEach(this.getDescendants(),function(i){i.set("disabled",true)});g.then(d.hitch(this,this._onSuccess),d.hitch(this,this._onError));this.progressService.showWhile(g,
h)},_onSuccess:function(g){d.forEach(this.getDescendants(),function(h){h.set("disabled",false)});this.onSuccess(g)},_onError:function(g){this._statusService.setErrorMessage(g);this.onError(g)},onSuccess:function(){},onError:function(){}})});
define("sites/site",["dojo","orion/bootstrap","orion/status","orion/progress","orion/commands","orion/fileClient","orion/operationsClient","orion/searchClient","orion/dialogs","orion/globalCommands","orion/util","orion/siteService","orion/siteUtils","orion/siteTree","orion/treetable","dojo/parser","dojo/hash","dijit/layout/BorderContainer","dijit/layout/ContentPane","orion/widgets/SiteEditor"],function(b,d,a,c,e,f,g,h,i,j,k,l,r){b.addOnLoad(function(){d.startup().then(function(o){var p=o.serviceRegistry,
q=o.preferences;document.body.style.visibility="visible";b.parser.parse();o=new i.DialogService(p);var n=new g.OperationsClient(p),m=new a.StatusReportingService(p,n,"statusPane","notifications","notificationArea"),s=new c.ProgressService(p,n),u=new e.CommandService({serviceRegistry:p}),w=new f.FileClient(p,function(D){return(D=D.getProperty("pattern"))&&D.indexOf("/")===0}),x=new l.SiteService(p);n=new h.Searcher({serviceRegistry:p,commandService:u,fileService:w});j.generateBanner("banner",p,u,q,
n);var B=function(){var D=dijit.byId("site-editor"),H=D&&D.getSiteConfiguration();if(D&&H){var J=b.byId("location");b.place(document.createTextNode(H.Name),J,"only");document.title=H.Name+(D.isDirty()?"* ":"")+" - Edit Site";k.forceLayout(J)}},G=function(){var D=b.hash();D=r.parseStateFromHash(D);var H=dijit.byId("site-editor");D.site&&H.load(D.site).then(function(){B()})};b.subscribe("/dojo/hashchange",null,G);var C;(function(){C=new orion.widgets.SiteEditor({serviceRegistry:p,fileClient:w,siteService:x,
commandService:u,statusService:m,progressService:s,commandsContainer:b.byId("pageActions"),id:"site-editor"});b.place(C.domNode,b.byId("site"),"only");C.startup();b.connect(C,"onSuccess",B);b.connect(C,"setDirty",B);G()})();window.onbeforeunload=function(){if(C.isDirty())return"There are unsaved changes."};q=b.hitch(C,C._setSiteConfiguration);n=b.hitch(m,m.setProgressResult);r.createSiteCommands(u,x,s,o,q,q,null,n);u.registerCommandContribution("eclipse.site.start",1,"pageActions");u.registerCommandContribution("eclipse.site.stop",
2,"pageActions");u.registerCommandContribution("eclipse.site.convert",3,"pageActions");u.registerCommandContribution("eclipse.site.save",4,"pageActions")})})});